pixelize-design-library 2.4.1-beta.1 → 2.4.1-beta.3

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 (380) hide show
  1. package/dist/Assets/defaultLogo.d.ts.map +1 -1
  2. package/dist/Assets/defaultLogo.js +1 -3
  3. package/dist/Assets/defaultLogo.tsx +4 -8
  4. package/dist/Components/Accordion/accordionColors.d.ts.map +1 -1
  5. package/dist/Components/Accordion/accordionColors.js +17 -3
  6. package/dist/Components/Checkbox/Checkbox.styles.d.ts.map +1 -1
  7. package/dist/Components/Checkbox/Checkbox.styles.js +13 -2
  8. package/dist/Components/CustomModulesTable/EditModuleModal.d.ts.map +1 -1
  9. package/dist/Components/CustomModulesTable/EditModuleModal.js +5 -1
  10. package/dist/Components/DatePicker/CalendarPanel.d.ts.map +1 -1
  11. package/dist/Components/DatePicker/CalendarPanel.js +15 -4
  12. package/dist/Components/DatePicker/SingleDatePicker.d.ts.map +1 -1
  13. package/dist/Components/DatePicker/SingleDatePicker.js +11 -9
  14. package/dist/Components/DatePicker/TimeOnlyPicker.js +2 -2
  15. package/dist/Components/DatePicker/TimePicker.d.ts.map +1 -1
  16. package/dist/Components/DatePicker/TimePicker.js +14 -2
  17. package/dist/Components/DatePicker/TimePickerInput.d.ts.map +1 -1
  18. package/dist/Components/DatePicker/TimePickerInput.js +9 -1
  19. package/dist/Components/Editor/joditThemeVars.d.ts.map +1 -1
  20. package/dist/Components/Editor/joditThemeVars.js +9 -0
  21. package/dist/Components/FilePreview/FilePreview.d.ts.map +1 -1
  22. package/dist/Components/FilePreview/FilePreview.js +3 -1
  23. package/dist/Components/FileUploader/FileUploader.js +2 -2
  24. package/dist/Components/FilterSidebar/FilterSidebar.js +1 -1
  25. package/dist/Components/NavigationBar/NavigationBar.d.ts.map +1 -1
  26. package/dist/Components/NavigationBar/NavigationBar.js +10 -6
  27. package/dist/Components/OrgSwitcher/OrgSwitcher.d.ts.map +1 -1
  28. package/dist/Components/OrgSwitcher/OrgSwitcher.js +22 -3
  29. package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts +1 -0
  30. package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts.map +1 -1
  31. package/dist/Components/OrgSwitcher/OrgSwitcherProps.js +3 -3
  32. package/dist/Components/OrganizationDetails/CreateOrgModal.js +6 -4
  33. package/dist/Components/OrganizationDetails/OrganizationDetails.d.ts.map +1 -1
  34. package/dist/Components/OrganizationDetails/OrganizationDetails.js +55 -7
  35. package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts +24 -14
  36. package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts.map +1 -1
  37. package/dist/Components/PlanPill/PlanPill.d.ts +5 -0
  38. package/dist/Components/PlanPill/PlanPill.d.ts.map +1 -0
  39. package/dist/Components/PlanPill/PlanPill.js +41 -0
  40. package/dist/Components/PlanPill/PlanPillProps.d.ts +28 -0
  41. package/dist/Components/PlanPill/PlanPillProps.d.ts.map +1 -0
  42. package/dist/Components/PlanPill/PlanPillProps.js +2 -0
  43. package/dist/Components/Search/Search.d.ts.map +1 -1
  44. package/dist/Components/Search/Search.js +4 -2
  45. package/dist/Components/Select/Select.styles.d.ts.map +1 -1
  46. package/dist/Components/Select/Select.styles.js +29 -20
  47. package/dist/Components/SelectSearch/SelectSearch.js +1 -1
  48. package/dist/Components/SelectV2/SelectV2.d.ts +3 -0
  49. package/dist/Components/SelectV2/SelectV2.d.ts.map +1 -0
  50. package/dist/Components/SelectV2/SelectV2.js +185 -0
  51. package/dist/Components/SelectV2/SelectV2Props.d.ts +67 -0
  52. package/dist/Components/SelectV2/SelectV2Props.d.ts.map +1 -0
  53. package/dist/Components/SelectV2/SelectV2Props.js +2 -0
  54. package/dist/Components/SideBar/SecondaryBar.d.ts.map +1 -1
  55. package/dist/Components/SideBar/SecondaryBar.js +10 -2
  56. package/dist/Components/SideBar/SideBar.js +2 -2
  57. package/dist/Components/SideBar/components/MenuItemBox.d.ts.map +1 -1
  58. package/dist/Components/SideBar/components/MenuItemBox.js +7 -6
  59. package/dist/Components/Table/components/tableRowHoverStyle.d.ts +9 -8
  60. package/dist/Components/Table/components/tableRowHoverStyle.d.ts.map +1 -1
  61. package/dist/Components/Table/components/tableRowHoverStyle.js +12 -12
  62. package/dist/Components/Table/settings/ManageColumns.js +2 -2
  63. package/dist/Components/UpgradeButton/UpgradeButton.d.ts.map +1 -1
  64. package/dist/Components/UpgradeButton/UpgradeButton.js +25 -7
  65. package/dist/Components/UserDetails/UserDetails.d.ts.map +1 -1
  66. package/dist/Components/UserDetails/UserDetails.js +5 -2
  67. package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.js +2 -1
  68. package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts +2 -2
  69. package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts.map +1 -1
  70. package/dist/Components/WorkspaceWindow/WorkspaceWindow.js +25 -4
  71. package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts +18 -0
  72. package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts.map +1 -1
  73. package/dist/Theme/chakra/Avatar.styles.d.ts +33 -0
  74. package/dist/Theme/chakra/Avatar.styles.d.ts.map +1 -0
  75. package/dist/Theme/chakra/Avatar.styles.js +28 -0
  76. package/dist/Theme/chakra/Drawer.styles.d.ts +32 -0
  77. package/dist/Theme/chakra/Drawer.styles.d.ts.map +1 -0
  78. package/dist/Theme/chakra/Drawer.styles.js +26 -0
  79. package/dist/Theme/chakra/Menu.styles.d.ts +70 -0
  80. package/dist/Theme/chakra/Menu.styles.d.ts.map +1 -0
  81. package/dist/Theme/chakra/Menu.styles.js +50 -0
  82. package/dist/Theme/chakra/Modal.styles.d.ts +32 -0
  83. package/dist/Theme/chakra/Modal.styles.d.ts.map +1 -0
  84. package/dist/Theme/chakra/Modal.styles.js +26 -0
  85. package/dist/Theme/chakra/Popover.styles.d.ts +37 -0
  86. package/dist/Theme/chakra/Popover.styles.d.ts.map +1 -0
  87. package/dist/Theme/chakra/Popover.styles.js +30 -0
  88. package/dist/Theme/chakra/Slider.styles.d.ts +31 -0
  89. package/dist/Theme/chakra/Slider.styles.d.ts.map +1 -0
  90. package/dist/Theme/chakra/Slider.styles.js +25 -0
  91. package/dist/Theme/chakra/Switch.styles.d.ts +31 -0
  92. package/dist/Theme/chakra/Switch.styles.d.ts.map +1 -0
  93. package/dist/Theme/chakra/Switch.styles.js +24 -0
  94. package/dist/Theme/chakra/Tabs.styles.d.ts +43 -0
  95. package/dist/Theme/chakra/Tabs.styles.d.ts.map +1 -0
  96. package/dist/Theme/chakra/Tabs.styles.js +41 -0
  97. package/dist/Theme/chakra/componentStyles.d.ts +230 -1
  98. package/dist/Theme/chakra/componentStyles.d.ts.map +1 -1
  99. package/dist/Theme/chakra/componentStyles.js +136 -0
  100. package/dist/Theme/chakra/createBrandTheme.d.ts.map +1 -1
  101. package/dist/Theme/chakra/createBrandTheme.js +47 -0
  102. package/dist/Theme/provider/PixelizeThemeProvider.d.ts +11 -1
  103. package/dist/Theme/provider/PixelizeThemeProvider.d.ts.map +1 -1
  104. package/dist/Theme/provider/PixelizeThemeProvider.js +35 -2
  105. package/dist/Theme/provider/ThemeSwitcher.d.ts.map +1 -1
  106. package/dist/Theme/provider/ThemeSwitcher.js +23 -11
  107. package/dist/Theme/tokens/brands/index.d.ts.map +1 -1
  108. package/dist/Theme/tokens/brands/index.js +20 -18
  109. package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts.map +1 -1
  110. package/dist/Theme/tokens/brands/zinc/palette.dark.js +4 -2
  111. package/dist/Theme/tokens/builders/outlineRung.d.ts +35 -0
  112. package/dist/Theme/tokens/builders/outlineRung.d.ts.map +1 -0
  113. package/dist/Theme/tokens/builders/outlineRung.js +69 -0
  114. package/dist/Theme/tokens/builders/statusTone.d.ts +35 -0
  115. package/dist/Theme/tokens/builders/statusTone.d.ts.map +1 -0
  116. package/dist/Theme/tokens/builders/statusTone.js +63 -0
  117. package/dist/Utils/planExpiry.d.ts +19 -0
  118. package/dist/Utils/planExpiry.d.ts.map +1 -0
  119. package/dist/Utils/planExpiry.js +61 -0
  120. package/dist/index.d.ts +9 -1
  121. package/dist/index.d.ts.map +1 -1
  122. package/dist/index.js +23 -3
  123. package/package.json +5 -1
  124. package/.claude/settings.local.json +0 -51
  125. package/.cursor/TASK-SETUP.md +0 -43
  126. package/.cursor/agents/be-impl.md +0 -37
  127. package/.cursor/agents/fe-impl.md +0 -39
  128. package/.cursor/agents/task-plan.md +0 -56
  129. package/.cursor/agents/test-create.md +0 -31
  130. package/.cursor/agents/test-exec.md +0 -26
  131. package/.cursor/hooks/task-hint.env +0 -1
  132. package/.cursor/hooks/task-skill-nudge.sh +0 -71
  133. package/.cursor/hooks/task-slash-guard.sh +0 -31
  134. package/.cursor/hooks.json +0 -13
  135. package/.cursor/modules/account-management/MODULE.md +0 -34
  136. package/.cursor/modules/buttons/MODULE.md +0 -47
  137. package/.cursor/modules/cards/MODULE.md +0 -55
  138. package/.cursor/modules/charts/MODULE.md +0 -40
  139. package/.cursor/modules/common/MODULE.md +0 -36
  140. package/.cursor/modules/contact-auth/MODULE.md +0 -19
  141. package/.cursor/modules/data-display/MODULE.md +0 -42
  142. package/.cursor/modules/feedback/MODULE.md +0 -32
  143. package/.cursor/modules/form/MODULE.md +0 -13
  144. package/.cursor/modules/inputs-basic/MODULE.md +0 -42
  145. package/.cursor/modules/inputs-date-file/MODULE.md +0 -56
  146. package/.cursor/modules/inputs-select/MODULE.md +0 -27
  147. package/.cursor/modules/inputs-toggle/MODULE.md +0 -18
  148. package/.cursor/modules/kanban/MODULE.md +0 -22
  149. package/.cursor/modules/layout-navigation/MODULE.md +0 -269
  150. package/.cursor/modules/overlays/MODULE.md +0 -69
  151. package/.cursor/modules/playground/MODULE.md +0 -28
  152. package/.cursor/modules/table/MODULE.md +0 -78
  153. package/.cursor/modules/theme/MODULE.md +0 -314
  154. package/.cursor/modules/types-exports/MODULE.md +0 -17
  155. package/.cursor/modules/utility-ui/MODULE.md +0 -50
  156. package/.cursor/modules/utils-hooks/MODULE.md +0 -35
  157. package/.cursor/pixelize-task-statusline.sh +0 -64
  158. package/.cursor/plans/blocked/.gitkeep +0 -0
  159. package/.cursor/plans/current.md +0 -12
  160. package/.cursor/plans/current.theme-tokens-dark-mode.md +0 -77
  161. package/.cursor/plans/current.theme-tokens-dark.md +0 -155
  162. package/.cursor/plans/done/.gitkeep +0 -0
  163. package/.cursor/rules +0 -31
  164. package/.cursor/skills/task/SKILL.md +0 -167
  165. package/CLAUDE.md +0 -148
  166. package/__mocks__/styleMock.js +0 -8
  167. package/coverage/clover.xml +0 -405
  168. package/coverage/coverage-final.json +0 -16
  169. package/coverage/coverage-summary.json +0 -50
  170. package/coverage/lcov-report/Button/Button.tsx.html +0 -244
  171. package/coverage/lcov-report/Button/index.html +0 -116
  172. package/coverage/lcov-report/Checkbox/Checkbox.tsx.html +0 -433
  173. package/coverage/lcov-report/Checkbox/index.html +0 -116
  174. package/coverage/lcov-report/Common/ErrorMessage.tsx.html +0 -148
  175. package/coverage/lcov-report/Common/FormLabel.tsx.html +0 -331
  176. package/coverage/lcov-report/Common/HelperText.tsx.html +0 -124
  177. package/coverage/lcov-report/Common/index.html +0 -146
  178. package/coverage/lcov-report/Components/Button/Button.tsx.html +0 -244
  179. package/coverage/lcov-report/Components/Button/index.html +0 -116
  180. package/coverage/lcov-report/Components/Checkbox/Checkbox.tsx.html +0 -433
  181. package/coverage/lcov-report/Components/Checkbox/index.html +0 -116
  182. package/coverage/lcov-report/Components/Common/ErrorMessage.tsx.html +0 -148
  183. package/coverage/lcov-report/Components/Common/FormLabel.tsx.html +0 -331
  184. package/coverage/lcov-report/Components/Common/HelperText.tsx.html +0 -124
  185. package/coverage/lcov-report/Components/Common/index.html +0 -146
  186. package/coverage/lcov-report/Components/CustomModulesTable/CustomModulesTable.tsx.html +0 -712
  187. package/coverage/lcov-report/Components/CustomModulesTable/DeleteModuleModal.tsx.html +0 -343
  188. package/coverage/lcov-report/Components/CustomModulesTable/EditModuleModal.tsx.html +0 -313
  189. package/coverage/lcov-report/Components/CustomModulesTable/index.html +0 -146
  190. package/coverage/lcov-report/Components/Divider/Divider.tsx.html +0 -133
  191. package/coverage/lcov-report/Components/Divider/index.html +0 -116
  192. package/coverage/lcov-report/Components/Dropdown/DropDown.tsx.html +0 -994
  193. package/coverage/lcov-report/Components/Dropdown/index.html +0 -116
  194. package/coverage/lcov-report/Components/EmptyState/EmptyState.tsx.html +0 -466
  195. package/coverage/lcov-report/Components/EmptyState/index.html +0 -116
  196. package/coverage/lcov-report/Components/Header/HeaderActions.tsx.html +0 -373
  197. package/coverage/lcov-report/Components/Header/index.html +0 -116
  198. package/coverage/lcov-report/Components/Input/TextInput.tsx.html +0 -487
  199. package/coverage/lcov-report/Components/Input/index.html +0 -116
  200. package/coverage/lcov-report/Components/Input/textInputIconSize.ts.html +0 -205
  201. package/coverage/lcov-report/Components/KanbanBoard/AccountCard.tsx.html +0 -547
  202. package/coverage/lcov-report/Components/KanbanBoard/AccountRow.tsx.html +0 -190
  203. package/coverage/lcov-report/Components/KanbanBoard/KanbanActions/KanbanActions.tsx.html +0 -247
  204. package/coverage/lcov-report/Components/KanbanBoard/KanbanActions/index.html +0 -116
  205. package/coverage/lcov-report/Components/KanbanBoard/KanbanBoard.tsx.html +0 -3598
  206. package/coverage/lcov-report/Components/KanbanBoard/MeasuredItem.tsx.html +0 -283
  207. package/coverage/lcov-report/Components/KanbanBoard/index.html +0 -161
  208. package/coverage/lcov-report/Components/OrganizationDetails/CreateOrgModal.tsx.html +0 -511
  209. package/coverage/lcov-report/Components/OrganizationDetails/DeleteOrgModal.tsx.html +0 -334
  210. package/coverage/lcov-report/Components/OrganizationDetails/OrganizationDetails.tsx.html +0 -1519
  211. package/coverage/lcov-report/Components/OrganizationDetails/index.html +0 -146
  212. package/coverage/lcov-report/Components/RolesPermission/DeleteRoleModal.tsx.html +0 -328
  213. package/coverage/lcov-report/Components/RolesPermission/RolesPermission.tsx.html +0 -1732
  214. package/coverage/lcov-report/Components/RolesPermission/index.html +0 -131
  215. package/coverage/lcov-report/Components/SearchSelect/SearchSelect.tsx.html +0 -2575
  216. package/coverage/lcov-report/Components/SearchSelect/SelectTruncatedLabel.tsx.html +0 -202
  217. package/coverage/lcov-report/Components/SearchSelect/index.html +0 -146
  218. package/coverage/lcov-report/Components/SearchSelect/searchSelectSize.ts.html +0 -496
  219. package/coverage/lcov-report/Components/Select/Select.tsx.html +0 -361
  220. package/coverage/lcov-report/Components/Select/index.html +0 -116
  221. package/coverage/lcov-report/Components/SideBar/components/OtherApps.tsx.html +0 -562
  222. package/coverage/lcov-report/Components/SideBar/components/OverflowTooltipText.tsx.html +0 -346
  223. package/coverage/lcov-report/Components/SideBar/components/index.html +0 -116
  224. package/coverage/lcov-report/Components/SignInActivityTable/SignInActivityTable.tsx.html +0 -490
  225. package/coverage/lcov-report/Components/SignInActivityTable/index.html +0 -116
  226. package/coverage/lcov-report/Components/Table/components/TableActions.tsx.html +0 -595
  227. package/coverage/lcov-report/Components/Table/components/TableBody.tsx.html +0 -2212
  228. package/coverage/lcov-report/Components/Table/components/TableGroupRow.tsx.html +0 -358
  229. package/coverage/lcov-report/Components/Table/components/TableLoading.tsx.html +0 -358
  230. package/coverage/lcov-report/Components/Table/components/index.html +0 -161
  231. package/coverage/lcov-report/Components/Table/settings/ManageColumns.tsx.html +0 -856
  232. package/coverage/lcov-report/Components/Table/settings/index.html +0 -116
  233. package/coverage/lcov-report/Components/Tag/Tag.styles.tsx.html +0 -331
  234. package/coverage/lcov-report/Components/Tag/Tag.tsx.html +0 -256
  235. package/coverage/lcov-report/Components/Tag/index.html +0 -131
  236. package/coverage/lcov-report/Components/ToolTip/ToolTip.tsx.html +0 -286
  237. package/coverage/lcov-report/Components/ToolTip/index.html +0 -116
  238. package/coverage/lcov-report/Components/UserDetails/AddUserModal.tsx.html +0 -709
  239. package/coverage/lcov-report/Components/UserDetails/ChangeRoleModal.tsx.html +0 -505
  240. package/coverage/lcov-report/Components/UserDetails/DeactivateConfirmModal.tsx.html +0 -379
  241. package/coverage/lcov-report/Components/UserDetails/UserDetails.tsx.html +0 -1900
  242. package/coverage/lcov-report/Components/UserDetails/index.html +0 -161
  243. package/coverage/lcov-report/EmptyState/EmptyState.tsx.html +0 -466
  244. package/coverage/lcov-report/EmptyState/index.html +0 -116
  245. package/coverage/lcov-report/Hooks/index.html +0 -116
  246. package/coverage/lcov-report/Hooks/usePreferences.ts.html +0 -421
  247. package/coverage/lcov-report/Input/TextInput.tsx.html +0 -487
  248. package/coverage/lcov-report/Input/index.html +0 -131
  249. package/coverage/lcov-report/Input/textInputIconSize.ts.html +0 -205
  250. package/coverage/lcov-report/KanbanBoard.tsx.html +0 -3481
  251. package/coverage/lcov-report/OrganizationDetails/CreateOrgModal.tsx.html +0 -511
  252. package/coverage/lcov-report/OrganizationDetails/DeleteOrgModal.tsx.html +0 -334
  253. package/coverage/lcov-report/OrganizationDetails/OrganizationDetails.tsx.html +0 -1519
  254. package/coverage/lcov-report/OrganizationDetails/index.html +0 -146
  255. package/coverage/lcov-report/RolesPermission/DeleteRoleModal.tsx.html +0 -328
  256. package/coverage/lcov-report/RolesPermission/RolesPermission.tsx.html +0 -1732
  257. package/coverage/lcov-report/RolesPermission/index.html +0 -116
  258. package/coverage/lcov-report/SearchSelect/SearchSelect.tsx.html +0 -2575
  259. package/coverage/lcov-report/SearchSelect/SelectTruncatedLabel.tsx.html +0 -202
  260. package/coverage/lcov-report/SearchSelect/index.html +0 -146
  261. package/coverage/lcov-report/SearchSelect/searchSelectSize.ts.html +0 -496
  262. package/coverage/lcov-report/Table/CompactSelect.tsx.html +0 -379
  263. package/coverage/lcov-report/Table/Components/ActiveFilters.tsx.html +0 -514
  264. package/coverage/lcov-report/Table/Components/HeaderActions.tsx.html +0 -373
  265. package/coverage/lcov-report/Table/Components/Pagination.tsx.html +0 -574
  266. package/coverage/lcov-report/Table/Components/TableActions.tsx.html +0 -574
  267. package/coverage/lcov-report/Table/Components/TableBody.tsx.html +0 -1027
  268. package/coverage/lcov-report/Table/Components/TableFilters.tsx.html +0 -397
  269. package/coverage/lcov-report/Table/Components/TableHeader.tsx.html +0 -1060
  270. package/coverage/lcov-report/Table/Components/TableLoading.tsx.html +0 -361
  271. package/coverage/lcov-report/Table/Components/TableSearch.tsx.html +0 -337
  272. package/coverage/lcov-report/Table/Components/index.html +0 -266
  273. package/coverage/lcov-report/Table/Components/useDebounce.ts.html +0 -178
  274. package/coverage/lcov-report/Table/Components/useTable.ts.html +0 -778
  275. package/coverage/lcov-report/Table/LeftFilterPane.tsx.html +0 -1810
  276. package/coverage/lcov-report/Table/SelectOperationControls.tsx.html +0 -178
  277. package/coverage/lcov-report/Table/Table.tsx.html +0 -1567
  278. package/coverage/lcov-report/Table/TableProps.tsx.html +0 -658
  279. package/coverage/lcov-report/Table/TableSettings/ManageColumns.tsx.html +0 -619
  280. package/coverage/lcov-report/Table/TableSettings/TableFilters.tsx.html +0 -229
  281. package/coverage/lcov-report/Table/TableSettings/TableSettings.tsx.html +0 -532
  282. package/coverage/lcov-report/Table/TableSettings/index.html +0 -146
  283. package/coverage/lcov-report/Table/TableToDo.tsx.html +0 -973
  284. package/coverage/lcov-report/Table/TextOperationControls.tsx.html +0 -271
  285. package/coverage/lcov-report/Table/filterTypes.ts.html +0 -97
  286. package/coverage/lcov-report/Table/index.html +0 -176
  287. package/coverage/lcov-report/Table/settings/ManageColumns.tsx.html +0 -856
  288. package/coverage/lcov-report/Table/settings/index.html +0 -116
  289. package/coverage/lcov-report/Tag/Tag.tsx.html +0 -256
  290. package/coverage/lcov-report/Tag/index.html +0 -116
  291. package/coverage/lcov-report/Theme/buildBrandTokens.ts.html +0 -175
  292. package/coverage/lcov-report/Theme/chartColorsFromTheme.ts.html +0 -214
  293. package/coverage/lcov-report/Theme/index.html +0 -131
  294. package/coverage/lcov-report/Theme/useCustomTheme.ts.html +0 -100
  295. package/coverage/lcov-report/ToolTip/ToolTip.tsx.html +0 -286
  296. package/coverage/lcov-report/ToolTip/index.html +0 -116
  297. package/coverage/lcov-report/UserDetails/AddUserModal.tsx.html +0 -709
  298. package/coverage/lcov-report/UserDetails/ChangeRoleModal.tsx.html +0 -505
  299. package/coverage/lcov-report/UserDetails/index.html +0 -116
  300. package/coverage/lcov-report/Utils/functions.ts.html +0 -106
  301. package/coverage/lcov-report/Utils/index.html +0 -116
  302. package/coverage/lcov-report/Utils/table.ts.html +0 -1189
  303. package/coverage/lcov-report/base.css +0 -224
  304. package/coverage/lcov-report/block-navigation.js +0 -87
  305. package/coverage/lcov-report/favicon.png +0 -0
  306. package/coverage/lcov-report/index.html +0 -251
  307. package/coverage/lcov-report/prettify.css +0 -1
  308. package/coverage/lcov-report/prettify.js +0 -2
  309. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  310. package/coverage/lcov-report/sorter.js +0 -210
  311. package/coverage/lcov.info +0 -981
  312. package/dist/Theme/Dark/theme.d.ts +0 -3
  313. package/dist/Theme/Dark/theme.d.ts.map +0 -1
  314. package/dist/Theme/Dark/theme.js +0 -277
  315. package/dist/Theme/Default/palette.d.ts +0 -375
  316. package/dist/Theme/Default/palette.d.ts.map +0 -1
  317. package/dist/Theme/Default/palette.js +0 -306
  318. package/dist/Theme/Default/theme.d.ts +0 -3
  319. package/dist/Theme/Default/theme.d.ts.map +0 -1
  320. package/dist/Theme/Default/theme.js +0 -19
  321. package/dist/Theme/Emerald/palette.d.ts +0 -375
  322. package/dist/Theme/Emerald/palette.d.ts.map +0 -1
  323. package/dist/Theme/Emerald/palette.js +0 -125
  324. package/dist/Theme/Emerald/theme.d.ts +0 -3
  325. package/dist/Theme/Emerald/theme.d.ts.map +0 -1
  326. package/dist/Theme/Emerald/theme.js +0 -19
  327. package/dist/Theme/Meadow/palette.d.ts +0 -375
  328. package/dist/Theme/Meadow/palette.d.ts.map +0 -1
  329. package/dist/Theme/Meadow/palette.js +0 -123
  330. package/dist/Theme/Meadow/theme.d.ts +0 -3
  331. package/dist/Theme/Meadow/theme.d.ts.map +0 -1
  332. package/dist/Theme/Meadow/theme.js +0 -19
  333. package/dist/Theme/Radiant/palette.d.ts +0 -375
  334. package/dist/Theme/Radiant/palette.d.ts.map +0 -1
  335. package/dist/Theme/Radiant/palette.js +0 -125
  336. package/dist/Theme/Radiant/theme.d.ts +0 -3
  337. package/dist/Theme/Radiant/theme.d.ts.map +0 -1
  338. package/dist/Theme/Radiant/theme.js +0 -19
  339. package/dist/Theme/Rosewood/palette.d.ts +0 -375
  340. package/dist/Theme/Rosewood/palette.d.ts.map +0 -1
  341. package/dist/Theme/Rosewood/palette.js +0 -125
  342. package/dist/Theme/Rosewood/theme.d.ts +0 -3
  343. package/dist/Theme/Rosewood/theme.d.ts.map +0 -1
  344. package/dist/Theme/Rosewood/theme.js +0 -19
  345. package/dist/Theme/Skyline/palette.d.ts +0 -375
  346. package/dist/Theme/Skyline/palette.d.ts.map +0 -1
  347. package/dist/Theme/Skyline/palette.js +0 -123
  348. package/dist/Theme/Skyline/theme.d.ts +0 -3
  349. package/dist/Theme/Skyline/theme.d.ts.map +0 -1
  350. package/dist/Theme/Skyline/theme.js +0 -19
  351. package/dist/Theme/Slate/palette.d.ts +0 -375
  352. package/dist/Theme/Slate/palette.d.ts.map +0 -1
  353. package/dist/Theme/Slate/palette.js +0 -123
  354. package/dist/Theme/Slate/theme.d.ts +0 -3
  355. package/dist/Theme/Slate/theme.d.ts.map +0 -1
  356. package/dist/Theme/Slate/theme.js +0 -19
  357. package/dist/Theme/buildBrandTokens.d.ts +0 -16
  358. package/dist/Theme/buildBrandTokens.d.ts.map +0 -1
  359. package/dist/Theme/buildBrandTokens.js +0 -33
  360. package/dist/Theme/chartColorsFromTheme.d.ts +0 -19
  361. package/dist/Theme/chartColorsFromTheme.d.ts.map +0 -1
  362. package/dist/Theme/chartColorsFromTheme.js +0 -34
  363. package/dist/Theme/common.d.ts +0 -167
  364. package/dist/Theme/common.d.ts.map +0 -1
  365. package/dist/Theme/common.js +0 -112
  366. package/dist/Theme/componentStyles.d.ts +0 -10
  367. package/dist/Theme/componentStyles.d.ts.map +0 -1
  368. package/dist/Theme/componentStyles.js +0 -19
  369. package/dist/Theme/fonts.d.ts +0 -37
  370. package/dist/Theme/fonts.d.ts.map +0 -1
  371. package/dist/Theme/fonts.js +0 -41
  372. package/dist/Theme/space.d.ts +0 -34
  373. package/dist/Theme/space.d.ts.map +0 -1
  374. package/dist/Theme/space.js +0 -35
  375. package/dist/Theme/theme.d.ts +0 -3
  376. package/dist/Theme/theme.d.ts.map +0 -1
  377. package/dist/Theme/theme.js +0 -12
  378. package/eslint.config.js +0 -48
  379. package/index.html +0 -13
  380. package/vite.config.ts +0 -13
@@ -1 +1 @@
1
- {"version":3,"file":"defaultLogo.d.ts","sourceRoot":"","sources":["../../src/Assets/defaultLogo.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,+CAyBhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"defaultLogo.d.ts","sourceRoot":"","sources":["../../src/Assets/defaultLogo.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW,+CAuBhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const jsx_runtime_1 = require("react/jsx-runtime");
4
- const useCustomTheme_1 = require("../Theme/useCustomTheme");
5
4
  const DefaultLogo = () => {
6
- const theme = (0, useCustomTheme_1.useCustomTheme)();
7
- return ((0, jsx_runtime_1.jsxs)("svg", { width: "12.09", height: "15.95", viewBox: "0 0 31 29", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M30.4999 6.26137V7.81058H15.9761H14.8787V22.8508V28.8862H12.5226C9.6824 28.8862 7.32632 26.4656 7.06812 23.3995C7.06812 23.2381 7.06812 23.0444 7.06812 22.8508V18.3323C7.06812 18.2677 7.06812 18.2032 7.06812 18.1063V15.5889V6.2291C7.06812 2.80793 9.84378 -5.72205e-06 13.2972 -5.72205e-06H24.8517C28.0147 0.355021 30.4676 3.00158 30.4676 6.2291L30.4999 6.26137Z", fill: theme.colors.black }), (0, jsx_runtime_1.jsx)("path", { d: "M7.10053 23.3672H7.03598C5.16402 23.2381 3.48571 22.4635 2.25926 21.3338C0.871428 20.0428 0 18.2677 0 16.3312V15.6211H7.06825V18.1386C7.06825 18.2032 7.06825 18.2677 7.06825 18.3645V22.883C7.06825 23.0767 7.06825 23.2381 7.06825 23.4317L7.10053 23.3672Z", fill: theme.colors.black }), (0, jsx_runtime_1.jsx)("path", { d: "M30.4678 12.0063V15.6211V17.1703C30.4678 20.6238 26.272 23.3994 21.0757 23.3994H14.8789V22.8508V15.6211H22.6572V7.81056C22.6895 7.81056 30.5001 7.81056 30.5001 7.81056V11.5868C30.5001 11.7159 30.5001 11.8772 30.5001 12.0063H30.4678Z", fill: theme.colors.black })] }));
5
+ return ((0, jsx_runtime_1.jsxs)("svg", { width: "12.09", height: "15.95", viewBox: "0 0 31 29", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M30.4999 6.26137V7.81058H15.9761H14.8787V22.8508V28.8862H12.5226C9.6824 28.8862 7.32632 26.4656 7.06812 23.3995C7.06812 23.2381 7.06812 23.0444 7.06812 22.8508V18.3323C7.06812 18.2677 7.06812 18.2032 7.06812 18.1063V15.5889V6.2291C7.06812 2.80793 9.84378 -5.72205e-06 13.2972 -5.72205e-06H24.8517C28.0147 0.355021 30.4676 3.00158 30.4676 6.2291L30.4999 6.26137Z", fill: "currentColor" }), (0, jsx_runtime_1.jsx)("path", { d: "M7.10053 23.3672H7.03598C5.16402 23.2381 3.48571 22.4635 2.25926 21.3338C0.871428 20.0428 0 18.2677 0 16.3312V15.6211H7.06825V18.1386C7.06825 18.2032 7.06825 18.2677 7.06825 18.3645V22.883C7.06825 23.0767 7.06825 23.2381 7.06825 23.4317L7.10053 23.3672Z", fill: "currentColor" }), (0, jsx_runtime_1.jsx)("path", { d: "M30.4678 12.0063V15.6211V17.1703C30.4678 20.6238 26.272 23.3994 21.0757 23.3994H14.8789V22.8508V15.6211H22.6572V7.81056C22.6895 7.81056 30.5001 7.81056 30.5001 7.81056V11.5868C30.5001 11.7159 30.5001 11.8772 30.5001 12.0063H30.4678Z", fill: "currentColor" })] }));
8
6
  };
9
7
  exports.default = DefaultLogo;
@@ -1,7 +1,4 @@
1
- import { useCustomTheme } from "../Theme/useCustomTheme";
2
-
3
1
  const DefaultLogo = () => {
4
- const theme = useCustomTheme();
5
2
  return (
6
3
  <svg
7
4
  width="12.09"
@@ -12,19 +9,18 @@ const DefaultLogo = () => {
12
9
  >
13
10
  <path
14
11
  d="M30.4999 6.26137V7.81058H15.9761H14.8787V22.8508V28.8862H12.5226C9.6824 28.8862 7.32632 26.4656 7.06812 23.3995C7.06812 23.2381 7.06812 23.0444 7.06812 22.8508V18.3323C7.06812 18.2677 7.06812 18.2032 7.06812 18.1063V15.5889V6.2291C7.06812 2.80793 9.84378 -5.72205e-06 13.2972 -5.72205e-06H24.8517C28.0147 0.355021 30.4676 3.00158 30.4676 6.2291L30.4999 6.26137Z"
15
- fill={theme.colors.black}
12
+ fill="currentColor"
16
13
  />
17
14
  <path
18
15
  d="M7.10053 23.3672H7.03598C5.16402 23.2381 3.48571 22.4635 2.25926 21.3338C0.871428 20.0428 0 18.2677 0 16.3312V15.6211H7.06825V18.1386C7.06825 18.2032 7.06825 18.2677 7.06825 18.3645V22.883C7.06825 23.0767 7.06825 23.2381 7.06825 23.4317L7.10053 23.3672Z"
19
- fill={theme.colors.black}
16
+ fill="currentColor"
20
17
  />
21
18
  <path
22
19
  d="M30.4678 12.0063V15.6211V17.1703C30.4678 20.6238 26.272 23.3994 21.0757 23.3994H14.8789V22.8508V15.6211H22.6572V7.81056C22.6895 7.81056 30.5001 7.81056 30.5001 7.81056V11.5868C30.5001 11.7159 30.5001 11.8772 30.5001 12.0063H30.4678Z"
23
- fill={theme.colors.black}
20
+ fill="currentColor"
24
21
  />
25
22
  </svg>
26
-
27
- )
23
+ );
28
24
  };
29
25
 
30
26
  export default DefaultLogo;
@@ -1 +1 @@
1
- {"version":3,"file":"accordionColors.d.ts","sourceRoot":"","sources":["../../../src/Components/Accordion/accordionColors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,eAAO,MAAM,uBAAuB,GAClC,QAAQ,YAAY,EACpB,QAAQ,OAAO,KACd;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAczC,CAAC"}
1
+ {"version":3,"file":"accordionColors.d.ts","sourceRoot":"","sources":["../../../src/Components/Accordion/accordionColors.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAW7D,eAAO,MAAM,uBAAuB,GAClC,QAAQ,YAAY,EACpB,QAAQ,OAAO,KACd;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAuBzC,CAAC"}
@@ -1,8 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAccordionHoverColors = void 0;
4
+ const color_1 = require("../../Theme/tokens/builders/color");
5
+ const outlineRung_1 = require("../../Theme/tokens/builders/outlineRung");
6
+ /**
7
+ * Same perceptibility floor the SideBar ladder uses — a state a user cannot see is not a state.
8
+ * Light mode `softHover` measured 1.042-1.105 across all 9 brands (invisible) while dark sat at
9
+ * 1.58-1.85; `expandedBg` (`primary.opacity[8]`, an 8%-alpha tint) is the same bug class — an
10
+ * 8% tint composited over a near-white canvas is itself near-white. Both are resolved against
11
+ * the rest surface so light and dark actually agree on "you can see this".
12
+ */
13
+ const MIN_HOVER_STEP = 1.15;
4
14
  const getAccordionHoverColors = (colors, isDark) => {
5
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
15
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
6
16
  if (isDark) {
7
17
  // primary.opacity[8] composited over the dark canvas collapses to ~1.07:1 (near-black on
8
18
  // near-black) — gray[200] is an opaque rung that stays visibly above canvas (~1.6:1) without
@@ -12,9 +22,13 @@ const getAccordionHoverColors = (colors, isDark) => {
12
22
  softHover: (_j = (_g = (_f = colors.gray) === null || _f === void 0 ? void 0 : _f[200]) !== null && _g !== void 0 ? _g : (_h = colors.gray) === null || _h === void 0 ? void 0 : _h[300]) !== null && _j !== void 0 ? _j : (_k = colors.gray) === null || _k === void 0 ? void 0 : _k[50],
13
23
  };
14
24
  }
25
+ const rest = (_m = (_l = colors.background) === null || _l === void 0 ? void 0 : _l[50]) !== null && _m !== void 0 ? _m : "#ffffff";
26
+ const expandedTint = ((_p = (_o = colors.primary) === null || _o === void 0 ? void 0 : _o.opacity) === null || _p === void 0 ? void 0 : _p[8])
27
+ ? (0, color_1.compositeOver)(colors.primary.opacity[8], rest)
28
+ : ((_r = (_q = colors.gray) === null || _q === void 0 ? void 0 : _q[50]) !== null && _r !== void 0 ? _r : rest);
15
29
  return {
16
- expandedBg: (_o = (_m = (_l = colors.primary) === null || _l === void 0 ? void 0 : _l.opacity) === null || _m === void 0 ? void 0 : _m[8]) !== null && _o !== void 0 ? _o : (_p = colors.gray) === null || _p === void 0 ? void 0 : _p[50],
17
- softHover: (_s = (_r = (_q = colors.table) === null || _q === void 0 ? void 0 : _q.hover) === null || _r === void 0 ? void 0 : _r[100]) !== null && _s !== void 0 ? _s : (_t = colors.gray) === null || _t === void 0 ? void 0 : _t[50],
30
+ expandedBg: (0, outlineRung_1.liftToContrast)(expandedTint, rest, "light", MIN_HOVER_STEP),
31
+ softHover: (0, outlineRung_1.liftToContrast)((_u = (_t = (_s = colors.table) === null || _s === void 0 ? void 0 : _s.hover) === null || _t === void 0 ? void 0 : _t[100]) !== null && _u !== void 0 ? _u : (_v = colors.gray) === null || _v === void 0 ? void 0 : _v[50], rest, "light", MIN_HOVER_STEP),
18
32
  };
19
33
  };
20
34
  exports.getAccordionHoverColors = getAccordionHoverColors;
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/Components/Checkbox/Checkbox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,eAAO,MAAM,QAAQ,EAAE,oBA4DtB,CAAC"}
1
+ {"version":3,"file":"Checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/Components/Checkbox/Checkbox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGxD,eAAO,MAAM,QAAQ,EAAE,oBAsEtB,CAAC"}
@@ -1,10 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Checkbox = void 0;
4
+ const outlineRung_1 = require("../../Theme/tokens/builders/outlineRung");
4
5
  exports.Checkbox = {
5
6
  baseStyle: ({ theme, colorScheme = "primary" }) => {
6
7
  var _a;
7
8
  const palette = (_a = theme.colors[colorScheme]) !== null && _a !== void 0 ? _a : theme.colors.primary;
9
+ // A browser probe found the checked checkbox's hover repeating its own resting `[600]` fill.
10
+ // Chakra's stock control also carries a checked-hover at `_checked._hover` (this override
11
+ // nests the other way, `_hover._checked`) — two different key paths landing on the same
12
+ // selector, so whichever one the cascade picks must still differ from resting. Setting both
13
+ // paths to the same lifted value removes that ambiguity outright.
14
+ const hoverChecked = (0, outlineRung_1.resolveHoverTint)(palette[600], palette[600]);
8
15
  return {
9
16
  control: {
10
17
  width: "1.25rem",
@@ -27,13 +34,17 @@ exports.Checkbox = {
27
34
  _checked: {
28
35
  bg: palette[600],
29
36
  borderColor: palette[600],
37
+ _hover: {
38
+ bg: hoverChecked,
39
+ borderColor: hoverChecked,
40
+ },
30
41
  },
31
42
  _hover: {
32
43
  bg: theme.colors.background[100],
33
44
  borderColor: palette[400],
34
45
  _checked: {
35
- bg: palette[600],
36
- borderColor: palette[600],
46
+ bg: hoverChecked,
47
+ borderColor: hoverChecked,
37
48
  },
38
49
  _indeterminate: {
39
50
  bg: "none",
@@ -1 +1 @@
1
- {"version":3,"file":"EditModuleModal.d.ts","sourceRoot":"","sources":["../../../src/Components/CustomModulesTable/EditModuleModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAcnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA+DnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"EditModuleModal.d.ts","sourceRoot":"","sources":["../../../src/Components/CustomModulesTable/EditModuleModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAcnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAkEnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -16,6 +16,10 @@ const EditModuleModal = ({ isOpen, onClose, initialName, isLoading, onSubmit, la
16
16
  if (isOpen)
17
17
  setName(initialName);
18
18
  }, [isOpen, initialName]);
19
- return ((0, jsx_runtime_1.jsxs)(react_2.Modal, { isOpen: isOpen, onClose: onClose, isCentered: true, children: [(0, jsx_runtime_1.jsx)(react_2.ModalOverlay, { backdropFilter: "blur(4px)" }), (0, jsx_runtime_1.jsxs)(react_2.ModalContent, { borderRadius: "2xl", overflow: "hidden", bg: (_a = colors === null || colors === void 0 ? void 0 : colors.background) === null || _a === void 0 ? void 0 : _a[50], children: [(0, jsx_runtime_1.jsx)(react_2.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], fontSize: "1.05rem", fontWeight: 600, children: labels.editModuleTitle }), (0, jsx_runtime_1.jsx)(react_2.ModalCloseButton, {}), (0, jsx_runtime_1.jsxs)(react_2.ModalBody, { py: 6, children: [(0, jsx_runtime_1.jsx)(react_2.Input, { value: name, onChange: (e) => setName(e.target.value), placeholder: labels.moduleNamePlaceholder, borderColor: (_f = (_e = colors === null || colors === void 0 ? void 0 : colors.boxborder) === null || _e === void 0 ? void 0 : _e[200]) !== null && _f !== void 0 ? _f : (_g = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _g === void 0 ? void 0 : _g[200], mb: 5 }), (0, jsx_runtime_1.jsxs)(react_2.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.update, onClick: () => onSubmit(name.trim()), colorScheme: "primary", size: "sm", isLoading: isLoading, isDisabled: !name.trim() })] })] })] })] }));
19
+ return ((0, jsx_runtime_1.jsxs)(react_2.Modal, { isOpen: isOpen, onClose: onClose, isCentered: true, children: [(0, jsx_runtime_1.jsx)(react_2.ModalOverlay, { backdropFilter: "blur(4px)" }), (0, jsx_runtime_1.jsxs)(react_2.ModalContent, { borderRadius: "2xl", overflow: "hidden", bg: (_a = colors === null || colors === void 0 ? void 0 : colors.background) === null || _a === void 0 ? void 0 : _a[50], children: [(0, jsx_runtime_1.jsx)(react_2.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], fontSize: "1.05rem", fontWeight: 600, children: labels.editModuleTitle }), (0, jsx_runtime_1.jsx)(react_2.ModalCloseButton, {}), (0, jsx_runtime_1.jsxs)(react_2.ModalBody, { py: 6, children: [(0, jsx_runtime_1.jsx)(react_2.Input, { value: name, onChange: (e) => setName(e.target.value), placeholder: labels.moduleNamePlaceholder,
20
+ // [200] is the decorative divider rung (~1.2:1, correct for the ModalHeader border
21
+ // above) — a real control's resting outline needs 1.4.11's 3:1, which is what every
22
+ // other input in this library (TextInput, NumberInput, DatePicker) reads from [800].
23
+ borderColor: (_f = (_e = colors === null || colors === void 0 ? void 0 : colors.boxborder) === null || _e === void 0 ? void 0 : _e[800]) !== null && _f !== void 0 ? _f : (_g = colors === null || colors === void 0 ? void 0 : colors.gray) === null || _g === void 0 ? void 0 : _g[400], mb: 5 }), (0, jsx_runtime_1.jsxs)(react_2.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.update, onClick: () => onSubmit(name.trim()), colorScheme: "primary", size: "sm", isLoading: isLoading, isDisabled: !name.trim() })] })] })] })] }));
20
24
  };
21
25
  exports.default = EditModuleModal;
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarPanel.d.ts","sourceRoot":"","sources":["../../../src/Components/DatePicker/CalendarPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,IAAI,CAAC;IACnB,eAAe,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC;IACzD,KAAK,EAAE,IAAI,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,cAAc,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO,CAAC;IACzC,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO,CAAC;IACxC,OAAO,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IAE/B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8QtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"CalendarPanel.d.ts","sourceRoot":"","sources":["../../../src/Components/DatePicker/CalendarPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,YAAY,EAAE,IAAI,CAAC;IACnB,eAAe,EAAE,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC;IACzD,KAAK,EAAE,IAAI,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,cAAc,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO,CAAC;IACzC,QAAQ,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO,CAAC;IACxC,OAAO,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IAE/B,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwRtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -10,6 +10,7 @@ const date_fns_1 = require("date-fns");
10
10
  const lucide_react_1 = require("lucide-react");
11
11
  const Button_1 = __importDefault(require("../Button/Button"));
12
12
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
13
+ const accentText_1 = require("../../Theme/tokens/builders/accentText");
13
14
  const CalendarPanel = ({ currentMonth, setCurrentMonth, today, isRange, tempDate, tempRangeStart, tempRangeEnd, isSameDay, isBefore, isAfter, minDate, maxDate, disablePastDates, disableFutureDates, disableToday, onDaySelect, hoveredDate, onDayHover, renderWeekdays, }) => {
14
15
  var _a;
15
16
  const theme = (0, useCustomTheme_1.useCustomTheme)();
@@ -26,7 +27,9 @@ const CalendarPanel = ({ currentMonth, setCurrentMonth, today, isRange, tempDate
26
27
  const hasRange = !!(rangeStart && rangeEnd && !isSameDay(rangeStart, rangeEnd));
27
28
  const selectStyles = {
28
29
  border: "1px solid",
29
- borderColor: (_a = theme.colors.boxborder) === null || _a === void 0 ? void 0 : _a[300],
30
+ // boxborder[500] is the control-outline rung the sibling pickers already use; boxborder[300]
31
+ // is decorative and measured 1.85:1 on the dark canvas — the select read as borderless.
32
+ borderColor: (_a = theme.colors.boxborder) === null || _a === void 0 ? void 0 : _a[500],
30
33
  borderRadius: "md",
31
34
  px: 2,
32
35
  py: 1,
@@ -86,11 +89,19 @@ const CalendarPanel = ({ currentMonth, setCurrentMonth, today, isRange, tempDate
86
89
  else if (isEnd)
87
90
  cellBg = `linear-gradient(to right, ${rangeBg} 50%, transparent 50%)`;
88
91
  }
92
+ // Solid fill (selected/range-endpoint) needs the ink checked against that
93
+ // specific fill — `primary[500]` doesn't reliably clear AA for white text on
94
+ // every brand/mode (same gap the solid Button variant already accounts for).
95
+ const solidFill = theme.colors.primary[500];
96
+ const solidHoverFill = theme.colors.primary[600];
89
97
  const circleColor = circleSolid
90
- ? theme.colors.white
98
+ ? (0, accentText_1.onFilled)(solidFill, theme.colors.white, theme.colors.black)
91
99
  : isInCurrentMonth
92
100
  ? theme.colors.text[700]
93
101
  : theme.colors.gray[400];
102
+ const circleHoverColor = circleSolid
103
+ ? (0, accentText_1.onFilled)(solidHoverFill, theme.colors.white, theme.colors.black)
104
+ : circleColor;
94
105
  const circleBorder = circleSolid
95
106
  ? "1px solid transparent"
96
107
  : isTentativeEnd
@@ -98,10 +109,10 @@ const CalendarPanel = ({ currentMonth, setCurrentMonth, today, isRange, tempDate
98
109
  : isToday
99
110
  ? `1px solid ${theme.colors.primary[300]}`
100
111
  : "1px solid transparent";
101
- days.push((0, jsx_runtime_1.jsx)(react_1.Box, { h: "2rem", display: "flex", alignItems: "center", justifyContent: "center", style: cellBg ? { background: cellBg } : undefined, children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "button", type: "button", disabled: disabled, onClick: () => !disabled && onDaySelect(new Date(thisDay)), onMouseEnter: () => !disabled && (onDayHover === null || onDayHover === void 0 ? void 0 : onDayHover(new Date(thisDay))), w: "1.75rem", h: "1.75rem", borderRadius: "full", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "0.8125rem", fontWeight: circleSolid ? 600 : 500, lineHeight: "1", cursor: disabled ? "not-allowed" : "pointer", bg: circleSolid ? theme.colors.primary[500] : "transparent", color: circleColor, border: circleBorder, transition: "background 0.12s, color 0.12s", _hover: disabled
112
+ days.push((0, jsx_runtime_1.jsx)(react_1.Box, { h: "2rem", display: "flex", alignItems: "center", justifyContent: "center", style: cellBg ? { background: cellBg } : undefined, children: (0, jsx_runtime_1.jsx)(react_1.Box, { as: "button", type: "button", disabled: disabled, onClick: () => !disabled && onDaySelect(new Date(thisDay)), onMouseEnter: () => !disabled && (onDayHover === null || onDayHover === void 0 ? void 0 : onDayHover(new Date(thisDay))), w: "1.75rem", h: "1.75rem", borderRadius: "full", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "0.8125rem", fontWeight: circleSolid ? 600 : 500, lineHeight: "1", cursor: disabled ? "not-allowed" : "pointer", bg: circleSolid ? solidFill : "transparent", color: circleColor, border: circleBorder, transition: "background 0.12s, color 0.12s", _hover: disabled
102
113
  ? {}
103
114
  : circleSolid
104
- ? { bg: theme.colors.primary[600] }
115
+ ? { bg: solidHoverFill, color: circleHoverColor }
105
116
  : { bg: rangeBg }, children: (0, date_fns_1.format)(thisDay, "d") }) }, thisDay.toString()));
106
117
  day = (0, date_fns_1.addDays)(day, 1);
107
118
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SingleDatePicker.d.ts","sourceRoot":"","sources":["../../../src/Components/DatePicker/SingleDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AA6BlG,OAAO,EAAE,qBAAqB,EAAc,MAAM,mBAAmB,CAAC;AA2OtE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA29B5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"SingleDatePicker.d.ts","sourceRoot":"","sources":["../../../src/Components/DatePicker/SingleDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AA6BlG,OAAO,EAAE,qBAAqB,EAAc,MAAM,mBAAmB,CAAC;AA2OtE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAg+B5D,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -225,7 +225,7 @@ const normalizeTimeBuffer = (tokenChar, rawBuffer, segmentLength, is12Hour) => {
225
225
  return { value: buf, completed: buf.length >= segmentLength };
226
226
  };
227
227
  const SingleDatePicker = (props) => {
228
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
228
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
229
229
  const { id, name, label, isRequired, isInformation, informationMessage, error, errorMessage, helperText, placeholderText, dateFormat = "dd/MM/yyyy", pickerType, minDate, maxDate, disableFutureDates, disablePastDates, autoComplete = "off", disabled, width = "100%", disableToday = false, size = "md", } = props;
230
230
  const theme = (0, useCustomTheme_1.useCustomTheme)();
231
231
  const sizeKey = typeof size === "string" ? size : "md";
@@ -945,14 +945,16 @@ const SingleDatePicker = (props) => {
945
945
  return;
946
946
  }
947
947
  finalize();
948
- }, placement: "bottom-start", closeOnBlur: false, returnFocusOnClose: false, children: [(0, jsx_runtime_1.jsx)(react_2.PopoverTrigger, { children: (0, jsx_runtime_1.jsx)(react_2.Box, { ref: triggerRef, as: "div", children: (0, jsx_runtime_1.jsxs)(react_2.InputGroup, { size: sizeKey, children: [(0, jsx_runtime_1.jsx)(react_2.Input, { ref: inputRef, id: id, name: name, size: sizeKey, placeholder: displayPlaceholder, value: displayValue, onChange: handleInputChange, onKeyDown: handleKeyDownMask, onPaste: handlePasteMask, onBlur: handleInputBlur, onClick: handleInputClickMask, onFocus: handleInputFocusMask, isDisabled: disabled, autoComplete: autoComplete, borderColor: error ? (_d = (_c = theme.colors.semantic) === null || _c === void 0 ? void 0 : _c.error) === null || _d === void 0 ? void 0 : _d[500] : undefined, _focus: {
949
- borderColor: error ? (_f = (_e = theme.colors.semantic) === null || _e === void 0 ? void 0 : _e.error) === null || _f === void 0 ? void 0 : _f[500] : theme.colors.primary[500],
948
+ }, placement: "bottom-start", closeOnBlur: false, returnFocusOnClose: false, children: [(0, jsx_runtime_1.jsx)(react_2.PopoverTrigger, { children: (0, jsx_runtime_1.jsx)(react_2.Box, { ref: triggerRef, as: "div", children: (0, jsx_runtime_1.jsxs)(react_2.InputGroup, { size: sizeKey, children: [(0, jsx_runtime_1.jsx)(react_2.Input, { ref: inputRef, id: id, name: name, size: sizeKey, placeholder: displayPlaceholder, value: displayValue, onChange: handleInputChange, onKeyDown: handleKeyDownMask, onPaste: handlePasteMask, onBlur: handleInputBlur, onClick: handleInputClickMask, onFocus: handleInputFocusMask, isDisabled: disabled, autoComplete: autoComplete, bg: (_c = theme.colors.gray) === null || _c === void 0 ? void 0 : _c[50], borderColor: error
949
+ ? (_e = (_d = theme.colors.semantic) === null || _d === void 0 ? void 0 : _d.error) === null || _e === void 0 ? void 0 : _e[500]
950
+ : (_f = theme.colors.boxborder) === null || _f === void 0 ? void 0 : _f[800], _focus: {
951
+ borderColor: error ? (_h = (_g = theme.colors.semantic) === null || _g === void 0 ? void 0 : _g.error) === null || _h === void 0 ? void 0 : _h[500] : theme.colors.primary[500],
950
952
  boxShadow: error
951
- ? `0 0 0 0.125rem ${(_g = theme.colors.boxShadow) === null || _g === void 0 ? void 0 : _g.error}`
952
- : `0 0 0 0.125rem ${(_h = theme.colors.boxShadow) === null || _h === void 0 ? void 0 : _h.primary}`,
953
+ ? `0 0 0 0.125rem ${(_j = theme.colors.boxShadow) === null || _j === void 0 ? void 0 : _j.error}`
954
+ : `0 0 0 0.125rem ${(_k = theme.colors.boxShadow) === null || _k === void 0 ? void 0 : _k.primary}`,
953
955
  }, _hover: {
954
- borderColor: error ? (_k = (_j = theme.colors.semantic) === null || _j === void 0 ? void 0 : _j.error) === null || _k === void 0 ? void 0 : _k[500] : undefined,
955
- }, cursor: "text", boxShadow: error ? `0 0 0 0.125rem ${(_l = theme.colors.boxShadow) === null || _l === void 0 ? void 0 : _l.error}` : `` }), (0, jsx_runtime_1.jsx)(react_2.InputRightElement, { height: "100%", display: "flex", alignItems: "center", pointerEvents: "auto", onClick: (e) => {
956
+ borderColor: error ? (_m = (_l = theme.colors.semantic) === null || _l === void 0 ? void 0 : _l.error) === null || _m === void 0 ? void 0 : _m[500] : theme.colors.primary[500],
957
+ }, cursor: "text", boxShadow: error ? `0 0 0 0.125rem ${(_o = theme.colors.boxShadow) === null || _o === void 0 ? void 0 : _o.error}` : `` }), (0, jsx_runtime_1.jsx)(react_2.InputRightElement, { height: "100%", display: "flex", alignItems: "center", pointerEvents: "auto", onClick: (e) => {
956
958
  e.stopPropagation();
957
959
  if (!isOpen) {
958
960
  handleOpen();
@@ -960,7 +962,7 @@ const SingleDatePicker = (props) => {
960
962
  else {
961
963
  onClose();
962
964
  }
963
- }, style: { cursor: "pointer" }, children: (0, jsx_runtime_1.jsx)(react_2.Box, { as: "span", sx: calendarIconWrapperSx, children: (0, jsx_runtime_1.jsx)(lucide_react_1.CalendarIcon, { size: calendarIconPx, color: theme.colors.gray[500] }) }) })] }) }) }), (0, jsx_runtime_1.jsx)(react_2.PopoverContent, { width: "auto", p: 3, ref: popoverRef, boxShadow: "lg", borderRadius: "0.75rem", border: "1px solid", borderColor: (_m = theme.colors.boxborder) === null || _m === void 0 ? void 0 : _m[500], bg: theme.colors.background[50], children: (0, jsx_runtime_1.jsxs)(react_2.PopoverBody, { p: 0, children: [showDate && ((0, jsx_runtime_1.jsx)(CalendarPanel_1.default, { currentMonth: currentMonth, setCurrentMonth: (updater) => setCurrentMonth((prev) => updater(prev)), today: today, isRange: false, tempDate: tempDate, tempRangeStart: null, tempRangeEnd: null, isSameDay: date_fns_1.isSameDay, isBefore: date_fns_1.isBefore, isAfter: date_fns_1.isAfter, minDate: minDate, maxDate: maxDate, disablePastDates: disablePastDates, disableFutureDates: disableFutureDates, disableToday: disableToday, onDaySelect: handleDaySelect })), showTime && ((0, jsx_runtime_1.jsx)(react_2.Box, { mt: showDate ? 3 : 0, children: resolvedPickerType === "time" ? ((0, jsx_runtime_1.jsx)(TimePickerInput_1.TimePickerInput, { value: tempDate, onChange: (updatedDate) => {
965
+ }, style: { cursor: "pointer" }, children: (0, jsx_runtime_1.jsx)(react_2.Box, { as: "span", sx: calendarIconWrapperSx, children: (0, jsx_runtime_1.jsx)(lucide_react_1.CalendarIcon, { size: calendarIconPx, color: theme.colors.gray[500] }) }) })] }) }) }), (0, jsx_runtime_1.jsx)(react_2.PopoverContent, { width: "auto", p: 3, ref: popoverRef, boxShadow: "lg", borderRadius: "0.75rem", border: "1px solid", borderColor: (_p = theme.colors.boxborder) === null || _p === void 0 ? void 0 : _p[500], bg: theme.colors.background[50], children: (0, jsx_runtime_1.jsxs)(react_2.PopoverBody, { p: 0, children: [showDate && ((0, jsx_runtime_1.jsx)(CalendarPanel_1.default, { currentMonth: currentMonth, setCurrentMonth: (updater) => setCurrentMonth((prev) => updater(prev)), today: today, isRange: false, tempDate: tempDate, tempRangeStart: null, tempRangeEnd: null, isSameDay: date_fns_1.isSameDay, isBefore: date_fns_1.isBefore, isAfter: date_fns_1.isAfter, minDate: minDate, maxDate: maxDate, disablePastDates: disablePastDates, disableFutureDates: disableFutureDates, disableToday: disableToday, onDaySelect: handleDaySelect })), showTime && ((0, jsx_runtime_1.jsx)(react_2.Box, { mt: showDate ? 3 : 0, children: resolvedPickerType === "time" ? ((0, jsx_runtime_1.jsx)(TimePickerInput_1.TimePickerInput, { value: tempDate, onChange: (updatedDate) => {
964
966
  setTempDate(updatedDate);
965
967
  setInputValue(updatedDate ? (0, date_fns_1.format)(updatedDate, resolvedDateFormat) : "");
966
968
  setIsTyping(false);
@@ -968,7 +970,7 @@ const SingleDatePicker = (props) => {
968
970
  setTempDate(updatedDate);
969
971
  setInputValue((0, date_fns_1.format)(updatedDate, resolvedDateFormat));
970
972
  setIsTyping(false);
971
- }, disabled: disabled })) })), (0, jsx_runtime_1.jsxs)(react_2.Box, { display: "flex", justifyContent: "space-between", alignItems: "center", mt: 3, pt: 3, borderTop: "1px solid", borderColor: (_o = theme.colors.boxborder) === null || _o === void 0 ? void 0 : _o[300], children: [(0, jsx_runtime_1.jsx)(Button_1.default, { size: "sm", variant: "ghost", colorScheme: "gray", onClick: () => {
973
+ }, disabled: disabled })) })), (0, jsx_runtime_1.jsxs)(react_2.Box, { display: "flex", justifyContent: "space-between", alignItems: "center", mt: 3, pt: 3, borderTop: "1px solid", borderColor: (_q = theme.colors.boxborder) === null || _q === void 0 ? void 0 : _q[300], children: [(0, jsx_runtime_1.jsx)(Button_1.default, { size: "sm", variant: "ghost", colorScheme: "gray", onClick: () => {
972
974
  setTempDate(null);
973
975
  requestClose(null);
974
976
  }, children: "Clear" }), (0, jsx_runtime_1.jsx)(Button_1.default, { size: "sm", variant: "gradient", onClick: () => requestClose(), children: "Apply" })] })] }) })] }), error && errorMessage && (0, jsx_runtime_1.jsx)(ErrorMessage_1.default, { errorMessage: errorMessage }), helperText && !error && (0, jsx_runtime_1.jsx)(HelperText_1.default, { helperText: helperText })] }));
@@ -16,7 +16,7 @@ const TimePickerInput_1 = require("./TimePickerInput");
16
16
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
17
17
  const formatToPlaceholder = (formatStr) => formatStr.replace(/h{1,2}/gi, "HH").replace(/m{1,2}/gi, "mm").replace(/a{1,2}/gi, "AM");
18
18
  const TimeOnlyPicker = (props) => {
19
- var _a, _b;
19
+ var _a, _b, _c;
20
20
  const { id, label, isRequired, isInformation, informationMessage, error, errorMessage, helperText, placeholderText, dateFormat = "HH:mm", disabled, width = "100%", disableToday = false, size = "md", } = props;
21
21
  const theme = (0, useCustomTheme_1.useCustomTheme)();
22
22
  const { isOpen, onOpen, onClose } = (0, react_2.useDisclosure)();
@@ -79,7 +79,7 @@ const TimeOnlyPicker = (props) => {
79
79
  onOpen();
80
80
  }, error: error, size: sizeKey }) }) }) }), (0, jsx_runtime_1.jsx)(react_2.PopoverContent, { width: "auto", p: 4, ref: popoverRef, boxShadow: "lg", bg: theme.colors.background[50], children: (0, jsx_runtime_1.jsxs)(react_2.PopoverBody, { children: [(0, jsx_runtime_1.jsx)(TimePicker_1.default, { date: resolvedTempDate, dateFormat: dateFormat, onChange: (updatedDate) => {
81
81
  handleTimePickerChange(updatedDate);
82
- } }), (0, jsx_runtime_1.jsxs)(react_2.Box, { display: "flex", justifyContent: "space-between", mt: 4, pt: 4, borderTop: "1px solid", borderColor: "gray.200", children: [(0, jsx_runtime_1.jsx)(react_2.Button, { size: "sm", variant: "ghost", onClick: handleClear, children: "Clear" }), (0, jsx_runtime_1.jsx)(react_2.Button, { size: "sm", colorScheme: "primary", onClick: handleOk, children: "OK" })] })] }) })] }), error && errorMessage && (0, jsx_runtime_1.jsx)(ErrorMessage_1.default, { errorMessage: errorMessage }), helperText && !error && (0, jsx_runtime_1.jsx)(HelperText_1.default, { helperText: helperText })] }));
82
+ } }), (0, jsx_runtime_1.jsxs)(react_2.Box, { display: "flex", justifyContent: "space-between", mt: 4, pt: 4, borderTop: "1px solid", borderColor: (_c = theme.colors.boxborder) === null || _c === void 0 ? void 0 : _c[300], children: [(0, jsx_runtime_1.jsx)(react_2.Button, { size: "sm", variant: "ghost", onClick: handleClear, children: "Clear" }), (0, jsx_runtime_1.jsx)(react_2.Button, { size: "sm", colorScheme: "primary", onClick: handleOk, children: "OK" })] })] }) })] }), error && errorMessage && (0, jsx_runtime_1.jsx)(ErrorMessage_1.default, { errorMessage: errorMessage }), helperText && !error && (0, jsx_runtime_1.jsx)(HelperText_1.default, { helperText: helperText })] }));
83
83
  };
84
84
  exports.TimeOnlyPicker = TimeOnlyPicker;
85
85
  exports.default = exports.TimeOnlyPicker;
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/Components/DatePicker/TimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAmGzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/Components/DatePicker/TimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8IzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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
+ const useCustomTheme_1 = require("../../Theme/useCustomTheme");
6
7
  const TimePicker = ({ date, onChange, dateFormat, disabled = false }) => {
8
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
9
+ const theme = (0, useCustomTheme_1.useCustomTheme)();
7
10
  const is12HourFormat = /(hh|h).*a/i.test(dateFormat);
8
11
  const deriveDisplayHour = (rawHour) => {
9
12
  if (!is12HourFormat)
@@ -52,9 +55,18 @@ const TimePicker = ({ date, onChange, dateFormat, disabled = false }) => {
52
55
  updateTime(hour, minute, newMeridiem);
53
56
  };
54
57
  const displayHour = is12HourFormat ? (hour % 12 === 0 ? 12 : hour % 12) : hour;
55
- return ((0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 1.5, w: "100%", children: [(0, jsx_runtime_1.jsx)(react_2.Select, { value: displayHour, onChange: handleHourChange, flex: "1", minW: 0, size: "sm", isDisabled: disabled, children: Array.from({ length: is12HourFormat ? 12 : 24 }, (_, i) => {
58
+ return ((0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 1.5, w: "100%", children: [(0, jsx_runtime_1.jsx)(react_2.Select, { value: displayHour, onChange: handleHourChange, flex: "1", minW: 0, size: "sm", isDisabled: disabled, bg: (_a = theme.colors.gray) === null || _a === void 0 ? void 0 : _a[50], borderColor: (_b = theme.colors.boxborder) === null || _b === void 0 ? void 0 : _b[800], _focus: {
59
+ borderColor: theme.colors.primary[500],
60
+ boxShadow: `0 0 0 0.125rem ${(_c = theme.colors.boxShadow) === null || _c === void 0 ? void 0 : _c.primary}`,
61
+ }, _hover: { borderColor: theme.colors.primary[500] }, children: Array.from({ length: is12HourFormat ? 12 : 24 }, (_, i) => {
56
62
  const value = is12HourFormat ? i + 1 : i;
57
63
  return ((0, jsx_runtime_1.jsx)("option", { value: value, children: value.toString().padStart(2, "0") }, value));
58
- }) }), (0, jsx_runtime_1.jsx)(react_2.Select, { value: minute, onChange: handleMinuteChange, flex: "1", minW: 0, size: "sm", isDisabled: disabled, children: Array.from({ length: 60 }, (_, i) => ((0, jsx_runtime_1.jsx)("option", { value: i, children: i.toString().padStart(2, "0") }, i))) }), is12HourFormat && ((0, jsx_runtime_1.jsxs)(react_2.Select, { value: ampm, onChange: handleAmpmChange, flex: "1", minW: 0, size: "sm", isDisabled: disabled, children: [(0, jsx_runtime_1.jsx)("option", { value: "AM", children: "AM" }), (0, jsx_runtime_1.jsx)("option", { value: "PM", children: "PM" })] }))] }));
64
+ }) }), (0, jsx_runtime_1.jsx)(react_2.Select, { value: minute, onChange: handleMinuteChange, flex: "1", minW: 0, size: "sm", isDisabled: disabled, bg: (_d = theme.colors.gray) === null || _d === void 0 ? void 0 : _d[50], borderColor: (_e = theme.colors.boxborder) === null || _e === void 0 ? void 0 : _e[800], _focus: {
65
+ borderColor: theme.colors.primary[500],
66
+ boxShadow: `0 0 0 0.125rem ${(_f = theme.colors.boxShadow) === null || _f === void 0 ? void 0 : _f.primary}`,
67
+ }, _hover: { borderColor: theme.colors.primary[500] }, children: Array.from({ length: 60 }, (_, i) => ((0, jsx_runtime_1.jsx)("option", { value: i, children: i.toString().padStart(2, "0") }, i))) }), is12HourFormat && ((0, jsx_runtime_1.jsxs)(react_2.Select, { value: ampm, onChange: handleAmpmChange, flex: "1", minW: 0, size: "sm", isDisabled: disabled, bg: (_g = theme.colors.gray) === null || _g === void 0 ? void 0 : _g[50], borderColor: (_h = theme.colors.boxborder) === null || _h === void 0 ? void 0 : _h[800], _focus: {
68
+ borderColor: theme.colors.primary[500],
69
+ boxShadow: `0 0 0 0.125rem ${(_j = theme.colors.boxShadow) === null || _j === void 0 ? void 0 : _j.primary}`,
70
+ }, _hover: { borderColor: theme.colors.primary[500] }, children: [(0, jsx_runtime_1.jsx)("option", { value: "AM", children: "AM" }), (0, jsx_runtime_1.jsx)("option", { value: "PM", children: "PM" })] }))] }));
59
71
  };
60
72
  exports.default = TimePicker;
@@ -1 +1 @@
1
- {"version":3,"file":"TimePickerInput.d.ts","sourceRoot":"","sources":["../../../src/Components/DatePicker/TimePickerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAUjF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC;AA6ED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyX1D,CAAC"}
1
+ {"version":3,"file":"TimePickerInput.d.ts","sourceRoot":"","sources":["../../../src/Components/DatePicker/TimePickerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAUjF,UAAU,oBAAoB;IAC5B,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC;AA6ED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAoY1D,CAAC"}
@@ -92,6 +92,7 @@ const caretFromDigitIndex = (digitIndex, digitsLen) => {
92
92
  };
93
93
  const formatToPlaceholder = (formatStr) => formatStr.replace(/h{1,2}/gi, "HH").replace(/m{1,2}/gi, "mm").replace(/a{1,2}/gi, "AM");
94
94
  const TimePickerInput = ({ value, onChange, dateFormat, disabled = false, placeholder, onFocus, onBlur, error, size = "md", }) => {
95
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
95
96
  const theme = (0, useCustomTheme_1.useCustomTheme)();
96
97
  const sizeKey = typeof size === "string" ? size : "md";
97
98
  const iconPx = (0, textInputIconSize_1.getTextInputIconSizePx)(sizeKey);
@@ -403,6 +404,13 @@ const TimePickerInput = ({ value, onChange, dateFormat, disabled = false, placeh
403
404
  inputRef.current.value = is12Hour && formatted ? `${formatted} ${ampm}` : formatted;
404
405
  }
405
406
  }, [digits, ampm, is12Hour]);
406
- return ((0, jsx_runtime_1.jsxs)(react_2.InputGroup, { size: sizeKey, children: [(0, jsx_runtime_1.jsx)(react_2.Input, { ref: inputRef, defaultValue: "", onChange: handleInput, onKeyDown: handleKeyDown, onFocus: handleFocus, onBlur: handleBlur, onClick: handleClick, onPaste: handlePaste, placeholder: placeholderText, isDisabled: disabled, autoComplete: "off", isInvalid: error, size: sizeKey }), (0, jsx_runtime_1.jsx)(react_2.InputRightElement, { pointerEvents: "none", height: "100%", display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(react_2.Box, { as: "span", sx: iconWrapperSx, children: (0, jsx_runtime_1.jsx)(lucide_react_1.ClockIcon, { size: iconPx, color: theme.colors.gray[500] }) }) })] }));
407
+ return ((0, jsx_runtime_1.jsxs)(react_2.InputGroup, { size: sizeKey, children: [(0, jsx_runtime_1.jsx)(react_2.Input, { ref: inputRef, defaultValue: "", onChange: handleInput, onKeyDown: handleKeyDown, onFocus: handleFocus, onBlur: handleBlur, onClick: handleClick, onPaste: handlePaste, placeholder: placeholderText, isDisabled: disabled, autoComplete: "off", isInvalid: error, size: sizeKey, bg: (_a = theme.colors.gray) === null || _a === void 0 ? void 0 : _a[50], borderColor: error ? (_c = (_b = theme.colors.semantic) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c[500] : (_d = theme.colors.boxborder) === null || _d === void 0 ? void 0 : _d[800], _focus: {
408
+ borderColor: error ? (_f = (_e = theme.colors.semantic) === null || _e === void 0 ? void 0 : _e.error) === null || _f === void 0 ? void 0 : _f[500] : theme.colors.primary[500],
409
+ boxShadow: error
410
+ ? `0 0 0 0.125rem ${(_g = theme.colors.boxShadow) === null || _g === void 0 ? void 0 : _g.error}`
411
+ : `0 0 0 0.125rem ${(_h = theme.colors.boxShadow) === null || _h === void 0 ? void 0 : _h.primary}`,
412
+ }, _hover: {
413
+ borderColor: error ? (_k = (_j = theme.colors.semantic) === null || _j === void 0 ? void 0 : _j.error) === null || _k === void 0 ? void 0 : _k[500] : theme.colors.primary[500],
414
+ } }), (0, jsx_runtime_1.jsx)(react_2.InputRightElement, { pointerEvents: "none", height: "100%", display: "flex", alignItems: "center", children: (0, jsx_runtime_1.jsx)(react_2.Box, { as: "span", sx: iconWrapperSx, children: (0, jsx_runtime_1.jsx)(lucide_react_1.ClockIcon, { size: iconPx, color: theme.colors.gray[500] }) }) })] }));
407
415
  };
408
416
  exports.TimePickerInput = TimePickerInput;
@@ -1 +1 @@
1
- {"version":3,"file":"joditThemeVars.d.ts","sourceRoot":"","sources":["../../../src/Components/Editor/joditThemeVars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,YAAY,EAAE,QAAQ,OAAO,KAAG,aAkDzE,CAAC"}
1
+ {"version":3,"file":"joditThemeVars.d.ts","sourceRoot":"","sources":["../../../src/Components/Editor/joditThemeVars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,YAAY,EAAE,QAAQ,OAAO,KAAG,aA2DzE,CAAC"}
@@ -40,6 +40,15 @@ const getJoditThemeVars = (colors, isDark) => {
40
40
  if (isDark) {
41
41
  return {
42
42
  ...shared,
43
+ // `.jodit-workplace`'s own background rule in jodit.css (`.jodit-container:not(.jodit_inline)
44
+ // .jodit-workplace { background-color: var(--jd-color-background-default) }`) is NOT scoped
45
+ // under `.jodit_theme_dark` — that scope only re-themes the *border* on this selector, never
46
+ // the background. `--jd-color-background-default` itself is declared once, at `:root`, as
47
+ // `var(--jd-color-white)`, and our `--jd-color-white` override lives on this instance's wrapper
48
+ // (a descendant), so it never reaches `:root`'s own computed value. Left unset here, the
49
+ // workplace canvas fell back to Jodit's own white default even with `.jodit_theme_dark` active
50
+ // — this is the reported "canvas renders white in dark mode" bug.
51
+ "--jd-color-background-default": colors.backgroundColor.main, // .jodit-workplace canvas bg
43
52
  "--jd-dark-background-color": colors.backgroundColor.main, // canvas / toolbar-box / wysiwyg bg
44
53
  "--jd-dark-toolbar-color": colors.backgroundColor.secondary, // toolbar + status-bar bg
45
54
  "--jd-dark-text-color": colors.text[900], // body/button/status-bar ink
@@ -1 +1 @@
1
- {"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../src/Components/FilePreview/FilePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAyBxC,OAAO,EAEL,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AA6B5B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAyKlD,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAuEhE,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../src/Components/FilePreview/FilePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAyBxC,OAAO,EAEL,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AA6B5B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAyKlD,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAwEhE,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -77,9 +77,11 @@ const FilePreview = ({ isOpen, onClose, fileUrl, fileName, fileType, hideDownloa
77
77
  exports.FilePreview = FilePreview;
78
78
  /** Thumbnail with a hover "preview" affordance that opens {@link FilePreview}. */
79
79
  const FilePreviewTrigger = ({ fileUrl, fileName, fileType, thumbWidth = "100px", thumbHeight = "60px", hideDownload = false, }) => {
80
+ var _a, _b;
81
+ const theme = (0, useCustomTheme_1.useCustomTheme)();
80
82
  const { isOpen, onOpen, onClose } = (0, react_2.useDisclosure)();
81
83
  const kind = fileType || inferKind(fileUrl, fileName);
82
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(react_2.Box, { position: "relative", display: "inline-flex", alignItems: "center", justifyContent: "center", role: "group", maxW: thumbWidth, minW: "40px", minH: thumbHeight, borderRadius: "8px", overflow: "hidden", cursor: "pointer", onClick: onOpen, children: [kind === "image" ? ((0, jsx_runtime_1.jsx)(react_2.Image, { src: fileUrl, alt: fileName || "file", maxH: thumbHeight, maxW: thumbWidth, objectFit: "contain", borderRadius: "8px" })) : ((0, jsx_runtime_1.jsx)(react_2.Flex, { align: "center", justify: "center", boxSize: thumbHeight, bg: "gray.100", borderRadius: "8px", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Eye, { size: 18 }) })), (0, jsx_runtime_1.jsx)(react_2.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", bg: "blackAlpha.500", color: "white", opacity: 0, transition: "opacity 0.15s ease", _groupHover: { opacity: 1 }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Eye, { size: 18 }) })] }), (0, jsx_runtime_1.jsx)(exports.FilePreview, { isOpen: isOpen, onClose: onClose, fileUrl: fileUrl, fileName: fileName, fileType: fileType, hideDownload: hideDownload })] }));
84
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(react_2.Box, { position: "relative", display: "inline-flex", alignItems: "center", justifyContent: "center", role: "group", maxW: thumbWidth, minW: "40px", minH: thumbHeight, borderRadius: "8px", overflow: "hidden", cursor: "pointer", onClick: onOpen, children: [kind === "image" ? ((0, jsx_runtime_1.jsx)(react_2.Image, { src: fileUrl, alt: fileName || "file", maxH: thumbHeight, maxW: thumbWidth, objectFit: "contain", borderRadius: "8px" })) : ((0, jsx_runtime_1.jsx)(react_2.Flex, { align: "center", justify: "center", boxSize: thumbHeight, bg: (_b = (_a = theme.colors.gray) === null || _a === void 0 ? void 0 : _a[100]) !== null && _b !== void 0 ? _b : "#EDF2F7", borderRadius: "8px", children: (0, jsx_runtime_1.jsx)(lucide_react_1.Eye, { size: 18 }) })), (0, jsx_runtime_1.jsx)(react_2.Flex, { position: "absolute", inset: 0, align: "center", justify: "center", bg: "blackAlpha.500", color: "white", opacity: 0, transition: "opacity 0.15s ease", _groupHover: { opacity: 1 }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.Eye, { size: 18 }) })] }), (0, jsx_runtime_1.jsx)(exports.FilePreview, { isOpen: isOpen, onClose: onClose, fileUrl: fileUrl, fileName: fileName, fileType: fileType, hideDownload: hideDownload })] }));
83
85
  };
84
86
  exports.FilePreviewTrigger = FilePreviewTrigger;
85
87
  exports.default = exports.FilePreview;
@@ -73,8 +73,8 @@ const FileUploader = ({ maxFiles = 10, maxTotalSize = 20, onFilesChange, acceptT
73
73
  // ✅ Convert ["png","pdf","zip"] → ".png,.pdf,.zip" for input accept
74
74
  const acceptString = acceptTypes.map((ext) => `.${ext}`).join(",");
75
75
  return ((0, jsx_runtime_1.jsxs)(react_2.Box, { maxW: "500px", mx: "auto", p: 6, children: [(0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "sm", color: "gray.600", mb: 4, children: ["Files Uploaded:", " ", (0, jsx_runtime_1.jsxs)(react_2.Text, { as: "span", fontWeight: "medium", color: accentColor, children: [uploadedFiles.length, " / ", maxFiles] }), " ", "| Total size:", " ", (0, jsx_runtime_1.jsxs)(react_2.Text, { as: "span", fontWeight: "medium", children: [formatFileSize(totalSize), " / ", maxTotalSize, " MB"] })] }), (0, jsx_runtime_1.jsxs)(react_2.Box, { border: "1px dashed", borderColor: "gray.300", borderRadius: "md", p: 1, mt: 1, mb: 1, children: [uploadedFiles.length > 0 && ((0, jsx_runtime_1.jsx)(react_2.Box, { children: (0, jsx_runtime_1.jsx)(react_2.Grid, { templateColumns: "repeat(2, 1fr)", gap: 3, children: uploadedFiles.map((file) => {
76
- var _a;
77
- return ((0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", justify: "space-between", border: "1px solid", borderColor: "gray.200", borderRadius: "md", pl: 1, bg: "gray.50", children: [(0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 3, flex: "1", minW: "0", children: [file.previewUrl ? ((0, jsx_runtime_1.jsx)(react_2.Image, { src: file.previewUrl, alt: file.name, boxSize: "28px", borderRadius: "sm", objectFit: "cover" })) : ((0, jsx_runtime_1.jsx)(react_2.Box, { boxSize: "28px", borderRadius: "sm", bg: "gray.200", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "xs", color: "gray.600", children: (_a = file.name.split(".").pop()) === null || _a === void 0 ? void 0 : _a.toUpperCase() })), (0, jsx_runtime_1.jsxs)(react_2.Box, { minW: "0", children: [(0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", fontWeight: "medium", noOfLines: 1, children: file.name }), (0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xs", color: "gray.600", children: ["(", formatFileSize(file.size), ")"] })] })] }), (0, jsx_runtime_1.jsx)(react_2.HStack, { spacing: 1, children: (0, jsx_runtime_1.jsx)(react_2.Tooltip, { label: "Remove", children: (0, jsx_runtime_1.jsx)(react_2.IconButton, { "aria-label": "Remove", icon: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 14 }), size: "xs", variant: "ghost", colorScheme: "red", onClick: () => removeFile(file.id) }) }) })] }, file.id));
76
+ var _a, _b, _c, _d, _e, _f, _g;
77
+ return ((0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", justify: "space-between", border: "1px solid", borderColor: "gray.200", borderRadius: "md", pl: 1, bg: colors.backgroundColor.secondary, children: [(0, jsx_runtime_1.jsxs)(react_2.HStack, { spacing: 3, flex: "1", minW: "0", children: [file.previewUrl ? ((0, jsx_runtime_1.jsx)(react_2.Image, { src: file.previewUrl, alt: file.name, boxSize: "28px", borderRadius: "sm", objectFit: "cover" })) : ((0, jsx_runtime_1.jsx)(react_2.Box, { boxSize: "28px", borderRadius: "sm", bg: (_b = (_a = colors.gray) === null || _a === void 0 ? void 0 : _a[200]) !== null && _b !== void 0 ? _b : "#e5e7eb", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "xs", color: (_d = (_c = colors.gray) === null || _c === void 0 ? void 0 : _c[600]) !== null && _d !== void 0 ? _d : "#4A5568", children: (_e = file.name.split(".").pop()) === null || _e === void 0 ? void 0 : _e.toUpperCase() })), (0, jsx_runtime_1.jsxs)(react_2.Box, { minW: "0", children: [(0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", fontWeight: "medium", noOfLines: 1, children: file.name }), (0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xs", color: (_g = (_f = colors.gray) === null || _f === void 0 ? void 0 : _f[600]) !== null && _g !== void 0 ? _g : "#4A5568", children: ["(", formatFileSize(file.size), ")"] })] })] }), (0, jsx_runtime_1.jsx)(react_2.HStack, { spacing: 1, children: (0, jsx_runtime_1.jsx)(react_2.Tooltip, { label: "Remove", children: (0, jsx_runtime_1.jsx)(react_2.IconButton, { "aria-label": "Remove", icon: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 14 }), size: "xs", variant: "ghost", colorScheme: "red", onClick: () => removeFile(file.id) }) }) })] }, file.id));
78
78
  }) }) })), (0, jsx_runtime_1.jsx)("input", { ref: fileInputRef, type: "file", multiple: true, accept: acceptString, onChange: handleFileInput, style: { display: "none" } }), (0, jsx_runtime_1.jsxs)(react_2.Box, { p: uploadedFiles.length ? 0 : 5, mb: 2, textAlign: uploadedFiles.length ? "left" : "center", pt: uploadedFiles.length ? 5 : 5, transition: "all 0.2s", onDrop: handleDrop, onDragOver: handleDragOver, onDragLeave: handleDragLeave, cursor: "pointer", onClick: handleBrowseClick, children: [(0, jsx_runtime_1.jsx)(react_2.Box, { children: (0, jsx_runtime_1.jsxs)(react_2.Text, { fontWeight: "medium", fontSize: "md", children: ["Drag and drop the files here, or", (0, jsx_runtime_1.jsx)(react_2.Box, { as: "span", color: accentColor, ml: 1, children: "Click here" })] }) }), (0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "xs", color: "gray.500", children: ["Supported formats: ", acceptTypes.map((t) => t.toUpperCase()).join(", "), "."] })] })] })] }));
79
79
  };
80
80
  exports.default = FileUploader;
@@ -126,7 +126,7 @@ panelPadding = 3, clearAllButton = true, onClearAllHandler,
126
126
  border: none;
127
127
  cursor: pointer;
128
128
  }
129
- ` }), (0, jsx_runtime_1.jsxs)(react_2.Box, { w: "full", position: "relative", h: { base: "24px", md: "30px" }, display: "flex", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: "0", right: "0", height: "6px", bg: "gray.200", borderRadius: "full" }), (0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: `${minPercent}%`, width: `${maxPercent - minPercent}%`, height: "6px", style: { background: `linear-gradient(to right, ${primaryColor}, ${secondaryColor})` }, borderRadius: "full", boxShadow: `0 0 8px ${primaryGlowColor}` }), (0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: `${minPercent}%`, transform: "translate(-50%, 0)", w: { base: "16px", md: "20px" }, h: { base: "16px", md: "20px" }, borderRadius: "full", bg: theme.colors.background[50], border: "3px solid", borderColor: primaryColor, boxShadow: thumbShadow, zIndex: 2 }), (0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: `${maxPercent}%`, transform: "translate(-50%, 0)", w: { base: "16px", md: "20px" }, h: { base: "16px", md: "20px" }, borderRadius: "full", bg: theme.colors.background[50], border: "3px solid", borderColor: secondaryColor, boxShadow: thumbShadow, zIndex: 2 }), (0, jsx_runtime_1.jsxs)(react_2.Box, { position: "absolute", left: `${minPercent}%`, top: { base: "-18px", md: "-22px" }, transform: "translate(-50%, -100%)", px: 2, py: 1, bg: theme.colors.background[50], border: `1px solid ${theme.colors.gray[200]}`, borderRadius: "6px", fontSize: "10px", color: theme.colors.gray[700], boxShadow: "sm", zIndex: 3, children: [currentMin, range.unit ? ` ${range.unit}` : ""] }), (0, jsx_runtime_1.jsxs)(react_2.Box, { position: "absolute", left: `${maxPercent}%`, top: { base: "-18px", md: "-22px" }, transform: "translate(-50%, -100%)", px: 2, py: 1, bg: theme.colors.background[50], border: `1px solid ${theme.colors.gray[200]}`, borderRadius: "6px", fontSize: "10px", color: theme.colors.gray[700], boxShadow: "sm", zIndex: 3, children: [currentMax, range.unit ? ` ${range.unit}` : ""] }), [0, 25, 50, 75, 100].map((p) => ((0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: `${p}%`, bottom: "-8px", transform: "translateX(-50%)", w: "1px", h: "8px", bg: theme.colors.gray[300] }, `tick-${p}`))), (0, jsx_runtime_1.jsx)("input", { type: "range", min: range.min, max: range.max, step: step, value: currentMin, className: "custom-range-slider", onChange: (e) => {
129
+ ` }), (0, jsx_runtime_1.jsxs)(react_2.Box, { w: "full", position: "relative", h: { base: "24px", md: "30px" }, display: "flex", alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: "0", right: "0", height: "6px", bg: theme.colors.gray[200], borderRadius: "full" }), (0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: `${minPercent}%`, width: `${maxPercent - minPercent}%`, height: "6px", style: { background: `linear-gradient(to right, ${primaryColor}, ${secondaryColor})` }, borderRadius: "full", boxShadow: `0 0 8px ${primaryGlowColor}` }), (0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: `${minPercent}%`, transform: "translate(-50%, 0)", w: { base: "16px", md: "20px" }, h: { base: "16px", md: "20px" }, borderRadius: "full", bg: theme.colors.background[50], border: "3px solid", borderColor: primaryColor, boxShadow: thumbShadow, zIndex: 2 }), (0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: `${maxPercent}%`, transform: "translate(-50%, 0)", w: { base: "16px", md: "20px" }, h: { base: "16px", md: "20px" }, borderRadius: "full", bg: theme.colors.background[50], border: "3px solid", borderColor: secondaryColor, boxShadow: thumbShadow, zIndex: 2 }), (0, jsx_runtime_1.jsxs)(react_2.Box, { position: "absolute", left: `${minPercent}%`, top: { base: "-18px", md: "-22px" }, transform: "translate(-50%, -100%)", px: 2, py: 1, bg: theme.colors.background[50], border: `1px solid ${theme.colors.gray[200]}`, borderRadius: "6px", fontSize: "10px", color: theme.colors.gray[700], boxShadow: "sm", zIndex: 3, children: [currentMin, range.unit ? ` ${range.unit}` : ""] }), (0, jsx_runtime_1.jsxs)(react_2.Box, { position: "absolute", left: `${maxPercent}%`, top: { base: "-18px", md: "-22px" }, transform: "translate(-50%, -100%)", px: 2, py: 1, bg: theme.colors.background[50], border: `1px solid ${theme.colors.gray[200]}`, borderRadius: "6px", fontSize: "10px", color: theme.colors.gray[700], boxShadow: "sm", zIndex: 3, children: [currentMax, range.unit ? ` ${range.unit}` : ""] }), [0, 25, 50, 75, 100].map((p) => ((0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", left: `${p}%`, bottom: "-8px", transform: "translateX(-50%)", w: "1px", h: "8px", bg: theme.colors.gray[300] }, `tick-${p}`))), (0, jsx_runtime_1.jsx)("input", { type: "range", min: range.min, max: range.max, step: step, value: currentMin, className: "custom-range-slider", onChange: (e) => {
130
130
  const min = Math.min(Number(e.target.value), currentMax - (step || 1));
131
131
  const nextVal = [min, currentMax];
132
132
  setInternalSelected((prev) => { const next = { ...prev, [section.id]: nextVal }; onChange === null || onChange === void 0 ? void 0 : onChange(next); return next; });
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../src/Components/NavigationBar/NavigationBar.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAa,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAU9D,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC9B,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,kBAA0B,GAC1B,EAAE,WAAW,2CAwKb"}
1
+ {"version":3,"file":"NavigationBar.d.ts","sourceRoot":"","sources":["../../../src/Components/NavigationBar/NavigationBar.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAa,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAW9D,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC9B,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,kBAA0B,GAC1B,EAAE,WAAW,2CA+Kb"}
@@ -5,9 +5,10 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("@chakra-ui/react");
6
6
  const useCustomTheme_1 = require("../../Theme/useCustomTheme");
7
7
  const accentText_1 = require("../../Theme/tokens/builders/accentText");
8
+ const outlineRung_1 = require("../../Theme/tokens/builders/outlineRung");
8
9
  const lucide_react_1 = require("lucide-react");
9
10
  function NavBar({ userAvathar, userName, userRole, navMenu, moreIcon, handleNavOnClick, handleLogout, logoutText, navigationBarText, sideBarToggole, onSideBarToggole, forceSideBarToggle = false, }) {
10
- var _a, _b, _c, _d, _e;
11
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
11
12
  const theme = (0, useCustomTheme_1.useCustomTheme)();
12
13
  // Shared rounded pill affordance for the bar's icon controls.
13
14
  const iconButtonStyle = {
@@ -20,6 +21,9 @@ function NavBar({ userAvathar, userName, userRole, navMenu, moreIcon, handleNavO
20
21
  transition: "background 0.15s",
21
22
  _hover: { bg: "blackAlpha.50" },
22
23
  };
24
+ // For a near-neutral brand (e.g. zinc), `primary[50]` is itself a pale near-white tint — on
25
+ // the menu's own near-white surface that measured as low as ~1.02:1, an invisible hover.
26
+ const menuHoverBg = (0, outlineRung_1.resolveHoverTint)(theme.colors.primary[50], (_d = (_b = (_a = theme.colors.backgroundColor) === null || _a === void 0 ? void 0 : _a.light) !== null && _b !== void 0 ? _b : (_c = theme.colors.background) === null || _c === void 0 ? void 0 : _c[50]) !== null && _d !== void 0 ? _d : "#ffffff");
23
27
  // Light elevated pill item.
24
28
  const menuItemStyle = {
25
29
  bg: "transparent",
@@ -32,16 +36,16 @@ function NavBar({ userAvathar, userName, userRole, navMenu, moreIcon, handleNavO
32
36
  color: "gray.700",
33
37
  gap: theme.space["2"],
34
38
  transition: "background 0.12s",
35
- _hover: { bg: theme.colors.primary[50], color: theme.colors.primary[700] },
36
- _focus: { bg: theme.colors.primary[50], color: theme.colors.primary[700] },
37
- _active: { bg: theme.colors.primary[50], color: theme.colors.primary[700] },
39
+ _hover: { bg: menuHoverBg, color: theme.colors.primary[700] },
40
+ _focus: { bg: menuHoverBg, color: theme.colors.primary[700] },
41
+ _active: { bg: menuHoverBg, color: theme.colors.primary[700] },
38
42
  };
39
- return ((0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.backgroundColor.light, px: 4, borderBottom: "1px solid", borderColor: "blackAlpha.100", children: (0, jsx_runtime_1.jsxs)(react_1.Flex, { h: 16, alignItems: "center", justifyContent: "space-between", children: [(0, jsx_runtime_1.jsxs)(react_1.Box, { display: "flex", gap: 1.5, alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_1.Box, { onClick: () => onSideBarToggole === null || onSideBarToggole === void 0 ? void 0 : onSideBarToggole(), display: forceSideBarToggle ? "flex" : { base: "flex", lg: "none" }, "aria-label": sideBarToggole ? "Close navigation menu" : "Open navigation menu", ...iconButtonStyle, children: sideBarToggole ? ((0, jsx_runtime_1.jsx)(lucide_react_1.PanelLeftClose, { size: "1.25rem" })) : ((0, jsx_runtime_1.jsx)(lucide_react_1.PanelRightClose, { size: "1.25rem" })) }), (navigationBarText === null || navigationBarText === void 0 ? void 0 : navigationBarText.onIconClick) && ((0, jsx_runtime_1.jsx)(react_1.Box, { ...iconButtonStyle, display: "flex", onClick: () => { var _a; return (_a = navigationBarText === null || navigationBarText === void 0 ? void 0 : navigationBarText.onIconClick) === null || _a === void 0 ? void 0 : _a.call(navigationBarText); }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.CircleArrowLeft, { size: "1.25rem", color: (_b = (_a = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b[500] }) })), (navigationBarText === null || navigationBarText === void 0 ? void 0 : navigationBarText.text) && ((0, jsx_runtime_1.jsx)(react_1.Text, { color: (0, accentText_1.accentTextOnCanvas)((_c = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _c === void 0 ? void 0 : _c.secondary, (_e = (_d = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _d === void 0 ? void 0 : _d.backgroundColor) === null || _e === void 0 ? void 0 : _e.light), fontSize: "1.25rem", fontWeight: 600, fontFamily: "open-sans, sans-serif", letterSpacing: "-0.013rem", children: navigationBarText === null || navigationBarText === void 0 ? void 0 : navigationBarText.text }))] }), (0, jsx_runtime_1.jsx)(react_1.Flex, { minW: 0, flexShrink: 1, children: (0, jsx_runtime_1.jsxs)(react_1.Stack, { direction: "row", alignItems: "center", spacing: 4, minW: 0, children: [moreIcon && ((0, jsx_runtime_1.jsx)(react_1.Box, { display: "flex", alignItems: "center", minW: 0, children: moreIcon })), (0, jsx_runtime_1.jsxs)(react_1.Menu, { children: [(0, jsx_runtime_1.jsx)(react_1.MenuButton, { as: react_1.Button, rounded: "full", variant: "link", cursor: "pointer", minW: 0, flexShrink: 0, children: (0, jsx_runtime_1.jsx)(react_1.Avatar, { size: "sm", name: userName, src: userAvathar }) }), (0, jsx_runtime_1.jsx)(react_1.MenuList, { alignItems: "center", zIndex: 5, p: 0, py: "0.375rem", bg: theme.colors.backgroundColor.light,
43
+ return ((0, jsx_runtime_1.jsx)(react_1.Box, { bg: theme.colors.backgroundColor.light, px: 4, borderBottom: "1px solid", borderColor: "blackAlpha.100", children: (0, jsx_runtime_1.jsxs)(react_1.Flex, { h: 16, alignItems: "center", justifyContent: "space-between", children: [(0, jsx_runtime_1.jsxs)(react_1.Box, { display: "flex", gap: 1.5, alignItems: "center", children: [(0, jsx_runtime_1.jsx)(react_1.Box, { onClick: () => onSideBarToggole === null || onSideBarToggole === void 0 ? void 0 : onSideBarToggole(), display: forceSideBarToggle ? "flex" : { base: "flex", lg: "none" }, "aria-label": sideBarToggole ? "Close navigation menu" : "Open navigation menu", ...iconButtonStyle, children: sideBarToggole ? ((0, jsx_runtime_1.jsx)(lucide_react_1.PanelLeftClose, { size: "1.25rem" })) : ((0, jsx_runtime_1.jsx)(lucide_react_1.PanelRightClose, { size: "1.25rem" })) }), (navigationBarText === null || navigationBarText === void 0 ? void 0 : navigationBarText.onIconClick) && ((0, jsx_runtime_1.jsx)(react_1.Box, { ...iconButtonStyle, display: "flex", onClick: () => { var _a; return (_a = navigationBarText === null || navigationBarText === void 0 ? void 0 : navigationBarText.onIconClick) === null || _a === void 0 ? void 0 : _a.call(navigationBarText); }, children: (0, jsx_runtime_1.jsx)(lucide_react_1.CircleArrowLeft, { size: "1.25rem", color: (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _e === void 0 ? void 0 : _e.text) === null || _f === void 0 ? void 0 : _f[500] }) })), (navigationBarText === null || navigationBarText === void 0 ? void 0 : navigationBarText.text) && ((0, jsx_runtime_1.jsx)(react_1.Text, { color: (0, accentText_1.accentTextOnCanvas)((_g = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _g === void 0 ? void 0 : _g.secondary, (_j = (_h = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _h === void 0 ? void 0 : _h.backgroundColor) === null || _j === void 0 ? void 0 : _j.light), fontSize: "1.25rem", fontWeight: 600, fontFamily: "open-sans, sans-serif", letterSpacing: "-0.013rem", children: navigationBarText === null || navigationBarText === void 0 ? void 0 : navigationBarText.text }))] }), (0, jsx_runtime_1.jsx)(react_1.Flex, { minW: 0, flexShrink: 1, children: (0, jsx_runtime_1.jsxs)(react_1.Stack, { direction: "row", alignItems: "center", spacing: 4, minW: 0, children: [moreIcon && ((0, jsx_runtime_1.jsx)(react_1.Box, { display: "flex", alignItems: "center", minW: 0, children: moreIcon })), (0, jsx_runtime_1.jsxs)(react_1.Menu, { children: [(0, jsx_runtime_1.jsx)(react_1.MenuButton, { as: react_1.Button, rounded: "full", variant: "link", cursor: "pointer", minW: 0, flexShrink: 0, children: (0, jsx_runtime_1.jsx)(react_1.Avatar, { size: "sm", name: userName, src: userAvathar }) }), (0, jsx_runtime_1.jsx)(react_1.MenuList, { alignItems: "center", zIndex: 5, p: 0, py: "0.375rem", bg: theme.colors.backgroundColor.light,
40
44
  // Chakra's MenuItem renders `background: var(--menu-bg)` at rest; its MenuList
41
45
  // baseStyle hardcodes that var to "#fff" (gated behind `_dark`, which this theme-swap
42
46
  // app never triggers). The `bg` prop above only recolors the list itself, not the
43
47
  // inherited var, so items fall back to white until hover/focus — set the var too.
44
- sx: { "--menu-bg": theme.colors.backgroundColor.light }, border: "1px solid", borderColor: "blackAlpha.100", borderRadius: "0.75rem", boxShadow: "lg", color: "gray.700", overflow: "hidden", children: (0, jsx_runtime_1.jsxs)(react_1.Box, { display: "flex", flexDirection: "column", maxH: "90vh", children: [(0, jsx_runtime_1.jsx)(react_1.Center, { pt: 4, pb: 2, children: (0, jsx_runtime_1.jsx)(react_1.Avatar, { size: "xl", name: userName, src: userAvathar }) }), (0, jsx_runtime_1.jsxs)(react_1.Center, { flexDirection: "column", gap: "0.125rem", pb: 2, px: 4, children: [(0, jsx_runtime_1.jsx)(react_1.Text, { fontWeight: 600, fontSize: "14px", color: "gray.800", isTruncated: true, maxW: "100%", children: userName }), userRole && ((0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "11px", color: "gray.500", isTruncated: true, maxW: "100%", children: userRole }))] }), (0, jsx_runtime_1.jsx)(react_1.MenuDivider, { borderColor: "blackAlpha.100" }), (0, jsx_runtime_1.jsx)(react_1.Box, { flex: 1, overflowY: "auto", children: navMenu === null || navMenu === void 0 ? void 0 : navMenu.map((menu, idx) => {
48
+ sx: { "--menu-bg": theme.colors.backgroundColor.light }, border: "1px solid", borderColor: "blackAlpha.100", borderRadius: "0.75rem", boxShadow: "lg", color: theme.colors.text[900], overflow: "hidden", children: (0, jsx_runtime_1.jsxs)(react_1.Box, { display: "flex", flexDirection: "column", maxH: "90vh", children: [(0, jsx_runtime_1.jsx)(react_1.Center, { pt: 4, pb: 2, children: (0, jsx_runtime_1.jsx)(react_1.Avatar, { size: "xl", name: userName, src: userAvathar }) }), (0, jsx_runtime_1.jsxs)(react_1.Center, { flexDirection: "column", gap: "0.125rem", pb: 2, px: 4, children: [(0, jsx_runtime_1.jsx)(react_1.Text, { fontWeight: 600, fontSize: "14px", color: theme.colors.text[900], isTruncated: true, maxW: "100%", children: userName }), userRole && ((0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "11px", color: theme.colors.text[500], isTruncated: true, maxW: "100%", children: userRole }))] }), (0, jsx_runtime_1.jsx)(react_1.MenuDivider, { borderColor: "blackAlpha.100" }), (0, jsx_runtime_1.jsx)(react_1.Box, { flex: 1, overflowY: "auto", children: navMenu === null || navMenu === void 0 ? void 0 : navMenu.map((menu, idx) => {
45
49
  var _a, _b, _c;
46
50
  return ((0, jsx_runtime_1.jsxs)(react_1.MenuItem, { onClick: () => handleNavOnClick(menu.url), sx: menuItemStyle, children: [menu.icon && ((0, jsx_runtime_1.jsx)(react_1.Box, { display: "flex", alignItems: "center", flexShrink: 0, sx: { "& svg": { width: "16px", height: "16px" } }, children: menu === null || menu === void 0 ? void 0 : menu.icon })), (0, jsx_runtime_1.jsx)(react_1.Box, { children: menu.title })] }, `${String((_c = (_b = (_a = menu.id) !== null && _a !== void 0 ? _a : menu.url) !== null && _b !== void 0 ? _b : menu.title) !== null && _c !== void 0 ? _c : idx)}-${idx}`));
47
51
  }) }), (0, jsx_runtime_1.jsx)(react_1.MenuDivider, { borderColor: "blackAlpha.100" }), (0, jsx_runtime_1.jsxs)(react_1.MenuItem, { onClick: handleLogout, sx: {
@@ -1 +1 @@
1
- {"version":3,"file":"OrgSwitcher.d.ts","sourceRoot":"","sources":["../../../src/Components/OrgSwitcher/OrgSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAkBzD,OAAO,EAGL,gBAAgB,EAGjB,MAAM,oBAAoB,CAAC;AA6C5B,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4M3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"OrgSwitcher.d.ts","sourceRoot":"","sources":["../../../src/Components/OrgSwitcher/OrgSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAoBzD,OAAO,EAGL,gBAAgB,EAGjB,MAAM,oBAAoB,CAAC;AAkD5B,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4N3C,CAAC;AAEF,eAAe,WAAW,CAAC"}