@economic/taco 13.0.0 → 14.0.0-tanstack-virtual-update.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 (645) hide show
  1. package/dist/charts/components/Area/AreaChart.cjs.map +1 -1
  2. package/dist/charts/components/Area/AreaChart.js.map +1 -1
  3. package/dist/charts/components/Bar/BarChart.cjs.map +1 -1
  4. package/dist/charts/components/Bar/BarChart.js.map +1 -1
  5. package/dist/charts/components/Composed/BarLineChart.cjs.map +1 -1
  6. package/dist/charts/components/Composed/BarLineChart.js.map +1 -1
  7. package/dist/charts/components/Donut/DonutChart.cjs +1 -1
  8. package/dist/charts/components/Donut/DonutChart.cjs.map +1 -1
  9. package/dist/charts/components/Donut/DonutChart.js +1 -1
  10. package/dist/charts/components/Donut/DonutChart.js.map +1 -1
  11. package/dist/charts/components/LegacyDonut/ActiveShape.cjs.map +1 -1
  12. package/dist/charts/components/LegacyDonut/ActiveShape.js.map +1 -1
  13. package/dist/charts/components/LegacyDonut/LegacyDonutChart.cjs.map +1 -1
  14. package/dist/charts/components/LegacyDonut/LegacyDonutChart.js.map +1 -1
  15. package/dist/charts/components/LegacyDonut/Legend.cjs.map +1 -1
  16. package/dist/charts/components/LegacyDonut/Legend.js.map +1 -1
  17. package/dist/charts/components/Legend.cjs +3 -3
  18. package/dist/charts/components/Legend.cjs.map +1 -1
  19. package/dist/charts/components/Legend.js +3 -3
  20. package/dist/charts/components/Legend.js.map +1 -1
  21. package/dist/charts/components/Line/LineChart.cjs.map +1 -1
  22. package/dist/charts/components/Line/LineChart.js.map +1 -1
  23. package/dist/charts/components/Pie/PieChart.cjs.map +1 -1
  24. package/dist/charts/components/Pie/PieChart.js.map +1 -1
  25. package/dist/charts/components/useChartData.cjs +1 -1
  26. package/dist/charts/components/useChartData.cjs.map +1 -1
  27. package/dist/charts/components/useChartData.js +1 -1
  28. package/dist/charts/components/useChartData.js.map +1 -1
  29. package/dist/charts/utils/color.cjs.map +1 -1
  30. package/dist/charts/utils/color.js.map +1 -1
  31. package/dist/charts/utils/common.cjs.map +1 -1
  32. package/dist/charts/utils/common.d.ts +1 -1
  33. package/dist/charts/utils/common.js.map +1 -1
  34. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  35. package/dist/components/Accordion/Accordion.js.map +1 -1
  36. package/dist/components/Actions/Button/Button.cjs +2 -2
  37. package/dist/components/Actions/Button/Button.cjs.map +1 -1
  38. package/dist/components/Actions/Button/Button.d.ts +2 -2
  39. package/dist/components/Actions/Button/Button.js +2 -2
  40. package/dist/components/Actions/Button/Button.js.map +1 -1
  41. package/dist/components/Actions/Link/Link.cjs.map +1 -1
  42. package/dist/components/Actions/Link/Link.js.map +1 -1
  43. package/dist/components/Actions/LinkButton/LinkButton.cjs +1 -1
  44. package/dist/components/Actions/LinkButton/LinkButton.cjs.map +1 -1
  45. package/dist/components/Actions/LinkButton/LinkButton.d.ts +2 -2
  46. package/dist/components/Actions/LinkButton/LinkButton.js +1 -1
  47. package/dist/components/Actions/LinkButton/LinkButton.js.map +1 -1
  48. package/dist/components/Alert/Alert.cjs.map +1 -1
  49. package/dist/components/Alert/Alert.js.map +1 -1
  50. package/dist/components/AlertDialog/components/Content.cjs +2 -2
  51. package/dist/components/AlertDialog/components/Content.cjs.map +1 -1
  52. package/dist/components/AlertDialog/components/Content.js +2 -2
  53. package/dist/components/AlertDialog/components/Content.js.map +1 -1
  54. package/dist/components/AlertDialog/components/Trigger.cjs.map +1 -1
  55. package/dist/components/AlertDialog/components/Trigger.js.map +1 -1
  56. package/dist/components/Backdrop/Backdrop.cjs.map +1 -1
  57. package/dist/components/Backdrop/Backdrop.js.map +1 -1
  58. package/dist/components/Badge/Badge.cjs +1 -1
  59. package/dist/components/Badge/Badge.cjs.map +1 -1
  60. package/dist/components/Badge/Badge.js +1 -1
  61. package/dist/components/Badge/Badge.js.map +1 -1
  62. package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
  63. package/dist/components/BadgeIcon/BadgeIcon.d.ts +1 -1
  64. package/dist/components/BadgeIcon/BadgeIcon.js.map +1 -1
  65. package/dist/components/Banner/Banner.cjs +2 -2
  66. package/dist/components/Banner/Banner.cjs.map +1 -1
  67. package/dist/components/Banner/Banner.js +2 -2
  68. package/dist/components/Banner/Banner.js.map +1 -1
  69. package/dist/components/Banner/util.cjs.map +1 -1
  70. package/dist/components/Banner/util.js.map +1 -1
  71. package/dist/components/Calendar/Calendar.cjs +2 -2
  72. package/dist/components/Calendar/Calendar.cjs.map +1 -1
  73. package/dist/components/Calendar/Calendar.js +2 -2
  74. package/dist/components/Calendar/Calendar.js.map +1 -1
  75. package/dist/components/Card/Card.cjs +2 -2
  76. package/dist/components/Card/Card.cjs.map +1 -1
  77. package/dist/components/Card/Card.d.ts +1 -1
  78. package/dist/components/Card/Card.js +2 -2
  79. package/dist/components/Card/Card.js.map +1 -1
  80. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  81. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  82. package/dist/components/Combobox/Combobox.cjs +4 -4
  83. package/dist/components/Combobox/Combobox.cjs.map +1 -1
  84. package/dist/components/Combobox/Combobox.d.ts +1 -2
  85. package/dist/components/Combobox/Combobox.js +4 -4
  86. package/dist/components/Combobox/Combobox.js.map +1 -1
  87. package/dist/components/Combobox/useCombobox.cjs +3 -3
  88. package/dist/components/Combobox/useCombobox.cjs.map +1 -1
  89. package/dist/components/Combobox/useCombobox.d.ts +1 -1
  90. package/dist/components/Combobox/useCombobox.js +3 -3
  91. package/dist/components/Combobox/useCombobox.js.map +1 -1
  92. package/dist/components/Datepicker/Datepicker.cjs +3 -3
  93. package/dist/components/Datepicker/Datepicker.cjs.map +1 -1
  94. package/dist/components/Datepicker/Datepicker.d.ts +1 -2
  95. package/dist/components/Datepicker/Datepicker.js +3 -3
  96. package/dist/components/Datepicker/Datepicker.js.map +1 -1
  97. package/dist/components/Datepicker/useDatepicker.cjs.map +1 -1
  98. package/dist/components/Datepicker/useDatepicker.d.ts +1 -2
  99. package/dist/components/Datepicker/useDatepicker.js.map +1 -1
  100. package/dist/components/Dialog/components/Content.cjs +3 -3
  101. package/dist/components/Dialog/components/Content.cjs.map +1 -1
  102. package/dist/components/Dialog/components/Content.js +3 -3
  103. package/dist/components/Dialog/components/Content.js.map +1 -1
  104. package/dist/components/Dialog/components/Trigger.cjs.map +1 -1
  105. package/dist/components/Dialog/components/Trigger.js.map +1 -1
  106. package/dist/components/Drawer/Drawer.cjs.map +1 -1
  107. package/dist/components/Drawer/Drawer.d.ts +1 -1
  108. package/dist/components/Drawer/Drawer.js.map +1 -1
  109. package/dist/components/Drawer/components/Content.cjs +3 -3
  110. package/dist/components/Drawer/components/Content.cjs.map +1 -1
  111. package/dist/components/Drawer/components/Content.js +3 -3
  112. package/dist/components/Drawer/components/Content.js.map +1 -1
  113. package/dist/components/Field/Field.cjs +1 -1
  114. package/dist/components/Field/Field.cjs.map +1 -1
  115. package/dist/components/Field/Field.js +1 -1
  116. package/dist/components/Field/Field.js.map +1 -1
  117. package/dist/components/Form/Form.cjs.map +1 -1
  118. package/dist/components/Form/Form.d.ts +1 -1
  119. package/dist/components/Form/Form.js.map +1 -1
  120. package/dist/components/Group/Group.cjs.map +1 -1
  121. package/dist/components/Group/Group.d.ts +2 -1
  122. package/dist/components/Group/Group.js.map +1 -1
  123. package/dist/components/Hanger/Hanger.cjs +2 -2
  124. package/dist/components/Hanger/Hanger.cjs.map +1 -1
  125. package/dist/components/Hanger/Hanger.d.ts +1 -1
  126. package/dist/components/Hanger/Hanger.js +2 -2
  127. package/dist/components/Hanger/Hanger.js.map +1 -1
  128. package/dist/components/Header/components/Agreement/Badge.cjs.map +1 -1
  129. package/dist/components/Header/components/Agreement/Badge.js.map +1 -1
  130. package/dist/components/Header/components/Agreement/Display.cjs.map +1 -1
  131. package/dist/components/Header/components/Agreement/Display.js.map +1 -1
  132. package/dist/components/Header/components/Agreement/Item.cjs +1 -1
  133. package/dist/components/Header/components/Agreement/Item.cjs.map +1 -1
  134. package/dist/components/Header/components/Agreement/Item.js +1 -1
  135. package/dist/components/Header/components/Agreement/Item.js.map +1 -1
  136. package/dist/components/Header/components/AgreementSelector.cjs +3 -3
  137. package/dist/components/Header/components/AgreementSelector.cjs.map +1 -1
  138. package/dist/components/Header/components/AgreementSelector.js +3 -3
  139. package/dist/components/Header/components/AgreementSelector.js.map +1 -1
  140. package/dist/components/Header/components/Button.cjs.map +1 -1
  141. package/dist/components/Header/components/Button.d.ts +1 -1
  142. package/dist/components/Header/components/Button.js.map +1 -1
  143. package/dist/components/Header/components/Link.cjs +2 -2
  144. package/dist/components/Header/components/Link.cjs.map +1 -1
  145. package/dist/components/Header/components/Link.d.ts +1 -1
  146. package/dist/components/Header/components/Link.js +2 -2
  147. package/dist/components/Header/components/Link.js.map +1 -1
  148. package/dist/components/Header/components/MenuButton.cjs +1 -1
  149. package/dist/components/Header/components/MenuButton.cjs.map +1 -1
  150. package/dist/components/Header/components/MenuButton.js +1 -1
  151. package/dist/components/Header/components/MenuButton.js.map +1 -1
  152. package/dist/components/Header/components/PrimaryNavigation.cjs +3 -3
  153. package/dist/components/Header/components/PrimaryNavigation.cjs.map +1 -1
  154. package/dist/components/Header/components/PrimaryNavigation.js +3 -3
  155. package/dist/components/Header/components/PrimaryNavigation.js.map +1 -1
  156. package/dist/components/HoverCard/HoverCard.cjs.map +1 -1
  157. package/dist/components/HoverCard/HoverCard.d.ts +1 -1
  158. package/dist/components/HoverCard/HoverCard.js.map +1 -1
  159. package/dist/components/Inline/Inline.cjs +2 -6
  160. package/dist/components/Inline/Inline.cjs.map +1 -1
  161. package/dist/components/Inline/Inline.d.ts +1 -1
  162. package/dist/components/Inline/Inline.js +2 -6
  163. package/dist/components/Inline/Inline.js.map +1 -1
  164. package/dist/components/Input/Input.cjs +1 -1
  165. package/dist/components/Input/Input.cjs.map +1 -1
  166. package/dist/components/Input/Input.d.ts +1 -1
  167. package/dist/components/Input/Input.js +1 -1
  168. package/dist/components/Input/Input.js.map +1 -1
  169. package/dist/components/Layout/components/Sidebar.cjs.map +1 -1
  170. package/dist/components/Layout/components/Sidebar.js.map +1 -1
  171. package/dist/components/LegacyComponents/Button/Button.cjs +1 -1
  172. package/dist/components/LegacyComponents/Button/Button.cjs.map +1 -1
  173. package/dist/components/LegacyComponents/Button/Button.d.ts +3 -7
  174. package/dist/components/LegacyComponents/Button/Button.js +1 -1
  175. package/dist/components/LegacyComponents/Button/Button.js.map +1 -1
  176. package/dist/components/LegacyComponents/Button/util.cjs.map +1 -1
  177. package/dist/components/LegacyComponents/Button/util.js.map +1 -1
  178. package/dist/components/LegacyComponents/IconButton/IconButton.cjs +1 -1
  179. package/dist/components/LegacyComponents/IconButton/IconButton.cjs.map +1 -1
  180. package/dist/components/LegacyComponents/IconButton/IconButton.d.ts +4 -8
  181. package/dist/components/LegacyComponents/IconButton/IconButton.js +1 -1
  182. package/dist/components/LegacyComponents/IconButton/IconButton.js.map +1 -1
  183. package/dist/components/List/components/Collapsible.cjs +1 -1
  184. package/dist/components/List/components/Collapsible.cjs.map +1 -1
  185. package/dist/components/List/components/Collapsible.js +1 -1
  186. package/dist/components/List/components/Collapsible.js.map +1 -1
  187. package/dist/components/List/components/Item.cjs.map +1 -1
  188. package/dist/components/List/components/Item.d.ts +1 -1
  189. package/dist/components/List/components/Item.js.map +1 -1
  190. package/dist/components/List/components/Link.cjs +1 -1
  191. package/dist/components/List/components/Link.cjs.map +1 -1
  192. package/dist/components/List/components/Link.js +1 -1
  193. package/dist/components/List/components/Link.js.map +1 -1
  194. package/dist/components/List/components/Toggle.cjs +2 -2
  195. package/dist/components/List/components/Toggle.cjs.map +1 -1
  196. package/dist/components/List/components/Toggle.d.ts +1 -2
  197. package/dist/components/List/components/Toggle.js +2 -2
  198. package/dist/components/List/components/Toggle.js.map +1 -1
  199. package/dist/components/Listbox/Listbox.d.ts +2 -2
  200. package/dist/components/Listbox/ScrollableList.cjs +3 -3
  201. package/dist/components/Listbox/ScrollableList.cjs.map +1 -1
  202. package/dist/components/Listbox/ScrollableList.d.ts +1 -1
  203. package/dist/components/Listbox/ScrollableList.js +3 -3
  204. package/dist/components/Listbox/ScrollableList.js.map +1 -1
  205. package/dist/components/Listbox/useListbox.cjs.map +1 -1
  206. package/dist/components/Listbox/useListbox.js.map +1 -1
  207. package/dist/components/Listbox/useMultiListbox.cjs +1 -1
  208. package/dist/components/Listbox/useMultiListbox.cjs.map +1 -1
  209. package/dist/components/Listbox/useMultiListbox.js +1 -1
  210. package/dist/components/Listbox/useMultiListbox.js.map +1 -1
  211. package/dist/components/Listbox/useTypeahead.cjs.map +1 -1
  212. package/dist/components/Listbox/useTypeahead.js.map +1 -1
  213. package/dist/components/Listbox/util.cjs.map +1 -1
  214. package/dist/components/Listbox/util.js.map +1 -1
  215. package/dist/components/Menu/Menu.cjs.map +1 -1
  216. package/dist/components/Menu/Menu.js.map +1 -1
  217. package/dist/components/Menu/components/Checkbox.cjs +1 -1
  218. package/dist/components/Menu/components/Checkbox.cjs.map +1 -1
  219. package/dist/components/Menu/components/Checkbox.js +1 -1
  220. package/dist/components/Menu/components/Checkbox.js.map +1 -1
  221. package/dist/components/Menu/components/Content.cjs.map +1 -1
  222. package/dist/components/Menu/components/Content.js.map +1 -1
  223. package/dist/components/Menu/components/Item.cjs +1 -1
  224. package/dist/components/Menu/components/Item.cjs.map +1 -1
  225. package/dist/components/Menu/components/Item.d.ts +1 -2
  226. package/dist/components/Menu/components/Item.js +1 -1
  227. package/dist/components/Menu/components/Item.js.map +1 -1
  228. package/dist/components/Menu/components/Link.cjs.map +1 -1
  229. package/dist/components/Menu/components/Link.d.ts +1 -1
  230. package/dist/components/Menu/components/Link.js.map +1 -1
  231. package/dist/components/Menu/components/RadioGroup.cjs.map +1 -1
  232. package/dist/components/Menu/components/RadioGroup.d.ts +1 -1
  233. package/dist/components/Menu/components/RadioGroup.js.map +1 -1
  234. package/dist/components/Menu/components/SubMenu.cjs.map +1 -1
  235. package/dist/components/Menu/components/SubMenu.js.map +1 -1
  236. package/dist/components/Menu/components/Trigger.cjs.map +1 -1
  237. package/dist/components/Menu/components/Trigger.js.map +1 -1
  238. package/dist/components/Navigation2/components/Group.cjs.map +1 -1
  239. package/dist/components/Navigation2/components/Group.js.map +1 -1
  240. package/dist/components/Navigation2/components/Link.cjs +2 -2
  241. package/dist/components/Navigation2/components/Link.cjs.map +1 -1
  242. package/dist/components/Navigation2/components/Link.d.ts +1 -2
  243. package/dist/components/Navigation2/components/Link.js +2 -2
  244. package/dist/components/Navigation2/components/Link.js.map +1 -1
  245. package/dist/components/OverflowGroup/OverflowGroup.cjs +1 -1
  246. package/dist/components/OverflowGroup/OverflowGroup.cjs.map +1 -1
  247. package/dist/components/OverflowGroup/OverflowGroup.d.ts +1 -1
  248. package/dist/components/OverflowGroup/OverflowGroup.js +1 -1
  249. package/dist/components/OverflowGroup/OverflowGroup.js.map +1 -1
  250. package/dist/components/Pagination/PageNumbers.cjs +1 -1
  251. package/dist/components/Pagination/PageNumbers.cjs.map +1 -1
  252. package/dist/components/Pagination/PageNumbers.js +1 -1
  253. package/dist/components/Pagination/PageNumbers.js.map +1 -1
  254. package/dist/components/Pagination/Pagination.cjs +4 -4
  255. package/dist/components/Pagination/Pagination.cjs.map +1 -1
  256. package/dist/components/Pagination/Pagination.js +4 -4
  257. package/dist/components/Pagination/Pagination.js.map +1 -1
  258. package/dist/components/Popover/Popover.cjs.map +1 -1
  259. package/dist/components/Popover/Popover.d.ts +1 -1
  260. package/dist/components/Popover/Popover.js.map +1 -1
  261. package/dist/components/Provider/Localization.cjs.map +1 -1
  262. package/dist/components/Provider/Localization.d.ts +1 -1
  263. package/dist/components/Provider/Localization.js.map +1 -1
  264. package/dist/components/Provider/Provider.cjs +1 -1
  265. package/dist/components/Provider/Provider.cjs.map +1 -1
  266. package/dist/components/Provider/Provider.js +1 -1
  267. package/dist/components/Provider/Provider.js.map +1 -1
  268. package/dist/components/RadioGroup/RadioGroup.cjs +1 -1
  269. package/dist/components/RadioGroup/RadioGroup.cjs.map +1 -1
  270. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  271. package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
  272. package/dist/components/Report/Report.cjs.map +1 -1
  273. package/dist/components/Report/Report.js.map +1 -1
  274. package/dist/components/Report/useReport.cjs.map +1 -1
  275. package/dist/components/Report/useReport.js.map +1 -1
  276. package/dist/components/SearchInput/SearchInput.cjs +1 -1
  277. package/dist/components/SearchInput/SearchInput.cjs.map +1 -1
  278. package/dist/components/SearchInput/SearchInput.d.ts +5 -5
  279. package/dist/components/SearchInput/SearchInput.js +1 -1
  280. package/dist/components/SearchInput/SearchInput.js.map +1 -1
  281. package/dist/components/SearchInput2/SearchInput2.cjs +3 -3
  282. package/dist/components/SearchInput2/SearchInput2.cjs.map +1 -1
  283. package/dist/components/SearchInput2/SearchInput2.js +3 -3
  284. package/dist/components/SearchInput2/SearchInput2.js.map +1 -1
  285. package/dist/components/Select/Select.cjs +4 -4
  286. package/dist/components/Select/Select.cjs.map +1 -1
  287. package/dist/components/Select/Select.d.ts +5 -5
  288. package/dist/components/Select/Select.js +4 -4
  289. package/dist/components/Select/Select.js.map +1 -1
  290. package/dist/components/Select/useSelect.cjs +1 -1
  291. package/dist/components/Select/useSelect.cjs.map +1 -1
  292. package/dist/components/Select/useSelect.js +1 -1
  293. package/dist/components/Select/useSelect.js.map +1 -1
  294. package/dist/components/Select2/Select2.cjs +4 -4
  295. package/dist/components/Select2/Select2.cjs.map +1 -1
  296. package/dist/components/Select2/Select2.d.ts +2 -2
  297. package/dist/components/Select2/Select2.js +4 -4
  298. package/dist/components/Select2/Select2.js.map +1 -1
  299. package/dist/components/Select2/components/Collection.cjs.map +1 -1
  300. package/dist/components/Select2/components/Collection.js.map +1 -1
  301. package/dist/components/Select2/components/Context.cjs.map +1 -1
  302. package/dist/components/Select2/components/Context.js.map +1 -1
  303. package/dist/components/Select2/components/Create.cjs +4 -4
  304. package/dist/components/Select2/components/Create.cjs.map +1 -1
  305. package/dist/components/Select2/components/Create.js +4 -4
  306. package/dist/components/Select2/components/Create.js.map +1 -1
  307. package/dist/components/Select2/components/Edit.cjs +5 -5
  308. package/dist/components/Select2/components/Edit.cjs.map +1 -1
  309. package/dist/components/Select2/components/Edit.d.ts +1 -1
  310. package/dist/components/Select2/components/Edit.js +5 -5
  311. package/dist/components/Select2/components/Edit.js.map +1 -1
  312. package/dist/components/Select2/components/Group.cjs +1 -1
  313. package/dist/components/Select2/components/Group.cjs.map +1 -1
  314. package/dist/components/Select2/components/Group.js +1 -1
  315. package/dist/components/Select2/components/Group.js.map +1 -1
  316. package/dist/components/Select2/components/Option.cjs +4 -4
  317. package/dist/components/Select2/components/Option.cjs.map +1 -1
  318. package/dist/components/Select2/components/Option.d.ts +1 -1
  319. package/dist/components/Select2/components/Option.js +4 -4
  320. package/dist/components/Select2/components/Option.js.map +1 -1
  321. package/dist/components/Select2/components/Search.cjs +1 -1
  322. package/dist/components/Select2/components/Search.cjs.map +1 -1
  323. package/dist/components/Select2/components/Search.js +1 -1
  324. package/dist/components/Select2/components/Search.js.map +1 -1
  325. package/dist/components/Select2/components/Title.cjs.map +1 -1
  326. package/dist/components/Select2/components/Title.js.map +1 -1
  327. package/dist/components/Select2/components/Trigger.cjs +6 -6
  328. package/dist/components/Select2/components/Trigger.cjs.map +1 -1
  329. package/dist/components/Select2/components/Trigger.d.ts +1 -1
  330. package/dist/components/Select2/components/Trigger.js +6 -6
  331. package/dist/components/Select2/components/Trigger.js.map +1 -1
  332. package/dist/components/Select2/types.d.ts +1 -1
  333. package/dist/components/Select2/utilities.cjs.map +1 -1
  334. package/dist/components/Select2/utilities.js.map +1 -1
  335. package/dist/components/Shortcut/Shortcut.cjs.map +1 -1
  336. package/dist/components/Shortcut/Shortcut.js.map +1 -1
  337. package/dist/components/Stack/Stack.cjs +2 -6
  338. package/dist/components/Stack/Stack.cjs.map +1 -1
  339. package/dist/components/Stack/Stack.d.ts +1 -1
  340. package/dist/components/Stack/Stack.js +2 -6
  341. package/dist/components/Stack/Stack.js.map +1 -1
  342. package/dist/components/Switch/Switch.cjs.map +1 -1
  343. package/dist/components/Switch/Switch.js.map +1 -1
  344. package/dist/components/Table3/Table3.cjs +1 -3
  345. package/dist/components/Table3/Table3.cjs.map +1 -1
  346. package/dist/components/Table3/Table3.d.ts +1 -4
  347. package/dist/components/Table3/Table3.js +1 -3
  348. package/dist/components/Table3/Table3.js.map +1 -1
  349. package/dist/components/Table3/components/Columns/Cell/Cell.cjs.map +1 -1
  350. package/dist/components/Table3/components/Columns/Cell/Cell.js.map +1 -1
  351. package/dist/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.cjs +1 -1
  352. package/dist/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.cjs.map +1 -1
  353. package/dist/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +1 -1
  354. package/dist/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -1
  355. package/dist/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.cjs.map +1 -1
  356. package/dist/components/Table3/components/Columns/Cell/Editing/TextareaWithAutosizing.js.map +1 -1
  357. package/dist/components/Table3/components/Columns/Cell/EditingControlCell.cjs +6 -6
  358. package/dist/components/Table3/components/Columns/Cell/EditingControlCell.cjs.map +1 -1
  359. package/dist/components/Table3/components/Columns/Cell/EditingControlCell.js +6 -6
  360. package/dist/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
  361. package/dist/components/Table3/components/Columns/Cell/EditingDisplayCell.cjs.map +1 -1
  362. package/dist/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -1
  363. package/dist/components/Table3/components/Columns/Cell/util.cjs.map +1 -1
  364. package/dist/components/Table3/components/Columns/Cell/util.js.map +1 -1
  365. package/dist/components/Table3/components/Editing/Alert.cjs +3 -3
  366. package/dist/components/Table3/components/Editing/Alert.cjs.map +1 -1
  367. package/dist/components/Table3/components/Editing/Alert.d.ts +1 -1
  368. package/dist/components/Table3/components/Editing/Alert.js +3 -3
  369. package/dist/components/Table3/components/Editing/Alert.js.map +1 -1
  370. package/dist/components/Table3/components/Editing/DiscardChangesConfirmationDialog.cjs +3 -3
  371. package/dist/components/Table3/components/Editing/DiscardChangesConfirmationDialog.cjs.map +1 -1
  372. package/dist/components/Table3/components/Editing/DiscardChangesConfirmationDialog.d.ts +1 -1
  373. package/dist/components/Table3/components/Editing/DiscardChangesConfirmationDialog.js +3 -3
  374. package/dist/components/Table3/components/Editing/DiscardChangesConfirmationDialog.js.map +1 -1
  375. package/dist/components/Table3/components/Row/Editing/CreateNewRow.cjs +2 -2
  376. package/dist/components/Table3/components/Row/Editing/CreateNewRow.cjs.map +1 -1
  377. package/dist/components/Table3/components/Row/Editing/CreateNewRow.js +2 -2
  378. package/dist/components/Table3/components/Row/Editing/CreateNewRow.js.map +1 -1
  379. package/dist/components/Table3/components/Row/Editing/SaveStatus.cjs +2 -2
  380. package/dist/components/Table3/components/Row/Editing/SaveStatus.cjs.map +1 -1
  381. package/dist/components/Table3/components/Row/Editing/SaveStatus.js +2 -2
  382. package/dist/components/Table3/components/Row/Editing/SaveStatus.js.map +1 -1
  383. package/dist/components/Table3/components/Row/Editing/TemporaryRow.cjs.map +1 -1
  384. package/dist/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
  385. package/dist/components/Table3/components/Row/Row.cjs.map +1 -1
  386. package/dist/components/Table3/components/Row/Row.js.map +1 -1
  387. package/dist/components/Table3/components/Toolbar/Editing/Editing.cjs +2 -2
  388. package/dist/components/Table3/components/Toolbar/Editing/Editing.cjs.map +1 -1
  389. package/dist/components/Table3/components/Toolbar/Editing/Editing.js +2 -2
  390. package/dist/components/Table3/components/Toolbar/Editing/Editing.js.map +1 -1
  391. package/dist/components/Table3/features/useEditingState.cjs +1 -1
  392. package/dist/components/Table3/features/useEditingState.cjs.map +1 -1
  393. package/dist/components/Table3/features/useEditingState.js +1 -1
  394. package/dist/components/Table3/features/useEditingState.js.map +1 -1
  395. package/dist/components/Table3/features/useTableEditing.cjs +1 -1
  396. package/dist/components/Table3/features/useTableEditing.cjs.map +1 -1
  397. package/dist/components/Table3/features/useTableEditing.js +1 -1
  398. package/dist/components/Table3/features/useTableEditing.js.map +1 -1
  399. package/dist/components/Table3/listeners/useTableEditingListener.cjs +1 -1
  400. package/dist/components/Table3/listeners/useTableEditingListener.cjs.map +1 -1
  401. package/dist/components/Table3/listeners/useTableEditingListener.js +1 -1
  402. package/dist/components/Table3/listeners/useTableEditingListener.js.map +1 -1
  403. package/dist/components/Table3/useTable3.cjs +2 -2
  404. package/dist/components/Table3/useTable3.cjs.map +1 -1
  405. package/dist/components/Table3/useTable3.js +2 -2
  406. package/dist/components/Table3/useTable3.js.map +1 -1
  407. package/dist/components/Table3/util/editing.cjs.map +1 -1
  408. package/dist/components/Table3/util/editing.d.ts +2 -2
  409. package/dist/components/Table3/util/editing.js.map +1 -1
  410. package/dist/components/Tabs/Context.cjs.map +1 -1
  411. package/dist/components/Tabs/Context.js.map +1 -1
  412. package/dist/components/Tabs/Tabs.cjs.map +1 -1
  413. package/dist/components/Tabs/Tabs.js.map +1 -1
  414. package/dist/components/Tabs/components/TabList.cjs +2 -2
  415. package/dist/components/Tabs/components/TabList.cjs.map +1 -1
  416. package/dist/components/Tabs/components/TabList.js +2 -2
  417. package/dist/components/Tabs/components/TabList.js.map +1 -1
  418. package/dist/components/Tabs/components/Trigger.cjs +3 -3
  419. package/dist/components/Tabs/components/Trigger.cjs.map +1 -1
  420. package/dist/components/Tabs/components/Trigger.js +3 -3
  421. package/dist/components/Tabs/components/Trigger.js.map +1 -1
  422. package/dist/components/Tag/Tag.cjs.map +1 -1
  423. package/dist/components/Tag/Tag.d.ts +1 -1
  424. package/dist/components/Tag/Tag.js.map +1 -1
  425. package/dist/components/Textarea/Textarea.cjs +1 -1
  426. package/dist/components/Textarea/Textarea.cjs.map +1 -1
  427. package/dist/components/Textarea/Textarea.js +1 -1
  428. package/dist/components/Textarea/Textarea.js.map +1 -1
  429. package/dist/components/Toast/Toast.cjs +2 -2
  430. package/dist/components/Toast/Toast.cjs.map +1 -1
  431. package/dist/components/Toast/Toast.js +2 -2
  432. package/dist/components/Toast/Toast.js.map +1 -1
  433. package/dist/components/Toast/util.cjs +1 -1
  434. package/dist/components/Toast/util.cjs.map +1 -1
  435. package/dist/components/Toast/util.js +1 -1
  436. package/dist/components/Toast/util.js.map +1 -1
  437. package/dist/components/Tour/Tour.cjs +2 -2
  438. package/dist/components/Tour/Tour.cjs.map +1 -1
  439. package/dist/components/Tour/Tour.js +2 -2
  440. package/dist/components/Tour/Tour.js.map +1 -1
  441. package/dist/components/Truncate/Truncate.cjs.map +1 -1
  442. package/dist/components/Truncate/Truncate.js.map +1 -1
  443. package/dist/components/Typography/Heading.cjs.map +1 -1
  444. package/dist/components/Typography/Heading.d.ts +1 -1
  445. package/dist/components/Typography/Heading.js.map +1 -1
  446. package/dist/components/Typography/Text.cjs.map +1 -1
  447. package/dist/components/Typography/Text.d.ts +1 -1
  448. package/dist/components/Typography/Text.js.map +1 -1
  449. package/dist/components/index.d.ts +0 -1
  450. package/dist/hooks/useBoundaryOverflowDetection.cjs.map +1 -1
  451. package/dist/hooks/useBoundaryOverflowDetection.js.map +1 -1
  452. package/dist/hooks/useBoundingClientRectListener.cjs.map +1 -1
  453. package/dist/hooks/useBoundingClientRectListener.js.map +1 -1
  454. package/dist/hooks/useGlobalKeyDown.cjs.map +1 -1
  455. package/dist/hooks/useGlobalKeyDown.js.map +1 -1
  456. package/dist/hooks/useTacoSettings.cjs.map +1 -1
  457. package/dist/hooks/useTacoSettings.d.ts +1 -1
  458. package/dist/hooks/useTacoSettings.js.map +1 -1
  459. package/dist/index.cjs +0 -2
  460. package/dist/index.cjs.map +1 -1
  461. package/dist/index.js +0 -2
  462. package/dist/index.js.map +1 -1
  463. package/dist/primitives/BubbleSelect.cjs.map +1 -1
  464. package/dist/primitives/BubbleSelect.js.map +1 -1
  465. package/dist/primitives/Button.cjs.map +1 -1
  466. package/dist/primitives/Button.js.map +1 -1
  467. package/dist/primitives/Collection/components/Root.cjs.map +1 -1
  468. package/dist/primitives/Collection/components/Root.js.map +1 -1
  469. package/dist/primitives/Listbox2/components/Option.cjs.map +1 -1
  470. package/dist/primitives/Listbox2/components/Option.js.map +1 -1
  471. package/dist/primitives/Listbox2/components/Root.cjs.map +1 -1
  472. package/dist/primitives/Listbox2/components/Root.js.map +1 -1
  473. package/dist/primitives/Listbox2/components/Title.cjs.map +1 -1
  474. package/dist/primitives/Listbox2/components/Title.js.map +1 -1
  475. package/dist/primitives/Table/Core/components/Body/Body.cjs.map +1 -1
  476. package/dist/primitives/Table/Core/components/Body/Body.js.map +1 -1
  477. package/dist/primitives/Table/Core/components/Body/EmptyStateBody.cjs.map +1 -1
  478. package/dist/primitives/Table/Core/components/Body/EmptyStateBody.js.map +1 -1
  479. package/dist/primitives/Table/Core/components/Body/util.cjs.map +1 -1
  480. package/dist/primitives/Table/Core/components/Body/util.js.map +1 -1
  481. package/dist/primitives/Table/Core/components/Columns/Cell/util.cjs +1 -1
  482. package/dist/primitives/Table/Core/components/Columns/Cell/util.cjs.map +1 -1
  483. package/dist/primitives/Table/Core/components/Columns/Cell/util.js +1 -1
  484. package/dist/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -1
  485. package/dist/primitives/Table/Core/components/Columns/Internal/Actions.cjs +3 -3
  486. package/dist/primitives/Table/Core/components/Columns/Internal/Actions.cjs.map +1 -1
  487. package/dist/primitives/Table/Core/components/Columns/Internal/Actions.js +3 -3
  488. package/dist/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -1
  489. package/dist/primitives/Table/Core/components/Columns/Internal/Drag.cjs +2 -2
  490. package/dist/primitives/Table/Core/components/Columns/Internal/Drag.cjs.map +1 -1
  491. package/dist/primitives/Table/Core/components/Columns/Internal/Drag.js +2 -2
  492. package/dist/primitives/Table/Core/components/Columns/Internal/Drag.js.map +1 -1
  493. package/dist/primitives/Table/Core/components/Columns/Internal/Expansion.cjs +3 -3
  494. package/dist/primitives/Table/Core/components/Columns/Internal/Expansion.cjs.map +1 -1
  495. package/dist/primitives/Table/Core/components/Columns/Internal/Expansion.js +3 -3
  496. package/dist/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -1
  497. package/dist/primitives/Table/Core/components/Columns/Internal/Selection.cjs +4 -4
  498. package/dist/primitives/Table/Core/components/Columns/Internal/Selection.cjs.map +1 -1
  499. package/dist/primitives/Table/Core/components/Columns/Internal/Selection.js +4 -4
  500. package/dist/primitives/Table/Core/components/Columns/Internal/Selection.js.map +1 -1
  501. package/dist/primitives/Table/Core/components/Footer/Summary.cjs.map +1 -1
  502. package/dist/primitives/Table/Core/components/Footer/Summary.js.map +1 -1
  503. package/dist/primitives/Table/Core/components/Header/Header.cjs +1 -1
  504. package/dist/primitives/Table/Core/components/Header/Header.cjs.map +1 -1
  505. package/dist/primitives/Table/Core/components/Header/Header.js +1 -1
  506. package/dist/primitives/Table/Core/components/Header/Header.js.map +1 -1
  507. package/dist/primitives/Table/Core/components/Header/components/Goto.cjs +1 -1
  508. package/dist/primitives/Table/Core/components/Header/components/Goto.cjs.map +1 -1
  509. package/dist/primitives/Table/Core/components/Header/components/Goto.d.ts +1 -1
  510. package/dist/primitives/Table/Core/components/Header/components/Goto.js +1 -1
  511. package/dist/primitives/Table/Core/components/Header/components/Goto.js.map +1 -1
  512. package/dist/primitives/Table/Core/components/Header/components/Menu.cjs +4 -6
  513. package/dist/primitives/Table/Core/components/Header/components/Menu.cjs.map +1 -1
  514. package/dist/primitives/Table/Core/components/Header/components/Menu.js +4 -6
  515. package/dist/primitives/Table/Core/components/Header/components/Menu.js.map +1 -1
  516. package/dist/primitives/Table/Core/components/Header/components/Resizer.cjs.map +1 -1
  517. package/dist/primitives/Table/Core/components/Header/components/Resizer.js.map +1 -1
  518. package/dist/primitives/Table/Core/components/Header/components/SortIndicator.cjs.map +1 -1
  519. package/dist/primitives/Table/Core/components/Header/components/SortIndicator.js.map +1 -1
  520. package/dist/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.cjs +3 -1
  521. package/dist/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.cjs.map +1 -1
  522. package/dist/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +3 -1
  523. package/dist/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -1
  524. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/Filters.cjs +5 -5
  525. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/Filters.cjs.map +1 -1
  526. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js +5 -5
  527. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/Filters.js.map +1 -1
  528. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.cjs +4 -4
  529. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.cjs.map +1 -1
  530. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js +4 -4
  531. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -1
  532. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.cjs +2 -2
  533. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.cjs.map +1 -1
  534. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js +2 -2
  535. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -1
  536. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.cjs +3 -3
  537. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.cjs.map +1 -1
  538. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.d.ts +1 -1
  539. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +3 -3
  540. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -1
  541. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.cjs +2 -2
  542. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.cjs.map +1 -1
  543. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.d.ts +1 -1
  544. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js +2 -2
  545. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -1
  546. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.cjs +5 -5
  547. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.cjs.map +1 -1
  548. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js +5 -5
  549. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -1
  550. package/dist/primitives/Table/Core/components/Toolbar/components/Print/Print.cjs +4 -4
  551. package/dist/primitives/Table/Core/components/Toolbar/components/Print/Print.cjs.map +1 -1
  552. package/dist/primitives/Table/Core/components/Toolbar/components/Print/Print.js +4 -4
  553. package/dist/primitives/Table/Core/components/Toolbar/components/Print/Print.js.map +1 -1
  554. package/dist/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.cjs +6 -6
  555. package/dist/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.cjs.map +1 -1
  556. package/dist/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.d.ts +1 -2
  557. package/dist/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js +6 -6
  558. package/dist/primitives/Table/Core/components/Toolbar/components/Print/PrintDialog.js.map +1 -1
  559. package/dist/primitives/Table/Core/components/Toolbar/components/Search/Search.cjs +2 -2
  560. package/dist/primitives/Table/Core/components/Toolbar/components/Search/Search.cjs.map +1 -1
  561. package/dist/primitives/Table/Core/components/Toolbar/components/Search/Search.js +2 -2
  562. package/dist/primitives/Table/Core/components/Toolbar/components/Search/Search.js.map +1 -1
  563. package/dist/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.cjs +7 -7
  564. package/dist/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.cjs.map +1 -1
  565. package/dist/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.d.ts +1 -1
  566. package/dist/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js +7 -7
  567. package/dist/primitives/Table/Core/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -1
  568. package/dist/primitives/Table/Core/components/Toolbar/components/Settings/Settings.cjs +3 -3
  569. package/dist/primitives/Table/Core/components/Toolbar/components/Settings/Settings.cjs.map +1 -1
  570. package/dist/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js +3 -3
  571. package/dist/primitives/Table/Core/components/Toolbar/components/Settings/Settings.js.map +1 -1
  572. package/dist/primitives/Table/Core/features/useTableGlobalShortcuts.cjs.map +1 -1
  573. package/dist/primitives/Table/Core/features/useTableGlobalShortcuts.js.map +1 -1
  574. package/dist/primitives/Table/Core/listeners/useTableRowActiveListener.cjs.map +1 -1
  575. package/dist/primitives/Table/Core/listeners/useTableRowActiveListener.js.map +1 -1
  576. package/dist/primitives/Table/Core/useTable.cjs.map +1 -1
  577. package/dist/primitives/Table/Core/useTable.js.map +1 -1
  578. package/dist/primitives/Table/types.cjs.map +1 -1
  579. package/dist/primitives/Table/types.d.ts +1 -1
  580. package/dist/primitives/Table/types.js.map +1 -1
  581. package/dist/primitives/Table/useTableManager/features/useTableFontSize.cjs.map +1 -1
  582. package/dist/primitives/Table/useTableManager/features/useTableFontSize.js.map +1 -1
  583. package/dist/primitives/Table/useTableManager/features/useTablePrinting.cjs.map +1 -1
  584. package/dist/primitives/Table/useTableManager/features/useTablePrinting.js.map +1 -1
  585. package/dist/primitives/Table/useTableManager/features/useTableRowActive.cjs.map +1 -1
  586. package/dist/primitives/Table/useTableManager/features/useTableRowActive.js.map +1 -1
  587. package/dist/primitives/Table/useTableManager/features/useTableSettings.cjs.map +1 -1
  588. package/dist/primitives/Table/useTableManager/features/useTableSettings.js.map +1 -1
  589. package/dist/primitives/Table/useTableManager/listeners/useTableDataListener.cjs.map +1 -1
  590. package/dist/primitives/Table/useTableManager/listeners/useTableDataListener.js.map +1 -1
  591. package/dist/primitives/Table/useTableManager/listeners/useTableFilterListener.cjs.map +1 -1
  592. package/dist/primitives/Table/useTableManager/listeners/useTableFilterListener.js.map +1 -1
  593. package/dist/primitives/Table/useTableManager/listeners/useTableFontSizeListener.cjs.map +1 -1
  594. package/dist/primitives/Table/useTableManager/listeners/useTableFontSizeListener.js.map +1 -1
  595. package/dist/primitives/Table/useTableManager/listeners/useTableRowHeightListener.cjs.map +1 -1
  596. package/dist/primitives/Table/useTableManager/listeners/useTableRowHeightListener.js.map +1 -1
  597. package/dist/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.cjs.map +1 -1
  598. package/dist/primitives/Table/useTableManager/listeners/useTableRowSelectionListener.js.map +1 -1
  599. package/dist/primitives/Table/useTableManager/listeners/useTableSearchListener.cjs +1 -1
  600. package/dist/primitives/Table/useTableManager/listeners/useTableSearchListener.cjs.map +1 -1
  601. package/dist/primitives/Table/useTableManager/listeners/useTableSearchListener.js +1 -1
  602. package/dist/primitives/Table/useTableManager/listeners/useTableSearchListener.js.map +1 -1
  603. package/dist/primitives/Table/useTableManager/listeners/useTableShortcutsListener.cjs.map +1 -1
  604. package/dist/primitives/Table/useTableManager/listeners/useTableShortcutsListener.js.map +1 -1
  605. package/dist/primitives/Table/useTableManager/listeners/useTableSortingListener.cjs.map +1 -1
  606. package/dist/primitives/Table/useTableManager/listeners/useTableSortingListener.js.map +1 -1
  607. package/dist/primitives/Table/useTableManager/useTableManager.cjs +1 -1
  608. package/dist/primitives/Table/useTableManager/useTableManager.cjs.map +1 -1
  609. package/dist/primitives/Table/useTableManager/useTableManager.js +1 -1
  610. package/dist/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  611. package/dist/primitives/Table/useTableManager/util/columns.cjs.map +1 -1
  612. package/dist/primitives/Table/useTableManager/util/columns.d.ts +1 -1
  613. package/dist/primitives/Table/useTableManager/util/columns.js.map +1 -1
  614. package/dist/primitives/Table/useTableManager/util/dataTypes.cjs.map +1 -1
  615. package/dist/primitives/Table/useTableManager/util/dataTypes.d.ts +1 -1
  616. package/dist/primitives/Table/useTableManager/util/dataTypes.js.map +1 -1
  617. package/dist/primitives/Table/useTableManager/util/filtering.cjs.map +1 -1
  618. package/dist/primitives/Table/useTableManager/util/filtering.d.ts +1 -1
  619. package/dist/primitives/Table/useTableManager/util/filtering.js.map +1 -1
  620. package/dist/primitives/Table/useTableManager/util/search.cjs.map +1 -1
  621. package/dist/primitives/Table/useTableManager/util/search.d.ts +1 -1
  622. package/dist/primitives/Table/useTableManager/util/search.js.map +1 -1
  623. package/dist/primitives/Table/useTableManager/util/setup.cjs +11 -1
  624. package/dist/primitives/Table/useTableManager/util/setup.cjs.map +1 -1
  625. package/dist/primitives/Table/useTableManager/util/setup.d.ts +1 -1
  626. package/dist/primitives/Table/useTableManager/util/setup.js +12 -2
  627. package/dist/primitives/Table/useTableManager/util/setup.js.map +1 -1
  628. package/dist/utils/dom.cjs.map +1 -1
  629. package/dist/utils/dom.js.map +1 -1
  630. package/dist/utils/flattenChildren.cjs +12 -0
  631. package/dist/utils/flattenChildren.cjs.map +1 -0
  632. package/dist/utils/flattenChildren.d.ts +6 -0
  633. package/dist/utils/flattenChildren.js +12 -0
  634. package/dist/utils/flattenChildren.js.map +1 -0
  635. package/dist/utils/hooks/useListKeyboardNavigation.cjs.map +1 -1
  636. package/dist/utils/hooks/useListKeyboardNavigation.js.map +1 -1
  637. package/dist/utils/storyutils.d.ts +1 -1
  638. package/dist/utils/tailwind.cjs.map +1 -1
  639. package/dist/utils/tailwind.js.map +1 -1
  640. package/package.json +6 -5
  641. package/dist/components/Treeview/Treeview.cjs +0 -52
  642. package/dist/components/Treeview/Treeview.cjs.map +0 -1
  643. package/dist/components/Treeview/Treeview.d.ts +0 -25
  644. package/dist/components/Treeview/Treeview.js +0 -52
  645. package/dist/components/Treeview/Treeview.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Input.cjs","sources":["../../../src/components/Input/Input.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport { useBoundingClientRectListener } from '../../hooks/useBoundingClientRectListener';\nimport { useMergedRef } from '../../hooks/useMergedRef';\nimport { isPressingMetaKey } from '../../utils/keyboard';\nimport type { IconName } from '../Icon/Icon';\nimport { Icon } from '../Icon/Icon';\n\nimport { getButtonStateClasses, getInputClasses } from './util';\n\nexport type InputWithoutDeprecatedFeaturesProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> & {\n /** Draws attention to the input by changing its style and making it visually prominent */\n highlighted?: boolean;\n /** Whether the input is in an invalid state */\n invalid?: boolean;\n postfix?: string | React.JSX.Element;\n prefix?: string | React.JSX.Element;\n};\n\nconst validSetSelectionRangeTypes = new Set(['text', 'search', 'url', 'tel', 'password']);\n\nconst InputWithoutDeprecatedFeatures = React.forwardRef(function InputWithoutDeprecatedFeatures(\n props: InputWithoutDeprecatedFeaturesProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const { highlighted, invalid, onKeyDown, postfix, prefix, type = 'text', ...attributes } = props;\n const internalRef = useMergedRef<HTMLInputElement>(ref);\n\n // input[type=number] does not support setSelectionRange by default, this adds support\n React.useLayoutEffect(() => {\n if (internalRef.current && type === 'number') {\n (function (fn) {\n internalRef.current.setSelectionRange = function (...args) {\n if (this.type === 'number') {\n this.type = 'text';\n fn.apply(this, args);\n this.type = 'number';\n } else {\n fn.apply(this, args);\n }\n };\n })(internalRef.current.setSelectionRange);\n }\n }, []);\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n // prevent any external keyboard shortcuts from executing while typing single characters in input\n if (event.key.length === 1 && !isPressingMetaKey(event)) {\n event.stopPropagation();\n }\n\n // home and end keys only navigate to the start/end of input value if the input container does not scroll\n // if it has scroll height then the browser reverts to native scrolling behaviour only\n // so we manually override it to ensure _our_ desired behaviour remains intact\n // only the 'text', 'search', 'url', 'tel', 'password' input types support setSelectionRange\n if (validSetSelectionRangeTypes.has(type) && !event.shiftKey && (event.key === 'Home' || event.key === 'End')) {\n event.preventDefault();\n const position = event.key === 'End' ? event.currentTarget.value.length : 0;\n event.currentTarget.setSelectionRange(position, position);\n\n // Necessary for ensuring the cursor is scrolled into view when using Home/End keys on Windows\n if (internalRef.current) {\n const scrollPosition = event.key === 'End' ? internalRef.current.scrollWidth : 0;\n internalRef.current.scrollLeft = scrollPosition;\n }\n }\n\n if (typeof onKeyDown === 'function') {\n onKeyDown(event);\n }\n };\n\n const prefixRef = React.useRef<HTMLDivElement>(null);\n const prefixRect = useBoundingClientRectListener(prefixRef);\n const postfixRef = React.useRef<HTMLDivElement>(null);\n const postfixRect = useBoundingClientRectListener(postfixRef, [postfix]);\n\n const className = cn(\n getInputClasses(props),\n {\n 'pl-8': !!prefix,\n 'pr-8': !!postfix,\n },\n attributes.className\n );\n\n const typeAttributes: Partial<React.InputHTMLAttributes<HTMLInputElement>> = {\n type,\n };\n\n if (type === 'number') {\n typeAttributes.onWheelCapture = (event: React.WheelEvent<HTMLInputElement>) => {\n // blur is the only way to prevent scroll, so restore focus if it had it\n if (document.activeElement === event.currentTarget) {\n requestAnimationFrame(() => {\n (event.target as HTMLInputElement).focus();\n });\n }\n // blur the field on scroll - only way to prevent scroll\n event.currentTarget.blur();\n };\n }\n\n return (\n <div className=\"relative inline-flex h-fit w-full\" data-taco=\"input-container\" style={{ opacity: 0.999 }}>\n <input\n {...attributes}\n {...typeAttributes}\n aria-invalid={invalid}\n className={className}\n data-highlighted={highlighted}\n data-taco=\"input\"\n onKeyDown={handleKeyDown}\n ref={internalRef}\n style={{\n paddingLeft: prefixRect ? `${prefixRect.width - 1}px` : undefined,\n paddingRight: postfixRect ? `${postfixRect.width - 1}px` : undefined,\n }}\n />\n {prefix ? <Affix type=\"prefix\" children={prefix} disabled={attributes.disabled} ref={prefixRef} /> : null}\n {postfix ? <Affix type=\"postfix\" children={postfix} disabled={attributes.disabled} ref={postfixRef} /> : null}\n </div>\n );\n});\n\ntype AffixProps = {\n children: string | React.JSX.Element;\n disabled?: boolean;\n type: 'prefix' | 'postfix';\n};\nconst Affix = React.memo(\n React.forwardRef(function Affix(props: AffixProps, ref: React.Ref<HTMLDivElement>) {\n const { children, disabled, type } = props;\n\n return (\n <div\n className={cn(\n 'group absolute top-0 flex h-full items-center justify-center px-2',\n // icon\n '[&_[data-taco=\"icon\"]]:!h-5 [&_[data-taco=\"icon\"]]:!w-5',\n {\n 'text-gray-300': disabled,\n 'text-gray-700': !disabled,\n 'left-0 [&>button]:!-ml-2': type === 'prefix',\n 'right-0 [&>button]:!-mr-2': type === 'postfix',\n }\n )}\n data-affix-type={type}\n ref={ref}>\n {children}\n </div>\n );\n })\n);\n\nexport type InputProps = InputWithoutDeprecatedFeaturesProps & {\n /** Shows a button within the input field */\n button?: React.ReactElement<{ className?: string; disabled?: boolean }>;\n /** Shows an icon within the input field */\n icon?: IconName | React.JSX.Element;\n};\n\nexport const Input = React.forwardRef(function LegacyInput(props: InputProps, ref: React.Ref<HTMLInputElement>) {\n const { button, icon, ...attributes } = props;\n\n let postfix;\n\n if (button) {\n const disabled = button.props.disabled || attributes.disabled;\n const buttonClassName = cn(\n 'flex h-full items-center justify-center rounded-l-none rounded-r focus:z-10 focus:rounded focus:outline-none',\n getButtonStateClasses(attributes.invalid, disabled),\n button.props.className\n );\n postfix = React.cloneElement(button, {\n className: buttonClassName,\n disabled,\n });\n } else if (icon) {\n postfix = typeof icon === 'string' ? <Icon name={icon} /> : icon;\n }\n\n return <InputWithoutDeprecatedFeatures {...attributes} postfix={attributes.postfix ?? postfix} ref={ref} />;\n});\n"],"names":["React","InputWithoutDeprecatedFeatures","useMergedRef","isPressingMetaKey","useBoundingClientRectListener","getInputClasses","Affix","getButtonStateClasses","Icon"],"mappings":";;;;;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K,WAAA,CAAY,IAAK,IAC7G;AAER,CAAC;AAOD,MAAM,QAAQA,iBAAM;AAAA,EAChBA,iBAAM,WAAW,SAASM,OAAM,OAAmB,KAAgC;AAC/E,UAAM,EAAE,UAAU,UAAU,KAAA,IAAS;AAErC,WACIN,iCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,WAAW;AAAA,UACP;AAAA;AAAA,UAEA;AAAA,UACA;AAAA,YACI,iBAAiB;AAAA,YACjB,iBAAiB,CAAC;AAAA,YAClB,4BAA4B,SAAS;AAAA,YACrC,6BAA6B,SAAS;AAAA,UAAA;AAAA,QAC1C;AAAA,QAEJ,mBAAiB;AAAA,QACjB;AAAA,MAAA;AAAA,MACC;AAAA,IAAA;AAAA,EAGb,CAAC;AACL;AASO,MAAM,QAAQA,iBAAM,WAAW,SAAS,YAAY,OAAmB,KAAkC;AAC5G,QAAM,EAAE,QAAQ,MAAM,GAAG,eAAe;AAExC,MAAI;AAEJ,MAAI,QAAQ;AACR,UAAM,WAAW,OAAO,MAAM,YAAY,WAAW;AACrD,UAAM,kBAAkB;AAAA,MACpB;AAAA,MACAO,2BAAsB,WAAW,SAAS,QAAQ;AAAA,MAClD,OAAO,MAAM;AAAA,IAAA;AAEjB,cAAUP,iBAAM,aAAa,QAAQ;AAAA,MACjC,WAAW;AAAA,MACX;AAAA,IAAA,CACH;AAAA,EACL,WAAW,MAAM;AACb,cAAU,OAAO,SAAS,0DAAYQ,KAAAA,MAAA,EAAK,MAAM,MAAM,IAAK;AAAA,EAChE;AAEA,SAAOR,iCAAA,cAAC,kCAAgC,GAAG,YAAY,SAAS,WAAW,WAAW,SAAS,IAAA,CAAU;AAC7G,CAAC;;"}
1
+ {"version":3,"file":"Input.cjs","sources":["../../../src/components/Input/Input.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type { IconName } from '@/components';\nimport { Icon } from '@/components';\nimport { useBoundingClientRectListener } from '@/hooks/useBoundingClientRectListener';\nimport { useMergedRef } from '@/hooks/useMergedRef';\nimport { isPressingMetaKey } from '@/utils/keyboard';\n\nimport { getButtonStateClasses, getInputClasses } from './util';\n\nexport type InputWithoutDeprecatedFeaturesProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> & {\n /** Draws attention to the input by changing its style and making it visually prominent */\n highlighted?: boolean;\n /** Whether the input is in an invalid state */\n invalid?: boolean;\n postfix?: string | React.JSX.Element;\n prefix?: string | React.JSX.Element;\n};\n\nconst validSetSelectionRangeTypes = new Set(['text', 'search', 'url', 'tel', 'password']);\n\nconst InputWithoutDeprecatedFeatures = React.forwardRef(function InputWithoutDeprecatedFeatures(\n props: InputWithoutDeprecatedFeaturesProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const { highlighted, invalid, onKeyDown, postfix, prefix, type = 'text', ...attributes } = props;\n const internalRef = useMergedRef<HTMLInputElement>(ref);\n\n // input[type=number] does not support setSelectionRange by default, this adds support\n React.useLayoutEffect(() => {\n if (internalRef.current && type === 'number') {\n (function (fn) {\n internalRef.current.setSelectionRange = function (...args) {\n if (this.type === 'number') {\n this.type = 'text';\n fn.apply(this, args);\n this.type = 'number';\n } else {\n fn.apply(this, args);\n }\n };\n })(internalRef.current.setSelectionRange);\n }\n }, []);\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n // prevent any external keyboard shortcuts from executing while typing single characters in input\n if (event.key.length === 1 && !isPressingMetaKey(event)) {\n event.stopPropagation();\n }\n\n // home and end keys only navigate to the start/end of input value if the input container does not scroll\n // if it has scroll height then the browser reverts to native scrolling behaviour only\n // so we manually override it to ensure _our_ desired behaviour remains intact\n // only the 'text', 'search', 'url', 'tel', 'password' input types support setSelectionRange\n if (validSetSelectionRangeTypes.has(type) && !event.shiftKey && (event.key === 'Home' || event.key === 'End')) {\n event.preventDefault();\n const position = event.key === 'End' ? event.currentTarget.value.length : 0;\n event.currentTarget.setSelectionRange(position, position);\n\n // Necessary for ensuring the cursor is scrolled into view when using Home/End keys on Windows\n if (internalRef.current) {\n const scrollPosition = event.key === 'End' ? internalRef.current.scrollWidth : 0;\n internalRef.current.scrollLeft = scrollPosition;\n }\n }\n\n if (typeof onKeyDown === 'function') {\n onKeyDown(event);\n }\n };\n\n const prefixRef = React.useRef<HTMLDivElement>(null);\n const prefixRect = useBoundingClientRectListener(prefixRef);\n const postfixRef = React.useRef<HTMLDivElement>(null);\n const postfixRect = useBoundingClientRectListener(postfixRef, [postfix]);\n\n const className = cn(\n getInputClasses(props),\n {\n 'pl-8': !!prefix,\n 'pr-8': !!postfix,\n },\n attributes.className\n );\n\n const typeAttributes: Partial<React.InputHTMLAttributes<HTMLInputElement>> = {\n type,\n };\n\n if (type === 'number') {\n typeAttributes.onWheelCapture = (event: React.WheelEvent<HTMLInputElement>) => {\n // blur is the only way to prevent scroll, so restore focus if it had it\n if (document.activeElement === event.currentTarget) {\n requestAnimationFrame(() => {\n (event.target as HTMLInputElement).focus();\n });\n }\n // blur the field on scroll - only way to prevent scroll\n event.currentTarget.blur();\n };\n }\n\n return (\n <div className=\"relative inline-flex h-fit w-full\" data-taco=\"input-container\" style={{ opacity: 0.999 }}>\n <input\n {...attributes}\n {...typeAttributes}\n aria-invalid={invalid}\n className={className}\n data-highlighted={highlighted}\n data-taco=\"input\"\n onKeyDown={handleKeyDown}\n ref={internalRef}\n style={{\n paddingLeft: prefixRect ? `${prefixRect.width - 1}px` : undefined,\n paddingRight: postfixRect ? `${postfixRect.width - 1}px` : undefined,\n }}\n />\n {prefix ? <Affix type=\"prefix\" children={prefix} disabled={attributes.disabled} ref={prefixRef} /> : null}\n {postfix ? <Affix type=\"postfix\" children={postfix} disabled={attributes.disabled} ref={postfixRef} /> : null}\n </div>\n );\n});\n\ntype AffixProps = {\n children: string | React.JSX.Element;\n disabled?: boolean;\n type: 'prefix' | 'postfix';\n};\nconst Affix = React.memo(\n React.forwardRef(function Affix(props: AffixProps, ref: React.Ref<HTMLDivElement>) {\n const { children, disabled, type } = props;\n\n return (\n <div\n className={cn(\n 'group absolute top-0 flex h-full items-center justify-center px-2',\n // icon\n '[&_[data-taco=\"icon\"]]:!h-5 [&_[data-taco=\"icon\"]]:!w-5',\n {\n 'text-gray-300': disabled,\n 'text-gray-700': !disabled,\n 'left-0 [&>button]:!-ml-2': type === 'prefix',\n 'right-0 [&>button]:!-mr-2': type === 'postfix',\n }\n )}\n data-affix-type={type}\n ref={ref}>\n {children}\n </div>\n );\n })\n);\n\nexport type InputProps = InputWithoutDeprecatedFeaturesProps & {\n /** Shows a button within the input field */\n button?: React.ReactElement<{ className?: string; disabled?: boolean }>;\n /** Shows an icon within the input field */\n icon?: IconName | React.JSX.Element;\n};\n\nexport const Input = React.forwardRef(function LegacyInput(props: InputProps, ref: React.Ref<HTMLInputElement>) {\n const { button, icon, ...attributes } = props;\n\n let postfix;\n\n if (button) {\n const disabled = button.props.disabled || attributes.disabled;\n const buttonClassName = cn(\n 'flex h-full items-center justify-center rounded-l-none rounded-r focus:z-10 focus:rounded focus:outline-none',\n getButtonStateClasses(attributes.invalid, disabled),\n button.props.className\n );\n postfix = React.cloneElement(button, {\n className: buttonClassName,\n disabled,\n });\n } else if (icon) {\n postfix = typeof icon === 'string' ? <Icon name={icon} /> : icon;\n }\n\n return <InputWithoutDeprecatedFeatures {...attributes} postfix={attributes.postfix ?? postfix} ref={ref} />;\n});\n"],"names":["React","InputWithoutDeprecatedFeatures","useMergedRef","isPressingMetaKey","useBoundingClientRectListener","getInputClasses","Affix","getButtonStateClasses","Icon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,kDAAkC,IAAI,CAAC,QAAQ,UAAU,OAAO,OAAO,UAAU,CAAC;AAExF,MAAM,iCAAiCA,iBAAM,WAAW,SAASC,gCAC7D,OACA,KACF;AACE,QAAM,EAAE,aAAa,SAAS,WAAW,SAAS,QAAQ,OAAO,QAAQ,GAAG,WAAA,IAAe;AAC3F,QAAM,cAAcC,aAAAA,aAA+B,GAAG;AAGtDF,mBAAM,g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iBAAiB,CAAC;AAAA,YAClB,4BAA4B,SAAS;AAAA,YACrC,6BAA6B,SAAS;AAAA,UAAA;AAAA,QAC1C;AAAA,QAEJ,mBAAiB;AAAA,QACjB;AAAA,MAAA;AAAA,MACC;AAAA,IAAA;AAAA,EAGb,CAAC;AACL;AASO,MAAM,QAAQA,iBAAM,WAAW,SAAS,YAAY,OAAmB,KAAkC;AAC5G,QAAM,EAAE,QAAQ,MAAM,GAAG,eAAe;AAExC,MAAI;AAEJ,MAAI,QAAQ;AACR,UAAM,WAAW,OAAO,MAAM,YAAY,WAAW;AACrD,UAAM,kBAAkB;AAAA,MACpB;AAAA,MACAO,2BAAsB,WAAW,SAAS,QAAQ;AAAA,MAClD,OAAO,MAAM;AAAA,IAAA;AAEjB,cAAUP,iBAAM,aAAa,QAAQ;AAAA,MACjC,WAAW;AAAA,MACX;AAAA,IAAA,CACH;AAAA,EACL,WAAW,MAAM;AACb,cAAU,OAAO,SAAS,0DAAYQ,KAAAA,MAAA,EAAK,MAAM,MAAM,IAAK;AAAA,EAChE;AAEA,SAAOR,iCAAA,cAAC,kCAAgC,GAAG,YAAY,SAAS,WAAW,WAAW,SAAS,IAAA,CAAU;AAC7G,CAAC;;"}
@@ -1,4 +1,4 @@
1
- import { IconName } from '../Icon/Icon';
1
+ import { IconName } from '..';
2
2
  import * as React from 'react';
3
3
  export type InputWithoutDeprecatedFeaturesProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> & {
4
4
  /** Draws attention to the input by changing its style and making it visually prominent */
@@ -3,8 +3,8 @@ import * as React from "react";
3
3
  import { useBoundingClientRectListener } from "../../hooks/useBoundingClientRectListener.js";
4
4
  import { useMergedRef } from "../../hooks/useMergedRef.js";
5
5
  import { isPressingMetaKey } from "../../utils/keyboard.js";
6
- import { Icon } from "../Icon/Icon.js";
7
6
  import { getButtonStateClasses, getInputClasses } from "./util.js";
7
+ import { Icon } from "../Icon/Icon.js";
8
8
  const validSetSelectionRangeTypes = /* @__PURE__ */ new Set(["text", "search", "url", "tel", "password"]);
9
9
  const InputWithoutDeprecatedFeatures = React.forwardRef(function InputWithoutDeprecatedFeatures2(props, ref) {
10
10
  const { highlighted, invalid, onKeyDown, postfix, prefix, type = "text", ...attributes } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sources":["../../../src/components/Input/Input.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport { useBoundingClientRectListener } from '../../hooks/useBoundingClientRectListener';\nimport { useMergedRef } from '../../hooks/useMergedRef';\nimport { isPressingMetaKey } from '../../utils/keyboard';\nimport type { IconName } from '../Icon/Icon';\nimport { Icon } from '../Icon/Icon';\n\nimport { getButtonStateClasses, getInputClasses } from './util';\n\nexport type InputWithoutDeprecatedFeaturesProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> & {\n /** Draws attention to the input by changing its style and making it visually prominent */\n highlighted?: boolean;\n /** Whether the input is in an invalid state */\n invalid?: boolean;\n postfix?: string | React.JSX.Element;\n prefix?: string | React.JSX.Element;\n};\n\nconst validSetSelectionRangeTypes = new Set(['text', 'search', 'url', 'tel', 'password']);\n\nconst InputWithoutDeprecatedFeatures = React.forwardRef(function InputWithoutDeprecatedFeatures(\n props: InputWithoutDeprecatedFeaturesProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const { highlighted, invalid, onKeyDown, postfix, prefix, type = 'text', ...attributes } = props;\n const internalRef = useMergedRef<HTMLInputElement>(ref);\n\n // input[type=number] does not support setSelectionRange by default, this adds support\n React.useLayoutEffect(() => {\n if (internalRef.current && type === 'number') {\n (function (fn) {\n internalRef.current.setSelectionRange = function (...args) {\n if (this.type === 'number') {\n this.type = 'text';\n fn.apply(this, args);\n this.type = 'number';\n } else {\n fn.apply(this, args);\n }\n };\n })(internalRef.current.setSelectionRange);\n }\n }, []);\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n // prevent any external keyboard shortcuts from executing while typing single characters in input\n if (event.key.length === 1 && !isPressingMetaKey(event)) {\n event.stopPropagation();\n }\n\n // home and end keys only navigate to the start/end of input value if the input container does not scroll\n // if it has scroll height then the browser reverts to native scrolling behaviour only\n // so we manually override it to ensure _our_ desired behaviour remains intact\n // only the 'text', 'search', 'url', 'tel', 'password' input types support setSelectionRange\n if (validSetSelectionRangeTypes.has(type) && !event.shiftKey && (event.key === 'Home' || event.key === 'End')) {\n event.preventDefault();\n const position = event.key === 'End' ? event.currentTarget.value.length : 0;\n event.currentTarget.setSelectionRange(position, position);\n\n // Necessary for ensuring the cursor is scrolled into view when using Home/End keys on Windows\n if (internalRef.current) {\n const scrollPosition = event.key === 'End' ? internalRef.current.scrollWidth : 0;\n internalRef.current.scrollLeft = scrollPosition;\n }\n }\n\n if (typeof onKeyDown === 'function') {\n onKeyDown(event);\n }\n };\n\n const prefixRef = React.useRef<HTMLDivElement>(null);\n const prefixRect = useBoundingClientRectListener(prefixRef);\n const postfixRef = React.useRef<HTMLDivElement>(null);\n const postfixRect = useBoundingClientRectListener(postfixRef, [postfix]);\n\n const className = cn(\n getInputClasses(props),\n {\n 'pl-8': !!prefix,\n 'pr-8': !!postfix,\n },\n attributes.className\n );\n\n const typeAttributes: Partial<React.InputHTMLAttributes<HTMLInputElement>> = {\n type,\n };\n\n if (type === 'number') {\n typeAttributes.onWheelCapture = (event: React.WheelEvent<HTMLInputElement>) => {\n // blur is the only way to prevent scroll, so restore focus if it had it\n if (document.activeElement === event.currentTarget) {\n requestAnimationFrame(() => {\n (event.target as HTMLInputElement).focus();\n });\n }\n // blur the field on scroll - only way to prevent scroll\n event.currentTarget.blur();\n };\n }\n\n return (\n <div className=\"relative inline-flex h-fit w-full\" data-taco=\"input-container\" style={{ opacity: 0.999 }}>\n <input\n {...attributes}\n {...typeAttributes}\n aria-invalid={invalid}\n className={className}\n data-highlighted={highlighted}\n data-taco=\"input\"\n onKeyDown={handleKeyDown}\n ref={internalRef}\n style={{\n paddingLeft: prefixRect ? `${prefixRect.width - 1}px` : undefined,\n paddingRight: postfixRect ? `${postfixRect.width - 1}px` : undefined,\n }}\n />\n {prefix ? <Affix type=\"prefix\" children={prefix} disabled={attributes.disabled} ref={prefixRef} /> : null}\n {postfix ? <Affix type=\"postfix\" children={postfix} disabled={attributes.disabled} ref={postfixRef} /> : null}\n </div>\n );\n});\n\ntype AffixProps = {\n children: string | React.JSX.Element;\n disabled?: boolean;\n type: 'prefix' | 'postfix';\n};\nconst Affix = React.memo(\n React.forwardRef(function Affix(props: AffixProps, ref: React.Ref<HTMLDivElement>) {\n const { children, disabled, type } = props;\n\n return (\n <div\n className={cn(\n 'group absolute top-0 flex h-full items-center justify-center px-2',\n // icon\n '[&_[data-taco=\"icon\"]]:!h-5 [&_[data-taco=\"icon\"]]:!w-5',\n {\n 'text-gray-300': disabled,\n 'text-gray-700': !disabled,\n 'left-0 [&>button]:!-ml-2': type === 'prefix',\n 'right-0 [&>button]:!-mr-2': type === 'postfix',\n }\n )}\n data-affix-type={type}\n ref={ref}>\n {children}\n </div>\n );\n })\n);\n\nexport type InputProps = InputWithoutDeprecatedFeaturesProps & {\n /** Shows a button within the input field */\n button?: React.ReactElement<{ className?: string; disabled?: boolean }>;\n /** Shows an icon within the input field */\n icon?: IconName | React.JSX.Element;\n};\n\nexport const Input = React.forwardRef(function LegacyInput(props: InputProps, ref: React.Ref<HTMLInputElement>) {\n const { button, icon, ...attributes } = props;\n\n let postfix;\n\n if (button) {\n const disabled = button.props.disabled || attributes.disabled;\n const buttonClassName = cn(\n 'flex h-full items-center justify-center rounded-l-none rounded-r focus:z-10 focus:rounded focus:outline-none',\n getButtonStateClasses(attributes.invalid, disabled),\n button.props.className\n );\n postfix = React.cloneElement(button, {\n className: buttonClassName,\n disabled,\n });\n } else if (icon) {\n postfix = typeof icon === 'string' ? <Icon name={icon} /> : icon;\n }\n\n return <InputWithoutDeprecatedFeatures {...attributes} postfix={attributes.postfix ?? postfix} ref={ref} />;\n});\n"],"names":["InputWithoutDeprecatedFeatures","Affix"],"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EAChB,MAAM,WAAW,SAASC,OAAM,OAAmB,KAAgC;AAC/E,UAAM,EAAE,UAAU,UAAU,KAAA,IAAS;AAErC,WACI,sBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,WAAW;AAAA,UACP;AAAA;AAAA,UAEA;AAAA,UACA;AAAA,YACI,iBAAiB;AAAA,YACjB,iBAAiB,CAAC;AAAA,YAClB,4BAA4B,SAAS;AAAA,YACrC,6BAA6B,SAAS;AAAA,UAAA;AAAA,QAC1C;AAAA,QAEJ,mBAAiB;AAAA,QACjB;AAAA,MAAA;AAAA,MACC;AAAA,IAAA;AAAA,EAGb,CAAC;AACL;AASO,MAAM,QAAQ,MAAM,WAAW,SAAS,YAAY,OAAmB,KAAkC;AAC5G,QAAM,EAAE,QAAQ,MAAM,GAAG,eAAe;AAExC,MAAI;AAEJ,MAAI,QAAQ;AACR,UAAM,WAAW,OAAO,MAAM,YAAY,WAAW;AACrD,UAAM,kBAAkB;AAAA,MACpB;AAAA,MACA,sBAAsB,WAAW,SAAS,QAAQ;AAAA,MAClD,OAAO,MAAM;AAAA,IAAA;AAEjB,cAAU,MAAM,aAAa,QAAQ;AAAA,MACjC,WAAW;AAAA,MACX;AAAA,IAAA,CACH;AAAA,EACL,WAAW,MAAM;AACb,cAAU,OAAO,SAAS,+CAAY,MAAA,EAAK,MAAM,MAAM,IAAK;AAAA,EAChE;AAEA,SAAO,sBAAA,cAAC,kCAAgC,GAAG,YAAY,SAAS,WAAW,WAAW,SAAS,IAAA,CAAU;AAC7G,CAAC;"}
1
+ {"version":3,"file":"Input.js","sources":["../../../src/components/Input/Input.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type { IconName } from '@/components';\nimport { Icon } from '@/components';\nimport { useBoundingClientRectListener } from '@/hooks/useBoundingClientRectListener';\nimport { useMergedRef } from '@/hooks/useMergedRef';\nimport { isPressingMetaKey } from '@/utils/keyboard';\n\nimport { getButtonStateClasses, getInputClasses } from './util';\n\nexport type InputWithoutDeprecatedFeaturesProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> & {\n /** Draws attention to the input by changing its style and making it visually prominent */\n highlighted?: boolean;\n /** Whether the input is in an invalid state */\n invalid?: boolean;\n postfix?: string | React.JSX.Element;\n prefix?: string | React.JSX.Element;\n};\n\nconst validSetSelectionRangeTypes = new Set(['text', 'search', 'url', 'tel', 'password']);\n\nconst InputWithoutDeprecatedFeatures = React.forwardRef(function InputWithoutDeprecatedFeatures(\n props: InputWithoutDeprecatedFeaturesProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const { highlighted, invalid, onKeyDown, postfix, prefix, type = 'text', ...attributes } = props;\n const internalRef = useMergedRef<HTMLInputElement>(ref);\n\n // input[type=number] does not support setSelectionRange by default, this adds support\n React.useLayoutEffect(() => {\n if (internalRef.current && type === 'number') {\n (function (fn) {\n internalRef.current.setSelectionRange = function (...args) {\n if (this.type === 'number') {\n this.type = 'text';\n fn.apply(this, args);\n this.type = 'number';\n } else {\n fn.apply(this, args);\n }\n };\n })(internalRef.current.setSelectionRange);\n }\n }, []);\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n // prevent any external keyboard shortcuts from executing while typing single characters in input\n if (event.key.length === 1 && !isPressingMetaKey(event)) {\n event.stopPropagation();\n }\n\n // home and end keys only navigate to the start/end of input value if the input container does not scroll\n // if it has scroll height then the browser reverts to native scrolling behaviour only\n // so we manually override it to ensure _our_ desired behaviour remains intact\n // only the 'text', 'search', 'url', 'tel', 'password' input types support setSelectionRange\n if (validSetSelectionRangeTypes.has(type) && !event.shiftKey && (event.key === 'Home' || event.key === 'End')) {\n event.preventDefault();\n const position = event.key === 'End' ? event.currentTarget.value.length : 0;\n event.currentTarget.setSelectionRange(position, position);\n\n // Necessary for ensuring the cursor is scrolled into view when using Home/End keys on Windows\n if (internalRef.current) {\n const scrollPosition = event.key === 'End' ? internalRef.current.scrollWidth : 0;\n internalRef.current.scrollLeft = scrollPosition;\n }\n }\n\n if (typeof onKeyDown === 'function') {\n onKeyDown(event);\n }\n };\n\n const prefixRef = React.useRef<HTMLDivElement>(null);\n const prefixRect = useBoundingClientRectListener(prefixRef);\n const postfixRef = React.useRef<HTMLDivElement>(null);\n const postfixRect = useBoundingClientRectListener(postfixRef, [postfix]);\n\n const className = cn(\n getInputClasses(props),\n {\n 'pl-8': !!prefix,\n 'pr-8': !!postfix,\n },\n attributes.className\n );\n\n const typeAttributes: Partial<React.InputHTMLAttributes<HTMLInputElement>> = {\n type,\n };\n\n if (type === 'number') {\n typeAttributes.onWheelCapture = (event: React.WheelEvent<HTMLInputElement>) => {\n // blur is the only way to prevent scroll, so restore focus if it had it\n if (document.activeElement === event.currentTarget) {\n requestAnimationFrame(() => {\n (event.target as HTMLInputElement).focus();\n });\n }\n // blur the field on scroll - only way to prevent scroll\n event.currentTarget.blur();\n };\n }\n\n return (\n <div className=\"relative inline-flex h-fit w-full\" data-taco=\"input-container\" style={{ opacity: 0.999 }}>\n <input\n {...attributes}\n {...typeAttributes}\n aria-invalid={invalid}\n className={className}\n data-highlighted={highlighted}\n data-taco=\"input\"\n onKeyDown={handleKeyDown}\n ref={internalRef}\n style={{\n paddingLeft: prefixRect ? `${prefixRect.width - 1}px` : undefined,\n paddingRight: postfixRect ? `${postfixRect.width - 1}px` : undefined,\n }}\n />\n {prefix ? <Affix type=\"prefix\" children={prefix} disabled={attributes.disabled} ref={prefixRef} /> : null}\n {postfix ? <Affix type=\"postfix\" children={postfix} disabled={attributes.disabled} ref={postfixRef} /> : null}\n </div>\n );\n});\n\ntype AffixProps = {\n children: string | React.JSX.Element;\n disabled?: boolean;\n type: 'prefix' | 'postfix';\n};\nconst Affix = React.memo(\n React.forwardRef(function Affix(props: AffixProps, ref: React.Ref<HTMLDivElement>) {\n const { children, disabled, type } = props;\n\n return (\n <div\n className={cn(\n 'group absolute top-0 flex h-full items-center justify-center px-2',\n // icon\n '[&_[data-taco=\"icon\"]]:!h-5 [&_[data-taco=\"icon\"]]:!w-5',\n {\n 'text-gray-300': disabled,\n 'text-gray-700': !disabled,\n 'left-0 [&>button]:!-ml-2': type === 'prefix',\n 'right-0 [&>button]:!-mr-2': type === 'postfix',\n }\n )}\n data-affix-type={type}\n ref={ref}>\n {children}\n </div>\n );\n })\n);\n\nexport type InputProps = InputWithoutDeprecatedFeaturesProps & {\n /** Shows a button within the input field */\n button?: React.ReactElement<{ className?: string; disabled?: boolean }>;\n /** Shows an icon within the input field */\n icon?: IconName | React.JSX.Element;\n};\n\nexport const Input = React.forwardRef(function LegacyInput(props: InputProps, ref: React.Ref<HTMLInputElement>) {\n const { button, icon, ...attributes } = props;\n\n let postfix;\n\n if (button) {\n const disabled = button.props.disabled || attributes.disabled;\n const buttonClassName = cn(\n 'flex h-full items-center justify-center rounded-l-none rounded-r focus:z-10 focus:rounded focus:outline-none',\n getButtonStateClasses(attributes.invalid, disabled),\n button.props.className\n );\n postfix = React.cloneElement(button, {\n className: buttonClassName,\n disabled,\n });\n } else if (icon) {\n postfix = typeof icon === 'string' ? <Icon name={icon} /> : icon;\n }\n\n return <InputWithoutDeprecatedFeatures {...attributes} postfix={attributes.postfix ?? postfix} ref={ref} />;\n});\n"],"names":["InputWithoutDeprecatedFeatures","Affix"],"mappings":";;;;;;;AAoBA,MAAM,kDAAkC,IAAI,CAAC,QAAQ,UAAU,OAAO,OAAO,UAAU,CAAC;AAExF,MAAM,iCAAiC,MAAM,WAAW,SAASA,gCAC7D,OACA,KACF;AACE,QAAM,EAAE,aAAa,SAAS,WAAW,SAAS,QAAQ,OAAO,QAAQ,GAAG,WAAA,IAAe;AAC3F,QAAM,cAAc,aAA+B,GAAG;AAGtD,QAAM,gBAAgB,MAAM;AACxB,QAAI,YAAY,WAAW,SAAS,UAAU;AAC1C,OAAC,SAAU,IAAI;AACX,oBAAY,QAAQ,oBAAoB,YAAa,MAAM;AACvD,cAAI,KAAK,SAAS,UAAU;AACxB,iBAAK,OAAO;AACZ,eAAG,MAAM,MAAM,IAAI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AC5G,QAAM,EAAE,QAAQ,MAAM,GAAG,eAAe;AAExC,MAAI;AAEJ,MAAI,QAAQ;AACR,UAAM,WAAW,OAAO,MAAM,YAAY,WAAW;AACrD,UAAM,kBAAkB;AAAA,MACpB;AAAA,MACA,sBAAsB,WAAW,SAAS,QAAQ;AAAA,MAClD,OAAO,MAAM;AAAA,IAAA;AAEjB,cAAU,MAAM,aAAa,QAAQ;AAAA,MACjC,WAAW;AAAA,MACX;AAAA,IAAA,CACH;AAAA,EACL,WAAW,MAAM;AACb,cAAU,OAAO,SAAS,+CAAY,MAAA,EAAK,MAAM,MAAM,IAAK;AAAA,EAChE;AAEA,SAAO,sBAAA,cAAC,kCAAgC,GAAG,YAAY,SAAS,WAAW,WAAW,SAAS,IAAA,CAAU;AAC7G,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.cjs","sources":["../../../../src/components/Layout/components/Sidebar.tsx"],"sourcesContent":["import cn from 'clsx';\nimport { AnimatePresence, motion } from 'motion/react';\nimport React from 'react';\n\nimport { useIsLargeScreen } from '../../../hooks/useIsLargeScreen';\n\nimport { LayoutContext } from './Context';\n\nexport type LayoutSidebarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {\n children:\n | React.ReactNode\n | (({\n isLargeScreen,\n open,\n toggleSidebar,\n }: {\n isLargeScreen: boolean;\n open: boolean;\n toggleSidebar: () => void;\n }) => React.ReactNode);\n};\n\nexport const Sidebar = React.forwardRef<HTMLDivElement, LayoutSidebarProps>(function LayoutSidebar(props, ref) {\n const { children, ...attributes } = props;\n const { sidebarOpen, setSidebarOpen } = React.useContext(LayoutContext);\n const isLargeScreen = useIsLargeScreen();\n const isSmallScreen = !isLargeScreen;\n\n // if it's a large screen we override the open state and make it always visible\n const isVisible = isLargeScreen || sidebarOpen;\n\n // ensures the menu is always closed by default when resizing to a smaller window size\n React.useEffect(() => {\n setSidebarOpen(isLargeScreen);\n }, [isLargeScreen]);\n\n React.useEffect(() => {\n const handleEscapeKey = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n event.stopPropagation();\n setSidebarOpen(false);\n }\n };\n\n if (isSmallScreen && sidebarOpen) {\n window.addEventListener('keydown', handleEscapeKey);\n }\n\n return () => {\n window.removeEventListener('keydown', handleEscapeKey);\n };\n }, [isSmallScreen, sidebarOpen]);\n\n const showBackdrop = isSmallScreen && sidebarOpen === true;\n\n const [ready, setReady] = React.useState(isSmallScreen);\n\n const className = cn(\n 'h-full w-64 flex-shrink-0 flex-grow-0 bg-gray-50 print:hidden',\n {\n 'absolute z-10 aria-hidden:-translate-x-64': isSmallScreen,\n // prevent animation when crossing the boundary from large to small screen,\n // this prevents awkward animation in the edge case (resizing the browser, instead of starting at a given size)\n invisible: isSmallScreen && !ready,\n 'visible transition-[transform] duration-300': isSmallScreen && ready,\n 'border-r-2 border-gray-100': !showBackdrop,\n },\n props.className\n );\n\n React.useEffect(() => {\n // ensure state is updated in the next cpu tick so that the animation definitely doesn't run\n setTimeout(() => {\n setReady(isSmallScreen);\n }, 1);\n }, [isSmallScreen]);\n\n const toggleSidebar = () => setSidebarOpen(open => !open);\n const content = typeof children === 'function' ? children({ isLargeScreen, open: sidebarOpen, toggleSidebar }) : children;\n\n if (!content) {\n return null;\n }\n\n return (\n <>\n <nav {...attributes} data-responsive={isSmallScreen} aria-hidden={!isVisible} className={className} ref={ref}>\n {content}\n </nav>\n <AnimatePresence>\n {showBackdrop && (\n <motion.div\n aria-hidden\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n onClick={() => setSidebarOpen(false)}\n className=\"fixed inset-0 z-[1] cursor-default overflow-y-auto bg-brand-midnight/[0.3] print:absolute print:overflow-visible\"\n />\n )}\n </AnimatePresence>\n </>\n );\n});\n"],"names":["LayoutContext","useIsLargeScreen","AnimatePresence","motion"],"mappings":";;;;;;;AAsBO,MAAM,UAAU,MAAM,WAA+C,SAAS,cAAc,OAAO,KAAK;AAC3G,QAA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,sBAAA,cAAC,OAAA,EAAK,GAAG,YAAY,mBAAiB,eAAe,eAAa,CAAC,WAAW,WAAsB,IAAA,GAC/F,OACL,GACA,sBAAA,cAACC,MAAAA,uBACI,gBACG,sBAAA;AAAA,IAACC,MAAAA,OAAO;AAAA,IAAP;AAAA,MACG,eAAW;AAAA,MACX,SAAS,EAAE,SAAS,EAAA;AAAA,MACpB,SAAS,EAAE,SAAS,EAAA;AAAA,MACpB,MAAM,EAAE,SAAS,EAAA;AAAA,MACjB,SAAS,MAAM,eAAe,KAAK;AAAA,MACnC,WAAU;AAAA,IAAA;AAAA,EAAA,CAGtB,CACJ;AAER,CAAC;;"}
1
+ {"version":3,"file":"Sidebar.cjs","sources":["../../../../src/components/Layout/components/Sidebar.tsx"],"sourcesContent":["import cn from 'clsx';\nimport { AnimatePresence, motion } from 'motion/react';\nimport React from 'react';\n\nimport { useIsLargeScreen } from '@/hooks/useIsLargeScreen';\n\nimport { LayoutContext } from './Context';\n\nexport type LayoutSidebarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {\n children:\n | React.ReactNode\n | (({\n isLargeScreen,\n open,\n toggleSidebar,\n }: {\n isLargeScreen: boolean;\n open: boolean;\n toggleSidebar: () => void;\n }) => React.ReactNode);\n};\n\nexport const Sidebar = React.forwardRef<HTMLDivElement, LayoutSidebarProps>(function LayoutSidebar(props, ref) {\n const { children, ...attributes } = props;\n const { sidebarOpen, setSidebarOpen } = React.useContext(LayoutContext);\n const isLargeScreen = useIsLargeScreen();\n const isSmallScreen = !isLargeScreen;\n\n // if it's a large screen we override the open state and make it always visible\n const isVisible = isLargeScreen || sidebarOpen;\n\n // ensures the menu is always closed by default when resizing to a smaller window size\n React.useEffect(() => {\n setSidebarOpen(isLargeScreen);\n }, [isLargeScreen]);\n\n React.useEffect(() => {\n const handleEscapeKey = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n event.stopPropagation();\n setSidebarOpen(false);\n }\n };\n\n if (isSmallScreen && sidebarOpen) {\n window.addEventListener('keydown', handleEscapeKey);\n }\n\n return () => {\n window.removeEventListener('keydown', handleEscapeKey);\n };\n }, [isSmallScreen, sidebarOpen]);\n\n const showBackdrop = isSmallScreen && sidebarOpen === true;\n\n const [ready, setReady] = React.useState(isSmallScreen);\n\n const className = cn(\n 'h-full w-64 flex-shrink-0 flex-grow-0 bg-gray-50 print:hidden',\n {\n 'absolute z-10 aria-hidden:-translate-x-64': isSmallScreen,\n // prevent animation when crossing the boundary from large to small screen,\n // this prevents awkward animation in the edge case (resizing the browser, instead of starting at a given size)\n invisible: isSmallScreen && !ready,\n 'visible transition-[transform] duration-300': isSmallScreen && ready,\n 'border-r-2 border-gray-100': !showBackdrop,\n },\n props.className\n );\n\n React.useEffect(() => {\n // ensure state is updated in the next cpu tick so that the animation definitely doesn't run\n setTimeout(() => {\n setReady(isSmallScreen);\n }, 1);\n }, [isSmallScreen]);\n\n const toggleSidebar = () => setSidebarOpen(open => !open);\n const content = typeof children === 'function' ? children({ isLargeScreen, open: sidebarOpen, toggleSidebar }) : children;\n\n if (!content) {\n return null;\n }\n\n return (\n <>\n <nav {...attributes} data-responsive={isSmallScreen} aria-hidden={!isVisible} className={className} ref={ref}>\n {content}\n </nav>\n <AnimatePresence>\n {showBackdrop && (\n <motion.div\n aria-hidden\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n onClick={() => setSidebarOpen(false)}\n className=\"fixed inset-0 z-[1] cursor-default overflow-y-auto bg-brand-midnight/[0.3] print:absolute print:overflow-visible\"\n />\n )}\n </AnimatePresence>\n </>\n );\n});\n"],"names":["LayoutContext","useIsLargeScreen","AnimatePresence","motion"],"mappings":";;;;;;;AAsBO,MAAM,UAAU,MAAM,WAA+C,SAAS,cAAc,OAAO,KAAK;AAC3G,QAAM,EAAE,UAAU,GAAG,WAAA,IAAe;AACpC,QAAM,EAAE,aAAa,eAAA,IAAmB,MAAM,WAAWA,QAAAA,aAAa;AACtE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sBAAA,cAACC,MAAAA,uBACI,gBACG,sBAAA;AAAA,IAACC,MAAAA,OAAO;AAAA,IAAP;AAAA,MACG,eAAW;AAAA,MACX,SAAS,EAAE,SAAS,EAAA;AAAA,MACpB,SAAS,EAAE,SAAS,EAAA;AAAA,MACpB,MAAM,EAAE,SAAS,EAAA;AAAA,MACjB,SAAS,MAAM,eAAe,KAAK;AAAA,MACnC,WAAU;AAAA,IAAA;AAAA,EAAA,CAGtB,CACJ;AAER,CAAC;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.js","sources":["../../../../src/components/Layout/components/Sidebar.tsx"],"sourcesContent":["import cn from 'clsx';\nimport { AnimatePresence, motion } from 'motion/react';\nimport React from 'react';\n\nimport { useIsLargeScreen } from '../../../hooks/useIsLargeScreen';\n\nimport { LayoutContext } from './Context';\n\nexport type LayoutSidebarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {\n children:\n | React.ReactNode\n | (({\n isLargeScreen,\n open,\n toggleSidebar,\n }: {\n isLargeScreen: boolean;\n open: boolean;\n toggleSidebar: () => void;\n }) => React.ReactNode);\n};\n\nexport const Sidebar = React.forwardRef<HTMLDivElement, LayoutSidebarProps>(function LayoutSidebar(props, ref) {\n const { children, ...attributes } = props;\n const { sidebarOpen, setSidebarOpen } = React.useContext(LayoutContext);\n const isLargeScreen = useIsLargeScreen();\n const isSmallScreen = !isLargeScreen;\n\n // if it's a large screen we override the open state and make it always visible\n const isVisible = isLargeScreen || sidebarOpen;\n\n // ensures the menu is always closed by default when resizing to a smaller window size\n React.useEffect(() => {\n setSidebarOpen(isLargeScreen);\n }, [isLargeScreen]);\n\n React.useEffect(() => {\n const handleEscapeKey = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n event.stopPropagation();\n setSidebarOpen(false);\n }\n };\n\n if (isSmallScreen && sidebarOpen) {\n window.addEventListener('keydown', handleEscapeKey);\n }\n\n return () => {\n window.removeEventListener('keydown', handleEscapeKey);\n };\n }, [isSmallScreen, sidebarOpen]);\n\n const showBackdrop = isSmallScreen && sidebarOpen === true;\n\n const [ready, setReady] = React.useState(isSmallScreen);\n\n const className = cn(\n 'h-full w-64 flex-shrink-0 flex-grow-0 bg-gray-50 print:hidden',\n {\n 'absolute z-10 aria-hidden:-translate-x-64': isSmallScreen,\n // prevent animation when crossing the boundary from large to small screen,\n // this prevents awkward animation in the edge case (resizing the browser, instead of starting at a given size)\n invisible: isSmallScreen && !ready,\n 'visible transition-[transform] duration-300': isSmallScreen && ready,\n 'border-r-2 border-gray-100': !showBackdrop,\n },\n props.className\n );\n\n React.useEffect(() => {\n // ensure state is updated in the next cpu tick so that the animation definitely doesn't run\n setTimeout(() => {\n setReady(isSmallScreen);\n }, 1);\n }, [isSmallScreen]);\n\n const toggleSidebar = () => setSidebarOpen(open => !open);\n const content = typeof children === 'function' ? children({ isLargeScreen, open: sidebarOpen, toggleSidebar }) : children;\n\n if (!content) {\n return null;\n }\n\n return (\n <>\n <nav {...attributes} data-responsive={isSmallScreen} aria-hidden={!isVisible} className={className} ref={ref}>\n {content}\n </nav>\n <AnimatePresence>\n {showBackdrop && (\n <motion.div\n aria-hidden\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n onClick={() => setSidebarOpen(false)}\n className=\"fixed inset-0 z-[1] cursor-default overflow-y-auto bg-brand-midnight/[0.3] print:absolute print:overflow-visible\"\n />\n )}\n </AnimatePresence>\n </>\n );\n});\n"],"names":["React"],"mappings":";;;;;AAsBO,MAAM,UAAUA,eAAM,WAA+C,SAAS,cAAc,OAAO,KAAK;AAC3G,QAAM,EAAE,UAAU,GAAG,WAAA,IAAe;AACpC,QAAM,EAAE,aAAa,eAAA,IAAmBA,eAAM,WAAW,aAAa;AACtE,QAAM,gBAAgB,iBAAA;AACtB,QAAM,gBAAgB,CAAC;AAGvB,QAAM,YAAY,iBAAiB;AAGnCA,iBAAM,UAAU,MAAM;AAClB,mBAAe,aAAa;AAAA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AAS,EAAE,SAAS,EAAA;AAAA,MACpB,MAAM,EAAE,SAAS,EAAA;AAAA,MACjB,SAAS,MAAM,eAAe,KAAK;AAAA,MACnC,WAAU;AAAA,IAAA;AAAA,EAAA,CAGtB,CACJ;AAER,CAAC;"}
1
+ {"version":3,"file":"Sidebar.js","sources":["../../../../src/components/Layout/components/Sidebar.tsx"],"sourcesContent":["import cn from 'clsx';\nimport { AnimatePresence, motion } from 'motion/react';\nimport React from 'react';\n\nimport { useIsLargeScreen } from '@/hooks/useIsLargeScreen';\n\nimport { LayoutContext } from './Context';\n\nexport type LayoutSidebarProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> & {\n children:\n | React.ReactNode\n | (({\n isLargeScreen,\n open,\n toggleSidebar,\n }: {\n isLargeScreen: boolean;\n open: boolean;\n toggleSidebar: () => void;\n }) => React.ReactNode);\n};\n\nexport const Sidebar = React.forwardRef<HTMLDivElement, LayoutSidebarProps>(function LayoutSidebar(props, ref) {\n const { children, ...attributes } = props;\n const { sidebarOpen, setSidebarOpen } = React.useContext(LayoutContext);\n const isLargeScreen = useIsLargeScreen();\n const isSmallScreen = !isLargeScreen;\n\n // if it's a large screen we override the open state and make it always visible\n const isVisible = isLargeScreen || sidebarOpen;\n\n // ensures the menu is always closed by default when resizing to a smaller window size\n React.useEffect(() => {\n setSidebarOpen(isLargeScreen);\n }, [isLargeScreen]);\n\n React.useEffect(() => {\n const handleEscapeKey = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n event.preventDefault();\n event.stopPropagation();\n setSidebarOpen(false);\n }\n };\n\n if (isSmallScreen && sidebarOpen) {\n window.addEventListener('keydown', handleEscapeKey);\n }\n\n return () => {\n window.removeEventListener('keydown', handleEscapeKey);\n };\n }, [isSmallScreen, sidebarOpen]);\n\n const showBackdrop = isSmallScreen && sidebarOpen === true;\n\n const [ready, setReady] = React.useState(isSmallScreen);\n\n const className = cn(\n 'h-full w-64 flex-shrink-0 flex-grow-0 bg-gray-50 print:hidden',\n {\n 'absolute z-10 aria-hidden:-translate-x-64': isSmallScreen,\n // prevent animation when crossing the boundary from large to small screen,\n // this prevents awkward animation in the edge case (resizing the browser, instead of starting at a given size)\n invisible: isSmallScreen && !ready,\n 'visible transition-[transform] duration-300': isSmallScreen && ready,\n 'border-r-2 border-gray-100': !showBackdrop,\n },\n props.className\n );\n\n React.useEffect(() => {\n // ensure state is updated in the next cpu tick so that the animation definitely doesn't run\n setTimeout(() => {\n setReady(isSmallScreen);\n }, 1);\n }, [isSmallScreen]);\n\n const toggleSidebar = () => setSidebarOpen(open => !open);\n const content = typeof children === 'function' ? children({ isLargeScreen, open: sidebarOpen, toggleSidebar }) : children;\n\n if (!content) {\n return null;\n }\n\n return (\n <>\n <nav {...attributes} data-responsive={isSmallScreen} aria-hidden={!isVisible} className={className} ref={ref}>\n {content}\n </nav>\n <AnimatePresence>\n {showBackdrop && (\n <motion.div\n aria-hidden\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n onClick={() => setSidebarOpen(false)}\n className=\"fixed inset-0 z-[1] cursor-default overflow-y-auto bg-brand-midnight/[0.3] print:absolute print:overflow-visible\"\n />\n )}\n </AnimatePresence>\n </>\n );\n});\n"],"names":["React"],"mappings":";;;;;AAsBO,MAAM,UAAUA,eAAM,WAA+C,SAAS,cAAc,OAAO,KAAK;AAC3G,QAAM,EAAE,UAAU,GAAG,WAAA,IAAe;AACpC,QAAM,EAAE,aAAa,eAAA,IAAmBA,eAAM,WAAW,aAAa;AACtE,QAAM,gBAAgB,iBAAA;AACtB,QAAM,gBAAgB,CAAC;AAGvB,QAAM,YAAY,iBAAiB;AAGnCA,iBAAM,UAAU,MAAM;AAClB,mBAAe,aAAa;AAAA,EAChC,GAAG,CAAC,aAAa,CAAC;AAElBA,iBAAM,UAAU,MAAM;AAClB,UAAM,kBAAkB,CAAC,UAAyB;AAC9C,UAAI,MAAM,QAAQ,UAAU;AACxB,cAAM,eAAA;AACN,cAAM,gBAA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AC;"}
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const cn = require("clsx");
4
4
  const React = require("react");
5
- const Icon = require("../../Icon/Icon.cjs");
6
5
  const util = require("./util.cjs");
7
6
  ;/* empty css */
7
+ const Icon = require("../../Icon/Icon.cjs");
8
8
  function _interopNamespaceDefault(e) {
9
9
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
10
10
  if (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"Button.cjs","sources":["../../../../src/components/LegacyComponents/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type * as ButtonPrimitive from '../../../primitives/Button';\nimport type { Appearance } from '../../../types';\nimport type { DialogProps } from '../../Dialog/Dialog';\nimport type { DrawerProps } from '../../Drawer/Drawer';\nimport type { HangerProps } from '../../Hanger/Hanger';\nimport { Icon } from '../../Icon/Icon';\nimport type { MenuProps } from '../../Menu/Menu';\nimport type { PopoverProps } from '../../Popover/Popover';\n\nimport { APPEARANCE_CLASSNAME, getButtonClasses, createButtonWithTooltip, createButtonWithOverlays } from './util';\n\nimport './Button.css';\n\n/**\n * @deprecated Use the forthcoming `Button` component instead. This legacy API will be removed in a future major version.\n */\nexport type LegacyButtonProps = ButtonPrimitive.ButtonProps & {\n /** Appearance will change the style of the button */\n appearance?: Appearance;\n /**\n * Dialog component associated with the button, clicking the button will open the dialog.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated dialog when clicked.\n */\n dialog?: (props: Partial<DialogProps>) => React.JSX.Element;\n /**\n * Drawer component associated with the button, clicking the button will open the drawer.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated drawer when clicked.\n */\n drawer?: (props: Partial<DrawerProps>) => React.JSX.Element;\n /** If fluid, button expands to the width of it's container */\n fluid?: boolean;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => React.JSX.Element;\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => React.JSX.Element;\n /**\n * Popover component associated with the button, clicking the button will open the popover.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated popover when clicked.\n */\n popover?: (props: Partial<PopoverProps>) => React.JSX.Element;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | React.JSX.Element;\n};\n\nconst LegacyButtonBase = React.forwardRef(function LegacyButtonBase(\n props: LegacyButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { appearance, fluid, ...otherProps } = props;\n const className = cn(\n getButtonClasses(),\n APPEARANCE_CLASSNAME[appearance ?? 'default'],\n 'rounded px-3',\n {\n 'w-full': fluid,\n },\n props.className\n );\n\n return createButtonWithTooltip(\n {\n ...otherProps,\n 'data-taco': 'legacy-button',\n 'data-appearance': appearance,\n },\n className,\n ref\n );\n});\n\n/**\n * @deprecated Use the forthcoming `Button` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyButton = React.forwardRef(function LegacyButton(\n props: LegacyButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { dialog, drawer, hanger, menu, popover, ...buttonProps } = props;\n\n let children = buttonProps.children;\n\n // add a chevron icon to menu buttons\n if (typeof menu === 'function') {\n children = Array.isArray(children)\n ? [...children, <Icon key=\"chevron-down\" name=\"chevron-down\" />]\n : [children, <Icon key=\"chevron-down\" name=\"chevron-down\" />];\n }\n\n const button = (\n <LegacyButtonBase {...buttonProps} ref={ref}>\n {children}\n </LegacyButtonBase>\n );\n\n return createButtonWithOverlays({ dialog, drawer, hanger, menu, popover }, button);\n});\n"],"names":["React","LegacyButtonBase","getButtonClasses","APPEARANCE_CLASSNAME","createButtonWithTooltip","LegacyButton","Icon","createButtonWithOverlays"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkDA,MAAM,mBAAmBA,iBAAM,WAAW,SAASC,kBAC/C,OACA,KACF;AACE,QAAM,EAAE,YAAY,OAAO,GAAG,eAAe;AAC7C,QAAM,YAAY;AAAA,IACdC,sBAAA;AAAA,IACAC,KAAAA,qBAAqB,cAAc,SAAS;AAAA,IAC5C;AAAA,IACA;AAAA,MACI,UAAU;AAAA,IAAA;AAAA,IAEd,MAAM;AAAA,EAAA;AAGV,SAAOC,KAAAA;AAAAA,IACH;AAAA,MACI,GAAG;AAAA,MACH,aAAa;AAAA,MACb,mBAAmB;AAAA,IAAA;AAAA,IAEvB;AAAA,IACA;AAAA,EAAA;AAER,CAAC;AAKM,MAAM,eAAeJ,iBAAM,WAAW,SAASK,cAClD,OACA,KACF;AACE,QAAM,EAAE,QAAQ,QAAQ,QAAQ,MAAM,SAAS,GAAG,gBAAgB;AAElE,MAAI,WAAW,YAAY;AAG3B,MAAI,OAAO,SAAS,YAAY;AAC5B,eAAW,MAAM,QAAQ,QAAQ,IAC3B,CAAC,GAAG,UAAUL,iCAAA,cAACM,KAAAA,MAAA,EAAK,KAAI,gBAAe,MAAK,eAAA,CAAe,CAAE,IAC7D,CAAC,UAAUN,iCAAA,cAACM,aAAK,KAAI,gBAAe,MAAK,eAAA,CAAe,CAAE;AAAA,EACpE;AAEA,QAAM,SACFN,iCAAA,cAAC,kBAAA,EAAkB,GAAG,aAAa,OAC9B,QACL;AAGJ,SAAOO,KAAAA,yBAAyB,EAAE,QAAQ,QAAQ,QAAQ,MAAM,QAAA,GAAW,MAAM;AACrF,CAAC;;"}
1
+ {"version":3,"file":"Button.cjs","sources":["../../../../src/components/LegacyComponents/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type { DialogProps, DrawerProps, HangerProps, MenuProps, PopoverProps } from '@/components';\nimport { Icon } from '@/components';\nimport type * as ButtonPrimitive from '@/primitives/Button';\nimport type { Appearance } from '@/types';\n\nimport { APPEARANCE_CLASSNAME, getButtonClasses, createButtonWithTooltip, createButtonWithOverlays } from './util';\n\nimport './Button.css';\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport type LegacyButtonProps = ButtonPrimitive.ButtonProps & {\n /** Appearance will change the style of the button */\n appearance?: Appearance;\n /**\n * Dialog component associated with the button, clicking the button will open the dialog.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated dialog when clicked.\n */\n dialog?: (props: Partial<DialogProps>) => React.JSX.Element;\n /**\n * Drawer component associated with the button, clicking the button will open the drawer.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated drawer when clicked.\n */\n drawer?: (props: Partial<DrawerProps>) => React.JSX.Element;\n /** If fluid, button expands to the width of it's container */\n fluid?: boolean;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => React.JSX.Element;\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => React.JSX.Element;\n /**\n * Popover component associated with the button, clicking the button will open the popover.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated popover when clicked.\n */\n popover?: (props: Partial<PopoverProps>) => React.JSX.Element;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | React.JSX.Element;\n};\n\nconst LegacyButtonBase = React.forwardRef(function LegacyButtonBase(\n props: LegacyButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { appearance, fluid, ...otherProps } = props;\n const className = cn(\n getButtonClasses(),\n APPEARANCE_CLASSNAME[appearance ?? 'default'],\n 'rounded px-3',\n {\n 'w-full': fluid,\n },\n props.className\n );\n\n return createButtonWithTooltip(\n {\n ...otherProps,\n 'data-taco': 'legacy-button',\n 'data-appearance': appearance,\n },\n className,\n ref\n );\n});\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyButton = React.forwardRef(function LegacyButton(\n props: LegacyButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { dialog, drawer, hanger, menu, popover, ...buttonProps } = props;\n\n let children = buttonProps.children;\n\n // add a chevron icon to menu buttons\n if (typeof menu === 'function') {\n children = Array.isArray(children)\n ? [...children, <Icon key=\"chevron-down\" name=\"chevron-down\" />]\n : [children, <Icon key=\"chevron-down\" name=\"chevron-down\" />];\n }\n\n const button = (\n <LegacyButtonBase {...buttonProps} ref={ref}>\n {children}\n </LegacyButtonBase>\n );\n\n return createButtonWithOverlays({ dialog, drawer, hanger, menu, popover }, button);\n});\n"],"names":["React","LegacyButtonBase","getButtonClasses","APPEARANCE_CLASSNAME","createButtonWithTooltip","LegacyButton","Icon","createButtonWithOverlays"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAM,mBAAmBA,iBAAM,WAAW,SAASC,kBAC/C,OACA,KACF;AACE,QAAM,EAAE,YAAY,OAAO,GAAG,eAAe;AAC7C,QAAM,YAAY;AAAA,IACdC,sBAAA;AAAA,IACAC,KAAAA,qBAAqB,cAAc,SAAS;AAAA,IAC5C;AAAA,IACA;AAAA,MACI,UAAU;AAAA,IAAA;AAAA,IAEd,MAAM;AAAA,EAAA;AAGV,SAAOC,KAAAA;AAAAA,IACH;AAAA,MACI,GAAG;AAAA,MACH,aAAa;AAAA,MACb,mBAAmB;AAAA,IAAA;AAAA,IAEvB;AAAA,IACA;AAAA,EAAA;AAER,CAAC;AAKM,MAAM,eAAeJ,iBAAM,WAAW,SAASK,cAClD,OACA,KACF;AACE,QAAM,EAAE,QAAQ,QAAQ,QAAQ,MAAM,SAAS,GAAG,gBAAgB;AAElE,MAAI,WAAW,YAAY;AAG3B,MAAI,OAAO,SAAS,YAAY;AAC5B,eAAW,MAAM,QAAQ,QAAQ,IAC3B,CAAC,GAAG,UAAUL,iCAAA,cAACM,KAAAA,MAAA,EAAK,KAAI,gBAAe,MAAK,eAAA,CAAe,CAAE,IAC7D,CAAC,UAAUN,iCAAA,cAACM,aAAK,KAAI,gBAAe,MAAK,eAAA,CAAe,CAAE;AAAA,EACpE;AAEA,QAAM,SACFN,iCAAA,cAAC,kBAAA,EAAkB,GAAG,aAAa,OAC9B,QACL;AAGJ,SAAOO,KAAAA,yBAAyB,EAAE,QAAQ,QAAQ,QAAQ,MAAM,QAAA,GAAW,MAAM;AACrF,CAAC;;"}
@@ -1,13 +1,9 @@
1
+ import { DialogProps, DrawerProps, HangerProps, MenuProps, PopoverProps } from '../..';
1
2
  import { Appearance } from '../../../types';
2
- import { DialogProps } from '../../Dialog/Dialog';
3
- import { DrawerProps } from '../../Drawer/Drawer';
4
- import { HangerProps } from '../../Hanger/Hanger';
5
- import { MenuProps } from '../../Menu/Menu';
6
- import { PopoverProps } from '../../Popover/Popover';
7
3
  import * as React from 'react';
8
4
  import type * as ButtonPrimitive from '../../../primitives/Button';
9
5
  /**
10
- * @deprecated Use the forthcoming `Button` component instead. This legacy API will be removed in a future major version.
6
+ * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.
11
7
  */
12
8
  export type LegacyButtonProps = ButtonPrimitive.ButtonProps & {
13
9
  /** Appearance will change the style of the button */
@@ -40,7 +36,7 @@ export type LegacyButtonProps = ButtonPrimitive.ButtonProps & {
40
36
  tooltip?: string | React.JSX.Element;
41
37
  };
42
38
  /**
43
- * @deprecated Use the forthcoming `Button` component instead. This legacy API will be removed in a future major version.
39
+ * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.
44
40
  */
45
41
  export declare const LegacyButton: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "popover"> & {
46
42
  children: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  import cn from "clsx";
2
2
  import * as React from "react";
3
- import { Icon } from "../../Icon/Icon.js";
4
3
  import { createButtonWithOverlays, getButtonClasses, APPEARANCE_CLASSNAME, createButtonWithTooltip } from "./util.js";
5
4
  /* empty css */
5
+ import { Icon } from "../../Icon/Icon.js";
6
6
  const LegacyButtonBase = React.forwardRef(function LegacyButtonBase2(props, ref) {
7
7
  const { appearance, fluid, ...otherProps } = props;
8
8
  const className = cn(
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../../src/components/LegacyComponents/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type * as ButtonPrimitive from '../../../primitives/Button';\nimport type { Appearance } from '../../../types';\nimport type { DialogProps } from '../../Dialog/Dialog';\nimport type { DrawerProps } from '../../Drawer/Drawer';\nimport type { HangerProps } from '../../Hanger/Hanger';\nimport { Icon } from '../../Icon/Icon';\nimport type { MenuProps } from '../../Menu/Menu';\nimport type { PopoverProps } from '../../Popover/Popover';\n\nimport { APPEARANCE_CLASSNAME, getButtonClasses, createButtonWithTooltip, createButtonWithOverlays } from './util';\n\nimport './Button.css';\n\n/**\n * @deprecated Use the forthcoming `Button` component instead. This legacy API will be removed in a future major version.\n */\nexport type LegacyButtonProps = ButtonPrimitive.ButtonProps & {\n /** Appearance will change the style of the button */\n appearance?: Appearance;\n /**\n * Dialog component associated with the button, clicking the button will open the dialog.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated dialog when clicked.\n */\n dialog?: (props: Partial<DialogProps>) => React.JSX.Element;\n /**\n * Drawer component associated with the button, clicking the button will open the drawer.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated drawer when clicked.\n */\n drawer?: (props: Partial<DrawerProps>) => React.JSX.Element;\n /** If fluid, button expands to the width of it's container */\n fluid?: boolean;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => React.JSX.Element;\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => React.JSX.Element;\n /**\n * Popover component associated with the button, clicking the button will open the popover.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated popover when clicked.\n */\n popover?: (props: Partial<PopoverProps>) => React.JSX.Element;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | React.JSX.Element;\n};\n\nconst LegacyButtonBase = React.forwardRef(function LegacyButtonBase(\n props: LegacyButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { appearance, fluid, ...otherProps } = props;\n const className = cn(\n getButtonClasses(),\n APPEARANCE_CLASSNAME[appearance ?? 'default'],\n 'rounded px-3',\n {\n 'w-full': fluid,\n },\n props.className\n );\n\n return createButtonWithTooltip(\n {\n ...otherProps,\n 'data-taco': 'legacy-button',\n 'data-appearance': appearance,\n },\n className,\n ref\n );\n});\n\n/**\n * @deprecated Use the forthcoming `Button` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyButton = React.forwardRef(function LegacyButton(\n props: LegacyButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { dialog, drawer, hanger, menu, popover, ...buttonProps } = props;\n\n let children = buttonProps.children;\n\n // add a chevron icon to menu buttons\n if (typeof menu === 'function') {\n children = Array.isArray(children)\n ? [...children, <Icon key=\"chevron-down\" name=\"chevron-down\" />]\n : [children, <Icon key=\"chevron-down\" name=\"chevron-down\" />];\n }\n\n const button = (\n <LegacyButtonBase {...buttonProps} ref={ref}>\n {children}\n </LegacyButtonBase>\n );\n\n return createButtonWithOverlays({ dialog, drawer, hanger, menu, popover }, button);\n});\n"],"names":["LegacyButtonBase","LegacyButton"],"mappings":";;;;;AAkDA,MAAM,mBAAmB,MAAM,WAAW,SAASA,kBAC/C,OACA,KACF;AACE,QAAM,EAAE,YAAY,OAAO,GAAG,eAAe;AAC7C,QAAM,YAAY;AAAA,IACd,iBAAA;AAAA,IACA,qBAAqB,cAAc,SAAS;AAAA,IAC5C;AAAA,IACA;AAAA,MACI,UAAU;AAAA,IAAA;AAAA,IAEd,MAAM;AAAA,EAAA;AAGV,SAAO;AAAA,IACH;AAAA,MACI,GAAG;AAAA,MACH,aAAa;AAAA,MACb,mBAAmB;AAAA,IAAA;AAAA,IAEvB;AAAA,IACA;AAAA,EAAA;AAER,CAAC;AAKM,MAAM,eAAe,MAAM,WAAW,SAASC,cAClD,OACA,KACF;AACE,QAAM,EAAE,QAAQ,QAAQ,QAAQ,MAAM,SAAS,GAAG,gBAAgB;AAElE,MAAI,WAAW,YAAY;AAG3B,MAAI,OAAO,SAAS,YAAY;AAC5B,eAAW,MAAM,QAAQ,QAAQ,IAC3B,CAAC,GAAG,UAAU,sBAAA,cAAC,MAAA,EAAK,KAAI,gBAAe,MAAK,eAAA,CAAe,CAAE,IAC7D,CAAC,UAAU,sBAAA,cAAC,QAAK,KAAI,gBAAe,MAAK,eAAA,CAAe,CAAE;AAAA,EACpE;AAEA,QAAM,SACF,sBAAA,cAAC,kBAAA,EAAkB,GAAG,aAAa,OAC9B,QACL;AAGJ,SAAO,yBAAyB,EAAE,QAAQ,QAAQ,QAAQ,MAAM,QAAA,GAAW,MAAM;AACrF,CAAC;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../../src/components/LegacyComponents/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type { DialogProps, DrawerProps, HangerProps, MenuProps, PopoverProps } from '@/components';\nimport { Icon } from '@/components';\nimport type * as ButtonPrimitive from '@/primitives/Button';\nimport type { Appearance } from '@/types';\n\nimport { APPEARANCE_CLASSNAME, getButtonClasses, createButtonWithTooltip, createButtonWithOverlays } from './util';\n\nimport './Button.css';\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport type LegacyButtonProps = ButtonPrimitive.ButtonProps & {\n /** Appearance will change the style of the button */\n appearance?: Appearance;\n /**\n * Dialog component associated with the button, clicking the button will open the dialog.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated dialog when clicked.\n */\n dialog?: (props: Partial<DialogProps>) => React.JSX.Element;\n /**\n * Drawer component associated with the button, clicking the button will open the drawer.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated drawer when clicked.\n */\n drawer?: (props: Partial<DrawerProps>) => React.JSX.Element;\n /** If fluid, button expands to the width of it's container */\n fluid?: boolean;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => React.JSX.Element;\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => React.JSX.Element;\n /**\n * Popover component associated with the button, clicking the button will open the popover.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated popover when clicked.\n */\n popover?: (props: Partial<PopoverProps>) => React.JSX.Element;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | React.JSX.Element;\n};\n\nconst LegacyButtonBase = React.forwardRef(function LegacyButtonBase(\n props: LegacyButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { appearance, fluid, ...otherProps } = props;\n const className = cn(\n getButtonClasses(),\n APPEARANCE_CLASSNAME[appearance ?? 'default'],\n 'rounded px-3',\n {\n 'w-full': fluid,\n },\n props.className\n );\n\n return createButtonWithTooltip(\n {\n ...otherProps,\n 'data-taco': 'legacy-button',\n 'data-appearance': appearance,\n },\n className,\n ref\n );\n});\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyButton = React.forwardRef(function LegacyButton(\n props: LegacyButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { dialog, drawer, hanger, menu, popover, ...buttonProps } = props;\n\n let children = buttonProps.children;\n\n // add a chevron icon to menu buttons\n if (typeof menu === 'function') {\n children = Array.isArray(children)\n ? [...children, <Icon key=\"chevron-down\" name=\"chevron-down\" />]\n : [children, <Icon key=\"chevron-down\" name=\"chevron-down\" />];\n }\n\n const button = (\n <LegacyButtonBase {...buttonProps} ref={ref}>\n {children}\n </LegacyButtonBase>\n );\n\n return createButtonWithOverlays({ dialog, drawer, hanger, menu, popover }, button);\n});\n"],"names":["LegacyButtonBase","LegacyButton"],"mappings":";;;;;AA8CA,MAAM,mBAAmB,MAAM,WAAW,SAASA,kBAC/C,OACA,KACF;AACE,QAAM,EAAE,YAAY,OAAO,GAAG,eAAe;AAC7C,QAAM,YAAY;AAAA,IACd,iBAAA;AAAA,IACA,qBAAqB,cAAc,SAAS;AAAA,IAC5C;AAAA,IACA;AAAA,MACI,UAAU;AAAA,IAAA;AAAA,IAEd,MAAM;AAAA,EAAA;AAGV,SAAO;AAAA,IACH;AAAA,MACI,GAAG;AAAA,MACH,aAAa;AAAA,MACb,mBAAmB;AAAA,IAAA;AAAA,IAEvB;AAAA,IACA;AAAA,EAAA;AAER,CAAC;AAKM,MAAM,eAAe,MAAM,WAAW,SAASC,cAClD,OACA,KACF;AACE,QAAM,EAAE,QAAQ,QAAQ,QAAQ,MAAM,SAAS,GAAG,gBAAgB;AAElE,MAAI,WAAW,YAAY;AAG3B,MAAI,OAAO,SAAS,YAAY;AAC5B,eAAW,MAAM,QAAQ,QAAQ,IAC3B,CAAC,GAAG,UAAU,sBAAA,cAAC,MAAA,EAAK,KAAI,gBAAe,MAAK,eAAA,CAAe,CAAE,IAC7D,CAAC,UAAU,sBAAA,cAAC,QAAK,KAAI,gBAAe,MAAK,eAAA,CAAe,CAAE;AAAA,EACpE;AAEA,QAAM,SACF,sBAAA,cAAC,kBAAA,EAAkB,GAAG,aAAa,OAC9B,QACL;AAGJ,SAAO,yBAAyB,EAAE,QAAQ,QAAQ,QAAQ,MAAM,QAAA,GAAW,MAAM;AACrF,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"util.cjs","sources":["../../../../src/components/LegacyComponents/Button/util.tsx"],"sourcesContent":["import React from 'react';\n\nimport * as ButtonPrimitive from '../../../primitives/Button';\nimport type { Appearance } from '../../../types';\nimport { Tooltip } from '../../Tooltip/Tooltip';\n\nexport const getButtonClasses = () => {\n return 'flex-shrink-0 min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max leading-5 inline-flex items-center justify-center focus-visible:yt-focus data-[state=instant-open]:yt-focus aria-disabled:cursor-not-allowed';\n};\n\nexport const APPEARANCE_CLASSNAME: Record<Appearance, string> = {\n primary:\n 'bg-blue-500 text-white visited:bg-blue-500 visited:text-white hover:bg-blue-700 hover:text-white hover:active:bg-blue-500 hover:active:text-white focus-visible:bg-blue-500 focus-visible:text-white aria-disabled:bg-blue-500/50 aria-disabled:active:bg-blue-500/50',\n danger: 'bg-red-500 text-white visited:bg-red-500 visited:text-white hover:bg-red-700 hover:text-white hover:active:bg-red-500 hover:active:text-white focus-visible:bg-red-500 focus-visible:text-white aria-disabled:bg-red-500/50 aria-disabled:active:bg-red-500/50',\n ghost: 'bg-white border border-blue-500 text-blue-500 visited:text-blue-500 hover:bg-blue-100 hover:text-blue-700 focus-visible:text-blue-700 aria-disabled:border-blue-500/50 aria-disabled:text-blue-500/50 aria-disabled:bg-white',\n discrete:\n 'bg-transparent text-blue-500 visited:text-blue-500 hover:text-blue-700 focus-visible:text-blue-700 aria-disabled:text-blue-500/50',\n transparent:\n 'bg-transparent text-black visited:text-black hover:text-black focus-visible:text-black hover:bg-black-subtle aria-disabled:text-black/30 aria-disabled:bg-transparent',\n default:\n 'bg-gray-100 text-black visited:bg-gray-200 visited:text-black hover:bg-gray-200 hover:text-black focus-visible:bg-gray-200 text-black aria-disabled:bg-gray-100 aria-disabled:text-black/30',\n};\n\n// icon buttons render the discrete appearance in black rather than blue\nexport const ICON_APPEARANCE_CLASSNAME: Record<Appearance, string> = {\n ...APPEARANCE_CLASSNAME,\n discrete:\n 'bg-transparent text-black visited:text-black hover:bg-black-subtle focus-visible:bg-black-subtle aria-disabled:text-black/30',\n};\n\nexport const createButtonWithTooltip = (\n props: any,\n className: string,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n): React.JSX.Element => {\n const { tooltip, ...buttonProps } = props;\n const button = <ButtonPrimitive.Button {...buttonProps} className={className} ref={ref} />;\n\n if (tooltip) {\n return <Tooltip title={tooltip}>{button}</Tooltip>;\n }\n\n return button;\n};\n\nexport const createButtonWithOverlays = (props: any, buttonBase: React.JSX.Element) => {\n const { dialog, drawer, hanger, menu, popover } = props;\n let button = buttonBase;\n\n if (typeof dialog === 'function') {\n button = dialog({ trigger: button });\n } else if (typeof drawer === 'function') {\n button = drawer({ trigger: button });\n } else if (typeof menu === 'function') {\n button = menu({ trigger: button });\n } else if (typeof popover === 'function') {\n button = popover({ trigger: button });\n }\n\n if (typeof hanger === 'function') {\n button = hanger({ anchor: button });\n }\n\n return button;\n};\n"],"names":["ButtonPrimitive.Button","Tooltip"],"mappings":";;;;;AAMO,MAAM,mBAAmB,MAAM;AAClC,SAAO;AACX;AAEO,MAAM,uBAAmD;AAAA,EAC5D,SACI;AAAA,EACJ,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UACI;AAAA,EACJ,aACI;AAAA,EACJ,SACI;AACR;AAGO,MAAM,4BAAwD;AAAA,EACjE,GAAG;AAAA,EACH,UACI;AACR;AAEO,MAAM,0BAA0B,CACnC,OACA,WACA,QACoB;AACpB,QAAM,EAAE,SAAS,GAAG,YAAA,IAAgB;AACpC,QAAM,6CAAUA,OAAAA,QAAA,EAAwB,GAAG,aAAa,WAAsB,KAAU;AAExF,MAAI,SAAS;AACT,WAAO,sBAAA,cAACC,QAAAA,SAAA,EAAQ,OAAO,QAAA,GAAU,MAAO;AAAA,EAC5C;AAEA,SAAO;AACX;AAEO,MAAM,2BAA2B,CAAC,OAAY,eAAkC;AACnF,QAAM,EAAE,QAAQ,QAAQ,QAAQ,MAAM,YAAY;AAClD,MAAI,SAAS;AAEb,MAAI,OAAO,WAAW,YAAY;AAC9B,aAAS,OAAO,EAAE,SAAS,OAAA,CAAQ;AAAA,EACvC,WAAW,OAAO,WAAW,YAAY;AACrC,aAAS,OAAO,EAAE,SAAS,OAAA,CAAQ;AAAA,EACvC,WAAW,OAAO,SAAS,YAAY;AACnC,aAAS,KAAK,EAAE,SAAS,OAAA,CAAQ;AAAA,EACrC,WAAW,OAAO,YAAY,YAAY;AACtC,aAAS,QAAQ,EAAE,SAAS,OAAA,CAAQ;AAAA,EACxC;AAEA,MAAI,OAAO,WAAW,YAAY;AAC9B,aAAS,OAAO,EAAE,QAAQ,OAAA,CAAQ;AAAA,EACtC;AAEA,SAAO;AACX;;;;;;"}
1
+ {"version":3,"file":"util.cjs","sources":["../../../../src/components/LegacyComponents/Button/util.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Tooltip } from '@/components';\nimport * as ButtonPrimitive from '@/primitives/Button';\nimport type { Appearance } from '@/types';\n\nexport const getButtonClasses = () => {\n return 'flex-shrink-0 min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max leading-5 inline-flex items-center justify-center focus-visible:yt-focus data-[state=instant-open]:yt-focus aria-disabled:cursor-not-allowed';\n};\n\nexport const APPEARANCE_CLASSNAME: Record<Appearance, string> = {\n primary:\n 'bg-blue-500 text-white visited:bg-blue-500 visited:text-white hover:bg-blue-700 hover:text-white hover:active:bg-blue-500 hover:active:text-white focus-visible:bg-blue-500 focus-visible:text-white aria-disabled:bg-blue-500/50 aria-disabled:active:bg-blue-500/50',\n danger: 'bg-red-500 text-white visited:bg-red-500 visited:text-white hover:bg-red-700 hover:text-white hover:active:bg-red-500 hover:active:text-white focus-visible:bg-red-500 focus-visible:text-white aria-disabled:bg-red-500/50 aria-disabled:active:bg-red-500/50',\n ghost: 'bg-white border border-blue-500 text-blue-500 visited:text-blue-500 hover:bg-blue-100 hover:text-blue-700 focus-visible:text-blue-700 aria-disabled:border-blue-500/50 aria-disabled:text-blue-500/50 aria-disabled:bg-white',\n discrete:\n 'bg-transparent text-blue-500 visited:text-blue-500 hover:text-blue-700 focus-visible:text-blue-700 aria-disabled:text-blue-500/50',\n transparent:\n 'bg-transparent text-black visited:text-black hover:text-black focus-visible:text-black hover:bg-black-subtle aria-disabled:text-black/30 aria-disabled:bg-transparent',\n default:\n 'bg-gray-100 text-black visited:bg-gray-200 visited:text-black hover:bg-gray-200 hover:text-black focus-visible:bg-gray-200 text-black aria-disabled:bg-gray-100 aria-disabled:text-black/30',\n};\n\n// icon buttons render the discrete appearance in black rather than blue\nexport const ICON_APPEARANCE_CLASSNAME: Record<Appearance, string> = {\n ...APPEARANCE_CLASSNAME,\n discrete:\n 'bg-transparent text-black visited:text-black hover:bg-black-subtle focus-visible:bg-black-subtle aria-disabled:text-black/30',\n};\n\nexport const createButtonWithTooltip = (\n props: any,\n className: string,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n): React.JSX.Element => {\n const { tooltip, ...buttonProps } = props;\n const button = <ButtonPrimitive.Button {...buttonProps} className={className} ref={ref} />;\n\n if (tooltip) {\n return <Tooltip title={tooltip}>{button}</Tooltip>;\n }\n\n return button;\n};\n\nexport const createButtonWithOverlays = (props: any, buttonBase: React.JSX.Element) => {\n const { dialog, drawer, hanger, menu, popover } = props;\n let button = buttonBase;\n\n if (typeof dialog === 'function') {\n button = dialog({ trigger: button });\n } else if (typeof drawer === 'function') {\n button = drawer({ trigger: button });\n } else if (typeof menu === 'function') {\n button = menu({ trigger: button });\n } else if (typeof popover === 'function') {\n button = popover({ trigger: button });\n }\n\n if (typeof hanger === 'function') {\n button = hanger({ anchor: button });\n }\n\n return button;\n};\n"],"names":["ButtonPrimitive.Button","Tooltip"],"mappings":";;;;;AAMO,MAAM,mBAAmB,MAAM;AAClC,SAAO;AACX;AAEO,MAAM,uBAAmD;AAAA,EAC5D,SACI;AAAA,EACJ,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UACI;AAAA,EACJ,aACI;AAAA,EACJ,SACI;AACR;AAGO,MAAM,4BAAwD;AAAA,EACjE,GAAG;AAAA,EACH,UACI;AACR;AAEO,MAAM,0BAA0B,CACnC,OACA,WACA,QACoB;AACpB,QAAM,EAAE,SAAS,GAAG,YAAA,IAAgB;AACpC,QAAM,6CAAUA,OAAAA,QAAA,EAAwB,GAAG,aAAa,WAAsB,KAAU;AAExF,MAAI,SAAS;AACT,WAAO,sBAAA,cAACC,QAAAA,SAAA,EAAQ,OAAO,QAAA,GAAU,MAAO;AAAA,EAC5C;AAEA,SAAO;AACX;AAEO,MAAM,2BAA2B,CAAC,OAAY,eAAkC;AACnF,QAAM,EAAE,QAAQ,QAAQ,QAAQ,MAAM,YAAY;AAClD,MAAI,SAAS;AAEb,MAAI,OAAO,WAAW,YAAY;AAC9B,aAAS,OAAO,EAAE,SAAS,OAAA,CAAQ;AAAA,EACvC,WAAW,OAAO,WAAW,YAAY;AACrC,aAAS,OAAO,EAAE,SAAS,OAAA,CAAQ;AAAA,EACvC,WAAW,OAAO,SAAS,YAAY;AACnC,aAAS,KAAK,EAAE,SAAS,OAAA,CAAQ;AAAA,EACrC,WAAW,OAAO,YAAY,YAAY;AACtC,aAAS,QAAQ,EAAE,SAAS,OAAA,CAAQ;AAAA,EACxC;AAEA,MAAI,OAAO,WAAW,YAAY;AAC9B,aAAS,OAAO,EAAE,QAAQ,OAAA,CAAQ;AAAA,EACtC;AAEA,SAAO;AACX;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sources":["../../../../src/components/LegacyComponents/Button/util.tsx"],"sourcesContent":["import React from 'react';\n\nimport * as ButtonPrimitive from '../../../primitives/Button';\nimport type { Appearance } from '../../../types';\nimport { Tooltip } from '../../Tooltip/Tooltip';\n\nexport const getButtonClasses = () => {\n return 'flex-shrink-0 min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max leading-5 inline-flex items-center justify-center focus-visible:yt-focus data-[state=instant-open]:yt-focus aria-disabled:cursor-not-allowed';\n};\n\nexport const APPEARANCE_CLASSNAME: Record<Appearance, string> = {\n primary:\n 'bg-blue-500 text-white visited:bg-blue-500 visited:text-white hover:bg-blue-700 hover:text-white hover:active:bg-blue-500 hover:active:text-white focus-visible:bg-blue-500 focus-visible:text-white aria-disabled:bg-blue-500/50 aria-disabled:active:bg-blue-500/50',\n danger: 'bg-red-500 text-white visited:bg-red-500 visited:text-white hover:bg-red-700 hover:text-white hover:active:bg-red-500 hover:active:text-white focus-visible:bg-red-500 focus-visible:text-white aria-disabled:bg-red-500/50 aria-disabled:active:bg-red-500/50',\n ghost: 'bg-white border border-blue-500 text-blue-500 visited:text-blue-500 hover:bg-blue-100 hover:text-blue-700 focus-visible:text-blue-700 aria-disabled:border-blue-500/50 aria-disabled:text-blue-500/50 aria-disabled:bg-white',\n discrete:\n 'bg-transparent text-blue-500 visited:text-blue-500 hover:text-blue-700 focus-visible:text-blue-700 aria-disabled:text-blue-500/50',\n transparent:\n 'bg-transparent text-black visited:text-black hover:text-black focus-visible:text-black hover:bg-black-subtle aria-disabled:text-black/30 aria-disabled:bg-transparent',\n default:\n 'bg-gray-100 text-black visited:bg-gray-200 visited:text-black hover:bg-gray-200 hover:text-black focus-visible:bg-gray-200 text-black aria-disabled:bg-gray-100 aria-disabled:text-black/30',\n};\n\n// icon buttons render the discrete appearance in black rather than blue\nexport const ICON_APPEARANCE_CLASSNAME: Record<Appearance, string> = {\n ...APPEARANCE_CLASSNAME,\n discrete:\n 'bg-transparent text-black visited:text-black hover:bg-black-subtle focus-visible:bg-black-subtle aria-disabled:text-black/30',\n};\n\nexport const createButtonWithTooltip = (\n props: any,\n className: string,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n): React.JSX.Element => {\n const { tooltip, ...buttonProps } = props;\n const button = <ButtonPrimitive.Button {...buttonProps} className={className} ref={ref} />;\n\n if (tooltip) {\n return <Tooltip title={tooltip}>{button}</Tooltip>;\n }\n\n return button;\n};\n\nexport const createButtonWithOverlays = (props: any, buttonBase: React.JSX.Element) => {\n const { dialog, drawer, hanger, menu, popover } = props;\n let button = buttonBase;\n\n if (typeof dialog === 'function') {\n button = dialog({ trigger: button });\n } else if (typeof drawer === 'function') {\n button = drawer({ trigger: button });\n } else if (typeof menu === 'function') {\n button = menu({ trigger: button });\n } else if (typeof popover === 'function') {\n button = popover({ trigger: button });\n }\n\n if (typeof hanger === 'function') {\n button = hanger({ anchor: button });\n }\n\n return button;\n};\n"],"names":["ButtonPrimitive.Button","React"],"mappings":";;;AAMO,MAAM,mBAAmB,MAAM;AAClC,SAAO;AACX;AAEO,MAAM,uBAAmD;AAAA,EAC5D,SACI;AAAA,EACJ,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UACI;AAAA,EACJ,aACI;AAAA,EACJ,SACI;AACR;AAGO,MAAM,4BAAwD;AAAA,EACjE,GAAG;AAAA,EACH,UACI;AACR;AAEO,MAAM,0BAA0B,CACnC,OACA,WACA,QACoB;AACpB,QAAM,EAAE,SAAS,GAAG,YAAA,IAAgB;AACpC,QAAM,sDAAUA,QAAA,EAAwB,GAAG,aAAa,WAAsB,KAAU;AAExF,MAAI,SAAS;AACT,WAAOC,+BAAA,cAAC,SAAA,EAAQ,OAAO,QAAA,GAAU,MAAO;AAAA,EAC5C;AAEA,SAAO;AACX;AAEO,MAAM,2BAA2B,CAAC,OAAY,eAAkC;AACnF,QAAM,EAAE,QAAQ,QAAQ,QAAQ,MAAM,YAAY;AAClD,MAAI,SAAS;AAEb,MAAI,OAAO,WAAW,YAAY;AAC9B,aAAS,OAAO,EAAE,SAAS,OAAA,CAAQ;AAAA,EACvC,WAAW,OAAO,WAAW,YAAY;AACrC,aAAS,OAAO,EAAE,SAAS,OAAA,CAAQ;AAAA,EACvC,WAAW,OAAO,SAAS,YAAY;AACnC,aAAS,KAAK,EAAE,SAAS,OAAA,CAAQ;AAAA,EACrC,WAAW,OAAO,YAAY,YAAY;AACtC,aAAS,QAAQ,EAAE,SAAS,OAAA,CAAQ;AAAA,EACxC;AAEA,MAAI,OAAO,WAAW,YAAY;AAC9B,aAAS,OAAO,EAAE,QAAQ,OAAA,CAAQ;AAAA,EACtC;AAEA,SAAO;AACX;"}
1
+ {"version":3,"file":"util.js","sources":["../../../../src/components/LegacyComponents/Button/util.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Tooltip } from '@/components';\nimport * as ButtonPrimitive from '@/primitives/Button';\nimport type { Appearance } from '@/types';\n\nexport const getButtonClasses = () => {\n return 'flex-shrink-0 min-h-[theme(spacing.8)] min-w-[theme(spacing.8)] gap-1 h-max leading-5 inline-flex items-center justify-center focus-visible:yt-focus data-[state=instant-open]:yt-focus aria-disabled:cursor-not-allowed';\n};\n\nexport const APPEARANCE_CLASSNAME: Record<Appearance, string> = {\n primary:\n 'bg-blue-500 text-white visited:bg-blue-500 visited:text-white hover:bg-blue-700 hover:text-white hover:active:bg-blue-500 hover:active:text-white focus-visible:bg-blue-500 focus-visible:text-white aria-disabled:bg-blue-500/50 aria-disabled:active:bg-blue-500/50',\n danger: 'bg-red-500 text-white visited:bg-red-500 visited:text-white hover:bg-red-700 hover:text-white hover:active:bg-red-500 hover:active:text-white focus-visible:bg-red-500 focus-visible:text-white aria-disabled:bg-red-500/50 aria-disabled:active:bg-red-500/50',\n ghost: 'bg-white border border-blue-500 text-blue-500 visited:text-blue-500 hover:bg-blue-100 hover:text-blue-700 focus-visible:text-blue-700 aria-disabled:border-blue-500/50 aria-disabled:text-blue-500/50 aria-disabled:bg-white',\n discrete:\n 'bg-transparent text-blue-500 visited:text-blue-500 hover:text-blue-700 focus-visible:text-blue-700 aria-disabled:text-blue-500/50',\n transparent:\n 'bg-transparent text-black visited:text-black hover:text-black focus-visible:text-black hover:bg-black-subtle aria-disabled:text-black/30 aria-disabled:bg-transparent',\n default:\n 'bg-gray-100 text-black visited:bg-gray-200 visited:text-black hover:bg-gray-200 hover:text-black focus-visible:bg-gray-200 text-black aria-disabled:bg-gray-100 aria-disabled:text-black/30',\n};\n\n// icon buttons render the discrete appearance in black rather than blue\nexport const ICON_APPEARANCE_CLASSNAME: Record<Appearance, string> = {\n ...APPEARANCE_CLASSNAME,\n discrete:\n 'bg-transparent text-black visited:text-black hover:bg-black-subtle focus-visible:bg-black-subtle aria-disabled:text-black/30',\n};\n\nexport const createButtonWithTooltip = (\n props: any,\n className: string,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n): React.JSX.Element => {\n const { tooltip, ...buttonProps } = props;\n const button = <ButtonPrimitive.Button {...buttonProps} className={className} ref={ref} />;\n\n if (tooltip) {\n return <Tooltip title={tooltip}>{button}</Tooltip>;\n }\n\n return button;\n};\n\nexport const createButtonWithOverlays = (props: any, buttonBase: React.JSX.Element) => {\n const { dialog, drawer, hanger, menu, popover } = props;\n let button = buttonBase;\n\n if (typeof dialog === 'function') {\n button = dialog({ trigger: button });\n } else if (typeof drawer === 'function') {\n button = drawer({ trigger: button });\n } else if (typeof menu === 'function') {\n button = menu({ trigger: button });\n } else if (typeof popover === 'function') {\n button = popover({ trigger: button });\n }\n\n if (typeof hanger === 'function') {\n button = hanger({ anchor: button });\n }\n\n return button;\n};\n"],"names":["ButtonPrimitive.Button","React"],"mappings":";;;AAMO,MAAM,mBAAmB,MAAM;AAClC,SAAO;AACX;AAEO,MAAM,uBAAmD;AAAA,EAC5D,SACI;AAAA,EACJ,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,UACI;AAAA,EACJ,aACI;AAAA,EACJ,SACI;AACR;AAGO,MAAM,4BAAwD;AAAA,EACjE,GAAG;AAAA,EACH,UACI;AACR;AAEO,MAAM,0BAA0B,CACnC,OACA,WACA,QACoB;AACpB,QAAM,EAAE,SAAS,GAAG,YAAA,IAAgB;AACpC,QAAM,sDAAUA,QAAA,EAAwB,GAAG,aAAa,WAAsB,KAAU;AAExF,MAAI,SAAS;AACT,WAAOC,+BAAA,cAAC,SAAA,EAAQ,OAAO,QAAA,GAAU,MAAO;AAAA,EAC5C;AAEA,SAAO;AACX;AAEO,MAAM,2BAA2B,CAAC,OAAY,eAAkC;AACnF,QAAM,EAAE,QAAQ,QAAQ,QAAQ,MAAM,YAAY;AAClD,MAAI,SAAS;AAEb,MAAI,OAAO,WAAW,YAAY;AAC9B,aAAS,OAAO,EAAE,SAAS,OAAA,CAAQ;AAAA,EACvC,WAAW,OAAO,WAAW,YAAY;AACrC,aAAS,OAAO,EAAE,SAAS,OAAA,CAAQ;AAAA,EACvC,WAAW,OAAO,SAAS,YAAY;AACnC,aAAS,KAAK,EAAE,SAAS,OAAA,CAAQ;AAAA,EACrC,WAAW,OAAO,YAAY,YAAY;AACtC,aAAS,QAAQ,EAAE,SAAS,OAAA,CAAQ;AAAA,EACxC;AAEA,MAAI,OAAO,WAAW,YAAY;AAC9B,aAAS,OAAO,EAAE,QAAQ,OAAA,CAAQ;AAAA,EACtC;AAEA,SAAO;AACX;"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const cn = require("clsx");
4
4
  const React = require("react");
5
- const Icon = require("../../Icon/Icon.cjs");
6
5
  const util = require("../Button/util.cjs");
6
+ const Icon = require("../../Icon/Icon.cjs");
7
7
  function _interopNamespaceDefault(e) {
8
8
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
9
9
  if (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.cjs","sources":["../../../../src/components/LegacyComponents/IconButton/IconButton.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type * as ButtonPrimitive from '../../../primitives/Button';\nimport type { Appearance } from '../../../types';\nimport type { DialogProps } from '../../Dialog/Dialog';\nimport type { HangerProps } from '../../Hanger/Hanger';\nimport type { IconName } from '../../Icon/Icon';\nimport { Icon } from '../../Icon/Icon';\nimport type { MenuProps } from '../../Menu/Menu';\nimport type { PopoverProps } from '../../Popover/Popover';\nimport { ICON_APPEARANCE_CLASSNAME, getButtonClasses, createButtonWithTooltip, createButtonWithOverlays } from '../Button/util';\n\n/**\n * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.\n */\nexport type LegacyIconButtonProps = Omit<ButtonPrimitive.ButtonProps, 'children'> & {\n /** Appearance will change the style of the button */\n appearance?: Appearance;\n /**\n * Dialog component associated with the button, clicking the button will open the dialog.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated dialog when clicked.\n */\n dialog?: (props: Partial<DialogProps>) => React.JSX.Element;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => React.JSX.Element;\n /** Set which icon should be rendered within button */\n icon: IconName; // this dynamic type causes the type extraction for props to fail\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => React.JSX.Element;\n /**\n * Popover component associated with the button, clicking the button will open the popover.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated popover when clicked.\n */\n popover?: (props: Partial<PopoverProps>) => React.JSX.Element;\n /**\n * Set whether the button is rounded.\n * Default value is `false`\n */\n rounded?: boolean;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | React.JSX.Element;\n};\n\n/**\n * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyIconButtonBase = React.forwardRef(function LegacyIconButtonBase(\n props: LegacyIconButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { icon, rounded = false, appearance = 'default', ...otherProps } = props;\n\n const className = cn(\n 'w-8',\n getButtonClasses(),\n ICON_APPEARANCE_CLASSNAME[appearance],\n {\n 'rounded-full': rounded,\n rounded: !rounded,\n },\n props.className\n );\n\n if (!icon) {\n return null;\n }\n\n return createButtonWithTooltip(\n // forward the caller's own appearance so an omitted prop stays omitted from the DOM\n {\n 'data-taco': 'legacy-icon-button',\n appearance: props.appearance,\n ...otherProps,\n children: <Icon name={icon} className=\"m-0 p-0\" />,\n },\n className,\n ref\n );\n});\n\n/**\n * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyIconButton = React.forwardRef(function LegacyIconButton(\n props: LegacyIconButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { dialog, hanger, menu, popover, ...buttonProps } = props;\n const button = <LegacyIconButtonBase {...buttonProps} ref={ref} />;\n\n return createButtonWithOverlays({ dialog, hanger, menu, popover }, button);\n});\n"],"names":["React","LegacyIconButtonBase","getButtonClasses","ICON_APPEARANCE_CLASSNAME","createButtonWithTooltip","Icon","LegacyIconButton","createButtonWithOverlays"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiDO,MAAM,uBAAuBA,iBAAM,WAAW,SAASC,sBAC1D,OACA,KACF;AACE,QAAM,EAAE,MAAM,UAAU,OAAO,aAAa,WAAW,GAAG,eAAe;AAEzE,QAAM,YAAY;AAAA,IACd;AAAA,IACAC,sBAAA;AAAA,IACAC,KAAAA,0BAA0B,UAAU;AAAA,IACpC;AAAA,MACI,gBAAgB;AAAA,MAChB,SAAS,CAAC;AAAA,IAAA;AAAA,IAEd,MAAM;AAAA,EAAA;AAGV,MAAI,CAAC,MAAM;AACP,WAAO;AAAA,EACX;AAEA,SAAOC,KAAAA;AAAAA;AAAAA,IAEH;AAAA,MACI,aAAa;AAAA,MACb,YAAY,MAAM;AAAA,MAClB,GAAG;AAAA,MACH,UAAUJ,iCAAA,cAACK,KAAAA,MAAA,EAAK,MAAM,MAAM,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,IAEpD;AAAA,IACA;AAAA,EAAA;AAER,CAAC;AAKM,MAAM,mBAAmBL,iBAAM,WAAW,SAASM,kBACtD,OACA,KACF;AACE,QAAM,EAAE,QAAQ,QAAQ,MAAM,SAAS,GAAG,gBAAgB;AAC1D,QAAM,SAASN,iCAAA,cAAC,sBAAA,EAAsB,GAAG,aAAa,KAAU;AAEhE,SAAOO,KAAAA,yBAAyB,EAAE,QAAQ,QAAQ,MAAM,QAAA,GAAW,MAAM;AAC7E,CAAC;;;"}
1
+ {"version":3,"file":"IconButton.cjs","sources":["../../../../src/components/LegacyComponents/IconButton/IconButton.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type { DialogProps, HangerProps, MenuProps, PopoverProps, IconName } from '@/components';\nimport { Icon } from '@/components';\nimport type * as ButtonPrimitive from '@/primitives/Button';\nimport type { Appearance } from '@/types';\n\nimport { ICON_APPEARANCE_CLASSNAME, getButtonClasses, createButtonWithTooltip, createButtonWithOverlays } from '../Button/util';\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport type LegacyIconButtonProps = Omit<ButtonPrimitive.ButtonProps, 'children'> & {\n /** Appearance will change the style of the button */\n appearance?: Appearance;\n /**\n * Dialog component associated with the button, clicking the button will open the dialog.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated dialog when clicked.\n */\n dialog?: (props: Partial<DialogProps>) => React.JSX.Element;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => React.JSX.Element;\n /** Set which icon should be rendered within button */\n icon: IconName; // this dynamic type causes the type extraction for props to fail\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => React.JSX.Element;\n /**\n * Popover component associated with the button, clicking the button will open the popover.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated popover when clicked.\n */\n popover?: (props: Partial<PopoverProps>) => React.JSX.Element;\n /**\n * Set whether the button is rounded.\n * Default value is `false`\n */\n rounded?: boolean;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | React.JSX.Element;\n};\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyIconButtonBase = React.forwardRef(function LegacyIconButtonBase(\n props: LegacyIconButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { icon, rounded = false, appearance = 'default', ...otherProps } = props;\n\n const className = cn(\n 'w-8',\n getButtonClasses(),\n ICON_APPEARANCE_CLASSNAME[appearance],\n {\n 'rounded-full': rounded,\n rounded: !rounded,\n },\n props.className\n );\n\n if (!icon) {\n return null;\n }\n\n return createButtonWithTooltip(\n // forward the caller's own appearance so an omitted prop stays omitted from the DOM\n {\n 'data-taco': 'legacy-icon-button',\n appearance: props.appearance,\n ...otherProps,\n children: <Icon name={icon} className=\"m-0 p-0\" />,\n },\n className,\n ref\n );\n});\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyIconButton = React.forwardRef(function LegacyIconButton(\n props: LegacyIconButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { dialog, hanger, menu, popover, ...buttonProps } = props;\n const button = <LegacyIconButtonBase {...buttonProps} ref={ref} />;\n\n return createButtonWithOverlays({ dialog, hanger, menu, popover }, button);\n});\n"],"names":["React","LegacyIconButtonBase","getButtonClasses","ICON_APPEARANCE_CLASSNAME","createButtonWithTooltip","Icon","LegacyIconButton","createButtonWithOverlays"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA8CO,MAAM,uBAAuBA,iBAAM,WAAW,SAASC,sBAC1D,OACA,KACF;AACE,QAAM,EAAE,MAAM,UAAU,OAAO,aAAa,WAAW,GAAG,eAAe;AAEzE,QAAM,YAAY;AAAA,IACd;AAAA,IACAC,sBAAA;AAAA,IACAC,KAAAA,0BAA0B,UAAU;AAAA,IACpC;AAAA,MACI,gBAAgB;AAAA,MAChB,SAAS,CAAC;AAAA,IAAA;AAAA,IAEd,MAAM;AAAA,EAAA;AAGV,MAAI,CAAC,MAAM;AACP,WAAO;AAAA,EACX;AAEA,SAAOC,KAAAA;AAAAA;AAAAA,IAEH;AAAA,MACI,aAAa;AAAA,MACb,YAAY,MAAM;AAAA,MAClB,GAAG;AAAA,MACH,UAAUJ,iCAAA,cAACK,KAAAA,MAAA,EAAK,MAAM,MAAM,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,IAEpD;AAAA,IACA;AAAA,EAAA;AAER,CAAC;AAKM,MAAM,mBAAmBL,iBAAM,WAAW,SAASM,kBACtD,OACA,KACF;AACE,QAAM,EAAE,QAAQ,QAAQ,MAAM,SAAS,GAAG,gBAAgB;AAC1D,QAAM,SAASN,iCAAA,cAAC,sBAAA,EAAsB,GAAG,aAAa,KAAU;AAEhE,SAAOO,KAAAA,yBAAyB,EAAE,QAAQ,QAAQ,MAAM,QAAA,GAAW,MAAM;AAC7E,CAAC;;;"}
@@ -1,13 +1,9 @@
1
+ import { DialogProps, HangerProps, MenuProps, PopoverProps, IconName } from '../..';
1
2
  import { Appearance } from '../../../types';
2
- import { DialogProps } from '../../Dialog/Dialog';
3
- import { HangerProps } from '../../Hanger/Hanger';
4
- import { IconName } from '../../Icon/Icon';
5
- import { MenuProps } from '../../Menu/Menu';
6
- import { PopoverProps } from '../../Popover/Popover';
7
3
  import * as React from 'react';
8
4
  import type * as ButtonPrimitive from '../../../primitives/Button';
9
5
  /**
10
- * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.
6
+ * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.
11
7
  */
12
8
  export type LegacyIconButtonProps = Omit<ButtonPrimitive.ButtonProps, 'children'> & {
13
9
  /** Appearance will change the style of the button */
@@ -39,7 +35,7 @@ export type LegacyIconButtonProps = Omit<ButtonPrimitive.ButtonProps, 'children'
39
35
  tooltip?: string | React.JSX.Element;
40
36
  };
41
37
  /**
42
- * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.
38
+ * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.
43
39
  */
44
40
  export declare const LegacyIconButtonBase: React.ForwardRefExoticComponent<Omit<ButtonPrimitive.ButtonProps, "children"> & {
45
41
  /** Appearance will change the style of the button */
@@ -71,7 +67,7 @@ export declare const LegacyIconButtonBase: React.ForwardRefExoticComponent<Omit<
71
67
  tooltip?: string | React.JSX.Element;
72
68
  } & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
73
69
  /**
74
- * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.
70
+ * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.
75
71
  */
76
72
  export declare const LegacyIconButton: React.ForwardRefExoticComponent<Omit<ButtonPrimitive.ButtonProps, "children"> & {
77
73
  /** Appearance will change the style of the button */
@@ -1,7 +1,7 @@
1
1
  import cn from "clsx";
2
2
  import * as React from "react";
3
- import { Icon } from "../../Icon/Icon.js";
4
3
  import { createButtonWithOverlays, getButtonClasses, ICON_APPEARANCE_CLASSNAME, createButtonWithTooltip } from "../Button/util.js";
4
+ import { Icon } from "../../Icon/Icon.js";
5
5
  const LegacyIconButtonBase = React.forwardRef(function LegacyIconButtonBase2(props, ref) {
6
6
  const { icon, rounded = false, appearance = "default", ...otherProps } = props;
7
7
  const className = cn(
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.js","sources":["../../../../src/components/LegacyComponents/IconButton/IconButton.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type * as ButtonPrimitive from '../../../primitives/Button';\nimport type { Appearance } from '../../../types';\nimport type { DialogProps } from '../../Dialog/Dialog';\nimport type { HangerProps } from '../../Hanger/Hanger';\nimport type { IconName } from '../../Icon/Icon';\nimport { Icon } from '../../Icon/Icon';\nimport type { MenuProps } from '../../Menu/Menu';\nimport type { PopoverProps } from '../../Popover/Popover';\nimport { ICON_APPEARANCE_CLASSNAME, getButtonClasses, createButtonWithTooltip, createButtonWithOverlays } from '../Button/util';\n\n/**\n * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.\n */\nexport type LegacyIconButtonProps = Omit<ButtonPrimitive.ButtonProps, 'children'> & {\n /** Appearance will change the style of the button */\n appearance?: Appearance;\n /**\n * Dialog component associated with the button, clicking the button will open the dialog.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated dialog when clicked.\n */\n dialog?: (props: Partial<DialogProps>) => React.JSX.Element;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => React.JSX.Element;\n /** Set which icon should be rendered within button */\n icon: IconName; // this dynamic type causes the type extraction for props to fail\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => React.JSX.Element;\n /**\n * Popover component associated with the button, clicking the button will open the popover.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated popover when clicked.\n */\n popover?: (props: Partial<PopoverProps>) => React.JSX.Element;\n /**\n * Set whether the button is rounded.\n * Default value is `false`\n */\n rounded?: boolean;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | React.JSX.Element;\n};\n\n/**\n * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyIconButtonBase = React.forwardRef(function LegacyIconButtonBase(\n props: LegacyIconButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { icon, rounded = false, appearance = 'default', ...otherProps } = props;\n\n const className = cn(\n 'w-8',\n getButtonClasses(),\n ICON_APPEARANCE_CLASSNAME[appearance],\n {\n 'rounded-full': rounded,\n rounded: !rounded,\n },\n props.className\n );\n\n if (!icon) {\n return null;\n }\n\n return createButtonWithTooltip(\n // forward the caller's own appearance so an omitted prop stays omitted from the DOM\n {\n 'data-taco': 'legacy-icon-button',\n appearance: props.appearance,\n ...otherProps,\n children: <Icon name={icon} className=\"m-0 p-0\" />,\n },\n className,\n ref\n );\n});\n\n/**\n * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyIconButton = React.forwardRef(function LegacyIconButton(\n props: LegacyIconButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { dialog, hanger, menu, popover, ...buttonProps } = props;\n const button = <LegacyIconButtonBase {...buttonProps} ref={ref} />;\n\n return createButtonWithOverlays({ dialog, hanger, menu, popover }, button);\n});\n"],"names":["LegacyIconButtonBase","LegacyIconButton"],"mappings":";;;;AAiDO,MAAM,uBAAuB,MAAM,WAAW,SAASA,sBAC1D,OACA,KACF;AACE,QAAM,EAAE,MAAM,UAAU,OAAO,aAAa,WAAW,GAAG,eAAe;AAEzE,QAAM,YAAY;AAAA,IACd;AAAA,IACA,iBAAA;AAAA,IACA,0BAA0B,UAAU;AAAA,IACpC;AAAA,MACI,gBAAgB;AAAA,MAChB,SAAS,CAAC;AAAA,IAAA;AAAA,IAEd,MAAM;AAAA,EAAA;AAGV,MAAI,CAAC,MAAM;AACP,WAAO;AAAA,EACX;AAEA,SAAO;AAAA;AAAA,IAEH;AAAA,MACI,aAAa;AAAA,MACb,YAAY,MAAM;AAAA,MAClB,GAAG;AAAA,MACH,UAAU,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,IAEpD;AAAA,IACA;AAAA,EAAA;AAER,CAAC;AAKM,MAAM,mBAAmB,MAAM,WAAW,SAASC,kBACtD,OACA,KACF;AACE,QAAM,EAAE,QAAQ,QAAQ,MAAM,SAAS,GAAG,gBAAgB;AAC1D,QAAM,SAAS,sBAAA,cAAC,sBAAA,EAAsB,GAAG,aAAa,KAAU;AAEhE,SAAO,yBAAyB,EAAE,QAAQ,QAAQ,MAAM,QAAA,GAAW,MAAM;AAC7E,CAAC;"}
1
+ {"version":3,"file":"IconButton.js","sources":["../../../../src/components/LegacyComponents/IconButton/IconButton.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nimport type { DialogProps, HangerProps, MenuProps, PopoverProps, IconName } from '@/components';\nimport { Icon } from '@/components';\nimport type * as ButtonPrimitive from '@/primitives/Button';\nimport type { Appearance } from '@/types';\n\nimport { ICON_APPEARANCE_CLASSNAME, getButtonClasses, createButtonWithTooltip, createButtonWithOverlays } from '../Button/util';\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport type LegacyIconButtonProps = Omit<ButtonPrimitive.ButtonProps, 'children'> & {\n /** Appearance will change the style of the button */\n appearance?: Appearance;\n /**\n * Dialog component associated with the button, clicking the button will open the dialog.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated dialog when clicked.\n */\n dialog?: (props: Partial<DialogProps>) => React.JSX.Element;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => React.JSX.Element;\n /** Set which icon should be rendered within button */\n icon: IconName; // this dynamic type causes the type extraction for props to fail\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => React.JSX.Element;\n /**\n * Popover component associated with the button, clicking the button will open the popover.\n * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of\n * the button should be only to open the associated popover when clicked.\n */\n popover?: (props: Partial<PopoverProps>) => React.JSX.Element;\n /**\n * Set whether the button is rounded.\n * Default value is `false`\n */\n rounded?: boolean;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | React.JSX.Element;\n};\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyIconButtonBase = React.forwardRef(function LegacyIconButtonBase(\n props: LegacyIconButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { icon, rounded = false, appearance = 'default', ...otherProps } = props;\n\n const className = cn(\n 'w-8',\n getButtonClasses(),\n ICON_APPEARANCE_CLASSNAME[appearance],\n {\n 'rounded-full': rounded,\n rounded: !rounded,\n },\n props.className\n );\n\n if (!icon) {\n return null;\n }\n\n return createButtonWithTooltip(\n // forward the caller's own appearance so an omitted prop stays omitted from the DOM\n {\n 'data-taco': 'legacy-icon-button',\n appearance: props.appearance,\n ...otherProps,\n children: <Icon name={icon} className=\"m-0 p-0\" />,\n },\n className,\n ref\n );\n});\n\n/**\n * @deprecated Use the `<Button>` component instead. This legacy API will be removed in a future major version.\n */\nexport const LegacyIconButton = React.forwardRef(function LegacyIconButton(\n props: LegacyIconButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>\n) {\n const { dialog, hanger, menu, popover, ...buttonProps } = props;\n const button = <LegacyIconButtonBase {...buttonProps} ref={ref} />;\n\n return createButtonWithOverlays({ dialog, hanger, menu, popover }, button);\n});\n"],"names":["LegacyIconButtonBase","LegacyIconButton"],"mappings":";;;;AA8CO,MAAM,uBAAuB,MAAM,WAAW,SAASA,sBAC1D,OACA,KACF;AACE,QAAM,EAAE,MAAM,UAAU,OAAO,aAAa,WAAW,GAAG,eAAe;AAEzE,QAAM,YAAY;AAAA,IACd;AAAA,IACA,iBAAA;AAAA,IACA,0BAA0B,UAAU;AAAA,IACpC;AAAA,MACI,gBAAgB;AAAA,MAChB,SAAS,CAAC;AAAA,IAAA;AAAA,IAEd,MAAM;AAAA,EAAA;AAGV,MAAI,CAAC,MAAM;AACP,WAAO;AAAA,EACX;AAEA,SAAO;AAAA;AAAA,IAEH;AAAA,MACI,aAAa;AAAA,MACb,YAAY,MAAM;AAAA,MAClB,GAAG;AAAA,MACH,UAAU,sBAAA,cAAC,MAAA,EAAK,MAAM,MAAM,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,IAEpD;AAAA,IACA;AAAA,EAAA;AAER,CAAC;AAKM,MAAM,mBAAmB,MAAM,WAAW,SAASC,kBACtD,OACA,KACF;AACE,QAAM,EAAE,QAAQ,QAAQ,MAAM,SAAS,GAAG,gBAAgB;AAC1D,QAAM,SAAS,sBAAA,cAAC,sBAAA,EAAsB,GAAG,aAAa,KAAU;AAEhE,SAAO,yBAAyB,EAAE,QAAQ,QAAQ,MAAM,QAAA,GAAW,MAAM;AAC7E,CAAC;"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const collapsible = require("@base-ui/react/collapsible");
4
4
  const React = require("react");
5
- const Icon = require("../../Icon/Icon.cjs");
6
5
  const Item = require("./Item.cjs");
6
+ const Icon = require("../../Icon/Icon.cjs");
7
7
  const Collapsible = React.forwardRef(function Accordion(props, ref) {
8
8
  const { defaultOpen = false, ...attributes } = props;
9
9
  const [open, setOpen] = React.useState(defaultOpen);
@@ -1 +1 @@
1
- {"version":3,"file":"Collapsible.cjs","sources":["../../../../src/components/List/components/Collapsible.tsx"],"sourcesContent":["import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';\nimport React from 'react';\n\nimport { Icon } from '../../Icon/Icon';\n\nimport type { ComposableListItemProps } from './Item';\nimport { Item } from './Item';\n\nexport type ListCollapsibleProps = Omit<ComposableListItemProps<typeof CollapsiblePrimitive.Root>, 'children'> & {\n children: React.JSX.Element | React.JSX.Element[];\n defaultOpen?: boolean;\n};\n\nexport const Collapsible = React.forwardRef<HTMLDivElement, ListCollapsibleProps>(function Accordion(props, ref) {\n const { defaultOpen = false, ...attributes } = props;\n const [open, setOpen] = React.useState(defaultOpen);\n const control = <Icon name={open ? 'chevron-up' : 'chevron-down'} />;\n\n return (\n <CollapsiblePrimitive.Root data-taco=\"list-item-collapsible\" disabled={props.disabled} open={open} onOpenChange={setOpen}>\n {/* the public type is based on CollapsiblePrimitive.Root, but at runtime the attributes land on this\n button-rendered Item — narrowing the public type to 'button' is a breaking change deferred to a follow-up PR */}\n <CollapsiblePrimitive.Trigger\n render={<Item {...(attributes as ComposableListItemProps<'button'>)} as=\"button\" control={control} ref={ref} />}\n />\n <CollapsiblePrimitive.Panel>{props.children}</CollapsiblePrimitive.Panel>\n </CollapsiblePrimitive.Root>\n );\n});\n"],"names":["Icon","CollapsiblePrimitive","Item"],"mappings":";;;;;;AAaO,MAAM,cAAc,MAAM,WAAiD,SAAS,UAAU,OAAO,KAAK;AAC7G,QAAM,EAAE,cAAc,OAAO,GAAG,eAAe;AAC/C,QAAM,CAAC,MAAM,OAAO,IAAI,MAAM,SAAS,WAAW;AAClD,QAAM,UAAU,sBAAA,cAACA,KAAAA,MAAA,EAAK,MAAM,OAAO,eAAe,gBAAgB;AAElE,SACI,sBAAA,cAACC,YAAAA,YAAqB,MAArB,EAA0B,aAAU,yBAAwB,UAAU,MAAM,UAAU,MAAY,cAAc,QAAA,GAG7G,sBAAA;AAAA,IAACA,YAAAA,YAAqB;AAAA,IAArB;AAAA,MACG,4CAASC,WAAA,EAAM,GAAI,YAAkD,IAAG,UAAS,SAAkB,IAAA,CAAU;AAAA,IAAA;AAAA,EAAA,GAEjH,sBAAA,cAACD,YAAAA,YAAqB,OAArB,MAA4B,MAAM,QAAS,CAChD;AAER,CAAC;;"}
1
+ {"version":3,"file":"Collapsible.cjs","sources":["../../../../src/components/List/components/Collapsible.tsx"],"sourcesContent":["import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';\nimport React from 'react';\n\nimport { Icon } from '@/components';\n\nimport type { ComposableListItemProps } from './Item';\nimport { Item } from './Item';\n\nexport type ListCollapsibleProps = Omit<ComposableListItemProps<typeof CollapsiblePrimitive.Root>, 'children'> & {\n children: React.JSX.Element | React.JSX.Element[];\n defaultOpen?: boolean;\n};\n\nexport const Collapsible = React.forwardRef<HTMLDivElement, ListCollapsibleProps>(function Accordion(props, ref) {\n const { defaultOpen = false, ...attributes } = props;\n const [open, setOpen] = React.useState(defaultOpen);\n const control = <Icon name={open ? 'chevron-up' : 'chevron-down'} />;\n\n return (\n <CollapsiblePrimitive.Root data-taco=\"list-item-collapsible\" disabled={props.disabled} open={open} onOpenChange={setOpen}>\n {/* the public type is based on CollapsiblePrimitive.Root, but at runtime the attributes land on this\n button-rendered Item — narrowing the public type to 'button' is a breaking change deferred to a follow-up PR */}\n <CollapsiblePrimitive.Trigger\n render={<Item {...(attributes as ComposableListItemProps<'button'>)} as=\"button\" control={control} ref={ref} />}\n />\n <CollapsiblePrimitive.Panel>{props.children}</CollapsiblePrimitive.Panel>\n </CollapsiblePrimitive.Root>\n );\n});\n"],"names":["Icon","CollapsiblePrimitive","Item"],"mappings":";;;;;;AAaO,MAAM,cAAc,MAAM,WAAiD,SAAS,UAAU,OAAO,KAAK;AAC7G,QAAM,EAAE,cAAc,OAAO,GAAG,eAAe;AAC/C,QAAM,CAAC,MAAM,OAAO,IAAI,MAAM,SAAS,WAAW;AAClD,QAAM,UAAU,sBAAA,cAACA,KAAAA,MAAA,EAAK,MAAM,OAAO,eAAe,gBAAgB;AAElE,SACI,sBAAA,cAACC,YAAAA,YAAqB,MAArB,EAA0B,aAAU,yBAAwB,UAAU,MAAM,UAAU,MAAY,cAAc,QAAA,GAG7G,sBAAA;AAAA,IAACA,YAAAA,YAAqB;AAAA,IAArB;AAAA,MACG,4CAASC,WAAA,EAAM,GAAI,YAAkD,IAAG,UAAS,SAAkB,IAAA,CAAU;AAAA,IAAA;AAAA,EAAA,GAEjH,sBAAA,cAACD,YAAAA,YAAqB,OAArB,MAA4B,MAAM,QAAS,CAChD;AAER,CAAC;;"}
@@ -1,7 +1,7 @@
1
1
  import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
2
2
  import React__default from "react";
3
- import { Icon } from "../../Icon/Icon.js";
4
3
  import { Item } from "./Item.js";
4
+ import { Icon } from "../../Icon/Icon.js";
5
5
  const Collapsible = React__default.forwardRef(function Accordion(props, ref) {
6
6
  const { defaultOpen = false, ...attributes } = props;
7
7
  const [open, setOpen] = React__default.useState(defaultOpen);
@@ -1 +1 @@
1
- {"version":3,"file":"Collapsible.js","sources":["../../../../src/components/List/components/Collapsible.tsx"],"sourcesContent":["import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';\nimport React from 'react';\n\nimport { Icon } from '../../Icon/Icon';\n\nimport type { ComposableListItemProps } from './Item';\nimport { Item } from './Item';\n\nexport type ListCollapsibleProps = Omit<ComposableListItemProps<typeof CollapsiblePrimitive.Root>, 'children'> & {\n children: React.JSX.Element | React.JSX.Element[];\n defaultOpen?: boolean;\n};\n\nexport const Collapsible = React.forwardRef<HTMLDivElement, ListCollapsibleProps>(function Accordion(props, ref) {\n const { defaultOpen = false, ...attributes } = props;\n const [open, setOpen] = React.useState(defaultOpen);\n const control = <Icon name={open ? 'chevron-up' : 'chevron-down'} />;\n\n return (\n <CollapsiblePrimitive.Root data-taco=\"list-item-collapsible\" disabled={props.disabled} open={open} onOpenChange={setOpen}>\n {/* the public type is based on CollapsiblePrimitive.Root, but at runtime the attributes land on this\n button-rendered Item — narrowing the public type to 'button' is a breaking change deferred to a follow-up PR */}\n <CollapsiblePrimitive.Trigger\n render={<Item {...(attributes as ComposableListItemProps<'button'>)} as=\"button\" control={control} ref={ref} />}\n />\n <CollapsiblePrimitive.Panel>{props.children}</CollapsiblePrimitive.Panel>\n </CollapsiblePrimitive.Root>\n );\n});\n"],"names":["React","CollapsiblePrimitive"],"mappings":";;;;AAaO,MAAM,cAAcA,eAAM,WAAiD,SAAS,UAAU,OAAO,KAAK;AAC7G,QAAM,EAAE,cAAc,OAAO,GAAG,eAAe;AAC/C,QAAM,CAAC,MAAM,OAAO,IAAIA,eAAM,SAAS,WAAW;AAClD,QAAM,UAAUA,+BAAA,cAAC,MAAA,EAAK,MAAM,OAAO,eAAe,gBAAgB;AAElE,SACIA,+BAAA,cAACC,cAAqB,MAArB,EAA0B,aAAU,yBAAwB,UAAU,MAAM,UAAU,MAAY,cAAc,QAAA,GAG7GD,+BAAA;AAAA,IAACC,cAAqB;AAAA,IAArB;AAAA,MACG,qDAAS,MAAA,EAAM,GAAI,YAAkD,IAAG,UAAS,SAAkB,IAAA,CAAU;AAAA,IAAA;AAAA,EAAA,GAEjHD,+BAAA,cAACC,cAAqB,OAArB,MAA4B,MAAM,QAAS,CAChD;AAER,CAAC;"}
1
+ {"version":3,"file":"Collapsible.js","sources":["../../../../src/components/List/components/Collapsible.tsx"],"sourcesContent":["import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';\nimport React from 'react';\n\nimport { Icon } from '@/components';\n\nimport type { ComposableListItemProps } from './Item';\nimport { Item } from './Item';\n\nexport type ListCollapsibleProps = Omit<ComposableListItemProps<typeof CollapsiblePrimitive.Root>, 'children'> & {\n children: React.JSX.Element | React.JSX.Element[];\n defaultOpen?: boolean;\n};\n\nexport const Collapsible = React.forwardRef<HTMLDivElement, ListCollapsibleProps>(function Accordion(props, ref) {\n const { defaultOpen = false, ...attributes } = props;\n const [open, setOpen] = React.useState(defaultOpen);\n const control = <Icon name={open ? 'chevron-up' : 'chevron-down'} />;\n\n return (\n <CollapsiblePrimitive.Root data-taco=\"list-item-collapsible\" disabled={props.disabled} open={open} onOpenChange={setOpen}>\n {/* the public type is based on CollapsiblePrimitive.Root, but at runtime the attributes land on this\n button-rendered Item — narrowing the public type to 'button' is a breaking change deferred to a follow-up PR */}\n <CollapsiblePrimitive.Trigger\n render={<Item {...(attributes as ComposableListItemProps<'button'>)} as=\"button\" control={control} ref={ref} />}\n />\n <CollapsiblePrimitive.Panel>{props.children}</CollapsiblePrimitive.Panel>\n </CollapsiblePrimitive.Root>\n );\n});\n"],"names":["React","CollapsiblePrimitive"],"mappings":";;;;AAaO,MAAM,cAAcA,eAAM,WAAiD,SAAS,UAAU,OAAO,KAAK;AAC7G,QAAM,EAAE,cAAc,OAAO,GAAG,eAAe;AAC/C,QAAM,CAAC,MAAM,OAAO,IAAIA,eAAM,SAAS,WAAW;AAClD,QAAM,UAAUA,+BAAA,cAAC,MAAA,EAAK,MAAM,OAAO,eAAe,gBAAgB;AAElE,SACIA,+BAAA,cAACC,cAAqB,MAArB,EAA0B,aAAU,yBAAwB,UAAU,MAAM,UAAU,MAAY,cAAc,QAAA,GAG7GD,+BAAA;AAAA,IAACC,cAAqB;AAAA,IAArB;AAAA,MACG,qDAAS,MAAA,EAAM,GAAI,YAAkD,IAAG,UAAS,SAAkB,IAAA,CAAU;AAAA,IAAA;AAAA,EAAA,GAEjHD,+BAAA,cAACC,cAAqB,OAArB,MAA4B,MAAM,QAAS,CAChD;AAER,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Item.cjs","sources":["../../../../src/components/List/components/Item.tsx"],"sourcesContent":["import cn from 'clsx';\nimport React from 'react';\n\nimport type { Color } from '../../../types';\nimport { fixedForwardRef } from '../../../types';\nimport { SUBTLE_COLOR_SHADE_CLASSNAME } from '../../../utils/tailwind';\nimport type { IconName } from '../../Icon/Icon';\nimport { Icon } from '../../Icon/Icon';\n\nexport type ListItemProps<ElementType extends React.ElementType> = Omit<React.ComponentPropsWithoutRef<ElementType>, 'title'> & {\n as?: ElementType;\n color?: Color;\n control?: React.JSX.Element;\n description?: string | React.JSX.Element;\n disabled?: boolean;\n icon?: IconName;\n title: string | React.JSX.Element;\n};\n\nexport type ComposableListItemProps<ElementType extends React.ElementType> = Omit<\n ListItemProps<ElementType>,\n 'as' | 'control' | 'onChange'\n>;\n\nexport const Item = fixedForwardRef(function Item<ElementType extends React.ElementType = 'div'>(\n props: ListItemProps<ElementType>,\n ref: React.Ref<HTMLElement>\n) {\n const {\n as: Tag = 'div',\n color = 'transparent',\n control,\n description,\n disabled,\n icon,\n tabIndex = 0,\n title,\n ...attributes\n } = props;\n const iconClassName = cn(\n 'flex h-10 w-10 shrink-0 items-center justify-center rounded border border-black/10',\n SUBTLE_COLOR_SHADE_CLASSNAME[color]\n );\n\n return (\n <Tag\n {...attributes}\n aria-disabled={disabled ? true : undefined}\n data-taco=\"list-item\"\n ref={ref as any}\n tabIndex={disabled ? -1 : tabIndex}>\n {icon ? (\n <span className={iconClassName}>\n <Icon name={icon} />\n </span>\n ) : null}\n <div className=\"flex grow flex-col justify-center\">\n <span className=\"font-bold text-black\">{title}</span>\n {description ? <span className=\"text-gray-700\">{description}</span> : null}\n </div>\n <div className=\"flex shrink-0 items-center text-gray-700\">{control}</div>\n </Tag>\n );\n});\n"],"names":["fixedForwardRef","Item","SUBTLE_COLOR_SHADE_CLASSNAME","Icon"],"mappings":";;;;;;;AAwBO,MAAM,OAAOA,MAAAA,gBAAgB,SAASC,MACzC,OACA,KACF;AACE,QAAM;AAAA,IACF,IAAI,MAAM;AAAA,IACV,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EAAA,IACH;AACJ,QAAM,gBAAgB;AAAA,IAClB;AAAA,IACAC,SAAAA,6BAA6B,KAAK;AAAA,EAAA;AAGtC,SACI,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,iBAAe,WAAW,OAAO;AAAA,MACjC,aAAU;AAAA,MACV;AAAA,MACA,UAAU,WAAW,KAAK;AAAA,IAAA;AAAA,IACzB,OACG,sBAAA,cAAC,QAAA,EAAK,WAAW,cAAA,uCACZC,KAAAA,MAAA,EAAK,MAAM,KAAA,CAAM,CACtB,IACA;AAAA,wCACH,OAAA,EAAI,WAAU,uCACX,sBAAA,cAAC,UAAK,WAAU,0BAAwB,KAAM,GAC7C,cAAc,sBAAA,cAAC,QAAA,EAAK,WAAU,gBAAA,GAAiB,WAAY,IAAU,IAC1E;AAAA,IACA,sBAAA,cAAC,OAAA,EAAI,WAAU,2CAAA,GAA4C,OAAQ;AAAA,EAAA;AAG/E,CAAC;;"}
1
+ {"version":3,"file":"Item.cjs","sources":["../../../../src/components/List/components/Item.tsx"],"sourcesContent":["import cn from 'clsx';\nimport React from 'react';\n\nimport type { IconName } from '@/components';\nimport { Icon } from '@/components';\nimport type { Color } from '@/types';\nimport { fixedForwardRef } from '@/types';\nimport { SUBTLE_COLOR_SHADE_CLASSNAME } from '@/utils/tailwind';\n\nexport type ListItemProps<ElementType extends React.ElementType> = Omit<React.ComponentPropsWithoutRef<ElementType>, 'title'> & {\n as?: ElementType;\n color?: Color;\n control?: React.JSX.Element;\n description?: string | React.JSX.Element;\n disabled?: boolean;\n icon?: IconName;\n title: string | React.JSX.Element;\n};\n\nexport type ComposableListItemProps<ElementType extends React.ElementType> = Omit<\n ListItemProps<ElementType>,\n 'as' | 'control' | 'onChange'\n>;\n\nexport const Item = fixedForwardRef(function Item<ElementType extends React.ElementType = 'div'>(\n props: ListItemProps<ElementType>,\n ref: React.Ref<HTMLElement>\n) {\n const {\n as: Tag = 'div',\n color = 'transparent',\n control,\n description,\n disabled,\n icon,\n tabIndex = 0,\n title,\n ...attributes\n } = props;\n const iconClassName = cn(\n 'flex h-10 w-10 shrink-0 items-center justify-center rounded border border-black/10',\n SUBTLE_COLOR_SHADE_CLASSNAME[color]\n );\n\n return (\n <Tag\n {...attributes}\n aria-disabled={disabled ? true : undefined}\n data-taco=\"list-item\"\n ref={ref as any}\n tabIndex={disabled ? -1 : tabIndex}>\n {icon ? (\n <span className={iconClassName}>\n <Icon name={icon} />\n </span>\n ) : null}\n <div className=\"flex grow flex-col justify-center\">\n <span className=\"font-bold text-black\">{title}</span>\n {description ? <span className=\"text-gray-700\">{description}</span> : null}\n </div>\n <div className=\"flex shrink-0 items-center text-gray-700\">{control}</div>\n </Tag>\n );\n});\n"],"names":["fixedForwardRef","Item","SUBTLE_COLOR_SHADE_CLASSNAME","Icon"],"mappings":";;;;;;;AAwBO,MAAM,OAAOA,MAAAA,gBAAgB,SAASC,MACzC,OACA,KACF;AACE,QAAM;AAAA,IACF,IAAI,MAAM;AAAA,IACV,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EAAA,IACH;AACJ,QAAM,gBAAgB;AAAA,IAClB;AAAA,IACAC,SAAAA,6BAA6B,KAAK;AAAA,EAAA;AAGtC,SACI,sBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,iBAAe,WAAW,OAAO;AAAA,MACjC,aAAU;AAAA,MACV;AAAA,MACA,UAAU,WAAW,KAAK;AAAA,IAAA;AAAA,IACzB,OACG,sBAAA,cAAC,QAAA,EAAK,WAAW,cAAA,uCACZC,KAAAA,MAAA,EAAK,MAAM,KAAA,CAAM,CACtB,IACA;AAAA,wCACH,OAAA,EAAI,WAAU,uCACX,sBAAA,cAAC,UAAK,WAAU,0BAAwB,KAAM,GAC7C,cAAc,sBAAA,cAAC,QAAA,EAAK,WAAU,gBAAA,GAAiB,WAAY,IAAU,IAC1E;AAAA,IACA,sBAAA,cAAC,OAAA,EAAI,WAAU,2CAAA,GAA4C,OAAQ;AAAA,EAAA;AAG/E,CAAC;;"}
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
+ import { IconName } from '../..';
2
3
  import { Color } from '../../../types';
3
- import { IconName } from '../../Icon/Icon';
4
4
  export type ListItemProps<ElementType extends React.ElementType> = Omit<React.ComponentPropsWithoutRef<ElementType>, 'title'> & {
5
5
  as?: ElementType;
6
6
  color?: Color;
@@ -1 +1 @@
1
- {"version":3,"file":"Item.js","sources":["../../../../src/components/List/components/Item.tsx"],"sourcesContent":["import cn from 'clsx';\nimport React from 'react';\n\nimport type { Color } from '../../../types';\nimport { fixedForwardRef } from '../../../types';\nimport { SUBTLE_COLOR_SHADE_CLASSNAME } from '../../../utils/tailwind';\nimport type { IconName } from '../../Icon/Icon';\nimport { Icon } from '../../Icon/Icon';\n\nexport type ListItemProps<ElementType extends React.ElementType> = Omit<React.ComponentPropsWithoutRef<ElementType>, 'title'> & {\n as?: ElementType;\n color?: Color;\n control?: React.JSX.Element;\n description?: string | React.JSX.Element;\n disabled?: boolean;\n icon?: IconName;\n title: string | React.JSX.Element;\n};\n\nexport type ComposableListItemProps<ElementType extends React.ElementType> = Omit<\n ListItemProps<ElementType>,\n 'as' | 'control' | 'onChange'\n>;\n\nexport const Item = fixedForwardRef(function Item<ElementType extends React.ElementType = 'div'>(\n props: ListItemProps<ElementType>,\n ref: React.Ref<HTMLElement>\n) {\n const {\n as: Tag = 'div',\n color = 'transparent',\n control,\n description,\n disabled,\n icon,\n tabIndex = 0,\n title,\n ...attributes\n } = props;\n const iconClassName = cn(\n 'flex h-10 w-10 shrink-0 items-center justify-center rounded border border-black/10',\n SUBTLE_COLOR_SHADE_CLASSNAME[color]\n );\n\n return (\n <Tag\n {...attributes}\n aria-disabled={disabled ? true : undefined}\n data-taco=\"list-item\"\n ref={ref as any}\n tabIndex={disabled ? -1 : tabIndex}>\n {icon ? (\n <span className={iconClassName}>\n <Icon name={icon} />\n </span>\n ) : null}\n <div className=\"flex grow flex-col justify-center\">\n <span className=\"font-bold text-black\">{title}</span>\n {description ? <span className=\"text-gray-700\">{description}</span> : null}\n </div>\n <div className=\"flex shrink-0 items-center text-gray-700\">{control}</div>\n </Tag>\n );\n});\n"],"names":["Item","React"],"mappings":";;;;;AAwBO,MAAM,OAAO,gBAAgB,SAASA,MACzC,OACA,KACF;AACE,QAAM;AAAA,IACF,IAAI,MAAM;AAAA,IACV,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EAAA,IACH;AACJ,QAAM,gBAAgB;AAAA,IAClB;AAAA,IACA,6BAA6B,KAAK;AAAA,EAAA;AAGtC,SACIC,+BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,iBAAe,WAAW,OAAO;AAAA,MACjC,aAAU;AAAA,MACV;AAAA,MACA,UAAU,WAAW,KAAK;AAAA,IAAA;AAAA,IACzB,OACGA,+BAAA,cAAC,QAAA,EAAK,WAAW,cAAA,gDACZ,MAAA,EAAK,MAAM,KAAA,CAAM,CACtB,IACA;AAAA,iDACH,OAAA,EAAI,WAAU,uCACXA,+BAAA,cAAC,UAAK,WAAU,0BAAwB,KAAM,GAC7C,cAAcA,+BAAA,cAAC,QAAA,EAAK,WAAU,gBAAA,GAAiB,WAAY,IAAU,IAC1E;AAAA,IACAA,+BAAA,cAAC,OAAA,EAAI,WAAU,2CAAA,GAA4C,OAAQ;AAAA,EAAA;AAG/E,CAAC;"}
1
+ {"version":3,"file":"Item.js","sources":["../../../../src/components/List/components/Item.tsx"],"sourcesContent":["import cn from 'clsx';\nimport React from 'react';\n\nimport type { IconName } from '@/components';\nimport { Icon } from '@/components';\nimport type { Color } from '@/types';\nimport { fixedForwardRef } from '@/types';\nimport { SUBTLE_COLOR_SHADE_CLASSNAME } from '@/utils/tailwind';\n\nexport type ListItemProps<ElementType extends React.ElementType> = Omit<React.ComponentPropsWithoutRef<ElementType>, 'title'> & {\n as?: ElementType;\n color?: Color;\n control?: React.JSX.Element;\n description?: string | React.JSX.Element;\n disabled?: boolean;\n icon?: IconName;\n title: string | React.JSX.Element;\n};\n\nexport type ComposableListItemProps<ElementType extends React.ElementType> = Omit<\n ListItemProps<ElementType>,\n 'as' | 'control' | 'onChange'\n>;\n\nexport const Item = fixedForwardRef(function Item<ElementType extends React.ElementType = 'div'>(\n props: ListItemProps<ElementType>,\n ref: React.Ref<HTMLElement>\n) {\n const {\n as: Tag = 'div',\n color = 'transparent',\n control,\n description,\n disabled,\n icon,\n tabIndex = 0,\n title,\n ...attributes\n } = props;\n const iconClassName = cn(\n 'flex h-10 w-10 shrink-0 items-center justify-center rounded border border-black/10',\n SUBTLE_COLOR_SHADE_CLASSNAME[color]\n );\n\n return (\n <Tag\n {...attributes}\n aria-disabled={disabled ? true : undefined}\n data-taco=\"list-item\"\n ref={ref as any}\n tabIndex={disabled ? -1 : tabIndex}>\n {icon ? (\n <span className={iconClassName}>\n <Icon name={icon} />\n </span>\n ) : null}\n <div className=\"flex grow flex-col justify-center\">\n <span className=\"font-bold text-black\">{title}</span>\n {description ? <span className=\"text-gray-700\">{description}</span> : null}\n </div>\n <div className=\"flex shrink-0 items-center text-gray-700\">{control}</div>\n </Tag>\n );\n});\n"],"names":["Item","React"],"mappings":";;;;;AAwBO,MAAM,OAAO,gBAAgB,SAASA,MACzC,OACA,KACF;AACE,QAAM;AAAA,IACF,IAAI,MAAM;AAAA,IACV,QAAQ;AAAA,IACR;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,GAAG;AAAA,EAAA,IACH;AACJ,QAAM,gBAAgB;AAAA,IAClB;AAAA,IACA,6BAA6B,KAAK;AAAA,EAAA;AAGtC,SACIC,+BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,iBAAe,WAAW,OAAO;AAAA,MACjC,aAAU;AAAA,MACV;AAAA,MACA,UAAU,WAAW,KAAK;AAAA,IAAA;AAAA,IACzB,OACGA,+BAAA,cAAC,QAAA,EAAK,WAAW,cAAA,gDACZ,MAAA,EAAK,MAAM,KAAA,CAAM,CACtB,IACA;AAAA,iDACH,OAAA,EAAI,WAAU,uCACXA,+BAAA,cAAC,UAAK,WAAU,0BAAwB,KAAM,GAC7C,cAAcA,+BAAA,cAAC,QAAA,EAAK,WAAU,gBAAA,GAAiB,WAAY,IAAU,IAC1E;AAAA,IACAA,+BAAA,cAAC,OAAA,EAAI,WAAU,2CAAA,GAA4C,OAAQ;AAAA,EAAA;AAG/E,CAAC;"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
- const Icon = require("../../Icon/Icon.cjs");
5
4
  const Item = require("./Item.cjs");
5
+ const Icon = require("../../Icon/Icon.cjs");
6
6
  const Link = React.forwardRef(function Link2(props, ref) {
7
7
  const isExternal = props.href.startsWith("http");
8
8
  const control = /* @__PURE__ */ React.createElement(Icon.Icon, { name: isExternal ? "link-external" : "chevron-right" });