@moduix/solid 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/Accordion.js +19 -13
- package/dist/components/accordion/Accordion.jsx +7 -7
- package/dist/components/alert/Alert.js +19 -13
- package/dist/components/alert/Alert.jsx +6 -6
- package/dist/components/angle-slider/AngleSlider.d.ts +2 -6
- package/dist/components/angle-slider/AngleSlider.js +21 -16
- package/dist/components/angle-slider/AngleSlider.jsx +9 -10
- package/dist/components/avatar/Avatar.js +10 -7
- package/dist/components/avatar/Avatar.jsx +4 -4
- package/dist/components/button/Button.js +0 -5
- package/dist/components/button/Button.jsx +1 -3
- package/dist/components/button/Button_module.css +1 -3
- package/dist/components/card/Card.js +45 -36
- package/dist/components/card/Card.jsx +9 -9
- package/dist/components/card/Card_module.css +1 -1
- package/dist/components/carousel/Carousel.d.ts +1 -1
- package/dist/components/carousel/Carousel.js +32 -23
- package/dist/components/carousel/Carousel.jsx +12 -13
- package/dist/components/checkbox/Checkbox.js +16 -14
- package/dist/components/checkbox/Checkbox.jsx +6 -6
- package/dist/components/clipboard/Clipboard.js +28 -17
- package/dist/components/clipboard/Clipboard.jsx +12 -11
- package/dist/components/collapsible/Collapsible.js +16 -11
- package/dist/components/collapsible/Collapsible.jsx +6 -6
- package/dist/components/color-picker/ColorPicker.js +69 -48
- package/dist/components/color-picker/ColorPicker.jsx +28 -28
- package/dist/components/combobox/Combobox.js +44 -31
- package/dist/components/combobox/Combobox.jsx +18 -18
- package/dist/components/command-palette/CommandPalette.js +71 -52
- package/dist/components/command-palette/CommandPalette.jsx +28 -31
- package/dist/components/container/Container_module.css +1 -1
- package/dist/components/date-input/DateInput.js +18 -12
- package/dist/components/date-input/DateInput.jsx +7 -7
- package/dist/components/date-picker/DatePicker.js +73 -51
- package/dist/components/date-picker/DatePicker.jsx +29 -29
- package/dist/components/dialog/Dialog.js +30 -20
- package/dist/components/dialog/Dialog.jsx +10 -10
- package/dist/components/drawer/Drawer.js +45 -30
- package/dist/components/drawer/Drawer.jsx +15 -15
- package/dist/components/editable/Editable.js +24 -17
- package/dist/components/editable/Editable.jsx +10 -10
- package/dist/components/file-upload/FileUpload.js +39 -28
- package/dist/components/file-upload/FileUpload.jsx +17 -17
- package/dist/components/floating-panel/FloatingPanel.js +35 -23
- package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
- package/dist/components/hover-card/HoverCard.js +16 -11
- package/dist/components/hover-card/HoverCard.jsx +6 -6
- package/dist/components/image-cropper/ImageCropper.js +21 -14
- package/dist/components/image-cropper/ImageCropper.jsx +7 -7
- package/dist/components/kbd/Kbd.js +8 -8
- package/dist/components/kbd/Kbd.jsx +2 -2
- package/dist/components/lightbox/Lightbox.d.ts +1 -0
- package/dist/components/lightbox/Lightbox.js +41 -27
- package/dist/components/lightbox/Lightbox.jsx +13 -12
- package/dist/components/listbox/Listbox.js +48 -32
- package/dist/components/listbox/Listbox.jsx +17 -17
- package/dist/components/marquee/Marquee.js +18 -12
- package/dist/components/marquee/Marquee.jsx +6 -6
- package/dist/components/menu/Menu.js +64 -43
- package/dist/components/menu/Menu.jsx +24 -24
- package/dist/components/navigation-menu/NavigationMenu.js +36 -24
- package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
- package/dist/components/number-input/NumberInput.js +19 -14
- package/dist/components/number-input/NumberInput.jsx +9 -9
- package/dist/components/pagination/Pagination.js +10 -9
- package/dist/components/pagination/Pagination.jsx +8 -8
- package/dist/components/password-input/PasswordInput.js +16 -11
- package/dist/components/password-input/PasswordInput.jsx +6 -6
- package/dist/components/pin-input/PinInput.js +15 -10
- package/dist/components/pin-input/PinInput.jsx +6 -6
- package/dist/components/popover/Popover.js +37 -25
- package/dist/components/popover/Popover.jsx +13 -13
- package/dist/components/progress-circular/ProgressCircular.js +18 -13
- package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
- package/dist/components/progress-linear/ProgressLinear.js +21 -14
- package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
- package/dist/components/qr-code/QrCode.js +8 -7
- package/dist/components/qr-code/QrCode.jsx +6 -6
- package/dist/components/rating-group/RatingGroup.js +15 -10
- package/dist/components/rating-group/RatingGroup.jsx +6 -6
- package/dist/components/segment-group/SegmentGroup.js +17 -12
- package/dist/components/segment-group/SegmentGroup.jsx +7 -7
- package/dist/components/select/Select.js +50 -35
- package/dist/components/select/Select.jsx +20 -20
- package/dist/components/sidebar/Sidebar.js +73 -43
- package/dist/components/sidebar/Sidebar.jsx +35 -27
- package/dist/components/signature-pad/SignaturePad.js +16 -12
- package/dist/components/signature-pad/SignaturePad.jsx +8 -8
- package/dist/components/slider/Slider.js +29 -20
- package/dist/components/slider/Slider.jsx +11 -11
- package/dist/components/split-button/SplitButton.d.ts +4 -3
- package/dist/components/split-button/SplitButton.js +21 -9
- package/dist/components/split-button/SplitButton.jsx +14 -7
- package/dist/components/splitter/Splitter.js +13 -9
- package/dist/components/splitter/Splitter.jsx +5 -5
- package/dist/components/steps/Steps.js +34 -23
- package/dist/components/steps/Steps.jsx +12 -12
- package/dist/components/swap/Swap.js +9 -6
- package/dist/components/swap/Swap.jsx +3 -3
- package/dist/components/switch/Switch.js +9 -7
- package/dist/components/switch/Switch.jsx +5 -5
- package/dist/components/tabs/Tabs.js +18 -12
- package/dist/components/tabs/Tabs.jsx +6 -6
- package/dist/components/tags-input/TagsInput.js +28 -20
- package/dist/components/tags-input/TagsInput.jsx +12 -12
- package/dist/components/timer/Timer.js +21 -14
- package/dist/components/timer/Timer.jsx +7 -7
- package/dist/components/toast/Toast.js +11 -9
- package/dist/components/toast/Toast.jsx +7 -7
- package/dist/components/toc/Toc.js +31 -20
- package/dist/components/toc/Toc.jsx +10 -10
- package/dist/components/tooltip/Tooltip.js +13 -9
- package/dist/components/tooltip/Tooltip.jsx +5 -5
- package/dist/components/tour/Tour.js +37 -25
- package/dist/components/tour/Tour.jsx +13 -13
- package/dist/components/tree-view/TreeView.js +39 -28
- package/dist/components/tree-view/TreeView.jsx +17 -17
- package/dist/styles/animations.css +8 -8
- package/package.json +1 -1
|
@@ -15,11 +15,11 @@ function TagsInputRoot(props) {
|
|
|
15
15
|
get asChild () {
|
|
16
16
|
return local.asChild;
|
|
17
17
|
},
|
|
18
|
-
"data-slot": "tags-input-root",
|
|
19
18
|
get ["class"] () {
|
|
20
19
|
return clsx(TagsInput_module.root, local.class);
|
|
21
20
|
}
|
|
22
21
|
}, others, {
|
|
22
|
+
"data-slot": "tags-input-root",
|
|
23
23
|
get children () {
|
|
24
24
|
return local.children;
|
|
25
25
|
}
|
|
@@ -35,11 +35,11 @@ function TagsInputRootProvider(props) {
|
|
|
35
35
|
get asChild () {
|
|
36
36
|
return local.asChild;
|
|
37
37
|
},
|
|
38
|
-
"data-slot": "tags-input-root-provider",
|
|
39
38
|
get ["class"] () {
|
|
40
39
|
return clsx(TagsInput_module.root, local.class);
|
|
41
40
|
}
|
|
42
41
|
}, others, {
|
|
42
|
+
"data-slot": "tags-input-root-provider",
|
|
43
43
|
get children () {
|
|
44
44
|
return local.children;
|
|
45
45
|
}
|
|
@@ -50,55 +50,60 @@ function TagsInputLabel(props) {
|
|
|
50
50
|
'class'
|
|
51
51
|
]);
|
|
52
52
|
return createComponent(TagsInput.Label, mergeProps({
|
|
53
|
-
"data-slot": "tags-input-label",
|
|
54
53
|
get ["class"] () {
|
|
55
54
|
return clsx(TagsInput_module.label, local.class);
|
|
56
55
|
}
|
|
57
|
-
}, others
|
|
56
|
+
}, others, {
|
|
57
|
+
"data-slot": "tags-input-label"
|
|
58
|
+
}));
|
|
58
59
|
}
|
|
59
60
|
function TagsInputControl(props) {
|
|
60
61
|
const [local, others] = splitProps(props, [
|
|
61
62
|
'class'
|
|
62
63
|
]);
|
|
63
64
|
return createComponent(TagsInput.Control, mergeProps({
|
|
64
|
-
"data-slot": "tags-input-control",
|
|
65
65
|
get ["class"] () {
|
|
66
66
|
return clsx(TagsInput_module.control, local.class);
|
|
67
67
|
}
|
|
68
|
-
}, others
|
|
68
|
+
}, others, {
|
|
69
|
+
"data-slot": "tags-input-control"
|
|
70
|
+
}));
|
|
69
71
|
}
|
|
70
72
|
function TagsInputItem(props) {
|
|
71
73
|
const [local, others] = splitProps(props, [
|
|
72
74
|
'class'
|
|
73
75
|
]);
|
|
74
76
|
return createComponent(TagsInput.Item, mergeProps({
|
|
75
|
-
"data-slot": "tags-input-item",
|
|
76
77
|
get ["class"] () {
|
|
77
78
|
return clsx(TagsInput_module.item, local.class);
|
|
78
79
|
}
|
|
79
|
-
}, others
|
|
80
|
+
}, others, {
|
|
81
|
+
"data-slot": "tags-input-item"
|
|
82
|
+
}));
|
|
80
83
|
}
|
|
81
84
|
function TagsInputItemPreview(props) {
|
|
82
85
|
const [local, others] = splitProps(props, [
|
|
83
86
|
'class'
|
|
84
87
|
]);
|
|
85
88
|
return createComponent(TagsInput.ItemPreview, mergeProps({
|
|
86
|
-
"data-slot": "tags-input-item-preview",
|
|
87
89
|
get ["class"] () {
|
|
88
90
|
return clsx(TagsInput_module.itemPreview, local.class);
|
|
89
91
|
}
|
|
90
|
-
}, others
|
|
92
|
+
}, others, {
|
|
93
|
+
"data-slot": "tags-input-item-preview"
|
|
94
|
+
}));
|
|
91
95
|
}
|
|
92
96
|
function TagsInputItemText(props) {
|
|
93
97
|
const [local, others] = splitProps(props, [
|
|
94
98
|
'class'
|
|
95
99
|
]);
|
|
96
100
|
return createComponent(TagsInput.ItemText, mergeProps({
|
|
97
|
-
"data-slot": "tags-input-item-text",
|
|
98
101
|
get ["class"] () {
|
|
99
102
|
return clsx(TagsInput_module.itemText, local.class);
|
|
100
103
|
}
|
|
101
|
-
}, others
|
|
104
|
+
}, others, {
|
|
105
|
+
"data-slot": "tags-input-item-text"
|
|
106
|
+
}));
|
|
102
107
|
}
|
|
103
108
|
function TagsInputItemDeleteTrigger(props) {
|
|
104
109
|
const [local, others] = splitProps(props, [
|
|
@@ -107,11 +112,11 @@ function TagsInputItemDeleteTrigger(props) {
|
|
|
107
112
|
]);
|
|
108
113
|
const resolvedChildren = children(()=>local.children);
|
|
109
114
|
return createComponent(TagsInput.ItemDeleteTrigger, mergeProps({
|
|
110
|
-
"data-slot": "tags-input-item-delete-trigger",
|
|
111
115
|
get ["class"] () {
|
|
112
116
|
return clsx(TagsInput_module.itemDeleteTrigger, local.class);
|
|
113
117
|
}
|
|
114
118
|
}, others, {
|
|
119
|
+
"data-slot": "tags-input-item-delete-trigger",
|
|
115
120
|
get children () {
|
|
116
121
|
return resolvedChildren() ?? createComponent(CloseIcon, {});
|
|
117
122
|
}
|
|
@@ -122,22 +127,24 @@ function TagsInputItemInput(props) {
|
|
|
122
127
|
'class'
|
|
123
128
|
]);
|
|
124
129
|
return createComponent(TagsInput.ItemInput, mergeProps({
|
|
125
|
-
"data-slot": "tags-input-item-input",
|
|
126
130
|
get ["class"] () {
|
|
127
131
|
return clsx(TagsInput_module.itemInput, local.class);
|
|
128
132
|
}
|
|
129
|
-
}, others
|
|
133
|
+
}, others, {
|
|
134
|
+
"data-slot": "tags-input-item-input"
|
|
135
|
+
}));
|
|
130
136
|
}
|
|
131
137
|
function TagsInputInput(props) {
|
|
132
138
|
const [local, others] = splitProps(props, [
|
|
133
139
|
'class'
|
|
134
140
|
]);
|
|
135
141
|
return createComponent(TagsInput.Input, mergeProps({
|
|
136
|
-
"data-slot": "tags-input-input",
|
|
137
142
|
get ["class"] () {
|
|
138
143
|
return clsx(TagsInput_module.input, local.class);
|
|
139
144
|
}
|
|
140
|
-
}, others
|
|
145
|
+
}, others, {
|
|
146
|
+
"data-slot": "tags-input-input"
|
|
147
|
+
}));
|
|
141
148
|
}
|
|
142
149
|
function TagsInputClearTrigger(props) {
|
|
143
150
|
const [local, others] = splitProps(props, [
|
|
@@ -155,7 +162,6 @@ function TagsInputClearTrigger(props) {
|
|
|
155
162
|
get asChild () {
|
|
156
163
|
return local.asChild;
|
|
157
164
|
},
|
|
158
|
-
"data-slot": "tags-input-clear-trigger",
|
|
159
165
|
get ["class"] () {
|
|
160
166
|
return triggerClassName();
|
|
161
167
|
},
|
|
@@ -166,6 +172,7 @@ function TagsInputClearTrigger(props) {
|
|
|
166
172
|
return local['aria-labelledby'];
|
|
167
173
|
}
|
|
168
174
|
}, others, {
|
|
175
|
+
"data-slot": "tags-input-clear-trigger",
|
|
169
176
|
get children () {
|
|
170
177
|
return local.children;
|
|
171
178
|
}
|
|
@@ -185,11 +192,12 @@ function TagsInputClearTrigger(props) {
|
|
|
185
192
|
return resolvedChildren();
|
|
186
193
|
}
|
|
187
194
|
})),
|
|
188
|
-
"data-slot": "tags-input-clear-trigger",
|
|
189
195
|
get ["class"] () {
|
|
190
196
|
return triggerClassName();
|
|
191
197
|
}
|
|
192
|
-
}, others
|
|
198
|
+
}, others, {
|
|
199
|
+
"data-slot": "tags-input-clear-trigger"
|
|
200
|
+
}));
|
|
193
201
|
}
|
|
194
202
|
const TagsInputContext = TagsInput.Context;
|
|
195
203
|
function TagsInputItems() {
|
|
@@ -10,7 +10,7 @@ function TagsInputRoot(props) {
|
|
|
10
10
|
'children',
|
|
11
11
|
'class'
|
|
12
12
|
]);
|
|
13
|
-
return <TagsInput.Root asChild={local.asChild}
|
|
13
|
+
return <TagsInput.Root asChild={local.asChild} class={clsx(TagsInput_module.root, local.class)} {...others} data-slot="tags-input-root">
|
|
14
14
|
{local.children}
|
|
15
15
|
</TagsInput.Root>;
|
|
16
16
|
}
|
|
@@ -20,7 +20,7 @@ function TagsInputRootProvider(props) {
|
|
|
20
20
|
'children',
|
|
21
21
|
'class'
|
|
22
22
|
]);
|
|
23
|
-
return <TagsInput.RootProvider asChild={local.asChild}
|
|
23
|
+
return <TagsInput.RootProvider asChild={local.asChild} class={clsx(TagsInput_module.root, local.class)} {...others} data-slot="tags-input-root-provider">
|
|
24
24
|
{local.children}
|
|
25
25
|
</TagsInput.RootProvider>;
|
|
26
26
|
}
|
|
@@ -28,31 +28,31 @@ function TagsInputLabel(props) {
|
|
|
28
28
|
const [local, others] = splitProps(props, [
|
|
29
29
|
'class'
|
|
30
30
|
]);
|
|
31
|
-
return <TagsInput.Label
|
|
31
|
+
return <TagsInput.Label class={clsx(TagsInput_module.label, local.class)} {...others} data-slot="tags-input-label"/>;
|
|
32
32
|
}
|
|
33
33
|
function TagsInputControl(props) {
|
|
34
34
|
const [local, others] = splitProps(props, [
|
|
35
35
|
'class'
|
|
36
36
|
]);
|
|
37
|
-
return <TagsInput.Control
|
|
37
|
+
return <TagsInput.Control class={clsx(TagsInput_module.control, local.class)} {...others} data-slot="tags-input-control"/>;
|
|
38
38
|
}
|
|
39
39
|
function TagsInputItem(props) {
|
|
40
40
|
const [local, others] = splitProps(props, [
|
|
41
41
|
'class'
|
|
42
42
|
]);
|
|
43
|
-
return <TagsInput.Item
|
|
43
|
+
return <TagsInput.Item class={clsx(TagsInput_module.item, local.class)} {...others} data-slot="tags-input-item"/>;
|
|
44
44
|
}
|
|
45
45
|
function TagsInputItemPreview(props) {
|
|
46
46
|
const [local, others] = splitProps(props, [
|
|
47
47
|
'class'
|
|
48
48
|
]);
|
|
49
|
-
return <TagsInput.ItemPreview
|
|
49
|
+
return <TagsInput.ItemPreview class={clsx(TagsInput_module.itemPreview, local.class)} {...others} data-slot="tags-input-item-preview"/>;
|
|
50
50
|
}
|
|
51
51
|
function TagsInputItemText(props) {
|
|
52
52
|
const [local, others] = splitProps(props, [
|
|
53
53
|
'class'
|
|
54
54
|
]);
|
|
55
|
-
return <TagsInput.ItemText
|
|
55
|
+
return <TagsInput.ItemText class={clsx(TagsInput_module.itemText, local.class)} {...others} data-slot="tags-input-item-text"/>;
|
|
56
56
|
}
|
|
57
57
|
function TagsInputItemDeleteTrigger(props) {
|
|
58
58
|
const [local, others] = splitProps(props, [
|
|
@@ -60,7 +60,7 @@ function TagsInputItemDeleteTrigger(props) {
|
|
|
60
60
|
'class'
|
|
61
61
|
]);
|
|
62
62
|
const resolvedChildren = children(()=>local.children);
|
|
63
|
-
return <TagsInput.ItemDeleteTrigger
|
|
63
|
+
return <TagsInput.ItemDeleteTrigger class={clsx(TagsInput_module.itemDeleteTrigger, local.class)} {...others} data-slot="tags-input-item-delete-trigger">
|
|
64
64
|
{resolvedChildren() ?? <CloseIcon/>}
|
|
65
65
|
</TagsInput.ItemDeleteTrigger>;
|
|
66
66
|
}
|
|
@@ -68,13 +68,13 @@ function TagsInputItemInput(props) {
|
|
|
68
68
|
const [local, others] = splitProps(props, [
|
|
69
69
|
'class'
|
|
70
70
|
]);
|
|
71
|
-
return <TagsInput.ItemInput
|
|
71
|
+
return <TagsInput.ItemInput class={clsx(TagsInput_module.itemInput, local.class)} {...others} data-slot="tags-input-item-input"/>;
|
|
72
72
|
}
|
|
73
73
|
function TagsInputInput(props) {
|
|
74
74
|
const [local, others] = splitProps(props, [
|
|
75
75
|
'class'
|
|
76
76
|
]);
|
|
77
|
-
return <TagsInput.Input
|
|
77
|
+
return <TagsInput.Input class={clsx(TagsInput_module.input, local.class)} {...others} data-slot="tags-input-input"/>;
|
|
78
78
|
}
|
|
79
79
|
function TagsInputClearTrigger(props) {
|
|
80
80
|
const [local, others] = splitProps(props, [
|
|
@@ -88,12 +88,12 @@ function TagsInputClearTrigger(props) {
|
|
|
88
88
|
const resolvedChildren = children(()=>local.children);
|
|
89
89
|
const triggerClassName = ()=>clsx(TagsInput_module.clearTrigger, local.class);
|
|
90
90
|
const clearTriggerLabel = ()=>tagsInput().getClearTriggerProps()['aria-label'];
|
|
91
|
-
if (local.asChild) return <TagsInput.ClearTrigger asChild={local.asChild}
|
|
91
|
+
if (local.asChild) return <TagsInput.ClearTrigger asChild={local.asChild} class={triggerClassName()} aria-label={local['aria-label']} aria-labelledby={local['aria-labelledby']} {...others} data-slot="tags-input-clear-trigger">
|
|
92
92
|
{local.children}
|
|
93
93
|
</TagsInput.ClearTrigger>;
|
|
94
94
|
return <TagsInput.ClearTrigger asChild={(triggerProps)=><CloseButton.Root {...triggerProps()} aria-label={local['aria-label'] ?? clearTriggerLabel()} aria-labelledby={local['aria-labelledby']} data-part="clear-trigger" data-scope="tags-input" data-slot="tags-input-clear-trigger">
|
|
95
95
|
{resolvedChildren()}
|
|
96
|
-
</CloseButton.Root>} data-slot="tags-input-clear-trigger"
|
|
96
|
+
</CloseButton.Root>} class={triggerClassName()} {...others} data-slot="tags-input-clear-trigger"/>;
|
|
97
97
|
}
|
|
98
98
|
const TagsInputContext = TagsInput.Context;
|
|
99
99
|
function TagsInputItems() {
|
|
@@ -8,77 +8,84 @@ function TimerRoot(props) {
|
|
|
8
8
|
'class'
|
|
9
9
|
]);
|
|
10
10
|
return createComponent(Timer.Root, mergeProps({
|
|
11
|
-
"data-slot": "timer-root",
|
|
12
11
|
get ["class"] () {
|
|
13
12
|
return clsx(Timer_module.root, local.class);
|
|
14
13
|
}
|
|
15
|
-
}, others
|
|
14
|
+
}, others, {
|
|
15
|
+
"data-slot": "timer-root"
|
|
16
|
+
}));
|
|
16
17
|
}
|
|
17
18
|
function TimerRootProvider(props) {
|
|
18
19
|
const [local, others] = splitProps(props, [
|
|
19
20
|
'class'
|
|
20
21
|
]);
|
|
21
22
|
return createComponent(Timer.RootProvider, mergeProps({
|
|
22
|
-
"data-slot": "timer-root-provider",
|
|
23
23
|
get ["class"] () {
|
|
24
24
|
return clsx(Timer_module.root, local.class);
|
|
25
25
|
}
|
|
26
|
-
}, others
|
|
26
|
+
}, others, {
|
|
27
|
+
"data-slot": "timer-root-provider"
|
|
28
|
+
}));
|
|
27
29
|
}
|
|
28
30
|
function TimerArea(props) {
|
|
29
31
|
const [local, others] = splitProps(props, [
|
|
30
32
|
'class'
|
|
31
33
|
]);
|
|
32
34
|
return createComponent(Timer.Area, mergeProps({
|
|
33
|
-
"data-slot": "timer-area",
|
|
34
35
|
get ["class"] () {
|
|
35
36
|
return clsx(Timer_module.area, local.class);
|
|
36
37
|
}
|
|
37
|
-
}, others
|
|
38
|
+
}, others, {
|
|
39
|
+
"data-slot": "timer-area"
|
|
40
|
+
}));
|
|
38
41
|
}
|
|
39
42
|
function TimerItem(props) {
|
|
40
43
|
const [local, others] = splitProps(props, [
|
|
41
44
|
'class'
|
|
42
45
|
]);
|
|
43
46
|
return createComponent(Timer.Item, mergeProps({
|
|
44
|
-
"data-slot": "timer-item",
|
|
45
47
|
get ["class"] () {
|
|
46
48
|
return clsx(Timer_module.item, local.class);
|
|
47
49
|
}
|
|
48
|
-
}, others
|
|
50
|
+
}, others, {
|
|
51
|
+
"data-slot": "timer-item"
|
|
52
|
+
}));
|
|
49
53
|
}
|
|
50
54
|
function TimerSeparator(props) {
|
|
51
55
|
const [local, others] = splitProps(props, [
|
|
52
56
|
'class'
|
|
53
57
|
]);
|
|
54
58
|
return createComponent(Timer.Separator, mergeProps({
|
|
55
|
-
"data-slot": "timer-separator",
|
|
56
59
|
get ["class"] () {
|
|
57
60
|
return clsx(Timer_module.separator, local.class);
|
|
58
61
|
}
|
|
59
|
-
}, others
|
|
62
|
+
}, others, {
|
|
63
|
+
"data-slot": "timer-separator"
|
|
64
|
+
}));
|
|
60
65
|
}
|
|
61
66
|
function TimerControl(props) {
|
|
62
67
|
const [local, others] = splitProps(props, [
|
|
63
68
|
'class'
|
|
64
69
|
]);
|
|
65
70
|
return createComponent(Timer.Control, mergeProps({
|
|
66
|
-
"data-slot": "timer-control",
|
|
67
71
|
get ["class"] () {
|
|
68
72
|
return clsx(Timer_module.control, local.class);
|
|
69
73
|
}
|
|
70
|
-
}, others
|
|
74
|
+
}, others, {
|
|
75
|
+
"data-slot": "timer-control"
|
|
76
|
+
}));
|
|
71
77
|
}
|
|
72
78
|
function TimerActionTrigger(props) {
|
|
73
79
|
const [local, others] = splitProps(props, [
|
|
74
80
|
'class'
|
|
75
81
|
]);
|
|
76
82
|
return createComponent(Timer.ActionTrigger, mergeProps({
|
|
77
|
-
"data-slot": "timer-action-trigger",
|
|
78
83
|
get ["class"] () {
|
|
79
84
|
return clsx(Timer_module.actionTrigger, local.class);
|
|
80
85
|
}
|
|
81
|
-
}, others
|
|
86
|
+
}, others, {
|
|
87
|
+
"data-slot": "timer-action-trigger"
|
|
88
|
+
}));
|
|
82
89
|
}
|
|
83
90
|
const defaultTimerSegmentTypes = [
|
|
84
91
|
'hours',
|
|
@@ -6,43 +6,43 @@ function TimerRoot(props) {
|
|
|
6
6
|
const [local, others] = splitProps(props, [
|
|
7
7
|
'class'
|
|
8
8
|
]);
|
|
9
|
-
return <Timer.Root
|
|
9
|
+
return <Timer.Root class={clsx(Timer_module.root, local.class)} {...others} data-slot="timer-root"/>;
|
|
10
10
|
}
|
|
11
11
|
function TimerRootProvider(props) {
|
|
12
12
|
const [local, others] = splitProps(props, [
|
|
13
13
|
'class'
|
|
14
14
|
]);
|
|
15
|
-
return <Timer.RootProvider
|
|
15
|
+
return <Timer.RootProvider class={clsx(Timer_module.root, local.class)} {...others} data-slot="timer-root-provider"/>;
|
|
16
16
|
}
|
|
17
17
|
function TimerArea(props) {
|
|
18
18
|
const [local, others] = splitProps(props, [
|
|
19
19
|
'class'
|
|
20
20
|
]);
|
|
21
|
-
return <Timer.Area
|
|
21
|
+
return <Timer.Area class={clsx(Timer_module.area, local.class)} {...others} data-slot="timer-area"/>;
|
|
22
22
|
}
|
|
23
23
|
function TimerItem(props) {
|
|
24
24
|
const [local, others] = splitProps(props, [
|
|
25
25
|
'class'
|
|
26
26
|
]);
|
|
27
|
-
return <Timer.Item
|
|
27
|
+
return <Timer.Item class={clsx(Timer_module.item, local.class)} {...others} data-slot="timer-item"/>;
|
|
28
28
|
}
|
|
29
29
|
function TimerSeparator(props) {
|
|
30
30
|
const [local, others] = splitProps(props, [
|
|
31
31
|
'class'
|
|
32
32
|
]);
|
|
33
|
-
return <Timer.Separator
|
|
33
|
+
return <Timer.Separator class={clsx(Timer_module.separator, local.class)} {...others} data-slot="timer-separator"/>;
|
|
34
34
|
}
|
|
35
35
|
function TimerControl(props) {
|
|
36
36
|
const [local, others] = splitProps(props, [
|
|
37
37
|
'class'
|
|
38
38
|
]);
|
|
39
|
-
return <Timer.Control
|
|
39
|
+
return <Timer.Control class={clsx(Timer_module.control, local.class)} {...others} data-slot="timer-control"/>;
|
|
40
40
|
}
|
|
41
41
|
function TimerActionTrigger(props) {
|
|
42
42
|
const [local, others] = splitProps(props, [
|
|
43
43
|
'class'
|
|
44
44
|
]);
|
|
45
|
-
return <Timer.ActionTrigger
|
|
45
|
+
return <Timer.ActionTrigger class={clsx(Timer_module.actionTrigger, local.class)} {...others} data-slot="timer-action-trigger"/>;
|
|
46
46
|
}
|
|
47
47
|
const defaultTimerSegmentTypes = [
|
|
48
48
|
'hours',
|
|
@@ -24,11 +24,11 @@ function Toast_Toaster(props) {
|
|
|
24
24
|
return createComponent(OverlayPortal, {
|
|
25
25
|
get children () {
|
|
26
26
|
return createComponent(Toaster, mergeProps({
|
|
27
|
-
"data-slot": "toast-toaster",
|
|
28
27
|
get ["class"] () {
|
|
29
28
|
return clsx(Toast_module.toaster, local.class);
|
|
30
29
|
}
|
|
31
30
|
}, others, {
|
|
31
|
+
"data-slot": "toast-toaster",
|
|
32
32
|
get children () {
|
|
33
33
|
return local.children ?? ((toast)=>createComponent(DefaultToast, {
|
|
34
34
|
toast: toast
|
|
@@ -63,11 +63,12 @@ function ToastRoot(props) {
|
|
|
63
63
|
'class'
|
|
64
64
|
]);
|
|
65
65
|
return createComponent(Toast.Root, mergeProps({
|
|
66
|
-
"data-slot": "toast-root",
|
|
67
66
|
get ["class"] () {
|
|
68
67
|
return clsx(Toast_module.root, local.class);
|
|
69
68
|
}
|
|
70
|
-
}, others
|
|
69
|
+
}, others, {
|
|
70
|
+
"data-slot": "toast-root"
|
|
71
|
+
}));
|
|
71
72
|
}
|
|
72
73
|
function ToastTitle(props) {
|
|
73
74
|
const [local, others] = splitProps(props, [
|
|
@@ -77,11 +78,11 @@ function ToastTitle(props) {
|
|
|
77
78
|
const resolvedChildren = children(()=>local.children);
|
|
78
79
|
const toast = useToastContext();
|
|
79
80
|
return createComponent(Toast.Title, mergeProps({
|
|
80
|
-
"data-slot": "toast-title",
|
|
81
81
|
get ["class"] () {
|
|
82
82
|
return clsx(Toast_module.title, local.class);
|
|
83
83
|
}
|
|
84
84
|
}, others, {
|
|
85
|
+
"data-slot": "toast-title",
|
|
85
86
|
get children () {
|
|
86
87
|
return memo(()=>void 0 === resolvedChildren())() ? toast().title : resolvedChildren();
|
|
87
88
|
}
|
|
@@ -95,11 +96,11 @@ function ToastDescription(props) {
|
|
|
95
96
|
const resolvedChildren = children(()=>local.children);
|
|
96
97
|
const toast = useToastContext();
|
|
97
98
|
return createComponent(Toast.Description, mergeProps({
|
|
98
|
-
"data-slot": "toast-description",
|
|
99
99
|
get ["class"] () {
|
|
100
100
|
return clsx(Toast_module.description, local.class);
|
|
101
101
|
}
|
|
102
102
|
}, others, {
|
|
103
|
+
"data-slot": "toast-description",
|
|
103
104
|
get children () {
|
|
104
105
|
return memo(()=>void 0 === resolvedChildren())() ? toast().description : resolvedChildren();
|
|
105
106
|
}
|
|
@@ -115,11 +116,11 @@ function ToastActionTrigger(props) {
|
|
|
115
116
|
get asChild () {
|
|
116
117
|
return local.asChild;
|
|
117
118
|
},
|
|
118
|
-
"data-slot": "toast-action-trigger",
|
|
119
119
|
get ["class"] () {
|
|
120
120
|
return clsx(!local.asChild && Toast_module.actionTrigger, local.class);
|
|
121
121
|
}
|
|
122
122
|
}, others, {
|
|
123
|
+
"data-slot": "toast-action-trigger",
|
|
123
124
|
get children () {
|
|
124
125
|
return local.children;
|
|
125
126
|
}
|
|
@@ -139,7 +140,6 @@ function ToastCloseTrigger(props) {
|
|
|
139
140
|
get asChild () {
|
|
140
141
|
return local.asChild;
|
|
141
142
|
},
|
|
142
|
-
"data-slot": "toast-close-trigger",
|
|
143
143
|
"aria-label": ariaLabel,
|
|
144
144
|
get ["aria-labelledby"] () {
|
|
145
145
|
return local['aria-labelledby'];
|
|
@@ -148,6 +148,7 @@ function ToastCloseTrigger(props) {
|
|
|
148
148
|
return local.class;
|
|
149
149
|
}
|
|
150
150
|
}, others, {
|
|
151
|
+
"data-slot": "toast-close-trigger",
|
|
151
152
|
get children () {
|
|
152
153
|
return local.children;
|
|
153
154
|
}
|
|
@@ -166,12 +167,13 @@ function ToastCloseTrigger(props) {
|
|
|
166
167
|
return resolvedChildren();
|
|
167
168
|
}
|
|
168
169
|
})),
|
|
169
|
-
"data-slot": "toast-close-trigger",
|
|
170
170
|
"aria-label": ariaLabel,
|
|
171
171
|
get ["aria-labelledby"] () {
|
|
172
172
|
return local['aria-labelledby'];
|
|
173
173
|
}
|
|
174
|
-
}, others
|
|
174
|
+
}, others, {
|
|
175
|
+
"data-slot": "toast-close-trigger"
|
|
176
|
+
}));
|
|
175
177
|
}
|
|
176
178
|
const Toast_Toast = Object.assign(ToastRoot, {
|
|
177
179
|
Root: ToastRoot,
|
|
@@ -14,7 +14,7 @@ function Toast_Toaster(props) {
|
|
|
14
14
|
]);
|
|
15
15
|
return <OverlayPortalProvider portalled={local.portalled ?? true} portalRef={local.portalRef}>
|
|
16
16
|
<OverlayPortal>
|
|
17
|
-
<Toaster
|
|
17
|
+
<Toaster class={clsx(Toast_module.toaster, local.class)} {...others} data-slot="toast-toaster" children={local.children ?? ((toast)=><DefaultToast toast={toast}/>)}/>
|
|
18
18
|
</OverlayPortal>
|
|
19
19
|
</OverlayPortalProvider>;
|
|
20
20
|
}
|
|
@@ -32,7 +32,7 @@ function ToastRoot(props) {
|
|
|
32
32
|
const [local, others] = splitProps(props, [
|
|
33
33
|
'class'
|
|
34
34
|
]);
|
|
35
|
-
return <Toast.Root
|
|
35
|
+
return <Toast.Root class={clsx(Toast_module.root, local.class)} {...others} data-slot="toast-root"/>;
|
|
36
36
|
}
|
|
37
37
|
function ToastTitle(props) {
|
|
38
38
|
const [local, others] = splitProps(props, [
|
|
@@ -41,7 +41,7 @@ function ToastTitle(props) {
|
|
|
41
41
|
]);
|
|
42
42
|
const resolvedChildren = children(()=>local.children);
|
|
43
43
|
const toast = useToastContext();
|
|
44
|
-
return <Toast.Title
|
|
44
|
+
return <Toast.Title class={clsx(Toast_module.title, local.class)} {...others} data-slot="toast-title">
|
|
45
45
|
{void 0 === resolvedChildren() ? toast().title : resolvedChildren()}
|
|
46
46
|
</Toast.Title>;
|
|
47
47
|
}
|
|
@@ -52,7 +52,7 @@ function ToastDescription(props) {
|
|
|
52
52
|
]);
|
|
53
53
|
const resolvedChildren = children(()=>local.children);
|
|
54
54
|
const toast = useToastContext();
|
|
55
|
-
return <Toast.Description
|
|
55
|
+
return <Toast.Description class={clsx(Toast_module.description, local.class)} {...others} data-slot="toast-description">
|
|
56
56
|
{void 0 === resolvedChildren() ? toast().description : resolvedChildren()}
|
|
57
57
|
</Toast.Description>;
|
|
58
58
|
}
|
|
@@ -62,7 +62,7 @@ function ToastActionTrigger(props) {
|
|
|
62
62
|
'children',
|
|
63
63
|
'class'
|
|
64
64
|
]);
|
|
65
|
-
return <Toast.ActionTrigger asChild={local.asChild}
|
|
65
|
+
return <Toast.ActionTrigger asChild={local.asChild} class={clsx(!local.asChild && Toast_module.actionTrigger, local.class)} {...others} data-slot="toast-action-trigger">
|
|
66
66
|
{local.children}
|
|
67
67
|
</Toast.ActionTrigger>;
|
|
68
68
|
}
|
|
@@ -76,12 +76,12 @@ function ToastCloseTrigger(props) {
|
|
|
76
76
|
]);
|
|
77
77
|
const resolvedChildren = children(()=>local.children);
|
|
78
78
|
const ariaLabel = void 0 === local['aria-label'] ? DEFAULT_CLOSE_TRIGGER_LABEL : local['aria-label'];
|
|
79
|
-
if (local.asChild) return <Toast.CloseTrigger asChild={local.asChild}
|
|
79
|
+
if (local.asChild) return <Toast.CloseTrigger asChild={local.asChild} aria-label={ariaLabel} aria-labelledby={local['aria-labelledby']} class={local.class} {...others} data-slot="toast-close-trigger">
|
|
80
80
|
{local.children}
|
|
81
81
|
</Toast.CloseTrigger>;
|
|
82
82
|
return <Toast.CloseTrigger asChild={(triggerProps)=><CloseButton.Root {...triggerProps()} data-slot="toast-close-trigger" aria-label={ariaLabel} aria-labelledby={local['aria-labelledby']} class={clsx(Toast_module.closeTrigger, local.class)}>
|
|
83
83
|
{resolvedChildren()}
|
|
84
|
-
</CloseButton.Root>}
|
|
84
|
+
</CloseButton.Root>} aria-label={ariaLabel} aria-labelledby={local['aria-labelledby']} {...others} data-slot="toast-close-trigger"/>;
|
|
85
85
|
}
|
|
86
86
|
const Toast_Toast = Object.assign(ToastRoot, {
|
|
87
87
|
Root: ToastRoot,
|