@moduix/solid 1.0.0 → 1.1.1
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 +72 -53
- package/dist/components/command-palette/CommandPalette.jsx +29 -32
- 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 +9 -10
|
@@ -40,34 +40,34 @@ function PopoverAnchor(props) {
|
|
|
40
40
|
const [local, others] = splitProps(props, [
|
|
41
41
|
'class'
|
|
42
42
|
]);
|
|
43
|
-
return <Popover.Anchor
|
|
43
|
+
return <Popover.Anchor class={local.class} {...others} data-slot="popover-anchor"/>;
|
|
44
44
|
}
|
|
45
45
|
function PopoverTrigger(props) {
|
|
46
46
|
const [local, others] = splitProps(props, [
|
|
47
47
|
'asChild',
|
|
48
48
|
'class'
|
|
49
49
|
]);
|
|
50
|
-
return <Popover.Trigger asChild={local.asChild}
|
|
50
|
+
return <Popover.Trigger asChild={local.asChild} class={clsx(!local.asChild && Popover_module.trigger, local.class)} {...others} data-slot="popover-trigger"/>;
|
|
51
51
|
}
|
|
52
52
|
function PopoverIndicator(props) {
|
|
53
53
|
const [local, others] = splitProps(props, [
|
|
54
54
|
'class'
|
|
55
55
|
]);
|
|
56
|
-
return <Popover.Indicator
|
|
56
|
+
return <Popover.Indicator class={local.class} {...others} data-slot="popover-indicator"/>;
|
|
57
57
|
}
|
|
58
58
|
function PopoverPositioner(props) {
|
|
59
59
|
const [local, others] = splitProps(props, [
|
|
60
60
|
'class'
|
|
61
61
|
]);
|
|
62
62
|
return <OverlayPortal>
|
|
63
|
-
<Popover.Positioner
|
|
63
|
+
<Popover.Positioner class={clsx(Popover_module.positioner, local.class)} {...others} data-slot="popover-positioner"/>
|
|
64
64
|
</OverlayPortal>;
|
|
65
65
|
}
|
|
66
66
|
function PopoverContent(props) {
|
|
67
67
|
const [local, others] = splitProps(props, [
|
|
68
68
|
'class'
|
|
69
69
|
]);
|
|
70
|
-
return <Popover.Content
|
|
70
|
+
return <Popover.Content class={clsx(Popover_module.content, local.class)} {...others} data-slot="popover-content"/>;
|
|
71
71
|
}
|
|
72
72
|
function PopoverArrow(props) {
|
|
73
73
|
const [local, others] = splitProps(props, [
|
|
@@ -75,7 +75,7 @@ function PopoverArrow(props) {
|
|
|
75
75
|
'class'
|
|
76
76
|
]);
|
|
77
77
|
const resolvedChildren = children(()=>local.children);
|
|
78
|
-
return <Popover.Arrow
|
|
78
|
+
return <Popover.Arrow class={clsx(Popover_module.arrow, local.class)} {...others} data-slot="popover-arrow">
|
|
79
79
|
{resolvedChildren() ?? <PopoverArrowTip/>}
|
|
80
80
|
</Popover.Arrow>;
|
|
81
81
|
}
|
|
@@ -83,26 +83,26 @@ function PopoverArrowTip(props) {
|
|
|
83
83
|
const [local, others] = splitProps(props, [
|
|
84
84
|
'class'
|
|
85
85
|
]);
|
|
86
|
-
return <Popover.ArrowTip
|
|
86
|
+
return <Popover.ArrowTip class={clsx(Popover_module.arrowTip, local.class)} {...others} data-slot="popover-arrow-tip"/>;
|
|
87
87
|
}
|
|
88
88
|
function PopoverTitle(props) {
|
|
89
89
|
const [local, others] = splitProps(props, [
|
|
90
90
|
'class'
|
|
91
91
|
]);
|
|
92
|
-
return <Popover.Title
|
|
92
|
+
return <Popover.Title class={clsx(Popover_module.title, local.class)} {...others} data-slot="popover-title"/>;
|
|
93
93
|
}
|
|
94
94
|
function PopoverDescription(props) {
|
|
95
95
|
const [local, others] = splitProps(props, [
|
|
96
96
|
'class'
|
|
97
97
|
]);
|
|
98
|
-
return <Popover.Description
|
|
98
|
+
return <Popover.Description class={clsx(Popover_module.description, local.class)} {...others} data-slot="popover-description"/>;
|
|
99
99
|
}
|
|
100
100
|
function PopoverCloseTrigger(props) {
|
|
101
101
|
const [local, others] = splitProps(props, [
|
|
102
102
|
'asChild',
|
|
103
103
|
'class'
|
|
104
104
|
]);
|
|
105
|
-
return <Popover.CloseTrigger asChild={local.asChild}
|
|
105
|
+
return <Popover.CloseTrigger asChild={local.asChild} class={clsx(!local.asChild && Popover_module.closeTrigger, local.class)} {...others} data-slot="popover-close-trigger"/>;
|
|
106
106
|
}
|
|
107
107
|
function PopoverCloseIcon(props) {
|
|
108
108
|
const [local, others] = splitProps(props, [
|
|
@@ -120,19 +120,19 @@ function PopoverHeader(props) {
|
|
|
120
120
|
const [local, others] = splitProps(props, [
|
|
121
121
|
'class'
|
|
122
122
|
]);
|
|
123
|
-
return <ark.div
|
|
123
|
+
return <ark.div class={clsx(Popover_module.header, local.class)} {...others} data-slot="popover-header"/>;
|
|
124
124
|
}
|
|
125
125
|
function PopoverBody(props) {
|
|
126
126
|
const [local, others] = splitProps(props, [
|
|
127
127
|
'class'
|
|
128
128
|
]);
|
|
129
|
-
return <ark.div
|
|
129
|
+
return <ark.div class={clsx(Popover_module.body, local.class)} {...others} data-slot="popover-body"/>;
|
|
130
130
|
}
|
|
131
131
|
function PopoverFooter(props) {
|
|
132
132
|
const [local, others] = splitProps(props, [
|
|
133
133
|
'class'
|
|
134
134
|
]);
|
|
135
|
-
return <ark.div
|
|
135
|
+
return <ark.div class={clsx(Popover_module.footer, local.class)} {...others} data-slot="popover-footer"/>;
|
|
136
136
|
}
|
|
137
137
|
const Popover_Popover = Object.assign(PopoverRoot, {
|
|
138
138
|
Root: PopoverRoot,
|
|
@@ -13,11 +13,11 @@ function ProgressCircularRoot(props) {
|
|
|
13
13
|
get asChild () {
|
|
14
14
|
return local.asChild;
|
|
15
15
|
},
|
|
16
|
-
"data-slot": "progress-circular-root",
|
|
17
16
|
get ["class"] () {
|
|
18
17
|
return clsx(ProgressCircular_module.root, local.class);
|
|
19
18
|
}
|
|
20
19
|
}, others, {
|
|
20
|
+
"data-slot": "progress-circular-root",
|
|
21
21
|
get children () {
|
|
22
22
|
return local.children;
|
|
23
23
|
}
|
|
@@ -33,11 +33,11 @@ function ProgressCircularRootProvider(props) {
|
|
|
33
33
|
get asChild () {
|
|
34
34
|
return local.asChild;
|
|
35
35
|
},
|
|
36
|
-
"data-slot": "progress-circular-root-provider",
|
|
37
36
|
get ["class"] () {
|
|
38
37
|
return clsx(ProgressCircular_module.root, local.class);
|
|
39
38
|
}
|
|
40
39
|
}, others, {
|
|
40
|
+
"data-slot": "progress-circular-root-provider",
|
|
41
41
|
get children () {
|
|
42
42
|
return local.children;
|
|
43
43
|
}
|
|
@@ -52,11 +52,12 @@ function ProgressCircularLabel(props) {
|
|
|
52
52
|
get asChild () {
|
|
53
53
|
return local.asChild;
|
|
54
54
|
},
|
|
55
|
-
"data-slot": "progress-circular-label",
|
|
56
55
|
get ["class"] () {
|
|
57
56
|
return clsx(ProgressCircular_module.label, local.class);
|
|
58
57
|
}
|
|
59
|
-
}, others
|
|
58
|
+
}, others, {
|
|
59
|
+
"data-slot": "progress-circular-label"
|
|
60
|
+
}));
|
|
60
61
|
}
|
|
61
62
|
function ProgressCircularValueText(props) {
|
|
62
63
|
const [local, others] = splitProps(props, [
|
|
@@ -67,11 +68,12 @@ function ProgressCircularValueText(props) {
|
|
|
67
68
|
get asChild () {
|
|
68
69
|
return local.asChild;
|
|
69
70
|
},
|
|
70
|
-
"data-slot": "progress-circular-value-text",
|
|
71
71
|
get ["class"] () {
|
|
72
72
|
return clsx(ProgressCircular_module.valueText, local.class);
|
|
73
73
|
}
|
|
74
|
-
}, others
|
|
74
|
+
}, others, {
|
|
75
|
+
"data-slot": "progress-circular-value-text"
|
|
76
|
+
}));
|
|
75
77
|
}
|
|
76
78
|
function ProgressCircularCircle(props) {
|
|
77
79
|
const [local, others] = splitProps(props, [
|
|
@@ -83,11 +85,11 @@ function ProgressCircularCircle(props) {
|
|
|
83
85
|
get asChild () {
|
|
84
86
|
return local.asChild;
|
|
85
87
|
},
|
|
86
|
-
"data-slot": "progress-circular-circle",
|
|
87
88
|
get ["class"] () {
|
|
88
89
|
return clsx(ProgressCircular_module.circle, local.class);
|
|
89
90
|
}
|
|
90
91
|
}, others, {
|
|
92
|
+
"data-slot": "progress-circular-circle",
|
|
91
93
|
get children () {
|
|
92
94
|
return local.children;
|
|
93
95
|
}
|
|
@@ -102,11 +104,12 @@ function ProgressCircularCircleTrack(props) {
|
|
|
102
104
|
get asChild () {
|
|
103
105
|
return local.asChild;
|
|
104
106
|
},
|
|
105
|
-
"data-slot": "progress-circular-circle-track",
|
|
106
107
|
get ["class"] () {
|
|
107
108
|
return clsx(ProgressCircular_module.circleTrack, local.class);
|
|
108
109
|
}
|
|
109
|
-
}, others
|
|
110
|
+
}, others, {
|
|
111
|
+
"data-slot": "progress-circular-circle-track"
|
|
112
|
+
}));
|
|
110
113
|
}
|
|
111
114
|
function ProgressCircularCircleRange(props) {
|
|
112
115
|
const [local, others] = splitProps(props, [
|
|
@@ -117,11 +120,12 @@ function ProgressCircularCircleRange(props) {
|
|
|
117
120
|
get asChild () {
|
|
118
121
|
return local.asChild;
|
|
119
122
|
},
|
|
120
|
-
"data-slot": "progress-circular-circle-range",
|
|
121
123
|
get ["class"] () {
|
|
122
124
|
return clsx(ProgressCircular_module.circleRange, local.class);
|
|
123
125
|
}
|
|
124
|
-
}, others
|
|
126
|
+
}, others, {
|
|
127
|
+
"data-slot": "progress-circular-circle-range"
|
|
128
|
+
}));
|
|
125
129
|
}
|
|
126
130
|
function ProgressCircularRing(props) {
|
|
127
131
|
return createComponent(ProgressCircularCircle, mergeProps(props, {
|
|
@@ -142,11 +146,12 @@ function ProgressCircularView(props) {
|
|
|
142
146
|
get asChild () {
|
|
143
147
|
return local.asChild;
|
|
144
148
|
},
|
|
145
|
-
"data-slot": "progress-circular-view",
|
|
146
149
|
get ["class"] () {
|
|
147
150
|
return clsx(ProgressCircular_module.view, local.class);
|
|
148
151
|
}
|
|
149
|
-
}, others
|
|
152
|
+
}, others, {
|
|
153
|
+
"data-slot": "progress-circular-view"
|
|
154
|
+
}));
|
|
150
155
|
}
|
|
151
156
|
const ProgressCircular = Object.assign(ProgressCircularRoot, {
|
|
152
157
|
Root: ProgressCircularRoot,
|
|
@@ -8,7 +8,7 @@ function ProgressCircularRoot(props) {
|
|
|
8
8
|
'children',
|
|
9
9
|
'class'
|
|
10
10
|
]);
|
|
11
|
-
return <Progress.Root asChild={local.asChild}
|
|
11
|
+
return <Progress.Root asChild={local.asChild} class={clsx(ProgressCircular_module.root, local.class)} {...others} data-slot="progress-circular-root">
|
|
12
12
|
{local.children}
|
|
13
13
|
</Progress.Root>;
|
|
14
14
|
}
|
|
@@ -18,7 +18,7 @@ function ProgressCircularRootProvider(props) {
|
|
|
18
18
|
'children',
|
|
19
19
|
'class'
|
|
20
20
|
]);
|
|
21
|
-
return <Progress.RootProvider asChild={local.asChild}
|
|
21
|
+
return <Progress.RootProvider asChild={local.asChild} class={clsx(ProgressCircular_module.root, local.class)} {...others} data-slot="progress-circular-root-provider">
|
|
22
22
|
{local.children}
|
|
23
23
|
</Progress.RootProvider>;
|
|
24
24
|
}
|
|
@@ -27,14 +27,14 @@ function ProgressCircularLabel(props) {
|
|
|
27
27
|
'asChild',
|
|
28
28
|
'class'
|
|
29
29
|
]);
|
|
30
|
-
return <Progress.Label asChild={local.asChild}
|
|
30
|
+
return <Progress.Label asChild={local.asChild} class={clsx(ProgressCircular_module.label, local.class)} {...others} data-slot="progress-circular-label"/>;
|
|
31
31
|
}
|
|
32
32
|
function ProgressCircularValueText(props) {
|
|
33
33
|
const [local, others] = splitProps(props, [
|
|
34
34
|
'asChild',
|
|
35
35
|
'class'
|
|
36
36
|
]);
|
|
37
|
-
return <Progress.ValueText asChild={local.asChild}
|
|
37
|
+
return <Progress.ValueText asChild={local.asChild} class={clsx(ProgressCircular_module.valueText, local.class)} {...others} data-slot="progress-circular-value-text"/>;
|
|
38
38
|
}
|
|
39
39
|
function ProgressCircularCircle(props) {
|
|
40
40
|
const [local, others] = splitProps(props, [
|
|
@@ -42,7 +42,7 @@ function ProgressCircularCircle(props) {
|
|
|
42
42
|
'children',
|
|
43
43
|
'class'
|
|
44
44
|
]);
|
|
45
|
-
return <Progress.Circle asChild={local.asChild}
|
|
45
|
+
return <Progress.Circle asChild={local.asChild} class={clsx(ProgressCircular_module.circle, local.class)} {...others} data-slot="progress-circular-circle">
|
|
46
46
|
{local.children}
|
|
47
47
|
</Progress.Circle>;
|
|
48
48
|
}
|
|
@@ -51,14 +51,14 @@ function ProgressCircularCircleTrack(props) {
|
|
|
51
51
|
'asChild',
|
|
52
52
|
'class'
|
|
53
53
|
]);
|
|
54
|
-
return <Progress.CircleTrack asChild={local.asChild}
|
|
54
|
+
return <Progress.CircleTrack asChild={local.asChild} class={clsx(ProgressCircular_module.circleTrack, local.class)} {...others} data-slot="progress-circular-circle-track"/>;
|
|
55
55
|
}
|
|
56
56
|
function ProgressCircularCircleRange(props) {
|
|
57
57
|
const [local, others] = splitProps(props, [
|
|
58
58
|
'asChild',
|
|
59
59
|
'class'
|
|
60
60
|
]);
|
|
61
|
-
return <Progress.CircleRange asChild={local.asChild}
|
|
61
|
+
return <Progress.CircleRange asChild={local.asChild} class={clsx(ProgressCircular_module.circleRange, local.class)} {...others} data-slot="progress-circular-circle-range"/>;
|
|
62
62
|
}
|
|
63
63
|
function ProgressCircularRing(props) {
|
|
64
64
|
return <ProgressCircularCircle {...props}>
|
|
@@ -71,7 +71,7 @@ function ProgressCircularView(props) {
|
|
|
71
71
|
'asChild',
|
|
72
72
|
'class'
|
|
73
73
|
]);
|
|
74
|
-
return <Progress.View asChild={local.asChild}
|
|
74
|
+
return <Progress.View asChild={local.asChild} class={clsx(ProgressCircular_module.view, local.class)} {...others} data-slot="progress-circular-view"/>;
|
|
75
75
|
}
|
|
76
76
|
const ProgressCircular = Object.assign(ProgressCircularRoot, {
|
|
77
77
|
Root: ProgressCircularRoot,
|
|
@@ -8,77 +8,84 @@ function ProgressLinearRoot(props) {
|
|
|
8
8
|
'class'
|
|
9
9
|
]);
|
|
10
10
|
return createComponent(Progress.Root, mergeProps({
|
|
11
|
-
"data-slot": "progress-linear-root",
|
|
12
11
|
get ["class"] () {
|
|
13
12
|
return clsx(ProgressLinear_module.root, local.class);
|
|
14
13
|
}
|
|
15
|
-
}, others
|
|
14
|
+
}, others, {
|
|
15
|
+
"data-slot": "progress-linear-root"
|
|
16
|
+
}));
|
|
16
17
|
}
|
|
17
18
|
function ProgressLinearRootProvider(props) {
|
|
18
19
|
const [local, others] = splitProps(props, [
|
|
19
20
|
'class'
|
|
20
21
|
]);
|
|
21
22
|
return createComponent(Progress.RootProvider, mergeProps({
|
|
22
|
-
"data-slot": "progress-linear-root-provider",
|
|
23
23
|
get ["class"] () {
|
|
24
24
|
return clsx(ProgressLinear_module.root, local.class);
|
|
25
25
|
}
|
|
26
|
-
}, others
|
|
26
|
+
}, others, {
|
|
27
|
+
"data-slot": "progress-linear-root-provider"
|
|
28
|
+
}));
|
|
27
29
|
}
|
|
28
30
|
function ProgressLinearLabel(props) {
|
|
29
31
|
const [local, others] = splitProps(props, [
|
|
30
32
|
'class'
|
|
31
33
|
]);
|
|
32
34
|
return createComponent(Progress.Label, mergeProps({
|
|
33
|
-
"data-slot": "progress-linear-label",
|
|
34
35
|
get ["class"] () {
|
|
35
36
|
return clsx(ProgressLinear_module.label, local.class);
|
|
36
37
|
}
|
|
37
|
-
}, others
|
|
38
|
+
}, others, {
|
|
39
|
+
"data-slot": "progress-linear-label"
|
|
40
|
+
}));
|
|
38
41
|
}
|
|
39
42
|
function ProgressLinearValueText(props) {
|
|
40
43
|
const [local, others] = splitProps(props, [
|
|
41
44
|
'class'
|
|
42
45
|
]);
|
|
43
46
|
return createComponent(Progress.ValueText, mergeProps({
|
|
44
|
-
"data-slot": "progress-linear-value-text",
|
|
45
47
|
get ["class"] () {
|
|
46
48
|
return clsx(ProgressLinear_module.valueText, local.class);
|
|
47
49
|
}
|
|
48
|
-
}, others
|
|
50
|
+
}, others, {
|
|
51
|
+
"data-slot": "progress-linear-value-text"
|
|
52
|
+
}));
|
|
49
53
|
}
|
|
50
54
|
function ProgressLinearTrack(props) {
|
|
51
55
|
const [local, others] = splitProps(props, [
|
|
52
56
|
'class'
|
|
53
57
|
]);
|
|
54
58
|
return createComponent(Progress.Track, mergeProps({
|
|
55
|
-
"data-slot": "progress-linear-track",
|
|
56
59
|
get ["class"] () {
|
|
57
60
|
return clsx(ProgressLinear_module.track, local.class);
|
|
58
61
|
}
|
|
59
|
-
}, others
|
|
62
|
+
}, others, {
|
|
63
|
+
"data-slot": "progress-linear-track"
|
|
64
|
+
}));
|
|
60
65
|
}
|
|
61
66
|
function ProgressLinearRange(props) {
|
|
62
67
|
const [local, others] = splitProps(props, [
|
|
63
68
|
'class'
|
|
64
69
|
]);
|
|
65
70
|
return createComponent(Progress.Range, mergeProps({
|
|
66
|
-
"data-slot": "progress-linear-range",
|
|
67
71
|
get ["class"] () {
|
|
68
72
|
return clsx(ProgressLinear_module.range, local.class);
|
|
69
73
|
}
|
|
70
|
-
}, others
|
|
74
|
+
}, others, {
|
|
75
|
+
"data-slot": "progress-linear-range"
|
|
76
|
+
}));
|
|
71
77
|
}
|
|
72
78
|
function ProgressLinearView(props) {
|
|
73
79
|
const [local, others] = splitProps(props, [
|
|
74
80
|
'class'
|
|
75
81
|
]);
|
|
76
82
|
return createComponent(Progress.View, mergeProps({
|
|
77
|
-
"data-slot": "progress-linear-view",
|
|
78
83
|
get ["class"] () {
|
|
79
84
|
return clsx(ProgressLinear_module.view, local.class);
|
|
80
85
|
}
|
|
81
|
-
}, others
|
|
86
|
+
}, others, {
|
|
87
|
+
"data-slot": "progress-linear-view"
|
|
88
|
+
}));
|
|
82
89
|
}
|
|
83
90
|
const ProgressLinear = Object.assign(ProgressLinearRoot, {
|
|
84
91
|
Root: ProgressLinearRoot,
|
|
@@ -6,43 +6,43 @@ function ProgressLinearRoot(props) {
|
|
|
6
6
|
const [local, others] = splitProps(props, [
|
|
7
7
|
'class'
|
|
8
8
|
]);
|
|
9
|
-
return <Progress.Root
|
|
9
|
+
return <Progress.Root class={clsx(ProgressLinear_module.root, local.class)} {...others} data-slot="progress-linear-root"/>;
|
|
10
10
|
}
|
|
11
11
|
function ProgressLinearRootProvider(props) {
|
|
12
12
|
const [local, others] = splitProps(props, [
|
|
13
13
|
'class'
|
|
14
14
|
]);
|
|
15
|
-
return <Progress.RootProvider
|
|
15
|
+
return <Progress.RootProvider class={clsx(ProgressLinear_module.root, local.class)} {...others} data-slot="progress-linear-root-provider"/>;
|
|
16
16
|
}
|
|
17
17
|
function ProgressLinearLabel(props) {
|
|
18
18
|
const [local, others] = splitProps(props, [
|
|
19
19
|
'class'
|
|
20
20
|
]);
|
|
21
|
-
return <Progress.Label
|
|
21
|
+
return <Progress.Label class={clsx(ProgressLinear_module.label, local.class)} {...others} data-slot="progress-linear-label"/>;
|
|
22
22
|
}
|
|
23
23
|
function ProgressLinearValueText(props) {
|
|
24
24
|
const [local, others] = splitProps(props, [
|
|
25
25
|
'class'
|
|
26
26
|
]);
|
|
27
|
-
return <Progress.ValueText
|
|
27
|
+
return <Progress.ValueText class={clsx(ProgressLinear_module.valueText, local.class)} {...others} data-slot="progress-linear-value-text"/>;
|
|
28
28
|
}
|
|
29
29
|
function ProgressLinearTrack(props) {
|
|
30
30
|
const [local, others] = splitProps(props, [
|
|
31
31
|
'class'
|
|
32
32
|
]);
|
|
33
|
-
return <Progress.Track
|
|
33
|
+
return <Progress.Track class={clsx(ProgressLinear_module.track, local.class)} {...others} data-slot="progress-linear-track"/>;
|
|
34
34
|
}
|
|
35
35
|
function ProgressLinearRange(props) {
|
|
36
36
|
const [local, others] = splitProps(props, [
|
|
37
37
|
'class'
|
|
38
38
|
]);
|
|
39
|
-
return <Progress.Range
|
|
39
|
+
return <Progress.Range class={clsx(ProgressLinear_module.range, local.class)} {...others} data-slot="progress-linear-range"/>;
|
|
40
40
|
}
|
|
41
41
|
function ProgressLinearView(props) {
|
|
42
42
|
const [local, others] = splitProps(props, [
|
|
43
43
|
'class'
|
|
44
44
|
]);
|
|
45
|
-
return <Progress.View
|
|
45
|
+
return <Progress.View class={clsx(ProgressLinear_module.view, local.class)} {...others} data-slot="progress-linear-view"/>;
|
|
46
46
|
}
|
|
47
47
|
const ProgressLinear = Object.assign(ProgressLinearRoot, {
|
|
48
48
|
Root: ProgressLinearRoot,
|
|
@@ -13,11 +13,11 @@ function QrCodeRoot(props) {
|
|
|
13
13
|
get asChild () {
|
|
14
14
|
return local.asChild;
|
|
15
15
|
},
|
|
16
|
-
"data-slot": "qr-code-root",
|
|
17
16
|
get ["class"] () {
|
|
18
17
|
return clsx(QrCode_module.root, local.class);
|
|
19
18
|
}
|
|
20
19
|
}, others, {
|
|
20
|
+
"data-slot": "qr-code-root",
|
|
21
21
|
get children () {
|
|
22
22
|
return local.children;
|
|
23
23
|
}
|
|
@@ -33,11 +33,11 @@ function QrCodeRootProvider(props) {
|
|
|
33
33
|
get asChild () {
|
|
34
34
|
return local.asChild;
|
|
35
35
|
},
|
|
36
|
-
"data-slot": "qr-code-root-provider",
|
|
37
36
|
get ["class"] () {
|
|
38
37
|
return clsx(QrCode_module.root, local.class);
|
|
39
38
|
}
|
|
40
39
|
}, others, {
|
|
40
|
+
"data-slot": "qr-code-root-provider",
|
|
41
41
|
get children () {
|
|
42
42
|
return local.children;
|
|
43
43
|
}
|
|
@@ -53,11 +53,11 @@ function QrCodeFrame(props) {
|
|
|
53
53
|
get asChild () {
|
|
54
54
|
return local.asChild;
|
|
55
55
|
},
|
|
56
|
-
"data-slot": "qr-code-frame",
|
|
57
56
|
get ["class"] () {
|
|
58
57
|
return clsx(QrCode_module.frame, local.class);
|
|
59
58
|
}
|
|
60
59
|
}, others, {
|
|
60
|
+
"data-slot": "qr-code-frame",
|
|
61
61
|
get children () {
|
|
62
62
|
return local.children;
|
|
63
63
|
}
|
|
@@ -72,11 +72,12 @@ function QrCodePattern(props) {
|
|
|
72
72
|
get asChild () {
|
|
73
73
|
return local.asChild;
|
|
74
74
|
},
|
|
75
|
-
"data-slot": "qr-code-pattern",
|
|
76
75
|
get ["class"] () {
|
|
77
76
|
return clsx(QrCode_module.pattern, local.class);
|
|
78
77
|
}
|
|
79
|
-
}, others
|
|
78
|
+
}, others, {
|
|
79
|
+
"data-slot": "qr-code-pattern"
|
|
80
|
+
}));
|
|
80
81
|
}
|
|
81
82
|
function QrCodeOverlay(props) {
|
|
82
83
|
const [local, others] = splitProps(props, [
|
|
@@ -88,11 +89,11 @@ function QrCodeOverlay(props) {
|
|
|
88
89
|
get asChild () {
|
|
89
90
|
return local.asChild;
|
|
90
91
|
},
|
|
91
|
-
"data-slot": "qr-code-overlay",
|
|
92
92
|
get ["class"] () {
|
|
93
93
|
return clsx(QrCode_module.overlay, local.class);
|
|
94
94
|
}
|
|
95
95
|
}, others, {
|
|
96
|
+
"data-slot": "qr-code-overlay",
|
|
96
97
|
get children () {
|
|
97
98
|
return local.children;
|
|
98
99
|
}
|
|
@@ -108,11 +109,11 @@ function QrCodeDownloadTrigger(props) {
|
|
|
108
109
|
get asChild () {
|
|
109
110
|
return local.asChild;
|
|
110
111
|
},
|
|
111
|
-
"data-slot": "qr-code-download-trigger",
|
|
112
112
|
get ["class"] () {
|
|
113
113
|
return clsx(QrCode_module.downloadTrigger, local.class);
|
|
114
114
|
}
|
|
115
115
|
}, others, {
|
|
116
|
+
"data-slot": "qr-code-download-trigger",
|
|
116
117
|
get children () {
|
|
117
118
|
return local.children;
|
|
118
119
|
}
|
|
@@ -8,7 +8,7 @@ function QrCodeRoot(props) {
|
|
|
8
8
|
'children',
|
|
9
9
|
'class'
|
|
10
10
|
]);
|
|
11
|
-
return <QrCode.Root asChild={local.asChild}
|
|
11
|
+
return <QrCode.Root asChild={local.asChild} class={clsx(QrCode_module.root, local.class)} {...others} data-slot="qr-code-root">
|
|
12
12
|
{local.children}
|
|
13
13
|
</QrCode.Root>;
|
|
14
14
|
}
|
|
@@ -18,7 +18,7 @@ function QrCodeRootProvider(props) {
|
|
|
18
18
|
'children',
|
|
19
19
|
'class'
|
|
20
20
|
]);
|
|
21
|
-
return <QrCode.RootProvider asChild={local.asChild}
|
|
21
|
+
return <QrCode.RootProvider asChild={local.asChild} class={clsx(QrCode_module.root, local.class)} {...others} data-slot="qr-code-root-provider">
|
|
22
22
|
{local.children}
|
|
23
23
|
</QrCode.RootProvider>;
|
|
24
24
|
}
|
|
@@ -28,7 +28,7 @@ function QrCodeFrame(props) {
|
|
|
28
28
|
'children',
|
|
29
29
|
'class'
|
|
30
30
|
]);
|
|
31
|
-
return <QrCode.Frame asChild={local.asChild}
|
|
31
|
+
return <QrCode.Frame asChild={local.asChild} class={clsx(QrCode_module.frame, local.class)} {...others} data-slot="qr-code-frame">
|
|
32
32
|
{local.children}
|
|
33
33
|
</QrCode.Frame>;
|
|
34
34
|
}
|
|
@@ -37,7 +37,7 @@ function QrCodePattern(props) {
|
|
|
37
37
|
'asChild',
|
|
38
38
|
'class'
|
|
39
39
|
]);
|
|
40
|
-
return <QrCode.Pattern asChild={local.asChild}
|
|
40
|
+
return <QrCode.Pattern asChild={local.asChild} class={clsx(QrCode_module.pattern, local.class)} {...others} data-slot="qr-code-pattern"/>;
|
|
41
41
|
}
|
|
42
42
|
function QrCodeOverlay(props) {
|
|
43
43
|
const [local, others] = splitProps(props, [
|
|
@@ -45,7 +45,7 @@ function QrCodeOverlay(props) {
|
|
|
45
45
|
'children',
|
|
46
46
|
'class'
|
|
47
47
|
]);
|
|
48
|
-
return <QrCode.Overlay asChild={local.asChild}
|
|
48
|
+
return <QrCode.Overlay asChild={local.asChild} class={clsx(QrCode_module.overlay, local.class)} {...others} data-slot="qr-code-overlay">
|
|
49
49
|
{local.children}
|
|
50
50
|
</QrCode.Overlay>;
|
|
51
51
|
}
|
|
@@ -55,7 +55,7 @@ function QrCodeDownloadTrigger(props) {
|
|
|
55
55
|
'children',
|
|
56
56
|
'class'
|
|
57
57
|
]);
|
|
58
|
-
return <QrCode.DownloadTrigger asChild={local.asChild}
|
|
58
|
+
return <QrCode.DownloadTrigger asChild={local.asChild} class={clsx(QrCode_module.downloadTrigger, local.class)} {...others} data-slot="qr-code-download-trigger">
|
|
59
59
|
{local.children}
|
|
60
60
|
</QrCode.DownloadTrigger>;
|
|
61
61
|
}
|
|
@@ -4,7 +4,7 @@ import { clsx } from "clsx";
|
|
|
4
4
|
import { For, children, splitProps } from "solid-js";
|
|
5
5
|
import { RatingStarIcon } from "../../internal/icons/ui/Icons.js";
|
|
6
6
|
import RatingGroup_module from "./RatingGroup.module.js";
|
|
7
|
-
var _tmpl$ = /*#__PURE__*/ template("<span
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/ template("<span>");
|
|
8
8
|
function RatingGroupRoot(props) {
|
|
9
9
|
const [local, others] = splitProps(props, [
|
|
10
10
|
'asChild',
|
|
@@ -16,7 +16,6 @@ function RatingGroupRoot(props) {
|
|
|
16
16
|
get asChild () {
|
|
17
17
|
return local.asChild;
|
|
18
18
|
},
|
|
19
|
-
"data-slot": "rating-group-root",
|
|
20
19
|
get ["data-size"] () {
|
|
21
20
|
return local.size ?? 'md';
|
|
22
21
|
},
|
|
@@ -24,6 +23,7 @@ function RatingGroupRoot(props) {
|
|
|
24
23
|
return clsx(RatingGroup_module.root, local.class);
|
|
25
24
|
}
|
|
26
25
|
}, others, {
|
|
26
|
+
"data-slot": "rating-group-root",
|
|
27
27
|
get children () {
|
|
28
28
|
return local.children;
|
|
29
29
|
}
|
|
@@ -40,7 +40,6 @@ function RatingGroupRootProvider(props) {
|
|
|
40
40
|
get asChild () {
|
|
41
41
|
return local.asChild;
|
|
42
42
|
},
|
|
43
|
-
"data-slot": "rating-group-root-provider",
|
|
44
43
|
get ["data-size"] () {
|
|
45
44
|
return local.size ?? 'md';
|
|
46
45
|
},
|
|
@@ -48,6 +47,7 @@ function RatingGroupRootProvider(props) {
|
|
|
48
47
|
return clsx(RatingGroup_module.root, local.class);
|
|
49
48
|
}
|
|
50
49
|
}, others, {
|
|
50
|
+
"data-slot": "rating-group-root-provider",
|
|
51
51
|
get children () {
|
|
52
52
|
return local.children;
|
|
53
53
|
}
|
|
@@ -58,33 +58,36 @@ function RatingGroupLabel(props) {
|
|
|
58
58
|
'class'
|
|
59
59
|
]);
|
|
60
60
|
return createComponent(RatingGroup.Label, mergeProps({
|
|
61
|
-
"data-slot": "rating-group-label",
|
|
62
61
|
get ["class"] () {
|
|
63
62
|
return clsx(RatingGroup_module.label, local.class);
|
|
64
63
|
}
|
|
65
|
-
}, others
|
|
64
|
+
}, others, {
|
|
65
|
+
"data-slot": "rating-group-label"
|
|
66
|
+
}));
|
|
66
67
|
}
|
|
67
68
|
function RatingGroupControl(props) {
|
|
68
69
|
const [local, others] = splitProps(props, [
|
|
69
70
|
'class'
|
|
70
71
|
]);
|
|
71
72
|
return createComponent(RatingGroup.Control, mergeProps({
|
|
72
|
-
"data-slot": "rating-group-control",
|
|
73
73
|
get ["class"] () {
|
|
74
74
|
return clsx(RatingGroup_module.control, local.class);
|
|
75
75
|
}
|
|
76
|
-
}, others
|
|
76
|
+
}, others, {
|
|
77
|
+
"data-slot": "rating-group-control"
|
|
78
|
+
}));
|
|
77
79
|
}
|
|
78
80
|
function RatingGroupItem(props) {
|
|
79
81
|
const [local, others] = splitProps(props, [
|
|
80
82
|
'class'
|
|
81
83
|
]);
|
|
82
84
|
return createComponent(RatingGroup.Item, mergeProps({
|
|
83
|
-
"data-slot": "rating-group-item",
|
|
84
85
|
get ["class"] () {
|
|
85
86
|
return clsx(RatingGroup_module.item, local.class);
|
|
86
87
|
}
|
|
87
|
-
}, others
|
|
88
|
+
}, others, {
|
|
89
|
+
"data-slot": "rating-group-item"
|
|
90
|
+
}));
|
|
88
91
|
}
|
|
89
92
|
function RatingGroupItemIndicator(props) {
|
|
90
93
|
const [local, others] = splitProps(props, [
|
|
@@ -105,7 +108,9 @@ function RatingGroupItemIndicator(props) {
|
|
|
105
108
|
get ["class"] () {
|
|
106
109
|
return clsx(RatingGroup_module.itemIndicator, local.class);
|
|
107
110
|
}
|
|
108
|
-
}, others
|
|
111
|
+
}, others, {
|
|
112
|
+
"data-slot": "rating-group-item-indicator"
|
|
113
|
+
}), false, true);
|
|
109
114
|
insert(_el$, ()=>resolvedChildren() ?? [
|
|
110
115
|
createComponent(RatingStarIcon, {
|
|
111
116
|
"data-slot": "rating-group-item-indicator-bg",
|