@wow-two-beta/ui 0.0.4 → 0.0.6

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 (398) hide show
  1. package/dist/actions/button/Button.d.ts +6 -0
  2. package/dist/actions/button/Button.d.ts.map +1 -0
  3. package/dist/actions/button/Button.variants.d.ts +81 -0
  4. package/dist/actions/button/Button.variants.d.ts.map +1 -0
  5. package/dist/actions/button/index.d.ts +3 -0
  6. package/dist/actions/button/index.d.ts.map +1 -0
  7. package/dist/actions/iconButton/IconButton.d.ts +13 -0
  8. package/dist/actions/iconButton/IconButton.d.ts.map +1 -0
  9. package/dist/actions/iconButton/IconButton.variants.d.ts +130 -0
  10. package/dist/actions/iconButton/IconButton.variants.d.ts.map +1 -0
  11. package/dist/actions/iconButton/index.d.ts +3 -0
  12. package/dist/actions/iconButton/index.d.ts.map +1 -0
  13. package/dist/actions/index.d.ts +4 -91
  14. package/dist/actions/index.d.ts.map +1 -0
  15. package/dist/actions/index.js +2 -1
  16. package/dist/actions/link/Link.d.ts +13 -0
  17. package/dist/actions/link/Link.d.ts.map +1 -0
  18. package/dist/actions/link/Link.variants.d.ts +88 -0
  19. package/dist/actions/link/Link.variants.d.ts.map +1 -0
  20. package/dist/actions/link/index.d.ts +3 -0
  21. package/dist/actions/link/index.d.ts.map +1 -0
  22. package/dist/chunk-33IOXQYO.js +47 -0
  23. package/dist/chunk-33IOXQYO.js.map +1 -0
  24. package/dist/{chunk-AOHZGL6F.js → chunk-6NYTRHP7.js} +4 -3
  25. package/dist/chunk-6NYTRHP7.js.map +1 -0
  26. package/dist/{chunk-KDXJQNB6.js → chunk-77WSI427.js} +5 -9
  27. package/dist/chunk-77WSI427.js.map +1 -0
  28. package/dist/{chunk-T3JN5Y3E.js → chunk-JCMV6IT4.js} +7 -71
  29. package/dist/chunk-JCMV6IT4.js.map +1 -0
  30. package/dist/chunk-JTJEI6MF.js +11 -0
  31. package/dist/chunk-JTJEI6MF.js.map +1 -0
  32. package/dist/chunk-L2RYQWZZ.js +120 -0
  33. package/dist/chunk-L2RYQWZZ.js.map +1 -0
  34. package/dist/chunk-MP4OTUFA.js +318 -0
  35. package/dist/chunk-MP4OTUFA.js.map +1 -0
  36. package/dist/chunk-NJZS7RIH.js +604 -0
  37. package/dist/chunk-NJZS7RIH.js.map +1 -0
  38. package/dist/chunk-Q27NAHVB.js +34 -0
  39. package/dist/chunk-Q27NAHVB.js.map +1 -0
  40. package/dist/chunk-SYG6ZE42.js +218 -0
  41. package/dist/chunk-SYG6ZE42.js.map +1 -0
  42. package/dist/chunk-YLN7VMYU.js +275 -0
  43. package/dist/chunk-YLN7VMYU.js.map +1 -0
  44. package/dist/display/avatar/Avatar.d.ts +18 -0
  45. package/dist/display/avatar/Avatar.d.ts.map +1 -0
  46. package/dist/display/avatar/Avatar.variants.d.ts +95 -0
  47. package/dist/display/avatar/Avatar.variants.d.ts.map +1 -0
  48. package/dist/display/avatar/index.d.ts +3 -0
  49. package/dist/display/avatar/index.d.ts.map +1 -0
  50. package/dist/display/badge/Badge.d.ts +10 -0
  51. package/dist/display/badge/Badge.d.ts.map +1 -0
  52. package/dist/display/badge/Badge.variants.d.ts +109 -0
  53. package/dist/display/badge/Badge.variants.d.ts.map +1 -0
  54. package/dist/display/badge/index.d.ts +3 -0
  55. package/dist/display/badge/index.d.ts.map +1 -0
  56. package/dist/display/code/Code.d.ts +10 -0
  57. package/dist/display/code/Code.d.ts.map +1 -0
  58. package/dist/display/code/Code.variants.d.ts +39 -0
  59. package/dist/display/code/Code.variants.d.ts.map +1 -0
  60. package/dist/display/code/index.d.ts +3 -0
  61. package/dist/display/code/index.d.ts.map +1 -0
  62. package/dist/display/heading/Heading.d.ts +15 -0
  63. package/dist/display/heading/Heading.d.ts.map +1 -0
  64. package/dist/display/heading/Heading.variants.d.ts +158 -0
  65. package/dist/display/heading/Heading.variants.d.ts.map +1 -0
  66. package/dist/display/heading/index.d.ts +3 -0
  67. package/dist/display/heading/index.d.ts.map +1 -0
  68. package/dist/display/image/Image.d.ts +12 -0
  69. package/dist/display/image/Image.d.ts.map +1 -0
  70. package/dist/display/image/index.d.ts +2 -0
  71. package/dist/display/image/index.d.ts.map +1 -0
  72. package/dist/display/index.d.ts +12 -2
  73. package/dist/display/index.d.ts.map +1 -0
  74. package/dist/display/index.js +6 -1
  75. package/dist/display/kbd/Kbd.d.ts +8 -0
  76. package/dist/display/kbd/Kbd.d.ts.map +1 -0
  77. package/dist/display/kbd/index.d.ts +2 -0
  78. package/dist/display/kbd/index.d.ts.map +1 -0
  79. package/dist/display/mark/Mark.d.ts +8 -0
  80. package/dist/display/mark/Mark.d.ts.map +1 -0
  81. package/dist/display/mark/index.d.ts +2 -0
  82. package/dist/display/mark/index.d.ts.map +1 -0
  83. package/dist/display/quote/Quote.d.ts +7 -0
  84. package/dist/display/quote/Quote.d.ts.map +1 -0
  85. package/dist/display/quote/index.d.ts +2 -0
  86. package/dist/display/quote/index.d.ts.map +1 -0
  87. package/dist/display/separator/Separator.d.ts +13 -0
  88. package/dist/display/separator/Separator.d.ts.map +1 -0
  89. package/dist/display/separator/index.d.ts +2 -0
  90. package/dist/display/separator/index.d.ts.map +1 -0
  91. package/dist/display/tag/Tag.d.ts +15 -0
  92. package/dist/display/tag/Tag.d.ts.map +1 -0
  93. package/dist/display/tag/Tag.variants.d.ts +67 -0
  94. package/dist/display/tag/Tag.variants.d.ts.map +1 -0
  95. package/dist/display/tag/index.d.ts +3 -0
  96. package/dist/display/tag/index.d.ts.map +1 -0
  97. package/dist/display/text/Text.d.ts +11 -0
  98. package/dist/display/text/Text.d.ts.map +1 -0
  99. package/dist/display/text/Text.variants.d.ts +228 -0
  100. package/dist/display/text/Text.variants.d.ts.map +1 -0
  101. package/dist/display/text/index.d.ts +3 -0
  102. package/dist/display/text/index.d.ts.map +1 -0
  103. package/dist/feedback/alertSimple/AlertSimple.d.ts +13 -0
  104. package/dist/feedback/alertSimple/AlertSimple.d.ts.map +1 -0
  105. package/dist/feedback/alertSimple/AlertSimple.variants.d.ts +60 -0
  106. package/dist/feedback/alertSimple/AlertSimple.variants.d.ts.map +1 -0
  107. package/dist/feedback/alertSimple/index.d.ts +3 -0
  108. package/dist/feedback/alertSimple/index.d.ts.map +1 -0
  109. package/dist/feedback/bannerSimple/BannerSimple.d.ts +10 -0
  110. package/dist/feedback/bannerSimple/BannerSimple.d.ts.map +1 -0
  111. package/dist/feedback/bannerSimple/BannerSimple.variants.d.ts +60 -0
  112. package/dist/feedback/bannerSimple/BannerSimple.variants.d.ts.map +1 -0
  113. package/dist/feedback/bannerSimple/index.d.ts +3 -0
  114. package/dist/feedback/bannerSimple/index.d.ts.map +1 -0
  115. package/dist/feedback/index.d.ts +8 -2
  116. package/dist/feedback/index.d.ts.map +1 -0
  117. package/dist/feedback/index.js +5 -1
  118. package/dist/feedback/progressBar/ProgressBar.d.ts +15 -0
  119. package/dist/feedback/progressBar/ProgressBar.d.ts.map +1 -0
  120. package/dist/feedback/progressBar/ProgressBar.variants.d.ts +103 -0
  121. package/dist/feedback/progressBar/ProgressBar.variants.d.ts.map +1 -0
  122. package/dist/feedback/progressBar/index.d.ts +3 -0
  123. package/dist/feedback/progressBar/index.d.ts.map +1 -0
  124. package/dist/feedback/progressCircle/ProgressCircle.d.ts +16 -0
  125. package/dist/feedback/progressCircle/ProgressCircle.d.ts.map +1 -0
  126. package/dist/feedback/progressCircle/index.d.ts +2 -0
  127. package/dist/feedback/progressCircle/index.d.ts.map +1 -0
  128. package/dist/feedback/skeleton/Skeleton.d.ts +10 -0
  129. package/dist/feedback/skeleton/Skeleton.d.ts.map +1 -0
  130. package/dist/feedback/skeleton/Skeleton.variants.d.ts +46 -0
  131. package/dist/feedback/skeleton/Skeleton.variants.d.ts.map +1 -0
  132. package/dist/feedback/skeleton/index.d.ts +3 -0
  133. package/dist/feedback/skeleton/index.d.ts.map +1 -0
  134. package/dist/feedback/spinner/Spinner.d.ts +12 -0
  135. package/dist/feedback/spinner/Spinner.d.ts.map +1 -0
  136. package/dist/feedback/spinner/Spinner.variants.d.ts +102 -0
  137. package/dist/feedback/spinner/Spinner.variants.d.ts.map +1 -0
  138. package/dist/feedback/spinner/index.d.ts +3 -0
  139. package/dist/feedback/spinner/index.d.ts.map +1 -0
  140. package/dist/feedback/toastSimple/ToastSimple.d.ts +12 -0
  141. package/dist/feedback/toastSimple/ToastSimple.d.ts.map +1 -0
  142. package/dist/feedback/toastSimple/ToastSimple.variants.d.ts +60 -0
  143. package/dist/feedback/toastSimple/ToastSimple.variants.d.ts.map +1 -0
  144. package/dist/feedback/toastSimple/index.d.ts +3 -0
  145. package/dist/feedback/toastSimple/index.d.ts.map +1 -0
  146. package/dist/forms/_styles.d.ts +74 -0
  147. package/dist/forms/_styles.d.ts.map +1 -0
  148. package/dist/forms/checkbox/Checkbox.d.ts +12 -0
  149. package/dist/forms/checkbox/Checkbox.d.ts.map +1 -0
  150. package/dist/forms/checkbox/index.d.ts +2 -0
  151. package/dist/forms/checkbox/index.d.ts.map +1 -0
  152. package/dist/forms/emailInput/EmailInput.d.ts +7 -0
  153. package/dist/forms/emailInput/EmailInput.d.ts.map +1 -0
  154. package/dist/forms/emailInput/index.d.ts +2 -0
  155. package/dist/forms/emailInput/index.d.ts.map +1 -0
  156. package/dist/forms/fieldset/Fieldset.d.ts +8 -0
  157. package/dist/forms/fieldset/Fieldset.d.ts.map +1 -0
  158. package/dist/forms/fieldset/index.d.ts +2 -0
  159. package/dist/forms/fieldset/index.d.ts.map +1 -0
  160. package/dist/forms/formErrorMessage/FormErrorMessage.d.ts +8 -0
  161. package/dist/forms/formErrorMessage/FormErrorMessage.d.ts.map +1 -0
  162. package/dist/forms/formErrorMessage/index.d.ts +2 -0
  163. package/dist/forms/formErrorMessage/index.d.ts.map +1 -0
  164. package/dist/forms/formHelperText/FormHelperText.d.ts +8 -0
  165. package/dist/forms/formHelperText/FormHelperText.d.ts.map +1 -0
  166. package/dist/forms/formHelperText/index.d.ts +2 -0
  167. package/dist/forms/formHelperText/index.d.ts.map +1 -0
  168. package/dist/forms/index.d.ts +18 -2
  169. package/dist/forms/index.d.ts.map +1 -0
  170. package/dist/forms/index.js +8 -1
  171. package/dist/forms/label/Label.d.ts +11 -0
  172. package/dist/forms/label/Label.d.ts.map +1 -0
  173. package/dist/forms/label/index.d.ts +2 -0
  174. package/dist/forms/label/index.d.ts.map +1 -0
  175. package/dist/forms/legend/Legend.d.ts +7 -0
  176. package/dist/forms/legend/Legend.d.ts.map +1 -0
  177. package/dist/forms/legend/index.d.ts +2 -0
  178. package/dist/forms/legend/index.d.ts.map +1 -0
  179. package/dist/forms/numberInput/NumberInput.d.ts +11 -0
  180. package/dist/forms/numberInput/NumberInput.d.ts.map +1 -0
  181. package/dist/forms/numberInput/index.d.ts +2 -0
  182. package/dist/forms/numberInput/index.d.ts.map +1 -0
  183. package/dist/forms/passwordInput/PasswordInput.d.ts +12 -0
  184. package/dist/forms/passwordInput/PasswordInput.d.ts.map +1 -0
  185. package/dist/forms/passwordInput/index.d.ts +2 -0
  186. package/dist/forms/passwordInput/index.d.ts.map +1 -0
  187. package/dist/forms/radio/Radio.d.ts +11 -0
  188. package/dist/forms/radio/Radio.d.ts.map +1 -0
  189. package/dist/forms/radio/index.d.ts +2 -0
  190. package/dist/forms/radio/index.d.ts.map +1 -0
  191. package/dist/forms/searchInput/SearchInput.d.ts +13 -0
  192. package/dist/forms/searchInput/SearchInput.d.ts.map +1 -0
  193. package/dist/forms/searchInput/index.d.ts +2 -0
  194. package/dist/forms/searchInput/index.d.ts.map +1 -0
  195. package/dist/forms/slider/Slider.d.ts +10 -0
  196. package/dist/forms/slider/Slider.d.ts.map +1 -0
  197. package/dist/forms/slider/index.d.ts +2 -0
  198. package/dist/forms/slider/index.d.ts.map +1 -0
  199. package/dist/forms/switch/Switch.d.ts +10 -0
  200. package/dist/forms/switch/Switch.d.ts.map +1 -0
  201. package/dist/forms/switch/index.d.ts +2 -0
  202. package/dist/forms/switch/index.d.ts.map +1 -0
  203. package/dist/forms/telInput/TelInput.d.ts +7 -0
  204. package/dist/forms/telInput/TelInput.d.ts.map +1 -0
  205. package/dist/forms/telInput/index.d.ts +2 -0
  206. package/dist/forms/telInput/index.d.ts.map +1 -0
  207. package/dist/forms/textInput/TextInput.d.ts +11 -0
  208. package/dist/forms/textInput/TextInput.d.ts.map +1 -0
  209. package/dist/forms/textInput/index.d.ts +2 -0
  210. package/dist/forms/textInput/index.d.ts.map +1 -0
  211. package/dist/forms/textarea/Textarea.d.ts +10 -0
  212. package/dist/forms/textarea/Textarea.d.ts.map +1 -0
  213. package/dist/forms/textarea/index.d.ts +2 -0
  214. package/dist/forms/textarea/index.d.ts.map +1 -0
  215. package/dist/forms/urlInput/UrlInput.d.ts +7 -0
  216. package/dist/forms/urlInput/UrlInput.d.ts.map +1 -0
  217. package/dist/forms/urlInput/index.d.ts +2 -0
  218. package/dist/forms/urlInput/index.d.ts.map +1 -0
  219. package/dist/hooks/index.d.ts +11 -2
  220. package/dist/hooks/index.d.ts.map +1 -0
  221. package/dist/hooks/index.js +3 -2
  222. package/dist/hooks/useControlled.d.ts +16 -0
  223. package/dist/hooks/useControlled.d.ts.map +1 -0
  224. package/dist/hooks/useDisclosure.d.ts +14 -0
  225. package/dist/hooks/useDisclosure.d.ts.map +1 -0
  226. package/dist/hooks/useEscape.d.ts +7 -0
  227. package/dist/hooks/useEscape.d.ts.map +1 -0
  228. package/dist/hooks/useEventListener.d.ts +8 -0
  229. package/dist/hooks/useEventListener.d.ts.map +1 -0
  230. package/dist/hooks/useFocusTrap.d.ts +11 -0
  231. package/dist/hooks/useFocusTrap.d.ts.map +1 -0
  232. package/dist/hooks/useId.d.ts +6 -0
  233. package/dist/hooks/useId.d.ts.map +1 -0
  234. package/dist/hooks/useMediaQuery.d.ts +6 -0
  235. package/dist/hooks/useMediaQuery.d.ts.map +1 -0
  236. package/dist/hooks/useOutsideClick.d.ts +8 -0
  237. package/dist/hooks/useOutsideClick.d.ts.map +1 -0
  238. package/dist/hooks/useResizeObserver.d.ts +7 -0
  239. package/dist/hooks/useResizeObserver.d.ts.map +1 -0
  240. package/dist/hooks/useScrollLock.d.ts +7 -0
  241. package/dist/hooks/useScrollLock.d.ts.map +1 -0
  242. package/dist/icons/Icon.d.ts +26 -0
  243. package/dist/icons/Icon.d.ts.map +1 -0
  244. package/dist/icons/index.d.ts +2 -2
  245. package/dist/icons/index.d.ts.map +1 -0
  246. package/dist/index.css +73 -3
  247. package/dist/index.d.ts +10 -13
  248. package/dist/index.d.ts.map +1 -0
  249. package/dist/index.js +11 -9
  250. package/dist/layout/aspectRatio/AspectRatio.d.ts +12 -0
  251. package/dist/layout/aspectRatio/AspectRatio.d.ts.map +1 -0
  252. package/dist/layout/aspectRatio/index.d.ts +2 -0
  253. package/dist/layout/aspectRatio/index.d.ts.map +1 -0
  254. package/dist/layout/box/Box.d.ts +12 -0
  255. package/dist/layout/box/Box.d.ts.map +1 -0
  256. package/dist/layout/box/index.d.ts +2 -0
  257. package/dist/layout/box/index.d.ts.map +1 -0
  258. package/dist/layout/center/Center.d.ts +5 -0
  259. package/dist/layout/center/Center.d.ts.map +1 -0
  260. package/dist/layout/center/index.d.ts +2 -0
  261. package/dist/layout/center/index.d.ts.map +1 -0
  262. package/dist/layout/container/Container.d.ts +11 -0
  263. package/dist/layout/container/Container.d.ts.map +1 -0
  264. package/dist/layout/container/Container.variants.d.ts +67 -0
  265. package/dist/layout/container/Container.variants.d.ts.map +1 -0
  266. package/dist/layout/container/index.d.ts +3 -0
  267. package/dist/layout/container/index.d.ts.map +1 -0
  268. package/dist/layout/flex/Flex.d.ts +10 -0
  269. package/dist/layout/flex/Flex.d.ts.map +1 -0
  270. package/dist/layout/flex/index.d.ts +2 -0
  271. package/dist/layout/flex/index.d.ts.map +1 -0
  272. package/dist/layout/grid/Grid.d.ts +12 -0
  273. package/dist/layout/grid/Grid.d.ts.map +1 -0
  274. package/dist/layout/grid/Grid.variants.d.ts +165 -0
  275. package/dist/layout/grid/Grid.variants.d.ts.map +1 -0
  276. package/dist/layout/grid/index.d.ts +3 -0
  277. package/dist/layout/grid/index.d.ts.map +1 -0
  278. package/dist/layout/hStack/HStack.d.ts +5 -0
  279. package/dist/layout/hStack/HStack.d.ts.map +1 -0
  280. package/dist/layout/hStack/index.d.ts +2 -0
  281. package/dist/layout/hStack/index.d.ts.map +1 -0
  282. package/dist/layout/index.d.ts +12 -2
  283. package/dist/layout/index.d.ts.map +1 -0
  284. package/dist/layout/index.js +5 -1
  285. package/dist/layout/scrollArea/ScrollArea.d.ts +11 -0
  286. package/dist/layout/scrollArea/ScrollArea.d.ts.map +1 -0
  287. package/dist/layout/scrollArea/index.d.ts +2 -0
  288. package/dist/layout/scrollArea/index.d.ts.map +1 -0
  289. package/dist/layout/spacer/Spacer.d.ts +13 -0
  290. package/dist/layout/spacer/Spacer.d.ts.map +1 -0
  291. package/dist/layout/spacer/index.d.ts +2 -0
  292. package/dist/layout/spacer/index.d.ts.map +1 -0
  293. package/dist/layout/stack/Stack.d.ts +11 -0
  294. package/dist/layout/stack/Stack.d.ts.map +1 -0
  295. package/dist/layout/stack/Stack.variants.d.ts +277 -0
  296. package/dist/layout/stack/Stack.variants.d.ts.map +1 -0
  297. package/dist/layout/stack/index.d.ts +3 -0
  298. package/dist/layout/stack/index.d.ts.map +1 -0
  299. package/dist/layout/vStack/VStack.d.ts +5 -0
  300. package/dist/layout/vStack/VStack.d.ts.map +1 -0
  301. package/dist/layout/vStack/index.d.ts +2 -0
  302. package/dist/layout/vStack/index.d.ts.map +1 -0
  303. package/dist/primitives/accessibleIcon/AccessibleIcon.d.ts +13 -0
  304. package/dist/primitives/accessibleIcon/AccessibleIcon.d.ts.map +1 -0
  305. package/dist/primitives/accessibleIcon/index.d.ts +2 -0
  306. package/dist/primitives/accessibleIcon/index.d.ts.map +1 -0
  307. package/dist/primitives/anchoredPositioner/AnchoredPositioner.d.ts +20 -0
  308. package/dist/primitives/anchoredPositioner/AnchoredPositioner.d.ts.map +1 -0
  309. package/dist/primitives/anchoredPositioner/index.d.ts +2 -0
  310. package/dist/primitives/anchoredPositioner/index.d.ts.map +1 -0
  311. package/dist/primitives/collection/Collection.d.ts +19 -0
  312. package/dist/primitives/collection/Collection.d.ts.map +1 -0
  313. package/dist/primitives/collection/index.d.ts +2 -0
  314. package/dist/primitives/collection/index.d.ts.map +1 -0
  315. package/dist/primitives/directionProvider/DirectionProvider.d.ts +13 -0
  316. package/dist/primitives/directionProvider/DirectionProvider.d.ts.map +1 -0
  317. package/dist/primitives/directionProvider/index.d.ts +2 -0
  318. package/dist/primitives/directionProvider/index.d.ts.map +1 -0
  319. package/dist/primitives/dismissableLayer/DismissableLayer.d.ts +18 -0
  320. package/dist/primitives/dismissableLayer/DismissableLayer.d.ts.map +1 -0
  321. package/dist/primitives/dismissableLayer/index.d.ts +2 -0
  322. package/dist/primitives/dismissableLayer/index.d.ts.map +1 -0
  323. package/dist/primitives/focusScope/FocusScope.d.ts +11 -0
  324. package/dist/primitives/focusScope/FocusScope.d.ts.map +1 -0
  325. package/dist/primitives/focusScope/index.d.ts +2 -0
  326. package/dist/primitives/focusScope/index.d.ts.map +1 -0
  327. package/dist/primitives/formControlContext/FormControlContext.d.ts +32 -0
  328. package/dist/primitives/formControlContext/FormControlContext.d.ts.map +1 -0
  329. package/dist/primitives/formControlContext/index.d.ts +2 -0
  330. package/dist/primitives/formControlContext/index.d.ts.map +1 -0
  331. package/dist/primitives/index.d.ts +14 -5
  332. package/dist/primitives/index.d.ts.map +1 -0
  333. package/dist/primitives/index.js +5 -2
  334. package/dist/primitives/portal/Portal.d.ts +14 -0
  335. package/dist/primitives/portal/Portal.d.ts.map +1 -0
  336. package/dist/primitives/portal/index.d.ts +2 -0
  337. package/dist/primitives/portal/index.d.ts.map +1 -0
  338. package/dist/primitives/presence/Presence.d.ts +14 -0
  339. package/dist/primitives/presence/Presence.d.ts.map +1 -0
  340. package/dist/primitives/presence/index.d.ts +2 -0
  341. package/dist/primitives/presence/index.d.ts.map +1 -0
  342. package/dist/primitives/rovingFocusGroup/RovingFocusGroup.d.ts +26 -0
  343. package/dist/primitives/rovingFocusGroup/RovingFocusGroup.d.ts.map +1 -0
  344. package/dist/primitives/rovingFocusGroup/index.d.ts +2 -0
  345. package/dist/primitives/rovingFocusGroup/index.d.ts.map +1 -0
  346. package/dist/primitives/scrollLockProvider/ScrollLockProvider.d.ts +12 -0
  347. package/dist/primitives/scrollLockProvider/ScrollLockProvider.d.ts.map +1 -0
  348. package/dist/primitives/scrollLockProvider/index.d.ts +2 -0
  349. package/dist/primitives/scrollLockProvider/index.d.ts.map +1 -0
  350. package/dist/primitives/slot/Slot.d.ts +15 -0
  351. package/dist/primitives/slot/Slot.d.ts.map +1 -0
  352. package/dist/primitives/slot/index.d.ts +2 -0
  353. package/dist/primitives/slot/index.d.ts.map +1 -0
  354. package/dist/primitives/visuallyHidden/VisuallyHidden.d.ts +9 -0
  355. package/dist/primitives/visuallyHidden/VisuallyHidden.d.ts.map +1 -0
  356. package/dist/primitives/visuallyHidden/index.d.ts +2 -0
  357. package/dist/primitives/visuallyHidden/index.d.ts.map +1 -0
  358. package/dist/utils/cn.d.ts +7 -0
  359. package/dist/utils/cn.d.ts.map +1 -0
  360. package/dist/utils/composeEventHandlers.d.ts +11 -0
  361. package/dist/utils/composeEventHandlers.d.ts.map +1 -0
  362. package/dist/utils/composeRefs.d.ts +9 -0
  363. package/dist/utils/composeRefs.d.ts.map +1 -0
  364. package/dist/utils/dataAttr.d.ts +7 -0
  365. package/dist/utils/dataAttr.d.ts.map +1 -0
  366. package/dist/utils/index.d.ts +7 -4
  367. package/dist/utils/index.d.ts.map +1 -0
  368. package/dist/utils/polymorphic.d.ts +14 -0
  369. package/dist/utils/polymorphic.d.ts.map +1 -0
  370. package/dist/utils/tv.d.ts +2 -0
  371. package/dist/utils/tv.d.ts.map +1 -0
  372. package/package.json +5 -14
  373. package/dist/chunk-A2OBJDIK.js +0 -3
  374. package/dist/chunk-A2OBJDIK.js.map +0 -1
  375. package/dist/chunk-AOHZGL6F.js.map +0 -1
  376. package/dist/chunk-D67WGR7Y.js +0 -212
  377. package/dist/chunk-D67WGR7Y.js.map +0 -1
  378. package/dist/chunk-KDXJQNB6.js.map +0 -1
  379. package/dist/chunk-OEEYNBEO.js +0 -41
  380. package/dist/chunk-OEEYNBEO.js.map +0 -1
  381. package/dist/chunk-PSDQXPUE.js +0 -3
  382. package/dist/chunk-PSDQXPUE.js.map +0 -1
  383. package/dist/chunk-T3JN5Y3E.js.map +0 -1
  384. package/dist/chunk-YP4MAZRQ.js +0 -3
  385. package/dist/chunk-YP4MAZRQ.js.map +0 -1
  386. package/dist/chunk-ZDU7SROW.js +0 -3
  387. package/dist/chunk-ZDU7SROW.js.map +0 -1
  388. package/dist/index-Bk6CuDNT.d.ts +0 -247
  389. package/dist/index-C0IDphm_.d.ts +0 -61
  390. package/dist/index-CEAM9LLM.d.ts +0 -37
  391. package/dist/index-PAuwodyY.d.ts +0 -103
  392. package/dist/index-goThcZ1E.d.ts +0 -416
  393. package/dist/tailwind/index.d.ts +0 -5
  394. package/dist/tailwind/index.js +0 -23
  395. package/dist/tailwind/index.js.map +0 -1
  396. package/dist/tokens/index.d.ts +0 -1
  397. package/dist/tokens/index.js +0 -4
  398. package/dist/tokens/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/primitives/index.ts","../src/primitives/slot/Slot.tsx","../src/primitives/portal/Portal.tsx","../src/primitives/visuallyHidden/VisuallyHidden.tsx","../src/primitives/presence/Presence.tsx","../src/primitives/directionProvider/DirectionProvider.tsx","../src/primitives/accessibleIcon/AccessibleIcon.tsx","../src/primitives/focusScope/FocusScope.tsx","../src/primitives/dismissableLayer/DismissableLayer.tsx","../src/primitives/anchoredPositioner/AnchoredPositioner.tsx","../src/primitives/rovingFocusGroup/RovingFocusGroup.tsx","../src/primitives/collection/Collection.tsx","../src/primitives/formControlContext/FormControlContext.tsx","../src/primitives/scrollLockProvider/ScrollLockProvider.tsx"],"names":["forwardRef","jsx","isValidElement","cloneElement","RadixFocusScope","useRef","useEffect","offset","offsetMiddleware","createContext","useState","useContext","useId","useCallback","useMemo","Fragment"],"mappings":";;;;;;;;;;;AAAA,IAAA,kBAAA,GAAA;AAAA,QAAA,CAAA,kBAAA,EAAA;AAAA,EAAA,cAAA,EAAA,MAAA,cAAA;AAAA,EAAA,kBAAA,EAAA,MAAA,kBAAA;AAAA,EAAA,iBAAA,EAAA,MAAA,iBAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,EAAA,UAAA,EAAA,MAAA,UAAA;AAAA,EAAA,mBAAA,EAAA,MAAA,mBAAA;AAAA,EAAA,MAAA,EAAA,MAAA,MAAA;AAAA,EAAA,QAAA,EAAA,MAAA,QAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,EAAA,kBAAA,EAAA,MAAA,kBAAA;AAAA,EAAA,IAAA,EAAA,MAAA,IAAA;AAAA,EAAA,cAAA,EAAA,MAAA,cAAA;AAAA,EAAA,gBAAA,EAAA,MAAA,gBAAA;AAAA,EAAA,YAAA,EAAA,MAAA,YAAA;AAAA,EAAA,cAAA,EAAA,MAAA,cAAA;AAAA,EAAA,kBAAA,EAAA,MAAA;AAAA,CAAA,CAAA;ACkBA,SAAS,UAAA,CAAW,WAAqB,UAAA,EAAgC;AACvE,EAAA,MAAM,MAAA,GAAmB,EAAE,GAAG,UAAA,EAAW;AACzC,EAAA,KAAA,MAAW,GAAA,IAAO,MAAA,CAAO,IAAA,CAAK,SAAS,CAAA,EAAG;AACxC,IAAA,MAAM,OAAA,GAAU,UAAU,GAAG,CAAA;AAC7B,IAAA,MAAM,QAAA,GAAW,WAAW,GAAG,CAAA;AAC/B,IAAA,IAAI,QAAQ,WAAA,EAAa;AACvB,MAAA,MAAA,CAAO,SAAA,GAAY,CAAC,OAAA,EAAS,QAAQ,EAAE,MAAA,CAAO,OAAO,CAAA,CAAE,IAAA,CAAK,GAAG,CAAA;AAAA,IACjE,CA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,EAAA,uBAAOX,GAAAA,CAAC,OAAA,CAAQ,QAAA,EAAR,EAAiB,OAAe,QAAA,EAAS,CAAA;AACnD;AAMO,SAAS,cAAA,GAAiD;AAC/D,EAAA,OAAOU,WAAW,OAAO,CAAA;AAC3B;AC/CO,SAAS,kBAAA,CAAmB,EAAE,OAAA,GAAU,IAAA,EAAM,UAAS,EAA4B;AACxF,EAAA,aAAA,CAAc,OAAO,CAAA;AACrB,EAAA,uBAAOV,GAAAA,CAAAc,QAAAA,EAAA,EAAG,QAAA,EAAS,CAAA;AACrB","file":"chunk-T3JN5Y3E.js","sourcesContent":["// L2 — headless primitives. Behavior + a11y, no visual styling beyond layout.\n// Foundation layer; cannot import upward (enforced by ESLint boundaries).\n\nexport * from './slot';\nexport * from './portal';\nexport * from './visuallyHidden';\nexport * from './presence';\nexport * from './directionProvider';\nexport * from './accessibleIcon';\nexport * from './focusScope';\nexport * from './dismissableLayer';\nexport * from './anchoredPositioner';\nexport * from './rovingFocusGroup';\nexport * from './collection';\nexport * from './formControlContext';\nexport * from './scrollLockProvider';\n","import {\n Children,\n cloneElement,\n forwardRef,\n isValidElement,\n type CSSProperties,\n type HTMLAttributes,\n type ReactElement,\n type Ref,\n} from 'react';\nimport { composeRefs } from '../../utils/composeRefs';\n\nexport interface SlotProps extends HTMLAttributes<HTMLElement> {\n children?: React.ReactNode;\n}\n\ntype AnyProps = Record<string, unknown>;\n\nfunction mergeProps(slotProps: AnyProps, childProps: AnyProps): AnyProps {\n const merged: AnyProps = { ...childProps };\n for (const key of Object.keys(slotProps)) {\n const slotVal = slotProps[key];\n const childVal = childProps[key];\n if (key === 'className') {\n merged.className = [slotVal, childVal].filter(Boolean).join(' ');\n } else if (key === 'style') {\n merged.style = { ...(slotVal as CSSProperties), ...(childVal as CSSProperties) };\n } else if (/^on[A-Z]/.test(key)) {\n const slotFn = slotVal as ((...args: unknown[]) => void) | undefined;\n const childFn = childVal as ((...args: unknown[]) => void) | undefined;\n if (slotFn && childFn) {\n merged[key] = (...args: unknown[]) => {\n childFn(...args);\n slotFn(...args);\n };\n } else if (slotFn) {\n merged[key] = slotFn;\n }\n } else if (childVal === undefined) {\n merged[key] = slotVal;\n }\n }\n return merged;\n}\n\n/**\n * Polymorphic slot — renders the single child element with the parent's props\n * merged in (className concatenated, handlers chained, refs composed).\n *\n * Use to enable an `asChild` API on a component:\n * ```tsx\n * <Button asChild><a href=\"/x\">Open</a></Button>\n * ```\n */\nexport const Slot = forwardRef<HTMLElement, SlotProps>(\n ({ children, ...slotProps }, forwardedRef) => {\n if (!isValidElement(children)) {\n return Children.count(children) > 1 ? Children.only(null) : null;\n }\n const child = children as ReactElement<AnyProps> & { ref?: Ref<HTMLElement> };\n const merged = mergeProps(slotProps as AnyProps, (child.props ?? {}) as AnyProps);\n return cloneElement(child, {\n ...merged,\n ref: composeRefs(forwardedRef, child.ref),\n });\n },\n);\nSlot.displayName = 'Slot';\n","import { type ReactNode } from 'react';\nimport { createPortal } from 'react-dom';\n\nexport interface PortalProps {\n children: ReactNode;\n /** Container to render into. Default: `document.body`. */\n container?: HTMLElement | null;\n /** Optional named layer — sets `data-portal-name` on the wrapper. */\n name?: string;\n}\n\n/**\n * Render children into a different DOM node (default `document.body`).\n * Client-only — package targets pure CSR consumers.\n */\nexport function Portal({ children, container, name }: PortalProps): ReactNode {\n const target = container ?? document.body;\n return createPortal(<div data-portal-name={name}>{children}</div>, target);\n}\n","import { forwardRef, type HTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\n\nexport type VisuallyHiddenProps = HTMLAttributes<HTMLSpanElement>;\n\n/**\n * Visually hidden span — content removed from the visual layout but still\n * announced to screen readers. Use for accessible labels on icon-only\n * affordances and live-region announcements.\n */\nexport const VisuallyHidden = forwardRef<HTMLSpanElement, VisuallyHiddenProps>(\n ({ className, ...props }, ref) => (\n <span\n ref={ref}\n className={cn(\n 'absolute h-px w-px overflow-hidden whitespace-nowrap border-0 p-0',\n 'm-[-1px] [clip:rect(0_0_0_0)] [clip-path:inset(50%)]',\n className,\n )}\n {...props}\n />\n ),\n);\nVisuallyHidden.displayName = 'VisuallyHidden';\n","import {\n cloneElement,\n isValidElement,\n useEffect,\n useRef,\n useState,\n type ReactElement,\n type Ref,\n} from 'react';\nimport { composeRefs } from '../../utils/composeRefs';\n\nexport interface PresenceProps {\n /** Whether the content should be present. Toggle false to trigger exit. */\n present: boolean;\n /** Single React element child — receives `ref` and `data-state` (\"open\" | \"closed\"). */\n children: ReactElement;\n}\n\n/**\n * Defer unmount until the child's exit animation/transition finishes.\n * Pass `present={false}` to start the exit; the child stays mounted with\n * `data-state=\"closed\"` until `animationend`/`transitionend` fires.\n */\nexport function Presence({ present, children }: PresenceProps): ReactElement | null {\n const [rendered, setRendered] = useState(present);\n const ref = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (present) {\n setRendered(true);\n return;\n }\n const node = ref.current;\n if (!node) {\n setRendered(false);\n return;\n }\n const cs = getComputedStyle(node);\n const hasAnim = cs.animationName !== 'none' && cs.animationDuration !== '0s';\n const hasTrans = cs.transitionDuration !== '0s';\n if (!hasAnim && !hasTrans) {\n setRendered(false);\n return;\n }\n const onEnd = () => setRendered(false);\n node.addEventListener('animationend', onEnd);\n node.addEventListener('transitionend', onEnd);\n return () => {\n node.removeEventListener('animationend', onEnd);\n node.removeEventListener('transitionend', onEnd);\n };\n }, [present]);\n\n if (!rendered || !isValidElement(children)) return null;\n const child = children as ReactElement<{ ref?: Ref<HTMLElement> }> & { ref?: Ref<HTMLElement> };\n return cloneElement(child, {\n ref: composeRefs(ref, child.ref),\n 'data-state': present ? 'open' : 'closed',\n } as Partial<typeof child.props>);\n}\n","import { createContext, useContext, type ReactNode } from 'react';\n\nexport type Direction = 'ltr' | 'rtl';\n\nconst DirectionContext = createContext<Direction>('ltr');\n\nexport interface DirectionProviderProps {\n dir: Direction;\n children: ReactNode;\n}\n\n/**\n * Provide reading direction to descendants. Components that mirror in RTL\n * (Tabs arrow keys, Slider, Carousel, etc.) read this via `useDirection()`.\n */\nexport function DirectionProvider({ dir, children }: DirectionProviderProps) {\n return <DirectionContext.Provider value={dir}>{children}</DirectionContext.Provider>;\n}\n\nexport function useDirection(): Direction {\n return useContext(DirectionContext);\n}\n","import { cloneElement, isValidElement, type ReactElement } from 'react';\nimport { VisuallyHidden } from '../visuallyHidden/VisuallyHidden';\n\nexport interface AccessibleIconProps {\n /** Required accessible label for the icon. */\n label: string;\n /** Single icon element — will receive `aria-hidden` so SR reads only the label. */\n children: ReactElement;\n}\n\n/**\n * Wrap an icon-only element with an accessible label. The icon is hidden\n * from assistive tech and a `VisuallyHidden` sibling provides the label.\n */\nexport function AccessibleIcon({ label, children }: AccessibleIconProps) {\n const icon = isValidElement(children)\n ? cloneElement(children as ReactElement<{ 'aria-hidden'?: boolean | string; focusable?: string }>, {\n 'aria-hidden': 'true',\n focusable: 'false',\n })\n : children;\n return (\n <>\n {icon}\n <VisuallyHidden>{label}</VisuallyHidden>\n </>\n );\n}\n","import { FocusScope as RadixFocusScope } from '@radix-ui/react-focus-scope';\n\nexport type FocusScopeProps = React.ComponentProps<typeof RadixFocusScope>;\n\n/**\n * Trap focus within children. On unmount, returns focus to the previously\n * focused element. Pass `loop` to wrap Tab navigation; `trapped` to enable\n * the trap (default true while mounted).\n *\n * Wraps `@radix-ui/react-focus-scope` — battle-tested implementation.\n */\nexport const FocusScope = RadixFocusScope;\n","import {\n forwardRef,\n useEffect,\n useRef,\n type HTMLAttributes,\n} from 'react';\nimport { composeRefs } from '../../utils/composeRefs';\n\ninterface LayerEntry {\n node: HTMLElement;\n onEscape?: (event: KeyboardEvent) => void;\n onOutsidePointerDown?: (event: PointerEvent) => void;\n}\n\nconst layerStack: LayerEntry[] = [];\n\nexport interface DismissableLayerProps extends HTMLAttributes<HTMLDivElement> {\n /** Called when Escape is pressed and this is the topmost layer. */\n onEscape?: (event: KeyboardEvent) => void;\n /** Called when a pointerdown lands outside this layer's DOM and this is topmost. */\n onOutsidePointerDown?: (event: PointerEvent) => void;\n /** Disable the Escape listener for this layer. */\n disableEscape?: boolean;\n /** Disable the outside-pointer-down listener for this layer. */\n disableOutsideClick?: boolean;\n}\n\n/**\n * Stack-aware dismissal layer. Multiple layers may stack (modal > popover);\n * only the topmost reacts to Escape / outside click. Used as the base of\n * Modal, Drawer, Popover, Menu, HoverCard, ContextMenu.\n */\nexport const DismissableLayer = forwardRef<HTMLDivElement, DismissableLayerProps>(\n (\n { onEscape, onOutsidePointerDown, disableEscape, disableOutsideClick, ...props },\n forwardedRef,\n ) => {\n const ref = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n const node = ref.current;\n if (!node) return;\n const entry: LayerEntry = { node, onEscape, onOutsidePointerDown };\n layerStack.push(entry);\n return () => {\n const idx = layerStack.indexOf(entry);\n if (idx >= 0) layerStack.splice(idx, 1);\n };\n }, [onEscape, onOutsidePointerDown]);\n\n useEffect(() => {\n if (disableEscape) return;\n const onKeyDown = (e: KeyboardEvent) => {\n if (e.key !== 'Escape') return;\n const top = layerStack[layerStack.length - 1];\n if (top && top.node === ref.current) top.onEscape?.(e);\n };\n document.addEventListener('keydown', onKeyDown);\n return () => document.removeEventListener('keydown', onKeyDown);\n }, [disableEscape]);\n\n useEffect(() => {\n if (disableOutsideClick) return;\n const onPointer = (e: PointerEvent) => {\n const top = layerStack[layerStack.length - 1];\n if (!top || top.node !== ref.current) return;\n const target = e.target as Node | null;\n if (!target || ref.current?.contains(target)) return;\n top.onOutsidePointerDown?.(e);\n };\n document.addEventListener('pointerdown', onPointer, true);\n return () => document.removeEventListener('pointerdown', onPointer, true);\n }, [disableOutsideClick]);\n\n return <div ref={composeRefs(forwardedRef, ref)} {...props} />;\n },\n);\nDismissableLayer.displayName = 'DismissableLayer';\n","import {\n autoUpdate,\n flip,\n offset as offsetMiddleware,\n shift,\n useFloating,\n type Placement,\n} from '@floating-ui/react';\nimport { forwardRef, type HTMLAttributes, type ReactNode } from 'react';\nimport { composeRefs } from '../../utils/composeRefs';\n\nexport interface AnchoredPositionerProps extends HTMLAttributes<HTMLDivElement> {\n /** The element the floating layer should be anchored to. */\n anchor: HTMLElement | null;\n /** Floating UI placement. Default `bottom`. */\n placement?: Placement;\n /** Distance between anchor and floating element in px. Default 8. */\n offset?: number;\n /** Render the floating element only when open. */\n open?: boolean;\n children: ReactNode;\n}\n\n/**\n * Position children relative to an anchor element using Floating UI.\n * Auto-flips and shifts to stay in viewport. Use as the positioning surface\n * for Tooltip, Popover, Menu, HoverCard.\n */\nexport const AnchoredPositioner = forwardRef<HTMLDivElement, AnchoredPositionerProps>(\n (\n { anchor, placement = 'bottom', offset = 8, open = true, children, style, ...props },\n forwardedRef,\n ) => {\n const { refs, floatingStyles } = useFloating({\n open,\n placement,\n middleware: [offsetMiddleware(offset), flip(), shift({ padding: 8 })],\n whileElementsMounted: autoUpdate,\n elements: { reference: anchor },\n });\n\n if (!open) return null;\n\n return (\n <div\n ref={composeRefs(forwardedRef, refs.setFloating)}\n style={{ ...floatingStyles, ...style }}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\nAnchoredPositioner.displayName = 'AnchoredPositioner';\n","import {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useId,\n useMemo,\n useRef,\n useState,\n type HTMLAttributes,\n type KeyboardEvent,\n type ReactNode,\n} from 'react';\n\nexport type Orientation = 'horizontal' | 'vertical' | 'both';\n\ninterface RovingFocusContextValue {\n register: (id: string) => void;\n unregister: (id: string) => void;\n focusedId: string | null;\n setFocusedId: (id: string) => void;\n onItemKeyDown: (event: KeyboardEvent, id: string) => void;\n}\n\nconst RovingFocusContext = createContext<RovingFocusContextValue | null>(null);\n\nexport interface RovingFocusGroupProps extends HTMLAttributes<HTMLDivElement> {\n orientation?: Orientation;\n loop?: boolean;\n children: ReactNode;\n}\n\n/**\n * Provide arrow-key navigation for a group of focusable children. Children\n * call `useRovingFocusItem()` to register and receive `tabIndex` / event\n * handlers. Used by Tabs, ToggleGroup, RadioGroup, Menu.\n */\nexport function RovingFocusGroup({\n orientation = 'horizontal',\n loop = true,\n children,\n ...props\n}: RovingFocusGroupProps) {\n const items = useRef<string[]>([]);\n const [focusedId, setFocusedId] = useState<string | null>(null);\n\n const register = useCallback((id: string) => {\n if (!items.current.includes(id)) items.current.push(id);\n setFocusedId((current) => current ?? id);\n }, []);\n\n const unregister = useCallback((id: string) => {\n items.current = items.current.filter((i) => i !== id);\n }, []);\n\n const onItemKeyDown = useCallback(\n (event: KeyboardEvent, id: string) => {\n const list = items.current;\n const idx = list.indexOf(id);\n if (idx === -1) return;\n const isVert = orientation === 'vertical' || orientation === 'both';\n const isHoriz = orientation === 'horizontal' || orientation === 'both';\n let next = idx;\n if ((event.key === 'ArrowRight' && isHoriz) || (event.key === 'ArrowDown' && isVert)) {\n next = idx + 1;\n if (next >= list.length) next = loop ? 0 : list.length - 1;\n } else if ((event.key === 'ArrowLeft' && isHoriz) || (event.key === 'ArrowUp' && isVert)) {\n next = idx - 1;\n if (next < 0) next = loop ? list.length - 1 : 0;\n } else if (event.key === 'Home') {\n next = 0;\n } else if (event.key === 'End') {\n next = list.length - 1;\n } else {\n return;\n }\n event.preventDefault();\n const id2 = list[next];\n if (id2) setFocusedId(id2);\n },\n [orientation, loop],\n );\n\n const value = useMemo(\n () => ({ register, unregister, focusedId, setFocusedId, onItemKeyDown }),\n [register, unregister, focusedId, onItemKeyDown],\n );\n\n return (\n <RovingFocusContext.Provider value={value}>\n <div role=\"group\" {...props}>\n {children}\n </div>\n </RovingFocusContext.Provider>\n );\n}\n\nexport interface UseRovingFocusItemReturn {\n ref: (node: HTMLElement | null) => void;\n tabIndex: 0 | -1;\n onKeyDown: (event: KeyboardEvent) => void;\n onFocus: () => void;\n 'data-roving-focus-item': boolean;\n}\n\n/**\n * Inside a `RovingFocusGroup`, returns props to spread onto a focusable item.\n * Outside, returns inert props (tabIndex 0).\n */\nexport function useRovingFocusItem(): UseRovingFocusItemReturn {\n const context = useContext(RovingFocusContext);\n const id = useId();\n const ref = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n context?.register(id);\n return () => context?.unregister(id);\n }, [context, id]);\n\n useEffect(() => {\n if (context?.focusedId === id && ref.current && document.activeElement !== ref.current) {\n ref.current.focus();\n }\n }, [context?.focusedId, id]);\n\n return {\n ref: (node) => {\n ref.current = node;\n },\n tabIndex: !context || context.focusedId === id ? 0 : -1,\n onKeyDown: (e) => context?.onItemKeyDown(e, id),\n onFocus: () => context?.setFocusedId(id),\n 'data-roving-focus-item': true,\n };\n}\n","import {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useState,\n type Context,\n type ReactNode,\n} from 'react';\n\nexport interface CollectionContextValue<T> {\n items: T[];\n register: (item: T) => void;\n unregister: (item: T) => void;\n}\n\n/**\n * Factory for a typed children-registry context. Compound components\n * (Menu, Tabs, Listbox) use this so the parent can iterate ordered children\n * without prop-drilling.\n */\nexport function createCollection<T>(): {\n Provider: (props: { children: ReactNode }) => ReactNode;\n useCollection: () => CollectionContextValue<T>;\n Context: Context<CollectionContextValue<T> | null>;\n} {\n const CollectionContext = createContext<CollectionContextValue<T> | null>(null);\n\n function Provider({ children }: { children: ReactNode }) {\n const [items, setItems] = useState<T[]>([]);\n const register = useCallback((item: T) => {\n setItems((prev) => (prev.includes(item) ? prev : [...prev, item]));\n }, []);\n const unregister = useCallback((item: T) => {\n setItems((prev) => prev.filter((i) => i !== item));\n }, []);\n const value = useMemo(() => ({ items, register, unregister }), [items, register, unregister]);\n return <CollectionContext.Provider value={value}>{children}</CollectionContext.Provider>;\n }\n\n function useCollection(): CollectionContextValue<T> {\n const ctx = useContext(CollectionContext);\n if (!ctx) {\n throw new Error('useCollection must be used inside its Provider');\n }\n return ctx;\n }\n\n return { Provider, useCollection, Context: CollectionContext };\n}\n","import { createContext, useContext, type ReactNode } from 'react';\nimport { useId } from '../../hooks/useId';\n\nexport interface FormControlContextValue {\n id: string;\n labelId: string;\n helperId: string;\n errorId: string;\n isInvalid: boolean;\n isDisabled: boolean;\n isRequired: boolean;\n isReadOnly: boolean;\n}\n\nconst Context = createContext<FormControlContextValue | null>(null);\n\nexport interface FormControlProviderProps {\n /** Override the auto-generated id (also used as control's `id`). */\n id?: string;\n isInvalid?: boolean;\n isDisabled?: boolean;\n isRequired?: boolean;\n isReadOnly?: boolean;\n children: ReactNode;\n}\n\n/**\n * Wires Label ↔ control ↔ HelperText/ErrorMessage via stable IDs and shared\n * state flags. Used by `FormField` (L4) — atoms (Input, Label, etc.) read\n * via `useFormControl()` to get the right `id`/`htmlFor`/`aria-describedby`.\n */\nexport function FormControlProvider({\n id: providedId,\n isInvalid = false,\n isDisabled = false,\n isRequired = false,\n isReadOnly = false,\n children,\n}: FormControlProviderProps) {\n const generatedId = useId();\n const id = providedId ?? generatedId;\n const value: FormControlContextValue = {\n id,\n labelId: `${id}-label`,\n helperId: `${id}-helper`,\n errorId: `${id}-error`,\n isInvalid,\n isDisabled,\n isRequired,\n isReadOnly,\n };\n return <Context.Provider value={value}>{children}</Context.Provider>;\n}\n\n/**\n * Read the surrounding form-control context. Returns `null` when used\n * outside a provider — atoms gracefully degrade to standalone mode.\n */\nexport function useFormControl(): FormControlContextValue | null {\n return useContext(Context);\n}\n","import { type ReactNode } from 'react';\nimport { useScrollLock } from '../../hooks/useScrollLock';\n\nexport interface ScrollLockProviderProps {\n enabled?: boolean;\n children: ReactNode;\n}\n\n/**\n * Component wrapper around `useScrollLock` — handy when scroll lock should\n * follow a child's mount lifecycle (e.g. inside a Modal's portal).\n * Multiple wrappers stack; lock releases when the count reaches zero.\n */\nexport function ScrollLockProvider({ enabled = true, children }: ScrollLockProviderProps) {\n useScrollLock(enabled);\n return <>{children}</>;\n}\n"]}
@@ -1,3 +0,0 @@
1
-
2
- //# sourceMappingURL=chunk-YP4MAZRQ.js.map
3
- //# sourceMappingURL=chunk-YP4MAZRQ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-YP4MAZRQ.js"}
@@ -1,3 +0,0 @@
1
-
2
- //# sourceMappingURL=chunk-ZDU7SROW.js.map
3
- //# sourceMappingURL=chunk-ZDU7SROW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-ZDU7SROW.js"}
@@ -1,247 +0,0 @@
1
- import * as react from 'react';
2
- import { HTMLAttributes, ReactNode, ReactElement, KeyboardEvent as KeyboardEvent$1, Context } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import * as _radix_ui_react_focus_scope from '@radix-ui/react-focus-scope';
5
- import { FocusScope as FocusScope$1 } from '@radix-ui/react-focus-scope';
6
- import { Placement } from '@floating-ui/react';
7
-
8
- interface SlotProps extends HTMLAttributes<HTMLElement> {
9
- children?: React.ReactNode;
10
- }
11
- /**
12
- * Polymorphic slot — renders the single child element with the parent's props
13
- * merged in (className concatenated, handlers chained, refs composed).
14
- *
15
- * Use to enable an `asChild` API on a component:
16
- * ```tsx
17
- * <Button asChild><a href="/x">Open</a></Button>
18
- * ```
19
- */
20
- declare const Slot: react.ForwardRefExoticComponent<SlotProps & react.RefAttributes<HTMLElement>>;
21
-
22
- interface PortalProps {
23
- children: ReactNode;
24
- /** Container to render into. Default: `document.body`. */
25
- container?: HTMLElement | null;
26
- /** Optional named layer — sets `data-portal-name` on the wrapper. */
27
- name?: string;
28
- }
29
- /**
30
- * Render children into a different DOM node (default `document.body`).
31
- * Client-only — package targets pure CSR consumers.
32
- */
33
- declare function Portal({ children, container, name }: PortalProps): ReactNode;
34
-
35
- type VisuallyHiddenProps = HTMLAttributes<HTMLSpanElement>;
36
- /**
37
- * Visually hidden span — content removed from the visual layout but still
38
- * announced to screen readers. Use for accessible labels on icon-only
39
- * affordances and live-region announcements.
40
- */
41
- declare const VisuallyHidden: react.ForwardRefExoticComponent<VisuallyHiddenProps & react.RefAttributes<HTMLSpanElement>>;
42
-
43
- interface PresenceProps {
44
- /** Whether the content should be present. Toggle false to trigger exit. */
45
- present: boolean;
46
- /** Single React element child — receives `ref` and `data-state` ("open" | "closed"). */
47
- children: ReactElement;
48
- }
49
- /**
50
- * Defer unmount until the child's exit animation/transition finishes.
51
- * Pass `present={false}` to start the exit; the child stays mounted with
52
- * `data-state="closed"` until `animationend`/`transitionend` fires.
53
- */
54
- declare function Presence({ present, children }: PresenceProps): ReactElement | null;
55
-
56
- type Direction = 'ltr' | 'rtl';
57
- interface DirectionProviderProps {
58
- dir: Direction;
59
- children: ReactNode;
60
- }
61
- /**
62
- * Provide reading direction to descendants. Components that mirror in RTL
63
- * (Tabs arrow keys, Slider, Carousel, etc.) read this via `useDirection()`.
64
- */
65
- declare function DirectionProvider({ dir, children }: DirectionProviderProps): react_jsx_runtime.JSX.Element;
66
- declare function useDirection(): Direction;
67
-
68
- interface AccessibleIconProps {
69
- /** Required accessible label for the icon. */
70
- label: string;
71
- /** Single icon element — will receive `aria-hidden` so SR reads only the label. */
72
- children: ReactElement;
73
- }
74
- /**
75
- * Wrap an icon-only element with an accessible label. The icon is hidden
76
- * from assistive tech and a `VisuallyHidden` sibling provides the label.
77
- */
78
- declare function AccessibleIcon({ label, children }: AccessibleIconProps): react_jsx_runtime.JSX.Element;
79
-
80
- type FocusScopeProps = React.ComponentProps<typeof FocusScope$1>;
81
- /**
82
- * Trap focus within children. On unmount, returns focus to the previously
83
- * focused element. Pass `loop` to wrap Tab navigation; `trapped` to enable
84
- * the trap (default true while mounted).
85
- *
86
- * Wraps `@radix-ui/react-focus-scope` — battle-tested implementation.
87
- */
88
- declare const FocusScope: react.ForwardRefExoticComponent<_radix_ui_react_focus_scope.FocusScopeProps & react.RefAttributes<HTMLDivElement>>;
89
-
90
- interface DismissableLayerProps extends HTMLAttributes<HTMLDivElement> {
91
- /** Called when Escape is pressed and this is the topmost layer. */
92
- onEscape?: (event: KeyboardEvent) => void;
93
- /** Called when a pointerdown lands outside this layer's DOM and this is topmost. */
94
- onOutsidePointerDown?: (event: PointerEvent) => void;
95
- /** Disable the Escape listener for this layer. */
96
- disableEscape?: boolean;
97
- /** Disable the outside-pointer-down listener for this layer. */
98
- disableOutsideClick?: boolean;
99
- }
100
- /**
101
- * Stack-aware dismissal layer. Multiple layers may stack (modal > popover);
102
- * only the topmost reacts to Escape / outside click. Used as the base of
103
- * Modal, Drawer, Popover, Menu, HoverCard, ContextMenu.
104
- */
105
- declare const DismissableLayer: react.ForwardRefExoticComponent<DismissableLayerProps & react.RefAttributes<HTMLDivElement>>;
106
-
107
- interface AnchoredPositionerProps extends HTMLAttributes<HTMLDivElement> {
108
- /** The element the floating layer should be anchored to. */
109
- anchor: HTMLElement | null;
110
- /** Floating UI placement. Default `bottom`. */
111
- placement?: Placement;
112
- /** Distance between anchor and floating element in px. Default 8. */
113
- offset?: number;
114
- /** Render the floating element only when open. */
115
- open?: boolean;
116
- children: ReactNode;
117
- }
118
- /**
119
- * Position children relative to an anchor element using Floating UI.
120
- * Auto-flips and shifts to stay in viewport. Use as the positioning surface
121
- * for Tooltip, Popover, Menu, HoverCard.
122
- */
123
- declare const AnchoredPositioner: react.ForwardRefExoticComponent<AnchoredPositionerProps & react.RefAttributes<HTMLDivElement>>;
124
-
125
- type Orientation = 'horizontal' | 'vertical' | 'both';
126
- interface RovingFocusGroupProps extends HTMLAttributes<HTMLDivElement> {
127
- orientation?: Orientation;
128
- loop?: boolean;
129
- children: ReactNode;
130
- }
131
- /**
132
- * Provide arrow-key navigation for a group of focusable children. Children
133
- * call `useRovingFocusItem()` to register and receive `tabIndex` / event
134
- * handlers. Used by Tabs, ToggleGroup, RadioGroup, Menu.
135
- */
136
- declare function RovingFocusGroup({ orientation, loop, children, ...props }: RovingFocusGroupProps): react_jsx_runtime.JSX.Element;
137
- interface UseRovingFocusItemReturn {
138
- ref: (node: HTMLElement | null) => void;
139
- tabIndex: 0 | -1;
140
- onKeyDown: (event: KeyboardEvent$1) => void;
141
- onFocus: () => void;
142
- 'data-roving-focus-item': boolean;
143
- }
144
- /**
145
- * Inside a `RovingFocusGroup`, returns props to spread onto a focusable item.
146
- * Outside, returns inert props (tabIndex 0).
147
- */
148
- declare function useRovingFocusItem(): UseRovingFocusItemReturn;
149
-
150
- interface CollectionContextValue<T> {
151
- items: T[];
152
- register: (item: T) => void;
153
- unregister: (item: T) => void;
154
- }
155
- /**
156
- * Factory for a typed children-registry context. Compound components
157
- * (Menu, Tabs, Listbox) use this so the parent can iterate ordered children
158
- * without prop-drilling.
159
- */
160
- declare function createCollection<T>(): {
161
- Provider: (props: {
162
- children: ReactNode;
163
- }) => ReactNode;
164
- useCollection: () => CollectionContextValue<T>;
165
- Context: Context<CollectionContextValue<T> | null>;
166
- };
167
-
168
- interface FormControlContextValue {
169
- id: string;
170
- labelId: string;
171
- helperId: string;
172
- errorId: string;
173
- isInvalid: boolean;
174
- isDisabled: boolean;
175
- isRequired: boolean;
176
- isReadOnly: boolean;
177
- }
178
- interface FormControlProviderProps {
179
- /** Override the auto-generated id (also used as control's `id`). */
180
- id?: string;
181
- isInvalid?: boolean;
182
- isDisabled?: boolean;
183
- isRequired?: boolean;
184
- isReadOnly?: boolean;
185
- children: ReactNode;
186
- }
187
- /**
188
- * Wires Label ↔ control ↔ HelperText/ErrorMessage via stable IDs and shared
189
- * state flags. Used by `FormField` (L4) — atoms (Input, Label, etc.) read
190
- * via `useFormControl()` to get the right `id`/`htmlFor`/`aria-describedby`.
191
- */
192
- declare function FormControlProvider({ id: providedId, isInvalid, isDisabled, isRequired, isReadOnly, children, }: FormControlProviderProps): react_jsx_runtime.JSX.Element;
193
- /**
194
- * Read the surrounding form-control context. Returns `null` when used
195
- * outside a provider — atoms gracefully degrade to standalone mode.
196
- */
197
- declare function useFormControl(): FormControlContextValue | null;
198
-
199
- interface ScrollLockProviderProps {
200
- enabled?: boolean;
201
- children: ReactNode;
202
- }
203
- /**
204
- * Component wrapper around `useScrollLock` — handy when scroll lock should
205
- * follow a child's mount lifecycle (e.g. inside a Modal's portal).
206
- * Multiple wrappers stack; lock releases when the count reaches zero.
207
- */
208
- declare function ScrollLockProvider({ enabled, children }: ScrollLockProviderProps): react_jsx_runtime.JSX.Element;
209
-
210
- declare const index_AccessibleIcon: typeof AccessibleIcon;
211
- type index_AccessibleIconProps = AccessibleIconProps;
212
- declare const index_AnchoredPositioner: typeof AnchoredPositioner;
213
- type index_AnchoredPositionerProps = AnchoredPositionerProps;
214
- type index_CollectionContextValue<T> = CollectionContextValue<T>;
215
- type index_Direction = Direction;
216
- declare const index_DirectionProvider: typeof DirectionProvider;
217
- type index_DirectionProviderProps = DirectionProviderProps;
218
- declare const index_DismissableLayer: typeof DismissableLayer;
219
- type index_DismissableLayerProps = DismissableLayerProps;
220
- declare const index_FocusScope: typeof FocusScope;
221
- type index_FocusScopeProps = FocusScopeProps;
222
- type index_FormControlContextValue = FormControlContextValue;
223
- declare const index_FormControlProvider: typeof FormControlProvider;
224
- type index_FormControlProviderProps = FormControlProviderProps;
225
- type index_Orientation = Orientation;
226
- declare const index_Portal: typeof Portal;
227
- type index_PortalProps = PortalProps;
228
- declare const index_Presence: typeof Presence;
229
- type index_PresenceProps = PresenceProps;
230
- declare const index_RovingFocusGroup: typeof RovingFocusGroup;
231
- type index_RovingFocusGroupProps = RovingFocusGroupProps;
232
- declare const index_ScrollLockProvider: typeof ScrollLockProvider;
233
- type index_ScrollLockProviderProps = ScrollLockProviderProps;
234
- declare const index_Slot: typeof Slot;
235
- type index_SlotProps = SlotProps;
236
- type index_UseRovingFocusItemReturn = UseRovingFocusItemReturn;
237
- declare const index_VisuallyHidden: typeof VisuallyHidden;
238
- type index_VisuallyHiddenProps = VisuallyHiddenProps;
239
- declare const index_createCollection: typeof createCollection;
240
- declare const index_useDirection: typeof useDirection;
241
- declare const index_useFormControl: typeof useFormControl;
242
- declare const index_useRovingFocusItem: typeof useRovingFocusItem;
243
- declare namespace index {
244
- export { index_AccessibleIcon as AccessibleIcon, type index_AccessibleIconProps as AccessibleIconProps, index_AnchoredPositioner as AnchoredPositioner, type index_AnchoredPositionerProps as AnchoredPositionerProps, type index_CollectionContextValue as CollectionContextValue, type index_Direction as Direction, index_DirectionProvider as DirectionProvider, type index_DirectionProviderProps as DirectionProviderProps, index_DismissableLayer as DismissableLayer, type index_DismissableLayerProps as DismissableLayerProps, index_FocusScope as FocusScope, type index_FocusScopeProps as FocusScopeProps, type index_FormControlContextValue as FormControlContextValue, index_FormControlProvider as FormControlProvider, type index_FormControlProviderProps as FormControlProviderProps, type index_Orientation as Orientation, index_Portal as Portal, type index_PortalProps as PortalProps, index_Presence as Presence, type index_PresenceProps as PresenceProps, index_RovingFocusGroup as RovingFocusGroup, type index_RovingFocusGroupProps as RovingFocusGroupProps, index_ScrollLockProvider as ScrollLockProvider, type index_ScrollLockProviderProps as ScrollLockProviderProps, index_Slot as Slot, type index_SlotProps as SlotProps, type index_UseRovingFocusItemReturn as UseRovingFocusItemReturn, index_VisuallyHidden as VisuallyHidden, type index_VisuallyHiddenProps as VisuallyHiddenProps, index_createCollection as createCollection, index_useDirection as useDirection, index_useFormControl as useFormControl, index_useRovingFocusItem as useRovingFocusItem };
245
- }
246
-
247
- export { AccessibleIcon as A, type CollectionContextValue as C, type Direction as D, FocusScope as F, type Orientation as O, Portal as P, RovingFocusGroup as R, ScrollLockProvider as S, type UseRovingFocusItemReturn as U, VisuallyHidden as V, type AccessibleIconProps as a, AnchoredPositioner as b, type AnchoredPositionerProps as c, DirectionProvider as d, type DirectionProviderProps as e, DismissableLayer as f, type DismissableLayerProps as g, type FocusScopeProps as h, index as i, type FormControlContextValue as j, FormControlProvider as k, type FormControlProviderProps as l, type PortalProps as m, Presence as n, type PresenceProps as o, type RovingFocusGroupProps as p, type ScrollLockProviderProps as q, Slot as r, type SlotProps as s, type VisuallyHiddenProps as t, createCollection as u, useDirection as v, useFormControl as w, useRovingFocusItem as x };
@@ -1,61 +0,0 @@
1
- import { ClassValue } from 'clsx';
2
- import { Ref, SyntheticEvent, ElementType, ComponentPropsWithRef, PropsWithoutRef } from 'react';
3
- import { VariantProps, tv } from 'tailwind-variants';
4
-
5
- /**
6
- * Conditional class composer with Tailwind conflict-resolution.
7
- * Use anywhere you'd otherwise concatenate class strings.
8
- */
9
- declare function cn(...inputs: ClassValue[]): string;
10
-
11
- type PossibleRef<T> = Ref<T> | undefined;
12
- /**
13
- * Merge multiple React refs (callback or object) into a single callback ref.
14
- * Use to forward a ref while also keeping a local ref to the same node.
15
- */
16
- declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) => void;
17
-
18
- /**
19
- * Chain two event handlers. The first handler runs, then the second — unless
20
- * the first called `event.preventDefault()`, in which case the second is skipped.
21
- * Use when overriding a default handler from a parent while still allowing
22
- * the consumer to provide their own.
23
- */
24
- declare function composeEventHandlers<E extends SyntheticEvent>(theirHandler: ((event: E) => void) | undefined, ourHandler: (event: E) => void, { checkForDefaultPrevented }?: {
25
- checkForDefaultPrevented?: boolean;
26
- }): (event: E) => void;
27
-
28
- /**
29
- * Returns `""` when the condition is true, `undefined` otherwise.
30
- * Use for boolean `data-*` attributes — React strips the attr when value is undefined,
31
- * so the DOM cleanly toggles `data-state` rather than `data-state="false"`.
32
- */
33
- declare function dataAttr(condition: boolean | undefined): '' | undefined;
34
-
35
- /**
36
- * Props for a polymorphic component (`as` prop). Use only when a component
37
- * meaningfully changes its DOM element — most components should use `Slot`/`asChild`
38
- * instead.
39
- */
40
- type PolymorphicProps<C extends ElementType, P = object> = P & Omit<ComponentPropsWithRef<C>, keyof P | 'as'> & {
41
- as?: C;
42
- };
43
- type PolymorphicPropsWithoutRef<C extends ElementType, P = object> = P & Omit<PropsWithoutRef<ComponentPropsWithRef<C>>, keyof P | 'as'> & {
44
- as?: C;
45
- };
46
- type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>['ref'];
47
-
48
- type index_PolymorphicProps<C extends ElementType, P = object> = PolymorphicProps<C, P>;
49
- type index_PolymorphicPropsWithoutRef<C extends ElementType, P = object> = PolymorphicPropsWithoutRef<C, P>;
50
- type index_PolymorphicRef<C extends ElementType> = PolymorphicRef<C>;
51
- declare const index_VariantProps: typeof VariantProps;
52
- declare const index_cn: typeof cn;
53
- declare const index_composeEventHandlers: typeof composeEventHandlers;
54
- declare const index_composeRefs: typeof composeRefs;
55
- declare const index_dataAttr: typeof dataAttr;
56
- declare const index_tv: typeof tv;
57
- declare namespace index {
58
- export { type index_PolymorphicProps as PolymorphicProps, type index_PolymorphicPropsWithoutRef as PolymorphicPropsWithoutRef, type index_PolymorphicRef as PolymorphicRef, index_VariantProps as VariantProps, index_cn as cn, index_composeEventHandlers as composeEventHandlers, index_composeRefs as composeRefs, index_dataAttr as dataAttr, index_tv as tv };
59
- }
60
-
61
- export { type PolymorphicProps as P, type PolymorphicPropsWithoutRef as a, type PolymorphicRef as b, cn as c, composeEventHandlers as d, composeRefs as e, dataAttr as f, index as i };
@@ -1,37 +0,0 @@
1
- import * as react from 'react';
2
- import { SVGProps, ComponentType } from 'react';
3
-
4
- interface IconAdapterProps extends SVGProps<SVGSVGElement> {
5
- size?: number | string;
6
- }
7
- type IconAdapter = ComponentType<IconAdapterProps>;
8
- interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'aria-hidden'> {
9
- /** Icon component — pass a `lucide-react` icon, custom SVG component, or any matching shape. */
10
- icon: IconAdapter;
11
- /** Pixel size of the rendered SVG. Default 20. */
12
- size?: number | string;
13
- /**
14
- * Provide an aria-label when the icon stands alone (decorative siblings
15
- * should pass it via parent). Sets `role="img"` and unhides from AT.
16
- * Without it, the icon is `aria-hidden` and decorative.
17
- */
18
- 'aria-label'?: string;
19
- }
20
- /**
21
- * Generic icon wrapper. Accepts any icon component matching the lucide-react
22
- * shape (`{ size, color, className, ...svgProps }`).
23
- *
24
- * - Without `aria-label` → decorative, `aria-hidden`.
25
- * - With `aria-label` → semantic, `role="img"`.
26
- */
27
- declare const Icon: react.ForwardRefExoticComponent<Omit<IconProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
28
-
29
- declare const index_Icon: typeof Icon;
30
- type index_IconAdapter = IconAdapter;
31
- type index_IconAdapterProps = IconAdapterProps;
32
- type index_IconProps = IconProps;
33
- declare namespace index {
34
- export { index_Icon as Icon, type index_IconAdapter as IconAdapter, type index_IconAdapterProps as IconAdapterProps, type index_IconProps as IconProps };
35
- }
36
-
37
- export { Icon as I, type IconAdapter as a, type IconAdapterProps as b, type IconProps as c, index as i };
@@ -1,103 +0,0 @@
1
- import { RefObject } from 'react';
2
-
3
- /**
4
- * Wraps React 19's `useId`. Optionally accepts a stable prefix so generated
5
- * IDs are easier to spot in DevTools (e.g. `useId('checkbox')` → `:r2:-checkbox`).
6
- */
7
- declare function useId(prefix?: string): string;
8
-
9
- interface UseControlledOptions<T> {
10
- controlled: T | undefined;
11
- default: T;
12
- onChange?: (value: T) => void;
13
- }
14
- /**
15
- * Standard controlled/uncontrolled pattern.
16
- *
17
- * - If `controlled` is defined, the component is controlled — internal state is
18
- * ignored, `setValue` only fires `onChange`.
19
- * - Otherwise the component owns its state, `setValue` updates it, and `onChange`
20
- * still fires for consumers that want to observe changes.
21
- */
22
- declare function useControlled<T>({ controlled, default: defaultValue, onChange, }: UseControlledOptions<T>): [T, (value: T) => void];
23
-
24
- interface DisclosureControls {
25
- isOpen: boolean;
26
- open: () => void;
27
- close: () => void;
28
- toggle: () => void;
29
- setOpen: (next: boolean) => void;
30
- }
31
- /**
32
- * Minimal open/close state with stable callbacks. The standard backbone for
33
- * Modal, Drawer, Popover, Menu, Accordion, etc. Use `useControlled` underneath
34
- * when the consumer may also pass a controlled `open` prop.
35
- */
36
- declare function useDisclosure(initial?: boolean): DisclosureControls;
37
-
38
- type Target = Window | Document | HTMLElement | null;
39
- /**
40
- * Add an event listener and clean it up automatically. Handler is read from
41
- * a ref so consumers don't need to memoize it.
42
- */
43
- declare function useEventListener<K extends string>(event: K, handler: (event: Event) => void, target?: Target, options?: boolean | AddEventListenerOptions): void;
44
-
45
- /**
46
- * Fire `handler` when the user clicks outside any of the provided refs.
47
- * Uses `pointerdown` so it fires before focus shifts (avoids losing focus
48
- * inside an overlay before a click on a trigger registers).
49
- */
50
- declare function useOutsideClick(refs: RefObject<HTMLElement | null> | RefObject<HTMLElement | null>[], handler: (event: PointerEvent) => void, enabled?: boolean): void;
51
-
52
- /**
53
- * Fire `handler` when the Escape key is pressed at the document level.
54
- * For nested overlays, the topmost should call `event.stopPropagation()` in
55
- * its handler — `DismissableLayer` handles this stack-style.
56
- */
57
- declare function useEscape(handler: (event: KeyboardEvent) => void, enabled?: boolean): void;
58
-
59
- /**
60
- * Trap Tab / Shift+Tab focus inside the referenced element. On mount, focuses
61
- * the first focusable child (unless already focused inside). On unmount,
62
- * returns focus to the element that had it before mounting.
63
- *
64
- * For richer behavior (sentinels, nested traps), wrap `FocusScope` instead —
65
- * this hook is the lower primitive.
66
- */
67
- declare function useFocusTrap(ref: RefObject<HTMLElement | null>, enabled?: boolean): void;
68
-
69
- /**
70
- * Prevent body scroll while at least one consumer has the lock active.
71
- * Internally counted — multiple overlays may lock; only the last unlock restores.
72
- * Compensates for scrollbar width to avoid layout shift.
73
- */
74
- declare function useScrollLock(enabled?: boolean): void;
75
-
76
- /**
77
- * Run `callback` whenever the referenced element's size changes. Returns
78
- * synchronously after layout, before paint. Cleans up automatically.
79
- */
80
- declare function useResizeObserver<T extends HTMLElement>(ref: RefObject<T | null>, callback: (entry: ResizeObserverEntry) => void, enabled?: boolean): void;
81
-
82
- /**
83
- * Reactively follow a CSS media query. Pass a query string like
84
- * `'(min-width: 768px)'` or `'(prefers-reduced-motion: reduce)'`.
85
- */
86
- declare function useMediaQuery(query: string): boolean;
87
-
88
- type index_DisclosureControls = DisclosureControls;
89
- declare const index_useControlled: typeof useControlled;
90
- declare const index_useDisclosure: typeof useDisclosure;
91
- declare const index_useEscape: typeof useEscape;
92
- declare const index_useEventListener: typeof useEventListener;
93
- declare const index_useFocusTrap: typeof useFocusTrap;
94
- declare const index_useId: typeof useId;
95
- declare const index_useMediaQuery: typeof useMediaQuery;
96
- declare const index_useOutsideClick: typeof useOutsideClick;
97
- declare const index_useResizeObserver: typeof useResizeObserver;
98
- declare const index_useScrollLock: typeof useScrollLock;
99
- declare namespace index {
100
- export { type index_DisclosureControls as DisclosureControls, index_useControlled as useControlled, index_useDisclosure as useDisclosure, index_useEscape as useEscape, index_useEventListener as useEventListener, index_useFocusTrap as useFocusTrap, index_useId as useId, index_useMediaQuery as useMediaQuery, index_useOutsideClick as useOutsideClick, index_useResizeObserver as useResizeObserver, index_useScrollLock as useScrollLock };
101
- }
102
-
103
- export { type DisclosureControls as D, useDisclosure as a, useEscape as b, useEventListener as c, useFocusTrap as d, useId as e, useMediaQuery as f, useOutsideClick as g, useResizeObserver as h, index as i, useScrollLock as j, useControlled as u };