@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.
Files changed (119) hide show
  1. package/dist/components/accordion/Accordion.js +19 -13
  2. package/dist/components/accordion/Accordion.jsx +7 -7
  3. package/dist/components/alert/Alert.js +19 -13
  4. package/dist/components/alert/Alert.jsx +6 -6
  5. package/dist/components/angle-slider/AngleSlider.d.ts +2 -6
  6. package/dist/components/angle-slider/AngleSlider.js +21 -16
  7. package/dist/components/angle-slider/AngleSlider.jsx +9 -10
  8. package/dist/components/avatar/Avatar.js +10 -7
  9. package/dist/components/avatar/Avatar.jsx +4 -4
  10. package/dist/components/button/Button.js +0 -5
  11. package/dist/components/button/Button.jsx +1 -3
  12. package/dist/components/button/Button_module.css +1 -3
  13. package/dist/components/card/Card.js +45 -36
  14. package/dist/components/card/Card.jsx +9 -9
  15. package/dist/components/card/Card_module.css +1 -1
  16. package/dist/components/carousel/Carousel.d.ts +1 -1
  17. package/dist/components/carousel/Carousel.js +32 -23
  18. package/dist/components/carousel/Carousel.jsx +12 -13
  19. package/dist/components/checkbox/Checkbox.js +16 -14
  20. package/dist/components/checkbox/Checkbox.jsx +6 -6
  21. package/dist/components/clipboard/Clipboard.js +28 -17
  22. package/dist/components/clipboard/Clipboard.jsx +12 -11
  23. package/dist/components/collapsible/Collapsible.js +16 -11
  24. package/dist/components/collapsible/Collapsible.jsx +6 -6
  25. package/dist/components/color-picker/ColorPicker.js +69 -48
  26. package/dist/components/color-picker/ColorPicker.jsx +28 -28
  27. package/dist/components/combobox/Combobox.js +44 -31
  28. package/dist/components/combobox/Combobox.jsx +18 -18
  29. package/dist/components/command-palette/CommandPalette.js +72 -53
  30. package/dist/components/command-palette/CommandPalette.jsx +29 -32
  31. package/dist/components/container/Container_module.css +1 -1
  32. package/dist/components/date-input/DateInput.js +18 -12
  33. package/dist/components/date-input/DateInput.jsx +7 -7
  34. package/dist/components/date-picker/DatePicker.js +73 -51
  35. package/dist/components/date-picker/DatePicker.jsx +29 -29
  36. package/dist/components/dialog/Dialog.js +30 -20
  37. package/dist/components/dialog/Dialog.jsx +10 -10
  38. package/dist/components/drawer/Drawer.js +45 -30
  39. package/dist/components/drawer/Drawer.jsx +15 -15
  40. package/dist/components/editable/Editable.js +24 -17
  41. package/dist/components/editable/Editable.jsx +10 -10
  42. package/dist/components/file-upload/FileUpload.js +39 -28
  43. package/dist/components/file-upload/FileUpload.jsx +17 -17
  44. package/dist/components/floating-panel/FloatingPanel.js +35 -23
  45. package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
  46. package/dist/components/hover-card/HoverCard.js +16 -11
  47. package/dist/components/hover-card/HoverCard.jsx +6 -6
  48. package/dist/components/image-cropper/ImageCropper.js +21 -14
  49. package/dist/components/image-cropper/ImageCropper.jsx +7 -7
  50. package/dist/components/kbd/Kbd.js +8 -8
  51. package/dist/components/kbd/Kbd.jsx +2 -2
  52. package/dist/components/lightbox/Lightbox.d.ts +1 -0
  53. package/dist/components/lightbox/Lightbox.js +41 -27
  54. package/dist/components/lightbox/Lightbox.jsx +13 -12
  55. package/dist/components/listbox/Listbox.js +48 -32
  56. package/dist/components/listbox/Listbox.jsx +17 -17
  57. package/dist/components/marquee/Marquee.js +18 -12
  58. package/dist/components/marquee/Marquee.jsx +6 -6
  59. package/dist/components/menu/Menu.js +64 -43
  60. package/dist/components/menu/Menu.jsx +24 -24
  61. package/dist/components/navigation-menu/NavigationMenu.js +36 -24
  62. package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
  63. package/dist/components/number-input/NumberInput.js +19 -14
  64. package/dist/components/number-input/NumberInput.jsx +9 -9
  65. package/dist/components/pagination/Pagination.js +10 -9
  66. package/dist/components/pagination/Pagination.jsx +8 -8
  67. package/dist/components/password-input/PasswordInput.js +16 -11
  68. package/dist/components/password-input/PasswordInput.jsx +6 -6
  69. package/dist/components/pin-input/PinInput.js +15 -10
  70. package/dist/components/pin-input/PinInput.jsx +6 -6
  71. package/dist/components/popover/Popover.js +37 -25
  72. package/dist/components/popover/Popover.jsx +13 -13
  73. package/dist/components/progress-circular/ProgressCircular.js +18 -13
  74. package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
  75. package/dist/components/progress-linear/ProgressLinear.js +21 -14
  76. package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
  77. package/dist/components/qr-code/QrCode.js +8 -7
  78. package/dist/components/qr-code/QrCode.jsx +6 -6
  79. package/dist/components/rating-group/RatingGroup.js +15 -10
  80. package/dist/components/rating-group/RatingGroup.jsx +6 -6
  81. package/dist/components/segment-group/SegmentGroup.js +17 -12
  82. package/dist/components/segment-group/SegmentGroup.jsx +7 -7
  83. package/dist/components/select/Select.js +50 -35
  84. package/dist/components/select/Select.jsx +20 -20
  85. package/dist/components/sidebar/Sidebar.js +73 -43
  86. package/dist/components/sidebar/Sidebar.jsx +35 -27
  87. package/dist/components/signature-pad/SignaturePad.js +16 -12
  88. package/dist/components/signature-pad/SignaturePad.jsx +8 -8
  89. package/dist/components/slider/Slider.js +29 -20
  90. package/dist/components/slider/Slider.jsx +11 -11
  91. package/dist/components/split-button/SplitButton.d.ts +4 -3
  92. package/dist/components/split-button/SplitButton.js +21 -9
  93. package/dist/components/split-button/SplitButton.jsx +14 -7
  94. package/dist/components/splitter/Splitter.js +13 -9
  95. package/dist/components/splitter/Splitter.jsx +5 -5
  96. package/dist/components/steps/Steps.js +34 -23
  97. package/dist/components/steps/Steps.jsx +12 -12
  98. package/dist/components/swap/Swap.js +9 -6
  99. package/dist/components/swap/Swap.jsx +3 -3
  100. package/dist/components/switch/Switch.js +9 -7
  101. package/dist/components/switch/Switch.jsx +5 -5
  102. package/dist/components/tabs/Tabs.js +18 -12
  103. package/dist/components/tabs/Tabs.jsx +6 -6
  104. package/dist/components/tags-input/TagsInput.js +28 -20
  105. package/dist/components/tags-input/TagsInput.jsx +12 -12
  106. package/dist/components/timer/Timer.js +21 -14
  107. package/dist/components/timer/Timer.jsx +7 -7
  108. package/dist/components/toast/Toast.js +11 -9
  109. package/dist/components/toast/Toast.jsx +7 -7
  110. package/dist/components/toc/Toc.js +31 -20
  111. package/dist/components/toc/Toc.jsx +10 -10
  112. package/dist/components/tooltip/Tooltip.js +13 -9
  113. package/dist/components/tooltip/Tooltip.jsx +5 -5
  114. package/dist/components/tour/Tour.js +37 -25
  115. package/dist/components/tour/Tour.jsx +13 -13
  116. package/dist/components/tree-view/TreeView.js +39 -28
  117. package/dist/components/tree-view/TreeView.jsx +17 -17
  118. package/dist/styles/animations.css +8 -8
  119. package/package.json +9 -10
@@ -5,7 +5,7 @@ import { children, splitProps } from "solid-js";
5
5
  import { CheckIcon, ChevronDownIcon, PipetteIcon } from "../../internal/icons/ui/Icons.js";
6
6
  import { OverlayPortal, OverlayPortalProvider } from "../../internal/overlayPortal.js";
7
7
  import ColorPicker_module from "./ColorPicker.module.js";
8
- var _tmpl$ = /*#__PURE__*/ template("<div data-slot=color-picker-sliders>"), _tmpl$2 = /*#__PURE__*/ template("<span><span aria-hidden=true>");
8
+ var _tmpl$ = /*#__PURE__*/ template("<div>"), _tmpl$2 = /*#__PURE__*/ template("<span><span aria-hidden=true>");
9
9
  function ColorPickerRoot(props) {
10
10
  const [local, others] = splitProps(props, [
11
11
  'asChild',
@@ -28,7 +28,6 @@ function ColorPickerRoot(props) {
28
28
  get asChild () {
29
29
  return local.asChild;
30
30
  },
31
- "data-slot": "color-picker-root",
32
31
  get ["class"] () {
33
32
  return clsx(ColorPicker_module.root, local.class);
34
33
  },
@@ -39,6 +38,7 @@ function ColorPickerRoot(props) {
39
38
  return local.unmountOnExit ?? true;
40
39
  }
41
40
  }, others, {
41
+ "data-slot": "color-picker-root",
42
42
  get children () {
43
43
  return local.children;
44
44
  }
@@ -68,7 +68,6 @@ function ColorPickerRootProvider(props) {
68
68
  get asChild () {
69
69
  return local.asChild;
70
70
  },
71
- "data-slot": "color-picker-root-provider",
72
71
  get ["class"] () {
73
72
  return clsx(ColorPicker_module.root, local.class);
74
73
  },
@@ -79,6 +78,7 @@ function ColorPickerRootProvider(props) {
79
78
  return local.unmountOnExit ?? true;
80
79
  }
81
80
  }, others, {
81
+ "data-slot": "color-picker-root-provider",
82
82
  get children () {
83
83
  return local.children;
84
84
  }
@@ -91,22 +91,24 @@ function ColorPickerLabel(props) {
91
91
  'class'
92
92
  ]);
93
93
  return createComponent(ColorPicker.Label, mergeProps({
94
- "data-slot": "color-picker-label",
95
94
  get ["class"] () {
96
95
  return clsx(ColorPicker_module.label, local.class);
97
96
  }
98
- }, others));
97
+ }, others, {
98
+ "data-slot": "color-picker-label"
99
+ }));
99
100
  }
100
101
  function ColorPickerControl(props) {
101
102
  const [local, others] = splitProps(props, [
102
103
  'class'
103
104
  ]);
104
105
  return createComponent(ColorPicker.Control, mergeProps({
105
- "data-slot": "color-picker-control",
106
106
  get ["class"] () {
107
107
  return clsx(ColorPicker_module.control, local.class);
108
108
  }
109
- }, others));
109
+ }, others, {
110
+ "data-slot": "color-picker-control"
111
+ }));
110
112
  }
111
113
  function ColorPickerTrigger(props) {
112
114
  const [local, others] = splitProps(props, [
@@ -115,11 +117,11 @@ function ColorPickerTrigger(props) {
115
117
  ]);
116
118
  const resolvedChildren = children(()=>local.children);
117
119
  return createComponent(ColorPicker.Trigger, mergeProps({
118
- "data-slot": "color-picker-trigger",
119
120
  get ["class"] () {
120
121
  return clsx(ColorPicker_module.trigger, local.class);
121
122
  }
122
123
  }, others, {
124
+ "data-slot": "color-picker-trigger",
123
125
  get children () {
124
126
  return resolvedChildren() ?? [
125
127
  createComponent(ColorPicker.TransparencyGrid, {
@@ -145,11 +147,12 @@ function ColorPickerPositioner(props) {
145
147
  return createComponent(OverlayPortal, {
146
148
  get children () {
147
149
  return createComponent(ColorPicker.Positioner, mergeProps({
148
- "data-slot": "color-picker-positioner",
149
150
  get ["class"] () {
150
151
  return clsx(ColorPicker_module.positioner, local.class);
151
152
  }
152
- }, others));
153
+ }, others, {
154
+ "data-slot": "color-picker-positioner"
155
+ }));
153
156
  }
154
157
  });
155
158
  }
@@ -158,11 +161,12 @@ function ColorPickerContent(props) {
158
161
  'class'
159
162
  ]);
160
163
  return createComponent(ColorPicker.Content, mergeProps({
161
- "data-slot": "color-picker-content",
162
164
  get ["class"] () {
163
165
  return clsx(ColorPicker_module.content, local.class);
164
166
  }
165
- }, others));
167
+ }, others, {
168
+ "data-slot": "color-picker-content"
169
+ }));
166
170
  }
167
171
  function ColorPickerArea(props) {
168
172
  const [local, others] = splitProps(props, [
@@ -171,11 +175,11 @@ function ColorPickerArea(props) {
171
175
  ]);
172
176
  const resolvedChildren = children(()=>local.children);
173
177
  return createComponent(ColorPicker.Area, mergeProps({
174
- "data-slot": "color-picker-area",
175
178
  get ["class"] () {
176
179
  return clsx(ColorPicker_module.area, local.class);
177
180
  }
178
181
  }, others, {
182
+ "data-slot": "color-picker-area",
179
183
  get children () {
180
184
  return resolvedChildren() ?? [
181
185
  createComponent(ColorPicker.AreaBackground, {
@@ -199,22 +203,24 @@ function ColorPickerAreaBackground(props) {
199
203
  'class'
200
204
  ]);
201
205
  return createComponent(ColorPicker.AreaBackground, mergeProps({
202
- "data-slot": "color-picker-area-background",
203
206
  get ["class"] () {
204
207
  return clsx(ColorPicker_module.areaBackground, local.class);
205
208
  }
206
- }, others));
209
+ }, others, {
210
+ "data-slot": "color-picker-area-background"
211
+ }));
207
212
  }
208
213
  function ColorPickerAreaThumb(props) {
209
214
  const [local, others] = splitProps(props, [
210
215
  'class'
211
216
  ]);
212
217
  return createComponent(ColorPicker.AreaThumb, mergeProps({
213
- "data-slot": "color-picker-area-thumb",
214
218
  get ["class"] () {
215
219
  return clsx(ColorPicker_module.thumb, local.class);
216
220
  }
217
- }, others));
221
+ }, others, {
222
+ "data-slot": "color-picker-area-thumb"
223
+ }));
218
224
  }
219
225
  function ColorPickerChannelSlider(props) {
220
226
  const [local, others] = splitProps(props, [
@@ -227,11 +233,11 @@ function ColorPickerChannelSlider(props) {
227
233
  get channel () {
228
234
  return local.channel;
229
235
  },
230
- "data-slot": "color-picker-channel-slider",
231
236
  get ["class"] () {
232
237
  return clsx(ColorPicker_module.channelSlider, local.class);
233
238
  }
234
239
  }, others, {
240
+ "data-slot": "color-picker-channel-slider",
235
241
  get children () {
236
242
  return resolvedChildren() ?? [
237
243
  memo(()=>memo(()=>'alpha' === local.channel)() && createComponent(ColorPicker.TransparencyGrid, {
@@ -266,7 +272,9 @@ function ColorPickerSliders(props) {
266
272
  get ["class"] () {
267
273
  return clsx(ColorPicker_module.sliders, local.class);
268
274
  }
269
- }, others), false, true);
275
+ }, others, {
276
+ "data-slot": "color-picker-sliders"
277
+ }), false, true);
270
278
  insert(_el$, createComponent(ColorPickerChannelSlider, {
271
279
  channel: "hue"
272
280
  }), null);
@@ -281,55 +289,60 @@ function ColorPickerChannelSliderTrack(props) {
281
289
  'class'
282
290
  ]);
283
291
  return createComponent(ColorPicker.ChannelSliderTrack, mergeProps({
284
- "data-slot": "color-picker-channel-slider-track",
285
292
  get ["class"] () {
286
293
  return clsx(ColorPicker_module.channelSliderTrack, local.class);
287
294
  }
288
- }, others));
295
+ }, others, {
296
+ "data-slot": "color-picker-channel-slider-track"
297
+ }));
289
298
  }
290
299
  function ColorPickerChannelSliderThumb(props) {
291
300
  const [local, others] = splitProps(props, [
292
301
  'class'
293
302
  ]);
294
303
  return createComponent(ColorPicker.ChannelSliderThumb, mergeProps({
295
- "data-slot": "color-picker-channel-slider-thumb",
296
304
  get ["class"] () {
297
305
  return clsx(ColorPicker_module.thumb, local.class);
298
306
  }
299
- }, others));
307
+ }, others, {
308
+ "data-slot": "color-picker-channel-slider-thumb"
309
+ }));
300
310
  }
301
311
  function ColorPickerChannelSliderLabel(props) {
302
312
  const [local, others] = splitProps(props, [
303
313
  'class'
304
314
  ]);
305
315
  return createComponent(ColorPicker.ChannelSliderLabel, mergeProps({
306
- "data-slot": "color-picker-channel-slider-label",
307
316
  get ["class"] () {
308
317
  return clsx(ColorPicker_module.channelSliderLabel, local.class);
309
318
  }
310
- }, others));
319
+ }, others, {
320
+ "data-slot": "color-picker-channel-slider-label"
321
+ }));
311
322
  }
312
323
  function ColorPickerChannelSliderValueText(props) {
313
324
  const [local, others] = splitProps(props, [
314
325
  'class'
315
326
  ]);
316
327
  return createComponent(ColorPicker.ChannelSliderValueText, mergeProps({
317
- "data-slot": "color-picker-channel-slider-value-text",
318
328
  get ["class"] () {
319
329
  return clsx(ColorPicker_module.channelSliderValueText, local.class);
320
330
  }
321
- }, others));
331
+ }, others, {
332
+ "data-slot": "color-picker-channel-slider-value-text"
333
+ }));
322
334
  }
323
335
  function ColorPickerChannelInput(props) {
324
336
  const [local, others] = splitProps(props, [
325
337
  'class'
326
338
  ]);
327
339
  return createComponent(ColorPicker.ChannelInput, mergeProps({
328
- "data-slot": "color-picker-channel-input",
329
340
  get ["class"] () {
330
341
  return clsx(ColorPicker_module.channelInput, local.class);
331
342
  }
332
- }, others));
343
+ }, others, {
344
+ "data-slot": "color-picker-channel-input"
345
+ }));
333
346
  }
334
347
  function ColorPickerEyeDropperTrigger(props) {
335
348
  const [local, others] = splitProps(props, [
@@ -338,11 +351,11 @@ function ColorPickerEyeDropperTrigger(props) {
338
351
  ]);
339
352
  const resolvedChildren = children(()=>local.children);
340
353
  return createComponent(ColorPicker.EyeDropperTrigger, mergeProps({
341
- "data-slot": "color-picker-eye-dropper-trigger",
342
354
  get ["class"] () {
343
355
  return clsx(ColorPicker_module.eyeDropperTrigger, local.class);
344
356
  }
345
357
  }, others, {
358
+ "data-slot": "color-picker-eye-dropper-trigger",
346
359
  get children () {
347
360
  return resolvedChildren() ?? createComponent(PipetteIcon, {});
348
361
  }
@@ -355,11 +368,12 @@ function ColorPickerFormatSelect(props) {
355
368
  return (()=>{
356
369
  var _el$2 = _tmpl$2(), _el$3 = _el$2.firstChild;
357
370
  insert(_el$2, createComponent(ColorPicker.FormatSelect, mergeProps({
358
- "data-slot": "color-picker-format-select",
359
371
  get ["class"] () {
360
372
  return clsx(ColorPicker_module.formatSelect, local.class);
361
373
  }
362
- }, others)), _el$3);
374
+ }, others, {
375
+ "data-slot": "color-picker-format-select"
376
+ })), _el$3);
363
377
  insert(_el$3, createComponent(ChevronDownIcon, {}));
364
378
  effect((_p$)=>{
365
379
  var _v$ = ColorPicker_module.formatSelectControl, _v$2 = ColorPicker_module.formatSelectIndicator;
@@ -378,22 +392,24 @@ function ColorPickerFormatTrigger(props) {
378
392
  'class'
379
393
  ]);
380
394
  return createComponent(ColorPicker.FormatTrigger, mergeProps({
381
- "data-slot": "color-picker-format-trigger",
382
395
  get ["class"] () {
383
396
  return clsx(ColorPicker_module.formatTrigger, local.class);
384
397
  }
385
- }, others));
398
+ }, others, {
399
+ "data-slot": "color-picker-format-trigger"
400
+ }));
386
401
  }
387
402
  function ColorPickerSwatchGroup(props) {
388
403
  const [local, others] = splitProps(props, [
389
404
  'class'
390
405
  ]);
391
406
  return createComponent(ColorPicker.SwatchGroup, mergeProps({
392
- "data-slot": "color-picker-swatch-group",
393
407
  get ["class"] () {
394
408
  return clsx(ColorPicker_module.swatchGroup, local.class);
395
409
  }
396
- }, others));
410
+ }, others, {
411
+ "data-slot": "color-picker-swatch-group"
412
+ }));
397
413
  }
398
414
  function ColorPickerSwatchTrigger(props) {
399
415
  const [local, others] = splitProps(props, [
@@ -403,7 +419,6 @@ function ColorPickerSwatchTrigger(props) {
403
419
  ]);
404
420
  const resolvedChildren = children(()=>local.children);
405
421
  return createComponent(ColorPicker.SwatchTrigger, mergeProps({
406
- "data-slot": "color-picker-swatch-trigger",
407
422
  get ["class"] () {
408
423
  return clsx(ColorPicker_module.swatchTrigger, local.class);
409
424
  },
@@ -411,6 +426,7 @@ function ColorPickerSwatchTrigger(props) {
411
426
  return local.value;
412
427
  }
413
428
  }, others, {
429
+ "data-slot": "color-picker-swatch-trigger",
414
430
  get children () {
415
431
  return resolvedChildren() ?? createComponent(ColorPicker.Swatch, {
416
432
  "data-slot": "color-picker-swatch",
@@ -440,11 +456,12 @@ function ColorPickerSwatch(props) {
440
456
  'class'
441
457
  ]);
442
458
  return createComponent(ColorPicker.Swatch, mergeProps({
443
- "data-slot": "color-picker-swatch",
444
459
  get ["class"] () {
445
460
  return clsx(ColorPicker_module.swatch, local.class);
446
461
  }
447
- }, others));
462
+ }, others, {
463
+ "data-slot": "color-picker-swatch"
464
+ }));
448
465
  }
449
466
  function ColorPickerSwatchIndicator(props) {
450
467
  const [local, others] = splitProps(props, [
@@ -453,11 +470,11 @@ function ColorPickerSwatchIndicator(props) {
453
470
  ]);
454
471
  const resolvedChildren = children(()=>local.children);
455
472
  return createComponent(ColorPicker.SwatchIndicator, mergeProps({
456
- "data-slot": "color-picker-swatch-indicator",
457
473
  get ["class"] () {
458
474
  return clsx(ColorPicker_module.swatchIndicator, local.class);
459
475
  }
460
476
  }, others, {
477
+ "data-slot": "color-picker-swatch-indicator",
461
478
  get children () {
462
479
  return resolvedChildren() ?? createComponent(CheckIcon, {});
463
480
  }
@@ -468,44 +485,48 @@ function ColorPickerTransparencyGrid(props) {
468
485
  'class'
469
486
  ]);
470
487
  return createComponent(ColorPicker.TransparencyGrid, mergeProps({
471
- "data-slot": "color-picker-transparency-grid",
472
488
  get ["class"] () {
473
489
  return clsx(ColorPicker_module.transparencyGrid, local.class);
474
490
  }
475
- }, others));
491
+ }, others, {
492
+ "data-slot": "color-picker-transparency-grid"
493
+ }));
476
494
  }
477
495
  function ColorPickerValueSwatch(props) {
478
496
  const [local, others] = splitProps(props, [
479
497
  'class'
480
498
  ]);
481
499
  return createComponent(ColorPicker.ValueSwatch, mergeProps({
482
- "data-slot": "color-picker-value-swatch",
483
500
  get ["class"] () {
484
501
  return clsx(ColorPicker_module.valueSwatch, local.class);
485
502
  }
486
- }, others));
503
+ }, others, {
504
+ "data-slot": "color-picker-value-swatch"
505
+ }));
487
506
  }
488
507
  function ColorPickerValueText(props) {
489
508
  const [local, others] = splitProps(props, [
490
509
  'class'
491
510
  ]);
492
511
  return createComponent(ColorPicker.ValueText, mergeProps({
493
- "data-slot": "color-picker-value-text",
494
512
  get ["class"] () {
495
513
  return clsx(ColorPicker_module.valueText, local.class);
496
514
  }
497
- }, others));
515
+ }, others, {
516
+ "data-slot": "color-picker-value-text"
517
+ }));
498
518
  }
499
519
  function ColorPickerView(props) {
500
520
  const [local, others] = splitProps(props, [
501
521
  'class'
502
522
  ]);
503
523
  return createComponent(ColorPicker.View, mergeProps({
504
- "data-slot": "color-picker-view",
505
524
  get ["class"] () {
506
525
  return clsx(ColorPicker_module.view, local.class);
507
526
  }
508
- }, others));
527
+ }, others, {
528
+ "data-slot": "color-picker-view"
529
+ }));
509
530
  }
510
531
  const ColorPicker_ColorPicker = Object.assign(ColorPickerRoot, {
511
532
  Root: ColorPickerRoot,
@@ -15,7 +15,7 @@ function ColorPickerRoot(props) {
15
15
  'unmountOnExit'
16
16
  ]);
17
17
  return <OverlayPortalProvider portalled={local.portalled} portalRef={local.portalRef}>
18
- <ColorPicker.Root asChild={local.asChild} data-slot="color-picker-root" class={clsx(ColorPicker_module.root, local.class)} lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others}>
18
+ <ColorPicker.Root asChild={local.asChild} class={clsx(ColorPicker_module.root, local.class)} lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others} data-slot="color-picker-root">
19
19
  {local.children}
20
20
  </ColorPicker.Root>
21
21
  </OverlayPortalProvider>;
@@ -31,7 +31,7 @@ function ColorPickerRootProvider(props) {
31
31
  'unmountOnExit'
32
32
  ]);
33
33
  return <OverlayPortalProvider portalled={local.portalled} portalRef={local.portalRef}>
34
- <ColorPicker.RootProvider asChild={local.asChild} data-slot="color-picker-root-provider" class={clsx(ColorPicker_module.root, local.class)} lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others}>
34
+ <ColorPicker.RootProvider asChild={local.asChild} class={clsx(ColorPicker_module.root, local.class)} lazyMount={local.lazyMount ?? true} unmountOnExit={local.unmountOnExit ?? true} {...others} data-slot="color-picker-root-provider">
35
35
  {local.children}
36
36
  </ColorPicker.RootProvider>
37
37
  </OverlayPortalProvider>;
@@ -40,13 +40,13 @@ function ColorPickerLabel(props) {
40
40
  const [local, others] = splitProps(props, [
41
41
  'class'
42
42
  ]);
43
- return <ColorPicker.Label data-slot="color-picker-label" class={clsx(ColorPicker_module.label, local.class)} {...others}/>;
43
+ return <ColorPicker.Label class={clsx(ColorPicker_module.label, local.class)} {...others} data-slot="color-picker-label"/>;
44
44
  }
45
45
  function ColorPickerControl(props) {
46
46
  const [local, others] = splitProps(props, [
47
47
  'class'
48
48
  ]);
49
- return <ColorPicker.Control data-slot="color-picker-control" class={clsx(ColorPicker_module.control, local.class)} {...others}/>;
49
+ return <ColorPicker.Control class={clsx(ColorPicker_module.control, local.class)} {...others} data-slot="color-picker-control"/>;
50
50
  }
51
51
  function ColorPickerTrigger(props) {
52
52
  const [local, others] = splitProps(props, [
@@ -54,7 +54,7 @@ function ColorPickerTrigger(props) {
54
54
  'class'
55
55
  ]);
56
56
  const resolvedChildren = children(()=>local.children);
57
- return <ColorPicker.Trigger data-slot="color-picker-trigger" class={clsx(ColorPicker_module.trigger, local.class)} {...others}>
57
+ return <ColorPicker.Trigger class={clsx(ColorPicker_module.trigger, local.class)} {...others} data-slot="color-picker-trigger">
58
58
  {resolvedChildren() ?? <>
59
59
  <ColorPicker.TransparencyGrid data-slot="color-picker-transparency-grid" class={ColorPicker_module.transparencyGrid}/>
60
60
  <ColorPicker.ValueSwatch data-slot="color-picker-value-swatch" class={ColorPicker_module.valueSwatch}/>
@@ -66,14 +66,14 @@ function ColorPickerPositioner(props) {
66
66
  'class'
67
67
  ]);
68
68
  return <OverlayPortal>
69
- <ColorPicker.Positioner data-slot="color-picker-positioner" class={clsx(ColorPicker_module.positioner, local.class)} {...others}/>
69
+ <ColorPicker.Positioner class={clsx(ColorPicker_module.positioner, local.class)} {...others} data-slot="color-picker-positioner"/>
70
70
  </OverlayPortal>;
71
71
  }
72
72
  function ColorPickerContent(props) {
73
73
  const [local, others] = splitProps(props, [
74
74
  'class'
75
75
  ]);
76
- return <ColorPicker.Content data-slot="color-picker-content" class={clsx(ColorPicker_module.content, local.class)} {...others}/>;
76
+ return <ColorPicker.Content class={clsx(ColorPicker_module.content, local.class)} {...others} data-slot="color-picker-content"/>;
77
77
  }
78
78
  function ColorPickerArea(props) {
79
79
  const [local, others] = splitProps(props, [
@@ -81,7 +81,7 @@ function ColorPickerArea(props) {
81
81
  'class'
82
82
  ]);
83
83
  const resolvedChildren = children(()=>local.children);
84
- return <ColorPicker.Area data-slot="color-picker-area" class={clsx(ColorPicker_module.area, local.class)} {...others}>
84
+ return <ColorPicker.Area class={clsx(ColorPicker_module.area, local.class)} {...others} data-slot="color-picker-area">
85
85
  {resolvedChildren() ?? <>
86
86
  <ColorPicker.AreaBackground data-slot="color-picker-area-background" class={ColorPicker_module.areaBackground}/>
87
87
  <ColorPicker.AreaThumb data-slot="color-picker-area-thumb" class={ColorPicker_module.thumb}/>
@@ -92,13 +92,13 @@ function ColorPickerAreaBackground(props) {
92
92
  const [local, others] = splitProps(props, [
93
93
  'class'
94
94
  ]);
95
- return <ColorPicker.AreaBackground data-slot="color-picker-area-background" class={clsx(ColorPicker_module.areaBackground, local.class)} {...others}/>;
95
+ return <ColorPicker.AreaBackground class={clsx(ColorPicker_module.areaBackground, local.class)} {...others} data-slot="color-picker-area-background"/>;
96
96
  }
97
97
  function ColorPickerAreaThumb(props) {
98
98
  const [local, others] = splitProps(props, [
99
99
  'class'
100
100
  ]);
101
- return <ColorPicker.AreaThumb data-slot="color-picker-area-thumb" class={clsx(ColorPicker_module.thumb, local.class)} {...others}/>;
101
+ return <ColorPicker.AreaThumb class={clsx(ColorPicker_module.thumb, local.class)} {...others} data-slot="color-picker-area-thumb"/>;
102
102
  }
103
103
  function ColorPickerChannelSlider(props) {
104
104
  const [local, others] = splitProps(props, [
@@ -107,7 +107,7 @@ function ColorPickerChannelSlider(props) {
107
107
  'class'
108
108
  ]);
109
109
  const resolvedChildren = children(()=>local.children);
110
- return <ColorPicker.ChannelSlider channel={local.channel} data-slot="color-picker-channel-slider" class={clsx(ColorPicker_module.channelSlider, local.class)} {...others}>
110
+ return <ColorPicker.ChannelSlider channel={local.channel} class={clsx(ColorPicker_module.channelSlider, local.class)} {...others} data-slot="color-picker-channel-slider">
111
111
  {resolvedChildren() ?? <>
112
112
  {'alpha' === local.channel && <ColorPicker.TransparencyGrid data-slot="color-picker-transparency-grid" class={ColorPicker_module.transparencyGrid}/>}
113
113
  <ColorPicker.ChannelSliderTrack data-slot="color-picker-channel-slider-track" class={ColorPicker_module.channelSliderTrack}/>
@@ -119,7 +119,7 @@ function ColorPickerSliders(props) {
119
119
  const [local, others] = splitProps(props, [
120
120
  'class'
121
121
  ]);
122
- return <div data-slot="color-picker-sliders" class={clsx(ColorPicker_module.sliders, local.class)} {...others}>
122
+ return <div class={clsx(ColorPicker_module.sliders, local.class)} {...others} data-slot="color-picker-sliders">
123
123
  <ColorPickerChannelSlider channel="hue"/>
124
124
  <ColorPickerChannelSlider channel="alpha"/>
125
125
  </div>;
@@ -128,31 +128,31 @@ function ColorPickerChannelSliderTrack(props) {
128
128
  const [local, others] = splitProps(props, [
129
129
  'class'
130
130
  ]);
131
- return <ColorPicker.ChannelSliderTrack data-slot="color-picker-channel-slider-track" class={clsx(ColorPicker_module.channelSliderTrack, local.class)} {...others}/>;
131
+ return <ColorPicker.ChannelSliderTrack class={clsx(ColorPicker_module.channelSliderTrack, local.class)} {...others} data-slot="color-picker-channel-slider-track"/>;
132
132
  }
133
133
  function ColorPickerChannelSliderThumb(props) {
134
134
  const [local, others] = splitProps(props, [
135
135
  'class'
136
136
  ]);
137
- return <ColorPicker.ChannelSliderThumb data-slot="color-picker-channel-slider-thumb" class={clsx(ColorPicker_module.thumb, local.class)} {...others}/>;
137
+ return <ColorPicker.ChannelSliderThumb class={clsx(ColorPicker_module.thumb, local.class)} {...others} data-slot="color-picker-channel-slider-thumb"/>;
138
138
  }
139
139
  function ColorPickerChannelSliderLabel(props) {
140
140
  const [local, others] = splitProps(props, [
141
141
  'class'
142
142
  ]);
143
- return <ColorPicker.ChannelSliderLabel data-slot="color-picker-channel-slider-label" class={clsx(ColorPicker_module.channelSliderLabel, local.class)} {...others}/>;
143
+ return <ColorPicker.ChannelSliderLabel class={clsx(ColorPicker_module.channelSliderLabel, local.class)} {...others} data-slot="color-picker-channel-slider-label"/>;
144
144
  }
145
145
  function ColorPickerChannelSliderValueText(props) {
146
146
  const [local, others] = splitProps(props, [
147
147
  'class'
148
148
  ]);
149
- return <ColorPicker.ChannelSliderValueText data-slot="color-picker-channel-slider-value-text" class={clsx(ColorPicker_module.channelSliderValueText, local.class)} {...others}/>;
149
+ return <ColorPicker.ChannelSliderValueText class={clsx(ColorPicker_module.channelSliderValueText, local.class)} {...others} data-slot="color-picker-channel-slider-value-text"/>;
150
150
  }
151
151
  function ColorPickerChannelInput(props) {
152
152
  const [local, others] = splitProps(props, [
153
153
  'class'
154
154
  ]);
155
- return <ColorPicker.ChannelInput data-slot="color-picker-channel-input" class={clsx(ColorPicker_module.channelInput, local.class)} {...others}/>;
155
+ return <ColorPicker.ChannelInput class={clsx(ColorPicker_module.channelInput, local.class)} {...others} data-slot="color-picker-channel-input"/>;
156
156
  }
157
157
  function ColorPickerEyeDropperTrigger(props) {
158
158
  const [local, others] = splitProps(props, [
@@ -160,7 +160,7 @@ function ColorPickerEyeDropperTrigger(props) {
160
160
  'class'
161
161
  ]);
162
162
  const resolvedChildren = children(()=>local.children);
163
- return <ColorPicker.EyeDropperTrigger data-slot="color-picker-eye-dropper-trigger" class={clsx(ColorPicker_module.eyeDropperTrigger, local.class)} {...others}>
163
+ return <ColorPicker.EyeDropperTrigger class={clsx(ColorPicker_module.eyeDropperTrigger, local.class)} {...others} data-slot="color-picker-eye-dropper-trigger">
164
164
  {resolvedChildren() ?? <PipetteIcon/>}
165
165
  </ColorPicker.EyeDropperTrigger>;
166
166
  }
@@ -169,7 +169,7 @@ function ColorPickerFormatSelect(props) {
169
169
  'class'
170
170
  ]);
171
171
  return <span class={ColorPicker_module.formatSelectControl}>
172
- <ColorPicker.FormatSelect data-slot="color-picker-format-select" class={clsx(ColorPicker_module.formatSelect, local.class)} {...others}/>
172
+ <ColorPicker.FormatSelect class={clsx(ColorPicker_module.formatSelect, local.class)} {...others} data-slot="color-picker-format-select"/>
173
173
  <span aria-hidden="true" class={ColorPicker_module.formatSelectIndicator}>
174
174
  <ChevronDownIcon/>
175
175
  </span>
@@ -179,13 +179,13 @@ function ColorPickerFormatTrigger(props) {
179
179
  const [local, others] = splitProps(props, [
180
180
  'class'
181
181
  ]);
182
- return <ColorPicker.FormatTrigger data-slot="color-picker-format-trigger" class={clsx(ColorPicker_module.formatTrigger, local.class)} {...others}/>;
182
+ return <ColorPicker.FormatTrigger class={clsx(ColorPicker_module.formatTrigger, local.class)} {...others} data-slot="color-picker-format-trigger"/>;
183
183
  }
184
184
  function ColorPickerSwatchGroup(props) {
185
185
  const [local, others] = splitProps(props, [
186
186
  'class'
187
187
  ]);
188
- return <ColorPicker.SwatchGroup data-slot="color-picker-swatch-group" class={clsx(ColorPicker_module.swatchGroup, local.class)} {...others}/>;
188
+ return <ColorPicker.SwatchGroup class={clsx(ColorPicker_module.swatchGroup, local.class)} {...others} data-slot="color-picker-swatch-group"/>;
189
189
  }
190
190
  function ColorPickerSwatchTrigger(props) {
191
191
  const [local, others] = splitProps(props, [
@@ -194,7 +194,7 @@ function ColorPickerSwatchTrigger(props) {
194
194
  'value'
195
195
  ]);
196
196
  const resolvedChildren = children(()=>local.children);
197
- return <ColorPicker.SwatchTrigger data-slot="color-picker-swatch-trigger" class={clsx(ColorPicker_module.swatchTrigger, local.class)} value={local.value} {...others}>
197
+ return <ColorPicker.SwatchTrigger class={clsx(ColorPicker_module.swatchTrigger, local.class)} value={local.value} {...others} data-slot="color-picker-swatch-trigger">
198
198
  {resolvedChildren() ?? <ColorPicker.Swatch data-slot="color-picker-swatch" class={ColorPicker_module.swatch} value={local.value}>
199
199
  <ColorPicker.SwatchIndicator data-slot="color-picker-swatch-indicator" class={ColorPicker_module.swatchIndicator}>
200
200
  <CheckIcon/>
@@ -206,7 +206,7 @@ function ColorPickerSwatch(props) {
206
206
  const [local, others] = splitProps(props, [
207
207
  'class'
208
208
  ]);
209
- return <ColorPicker.Swatch data-slot="color-picker-swatch" class={clsx(ColorPicker_module.swatch, local.class)} {...others}/>;
209
+ return <ColorPicker.Swatch class={clsx(ColorPicker_module.swatch, local.class)} {...others} data-slot="color-picker-swatch"/>;
210
210
  }
211
211
  function ColorPickerSwatchIndicator(props) {
212
212
  const [local, others] = splitProps(props, [
@@ -214,7 +214,7 @@ function ColorPickerSwatchIndicator(props) {
214
214
  'class'
215
215
  ]);
216
216
  const resolvedChildren = children(()=>local.children);
217
- return <ColorPicker.SwatchIndicator data-slot="color-picker-swatch-indicator" class={clsx(ColorPicker_module.swatchIndicator, local.class)} {...others}>
217
+ return <ColorPicker.SwatchIndicator class={clsx(ColorPicker_module.swatchIndicator, local.class)} {...others} data-slot="color-picker-swatch-indicator">
218
218
  {resolvedChildren() ?? <CheckIcon/>}
219
219
  </ColorPicker.SwatchIndicator>;
220
220
  }
@@ -222,25 +222,25 @@ function ColorPickerTransparencyGrid(props) {
222
222
  const [local, others] = splitProps(props, [
223
223
  'class'
224
224
  ]);
225
- return <ColorPicker.TransparencyGrid data-slot="color-picker-transparency-grid" class={clsx(ColorPicker_module.transparencyGrid, local.class)} {...others}/>;
225
+ return <ColorPicker.TransparencyGrid class={clsx(ColorPicker_module.transparencyGrid, local.class)} {...others} data-slot="color-picker-transparency-grid"/>;
226
226
  }
227
227
  function ColorPickerValueSwatch(props) {
228
228
  const [local, others] = splitProps(props, [
229
229
  'class'
230
230
  ]);
231
- return <ColorPicker.ValueSwatch data-slot="color-picker-value-swatch" class={clsx(ColorPicker_module.valueSwatch, local.class)} {...others}/>;
231
+ return <ColorPicker.ValueSwatch class={clsx(ColorPicker_module.valueSwatch, local.class)} {...others} data-slot="color-picker-value-swatch"/>;
232
232
  }
233
233
  function ColorPickerValueText(props) {
234
234
  const [local, others] = splitProps(props, [
235
235
  'class'
236
236
  ]);
237
- return <ColorPicker.ValueText data-slot="color-picker-value-text" class={clsx(ColorPicker_module.valueText, local.class)} {...others}/>;
237
+ return <ColorPicker.ValueText class={clsx(ColorPicker_module.valueText, local.class)} {...others} data-slot="color-picker-value-text"/>;
238
238
  }
239
239
  function ColorPickerView(props) {
240
240
  const [local, others] = splitProps(props, [
241
241
  'class'
242
242
  ]);
243
- return <ColorPicker.View data-slot="color-picker-view" class={clsx(ColorPicker_module.view, local.class)} {...others}/>;
243
+ return <ColorPicker.View class={clsx(ColorPicker_module.view, local.class)} {...others} data-slot="color-picker-view"/>;
244
244
  }
245
245
  const ColorPicker_ColorPicker = Object.assign(ColorPickerRoot, {
246
246
  Root: ColorPickerRoot,