@wow-two-beta/ui 0.0.7 → 0.0.9

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 (337) hide show
  1. package/dist/actions/buttonGroup/ButtonGroup.d.ts +14 -0
  2. package/dist/actions/buttonGroup/ButtonGroup.d.ts.map +1 -0
  3. package/dist/actions/buttonGroup/index.d.ts +2 -0
  4. package/dist/actions/buttonGroup/index.d.ts.map +1 -0
  5. package/dist/actions/copyButton/CopyButton.d.ts +20 -0
  6. package/dist/actions/copyButton/CopyButton.d.ts.map +1 -0
  7. package/dist/actions/copyButton/index.d.ts +2 -0
  8. package/dist/actions/copyButton/index.d.ts.map +1 -0
  9. package/dist/actions/disclosureButton/DisclosureButton.d.ts +20 -0
  10. package/dist/actions/disclosureButton/DisclosureButton.d.ts.map +1 -0
  11. package/dist/actions/disclosureButton/index.d.ts +2 -0
  12. package/dist/actions/disclosureButton/index.d.ts.map +1 -0
  13. package/dist/actions/fab/FAB.d.ts +13 -0
  14. package/dist/actions/fab/FAB.d.ts.map +1 -0
  15. package/dist/actions/fab/FAB.variants.d.ts +130 -0
  16. package/dist/actions/fab/FAB.variants.d.ts.map +1 -0
  17. package/dist/actions/fab/index.d.ts +3 -0
  18. package/dist/actions/fab/index.d.ts.map +1 -0
  19. package/dist/actions/index.d.ts +8 -0
  20. package/dist/actions/index.d.ts.map +1 -1
  21. package/dist/actions/index.js +4 -1
  22. package/dist/actions/overlayButton/OverlayButton.d.ts +16 -0
  23. package/dist/actions/overlayButton/OverlayButton.d.ts.map +1 -0
  24. package/dist/actions/overlayButton/OverlayButton.variants.d.ts +123 -0
  25. package/dist/actions/overlayButton/OverlayButton.variants.d.ts.map +1 -0
  26. package/dist/actions/overlayButton/index.d.ts +3 -0
  27. package/dist/actions/overlayButton/index.d.ts.map +1 -0
  28. package/dist/actions/segmentedControl/SegmentedControl.d.ts +9 -0
  29. package/dist/actions/segmentedControl/SegmentedControl.d.ts.map +1 -0
  30. package/dist/actions/segmentedControl/index.d.ts +2 -0
  31. package/dist/actions/segmentedControl/index.d.ts.map +1 -0
  32. package/dist/actions/toggleButton/ToggleButton.d.ts +16 -0
  33. package/dist/actions/toggleButton/ToggleButton.d.ts.map +1 -0
  34. package/dist/actions/toggleButton/ToggleButton.variants.d.ts +81 -0
  35. package/dist/actions/toggleButton/ToggleButton.variants.d.ts.map +1 -0
  36. package/dist/actions/toggleButton/index.d.ts +3 -0
  37. package/dist/actions/toggleButton/index.d.ts.map +1 -0
  38. package/dist/actions/toggleButtonGroup/ToggleButtonGroup.d.ts +25 -0
  39. package/dist/actions/toggleButtonGroup/ToggleButtonGroup.d.ts.map +1 -0
  40. package/dist/actions/toggleButtonGroup/index.d.ts +2 -0
  41. package/dist/actions/toggleButtonGroup/index.d.ts.map +1 -0
  42. package/dist/chunk-3KGYKBW6.js +697 -0
  43. package/dist/chunk-3KGYKBW6.js.map +1 -0
  44. package/dist/{chunk-6NYTRHP7.js → chunk-4P2TFUVW.js} +39 -5
  45. package/dist/chunk-4P2TFUVW.js.map +1 -0
  46. package/dist/chunk-55Y2JOBV.js +774 -0
  47. package/dist/chunk-55Y2JOBV.js.map +1 -0
  48. package/dist/{chunk-JCMV6IT4.js → chunk-CZ6FQILQ.js} +30 -5
  49. package/dist/chunk-CZ6FQILQ.js.map +1 -0
  50. package/dist/chunk-D5CHR6RX.js +423 -0
  51. package/dist/chunk-D5CHR6RX.js.map +1 -0
  52. package/dist/{chunk-77WSI427.js → chunk-KDXJQNB6.js} +9 -5
  53. package/dist/chunk-KDXJQNB6.js.map +1 -0
  54. package/dist/{chunk-SYG6ZE42.js → chunk-NKGNOOXJ.js} +116 -4
  55. package/dist/chunk-NKGNOOXJ.js.map +1 -0
  56. package/dist/chunk-RIW2V3N4.js +596 -0
  57. package/dist/chunk-RIW2V3N4.js.map +1 -0
  58. package/dist/chunk-SBVWECJP.js +2034 -0
  59. package/dist/chunk-SBVWECJP.js.map +1 -0
  60. package/dist/display/avatarGroup/AvatarGroup.d.ts +16 -0
  61. package/dist/display/avatarGroup/AvatarGroup.d.ts.map +1 -0
  62. package/dist/display/avatarGroup/index.d.ts +2 -0
  63. package/dist/display/avatarGroup/index.d.ts.map +1 -0
  64. package/dist/display/badgeOverlay/BadgeOverlay.d.ts +18 -0
  65. package/dist/display/badgeOverlay/BadgeOverlay.d.ts.map +1 -0
  66. package/dist/display/badgeOverlay/index.d.ts +2 -0
  67. package/dist/display/badgeOverlay/index.d.ts.map +1 -0
  68. package/dist/display/card/Card.d.ts +20 -0
  69. package/dist/display/card/Card.d.ts.map +1 -0
  70. package/dist/display/card/index.d.ts +2 -0
  71. package/dist/display/card/index.d.ts.map +1 -0
  72. package/dist/display/countBadge/CountBadge.d.ts +18 -0
  73. package/dist/display/countBadge/CountBadge.d.ts.map +1 -0
  74. package/dist/display/countBadge/index.d.ts +2 -0
  75. package/dist/display/countBadge/index.d.ts.map +1 -0
  76. package/dist/display/descriptionList/DescriptionList.d.ts +18 -0
  77. package/dist/display/descriptionList/DescriptionList.d.ts.map +1 -0
  78. package/dist/display/descriptionList/index.d.ts +2 -0
  79. package/dist/display/descriptionList/index.d.ts.map +1 -0
  80. package/dist/display/emptyState/EmptyState.d.ts +19 -0
  81. package/dist/display/emptyState/EmptyState.d.ts.map +1 -0
  82. package/dist/display/emptyState/index.d.ts +2 -0
  83. package/dist/display/emptyState/index.d.ts.map +1 -0
  84. package/dist/display/highlight/Highlight.d.ts +16 -0
  85. package/dist/display/highlight/Highlight.d.ts.map +1 -0
  86. package/dist/display/highlight/index.d.ts +2 -0
  87. package/dist/display/highlight/index.d.ts.map +1 -0
  88. package/dist/display/index.d.ts +15 -0
  89. package/dist/display/index.d.ts.map +1 -1
  90. package/dist/display/index.js +6 -2
  91. package/dist/display/infoRow/InfoRow.d.ts +16 -0
  92. package/dist/display/infoRow/InfoRow.d.ts.map +1 -0
  93. package/dist/display/infoRow/index.d.ts +2 -0
  94. package/dist/display/infoRow/index.d.ts.map +1 -0
  95. package/dist/display/keyboardShortcut/KeyboardShortcut.d.ts +13 -0
  96. package/dist/display/keyboardShortcut/KeyboardShortcut.d.ts.map +1 -0
  97. package/dist/display/keyboardShortcut/index.d.ts +2 -0
  98. package/dist/display/keyboardShortcut/index.d.ts.map +1 -0
  99. package/dist/display/notificationDot/NotificationDot.d.ts +15 -0
  100. package/dist/display/notificationDot/NotificationDot.d.ts.map +1 -0
  101. package/dist/display/notificationDot/index.d.ts +2 -0
  102. package/dist/display/notificationDot/index.d.ts.map +1 -0
  103. package/dist/display/sectionHeader/SectionHeader.d.ts +21 -0
  104. package/dist/display/sectionHeader/SectionHeader.d.ts.map +1 -0
  105. package/dist/display/sectionHeader/index.d.ts +2 -0
  106. package/dist/display/sectionHeader/index.d.ts.map +1 -0
  107. package/dist/display/snippet/Snippet.d.ts +15 -0
  108. package/dist/display/snippet/Snippet.d.ts.map +1 -0
  109. package/dist/display/snippet/index.d.ts +2 -0
  110. package/dist/display/snippet/index.d.ts.map +1 -0
  111. package/dist/display/stat/Stat.d.ts +22 -0
  112. package/dist/display/stat/Stat.d.ts.map +1 -0
  113. package/dist/display/stat/index.d.ts +2 -0
  114. package/dist/display/stat/index.d.ts.map +1 -0
  115. package/dist/display/status/Status.d.ts +14 -0
  116. package/dist/display/status/Status.d.ts.map +1 -0
  117. package/dist/display/status/index.d.ts +2 -0
  118. package/dist/display/status/index.d.ts.map +1 -0
  119. package/dist/display/tooltip/Tooltip.d.ts +25 -0
  120. package/dist/display/tooltip/Tooltip.d.ts.map +1 -0
  121. package/dist/display/tooltip/index.d.ts +2 -0
  122. package/dist/display/tooltip/index.d.ts.map +1 -0
  123. package/dist/feedback/alert/Alert.d.ts +22 -0
  124. package/dist/feedback/alert/Alert.d.ts.map +1 -0
  125. package/dist/feedback/alert/index.d.ts +2 -0
  126. package/dist/feedback/alert/index.d.ts.map +1 -0
  127. package/dist/feedback/banner/Banner.d.ts +16 -0
  128. package/dist/feedback/banner/Banner.d.ts.map +1 -0
  129. package/dist/feedback/banner/index.d.ts +2 -0
  130. package/dist/feedback/banner/index.d.ts.map +1 -0
  131. package/dist/feedback/callout/Callout.d.ts +13 -0
  132. package/dist/feedback/callout/Callout.d.ts.map +1 -0
  133. package/dist/feedback/callout/index.d.ts +2 -0
  134. package/dist/feedback/callout/index.d.ts.map +1 -0
  135. package/dist/feedback/index.d.ts +10 -0
  136. package/dist/feedback/index.d.ts.map +1 -1
  137. package/dist/feedback/index.js +2 -1
  138. package/dist/feedback/inlineSpinner/InlineSpinner.d.ts +14 -0
  139. package/dist/feedback/inlineSpinner/InlineSpinner.d.ts.map +1 -0
  140. package/dist/feedback/inlineSpinner/index.d.ts +2 -0
  141. package/dist/feedback/inlineSpinner/index.d.ts.map +1 -0
  142. package/dist/feedback/loadingState/LoadingState.d.ts +15 -0
  143. package/dist/feedback/loadingState/LoadingState.d.ts.map +1 -0
  144. package/dist/feedback/loadingState/index.d.ts +2 -0
  145. package/dist/feedback/loadingState/index.d.ts.map +1 -0
  146. package/dist/feedback/meterBar/MeterBar.d.ts +18 -0
  147. package/dist/feedback/meterBar/MeterBar.d.ts.map +1 -0
  148. package/dist/feedback/meterBar/index.d.ts +2 -0
  149. package/dist/feedback/meterBar/index.d.ts.map +1 -0
  150. package/dist/feedback/progressSteps/ProgressSteps.d.ts +16 -0
  151. package/dist/feedback/progressSteps/ProgressSteps.d.ts.map +1 -0
  152. package/dist/feedback/progressSteps/index.d.ts +2 -0
  153. package/dist/feedback/progressSteps/index.d.ts.map +1 -0
  154. package/dist/feedback/statusIndicator/StatusIndicator.d.ts +17 -0
  155. package/dist/feedback/statusIndicator/StatusIndicator.d.ts.map +1 -0
  156. package/dist/feedback/statusIndicator/index.d.ts +2 -0
  157. package/dist/feedback/statusIndicator/index.d.ts.map +1 -0
  158. package/dist/feedback/toast/Toast.d.ts +16 -0
  159. package/dist/feedback/toast/Toast.d.ts.map +1 -0
  160. package/dist/feedback/toast/index.d.ts +2 -0
  161. package/dist/feedback/toast/index.d.ts.map +1 -0
  162. package/dist/feedback/trendIndicator/TrendIndicator.d.ts +18 -0
  163. package/dist/feedback/trendIndicator/TrendIndicator.d.ts.map +1 -0
  164. package/dist/feedback/trendIndicator/index.d.ts +2 -0
  165. package/dist/feedback/trendIndicator/index.d.ts.map +1 -0
  166. package/dist/forms/characterCount/CharacterCount.d.ts +15 -0
  167. package/dist/forms/characterCount/CharacterCount.d.ts.map +1 -0
  168. package/dist/forms/characterCount/index.d.ts +2 -0
  169. package/dist/forms/characterCount/index.d.ts.map +1 -0
  170. package/dist/forms/checkboxField/CheckboxField.d.ts +16 -0
  171. package/dist/forms/checkboxField/CheckboxField.d.ts.map +1 -0
  172. package/dist/forms/checkboxField/index.d.ts +2 -0
  173. package/dist/forms/checkboxField/index.d.ts.map +1 -0
  174. package/dist/forms/checkboxGroup/CheckboxGroup.d.ts +24 -0
  175. package/dist/forms/checkboxGroup/CheckboxGroup.d.ts.map +1 -0
  176. package/dist/forms/checkboxGroup/index.d.ts +2 -0
  177. package/dist/forms/checkboxGroup/index.d.ts.map +1 -0
  178. package/dist/forms/choiceCard/ChoiceCard.d.ts +17 -0
  179. package/dist/forms/choiceCard/ChoiceCard.d.ts.map +1 -0
  180. package/dist/forms/choiceCard/index.d.ts +2 -0
  181. package/dist/forms/choiceCard/index.d.ts.map +1 -0
  182. package/dist/forms/combobox/Combobox.d.ts +55 -0
  183. package/dist/forms/combobox/Combobox.d.ts.map +1 -0
  184. package/dist/forms/combobox/index.d.ts +2 -0
  185. package/dist/forms/combobox/index.d.ts.map +1 -0
  186. package/dist/forms/currencyInput/CurrencyInput.d.ts +11 -0
  187. package/dist/forms/currencyInput/CurrencyInput.d.ts.map +1 -0
  188. package/dist/forms/currencyInput/index.d.ts +2 -0
  189. package/dist/forms/currencyInput/index.d.ts.map +1 -0
  190. package/dist/forms/filePicker/FilePicker.d.ts +18 -0
  191. package/dist/forms/filePicker/FilePicker.d.ts.map +1 -0
  192. package/dist/forms/filePicker/index.d.ts +2 -0
  193. package/dist/forms/filePicker/index.d.ts.map +1 -0
  194. package/dist/forms/formField/FormField.d.ts +24 -0
  195. package/dist/forms/formField/FormField.d.ts.map +1 -0
  196. package/dist/forms/formField/index.d.ts +2 -0
  197. package/dist/forms/formField/index.d.ts.map +1 -0
  198. package/dist/forms/index.d.ts +21 -0
  199. package/dist/forms/index.d.ts.map +1 -1
  200. package/dist/forms/index.js +6 -4
  201. package/dist/forms/inputAddon/InputAddon.d.ts +16 -0
  202. package/dist/forms/inputAddon/InputAddon.d.ts.map +1 -0
  203. package/dist/forms/inputAddon/index.d.ts +2 -0
  204. package/dist/forms/inputAddon/index.d.ts.map +1 -0
  205. package/dist/forms/inputGroup/InputGroup.d.ts +11 -0
  206. package/dist/forms/inputGroup/InputGroup.d.ts.map +1 -0
  207. package/dist/forms/inputGroup/index.d.ts +2 -0
  208. package/dist/forms/inputGroup/index.d.ts.map +1 -0
  209. package/dist/forms/labeledInput/LabeledInput.d.ts +17 -0
  210. package/dist/forms/labeledInput/LabeledInput.d.ts.map +1 -0
  211. package/dist/forms/labeledInput/index.d.ts +2 -0
  212. package/dist/forms/labeledInput/index.d.ts.map +1 -0
  213. package/dist/forms/listbox/Listbox.d.ts +44 -0
  214. package/dist/forms/listbox/Listbox.d.ts.map +1 -0
  215. package/dist/forms/listbox/Listbox.variants.d.ts +58 -0
  216. package/dist/forms/listbox/Listbox.variants.d.ts.map +1 -0
  217. package/dist/forms/listbox/index.d.ts +2 -0
  218. package/dist/forms/listbox/index.d.ts.map +1 -0
  219. package/dist/forms/maskedInput/MaskedInput.d.ts +17 -0
  220. package/dist/forms/maskedInput/MaskedInput.d.ts.map +1 -0
  221. package/dist/forms/maskedInput/index.d.ts +2 -0
  222. package/dist/forms/maskedInput/index.d.ts.map +1 -0
  223. package/dist/forms/multiSelect/MultiSelect.d.ts +47 -0
  224. package/dist/forms/multiSelect/MultiSelect.d.ts.map +1 -0
  225. package/dist/forms/multiSelect/index.d.ts +2 -0
  226. package/dist/forms/multiSelect/index.d.ts.map +1 -0
  227. package/dist/forms/passwordStrength/PasswordStrength.d.ts +15 -0
  228. package/dist/forms/passwordStrength/PasswordStrength.d.ts.map +1 -0
  229. package/dist/forms/passwordStrength/index.d.ts +2 -0
  230. package/dist/forms/passwordStrength/index.d.ts.map +1 -0
  231. package/dist/forms/percentInput/PercentInput.d.ts +8 -0
  232. package/dist/forms/percentInput/PercentInput.d.ts.map +1 -0
  233. package/dist/forms/percentInput/index.d.ts +2 -0
  234. package/dist/forms/percentInput/index.d.ts.map +1 -0
  235. package/dist/forms/pinInput/PinInput.d.ts +26 -0
  236. package/dist/forms/pinInput/PinInput.d.ts.map +1 -0
  237. package/dist/forms/pinInput/index.d.ts +2 -0
  238. package/dist/forms/pinInput/index.d.ts.map +1 -0
  239. package/dist/forms/radioField/RadioField.d.ts +12 -0
  240. package/dist/forms/radioField/RadioField.d.ts.map +1 -0
  241. package/dist/forms/radioField/index.d.ts +2 -0
  242. package/dist/forms/radioField/index.d.ts.map +1 -0
  243. package/dist/forms/radioGroup/RadioGroup.d.ts +19 -0
  244. package/dist/forms/radioGroup/RadioGroup.d.ts.map +1 -0
  245. package/dist/forms/radioGroup/index.d.ts +2 -0
  246. package/dist/forms/radioGroup/index.d.ts.map +1 -0
  247. package/dist/forms/select/Select.d.ts +55 -0
  248. package/dist/forms/select/Select.d.ts.map +1 -0
  249. package/dist/forms/select/Select.variants.d.ts +74 -0
  250. package/dist/forms/select/Select.variants.d.ts.map +1 -0
  251. package/dist/forms/select/index.d.ts +2 -0
  252. package/dist/forms/select/index.d.ts.map +1 -0
  253. package/dist/forms/switchField/SwitchField.d.ts +15 -0
  254. package/dist/forms/switchField/SwitchField.d.ts.map +1 -0
  255. package/dist/forms/switchField/index.d.ts +2 -0
  256. package/dist/forms/switchField/index.d.ts.map +1 -0
  257. package/dist/hooks/index.d.ts +1 -0
  258. package/dist/hooks/index.d.ts.map +1 -1
  259. package/dist/hooks/index.js +2 -3
  260. package/dist/hooks/useClipboard.d.ts +21 -0
  261. package/dist/hooks/useClipboard.d.ts.map +1 -0
  262. package/dist/index.d.ts +1 -0
  263. package/dist/index.d.ts.map +1 -1
  264. package/dist/index.js +10 -11
  265. package/dist/layout/cluster/Cluster.d.ts +13 -0
  266. package/dist/layout/cluster/Cluster.d.ts.map +1 -0
  267. package/dist/layout/cluster/index.d.ts +2 -0
  268. package/dist/layout/cluster/index.d.ts.map +1 -0
  269. package/dist/layout/frame/Frame.d.ts +17 -0
  270. package/dist/layout/frame/Frame.d.ts.map +1 -0
  271. package/dist/layout/frame/index.d.ts +2 -0
  272. package/dist/layout/frame/index.d.ts.map +1 -0
  273. package/dist/layout/index.d.ts +4 -0
  274. package/dist/layout/index.d.ts.map +1 -1
  275. package/dist/layout/index.js +1 -1
  276. package/dist/layout/inline/Inline.d.ts +13 -0
  277. package/dist/layout/inline/Inline.d.ts.map +1 -0
  278. package/dist/layout/inline/index.d.ts +2 -0
  279. package/dist/layout/inline/index.d.ts.map +1 -0
  280. package/dist/layout/twoColumn/TwoColumn.d.ts +19 -0
  281. package/dist/layout/twoColumn/TwoColumn.d.ts.map +1 -0
  282. package/dist/layout/twoColumn/index.d.ts +2 -0
  283. package/dist/layout/twoColumn/index.d.ts.map +1 -0
  284. package/dist/nav/breadcrumb/Breadcrumb.d.ts +18 -0
  285. package/dist/nav/breadcrumb/Breadcrumb.d.ts.map +1 -0
  286. package/dist/nav/breadcrumb/index.d.ts +2 -0
  287. package/dist/nav/breadcrumb/index.d.ts.map +1 -0
  288. package/dist/nav/contextMenu/ContextMenu.d.ts +31 -0
  289. package/dist/nav/contextMenu/ContextMenu.d.ts.map +1 -0
  290. package/dist/nav/contextMenu/index.d.ts +2 -0
  291. package/dist/nav/contextMenu/index.d.ts.map +1 -0
  292. package/dist/nav/dropdownMenu/DropdownMenu.d.ts +34 -0
  293. package/dist/nav/dropdownMenu/DropdownMenu.d.ts.map +1 -0
  294. package/dist/nav/dropdownMenu/index.d.ts +2 -0
  295. package/dist/nav/dropdownMenu/index.d.ts.map +1 -0
  296. package/dist/nav/index.d.ts +8 -0
  297. package/dist/nav/index.d.ts.map +1 -0
  298. package/dist/nav/index.js +12 -0
  299. package/dist/nav/index.js.map +1 -0
  300. package/dist/nav/menu/Menu.d.ts +38 -0
  301. package/dist/nav/menu/Menu.d.ts.map +1 -0
  302. package/dist/nav/menu/Menu.variants.d.ts +50 -0
  303. package/dist/nav/menu/Menu.variants.d.ts.map +1 -0
  304. package/dist/nav/menu/index.d.ts +3 -0
  305. package/dist/nav/menu/index.d.ts.map +1 -0
  306. package/dist/nav/menubar/Menubar.d.ts +40 -0
  307. package/dist/nav/menubar/Menubar.d.ts.map +1 -0
  308. package/dist/nav/menubar/Menubar.variants.d.ts +5 -0
  309. package/dist/nav/menubar/Menubar.variants.d.ts.map +1 -0
  310. package/dist/nav/menubar/index.d.ts +2 -0
  311. package/dist/nav/menubar/index.d.ts.map +1 -0
  312. package/dist/nav/navItem/NavItem.d.ts +22 -0
  313. package/dist/nav/navItem/NavItem.d.ts.map +1 -0
  314. package/dist/nav/navItem/index.d.ts +2 -0
  315. package/dist/nav/navItem/index.d.ts.map +1 -0
  316. package/dist/nav/pagination/Pagination.d.ts +19 -0
  317. package/dist/nav/pagination/Pagination.d.ts.map +1 -0
  318. package/dist/nav/pagination/index.d.ts +2 -0
  319. package/dist/nav/pagination/index.d.ts.map +1 -0
  320. package/dist/primitives/index.js +2 -4
  321. package/package.json +5 -1
  322. package/dist/chunk-62NXDB5V.js +0 -275
  323. package/dist/chunk-62NXDB5V.js.map +0 -1
  324. package/dist/chunk-6NYTRHP7.js.map +0 -1
  325. package/dist/chunk-77WSI427.js.map +0 -1
  326. package/dist/chunk-DBQ4VF2J.js +0 -318
  327. package/dist/chunk-DBQ4VF2J.js.map +0 -1
  328. package/dist/chunk-HVJVLK6B.js +0 -120
  329. package/dist/chunk-HVJVLK6B.js.map +0 -1
  330. package/dist/chunk-JCMV6IT4.js.map +0 -1
  331. package/dist/chunk-JTJEI6MF.js +0 -11
  332. package/dist/chunk-JTJEI6MF.js.map +0 -1
  333. package/dist/chunk-Q27NAHVB.js +0 -34
  334. package/dist/chunk-Q27NAHVB.js.map +0 -1
  335. package/dist/chunk-SYG6ZE42.js.map +0 -1
  336. package/dist/chunk-TDEEVNSD.js +0 -604
  337. package/dist/chunk-TDEEVNSD.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/display/heading/Heading.variants.ts","../src/display/heading/Heading.tsx","../src/display/text/Text.variants.ts","../src/display/text/Text.tsx","../src/display/code/Code.variants.ts","../src/display/code/Code.tsx","../src/display/kbd/Kbd.tsx","../src/display/image/Image.tsx","../src/display/avatar/Avatar.variants.ts","../src/display/avatar/Avatar.tsx","../src/display/badge/Badge.variants.ts","../src/display/badge/Badge.tsx","../src/display/tag/Tag.variants.ts","../src/display/tag/Tag.tsx","../src/display/separator/Separator.tsx","../src/display/mark/Mark.tsx","../src/display/quote/Quote.tsx"],"names":["Tag","forwardRef","jsx","useState"],"mappings":";;;;;;;;AAEO,IAAM,kBAAkB,EAAA,CAAG;AAAA,EAChC,IAAA,EAAM,8CAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI,SAAA;AAAA,MACJ,EAAA,EAAI,WAAA;AAAA,MACJ,EAAA,EAAI,SAAA;AAAA,MACJ,EAAA,EAAI,SAAA;AAAA,MACJ,EAAA,EAAI,UAAA;AAAA,MACJ,KAAA,EAAO,UAAA;AAAA,MACP,KAAA,EAAO,UAAA;AAAA,MACP,KAAA,EAAO;AAAA,KACT;AAAA,IACA,MAAA,EAAQ;AAAA,MACN,MAAA,EAAQ,aAAA;AAAA,MACR,MAAA,EAAQ,aAAA;AAAA,MACR,QAAA,EAAU,eAAA;AAAA,MACV,IAAA,EAAM;AAAA,KACR;AAAA,IACA,KAAA,EAAO;AAAA,MACL,IAAA,EAAM,WAAA;AAAA,MACN,MAAA,EAAQ,aAAA;AAAA,MACR,KAAA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AG,GAAA,qBACvEC,GAAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,IAAA,EAAM,aAAa,MAAA,GAAS,WAAA;AAAA,MAC5B,kBAAA,EAAkB,aAAa,MAAA,GAAY,WAAA;AAAA,MAC3C,SAAA,EAAW,EAAA;AAAA,QACT,WAAA;AAAA,QACA,WAAA,KAAgB,eAAe,aAAA,GAAgB,mBAAA;AAAA,QAC/C;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA;AAGV;AACA,SAAA,CAAU,WAAA,GAAc,WAAA;ACpBjB,IAAM,IAAA,GAAOD,WAAmC,CAAC,EAAE,WAAW,GAAG,KAAA,EAAM,EAAG,GAAA,qBAC/EC,GAAAA;AAAA,EAAC,MAAA;AAAA,EAAA;AAAA,IACC,GAAA;AAAA,IACA,SAAA,EAAW,EAAA,CAAG,gEAAA,EAAkE,SAAS,CAAA;AAAA,IACxF,GAAG;AAAA;AACN,CACD;AACD,IAAA,CAAK,WAAA,GAAc,MAAA;ACRZ,IAAM,KAAA,GAAQD,UAAAA;AAAA,EACnB,CAAC,EAAE,SAAA,EAAW,GAAG,KAAA,EAAM,EAAG,wBACxBC,GAAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,SAAA,EAAW,EAAA;AAAA,QACT,4DAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA;AAGV;AACA,KAAA,CAAM,WAAA,GAAc,OAAA","file":"chunk-DBQ4VF2J.js","sourcesContent":["import { tv, type VariantProps } from '../../utils';\n\nexport const headingVariants = tv({\n base: 'font-semibold tracking-tight text-foreground',\n variants: {\n size: {\n xs: 'text-sm',\n sm: 'text-base',\n md: 'text-lg',\n lg: 'text-xl',\n xl: 'text-2xl',\n '2xl': 'text-3xl',\n '3xl': 'text-4xl',\n '4xl': 'text-5xl',\n },\n weight: {\n normal: 'font-normal',\n medium: 'font-medium',\n semibold: 'font-semibold',\n bold: 'font-bold',\n },\n align: {\n left: 'text-left',\n center: 'text-center',\n right: 'text-right',\n },\n },\n defaultVariants: {\n size: 'lg',\n weight: 'semibold',\n },\n});\n\nexport type HeadingVariants = VariantProps<typeof headingVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { headingVariants, type HeadingVariants } from './Heading.variants';\n\ntype HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;\n\nexport interface HeadingProps\n extends Omit<ComponentPropsWithoutRef<'h2'>, 'size'>,\n HeadingVariants {\n /** Semantic heading level (1–6). Default 2. Visual size is independent — set via `size`. */\n level?: HeadingLevel;\n}\n\n/**\n * Semantic heading. `level` controls the rendered tag (`h1`–`h6`); `size`\n * controls the visual scale independently — so a visually-large heading\n * can still be the right outline level.\n */\nexport const Heading = forwardRef<HTMLHeadingElement, HeadingProps>(\n ({ level = 2, className, size, weight, align, ...props }, ref) => {\n const Tag = `h${level}` as 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n return (\n <Tag\n ref={ref}\n className={cn(headingVariants({ size, weight, align }), className)}\n {...props}\n />\n );\n },\n);\nHeading.displayName = 'Heading';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const textVariants = tv({\n base: '',\n variants: {\n size: {\n xs: 'text-xs',\n sm: 'text-sm',\n md: 'text-base',\n lg: 'text-lg',\n xl: 'text-xl',\n },\n weight: {\n normal: 'font-normal',\n medium: 'font-medium',\n semibold: 'font-semibold',\n bold: 'font-bold',\n },\n color: {\n default: 'text-foreground',\n muted: 'text-muted-foreground',\n subtle: 'text-subtle-foreground',\n brand: 'text-primary',\n success: 'text-success',\n warning: 'text-warning',\n danger: 'text-destructive',\n },\n align: {\n left: 'text-left',\n center: 'text-center',\n right: 'text-right',\n justify: 'text-justify',\n },\n truncate: {\n true: 'truncate',\n },\n },\n defaultVariants: {\n size: 'md',\n weight: 'normal',\n color: 'default',\n },\n});\n\nexport type TextVariants = VariantProps<typeof textVariants>;\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementType,\n type Ref,\n} from 'react';\nimport { cn } from '../../utils';\nimport { textVariants, type TextVariants } from './Text.variants';\n\nexport interface TextProps\n extends Omit<ComponentPropsWithoutRef<'p'>, 'as' | 'color'>,\n TextVariants {\n as?: ElementType;\n}\n\n/**\n * Body text. Renders as `<p>` by default; pass `as=\"span\"` (or any element)\n * to keep semantics consistent with the surrounding markup.\n */\nexport const Text = forwardRef<HTMLElement, TextProps>(\n ({ as: Component = 'p', className, size, weight, color, align, truncate, ...props }, ref) => (\n <Component\n ref={ref as Ref<HTMLElement>}\n className={cn(textVariants({ size, weight, color, align, truncate }), className)}\n {...props}\n />\n ),\n);\nText.displayName = 'Text';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const codeVariants = tv({\n base: 'font-mono text-sm',\n variants: {\n variant: {\n inline: 'rounded-sm bg-muted px-1 py-0.5 text-foreground',\n block: 'block w-full overflow-x-auto rounded-md bg-muted p-4 text-foreground',\n },\n },\n defaultVariants: {\n variant: 'inline',\n },\n});\n\nexport type CodeVariants = VariantProps<typeof codeVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { codeVariants, type CodeVariants } from './Code.variants';\n\nexport interface CodeProps extends ComponentPropsWithoutRef<'code'>, CodeVariants {}\n\n/**\n * Inline or block code. For block, wrap children in a `<pre>` if you need\n * pre-wrap whitespace; this atom only styles. Syntax highlighting is L5.\n */\nexport const Code = forwardRef<HTMLElement, CodeProps>(\n ({ className, variant, ...props }, ref) => (\n <code ref={ref} className={cn(codeVariants({ variant }), className)} {...props} />\n ),\n);\nCode.displayName = 'Code';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport type KbdProps = ComponentPropsWithoutRef<'kbd'>;\n\n/**\n * Keyboard key affordance — `<kbd>` styled with subtle border and inset\n * shadow. Single key per `<Kbd>`; chain via `<Kbd>⌘</Kbd> + <Kbd>K</Kbd>`.\n */\nexport const Kbd = forwardRef<HTMLElement, KbdProps>(({ className, ...props }, ref) => (\n <kbd\n ref={ref}\n className={cn(\n 'inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border',\n 'bg-muted px-1.5 font-mono text-xs text-muted-foreground shadow-[inset_0_-1px_0_0_rgb(0_0_0/0.05)]',\n className,\n )}\n {...props}\n />\n));\nKbd.displayName = 'Kbd';\n","import { forwardRef, useState, type ComponentPropsWithoutRef, type ReactNode } from 'react';\nimport { cn } from '../../utils';\n\nexport interface ImageProps extends ComponentPropsWithoutRef<'img'> {\n /** Element rendered when the image fails to load. */\n fallback?: ReactNode;\n}\n\n/**\n * Image with built-in error fallback. The fallback element replaces the\n * `<img>` on error (broken `src`, network failure). For aspect-locked\n * images, wrap in `AspectRatio`.\n */\nexport const Image = forwardRef<HTMLImageElement, ImageProps>(\n ({ fallback, onError, alt = '', className, ...props }, ref) => {\n const [errored, setErrored] = useState(false);\n if (errored && fallback !== undefined) return <>{fallback}</>;\n return (\n <img\n ref={ref}\n alt={alt}\n className={cn('block max-w-full', className)}\n onError={(e) => {\n setErrored(true);\n onError?.(e);\n }}\n {...props}\n />\n );\n },\n);\nImage.displayName = 'Image';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const avatarVariants = tv({\n base: 'inline-flex shrink-0 select-none items-center justify-center overflow-hidden rounded-full bg-muted text-muted-foreground font-medium',\n variants: {\n size: {\n xs: 'h-6 w-6 text-xs',\n sm: 'h-8 w-8 text-sm',\n md: 'h-10 w-10 text-base',\n lg: 'h-12 w-12 text-lg',\n xl: 'h-16 w-16 text-xl',\n '2xl': 'h-20 w-20 text-2xl',\n },\n shape: {\n circle: 'rounded-full',\n square: 'rounded-md',\n },\n },\n defaultVariants: {\n size: 'md',\n shape: 'circle',\n },\n});\n\nexport type AvatarVariants = VariantProps<typeof avatarVariants>;\n","import {\n forwardRef,\n useState,\n type ComponentPropsWithoutRef,\n type ReactNode,\n} from 'react';\nimport { cn } from '../../utils';\nimport { avatarVariants, type AvatarVariants } from './Avatar.variants';\n\nexport interface AvatarProps\n extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>,\n AvatarVariants {\n /** Image source. Falls back to `name` initials or `fallback` on error. */\n src?: string;\n /** Person/entity name — used to derive initials when no image. */\n name?: string;\n /** Custom fallback (overrides initials). */\n fallback?: ReactNode;\n /** Alt text for the underlying `<img>`. Defaults to `name`. */\n alt?: string;\n}\n\nfunction getInitials(name: string): string {\n const parts = name.trim().split(/\\s+/);\n if (parts.length === 0) return '';\n const first = parts[0]?.[0] ?? '';\n const last = parts.length > 1 ? parts[parts.length - 1]?.[0] ?? '' : '';\n return (first + last).toUpperCase();\n}\n\n/**\n * Image avatar with initials fallback. Strict atom — fallback is rendered\n * inline (raw text), not via the `Text` atom, to keep this self-contained.\n */\nexport const Avatar = forwardRef<HTMLSpanElement, AvatarProps>(\n ({ src, name = '', fallback, alt, className, size, shape, ...props }, ref) => {\n const [errored, setErrored] = useState(false);\n const showImage = src && !errored;\n return (\n <span\n ref={ref}\n className={cn(avatarVariants({ size, shape }), className)}\n {...props}\n >\n {showImage ? (\n <img\n src={src}\n alt={alt ?? name}\n className=\"h-full w-full object-cover\"\n onError={() => setErrored(true)}\n />\n ) : (\n fallback ?? getInitials(name)\n )}\n </span>\n );\n },\n);\nAvatar.displayName = 'Avatar';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const badgeVariants = tv({\n base: 'inline-flex items-center rounded-full font-medium',\n variants: {\n variant: {\n neutral: 'bg-muted text-foreground',\n brand: 'bg-primary-soft text-primary-soft-foreground',\n success: 'bg-success-soft text-success-soft-foreground',\n warning: 'bg-warning-soft text-warning-soft-foreground',\n danger: 'bg-destructive-soft text-destructive-soft-foreground',\n info: 'bg-info-soft text-info-soft-foreground',\n outline: 'border border-border text-foreground',\n },\n size: {\n sm: 'h-5 px-2 text-xs',\n md: 'h-6 px-2.5 text-xs',\n lg: 'h-7 px-3 text-sm',\n },\n },\n defaultVariants: {\n variant: 'neutral',\n size: 'md',\n },\n});\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\nimport { badgeVariants, type BadgeVariants } from './Badge.variants';\n\nexport interface BadgeProps extends ComponentPropsWithoutRef<'span'>, BadgeVariants {}\n\n/**\n * Pill-shaped status / category indicator. Non-interactive — for clickable\n * use `Tag`. For severity-tinted callouts at message scale, use `Alert*`.\n */\nexport const Badge = forwardRef<HTMLSpanElement, BadgeProps>(\n ({ className, variant, size, ...props }, ref) => (\n <span ref={ref} className={cn(badgeVariants({ variant, size }), className)} {...props} />\n ),\n);\nBadge.displayName = 'Badge';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const tagVariants = tv({\n base: 'inline-flex items-center gap-1 rounded-md border border-border bg-card px-2 py-0.5 text-xs font-medium text-card-foreground',\n variants: {\n variant: {\n neutral: '',\n brand: 'border-transparent bg-primary-soft text-primary-soft-foreground',\n success: 'border-transparent bg-success-soft text-success-soft-foreground',\n warning: 'border-transparent bg-warning-soft text-warning-soft-foreground',\n danger: 'border-transparent bg-destructive-soft text-destructive-soft-foreground',\n info: 'border-transparent bg-info-soft text-info-soft-foreground',\n },\n },\n defaultVariants: {\n variant: 'neutral',\n },\n});\n\nexport type TagVariants = VariantProps<typeof tagVariants>;\n","import { forwardRef, type ComponentPropsWithoutRef, type ReactNode } from 'react';\nimport { X } from 'lucide-react';\nimport { cn } from '../../utils';\nimport { Icon } from '../../icons';\nimport { tagVariants, type TagVariants } from './Tag.variants';\n\nexport interface TagProps\n extends Omit<ComponentPropsWithoutRef<'span'>, 'children'>,\n TagVariants {\n children?: ReactNode;\n /** Show a close (×) button. Pass a handler to receive the click. */\n onClose?: () => void;\n /** Accessible label for the close button. Default `\"Remove\"`. */\n closeLabel?: string;\n}\n\n/**\n * Pill with an optional close button. The close button is a raw `<button>`\n * (not `IconButton`) so this stays a strict atom.\n */\nexport const Tag = forwardRef<HTMLSpanElement, TagProps>(\n ({ children, onClose, closeLabel = 'Remove', variant, className, ...props }, ref) => (\n <span ref={ref} className={cn(tagVariants({ variant }), className)} {...props}>\n {children}\n {onClose && (\n <button\n type=\"button\"\n aria-label={closeLabel}\n onClick={onClose}\n className=\"-mr-1 inline-flex h-4 w-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\"\n >\n <Icon icon={X} size={12} />\n </button>\n )}\n </span>\n ),\n);\nTag.displayName = 'Tag';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport interface SeparatorProps extends ComponentPropsWithoutRef<'div'> {\n orientation?: 'horizontal' | 'vertical';\n /** When `true`, the separator is purely decorative — `role=\"none\"` and\n * unannounced. Default `true`. Set `false` when meaningful in context. */\n decorative?: boolean;\n}\n\n/**\n * Visual divider. Defaults to a horizontal hairline; pass `orientation=\"vertical\"`\n * for column dividers (use inside a flex/grid with explicit height).\n */\nexport const Separator = forwardRef<HTMLDivElement, SeparatorProps>(\n ({ orientation = 'horizontal', decorative = true, className, ...props }, ref) => (\n <div\n ref={ref}\n role={decorative ? 'none' : 'separator'}\n aria-orientation={decorative ? undefined : orientation}\n className={cn(\n 'bg-border',\n orientation === 'horizontal' ? 'h-px w-full' : 'w-px self-stretch',\n className,\n )}\n {...props}\n />\n ),\n);\nSeparator.displayName = 'Separator';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport type MarkProps = ComponentPropsWithoutRef<'mark'>;\n\n/**\n * Highlighted text — semantic `<mark>` with a yellow tint. Use for search\n * matches and \"you mentioned this\" affordances.\n */\nexport const Mark = forwardRef<HTMLElement, MarkProps>(({ className, ...props }, ref) => (\n <mark\n ref={ref}\n className={cn('rounded-sm bg-warning-soft px-0.5 text-warning-soft-foreground', className)}\n {...props}\n />\n));\nMark.displayName = 'Mark';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport type QuoteProps = ComponentPropsWithoutRef<'blockquote'>;\n\n/**\n * Block quote with subtle left border and italic body text.\n */\nexport const Quote = forwardRef<HTMLQuoteElement, QuoteProps>(\n ({ className, ...props }, ref) => (\n <blockquote\n ref={ref}\n className={cn(\n 'border-l-4 border-border pl-4 italic text-muted-foreground',\n className,\n )}\n {...props}\n />\n ),\n);\nQuote.displayName = 'Quote';\n"]}
@@ -1,120 +0,0 @@
1
- import { Slot } from './chunk-33IOXQYO.js';
2
- import { tv as tv$1 } from './chunk-BMBIZLO4.js';
3
- import { cn } from './chunk-KZ4VFY2T.js';
4
- import { forwardRef } from 'react';
5
- import { tv } from 'tailwind-variants';
6
- import { jsx } from 'react/jsx-runtime';
7
-
8
- var buttonVariants = tv({
9
- base: "inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
10
- variants: {
11
- variant: {
12
- primary: "bg-primary text-primary-foreground hover:bg-primary/90",
13
- secondary: "bg-muted text-foreground hover:bg-muted/80",
14
- ghost: "bg-transparent text-foreground hover:bg-muted"
15
- },
16
- size: {
17
- sm: "h-8 px-3 text-sm rounded-md",
18
- md: "h-10 px-4 text-sm rounded-md",
19
- lg: "h-12 px-6 text-base rounded-lg"
20
- }
21
- },
22
- defaultVariants: {
23
- variant: "primary",
24
- size: "md"
25
- }
26
- });
27
- var Button = forwardRef(
28
- ({ className, variant, size, ...props }, ref) => {
29
- return /* @__PURE__ */ jsx(
30
- "button",
31
- {
32
- ref,
33
- className: cn(buttonVariants({ variant, size }), className),
34
- ...props
35
- }
36
- );
37
- }
38
- );
39
- Button.displayName = "Button";
40
-
41
- // src/actions/iconButton/IconButton.variants.ts
42
- var iconButtonVariants = tv$1({
43
- base: "inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
44
- variants: {
45
- variant: {
46
- solid: "bg-primary text-primary-foreground hover:bg-primary/90",
47
- soft: "bg-primary-soft text-primary-soft-foreground hover:bg-primary-soft/80",
48
- outline: "border border-input bg-background text-foreground hover:bg-muted",
49
- ghost: "bg-transparent text-foreground hover:bg-muted",
50
- danger: "bg-destructive text-destructive-foreground hover:bg-destructive/90"
51
- },
52
- size: {
53
- xs: "h-6 w-6 rounded-sm",
54
- sm: "h-8 w-8 rounded-md",
55
- md: "h-10 w-10 rounded-md",
56
- lg: "h-12 w-12 rounded-lg"
57
- },
58
- shape: {
59
- square: "",
60
- circle: "rounded-full"
61
- }
62
- },
63
- defaultVariants: {
64
- variant: "ghost",
65
- size: "md",
66
- shape: "square"
67
- }
68
- });
69
- var IconButton = forwardRef(
70
- ({ className, variant, size, shape, type = "button", ...props }, ref) => /* @__PURE__ */ jsx(
71
- "button",
72
- {
73
- ref,
74
- type,
75
- className: cn(iconButtonVariants({ variant, size, shape }), className),
76
- ...props
77
- }
78
- )
79
- );
80
- IconButton.displayName = "IconButton";
81
-
82
- // src/actions/link/Link.variants.ts
83
- var linkVariants = tv$1({
84
- base: "inline-flex items-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",
85
- variants: {
86
- variant: {
87
- default: "text-primary hover:text-primary/85 hover:underline",
88
- subtle: "text-foreground hover:underline",
89
- muted: "text-muted-foreground hover:text-foreground hover:underline",
90
- inherit: "text-current underline-offset-2 hover:underline"
91
- },
92
- size: {
93
- sm: "text-sm",
94
- md: "text-base",
95
- lg: "text-lg"
96
- }
97
- },
98
- defaultVariants: {
99
- variant: "default",
100
- size: "md"
101
- }
102
- });
103
- var Link = forwardRef(
104
- ({ className, variant, size, asChild = false, ...props }, ref) => {
105
- const Comp = asChild ? Slot : "a";
106
- return /* @__PURE__ */ jsx(
107
- Comp,
108
- {
109
- ref,
110
- className: cn(linkVariants({ variant, size }), className),
111
- ...props
112
- }
113
- );
114
- }
115
- );
116
- Link.displayName = "Link";
117
-
118
- export { Button, IconButton, Link, buttonVariants, iconButtonVariants, linkVariants };
119
- //# sourceMappingURL=chunk-HVJVLK6B.js.map
120
- //# sourceMappingURL=chunk-HVJVLK6B.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/actions/button/Button.variants.ts","../src/actions/button/Button.tsx","../src/actions/iconButton/IconButton.variants.ts","../src/actions/iconButton/IconButton.tsx","../src/actions/link/Link.variants.ts","../src/actions/link/Link.tsx"],"names":["tv","forwardRef","jsx"],"mappings":";;;;;;;AAEO,IAAM,iBAAiBA,EAAAA,CAAG;AAAA,EAC/B,IAAA,EAAM,gMAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,OAAA,EAAS;AAAA,MACP,OAAA,EAAS,wDAAA;AAAA,MACT,SAAA,EAAW,4CAAA;AAAA,MACX,KAAA,EAAO;AAAA,KACT;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI,6BAAA;AAAA,MACJ,EAAA,EAAI,8BAAA;AAAA,MACJ,EAAA,EAAI;AAAA;AACN,GACF;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,OAAA,EAAS,SAAA;AAAA,IACT,IAAA,EAAM;AAAA;AAEV,CAAC;ACdM,IAAM,MAAA,GAAS,UAAA;AAAA,EACpB,CAAC,EAAE,SAAA,EAAW,OAAA,EAAS,MAAM,GAAG,KAAA,IAAS,GAAA,KAAQ;AAC/C,IAAA,uBACE,GAAA;AAAA,MAAC,QAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,SAAA,EAAW,GAAG,cAAA,CAAe,EAAE,SAAS,IAAA,EAAM,GAAG,SAAS,CAAA;AAAA,QACzD,GAAG;AAAA;AAAA,KACN;AAAA,EAEJ;AACF;AAEA,MAAA,CAAO,WAAA,GAAc,QAAA;;;AChBd,IAAM,qBAAqBA,IAAA,CAAG;AAAA,EACnC,IAAA,EAAM,oLAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,OAAA,EAA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AAA,MACJ,EAAA,EAAI,WAAA;AAAA,MACJ,EAAA,EAAI;AAAA;AACN,GACF;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,OAAA,EAAS,SAAA;AAAA,IACT,IAAA,EAAM;AAAA;AAEV,CAAC;ACNM,IAAM,IAAA,GAAOC,UAAAA;AAAA,EAClB,CAAC,EAAE,SAAA,EAAW,OAAA,EAAS,IAAA,EAAM,UAAU,KAAA,EAAO,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AAChE,IAAA,MAAM,IAAA,GAAO,UAAU,IAAA,GAAO,GAAA;AAC9B,IAAA,uBACEC,GAAAA;AAAA,MAAC,IAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,SAAA,EAAW,GAAG,YAAA,CAAa,EAAE,SAAS,IAAA,EAAM,GAAG,SAAS,CAAA;AAAA,QACvD,GAAI;AAAA;AAAA,KACP;AAAA,EAEJ;AACF;AACA,IAAA,CAAK,WAAA,GAAc,MAAA","file":"chunk-HVJVLK6B.js","sourcesContent":["import { tv, type VariantProps } from 'tailwind-variants';\n\nexport const buttonVariants = tv({\n base: 'inline-flex items-center justify-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',\n variants: {\n variant: {\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n secondary: 'bg-muted text-foreground hover:bg-muted/80',\n ghost: 'bg-transparent text-foreground hover:bg-muted',\n },\n size: {\n sm: 'h-8 px-3 text-sm rounded-md',\n md: 'h-10 px-4 text-sm rounded-md',\n lg: 'h-12 px-6 text-base rounded-lg',\n },\n },\n defaultVariants: {\n variant: 'primary',\n size: 'md',\n },\n});\n\nexport type ButtonVariants = VariantProps<typeof buttonVariants>;\n","import { forwardRef, type ButtonHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { buttonVariants, type ButtonVariants } from './Button.variants';\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, ButtonVariants {}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, ...props }, ref) => {\n return (\n <button\n ref={ref}\n className={cn(buttonVariants({ variant, size }), className)}\n {...props}\n />\n );\n },\n);\n\nButton.displayName = 'Button';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const iconButtonVariants = tv({\n base: 'inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',\n variants: {\n variant: {\n solid: 'bg-primary text-primary-foreground hover:bg-primary/90',\n soft: 'bg-primary-soft text-primary-soft-foreground hover:bg-primary-soft/80',\n outline: 'border border-input bg-background text-foreground hover:bg-muted',\n ghost: 'bg-transparent text-foreground hover:bg-muted',\n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n },\n size: {\n xs: 'h-6 w-6 rounded-sm',\n sm: 'h-8 w-8 rounded-md',\n md: 'h-10 w-10 rounded-md',\n lg: 'h-12 w-12 rounded-lg',\n },\n shape: {\n square: '',\n circle: 'rounded-full',\n },\n },\n defaultVariants: {\n variant: 'ghost',\n size: 'md',\n shape: 'square',\n },\n});\n\nexport type IconButtonVariants = VariantProps<typeof iconButtonVariants>;\n","import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from 'react';\nimport { cn } from '../../utils';\nimport { iconButtonVariants, type IconButtonVariants } from './IconButton.variants';\n\nexport interface IconButtonProps\n extends ButtonHTMLAttributes<HTMLButtonElement>,\n IconButtonVariants {\n /** REQUIRED accessible label. IconButton has no visible text. */\n 'aria-label': string;\n children: ReactNode;\n}\n\n/**\n * Square / circular button containing only an icon. `aria-label` is\n * required by the type — there is no visible text fallback.\n */\nexport const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(\n ({ className, variant, size, shape, type = 'button', ...props }, ref) => (\n <button\n ref={ref}\n type={type}\n className={cn(iconButtonVariants({ variant, size, shape }), className)}\n {...props}\n />\n ),\n);\nIconButton.displayName = 'IconButton';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const linkVariants = tv({\n base: 'inline-flex items-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm',\n variants: {\n variant: {\n default: 'text-primary hover:text-primary/85 hover:underline',\n subtle: 'text-foreground hover:underline',\n muted: 'text-muted-foreground hover:text-foreground hover:underline',\n inherit: 'text-current underline-offset-2 hover:underline',\n },\n size: {\n sm: 'text-sm',\n md: 'text-base',\n lg: 'text-lg',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'md',\n },\n});\n\nexport type LinkVariants = VariantProps<typeof linkVariants>;\n","import { forwardRef, type AnchorHTMLAttributes } from 'react';\nimport { cn } from '../../utils';\nimport { Slot } from '../../primitives/slot/Slot';\nimport { linkVariants, type LinkVariants } from './Link.variants';\n\nexport interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, LinkVariants {\n /** When true, render the child element as the link instead of an `<a>`.\n * Use for router `<Link>` components from Next.js / React Router. */\n asChild?: boolean;\n}\n\n/**\n * Anchor with consistent focus / hover styling. Pass `asChild` to render a\n * router `<Link>` while inheriting our visuals.\n */\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'a';\n return (\n <Comp\n ref={ref}\n className={cn(linkVariants({ variant, size }), className)}\n {...(props as AnchorHTMLAttributes<HTMLAnchorElement>)}\n />\n );\n },\n);\nLink.displayName = 'Link';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/primitives/index.ts","../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/scrollLockProvider/ScrollLockProvider.tsx"],"names":["jsx","isValidElement","cloneElement","RadixFocusScope","forwardRef","useRef","useEffect","offset","offsetMiddleware","createContext","useState","useContext","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;ACeO,SAAS,MAAA,CAAO,EAAE,QAAA,EAAU,SAAA,EAAW,MAAK,EAA2B;AAC5E,EAAA,MAAM,MAAA,GAAS,aAAa,QAAA,CAAS,IAAA;AACrC,EAAA,OAAO,6BAAa,GAAA,CAAC,KAAA,EAAA,EAAI,oBAAkB,IAAA,EAAO,QAAA,EAAS,GAAQ,MAAM,CAAA;AAC3E;ACRO,IAAM,cAAA,GAAiB,UAAA;AAAA,EAC5B,CAAC,EAAE,SAAA,EAAW,GAAG,KAAA,EAAM,EAAG,wBACxBA,GAAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AA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,MAAM,IAAI,MAAM,gDAAgD,CAAA;AAAA,IAClE;AACA,IAAA,OAAO,GAAA;AAAA,EACT;AAEA,EAAA,OAAO,EAAE,QAAA,EAAU,aAAA,EAAe,OAAA,EAAS,iBAAA,EAAkB;AAC/D;ACpCO,SAAS,kBAAA,CAAmB,EAAE,OAAA,GAAU,IAAA,EAAM,UAAS,EAA4B;AACxF,EAAA,aAAA,CAAc,OAAO,CAAA;AACrB,EAAA,uBAAOX,GAAAA,CAAAc,QAAAA,EAAA,EAAG,QAAA,EAAS,CAAA;AACrB","file":"chunk-JCMV6IT4.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 { 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 { 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,11 +0,0 @@
1
- import { useId as useId$1 } from 'react';
2
-
3
- // src/hooks/useId.ts
4
- function useId(prefix) {
5
- const id = useId$1();
6
- return prefix ? `${id}-${prefix}` : id;
7
- }
8
-
9
- export { useId };
10
- //# sourceMappingURL=chunk-JTJEI6MF.js.map
11
- //# sourceMappingURL=chunk-JTJEI6MF.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/hooks/useId.ts"],"names":["useReactId"],"mappings":";;;AAMO,SAAS,MAAM,MAAA,EAAyB;AAC7C,EAAA,MAAM,KAAKA,OAAA,EAAW;AACtB,EAAA,OAAO,MAAA,GAAS,CAAA,EAAG,EAAE,CAAA,CAAA,EAAI,MAAM,CAAA,CAAA,GAAK,EAAA;AACtC","file":"chunk-JTJEI6MF.js","sourcesContent":["import { useId as useReactId } from 'react';\n\n/**\n * Wraps React 19's `useId`. Optionally accepts a stable prefix so generated\n * IDs are easier to spot in DevTools (e.g. `useId('checkbox')` → `:r2:-checkbox`).\n */\nexport function useId(prefix?: string): string {\n const id = useReactId();\n return prefix ? `${id}-${prefix}` : id;\n}\n"]}
@@ -1,34 +0,0 @@
1
- import { useId } from './chunk-JTJEI6MF.js';
2
- import { createContext, useContext } from 'react';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- var Context = createContext(null);
6
- function FormControlProvider({
7
- id: providedId,
8
- isInvalid = false,
9
- isDisabled = false,
10
- isRequired = false,
11
- isReadOnly = false,
12
- children
13
- }) {
14
- const generatedId = useId();
15
- const id = providedId ?? generatedId;
16
- const value = {
17
- id,
18
- labelId: `${id}-label`,
19
- helperId: `${id}-helper`,
20
- errorId: `${id}-error`,
21
- isInvalid,
22
- isDisabled,
23
- isRequired,
24
- isReadOnly
25
- };
26
- return /* @__PURE__ */ jsx(Context.Provider, { value, children });
27
- }
28
- function useFormControl() {
29
- return useContext(Context);
30
- }
31
-
32
- export { FormControlProvider, useFormControl };
33
- //# sourceMappingURL=chunk-Q27NAHVB.js.map
34
- //# sourceMappingURL=chunk-Q27NAHVB.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/primitives/formControlContext/FormControlContext.tsx"],"names":[],"mappings":";;;;AAcA,IAAM,OAAA,GAAU,cAA8C,IAAI,CAAA;AAiB3D,SAAS,mBAAA,CAAoB;AAAA,EAClC,EAAA,EAAI,UAAA;AAAA,EACJ,SAAA,GAAY,KAAA;AAAA,EACZ,UAAA,GAAa,KAAA;AAAA,EACb,UAAA,GAAa,KAAA;AAAA,EACb,UAAA,GAAa,KAAA;AAAA,EACb;AACF,CAAA,EAA6B;AAC3B,EAAA,MAAM,cAAc,KAAA,EAAM;AAC1B,EAAA,MAAM,KAAK,UAAA,IAAc,WAAA;AACzB,EAAA,MAAM,KAAA,GAAiC;AAAA,IACrC,EAAA;AAAA,IACA,OAAA,EAAS,GAAG,EAAE,CAAA,MAAA,CAAA;AAAA,IACd,QAAA,EAAU,GAAG,EAAE,CAAA,OAAA,CAAA;AAAA,IACf,OAAA,EAAS,GAAG,EAAE,CAAA,MAAA,CAAA;AAAA,IACd,SAAA;AAAA,IACA,UAAA;AAAA,IACA,UAAA;AAAA,IACA;AAAA,GACF;AACA,EAAA,uBAAO,GAAA,CAAC,OAAA,CAAQ,QAAA,EAAR,EAAiB,OAAe,QAAA,EAAS,CAAA;AACnD;AAMO,SAAS,cAAA,GAAiD;AAC/D,EAAA,OAAO,WAAW,OAAO,CAAA;AAC3B","file":"chunk-Q27NAHVB.js","sourcesContent":["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"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/layout/box/Box.tsx","../src/layout/stack/Stack.variants.ts","../src/layout/stack/Stack.tsx","../src/layout/hStack/HStack.tsx","../src/layout/vStack/VStack.tsx","../src/layout/grid/Grid.variants.ts","../src/layout/grid/Grid.tsx","../src/layout/container/Container.variants.ts","../src/layout/container/Container.tsx","../src/layout/flex/Flex.tsx","../src/layout/aspectRatio/AspectRatio.tsx","../src/layout/spacer/Spacer.tsx","../src/layout/center/Center.tsx","../src/layout/scrollArea/ScrollArea.tsx"],"names":["forwardRef","jsx"],"mappings":";;;;;AAaO,IAAM,GAAA,GAAM,UAAA;AAAA,EACjB,CAAC,EAAE,EAAA,EAAI,YAA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A,QACT,UAAA;AAAA,QACA,SAAS,UAAA,IAAc,mCAAA;AAAA,QACvB,SAAS,YAAA,IAAgB,mCAAA;AAAA,QACzB,SAAS,MAAA,IAAU,eAAA;AAAA,QACnB;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA;AAGV;AACA,UAAA,CAAW,WAAA,GAAc,YAAA","file":"chunk-SYG6ZE42.js","sourcesContent":["import { forwardRef, type ComponentPropsWithoutRef, type ElementType, type Ref } from 'react';\nimport { cn } from '../../utils';\n\nexport interface BoxProps extends Omit<ComponentPropsWithoutRef<'div'>, 'as'> {\n /** HTML element to render. Default `div`. */\n as?: ElementType;\n}\n\n/**\n * The lowest-level layout primitive. Renders any element (default `div`)\n * with className passthrough. Use as a styling shell when no other layout\n * atom fits.\n */\nexport const Box = forwardRef<HTMLElement, BoxProps>(\n ({ as: Component = 'div', className, ...props }, ref) => (\n <Component ref={ref as Ref<HTMLElement>} className={cn(className)} {...props} />\n ),\n);\nBox.displayName = 'Box';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const stackVariants = tv({\n base: 'flex',\n variants: {\n direction: {\n row: 'flex-row',\n column: 'flex-col',\n 'row-reverse': 'flex-row-reverse',\n 'column-reverse': 'flex-col-reverse',\n },\n align: {\n start: 'items-start',\n center: 'items-center',\n end: 'items-end',\n stretch: 'items-stretch',\n baseline: 'items-baseline',\n },\n justify: {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n between: 'justify-between',\n around: 'justify-around',\n evenly: 'justify-evenly',\n },\n gap: {\n '0': 'gap-0',\n '1': 'gap-1',\n '2': 'gap-2',\n '3': 'gap-3',\n '4': 'gap-4',\n '5': 'gap-5',\n '6': 'gap-6',\n '8': 'gap-8',\n '10': 'gap-10',\n '12': 'gap-12',\n },\n wrap: {\n wrap: 'flex-wrap',\n nowrap: 'flex-nowrap',\n 'wrap-reverse': 'flex-wrap-reverse',\n },\n },\n defaultVariants: {\n direction: 'column',\n gap: '4',\n },\n});\n\nexport type StackVariants = VariantProps<typeof stackVariants>;\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementType,\n type Ref,\n} from 'react';\nimport { cn } from '../../utils';\nimport { stackVariants, type StackVariants } from './Stack.variants';\n\nexport interface StackProps\n extends Omit<ComponentPropsWithoutRef<'div'>, 'as'>,\n StackVariants {\n as?: ElementType;\n}\n\n/**\n * Vertical (default) or horizontal flex container with gap and alignment\n * variants. For row preset use `HStack`, for column use `VStack`.\n */\nexport const Stack = forwardRef<HTMLElement, StackProps>(\n ({ as: Component = 'div', className, direction, align, justify, gap, wrap, ...props }, ref) => (\n <Component\n ref={ref as Ref<HTMLElement>}\n className={cn(stackVariants({ direction, align, justify, gap, wrap }), className)}\n {...props}\n />\n ),\n);\nStack.displayName = 'Stack';\n","import { forwardRef, type Ref } from 'react';\nimport { Stack, type StackProps } from '../stack/Stack';\n\nexport type HStackProps = Omit<StackProps, 'direction'>;\n\n/** Stack preset: `direction=\"row\"`. */\nexport const HStack = forwardRef<HTMLElement, HStackProps>((props, ref) => (\n <Stack ref={ref as Ref<HTMLElement>} direction=\"row\" {...props} />\n));\nHStack.displayName = 'HStack';\n","import { forwardRef, type Ref } from 'react';\nimport { Stack, type StackProps } from '../stack/Stack';\n\nexport type VStackProps = Omit<StackProps, 'direction'>;\n\n/** Stack preset: `direction=\"column\"` (default). Provided for symmetry with HStack. */\nexport const VStack = forwardRef<HTMLElement, VStackProps>((props, ref) => (\n <Stack ref={ref as Ref<HTMLElement>} direction=\"column\" {...props} />\n));\nVStack.displayName = 'VStack';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const gridVariants = tv({\n base: 'grid',\n variants: {\n columns: {\n '1': 'grid-cols-1',\n '2': 'grid-cols-2',\n '3': 'grid-cols-3',\n '4': 'grid-cols-4',\n '5': 'grid-cols-5',\n '6': 'grid-cols-6',\n '8': 'grid-cols-8',\n '12': 'grid-cols-12',\n },\n gap: {\n '0': 'gap-0',\n '1': 'gap-1',\n '2': 'gap-2',\n '3': 'gap-3',\n '4': 'gap-4',\n '5': 'gap-5',\n '6': 'gap-6',\n '8': 'gap-8',\n '10': 'gap-10',\n '12': 'gap-12',\n },\n },\n defaultVariants: {\n columns: '2',\n gap: '4',\n },\n});\n\nexport type GridVariants = VariantProps<typeof gridVariants>;\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementType,\n type Ref,\n} from 'react';\nimport { cn } from '../../utils';\nimport { gridVariants, type GridVariants } from './Grid.variants';\n\nexport interface GridProps\n extends Omit<ComponentPropsWithoutRef<'div'>, 'as'>,\n GridVariants {\n as?: ElementType;\n}\n\n/**\n * CSS grid container with column and gap variants. For non-uniform tracks\n * pass an explicit `style={{ gridTemplateColumns }}` — the variant covers\n * the equal-column case.\n */\nexport const Grid = forwardRef<HTMLElement, GridProps>(\n ({ as: Component = 'div', className, columns, gap, ...props }, ref) => (\n <Component\n ref={ref as Ref<HTMLElement>}\n className={cn(gridVariants({ columns, gap }), className)}\n {...props}\n />\n ),\n);\nGrid.displayName = 'Grid';\n","import { tv, type VariantProps } from '../../utils';\n\nexport const containerVariants = tv({\n base: 'mx-auto w-full px-4',\n variants: {\n size: {\n sm: 'max-w-screen-sm',\n md: 'max-w-screen-md',\n lg: 'max-w-screen-lg',\n xl: 'max-w-screen-xl',\n '2xl': 'max-w-screen-2xl',\n full: 'max-w-full',\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n\nexport type ContainerVariants = VariantProps<typeof containerVariants>;\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementType,\n type Ref,\n} from 'react';\nimport { cn } from '../../utils';\nimport { containerVariants, type ContainerVariants } from './Container.variants';\n\nexport interface ContainerProps\n extends Omit<ComponentPropsWithoutRef<'div'>, 'as'>,\n ContainerVariants {\n as?: ElementType;\n}\n\n/**\n * Centered max-width wrapper with horizontal padding. Use at page-level to\n * constrain content width.\n */\nexport const Container = forwardRef<HTMLElement, ContainerProps>(\n ({ as: Component = 'div', className, size, ...props }, ref) => (\n <Component\n ref={ref as Ref<HTMLElement>}\n className={cn(containerVariants({ size }), className)}\n {...props}\n />\n ),\n);\nContainer.displayName = 'Container';\n","import {\n forwardRef,\n type ComponentPropsWithoutRef,\n type ElementType,\n type Ref,\n} from 'react';\nimport { cn } from '../../utils';\n\nexport interface FlexProps extends Omit<ComponentPropsWithoutRef<'div'>, 'as'> {\n as?: ElementType;\n}\n\n/**\n * Bare flex container — no opinions on direction, gap, or alignment.\n * Use for one-off flex layouts that don't fit `Stack`'s variant matrix.\n */\nexport const Flex = forwardRef<HTMLElement, FlexProps>(\n ({ as: Component = 'div', className, ...props }, ref) => (\n <Component\n ref={ref as Ref<HTMLElement>}\n className={cn('flex', className)}\n {...props}\n />\n ),\n);\nFlex.displayName = 'Flex';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport interface AspectRatioProps extends ComponentPropsWithoutRef<'div'> {\n /** Numeric ratio (width/height). Default 1 (square). */\n ratio?: number;\n}\n\n/**\n * Constrain children to an aspect ratio (width / height). Children are\n * absolutely positioned and stretched to fill — typically pass a single\n * `<img>`, `<video>`, or `<iframe>` with `className=\"absolute inset-0 w-full h-full\"`.\n */\nexport const AspectRatio = forwardRef<HTMLDivElement, AspectRatioProps>(\n ({ ratio = 1, className, style, children, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('relative w-full', className)}\n style={{ aspectRatio: `${ratio}`, ...style }}\n {...props}\n >\n {children}\n </div>\n ),\n);\nAspectRatio.displayName = 'AspectRatio';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport interface SpacerProps extends ComponentPropsWithoutRef<'div'> {\n /** Optional explicit size (CSS length). When inside a flex/grid parent,\n * the default `flex: 1` already pushes siblings apart. */\n size?: number | string;\n axis?: 'horizontal' | 'vertical';\n}\n\n/**\n * A flexible empty box. In a flex parent it expands (`flex: 1`) and pushes\n * siblings to opposite ends. Pass `size` for a fixed gap.\n */\nexport const Spacer = forwardRef<HTMLDivElement, SpacerProps>(\n ({ size, axis = 'horizontal', className, style, ...props }, ref) => {\n const fixed: React.CSSProperties | undefined =\n size !== undefined\n ? axis === 'horizontal'\n ? { width: typeof size === 'number' ? `${size}px` : size, flexShrink: 0 }\n : { height: typeof size === 'number' ? `${size}px` : size, flexShrink: 0 }\n : undefined;\n\n return (\n <div\n ref={ref}\n aria-hidden=\"true\"\n className={cn(size === undefined && 'flex-1', className)}\n style={{ ...fixed, ...style }}\n {...props}\n />\n );\n },\n);\nSpacer.displayName = 'Spacer';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport type CenterProps = ComponentPropsWithoutRef<'div'>;\n\n/** Flex shorthand that centers its children both axes. */\nexport const Center = forwardRef<HTMLDivElement, CenterProps>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('flex items-center justify-center', className)}\n {...props}\n />\n ),\n);\nCenter.displayName = 'Center';\n","import { forwardRef, type ComponentPropsWithoutRef } from 'react';\nimport { cn } from '../../utils';\n\nexport interface ScrollAreaProps extends ComponentPropsWithoutRef<'div'> {\n axis?: 'vertical' | 'horizontal' | 'both';\n}\n\n/**\n * Native scrollable container with stable visuals. For custom-styled\n * scrollbars (track + thumb separately animated) use the L5 ScrollArea\n * organism. This atom exists for the common case.\n */\nexport const ScrollArea = forwardRef<HTMLDivElement, ScrollAreaProps>(\n ({ axis = 'vertical', className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'relative',\n axis === 'vertical' && 'overflow-y-auto overflow-x-hidden',\n axis === 'horizontal' && 'overflow-x-auto overflow-y-hidden',\n axis === 'both' && 'overflow-auto',\n className,\n )}\n {...props}\n />\n ),\n);\nScrollArea.displayName = 'ScrollArea';\n"]}