@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
@@ -1,8 +1,10 @@
1
1
  @layer ui.components {
2
- @keyframes GCUAhG_color-picker-content-open {
2
+ @keyframes kgcaIq_color-picker-content-open {
3
3
  from {
4
- opacity: var(--color-picker-content-closed-opacity, 0);
5
- transform: scale(var(--color-picker-content-closed-scale, var(--scale-popup)));
4
+ opacity: var(--color-picker-content-closed-opacity, var(--popup-motion-starting-opacity, 0));
5
+ translate: var(--popup-motion-starting-translate-x, 0)
6
+ var(--popup-motion-starting-translate-y, 0);
7
+ transform: scale(var(--color-picker-content-closed-scale, var(--popup-motion-starting-scale, var(--scale-popup))));
6
8
  }
7
9
 
8
10
  to {
@@ -11,19 +13,20 @@
11
13
  }
12
14
  }
13
15
 
14
- @keyframes GCUAhG_color-picker-content-closed {
16
+ @keyframes kgcaIq_color-picker-content-closed {
15
17
  from {
16
18
  opacity: 1;
17
19
  transform: scale(1);
18
20
  }
19
21
 
20
22
  to {
21
- opacity: var(--color-picker-content-closed-opacity, 0);
22
- transform: scale(var(--color-picker-content-closed-scale, var(--scale-popup)));
23
+ opacity: var(--color-picker-content-closed-opacity, var(--popup-motion-ending-opacity, 0));
24
+ translate: var(--popup-motion-ending-translate-x, 0) var(--popup-motion-ending-translate-y, 0);
25
+ transform: scale(var(--color-picker-content-closed-scale, var(--popup-motion-ending-scale, var(--scale-popup))));
23
26
  }
24
27
  }
25
28
 
26
- .GCUAhG_root {
29
+ .kgcaIq_root {
27
30
  box-sizing: border-box;
28
31
  width: var(--color-picker-width, 16rem);
29
32
  max-width: var(--color-picker-max-width, 100%);
@@ -38,7 +41,7 @@
38
41
  }
39
42
  }
40
43
 
41
- .GCUAhG_label {
44
+ .kgcaIq_label {
42
45
  color: var(--color-picker-label-color, var(--color-picker-color, var(--color-foreground)));
43
46
  font-size: var(--color-picker-label-font-size, var(--text-sm));
44
47
  font-weight: var(--color-picker-label-font-weight, var(--weight-medium));
@@ -52,7 +55,7 @@
52
55
  }
53
56
  }
54
57
 
55
- .GCUAhG_control {
58
+ .kgcaIq_control {
56
59
  align-items: center;
57
60
  gap: var(--color-picker-control-gap, var(--spacing-2));
58
61
  min-width: 0;
@@ -63,7 +66,7 @@
63
66
  }
64
67
  }
65
68
 
66
- .GCUAhG_trigger {
69
+ .kgcaIq_trigger {
67
70
  box-sizing: border-box;
68
71
  width: var(--color-picker-trigger-size, var(--size-lg));
69
72
  height: var(--color-picker-trigger-size, var(--size-lg));
@@ -98,14 +101,29 @@
98
101
  &:is([disabled], [data-disabled], [data-readonly]) {
99
102
  cursor: default;
100
103
  }
104
+
105
+ &[data-fit-content] {
106
+ width: auto;
107
+ min-width: var(--color-picker-trigger-size, var(--size-lg));
108
+ padding-inline: var(--color-picker-trigger-fit-content-padding-x, var(--spacing-3));
109
+ gap: var(--color-picker-trigger-fit-content-gap, var(--spacing-2));
110
+ display: inline-flex;
111
+ }
112
+
113
+ &[data-fit-content] [data-slot="color-picker-transparency-grid"], &[data-fit-content] [data-slot="color-picker-value-swatch"] {
114
+ width: var(--color-picker-trigger-fit-content-swatch-size, 1rem);
115
+ height: var(--color-picker-trigger-fit-content-swatch-size, 1rem);
116
+ flex-shrink: 0;
117
+ grid-area: auto;
118
+ }
101
119
  }
102
120
 
103
- .GCUAhG_positioner {
121
+ .kgcaIq_positioner {
104
122
  z-index: var(--z-popup);
105
123
  outline: 0;
106
124
  }
107
125
 
108
- .GCUAhG_content {
126
+ .kgcaIq_content {
109
127
  box-sizing: border-box;
110
128
  width: var(--color-picker-content-width, 16rem);
111
129
  max-width: var(--available-width);
@@ -126,16 +144,19 @@
126
144
  overflow: auto;
127
145
 
128
146
  &[data-state="open"] {
129
- animation: GCUAhG_color-picker-content-open var(--color-picker-transition, var(--transition-default));
147
+ animation: kgcaIq_color-picker-content-open
148
+ var(--color-picker-transition, var(--popup-motion-duration, var(--duration-normal))
149
+ var(--popup-motion-easing, var(--ease-in-out)));
130
150
  }
131
151
 
132
152
  &[data-state="closed"] {
133
- animation: GCUAhG_color-picker-content-closed
134
- var(--color-picker-transition, var(--transition-default));
153
+ animation: kgcaIq_color-picker-content-closed
154
+ var(--color-picker-transition, var(--popup-motion-duration, var(--duration-normal))
155
+ var(--popup-motion-easing, var(--ease-in-out)));
135
156
  }
136
157
  }
137
158
 
138
- .GCUAhG_area {
159
+ .kgcaIq_area {
139
160
  box-sizing: border-box;
140
161
  width: 100%;
141
162
  height: var(--color-picker-area-height, 10rem);
@@ -152,13 +173,13 @@
152
173
  }
153
174
  }
154
175
 
155
- .GCUAhG_areaBackground {
176
+ .kgcaIq_areaBackground {
156
177
  border-radius: inherit;
157
178
  width: 100%;
158
179
  height: 100%;
159
180
  }
160
181
 
161
- .GCUAhG_thumb {
182
+ .kgcaIq_thumb {
162
183
  box-sizing: border-box;
163
184
  width: var(--color-picker-thumb-size, 1rem);
164
185
  height: var(--color-picker-thumb-size, 1rem);
@@ -185,7 +206,7 @@
185
206
  }
186
207
  }
187
208
 
188
- .GCUAhG_channelSlider {
209
+ .kgcaIq_channelSlider {
189
210
  box-sizing: border-box;
190
211
  height: var(--color-picker-channel-slider-height, var(--spacing-3));
191
212
  border-radius: var(--color-picker-channel-slider-radius, var(--radius-full));
@@ -203,7 +224,15 @@
203
224
  }
204
225
  }
205
226
 
206
- .GCUAhG_channelSliderTrack {
227
+ .kgcaIq_sliders {
228
+ gap: var(--color-picker-sliders-gap, var(--spacing-2));
229
+ flex-direction: column;
230
+ flex: 1;
231
+ min-width: 0;
232
+ display: flex;
233
+ }
234
+
235
+ .kgcaIq_channelSliderTrack {
207
236
  width: 100%;
208
237
  height: var(--color-picker-channel-slider-track-size, var(--spacing-3));
209
238
  border-radius: inherit;
@@ -216,20 +245,20 @@
216
245
  }
217
246
  }
218
247
 
219
- .GCUAhG_channelSliderLabel {
248
+ .kgcaIq_channelSliderLabel {
220
249
  color: var(--color-picker-channel-slider-label-color, var(--color-picker-color, var(--color-foreground)));
221
250
  font-size: var(--color-picker-channel-slider-label-font-size, var(--text-sm));
222
251
  font-weight: var(--color-picker-channel-slider-label-font-weight, var(--weight-medium));
223
252
  line-height: var(--color-picker-channel-slider-label-line-height, var(--line-height-text-sm));
224
253
  }
225
254
 
226
- .GCUAhG_channelSliderValueText {
255
+ .kgcaIq_channelSliderValueText {
227
256
  color: var(--color-picker-channel-slider-value-color, var(--color-muted-foreground));
228
257
  font-size: var(--color-picker-channel-slider-value-font-size, var(--text-sm));
229
258
  line-height: var(--color-picker-channel-slider-value-line-height, var(--line-height-text-sm));
230
259
  }
231
260
 
232
- .GCUAhG_channelInput, .GCUAhG_formatSelect {
261
+ .kgcaIq_channelInput, .kgcaIq_formatSelect {
233
262
  box-sizing: border-box;
234
263
  width: 100%;
235
264
  min-width: 0;
@@ -270,7 +299,7 @@
270
299
  }
271
300
  }
272
301
 
273
- .GCUAhG_channelInput {
302
+ .kgcaIq_channelInput {
274
303
  flex: 1;
275
304
 
276
305
  &[data-channel="alpha"] {
@@ -279,12 +308,12 @@
279
308
  }
280
309
  }
281
310
 
282
- .GCUAhG_formatSelect {
311
+ .kgcaIq_formatSelect {
283
312
  cursor: pointer;
284
313
  width: auto;
285
314
  }
286
315
 
287
- .GCUAhG_eyeDropperTrigger, .GCUAhG_formatTrigger {
316
+ .kgcaIq_eyeDropperTrigger, .kgcaIq_formatTrigger {
288
317
  box-sizing: border-box;
289
318
  height: var(--color-picker-action-size, var(--size-lg));
290
319
  min-width: var(--color-picker-action-size, var(--size-lg));
@@ -335,13 +364,13 @@
335
364
  }
336
365
  }
337
366
 
338
- .GCUAhG_swatchGroup {
367
+ .kgcaIq_swatchGroup {
339
368
  gap: var(--color-picker-swatch-gap, var(--spacing-2));
340
369
  flex-wrap: wrap;
341
370
  display: flex;
342
371
  }
343
372
 
344
- .GCUAhG_swatchTrigger {
373
+ .kgcaIq_swatchTrigger {
345
374
  border-radius: var(--color-picker-swatch-radius, var(--radius-sm));
346
375
  cursor: pointer;
347
376
  background: none;
@@ -364,7 +393,7 @@
364
393
  }
365
394
  }
366
395
 
367
- .GCUAhG_swatch {
396
+ .kgcaIq_swatch {
368
397
  box-sizing: border-box;
369
398
  width: var(--color-picker-swatch-size, 2rem);
370
399
  height: var(--color-picker-swatch-size, 2rem);
@@ -378,7 +407,7 @@
378
407
  overflow: hidden;
379
408
  }
380
409
 
381
- .GCUAhG_swatchIndicator {
410
+ .kgcaIq_swatchIndicator {
382
411
  color: var(--color-picker-swatch-indicator-color, white);
383
412
  filter: drop-shadow(0 1px 1px #00000073);
384
413
  pointer-events: none;
@@ -398,14 +427,14 @@
398
427
  }
399
428
  }
400
429
 
401
- .GCUAhG_transparencyGrid {
430
+ .kgcaIq_transparencyGrid {
402
431
  border-radius: inherit;
403
432
  grid-area: 1 / 1;
404
433
  width: 100%;
405
434
  height: 100%;
406
435
  }
407
436
 
408
- .GCUAhG_valueSwatch {
437
+ .kgcaIq_valueSwatch {
409
438
  border-radius: inherit;
410
439
  z-index: 1;
411
440
  grid-area: 1 / 1;
@@ -413,14 +442,14 @@
413
442
  height: 100%;
414
443
  }
415
444
 
416
- .GCUAhG_valueText {
445
+ .kgcaIq_valueText {
417
446
  min-width: 0;
418
447
  color: var(--color-picker-value-text-color, var(--color-picker-color, var(--color-foreground)));
419
448
  font-size: var(--color-picker-value-text-font-size, var(--text-sm));
420
449
  line-height: var(--color-picker-value-text-line-height, var(--line-height-text-sm));
421
450
  }
422
451
 
423
- .GCUAhG_view {
452
+ .kgcaIq_view {
424
453
  gap: var(--color-picker-view-gap, var(--spacing-2));
425
454
  flex-direction: column;
426
455
  min-width: 0;
@@ -1,6 +1,6 @@
1
1
  import { OverlayPortalProps } from "../../lib/moduix/overlayPortal.js";
2
2
  import { ComponentProps } from "react";
3
- import { ColorPicker, parseColor } from "@ark-ui/react/color-picker";
3
+ import { ColorPicker, parseColor, useColorPicker, useColorPickerContext } from "@ark-ui/react/color-picker";
4
4
 
5
5
  //#region src/components/color-picker/ColorPicker.d.ts
6
6
  type ColorPickerRootProps = ComponentProps<typeof ColorPicker.Root> & OverlayPortalProps;
@@ -17,6 +17,7 @@ declare const ColorPicker$1: import("react").ForwardRefExoticComponent<Omit<Colo
17
17
  AreaBackground: import("react").ForwardRefExoticComponent<Omit<ColorPicker.AreaBackgroundProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
18
18
  AreaThumb: import("react").ForwardRefExoticComponent<Omit<ColorPicker.AreaThumbProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
19
19
  ChannelSlider: import("react").ForwardRefExoticComponent<Omit<ColorPicker.ChannelSliderProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
20
+ Sliders: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
20
21
  ChannelSliderTrack: import("react").ForwardRefExoticComponent<Omit<ColorPicker.ChannelSliderTrackProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
21
22
  ChannelSliderThumb: import("react").ForwardRefExoticComponent<Omit<ColorPicker.ChannelSliderThumbProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
22
23
  ChannelSliderLabel: import("react").ForwardRefExoticComponent<Omit<ColorPicker.ChannelSliderLabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
@@ -33,7 +34,6 @@ declare const ColorPicker$1: import("react").ForwardRefExoticComponent<Omit<Colo
33
34
  ValueSwatch: import("react").ForwardRefExoticComponent<Omit<ColorPicker.ValueSwatchProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
34
35
  ValueText: import("react").ForwardRefExoticComponent<Omit<ColorPicker.ValueTextProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
35
36
  View: import("react").ForwardRefExoticComponent<Omit<ColorPicker.ViewProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
36
- HiddenInput: import("react").ForwardRefExoticComponent<Omit<ColorPicker.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
37
37
  };
38
38
  //#endregion
39
- export { ColorPicker$1 as ColorPicker, parseColor };
39
+ export { ColorPicker$1 as ColorPicker, parseColor, useColorPicker, useColorPickerContext };
@@ -1,33 +1,37 @@
1
- import { CheckIcon, PipetteIcon } from "../../lib/moduix/icons/ui/Icons.js";
2
1
  import { normalizeClassName } from "../../lib/moduix/normalizeClassName.js";
2
+ import { CheckIcon, PipetteIcon } from "../../lib/moduix/icons/ui/Icons.js";
3
3
  import { OverlayPortal, OverlayPortalProvider } from "../../lib/moduix/overlayPortal.js";
4
4
  import ColorPicker_module_default from "./ColorPicker.module.js";
5
- import { jsx } from "react/jsx-runtime";
6
5
  import { clsx } from "clsx";
7
- import { forwardRef } from "react";
8
- import { ColorPicker, parseColor } from "@ark-ui/react/color-picker";
6
+ import { Children, cloneElement, forwardRef } from "react";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
+ import { ColorPicker, parseColor, useColorPicker, useColorPickerContext } from "@ark-ui/react/color-picker";
9
9
  //#region src/components/color-picker/ColorPicker.tsx
10
- const ColorPickerRoot = forwardRef(function ColorPickerRoot({ className, portalled, portalRef, ...props }, ref) {
10
+ const ColorPickerRoot = forwardRef(function ColorPickerRoot({ asChild, children, className, portalled, portalRef, ...props }, ref) {
11
11
  return /* @__PURE__ */ jsx(OverlayPortalProvider, {
12
12
  portalled,
13
13
  portalRef,
14
14
  children: /* @__PURE__ */ jsx(ColorPicker.Root, {
15
15
  ref,
16
+ asChild,
16
17
  "data-slot": "color-picker-root",
17
18
  className: clsx(ColorPicker_module_default.root, normalizeClassName(className)),
18
- ...props
19
+ ...props,
20
+ children: withHiddenInput(children, asChild)
19
21
  })
20
22
  });
21
23
  });
22
- const ColorPickerRootProvider = forwardRef(function ColorPickerRootProvider({ className, portalled, portalRef, ...props }, ref) {
24
+ const ColorPickerRootProvider = forwardRef(function ColorPickerRootProvider({ asChild, children, className, portalled, portalRef, ...props }, ref) {
23
25
  return /* @__PURE__ */ jsx(OverlayPortalProvider, {
24
26
  portalled,
25
27
  portalRef,
26
28
  children: /* @__PURE__ */ jsx(ColorPicker.RootProvider, {
27
29
  ref,
30
+ asChild,
28
31
  "data-slot": "color-picker-root-provider",
29
32
  className: clsx(ColorPicker_module_default.root, normalizeClassName(className)),
30
- ...props
33
+ ...props,
34
+ children: withHiddenInput(children, asChild)
31
35
  })
32
36
  });
33
37
  });
@@ -47,12 +51,19 @@ const ColorPickerControl = forwardRef(function ColorPickerControl({ className, .
47
51
  ...props
48
52
  });
49
53
  });
50
- const ColorPickerTrigger = forwardRef(function ColorPickerTrigger({ className, ...props }, ref) {
54
+ const ColorPickerTrigger = forwardRef(function ColorPickerTrigger({ className, children, ...props }, ref) {
51
55
  return /* @__PURE__ */ jsx(ColorPicker.Trigger, {
52
56
  ref,
53
57
  "data-slot": "color-picker-trigger",
54
58
  className: clsx(ColorPicker_module_default.trigger, normalizeClassName(className)),
55
- ...props
59
+ ...props,
60
+ children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ColorPicker.TransparencyGrid, {
61
+ "data-slot": "color-picker-transparency-grid",
62
+ className: ColorPicker_module_default.transparencyGrid
63
+ }), /* @__PURE__ */ jsx(ColorPicker.ValueSwatch, {
64
+ "data-slot": "color-picker-value-swatch",
65
+ className: ColorPicker_module_default.valueSwatch
66
+ })] })
56
67
  });
57
68
  });
58
69
  const ColorPickerPositioner = forwardRef(function ColorPickerPositioner({ className, ...props }, ref) {
@@ -71,12 +82,19 @@ const ColorPickerContent = forwardRef(function ColorPickerContent({ className, .
71
82
  ...props
72
83
  });
73
84
  });
74
- const ColorPickerArea = forwardRef(function ColorPickerArea({ className, ...props }, ref) {
85
+ const ColorPickerArea = forwardRef(function ColorPickerArea({ className, children, ...props }, ref) {
75
86
  return /* @__PURE__ */ jsx(ColorPicker.Area, {
76
87
  ref,
77
88
  "data-slot": "color-picker-area",
78
89
  className: clsx(ColorPicker_module_default.area, normalizeClassName(className)),
79
- ...props
90
+ ...props,
91
+ children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ColorPicker.AreaBackground, {
92
+ "data-slot": "color-picker-area-background",
93
+ className: ColorPicker_module_default.areaBackground
94
+ }), /* @__PURE__ */ jsx(ColorPicker.AreaThumb, {
95
+ "data-slot": "color-picker-area-thumb",
96
+ className: ColorPicker_module_default.thumb
97
+ })] })
80
98
  });
81
99
  });
82
100
  const ColorPickerAreaBackground = forwardRef(function ColorPickerAreaBackground({ className, ...props }, ref) {
@@ -95,12 +113,36 @@ const ColorPickerAreaThumb = forwardRef(function ColorPickerAreaThumb({ classNam
95
113
  ...props
96
114
  });
97
115
  });
98
- const ColorPickerChannelSlider = forwardRef(function ColorPickerChannelSlider({ className, ...props }, ref) {
116
+ const ColorPickerChannelSlider = forwardRef(function ColorPickerChannelSlider({ className, children, channel, ...props }, ref) {
99
117
  return /* @__PURE__ */ jsx(ColorPicker.ChannelSlider, {
100
118
  ref,
101
119
  "data-slot": "color-picker-channel-slider",
102
120
  className: clsx(ColorPicker_module_default.channelSlider, normalizeClassName(className)),
103
- ...props
121
+ channel,
122
+ ...props,
123
+ children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [
124
+ channel === "alpha" && /* @__PURE__ */ jsx(ColorPicker.TransparencyGrid, {
125
+ "data-slot": "color-picker-transparency-grid",
126
+ className: ColorPicker_module_default.transparencyGrid
127
+ }),
128
+ /* @__PURE__ */ jsx(ColorPicker.ChannelSliderTrack, {
129
+ "data-slot": "color-picker-channel-slider-track",
130
+ className: ColorPicker_module_default.channelSliderTrack
131
+ }),
132
+ /* @__PURE__ */ jsx(ColorPicker.ChannelSliderThumb, {
133
+ "data-slot": "color-picker-channel-slider-thumb",
134
+ className: ColorPicker_module_default.thumb
135
+ })
136
+ ] })
137
+ });
138
+ });
139
+ const ColorPickerSliders = forwardRef(function ColorPickerSliders({ className, ...props }, ref) {
140
+ return /* @__PURE__ */ jsxs("div", {
141
+ ref,
142
+ "data-slot": "color-picker-sliders",
143
+ className: clsx(ColorPicker_module_default.sliders, normalizeClassName(className)),
144
+ ...props,
145
+ children: [/* @__PURE__ */ jsx(ColorPickerChannelSlider, { channel: "hue" }), /* @__PURE__ */ jsx(ColorPickerChannelSlider, { channel: "alpha" })]
104
146
  });
105
147
  });
106
148
  const ColorPickerChannelSliderTrack = forwardRef(function ColorPickerChannelSliderTrack({ className, ...props }, ref) {
@@ -176,12 +218,23 @@ const ColorPickerSwatchGroup = forwardRef(function ColorPickerSwatchGroup({ clas
176
218
  ...props
177
219
  });
178
220
  });
179
- const ColorPickerSwatchTrigger = forwardRef(function ColorPickerSwatchTrigger({ className, ...props }, ref) {
221
+ const ColorPickerSwatchTrigger = forwardRef(function ColorPickerSwatchTrigger({ className, children, value, ...props }, ref) {
180
222
  return /* @__PURE__ */ jsx(ColorPicker.SwatchTrigger, {
181
223
  ref,
182
224
  "data-slot": "color-picker-swatch-trigger",
183
225
  className: clsx(ColorPicker_module_default.swatchTrigger, normalizeClassName(className)),
184
- ...props
226
+ value,
227
+ ...props,
228
+ children: children ?? /* @__PURE__ */ jsx(ColorPicker.Swatch, {
229
+ "data-slot": "color-picker-swatch",
230
+ className: ColorPicker_module_default.swatch,
231
+ value,
232
+ children: /* @__PURE__ */ jsx(ColorPicker.SwatchIndicator, {
233
+ "data-slot": "color-picker-swatch-indicator",
234
+ className: ColorPicker_module_default.swatchIndicator,
235
+ children: /* @__PURE__ */ jsx(CheckIcon, {})
236
+ })
237
+ })
185
238
  });
186
239
  });
187
240
  const ColorPickerSwatch = forwardRef(function ColorPickerSwatch({ className, ...props }, ref) {
@@ -233,14 +286,12 @@ const ColorPickerView = forwardRef(function ColorPickerView({ className, ...prop
233
286
  ...props
234
287
  });
235
288
  });
236
- const ColorPickerHiddenInput = forwardRef(function ColorPickerHiddenInput({ className, ...props }, ref) {
237
- return /* @__PURE__ */ jsx(ColorPicker.HiddenInput, {
238
- ref,
239
- "data-slot": "color-picker-hidden-input",
240
- className: normalizeClassName(className),
241
- ...props
242
- });
243
- });
289
+ function withHiddenInput(children, asChild) {
290
+ const hiddenInput = /* @__PURE__ */ jsx(ColorPicker.HiddenInput, { "data-slot": "color-picker-hidden-input" });
291
+ if (!asChild) return /* @__PURE__ */ jsxs(Fragment$1, { children: [children, hiddenInput] });
292
+ const child = Children.only(children);
293
+ return cloneElement(child, {}, child.props.children, hiddenInput);
294
+ }
244
295
  const ColorPicker$1 = Object.assign(ColorPickerRoot, {
245
296
  Root: ColorPickerRoot,
246
297
  RootProvider: ColorPickerRootProvider,
@@ -253,6 +304,7 @@ const ColorPicker$1 = Object.assign(ColorPickerRoot, {
253
304
  AreaBackground: ColorPickerAreaBackground,
254
305
  AreaThumb: ColorPickerAreaThumb,
255
306
  ChannelSlider: ColorPickerChannelSlider,
307
+ Sliders: ColorPickerSliders,
256
308
  ChannelSliderTrack: ColorPickerChannelSliderTrack,
257
309
  ChannelSliderThumb: ColorPickerChannelSliderThumb,
258
310
  ChannelSliderLabel: ColorPickerChannelSliderLabel,
@@ -268,8 +320,7 @@ const ColorPicker$1 = Object.assign(ColorPickerRoot, {
268
320
  TransparencyGrid: ColorPickerTransparencyGrid,
269
321
  ValueSwatch: ColorPickerValueSwatch,
270
322
  ValueText: ColorPickerValueText,
271
- View: ColorPickerView,
272
- HiddenInput: ColorPickerHiddenInput
323
+ View: ColorPickerView
273
324
  });
274
325
  //#endregion
275
- export { ColorPicker$1 as ColorPicker, parseColor };
326
+ export { ColorPicker$1 as ColorPicker, parseColor, useColorPicker, useColorPickerContext };
@@ -1,33 +1,34 @@
1
1
  import './ColorPicker.css';
2
2
  //#region src/components/color-picker/ColorPicker.module.css
3
3
  var ColorPicker_module_default = {
4
- "area": "GCUAhG_area",
5
- "areaBackground": "GCUAhG_areaBackground",
6
- "channelInput": "GCUAhG_channelInput",
7
- "channelSlider": "GCUAhG_channelSlider",
8
- "channelSliderLabel": "GCUAhG_channelSliderLabel",
9
- "channelSliderTrack": "GCUAhG_channelSliderTrack",
10
- "channelSliderValueText": "GCUAhG_channelSliderValueText",
11
- "color-picker-content-closed": "GCUAhG_color-picker-content-closed",
12
- "color-picker-content-open": "GCUAhG_color-picker-content-open",
13
- "content": "GCUAhG_content",
14
- "control": "GCUAhG_control",
15
- "eyeDropperTrigger": "GCUAhG_eyeDropperTrigger",
16
- "formatSelect": "GCUAhG_formatSelect",
17
- "formatTrigger": "GCUAhG_formatTrigger",
18
- "label": "GCUAhG_label",
19
- "positioner": "GCUAhG_positioner",
20
- "root": "GCUAhG_root",
21
- "swatch": "GCUAhG_swatch",
22
- "swatchGroup": "GCUAhG_swatchGroup",
23
- "swatchIndicator": "GCUAhG_swatchIndicator",
24
- "swatchTrigger": "GCUAhG_swatchTrigger",
25
- "thumb": "GCUAhG_thumb",
26
- "transparencyGrid": "GCUAhG_transparencyGrid",
27
- "trigger": "GCUAhG_trigger",
28
- "valueSwatch": "GCUAhG_valueSwatch",
29
- "valueText": "GCUAhG_valueText",
30
- "view": "GCUAhG_view"
4
+ "area": "kgcaIq_area",
5
+ "areaBackground": "kgcaIq_areaBackground",
6
+ "channelInput": "kgcaIq_channelInput",
7
+ "channelSlider": "kgcaIq_channelSlider",
8
+ "channelSliderLabel": "kgcaIq_channelSliderLabel",
9
+ "channelSliderTrack": "kgcaIq_channelSliderTrack",
10
+ "channelSliderValueText": "kgcaIq_channelSliderValueText",
11
+ "color-picker-content-closed": "kgcaIq_color-picker-content-closed",
12
+ "color-picker-content-open": "kgcaIq_color-picker-content-open",
13
+ "content": "kgcaIq_content",
14
+ "control": "kgcaIq_control",
15
+ "eyeDropperTrigger": "kgcaIq_eyeDropperTrigger",
16
+ "formatSelect": "kgcaIq_formatSelect",
17
+ "formatTrigger": "kgcaIq_formatTrigger",
18
+ "label": "kgcaIq_label",
19
+ "positioner": "kgcaIq_positioner",
20
+ "root": "kgcaIq_root",
21
+ "sliders": "kgcaIq_sliders",
22
+ "swatch": "kgcaIq_swatch",
23
+ "swatchGroup": "kgcaIq_swatchGroup",
24
+ "swatchIndicator": "kgcaIq_swatchIndicator",
25
+ "swatchTrigger": "kgcaIq_swatchTrigger",
26
+ "thumb": "kgcaIq_thumb",
27
+ "transparencyGrid": "kgcaIq_transparencyGrid",
28
+ "trigger": "kgcaIq_trigger",
29
+ "valueSwatch": "kgcaIq_valueSwatch",
30
+ "valueText": "kgcaIq_valueText",
31
+ "view": "kgcaIq_view"
31
32
  };
32
33
  //#endregion
33
34
  export { ColorPicker_module_default as default };
@@ -1,2 +1,2 @@
1
- import { ColorPicker, parseColor } from "./ColorPicker.js";
2
- export { ColorPicker, parseColor };
1
+ import { ColorPicker, parseColor, useColorPicker, useColorPickerContext } from "./ColorPicker.js";
2
+ export { ColorPicker, parseColor, useColorPicker, useColorPickerContext };