Skip to content

Commit 3adad82

Browse files
committed
fix: update svelte-lib-helpers for component docs
1 parent 7a7b5c5 commit 3adad82

File tree

120 files changed

+727
-664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+727
-664
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"runes-meta-tags": "^0.3.2",
7373
"svelte": "5.0.0-next.262",
7474
"svelte-check": "^4.0.4",
75-
"svelte-lib-helpers": "^0.4.10",
75+
"svelte-lib-helpers": "^0.4.11",
7676
"svelte-rune-highlight": "^0.5.11",
7777
"tailwindcss": "^3.4.13",
7878
"tslib": "^2.7.0",

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/accordion/Accordion.svelte

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
@component
2525
[Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
2626
## Props
27-
@props: children: any;
28-
@props:flush: any;
29-
@props:activeClass: any;
30-
@props:inactiveClass: any;
31-
@props:isSingle: any = true;
32-
@props:class: any;
33-
@props:transition: any;
34-
@props:params: any;
27+
@props: children: Snippet;
28+
@props:flush: boolean;
29+
@props:activeClass: string;
30+
@props:inactiveClass: string;
31+
@props:isSingle: boolean = true;
32+
@props:class: string;
33+
@props:transition: TransitionFunc;
34+
@props:params: ParamsType;
3535
-->

src/lib/accordion/AccordionItem.svelte

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@
6464
@component
6565
[Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
6666
## Props
67-
@props: children: any;
68-
@props:header: any;
69-
@props:arrowup: any;
70-
@props:arrowdown: any;
71-
@props:open: any = $bindable(false);
72-
@props:activeClass: any;
73-
@props:inactiveClass: any;
74-
@props:transition: any = slide;
75-
@props:params: any;
76-
@props:class: any;
67+
@props: children: Snippet;
68+
@props:header: Snippet;
69+
@props:arrowup: Snippet;
70+
@props:arrowdown: Snippet;
71+
@props:open: boolean = $bindable(false);
72+
@props:activeClass: string;
73+
@props:inactiveClass: string;
74+
@props:transition: TransitionFunc = slide;
75+
@props:params: ParamsType;
76+
@props:class: string;
7777
-->

src/lib/alert/Alert.svelte

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@
6868
@component
6969
[Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
7070
## Props
71-
@props: children: any;
72-
@props:icon: any;
73-
@props:alertStatus: any = $bindable(true);
74-
@props:closeIcon: any;
75-
@props:color: any = 'primary';
76-
@props:rounded: any = true;
77-
@props:border: any;
78-
@props:class: any;
79-
@props:dismissable: any;
80-
@props:transition: any = fade;
81-
@props:params: any;
82-
@props:onclick: any;
71+
@props: children: Snippet;
72+
@props:icon: Snippet;
73+
@props:alertStatus: boolean = $bindable(true);
74+
@props:closeIcon: boolean;
75+
@props:color: VariantProps<typeof alert>['color'] = 'primary';
76+
@props:rounded: boolean = true;
77+
@props:border: boolean;
78+
@props:class: string;
79+
@props:dismissable: boolean;
80+
@props:transition: TransitionFunc = fade;
81+
@props:params: ParamsType;
82+
@props:onclick: () => void;
8383
-->

src/lib/avatar/Avatar.svelte

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
@component
4141
[Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
4242
## Props
43-
@props: children: any;
44-
@props:src: any;
45-
@props:href: any;
46-
@props:cornerStyle: any = 'circular';
43+
@props: children: Snippet;
44+
@props:src: string;
45+
@props:href: string;
46+
@props:cornerStyle: 'rounded' | 'circular' = 'circular';
4747
@props:border: any;
48-
@props:stacked: any;
49-
@props:dot: any;
50-
@props:class: any;
51-
@props:alt: any;
52-
@props:size: any = 'md';
53-
@props:onclick: any;
48+
@props:stacked: boolean;
49+
@props:dot: object | undefined;
50+
@props:class: string;
51+
@props:alt: string;
52+
@props:size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = 'md';
53+
@props:onclick: () => void;
5454
-->

src/lib/badge/Badge.svelte

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,18 @@
5454
@component
5555
[Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
5656
## Props
57-
@props: children: any;
58-
@props:icon: any;
59-
@props:badgeStatus: any = $bindable(true);
60-
@props:color: any = 'primary';
61-
@props:large: any = false;
62-
@props:dismissable: any = false;
63-
@props:class: any;
64-
@props:border: any;
65-
@props:href: any;
66-
@props:rounded: any;
67-
@props:transition: any = fade;
68-
@props:params: any;
69-
@props:aClass: any;
70-
@props:onclick: any;
57+
@props: children: Snippet;
58+
@props:icon: Snippet;
59+
@props:badgeStatus: boolean = $bindable(true);
60+
@props:color: VariantProps<typeof badge>['color'] = 'primary';
61+
@props:large: boolean = false;
62+
@props:dismissable: boolean = false;
63+
@props:class: string;
64+
@props:border: boolean;
65+
@props:href: string;
66+
@props:rounded: boolean;
67+
@props:transition: TransitionFunc = fade;
68+
@props:params: ParamsType;
69+
@props:aClass: string;
70+
@props:onclick: () => void;
7171
-->

src/lib/banner/Banner.svelte

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@
4545
@component
4646
[Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
4747
## Props
48-
@props: children: any;
49-
@props:header: any;
50-
@props:bannerStatus: any = $bindable(true);
51-
@props:position: any = 'sticky';
52-
@props:dismissable: any = true;
53-
@props:color: any = 'gray';
54-
@props:bannerType: any = 'default';
55-
@props:class: any;
56-
@props:innerClass: any;
57-
@props:transition: any = fade;
58-
@props:params: any;
48+
@props: children: Snippet;
49+
@props:header: Snippet;
50+
@props:bannerStatus: boolean = $bindable(true);
51+
@props:position: VariantProps<typeof banner>['position'] = 'sticky';
52+
@props:dismissable: boolean = true;
53+
@props:color: VariantProps<typeof banner>['color'] = 'gray';
54+
@props:bannerType: VariantProps<typeof banner>['bannerType'] = 'default';
55+
@props:class: string;
56+
@props:innerClass: string;
57+
@props:transition: TransitionFunc = fade;
58+
@props:params: object;
5959
-->

src/lib/bottom-navigation/BottomNav.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
@component
3131
[Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
3232
## Props
33-
@props: children: any;
34-
@props:header: any;
35-
@props:position: any = 'fixed';
36-
@props:navType: any = 'default';
37-
@props:outerClass: any;
38-
@props:innerClass: any;
39-
@props:activeClass: any;
33+
@props: children: Snippet;
34+
@props:header: Snippet;
35+
@props:position: VariantProps<typeof bottomNav>['position'] = 'fixed';
36+
@props:navType: VariantProps<typeof bottomNav>['navType'] = 'default';
37+
@props:outerClass: string;
38+
@props:innerClass: string;
39+
@props:activeClass: string;
4040
-->

src/lib/bottom-navigation/BottomNavHeader.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@component
1616
[Go to docs](https://svelte-5-ui-lib.codewithshin.com/)
1717
## Props
18-
@props: children: any;
19-
@props:outerClass: any;
20-
@props:innerClass: any;
18+
@props: children: Snippet;
19+
@props:outerClass: string;
20+
@props:innerClass: string;
2121
-->

0 commit comments

Comments
 (0)