pixelize-design-library 2.4.2-beta.43 → 2.4.2-beta.44

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 (1024) hide show
  1. package/CHANGELOG.md +130 -0
  2. package/COMPONENT-GOTCHAS.md +398 -243
  3. package/DESIGN-GUIDE.md +210 -0
  4. package/README.md +51 -26
  5. package/dist/Components/Accordion/Accordion.js +7 -9
  6. package/dist/Components/Accordion/accordionColors.d.ts +6 -0
  7. package/dist/Components/Accordion/accordionColors.js +11 -11
  8. package/dist/Components/AlertDialog/AlertDialog.d.ts +1 -1
  9. package/dist/Components/AlertDialog/AlertDialog.js +5 -5
  10. package/dist/Components/AlertDialog/AlertDialogProps.d.ts +27 -4
  11. package/dist/Components/Apexcharts/ApexAreaChart/ApexAreaChart.js +6 -2
  12. package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.js +7 -4
  13. package/dist/Components/Apexcharts/ApexChartFallback.d.ts +7 -0
  14. package/dist/Components/Apexcharts/ApexChartFallback.js +10 -0
  15. package/dist/Components/Apexcharts/ApexLineChart/ApexLineChart.js +6 -2
  16. package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.js +6 -2
  17. package/dist/Components/Apexcharts/ApexPolarCharts/ApexPolarCharts.js +8 -5
  18. package/dist/Components/Apexcharts/ApexRadialChart/ApexRadialChart.js +6 -4
  19. package/dist/Components/Apexcharts/LazyReactApexChart.d.ts +2 -0
  20. package/dist/Components/Apexcharts/LazyReactApexChart.js +40 -0
  21. package/dist/Components/AppSwitcher/AppMark.d.ts +0 -5
  22. package/dist/Components/AppSwitcher/AppMark.js +1 -5
  23. package/dist/Components/AppSwitcher/AppSwitcher.js +4 -9
  24. package/dist/Components/Avatar/Avatar.d.ts +3 -0
  25. package/dist/Components/Avatar/Avatar.js +24 -0
  26. package/dist/Components/Avatar/AvatarGroup.d.ts +3 -0
  27. package/dist/Components/Avatar/AvatarGroup.js +24 -0
  28. package/dist/Components/Avatar/AvatarGroupProps.d.ts +19 -0
  29. package/dist/Components/Avatar/AvatarProps.d.ts +22 -0
  30. package/dist/Components/Avatar/AvatarProps.js +2 -0
  31. package/dist/Components/Avatar/avatarColorway.d.ts +11 -0
  32. package/dist/Components/Avatar/avatarColorway.js +31 -0
  33. package/dist/Components/Avatar/avatarSizing.d.ts +5 -0
  34. package/dist/Components/Avatar/avatarSizing.js +15 -0
  35. package/dist/Components/Backdrop/Backdrop.d.ts +3 -0
  36. package/dist/Components/Backdrop/Backdrop.js +34 -0
  37. package/dist/Components/Backdrop/BackdropProps.d.ts +33 -0
  38. package/dist/Components/Backdrop/BackdropProps.js +2 -0
  39. package/dist/Components/Breadcrumbs/Breadcrumbs.js +14 -4
  40. package/dist/Components/Breadcrumbs/breadcrumbInk.d.ts +9 -0
  41. package/dist/Components/Breadcrumbs/breadcrumbInk.js +11 -0
  42. package/dist/Components/Button/Button.js +2 -2
  43. package/dist/Components/Button/Button.styles.js +21 -62
  44. package/dist/Components/Button/ButtonProps.d.ts +8 -2
  45. package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.d.ts +2 -42
  46. package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.js +16 -0
  47. package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.d.ts +1 -1
  48. package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +3 -10
  49. package/dist/Components/ButtonGroupIcon/ButtonGroupIconProps.d.ts +42 -0
  50. package/dist/Components/ButtonGroupIcon/ButtonGroupIconProps.js +2 -0
  51. package/dist/Components/Buttons/Buttons.d.ts +1 -1
  52. package/dist/Components/Buttons/Buttons.js +5 -3
  53. package/dist/Components/Buttons/ButtonsProps.d.ts +5 -1
  54. package/dist/Components/Card/Card.d.ts +18 -2
  55. package/dist/Components/Card/Card.js +10 -5
  56. package/dist/Components/Card/CardProps.d.ts +27 -9
  57. package/dist/Components/Card/PaymentCard/PaymentCard.js +13 -9
  58. package/dist/Components/Checkbox/Checkbox.d.ts +2 -2
  59. package/dist/Components/Checkbox/Checkbox.js +11 -9
  60. package/dist/Components/Checkbox/Checkbox.styles.js +41 -36
  61. package/dist/Components/Checkbox/CheckboxProps.d.ts +11 -2
  62. package/dist/Components/Common/ErrorComponent.d.ts +1 -1
  63. package/dist/Components/Common/ErrorComponent.js +1 -1
  64. package/dist/Components/Common/ErrorMessage.d.ts +1 -1
  65. package/dist/Components/Common/ErrorMessage.js +3 -3
  66. package/dist/Components/Common/FieldMessage.d.ts +9 -0
  67. package/dist/Components/Common/FieldMessage.js +19 -0
  68. package/dist/Components/Common/FormLabel.d.ts +9 -0
  69. package/dist/Components/Common/FormLabel.js +15 -9
  70. package/dist/Components/Common/HelperText.d.ts +1 -1
  71. package/dist/Components/Common/HelperText.js +3 -2
  72. package/dist/Components/Common/Label.d.ts +1 -1
  73. package/dist/Components/Common/Label.js +3 -2
  74. package/dist/Components/Common/fieldMessageStyles.d.ts +19 -0
  75. package/dist/Components/Common/fieldMessageStyles.js +18 -0
  76. package/dist/Components/Common/fieldStyles.d.ts +46 -9
  77. package/dist/Components/Common/fieldStyles.js +72 -30
  78. package/dist/Components/Common/useFieldIds.d.ts +16 -0
  79. package/dist/Components/Common/useFieldIds.js +27 -0
  80. package/dist/Components/ConfirmDialog/ConfirmDialog.d.ts +4 -0
  81. package/dist/Components/ConfirmDialog/ConfirmDialog.js +23 -0
  82. package/dist/Components/ConfirmDialog/ConfirmDialogProps.d.ts +45 -0
  83. package/dist/Components/ConfirmDialog/ConfirmDialogProps.js +2 -0
  84. package/dist/Components/ContactForm/ContactForm.d.ts +2 -2
  85. package/dist/Components/ContactForm/ContactForm.js +19 -15
  86. package/dist/Components/ContactForm/ContactFormProps.d.ts +16 -2
  87. package/dist/Components/CopyButton/CopyButton.js +3 -4
  88. package/dist/Components/CustomModulesTable/DeleteModuleModal.js +2 -2
  89. package/dist/Components/CustomModulesTable/EditModuleModal.js +2 -4
  90. package/dist/Components/DatePicker/CalendarPanel.js +3 -4
  91. package/dist/Components/DatePicker/DatePicker.d.ts +5 -3
  92. package/dist/Components/DatePicker/DatePicker.js +12 -50
  93. package/dist/Components/DatePicker/DatePickerProps.d.ts +48 -4
  94. package/dist/Components/DatePicker/DatePickerProps.js +3 -0
  95. package/dist/Components/DatePicker/RangeDatePicker.js +17 -21
  96. package/dist/Components/DatePicker/SingleDatePicker.d.ts +4 -2
  97. package/dist/Components/DatePicker/SingleDatePicker.js +40 -57
  98. package/dist/Components/DatePicker/ThemeDatePicker.d.ts +3 -2
  99. package/dist/Components/DatePicker/ThemeDatePicker.js +12 -18
  100. package/dist/Components/DatePicker/TimeOnlyPicker.d.ts +5 -3
  101. package/dist/Components/DatePicker/TimeOnlyPicker.js +37 -23
  102. package/dist/Components/DatePicker/TimePicker.js +8 -12
  103. package/dist/Components/DatePicker/TimePickerInput.d.ts +6 -2
  104. package/dist/Components/DatePicker/TimePickerInput.js +5 -11
  105. package/dist/Components/DatePicker/dayStates.d.ts +0 -23
  106. package/dist/Components/DatePicker/dayStates.js +3 -15
  107. package/dist/Components/DatePicker/pickerField.d.ts +24 -0
  108. package/dist/Components/DatePicker/pickerField.js +31 -0
  109. package/dist/Components/DatePicker/valueFormat.d.ts +4 -0
  110. package/dist/Components/DatePicker/valueFormat.js +21 -0
  111. package/dist/Components/DescriptionList/DescriptionList.d.ts +4 -0
  112. package/dist/Components/DescriptionList/DescriptionList.js +32 -0
  113. package/dist/Components/DescriptionList/DescriptionListProps.d.ts +29 -0
  114. package/dist/Components/DescriptionList/DescriptionListProps.js +2 -0
  115. package/dist/Components/Drawer/Drawer.d.ts +5 -11
  116. package/dist/Components/Drawer/Drawer.js +22 -8
  117. package/dist/Components/Drawer/DrawerProps.d.ts +16 -4
  118. package/dist/Components/Dropdown/DropDown.d.ts +1 -1
  119. package/dist/Components/Dropdown/DropDown.js +42 -32
  120. package/dist/Components/Dropdown/DropdownProps.d.ts +15 -2
  121. package/dist/Components/Editor/Editor.js +12 -0
  122. package/dist/Components/Editor/joditAccessibility.d.ts +1 -0
  123. package/dist/Components/Editor/joditAccessibility.js +28 -0
  124. package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.d.ts +1 -1
  125. package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +3 -3
  126. package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.d.ts +1 -1
  127. package/dist/Components/EmptyState/EmptyState.js +24 -15
  128. package/dist/Components/EmptyState/EmptyStateProps.d.ts +5 -1
  129. package/dist/Components/FeedbackForm/FeedbackForm.d.ts +1 -1
  130. package/dist/Components/FeedbackForm/FeedbackForm.js +19 -6
  131. package/dist/Components/FieldSelectModal/FieldSelectModal.js +2 -4
  132. package/dist/Components/FilePreview/FilePreview.js +8 -8
  133. package/dist/Components/FileUpload/FileUpload.d.ts +1 -1
  134. package/dist/Components/FileUpload/FileUpload.js +24 -5
  135. package/dist/Components/FileUpload/FileUploadProps.d.ts +23 -1
  136. package/dist/Components/FileUpload/constants.d.ts +1 -0
  137. package/dist/Components/FileUpload/constants.js +2 -1
  138. package/dist/Components/FileUploader/FileUploader.js +6 -5
  139. package/dist/Components/FilterBar/FilterBar.d.ts +4 -0
  140. package/dist/Components/FilterBar/FilterBar.js +17 -0
  141. package/dist/Components/FilterBar/FilterBarProps.d.ts +25 -0
  142. package/dist/Components/FilterBar/FilterBarProps.js +2 -0
  143. package/dist/Components/FilterSidebar/FilterSidebar.js +26 -32
  144. package/dist/Components/FilterSidebar/filterHoverStyle.d.ts +1 -1
  145. package/dist/Components/FilterSidebar/filterHoverStyle.js +1 -1
  146. package/dist/Components/Form/FormWrapper.js +1 -1
  147. package/dist/Components/Header/Header.d.ts +0 -15
  148. package/dist/Components/Header/Header.js +2 -16
  149. package/dist/Components/Header/HeaderActions.d.ts +2 -0
  150. package/dist/Components/Header/HeaderActions.js +4 -4
  151. package/dist/Components/Header/HeaderProps.d.ts +14 -1
  152. package/dist/Components/Header/components/desktopMenu.d.ts +1 -1
  153. package/dist/Components/Header/components/desktopMenu.js +10 -11
  154. package/dist/Components/Header/components/mobileMenu.d.ts +1 -1
  155. package/dist/Components/Header/components/mobileMenu.js +23 -20
  156. package/dist/Components/Input/Input/Input.d.ts +1 -1
  157. package/dist/Components/Input/Input/Input.js +3 -2
  158. package/dist/Components/Input/Input/InputProps.d.ts +4 -1
  159. package/dist/Components/Input/PhoneNumberInput.d.ts +2 -2
  160. package/dist/Components/Input/PhoneNumberInput.js +7 -4
  161. package/dist/Components/Input/PhoneNumberInputProps.d.ts +4 -2
  162. package/dist/Components/Input/Switch/InputSwitch.d.ts +16 -5
  163. package/dist/Components/Input/Switch/InputSwitch.js +17 -19
  164. package/dist/Components/Input/TextInput.js +80 -7
  165. package/dist/Components/Input/TextInput.styles.d.ts +18 -1
  166. package/dist/Components/Input/TextInput.styles.js +48 -89
  167. package/dist/Components/Input/TextInputProps.d.ts +44 -9
  168. package/dist/Components/Input/textInputIconSize.d.ts +2 -7
  169. package/dist/Components/Input/textInputIconSize.js +4 -20
  170. package/dist/Components/Input/useAriaRequired.d.ts +2 -0
  171. package/dist/Components/Input/useAriaRequired.js +19 -0
  172. package/dist/Components/InputTextArea/InputTextArea.d.ts +2 -2
  173. package/dist/Components/InputTextArea/InputTextArea.js +9 -5
  174. package/dist/Components/InputTextArea/InputTextArea.style.js +14 -69
  175. package/dist/Components/InputTextArea/InputTextAreaProps.d.ts +9 -2
  176. package/dist/Components/KanbanBoard/AccountCard.js +8 -5
  177. package/dist/Components/KanbanBoard/AccountRow.d.ts +1 -1
  178. package/dist/Components/KanbanBoard/AccountRow.js +1 -1
  179. package/dist/Components/KanbanBoard/KanbanBoard.d.ts +1 -1
  180. package/dist/Components/KanbanBoard/KanbanBoard.js +85 -49
  181. package/dist/Components/KanbanBoard/KanbanBoardProps.d.ts +35 -19
  182. package/dist/Components/KanbanBoard/index.d.ts +2 -0
  183. package/dist/Components/KanbanBoard/index.js +8 -0
  184. package/dist/Components/LimitReachedModal/LimitReachedModal.js +1 -1
  185. package/dist/Components/LimitReachedModal/limitReachedCopy.js +1 -3
  186. package/dist/Components/Loading/Loading.d.ts +1 -1
  187. package/dist/Components/Loading/Loading.js +19 -19
  188. package/dist/Components/Loading/LoadingProps.d.ts +5 -1
  189. package/dist/Components/MediaViewer/MediaViewer.d.ts +5 -0
  190. package/dist/Components/MediaViewer/MediaViewer.js +234 -0
  191. package/dist/Components/MediaViewer/MediaViewerProps.d.ts +92 -0
  192. package/dist/Components/MediaViewer/MediaViewerProps.js +32 -0
  193. package/dist/Components/MediaViewer/components/MediaAudioPlayer.d.ts +4 -0
  194. package/dist/Components/MediaViewer/components/MediaAudioPlayer.js +138 -0
  195. package/dist/Components/MediaViewer/components/MediaAudioPlayerProps.d.ts +48 -0
  196. package/dist/Components/MediaViewer/components/MediaAudioPlayerProps.js +21 -0
  197. package/dist/Components/MediaViewer/components/MediaDocumentStage.d.ts +4 -0
  198. package/dist/Components/MediaViewer/components/MediaDocumentStage.js +149 -0
  199. package/dist/Components/MediaViewer/components/MediaDocumentStageProps.d.ts +42 -0
  200. package/dist/Components/MediaViewer/components/MediaDocumentStageProps.js +11 -0
  201. package/dist/Components/MediaViewer/components/MediaImageViewer.d.ts +4 -0
  202. package/dist/Components/MediaViewer/components/MediaImageViewer.js +103 -0
  203. package/dist/Components/MediaViewer/components/MediaImageViewerProps.d.ts +47 -0
  204. package/dist/Components/MediaViewer/components/MediaImageViewerProps.js +18 -0
  205. package/dist/Components/MediaViewer/components/MediaScrubber.d.ts +5 -0
  206. package/dist/Components/MediaViewer/components/MediaScrubber.js +89 -0
  207. package/dist/Components/MediaViewer/components/MediaScrubberProps.d.ts +30 -0
  208. package/dist/Components/MediaViewer/components/MediaScrubberProps.js +2 -0
  209. package/dist/Components/MediaViewer/components/MediaStatusPanel.d.ts +5 -0
  210. package/dist/Components/MediaViewer/components/MediaStatusPanel.js +14 -0
  211. package/dist/Components/MediaViewer/components/MediaStatusPanelProps.d.ts +24 -0
  212. package/dist/Components/MediaViewer/components/MediaStatusPanelProps.js +2 -0
  213. package/dist/Components/MediaViewer/components/MediaVideoPlayer.d.ts +4 -0
  214. package/dist/Components/MediaViewer/components/MediaVideoPlayer.js +248 -0
  215. package/dist/Components/MediaViewer/components/MediaVideoPlayerProps.d.ts +71 -0
  216. package/dist/Components/MediaViewer/components/MediaVideoPlayerProps.js +31 -0
  217. package/dist/Components/MediaViewer/components/TileChip.d.ts +5 -0
  218. package/dist/Components/MediaViewer/components/TileChip.js +12 -0
  219. package/dist/Components/MediaViewer/components/TileChipProps.d.ts +7 -0
  220. package/dist/Components/MediaViewer/components/TileChipProps.js +2 -0
  221. package/dist/Components/MediaViewer/components/VideoPoster.d.ts +5 -0
  222. package/dist/Components/MediaViewer/components/VideoPoster.js +16 -0
  223. package/dist/Components/MediaViewer/components/VideoPosterProps.d.ts +6 -0
  224. package/dist/Components/MediaViewer/components/VideoPosterProps.js +2 -0
  225. package/dist/Components/MediaViewer/components/ViewerIconButton.d.ts +5 -0
  226. package/dist/Components/MediaViewer/components/ViewerIconButton.js +20 -0
  227. package/dist/Components/MediaViewer/components/ViewerIconButtonProps.d.ts +24 -0
  228. package/dist/Components/MediaViewer/components/ViewerIconButtonProps.js +2 -0
  229. package/dist/Components/MediaViewer/components/mediaKindIcon.d.ts +5 -0
  230. package/dist/Components/MediaViewer/components/mediaKindIcon.js +23 -0
  231. package/dist/Components/MediaViewer/components/sanitizeDocxHrefs.d.ts +1 -0
  232. package/dist/Components/MediaViewer/components/sanitizeDocxHrefs.js +30 -0
  233. package/dist/Components/MediaViewer/hooks/useAutoHideChrome.d.ts +15 -0
  234. package/dist/Components/MediaViewer/hooks/useAutoHideChrome.js +43 -0
  235. package/dist/Components/MediaViewer/hooks/useFileViewer.d.ts +18 -0
  236. package/dist/Components/MediaViewer/hooks/useFileViewer.js +51 -0
  237. package/dist/Components/MediaViewer/mediaItems.d.ts +64 -0
  238. package/dist/Components/MediaViewer/mediaItems.js +196 -0
  239. package/dist/Components/MediaViewer/useViewerChrome.d.ts +15 -0
  240. package/dist/Components/MediaViewer/useViewerChrome.js +30 -0
  241. package/dist/Components/Modal/Modal.d.ts +5 -11
  242. package/dist/Components/Modal/Modal.js +24 -18
  243. package/dist/Components/Modal/ModalProps.d.ts +19 -4
  244. package/dist/Components/MoreItems/MoreItems.js +4 -2
  245. package/dist/Components/MultiSelect/MultiSelect.js +19 -18
  246. package/dist/Components/MultiSelect/MultiSelectProps.d.ts +11 -3
  247. package/dist/Components/NavigationBar/NavigationBar.js +10 -8
  248. package/dist/Components/NoteTextArea/NoteTextArea.d.ts +4 -2
  249. package/dist/Components/NoteTextArea/NoteTextArea.js +13 -9
  250. package/dist/Components/NoteTextArea/NoteTextAreaProps.d.ts +4 -2
  251. package/dist/Components/Notification/Notification.d.ts +1 -1
  252. package/dist/Components/Notification/Notification.js +10 -3
  253. package/dist/Components/Notification/NotificationProps.d.ts +1 -1
  254. package/dist/Components/NotificationBell/NotificationBell.d.ts +4 -0
  255. package/dist/Components/NotificationBell/NotificationBell.js +35 -0
  256. package/dist/Components/NotificationBell/NotificationBellProps.d.ts +147 -0
  257. package/dist/Components/NotificationBell/NotificationBellProps.js +2 -0
  258. package/dist/Components/NotificationBell/NotificationItem.d.ts +4 -0
  259. package/dist/Components/NotificationBell/NotificationItem.js +34 -0
  260. package/dist/Components/NotificationBell/NotificationList.d.ts +4 -0
  261. package/dist/Components/NotificationBell/NotificationList.js +41 -0
  262. package/dist/Components/NotificationBell/NotificationPanel.d.ts +4 -0
  263. package/dist/Components/NotificationBell/NotificationPanel.js +36 -0
  264. package/dist/Components/NotificationBell/index.d.ts +6 -0
  265. package/dist/Components/NotificationBell/index.js +30 -0
  266. package/dist/Components/NotificationBell/notificationHelpers.d.ts +29 -0
  267. package/dist/Components/NotificationBell/notificationHelpers.js +106 -0
  268. package/dist/Components/NumberInput/NumberInput.d.ts +6 -2
  269. package/dist/Components/NumberInput/NumberInput.js +9 -5
  270. package/dist/Components/NumberInput/NumberInput.styles.js +19 -78
  271. package/dist/Components/NumberInput/NumberInputProps.d.ts +20 -1
  272. package/dist/Components/OrgSwitcher/OrgSwitcher.js +4 -12
  273. package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts +1 -1
  274. package/dist/Components/OrgSwitcher/OrgSwitcherProps.js +2 -1
  275. package/dist/Components/OrganizationDetails/CreateOrgModal.js +1 -1
  276. package/dist/Components/OrganizationDetails/DeleteOrgModal.js +4 -6
  277. package/dist/Components/OrganizationDetails/OrganizationDetails.js +8 -7
  278. package/dist/Components/PageHeader/PageHeader.d.ts +4 -0
  279. package/dist/Components/PageHeader/PageHeader.js +11 -0
  280. package/dist/Components/PageHeader/PageHeaderProps.d.ts +20 -0
  281. package/dist/Components/PageHeader/PageHeaderProps.js +2 -0
  282. package/dist/Components/PdfViewer/PdfViewer.js +1 -1
  283. package/dist/Components/PersonChip/PersonChip.d.ts +3 -0
  284. package/dist/Components/PersonChip/PersonChip.js +47 -0
  285. package/dist/Components/PersonChip/PersonChipProps.d.ts +33 -0
  286. package/dist/Components/PersonChip/PersonChipProps.js +2 -0
  287. package/dist/Components/PinInput/PinInput.d.ts +2 -2
  288. package/dist/Components/PinInput/PinInput.js +10 -7
  289. package/dist/Components/PinInput/PinInputProps.d.ts +3 -2
  290. package/dist/Components/PinInput/pinInputCellSize.d.ts +7 -0
  291. package/dist/Components/PinInput/pinInputCellSize.js +10 -0
  292. package/dist/Components/PlanBadge/PlanBadge.d.ts +0 -7
  293. package/dist/Components/PlanBadge/PlanBadge.js +1 -7
  294. package/dist/Components/PlanPill/PlanPill.js +2 -3
  295. package/dist/Components/PlanPill/planPillGradient.d.ts +5 -21
  296. package/dist/Components/PlanPill/planPillGradient.js +8 -23
  297. package/dist/Components/Primitives/Primitives.d.ts +3 -6
  298. package/dist/Components/Primitives/Primitives.js +3 -41
  299. package/dist/Components/ProductCard/ProductPrice.js +18 -7
  300. package/dist/Components/ProductCard/ProductReview.js +3 -2
  301. package/dist/Components/ProductDetails/ProductDetails.js +1 -1
  302. package/dist/Components/ProductDetails/ProductDtlPrice.js +5 -5
  303. package/dist/Components/ProductDetails/ProductImageSlider.d.ts +3 -1
  304. package/dist/Components/ProductDetails/ProductImageSlider.js +36 -20
  305. package/dist/Components/ProfileCard/ProfileCard.d.ts +4 -10
  306. package/dist/Components/ProfileCard/ProfileCard.js +25 -10
  307. package/dist/Components/ProfileCard/ProfileCardProps.d.ts +8 -2
  308. package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +7 -4
  309. package/dist/Components/ProgressBar/ProgressBar.d.ts +1 -1
  310. package/dist/Components/ProgressBar/ProgressBar.js +27 -3
  311. package/dist/Components/ProgressBar/ProgressBarProps.d.ts +10 -4
  312. package/dist/Components/QueryState/ErrorState.d.ts +4 -0
  313. package/dist/Components/QueryState/ErrorState.js +16 -0
  314. package/dist/Components/QueryState/QueryStateBoundary.d.ts +4 -0
  315. package/dist/Components/QueryState/QueryStateBoundary.js +25 -0
  316. package/dist/Components/QueryState/QueryStateProps.d.ts +48 -0
  317. package/dist/Components/QueryState/QueryStateProps.js +2 -0
  318. package/dist/Components/RadioButton/RadioButton.d.ts +2 -2
  319. package/dist/Components/RadioButton/RadioButton.js +34 -14
  320. package/dist/Components/RadioButton/RadioButtonProps.d.ts +50 -6
  321. package/dist/Components/RangeSlider/RangeSlider.d.ts +4 -0
  322. package/dist/Components/RangeSlider/RangeSlider.js +136 -0
  323. package/dist/Components/RangeSlider/RangeSliderProps.d.ts +74 -0
  324. package/dist/Components/RangeSlider/RangeSliderProps.js +2 -0
  325. package/dist/Components/RangeSlider/rangeSliderColors.d.ts +9 -0
  326. package/dist/Components/RangeSlider/rangeSliderColors.js +11 -0
  327. package/dist/Components/RangeSlider/rangeSliderMath.d.ts +16 -0
  328. package/dist/Components/RangeSlider/rangeSliderMath.js +79 -0
  329. package/dist/Components/RangeSlider/rangeSliderSize.d.ts +7 -0
  330. package/dist/Components/RangeSlider/rangeSliderSize.js +12 -0
  331. package/dist/Components/Reorder/Reorder.d.ts +1 -6
  332. package/dist/Components/Reorder/Reorder.js +2 -2
  333. package/dist/Components/Reorder/ReorderProps.d.ts +5 -2
  334. package/dist/Components/RolesPermission/DeleteRoleModal.js +4 -6
  335. package/dist/Components/RolesPermission/RolesPermission.js +1 -1
  336. package/dist/Components/SaveBar/SaveBar.d.ts +4 -0
  337. package/dist/Components/SaveBar/SaveBar.js +24 -0
  338. package/dist/Components/SaveBar/SaveBarProps.d.ts +22 -0
  339. package/dist/Components/SaveBar/SaveBarProps.js +2 -0
  340. package/dist/Components/ScrollToTop/ScrollToTop.js +5 -2
  341. package/dist/Components/Search/Search.d.ts +3 -2
  342. package/dist/Components/Search/Search.js +33 -15
  343. package/dist/Components/Search/SearchProps.d.ts +26 -4
  344. package/dist/Components/SearchSelect/SearchSelect.d.ts +2 -1
  345. package/dist/Components/SearchSelect/SearchSelect.js +61 -75
  346. package/dist/Components/SearchSelect/SearchSelectProps.d.ts +27 -3
  347. package/dist/Components/SearchSelect/searchSelectSize.d.ts +4 -14
  348. package/dist/Components/SearchSelect/searchSelectSize.js +15 -15
  349. package/dist/Components/SegmentedControl/SegmentedControl.js +39 -32
  350. package/dist/Components/SegmentedControl/SegmentedControlProps.d.ts +10 -2
  351. package/dist/Components/SegmentedControl/useSlidingPill.d.ts +11 -0
  352. package/dist/Components/SegmentedControl/useSlidingPill.js +25 -0
  353. package/dist/Components/Select/Select.d.ts +5 -2
  354. package/dist/Components/Select/Select.js +65 -24
  355. package/dist/Components/Select/Select.styles.js +12 -81
  356. package/dist/Components/Select/SelectNative.d.ts +63 -0
  357. package/dist/Components/Select/SelectNative.js +49 -0
  358. package/dist/Components/Select/SelectPopup.d.ts +5 -0
  359. package/dist/Components/Select/SelectPopup.js +415 -0
  360. package/dist/Components/Select/SelectProps.d.ts +122 -16
  361. package/dist/Components/SelectSearch/SelectSearch.d.ts +2 -2
  362. package/dist/Components/SelectSearch/SelectSearch.js +16 -78
  363. package/dist/Components/SelectSearch/SelectSearchProps.d.ts +31 -2
  364. package/dist/Components/SelectV2/SelectV2.d.ts +15 -3
  365. package/dist/Components/SelectV2/SelectV2.js +17 -264
  366. package/dist/Components/SelectV2/SelectV2Props.d.ts +39 -13
  367. package/dist/Components/SettingRow/SettingRow.d.ts +4 -0
  368. package/dist/Components/SettingRow/SettingRow.js +24 -0
  369. package/dist/Components/SettingRow/SettingRowProps.d.ts +16 -0
  370. package/dist/Components/SettingRow/SettingRowProps.js +2 -0
  371. package/dist/Components/SettingRow/SettingsSection.d.ts +4 -0
  372. package/dist/Components/SettingRow/SettingsSection.js +16 -0
  373. package/dist/Components/SettingRow/SettingsSectionProps.d.ts +18 -0
  374. package/dist/Components/SettingRow/SettingsSectionProps.js +2 -0
  375. package/dist/Components/SideBar/SecondaryBar.js +19 -9
  376. package/dist/Components/SideBar/SideBar.js +35 -20
  377. package/dist/Components/SideBar/SideBarProps.d.ts +8 -1
  378. package/dist/Components/SideBar/components/MenuItemBox.d.ts +2 -0
  379. package/dist/Components/SideBar/components/MenuItemBox.js +43 -28
  380. package/dist/Components/SideBar/components/MenuItems.js +4 -4
  381. package/dist/Components/SideBar/components/MenuPopoverContent.js +20 -10
  382. package/dist/Components/SideBar/components/OtherApps.js +3 -3
  383. package/dist/Components/SideBar/components/OverflowTooltipText.js +3 -1
  384. package/dist/Components/SideBar/components/TextTruncation.js +3 -3
  385. package/dist/Components/SideBar/menuDisabled.d.ts +5 -0
  386. package/dist/Components/SideBar/menuDisabled.js +7 -0
  387. package/dist/Components/SideBar/sidebarId.d.ts +2 -0
  388. package/dist/Components/SideBar/sidebarId.js +6 -0
  389. package/dist/Components/Skeletons/SkeletonProps.d.ts +4 -2
  390. package/dist/Components/Skeletons/Skeletons.d.ts +1 -1
  391. package/dist/Components/Skeletons/Skeletons.js +2 -2
  392. package/dist/Components/Slider/Slider.js +2 -1
  393. package/dist/Components/Spinner/Spinner.d.ts +3 -0
  394. package/dist/Components/Spinner/Spinner.js +22 -0
  395. package/dist/Components/Spinner/SpinnerProps.d.ts +15 -0
  396. package/dist/Components/Spinner/SpinnerProps.js +2 -0
  397. package/dist/Components/StageProgress/StageItem.js +12 -4
  398. package/dist/Components/StageProgress/StageProgress.js +6 -7
  399. package/dist/Components/StageProgress/StageProgressProps.d.ts +9 -3
  400. package/dist/Components/StageProgress/StageProgressProps.js +6 -2
  401. package/dist/Components/StageProgress/StepperStage.js +5 -2
  402. package/dist/Components/StatCard/StatCard.d.ts +4 -0
  403. package/dist/Components/StatCard/StatCard.js +42 -0
  404. package/dist/Components/StatCard/StatCardProps.d.ts +26 -0
  405. package/dist/Components/StatCard/StatCardProps.js +2 -0
  406. package/dist/Components/Switch/Switch.d.ts +2 -2
  407. package/dist/Components/Switch/Switch.js +11 -9
  408. package/dist/Components/Switch/SwitchProps.d.ts +5 -1
  409. package/dist/Components/Table/Table.d.ts +1 -1
  410. package/dist/Components/Table/Table.js +56 -49
  411. package/dist/Components/Table/TableProps.d.ts +46 -8
  412. package/dist/Components/Table/components/HeaderActions.js +3 -2
  413. package/dist/Components/Table/components/Pagination.d.ts +1 -1
  414. package/dist/Components/Table/components/Pagination.js +1 -1
  415. package/dist/Components/Table/components/TableActions.js +1 -1
  416. package/dist/Components/Table/components/TableBody.d.ts +1 -1
  417. package/dist/Components/Table/components/TableBody.js +33 -41
  418. package/dist/Components/Table/components/TableGroupRow.js +1 -1
  419. package/dist/Components/Table/components/TableHeader.d.ts +1 -1
  420. package/dist/Components/Table/components/TableHeader.js +14 -12
  421. package/dist/Components/Table/components/TableSearch.js +1 -1
  422. package/dist/Components/Table/components/rowMetrics.d.ts +11 -0
  423. package/dist/Components/Table/components/rowMetrics.js +16 -0
  424. package/dist/Components/Table/filters/ActiveFilters.js +7 -4
  425. package/dist/Components/Table/filters/CompactSelect.js +1 -1
  426. package/dist/Components/Table/filters/LeftFilterPane.js +1 -1
  427. package/dist/Components/Table/filters/TableFilters.js +1 -1
  428. package/dist/Components/Table/hooks/useTable.d.ts +1 -10
  429. package/dist/Components/Table/hooks/useTable.js +14 -23
  430. package/dist/Components/Table/settings/ManageColumns.js +7 -6
  431. package/dist/Components/Table/settings/TableSettings.js +5 -4
  432. package/dist/Components/Table/variants/classic.js +2 -0
  433. package/dist/Components/Table/variants/stripe.d.ts +3 -0
  434. package/dist/Components/Table/variants/stripe.js +7 -0
  435. package/dist/Components/Table/variants/studio.js +2 -0
  436. package/dist/Components/Table/variants/tokens.d.ts +2 -0
  437. package/dist/Components/Tabs/Tabs.d.ts +3 -0
  438. package/dist/Components/Tabs/Tabs.js +70 -0
  439. package/dist/Components/Tabs/TabsContext.d.ts +22 -0
  440. package/dist/Components/Tabs/TabsContext.js +16 -0
  441. package/dist/Components/Tabs/TabsProps.d.ts +74 -0
  442. package/dist/Components/Tabs/TabsProps.js +2 -0
  443. package/dist/Components/Tabs/components/CountBadge.d.ts +12 -0
  444. package/dist/Components/Tabs/components/CountBadge.js +17 -0
  445. package/dist/Components/Tabs/components/Tab.d.ts +3 -0
  446. package/dist/Components/Tabs/components/Tab.js +39 -0
  447. package/dist/Components/Tabs/components/TabList.d.ts +3 -0
  448. package/dist/Components/Tabs/components/TabList.js +71 -0
  449. package/dist/Components/Tabs/components/TabPanel.d.ts +3 -0
  450. package/dist/Components/Tabs/components/TabPanel.js +17 -0
  451. package/dist/Components/Tabs/components/TabPanels.d.ts +3 -0
  452. package/dist/Components/Tabs/components/TabPanels.js +14 -0
  453. package/dist/Components/Tabs/index.d.ts +6 -0
  454. package/dist/Components/Tabs/index.js +16 -0
  455. package/dist/Components/Tabs/tabStyles.d.ts +15 -0
  456. package/dist/Components/Tabs/tabStyles.js +38 -0
  457. package/dist/Components/Tag/Tag.js +14 -6
  458. package/dist/Components/Tag/Tag.styles.d.ts +2 -0
  459. package/dist/Components/Tag/Tag.styles.js +44 -37
  460. package/dist/Components/Tag/TagProps.d.ts +17 -4
  461. package/dist/Components/Timeline/Timeline.d.ts +1 -1
  462. package/dist/Components/Timeline/Timeline.js +42 -30
  463. package/dist/Components/Timeline/TimelineProps.d.ts +25 -2
  464. package/dist/Components/Toaster/Toaster.js +73 -55
  465. package/dist/Components/Toaster/ToasterProps.d.ts +18 -5
  466. package/dist/Components/Toaster/toastDuration.d.ts +4 -0
  467. package/dist/Components/Toaster/toastDuration.js +7 -0
  468. package/dist/Components/Toggle/TableToggle.d.ts +1 -1
  469. package/dist/Components/Toggle/TableToggle.js +10 -25
  470. package/dist/Components/Toggle/TableToggleProps.d.ts +3 -2
  471. package/dist/Components/ToggleSwitch/ToggleSwitch.d.ts +2 -2
  472. package/dist/Components/ToggleSwitch/ToggleSwitch.js +41 -7
  473. package/dist/Components/ToggleSwitch/ToggleSwitchProps.d.ts +63 -8
  474. package/dist/Components/ToolTip/OverflowToolTip.d.ts +0 -15
  475. package/dist/Components/ToolTip/OverflowToolTip.js +1 -15
  476. package/dist/Components/ToolTip/ToolTip.js +13 -13
  477. package/dist/Components/ToolTip/ToolTipProps.d.ts +5 -2
  478. package/dist/Components/UpgradeButton/UpgradeButton.js +9 -14
  479. package/dist/Components/UserDetails/AddUserModal.js +1 -1
  480. package/dist/Components/UserDetails/ChangeRoleModal.js +1 -1
  481. package/dist/Components/UserDetails/DeactivateConfirmModal.js +4 -6
  482. package/dist/Components/UserDetails/UserDetails.js +6 -8
  483. package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.d.ts +0 -13
  484. package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.js +2 -14
  485. package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts +0 -11
  486. package/dist/Components/WorkspaceWindow/WorkspaceWindow.js +6 -23
  487. package/dist/Hooks/useDebounce.d.ts +6 -0
  488. package/dist/Hooks/useDebounce.js +33 -0
  489. package/dist/Hooks/useExclusiveOverlay.d.ts +0 -4
  490. package/dist/Hooks/useExclusiveOverlay.js +1 -4
  491. package/dist/Hooks/useFullscreen.d.ts +8 -0
  492. package/dist/Hooks/useFullscreen.js +32 -0
  493. package/dist/Hooks/useIsTruncated.d.ts +0 -30
  494. package/dist/Hooks/useIsTruncated.js +1 -30
  495. package/dist/Hooks/usePreferences.js +1 -6
  496. package/dist/Hooks/useSidebarPrefs.d.ts +1 -42
  497. package/dist/Hooks/useSidebarPrefs.js +1 -2
  498. package/dist/Theme/assertPalette.d.ts +1 -1
  499. package/dist/Theme/assertPalette.js +2 -2
  500. package/dist/Theme/chakra/Card.styles.d.ts +78 -0
  501. package/dist/Theme/chakra/Card.styles.js +48 -0
  502. package/dist/Theme/chakra/Drawer.styles.d.ts +41 -9
  503. package/dist/Theme/chakra/Drawer.styles.js +14 -13
  504. package/dist/Theme/chakra/Menu.styles.d.ts +3 -18
  505. package/dist/Theme/chakra/Menu.styles.js +2 -23
  506. package/dist/Theme/chakra/Modal.styles.d.ts +42 -9
  507. package/dist/Theme/chakra/Modal.styles.js +15 -13
  508. package/dist/Theme/chakra/Popover.styles.d.ts +3 -3
  509. package/dist/Theme/chakra/Popover.styles.js +2 -10
  510. package/dist/Theme/chakra/Slider.styles.d.ts +3 -3
  511. package/dist/Theme/chakra/Slider.styles.js +1 -6
  512. package/dist/Theme/chakra/common.web.d.ts +0 -4
  513. package/dist/Theme/chakra/common.web.js +1 -7
  514. package/dist/Theme/chakra/componentStyles.d.ts +157 -103
  515. package/dist/Theme/chakra/componentStyles.js +66 -86
  516. package/dist/Theme/chakra/createBrandTheme.d.ts +0 -10
  517. package/dist/Theme/chakra/createBrandTheme.js +6 -50
  518. package/dist/Theme/chakra/focusRing.styles.d.ts +0 -23
  519. package/dist/Theme/chakra/focusRing.styles.js +4 -23
  520. package/dist/Theme/chakra/fonts.web.d.ts +0 -5
  521. package/dist/Theme/chakra/fonts.web.js +1 -5
  522. package/dist/Theme/chakra/motion.d.ts +5 -0
  523. package/dist/Theme/chakra/motion.js +27 -0
  524. package/dist/Theme/chakra/overlay.styles.d.ts +51 -0
  525. package/dist/Theme/chakra/overlay.styles.js +48 -0
  526. package/dist/Theme/chakra/paletteFromTheme.d.ts +0 -4
  527. package/dist/Theme/chakra/paletteFromTheme.js +1 -4
  528. package/dist/Theme/index.d.ts +0 -12
  529. package/dist/Theme/index.js +3 -18
  530. package/dist/Theme/provider/PixelizeThemeProvider.d.ts +0 -32
  531. package/dist/Theme/provider/PixelizeThemeProvider.js +6 -74
  532. package/dist/Theme/provider/ThemeSwitcher.js +2 -10
  533. package/dist/Theme/provider/colorModeStorage.js +1 -4
  534. package/dist/Theme/tokens/brands/emerald/palette.dark.d.ts +0 -4
  535. package/dist/Theme/tokens/brands/emerald/palette.dark.js +0 -4
  536. package/dist/Theme/tokens/brands/emerald/palette.light.js +2 -10
  537. package/dist/Theme/tokens/brands/index.js +4 -4
  538. package/dist/Theme/tokens/brands/lavender/palette.dark.d.ts +0 -4
  539. package/dist/Theme/tokens/brands/lavender/palette.dark.js +0 -4
  540. package/dist/Theme/tokens/brands/lavender/palette.light.js +4 -13
  541. package/dist/Theme/tokens/brands/meadow/palette.dark.d.ts +0 -4
  542. package/dist/Theme/tokens/brands/meadow/palette.dark.js +0 -4
  543. package/dist/Theme/tokens/brands/meadow/palette.light.js +2 -11
  544. package/dist/Theme/tokens/brands/radiant/palette.dark.d.ts +0 -4
  545. package/dist/Theme/tokens/brands/radiant/palette.dark.js +0 -4
  546. package/dist/Theme/tokens/brands/radiant/palette.light.js +2 -10
  547. package/dist/Theme/tokens/brands/rosewood/palette.dark.d.ts +0 -4
  548. package/dist/Theme/tokens/brands/rosewood/palette.dark.js +0 -4
  549. package/dist/Theme/tokens/brands/rosewood/palette.light.js +2 -14
  550. package/dist/Theme/tokens/brands/skyline/palette.dark.d.ts +0 -4
  551. package/dist/Theme/tokens/brands/skyline/palette.dark.js +0 -4
  552. package/dist/Theme/tokens/brands/skyline/palette.light.js +2 -11
  553. package/dist/Theme/tokens/brands/slate/palette.dark.d.ts +0 -4
  554. package/dist/Theme/tokens/brands/slate/palette.dark.js +0 -4
  555. package/dist/Theme/tokens/brands/slate/palette.light.js +1 -11
  556. package/dist/Theme/tokens/brands/storefront/palette.dark.d.ts +0 -4
  557. package/dist/Theme/tokens/brands/storefront/palette.dark.js +0 -4
  558. package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts +10 -9
  559. package/dist/Theme/tokens/brands/zinc/palette.dark.js +5 -35
  560. package/dist/Theme/tokens/brands/zinc/palette.light.js +3 -12
  561. package/dist/Theme/tokens/builders/accentText.d.ts +0 -43
  562. package/dist/Theme/tokens/builders/accentText.js +5 -48
  563. package/dist/Theme/tokens/builders/brandInk.d.ts +2 -0
  564. package/dist/Theme/tokens/builders/brandInk.js +19 -1
  565. package/dist/Theme/tokens/builders/buildBrandTokens.d.ts +0 -3
  566. package/dist/Theme/tokens/builders/buildBrandTokens.js +1 -3
  567. package/dist/Theme/tokens/builders/buildDarkPalette.d.ts +0 -12
  568. package/dist/Theme/tokens/builders/buildDarkPalette.js +15 -103
  569. package/dist/Theme/tokens/builders/chartColorsFromTheme.d.ts +0 -8
  570. package/dist/Theme/tokens/builders/chartColorsFromTheme.js +1 -8
  571. package/dist/Theme/tokens/builders/color.d.ts +0 -20
  572. package/dist/Theme/tokens/builders/color.js +3 -20
  573. package/dist/Theme/tokens/builders/filledSurface.d.ts +2 -12
  574. package/dist/Theme/tokens/builders/filledSurface.js +35 -25
  575. package/dist/Theme/tokens/builders/focusRing.d.ts +0 -45
  576. package/dist/Theme/tokens/builders/focusRing.js +5 -49
  577. package/dist/Theme/tokens/builders/gradientInk.d.ts +0 -10
  578. package/dist/Theme/tokens/builders/gradientInk.js +2 -10
  579. package/dist/Theme/tokens/builders/index.d.ts +4 -0
  580. package/dist/Theme/tokens/builders/index.js +4 -0
  581. package/dist/Theme/tokens/builders/outlineRung.d.ts +0 -66
  582. package/dist/Theme/tokens/builders/outlineRung.js +4 -70
  583. package/dist/Theme/tokens/builders/placeholderInk.d.ts +0 -12
  584. package/dist/Theme/tokens/builders/placeholderInk.js +2 -12
  585. package/dist/Theme/tokens/builders/resolvedRungs.d.ts +0 -5
  586. package/dist/Theme/tokens/builders/resolvedRungs.js +1 -5
  587. package/dist/Theme/tokens/builders/rowStates.d.ts +0 -6
  588. package/dist/Theme/tokens/builders/rowStates.js +4 -8
  589. package/dist/Theme/tokens/builders/scrim.d.ts +6 -0
  590. package/dist/Theme/tokens/builders/scrim.js +17 -0
  591. package/dist/Theme/tokens/builders/scrollbar.d.ts +0 -4
  592. package/dist/Theme/tokens/builders/scrollbar.js +1 -4
  593. package/dist/Theme/tokens/builders/semanticText.d.ts +0 -5
  594. package/dist/Theme/tokens/builders/semanticText.js +1 -5
  595. package/dist/Theme/tokens/builders/sidebarAccent.d.ts +8 -0
  596. package/dist/Theme/tokens/builders/sidebarAccent.js +15 -1
  597. package/dist/Theme/tokens/builders/statusTone.d.ts +1 -19
  598. package/dist/Theme/tokens/builders/statusTone.js +4 -19
  599. package/dist/Theme/tokens/builders/surfaceRaised.d.ts +6 -0
  600. package/dist/Theme/tokens/builders/surfaceRaised.js +21 -0
  601. package/dist/Theme/tokens/builders/surfaceRungs.d.ts +0 -4
  602. package/dist/Theme/tokens/builders/surfaceRungs.js +3 -9
  603. package/dist/Theme/tokens/builders/tone.d.ts +22 -0
  604. package/dist/Theme/tokens/builders/tone.js +54 -0
  605. package/dist/Theme/tokens/builders/tooltipSurface.d.ts +6 -0
  606. package/dist/Theme/tokens/builders/tooltipSurface.js +10 -0
  607. package/dist/Theme/tokens/builders/viewportHeight.d.ts +8 -0
  608. package/dist/Theme/tokens/builders/viewportHeight.js +9 -0
  609. package/dist/Theme/tokens/index.d.ts +0 -10
  610. package/dist/Theme/tokens/index.js +1 -10
  611. package/dist/Theme/tokens/primitives/controlSizes.d.ts +12 -0
  612. package/dist/Theme/tokens/primitives/controlSizes.js +14 -0
  613. package/dist/Theme/tokens/primitives/index.d.ts +2 -0
  614. package/dist/Theme/tokens/primitives/index.js +16 -0
  615. package/dist/Theme/tokens/primitives/motion.d.ts +8 -0
  616. package/dist/Theme/tokens/primitives/motion.js +12 -0
  617. package/dist/Theme/tokens/primitives/sizes.d.ts +0 -4
  618. package/dist/Theme/tokens/primitives/sizes.js +1 -4
  619. package/dist/Theme/tokens/primitives/typography.d.ts +0 -7
  620. package/dist/Theme/tokens/primitives/typography.js +1 -7
  621. package/dist/Theme/tokens/types.d.ts +8 -28
  622. package/dist/Theme/tokens/types.js +1 -6
  623. package/dist/Utils/accountHandoff.d.ts +0 -17
  624. package/dist/Utils/accountHandoff.js +2 -17
  625. package/dist/Utils/apiError.d.ts +2 -0
  626. package/dist/Utils/apiError.js +28 -0
  627. package/dist/Utils/functions.d.ts +1 -0
  628. package/dist/Utils/functions.js +6 -4
  629. package/dist/Utils/humanize.d.ts +4 -0
  630. package/dist/Utils/humanize.js +19 -0
  631. package/dist/Utils/lazyWithRetry.d.ts +9 -0
  632. package/dist/Utils/lazyWithRetry.js +51 -0
  633. package/dist/Utils/mergeRefs.d.ts +0 -5
  634. package/dist/Utils/mergeRefs.js +1 -5
  635. package/dist/Utils/planBadge.d.ts +1 -11
  636. package/dist/Utils/planBadge.js +2 -12
  637. package/dist/Utils/planExpiry.d.ts +0 -26
  638. package/dist/Utils/planExpiry.js +4 -29
  639. package/dist/Utils/rafThrottle.d.ts +0 -11
  640. package/dist/Utils/rafThrottle.js +1 -11
  641. package/dist/Utils/table.d.ts +2 -22
  642. package/dist/Utils/table.js +17 -87
  643. package/dist/Utils/validation.d.ts +13 -0
  644. package/dist/Utils/validation.js +86 -0
  645. package/dist/esm/Components/Accordion/Accordion.js +8 -10
  646. package/dist/esm/Components/Accordion/accordionColors.js +9 -10
  647. package/dist/esm/Components/AlertDialog/AlertDialog.js +3 -6
  648. package/dist/esm/Components/Apexcharts/ApexAreaChart/ApexAreaChart.js +7 -3
  649. package/dist/esm/Components/Apexcharts/ApexBarChart/ApexBarChart.js +8 -5
  650. package/dist/esm/Components/Apexcharts/ApexChartFallback.js +5 -0
  651. package/dist/esm/Components/Apexcharts/ApexLineChart/ApexLineChart.js +7 -3
  652. package/dist/esm/Components/Apexcharts/ApexPieChart/ApexPieChart.js +7 -3
  653. package/dist/esm/Components/Apexcharts/ApexPolarCharts/ApexPolarCharts.js +9 -6
  654. package/dist/esm/Components/Apexcharts/ApexRadialChart/ApexRadialChart.js +7 -5
  655. package/dist/esm/Components/Apexcharts/LazyReactApexChart.js +5 -0
  656. package/dist/esm/Components/AppSwitcher/AppMark.js +1 -5
  657. package/dist/esm/Components/AppSwitcher/AppSwitcher.js +4 -9
  658. package/dist/esm/Components/Avatar/Avatar.js +22 -0
  659. package/dist/esm/Components/Avatar/AvatarGroup.js +19 -0
  660. package/dist/esm/Components/Avatar/AvatarProps.js +1 -0
  661. package/dist/esm/Components/Avatar/avatarColorway.js +25 -0
  662. package/dist/esm/Components/Avatar/avatarSizing.js +12 -0
  663. package/dist/esm/Components/Backdrop/Backdrop.js +28 -0
  664. package/dist/esm/Components/Backdrop/BackdropProps.js +1 -0
  665. package/dist/esm/Components/Breadcrumbs/Breadcrumbs.js +15 -5
  666. package/dist/esm/Components/Breadcrumbs/breadcrumbInk.js +7 -0
  667. package/dist/esm/Components/Button/Button.js +2 -2
  668. package/dist/esm/Components/Button/Button.styles.js +21 -62
  669. package/dist/esm/Components/ButtonGroupIcon/ButtonGoupIconProps.js +2 -1
  670. package/dist/esm/Components/ButtonGroupIcon/ButtonGroupIcon.js +3 -10
  671. package/dist/esm/Components/ButtonGroupIcon/ButtonGroupIconProps.js +1 -0
  672. package/dist/esm/Components/Buttons/Buttons.js +2 -3
  673. package/dist/esm/Components/Card/Card.js +11 -5
  674. package/dist/esm/Components/Card/PaymentCard/PaymentCard.js +13 -9
  675. package/dist/esm/Components/Checkbox/Checkbox.js +11 -9
  676. package/dist/esm/Components/Checkbox/Checkbox.styles.js +42 -37
  677. package/dist/esm/Components/Common/ErrorComponent.js +1 -1
  678. package/dist/esm/Components/Common/ErrorMessage.js +5 -5
  679. package/dist/esm/Components/Common/FieldMessage.js +14 -0
  680. package/dist/esm/Components/Common/FormLabel.js +13 -8
  681. package/dist/esm/Components/Common/HelperText.js +3 -2
  682. package/dist/esm/Components/Common/Label.js +3 -2
  683. package/dist/esm/Components/Common/fieldMessageStyles.js +13 -0
  684. package/dist/esm/Components/Common/fieldStyles.js +66 -29
  685. package/dist/esm/Components/Common/useFieldIds.js +23 -0
  686. package/dist/esm/Components/ConfirmDialog/ConfirmDialog.js +18 -0
  687. package/dist/esm/Components/ConfirmDialog/ConfirmDialogProps.js +1 -0
  688. package/dist/esm/Components/ContactForm/ContactForm.js +19 -15
  689. package/dist/esm/Components/CopyButton/CopyButton.js +3 -4
  690. package/dist/esm/Components/CustomModulesTable/DeleteModuleModal.js +4 -4
  691. package/dist/esm/Components/CustomModulesTable/EditModuleModal.js +2 -4
  692. package/dist/esm/Components/DatePicker/CalendarPanel.js +3 -4
  693. package/dist/esm/Components/DatePicker/DatePicker.js +12 -49
  694. package/dist/esm/Components/DatePicker/DatePickerProps.js +1 -1
  695. package/dist/esm/Components/DatePicker/RangeDatePicker.js +17 -21
  696. package/dist/esm/Components/DatePicker/SingleDatePicker.js +37 -53
  697. package/dist/esm/Components/DatePicker/ThemeDatePicker.js +11 -18
  698. package/dist/esm/Components/DatePicker/TimeOnlyPicker.js +35 -20
  699. package/dist/esm/Components/DatePicker/TimePicker.js +8 -12
  700. package/dist/esm/Components/DatePicker/TimePickerInput.js +5 -11
  701. package/dist/esm/Components/DatePicker/dayStates.js +3 -15
  702. package/dist/esm/Components/DatePicker/pickerField.js +24 -0
  703. package/dist/esm/Components/DatePicker/valueFormat.js +15 -0
  704. package/dist/esm/Components/DescriptionList/DescriptionList.js +27 -0
  705. package/dist/esm/Components/DescriptionList/DescriptionListProps.js +1 -0
  706. package/dist/esm/Components/Drawer/Drawer.js +22 -8
  707. package/dist/esm/Components/Dropdown/DropDown.js +43 -33
  708. package/dist/esm/Components/Editor/Editor.js +13 -1
  709. package/dist/esm/Components/Editor/joditAccessibility.js +24 -0
  710. package/dist/esm/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +3 -3
  711. package/dist/esm/Components/EmptyState/EmptyState.js +24 -15
  712. package/dist/esm/Components/FeedbackForm/FeedbackForm.js +17 -7
  713. package/dist/esm/Components/FieldSelectModal/FieldSelectModal.js +3 -5
  714. package/dist/esm/Components/FilePreview/FilePreview.js +8 -8
  715. package/dist/esm/Components/FileUpload/FileUpload.js +22 -6
  716. package/dist/esm/Components/FileUpload/constants.js +1 -0
  717. package/dist/esm/Components/FileUploader/FileUploader.js +6 -5
  718. package/dist/esm/Components/FilterBar/FilterBar.js +12 -0
  719. package/dist/esm/Components/FilterBar/FilterBarProps.js +1 -0
  720. package/dist/esm/Components/FilterSidebar/FilterSidebar.js +27 -33
  721. package/dist/esm/Components/FilterSidebar/filterHoverStyle.js +1 -1
  722. package/dist/esm/Components/Form/FormWrapper.js +1 -1
  723. package/dist/esm/Components/Header/Header.js +2 -16
  724. package/dist/esm/Components/Header/HeaderActions.js +4 -4
  725. package/dist/esm/Components/Header/components/desktopMenu.js +10 -11
  726. package/dist/esm/Components/Header/components/mobileMenu.js +23 -20
  727. package/dist/esm/Components/Input/Input/Input.js +3 -2
  728. package/dist/esm/Components/Input/PhoneNumberInput.js +8 -5
  729. package/dist/esm/Components/Input/Switch/InputSwitch.js +16 -21
  730. package/dist/esm/Components/Input/TextInput.js +83 -10
  731. package/dist/esm/Components/Input/TextInput.styles.js +42 -88
  732. package/dist/esm/Components/Input/textInputIconSize.js +4 -20
  733. package/dist/esm/Components/Input/useAriaRequired.js +15 -0
  734. package/dist/esm/Components/InputTextArea/InputTextArea.js +10 -6
  735. package/dist/esm/Components/InputTextArea/InputTextArea.style.js +14 -69
  736. package/dist/esm/Components/KanbanBoard/AccountCard.js +9 -6
  737. package/dist/esm/Components/KanbanBoard/AccountRow.js +1 -1
  738. package/dist/esm/Components/KanbanBoard/KanbanBoard.js +86 -50
  739. package/dist/esm/Components/KanbanBoard/index.js +1 -0
  740. package/dist/esm/Components/LimitReachedModal/LimitReachedModal.js +2 -2
  741. package/dist/esm/Components/LimitReachedModal/limitReachedCopy.js +1 -3
  742. package/dist/esm/Components/Loading/Loading.js +16 -19
  743. package/dist/esm/Components/MediaViewer/MediaViewer.js +196 -0
  744. package/dist/esm/Components/MediaViewer/MediaViewerProps.js +29 -0
  745. package/dist/esm/Components/MediaViewer/components/MediaAudioPlayer.js +133 -0
  746. package/dist/esm/Components/MediaViewer/components/MediaAudioPlayerProps.js +18 -0
  747. package/dist/esm/Components/MediaViewer/components/MediaDocumentStage.js +109 -0
  748. package/dist/esm/Components/MediaViewer/components/MediaDocumentStageProps.js +8 -0
  749. package/dist/esm/Components/MediaViewer/components/MediaImageViewer.js +98 -0
  750. package/dist/esm/Components/MediaViewer/components/MediaImageViewerProps.js +15 -0
  751. package/dist/esm/Components/MediaViewer/components/MediaScrubber.js +87 -0
  752. package/dist/esm/Components/MediaViewer/components/MediaScrubberProps.js +1 -0
  753. package/dist/esm/Components/MediaViewer/components/MediaStatusPanel.js +12 -0
  754. package/dist/esm/Components/MediaViewer/components/MediaStatusPanelProps.js +1 -0
  755. package/dist/esm/Components/MediaViewer/components/MediaVideoPlayer.js +243 -0
  756. package/dist/esm/Components/MediaViewer/components/MediaVideoPlayerProps.js +28 -0
  757. package/dist/esm/Components/MediaViewer/components/TileChip.js +10 -0
  758. package/dist/esm/Components/MediaViewer/components/TileChipProps.js +1 -0
  759. package/dist/esm/Components/MediaViewer/components/VideoPoster.js +11 -0
  760. package/dist/esm/Components/MediaViewer/components/VideoPosterProps.js +1 -0
  761. package/dist/esm/Components/MediaViewer/components/ViewerIconButton.js +15 -0
  762. package/dist/esm/Components/MediaViewer/components/ViewerIconButtonProps.js +1 -0
  763. package/dist/esm/Components/MediaViewer/components/mediaKindIcon.js +18 -0
  764. package/dist/esm/Components/MediaViewer/components/sanitizeDocxHrefs.js +27 -0
  765. package/dist/esm/Components/MediaViewer/hooks/useAutoHideChrome.js +40 -0
  766. package/dist/esm/Components/MediaViewer/hooks/useFileViewer.js +45 -0
  767. package/dist/esm/Components/MediaViewer/mediaItems.js +174 -0
  768. package/dist/esm/Components/MediaViewer/useViewerChrome.js +27 -0
  769. package/dist/esm/Components/Modal/Modal.js +25 -19
  770. package/dist/esm/Components/MoreItems/MoreItems.js +4 -2
  771. package/dist/esm/Components/MultiSelect/MultiSelect.js +19 -18
  772. package/dist/esm/Components/NavigationBar/NavigationBar.js +7 -8
  773. package/dist/esm/Components/NoteTextArea/NoteTextArea.js +15 -10
  774. package/dist/esm/Components/Notification/Notification.js +9 -5
  775. package/dist/esm/Components/NotificationBell/NotificationBell.js +33 -0
  776. package/dist/esm/Components/NotificationBell/NotificationBellProps.js +1 -0
  777. package/dist/esm/Components/NotificationBell/NotificationItem.js +29 -0
  778. package/dist/esm/Components/NotificationBell/NotificationList.js +36 -0
  779. package/dist/esm/Components/NotificationBell/NotificationPanel.js +31 -0
  780. package/dist/esm/Components/NotificationBell/index.js +6 -0
  781. package/dist/esm/Components/NotificationBell/notificationHelpers.js +98 -0
  782. package/dist/esm/Components/NumberInput/NumberInput.js +7 -6
  783. package/dist/esm/Components/NumberInput/NumberInput.styles.js +19 -78
  784. package/dist/esm/Components/OrgSwitcher/OrgSwitcher.js +4 -12
  785. package/dist/esm/Components/OrgSwitcher/OrgSwitcherProps.js +2 -1
  786. package/dist/esm/Components/OrganizationDetails/CreateOrgModal.js +1 -1
  787. package/dist/esm/Components/OrganizationDetails/DeleteOrgModal.js +7 -9
  788. package/dist/esm/Components/OrganizationDetails/OrganizationDetails.js +9 -8
  789. package/dist/esm/Components/PageHeader/PageHeader.js +9 -0
  790. package/dist/esm/Components/PageHeader/PageHeaderProps.js +1 -0
  791. package/dist/esm/Components/PdfViewer/PdfViewer.js +1 -1
  792. package/dist/esm/Components/PersonChip/PersonChip.js +42 -0
  793. package/dist/esm/Components/PersonChip/PersonChipProps.js +1 -0
  794. package/dist/esm/Components/PinInput/PinInput.js +10 -7
  795. package/dist/esm/Components/PinInput/pinInputCellSize.js +6 -0
  796. package/dist/esm/Components/PlanBadge/PlanBadge.js +1 -7
  797. package/dist/esm/Components/PlanPill/PlanPill.js +2 -3
  798. package/dist/esm/Components/PlanPill/planPillGradient.js +6 -20
  799. package/dist/esm/Components/Primitives/Primitives.js +3 -6
  800. package/dist/esm/Components/ProductCard/ProductPrice.js +18 -7
  801. package/dist/esm/Components/ProductCard/ProductReview.js +3 -2
  802. package/dist/esm/Components/ProductDetails/ProductDetails.js +1 -1
  803. package/dist/esm/Components/ProductDetails/ProductDtlPrice.js +5 -5
  804. package/dist/esm/Components/ProductDetails/ProductImageSlider.js +36 -20
  805. package/dist/esm/Components/ProfileCard/ProfileCard.js +25 -10
  806. package/dist/esm/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +7 -4
  807. package/dist/esm/Components/ProgressBar/ProgressBar.js +27 -3
  808. package/dist/esm/Components/QueryState/ErrorState.js +11 -0
  809. package/dist/esm/Components/QueryState/QueryStateBoundary.js +20 -0
  810. package/dist/esm/Components/QueryState/QueryStateProps.js +1 -0
  811. package/dist/esm/Components/RadioButton/RadioButton.js +33 -16
  812. package/dist/esm/Components/RangeSlider/RangeSlider.js +131 -0
  813. package/dist/esm/Components/RangeSlider/RangeSliderProps.js +1 -0
  814. package/dist/esm/Components/RangeSlider/rangeSliderColors.js +7 -0
  815. package/dist/esm/Components/RangeSlider/rangeSliderMath.js +69 -0
  816. package/dist/esm/Components/RangeSlider/rangeSliderSize.js +8 -0
  817. package/dist/esm/Components/Reorder/Reorder.js +2 -2
  818. package/dist/esm/Components/RolesPermission/DeleteRoleModal.js +7 -9
  819. package/dist/esm/Components/RolesPermission/RolesPermission.js +1 -1
  820. package/dist/esm/Components/SaveBar/SaveBar.js +19 -0
  821. package/dist/esm/Components/SaveBar/SaveBarProps.js +1 -0
  822. package/dist/esm/Components/ScrollToTop/ScrollToTop.js +5 -2
  823. package/dist/esm/Components/Search/Search.js +35 -16
  824. package/dist/esm/Components/SearchSelect/SearchSelect.js +62 -76
  825. package/dist/esm/Components/SearchSelect/searchSelectSize.js +15 -15
  826. package/dist/esm/Components/SegmentedControl/SegmentedControl.js +34 -30
  827. package/dist/esm/Components/SegmentedControl/useSlidingPill.js +22 -0
  828. package/dist/esm/Components/Select/Select.js +67 -25
  829. package/dist/esm/Components/Select/Select.styles.js +12 -81
  830. package/dist/esm/Components/Select/SelectNative.js +44 -0
  831. package/dist/esm/Components/Select/SelectPopup.js +377 -0
  832. package/dist/esm/Components/SelectSearch/SelectSearch.js +18 -80
  833. package/dist/esm/Components/SelectV2/SelectV2.js +16 -231
  834. package/dist/esm/Components/SettingRow/SettingRow.js +22 -0
  835. package/dist/esm/Components/SettingRow/SettingRowProps.js +1 -0
  836. package/dist/esm/Components/SettingRow/SettingsSection.js +11 -0
  837. package/dist/esm/Components/SettingRow/SettingsSectionProps.js +1 -0
  838. package/dist/esm/Components/SideBar/SecondaryBar.js +19 -9
  839. package/dist/esm/Components/SideBar/SideBar.js +36 -21
  840. package/dist/esm/Components/SideBar/components/MenuItemBox.js +40 -25
  841. package/dist/esm/Components/SideBar/components/MenuItems.js +4 -4
  842. package/dist/esm/Components/SideBar/components/MenuPopoverContent.js +20 -10
  843. package/dist/esm/Components/SideBar/components/OtherApps.js +3 -3
  844. package/dist/esm/Components/SideBar/components/OverflowTooltipText.js +3 -1
  845. package/dist/esm/Components/SideBar/components/TextTruncation.js +3 -3
  846. package/dist/esm/Components/SideBar/menuDisabled.js +3 -0
  847. package/dist/esm/Components/SideBar/sidebarId.js +2 -0
  848. package/dist/esm/Components/Skeletons/Skeletons.js +2 -2
  849. package/dist/esm/Components/Slider/Slider.js +2 -1
  850. package/dist/esm/Components/Spinner/Spinner.js +19 -0
  851. package/dist/esm/Components/Spinner/SpinnerProps.js +1 -0
  852. package/dist/esm/Components/StageProgress/StageItem.js +12 -4
  853. package/dist/esm/Components/StageProgress/StageProgress.js +6 -7
  854. package/dist/esm/Components/StageProgress/StageProgressProps.js +6 -2
  855. package/dist/esm/Components/StageProgress/StepperStage.js +5 -2
  856. package/dist/esm/Components/StatCard/StatCard.js +37 -0
  857. package/dist/esm/Components/StatCard/StatCardProps.js +1 -0
  858. package/dist/esm/Components/Switch/Switch.js +10 -11
  859. package/dist/esm/Components/Table/Table.js +58 -51
  860. package/dist/esm/Components/Table/components/HeaderActions.js +3 -2
  861. package/dist/esm/Components/Table/components/Pagination.js +1 -1
  862. package/dist/esm/Components/Table/components/TableActions.js +1 -1
  863. package/dist/esm/Components/Table/components/TableBody.js +33 -41
  864. package/dist/esm/Components/Table/components/TableGroupRow.js +1 -1
  865. package/dist/esm/Components/Table/components/TableHeader.js +14 -12
  866. package/dist/esm/Components/Table/components/TableSearch.js +1 -1
  867. package/dist/esm/Components/Table/components/rowMetrics.js +11 -0
  868. package/dist/esm/Components/Table/filters/ActiveFilters.js +7 -4
  869. package/dist/esm/Components/Table/filters/CompactSelect.js +1 -1
  870. package/dist/esm/Components/Table/filters/LeftFilterPane.js +1 -1
  871. package/dist/esm/Components/Table/filters/TableFilters.js +1 -1
  872. package/dist/esm/Components/Table/hooks/useTable.js +14 -23
  873. package/dist/esm/Components/Table/settings/ManageColumns.js +7 -6
  874. package/dist/esm/Components/Table/settings/TableSettings.js +5 -4
  875. package/dist/esm/Components/Table/variants/classic.js +2 -0
  876. package/dist/esm/Components/Table/variants/stripe.js +3 -0
  877. package/dist/esm/Components/Table/variants/studio.js +2 -0
  878. package/dist/esm/Components/Tabs/Tabs.js +65 -0
  879. package/dist/esm/Components/Tabs/TabsContext.js +10 -0
  880. package/dist/esm/Components/Tabs/TabsProps.js +1 -0
  881. package/dist/esm/Components/Tabs/components/CountBadge.js +15 -0
  882. package/dist/esm/Components/Tabs/components/Tab.js +34 -0
  883. package/dist/esm/Components/Tabs/components/TabList.js +69 -0
  884. package/dist/esm/Components/Tabs/components/TabPanel.js +15 -0
  885. package/dist/esm/Components/Tabs/components/TabPanels.js +12 -0
  886. package/dist/esm/Components/Tabs/index.js +5 -0
  887. package/dist/esm/Components/Tabs/tabStyles.js +33 -0
  888. package/dist/esm/Components/Tag/Tag.js +15 -7
  889. package/dist/esm/Components/Tag/Tag.styles.js +44 -37
  890. package/dist/esm/Components/Timeline/Timeline.js +42 -30
  891. package/dist/esm/Components/Toaster/Toaster.js +73 -58
  892. package/dist/esm/Components/Toaster/toastDuration.js +3 -0
  893. package/dist/esm/Components/Toggle/TableToggle.js +9 -24
  894. package/dist/esm/Components/ToggleSwitch/ToggleSwitch.js +39 -8
  895. package/dist/esm/Components/ToolTip/OverflowToolTip.js +1 -15
  896. package/dist/esm/Components/ToolTip/ToolTip.js +14 -14
  897. package/dist/esm/Components/UpgradeButton/UpgradeButton.js +9 -14
  898. package/dist/esm/Components/UserDetails/AddUserModal.js +1 -1
  899. package/dist/esm/Components/UserDetails/ChangeRoleModal.js +1 -1
  900. package/dist/esm/Components/UserDetails/DeactivateConfirmModal.js +6 -8
  901. package/dist/esm/Components/UserDetails/UserDetails.js +7 -9
  902. package/dist/esm/Components/WorkspaceWindow/WorkspaceTrayPreview.js +2 -14
  903. package/dist/esm/Components/WorkspaceWindow/WorkspaceWindow.js +6 -23
  904. package/dist/esm/Hooks/useDebounce.js +29 -0
  905. package/dist/esm/Hooks/useExclusiveOverlay.js +1 -4
  906. package/dist/esm/Hooks/useFullscreen.js +29 -0
  907. package/dist/esm/Hooks/useIsTruncated.js +1 -30
  908. package/dist/esm/Hooks/usePreferences.js +1 -6
  909. package/dist/esm/Hooks/useSidebarPrefs.js +1 -2
  910. package/dist/esm/Theme/assertPalette.js +2 -2
  911. package/dist/esm/Theme/chakra/Card.styles.js +45 -0
  912. package/dist/esm/Theme/chakra/Drawer.styles.js +14 -13
  913. package/dist/esm/Theme/chakra/Menu.styles.js +2 -23
  914. package/dist/esm/Theme/chakra/Modal.styles.js +15 -13
  915. package/dist/esm/Theme/chakra/Popover.styles.js +2 -10
  916. package/dist/esm/Theme/chakra/Slider.styles.js +1 -6
  917. package/dist/esm/Theme/chakra/common.web.js +1 -7
  918. package/dist/esm/Theme/chakra/componentStyles.js +68 -88
  919. package/dist/esm/Theme/chakra/createBrandTheme.js +6 -50
  920. package/dist/esm/Theme/chakra/focusRing.styles.js +4 -23
  921. package/dist/esm/Theme/chakra/fonts.web.js +1 -5
  922. package/dist/esm/Theme/chakra/motion.js +22 -0
  923. package/dist/esm/Theme/chakra/overlay.styles.js +43 -0
  924. package/dist/esm/Theme/chakra/paletteFromTheme.js +1 -4
  925. package/dist/esm/Theme/index.js +3 -18
  926. package/dist/esm/Theme/provider/PixelizeThemeProvider.js +6 -74
  927. package/dist/esm/Theme/provider/ThemeSwitcher.js +2 -10
  928. package/dist/esm/Theme/provider/colorModeStorage.js +1 -4
  929. package/dist/esm/Theme/tokens/brands/emerald/palette.dark.js +0 -4
  930. package/dist/esm/Theme/tokens/brands/emerald/palette.light.js +2 -10
  931. package/dist/esm/Theme/tokens/brands/index.js +4 -4
  932. package/dist/esm/Theme/tokens/brands/lavender/palette.dark.js +0 -4
  933. package/dist/esm/Theme/tokens/brands/lavender/palette.light.js +4 -13
  934. package/dist/esm/Theme/tokens/brands/meadow/palette.dark.js +0 -4
  935. package/dist/esm/Theme/tokens/brands/meadow/palette.light.js +2 -11
  936. package/dist/esm/Theme/tokens/brands/radiant/palette.dark.js +0 -4
  937. package/dist/esm/Theme/tokens/brands/radiant/palette.light.js +2 -10
  938. package/dist/esm/Theme/tokens/brands/rosewood/palette.dark.js +0 -4
  939. package/dist/esm/Theme/tokens/brands/rosewood/palette.light.js +2 -14
  940. package/dist/esm/Theme/tokens/brands/skyline/palette.dark.js +0 -4
  941. package/dist/esm/Theme/tokens/brands/skyline/palette.light.js +2 -11
  942. package/dist/esm/Theme/tokens/brands/slate/palette.dark.js +0 -4
  943. package/dist/esm/Theme/tokens/brands/slate/palette.light.js +1 -11
  944. package/dist/esm/Theme/tokens/brands/storefront/palette.dark.js +0 -4
  945. package/dist/esm/Theme/tokens/brands/zinc/palette.dark.js +5 -35
  946. package/dist/esm/Theme/tokens/brands/zinc/palette.light.js +3 -12
  947. package/dist/esm/Theme/tokens/builders/accentText.js +5 -48
  948. package/dist/esm/Theme/tokens/builders/brandInk.js +18 -2
  949. package/dist/esm/Theme/tokens/builders/buildBrandTokens.js +1 -3
  950. package/dist/esm/Theme/tokens/builders/buildDarkPalette.js +15 -103
  951. package/dist/esm/Theme/tokens/builders/chartColorsFromTheme.js +1 -8
  952. package/dist/esm/Theme/tokens/builders/color.js +3 -20
  953. package/dist/esm/Theme/tokens/builders/filledSurface.js +35 -25
  954. package/dist/esm/Theme/tokens/builders/focusRing.js +5 -49
  955. package/dist/esm/Theme/tokens/builders/gradientInk.js +2 -10
  956. package/dist/esm/Theme/tokens/builders/index.js +4 -0
  957. package/dist/esm/Theme/tokens/builders/outlineRung.js +4 -70
  958. package/dist/esm/Theme/tokens/builders/placeholderInk.js +2 -12
  959. package/dist/esm/Theme/tokens/builders/resolvedRungs.js +1 -5
  960. package/dist/esm/Theme/tokens/builders/rowStates.js +5 -9
  961. package/dist/esm/Theme/tokens/builders/scrim.js +12 -0
  962. package/dist/esm/Theme/tokens/builders/scrollbar.js +1 -4
  963. package/dist/esm/Theme/tokens/builders/semanticText.js +1 -5
  964. package/dist/esm/Theme/tokens/builders/sidebarAccent.js +11 -0
  965. package/dist/esm/Theme/tokens/builders/statusTone.js +4 -19
  966. package/dist/esm/Theme/tokens/builders/surfaceRaised.js +15 -0
  967. package/dist/esm/Theme/tokens/builders/surfaceRungs.js +3 -9
  968. package/dist/esm/Theme/tokens/builders/tone.js +47 -0
  969. package/dist/esm/Theme/tokens/builders/tooltipSurface.js +6 -0
  970. package/dist/esm/Theme/tokens/builders/viewportHeight.js +6 -0
  971. package/dist/esm/Theme/tokens/index.js +1 -10
  972. package/dist/esm/Theme/tokens/primitives/controlSizes.js +10 -0
  973. package/dist/esm/Theme/tokens/primitives/index.js +2 -0
  974. package/dist/esm/Theme/tokens/primitives/motion.js +8 -0
  975. package/dist/esm/Theme/tokens/primitives/sizes.js +1 -4
  976. package/dist/esm/Theme/tokens/primitives/typography.js +1 -7
  977. package/dist/esm/Theme/tokens/types.js +1 -6
  978. package/dist/esm/Utils/accountHandoff.js +2 -17
  979. package/dist/esm/Utils/apiError.js +24 -0
  980. package/dist/esm/Utils/functions.js +6 -4
  981. package/dist/esm/Utils/humanize.js +15 -0
  982. package/dist/esm/Utils/lazyWithRetry.js +45 -0
  983. package/dist/esm/Utils/mergeRefs.js +1 -5
  984. package/dist/esm/Utils/planBadge.js +2 -12
  985. package/dist/esm/Utils/planExpiry.js +4 -29
  986. package/dist/esm/Utils/rafThrottle.js +1 -11
  987. package/dist/esm/Utils/table.js +15 -54
  988. package/dist/esm/Utils/validation.js +73 -0
  989. package/dist/esm/index.js +64 -2
  990. package/dist/global.css +6 -1
  991. package/dist/index.d.ts +110 -6
  992. package/dist/index.js +192 -4
  993. package/package.json +11 -3
  994. package/dist/Assets/defaultLogo.tsx +0 -26
  995. package/dist/Components/PinInputs/PinInputs.d.ts +0 -4
  996. package/dist/Components/PinInputs/PinInputs.js +0 -47
  997. package/dist/Components/PinInputs/PinInputsProps.d.ts +0 -10
  998. package/dist/Components/Table/hooks/useDebounce.d.ts +0 -2
  999. package/dist/Components/Table/hooks/useDebounce.js +0 -24
  1000. package/dist/Components/Trail/EditableCell.d.ts +0 -13
  1001. package/dist/Components/Trail/EditableCell.js +0 -35
  1002. package/dist/Components/Trail/SelectAllCheckbox.d.ts +0 -9
  1003. package/dist/Components/Trail/SelectAllCheckbox.js +0 -10
  1004. package/dist/Components/Trail/TrailWorks.d.ts +0 -3
  1005. package/dist/Components/Trail/TrailWorks.js +0 -57
  1006. package/dist/Components/Trail/data.d.ts +0 -15
  1007. package/dist/Components/Trail/data.js +0 -29
  1008. package/dist/Theme/chakra/Avatar.styles.d.ts +0 -32
  1009. package/dist/Theme/chakra/Avatar.styles.js +0 -28
  1010. package/dist/Theme/chakra/Switch.styles.d.ts +0 -30
  1011. package/dist/Theme/chakra/Switch.styles.js +0 -22
  1012. package/dist/Theme/chakra/Tabs.styles.d.ts +0 -42
  1013. package/dist/Theme/chakra/Tabs.styles.js +0 -36
  1014. package/dist/esm/Components/PinInputs/PinInputs.js +0 -42
  1015. package/dist/esm/Components/Table/hooks/useDebounce.js +0 -22
  1016. package/dist/esm/Components/Trail/EditableCell.js +0 -31
  1017. package/dist/esm/Components/Trail/SelectAllCheckbox.js +0 -6
  1018. package/dist/esm/Components/Trail/TrailWorks.js +0 -55
  1019. package/dist/esm/Components/Trail/data.js +0 -26
  1020. package/dist/esm/Theme/chakra/Avatar.styles.js +0 -25
  1021. package/dist/esm/Theme/chakra/Switch.styles.js +0 -19
  1022. package/dist/esm/Theme/chakra/Tabs.styles.js +0 -33
  1023. /package/dist/Components/{PinInputs/PinInputsProps.js → Avatar/AvatarGroupProps.js} +0 -0
  1024. /package/dist/esm/Components/{PinInputs/PinInputsProps.js → Avatar/AvatarGroupProps.js} +0 -0
@@ -1,52 +1,7 @@
1
1
  import type { FocusRingTokens, PaletteProps } from "../types";
2
- /**
3
- * The nearest re-lighting of `hex` that clears `target` against EVERY backdrop at once.
4
- *
5
- * Not `settleAcross`: that folds one `liftToContrast` per surface, and each lift walks AWAY from
6
- * the surface it was handed. That is correct when every backdrop sits on the same side of the ink
7
- * (its case — a set of light surfaces, or a set of dark ones), and wrong here, where a focus ring
8
- * is squeezed BETWEEN a near-white canvas and a mid-dark button fill: the lift against the fill
9
- * walks straight back across the canvas it had just cleared. Seeding `settleAcross` with
10
- * `primary[500]` measured 1.08-1.99 on the light canvas for every brand for exactly that reason.
11
- *
12
- * Walking outward from the seed and testing every backdrop at each step keeps the result the
13
- * CLOSEST passing colour to the brand accent, so the ring still reads as brand chrome. Contrast is
14
- * a function of relative luminance alone, and lightness sweeps luminance monotonically from 0 to 1,
15
- * so if any colour on this hue clears the set, this finds it.
16
- */
17
2
  export declare function settleBetween(hex: string, backdrops: readonly string[], target?: number): string;
18
3
  /** Everything the ring is derived from. A `PaletteProps` satisfies it; so does a brand source. */
19
4
  export type FocusRingSource = Pick<PaletteProps, "primary" | "background" | "backgroundColor">;
20
- /**
21
- * The three backdrops a focused button's ring is actually drawn against: the page canvas, a card
22
- * surface, and — because a solid button's ring sits directly against its own fill — `primary[500]`.
23
- *
24
- * Deliberately NOT every named surface. `muted`/`accent`/`quaternary` are mid-tone, and a single
25
- * band asked to clear those AND a dark brand fill has no solution at any hue — contrast is
26
- * luminance alone, and `skyline`/`storefront` come out with an empty band. That is what the second
27
- * tone is for: `halo` owns the fill-side adjacency instead.
28
- */
29
5
  export declare const focusRingBackdrops: (source: FocusRingSource) => string[];
30
- /**
31
- * The two-tone `:focus-visible` indicator.
32
- *
33
- * Chakra's stock ring (`shadows.outline`, a fixed `rgba(66,153,225,.6)`) measured 1.83:1 on the
34
- * lavender canvas and 1.38:1 on a primary button — a focus indicator you cannot see, on all nine
35
- * brands. It is one hardcoded blue, so no palette could have saved it.
36
- *
37
- * `halo` is the surface tone, drawn as the inner band so the indicator separates from a filled
38
- * control whatever `colorScheme` painted it. `ring` is the brand accent, walked to the nearest
39
- * lightness that clears 3:1 on all three backdrops at once — including the halo, so the two tones
40
- * are always told apart.
41
- */
42
6
  export declare const buildFocusRing: (source: FocusRingSource) => FocusRingTokens;
43
- /**
44
- * Re-derives the ring from the FINISHED palette, as the last step of the rung chain.
45
- *
46
- * `finalizeLightPalette` and `buildDarkPalette` seed it, but neither is the final word: a brand
47
- * file may replace `primary` or `background` after the generic derivation runs — `zinc`'s dark
48
- * palette replaces both, inverting the filled button to near-white — and a ring resolved against
49
- * the pre-override values is then silently wrong. Same reason `withSurfaceRungs` re-lifts inks the
50
- * finalizers already derived. `focusRing.test.ts` asserts this is a fixed point.
51
- */
52
7
  export declare const withFocusRing: (palette: PaletteProps) => PaletteProps;
@@ -6,21 +6,7 @@ const color_1 = require("./color");
6
6
  const outlineRung_1 = require("./outlineRung");
7
7
  /** Same lightness granularity `buildDarkPalette` walks its accents at. */
8
8
  const LIGHTNESS_STEP = 0.5;
9
- /**
10
- * The nearest re-lighting of `hex` that clears `target` against EVERY backdrop at once.
11
- *
12
- * Not `settleAcross`: that folds one `liftToContrast` per surface, and each lift walks AWAY from
13
- * the surface it was handed. That is correct when every backdrop sits on the same side of the ink
14
- * (its case — a set of light surfaces, or a set of dark ones), and wrong here, where a focus ring
15
- * is squeezed BETWEEN a near-white canvas and a mid-dark button fill: the lift against the fill
16
- * walks straight back across the canvas it had just cleared. Seeding `settleAcross` with
17
- * `primary[500]` measured 1.08-1.99 on the light canvas for every brand for exactly that reason.
18
- *
19
- * Walking outward from the seed and testing every backdrop at each step keeps the result the
20
- * CLOSEST passing colour to the brand accent, so the ring still reads as brand chrome. Contrast is
21
- * a function of relative luminance alone, and lightness sweeps luminance monotonically from 0 to 1,
22
- * so if any colour on this hue clears the set, this finds it.
23
- */
9
+ // NOTE: not settleAcross — a ring squeezed between a light canvas and a dark fill needs the closest color that clears both, not a per-surface lift.
24
10
  function settleBetween(hex, backdrops, target = outlineRung_1.AA_NON_TEXT) {
25
11
  const clears = (candidate) => backdrops.every((backdrop) => (0, color_1.contrastRatio)(candidate, backdrop) >= target);
26
12
  if (clears(hex))
@@ -34,40 +20,18 @@ function settleBetween(hex, backdrops, target = outlineRung_1.AA_NON_TEXT) {
34
20
  if (clears(lighter))
35
21
  return lighter;
36
22
  }
37
- // Unreachable for every shipped brand (the gate proves it) — a brand whose fill and canvas are
38
- // close enough to leave no gap would land here. Take the end that is least bad rather than throw
39
- // at import time, and let `focusRing.test.ts` be what reports it.
23
+ // NOTE: unreachable for shipped brands (gated by focusRing.test.ts) — takes the least-bad end rather than throwing.
40
24
  const ends = [(0, color_1.withLightness)(hex, 0), (0, color_1.withLightness)(hex, 100)];
41
25
  const worst = (candidate) => Math.min(...backdrops.map((backdrop) => (0, color_1.contrastRatio)(candidate, backdrop)));
42
26
  return worst(ends[0]) >= worst(ends[1]) ? ends[0] : ends[1];
43
27
  }
44
- /**
45
- * The three backdrops a focused button's ring is actually drawn against: the page canvas, a card
46
- * surface, and — because a solid button's ring sits directly against its own fill — `primary[500]`.
47
- *
48
- * Deliberately NOT every named surface. `muted`/`accent`/`quaternary` are mid-tone, and a single
49
- * band asked to clear those AND a dark brand fill has no solution at any hue — contrast is
50
- * luminance alone, and `skyline`/`storefront` come out with an empty band. That is what the second
51
- * tone is for: `halo` owns the fill-side adjacency instead.
52
- */
28
+ // NOTE: only canvas + card surface — including the fill or every named surface leaves no solvable hue.
53
29
  const focusRingBackdrops = (source) => [
54
30
  source.backgroundColor.main,
55
31
  source.background[50],
56
- source.primary[500],
57
32
  ];
58
33
  exports.focusRingBackdrops = focusRingBackdrops;
59
- /**
60
- * The two-tone `:focus-visible` indicator.
61
- *
62
- * Chakra's stock ring (`shadows.outline`, a fixed `rgba(66,153,225,.6)`) measured 1.83:1 on the
63
- * lavender canvas and 1.38:1 on a primary button — a focus indicator you cannot see, on all nine
64
- * brands. It is one hardcoded blue, so no palette could have saved it.
65
- *
66
- * `halo` is the surface tone, drawn as the inner band so the indicator separates from a filled
67
- * control whatever `colorScheme` painted it. `ring` is the brand accent, walked to the nearest
68
- * lightness that clears 3:1 on all three backdrops at once — including the halo, so the two tones
69
- * are always told apart.
70
- */
34
+ // NOTE: replaces Chakra's stock ring (a fixed blue that measured under 2:1 on every brand).
71
35
  const buildFocusRing = (source) => {
72
36
  const halo = settleBetween(source.background[50], [source.primary[500]]);
73
37
  return {
@@ -76,15 +40,7 @@ const buildFocusRing = (source) => {
76
40
  };
77
41
  };
78
42
  exports.buildFocusRing = buildFocusRing;
79
- /**
80
- * Re-derives the ring from the FINISHED palette, as the last step of the rung chain.
81
- *
82
- * `finalizeLightPalette` and `buildDarkPalette` seed it, but neither is the final word: a brand
83
- * file may replace `primary` or `background` after the generic derivation runs — `zinc`'s dark
84
- * palette replaces both, inverting the filled button to near-white — and a ring resolved against
85
- * the pre-override values is then silently wrong. Same reason `withSurfaceRungs` re-lifts inks the
86
- * finalizers already derived. `focusRing.test.ts` asserts this is a fixed point.
87
- */
43
+ // NOTE: re-derives against the FINISHED palette — a brand file can still override primary/background after the generic pass.
88
44
  const withFocusRing = (palette) => ({
89
45
  ...palette,
90
46
  focusRing: (0, exports.buildFocusRing)(palette),
@@ -6,17 +6,7 @@ export type Gradient = {
6
6
  export type ResolvedGradient = Gradient & {
7
7
  ink: string;
8
8
  };
9
- /**
10
- * Sinks both stops until WHITE ink clears AA, keeping each stop's hue. Any mid-tone gradient
11
- * otherwise flips `onGradient` to black ink, so the same element reads white-on-colour in one
12
- * brand and black-on-pastel in the next.
13
- */
14
9
  export declare const inkSafeGradient: (gradient: Gradient) => Gradient;
15
- /**
16
- * The only correct way to paint text on a gradient: returns the stops to draw AND the ink for
17
- * them. Calling `onGradient` on raw stops is the black-text bug — it picks ink for a backdrop
18
- * that is then painted differently.
19
- */
20
10
  export declare const resolveGradient: (gradient: Gradient, white: string, black: string) => ResolvedGradient;
21
11
  /** `linear-gradient(...)` for a resolved pair — one spelling of the CSS everywhere. */
22
12
  export declare const gradientCss: (g: Gradient, angle?: string) => string;
@@ -3,21 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.gradientCss = exports.resolveGradient = exports.inkSafeGradient = void 0;
4
4
  const accentText_1 = require("./accentText");
5
5
  const statusTone_1 = require("./statusTone");
6
- /**
7
- * Sinks both stops until WHITE ink clears AA, keeping each stop's hue. Any mid-tone gradient
8
- * otherwise flips `onGradient` to black ink, so the same element reads white-on-colour in one
9
- * brand and black-on-pastel in the next.
10
- */
6
+ // NOTE: sinks both stops until white ink clears AA — otherwise a mid-tone gradient flips onGradient to black.
11
7
  const inkSafeGradient = (gradient) => ({
12
8
  from: (0, statusTone_1.resolveAvatarFill)(gradient.from),
13
9
  to: (0, statusTone_1.resolveAvatarFill)(gradient.to),
14
10
  });
15
11
  exports.inkSafeGradient = inkSafeGradient;
16
- /**
17
- * The only correct way to paint text on a gradient: returns the stops to draw AND the ink for
18
- * them. Calling `onGradient` on raw stops is the black-text bug — it picks ink for a backdrop
19
- * that is then painted differently.
20
- */
12
+ // The only correct way to paint gradient text — returns the stops to draw AND the ink for them together.
21
13
  const resolveGradient = (gradient, white, black) => {
22
14
  const { from, to } = (0, exports.inkSafeGradient)(gradient);
23
15
  return { from, to, ink: (0, accentText_1.onGradient)(from, to, white, black) };
@@ -7,3 +7,7 @@ export * from "./focusRing";
7
7
  export * from "./scrollbar";
8
8
  export * from "./gradientInk";
9
9
  export * from "./placeholderInk";
10
+ export * from "./tone";
11
+ export * from "./scrim";
12
+ export * from "./tooltipSurface";
13
+ export * from "./surfaceRaised";
@@ -23,3 +23,7 @@ __exportStar(require("./focusRing"), exports);
23
23
  __exportStar(require("./scrollbar"), exports);
24
24
  __exportStar(require("./gradientInk"), exports);
25
25
  __exportStar(require("./placeholderInk"), exports);
26
+ __exportStar(require("./tone"), exports);
27
+ __exportStar(require("./scrim"), exports);
28
+ __exportStar(require("./tooltipSurface"), exports);
29
+ __exportStar(require("./surfaceRaised"), exports);
@@ -1,78 +1,12 @@
1
1
  import type { PaletteProps } from "../types";
2
- /**
3
- * The floor a hover/active state's step off its own resting surface must clear to be seen at
4
- * all — same value the SideBar ladder, Accordion, and NavigationBar hover states are held to.
5
- * A "hover" a user cannot perceive is not a hover.
6
- */
7
2
  export declare const MIN_PERCEPTIBLE_STEP = 1.15;
8
- /** WCAG 1.4.11 — a control outline is a UI component boundary, held to 3:1. */
9
3
  export declare const AA_NON_TEXT = 3;
10
- /**
11
- * Resting chrome — card, popover and field outlines — settles here, not at `AA_NON_TEXT`.
12
- * At 3:1 a container border is text-weight and the UI reads as a wireframe; every mainstream
13
- * system draws this line far lighter (Tailwind gray-200 1.24, Chakra gray.200 1.30, Material
14
- * outline-variant 1.61). 1.4.11 asks that a control be identifiable, not that its resting
15
- * border carry the whole job: the fill, the label and the focus ring do that.
16
- *
17
- * That defence was untrue when it was written. Buttons defined no `_focusVisible` at all, so the
18
- * focus ring was Chakra's stock `shadows.outline` — a fixed blue measuring 1.38:1 on a primary
19
- * button — and nothing in the library was held to `AA_NON_TEXT` at the moment of focus. It is
20
- * true now: `focusRing` (`builders/focusRing.ts`) is derived per brand per mode and gated at 3:1
21
- * on the canvas, on a card and on the button's own fill by `builders/focusRing.test.ts`. If that
22
- * gate is ever relaxed, this constant loses its justification with it.
23
- */
24
4
  export declare const CHROME_BORDER = 1.5;
25
5
  export declare const CHROME_RULE = 1.31;
26
- /**
27
- * A rule is decorative, so it has a ceiling and no floor: soften it until the surface it reads
28
- * hardest against sits at `target`, and leave a already-fainter rung alone. Never `settleAcross`
29
- * here — that clears a floor on EVERY surface, so one tinted surface drags the rule darker.
30
- */
31
6
  export declare function ruleInk(hex: string, surfaces: readonly string[], target: number): string;
32
- /**
33
- * Walks a hex toward `target` contrast against `backdrop`, keeping hue and saturation.
34
- * Direction is DERIVED from the backdrop, never passed: a mode argument here was redundant
35
- * with the backdrop in every call site, and a redundant argument is one that can be wrong.
36
- * Tries the far side first, falls back to the near side, and stops at the first passing step.
37
- */
38
7
  export declare function liftToContrast(hex: string, backdrop: string, target?: number): string;
39
- /**
40
- * Mirror of `liftToContrast`: walks ink TOWARD the backdrop, stopping at the last step that
41
- * still clears `target`. For ink that must stay legible without reading as body copy.
42
- */
43
8
  export declare function softenToContrast(hex: string, backdrop: string, target: number): string;
44
- /**
45
- * `boxborder[500]` is the rung every control outline reads (Checkbox, SearchSelect, the date
46
- * pickers, the editor's inputs). Settled onto `CHROME_BORDER` — lifted when a brand authored it
47
- * invisibly pale, softened when it overshoots. It was previously lifted to `AA_NON_TEXT`, which
48
- * shipped 3.85-4.95:1 outlines: a text-weight box around every card and popover.
49
- * Resolved here rather than hand-pinned per brand: a copied hex goes stale the moment a canvas moves.
50
- *
51
- * `border[*]` is deliberately untouched — that ramp draws table gridlines, which are decorative
52
- * and outside 1.4.11.
53
- */
54
9
  export declare function withOutlineRung(palette: PaletteProps): PaletteProps;
55
- /**
56
- * A hover/active tint resolved against the surface it actually sits on, guaranteed to clear
57
- * `MIN_PERCEPTIBLE_STEP`. Written for the recurring shape found across NavigationBar, UserDetails
58
- * and Accordion: a pale `primary[50]`/`gray[50]` tint that measures near-1.0 on a near-white
59
- * surface — invisible — with no dark-mode branch, so the same call site is wrong in both modes at
60
- * once. `restSurface` is required rather than assumed white/black: a menu item's hover sits on
61
- * its OWN list background, not necessarily the page canvas.
62
- */
63
10
  export declare function resolveHoverTint(seed: string, restSurface: string): string;
64
- /**
65
- * Settles ink into `target` against EVERY surface at once. Softening one step can change which
66
- * surface is hardest, so resolving against a single pre-computed "hardest" one lands under the
67
- * floor on another — that is how radiant and rosewood ended up with an invisible outline on
68
- * their muted surface.
69
- */
70
11
  export declare function settleAcross(hex: string, surfaces: readonly string[], target: number): string;
71
- /**
72
- * A pure-grey surface sitting `target` contrast away from `backdrop`. Binary search, not a walk:
73
- * `liftToContrast` cannot move a seed already at lightness 0 or 100, and a pure-white panel seeded
74
- * itself straight to black. Neutral on purpose — the light palettes are hand-authored and tinted,
75
- * so lifting one of their surface rungs turns a selected row into a saturated brand block, while
76
- * the derived dark palettes land on grey and look right.
77
- */
78
12
  export declare function neutralStep(backdrop: string, target: number): string;
@@ -9,49 +9,17 @@ exports.resolveHoverTint = resolveHoverTint;
9
9
  exports.settleAcross = settleAcross;
10
10
  exports.neutralStep = neutralStep;
11
11
  const color_1 = require("./color");
12
- /**
13
- * The floor a hover/active state's step off its own resting surface must clear to be seen at
14
- * all — same value the SideBar ladder, Accordion, and NavigationBar hover states are held to.
15
- * A "hover" a user cannot perceive is not a hover.
16
- */
17
12
  exports.MIN_PERCEPTIBLE_STEP = 1.15;
18
- /** WCAG 1.4.11 — a control outline is a UI component boundary, held to 3:1. */
19
13
  exports.AA_NON_TEXT = 3;
20
- /**
21
- * Resting chrome — card, popover and field outlines — settles here, not at `AA_NON_TEXT`.
22
- * At 3:1 a container border is text-weight and the UI reads as a wireframe; every mainstream
23
- * system draws this line far lighter (Tailwind gray-200 1.24, Chakra gray.200 1.30, Material
24
- * outline-variant 1.61). 1.4.11 asks that a control be identifiable, not that its resting
25
- * border carry the whole job: the fill, the label and the focus ring do that.
26
- *
27
- * That defence was untrue when it was written. Buttons defined no `_focusVisible` at all, so the
28
- * focus ring was Chakra's stock `shadows.outline` — a fixed blue measuring 1.38:1 on a primary
29
- * button — and nothing in the library was held to `AA_NON_TEXT` at the moment of focus. It is
30
- * true now: `focusRing` (`builders/focusRing.ts`) is derived per brand per mode and gated at 3:1
31
- * on the canvas, on a card and on the button's own fill by `builders/focusRing.test.ts`. If that
32
- * gate is ever relaxed, this constant loses its justification with it.
33
- */
14
+ // NOTE: settles below AA_NON_TEXT — focusRing.ts covers the 1.4.11 gate instead.
34
15
  exports.CHROME_BORDER = 1.5;
35
- // The resting rule between two surfaces — a card edge, a divider, a menu outline. Lighter than
36
- // CHROME_BORDER, which outlines a control the user acts on.
37
16
  exports.CHROME_RULE = 1.31;
38
- /**
39
- * A rule is decorative, so it has a ceiling and no floor: soften it until the surface it reads
40
- * hardest against sits at `target`, and leave a already-fainter rung alone. Never `settleAcross`
41
- * here — that clears a floor on EVERY surface, so one tinted surface drags the rule darker.
42
- */
43
17
  function ruleInk(hex, surfaces, target) {
44
18
  const loudest = surfaces.reduce((worst, s) => (0, color_1.contrastRatio)(hex, s) > (0, color_1.contrastRatio)(hex, worst) ? s : worst);
45
19
  return (0, color_1.contrastRatio)(hex, loudest) > target
46
20
  ? softenToContrast(hex, loudest, target)
47
21
  : hex;
48
22
  }
49
- /**
50
- * Walks a hex toward `target` contrast against `backdrop`, keeping hue and saturation.
51
- * Direction is DERIVED from the backdrop, never passed: a mode argument here was redundant
52
- * with the backdrop in every call site, and a redundant argument is one that can be wrong.
53
- * Tries the far side first, falls back to the near side, and stops at the first passing step.
54
- */
55
23
  function liftToContrast(hex, backdrop, target = exports.AA_NON_TEXT) {
56
24
  if ((0, color_1.contrastRatio)(hex, backdrop) >= target)
57
25
  return hex;
@@ -69,10 +37,6 @@ function liftToContrast(hex, backdrop, target = exports.AA_NON_TEXT) {
69
37
  const ends = [(0, color_1.withLightness)(hex, 100, s), (0, color_1.withLightness)(hex, 0, s)];
70
38
  return (0, color_1.contrastRatio)(ends[0], backdrop) >= (0, color_1.contrastRatio)(ends[1], backdrop) ? ends[0] : ends[1];
71
39
  }
72
- /**
73
- * Mirror of `liftToContrast`: walks ink TOWARD the backdrop, stopping at the last step that
74
- * still clears `target`. For ink that must stay legible without reading as body copy.
75
- */
76
40
  function softenToContrast(hex, backdrop, target) {
77
41
  if ((0, color_1.contrastRatio)(hex, backdrop) <= target)
78
42
  return hex;
@@ -87,20 +51,9 @@ function softenToContrast(hex, backdrop, target) {
87
51
  }
88
52
  return softest;
89
53
  }
90
- /**
91
- * `boxborder[500]` is the rung every control outline reads (Checkbox, SearchSelect, the date
92
- * pickers, the editor's inputs). Settled onto `CHROME_BORDER` — lifted when a brand authored it
93
- * invisibly pale, softened when it overshoots. It was previously lifted to `AA_NON_TEXT`, which
94
- * shipped 3.85-4.95:1 outlines: a text-weight box around every card and popover.
95
- * Resolved here rather than hand-pinned per brand: a copied hex goes stale the moment a canvas moves.
96
- *
97
- * `border[*]` is deliberately untouched — that ramp draws table gridlines, which are decorative
98
- * and outside 1.4.11.
99
- */
54
+ // NOTE: border[*] is untouched — it draws decorative table gridlines, outside 1.4.11.
100
55
  function withOutlineRung(palette) {
101
56
  const current = palette.boxborder[500];
102
- // The border sits between the control's fill and the surface behind it; hold it to the
103
- // harder of the two.
104
57
  const backdrop = (0, color_1.contrastRatio)(current, palette.backgroundColor.main) <=
105
58
  (0, color_1.contrastRatio)(current, palette.background[50])
106
59
  ? palette.backgroundColor.main
@@ -112,23 +65,10 @@ function withOutlineRung(palette) {
112
65
  return palette;
113
66
  return { ...palette, boxborder: { ...palette.boxborder, 500: resolved } };
114
67
  }
115
- /**
116
- * A hover/active tint resolved against the surface it actually sits on, guaranteed to clear
117
- * `MIN_PERCEPTIBLE_STEP`. Written for the recurring shape found across NavigationBar, UserDetails
118
- * and Accordion: a pale `primary[50]`/`gray[50]` tint that measures near-1.0 on a near-white
119
- * surface — invisible — with no dark-mode branch, so the same call site is wrong in both modes at
120
- * once. `restSurface` is required rather than assumed white/black: a menu item's hover sits on
121
- * its OWN list background, not necessarily the page canvas.
122
- */
123
68
  function resolveHoverTint(seed, restSurface) {
124
69
  return liftToContrast(seed, restSurface, exports.MIN_PERCEPTIBLE_STEP);
125
70
  }
126
- /**
127
- * Settles ink into `target` against EVERY surface at once. Softening one step can change which
128
- * surface is hardest, so resolving against a single pre-computed "hardest" one lands under the
129
- * floor on another — that is how radiant and rosewood ended up with an invisible outline on
130
- * their muted surface.
131
- */
71
+ // NOTE: settles against every surface at once — a single "hardest" surface can drop under target on another.
132
72
  function settleAcross(hex, surfaces, target) {
133
73
  const clearsAll = (c) => surfaces.every((s) => (0, color_1.contrastRatio)(c, s) >= target);
134
74
  if (!clearsAll(hex)) {
@@ -145,13 +85,7 @@ function settleAcross(hex, surfaces, target) {
145
85
  }
146
86
  return settled;
147
87
  }
148
- /**
149
- * A pure-grey surface sitting `target` contrast away from `backdrop`. Binary search, not a walk:
150
- * `liftToContrast` cannot move a seed already at lightness 0 or 100, and a pure-white panel seeded
151
- * itself straight to black. Neutral on purpose — the light palettes are hand-authored and tinted,
152
- * so lifting one of their surface rungs turns a selected row into a saturated brand block, while
153
- * the derived dark palettes land on grey and look right.
154
- */
88
+ // NOTE: binary search, not liftToContrast — a seed already at lightness 0/100 can't walk.
155
89
  function neutralStep(backdrop, target) {
156
90
  const grey = (l) => (0, color_1.withLightness)("#808080", l, 0);
157
91
  let lo = (0, color_1.hexToHsl)(backdrop).l;
@@ -1,19 +1,7 @@
1
1
  import type { PaletteProps } from "../types";
2
2
  /** A field always renders on at least one surface — the first is the reference backdrop. */
3
3
  export type FieldSurfaces = readonly [string, ...string[]];
4
- /**
5
- * The hint ink for a field: the brand's authored rung settled onto `PLACEHOLDER_TEXT` against the
6
- * hardest surface a field can land on — lifted when it falls short, softened when it overshoots.
7
- *
8
- * Settled rather than floored because the authored rungs measured 3.96-7.73:1 across the brands,
9
- * and anything much past the floor reads as a field already typed into. The floor is the look:
10
- * one hint weight for every brand in both modes, instead of a per-brand accident.
11
- */
12
4
  export declare const placeholderInkOn: (palette: PaletteProps, surfaces: FieldSurfaces) => string;
13
- /**
14
- * Every surface an ENABLED field renders on. Disabled fields are deliberately absent — 1.4.3
15
- * exempts them, and folding their dimmer fill in here would darken the hint on every other field.
16
- */
17
5
  export declare const fieldSurfaces: (palette: PaletteProps) => FieldSurfaces;
18
6
  /** The hint ink every field in this library reads. Takes no backdrop: see `fieldSurfaces`. */
19
7
  export declare const placeholderInk: (palette: PaletteProps) => string;
@@ -4,14 +4,7 @@ exports.placeholderInk = exports.fieldSurfaces = exports.placeholderInkOn = void
4
4
  const color_1 = require("./color");
5
5
  const outlineRung_1 = require("./outlineRung");
6
6
  const surfaceRungs_1 = require("./surfaceRungs");
7
- /**
8
- * The hint ink for a field: the brand's authored rung settled onto `PLACEHOLDER_TEXT` against the
9
- * hardest surface a field can land on — lifted when it falls short, softened when it overshoots.
10
- *
11
- * Settled rather than floored because the authored rungs measured 3.96-7.73:1 across the brands,
12
- * and anything much past the floor reads as a field already typed into. The floor is the look:
13
- * one hint weight for every brand in both modes, instead of a per-brand accident.
14
- */
7
+ // NOTE: settled (not floored) onto PLACEHOLDER_TEXT — one hint weight across brands, not a per-brand accident.
15
8
  const placeholderInkOn = (palette, surfaces) => {
16
9
  const rung = palette.placeholder[500];
17
10
  const hardest = surfaces.reduce((worst, s) => (0, color_1.contrastRatio)(rung, s) < (0, color_1.contrastRatio)(rung, worst) ? s : worst);
@@ -20,10 +13,7 @@ const placeholderInkOn = (palette, surfaces) => {
20
13
  : (0, outlineRung_1.liftToContrast)(rung, hardest, surfaceRungs_1.PLACEHOLDER_TEXT);
21
14
  };
22
15
  exports.placeholderInkOn = placeholderInkOn;
23
- /**
24
- * Every surface an ENABLED field renders on. Disabled fields are deliberately absent — 1.4.3
25
- * exempts them, and folding their dimmer fill in here would darken the hint on every other field.
26
- */
16
+ // NOTE: enabled fields only — 1.4.3 exempts disabled ones, and folding their dimmer fill in would darken every other field's hint.
27
17
  const fieldSurfaces = (palette) => [
28
18
  palette.gray[50],
29
19
  palette.background[50],
@@ -1,10 +1,5 @@
1
1
  import { AA_NON_TEXT } from "./outlineRung";
2
2
  import type { PaletteProps } from "../types";
3
- /**
4
- * A hint is floored at 3:1, not 4.5:1. Held to body-text contrast it stopped reading as a hint —
5
- * an empty field looked like one already typed into — and the published library ships this rung
6
- * as the brand authored it. See CHROME-CONSISTENCY.md.
7
- */
8
3
  export declare function withPlaceholderRung(palette: PaletteProps): PaletteProps;
9
4
  /** The hover row is a SURFACE, so it steps away from the ink rather than the ink moving. */
10
5
  export declare function withTableHoverRung(palette: PaletteProps): PaletteProps;
@@ -7,11 +7,7 @@ const outlineRung_1 = require("./outlineRung");
7
7
  Object.defineProperty(exports, "AA_NON_TEXT", { enumerable: true, get: function () { return outlineRung_1.AA_NON_TEXT; } });
8
8
  const accentText_1 = require("./accentText");
9
9
  const surfaceRungs_1 = require("./surfaceRungs");
10
- /**
11
- * A hint is floored at 3:1, not 4.5:1. Held to body-text contrast it stopped reading as a hint —
12
- * an empty field looked like one already typed into — and the published library ships this rung
13
- * as the brand authored it. See CHROME-CONSISTENCY.md.
14
- */
10
+ // NOTE: hint floored at 3:1, not 4.5:1 — held to body-text contrast it read as already-typed-into. See CHROME-CONSISTENCY.md.
15
11
  function withPlaceholderRung(palette) {
16
12
  const resolved = (0, outlineRung_1.liftToContrast)(palette.placeholder[500], palette.background[50], surfaceRungs_1.PLACEHOLDER_TEXT);
17
13
  if (resolved === palette.placeholder[500])
@@ -4,10 +4,4 @@ export interface RowStateBackgrounds {
4
4
  selected: string;
5
5
  selectedActive: string;
6
6
  }
7
- /**
8
- * The three backgrounds a selectable list row can rest on. Every rung is NEUTRAL and pale, so a
9
- * row's ink stays the canvas ink `withSurfaceRungs` already settled. Seeding a row state from
10
- * `primary[500]` instead — the filled-button rung — is what painted SelectV2's hovered rows a
11
- * solid brand fill under unreadable text.
12
- */
13
7
  export declare const listRowBackgrounds: (colors: PaletteProps) => RowStateBackgrounds;
@@ -2,16 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.listRowBackgrounds = void 0;
4
4
  const outlineRung_1 = require("./outlineRung");
5
- /**
6
- * The three backgrounds a selectable list row can rest on. Every rung is NEUTRAL and pale, so a
7
- * row's ink stays the canvas ink `withSurfaceRungs` already settled. Seeding a row state from
8
- * `primary[500]` instead — the filled-button rung — is what painted SelectV2's hovered rows a
9
- * solid brand fill under unreadable text.
10
- */
5
+ // NOTE: rungs stay neutral/pale — seeding from primary[500] instead once painted SelectV2's hover solid brand fill.
11
6
  const listRowBackgrounds = (colors) => {
12
- const selected = colors.backgroundColor.tertiary;
7
+ // Dark aliases backgroundColor.tertiary to the panel, leaving the selected row at 1.025:1.
8
+ const selected = (0, outlineRung_1.liftToContrast)(colors.backgroundColor.tertiary, colors.surfaceRaised, outlineRung_1.MIN_PERCEPTIBLE_STEP);
13
9
  return {
14
- active: (0, outlineRung_1.resolveHoverTint)(colors.gray[50], colors.backgroundColor.light),
10
+ active: (0, outlineRung_1.resolveHoverTint)(colors.gray[50], colors.surfaceRaised),
15
11
  selected,
16
12
  selectedActive: (0, outlineRung_1.resolveHoverTint)(selected, selected),
17
13
  };
@@ -0,0 +1,6 @@
1
+ import type { PaletteProps } from "../types";
2
+ export declare const SCRIM_OPACITY = 0.6;
3
+ export declare const BACKDROP_SCRIM_OPACITY = 0.5;
4
+ /** Modal/Drawer backdrop: `black` never remaps between modes, so one alpha works in both. */
5
+ export declare const overlayScrim: (colors: Pick<PaletteProps, "black">) => string;
6
+ export declare const backdropScrim: (colors: Pick<PaletteProps, "black">) => string;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.backdropScrim = exports.overlayScrim = exports.BACKDROP_SCRIM_OPACITY = exports.SCRIM_OPACITY = void 0;
4
+ const color_1 = require("./color");
5
+ exports.SCRIM_OPACITY = 0.6;
6
+ exports.BACKDROP_SCRIM_OPACITY = 0.5;
7
+ /** Modal/Drawer backdrop: `black` never remaps between modes, so one alpha works in both. */
8
+ const overlayScrim = (colors) => {
9
+ const { r, g, b } = (0, color_1.hexToRgb)(colors.black);
10
+ return `rgba(${r}, ${g}, ${b}, ${exports.SCRIM_OPACITY})`;
11
+ };
12
+ exports.overlayScrim = overlayScrim;
13
+ const backdropScrim = (colors) => {
14
+ const { r, g, b } = (0, color_1.hexToRgb)(colors.black);
15
+ return `rgba(${r}, ${g}, ${b}, ${exports.BACKDROP_SCRIM_OPACITY})`;
16
+ };
17
+ exports.backdropScrim = backdropScrim;
@@ -3,10 +3,6 @@ export type ScrollbarStyle = Record<string, unknown>;
3
3
  /** One width everywhere. The 3px, 4px, 5px and 10px bars in use were all accidents. */
4
4
  export declare const SCROLLBAR_WIDTH = "6px";
5
5
  export type ScrollbarVariant = "default" | "overlay" | "hover";
6
- /**
7
- * The single source of scrollbar chrome. `overlay` drops the track for bars that float over a
8
- * card; `hover` keeps the thumb invisible until the region is hovered.
9
- */
10
6
  export declare function scrollbarStyles(palette: PaletteProps, variant?: ScrollbarVariant): ScrollbarStyle;
11
7
  /** The same chrome for the document itself, where `&` selectors do not apply. */
12
8
  export declare function globalScrollbarStyles(palette: PaletteProps): ScrollbarStyle;
@@ -6,10 +6,7 @@ exports.globalScrollbarStyles = globalScrollbarStyles;
6
6
  /** One width everywhere. The 3px, 4px, 5px and 10px bars in use were all accidents. */
7
7
  exports.SCROLLBAR_WIDTH = "6px";
8
8
  const RADIUS = "6px";
9
- /**
10
- * The single source of scrollbar chrome. `overlay` drops the track for bars that float over a
11
- * card; `hover` keeps the thumb invisible until the region is hovered.
12
- */
9
+ // NOTE: single source of scrollbar chrome — `overlay` drops the track, `hover` hides the thumb until hovered.
13
10
  function scrollbarStyles(palette, variant = "default") {
14
11
  const { gray } = palette;
15
12
  const track = variant === "default" ? gray[100] : "transparent";
@@ -1,10 +1,5 @@
1
1
  import type { SemanticColors, SemanticTextTokens, SemanticTone } from "../types";
2
2
  export declare const SEMANTIC_TONES: readonly SemanticTone[];
3
- /**
4
- * `semantic[tone][500]` is a FILL rung — as ink on a light canvas it measures 1.84-3.68:1 across
5
- * every brand. Each tone is stepped here until it clears AA as text, so a call site that wants
6
- * "error-coloured text" cannot pick the unreadable one.
7
- */
8
3
  export declare const buildSemanticText: (semantic: SemanticColors, canvas: string) => SemanticTextTokens;
9
4
  /** Ink ON the fill, not on the canvas — the pair a CSS module needs but cannot compute. */
10
5
  export declare const buildOnSemantic: (semantic: SemanticColors, white: string, black: string) => SemanticTextTokens;
@@ -4,11 +4,7 @@ exports.buildOnSemantic = exports.buildSemanticText = exports.SEMANTIC_TONES = v
4
4
  const outlineRung_1 = require("./outlineRung");
5
5
  const accentText_1 = require("./accentText");
6
6
  exports.SEMANTIC_TONES = ["success", "error", "warning", "info"];
7
- /**
8
- * `semantic[tone][500]` is a FILL rung — as ink on a light canvas it measures 1.84-3.68:1 across
9
- * every brand. Each tone is stepped here until it clears AA as text, so a call site that wants
10
- * "error-coloured text" cannot pick the unreadable one.
11
- */
7
+ // NOTE: semantic[tone][500] is a fill rung (1.84-3.68:1 as text) — stepped here until it clears AA.
12
8
  const buildSemanticText = (semantic, canvas) => exports.SEMANTIC_TONES.reduce((acc, tone) => {
13
9
  acc[tone] = (0, outlineRung_1.liftToContrast)(semantic[tone][500], canvas, accentText_1.AA_NORMAL_TEXT);
14
10
  return acc;
@@ -4,6 +4,14 @@ export declare const AA_NORMAL_TEXT = 4.5;
4
4
  /** Lightest surface an active row reaches: Chakra `whiteAlpha.400` (0.24) on hover. */
5
5
  export declare const ACTIVE_SURFACE_TINT = "#ffffff3d";
6
6
  export declare const sidebarActiveSurface: (background: ColorScale) => string;
7
+ /** Lightest a row ever gets on ANY rail surface — what chrome inside a row must clear. */
8
+ export declare const sidebarRowPeak: (surface: string) => string;
9
+ /** Stronger than the divider — a hover fill must read as an action, not a rule. */
10
+ export declare const HOVER_SURFACE_TINT = "#ffffff20";
11
+ /** Chakra whiteAlpha.100 (0.06) — a divider only needs to read, not shout. */
12
+ export declare const DIVIDER_SURFACE_TINT = "#ffffff0f";
13
+ export declare const sidebarHoverSurface: (background: ColorScale) => string;
14
+ export declare const sidebarDivider: (background: ColorScale) => string;
7
15
  /** The rail never inverts, so both modes take the accent from the LIGHT primary. */
8
16
  export declare const buildSidebarTokens: (background: ColorScale, lightPrimary: ColorScale, semantic: SemanticColors) => SidebarTokens;
9
17
  export declare const withSidebarTokens: (source: BrandPaletteSource) => SidebarTokens;