@moduix/solid-tailwind 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 (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 +72 -53
  30. package/dist/components/command-palette/CommandPalette.jsx +29 -32
  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 +10 -11
@@ -44,11 +44,12 @@ function TourBackdrop(props) {
44
44
  return createComponent(OverlayPortal, {
45
45
  get children () {
46
46
  return createComponent(Tour.Backdrop, mergeProps({
47
- "data-slot": "tour-backdrop",
48
47
  get ["class"] () {
49
48
  return cn('z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] bg-overlay backdrop-blur-xs data-[state=closed]:animate-[moduix-fade-out_200ms_ease-in-out_forwards] data-[state=open]:animate-[moduix-fade-in_200ms_ease-in-out] motion-reduce:animate-none', local.class);
50
49
  }
51
- }, others));
50
+ }, others, {
51
+ "data-slot": "tour-backdrop"
52
+ }));
52
53
  }
53
54
  });
54
55
  }
@@ -59,11 +60,12 @@ function TourSpotlight(props) {
59
60
  return createComponent(OverlayPortal, {
60
61
  get children () {
61
62
  return createComponent(Tour.Spotlight, mergeProps({
62
- "data-slot": "tour-spotlight",
63
63
  get ["class"] () {
64
64
  return cn('z-[calc(50+var(--tour-layer,0))] ring-2 ring-ring', local.class);
65
65
  }
66
- }, others));
66
+ }, others, {
67
+ "data-slot": "tour-spotlight"
68
+ }));
67
69
  }
68
70
  });
69
71
  }
@@ -74,11 +76,12 @@ function TourPositioner(props) {
74
76
  return createComponent(OverlayPortal, {
75
77
  get children () {
76
78
  return createComponent(Tour.Positioner, mergeProps({
77
- "data-slot": "tour-positioner",
78
79
  get ["class"] () {
79
- return cn('!z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] max-h-[var(--available-height)] max-w-[var(--available-width)] outline-0 data-[type=dialog]:fixed data-[type=dialog]:inset-0 data-[type=dialog]:grid data-[type=dialog]:place-items-center data-[type=dialog]:overflow-y-auto data-[type=dialog]:overscroll-contain data-[type=dialog]:p-4 data-[type=floating]:fixed data-[type=floating]:max-h-[calc(100dvh-3rem)] data-[type=floating]:max-w-[calc(100vw-3rem)] data-[type=floating]:data-[placement=bottom]:start-1/2 data-[type=floating]:data-[placement=bottom]:bottom-6 data-[type=floating]:data-[placement=bottom]:-translate-x-1/2 data-[type=floating]:data-[placement=bottom-end]:end-6 data-[type=floating]:data-[placement=bottom-end]:bottom-6 data-[type=floating]:data-[placement=bottom-start]:start-6 data-[type=floating]:data-[placement=bottom-start]:bottom-6 data-[type=floating]:data-[placement=center]:inset-1/2 data-[type=floating]:data-[placement=center]:-translate-x-1/2 data-[type=floating]:data-[placement=center]:-translate-y-1/2 data-[type=floating]:data-[placement=left]:start-6 data-[type=floating]:data-[placement=left]:top-1/2 data-[type=floating]:data-[placement=left]:-translate-y-1/2 data-[type=floating]:data-[placement=left-end]:start-6 data-[type=floating]:data-[placement=left-end]:bottom-6 data-[type=floating]:data-[placement=left-start]:start-6 data-[type=floating]:data-[placement=left-start]:top-6 data-[type=floating]:data-[placement=right]:end-6 data-[type=floating]:data-[placement=right]:top-1/2 data-[type=floating]:data-[placement=right]:-translate-y-1/2 data-[type=floating]:data-[placement=right-end]:end-6 data-[type=floating]:data-[placement=right-end]:bottom-6 data-[type=floating]:data-[placement=right-start]:end-6 data-[type=floating]:data-[placement=right-start]:top-6 data-[type=floating]:data-[placement=top]:start-1/2 data-[type=floating]:data-[placement=top]:top-6 data-[type=floating]:data-[placement=top]:-translate-x-1/2 data-[type=floating]:data-[placement=top-end]:end-6 data-[type=floating]:data-[placement=top-end]:top-6 data-[type=floating]:data-[placement=top-start]:start-6 data-[type=floating]:data-[placement=top-start]:top-6', local.class);
80
+ return cn('z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] max-h-[var(--available-height)] max-w-[var(--available-width)] outline-0 [--tour-z-index:var(--moduix-tour-z-index,var(--moduix-z-modal))] data-[type=dialog]:fixed data-[type=dialog]:inset-0 data-[type=dialog]:grid data-[type=dialog]:place-items-center data-[type=dialog]:overflow-y-auto data-[type=dialog]:overscroll-contain data-[type=dialog]:p-4 data-[type=floating]:fixed data-[type=floating]:max-h-[calc(100dvh-3rem)] data-[type=floating]:max-w-[calc(100vw-3rem)] data-[type=floating]:data-[placement=bottom]:start-1/2 data-[type=floating]:data-[placement=bottom]:bottom-6 data-[type=floating]:data-[placement=bottom]:-translate-x-1/2 data-[type=floating]:data-[placement=bottom-end]:end-6 data-[type=floating]:data-[placement=bottom-end]:bottom-6 data-[type=floating]:data-[placement=bottom-start]:start-6 data-[type=floating]:data-[placement=bottom-start]:bottom-6 data-[type=floating]:data-[placement=center]:inset-1/2 data-[type=floating]:data-[placement=center]:-translate-x-1/2 data-[type=floating]:data-[placement=center]:-translate-y-1/2 data-[type=floating]:data-[placement=left]:start-6 data-[type=floating]:data-[placement=left]:top-1/2 data-[type=floating]:data-[placement=left]:-translate-y-1/2 data-[type=floating]:data-[placement=left-end]:start-6 data-[type=floating]:data-[placement=left-end]:bottom-6 data-[type=floating]:data-[placement=left-start]:start-6 data-[type=floating]:data-[placement=left-start]:top-6 data-[type=floating]:data-[placement=right]:end-6 data-[type=floating]:data-[placement=right]:top-1/2 data-[type=floating]:data-[placement=right]:-translate-y-1/2 data-[type=floating]:data-[placement=right-end]:end-6 data-[type=floating]:data-[placement=right-end]:bottom-6 data-[type=floating]:data-[placement=right-start]:end-6 data-[type=floating]:data-[placement=right-start]:top-6 data-[type=floating]:data-[placement=top]:start-1/2 data-[type=floating]:data-[placement=top]:top-6 data-[type=floating]:data-[placement=top]:-translate-x-1/2 data-[type=floating]:data-[placement=top-end]:end-6 data-[type=floating]:data-[placement=top-end]:top-6 data-[type=floating]:data-[placement=top-start]:start-6 data-[type=floating]:data-[placement=top-start]:top-6', local.class);
80
81
  }
81
- }, others));
82
+ }, others, {
83
+ "data-slot": "tour-positioner"
84
+ }));
82
85
  }
83
86
  });
84
87
  }
@@ -87,11 +90,12 @@ function TourContent(props) {
87
90
  'class'
88
91
  ]);
89
92
  return createComponent(Tour.Content, mergeProps({
90
- "data-slot": "tour-content",
91
93
  get ["class"] () {
92
94
  return cn('relative z-60 flex max-h-[min(24rem,var(--available-height,100dvh))] w-80 max-w-[min(calc(100vw-2rem),var(--available-width,100vw))] origin-[var(--transform-origin)] flex-col gap-1 overflow-visible rounded-lg border border-border bg-popover p-5 text-popover-foreground shadow-lg outline-0 has-[>[data-slot=tour-body]]:grid has-[>[data-slot=tour-body]]:grid-rows-[minmax(0,1fr)_auto] data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open data-[type=dialog]:w-[min(26rem,calc(100vw-2rem))] data-[type=floating]:w-[min(22rem,calc(100vw-2rem))] motion-reduce:animate-none', local.class);
93
95
  }
94
- }, others));
96
+ }, others, {
97
+ "data-slot": "tour-content"
98
+ }));
95
99
  }
96
100
  function TourArrow(props) {
97
101
  const [local, others] = splitProps(props, [
@@ -100,11 +104,11 @@ function TourArrow(props) {
100
104
  ]);
101
105
  const resolvedChildren = children(()=>local.children);
102
106
  return createComponent(Tour.Arrow, mergeProps({
103
- "data-slot": "tour-arrow",
104
107
  get ["class"] () {
105
108
  return cn('!size-2.5', local.class);
106
109
  }
107
110
  }, others, {
111
+ "data-slot": "tour-arrow",
108
112
  get children () {
109
113
  return resolvedChildren() ?? createComponent(TourArrowTip, {});
110
114
  }
@@ -115,55 +119,60 @@ function TourArrowTip(props) {
115
119
  'class'
116
120
  ]);
117
121
  return createComponent(Tour.ArrowTip, mergeProps({
118
- "data-slot": "tour-arrow-tip",
119
122
  get ["class"] () {
120
123
  return cn('border-t border-l border-border !bg-popover', local.class);
121
124
  }
122
- }, others));
125
+ }, others, {
126
+ "data-slot": "tour-arrow-tip"
127
+ }));
123
128
  }
124
129
  function TourTitle(props) {
125
130
  const [local, others] = splitProps(props, [
126
131
  'class'
127
132
  ]);
128
133
  return createComponent(Tour.Title, mergeProps({
129
- "data-slot": "tour-title",
130
134
  get ["class"] () {
131
135
  return cn('pe-6 text-md leading-6 font-semibold text-popover-foreground', local.class);
132
136
  }
133
- }, others));
137
+ }, others, {
138
+ "data-slot": "tour-title"
139
+ }));
134
140
  }
135
141
  function TourDescription(props) {
136
142
  const [local, others] = splitProps(props, [
137
143
  'class'
138
144
  ]);
139
145
  return createComponent(Tour.Description, mergeProps({
140
- "data-slot": "tour-description",
141
146
  get ["class"] () {
142
147
  return cn('text-sm leading-5 text-muted-foreground', local.class);
143
148
  }
144
- }, others));
149
+ }, others, {
150
+ "data-slot": "tour-description"
151
+ }));
145
152
  }
146
153
  function TourProgressText(props) {
147
154
  const [local, others] = splitProps(props, [
148
155
  'class'
149
156
  ]);
150
157
  return createComponent(Tour.ProgressText, mergeProps({
151
- "data-slot": "tour-progress-text",
152
158
  get ["class"] () {
153
159
  return cn('order-1 mt-2 text-xs leading-4 text-muted-foreground', local.class);
154
160
  }
155
- }, others));
161
+ }, others, {
162
+ "data-slot": "tour-progress-text"
163
+ }));
156
164
  }
157
165
  function TourBody(props) {
158
166
  const [local, others] = splitProps(props, [
159
167
  'class'
160
168
  ]);
161
169
  return createComponent(ark.div, mergeProps({
162
- "data-slot": "tour-body",
163
170
  get ["class"] () {
164
171
  return cn('flex min-h-0 flex-col gap-1 overflow-auto', local.class);
165
172
  }
166
- }, others));
173
+ }, others, {
174
+ "data-slot": "tour-body"
175
+ }));
167
176
  }
168
177
  function TourCloseTrigger(props) {
169
178
  const [local, others] = splitProps(props, [
@@ -174,11 +183,12 @@ function TourCloseTrigger(props) {
174
183
  get asChild () {
175
184
  return local.asChild;
176
185
  },
177
- "data-slot": "tour-close-trigger",
178
186
  get ["class"] () {
179
187
  return cn(!local.asChild && 'absolute end-4 top-4 inline-flex size-7 cursor-pointer items-center justify-center rounded-md leading-none text-muted-foreground outline-0 focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring [&>svg]:size-3 [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:hover:text-popover-foreground', local.class);
180
188
  }
181
- }, others));
189
+ }, others, {
190
+ "data-slot": "tour-close-trigger"
191
+ }));
182
192
  }
183
193
  function TourCloseIcon(props) {
184
194
  const [local, others] = splitProps(props, [
@@ -211,11 +221,12 @@ function TourControl(props) {
211
221
  'class'
212
222
  ]);
213
223
  return createComponent(Tour.Control, mergeProps({
214
- "data-slot": "tour-control",
215
224
  get ["class"] () {
216
225
  return cn('order-2 mt-3 flex flex-wrap justify-end gap-2', local.class);
217
226
  }
218
- }, others));
227
+ }, others, {
228
+ "data-slot": "tour-control"
229
+ }));
219
230
  }
220
231
  function TourActionTrigger(props) {
221
232
  const [local, others] = splitProps(props, [
@@ -226,11 +237,12 @@ function TourActionTrigger(props) {
226
237
  get asChild () {
227
238
  return local.asChild;
228
239
  },
229
- "data-slot": "tour-action-trigger",
230
240
  get ["class"] () {
231
241
  return cn(!local.asChild && "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 font-medium whitespace-nowrap text-foreground no-underline outline-0 transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 data-[type=close]:border-primary data-[type=close]:bg-primary data-[type=close]:text-primary-foreground data-[type=next]:border-primary data-[type=next]:bg-primary data-[type=next]:text-primary-foreground motion-reduce:transition-none [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:border-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:bg-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-accent", local.class);
232
242
  }
233
- }, others));
243
+ }, others, {
244
+ "data-slot": "tour-action-trigger"
245
+ }));
234
246
  }
235
247
  const TourActions = Tour.Actions;
236
248
  function TourActionList(props) {
@@ -24,7 +24,7 @@ function TourBackdrop(props) {
24
24
  'class'
25
25
  ]);
26
26
  return <OverlayPortal>
27
- <Tour.Backdrop data-slot="tour-backdrop" class={cn('z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] bg-overlay backdrop-blur-xs data-[state=closed]:animate-[moduix-fade-out_200ms_ease-in-out_forwards] data-[state=open]:animate-[moduix-fade-in_200ms_ease-in-out] motion-reduce:animate-none', local.class)} {...others}/>
27
+ <Tour.Backdrop class={cn('z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] bg-overlay backdrop-blur-xs data-[state=closed]:animate-[moduix-fade-out_200ms_ease-in-out_forwards] data-[state=open]:animate-[moduix-fade-in_200ms_ease-in-out] motion-reduce:animate-none', local.class)} {...others} data-slot="tour-backdrop"/>
28
28
  </OverlayPortal>;
29
29
  }
30
30
  function TourSpotlight(props) {
@@ -32,7 +32,7 @@ function TourSpotlight(props) {
32
32
  'class'
33
33
  ]);
34
34
  return <OverlayPortal>
35
- <Tour.Spotlight data-slot="tour-spotlight" class={cn('z-[calc(50+var(--tour-layer,0))] ring-2 ring-ring', local.class)} {...others}/>
35
+ <Tour.Spotlight class={cn('z-[calc(50+var(--tour-layer,0))] ring-2 ring-ring', local.class)} {...others} data-slot="tour-spotlight"/>
36
36
  </OverlayPortal>;
37
37
  }
38
38
  function TourPositioner(props) {
@@ -40,14 +40,14 @@ function TourPositioner(props) {
40
40
  'class'
41
41
  ]);
42
42
  return <OverlayPortal>
43
- <Tour.Positioner data-slot="tour-positioner" class={cn('!z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] max-h-[var(--available-height)] max-w-[var(--available-width)] outline-0 data-[type=dialog]:fixed data-[type=dialog]:inset-0 data-[type=dialog]:grid data-[type=dialog]:place-items-center data-[type=dialog]:overflow-y-auto data-[type=dialog]:overscroll-contain data-[type=dialog]:p-4 data-[type=floating]:fixed data-[type=floating]:max-h-[calc(100dvh-3rem)] data-[type=floating]:max-w-[calc(100vw-3rem)] data-[type=floating]:data-[placement=bottom]:start-1/2 data-[type=floating]:data-[placement=bottom]:bottom-6 data-[type=floating]:data-[placement=bottom]:-translate-x-1/2 data-[type=floating]:data-[placement=bottom-end]:end-6 data-[type=floating]:data-[placement=bottom-end]:bottom-6 data-[type=floating]:data-[placement=bottom-start]:start-6 data-[type=floating]:data-[placement=bottom-start]:bottom-6 data-[type=floating]:data-[placement=center]:inset-1/2 data-[type=floating]:data-[placement=center]:-translate-x-1/2 data-[type=floating]:data-[placement=center]:-translate-y-1/2 data-[type=floating]:data-[placement=left]:start-6 data-[type=floating]:data-[placement=left]:top-1/2 data-[type=floating]:data-[placement=left]:-translate-y-1/2 data-[type=floating]:data-[placement=left-end]:start-6 data-[type=floating]:data-[placement=left-end]:bottom-6 data-[type=floating]:data-[placement=left-start]:start-6 data-[type=floating]:data-[placement=left-start]:top-6 data-[type=floating]:data-[placement=right]:end-6 data-[type=floating]:data-[placement=right]:top-1/2 data-[type=floating]:data-[placement=right]:-translate-y-1/2 data-[type=floating]:data-[placement=right-end]:end-6 data-[type=floating]:data-[placement=right-end]:bottom-6 data-[type=floating]:data-[placement=right-start]:end-6 data-[type=floating]:data-[placement=right-start]:top-6 data-[type=floating]:data-[placement=top]:start-1/2 data-[type=floating]:data-[placement=top]:top-6 data-[type=floating]:data-[placement=top]:-translate-x-1/2 data-[type=floating]:data-[placement=top-end]:end-6 data-[type=floating]:data-[placement=top-end]:top-6 data-[type=floating]:data-[placement=top-start]:start-6 data-[type=floating]:data-[placement=top-start]:top-6', local.class)} {...others}/>
43
+ <Tour.Positioner class={cn('z-[calc(50+var(--tour-layer,0)+var(--layer-index,0))] max-h-[var(--available-height)] max-w-[var(--available-width)] outline-0 [--tour-z-index:var(--moduix-tour-z-index,var(--moduix-z-modal))] data-[type=dialog]:fixed data-[type=dialog]:inset-0 data-[type=dialog]:grid data-[type=dialog]:place-items-center data-[type=dialog]:overflow-y-auto data-[type=dialog]:overscroll-contain data-[type=dialog]:p-4 data-[type=floating]:fixed data-[type=floating]:max-h-[calc(100dvh-3rem)] data-[type=floating]:max-w-[calc(100vw-3rem)] data-[type=floating]:data-[placement=bottom]:start-1/2 data-[type=floating]:data-[placement=bottom]:bottom-6 data-[type=floating]:data-[placement=bottom]:-translate-x-1/2 data-[type=floating]:data-[placement=bottom-end]:end-6 data-[type=floating]:data-[placement=bottom-end]:bottom-6 data-[type=floating]:data-[placement=bottom-start]:start-6 data-[type=floating]:data-[placement=bottom-start]:bottom-6 data-[type=floating]:data-[placement=center]:inset-1/2 data-[type=floating]:data-[placement=center]:-translate-x-1/2 data-[type=floating]:data-[placement=center]:-translate-y-1/2 data-[type=floating]:data-[placement=left]:start-6 data-[type=floating]:data-[placement=left]:top-1/2 data-[type=floating]:data-[placement=left]:-translate-y-1/2 data-[type=floating]:data-[placement=left-end]:start-6 data-[type=floating]:data-[placement=left-end]:bottom-6 data-[type=floating]:data-[placement=left-start]:start-6 data-[type=floating]:data-[placement=left-start]:top-6 data-[type=floating]:data-[placement=right]:end-6 data-[type=floating]:data-[placement=right]:top-1/2 data-[type=floating]:data-[placement=right]:-translate-y-1/2 data-[type=floating]:data-[placement=right-end]:end-6 data-[type=floating]:data-[placement=right-end]:bottom-6 data-[type=floating]:data-[placement=right-start]:end-6 data-[type=floating]:data-[placement=right-start]:top-6 data-[type=floating]:data-[placement=top]:start-1/2 data-[type=floating]:data-[placement=top]:top-6 data-[type=floating]:data-[placement=top]:-translate-x-1/2 data-[type=floating]:data-[placement=top-end]:end-6 data-[type=floating]:data-[placement=top-end]:top-6 data-[type=floating]:data-[placement=top-start]:start-6 data-[type=floating]:data-[placement=top-start]:top-6', local.class)} {...others} data-slot="tour-positioner"/>
44
44
  </OverlayPortal>;
45
45
  }
46
46
  function TourContent(props) {
47
47
  const [local, others] = splitProps(props, [
48
48
  'class'
49
49
  ]);
50
- return <Tour.Content data-slot="tour-content" class={cn('relative z-60 flex max-h-[min(24rem,var(--available-height,100dvh))] w-80 max-w-[min(calc(100vw-2rem),var(--available-width,100vw))] origin-[var(--transform-origin)] flex-col gap-1 overflow-visible rounded-lg border border-border bg-popover p-5 text-popover-foreground shadow-lg outline-0 has-[>[data-slot=tour-body]]:grid has-[>[data-slot=tour-body]]:grid-rows-[minmax(0,1fr)_auto] data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open data-[type=dialog]:w-[min(26rem,calc(100vw-2rem))] data-[type=floating]:w-[min(22rem,calc(100vw-2rem))] motion-reduce:animate-none', local.class)} {...others}/>;
50
+ return <Tour.Content class={cn('relative z-60 flex max-h-[min(24rem,var(--available-height,100dvh))] w-80 max-w-[min(calc(100vw-2rem),var(--available-width,100vw))] origin-[var(--transform-origin)] flex-col gap-1 overflow-visible rounded-lg border border-border bg-popover p-5 text-popover-foreground shadow-lg outline-0 has-[>[data-slot=tour-body]]:grid has-[>[data-slot=tour-body]]:grid-rows-[minmax(0,1fr)_auto] data-[state=closed]:animate-moduix-menu-closed data-[state=open]:animate-moduix-menu-open data-[type=dialog]:w-[min(26rem,calc(100vw-2rem))] data-[type=floating]:w-[min(22rem,calc(100vw-2rem))] motion-reduce:animate-none', local.class)} {...others} data-slot="tour-content"/>;
51
51
  }
52
52
  function TourArrow(props) {
53
53
  const [local, others] = splitProps(props, [
@@ -55,7 +55,7 @@ function TourArrow(props) {
55
55
  'class'
56
56
  ]);
57
57
  const resolvedChildren = children(()=>local.children);
58
- return <Tour.Arrow data-slot="tour-arrow" class={cn('!size-2.5', local.class)} {...others}>
58
+ return <Tour.Arrow class={cn('!size-2.5', local.class)} {...others} data-slot="tour-arrow">
59
59
  {resolvedChildren() ?? <TourArrowTip/>}
60
60
  </Tour.Arrow>;
61
61
  }
@@ -63,38 +63,38 @@ function TourArrowTip(props) {
63
63
  const [local, others] = splitProps(props, [
64
64
  'class'
65
65
  ]);
66
- return <Tour.ArrowTip data-slot="tour-arrow-tip" class={cn('border-t border-l border-border !bg-popover', local.class)} {...others}/>;
66
+ return <Tour.ArrowTip class={cn('border-t border-l border-border !bg-popover', local.class)} {...others} data-slot="tour-arrow-tip"/>;
67
67
  }
68
68
  function TourTitle(props) {
69
69
  const [local, others] = splitProps(props, [
70
70
  'class'
71
71
  ]);
72
- return <Tour.Title data-slot="tour-title" class={cn('pe-6 text-md leading-6 font-semibold text-popover-foreground', local.class)} {...others}/>;
72
+ return <Tour.Title class={cn('pe-6 text-md leading-6 font-semibold text-popover-foreground', local.class)} {...others} data-slot="tour-title"/>;
73
73
  }
74
74
  function TourDescription(props) {
75
75
  const [local, others] = splitProps(props, [
76
76
  'class'
77
77
  ]);
78
- return <Tour.Description data-slot="tour-description" class={cn('text-sm leading-5 text-muted-foreground', local.class)} {...others}/>;
78
+ return <Tour.Description class={cn('text-sm leading-5 text-muted-foreground', local.class)} {...others} data-slot="tour-description"/>;
79
79
  }
80
80
  function TourProgressText(props) {
81
81
  const [local, others] = splitProps(props, [
82
82
  'class'
83
83
  ]);
84
- return <Tour.ProgressText data-slot="tour-progress-text" class={cn('order-1 mt-2 text-xs leading-4 text-muted-foreground', local.class)} {...others}/>;
84
+ return <Tour.ProgressText class={cn('order-1 mt-2 text-xs leading-4 text-muted-foreground', local.class)} {...others} data-slot="tour-progress-text"/>;
85
85
  }
86
86
  function TourBody(props) {
87
87
  const [local, others] = splitProps(props, [
88
88
  'class'
89
89
  ]);
90
- return <ark.div data-slot="tour-body" class={cn('flex min-h-0 flex-col gap-1 overflow-auto', local.class)} {...others}/>;
90
+ return <ark.div class={cn('flex min-h-0 flex-col gap-1 overflow-auto', local.class)} {...others} data-slot="tour-body"/>;
91
91
  }
92
92
  function TourCloseTrigger(props) {
93
93
  const [local, others] = splitProps(props, [
94
94
  'asChild',
95
95
  'class'
96
96
  ]);
97
- return <Tour.CloseTrigger asChild={local.asChild} data-slot="tour-close-trigger" class={cn(!local.asChild && 'absolute end-4 top-4 inline-flex size-7 cursor-pointer items-center justify-center rounded-md leading-none text-muted-foreground outline-0 focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring [&>svg]:size-3 [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:hover:text-popover-foreground', local.class)} {...others}/>;
97
+ return <Tour.CloseTrigger asChild={local.asChild} class={cn(!local.asChild && 'absolute end-4 top-4 inline-flex size-7 cursor-pointer items-center justify-center rounded-md leading-none text-muted-foreground outline-0 focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring [&>svg]:size-3 [@media(hover:hover)]:hover:bg-accent [@media(hover:hover)]:hover:text-popover-foreground', local.class)} {...others} data-slot="tour-close-trigger"/>;
98
98
  }
99
99
  function TourCloseIcon(props) {
100
100
  const [local, others] = splitProps(props, [
@@ -112,14 +112,14 @@ function TourControl(props) {
112
112
  const [local, others] = splitProps(props, [
113
113
  'class'
114
114
  ]);
115
- return <Tour.Control data-slot="tour-control" class={cn('order-2 mt-3 flex flex-wrap justify-end gap-2', local.class)} {...others}/>;
115
+ return <Tour.Control class={cn('order-2 mt-3 flex flex-wrap justify-end gap-2', local.class)} {...others} data-slot="tour-control"/>;
116
116
  }
117
117
  function TourActionTrigger(props) {
118
118
  const [local, others] = splitProps(props, [
119
119
  'asChild',
120
120
  'class'
121
121
  ]);
122
- return <Tour.ActionTrigger asChild={local.asChild} data-slot="tour-action-trigger" class={cn(!local.asChild && "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 font-medium whitespace-nowrap text-foreground no-underline outline-0 transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 data-[type=close]:border-primary data-[type=close]:bg-primary data-[type=close]:text-primary-foreground data-[type=next]:border-primary data-[type=next]:bg-primary data-[type=next]:text-primary-foreground motion-reduce:transition-none [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:border-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:bg-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-accent", local.class)} {...others}/>;
122
+ return <Tour.ActionTrigger asChild={local.asChild} class={cn(!local.asChild && "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 font-medium whitespace-nowrap text-foreground no-underline outline-0 transition-[background-color,border-color,color] duration-200 ease-in-out select-none focus-visible:outline-1 focus-visible:-outline-offset-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50 data-[type=close]:border-primary data-[type=close]:bg-primary data-[type=close]:text-primary-foreground data-[type=next]:border-primary data-[type=next]:bg-primary data-[type=next]:text-primary-foreground motion-reduce:transition-none [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:border-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:is([data-type='next'],[data-type='close']):not(:disabled):not([data-disabled]):hover]:bg-[color-mix(in_oklab,var(--color-primary),black_12%)] [@media(hover:hover)]:[&:not(:disabled):not([data-disabled]):hover]:bg-accent", local.class)} {...others} data-slot="tour-action-trigger"/>;
123
123
  }
124
124
  const TourActions = Tour.Actions;
125
125
  function TourActionList(props) {
@@ -14,11 +14,11 @@ const TreeView_TreeViewRoot = function(props) {
14
14
  get asChild () {
15
15
  return local.asChild;
16
16
  },
17
- "data-slot": "tree-view-root",
18
17
  get ["class"] () {
19
18
  return cn('box-border flex w-80 max-w-full min-w-0 flex-col gap-2 text-foreground data-disabled:opacity-50', local.class);
20
19
  }
21
20
  }, others, {
21
+ "data-slot": "tree-view-root",
22
22
  get children () {
23
23
  return local.children;
24
24
  }
@@ -34,11 +34,11 @@ const TreeView_TreeViewRootProvider = function(props) {
34
34
  get asChild () {
35
35
  return local.asChild;
36
36
  },
37
- "data-slot": "tree-view-root-provider",
38
37
  get ["class"] () {
39
38
  return cn('box-border flex w-80 max-w-full min-w-0 flex-col gap-2 text-foreground data-disabled:opacity-50', local.class);
40
39
  }
41
40
  }, others, {
41
+ "data-slot": "tree-view-root-provider",
42
42
  get children () {
43
43
  return local.children;
44
44
  }
@@ -49,44 +49,48 @@ function TreeViewLabel(props) {
49
49
  'class'
50
50
  ]);
51
51
  return createComponent(TreeView.Label, mergeProps({
52
- "data-slot": "tree-view-label",
53
52
  get ["class"] () {
54
53
  return cn('text-sm leading-5 font-medium text-foreground select-none', local.class);
55
54
  }
56
- }, others));
55
+ }, others, {
56
+ "data-slot": "tree-view-label"
57
+ }));
57
58
  }
58
59
  function TreeViewTree(props) {
59
60
  const [local, others] = splitProps(props, [
60
61
  'class'
61
62
  ]);
62
63
  return createComponent(TreeView.Tree, mergeProps({
63
- "data-slot": "tree-view-tree",
64
64
  get ["class"] () {
65
65
  return cn('flex min-w-0 flex-col gap-1 text-sm leading-5 text-foreground', local.class);
66
66
  }
67
- }, others));
67
+ }, others, {
68
+ "data-slot": "tree-view-tree"
69
+ }));
68
70
  }
69
71
  function TreeViewBranch(props) {
70
72
  const [local, others] = splitProps(props, [
71
73
  'class'
72
74
  ]);
73
75
  return createComponent(TreeView.Branch, mergeProps({
74
- "data-slot": "tree-view-branch",
75
76
  get ["class"] () {
76
77
  return cn('relative flex min-w-0 flex-col gap-1', local.class);
77
78
  }
78
- }, others));
79
+ }, others, {
80
+ "data-slot": "tree-view-branch"
81
+ }));
79
82
  }
80
83
  function TreeViewBranchControl(props) {
81
84
  const [local, others] = splitProps(props, [
82
85
  'class'
83
86
  ]);
84
87
  return createComponent(TreeView.BranchControl, mergeProps({
85
- "data-slot": "tree-view-branch-control",
86
88
  get ["class"] () {
87
89
  return cn("relative z-0 box-border flex min-h-8 w-full min-w-0 cursor-pointer items-center gap-2 rounded-sm bg-transparent py-1 ps-[calc(0.5rem+((var(--depth,1)-1)*1rem))] pe-2 text-start text-foreground no-underline transition-[color,opacity] duration-200 ease-in-out outline-none select-none [font:inherit] before:pointer-events-none before:absolute before:inset-y-0 before:start-[calc(0.5rem+((var(--depth,1)-1)*1rem))] before:end-0 before:-z-1 before:rounded-sm before:bg-transparent before:ring-1 before:ring-transparent before:transition-[background-color,box-shadow] before:duration-200 before:ease-in-out before:content-[''] before:ring-inset focus-visible:before:ring-ring data-disabled:cursor-default data-disabled:text-muted-foreground data-disabled:opacity-50 data-focus:before:ring-ring data-selected:text-accent-foreground data-selected:before:bg-accent motion-reduce:before:transition-none [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-accent-foreground [@media(hover:hover)]:[&:not([data-disabled]):hover]:before:bg-accent", local.class);
88
90
  }
89
- }, others));
91
+ }, others, {
92
+ "data-slot": "tree-view-branch-control"
93
+ }));
90
94
  }
91
95
  function TreeViewBranchTrigger(props) {
92
96
  const [local, others] = splitProps(props, [
@@ -95,11 +99,11 @@ function TreeViewBranchTrigger(props) {
95
99
  ]);
96
100
  const resolvedChildren = children(()=>local.children);
97
101
  return createComponent(TreeView.BranchTrigger, mergeProps({
98
- "data-slot": "tree-view-branch-trigger",
99
102
  get ["class"] () {
100
103
  return cn('inline-flex size-4 shrink-0 items-center justify-center transition-transform duration-200 ease-in-out data-[state=open]:rotate-90 motion-reduce:transition-none [&_svg]:size-3.5', local.class);
101
104
  }
102
105
  }, others, {
106
+ "data-slot": "tree-view-branch-trigger",
103
107
  get children () {
104
108
  return resolvedChildren() ?? createComponent(ChevronRightIcon, {});
105
109
  }
@@ -112,11 +116,11 @@ function TreeViewBranchIndicator(props) {
112
116
  ]);
113
117
  const resolvedChildren = children(()=>local.children);
114
118
  return createComponent(TreeView.BranchIndicator, mergeProps({
115
- "data-slot": "tree-view-branch-indicator",
116
119
  get ["class"] () {
117
120
  return cn('inline-flex size-4 shrink-0 items-center justify-center transition-transform duration-200 ease-in-out data-[state=open]:rotate-90 motion-reduce:transition-none [&_svg]:size-3.5', local.class);
118
121
  }
119
122
  }, others, {
123
+ "data-slot": "tree-view-branch-indicator",
120
124
  get children () {
121
125
  return resolvedChildren() ?? createComponent(ChevronRightIcon, {});
122
126
  }
@@ -127,55 +131,60 @@ function TreeViewBranchText(props) {
127
131
  'class'
128
132
  ]);
129
133
  return createComponent(TreeView.BranchText, mergeProps({
130
- "data-slot": "tree-view-branch-text",
131
134
  get ["class"] () {
132
135
  return cn('inline-flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap [&_svg]:size-4 [&_svg]:shrink-0', local.class);
133
136
  }
134
- }, others));
137
+ }, others, {
138
+ "data-slot": "tree-view-branch-text"
139
+ }));
135
140
  }
136
141
  function TreeViewBranchContent(props) {
137
142
  const [local, others] = splitProps(props, [
138
143
  'class'
139
144
  ]);
140
145
  return createComponent(TreeView.BranchContent, mergeProps({
141
- "data-slot": "tree-view-branch-content",
142
146
  get ["class"] () {
143
147
  return cn('relative flex min-w-0 flex-col gap-1 overflow-hidden data-[state=closed]:animate-[moduix-collapsible-content-closed_150ms_ease-out] data-[state=open]:animate-[moduix-collapsible-content-open_150ms_ease-out] motion-reduce:animate-none', local.class);
144
148
  }
145
- }, others));
149
+ }, others, {
150
+ "data-slot": "tree-view-branch-content"
151
+ }));
146
152
  }
147
153
  function TreeViewBranchIndentGuide(props) {
148
154
  const [local, others] = splitProps(props, [
149
155
  'class'
150
156
  ]);
151
157
  return createComponent(TreeView.BranchIndentGuide, mergeProps({
152
- "data-slot": "tree-view-branch-indent-guide",
153
158
  get ["class"] () {
154
159
  return cn('pointer-events-none absolute inset-y-0 start-[calc(1rem+((var(--depth,1)-1)*1rem))] z-1 w-px bg-border', local.class);
155
160
  }
156
- }, others));
161
+ }, others, {
162
+ "data-slot": "tree-view-branch-indent-guide"
163
+ }));
157
164
  }
158
165
  function TreeViewItem(props) {
159
166
  const [local, others] = splitProps(props, [
160
167
  'class'
161
168
  ]);
162
169
  return createComponent(TreeView.Item, mergeProps({
163
- "data-slot": "tree-view-item",
164
170
  get ["class"] () {
165
171
  return cn("relative z-0 box-border flex min-h-8 w-full min-w-0 cursor-pointer items-center gap-2 rounded-sm bg-transparent py-1 ps-[calc(1rem+((var(--depth,1)-1)*1rem))] pe-2 text-start text-foreground no-underline transition-[color,opacity] duration-200 ease-in-out outline-none select-none [font:inherit] before:pointer-events-none before:absolute before:inset-y-0 before:start-[calc(0.5rem+((var(--depth,1)-1)*1rem))] before:end-0 before:-z-1 before:rounded-sm before:bg-transparent before:ring-1 before:ring-transparent before:transition-[background-color,box-shadow] before:duration-200 before:ease-in-out before:content-[''] before:ring-inset focus-visible:before:ring-ring data-disabled:cursor-default data-disabled:text-muted-foreground data-disabled:opacity-50 data-focus:before:ring-ring data-selected:text-accent-foreground data-selected:before:bg-accent motion-reduce:before:transition-none [@media(hover:hover)]:[&:not([data-disabled]):hover]:text-accent-foreground [@media(hover:hover)]:[&:not([data-disabled]):hover]:before:bg-accent", local.class);
166
172
  }
167
- }, others));
173
+ }, others, {
174
+ "data-slot": "tree-view-item"
175
+ }));
168
176
  }
169
177
  function TreeViewItemText(props) {
170
178
  const [local, others] = splitProps(props, [
171
179
  'class'
172
180
  ]);
173
181
  return createComponent(TreeView.ItemText, mergeProps({
174
- "data-slot": "tree-view-item-text",
175
182
  get ["class"] () {
176
183
  return cn('inline-flex min-w-0 flex-1 items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap [&_svg]:size-4 [&_svg]:shrink-0', local.class);
177
184
  }
178
- }, others));
185
+ }, others, {
186
+ "data-slot": "tree-view-item-text"
187
+ }));
179
188
  }
180
189
  function TreeViewItemIndicator(props) {
181
190
  const [local, others] = splitProps(props, [
@@ -184,11 +193,11 @@ function TreeViewItemIndicator(props) {
184
193
  ]);
185
194
  const resolvedChildren = children(()=>local.children);
186
195
  return createComponent(TreeView.ItemIndicator, mergeProps({
187
- "data-slot": "tree-view-item-indicator",
188
196
  get ["class"] () {
189
197
  return cn('inline-flex size-4 shrink-0 items-center justify-center [&_svg]:size-3.5', local.class);
190
198
  }
191
199
  }, others, {
200
+ "data-slot": "tree-view-item-indicator",
192
201
  get children () {
193
202
  return resolvedChildren() ?? createComponent(CheckIcon, {});
194
203
  }
@@ -199,11 +208,12 @@ function TreeViewNodeCheckbox(props) {
199
208
  'class'
200
209
  ]);
201
210
  return createComponent(TreeView.NodeCheckbox, mergeProps({
202
- "data-slot": "tree-view-node-checkbox",
203
211
  get ["class"] () {
204
212
  return cn('inline-flex size-4 shrink-0 items-center justify-center rounded-xs border border-border bg-background text-primary-foreground outline-1 outline-offset-1 outline-transparent transition-[background-color,border-color,outline-color] duration-200 ease-in-out focus-visible:outline-ring data-disabled:cursor-default data-disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary motion-reduce:transition-none [&_svg]:size-3', local.class);
205
213
  }
206
- }, others));
214
+ }, others, {
215
+ "data-slot": "tree-view-node-checkbox"
216
+ }));
207
217
  }
208
218
  function TreeViewNodeCheckboxIndicator(props) {
209
219
  const [local, others] = splitProps(props, [
@@ -218,11 +228,11 @@ function TreeViewNodeCheckboxIndicator(props) {
218
228
  get asChild () {
219
229
  return local.asChild;
220
230
  },
221
- "data-slot": "tree-view-node-checkbox-indicator",
222
231
  get ["class"] () {
223
232
  return cn('inline-flex items-center justify-center', local.class);
224
233
  }
225
234
  }, others, {
235
+ "data-slot": "tree-view-node-checkbox-indicator",
226
236
  get children () {
227
237
  return createComponent(TreeView.NodeCheckboxIndicator, {
228
238
  get fallback () {
@@ -243,11 +253,12 @@ function TreeViewNodeRenameInput(props) {
243
253
  'class'
244
254
  ]);
245
255
  return createComponent(TreeView.NodeRenameInput, mergeProps({
246
- "data-slot": "tree-view-node-rename-input",
247
256
  get ["class"] () {
248
257
  return cn('box-border min-w-0 flex-1 rounded-xs border border-ring bg-background px-1 py-0 text-foreground outline-1 -outline-offset-1 outline-transparent [font:inherit] focus-visible:outline-ring', local.class);
249
258
  }
250
- }, others));
259
+ }, others, {
260
+ "data-slot": "tree-view-node-rename-input"
261
+ }));
251
262
  }
252
263
  const TreeViewNodeProvider = TreeView.NodeProvider;
253
264
  function TreeViewNodeContent(props) {