@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
@@ -2,7 +2,7 @@ import { createComponent, mergeProps } from "solid-js/web";
2
2
  import { Combobox } from "@ark-ui/solid/combobox";
3
3
  import { Dialog, useDialog, useDialogContext } from "@ark-ui/solid/dialog";
4
4
  import { ark } from "@ark-ui/solid/factory";
5
- import { isHotKey } from "@zag-js/hotkeys";
5
+ import { isHotKey } from "@ark-ui/solid/hotkeys";
6
6
  import { clsx } from "clsx";
7
7
  import { children, createEffect, onCleanup, splitProps } from "solid-js";
8
8
  import { CheckIcon, CloseIcon } from "../../internal/icons/ui/Icons.js";
@@ -113,11 +113,12 @@ function CommandPaletteTrigger(props) {
113
113
  get asChild () {
114
114
  return local.asChild;
115
115
  },
116
- "data-slot": "command-palette-trigger",
117
116
  get ["class"] () {
118
117
  return clsx(!local.asChild && CommandPalette_module.trigger, local.class);
119
118
  }
120
- }, others));
119
+ }, others, {
120
+ "data-slot": "command-palette-trigger"
121
+ }));
121
122
  }
122
123
  function CommandPaletteBackdrop(props) {
123
124
  const [local, others] = splitProps(props, [
@@ -126,11 +127,12 @@ function CommandPaletteBackdrop(props) {
126
127
  return createComponent(OverlayPortal, {
127
128
  get children () {
128
129
  return createComponent(Dialog.Backdrop, mergeProps({
129
- "data-slot": "command-palette-backdrop",
130
130
  get ["class"] () {
131
131
  return clsx(CommandPalette_module.backdrop, local.class);
132
132
  }
133
- }, others));
133
+ }, others, {
134
+ "data-slot": "command-palette-backdrop"
135
+ }));
134
136
  }
135
137
  });
136
138
  }
@@ -141,11 +143,12 @@ function CommandPalettePositioner(props) {
141
143
  return createComponent(OverlayPortal, {
142
144
  get children () {
143
145
  return createComponent(Dialog.Positioner, mergeProps({
144
- "data-slot": "command-palette-positioner",
145
146
  get ["class"] () {
146
147
  return clsx(CommandPalette_module.positioner, local.class);
147
148
  }
148
- }, others));
149
+ }, others, {
150
+ "data-slot": "command-palette-positioner"
151
+ }));
149
152
  }
150
153
  });
151
154
  }
@@ -154,11 +157,12 @@ function CommandPaletteContent(props) {
154
157
  'class'
155
158
  ]);
156
159
  return createComponent(Dialog.Content, mergeProps({
157
- "data-slot": "command-palette-content",
158
160
  get ["class"] () {
159
161
  return clsx(CommandPalette_module.content, local.class);
160
162
  }
161
- }, others));
163
+ }, others, {
164
+ "data-slot": "command-palette-content"
165
+ }));
162
166
  }
163
167
  function CommandPalettePanel(props) {
164
168
  const [local, others] = splitProps(props, [
@@ -186,44 +190,48 @@ function CommandPaletteTitle(props) {
186
190
  'class'
187
191
  ]);
188
192
  return createComponent(Dialog.Title, mergeProps({
189
- "data-slot": "command-palette-title",
190
193
  get ["class"] () {
191
194
  return clsx(CommandPalette_module.title, local.class);
192
195
  }
193
- }, others));
196
+ }, others, {
197
+ "data-slot": "command-palette-title"
198
+ }));
194
199
  }
195
200
  function CommandPaletteDescription(props) {
196
201
  const [local, others] = splitProps(props, [
197
202
  'class'
198
203
  ]);
199
204
  return createComponent(Dialog.Description, mergeProps({
200
- "data-slot": "command-palette-description",
201
205
  get ["class"] () {
202
206
  return clsx(CommandPalette_module.description, local.class);
203
207
  }
204
- }, others));
208
+ }, others, {
209
+ "data-slot": "command-palette-description"
210
+ }));
205
211
  }
206
212
  function CommandPaletteHeader(props) {
207
213
  const [local, others] = splitProps(props, [
208
214
  'class'
209
215
  ]);
210
216
  return createComponent(ark.div, mergeProps({
211
- "data-slot": "command-palette-header",
212
217
  get ["class"] () {
213
218
  return clsx(CommandPalette_module.header, local.class);
214
219
  }
215
- }, others));
220
+ }, others, {
221
+ "data-slot": "command-palette-header"
222
+ }));
216
223
  }
217
224
  function CommandPaletteBody(props) {
218
225
  const [local, others] = splitProps(props, [
219
226
  'class'
220
227
  ]);
221
228
  return createComponent(ark.div, mergeProps({
222
- "data-slot": "command-palette-body",
223
229
  get ["class"] () {
224
230
  return clsx(CommandPalette_module.body, local.class);
225
231
  }
226
- }, others));
232
+ }, others, {
233
+ "data-slot": "command-palette-body"
234
+ }));
227
235
  }
228
236
  const CommandPalette_CommandPaletteCombobox = function(props) {
229
237
  const [local, others] = splitProps(props, [
@@ -242,7 +250,6 @@ const CommandPalette_CommandPaletteCombobox = function(props) {
242
250
  if (local.closeOnSelect ?? true) dialog().setOpen(false);
243
251
  };
244
252
  return createComponent(Combobox.Root, mergeProps({
245
- "data-slot": "command-palette-combobox",
246
253
  get ["class"] () {
247
254
  return clsx(CommandPalette_module.combobox, local.class);
248
255
  },
@@ -263,6 +270,7 @@ const CommandPalette_CommandPaletteCombobox = function(props) {
263
270
  },
264
271
  onSelect: handleSelect
265
272
  }, others, {
273
+ "data-slot": "command-palette-combobox",
266
274
  get children () {
267
275
  return local.children;
268
276
  }
@@ -273,22 +281,24 @@ function CommandPaletteControl(props) {
273
281
  'class'
274
282
  ]);
275
283
  return createComponent(Combobox.Control, mergeProps({
276
- "data-slot": "command-palette-control",
277
284
  get ["class"] () {
278
285
  return clsx(CommandPalette_module.control, local.class);
279
286
  }
280
- }, others));
287
+ }, others, {
288
+ "data-slot": "command-palette-control"
289
+ }));
281
290
  }
282
291
  function CommandPaletteInput(props) {
283
292
  const [local, others] = splitProps(props, [
284
293
  'class'
285
294
  ]);
286
295
  return createComponent(Combobox.Input, mergeProps({
287
- "data-slot": "command-palette-input",
288
296
  get ["class"] () {
289
297
  return clsx(CommandPalette_module.input, local.class);
290
298
  }
291
- }, others));
299
+ }, others, {
300
+ "data-slot": "command-palette-input"
301
+ }));
292
302
  }
293
303
  function CommandPaletteSearch(props) {
294
304
  const [local, others] = splitProps(props, [
@@ -327,7 +337,6 @@ function CommandPaletteClearTrigger(props) {
327
337
  get asChild () {
328
338
  return local.asChild;
329
339
  },
330
- "data-slot": "command-palette-clear-trigger",
331
340
  get hidden () {
332
341
  return 0 === combobox().inputValue.length;
333
342
  },
@@ -346,12 +355,10 @@ function CommandPaletteClearTrigger(props) {
346
355
  },
347
356
  onPointerDown: (event)=>{
348
357
  local.onPointerDown?.(event);
349
- if (0 === event.button) {
350
- event.preventDefault();
351
- combobox().setInputValue('');
352
- }
358
+ if (0 === event.button) event.preventDefault();
353
359
  }
354
360
  }, others, {
361
+ "data-slot": "command-palette-clear-trigger",
355
362
  get children () {
356
363
  return resolvedChildren() ?? createComponent(CloseIcon, {});
357
364
  }
@@ -364,11 +371,11 @@ function CommandPaletteList(props) {
364
371
  'children'
365
372
  ]);
366
373
  return createComponent(Combobox.Content, mergeProps({
367
- "data-slot": "command-palette-list",
368
374
  get ["class"] () {
369
375
  return clsx(CommandPalette_module.list, local.class);
370
376
  }
371
377
  }, others, {
378
+ "data-slot": "command-palette-list",
372
379
  get children () {
373
380
  return createComponent(ScrollArea, {
374
381
  "data-slot": "command-palette-scroll-area",
@@ -403,55 +410,60 @@ function CommandPaletteEmpty(props) {
403
410
  'class'
404
411
  ]);
405
412
  return createComponent(Combobox.Empty, mergeProps({
406
- "data-slot": "command-palette-empty",
407
413
  get ["class"] () {
408
414
  return clsx(CommandPalette_module.empty, local.class);
409
415
  }
410
- }, others));
416
+ }, others, {
417
+ "data-slot": "command-palette-empty"
418
+ }));
411
419
  }
412
420
  function CommandPaletteItemGroup(props) {
413
421
  const [local, others] = splitProps(props, [
414
422
  'class'
415
423
  ]);
416
424
  return createComponent(Combobox.ItemGroup, mergeProps({
417
- "data-slot": "command-palette-item-group",
418
425
  get ["class"] () {
419
426
  return clsx(CommandPalette_module.itemGroup, local.class);
420
427
  }
421
- }, others));
428
+ }, others, {
429
+ "data-slot": "command-palette-item-group"
430
+ }));
422
431
  }
423
432
  function CommandPaletteItemGroupLabel(props) {
424
433
  const [local, others] = splitProps(props, [
425
434
  'class'
426
435
  ]);
427
436
  return createComponent(Combobox.ItemGroupLabel, mergeProps({
428
- "data-slot": "command-palette-item-group-label",
429
437
  get ["class"] () {
430
438
  return clsx(CommandPalette_module.itemGroupLabel, local.class);
431
439
  }
432
- }, others));
440
+ }, others, {
441
+ "data-slot": "command-palette-item-group-label"
442
+ }));
433
443
  }
434
444
  function CommandPaletteItem(props) {
435
445
  const [local, others] = splitProps(props, [
436
446
  'class'
437
447
  ]);
438
448
  return createComponent(Combobox.Item, mergeProps({
439
- "data-slot": "command-palette-item",
440
449
  get ["class"] () {
441
450
  return clsx(CommandPalette_module.item, local.class);
442
451
  }
443
- }, others));
452
+ }, others, {
453
+ "data-slot": "command-palette-item"
454
+ }));
444
455
  }
445
456
  function CommandPaletteItemText(props) {
446
457
  const [local, others] = splitProps(props, [
447
458
  'class'
448
459
  ]);
449
460
  return createComponent(Combobox.ItemText, mergeProps({
450
- "data-slot": "command-palette-item-text",
451
461
  get ["class"] () {
452
462
  return clsx(CommandPalette_module.itemText, local.class);
453
463
  }
454
- }, others));
464
+ }, others, {
465
+ "data-slot": "command-palette-item-text"
466
+ }));
455
467
  }
456
468
  function CommandPaletteItemIndicator(props) {
457
469
  const [local, others] = splitProps(props, [
@@ -460,11 +472,11 @@ function CommandPaletteItemIndicator(props) {
460
472
  ]);
461
473
  const resolvedChildren = children(()=>local.children);
462
474
  return createComponent(Combobox.ItemIndicator, mergeProps({
463
- "data-slot": "command-palette-item-indicator",
464
475
  get ["class"] () {
465
476
  return clsx(CommandPalette_module.itemIndicator, local.class);
466
477
  }
467
478
  }, others, {
479
+ "data-slot": "command-palette-item-indicator",
468
480
  get children () {
469
481
  return resolvedChildren() ?? createComponent(CheckIcon, {});
470
482
  }
@@ -475,44 +487,48 @@ function CommandPaletteItemIcon(props) {
475
487
  'class'
476
488
  ]);
477
489
  return createComponent(ark.span, mergeProps({
478
- "data-slot": "command-palette-item-icon",
479
490
  get ["class"] () {
480
491
  return clsx(CommandPalette_module.itemIcon, local.class);
481
492
  }
482
- }, others));
493
+ }, others, {
494
+ "data-slot": "command-palette-item-icon"
495
+ }));
483
496
  }
484
497
  function CommandPaletteItemLabel(props) {
485
498
  const [local, others] = splitProps(props, [
486
499
  'class'
487
500
  ]);
488
501
  return createComponent(ark.span, mergeProps({
489
- "data-slot": "command-palette-item-label",
490
502
  get ["class"] () {
491
503
  return clsx(CommandPalette_module.itemLabel, local.class);
492
504
  }
493
- }, others));
505
+ }, others, {
506
+ "data-slot": "command-palette-item-label"
507
+ }));
494
508
  }
495
509
  function CommandPaletteItemDescription(props) {
496
510
  const [local, others] = splitProps(props, [
497
511
  'class'
498
512
  ]);
499
513
  return createComponent(ark.span, mergeProps({
500
- "data-slot": "command-palette-item-description",
501
514
  get ["class"] () {
502
515
  return clsx(CommandPalette_module.itemDescription, local.class);
503
516
  }
504
- }, others));
517
+ }, others, {
518
+ "data-slot": "command-palette-item-description"
519
+ }));
505
520
  }
506
521
  function CommandPaletteItemMeta(props) {
507
522
  const [local, others] = splitProps(props, [
508
523
  'class'
509
524
  ]);
510
525
  return createComponent(ark.span, mergeProps({
511
- "data-slot": "command-palette-item-meta",
512
526
  get ["class"] () {
513
527
  return clsx(CommandPalette_module.itemMeta, local.class);
514
528
  }
515
- }, others));
529
+ }, others, {
530
+ "data-slot": "command-palette-item-meta"
531
+ }));
516
532
  }
517
533
  function CommandPaletteSeparator(props) {
518
534
  const [local, others] = splitProps(props, [
@@ -520,33 +536,36 @@ function CommandPaletteSeparator(props) {
520
536
  ]);
521
537
  return createComponent(ark.div, mergeProps({
522
538
  role: "separator",
523
- "data-slot": "command-palette-separator",
524
539
  get ["class"] () {
525
540
  return clsx(CommandPalette_module.separator, local.class);
526
541
  }
527
- }, others));
542
+ }, others, {
543
+ "data-slot": "command-palette-separator"
544
+ }));
528
545
  }
529
546
  function CommandPaletteFooter(props) {
530
547
  const [local, others] = splitProps(props, [
531
548
  'class'
532
549
  ]);
533
550
  return createComponent(ark.div, mergeProps({
534
- "data-slot": "command-palette-footer",
535
551
  get ["class"] () {
536
552
  return clsx(CommandPalette_module.footer, local.class);
537
553
  }
538
- }, others));
554
+ }, others, {
555
+ "data-slot": "command-palette-footer"
556
+ }));
539
557
  }
540
558
  function CommandPaletteKbd(props) {
541
559
  const [local, others] = splitProps(props, [
542
560
  'class'
543
561
  ]);
544
562
  return createComponent(Kbd.Root, mergeProps({
545
- "data-slot": "command-palette-kbd",
546
563
  get ["class"] () {
547
564
  return clsx(CommandPalette_module.kbd, local.class);
548
565
  }
549
- }, others));
566
+ }, others, {
567
+ "data-slot": "command-palette-kbd"
568
+ }));
550
569
  }
551
570
  const CommandPalette = Object.assign(CommandPaletteRoot, {
552
571
  Root: CommandPaletteRoot,
@@ -1,7 +1,7 @@
1
1
  import { Combobox } from "@ark-ui/solid/combobox";
2
2
  import { Dialog, useDialog, useDialogContext } from "@ark-ui/solid/dialog";
3
3
  import { ark } from "@ark-ui/solid/factory";
4
- import { isHotKey } from "@zag-js/hotkeys";
4
+ import { isHotKey } from "@ark-ui/solid/hotkeys";
5
5
  import { clsx } from "clsx";
6
6
  import { children, createEffect, onCleanup, splitProps } from "solid-js";
7
7
  import { CheckIcon, CloseIcon } from "../../internal/icons/ui/Icons.jsx";
@@ -65,14 +65,14 @@ function CommandPaletteTrigger(props) {
65
65
  'asChild',
66
66
  'class'
67
67
  ]);
68
- return <Dialog.Trigger asChild={local.asChild} data-slot="command-palette-trigger" class={clsx(!local.asChild && CommandPalette_module.trigger, local.class)} {...others}/>;
68
+ return <Dialog.Trigger asChild={local.asChild} class={clsx(!local.asChild && CommandPalette_module.trigger, local.class)} {...others} data-slot="command-palette-trigger"/>;
69
69
  }
70
70
  function CommandPaletteBackdrop(props) {
71
71
  const [local, others] = splitProps(props, [
72
72
  'class'
73
73
  ]);
74
74
  return <OverlayPortal>
75
- <Dialog.Backdrop data-slot="command-palette-backdrop" class={clsx(CommandPalette_module.backdrop, local.class)} {...others}/>
75
+ <Dialog.Backdrop class={clsx(CommandPalette_module.backdrop, local.class)} {...others} data-slot="command-palette-backdrop"/>
76
76
  </OverlayPortal>;
77
77
  }
78
78
  function CommandPalettePositioner(props) {
@@ -80,14 +80,14 @@ function CommandPalettePositioner(props) {
80
80
  'class'
81
81
  ]);
82
82
  return <OverlayPortal>
83
- <Dialog.Positioner data-slot="command-palette-positioner" class={clsx(CommandPalette_module.positioner, local.class)} {...others}/>
83
+ <Dialog.Positioner class={clsx(CommandPalette_module.positioner, local.class)} {...others} data-slot="command-palette-positioner"/>
84
84
  </OverlayPortal>;
85
85
  }
86
86
  function CommandPaletteContent(props) {
87
87
  const [local, others] = splitProps(props, [
88
88
  'class'
89
89
  ]);
90
- return <Dialog.Content data-slot="command-palette-content" class={clsx(CommandPalette_module.content, local.class)} {...others}/>;
90
+ return <Dialog.Content class={clsx(CommandPalette_module.content, local.class)} {...others} data-slot="command-palette-content"/>;
91
91
  }
92
92
  function CommandPalettePanel(props) {
93
93
  const [local, others] = splitProps(props, [
@@ -106,25 +106,25 @@ function CommandPaletteTitle(props) {
106
106
  const [local, others] = splitProps(props, [
107
107
  'class'
108
108
  ]);
109
- return <Dialog.Title data-slot="command-palette-title" class={clsx(CommandPalette_module.title, local.class)} {...others}/>;
109
+ return <Dialog.Title class={clsx(CommandPalette_module.title, local.class)} {...others} data-slot="command-palette-title"/>;
110
110
  }
111
111
  function CommandPaletteDescription(props) {
112
112
  const [local, others] = splitProps(props, [
113
113
  'class'
114
114
  ]);
115
- return <Dialog.Description data-slot="command-palette-description" class={clsx(CommandPalette_module.description, local.class)} {...others}/>;
115
+ return <Dialog.Description class={clsx(CommandPalette_module.description, local.class)} {...others} data-slot="command-palette-description"/>;
116
116
  }
117
117
  function CommandPaletteHeader(props) {
118
118
  const [local, others] = splitProps(props, [
119
119
  'class'
120
120
  ]);
121
- return <ark.div data-slot="command-palette-header" class={clsx(CommandPalette_module.header, local.class)} {...others}/>;
121
+ return <ark.div class={clsx(CommandPalette_module.header, local.class)} {...others} data-slot="command-palette-header"/>;
122
122
  }
123
123
  function CommandPaletteBody(props) {
124
124
  const [local, others] = splitProps(props, [
125
125
  'class'
126
126
  ]);
127
- return <ark.div data-slot="command-palette-body" class={clsx(CommandPalette_module.body, local.class)} {...others}/>;
127
+ return <ark.div class={clsx(CommandPalette_module.body, local.class)} {...others} data-slot="command-palette-body"/>;
128
128
  }
129
129
  const CommandPalette_CommandPaletteCombobox = function(props) {
130
130
  const [local, others] = splitProps(props, [
@@ -142,7 +142,7 @@ const CommandPalette_CommandPaletteCombobox = function(props) {
142
142
  local.onSelect?.(details);
143
143
  if (local.closeOnSelect ?? true) dialog().setOpen(false);
144
144
  };
145
- return <Combobox.Root data-slot="command-palette-combobox" class={clsx(CommandPalette_module.combobox, local.class)} open={local.open ?? true} inputBehavior={local.inputBehavior ?? 'autohighlight'} selectionBehavior={local.selectionBehavior ?? 'preserve'} closeOnSelect={local.closeOnSelect ?? true} disableLayer={local.disableLayer ?? true} onSelect={handleSelect} {...others}>
145
+ return <Combobox.Root class={clsx(CommandPalette_module.combobox, local.class)} open={local.open ?? true} inputBehavior={local.inputBehavior ?? 'autohighlight'} selectionBehavior={local.selectionBehavior ?? 'preserve'} closeOnSelect={local.closeOnSelect ?? true} disableLayer={local.disableLayer ?? true} onSelect={handleSelect} {...others} data-slot="command-palette-combobox">
146
146
  {local.children}
147
147
  </Combobox.Root>;
148
148
  };
@@ -150,13 +150,13 @@ function CommandPaletteControl(props) {
150
150
  const [local, others] = splitProps(props, [
151
151
  'class'
152
152
  ]);
153
- return <Combobox.Control data-slot="command-palette-control" class={clsx(CommandPalette_module.control, local.class)} {...others}/>;
153
+ return <Combobox.Control class={clsx(CommandPalette_module.control, local.class)} {...others} data-slot="command-palette-control"/>;
154
154
  }
155
155
  function CommandPaletteInput(props) {
156
156
  const [local, others] = splitProps(props, [
157
157
  'class'
158
158
  ]);
159
- return <Combobox.Input data-slot="command-palette-input" class={clsx(CommandPalette_module.input, local.class)} {...others}/>;
159
+ return <Combobox.Input class={clsx(CommandPalette_module.input, local.class)} {...others} data-slot="command-palette-input"/>;
160
160
  }
161
161
  function CommandPaletteSearch(props) {
162
162
  const [local, others] = splitProps(props, [
@@ -180,16 +180,13 @@ function CommandPaletteClearTrigger(props) {
180
180
  ]);
181
181
  const resolvedChildren = children(()=>local.children);
182
182
  return <Combobox.Context>
183
- {(combobox)=><Combobox.ClearTrigger asChild={local.asChild} data-slot="command-palette-clear-trigger" hidden={0 === combobox().inputValue.length} aria-label={local['aria-label'] ?? (!local.asChild && null == local.children && null == local['aria-labelledby'] ? DEFAULT_CLEAR_TRIGGER_LABEL : void 0)} aria-labelledby={local['aria-labelledby']} class={clsx(CloseButton_module.root, CommandPalette_module.clearTrigger, local.class)} onClick={(event)=>{
183
+ {(combobox)=><Combobox.ClearTrigger asChild={local.asChild} hidden={0 === combobox().inputValue.length} aria-label={local['aria-label'] ?? (!local.asChild && null == local.children && null == local['aria-labelledby'] ? DEFAULT_CLEAR_TRIGGER_LABEL : void 0)} aria-labelledby={local['aria-labelledby']} class={clsx(CloseButton_module.root, CommandPalette_module.clearTrigger, local.class)} onClick={(event)=>{
184
184
  local.onClick?.(event);
185
185
  if (!event.defaultPrevented) combobox().setInputValue('');
186
186
  }} onPointerDown={(event)=>{
187
187
  local.onPointerDown?.(event);
188
- if (0 === event.button) {
189
- event.preventDefault();
190
- combobox().setInputValue('');
191
- }
192
- }} {...others}>
188
+ if (0 === event.button) event.preventDefault();
189
+ }} {...others} data-slot="command-palette-clear-trigger">
193
190
  {resolvedChildren() ?? <CloseIcon/>}
194
191
  </Combobox.ClearTrigger>}
195
192
  </Combobox.Context>;
@@ -199,7 +196,7 @@ function CommandPaletteList(props) {
199
196
  'class',
200
197
  'children'
201
198
  ]);
202
- return <Combobox.Content data-slot="command-palette-list" class={clsx(CommandPalette_module.list, local.class)} {...others}>
199
+ return <Combobox.Content class={clsx(CommandPalette_module.list, local.class)} {...others} data-slot="command-palette-list">
203
200
  <ScrollArea data-slot="command-palette-scroll-area" class={CommandPalette_module.scrollArea}>
204
201
  <ScrollArea.Viewport data-slot="command-palette-scroll-viewport" class={CommandPalette_module.scrollViewport}>
205
202
  <ScrollArea.Content data-slot="command-palette-scroll-content" class={CommandPalette_module.scrollContent}>
@@ -213,31 +210,31 @@ function CommandPaletteEmpty(props) {
213
210
  const [local, others] = splitProps(props, [
214
211
  'class'
215
212
  ]);
216
- return <Combobox.Empty data-slot="command-palette-empty" class={clsx(CommandPalette_module.empty, local.class)} {...others}/>;
213
+ return <Combobox.Empty class={clsx(CommandPalette_module.empty, local.class)} {...others} data-slot="command-palette-empty"/>;
217
214
  }
218
215
  function CommandPaletteItemGroup(props) {
219
216
  const [local, others] = splitProps(props, [
220
217
  'class'
221
218
  ]);
222
- return <Combobox.ItemGroup data-slot="command-palette-item-group" class={clsx(CommandPalette_module.itemGroup, local.class)} {...others}/>;
219
+ return <Combobox.ItemGroup class={clsx(CommandPalette_module.itemGroup, local.class)} {...others} data-slot="command-palette-item-group"/>;
223
220
  }
224
221
  function CommandPaletteItemGroupLabel(props) {
225
222
  const [local, others] = splitProps(props, [
226
223
  'class'
227
224
  ]);
228
- return <Combobox.ItemGroupLabel data-slot="command-palette-item-group-label" class={clsx(CommandPalette_module.itemGroupLabel, local.class)} {...others}/>;
225
+ return <Combobox.ItemGroupLabel class={clsx(CommandPalette_module.itemGroupLabel, local.class)} {...others} data-slot="command-palette-item-group-label"/>;
229
226
  }
230
227
  function CommandPaletteItem(props) {
231
228
  const [local, others] = splitProps(props, [
232
229
  'class'
233
230
  ]);
234
- return <Combobox.Item data-slot="command-palette-item" class={clsx(CommandPalette_module.item, local.class)} {...others}/>;
231
+ return <Combobox.Item class={clsx(CommandPalette_module.item, local.class)} {...others} data-slot="command-palette-item"/>;
235
232
  }
236
233
  function CommandPaletteItemText(props) {
237
234
  const [local, others] = splitProps(props, [
238
235
  'class'
239
236
  ]);
240
- return <Combobox.ItemText data-slot="command-palette-item-text" class={clsx(CommandPalette_module.itemText, local.class)} {...others}/>;
237
+ return <Combobox.ItemText class={clsx(CommandPalette_module.itemText, local.class)} {...others} data-slot="command-palette-item-text"/>;
241
238
  }
242
239
  function CommandPaletteItemIndicator(props) {
243
240
  const [local, others] = splitProps(props, [
@@ -245,7 +242,7 @@ function CommandPaletteItemIndicator(props) {
245
242
  'children'
246
243
  ]);
247
244
  const resolvedChildren = children(()=>local.children);
248
- return <Combobox.ItemIndicator data-slot="command-palette-item-indicator" class={clsx(CommandPalette_module.itemIndicator, local.class)} {...others}>
245
+ return <Combobox.ItemIndicator class={clsx(CommandPalette_module.itemIndicator, local.class)} {...others} data-slot="command-palette-item-indicator">
249
246
  {resolvedChildren() ?? <CheckIcon/>}
250
247
  </Combobox.ItemIndicator>;
251
248
  }
@@ -253,43 +250,43 @@ function CommandPaletteItemIcon(props) {
253
250
  const [local, others] = splitProps(props, [
254
251
  'class'
255
252
  ]);
256
- return <ark.span data-slot="command-palette-item-icon" class={clsx(CommandPalette_module.itemIcon, local.class)} {...others}/>;
253
+ return <ark.span class={clsx(CommandPalette_module.itemIcon, local.class)} {...others} data-slot="command-palette-item-icon"/>;
257
254
  }
258
255
  function CommandPaletteItemLabel(props) {
259
256
  const [local, others] = splitProps(props, [
260
257
  'class'
261
258
  ]);
262
- return <ark.span data-slot="command-palette-item-label" class={clsx(CommandPalette_module.itemLabel, local.class)} {...others}/>;
259
+ return <ark.span class={clsx(CommandPalette_module.itemLabel, local.class)} {...others} data-slot="command-palette-item-label"/>;
263
260
  }
264
261
  function CommandPaletteItemDescription(props) {
265
262
  const [local, others] = splitProps(props, [
266
263
  'class'
267
264
  ]);
268
- return <ark.span data-slot="command-palette-item-description" class={clsx(CommandPalette_module.itemDescription, local.class)} {...others}/>;
265
+ return <ark.span class={clsx(CommandPalette_module.itemDescription, local.class)} {...others} data-slot="command-palette-item-description"/>;
269
266
  }
270
267
  function CommandPaletteItemMeta(props) {
271
268
  const [local, others] = splitProps(props, [
272
269
  'class'
273
270
  ]);
274
- return <ark.span data-slot="command-palette-item-meta" class={clsx(CommandPalette_module.itemMeta, local.class)} {...others}/>;
271
+ return <ark.span class={clsx(CommandPalette_module.itemMeta, local.class)} {...others} data-slot="command-palette-item-meta"/>;
275
272
  }
276
273
  function CommandPaletteSeparator(props) {
277
274
  const [local, others] = splitProps(props, [
278
275
  'class'
279
276
  ]);
280
- return <ark.div role="separator" data-slot="command-palette-separator" class={clsx(CommandPalette_module.separator, local.class)} {...others}/>;
277
+ return <ark.div role="separator" class={clsx(CommandPalette_module.separator, local.class)} {...others} data-slot="command-palette-separator"/>;
281
278
  }
282
279
  function CommandPaletteFooter(props) {
283
280
  const [local, others] = splitProps(props, [
284
281
  'class'
285
282
  ]);
286
- return <ark.div data-slot="command-palette-footer" class={clsx(CommandPalette_module.footer, local.class)} {...others}/>;
283
+ return <ark.div class={clsx(CommandPalette_module.footer, local.class)} {...others} data-slot="command-palette-footer"/>;
287
284
  }
288
285
  function CommandPaletteKbd(props) {
289
286
  const [local, others] = splitProps(props, [
290
287
  'class'
291
288
  ]);
292
- return <Kbd.Root data-slot="command-palette-kbd" class={clsx(CommandPalette_module.kbd, local.class)} {...others}/>;
289
+ return <Kbd.Root class={clsx(CommandPalette_module.kbd, local.class)} {...others} data-slot="command-palette-kbd"/>;
293
290
  }
294
291
  const CommandPalette = Object.assign(CommandPaletteRoot, {
295
292
  Root: CommandPaletteRoot,
@@ -32,7 +32,7 @@
32
32
  }
33
33
 
34
34
  .root-U4_b43[data-gutter="none"] {
35
- --_container-gutter: 0;
35
+ --_container-gutter: 0px;
36
36
  }
37
37
 
38
38
  .root-U4_b43[data-gutter="sm"] {