@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
|
@@ -15,11 +15,11 @@ const TreeView_TreeViewRoot = function(props) {
|
|
|
15
15
|
get asChild () {
|
|
16
16
|
return local.asChild;
|
|
17
17
|
},
|
|
18
|
-
"data-slot": "tree-view-root",
|
|
19
18
|
get ["class"] () {
|
|
20
19
|
return clsx(TreeView_module.root, local.class);
|
|
21
20
|
}
|
|
22
21
|
}, others, {
|
|
22
|
+
"data-slot": "tree-view-root",
|
|
23
23
|
get children () {
|
|
24
24
|
return local.children;
|
|
25
25
|
}
|
|
@@ -35,11 +35,11 @@ const TreeView_TreeViewRootProvider = function(props) {
|
|
|
35
35
|
get asChild () {
|
|
36
36
|
return local.asChild;
|
|
37
37
|
},
|
|
38
|
-
"data-slot": "tree-view-root-provider",
|
|
39
38
|
get ["class"] () {
|
|
40
39
|
return clsx(TreeView_module.root, local.class);
|
|
41
40
|
}
|
|
42
41
|
}, others, {
|
|
42
|
+
"data-slot": "tree-view-root-provider",
|
|
43
43
|
get children () {
|
|
44
44
|
return local.children;
|
|
45
45
|
}
|
|
@@ -50,44 +50,48 @@ function TreeViewLabel(props) {
|
|
|
50
50
|
'class'
|
|
51
51
|
]);
|
|
52
52
|
return createComponent(TreeView.Label, mergeProps({
|
|
53
|
-
"data-slot": "tree-view-label",
|
|
54
53
|
get ["class"] () {
|
|
55
54
|
return clsx(TreeView_module.label, local.class);
|
|
56
55
|
}
|
|
57
|
-
}, others
|
|
56
|
+
}, others, {
|
|
57
|
+
"data-slot": "tree-view-label"
|
|
58
|
+
}));
|
|
58
59
|
}
|
|
59
60
|
function TreeViewTree(props) {
|
|
60
61
|
const [local, others] = splitProps(props, [
|
|
61
62
|
'class'
|
|
62
63
|
]);
|
|
63
64
|
return createComponent(TreeView.Tree, mergeProps({
|
|
64
|
-
"data-slot": "tree-view-tree",
|
|
65
65
|
get ["class"] () {
|
|
66
66
|
return clsx(TreeView_module.tree, local.class);
|
|
67
67
|
}
|
|
68
|
-
}, others
|
|
68
|
+
}, others, {
|
|
69
|
+
"data-slot": "tree-view-tree"
|
|
70
|
+
}));
|
|
69
71
|
}
|
|
70
72
|
function TreeViewBranch(props) {
|
|
71
73
|
const [local, others] = splitProps(props, [
|
|
72
74
|
'class'
|
|
73
75
|
]);
|
|
74
76
|
return createComponent(TreeView.Branch, mergeProps({
|
|
75
|
-
"data-slot": "tree-view-branch",
|
|
76
77
|
get ["class"] () {
|
|
77
78
|
return clsx(TreeView_module.branch, local.class);
|
|
78
79
|
}
|
|
79
|
-
}, others
|
|
80
|
+
}, others, {
|
|
81
|
+
"data-slot": "tree-view-branch"
|
|
82
|
+
}));
|
|
80
83
|
}
|
|
81
84
|
function TreeViewBranchControl(props) {
|
|
82
85
|
const [local, others] = splitProps(props, [
|
|
83
86
|
'class'
|
|
84
87
|
]);
|
|
85
88
|
return createComponent(TreeView.BranchControl, mergeProps({
|
|
86
|
-
"data-slot": "tree-view-branch-control",
|
|
87
89
|
get ["class"] () {
|
|
88
90
|
return clsx(TreeView_module.branchControl, local.class);
|
|
89
91
|
}
|
|
90
|
-
}, others
|
|
92
|
+
}, others, {
|
|
93
|
+
"data-slot": "tree-view-branch-control"
|
|
94
|
+
}));
|
|
91
95
|
}
|
|
92
96
|
function TreeViewBranchTrigger(props) {
|
|
93
97
|
const [local, others] = splitProps(props, [
|
|
@@ -96,11 +100,11 @@ function TreeViewBranchTrigger(props) {
|
|
|
96
100
|
]);
|
|
97
101
|
const resolvedChildren = children(()=>local.children);
|
|
98
102
|
return createComponent(TreeView.BranchTrigger, mergeProps({
|
|
99
|
-
"data-slot": "tree-view-branch-trigger",
|
|
100
103
|
get ["class"] () {
|
|
101
104
|
return clsx(TreeView_module.branchTrigger, local.class);
|
|
102
105
|
}
|
|
103
106
|
}, others, {
|
|
107
|
+
"data-slot": "tree-view-branch-trigger",
|
|
104
108
|
get children () {
|
|
105
109
|
return resolvedChildren() ?? createComponent(ChevronRightIcon, {});
|
|
106
110
|
}
|
|
@@ -113,11 +117,11 @@ function TreeViewBranchIndicator(props) {
|
|
|
113
117
|
]);
|
|
114
118
|
const resolvedChildren = children(()=>local.children);
|
|
115
119
|
return createComponent(TreeView.BranchIndicator, mergeProps({
|
|
116
|
-
"data-slot": "tree-view-branch-indicator",
|
|
117
120
|
get ["class"] () {
|
|
118
121
|
return clsx(TreeView_module.branchIndicator, local.class);
|
|
119
122
|
}
|
|
120
123
|
}, others, {
|
|
124
|
+
"data-slot": "tree-view-branch-indicator",
|
|
121
125
|
get children () {
|
|
122
126
|
return resolvedChildren() ?? createComponent(ChevronRightIcon, {});
|
|
123
127
|
}
|
|
@@ -128,55 +132,60 @@ function TreeViewBranchText(props) {
|
|
|
128
132
|
'class'
|
|
129
133
|
]);
|
|
130
134
|
return createComponent(TreeView.BranchText, mergeProps({
|
|
131
|
-
"data-slot": "tree-view-branch-text",
|
|
132
135
|
get ["class"] () {
|
|
133
136
|
return clsx(TreeView_module.branchText, local.class);
|
|
134
137
|
}
|
|
135
|
-
}, others
|
|
138
|
+
}, others, {
|
|
139
|
+
"data-slot": "tree-view-branch-text"
|
|
140
|
+
}));
|
|
136
141
|
}
|
|
137
142
|
function TreeViewBranchContent(props) {
|
|
138
143
|
const [local, others] = splitProps(props, [
|
|
139
144
|
'class'
|
|
140
145
|
]);
|
|
141
146
|
return createComponent(TreeView.BranchContent, mergeProps({
|
|
142
|
-
"data-slot": "tree-view-branch-content",
|
|
143
147
|
get ["class"] () {
|
|
144
148
|
return clsx(TreeView_module.branchContent, local.class);
|
|
145
149
|
}
|
|
146
|
-
}, others
|
|
150
|
+
}, others, {
|
|
151
|
+
"data-slot": "tree-view-branch-content"
|
|
152
|
+
}));
|
|
147
153
|
}
|
|
148
154
|
function TreeViewBranchIndentGuide(props) {
|
|
149
155
|
const [local, others] = splitProps(props, [
|
|
150
156
|
'class'
|
|
151
157
|
]);
|
|
152
158
|
return createComponent(TreeView.BranchIndentGuide, mergeProps({
|
|
153
|
-
"data-slot": "tree-view-branch-indent-guide",
|
|
154
159
|
get ["class"] () {
|
|
155
160
|
return clsx(TreeView_module.branchIndentGuide, local.class);
|
|
156
161
|
}
|
|
157
|
-
}, others
|
|
162
|
+
}, others, {
|
|
163
|
+
"data-slot": "tree-view-branch-indent-guide"
|
|
164
|
+
}));
|
|
158
165
|
}
|
|
159
166
|
function TreeViewItem(props) {
|
|
160
167
|
const [local, others] = splitProps(props, [
|
|
161
168
|
'class'
|
|
162
169
|
]);
|
|
163
170
|
return createComponent(TreeView.Item, mergeProps({
|
|
164
|
-
"data-slot": "tree-view-item",
|
|
165
171
|
get ["class"] () {
|
|
166
172
|
return clsx(TreeView_module.item, local.class);
|
|
167
173
|
}
|
|
168
|
-
}, others
|
|
174
|
+
}, others, {
|
|
175
|
+
"data-slot": "tree-view-item"
|
|
176
|
+
}));
|
|
169
177
|
}
|
|
170
178
|
function TreeViewItemText(props) {
|
|
171
179
|
const [local, others] = splitProps(props, [
|
|
172
180
|
'class'
|
|
173
181
|
]);
|
|
174
182
|
return createComponent(TreeView.ItemText, mergeProps({
|
|
175
|
-
"data-slot": "tree-view-item-text",
|
|
176
183
|
get ["class"] () {
|
|
177
184
|
return clsx(TreeView_module.itemText, local.class);
|
|
178
185
|
}
|
|
179
|
-
}, others
|
|
186
|
+
}, others, {
|
|
187
|
+
"data-slot": "tree-view-item-text"
|
|
188
|
+
}));
|
|
180
189
|
}
|
|
181
190
|
function TreeViewItemIndicator(props) {
|
|
182
191
|
const [local, others] = splitProps(props, [
|
|
@@ -185,11 +194,11 @@ function TreeViewItemIndicator(props) {
|
|
|
185
194
|
]);
|
|
186
195
|
const resolvedChildren = children(()=>local.children);
|
|
187
196
|
return createComponent(TreeView.ItemIndicator, mergeProps({
|
|
188
|
-
"data-slot": "tree-view-item-indicator",
|
|
189
197
|
get ["class"] () {
|
|
190
198
|
return clsx(TreeView_module.itemIndicator, local.class);
|
|
191
199
|
}
|
|
192
200
|
}, others, {
|
|
201
|
+
"data-slot": "tree-view-item-indicator",
|
|
193
202
|
get children () {
|
|
194
203
|
return resolvedChildren() ?? createComponent(CheckIcon, {});
|
|
195
204
|
}
|
|
@@ -200,11 +209,12 @@ function TreeViewNodeCheckbox(props) {
|
|
|
200
209
|
'class'
|
|
201
210
|
]);
|
|
202
211
|
return createComponent(TreeView.NodeCheckbox, mergeProps({
|
|
203
|
-
"data-slot": "tree-view-node-checkbox",
|
|
204
212
|
get ["class"] () {
|
|
205
213
|
return clsx(TreeView_module.nodeCheckbox, local.class);
|
|
206
214
|
}
|
|
207
|
-
}, others
|
|
215
|
+
}, others, {
|
|
216
|
+
"data-slot": "tree-view-node-checkbox"
|
|
217
|
+
}));
|
|
208
218
|
}
|
|
209
219
|
function TreeViewNodeCheckboxIndicator(props) {
|
|
210
220
|
const [local, others] = splitProps(props, [
|
|
@@ -219,11 +229,11 @@ function TreeViewNodeCheckboxIndicator(props) {
|
|
|
219
229
|
get asChild () {
|
|
220
230
|
return local.asChild;
|
|
221
231
|
},
|
|
222
|
-
"data-slot": "tree-view-node-checkbox-indicator",
|
|
223
232
|
get ["class"] () {
|
|
224
233
|
return clsx(TreeView_module.nodeCheckboxIndicator, local.class);
|
|
225
234
|
}
|
|
226
235
|
}, others, {
|
|
236
|
+
"data-slot": "tree-view-node-checkbox-indicator",
|
|
227
237
|
get children () {
|
|
228
238
|
return createComponent(TreeView.NodeCheckboxIndicator, {
|
|
229
239
|
get fallback () {
|
|
@@ -244,11 +254,12 @@ function TreeViewNodeRenameInput(props) {
|
|
|
244
254
|
'class'
|
|
245
255
|
]);
|
|
246
256
|
return createComponent(TreeView.NodeRenameInput, mergeProps({
|
|
247
|
-
"data-slot": "tree-view-node-rename-input",
|
|
248
257
|
get ["class"] () {
|
|
249
258
|
return clsx(TreeView_module.nodeRenameInput, local.class);
|
|
250
259
|
}
|
|
251
|
-
}, others
|
|
260
|
+
}, others, {
|
|
261
|
+
"data-slot": "tree-view-node-rename-input"
|
|
262
|
+
}));
|
|
252
263
|
}
|
|
253
264
|
const TreeViewNodeProvider = TreeView.NodeProvider;
|
|
254
265
|
function TreeViewNodeContent(props) {
|
|
@@ -10,7 +10,7 @@ const TreeView_TreeViewRoot = function(props) {
|
|
|
10
10
|
'children',
|
|
11
11
|
'class'
|
|
12
12
|
]);
|
|
13
|
-
return <TreeView.Root asChild={local.asChild}
|
|
13
|
+
return <TreeView.Root asChild={local.asChild} class={clsx(TreeView_module.root, local.class)} {...others} data-slot="tree-view-root">
|
|
14
14
|
{local.children}
|
|
15
15
|
</TreeView.Root>;
|
|
16
16
|
};
|
|
@@ -20,7 +20,7 @@ const TreeView_TreeViewRootProvider = function(props) {
|
|
|
20
20
|
'children',
|
|
21
21
|
'class'
|
|
22
22
|
]);
|
|
23
|
-
return <TreeView.RootProvider asChild={local.asChild}
|
|
23
|
+
return <TreeView.RootProvider asChild={local.asChild} class={clsx(TreeView_module.root, local.class)} {...others} data-slot="tree-view-root-provider">
|
|
24
24
|
{local.children}
|
|
25
25
|
</TreeView.RootProvider>;
|
|
26
26
|
};
|
|
@@ -28,25 +28,25 @@ function TreeViewLabel(props) {
|
|
|
28
28
|
const [local, others] = splitProps(props, [
|
|
29
29
|
'class'
|
|
30
30
|
]);
|
|
31
|
-
return <TreeView.Label
|
|
31
|
+
return <TreeView.Label class={clsx(TreeView_module.label, local.class)} {...others} data-slot="tree-view-label"/>;
|
|
32
32
|
}
|
|
33
33
|
function TreeViewTree(props) {
|
|
34
34
|
const [local, others] = splitProps(props, [
|
|
35
35
|
'class'
|
|
36
36
|
]);
|
|
37
|
-
return <TreeView.Tree
|
|
37
|
+
return <TreeView.Tree class={clsx(TreeView_module.tree, local.class)} {...others} data-slot="tree-view-tree"/>;
|
|
38
38
|
}
|
|
39
39
|
function TreeViewBranch(props) {
|
|
40
40
|
const [local, others] = splitProps(props, [
|
|
41
41
|
'class'
|
|
42
42
|
]);
|
|
43
|
-
return <TreeView.Branch
|
|
43
|
+
return <TreeView.Branch class={clsx(TreeView_module.branch, local.class)} {...others} data-slot="tree-view-branch"/>;
|
|
44
44
|
}
|
|
45
45
|
function TreeViewBranchControl(props) {
|
|
46
46
|
const [local, others] = splitProps(props, [
|
|
47
47
|
'class'
|
|
48
48
|
]);
|
|
49
|
-
return <TreeView.BranchControl
|
|
49
|
+
return <TreeView.BranchControl class={clsx(TreeView_module.branchControl, local.class)} {...others} data-slot="tree-view-branch-control"/>;
|
|
50
50
|
}
|
|
51
51
|
function TreeViewBranchTrigger(props) {
|
|
52
52
|
const [local, others] = splitProps(props, [
|
|
@@ -54,7 +54,7 @@ function TreeViewBranchTrigger(props) {
|
|
|
54
54
|
'class'
|
|
55
55
|
]);
|
|
56
56
|
const resolvedChildren = children(()=>local.children);
|
|
57
|
-
return <TreeView.BranchTrigger
|
|
57
|
+
return <TreeView.BranchTrigger class={clsx(TreeView_module.branchTrigger, local.class)} {...others} data-slot="tree-view-branch-trigger">
|
|
58
58
|
{resolvedChildren() ?? <ChevronRightIcon/>}
|
|
59
59
|
</TreeView.BranchTrigger>;
|
|
60
60
|
}
|
|
@@ -64,7 +64,7 @@ function TreeViewBranchIndicator(props) {
|
|
|
64
64
|
'class'
|
|
65
65
|
]);
|
|
66
66
|
const resolvedChildren = children(()=>local.children);
|
|
67
|
-
return <TreeView.BranchIndicator
|
|
67
|
+
return <TreeView.BranchIndicator class={clsx(TreeView_module.branchIndicator, local.class)} {...others} data-slot="tree-view-branch-indicator">
|
|
68
68
|
{resolvedChildren() ?? <ChevronRightIcon/>}
|
|
69
69
|
</TreeView.BranchIndicator>;
|
|
70
70
|
}
|
|
@@ -72,31 +72,31 @@ function TreeViewBranchText(props) {
|
|
|
72
72
|
const [local, others] = splitProps(props, [
|
|
73
73
|
'class'
|
|
74
74
|
]);
|
|
75
|
-
return <TreeView.BranchText
|
|
75
|
+
return <TreeView.BranchText class={clsx(TreeView_module.branchText, local.class)} {...others} data-slot="tree-view-branch-text"/>;
|
|
76
76
|
}
|
|
77
77
|
function TreeViewBranchContent(props) {
|
|
78
78
|
const [local, others] = splitProps(props, [
|
|
79
79
|
'class'
|
|
80
80
|
]);
|
|
81
|
-
return <TreeView.BranchContent
|
|
81
|
+
return <TreeView.BranchContent class={clsx(TreeView_module.branchContent, local.class)} {...others} data-slot="tree-view-branch-content"/>;
|
|
82
82
|
}
|
|
83
83
|
function TreeViewBranchIndentGuide(props) {
|
|
84
84
|
const [local, others] = splitProps(props, [
|
|
85
85
|
'class'
|
|
86
86
|
]);
|
|
87
|
-
return <TreeView.BranchIndentGuide
|
|
87
|
+
return <TreeView.BranchIndentGuide class={clsx(TreeView_module.branchIndentGuide, local.class)} {...others} data-slot="tree-view-branch-indent-guide"/>;
|
|
88
88
|
}
|
|
89
89
|
function TreeViewItem(props) {
|
|
90
90
|
const [local, others] = splitProps(props, [
|
|
91
91
|
'class'
|
|
92
92
|
]);
|
|
93
|
-
return <TreeView.Item
|
|
93
|
+
return <TreeView.Item class={clsx(TreeView_module.item, local.class)} {...others} data-slot="tree-view-item"/>;
|
|
94
94
|
}
|
|
95
95
|
function TreeViewItemText(props) {
|
|
96
96
|
const [local, others] = splitProps(props, [
|
|
97
97
|
'class'
|
|
98
98
|
]);
|
|
99
|
-
return <TreeView.ItemText
|
|
99
|
+
return <TreeView.ItemText class={clsx(TreeView_module.itemText, local.class)} {...others} data-slot="tree-view-item-text"/>;
|
|
100
100
|
}
|
|
101
101
|
function TreeViewItemIndicator(props) {
|
|
102
102
|
const [local, others] = splitProps(props, [
|
|
@@ -104,7 +104,7 @@ function TreeViewItemIndicator(props) {
|
|
|
104
104
|
'class'
|
|
105
105
|
]);
|
|
106
106
|
const resolvedChildren = children(()=>local.children);
|
|
107
|
-
return <TreeView.ItemIndicator
|
|
107
|
+
return <TreeView.ItemIndicator class={clsx(TreeView_module.itemIndicator, local.class)} {...others} data-slot="tree-view-item-indicator">
|
|
108
108
|
{resolvedChildren() ?? <CheckIcon/>}
|
|
109
109
|
</TreeView.ItemIndicator>;
|
|
110
110
|
}
|
|
@@ -112,7 +112,7 @@ function TreeViewNodeCheckbox(props) {
|
|
|
112
112
|
const [local, others] = splitProps(props, [
|
|
113
113
|
'class'
|
|
114
114
|
]);
|
|
115
|
-
return <TreeView.NodeCheckbox
|
|
115
|
+
return <TreeView.NodeCheckbox class={clsx(TreeView_module.nodeCheckbox, local.class)} {...others} data-slot="tree-view-node-checkbox"/>;
|
|
116
116
|
}
|
|
117
117
|
function TreeViewNodeCheckboxIndicator(props) {
|
|
118
118
|
const [local, others] = splitProps(props, [
|
|
@@ -123,7 +123,7 @@ function TreeViewNodeCheckboxIndicator(props) {
|
|
|
123
123
|
'indeterminate'
|
|
124
124
|
]);
|
|
125
125
|
const resolvedChildren = children(()=>local.children);
|
|
126
|
-
return <ark.span asChild={local.asChild}
|
|
126
|
+
return <ark.span asChild={local.asChild} class={clsx(TreeView_module.nodeCheckboxIndicator, local.class)} {...others} data-slot="tree-view-node-checkbox-indicator">
|
|
127
127
|
<TreeView.NodeCheckboxIndicator fallback={local.fallback} indeterminate={local.indeterminate ?? <IndeterminateIcon/>}>
|
|
128
128
|
{resolvedChildren() ?? <CheckIcon/>}
|
|
129
129
|
</TreeView.NodeCheckboxIndicator>
|
|
@@ -133,7 +133,7 @@ function TreeViewNodeRenameInput(props) {
|
|
|
133
133
|
const [local, others] = splitProps(props, [
|
|
134
134
|
'class'
|
|
135
135
|
]);
|
|
136
|
-
return <TreeView.NodeRenameInput
|
|
136
|
+
return <TreeView.NodeRenameInput class={clsx(TreeView_module.nodeRenameInput, local.class)} {...others} data-slot="tree-view-node-rename-input"/>;
|
|
137
137
|
}
|
|
138
138
|
const TreeViewNodeProvider = TreeView.NodeProvider;
|
|
139
139
|
function TreeViewNodeContent(props) {
|
|
@@ -124,44 +124,44 @@
|
|
|
124
124
|
@keyframes moduix-accordion-item-content-open {
|
|
125
125
|
from {
|
|
126
126
|
height: 0;
|
|
127
|
-
opacity:
|
|
127
|
+
opacity: 0.01;
|
|
128
128
|
}
|
|
129
129
|
to {
|
|
130
130
|
height: var(--height);
|
|
131
|
-
opacity:
|
|
131
|
+
opacity: 1;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
@keyframes moduix-accordion-item-content-closed {
|
|
136
136
|
from {
|
|
137
137
|
height: var(--height);
|
|
138
|
-
opacity:
|
|
138
|
+
opacity: 1;
|
|
139
139
|
}
|
|
140
140
|
to {
|
|
141
141
|
height: 0;
|
|
142
|
-
opacity:
|
|
142
|
+
opacity: 0.01;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
@keyframes moduix-accordion-item-content-open-horizontal {
|
|
147
147
|
from {
|
|
148
148
|
width: 0;
|
|
149
|
-
opacity:
|
|
149
|
+
opacity: 0.01;
|
|
150
150
|
}
|
|
151
151
|
to {
|
|
152
152
|
width: var(--width);
|
|
153
|
-
opacity:
|
|
153
|
+
opacity: 1;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
@keyframes moduix-accordion-item-content-closed-horizontal {
|
|
158
158
|
from {
|
|
159
159
|
width: var(--width);
|
|
160
|
-
opacity:
|
|
160
|
+
opacity: 1;
|
|
161
161
|
}
|
|
162
162
|
to {
|
|
163
163
|
width: 0;
|
|
164
|
-
opacity:
|
|
164
|
+
opacity: 0.01;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moduix/solid",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Solid implementation of the moduix component system, built on Ark UI primitives.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessible",
|
|
@@ -593,27 +593,26 @@
|
|
|
593
593
|
},
|
|
594
594
|
"dependencies": {
|
|
595
595
|
"@unpic/core": "^1.0.3",
|
|
596
|
-
"@zag-js/hotkeys": "1.43.3",
|
|
597
596
|
"@zag-js/solid": "1.43.3",
|
|
598
597
|
"clsx": "^2.1.1",
|
|
599
|
-
"lucide-solid": "^1.
|
|
598
|
+
"lucide-solid": "^1.46.0"
|
|
600
599
|
},
|
|
601
600
|
"devDependencies": {
|
|
602
|
-
"@ark-ui/solid": "^5.39.
|
|
603
|
-
"@internationalized/date": "3.12.
|
|
604
|
-
"@rsbuild/core": "^2.2.
|
|
601
|
+
"@ark-ui/solid": "^5.39.2",
|
|
602
|
+
"@internationalized/date": "^3.12.4",
|
|
603
|
+
"@rsbuild/core": "^2.2.6",
|
|
605
604
|
"@rsbuild/plugin-babel": "^2.1.0",
|
|
606
605
|
"@rsbuild/plugin-solid": "^1.2.2",
|
|
607
606
|
"@rslib/core": "^1.0.0",
|
|
608
607
|
"@rstest/adapter-rslib": "^0.11.12",
|
|
609
608
|
"@rstest/core": "^0.11.12",
|
|
610
609
|
"@solidjs/testing-library": "^0.8.10",
|
|
611
|
-
"@tanstack/charts": "^0.16.
|
|
612
|
-
"@testing-library/dom": "^10.4.
|
|
610
|
+
"@tanstack/charts": "^0.16.2",
|
|
611
|
+
"@testing-library/dom": "^10.4.2",
|
|
613
612
|
"@testing-library/jest-dom": "^7.0.1",
|
|
614
613
|
"@testing-library/user-event": "^14.6.7",
|
|
615
|
-
"@types/node": "^26.
|
|
616
|
-
"happy-dom": "^20.14.
|
|
614
|
+
"@types/node": "^26.5.1",
|
|
615
|
+
"happy-dom": "^20.14.5",
|
|
617
616
|
"solid-js": "^1.9.15",
|
|
618
617
|
"typescript": "~7.0.2"
|
|
619
618
|
},
|