@economic/taco 11.0.0 → 11.0.1-react-v19.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 (774) hide show
  1. package/dist/charts/components/Area/AreaChart.cjs.map +1 -1
  2. package/dist/charts/components/Area/AreaChart.d.ts +1 -1
  3. package/dist/charts/components/Area/AreaChart.js.map +1 -1
  4. package/dist/charts/components/Bar/BarChart.cjs.map +1 -1
  5. package/dist/charts/components/Bar/BarChart.d.ts +1 -1
  6. package/dist/charts/components/Bar/BarChart.js.map +1 -1
  7. package/dist/charts/components/Composed/BarLineChart.cjs.map +1 -1
  8. package/dist/charts/components/Composed/BarLineChart.d.ts +2 -2
  9. package/dist/charts/components/Composed/BarLineChart.js.map +1 -1
  10. package/dist/charts/components/Donut/DonutChart.cjs.map +1 -1
  11. package/dist/charts/components/Donut/DonutChart.d.ts +1 -1
  12. package/dist/charts/components/Donut/DonutChart.js.map +1 -1
  13. package/dist/charts/components/Line/LineChart.cjs.map +1 -1
  14. package/dist/charts/components/Line/LineChart.d.ts +1 -1
  15. package/dist/charts/components/Line/LineChart.js.map +1 -1
  16. package/dist/charts/components/Pie/PieChart.cjs.map +1 -1
  17. package/dist/charts/components/Pie/PieChart.d.ts +1 -1
  18. package/dist/charts/components/Pie/PieChart.js.map +1 -1
  19. package/dist/charts/components/Tooltip.cjs.map +1 -1
  20. package/dist/charts/components/Tooltip.d.ts +1 -1
  21. package/dist/charts/components/Tooltip.js.map +1 -1
  22. package/dist/charts/components/types.d.ts +2 -2
  23. package/dist/components/AlertDialog/AlertDialog.cjs.map +1 -1
  24. package/dist/components/AlertDialog/AlertDialog.d.ts +1 -1
  25. package/dist/components/AlertDialog/AlertDialog.js.map +1 -1
  26. package/dist/components/Banner/util.cjs.map +1 -1
  27. package/dist/components/Banner/util.d.ts +2 -1
  28. package/dist/components/Banner/util.js.map +1 -1
  29. package/dist/components/Card/Card.cjs.map +1 -1
  30. package/dist/components/Card/Card.d.ts +1 -1
  31. package/dist/components/Card/Card.js.map +1 -1
  32. package/dist/components/Combobox/Combobox.cjs.map +1 -1
  33. package/dist/components/Combobox/Combobox.d.ts +1 -1
  34. package/dist/components/Combobox/Combobox.js.map +1 -1
  35. package/dist/components/Combobox/useCombobox.cjs.map +1 -1
  36. package/dist/components/Combobox/useCombobox.d.ts +1 -1
  37. package/dist/components/Combobox/useCombobox.js.map +1 -1
  38. package/dist/components/Dialog/Dialog.cjs.map +1 -1
  39. package/dist/components/Dialog/Dialog.d.ts +1 -1
  40. package/dist/components/Dialog/Dialog.js.map +1 -1
  41. package/dist/components/Dialog/components/Content.cjs.map +1 -1
  42. package/dist/components/Dialog/components/Content.d.ts +2 -2
  43. package/dist/components/Dialog/components/Content.js.map +1 -1
  44. package/dist/components/Drawer/Drawer.cjs.map +1 -1
  45. package/dist/components/Drawer/Drawer.d.ts +1 -1
  46. package/dist/components/Drawer/Drawer.js.map +1 -1
  47. package/dist/components/Drawer/useDrawerStack.cjs +1 -1
  48. package/dist/components/Drawer/useDrawerStack.cjs.map +1 -1
  49. package/dist/components/Drawer/useDrawerStack.js +1 -1
  50. package/dist/components/Drawer/useDrawerStack.js.map +1 -1
  51. package/dist/components/Hanger/Hanger.cjs.map +1 -1
  52. package/dist/components/Hanger/Hanger.d.ts +1 -1
  53. package/dist/components/Hanger/Hanger.js.map +1 -1
  54. package/dist/components/Header/components/Agreement/Display.cjs.map +1 -1
  55. package/dist/components/Header/components/Agreement/Display.d.ts +1 -1
  56. package/dist/components/Header/components/Agreement/Display.js.map +1 -1
  57. package/dist/components/Header/components/Agreement/Item.cjs.map +1 -1
  58. package/dist/components/Header/components/Agreement/Item.d.ts +1 -1
  59. package/dist/components/Header/components/Agreement/Item.js.map +1 -1
  60. package/dist/components/Header/components/Link.cjs.map +1 -1
  61. package/dist/components/Header/components/Link.d.ts +1 -1
  62. package/dist/components/Header/components/Link.js.map +1 -1
  63. package/dist/components/Icon/components/AccountPreview.cjs.map +1 -1
  64. package/dist/components/Icon/components/AccountPreview.js.map +1 -1
  65. package/dist/components/Icon/components/Accounting.cjs.map +1 -1
  66. package/dist/components/Icon/components/Accounting.js.map +1 -1
  67. package/dist/components/Icon/components/AccountingYear.cjs.map +1 -1
  68. package/dist/components/Icon/components/AccountingYear.js.map +1 -1
  69. package/dist/components/Icon/components/AccountingYearCancel.cjs.map +1 -1
  70. package/dist/components/Icon/components/AccountingYearCancel.js.map +1 -1
  71. package/dist/components/Icon/components/AiChatSolid.cjs.map +1 -1
  72. package/dist/components/Icon/components/AiChatSolid.js.map +1 -1
  73. package/dist/components/Icon/components/AiStars.cjs.map +1 -1
  74. package/dist/components/Icon/components/AiStars.js.map +1 -1
  75. package/dist/components/Icon/components/ArrowBottom.cjs.map +1 -1
  76. package/dist/components/Icon/components/ArrowBottom.js.map +1 -1
  77. package/dist/components/Icon/components/ArrowDown.cjs.map +1 -1
  78. package/dist/components/Icon/components/ArrowDown.js.map +1 -1
  79. package/dist/components/Icon/components/ArrowEnd.cjs.map +1 -1
  80. package/dist/components/Icon/components/ArrowEnd.js.map +1 -1
  81. package/dist/components/Icon/components/ArrowLeft.cjs.map +1 -1
  82. package/dist/components/Icon/components/ArrowLeft.js.map +1 -1
  83. package/dist/components/Icon/components/ArrowRight.cjs.map +1 -1
  84. package/dist/components/Icon/components/ArrowRight.js.map +1 -1
  85. package/dist/components/Icon/components/ArrowStart.cjs.map +1 -1
  86. package/dist/components/Icon/components/ArrowStart.js.map +1 -1
  87. package/dist/components/Icon/components/ArrowTop.cjs.map +1 -1
  88. package/dist/components/Icon/components/ArrowTop.js.map +1 -1
  89. package/dist/components/Icon/components/ArrowUp.cjs.map +1 -1
  90. package/dist/components/Icon/components/ArrowUp.js.map +1 -1
  91. package/dist/components/Icon/components/Attach.cjs.map +1 -1
  92. package/dist/components/Icon/components/Attach.js.map +1 -1
  93. package/dist/components/Icon/components/AttachAuto.cjs.map +1 -1
  94. package/dist/components/Icon/components/AttachAuto.js.map +1 -1
  95. package/dist/components/Icon/components/AttachCancel.cjs.map +1 -1
  96. package/dist/components/Icon/components/AttachCancel.js.map +1 -1
  97. package/dist/components/Icon/components/AttachWarning.cjs.map +1 -1
  98. package/dist/components/Icon/components/AttachWarning.js.map +1 -1
  99. package/dist/components/Icon/components/Autopay.cjs.map +1 -1
  100. package/dist/components/Icon/components/Autopay.js.map +1 -1
  101. package/dist/components/Icon/components/AutopayPaused.cjs.map +1 -1
  102. package/dist/components/Icon/components/AutopayPaused.js.map +1 -1
  103. package/dist/components/Icon/components/Autotext.cjs.map +1 -1
  104. package/dist/components/Icon/components/Autotext.js.map +1 -1
  105. package/dist/components/Icon/components/AutotextInsert.cjs.map +1 -1
  106. package/dist/components/Icon/components/AutotextInsert.js.map +1 -1
  107. package/dist/components/Icon/components/Basic.cjs.map +1 -1
  108. package/dist/components/Icon/components/Basic.js.map +1 -1
  109. package/dist/components/Icon/components/BasicTabs.cjs.map +1 -1
  110. package/dist/components/Icon/components/BasicTabs.js.map +1 -1
  111. package/dist/components/Icon/components/BellSolid.cjs.map +1 -1
  112. package/dist/components/Icon/components/BellSolid.js.map +1 -1
  113. package/dist/components/Icon/components/Book.cjs.map +1 -1
  114. package/dist/components/Icon/components/Book.js.map +1 -1
  115. package/dist/components/Icon/components/Booking.cjs.map +1 -1
  116. package/dist/components/Icon/components/Booking.js.map +1 -1
  117. package/dist/components/Icon/components/Budget.cjs.map +1 -1
  118. package/dist/components/Icon/components/Budget.js.map +1 -1
  119. package/dist/components/Icon/components/Calendar.cjs.map +1 -1
  120. package/dist/components/Icon/components/Calendar.js.map +1 -1
  121. package/dist/components/Icon/components/CashAccount.cjs.map +1 -1
  122. package/dist/components/Icon/components/CashAccount.js.map +1 -1
  123. package/dist/components/Icon/components/CashReports.cjs.map +1 -1
  124. package/dist/components/Icon/components/CashReports.js.map +1 -1
  125. package/dist/components/Icon/components/ChartArea.cjs.map +1 -1
  126. package/dist/components/Icon/components/ChartArea.js.map +1 -1
  127. package/dist/components/Icon/components/ChartBar.cjs.map +1 -1
  128. package/dist/components/Icon/components/ChartBar.js.map +1 -1
  129. package/dist/components/Icon/components/ChartLine.cjs.map +1 -1
  130. package/dist/components/Icon/components/ChartLine.js.map +1 -1
  131. package/dist/components/Icon/components/ChartPie.cjs.map +1 -1
  132. package/dist/components/Icon/components/ChartPie.js.map +1 -1
  133. package/dist/components/Icon/components/ChartTable.cjs.map +1 -1
  134. package/dist/components/Icon/components/ChartTable.js.map +1 -1
  135. package/dist/components/Icon/components/Chat.cjs.map +1 -1
  136. package/dist/components/Icon/components/Chat.js.map +1 -1
  137. package/dist/components/Icon/components/ChatSolid.cjs.map +1 -1
  138. package/dist/components/Icon/components/ChatSolid.js.map +1 -1
  139. package/dist/components/Icon/components/ChevronDown.cjs.map +1 -1
  140. package/dist/components/Icon/components/ChevronDown.js.map +1 -1
  141. package/dist/components/Icon/components/ChevronDownDouble.cjs.map +1 -1
  142. package/dist/components/Icon/components/ChevronDownDouble.js.map +1 -1
  143. package/dist/components/Icon/components/ChevronDownSolid.cjs.map +1 -1
  144. package/dist/components/Icon/components/ChevronDownSolid.js.map +1 -1
  145. package/dist/components/Icon/components/ChevronLeft.cjs.map +1 -1
  146. package/dist/components/Icon/components/ChevronLeft.js.map +1 -1
  147. package/dist/components/Icon/components/ChevronLeftDouble.cjs.map +1 -1
  148. package/dist/components/Icon/components/ChevronLeftDouble.js.map +1 -1
  149. package/dist/components/Icon/components/ChevronLeftSolid.cjs.map +1 -1
  150. package/dist/components/Icon/components/ChevronLeftSolid.js.map +1 -1
  151. package/dist/components/Icon/components/ChevronRight.cjs.map +1 -1
  152. package/dist/components/Icon/components/ChevronRight.js.map +1 -1
  153. package/dist/components/Icon/components/ChevronRightDouble.cjs.map +1 -1
  154. package/dist/components/Icon/components/ChevronRightDouble.js.map +1 -1
  155. package/dist/components/Icon/components/ChevronRightSolid.cjs.map +1 -1
  156. package/dist/components/Icon/components/ChevronRightSolid.js.map +1 -1
  157. package/dist/components/Icon/components/ChevronUp.cjs.map +1 -1
  158. package/dist/components/Icon/components/ChevronUp.js.map +1 -1
  159. package/dist/components/Icon/components/ChevronUpDouble.cjs.map +1 -1
  160. package/dist/components/Icon/components/ChevronUpDouble.js.map +1 -1
  161. package/dist/components/Icon/components/ChevronUpSolid.cjs.map +1 -1
  162. package/dist/components/Icon/components/ChevronUpSolid.js.map +1 -1
  163. package/dist/components/Icon/components/CircleInformation.cjs.map +1 -1
  164. package/dist/components/Icon/components/CircleInformation.js.map +1 -1
  165. package/dist/components/Icon/components/CircleMinus.cjs.map +1 -1
  166. package/dist/components/Icon/components/CircleMinus.js.map +1 -1
  167. package/dist/components/Icon/components/CirclePlus.cjs.map +1 -1
  168. package/dist/components/Icon/components/CirclePlus.js.map +1 -1
  169. package/dist/components/Icon/components/CircleQuestionmark.cjs.map +1 -1
  170. package/dist/components/Icon/components/CircleQuestionmark.js.map +1 -1
  171. package/dist/components/Icon/components/CircleTick.cjs.map +1 -1
  172. package/dist/components/Icon/components/CircleTick.js.map +1 -1
  173. package/dist/components/Icon/components/CircleWarning.cjs.map +1 -1
  174. package/dist/components/Icon/components/CircleWarning.js.map +1 -1
  175. package/dist/components/Icon/components/Clamp.cjs.map +1 -1
  176. package/dist/components/Icon/components/Clamp.js.map +1 -1
  177. package/dist/components/Icon/components/ClampOpen.cjs.map +1 -1
  178. package/dist/components/Icon/components/ClampOpen.js.map +1 -1
  179. package/dist/components/Icon/components/ClickToPay.cjs.map +1 -1
  180. package/dist/components/Icon/components/ClickToPay.js.map +1 -1
  181. package/dist/components/Icon/components/Close.cjs.map +1 -1
  182. package/dist/components/Icon/components/Close.js.map +1 -1
  183. package/dist/components/Icon/components/ColumnFreeze.cjs.map +1 -1
  184. package/dist/components/Icon/components/ColumnFreeze.js.map +1 -1
  185. package/dist/components/Icon/components/ColumnUnfreeze.cjs.map +1 -1
  186. package/dist/components/Icon/components/ColumnUnfreeze.js.map +1 -1
  187. package/dist/components/Icon/components/Columns.cjs.map +1 -1
  188. package/dist/components/Icon/components/Columns.js.map +1 -1
  189. package/dist/components/Icon/components/ConnectionEnable.cjs.map +1 -1
  190. package/dist/components/Icon/components/ConnectionEnable.js.map +1 -1
  191. package/dist/components/Icon/components/ConnectionRevoke.cjs.map +1 -1
  192. package/dist/components/Icon/components/ConnectionRevoke.js.map +1 -1
  193. package/dist/components/Icon/components/Contacts.cjs.map +1 -1
  194. package/dist/components/Icon/components/Contacts.js.map +1 -1
  195. package/dist/components/Icon/components/Copy.cjs.map +1 -1
  196. package/dist/components/Icon/components/Copy.js.map +1 -1
  197. package/dist/components/Icon/components/Courses.cjs.map +1 -1
  198. package/dist/components/Icon/components/Courses.js.map +1 -1
  199. package/dist/components/Icon/components/Credit.cjs.map +1 -1
  200. package/dist/components/Icon/components/Credit.js.map +1 -1
  201. package/dist/components/Icon/components/Delete.cjs.map +1 -1
  202. package/dist/components/Icon/components/Delete.js.map +1 -1
  203. package/dist/components/Icon/components/DeletePermanently.cjs.map +1 -1
  204. package/dist/components/Icon/components/DeletePermanently.js.map +1 -1
  205. package/dist/components/Icon/components/Depecriate.cjs.map +1 -1
  206. package/dist/components/Icon/components/Depecriate.js.map +1 -1
  207. package/dist/components/Icon/components/Developer.cjs.map +1 -1
  208. package/dist/components/Icon/components/Developer.js.map +1 -1
  209. package/dist/components/Icon/components/DistributionTemplate.cjs.map +1 -1
  210. package/dist/components/Icon/components/DistributionTemplate.js.map +1 -1
  211. package/dist/components/Icon/components/Document.cjs.map +1 -1
  212. package/dist/components/Icon/components/Document.js.map +1 -1
  213. package/dist/components/Icon/components/DocumentApprove.cjs.map +1 -1
  214. package/dist/components/Icon/components/DocumentApprove.js.map +1 -1
  215. package/dist/components/Icon/components/DocumentCreateEntry.cjs.map +1 -1
  216. package/dist/components/Icon/components/DocumentCreateEntry.js.map +1 -1
  217. package/dist/components/Icon/components/DocumentCut.cjs.map +1 -1
  218. package/dist/components/Icon/components/DocumentCut.js.map +1 -1
  219. package/dist/components/Icon/components/DocumentError.cjs.map +1 -1
  220. package/dist/components/Icon/components/DocumentError.js.map +1 -1
  221. package/dist/components/Icon/components/DocumentIsolatePage.cjs.map +1 -1
  222. package/dist/components/Icon/components/DocumentIsolatePage.js.map +1 -1
  223. package/dist/components/Icon/components/DocumentMerge.cjs.map +1 -1
  224. package/dist/components/Icon/components/DocumentMerge.js.map +1 -1
  225. package/dist/components/Icon/components/DocumentMove.cjs.map +1 -1
  226. package/dist/components/Icon/components/DocumentMove.js.map +1 -1
  227. package/dist/components/Icon/components/DocumentPreview.cjs.map +1 -1
  228. package/dist/components/Icon/components/DocumentPreview.js.map +1 -1
  229. package/dist/components/Icon/components/DocumentReceived.cjs.map +1 -1
  230. package/dist/components/Icon/components/DocumentReceived.js.map +1 -1
  231. package/dist/components/Icon/components/DocumentRejectedRequest.cjs.map +1 -1
  232. package/dist/components/Icon/components/DocumentRejectedRequest.js.map +1 -1
  233. package/dist/components/Icon/components/DocumentSigned.cjs.map +1 -1
  234. package/dist/components/Icon/components/DocumentSigned.js.map +1 -1
  235. package/dist/components/Icon/components/DocumentSignedSolid.cjs.map +1 -1
  236. package/dist/components/Icon/components/DocumentSignedSolid.js.map +1 -1
  237. package/dist/components/Icon/components/DocumentSplit.cjs.map +1 -1
  238. package/dist/components/Icon/components/DocumentSplit.js.map +1 -1
  239. package/dist/components/Icon/components/DocumentTime.cjs.map +1 -1
  240. package/dist/components/Icon/components/DocumentTime.js.map +1 -1
  241. package/dist/components/Icon/components/Download.cjs.map +1 -1
  242. package/dist/components/Icon/components/Download.js.map +1 -1
  243. package/dist/components/Icon/components/Drag.cjs.map +1 -1
  244. package/dist/components/Icon/components/Drag.js.map +1 -1
  245. package/dist/components/Icon/components/ECopedia.cjs.map +1 -1
  246. package/dist/components/Icon/components/ECopedia.js.map +1 -1
  247. package/dist/components/Icon/components/Edit.cjs.map +1 -1
  248. package/dist/components/Icon/components/Edit.js.map +1 -1
  249. package/dist/components/Icon/components/EditSimple.cjs.map +1 -1
  250. package/dist/components/Icon/components/EditSimple.js.map +1 -1
  251. package/dist/components/Icon/components/EllipsisHorizontal.cjs.map +1 -1
  252. package/dist/components/Icon/components/EllipsisHorizontal.js.map +1 -1
  253. package/dist/components/Icon/components/EllipsisVertical.cjs.map +1 -1
  254. package/dist/components/Icon/components/EllipsisVertical.js.map +1 -1
  255. package/dist/components/Icon/components/EntriesOnAccount.cjs.map +1 -1
  256. package/dist/components/Icon/components/EntriesOnAccount.js.map +1 -1
  257. package/dist/components/Icon/components/EntriesOpen.cjs.map +1 -1
  258. package/dist/components/Icon/components/EntriesOpen.js.map +1 -1
  259. package/dist/components/Icon/components/EntriesWarning.cjs.map +1 -1
  260. package/dist/components/Icon/components/EntriesWarning.js.map +1 -1
  261. package/dist/components/Icon/components/EntryTypeCustomerInvoice.cjs.map +1 -1
  262. package/dist/components/Icon/components/EntryTypeCustomerInvoice.js.map +1 -1
  263. package/dist/components/Icon/components/EntryTypeCustomerPayment.cjs.map +1 -1
  264. package/dist/components/Icon/components/EntryTypeCustomerPayment.js.map +1 -1
  265. package/dist/components/Icon/components/EntryTypeJournalEntry.cjs.map +1 -1
  266. package/dist/components/Icon/components/EntryTypeJournalEntry.js.map +1 -1
  267. package/dist/components/Icon/components/EntryTypeManualCustomerInvoice.cjs.map +1 -1
  268. package/dist/components/Icon/components/EntryTypeManualCustomerInvoice.js.map +1 -1
  269. package/dist/components/Icon/components/EntryTypeSupplierInvoice.cjs.map +1 -1
  270. package/dist/components/Icon/components/EntryTypeSupplierInvoice.js.map +1 -1
  271. package/dist/components/Icon/components/EntryTypeSupplierPayment.cjs.map +1 -1
  272. package/dist/components/Icon/components/EntryTypeSupplierPayment.js.map +1 -1
  273. package/dist/components/Icon/components/Envelope.cjs.map +1 -1
  274. package/dist/components/Icon/components/Envelope.js.map +1 -1
  275. package/dist/components/Icon/components/EnvelopeApproved.cjs.map +1 -1
  276. package/dist/components/Icon/components/EnvelopeApproved.js.map +1 -1
  277. package/dist/components/Icon/components/EnvelopeSolid.cjs.map +1 -1
  278. package/dist/components/Icon/components/EnvelopeSolid.js.map +1 -1
  279. package/dist/components/Icon/components/ExpandView.cjs.map +1 -1
  280. package/dist/components/Icon/components/ExpandView.js.map +1 -1
  281. package/dist/components/Icon/components/Expenses.cjs.map +1 -1
  282. package/dist/components/Icon/components/Expenses.js.map +1 -1
  283. package/dist/components/Icon/components/Experiment.cjs.map +1 -1
  284. package/dist/components/Icon/components/Experiment.js.map +1 -1
  285. package/dist/components/Icon/components/Export.cjs.map +1 -1
  286. package/dist/components/Icon/components/Export.js.map +1 -1
  287. package/dist/components/Icon/components/ExportToExcel.cjs.map +1 -1
  288. package/dist/components/Icon/components/ExportToExcel.js.map +1 -1
  289. package/dist/components/Icon/components/ExportToPdf.cjs.map +1 -1
  290. package/dist/components/Icon/components/ExportToPdf.js.map +1 -1
  291. package/dist/components/Icon/components/EyeOff.cjs.map +1 -1
  292. package/dist/components/Icon/components/EyeOff.js.map +1 -1
  293. package/dist/components/Icon/components/EyeOn.cjs.map +1 -1
  294. package/dist/components/Icon/components/EyeOn.js.map +1 -1
  295. package/dist/components/Icon/components/Filter.cjs.map +1 -1
  296. package/dist/components/Icon/components/Filter.js.map +1 -1
  297. package/dist/components/Icon/components/FilterSolid.cjs.map +1 -1
  298. package/dist/components/Icon/components/FilterSolid.js.map +1 -1
  299. package/dist/components/Icon/components/FontSize.cjs.map +1 -1
  300. package/dist/components/Icon/components/FontSize.js.map +1 -1
  301. package/dist/components/Icon/components/GraphSolid.cjs.map +1 -1
  302. package/dist/components/Icon/components/GraphSolid.js.map +1 -1
  303. package/dist/components/Icon/components/Hash.cjs.map +1 -1
  304. package/dist/components/Icon/components/Hash.js.map +1 -1
  305. package/dist/components/Icon/components/HeightExtraTall.cjs.map +1 -1
  306. package/dist/components/Icon/components/HeightExtraTall.js.map +1 -1
  307. package/dist/components/Icon/components/HeightMedium.cjs.map +1 -1
  308. package/dist/components/Icon/components/HeightMedium.js.map +1 -1
  309. package/dist/components/Icon/components/HeightShort.cjs.map +1 -1
  310. package/dist/components/Icon/components/HeightShort.js.map +1 -1
  311. package/dist/components/Icon/components/HeightTall.cjs.map +1 -1
  312. package/dist/components/Icon/components/HeightTall.js.map +1 -1
  313. package/dist/components/Icon/components/House.cjs.map +1 -1
  314. package/dist/components/Icon/components/House.js.map +1 -1
  315. package/dist/components/Icon/components/HouseSolid.cjs.map +1 -1
  316. package/dist/components/Icon/components/HouseSolid.js.map +1 -1
  317. package/dist/components/Icon/components/Id.cjs.map +1 -1
  318. package/dist/components/Icon/components/Id.js.map +1 -1
  319. package/dist/components/Icon/components/Images.cjs.map +1 -1
  320. package/dist/components/Icon/components/Images.js.map +1 -1
  321. package/dist/components/Icon/components/Import.cjs.map +1 -1
  322. package/dist/components/Icon/components/Import.js.map +1 -1
  323. package/dist/components/Icon/components/Inbox.cjs.map +1 -1
  324. package/dist/components/Icon/components/Inbox.js.map +1 -1
  325. package/dist/components/Icon/components/InboxEinvoicing.cjs.map +1 -1
  326. package/dist/components/Icon/components/InboxEinvoicing.js.map +1 -1
  327. package/dist/components/Icon/components/InboxScanning.cjs.map +1 -1
  328. package/dist/components/Icon/components/InboxScanning.js.map +1 -1
  329. package/dist/components/Icon/components/InboxSmart.cjs.map +1 -1
  330. package/dist/components/Icon/components/InboxSmart.js.map +1 -1
  331. package/dist/components/Icon/components/Info.cjs.map +1 -1
  332. package/dist/components/Icon/components/Info.js.map +1 -1
  333. package/dist/components/Icon/components/Inventory.cjs.map +1 -1
  334. package/dist/components/Icon/components/Inventory.js.map +1 -1
  335. package/dist/components/Icon/components/InventoryMatrix.cjs.map +1 -1
  336. package/dist/components/Icon/components/InventoryMatrix.js.map +1 -1
  337. package/dist/components/Icon/components/JournalPro.cjs.map +1 -1
  338. package/dist/components/Icon/components/JournalPro.js.map +1 -1
  339. package/dist/components/Icon/components/Layout.cjs.map +1 -1
  340. package/dist/components/Icon/components/Layout.js.map +1 -1
  341. package/dist/components/Icon/components/LayoutBoth.cjs.map +1 -1
  342. package/dist/components/Icon/components/LayoutBoth.js.map +1 -1
  343. package/dist/components/Icon/components/LayoutFirst.cjs.map +1 -1
  344. package/dist/components/Icon/components/LayoutFirst.js.map +1 -1
  345. package/dist/components/Icon/components/LayoutLast.cjs.map +1 -1
  346. package/dist/components/Icon/components/LayoutLast.js.map +1 -1
  347. package/dist/components/Icon/components/LayoutNone.cjs.map +1 -1
  348. package/dist/components/Icon/components/LayoutNone.js.map +1 -1
  349. package/dist/components/Icon/components/LedgerCard.cjs.map +1 -1
  350. package/dist/components/Icon/components/LedgerCard.js.map +1 -1
  351. package/dist/components/Icon/components/LedgerCardCustomerReminder.cjs.map +1 -1
  352. package/dist/components/Icon/components/LedgerCardCustomerReminder.js.map +1 -1
  353. package/dist/components/Icon/components/LedgerCardManualCustomerInvoice.cjs.map +1 -1
  354. package/dist/components/Icon/components/LedgerCardManualCustomerInvoice.js.map +1 -1
  355. package/dist/components/Icon/components/LedgerCardObsoleteStock.cjs.map +1 -1
  356. package/dist/components/Icon/components/LedgerCardObsoleteStock.js.map +1 -1
  357. package/dist/components/Icon/components/LedgerCardOpeningEntry.cjs.map +1 -1
  358. package/dist/components/Icon/components/LedgerCardOpeningEntry.js.map +1 -1
  359. package/dist/components/Icon/components/LedgerCardReservedEntry.cjs.map +1 -1
  360. package/dist/components/Icon/components/LedgerCardReservedEntry.js.map +1 -1
  361. package/dist/components/Icon/components/LedgerCardShrinkagePilferage.cjs.map +1 -1
  362. package/dist/components/Icon/components/LedgerCardShrinkagePilferage.js.map +1 -1
  363. package/dist/components/Icon/components/LedgerCardStockAdjustment.cjs.map +1 -1
  364. package/dist/components/Icon/components/LedgerCardStockAdjustment.js.map +1 -1
  365. package/dist/components/Icon/components/LedgerCardTransferredOpeningEntry.cjs.map +1 -1
  366. package/dist/components/Icon/components/LedgerCardTransferredOpeningEntry.js.map +1 -1
  367. package/dist/components/Icon/components/Lightbulb.cjs.map +1 -1
  368. package/dist/components/Icon/components/Lightbulb.js.map +1 -1
  369. package/dist/components/Icon/components/Line.cjs.map +1 -1
  370. package/dist/components/Icon/components/Line.js.map +1 -1
  371. package/dist/components/Icon/components/LinkExternal.cjs.map +1 -1
  372. package/dist/components/Icon/components/LinkExternal.js.map +1 -1
  373. package/dist/components/Icon/components/List.cjs.map +1 -1
  374. package/dist/components/Icon/components/List.js.map +1 -1
  375. package/dist/components/Icon/components/ListBulleted.cjs.map +1 -1
  376. package/dist/components/Icon/components/ListBulleted.js.map +1 -1
  377. package/dist/components/Icon/components/ListSearch.cjs.map +1 -1
  378. package/dist/components/Icon/components/ListSearch.js.map +1 -1
  379. package/dist/components/Icon/components/Location.cjs.map +1 -1
  380. package/dist/components/Icon/components/Location.js.map +1 -1
  381. package/dist/components/Icon/components/Lock.cjs.map +1 -1
  382. package/dist/components/Icon/components/Lock.js.map +1 -1
  383. package/dist/components/Icon/components/LockOpen.cjs.map +1 -1
  384. package/dist/components/Icon/components/LockOpen.js.map +1 -1
  385. package/dist/components/Icon/components/Log.cjs.map +1 -1
  386. package/dist/components/Icon/components/Log.js.map +1 -1
  387. package/dist/components/Icon/components/LogOut.cjs.map +1 -1
  388. package/dist/components/Icon/components/LogOut.js.map +1 -1
  389. package/dist/components/Icon/components/Market.cjs.map +1 -1
  390. package/dist/components/Icon/components/Market.js.map +1 -1
  391. package/dist/components/Icon/components/MastercardOs.cjs.map +1 -1
  392. package/dist/components/Icon/components/MastercardOs.js.map +1 -1
  393. package/dist/components/Icon/components/MatchAmount.cjs.map +1 -1
  394. package/dist/components/Icon/components/MatchAmount.js.map +1 -1
  395. package/dist/components/Icon/components/MatchEntries.cjs.map +1 -1
  396. package/dist/components/Icon/components/MatchEntries.js.map +1 -1
  397. package/dist/components/Icon/components/Menu.cjs.map +1 -1
  398. package/dist/components/Icon/components/Menu.js.map +1 -1
  399. package/dist/components/Icon/components/Mileage.cjs.map +1 -1
  400. package/dist/components/Icon/components/Mileage.js.map +1 -1
  401. package/dist/components/Icon/components/ModalResize.cjs.map +1 -1
  402. package/dist/components/Icon/components/ModalResize.js.map +1 -1
  403. package/dist/components/Icon/components/ModalShrink.cjs.map +1 -1
  404. package/dist/components/Icon/components/ModalShrink.js.map +1 -1
  405. package/dist/components/Icon/components/More.cjs.map +1 -1
  406. package/dist/components/Icon/components/More.js.map +1 -1
  407. package/dist/components/Icon/components/MoreSolid.cjs.map +1 -1
  408. package/dist/components/Icon/components/MoreSolid.js.map +1 -1
  409. package/dist/components/Icon/components/Move.cjs.map +1 -1
  410. package/dist/components/Icon/components/Move.js.map +1 -1
  411. package/dist/components/Icon/components/NavigationList.cjs.map +1 -1
  412. package/dist/components/Icon/components/NavigationList.js.map +1 -1
  413. package/dist/components/Icon/components/Note.cjs.map +1 -1
  414. package/dist/components/Icon/components/Note.js.map +1 -1
  415. package/dist/components/Icon/components/NoteFollowUp.cjs.map +1 -1
  416. package/dist/components/Icon/components/NoteFollowUp.js.map +1 -1
  417. package/dist/components/Icon/components/NoteRead.cjs.map +1 -1
  418. package/dist/components/Icon/components/NoteRead.js.map +1 -1
  419. package/dist/components/Icon/components/NovemberFirst.cjs.map +1 -1
  420. package/dist/components/Icon/components/NovemberFirst.js.map +1 -1
  421. package/dist/components/Icon/components/Numbers.cjs.map +1 -1
  422. package/dist/components/Icon/components/Numbers.js.map +1 -1
  423. package/dist/components/Icon/components/PartialPaymentScheduled.cjs.map +1 -1
  424. package/dist/components/Icon/components/PartialPaymentScheduled.js.map +1 -1
  425. package/dist/components/Icon/components/PartnerApi.cjs.map +1 -1
  426. package/dist/components/Icon/components/PartnerApi.js.map +1 -1
  427. package/dist/components/Icon/components/PaymentPaid.cjs.map +1 -1
  428. package/dist/components/Icon/components/PaymentPaid.js.map +1 -1
  429. package/dist/components/Icon/components/PaymentUnpaid.cjs.map +1 -1
  430. package/dist/components/Icon/components/PaymentUnpaid.js.map +1 -1
  431. package/dist/components/Icon/components/Period.cjs.map +1 -1
  432. package/dist/components/Icon/components/Period.js.map +1 -1
  433. package/dist/components/Icon/components/Person.cjs.map +1 -1
  434. package/dist/components/Icon/components/Person.js.map +1 -1
  435. package/dist/components/Icon/components/PersonChange.cjs.map +1 -1
  436. package/dist/components/Icon/components/PersonChange.js.map +1 -1
  437. package/dist/components/Icon/components/PersonMinus.cjs.map +1 -1
  438. package/dist/components/Icon/components/PersonMinus.js.map +1 -1
  439. package/dist/components/Icon/components/PersonPlus.cjs.map +1 -1
  440. package/dist/components/Icon/components/PersonPlus.js.map +1 -1
  441. package/dist/components/Icon/components/PersonSolid.cjs.map +1 -1
  442. package/dist/components/Icon/components/PersonSolid.js.map +1 -1
  443. package/dist/components/Icon/components/PersonTick.cjs.map +1 -1
  444. package/dist/components/Icon/components/PersonTick.js.map +1 -1
  445. package/dist/components/Icon/components/Phone.cjs.map +1 -1
  446. package/dist/components/Icon/components/Phone.js.map +1 -1
  447. package/dist/components/Icon/components/PhoneSolid.cjs.map +1 -1
  448. package/dist/components/Icon/components/PhoneSolid.js.map +1 -1
  449. package/dist/components/Icon/components/Play.cjs.map +1 -1
  450. package/dist/components/Icon/components/Play.js.map +1 -1
  451. package/dist/components/Icon/components/PlusMinus.cjs.map +1 -1
  452. package/dist/components/Icon/components/PlusMinus.js.map +1 -1
  453. package/dist/components/Icon/components/Print.cjs.map +1 -1
  454. package/dist/components/Icon/components/Print.js.map +1 -1
  455. package/dist/components/Icon/components/ProcessPayment.cjs.map +1 -1
  456. package/dist/components/Icon/components/ProcessPayment.js.map +1 -1
  457. package/dist/components/Icon/components/ProductLedgerCard.cjs.map +1 -1
  458. package/dist/components/Icon/components/ProductLedgerCard.js.map +1 -1
  459. package/dist/components/Icon/components/Profile.cjs.map +1 -1
  460. package/dist/components/Icon/components/Profile.js.map +1 -1
  461. package/dist/components/Icon/components/ProjectCards.cjs.map +1 -1
  462. package/dist/components/Icon/components/ProjectCards.js.map +1 -1
  463. package/dist/components/Icon/components/Projects.cjs.map +1 -1
  464. package/dist/components/Icon/components/Projects.js.map +1 -1
  465. package/dist/components/Icon/components/QuestionMark.cjs.map +1 -1
  466. package/dist/components/Icon/components/QuestionMark.js.map +1 -1
  467. package/dist/components/Icon/components/QuestionMarkBold.cjs.map +1 -1
  468. package/dist/components/Icon/components/QuestionMarkBold.js.map +1 -1
  469. package/dist/components/Icon/components/Quicklinks.cjs.map +1 -1
  470. package/dist/components/Icon/components/Quicklinks.js.map +1 -1
  471. package/dist/components/Icon/components/RatingBankruptcy.cjs.map +1 -1
  472. package/dist/components/Icon/components/RatingBankruptcy.js.map +1 -1
  473. package/dist/components/Icon/components/RatingPaymentProblems.cjs.map +1 -1
  474. package/dist/components/Icon/components/RatingPaymentProblems.js.map +1 -1
  475. package/dist/components/Icon/components/Reconciled.cjs.map +1 -1
  476. package/dist/components/Icon/components/Reconciled.js.map +1 -1
  477. package/dist/components/Icon/components/Refresh.cjs.map +1 -1
  478. package/dist/components/Icon/components/Refresh.js.map +1 -1
  479. package/dist/components/Icon/components/Remove.cjs.map +1 -1
  480. package/dist/components/Icon/components/Remove.js.map +1 -1
  481. package/dist/components/Icon/components/Report.cjs.map +1 -1
  482. package/dist/components/Icon/components/Report.js.map +1 -1
  483. package/dist/components/Icon/components/ReportSolid.cjs.map +1 -1
  484. package/dist/components/Icon/components/ReportSolid.js.map +1 -1
  485. package/dist/components/Icon/components/Restore.cjs.map +1 -1
  486. package/dist/components/Icon/components/Restore.js.map +1 -1
  487. package/dist/components/Icon/components/RotateLeft.cjs.map +1 -1
  488. package/dist/components/Icon/components/RotateLeft.js.map +1 -1
  489. package/dist/components/Icon/components/RotateRight.cjs.map +1 -1
  490. package/dist/components/Icon/components/RotateRight.js.map +1 -1
  491. package/dist/components/Icon/components/Sales.cjs.map +1 -1
  492. package/dist/components/Icon/components/Sales.js.map +1 -1
  493. package/dist/components/Icon/components/Search.cjs.map +1 -1
  494. package/dist/components/Icon/components/Search.js.map +1 -1
  495. package/dist/components/Icon/components/SearchBold.cjs.map +1 -1
  496. package/dist/components/Icon/components/SearchBold.js.map +1 -1
  497. package/dist/components/Icon/components/Secure.cjs.map +1 -1
  498. package/dist/components/Icon/components/Secure.js.map +1 -1
  499. package/dist/components/Icon/components/SecureTick.cjs.map +1 -1
  500. package/dist/components/Icon/components/SecureTick.js.map +1 -1
  501. package/dist/components/Icon/components/Settings.cjs.map +1 -1
  502. package/dist/components/Icon/components/Settings.js.map +1 -1
  503. package/dist/components/Icon/components/SettingsSolid.cjs.map +1 -1
  504. package/dist/components/Icon/components/SettingsSolid.js.map +1 -1
  505. package/dist/components/Icon/components/Shortcuts.cjs.map +1 -1
  506. package/dist/components/Icon/components/Shortcuts.js.map +1 -1
  507. package/dist/components/Icon/components/ShowAll.cjs.map +1 -1
  508. package/dist/components/Icon/components/ShowAll.js.map +1 -1
  509. package/dist/components/Icon/components/ShowLess.cjs.map +1 -1
  510. package/dist/components/Icon/components/ShowLess.js.map +1 -1
  511. package/dist/components/Icon/components/ShowMore.cjs.map +1 -1
  512. package/dist/components/Icon/components/ShowMore.js.map +1 -1
  513. package/dist/components/Icon/components/ShowTemplate.cjs.map +1 -1
  514. package/dist/components/Icon/components/ShowTemplate.js.map +1 -1
  515. package/dist/components/Icon/components/Sliders.cjs.map +1 -1
  516. package/dist/components/Icon/components/Sliders.js.map +1 -1
  517. package/dist/components/Icon/components/Smartpay.cjs.map +1 -1
  518. package/dist/components/Icon/components/Smartpay.js.map +1 -1
  519. package/dist/components/Icon/components/SortBy.cjs.map +1 -1
  520. package/dist/components/Icon/components/SortBy.js.map +1 -1
  521. package/dist/components/Icon/components/Star.cjs.map +1 -1
  522. package/dist/components/Icon/components/Star.js.map +1 -1
  523. package/dist/components/Icon/components/StarSolid.cjs.map +1 -1
  524. package/dist/components/Icon/components/StarSolid.js.map +1 -1
  525. package/dist/components/Icon/components/Subscriptions.cjs.map +1 -1
  526. package/dist/components/Icon/components/Subscriptions.js.map +1 -1
  527. package/dist/components/Icon/components/SystemEntries.cjs.map +1 -1
  528. package/dist/components/Icon/components/SystemEntries.js.map +1 -1
  529. package/dist/components/Icon/components/Tag.cjs.map +1 -1
  530. package/dist/components/Icon/components/Tag.js.map +1 -1
  531. package/dist/components/Icon/components/TemplateOverride.cjs.map +1 -1
  532. package/dist/components/Icon/components/TemplateOverride.js.map +1 -1
  533. package/dist/components/Icon/components/Templates.cjs.map +1 -1
  534. package/dist/components/Icon/components/Templates.js.map +1 -1
  535. package/dist/components/Icon/components/ThumbBoth.cjs.map +1 -1
  536. package/dist/components/Icon/components/ThumbBoth.js.map +1 -1
  537. package/dist/components/Icon/components/ThumbDown.cjs.map +1 -1
  538. package/dist/components/Icon/components/ThumbDown.js.map +1 -1
  539. package/dist/components/Icon/components/ThumbDownSolid.cjs.map +1 -1
  540. package/dist/components/Icon/components/ThumbDownSolid.js.map +1 -1
  541. package/dist/components/Icon/components/ThumbUp.cjs.map +1 -1
  542. package/dist/components/Icon/components/ThumbUp.js.map +1 -1
  543. package/dist/components/Icon/components/ThumbUpSolid.cjs.map +1 -1
  544. package/dist/components/Icon/components/ThumbUpSolid.js.map +1 -1
  545. package/dist/components/Icon/components/Tick.cjs.map +1 -1
  546. package/dist/components/Icon/components/Tick.js.map +1 -1
  547. package/dist/components/Icon/components/TickBold.cjs.map +1 -1
  548. package/dist/components/Icon/components/TickBold.js.map +1 -1
  549. package/dist/components/Icon/components/Time.cjs.map +1 -1
  550. package/dist/components/Icon/components/Time.js.map +1 -1
  551. package/dist/components/Icon/components/Transfer.cjs.map +1 -1
  552. package/dist/components/Icon/components/Transfer.js.map +1 -1
  553. package/dist/components/Icon/components/TransferCancel.cjs.map +1 -1
  554. package/dist/components/Icon/components/TransferCancel.js.map +1 -1
  555. package/dist/components/Icon/components/TransferLocked.cjs.map +1 -1
  556. package/dist/components/Icon/components/TransferLocked.js.map +1 -1
  557. package/dist/components/Icon/components/Undo.cjs.map +1 -1
  558. package/dist/components/Icon/components/Undo.js.map +1 -1
  559. package/dist/components/Icon/components/Undock.cjs.map +1 -1
  560. package/dist/components/Icon/components/Undock.js.map +1 -1
  561. package/dist/components/Icon/components/Unreconciled.cjs.map +1 -1
  562. package/dist/components/Icon/components/Unreconciled.js.map +1 -1
  563. package/dist/components/Icon/components/Wallet.cjs.map +1 -1
  564. package/dist/components/Icon/components/Wallet.js.map +1 -1
  565. package/dist/components/Icon/components/Warning.cjs.map +1 -1
  566. package/dist/components/Icon/components/Warning.js.map +1 -1
  567. package/dist/components/Icon/components/Webshop.cjs.map +1 -1
  568. package/dist/components/Icon/components/Webshop.js.map +1 -1
  569. package/dist/components/Icon/components/Website.cjs.map +1 -1
  570. package/dist/components/Icon/components/Website.js.map +1 -1
  571. package/dist/components/Icon/components/Workflow.cjs.map +1 -1
  572. package/dist/components/Icon/components/Workflow.js.map +1 -1
  573. package/dist/components/Icon/components/WorkflowTemplateBasic.cjs.map +1 -1
  574. package/dist/components/Icon/components/WorkflowTemplateBasic.js.map +1 -1
  575. package/dist/components/Icon/components/Zoom.cjs.map +1 -1
  576. package/dist/components/Icon/components/Zoom.js.map +1 -1
  577. package/dist/components/Input/Input.cjs.map +1 -1
  578. package/dist/components/Input/Input.d.ts +14 -8
  579. package/dist/components/Input/Input.js.map +1 -1
  580. package/dist/components/LegacyComponents/Button/Button.cjs.map +1 -1
  581. package/dist/components/LegacyComponents/Button/Button.d.ts +13 -13
  582. package/dist/components/LegacyComponents/Button/Button.js.map +1 -1
  583. package/dist/components/LegacyComponents/Button/util.cjs.map +1 -1
  584. package/dist/components/LegacyComponents/Button/util.d.ts +2 -2
  585. package/dist/components/LegacyComponents/Button/util.js.map +1 -1
  586. package/dist/components/LegacyComponents/IconButton/IconButton.cjs.map +1 -1
  587. package/dist/components/LegacyComponents/IconButton/IconButton.d.ts +15 -15
  588. package/dist/components/LegacyComponents/IconButton/IconButton.js.map +1 -1
  589. package/dist/components/List/List.cjs.map +1 -1
  590. package/dist/components/List/List.d.ts +3 -3
  591. package/dist/components/List/List.js.map +1 -1
  592. package/dist/components/List/components/Collapsible.cjs.map +1 -1
  593. package/dist/components/List/components/Collapsible.d.ts +2 -2
  594. package/dist/components/List/components/Collapsible.js.map +1 -1
  595. package/dist/components/List/components/Group.cjs.map +1 -1
  596. package/dist/components/List/components/Group.d.ts +2 -2
  597. package/dist/components/List/components/Group.js.map +1 -1
  598. package/dist/components/List/components/Item.cjs.map +1 -1
  599. package/dist/components/List/components/Item.d.ts +7 -7
  600. package/dist/components/List/components/Item.js.map +1 -1
  601. package/dist/components/List/components/Toggle.cjs.map +1 -1
  602. package/dist/components/List/components/Toggle.js.map +1 -1
  603. package/dist/components/Listbox/ScrollableList.cjs.map +1 -1
  604. package/dist/components/Listbox/ScrollableList.d.ts +4 -2
  605. package/dist/components/Listbox/ScrollableList.js.map +1 -1
  606. package/dist/components/Listbox/util.cjs.map +1 -1
  607. package/dist/components/Listbox/util.d.ts +9 -5
  608. package/dist/components/Listbox/util.js.map +1 -1
  609. package/dist/components/Menu/Context.cjs.map +1 -1
  610. package/dist/components/Menu/Context.d.ts +2 -2
  611. package/dist/components/Menu/Context.js.map +1 -1
  612. package/dist/components/Menu/Menu.cjs.map +1 -1
  613. package/dist/components/Menu/Menu.d.ts +1 -1
  614. package/dist/components/Menu/Menu.js.map +1 -1
  615. package/dist/components/Menu/components/Content.cjs.map +1 -1
  616. package/dist/components/Menu/components/Content.js.map +1 -1
  617. package/dist/components/Menu/components/Item.cjs.map +1 -1
  618. package/dist/components/Menu/components/Item.d.ts +2 -2
  619. package/dist/components/Menu/components/Item.js.map +1 -1
  620. package/dist/components/Menu/components/RadioGroup.cjs.map +1 -1
  621. package/dist/components/Menu/components/RadioGroup.js.map +1 -1
  622. package/dist/components/Navigation2/components/Group.cjs.map +1 -1
  623. package/dist/components/Navigation2/components/Group.d.ts +2 -2
  624. package/dist/components/Navigation2/components/Group.js.map +1 -1
  625. package/dist/components/Navigation2/components/Link.cjs.map +1 -1
  626. package/dist/components/Navigation2/components/Link.d.ts +2 -2
  627. package/dist/components/Navigation2/components/Link.js.map +1 -1
  628. package/dist/components/OverflowGroup/OverflowGroup.cjs.map +1 -1
  629. package/dist/components/OverflowGroup/OverflowGroup.js.map +1 -1
  630. package/dist/components/Pagination/PageNumbers.cjs.map +1 -1
  631. package/dist/components/Pagination/PageNumbers.d.ts +2 -1
  632. package/dist/components/Pagination/PageNumbers.js.map +1 -1
  633. package/dist/components/Popover/Popover.cjs.map +1 -1
  634. package/dist/components/Popover/Popover.d.ts +2 -2
  635. package/dist/components/Popover/Popover.js.map +1 -1
  636. package/dist/components/Progress/Progress.cjs.map +1 -1
  637. package/dist/components/Progress/Progress.d.ts +1 -1
  638. package/dist/components/Progress/Progress.js.map +1 -1
  639. package/dist/components/Provider/Provider.cjs.map +1 -1
  640. package/dist/components/Provider/Provider.d.ts +1 -1
  641. package/dist/components/Provider/Provider.js.map +1 -1
  642. package/dist/components/RadioGroup/RadioGroup.cjs.map +1 -1
  643. package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
  644. package/dist/components/Report/Report.cjs.map +1 -1
  645. package/dist/components/Report/Report.d.ts +1 -1
  646. package/dist/components/Report/Report.js.map +1 -1
  647. package/dist/components/SearchInput2/SearchInput2.cjs.map +1 -1
  648. package/dist/components/SearchInput2/SearchInput2.d.ts +1 -1
  649. package/dist/components/SearchInput2/SearchInput2.js.map +1 -1
  650. package/dist/components/Select/useSelect.cjs.map +1 -1
  651. package/dist/components/Select/useSelect.d.ts +2 -2
  652. package/dist/components/Select/useSelect.js.map +1 -1
  653. package/dist/components/Select2/Select2.cjs +1 -3
  654. package/dist/components/Select2/Select2.cjs.map +1 -1
  655. package/dist/components/Select2/Select2.d.ts +5 -5
  656. package/dist/components/Select2/Select2.js +1 -3
  657. package/dist/components/Select2/Select2.js.map +1 -1
  658. package/dist/components/Select2/components/Context.cjs.map +1 -1
  659. package/dist/components/Select2/components/Context.d.ts +3 -3
  660. package/dist/components/Select2/components/Context.js.map +1 -1
  661. package/dist/components/Select2/components/Option.cjs.map +1 -1
  662. package/dist/components/Select2/components/Option.d.ts +7 -7
  663. package/dist/components/Select2/components/Option.js.map +1 -1
  664. package/dist/components/Select2/components/Search.d.ts +7 -4
  665. package/dist/components/Select2/components/Trigger.cjs +6 -5
  666. package/dist/components/Select2/components/Trigger.cjs.map +1 -1
  667. package/dist/components/Select2/components/Trigger.js +6 -5
  668. package/dist/components/Select2/components/Trigger.js.map +1 -1
  669. package/dist/components/Select2/types.d.ts +1 -1
  670. package/dist/components/Table3/Table3.cjs.map +1 -1
  671. package/dist/components/Table3/Table3.d.ts +1 -1
  672. package/dist/components/Table3/Table3.js.map +1 -1
  673. package/dist/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.cjs.map +1 -1
  674. package/dist/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.d.ts +1 -1
  675. package/dist/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -1
  676. package/dist/components/Table3/components/Columns/Cell/EditingControlCell.cjs.map +1 -1
  677. package/dist/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
  678. package/dist/components/Table3/components/Columns/Cell/EditingDisplayCell.cjs.map +1 -1
  679. package/dist/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +2 -1
  680. package/dist/components/Table3/components/Columns/Cell/EditingDisplayCell.js.map +1 -1
  681. package/dist/components/Table3/components/Editing/Alert.cjs +9 -3
  682. package/dist/components/Table3/components/Editing/Alert.cjs.map +1 -1
  683. package/dist/components/Table3/components/Editing/Alert.js +9 -3
  684. package/dist/components/Table3/components/Editing/Alert.js.map +1 -1
  685. package/dist/components/Table3/components/Row/Editing/TemporaryRow.cjs.map +1 -1
  686. package/dist/components/Table3/components/Row/Editing/TemporaryRow.d.ts +1 -1
  687. package/dist/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
  688. package/dist/components/Table3/features/useEditingState.cjs +14 -6
  689. package/dist/components/Table3/features/useEditingState.cjs.map +1 -1
  690. package/dist/components/Table3/features/useEditingState.d.ts +24 -6
  691. package/dist/components/Table3/features/useEditingState.js +14 -6
  692. package/dist/components/Table3/features/useEditingState.js.map +1 -1
  693. package/dist/components/Table3/features/useTableEditing.d.ts +28 -7
  694. package/dist/components/Tabs/components/TabList.cjs.map +1 -1
  695. package/dist/components/Tabs/components/TabList.js.map +1 -1
  696. package/dist/components/Tabs/components/Trigger.cjs.map +1 -1
  697. package/dist/components/Tabs/components/Trigger.d.ts +2 -2
  698. package/dist/components/Tabs/components/Trigger.js.map +1 -1
  699. package/dist/components/Toast/Toast.cjs.map +1 -1
  700. package/dist/components/Toast/Toast.d.ts +1 -1
  701. package/dist/components/Toast/Toast.js.map +1 -1
  702. package/dist/components/Toast/Toaster.cjs.map +1 -1
  703. package/dist/components/Toast/Toaster.d.ts +1 -1
  704. package/dist/components/Toast/Toaster.js.map +1 -1
  705. package/dist/components/Toast/util.cjs.map +1 -1
  706. package/dist/components/Toast/util.d.ts +2 -1
  707. package/dist/components/Toast/util.js.map +1 -1
  708. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  709. package/dist/components/Tooltip/Tooltip.d.ts +2 -2
  710. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  711. package/dist/components/Truncate/Truncate.cjs.map +1 -1
  712. package/dist/components/Truncate/Truncate.d.ts +5 -2
  713. package/dist/components/Truncate/Truncate.js.map +1 -1
  714. package/dist/hooks/useBoundingClientRectListener.cjs.map +1 -1
  715. package/dist/hooks/useBoundingClientRectListener.d.ts +1 -1
  716. package/dist/hooks/useBoundingClientRectListener.js.map +1 -1
  717. package/dist/hooks/useIntersectionObserver.cjs.map +1 -1
  718. package/dist/hooks/useIntersectionObserver.d.ts +1 -1
  719. package/dist/hooks/useIntersectionObserver.js.map +1 -1
  720. package/dist/hooks/useMergedRef.cjs.map +1 -1
  721. package/dist/hooks/useMergedRef.js.map +1 -1
  722. package/dist/hooks/useResizeObserver.cjs.map +1 -1
  723. package/dist/hooks/useResizeObserver.d.ts +1 -1
  724. package/dist/hooks/useResizeObserver.js.map +1 -1
  725. package/dist/primitives/Button.cjs.map +1 -1
  726. package/dist/primitives/Button.d.ts +2 -2
  727. package/dist/primitives/Button.js.map +1 -1
  728. package/dist/primitives/Listbox2/components/Option.d.ts +1 -1
  729. package/dist/primitives/Sortable/components/Item.cjs.map +1 -1
  730. package/dist/primitives/Sortable/components/Item.js.map +1 -1
  731. package/dist/primitives/Table/Core/Table.cjs.map +1 -1
  732. package/dist/primitives/Table/Core/Table.d.ts +2 -2
  733. package/dist/primitives/Table/Core/Table.js.map +1 -1
  734. package/dist/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.cjs.map +1 -1
  735. package/dist/primitives/Table/Core/components/Columns/Cell/BuiltIns/GroupedCell.js.map +1 -1
  736. package/dist/primitives/Table/Core/components/Columns/Cell/util.cjs.map +1 -1
  737. package/dist/primitives/Table/Core/components/Columns/Cell/util.d.ts +1 -1
  738. package/dist/primitives/Table/Core/components/Columns/Cell/util.js.map +1 -1
  739. package/dist/primitives/Table/Core/components/Columns/Internal/Actions.cjs.map +1 -1
  740. package/dist/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -1
  741. package/dist/primitives/Table/Core/components/Footer/Footer.cjs.map +1 -1
  742. package/dist/primitives/Table/Core/components/Footer/Footer.js.map +1 -1
  743. package/dist/primitives/Table/Core/components/Header/Header.cjs.map +1 -1
  744. package/dist/primitives/Table/Core/components/Header/Header.d.ts +1 -1
  745. package/dist/primitives/Table/Core/components/Header/Header.js.map +1 -1
  746. package/dist/primitives/Table/Core/components/Header/components/Menu.cjs.map +1 -1
  747. package/dist/primitives/Table/Core/components/Header/components/Menu.d.ts +1 -1
  748. package/dist/primitives/Table/Core/components/Header/components/Menu.js.map +1 -1
  749. package/dist/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.cjs.map +1 -1
  750. package/dist/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.d.ts +1 -1
  751. package/dist/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -1
  752. package/dist/primitives/Table/Core/components/Toolbar/Toolbar.cjs.map +1 -1
  753. package/dist/primitives/Table/Core/components/Toolbar/Toolbar.d.ts +1 -1
  754. package/dist/primitives/Table/Core/components/Toolbar/Toolbar.js.map +1 -1
  755. package/dist/primitives/Table/Core/features/useTableRenderer.cjs.map +1 -1
  756. package/dist/primitives/Table/Core/features/useTableRenderer.d.ts +1 -1
  757. package/dist/primitives/Table/Core/features/useTableRenderer.js.map +1 -1
  758. package/dist/primitives/Table/Core/types.d.ts +3 -3
  759. package/dist/primitives/Table/Core/useTable.cjs.map +1 -1
  760. package/dist/primitives/Table/Core/useTable.d.ts +4 -4
  761. package/dist/primitives/Table/Core/useTable.js.map +1 -1
  762. package/dist/primitives/Table/types.cjs.map +1 -1
  763. package/dist/primitives/Table/types.d.ts +15 -15
  764. package/dist/primitives/Table/types.js.map +1 -1
  765. package/dist/primitives/Table/useTableManager/features/useTableRowSelection.d.ts +1 -1
  766. package/dist/primitives/Table/useTableManager/types.d.ts +2 -2
  767. package/dist/primitives/Table/useTableManager/util/setup.cjs +2 -2
  768. package/dist/primitives/Table/useTableManager/util/setup.cjs.map +1 -1
  769. package/dist/primitives/Table/useTableManager/util/setup.js +2 -2
  770. package/dist/primitives/Table/useTableManager/util/setup.js.map +1 -1
  771. package/dist/types.cjs.map +1 -1
  772. package/dist/types.d.ts +1 -1
  773. package/dist/types.js.map +1 -1
  774. package/package.json +8 -15
@@ -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 | JSX.Element;\n prefix?: string | 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 | 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;\n /** Shows an icon within the input field */\n icon?: IconName | 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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"}
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":";;;;;;;;;;;;;;;;;;;;;;;;;;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,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;AACnB,iBAAK,OAAO;AAAA,UAChB,OAAO;AACH,eAAG,MAAM,MAAM,IAAI;AAAA,UACvB;AAAA,QACJ;AAAA,MACJ,GAAG,YAAY,QAAQ,iBAAiB;AAAA,IAC5C;AAAA,EACJ,GAAG,CAAA,CAAE;AAEL,QAAM,gBAAgB,CAAC,UAAiD;AAEpE,QAAI,MAAM,IAAI,WAAW,KAAK,CAACG,SAAAA,kBAAkB,KAAK,GAAG;AACrD,YAAM,gBAAA;AAAA,IACV;AAMA,QAAI,4BAA4B,IAAI,IAAI,KAAK,CAAC,MAAM,aAAa,MAAM,QAAQ,UAAU,MAAM,QAAQ,QAAQ;AAC3G,YAAM,eAAA;AACN,YAAM,WAAW,MAAM,QAAQ,QAAQ,MAAM,cAAc,MAAM,SAAS;AAC1E,YAAM,cAAc,kBAAkB,UAAU,QAAQ;AAGxD,UAAI,YAAY,SAAS;AACrB,cAAM,iBAAiB,MAAM,QAAQ,QAAQ,YAAY,QAAQ,cAAc;AAC/E,oBAAY,QAAQ,aAAa;AAAA,MACrC;AAAA,IACJ;AAEA,QAAI,OAAO,cAAc,YAAY;AACjC,gBAAU,KAAK;AAAA,IACnB;AAAA,EACJ;AAEA,QAAM,YAAYH,iBAAM,OAAuB,IAAI;AACnD,QAAM,aAAaI,8BAAAA,8BAA8B,SAAS;AAC1D,QAAM,aAAaJ,iBAAM,OAAuB,IAAI;AACpD,QAAM,cAAcI,8BAAAA,8BAA8B,YAAY,CAAC,OAAO,CAAC;AAEvE,QAAM,YAAY;AAAA,IACdC,KAAAA,gBAAgB,KAAK;AAAA,IACrB;AAAA,MACI,QAAQ,CAAC,CAAC;AAAA,MACV,QAAQ,CAAC,CAAC;AAAA,IAAA;AAAA,IAEd,WAAW;AAAA,EAAA;AAGf,QAAM,iBAAuE;AAAA,IACzE;AAAA,EAAA;AAGJ,MAAI,SAAS,UAAU;AACnB,mBAAe,iBAAiB,CAAC,UAA8C;AAE3E,UAAI,SAAS,kBAAkB,MAAM,eAAe;AAChD,8BAAsB,MAAM;AACvB,gBAAM,OAA4B,MAAA;AAAA,QACvC,CAAC;AAAA,MACL;AAEA,YAAM,cAAc,KAAA;AAAA,IACxB;AAAA,EACJ;AAEA,SACIL,iCAAA,cAAC,OAAA,EAAI,WAAU,qCAAoC,aAAU,mBAAkB,OAAO,EAAE,SAAS,MAAA,EAAM,GACnGA,iCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACH,GAAG;AAAA,MACJ,gBAAc;AAAA,MACd;AAAA,MACA,oBAAkB;AAAA,MAClB,aAAU;AAAA,MACV,WAAW;AAAA,MACX,KAAK;AAAA,MACL,OAAO;AAAA,QACH,aAAa,aAAa,GAAG,WAAW,QAAQ,CAAC,OAAO;AAAA,QACxD,cAAc,cAAc,GAAG,YAAY,QAAQ,CAAC,OAAO;AAAA,MAAA;AAAA,IAC/D;AAAA,EAAA,GAEH,SAASA,iCAAA,cAAC,OAAA,EAAM,MAAK,UAAS,UAAU,QAAQ,UAAU,WAAW,UAAU,KAAK,UAAA,CAAW,IAAK,MACpG,UAAUA,iCAAA,cAAC,OAAA,EAAM,MAAK,WAAU,UAAU,SAAS,UAAU,WAAW,UAAU,KAAK,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;;"}
@@ -5,25 +5,31 @@ export type InputWithoutDeprecatedFeaturesProps = Omit<React.InputHTMLAttributes
5
5
  highlighted?: boolean;
6
6
  /** Whether the input is in an invalid state */
7
7
  invalid?: boolean;
8
- postfix?: string | JSX.Element;
9
- prefix?: string | JSX.Element;
8
+ postfix?: string | React.JSX.Element;
9
+ prefix?: string | React.JSX.Element;
10
10
  };
11
11
  export type InputProps = InputWithoutDeprecatedFeaturesProps & {
12
12
  /** Shows a button within the input field */
13
- button?: React.ReactElement;
13
+ button?: React.ReactElement<{
14
+ className?: string;
15
+ disabled?: boolean;
16
+ }>;
14
17
  /** Shows an icon within the input field */
15
- icon?: IconName | JSX.Element;
18
+ icon?: IconName | React.JSX.Element;
16
19
  };
17
20
  export declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "prefix"> & {
18
21
  /** Draws attention to the input by changing its style and making it visually prominent */
19
22
  highlighted?: boolean;
20
23
  /** Whether the input is in an invalid state */
21
24
  invalid?: boolean;
22
- postfix?: string | JSX.Element;
23
- prefix?: string | JSX.Element;
25
+ postfix?: string | React.JSX.Element;
26
+ prefix?: string | React.JSX.Element;
24
27
  } & {
25
28
  /** Shows a button within the input field */
26
- button?: React.ReactElement;
29
+ button?: React.ReactElement<{
30
+ className?: string;
31
+ disabled?: boolean;
32
+ }>;
27
33
  /** Shows an icon within the input field */
28
- icon?: IconName | JSX.Element;
34
+ icon?: IconName | React.JSX.Element;
29
35
  } & React.RefAttributes<HTMLInputElement>>;
@@ -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 | JSX.Element;\n prefix?: string | 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 | 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;\n /** Shows an icon within the input field */\n icon?: IconName | 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":"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"}
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"],"mappings":"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"}
@@ -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>) => 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>) => 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>) => JSX.Element;\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => 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>) => JSX.Element;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | 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 * 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;;"}
@@ -17,32 +17,32 @@ export type LegacyButtonProps = ButtonPrimitive.ButtonProps & {
17
17
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
18
18
  * the button should be only to open the associated dialog when clicked.
19
19
  */
20
- dialog?: (props: Partial<DialogProps>) => JSX.Element;
20
+ dialog?: (props: Partial<DialogProps>) => React.JSX.Element;
21
21
  /**
22
22
  * Drawer component associated with the button, clicking the button will open the drawer.
23
23
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
24
24
  * the button should be only to open the associated drawer when clicked.
25
25
  */
26
- drawer?: (props: Partial<DrawerProps>) => JSX.Element;
26
+ drawer?: (props: Partial<DrawerProps>) => React.JSX.Element;
27
27
  /** If fluid, button expands to the width of it's container */
28
28
  fluid?: boolean;
29
29
  /** Hanger component associated with the button. */
30
- hanger?: (props: Partial<HangerProps>) => JSX.Element;
30
+ hanger?: (props: Partial<HangerProps>) => React.JSX.Element;
31
31
  /** Menu component associated with the button. */
32
- menu?: (props: Partial<MenuProps>) => JSX.Element;
32
+ menu?: (props: Partial<MenuProps>) => React.JSX.Element;
33
33
  /**
34
34
  * Popover component associated with the button, clicking the button will open the popover.
35
35
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
36
36
  * the button should be only to open the associated popover when clicked.
37
37
  */
38
- popover?: (props: Partial<PopoverProps>) => JSX.Element;
38
+ popover?: (props: Partial<PopoverProps>) => React.JSX.Element;
39
39
  /** A tooltip to show when hovering over the button */
40
- tooltip?: string | JSX.Element;
40
+ tooltip?: string | React.JSX.Element;
41
41
  };
42
42
  /**
43
43
  * @deprecated Use the forthcoming `Button` component instead. This legacy API will be removed in a future major version.
44
44
  */
45
- export declare const LegacyButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement | HTMLAnchorElement> & {
45
+ export declare const LegacyButton: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "popover"> & {
46
46
  children: React.ReactNode;
47
47
  href?: string;
48
48
  shortcut?: string | import('../../..').KeyDownHandlerOptions;
@@ -55,25 +55,25 @@ export declare const LegacyButton: React.ForwardRefExoticComponent<React.ButtonH
55
55
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
56
56
  * the button should be only to open the associated dialog when clicked.
57
57
  */
58
- dialog?: (props: Partial<DialogProps>) => JSX.Element;
58
+ dialog?: (props: Partial<DialogProps>) => React.JSX.Element;
59
59
  /**
60
60
  * Drawer component associated with the button, clicking the button will open the drawer.
61
61
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
62
62
  * the button should be only to open the associated drawer when clicked.
63
63
  */
64
- drawer?: (props: Partial<DrawerProps>) => JSX.Element;
64
+ drawer?: (props: Partial<DrawerProps>) => React.JSX.Element;
65
65
  /** If fluid, button expands to the width of it's container */
66
66
  fluid?: boolean;
67
67
  /** Hanger component associated with the button. */
68
- hanger?: (props: Partial<HangerProps>) => JSX.Element;
68
+ hanger?: (props: Partial<HangerProps>) => React.JSX.Element;
69
69
  /** Menu component associated with the button. */
70
- menu?: (props: Partial<MenuProps>) => JSX.Element;
70
+ menu?: (props: Partial<MenuProps>) => React.JSX.Element;
71
71
  /**
72
72
  * Popover component associated with the button, clicking the button will open the popover.
73
73
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
74
74
  * the button should be only to open the associated popover when clicked.
75
75
  */
76
- popover?: (props: Partial<PopoverProps>) => JSX.Element;
76
+ popover?: (props: Partial<PopoverProps>) => React.JSX.Element;
77
77
  /** A tooltip to show when hovering over the button */
78
- tooltip?: string | JSX.Element;
78
+ tooltip?: string | React.JSX.Element;
79
79
  } & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
@@ -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>) => 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>) => 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>) => JSX.Element;\n /** Menu component associated with the button. */\n menu?: (props: Partial<MenuProps>) => 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>) => JSX.Element;\n /** A tooltip to show when hovering over the button */\n tooltip?: string | 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 * 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 +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): 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: 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,QACc;AACd,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,eAA4B;AAC7E,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 * 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;;;;;;"}
@@ -3,5 +3,5 @@ import { Appearance } from '../../../types';
3
3
  export declare const getButtonClasses: () => string;
4
4
  export declare const APPEARANCE_CLASSNAME: Record<Appearance, string>;
5
5
  export declare const ICON_APPEARANCE_CLASSNAME: Record<Appearance, string>;
6
- export declare const createButtonWithTooltip: (props: any, className: string, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => JSX.Element;
7
- export declare const createButtonWithOverlays: (props: any, buttonBase: JSX.Element) => JSX.Element;
6
+ export declare const createButtonWithTooltip: (props: any, className: string, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => React.JSX.Element;
7
+ export declare const createButtonWithOverlays: (props: any, buttonBase: React.JSX.Element) => React.JSX.Element;
@@ -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): 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: 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,QACc;AACd,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,eAA4B;AAC7E,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 * 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 +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>) => JSX.Element;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => 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>) => 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>) => 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 | 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 * 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;;;"}
@@ -17,26 +17,26 @@ export type LegacyIconButtonProps = Omit<ButtonPrimitive.ButtonProps, 'children'
17
17
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
18
18
  * the button should be only to open the associated dialog when clicked.
19
19
  */
20
- dialog?: (props: Partial<DialogProps>) => JSX.Element;
20
+ dialog?: (props: Partial<DialogProps>) => React.JSX.Element;
21
21
  /** Hanger component associated with the button. */
22
- hanger?: (props: Partial<HangerProps>) => JSX.Element;
22
+ hanger?: (props: Partial<HangerProps>) => React.JSX.Element;
23
23
  /** Set which icon should be rendered within button */
24
24
  icon: IconName;
25
25
  /** Menu component associated with the button. */
26
- menu?: (props: Partial<MenuProps>) => JSX.Element;
26
+ menu?: (props: Partial<MenuProps>) => React.JSX.Element;
27
27
  /**
28
28
  * Popover component associated with the button, clicking the button will open the popover.
29
29
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
30
30
  * the button should be only to open the associated popover when clicked.
31
31
  */
32
- popover?: (props: Partial<PopoverProps>) => JSX.Element;
32
+ popover?: (props: Partial<PopoverProps>) => React.JSX.Element;
33
33
  /**
34
34
  * Set whether the button is rounded.
35
35
  * Default value is `false`
36
36
  */
37
37
  rounded?: boolean;
38
38
  /** A tooltip to show when hovering over the button */
39
- tooltip?: string | JSX.Element;
39
+ tooltip?: string | React.JSX.Element;
40
40
  };
41
41
  /**
42
42
  * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.
@@ -49,26 +49,26 @@ export declare const LegacyIconButtonBase: React.ForwardRefExoticComponent<Omit<
49
49
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
50
50
  * the button should be only to open the associated dialog when clicked.
51
51
  */
52
- dialog?: (props: Partial<DialogProps>) => JSX.Element;
52
+ dialog?: (props: Partial<DialogProps>) => React.JSX.Element;
53
53
  /** Hanger component associated with the button. */
54
- hanger?: (props: Partial<HangerProps>) => JSX.Element;
54
+ hanger?: (props: Partial<HangerProps>) => React.JSX.Element;
55
55
  /** Set which icon should be rendered within button */
56
56
  icon: IconName;
57
57
  /** Menu component associated with the button. */
58
- menu?: (props: Partial<MenuProps>) => JSX.Element;
58
+ menu?: (props: Partial<MenuProps>) => React.JSX.Element;
59
59
  /**
60
60
  * Popover component associated with the button, clicking the button will open the popover.
61
61
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
62
62
  * the button should be only to open the associated popover when clicked.
63
63
  */
64
- popover?: (props: Partial<PopoverProps>) => JSX.Element;
64
+ popover?: (props: Partial<PopoverProps>) => React.JSX.Element;
65
65
  /**
66
66
  * Set whether the button is rounded.
67
67
  * Default value is `false`
68
68
  */
69
69
  rounded?: boolean;
70
70
  /** A tooltip to show when hovering over the button */
71
- tooltip?: string | JSX.Element;
71
+ tooltip?: string | React.JSX.Element;
72
72
  } & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
73
73
  /**
74
74
  * @deprecated Use the forthcoming `IconButton` component instead. This legacy API will be removed in a future major version.
@@ -81,24 +81,24 @@ export declare const LegacyIconButton: React.ForwardRefExoticComponent<Omit<Butt
81
81
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
82
82
  * the button should be only to open the associated dialog when clicked.
83
83
  */
84
- dialog?: (props: Partial<DialogProps>) => JSX.Element;
84
+ dialog?: (props: Partial<DialogProps>) => React.JSX.Element;
85
85
  /** Hanger component associated with the button. */
86
- hanger?: (props: Partial<HangerProps>) => JSX.Element;
86
+ hanger?: (props: Partial<HangerProps>) => React.JSX.Element;
87
87
  /** Set which icon should be rendered within button */
88
88
  icon: IconName;
89
89
  /** Menu component associated with the button. */
90
- menu?: (props: Partial<MenuProps>) => JSX.Element;
90
+ menu?: (props: Partial<MenuProps>) => React.JSX.Element;
91
91
  /**
92
92
  * Popover component associated with the button, clicking the button will open the popover.
93
93
  * *Note* that `onClick` event on button won't be handled, as in this case, the purpose of
94
94
  * the button should be only to open the associated popover when clicked.
95
95
  */
96
- popover?: (props: Partial<PopoverProps>) => JSX.Element;
96
+ popover?: (props: Partial<PopoverProps>) => React.JSX.Element;
97
97
  /**
98
98
  * Set whether the button is rounded.
99
99
  * Default value is `false`
100
100
  */
101
101
  rounded?: boolean;
102
102
  /** A tooltip to show when hovering over the button */
103
- tooltip?: string | JSX.Element;
103
+ tooltip?: string | React.JSX.Element;
104
104
  } & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
@@ -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>) => JSX.Element;\n /** Hanger component associated with the button. */\n hanger?: (props: Partial<HangerProps>) => 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>) => 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>) => 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 | 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 * 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 +1 @@
1
- {"version":3,"file":"List.cjs","sources":["../../../src/components/List/List.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Button } from './components/Button';\nimport { Collapsible } from './components/Collapsible';\nimport { Group } from './components/Group';\nimport { Link } from './components/Link';\nimport { Checkbox, Switch } from './components/Toggle';\n\nimport './List.css';\n\nexport type ListProps = React.HTMLAttributes<HTMLDivElement> & {\n /** One or more of List.Button, List.Link, List.Collapsible, List.Checkbox, List.Switch or List.Group */\n children: JSX.Element | (JSX.Element | boolean | null | undefined)[];\n};\n\nexport function List(props: ListProps) {\n return <div {...props} data-taco=\"list\" />;\n}\n\nList.Button = Button;\nList.Link = Link;\nList.Collapsible = Collapsible;\nList.Switch = Switch;\nList.Checkbox = Checkbox;\nList.Group = Group;\n\nexport type { ListButtonProps } from './components/Button';\nexport type { ListLinkProps } from './components/Link';\nexport type { ListCollapsibleProps } from './components/Collapsible';\nexport type { ListGroupProps } from './components/Group';\nexport type { ListSwitchProps, ListCheckboxProps } from './components/Toggle';\n"],"names":["Button","Link","Collapsible","Switch","Checkbox","Group"],"mappings":";;;;;;;;;AAeO,SAAS,KAAK,OAAkB;AACnC,SAAO,sBAAA,cAAC,OAAA,EAAK,GAAG,OAAO,aAAU,QAAO;AAC5C;AAEA,KAAK,SAASA,OAAAA;AACd,KAAK,OAAOC,KAAAA;AACZ,KAAK,cAAcC,YAAAA;AACnB,KAAK,SAASC,OAAAA;AACd,KAAK,WAAWC,OAAAA;AAChB,KAAK,QAAQC,MAAAA;;"}
1
+ {"version":3,"file":"List.cjs","sources":["../../../src/components/List/List.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Button } from './components/Button';\nimport { Collapsible } from './components/Collapsible';\nimport { Group } from './components/Group';\nimport { Link } from './components/Link';\nimport { Checkbox, Switch } from './components/Toggle';\n\nimport './List.css';\n\nexport type ListProps = React.HTMLAttributes<HTMLDivElement> & {\n /** One or more of List.Button, List.Link, List.Collapsible, List.Checkbox, List.Switch or List.Group */\n children: React.JSX.Element | (React.JSX.Element | boolean | null | undefined)[];\n};\n\nexport function List(props: ListProps) {\n return <div {...props} data-taco=\"list\" />;\n}\n\nList.Button = Button;\nList.Link = Link;\nList.Collapsible = Collapsible;\nList.Switch = Switch;\nList.Checkbox = Checkbox;\nList.Group = Group;\n\nexport type { ListButtonProps } from './components/Button';\nexport type { ListLinkProps } from './components/Link';\nexport type { ListCollapsibleProps } from './components/Collapsible';\nexport type { ListGroupProps } from './components/Group';\nexport type { ListSwitchProps, ListCheckboxProps } from './components/Toggle';\n"],"names":["Button","Link","Collapsible","Switch","Checkbox","Group"],"mappings":";;;;;;;;;AAeO,SAAS,KAAK,OAAkB;AACnC,SAAO,sBAAA,cAAC,OAAA,EAAK,GAAG,OAAO,aAAU,QAAO;AAC5C;AAEA,KAAK,SAASA,OAAAA;AACd,KAAK,OAAOC,KAAAA;AACZ,KAAK,cAAcC,YAAAA;AACnB,KAAK,SAASC,OAAAA;AACd,KAAK,WAAWC,OAAAA;AAChB,KAAK,QAAQC,MAAAA;;"}
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  export type ListProps = React.HTMLAttributes<HTMLDivElement> & {
3
3
  /** One or more of List.Button, List.Link, List.Collapsible, List.Checkbox, List.Switch or List.Group */
4
- children: JSX.Element | (JSX.Element | boolean | null | undefined)[];
4
+ children: React.JSX.Element | (React.JSX.Element | boolean | null | undefined)[];
5
5
  };
6
6
  export declare function List(props: ListProps): React.JSX.Element;
7
7
  export declare namespace List {
@@ -12,7 +12,7 @@ export declare namespace List {
12
12
  href: string;
13
13
  } & React.RefAttributes<HTMLAnchorElement>>;
14
14
  var Collapsible: React.ForwardRefExoticComponent<Omit<import("./components/Item").ComposableListItemProps<React.ForwardRefExoticComponent<Omit<import("@base-ui/react").CollapsibleRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>>, "children"> & {
15
- children: JSX.Element | JSX.Element[];
15
+ children: React.JSX.Element | React.JSX.Element[];
16
16
  defaultOpen?: boolean;
17
17
  } & React.RefAttributes<HTMLDivElement>>;
18
18
  var Switch: React.ForwardRefExoticComponent<import("./components/Item").ComposableListItemProps<"div"> & Omit<import("..").ControlledSwitchProps, "title"> & React.RefAttributes<HTMLDivElement>>;
@@ -27,7 +27,7 @@ export declare namespace List {
27
27
  required?: boolean;
28
28
  } & React.RefAttributes<HTMLDivElement>>;
29
29
  var Group: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
30
- children: JSX.Element | JSX.Element[];
30
+ children: React.JSX.Element | React.JSX.Element[];
31
31
  } & React.RefAttributes<HTMLDivElement>>;
32
32
  }
33
33
  export type { ListButtonProps } from './components/Button';
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sources":["../../../src/components/List/List.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Button } from './components/Button';\nimport { Collapsible } from './components/Collapsible';\nimport { Group } from './components/Group';\nimport { Link } from './components/Link';\nimport { Checkbox, Switch } from './components/Toggle';\n\nimport './List.css';\n\nexport type ListProps = React.HTMLAttributes<HTMLDivElement> & {\n /** One or more of List.Button, List.Link, List.Collapsible, List.Checkbox, List.Switch or List.Group */\n children: JSX.Element | (JSX.Element | boolean | null | undefined)[];\n};\n\nexport function List(props: ListProps) {\n return <div {...props} data-taco=\"list\" />;\n}\n\nList.Button = Button;\nList.Link = Link;\nList.Collapsible = Collapsible;\nList.Switch = Switch;\nList.Checkbox = Checkbox;\nList.Group = Group;\n\nexport type { ListButtonProps } from './components/Button';\nexport type { ListLinkProps } from './components/Link';\nexport type { ListCollapsibleProps } from './components/Collapsible';\nexport type { ListGroupProps } from './components/Group';\nexport type { ListSwitchProps, ListCheckboxProps } from './components/Toggle';\n"],"names":["React"],"mappings":";;;;;;;AAeO,SAAS,KAAK,OAAkB;AACnC,SAAOA,+BAAA,cAAC,OAAA,EAAK,GAAG,OAAO,aAAU,QAAO;AAC5C;AAEA,KAAK,SAAS;AACd,KAAK,OAAO;AACZ,KAAK,cAAc;AACnB,KAAK,SAAS;AACd,KAAK,WAAW;AAChB,KAAK,QAAQ;"}
1
+ {"version":3,"file":"List.js","sources":["../../../src/components/List/List.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Button } from './components/Button';\nimport { Collapsible } from './components/Collapsible';\nimport { Group } from './components/Group';\nimport { Link } from './components/Link';\nimport { Checkbox, Switch } from './components/Toggle';\n\nimport './List.css';\n\nexport type ListProps = React.HTMLAttributes<HTMLDivElement> & {\n /** One or more of List.Button, List.Link, List.Collapsible, List.Checkbox, List.Switch or List.Group */\n children: React.JSX.Element | (React.JSX.Element | boolean | null | undefined)[];\n};\n\nexport function List(props: ListProps) {\n return <div {...props} data-taco=\"list\" />;\n}\n\nList.Button = Button;\nList.Link = Link;\nList.Collapsible = Collapsible;\nList.Switch = Switch;\nList.Checkbox = Checkbox;\nList.Group = Group;\n\nexport type { ListButtonProps } from './components/Button';\nexport type { ListLinkProps } from './components/Link';\nexport type { ListCollapsibleProps } from './components/Collapsible';\nexport type { ListGroupProps } from './components/Group';\nexport type { ListSwitchProps, ListCheckboxProps } from './components/Toggle';\n"],"names":["React"],"mappings":";;;;;;;AAeO,SAAS,KAAK,OAAkB;AACnC,SAAOA,+BAAA,cAAC,OAAA,EAAK,GAAG,OAAO,aAAU,QAAO;AAC5C;AAEA,KAAK,SAAS;AACd,KAAK,OAAO;AACZ,KAAK,cAAc;AACnB,KAAK,SAAS;AACd,KAAK,WAAW;AAChB,KAAK,QAAQ;"}
@@ -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: JSX.Element | 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 '../../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;;"}
@@ -2,10 +2,10 @@ import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible'
2
2
  import { default as React } from 'react';
3
3
  import { ComposableListItemProps } from './Item';
4
4
  export type ListCollapsibleProps = Omit<ComposableListItemProps<typeof CollapsiblePrimitive.Root>, 'children'> & {
5
- children: JSX.Element | JSX.Element[];
5
+ children: React.JSX.Element | React.JSX.Element[];
6
6
  defaultOpen?: boolean;
7
7
  };
8
8
  export declare const Collapsible: React.ForwardRefExoticComponent<Omit<ComposableListItemProps<React.ForwardRefExoticComponent<Omit<import('@base-ui/react').CollapsibleRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>>, "children"> & {
9
- children: JSX.Element | JSX.Element[];
9
+ children: React.JSX.Element | React.JSX.Element[];
10
10
  defaultOpen?: boolean;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
@@ -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: JSX.Element | 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 '../../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;"}