periplo-ui 4.23.3 → 4.24.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 (520) hide show
  1. package/dist/base.css +254 -0
  2. package/dist/components/data-display/Avatar/Avatar.js +8 -9
  3. package/dist/components/data-display/Avatar/Avatar.js.map +1 -1
  4. package/dist/components/data-display/Avatar/index.js +1 -2
  5. package/dist/components/data-display/Badge/Badge.d.ts +1 -1
  6. package/dist/components/data-display/Badge/Badge.js +10 -11
  7. package/dist/components/data-display/Badge/Badge.js.map +1 -1
  8. package/dist/components/data-display/Badge/index.js +1 -2
  9. package/dist/components/data-display/Carousel/Carousel.js +3 -4
  10. package/dist/components/data-display/Carousel/Carousel.js.map +1 -1
  11. package/dist/components/data-display/Carousel/index.js +1 -2
  12. package/dist/components/data-display/Chip/Chip.d.ts +1 -1
  13. package/dist/components/data-display/Chip/Chip.js +29 -33
  14. package/dist/components/data-display/Chip/Chip.js.map +1 -1
  15. package/dist/components/data-display/Chip/index.js +1 -2
  16. package/dist/components/data-display/DataTable/DataTable.js +10 -9
  17. package/dist/components/data-display/DataTable/DataTable.js.map +1 -1
  18. package/dist/components/data-display/DataTable/components/DataTableBody.js +15 -14
  19. package/dist/components/data-display/DataTable/components/DataTableBody.js.map +1 -1
  20. package/dist/components/data-display/DataTable/components/DataTableCell.js +2 -3
  21. package/dist/components/data-display/DataTable/components/DataTableCheckbox.js +2 -3
  22. package/dist/components/data-display/DataTable/components/DataTableCheckbox.js.map +1 -1
  23. package/dist/components/data-display/DataTable/components/DataTableColumnHeader.js +4 -5
  24. package/dist/components/data-display/DataTable/components/DataTableColumnHeader.js.map +1 -1
  25. package/dist/components/data-display/DataTable/components/DataTableGroupRow.js +8 -8
  26. package/dist/components/data-display/DataTable/components/DataTableGroupRow.js.map +1 -1
  27. package/dist/components/data-display/DataTable/components/DataTablePagination.js +9 -10
  28. package/dist/components/data-display/DataTable/components/DataTablePagination.js.map +1 -1
  29. package/dist/components/data-display/DataTable/components/DataTableSelectCells.js +1 -2
  30. package/dist/components/data-display/DataTable/components/DataTableToolbar.js +7 -8
  31. package/dist/components/data-display/DataTable/components/DataTableToolbar.js.map +1 -1
  32. package/dist/components/data-display/DataTable/components/DataTableToolbarButton.js +2 -3
  33. package/dist/components/data-display/DataTable/components/dataTableCellStyles.js +3 -4
  34. package/dist/components/data-display/DataTable/components/dataTableCellStyles.js.map +1 -1
  35. package/dist/components/data-display/DataTable/data.js +1 -2
  36. package/dist/components/data-display/DataTable/hooks/useGroupExpansion.js +1 -2
  37. package/dist/components/data-display/DataTable/hooks/useSelectColumn.js +1 -2
  38. package/dist/components/data-display/DataTable/hooks/useSelection.js +1 -2
  39. package/dist/components/data-display/DataTable/hooks/useSorting.js +1 -2
  40. package/dist/components/data-display/DataTable/index.js +1 -1
  41. package/dist/components/data-display/DataTable/utils.js +1 -2
  42. package/dist/components/data-display/Flag/Flag.js +3 -4
  43. package/dist/components/data-display/Flag/Flag.js.map +1 -1
  44. package/dist/components/data-display/Flag/index.js +1 -2
  45. package/dist/components/data-display/Label/Label.js +2 -3
  46. package/dist/components/data-display/Label/Label.js.map +1 -1
  47. package/dist/components/data-display/Label/index.js +1 -2
  48. package/dist/components/data-display/Marquee/Marquee.js +2 -3
  49. package/dist/components/data-display/Marquee/Marquee.js.map +1 -1
  50. package/dist/components/data-display/Marquee/index.js +1 -2
  51. package/dist/components/data-display/NotificationBadge/NotificationBadge.js +13 -15
  52. package/dist/components/data-display/NotificationBadge/NotificationBadge.js.map +1 -1
  53. package/dist/components/data-display/NotificationBadge/index.js +1 -2
  54. package/dist/components/data-display/Popover/Popover.js +4 -5
  55. package/dist/components/data-display/Popover/Popover.js.map +1 -1
  56. package/dist/components/data-display/Popover/index.js +1 -2
  57. package/dist/components/data-display/Separator/Separator.js +2 -3
  58. package/dist/components/data-display/Separator/Separator.js.map +1 -1
  59. package/dist/components/data-display/Separator/index.js +1 -2
  60. package/dist/components/data-display/Table/Table.js +5 -6
  61. package/dist/components/data-display/Table/Table.js.map +1 -1
  62. package/dist/components/data-display/Table/index.js +1 -2
  63. package/dist/components/data-display/Tooltip/Tooltip.js +22 -6
  64. package/dist/components/data-display/Tooltip/Tooltip.js.map +1 -1
  65. package/dist/components/data-display/Tooltip/index.js +1 -2
  66. package/dist/components/data-display/TruncatedTypographyWithTooltip/TruncatedTypographyWithTooltip.js +2 -3
  67. package/dist/components/data-display/TruncatedTypographyWithTooltip/index.js +1 -2
  68. package/dist/components/data-display/Typography/Typography.d.ts +4 -4
  69. package/dist/components/data-display/Typography/Typography.js +27 -31
  70. package/dist/components/data-display/Typography/Typography.js.map +1 -1
  71. package/dist/components/data-display/Typography/index.js +1 -2
  72. package/dist/components/feedback/Dialog/Dialog.js +8 -9
  73. package/dist/components/feedback/Dialog/Dialog.js.map +1 -1
  74. package/dist/components/feedback/Dialog/index.js +1 -2
  75. package/dist/components/feedback/Progress/Progress.d.ts +2 -2
  76. package/dist/components/feedback/Progress/Progress.js +7 -8
  77. package/dist/components/feedback/Progress/Progress.js.map +1 -1
  78. package/dist/components/feedback/Progress/hooks/useFakeProgress.js +1 -2
  79. package/dist/components/feedback/Progress/index.js +1 -2
  80. package/dist/components/feedback/Skeleton/Skeleton.js +2 -3
  81. package/dist/components/feedback/Skeleton/Skeleton.js.map +1 -1
  82. package/dist/components/feedback/Skeleton/index.js +1 -2
  83. package/dist/components/feedback/Toaster/Toaster.js +11 -12
  84. package/dist/components/feedback/Toaster/Toaster.js.map +1 -1
  85. package/dist/components/feedback/Toaster/index.js +1 -2
  86. package/dist/components/inputs/Button/Button.d.ts +1 -1
  87. package/dist/components/inputs/Button/Button.js +62 -58
  88. package/dist/components/inputs/Button/Button.js.map +1 -1
  89. package/dist/components/inputs/Button/index.js +1 -2
  90. package/dist/components/inputs/Calendar/Calendar.js +38 -36
  91. package/dist/components/inputs/Calendar/Calendar.js.map +1 -1
  92. package/dist/components/inputs/Calendar/index.js +1 -2
  93. package/dist/components/inputs/Checkbox/Checkbox.js +14 -13
  94. package/dist/components/inputs/Checkbox/Checkbox.js.map +1 -1
  95. package/dist/components/inputs/Checkbox/index.js +1 -2
  96. package/dist/components/inputs/Combobox/Combobox.d.ts +1 -1
  97. package/dist/components/inputs/Combobox/Combobox.js +6 -6
  98. package/dist/components/inputs/Combobox/Combobox.js.map +1 -1
  99. package/dist/components/inputs/Combobox/ComboboxOptionWithTooltip.js +1 -2
  100. package/dist/components/inputs/Combobox/ComboboxTrigger.js +7 -5
  101. package/dist/components/inputs/Combobox/ComboboxTrigger.js.map +1 -1
  102. package/dist/components/inputs/Combobox/StaticComboboxList.js +10 -22
  103. package/dist/components/inputs/Combobox/StaticComboboxList.js.map +1 -1
  104. package/dist/components/inputs/Combobox/VirtualizedComboboxList.js +6 -7
  105. package/dist/components/inputs/Combobox/VirtualizedComboboxList.js.map +1 -1
  106. package/dist/components/inputs/Combobox/hooks/index.js +1 -1
  107. package/dist/components/inputs/Combobox/hooks/useComboboxOpenState.js +1 -2
  108. package/dist/components/inputs/Combobox/hooks/useComboboxSelection.js +1 -2
  109. package/dist/components/inputs/Combobox/hooks/useDebouncedState.js +5 -6
  110. package/dist/components/inputs/Combobox/hooks/useDebouncedState.js.map +1 -1
  111. package/dist/components/inputs/Combobox/hooks/useDisplayValue.js +1 -2
  112. package/dist/components/inputs/Combobox/index.js +1 -1
  113. package/dist/components/inputs/Combobox/types.d.ts +1 -1
  114. package/dist/components/inputs/Combobox/useCombobox.js +1 -2
  115. package/dist/components/inputs/Command/Command.js +25 -21
  116. package/dist/components/inputs/Command/Command.js.map +1 -1
  117. package/dist/components/inputs/Command/index.js +1 -2
  118. package/dist/components/inputs/CountrySelect/CountrySelect.js +7 -9
  119. package/dist/components/inputs/CountrySelect/CountrySelect.js.map +1 -1
  120. package/dist/components/inputs/CountrySelect/index.js +1 -2
  121. package/dist/components/inputs/DatePicker/DatePicker.js +7 -8
  122. package/dist/components/inputs/DatePicker/DatePicker.js.map +1 -1
  123. package/dist/components/inputs/DatePicker/hooks/useLocale.js +1 -2
  124. package/dist/components/inputs/DatePicker/index.js +1 -2
  125. package/dist/components/inputs/Field/Field.js +15 -13
  126. package/dist/components/inputs/Field/Field.js.map +1 -1
  127. package/dist/components/inputs/Field/index.js +1 -2
  128. package/dist/components/inputs/Form/Form.d.ts +1 -1
  129. package/dist/components/inputs/Form/Form.js +5 -6
  130. package/dist/components/inputs/Form/Form.js.map +1 -1
  131. package/dist/components/inputs/Form/Page.js +1 -2
  132. package/dist/components/inputs/Form/index.js +1 -2
  133. package/dist/components/inputs/InlineMultiSelect/InlineMultiSelect.d.ts +7 -1
  134. package/dist/components/inputs/InlineMultiSelect/InlineMultiSelect.js +80 -29
  135. package/dist/components/inputs/InlineMultiSelect/InlineMultiSelect.js.map +1 -1
  136. package/dist/components/inputs/InlineMultiSelect/index.js +1 -2
  137. package/dist/components/inputs/Input/Input.js +22 -15
  138. package/dist/components/inputs/Input/Input.js.map +1 -1
  139. package/dist/components/inputs/Input/index.js +1 -2
  140. package/dist/components/inputs/InputDate/InputDate.js +16 -17
  141. package/dist/components/inputs/InputDate/InputDate.js.map +1 -1
  142. package/dist/components/inputs/InputDate/index.js +1 -2
  143. package/dist/components/inputs/InputOTP/InputOTP.js +5 -6
  144. package/dist/components/inputs/InputOTP/InputOTP.js.map +1 -1
  145. package/dist/components/inputs/InputOTP/index.js +1 -2
  146. package/dist/components/inputs/LazyDatePicker/LazyDatePicker.js +14 -14
  147. package/dist/components/inputs/LazyDatePicker/LazyDatePicker.js.map +1 -1
  148. package/dist/components/inputs/LazyDatePicker/index.js +1 -2
  149. package/dist/components/inputs/MultiSelect/MultiSelect.js +9 -14
  150. package/dist/components/inputs/MultiSelect/MultiSelect.js.map +1 -1
  151. package/dist/components/inputs/MultiSelect/Page.js +1 -2
  152. package/dist/components/inputs/MultiSelect/index.js +1 -2
  153. package/dist/components/inputs/PhoneInput/PhoneInput.js +18 -21
  154. package/dist/components/inputs/PhoneInput/PhoneInput.js.map +1 -1
  155. package/dist/components/inputs/PhoneInput/hooks/index.js +1 -2
  156. package/dist/components/inputs/PhoneInput/hooks/usePhoneField.js +7 -8
  157. package/dist/components/inputs/PhoneInput/hooks/usePhoneField.js.map +1 -1
  158. package/dist/components/inputs/PhoneInput/index.js +1 -1
  159. package/dist/components/inputs/PhoneInput/phone.js +1 -2
  160. package/dist/components/inputs/RadioGroup/Page.js +1 -2
  161. package/dist/components/inputs/RadioGroup/RadioGroup.js +14 -14
  162. package/dist/components/inputs/RadioGroup/RadioGroup.js.map +1 -1
  163. package/dist/components/inputs/RadioGroup/index.js +1 -2
  164. package/dist/components/inputs/Select/Select.js +22 -21
  165. package/dist/components/inputs/Select/Select.js.map +1 -1
  166. package/dist/components/inputs/Select/index.js +1 -2
  167. package/dist/components/inputs/StarRating/StarRating.js +10 -11
  168. package/dist/components/inputs/StarRating/StarRating.js.map +1 -1
  169. package/dist/components/inputs/StarRating/index.js +1 -2
  170. package/dist/components/inputs/Textarea/Textarea.js +11 -11
  171. package/dist/components/inputs/Textarea/Textarea.js.map +1 -1
  172. package/dist/components/inputs/Textarea/index.js +1 -2
  173. package/dist/components/inputs/Toggle/Toggle.js +19 -15
  174. package/dist/components/inputs/Toggle/Toggle.js.map +1 -1
  175. package/dist/components/inputs/Toggle/index.js +1 -2
  176. package/dist/components/inputs/ToggleGroup/ToggleGroup.js +2 -3
  177. package/dist/components/inputs/ToggleGroup/index.js +1 -2
  178. package/dist/components/inputs/shared/ClearButton.js +9 -10
  179. package/dist/components/inputs/shared/ClearButton.js.map +1 -1
  180. package/dist/components/inputs/shared/InputGroup.js +15 -12
  181. package/dist/components/inputs/shared/InputGroup.js.map +1 -1
  182. package/dist/components/inputs/shared/calendarDayContext.js +1 -2
  183. package/dist/components/inputs/shared/fieldInvalid.js +1 -2
  184. package/dist/components/navigation/Breadcrumb/Breadcrumb.js +8 -9
  185. package/dist/components/navigation/Breadcrumb/Breadcrumb.js.map +1 -1
  186. package/dist/components/navigation/Breadcrumb/index.js +1 -2
  187. package/dist/components/navigation/DropdownMenu/DropdownMenu.js +31 -35
  188. package/dist/components/navigation/DropdownMenu/DropdownMenu.js.map +1 -1
  189. package/dist/components/navigation/DropdownMenu/index.js +1 -2
  190. package/dist/components/navigation/Pagination/Pagination.js +6 -7
  191. package/dist/components/navigation/Pagination/Pagination.js.map +1 -1
  192. package/dist/components/navigation/Pagination/index.js +1 -2
  193. package/dist/components/navigation/Sheet/Sheet.js +9 -12
  194. package/dist/components/navigation/Sheet/Sheet.js.map +1 -1
  195. package/dist/components/navigation/Sheet/index.js +1 -2
  196. package/dist/components/navigation/Sidebar/Sidebar.d.ts +2 -2
  197. package/dist/components/navigation/Sidebar/Sidebar.js +30 -31
  198. package/dist/components/navigation/Sidebar/Sidebar.js.map +1 -1
  199. package/dist/components/navigation/Sidebar/SidebarMenu.d.ts +5 -5
  200. package/dist/components/navigation/Sidebar/SidebarMenu.js +46 -53
  201. package/dist/components/navigation/Sidebar/SidebarMenu.js.map +1 -1
  202. package/dist/components/navigation/Sidebar/SidebarPage.js +9 -10
  203. package/dist/components/navigation/Sidebar/SidebarPage.js.map +1 -1
  204. package/dist/components/navigation/Sidebar/SidebarUser.js +23 -25
  205. package/dist/components/navigation/Sidebar/SidebarUser.js.map +1 -1
  206. package/dist/components/navigation/Sidebar/context.js +1 -2
  207. package/dist/components/navigation/Sidebar/index.js +1 -1
  208. package/dist/components/navigation/Tabs/Tabs.js +21 -7
  209. package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
  210. package/dist/components/navigation/Tabs/index.js +1 -2
  211. package/dist/components/shared/CloseButton.js +1 -2
  212. package/dist/components/shared/OptionCheck.d.ts +14 -0
  213. package/dist/components/shared/OptionCheck.js +22 -0
  214. package/dist/components/shared/OptionCheck.js.map +1 -0
  215. package/dist/components/shared/Spinner.d.ts +7 -0
  216. package/dist/components/shared/Spinner.js +19 -0
  217. package/dist/components/shared/Spinner.js.map +1 -0
  218. package/dist/components/shared/index.d.ts +2 -0
  219. package/dist/components/shared/index.js +3 -1
  220. package/dist/components/surface/Accordion/Accordion.js +5 -6
  221. package/dist/components/surface/Accordion/Accordion.js.map +1 -1
  222. package/dist/components/surface/Accordion/index.js +1 -2
  223. package/dist/components/surface/Card/Card.js +2 -3
  224. package/dist/components/surface/Card/Card.js.map +1 -1
  225. package/dist/components/surface/Card/index.js +1 -2
  226. package/dist/components/surface/Collapsible/Collapsible.js +1 -2
  227. package/dist/components/surface/Collapsible/index.js +1 -2
  228. package/dist/foundations/shared.d.ts +22 -0
  229. package/dist/foundations/shared.js +63 -0
  230. package/dist/foundations/shared.js.map +1 -0
  231. package/dist/lib/countries.js +1 -2
  232. package/dist/lib/dateUtils.js +1 -2
  233. package/dist/lib/flagSvg.js +1 -2
  234. package/dist/lib/inputModality.js +1 -2
  235. package/dist/lib/marquee.js +1 -2
  236. package/dist/lib/useListScroll.js +1 -2
  237. package/dist/lib/useLocale.js +1 -2
  238. package/dist/lib/useMobile.js +1 -2
  239. package/dist/lib/useSlidingIndicator.js +1 -2
  240. package/dist/lib/useTouchDevice.js +1 -2
  241. package/dist/lib/utils.js +66 -3
  242. package/dist/lib/utils.js.map +1 -1
  243. package/dist/node_modules/country-flag-icons/3x2/AC.js +1 -2
  244. package/dist/node_modules/country-flag-icons/3x2/AD.js +1 -2
  245. package/dist/node_modules/country-flag-icons/3x2/AE.js +1 -2
  246. package/dist/node_modules/country-flag-icons/3x2/AF.js +1 -2
  247. package/dist/node_modules/country-flag-icons/3x2/AG.js +1 -2
  248. package/dist/node_modules/country-flag-icons/3x2/AI.js +1 -2
  249. package/dist/node_modules/country-flag-icons/3x2/AL.js +1 -2
  250. package/dist/node_modules/country-flag-icons/3x2/AM.js +1 -2
  251. package/dist/node_modules/country-flag-icons/3x2/AO.js +1 -2
  252. package/dist/node_modules/country-flag-icons/3x2/AQ.js +1 -2
  253. package/dist/node_modules/country-flag-icons/3x2/AR.js +1 -2
  254. package/dist/node_modules/country-flag-icons/3x2/AS.js +1 -2
  255. package/dist/node_modules/country-flag-icons/3x2/AT.js +1 -2
  256. package/dist/node_modules/country-flag-icons/3x2/AU.js +1 -2
  257. package/dist/node_modules/country-flag-icons/3x2/AW.js +1 -2
  258. package/dist/node_modules/country-flag-icons/3x2/AX.js +1 -2
  259. package/dist/node_modules/country-flag-icons/3x2/AZ.js +1 -2
  260. package/dist/node_modules/country-flag-icons/3x2/BA.js +1 -2
  261. package/dist/node_modules/country-flag-icons/3x2/BB.js +1 -2
  262. package/dist/node_modules/country-flag-icons/3x2/BD.js +1 -2
  263. package/dist/node_modules/country-flag-icons/3x2/BE.js +1 -2
  264. package/dist/node_modules/country-flag-icons/3x2/BF.js +1 -2
  265. package/dist/node_modules/country-flag-icons/3x2/BG.js +1 -2
  266. package/dist/node_modules/country-flag-icons/3x2/BH.js +1 -2
  267. package/dist/node_modules/country-flag-icons/3x2/BI.js +1 -2
  268. package/dist/node_modules/country-flag-icons/3x2/BJ.js +1 -2
  269. package/dist/node_modules/country-flag-icons/3x2/BL.js +1 -2
  270. package/dist/node_modules/country-flag-icons/3x2/BM.js +1 -2
  271. package/dist/node_modules/country-flag-icons/3x2/BN.js +1 -2
  272. package/dist/node_modules/country-flag-icons/3x2/BO.js +1 -2
  273. package/dist/node_modules/country-flag-icons/3x2/BQ-BO.js +1 -2
  274. package/dist/node_modules/country-flag-icons/3x2/BQ-SA.js +1 -2
  275. package/dist/node_modules/country-flag-icons/3x2/BQ-SE.js +1 -2
  276. package/dist/node_modules/country-flag-icons/3x2/BQ.js +1 -2
  277. package/dist/node_modules/country-flag-icons/3x2/BR.js +1 -2
  278. package/dist/node_modules/country-flag-icons/3x2/BS.js +1 -2
  279. package/dist/node_modules/country-flag-icons/3x2/BT.js +1 -2
  280. package/dist/node_modules/country-flag-icons/3x2/BV.js +1 -2
  281. package/dist/node_modules/country-flag-icons/3x2/BW.js +1 -2
  282. package/dist/node_modules/country-flag-icons/3x2/BY.js +1 -2
  283. package/dist/node_modules/country-flag-icons/3x2/BZ.js +1 -2
  284. package/dist/node_modules/country-flag-icons/3x2/CA.js +1 -2
  285. package/dist/node_modules/country-flag-icons/3x2/CC.js +1 -2
  286. package/dist/node_modules/country-flag-icons/3x2/CD.js +1 -2
  287. package/dist/node_modules/country-flag-icons/3x2/CF.js +1 -2
  288. package/dist/node_modules/country-flag-icons/3x2/CG.js +1 -2
  289. package/dist/node_modules/country-flag-icons/3x2/CH.js +1 -2
  290. package/dist/node_modules/country-flag-icons/3x2/CI.js +1 -2
  291. package/dist/node_modules/country-flag-icons/3x2/CK.js +1 -2
  292. package/dist/node_modules/country-flag-icons/3x2/CL.js +1 -2
  293. package/dist/node_modules/country-flag-icons/3x2/CM.js +1 -2
  294. package/dist/node_modules/country-flag-icons/3x2/CN.js +1 -2
  295. package/dist/node_modules/country-flag-icons/3x2/CO.js +1 -2
  296. package/dist/node_modules/country-flag-icons/3x2/CR.js +1 -2
  297. package/dist/node_modules/country-flag-icons/3x2/CU.js +1 -2
  298. package/dist/node_modules/country-flag-icons/3x2/CV.js +1 -2
  299. package/dist/node_modules/country-flag-icons/3x2/CW.js +1 -2
  300. package/dist/node_modules/country-flag-icons/3x2/CX.js +1 -2
  301. package/dist/node_modules/country-flag-icons/3x2/CY.js +1 -2
  302. package/dist/node_modules/country-flag-icons/3x2/CZ.js +1 -2
  303. package/dist/node_modules/country-flag-icons/3x2/DE.js +1 -2
  304. package/dist/node_modules/country-flag-icons/3x2/DJ.js +1 -2
  305. package/dist/node_modules/country-flag-icons/3x2/DK.js +1 -2
  306. package/dist/node_modules/country-flag-icons/3x2/DM.js +1 -2
  307. package/dist/node_modules/country-flag-icons/3x2/DO.js +1 -2
  308. package/dist/node_modules/country-flag-icons/3x2/DZ.js +1 -2
  309. package/dist/node_modules/country-flag-icons/3x2/EC.js +1 -2
  310. package/dist/node_modules/country-flag-icons/3x2/EE.js +1 -2
  311. package/dist/node_modules/country-flag-icons/3x2/EG.js +1 -2
  312. package/dist/node_modules/country-flag-icons/3x2/EH.js +1 -2
  313. package/dist/node_modules/country-flag-icons/3x2/ER.js +1 -2
  314. package/dist/node_modules/country-flag-icons/3x2/ES-CT.js +1 -2
  315. package/dist/node_modules/country-flag-icons/3x2/ES.js +1 -2
  316. package/dist/node_modules/country-flag-icons/3x2/ET.js +1 -2
  317. package/dist/node_modules/country-flag-icons/3x2/EU.js +1 -2
  318. package/dist/node_modules/country-flag-icons/3x2/FI.js +1 -2
  319. package/dist/node_modules/country-flag-icons/3x2/FJ.js +1 -2
  320. package/dist/node_modules/country-flag-icons/3x2/FK.js +1 -2
  321. package/dist/node_modules/country-flag-icons/3x2/FM.js +1 -2
  322. package/dist/node_modules/country-flag-icons/3x2/FO.js +1 -2
  323. package/dist/node_modules/country-flag-icons/3x2/FR.js +1 -2
  324. package/dist/node_modules/country-flag-icons/3x2/GA.js +1 -2
  325. package/dist/node_modules/country-flag-icons/3x2/GB-ENG.js +1 -2
  326. package/dist/node_modules/country-flag-icons/3x2/GB-NIR.js +1 -2
  327. package/dist/node_modules/country-flag-icons/3x2/GB-SCT.js +1 -2
  328. package/dist/node_modules/country-flag-icons/3x2/GB-WLS.js +1 -2
  329. package/dist/node_modules/country-flag-icons/3x2/GB.js +1 -2
  330. package/dist/node_modules/country-flag-icons/3x2/GD.js +1 -2
  331. package/dist/node_modules/country-flag-icons/3x2/GE.js +1 -2
  332. package/dist/node_modules/country-flag-icons/3x2/GF.js +1 -2
  333. package/dist/node_modules/country-flag-icons/3x2/GG.js +1 -2
  334. package/dist/node_modules/country-flag-icons/3x2/GH.js +1 -2
  335. package/dist/node_modules/country-flag-icons/3x2/GI.js +1 -2
  336. package/dist/node_modules/country-flag-icons/3x2/GL.js +1 -2
  337. package/dist/node_modules/country-flag-icons/3x2/GM.js +1 -2
  338. package/dist/node_modules/country-flag-icons/3x2/GN.js +1 -2
  339. package/dist/node_modules/country-flag-icons/3x2/GP.js +1 -2
  340. package/dist/node_modules/country-flag-icons/3x2/GQ.js +1 -2
  341. package/dist/node_modules/country-flag-icons/3x2/GR.js +1 -2
  342. package/dist/node_modules/country-flag-icons/3x2/GS.js +1 -2
  343. package/dist/node_modules/country-flag-icons/3x2/GT.js +1 -2
  344. package/dist/node_modules/country-flag-icons/3x2/GU.js +1 -2
  345. package/dist/node_modules/country-flag-icons/3x2/GW.js +1 -2
  346. package/dist/node_modules/country-flag-icons/3x2/GY.js +1 -2
  347. package/dist/node_modules/country-flag-icons/3x2/HK.js +1 -2
  348. package/dist/node_modules/country-flag-icons/3x2/HM.js +1 -2
  349. package/dist/node_modules/country-flag-icons/3x2/HN.js +1 -2
  350. package/dist/node_modules/country-flag-icons/3x2/HR.js +1 -2
  351. package/dist/node_modules/country-flag-icons/3x2/HT.js +1 -2
  352. package/dist/node_modules/country-flag-icons/3x2/HU.js +1 -2
  353. package/dist/node_modules/country-flag-icons/3x2/IC.js +1 -2
  354. package/dist/node_modules/country-flag-icons/3x2/ID.js +1 -2
  355. package/dist/node_modules/country-flag-icons/3x2/IE.js +1 -2
  356. package/dist/node_modules/country-flag-icons/3x2/IL.js +1 -2
  357. package/dist/node_modules/country-flag-icons/3x2/IM.js +1 -2
  358. package/dist/node_modules/country-flag-icons/3x2/IN.js +1 -2
  359. package/dist/node_modules/country-flag-icons/3x2/IO.js +1 -2
  360. package/dist/node_modules/country-flag-icons/3x2/IQ.js +1 -2
  361. package/dist/node_modules/country-flag-icons/3x2/IR.js +1 -2
  362. package/dist/node_modules/country-flag-icons/3x2/IS.js +1 -2
  363. package/dist/node_modules/country-flag-icons/3x2/IT.js +1 -2
  364. package/dist/node_modules/country-flag-icons/3x2/JE.js +1 -2
  365. package/dist/node_modules/country-flag-icons/3x2/JM.js +1 -2
  366. package/dist/node_modules/country-flag-icons/3x2/JO.js +1 -2
  367. package/dist/node_modules/country-flag-icons/3x2/JP.js +1 -2
  368. package/dist/node_modules/country-flag-icons/3x2/KE.js +1 -2
  369. package/dist/node_modules/country-flag-icons/3x2/KG.js +1 -2
  370. package/dist/node_modules/country-flag-icons/3x2/KH.js +1 -2
  371. package/dist/node_modules/country-flag-icons/3x2/KI.js +1 -2
  372. package/dist/node_modules/country-flag-icons/3x2/KM.js +1 -2
  373. package/dist/node_modules/country-flag-icons/3x2/KN.js +1 -2
  374. package/dist/node_modules/country-flag-icons/3x2/KP.js +1 -2
  375. package/dist/node_modules/country-flag-icons/3x2/KR.js +1 -2
  376. package/dist/node_modules/country-flag-icons/3x2/KW.js +1 -2
  377. package/dist/node_modules/country-flag-icons/3x2/KY.js +1 -2
  378. package/dist/node_modules/country-flag-icons/3x2/KZ.js +1 -2
  379. package/dist/node_modules/country-flag-icons/3x2/LA.js +1 -2
  380. package/dist/node_modules/country-flag-icons/3x2/LB.js +1 -2
  381. package/dist/node_modules/country-flag-icons/3x2/LC.js +1 -2
  382. package/dist/node_modules/country-flag-icons/3x2/LI.js +1 -2
  383. package/dist/node_modules/country-flag-icons/3x2/LK.js +1 -2
  384. package/dist/node_modules/country-flag-icons/3x2/LR.js +1 -2
  385. package/dist/node_modules/country-flag-icons/3x2/LS.js +1 -2
  386. package/dist/node_modules/country-flag-icons/3x2/LT.js +1 -2
  387. package/dist/node_modules/country-flag-icons/3x2/LU.js +1 -2
  388. package/dist/node_modules/country-flag-icons/3x2/LV.js +1 -2
  389. package/dist/node_modules/country-flag-icons/3x2/LY.js +1 -2
  390. package/dist/node_modules/country-flag-icons/3x2/MA.js +1 -2
  391. package/dist/node_modules/country-flag-icons/3x2/MC.js +1 -2
  392. package/dist/node_modules/country-flag-icons/3x2/MD.js +1 -2
  393. package/dist/node_modules/country-flag-icons/3x2/ME.js +1 -2
  394. package/dist/node_modules/country-flag-icons/3x2/MF.js +1 -2
  395. package/dist/node_modules/country-flag-icons/3x2/MG.js +1 -2
  396. package/dist/node_modules/country-flag-icons/3x2/MH.js +1 -2
  397. package/dist/node_modules/country-flag-icons/3x2/MK.js +1 -2
  398. package/dist/node_modules/country-flag-icons/3x2/ML.js +1 -2
  399. package/dist/node_modules/country-flag-icons/3x2/MM.js +1 -2
  400. package/dist/node_modules/country-flag-icons/3x2/MN.js +1 -2
  401. package/dist/node_modules/country-flag-icons/3x2/MO.js +1 -2
  402. package/dist/node_modules/country-flag-icons/3x2/MP.js +1 -2
  403. package/dist/node_modules/country-flag-icons/3x2/MQ.js +1 -2
  404. package/dist/node_modules/country-flag-icons/3x2/MR.js +1 -2
  405. package/dist/node_modules/country-flag-icons/3x2/MS.js +1 -2
  406. package/dist/node_modules/country-flag-icons/3x2/MT.js +1 -2
  407. package/dist/node_modules/country-flag-icons/3x2/MU.js +1 -2
  408. package/dist/node_modules/country-flag-icons/3x2/MV.js +1 -2
  409. package/dist/node_modules/country-flag-icons/3x2/MW.js +1 -2
  410. package/dist/node_modules/country-flag-icons/3x2/MX.js +1 -2
  411. package/dist/node_modules/country-flag-icons/3x2/MY.js +1 -2
  412. package/dist/node_modules/country-flag-icons/3x2/MZ.js +1 -2
  413. package/dist/node_modules/country-flag-icons/3x2/NA.js +1 -2
  414. package/dist/node_modules/country-flag-icons/3x2/NC.js +1 -2
  415. package/dist/node_modules/country-flag-icons/3x2/NE.js +1 -2
  416. package/dist/node_modules/country-flag-icons/3x2/NF.js +1 -2
  417. package/dist/node_modules/country-flag-icons/3x2/NG.js +1 -2
  418. package/dist/node_modules/country-flag-icons/3x2/NI.js +1 -2
  419. package/dist/node_modules/country-flag-icons/3x2/NL.js +1 -2
  420. package/dist/node_modules/country-flag-icons/3x2/NO.js +1 -2
  421. package/dist/node_modules/country-flag-icons/3x2/NP.js +1 -2
  422. package/dist/node_modules/country-flag-icons/3x2/NR.js +1 -2
  423. package/dist/node_modules/country-flag-icons/3x2/NU.js +1 -2
  424. package/dist/node_modules/country-flag-icons/3x2/NZ.js +1 -2
  425. package/dist/node_modules/country-flag-icons/3x2/OM.js +1 -2
  426. package/dist/node_modules/country-flag-icons/3x2/PA.js +1 -2
  427. package/dist/node_modules/country-flag-icons/3x2/PE.js +1 -2
  428. package/dist/node_modules/country-flag-icons/3x2/PF.js +1 -2
  429. package/dist/node_modules/country-flag-icons/3x2/PG.js +1 -2
  430. package/dist/node_modules/country-flag-icons/3x2/PH.js +1 -2
  431. package/dist/node_modules/country-flag-icons/3x2/PK.js +1 -2
  432. package/dist/node_modules/country-flag-icons/3x2/PL.js +1 -2
  433. package/dist/node_modules/country-flag-icons/3x2/PM.js +1 -2
  434. package/dist/node_modules/country-flag-icons/3x2/PN.js +1 -2
  435. package/dist/node_modules/country-flag-icons/3x2/PR.js +1 -2
  436. package/dist/node_modules/country-flag-icons/3x2/PS.js +1 -2
  437. package/dist/node_modules/country-flag-icons/3x2/PT.js +1 -2
  438. package/dist/node_modules/country-flag-icons/3x2/PW.js +1 -2
  439. package/dist/node_modules/country-flag-icons/3x2/PY.js +1 -2
  440. package/dist/node_modules/country-flag-icons/3x2/QA.js +1 -2
  441. package/dist/node_modules/country-flag-icons/3x2/RE.js +1 -2
  442. package/dist/node_modules/country-flag-icons/3x2/RO.js +1 -2
  443. package/dist/node_modules/country-flag-icons/3x2/RS.js +1 -2
  444. package/dist/node_modules/country-flag-icons/3x2/RU.js +1 -2
  445. package/dist/node_modules/country-flag-icons/3x2/RW.js +1 -2
  446. package/dist/node_modules/country-flag-icons/3x2/SA.js +1 -2
  447. package/dist/node_modules/country-flag-icons/3x2/SB.js +1 -2
  448. package/dist/node_modules/country-flag-icons/3x2/SC.js +1 -2
  449. package/dist/node_modules/country-flag-icons/3x2/SD.js +1 -2
  450. package/dist/node_modules/country-flag-icons/3x2/SE.js +1 -2
  451. package/dist/node_modules/country-flag-icons/3x2/SG.js +1 -2
  452. package/dist/node_modules/country-flag-icons/3x2/SH.js +1 -2
  453. package/dist/node_modules/country-flag-icons/3x2/SI.js +1 -2
  454. package/dist/node_modules/country-flag-icons/3x2/SJ.js +1 -2
  455. package/dist/node_modules/country-flag-icons/3x2/SK.js +1 -2
  456. package/dist/node_modules/country-flag-icons/3x2/SL.js +1 -2
  457. package/dist/node_modules/country-flag-icons/3x2/SM.js +1 -2
  458. package/dist/node_modules/country-flag-icons/3x2/SN.js +1 -2
  459. package/dist/node_modules/country-flag-icons/3x2/SO.js +1 -2
  460. package/dist/node_modules/country-flag-icons/3x2/SR.js +1 -2
  461. package/dist/node_modules/country-flag-icons/3x2/SS.js +1 -2
  462. package/dist/node_modules/country-flag-icons/3x2/ST.js +1 -2
  463. package/dist/node_modules/country-flag-icons/3x2/SV.js +1 -2
  464. package/dist/node_modules/country-flag-icons/3x2/SX.js +1 -2
  465. package/dist/node_modules/country-flag-icons/3x2/SY.js +1 -2
  466. package/dist/node_modules/country-flag-icons/3x2/SZ.js +1 -2
  467. package/dist/node_modules/country-flag-icons/3x2/TA.js +1 -2
  468. package/dist/node_modules/country-flag-icons/3x2/TC.js +1 -2
  469. package/dist/node_modules/country-flag-icons/3x2/TD.js +1 -2
  470. package/dist/node_modules/country-flag-icons/3x2/TF.js +1 -2
  471. package/dist/node_modules/country-flag-icons/3x2/TG.js +1 -2
  472. package/dist/node_modules/country-flag-icons/3x2/TH.js +1 -2
  473. package/dist/node_modules/country-flag-icons/3x2/TJ.js +1 -2
  474. package/dist/node_modules/country-flag-icons/3x2/TK.js +1 -2
  475. package/dist/node_modules/country-flag-icons/3x2/TL.js +1 -2
  476. package/dist/node_modules/country-flag-icons/3x2/TM.js +1 -2
  477. package/dist/node_modules/country-flag-icons/3x2/TN.js +1 -2
  478. package/dist/node_modules/country-flag-icons/3x2/TO.js +1 -2
  479. package/dist/node_modules/country-flag-icons/3x2/TR.js +1 -2
  480. package/dist/node_modules/country-flag-icons/3x2/TT.js +1 -2
  481. package/dist/node_modules/country-flag-icons/3x2/TV.js +1 -2
  482. package/dist/node_modules/country-flag-icons/3x2/TW.js +1 -2
  483. package/dist/node_modules/country-flag-icons/3x2/TZ.js +1 -2
  484. package/dist/node_modules/country-flag-icons/3x2/UA.js +1 -2
  485. package/dist/node_modules/country-flag-icons/3x2/UG.js +1 -2
  486. package/dist/node_modules/country-flag-icons/3x2/UM.js +1 -2
  487. package/dist/node_modules/country-flag-icons/3x2/US.js +1 -2
  488. package/dist/node_modules/country-flag-icons/3x2/UY.js +1 -2
  489. package/dist/node_modules/country-flag-icons/3x2/UZ.js +1 -2
  490. package/dist/node_modules/country-flag-icons/3x2/VA.js +1 -2
  491. package/dist/node_modules/country-flag-icons/3x2/VC.js +1 -2
  492. package/dist/node_modules/country-flag-icons/3x2/VE.js +1 -2
  493. package/dist/node_modules/country-flag-icons/3x2/VG.js +1 -2
  494. package/dist/node_modules/country-flag-icons/3x2/VI.js +1 -2
  495. package/dist/node_modules/country-flag-icons/3x2/VN.js +1 -2
  496. package/dist/node_modules/country-flag-icons/3x2/VU.js +1 -2
  497. package/dist/node_modules/country-flag-icons/3x2/WF.js +1 -2
  498. package/dist/node_modules/country-flag-icons/3x2/WS.js +1 -2
  499. package/dist/node_modules/country-flag-icons/3x2/XA.js +1 -2
  500. package/dist/node_modules/country-flag-icons/3x2/XC.js +1 -2
  501. package/dist/node_modules/country-flag-icons/3x2/XK.js +1 -2
  502. package/dist/node_modules/country-flag-icons/3x2/XO.js +1 -2
  503. package/dist/node_modules/country-flag-icons/3x2/YE.js +1 -2
  504. package/dist/node_modules/country-flag-icons/3x2/YT.js +1 -2
  505. package/dist/node_modules/country-flag-icons/3x2/ZA.js +1 -2
  506. package/dist/node_modules/country-flag-icons/3x2/ZM.js +1 -2
  507. package/dist/node_modules/country-flag-icons/3x2/ZW.js +1 -2
  508. package/dist/theme.css +3 -336
  509. package/dist/tokens.css +491 -0
  510. package/dist/utilities.css +642 -0
  511. package/package.json +86 -85
  512. package/dist/theme/control.css +0 -94
  513. package/dist/theme/fade-text.css +0 -7
  514. package/dist/theme/hit-area.css +0 -42
  515. package/dist/theme/motion.css +0 -3
  516. package/dist/theme/press.css +0 -22
  517. package/dist/theme/scrollbar.css +0 -3
  518. package/dist/theme/sliding-indicator.css +0 -7
  519. package/dist/theme/sticky-column.css +0 -11
  520. package/dist/theme/surface.css +0 -18
package/dist/base.css ADDED
@@ -0,0 +1,254 @@
1
+ /* ==========================================================================
2
+ Reset
3
+ ========================================================================== */
4
+ @layer base {
5
+ input[type='number']::-webkit-inner-spin-button,
6
+ input[type='number']::-webkit-outer-spin-button {
7
+ -webkit-appearance: none;
8
+ margin: 0;
9
+ }
10
+
11
+ * {
12
+ @apply border-subtle outline-focused;
13
+ }
14
+ }
15
+
16
+ /* ==========================================================================
17
+ Focus
18
+ ========================================================================== */
19
+ @layer base {
20
+ :focus-visible {
21
+ outline: 2px solid var(--ds-border-focused);
22
+ outline-offset: var(--focus-ring-offset, 2px);
23
+ }
24
+
25
+ :is(
26
+ input:not(
27
+ [type='checkbox'],
28
+ [type='radio'],
29
+ [type='button'],
30
+ [type='submit'],
31
+ [type='reset'],
32
+ [type='image'],
33
+ [type='range'],
34
+ [type='color'],
35
+ [type='file']
36
+ ),
37
+ textarea,
38
+ [contenteditable]:not([contenteditable='false']),
39
+ [role='spinbutton'],
40
+ [role='textbox']
41
+ ) {
42
+ outline-color: transparent;
43
+ }
44
+
45
+ [data-input-modality='pointer']
46
+ :is(
47
+ [role='menuitem'],
48
+ [role='menuitemcheckbox'],
49
+ [role='menuitemradio'],
50
+ [role='option'],
51
+ [role='tab']
52
+ ):focus-visible {
53
+ outline-style: none;
54
+ }
55
+ }
56
+
57
+ /* ==========================================================================
58
+ Interaction: touch and cursor
59
+ ========================================================================== */
60
+ @layer base {
61
+ html {
62
+ -webkit-tap-highlight-color: transparent;
63
+ -webkit-text-size-adjust: 100%;
64
+ }
65
+
66
+ :where(
67
+ button,
68
+ a,
69
+ summary,
70
+ [role='button'],
71
+ [role='tab'],
72
+ [role='checkbox'],
73
+ [role='radio'],
74
+ [role='switch'],
75
+ [role='menuitem'],
76
+ [role='menuitemcheckbox'],
77
+ [role='menuitemradio'],
78
+ [role='option']
79
+ ) {
80
+ touch-action: manipulation;
81
+ }
82
+
83
+ :where(
84
+ button,
85
+ summary,
86
+ [role='button'],
87
+ [role='tab'],
88
+ [role='checkbox'],
89
+ [role='radio'],
90
+ [role='switch'],
91
+ [role='menuitem'],
92
+ [role='menuitemcheckbox'],
93
+ [role='menuitemradio']
94
+ ) {
95
+ -webkit-user-select: none;
96
+ user-select: none;
97
+ -webkit-touch-callout: none;
98
+ }
99
+
100
+ /* Enabled clickable controls get the hand, the common web convention (Tailwind v4's preflight leaves buttons with the arrow). */
101
+ :where(
102
+ button,
103
+ summary,
104
+ [role='button'],
105
+ [role='tab'],
106
+ [role='checkbox'],
107
+ [role='radio'],
108
+ [role='switch'],
109
+ [role='menuitem'],
110
+ [role='menuitemcheckbox'],
111
+ [role='menuitemradio'],
112
+ [role='option']
113
+ ):not(:disabled, [aria-disabled='true'], [data-disabled=''], [data-disabled='true']) {
114
+ cursor: pointer;
115
+ }
116
+ }
117
+
118
+ /* ==========================================================================
119
+ Registered properties
120
+ ========================================================================== */
121
+ @property --collapse {
122
+ syntax: '<number>';
123
+ inherits: true;
124
+ initial-value: 1;
125
+ }
126
+
127
+ @property --scroll-fade-t {
128
+ syntax: '<length>';
129
+ inherits: false;
130
+ initial-value: 0px;
131
+ }
132
+
133
+ @property --scroll-fade-b {
134
+ syntax: '<length>';
135
+ inherits: false;
136
+ initial-value: 0px;
137
+ }
138
+
139
+ @keyframes scroll-fade-t {
140
+ from {
141
+ --scroll-fade-t: 0px;
142
+ }
143
+
144
+ to {
145
+ --scroll-fade-t: var(--scroll-fade-size);
146
+ }
147
+ }
148
+
149
+ @keyframes scroll-fade-b {
150
+ from {
151
+ --scroll-fade-b: var(--scroll-fade-size);
152
+ }
153
+
154
+ to {
155
+ --scroll-fade-b: 0px;
156
+ }
157
+ }
158
+
159
+ @keyframes marquee {
160
+ from {
161
+ transform: translateX(0);
162
+ }
163
+
164
+ to {
165
+ transform: translateX(calc(-100% - var(--gap)));
166
+ }
167
+ }
168
+
169
+ @keyframes marquee-vertical {
170
+ from {
171
+ transform: translateY(0);
172
+ }
173
+
174
+ to {
175
+ transform: translateY(calc(-100% - var(--gap)));
176
+ }
177
+ }
178
+
179
+ @keyframes indeterminate {
180
+ 0% {
181
+ transform: translateX(-100%);
182
+ }
183
+
184
+ 50% {
185
+ transform: translateX(0);
186
+ }
187
+
188
+ 100% {
189
+ transform: translateX(100%);
190
+ }
191
+ }
192
+
193
+ @keyframes accordion-down {
194
+ from {
195
+ height: 0;
196
+ }
197
+
198
+ to {
199
+ height: var(--radix-accordion-content-height);
200
+ }
201
+ }
202
+
203
+ @keyframes accordion-up {
204
+ from {
205
+ height: var(--radix-accordion-content-height);
206
+ }
207
+
208
+ to {
209
+ height: 0;
210
+ }
211
+ }
212
+
213
+ @keyframes icon-down-up {
214
+ 0% {
215
+ transform: translateY(0%);
216
+ }
217
+
218
+ 50% {
219
+ transform: translateY(100%);
220
+ }
221
+
222
+ 50.01% {
223
+ transform: translateY(-100%);
224
+ }
225
+
226
+ 100% {
227
+ transform: translateY(0%);
228
+ }
229
+ }
230
+
231
+ @keyframes motion-spin {
232
+ to {
233
+ transform: rotate(360deg);
234
+ }
235
+ }
236
+
237
+ @keyframes motion-ping {
238
+ 0% {
239
+ transform: scale(1);
240
+ opacity: 0.75;
241
+ }
242
+
243
+ 75%,
244
+ 100% {
245
+ transform: scale(2);
246
+ opacity: 0;
247
+ }
248
+ }
249
+
250
+ @keyframes motion-pulse {
251
+ 50% {
252
+ opacity: 0.5;
253
+ }
254
+ }
@@ -3,8 +3,8 @@ import { cva } from "class-variance-authority";
3
3
  import React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
6
- //#region src/components/data-display/Avatar/Avatar.tsx
7
- var avatarVariants = cva("relative flex h-10 w-10 shrink-0 rounded-full", {
6
+ // src/components/data-display/Avatar/Avatar.tsx
7
+ var avatarVariants = cva("relative flex size-10 shrink-0 rounded-full", {
8
8
  variants: {
9
9
  /**
10
10
  * Controls the size of the avatar
@@ -12,11 +12,11 @@ var avatarVariants = cva("relative flex h-10 w-10 shrink-0 rounded-full", {
12
12
  */
13
13
  size: {
14
14
  /** Small size - 32x32px */
15
- sm: "h-8 w-8",
15
+ sm: "size-8",
16
16
  /** Medium size - 40x40px */
17
- md: "h-10 w-10",
17
+ md: "size-10",
18
18
  /** Large size - 48x48px */
19
- lg: "h-12 w-12"
19
+ lg: "size-12"
20
20
  } },
21
21
  defaultVariants: { size: "md" }
22
22
  });
@@ -42,7 +42,7 @@ Avatar.displayName = "Avatar";
42
42
  */
43
43
  var AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AvatarPrimitive.Image, {
44
44
  ref,
45
- className: cn("aspect-square h-full w-full shrink-0 overflow-hidden rounded-full", className),
45
+ className: cn("aspect-square size-full shrink-0 overflow-hidden rounded-full", className),
46
46
  ...props
47
47
  }));
48
48
  AvatarImage.displayName = "AvatarImage";
@@ -53,7 +53,7 @@ AvatarImage.displayName = "AvatarImage";
53
53
  */
54
54
  var AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, {
55
55
  ref,
56
- className: cn("flex h-full w-full items-center justify-center rounded-full bg-neutral-100", className),
56
+ className: cn("flex size-full items-center justify-center rounded-full bg-surface-tertiary", className),
57
57
  ...props
58
58
  }));
59
59
  AvatarFallback.displayName = "AvatarFallback";
@@ -64,7 +64,7 @@ AvatarFallback.displayName = "AvatarFallback";
64
64
  */
65
65
  var AvatarGroup = React.forwardRef(({ className, children, ...props }, ref) => {
66
66
  const modifiedChildren = React.Children.map(children, (child) => {
67
- if (React.isValidElement(child) && child.type === Avatar) return React.cloneElement(child, { className: cn("ring-2 ring-white", child.props.className) });
67
+ if (React.isValidElement(child) && child.type === Avatar) return React.cloneElement(child, { className: cn("ring-2 ring-surface-primary", child.props.className) });
68
68
  return child;
69
69
  });
70
70
  return /* @__PURE__ */ jsx("div", {
@@ -75,7 +75,6 @@ var AvatarGroup = React.forwardRef(({ className, children, ...props }, ref) => {
75
75
  });
76
76
  });
77
77
  AvatarGroup.displayName = "AvatarGroup";
78
- //#endregion
79
78
  export { Avatar, AvatarFallback, AvatarGroup, AvatarImage };
80
79
 
81
80
  //# sourceMappingURL=Avatar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.js","names":[],"sources":["../../../../src/components/data-display/Avatar/Avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@radix-ui/react-avatar'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport React from 'react'\n\nimport { cn } from '../../../lib/utils'\n\nconst avatarVariants = cva('relative flex h-10 w-10 shrink-0 rounded-full', {\n variants: {\n /**\n * Controls the size of the avatar\n * @default \"md\"\n */\n size: {\n /** Small size - 32x32px */\n sm: 'h-8 w-8',\n /** Medium size - 40x40px */\n md: 'h-10 w-10',\n /** Large size - 48x48px */\n lg: 'h-12 w-12',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n})\nexport type AvatarProps = React.HTMLAttributes<HTMLElement> & VariantProps<typeof avatarVariants>\n\n/**\n * Root avatar component that serves as a container for AvatarImage and AvatarFallback\n * @param props.size - Controls the size of the avatar (\"sm\" | \"md\" | \"lg\")\n * @param props.className - Additional CSS classes to apply\n */\nconst Avatar = React.forwardRef<React.ComponentRef<typeof AvatarPrimitive.Root>, Readonly<AvatarProps>>(\n ({ className, size, ...props }, ref) => (\n <AvatarPrimitive.Root ref={ref} className={cn(avatarVariants({ size, className }))} {...props} />\n ),\n)\nAvatar.displayName = 'Avatar'\n\n/**\n * Component for displaying the actual avatar image\n * @param props.src - The source URL of the image\n * @param props.alt - Alt text for the image\n * @param props.className - Additional CSS classes to apply\n */\nconst AvatarImage = React.forwardRef<\n React.ComponentRef<typeof AvatarPrimitive.Image>,\n Readonly<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn('aspect-square h-full w-full shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n))\nAvatarImage.displayName = 'AvatarImage'\n\n/**\n * Fallback component displayed when the image fails to load or isn't provided\n * @param props.className - Additional CSS classes to apply\n * @param props.children - Content to display as fallback (typically initials or an icon)\n */\nconst AvatarFallback = React.forwardRef<\n React.ComponentRef<typeof AvatarPrimitive.Fallback>,\n Readonly<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn('flex h-full w-full items-center justify-center rounded-full bg-neutral-100', className)}\n {...props}\n />\n))\nAvatarFallback.displayName = 'AvatarFallback'\n\ntype AvatarGroupProps = {\n /** Optional custom className */\n className?: string\n /** Children should be Avatar components */\n children: React.ReactNode\n} & React.HTMLAttributes<HTMLDivElement>\n\n/**\n * Container component for grouping multiple avatars with an overlapping effect\n * @param props.className - Additional CSS classes to apply\n * @param props.children - Avatar components to be grouped\n */\nconst AvatarGroup = React.forwardRef<HTMLDivElement, Readonly<AvatarGroupProps>>(\n ({ className, children, ...props }, ref) => {\n const modifiedChildren = React.Children.map(children, (child) => {\n if (React.isValidElement<AvatarProps>(child) && child.type === Avatar) {\n return React.cloneElement(child, {\n className: cn('ring-2 ring-white', child.props.className),\n })\n }\n return child\n })\n\n return (\n <div ref={ref} className={cn('flex -space-x-4', className)} {...props}>\n {modifiedChildren}\n </div>\n )\n },\n)\n\nAvatarGroup.displayName = 'AvatarGroup'\n\nexport { Avatar, AvatarImage, AvatarFallback, AvatarGroup }\n"],"mappings":";;;;;;AAMA,IAAM,iBAAiB,IAAI,iDAAiD;CAC1E,UAAU;;;;;AAKR,MAAM;;EAEJ,IAAI;;EAEJ,IAAI;;EAEJ,IAAI;CACN,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC;;;;;;AAQD,IAAM,SAAS,MAAM,YAClB,EAAE,WAAW,MAAM,GAAG,SAAS,QAC9B,oBAAC,gBAAgB,MAAjB;CAA2B;CAAK,WAAW,GAAG,eAAe;EAAE;EAAM;CAAU,CAAC,CAAC;CAAG,GAAI;AAAQ,CAAA,CAEpG;AACA,OAAO,cAAc;;;;;;;AAQrB,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GAAG,qEAAqE,SAAS;CAC5F,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc;;;;;;AAO1B,IAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,UAAjB;CACO;CACL,WAAW,GAAG,8EAA8E,SAAS;CACrG,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc;;;;;;AAc7B,IAAM,cAAc,MAAM,YACvB,EAAE,WAAW,UAAU,GAAG,SAAS,QAAQ;CAC1C,MAAM,mBAAmB,MAAM,SAAS,IAAI,WAAW,UAAU;EAC/D,IAAI,MAAM,eAA4B,KAAK,KAAK,MAAM,SAAS,QAC7D,OAAO,MAAM,aAAa,OAAO,EAC/B,WAAW,GAAG,qBAAqB,MAAM,MAAM,SAAS,EAC1D,CAAC;EAEH,OAAO;CACT,CAAC;CAED,OACE,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,mBAAmB,SAAS;EAAG,GAAI;EAC7D,UAAA;CACE,CAAA;AAET,CACF;AAEA,YAAY,cAAc"}
1
+ {"version":3,"file":"Avatar.js","names":[],"sources":["../../../../src/components/data-display/Avatar/Avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@radix-ui/react-avatar'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport React from 'react'\n\nimport { cn } from '../../../lib/utils'\n\nconst avatarVariants = cva('relative flex size-10 shrink-0 rounded-full', {\n variants: {\n /**\n * Controls the size of the avatar\n * @default \"md\"\n */\n size: {\n /** Small size - 32x32px */\n sm: 'size-8',\n /** Medium size - 40x40px */\n md: 'size-10',\n /** Large size - 48x48px */\n lg: 'size-12',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n})\nexport type AvatarProps = React.HTMLAttributes<HTMLElement> & VariantProps<typeof avatarVariants>\n\n/**\n * Root avatar component that serves as a container for AvatarImage and AvatarFallback\n * @param props.size - Controls the size of the avatar (\"sm\" | \"md\" | \"lg\")\n * @param props.className - Additional CSS classes to apply\n */\nconst Avatar = React.forwardRef<React.ComponentRef<typeof AvatarPrimitive.Root>, Readonly<AvatarProps>>(\n ({ className, size, ...props }, ref) => (\n <AvatarPrimitive.Root ref={ref} className={cn(avatarVariants({ size, className }))} {...props} />\n ),\n)\nAvatar.displayName = 'Avatar'\n\n/**\n * Component for displaying the actual avatar image\n * @param props.src - The source URL of the image\n * @param props.alt - Alt text for the image\n * @param props.className - Additional CSS classes to apply\n */\nconst AvatarImage = React.forwardRef<\n React.ComponentRef<typeof AvatarPrimitive.Image>,\n Readonly<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn('aspect-square size-full shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n))\nAvatarImage.displayName = 'AvatarImage'\n\n/**\n * Fallback component displayed when the image fails to load or isn't provided\n * @param props.className - Additional CSS classes to apply\n * @param props.children - Content to display as fallback (typically initials or an icon)\n */\nconst AvatarFallback = React.forwardRef<\n React.ComponentRef<typeof AvatarPrimitive.Fallback>,\n Readonly<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn('flex size-full items-center justify-center rounded-full bg-surface-tertiary', className)}\n {...props}\n />\n))\nAvatarFallback.displayName = 'AvatarFallback'\n\ntype AvatarGroupProps = {\n /** Optional custom className */\n className?: string\n /** Children should be Avatar components */\n children: React.ReactNode\n} & React.HTMLAttributes<HTMLDivElement>\n\n/**\n * Container component for grouping multiple avatars with an overlapping effect\n * @param props.className - Additional CSS classes to apply\n * @param props.children - Avatar components to be grouped\n */\nconst AvatarGroup = React.forwardRef<HTMLDivElement, Readonly<AvatarGroupProps>>(\n ({ className, children, ...props }, ref) => {\n const modifiedChildren = React.Children.map(children, (child) => {\n if (React.isValidElement<AvatarProps>(child) && child.type === Avatar) {\n return React.cloneElement(child, {\n className: cn('ring-2 ring-surface-primary', child.props.className),\n })\n }\n return child\n })\n\n return (\n <div ref={ref} className={cn('flex -space-x-4', className)} {...props}>\n {modifiedChildren}\n </div>\n )\n },\n)\n\nAvatarGroup.displayName = 'AvatarGroup'\n\nexport { Avatar, AvatarImage, AvatarFallback, AvatarGroup }\n"],"mappings":";;;;;;AAMA,IAAM,iBAAiB,IAAI,+CAA+C;CACxE,UAAU;;;;;AAKR,MAAM;;EAEJ,IAAI;;EAEJ,IAAI;;EAEJ,IAAI;CACN,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC;;;;;;AAQD,IAAM,SAAS,MAAM,YAClB,EAAE,WAAW,MAAM,GAAG,SAAS,QAC9B,oBAAC,gBAAgB,MAAjB;CAA2B;CAAK,WAAW,GAAG,eAAe;EAAE;EAAM;CAAU,CAAC,CAAC;CAAG,GAAI;AAAQ,CAAA,CAEpG;AACA,OAAO,cAAc;;;;;;;AAQrB,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GAAG,iEAAiE,SAAS;CACxF,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc;;;;;;AAO1B,IAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,UAAjB;CACO;CACL,WAAW,GAAG,+EAA+E,SAAS;CACtG,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc;;;;;;AAc7B,IAAM,cAAc,MAAM,YACvB,EAAE,WAAW,UAAU,GAAG,SAAS,QAAQ;CAC1C,MAAM,mBAAmB,MAAM,SAAS,IAAI,WAAW,UAAU;EAC/D,IAAI,MAAM,eAA4B,KAAK,KAAK,MAAM,SAAS,QAC7D,OAAO,MAAM,aAAa,OAAO,EAC/B,WAAW,GAAG,+BAA+B,MAAM,MAAM,SAAS,EACpE,CAAC;EAEH,OAAO;CACT,CAAC;CAED,OACE,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,mBAAmB,SAAS;EAAG,GAAI;EAC7D,UAAA;CACE,CAAA;AAET,CACF;AAEA,YAAY,cAAc"}
@@ -1,2 +1 @@
1
- import { Avatar, AvatarFallback, AvatarGroup, AvatarImage } from "./Avatar.js";
2
- export { Avatar, AvatarFallback, AvatarGroup, AvatarImage };
1
+ export { Avatar, AvatarFallback, AvatarGroup, AvatarImage } from "./Avatar.js";
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  declare const badgeVariants: (props?: ({
3
3
  color?: "accent" | "success" | "warning" | "error" | "neutral" | "info" | null | undefined;
4
- size?: "medium" | "small" | "big" | null | undefined;
4
+ size?: "big" | "small" | "medium" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export type BadgeProps = {
7
7
  /**
@@ -2,21 +2,21 @@ import { cn } from "../../../lib/utils.js";
2
2
  import { cva } from "class-variance-authority";
3
3
  import * as React$1 from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
- //#region src/components/data-display/Badge/Badge.tsx
5
+ // src/components/data-display/Badge/Badge.tsx
6
6
  var badgeVariants = cva("inline-flex items-center rounded-sm border border-transparent font-medium", {
7
7
  variants: {
8
8
  color: {
9
- neutral: "bg-neutral-50 text-neutral-950",
10
- accent: "bg-accent-100 text-neutral-950",
11
- info: "bg-information-100 text-information-800",
12
- success: "bg-success-100 text-success-800",
13
- warning: "bg-background-300 text-accent-900",
14
- error: "bg-error-100 text-error-800"
9
+ neutral: "bg-surface-overlay text-primary",
10
+ accent: "bg-surface-progress-inactive text-primary",
11
+ info: "bg-surface-information text-information",
12
+ success: "bg-surface-status-active text-status-active",
13
+ warning: "bg-surface-brand text-status-expired",
14
+ error: "bg-surface-status-returned text-status-returned"
15
15
  },
16
16
  size: {
17
- small: "px-2 py-0.5 text-xs",
18
- medium: "px-2.5 py-0.5 text-sm",
19
- big: "px-3 py-1 text-base"
17
+ small: "px-2 py-0.5 text-body-sm",
18
+ medium: "px-2.5 py-0.5 text-body-md",
19
+ big: "px-3 py-1 text-body-lg"
20
20
  }
21
21
  },
22
22
  defaultVariants: {
@@ -44,7 +44,6 @@ var Badge = React$1.forwardRef(({ className, color = "neutral", size = "medium",
44
44
  });
45
45
  });
46
46
  Badge.displayName = "Badge";
47
- //#endregion
48
47
  export { Badge, badgeVariants };
49
48
 
50
49
  //# sourceMappingURL=Badge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","names":["React"],"sources":["../../../../src/components/data-display/Badge/Badge.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { cn } from '../../../lib/utils'\n\nconst badgeVariants = cva('inline-flex items-center rounded-sm border border-transparent font-medium', {\n variants: {\n color: {\n neutral: 'bg-neutral-50 text-neutral-950',\n accent: 'bg-accent-100 text-neutral-950',\n info: 'bg-information-100 text-information-800',\n success: 'bg-success-100 text-success-800',\n warning: 'bg-background-300 text-accent-900',\n error: 'bg-error-100 text-error-800',\n },\n size: {\n small: 'px-2 py-0.5 text-xs',\n medium: 'px-2.5 py-0.5 text-sm',\n big: 'px-3 py-1 text-base',\n },\n },\n defaultVariants: {\n color: 'neutral',\n size: 'medium',\n },\n})\n\nexport type BadgeProps = {\n /**\n * The color of the badge.\n * @default 'neutral'\n */\n color?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'error'\n\n /**\n * The size of the badge.\n * @default 'medium'\n */\n size?: 'small' | 'medium' | 'big'\n\n /**\n * The label to display inside the badge.\n */\n children?: React.ReactNode\n} & React.HTMLAttributes<HTMLElement>\n\n/**\n * An inline status label used to represent a state (e.g. \"Active\", \"Pending\").\n *\n * @example\n * ```tsx\n * <Badge color=\"success\" size=\"small\">Active</Badge>\n * ```\n */\nconst Badge = React.forwardRef<HTMLSpanElement, Readonly<BadgeProps>>(\n ({ className, color = 'neutral', size = 'medium', children, ...props }, ref) => {\n return (\n <span className={cn(badgeVariants({ color, size }), className)} ref={ref} {...props}>\n {children}\n </span>\n )\n },\n)\n\nBadge.displayName = 'Badge'\n\nexport { Badge, badgeVariants }\n"],"mappings":";;;;;AAKA,IAAM,gBAAgB,IAAI,6EAA6E;CACrG,UAAU;EACR,OAAO;GACL,SAAS;GACT,QAAQ;GACR,MAAM;GACN,SAAS;GACT,SAAS;GACT,OAAO;EACT;EACA,MAAM;GACJ,OAAO;GACP,QAAQ;GACR,KAAK;EACP;CACF;CACA,iBAAiB;EACf,OAAO;EACP,MAAM;CACR;AACF,CAAC;;;;;;;;;AA6BD,IAAM,QAAQA,QAAM,YACjB,EAAE,WAAW,QAAQ,WAAW,OAAO,UAAU,UAAU,GAAG,SAAS,QAAQ;CAC9E,OACE,oBAAC,QAAD;EAAM,WAAW,GAAG,cAAc;GAAE;GAAO;EAAK,CAAC,GAAG,SAAS;EAAQ;EAAK,GAAI;EAC3E;CACG,CAAA;AAEV,CACF;AAEA,MAAM,cAAc"}
1
+ {"version":3,"file":"Badge.js","names":["React"],"sources":["../../../../src/components/data-display/Badge/Badge.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { cn } from '../../../lib/utils'\n\nconst badgeVariants = cva('inline-flex items-center rounded-sm border border-transparent font-medium', {\n variants: {\n color: {\n neutral: 'bg-surface-overlay text-primary',\n accent: 'bg-surface-progress-inactive text-primary',\n info: 'bg-surface-information text-information',\n success: 'bg-surface-status-active text-status-active',\n warning: 'bg-surface-brand text-status-expired',\n error: 'bg-surface-status-returned text-status-returned',\n },\n size: {\n small: 'px-2 py-0.5 text-body-sm',\n medium: 'px-2.5 py-0.5 text-body-md',\n big: 'px-3 py-1 text-body-lg',\n },\n },\n defaultVariants: {\n color: 'neutral',\n size: 'medium',\n },\n})\n\nexport type BadgeProps = {\n /**\n * The color of the badge.\n * @default 'neutral'\n */\n color?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'error'\n\n /**\n * The size of the badge.\n * @default 'medium'\n */\n size?: 'small' | 'medium' | 'big'\n\n /**\n * The label to display inside the badge.\n */\n children?: React.ReactNode\n} & React.HTMLAttributes<HTMLElement>\n\n/**\n * An inline status label used to represent a state (e.g. \"Active\", \"Pending\").\n *\n * @example\n * ```tsx\n * <Badge color=\"success\" size=\"small\">Active</Badge>\n * ```\n */\nconst Badge = React.forwardRef<HTMLSpanElement, Readonly<BadgeProps>>(\n ({ className, color = 'neutral', size = 'medium', children, ...props }, ref) => {\n return (\n <span className={cn(badgeVariants({ color, size }), className)} ref={ref} {...props}>\n {children}\n </span>\n )\n },\n)\n\nBadge.displayName = 'Badge'\n\nexport { Badge, badgeVariants }\n"],"mappings":";;;;;AAKA,IAAM,gBAAgB,IAAI,6EAA6E;CACrG,UAAU;EACR,OAAO;GACL,SAAS;GACT,QAAQ;GACR,MAAM;GACN,SAAS;GACT,SAAS;GACT,OAAO;EACT;EACA,MAAM;GACJ,OAAO;GACP,QAAQ;GACR,KAAK;EACP;CACF;CACA,iBAAiB;EACf,OAAO;EACP,MAAM;CACR;AACF,CAAC;;;;;;;;;AA6BD,IAAM,QAAQA,QAAM,YACjB,EAAE,WAAW,QAAQ,WAAW,OAAO,UAAU,UAAU,GAAG,SAAS,QAAQ;CAC9E,OACE,oBAAC,QAAD;EAAM,WAAW,GAAG,cAAc;GAAE;GAAO;EAAK,CAAC,GAAG,SAAS;EAAQ;EAAK,GAAI;EAC3E;CACG,CAAA;AAEV,CACF;AAEA,MAAM,cAAc"}
@@ -1,2 +1 @@
1
- import { Badge, badgeVariants } from "./Badge.js";
2
- export { Badge, badgeVariants };
1
+ export { Badge, badgeVariants } from "./Badge.js";
@@ -7,7 +7,7 @@ import { jsx } from "react/jsx-runtime";
7
7
  import { ArrowLeftIcon } from "@phosphor-icons/react/dist/ssr/ArrowLeft";
8
8
  import { ArrowRightIcon } from "@phosphor-icons/react/dist/ssr/ArrowRight";
9
9
  import useEmblaCarousel from "embla-carousel-react";
10
- //#region src/components/data-display/Carousel/Carousel.tsx
10
+ // src/components/data-display/Carousel/Carousel.tsx
11
11
  var CarouselContext = React$1.createContext(null);
12
12
  function useCarousel() {
13
13
  const context = React$1.useContext(CarouselContext);
@@ -113,7 +113,7 @@ var CarouselPrevious = React$1.forwardRef(({ className, ...props }, ref) => {
113
113
  ref,
114
114
  variant: "ghost",
115
115
  iconOnly: true,
116
- className: cn("absolute h-8 w-8 rounded-full", orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className),
116
+ className: cn("absolute size-8 rounded-full", orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className),
117
117
  disabled: !canScrollPrev,
118
118
  onClick: scrollPrev,
119
119
  StartIcon: ArrowLeftIcon,
@@ -132,7 +132,7 @@ var CarouselNext = React$1.forwardRef(({ className, ...props }, ref) => {
132
132
  variant: "ghost",
133
133
  iconOnly: true,
134
134
  className: cn(
135
- "absolute h-8 w-8 rounded-full",
135
+ "absolute size-8 rounded-full",
136
136
  /* istanbul ignore next -- @preserve */
137
137
  orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
138
138
  className
@@ -148,7 +148,6 @@ var CarouselNext = React$1.forwardRef(({ className, ...props }, ref) => {
148
148
  });
149
149
  });
150
150
  CarouselNext.displayName = "CarouselNext";
151
- //#endregion
152
151
  export { Carousel, CarouselContent, CarouselContext, CarouselItem, CarouselNext, CarouselPrevious };
153
152
 
154
153
  //# sourceMappingURL=Carousel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.js","names":["React"],"sources":["../../../../src/components/data-display/Carousel/Carousel.tsx"],"sourcesContent":["'use client'\nimport { ArrowLeftIcon } from '@phosphor-icons/react/dist/ssr/ArrowLeft'\nimport { ArrowRightIcon } from '@phosphor-icons/react/dist/ssr/ArrowRight'\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react'\nimport * as React from 'react'\n\nimport { cn } from '../../../lib/utils'\nimport { Button } from '../../inputs/Button'\n\ntype CarouselApi = UseEmblaCarouselType[1]\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>\ntype CarouselOptions = UseCarouselParameters[0]\ntype CarouselPlugin = UseCarouselParameters[1]\n\nexport type CarouselProps = {\n opts?: CarouselOptions\n plugins?: CarouselPlugin\n orientation?: 'horizontal' | 'vertical'\n setApi?: (api: CarouselApi) => void\n}\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0]\n api: ReturnType<typeof useEmblaCarousel>[1]\n scrollPrev: () => void\n scrollNext: () => void\n canScrollPrev: boolean\n canScrollNext: boolean\n} & CarouselProps\n\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null)\n\nfunction useCarousel() {\n const context = React.useContext(CarouselContext)\n\n if (!context) {\n throw new Error('useCarousel must be used within a <Carousel />')\n }\n\n return context\n}\n\nconst Carousel = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement> & CarouselProps>>(\n ({ orientation = 'horizontal', opts, setApi, plugins, className, children, ...props }, ref) => {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === 'horizontal' ? 'x' : 'y',\n },\n plugins,\n )\n const [canScrollPrev, setCanScrollPrev] = React.useState(false)\n const [canScrollNext, setCanScrollNext] = React.useState(false)\n\n const scrollPrev = React.useCallback(() => {\n /* istanbul ignore next -- @preserve */\n api?.scrollPrev()\n }, [api])\n\n const scrollNext = React.useCallback(() => {\n /* istanbul ignore next -- @preserve */\n api?.scrollNext()\n }, [api])\n\n React.useEffect(() => {\n /* istanbul ignore next -- @preserve */\n if (!api || !setApi) {\n return\n }\n /* istanbul ignore next -- @preserve */\n setApi(api)\n }, [api, setApi])\n\n React.useEffect(() => {\n if (!api) {\n return\n }\n\n const onSelect = (selectedApi: CarouselApi) => {\n /* istanbul ignore next -- @preserve */\n if (!selectedApi) {\n /* istanbul ignore next -- @preserve */\n return\n }\n\n setCanScrollPrev(selectedApi.canScrollPrev())\n setCanScrollNext(selectedApi.canScrollNext())\n }\n\n onSelect(api)\n api.on('reInit', onSelect)\n api.on('select', onSelect)\n\n return () => {\n api.off('select', onSelect)\n }\n }, [api])\n const obj = React.useMemo(\n () => ({\n carouselRef,\n api: api,\n opts,\n orientation: orientation,\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }),\n [api, canScrollNext, canScrollPrev, carouselRef, opts, orientation, scrollNext, scrollPrev],\n )\n return (\n <CarouselContext.Provider value={obj}>\n <div ref={ref} className={cn('relative', className)} aria-roledescription=\"carousel\" {...props}>\n {children}\n </div>\n </CarouselContext.Provider>\n )\n },\n)\nCarousel.displayName = 'Carousel'\n\nconst CarouselContent = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement>>>(\n ({ className, ...props }, ref) => {\n const { carouselRef, orientation } = useCarousel()\n\n return (\n <div ref={carouselRef} className={cn('overflow-hidden', className)}>\n <div\n ref={ref}\n data-orientation={orientation}\n className=\"\n flex\n data-[orientation=horizontal]:-ml-4\n data-[orientation=vertical]:-mt-4 data-[orientation=vertical]:flex-col\n \"\n {...props}\n />\n </div>\n )\n },\n)\nCarouselContent.displayName = 'CarouselContent'\n\nconst CarouselItem = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement>>>(\n ({ className, ...props }, ref) => {\n const { orientation } = useCarousel()\n\n return (\n <div\n ref={ref}\n aria-roledescription=\"slide\"\n className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\n {...props}\n />\n )\n },\n)\nCarouselItem.displayName = 'CarouselItem'\n\nconst CarouselPrevious = React.forwardRef<HTMLButtonElement, Readonly<React.ComponentProps<typeof Button>>>(\n ({ className, ...props }, ref) => {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel()\n\n return (\n <Button\n ref={ref}\n variant={'ghost'}\n iconOnly\n className={cn(\n 'absolute h-8 w-8 rounded-full',\n orientation === 'horizontal'\n ? 'top-1/2 -left-12 -translate-y-1/2'\n : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollPrev}\n onClick={scrollPrev}\n StartIcon={ArrowLeftIcon}\n {...props}\n >\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n )\n },\n)\nCarouselPrevious.displayName = 'CarouselPrevious'\n\nconst CarouselNext = React.forwardRef<HTMLButtonElement, Readonly<React.ComponentProps<typeof Button>>>(\n ({ className, ...props }, ref) => {\n const { orientation, scrollNext, canScrollNext } = useCarousel()\n\n return (\n <Button\n ref={ref}\n variant={'ghost'}\n iconOnly\n className={cn(\n 'absolute h-8 w-8 rounded-full',\n /* istanbul ignore next -- @preserve */\n orientation === 'horizontal'\n ? 'top-1/2 -right-12 -translate-y-1/2'\n : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollNext}\n onClick={scrollNext}\n StartIcon={ArrowRightIcon}\n {...props}\n >\n <span className=\"sr-only\">Next slide</span>\n </Button>\n )\n },\n)\nCarouselNext.displayName = 'CarouselNext'\n\nexport { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, CarouselContext }\n"],"mappings":"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"}
1
+ {"version":3,"file":"Carousel.js","names":["React"],"sources":["../../../../src/components/data-display/Carousel/Carousel.tsx"],"sourcesContent":["'use client'\nimport { ArrowLeftIcon } from '@phosphor-icons/react/dist/ssr/ArrowLeft'\nimport { ArrowRightIcon } from '@phosphor-icons/react/dist/ssr/ArrowRight'\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react'\nimport * as React from 'react'\n\nimport { cn } from '../../../lib/utils'\nimport { Button } from '../../inputs/Button'\n\ntype CarouselApi = UseEmblaCarouselType[1]\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>\ntype CarouselOptions = UseCarouselParameters[0]\ntype CarouselPlugin = UseCarouselParameters[1]\n\nexport type CarouselProps = {\n opts?: CarouselOptions\n plugins?: CarouselPlugin\n orientation?: 'horizontal' | 'vertical'\n setApi?: (api: CarouselApi) => void\n}\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0]\n api: ReturnType<typeof useEmblaCarousel>[1]\n scrollPrev: () => void\n scrollNext: () => void\n canScrollPrev: boolean\n canScrollNext: boolean\n} & CarouselProps\n\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null)\n\nfunction useCarousel() {\n const context = React.useContext(CarouselContext)\n\n if (!context) {\n throw new Error('useCarousel must be used within a <Carousel />')\n }\n\n return context\n}\n\nconst Carousel = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement> & CarouselProps>>(\n ({ orientation = 'horizontal', opts, setApi, plugins, className, children, ...props }, ref) => {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === 'horizontal' ? 'x' : 'y',\n },\n plugins,\n )\n const [canScrollPrev, setCanScrollPrev] = React.useState(false)\n const [canScrollNext, setCanScrollNext] = React.useState(false)\n\n const scrollPrev = React.useCallback(() => {\n /* istanbul ignore next -- @preserve */\n api?.scrollPrev()\n }, [api])\n\n const scrollNext = React.useCallback(() => {\n /* istanbul ignore next -- @preserve */\n api?.scrollNext()\n }, [api])\n\n React.useEffect(() => {\n /* istanbul ignore next -- @preserve */\n if (!api || !setApi) {\n return\n }\n /* istanbul ignore next -- @preserve */\n setApi(api)\n }, [api, setApi])\n\n React.useEffect(() => {\n if (!api) {\n return\n }\n\n const onSelect = (selectedApi: CarouselApi) => {\n /* istanbul ignore next -- @preserve */\n if (!selectedApi) {\n /* istanbul ignore next -- @preserve */\n return\n }\n\n setCanScrollPrev(selectedApi.canScrollPrev())\n setCanScrollNext(selectedApi.canScrollNext())\n }\n\n onSelect(api)\n api.on('reInit', onSelect)\n api.on('select', onSelect)\n\n return () => {\n api.off('select', onSelect)\n }\n }, [api])\n const obj = React.useMemo(\n () => ({\n carouselRef,\n api: api,\n opts,\n orientation: orientation,\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }),\n [api, canScrollNext, canScrollPrev, carouselRef, opts, orientation, scrollNext, scrollPrev],\n )\n return (\n <CarouselContext.Provider value={obj}>\n <div ref={ref} className={cn('relative', className)} aria-roledescription=\"carousel\" {...props}>\n {children}\n </div>\n </CarouselContext.Provider>\n )\n },\n)\nCarousel.displayName = 'Carousel'\n\nconst CarouselContent = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement>>>(\n ({ className, ...props }, ref) => {\n const { carouselRef, orientation } = useCarousel()\n\n return (\n <div ref={carouselRef} className={cn('overflow-hidden', className)}>\n <div\n ref={ref}\n data-orientation={orientation}\n className=\"\n flex\n data-[orientation=horizontal]:-ml-4\n data-[orientation=vertical]:-mt-4 data-[orientation=vertical]:flex-col\n \"\n {...props}\n />\n </div>\n )\n },\n)\nCarouselContent.displayName = 'CarouselContent'\n\nconst CarouselItem = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement>>>(\n ({ className, ...props }, ref) => {\n const { orientation } = useCarousel()\n\n return (\n <div\n ref={ref}\n aria-roledescription=\"slide\"\n className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\n {...props}\n />\n )\n },\n)\nCarouselItem.displayName = 'CarouselItem'\n\nconst CarouselPrevious = React.forwardRef<HTMLButtonElement, Readonly<React.ComponentProps<typeof Button>>>(\n ({ className, ...props }, ref) => {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel()\n\n return (\n <Button\n ref={ref}\n variant={'ghost'}\n iconOnly\n className={cn(\n 'absolute size-8 rounded-full',\n orientation === 'horizontal'\n ? 'top-1/2 -left-12 -translate-y-1/2'\n : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollPrev}\n onClick={scrollPrev}\n StartIcon={ArrowLeftIcon}\n {...props}\n >\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n )\n },\n)\nCarouselPrevious.displayName = 'CarouselPrevious'\n\nconst CarouselNext = React.forwardRef<HTMLButtonElement, Readonly<React.ComponentProps<typeof Button>>>(\n ({ className, ...props }, ref) => {\n const { orientation, scrollNext, canScrollNext } = useCarousel()\n\n return (\n <Button\n ref={ref}\n variant={'ghost'}\n iconOnly\n className={cn(\n 'absolute size-8 rounded-full',\n /* istanbul ignore next -- @preserve */\n orientation === 'horizontal'\n ? 'top-1/2 -right-12 -translate-y-1/2'\n : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollNext}\n onClick={scrollNext}\n StartIcon={ArrowRightIcon}\n {...props}\n >\n <span className=\"sr-only\">Next slide</span>\n </Button>\n )\n },\n)\nCarouselNext.displayName = 'CarouselNext'\n\nexport { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, CarouselContext }\n"],"mappings":"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"}
@@ -1,2 +1 @@
1
- import { Carousel, CarouselContent, CarouselContext, CarouselItem, CarouselNext, CarouselPrevious } from "./Carousel.js";
2
- export { Carousel, CarouselContent, CarouselContext, CarouselItem, CarouselNext, CarouselPrevious };
1
+ export { Carousel, CarouselContent, CarouselContext, CarouselItem, CarouselNext, CarouselPrevious } from "./Carousel.js";
@@ -79,7 +79,7 @@ export type ChipProps = ChipBaseProps & ({
79
79
  * <Chip variant="error">Error</Chip>
80
80
  *
81
81
  * // With a leading icon (e.g. locked or add state)
82
- * <Chip variant="tint" icon={<LockIcon size={14} />}>Locked</Chip>
82
+ * <Chip variant="tint" icon={<LockIcon />}>Locked</Chip>
83
83
  *
84
84
  * // Pressable, to open a related panel
85
85
  * <Chip pressable onClick={() => console.log('pressed')}>Pressable</Chip>
@@ -3,33 +3,36 @@ import { cva } from "class-variance-authority";
3
3
  import "react";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
  import { XIcon } from "@phosphor-icons/react/dist/ssr/X";
6
- //#region src/components/data-display/Chip/Chip.tsx
7
- var chipVariants = cva(`relative inline-flex items-center gap-1.5 border font-medium transition-colors`, {
6
+ // src/components/data-display/Chip/Chip.tsx
7
+ var chipVariants = cva(`relative inline-flex items-center gap-1.5 border font-medium motion-hover`, {
8
8
  variants: {
9
9
  /**
10
10
  * Defines the visual style of the chip
11
11
  */
12
12
  variant: {
13
- default: "border-transparent bg-neutral-100 text-neutral-950",
14
- ghost: " border border-neutral-500 bg-transparent text-primary-foreground",
15
- primary: "border-transparent bg-primary text-primary-foreground",
16
- secondary: "border-transparent bg-neutral-950 text-neutral-foreground",
17
- error: "border-transparent bg-error-600 text-white",
18
- success: "border-transparent bg-success-600 text-white",
19
- tint: "border-primary-500 bg-background-200 text-neutral-950",
13
+ default: "border-transparent bg-surface-tertiary text-primary",
14
+ ghost: "border border-control bg-transparent text-primary",
15
+ primary: "border-transparent bg-surface-brand-strong text-on-brand",
16
+ secondary: "border-transparent bg-surface-neutral-strong text-inverse",
17
+ error: "border-transparent bg-surface-danger-strong text-on-strong",
18
+ success: "border-transparent bg-surface-success-strong text-on-strong",
19
+ tint: "border-brand bg-surface-brand-secondary text-primary",
20
20
  dashed: `
21
- border-dashed border-primary-500 bg-white text-neutral-950
21
+ border-dashed border-brand bg-surface-primary text-primary
22
22
  has-[[data-chip-trigger]:focus-visible]:border-solid
23
23
  `,
24
- subtle: `border-transparent bg-white text-neutral-950 has-[[data-chip-trigger]:focus-visible]:border-primary-500`
24
+ subtle: `
25
+ border-transparent bg-surface-primary text-primary
26
+ has-[[data-chip-trigger]:focus-visible]:border-focused
27
+ `
25
28
  },
26
29
  /**
27
30
  * Controls the height and font size of the chip.
28
31
  */
29
32
  size: {
30
- sm: "h-7 text-sm",
31
- md: "h-8 text-sm",
32
- lg: "h-9 text-base"
33
+ sm: "h-7 text-body-md [&>svg]:icon-md [&>svg]:shrink-0",
34
+ md: "h-8 text-body-md [&>svg]:icon-md [&>svg]:shrink-0",
35
+ lg: "h-9 text-body-lg [&>svg]:icon-lg [&>svg]:shrink-0"
33
36
  },
34
37
  rounded: {
35
38
  full: "rounded-full",
@@ -47,21 +50,16 @@ var CHIP_PADDING = {
47
50
  md: "px-2.5 py-1",
48
51
  lg: "px-3 py-1"
49
52
  };
50
- var CHIP_REMOVE_ICON_SIZE = {
51
- sm: 12,
52
- md: 16,
53
- lg: 18
54
- };
55
53
  var CHIP_PRESSABLE_HOVER = {
56
- default: "[@media(hover:_hover)]:has-[:hover]:bg-neutral-200",
57
- ghost: "[@media(hover:_hover)]:has-[:hover]:bg-neutral-100/50",
58
- primary: "[@media(hover:_hover)]:has-[:hover]:bg-primary-700",
59
- secondary: "[@media(hover:_hover)]:has-[:hover]:bg-neutral-800",
60
- error: "[@media(hover:_hover)]:has-[:hover]:bg-error-800",
61
- success: "[@media(hover:_hover)]:has-[:hover]:bg-success-800",
62
- tint: "[@media(hover:_hover)]:has-[:hover]:bg-background-300",
63
- dashed: "[@media(hover:_hover)]:has-[:hover]:bg-neutral-50",
64
- subtle: "[@media(hover:_hover)]:has-[:hover]:bg-neutral-100"
54
+ default: "[@media(hover:_hover)]:has-[:hover]:bg-surface-neutral-subtle-disabled",
55
+ ghost: "[@media(hover:_hover)]:has-[:hover]:bg-surface-overlay",
56
+ primary: "[@media(hover:_hover)]:has-[:hover]:bg-surface-brand-strong-hovered",
57
+ secondary: "[@media(hover:_hover)]:has-[:hover]:bg-surface-neutral-strong-hovered",
58
+ error: "[@media(hover:_hover)]:has-[:hover]:bg-surface-danger-strong-hovered",
59
+ success: "[@media(hover:_hover)]:has-[:hover]:bg-surface-success-strong-hovered",
60
+ tint: "[@media(hover:_hover)]:has-[:hover]:bg-surface-brand",
61
+ dashed: "[@media(hover:_hover)]:has-[:hover]:bg-surface-overlay",
62
+ subtle: "[@media(hover:_hover)]:has-[:hover]:bg-surface-tertiary"
65
63
  };
66
64
  /**
67
65
  * A chip component for displaying compact information with optional remove functionality.
@@ -78,7 +76,7 @@ var CHIP_PRESSABLE_HOVER = {
78
76
  * <Chip variant="error">Error</Chip>
79
77
  *
80
78
  * // With a leading icon (e.g. locked or add state)
81
- * <Chip variant="tint" icon={<LockIcon size={14} />}>Locked</Chip>
79
+ * <Chip variant="tint" icon={<LockIcon />}>Locked</Chip>
82
80
  *
83
81
  * // Pressable, to open a related panel
84
82
  * <Chip pressable onClick={() => console.log('pressed')}>Pressable</Chip>
@@ -124,18 +122,16 @@ function Chip({ className, variant = "default", size = "md", rounded = "full", i
124
122
  onClick: onRemove,
125
123
  "data-size": size,
126
124
  "data-pressable": pressable ? "" : void 0,
127
- className: "\n inline-flex items-center justify-center rounded-full transition-colors\n hover:bg-black/10\n data-pressable:absolute data-pressable:top-1/2 data-pressable:right-1 data-pressable:-translate-y-1/2\n data-[size=lg]:h-7 data-[size=lg]:w-7\n data-[size=md]:h-6 data-[size=md]:w-6\n data-[size=sm]:h-5 data-[size=sm]:w-5\n ",
125
+ className: "\n inline-flex items-center justify-center rounded-full\n data-pressable:absolute data-pressable:top-1/2 data-pressable:right-1 data-pressable:-translate-y-1/2\n data-[size=lg]:size-7\n data-[size=md]:size-6\n data-[size=sm]:size-5\n ",
128
126
  "aria-label": "Remove",
129
127
  children: /* @__PURE__ */ jsx(XIcon, {
130
- size: CHIP_REMOVE_ICON_SIZE[size],
131
128
  weight: "regular",
132
- className: "shrink-0"
129
+ className: "icon-sm shrink-0"
133
130
  })
134
131
  }) : null]
135
132
  });
136
133
  }
137
134
  Chip.displayName = "Chip";
138
- //#endregion
139
135
  export { Chip, chipVariants };
140
136
 
141
137
  //# sourceMappingURL=Chip.js.map