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
@@ -0,0 +1,28 @@
1
+ import { ElementType } from "react";
2
+ /**
3
+ * Urgency of the plan state. Drives the gradient and the leading icon, so the
4
+ * badge reads as healthy / expiring soon / expired before the text is read.
5
+ */
6
+ export type PlanPillTone = "normal" | "warning" | "danger";
7
+ export interface PlanPillProps {
8
+ /** Primary label, e.g. the plan name or an upgrade prompt. */
9
+ label: string;
10
+ /** Compact label for small screens. Defaults to `label`. */
11
+ mobileLabel?: string;
12
+ /** Remaining time, e.g. `3mo left`. Rendered as an inset chip; omitted when empty. */
13
+ status?: string;
14
+ tone?: PlanPillTone;
15
+ /** Leading icon. Defaults to a tone-appropriate lucide icon. Pass null to hide. */
16
+ icon?: ElementType | null;
17
+ /** Explicit gradient stops. Overrides the tone's theme gradient. */
18
+ gradient?: {
19
+ from: string;
20
+ to: string;
21
+ };
22
+ /** Truncate the label beyond this width. */
23
+ maxLabelWidth?: string;
24
+ /** Accessible label (falls back to `label — status`). */
25
+ ariaLabel?: string;
26
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
27
+ }
28
+ //# sourceMappingURL=PlanPillProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlanPillProps.d.ts","sourceRoot":"","sources":["../../../src/Components/PlanPill/PlanPillProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sFAAsF;IACtF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,mFAAmF;IACnF,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B,oEAAoE;IACpE,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,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,22 @@
1
+ export type Gradient = {
2
+ from: string;
3
+ to: string;
4
+ };
5
+ /**
6
+ * The plan badge's `normal` tone is a single fixed accent — not brand-driven, and
7
+ * not mode-dependent.
8
+ *
9
+ * Its tone carries meaning (normal / warning / danger), and a brand gradient can
10
+ * collide with that: rosewood's `#c74962 → #ea0727` is red, so a healthy plan
11
+ * rendered as if it had expired. Greyscale brands failed the other way, sinking
12
+ * the badge into the header chrome.
13
+ *
14
+ * One accent for both color modes is deliberate: a lighter dark-mode variant was
15
+ * tried and flipped `onGradient`'s ink to black, which read as a washed-out candy
16
+ * pill on dark chrome. These stops keep white ink in both modes, so the badge looks
17
+ * like the same component everywhere. Verified at AA (>= 4.5:1) on both stops.
18
+ *
19
+ * Consumers who genuinely want another colour still pass `gradient`.
20
+ */
21
+ export declare const ACCENT_GRADIENT: Gradient;
22
+ //# sourceMappingURL=planPillGradient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"planPillGradient.d.ts","sourceRoot":"","sources":["../../../src/Components/PlanPill/planPillGradient.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,EAAE,QAA6C,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ACCENT_GRADIENT = void 0;
4
+ /**
5
+ * The plan badge's `normal` tone is a single fixed accent — not brand-driven, and
6
+ * not mode-dependent.
7
+ *
8
+ * Its tone carries meaning (normal / warning / danger), and a brand gradient can
9
+ * collide with that: rosewood's `#c74962 → #ea0727` is red, so a healthy plan
10
+ * rendered as if it had expired. Greyscale brands failed the other way, sinking
11
+ * the badge into the header chrome.
12
+ *
13
+ * One accent for both color modes is deliberate: a lighter dark-mode variant was
14
+ * tried and flipped `onGradient`'s ink to black, which read as a washed-out candy
15
+ * pill on dark chrome. These stops keep white ink in both modes, so the badge looks
16
+ * like the same component everywhere. Verified at AA (>= 4.5:1) on both stops.
17
+ *
18
+ * Consumers who genuinely want another colour still pass `gradient`.
19
+ */
20
+ exports.ACCENT_GRADIENT = { from: "#8B3FC8", to: "#df187a" };
@@ -45,7 +45,7 @@ const ProductCard = ({ id, label, productImage, rating, reviews, tags, options,
45
45
  const imageList = (_a = productImage === null || productImage === void 0 ? void 0 : productImage.filter((img) => img.isImage !== false)) !== null && _a !== void 0 ? _a : [];
46
46
  const isSizeType = (s) => s === "xs" || s === "sm" || s === "md" || s === "lg";
47
47
  const safeSize = isSizeType(size) ? size : "md";
48
- return ((0, jsx_runtime_1.jsxs)(react_2.Box, { borderWidth: "0.063rem", borderRadius: "lg", overflow: "hidden", w: "full", maxW: cardWidth, h: "full", display: "flex", flexDirection: "column", position: "relative", bg: theme.colors.white, boxShadow: "lg", children: [imageList.length > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Box, { onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), h: imgHeight, w: "full", overflow: "hidden", onClick: onClick, cursor: "pointer", children: [(0, jsx_runtime_1.jsx)(react_2.Image, { src: hover && ((_b = imageList === null || imageList === void 0 ? void 0 : imageList[1]) === null || _b === void 0 ? void 0 : _b.imageUrl) ? imageList[1].imageUrl : (_c = imageList === null || imageList === void 0 ? void 0 : imageList[0]) === null || _c === void 0 ? void 0 : _c.imageUrl, alt: label, w: "full", h: "full", transform: hover ? "scale(1.06)" : "scale(1)", transition: "transform 0.7s cubic-bezier(0.16, 1, 0.3, 1)" }), batch && ((0, jsx_runtime_1.jsx)(react_2.Badge, { colorScheme: batch.color || "green", position: "absolute", top: 2, right: 2, fontSize: {
48
+ return ((0, jsx_runtime_1.jsxs)(react_2.Box, { borderWidth: "0.063rem", borderRadius: "lg", overflow: "hidden", w: "full", maxW: cardWidth, h: "full", display: "flex", flexDirection: "column", position: "relative", bg: theme.colors.background[50], boxShadow: "lg", children: [imageList.length > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Box, { onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), h: imgHeight, w: "full", overflow: "hidden", onClick: onClick, cursor: "pointer", children: [(0, jsx_runtime_1.jsx)(react_2.Image, { src: hover && ((_b = imageList === null || imageList === void 0 ? void 0 : imageList[1]) === null || _b === void 0 ? void 0 : _b.imageUrl) ? imageList[1].imageUrl : (_c = imageList === null || imageList === void 0 ? void 0 : imageList[0]) === null || _c === void 0 ? void 0 : _c.imageUrl, alt: label, w: "full", h: "full", transform: hover ? "scale(1.06)" : "scale(1)", transition: "transform 0.7s cubic-bezier(0.16, 1, 0.3, 1)" }), batch && ((0, jsx_runtime_1.jsx)(react_2.Badge, { colorScheme: batch.color || "green", position: "absolute", top: 2, right: 2, fontSize: {
49
49
  xs: "xs",
50
50
  sm: "sm",
51
51
  md: "md",
@@ -1 +1 @@
1
- {"version":3,"file":"ProductPrice.d.ts","sourceRoot":"","sources":["../../../src/Components/ProductCard/ProductPrice.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAY3D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGvD,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AA6CF,QAAA,MAAM,YAAY,GAAI,wCAAwC,iBAAiB,4CAmP9E,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ProductPrice.d.ts","sourceRoot":"","sources":["../../../src/Components/ProductCard/ProductPrice.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAY3D,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAKvD,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAA;IACd,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B,CAAC;AA6CF,QAAA,MAAM,YAAY,GAAI,wCAAwC,iBAAiB,4CAiQ9E,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -7,6 +7,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
7
7
  const react_1 = require("react");
8
8
  const react_2 = require("@chakra-ui/react");
9
9
  const OverflowTooltipText_1 = __importDefault(require("../SideBar/components/OverflowTooltipText"));
10
+ const useCustomTheme_1 = require("../../Theme/useCustomTheme");
11
+ const accentText_1 = require("../../Theme/tokens/builders/accentText");
10
12
  const sizeConfig = {
11
13
  xs: {
12
14
  font: "xs",
@@ -51,6 +53,7 @@ const sizeConfig = {
51
53
  };
52
54
  const ProductPrice = ({ options, size, onSelect, rightSlot }) => {
53
55
  const cfg = sizeConfig[size];
56
+ const theme = (0, useCustomTheme_1.useCustomTheme)();
54
57
  const [isOpen, setIsOpen] = (0, react_1.useState)(false);
55
58
  const [selected, setSelected] = (0, react_1.useState)(options[0]);
56
59
  const [dropdownPosition, setDropdownPosition] = (0, react_1.useState)({ top: 0, left: 0, width: 0 });
@@ -91,16 +94,16 @@ const ProductPrice = ({ options, size, onSelect, rightSlot }) => {
91
94
  // py={cfg.py}
92
95
  rounded: "md", display: "inline-block", w: "100%", children: (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: cfg.label, fontWeight: "medium", children: options[0].label }) })) : ((0, jsx_runtime_1.jsxs)(react_2.Box, { ref: buttonRef, onClick: () => setIsOpen(!isOpen), border: "0.063rem solid", borderColor: "red.300", bg: "red.50", px: cfg.px,
93
96
  // py={cfg.py}
94
- rounded: "md", cursor: "pointer", display: "flex", justifyContent: "space-between", alignItems: "center", w: "100%", children: [(0, jsx_runtime_1.jsx)(react_2.Box, { flex: "1", minW: 0, children: (0, jsx_runtime_1.jsx)(OverflowTooltipText_1.default, { placement: "top", maxWidth: "100%", fontSize: cfg.label, fontWeight: "medium", whiteSpace: "nowrap", children: selected.label }) }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: cfg.font, color: "red.400", transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)', transition: "transform 0.2s", children: "\u25BE" })] })), !isSingleOption && isOpen && ((0, jsx_runtime_1.jsx)(react_2.Portal, { children: (0, jsx_runtime_1.jsx)(react_2.Box, { ref: dropdownRef, position: "fixed", top: `${dropdownPosition.top}px`, left: `${dropdownPosition.left}px`, width: `${dropdownPosition.width}px`, bg: "white", border: "0.063rem solid", borderColor: "red.300", borderRadius: "md", overflow: "hidden", maxH: "13rem", overflowY: "auto", shadow: "md", zIndex: 100000, children: options.map((option) => {
97
+ rounded: "md", cursor: "pointer", display: "flex", justifyContent: "space-between", alignItems: "center", w: "100%", children: [(0, jsx_runtime_1.jsx)(react_2.Box, { flex: "1", minW: 0, children: (0, jsx_runtime_1.jsx)(OverflowTooltipText_1.default, { placement: "top", maxWidth: "100%", fontSize: cfg.label, fontWeight: "medium", whiteSpace: "nowrap", children: selected.label }) }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: cfg.font, color: (0, accentText_1.accentTextOnCanvas)(theme.colors.red, theme.colors.red[50]), transform: isOpen ? 'rotate(180deg)' : 'rotate(0deg)', transition: "transform 0.2s", children: "\u25BE" })] })), !isSingleOption && isOpen && ((0, jsx_runtime_1.jsx)(react_2.Portal, { children: (0, jsx_runtime_1.jsx)(react_2.Box, { ref: dropdownRef, position: "fixed", top: `${dropdownPosition.top}px`, left: `${dropdownPosition.left}px`, width: `${dropdownPosition.width}px`, bg: theme.colors.background[50], border: "0.063rem solid", borderColor: "red.300", borderRadius: "md", overflow: "hidden", maxH: "13rem", overflowY: "auto", shadow: "md", zIndex: 100000, children: options.map((option) => {
95
98
  const discounted = getDiscountedPrice(option);
96
99
  const isSelected = selected.var_id === option.var_id;
97
- return ((0, jsx_runtime_1.jsxs)(react_2.Grid, { px: 1, py: 0.5, cursor: "pointer", bg: isSelected ? 'red.50' : 'white', borderLeft: isSelected ? '0.25rem solid' : '0.25rem solid transparent', borderLeftColor: isSelected ? 'red.300' : 'transparent', _hover: { bg: 'red.100' }, onClick: () => {
100
+ return ((0, jsx_runtime_1.jsxs)(react_2.Grid, { px: 1, py: 0.5, cursor: "pointer", bg: isSelected ? 'red.50' : theme.colors.background[50], borderLeft: isSelected ? '0.25rem solid' : '0.25rem solid transparent', borderLeftColor: isSelected ? 'red.300' : 'transparent', _hover: { bg: 'red.100' }, onClick: () => {
98
101
  setSelected(option);
99
102
  setIsOpen(false);
100
103
  }, templateColumns: { base: '1fr auto', md: '1fr auto' },
101
104
  // columnGap={{ base: 2, md: 3 }}
102
105
  // rowGap={{ base: 1.5, md: 2 }}
103
- alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_2.HStack, { gridColumn: 1, gridRow: 1, spacing: 2, align: "center", minW: 0, mb: 0, children: (0, jsx_runtime_1.jsx)(react_2.Box, { flex: "1", minW: 0, children: (0, jsx_runtime_1.jsx)(OverflowTooltipText_1.default, { placement: "top", maxWidth: "100%", fontSize: { base: "xs", md: "sm" }, fontWeight: "medium", whiteSpace: "nowrap", children: option.label }) }) }), (0, jsx_runtime_1.jsx)(react_2.Box, { gridColumn: 1, gridRow: 2, mt: 0, textAlign: "left", children: (0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, align: "center", children: [option.offer > 0 && ((0, jsx_runtime_1.jsx)(react_2.Badge, { bg: "green.100", color: "green.700", borderRadius: "md", px: { base: 0, md: 0.5 }, py: { base: 0, md: 0.25 }, fontWeight: "bold", fontSize: "10px", flexShrink: 0, children: isMobile ? `${option.offer}%` : `${option.offer}% OFF` })), (0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "sm", fontWeight: "bold", color: "red.500", whiteSpace: "nowrap", children: ["\u20B9", discounted] }), option.offer > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xs", color: "gray.500", textDecoration: "line-through", whiteSpace: "nowrap", children: ["\u20B9", option.price] }))] }) }), (0, jsx_runtime_1.jsx)(react_2.Box, { gridColumn: 2, gridRow: 1, ml: { base: 0, md: 0 }, justifySelf: "end", w: { base: "0.625rem", md: "0.75rem" }, h: { base: "0.625rem", md: "0.75rem" }, minW: { base: "0.625rem", md: "0.75rem" }, borderRadius: "full", border: "0.125rem solid", borderColor: isSelected ? 'red.500' : 'gray.600', bg: "white", display: "flex", alignItems: "center", justifyContent: "center", boxShadow: "none", children: isSelected && ((0, jsx_runtime_1.jsx)(react_2.Box, { w: { base: "0.25rem", md: "0.3125rem" }, h: { base: "0.25rem", md: "0.3125rem" }, bg: "red.500", borderRadius: "full" })) })] }, option.var_id));
104
- }) }) })), (0, jsx_runtime_1.jsxs)(react_2.Flex, { mt: 2, w: "full", gap: 3, direction: { base: "column", md: "row" }, align: { base: "flex-start", md: "center" }, justify: { base: "flex-start", md: rightSlot ? "space-between" : "flex-start" }, children: [(0, jsx_runtime_1.jsxs)(react_2.Box, { display: "flex", alignItems: "center", fontSize: cfg.price, gap: 2, minW: 0, children: [selected.offer > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Text, { color: "gray.400", textDecoration: "line-through", children: ["\u20B9", selected.price] })), (0, jsx_runtime_1.jsxs)(react_2.Text, { color: "red.500", fontWeight: "semibold", children: ["\u20B9", getDiscountedPrice(selected)] })] }), rightSlot && ((0, jsx_runtime_1.jsx)(react_2.Box, { flexShrink: 0, mt: { base: 2, md: 0 }, children: rightSlot }))] })] }));
106
+ alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_2.HStack, { gridColumn: 1, gridRow: 1, spacing: 2, align: "center", minW: 0, mb: 0, children: (0, jsx_runtime_1.jsx)(react_2.Box, { flex: "1", minW: 0, children: (0, jsx_runtime_1.jsx)(OverflowTooltipText_1.default, { placement: "top", maxWidth: "100%", fontSize: { base: "xs", md: "sm" }, fontWeight: "medium", whiteSpace: "nowrap", children: option.label }) }) }), (0, jsx_runtime_1.jsx)(react_2.Box, { gridColumn: 1, gridRow: 2, mt: 0, textAlign: "left", children: (0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, align: "center", children: [option.offer > 0 && ((0, jsx_runtime_1.jsx)(react_2.Badge, { bg: "green.100", color: "green.700", borderRadius: "md", px: { base: 0, md: 0.5 }, py: { base: 0, md: 0.25 }, fontWeight: "bold", fontSize: "10px", flexShrink: 0, children: isMobile ? `${option.offer}%` : `${option.offer}% OFF` })), (0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "sm", fontWeight: "bold", color: (0, accentText_1.accentTextOnCanvas)(theme.colors.red, isSelected ? theme.colors.red[50] : theme.colors.background[50]), whiteSpace: "nowrap", children: ["\u20B9", discounted] }), option.offer > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xs", color: "gray.500", textDecoration: "line-through", whiteSpace: "nowrap", children: ["\u20B9", option.price] }))] }) }), (0, jsx_runtime_1.jsx)(react_2.Box, { gridColumn: 2, gridRow: 1, ml: { base: 0, md: 0 }, justifySelf: "end", w: { base: "0.625rem", md: "0.75rem" }, h: { base: "0.625rem", md: "0.75rem" }, minW: { base: "0.625rem", md: "0.75rem" }, borderRadius: "full", border: "0.125rem solid", borderColor: isSelected ? 'red.500' : 'gray.600', bg: theme.colors.background[50], display: "flex", alignItems: "center", justifyContent: "center", boxShadow: "none", children: isSelected && ((0, jsx_runtime_1.jsx)(react_2.Box, { w: { base: "0.25rem", md: "0.3125rem" }, h: { base: "0.25rem", md: "0.3125rem" }, bg: "red.500", borderRadius: "full" })) })] }, option.var_id));
107
+ }) }) })), (0, jsx_runtime_1.jsxs)(react_2.Flex, { mt: 2, w: "full", gap: 3, direction: { base: "column", md: "row" }, align: { base: "flex-start", md: "center" }, justify: { base: "flex-start", md: rightSlot ? "space-between" : "flex-start" }, children: [(0, jsx_runtime_1.jsxs)(react_2.Box, { display: "flex", alignItems: "center", fontSize: cfg.price, gap: 2, minW: 0, children: [selected.offer > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Text, { color: "gray.500", textDecoration: "line-through", children: ["\u20B9", selected.price] })), (0, jsx_runtime_1.jsxs)(react_2.Text, { color: (0, accentText_1.accentTextOnCanvas)(theme.colors.red, theme.colors.backgroundColor.main), fontWeight: "semibold", children: ["\u20B9", getDiscountedPrice(selected)] })] }), rightSlot && ((0, jsx_runtime_1.jsx)(react_2.Box, { flexShrink: 0, mt: { base: 2, md: 0 }, children: rightSlot }))] })] }));
105
108
  };
106
109
  exports.default = ProductPrice;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductReview.d.ts","sourceRoot":"","sources":["../../../src/Components/ProductCard/ProductReview.tsx"],"names":[],"mappings":"AAGA,KAAK,kBAAkB,GAAG;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAA;AAED,QAAA,MAAM,aAAa,GAAI,6BAAiC,kBAAkB,4CAiEzE,CAAC;AACF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ProductReview.d.ts","sourceRoot":"","sources":["../../../src/Components/ProductCard/ProductReview.tsx"],"names":[],"mappings":"AAGA,KAAK,kBAAkB,GAAG;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAA;AASD,QAAA,MAAM,aAAa,GAAI,6BAAiC,kBAAkB,4CA8DzE,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -3,15 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const react_1 = require("@chakra-ui/react");
5
5
  const lucide_react_1 = require("lucide-react");
6
+ // The theme's `yellow` scale reverses index roles in dark mode (like every utility hue), so
7
+ // pulling it through the theme would silently flip this decorative "filled star" from gold to
8
+ // pale. A rating star is a universal, brand-independent gold — not something that should follow
9
+ // canvas/mode — so it's pinned here instead. Needs a design-token addition (a mode-stable
10
+ // "rating gold") to pixelize-design-library if this pattern is needed elsewhere.
11
+ const RATING_STAR_FILL = "#ECC94B";
6
12
  const ProductReview = ({ rating, reviewCount, mb = 0 }) => {
7
13
  const hasRating = rating !== undefined && rating !== null;
8
14
  const hasReviewCount = reviewCount !== undefined && reviewCount !== null;
9
- // Get colors from theme
10
- const [yellow400] = (0, react_1.useToken)('colors', ['yellow.400']);
11
15
  // Convert rating to number and ensure it's between 0 and 5
12
16
  // Calculate fill percentage: (rating / 5) * 100%
13
17
  const numericRating = hasRating ? Math.min(Math.max(Number(rating), 0), 5) : 0;
14
18
  const fillPercentage = (numericRating / 6) * 100;
15
- return ((0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: 2, mb: mb, children: [hasRating && ((0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: 1, bg: "teal.900", color: "white", px: 2, borderRadius: "md", children: [(0, jsx_runtime_1.jsxs)(react_1.Box, { position: "relative", flexShrink: 0, display: "inline-block", width: "14px", height: "14px", lineHeight: 0, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { position: "absolute", top: 0, left: 0, width: "14px", height: "14px", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Star, { size: 14, color: "white", fill: "none", stroke: "white", strokeWidth: 1.5 }) }), fillPercentage > 0 && ((0, jsx_runtime_1.jsx)(react_1.Box, { position: "absolute", top: 0, left: 0, width: `${fillPercentage}%`, height: "100%", overflow: "hidden", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Star, { size: 14, color: yellow400, fill: yellow400 }) }))] }), (0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "sm", fontWeight: "bold", color: "white", children: numericRating })] })), hasRating && hasReviewCount && (0, jsx_runtime_1.jsx)(react_1.Box, { h: "4", w: "0.063rem", bg: "gray.400" }), hasReviewCount && ((0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: "1", children: [(0, jsx_runtime_1.jsx)(react_1.Icon, { as: lucide_react_1.BookCheck, boxSize: 3.5 }), (0, jsx_runtime_1.jsxs)(react_1.Text, { fontSize: "sm", color: "gray.600", children: ["(", reviewCount, ")"] })] }))] }));
19
+ return ((0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: 2, mb: mb, children: [hasRating && ((0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: 1, bg: "teal.50", color: "teal.900", px: 2, borderRadius: "md", children: [(0, jsx_runtime_1.jsxs)(react_1.Box, { position: "relative", flexShrink: 0, display: "inline-block", width: "14px", height: "14px", lineHeight: 0, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { position: "absolute", top: 0, left: 0, width: "14px", height: "14px", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Star, { size: 14, fill: "none", strokeWidth: 1.5 }) }), fillPercentage > 0 && ((0, jsx_runtime_1.jsx)(react_1.Box, { position: "absolute", top: 0, left: 0, width: `${fillPercentage}%`, height: "100%", overflow: "hidden", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Star, { size: 14, color: RATING_STAR_FILL, fill: RATING_STAR_FILL }) }))] }), (0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "sm", fontWeight: "bold", children: numericRating })] })), hasRating && hasReviewCount && (0, jsx_runtime_1.jsx)(react_1.Box, { h: "4", w: "0.063rem", bg: "gray.400" }), hasReviewCount && ((0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", gap: "1", children: [(0, jsx_runtime_1.jsx)(react_1.Icon, { as: lucide_react_1.BookCheck, boxSize: 3.5 }), (0, jsx_runtime_1.jsxs)(react_1.Text, { fontSize: "sm", color: "gray.600", children: ["(", reviewCount, ")"] })] }))] }));
16
20
  };
17
21
  exports.default = ProductReview;
@@ -26,7 +26,7 @@ const Tag = ({ children, fullWidth = false, size = 'sm', }) => {
26
26
  var _a, _b, _c, _d;
27
27
  const theme = (0, react_2.useTheme)();
28
28
  const tagBorder = (_c = (_b = (_a = theme.colors.semantic) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b[200]) !== null && _c !== void 0 ? _c : (_d = theme.colors.red) === null || _d === void 0 ? void 0 : _d[200];
29
- const tagText = theme.colors.black;
29
+ const tagText = theme.colors.text[900];
30
30
  // Size map for tags
31
31
  const tagSizes = {
32
32
  xs: { fontSize: '0.625rem', px: '0.5rem', py: '0.125rem' },
@@ -1 +1 @@
1
- {"version":3,"file":"ProductDtlPrice.d.ts","sourceRoot":"","sources":["../../../src/Components/ProductDetails/ProductDtlPrice.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAG1D,UAAU,oBAAoB;IAC1B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAGD,QAAA,MAAM,eAAe,GAAI,qBAAqB,oBAAoB,4CAmFjE,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ProductDtlPrice.d.ts","sourceRoot":"","sources":["../../../src/Components/ProductDetails/ProductDtlPrice.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAI1D,UAAU,oBAAoB;IAC1B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAGD,QAAA,MAAM,eAAe,GAAI,qBAAqB,oBAAoB,4CA4FjE,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -4,6 +4,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const react_1 = require("react");
5
5
  const react_2 = require("@chakra-ui/react");
6
6
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
7
+ const accentText_1 = require("../../Theme/tokens/builders/accentText");
7
8
  const ProductDtlPrice = ({ price, onSelect }) => {
8
9
  const [selectedIndex, setSelectedIndex] = (0, react_1.useState)(0);
9
10
  const selected = price[selectedIndex];
@@ -12,7 +13,9 @@ const ProductDtlPrice = ({ price, onSelect }) => {
12
13
  (0, react_1.useEffect)(() => {
13
14
  onSelect === null || onSelect === void 0 ? void 0 : onSelect(selected);
14
15
  }, [selected, onSelect]);
15
- return ((0, jsx_runtime_1.jsxs)(react_2.VStack, { align: "start", spacing: 3, p: 4, borderRadius: "md", w: "full", children: [(0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, align: "center", children: [selected.offer > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "lg", color: theme.colors.gray[500], as: "s", children: ["\u20B9", selected.price] })), (0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xl", color: theme.colors.red[500], fontWeight: "bold", children: ["\u20B9", discounted] }), selected.offer > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Badge, { colorScheme: "pink", fontSize: "xs", borderRadius: "sm", px: 2, py: 0.5, children: ["SAVE ", selected.offer, "%"] }))] }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: theme.colors.gray[600], children: "(Incl. of all taxes)" }), (0, jsx_runtime_1.jsxs)(react_2.Box, { children: [(0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "sm", fontWeight: "bold", textTransform: "uppercase", mb: 1, children: ["Packs : ", selected.label] }), (0, jsx_runtime_1.jsx)(react_2.HStack, { spacing: 2, children: price.map((pack, idx) => ((0, jsx_runtime_1.jsx)(react_2.Button, { size: "xs", variant: "outline", borderColor: idx === selectedIndex ? "orange.400" : "orange.200", bg: idx === selectedIndex ? "orange.50" : "white", color: "orange.600", borderRadius: "md", fontWeight: "medium", _hover: {
16
+ return ((0, jsx_runtime_1.jsxs)(react_2.VStack, { align: "start", spacing: 3, p: 4, borderRadius: "md", w: "full", children: [(0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 2, align: "center", children: [selected.offer > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "lg", color: theme.colors.gray[500], as: "s", children: ["\u20B9", selected.price] })), (0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xl", color: (0, accentText_1.accentTextOnCanvas)(theme.colors.red, theme.colors.backgroundColor.main), fontWeight: "bold", children: ["\u20B9", discounted] }), selected.offer > 0 && ((0, jsx_runtime_1.jsxs)(react_2.Badge, { colorScheme: "pink", fontSize: "xs", borderRadius: "sm", px: 2, py: 0.5, children: ["SAVE ", selected.offer, "%"] }))] }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: theme.colors.gray[600], children: "(Incl. of all taxes)" }), (0, jsx_runtime_1.jsxs)(react_2.Box, { children: [(0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "sm", fontWeight: "bold", textTransform: "uppercase", mb: 1, children: ["Packs : ", selected.label] }), (0, jsx_runtime_1.jsx)(react_2.HStack, { spacing: 2, children: price.map((pack, idx) => ((0, jsx_runtime_1.jsx)(react_2.Button, { size: "xs", variant: "outline", borderColor: idx === selectedIndex ? "orange.400" : "orange.200", bg: idx === selectedIndex ? "orange.50" : theme.colors.background[50],
17
+ // orange.600 fails AA against both possible bg states — walk the scale per canvas
18
+ color: (0, accentText_1.accentTextOnCanvas)(theme.colors.orange, idx === selectedIndex ? theme.colors.orange[50] : theme.colors.background[50]), borderRadius: "md", fontWeight: "medium", _hover: {
16
19
  bg: "orange.100",
17
20
  }, _active: {
18
21
  bg: "orange.100",
@@ -156,7 +156,7 @@ function ProductImageSlider({ images, thumbHeight = 60, imageSize = 480, thumbna
156
156
  const thumb = (item === null || item === void 0 ? void 0 : item.thumb) || getThumbForItem(url);
157
157
  if (isVideo) {
158
158
  if (!isPlaying) {
159
- return ((0, jsx_runtime_1.jsxs)(react_1.Box, { position: "relative", w: "100%", h: `${imageSize}px`, children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: thumb || url, w: "100%", h: "100%", objectFit: "cover" }), (0, jsx_runtime_1.jsx)(react_1.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.white, borderRadius: "full", boxShadow: "lg", p: 3, cursor: "pointer", onClick: () => setIsPlaying(true), children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 24, color: theme.colors.red[500] }) }) })] }));
159
+ return ((0, jsx_runtime_1.jsxs)(react_1.Box, { position: "relative", w: "100%", h: `${imageSize}px`, children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: thumb || url, w: "100%", h: "100%", objectFit: "cover" }), (0, jsx_runtime_1.jsx)(react_1.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.background[50], borderRadius: "full", boxShadow: "lg", p: 3, cursor: "pointer", onClick: () => setIsPlaying(true), children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 24, color: theme.colors.red[500] }) }) })] }));
160
160
  }
161
161
  return yt ? ((0, jsx_runtime_1.jsx)(react_1.AspectRatio, { ratio: 16 / 9, w: "100%", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "iframe", src: `https://www.youtube.com/embed/${yt}?rel=0&autoplay=1`, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true, border: "0" }) })) : vimeo ? ((0, jsx_runtime_1.jsx)(react_1.AspectRatio, { ratio: 16 / 9, w: "100%", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "iframe", src: `https://player.vimeo.com/video/${vimeo}?autoplay=1`, allow: "autoplay; fullscreen; picture-in-picture", allowFullScreen: true, border: "0" }) })) : dm ? ((0, jsx_runtime_1.jsx)(react_1.AspectRatio, { ratio: 16 / 9, w: "100%", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "iframe", src: `https://www.dailymotion.com/embed/video/${dm}?autoplay=1`, allow: "autoplay; fullscreen; picture-in-picture", allowFullScreen: true, border: "0" }) })) : ((0, jsx_runtime_1.jsx)(react_1.Box, { as: "video", src: url, w: "100%", h: `${imageSize}px`, controls: true, autoPlay: true, sx: { objectFit: "contain", backgroundColor: "black" } }));
162
162
  }
@@ -178,7 +178,7 @@ function ProductImageSlider({ images, thumbHeight = 60, imageSize = 480, thumbna
178
178
  const thumb = src.thumb || getThumbForItem(url);
179
179
  return ((0, jsx_runtime_1.jsx)(react_1.Box, { w: `${thumbHeight}px`, h: `${thumbHeight}px`, borderRadius: "md", overflow: "hidden", cursor: "pointer", border: actualIndex === activeIndex
180
180
  ? `0.125rem solid ${theme.colors.gray[500]}`
181
- : "0.125rem solid transparent", opacity: actualIndex === activeIndex ? 1 : 0.5, onClick: () => setActiveIndex(actualIndex), _hover: { opacity: 1 }, transition: "all 0.2s", position: "relative", children: isVideo ? (thumb ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: thumb, w: "100%", h: "100%", objectFit: "cover" }), (0, jsx_runtime_1.jsx)(react_1.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.white, borderRadius: "full", boxShadow: "md", p: 1.5, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 14, color: theme.colors.red[500] }) }) })] })) : ((0, jsx_runtime_1.jsx)(react_1.Flex, { w: "100%", h: "100%", align: "center", justify: "center", bg: theme.colors.gray[100], children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.white, borderRadius: "full", boxShadow: "md", p: 1.5, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 14, color: theme.colors.red[500] }) }) }))) : ((0, jsx_runtime_1.jsx)(react_1.Image, { src: url, w: "100%", h: "100%", objectFit: "cover" })) }, actualIndex));
181
+ : "0.125rem solid transparent", opacity: actualIndex === activeIndex ? 1 : 0.5, onClick: () => setActiveIndex(actualIndex), _hover: { opacity: 1 }, transition: "all 0.2s", position: "relative", children: isVideo ? (thumb ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: thumb, w: "100%", h: "100%", objectFit: "cover" }), (0, jsx_runtime_1.jsx)(react_1.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.background[50], borderRadius: "full", boxShadow: "md", p: 1.5, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 14, color: theme.colors.red[500] }) }) })] })) : ((0, jsx_runtime_1.jsx)(react_1.Flex, { w: "100%", h: "100%", align: "center", justify: "center", bg: theme.colors.gray[100], children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.background[50], borderRadius: "full", boxShadow: "md", p: 1.5, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 14, color: theme.colors.red[500] }) }) }))) : ((0, jsx_runtime_1.jsx)(react_1.Image, { src: url, w: "100%", h: "100%", objectFit: "cover" })) }, actualIndex));
182
182
  }), (0, jsx_runtime_1.jsx)(react_1.IconButton, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronRight, { size: 16, color: theme.colors.gray[500] }), "aria-label": "Scroll Right", onClick: () => handleThumbScroll("down"), isDisabled: !canScrollDown, variant: "ghost", size: "sm" })] }))] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [hasMultiple && ((0, jsx_runtime_1.jsxs)(react_1.Box, { w: `${thumbHeight}px`, h: `${thumbHeight * thumbnailsToShow}px`, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "space-between", borderRadius: "md", overflow: "hidden", children: [(0, jsx_runtime_1.jsx)(react_1.IconButton, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronUp, { size: 16, color: theme.colors.gray[500] }), "aria-label": "Scroll Up", onClick: () => handleThumbScroll("up"), isDisabled: !canScrollUp, variant: "ghost", size: "sm", m: 1 }), (0, jsx_runtime_1.jsx)(react_1.VStack, { spacing: 2, flex: "1", overflow: "hidden", children: visibleThumbnails === null || visibleThumbnails === void 0 ? void 0 : visibleThumbnails.map((src, index) => {
183
183
  const actualIndex = thumbStartIndex + index;
184
184
  const url = src.imageUrl;
@@ -186,7 +186,7 @@ function ProductImageSlider({ images, thumbHeight = 60, imageSize = 480, thumbna
186
186
  const thumb = src.thumb || getThumbForItem(url);
187
187
  return ((0, jsx_runtime_1.jsx)(react_1.Box, { w: `${thumbHeight}px`, h: `${thumbHeight}px`, borderRadius: "md", overflow: "hidden", cursor: "pointer", border: actualIndex === activeIndex
188
188
  ? `0.125rem solid ${theme.colors.gray[500]}`
189
- : "0.125rem solid transparent", opacity: actualIndex === activeIndex ? 1 : 0.5, onClick: () => setActiveIndex(actualIndex), _hover: { opacity: 1 }, transition: "all 0.2s", position: "relative", children: isVideo ? (thumb ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: thumb, w: "100%", h: "100%", objectFit: "cover", alt: `Thumb ${actualIndex}` }), (0, jsx_runtime_1.jsx)(react_1.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.white, borderRadius: "full", boxShadow: "md", p: 1.5, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 14, color: theme.colors.red[500] }) }) })] })) : ((0, jsx_runtime_1.jsx)(react_1.Flex, { w: "100%", h: "100%", align: "center", justify: "center", bg: theme.colors.gray[100], children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.white, borderRadius: "full", boxShadow: "md", p: 1.5, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 14, color: theme.colors.red[500] }) }) }))) : ((0, jsx_runtime_1.jsx)(react_1.Image, { src: url, w: "100%", h: "100%", objectFit: "cover", alt: `Thumb ${actualIndex}` })) }, actualIndex));
189
+ : "0.125rem solid transparent", opacity: actualIndex === activeIndex ? 1 : 0.5, onClick: () => setActiveIndex(actualIndex), _hover: { opacity: 1 }, transition: "all 0.2s", position: "relative", children: isVideo ? (thumb ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: thumb, w: "100%", h: "100%", objectFit: "cover", alt: `Thumb ${actualIndex}` }), (0, jsx_runtime_1.jsx)(react_1.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.background[50], borderRadius: "full", boxShadow: "md", p: 1.5, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 14, color: theme.colors.red[500] }) }) })] })) : ((0, jsx_runtime_1.jsx)(react_1.Flex, { w: "100%", h: "100%", align: "center", justify: "center", bg: theme.colors.gray[100], children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.background[50], borderRadius: "full", boxShadow: "md", p: 1.5, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 14, color: theme.colors.red[500] }) }) }))) : ((0, jsx_runtime_1.jsx)(react_1.Image, { src: url, w: "100%", h: "100%", objectFit: "cover", alt: `Thumb ${actualIndex}` })) }, actualIndex));
190
190
  }) }), (0, jsx_runtime_1.jsx)(react_1.IconButton, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { size: 16, color: theme.colors.gray[500] }), "aria-label": "Scroll Down", onClick: () => handleThumbScroll("down"), isDisabled: !canScrollDown, variant: "ghost", size: "sm", m: 1 })] })), (0, jsx_runtime_1.jsxs)(react_1.Box, { w: `${imageSize}px`, h: `${imageSize}px`, position: "relative", overflow: "hidden", borderRadius: "md", boxShadow: "md", onMouseMove: (e) => {
191
191
  const bounds = e.currentTarget.getBoundingClientRect();
192
192
  const x = ((e.clientX - bounds.left) / bounds.width) * 100;
@@ -205,7 +205,7 @@ function ProductImageSlider({ images, thumbHeight = 60, imageSize = 480, thumbna
205
205
  const thumb = (item === null || item === void 0 ? void 0 : item.thumb) || getThumbForItem(url);
206
206
  if (isVideo) {
207
207
  if (!isPlaying) {
208
- return ((0, jsx_runtime_1.jsxs)(react_1.Box, { position: "relative", w: "100%", h: `${imageSize}px`, children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: thumb || url, w: "100%", h: "100%", objectFit: "cover" }), (0, jsx_runtime_1.jsx)(react_1.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.white, borderRadius: "full", boxShadow: "lg", p: 3, cursor: "pointer", onClick: () => setIsPlaying(true), children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 24, color: theme.colors.red[500] }) }) })] }));
208
+ return ((0, jsx_runtime_1.jsxs)(react_1.Box, { position: "relative", w: "100%", h: `${imageSize}px`, children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: thumb || url, w: "100%", h: "100%", objectFit: "cover" }), (0, jsx_runtime_1.jsx)(react_1.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", children: (0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.background[50], borderRadius: "full", boxShadow: "lg", p: 3, cursor: "pointer", onClick: () => setIsPlaying(true), children: (0, jsx_runtime_1.jsx)(lucide_react_1.Play, { size: 24, color: theme.colors.red[500] }) }) })] }));
209
209
  }
210
210
  return yt ? ((0, jsx_runtime_1.jsx)(react_1.AspectRatio, { ratio: 16 / 9, w: "100%", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "iframe", src: `https://www.youtube.com/embed/${yt}?rel=0&autoplay=1`, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true, border: "0" }) })) : vimeo ? ((0, jsx_runtime_1.jsx)(react_1.AspectRatio, { ratio: 16 / 9, w: "100%", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "iframe", src: `https://player.vimeo.com/video/${vimeo}?autoplay=1`, allow: "autoplay; fullscreen; picture-in-picture", allowFullScreen: true, border: "0" }) })) : dm ? ((0, jsx_runtime_1.jsx)(react_1.AspectRatio, { ratio: 16 / 9, w: "100%", children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "iframe", src: `https://www.dailymotion.com/embed/video/${dm}?autoplay=1`, allow: "autoplay; fullscreen; picture-in-picture", allowFullScreen: true, border: "0" }) })) : ((0, jsx_runtime_1.jsx)(react_1.Box, { as: "video", src: url, w: "100%", h: `${imageSize}px`, controls: true, autoPlay: true, sx: { objectFit: "contain", backgroundColor: "black" } }));
211
211
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ProfilePhotoViewer.d.ts","sourceRoot":"","sources":["../../../src/Components/ProfilePhotoViewer/ProfilePhotoViewer.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAKpE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,UAAoB,EACpB,QAA0B,EAC1B,cAAwB,EACxB,iBAA0B,EAC1B,YAAmB,EACnB,qBAA6B,EAC7B,sBAA8B,EAC9B,OAAc,EACd,QAAQ,EACR,UAAkB,EAClB,MAAc,EACd,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,aAAoB,GACrB,EAAE,uBAAuB,2CA2LzB"}
1
+ {"version":3,"file":"ProfilePhotoViewer.d.ts","sourceRoot":"","sources":["../../../src/Components/ProfilePhotoViewer/ProfilePhotoViewer.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAKpE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,UAAoB,EACpB,QAA0B,EAC1B,cAAwB,EACxB,iBAA0B,EAC1B,YAAmB,EACnB,qBAA6B,EAC7B,sBAA8B,EAC9B,OAAc,EACd,QAAQ,EACR,UAAkB,EAClB,MAAc,EACd,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,aAAoB,GACrB,EAAE,uBAAuB,2CA8LzB"}
@@ -7,7 +7,7 @@ const react_2 = require("@chakra-ui/react");
7
7
  const lucide_react_1 = require("lucide-react");
8
8
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
9
9
  function ProfilePhotoViewer({ photoUrl, onPhotoChange, imageWidth = "100px", imageAlt = "Profile Photo", imageObjectFit = "cover", imageBorderRadius = "full", editIconSize = "sm", editIconPositionRight = "0px", editIconPositionBottom = "0px", isRound = true, boxStyle, isEditable = false, isView = false, style, handleIsView, fallbackText, revealOnHover = true, }) {
10
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
10
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
11
11
  const [photo, setPhoto] = (0, react_1.useState)(photoUrl);
12
12
  const fileInputRef = (0, react_1.useRef)(null);
13
13
  const theme = (0, useCustomTheme_1.useCustomTheme)();
@@ -34,7 +34,10 @@ function ProfilePhotoViewer({ photoUrl, onPhotoChange, imageWidth = "100px", ima
34
34
  (_a = fileInputRef.current) === null || _a === void 0 ? void 0 : _a.click();
35
35
  };
36
36
  const isPdf = photo === null || photo === void 0 ? void 0 : photo.endsWith(".pdf");
37
- const border = (_c = (_b = c.boxborder) === null || _b === void 0 ? void 0 : _b[300]) !== null && _c !== void 0 ? _c : (_d = c.gray) === null || _d === void 0 ? void 0 : _d[200];
37
+ // [800], not [300]: the edit IconButton's border is a control boundary — WCAG 1.4.11 needs
38
+ // >=3.0 against any named surface up to `muted` (lightest); [300] fails there, [800] clears
39
+ // all with margin.
40
+ const border = (_c = (_b = c.boxborder) === null || _b === void 0 ? void 0 : _b[800]) !== null && _c !== void 0 ? _c : (_d = c.gray) === null || _d === void 0 ? void 0 : _d[200];
38
41
  // Shared modern frame for whichever media we render (photo / pdf / fallback).
39
42
  const mediaFrame = {
40
43
  boxSize: imageWidth,
@@ -61,10 +64,10 @@ function ProfilePhotoViewer({ photoUrl, onPhotoChange, imageWidth = "100px", ima
61
64
  bg: (_o = c.primary) === null || _o === void 0 ? void 0 : _o[600],
62
65
  transform: "scale(1.1)",
63
66
  boxShadow: (_p = theme.shadows) === null || _p === void 0 ? void 0 : _p.lg,
64
- }, _active: { bg: (_q = c.primary) === null || _q === void 0 ? void 0 : _q[700] } }) })), isView && ((0, jsx_runtime_1.jsx)(react_2.Tooltip, { label: "View", "aria-label": "View", hasArrow: true, children: (0, jsx_runtime_1.jsx)(react_2.IconButton, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Eye, { size: 14 }), isRound: isRound, size: editIconSize, onClick: handleIsView, "aria-label": "View photo", bg: (_r = c.white) !== null && _r !== void 0 ? _r : "#fff", color: (_s = c.gray) === null || _s === void 0 ? void 0 : _s[700], border: `0.063rem solid ${border}`, boxShadow: (_t = theme.shadows) === null || _t === void 0 ? void 0 : _t.md, style: style, transition: "transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease", _hover: {
65
- bg: (_u = c.gray) === null || _u === void 0 ? void 0 : _u[50],
66
- color: (_v = c.primary) === null || _v === void 0 ? void 0 : _v[600],
67
+ }, _active: { bg: (_q = c.primary) === null || _q === void 0 ? void 0 : _q[700] } }) })), isView && ((0, jsx_runtime_1.jsx)(react_2.Tooltip, { label: "View", "aria-label": "View", hasArrow: true, children: (0, jsx_runtime_1.jsx)(react_2.IconButton, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Eye, { size: 14 }), isRound: isRound, size: editIconSize, onClick: handleIsView, "aria-label": "View photo", bg: (_s = (_r = c.background) === null || _r === void 0 ? void 0 : _r[50]) !== null && _s !== void 0 ? _s : "#fff", color: (_t = c.gray) === null || _t === void 0 ? void 0 : _t[700], border: `0.063rem solid ${border}`, boxShadow: (_u = theme.shadows) === null || _u === void 0 ? void 0 : _u.md, style: style, transition: "transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease", _hover: {
68
+ bg: (_v = c.gray) === null || _v === void 0 ? void 0 : _v[50],
69
+ color: (_w = c.primary) === null || _w === void 0 ? void 0 : _w[600],
67
70
  transform: "scale(1.1)",
68
- boxShadow: (_w = theme.shadows) === null || _w === void 0 ? void 0 : _w.lg,
69
- }, _active: { bg: (_x = c.gray) === null || _x === void 0 ? void 0 : _x[100] } }) }))] }), isEditable && ((0, jsx_runtime_1.jsx)(react_2.Input, { type: "file", accept: "image/*", onChange: handlePhotoChange, hidden: true, ref: fileInputRef }))] }))] }));
71
+ boxShadow: (_x = theme.shadows) === null || _x === void 0 ? void 0 : _x.lg,
72
+ }, _active: { bg: (_y = c.gray) === null || _y === void 0 ? void 0 : _y[100] } }) }))] }), isEditable && ((0, jsx_runtime_1.jsx)(react_2.Input, { type: "file", accept: "image/*", onChange: handlePhotoChange, hidden: true, ref: fileInputRef }))] }))] }));
70
73
  }
@@ -6,6 +6,7 @@ const dnd_1 = require("@hello-pangea/dnd");
6
6
  const lucide_react_1 = require("lucide-react");
7
7
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
8
8
  const ReorderList = ({ label = "", items, onReorder, showRemoveIcon = false, onRemove, }) => {
9
+ var _a;
9
10
  const { colors } = (0, useCustomTheme_1.useCustomTheme)();
10
11
  const handleDragEnd = (result) => {
11
12
  if (!result.destination)
@@ -15,7 +16,7 @@ const ReorderList = ({ label = "", items, onReorder, showRemoveIcon = false, onR
15
16
  reordered.splice(result.destination.index, 0, moved);
16
17
  onReorder(reordered);
17
18
  };
18
- return ((0, jsx_runtime_1.jsxs)(react_1.Box, { borderWidth: "0.063rem", borderRadius: "md", px: 3, py: 2, bg: colors === null || colors === void 0 ? void 0 : colors.white, children: [(0, jsx_runtime_1.jsxs)(react_1.Box, { display: "flex", alignItems: "center", gap: 2, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.BetweenHorizonalStart, {}), (0, jsx_runtime_1.jsx)(react_1.Text, { fontFamily: "open-sans, sans-serif", fontWeight: 600, fontSize: 14, lineHeight: "100%", letterSpacing: "4%", textTransform: "uppercase", py: 4, children: label })] }), (0, jsx_runtime_1.jsx)(react_1.Divider, {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(dnd_1.DragDropContext, { onDragEnd: handleDragEnd, children: (0, jsx_runtime_1.jsx)(dnd_1.Droppable, { droppableId: "item-list", direction: "horizontal", children: (provided) => ((0, jsx_runtime_1.jsxs)(react_1.HStack, { ref: provided.innerRef, ...provided.droppableProps, spacing: 4, overflowX: "auto", children: [items.map((item, index) => ((0, jsx_runtime_1.jsx)(dnd_1.Draggable, { draggableId: item.id, index: index, children: (provided) => {
19
+ return ((0, jsx_runtime_1.jsxs)(react_1.Box, { borderWidth: "0.063rem", borderRadius: "md", px: 3, py: 2, bg: (_a = colors === null || colors === void 0 ? void 0 : colors.background) === null || _a === void 0 ? void 0 : _a[50], children: [(0, jsx_runtime_1.jsxs)(react_1.Box, { display: "flex", alignItems: "center", gap: 2, children: [(0, jsx_runtime_1.jsx)(lucide_react_1.BetweenHorizonalStart, {}), (0, jsx_runtime_1.jsx)(react_1.Text, { fontFamily: "open-sans, sans-serif", fontWeight: 600, fontSize: 14, lineHeight: "100%", letterSpacing: "4%", textTransform: "uppercase", py: 4, children: label })] }), (0, jsx_runtime_1.jsx)(react_1.Divider, {}), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(dnd_1.DragDropContext, { onDragEnd: handleDragEnd, children: (0, jsx_runtime_1.jsx)(dnd_1.Droppable, { droppableId: "item-list", direction: "horizontal", children: (provided) => ((0, jsx_runtime_1.jsxs)(react_1.HStack, { ref: provided.innerRef, ...provided.droppableProps, spacing: 4, overflowX: "auto", children: [items.map((item, index) => ((0, jsx_runtime_1.jsx)(dnd_1.Draggable, { draggableId: item.id, index: index, children: (provided) => {
19
20
  var _a, _b, _c, _d;
20
21
  return ((0, jsx_runtime_1.jsxs)(react_1.Box, { ref: provided.innerRef, ...provided.draggableProps, ...provided.dragHandleProps, position: "relative", border: "0.063rem solid", borderColor: (_a = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _a === void 0 ? void 0 : _a[300], borderRadius: "md", overflow: "hidden", children: [(0, jsx_runtime_1.jsx)(react_1.Image, { src: item.previewUrl, alt: (_b = item.name) !== null && _b !== void 0 ? _b : `item-${index}`, boxSize: "7.5rem", objectFit: "cover" }), (0, jsx_runtime_1.jsx)(react_1.IconButton, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.GripVertical, { size: 16, color: (_c = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _c === void 0 ? void 0 : _c[500] }), "aria-label": "Drag", size: "sm", position: "absolute", top: 1, left: 1, variant: "ghost" }), (0, jsx_runtime_1.jsx)(react_1.Badge, { position: "absolute", colorScheme: "gray", variant: "solid", bottom: 1, right: 1, children: index + 1 }), showRemoveIcon && ((0, jsx_runtime_1.jsx)(react_1.IconButton, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 16, color: (_d = colors === null || colors === void 0 ? void 0 : colors.red) === null || _d === void 0 ? void 0 : _d[500] }), "aria-label": "Remove", size: "sm", position: "absolute", top: 1, right: 1, variant: "ghost", onClick: () => onRemove === null || onRemove === void 0 ? void 0 : onRemove(item.id) }))] }));
21
22
  } }, item.id))), provided.placeholder] })) }) })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteRoleModal.d.ts","sourceRoot":"","sources":["../../../src/Components/RolesPermission/DeleteRoleModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA4DnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"DeleteRoleModal.d.ts","sourceRoot":"","sources":["../../../src/Components/RolesPermission/DeleteRoleModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6DnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -9,8 +9,10 @@ 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 DeleteRoleModal = ({ isOpen, onClose, onConfirm, isLoading, 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, _k, _l, _m;
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.deleteRole })] }), (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.deleteRoleConfirm }), (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",
15
+ // Pale badge bg: `red` reverses in dark; `semantic.error` is lifted and would stay near-white.
16
+ 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: (_l = (_j = (_h = (_g = colors === null || colors === void 0 ? void 0 : colors.semantic) === null || _g === void 0 ? void 0 : _g.error) === null || _h === void 0 ? void 0 : _h[500]) !== null && _j !== void 0 ? _j : (_k = colors === null || colors === void 0 ? void 0 : colors.red) === null || _k === void 0 ? void 0 : _k[500]) !== null && _l !== void 0 ? _l : "#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.deleteRole })] }), (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: (_m = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _m === void 0 ? void 0 : _m[600], fontSize: "sm", mb: 5, children: labels.deleteRoleConfirm }), (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
17
  };
16
18
  exports.default = DeleteRoleModal;
@@ -56,15 +56,15 @@ const DEFAULT_KEYS = [
56
56
  "export",
57
57
  ];
58
58
  const RolesPermission = ({ view, mode = "create", roles, isRolesLoading = false, permissions, permissionKeys = DEFAULT_KEYS, roleName, roleNameError, isSuperAdmin, isTrackLocation, isShowRecords, isEditing = false, isSaving = false, onNewRole, onViewRole, onEditRole, onDeleteRole, onBack, onRoleNameChange, onToggleSuperAdmin, onToggleTrackLocation, onToggleShowRecords, onPermissionChange, onSave, onCancelForm, footerSlot, checkIcon, labels: labelOverrides, padding = "16px", }) => {
59
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
59
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
60
60
  const { colors } = (0, useCustomTheme_1.useCustomTheme)();
61
61
  const labels = (0, react_1.useMemo)(() => ({ ...DEFAULT_LABELS, ...labelOverrides }), [labelOverrides]);
62
62
  const [deleteId, setDeleteId] = (0, react_1.useState)(null);
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 heading = (_j = (_h = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _h === void 0 ? void 0 : _h[800]) !== null && _j !== void 0 ? _j : "#1E293B";
67
- const headBg = (_l = (_k = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _k === void 0 ? void 0 : _k[50]) !== null && _l !== void 0 ? _l : "#F8FAFC";
64
+ const surface = (_f = (_e = colors === null || colors === void 0 ? void 0 : colors.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#FFFFFF";
65
+ const muted = (_h = (_g = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _g === void 0 ? void 0 : _g[500]) !== null && _h !== void 0 ? _h : "#64748B";
66
+ const heading = (_k = (_j = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _j === void 0 ? void 0 : _j[800]) !== null && _k !== void 0 ? _k : "#1E293B";
67
+ const headBg = (_m = (_l = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _l === void 0 ? void 0 : _l[50]) !== null && _m !== void 0 ? _m : "#F8FAFC";
68
68
  const isViewMode = mode === "view";
69
69
  const columnLabels = {
70
70
  read: labels.read,
@@ -117,7 +117,7 @@ const RolesPermission = ({ view, mode = "create", roles, isRolesLoading = false,
117
117
  : perm[key], isDisabled: isAutomationModule && !isRead, onChange: () => onPermissionChange === null || onPermissionChange === void 0 ? void 0 : onPermissionChange(perm.module, isAutomationModule ? "automation" : key) })) }) }, key));
118
118
  })] }, perm.module));
119
119
  })) })] }) }), !isViewMode && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_2.Divider, { borderColor: border }), (0, jsx_runtime_1.jsxs)(react_2.Flex, { justifyContent: "flex-end", gap: 3, p: 4, children: [(0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onCancelForm, size: "sm", sx: { fontSize: "xs" }, label: labels.cancel, colorScheme: "red", variant: "outline" }), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: onSave, size: "sm", sx: { fontSize: "xs" }, colorScheme: "primary", isLoading: isSaving, label: isEditing ? labels.updateChanges : labels.saveChanges })] })] }))] })] }));
120
- return ((0, jsx_runtime_1.jsxs)(react_2.Box, { p: padding, backgroundColor: (_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", minHeight: "100%", children: [view === "list" ? renderListView() : renderFormView(), (0, jsx_runtime_1.jsx)(DeleteRoleModal_1.default, { isOpen: deleteId !== null, onClose: () => setDeleteId(null), onConfirm: () => {
120
+ return ((0, jsx_runtime_1.jsxs)(react_2.Box, { p: padding, backgroundColor: (_p = (_o = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _o === void 0 ? void 0 : _o[50]) !== null && _p !== void 0 ? _p : "#F8FAFC", minHeight: "100%", children: [view === "list" ? renderListView() : renderFormView(), (0, jsx_runtime_1.jsx)(DeleteRoleModal_1.default, { isOpen: deleteId !== null, onClose: () => setDeleteId(null), onConfirm: () => {
121
121
  if (deleteId !== null)
122
122
  onDeleteRole === null || onDeleteRole === void 0 ? void 0 : onDeleteRole(deleteId);
123
123
  setDeleteId(null);
@@ -1 +1 @@
1
- {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/Components/Search/Search.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAK5C,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC9B,WAAyB,EACzB,QAAQ,EACR,OAAO,EACP,QAAmB,EACnB,KAAK,EACL,KAAK,EACL,YAAY,EACZ,UAAU,EACV,KAAK,EACL,EAAE,EACF,aAAa,EACb,kBAAkB,EAClB,UAAU,GACV,EAAE,WAAW,2CAoFb"}
1
+ {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/Components/Search/Search.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC9B,WAAyB,EACzB,QAAQ,EACR,OAAO,EACP,QAAmB,EACnB,KAAK,EACL,KAAK,EACL,YAAY,EACZ,UAAU,EACV,KAAK,EACL,EAAE,EACF,aAAa,EACb,kBAAkB,EAClB,UAAU,GACV,EAAE,WAAW,2CAqFb"}
@@ -11,7 +11,9 @@ const lucide_react_1 = require("lucide-react");
11
11
  const FormLabel_1 = require("../Common/FormLabel");
12
12
  const HelperText_1 = __importDefault(require("../Common/HelperText"));
13
13
  const ErrorMessage_1 = __importDefault(require("../Common/ErrorMessage"));
14
+ const useCustomTheme_1 = require("../../Theme/useCustomTheme");
14
15
  function Search({ placeholder = "Search...", onSearch, onclose, shortcut = "Ctrl+K", query, error, errorMessage, helperText, label, id, isInformation, informationMessage, isRequired, }) {
16
+ const theme = (0, useCustomTheme_1.useCustomTheme)();
15
17
  const inputRef = (0, react_1.useRef)(null);
16
18
  (0, react_1.useEffect)(() => {
17
19
  const handleKeyDown = (event) => {
@@ -28,6 +30,6 @@ function Search({ placeholder = "Search...", onSearch, onclose, shortcut = "Ctrl
28
30
  window.removeEventListener("keydown", handleKeyDown);
29
31
  };
30
32
  }, [shortcut]);
31
- return ((0, jsx_runtime_1.jsxs)(react_2.FormControl, { id: id, isInvalid: !!error, children: [label && ((0, jsx_runtime_1.jsx)(FormLabel_1.TextLabel, { label: label, id: id, isInformation: isInformation, informationMessage: informationMessage, isRequired: isRequired })), (0, jsx_runtime_1.jsxs)(react_2.InputGroup, { w: "100%", children: [(0, jsx_runtime_1.jsx)(react_2.InputLeftElement, { pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(react_2.Icon, { as: lucide_react_1.Search, color: "gray.500" }) }), (0, jsx_runtime_1.jsx)(react_2.Input, { ref: inputRef, type: "text", value: query, onChange: onSearch, placeholder: placeholder, variant: "outline", isInvalid: error }), (0, jsx_runtime_1.jsxs)(react_2.InputRightElement, { w: "auto", pr: "3", display: "flex", alignItems: "center" // ✅ centers vertically
32
- , gap: "2", children: [query && ((0, jsx_runtime_1.jsx)(react_2.Icon, { as: lucide_react_1.X, color: "gray.500", boxSize: 5, cursor: "pointer", onClick: onclose })), shortcut && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: "gray.500", px: "2", py: "0.5", borderRadius: "md", bg: "gray.100", children: shortcut }))] })] }), error && (0, jsx_runtime_1.jsx)(ErrorMessage_1.default, { errorMessage: errorMessage }), helperText && !error && (0, jsx_runtime_1.jsx)(HelperText_1.default, { helperText: helperText })] }));
33
+ return ((0, jsx_runtime_1.jsxs)(react_2.FormControl, { id: id, isInvalid: !!error, children: [label && ((0, jsx_runtime_1.jsx)(FormLabel_1.TextLabel, { label: label, id: id, isInformation: isInformation, informationMessage: informationMessage, isRequired: isRequired })), (0, jsx_runtime_1.jsxs)(react_2.InputGroup, { w: "100%", children: [(0, jsx_runtime_1.jsx)(react_2.InputLeftElement, { pointerEvents: "none", children: (0, jsx_runtime_1.jsx)(react_2.Icon, { as: lucide_react_1.Search, color: theme.colors.gray[500] }) }), (0, jsx_runtime_1.jsx)(react_2.Input, { ref: inputRef, type: "text", value: query, onChange: onSearch, placeholder: placeholder, variant: "outline", isInvalid: error }), (0, jsx_runtime_1.jsxs)(react_2.InputRightElement, { w: "auto", pr: "3", display: "flex", alignItems: "center" // ✅ centers vertically
34
+ , gap: "2", children: [query && ((0, jsx_runtime_1.jsx)(react_2.Icon, { as: lucide_react_1.X, color: theme.colors.gray[500], boxSize: 5, cursor: "pointer", onClick: onclose })), shortcut && ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: theme.colors.gray[500], px: "2", py: "0.5", borderRadius: "md", bg: theme.colors.gray[100], children: shortcut }))] })] }), error && (0, jsx_runtime_1.jsx)(ErrorMessage_1.default, { errorMessage: errorMessage }), helperText && !error && (0, jsx_runtime_1.jsx)(HelperText_1.default, { helperText: helperText })] }));
33
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SearchSelect.d.ts","sourceRoot":"","sources":["../../../src/Components/SearchSelect/SearchSelect.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAW,MAAM,qBAAqB,CAAC;AA2BjE,QAAA,MAAM,YAAY,GAAI,sUA8BnB,iBAAiB,4CAsvBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"SearchSelect.d.ts","sourceRoot":"","sources":["../../../src/Components/SearchSelect/SearchSelect.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAW,MAAM,qBAAqB,CAAC;AA2BjE,QAAA,MAAM,YAAY,GAAI,sUA8BnB,iBAAiB,4CAovBnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -300,7 +300,7 @@ const SearchSelect = ({ id, label, options, onSelect, onSearch, isOptionLoading
300
300
  setCustomSelectOpen(false);
301
301
  setIsOpen(true);
302
302
  }, children: [insideSelect && (() => {
303
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
303
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
304
304
  const insideLabel = (_a = insideSelect.value) === null || _a === void 0 ? void 0 : _a.label;
305
305
  const insidePlaceholder = (_b = insideSelect.placeholder) !== null && _b !== void 0 ? _b : "Select";
306
306
  return ((0, jsx_runtime_1.jsxs)(react_2.Box, { position: "relative", ref: customSelectRef, flexShrink: 0, ml: s.insideSelectMarginLeft, h: "-webkit-fill-available", borderRight: "0.063rem solid", borderColor: (_d = (_c = theme.colors.boxborder) === null || _c === void 0 ? void 0 : _c[300]) !== null && _d !== void 0 ? _d : theme.colors.gray[200], bg: customSelectOpen
@@ -311,7 +311,7 @@ const SearchSelect = ({ id, label, options, onSelect, onSearch, isOptionLoading
311
311
  e.stopPropagation();
312
312
  setIsOpen(false);
313
313
  setCustomSelectOpen((prev) => !prev);
314
- }, children: [(0, jsx_runtime_1.jsxs)(react_2.Box, { minW: "4.5rem", cursor: "pointer", display: "flex", justifyContent: "space-between", alignItems: "center", gap: 1, width: insideSelect.width, height: insideSelectBoxHeight, pl: "0.5rem", pr: "0.375rem", children: [insideLabel ? ((0, jsx_runtime_1.jsx)(SelectTruncatedLabel_1.default, { label: insideLabel, maxWidth: insideSelect.width || "6rem", fontSize: s.fieldFontSize })) : ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.fieldFontSize, fontWeight: 500, color: (_m = (_l = theme.colors.placeholder) === null || _l === void 0 ? void 0 : _l[500]) !== null && _m !== void 0 ? _m : theme.colors.gray[500], isTruncated: true, maxW: insideSelect.width || "6rem", children: insidePlaceholder })), (0, jsx_runtime_1.jsx)(react_2.Box, { as: "span", display: "inline-flex", flexShrink: 0, color: customSelectOpen ? (_o = theme.colors.primary) === null || _o === void 0 ? void 0 : _o[600] : theme.colors.gray[600], transition: "transform 0.2s ease, color 0.15s ease", transform: customSelectOpen ? "rotate(180deg)" : "rotate(0deg)", children: (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { size: s.chevronSize }) })] }), customSelectOpen && ((0, jsx_runtime_1.jsx)(react_2.Portal, { children: (0, jsx_runtime_1.jsx)(react_2.Box, { ref: setInsideSelectMenuRef, id: "custom-select-portal", position: "fixed", top: `${customSelectPos.top}px`, left: `${customSelectPos.left}px`, zIndex: 1510, bg: theme.colors.white, border: "0.063rem solid", borderColor: (_q = (_p = theme.colors.boxborder) === null || _p === void 0 ? void 0 : _p[200]) !== null && _q !== void 0 ? _q : theme.colors.gray[200], borderRadius: "0.5rem", boxShadow: (_s = (_r = theme.shadows) === null || _r === void 0 ? void 0 : _r.md) !== null && _s !== void 0 ? _s : "md", minW: `${customSelectPos.width}px`, maxW: "20rem", py: 1, overflow: "hidden", children: (_t = insideSelect.option) === null || _t === void 0 ? void 0 : _t.map((item) => {
314
+ }, children: [(0, jsx_runtime_1.jsxs)(react_2.Box, { minW: "4.5rem", cursor: "pointer", display: "flex", justifyContent: "space-between", alignItems: "center", gap: 1, width: insideSelect.width, height: insideSelectBoxHeight, pl: "0.5rem", pr: "0.375rem", children: [insideLabel ? ((0, jsx_runtime_1.jsx)(SelectTruncatedLabel_1.default, { label: insideLabel, maxWidth: insideSelect.width || "6rem", fontSize: s.fieldFontSize })) : ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.fieldFontSize, fontWeight: 500, color: theme.colors.gray[500], isTruncated: true, maxW: insideSelect.width || "6rem", children: insidePlaceholder })), (0, jsx_runtime_1.jsx)(react_2.Box, { as: "span", display: "inline-flex", flexShrink: 0, color: customSelectOpen ? (_l = theme.colors.primary) === null || _l === void 0 ? void 0 : _l[600] : theme.colors.gray[600], transition: "transform 0.2s ease, color 0.15s ease", transform: customSelectOpen ? "rotate(180deg)" : "rotate(0deg)", children: (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { size: s.chevronSize }) })] }), customSelectOpen && ((0, jsx_runtime_1.jsx)(react_2.Portal, { children: (0, jsx_runtime_1.jsx)(react_2.Box, { ref: setInsideSelectMenuRef, id: "custom-select-portal", position: "fixed", top: `${customSelectPos.top}px`, left: `${customSelectPos.left}px`, zIndex: 1510, bg: theme.colors.background[50], border: "0.063rem solid", borderColor: (_o = (_m = theme.colors.boxborder) === null || _m === void 0 ? void 0 : _m[200]) !== null && _o !== void 0 ? _o : theme.colors.gray[200], borderRadius: "0.5rem", boxShadow: (_q = (_p = theme.shadows) === null || _p === void 0 ? void 0 : _p.md) !== null && _q !== void 0 ? _q : "md", minW: `${customSelectPos.width}px`, maxW: "20rem", py: 1, overflow: "hidden", children: (_r = insideSelect.option) === null || _r === void 0 ? void 0 : _r.map((item) => {
315
315
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
316
316
  const selected = ((_a = insideSelect.value) === null || _a === void 0 ? void 0 : _a.id) === item.id;
317
317
  return ((0, jsx_runtime_1.jsxs)(react_2.Box, { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 2, minH: s.optionRowMinH, py: s.optionRowPy, px: "0.75rem", fontSize: s.dropdownTextFontSize, fontWeight: selected ? 600 : 500, color: selected
@@ -343,7 +343,7 @@ const SearchSelect = ({ id, label, options, onSelect, onSearch, isOptionLoading
343
343
  setFocused(true);
344
344
  setCustomSelectOpen(false);
345
345
  setIsOpen(true);
346
- }, onBlur: () => setFocused(false), placeholder: selectedValues.length && !isOpen ? "" : placeholder })), (0, jsx_runtime_1.jsxs)(react_2.Box, { position: "absolute", right: s.rightOffset, top: "50%", transform: "translateY(-50%)", display: "flex", alignItems: "center", gap: 1, children: [isRemoveAllIcon && selectedValues.length > 0 && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { placement: "top", label: "Remove All", hasArrow: true, bg: theme.colors.gray[600], color: theme.colors.white, fontSize: "0.75rem", children: (0, jsx_runtime_1.jsx)(react_2.IconButton, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: s.clearIconSize, color: theme.colors.black }), "aria-label": "Clear all", variant: "ghost", size: s.iconButtonSize, onClick: handleClearAll, sx: {
346
+ }, onBlur: () => setFocused(false), placeholder: selectedValues.length && !isOpen ? "" : placeholder })), (0, jsx_runtime_1.jsxs)(react_2.Box, { position: "absolute", right: s.rightOffset, top: "50%", transform: "translateY(-50%)", display: "flex", alignItems: "center", gap: 1, children: [isRemoveAllIcon && selectedValues.length > 0 && ((0, jsx_runtime_1.jsx)(ToolTip_1.default, { placement: "top", label: "Remove All", hasArrow: true, fontSize: "0.75rem", children: (0, jsx_runtime_1.jsx)(react_2.IconButton, { icon: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: s.clearIconSize, color: theme.colors.text[900] }), "aria-label": "Clear all", variant: "ghost", size: s.iconButtonSize, onClick: handleClearAll, sx: {
347
347
  bg: "transparent",
348
348
  _hover: { bg: "transparent" },
349
349
  _active: { bg: "transparent" },
@@ -356,6 +356,6 @@ const SearchSelect = ({ id, label, options, onSelect, onSearch, isOptionLoading
356
356
  setCustomSelectOpen(false);
357
357
  return !prev;
358
358
  });
359
- }, "aria-label": "toggle-dropdown", display: "flex", alignItems: "center", children: isOpen ? ((0, jsx_runtime_1.jsx)(lucide_react_1.ChevronUp, { size: s.chevronSize })) : ((0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { size: s.chevronSize })) }))] })] }) }), isOpen && ((0, jsx_runtime_1.jsx)(react_2.Portal, { children: (0, jsx_runtime_1.jsxs)(react_2.Box, { ref: setDropdownMenuRef, id: "searchselect-dropdown-portal", position: "fixed", top: `${dropdownPos.top}px`, left: `${dropdownPos.left}px`, width: `${dropdownPos.width}px`, zIndex: 1500, maxH: "20rem", borderWidth: 1, borderColor: theme.colors.gray[200], borderRadius: "sm", bg: theme.colors.white, boxShadow: "md", display: "flex", flexDirection: "column", children: [isMultiple && isSelectAll && ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, cursor: "pointer", onClick: handleSelectAll, display: "flex", alignItems: "center", gap: 2, borderBottom: `0.063rem solid ${theme.colors.gray[100]}`, children: [(0, jsx_runtime_1.jsx)(Checkbox_1.default, { isChecked: allFilteredSelected, sx: { pointerEvents: "none" }, size: s.checkboxSize }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: allFilteredSelected ? "Unselect All" : "Select All" })] })), (0, jsx_runtime_1.jsx)(react_2.Box, { flex: "1", overflowY: "auto", onScroll: handleScroll, maxH: "15rem", borderBottom: "0.063rem solid", borderColor: theme.colors.gray[200], children: isOptionLoading && filteredOptions.length === 0 ? ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, display: "flex", alignItems: "center", gap: 2, minH: s.optionRowMinH, children: [(0, jsx_runtime_1.jsx)(react_2.Spinner, { size: s.spinnerSize }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: loadingText })] })) : !isOptionLoading && filteredOptions.length === 0 ? ((0, jsx_runtime_1.jsx)(react_2.Text, { p: 3, fontSize: s.dropdownTextFontSize, color: theme.colors.gray[500], children: "No results found" })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [filteredOptions.map((option) => ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, minH: s.optionRowMinH, cursor: "pointer", bg: isSelected(option.id) ? theme.colors.gray[100] : "transparent", _hover: { bg: theme.colors.gray[50] }, onClick: () => handleSelect(option), display: "flex", alignItems: "center", gap: 2, borderBottom: `0.063rem solid ${theme.colors.gray[100]}`, children: [isMultiple && ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { isChecked: isSelected(option.id), sx: { pointerEvents: "none" }, size: s.checkboxSize })), option.view ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: option.view })) : ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: option.label }))] }, option.id))), ((pagination === null || pagination === void 0 ? void 0 : pagination.scrollLoading) || (isOptionLoading && filteredOptions.length > 0)) && ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, display: "flex", alignItems: "center", justifyContent: "center", gap: 2, minH: s.optionRowMinH, children: [(0, jsx_runtime_1.jsx)(react_2.Spinner, { size: s.spinnerSize }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: loadingText })] }))] })) }), (addNew === null || addNew === void 0 ? void 0 : addNew.enabled) && ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, borderTop: "0.063rem solid", borderColor: theme.colors.gray[200], bg: theme.colors.white, display: "flex", alignItems: "center", gap: 2, minH: s.optionRowMinH, cursor: "pointer", onClick: addNew.onClick, _hover: { bg: theme.colors.gray[50] }, children: [addNew.icon || (0, jsx_runtime_1.jsx)(lucide_react_1.Plus, { size: s.addNewIconSize }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: addNew.text || "Add New" })] }))] }) })), helperText && !error && (0, jsx_runtime_1.jsx)(HelperText_1.default, { helperText: helperText }), error && (0, jsx_runtime_1.jsx)(ErrorMessage_1.default, { errorMessage: errorMessage })] }));
359
+ }, "aria-label": "toggle-dropdown", display: "flex", alignItems: "center", children: isOpen ? ((0, jsx_runtime_1.jsx)(lucide_react_1.ChevronUp, { size: s.chevronSize })) : ((0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDown, { size: s.chevronSize })) }))] })] }) }), isOpen && ((0, jsx_runtime_1.jsx)(react_2.Portal, { children: (0, jsx_runtime_1.jsxs)(react_2.Box, { ref: setDropdownMenuRef, id: "searchselect-dropdown-portal", position: "fixed", top: `${dropdownPos.top}px`, left: `${dropdownPos.left}px`, width: `${dropdownPos.width}px`, zIndex: 1500, maxH: "20rem", borderWidth: 1, borderColor: theme.colors.gray[200], borderRadius: "sm", bg: theme.colors.background[50], boxShadow: "md", display: "flex", flexDirection: "column", children: [isMultiple && isSelectAll && ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, cursor: "pointer", onClick: handleSelectAll, display: "flex", alignItems: "center", gap: 2, borderBottom: `0.063rem solid ${theme.colors.gray[100]}`, children: [(0, jsx_runtime_1.jsx)(Checkbox_1.default, { isChecked: allFilteredSelected, sx: { pointerEvents: "none" }, size: s.checkboxSize }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: allFilteredSelected ? "Unselect All" : "Select All" })] })), (0, jsx_runtime_1.jsx)(react_2.Box, { flex: "1", overflowY: "auto", onScroll: handleScroll, maxH: "15rem", borderBottom: "0.063rem solid", borderColor: theme.colors.gray[200], children: isOptionLoading && filteredOptions.length === 0 ? ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, display: "flex", alignItems: "center", gap: 2, minH: s.optionRowMinH, children: [(0, jsx_runtime_1.jsx)(react_2.Spinner, { size: s.spinnerSize }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: loadingText })] })) : !isOptionLoading && filteredOptions.length === 0 ? ((0, jsx_runtime_1.jsx)(react_2.Text, { p: 3, fontSize: s.dropdownTextFontSize, color: theme.colors.gray[500], children: "No results found" })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [filteredOptions.map((option) => ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, minH: s.optionRowMinH, cursor: "pointer", bg: isSelected(option.id) ? theme.colors.gray[100] : "transparent", _hover: { bg: theme.colors.gray[50] }, onClick: () => handleSelect(option), display: "flex", alignItems: "center", gap: 2, borderBottom: `0.063rem solid ${theme.colors.gray[100]}`, children: [isMultiple && ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { isChecked: isSelected(option.id), sx: { pointerEvents: "none" }, size: s.checkboxSize })), option.view ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: option.view })) : ((0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: option.label }))] }, option.id))), ((pagination === null || pagination === void 0 ? void 0 : pagination.scrollLoading) || (isOptionLoading && filteredOptions.length > 0)) && ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, display: "flex", alignItems: "center", justifyContent: "center", gap: 2, minH: s.optionRowMinH, children: [(0, jsx_runtime_1.jsx)(react_2.Spinner, { size: s.spinnerSize }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: loadingText })] }))] })) }), (addNew === null || addNew === void 0 ? void 0 : addNew.enabled) && ((0, jsx_runtime_1.jsxs)(react_2.Box, { py: s.optionRowPy, px: 3, borderTop: "0.063rem solid", borderColor: theme.colors.gray[200], bg: theme.colors.background[50], display: "flex", alignItems: "center", gap: 2, minH: s.optionRowMinH, cursor: "pointer", onClick: addNew.onClick, _hover: { bg: theme.colors.gray[50] }, children: [addNew.icon || (0, jsx_runtime_1.jsx)(lucide_react_1.Plus, { size: s.addNewIconSize }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: s.dropdownTextFontSize, children: addNew.text || "Add New" })] }))] }) })), helperText && !error && (0, jsx_runtime_1.jsx)(HelperText_1.default, { helperText: helperText }), error && (0, jsx_runtime_1.jsx)(ErrorMessage_1.default, { errorMessage: errorMessage })] }));
360
360
  };
361
361
  exports.default = SearchSelect;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.styles.d.ts","sourceRoot":"","sources":["../../../src/Components/Select/Select.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,MAAM,EAAE,oBA+FpB,CAAC"}
1
+ {"version":3,"file":"Select.styles.d.ts","sourceRoot":"","sources":["../../../src/Components/Select/Select.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAsB,MAAM,kBAAkB,CAAC;AAE5E,eAAO,MAAM,MAAM,EAAE,oBAwGpB,CAAC"}