@fragments-sdk/ui 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. package/dist/assets/ui.css +1642 -1679
  2. package/dist/chart.cjs.map +1 -1
  3. package/dist/chart.js.map +1 -1
  4. package/dist/codeblock.cjs +26 -18
  5. package/dist/codeblock.cjs.map +1 -1
  6. package/dist/codeblock.js +26 -18
  7. package/dist/codeblock.js.map +1 -1
  8. package/dist/components/Accordion/Accordion.module.scss.cjs +8 -8
  9. package/dist/components/Accordion/Accordion.module.scss.js +8 -8
  10. package/dist/components/Accordion/index.cjs +17 -6
  11. package/dist/components/Accordion/index.cjs.map +1 -1
  12. package/dist/components/Accordion/index.d.ts +25 -12
  13. package/dist/components/Accordion/index.d.ts.map +1 -1
  14. package/dist/components/Accordion/index.js +17 -6
  15. package/dist/components/Accordion/index.js.map +1 -1
  16. package/dist/components/Alert/Alert.module.scss.cjs +12 -12
  17. package/dist/components/Alert/Alert.module.scss.js +12 -12
  18. package/dist/components/Alert/index.cjs +37 -15
  19. package/dist/components/Alert/index.cjs.map +1 -1
  20. package/dist/components/Alert/index.d.ts +15 -22
  21. package/dist/components/Alert/index.d.ts.map +1 -1
  22. package/dist/components/Alert/index.js +37 -15
  23. package/dist/components/Alert/index.js.map +1 -1
  24. package/dist/components/AppShell/AppShell.module.scss.cjs +14 -14
  25. package/dist/components/AppShell/AppShell.module.scss.js +14 -14
  26. package/dist/components/AppShell/index.cjs +3 -1
  27. package/dist/components/AppShell/index.cjs.map +1 -1
  28. package/dist/components/AppShell/index.d.ts.map +1 -1
  29. package/dist/components/AppShell/index.js +3 -1
  30. package/dist/components/AppShell/index.js.map +1 -1
  31. package/dist/components/Avatar/index.cjs +9 -1
  32. package/dist/components/Avatar/index.cjs.map +1 -1
  33. package/dist/components/Avatar/index.d.ts +2 -0
  34. package/dist/components/Avatar/index.d.ts.map +1 -1
  35. package/dist/components/Avatar/index.js +9 -1
  36. package/dist/components/Avatar/index.js.map +1 -1
  37. package/dist/components/Badge/index.cjs +4 -2
  38. package/dist/components/Badge/index.cjs.map +1 -1
  39. package/dist/components/Badge/index.d.ts +3 -0
  40. package/dist/components/Badge/index.d.ts.map +1 -1
  41. package/dist/components/Badge/index.js +4 -2
  42. package/dist/components/Badge/index.js.map +1 -1
  43. package/dist/components/BentoGrid/BentoGrid.module.scss.cjs +11 -11
  44. package/dist/components/BentoGrid/BentoGrid.module.scss.js +11 -11
  45. package/dist/components/BentoGrid/index.cjs +8 -5
  46. package/dist/components/BentoGrid/index.cjs.map +1 -1
  47. package/dist/components/BentoGrid/index.d.ts +2 -8
  48. package/dist/components/BentoGrid/index.d.ts.map +1 -1
  49. package/dist/components/BentoGrid/index.js +8 -5
  50. package/dist/components/BentoGrid/index.js.map +1 -1
  51. package/dist/components/Box/index.cjs +12 -2
  52. package/dist/components/Box/index.cjs.map +1 -1
  53. package/dist/components/Box/index.d.ts +1 -1
  54. package/dist/components/Box/index.d.ts.map +1 -1
  55. package/dist/components/Box/index.js +12 -2
  56. package/dist/components/Box/index.js.map +1 -1
  57. package/dist/components/Breadcrumbs/index.cjs +3 -1
  58. package/dist/components/Breadcrumbs/index.cjs.map +1 -1
  59. package/dist/components/Breadcrumbs/index.d.ts +3 -1
  60. package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
  61. package/dist/components/Breadcrumbs/index.js +3 -1
  62. package/dist/components/Breadcrumbs/index.js.map +1 -1
  63. package/dist/components/Button/Button.module.scss.cjs +11 -11
  64. package/dist/components/Button/Button.module.scss.js +11 -11
  65. package/dist/components/Button/index.cjs +5 -2
  66. package/dist/components/Button/index.cjs.map +1 -1
  67. package/dist/components/Button/index.d.ts +3 -3
  68. package/dist/components/Button/index.d.ts.map +1 -1
  69. package/dist/components/Button/index.js +5 -2
  70. package/dist/components/Button/index.js.map +1 -1
  71. package/dist/components/ButtonGroup/index.cjs +3 -2
  72. package/dist/components/ButtonGroup/index.cjs.map +1 -1
  73. package/dist/components/ButtonGroup/index.d.ts +1 -2
  74. package/dist/components/ButtonGroup/index.d.ts.map +1 -1
  75. package/dist/components/ButtonGroup/index.js +3 -2
  76. package/dist/components/ButtonGroup/index.js.map +1 -1
  77. package/dist/components/Card/Card.module.scss.cjs +14 -14
  78. package/dist/components/Card/Card.module.scss.js +14 -14
  79. package/dist/components/Card/index.cjs +3 -22
  80. package/dist/components/Card/index.cjs.map +1 -1
  81. package/dist/components/Card/index.d.ts +6 -11
  82. package/dist/components/Card/index.d.ts.map +1 -1
  83. package/dist/components/Card/index.js +3 -22
  84. package/dist/components/Card/index.js.map +1 -1
  85. package/dist/components/Chart/Chart.module.scss.cjs +15 -15
  86. package/dist/components/Chart/Chart.module.scss.js +15 -15
  87. package/dist/components/Chart/index.d.ts +3 -3
  88. package/dist/components/Chart/index.d.ts.map +1 -1
  89. package/dist/components/Checkbox/Checkbox.module.scss.cjs +10 -10
  90. package/dist/components/Checkbox/Checkbox.module.scss.js +10 -10
  91. package/dist/components/Checkbox/index.cjs +11 -4
  92. package/dist/components/Checkbox/index.cjs.map +1 -1
  93. package/dist/components/Checkbox/index.d.ts +6 -0
  94. package/dist/components/Checkbox/index.d.ts.map +1 -1
  95. package/dist/components/Checkbox/index.js +11 -4
  96. package/dist/components/Checkbox/index.js.map +1 -1
  97. package/dist/components/Chip/index.cjs +11 -3
  98. package/dist/components/Chip/index.cjs.map +1 -1
  99. package/dist/components/Chip/index.d.ts +1 -2
  100. package/dist/components/Chip/index.d.ts.map +1 -1
  101. package/dist/components/Chip/index.js +11 -3
  102. package/dist/components/Chip/index.js.map +1 -1
  103. package/dist/components/CodeBlock/CodeBlock.module.scss.cjs +20 -20
  104. package/dist/components/CodeBlock/CodeBlock.module.scss.js +20 -20
  105. package/dist/components/CodeBlock/index.d.ts +8 -2
  106. package/dist/components/CodeBlock/index.d.ts.map +1 -1
  107. package/dist/components/Collapsible/Collapsible.module.scss.cjs +10 -10
  108. package/dist/components/Collapsible/Collapsible.module.scss.js +10 -10
  109. package/dist/components/Collapsible/index.cjs +45 -10
  110. package/dist/components/Collapsible/index.cjs.map +1 -1
  111. package/dist/components/Collapsible/index.d.ts +6 -12
  112. package/dist/components/Collapsible/index.d.ts.map +1 -1
  113. package/dist/components/Collapsible/index.js +45 -10
  114. package/dist/components/Collapsible/index.js.map +1 -1
  115. package/dist/components/Combobox/Combobox.module.scss.cjs +15 -15
  116. package/dist/components/Combobox/Combobox.module.scss.js +15 -15
  117. package/dist/components/Combobox/index.cjs +86 -27
  118. package/dist/components/Combobox/index.cjs.map +1 -1
  119. package/dist/components/Combobox/index.d.ts +40 -23
  120. package/dist/components/Combobox/index.d.ts.map +1 -1
  121. package/dist/components/Combobox/index.js +86 -27
  122. package/dist/components/Combobox/index.js.map +1 -1
  123. package/dist/components/Command/Command.module.scss.cjs +11 -11
  124. package/dist/components/Command/Command.module.scss.js +11 -11
  125. package/dist/components/Command/index.cjs +55 -22
  126. package/dist/components/Command/index.cjs.map +1 -1
  127. package/dist/components/Command/index.d.ts +3 -3
  128. package/dist/components/Command/index.d.ts.map +1 -1
  129. package/dist/components/Command/index.js +55 -22
  130. package/dist/components/Command/index.js.map +1 -1
  131. package/dist/components/ConversationList/ConversationList.module.scss.cjs +10 -10
  132. package/dist/components/ConversationList/ConversationList.module.scss.js +10 -10
  133. package/dist/components/ConversationList/index.cjs +6 -3
  134. package/dist/components/ConversationList/index.cjs.map +1 -1
  135. package/dist/components/ConversationList/index.d.ts +1 -1
  136. package/dist/components/ConversationList/index.d.ts.map +1 -1
  137. package/dist/components/ConversationList/index.js +6 -3
  138. package/dist/components/ConversationList/index.js.map +1 -1
  139. package/dist/components/DataTable/DataTable.module.scss.cjs +26 -26
  140. package/dist/components/DataTable/DataTable.module.scss.js +26 -26
  141. package/dist/components/DataTable/index.cjs +25 -4
  142. package/dist/components/DataTable/index.cjs.map +1 -1
  143. package/dist/components/DataTable/index.d.ts +7 -2
  144. package/dist/components/DataTable/index.d.ts.map +1 -1
  145. package/dist/components/DataTable/index.js +25 -4
  146. package/dist/components/DataTable/index.js.map +1 -1
  147. package/dist/components/DatePicker/DatePicker.module.scss.cjs +26 -26
  148. package/dist/components/DatePicker/DatePicker.module.scss.js +26 -26
  149. package/dist/components/DatePicker/index.d.ts +4 -5
  150. package/dist/components/DatePicker/index.d.ts.map +1 -1
  151. package/dist/components/Dialog/Dialog.module.scss.cjs +14 -14
  152. package/dist/components/Dialog/Dialog.module.scss.js +14 -14
  153. package/dist/components/Dialog/index.cjs +14 -10
  154. package/dist/components/Dialog/index.cjs.map +1 -1
  155. package/dist/components/Dialog/index.d.ts +26 -17
  156. package/dist/components/Dialog/index.d.ts.map +1 -1
  157. package/dist/components/Dialog/index.js +14 -10
  158. package/dist/components/Dialog/index.js.map +1 -1
  159. package/dist/components/Drawer/Drawer.module.scss.cjs +26 -26
  160. package/dist/components/Drawer/Drawer.module.scss.js +26 -26
  161. package/dist/components/Drawer/index.cjs +41 -11
  162. package/dist/components/Drawer/index.cjs.map +1 -1
  163. package/dist/components/Drawer/index.d.ts +11 -13
  164. package/dist/components/Drawer/index.d.ts.map +1 -1
  165. package/dist/components/Drawer/index.js +24 -11
  166. package/dist/components/Drawer/index.js.map +1 -1
  167. package/dist/components/Editor/Editor.module.scss.cjs +17 -17
  168. package/dist/components/Editor/Editor.module.scss.js +17 -17
  169. package/dist/components/Editor/index.cjs +32 -7
  170. package/dist/components/Editor/index.cjs.map +1 -1
  171. package/dist/components/Editor/index.d.ts +16 -3
  172. package/dist/components/Editor/index.d.ts.map +1 -1
  173. package/dist/components/Editor/index.js +32 -7
  174. package/dist/components/Editor/index.js.map +1 -1
  175. package/dist/components/EmptyState/EmptyState.module.scss.cjs +8 -8
  176. package/dist/components/EmptyState/EmptyState.module.scss.js +8 -8
  177. package/dist/components/EmptyState/index.cjs +12 -8
  178. package/dist/components/EmptyState/index.cjs.map +1 -1
  179. package/dist/components/EmptyState/index.d.ts +8 -12
  180. package/dist/components/EmptyState/index.d.ts.map +1 -1
  181. package/dist/components/EmptyState/index.js +12 -8
  182. package/dist/components/EmptyState/index.js.map +1 -1
  183. package/dist/components/Fieldset/index.cjs +2 -2
  184. package/dist/components/Fieldset/index.cjs.map +1 -1
  185. package/dist/components/Fieldset/index.d.ts +2 -3
  186. package/dist/components/Fieldset/index.d.ts.map +1 -1
  187. package/dist/components/Fieldset/index.js +2 -2
  188. package/dist/components/Fieldset/index.js.map +1 -1
  189. package/dist/components/Form/index.cjs +13 -13
  190. package/dist/components/Form/index.cjs.map +1 -1
  191. package/dist/components/Form/index.d.ts +5 -2
  192. package/dist/components/Form/index.d.ts.map +1 -1
  193. package/dist/components/Form/index.js +13 -13
  194. package/dist/components/Form/index.js.map +1 -1
  195. package/dist/components/Grid/Grid.module.scss.cjs +57 -57
  196. package/dist/components/Grid/Grid.module.scss.js +57 -57
  197. package/dist/components/Grid/index.cjs +7 -4
  198. package/dist/components/Grid/index.cjs.map +1 -1
  199. package/dist/components/Grid/index.d.ts +5 -3
  200. package/dist/components/Grid/index.d.ts.map +1 -1
  201. package/dist/components/Grid/index.js +7 -4
  202. package/dist/components/Grid/index.js.map +1 -1
  203. package/dist/components/Header/Header.module.scss.cjs +21 -21
  204. package/dist/components/Header/Header.module.scss.js +21 -21
  205. package/dist/components/Header/index.cjs +61 -23
  206. package/dist/components/Header/index.cjs.map +1 -1
  207. package/dist/components/Header/index.d.ts +27 -34
  208. package/dist/components/Header/index.d.ts.map +1 -1
  209. package/dist/components/Header/index.js +61 -23
  210. package/dist/components/Header/index.js.map +1 -1
  211. package/dist/components/Icon/index.cjs +11 -1
  212. package/dist/components/Icon/index.cjs.map +1 -1
  213. package/dist/components/Icon/index.d.ts +28 -9
  214. package/dist/components/Icon/index.d.ts.map +1 -1
  215. package/dist/components/Icon/index.js +11 -1
  216. package/dist/components/Icon/index.js.map +1 -1
  217. package/dist/components/Image/index.cjs +15 -4
  218. package/dist/components/Image/index.cjs.map +1 -1
  219. package/dist/components/Image/index.d.ts +7 -1
  220. package/dist/components/Image/index.d.ts.map +1 -1
  221. package/dist/components/Image/index.js +15 -4
  222. package/dist/components/Image/index.js.map +1 -1
  223. package/dist/components/Input/Input.module.scss.cjs +13 -13
  224. package/dist/components/Input/Input.module.scss.js +13 -13
  225. package/dist/components/Input/index.cjs +79 -31
  226. package/dist/components/Input/index.cjs.map +1 -1
  227. package/dist/components/Input/index.d.ts +17 -3
  228. package/dist/components/Input/index.d.ts.map +1 -1
  229. package/dist/components/Input/index.js +79 -31
  230. package/dist/components/Input/index.js.map +1 -1
  231. package/dist/components/Link/index.cjs +17 -0
  232. package/dist/components/Link/index.cjs.map +1 -1
  233. package/dist/components/Link/index.d.ts.map +1 -1
  234. package/dist/components/Link/index.js +17 -0
  235. package/dist/components/Link/index.js.map +1 -1
  236. package/dist/components/Listbox/Listbox.module.scss.cjs +8 -8
  237. package/dist/components/Listbox/Listbox.module.scss.js +8 -8
  238. package/dist/components/Listbox/index.cjs +10 -6
  239. package/dist/components/Listbox/index.cjs.map +1 -1
  240. package/dist/components/Listbox/index.d.ts +2 -2
  241. package/dist/components/Listbox/index.d.ts.map +1 -1
  242. package/dist/components/Listbox/index.js +10 -6
  243. package/dist/components/Listbox/index.js.map +1 -1
  244. package/dist/components/Markdown/Markdown.module.scss.cjs +1 -1
  245. package/dist/components/Markdown/Markdown.module.scss.js +1 -1
  246. package/dist/components/Markdown/index.d.ts +4 -2
  247. package/dist/components/Markdown/index.d.ts.map +1 -1
  248. package/dist/components/Menu/Menu.module.scss.cjs +13 -13
  249. package/dist/components/Menu/Menu.module.scss.js +13 -13
  250. package/dist/components/Menu/index.cjs +41 -16
  251. package/dist/components/Menu/index.cjs.map +1 -1
  252. package/dist/components/Menu/index.d.ts +24 -27
  253. package/dist/components/Menu/index.d.ts.map +1 -1
  254. package/dist/components/Menu/index.js +41 -16
  255. package/dist/components/Menu/index.js.map +1 -1
  256. package/dist/components/Message/Message.module.scss.cjs +18 -18
  257. package/dist/components/Message/Message.module.scss.js +18 -18
  258. package/dist/components/NavigationMenu/NavigationMenu.module.scss.cjs +28 -28
  259. package/dist/components/NavigationMenu/NavigationMenu.module.scss.js +28 -28
  260. package/dist/components/NavigationMenu/NavigationMenuContext.cjs.map +1 -1
  261. package/dist/components/NavigationMenu/NavigationMenuContext.d.ts +9 -0
  262. package/dist/components/NavigationMenu/NavigationMenuContext.d.ts.map +1 -1
  263. package/dist/components/NavigationMenu/NavigationMenuContext.js.map +1 -1
  264. package/dist/components/NavigationMenu/index.cjs +92 -21
  265. package/dist/components/NavigationMenu/index.cjs.map +1 -1
  266. package/dist/components/NavigationMenu/index.d.ts +5 -1
  267. package/dist/components/NavigationMenu/index.d.ts.map +1 -1
  268. package/dist/components/NavigationMenu/index.js +92 -21
  269. package/dist/components/NavigationMenu/index.js.map +1 -1
  270. package/dist/components/NavigationMenu/useNavigationMenu.cjs +2 -0
  271. package/dist/components/NavigationMenu/useNavigationMenu.cjs.map +1 -1
  272. package/dist/components/NavigationMenu/useNavigationMenu.d.ts +1 -0
  273. package/dist/components/NavigationMenu/useNavigationMenu.d.ts.map +1 -1
  274. package/dist/components/NavigationMenu/useNavigationMenu.js +2 -0
  275. package/dist/components/NavigationMenu/useNavigationMenu.js.map +1 -1
  276. package/dist/components/Pagination/index.cjs +37 -9
  277. package/dist/components/Pagination/index.cjs.map +1 -1
  278. package/dist/components/Pagination/index.d.ts +2 -3
  279. package/dist/components/Pagination/index.d.ts.map +1 -1
  280. package/dist/components/Pagination/index.js +37 -9
  281. package/dist/components/Pagination/index.js.map +1 -1
  282. package/dist/components/Popover/Popover.module.scss.cjs +10 -10
  283. package/dist/components/Popover/Popover.module.scss.js +10 -10
  284. package/dist/components/Popover/index.cjs +52 -10
  285. package/dist/components/Popover/index.cjs.map +1 -1
  286. package/dist/components/Popover/index.d.ts +22 -16
  287. package/dist/components/Popover/index.d.ts.map +1 -1
  288. package/dist/components/Popover/index.js +35 -10
  289. package/dist/components/Popover/index.js.map +1 -1
  290. package/dist/components/Progress/index.cjs +3 -1
  291. package/dist/components/Progress/index.cjs.map +1 -1
  292. package/dist/components/Progress/index.d.ts.map +1 -1
  293. package/dist/components/Progress/index.js +3 -1
  294. package/dist/components/Progress/index.js.map +1 -1
  295. package/dist/components/Prompt/Prompt.module.scss.cjs +14 -14
  296. package/dist/components/Prompt/Prompt.module.scss.js +14 -14
  297. package/dist/components/Prompt/index.cjs +14 -2
  298. package/dist/components/Prompt/index.cjs.map +1 -1
  299. package/dist/components/Prompt/index.d.ts +8 -5
  300. package/dist/components/Prompt/index.d.ts.map +1 -1
  301. package/dist/components/Prompt/index.js +14 -2
  302. package/dist/components/Prompt/index.js.map +1 -1
  303. package/dist/components/RadioGroup/index.cjs +14 -6
  304. package/dist/components/RadioGroup/index.cjs.map +1 -1
  305. package/dist/components/RadioGroup/index.d.ts +12 -2
  306. package/dist/components/RadioGroup/index.d.ts.map +1 -1
  307. package/dist/components/RadioGroup/index.js +14 -6
  308. package/dist/components/RadioGroup/index.js.map +1 -1
  309. package/dist/components/Select/Select.module.scss.cjs +10 -10
  310. package/dist/components/Select/Select.module.scss.js +10 -10
  311. package/dist/components/Select/index.cjs +43 -29
  312. package/dist/components/Select/index.cjs.map +1 -1
  313. package/dist/components/Select/index.d.ts +12 -11
  314. package/dist/components/Select/index.d.ts.map +1 -1
  315. package/dist/components/Select/index.js +43 -29
  316. package/dist/components/Select/index.js.map +1 -1
  317. package/dist/components/Sidebar/Sidebar.module.scss.cjs +42 -42
  318. package/dist/components/Sidebar/Sidebar.module.scss.js +42 -42
  319. package/dist/components/Sidebar/index.cjs +73 -26
  320. package/dist/components/Sidebar/index.cjs.map +1 -1
  321. package/dist/components/Sidebar/index.d.ts +23 -35
  322. package/dist/components/Sidebar/index.d.ts.map +1 -1
  323. package/dist/components/Sidebar/index.js +73 -26
  324. package/dist/components/Sidebar/index.js.map +1 -1
  325. package/dist/components/Skeleton/index.cjs +6 -3
  326. package/dist/components/Skeleton/index.cjs.map +1 -1
  327. package/dist/components/Skeleton/index.d.ts +3 -7
  328. package/dist/components/Skeleton/index.d.ts.map +1 -1
  329. package/dist/components/Skeleton/index.js +6 -3
  330. package/dist/components/Skeleton/index.js.map +1 -1
  331. package/dist/components/Slider/Slider.module.scss.cjs +13 -10
  332. package/dist/components/Slider/Slider.module.scss.cjs.map +1 -1
  333. package/dist/components/Slider/Slider.module.scss.js +13 -10
  334. package/dist/components/Slider/Slider.module.scss.js.map +1 -1
  335. package/dist/components/Slider/index.cjs +33 -1
  336. package/dist/components/Slider/index.cjs.map +1 -1
  337. package/dist/components/Slider/index.d.ts +2 -0
  338. package/dist/components/Slider/index.d.ts.map +1 -1
  339. package/dist/components/Slider/index.js +33 -1
  340. package/dist/components/Slider/index.js.map +1 -1
  341. package/dist/components/Stack/index.cjs +12 -2
  342. package/dist/components/Stack/index.cjs.map +1 -1
  343. package/dist/components/Stack/index.d.ts +3 -2
  344. package/dist/components/Stack/index.d.ts.map +1 -1
  345. package/dist/components/Stack/index.js +12 -2
  346. package/dist/components/Stack/index.js.map +1 -1
  347. package/dist/components/Table/Table.module.scss.cjs +16 -16
  348. package/dist/components/Table/Table.module.scss.js +16 -16
  349. package/dist/components/Table/index.d.ts +10 -4
  350. package/dist/components/Table/index.d.ts.map +1 -1
  351. package/dist/components/TableOfContents/index.cjs +8 -5
  352. package/dist/components/TableOfContents/index.cjs.map +1 -1
  353. package/dist/components/TableOfContents/index.d.ts +2 -2
  354. package/dist/components/TableOfContents/index.d.ts.map +1 -1
  355. package/dist/components/TableOfContents/index.js +8 -5
  356. package/dist/components/TableOfContents/index.js.map +1 -1
  357. package/dist/components/Tabs/Tabs.module.scss.cjs +9 -9
  358. package/dist/components/Tabs/Tabs.module.scss.js +9 -9
  359. package/dist/components/Tabs/index.cjs +9 -6
  360. package/dist/components/Tabs/index.cjs.map +1 -1
  361. package/dist/components/Tabs/index.d.ts +4 -1
  362. package/dist/components/Tabs/index.d.ts.map +1 -1
  363. package/dist/components/Tabs/index.js +9 -6
  364. package/dist/components/Tabs/index.js.map +1 -1
  365. package/dist/components/Textarea/index.cjs +61 -43
  366. package/dist/components/Textarea/index.cjs.map +1 -1
  367. package/dist/components/Textarea/index.d.ts +9 -1
  368. package/dist/components/Textarea/index.d.ts.map +1 -1
  369. package/dist/components/Textarea/index.js +61 -43
  370. package/dist/components/Textarea/index.js.map +1 -1
  371. package/dist/components/Theme/index.cjs +3 -1
  372. package/dist/components/Theme/index.cjs.map +1 -1
  373. package/dist/components/Theme/index.d.ts +2 -4
  374. package/dist/components/Theme/index.d.ts.map +1 -1
  375. package/dist/components/Theme/index.js +3 -1
  376. package/dist/components/Theme/index.js.map +1 -1
  377. package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.cjs +22 -22
  378. package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.js +22 -22
  379. package/dist/components/Toast/Toast.module.scss.cjs +20 -20
  380. package/dist/components/Toast/Toast.module.scss.js +20 -20
  381. package/dist/components/Toast/index.cjs +15 -14
  382. package/dist/components/Toast/index.cjs.map +1 -1
  383. package/dist/components/Toast/index.d.ts +9 -5
  384. package/dist/components/Toast/index.d.ts.map +1 -1
  385. package/dist/components/Toast/index.js +15 -14
  386. package/dist/components/Toast/index.js.map +1 -1
  387. package/dist/components/Toggle/Toggle.module.scss.cjs +11 -11
  388. package/dist/components/Toggle/Toggle.module.scss.js +11 -11
  389. package/dist/components/Toggle/index.cjs +1 -1
  390. package/dist/components/Toggle/index.cjs.map +1 -1
  391. package/dist/components/Toggle/index.js +1 -1
  392. package/dist/components/Toggle/index.js.map +1 -1
  393. package/dist/components/ToggleGroup/ToggleGroup.module.scss.cjs +17 -17
  394. package/dist/components/ToggleGroup/ToggleGroup.module.scss.js +17 -17
  395. package/dist/components/ToggleGroup/index.cjs +27 -8
  396. package/dist/components/ToggleGroup/index.cjs.map +1 -1
  397. package/dist/components/ToggleGroup/index.d.ts +8 -3
  398. package/dist/components/ToggleGroup/index.d.ts.map +1 -1
  399. package/dist/components/ToggleGroup/index.js +27 -8
  400. package/dist/components/ToggleGroup/index.js.map +1 -1
  401. package/dist/components/Tooltip/Tooltip.module.scss.cjs +3 -3
  402. package/dist/components/Tooltip/Tooltip.module.scss.js +3 -3
  403. package/dist/components/Tooltip/index.cjs +32 -10
  404. package/dist/components/Tooltip/index.cjs.map +1 -1
  405. package/dist/components/Tooltip/index.d.ts +3 -1
  406. package/dist/components/Tooltip/index.d.ts.map +1 -1
  407. package/dist/components/Tooltip/index.js +32 -10
  408. package/dist/components/Tooltip/index.js.map +1 -1
  409. package/dist/components/VisuallyHidden/index.cjs +10 -2
  410. package/dist/components/VisuallyHidden/index.cjs.map +1 -1
  411. package/dist/components/VisuallyHidden/index.d.ts +1 -1
  412. package/dist/components/VisuallyHidden/index.d.ts.map +1 -1
  413. package/dist/components/VisuallyHidden/index.js +10 -2
  414. package/dist/components/VisuallyHidden/index.js.map +1 -1
  415. package/dist/datepicker.cjs +32 -11
  416. package/dist/datepicker.cjs.map +1 -1
  417. package/dist/datepicker.js +32 -11
  418. package/dist/datepicker.js.map +1 -1
  419. package/dist/index.cjs.map +1 -1
  420. package/dist/index.d.ts +2 -1
  421. package/dist/index.d.ts.map +1 -1
  422. package/dist/index.js.map +1 -1
  423. package/dist/markdown.cjs +5 -5
  424. package/dist/markdown.cjs.map +1 -1
  425. package/dist/markdown.js +5 -5
  426. package/dist/markdown.js.map +1 -1
  427. package/dist/table.cjs +19 -3
  428. package/dist/table.cjs.map +1 -1
  429. package/dist/table.js +19 -3
  430. package/dist/table.js.map +1 -1
  431. package/fragments.json +1 -1
  432. package/package.json +2 -2
  433. package/src/blocks/AccountSettings.block.ts +1 -1
  434. package/src/blocks/ActivityFeed.block.ts +1 -1
  435. package/src/blocks/ActivityFeedSkeleton.block.ts +1 -1
  436. package/src/blocks/BlogEditor.block.ts +1 -1
  437. package/src/blocks/ChatInterface.block.ts +1 -1
  438. package/src/blocks/ChatMessages.block.ts +1 -1
  439. package/src/blocks/CheckoutForm.block.ts +1 -1
  440. package/src/blocks/CommandPalette.block.ts +1 -1
  441. package/src/blocks/ContactForm.block.ts +1 -1
  442. package/src/blocks/DashboardLayout.block.ts +1 -1
  443. package/src/blocks/DashboardPage.block.ts +1 -1
  444. package/src/blocks/DashboardSkeleton.block.ts +1 -1
  445. package/src/blocks/DataTable.block.ts +1 -1
  446. package/src/blocks/EmptyState.block.ts +1 -1
  447. package/src/blocks/FAQSection.block.ts +1 -1
  448. package/src/blocks/FeatureGrid.block.ts +1 -1
  449. package/src/blocks/HeroSection.block.ts +1 -1
  450. package/src/blocks/LoginForm.block.ts +1 -1
  451. package/src/blocks/NavigationHeader.block.ts +1 -1
  452. package/src/blocks/PaginatedTable.block.ts +1 -1
  453. package/src/blocks/PricingComparison.block.ts +1 -1
  454. package/src/blocks/ProductCard.block.ts +1 -1
  455. package/src/blocks/RegistrationForm.block.ts +1 -1
  456. package/src/blocks/SettingsDrawer.block.ts +1 -1
  457. package/src/blocks/SettingsPanel.block.ts +1 -1
  458. package/src/blocks/ShoppingCart.block.ts +1 -1
  459. package/src/blocks/StatsCard.block.ts +1 -1
  460. package/src/blocks/StatsCardSkeleton.block.ts +1 -1
  461. package/src/blocks/TableSkeleton.block.ts +1 -1
  462. package/src/blocks/ThinkingStates.block.ts +1 -1
  463. package/src/components/Accordion/Accordion.fragment.tsx +7 -7
  464. package/src/components/Accordion/Accordion.module.scss +2 -2
  465. package/src/components/Accordion/Accordion.test.tsx +41 -5
  466. package/src/components/Accordion/index.tsx +41 -14
  467. package/src/components/Alert/Alert.fragment.tsx +5 -1
  468. package/src/components/Alert/Alert.module.scss +1 -1
  469. package/src/components/Alert/Alert.test.tsx +25 -0
  470. package/src/components/Alert/index.tsx +49 -30
  471. package/src/components/AppShell/AppShell.fragment.tsx +1 -1
  472. package/src/components/AppShell/AppShell.module.scss +5 -5
  473. package/src/components/AppShell/AppShell.test.tsx +12 -0
  474. package/src/components/AppShell/index.tsx +2 -0
  475. package/src/components/Avatar/Avatar.fragment.tsx +7 -1
  476. package/src/components/Avatar/Avatar.test.tsx +24 -2
  477. package/src/components/Avatar/index.tsx +13 -1
  478. package/src/components/Badge/Badge.fragment.tsx +16 -1
  479. package/src/components/Badge/Badge.test.tsx +8 -1
  480. package/src/components/Badge/index.tsx +7 -2
  481. package/src/components/BentoGrid/BentoGrid.fragment.tsx +3 -1
  482. package/src/components/BentoGrid/BentoGrid.module.scss +52 -16
  483. package/src/components/BentoGrid/BentoGrid.test.tsx +20 -0
  484. package/src/components/BentoGrid/index.tsx +9 -12
  485. package/src/components/Box/Box.fragment.tsx +3 -1
  486. package/src/components/Box/Box.test.tsx +14 -0
  487. package/src/components/Box/index.tsx +8 -2
  488. package/src/components/Breadcrumbs/Breadcrumbs.fragment.tsx +19 -1
  489. package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +13 -0
  490. package/src/components/Breadcrumbs/index.tsx +5 -1
  491. package/src/components/Button/Button.fragment.tsx +28 -6
  492. package/src/components/Button/Button.module.scss +3 -3
  493. package/src/components/Button/Button.test.tsx +11 -0
  494. package/src/components/Button/index.tsx +16 -6
  495. package/src/components/ButtonGroup/ButtonGroup.fragment.tsx +4 -2
  496. package/src/components/ButtonGroup/ButtonGroup.test.tsx +10 -0
  497. package/src/components/ButtonGroup/index.tsx +3 -3
  498. package/src/components/Card/Card.fragment.tsx +24 -9
  499. package/src/components/Card/Card.module.scss +8 -8
  500. package/src/components/Card/Card.test.tsx +4 -5
  501. package/src/components/Card/index.tsx +8 -38
  502. package/src/components/Chart/Chart.fragment.tsx +5 -3
  503. package/src/components/Chart/Chart.module.scss +1 -1
  504. package/src/components/Chart/index.tsx +12 -10
  505. package/src/components/Checkbox/Checkbox.fragment.tsx +27 -1
  506. package/src/components/Checkbox/Checkbox.module.scss +3 -3
  507. package/src/components/Checkbox/index.tsx +16 -3
  508. package/src/components/Chip/Chip.fragment.tsx +20 -3
  509. package/src/components/Chip/Chip.test.tsx +28 -0
  510. package/src/components/Chip/index.tsx +14 -6
  511. package/src/components/CodeBlock/CodeBlock.fragment.tsx +3 -1
  512. package/src/components/CodeBlock/CodeBlock.module.scss +9 -9
  513. package/src/components/CodeBlock/CodeBlock.test.tsx +21 -0
  514. package/src/components/CodeBlock/index.tsx +23 -9
  515. package/src/components/Collapsible/Collapsible.fragment.tsx +1 -1
  516. package/src/components/Collapsible/Collapsible.module.scss +1 -1
  517. package/src/components/Collapsible/Collapsible.test.tsx +41 -0
  518. package/src/components/Collapsible/index.tsx +53 -16
  519. package/src/components/ColorPicker/ColorPicker.fragment.tsx +1 -1
  520. package/src/components/Combobox/Combobox.fragment.tsx +63 -9
  521. package/src/components/Combobox/Combobox.module.scss +4 -7
  522. package/src/components/Combobox/Combobox.test.tsx +79 -3
  523. package/src/components/Combobox/index.tsx +140 -51
  524. package/src/components/Command/Command.fragment.tsx +3 -3
  525. package/src/components/Command/Command.module.scss +5 -5
  526. package/src/components/Command/Command.test.tsx +110 -0
  527. package/src/components/Command/index.tsx +66 -20
  528. package/src/components/ConversationList/ConversationList.fragment.tsx +4 -3
  529. package/src/components/ConversationList/ConversationList.module.scss +5 -5
  530. package/src/components/ConversationList/ConversationList.test.tsx +21 -0
  531. package/src/components/ConversationList/index.tsx +8 -4
  532. package/src/components/DataTable/DataTable.fragment.tsx +12 -2
  533. package/src/components/DataTable/DataTable.module.scss +3 -3
  534. package/src/components/DataTable/DataTable.test.tsx +34 -4
  535. package/src/components/DataTable/index.tsx +44 -6
  536. package/src/components/DatePicker/DatePicker.fragment.tsx +3 -1
  537. package/src/components/DatePicker/DatePicker.module.scss +1 -1
  538. package/src/components/DatePicker/DatePicker.test.tsx +96 -0
  539. package/src/components/DatePicker/index.tsx +38 -16
  540. package/src/components/Dialog/Dialog.fragment.tsx +28 -1
  541. package/src/components/Dialog/Dialog.module.scss +6 -6
  542. package/src/components/Dialog/Dialog.test.tsx +23 -0
  543. package/src/components/Dialog/index.tsx +38 -21
  544. package/src/components/Drawer/Drawer.fragment.tsx +4 -1
  545. package/src/components/Drawer/Drawer.module.scss +3 -3
  546. package/src/components/Drawer/Drawer.test.tsx +35 -0
  547. package/src/components/Drawer/index.tsx +29 -18
  548. package/src/components/Editor/Editor.fragment.tsx +10 -3
  549. package/src/components/Editor/Editor.module.scss +4 -4
  550. package/src/components/Editor/Editor.test.tsx +68 -1
  551. package/src/components/Editor/index.tsx +60 -9
  552. package/src/components/EmptyState/EmptyState.fragment.tsx +3 -1
  553. package/src/components/EmptyState/EmptyState.module.scss +3 -3
  554. package/src/components/EmptyState/EmptyState.test.tsx +18 -0
  555. package/src/components/EmptyState/index.tsx +16 -16
  556. package/src/components/Field/Field.fragment.tsx +1 -1
  557. package/src/components/Fieldset/Fieldset.fragment.tsx +3 -1
  558. package/src/components/Fieldset/Fieldset.test.tsx +14 -0
  559. package/src/components/Fieldset/index.tsx +3 -4
  560. package/src/components/Form/Form.fragment.tsx +12 -7
  561. package/src/components/Form/index.tsx +13 -17
  562. package/src/components/Grid/Grid.fragment.tsx +4 -3
  563. package/src/components/Grid/Grid.module.scss +3 -3
  564. package/src/components/Grid/index.tsx +11 -6
  565. package/src/components/Header/Header.fragment.tsx +31 -1
  566. package/src/components/Header/Header.module.scss +6 -6
  567. package/src/components/Header/Header.test.tsx +95 -1
  568. package/src/components/Header/index.tsx +95 -46
  569. package/src/components/Icon/Icon.fragment.tsx +21 -8
  570. package/src/components/Icon/Icon.test.tsx +27 -3
  571. package/src/components/Icon/index.tsx +39 -15
  572. package/src/components/Image/Image.fragment.tsx +15 -1
  573. package/src/components/Image/Image.test.tsx +32 -1
  574. package/src/components/Image/index.tsx +24 -4
  575. package/src/components/Input/Input.fragment.tsx +49 -1
  576. package/src/components/Input/Input.module.scss +4 -2
  577. package/src/components/Input/Input.test.tsx +3 -3
  578. package/src/components/Input/index.tsx +103 -37
  579. package/src/components/Link/Link.fragment.tsx +7 -6
  580. package/src/components/Link/Link.test.tsx +17 -1
  581. package/src/components/Link/index.tsx +22 -0
  582. package/src/components/List/List.fragment.tsx +1 -1
  583. package/src/components/Listbox/Listbox.fragment.tsx +3 -3
  584. package/src/components/Listbox/Listbox.module.scss +4 -4
  585. package/src/components/Listbox/Listbox.test.tsx +14 -0
  586. package/src/components/Listbox/index.tsx +12 -2
  587. package/src/components/Loading/Loading.fragment.tsx +1 -1
  588. package/src/components/Markdown/Markdown.fragment.tsx +5 -3
  589. package/src/components/Markdown/Markdown.module.scss +5 -5
  590. package/src/components/Markdown/Markdown.test.tsx +6 -0
  591. package/src/components/Markdown/index.tsx +12 -9
  592. package/src/components/Menu/Menu.fragment.tsx +19 -1
  593. package/src/components/Menu/Menu.module.scss +11 -11
  594. package/src/components/Menu/index.tsx +50 -33
  595. package/src/components/Message/Message.fragment.tsx +1 -1
  596. package/src/components/Message/Message.module.scss +3 -3
  597. package/src/components/NavigationMenu/NavigationMenu.fragment.tsx +10 -2
  598. package/src/components/NavigationMenu/NavigationMenu.module.scss +7 -7
  599. package/src/components/NavigationMenu/NavigationMenu.test.tsx +88 -4
  600. package/src/components/NavigationMenu/NavigationMenuContext.ts +17 -0
  601. package/src/components/NavigationMenu/index.tsx +119 -20
  602. package/src/components/NavigationMenu/useNavigationMenu.ts +4 -0
  603. package/src/components/Pagination/Pagination.fragment.tsx +4 -1
  604. package/src/components/Pagination/Pagination.test.tsx +39 -0
  605. package/src/components/Pagination/index.tsx +36 -10
  606. package/src/components/Popover/Popover.fragment.tsx +18 -1
  607. package/src/components/Popover/Popover.module.scss +13 -13
  608. package/src/components/Popover/Popover.test.tsx +23 -0
  609. package/src/components/Popover/index.tsx +44 -22
  610. package/src/components/Progress/Progress.fragment.tsx +3 -1
  611. package/src/components/Progress/Progress.test.tsx +8 -0
  612. package/src/components/Progress/index.tsx +9 -1
  613. package/src/components/Prompt/Prompt.fragment.tsx +4 -1
  614. package/src/components/Prompt/Prompt.module.scss +3 -3
  615. package/src/components/Prompt/Prompt.test.tsx +19 -0
  616. package/src/components/Prompt/index.tsx +24 -6
  617. package/src/components/RadioGroup/RadioGroup.fragment.tsx +31 -1
  618. package/src/components/RadioGroup/index.tsx +22 -3
  619. package/src/components/ScrollArea/ScrollArea.fragment.tsx +1 -1
  620. package/src/components/Select/Select.fragment.tsx +30 -3
  621. package/src/components/Select/Select.module.scss +3 -3
  622. package/src/components/Select/Select.test.tsx +41 -0
  623. package/src/components/Select/index.tsx +55 -44
  624. package/src/components/Separator/Separator.fragment.tsx +1 -1
  625. package/src/components/Sidebar/Sidebar.fragment.tsx +3 -1
  626. package/src/components/Sidebar/Sidebar.module.scss +20 -20
  627. package/src/components/Sidebar/Sidebar.test.tsx +108 -4
  628. package/src/components/Sidebar/index.tsx +93 -51
  629. package/src/components/Skeleton/Skeleton.fragment.tsx +3 -1
  630. package/src/components/Skeleton/Skeleton.test.tsx +12 -0
  631. package/src/components/Skeleton/index.tsx +6 -7
  632. package/src/components/Slider/Slider.fragment.tsx +21 -1
  633. package/src/components/Slider/Slider.module.scss +31 -0
  634. package/src/components/Slider/Slider.test.tsx +16 -0
  635. package/src/components/Slider/index.tsx +40 -1
  636. package/src/components/Stack/Stack.fragment.tsx +3 -1
  637. package/src/components/Stack/index.tsx +13 -6
  638. package/src/components/Table/Table.fragment.tsx +43 -2
  639. package/src/components/Table/Table.module.scss +2 -2
  640. package/src/components/Table/index.tsx +23 -5
  641. package/src/components/TableOfContents/TableOfContents.fragment.tsx +4 -2
  642. package/src/components/TableOfContents/TableOfContents.test.tsx +34 -9
  643. package/src/components/TableOfContents/index.tsx +9 -5
  644. package/src/components/Tabs/Tabs.fragment.tsx +33 -8
  645. package/src/components/Tabs/Tabs.module.scss +8 -8
  646. package/src/components/Tabs/index.tsx +22 -14
  647. package/src/components/Text/Text.fragment.tsx +1 -1
  648. package/src/components/Textarea/Textarea.fragment.tsx +27 -1
  649. package/src/components/Textarea/index.tsx +39 -14
  650. package/src/components/Theme/Theme.fragment.tsx +3 -1
  651. package/src/components/Theme/Theme.test.tsx +11 -0
  652. package/src/components/Theme/index.tsx +3 -3
  653. package/src/components/ThinkingIndicator/ThinkingIndicator.fragment.tsx +1 -1
  654. package/src/components/ThinkingIndicator/ThinkingIndicator.module.scss +1 -1
  655. package/src/components/Toast/Toast.fragment.tsx +6 -3
  656. package/src/components/Toast/Toast.module.scss +8 -6
  657. package/src/components/Toast/index.tsx +24 -20
  658. package/src/components/Toggle/Toggle.fragment.tsx +1 -1
  659. package/src/components/Toggle/Toggle.module.scss +61 -21
  660. package/src/components/Toggle/index.tsx +3 -3
  661. package/src/components/ToggleGroup/ToggleGroup.fragment.tsx +33 -8
  662. package/src/components/ToggleGroup/ToggleGroup.module.scss +3 -3
  663. package/src/components/ToggleGroup/index.tsx +29 -9
  664. package/src/components/Tooltip/Tooltip.fragment.tsx +16 -1
  665. package/src/components/Tooltip/Tooltip.module.scss +1 -1
  666. package/src/components/Tooltip/Tooltip.test.tsx +17 -0
  667. package/src/components/Tooltip/index.tsx +60 -31
  668. package/src/components/VisuallyHidden/VisuallyHidden.fragment.tsx +3 -1
  669. package/src/components/VisuallyHidden/VisuallyHidden.test.tsx +12 -0
  670. package/src/components/VisuallyHidden/index.tsx +7 -3
  671. package/src/index.ts +3 -2
  672. package/src/tokens/_computed.scss +1 -19
  673. package/src/tokens/_density.scss +0 -42
  674. package/src/tokens/_mixins.scss +4 -0
  675. package/src/tokens/_variables.scss +12 -114
@@ -1 +1 @@
1
- {"version":3,"file":"datepicker.js","sources":["../src/components/DatePicker/index.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Popover as BasePopover } from '@base-ui/react/popover';\nimport styles from './DatePicker.module.scss';\n// Import globals to ensure CSS variables are defined\nimport '../../styles/globals.scss';\n\n// ============================================\n// Types (self-owned — no external dependency for types)\n// ============================================\n\nexport type DateRange = { from: Date | undefined; to?: Date | undefined };\nexport type Matcher = Date | DateRange | ((date: Date) => boolean) | Date[];\ntype Locale = { [key: string]: unknown };\n\nexport interface DatePickerProps {\n children: React.ReactNode;\n /** Selection mode */\n mode?: 'single' | 'range';\n /** Controlled date (single mode) */\n selected?: Date | null;\n /** Controlled range (range mode) */\n selectedRange?: DateRange | null;\n /** Single selection callback */\n onSelect?: (date: Date | null) => void;\n /** Range selection callback */\n onRangeSelect?: (range: DateRange | null) => void;\n /** Number of months displayed side-by-side */\n numberOfMonths?: number;\n /** Disable the picker */\n disabled?: boolean;\n /** react-day-picker Matcher for disabled dates */\n disabledDates?: Matcher | Matcher[];\n /** Trigger placeholder text */\n placeholder?: string;\n /** date-fns locale for i18n */\n locale?: Locale;\n /** Always show 6 rows */\n fixedWeeks?: boolean;\n /** Custom trigger date formatter */\n formatDate?: (date: Date) => string;\n /** Custom trigger range formatter */\n formatRange?: (range: DateRange) => string;\n /** Controlled popover open state */\n open?: boolean;\n /** Popover open state change callback */\n onOpenChange?: (open: boolean) => void;\n /** Hidden input name for forms */\n name?: string;\n}\n\nexport interface DatePickerTriggerProps extends React.HTMLAttributes<HTMLButtonElement> {\n children?: React.ReactNode;\n placeholder?: string;\n}\n\nexport interface DatePickerContentProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n sideOffset?: number;\n align?: 'start' | 'center' | 'end';\n}\n\nexport interface DatePickerCalendarProps {\n /** Override number of months from root */\n numberOfMonths?: number;\n className?: string;\n}\n\nexport interface DatePickerPresetProps {\n children: React.ReactNode;\n /** Date to select (single mode) */\n date?: Date;\n /** Range to select (range mode) */\n range?: DateRange;\n className?: string;\n}\n\n// ============================================\n// Lazy-loaded dependencies (react-day-picker + date-fns)\n// ============================================\n\nlet _DayPicker: any = null;\nlet _dpUI: any = null;\nlet _SelectionState: any = null;\nlet _DayFlag: any = null;\nlet _formatDate: ((date: Date, fmt: string) => string) | null = null;\nlet _dpLoaded = false;\nlet _dpFailed = false;\n\nfunction loadDatePickerDeps() {\n if (_dpLoaded) return;\n _dpLoaded = true;\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const rdp = require('react-day-picker');\n _DayPicker = rdp.DayPicker;\n _dpUI = rdp.UI;\n _SelectionState = rdp.SelectionState;\n _DayFlag = rdp.DayFlag;\n } catch {\n _dpFailed = true;\n }\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n _formatDate = require('date-fns').format;\n } catch {\n _dpFailed = true;\n }\n}\n\n// ============================================\n// Icons\n// ============================================\n\nfunction CalendarIcon() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\" />\n <line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\" />\n <line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\" />\n <line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\" />\n </svg>\n );\n}\n\nfunction ChevronLeftIcon() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polyline points=\"15 18 9 12 15 6\" />\n </svg>\n );\n}\n\nfunction ChevronRightIcon() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n );\n}\n\n// ============================================\n// Context\n// ============================================\n\ninterface DatePickerContextValue {\n mode: 'single' | 'range';\n selected: Date | null;\n selectedRange: DateRange | null;\n setSelected: (date: Date | null) => void;\n setSelectedRange: (range: DateRange | null) => void;\n numberOfMonths: number;\n disabled: boolean;\n disabledDates?: Matcher | Matcher[];\n placeholder: string;\n locale?: Locale;\n fixedWeeks: boolean;\n formatDate: (date: Date) => string;\n formatRange: (range: DateRange) => string;\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n isControlledOpen: boolean;\n name?: string;\n}\n\nconst DatePickerContext = React.createContext<DatePickerContextValue | null>(null);\n\nfunction useDatePickerContext() {\n const context = React.useContext(DatePickerContext);\n if (!context) {\n throw new Error('DatePicker compound components must be used within <DatePicker>');\n }\n return context;\n}\n\n// ============================================\n// Default formatters\n// ============================================\n\nfunction defaultFormatDate(date: Date): string {\n if (_formatDate) return _formatDate(date, 'PPP');\n return date.toLocaleDateString();\n}\n\nfunction defaultFormatRange(range: DateRange): string {\n if (!range.from) return '';\n if (_formatDate) {\n if (!range.to) return _formatDate(range.from, 'LLL dd, y');\n return `${_formatDate(range.from, 'LLL dd, y')} - ${_formatDate(range.to, 'LLL dd, y')}`;\n }\n if (!range.to) return range.from.toLocaleDateString();\n return `${range.from.toLocaleDateString()} - ${range.to.toLocaleDateString()}`;\n}\n\n// ============================================\n// ClassNames mapping (built lazily)\n// ============================================\n\nfunction getCalendarClassNames() {\n if (!_dpUI || !_SelectionState || !_DayFlag) return {};\n return {\n [_dpUI.Root]: styles.calendar,\n [_dpUI.Months]: styles.months,\n [_dpUI.Month]: styles.month,\n [_dpUI.MonthCaption]: styles.monthCaption,\n [_dpUI.CaptionLabel]: styles.captionLabel,\n [_dpUI.Nav]: styles.nav,\n [_dpUI.PreviousMonthButton]: styles.navButton,\n [_dpUI.NextMonthButton]: styles.navButton,\n [_dpUI.MonthGrid]: styles.monthGrid,\n [_dpUI.Weekdays]: styles.weekdays,\n [_dpUI.Weekday]: styles.weekday,\n [_dpUI.Weeks]: styles.weeks,\n [_dpUI.Week]: styles.week,\n [_dpUI.Day]: styles.day,\n [_dpUI.DayButton]: styles.dayButton,\n [_dpUI.Chevron]: styles.chevron,\n [_SelectionState.selected]: styles.selected,\n [_SelectionState.range_start]: styles.rangeStart,\n [_SelectionState.range_middle]: styles.rangeMiddle,\n [_SelectionState.range_end]: styles.rangeEnd,\n [_DayFlag.today]: styles.today,\n [_DayFlag.outside]: styles.outside,\n [_DayFlag.disabled]: styles.disabled,\n [_DayFlag.focused]: styles.focused,\n };\n}\n\n// ============================================\n// Components\n// ============================================\n\nfunction DatePickerRoot({\n children,\n mode = 'single',\n selected: selectedProp,\n selectedRange: selectedRangeProp,\n onSelect,\n onRangeSelect,\n numberOfMonths = 1,\n disabled = false,\n disabledDates,\n placeholder,\n locale,\n fixedWeeks = false,\n formatDate: formatDateProp,\n formatRange: formatRangeProp,\n open: openProp,\n onOpenChange,\n name,\n}: DatePickerProps) {\n // Load deps eagerly so date formatters are available in the trigger\n loadDatePickerDeps();\n const [internalSelected, setInternalSelected] = React.useState<Date | null>(\n selectedProp ?? null\n );\n const [internalRange, setInternalRange] = React.useState<DateRange | null>(\n selectedRangeProp ?? null\n );\n const [internalOpen, setInternalOpen] = React.useState(false);\n\n const isControlledOpen = openProp !== undefined;\n const isOpen = isControlledOpen ? openProp : internalOpen;\n\n // Sync controlled selected\n React.useEffect(() => {\n if (selectedProp !== undefined) {\n setInternalSelected(selectedProp);\n }\n }, [selectedProp]);\n\n // Sync controlled range\n React.useEffect(() => {\n if (selectedRangeProp !== undefined) {\n setInternalRange(selectedRangeProp);\n }\n }, [selectedRangeProp]);\n\n const handleOpenChange = React.useCallback(\n (newOpen: boolean) => {\n if (!isControlledOpen) {\n setInternalOpen(newOpen);\n }\n onOpenChange?.(newOpen);\n },\n [isControlledOpen, onOpenChange]\n );\n\n const setSelected = React.useCallback(\n (date: Date | null) => {\n if (selectedProp === undefined) {\n setInternalSelected(date);\n }\n onSelect?.(date);\n\n // Auto-close after single selection (uncontrolled)\n if (!isControlledOpen && date) {\n setTimeout(() => {\n setInternalOpen(false);\n onOpenChange?.(false);\n }, 150);\n }\n },\n [selectedProp, onSelect, isControlledOpen, onOpenChange]\n );\n\n const setSelectedRange = React.useCallback(\n (range: DateRange | null) => {\n if (selectedRangeProp === undefined) {\n setInternalRange(range);\n }\n onRangeSelect?.(range);\n\n // Range mode never auto-closes. The user closes manually via\n // click-outside, Escape, or clicking the trigger again. This\n // matches shadcn behavior and avoids premature close on first\n // click or preset selection.\n },\n [selectedRangeProp, onRangeSelect]\n );\n\n const defaultPlaceholder = mode === 'range' ? 'Select date range' : 'Pick a date';\n\n const contextValue = React.useMemo<DatePickerContextValue>(\n () => ({\n mode,\n selected: selectedProp !== undefined ? selectedProp : internalSelected,\n selectedRange: selectedRangeProp !== undefined ? selectedRangeProp : internalRange,\n setSelected,\n setSelectedRange,\n numberOfMonths,\n disabled,\n disabledDates,\n placeholder: placeholder ?? defaultPlaceholder,\n locale,\n fixedWeeks,\n formatDate: formatDateProp ?? defaultFormatDate,\n formatRange: formatRangeProp ?? defaultFormatRange,\n isOpen,\n setIsOpen: handleOpenChange,\n isControlledOpen,\n name,\n }),\n [\n mode,\n selectedProp,\n internalSelected,\n selectedRangeProp,\n internalRange,\n setSelected,\n setSelectedRange,\n numberOfMonths,\n disabled,\n disabledDates,\n placeholder,\n defaultPlaceholder,\n locale,\n fixedWeeks,\n formatDateProp,\n formatRangeProp,\n isOpen,\n handleOpenChange,\n isControlledOpen,\n name,\n ]\n );\n\n return (\n <DatePickerContext.Provider value={contextValue}>\n <BasePopover.Root\n open={isOpen}\n onOpenChange={handleOpenChange}\n >\n {children}\n </BasePopover.Root>\n {name && (\n <input\n type=\"hidden\"\n name={name}\n value={\n mode === 'single'\n ? (contextValue.selected?.toISOString() ?? '')\n : contextValue.selectedRange\n ? `${contextValue.selectedRange.from?.toISOString() ?? ''},${contextValue.selectedRange.to?.toISOString() ?? ''}`\n : ''\n }\n />\n )}\n </DatePickerContext.Provider>\n );\n}\n\nfunction DatePickerTrigger({ children, placeholder, className, ...htmlProps }: DatePickerTriggerProps) {\n const ctx = useDatePickerContext();\n const placeholderText = placeholder ?? ctx.placeholder;\n\n const classes = [styles.trigger, className].filter(Boolean).join(' ');\n\n let displayText: string | null = null;\n if (ctx.mode === 'single' && ctx.selected) {\n displayText = ctx.formatDate(ctx.selected);\n } else if (ctx.mode === 'range' && ctx.selectedRange?.from) {\n displayText = ctx.formatRange(ctx.selectedRange);\n }\n\n return (\n <BasePopover.Trigger\n {...htmlProps}\n className={classes}\n disabled={ctx.disabled}\n >\n {children ?? (\n <>\n <span className={styles.triggerIcon}>\n <CalendarIcon />\n </span>\n <span className={displayText ? styles.triggerValue : styles.triggerPlaceholder}>\n {displayText ?? placeholderText}\n </span>\n </>\n )}\n </BasePopover.Trigger>\n );\n}\n\nfunction DatePickerContent({\n children,\n className,\n sideOffset = 4,\n align = 'start',\n ...htmlProps\n}: DatePickerContentProps) {\n const popupClasses = [styles.popup, className].filter(Boolean).join(' ');\n\n return (\n <BasePopover.Portal>\n <BasePopover.Positioner\n side=\"bottom\"\n align={align}\n sideOffset={sideOffset}\n className={styles.positioner}\n >\n <BasePopover.Popup {...htmlProps} className={popupClasses}>\n {children}\n </BasePopover.Popup>\n </BasePopover.Positioner>\n </BasePopover.Portal>\n );\n}\n\nfunction DatePickerCalendar({ numberOfMonths: numberOfMonthsProp, className }: DatePickerCalendarProps) {\n loadDatePickerDeps();\n\n const ctx = useDatePickerContext();\n const monthCount = numberOfMonthsProp ?? ctx.numberOfMonths;\n\n const components = React.useMemo(\n () => ({\n Chevron: (props: { orientation?: string }) =>\n props.orientation === 'left' ? <ChevronLeftIcon /> : <ChevronRightIcon />,\n }),\n []\n );\n\n if (_dpFailed || !_DayPicker) {\n if (_dpFailed && process.env.NODE_ENV === 'development') {\n console.warn(\n '[@fragments-sdk/ui] DatePicker: react-day-picker and date-fns are not installed. ' +\n 'Install them with: npm install react-day-picker date-fns'\n );\n }\n return null;\n }\n\n const calendarClassNames = getCalendarClassNames();\n\n const calendarClasses = className\n ? { ...calendarClassNames, [_dpUI.Root]: [styles.calendar, className].join(' ') }\n : calendarClassNames;\n\n const DayPickerComponent = _DayPicker;\n\n if (ctx.mode === 'range') {\n const rangeSelected = ctx.selectedRange\n ? { from: ctx.selectedRange.from ?? undefined, to: ctx.selectedRange.to ?? undefined }\n : undefined;\n\n return (\n <DayPickerComponent\n mode=\"range\"\n selected={rangeSelected}\n onSelect={(range: any) => {\n ctx.setSelectedRange(range ? { from: range.from ?? undefined, to: range.to ?? undefined } : null);\n }}\n numberOfMonths={monthCount}\n disabled={ctx.disabledDates}\n locale={ctx.locale}\n fixedWeeks={ctx.fixedWeeks}\n classNames={calendarClasses}\n components={components}\n showOutsideDays\n />\n );\n }\n\n return (\n <DayPickerComponent\n mode=\"single\"\n selected={ctx.selected ?? undefined}\n onSelect={(date: any) => {\n ctx.setSelected(date ?? null);\n }}\n numberOfMonths={monthCount}\n disabled={ctx.disabledDates}\n locale={ctx.locale}\n fixedWeeks={ctx.fixedWeeks}\n classNames={calendarClasses}\n components={components}\n showOutsideDays\n />\n );\n}\n\nfunction DatePickerPreset({ children, date, range, className }: DatePickerPresetProps) {\n const ctx = useDatePickerContext();\n const classes = [styles.preset, className].filter(Boolean).join(' ');\n\n const handleClick = React.useCallback(() => {\n if (ctx.mode === 'single' && date) {\n ctx.setSelected(date);\n } else if (ctx.mode === 'range' && range) {\n ctx.setSelectedRange(range);\n }\n }, [ctx, date, range]);\n\n return (\n <button type=\"button\" className={classes} onClick={handleClick}>\n {children}\n </button>\n );\n}\n\n// ============================================\n// Export compound component\n// ============================================\n\nexport const DatePicker = Object.assign(DatePickerRoot, {\n Trigger: DatePickerTrigger,\n Content: DatePickerContent,\n Calendar: DatePickerCalendar,\n Preset: DatePickerPreset,\n});\n\n// Re-export individual components\nexport {\n DatePickerRoot,\n DatePickerTrigger,\n DatePickerContent,\n DatePickerCalendar,\n DatePickerPreset,\n};\n"],"names":["BasePopover"],"mappings":";;;;;AAkFA,IAAI,aAAkB;AACtB,IAAI,QAAa;AACjB,IAAI,kBAAuB;AAC3B,IAAI,WAAgB;AACpB,IAAI,cAA4D;AAChE,IAAI,YAAY;AA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A,MACA,iBAAe;AAAA,IAAA;AAAA,EAAA;AAGrB;AAEA,SAAS,iBAAiB,EAAE,UAAU,MAAM,OAAO,aAAoC;AACrF,QAAM,MAAM,qBAAA;AACZ,QAAM,UAAU,CAAC,OAAO,QAAQ,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAEnE,QAAM,cAAc,MAAM,YAAY,MAAM;AAC1C,QAAI,IAAI,SAAS,YAAY,MAAM;AACjC,UAAI,YAAY,IAAI;AAAA,IACtB,WAAW,IAAI,SAAS,WAAW,OAAO;AACxC,UAAI,iBAAiB,KAAK;AAAA,IAC5B;AAAA,EACF,GAAG,CAAC,KAAK,MAAM,KAAK,CAAC;AAErB,SACE,oBAAC,YAAO,MAAK,UAAS,WAAW,SAAS,SAAS,aAChD,UACH;AAEJ;AAMO,MAAM,aAAa,OAAO,OAAO,gBAAgB;AAAA,EACtD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AAAA,EACV,QAAQ;AACV,CAAC;"}
1
+ {"version":3,"file":"datepicker.js","sources":["../src/components/DatePicker/index.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Popover as BasePopover } from '@base-ui/react/popover';\nimport styles from './DatePicker.module.scss';\n// Import globals to ensure CSS variables are defined\nimport '../../styles/globals.scss';\n\n// ============================================\n// Types (self-owned — no external dependency for types)\n// ============================================\n\nexport type DateRange = { from: Date | undefined; to?: Date | undefined };\nexport type Matcher = Date | DateRange | ((date: Date) => boolean) | Date[];\ntype Locale = { [key: string]: unknown };\n\nexport interface DatePickerProps {\n children: React.ReactNode;\n /** Selection mode */\n mode?: 'single' | 'range';\n /** Controlled date (single mode) */\n selected?: Date | null;\n /** Controlled range (range mode) */\n selectedRange?: DateRange | null;\n /** Single selection callback */\n onSelect?: (date: Date | null) => void;\n /** Range selection callback */\n onRangeSelect?: (range: DateRange | null) => void;\n /** Number of months displayed side-by-side */\n numberOfMonths?: number;\n /** Disable the picker */\n disabled?: boolean;\n /** react-day-picker Matcher for disabled dates */\n disabledDates?: Matcher | Matcher[];\n /** Trigger placeholder text */\n placeholder?: string;\n /** date-fns locale for i18n */\n locale?: Locale;\n /** Always show 6 rows */\n fixedWeeks?: boolean;\n /** Custom trigger date formatter */\n formatDate?: (date: Date) => string;\n /** Custom trigger range formatter */\n formatRange?: (range: DateRange) => string;\n /** Controlled popover open state */\n open?: boolean;\n /** Popover open state change callback */\n onOpenChange?: (open: boolean) => void;\n /** Hidden input name for forms */\n name?: string;\n}\n\nexport interface DatePickerTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n children?: React.ReactNode;\n placeholder?: string;\n}\n\nexport interface DatePickerContentProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n sideOffset?: number;\n align?: 'start' | 'center' | 'end';\n}\n\nexport interface DatePickerCalendarProps {\n /** Override number of months from root */\n numberOfMonths?: number;\n className?: string;\n}\n\nexport interface DatePickerPresetProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n children: React.ReactNode;\n /** Date to select (single mode) */\n date?: Date;\n /** Range to select (range mode) */\n range?: DateRange;\n}\n\n// ============================================\n// Lazy-loaded dependencies (react-day-picker + date-fns)\n// ============================================\n\nlet _DayPicker: any = null;\nlet _dpUI: any = null;\nlet _SelectionState: any = null;\nlet _DayFlag: any = null;\nlet _formatDate: ((date: Date, fmt: string) => string) | null = null;\nlet _dpLoaded = false;\nlet _dpFailed = false;\n\nfunction loadDatePickerDeps() {\n if (_dpLoaded) return;\n _dpLoaded = true;\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const rdp = require('react-day-picker');\n _DayPicker = rdp.DayPicker;\n _dpUI = rdp.UI;\n _SelectionState = rdp.SelectionState;\n _DayFlag = rdp.DayFlag;\n } catch {\n _dpFailed = true;\n }\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n _formatDate = require('date-fns').format;\n } catch {\n _dpFailed = true;\n }\n}\n\n// ============================================\n// Icons\n// ============================================\n\nfunction CalendarIcon() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\" />\n <line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\" />\n <line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\" />\n <line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\" />\n </svg>\n );\n}\n\nfunction ChevronLeftIcon() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polyline points=\"15 18 9 12 15 6\" />\n </svg>\n );\n}\n\nfunction ChevronRightIcon() {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n );\n}\n\n// ============================================\n// Context\n// ============================================\n\ninterface DatePickerContextValue {\n mode: 'single' | 'range';\n selected: Date | null;\n selectedRange: DateRange | null;\n setSelected: (date: Date | null) => void;\n setSelectedRange: (range: DateRange | null) => void;\n numberOfMonths: number;\n disabled: boolean;\n disabledDates?: Matcher | Matcher[];\n placeholder: string;\n locale?: Locale;\n fixedWeeks: boolean;\n formatDate: (date: Date) => string;\n formatRange: (range: DateRange) => string;\n isOpen: boolean;\n setIsOpen: (open: boolean) => void;\n isControlledOpen: boolean;\n name?: string;\n}\n\nconst DatePickerContext = React.createContext<DatePickerContextValue | null>(null);\n\nfunction useDatePickerContext() {\n const context = React.useContext(DatePickerContext);\n if (!context) {\n throw new Error('DatePicker compound components must be used within <DatePicker>');\n }\n return context;\n}\n\n// ============================================\n// Default formatters\n// ============================================\n\nfunction defaultFormatDate(date: Date): string {\n if (_formatDate) return _formatDate(date, 'PPP');\n return date.toLocaleDateString();\n}\n\nfunction defaultFormatRange(range: DateRange): string {\n if (!range.from) return '';\n if (_formatDate) {\n if (!range.to) return _formatDate(range.from, 'LLL dd, y');\n return `${_formatDate(range.from, 'LLL dd, y')} - ${_formatDate(range.to, 'LLL dd, y')}`;\n }\n if (!range.to) return range.from.toLocaleDateString();\n return `${range.from.toLocaleDateString()} - ${range.to.toLocaleDateString()}`;\n}\n\nfunction formatDateForHiddenInput(date?: Date): string {\n if (!date) return '';\n const year = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const day = String(date.getDate()).padStart(2, '0');\n return `${year}-${month}-${day}`;\n}\n\n// ============================================\n// ClassNames mapping (built lazily)\n// ============================================\n\nfunction getCalendarClassNames() {\n if (!_dpUI || !_SelectionState || !_DayFlag) return {};\n return {\n [_dpUI.Root]: styles.calendar,\n [_dpUI.Months]: styles.months,\n [_dpUI.Month]: styles.month,\n [_dpUI.MonthCaption]: styles.monthCaption,\n [_dpUI.CaptionLabel]: styles.captionLabel,\n [_dpUI.Nav]: styles.nav,\n [_dpUI.PreviousMonthButton]: styles.navButton,\n [_dpUI.NextMonthButton]: styles.navButton,\n [_dpUI.MonthGrid]: styles.monthGrid,\n [_dpUI.Weekdays]: styles.weekdays,\n [_dpUI.Weekday]: styles.weekday,\n [_dpUI.Weeks]: styles.weeks,\n [_dpUI.Week]: styles.week,\n [_dpUI.Day]: styles.day,\n [_dpUI.DayButton]: styles.dayButton,\n [_dpUI.Chevron]: styles.chevron,\n [_SelectionState.selected]: styles.selected,\n [_SelectionState.range_start]: styles.rangeStart,\n [_SelectionState.range_middle]: styles.rangeMiddle,\n [_SelectionState.range_end]: styles.rangeEnd,\n [_DayFlag.today]: styles.today,\n [_DayFlag.outside]: styles.outside,\n [_DayFlag.disabled]: styles.disabled,\n [_DayFlag.focused]: styles.focused,\n };\n}\n\n// ============================================\n// Components\n// ============================================\n\nfunction DatePickerRoot({\n children,\n mode = 'single',\n selected: selectedProp,\n selectedRange: selectedRangeProp,\n onSelect,\n onRangeSelect,\n numberOfMonths = 1,\n disabled = false,\n disabledDates,\n placeholder,\n locale,\n fixedWeeks = false,\n formatDate: formatDateProp,\n formatRange: formatRangeProp,\n open: openProp,\n onOpenChange,\n name,\n}: DatePickerProps) {\n // Load deps eagerly so date formatters are available in the trigger\n loadDatePickerDeps();\n const [internalSelected, setInternalSelected] = React.useState<Date | null>(\n selectedProp ?? null\n );\n const [internalRange, setInternalRange] = React.useState<DateRange | null>(\n selectedRangeProp ?? null\n );\n const [internalOpen, setInternalOpen] = React.useState(false);\n\n const isControlledOpen = openProp !== undefined;\n const isOpen = isControlledOpen ? openProp : internalOpen;\n\n // Sync controlled selected\n React.useEffect(() => {\n if (selectedProp !== undefined) {\n setInternalSelected(selectedProp);\n }\n }, [selectedProp]);\n\n // Sync controlled range\n React.useEffect(() => {\n if (selectedRangeProp !== undefined) {\n setInternalRange(selectedRangeProp);\n }\n }, [selectedRangeProp]);\n\n const handleOpenChange = React.useCallback(\n (newOpen: boolean) => {\n if (!isControlledOpen) {\n setInternalOpen(newOpen);\n }\n onOpenChange?.(newOpen);\n },\n [isControlledOpen, onOpenChange]\n );\n\n const setSelected = React.useCallback(\n (date: Date | null) => {\n if (selectedProp === undefined) {\n setInternalSelected(date);\n }\n onSelect?.(date);\n\n // Auto-close after single selection (controlled and uncontrolled).\n if (date) {\n setTimeout(() => {\n handleOpenChange(false);\n }, 150);\n }\n },\n [selectedProp, onSelect, handleOpenChange]\n );\n\n const setSelectedRange = React.useCallback(\n (range: DateRange | null) => {\n if (selectedRangeProp === undefined) {\n setInternalRange(range);\n }\n onRangeSelect?.(range);\n\n // Range mode never auto-closes. The user closes manually via\n // click-outside, Escape, or clicking the trigger again. This\n // matches shadcn behavior and avoids premature close on first\n // click or preset selection.\n },\n [selectedRangeProp, onRangeSelect]\n );\n\n const defaultPlaceholder = mode === 'range' ? 'Select date range' : 'Pick a date';\n\n const contextValue = React.useMemo<DatePickerContextValue>(\n () => ({\n mode,\n selected: selectedProp !== undefined ? selectedProp : internalSelected,\n selectedRange: selectedRangeProp !== undefined ? selectedRangeProp : internalRange,\n setSelected,\n setSelectedRange,\n numberOfMonths,\n disabled,\n disabledDates,\n placeholder: placeholder ?? defaultPlaceholder,\n locale,\n fixedWeeks,\n formatDate: formatDateProp ?? defaultFormatDate,\n formatRange: formatRangeProp ?? defaultFormatRange,\n isOpen,\n setIsOpen: handleOpenChange,\n isControlledOpen,\n name,\n }),\n [\n mode,\n selectedProp,\n internalSelected,\n selectedRangeProp,\n internalRange,\n setSelected,\n setSelectedRange,\n numberOfMonths,\n disabled,\n disabledDates,\n placeholder,\n defaultPlaceholder,\n locale,\n fixedWeeks,\n formatDateProp,\n formatRangeProp,\n isOpen,\n handleOpenChange,\n isControlledOpen,\n name,\n ]\n );\n\n return (\n <DatePickerContext.Provider value={contextValue}>\n <BasePopover.Root\n open={isOpen}\n onOpenChange={handleOpenChange}\n >\n {children}\n </BasePopover.Root>\n {name && (\n <input\n type=\"hidden\"\n name={name}\n value={\n mode === 'single'\n ? formatDateForHiddenInput(contextValue.selected ?? undefined)\n : contextValue.selectedRange\n ? `${formatDateForHiddenInput(contextValue.selectedRange.from)},${formatDateForHiddenInput(contextValue.selectedRange.to)}`\n : ''\n }\n />\n )}\n </DatePickerContext.Provider>\n );\n}\n\nfunction DatePickerTrigger({\n children,\n placeholder,\n className,\n type = 'button',\n ...htmlProps\n}: DatePickerTriggerProps) {\n const ctx = useDatePickerContext();\n const placeholderText = placeholder ?? ctx.placeholder;\n\n const classes = [styles.trigger, className].filter(Boolean).join(' ');\n\n let displayText: string | null = null;\n if (ctx.mode === 'single' && ctx.selected) {\n displayText = ctx.formatDate(ctx.selected);\n } else if (ctx.mode === 'range' && ctx.selectedRange?.from) {\n displayText = ctx.formatRange(ctx.selectedRange);\n }\n\n return (\n <BasePopover.Trigger\n {...htmlProps}\n type={type}\n className={classes}\n disabled={ctx.disabled}\n >\n {children ?? (\n <>\n <span className={styles.triggerIcon}>\n <CalendarIcon />\n </span>\n <span className={displayText ? styles.triggerValue : styles.triggerPlaceholder}>\n {displayText ?? placeholderText}\n </span>\n </>\n )}\n </BasePopover.Trigger>\n );\n}\n\nfunction DatePickerContent({\n children,\n className,\n sideOffset = 4,\n align = 'start',\n ...htmlProps\n}: DatePickerContentProps) {\n const popupClasses = [styles.popup, className].filter(Boolean).join(' ');\n\n return (\n <BasePopover.Portal>\n <BasePopover.Positioner\n side=\"bottom\"\n align={align}\n sideOffset={sideOffset}\n className={styles.positioner}\n >\n <BasePopover.Popup {...htmlProps} className={popupClasses}>\n {children}\n </BasePopover.Popup>\n </BasePopover.Positioner>\n </BasePopover.Portal>\n );\n}\n\nfunction DatePickerCalendar({ numberOfMonths: numberOfMonthsProp, className }: DatePickerCalendarProps) {\n loadDatePickerDeps();\n\n const ctx = useDatePickerContext();\n const monthCount = numberOfMonthsProp ?? ctx.numberOfMonths;\n\n const components = React.useMemo(\n () => ({\n Chevron: (props: { orientation?: string }) =>\n props.orientation === 'left' ? <ChevronLeftIcon /> : <ChevronRightIcon />,\n }),\n []\n );\n\n if (_dpFailed || !_DayPicker) {\n if (_dpFailed && process.env.NODE_ENV === 'development') {\n console.warn(\n '[@fragments-sdk/ui] DatePicker: react-day-picker and date-fns are not installed. ' +\n 'Install them with: npm install react-day-picker date-fns'\n );\n }\n return null;\n }\n\n const calendarClassNames = getCalendarClassNames();\n\n const calendarClasses = className\n ? { ...calendarClassNames, [_dpUI.Root]: [styles.calendar, className].join(' ') }\n : calendarClassNames;\n\n const DayPickerComponent = _DayPicker;\n\n if (ctx.mode === 'range') {\n const rangeSelected = ctx.selectedRange\n ? { from: ctx.selectedRange.from ?? undefined, to: ctx.selectedRange.to ?? undefined }\n : undefined;\n\n return (\n <DayPickerComponent\n mode=\"range\"\n selected={rangeSelected}\n onSelect={(range: any) => {\n ctx.setSelectedRange(range ? { from: range.from ?? undefined, to: range.to ?? undefined } : null);\n }}\n numberOfMonths={monthCount}\n disabled={ctx.disabledDates}\n locale={ctx.locale}\n fixedWeeks={ctx.fixedWeeks}\n classNames={calendarClasses}\n components={components}\n showOutsideDays\n />\n );\n }\n\n return (\n <DayPickerComponent\n mode=\"single\"\n selected={ctx.selected ?? undefined}\n onSelect={(date: any) => {\n ctx.setSelected(date ?? null);\n }}\n numberOfMonths={monthCount}\n disabled={ctx.disabledDates}\n locale={ctx.locale}\n fixedWeeks={ctx.fixedWeeks}\n classNames={calendarClasses}\n components={components}\n showOutsideDays\n />\n );\n}\n\nfunction DatePickerPreset({\n children,\n date,\n range,\n className,\n onClick,\n ...htmlProps\n}: DatePickerPresetProps) {\n const ctx = useDatePickerContext();\n const classes = [styles.preset, className].filter(Boolean).join(' ');\n\n const handleClick = React.useCallback((event: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(event);\n if (event.defaultPrevented) return;\n if (ctx.mode === 'single' && date) {\n ctx.setSelected(date);\n } else if (ctx.mode === 'range' && range) {\n ctx.setSelectedRange(range);\n }\n }, [ctx, date, range, onClick]);\n\n return (\n <button type=\"button\" {...htmlProps} className={classes} onClick={handleClick}>\n {children}\n </button>\n );\n}\n\n// ============================================\n// Export compound component\n// ============================================\n\nexport const DatePicker = Object.assign(DatePickerRoot, {\n Trigger: DatePickerTrigger,\n Content: DatePickerContent,\n Calendar: DatePickerCalendar,\n Preset: DatePickerPreset,\n});\n\n// Re-export individual components\nexport {\n DatePickerRoot,\n DatePickerTrigger,\n DatePickerContent,\n DatePickerCalendar,\n DatePickerPreset,\n};\n"],"names":["BasePopover"],"mappings":";;;;;AAiFA,IAAI,aAAk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AAI;AAAA,QAChB,YAAY;AAAA,QACZ;AAAA,QACA,iBAAe;AAAA,MAAA;AAAA,IAAA;AAAA,EAGrB;AAEA,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAU,IAAI,YAAY;AAAA,MAC1B,UAAU,CAAC,SAAc;AACvB,YAAI,YAAY,QAAQ,IAAI;AAAA,MAC9B;AAAA,MACA,gBAAgB;AAAA,MAChB,UAAU,IAAI;AAAA,MACd,QAAQ,IAAI;AAAA,MACZ,YAAY,IAAI;AAAA,MAChB,YAAY;AAAA,MACZ;AAAA,MACA,iBAAe;AAAA,IAAA;AAAA,EAAA;AAGrB;AAEA,SAAS,iBAAiB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA0B;AACxB,QAAM,MAAM,qBAAA;AACZ,QAAM,UAAU,CAAC,OAAO,QAAQ,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAEnE,QAAM,cAAc,MAAM,YAAY,CAAC,UAA+C;AACpF,uCAAU;AACV,QAAI,MAAM,iBAAkB;AAC5B,QAAI,IAAI,SAAS,YAAY,MAAM;AACjC,UAAI,YAAY,IAAI;AAAA,IACtB,WAAW,IAAI,SAAS,WAAW,OAAO;AACxC,UAAI,iBAAiB,KAAK;AAAA,IAC5B;AAAA,EACF,GAAG,CAAC,KAAK,MAAM,OAAO,OAAO,CAAC;AAE9B,SACE,oBAAC,UAAA,EAAO,MAAK,UAAU,GAAG,WAAW,WAAW,SAAS,SAAS,aAC/D,SAAA,CACH;AAEJ;AAMO,MAAM,aAAa,OAAO,OAAO,gBAAgB;AAAA,EACtD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AAAA,EACV,QAAQ;AACV,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["// Import CSS variables and base styles\n// This ensures --fui-* variables are available when using any component\nimport './styles/globals.scss';\n\n// Runtime CSS detection — warns if component styles aren't loaded\nimport { checkCssLoaded } from './utils/css-warning';\nif (typeof window !== 'undefined') {\n checkCssLoaded();\n}\n\n// Core Components\nexport { Button, type ButtonProps } from './components/Button';\nexport { Input, type InputProps } from './components/Input';\nexport { Textarea, type TextareaProps } from './components/Textarea';\nexport {\n Card,\n CardRoot,\n CardHeader,\n CardTitle,\n CardDescription,\n CardBody,\n CardFooter,\n type CardProps,\n type CardHeaderProps,\n type CardTitleProps,\n type CardDescriptionProps,\n type CardBodyProps,\n type CardFooterProps,\n} from './components/Card';\nexport {\n Switch,\n type SwitchProps,\n Switch as Toggle,\n type SwitchProps as ToggleProps,\n} from './components/Switch';\nexport {\n Alert,\n AlertRoot,\n AlertIcon,\n AlertBody,\n AlertTitle,\n AlertContent,\n AlertActions,\n AlertAction,\n AlertClose,\n type AlertProps,\n type AlertSeverity,\n type AlertIconProps,\n type AlertBodyProps,\n type AlertTitleProps,\n type AlertContentProps,\n type AlertActionsProps,\n type AlertActionProps,\n type AlertCloseProps,\n} from './components/Alert';\nexport { Badge, type BadgeProps } from './components/Badge';\nexport { Avatar, type AvatarProps, type AvatarGroupProps, type AvatarSize } from './components/Avatar';\n\n// Accordion\nexport {\n Accordion,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n type AccordionValue,\n} from './components/Accordion';\n\n// Collapsible\nexport {\n Collapsible,\n CollapsibleRoot,\n CollapsibleTrigger,\n CollapsibleContent,\n useCollapsibleContext,\n type CollapsibleProps,\n type CollapsibleRootProps,\n type CollapsibleTriggerProps,\n type CollapsibleContentProps,\n} from './components/Collapsible';\n\n// Dialog\nexport {\n Dialog,\n type DialogProps,\n type DialogContentProps,\n type DialogTitleProps,\n type DialogDescriptionProps,\n type DialogHeaderProps,\n type DialogBodyProps,\n type DialogFooterProps,\n type DialogTriggerProps,\n type DialogCloseProps,\n} from './components/Dialog';\n\n// Tabs\nexport {\n Tabs,\n type TabsProps,\n type TabsListProps,\n type TabProps,\n type TabsPanelProps,\n type TabValue,\n} from './components/Tabs';\n\n// Tooltip\nexport {\n Tooltip,\n TooltipProvider,\n type TooltipProps,\n type TooltipProviderProps,\n type TooltipSide,\n type TooltipAlign,\n} from './components/Tooltip';\n\n// Select\nexport {\n Select,\n type SelectProps,\n type SelectTriggerProps,\n type SelectContentProps,\n type SelectItemProps,\n type SelectGroupProps,\n type SelectGroupLabelProps,\n type SelectValue,\n type SelectOption,\n} from './components/Select';\n\n// Menu\nexport {\n Menu,\n type MenuProps,\n type MenuTriggerProps,\n type MenuContentProps,\n type MenuItemProps,\n type MenuCheckboxItemProps,\n type MenuRadioGroupProps,\n type MenuRadioItemProps,\n type MenuGroupProps,\n type MenuGroupLabelProps,\n type MenuSeparatorProps,\n} from './components/Menu';\n\n// Popover\nexport {\n Popover,\n type PopoverProps,\n type PopoverTriggerProps,\n type PopoverContentProps,\n type PopoverTitleProps,\n type PopoverDescriptionProps,\n type PopoverBodyProps,\n type PopoverFooterProps,\n type PopoverCloseProps,\n} from './components/Popover';\n\n// Progress\nexport {\n Progress,\n CircularProgress,\n type ProgressProps,\n type CircularProgressProps,\n} from './components/Progress';\n\n// Checkbox\nexport { Checkbox, type CheckboxProps } from './components/Checkbox';\n\n// Combobox\nexport {\n Combobox,\n type ComboboxProps,\n type ComboboxInputProps,\n type ComboboxTriggerProps,\n type ComboboxContentProps,\n type ComboboxItemProps,\n type ComboboxEmptyProps,\n type ComboboxGroupProps,\n type ComboboxGroupLabelProps,\n} from './components/Combobox';\n\n// RadioGroup\nexport {\n RadioGroup,\n type RadioGroupProps,\n type RadioItemProps,\n} from './components/RadioGroup';\n\n// Grid\nexport { Grid, type GridProps, type GridItemProps, type ResponsiveColumns } from './components/Grid';\n\n// BentoGrid\nexport { BentoGrid, type BentoGridProps, type BentoGridItemProps, type ResponsiveSpan } from './components/BentoGrid';\n\n// Separator\nexport { Separator, type SeparatorProps } from './components/Separator';\n\n// Skeleton\nexport {\n Skeleton,\n type SkeletonProps,\n type SkeletonTextProps,\n type SkeletonVariant,\n type SkeletonSize,\n} from './components/Skeleton';\n\n// Loading\nexport {\n Loading,\n LoadingRoot,\n LoadingInline,\n LoadingScreen,\n type LoadingProps,\n type LoadingSize,\n type LoadingVariant,\n type LoadingInlineProps,\n type LoadingScreenProps,\n} from './components/Loading';\n\n// Table (simple semantic HTML table)\nexport {\n Table,\n type TableProps,\n type TableRowProps,\n type TableCellProps,\n type TableHeaderCellProps,\n type TableCaptionProps,\n} from './components/Table';\n\n// DataTable (TanStack-powered data table)\nexport {\n DataTable,\n createColumns,\n type DataTableProps,\n type DataTableColumn,\n type ColumnDef,\n type SortingState,\n type RowSelectionState,\n type ExpandedState,\n} from './components/DataTable';\n\n// EmptyState\nexport {\n EmptyState,\n EmptyStateRoot,\n EmptyStateIcon,\n EmptyStateTitle,\n EmptyStateDescription,\n EmptyStateActions,\n type EmptyStateProps,\n type EmptyStateIconProps,\n type EmptyStateTitleProps,\n type EmptyStateDescriptionProps,\n type EmptyStateActionsProps,\n} from './components/EmptyState';\n\n// Toast\nexport {\n Toast,\n ToastProvider,\n useToast,\n type ToastProps,\n type ToastProviderProps,\n type ToastData,\n type ToastVariant,\n type ToastPosition,\n} from './components/Toast';\n\n// Field\nexport {\n Field,\n type FieldProps,\n type FieldLabelProps,\n type FieldControlProps,\n type FieldDescriptionProps,\n type FieldErrorProps,\n type FieldValidityProps,\n} from './components/Field';\n\n// Fieldset\nexport {\n Fieldset,\n type FieldsetProps,\n type FieldsetLegendProps,\n} from './components/Fieldset';\n\n// Form\nexport { Form, type FormProps } from './components/Form';\n\n// Sidebar\nexport {\n Sidebar,\n SidebarProvider,\n useSidebar,\n useSidebarContext, // deprecated, use useSidebar instead\n type SidebarProviderProps,\n type SidebarProps,\n type SidebarHeaderProps,\n type SidebarNavProps,\n type SidebarSectionProps,\n type SidebarSectionActionProps,\n type SidebarItemProps,\n type SidebarSubItemProps,\n type SidebarFooterProps,\n type SidebarTriggerProps,\n type SidebarOverlayProps,\n type SidebarCollapseToggleProps,\n type SidebarRailProps,\n type SidebarMenuSkeletonProps,\n type SidebarCollapsible,\n} from './components/Sidebar';\n\n// Theme\nexport {\n Theme,\n ThemeProvider,\n ThemeToggle,\n useTheme,\n configureTheme,\n type ThemeProviderProps,\n type ThemeToggleProps,\n type ThemeMode,\n type UseThemeReturn,\n type ConfigureThemeOptions,\n type NeutralPalette,\n type DensityPreset,\n type RadiusStyle,\n} from './components/Theme';\n\n// Header\nexport {\n Header,\n type HeaderProps,\n type HeaderBrandProps,\n type HeaderNavProps,\n type HeaderNavItemProps,\n type HeaderSearchProps,\n type HeaderActionsProps,\n type HeaderTriggerProps,\n} from './components/Header';\n\n// AppShell\nexport {\n AppShell,\n type AppShellProps,\n type AppShellLayout,\n type AppShellHeaderProps,\n type AppShellSidebarProps,\n type AppShellMainProps,\n type AppShellAsideProps,\n} from './components/AppShell';\n\n// Stack\nexport {\n Stack,\n type StackProps,\n type ResponsiveDirection,\n type ResponsiveGap,\n} from './components/Stack';\n\n// Text\nexport { Text, type TextProps } from './components/Text';\n\n// ButtonGroup\nexport { ButtonGroup, type ButtonGroupProps } from './components/ButtonGroup';\n\n// ToggleGroup\nexport {\n ToggleGroup,\n ToggleGroupRoot,\n ToggleGroupItem,\n type ToggleGroupProps,\n type ToggleGroupItemProps,\n} from './components/ToggleGroup';\n\n// Slider\nexport { Slider, type SliderProps } from './components/Slider';\n\n// ColorPicker\nexport { ColorPicker, type ColorPickerProps } from './components/ColorPicker';\n\n// DatePicker\nexport {\n DatePicker,\n DatePickerRoot,\n DatePickerTrigger,\n DatePickerContent,\n DatePickerCalendar,\n DatePickerPreset,\n type DatePickerProps,\n type DatePickerTriggerProps,\n type DatePickerContentProps,\n type DatePickerCalendarProps,\n type DatePickerPresetProps,\n type DateRange,\n type Matcher,\n} from './components/DatePicker';\n\n// Prompt\nexport {\n Prompt,\n usePromptContext,\n type PromptProps,\n type PromptVariant,\n type PromptTextareaProps,\n type PromptToolbarProps,\n type PromptActionsProps,\n type PromptInfoProps,\n type PromptActionButtonProps,\n type PromptModeButtonProps,\n type PromptUsageProps,\n type PromptSubmitProps,\n} from './components/Prompt';\n\n// CodeBlock\nexport {\n CodeBlock,\n TabbedCodeBlock,\n type CodeBlockProps,\n type CodeBlockLanguage,\n type CodeBlockTab,\n type TabbedCodeBlockProps,\n} from './components/CodeBlock';\n\n// Icon\nexport { Icon, type IconProps } from './components/Icon';\n\n// Image\nexport { Image, type ImageProps } from './components/Image';\n\n// Link\nexport { Link, type LinkProps } from './components/Link';\n\n// List\nexport {\n List,\n ListRoot,\n ListItem,\n type ListProps,\n type ListItemProps,\n} from './components/List';\n\n// Listbox (for search results, autocomplete, command menus)\nexport {\n Listbox,\n ListboxRoot,\n ListboxItem,\n ListboxGroup,\n ListboxEmpty,\n type ListboxProps,\n type ListboxItemProps,\n type ListboxGroupProps,\n type ListboxEmptyProps,\n} from './components/Listbox';\n\n// Breadcrumbs\nexport {\n Breadcrumbs,\n BreadcrumbsRoot,\n BreadcrumbsItem,\n BreadcrumbsSeparator,\n type BreadcrumbsProps,\n type BreadcrumbsItemProps,\n type BreadcrumbsSeparatorProps,\n} from './components/Breadcrumbs';\n\n// TableOfContents\nexport {\n TableOfContents,\n TableOfContentsRoot,\n TableOfContentsItem,\n type TableOfContentsProps,\n type TableOfContentsItemProps,\n} from './components/TableOfContents';\n\n// Box\nexport { Box, type BoxProps } from './components/Box';\n\n// ScrollArea\nexport { ScrollArea, type ScrollAreaProps } from './components/ScrollArea';\n\n// Chip\nexport { Chip, type ChipProps, type ChipGroupProps } from './components/Chip';\n\n// VisuallyHidden\nexport { VisuallyHidden, type VisuallyHiddenProps } from './components/VisuallyHidden';\n\n// Brand\nexport { BRAND, type Brand } from './brand';\n\n// Markdown (AI Chat)\nexport { Markdown, type MarkdownProps } from './components/Markdown';\n\n// Message (AI Chat)\nexport {\n Message,\n MessageRoot,\n MessageContent,\n MessageActions,\n MessageTimestamp,\n MessageAvatar,\n useMessageContext,\n type MessageProps,\n type MessageRole,\n type MessageStatus,\n type MessageContentProps,\n type MessageActionsProps,\n type MessageTimestampProps,\n type MessageAvatarProps,\n} from './components/Message';\n\n// ConversationList (AI Chat)\nexport {\n ConversationList,\n ConversationListRoot,\n DateSeparator,\n TypingIndicator,\n useConversationList,\n type ConversationListProps,\n type AutoScrollBehavior,\n type DateSeparatorProps,\n type TypingIndicatorProps,\n} from './components/ConversationList';\n\n// ThinkingIndicator (AI Chat)\nexport {\n ThinkingIndicator,\n ThinkingIndicatorRoot,\n ThinkingSteps,\n ThinkingStep,\n useThinkingIndicatorContext,\n type ThinkingIndicatorProps,\n type ThinkingVariant,\n type ThinkingStep as ThinkingStepType,\n type StepStatus,\n type ThinkingStepsProps,\n type ThinkingStepProps,\n} from './components/ThinkingIndicator';\n\n// Chart\nexport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n ChartLegend,\n ChartLegendContent,\n useChartConfig,\n type ChartConfig,\n type ChartContainerProps,\n type ChartTooltipContentProps,\n type ChartLegendContentProps,\n} from './components/Chart';\n\n// Assets\nexport { FragmentsLogo, fragmentsLogoSvg, type FragmentsLogoProps } from './assets/fragments-logo';\n\n// NavigationMenu\nexport {\n NavigationMenu,\n NavigationMenuRoot,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuTrigger,\n NavigationMenuContent,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n NavigationMenuMobileContent,\n NavigationMenuMobileSection,\n type NavigationMenuProps,\n type NavigationMenuListProps,\n type NavigationMenuItemProps,\n type NavigationMenuTriggerProps,\n type NavigationMenuContentProps,\n type NavigationMenuLinkProps,\n type NavigationMenuIndicatorProps,\n type NavigationMenuViewportProps,\n type NavigationMenuMobileContentProps,\n type NavigationMenuMobileSectionProps,\n} from './components/NavigationMenu';\n\n// Drawer\nexport {\n Drawer,\n type DrawerProps,\n type DrawerContentProps,\n type DrawerTriggerProps,\n type DrawerHeaderProps,\n type DrawerTitleProps,\n type DrawerDescriptionProps,\n type DrawerBodyProps,\n type DrawerFooterProps,\n type DrawerCloseProps,\n} from './components/Drawer';\n\n// Pagination\nexport {\n Pagination,\n type PaginationProps,\n type PaginationItemProps,\n} from './components/Pagination';\n\n// Command\nexport {\n Command,\n type CommandProps,\n type CommandInputProps,\n type CommandListProps,\n type CommandItemProps,\n type CommandGroupProps,\n type CommandEmptyProps,\n type CommandSeparatorProps,\n} from './components/Command';\n\n// Editor\nexport {\n Editor,\n EditorRoot,\n EditorToolbar,\n EditorToolbarGroup,\n EditorToolbarButton,\n EditorSeparator,\n EditorStatusIndicator,\n EditorContentArea,\n EditorStatusBar,\n useEditorContext,\n type EditorProps,\n type EditorFormat,\n type EditorSaveStatus,\n type EditorMode,\n type EditorSize,\n type EditorToolbarProps,\n type EditorToolbarGroupProps,\n type EditorToolbarButtonProps,\n type EditorSeparatorProps,\n type EditorStatusIndicatorProps,\n type EditorContentProps,\n type EditorStatusBarProps,\n} from './components/Editor';\n\n// Accessibility Utilities\nexport {\n useId,\n useAnnounce,\n usePrefersReducedMotion,\n usePrefersContrast,\n useFocusTrap,\n handleArrowNavigation,\n VisuallyHidden as A11yVisuallyHidden,\n type VisuallyHiddenProps as A11yVisuallyHiddenProps,\n} from './utils/a11y';\n\n// Keyboard Shortcuts\nexport {\n KEYBOARD_SHORTCUTS,\n matchesShortcut,\n getShortcutLabel,\n findConflicts,\n getShortcuts,\n isEditableElement,\n configureShortcuts,\n getResolvedShortcut,\n resetShortcutOverrides,\n useKeyboardShortcut,\n type KeyboardShortcut,\n type ShortcutName,\n type UseKeyboardShortcutOptions,\n} from './utils/keyboard-shortcuts';\n"],"names":["checkCssLoaded"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAI,OAAO,WAAW,aAAa;AACjCA,4BAAA;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["// Import CSS variables and base styles\n// This ensures --fui-* variables are available when using any component\nimport './styles/globals.scss';\n\n// Runtime CSS detection — warns if component styles aren't loaded\nimport { checkCssLoaded } from './utils/css-warning';\nif (typeof window !== 'undefined') {\n checkCssLoaded();\n}\n\n// Core Components\nexport { Button, type ButtonProps } from './components/Button';\nexport { Input, type InputProps } from './components/Input';\nexport { Textarea, type TextareaProps } from './components/Textarea';\nexport {\n Card,\n CardRoot,\n CardHeader,\n CardTitle,\n CardDescription,\n CardBody,\n CardFooter,\n type CardProps,\n type CardHeaderProps,\n type CardTitleProps,\n type CardDescriptionProps,\n type CardBodyProps,\n type CardFooterProps,\n} from './components/Card';\nexport {\n Switch,\n type SwitchProps,\n} from './components/Switch';\nexport {\n Alert,\n AlertRoot,\n AlertIcon,\n AlertBody,\n AlertTitle,\n AlertContent,\n AlertActions,\n AlertAction,\n AlertClose,\n type AlertProps,\n type AlertSeverity,\n type AlertIconProps,\n type AlertBodyProps,\n type AlertTitleProps,\n type AlertContentProps,\n type AlertActionsProps,\n type AlertActionProps,\n type AlertCloseProps,\n} from './components/Alert';\nexport { Badge, type BadgeProps } from './components/Badge';\nexport { Avatar, type AvatarProps, type AvatarGroupProps, type AvatarSize } from './components/Avatar';\n\n// Accordion\nexport {\n Accordion,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n type AccordionValue,\n} from './components/Accordion';\n\n// Collapsible\nexport {\n Collapsible,\n CollapsibleRoot,\n CollapsibleTrigger,\n CollapsibleContent,\n useCollapsibleContext,\n type CollapsibleProps,\n type CollapsibleRootProps,\n type CollapsibleTriggerProps,\n type CollapsibleContentProps,\n} from './components/Collapsible';\n\n// Dialog\nexport {\n Dialog,\n type DialogProps,\n type DialogContentProps,\n type DialogTitleProps,\n type DialogDescriptionProps,\n type DialogHeaderProps,\n type DialogBodyProps,\n type DialogFooterProps,\n type DialogTriggerProps,\n type DialogCloseProps,\n} from './components/Dialog';\n\n// Tabs\nexport {\n Tabs,\n type TabsProps,\n type TabsListProps,\n type TabProps,\n type TabsPanelProps,\n type TabValue,\n} from './components/Tabs';\n\n// Tooltip\nexport {\n Tooltip,\n TooltipProvider,\n type TooltipProps,\n type TooltipProviderProps,\n type TooltipSide,\n type TooltipAlign,\n} from './components/Tooltip';\n\n// Select\nexport {\n Select,\n type SelectProps,\n type SelectTriggerProps,\n type SelectContentProps,\n type SelectItemProps,\n type SelectGroupProps,\n type SelectGroupLabelProps,\n type SelectValue,\n type SelectOption,\n} from './components/Select';\n\n// Menu\nexport {\n Menu,\n type MenuProps,\n type MenuTriggerProps,\n type MenuContentProps,\n type MenuItemProps,\n type MenuCheckboxItemProps,\n type MenuRadioGroupProps,\n type MenuRadioItemProps,\n type MenuGroupProps,\n type MenuGroupLabelProps,\n type MenuSeparatorProps,\n} from './components/Menu';\n\n// Popover\nexport {\n Popover,\n type PopoverProps,\n type PopoverTriggerProps,\n type PopoverContentProps,\n type PopoverTitleProps,\n type PopoverDescriptionProps,\n type PopoverBodyProps,\n type PopoverFooterProps,\n type PopoverCloseProps,\n} from './components/Popover';\n\n// Progress\nexport {\n Progress,\n CircularProgress,\n type ProgressProps,\n type CircularProgressProps,\n} from './components/Progress';\n\n// Checkbox\nexport { Checkbox, type CheckboxProps } from './components/Checkbox';\n\n// Combobox\nexport {\n Combobox,\n type ComboboxProps,\n type ComboboxInputProps,\n type ComboboxTriggerProps,\n type ComboboxContentProps,\n type ComboboxItemProps,\n type ComboboxEmptyProps,\n type ComboboxGroupProps,\n type ComboboxGroupLabelProps,\n} from './components/Combobox';\n\n// RadioGroup\nexport {\n RadioGroup,\n type RadioGroupProps,\n type RadioItemProps,\n} from './components/RadioGroup';\n\n// Grid\nexport { Grid, type GridProps, type GridItemProps, type ResponsiveColumns } from './components/Grid';\n\n// BentoGrid\nexport { BentoGrid, type BentoGridProps, type BentoGridItemProps, type ResponsiveSpan } from './components/BentoGrid';\n\n// Separator\nexport { Separator, type SeparatorProps } from './components/Separator';\n\n// Skeleton\nexport {\n Skeleton,\n type SkeletonProps,\n type SkeletonTextProps,\n type SkeletonVariant,\n type SkeletonSize,\n} from './components/Skeleton';\n\n// Loading\nexport {\n Loading,\n LoadingRoot,\n LoadingInline,\n LoadingScreen,\n type LoadingProps,\n type LoadingSize,\n type LoadingVariant,\n type LoadingInlineProps,\n type LoadingScreenProps,\n} from './components/Loading';\n\n// Table (simple semantic HTML table)\nexport {\n Table,\n type TableProps,\n type TableRowProps,\n type TableCellProps,\n type TableHeaderCellProps,\n type TableCaptionProps,\n} from './components/Table';\n\n// DataTable (TanStack-powered data table)\nexport {\n DataTable,\n createColumns,\n type DataTableProps,\n type DataTableColumn,\n type ColumnDef,\n type SortingState,\n type RowSelectionState,\n type ExpandedState,\n} from './components/DataTable';\n\n// EmptyState\nexport {\n EmptyState,\n EmptyStateRoot,\n EmptyStateIcon,\n EmptyStateTitle,\n EmptyStateDescription,\n EmptyStateActions,\n type EmptyStateProps,\n type EmptyStateIconProps,\n type EmptyStateTitleProps,\n type EmptyStateDescriptionProps,\n type EmptyStateActionsProps,\n} from './components/EmptyState';\n\n// Toast\nexport {\n Toast,\n ToastProvider,\n useToast,\n type ToastProps,\n type ToastProviderProps,\n type ToastData,\n type ToastVariant,\n type ToastPosition,\n} from './components/Toast';\n\n// Field\nexport {\n Field,\n type FieldProps,\n type FieldLabelProps,\n type FieldControlProps,\n type FieldDescriptionProps,\n type FieldErrorProps,\n type FieldValidityProps,\n} from './components/Field';\n\n// Fieldset\nexport {\n Fieldset,\n type FieldsetProps,\n type FieldsetLegendProps,\n} from './components/Fieldset';\n\n// Form\nexport { Form, type FormProps } from './components/Form';\n\n// Sidebar\nexport {\n Sidebar,\n SidebarProvider,\n useSidebar,\n useSidebarContext, // deprecated, use useSidebar instead\n type SidebarProviderProps,\n type SidebarProps,\n type SidebarHeaderProps,\n type SidebarNavProps,\n type SidebarSectionProps,\n type SidebarSectionActionProps,\n type SidebarItemProps,\n type SidebarSubItemProps,\n type SidebarFooterProps,\n type SidebarTriggerProps,\n type SidebarOverlayProps,\n type SidebarCollapseToggleProps,\n type SidebarRailProps,\n type SidebarMenuSkeletonProps,\n type SidebarCollapsible,\n} from './components/Sidebar';\n\n// Theme\nexport {\n Theme,\n ThemeProvider,\n ThemeToggle,\n useTheme,\n configureTheme,\n type ThemeProviderProps,\n type ThemeToggleProps,\n type ThemeMode,\n type UseThemeReturn,\n type ConfigureThemeOptions,\n type NeutralPalette,\n type DensityPreset,\n type RadiusStyle,\n} from './components/Theme';\n\n// Header\nexport {\n Header,\n type HeaderProps,\n type HeaderBrandProps,\n type HeaderNavProps,\n type HeaderNavItemProps,\n type HeaderSearchProps,\n type HeaderActionsProps,\n type HeaderTriggerProps,\n} from './components/Header';\n\n// AppShell\nexport {\n AppShell,\n type AppShellProps,\n type AppShellLayout,\n type AppShellHeaderProps,\n type AppShellSidebarProps,\n type AppShellMainProps,\n type AppShellAsideProps,\n} from './components/AppShell';\n\n// Stack\nexport {\n Stack,\n type StackProps,\n type ResponsiveDirection,\n type ResponsiveGap,\n} from './components/Stack';\n\n// Text\nexport { Text, type TextProps } from './components/Text';\n\n// ButtonGroup\nexport { ButtonGroup, type ButtonGroupProps } from './components/ButtonGroup';\n\n// ToggleGroup\nexport {\n ToggleGroup,\n ToggleGroupRoot,\n ToggleGroupItem,\n type ToggleGroupProps,\n type ToggleGroupItemProps,\n} from './components/ToggleGroup';\n\n// Slider\nexport { Slider, type SliderProps } from './components/Slider';\n\n// ColorPicker\nexport { ColorPicker, type ColorPickerProps } from './components/ColorPicker';\n\n// DatePicker\nexport {\n DatePicker,\n DatePickerRoot,\n DatePickerTrigger,\n DatePickerContent,\n DatePickerCalendar,\n DatePickerPreset,\n type DatePickerProps,\n type DatePickerTriggerProps,\n type DatePickerContentProps,\n type DatePickerCalendarProps,\n type DatePickerPresetProps,\n type DateRange,\n type Matcher,\n} from './components/DatePicker';\n\n// Prompt\nexport {\n Prompt,\n usePromptContext,\n type PromptProps,\n type PromptVariant,\n type PromptTextareaProps,\n type PromptToolbarProps,\n type PromptActionsProps,\n type PromptInfoProps,\n type PromptActionButtonProps,\n type PromptModeButtonProps,\n type PromptUsageProps,\n type PromptSubmitProps,\n} from './components/Prompt';\n\n// CodeBlock\nexport {\n CodeBlock,\n TabbedCodeBlock,\n type CodeBlockProps,\n type CodeBlockLanguage,\n type CodeBlockTab,\n type TabbedCodeBlockProps,\n} from './components/CodeBlock';\n\n// Icon\nexport { Icon, type IconProps } from './components/Icon';\n\n// Image\nexport { Image, type ImageProps } from './components/Image';\n\n// Link\nexport { Link, type LinkProps } from './components/Link';\n\n// List\nexport {\n List,\n ListRoot,\n ListItem,\n type ListProps,\n type ListItemProps,\n} from './components/List';\n\n// Listbox (for search results, autocomplete, command menus)\nexport {\n Listbox,\n ListboxRoot,\n ListboxItem,\n ListboxGroup,\n ListboxEmpty,\n type ListboxProps,\n type ListboxItemProps,\n type ListboxGroupProps,\n type ListboxEmptyProps,\n} from './components/Listbox';\n\n// Breadcrumbs\nexport {\n Breadcrumbs,\n BreadcrumbsRoot,\n BreadcrumbsItem,\n BreadcrumbsSeparator,\n type BreadcrumbsProps,\n type BreadcrumbsItemProps,\n type BreadcrumbsSeparatorProps,\n} from './components/Breadcrumbs';\n\n// TableOfContents\nexport {\n TableOfContents,\n TableOfContentsRoot,\n TableOfContentsItem,\n type TableOfContentsProps,\n type TableOfContentsItemProps,\n} from './components/TableOfContents';\n\n// Box\nexport { Box, type BoxProps } from './components/Box';\n\n// ScrollArea\nexport { ScrollArea, type ScrollAreaProps } from './components/ScrollArea';\n\n// Chip\nexport { Chip, type ChipProps, type ChipGroupProps } from './components/Chip';\n\n// VisuallyHidden\nexport { VisuallyHidden, type VisuallyHiddenProps } from './components/VisuallyHidden';\n\n// Brand\nexport { BRAND, type Brand } from './brand';\n\n// Markdown (AI Chat)\nexport { Markdown, type MarkdownProps } from './components/Markdown';\n\n// Message (AI Chat)\nexport {\n Message,\n MessageRoot,\n MessageContent,\n MessageActions,\n MessageTimestamp,\n MessageAvatar,\n useMessageContext,\n type MessageProps,\n type MessageRole,\n type MessageStatus,\n type MessageContentProps,\n type MessageActionsProps,\n type MessageTimestampProps,\n type MessageAvatarProps,\n} from './components/Message';\n\n// ConversationList (AI Chat)\nexport {\n ConversationList,\n ConversationListRoot,\n DateSeparator,\n TypingIndicator,\n useConversationList,\n type ConversationListProps,\n type AutoScrollBehavior,\n type DateSeparatorProps,\n type TypingIndicatorProps,\n} from './components/ConversationList';\n\n// ThinkingIndicator (AI Chat)\nexport {\n ThinkingIndicator,\n ThinkingIndicatorRoot,\n ThinkingSteps,\n ThinkingStep,\n useThinkingIndicatorContext,\n type ThinkingIndicatorProps,\n type ThinkingVariant,\n type ThinkingStep as ThinkingStepType,\n type StepStatus,\n type ThinkingStepsProps,\n type ThinkingStepProps,\n} from './components/ThinkingIndicator';\n\n// Chart\nexport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n ChartLegend,\n ChartLegendContent,\n useChartConfig,\n type ChartConfig,\n type ChartContainerProps,\n type ChartTooltipContentProps,\n type ChartLegendContentProps,\n} from './components/Chart';\n\n// Assets\nexport { FragmentsLogo, fragmentsLogoSvg, type FragmentsLogoProps } from './assets/fragments-logo';\n\n// NavigationMenu\nexport {\n NavigationMenu,\n NavigationMenuRoot,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuTrigger,\n NavigationMenuContent,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n NavigationMenuMobileContent,\n NavigationMenuMobileSection,\n type NavigationMenuProps,\n type NavigationMenuListProps,\n type NavigationMenuItemProps,\n type NavigationMenuTriggerProps,\n type NavigationMenuContentProps,\n type NavigationMenuLinkProps,\n type NavigationMenuIndicatorProps,\n type NavigationMenuViewportProps,\n type NavigationMenuMobileContentProps,\n type NavigationMenuMobileSectionProps,\n} from './components/NavigationMenu';\n\n// Drawer\nexport {\n Drawer,\n type DrawerProps,\n type DrawerContentProps,\n type DrawerTriggerProps,\n type DrawerHeaderProps,\n type DrawerTitleProps,\n type DrawerDescriptionProps,\n type DrawerBodyProps,\n type DrawerFooterProps,\n type DrawerCloseProps,\n} from './components/Drawer';\n\n// Pagination\nexport {\n Pagination,\n type PaginationProps,\n type PaginationItemProps,\n} from './components/Pagination';\n\n// Command\nexport {\n Command,\n type CommandProps,\n type CommandInputProps,\n type CommandListProps,\n type CommandItemProps,\n type CommandGroupProps,\n type CommandEmptyProps,\n type CommandSeparatorProps,\n} from './components/Command';\n\n// Editor\nexport {\n Editor,\n EditorRoot,\n EditorToolbar,\n EditorToolbarGroup,\n EditorToolbarButton,\n EditorSeparator,\n EditorStatusIndicator,\n EditorContentArea,\n EditorStatusBar,\n useEditorContext,\n type EditorProps,\n type EditorFormat,\n type EditorSaveStatus,\n type EditorMode,\n type EditorSize,\n type EditorToolbarProps,\n type EditorToolbarGroupProps,\n type EditorToolbarButtonProps,\n type EditorSeparatorProps,\n type EditorStatusIndicatorProps,\n type EditorContentProps,\n type EditorStatusBarProps,\n} from './components/Editor';\n\n// Accessibility Utilities\nexport {\n useId,\n useAnnounce,\n usePrefersReducedMotion,\n usePrefersContrast,\n useFocusTrap,\n handleArrowNavigation,\n VisuallyHidden as A11yVisuallyHidden,\n type VisuallyHiddenProps as A11yVisuallyHiddenProps,\n} from './utils/a11y';\n\n// Keyboard Shortcuts\nexport {\n KEYBOARD_SHORTCUTS,\n matchesShortcut,\n getShortcutLabel,\n findConflicts,\n getShortcuts,\n isEditableElement,\n configureShortcuts,\n getResolvedShortcut,\n resetShortcutOverrides,\n useKeyboardShortcut,\n type KeyboardShortcut,\n type ShortcutName,\n type UseKeyboardShortcutOptions,\n} from './utils/keyboard-shortcuts';\n\n// Legacy aliases (deprecated)\nexport { Switch as Toggle, type SwitchProps as ToggleProps } from './components/Switch';\n"],"names":["checkCssLoaded"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAI,OAAO,WAAW,aAAa;AACjCA,4BAAA;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { Button, type ButtonProps } from './components/Button';
3
3
  export { Input, type InputProps } from './components/Input';
4
4
  export { Textarea, type TextareaProps } from './components/Textarea';
5
5
  export { Card, CardRoot, CardHeader, CardTitle, CardDescription, CardBody, CardFooter, type CardProps, type CardHeaderProps, type CardTitleProps, type CardDescriptionProps, type CardBodyProps, type CardFooterProps, } from './components/Card';
6
- export { Switch, type SwitchProps, Switch as Toggle, type SwitchProps as ToggleProps, } from './components/Switch';
6
+ export { Switch, type SwitchProps, } from './components/Switch';
7
7
  export { Alert, AlertRoot, AlertIcon, AlertBody, AlertTitle, AlertContent, AlertActions, AlertAction, AlertClose, type AlertProps, type AlertSeverity, type AlertIconProps, type AlertBodyProps, type AlertTitleProps, type AlertContentProps, type AlertActionsProps, type AlertActionProps, type AlertCloseProps, } from './components/Alert';
8
8
  export { Badge, type BadgeProps } from './components/Badge';
9
9
  export { Avatar, type AvatarProps, type AvatarGroupProps, type AvatarSize } from './components/Avatar';
@@ -70,4 +70,5 @@ export { Command, type CommandProps, type CommandInputProps, type CommandListPro
70
70
  export { Editor, EditorRoot, EditorToolbar, EditorToolbarGroup, EditorToolbarButton, EditorSeparator, EditorStatusIndicator, EditorContentArea, EditorStatusBar, useEditorContext, type EditorProps, type EditorFormat, type EditorSaveStatus, type EditorMode, type EditorSize, type EditorToolbarProps, type EditorToolbarGroupProps, type EditorToolbarButtonProps, type EditorSeparatorProps, type EditorStatusIndicatorProps, type EditorContentProps, type EditorStatusBarProps, } from './components/Editor';
71
71
  export { useId, useAnnounce, usePrefersReducedMotion, usePrefersContrast, useFocusTrap, handleArrowNavigation, VisuallyHidden as A11yVisuallyHidden, type VisuallyHiddenProps as A11yVisuallyHiddenProps, } from './utils/a11y';
72
72
  export { KEYBOARD_SHORTCUTS, matchesShortcut, getShortcutLabel, findConflicts, getShortcuts, isEditableElement, configureShortcuts, getResolvedShortcut, resetShortcutOverrides, useKeyboardShortcut, type KeyboardShortcut, type ShortcutName, type UseKeyboardShortcutOptions, } from './utils/keyboard-shortcuts';
73
+ export { Switch as Toggle, type SwitchProps as ToggleProps } from './components/Switch';
73
74
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,uBAAuB,CAAC;AAS/B,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,SAAS,EACT,eAAe,EACf,QAAQ,EACR,UAAU,EACV,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,M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AM,EAAE,KAAK,WAAW,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// Import CSS variables and base styles\n// This ensures --fui-* variables are available when using any component\nimport './styles/globals.scss';\n\n// Runtime CSS detection — warns if component styles aren't loaded\nimport { checkCssLoaded } from './utils/css-warning';\nif (typeof window !== 'undefined') {\n checkCssLoaded();\n}\n\n// Core Components\nexport { Button, type ButtonProps } from './components/Button';\nexport { Input, type InputProps } from './components/Input';\nexport { Textarea, type TextareaProps } from './components/Textarea';\nexport {\n Card,\n CardRoot,\n CardHeader,\n CardTitle,\n CardDescription,\n CardBody,\n CardFooter,\n type CardProps,\n type CardHeaderProps,\n type CardTitleProps,\n type CardDescriptionProps,\n type CardBodyProps,\n type CardFooterProps,\n} from './components/Card';\nexport {\n Switch,\n type SwitchProps,\n Switch as Toggle,\n type SwitchProps as ToggleProps,\n} from './components/Switch';\nexport {\n Alert,\n AlertRoot,\n AlertIcon,\n AlertBody,\n AlertTitle,\n AlertContent,\n AlertActions,\n AlertAction,\n AlertClose,\n type AlertProps,\n type AlertSeverity,\n type AlertIconProps,\n type AlertBodyProps,\n type AlertTitleProps,\n type AlertContentProps,\n type AlertActionsProps,\n type AlertActionProps,\n type AlertCloseProps,\n} from './components/Alert';\nexport { Badge, type BadgeProps } from './components/Badge';\nexport { Avatar, type AvatarProps, type AvatarGroupProps, type AvatarSize } from './components/Avatar';\n\n// Accordion\nexport {\n Accordion,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n type AccordionValue,\n} from './components/Accordion';\n\n// Collapsible\nexport {\n Collapsible,\n CollapsibleRoot,\n CollapsibleTrigger,\n CollapsibleContent,\n useCollapsibleContext,\n type CollapsibleProps,\n type CollapsibleRootProps,\n type CollapsibleTriggerProps,\n type CollapsibleContentProps,\n} from './components/Collapsible';\n\n// Dialog\nexport {\n Dialog,\n type DialogProps,\n type DialogContentProps,\n type DialogTitleProps,\n type DialogDescriptionProps,\n type DialogHeaderProps,\n type DialogBodyProps,\n type DialogFooterProps,\n type DialogTriggerProps,\n type DialogCloseProps,\n} from './components/Dialog';\n\n// Tabs\nexport {\n Tabs,\n type TabsProps,\n type TabsListProps,\n type TabProps,\n type TabsPanelProps,\n type TabValue,\n} from './components/Tabs';\n\n// Tooltip\nexport {\n Tooltip,\n TooltipProvider,\n type TooltipProps,\n type TooltipProviderProps,\n type TooltipSide,\n type TooltipAlign,\n} from './components/Tooltip';\n\n// Select\nexport {\n Select,\n type SelectProps,\n type SelectTriggerProps,\n type SelectContentProps,\n type SelectItemProps,\n type SelectGroupProps,\n type SelectGroupLabelProps,\n type SelectValue,\n type SelectOption,\n} from './components/Select';\n\n// Menu\nexport {\n Menu,\n type MenuProps,\n type MenuTriggerProps,\n type MenuContentProps,\n type MenuItemProps,\n type MenuCheckboxItemProps,\n type MenuRadioGroupProps,\n type MenuRadioItemProps,\n type MenuGroupProps,\n type MenuGroupLabelProps,\n type MenuSeparatorProps,\n} from './components/Menu';\n\n// Popover\nexport {\n Popover,\n type PopoverProps,\n type PopoverTriggerProps,\n type PopoverContentProps,\n type PopoverTitleProps,\n type PopoverDescriptionProps,\n type PopoverBodyProps,\n type PopoverFooterProps,\n type PopoverCloseProps,\n} from './components/Popover';\n\n// Progress\nexport {\n Progress,\n CircularProgress,\n type ProgressProps,\n type CircularProgressProps,\n} from './components/Progress';\n\n// Checkbox\nexport { Checkbox, type CheckboxProps } from './components/Checkbox';\n\n// Combobox\nexport {\n Combobox,\n type ComboboxProps,\n type ComboboxInputProps,\n type ComboboxTriggerProps,\n type ComboboxContentProps,\n type ComboboxItemProps,\n type ComboboxEmptyProps,\n type ComboboxGroupProps,\n type ComboboxGroupLabelProps,\n} from './components/Combobox';\n\n// RadioGroup\nexport {\n RadioGroup,\n type RadioGroupProps,\n type RadioItemProps,\n} from './components/RadioGroup';\n\n// Grid\nexport { Grid, type GridProps, type GridItemProps, type ResponsiveColumns } from './components/Grid';\n\n// BentoGrid\nexport { BentoGrid, type BentoGridProps, type BentoGridItemProps, type ResponsiveSpan } from './components/BentoGrid';\n\n// Separator\nexport { Separator, type SeparatorProps } from './components/Separator';\n\n// Skeleton\nexport {\n Skeleton,\n type SkeletonProps,\n type SkeletonTextProps,\n type SkeletonVariant,\n type SkeletonSize,\n} from './components/Skeleton';\n\n// Loading\nexport {\n Loading,\n LoadingRoot,\n LoadingInline,\n LoadingScreen,\n type LoadingProps,\n type LoadingSize,\n type LoadingVariant,\n type LoadingInlineProps,\n type LoadingScreenProps,\n} from './components/Loading';\n\n// Table (simple semantic HTML table)\nexport {\n Table,\n type TableProps,\n type TableRowProps,\n type TableCellProps,\n type TableHeaderCellProps,\n type TableCaptionProps,\n} from './components/Table';\n\n// DataTable (TanStack-powered data table)\nexport {\n DataTable,\n createColumns,\n type DataTableProps,\n type DataTableColumn,\n type ColumnDef,\n type SortingState,\n type RowSelectionState,\n type ExpandedState,\n} from './components/DataTable';\n\n// EmptyState\nexport {\n EmptyState,\n EmptyStateRoot,\n EmptyStateIcon,\n EmptyStateTitle,\n EmptyStateDescription,\n EmptyStateActions,\n type EmptyStateProps,\n type EmptyStateIconProps,\n type EmptyStateTitleProps,\n type EmptyStateDescriptionProps,\n type EmptyStateActionsProps,\n} from './components/EmptyState';\n\n// Toast\nexport {\n Toast,\n ToastProvider,\n useToast,\n type ToastProps,\n type ToastProviderProps,\n type ToastData,\n type ToastVariant,\n type ToastPosition,\n} from './components/Toast';\n\n// Field\nexport {\n Field,\n type FieldProps,\n type FieldLabelProps,\n type FieldControlProps,\n type FieldDescriptionProps,\n type FieldErrorProps,\n type FieldValidityProps,\n} from './components/Field';\n\n// Fieldset\nexport {\n Fieldset,\n type FieldsetProps,\n type FieldsetLegendProps,\n} from './components/Fieldset';\n\n// Form\nexport { Form, type FormProps } from './components/Form';\n\n// Sidebar\nexport {\n Sidebar,\n SidebarProvider,\n useSidebar,\n useSidebarContext, // deprecated, use useSidebar instead\n type SidebarProviderProps,\n type SidebarProps,\n type SidebarHeaderProps,\n type SidebarNavProps,\n type SidebarSectionProps,\n type SidebarSectionActionProps,\n type SidebarItemProps,\n type SidebarSubItemProps,\n type SidebarFooterProps,\n type SidebarTriggerProps,\n type SidebarOverlayProps,\n type SidebarCollapseToggleProps,\n type SidebarRailProps,\n type SidebarMenuSkeletonProps,\n type SidebarCollapsible,\n} from './components/Sidebar';\n\n// Theme\nexport {\n Theme,\n ThemeProvider,\n ThemeToggle,\n useTheme,\n configureTheme,\n type ThemeProviderProps,\n type ThemeToggleProps,\n type ThemeMode,\n type UseThemeReturn,\n type ConfigureThemeOptions,\n type NeutralPalette,\n type DensityPreset,\n type RadiusStyle,\n} from './components/Theme';\n\n// Header\nexport {\n Header,\n type HeaderProps,\n type HeaderBrandProps,\n type HeaderNavProps,\n type HeaderNavItemProps,\n type HeaderSearchProps,\n type HeaderActionsProps,\n type HeaderTriggerProps,\n} from './components/Header';\n\n// AppShell\nexport {\n AppShell,\n type AppShellProps,\n type AppShellLayout,\n type AppShellHeaderProps,\n type AppShellSidebarProps,\n type AppShellMainProps,\n type AppShellAsideProps,\n} from './components/AppShell';\n\n// Stack\nexport {\n Stack,\n type StackProps,\n type ResponsiveDirection,\n type ResponsiveGap,\n} from './components/Stack';\n\n// Text\nexport { Text, type TextProps } from './components/Text';\n\n// ButtonGroup\nexport { ButtonGroup, type ButtonGroupProps } from './components/ButtonGroup';\n\n// ToggleGroup\nexport {\n ToggleGroup,\n ToggleGroupRoot,\n ToggleGroupItem,\n type ToggleGroupProps,\n type ToggleGroupItemProps,\n} from './components/ToggleGroup';\n\n// Slider\nexport { Slider, type SliderProps } from './components/Slider';\n\n// ColorPicker\nexport { ColorPicker, type ColorPickerProps } from './components/ColorPicker';\n\n// DatePicker\nexport {\n DatePicker,\n DatePickerRoot,\n DatePickerTrigger,\n DatePickerContent,\n DatePickerCalendar,\n DatePickerPreset,\n type DatePickerProps,\n type DatePickerTriggerProps,\n type DatePickerContentProps,\n type DatePickerCalendarProps,\n type DatePickerPresetProps,\n type DateRange,\n type Matcher,\n} from './components/DatePicker';\n\n// Prompt\nexport {\n Prompt,\n usePromptContext,\n type PromptProps,\n type PromptVariant,\n type PromptTextareaProps,\n type PromptToolbarProps,\n type PromptActionsProps,\n type PromptInfoProps,\n type PromptActionButtonProps,\n type PromptModeButtonProps,\n type PromptUsageProps,\n type PromptSubmitProps,\n} from './components/Prompt';\n\n// CodeBlock\nexport {\n CodeBlock,\n TabbedCodeBlock,\n type CodeBlockProps,\n type CodeBlockLanguage,\n type CodeBlockTab,\n type TabbedCodeBlockProps,\n} from './components/CodeBlock';\n\n// Icon\nexport { Icon, type IconProps } from './components/Icon';\n\n// Image\nexport { Image, type ImageProps } from './components/Image';\n\n// Link\nexport { Link, type LinkProps } from './components/Link';\n\n// List\nexport {\n List,\n ListRoot,\n ListItem,\n type ListProps,\n type ListItemProps,\n} from './components/List';\n\n// Listbox (for search results, autocomplete, command menus)\nexport {\n Listbox,\n ListboxRoot,\n ListboxItem,\n ListboxGroup,\n ListboxEmpty,\n type ListboxProps,\n type ListboxItemProps,\n type ListboxGroupProps,\n type ListboxEmptyProps,\n} from './components/Listbox';\n\n// Breadcrumbs\nexport {\n Breadcrumbs,\n BreadcrumbsRoot,\n BreadcrumbsItem,\n BreadcrumbsSeparator,\n type BreadcrumbsProps,\n type BreadcrumbsItemProps,\n type BreadcrumbsSeparatorProps,\n} from './components/Breadcrumbs';\n\n// TableOfContents\nexport {\n TableOfContents,\n TableOfContentsRoot,\n TableOfContentsItem,\n type TableOfContentsProps,\n type TableOfContentsItemProps,\n} from './components/TableOfContents';\n\n// Box\nexport { Box, type BoxProps } from './components/Box';\n\n// ScrollArea\nexport { ScrollArea, type ScrollAreaProps } from './components/ScrollArea';\n\n// Chip\nexport { Chip, type ChipProps, type ChipGroupProps } from './components/Chip';\n\n// VisuallyHidden\nexport { VisuallyHidden, type VisuallyHiddenProps } from './components/VisuallyHidden';\n\n// Brand\nexport { BRAND, type Brand } from './brand';\n\n// Markdown (AI Chat)\nexport { Markdown, type MarkdownProps } from './components/Markdown';\n\n// Message (AI Chat)\nexport {\n Message,\n MessageRoot,\n MessageContent,\n MessageActions,\n MessageTimestamp,\n MessageAvatar,\n useMessageContext,\n type MessageProps,\n type MessageRole,\n type MessageStatus,\n type MessageContentProps,\n type MessageActionsProps,\n type MessageTimestampProps,\n type MessageAvatarProps,\n} from './components/Message';\n\n// ConversationList (AI Chat)\nexport {\n ConversationList,\n ConversationListRoot,\n DateSeparator,\n TypingIndicator,\n useConversationList,\n type ConversationListProps,\n type AutoScrollBehavior,\n type DateSeparatorProps,\n type TypingIndicatorProps,\n} from './components/ConversationList';\n\n// ThinkingIndicator (AI Chat)\nexport {\n ThinkingIndicator,\n ThinkingIndicatorRoot,\n ThinkingSteps,\n ThinkingStep,\n useThinkingIndicatorContext,\n type ThinkingIndicatorProps,\n type ThinkingVariant,\n type ThinkingStep as ThinkingStepType,\n type StepStatus,\n type ThinkingStepsProps,\n type ThinkingStepProps,\n} from './components/ThinkingIndicator';\n\n// Chart\nexport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n ChartLegend,\n ChartLegendContent,\n useChartConfig,\n type ChartConfig,\n type ChartContainerProps,\n type ChartTooltipContentProps,\n type ChartLegendContentProps,\n} from './components/Chart';\n\n// Assets\nexport { FragmentsLogo, fragmentsLogoSvg, type FragmentsLogoProps } from './assets/fragments-logo';\n\n// NavigationMenu\nexport {\n NavigationMenu,\n NavigationMenuRoot,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuTrigger,\n NavigationMenuContent,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n NavigationMenuMobileContent,\n NavigationMenuMobileSection,\n type NavigationMenuProps,\n type NavigationMenuListProps,\n type NavigationMenuItemProps,\n type NavigationMenuTriggerProps,\n type NavigationMenuContentProps,\n type NavigationMenuLinkProps,\n type NavigationMenuIndicatorProps,\n type NavigationMenuViewportProps,\n type NavigationMenuMobileContentProps,\n type NavigationMenuMobileSectionProps,\n} from './components/NavigationMenu';\n\n// Drawer\nexport {\n Drawer,\n type DrawerProps,\n type DrawerContentProps,\n type DrawerTriggerProps,\n type DrawerHeaderProps,\n type DrawerTitleProps,\n type DrawerDescriptionProps,\n type DrawerBodyProps,\n type DrawerFooterProps,\n type DrawerCloseProps,\n} from './components/Drawer';\n\n// Pagination\nexport {\n Pagination,\n type PaginationProps,\n type PaginationItemProps,\n} from './components/Pagination';\n\n// Command\nexport {\n Command,\n type CommandProps,\n type CommandInputProps,\n type CommandListProps,\n type CommandItemProps,\n type CommandGroupProps,\n type CommandEmptyProps,\n type CommandSeparatorProps,\n} from './components/Command';\n\n// Editor\nexport {\n Editor,\n EditorRoot,\n EditorToolbar,\n EditorToolbarGroup,\n EditorToolbarButton,\n EditorSeparator,\n EditorStatusIndicator,\n EditorContentArea,\n EditorStatusBar,\n useEditorContext,\n type EditorProps,\n type EditorFormat,\n type EditorSaveStatus,\n type EditorMode,\n type EditorSize,\n type EditorToolbarProps,\n type EditorToolbarGroupProps,\n type EditorToolbarButtonProps,\n type EditorSeparatorProps,\n type EditorStatusIndicatorProps,\n type EditorContentProps,\n type EditorStatusBarProps,\n} from './components/Editor';\n\n// Accessibility Utilities\nexport {\n useId,\n useAnnounce,\n usePrefersReducedMotion,\n usePrefersContrast,\n useFocusTrap,\n handleArrowNavigation,\n VisuallyHidden as A11yVisuallyHidden,\n type VisuallyHiddenProps as A11yVisuallyHiddenProps,\n} from './utils/a11y';\n\n// Keyboard Shortcuts\nexport {\n KEYBOARD_SHORTCUTS,\n matchesShortcut,\n getShortcutLabel,\n findConflicts,\n getShortcuts,\n isEditableElement,\n configureShortcuts,\n getResolvedShortcut,\n resetShortcutOverrides,\n useKeyboardShortcut,\n type KeyboardShortcut,\n type ShortcutName,\n type UseKeyboardShortcutOptions,\n} from './utils/keyboard-shortcuts';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAI,OAAO,WAAW,aAAa;AACjC,iBAAA;AACF;"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// Import CSS variables and base styles\n// This ensures --fui-* variables are available when using any component\nimport './styles/globals.scss';\n\n// Runtime CSS detection — warns if component styles aren't loaded\nimport { checkCssLoaded } from './utils/css-warning';\nif (typeof window !== 'undefined') {\n checkCssLoaded();\n}\n\n// Core Components\nexport { Button, type ButtonProps } from './components/Button';\nexport { Input, type InputProps } from './components/Input';\nexport { Textarea, type TextareaProps } from './components/Textarea';\nexport {\n Card,\n CardRoot,\n CardHeader,\n CardTitle,\n CardDescription,\n CardBody,\n CardFooter,\n type CardProps,\n type CardHeaderProps,\n type CardTitleProps,\n type CardDescriptionProps,\n type CardBodyProps,\n type CardFooterProps,\n} from './components/Card';\nexport {\n Switch,\n type SwitchProps,\n} from './components/Switch';\nexport {\n Alert,\n AlertRoot,\n AlertIcon,\n AlertBody,\n AlertTitle,\n AlertContent,\n AlertActions,\n AlertAction,\n AlertClose,\n type AlertProps,\n type AlertSeverity,\n type AlertIconProps,\n type AlertBodyProps,\n type AlertTitleProps,\n type AlertContentProps,\n type AlertActionsProps,\n type AlertActionProps,\n type AlertCloseProps,\n} from './components/Alert';\nexport { Badge, type BadgeProps } from './components/Badge';\nexport { Avatar, type AvatarProps, type AvatarGroupProps, type AvatarSize } from './components/Avatar';\n\n// Accordion\nexport {\n Accordion,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n type AccordionValue,\n} from './components/Accordion';\n\n// Collapsible\nexport {\n Collapsible,\n CollapsibleRoot,\n CollapsibleTrigger,\n CollapsibleContent,\n useCollapsibleContext,\n type CollapsibleProps,\n type CollapsibleRootProps,\n type CollapsibleTriggerProps,\n type CollapsibleContentProps,\n} from './components/Collapsible';\n\n// Dialog\nexport {\n Dialog,\n type DialogProps,\n type DialogContentProps,\n type DialogTitleProps,\n type DialogDescriptionProps,\n type DialogHeaderProps,\n type DialogBodyProps,\n type DialogFooterProps,\n type DialogTriggerProps,\n type DialogCloseProps,\n} from './components/Dialog';\n\n// Tabs\nexport {\n Tabs,\n type TabsProps,\n type TabsListProps,\n type TabProps,\n type TabsPanelProps,\n type TabValue,\n} from './components/Tabs';\n\n// Tooltip\nexport {\n Tooltip,\n TooltipProvider,\n type TooltipProps,\n type TooltipProviderProps,\n type TooltipSide,\n type TooltipAlign,\n} from './components/Tooltip';\n\n// Select\nexport {\n Select,\n type SelectProps,\n type SelectTriggerProps,\n type SelectContentProps,\n type SelectItemProps,\n type SelectGroupProps,\n type SelectGroupLabelProps,\n type SelectValue,\n type SelectOption,\n} from './components/Select';\n\n// Menu\nexport {\n Menu,\n type MenuProps,\n type MenuTriggerProps,\n type MenuContentProps,\n type MenuItemProps,\n type MenuCheckboxItemProps,\n type MenuRadioGroupProps,\n type MenuRadioItemProps,\n type MenuGroupProps,\n type MenuGroupLabelProps,\n type MenuSeparatorProps,\n} from './components/Menu';\n\n// Popover\nexport {\n Popover,\n type PopoverProps,\n type PopoverTriggerProps,\n type PopoverContentProps,\n type PopoverTitleProps,\n type PopoverDescriptionProps,\n type PopoverBodyProps,\n type PopoverFooterProps,\n type PopoverCloseProps,\n} from './components/Popover';\n\n// Progress\nexport {\n Progress,\n CircularProgress,\n type ProgressProps,\n type CircularProgressProps,\n} from './components/Progress';\n\n// Checkbox\nexport { Checkbox, type CheckboxProps } from './components/Checkbox';\n\n// Combobox\nexport {\n Combobox,\n type ComboboxProps,\n type ComboboxInputProps,\n type ComboboxTriggerProps,\n type ComboboxContentProps,\n type ComboboxItemProps,\n type ComboboxEmptyProps,\n type ComboboxGroupProps,\n type ComboboxGroupLabelProps,\n} from './components/Combobox';\n\n// RadioGroup\nexport {\n RadioGroup,\n type RadioGroupProps,\n type RadioItemProps,\n} from './components/RadioGroup';\n\n// Grid\nexport { Grid, type GridProps, type GridItemProps, type ResponsiveColumns } from './components/Grid';\n\n// BentoGrid\nexport { BentoGrid, type BentoGridProps, type BentoGridItemProps, type ResponsiveSpan } from './components/BentoGrid';\n\n// Separator\nexport { Separator, type SeparatorProps } from './components/Separator';\n\n// Skeleton\nexport {\n Skeleton,\n type SkeletonProps,\n type SkeletonTextProps,\n type SkeletonVariant,\n type SkeletonSize,\n} from './components/Skeleton';\n\n// Loading\nexport {\n Loading,\n LoadingRoot,\n LoadingInline,\n LoadingScreen,\n type LoadingProps,\n type LoadingSize,\n type LoadingVariant,\n type LoadingInlineProps,\n type LoadingScreenProps,\n} from './components/Loading';\n\n// Table (simple semantic HTML table)\nexport {\n Table,\n type TableProps,\n type TableRowProps,\n type TableCellProps,\n type TableHeaderCellProps,\n type TableCaptionProps,\n} from './components/Table';\n\n// DataTable (TanStack-powered data table)\nexport {\n DataTable,\n createColumns,\n type DataTableProps,\n type DataTableColumn,\n type ColumnDef,\n type SortingState,\n type RowSelectionState,\n type ExpandedState,\n} from './components/DataTable';\n\n// EmptyState\nexport {\n EmptyState,\n EmptyStateRoot,\n EmptyStateIcon,\n EmptyStateTitle,\n EmptyStateDescription,\n EmptyStateActions,\n type EmptyStateProps,\n type EmptyStateIconProps,\n type EmptyStateTitleProps,\n type EmptyStateDescriptionProps,\n type EmptyStateActionsProps,\n} from './components/EmptyState';\n\n// Toast\nexport {\n Toast,\n ToastProvider,\n useToast,\n type ToastProps,\n type ToastProviderProps,\n type ToastData,\n type ToastVariant,\n type ToastPosition,\n} from './components/Toast';\n\n// Field\nexport {\n Field,\n type FieldProps,\n type FieldLabelProps,\n type FieldControlProps,\n type FieldDescriptionProps,\n type FieldErrorProps,\n type FieldValidityProps,\n} from './components/Field';\n\n// Fieldset\nexport {\n Fieldset,\n type FieldsetProps,\n type FieldsetLegendProps,\n} from './components/Fieldset';\n\n// Form\nexport { Form, type FormProps } from './components/Form';\n\n// Sidebar\nexport {\n Sidebar,\n SidebarProvider,\n useSidebar,\n useSidebarContext, // deprecated, use useSidebar instead\n type SidebarProviderProps,\n type SidebarProps,\n type SidebarHeaderProps,\n type SidebarNavProps,\n type SidebarSectionProps,\n type SidebarSectionActionProps,\n type SidebarItemProps,\n type SidebarSubItemProps,\n type SidebarFooterProps,\n type SidebarTriggerProps,\n type SidebarOverlayProps,\n type SidebarCollapseToggleProps,\n type SidebarRailProps,\n type SidebarMenuSkeletonProps,\n type SidebarCollapsible,\n} from './components/Sidebar';\n\n// Theme\nexport {\n Theme,\n ThemeProvider,\n ThemeToggle,\n useTheme,\n configureTheme,\n type ThemeProviderProps,\n type ThemeToggleProps,\n type ThemeMode,\n type UseThemeReturn,\n type ConfigureThemeOptions,\n type NeutralPalette,\n type DensityPreset,\n type RadiusStyle,\n} from './components/Theme';\n\n// Header\nexport {\n Header,\n type HeaderProps,\n type HeaderBrandProps,\n type HeaderNavProps,\n type HeaderNavItemProps,\n type HeaderSearchProps,\n type HeaderActionsProps,\n type HeaderTriggerProps,\n} from './components/Header';\n\n// AppShell\nexport {\n AppShell,\n type AppShellProps,\n type AppShellLayout,\n type AppShellHeaderProps,\n type AppShellSidebarProps,\n type AppShellMainProps,\n type AppShellAsideProps,\n} from './components/AppShell';\n\n// Stack\nexport {\n Stack,\n type StackProps,\n type ResponsiveDirection,\n type ResponsiveGap,\n} from './components/Stack';\n\n// Text\nexport { Text, type TextProps } from './components/Text';\n\n// ButtonGroup\nexport { ButtonGroup, type ButtonGroupProps } from './components/ButtonGroup';\n\n// ToggleGroup\nexport {\n ToggleGroup,\n ToggleGroupRoot,\n ToggleGroupItem,\n type ToggleGroupProps,\n type ToggleGroupItemProps,\n} from './components/ToggleGroup';\n\n// Slider\nexport { Slider, type SliderProps } from './components/Slider';\n\n// ColorPicker\nexport { ColorPicker, type ColorPickerProps } from './components/ColorPicker';\n\n// DatePicker\nexport {\n DatePicker,\n DatePickerRoot,\n DatePickerTrigger,\n DatePickerContent,\n DatePickerCalendar,\n DatePickerPreset,\n type DatePickerProps,\n type DatePickerTriggerProps,\n type DatePickerContentProps,\n type DatePickerCalendarProps,\n type DatePickerPresetProps,\n type DateRange,\n type Matcher,\n} from './components/DatePicker';\n\n// Prompt\nexport {\n Prompt,\n usePromptContext,\n type PromptProps,\n type PromptVariant,\n type PromptTextareaProps,\n type PromptToolbarProps,\n type PromptActionsProps,\n type PromptInfoProps,\n type PromptActionButtonProps,\n type PromptModeButtonProps,\n type PromptUsageProps,\n type PromptSubmitProps,\n} from './components/Prompt';\n\n// CodeBlock\nexport {\n CodeBlock,\n TabbedCodeBlock,\n type CodeBlockProps,\n type CodeBlockLanguage,\n type CodeBlockTab,\n type TabbedCodeBlockProps,\n} from './components/CodeBlock';\n\n// Icon\nexport { Icon, type IconProps } from './components/Icon';\n\n// Image\nexport { Image, type ImageProps } from './components/Image';\n\n// Link\nexport { Link, type LinkProps } from './components/Link';\n\n// List\nexport {\n List,\n ListRoot,\n ListItem,\n type ListProps,\n type ListItemProps,\n} from './components/List';\n\n// Listbox (for search results, autocomplete, command menus)\nexport {\n Listbox,\n ListboxRoot,\n ListboxItem,\n ListboxGroup,\n ListboxEmpty,\n type ListboxProps,\n type ListboxItemProps,\n type ListboxGroupProps,\n type ListboxEmptyProps,\n} from './components/Listbox';\n\n// Breadcrumbs\nexport {\n Breadcrumbs,\n BreadcrumbsRoot,\n BreadcrumbsItem,\n BreadcrumbsSeparator,\n type BreadcrumbsProps,\n type BreadcrumbsItemProps,\n type BreadcrumbsSeparatorProps,\n} from './components/Breadcrumbs';\n\n// TableOfContents\nexport {\n TableOfContents,\n TableOfContentsRoot,\n TableOfContentsItem,\n type TableOfContentsProps,\n type TableOfContentsItemProps,\n} from './components/TableOfContents';\n\n// Box\nexport { Box, type BoxProps } from './components/Box';\n\n// ScrollArea\nexport { ScrollArea, type ScrollAreaProps } from './components/ScrollArea';\n\n// Chip\nexport { Chip, type ChipProps, type ChipGroupProps } from './components/Chip';\n\n// VisuallyHidden\nexport { VisuallyHidden, type VisuallyHiddenProps } from './components/VisuallyHidden';\n\n// Brand\nexport { BRAND, type Brand } from './brand';\n\n// Markdown (AI Chat)\nexport { Markdown, type MarkdownProps } from './components/Markdown';\n\n// Message (AI Chat)\nexport {\n Message,\n MessageRoot,\n MessageContent,\n MessageActions,\n MessageTimestamp,\n MessageAvatar,\n useMessageContext,\n type MessageProps,\n type MessageRole,\n type MessageStatus,\n type MessageContentProps,\n type MessageActionsProps,\n type MessageTimestampProps,\n type MessageAvatarProps,\n} from './components/Message';\n\n// ConversationList (AI Chat)\nexport {\n ConversationList,\n ConversationListRoot,\n DateSeparator,\n TypingIndicator,\n useConversationList,\n type ConversationListProps,\n type AutoScrollBehavior,\n type DateSeparatorProps,\n type TypingIndicatorProps,\n} from './components/ConversationList';\n\n// ThinkingIndicator (AI Chat)\nexport {\n ThinkingIndicator,\n ThinkingIndicatorRoot,\n ThinkingSteps,\n ThinkingStep,\n useThinkingIndicatorContext,\n type ThinkingIndicatorProps,\n type ThinkingVariant,\n type ThinkingStep as ThinkingStepType,\n type StepStatus,\n type ThinkingStepsProps,\n type ThinkingStepProps,\n} from './components/ThinkingIndicator';\n\n// Chart\nexport {\n ChartContainer,\n ChartTooltip,\n ChartTooltipContent,\n ChartLegend,\n ChartLegendContent,\n useChartConfig,\n type ChartConfig,\n type ChartContainerProps,\n type ChartTooltipContentProps,\n type ChartLegendContentProps,\n} from './components/Chart';\n\n// Assets\nexport { FragmentsLogo, fragmentsLogoSvg, type FragmentsLogoProps } from './assets/fragments-logo';\n\n// NavigationMenu\nexport {\n NavigationMenu,\n NavigationMenuRoot,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuTrigger,\n NavigationMenuContent,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n NavigationMenuMobileContent,\n NavigationMenuMobileSection,\n type NavigationMenuProps,\n type NavigationMenuListProps,\n type NavigationMenuItemProps,\n type NavigationMenuTriggerProps,\n type NavigationMenuContentProps,\n type NavigationMenuLinkProps,\n type NavigationMenuIndicatorProps,\n type NavigationMenuViewportProps,\n type NavigationMenuMobileContentProps,\n type NavigationMenuMobileSectionProps,\n} from './components/NavigationMenu';\n\n// Drawer\nexport {\n Drawer,\n type DrawerProps,\n type DrawerContentProps,\n type DrawerTriggerProps,\n type DrawerHeaderProps,\n type DrawerTitleProps,\n type DrawerDescriptionProps,\n type DrawerBodyProps,\n type DrawerFooterProps,\n type DrawerCloseProps,\n} from './components/Drawer';\n\n// Pagination\nexport {\n Pagination,\n type PaginationProps,\n type PaginationItemProps,\n} from './components/Pagination';\n\n// Command\nexport {\n Command,\n type CommandProps,\n type CommandInputProps,\n type CommandListProps,\n type CommandItemProps,\n type CommandGroupProps,\n type CommandEmptyProps,\n type CommandSeparatorProps,\n} from './components/Command';\n\n// Editor\nexport {\n Editor,\n EditorRoot,\n EditorToolbar,\n EditorToolbarGroup,\n EditorToolbarButton,\n EditorSeparator,\n EditorStatusIndicator,\n EditorContentArea,\n EditorStatusBar,\n useEditorContext,\n type EditorProps,\n type EditorFormat,\n type EditorSaveStatus,\n type EditorMode,\n type EditorSize,\n type EditorToolbarProps,\n type EditorToolbarGroupProps,\n type EditorToolbarButtonProps,\n type EditorSeparatorProps,\n type EditorStatusIndicatorProps,\n type EditorContentProps,\n type EditorStatusBarProps,\n} from './components/Editor';\n\n// Accessibility Utilities\nexport {\n useId,\n useAnnounce,\n usePrefersReducedMotion,\n usePrefersContrast,\n useFocusTrap,\n handleArrowNavigation,\n VisuallyHidden as A11yVisuallyHidden,\n type VisuallyHiddenProps as A11yVisuallyHiddenProps,\n} from './utils/a11y';\n\n// Keyboard Shortcuts\nexport {\n KEYBOARD_SHORTCUTS,\n matchesShortcut,\n getShortcutLabel,\n findConflicts,\n getShortcuts,\n isEditableElement,\n configureShortcuts,\n getResolvedShortcut,\n resetShortcutOverrides,\n useKeyboardShortcut,\n type KeyboardShortcut,\n type ShortcutName,\n type UseKeyboardShortcutOptions,\n} from './utils/keyboard-shortcuts';\n\n// Legacy aliases (deprecated)\nexport { Switch as Toggle, type SwitchProps as ToggleProps } from './components/Switch';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAI,OAAO,WAAW,aAAa;AACjC,iBAAA;AACF;"}
package/dist/markdown.cjs CHANGED
@@ -38,12 +38,12 @@ function loadDeps() {
38
38
  } catch {
39
39
  }
40
40
  }
41
- function FallbackRenderer({ content, className }) {
41
+ function FallbackRenderer({ content }) {
42
42
  const paragraphs = content.split(/\n{2,}/);
43
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className, children: paragraphs.map((p) => /* @__PURE__ */ jsxRuntime.jsx("p", { children: p }, p)) });
43
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { children: paragraphs.map((p) => /* @__PURE__ */ jsxRuntime.jsx("p", { children: p }, p)) });
44
44
  }
45
45
  const MarkdownRoot = React__namespace.forwardRef(
46
- function Markdown2({ content, components: componentOverrides, className }, ref) {
46
+ function Markdown2({ content, components: componentOverrides, className, ...htmlProps }, ref) {
47
47
  loadDeps();
48
48
  const classes = [Markdown_module.default.markdown, className].filter(Boolean).join(" ");
49
49
  if (loadFailed || !ReactMarkdown) {
@@ -52,10 +52,10 @@ const MarkdownRoot = React__namespace.forwardRef(
52
52
  "[@fragments-sdk/ui] Markdown: react-markdown is not installed. Install it with: npm install react-markdown remark-gfm"
53
53
  );
54
54
  }
55
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx(FallbackRenderer, { content }) });
55
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, ...htmlProps, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx(FallbackRenderer, { content }) });
56
56
  }
57
57
  const plugins = remarkGfm ? [remarkGfm] : [];
58
- return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx(
58
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, ...htmlProps, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx(
59
59
  ReactMarkdown,
60
60
  {
61
61
  remarkPlugins: plugins,
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.cjs","sources":["../src/components/Markdown/index.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport styles from './Markdown.module.scss';\nimport '../../styles/globals.scss';\n\n// ============================================\n// Types\n// ============================================\n\nexport interface MarkdownProps {\n /** Markdown string to render */\n content: string;\n /** Override map for markdown element components */\n components?: Record<string, React.ComponentType<React.HTMLAttributes<HTMLElement>>>;\n /** Additional class name */\n className?: string;\n}\n\n// ============================================\n// Lazy-loaded react-markdown\n// ============================================\n\ntype ReactMarkdownType = React.ComponentType<{\n children: string;\n remarkPlugins?: unknown[];\n components?: Record<string, React.ComponentType<unknown>>;\n}>;\n\nlet ReactMarkdown: ReactMarkdownType | null = null;\nlet remarkGfm: unknown = null;\nlet loadAttempted = false;\nlet loadFailed = false;\n\nfunction loadDeps() {\n if (loadAttempted) return;\n loadAttempted = true;\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n ReactMarkdown = require('react-markdown').default || require('react-markdown');\n } catch {\n loadFailed = true;\n }\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n remarkGfm = require('remark-gfm').default || require('remark-gfm');\n } catch {\n // remark-gfm is optional; markdown still works without it\n }\n}\n\n// ============================================\n// Fallback renderer (plain text with paragraphs)\n// ============================================\n\nfunction FallbackRenderer({ content, className }: { content: string; className?: string }) {\n const paragraphs = content.split(/\\n{2,}/);\n return (\n <div className={className}>\n {paragraphs.map((p) => (\n <p key={p}>{p}</p>\n ))}\n </div>\n );\n}\n\n// ============================================\n// Component\n// ============================================\n\nconst MarkdownRoot = React.forwardRef<HTMLDivElement, MarkdownProps>(\n function Markdown({ content, components: componentOverrides, className }, ref) {\n loadDeps();\n\n const classes = [styles.markdown, className].filter(Boolean).join(' ');\n\n if (loadFailed || !ReactMarkdown) {\n if (loadFailed && process.env.NODE_ENV === 'development') {\n console.warn(\n '[@fragments-sdk/ui] Markdown: react-markdown is not installed. ' +\n 'Install it with: npm install react-markdown remark-gfm'\n );\n }\n return (\n <div ref={ref} className={classes}>\n <FallbackRenderer content={content} />\n </div>\n );\n }\n\n const plugins = remarkGfm ? [remarkGfm] : [];\n\n return (\n <div ref={ref} className={classes}>\n <ReactMarkdown\n remarkPlugins={plugins}\n components={componentOverrides as Record<string, React.ComponentType<unknown>>}\n >\n {content}\n </ReactMarkdown>\n </div>\n );\n }\n);\n\nexport const Markdown = Object.assign(MarkdownRoot, {\n Root: MarkdownRoot,\n});\n"],"names":["jsx","React","Markdown","styles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA6BA,IAAI,gBAA0C;AAC9C,IAAI,YAAqB;AACzB,IAAI,gBAAgB;AACpB,IAAI,aAAa;AAEjB,SAAS,WAAW;AAClB,MAAI,cAAe;AACnB,kBAAgB;AAEhB,MAAI;AAEF,oBAAgB,QAAQ,gBAAgB,EAAE,WAAW,QAAQ,gBAAgB;AAAA,EAC/E,QAAQ;AACN,iBAAa;AAAA,EACf;AAEA,MAAI;AAEF,gBAAY,QAAQ,YAAY,EAAE,WAAW,QAAQ,YAAY;AAAA,EACnE,QAAQ;AAAA,EAER;AACF;AAMA,SAAS,iBAAiB,EAAE,SAAS,aAAsD;AACzF,QAAM,aAAa,QAAQ,MAAM,QAAQ;AACzC,SACEA,2BAAAA,IAAC,OAAA,EAAI,WACF,UAAA,WAAW,IAAI,CAAC,MACfA,2BAAAA,IAAC,KAAA,EAAW,UAAA,EAAA,GAAJ,CAAM,CACf,GACH;AAEJ;AAMA,MAAM,eAAeC,iBAAM;AAAA,EACzB,SAASC,UAAS,EAAE,SAAS,YAAY,oBAAoB,UAAA,GAAa,KAAK;AAC7E,aAAA;AAEA,UAAM,UAAU,CAACC,gBAAAA,QAAO,UAAU,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAErE,QAAI,cAAc,CAAC,eAAe;AAChC,UAAI,cAAc,QAAQ,IAAI,aAAa,eAAe;AACxD,gBAAQ;AAAA,UACN;AAAA,QAAA;AAAA,MAGJ;AACA,aACEH,+BAAC,SAAI,KAAU,WAAW,SACxB,UAAAA,2BAAAA,IAAC,kBAAA,EAAiB,SAAkB,EAAA,CACtC;AAAA,IAEJ;AAEA,UAAM,UAAU,YAAY,CAAC,SAAS,IAAI,CAAA;AAE1C,WACEA,2BAAAA,IAAC,OAAA,EAAI,KAAU,WAAW,SACxB,UAAAA,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,eAAe;AAAA,QACf,YAAY;AAAA,QAEX,UAAA;AAAA,MAAA;AAAA,IAAA,GAEL;AAAA,EAEJ;AACF;AAEO,MAAM,WAAW,OAAO,OAAO,cAAc;AAAA,EAClD,MAAM;AACR,CAAC;;"}
1
+ {"version":3,"file":"markdown.cjs","sources":["../src/components/Markdown/index.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport styles from './Markdown.module.scss';\nimport '../../styles/globals.scss';\n\n// ============================================\n// Types\n// ============================================\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype MarkdownComponentMap = Record<string, React.ComponentType<any>>;\n\nexport interface MarkdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {\n /** Markdown string to render */\n content: string;\n /** Override map for markdown element components */\n components?: MarkdownComponentMap;\n /** Additional class name */\n className?: string;\n}\n\n// ============================================\n// Lazy-loaded react-markdown\n// ============================================\n\ntype ReactMarkdownType = React.ComponentType<{\n children: string;\n remarkPlugins?: unknown[];\n components?: MarkdownComponentMap;\n}>;\n\nlet ReactMarkdown: ReactMarkdownType | null = null;\nlet remarkGfm: unknown = null;\nlet loadAttempted = false;\nlet loadFailed = false;\n\nfunction loadDeps() {\n if (loadAttempted) return;\n loadAttempted = true;\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n ReactMarkdown = require('react-markdown').default || require('react-markdown');\n } catch {\n loadFailed = true;\n }\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n remarkGfm = require('remark-gfm').default || require('remark-gfm');\n } catch {\n // remark-gfm is optional; markdown still works without it\n }\n}\n\n// ============================================\n// Fallback renderer (plain text with paragraphs)\n// ============================================\n\nfunction FallbackRenderer({ content }: { content: string }) {\n const paragraphs = content.split(/\\n{2,}/);\n return (\n <div>\n {paragraphs.map((p) => (\n <p key={p}>{p}</p>\n ))}\n </div>\n );\n}\n\n// ============================================\n// Component\n// ============================================\n\nconst MarkdownRoot = React.forwardRef<HTMLDivElement, MarkdownProps>(\n function Markdown({ content, components: componentOverrides, className, ...htmlProps }, ref) {\n loadDeps();\n\n const classes = [styles.markdown, className].filter(Boolean).join(' ');\n\n if (loadFailed || !ReactMarkdown) {\n if (loadFailed && process.env.NODE_ENV === 'development') {\n console.warn(\n '[@fragments-sdk/ui] Markdown: react-markdown is not installed. ' +\n 'Install it with: npm install react-markdown remark-gfm'\n );\n }\n return (\n <div ref={ref} {...htmlProps} className={classes}>\n <FallbackRenderer content={content} />\n </div>\n );\n }\n\n const plugins = remarkGfm ? [remarkGfm] : [];\n\n return (\n <div ref={ref} {...htmlProps} className={classes}>\n <ReactMarkdown\n remarkPlugins={plugins}\n components={componentOverrides}\n >\n {content}\n </ReactMarkdown>\n </div>\n );\n }\n);\n\nexport const Markdown = Object.assign(MarkdownRoot, {\n Root: MarkdownRoot,\n});\n"],"names":["jsx","React","Markdown","styles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAgCA,IAAI,gBAA0C;AAC9C,IAAI,YAAqB;AACzB,IAAI,gBAAgB;AACpB,IAAI,aAAa;AAEjB,SAAS,WAAW;AAClB,MAAI,cAAe;AACnB,kBAAgB;AAEhB,MAAI;AAEF,oBAAgB,QAAQ,gBAAgB,EAAE,WAAW,QAAQ,gBAAgB;AAAA,EAC/E,QAAQ;AACN,iBAAa;AAAA,EACf;AAEA,MAAI;AAEF,gBAAY,QAAQ,YAAY,EAAE,WAAW,QAAQ,YAAY;AAAA,EACnE,QAAQ;AAAA,EAER;AACF;AAMA,SAAS,iBAAiB,EAAE,WAAgC;AAC1D,QAAM,aAAa,QAAQ,MAAM,QAAQ;AACzC,SACEA,2BAAAA,IAAC,OAAA,EACE,UAAA,WAAW,IAAI,CAAC,MACfA,2BAAAA,IAAC,KAAA,EAAW,UAAA,EAAA,GAAJ,CAAM,CACf,GACH;AAEJ;AAMA,MAAM,eAAeC,iBAAM;AAAA,EACzB,SAASC,UAAS,EAAE,SAAS,YAAY,oBAAoB,WAAW,GAAG,UAAA,GAAa,KAAK;AAC3F,aAAA;AAEA,UAAM,UAAU,CAACC,gBAAAA,QAAO,UAAU,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAErE,QAAI,cAAc,CAAC,eAAe;AAChC,UAAI,cAAc,QAAQ,IAAI,aAAa,eAAe;AACxD,gBAAQ;AAAA,UACN;AAAA,QAAA;AAAA,MAGJ;AACA,aACEH,2BAAAA,IAAC,OAAA,EAAI,KAAW,GAAG,WAAW,WAAW,SACvC,UAAAA,2BAAAA,IAAC,kBAAA,EAAiB,QAAA,CAAkB,EAAA,CACtC;AAAA,IAEJ;AAEA,UAAM,UAAU,YAAY,CAAC,SAAS,IAAI,CAAA;AAE1C,0CACG,OAAA,EAAI,KAAW,GAAG,WAAW,WAAW,SACvC,UAAAA,2BAAAA;AAAAA,MAAC;AAAA,MAAA;AAAA,QACC,eAAe;AAAA,QACf,YAAY;AAAA,QAEX,UAAA;AAAA,MAAA;AAAA,IAAA,GAEL;AAAA,EAEJ;AACF;AAEO,MAAM,WAAW,OAAO,OAAO,cAAc;AAAA,EAClD,MAAM;AACR,CAAC;;"}
package/dist/markdown.js CHANGED
@@ -19,12 +19,12 @@ function loadDeps() {
19
19
  } catch {
20
20
  }
21
21
  }
22
- function FallbackRenderer({ content, className }) {
22
+ function FallbackRenderer({ content }) {
23
23
  const paragraphs = content.split(/\n{2,}/);
24
- return /* @__PURE__ */ jsx("div", { className, children: paragraphs.map((p) => /* @__PURE__ */ jsx("p", { children: p }, p)) });
24
+ return /* @__PURE__ */ jsx("div", { children: paragraphs.map((p) => /* @__PURE__ */ jsx("p", { children: p }, p)) });
25
25
  }
26
26
  const MarkdownRoot = React.forwardRef(
27
- function Markdown2({ content, components: componentOverrides, className }, ref) {
27
+ function Markdown2({ content, components: componentOverrides, className, ...htmlProps }, ref) {
28
28
  loadDeps();
29
29
  const classes = [styles.markdown, className].filter(Boolean).join(" ");
30
30
  if (loadFailed || !ReactMarkdown) {
@@ -33,10 +33,10 @@ const MarkdownRoot = React.forwardRef(
33
33
  "[@fragments-sdk/ui] Markdown: react-markdown is not installed. Install it with: npm install react-markdown remark-gfm"
34
34
  );
35
35
  }
36
- return /* @__PURE__ */ jsx("div", { ref, className: classes, children: /* @__PURE__ */ jsx(FallbackRenderer, { content }) });
36
+ return /* @__PURE__ */ jsx("div", { ref, ...htmlProps, className: classes, children: /* @__PURE__ */ jsx(FallbackRenderer, { content }) });
37
37
  }
38
38
  const plugins = remarkGfm ? [remarkGfm] : [];
39
- return /* @__PURE__ */ jsx("div", { ref, className: classes, children: /* @__PURE__ */ jsx(
39
+ return /* @__PURE__ */ jsx("div", { ref, ...htmlProps, className: classes, children: /* @__PURE__ */ jsx(
40
40
  ReactMarkdown,
41
41
  {
42
42
  remarkPlugins: plugins,
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.js","sources":["../src/components/Markdown/index.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport styles from './Markdown.module.scss';\nimport '../../styles/globals.scss';\n\n// ============================================\n// Types\n// ============================================\n\nexport interface MarkdownProps {\n /** Markdown string to render */\n content: string;\n /** Override map for markdown element components */\n components?: Record<string, React.ComponentType<React.HTMLAttributes<HTMLElement>>>;\n /** Additional class name */\n className?: string;\n}\n\n// ============================================\n// Lazy-loaded react-markdown\n// ============================================\n\ntype ReactMarkdownType = React.ComponentType<{\n children: string;\n remarkPlugins?: unknown[];\n components?: Record<string, React.ComponentType<unknown>>;\n}>;\n\nlet ReactMarkdown: ReactMarkdownType | null = null;\nlet remarkGfm: unknown = null;\nlet loadAttempted = false;\nlet loadFailed = false;\n\nfunction loadDeps() {\n if (loadAttempted) return;\n loadAttempted = true;\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n ReactMarkdown = require('react-markdown').default || require('react-markdown');\n } catch {\n loadFailed = true;\n }\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n remarkGfm = require('remark-gfm').default || require('remark-gfm');\n } catch {\n // remark-gfm is optional; markdown still works without it\n }\n}\n\n// ============================================\n// Fallback renderer (plain text with paragraphs)\n// ============================================\n\nfunction FallbackRenderer({ content, className }: { content: string; className?: string }) {\n const paragraphs = content.split(/\\n{2,}/);\n return (\n <div className={className}>\n {paragraphs.map((p) => (\n <p key={p}>{p}</p>\n ))}\n </div>\n );\n}\n\n// ============================================\n// Component\n// ============================================\n\nconst MarkdownRoot = React.forwardRef<HTMLDivElement, MarkdownProps>(\n function Markdown({ content, components: componentOverrides, className }, ref) {\n loadDeps();\n\n const classes = [styles.markdown, className].filter(Boolean).join(' ');\n\n if (loadFailed || !ReactMarkdown) {\n if (loadFailed && process.env.NODE_ENV === 'development') {\n console.warn(\n '[@fragments-sdk/ui] Markdown: react-markdown is not installed. ' +\n 'Install it with: npm install react-markdown remark-gfm'\n );\n }\n return (\n <div ref={ref} className={classes}>\n <FallbackRenderer content={content} />\n </div>\n );\n }\n\n const plugins = remarkGfm ? [remarkGfm] : [];\n\n return (\n <div ref={ref} className={classes}>\n <ReactMarkdown\n remarkPlugins={plugins}\n components={componentOverrides as Record<string, React.ComponentType<unknown>>}\n >\n {content}\n </ReactMarkdown>\n </div>\n );\n }\n);\n\nexport const Markdown = Object.assign(MarkdownRoot, {\n Root: MarkdownRoot,\n});\n"],"names":["Markdown"],"mappings":";;;;AA6BA,IAA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,CAAC;"}
1
+ {"version":3,"file":"markdown.js","sources":["../src/components/Markdown/index.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport styles from './Markdown.module.scss';\nimport '../../styles/globals.scss';\n\n// ============================================\n// Types\n// ============================================\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype MarkdownComponentMap = Record<string, React.ComponentType<any>>;\n\nexport interface MarkdownProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {\n /** Markdown string to render */\n content: string;\n /** Override map for markdown element components */\n components?: MarkdownComponentMap;\n /** Additional class name */\n className?: string;\n}\n\n// ============================================\n// Lazy-loaded react-markdown\n// ============================================\n\ntype ReactMarkdownType = React.ComponentType<{\n children: string;\n remarkPlugins?: unknown[];\n components?: MarkdownComponentMap;\n}>;\n\nlet ReactMarkdown: ReactMarkdownType | null = null;\nlet remarkGfm: unknown = null;\nlet loadAttempted = false;\nlet loadFailed = false;\n\nfunction loadDeps() {\n if (loadAttempted) return;\n loadAttempted = true;\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n ReactMarkdown = require('react-markdown').default || require('react-markdown');\n } catch {\n loadFailed = true;\n }\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n remarkGfm = require('remark-gfm').default || require('remark-gfm');\n } catch {\n // remark-gfm is optional; markdown still works without it\n }\n}\n\n// ============================================\n// Fallback renderer (plain text with paragraphs)\n// ============================================\n\nfunction FallbackRenderer({ content }: { content: string }) {\n const paragraphs = content.split(/\\n{2,}/);\n return (\n <div>\n {paragraphs.map((p) => (\n <p key={p}>{p}</p>\n ))}\n </div>\n );\n}\n\n// ============================================\n// Component\n// ============================================\n\nconst MarkdownRoot = React.forwardRef<HTMLDivElement, MarkdownProps>(\n function Markdown({ content, components: componentOverrides, className, ...htmlProps }, ref) {\n loadDeps();\n\n const classes = [styles.markdown, className].filter(Boolean).join(' ');\n\n if (loadFailed || !ReactMarkdown) {\n if (loadFailed && process.env.NODE_ENV === 'development') {\n console.warn(\n '[@fragments-sdk/ui] Markdown: react-markdown is not installed. ' +\n 'Install it with: npm install react-markdown remark-gfm'\n );\n }\n return (\n <div ref={ref} {...htmlProps} className={classes}>\n <FallbackRenderer content={content} />\n </div>\n );\n }\n\n const plugins = remarkGfm ? [remarkGfm] : [];\n\n return (\n <div ref={ref} {...htmlProps} className={classes}>\n <ReactMarkdown\n remarkPlugins={plugins}\n components={componentOverrides}\n >\n {content}\n </ReactMarkdown>\n </div>\n );\n }\n);\n\nexport const Markdown = Object.assign(MarkdownRoot, {\n Root: MarkdownRoot,\n});\n"],"names":["Markdown"],"mappings":";;;;AAgCA,IAAI,gBAA0C;AAC9C,IAAI,YAAqB;AACzB,IAAI,gBAAgB;AACpB,IAAI,aAAa;AAEjB,SAAS,WAAW;AAClB,MAAI,cAAe;AACnB,kBAAgB;AAEhB,MAAI;AAEF,oBAAgB,QAAQ,gBAAgB,EAAE,WAAW,QAAQ,gBAAgB;AAAA,EAC/E,QAAQ;AACN,iBAAa;AAAA,EACf;AAEA,MAAI;AAEF,gBAAY,QAAQ,YAAY,EAAE,WAAW,QAAQ,YAAY;AAAA,EACnE,QAAQ;AAAA,EAER;AACF;AAMA,SAAS,iBAAiB,EAAE,WAAgC;AAC1D,QAAM,aAAa,QAAQ,MAAM,QAAQ;AACzC,SACE,oBAAC,OAAA,EACE,UAAA,WAAW,IAAI,CAAC,MACf,oBAAC,KAAA,EAAW,UAAA,EAAA,GAAJ,CAAM,CACf,GACH;AAEJ;AAMA,MAAM,eAAe,MAAM;AAAA,EACzB,SAASA,UAAS,EAAE,SAAS,YAAY,oBAAoB,WAAW,GAAG,UAAA,GAAa,KAAK;AAC3F,aAAA;AAEA,UAAM,UAAU,CAAC,OAAO,UAAU,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAErE,QAAI,cAAc,CAAC,eAAe;AAChC,UAAI,cAAc,QAAQ,IAAI,aAAa,eAAe;AACxD,gBAAQ;AAAA,UACN;AAAA,QAAA;AAAA,MAGJ;AACA,aACE,oBAAC,OAAA,EAAI,KAAW,GAAG,WAAW,WAAW,SACvC,UAAA,oBAAC,kBAAA,EAAiB,QAAA,CAAkB,EAAA,CACtC;AAAA,IAEJ;AAEA,UAAM,UAAU,YAAY,CAAC,SAAS,IAAI,CAAA;AAE1C,+BACG,OAAA,EAAI,KAAW,GAAG,WAAW,WAAW,SACvC,UAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,eAAe;AAAA,QACf,YAAY;AAAA,QAEX,UAAA;AAAA,MAAA;AAAA,IAAA,GAEL;AAAA,EAEJ;AACF;AAEO,MAAM,WAAW,OAAO,OAAO,cAAc;AAAA,EAClD,MAAM;AACR,CAAC;"}
package/dist/table.cjs CHANGED
@@ -29,11 +29,18 @@ function TableCell({ className, children, ...props }) {
29
29
  function TableHeaderCell({ className, scope = "col", children, ...props }) {
30
30
  return /* @__PURE__ */ jsxRuntime.jsx("th", { className: [Table_module.default.th, className].filter(Boolean).join(" "), scope, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: Table_module.default.headerContent, children }) });
31
31
  }
32
- function TableCaption({ className, hidden: visuallyHidden, children, ...props }) {
32
+ function TableCaption({
33
+ className,
34
+ visuallyHidden,
35
+ hidden,
36
+ children,
37
+ ...props
38
+ }) {
39
+ const useVisuallyHidden = visuallyHidden ?? hidden;
33
40
  return /* @__PURE__ */ jsxRuntime.jsx(
34
41
  "caption",
35
42
  {
36
- className: [visuallyHidden ? Table_module.default.captionHidden : Table_module.default.caption, className].filter(Boolean).join(" "),
43
+ className: [useVisuallyHidden ? Table_module.default.captionHidden : Table_module.default.caption, className].filter(Boolean).join(" "),
37
44
  ...props,
38
45
  children
39
46
  }
@@ -43,6 +50,8 @@ function TableRoot({
43
50
  size = "md",
44
51
  striped = false,
45
52
  bordered = false,
53
+ wrapperClassName,
54
+ wrapperProps,
46
55
  className,
47
56
  children,
48
57
  ...htmlProps
@@ -53,7 +62,14 @@ function TableRoot({
53
62
  striped && Table_module.default.striped,
54
63
  className
55
64
  ].filter(Boolean).join(" ");
56
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: [Table_module.default.wrapper, bordered && Table_module.default.bordered].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxRuntime.jsx("table", { className: tableClasses, ...htmlProps, children }) });
65
+ return /* @__PURE__ */ jsxRuntime.jsx(
66
+ "div",
67
+ {
68
+ ...wrapperProps,
69
+ className: [Table_module.default.wrapper, bordered && Table_module.default.bordered, wrapperProps == null ? void 0 : wrapperProps.className, wrapperClassName].filter(Boolean).join(" "),
70
+ children: /* @__PURE__ */ jsxRuntime.jsx("table", { className: tableClasses, ...htmlProps, children })
71
+ }
72
+ );
57
73
  }
58
74
  const Table = Object.assign(TableRoot, {
59
75
  Root: TableRoot,
@@ -1 +1 @@
1
- {"version":3,"file":"table.cjs","sources":["../src/components/Table/index.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\n// Import globals to ensure CSS variables are defined\nimport '../../styles/globals.scss';\nimport styles from './Table.module.scss';\n\n// ============================================\n// Types\n// ============================================\n\nexport interface TableProps extends React.HTMLAttributes<HTMLTableElement> {\n /** Size variant */\n size?: 'sm' | 'md';\n /** Show alternating row backgrounds */\n striped?: boolean;\n /** Wrap table in a bordered container */\n bordered?: boolean;\n children?: React.ReactNode;\n}\n\nexport interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {\n /** Mark row as selected */\n selected?: boolean;\n children?: React.ReactNode;\n}\n\nexport interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {\n children?: React.ReactNode;\n}\n\nexport interface TableHeaderCellProps extends React.ThHTMLAttributes<HTMLTableCellElement> {\n /** Scope for the header cell */\n scope?: string;\n children?: React.ReactNode;\n}\n\nexport interface TableCaptionProps extends React.HTMLAttributes<HTMLTableCaptionElement> {\n /** Visually hide the caption (screen readers only) */\n hidden?: boolean;\n children?: React.ReactNode;\n}\n\n// ============================================\n// Sub-components\n// ============================================\n\nfunction TableHead({ className, children, ...props }: React.HTMLAttributes<HTMLTableSectionElement>) {\n return (\n <thead className={[styles.thead, className].filter(Boolean).join(' ')} {...props}>\n {children}\n </thead>\n );\n}\n\nfunction TableBody({ className, children, ...props }: React.HTMLAttributes<HTMLTableSectionElement>) {\n return (\n <tbody className={[styles.tbody, className].filter(Boolean).join(' ')} {...props}>\n {children}\n </tbody>\n );\n}\n\nfunction TableFooter({ className, children, ...props }: React.HTMLAttributes<HTMLTableSectionElement>) {\n return (\n <tfoot className={[styles.tfoot, className].filter(Boolean).join(' ')} {...props}>\n {children}\n </tfoot>\n );\n}\n\nfunction TableRow({ className, selected, children, ...props }: TableRowProps) {\n return (\n <tr\n className={[styles.row, selected && styles.selected, className].filter(Boolean).join(' ')}\n data-selected={selected || undefined}\n {...props}\n >\n {children}\n </tr>\n );\n}\n\nfunction TableCell({ className, children, ...props }: TableCellProps) {\n return (\n <td className={[styles.td, className].filter(Boolean).join(' ')} {...props}>\n {children}\n </td>\n );\n}\n\nfunction TableHeaderCell({ className, scope = 'col', children, ...props }: TableHeaderCellProps) {\n return (\n <th className={[styles.th, className].filter(Boolean).join(' ')} scope={scope} {...props}>\n <div className={styles.headerContent}>{children}</div>\n </th>\n );\n}\n\nfunction TableCaption({ className, hidden: visuallyHidden, children, ...props }: TableCaptionProps) {\n return (\n <caption\n className={[visuallyHidden ? styles.captionHidden : styles.caption, className].filter(Boolean).join(' ')}\n {...props}\n >\n {children}\n </caption>\n );\n}\n\n// ============================================\n// Root component\n// ============================================\n\nfunction TableRoot({\n size = 'md',\n striped = false,\n bordered = false,\n className,\n children,\n ...htmlProps\n}: TableProps) {\n const tableClasses = [\n styles.table,\n styles[size],\n striped && styles.striped,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={[styles.wrapper, bordered && styles.bordered].filter(Boolean).join(' ')}>\n <table className={tableClasses} {...htmlProps}>\n {children}\n </table>\n </div>\n );\n}\n\n// ============================================\n// Compound export\n// ============================================\n\nexport const Table = Object.assign(TableRoot, {\n Root: TableRoot,\n Head: TableHead,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n Cell: TableCell,\n HeaderCell: TableHeaderCell,\n Caption: TableCaption,\n});\n"],"names":["styles","jsx"],"mappings":";;;;;AA+CA,SAAS,UAAU,EAAE,WAAW,UAAU,GAAG,SAAwD;AACnG,wCACG,SAAA,EAAM,WAAW,CAACA,aAAAA,QAAO,OAAO,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GAAI,GAAG,OACxE,UACH;AAEJ;AAEA,SAAS,UAAU,EAAE,WAAW,UAAU,GAAG,SAAwD;AACnG,wCACG,SAAA,EAAM,WAAW,CAACA,aAAAA,QAAO,OAAO,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GAAI,GAAG,OACxE,UACH;AAEJ;AAEA,SAAS,YAAY,EAAE,WAAW,UAAU,GAAG,SAAwD;AACrG,wCACG,SAAA,EAAM,WAAW,CAACA,aAAAA,QAAO,OAAO,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GAAI,GAAG,OACxE,UACH;AAEJ;AAEA,SAAS,SAAS,EAAE,WAAW,UAAU,UAAU,GAAG,SAAwB;AAC5E,SACEC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,CAACD,aAAAA,QAAO,KAAK,YAAYA,aAAAA,QAAO,UAAU,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MACxF,iBAAe,YAAY;AAAA,MAC1B,GAAG;AAAA,MAEH;AAAA,IAAA;AAAA,EAAA;AAGP;AAEA,SAAS,UAAU,EAAE,WAAW,UAAU,GAAG,SAAyB;AACpE,wCACG,MAAA,EAAG,WAAW,CAACA,aAAAA,QAAO,IAAI,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GAAI,GAAG,OAClE,UACH;AAEJ;AAEA,SAAS,gBAAgB,EAAE,WAAW,QAAQ,OAAO,UAAU,GAAG,SAA+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ent":["'use client';\n\nimport * as React from 'react';\n// Import globals to ensure CSS variables are defined\nimport '../../styles/globals.scss';\nimport styles from './Table.module.scss';\n\n// ============================================\n// Types\n// ============================================\n\nexport interface TableProps extends React.HTMLAttributes<HTMLTableElement> {\n /** Size variant */\n size?: 'sm' | 'md';\n /** Show alternating row backgrounds */\n striped?: boolean;\n /** Wrap table in a bordered container */\n bordered?: boolean;\n /** Class applied to the outer wrapper element */\n wrapperClassName?: string;\n /** Props applied to the outer wrapper element */\n wrapperProps?: React.HTMLAttributes<HTMLDivElement>;\n children?: React.ReactNode;\n}\n\nexport interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {\n /** Mark row as selected */\n selected?: boolean;\n children?: React.ReactNode;\n}\n\nexport interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {\n children?: React.ReactNode;\n}\n\nexport interface TableHeaderCellProps extends React.ThHTMLAttributes<HTMLTableHeaderCellElement> {\n /** Scope for the header cell */\n scope?: string;\n children?: React.ReactNode;\n}\n\nexport interface TableCaptionProps extends Omit<React.HTMLAttributes<HTMLTableCaptionElement>, 'hidden'> {\n /** Visually hide the caption (screen readers only) */\n visuallyHidden?: boolean;\n /** @deprecated Use visuallyHidden */\n hidden?: boolean;\n children?: React.ReactNode;\n}\n\n// ============================================\n// Sub-components\n// ============================================\n\nfunction TableHead({ className, children, ...props }: React.HTMLAttributes<HTMLTableSectionElement>) {\n return (\n <thead className={[styles.thead, className].filter(Boolean).join(' ')} {...props}>\n {children}\n </thead>\n );\n}\n\nfunction TableBody({ className, children, ...props }: React.HTMLAttributes<HTMLTableSectionElement>) {\n return (\n <tbody className={[styles.tbody, className].filter(Boolean).join(' ')} {...props}>\n {children}\n </tbody>\n );\n}\n\nfunction TableFooter({ className, children, ...props }: React.HTMLAttributes<HTMLTableSectionElement>) {\n return (\n <tfoot className={[styles.tfoot, className].filter(Boolean).join(' ')} {...props}>\n {children}\n </tfoot>\n );\n}\n\nfunction TableRow({ className, selected, children, ...props }: TableRowProps) {\n return (\n <tr\n className={[styles.row, selected && styles.selected, className].filter(Boolean).join(' ')}\n data-selected={selected || undefined}\n {...props}\n >\n {children}\n </tr>\n );\n}\n\nfunction TableCell({ className, children, ...props }: TableCellProps) {\n return (\n <td className={[styles.td, className].filter(Boolean).join(' ')} {...props}>\n {children}\n </td>\n );\n}\n\nfunction TableHeaderCell({ className, scope = 'col', children, ...props }: TableHeaderCellProps) {\n return (\n <th className={[styles.th, className].filter(Boolean).join(' ')} scope={scope} {...props}>\n <div className={styles.headerContent}>{children}</div>\n </th>\n );\n}\n\nfunction TableCaption({\n className,\n visuallyHidden,\n hidden,\n children,\n ...props\n}: TableCaptionProps) {\n const useVisuallyHidden = visuallyHidden ?? hidden;\n return (\n <caption\n className={[useVisuallyHidden ? styles.captionHidden : styles.caption, className].filter(Boolean).join(' ')}\n {...props}\n >\n {children}\n </caption>\n );\n}\n\n// ============================================\n// Root component\n// ============================================\n\nfunction TableRoot({\n size = 'md',\n striped = false,\n bordered = false,\n wrapperClassName,\n wrapperProps,\n className,\n children,\n ...htmlProps\n}: TableProps) {\n const tableClasses = [\n styles.table,\n styles[size],\n striped && styles.striped,\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div\n {...wrapperProps}\n className={[styles.wrapper, bordered && styles.bordered, wrapperProps?.className, wrapperClassName].filter(Boolean).join(' ')}\n >\n <table className={tableClasses} {...htmlProps}>\n {children}\n </table>\n </div>\n );\n}\n\n// ============================================\n// Compound export\n// ============================================\n\nexport const Table = Object.assign(TableRoot, {\n Root: TableRoot,\n Head: TableHead,\n Body: TableBody,\n Footer: TableFooter,\n Row: TableRow,\n Cell: TableCell,\n HeaderCell: TableHeaderCell,\n Caption: TableCaption,\n});\n"],"names":["styles","jsx"],"mappings":";;;;;AAqDA,SAAS,UAAU,EAAE,WAAW,UAAU,GAAG,SAAwD;AACnG,wCACG,SAAA,EAAM,WAAW,CAACA,aAAAA,QAAO,OAAO,SAAS,EAAE,OAAO,OAA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