@moduix/react 1.1.0 → 2.0.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 (358) hide show
  1. package/README.md +16 -16
  2. package/dist/components/accordion/Accordion.css +21 -14
  3. package/dist/components/accordion/Accordion.d.ts +3 -2
  4. package/dist/components/accordion/Accordion.js +17 -5
  5. package/dist/components/accordion/Accordion.module.js +10 -9
  6. package/dist/components/accordion/index.d.ts +2 -2
  7. package/dist/components/alert/Alert.css +24 -10
  8. package/dist/components/alert/Alert.d.ts +5 -3
  9. package/dist/components/alert/Alert.js +17 -5
  10. package/dist/components/alert/Alert.module.js +6 -5
  11. package/dist/components/angle-slider/AngleSlider.css +8 -8
  12. package/dist/components/angle-slider/AngleSlider.d.ts +18 -2
  13. package/dist/components/angle-slider/AngleSlider.js +34 -18
  14. package/dist/components/angle-slider/AngleSlider.module.js +7 -7
  15. package/dist/components/angle-slider/index.d.ts +2 -2
  16. package/dist/components/aspect-ratio/AspectRatio.css +4 -2
  17. package/dist/components/aspect-ratio/AspectRatio.js +2 -2
  18. package/dist/components/aspect-ratio/AspectRatio.module.js +1 -1
  19. package/dist/components/avatar/Avatar.css +3 -3
  20. package/dist/components/avatar/Avatar.d.ts +6 -3
  21. package/dist/components/avatar/Avatar.js +12 -5
  22. package/dist/components/avatar/Avatar.module.js +3 -3
  23. package/dist/components/avatar/index.d.ts +2 -2
  24. package/dist/components/badge/Badge.css +46 -3
  25. package/dist/components/badge/Badge.d.ts +2 -2
  26. package/dist/components/badge/Badge.js +1 -1
  27. package/dist/components/badge/Badge.module.js +2 -2
  28. package/dist/components/bleed/Bleed.css +1 -1
  29. package/dist/components/bleed/Bleed.d.ts +6 -4
  30. package/dist/components/bleed/Bleed.js +3 -3
  31. package/dist/components/bleed/Bleed.module.js +1 -1
  32. package/dist/components/breadcrumbs/Breadcrumbs.css +17 -11
  33. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +18 -0
  34. package/dist/components/breadcrumbs/Breadcrumbs.js +18 -4
  35. package/dist/components/breadcrumbs/Breadcrumbs.module.js +8 -7
  36. package/dist/components/breadcrumbs/index.d.ts +2 -0
  37. package/dist/components/button/Button.css +22 -2
  38. package/dist/components/button/Button.d.ts +6 -0
  39. package/dist/components/button/Button.js +12 -7
  40. package/dist/components/button/Button.module.js +1 -1
  41. package/dist/components/card/Card.css +29 -13
  42. package/dist/components/card/Card.d.ts +1 -0
  43. package/dist/components/card/Card.js +12 -1
  44. package/dist/components/card/Card.module.js +9 -8
  45. package/dist/components/carousel/Carousel.css +20 -18
  46. package/dist/components/carousel/Carousel.d.ts +4 -0
  47. package/dist/components/carousel/Carousel.js +15 -2
  48. package/dist/components/carousel/Carousel.module.js +12 -12
  49. package/dist/components/checkbox/Checkbox.css +11 -11
  50. package/dist/components/checkbox/Checkbox.d.ts +2 -3
  51. package/dist/components/checkbox/Checkbox.js +25 -22
  52. package/dist/components/checkbox/Checkbox.module.js +6 -6
  53. package/dist/components/checkbox/index.d.ts +2 -2
  54. package/dist/components/clipboard/Clipboard.css +8 -8
  55. package/dist/components/clipboard/Clipboard.d.ts +2 -0
  56. package/dist/components/clipboard/Clipboard.js +15 -4
  57. package/dist/components/clipboard/Clipboard.module.js +8 -8
  58. package/dist/components/close-button/CloseButton.css +1 -1
  59. package/dist/components/close-button/CloseButton.d.ts +12 -2
  60. package/dist/components/close-button/CloseButton.js +9 -9
  61. package/dist/components/close-button/CloseButton.module.js +1 -1
  62. package/dist/components/collapsible/Collapsible.css +17 -10
  63. package/dist/components/collapsible/Collapsible.d.ts +3 -2
  64. package/dist/components/collapsible/Collapsible.js +18 -6
  65. package/dist/components/collapsible/Collapsible.module.js +7 -6
  66. package/dist/components/collapsible/index.d.ts +2 -2
  67. package/dist/components/color-picker/ColorPicker.css +63 -34
  68. package/dist/components/color-picker/ColorPicker.d.ts +3 -3
  69. package/dist/components/color-picker/ColorPicker.js +78 -27
  70. package/dist/components/color-picker/ColorPicker.module.js +28 -27
  71. package/dist/components/color-picker/index.d.ts +2 -2
  72. package/dist/components/combobox/Combobox.css +55 -26
  73. package/dist/components/combobox/Combobox.d.ts +9 -2
  74. package/dist/components/combobox/Combobox.js +34 -8
  75. package/dist/components/combobox/Combobox.module.js +17 -17
  76. package/dist/components/combobox/index.d.ts +2 -2
  77. package/dist/components/command-palette/CommandPalette.css +80 -114
  78. package/dist/components/command-palette/CommandPalette.d.ts +13 -3
  79. package/dist/components/command-palette/CommandPalette.js +54 -43
  80. package/dist/components/command-palette/CommandPalette.module.js +35 -37
  81. package/dist/components/container/Container.css +1 -1
  82. package/dist/components/container/Container.js +1 -1
  83. package/dist/components/container/Container.module.js +1 -1
  84. package/dist/components/date-input/DateInput.css +9 -7
  85. package/dist/components/date-input/DateInput.d.ts +12 -7
  86. package/dist/components/date-input/DateInput.js +35 -14
  87. package/dist/components/date-input/DateInput.module.js +6 -6
  88. package/dist/components/date-input/index.d.ts +2 -2
  89. package/dist/components/date-picker/DatePicker.css +68 -40
  90. package/dist/components/date-picker/DatePicker.d.ts +30 -2
  91. package/dist/components/date-picker/DatePicker.js +94 -9
  92. package/dist/components/date-picker/DatePicker.module.js +23 -23
  93. package/dist/components/date-picker/index.d.ts +2 -2
  94. package/dist/components/dialog/Dialog.css +31 -27
  95. package/dist/components/dialog/Dialog.d.ts +2 -2
  96. package/dist/components/dialog/Dialog.js +3 -3
  97. package/dist/components/dialog/Dialog.module.js +15 -15
  98. package/dist/components/dialog/index.d.ts +2 -2
  99. package/dist/components/drawer/Drawer.css +40 -40
  100. package/dist/components/drawer/Drawer.d.ts +2 -2
  101. package/dist/components/drawer/Drawer.js +3 -3
  102. package/dist/components/drawer/Drawer.module.js +26 -26
  103. package/dist/components/drawer/index.d.ts +2 -2
  104. package/dist/components/editable/Editable.css +10 -10
  105. package/dist/components/editable/Editable.d.ts +9 -2
  106. package/dist/components/editable/Editable.js +14 -5
  107. package/dist/components/editable/Editable.module.js +7 -7
  108. package/dist/components/editable/index.d.ts +2 -2
  109. package/dist/components/empty/Empty.css +6 -6
  110. package/dist/components/empty/Empty.js +1 -1
  111. package/dist/components/empty/Empty.module.js +6 -6
  112. package/dist/components/field/Field.css +8 -12
  113. package/dist/components/field/Field.d.ts +3 -2
  114. package/dist/components/field/Field.js +6 -5
  115. package/dist/components/field/Field.module.js +8 -9
  116. package/dist/components/field/index.d.ts +2 -2
  117. package/dist/components/fieldset/Fieldset.css +6 -6
  118. package/dist/components/fieldset/Fieldset.d.ts +2 -2
  119. package/dist/components/fieldset/Fieldset.js +3 -3
  120. package/dist/components/fieldset/Fieldset.module.js +4 -4
  121. package/dist/components/fieldset/index.d.ts +2 -2
  122. package/dist/components/file-upload/FileUpload.css +97 -24
  123. package/dist/components/file-upload/FileUpload.d.ts +22 -5
  124. package/dist/components/file-upload/FileUpload.js +79 -21
  125. package/dist/components/file-upload/FileUpload.module.js +16 -13
  126. package/dist/components/file-upload/index.d.ts +2 -2
  127. package/dist/components/floating-panel/FloatingPanel.css +28 -24
  128. package/dist/components/floating-panel/FloatingPanel.d.ts +11 -3
  129. package/dist/components/floating-panel/FloatingPanel.js +15 -9
  130. package/dist/components/floating-panel/FloatingPanel.module.js +14 -14
  131. package/dist/components/heading/Heading.css +1 -1
  132. package/dist/components/heading/Heading.js +1 -1
  133. package/dist/components/heading/Heading.module.js +1 -1
  134. package/dist/components/highlight/Highlight.css +1 -1
  135. package/dist/components/highlight/Highlight.js +1 -1
  136. package/dist/components/highlight/Highlight.module.js +1 -1
  137. package/dist/components/hover-card/HoverCard.css +21 -17
  138. package/dist/components/hover-card/HoverCard.d.ts +3 -2
  139. package/dist/components/hover-card/HoverCard.js +5 -4
  140. package/dist/components/hover-card/HoverCard.module.js +7 -7
  141. package/dist/components/hover-card/index.d.ts +2 -2
  142. package/dist/components/image/Image.css +7 -0
  143. package/dist/components/image/Image.d.ts +12 -0
  144. package/dist/components/image/Image.js +28 -0
  145. package/dist/components/image/Image.module.js +5 -0
  146. package/dist/components/image/index.d.ts +2 -0
  147. package/dist/components/image-cropper/ImageCropper.css +6 -6
  148. package/dist/components/image-cropper/ImageCropper.d.ts +7 -2
  149. package/dist/components/image-cropper/ImageCropper.js +25 -3
  150. package/dist/components/image-cropper/ImageCropper.module.js +6 -6
  151. package/dist/components/image-cropper/index.d.ts +2 -2
  152. package/dist/components/input/Input.css +1 -1
  153. package/dist/components/input/Input.js +1 -1
  154. package/dist/components/input/Input.module.js +1 -1
  155. package/dist/components/input-group/InputGroup.css +6 -6
  156. package/dist/components/input-group/InputGroup.d.ts +3 -0
  157. package/dist/components/input-group/InputGroup.js +1 -1
  158. package/dist/components/input-group/InputGroup.module.js +5 -5
  159. package/dist/components/kbd/Kbd.css +2 -2
  160. package/dist/components/kbd/Kbd.js +1 -1
  161. package/dist/components/kbd/Kbd.module.js +2 -2
  162. package/dist/components/lightbox/Lightbox.css +30 -28
  163. package/dist/components/lightbox/Lightbox.d.ts +4 -2
  164. package/dist/components/lightbox/Lightbox.js +9 -7
  165. package/dist/components/lightbox/Lightbox.module.js +16 -16
  166. package/dist/components/lightbox/index.d.ts +2 -2
  167. package/dist/components/list/List.css +1 -1
  168. package/dist/components/list/List.js +1 -1
  169. package/dist/components/list/List.module.js +1 -1
  170. package/dist/components/listbox/Listbox.css +76 -17
  171. package/dist/components/listbox/Listbox.d.ts +14 -2
  172. package/dist/components/listbox/Listbox.js +41 -5
  173. package/dist/components/listbox/Listbox.module.js +17 -14
  174. package/dist/components/listbox/index.d.ts +2 -2
  175. package/dist/components/marquee/Marquee.css +10 -10
  176. package/dist/components/marquee/Marquee.d.ts +2 -1
  177. package/dist/components/marquee/Marquee.js +4 -3
  178. package/dist/components/marquee/Marquee.module.js +7 -7
  179. package/dist/components/marquee/index.d.ts +2 -2
  180. package/dist/components/menu/Menu.css +46 -40
  181. package/dist/components/menu/Menu.d.ts +3 -2
  182. package/dist/components/menu/Menu.js +6 -5
  183. package/dist/components/menu/Menu.module.js +27 -27
  184. package/dist/components/menu/index.d.ts +2 -2
  185. package/dist/components/native-select/NativeSelect.css +5 -5
  186. package/dist/components/native-select/NativeSelect.d.ts +6 -2
  187. package/dist/components/native-select/NativeSelect.js +5 -4
  188. package/dist/components/native-select/NativeSelect.module.js +3 -3
  189. package/dist/components/number-input/NumberInput.css +11 -17
  190. package/dist/components/number-input/NumberInput.d.ts +7 -2
  191. package/dist/components/number-input/NumberInput.js +17 -4
  192. package/dist/components/number-input/NumberInput.module.js +8 -8
  193. package/dist/components/number-input/index.d.ts +2 -2
  194. package/dist/components/pagination/Pagination.css +8 -8
  195. package/dist/components/pagination/Pagination.d.ts +4 -0
  196. package/dist/components/pagination/Pagination.js +13 -4
  197. package/dist/components/pagination/Pagination.module.js +6 -6
  198. package/dist/components/password-input/PasswordInput.css +7 -7
  199. package/dist/components/password-input/PasswordInput.d.ts +4 -0
  200. package/dist/components/password-input/PasswordInput.js +10 -2
  201. package/dist/components/password-input/PasswordInput.module.js +6 -6
  202. package/dist/components/pin-input/PinInput.css +5 -5
  203. package/dist/components/pin-input/PinInput.d.ts +6 -1
  204. package/dist/components/pin-input/PinInput.js +25 -16
  205. package/dist/components/pin-input/PinInput.module.js +5 -5
  206. package/dist/components/popover/Popover.css +33 -24
  207. package/dist/components/popover/Popover.js +1 -1
  208. package/dist/components/popover/Popover.module.js +14 -14
  209. package/dist/components/progress-circular/ProgressCircular.css +8 -8
  210. package/dist/components/progress-circular/ProgressCircular.d.ts +6 -0
  211. package/dist/components/progress-circular/ProgressCircular.js +14 -3
  212. package/dist/components/progress-circular/ProgressCircular.module.js +8 -8
  213. package/dist/components/progress-linear/ProgressLinear.css +8 -8
  214. package/dist/components/progress-linear/ProgressLinear.d.ts +3 -0
  215. package/dist/components/progress-linear/ProgressLinear.js +6 -3
  216. package/dist/components/progress-linear/ProgressLinear.module.js +8 -8
  217. package/dist/components/qr-code/QrCode.css +13 -12
  218. package/dist/components/qr-code/QrCode.d.ts +2 -2
  219. package/dist/components/qr-code/QrCode.js +3 -3
  220. package/dist/components/qr-code/QrCode.module.js +5 -5
  221. package/dist/components/qr-code/index.d.ts +2 -2
  222. package/dist/components/radio-group/RadioGroup.css +6 -6
  223. package/dist/components/radio-group/RadioGroup.d.ts +8 -4
  224. package/dist/components/radio-group/RadioGroup.js +22 -14
  225. package/dist/components/radio-group/RadioGroup.module.js +6 -6
  226. package/dist/components/radio-group/index.d.ts +2 -2
  227. package/dist/components/rating-group/RatingGroup.css +14 -14
  228. package/dist/components/rating-group/RatingGroup.d.ts +11 -4
  229. package/dist/components/rating-group/RatingGroup.js +29 -18
  230. package/dist/components/rating-group/RatingGroup.module.js +7 -7
  231. package/dist/components/rating-group/index.d.ts +2 -2
  232. package/dist/components/scroll-area/ScrollArea.css +14 -9
  233. package/dist/components/scroll-area/ScrollArea.d.ts +3 -0
  234. package/dist/components/scroll-area/ScrollArea.js +9 -6
  235. package/dist/components/scroll-area/ScrollArea.module.js +6 -6
  236. package/dist/components/segment-group/SegmentGroup.css +6 -6
  237. package/dist/components/segment-group/SegmentGroup.d.ts +13 -3
  238. package/dist/components/segment-group/SegmentGroup.js +23 -15
  239. package/dist/components/segment-group/SegmentGroup.module.js +6 -6
  240. package/dist/components/segment-group/index.d.ts +2 -2
  241. package/dist/components/select/Select.css +49 -40
  242. package/dist/components/select/Select.d.ts +18 -4
  243. package/dist/components/select/Select.js +65 -20
  244. package/dist/components/select/Select.module.js +21 -21
  245. package/dist/components/separator/Separator.css +1 -1
  246. package/dist/components/separator/Separator.js +1 -1
  247. package/dist/components/separator/Separator.module.js +1 -1
  248. package/dist/components/sidebar/Sidebar.css +169 -32
  249. package/dist/components/sidebar/Sidebar.d.ts +26 -0
  250. package/dist/components/sidebar/Sidebar.js +105 -13
  251. package/dist/components/sidebar/Sidebar.module.js +23 -17
  252. package/dist/components/signature-pad/SignaturePad.css +18 -47
  253. package/dist/components/signature-pad/SignaturePad.d.ts +14 -6
  254. package/dist/components/signature-pad/SignaturePad.js +56 -17
  255. package/dist/components/signature-pad/SignaturePad.module.js +6 -6
  256. package/dist/components/signature-pad/index.d.ts +2 -2
  257. package/dist/components/simple-grid/SimpleGrid.js +3 -3
  258. package/dist/components/skeleton/Skeleton.css +1 -1
  259. package/dist/components/skeleton/Skeleton.js +1 -1
  260. package/dist/components/skeleton/Skeleton.module.js +1 -1
  261. package/dist/components/slider/Slider.css +16 -14
  262. package/dist/components/slider/Slider.d.ts +12 -3
  263. package/dist/components/slider/Slider.js +24 -15
  264. package/dist/components/slider/Slider.module.js +10 -10
  265. package/dist/components/slider/index.d.ts +2 -2
  266. package/dist/components/spinner/Spinner.css +9 -9
  267. package/dist/components/spinner/Spinner.js +2 -2
  268. package/dist/components/spinner/Spinner.module.js +3 -3
  269. package/dist/components/split-button/SplitButton.css +9 -9
  270. package/dist/components/split-button/SplitButton.d.ts +1 -1
  271. package/dist/components/split-button/SplitButton.js +3 -4
  272. package/dist/components/split-button/SplitButton.module.js +3 -3
  273. package/dist/components/splitter/Splitter.css +27 -22
  274. package/dist/components/splitter/Splitter.d.ts +2 -2
  275. package/dist/components/splitter/Splitter.js +12 -11
  276. package/dist/components/splitter/Splitter.module.js +4 -4
  277. package/dist/components/splitter/index.d.ts +2 -2
  278. package/dist/components/stack/Stack.css +2 -2
  279. package/dist/components/stack/Stack.d.ts +1 -3
  280. package/dist/components/stack/Stack.js +4 -6
  281. package/dist/components/stack/Stack.module.js +1 -1
  282. package/dist/components/steps/Steps.css +14 -14
  283. package/dist/components/steps/Steps.d.ts +2 -1
  284. package/dist/components/steps/Steps.js +5 -4
  285. package/dist/components/steps/Steps.module.js +11 -11
  286. package/dist/components/swap/Swap.css +45 -0
  287. package/dist/components/swap/Swap.d.ts +11 -0
  288. package/dist/components/swap/Swap.js +39 -0
  289. package/dist/components/swap/Swap.module.js +11 -0
  290. package/dist/components/swap/index.d.ts +2 -0
  291. package/dist/components/switch/Switch.css +11 -11
  292. package/dist/components/switch/Switch.d.ts +4 -4
  293. package/dist/components/switch/Switch.js +19 -16
  294. package/dist/components/switch/Switch.module.js +4 -4
  295. package/dist/components/switch/index.d.ts +2 -2
  296. package/dist/components/table/Table.css +18 -18
  297. package/dist/components/table/Table.js +3 -2
  298. package/dist/components/table/Table.module.js +11 -12
  299. package/dist/components/tabs/Tabs.css +12 -10
  300. package/dist/components/tabs/Tabs.d.ts +3 -2
  301. package/dist/components/tabs/Tabs.js +5 -4
  302. package/dist/components/tabs/Tabs.module.js +5 -5
  303. package/dist/components/tabs/index.d.ts +2 -2
  304. package/dist/components/tag/Tag.css +16 -46
  305. package/dist/components/tag/Tag.js +7 -20
  306. package/dist/components/tag/Tag.module.js +5 -5
  307. package/dist/components/tags-input/TagsInput.css +13 -50
  308. package/dist/components/tags-input/TagsInput.d.ts +7 -4
  309. package/dist/components/tags-input/TagsInput.js +33 -21
  310. package/dist/components/tags-input/TagsInput.module.js +10 -10
  311. package/dist/components/tags-input/index.d.ts +2 -2
  312. package/dist/components/text/Text.css +1 -1
  313. package/dist/components/text/Text.d.ts +2 -2
  314. package/dist/components/text/Text.js +1 -1
  315. package/dist/components/text/Text.module.js +1 -1
  316. package/dist/components/textarea/Textarea.css +7 -7
  317. package/dist/components/textarea/Textarea.js +1 -1
  318. package/dist/components/textarea/Textarea.module.js +1 -1
  319. package/dist/components/timer/Timer.css +6 -6
  320. package/dist/components/timer/Timer.d.ts +14 -2
  321. package/dist/components/timer/Timer.js +13 -5
  322. package/dist/components/timer/Timer.module.js +6 -6
  323. package/dist/components/timer/index.d.ts +2 -2
  324. package/dist/components/toast/Toast.css +8 -8
  325. package/dist/components/toast/Toast.d.ts +3 -1
  326. package/dist/components/toast/Toast.js +11 -2
  327. package/dist/components/toast/Toast.module.js +6 -6
  328. package/dist/components/toggle/Toggle.css +5 -5
  329. package/dist/components/toggle/Toggle.d.ts +3 -2
  330. package/dist/components/toggle/Toggle.js +5 -4
  331. package/dist/components/toggle/Toggle.module.js +2 -2
  332. package/dist/components/toggle/index.d.ts +2 -2
  333. package/dist/components/toggle-group/ToggleGroup.css +3 -3
  334. package/dist/components/toggle-group/ToggleGroup.d.ts +3 -2
  335. package/dist/components/toggle-group/ToggleGroup.js +4 -3
  336. package/dist/components/toggle-group/ToggleGroup.module.js +2 -2
  337. package/dist/components/toggle-group/index.d.ts +2 -2
  338. package/dist/components/tooltip/Tooltip.css +21 -17
  339. package/dist/components/tooltip/Tooltip.d.ts +3 -2
  340. package/dist/components/tooltip/Tooltip.js +10 -3
  341. package/dist/components/tooltip/Tooltip.module.js +7 -7
  342. package/dist/components/tooltip/index.d.ts +2 -2
  343. package/dist/components/tour/Tour.css +42 -37
  344. package/dist/components/tour/Tour.d.ts +6 -0
  345. package/dist/components/tour/Tour.js +8 -1
  346. package/dist/components/tour/Tour.module.js +17 -17
  347. package/dist/components/tree-view/TreeView.css +22 -22
  348. package/dist/components/tree-view/TreeView.d.ts +2 -2
  349. package/dist/components/tree-view/TreeView.js +4 -4
  350. package/dist/components/tree-view/TreeView.module.js +20 -20
  351. package/dist/components/tree-view/index.d.ts +2 -2
  352. package/dist/index.d.ts +40 -39
  353. package/dist/index.js +40 -39
  354. package/dist/lib/moduix/icons/ui/Icons.d.ts +1 -45
  355. package/dist/lib/moduix/icons/ui/Icons.js +36 -263
  356. package/dist/lib/moduix/icons/ui/index.d.ts +2 -2
  357. package/dist/lib/moduix/overlayPortal.js +1 -1
  358. package/package.json +4 -3
@@ -2,10 +2,10 @@ import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
2
2
  import { CloseButton } from "../close-button/CloseButton.js";
3
3
  import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
4
4
  import Lightbox_module_default from "./Lightbox.module.js";
5
- import { jsx } from "react/jsx-runtime";
6
5
  import { clsx } from "clsx";
7
6
  import { forwardRef, useEffect } from "react";
8
- import { Dialog, useDialogContext } from "@ark-ui/react/dialog";
7
+ import { jsx } from "react/jsx-runtime";
8
+ import { Dialog, useDialog as useDialog$1, useDialogContext as useDialogContext$1 } from "@ark-ui/react/dialog";
9
9
  //#region src/components/lightbox/Lightbox.tsx
10
10
  const DEFAULT_CLOSE_LABEL = "Close image";
11
11
  const preloadedImageSources = /* @__PURE__ */ new Set();
@@ -100,7 +100,7 @@ const LightboxCloseTrigger = forwardRef(function LightboxCloseTrigger({ classNam
100
100
  });
101
101
  });
102
102
  const LightboxCloseIcon = forwardRef(function LightboxCloseIcon({ className, children, "aria-label": ariaLabel = DEFAULT_CLOSE_LABEL, ...props }, ref) {
103
- const dialog = useDialogContext();
103
+ const dialog = useDialogContext$1();
104
104
  return /* @__PURE__ */ jsx(Dialog.CloseTrigger, {
105
105
  asChild: true,
106
106
  ...props,
@@ -115,7 +115,7 @@ const LightboxCloseIcon = forwardRef(function LightboxCloseIcon({ className, chi
115
115
  });
116
116
  });
117
117
  const LightboxImage = forwardRef(function LightboxImage({ className, closeOnClick = false, onClick, ...props }, ref) {
118
- const dialog = useDialogContext();
118
+ const dialog = useDialogContext$1();
119
119
  const handleClick = (event) => {
120
120
  onClick?.(event);
121
121
  if (closeOnClick && !event.defaultPrevented) dialog.setOpen(false);
@@ -159,7 +159,7 @@ function LightboxFooter({ className, ...props }) {
159
159
  });
160
160
  }
161
161
  function LightboxBind({ onImageSelect, selector = "img", rootRef, rootSelector }) {
162
- const { setOpen } = useDialogContext();
162
+ const { setOpen } = useDialogContext$1();
163
163
  useEffect(() => {
164
164
  const rootNode = rootRef?.current ?? (rootSelector ? document.querySelector(rootSelector) : null);
165
165
  if (!rootNode) return;
@@ -213,7 +213,9 @@ const Lightbox = Object.assign(LightboxRoot, {
213
213
  Footer: LightboxFooter,
214
214
  Image: LightboxImage,
215
215
  Gallery: LightboxGallery,
216
- Bind: LightboxBind
216
+ Bind: LightboxBind,
217
+ useLightbox: useDialog$1,
218
+ useLightboxContext: useDialogContext$1
217
219
  });
218
220
  //#endregion
219
- export { Lightbox, LightboxBind, LightboxGallery, LightboxImage };
221
+ export { Lightbox, LightboxBind, LightboxGallery, LightboxImage, useDialog$1 as useLightbox, useDialogContext$1 as useLightboxContext };
@@ -1,22 +1,22 @@
1
1
  import './Lightbox.css';
2
2
  //#region src/components/lightbox/Lightbox.module.css
3
3
  var Lightbox_module_default = {
4
- "backdrop": "Jmwb8W_backdrop",
5
- "body": "Jmwb8W_body",
6
- "closeIcon": "Jmwb8W_closeIcon",
7
- "content": "Jmwb8W_content",
8
- "description": "Jmwb8W_description",
9
- "footer": "Jmwb8W_footer",
10
- "gallery": "Jmwb8W_gallery",
11
- "header": "Jmwb8W_header",
12
- "image": "Jmwb8W_image",
13
- "lightbox-backdrop-in": "Jmwb8W_lightbox-backdrop-in",
14
- "lightbox-backdrop-out": "Jmwb8W_lightbox-backdrop-out",
15
- "lightbox-content-in": "Jmwb8W_lightbox-content-in",
16
- "lightbox-content-out": "Jmwb8W_lightbox-content-out",
17
- "positioner": "Jmwb8W_positioner",
18
- "title": "Jmwb8W_title",
19
- "trigger": "Jmwb8W_trigger"
4
+ "backdrop": "BCq4HG_backdrop",
5
+ "body": "BCq4HG_body",
6
+ "closeIcon": "BCq4HG_closeIcon",
7
+ "content": "BCq4HG_content",
8
+ "description": "BCq4HG_description",
9
+ "footer": "BCq4HG_footer",
10
+ "gallery": "BCq4HG_gallery",
11
+ "header": "BCq4HG_header",
12
+ "image": "BCq4HG_image",
13
+ "lightbox-backdrop-in": "BCq4HG_lightbox-backdrop-in",
14
+ "lightbox-backdrop-out": "BCq4HG_lightbox-backdrop-out",
15
+ "lightbox-content-in": "BCq4HG_lightbox-content-in",
16
+ "lightbox-content-out": "BCq4HG_lightbox-content-out",
17
+ "positioner": "BCq4HG_positioner",
18
+ "title": "BCq4HG_title",
19
+ "trigger": "BCq4HG_trigger"
20
20
  };
21
21
  //#endregion
22
22
  export { Lightbox_module_default as default };
@@ -1,2 +1,2 @@
1
- import { Lightbox, LightboxBind, LightboxBindProps, LightboxGallery, LightboxImage, LightboxImageSelectDetails } from "./Lightbox.js";
2
- export { Lightbox, LightboxBind, type LightboxBindProps, LightboxGallery, LightboxImage, type LightboxImageSelectDetails };
1
+ import { Lightbox, LightboxBind, LightboxBindProps, LightboxGallery, LightboxImage, LightboxImageSelectDetails, useLightbox as useDialog, useLightboxContext as useDialogContext } from "./Lightbox.js";
2
+ export { Lightbox, LightboxBind, type LightboxBindProps, LightboxGallery, LightboxImage, type LightboxImageSelectDetails, useDialog as useLightbox, useDialogContext as useLightboxContext };
@@ -1,5 +1,5 @@
1
1
  @layer ui.components {
2
- .tX0ceq_root[data-scope="list"][data-part="root"] {
2
+ .dG8Cea_root[data-scope="list"][data-part="root"] {
3
3
  --_list-color: var(--list-color, var(--list-default-color, var(--color-foreground)));
4
4
  --_list-font-size: var(--list-font-size, var(--list-font-size-md, var(--text-md)));
5
5
  --_list-gap: var(--list-gap, var(--list-gap-sm, var(--spacing-2)));
@@ -1,9 +1,9 @@
1
1
  import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
2
2
  import List_module_default from "./List.module.js";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import { ark } from "@ark-ui/react/factory";
5
4
  import { clsx } from "clsx";
6
5
  import { forwardRef } from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/components/list/List.tsx
8
8
  const ListRoot = forwardRef(function ListRoot({ as, asChild, className, gap = "sm", marker, role, size = "md", tone = "default", ...props }, ref) {
9
9
  const markerValue = marker ?? "auto";
@@ -1,5 +1,5 @@
1
1
  import './List.css';
2
2
  //#region src/components/list/List.module.css
3
- var List_module_default = { "root": "tX0ceq_root" };
3
+ var List_module_default = { "root": "dG8Cea_root" };
4
4
  //#endregion
5
5
  export { List_module_default as default };
@@ -1,5 +1,5 @@
1
1
  @layer ui.components {
2
- .-yleua_root {
2
+ .SHhhXW_root {
3
3
  box-sizing: border-box;
4
4
  width: var(--listbox-width, 16rem);
5
5
  max-width: var(--listbox-max-width, 100%);
@@ -14,7 +14,7 @@
14
14
  }
15
15
  }
16
16
 
17
- .-yleua_label {
17
+ .SHhhXW_label {
18
18
  color: var(--listbox-label-color, var(--listbox-color, var(--color-foreground)));
19
19
  font-size: var(--listbox-label-font-size, var(--text-sm));
20
20
  font-weight: var(--listbox-label-font-weight, var(--weight-medium));
@@ -22,7 +22,7 @@
22
22
  user-select: none;
23
23
  }
24
24
 
25
- .-yleua_input {
25
+ .SHhhXW_input {
26
26
  box-sizing: border-box;
27
27
  width: 100%;
28
28
  min-height: var(--listbox-input-height, var(--size-lg));
@@ -50,7 +50,6 @@
50
50
  }
51
51
 
52
52
  &:focus-visible {
53
- border-color: var(--listbox-input-focus-ring-color, var(--listbox-focus-ring-color, var(--color-ring)));
54
53
  outline-color: var(--listbox-input-focus-ring-color, var(--listbox-focus-ring-color, var(--color-ring)));
55
54
  }
56
55
 
@@ -60,7 +59,67 @@
60
59
  }
61
60
  }
62
61
 
63
- .-yleua_content {
62
+ .SHhhXW_filter {
63
+ box-sizing: border-box;
64
+ width: 100%;
65
+ position: relative;
66
+
67
+ &:has( + .SHhhXW_content) .SHhhXW_input {
68
+ border-bottom: 0;
69
+ border-bottom-right-radius: 0;
70
+ border-bottom-left-radius: 0;
71
+ }
72
+ }
73
+
74
+ .SHhhXW_filter + .SHhhXW_content {
75
+ margin-top: calc(-1 * var(--listbox-root-gap, var(--spacing-3)));
76
+ border-top-left-radius: 0;
77
+ border-top-right-radius: 0;
78
+ }
79
+
80
+ .SHhhXW_filterIcon {
81
+ z-index: 1;
82
+ top: 50%;
83
+ width: var(--listbox-filter-icon-size, 1rem);
84
+ height: var(--listbox-filter-icon-size, 1rem);
85
+ color: var(--listbox-filter-icon-color, var(--color-muted-foreground));
86
+ pointer-events: none;
87
+ position: absolute;
88
+ inset-inline-start: var(--listbox-filter-padding-x, var(--spacing-3));
89
+ transform: translateY(-50%);
90
+ }
91
+
92
+ .SHhhXW_filter .SHhhXW_input {
93
+ min-height: var(--listbox-filter-height, var(--listbox-input-height, var(--size-lg)));
94
+ background-color: var(--listbox-bg, var(--color-background));
95
+ padding-inline-start: calc(var(--listbox-filter-padding-x, var(--spacing-3)) + var(--listbox-filter-icon-size, 1rem) +
96
+ var(--listbox-filter-input-padding-x, var(--spacing-2)));
97
+ padding-inline-end: calc(var(--listbox-filter-padding-x, var(--spacing-3)) +
98
+ var(--listbox-filter-action-size, 1.5rem) +
99
+ var(--listbox-filter-input-padding-x, var(--spacing-2)));
100
+
101
+ &:focus-visible {
102
+ outline-color: #0000;
103
+ }
104
+ }
105
+
106
+ .SHhhXW_clearTrigger {
107
+ z-index: 1;
108
+ top: 50%;
109
+ --close-button-size: var(--listbox-filter-action-size, 1.5rem);
110
+ --close-button-radius: var(--listbox-filter-action-radius, var(--radius-sm));
111
+ --close-button-bg: var(--listbox-filter-action-bg, transparent);
112
+ --close-button-bg-hover: var(--listbox-filter-action-bg-hover, var(--color-muted));
113
+ --close-button-color: var(--listbox-filter-icon-color, var(--color-muted-foreground));
114
+ --close-button-color-hover: var(--listbox-filter-action-color-hover, var(--color-foreground));
115
+ --close-button-icon-size: var(--listbox-filter-icon-size, 1rem);
116
+ --close-button-transition: var(--listbox-transition, var(--transition-default));
117
+ position: absolute;
118
+ inset-inline-end: var(--listbox-filter-padding-x, var(--spacing-3));
119
+ transform: translateY(-50%);
120
+ }
121
+
122
+ .SHhhXW_content {
64
123
  box-sizing: border-box;
65
124
  min-height: 0;
66
125
  max-height: var(--listbox-content-max-height, 14rem);
@@ -97,7 +156,7 @@
97
156
  }
98
157
  }
99
158
 
100
- .-yleua_empty {
159
+ .SHhhXW_empty {
101
160
  padding-block: var(--listbox-empty-padding-y, var(--spacing-3));
102
161
  padding-inline: var(--listbox-empty-padding-x, var(--spacing-3));
103
162
  color: var(--listbox-empty-color, var(--color-muted-foreground));
@@ -106,7 +165,7 @@
106
165
  text-align: center;
107
166
  }
108
167
 
109
- .-yleua_itemGroup {
168
+ .SHhhXW_itemGroup {
110
169
  flex-direction: column;
111
170
  display: flex;
112
171
 
@@ -115,7 +174,7 @@
115
174
  }
116
175
  }
117
176
 
118
- .-yleua_itemGroupLabel {
177
+ .SHhhXW_itemGroupLabel {
119
178
  padding-block: var(--listbox-item-group-label-padding-y, var(--spacing-1));
120
179
  padding-inline: var(--listbox-item-group-label-padding-x, var(--spacing-2));
121
180
  color: var(--listbox-item-group-label-color, var(--color-muted-foreground));
@@ -125,7 +184,7 @@
125
184
  user-select: none;
126
185
  }
127
186
 
128
- .-yleua_item {
187
+ .SHhhXW_item {
129
188
  box-sizing: border-box;
130
189
  width: calc(100% - var(--listbox-item-inset-x, var(--spacing-2)));
131
190
  min-height: var(--listbox-item-min-height, 2rem);
@@ -174,13 +233,13 @@
174
233
  }
175
234
  }
176
235
 
177
- .-yleua_content[data-orientation="horizontal"]:not([data-layout="grid"]) .-yleua_item {
236
+ .SHhhXW_content[data-orientation="horizontal"]:not([data-layout="grid"]) .SHhhXW_item {
178
237
  width: var(--listbox-horizontal-item-width, 11rem);
179
238
  min-width: var(--listbox-horizontal-item-width, 11rem);
180
239
  align-items: flex-start;
181
240
  }
182
241
 
183
- .-yleua_content[data-layout="grid"] .-yleua_item {
242
+ .SHhhXW_content[data-layout="grid"] .SHhhXW_item {
184
243
  text-align: center;
185
244
  grid-template-columns: minmax(0, 1fr);
186
245
  justify-items: center;
@@ -194,7 +253,7 @@
194
253
  }
195
254
  }
196
255
 
197
- .-yleua_itemText {
256
+ .SHhhXW_itemText {
198
257
  text-overflow: ellipsis;
199
258
  white-space: nowrap;
200
259
  flex: 1;
@@ -202,7 +261,7 @@
202
261
  overflow: hidden;
203
262
  }
204
263
 
205
- .-yleua_itemIndicator {
264
+ .SHhhXW_itemIndicator {
206
265
  width: var(--listbox-item-indicator-size, 1rem);
207
266
  height: var(--listbox-item-indicator-size, 1rem);
208
267
  color: var(--listbox-item-indicator-color, currentColor);
@@ -221,13 +280,13 @@
221
280
  }
222
281
  }
223
282
 
224
- .-yleua_valueText {
283
+ .SHhhXW_valueText {
225
284
  color: var(--listbox-value-text-color, var(--color-muted-foreground));
226
285
  font-size: var(--listbox-value-text-font-size, var(--text-sm));
227
286
  line-height: var(--listbox-value-text-line-height, var(--line-height-text-sm));
228
287
  }
229
288
 
230
- .-yleua_itemTextContent {
289
+ .SHhhXW_itemTextContent {
231
290
  align-items: center;
232
291
  gap: var(--listbox-item-text-content-gap, var(--spacing-2));
233
292
  vertical-align: top;
@@ -236,7 +295,7 @@
236
295
  display: inline-flex;
237
296
  }
238
297
 
239
- .-yleua_itemTextIcon {
298
+ .SHhhXW_itemTextIcon {
240
299
  width: var(--listbox-item-text-icon-size, 1rem);
241
300
  height: var(--listbox-item-text-icon-size, 1rem);
242
301
  color: var(--listbox-item-text-icon-color, currentColor);
@@ -246,7 +305,7 @@
246
305
  display: inline-flex;
247
306
  }
248
307
 
249
- .-yleua_itemTextLabel {
308
+ .SHhhXW_itemTextLabel {
250
309
  text-overflow: ellipsis;
251
310
  white-space: nowrap;
252
311
  min-width: 0;
@@ -1,7 +1,12 @@
1
1
  import { ComponentProps } from "react";
2
- import { Listbox } from "@ark-ui/react/listbox";
2
+ import { Listbox, useListbox, useListboxContext, useListboxItemContext } from "@ark-ui/react/listbox";
3
3
 
4
4
  //#region src/components/listbox/Listbox.d.ts
5
+ declare function ListboxFilter({
6
+ className,
7
+ children,
8
+ ...props
9
+ }: ComponentProps<'div'>): import("react").JSX.Element;
5
10
  declare function ListboxItemTextContent({
6
11
  className,
7
12
  ...props
@@ -19,6 +24,8 @@ declare const Listbox$1: Listbox.RootComponent & {
19
24
  RootProvider: Listbox.RootProviderComponent;
20
25
  Label: import("react").ForwardRefExoticComponent<Omit<Listbox.LabelProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
21
26
  Input: import("react").ForwardRefExoticComponent<Omit<Listbox.InputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
27
+ Filter: typeof ListboxFilter;
28
+ ClearTrigger: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
22
29
  Content: import("react").ForwardRefExoticComponent<Omit<Listbox.ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
23
30
  Empty: import("react").ForwardRefExoticComponent<Omit<Listbox.EmptyProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
24
31
  ItemGroup: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemGroupProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -27,9 +34,14 @@ declare const Listbox$1: Listbox.RootComponent & {
27
34
  ItemText: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
28
35
  ItemIndicator: import("react").ForwardRefExoticComponent<Omit<Listbox.ItemIndicatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
29
36
  ValueText: import("react").ForwardRefExoticComponent<Omit<Listbox.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
37
+ Context: <T extends unknown>(props: Listbox.ContextProps<T>) => import("react").ReactNode;
38
+ ItemContext: (props: Listbox.ItemContextProps) => import("react").ReactNode;
30
39
  ItemTextContent: typeof ListboxItemTextContent;
31
40
  ItemTextIcon: typeof ListboxItemTextIcon;
32
41
  ItemTextLabel: typeof ListboxItemTextLabel;
42
+ useListbox: <T extends unknown>(props: import("@ark-ui/react/listbox").UseListboxProps<T>) => import("@ark-ui/react/listbox").UseListboxReturn<T>;
43
+ useListboxContext: () => import("@ark-ui/react/listbox").UseListboxContext<any>;
44
+ useListboxItemContext: () => import("@ark-ui/react/listbox").UseListboxItemContext;
33
45
  };
34
46
  //#endregion
35
- export { Listbox$1 as Listbox };
47
+ export { Listbox$1 as Listbox, useListbox, useListboxContext, useListboxItemContext };
@@ -1,10 +1,12 @@
1
- import { CheckIcon } from "../../lib/moduix/icons/ui/Icons.js";
2
1
  import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
2
+ import { CheckIcon, SearchIcon } from "../../lib/moduix/icons/ui/Icons.js";
3
+ import { CloseButton } from "../close-button/CloseButton.js";
3
4
  import Listbox_module_default from "./Listbox.module.js";
4
- import { jsx } from "react/jsx-runtime";
5
+ import { ark } from "@ark-ui/react/factory";
5
6
  import { clsx } from "clsx";
6
7
  import { forwardRef } from "react";
7
- import { Listbox } from "@ark-ui/react/listbox";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { Listbox, useListbox, useListboxContext, useListboxItemContext } from "@ark-ui/react/listbox";
8
10
  //#region src/components/listbox/Listbox.tsx
9
11
  const ListboxRoot = forwardRef(function ListboxRoot({ className, ...props }, ref) {
10
12
  return /* @__PURE__ */ jsx(Listbox.Root, {
@@ -38,6 +40,33 @@ const ListboxInput = forwardRef(function ListboxInput({ className, ...props }, r
38
40
  ...props
39
41
  });
40
42
  });
43
+ function ListboxFilter({ className, children, ...props }) {
44
+ return /* @__PURE__ */ jsxs("div", {
45
+ "data-slot": "listbox-filter",
46
+ className: clsx(Listbox_module_default.filter, normalizeClassName(className)),
47
+ ...props,
48
+ children: [/* @__PURE__ */ jsx(SearchIcon, {
49
+ "data-slot": "listbox-filter-icon",
50
+ className: Listbox_module_default.filterIcon
51
+ }), children]
52
+ });
53
+ }
54
+ const ListboxClearTrigger = forwardRef(function ListboxClearTrigger({ "aria-label": ariaLabel = "Clear search", className, children, type = "button", ...props }, ref) {
55
+ return /* @__PURE__ */ jsx(ark.button, {
56
+ ref,
57
+ asChild: true,
58
+ "data-slot": "listbox-clear-trigger",
59
+ type,
60
+ "aria-label": ariaLabel,
61
+ className: clsx(Listbox_module_default.clearTrigger, normalizeClassName(className)),
62
+ ...props,
63
+ children: /* @__PURE__ */ jsx(CloseButton.Root, {
64
+ "aria-label": ariaLabel,
65
+ type,
66
+ children
67
+ })
68
+ });
69
+ });
41
70
  const ListboxContent = forwardRef(function ListboxContent({ className, ...props }, ref) {
42
71
  return /* @__PURE__ */ jsx(Listbox.Content, {
43
72
  ref,
@@ -129,6 +158,8 @@ const Listbox$1 = Object.assign(ListboxRoot, {
129
158
  RootProvider: ListboxRootProvider,
130
159
  Label: ListboxLabel,
131
160
  Input: ListboxInput,
161
+ Filter: ListboxFilter,
162
+ ClearTrigger: ListboxClearTrigger,
132
163
  Content: ListboxContent,
133
164
  Empty: ListboxEmpty,
134
165
  ItemGroup: ListboxItemGroup,
@@ -137,9 +168,14 @@ const Listbox$1 = Object.assign(ListboxRoot, {
137
168
  ItemText: ListboxItemText,
138
169
  ItemIndicator: ListboxItemIndicator,
139
170
  ValueText: ListboxValueText,
171
+ Context: Listbox.Context,
172
+ ItemContext: Listbox.ItemContext,
140
173
  ItemTextContent: ListboxItemTextContent,
141
174
  ItemTextIcon: ListboxItemTextIcon,
142
- ItemTextLabel: ListboxItemTextLabel
175
+ ItemTextLabel: ListboxItemTextLabel,
176
+ useListbox,
177
+ useListboxContext,
178
+ useListboxItemContext
143
179
  });
144
180
  //#endregion
145
- export { Listbox$1 as Listbox };
181
+ export { Listbox$1 as Listbox, useListbox, useListboxContext, useListboxItemContext };
@@ -1,20 +1,23 @@
1
1
  import './Listbox.css';
2
2
  //#region src/components/listbox/Listbox.module.css
3
3
  var Listbox_module_default = {
4
- "content": "-yleua_content",
5
- "empty": "-yleua_empty",
6
- "input": "-yleua_input",
7
- "item": "-yleua_item",
8
- "itemGroup": "-yleua_itemGroup",
9
- "itemGroupLabel": "-yleua_itemGroupLabel",
10
- "itemIndicator": "-yleua_itemIndicator",
11
- "itemText": "-yleua_itemText",
12
- "itemTextContent": "-yleua_itemTextContent",
13
- "itemTextIcon": "-yleua_itemTextIcon",
14
- "itemTextLabel": "-yleua_itemTextLabel",
15
- "label": "-yleua_label",
16
- "root": "-yleua_root",
17
- "valueText": "-yleua_valueText"
4
+ "clearTrigger": "SHhhXW_clearTrigger",
5
+ "content": "SHhhXW_content",
6
+ "empty": "SHhhXW_empty",
7
+ "filter": "SHhhXW_filter",
8
+ "filterIcon": "SHhhXW_filterIcon",
9
+ "input": "SHhhXW_input",
10
+ "item": "SHhhXW_item",
11
+ "itemGroup": "SHhhXW_itemGroup",
12
+ "itemGroupLabel": "SHhhXW_itemGroupLabel",
13
+ "itemIndicator": "SHhhXW_itemIndicator",
14
+ "itemText": "SHhhXW_itemText",
15
+ "itemTextContent": "SHhhXW_itemTextContent",
16
+ "itemTextIcon": "SHhhXW_itemTextIcon",
17
+ "itemTextLabel": "SHhhXW_itemTextLabel",
18
+ "label": "SHhhXW_label",
19
+ "root": "SHhhXW_root",
20
+ "valueText": "SHhhXW_valueText"
18
21
  };
19
22
  //#endregion
20
23
  export { Listbox_module_default as default };
@@ -1,2 +1,2 @@
1
- import { Listbox } from "./Listbox.js";
2
- export { Listbox };
1
+ import { Listbox, useListbox, useListboxContext, useListboxItemContext } from "./Listbox.js";
2
+ export { Listbox, useListbox, useListboxContext, useListboxItemContext };
@@ -1,5 +1,5 @@
1
1
  @layer ui.components {
2
- ._7_2lUa_root {
2
+ .MH_pgW_root {
3
3
  box-sizing: border-box;
4
4
  width: var(--marquee-width, 100%);
5
5
  height: var(--marquee-height, auto);
@@ -11,26 +11,26 @@
11
11
  height: var(--marquee-vertical-height, var(--marquee-height, 15rem));
12
12
  }
13
13
 
14
- &[data-paused] ._7_2lUa_content {
14
+ &[data-paused] .MH_pgW_content {
15
15
  animation-play-state: paused;
16
16
  }
17
17
  }
18
18
 
19
- ._7_2lUa_viewport {
19
+ .MH_pgW_viewport {
20
20
  box-sizing: border-box;
21
21
  width: 100%;
22
22
  height: 100%;
23
23
  }
24
24
 
25
- ._7_2lUa_content {
26
- animation-name: _7_2lUa_marquee-x;
25
+ .MH_pgW_content {
26
+ animation-name: MH_pgW_marquee-x;
27
27
  animation-duration: var(--marquee-duration);
28
28
  animation-delay: var(--marquee-delay);
29
29
  animation-timing-function: linear;
30
30
  animation-iteration-count: var(--marquee-loop-count);
31
31
 
32
32
  &[data-side="top"], &[data-side="bottom"] {
33
- animation-name: _7_2lUa_marquee-y;
33
+ animation-name: MH_pgW_marquee-y;
34
34
  }
35
35
 
36
36
  &[data-reverse] {
@@ -42,12 +42,12 @@
42
42
  }
43
43
  }
44
44
 
45
- ._7_2lUa_item {
45
+ .MH_pgW_item {
46
46
  box-sizing: border-box;
47
47
  flex-shrink: 0;
48
48
  }
49
49
 
50
- ._7_2lUa_edge {
50
+ .MH_pgW_edge {
51
51
  z-index: var(--marquee-edge-z-index, 1);
52
52
  pointer-events: none;
53
53
 
@@ -92,7 +92,7 @@
92
92
  }
93
93
  }
94
94
 
95
- @keyframes _7_2lUa_marquee-x {
95
+ @keyframes MH_pgW_marquee-x {
96
96
  from {
97
97
  transform: translateX(0%);
98
98
  }
@@ -102,7 +102,7 @@
102
102
  }
103
103
  }
104
104
 
105
- @keyframes _7_2lUa_marquee-y {
105
+ @keyframes MH_pgW_marquee-y {
106
106
  from {
107
107
  transform: translateY(0%);
108
108
  }
@@ -9,5 +9,6 @@ declare const Marquee$1: import("react").ForwardRefExoticComponent<Omit<Marquee.
9
9
  Item: import("react").ForwardRefExoticComponent<Omit<Marquee.ItemProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
10
10
  Edge: import("react").ForwardRefExoticComponent<Omit<Marquee.EdgeProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
11
  };
12
+ declare const useMarquee$1: (props?: import("@ark-ui/react/marquee").UseMarqueeProps) => import("@ark-ui/react/marquee").UseMarqueeReturn;
12
13
  //#endregion
13
- export { Marquee$1 as Marquee };
14
+ export { Marquee$1 as Marquee, useMarquee$1 as useMarquee };
@@ -1,9 +1,9 @@
1
1
  import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
2
2
  import Marquee_module_default from "./Marquee.module.js";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import { clsx } from "clsx";
5
4
  import { forwardRef } from "react";
6
- import { Marquee } from "@ark-ui/react/marquee";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { Marquee, useMarquee } from "@ark-ui/react/marquee";
7
7
  //#region src/components/marquee/Marquee.tsx
8
8
  const MarqueeRoot = forwardRef(function MarqueeRoot({ className, ...props }, ref) {
9
9
  return /* @__PURE__ */ jsx(Marquee.Root, {
@@ -61,5 +61,6 @@ const Marquee$1 = Object.assign(MarqueeRoot, {
61
61
  Item: MarqueeItem,
62
62
  Edge: MarqueeEdge
63
63
  });
64
+ const useMarquee$1 = useMarquee;
64
65
  //#endregion
65
- export { Marquee$1 as Marquee };
66
+ export { Marquee$1 as Marquee, useMarquee$1 as useMarquee };
@@ -1,13 +1,13 @@
1
1
  import './Marquee.css';
2
2
  //#region src/components/marquee/Marquee.module.css
3
3
  var Marquee_module_default = {
4
- "content": "_7_2lUa_content",
5
- "edge": "_7_2lUa_edge",
6
- "item": "_7_2lUa_item",
7
- "marquee-x": "_7_2lUa_marquee-x",
8
- "marquee-y": "_7_2lUa_marquee-y",
9
- "root": "_7_2lUa_root",
10
- "viewport": "_7_2lUa_viewport"
4
+ "content": "MH_pgW_content",
5
+ "edge": "MH_pgW_edge",
6
+ "item": "MH_pgW_item",
7
+ "marquee-x": "MH_pgW_marquee-x",
8
+ "marquee-y": "MH_pgW_marquee-y",
9
+ "root": "MH_pgW_root",
10
+ "viewport": "MH_pgW_viewport"
11
11
  };
12
12
  //#endregion
13
13
  export { Marquee_module_default as default };
@@ -1,2 +1,2 @@
1
- import { Marquee } from "./Marquee.js";
2
- export { Marquee };
1
+ import { Marquee, useMarquee } from "./Marquee.js";
2
+ export { Marquee, useMarquee };