@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
|
@@ -19,7 +19,7 @@ function SplitterRoot(props) {
|
|
|
19
19
|
'class',
|
|
20
20
|
'style'
|
|
21
21
|
]);
|
|
22
|
-
return <Splitter.Root asChild={local.asChild}
|
|
22
|
+
return <Splitter.Root asChild={local.asChild} class={clsx(Splitter_module.root, local.class)} style={getRootStyle(local.style)} {...others} data-slot="splitter-root"/>;
|
|
23
23
|
}
|
|
24
24
|
function SplitterRootProvider(props) {
|
|
25
25
|
const [local, others] = splitProps(props, [
|
|
@@ -27,19 +27,19 @@ function SplitterRootProvider(props) {
|
|
|
27
27
|
'class',
|
|
28
28
|
'style'
|
|
29
29
|
]);
|
|
30
|
-
return <Splitter.RootProvider asChild={local.asChild}
|
|
30
|
+
return <Splitter.RootProvider asChild={local.asChild} class={clsx(Splitter_module.root, local.class)} style={getRootStyle(local.style)} {...others} data-slot="splitter-root-provider"/>;
|
|
31
31
|
}
|
|
32
32
|
function SplitterPanel(props) {
|
|
33
33
|
const [local, others] = splitProps(props, [
|
|
34
34
|
'class'
|
|
35
35
|
]);
|
|
36
|
-
return <Splitter.Panel
|
|
36
|
+
return <Splitter.Panel class={clsx(Splitter_module.panel, local.class)} {...others} data-slot="splitter-panel"/>;
|
|
37
37
|
}
|
|
38
38
|
function SplitterResizeTriggerIndicator(props) {
|
|
39
39
|
const [local, others] = splitProps(props, [
|
|
40
40
|
'class'
|
|
41
41
|
]);
|
|
42
|
-
return <Splitter.ResizeTriggerIndicator
|
|
42
|
+
return <Splitter.ResizeTriggerIndicator class={clsx(Splitter_module.resizeTriggerIndicator, local.class)} {...others} data-slot="splitter-resize-trigger-indicator"/>;
|
|
43
43
|
}
|
|
44
44
|
function SplitterResizeTrigger(props) {
|
|
45
45
|
const [local, others] = splitProps(props, [
|
|
@@ -47,7 +47,7 @@ function SplitterResizeTrigger(props) {
|
|
|
47
47
|
'children',
|
|
48
48
|
'class'
|
|
49
49
|
]);
|
|
50
|
-
return <Splitter.ResizeTrigger asChild={local.asChild}
|
|
50
|
+
return <Splitter.ResizeTrigger asChild={local.asChild} class={clsx(Splitter_module.resizeTrigger, local.class)} {...others} data-slot="splitter-resize-trigger">
|
|
51
51
|
{void 0 === local.children && !local.asChild ? <SplitterResizeTriggerIndicator/> : local.children}
|
|
52
52
|
</Splitter.ResizeTrigger>;
|
|
53
53
|
}
|
|
@@ -9,55 +9,60 @@ function StepsRoot(props) {
|
|
|
9
9
|
'class'
|
|
10
10
|
]);
|
|
11
11
|
return createComponent(Steps.Root, mergeProps({
|
|
12
|
-
"data-slot": "steps-root",
|
|
13
12
|
get ["class"] () {
|
|
14
13
|
return clsx(Steps_module.root, local.class);
|
|
15
14
|
}
|
|
16
|
-
}, others
|
|
15
|
+
}, others, {
|
|
16
|
+
"data-slot": "steps-root"
|
|
17
|
+
}));
|
|
17
18
|
}
|
|
18
19
|
function StepsRootProvider(props) {
|
|
19
20
|
const [local, others] = splitProps(props, [
|
|
20
21
|
'class'
|
|
21
22
|
]);
|
|
22
23
|
return createComponent(Steps.RootProvider, mergeProps({
|
|
23
|
-
"data-slot": "steps-root-provider",
|
|
24
24
|
get ["class"] () {
|
|
25
25
|
return clsx(Steps_module.root, local.class);
|
|
26
26
|
}
|
|
27
|
-
}, others
|
|
27
|
+
}, others, {
|
|
28
|
+
"data-slot": "steps-root-provider"
|
|
29
|
+
}));
|
|
28
30
|
}
|
|
29
31
|
function StepsList(props) {
|
|
30
32
|
const [local, others] = splitProps(props, [
|
|
31
33
|
'class'
|
|
32
34
|
]);
|
|
33
35
|
return createComponent(Steps.List, mergeProps({
|
|
34
|
-
"data-slot": "steps-list",
|
|
35
36
|
get ["class"] () {
|
|
36
37
|
return clsx(Steps_module.list, local.class);
|
|
37
38
|
}
|
|
38
|
-
}, others
|
|
39
|
+
}, others, {
|
|
40
|
+
"data-slot": "steps-list"
|
|
41
|
+
}));
|
|
39
42
|
}
|
|
40
43
|
function StepsItem(props) {
|
|
41
44
|
const [local, others] = splitProps(props, [
|
|
42
45
|
'class'
|
|
43
46
|
]);
|
|
44
47
|
return createComponent(Steps.Item, mergeProps({
|
|
45
|
-
"data-slot": "steps-item",
|
|
46
48
|
get ["class"] () {
|
|
47
49
|
return clsx(Steps_module.item, local.class);
|
|
48
50
|
}
|
|
49
|
-
}, others
|
|
51
|
+
}, others, {
|
|
52
|
+
"data-slot": "steps-item"
|
|
53
|
+
}));
|
|
50
54
|
}
|
|
51
55
|
function StepsTrigger(props) {
|
|
52
56
|
const [local, others] = splitProps(props, [
|
|
53
57
|
'class'
|
|
54
58
|
]);
|
|
55
59
|
return createComponent(Steps.Trigger, mergeProps({
|
|
56
|
-
"data-slot": "steps-trigger",
|
|
57
60
|
get ["class"] () {
|
|
58
61
|
return clsx(Steps_module.trigger, local.class);
|
|
59
62
|
}
|
|
60
|
-
}, others
|
|
63
|
+
}, others, {
|
|
64
|
+
"data-slot": "steps-trigger"
|
|
65
|
+
}));
|
|
61
66
|
}
|
|
62
67
|
function StepsIndicator(props) {
|
|
63
68
|
const [local, others] = splitProps(props, [
|
|
@@ -67,11 +72,11 @@ function StepsIndicator(props) {
|
|
|
67
72
|
const resolvedChildren = children(()=>local.children);
|
|
68
73
|
const item = useStepsItemContext();
|
|
69
74
|
return createComponent(Steps.Indicator, mergeProps({
|
|
70
|
-
"data-slot": "steps-indicator",
|
|
71
75
|
get ["class"] () {
|
|
72
76
|
return clsx(Steps_module.indicator, local.class);
|
|
73
77
|
}
|
|
74
78
|
}, others, {
|
|
79
|
+
"data-slot": "steps-indicator",
|
|
75
80
|
get children () {
|
|
76
81
|
return resolvedChildren() ?? (item().completed ? createComponent(CheckIcon, {}) : item().index + 1);
|
|
77
82
|
}
|
|
@@ -82,66 +87,72 @@ function StepsSeparator(props) {
|
|
|
82
87
|
'class'
|
|
83
88
|
]);
|
|
84
89
|
return createComponent(Steps.Separator, mergeProps({
|
|
85
|
-
"data-slot": "steps-separator",
|
|
86
90
|
get ["class"] () {
|
|
87
91
|
return clsx(Steps_module.separator, local.class);
|
|
88
92
|
}
|
|
89
|
-
}, others
|
|
93
|
+
}, others, {
|
|
94
|
+
"data-slot": "steps-separator"
|
|
95
|
+
}));
|
|
90
96
|
}
|
|
91
97
|
function StepsContent(props) {
|
|
92
98
|
const [local, others] = splitProps(props, [
|
|
93
99
|
'class'
|
|
94
100
|
]);
|
|
95
101
|
return createComponent(Steps.Content, mergeProps({
|
|
96
|
-
"data-slot": "steps-content",
|
|
97
102
|
get ["class"] () {
|
|
98
103
|
return clsx(Steps_module.content, local.class);
|
|
99
104
|
}
|
|
100
|
-
}, others
|
|
105
|
+
}, others, {
|
|
106
|
+
"data-slot": "steps-content"
|
|
107
|
+
}));
|
|
101
108
|
}
|
|
102
109
|
function StepsCompletedContent(props) {
|
|
103
110
|
const [local, others] = splitProps(props, [
|
|
104
111
|
'class'
|
|
105
112
|
]);
|
|
106
113
|
return createComponent(Steps.CompletedContent, mergeProps({
|
|
107
|
-
"data-slot": "steps-completed-content",
|
|
108
114
|
get ["class"] () {
|
|
109
115
|
return clsx(Steps_module.completedContent, local.class);
|
|
110
116
|
}
|
|
111
|
-
}, others
|
|
117
|
+
}, others, {
|
|
118
|
+
"data-slot": "steps-completed-content"
|
|
119
|
+
}));
|
|
112
120
|
}
|
|
113
121
|
function StepsPrevTrigger(props) {
|
|
114
122
|
const [local, others] = splitProps(props, [
|
|
115
123
|
'class'
|
|
116
124
|
]);
|
|
117
125
|
return createComponent(Steps.PrevTrigger, mergeProps({
|
|
118
|
-
"data-slot": "steps-prev-trigger",
|
|
119
126
|
get ["class"] () {
|
|
120
127
|
return clsx(Steps_module.prevTrigger, local.class);
|
|
121
128
|
}
|
|
122
|
-
}, others
|
|
129
|
+
}, others, {
|
|
130
|
+
"data-slot": "steps-prev-trigger"
|
|
131
|
+
}));
|
|
123
132
|
}
|
|
124
133
|
function StepsNextTrigger(props) {
|
|
125
134
|
const [local, others] = splitProps(props, [
|
|
126
135
|
'class'
|
|
127
136
|
]);
|
|
128
137
|
return createComponent(Steps.NextTrigger, mergeProps({
|
|
129
|
-
"data-slot": "steps-next-trigger",
|
|
130
138
|
get ["class"] () {
|
|
131
139
|
return clsx(Steps_module.nextTrigger, local.class);
|
|
132
140
|
}
|
|
133
|
-
}, others
|
|
141
|
+
}, others, {
|
|
142
|
+
"data-slot": "steps-next-trigger"
|
|
143
|
+
}));
|
|
134
144
|
}
|
|
135
145
|
function StepsProgress(props) {
|
|
136
146
|
const [local, others] = splitProps(props, [
|
|
137
147
|
'class'
|
|
138
148
|
]);
|
|
139
149
|
return createComponent(Steps.Progress, mergeProps({
|
|
140
|
-
"data-slot": "steps-progress",
|
|
141
150
|
get ["class"] () {
|
|
142
151
|
return clsx(Steps_module.progress, local.class);
|
|
143
152
|
}
|
|
144
|
-
}, others
|
|
153
|
+
}, others, {
|
|
154
|
+
"data-slot": "steps-progress"
|
|
155
|
+
}));
|
|
145
156
|
}
|
|
146
157
|
const Steps_Steps = Object.assign(StepsRoot, {
|
|
147
158
|
Root: StepsRoot,
|
|
@@ -7,31 +7,31 @@ function StepsRoot(props) {
|
|
|
7
7
|
const [local, others] = splitProps(props, [
|
|
8
8
|
'class'
|
|
9
9
|
]);
|
|
10
|
-
return <Steps.Root
|
|
10
|
+
return <Steps.Root class={clsx(Steps_module.root, local.class)} {...others} data-slot="steps-root"/>;
|
|
11
11
|
}
|
|
12
12
|
function StepsRootProvider(props) {
|
|
13
13
|
const [local, others] = splitProps(props, [
|
|
14
14
|
'class'
|
|
15
15
|
]);
|
|
16
|
-
return <Steps.RootProvider
|
|
16
|
+
return <Steps.RootProvider class={clsx(Steps_module.root, local.class)} {...others} data-slot="steps-root-provider"/>;
|
|
17
17
|
}
|
|
18
18
|
function StepsList(props) {
|
|
19
19
|
const [local, others] = splitProps(props, [
|
|
20
20
|
'class'
|
|
21
21
|
]);
|
|
22
|
-
return <Steps.List
|
|
22
|
+
return <Steps.List class={clsx(Steps_module.list, local.class)} {...others} data-slot="steps-list"/>;
|
|
23
23
|
}
|
|
24
24
|
function StepsItem(props) {
|
|
25
25
|
const [local, others] = splitProps(props, [
|
|
26
26
|
'class'
|
|
27
27
|
]);
|
|
28
|
-
return <Steps.Item
|
|
28
|
+
return <Steps.Item class={clsx(Steps_module.item, local.class)} {...others} data-slot="steps-item"/>;
|
|
29
29
|
}
|
|
30
30
|
function StepsTrigger(props) {
|
|
31
31
|
const [local, others] = splitProps(props, [
|
|
32
32
|
'class'
|
|
33
33
|
]);
|
|
34
|
-
return <Steps.Trigger
|
|
34
|
+
return <Steps.Trigger class={clsx(Steps_module.trigger, local.class)} {...others} data-slot="steps-trigger"/>;
|
|
35
35
|
}
|
|
36
36
|
function StepsIndicator(props) {
|
|
37
37
|
const [local, others] = splitProps(props, [
|
|
@@ -40,7 +40,7 @@ function StepsIndicator(props) {
|
|
|
40
40
|
]);
|
|
41
41
|
const resolvedChildren = children(()=>local.children);
|
|
42
42
|
const item = useStepsItemContext();
|
|
43
|
-
return <Steps.Indicator
|
|
43
|
+
return <Steps.Indicator class={clsx(Steps_module.indicator, local.class)} {...others} data-slot="steps-indicator">
|
|
44
44
|
{resolvedChildren() ?? (item().completed ? <CheckIcon/> : item().index + 1)}
|
|
45
45
|
</Steps.Indicator>;
|
|
46
46
|
}
|
|
@@ -48,37 +48,37 @@ function StepsSeparator(props) {
|
|
|
48
48
|
const [local, others] = splitProps(props, [
|
|
49
49
|
'class'
|
|
50
50
|
]);
|
|
51
|
-
return <Steps.Separator
|
|
51
|
+
return <Steps.Separator class={clsx(Steps_module.separator, local.class)} {...others} data-slot="steps-separator"/>;
|
|
52
52
|
}
|
|
53
53
|
function StepsContent(props) {
|
|
54
54
|
const [local, others] = splitProps(props, [
|
|
55
55
|
'class'
|
|
56
56
|
]);
|
|
57
|
-
return <Steps.Content
|
|
57
|
+
return <Steps.Content class={clsx(Steps_module.content, local.class)} {...others} data-slot="steps-content"/>;
|
|
58
58
|
}
|
|
59
59
|
function StepsCompletedContent(props) {
|
|
60
60
|
const [local, others] = splitProps(props, [
|
|
61
61
|
'class'
|
|
62
62
|
]);
|
|
63
|
-
return <Steps.CompletedContent
|
|
63
|
+
return <Steps.CompletedContent class={clsx(Steps_module.completedContent, local.class)} {...others} data-slot="steps-completed-content"/>;
|
|
64
64
|
}
|
|
65
65
|
function StepsPrevTrigger(props) {
|
|
66
66
|
const [local, others] = splitProps(props, [
|
|
67
67
|
'class'
|
|
68
68
|
]);
|
|
69
|
-
return <Steps.PrevTrigger
|
|
69
|
+
return <Steps.PrevTrigger class={clsx(Steps_module.prevTrigger, local.class)} {...others} data-slot="steps-prev-trigger"/>;
|
|
70
70
|
}
|
|
71
71
|
function StepsNextTrigger(props) {
|
|
72
72
|
const [local, others] = splitProps(props, [
|
|
73
73
|
'class'
|
|
74
74
|
]);
|
|
75
|
-
return <Steps.NextTrigger
|
|
75
|
+
return <Steps.NextTrigger class={clsx(Steps_module.nextTrigger, local.class)} {...others} data-slot="steps-next-trigger"/>;
|
|
76
76
|
}
|
|
77
77
|
function StepsProgress(props) {
|
|
78
78
|
const [local, others] = splitProps(props, [
|
|
79
79
|
'class'
|
|
80
80
|
]);
|
|
81
|
-
return <Steps.Progress
|
|
81
|
+
return <Steps.Progress class={clsx(Steps_module.progress, local.class)} {...others} data-slot="steps-progress"/>;
|
|
82
82
|
}
|
|
83
83
|
const Steps_Steps = Object.assign(StepsRoot, {
|
|
84
84
|
Root: StepsRoot,
|
|
@@ -9,14 +9,15 @@ function SwapRoot(props) {
|
|
|
9
9
|
'class'
|
|
10
10
|
]);
|
|
11
11
|
return createComponent(Swap.Root, mergeProps({
|
|
12
|
-
"data-slot": "swap-root",
|
|
13
12
|
get ["data-animation"] () {
|
|
14
13
|
return local.animation ?? 'scale';
|
|
15
14
|
},
|
|
16
15
|
get ["class"] () {
|
|
17
16
|
return clsx(Swap_module.root, local.class);
|
|
18
17
|
}
|
|
19
|
-
}, others
|
|
18
|
+
}, others, {
|
|
19
|
+
"data-slot": "swap-root"
|
|
20
|
+
}));
|
|
20
21
|
}
|
|
21
22
|
function SwapRootProvider(props) {
|
|
22
23
|
const [local, others] = splitProps(props, [
|
|
@@ -24,25 +25,27 @@ function SwapRootProvider(props) {
|
|
|
24
25
|
'class'
|
|
25
26
|
]);
|
|
26
27
|
return createComponent(Swap.RootProvider, mergeProps({
|
|
27
|
-
"data-slot": "swap-root-provider",
|
|
28
28
|
get ["data-animation"] () {
|
|
29
29
|
return local.animation ?? 'scale';
|
|
30
30
|
},
|
|
31
31
|
get ["class"] () {
|
|
32
32
|
return clsx(Swap_module.root, local.class);
|
|
33
33
|
}
|
|
34
|
-
}, others
|
|
34
|
+
}, others, {
|
|
35
|
+
"data-slot": "swap-root-provider"
|
|
36
|
+
}));
|
|
35
37
|
}
|
|
36
38
|
function SwapIndicator(props) {
|
|
37
39
|
const [local, others] = splitProps(props, [
|
|
38
40
|
'class'
|
|
39
41
|
]);
|
|
40
42
|
return createComponent(Swap.Indicator, mergeProps({
|
|
41
|
-
"data-slot": "swap-indicator",
|
|
42
43
|
get ["class"] () {
|
|
43
44
|
return clsx(Swap_module.indicator, local.class);
|
|
44
45
|
}
|
|
45
|
-
}, others
|
|
46
|
+
}, others, {
|
|
47
|
+
"data-slot": "swap-indicator"
|
|
48
|
+
}));
|
|
46
49
|
}
|
|
47
50
|
const Swap_Swap = Object.assign(SwapRoot, {
|
|
48
51
|
Root: SwapRoot,
|
|
@@ -7,20 +7,20 @@ function SwapRoot(props) {
|
|
|
7
7
|
'animation',
|
|
8
8
|
'class'
|
|
9
9
|
]);
|
|
10
|
-
return <Swap.Root data-
|
|
10
|
+
return <Swap.Root data-animation={local.animation ?? 'scale'} class={clsx(Swap_module.root, local.class)} {...others} data-slot="swap-root"/>;
|
|
11
11
|
}
|
|
12
12
|
function SwapRootProvider(props) {
|
|
13
13
|
const [local, others] = splitProps(props, [
|
|
14
14
|
'animation',
|
|
15
15
|
'class'
|
|
16
16
|
]);
|
|
17
|
-
return <Swap.RootProvider data-
|
|
17
|
+
return <Swap.RootProvider data-animation={local.animation ?? 'scale'} class={clsx(Swap_module.root, local.class)} {...others} data-slot="swap-root-provider"/>;
|
|
18
18
|
}
|
|
19
19
|
function SwapIndicator(props) {
|
|
20
20
|
const [local, others] = splitProps(props, [
|
|
21
21
|
'class'
|
|
22
22
|
]);
|
|
23
|
-
return <Swap.Indicator
|
|
23
|
+
return <Swap.Indicator class={clsx(Swap_module.indicator, local.class)} {...others} data-slot="swap-indicator"/>;
|
|
24
24
|
}
|
|
25
25
|
const Swap_Swap = Object.assign(SwapRoot, {
|
|
26
26
|
Root: SwapRoot,
|
|
@@ -14,7 +14,6 @@ function SwitchRoot(props) {
|
|
|
14
14
|
get asChild () {
|
|
15
15
|
return local.asChild;
|
|
16
16
|
},
|
|
17
|
-
"data-slot": "switch-root",
|
|
18
17
|
get ["data-size"] () {
|
|
19
18
|
return local.size ?? 'md';
|
|
20
19
|
},
|
|
@@ -22,6 +21,7 @@ function SwitchRoot(props) {
|
|
|
22
21
|
return clsx(Switch_module.root, local.class);
|
|
23
22
|
}
|
|
24
23
|
}, others, {
|
|
24
|
+
"data-slot": "switch-root",
|
|
25
25
|
get children () {
|
|
26
26
|
return local.children;
|
|
27
27
|
}
|
|
@@ -38,7 +38,6 @@ function SwitchRootProvider(props) {
|
|
|
38
38
|
get asChild () {
|
|
39
39
|
return local.asChild;
|
|
40
40
|
},
|
|
41
|
-
"data-slot": "switch-root-provider",
|
|
42
41
|
get ["data-size"] () {
|
|
43
42
|
return local.size ?? 'md';
|
|
44
43
|
},
|
|
@@ -46,6 +45,7 @@ function SwitchRootProvider(props) {
|
|
|
46
45
|
return clsx(Switch_module.root, local.class);
|
|
47
46
|
}
|
|
48
47
|
}, others, {
|
|
48
|
+
"data-slot": "switch-root-provider",
|
|
49
49
|
get children () {
|
|
50
50
|
return local.children;
|
|
51
51
|
}
|
|
@@ -58,11 +58,11 @@ function SwitchControl(props) {
|
|
|
58
58
|
]);
|
|
59
59
|
const resolvedChildren = children(()=>local.children);
|
|
60
60
|
return createComponent(Switch.Control, mergeProps({
|
|
61
|
-
"data-slot": "switch-control",
|
|
62
61
|
get ["class"] () {
|
|
63
62
|
return clsx(Switch_module.control, local.class);
|
|
64
63
|
}
|
|
65
64
|
}, others, {
|
|
65
|
+
"data-slot": "switch-control",
|
|
66
66
|
get children () {
|
|
67
67
|
return resolvedChildren() ?? createComponent(SwitchThumb, {});
|
|
68
68
|
}
|
|
@@ -73,22 +73,24 @@ function SwitchThumb(props) {
|
|
|
73
73
|
'class'
|
|
74
74
|
]);
|
|
75
75
|
return createComponent(Switch.Thumb, mergeProps({
|
|
76
|
-
"data-slot": "switch-thumb",
|
|
77
76
|
get ["class"] () {
|
|
78
77
|
return clsx(Switch_module.thumb, local.class);
|
|
79
78
|
}
|
|
80
|
-
}, others
|
|
79
|
+
}, others, {
|
|
80
|
+
"data-slot": "switch-thumb"
|
|
81
|
+
}));
|
|
81
82
|
}
|
|
82
83
|
function SwitchLabel(props) {
|
|
83
84
|
const [local, others] = splitProps(props, [
|
|
84
85
|
'class'
|
|
85
86
|
]);
|
|
86
87
|
return createComponent(Switch.Label, mergeProps({
|
|
87
|
-
"data-slot": "switch-label",
|
|
88
88
|
get ["class"] () {
|
|
89
89
|
return clsx(Switch_module.label, local.class);
|
|
90
90
|
}
|
|
91
|
-
}, others
|
|
91
|
+
}, others, {
|
|
92
|
+
"data-slot": "switch-label"
|
|
93
|
+
}));
|
|
92
94
|
}
|
|
93
95
|
const Switch_Switch = Object.assign(SwitchRoot, {
|
|
94
96
|
Root: SwitchRoot,
|
|
@@ -9,7 +9,7 @@ function SwitchRoot(props) {
|
|
|
9
9
|
'class',
|
|
10
10
|
'size'
|
|
11
11
|
]);
|
|
12
|
-
return <Switch.Root asChild={local.asChild} data-
|
|
12
|
+
return <Switch.Root asChild={local.asChild} data-size={local.size ?? 'md'} class={clsx(Switch_module.root, local.class)} {...others} data-slot="switch-root">
|
|
13
13
|
{local.children}
|
|
14
14
|
</Switch.Root>;
|
|
15
15
|
}
|
|
@@ -20,7 +20,7 @@ function SwitchRootProvider(props) {
|
|
|
20
20
|
'class',
|
|
21
21
|
'size'
|
|
22
22
|
]);
|
|
23
|
-
return <Switch.RootProvider asChild={local.asChild} data-
|
|
23
|
+
return <Switch.RootProvider asChild={local.asChild} data-size={local.size ?? 'md'} class={clsx(Switch_module.root, local.class)} {...others} data-slot="switch-root-provider">
|
|
24
24
|
{local.children}
|
|
25
25
|
</Switch.RootProvider>;
|
|
26
26
|
}
|
|
@@ -30,7 +30,7 @@ function SwitchControl(props) {
|
|
|
30
30
|
'class'
|
|
31
31
|
]);
|
|
32
32
|
const resolvedChildren = children(()=>local.children);
|
|
33
|
-
return <Switch.Control
|
|
33
|
+
return <Switch.Control class={clsx(Switch_module.control, local.class)} {...others} data-slot="switch-control">
|
|
34
34
|
{resolvedChildren() ?? <SwitchThumb/>}
|
|
35
35
|
</Switch.Control>;
|
|
36
36
|
}
|
|
@@ -38,13 +38,13 @@ function SwitchThumb(props) {
|
|
|
38
38
|
const [local, others] = splitProps(props, [
|
|
39
39
|
'class'
|
|
40
40
|
]);
|
|
41
|
-
return <Switch.Thumb
|
|
41
|
+
return <Switch.Thumb class={clsx(Switch_module.thumb, local.class)} {...others} data-slot="switch-thumb"/>;
|
|
42
42
|
}
|
|
43
43
|
function SwitchLabel(props) {
|
|
44
44
|
const [local, others] = splitProps(props, [
|
|
45
45
|
'class'
|
|
46
46
|
]);
|
|
47
|
-
return <Switch.Label
|
|
47
|
+
return <Switch.Label class={clsx(Switch_module.label, local.class)} {...others} data-slot="switch-label"/>;
|
|
48
48
|
}
|
|
49
49
|
const Switch_Switch = Object.assign(SwitchRoot, {
|
|
50
50
|
Root: SwitchRoot,
|
|
@@ -10,7 +10,6 @@ function TabsRoot(props) {
|
|
|
10
10
|
'variant'
|
|
11
11
|
]);
|
|
12
12
|
return createComponent(Tabs.Root, mergeProps({
|
|
13
|
-
"data-slot": "tabs-root",
|
|
14
13
|
get ["data-variant"] () {
|
|
15
14
|
return memo(()=>'vertical' === local.orientation)() ? 'default' : local.variant ?? 'default';
|
|
16
15
|
},
|
|
@@ -20,7 +19,9 @@ function TabsRoot(props) {
|
|
|
20
19
|
get orientation () {
|
|
21
20
|
return local.orientation;
|
|
22
21
|
}
|
|
23
|
-
}, others
|
|
22
|
+
}, others, {
|
|
23
|
+
"data-slot": "tabs-root"
|
|
24
|
+
}));
|
|
24
25
|
}
|
|
25
26
|
function TabsRootProvider(props) {
|
|
26
27
|
const [local, others] = splitProps(props, [
|
|
@@ -30,7 +31,6 @@ function TabsRootProvider(props) {
|
|
|
30
31
|
]);
|
|
31
32
|
const orientation = ()=>local.value().getRootProps()['data-orientation'];
|
|
32
33
|
return createComponent(Tabs.RootProvider, mergeProps({
|
|
33
|
-
"data-slot": "tabs-root-provider",
|
|
34
34
|
get ["data-variant"] () {
|
|
35
35
|
return memo(()=>'vertical' === orientation())() ? 'default' : local.variant ?? 'default';
|
|
36
36
|
},
|
|
@@ -40,51 +40,57 @@ function TabsRootProvider(props) {
|
|
|
40
40
|
get value () {
|
|
41
41
|
return local.value;
|
|
42
42
|
}
|
|
43
|
-
}, others
|
|
43
|
+
}, others, {
|
|
44
|
+
"data-slot": "tabs-root-provider"
|
|
45
|
+
}));
|
|
44
46
|
}
|
|
45
47
|
function TabsList(props) {
|
|
46
48
|
const [local, others] = splitProps(props, [
|
|
47
49
|
'class'
|
|
48
50
|
]);
|
|
49
51
|
return createComponent(Tabs.List, mergeProps({
|
|
50
|
-
"data-slot": "tabs-list",
|
|
51
52
|
get ["class"] () {
|
|
52
53
|
return clsx(Tabs_module.list, local.class);
|
|
53
54
|
}
|
|
54
|
-
}, others
|
|
55
|
+
}, others, {
|
|
56
|
+
"data-slot": "tabs-list"
|
|
57
|
+
}));
|
|
55
58
|
}
|
|
56
59
|
function TabsTrigger(props) {
|
|
57
60
|
const [local, others] = splitProps(props, [
|
|
58
61
|
'class'
|
|
59
62
|
]);
|
|
60
63
|
return createComponent(Tabs.Trigger, mergeProps({
|
|
61
|
-
"data-slot": "tabs-trigger",
|
|
62
64
|
get ["class"] () {
|
|
63
65
|
return clsx(Tabs_module.trigger, local.class);
|
|
64
66
|
}
|
|
65
|
-
}, others
|
|
67
|
+
}, others, {
|
|
68
|
+
"data-slot": "tabs-trigger"
|
|
69
|
+
}));
|
|
66
70
|
}
|
|
67
71
|
function TabsIndicator(props) {
|
|
68
72
|
const [local, others] = splitProps(props, [
|
|
69
73
|
'class'
|
|
70
74
|
]);
|
|
71
75
|
return createComponent(Tabs.Indicator, mergeProps({
|
|
72
|
-
"data-slot": "tabs-indicator",
|
|
73
76
|
get ["class"] () {
|
|
74
77
|
return clsx(Tabs_module.indicator, local.class);
|
|
75
78
|
}
|
|
76
|
-
}, others
|
|
79
|
+
}, others, {
|
|
80
|
+
"data-slot": "tabs-indicator"
|
|
81
|
+
}));
|
|
77
82
|
}
|
|
78
83
|
function TabsContent(props) {
|
|
79
84
|
const [local, others] = splitProps(props, [
|
|
80
85
|
'class'
|
|
81
86
|
]);
|
|
82
87
|
return createComponent(Tabs.Content, mergeProps({
|
|
83
|
-
"data-slot": "tabs-content",
|
|
84
88
|
get ["class"] () {
|
|
85
89
|
return clsx(Tabs_module.content, local.class);
|
|
86
90
|
}
|
|
87
|
-
}, others
|
|
91
|
+
}, others, {
|
|
92
|
+
"data-slot": "tabs-content"
|
|
93
|
+
}));
|
|
88
94
|
}
|
|
89
95
|
const Tabs_Tabs = Object.assign(TabsRoot, {
|
|
90
96
|
Root: TabsRoot,
|
|
@@ -8,7 +8,7 @@ function TabsRoot(props) {
|
|
|
8
8
|
'orientation',
|
|
9
9
|
'variant'
|
|
10
10
|
]);
|
|
11
|
-
return <Tabs.Root data-
|
|
11
|
+
return <Tabs.Root data-variant={'vertical' === local.orientation ? 'default' : local.variant ?? 'default'} class={clsx(Tabs_module.root, local.class)} orientation={local.orientation} {...others} data-slot="tabs-root"/>;
|
|
12
12
|
}
|
|
13
13
|
function TabsRootProvider(props) {
|
|
14
14
|
const [local, others] = splitProps(props, [
|
|
@@ -17,31 +17,31 @@ function TabsRootProvider(props) {
|
|
|
17
17
|
'variant'
|
|
18
18
|
]);
|
|
19
19
|
const orientation = ()=>local.value().getRootProps()['data-orientation'];
|
|
20
|
-
return <Tabs.RootProvider data-
|
|
20
|
+
return <Tabs.RootProvider data-variant={'vertical' === orientation() ? 'default' : local.variant ?? 'default'} class={clsx(Tabs_module.root, local.class)} value={local.value} {...others} data-slot="tabs-root-provider"/>;
|
|
21
21
|
}
|
|
22
22
|
function TabsList(props) {
|
|
23
23
|
const [local, others] = splitProps(props, [
|
|
24
24
|
'class'
|
|
25
25
|
]);
|
|
26
|
-
return <Tabs.List
|
|
26
|
+
return <Tabs.List class={clsx(Tabs_module.list, local.class)} {...others} data-slot="tabs-list"/>;
|
|
27
27
|
}
|
|
28
28
|
function TabsTrigger(props) {
|
|
29
29
|
const [local, others] = splitProps(props, [
|
|
30
30
|
'class'
|
|
31
31
|
]);
|
|
32
|
-
return <Tabs.Trigger
|
|
32
|
+
return <Tabs.Trigger class={clsx(Tabs_module.trigger, local.class)} {...others} data-slot="tabs-trigger"/>;
|
|
33
33
|
}
|
|
34
34
|
function TabsIndicator(props) {
|
|
35
35
|
const [local, others] = splitProps(props, [
|
|
36
36
|
'class'
|
|
37
37
|
]);
|
|
38
|
-
return <Tabs.Indicator
|
|
38
|
+
return <Tabs.Indicator class={clsx(Tabs_module.indicator, local.class)} {...others} data-slot="tabs-indicator"/>;
|
|
39
39
|
}
|
|
40
40
|
function TabsContent(props) {
|
|
41
41
|
const [local, others] = splitProps(props, [
|
|
42
42
|
'class'
|
|
43
43
|
]);
|
|
44
|
-
return <Tabs.Content
|
|
44
|
+
return <Tabs.Content class={clsx(Tabs_module.content, local.class)} {...others} data-slot="tabs-content"/>;
|
|
45
45
|
}
|
|
46
46
|
const Tabs_Tabs = Object.assign(TabsRoot, {
|
|
47
47
|
Root: TabsRoot,
|