@konstructio/ui 0.0.12 → 0.0.13-alpha.2

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 (351) hide show
  1. package/dist/{Combination-Cmu9JRkv.js → Combination-b348x__d.js} +89 -89
  2. package/dist/Modal-i7eolhYH.js +926 -0
  3. package/dist/{chevron-up-CvquEaNg.js → chevron-up-DgLBQCKD.js} +1 -1
  4. package/dist/components/Alert/Alert.js +53 -0
  5. package/dist/components/Alert/Alert.variants.js +71 -0
  6. package/dist/components/AlertDialog/AlertDialog.js +60 -50
  7. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -6
  8. package/dist/components/AlertDialog/components/index.js +1 -1
  9. package/dist/components/Autocomplete/Autocomplete.js +74 -72
  10. package/dist/components/Autocomplete/Autocomplete.variants.js +11 -21
  11. package/dist/components/Autocomplete/components/List/List.js +28 -30
  12. package/dist/components/Autocomplete/components/List/List.variants.js +34 -40
  13. package/dist/components/Breadcrumb/Breadcrumb.js +67 -77
  14. package/dist/components/Breadcrumb/Breadcrumb.variants.js +22 -40
  15. package/dist/components/Breadcrumb/components/Item/Item.js +49 -0
  16. package/dist/components/Breadcrumb/components/Item/Item.variants.js +72 -0
  17. package/dist/components/Breadcrumb/components/index.js +4 -0
  18. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -3
  19. package/dist/components/Button/Button.js +34 -40
  20. package/dist/components/Button/Button.variants.js +138 -195
  21. package/dist/components/Card/Card.js +30 -37
  22. package/dist/components/Card/Card.variants.js +18 -53
  23. package/dist/components/Checkbox/Checkbox.js +70 -75
  24. package/dist/components/Checkbox/Checkbox.variants.js +11 -35
  25. package/dist/components/Command/Command.js +40 -0
  26. package/dist/components/Command/Command.variants.js +50 -0
  27. package/dist/components/Command/components/Command.js +8 -0
  28. package/dist/components/Command/components/CommandEmpty.js +15 -0
  29. package/dist/components/Command/components/CommandGroup.js +19 -0
  30. package/dist/components/Command/components/CommandInput.js +84 -0
  31. package/dist/components/Command/components/CommandItem.js +29 -0
  32. package/dist/components/Command/components/CommandList.js +16 -0
  33. package/dist/components/Command/components/CommandSeparator.js +16 -0
  34. package/dist/components/Command/components/CommandShortcut.js +19 -0
  35. package/dist/components/Command/components/DialogContent.js +31 -0
  36. package/dist/components/Command/components/DialogOverlay.js +19 -0
  37. package/dist/components/Command/components/index.js +20 -0
  38. package/dist/components/Command/contexts/Command.context.js +13 -0
  39. package/dist/components/Command/contexts/Command.provider.js +24 -0
  40. package/dist/components/Command/contexts/index.js +6 -0
  41. package/dist/components/Divider/Divider.js +11 -0
  42. package/dist/components/Divider/Divider.variants.js +17 -0
  43. package/dist/components/Dropdown/Dropdown.js +6 -8
  44. package/dist/components/Dropdown/Dropdown.variants.js +31 -38
  45. package/dist/components/Dropdown/components/List/List.js +18 -17
  46. package/dist/components/Dropdown/components/List/List.variants.js +22 -32
  47. package/dist/components/Dropdown/components/ListItem/ListItem.js +19 -19
  48. package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +18 -28
  49. package/dist/components/Dropdown/components/Wrapper.js +128 -94
  50. package/dist/components/Dropdown/contexts/dropdown.context.js +1 -1
  51. package/dist/components/Dropdown/contexts/dropdown.provider.js +12 -12
  52. package/dist/components/Dropdown/hooks/useDropdown.js +12 -14
  53. package/dist/components/Dropdown/hooks/useNavigationList.js +8 -10
  54. package/dist/components/Input/Input.js +112 -69
  55. package/dist/components/Input/Input.variants.js +10 -16
  56. package/dist/components/Loading/Loading.js +111 -0
  57. package/dist/components/Loading/Loading.variants.js +13 -0
  58. package/dist/components/Modal/Modal.js +4 -4
  59. package/dist/components/Modal/components/Body/Body.js +1 -1
  60. package/dist/components/Modal/components/Footer/Footer.js +2 -2
  61. package/dist/components/Modal/components/Header/Header.js +3 -3
  62. package/dist/components/Modal/components/Wrapper/Wrapper.js +5 -9
  63. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +32 -46
  64. package/dist/components/Modal/components/index.js +1 -1
  65. package/dist/components/Modal/contexts/Modal.provider.js +4 -4
  66. package/dist/components/NumberInput/NumberInput.js +93 -113
  67. package/dist/components/NumberInput/NumberInput.variants.js +30 -51
  68. package/dist/components/ProgressBar/ProgressBar.js +25 -32
  69. package/dist/components/ProgressBar/ProgressBar.variants.js +10 -31
  70. package/dist/components/Radio/Radio.js +47 -30
  71. package/dist/components/Radio/Radio.variants.js +61 -17
  72. package/dist/components/RadioCard/RadioCard.js +35 -0
  73. package/dist/components/RadioCard/RadioCard.variants.js +10 -0
  74. package/dist/components/RadioCardGroup/RadioCardGroup.js +46 -0
  75. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +15 -0
  76. package/dist/components/RadioGroup/RadioGroup.js +40 -31
  77. package/dist/components/RadioGroup/RadioGroup.variants.js +15 -0
  78. package/dist/components/Range/Range.js +31 -39
  79. package/dist/components/Range/Range.variants.js +21 -53
  80. package/dist/components/Sidebar/Sidebar.js +15 -18
  81. package/dist/components/Sidebar/Sidebar.variants.js +30 -55
  82. package/dist/components/Sidebar/components/Footer/Footer.js +5 -20
  83. package/dist/components/Sidebar/components/Footer/Footer.variants.js +9 -16
  84. package/dist/components/Sidebar/components/Logo/Logo.js +5 -18
  85. package/dist/components/Sidebar/components/Logo/Logo.variants.js +21 -43
  86. package/dist/components/Sidebar/components/Navigation/Navigation.js +15 -31
  87. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +3 -17
  88. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +23 -38
  89. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +3 -14
  90. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +24 -33
  91. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +13 -22
  92. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +7 -22
  93. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +6 -16
  94. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -25
  95. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +11 -20
  96. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +41 -42
  97. package/dist/components/Slider/Slider.js +26 -29
  98. package/dist/components/Slider/Slider.variants.js +22 -34
  99. package/dist/components/Switch/Switch.js +100 -105
  100. package/dist/components/Switch/Switch.variants.js +28 -53
  101. package/dist/components/Table/Table.js +27 -0
  102. package/dist/components/Table/Table.variants.js +39 -0
  103. package/dist/components/Table/components/Body.js +18 -0
  104. package/dist/components/Table/components/Filter.js +9 -0
  105. package/dist/components/Table/components/Head.js +18 -0
  106. package/dist/components/Table/components/Row.js +28 -0
  107. package/dist/components/Table/components/index.js +10 -0
  108. package/dist/components/Tag/Tag.js +17 -5
  109. package/dist/components/Tag/Tag.variants.js +11 -1
  110. package/dist/components/TagSelect/TagSelect.js +6 -73
  111. package/dist/components/TagSelect/TagSelect.variants.js +24 -77
  112. package/dist/components/TagSelect/components/Item/Item.js +21 -0
  113. package/dist/components/TagSelect/components/Item/Item.variants.js +32 -0
  114. package/dist/components/TagSelect/components/List/List.js +12 -0
  115. package/dist/components/TagSelect/components/List/List.variants.js +23 -0
  116. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +86 -0
  117. package/dist/components/TagSelect/components/index.js +8 -0
  118. package/dist/components/TagSelect/contexts/TagSelect.context.js +19 -0
  119. package/dist/components/TagSelect/contexts/TagSelect.hook.js +11 -0
  120. package/dist/components/TagSelect/contexts/TagSelect.provider.js +69 -0
  121. package/dist/components/TagSelect/contexts/index.js +6 -0
  122. package/dist/components/TagSelect/hooks/useTagSelect.js +22 -27
  123. package/dist/components/TextArea/TextArea.js +26 -25
  124. package/dist/components/TextArea/TextArea.variants.js +19 -32
  125. package/dist/components/Toast/Toast.js +177 -172
  126. package/dist/components/Toast/Toast.variants.js +42 -71
  127. package/dist/components/Tooltip/Tooltip.js +21 -29
  128. package/dist/components/Tooltip/Tooltip.variants.js +61 -62
  129. package/dist/components/Typography/Typography.js +35 -0
  130. package/dist/components/Typography/Typography.variants.js +57 -0
  131. package/dist/components/index.js +68 -52
  132. package/dist/contexts/theme.provider.js +84 -16
  133. package/dist/index-AM3avohj.js +133 -0
  134. package/dist/{index-z-AJyzdv.js → index-BOx5P4tS.js} +11 -11
  135. package/dist/index-Bk324h27.js +82 -0
  136. package/dist/{index-BxeV34ij.js → index-Bry5AFQ2.js} +1 -1
  137. package/dist/{index-D68N8v8R.js → index-C5psggHV.js} +17 -17
  138. package/dist/{index-BtibbG81.js → index-CWKdynYu.js} +1 -1
  139. package/dist/index-D9BbbgUq.js +47 -0
  140. package/dist/index-DvFiic6N.js +446 -0
  141. package/dist/{index-D4Q2rMby.js → index-G_6jG4Qc.js} +2 -2
  142. package/dist/{index-BedjZUuB.js → index-YaQrdkGE.js} +3 -3
  143. package/dist/{index-8vgf-x5i.js → index-bYyfdsls.js} +11 -11
  144. package/dist/index-dRxIWVBr.js +313 -0
  145. package/dist/index-g-TFwd6Y.js +422 -0
  146. package/dist/index.d.ts +591 -4
  147. package/dist/index.js +72 -58
  148. package/dist/package.json +44 -42
  149. package/dist/styles.css +1 -1
  150. package/dist/styles.js +1 -1
  151. package/dist/ui/kubefirst-theme.css +296 -0
  152. package/dist/ui/theme.css +6 -0
  153. package/dist/ui/utilities.css +165 -0
  154. package/dist/useBreadcrumb-BsIeMoR1.js +1279 -0
  155. package/dist/utils/index.js +671 -422
  156. package/dist/{x-CRBgmX1Q.js → x-DU-Zw-L_.js} +1 -1
  157. package/package.json +44 -42
  158. package/dist/AlertDialogTrigger-D4Tm_9M0.js +0 -553
  159. package/dist/Modal-L73dmnHv.js +0 -914
  160. package/dist/components/AlertDialog/AlertDialog.d.ts +0 -3
  161. package/dist/components/AlertDialog/AlertDialog.types.d.ts +0 -18
  162. package/dist/components/AlertDialog/AlertDialog.types.js +0 -1
  163. package/dist/components/AlertDialog/AlertDialog.variants.d.ts +0 -3
  164. package/dist/components/AlertDialog/AlertDialog.variants.js +0 -15
  165. package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +0 -3
  166. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +0 -6
  167. package/dist/components/AlertDialog/components/AlertDialogTrigger.types.js +0 -1
  168. package/dist/components/AlertDialog/components/index.d.ts +0 -1
  169. package/dist/components/AlertDialog/hooks/index.d.ts +0 -1
  170. package/dist/components/AlertDialog/hooks/useAlertDialog.d.ts +0 -7
  171. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -3
  172. package/dist/components/Autocomplete/Autocomplete.types.d.ts +0 -18
  173. package/dist/components/Autocomplete/Autocomplete.types.js +0 -1
  174. package/dist/components/Autocomplete/Autocomplete.variants.d.ts +0 -8
  175. package/dist/components/Autocomplete/components/List/List.d.ts +0 -3
  176. package/dist/components/Autocomplete/components/List/List.types.d.ts +0 -13
  177. package/dist/components/Autocomplete/components/List/List.types.js +0 -1
  178. package/dist/components/Autocomplete/components/List/List.variants.d.ts +0 -16
  179. package/dist/components/Autocomplete/components/index.d.ts +0 -1
  180. package/dist/components/Autocomplete/hooks/index.d.ts +0 -2
  181. package/dist/components/Autocomplete/hooks/useAutocomplete.d.ts +0 -17
  182. package/dist/components/Autocomplete/hooks/useNavigationList.d.ts +0 -10
  183. package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -3
  184. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -11
  185. package/dist/components/Breadcrumb/Breadcrumb.types.js +0 -1
  186. package/dist/components/Breadcrumb/Breadcrumb.variants.d.ts +0 -12
  187. package/dist/components/Breadcrumb/hooks/useBreadcrumb.d.ts +0 -3
  188. package/dist/components/Button/Button.d.ts +0 -4
  189. package/dist/components/Button/Button.types.d.ts +0 -7
  190. package/dist/components/Button/Button.types.js +0 -1
  191. package/dist/components/Button/Button.variants.d.ts +0 -7
  192. package/dist/components/Card/Card.d.ts +0 -4
  193. package/dist/components/Card/Card.types.d.ts +0 -8
  194. package/dist/components/Card/Card.types.js +0 -1
  195. package/dist/components/Card/Card.variants.d.ts +0 -10
  196. package/dist/components/Checkbox/Checkbox.d.ts +0 -3
  197. package/dist/components/Checkbox/Checkbox.types.d.ts +0 -14
  198. package/dist/components/Checkbox/Checkbox.types.js +0 -1
  199. package/dist/components/Checkbox/Checkbox.variants.d.ts +0 -9
  200. package/dist/components/Dropdown/Dropdown.d.ts +0 -3
  201. package/dist/components/Dropdown/Dropdown.types.d.ts +0 -16
  202. package/dist/components/Dropdown/Dropdown.types.js +0 -1
  203. package/dist/components/Dropdown/Dropdown.variants.d.ts +0 -3
  204. package/dist/components/Dropdown/components/EmptyList.d.ts +0 -2
  205. package/dist/components/Dropdown/components/List/List.d.ts +0 -3
  206. package/dist/components/Dropdown/components/List/List.types.d.ts +0 -6
  207. package/dist/components/Dropdown/components/List/List.types.js +0 -1
  208. package/dist/components/Dropdown/components/List/List.variants.d.ts +0 -3
  209. package/dist/components/Dropdown/components/ListItem/ListItem.d.ts +0 -3
  210. package/dist/components/Dropdown/components/ListItem/ListItem.types.d.ts +0 -4
  211. package/dist/components/Dropdown/components/ListItem/ListItem.types.js +0 -1
  212. package/dist/components/Dropdown/components/ListItem/ListItem.variants.d.ts +0 -3
  213. package/dist/components/Dropdown/components/Wrapper.d.ts +0 -3
  214. package/dist/components/Dropdown/components/index.d.ts +0 -3
  215. package/dist/components/Dropdown/contexts/dropdown.context.d.ts +0 -8
  216. package/dist/components/Dropdown/contexts/dropdown.hook.d.ts +0 -2
  217. package/dist/components/Dropdown/contexts/dropdown.provider.d.ts +0 -5
  218. package/dist/components/Dropdown/contexts/index.d.ts +0 -2
  219. package/dist/components/Dropdown/hooks/useDropdown.d.ts +0 -11
  220. package/dist/components/Dropdown/hooks/useNavigationList.d.ts +0 -8
  221. package/dist/components/Input/Input.d.ts +0 -3
  222. package/dist/components/Input/Input.types.d.ts +0 -9
  223. package/dist/components/Input/Input.types.js +0 -1
  224. package/dist/components/Input/Input.variants.d.ts +0 -4
  225. package/dist/components/Modal/Modal.d.ts +0 -8
  226. package/dist/components/Modal/Modal.types.d.ts +0 -12
  227. package/dist/components/Modal/Modal.types.js +0 -1
  228. package/dist/components/Modal/components/Body/Body.d.ts +0 -3
  229. package/dist/components/Modal/components/Body/Body.types.d.ts +0 -5
  230. package/dist/components/Modal/components/Body/Body.types.js +0 -1
  231. package/dist/components/Modal/components/Footer/Footer.d.ts +0 -3
  232. package/dist/components/Modal/components/Footer/Footer.types.d.ts +0 -5
  233. package/dist/components/Modal/components/Footer/Footer.types.js +0 -1
  234. package/dist/components/Modal/components/Header/Header.d.ts +0 -3
  235. package/dist/components/Modal/components/Header/Header.types.d.ts +0 -5
  236. package/dist/components/Modal/components/Header/Header.types.js +0 -1
  237. package/dist/components/Modal/components/Wrapper/Wrapper.d.ts +0 -3
  238. package/dist/components/Modal/components/Wrapper/Wrapper.types.d.ts +0 -7
  239. package/dist/components/Modal/components/Wrapper/Wrapper.types.js +0 -1
  240. package/dist/components/Modal/components/Wrapper/Wrapper.variants.d.ts +0 -6
  241. package/dist/components/Modal/components/index.d.ts +0 -4
  242. package/dist/components/Modal/contexts/Modal.context.d.ts +0 -2
  243. package/dist/components/Modal/contexts/Modal.provider.d.ts +0 -4
  244. package/dist/components/Modal/contexts/Modal.types.d.ts +0 -9
  245. package/dist/components/Modal/contexts/Modal.types.js +0 -1
  246. package/dist/components/Modal/contexts/index.d.ts +0 -1
  247. package/dist/components/Modal/hooks/index.d.ts +0 -1
  248. package/dist/components/Modal/hooks/useModal.d.ts +0 -9
  249. package/dist/components/NumberInput/NumberInput.d.ts +0 -3
  250. package/dist/components/NumberInput/NumberInput.types.d.ts +0 -11
  251. package/dist/components/NumberInput/NumberInput.types.js +0 -1
  252. package/dist/components/NumberInput/NumberInput.variants.d.ts +0 -11
  253. package/dist/components/ProgressBar/ProgressBar.d.ts +0 -3
  254. package/dist/components/ProgressBar/ProgressBar.types.d.ts +0 -8
  255. package/dist/components/ProgressBar/ProgressBar.types.js +0 -1
  256. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +0 -7
  257. package/dist/components/Radio/Radio.d.ts +0 -3
  258. package/dist/components/Radio/Radio.types.d.ts +0 -12
  259. package/dist/components/Radio/Radio.types.js +0 -1
  260. package/dist/components/Radio/Radio.variants.d.ts +0 -3
  261. package/dist/components/RadioGroup/RadioGroup.d.ts +0 -3
  262. package/dist/components/RadioGroup/RadioGroup.types.d.ts +0 -12
  263. package/dist/components/RadioGroup/RadioGroup.types.js +0 -1
  264. package/dist/components/Range/Range.d.ts +0 -3
  265. package/dist/components/Range/Range.types.d.ts +0 -13
  266. package/dist/components/Range/Range.types.js +0 -1
  267. package/dist/components/Range/Range.variants.d.ts +0 -14
  268. package/dist/components/Sidebar/Sidebar.d.ts +0 -5
  269. package/dist/components/Sidebar/Sidebar.types.d.ts +0 -18
  270. package/dist/components/Sidebar/Sidebar.types.js +0 -1
  271. package/dist/components/Sidebar/Sidebar.variants.d.ts +0 -6
  272. package/dist/components/Sidebar/components/Footer/Footer.d.ts +0 -3
  273. package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +0 -6
  274. package/dist/components/Sidebar/components/Footer/Footer.types.js +0 -1
  275. package/dist/components/Sidebar/components/Footer/Footer.variants.d.ts +0 -3
  276. package/dist/components/Sidebar/components/Logo/Logo.d.ts +0 -3
  277. package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +0 -6
  278. package/dist/components/Sidebar/components/Logo/Logo.types.js +0 -1
  279. package/dist/components/Sidebar/components/Logo/Logo.variants.d.ts +0 -3
  280. package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +0 -4
  281. package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +0 -16
  282. package/dist/components/Sidebar/components/Navigation/Navigation.types.js +0 -1
  283. package/dist/components/Sidebar/components/Navigation/Navigation.variants.d.ts +0 -3
  284. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +0 -3
  285. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +0 -7
  286. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.js +0 -1
  287. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +0 -3
  288. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +0 -3
  289. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +0 -17
  290. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.js +0 -1
  291. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +0 -4
  292. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +0 -3
  293. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +0 -5
  294. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.js +0 -1
  295. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +0 -3
  296. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +0 -3
  297. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +0 -8
  298. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.js +0 -1
  299. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +0 -3
  300. package/dist/components/Sidebar/components/Wrapper/Wrapper.d.ts +0 -3
  301. package/dist/components/Sidebar/components/index.d.ts +0 -15
  302. package/dist/components/Slider/Slider.d.ts +0 -3
  303. package/dist/components/Slider/Slider.types.d.ts +0 -13
  304. package/dist/components/Slider/Slider.types.js +0 -1
  305. package/dist/components/Slider/Slider.variants.d.ts +0 -11
  306. package/dist/components/Switch/Switch.d.ts +0 -3
  307. package/dist/components/Switch/Switch.types.d.ts +0 -10
  308. package/dist/components/Switch/Switch.types.js +0 -1
  309. package/dist/components/Switch/Switch.variants.d.ts +0 -6
  310. package/dist/components/Tag/Tag.d.ts +0 -3
  311. package/dist/components/Tag/Tag.types.d.ts +0 -4
  312. package/dist/components/Tag/Tag.types.js +0 -1
  313. package/dist/components/Tag/Tag.variants.d.ts +0 -3
  314. package/dist/components/TagSelect/TagSelect.d.ts +0 -3
  315. package/dist/components/TagSelect/TagSelect.types.d.ts +0 -9
  316. package/dist/components/TagSelect/TagSelect.types.js +0 -1
  317. package/dist/components/TagSelect/TagSelect.variants.d.ts +0 -9
  318. package/dist/components/TagSelect/hooks/useTagSelect.d.ts +0 -9
  319. package/dist/components/TextArea/TextArea.d.ts +0 -3
  320. package/dist/components/TextArea/TextArea.types.d.ts +0 -10
  321. package/dist/components/TextArea/TextArea.types.js +0 -1
  322. package/dist/components/TextArea/TextArea.variants.d.ts +0 -3
  323. package/dist/components/Toast/Toast.d.ts +0 -3
  324. package/dist/components/Toast/Toast.types.d.ts +0 -12
  325. package/dist/components/Toast/Toast.types.js +0 -1
  326. package/dist/components/Toast/Toast.variants.d.ts +0 -9
  327. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  328. package/dist/components/Tooltip/Tooltip.types.d.ts +0 -8
  329. package/dist/components/Tooltip/Tooltip.types.js +0 -1
  330. package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -8
  331. package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
  332. package/dist/components/index.d.ts +0 -21
  333. package/dist/contexts/index.d.ts +0 -3
  334. package/dist/contexts/theme.context.d.ts +0 -6
  335. package/dist/contexts/theme.hook.d.ts +0 -7
  336. package/dist/contexts/theme.provider.d.ts +0 -6
  337. package/dist/hooks/index.d.ts +0 -1
  338. package/dist/hooks/useToggle.d.ts +0 -1
  339. package/dist/index-BBjak_0p.js +0 -47
  340. package/dist/index-BaNV0qac.js +0 -19164
  341. package/dist/index-DoOsnuB6.js +0 -72
  342. package/dist/js.cookie-OLEfuq_g.js +0 -74
  343. package/dist/plugins/index.d.ts +0 -1
  344. package/dist/plugins/index.js +0 -4
  345. package/dist/plugins/konstruct.d.ts +0 -4
  346. package/dist/plugins/konstruct.js +0 -115
  347. package/dist/plugins/utils/colors.d.ts +0 -328
  348. package/dist/plugins/utils/colors.js +0 -331
  349. package/dist/useBreadcrumb-DxYsZvj_.js +0 -1398
  350. package/dist/utils/index.d.ts +0 -4
  351. /package/dist/{styles.d.ts → domain/theme.js} +0 -0
@@ -0,0 +1,446 @@
1
+ import * as i from "react";
2
+ import { u as Ee, d as j, a as he, c as ye, b as _, e as De } from "./index-bYyfdsls.js";
3
+ import { u as S, c as be } from "./index-Bk324h27.js";
4
+ import { P as Ce, D as Re } from "./index-YaQrdkGE.js";
5
+ import { P as N } from "./index-g-TFwd6Y.js";
6
+ import { jsx as f, jsxs as q, Fragment as B } from "react/jsx-runtime";
7
+ import { P as W } from "./index-G_6jG4Qc.js";
8
+ import { R as Ae } from "./Combination-b348x__d.js";
9
+ var Ne = i[" useId ".trim().toString()] || (() => {
10
+ }), Oe = 0;
11
+ function M(e) {
12
+ const [n, t] = i.useState(Ne());
13
+ return Ee(() => {
14
+ t((o) => o ?? String(Oe++));
15
+ }, [e]), n ? `radix-${n}` : "";
16
+ }
17
+ var x = "focusScope.autoFocusOnMount", w = "focusScope.autoFocusOnUnmount", V = { bubbles: !1, cancelable: !0 }, _e = "FocusScope", Q = i.forwardRef((e, n) => {
18
+ const {
19
+ loop: t = !1,
20
+ trapped: o = !1,
21
+ onMountAutoFocus: a,
22
+ onUnmountAutoFocus: r,
23
+ ...c
24
+ } = e, [s, g] = i.useState(null), m = j(a), h = j(r), u = i.useRef(null), d = S(n, (l) => g(l)), p = i.useRef({
25
+ paused: !1,
26
+ pause() {
27
+ this.paused = !0;
28
+ },
29
+ resume() {
30
+ this.paused = !1;
31
+ }
32
+ }).current;
33
+ i.useEffect(() => {
34
+ if (o) {
35
+ let l = function(D) {
36
+ if (p.paused || !s) return;
37
+ const y = D.target;
38
+ s.contains(y) ? u.current = y : C(u.current, { select: !0 });
39
+ }, b = function(D) {
40
+ if (p.paused || !s) return;
41
+ const y = D.relatedTarget;
42
+ y !== null && (s.contains(y) || C(u.current, { select: !0 }));
43
+ }, v = function(D) {
44
+ if (document.activeElement === document.body)
45
+ for (const H of D)
46
+ H.removedNodes.length > 0 && C(s);
47
+ };
48
+ document.addEventListener("focusin", l), document.addEventListener("focusout", b);
49
+ const O = new MutationObserver(v);
50
+ return s && O.observe(s, { childList: !0, subtree: !0 }), () => {
51
+ document.removeEventListener("focusin", l), document.removeEventListener("focusout", b), O.disconnect();
52
+ };
53
+ }
54
+ }, [o, s, p.paused]), i.useEffect(() => {
55
+ if (s) {
56
+ Z.add(p);
57
+ const l = document.activeElement;
58
+ if (!s.contains(l)) {
59
+ const v = new CustomEvent(x, V);
60
+ s.addEventListener(x, m), s.dispatchEvent(v), v.defaultPrevented || (Ie(Me(X(s)), { select: !0 }), document.activeElement === l && C(s));
61
+ }
62
+ return () => {
63
+ s.removeEventListener(x, m), setTimeout(() => {
64
+ const v = new CustomEvent(w, V);
65
+ s.addEventListener(w, h), s.dispatchEvent(v), v.defaultPrevented || C(l ?? document.body, { select: !0 }), s.removeEventListener(w, h), Z.remove(p);
66
+ }, 0);
67
+ };
68
+ }
69
+ }, [s, m, h, p]);
70
+ const I = i.useCallback(
71
+ (l) => {
72
+ if (!t && !o || p.paused) return;
73
+ const b = l.key === "Tab" && !l.altKey && !l.ctrlKey && !l.metaKey, v = document.activeElement;
74
+ if (b && v) {
75
+ const O = l.currentTarget, [D, y] = Pe(O);
76
+ D && y ? !l.shiftKey && v === y ? (l.preventDefault(), t && C(D, { select: !0 })) : l.shiftKey && v === D && (l.preventDefault(), t && C(y, { select: !0 })) : v === O && l.preventDefault();
77
+ }
78
+ },
79
+ [t, o, p.paused]
80
+ );
81
+ return /* @__PURE__ */ f(N.div, { tabIndex: -1, ...c, ref: d, onKeyDown: I });
82
+ });
83
+ Q.displayName = _e;
84
+ function Ie(e, { select: n = !1 } = {}) {
85
+ const t = document.activeElement;
86
+ for (const o of e)
87
+ if (C(o, { select: n }), document.activeElement !== t) return;
88
+ }
89
+ function Pe(e) {
90
+ const n = X(e), t = Y(n, e), o = Y(n.reverse(), e);
91
+ return [t, o];
92
+ }
93
+ function X(e) {
94
+ const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
95
+ acceptNode: (o) => {
96
+ const a = o.tagName === "INPUT" && o.type === "hidden";
97
+ return o.disabled || o.hidden || a ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
98
+ }
99
+ });
100
+ for (; t.nextNode(); ) n.push(t.currentNode);
101
+ return n;
102
+ }
103
+ function Y(e, n) {
104
+ for (const t of e)
105
+ if (!Te(t, { upTo: n })) return t;
106
+ }
107
+ function Te(e, { upTo: n }) {
108
+ if (getComputedStyle(e).visibility === "hidden") return !0;
109
+ for (; e; ) {
110
+ if (n !== void 0 && e === n) return !1;
111
+ if (getComputedStyle(e).display === "none") return !0;
112
+ e = e.parentElement;
113
+ }
114
+ return !1;
115
+ }
116
+ function Fe(e) {
117
+ return e instanceof HTMLInputElement && "select" in e;
118
+ }
119
+ function C(e, { select: n = !1 } = {}) {
120
+ if (e && e.focus) {
121
+ const t = document.activeElement;
122
+ e.focus({ preventScroll: !0 }), e !== t && Fe(e) && n && e.select();
123
+ }
124
+ }
125
+ var Z = Se();
126
+ function Se() {
127
+ let e = [];
128
+ return {
129
+ add(n) {
130
+ const t = e[0];
131
+ n !== t && (t == null || t.pause()), e = z(e, n), e.unshift(n);
132
+ },
133
+ remove(n) {
134
+ var t;
135
+ e = z(e, n), (t = e[0]) == null || t.resume();
136
+ }
137
+ };
138
+ }
139
+ function z(e, n) {
140
+ const t = [...e], o = t.indexOf(n);
141
+ return o !== -1 && t.splice(o, 1), t;
142
+ }
143
+ function Me(e) {
144
+ return e.filter((n) => n.tagName !== "A");
145
+ }
146
+ var L = 0;
147
+ function xe() {
148
+ i.useEffect(() => {
149
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
150
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? J()), document.body.insertAdjacentElement("beforeend", e[1] ?? J()), L++, () => {
151
+ L === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((n) => n.remove()), L--;
152
+ };
153
+ }, []);
154
+ }
155
+ function J() {
156
+ const e = document.createElement("span");
157
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
158
+ }
159
+ var we = function(e) {
160
+ if (typeof document > "u")
161
+ return null;
162
+ var n = Array.isArray(e) ? e[0] : e;
163
+ return n.ownerDocument.body;
164
+ }, A = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), T = {}, k = 0, ee = function(e) {
165
+ return e && (e.host || ee(e.parentNode));
166
+ }, Le = function(e, n) {
167
+ return n.map(function(t) {
168
+ if (e.contains(t))
169
+ return t;
170
+ var o = ee(t);
171
+ return o && e.contains(o) ? o : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
172
+ }).filter(function(t) {
173
+ return !!t;
174
+ });
175
+ }, ke = function(e, n, t, o) {
176
+ var a = Le(n, Array.isArray(e) ? e : [e]);
177
+ T[t] || (T[t] = /* @__PURE__ */ new WeakMap());
178
+ var r = T[t], c = [], s = /* @__PURE__ */ new Set(), g = new Set(a), m = function(u) {
179
+ !u || s.has(u) || (s.add(u), m(u.parentNode));
180
+ };
181
+ a.forEach(m);
182
+ var h = function(u) {
183
+ !u || g.has(u) || Array.prototype.forEach.call(u.children, function(d) {
184
+ if (s.has(d))
185
+ h(d);
186
+ else
187
+ try {
188
+ var p = d.getAttribute(o), I = p !== null && p !== "false", l = (A.get(d) || 0) + 1, b = (r.get(d) || 0) + 1;
189
+ A.set(d, l), r.set(d, b), c.push(d), l === 1 && I && P.set(d, !0), b === 1 && d.setAttribute(t, "true"), I || d.setAttribute(o, "true");
190
+ } catch (v) {
191
+ console.error("aria-hidden: cannot operate on ", d, v);
192
+ }
193
+ });
194
+ };
195
+ return h(n), s.clear(), k++, function() {
196
+ c.forEach(function(u) {
197
+ var d = A.get(u) - 1, p = r.get(u) - 1;
198
+ A.set(u, d), r.set(u, p), d || (P.has(u) || u.removeAttribute(o), P.delete(u)), p || u.removeAttribute(t);
199
+ }), k--, k || (A = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), T = {});
200
+ };
201
+ }, We = function(e, n, t) {
202
+ t === void 0 && (t = "data-aria-hidden");
203
+ var o = Array.from(Array.isArray(e) ? e : [e]), a = we(e);
204
+ return a ? (o.push.apply(o, Array.from(a.querySelectorAll("[aria-live]"))), ke(o, a, t, "aria-hidden")) : function() {
205
+ return null;
206
+ };
207
+ }, U = "Dialog", [te, tt] = ye(U), [Ue, E] = te(U), ne = (e) => {
208
+ const {
209
+ __scopeDialog: n,
210
+ children: t,
211
+ open: o,
212
+ defaultOpen: a,
213
+ onOpenChange: r,
214
+ modal: c = !0
215
+ } = e, s = i.useRef(null), g = i.useRef(null), [m = !1, h] = he({
216
+ prop: o,
217
+ defaultProp: a,
218
+ onChange: r
219
+ });
220
+ return /* @__PURE__ */ f(
221
+ Ue,
222
+ {
223
+ scope: n,
224
+ triggerRef: s,
225
+ contentRef: g,
226
+ contentId: M(),
227
+ titleId: M(),
228
+ descriptionId: M(),
229
+ open: m,
230
+ onOpenChange: h,
231
+ onOpenToggle: i.useCallback(() => h((u) => !u), [h]),
232
+ modal: c,
233
+ children: t
234
+ }
235
+ );
236
+ };
237
+ ne.displayName = U;
238
+ var oe = "DialogTrigger", re = i.forwardRef(
239
+ (e, n) => {
240
+ const { __scopeDialog: t, ...o } = e, a = E(oe, t), r = S(n, a.triggerRef);
241
+ return /* @__PURE__ */ f(
242
+ N.button,
243
+ {
244
+ type: "button",
245
+ "aria-haspopup": "dialog",
246
+ "aria-expanded": a.open,
247
+ "aria-controls": a.contentId,
248
+ "data-state": $(a.open),
249
+ ...o,
250
+ ref: r,
251
+ onClick: _(e.onClick, a.onOpenToggle)
252
+ }
253
+ );
254
+ }
255
+ );
256
+ re.displayName = oe;
257
+ var K = "DialogPortal", [Ke, ae] = te(K, {
258
+ forceMount: void 0
259
+ }), se = (e) => {
260
+ const { __scopeDialog: n, forceMount: t, children: o, container: a } = e, r = E(K, n);
261
+ return /* @__PURE__ */ f(Ke, { scope: n, forceMount: t, children: i.Children.map(o, (c) => /* @__PURE__ */ f(W, { present: t || r.open, children: /* @__PURE__ */ f(Ce, { asChild: !0, container: a, children: c }) })) });
262
+ };
263
+ se.displayName = K;
264
+ var F = "DialogOverlay", ie = i.forwardRef(
265
+ (e, n) => {
266
+ const t = ae(F, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = E(F, e.__scopeDialog);
267
+ return r.modal ? /* @__PURE__ */ f(W, { present: o || r.open, children: /* @__PURE__ */ f($e, { ...a, ref: n }) }) : null;
268
+ }
269
+ );
270
+ ie.displayName = F;
271
+ var Ge = be("DialogOverlay.RemoveScroll"), $e = i.forwardRef(
272
+ (e, n) => {
273
+ const { __scopeDialog: t, ...o } = e, a = E(F, t);
274
+ return (
275
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
276
+ // ie. when `Overlay` and `Content` are siblings
277
+ /* @__PURE__ */ f(Ae, { as: Ge, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ f(
278
+ N.div,
279
+ {
280
+ "data-state": $(a.open),
281
+ ...o,
282
+ ref: n,
283
+ style: { pointerEvents: "auto", ...o.style }
284
+ }
285
+ ) })
286
+ );
287
+ }
288
+ ), R = "DialogContent", ce = i.forwardRef(
289
+ (e, n) => {
290
+ const t = ae(R, e.__scopeDialog), { forceMount: o = t.forceMount, ...a } = e, r = E(R, e.__scopeDialog);
291
+ return /* @__PURE__ */ f(W, { present: o || r.open, children: r.modal ? /* @__PURE__ */ f(He, { ...a, ref: n }) : /* @__PURE__ */ f(je, { ...a, ref: n }) });
292
+ }
293
+ );
294
+ ce.displayName = R;
295
+ var He = i.forwardRef(
296
+ (e, n) => {
297
+ const t = E(R, e.__scopeDialog), o = i.useRef(null), a = S(n, t.contentRef, o);
298
+ return i.useEffect(() => {
299
+ const r = o.current;
300
+ if (r) return We(r);
301
+ }, []), /* @__PURE__ */ f(
302
+ ue,
303
+ {
304
+ ...e,
305
+ ref: a,
306
+ trapFocus: t.open,
307
+ disableOutsidePointerEvents: !0,
308
+ onCloseAutoFocus: _(e.onCloseAutoFocus, (r) => {
309
+ var c;
310
+ r.preventDefault(), (c = t.triggerRef.current) == null || c.focus();
311
+ }),
312
+ onPointerDownOutside: _(e.onPointerDownOutside, (r) => {
313
+ const c = r.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
314
+ (c.button === 2 || s) && r.preventDefault();
315
+ }),
316
+ onFocusOutside: _(
317
+ e.onFocusOutside,
318
+ (r) => r.preventDefault()
319
+ )
320
+ }
321
+ );
322
+ }
323
+ ), je = i.forwardRef(
324
+ (e, n) => {
325
+ const t = E(R, e.__scopeDialog), o = i.useRef(!1), a = i.useRef(!1);
326
+ return /* @__PURE__ */ f(
327
+ ue,
328
+ {
329
+ ...e,
330
+ ref: n,
331
+ trapFocus: !1,
332
+ disableOutsidePointerEvents: !1,
333
+ onCloseAutoFocus: (r) => {
334
+ var c, s;
335
+ (c = e.onCloseAutoFocus) == null || c.call(e, r), r.defaultPrevented || (o.current || (s = t.triggerRef.current) == null || s.focus(), r.preventDefault()), o.current = !1, a.current = !1;
336
+ },
337
+ onInteractOutside: (r) => {
338
+ var g, m;
339
+ (g = e.onInteractOutside) == null || g.call(e, r), r.defaultPrevented || (o.current = !0, r.detail.originalEvent.type === "pointerdown" && (a.current = !0));
340
+ const c = r.target;
341
+ ((m = t.triggerRef.current) == null ? void 0 : m.contains(c)) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && a.current && r.preventDefault();
342
+ }
343
+ }
344
+ );
345
+ }
346
+ ), ue = i.forwardRef(
347
+ (e, n) => {
348
+ const { __scopeDialog: t, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: r, ...c } = e, s = E(R, t), g = i.useRef(null), m = S(n, g);
349
+ return xe(), /* @__PURE__ */ q(B, { children: [
350
+ /* @__PURE__ */ f(
351
+ Q,
352
+ {
353
+ asChild: !0,
354
+ loop: !0,
355
+ trapped: o,
356
+ onMountAutoFocus: a,
357
+ onUnmountAutoFocus: r,
358
+ children: /* @__PURE__ */ f(
359
+ Re,
360
+ {
361
+ role: "dialog",
362
+ id: s.contentId,
363
+ "aria-describedby": s.descriptionId,
364
+ "aria-labelledby": s.titleId,
365
+ "data-state": $(s.open),
366
+ ...c,
367
+ ref: m,
368
+ onDismiss: () => s.onOpenChange(!1)
369
+ }
370
+ )
371
+ }
372
+ ),
373
+ /* @__PURE__ */ q(B, { children: [
374
+ /* @__PURE__ */ f(qe, { titleId: s.titleId }),
375
+ /* @__PURE__ */ f(Ve, { contentRef: g, descriptionId: s.descriptionId })
376
+ ] })
377
+ ] });
378
+ }
379
+ ), G = "DialogTitle", le = i.forwardRef(
380
+ (e, n) => {
381
+ const { __scopeDialog: t, ...o } = e, a = E(G, t);
382
+ return /* @__PURE__ */ f(N.h2, { id: a.titleId, ...o, ref: n });
383
+ }
384
+ );
385
+ le.displayName = G;
386
+ var fe = "DialogDescription", de = i.forwardRef(
387
+ (e, n) => {
388
+ const { __scopeDialog: t, ...o } = e, a = E(fe, t);
389
+ return /* @__PURE__ */ f(N.p, { id: a.descriptionId, ...o, ref: n });
390
+ }
391
+ );
392
+ de.displayName = fe;
393
+ var pe = "DialogClose", ve = i.forwardRef(
394
+ (e, n) => {
395
+ const { __scopeDialog: t, ...o } = e, a = E(pe, t);
396
+ return /* @__PURE__ */ f(
397
+ N.button,
398
+ {
399
+ type: "button",
400
+ ...o,
401
+ ref: n,
402
+ onClick: _(e.onClick, () => a.onOpenChange(!1))
403
+ }
404
+ );
405
+ }
406
+ );
407
+ ve.displayName = pe;
408
+ function $(e) {
409
+ return e ? "open" : "closed";
410
+ }
411
+ var me = "DialogTitleWarning", [nt, ge] = De(me, {
412
+ contentName: R,
413
+ titleName: G,
414
+ docsSlug: "dialog"
415
+ }), qe = ({ titleId: e }) => {
416
+ const n = ge(me), t = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
417
+
418
+ If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
419
+
420
+ For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;
421
+ return i.useEffect(() => {
422
+ e && (document.getElementById(e) || console.error(t));
423
+ }, [t, e]), null;
424
+ }, Be = "DialogDescriptionWarning", Ve = ({ contentRef: e, descriptionId: n }) => {
425
+ const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ge(Be).contentName}}.`;
426
+ return i.useEffect(() => {
427
+ var r;
428
+ const a = (r = e.current) == null ? void 0 : r.getAttribute("aria-describedby");
429
+ n && a && (document.getElementById(n) || console.warn(o));
430
+ }, [o, e, n]), null;
431
+ }, ot = ne, rt = re, at = se, st = ie, it = ce, ct = le, ut = de, lt = ve;
432
+ export {
433
+ it as C,
434
+ le as D,
435
+ st as O,
436
+ at as P,
437
+ ot as R,
438
+ ct as T,
439
+ nt as W,
440
+ se as a,
441
+ lt as b,
442
+ tt as c,
443
+ ut as d,
444
+ rt as e,
445
+ M as u
446
+ };
@@ -1,6 +1,6 @@
1
1
  import * as a from "react";
2
- import { u as T } from "./index-DoOsnuB6.js";
3
- import { u as A } from "./index-8vgf-x5i.js";
2
+ import { u as T } from "./index-Bk324h27.js";
3
+ import { u as A } from "./index-bYyfdsls.js";
4
4
  function E(n, e) {
5
5
  return a.useReducer((r, t) => e[r][t] ?? r, n);
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import * as i from "react";
2
- import { b, d as h, u as U } from "./index-8vgf-x5i.js";
3
- import { P as m, d as z, R as H } from "./index-BaNV0qac.js";
4
- import { u as T } from "./index-DoOsnuB6.js";
2
+ import { d as b, b as h, u as U } from "./index-bYyfdsls.js";
3
+ import { P as m, d as z, R as H } from "./index-g-TFwd6Y.js";
4
+ import { u as T } from "./index-Bk324h27.js";
5
5
  import { jsx as P } from "react/jsx-runtime";
6
6
  function K(r, e = globalThis == null ? void 0 : globalThis.document) {
7
7
  const s = b(r);
@@ -19,18 +19,18 @@ function y(t, e = []) {
19
19
  function s(c, r) {
20
20
  const i = u.createContext(r), f = n.length;
21
21
  n = [...n, r];
22
- const a = (l) => {
22
+ const a = (d) => {
23
23
  var S;
24
- const { scope: d, children: h, ...x } = l, m = ((S = d == null ? void 0 : d[t]) == null ? void 0 : S[f]) || i, p = u.useMemo(() => x, Object.values(x));
24
+ const { scope: l, children: h, ...x } = d, m = ((S = l == null ? void 0 : l[t]) == null ? void 0 : S[f]) || i, p = u.useMemo(() => x, Object.values(x));
25
25
  return /* @__PURE__ */ v(m.Provider, { value: p, children: h });
26
26
  };
27
27
  a.displayName = c + "Provider";
28
- function C(l, d) {
28
+ function C(d, l) {
29
29
  var m;
30
- const h = ((m = d == null ? void 0 : d[t]) == null ? void 0 : m[f]) || i, x = u.useContext(h);
30
+ const h = ((m = l == null ? void 0 : l[t]) == null ? void 0 : m[f]) || i, x = u.useContext(h);
31
31
  if (x) return x;
32
32
  if (r !== void 0) return r;
33
- throw new Error(`\`${l}\` must be used within \`${c}\``);
33
+ throw new Error(`\`${d}\` must be used within \`${c}\``);
34
34
  }
35
35
  return [a, C];
36
36
  }
@@ -56,8 +56,8 @@ function b(...t) {
56
56
  }));
57
57
  return function(c) {
58
58
  const r = s.reduce((i, { useScope: f, scopeName: a }) => {
59
- const l = f(c)[`__scope${a}`];
60
- return { ...i, ...l };
59
+ const d = f(c)[`__scope${a}`];
60
+ return { ...i, ...d };
61
61
  }, {});
62
62
  return u.useMemo(() => ({ [`__scope${e.scopeName}`]: r }), [r]);
63
63
  };
@@ -90,8 +90,8 @@ function j({
90
90
  const [s, o] = $({ defaultProp: e, onChange: n }), c = t !== void 0, r = c ? t : s, i = P(n), f = u.useCallback(
91
91
  (a) => {
92
92
  if (c) {
93
- const l = typeof a == "function" ? a(t) : a;
94
- l !== t && i(l);
93
+ const d = typeof a == "function" ? a(t) : a;
94
+ d !== t && i(d);
95
95
  } else
96
96
  o(a);
97
97
  },
@@ -110,9 +110,9 @@ function $({
110
110
  }
111
111
  export {
112
112
  j as a,
113
- P as b,
113
+ M as b,
114
114
  y as c,
115
- M as d,
115
+ P as d,
116
116
  _ as e,
117
117
  R as u
118
118
  };