pixelize-design-library 2.3.31 → 2.4.1-beta.10

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 (637) hide show
  1. package/README.md +77 -10
  2. package/dist/App.d.ts +4 -0
  3. package/dist/App.d.ts.map +1 -1
  4. package/dist/App.js +95 -0
  5. package/dist/Assets/defaultLogo.d.ts.map +1 -1
  6. package/dist/Assets/defaultLogo.js +1 -3
  7. package/dist/Assets/defaultLogo.tsx +26 -0
  8. package/dist/Components/Accordion/Accordion.d.ts.map +1 -1
  9. package/dist/Components/Accordion/Accordion.js +15 -12
  10. package/dist/Components/Accordion/accordionColors.d.ts +6 -0
  11. package/dist/Components/Accordion/accordionColors.d.ts.map +1 -0
  12. package/dist/Components/Accordion/accordionColors.js +34 -0
  13. package/dist/Components/AlertDialog/AlertDialog.d.ts.map +1 -1
  14. package/dist/Components/AlertDialog/AlertDialog.js +4 -1
  15. package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.d.ts.map +1 -1
  16. package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.js +5 -1
  17. package/dist/Components/Apexcharts/ApexLineChart/ApexLineChart.d.ts.map +1 -1
  18. package/dist/Components/Apexcharts/ApexLineChart/ApexLineChart.js +6 -4
  19. package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.d.ts.map +1 -1
  20. package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.js +5 -1
  21. package/dist/Components/Apexcharts/ApexPolarCharts/ApexPolarCharts.d.ts.map +1 -1
  22. package/dist/Components/Apexcharts/ApexPolarCharts/ApexPolarCharts.js +5 -1
  23. package/dist/Components/Button/Button.styles.d.ts.map +1 -1
  24. package/dist/Components/Button/Button.styles.js +100 -47
  25. package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.d.ts.map +1 -1
  26. package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +11 -3
  27. package/dist/Components/Card/PaymentCard/PaymentCard.d.ts.map +1 -1
  28. package/dist/Components/Card/PaymentCard/PaymentCard.js +17 -12
  29. package/dist/Components/Checkbox/Checkbox.d.ts.map +1 -1
  30. package/dist/Components/Checkbox/Checkbox.js +2 -1
  31. package/dist/Components/Checkbox/Checkbox.styles.d.ts.map +1 -1
  32. package/dist/Components/Checkbox/Checkbox.styles.js +13 -2
  33. package/dist/Components/Common/ErrorComponent.d.ts.map +1 -1
  34. package/dist/Components/Common/ErrorComponent.js +7 -3
  35. package/dist/Components/Common/ErrorMessage.d.ts.map +1 -1
  36. package/dist/Components/Common/ErrorMessage.js +7 -1
  37. package/dist/Components/Common/FormLabel.d.ts.map +1 -1
  38. package/dist/Components/Common/FormLabel.js +7 -1
  39. package/dist/Components/Common/Label.d.ts.map +1 -1
  40. package/dist/Components/Common/Label.js +4 -2
  41. package/dist/Components/Common/fieldStyles.d.ts.map +1 -1
  42. package/dist/Components/Common/fieldStyles.js +3 -1
  43. package/dist/Components/CopyButton/CopyButton.d.ts.map +1 -1
  44. package/dist/Components/CopyButton/CopyButton.js +14 -6
  45. package/dist/Components/CustomModulesTable/CustomModulesTable.d.ts.map +1 -1
  46. package/dist/Components/CustomModulesTable/CustomModulesTable.js +9 -6
  47. package/dist/Components/CustomModulesTable/DeleteModuleModal.d.ts.map +1 -1
  48. package/dist/Components/CustomModulesTable/DeleteModuleModal.js +2 -2
  49. package/dist/Components/CustomModulesTable/EditModuleModal.d.ts.map +1 -1
  50. package/dist/Components/CustomModulesTable/EditModuleModal.js +6 -2
  51. package/dist/Components/DatePicker/CalendarPanel.d.ts.map +1 -1
  52. package/dist/Components/DatePicker/CalendarPanel.js +16 -5
  53. package/dist/Components/DatePicker/DatePicker.js +1 -1
  54. package/dist/Components/DatePicker/RangeDatePicker.d.ts.map +1 -1
  55. package/dist/Components/DatePicker/RangeDatePicker.js +1 -1
  56. package/dist/Components/DatePicker/SingleDatePicker.d.ts.map +1 -1
  57. package/dist/Components/DatePicker/SingleDatePicker.js +11 -9
  58. package/dist/Components/DatePicker/TimeOnlyPicker.d.ts.map +1 -1
  59. package/dist/Components/DatePicker/TimeOnlyPicker.js +5 -3
  60. package/dist/Components/DatePicker/TimePicker.d.ts.map +1 -1
  61. package/dist/Components/DatePicker/TimePicker.js +14 -2
  62. package/dist/Components/DatePicker/TimePickerInput.d.ts.map +1 -1
  63. package/dist/Components/DatePicker/TimePickerInput.js +9 -1
  64. package/dist/Components/Drawer/Drawer.d.ts.map +1 -1
  65. package/dist/Components/Drawer/Drawer.js +4 -1
  66. package/dist/Components/Dropdown/DropDown.js +5 -5
  67. package/dist/Components/Editor/Editor.d.ts.map +1 -1
  68. package/dist/Components/Editor/Editor.js +32 -2
  69. package/dist/Components/Editor/joditThemeVars.d.ts +21 -0
  70. package/dist/Components/Editor/joditThemeVars.d.ts.map +1 -0
  71. package/dist/Components/Editor/joditThemeVars.js +79 -0
  72. package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.d.ts.map +1 -1
  73. package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +5 -1
  74. package/dist/Components/EmptyState/EmptyState.js +3 -3
  75. package/dist/Components/FieldSelectModal/FieldSelectModal.d.ts.map +1 -1
  76. package/dist/Components/FieldSelectModal/FieldSelectModal.js +4 -2
  77. package/dist/Components/FilePreview/FilePreview.d.ts.map +1 -1
  78. package/dist/Components/FilePreview/FilePreview.js +10 -2
  79. package/dist/Components/FileUpload/FileUpload.js +4 -4
  80. package/dist/Components/FileUploader/FileUploader.d.ts.map +1 -1
  81. package/dist/Components/FileUploader/FileUploader.js +9 -4
  82. package/dist/Components/FilterSidebar/FilterSidebar.d.ts.map +1 -1
  83. package/dist/Components/FilterSidebar/FilterSidebar.js +166 -142
  84. package/dist/Components/FilterSidebar/filterHoverStyle.d.ts +12 -0
  85. package/dist/Components/FilterSidebar/filterHoverStyle.d.ts.map +1 -0
  86. package/dist/Components/FilterSidebar/filterHoverStyle.js +14 -0
  87. package/dist/Components/Form/FormWrapper.js +2 -2
  88. package/dist/Components/Header/Header.d.ts +17 -0
  89. package/dist/Components/Header/Header.d.ts.map +1 -1
  90. package/dist/Components/Header/Header.js +34 -6
  91. package/dist/Components/Header/HeaderActions.d.ts.map +1 -1
  92. package/dist/Components/Header/HeaderActions.js +3 -2
  93. package/dist/Components/Header/components/desktopMenu.d.ts.map +1 -1
  94. package/dist/Components/Header/components/desktopMenu.js +21 -5
  95. package/dist/Components/Input/Input/Input.d.ts.map +1 -1
  96. package/dist/Components/Input/Input/Input.js +6 -2
  97. package/dist/Components/Input/Switch/InputSwitch.d.ts.map +1 -1
  98. package/dist/Components/Input/Switch/InputSwitch.js +4 -2
  99. package/dist/Components/Input/TextInput.styles.d.ts.map +1 -1
  100. package/dist/Components/Input/TextInput.styles.js +6 -1
  101. package/dist/Components/InputTextArea/InputTextArea.style.d.ts.map +1 -1
  102. package/dist/Components/InputTextArea/InputTextArea.style.js +4 -1
  103. package/dist/Components/KanbanBoard/AccountCard.js +4 -4
  104. package/dist/Components/LazyWrapper/LazyWrapper.js +1 -2
  105. package/dist/Components/LimitReachedModal/LimitReachedModal.d.ts +5 -0
  106. package/dist/Components/LimitReachedModal/LimitReachedModal.d.ts.map +1 -0
  107. package/dist/Components/LimitReachedModal/LimitReachedModal.js +45 -0
  108. package/dist/Components/LimitReachedModal/LimitReachedModalProps.d.ts +16 -0
  109. package/dist/Components/LimitReachedModal/LimitReachedModalProps.d.ts.map +1 -0
  110. package/dist/Components/LimitReachedModal/LimitReachedModalProps.js +2 -0
  111. package/dist/Components/LimitReachedModal/limitReachedCopy.d.ts +7 -0
  112. package/dist/Components/LimitReachedModal/limitReachedCopy.d.ts.map +1 -0
  113. package/dist/Components/LimitReachedModal/limitReachedCopy.js +54 -0
  114. package/dist/Components/Loading/Loading.d.ts +1 -1
  115. package/dist/Components/Loading/Loading.d.ts.map +1 -1
  116. package/dist/Components/Loading/Loading.js +2 -2
  117. package/dist/Components/Loading/LoadingProps.d.ts +2 -0
  118. package/dist/Components/Loading/LoadingProps.d.ts.map +1 -1
  119. package/dist/Components/Modal/Modal.d.ts.map +1 -1
  120. package/dist/Components/MoreItems/MoreItems.d.ts.map +1 -1
  121. package/dist/Components/MoreItems/MoreItems.js +10 -4
  122. package/dist/Components/MultiSelect/MultiSelect.d.ts.map +1 -1
  123. package/dist/Components/MultiSelect/MultiSelect.js +5 -2
  124. package/dist/Components/NavigationBar/NavigationBar.d.ts.map +1 -1
  125. package/dist/Components/NavigationBar/NavigationBar.js +15 -5
  126. package/dist/Components/NoteTextArea/NoteTextArea.d.ts.map +1 -1
  127. package/dist/Components/NoteTextArea/NoteTextArea.js +5 -2
  128. package/dist/Components/Notification/Notification.d.ts.map +1 -1
  129. package/dist/Components/Notification/Notification.js +9 -5
  130. package/dist/Components/NumberInput/NumberInput.styles.d.ts.map +1 -1
  131. package/dist/Components/NumberInput/NumberInput.styles.js +4 -1
  132. package/dist/Components/OrgSwitcher/OrgSwitcher.d.ts.map +1 -1
  133. package/dist/Components/OrgSwitcher/OrgSwitcher.js +34 -8
  134. package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts +9 -1
  135. package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts.map +1 -1
  136. package/dist/Components/OrgSwitcher/OrgSwitcherProps.js +19 -5
  137. package/dist/Components/OrganizationDetails/CreateOrgModal.d.ts.map +1 -1
  138. package/dist/Components/OrganizationDetails/CreateOrgModal.js +1 -1
  139. package/dist/Components/OrganizationDetails/DeleteOrgModal.js +2 -2
  140. package/dist/Components/OrganizationDetails/OrganizationDetails.js +11 -11
  141. package/dist/Components/PdfViewer/PdfViewer.js +1 -2
  142. package/dist/Components/PinInput/PinInput.d.ts.map +1 -1
  143. package/dist/Components/PinInput/PinInput.js +5 -1
  144. package/dist/Components/PinInputs/PinInputs.d.ts.map +1 -1
  145. package/dist/Components/PinInputs/PinInputs.js +3 -1
  146. package/dist/Components/PlanBadge/PlanBadge.d.ts +12 -0
  147. package/dist/Components/PlanBadge/PlanBadge.d.ts.map +1 -0
  148. package/dist/Components/PlanBadge/PlanBadge.js +22 -0
  149. package/dist/Components/PlanBadge/PlanBadgeProps.d.ts +11 -0
  150. package/dist/Components/PlanBadge/PlanBadgeProps.d.ts.map +1 -0
  151. package/dist/Components/PlanBadge/PlanBadgeProps.js +2 -0
  152. package/dist/Components/PlanPill/PlanPill.d.ts +5 -0
  153. package/dist/Components/PlanPill/PlanPill.d.ts.map +1 -0
  154. package/dist/Components/PlanPill/PlanPill.js +42 -0
  155. package/dist/Components/PlanPill/PlanPillProps.d.ts +28 -0
  156. package/dist/Components/PlanPill/PlanPillProps.d.ts.map +1 -0
  157. package/dist/Components/PlanPill/PlanPillProps.js +2 -0
  158. package/dist/Components/PlanPill/planPillGradient.d.ts +22 -0
  159. package/dist/Components/PlanPill/planPillGradient.d.ts.map +1 -0
  160. package/dist/Components/PlanPill/planPillGradient.js +20 -0
  161. package/dist/Components/ProductCard/ProductCard.js +1 -1
  162. package/dist/Components/ProductCard/ProductPrice.d.ts.map +1 -1
  163. package/dist/Components/ProductCard/ProductPrice.js +7 -4
  164. package/dist/Components/ProductCard/ProductReview.d.ts.map +1 -1
  165. package/dist/Components/ProductCard/ProductReview.js +7 -3
  166. package/dist/Components/ProductCard/ProductTags.js +1 -1
  167. package/dist/Components/ProductDetails/ProductDtlPrice.d.ts.map +1 -1
  168. package/dist/Components/ProductDetails/ProductDtlPrice.js +4 -1
  169. package/dist/Components/ProductDetails/ProductImageSlider.js +4 -4
  170. package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.d.ts.map +1 -1
  171. package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +10 -7
  172. package/dist/Components/Reorder/Reorder.js +2 -1
  173. package/dist/Components/RolesPermission/DeleteRoleModal.d.ts.map +1 -1
  174. package/dist/Components/RolesPermission/DeleteRoleModal.js +4 -2
  175. package/dist/Components/RolesPermission/RolesPermission.js +6 -6
  176. package/dist/Components/Search/Search.d.ts.map +1 -1
  177. package/dist/Components/Search/Search.js +4 -2
  178. package/dist/Components/SearchSelect/SearchSelect.d.ts.map +1 -1
  179. package/dist/Components/SearchSelect/SearchSelect.js +4 -4
  180. package/dist/Components/Select/Select.styles.d.ts.map +1 -1
  181. package/dist/Components/Select/Select.styles.js +33 -21
  182. package/dist/Components/SelectSearch/SelectSearch.d.ts.map +1 -1
  183. package/dist/Components/SelectSearch/SelectSearch.js +6 -4
  184. package/dist/Components/SelectV2/SelectV2.d.ts +3 -0
  185. package/dist/Components/SelectV2/SelectV2.d.ts.map +1 -0
  186. package/dist/Components/SelectV2/SelectV2.js +185 -0
  187. package/dist/Components/SelectV2/SelectV2Props.d.ts +67 -0
  188. package/dist/Components/SelectV2/SelectV2Props.d.ts.map +1 -0
  189. package/dist/Components/SelectV2/SelectV2Props.js +2 -0
  190. package/dist/Components/SideBar/SecondaryBar.d.ts.map +1 -1
  191. package/dist/Components/SideBar/SecondaryBar.js +22 -3
  192. package/dist/Components/SideBar/SideBar.d.ts.map +1 -1
  193. package/dist/Components/SideBar/SideBar.js +19 -5
  194. package/dist/Components/SideBar/components/MenuItemBox.d.ts.map +1 -1
  195. package/dist/Components/SideBar/components/MenuItemBox.js +20 -15
  196. package/dist/Components/SideBar/components/MenuPopoverContent.d.ts.map +1 -1
  197. package/dist/Components/SideBar/components/MenuPopoverContent.js +7 -2
  198. package/dist/Components/SideBar/sidebarAccentColors.d.ts +21 -0
  199. package/dist/Components/SideBar/sidebarAccentColors.d.ts.map +1 -0
  200. package/dist/Components/SideBar/sidebarAccentColors.js +36 -0
  201. package/dist/Components/SignInActivityTable/SignInActivityTable.d.ts.map +1 -1
  202. package/dist/Components/SignInActivityTable/SignInActivityTable.js +7 -6
  203. package/dist/Components/StageProgress/StageProgress.d.ts.map +1 -1
  204. package/dist/Components/StageProgress/StageProgress.js +9 -4
  205. package/dist/Components/StageProgress/StageProgressProps.d.ts.map +1 -1
  206. package/dist/Components/StageProgress/StageProgressProps.js +13 -4
  207. package/dist/Components/StageProgress/StepperStage.js +1 -1
  208. package/dist/Components/Switch/Switch.d.ts.map +1 -1
  209. package/dist/Components/Switch/Switch.js +5 -3
  210. package/dist/Components/Table/Table.d.ts.map +1 -1
  211. package/dist/Components/Table/Table.js +9 -9
  212. package/dist/Components/Table/TableProps.d.ts +1 -0
  213. package/dist/Components/Table/TableProps.d.ts.map +1 -1
  214. package/dist/Components/Table/components/HeaderActions.d.ts.map +1 -1
  215. package/dist/Components/Table/components/HeaderActions.js +2 -1
  216. package/dist/Components/Table/components/TableActions.js +1 -1
  217. package/dist/Components/Table/components/TableBody.d.ts.map +1 -1
  218. package/dist/Components/Table/components/TableBody.js +21 -15
  219. package/dist/Components/Table/components/TableHeader.d.ts.map +1 -1
  220. package/dist/Components/Table/components/TableHeader.js +7 -4
  221. package/dist/Components/Table/components/tableRowHoverStyle.d.ts +14 -0
  222. package/dist/Components/Table/components/tableRowHoverStyle.d.ts.map +1 -0
  223. package/dist/Components/Table/components/tableRowHoverStyle.js +26 -0
  224. package/dist/Components/Table/filters/CompactSelect.d.ts.map +1 -1
  225. package/dist/Components/Table/filters/CompactSelect.js +4 -1
  226. package/dist/Components/Table/filters/LeftFilterPane.d.ts.map +1 -1
  227. package/dist/Components/Table/filters/LeftFilterPane.js +5 -4
  228. package/dist/Components/Table/settings/ManageColumns.js +2 -2
  229. package/dist/Components/Tag/Tag.styles.d.ts.map +1 -1
  230. package/dist/Components/Tag/Tag.styles.js +21 -8
  231. package/dist/Components/Timeline/Timeline.d.ts.map +1 -1
  232. package/dist/Components/Timeline/Timeline.js +18 -17
  233. package/dist/Components/Toaster/Toaster.d.ts.map +1 -1
  234. package/dist/Components/Toaster/Toaster.js +8 -5
  235. package/dist/Components/Toggle/TableToggle.js +2 -2
  236. package/dist/Components/ToolTip/ToolTip.d.ts.map +1 -1
  237. package/dist/Components/ToolTip/ToolTip.js +14 -2
  238. package/dist/Components/Trail/EditableCell.js +1 -1
  239. package/dist/Components/UpgradeButton/UpgradeButton.d.ts.map +1 -1
  240. package/dist/Components/UpgradeButton/UpgradeButton.js +31 -8
  241. package/dist/Components/UserDetails/AddUserModal.d.ts.map +1 -1
  242. package/dist/Components/UserDetails/AddUserModal.js +1 -1
  243. package/dist/Components/UserDetails/ChangeRoleModal.js +2 -2
  244. package/dist/Components/UserDetails/DeactivateConfirmModal.d.ts.map +1 -1
  245. package/dist/Components/UserDetails/DeactivateConfirmModal.js +5 -2
  246. package/dist/Components/UserDetails/UserDetails.d.ts.map +1 -1
  247. package/dist/Components/UserDetails/UserDetails.js +20 -10
  248. package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.d.ts.map +1 -1
  249. package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.js +4 -1
  250. package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts +2 -2
  251. package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts.map +1 -1
  252. package/dist/Components/WorkspaceWindow/WorkspaceWindow.js +29 -4
  253. package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts +18 -0
  254. package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts.map +1 -1
  255. package/dist/Layout.d.ts +3 -0
  256. package/dist/Layout.js +286 -0
  257. package/dist/Pages/TInput.d.ts +3 -0
  258. package/dist/Pages/TInput.d.ts.map +1 -0
  259. package/dist/Pages/TInput.js +20 -0
  260. package/dist/Pages/accordion.d.ts +3 -0
  261. package/dist/Pages/accordion.d.ts.map +1 -0
  262. package/dist/Pages/accordion.js +21 -0
  263. package/dist/Pages/alertdialog.d.ts +3 -0
  264. package/dist/Pages/alertdialog.d.ts.map +1 -0
  265. package/dist/Pages/alertdialog.js +53 -0
  266. package/dist/Pages/button.d.ts +3 -0
  267. package/dist/Pages/button.d.ts.map +1 -0
  268. package/dist/Pages/button.js +32 -0
  269. package/dist/Pages/card.d.ts +3 -0
  270. package/dist/Pages/card.d.ts.map +1 -0
  271. package/dist/Pages/card.js +102 -0
  272. package/dist/Pages/chart.d.ts +4 -0
  273. package/dist/Pages/chart.d.ts.map +1 -0
  274. package/dist/Pages/chart.js +25 -0
  275. package/dist/Pages/checkbox.d.ts +3 -0
  276. package/dist/Pages/checkbox.d.ts.map +1 -0
  277. package/dist/Pages/checkbox.js +11 -0
  278. package/dist/Pages/contactForm.d.ts +3 -0
  279. package/dist/Pages/contactForm.d.ts.map +1 -0
  280. package/dist/Pages/contactForm.js +15 -0
  281. package/dist/Pages/customModulesTable.d.ts +4 -0
  282. package/dist/Pages/customModulesTable.d.ts.map +1 -0
  283. package/dist/Pages/customModulesTable.js +25 -0
  284. package/dist/Pages/datePick.d.ts +3 -0
  285. package/dist/Pages/datePick.d.ts.map +1 -0
  286. package/dist/Pages/datePick.js +49 -0
  287. package/dist/Pages/drawer.d.ts +3 -0
  288. package/dist/Pages/drawer.d.ts.map +1 -0
  289. package/dist/Pages/drawer.js +53 -0
  290. package/dist/Pages/dropdown.d.ts +3 -0
  291. package/dist/Pages/dropdown.d.ts.map +1 -0
  292. package/dist/Pages/dropdown.js +21 -0
  293. package/dist/Pages/editor.d.ts +3 -0
  294. package/dist/Pages/editor.d.ts.map +1 -0
  295. package/dist/Pages/editor.js +13 -0
  296. package/dist/Pages/feedback.d.ts +2 -0
  297. package/dist/Pages/feedback.d.ts.map +1 -0
  298. package/dist/Pages/feedback.js +12 -0
  299. package/dist/Pages/fileUpload.d.ts +2 -0
  300. package/dist/Pages/fileUpload.d.ts.map +1 -0
  301. package/dist/Pages/fileUpload.js +36 -0
  302. package/dist/Pages/input.d.ts +3 -0
  303. package/dist/Pages/input.d.ts.map +1 -0
  304. package/dist/Pages/input.js +48 -0
  305. package/dist/Pages/kanbanboard.d.ts +3 -0
  306. package/dist/Pages/kanbanboard.d.ts.map +1 -0
  307. package/dist/Pages/kanbanboard.js +182 -0
  308. package/dist/Pages/modal.d.ts +3 -0
  309. package/dist/Pages/modal.d.ts.map +1 -0
  310. package/dist/Pages/modal.js +61 -0
  311. package/dist/Pages/multiSelect.d.ts +3 -0
  312. package/dist/Pages/multiSelect.d.ts.map +1 -0
  313. package/dist/Pages/multiSelect.js +22 -0
  314. package/dist/Pages/noteArea.d.ts +3 -0
  315. package/dist/Pages/noteArea.d.ts.map +1 -0
  316. package/dist/Pages/noteArea.js +26 -0
  317. package/dist/Pages/notification.d.ts +3 -0
  318. package/dist/Pages/notification.d.ts.map +1 -0
  319. package/dist/Pages/notification.js +37 -0
  320. package/dist/Pages/numberInput.d.ts +3 -0
  321. package/dist/Pages/numberInput.d.ts.map +1 -0
  322. package/dist/Pages/numberInput.js +16 -0
  323. package/dist/Pages/orgSwitcher.d.ts +4 -0
  324. package/dist/Pages/orgSwitcher.d.ts.map +1 -0
  325. package/dist/Pages/orgSwitcher.js +36 -0
  326. package/dist/Pages/organizationDetails.d.ts +4 -0
  327. package/dist/Pages/organizationDetails.d.ts.map +1 -0
  328. package/dist/Pages/organizationDetails.js +80 -0
  329. package/dist/Pages/photoViewer.d.ts +3 -0
  330. package/dist/Pages/photoViewer.d.ts.map +1 -0
  331. package/dist/Pages/photoViewer.js +12 -0
  332. package/dist/Pages/pinInputs.d.ts +3 -0
  333. package/dist/Pages/pinInputs.d.ts.map +1 -0
  334. package/dist/Pages/pinInputs.js +11 -0
  335. package/dist/Pages/productCaard.d.ts +3 -0
  336. package/dist/Pages/productCaard.d.ts.map +1 -0
  337. package/dist/Pages/productCaard.js +311 -0
  338. package/dist/Pages/productDetailCard.d.ts +3 -0
  339. package/dist/Pages/productDetailCard.d.ts.map +1 -0
  340. package/dist/Pages/productDetailCard.js +78 -0
  341. package/dist/Pages/productFilter.d.ts +3 -0
  342. package/dist/Pages/productFilter.d.ts.map +1 -0
  343. package/dist/Pages/productFilter.js +148 -0
  344. package/dist/Pages/progressbar.d.ts +3 -0
  345. package/dist/Pages/progressbar.d.ts.map +1 -0
  346. package/dist/Pages/progressbar.js +11 -0
  347. package/dist/Pages/radioButton.d.ts +3 -0
  348. package/dist/Pages/radioButton.d.ts.map +1 -0
  349. package/dist/Pages/radioButton.js +18 -0
  350. package/dist/Pages/rolesPermission.d.ts +4 -0
  351. package/dist/Pages/rolesPermission.d.ts.map +1 -0
  352. package/dist/Pages/rolesPermission.js +144 -0
  353. package/dist/Pages/search.d.ts +3 -0
  354. package/dist/Pages/search.d.ts.map +1 -0
  355. package/dist/Pages/search.js +21 -0
  356. package/dist/Pages/searchSelect.d.ts +3 -0
  357. package/dist/Pages/searchSelect.d.ts.map +1 -0
  358. package/dist/Pages/searchSelect.js +97 -0
  359. package/dist/Pages/select.d.ts +3 -0
  360. package/dist/Pages/select.d.ts.map +1 -0
  361. package/dist/Pages/select.js +20 -0
  362. package/dist/Pages/selectSearch.d.ts +3 -0
  363. package/dist/Pages/selectSearch.d.ts.map +1 -0
  364. package/dist/Pages/selectSearch.js +58 -0
  365. package/dist/Pages/signInActivityTable.d.ts +4 -0
  366. package/dist/Pages/signInActivityTable.d.ts.map +1 -0
  367. package/dist/Pages/signInActivityTable.js +17 -0
  368. package/dist/Pages/skeleton.d.ts +3 -0
  369. package/dist/Pages/skeleton.d.ts.map +1 -0
  370. package/dist/Pages/skeleton.js +12 -0
  371. package/dist/Pages/stageProgress.d.ts +4 -0
  372. package/dist/Pages/stageProgress.d.ts.map +1 -0
  373. package/dist/Pages/stageProgress.js +31 -0
  374. package/dist/Pages/switch.d.ts +3 -0
  375. package/dist/Pages/switch.d.ts.map +1 -0
  376. package/dist/Pages/switch.js +17 -0
  377. package/dist/Pages/table.d.ts +3 -0
  378. package/dist/Pages/table.d.ts.map +1 -0
  379. package/dist/Pages/table.js +182 -0
  380. package/dist/Pages/tag.d.ts +3 -0
  381. package/dist/Pages/tag.d.ts.map +1 -0
  382. package/dist/Pages/tag.js +27 -0
  383. package/dist/Pages/textArea.d.ts +3 -0
  384. package/dist/Pages/textArea.d.ts.map +1 -0
  385. package/dist/Pages/textArea.js +14 -0
  386. package/dist/Pages/tier1.d.ts +4 -0
  387. package/dist/Pages/tier1.d.ts.map +1 -0
  388. package/dist/Pages/tier1.js +86 -0
  389. package/dist/Pages/timeline.d.ts +3 -0
  390. package/dist/Pages/timeline.d.ts.map +1 -0
  391. package/dist/Pages/timeline.js +73 -0
  392. package/dist/Pages/tooltip.d.ts +3 -0
  393. package/dist/Pages/tooltip.d.ts.map +1 -0
  394. package/dist/Pages/tooltip.js +11 -0
  395. package/dist/Pages/toster.d.ts +3 -0
  396. package/dist/Pages/toster.d.ts.map +1 -0
  397. package/dist/Pages/toster.js +53 -0
  398. package/dist/Pages/upgradeButton.d.ts +4 -0
  399. package/dist/Pages/upgradeButton.d.ts.map +1 -0
  400. package/dist/Pages/upgradeButton.js +17 -0
  401. package/dist/Pages/userDetails.d.ts +4 -0
  402. package/dist/Pages/userDetails.d.ts.map +1 -0
  403. package/dist/Pages/userDetails.js +79 -0
  404. package/dist/Pages/verifyEmail.d.ts +3 -0
  405. package/dist/Pages/verifyEmail.d.ts.map +1 -0
  406. package/dist/Pages/verifyEmail.js +17 -0
  407. package/dist/Theme/chakra/Avatar.styles.d.ts +33 -0
  408. package/dist/Theme/chakra/Avatar.styles.d.ts.map +1 -0
  409. package/dist/Theme/chakra/Avatar.styles.js +28 -0
  410. package/dist/Theme/chakra/Drawer.styles.d.ts +32 -0
  411. package/dist/Theme/chakra/Drawer.styles.d.ts.map +1 -0
  412. package/dist/Theme/chakra/Drawer.styles.js +26 -0
  413. package/dist/Theme/chakra/Menu.styles.d.ts +70 -0
  414. package/dist/Theme/chakra/Menu.styles.d.ts.map +1 -0
  415. package/dist/Theme/chakra/Menu.styles.js +50 -0
  416. package/dist/Theme/chakra/Modal.styles.d.ts +32 -0
  417. package/dist/Theme/chakra/Modal.styles.d.ts.map +1 -0
  418. package/dist/Theme/chakra/Modal.styles.js +26 -0
  419. package/dist/Theme/chakra/Popover.styles.d.ts +37 -0
  420. package/dist/Theme/chakra/Popover.styles.d.ts.map +1 -0
  421. package/dist/Theme/chakra/Popover.styles.js +30 -0
  422. package/dist/Theme/chakra/Slider.styles.d.ts +31 -0
  423. package/dist/Theme/chakra/Slider.styles.d.ts.map +1 -0
  424. package/dist/Theme/chakra/Slider.styles.js +25 -0
  425. package/dist/Theme/chakra/Switch.styles.d.ts +31 -0
  426. package/dist/Theme/chakra/Switch.styles.d.ts.map +1 -0
  427. package/dist/Theme/chakra/Switch.styles.js +24 -0
  428. package/dist/Theme/chakra/Tabs.styles.d.ts +43 -0
  429. package/dist/Theme/chakra/Tabs.styles.d.ts.map +1 -0
  430. package/dist/Theme/chakra/Tabs.styles.js +41 -0
  431. package/dist/Theme/{common.d.ts → chakra/common.web.d.ts} +14 -10
  432. package/dist/Theme/chakra/common.web.d.ts.map +1 -0
  433. package/dist/Theme/chakra/common.web.js +21 -0
  434. package/dist/Theme/chakra/componentStyles.d.ts +242 -0
  435. package/dist/Theme/chakra/componentStyles.d.ts.map +1 -0
  436. package/dist/Theme/chakra/componentStyles.js +224 -0
  437. package/dist/Theme/chakra/createBrandTheme.d.ts +18 -0
  438. package/dist/Theme/chakra/createBrandTheme.d.ts.map +1 -0
  439. package/dist/Theme/chakra/createBrandTheme.js +125 -0
  440. package/dist/Theme/{fonts.d.ts → chakra/fonts.web.d.ts} +6 -1
  441. package/dist/Theme/chakra/fonts.web.d.ts.map +1 -0
  442. package/dist/Theme/chakra/fonts.web.js +15 -0
  443. package/dist/Theme/index.d.ts +29 -8
  444. package/dist/Theme/index.d.ts.map +1 -1
  445. package/dist/Theme/index.js +54 -22
  446. package/dist/Theme/provider/PixelizeThemeProvider.d.ts +46 -0
  447. package/dist/Theme/provider/PixelizeThemeProvider.d.ts.map +1 -0
  448. package/dist/Theme/provider/PixelizeThemeProvider.js +179 -0
  449. package/dist/Theme/provider/ThemeSwitcher.d.ts +8 -0
  450. package/dist/Theme/provider/ThemeSwitcher.d.ts.map +1 -0
  451. package/dist/Theme/provider/ThemeSwitcher.js +111 -0
  452. package/dist/Theme/provider/colorModeStorage.d.ts +10 -0
  453. package/dist/Theme/provider/colorModeStorage.d.ts.map +1 -0
  454. package/dist/Theme/provider/colorModeStorage.js +106 -0
  455. package/dist/Theme/provider/index.d.ts +6 -0
  456. package/dist/Theme/provider/index.d.ts.map +1 -0
  457. package/dist/Theme/provider/index.js +9 -0
  458. package/dist/Theme/provider/useThemeMode.d.ts +3 -0
  459. package/dist/Theme/provider/useThemeMode.d.ts.map +1 -0
  460. package/dist/Theme/provider/useThemeMode.js +13 -0
  461. package/dist/Theme/themeProps.d.ts +10 -373
  462. package/dist/Theme/themeProps.d.ts.map +1 -1
  463. package/dist/Theme/tokens/brands/emerald/palette.dark.d.ts +7 -0
  464. package/dist/Theme/tokens/brands/emerald/palette.dark.d.ts.map +1 -0
  465. package/dist/Theme/tokens/brands/emerald/palette.dark.js +13 -0
  466. package/dist/Theme/{Radiant/palette.d.ts → tokens/brands/emerald/palette.light.d.ts} +1 -1
  467. package/dist/Theme/{Radiant/palette.d.ts.map → tokens/brands/emerald/palette.light.d.ts.map} +1 -1
  468. package/dist/Theme/{Emerald/palette.js → tokens/brands/emerald/palette.light.js} +17 -7
  469. package/dist/Theme/tokens/brands/index.d.ts +28 -0
  470. package/dist/Theme/tokens/brands/index.d.ts.map +1 -0
  471. package/dist/Theme/tokens/brands/index.js +95 -0
  472. package/dist/Theme/tokens/brands/lavender/palette.dark.d.ts +7 -0
  473. package/dist/Theme/tokens/brands/lavender/palette.dark.d.ts.map +1 -0
  474. package/dist/Theme/tokens/brands/lavender/palette.dark.js +13 -0
  475. package/dist/Theme/{Emerald/palette.d.ts → tokens/brands/lavender/palette.light.d.ts} +96 -96
  476. package/dist/Theme/tokens/brands/lavender/palette.light.d.ts.map +1 -0
  477. package/dist/Theme/{Default/palette.js → tokens/brands/lavender/palette.light.js} +13 -3
  478. package/dist/Theme/tokens/brands/meadow/palette.dark.d.ts +7 -0
  479. package/dist/Theme/tokens/brands/meadow/palette.dark.d.ts.map +1 -0
  480. package/dist/Theme/tokens/brands/meadow/palette.dark.js +13 -0
  481. package/dist/Theme/{Meadow/palette.d.ts → tokens/brands/meadow/palette.light.d.ts} +1 -1
  482. package/dist/Theme/{Meadow/palette.d.ts.map → tokens/brands/meadow/palette.light.d.ts.map} +1 -1
  483. package/dist/Theme/{Meadow/palette.js → tokens/brands/meadow/palette.light.js} +17 -7
  484. package/dist/Theme/tokens/brands/radiant/palette.dark.d.ts +7 -0
  485. package/dist/Theme/tokens/brands/radiant/palette.dark.d.ts.map +1 -0
  486. package/dist/Theme/tokens/brands/radiant/palette.dark.js +13 -0
  487. package/dist/Theme/{Default/palette.d.ts → tokens/brands/radiant/palette.light.d.ts} +96 -96
  488. package/dist/Theme/tokens/brands/radiant/palette.light.d.ts.map +1 -0
  489. package/dist/Theme/{Radiant/palette.js → tokens/brands/radiant/palette.light.js} +17 -7
  490. package/dist/Theme/tokens/brands/rosewood/palette.dark.d.ts +7 -0
  491. package/dist/Theme/tokens/brands/rosewood/palette.dark.d.ts.map +1 -0
  492. package/dist/Theme/tokens/brands/rosewood/palette.dark.js +13 -0
  493. package/dist/Theme/tokens/brands/rosewood/palette.light.d.ts +375 -0
  494. package/dist/Theme/tokens/brands/rosewood/palette.light.d.ts.map +1 -0
  495. package/dist/Theme/{Rosewood/palette.js → tokens/brands/rosewood/palette.light.js} +21 -7
  496. package/dist/Theme/tokens/brands/skyline/palette.dark.d.ts +7 -0
  497. package/dist/Theme/tokens/brands/skyline/palette.dark.d.ts.map +1 -0
  498. package/dist/Theme/tokens/brands/skyline/palette.dark.js +13 -0
  499. package/dist/Theme/tokens/brands/skyline/palette.light.d.ts +375 -0
  500. package/dist/Theme/tokens/brands/skyline/palette.light.d.ts.map +1 -0
  501. package/dist/Theme/{Skyline/palette.js → tokens/brands/skyline/palette.light.js} +17 -7
  502. package/dist/Theme/tokens/brands/slate/palette.dark.d.ts +7 -0
  503. package/dist/Theme/tokens/brands/slate/palette.dark.d.ts.map +1 -0
  504. package/dist/Theme/tokens/brands/slate/palette.dark.js +13 -0
  505. package/dist/Theme/tokens/brands/slate/palette.light.d.ts +375 -0
  506. package/dist/Theme/{Emerald/palette.d.ts.map → tokens/brands/slate/palette.light.d.ts.map} +1 -1
  507. package/dist/Theme/{Slate/palette.js → tokens/brands/slate/palette.light.js} +21 -7
  508. package/dist/Theme/tokens/brands/storefront/palette.dark.d.ts +7 -0
  509. package/dist/Theme/tokens/brands/storefront/palette.dark.d.ts.map +1 -0
  510. package/dist/Theme/tokens/brands/storefront/palette.dark.js +13 -0
  511. package/dist/Theme/tokens/brands/storefront/palette.light.d.ts +375 -0
  512. package/dist/Theme/tokens/brands/storefront/palette.light.d.ts.map +1 -0
  513. package/dist/Theme/tokens/brands/storefront/palette.light.js +127 -0
  514. package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts +204 -0
  515. package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts.map +1 -0
  516. package/dist/Theme/tokens/brands/zinc/palette.dark.js +206 -0
  517. package/dist/Theme/tokens/brands/zinc/palette.light.d.ts +375 -0
  518. package/dist/Theme/{Default/palette.d.ts.map → tokens/brands/zinc/palette.light.d.ts.map} +1 -1
  519. package/dist/Theme/tokens/brands/zinc/palette.light.js +383 -0
  520. package/dist/Theme/tokens/builders/accentText.d.ts +56 -0
  521. package/dist/Theme/tokens/builders/accentText.d.ts.map +1 -0
  522. package/dist/Theme/tokens/builders/accentText.js +92 -0
  523. package/dist/Theme/tokens/builders/buildBrandTokens.d.ts.map +1 -0
  524. package/dist/Theme/tokens/builders/buildDarkPalette.d.ts +23 -0
  525. package/dist/Theme/tokens/builders/buildDarkPalette.d.ts.map +1 -0
  526. package/dist/Theme/tokens/builders/buildDarkPalette.js +282 -0
  527. package/dist/Theme/{chartColorsFromTheme.d.ts → tokens/builders/chartColorsFromTheme.d.ts} +2 -4
  528. package/dist/Theme/tokens/builders/chartColorsFromTheme.d.ts.map +1 -0
  529. package/dist/Theme/{chartColorsFromTheme.js → tokens/builders/chartColorsFromTheme.js} +0 -8
  530. package/dist/Theme/tokens/builders/color.d.ts +50 -0
  531. package/dist/Theme/tokens/builders/color.d.ts.map +1 -0
  532. package/dist/Theme/tokens/builders/color.js +156 -0
  533. package/dist/Theme/tokens/builders/index.d.ts +6 -0
  534. package/dist/Theme/tokens/builders/index.d.ts.map +1 -0
  535. package/dist/Theme/tokens/builders/index.js +21 -0
  536. package/dist/Theme/tokens/builders/outlineRung.d.ts +35 -0
  537. package/dist/Theme/tokens/builders/outlineRung.d.ts.map +1 -0
  538. package/dist/Theme/tokens/builders/outlineRung.js +69 -0
  539. package/dist/Theme/tokens/builders/statusTone.d.ts +35 -0
  540. package/dist/Theme/tokens/builders/statusTone.d.ts.map +1 -0
  541. package/dist/Theme/tokens/builders/statusTone.js +63 -0
  542. package/dist/Theme/tokens/index.d.ts +15 -0
  543. package/dist/Theme/tokens/index.d.ts.map +1 -0
  544. package/dist/Theme/tokens/index.js +30 -0
  545. package/dist/Theme/tokens/primitives/breakpoints.d.ts +9 -0
  546. package/dist/Theme/tokens/primitives/breakpoints.d.ts.map +1 -0
  547. package/dist/Theme/tokens/primitives/breakpoints.js +10 -0
  548. package/dist/Theme/tokens/primitives/index.d.ts +10 -0
  549. package/dist/Theme/tokens/primitives/index.d.ts.map +1 -0
  550. package/dist/Theme/tokens/primitives/index.js +27 -0
  551. package/dist/Theme/tokens/primitives/letterSpacings.d.ts +10 -0
  552. package/dist/Theme/tokens/primitives/letterSpacings.d.ts.map +1 -0
  553. package/dist/Theme/tokens/primitives/letterSpacings.js +11 -0
  554. package/dist/Theme/tokens/primitives/lineHeights.d.ts +19 -0
  555. package/dist/Theme/tokens/primitives/lineHeights.d.ts.map +1 -0
  556. package/dist/Theme/tokens/primitives/lineHeights.js +20 -0
  557. package/dist/Theme/tokens/primitives/radii.d.ts +13 -0
  558. package/dist/Theme/tokens/primitives/radii.d.ts.map +1 -0
  559. package/dist/Theme/tokens/primitives/radii.js +14 -0
  560. package/dist/Theme/tokens/primitives/shadows.d.ts +16 -0
  561. package/dist/Theme/tokens/primitives/shadows.d.ts.map +1 -0
  562. package/dist/Theme/tokens/primitives/shadows.js +17 -0
  563. package/dist/Theme/tokens/primitives/sizes.d.ts +63 -0
  564. package/dist/Theme/tokens/primitives/sizes.d.ts.map +1 -0
  565. package/dist/Theme/tokens/primitives/sizes.js +39 -0
  566. package/dist/Theme/tokens/primitives/space.d.ts.map +1 -0
  567. package/dist/Theme/tokens/primitives/typography.d.ts +73 -0
  568. package/dist/Theme/tokens/primitives/typography.d.ts.map +1 -0
  569. package/dist/Theme/tokens/primitives/typography.js +43 -0
  570. package/dist/Theme/tokens/primitives/zIndices.d.ts +17 -0
  571. package/dist/Theme/tokens/primitives/zIndices.d.ts.map +1 -0
  572. package/dist/Theme/tokens/primitives/zIndices.js +18 -0
  573. package/dist/Theme/tokens/types.d.ts +116 -0
  574. package/dist/Theme/tokens/types.d.ts.map +1 -0
  575. package/dist/Theme/tokens/types.js +8 -0
  576. package/dist/Utils/planBadge.d.ts +39 -0
  577. package/dist/Utils/planBadge.d.ts.map +1 -0
  578. package/dist/Utils/planBadge.js +108 -0
  579. package/dist/Utils/planExpiry.d.ts +35 -0
  580. package/dist/Utils/planExpiry.d.ts.map +1 -0
  581. package/dist/Utils/planExpiry.js +115 -0
  582. package/dist/Utils/table.d.ts +9 -2
  583. package/dist/Utils/table.d.ts.map +1 -1
  584. package/dist/Utils/table.js +23 -7
  585. package/dist/bootstrap.d.ts +2 -0
  586. package/dist/bootstrap.js +16 -0
  587. package/dist/index.d.ts +26 -1
  588. package/dist/index.d.ts.map +1 -1
  589. package/dist/index.js +81 -2
  590. package/package.json +1 -1
  591. package/dist/Theme/Dark/theme.d.ts +0 -3
  592. package/dist/Theme/Dark/theme.d.ts.map +0 -1
  593. package/dist/Theme/Dark/theme.js +0 -277
  594. package/dist/Theme/Default/theme.d.ts +0 -3
  595. package/dist/Theme/Default/theme.d.ts.map +0 -1
  596. package/dist/Theme/Default/theme.js +0 -19
  597. package/dist/Theme/Emerald/theme.d.ts +0 -3
  598. package/dist/Theme/Emerald/theme.d.ts.map +0 -1
  599. package/dist/Theme/Emerald/theme.js +0 -19
  600. package/dist/Theme/Meadow/theme.d.ts +0 -3
  601. package/dist/Theme/Meadow/theme.d.ts.map +0 -1
  602. package/dist/Theme/Meadow/theme.js +0 -19
  603. package/dist/Theme/Radiant/theme.d.ts +0 -3
  604. package/dist/Theme/Radiant/theme.d.ts.map +0 -1
  605. package/dist/Theme/Radiant/theme.js +0 -19
  606. package/dist/Theme/Rosewood/palette.d.ts +0 -375
  607. package/dist/Theme/Rosewood/palette.d.ts.map +0 -1
  608. package/dist/Theme/Rosewood/theme.d.ts +0 -3
  609. package/dist/Theme/Rosewood/theme.d.ts.map +0 -1
  610. package/dist/Theme/Rosewood/theme.js +0 -19
  611. package/dist/Theme/Skyline/palette.d.ts +0 -375
  612. package/dist/Theme/Skyline/palette.d.ts.map +0 -1
  613. package/dist/Theme/Skyline/theme.d.ts +0 -3
  614. package/dist/Theme/Skyline/theme.d.ts.map +0 -1
  615. package/dist/Theme/Skyline/theme.js +0 -19
  616. package/dist/Theme/Slate/palette.d.ts +0 -375
  617. package/dist/Theme/Slate/palette.d.ts.map +0 -1
  618. package/dist/Theme/Slate/theme.d.ts +0 -3
  619. package/dist/Theme/Slate/theme.d.ts.map +0 -1
  620. package/dist/Theme/Slate/theme.js +0 -19
  621. package/dist/Theme/buildBrandTokens.d.ts.map +0 -1
  622. package/dist/Theme/chartColorsFromTheme.d.ts.map +0 -1
  623. package/dist/Theme/common.d.ts.map +0 -1
  624. package/dist/Theme/common.js +0 -112
  625. package/dist/Theme/componentStyles.d.ts +0 -10
  626. package/dist/Theme/componentStyles.d.ts.map +0 -1
  627. package/dist/Theme/componentStyles.js +0 -19
  628. package/dist/Theme/fonts.d.ts.map +0 -1
  629. package/dist/Theme/fonts.js +0 -41
  630. package/dist/Theme/space.d.ts.map +0 -1
  631. package/dist/Theme/theme.d.ts +0 -3
  632. package/dist/Theme/theme.d.ts.map +0 -1
  633. package/dist/Theme/theme.js +0 -12
  634. /package/dist/Theme/{buildBrandTokens.d.ts → tokens/builders/buildBrandTokens.d.ts} +0 -0
  635. /package/dist/Theme/{buildBrandTokens.js → tokens/builders/buildBrandTokens.js} +0 -0
  636. /package/dist/Theme/{space.d.ts → tokens/primitives/space.d.ts} +0 -0
  637. /package/dist/Theme/{space.js → tokens/primitives/space.js} +0 -0
@@ -118,14 +118,17 @@ function NoteTextArea({ width = "100%", handleSubmit, handleCancel, value, title
118
118
  };
119
119
  const noteWordCount = countWords(noteValue);
120
120
  const isOverLimit = noteWordCount > maxNoteWordCount;
121
- return ((0, jsx_runtime_1.jsxs)(react_2.Box, { w: width, borderRadius: fieldStyles_1.FIELD_RADIUS, overflow: "hidden", border: "1px solid", borderColor: isActive ? theme.colors.primary[500] : (_a = theme.colors.boxborder) === null || _a === void 0 ? void 0 : _a[500], bg: isActive ? theme.colors.gray[50] : theme.colors.white, transition: "border-color 0.2s", children: [!isActive && ((0, jsx_runtime_1.jsxs)(react_2.Flex, { px: 3, gap: 2, align: "center", cursor: "text", onClick: handleTextArea, bg: theme.colors.white, borderRadius: fieldStyles_1.FIELD_RADIUS, minH: "2.5rem", transition: "background 0.15s", _hover: { bg: theme.colors.gray[50] }, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.SquarePen, { size: 16, color: theme.colors.gray[500] }), (0, jsx_runtime_1.jsx)(react_2.Text, { color: theme.colors.gray[500], fontSize: "sm", children: customPlaceholder })] })), isActive && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(react_2.Box, { bg: theme.colors.white, children: [titleShow && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_2.Input, { ref: inputRef, value: titleValue, onChange: (e) => {
121
+ return ((0, jsx_runtime_1.jsxs)(react_2.Box, { w: width, borderRadius: fieldStyles_1.FIELD_RADIUS, overflow: "hidden", border: "1px solid",
122
+ // [800], not [500]: WCAG 1.4.11 needs >=3.0 for a control boundary against any named
123
+ // surface up to `muted` (lightest); [500] fails there, [800] clears all with margin.
124
+ borderColor: isActive ? theme.colors.primary[500] : (_a = theme.colors.boxborder) === null || _a === void 0 ? void 0 : _a[800], bg: isActive ? theme.colors.gray[50] : theme.colors.background[50], transition: "border-color 0.2s", children: [!isActive && ((0, jsx_runtime_1.jsxs)(react_2.Flex, { px: 3, gap: 2, align: "center", cursor: "text", onClick: handleTextArea, bg: theme.colors.background[50], borderRadius: fieldStyles_1.FIELD_RADIUS, minH: "2.5rem", transition: "background 0.15s", _hover: { bg: theme.colors.gray[50] }, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.SquarePen, { size: 16, color: theme.colors.gray[500] }), (0, jsx_runtime_1.jsx)(react_2.Text, { color: theme.colors.gray[500], fontSize: "sm", children: customPlaceholder })] })), isActive && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(react_2.Box, { bg: theme.colors.background[50], children: [titleShow && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_2.Input, { ref: inputRef, value: titleValue, onChange: (e) => {
122
125
  if (e.target.value.length === 0)
123
126
  setTitleShow(false);
124
127
  setTitleValue(e.target.value);
125
128
  }, placeholder: "Add a title...", variant: "unstyled", px: 3, pt: 2.5, pb: 1.5, fontWeight: 600, fontSize: "0.875rem", color: theme.colors.text[700], _placeholder: {
126
129
  fontStyle: "italic",
127
130
  color: theme.colors.gray[300],
128
- } }), (0, jsx_runtime_1.jsx)(react_2.Divider, { borderColor: theme.colors.gray[200] })] })), (0, jsx_runtime_1.jsx)(react_2.Box, { bg: theme.colors.white, minH: "76px", px: 3, pt: 2.5, position: "relative", children: (0, jsx_runtime_1.jsx)(react_2.Textarea, { ref: noteAreaRef, value: noteValue, onChange: handleNoteChange, placeholder: customPlaceholder, variant: "unstyled", resize: "none", minH: "76px", fontSize: "0.75rem", color: theme.colors.text[700], _placeholder: { fontStyle: "italic", color: theme.colors.gray[300] }, style: { overflow: "hidden" }, p: 0 }) })] }), (0, jsx_runtime_1.jsx)(react_2.Divider, { borderColor: theme.colors.gray[200] }), (0, jsx_runtime_1.jsxs)(react_2.Box, { px: 3, py: 2.5, children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", justify: "space-between", w: "100%", gap: 3, children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 2, minW: 0, children: [(0, jsx_runtime_1.jsx)(react_2.Tooltip, { label: "Attach files", hasArrow: true, placement: "top", children: (0, jsx_runtime_1.jsx)(react_2.Box, { as: "label", htmlFor: "file-upload", cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", w: "1.75rem", h: "1.75rem", borderRadius: "md", color: theme.colors.gray[600], transition: "background 0.15s", _hover: { bg: theme.colors.gray[100] }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Paperclip, { size: 16 }) }) }), (0, jsx_runtime_1.jsx)(react_2.Box, { h: "1rem", w: "1px", bg: theme.colors.gray[200] }), !titleShow ? ((0, jsx_runtime_1.jsx)(react_2.Box, { as: "button", type: "button", onClick: () => setTitleShow(true), px: 2, py: 1, borderRadius: "md", color: theme.colors.gray[600], fontWeight: 500, fontSize: "sm", transition: "background 0.15s", _hover: { bg: theme.colors.gray[100] }, children: "+ Add a title" })) : ((0, jsx_runtime_1.jsx)(react_2.Tooltip, { label: titleValue, hasArrow: true, isDisabled: !titleValue, children: (0, jsx_runtime_1.jsx)(react_2.Text, { color: theme.colors.gray[600], fontSize: "sm", fontWeight: 500, isTruncated: true, maxW: "180px", children: titleValue || "Title" }) }))] }), (0, jsx_runtime_1.jsxs)(react_2.Flex, { gap: 2.5, align: "center", ml: "auto", flexShrink: 0, children: [(0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xs", fontWeight: 500, color: isOverLimit ? theme.colors.semantic.error[500] : theme.colors.gray[500], whiteSpace: "nowrap", children: [noteWordCount, "/", maxNoteWordCount] }), cancelButtonHide ? null : ((0, jsx_runtime_1.jsx)(react_2.Button, { size: "sm", variant: "ghost", colorScheme: "gray", onClick: handleCloseTextArea, children: "Cancel" })), (0, jsx_runtime_1.jsxs)(react_2.Button, { size: "sm", variant: "solid", isLoading: !!saveButtonLoading, isDisabled: !noteValue || isSaveDisabled, onClick: () => handleSubmit(noteValue, titleValue, files), children: [saveButtonLoading ? ((0, jsx_runtime_1.jsx)(react_2.Spinner, { size: "xs", thickness: "2px", mr: 2 })) : null, "Save"] })] })] }), (0, jsx_runtime_1.jsx)("input", { id: "file-upload", type: "file", style: { display: "none" }, onChange: (e) => {
131
+ } }), (0, jsx_runtime_1.jsx)(react_2.Divider, { borderColor: theme.colors.gray[200] })] })), (0, jsx_runtime_1.jsx)(react_2.Box, { bg: theme.colors.background[50], minH: "76px", px: 3, pt: 2.5, position: "relative", children: (0, jsx_runtime_1.jsx)(react_2.Textarea, { ref: noteAreaRef, value: noteValue, onChange: handleNoteChange, placeholder: customPlaceholder, variant: "unstyled", resize: "none", minH: "76px", fontSize: "0.75rem", color: theme.colors.text[700], _placeholder: { fontStyle: "italic", color: theme.colors.gray[300] }, style: { overflow: "hidden" }, p: 0 }) })] }), (0, jsx_runtime_1.jsx)(react_2.Divider, { borderColor: theme.colors.gray[200] }), (0, jsx_runtime_1.jsxs)(react_2.Box, { px: 3, py: 2.5, children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", justify: "space-between", w: "100%", gap: 3, children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 2, minW: 0, children: [(0, jsx_runtime_1.jsx)(react_2.Tooltip, { label: "Attach files", hasArrow: true, placement: "top", children: (0, jsx_runtime_1.jsx)(react_2.Box, { as: "label", htmlFor: "file-upload", cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center", w: "1.75rem", h: "1.75rem", borderRadius: "md", color: theme.colors.gray[600], transition: "background 0.15s", _hover: { bg: theme.colors.gray[100] }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Paperclip, { size: 16 }) }) }), (0, jsx_runtime_1.jsx)(react_2.Box, { h: "1rem", w: "1px", bg: theme.colors.gray[200] }), !titleShow ? ((0, jsx_runtime_1.jsx)(react_2.Box, { as: "button", type: "button", onClick: () => setTitleShow(true), px: 2, py: 1, borderRadius: "md", color: theme.colors.gray[600], fontWeight: 500, fontSize: "sm", transition: "background 0.15s", _hover: { bg: theme.colors.gray[100] }, children: "+ Add a title" })) : ((0, jsx_runtime_1.jsx)(react_2.Tooltip, { label: titleValue, hasArrow: true, isDisabled: !titleValue, children: (0, jsx_runtime_1.jsx)(react_2.Text, { color: theme.colors.gray[600], fontSize: "sm", fontWeight: 500, isTruncated: true, maxW: "180px", children: titleValue || "Title" }) }))] }), (0, jsx_runtime_1.jsxs)(react_2.Flex, { gap: 2.5, align: "center", ml: "auto", flexShrink: 0, children: [(0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xs", fontWeight: 500, color: isOverLimit ? theme.colors.semantic.error[500] : theme.colors.gray[500], whiteSpace: "nowrap", children: [noteWordCount, "/", maxNoteWordCount] }), cancelButtonHide ? null : ((0, jsx_runtime_1.jsx)(react_2.Button, { size: "sm", variant: "ghost", colorScheme: "gray", onClick: handleCloseTextArea, children: "Cancel" })), (0, jsx_runtime_1.jsxs)(react_2.Button, { size: "sm", variant: "solid", isLoading: !!saveButtonLoading, isDisabled: !noteValue || isSaveDisabled, onClick: () => handleSubmit(noteValue, titleValue, files), children: [saveButtonLoading ? ((0, jsx_runtime_1.jsx)(react_2.Spinner, { size: "xs", thickness: "2px", mr: 2 })) : null, "Save"] })] })] }), (0, jsx_runtime_1.jsx)("input", { id: "file-upload", type: "file", style: { display: "none" }, onChange: (e) => {
129
132
  const newFiles = Array.from(e.target.files || []);
130
133
  const validFiles = newFiles.filter((f) => f.size <= maxFileSize);
131
134
  const invalidFiles = newFiles.filter((f) => f.size > maxFileSize);
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/Components/Notification/Notification.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,QAAA,MAAM,YAAY,GAAI,oEAOnB,iBAAiB,4CA0OnB,CAAC;AACF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/Components/Notification/Notification.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,QAAA,MAAM,YAAY,GAAI,oEAOnB,iBAAiB,4CA+OnB,CAAC;AACF,eAAe,YAAY,CAAC"}
@@ -5,15 +5,19 @@ const react_1 = require("react");
5
5
  const react_2 = require("@chakra-ui/react");
6
6
  const lucide_react_1 = require("lucide-react");
7
7
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
8
+ const accentText_1 = require("../../Theme/tokens/builders/accentText");
8
9
  const Notification = ({ notification, onClose, showStatus, onClick, isLoading = false, colors, }) => {
9
10
  const theme = (0, useCustomTheme_1.useCustomTheme)();
10
- const bgColor = (colors === null || colors === void 0 ? void 0 : colors.bgColor) || theme.colors.white;
11
+ const bgColor = (colors === null || colors === void 0 ? void 0 : colors.bgColor) || theme.colors.background[50];
11
12
  const borderColor = (colors === null || colors === void 0 ? void 0 : colors.borderColor) || theme.colors.gray[200];
12
13
  const textColor = (colors === null || colors === void 0 ? void 0 : colors.textColor) || theme.colors.gray[700];
13
14
  const titleColor = (colors === null || colors === void 0 ? void 0 : colors.titleColor) || theme.colors.gray[800];
14
- const warningColor = (colors === null || colors === void 0 ? void 0 : colors.warningColor) || theme.colors.semantic.warning;
15
- const errorColor = (colors === null || colors === void 0 ? void 0 : colors.errorColor) || theme.colors.semantic.error;
16
- const successColor = (colors === null || colors === void 0 ? void 0 : colors.successColor) || theme.colors.semantic.success;
15
+ // `NotificationProps.colors` declares these as hex strings the un-indexed scale defaults
16
+ // below were handing a whole ColorScale object to `bg=` (getStatusColor()'s consumer),
17
+ // which Chakra can't render as a color.
18
+ const warningColor = (colors === null || colors === void 0 ? void 0 : colors.warningColor) || theme.colors.semantic.warning[500];
19
+ const errorColor = (colors === null || colors === void 0 ? void 0 : colors.errorColor) || theme.colors.semantic.error[500];
20
+ const successColor = (colors === null || colors === void 0 ? void 0 : colors.successColor) || theme.colors.semantic.success[500];
17
21
  const startDate = (0, react_1.useMemo)(() => notification.startDate
18
22
  ? new Date(notification.startDate)
19
23
  : null, [notification.startDate]);
@@ -99,6 +103,6 @@ const Notification = ({ notification, onClose, showStatus, onClick, isLoading =
99
103
  bg: theme.colors.red[100],
100
104
  color: theme.colors.red[500],
101
105
  transform: "scale(1.1)",
102
- }, transition: "all 0.2s ease", children: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 16 }) })), (0, jsx_runtime_1.jsxs)(react_2.VStack, { align: "start", spacing: 3, w: "100%", children: [(0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(react_2.Icon, { as: TimeIcon, color: theme.colors.orange[400], boxSize: 4 }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: theme.colors.orange[500], fontWeight: "semibold", children: timeLabel })] }), (0, jsx_runtime_1.jsxs)(react_2.HStack, { align: "center", spacing: 3, w: "100%", children: [(0, jsx_runtime_1.jsx)(react_2.Avatar, { size: "sm", name: notification.host || notification.title, src: notification.avatarUrl || "" }), (0, jsx_runtime_1.jsxs)(react_2.VStack, { align: "start", spacing: 0, flex: "1", children: [(0, jsx_runtime_1.jsx)(react_2.Text, { fontWeight: "bold", fontSize: "md", color: titleColor, cursor: "pointer", _hover: { textColor: theme.colors.primary[500] }, onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(notification.id, notification.type), children: notification.title }), notification.description && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: textColor, children: notification.description }))] })] }), (0, jsx_runtime_1.jsx)(react_2.Divider, { borderColor: borderColor }), (0, jsx_runtime_1.jsxs)(react_2.HStack, { justify: "space-between", w: "100%", children: [(0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(react_2.Icon, { as: lucide_react_1.Calendar, color: theme.colors.gray[400], boxSize: 4 }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: theme.colors.gray[500], children: formattedStartDateTime })] }), (0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(react_2.Icon, { as: lucide_react_1.User, color: theme.colors.gray[400], boxSize: 4 }), notification.host && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: theme.colors.gray[500], children: notification.host }))] }), showStatus && ((0, jsx_runtime_1.jsx)(react_2.Box, { boxSize: "3", bg: getStatusColor(), borderRadius: "full" }))] })] })] }));
106
+ }, transition: "all 0.2s ease", children: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 16 }) })), (0, jsx_runtime_1.jsxs)(react_2.VStack, { align: "start", spacing: 3, w: "100%", children: [(0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(react_2.Icon, { as: TimeIcon, color: (0, accentText_1.accentTextOnCanvas)(theme.colors.orange, bgColor), boxSize: 4 }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: (0, accentText_1.accentTextOnCanvas)(theme.colors.orange, bgColor), fontWeight: "semibold", children: timeLabel })] }), (0, jsx_runtime_1.jsxs)(react_2.HStack, { align: "center", spacing: 3, w: "100%", children: [(0, jsx_runtime_1.jsx)(react_2.Avatar, { size: "sm", name: notification.host || notification.title, src: notification.avatarUrl || "" }), (0, jsx_runtime_1.jsxs)(react_2.VStack, { align: "start", spacing: 0, flex: "1", children: [(0, jsx_runtime_1.jsx)(react_2.Text, { fontWeight: "bold", fontSize: "md", color: titleColor, cursor: "pointer", _hover: { textColor: theme.colors.primary[500] }, onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick(notification.id, notification.type), children: notification.title }), notification.description && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: textColor, children: notification.description }))] })] }), (0, jsx_runtime_1.jsx)(react_2.Divider, { borderColor: borderColor }), (0, jsx_runtime_1.jsxs)(react_2.HStack, { justify: "space-between", w: "100%", children: [(0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(react_2.Icon, { as: lucide_react_1.Calendar, color: theme.colors.gray[400], boxSize: 4 }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: theme.colors.gray[500], children: formattedStartDateTime })] }), (0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(react_2.Icon, { as: lucide_react_1.User, color: theme.colors.gray[400], boxSize: 4 }), notification.host && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: theme.colors.gray[500], children: notification.host }))] }), showStatus && ((0, jsx_runtime_1.jsx)(react_2.Box, { boxSize: "3", bg: getStatusColor(), borderRadius: "full" }))] })] })] }));
103
107
  };
104
108
  exports.default = Notification;
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.styles.d.ts","sourceRoot":"","sources":["../../../src/Components/NumberInput/NumberInput.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,WAAW,EAAE,oBAiFzB,CAAC"}
1
+ {"version":3,"file":"NumberInput.styles.d.ts","sourceRoot":"","sources":["../../../src/Components/NumberInput/NumberInput.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,WAAW,EAAE,oBAoFzB,CAAC"}
@@ -29,7 +29,10 @@ exports.NumberInput = {
29
29
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
30
30
  const { theme } = props;
31
31
  const errorColor = (_c = (_b = (_a = theme.colors.semantic) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b[500]) !== null && _c !== void 0 ? _c : "red.500";
32
- const borderColor = (_e = (_d = theme.colors.boxborder) === null || _d === void 0 ? void 0 : _d[500]) !== null && _e !== void 0 ? _e : "gray.300";
32
+ // [800], not [500]/[700]: WCAG 1.4.11 needs >=3.0 for a control boundary, measured
33
+ // against the parent surface — up to `muted` (lightest). [700] fails there (2.41-2.72);
34
+ // [800] clears all named surfaces with margin (3.44-3.90).
35
+ const borderColor = (_e = (_d = theme.colors.boxborder) === null || _d === void 0 ? void 0 : _d[800]) !== null && _e !== void 0 ? _e : "gray.400";
33
36
  const shadowPrimary = (_g = (_f = theme.colors.boxShadow) === null || _f === void 0 ? void 0 : _f.primary) !== null && _g !== void 0 ? _g : "blue.100";
34
37
  const shadowError = (_j = (_h = theme.colors.boxShadow) === null || _h === void 0 ? void 0 : _h.error) !== null && _j !== void 0 ? _j : "red.100";
35
38
  const primary = (_l = (_k = theme.colors.primary) === null || _k === void 0 ? void 0 : _k[500]) !== null && _l !== void 0 ? _l : "blue.500";
@@ -1 +1 @@
1
- {"version":3,"file":"OrgSwitcher.d.ts","sourceRoot":"","sources":["../../../src/Components/OrgSwitcher/OrgSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAkBzD,OAAO,EAGL,gBAAgB,EAGjB,MAAM,oBAAoB,CAAC;AA6C5B,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoM3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"OrgSwitcher.d.ts","sourceRoot":"","sources":["../../../src/Components/OrgSwitcher/OrgSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAoBzD,OAAO,EAGL,gBAAgB,EAGjB,MAAM,oBAAoB,CAAC;AAkD5B,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4N3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -5,6 +5,8 @@ const react_1 = require("react");
5
5
  const react_2 = require("@chakra-ui/react");
6
6
  const lucide_react_1 = require("lucide-react");
7
7
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
8
+ const accentText_1 = require("../../Theme/tokens/builders/accentText");
9
+ const outlineRung_1 = require("../../Theme/tokens/builders/outlineRung");
8
10
  const OrgSwitcherProps_1 = require("./OrgSwitcherProps");
9
11
  const sizeMap = {
10
12
  sm: { h: "32px", avatar: "22px", font: "0.8rem", sub: "0.65rem", px: 2 },
@@ -15,10 +17,15 @@ const Avatar = ({ org, boxSize, fontSize, }) => {
15
17
  if (org.logoUrl) {
16
18
  return ((0, jsx_runtime_1.jsx)(react_2.Image, { src: org.logoUrl, alt: org.name, boxSize: boxSize, borderRadius: "8px", objectFit: "cover", flexShrink: 0 }));
17
19
  }
18
- return ((0, jsx_runtime_1.jsx)(react_2.Flex, { align: "center", justify: "center", boxSize: boxSize, borderRadius: "8px", flexShrink: 0, bg: (0, OrgSwitcherProps_1.avatarColor)(org.name), color: "white", fontSize: fontSize, fontWeight: 700, children: (0, OrgSwitcherProps_1.orgInitial)(org.name) }));
20
+ // `AVATAR_COLORS` is a fixed 8-swatch palette hashed from the org name (not theme-derived, so
21
+ // it can't lean on a per-brand text rung). Two of the eight — amber `#F59E0B`, teal `#14B8A6` —
22
+ // measure 2.15:1 / 2.49:1 against hardcoded white, well under AA. `onFilled` is provably >=4.5
23
+ // against ANY fill, so it's the correct ink for an arbitrary, theme-independent swatch.
24
+ const fill = (0, OrgSwitcherProps_1.avatarColor)(org.name);
25
+ return ((0, jsx_runtime_1.jsx)(react_2.Flex, { align: "center", justify: "center", boxSize: boxSize, borderRadius: "8px", flexShrink: 0, bg: fill, color: (0, accentText_1.onFilled)(fill, "#ffffff", "#000000"), fontSize: fontSize, fontWeight: 700, children: (0, OrgSwitcherProps_1.orgInitial)(org.name) }));
19
26
  };
20
27
  const OrgSwitcher = ({ organizations, value, onChange, isLoading = false, isSearchable, searchThreshold = 6, triggerVariant = "ghost", size = "md", maxWidth = "200px", menuMinWidth = "280px", placeholder = "Select organization", ariaLabel = "Switch organization", showRole = true, }) => {
21
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
28
+ var _a, _b, _c;
22
29
  const theme = (0, useCustomTheme_1.useCustomTheme)();
23
30
  const s = sizeMap[size];
24
31
  const { isOpen, onOpen, onClose } = (0, react_2.useDisclosure)();
@@ -32,11 +39,19 @@ const OrgSwitcher = ({ organizations, value, onChange, isLoading = false, isSear
32
39
  const q = query.toLowerCase();
33
40
  return organizations.filter((o) => o.name.toLowerCase().includes(q));
34
41
  }, [organizations, query]);
42
+ // boxborder[800], not raw gray[200]: this styles a real `<button>` (Flex as="button" below),
43
+ // so its border is a control boundary — WCAG 1.4.11 needs >=3.0 against any named surface up
44
+ // to `muted` (lightest); gray[200] fails there in dark mode.
35
45
  const triggerStyles = triggerVariant === "outline"
36
- ? { border: "1px solid", borderColor: (_b = (_a = theme.colors.gray) === null || _a === void 0 ? void 0 : _a[200]) !== null && _b !== void 0 ? _b : "#E2E8F0", bg: theme.colors.white }
46
+ ? { border: "1px solid", borderColor: (_b = (_a = theme.colors.boxborder) === null || _a === void 0 ? void 0 : _a[800]) !== null && _b !== void 0 ? _b : theme.colors.gray[200], bg: theme.colors.background[50] }
37
47
  : triggerVariant === "subtle"
38
- ? { bg: (_d = (_c = theme.colors.gray) === null || _c === void 0 ? void 0 : _c[50]) !== null && _d !== void 0 ? _d : "#F8FAFC" }
48
+ ? { bg: theme.colors.gray[50] }
39
49
  : { bg: "transparent" };
50
+ // `gray[100]` hover on a "transparent" trigger reads against whatever's actually behind it —
51
+ // this control lives in a navbar-like shell, so `backgroundColor.light` is that surface. For a
52
+ // near-neutral brand (zinc) the two measured near-1.0: an invisible hover, same bug shape as
53
+ // NavigationBar's menu items.
54
+ const triggerHoverBg = (0, outlineRung_1.resolveHoverTint)(theme.colors.gray[100], theme.colors.backgroundColor.light);
40
55
  const handleSelect = (org) => {
41
56
  onClose();
42
57
  setQuery("");
@@ -46,10 +61,21 @@ const OrgSwitcher = ({ organizations, value, onChange, isLoading = false, isSear
46
61
  return ((0, jsx_runtime_1.jsxs)(react_2.Popover, { isOpen: isOpen, onOpen: onOpen, onClose: () => {
47
62
  onClose();
48
63
  setQuery("");
49
- }, placement: "bottom-start", initialFocusRef: showSearch ? searchRef : undefined, isLazy: true, children: [(0, jsx_runtime_1.jsx)(react_2.PopoverTrigger, { children: (0, jsx_runtime_1.jsxs)(react_2.Flex, { as: "button", type: "button", "aria-label": ariaLabel, align: "center", gap: s.px === 2 ? "8px" : "10px", h: s.h, px: s.px, borderRadius: "10px", cursor: isLoading ? "default" : "pointer", opacity: isLoading ? 0.6 : 1, pointerEvents: isLoading ? "none" : "auto", transition: "background 0.15s ease", _hover: { bg: triggerVariant === "ghost" ? (_f = (_e = theme.colors.gray) === null || _e === void 0 ? void 0 : _e[100]) !== null && _f !== void 0 ? _f : "#F1F5F9" : undefined }, ...triggerStyles, children: [selected ? ((0, jsx_runtime_1.jsx)(Avatar, { org: selected, boxSize: s.avatar, fontSize: s.sub })) : ((0, jsx_runtime_1.jsx)(react_2.Flex, { align: "center", justify: "center", boxSize: s.avatar, borderRadius: "8px", bg: (_h = (_g = theme.colors.gray) === null || _g === void 0 ? void 0 : _g[100]) !== null && _h !== void 0 ? _h : "#F1F5F9", color: (_k = (_j = theme.colors.gray) === null || _j === void 0 ? void 0 : _j[400]) !== null && _k !== void 0 ? _k : "#A0AEC0", flexShrink: 0, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Building2, { size: 14 }) })), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.font, fontWeight: 600, color: (_m = (_l = theme.colors.gray) === null || _l === void 0 ? void 0 : _l[700]) !== null && _m !== void 0 ? _m : "#2D3748", maxW: maxWidth, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", textAlign: "left", children: (_o = selected === null || selected === void 0 ? void 0 : selected.name) !== null && _o !== void 0 ? _o : placeholder }), isLoading ? ((0, jsx_runtime_1.jsx)(react_2.Spinner, { size: "xs", thickness: "1.5px", color: theme.colors.primary[500], flexShrink: 0 })) : ((0, jsx_runtime_1.jsx)(react_2.Box, { as: lucide_react_1.ChevronsUpDown, size: 16, color: (_q = (_p = theme.colors.gray) === null || _p === void 0 ? void 0 : _p[400]) !== null && _q !== void 0 ? _q : "#A0AEC0", flexShrink: 0 }))] }) }), (0, jsx_runtime_1.jsx)(react_2.PopoverContent, { minW: menuMinWidth, w: "auto", borderRadius: "12px", overflow: "hidden", boxShadow: "0 10px 30px rgba(0,0,0,0.14)", _focus: { outline: "none", boxShadow: "0 10px 30px rgba(0,0,0,0.14)" }, children: (0, jsx_runtime_1.jsxs)(react_2.PopoverBody, { p: 0, children: [showSearch && ((0, jsx_runtime_1.jsx)(react_2.Box, { p: 2, borderBottom: "1px solid", borderColor: (_s = (_r = theme.colors.gray) === null || _r === void 0 ? void 0 : _r[100]) !== null && _s !== void 0 ? _s : "#EDF2F7", children: (0, jsx_runtime_1.jsxs)(react_2.InputGroup, { size: "sm", children: [(0, jsx_runtime_1.jsx)(react_2.InputLeftElement, { pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Search, { size: 15, color: (_u = (_t = theme.colors.gray) === null || _t === void 0 ? void 0 : _t[400]) !== null && _u !== void 0 ? _u : "#A0AEC0" }) }), (0, jsx_runtime_1.jsx)(react_2.Input, { ref: searchRef, placeholder: "Search organizations", value: query, onChange: (e) => setQuery(e.target.value), borderRadius: "8px" })] }) })), (0, jsx_runtime_1.jsxs)(react_2.Box, { maxH: "320px", overflowY: "auto", py: 1, children: [filtered.map((org) => {
50
- var _a, _b, _c, _d, _e, _f;
64
+ }, placement: "bottom-start", initialFocusRef: showSearch ? searchRef : undefined, isLazy: true, children: [(0, jsx_runtime_1.jsx)(react_2.PopoverTrigger, { children: (0, jsx_runtime_1.jsxs)(react_2.Flex, { as: "button", type: "button", "aria-label": ariaLabel, align: "center", gap: s.px === 2 ? "8px" : "10px", h: s.h, px: s.px, borderRadius: "10px", cursor: isLoading ? "default" : "pointer", opacity: isLoading ? 0.6 : 1, pointerEvents: isLoading ? "none" : "auto", transition: "background 0.15s ease", _hover: { bg: triggerVariant === "ghost" ? triggerHoverBg : undefined }, ...triggerStyles, children: [selected ? ((0, jsx_runtime_1.jsx)(Avatar, { org: selected, boxSize: s.avatar, fontSize: s.sub })) : ((0, jsx_runtime_1.jsx)(react_2.Flex, { align: "center", justify: "center", boxSize: s.avatar, borderRadius: "8px", bg: theme.colors.gray[100], color: theme.colors.gray[400], flexShrink: 0, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Building2, { size: 14 }) })), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.font, fontWeight: 600, color: theme.colors.gray[700], maxW: maxWidth, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", textAlign: "left", children: (_c = selected === null || selected === void 0 ? void 0 : selected.name) !== null && _c !== void 0 ? _c : placeholder }), isLoading ? ((0, jsx_runtime_1.jsx)(react_2.Spinner, { size: "xs", thickness: "1.5px", color: theme.colors.primary[500], flexShrink: 0 })) : ((0, jsx_runtime_1.jsx)(react_2.Box, { as: lucide_react_1.ChevronsUpDown, size: 16, color: theme.colors.gray[400], flexShrink: 0 }))] }) }), (0, jsx_runtime_1.jsx)(react_2.PopoverContent, { minW: menuMinWidth, w: "auto",
65
+ // Chakra's PopoverContent baseStyle defaults bg to var(--popper-bg), which is hardcoded
66
+ // to colors.white and only repointed under Chakra's own `_dark` — dead code here since
67
+ // this app toggles dark mode by swapping the palette, not Chakra's colorMode. Without an
68
+ // explicit bg the panel always rendered white regardless of the active theme.
69
+ bg: theme.colors.backgroundColor.light, borderRadius: "12px", overflow: "hidden", boxShadow: `0 10px 30px ${theme.colors.boxShadow.default}`, _focus: { outline: "none", boxShadow: `0 10px 30px ${theme.colors.boxShadow.default}` }, children: (0, jsx_runtime_1.jsxs)(react_2.PopoverBody, { p: 0, children: [showSearch && ((0, jsx_runtime_1.jsx)(react_2.Box, { p: 2, borderBottom: "1px solid", borderColor: theme.colors.gray[100], children: (0, jsx_runtime_1.jsxs)(react_2.InputGroup, { size: "sm", children: [(0, jsx_runtime_1.jsx)(react_2.InputLeftElement, { pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Search, { size: 15, color: theme.colors.gray[400] }) }), (0, jsx_runtime_1.jsx)(react_2.Input, { ref: searchRef, placeholder: "Search organizations", value: query, onChange: (e) => setQuery(e.target.value), borderRadius: "8px" })] }) })), (0, jsx_runtime_1.jsxs)(react_2.Box, { maxH: "320px", overflowY: "auto", py: 1, children: [filtered.map((org) => {
51
70
  const isActive = org.id === value;
52
- return ((0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: "10px", px: 3, py: 2, cursor: "pointer", bg: isActive ? theme.colors.primary[50] : "transparent", transition: "background 0.12s ease", _hover: { bg: isActive ? theme.colors.primary[50] : (_b = (_a = theme.colors.gray) === null || _a === void 0 ? void 0 : _a[50]) !== null && _b !== void 0 ? _b : "#F8FAFC" }, onClick: () => handleSelect(org), children: [(0, jsx_runtime_1.jsx)(Avatar, { org: org, boxSize: s.avatar, fontSize: s.sub }), (0, jsx_runtime_1.jsxs)(react_2.Box, { flex: "1", minW: 0, children: [(0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.font, fontWeight: isActive ? 600 : 500, color: (_d = (_c = theme.colors.gray) === null || _c === void 0 ? void 0 : _c[800]) !== null && _d !== void 0 ? _d : "#1A202C", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", children: org.name }), showRole && org.role && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.sub, color: (_f = (_e = theme.colors.gray) === null || _e === void 0 ? void 0 : _e[500]) !== null && _f !== void 0 ? _f : "#718096", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", children: org.role }))] }), isActive && ((0, jsx_runtime_1.jsx)(react_2.Box, { as: lucide_react_1.Check, size: 16, color: theme.colors.primary[500], flexShrink: 0 }))] }, org.id));
53
- }), filtered.length === 0 && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: (_w = (_v = theme.colors.gray) === null || _v === void 0 ? void 0 : _v[500]) !== null && _w !== void 0 ? _w : "#718096", textAlign: "center", py: 6, children: "No organizations found" }))] })] }) })] }));
71
+ // Active row's hover repeated its own resting `primary[50]` fill a zero-delta
72
+ // hover, invisible by construction. `resolveHoverTint` walks a fill away from a
73
+ // backdrop until distinguishable, so handing it its own resting bg as the backdrop
74
+ // is enough to make hover read as a real state change on both active and inactive rows.
75
+ const rowHoverBg = isActive
76
+ ? (0, outlineRung_1.resolveHoverTint)(theme.colors.primary[50], theme.colors.primary[50])
77
+ : (0, outlineRung_1.resolveHoverTint)(theme.colors.gray[50], theme.colors.backgroundColor.light);
78
+ return ((0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: "10px", px: 3, py: 2, cursor: "pointer", bg: isActive ? theme.colors.primary[50] : "transparent", transition: "background 0.12s ease", _hover: { bg: rowHoverBg }, onClick: () => handleSelect(org), children: [(0, jsx_runtime_1.jsx)(Avatar, { org: org, boxSize: s.avatar, fontSize: s.sub }), (0, jsx_runtime_1.jsxs)(react_2.Box, { flex: "1", minW: 0, children: [(0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.font, fontWeight: isActive ? 600 : 500, color: theme.colors.text[900], overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", children: org.name }), showRole && org.role && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.sub, color: theme.colors.text[500], overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", children: org.role }))] }), isActive && ((0, jsx_runtime_1.jsx)(react_2.Box, { as: lucide_react_1.Check, size: 16, color: theme.colors.primary[500], flexShrink: 0 }))] }, org.id));
79
+ }), filtered.length === 0 && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: theme.colors.gray[500], textAlign: "center", py: 6, children: "No organizations found" }))] })] }) })] }));
54
80
  };
55
81
  exports.default = OrgSwitcher;
@@ -35,8 +35,16 @@ export interface OrgSwitcherProps {
35
35
  /** Show the role subtitle inside the dropdown rows. Default true. */
36
36
  showRole?: boolean;
37
37
  }
38
+ export declare const AVATAR_COLORS: string[];
38
39
  /** Deterministically pick an avatar color from an org name. */
39
40
  export declare const avatarColor: (seed: string) => string;
40
- /** First letter (uppercased) of an org name, for the fallback avatar. */
41
+ /**
42
+ * Fallback-avatar initials, up to 2 characters. A single letter reads well for one
43
+ * org but collides constantly across a real list — two orgs both starting with
44
+ * "P" render the identical circle, distinguishable only by the hashed color.
45
+ * A multi-word name takes one letter each word ("pixelize default" -> "PD"); a
46
+ * single word takes its own first two letters ("Default1" -> "DE") so a
47
+ * one-word org still gets a distinct-looking mark instead of falling back to one.
48
+ */
41
49
  export declare const orgInitial: (name: string) => string;
42
50
  //# sourceMappingURL=OrgSwitcherProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OrgSwitcherProps.d.ts","sourceRoot":"","sources":["../../../src/Components/OrgSwitcher/OrgSwitcherProps.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,oCAAoC;IACpC,aAAa,EAAE,SAAS,EAAE,CAAC;IAC3B,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,qDAAqD;IACrD,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IACxD,+EAA+E;IAC/E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+DAA+D;IAC/D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IAChD,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAaD,+DAA+D;AAC/D,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,MAM1C,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,MACA,CAAC"}
1
+ {"version":3,"file":"OrgSwitcherProps.d.ts","sourceRoot":"","sources":["../../../src/Components/OrgSwitcher/OrgSwitcherProps.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,oCAAoC;IACpC,aAAa,EAAE,SAAS,EAAE,CAAC;IAC3B,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,qDAAqD;IACrD,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IACxD,+EAA+E;IAC/E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+DAA+D;IAC/D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;IAChD,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,UASzB,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,MAM1C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,MAKzC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.orgInitial = exports.avatarColor = void 0;
4
- const AVATAR_COLORS = [
3
+ exports.orgInitial = exports.avatarColor = exports.AVATAR_COLORS = void 0;
4
+ exports.AVATAR_COLORS = [
5
5
  "#6366F1",
6
6
  "#0EA5E9",
7
7
  "#10B981",
@@ -17,9 +17,23 @@ const avatarColor = (seed) => {
17
17
  for (let i = 0; i < seed.length; i += 1) {
18
18
  hash = seed.charCodeAt(i) + ((hash << 5) - hash);
19
19
  }
20
- return AVATAR_COLORS[Math.abs(hash) % AVATAR_COLORS.length];
20
+ return exports.AVATAR_COLORS[Math.abs(hash) % exports.AVATAR_COLORS.length];
21
21
  };
22
22
  exports.avatarColor = avatarColor;
23
- /** First letter (uppercased) of an org name, for the fallback avatar. */
24
- const orgInitial = (name) => { var _a, _b; return ((_b = (_a = name === null || name === void 0 ? void 0 : name.trim()) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : "?").toUpperCase(); };
23
+ /**
24
+ * Fallback-avatar initials, up to 2 characters. A single letter reads well for one
25
+ * org but collides constantly across a real list — two orgs both starting with
26
+ * "P" render the identical circle, distinguishable only by the hashed color.
27
+ * A multi-word name takes one letter each word ("pixelize default" -> "PD"); a
28
+ * single word takes its own first two letters ("Default1" -> "DE") so a
29
+ * one-word org still gets a distinct-looking mark instead of falling back to one.
30
+ */
31
+ const orgInitial = (name) => {
32
+ const words = (name !== null && name !== void 0 ? name : "").trim().split(/\s+/).filter(Boolean);
33
+ if (words.length === 0)
34
+ return "?";
35
+ if (words.length === 1)
36
+ return words[0].slice(0, 2).toUpperCase();
37
+ return (words[0][0] + words[1][0]).toUpperCase();
38
+ };
25
39
  exports.orgInitial = orgInitial;
@@ -1 +1 @@
1
- {"version":3,"file":"CreateOrgModal.d.ts","sourceRoot":"","sources":["../../../src/Components/OrganizationDetails/CreateOrgModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAenD,OAAO,EAAuB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAUtF,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkHjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"CreateOrgModal.d.ts","sourceRoot":"","sources":["../../../src/Components/OrganizationDetails/CreateOrgModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAenD,OAAO,EAAuB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAUtF,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsHjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -57,6 +57,6 @@ const CreateOrgModal = ({ isOpen, onClose, isLoading, onSubmit, labels, }) => {
57
57
  phone: (_a = values === null || values === void 0 ? void 0 : values.phone) === null || _a === void 0 ? void 0 : _a.trim(),
58
58
  });
59
59
  };
60
- return ((0, jsx_runtime_1.jsxs)(react_2.Modal, { isOpen: isOpen, onClose: onClose, isCentered: true, autoFocus: false, children: [(0, jsx_runtime_1.jsx)(react_2.ModalOverlay, { backdropFilter: "blur(4px)" }), (0, jsx_runtime_1.jsxs)(react_2.ModalContent, { borderRadius: "2xl", overflow: "hidden", children: [(0, jsx_runtime_1.jsx)(react_2.ModalHeader, { borderBottom: "1px solid", borderColor: (_b = (_a = colors === null || colors === void 0 ? void 0 : colors.boxborder) === null || _a === void 0 ? void 0 : _a[200]) !== null && _b !== void 0 ? _b : (_c = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _c === void 0 ? void 0 : _c[200], fontSize: "1.05rem", fontWeight: 600, children: labels.createOrganization }), (0, jsx_runtime_1.jsx)(react_2.ModalCloseButton, {}), (0, jsx_runtime_1.jsxs)(react_2.ModalBody, { py: 6, children: [(0, jsx_runtime_1.jsxs)(react_2.VStack, { spacing: 4, align: "stretch", children: [(0, jsx_runtime_1.jsx)(TextInput_1.default, { label: labels.companyName, value: values.company_name, onChange: (e) => setField("company_name", e.target.value), isRequired: true, width: "100%", placeholder: "Enter Company Name", error: !!errors.company_name, errorMessage: errors.company_name }), (0, jsx_runtime_1.jsx)(TextInput_1.default, { label: labels.companyAddress, value: values.company_address, onChange: (e) => setField("company_address", e.target.value), isRequired: true, width: "100%", placeholder: "Enter Company Address", error: !!errors.company_address, errorMessage: errors.company_address }), (0, jsx_runtime_1.jsx)(TextInput_1.default, { label: labels.phone, value: values.phone, onChange: (e) => setField("phone", e.target.value), isRequired: true, width: "100%", placeholder: "Enter Phone Number", error: !!errors.phone, errorMessage: errors.phone })] }), (0, jsx_runtime_1.jsxs)(react_2.HStack, { justifyContent: "center", spacing: 4, mt: 6, children: [(0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.cancel, onClick: onClose, variant: "outline", colorScheme: "red", size: "sm" }), (0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.submit, onClick: handleSubmit, colorScheme: "primary", size: "sm", isLoading: isLoading })] })] })] })] }));
60
+ return ((0, jsx_runtime_1.jsxs)(react_2.Modal, { isOpen: isOpen, onClose: onClose, isCentered: true, autoFocus: false, children: [(0, jsx_runtime_1.jsx)(react_2.ModalOverlay, { backdropFilter: "blur(4px)" }), (0, jsx_runtime_1.jsxs)(react_2.ModalContent, { bg: colors.background[50], borderRadius: "2xl", overflow: "hidden", children: [(0, jsx_runtime_1.jsx)(react_2.ModalHeader, { borderBottom: "1px solid", borderColor: (_b = (_a = colors === null || colors === void 0 ? void 0 : colors.boxborder) === null || _a === void 0 ? void 0 : _a[200]) !== null && _b !== void 0 ? _b : (_c = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _c === void 0 ? void 0 : _c[200], fontSize: "1.05rem", fontWeight: 600, children: labels.createOrganization }), (0, jsx_runtime_1.jsx)(react_2.ModalCloseButton, {}), (0, jsx_runtime_1.jsxs)(react_2.ModalBody, { py: 6, children: [(0, jsx_runtime_1.jsxs)(react_2.VStack, { spacing: 4, align: "stretch", children: [(0, jsx_runtime_1.jsx)(TextInput_1.default, { label: labels.companyName, value: values.company_name, onChange: (e) => setField("company_name", e.target.value), isRequired: true, width: "100%", placeholder: "Enter Company Name", error: !!errors.company_name, errorMessage: errors.company_name }), (0, jsx_runtime_1.jsx)(TextInput_1.default, { label: labels.companyAddress, value: values.company_address, onChange: (e) => setField("company_address", e.target.value), isRequired: true, width: "100%", placeholder: "Enter Company Address", error: !!errors.company_address, errorMessage: errors.company_address }), (0, jsx_runtime_1.jsx)(TextInput_1.default, { label: labels.phone, value: values.phone, onChange: (e) => setField("phone", e.target.value), isRequired: true, width: "100%", placeholder: "Enter Phone Number", error: !!errors.phone, errorMessage: errors.phone })] }), (0, jsx_runtime_1.jsxs)(react_2.HStack, { justifyContent: "center", spacing: 4, mt: 6, children: [(0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.cancel, onClick: onClose, variant: "outline", colorScheme: "red", size: "sm" }), (0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.submit, onClick: handleSubmit, colorScheme: "primary", size: "sm", isLoading: isLoading })] })] })] })] }));
61
61
  };
62
62
  exports.default = CreateOrgModal;
@@ -9,8 +9,8 @@ const lucide_react_1 = require("lucide-react");
9
9
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
10
10
  const Button_1 = __importDefault(require("../Button/Button"));
11
11
  const DeleteOrgModal = ({ isOpen, onClose, isLoading, onConfirm, labels, }) => {
12
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
12
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13
13
  const { colors } = (0, useCustomTheme_1.useCustomTheme)();
14
- return ((0, jsx_runtime_1.jsxs)(react_1.Modal, { isOpen: isOpen, onClose: onClose, isCentered: true, children: [(0, jsx_runtime_1.jsx)(react_1.ModalOverlay, { backdropFilter: "blur(4px)" }), (0, jsx_runtime_1.jsxs)(react_1.ModalContent, { borderRadius: "2xl", overflow: "hidden", children: [(0, jsx_runtime_1.jsxs)(react_1.ModalHeader, { borderBottom: "1px solid", borderColor: (_b = (_a = colors === null || colors === void 0 ? void 0 : colors.boxborder) === null || _a === void 0 ? void 0 : _a[200]) !== null && _b !== void 0 ? _b : (_c = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _c === void 0 ? void 0 : _c[200], display: "flex", alignItems: "center", gap: 3, children: [(0, jsx_runtime_1.jsx)(react_1.Flex, { align: "center", justify: "center", boxSize: "36px", borderRadius: "full", bg: (_h = (_f = (_e = (_d = colors === null || colors === void 0 ? void 0 : colors.semantic) === null || _d === void 0 ? void 0 : _d.error) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : (_g = colors === null || colors === void 0 ? void 0 : colors.red) === null || _g === void 0 ? void 0 : _g[50]) !== null && _h !== void 0 ? _h : "#FEF2F2", color: (_o = (_l = (_k = (_j = colors === null || colors === void 0 ? void 0 : colors.semantic) === null || _j === void 0 ? void 0 : _j.error) === null || _k === void 0 ? void 0 : _k[500]) !== null && _l !== void 0 ? _l : (_m = colors === null || colors === void 0 ? void 0 : colors.red) === null || _m === void 0 ? void 0 : _m[500]) !== null && _o !== void 0 ? _o : "#EF4444", children: (0, jsx_runtime_1.jsx)(lucide_react_1.AlertTriangle, { size: 18 }) }), (0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "1.05rem", fontWeight: 600, children: labels.confirmDeletion })] }), (0, jsx_runtime_1.jsx)(react_1.ModalCloseButton, {}), (0, jsx_runtime_1.jsxs)(react_1.ModalBody, { py: 6, children: [(0, jsx_runtime_1.jsx)(react_1.Text, { color: (_p = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _p === void 0 ? void 0 : _p[600], fontSize: "sm", mb: 5, children: labels.deleteConfirmText }), (0, jsx_runtime_1.jsxs)(react_1.HStack, { justifyContent: "flex-end", spacing: 3, children: [(0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.cancel, onClick: onClose, variant: "outline", colorScheme: "gray", size: "sm" }), (0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.delete, onClick: onConfirm, colorScheme: "red", size: "sm", isLoading: isLoading, leftIcon: (0, jsx_runtime_1.jsx)(lucide_react_1.Trash2, { size: 15 }) })] })] })] })] }));
14
+ return ((0, jsx_runtime_1.jsxs)(react_1.Modal, { isOpen: isOpen, onClose: onClose, isCentered: true, children: [(0, jsx_runtime_1.jsx)(react_1.ModalOverlay, { backdropFilter: "blur(4px)" }), (0, jsx_runtime_1.jsxs)(react_1.ModalContent, { bg: (_a = colors === null || colors === void 0 ? void 0 : colors.background) === null || _a === void 0 ? void 0 : _a[50], borderRadius: "2xl", overflow: "hidden", children: [(0, jsx_runtime_1.jsxs)(react_1.ModalHeader, { borderBottom: "1px solid", borderColor: (_c = (_b = colors === null || colors === void 0 ? void 0 : colors.boxborder) === null || _b === void 0 ? void 0 : _b[200]) !== null && _c !== void 0 ? _c : (_d = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _d === void 0 ? void 0 : _d[200], display: "flex", alignItems: "center", gap: 3, children: [(0, jsx_runtime_1.jsx)(react_1.Flex, { align: "center", justify: "center", boxSize: "36px", borderRadius: "full", bg: (_f = (_e = colors === null || colors === void 0 ? void 0 : colors.red) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#FEF2F2", color: (_h = (_g = colors === null || colors === void 0 ? void 0 : colors.red) === null || _g === void 0 ? void 0 : _g[500]) !== null && _h !== void 0 ? _h : "#EF4444", children: (0, jsx_runtime_1.jsx)(lucide_react_1.AlertTriangle, { size: 18 }) }), (0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "1.05rem", fontWeight: 600, children: labels.confirmDeletion })] }), (0, jsx_runtime_1.jsx)(react_1.ModalCloseButton, {}), (0, jsx_runtime_1.jsxs)(react_1.ModalBody, { py: 6, children: [(0, jsx_runtime_1.jsx)(react_1.Text, { color: (_j = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _j === void 0 ? void 0 : _j[600], fontSize: "sm", mb: 5, children: labels.deleteConfirmText }), (0, jsx_runtime_1.jsxs)(react_1.HStack, { justifyContent: "flex-end", spacing: 3, children: [(0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.cancel, onClick: onClose, variant: "outline", colorScheme: "gray", size: "sm" }), (0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.delete, onClick: onConfirm, colorScheme: "red", size: "sm", isLoading: isLoading, leftIcon: (0, jsx_runtime_1.jsx)(lucide_react_1.Trash2, { size: 15 }) })] })] })] })] }));
15
15
  };
16
16
  exports.default = DeleteOrgModal;
@@ -51,7 +51,7 @@ const DEFAULT_LABELS = {
51
51
  termsOfService: "Terms of Service",
52
52
  };
53
53
  const OrganizationDetails = ({ activeOrganizations, invitedOrganizations, isLoading = false, switchingOrgIds = [], respondingOrgIds = [], editingOrgIds = [], isCreating = false, userName, userAvatarUrl, onSetDefault, onAcceptInvite, onDeclineInvite, onDeleteOrganization, onDeleteRequest, onCreateOrganization, onEditOrganization, onBack, footerSlot, labels: labelOverrides, }) => {
54
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
54
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
55
55
  const { colors } = (0, useCustomTheme_1.useCustomTheme)();
56
56
  const labels = (0, react_1.useMemo)(() => ({ ...DEFAULT_LABELS, ...labelOverrides }), [labelOverrides]);
57
57
  const [isCreateOpen, setCreateOpen] = (0, react_1.useState)(false);
@@ -61,15 +61,15 @@ const OrganizationDetails = ({ activeOrganizations, invitedOrganizations, isLoad
61
61
  const [editValue, setEditValue] = (0, react_1.useState)("");
62
62
  const [editError, setEditError] = (0, react_1.useState)("");
63
63
  const border = (_d = (_b = (_a = colors === null || colors === void 0 ? void 0 : colors.boxborder) === null || _a === void 0 ? void 0 : _a[200]) !== null && _b !== void 0 ? _b : (_c = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _c === void 0 ? void 0 : _c[200]) !== null && _d !== void 0 ? _d : "#E2E8F0";
64
- const surface = (_e = colors === null || colors === void 0 ? void 0 : colors.white) !== null && _e !== void 0 ? _e : "#FFFFFF";
65
- const muted = (_g = (_f = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _f === void 0 ? void 0 : _f[500]) !== null && _g !== void 0 ? _g : "#64748B";
66
- const subtle = (_j = (_h = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _h === void 0 ? void 0 : _h[600]) !== null && _j !== void 0 ? _j : "#475569";
67
- const heading = (_l = (_k = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _k === void 0 ? void 0 : _k[800]) !== null && _l !== void 0 ? _l : "#1E293B";
68
- const pageBg = (_o = (_m = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _m === void 0 ? void 0 : _m[50]) !== null && _o !== void 0 ? _o : "#F8FAFC";
69
- const primary50 = (_q = (_p = colors === null || colors === void 0 ? void 0 : colors.primary) === null || _p === void 0 ? void 0 : _p[50]) !== null && _q !== void 0 ? _q : "#EEF2FF";
70
- const primary100 = (_s = (_r = colors === null || colors === void 0 ? void 0 : colors.primary) === null || _r === void 0 ? void 0 : _r[100]) !== null && _s !== void 0 ? _s : "#E0E7FF";
71
- const primary500 = (_u = (_t = colors === null || colors === void 0 ? void 0 : colors.primary) === null || _t === void 0 ? void 0 : _t[500]) !== null && _u !== void 0 ? _u : "#6366F1";
72
- const primary600 = (_w = (_v = colors === null || colors === void 0 ? void 0 : colors.primary) === null || _v === void 0 ? void 0 : _v[600]) !== null && _w !== void 0 ? _w : "#4F46E5";
64
+ const surface = (_g = (_f = (_e = colors === null || colors === void 0 ? void 0 : colors.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : colors === null || colors === void 0 ? void 0 : colors.white) !== null && _g !== void 0 ? _g : "#FFFFFF";
65
+ const muted = (_j = (_h = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _h === void 0 ? void 0 : _h[500]) !== null && _j !== void 0 ? _j : "#64748B";
66
+ const subtle = (_l = (_k = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _k === void 0 ? void 0 : _k[600]) !== null && _l !== void 0 ? _l : "#475569";
67
+ const heading = (_o = (_m = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _m === void 0 ? void 0 : _m[800]) !== null && _o !== void 0 ? _o : "#1E293B";
68
+ const pageBg = (_q = (_p = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _p === void 0 ? void 0 : _p[50]) !== null && _q !== void 0 ? _q : "#F8FAFC";
69
+ const primary50 = (_s = (_r = colors === null || colors === void 0 ? void 0 : colors.primary) === null || _r === void 0 ? void 0 : _r[50]) !== null && _s !== void 0 ? _s : "#EEF2FF";
70
+ const primary100 = (_u = (_t = colors === null || colors === void 0 ? void 0 : colors.primary) === null || _t === void 0 ? void 0 : _t[100]) !== null && _u !== void 0 ? _u : "#E0E7FF";
71
+ const primary500 = (_w = (_v = colors === null || colors === void 0 ? void 0 : colors.primary) === null || _v === void 0 ? void 0 : _v[500]) !== null && _w !== void 0 ? _w : "#6366F1";
72
+ const primary600 = (_y = (_x = colors === null || colors === void 0 ? void 0 : colors.primary) === null || _x === void 0 ? void 0 : _x[600]) !== null && _y !== void 0 ? _y : "#4F46E5";
73
73
  const cardSx = {
74
74
  backgroundColor: surface,
75
75
  borderRadius: "xl",
@@ -157,7 +157,7 @@ const OrganizationDetails = ({ activeOrganizations, invitedOrganizations, isLoad
157
157
  const hasOrganizations = activeOrganizations.length > 0 || invitedOrganizations.length > 0;
158
158
  return ((0, jsx_runtime_1.jsxs)(react_2.Box, { backgroundColor: pageBg, minHeight: "100%", p: { base: 2, md: 3 }, children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { ...cardSx, px: 3, py: 2.5, mb: 3, alignItems: "center", justifyContent: "space-between", flexWrap: "wrap", gap: 3, bgGradient: `linear(135deg, ${primary50} 0%, ${primary100} 100%)`, children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { alignItems: "center", gap: 3, children: [onBack && ((0, jsx_runtime_1.jsx)(react_2.IconButton, { "aria-label": "Go back", icon: (0, jsx_runtime_1.jsx)(lucide_react_1.ArrowLeft, { size: 18 }), variant: "ghost", size: "sm", color: subtle, onClick: onBack })), (0, jsx_runtime_1.jsx)(react_2.Flex, { align: "center", justify: "center", boxSize: "36px", borderRadius: "full", bg: primary500, color: "white", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Building2, { size: 18 }) }), (0, jsx_runtime_1.jsxs)(react_2.Box, { children: [(0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(react_2.Heading, { size: "sm", color: heading, fontWeight: 700, children: userName
159
159
  ? `${labels.greeting.replace(/User!?/, "")}${userName}!`.trim()
160
- : labels.greeting }), (0, jsx_runtime_1.jsx)(react_2.Avatar, { size: "xs", name: userName, src: userAvatarUrl })] }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "xs", color: subtle, mt: 0.5, children: labels.manageSubtitle })] })] }), (0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.createNewOrganization, onClick: () => setCreateOpen(true), leftIcon: (0, jsx_runtime_1.jsx)(lucide_react_1.Plus, { size: 16 }), colorScheme: "primary", size: "sm" })] }), isLoading ? ((0, jsx_runtime_1.jsx)(react_2.Box, { ...gridSx, children: Array.from({ length: 6 }).map((_, idx) => ((0, jsx_runtime_1.jsxs)(react_2.Box, { ...cardSx, p: 3, children: [(0, jsx_runtime_1.jsx)(react_2.Skeleton, { boxSize: "36px", borderRadius: "lg", mb: 2 }), (0, jsx_runtime_1.jsx)(react_2.SkeletonText, { noOfLines: 2, spacing: 2 })] }, idx))) })) : !hasOrganizations ? ((0, jsx_runtime_1.jsx)(EmptyState_1.default, { icon: lucide_react_1.Building2, title: labels.noOrganizationsTitle, description: labels.noOrganizationsDescription, minH: "40vh", action: (0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.createOrganization, onClick: () => setCreateOpen(true), leftIcon: (0, jsx_runtime_1.jsx)(lucide_react_1.Plus, { size: 16 }), colorScheme: "primary", size: "sm" }) })) : ((0, jsx_runtime_1.jsxs)(react_2.VStack, { align: "stretch", spacing: 4, children: [activeOrganizations.length > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Box, { children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 2, mb: 2, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Users, { size: 16, color: primary500 }), (0, jsx_runtime_1.jsx)(react_2.Heading, { size: "sm", color: heading, fontWeight: 600, children: labels.activeOrganizations }), sectionBadge(activeOrganizations.length, "blue")] }), (0, jsx_runtime_1.jsx)(react_2.Box, { ...gridSx, children: activeOrganizations.map(renderActiveCard) })] })), invitedOrganizations.length > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Box, { children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 2, mb: 2, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Mail, { size: 16, color: (_y = (_x = colors === null || colors === void 0 ? void 0 : colors.yellow) === null || _x === void 0 ? void 0 : _x[500]) !== null && _y !== void 0 ? _y : "#EAB308" }), (0, jsx_runtime_1.jsx)(react_2.Heading, { size: "sm", color: heading, fontWeight: 600, children: labels.invitedOrganizations }), sectionBadge(invitedOrganizations.length, "yellow")] }), (0, jsx_runtime_1.jsx)(react_2.Box, { ...gridSx, children: invitedOrganizations.map(renderInvitedCard) })] }))] })), footerSlot, (0, jsx_runtime_1.jsx)(CreateOrgModal_1.default, { isOpen: isCreateOpen, onClose: () => setCreateOpen(false), isLoading: isCreating, onSubmit: async (values) => {
160
+ : labels.greeting }), (0, jsx_runtime_1.jsx)(react_2.Avatar, { size: "xs", name: userName, src: userAvatarUrl })] }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "xs", color: subtle, mt: 0.5, children: labels.manageSubtitle })] })] }), (0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.createNewOrganization, onClick: () => setCreateOpen(true), leftIcon: (0, jsx_runtime_1.jsx)(lucide_react_1.Plus, { size: 16 }), colorScheme: "primary", size: "sm" })] }), isLoading ? ((0, jsx_runtime_1.jsx)(react_2.Box, { ...gridSx, children: Array.from({ length: 6 }).map((_, idx) => ((0, jsx_runtime_1.jsxs)(react_2.Box, { ...cardSx, p: 3, children: [(0, jsx_runtime_1.jsx)(react_2.Skeleton, { boxSize: "36px", borderRadius: "lg", mb: 2 }), (0, jsx_runtime_1.jsx)(react_2.SkeletonText, { noOfLines: 2, spacing: 2 })] }, idx))) })) : !hasOrganizations ? ((0, jsx_runtime_1.jsx)(EmptyState_1.default, { icon: lucide_react_1.Building2, title: labels.noOrganizationsTitle, description: labels.noOrganizationsDescription, minH: "40vh", action: (0, jsx_runtime_1.jsx)(Button_1.default, { label: labels.createOrganization, onClick: () => setCreateOpen(true), leftIcon: (0, jsx_runtime_1.jsx)(lucide_react_1.Plus, { size: 16 }), colorScheme: "primary", size: "sm" }) })) : ((0, jsx_runtime_1.jsxs)(react_2.VStack, { align: "stretch", spacing: 4, children: [activeOrganizations.length > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Box, { children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 2, mb: 2, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Users, { size: 16, color: primary500 }), (0, jsx_runtime_1.jsx)(react_2.Heading, { size: "sm", color: heading, fontWeight: 600, children: labels.activeOrganizations }), sectionBadge(activeOrganizations.length, "blue")] }), (0, jsx_runtime_1.jsx)(react_2.Box, { ...gridSx, children: activeOrganizations.map(renderActiveCard) })] })), invitedOrganizations.length > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Box, { children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 2, mb: 2, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.Mail, { size: 16, color: (_0 = (_z = colors === null || colors === void 0 ? void 0 : colors.yellow) === null || _z === void 0 ? void 0 : _z[500]) !== null && _0 !== void 0 ? _0 : "#EAB308" }), (0, jsx_runtime_1.jsx)(react_2.Heading, { size: "sm", color: heading, fontWeight: 600, children: labels.invitedOrganizations }), sectionBadge(invitedOrganizations.length, "yellow")] }), (0, jsx_runtime_1.jsx)(react_2.Box, { ...gridSx, children: invitedOrganizations.map(renderInvitedCard) })] }))] })), footerSlot, (0, jsx_runtime_1.jsx)(CreateOrgModal_1.default, { isOpen: isCreateOpen, onClose: () => setCreateOpen(false), isLoading: isCreating, onSubmit: async (values) => {
161
161
  await (onCreateOrganization === null || onCreateOrganization === void 0 ? void 0 : onCreateOrganization(values));
162
162
  setCreateOpen(false);
163
163
  }, labels: labels }), (0, jsx_runtime_1.jsx)(DeleteOrgModal_1.default, { isOpen: deleteOrgId !== null, onClose: () => setDeleteOrgId(null), onConfirm: async () => {
@@ -9,8 +9,7 @@ const lucide_react_1 = require("lucide-react");
9
9
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
10
10
  const ToolTip_1 = __importDefault(require("../ToolTip/ToolTip"));
11
11
  const PdfViewer = ({ pdfUrl, fileName = "Document.pdf", height = "480px", showToolbar = true, borderRadius = "12px", }) => {
12
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
13
12
  const theme = (0, useCustomTheme_1.useCustomTheme)();
14
- return ((0, jsx_runtime_1.jsxs)(react_1.Box, { border: "1px solid", borderColor: (_b = (_a = theme.colors.gray) === null || _a === void 0 ? void 0 : _a[200]) !== null && _b !== void 0 ? _b : "#E2E8F0", borderRadius: borderRadius, overflow: "hidden", bg: theme.colors.white, children: [showToolbar && ((0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", justify: "space-between", px: 4, py: 2.5, borderBottom: "1px solid", borderColor: (_d = (_c = theme.colors.gray) === null || _c === void 0 ? void 0 : _c[100]) !== null && _d !== void 0 ? _d : "#EDF2F7", bg: (_f = (_e = theme.colors.gray) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#F8FAFC", children: [(0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: 2, minW: 0, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.FileText, { size: 18, color: theme.colors.primary[500] }), (0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "sm", fontWeight: 500, color: (_h = (_g = theme.colors.gray) === null || _g === void 0 ? void 0 : _g[700]) !== null && _h !== void 0 ? _h : "#2D3748", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", children: fileName })] }), (0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: 1, children: [(0, jsx_runtime_1.jsx)(ToolTip_1.default, { label: "Open in new tab", placement: "top", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "a", href: pdfUrl, target: "_blank", rel: "noopener noreferrer", p: 2, borderRadius: "8px", color: (_k = (_j = theme.colors.gray) === null || _j === void 0 ? void 0 : _j[600]) !== null && _k !== void 0 ? _k : "#4A5568", _hover: { bg: theme.colors.primary[50], color: theme.colors.primary[500] }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.ExternalLink, { size: 16 }) }) }), (0, jsx_runtime_1.jsx)(ToolTip_1.default, { label: "Download", placement: "top", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "a", href: pdfUrl, download: fileName, p: 2, borderRadius: "8px", color: (_m = (_l = theme.colors.gray) === null || _l === void 0 ? void 0 : _l[600]) !== null && _m !== void 0 ? _m : "#4A5568", _hover: { bg: theme.colors.primary[50], color: theme.colors.primary[500] }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Download, { size: 16 }) }) })] })] })), (0, jsx_runtime_1.jsx)(react_1.Box, { as: "embed", src: pdfUrl, type: "application/pdf", width: "100%", height: height, display: "block" })] }));
13
+ return ((0, jsx_runtime_1.jsxs)(react_1.Box, { border: "1px solid", borderColor: theme.colors.gray[200], borderRadius: borderRadius, overflow: "hidden", bg: theme.colors.background[50], children: [showToolbar && ((0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", justify: "space-between", px: 4, py: 2.5, borderBottom: "1px solid", borderColor: theme.colors.gray[100], bg: theme.colors.gray[50], children: [(0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: 2, minW: 0, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.FileText, { size: 18, color: theme.colors.primary[500] }), (0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "sm", fontWeight: 500, color: theme.colors.gray[700], overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", children: fileName })] }), (0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: 1, children: [(0, jsx_runtime_1.jsx)(ToolTip_1.default, { label: "Open in new tab", placement: "top", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "a", href: pdfUrl, target: "_blank", rel: "noopener noreferrer", p: 2, borderRadius: "8px", color: theme.colors.gray[600], _hover: { bg: theme.colors.primary[50], color: theme.colors.primary[500] }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.ExternalLink, { size: 16 }) }) }), (0, jsx_runtime_1.jsx)(ToolTip_1.default, { label: "Download", placement: "top", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "a", href: pdfUrl, download: fileName, p: 2, borderRadius: "8px", color: theme.colors.gray[600], _hover: { bg: theme.colors.primary[50], color: theme.colors.primary[500] }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Download, { size: 16 }) }) })] })] })), (0, jsx_runtime_1.jsx)(react_1.Box, { as: "embed", src: pdfUrl, type: "application/pdf", width: "100%", height: height, display: "block" })] }));
15
14
  };
16
15
  exports.default = PdfViewer;
@@ -1 +1 @@
1
- {"version":3,"file":"PinInput.d.ts","sourceRoot":"","sources":["../../../src/Components/PinInput/PinInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EACjC,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAiB,EACjB,OAAO,EACP,IAAQ,EACR,KAAK,EACL,EAAE,EACF,UAAU,EACV,aAAa,EACb,kBAAkB,GAClB,EAAE,mBAAmB,2CA2CrB"}
1
+ {"version":3,"file":"PinInput.d.ts","sourceRoot":"","sources":["../../../src/Components/PinInput/PinInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EACjC,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,UAAU,EACV,IAAI,EACJ,KAAiB,EACjB,OAAO,EACP,IAAQ,EACR,KAAK,EACL,EAAE,EACF,UAAU,EACV,aAAa,EACb,kBAAkB,GAClB,EAAE,mBAAmB,2CA8CrB"}
@@ -7,7 +7,11 @@ const useCustomTheme_1 = require("../../Theme/useCustomTheme");
7
7
  const FormLabel_1 = require("../Common/FormLabel");
8
8
  function PinInputs({ otp, mask, defaultValue, placeholder, manageFocus, errorBorderColor, focusBorderColor, onChange, onComplete, type, color = "primary", variant, pins = 3, label, id, isRequired, isInformation, informationMessage, }) {
9
9
  const theme = (0, useCustomTheme_1.useCustomTheme)();
10
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [label && ((0, jsx_runtime_1.jsx)(FormLabel_1.TextLabel, { label: label, id: id, isRequired: isRequired, isInformation: isInformation, informationMessage: informationMessage })), (0, jsx_runtime_1.jsx)(react_1.HStack, { children: (0, jsx_runtime_1.jsx)(react_1.PinInput, { otp: otp, mask: mask, defaultValue: defaultValue, placeholder: placeholder, manageFocus: manageFocus, errorBorderColor: errorBorderColor, focusBorderColor: focusBorderColor, onChange: onChange, onComplete: onComplete, type: type, colorScheme: color, variant: variant, children: Array.from({ length: pins }).map((_, index) => ((0, jsx_runtime_1.jsx)(react_1.PinInputField, { backgroundColor: theme.colors.background[100], borderColor: theme.colors.boxborder[300], _focus: {
10
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [label && ((0, jsx_runtime_1.jsx)(FormLabel_1.TextLabel, { label: label, id: id, isRequired: isRequired, isInformation: isInformation, informationMessage: informationMessage })), (0, jsx_runtime_1.jsx)(react_1.HStack, { children: (0, jsx_runtime_1.jsx)(react_1.PinInput, { otp: otp, mask: mask, defaultValue: defaultValue, placeholder: placeholder, manageFocus: manageFocus, errorBorderColor: errorBorderColor, focusBorderColor: focusBorderColor, onChange: onChange, onComplete: onComplete, type: type, colorScheme: color, variant: variant, children: Array.from({ length: pins }).map((_, index) => ((0, jsx_runtime_1.jsx)(react_1.PinInputField, { backgroundColor: theme.colors.background[100],
11
+ // [800], not [300]/[700]: WCAG 1.4.11 needs >=3.0 for a control boundary, measured
12
+ // against the parent surface — up to `muted` (lightest). [700] fails there (2.41-2.72);
13
+ // [800] clears all named surfaces with margin (3.44-3.90).
14
+ borderColor: theme.colors.boxborder[800], _focus: {
11
15
  borderColor: theme.colors.primary[500],
12
16
  boxShadow: `0 0 0 0.063rem ${theme.colors.primary[500]}`,
13
17
  } }, index))) }) })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"PinInputs.d.ts","sourceRoot":"","sources":["../../../src/Components/PinInputs/PinInputs.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,QAAA,MAAM,SAAS,GAAI,oEAQhB,cAAc,4CAuEhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"PinInputs.d.ts","sourceRoot":"","sources":["../../../src/Components/PinInputs/PinInputs.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,QAAA,MAAM,SAAS,GAAI,oEAQhB,cAAc,4CAyEhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -14,9 +14,11 @@ const PinInputs = ({ length = 3, label, error, onChange, onComplete, mask = fals
14
14
  const { colors } = theme;
15
15
  const [values, setValues] = (0, react_1.useState)(Array(length).fill(""));
16
16
  const inputsRef = (0, react_1.useRef)([]);
17
+ // [800], not [500]: WCAG 1.4.11 needs >=3.0 for a control boundary against any named surface
18
+ // up to `muted` (lightest); [500] fails there, [800] clears all with margin.
17
19
  const borderColor = error
18
20
  ? (_b = (_a = colors.semantic) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b[500]
19
- : (_c = colors.boxborder) === null || _c === void 0 ? void 0 : _c[500];
21
+ : (_c = colors.boxborder) === null || _c === void 0 ? void 0 : _c[800];
20
22
  const focusRing = error ? (_d = colors.boxShadow) === null || _d === void 0 ? void 0 : _d.error : (_e = colors.boxShadow) === null || _e === void 0 ? void 0 : _e.primary;
21
23
  const focusShadow = focusRing
22
24
  ? `0 0 0 0.125rem ${focusRing}`
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { PlanBadgeProps } from "./PlanBadgeProps";
3
+ /**
4
+ * The top-bar plan badge: resolves an org's plan state into a `PlanPill`, or
5
+ * renders nothing when there is nothing to say (or nobody who can act on it).
6
+ *
7
+ * Use this when the app has the plan state to hand; drop to `PlanPill` directly
8
+ * for a badge whose copy is decided elsewhere.
9
+ */
10
+ declare const PlanBadge: React.FC<PlanBadgeProps>;
11
+ export default PlanBadge;
12
+ //# sourceMappingURL=PlanBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanBadge.d.ts","sourceRoot":"","sources":["../../../src/Components/PlanBadge/PlanBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;GAMG;AACH,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAsBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const planBadge_1 = require("../../Utils/planBadge");
8
+ const PlanPill_1 = __importDefault(require("../PlanPill/PlanPill"));
9
+ /**
10
+ * The top-bar plan badge: resolves an org's plan state into a `PlanPill`, or
11
+ * renders nothing when there is nothing to say (or nobody who can act on it).
12
+ *
13
+ * Use this when the app has the plan state to hand; drop to `PlanPill` directly
14
+ * for a badge whose copy is decided elsewhere.
15
+ */
16
+ const PlanBadge = ({ input, maxLabelWidth, ariaLabel, onClick, }) => {
17
+ const { visible, label, mobileLabel, subtitle, tone } = (0, planBadge_1.resolvePlanBadge)(input);
18
+ if (!visible)
19
+ return null;
20
+ return ((0, jsx_runtime_1.jsx)(PlanPill_1.default, { label: label, mobileLabel: mobileLabel, status: subtitle, tone: tone, maxLabelWidth: maxLabelWidth, ariaLabel: ariaLabel, onClick: onClick }));
21
+ };
22
+ exports.default = PlanBadge;
@@ -0,0 +1,11 @@
1
+ import { PlanBadgeInput } from "../../Utils/planBadge";
2
+ export interface PlanBadgeProps {
3
+ /** The org's plan state. Resolved into label, tone and chip text internally. */
4
+ input: PlanBadgeInput;
5
+ /** Truncate the label beyond this width. */
6
+ maxLabelWidth?: string;
7
+ /** Accessible label (falls back to `label — status`). */
8
+ ariaLabel?: string;
9
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
10
+ }
11
+ //# sourceMappingURL=PlanBadgeProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanBadgeProps.d.ts","sourceRoot":"","sources":["../../../src/Components/PlanBadge/PlanBadgeProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,KAAK,EAAE,cAAc,CAAC;IACtB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACtD"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { PlanPillProps } from "./PlanPillProps";
3
+ declare const PlanPill: React.FC<PlanPillProps>;
4
+ export default PlanPill;
5
+ //# sourceMappingURL=PlanPill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanPill.d.ts","sourceRoot":"","sources":["../../../src/Components/PlanPill/PlanPill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,aAAa,EAAgB,MAAM,iBAAiB,CAAC;AAQ9D,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwGrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const react_1 = require("@chakra-ui/react");
5
+ const lucide_react_1 = require("lucide-react");
6
+ const useCustomTheme_1 = require("../../Theme/useCustomTheme");
7
+ const accentText_1 = require("../../Theme/tokens/builders/accentText");
8
+ const planPillGradient_1 = require("./planPillGradient");
9
+ const TONE_ICON = {
10
+ normal: lucide_react_1.Sparkles,
11
+ warning: lucide_react_1.Clock,
12
+ danger: lucide_react_1.AlertCircle,
13
+ };
14
+ const PlanPill = ({ label, mobileLabel, status, tone = "normal", icon, gradient, maxLabelWidth = "150px", ariaLabel, onClick, }) => {
15
+ const theme = (0, useCustomTheme_1.useCustomTheme)();
16
+ const c = theme.colors;
17
+ const toneGradient = {
18
+ normal: planPillGradient_1.ACCENT_GRADIENT,
19
+ warning: { from: c.semantic.warning[400], to: c.semantic.warning[600] },
20
+ danger: { from: c.semantic.error[400], to: c.semantic.error[600] },
21
+ };
22
+ const resolved = gradient !== null && gradient !== void 0 ? gradient : toneGradient[tone];
23
+ const ink = (0, accentText_1.onGradient)(resolved.from, resolved.to, c.white, c.black);
24
+ // The chip is a translucent inset of the pill itself, so it tints with whichever
25
+ // ink won — a white wash under black text would wash the chip out entirely.
26
+ const onDark = ink === c.white;
27
+ const Icon = icon === undefined ? TONE_ICON[tone] : icon;
28
+ const hasMobile = !!mobileLabel && mobileLabel !== label;
29
+ return ((0, jsx_runtime_1.jsxs)(react_1.Box, { as: "button", type: "button", "aria-label": ariaLabel || (status ? `${label} — ${status}` : label), onClick: onClick, display: "inline-flex", alignItems: "center", gap: "7px", pl: "12px", pr: status ? "5px" : "12px", py: "3px", bgImage: `linear-gradient(135deg, ${resolved.from} 0%, ${resolved.to} 100%)`, color: ink, borderRadius: "999px", whiteSpace: "nowrap", cursor: "pointer", transition: "transform 0.2s ease, box-shadow 0.2s ease", _hover: {
30
+ transform: "translateY(-1px)",
31
+ boxShadow: `0 6px 18px ${resolved.from}59`,
32
+ }, _focusVisible: {
33
+ outline: "none",
34
+ boxShadow: `0 0 0 3px ${resolved.from}55`,
35
+ }, sx: {
36
+ "@media (prefers-reduced-motion: reduce)": {
37
+ transition: "none",
38
+ _hover: { transform: "none" },
39
+ },
40
+ }, children: [Icon ? (0, jsx_runtime_1.jsx)(Icon, { size: 12, strokeWidth: 2.5, "aria-hidden": true }) : null, (0, jsx_runtime_1.jsx)(react_1.Text, { as: "span", fontSize: "12.5px", fontWeight: "600", lineHeight: "18px", overflow: "hidden", textOverflow: "ellipsis", maxW: maxLabelWidth, display: hasMobile ? { base: "none", md: "block" } : "block", children: label }), hasMobile ? ((0, jsx_runtime_1.jsx)(react_1.Text, { as: "span", fontSize: "12.5px", fontWeight: "600", lineHeight: "18px", display: { base: "block", md: "none" }, children: mobileLabel })) : null, status ? ((0, jsx_runtime_1.jsx)(react_1.Flex, { as: "span", align: "center", px: "8px", borderRadius: "999px", bg: onDark ? "rgba(255,255,255,0.22)" : "rgba(0,0,0,0.12)", border: "1px solid", borderColor: onDark ? "rgba(255,255,255,0.28)" : "rgba(0,0,0,0.08)", fontSize: "11px", fontWeight: "700", lineHeight: "18px", sx: { fontVariantNumeric: "tabular-nums" }, children: status })) : null] }));
41
+ };
42
+ exports.default = PlanPill;