@moduix/solid-tailwind 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) 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 +7 -7
  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 +10 -11
  8. package/dist/components/avatar/Avatar.js +10 -7
  9. package/dist/components/avatar/Avatar.jsx +6 -6
  10. package/dist/components/bleed/Bleed.js +1 -1
  11. package/dist/components/bleed/Bleed.jsx +1 -1
  12. package/dist/components/button/Button.js +1 -6
  13. package/dist/components/button/Button.jsx +2 -4
  14. package/dist/components/card/Card.js +54 -44
  15. package/dist/components/card/Card.jsx +12 -12
  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 +71 -52
  30. package/dist/components/command-palette/CommandPalette.jsx +28 -31
  31. package/dist/components/container/Container.js +5 -5
  32. package/dist/components/container/Container.jsx +5 -5
  33. package/dist/components/date-input/DateInput.js +18 -12
  34. package/dist/components/date-input/DateInput.jsx +7 -7
  35. package/dist/components/date-picker/DatePicker.js +73 -51
  36. package/dist/components/date-picker/DatePicker.jsx +29 -29
  37. package/dist/components/dialog/Dialog.js +30 -20
  38. package/dist/components/dialog/Dialog.jsx +10 -10
  39. package/dist/components/drawer/Drawer.js +45 -30
  40. package/dist/components/drawer/Drawer.jsx +15 -15
  41. package/dist/components/editable/Editable.js +24 -17
  42. package/dist/components/editable/Editable.jsx +10 -10
  43. package/dist/components/empty/Empty.js +1 -1
  44. package/dist/components/empty/Empty.jsx +1 -1
  45. package/dist/components/file-upload/FileUpload.js +39 -28
  46. package/dist/components/file-upload/FileUpload.jsx +17 -17
  47. package/dist/components/floating-panel/FloatingPanel.js +35 -23
  48. package/dist/components/floating-panel/FloatingPanel.jsx +12 -12
  49. package/dist/components/hover-card/HoverCard.js +16 -11
  50. package/dist/components/hover-card/HoverCard.jsx +6 -6
  51. package/dist/components/image-cropper/ImageCropper.js +21 -14
  52. package/dist/components/image-cropper/ImageCropper.jsx +7 -7
  53. package/dist/components/input-group/InputGroup.js +3 -2
  54. package/dist/components/input-group/InputGroup.jsx +3 -2
  55. package/dist/components/json-tree-view/JsonTreeView.js +1 -1
  56. package/dist/components/json-tree-view/JsonTreeView.jsx +1 -1
  57. package/dist/components/lightbox/Lightbox.d.ts +1 -0
  58. package/dist/components/lightbox/Lightbox.js +41 -27
  59. package/dist/components/lightbox/Lightbox.jsx +13 -12
  60. package/dist/components/listbox/Listbox.js +48 -32
  61. package/dist/components/listbox/Listbox.jsx +17 -17
  62. package/dist/components/marquee/Marquee.js +18 -12
  63. package/dist/components/marquee/Marquee.jsx +9 -9
  64. package/dist/components/menu/Menu.js +66 -44
  65. package/dist/components/menu/Menu.jsx +28 -28
  66. package/dist/components/navigation-menu/NavigationMenu.js +36 -24
  67. package/dist/components/navigation-menu/NavigationMenu.jsx +12 -12
  68. package/dist/components/number-input/NumberInput.js +19 -14
  69. package/dist/components/number-input/NumberInput.jsx +9 -9
  70. package/dist/components/pagination/Pagination.js +10 -9
  71. package/dist/components/pagination/Pagination.jsx +8 -8
  72. package/dist/components/password-input/PasswordInput.js +16 -11
  73. package/dist/components/password-input/PasswordInput.jsx +6 -6
  74. package/dist/components/pin-input/PinInput.js +15 -10
  75. package/dist/components/pin-input/PinInput.jsx +6 -6
  76. package/dist/components/popover/Popover.js +37 -25
  77. package/dist/components/popover/Popover.jsx +13 -13
  78. package/dist/components/progress-circular/ProgressCircular.js +18 -13
  79. package/dist/components/progress-circular/ProgressCircular.jsx +8 -8
  80. package/dist/components/progress-linear/ProgressLinear.js +17 -12
  81. package/dist/components/progress-linear/ProgressLinear.jsx +7 -7
  82. package/dist/components/qr-code/QrCode.js +8 -7
  83. package/dist/components/qr-code/QrCode.jsx +6 -6
  84. package/dist/components/rating-group/RatingGroup.js +15 -10
  85. package/dist/components/rating-group/RatingGroup.jsx +6 -6
  86. package/dist/components/segment-group/SegmentGroup.js +17 -12
  87. package/dist/components/segment-group/SegmentGroup.jsx +7 -7
  88. package/dist/components/select/Select.js +50 -35
  89. package/dist/components/select/Select.jsx +20 -20
  90. package/dist/components/sidebar/Sidebar.js +72 -43
  91. package/dist/components/sidebar/Sidebar.jsx +34 -27
  92. package/dist/components/signature-pad/SignaturePad.js +16 -12
  93. package/dist/components/signature-pad/SignaturePad.jsx +8 -8
  94. package/dist/components/slider/Slider.js +29 -20
  95. package/dist/components/slider/Slider.jsx +11 -11
  96. package/dist/components/split-button/SplitButton.d.ts +4 -3
  97. package/dist/components/split-button/SplitButton.js +20 -9
  98. package/dist/components/split-button/SplitButton.jsx +13 -7
  99. package/dist/components/splitter/Splitter.js +13 -9
  100. package/dist/components/splitter/Splitter.jsx +5 -5
  101. package/dist/components/steps/Steps.js +34 -23
  102. package/dist/components/steps/Steps.jsx +12 -12
  103. package/dist/components/swap/Swap.js +9 -6
  104. package/dist/components/swap/Swap.jsx +3 -3
  105. package/dist/components/switch/Switch.js +9 -7
  106. package/dist/components/switch/Switch.jsx +5 -5
  107. package/dist/components/tabs/Tabs.js +18 -12
  108. package/dist/components/tabs/Tabs.jsx +6 -6
  109. package/dist/components/tags-input/TagsInput.js +28 -20
  110. package/dist/components/tags-input/TagsInput.jsx +12 -12
  111. package/dist/components/timer/Timer.js +21 -14
  112. package/dist/components/timer/Timer.jsx +7 -7
  113. package/dist/components/toast/Toast.js +11 -9
  114. package/dist/components/toast/Toast.jsx +7 -7
  115. package/dist/components/toc/Toc.js +31 -20
  116. package/dist/components/toc/Toc.jsx +10 -10
  117. package/dist/components/tooltip/Tooltip.js +13 -9
  118. package/dist/components/tooltip/Tooltip.jsx +5 -5
  119. package/dist/components/tour/Tour.js +38 -26
  120. package/dist/components/tour/Tour.jsx +13 -13
  121. package/dist/components/tree-view/TreeView.js +39 -28
  122. package/dist/components/tree-view/TreeView.jsx +17 -17
  123. package/dist/styles/animations.css +8 -8
  124. package/package.json +1 -1
@@ -20,14 +20,15 @@ function SplitterRoot(props) {
20
20
  get asChild () {
21
21
  return local.asChild;
22
22
  },
23
- "data-slot": "splitter-root",
24
23
  get ["class"] () {
25
24
  return cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class);
26
25
  },
27
26
  get style () {
28
27
  return getRootStyle(local.style);
29
28
  }
30
- }, others));
29
+ }, others, {
30
+ "data-slot": "splitter-root"
31
+ }));
31
32
  }
32
33
  function SplitterRootProvider(props) {
33
34
  const [local, others] = splitProps(props, [
@@ -39,36 +40,39 @@ function SplitterRootProvider(props) {
39
40
  get asChild () {
40
41
  return local.asChild;
41
42
  },
42
- "data-slot": "splitter-root-provider",
43
43
  get ["class"] () {
44
44
  return cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class);
45
45
  },
46
46
  get style () {
47
47
  return getRootStyle(local.style);
48
48
  }
49
- }, others));
49
+ }, others, {
50
+ "data-slot": "splitter-root-provider"
51
+ }));
50
52
  }
51
53
  function SplitterPanel(props) {
52
54
  const [local, others] = splitProps(props, [
53
55
  'class'
54
56
  ]);
55
57
  return createComponent(Splitter.Panel, mergeProps({
56
- "data-slot": "splitter-panel",
57
58
  get ["class"] () {
58
59
  return cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none group-data-[orientation=vertical]/splitter:min-h-0 data-dragging:select-none', local.class);
59
60
  }
60
- }, others));
61
+ }, others, {
62
+ "data-slot": "splitter-panel"
63
+ }));
61
64
  }
62
65
  function SplitterResizeTriggerIndicator(props) {
63
66
  const [local, others] = splitProps(props, [
64
67
  'class'
65
68
  ]);
66
69
  return createComponent(Splitter.ResizeTriggerIndicator, mergeProps({
67
- "data-slot": "splitter-resize-trigger-indicator",
68
70
  get ["class"] () {
69
71
  return cn('pointer-events-none absolute start-1/2 top-1/2 z-2 box-border h-control-xs w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full border border-border bg-background shadow-sm transition-[background-color,border-color,box-shadow,transform] duration-200 ease-in-out group-hover/trigger:border-muted-foreground/40 group-hover/trigger:shadow-md group-focus-visible/trigger:outline-2 group-focus-visible/trigger:outline-offset-1 group-focus-visible/trigger:outline-ring data-disabled:invisible data-dragging:scale-[1.08] data-dragging:bg-background data-dragging:shadow-md data-[orientation=vertical]:h-1.5 data-[orientation=vertical]:w-control-xs', local.class);
70
72
  }
71
- }, others));
73
+ }, others, {
74
+ "data-slot": "splitter-resize-trigger-indicator"
75
+ }));
72
76
  }
73
77
  function SplitterResizeTrigger(props) {
74
78
  const [local, others] = splitProps(props, [
@@ -80,11 +84,11 @@ function SplitterResizeTrigger(props) {
80
84
  get asChild () {
81
85
  return local.asChild;
82
86
  },
83
- "data-slot": "splitter-resize-trigger",
84
87
  get ["class"] () {
85
88
  return cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40 data-[orientation=vertical]:h-px data-[orientation=vertical]:min-h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:cursor-row-resize data-[orientation=vertical]:before:h-[0.5px] data-[orientation=vertical]:before:w-full data-[orientation=vertical]:after:h-2.5 data-[orientation=vertical]:after:w-full [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:before:bg-muted-foreground/40", local.class);
86
89
  }
87
90
  }, others, {
91
+ "data-slot": "splitter-resize-trigger",
88
92
  get children () {
89
93
  return memo(()=>!!(void 0 === local.children && !local.asChild))() ? createComponent(SplitterResizeTriggerIndicator, {}) : local.children;
90
94
  }
@@ -15,7 +15,7 @@ function SplitterRoot(props) {
15
15
  'class',
16
16
  'style'
17
17
  ]);
18
- return <Splitter.Root asChild={local.asChild} data-slot="splitter-root" class={cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class)} style={getRootStyle(local.style)} {...others}/>;
18
+ return <Splitter.Root asChild={local.asChild} class={cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class)} style={getRootStyle(local.style)} {...others} data-slot="splitter-root"/>;
19
19
  }
20
20
  function SplitterRootProvider(props) {
21
21
  const [local, others] = splitProps(props, [
@@ -23,19 +23,19 @@ function SplitterRootProvider(props) {
23
23
  'class',
24
24
  'style'
25
25
  ]);
26
- return <Splitter.RootProvider asChild={local.asChild} data-slot="splitter-root-provider" class={cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class)} style={getRootStyle(local.style)} {...others}/>;
26
+ return <Splitter.RootProvider asChild={local.asChild} class={cn('group/splitter relative box-border h-112 min-h-0 w-full min-w-0 rounded-md border border-border bg-card text-foreground shadow-sm data-dragging:cursor-col-resize data-dragging:data-[orientation=vertical]:cursor-row-resize', local.class)} style={getRootStyle(local.style)} {...others} data-slot="splitter-root-provider"/>;
27
27
  }
28
28
  function SplitterPanel(props) {
29
29
  const [local, others] = splitProps(props, [
30
30
  'class'
31
31
  ]);
32
- return <Splitter.Panel data-slot="splitter-panel" class={cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none group-data-[orientation=vertical]/splitter:min-h-0 data-dragging:select-none', local.class)} {...others}/>;
32
+ return <Splitter.Panel class={cn('box-border min-h-50 min-w-0 overflow-auto rounded-none border-0 border-border bg-card p-4 text-card-foreground shadow-none group-data-[orientation=vertical]/splitter:min-h-0 data-dragging:select-none', local.class)} {...others} data-slot="splitter-panel"/>;
33
33
  }
34
34
  function SplitterResizeTriggerIndicator(props) {
35
35
  const [local, others] = splitProps(props, [
36
36
  'class'
37
37
  ]);
38
- return <Splitter.ResizeTriggerIndicator data-slot="splitter-resize-trigger-indicator" class={cn('pointer-events-none absolute start-1/2 top-1/2 z-2 box-border h-control-xs w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full border border-border bg-background shadow-sm transition-[background-color,border-color,box-shadow,transform] duration-200 ease-in-out group-hover/trigger:border-muted-foreground/40 group-hover/trigger:shadow-md group-focus-visible/trigger:outline-2 group-focus-visible/trigger:outline-offset-1 group-focus-visible/trigger:outline-ring data-disabled:invisible data-dragging:scale-[1.08] data-dragging:bg-background data-dragging:shadow-md data-[orientation=vertical]:h-1.5 data-[orientation=vertical]:w-control-xs', local.class)} {...others}/>;
38
+ return <Splitter.ResizeTriggerIndicator class={cn('pointer-events-none absolute start-1/2 top-1/2 z-2 box-border h-control-xs w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full border border-border bg-background shadow-sm transition-[background-color,border-color,box-shadow,transform] duration-200 ease-in-out group-hover/trigger:border-muted-foreground/40 group-hover/trigger:shadow-md group-focus-visible/trigger:outline-2 group-focus-visible/trigger:outline-offset-1 group-focus-visible/trigger:outline-ring data-disabled:invisible data-dragging:scale-[1.08] data-dragging:bg-background data-dragging:shadow-md data-[orientation=vertical]:h-1.5 data-[orientation=vertical]:w-control-xs', local.class)} {...others} data-slot="splitter-resize-trigger-indicator"/>;
39
39
  }
40
40
  function SplitterResizeTrigger(props) {
41
41
  const [local, others] = splitProps(props, [
@@ -43,7 +43,7 @@ function SplitterResizeTrigger(props) {
43
43
  'children',
44
44
  'class'
45
45
  ]);
46
- return <Splitter.ResizeTrigger asChild={local.asChild} data-slot="splitter-resize-trigger" class={cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40 data-[orientation=vertical]:h-px data-[orientation=vertical]:min-h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:cursor-row-resize data-[orientation=vertical]:before:h-[0.5px] data-[orientation=vertical]:before:w-full data-[orientation=vertical]:after:h-2.5 data-[orientation=vertical]:after:w-full [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:before:bg-muted-foreground/40", local.class)} {...others}>
46
+ return <Splitter.ResizeTrigger asChild={local.asChild} class={cn("group/trigger relative z-1 box-border flex w-px min-w-px cursor-col-resize appearance-none items-center justify-center border-0 bg-transparent p-0 outline-0 transition-opacity duration-200 ease-in-out before:absolute before:h-full before:w-[0.5px] before:rounded-full before:bg-border before:transition-[background-color] before:duration-200 before:ease-in-out before:content-[''] after:absolute after:z-1 after:h-full after:w-2.5 after:content-[''] data-disabled:cursor-default data-disabled:opacity-50 data-dragging:before:bg-muted-foreground/40 data-[orientation=vertical]:h-px data-[orientation=vertical]:min-h-px data-[orientation=vertical]:w-full data-[orientation=vertical]:min-w-0 data-[orientation=vertical]:cursor-row-resize data-[orientation=vertical]:before:h-[0.5px] data-[orientation=vertical]:before:w-full data-[orientation=vertical]:after:h-2.5 data-[orientation=vertical]:after:w-full [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:before:bg-muted-foreground/40", local.class)} {...others} data-slot="splitter-resize-trigger">
47
47
  {void 0 === local.children && !local.asChild ? <SplitterResizeTriggerIndicator/> : local.children}
48
48
  </Splitter.ResizeTrigger>;
49
49
  }
@@ -8,55 +8,60 @@ function StepsRoot(props) {
8
8
  'class'
9
9
  ]);
10
10
  return createComponent(Steps.Root, mergeProps({
11
- "data-slot": "steps-root",
12
11
  get ["class"] () {
13
12
  return cn('box-border flex w-full max-w-[52rem] min-w-0 text-foreground data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:gap-4 data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch data-[orientation=vertical]:gap-6 max-[40rem]:data-[orientation=vertical]:flex-col max-[40rem]:data-[orientation=vertical]:gap-4', local.class);
14
13
  }
15
- }, others));
14
+ }, others, {
15
+ "data-slot": "steps-root"
16
+ }));
16
17
  }
17
18
  function StepsRootProvider(props) {
18
19
  const [local, others] = splitProps(props, [
19
20
  'class'
20
21
  ]);
21
22
  return createComponent(Steps.RootProvider, mergeProps({
22
- "data-slot": "steps-root-provider",
23
23
  get ["class"] () {
24
24
  return cn('box-border flex w-full max-w-[52rem] min-w-0 text-foreground data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:gap-4 data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch data-[orientation=vertical]:gap-6 max-[40rem]:data-[orientation=vertical]:flex-col max-[40rem]:data-[orientation=vertical]:gap-4', local.class);
25
25
  }
26
- }, others));
26
+ }, others, {
27
+ "data-slot": "steps-root-provider"
28
+ }));
27
29
  }
28
30
  function StepsList(props) {
29
31
  const [local, others] = splitProps(props, [
30
32
  'class'
31
33
  ]);
32
34
  return createComponent(Steps.List, mergeProps({
33
- "data-slot": "steps-list",
34
35
  get ["class"] () {
35
36
  return cn('flex w-full min-w-0 data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:items-center data-[orientation=vertical]:w-fit data-[orientation=vertical]:flex-none data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-start data-[orientation=vertical]:gap-4 max-[40rem]:data-[orientation=horizontal]:[scrollbar-width:thin] max-[40rem]:data-[orientation=horizontal]:overflow-x-auto', local.class);
36
37
  }
37
- }, others));
38
+ }, others, {
39
+ "data-slot": "steps-list"
40
+ }));
38
41
  }
39
42
  function StepsItem(props) {
40
43
  const [local, others] = splitProps(props, [
41
44
  'class'
42
45
  ]);
43
46
  return createComponent(Steps.Item, mergeProps({
44
- "data-slot": "steps-item",
45
47
  get ["class"] () {
46
48
  return cn('group/steps-item relative flex min-w-0 flex-1 items-center gap-3 last:flex-none data-[orientation=vertical]:min-h-16 data-[orientation=vertical]:flex-none data-[orientation=vertical]:items-start max-[40rem]:data-[orientation=horizontal]:flex-none', local.class);
47
49
  }
48
- }, others));
50
+ }, others, {
51
+ "data-slot": "steps-item"
52
+ }));
49
53
  }
50
54
  function StepsTrigger(props) {
51
55
  const [local, others] = splitProps(props, [
52
56
  'class'
53
57
  ]);
54
58
  return createComponent(Steps.Trigger, mergeProps({
55
- "data-slot": "steps-trigger",
56
59
  get ["class"] () {
57
60
  return cn('group/steps-trigger relative z-1 inline-flex min-w-0 cursor-pointer items-center gap-3 rounded-md border-0 bg-transparent p-0 text-left text-inherit no-underline outline-none select-none [font:inherit] focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:items-start', local.class);
58
61
  }
59
- }, others));
62
+ }, others, {
63
+ "data-slot": "steps-trigger"
64
+ }));
60
65
  }
61
66
  function StepsIndicator(props) {
62
67
  const [local, others] = splitProps(props, [
@@ -66,11 +71,11 @@ function StepsIndicator(props) {
66
71
  const resolvedChildren = children(()=>local.children);
67
72
  const item = useStepsItemContext();
68
73
  return createComponent(Steps.Indicator, mergeProps({
69
- "data-slot": "steps-indicator",
70
74
  get ["class"] () {
71
75
  return cn('box-border inline-flex size-8 flex-none items-center justify-center rounded-full border border-border bg-background text-sm leading-none font-semibold text-muted-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out data-complete:border-foreground data-complete:bg-foreground data-complete:text-background data-current:border-foreground data-current:bg-background data-current:text-foreground motion-reduce:transition-none [&_svg]:size-3.5 [@media(hover:hover)]:group-hover/steps-trigger:data-incomplete:border-foreground [@media(hover:hover)]:group-hover/steps-trigger:data-incomplete:text-foreground', local.class);
72
76
  }
73
77
  }, others, {
78
+ "data-slot": "steps-indicator",
74
79
  get children () {
75
80
  return resolvedChildren() ?? (item().completed ? createComponent(CheckIcon, {}) : item().index + 1);
76
81
  }
@@ -81,66 +86,72 @@ function StepsSeparator(props) {
81
86
  'class'
82
87
  ]);
83
88
  return createComponent(Steps.Separator, mergeProps({
84
- "data-slot": "steps-separator",
85
89
  get ["class"] () {
86
90
  return cn('pointer-events-none mx-2 h-px min-w-8 flex-auto bg-border group-last/steps-item:hidden data-complete:bg-foreground data-[orientation=vertical]:absolute data-[orientation=vertical]:start-[15.5px] data-[orientation=vertical]:top-10 data-[orientation=vertical]:-bottom-4 data-[orientation=vertical]:m-0 data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-px data-[orientation=vertical]:min-w-0', local.class);
87
91
  }
88
- }, others));
92
+ }, others, {
93
+ "data-slot": "steps-separator"
94
+ }));
89
95
  }
90
96
  function StepsContent(props) {
91
97
  const [local, others] = splitProps(props, [
92
98
  'class'
93
99
  ]);
94
100
  return createComponent(Steps.Content, mergeProps({
95
- "data-slot": "steps-content",
96
101
  get ["class"] () {
97
102
  return cn("box-border grid min-h-40 min-w-0 place-items-center rounded-md bg-muted px-4 py-4 text-sm leading-5 text-foreground outline-none focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:flex-auto [&[hidden]:not([hidden='until-found'])]:hidden", local.class);
98
103
  }
99
- }, others));
104
+ }, others, {
105
+ "data-slot": "steps-content"
106
+ }));
100
107
  }
101
108
  function StepsCompletedContent(props) {
102
109
  const [local, others] = splitProps(props, [
103
110
  'class'
104
111
  ]);
105
112
  return createComponent(Steps.CompletedContent, mergeProps({
106
- "data-slot": "steps-completed-content",
107
113
  get ["class"] () {
108
114
  return cn("box-border grid min-h-40 min-w-0 place-items-center rounded-md bg-muted px-4 py-4 text-center text-sm leading-5 font-medium text-foreground outline-none focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:flex-auto [&[hidden]:not([hidden='until-found'])]:hidden", local.class);
109
115
  }
110
- }, others));
116
+ }, others, {
117
+ "data-slot": "steps-completed-content"
118
+ }));
111
119
  }
112
120
  function StepsPrevTrigger(props) {
113
121
  const [local, others] = splitProps(props, [
114
122
  'class'
115
123
  ]);
116
124
  return createComponent(Steps.PrevTrigger, mergeProps({
117
- "data-slot": "steps-prev-trigger",
118
125
  get ["class"] () {
119
126
  return cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm leading-5 text-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled])]:hover:bg-accent', local.class);
120
127
  }
121
- }, others));
128
+ }, others, {
129
+ "data-slot": "steps-prev-trigger"
130
+ }));
122
131
  }
123
132
  function StepsNextTrigger(props) {
124
133
  const [local, others] = splitProps(props, [
125
134
  'class'
126
135
  ]);
127
136
  return createComponent(Steps.NextTrigger, mergeProps({
128
- "data-slot": "steps-next-trigger",
129
137
  get ["class"] () {
130
138
  return cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-foreground bg-foreground px-3 py-1.5 text-sm leading-5 text-background transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none', local.class);
131
139
  }
132
- }, others));
140
+ }, others, {
141
+ "data-slot": "steps-next-trigger"
142
+ }));
133
143
  }
134
144
  function StepsProgress(props) {
135
145
  const [local, others] = splitProps(props, [
136
146
  'class'
137
147
  ]);
138
148
  return createComponent(Steps.Progress, mergeProps({
139
- "data-slot": "steps-progress",
140
149
  get ["class"] () {
141
150
  return cn("relative block h-0.5 w-full overflow-hidden rounded-full bg-border before:absolute before:inset-y-0 before:start-0 before:w-[var(--percent,0%)] before:rounded-[inherit] before:bg-foreground before:transition-[width] before:duration-200 before:ease-in-out before:content-[''] motion-reduce:before:transition-none", local.class);
142
151
  }
143
- }, others));
152
+ }, others, {
153
+ "data-slot": "steps-progress"
154
+ }));
144
155
  }
145
156
  const Steps_Steps = Object.assign(StepsRoot, {
146
157
  Root: StepsRoot,
@@ -6,31 +6,31 @@ function StepsRoot(props) {
6
6
  const [local, others] = splitProps(props, [
7
7
  'class'
8
8
  ]);
9
- return <Steps.Root data-slot="steps-root" class={cn('box-border flex w-full max-w-[52rem] min-w-0 text-foreground data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:gap-4 data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch data-[orientation=vertical]:gap-6 max-[40rem]:data-[orientation=vertical]:flex-col max-[40rem]:data-[orientation=vertical]:gap-4', local.class)} {...others}/>;
9
+ return <Steps.Root class={cn('box-border flex w-full max-w-[52rem] min-w-0 text-foreground data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:gap-4 data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch data-[orientation=vertical]:gap-6 max-[40rem]:data-[orientation=vertical]:flex-col max-[40rem]:data-[orientation=vertical]:gap-4', local.class)} {...others} data-slot="steps-root"/>;
10
10
  }
11
11
  function StepsRootProvider(props) {
12
12
  const [local, others] = splitProps(props, [
13
13
  'class'
14
14
  ]);
15
- return <Steps.RootProvider data-slot="steps-root-provider" class={cn('box-border flex w-full max-w-[52rem] min-w-0 text-foreground data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:gap-4 data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch data-[orientation=vertical]:gap-6 max-[40rem]:data-[orientation=vertical]:flex-col max-[40rem]:data-[orientation=vertical]:gap-4', local.class)} {...others}/>;
15
+ return <Steps.RootProvider class={cn('box-border flex w-full max-w-[52rem] min-w-0 text-foreground data-[orientation=horizontal]:flex-col data-[orientation=horizontal]:gap-4 data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-stretch data-[orientation=vertical]:gap-6 max-[40rem]:data-[orientation=vertical]:flex-col max-[40rem]:data-[orientation=vertical]:gap-4', local.class)} {...others} data-slot="steps-root-provider"/>;
16
16
  }
17
17
  function StepsList(props) {
18
18
  const [local, others] = splitProps(props, [
19
19
  'class'
20
20
  ]);
21
- return <Steps.List data-slot="steps-list" class={cn('flex w-full min-w-0 data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:items-center data-[orientation=vertical]:w-fit data-[orientation=vertical]:flex-none data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-start data-[orientation=vertical]:gap-4 max-[40rem]:data-[orientation=horizontal]:[scrollbar-width:thin] max-[40rem]:data-[orientation=horizontal]:overflow-x-auto', local.class)} {...others}/>;
21
+ return <Steps.List class={cn('flex w-full min-w-0 data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:items-center data-[orientation=vertical]:w-fit data-[orientation=vertical]:flex-none data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-start data-[orientation=vertical]:gap-4 max-[40rem]:data-[orientation=horizontal]:[scrollbar-width:thin] max-[40rem]:data-[orientation=horizontal]:overflow-x-auto', local.class)} {...others} data-slot="steps-list"/>;
22
22
  }
23
23
  function StepsItem(props) {
24
24
  const [local, others] = splitProps(props, [
25
25
  'class'
26
26
  ]);
27
- return <Steps.Item data-slot="steps-item" class={cn('group/steps-item relative flex min-w-0 flex-1 items-center gap-3 last:flex-none data-[orientation=vertical]:min-h-16 data-[orientation=vertical]:flex-none data-[orientation=vertical]:items-start max-[40rem]:data-[orientation=horizontal]:flex-none', local.class)} {...others}/>;
27
+ return <Steps.Item class={cn('group/steps-item relative flex min-w-0 flex-1 items-center gap-3 last:flex-none data-[orientation=vertical]:min-h-16 data-[orientation=vertical]:flex-none data-[orientation=vertical]:items-start max-[40rem]:data-[orientation=horizontal]:flex-none', local.class)} {...others} data-slot="steps-item"/>;
28
28
  }
29
29
  function StepsTrigger(props) {
30
30
  const [local, others] = splitProps(props, [
31
31
  'class'
32
32
  ]);
33
- return <Steps.Trigger data-slot="steps-trigger" class={cn('group/steps-trigger relative z-1 inline-flex min-w-0 cursor-pointer items-center gap-3 rounded-md border-0 bg-transparent p-0 text-left text-inherit no-underline outline-none select-none [font:inherit] focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:items-start', local.class)} {...others}/>;
33
+ return <Steps.Trigger class={cn('group/steps-trigger relative z-1 inline-flex min-w-0 cursor-pointer items-center gap-3 rounded-md border-0 bg-transparent p-0 text-left text-inherit no-underline outline-none select-none [font:inherit] focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:items-start', local.class)} {...others} data-slot="steps-trigger"/>;
34
34
  }
35
35
  function StepsIndicator(props) {
36
36
  const [local, others] = splitProps(props, [
@@ -39,7 +39,7 @@ function StepsIndicator(props) {
39
39
  ]);
40
40
  const resolvedChildren = children(()=>local.children);
41
41
  const item = useStepsItemContext();
42
- return <Steps.Indicator data-slot="steps-indicator" class={cn('box-border inline-flex size-8 flex-none items-center justify-center rounded-full border border-border bg-background text-sm leading-none font-semibold text-muted-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out data-complete:border-foreground data-complete:bg-foreground data-complete:text-background data-current:border-foreground data-current:bg-background data-current:text-foreground motion-reduce:transition-none [&_svg]:size-3.5 [@media(hover:hover)]:group-hover/steps-trigger:data-incomplete:border-foreground [@media(hover:hover)]:group-hover/steps-trigger:data-incomplete:text-foreground', local.class)} {...others}>
42
+ return <Steps.Indicator class={cn('box-border inline-flex size-8 flex-none items-center justify-center rounded-full border border-border bg-background text-sm leading-none font-semibold text-muted-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out data-complete:border-foreground data-complete:bg-foreground data-complete:text-background data-current:border-foreground data-current:bg-background data-current:text-foreground motion-reduce:transition-none [&_svg]:size-3.5 [@media(hover:hover)]:group-hover/steps-trigger:data-incomplete:border-foreground [@media(hover:hover)]:group-hover/steps-trigger:data-incomplete:text-foreground', local.class)} {...others} data-slot="steps-indicator">
43
43
  {resolvedChildren() ?? (item().completed ? <CheckIcon/> : item().index + 1)}
44
44
  </Steps.Indicator>;
45
45
  }
@@ -47,37 +47,37 @@ function StepsSeparator(props) {
47
47
  const [local, others] = splitProps(props, [
48
48
  'class'
49
49
  ]);
50
- return <Steps.Separator data-slot="steps-separator" class={cn('pointer-events-none mx-2 h-px min-w-8 flex-auto bg-border group-last/steps-item:hidden data-complete:bg-foreground data-[orientation=vertical]:absolute data-[orientation=vertical]:start-[15.5px] data-[orientation=vertical]:top-10 data-[orientation=vertical]:-bottom-4 data-[orientation=vertical]:m-0 data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-px data-[orientation=vertical]:min-w-0', local.class)} {...others}/>;
50
+ return <Steps.Separator class={cn('pointer-events-none mx-2 h-px min-w-8 flex-auto bg-border group-last/steps-item:hidden data-complete:bg-foreground data-[orientation=vertical]:absolute data-[orientation=vertical]:start-[15.5px] data-[orientation=vertical]:top-10 data-[orientation=vertical]:-bottom-4 data-[orientation=vertical]:m-0 data-[orientation=vertical]:h-auto data-[orientation=vertical]:w-px data-[orientation=vertical]:min-w-0', local.class)} {...others} data-slot="steps-separator"/>;
51
51
  }
52
52
  function StepsContent(props) {
53
53
  const [local, others] = splitProps(props, [
54
54
  'class'
55
55
  ]);
56
- return <Steps.Content data-slot="steps-content" class={cn("box-border grid min-h-40 min-w-0 place-items-center rounded-md bg-muted px-4 py-4 text-sm leading-5 text-foreground outline-none focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:flex-auto [&[hidden]:not([hidden='until-found'])]:hidden", local.class)} {...others}/>;
56
+ return <Steps.Content class={cn("box-border grid min-h-40 min-w-0 place-items-center rounded-md bg-muted px-4 py-4 text-sm leading-5 text-foreground outline-none focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:flex-auto [&[hidden]:not([hidden='until-found'])]:hidden", local.class)} {...others} data-slot="steps-content"/>;
57
57
  }
58
58
  function StepsCompletedContent(props) {
59
59
  const [local, others] = splitProps(props, [
60
60
  'class'
61
61
  ]);
62
- return <Steps.CompletedContent data-slot="steps-completed-content" class={cn("box-border grid min-h-40 min-w-0 place-items-center rounded-md bg-muted px-4 py-4 text-center text-sm leading-5 font-medium text-foreground outline-none focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:flex-auto [&[hidden]:not([hidden='until-found'])]:hidden", local.class)} {...others}/>;
62
+ return <Steps.CompletedContent class={cn("box-border grid min-h-40 min-w-0 place-items-center rounded-md bg-muted px-4 py-4 text-center text-sm leading-5 font-medium text-foreground outline-none focus-visible:outline-1 focus-visible:-outline-offset-2 focus-visible:outline-ring data-[orientation=vertical]:flex-auto [&[hidden]:not([hidden='until-found'])]:hidden", local.class)} {...others} data-slot="steps-completed-content"/>;
63
63
  }
64
64
  function StepsPrevTrigger(props) {
65
65
  const [local, others] = splitProps(props, [
66
66
  'class'
67
67
  ]);
68
- return <Steps.PrevTrigger data-slot="steps-prev-trigger" class={cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm leading-5 text-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled])]:hover:bg-accent', local.class)} {...others}/>;
68
+ return <Steps.PrevTrigger class={cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-border bg-background px-3 py-1.5 text-sm leading-5 text-foreground transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none [@media(hover:hover)]:[&:not(:disabled):not([data-disabled])]:hover:bg-accent', local.class)} {...others} data-slot="steps-prev-trigger"/>;
69
69
  }
70
70
  function StepsNextTrigger(props) {
71
71
  const [local, others] = splitProps(props, [
72
72
  'class'
73
73
  ]);
74
- return <Steps.NextTrigger data-slot="steps-next-trigger" class={cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-foreground bg-foreground px-3 py-1.5 text-sm leading-5 text-background transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none', local.class)} {...others}/>;
74
+ return <Steps.NextTrigger class={cn('box-border inline-flex min-h-control-sm cursor-pointer items-center justify-center gap-2 rounded-md border border-foreground bg-foreground px-3 py-1.5 text-sm leading-5 text-background transition-[background-color,border-color,color,opacity] duration-200 ease-in-out outline-none focus-visible:outline-1 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-default disabled:opacity-50 data-disabled:cursor-default data-disabled:opacity-50 motion-reduce:transition-none', local.class)} {...others} data-slot="steps-next-trigger"/>;
75
75
  }
76
76
  function StepsProgress(props) {
77
77
  const [local, others] = splitProps(props, [
78
78
  'class'
79
79
  ]);
80
- return <Steps.Progress data-slot="steps-progress" class={cn("relative block h-0.5 w-full overflow-hidden rounded-full bg-border before:absolute before:inset-y-0 before:start-0 before:w-[var(--percent,0%)] before:rounded-[inherit] before:bg-foreground before:transition-[width] before:duration-200 before:ease-in-out before:content-[''] motion-reduce:before:transition-none", local.class)} {...others}/>;
80
+ return <Steps.Progress class={cn("relative block h-0.5 w-full overflow-hidden rounded-full bg-border before:absolute before:inset-y-0 before:start-0 before:w-[var(--percent,0%)] before:rounded-[inherit] before:bg-foreground before:transition-[width] before:duration-200 before:ease-in-out before:content-[''] motion-reduce:before:transition-none", local.class)} {...others} data-slot="steps-progress"/>;
81
81
  }
82
82
  const Steps_Steps = Object.assign(StepsRoot, {
83
83
  Root: StepsRoot,
@@ -8,14 +8,15 @@ function SwapRoot(props) {
8
8
  'class'
9
9
  ]);
10
10
  return createComponent(Swap.Root, mergeProps({
11
- "data-slot": "swap-root",
12
11
  get ["data-animation"] () {
13
12
  return local.animation ?? 'scale';
14
13
  },
15
14
  get ["class"] () {
16
15
  return cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", local.class);
17
16
  }
18
- }, others));
17
+ }, others, {
18
+ "data-slot": "swap-root"
19
+ }));
19
20
  }
20
21
  function SwapRootProvider(props) {
21
22
  const [local, others] = splitProps(props, [
@@ -23,25 +24,27 @@ function SwapRootProvider(props) {
23
24
  'class'
24
25
  ]);
25
26
  return createComponent(Swap.RootProvider, mergeProps({
26
- "data-slot": "swap-root-provider",
27
27
  get ["data-animation"] () {
28
28
  return local.animation ?? 'scale';
29
29
  },
30
30
  get ["class"] () {
31
31
  return cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", local.class);
32
32
  }
33
- }, others));
33
+ }, others, {
34
+ "data-slot": "swap-root-provider"
35
+ }));
34
36
  }
35
37
  function SwapIndicator(props) {
36
38
  const [local, others] = splitProps(props, [
37
39
  'class'
38
40
  ]);
39
41
  return createComponent(Swap.Indicator, mergeProps({
40
- "data-slot": "swap-indicator",
41
42
  get ["class"] () {
42
43
  return cn('inline-flex items-center justify-center text-inherit [grid-area:swap] group-data-[animation=flip]/swap:[backface-visibility:hidden] group-data-[animation=fade]/swap:data-[state=closed]:animate-moduix-swap-fade-exit group-data-[animation=flip]/swap:data-[state=closed]:animate-moduix-swap-flip-exit group-data-[animation=rotate]/swap:data-[state=closed]:animate-moduix-swap-rotate-exit group-data-[animation=scale]/swap:data-[state=closed]:animate-moduix-swap-scale-exit group-data-[animation=fade]/swap:data-[state=open]:animate-moduix-swap-fade-enter group-data-[animation=flip]/swap:data-[state=open]:animate-moduix-swap-flip-enter group-data-[animation=rotate]/swap:data-[state=open]:animate-moduix-swap-rotate-enter group-data-[animation=scale]/swap:data-[state=open]:animate-moduix-swap-scale-enter motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', local.class);
43
44
  }
44
- }, others));
45
+ }, others, {
46
+ "data-slot": "swap-indicator"
47
+ }));
45
48
  }
46
49
  const Swap_Swap = Object.assign(SwapRoot, {
47
50
  Root: SwapRoot,
@@ -6,20 +6,20 @@ function SwapRoot(props) {
6
6
  'animation',
7
7
  'class'
8
8
  ]);
9
- return <Swap.Root data-slot="swap-root" data-animation={local.animation ?? 'scale'} class={cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", local.class)} {...others}/>;
9
+ return <Swap.Root data-animation={local.animation ?? 'scale'} class={cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", local.class)} {...others} data-slot="swap-root"/>;
10
10
  }
11
11
  function SwapRootProvider(props) {
12
12
  const [local, others] = splitProps(props, [
13
13
  'animation',
14
14
  'class'
15
15
  ]);
16
- return <Swap.RootProvider data-slot="swap-root-provider" data-animation={local.animation ?? 'scale'} class={cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", local.class)} {...others}/>;
16
+ return <Swap.RootProvider data-animation={local.animation ?? 'scale'} class={cn("group/swap inline-grid place-items-center align-middle [grid-template-areas:'swap'] data-[animation=flip]:[perspective:24rem]", local.class)} {...others} data-slot="swap-root-provider"/>;
17
17
  }
18
18
  function SwapIndicator(props) {
19
19
  const [local, others] = splitProps(props, [
20
20
  'class'
21
21
  ]);
22
- return <Swap.Indicator data-slot="swap-indicator" class={cn('inline-flex items-center justify-center text-inherit [grid-area:swap] group-data-[animation=flip]/swap:[backface-visibility:hidden] group-data-[animation=fade]/swap:data-[state=closed]:animate-moduix-swap-fade-exit group-data-[animation=flip]/swap:data-[state=closed]:animate-moduix-swap-flip-exit group-data-[animation=rotate]/swap:data-[state=closed]:animate-moduix-swap-rotate-exit group-data-[animation=scale]/swap:data-[state=closed]:animate-moduix-swap-scale-exit group-data-[animation=fade]/swap:data-[state=open]:animate-moduix-swap-fade-enter group-data-[animation=flip]/swap:data-[state=open]:animate-moduix-swap-flip-enter group-data-[animation=rotate]/swap:data-[state=open]:animate-moduix-swap-rotate-enter group-data-[animation=scale]/swap:data-[state=open]:animate-moduix-swap-scale-enter motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', local.class)} {...others}/>;
22
+ return <Swap.Indicator class={cn('inline-flex items-center justify-center text-inherit [grid-area:swap] group-data-[animation=flip]/swap:[backface-visibility:hidden] group-data-[animation=fade]/swap:data-[state=closed]:animate-moduix-swap-fade-exit group-data-[animation=flip]/swap:data-[state=closed]:animate-moduix-swap-flip-exit group-data-[animation=rotate]/swap:data-[state=closed]:animate-moduix-swap-rotate-exit group-data-[animation=scale]/swap:data-[state=closed]:animate-moduix-swap-scale-exit group-data-[animation=fade]/swap:data-[state=open]:animate-moduix-swap-fade-enter group-data-[animation=flip]/swap:data-[state=open]:animate-moduix-swap-flip-enter group-data-[animation=rotate]/swap:data-[state=open]:animate-moduix-swap-rotate-enter group-data-[animation=scale]/swap:data-[state=open]:animate-moduix-swap-scale-enter motion-reduce:[animation-delay:0ms] motion-reduce:[animation-duration:1ms]', local.class)} {...others} data-slot="swap-indicator"/>;
23
23
  }
24
24
  const Swap_Swap = Object.assign(SwapRoot, {
25
25
  Root: SwapRoot,
@@ -13,7 +13,6 @@ function SwitchRoot(props) {
13
13
  get asChild () {
14
14
  return local.asChild;
15
15
  },
16
- "data-slot": "switch-root",
17
16
  get ["data-size"] () {
18
17
  return local.size ?? 'md';
19
18
  },
@@ -21,6 +20,7 @@ function SwitchRoot(props) {
21
20
  return cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', local.class);
22
21
  }
23
22
  }, others, {
23
+ "data-slot": "switch-root",
24
24
  get children () {
25
25
  return local.children;
26
26
  }
@@ -37,7 +37,6 @@ function SwitchRootProvider(props) {
37
37
  get asChild () {
38
38
  return local.asChild;
39
39
  },
40
- "data-slot": "switch-root-provider",
41
40
  get ["data-size"] () {
42
41
  return local.size ?? 'md';
43
42
  },
@@ -45,6 +44,7 @@ function SwitchRootProvider(props) {
45
44
  return cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', local.class);
46
45
  }
47
46
  }, others, {
47
+ "data-slot": "switch-root-provider",
48
48
  get children () {
49
49
  return local.children;
50
50
  }
@@ -57,11 +57,11 @@ function SwitchControl(props) {
57
57
  ]);
58
58
  const resolvedChildren = children(()=>local.children);
59
59
  return createComponent(Switch.Control, mergeProps({
60
- "data-slot": "switch-control",
61
60
  get ["class"] () {
62
61
  return cn("[@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly])[data-state='unchecked'][data-hover]:bg-accent relative inline-flex h-control-xs w-11 shrink-0 items-center rounded-full border border-border bg-muted p-0.5 leading-none outline-0 transition-[background-color,border-color,opacity] duration-200 ease-in-out select-none group-data-[size=lg]/switch:h-7 group-data-[size=lg]/switch:w-13 group-data-[size=sm]/switch:h-5 group-data-[size=sm]/switch:w-9 group-data-[size=xl]/switch:h-control-sm group-data-[size=xl]/switch:w-15 group-data-[size=xs]/switch:h-4 group-data-[size=xs]/switch:w-7 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:border-destructive data-[state=checked]:border-primary data-[state=checked]:bg-primary motion-reduce:transition-none", local.class);
63
62
  }
64
63
  }, others, {
64
+ "data-slot": "switch-control",
65
65
  get children () {
66
66
  return resolvedChildren() ?? createComponent(SwitchThumb, {});
67
67
  }
@@ -72,22 +72,24 @@ function SwitchThumb(props) {
72
72
  'class'
73
73
  ]);
74
74
  return createComponent(Switch.Thumb, mergeProps({
75
- "data-slot": "switch-thumb",
76
75
  get ["class"] () {
77
76
  return cn('inline-flex size-5 translate-x-0 items-center justify-center rounded-full border-transparent bg-background text-muted shadow-sm transition-[translate,background-color,color] duration-200 ease-in-out group-data-[size=lg]/switch:size-control-xs group-data-[size=sm]/switch:size-4 group-data-[size=xl]/switch:size-7 group-data-[size=xs]/switch:size-3 data-[state=checked]:translate-x-[18px] data-[state=checked]:bg-primary-foreground data-[state=checked]:text-primary group-data-[size=lg]/switch:data-[state=checked]:translate-x-[22px] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[14px] group-data-[size=xl]/switch:data-[state=checked]:translate-x-[26px] group-data-[size=xs]/switch:data-[state=checked]:translate-x-[10px] motion-reduce:transition-none rtl:data-[state=checked]:-translate-x-[18px] group-data-[size=lg]/switch:rtl:data-[state=checked]:-translate-x-[22px] group-data-[size=sm]/switch:rtl:data-[state=checked]:-translate-x-[14px] group-data-[size=xl]/switch:rtl:data-[state=checked]:-translate-x-[26px] group-data-[size=xs]/switch:rtl:data-[state=checked]:-translate-x-[10px] [&>svg]:block [&>svg]:size-[65%] [&>svg]:shrink-0', local.class);
78
77
  }
79
- }, others));
78
+ }, others, {
79
+ "data-slot": "switch-thumb"
80
+ }));
80
81
  }
81
82
  function SwitchLabel(props) {
82
83
  const [local, others] = splitProps(props, [
83
84
  'class'
84
85
  ]);
85
86
  return createComponent(Switch.Label, mergeProps({
86
- "data-slot": "switch-label",
87
87
  get ["class"] () {
88
88
  return cn('text-sm leading-5 font-medium text-foreground select-none', local.class);
89
89
  }
90
- }, others));
90
+ }, others, {
91
+ "data-slot": "switch-label"
92
+ }));
91
93
  }
92
94
  const Switch_Switch = Object.assign(SwitchRoot, {
93
95
  Root: SwitchRoot,
@@ -8,7 +8,7 @@ function SwitchRoot(props) {
8
8
  'class',
9
9
  'size'
10
10
  ]);
11
- return <Switch.Root asChild={local.asChild} data-slot="switch-root" data-size={local.size ?? 'md'} class={cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', local.class)} {...others}>
11
+ return <Switch.Root asChild={local.asChild} data-size={local.size ?? 'md'} class={cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', local.class)} {...others} data-slot="switch-root">
12
12
  {local.children}
13
13
  </Switch.Root>;
14
14
  }
@@ -19,7 +19,7 @@ function SwitchRootProvider(props) {
19
19
  'class',
20
20
  'size'
21
21
  ]);
22
- return <Switch.RootProvider asChild={local.asChild} data-slot="switch-root-provider" data-size={local.size ?? 'md'} class={cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', local.class)} {...others}>
22
+ return <Switch.RootProvider asChild={local.asChild} data-size={local.size ?? 'md'} class={cn('group/switch inline-flex w-fit cursor-pointer items-center gap-2 align-middle data-disabled:cursor-default data-disabled:opacity-50 data-readonly:cursor-default', local.class)} {...others} data-slot="switch-root-provider">
23
23
  {local.children}
24
24
  </Switch.RootProvider>;
25
25
  }
@@ -29,7 +29,7 @@ function SwitchControl(props) {
29
29
  'class'
30
30
  ]);
31
31
  const resolvedChildren = children(()=>local.children);
32
- return <Switch.Control data-slot="switch-control" class={cn("[@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly])[data-state='unchecked'][data-hover]:bg-accent relative inline-flex h-control-xs w-11 shrink-0 items-center rounded-full border border-border bg-muted p-0.5 leading-none outline-0 transition-[background-color,border-color,opacity] duration-200 ease-in-out select-none group-data-[size=lg]/switch:h-7 group-data-[size=lg]/switch:w-13 group-data-[size=sm]/switch:h-5 group-data-[size=sm]/switch:w-9 group-data-[size=xl]/switch:h-control-sm group-data-[size=xl]/switch:w-15 group-data-[size=xs]/switch:h-4 group-data-[size=xs]/switch:w-7 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:border-destructive data-[state=checked]:border-primary data-[state=checked]:bg-primary motion-reduce:transition-none", local.class)} {...others}>
32
+ return <Switch.Control class={cn("[@media(hover:hover)]:[&:not([data-disabled]):not([data-readonly])[data-state='unchecked'][data-hover]:bg-accent relative inline-flex h-control-xs w-11 shrink-0 items-center rounded-full border border-border bg-muted p-0.5 leading-none outline-0 transition-[background-color,border-color,opacity] duration-200 ease-in-out select-none group-data-[size=lg]/switch:h-7 group-data-[size=lg]/switch:w-13 group-data-[size=sm]/switch:h-5 group-data-[size=sm]/switch:w-9 group-data-[size=xl]/switch:h-control-sm group-data-[size=xl]/switch:w-15 group-data-[size=xs]/switch:h-4 group-data-[size=xs]/switch:w-7 data-focus-visible:outline-1 data-focus-visible:outline-offset-1 data-focus-visible:outline-ring data-invalid:border-destructive data-[state=checked]:border-primary data-[state=checked]:bg-primary motion-reduce:transition-none", local.class)} {...others} data-slot="switch-control">
33
33
  {resolvedChildren() ?? <SwitchThumb/>}
34
34
  </Switch.Control>;
35
35
  }
@@ -37,13 +37,13 @@ function SwitchThumb(props) {
37
37
  const [local, others] = splitProps(props, [
38
38
  'class'
39
39
  ]);
40
- return <Switch.Thumb data-slot="switch-thumb" class={cn('inline-flex size-5 translate-x-0 items-center justify-center rounded-full border-transparent bg-background text-muted shadow-sm transition-[translate,background-color,color] duration-200 ease-in-out group-data-[size=lg]/switch:size-control-xs group-data-[size=sm]/switch:size-4 group-data-[size=xl]/switch:size-7 group-data-[size=xs]/switch:size-3 data-[state=checked]:translate-x-[18px] data-[state=checked]:bg-primary-foreground data-[state=checked]:text-primary group-data-[size=lg]/switch:data-[state=checked]:translate-x-[22px] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[14px] group-data-[size=xl]/switch:data-[state=checked]:translate-x-[26px] group-data-[size=xs]/switch:data-[state=checked]:translate-x-[10px] motion-reduce:transition-none rtl:data-[state=checked]:-translate-x-[18px] group-data-[size=lg]/switch:rtl:data-[state=checked]:-translate-x-[22px] group-data-[size=sm]/switch:rtl:data-[state=checked]:-translate-x-[14px] group-data-[size=xl]/switch:rtl:data-[state=checked]:-translate-x-[26px] group-data-[size=xs]/switch:rtl:data-[state=checked]:-translate-x-[10px] [&>svg]:block [&>svg]:size-[65%] [&>svg]:shrink-0', local.class)} {...others}/>;
40
+ return <Switch.Thumb class={cn('inline-flex size-5 translate-x-0 items-center justify-center rounded-full border-transparent bg-background text-muted shadow-sm transition-[translate,background-color,color] duration-200 ease-in-out group-data-[size=lg]/switch:size-control-xs group-data-[size=sm]/switch:size-4 group-data-[size=xl]/switch:size-7 group-data-[size=xs]/switch:size-3 data-[state=checked]:translate-x-[18px] data-[state=checked]:bg-primary-foreground data-[state=checked]:text-primary group-data-[size=lg]/switch:data-[state=checked]:translate-x-[22px] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[14px] group-data-[size=xl]/switch:data-[state=checked]:translate-x-[26px] group-data-[size=xs]/switch:data-[state=checked]:translate-x-[10px] motion-reduce:transition-none rtl:data-[state=checked]:-translate-x-[18px] group-data-[size=lg]/switch:rtl:data-[state=checked]:-translate-x-[22px] group-data-[size=sm]/switch:rtl:data-[state=checked]:-translate-x-[14px] group-data-[size=xl]/switch:rtl:data-[state=checked]:-translate-x-[26px] group-data-[size=xs]/switch:rtl:data-[state=checked]:-translate-x-[10px] [&>svg]:block [&>svg]:size-[65%] [&>svg]:shrink-0', local.class)} {...others} data-slot="switch-thumb"/>;
41
41
  }
42
42
  function SwitchLabel(props) {
43
43
  const [local, others] = splitProps(props, [
44
44
  'class'
45
45
  ]);
46
- return <Switch.Label data-slot="switch-label" class={cn('text-sm leading-5 font-medium text-foreground select-none', local.class)} {...others}/>;
46
+ return <Switch.Label class={cn('text-sm leading-5 font-medium text-foreground select-none', local.class)} {...others} data-slot="switch-label"/>;
47
47
  }
48
48
  const Switch_Switch = Object.assign(SwitchRoot, {
49
49
  Root: SwitchRoot,