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

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 (573) 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/LimitReachedModal/LimitReachedModal.d.ts +5 -0
  26. package/dist/Components/LimitReachedModal/LimitReachedModal.d.ts.map +1 -0
  27. package/dist/Components/LimitReachedModal/LimitReachedModal.js +45 -0
  28. package/dist/Components/LimitReachedModal/LimitReachedModalProps.d.ts +16 -0
  29. package/dist/Components/LimitReachedModal/LimitReachedModalProps.d.ts.map +1 -0
  30. package/dist/Components/LimitReachedModal/LimitReachedModalProps.js +2 -0
  31. package/dist/Components/LimitReachedModal/limitReachedCopy.d.ts +7 -0
  32. package/dist/Components/LimitReachedModal/limitReachedCopy.d.ts.map +1 -0
  33. package/dist/Components/LimitReachedModal/limitReachedCopy.js +54 -0
  34. package/dist/Components/Loading/Loading.d.ts +1 -1
  35. package/dist/Components/Loading/Loading.d.ts.map +1 -1
  36. package/dist/Components/Loading/Loading.js +2 -2
  37. package/dist/Components/Loading/LoadingProps.d.ts +2 -0
  38. package/dist/Components/Loading/LoadingProps.d.ts.map +1 -1
  39. package/dist/Components/Modal/Modal.d.ts.map +1 -1
  40. package/dist/Components/Modal/Modal.js +1 -4
  41. package/dist/Components/NavigationBar/NavigationBar.d.ts.map +1 -1
  42. package/dist/Components/NavigationBar/NavigationBar.js +10 -6
  43. package/dist/Components/OrgSwitcher/OrgSwitcher.d.ts.map +1 -1
  44. package/dist/Components/OrgSwitcher/OrgSwitcher.js +22 -3
  45. package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts +9 -1
  46. package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts.map +1 -1
  47. package/dist/Components/OrgSwitcher/OrgSwitcherProps.js +19 -5
  48. package/dist/Components/OrganizationDetails/CreateOrgModal.js +6 -4
  49. package/dist/Components/OrganizationDetails/OrganizationDetails.d.ts.map +1 -1
  50. package/dist/Components/OrganizationDetails/OrganizationDetails.js +66 -9
  51. package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts +47 -14
  52. package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts.map +1 -1
  53. package/dist/Components/PlanBadge/PlanBadge.d.ts +12 -0
  54. package/dist/Components/PlanBadge/PlanBadge.d.ts.map +1 -0
  55. package/dist/Components/PlanBadge/PlanBadge.js +22 -0
  56. package/dist/Components/PlanBadge/PlanBadgeProps.d.ts +11 -0
  57. package/dist/Components/PlanBadge/PlanBadgeProps.d.ts.map +1 -0
  58. package/dist/Components/PlanBadge/PlanBadgeProps.js +2 -0
  59. package/dist/Components/PlanPill/PlanPill.d.ts +5 -0
  60. package/dist/Components/PlanPill/PlanPill.d.ts.map +1 -0
  61. package/dist/Components/PlanPill/PlanPill.js +42 -0
  62. package/dist/Components/PlanPill/PlanPillProps.d.ts +28 -0
  63. package/dist/Components/PlanPill/PlanPillProps.d.ts.map +1 -0
  64. package/dist/Components/PlanPill/PlanPillProps.js +2 -0
  65. package/dist/Components/PlanPill/planPillGradient.d.ts +22 -0
  66. package/dist/Components/PlanPill/planPillGradient.d.ts.map +1 -0
  67. package/dist/Components/PlanPill/planPillGradient.js +20 -0
  68. package/dist/Components/Search/Search.d.ts.map +1 -1
  69. package/dist/Components/Search/Search.js +4 -2
  70. package/dist/Components/Select/Select.styles.d.ts.map +1 -1
  71. package/dist/Components/Select/Select.styles.js +29 -20
  72. package/dist/Components/SelectSearch/SelectSearch.js +1 -1
  73. package/dist/Components/SelectV2/SelectV2.d.ts +3 -0
  74. package/dist/Components/SelectV2/SelectV2.d.ts.map +1 -0
  75. package/dist/Components/SelectV2/SelectV2.js +185 -0
  76. package/dist/Components/SelectV2/SelectV2Props.d.ts +67 -0
  77. package/dist/Components/SelectV2/SelectV2Props.d.ts.map +1 -0
  78. package/dist/Components/SelectV2/SelectV2Props.js +2 -0
  79. package/dist/Components/SideBar/SecondaryBar.d.ts.map +1 -1
  80. package/dist/Components/SideBar/SecondaryBar.js +10 -2
  81. package/dist/Components/SideBar/SideBar.js +2 -2
  82. package/dist/Components/SideBar/components/MenuItemBox.d.ts.map +1 -1
  83. package/dist/Components/SideBar/components/MenuItemBox.js +7 -6
  84. package/dist/Components/Table/components/tableRowHoverStyle.d.ts +9 -8
  85. package/dist/Components/Table/components/tableRowHoverStyle.d.ts.map +1 -1
  86. package/dist/Components/Table/components/tableRowHoverStyle.js +12 -12
  87. package/dist/Components/Table/settings/ManageColumns.js +2 -2
  88. package/dist/Components/UpgradeButton/UpgradeButton.d.ts.map +1 -1
  89. package/dist/Components/UpgradeButton/UpgradeButton.js +25 -7
  90. package/dist/Components/UserDetails/UserDetails.d.ts.map +1 -1
  91. package/dist/Components/UserDetails/UserDetails.js +5 -2
  92. package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.js +2 -1
  93. package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts +2 -2
  94. package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts.map +1 -1
  95. package/dist/Components/WorkspaceWindow/WorkspaceWindow.js +25 -4
  96. package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts +18 -0
  97. package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts.map +1 -1
  98. package/dist/Theme/chakra/Avatar.styles.d.ts +33 -0
  99. package/dist/Theme/chakra/Avatar.styles.d.ts.map +1 -0
  100. package/dist/Theme/chakra/Avatar.styles.js +28 -0
  101. package/dist/Theme/chakra/Drawer.styles.d.ts +32 -0
  102. package/dist/Theme/chakra/Drawer.styles.d.ts.map +1 -0
  103. package/dist/Theme/chakra/Drawer.styles.js +26 -0
  104. package/dist/Theme/chakra/Menu.styles.d.ts +70 -0
  105. package/dist/Theme/chakra/Menu.styles.d.ts.map +1 -0
  106. package/dist/Theme/chakra/Menu.styles.js +50 -0
  107. package/dist/Theme/chakra/Modal.styles.d.ts +32 -0
  108. package/dist/Theme/chakra/Modal.styles.d.ts.map +1 -0
  109. package/dist/Theme/chakra/Modal.styles.js +26 -0
  110. package/dist/Theme/chakra/Popover.styles.d.ts +37 -0
  111. package/dist/Theme/chakra/Popover.styles.d.ts.map +1 -0
  112. package/dist/Theme/chakra/Popover.styles.js +30 -0
  113. package/dist/Theme/chakra/Slider.styles.d.ts +31 -0
  114. package/dist/Theme/chakra/Slider.styles.d.ts.map +1 -0
  115. package/dist/Theme/chakra/Slider.styles.js +25 -0
  116. package/dist/Theme/chakra/Switch.styles.d.ts +31 -0
  117. package/dist/Theme/chakra/Switch.styles.d.ts.map +1 -0
  118. package/dist/Theme/chakra/Switch.styles.js +24 -0
  119. package/dist/Theme/chakra/Tabs.styles.d.ts +43 -0
  120. package/dist/Theme/chakra/Tabs.styles.d.ts.map +1 -0
  121. package/dist/Theme/chakra/Tabs.styles.js +41 -0
  122. package/dist/Theme/chakra/common.web.d.ts.map +1 -1
  123. package/dist/Theme/chakra/common.web.js +4 -1
  124. package/dist/Theme/chakra/componentStyles.d.ts +230 -1
  125. package/dist/Theme/chakra/componentStyles.d.ts.map +1 -1
  126. package/dist/Theme/chakra/componentStyles.js +136 -0
  127. package/dist/Theme/chakra/createBrandTheme.d.ts.map +1 -1
  128. package/dist/Theme/chakra/createBrandTheme.js +47 -0
  129. package/dist/Theme/provider/PixelizeThemeProvider.d.ts +22 -3
  130. package/dist/Theme/provider/PixelizeThemeProvider.d.ts.map +1 -1
  131. package/dist/Theme/provider/PixelizeThemeProvider.js +115 -5
  132. package/dist/Theme/provider/ThemeSwitcher.d.ts.map +1 -1
  133. package/dist/Theme/provider/ThemeSwitcher.js +23 -11
  134. package/dist/Theme/tokens/brands/index.d.ts.map +1 -1
  135. package/dist/Theme/tokens/brands/index.js +20 -18
  136. package/dist/Theme/tokens/brands/lavender/palette.light.d.ts.map +1 -1
  137. package/dist/Theme/tokens/brands/lavender/palette.light.js +22 -15
  138. package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts.map +1 -1
  139. package/dist/Theme/tokens/brands/zinc/palette.dark.js +5 -2
  140. package/dist/Theme/tokens/builders/buildDarkPalette.d.ts.map +1 -1
  141. package/dist/Theme/tokens/builders/buildDarkPalette.js +19 -4
  142. package/dist/Theme/tokens/builders/outlineRung.d.ts +35 -0
  143. package/dist/Theme/tokens/builders/outlineRung.d.ts.map +1 -0
  144. package/dist/Theme/tokens/builders/outlineRung.js +69 -0
  145. package/dist/Theme/tokens/builders/statusTone.d.ts +35 -0
  146. package/dist/Theme/tokens/builders/statusTone.d.ts.map +1 -0
  147. package/dist/Theme/tokens/builders/statusTone.js +63 -0
  148. package/dist/Utils/accountHandoff.d.ts +54 -0
  149. package/dist/Utils/accountHandoff.d.ts.map +1 -0
  150. package/dist/Utils/accountHandoff.js +144 -0
  151. package/dist/Utils/planBadge.d.ts +39 -0
  152. package/dist/Utils/planBadge.d.ts.map +1 -0
  153. package/dist/Utils/planBadge.js +108 -0
  154. package/dist/Utils/planExpiry.d.ts +35 -0
  155. package/dist/Utils/planExpiry.d.ts.map +1 -0
  156. package/dist/Utils/planExpiry.js +115 -0
  157. package/dist/index.d.ts +18 -1
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +36 -3
  160. package/package.json +6 -2
  161. package/.claude/settings.local.json +0 -51
  162. package/.cursor/TASK-SETUP.md +0 -43
  163. package/.cursor/agents/be-impl.md +0 -37
  164. package/.cursor/agents/fe-impl.md +0 -39
  165. package/.cursor/agents/task-plan.md +0 -56
  166. package/.cursor/agents/test-create.md +0 -31
  167. package/.cursor/agents/test-exec.md +0 -26
  168. package/.cursor/hooks/task-hint.env +0 -1
  169. package/.cursor/hooks/task-skill-nudge.sh +0 -71
  170. package/.cursor/hooks/task-slash-guard.sh +0 -31
  171. package/.cursor/hooks.json +0 -13
  172. package/.cursor/modules/account-management/MODULE.md +0 -34
  173. package/.cursor/modules/buttons/MODULE.md +0 -47
  174. package/.cursor/modules/cards/MODULE.md +0 -55
  175. package/.cursor/modules/charts/MODULE.md +0 -40
  176. package/.cursor/modules/common/MODULE.md +0 -36
  177. package/.cursor/modules/contact-auth/MODULE.md +0 -19
  178. package/.cursor/modules/data-display/MODULE.md +0 -42
  179. package/.cursor/modules/feedback/MODULE.md +0 -32
  180. package/.cursor/modules/form/MODULE.md +0 -13
  181. package/.cursor/modules/inputs-basic/MODULE.md +0 -42
  182. package/.cursor/modules/inputs-date-file/MODULE.md +0 -56
  183. package/.cursor/modules/inputs-select/MODULE.md +0 -27
  184. package/.cursor/modules/inputs-toggle/MODULE.md +0 -18
  185. package/.cursor/modules/kanban/MODULE.md +0 -22
  186. package/.cursor/modules/layout-navigation/MODULE.md +0 -269
  187. package/.cursor/modules/overlays/MODULE.md +0 -69
  188. package/.cursor/modules/playground/MODULE.md +0 -28
  189. package/.cursor/modules/table/MODULE.md +0 -78
  190. package/.cursor/modules/theme/MODULE.md +0 -314
  191. package/.cursor/modules/types-exports/MODULE.md +0 -17
  192. package/.cursor/modules/utility-ui/MODULE.md +0 -50
  193. package/.cursor/modules/utils-hooks/MODULE.md +0 -35
  194. package/.cursor/pixelize-task-statusline.sh +0 -64
  195. package/.cursor/plans/blocked/.gitkeep +0 -0
  196. package/.cursor/plans/current.md +0 -12
  197. package/.cursor/plans/current.theme-tokens-dark-mode.md +0 -77
  198. package/.cursor/plans/current.theme-tokens-dark.md +0 -155
  199. package/.cursor/plans/done/.gitkeep +0 -0
  200. package/.cursor/rules +0 -31
  201. package/.cursor/skills/task/SKILL.md +0 -167
  202. package/CLAUDE.md +0 -148
  203. package/__mocks__/styleMock.js +0 -8
  204. package/coverage/clover.xml +0 -405
  205. package/coverage/coverage-final.json +0 -16
  206. package/coverage/coverage-summary.json +0 -50
  207. package/coverage/lcov-report/Button/Button.tsx.html +0 -244
  208. package/coverage/lcov-report/Button/index.html +0 -116
  209. package/coverage/lcov-report/Checkbox/Checkbox.tsx.html +0 -433
  210. package/coverage/lcov-report/Checkbox/index.html +0 -116
  211. package/coverage/lcov-report/Common/ErrorMessage.tsx.html +0 -148
  212. package/coverage/lcov-report/Common/FormLabel.tsx.html +0 -331
  213. package/coverage/lcov-report/Common/HelperText.tsx.html +0 -124
  214. package/coverage/lcov-report/Common/index.html +0 -146
  215. package/coverage/lcov-report/Components/Button/Button.tsx.html +0 -244
  216. package/coverage/lcov-report/Components/Button/index.html +0 -116
  217. package/coverage/lcov-report/Components/Checkbox/Checkbox.tsx.html +0 -433
  218. package/coverage/lcov-report/Components/Checkbox/index.html +0 -116
  219. package/coverage/lcov-report/Components/Common/ErrorMessage.tsx.html +0 -148
  220. package/coverage/lcov-report/Components/Common/FormLabel.tsx.html +0 -331
  221. package/coverage/lcov-report/Components/Common/HelperText.tsx.html +0 -124
  222. package/coverage/lcov-report/Components/Common/index.html +0 -146
  223. package/coverage/lcov-report/Components/CustomModulesTable/CustomModulesTable.tsx.html +0 -712
  224. package/coverage/lcov-report/Components/CustomModulesTable/DeleteModuleModal.tsx.html +0 -343
  225. package/coverage/lcov-report/Components/CustomModulesTable/EditModuleModal.tsx.html +0 -313
  226. package/coverage/lcov-report/Components/CustomModulesTable/index.html +0 -146
  227. package/coverage/lcov-report/Components/Divider/Divider.tsx.html +0 -133
  228. package/coverage/lcov-report/Components/Divider/index.html +0 -116
  229. package/coverage/lcov-report/Components/Dropdown/DropDown.tsx.html +0 -994
  230. package/coverage/lcov-report/Components/Dropdown/index.html +0 -116
  231. package/coverage/lcov-report/Components/EmptyState/EmptyState.tsx.html +0 -466
  232. package/coverage/lcov-report/Components/EmptyState/index.html +0 -116
  233. package/coverage/lcov-report/Components/Header/HeaderActions.tsx.html +0 -373
  234. package/coverage/lcov-report/Components/Header/index.html +0 -116
  235. package/coverage/lcov-report/Components/Input/TextInput.tsx.html +0 -487
  236. package/coverage/lcov-report/Components/Input/index.html +0 -116
  237. package/coverage/lcov-report/Components/Input/textInputIconSize.ts.html +0 -205
  238. package/coverage/lcov-report/Components/KanbanBoard/AccountCard.tsx.html +0 -547
  239. package/coverage/lcov-report/Components/KanbanBoard/AccountRow.tsx.html +0 -190
  240. package/coverage/lcov-report/Components/KanbanBoard/KanbanActions/KanbanActions.tsx.html +0 -247
  241. package/coverage/lcov-report/Components/KanbanBoard/KanbanActions/index.html +0 -116
  242. package/coverage/lcov-report/Components/KanbanBoard/KanbanBoard.tsx.html +0 -3598
  243. package/coverage/lcov-report/Components/KanbanBoard/MeasuredItem.tsx.html +0 -283
  244. package/coverage/lcov-report/Components/KanbanBoard/index.html +0 -161
  245. package/coverage/lcov-report/Components/OrganizationDetails/CreateOrgModal.tsx.html +0 -511
  246. package/coverage/lcov-report/Components/OrganizationDetails/DeleteOrgModal.tsx.html +0 -334
  247. package/coverage/lcov-report/Components/OrganizationDetails/OrganizationDetails.tsx.html +0 -1519
  248. package/coverage/lcov-report/Components/OrganizationDetails/index.html +0 -146
  249. package/coverage/lcov-report/Components/RolesPermission/DeleteRoleModal.tsx.html +0 -328
  250. package/coverage/lcov-report/Components/RolesPermission/RolesPermission.tsx.html +0 -1732
  251. package/coverage/lcov-report/Components/RolesPermission/index.html +0 -131
  252. package/coverage/lcov-report/Components/SearchSelect/SearchSelect.tsx.html +0 -2575
  253. package/coverage/lcov-report/Components/SearchSelect/SelectTruncatedLabel.tsx.html +0 -202
  254. package/coverage/lcov-report/Components/SearchSelect/index.html +0 -146
  255. package/coverage/lcov-report/Components/SearchSelect/searchSelectSize.ts.html +0 -496
  256. package/coverage/lcov-report/Components/Select/Select.tsx.html +0 -361
  257. package/coverage/lcov-report/Components/Select/index.html +0 -116
  258. package/coverage/lcov-report/Components/SideBar/components/OtherApps.tsx.html +0 -562
  259. package/coverage/lcov-report/Components/SideBar/components/OverflowTooltipText.tsx.html +0 -346
  260. package/coverage/lcov-report/Components/SideBar/components/index.html +0 -116
  261. package/coverage/lcov-report/Components/SignInActivityTable/SignInActivityTable.tsx.html +0 -490
  262. package/coverage/lcov-report/Components/SignInActivityTable/index.html +0 -116
  263. package/coverage/lcov-report/Components/Table/components/TableActions.tsx.html +0 -595
  264. package/coverage/lcov-report/Components/Table/components/TableBody.tsx.html +0 -2212
  265. package/coverage/lcov-report/Components/Table/components/TableGroupRow.tsx.html +0 -358
  266. package/coverage/lcov-report/Components/Table/components/TableLoading.tsx.html +0 -358
  267. package/coverage/lcov-report/Components/Table/components/index.html +0 -161
  268. package/coverage/lcov-report/Components/Table/settings/ManageColumns.tsx.html +0 -856
  269. package/coverage/lcov-report/Components/Table/settings/index.html +0 -116
  270. package/coverage/lcov-report/Components/Tag/Tag.styles.tsx.html +0 -331
  271. package/coverage/lcov-report/Components/Tag/Tag.tsx.html +0 -256
  272. package/coverage/lcov-report/Components/Tag/index.html +0 -131
  273. package/coverage/lcov-report/Components/ToolTip/ToolTip.tsx.html +0 -286
  274. package/coverage/lcov-report/Components/ToolTip/index.html +0 -116
  275. package/coverage/lcov-report/Components/UserDetails/AddUserModal.tsx.html +0 -709
  276. package/coverage/lcov-report/Components/UserDetails/ChangeRoleModal.tsx.html +0 -505
  277. package/coverage/lcov-report/Components/UserDetails/DeactivateConfirmModal.tsx.html +0 -379
  278. package/coverage/lcov-report/Components/UserDetails/UserDetails.tsx.html +0 -1900
  279. package/coverage/lcov-report/Components/UserDetails/index.html +0 -161
  280. package/coverage/lcov-report/EmptyState/EmptyState.tsx.html +0 -466
  281. package/coverage/lcov-report/EmptyState/index.html +0 -116
  282. package/coverage/lcov-report/Hooks/index.html +0 -116
  283. package/coverage/lcov-report/Hooks/usePreferences.ts.html +0 -421
  284. package/coverage/lcov-report/Input/TextInput.tsx.html +0 -487
  285. package/coverage/lcov-report/Input/index.html +0 -131
  286. package/coverage/lcov-report/Input/textInputIconSize.ts.html +0 -205
  287. package/coverage/lcov-report/KanbanBoard.tsx.html +0 -3481
  288. package/coverage/lcov-report/OrganizationDetails/CreateOrgModal.tsx.html +0 -511
  289. package/coverage/lcov-report/OrganizationDetails/DeleteOrgModal.tsx.html +0 -334
  290. package/coverage/lcov-report/OrganizationDetails/OrganizationDetails.tsx.html +0 -1519
  291. package/coverage/lcov-report/OrganizationDetails/index.html +0 -146
  292. package/coverage/lcov-report/RolesPermission/DeleteRoleModal.tsx.html +0 -328
  293. package/coverage/lcov-report/RolesPermission/RolesPermission.tsx.html +0 -1732
  294. package/coverage/lcov-report/RolesPermission/index.html +0 -116
  295. package/coverage/lcov-report/SearchSelect/SearchSelect.tsx.html +0 -2575
  296. package/coverage/lcov-report/SearchSelect/SelectTruncatedLabel.tsx.html +0 -202
  297. package/coverage/lcov-report/SearchSelect/index.html +0 -146
  298. package/coverage/lcov-report/SearchSelect/searchSelectSize.ts.html +0 -496
  299. package/coverage/lcov-report/Table/CompactSelect.tsx.html +0 -379
  300. package/coverage/lcov-report/Table/Components/ActiveFilters.tsx.html +0 -514
  301. package/coverage/lcov-report/Table/Components/HeaderActions.tsx.html +0 -373
  302. package/coverage/lcov-report/Table/Components/Pagination.tsx.html +0 -574
  303. package/coverage/lcov-report/Table/Components/TableActions.tsx.html +0 -574
  304. package/coverage/lcov-report/Table/Components/TableBody.tsx.html +0 -1027
  305. package/coverage/lcov-report/Table/Components/TableFilters.tsx.html +0 -397
  306. package/coverage/lcov-report/Table/Components/TableHeader.tsx.html +0 -1060
  307. package/coverage/lcov-report/Table/Components/TableLoading.tsx.html +0 -361
  308. package/coverage/lcov-report/Table/Components/TableSearch.tsx.html +0 -337
  309. package/coverage/lcov-report/Table/Components/index.html +0 -266
  310. package/coverage/lcov-report/Table/Components/useDebounce.ts.html +0 -178
  311. package/coverage/lcov-report/Table/Components/useTable.ts.html +0 -778
  312. package/coverage/lcov-report/Table/LeftFilterPane.tsx.html +0 -1810
  313. package/coverage/lcov-report/Table/SelectOperationControls.tsx.html +0 -178
  314. package/coverage/lcov-report/Table/Table.tsx.html +0 -1567
  315. package/coverage/lcov-report/Table/TableProps.tsx.html +0 -658
  316. package/coverage/lcov-report/Table/TableSettings/ManageColumns.tsx.html +0 -619
  317. package/coverage/lcov-report/Table/TableSettings/TableFilters.tsx.html +0 -229
  318. package/coverage/lcov-report/Table/TableSettings/TableSettings.tsx.html +0 -532
  319. package/coverage/lcov-report/Table/TableSettings/index.html +0 -146
  320. package/coverage/lcov-report/Table/TableToDo.tsx.html +0 -973
  321. package/coverage/lcov-report/Table/TextOperationControls.tsx.html +0 -271
  322. package/coverage/lcov-report/Table/filterTypes.ts.html +0 -97
  323. package/coverage/lcov-report/Table/index.html +0 -176
  324. package/coverage/lcov-report/Table/settings/ManageColumns.tsx.html +0 -856
  325. package/coverage/lcov-report/Table/settings/index.html +0 -116
  326. package/coverage/lcov-report/Tag/Tag.tsx.html +0 -256
  327. package/coverage/lcov-report/Tag/index.html +0 -116
  328. package/coverage/lcov-report/Theme/buildBrandTokens.ts.html +0 -175
  329. package/coverage/lcov-report/Theme/chartColorsFromTheme.ts.html +0 -214
  330. package/coverage/lcov-report/Theme/index.html +0 -131
  331. package/coverage/lcov-report/Theme/useCustomTheme.ts.html +0 -100
  332. package/coverage/lcov-report/ToolTip/ToolTip.tsx.html +0 -286
  333. package/coverage/lcov-report/ToolTip/index.html +0 -116
  334. package/coverage/lcov-report/UserDetails/AddUserModal.tsx.html +0 -709
  335. package/coverage/lcov-report/UserDetails/ChangeRoleModal.tsx.html +0 -505
  336. package/coverage/lcov-report/UserDetails/index.html +0 -116
  337. package/coverage/lcov-report/Utils/functions.ts.html +0 -106
  338. package/coverage/lcov-report/Utils/index.html +0 -116
  339. package/coverage/lcov-report/Utils/table.ts.html +0 -1189
  340. package/coverage/lcov-report/base.css +0 -224
  341. package/coverage/lcov-report/block-navigation.js +0 -87
  342. package/coverage/lcov-report/favicon.png +0 -0
  343. package/coverage/lcov-report/index.html +0 -251
  344. package/coverage/lcov-report/prettify.css +0 -1
  345. package/coverage/lcov-report/prettify.js +0 -2
  346. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  347. package/coverage/lcov-report/sorter.js +0 -210
  348. package/coverage/lcov.info +0 -981
  349. package/dist/App.d.ts +0 -4
  350. package/dist/App.js +0 -95
  351. package/dist/Layout.d.ts +0 -3
  352. package/dist/Layout.js +0 -286
  353. package/dist/Pages/TInput.d.ts +0 -3
  354. package/dist/Pages/TInput.d.ts.map +0 -1
  355. package/dist/Pages/TInput.js +0 -20
  356. package/dist/Pages/accordion.d.ts +0 -3
  357. package/dist/Pages/accordion.d.ts.map +0 -1
  358. package/dist/Pages/accordion.js +0 -21
  359. package/dist/Pages/alertdialog.d.ts +0 -3
  360. package/dist/Pages/alertdialog.d.ts.map +0 -1
  361. package/dist/Pages/alertdialog.js +0 -53
  362. package/dist/Pages/button.d.ts +0 -3
  363. package/dist/Pages/button.d.ts.map +0 -1
  364. package/dist/Pages/button.js +0 -32
  365. package/dist/Pages/card.d.ts +0 -3
  366. package/dist/Pages/card.d.ts.map +0 -1
  367. package/dist/Pages/card.js +0 -102
  368. package/dist/Pages/chart.d.ts +0 -4
  369. package/dist/Pages/chart.d.ts.map +0 -1
  370. package/dist/Pages/chart.js +0 -25
  371. package/dist/Pages/checkbox.d.ts +0 -3
  372. package/dist/Pages/checkbox.d.ts.map +0 -1
  373. package/dist/Pages/checkbox.js +0 -11
  374. package/dist/Pages/contactForm.d.ts +0 -3
  375. package/dist/Pages/contactForm.d.ts.map +0 -1
  376. package/dist/Pages/contactForm.js +0 -15
  377. package/dist/Pages/customModulesTable.d.ts +0 -4
  378. package/dist/Pages/customModulesTable.d.ts.map +0 -1
  379. package/dist/Pages/customModulesTable.js +0 -25
  380. package/dist/Pages/datePick.d.ts +0 -3
  381. package/dist/Pages/datePick.d.ts.map +0 -1
  382. package/dist/Pages/datePick.js +0 -49
  383. package/dist/Pages/drawer.d.ts +0 -3
  384. package/dist/Pages/drawer.d.ts.map +0 -1
  385. package/dist/Pages/drawer.js +0 -53
  386. package/dist/Pages/dropdown.d.ts +0 -3
  387. package/dist/Pages/dropdown.d.ts.map +0 -1
  388. package/dist/Pages/dropdown.js +0 -21
  389. package/dist/Pages/editor.d.ts +0 -3
  390. package/dist/Pages/editor.d.ts.map +0 -1
  391. package/dist/Pages/editor.js +0 -13
  392. package/dist/Pages/feedback.d.ts +0 -2
  393. package/dist/Pages/feedback.d.ts.map +0 -1
  394. package/dist/Pages/feedback.js +0 -12
  395. package/dist/Pages/fileUpload.d.ts +0 -2
  396. package/dist/Pages/fileUpload.d.ts.map +0 -1
  397. package/dist/Pages/fileUpload.js +0 -36
  398. package/dist/Pages/input.d.ts +0 -3
  399. package/dist/Pages/input.d.ts.map +0 -1
  400. package/dist/Pages/input.js +0 -48
  401. package/dist/Pages/kanbanboard.d.ts +0 -3
  402. package/dist/Pages/kanbanboard.d.ts.map +0 -1
  403. package/dist/Pages/kanbanboard.js +0 -182
  404. package/dist/Pages/modal.d.ts +0 -3
  405. package/dist/Pages/modal.d.ts.map +0 -1
  406. package/dist/Pages/modal.js +0 -61
  407. package/dist/Pages/multiSelect.d.ts +0 -3
  408. package/dist/Pages/multiSelect.d.ts.map +0 -1
  409. package/dist/Pages/multiSelect.js +0 -22
  410. package/dist/Pages/noteArea.d.ts +0 -3
  411. package/dist/Pages/noteArea.d.ts.map +0 -1
  412. package/dist/Pages/noteArea.js +0 -26
  413. package/dist/Pages/notification.d.ts +0 -3
  414. package/dist/Pages/notification.d.ts.map +0 -1
  415. package/dist/Pages/notification.js +0 -37
  416. package/dist/Pages/numberInput.d.ts +0 -3
  417. package/dist/Pages/numberInput.d.ts.map +0 -1
  418. package/dist/Pages/numberInput.js +0 -16
  419. package/dist/Pages/orgSwitcher.d.ts +0 -4
  420. package/dist/Pages/orgSwitcher.d.ts.map +0 -1
  421. package/dist/Pages/orgSwitcher.js +0 -36
  422. package/dist/Pages/organizationDetails.d.ts +0 -4
  423. package/dist/Pages/organizationDetails.d.ts.map +0 -1
  424. package/dist/Pages/organizationDetails.js +0 -64
  425. package/dist/Pages/photoViewer.d.ts +0 -3
  426. package/dist/Pages/photoViewer.d.ts.map +0 -1
  427. package/dist/Pages/photoViewer.js +0 -12
  428. package/dist/Pages/pinInputs.d.ts +0 -3
  429. package/dist/Pages/pinInputs.d.ts.map +0 -1
  430. package/dist/Pages/pinInputs.js +0 -11
  431. package/dist/Pages/productCaard.d.ts +0 -3
  432. package/dist/Pages/productCaard.d.ts.map +0 -1
  433. package/dist/Pages/productCaard.js +0 -311
  434. package/dist/Pages/productDetailCard.d.ts +0 -3
  435. package/dist/Pages/productDetailCard.d.ts.map +0 -1
  436. package/dist/Pages/productDetailCard.js +0 -78
  437. package/dist/Pages/productFilter.d.ts +0 -3
  438. package/dist/Pages/productFilter.d.ts.map +0 -1
  439. package/dist/Pages/productFilter.js +0 -148
  440. package/dist/Pages/progressbar.d.ts +0 -3
  441. package/dist/Pages/progressbar.d.ts.map +0 -1
  442. package/dist/Pages/progressbar.js +0 -11
  443. package/dist/Pages/radioButton.d.ts +0 -3
  444. package/dist/Pages/radioButton.d.ts.map +0 -1
  445. package/dist/Pages/radioButton.js +0 -18
  446. package/dist/Pages/rolesPermission.d.ts +0 -4
  447. package/dist/Pages/rolesPermission.d.ts.map +0 -1
  448. package/dist/Pages/rolesPermission.js +0 -144
  449. package/dist/Pages/search.d.ts +0 -3
  450. package/dist/Pages/search.d.ts.map +0 -1
  451. package/dist/Pages/search.js +0 -21
  452. package/dist/Pages/searchSelect.d.ts +0 -3
  453. package/dist/Pages/searchSelect.d.ts.map +0 -1
  454. package/dist/Pages/searchSelect.js +0 -97
  455. package/dist/Pages/select.d.ts +0 -3
  456. package/dist/Pages/select.d.ts.map +0 -1
  457. package/dist/Pages/select.js +0 -20
  458. package/dist/Pages/selectSearch.d.ts +0 -3
  459. package/dist/Pages/selectSearch.d.ts.map +0 -1
  460. package/dist/Pages/selectSearch.js +0 -58
  461. package/dist/Pages/signInActivityTable.d.ts +0 -4
  462. package/dist/Pages/signInActivityTable.d.ts.map +0 -1
  463. package/dist/Pages/signInActivityTable.js +0 -17
  464. package/dist/Pages/skeleton.d.ts +0 -3
  465. package/dist/Pages/skeleton.d.ts.map +0 -1
  466. package/dist/Pages/skeleton.js +0 -12
  467. package/dist/Pages/stageProgress.d.ts +0 -4
  468. package/dist/Pages/stageProgress.d.ts.map +0 -1
  469. package/dist/Pages/stageProgress.js +0 -31
  470. package/dist/Pages/switch.d.ts +0 -3
  471. package/dist/Pages/switch.d.ts.map +0 -1
  472. package/dist/Pages/switch.js +0 -17
  473. package/dist/Pages/table.d.ts +0 -3
  474. package/dist/Pages/table.d.ts.map +0 -1
  475. package/dist/Pages/table.js +0 -182
  476. package/dist/Pages/tag.d.ts +0 -3
  477. package/dist/Pages/tag.d.ts.map +0 -1
  478. package/dist/Pages/tag.js +0 -27
  479. package/dist/Pages/textArea.d.ts +0 -3
  480. package/dist/Pages/textArea.d.ts.map +0 -1
  481. package/dist/Pages/textArea.js +0 -14
  482. package/dist/Pages/tier1.d.ts +0 -4
  483. package/dist/Pages/tier1.d.ts.map +0 -1
  484. package/dist/Pages/tier1.js +0 -86
  485. package/dist/Pages/timeline.d.ts +0 -3
  486. package/dist/Pages/timeline.d.ts.map +0 -1
  487. package/dist/Pages/timeline.js +0 -73
  488. package/dist/Pages/tooltip.d.ts +0 -3
  489. package/dist/Pages/tooltip.d.ts.map +0 -1
  490. package/dist/Pages/tooltip.js +0 -11
  491. package/dist/Pages/toster.d.ts +0 -3
  492. package/dist/Pages/toster.d.ts.map +0 -1
  493. package/dist/Pages/toster.js +0 -53
  494. package/dist/Pages/upgradeButton.d.ts +0 -4
  495. package/dist/Pages/upgradeButton.d.ts.map +0 -1
  496. package/dist/Pages/upgradeButton.js +0 -17
  497. package/dist/Pages/userDetails.d.ts +0 -4
  498. package/dist/Pages/userDetails.d.ts.map +0 -1
  499. package/dist/Pages/userDetails.js +0 -79
  500. package/dist/Pages/verifyEmail.d.ts +0 -3
  501. package/dist/Pages/verifyEmail.d.ts.map +0 -1
  502. package/dist/Pages/verifyEmail.js +0 -17
  503. package/dist/Theme/Dark/theme.d.ts +0 -3
  504. package/dist/Theme/Dark/theme.d.ts.map +0 -1
  505. package/dist/Theme/Dark/theme.js +0 -277
  506. package/dist/Theme/Default/palette.d.ts +0 -375
  507. package/dist/Theme/Default/palette.d.ts.map +0 -1
  508. package/dist/Theme/Default/palette.js +0 -306
  509. package/dist/Theme/Default/theme.d.ts +0 -3
  510. package/dist/Theme/Default/theme.d.ts.map +0 -1
  511. package/dist/Theme/Default/theme.js +0 -19
  512. package/dist/Theme/Emerald/palette.d.ts +0 -375
  513. package/dist/Theme/Emerald/palette.d.ts.map +0 -1
  514. package/dist/Theme/Emerald/palette.js +0 -125
  515. package/dist/Theme/Emerald/theme.d.ts +0 -3
  516. package/dist/Theme/Emerald/theme.d.ts.map +0 -1
  517. package/dist/Theme/Emerald/theme.js +0 -19
  518. package/dist/Theme/Meadow/palette.d.ts +0 -375
  519. package/dist/Theme/Meadow/palette.d.ts.map +0 -1
  520. package/dist/Theme/Meadow/palette.js +0 -123
  521. package/dist/Theme/Meadow/theme.d.ts +0 -3
  522. package/dist/Theme/Meadow/theme.d.ts.map +0 -1
  523. package/dist/Theme/Meadow/theme.js +0 -19
  524. package/dist/Theme/Radiant/palette.d.ts +0 -375
  525. package/dist/Theme/Radiant/palette.d.ts.map +0 -1
  526. package/dist/Theme/Radiant/palette.js +0 -125
  527. package/dist/Theme/Radiant/theme.d.ts +0 -3
  528. package/dist/Theme/Radiant/theme.d.ts.map +0 -1
  529. package/dist/Theme/Radiant/theme.js +0 -19
  530. package/dist/Theme/Rosewood/palette.d.ts +0 -375
  531. package/dist/Theme/Rosewood/palette.d.ts.map +0 -1
  532. package/dist/Theme/Rosewood/palette.js +0 -125
  533. package/dist/Theme/Rosewood/theme.d.ts +0 -3
  534. package/dist/Theme/Rosewood/theme.d.ts.map +0 -1
  535. package/dist/Theme/Rosewood/theme.js +0 -19
  536. package/dist/Theme/Skyline/palette.d.ts +0 -375
  537. package/dist/Theme/Skyline/palette.d.ts.map +0 -1
  538. package/dist/Theme/Skyline/palette.js +0 -123
  539. package/dist/Theme/Skyline/theme.d.ts +0 -3
  540. package/dist/Theme/Skyline/theme.d.ts.map +0 -1
  541. package/dist/Theme/Skyline/theme.js +0 -19
  542. package/dist/Theme/Slate/palette.d.ts +0 -375
  543. package/dist/Theme/Slate/palette.d.ts.map +0 -1
  544. package/dist/Theme/Slate/palette.js +0 -123
  545. package/dist/Theme/Slate/theme.d.ts +0 -3
  546. package/dist/Theme/Slate/theme.d.ts.map +0 -1
  547. package/dist/Theme/Slate/theme.js +0 -19
  548. package/dist/Theme/buildBrandTokens.d.ts +0 -16
  549. package/dist/Theme/buildBrandTokens.d.ts.map +0 -1
  550. package/dist/Theme/buildBrandTokens.js +0 -33
  551. package/dist/Theme/chartColorsFromTheme.d.ts +0 -19
  552. package/dist/Theme/chartColorsFromTheme.d.ts.map +0 -1
  553. package/dist/Theme/chartColorsFromTheme.js +0 -34
  554. package/dist/Theme/common.d.ts +0 -167
  555. package/dist/Theme/common.d.ts.map +0 -1
  556. package/dist/Theme/common.js +0 -112
  557. package/dist/Theme/componentStyles.d.ts +0 -10
  558. package/dist/Theme/componentStyles.d.ts.map +0 -1
  559. package/dist/Theme/componentStyles.js +0 -19
  560. package/dist/Theme/fonts.d.ts +0 -37
  561. package/dist/Theme/fonts.d.ts.map +0 -1
  562. package/dist/Theme/fonts.js +0 -41
  563. package/dist/Theme/space.d.ts +0 -34
  564. package/dist/Theme/space.d.ts.map +0 -1
  565. package/dist/Theme/space.js +0 -35
  566. package/dist/Theme/theme.d.ts +0 -3
  567. package/dist/Theme/theme.d.ts.map +0 -1
  568. package/dist/Theme/theme.js +0 -12
  569. package/dist/bootstrap.d.ts +0 -2
  570. package/dist/bootstrap.js +0 -16
  571. package/eslint.config.js +0 -48
  572. package/index.html +0 -13
  573. package/vite.config.ts +0 -13
@@ -1,314 +0,0 @@
1
- # Theme
2
-
3
- ## Purpose
4
-
5
- Nine brand presets (lavender, meadow, radiant, skyline, slate, emerald, rosewood, storefront, zinc),
6
- each with a **light and dark palette**; `useCustomTheme`, the legacy `withTheme` HOC,
7
- `PixelizeThemeProvider` + `useThemeMode` + `ThemeSwitcher`, and the pure token layer shared with the
8
- mobile design library.
9
-
10
- ## Key paths
11
-
12
- - `src/Theme/tokens/` — **pure, platform-agnostic** (no Chakra/React/CSS imports)
13
- - `types.ts` — `PaletteProps`, `ThemeName`, `ColorMode`, `ColorScale`
14
- - `primitives/` — space, sizes, radii, shadows, typography, breakpoints, zIndices
15
- - `builders/` — `color.ts` (hex/HSL/WCAG math), `buildDarkPalette.ts`
16
- - `brands/<brand>/palette.light.ts` + `palette.dark.ts`
17
- - `src/Theme/chakra/` — **web-only** binding: `createBrandTheme`, `componentStyles`, `fonts.web.ts`
18
- - `src/Theme/provider/` — `PixelizeThemeProvider`, `useThemeMode`, `ThemeSwitcher`
19
- - `src/Theme/useCustomTheme.ts` — hook read by ~127 components
20
- - `src/Theme/index.ts` — `ThemesList` (light) + `brandThemes` (light+dark)
21
- - `src/withTheme.tsx`
22
- - Exports: `useCustomTheme`, `ThemesList`, `withTheme`, `PixelizeThemeProvider`, `useThemeMode`,
23
- `ThemeSwitcher`, `brandThemes`, `lightPalettes`, `darkPalettes`, `palettes`, `themeNames`,
24
- `buildDarkPalette`
25
- - Also exported (Wave D follow-up, see below): the WCAG contrast helpers `isDarkCanvas`,
26
- `onFilled`, `onGradient`, `accentTextOnCanvas`, `pickAccentText`, `AA_NORMAL_TEXT`,
27
- `DARK_CANVAS_LUMINANCE` (`builders/accentText.ts`) and the pure color-math primitives
28
- `relativeLuminance`, `contrastRatio`, `hexToRgb`, `hexToRgba`, `compositeOver`, `rgbToHex`,
29
- `rgbToHsl`, `hslToRgb`, `hexToHsl`, `hslToHex`, `withLightness`, `mix` + types `Rgb`/`Hsl`
30
- (`builders/color.ts`)
31
-
32
- ## How dark mode works
33
-
34
- Dark mode **swaps which palette the theme carries** (`brandThemes[brand][light|dark]`) rather than
35
- using Chakra `semanticTokens` / `_dark`. This is deliberate: components interpolate **resolved hex**
36
- from `useCustomTheme()`, and `componentStyles` variants are functions of `({ theme })` — so both
37
- follow the active palette with **zero per-component edits**.
38
-
39
- Dark palettes are **derived** from each brand's own light palette by `buildDarkPalette`, so brand hue
40
- carries through. Structural ramps (background/text/border/…) are rebuilt at explicit lightness
41
- targets around the brand hue; utility hues are reversed; accents are **adaptively lifted** to
42
- maximize canvas contrast without ever regressing the white-on-accent label below
43
- `min(4.5, lightModeContrast)`.
44
-
45
- ## Key rules
46
-
47
- - **`tokens/` must never import Chakra, React, or CSS** — it is copy-paste portable to the mobile
48
- design library. Web-only concerns live in `chakra/`.
49
- - **Never hardcode a hex in a component** — read from `useCustomTheme()`, or it is stuck in light mode.
50
- - **`colors.white` is a foreground token** (the label on a filled button) and stays white in dark.
51
- For a white *surface* use `colors.background[50]` — identical `#ffffff` in light, dark-aware.
52
- - `withTheme` stays **light-only** so existing consumer apps are visually unchanged; dark is opt-in
53
- via `PixelizeThemeProvider` (defaults to **`system`**).
54
- - `src/index.ts` is **append-only** — `src/index.publicApi.test.ts` asserts every previously
55
- published name still exists (consumer contract guard).
56
- - Chart colors from theme via `chartColorsFromTheme`.
57
-
58
- ## Recent changes (WCAG contrast + dark-mode pass)
59
-
60
- - **Badge** is now themed in `chakra/componentStyles.ts` (no `Components/Badge/` family — style
61
- config lives here). `solid`/`subtle` variants guard non-hex `colorScheme` swatches (Chakra's
62
- built-in `blackAlpha`/`whiteAlpha` are `rgba()` strings, not hex — `isHexColor()` falls back to
63
- `swatch?.[800]` instead of throwing). `subtle` also verifies `contrastRatio(accent, bg) >= 4.5`
64
- before using the brand-hue accent from `accentTextOnCanvas`, else falls back to `onFilled()`
65
- (provably-always-AA) — fixes a near-miss (measured 4.42, needs 4.5) on the yellow scale in dark mode.
66
- - `tokens/builders/accentText.ts`: `pickAccentText`/`accentTextOnCanvas` now take
67
- `primary: ColorScale | undefined` and return a safe white/black fallback instead of throwing
68
- when the scale is missing (regression: some call sites had dropped defensive `?.` chaining).
69
- New `onFilled(fill, white, black)` export — provably clears AA against any fill; used by Badge.
70
- - 4x `brands/{emerald,meadow,radiant,rosewood}/palette.light.ts`: `gray[500]` (the de-facto
71
- muted-text token, ~43 call sites) retuned to clear AA (>=4.5) against every `backgroundColor`
72
- surface actually rendered as a `bg=` today (main/secondary/light/subtle), while staying
73
- lighter than `gray[600]` (ramp order preserved). See "Known gaps" below for what this did
74
- **not** cover.
75
- - `tokens/builders/chartColorsFromTheme.ts`: removed unused `chartTooltipBackground`/
76
- `chartTooltipForeground` exports (dead code — no callers after `ApexLineChart.tsx` stopped
77
- using them in this same pass).
78
-
79
- ## Wave D — WCAG follow-up pass
80
-
81
- - `gray[500]` retune (same methodology as the four brands above) extended to
82
- `brands/{lavender,skyline,slate}/palette.light.ts` — these three had the identical unfixed gap
83
- (lavender failed all 4 `backgroundColor` surfaces at 3.96-4.45; skyline/slate failed
84
- `secondary`/`subtle`), missed by the earlier pass.
85
- - **Gradient stop retune (7 brands)** — every brand's `gradient: {from, to}` token had a stop pair
86
- where neither pure white nor pure black cleared AA at both ends. Darkened the lighter stop per
87
- brand (user-approved trade-off — this is the only Wave D change that visibly shifts brand
88
- identity, not just a muted/secondary token) so white gradient-button text clears AA at both ends.
89
- `accentText.ts` gained `onGradient(from, to, white, black)` — picks `onFilled` against whichever
90
- stop has the higher `relativeLuminance` (the harder case); safe **once** the gradient's own stops
91
- are tuned this way, not guaranteed for an arbitrary caller-overridden gradient (see
92
- `account-management` MODULE.md — `UpgradeButton`'s `gradient` prop).
93
- - **`error`/`red[500]` AA gap** — architecturally different from `gray[500]`: a saturated red's low
94
- WCAG luminance weight makes a single-value retune mathematically impossible within the
95
- `error600` lightness boundary. Fixed instead by routing every hardcoded `red[500]`/`error[500]`
96
- text call site through `accentTextOnCanvas`, which walks to `error[700]` (clears 5.46-6.21 across
97
- all 7 brands) automatically. No palette edits needed — `red`/`semantic.error` are identical
98
- across brands (only `lavender` defines them; others inherit via spread).
99
- - **`pickAccentText` hardened against a partial `ColorScale`** — the rung-walk in
100
- `accentText.ts` previously assumed every caller supplies all of rungs 500-900 and crashed
101
- (`hexToRgb(undefined)`) on a sparse scale (a real risk for any consumer with a hand-built or
102
- test-mock theme, not just this repo's own tests). Now treats a missing rung as "doesn't clear
103
- AA" and keeps walking; falls back to the nearest defined rung, then to safe white/black if the
104
- scale is empty.
105
-
106
- ## Wave D — QA-driven follow-up (user ran a Chrome-extension-based contrast/AA pass against the live playground)
107
-
108
- - **Margin-safety correction on the 7-brand gradient retune above.** Direct re-measurement found
109
- every brand's darkened stop cleared AA by **less than 0.02** (e.g. 4.502 vs the 4.5 cutoff) —
110
- too thin to trust against rounding/rendering variance, and a systemic gap across all 7 brands'
111
- first-pass tuning (the search stopped the instant AA was crossed, with no margin built in).
112
- Rebuilt every brand's thin-margin stop(s) with a **safe ≥4.6 target** instead of the bare 4.5
113
- cutoff, using the same HSL-preserving-hue/saturation darkening search. Final margins verified
114
- live via Playwright: 4.581–4.834 across all 7 brands. Established going forward: **a contrast
115
- value that clears AA by <0.02 should be treated as failing**, not passing.
116
- - **`Modal`/`AlertDialog`/`Drawer` dark-mode surface bug** — see overlays / layout-navigation
117
- MODULE.md. Root cause: these hardcode Chakra's literal `colors.white` baseStyle (gated behind
118
- `_dark`), unlike `Card`, which already routes through the patched `chakra-body-bg`/
119
- `chakra-body-text` semantic tokens — the QA report's claim that `Card` was also broken did not
120
- reproduce under direct Playwright measurement **at the time**, in a fresh browser context. See
121
- the correction below: `Card` *can* break, conditionally, and the real fix was one level up
122
- from any single component.
123
- - **`Card`/`ProfileCard` dark-mode surface bug (user-reported via screenshot, blocking) — corrects
124
- the claim above.** The claim that this app's theme-swap dark mode "never triggers" Chakra's
125
- `_dark:` selector was wrong: `_dark:` maps to `.chakra-ui-dark &` / `[data-theme=dark] &`, and
126
- Chakra's own `ColorModeProvider` (which every `ChakraProvider` wraps internally, regardless of
127
- this app's separate palette-swap mechanism) sets that class/attribute from its **own**
128
- `localStorage["chakra-ui-color-mode"]` key — entirely separate from this app's own
129
- `"pixelize-theme"` storage key — and that stored value **wins over** `theme.config
130
- .initialColorMode: "light"` on every load if present. A fresh browser context has no such
131
- stored value, so the earlier Playwright measurement never saw the bug; a browser where
132
- Chakra's native color mode was ever toggled to `"dark"` on this origin (by this app or an
133
- earlier version of it) does, permanently, until that one key is cleared. Confirmed live:
134
- seeding `localStorage["chakra-ui-color-mode"] = "dark"` reproduces the exact reported symptom —
135
- `Card`'s default `"elevated"` variant carries Chakra's own un-migrated
136
- `_dark: { bg: "colors.gray.700" }`, and this app's dark ramp runs dark→light, so `gray[700]`
137
- resolves to L≈79% (a light, brand-tinted gray) instead of the correct dark `chakra-body-bg`.
138
- `ProfileCard` hits the identical path (also a bare `ChakraCard` with no explicit `bg=`).
139
- `PricingCard`/`PaymentCard` were never affected — they set an explicit `bg={theme.colors
140
- .background[50]}` themselves, which wins over the variant's `_dark:` block regardless.
141
- **Fixed at the root, not per-component:** `PixelizeThemeProvider` now passes a
142
- `colorModeManager` to `ChakraProvider` that always returns `"light"` and never persists,
143
- severing Chakra's native color mode from `localStorage` entirely — so no un-migrated `_dark:`
144
- block anywhere (present or future, not just `Card`) can fire regardless of what's stored.
145
- Verified live via Playwright: reproduced the bug by seeding the stale key, confirmed the fix
146
- neutralizes it (`Card` background back to the correct dark canvas color in both the fresh and
147
- stale-storage cases).
148
- - Same "text-as-scale-rung fails AA against its canvas" pattern (established by the `error`/
149
- `red[500]` fix above) applied to two more call sites found by the QA pass: `Notification`'s
150
- time-elapsed orange icon/text (feedback module) and `FileUploader`'s blue accent text
151
- (inputs-date-file module).
152
- - **`gray[500]` margin widen (`slate`/`rosewood`), code-review catch:** the same "<0.02 margin
153
- should be treated as failing" rule established above for the gradient stops also applied to
154
- the earlier `gray[500]` retune — `slate` measured 4.509 and `rosewood` 4.516 against their
155
- `secondary` `backgroundColor` surface, both too thin. Darkened each by ~0.7 lightness points
156
- (hue/saturation preserved, same HSL search as the gradient fix) to a safe ≥4.6 margin against
157
- all four surfaces; the other 5 brands' `gray[500]` already cleared ≥4.6 and needed no change.
158
- All 7 brands' `gray[500]` comment updated to state the ≥4.6 standard explicitly.
159
- - **`FormError` (`chakra/componentStyles.ts`), code-review catch:** Chakra's stock
160
- `FormErrorMessage`/`FormErrorIcon` both hardcode `colors.red.500` via a shared `--form-error-color`
161
- CSS var — the library's `FormError` override (added earlier this pass) fixed the `text` anatomy
162
- part via `accentTextOnCanvas` but missed the `icon` part, which stayed on Chakra's raw
163
- `red.500` and kept the same AA gap for any consumer rendering `<FormErrorIcon/>`. Both parts now
164
- share one computed `color`.
165
-
166
- ## Wave D — public export of the WCAG contrast helpers (user request: "export anything useful for consumers")
167
-
168
- - `accentText.ts`'s helpers and `color.ts`'s pure color math were internal-only (imported by
169
- ~25 components + `chakra/componentStyles.ts`) despite being generic, dependency-free, and
170
- already the load-bearing logic behind this whole pass's AA fixes. Promoted to `src/index.ts`
171
- as additive exports (append-only guard test updated) so a consumer building a custom component
172
- against this library's `ColorScale`/`PaletteProps` tokens can reuse the same contrast logic
173
- instead of re-deriving WCAG math themselves.
174
- - **Deliberately NOT exported:** `pickActiveAccent` (`Header.tsx`, this pass's BLOCKING fix) — it's
175
- a narrow, Header-specific non-text-accent picker (hardcoded `ACTIVE_ACCENT_TARGET = 3`, a search
176
- order tuned for one component's underline accent), not a general-purpose public utility.
177
- - `accentTextOnCanvas`'s search-direction assumption (canvas darkness implies a dark-mode-shaped
178
- scale — see the Header bug in layout-navigation MODULE.md) holds for every one of its ~25
179
- internal call sites because both the scale and the canvas always come from the SAME active
180
- theme mode there. A consumer passing an unrelated custom scale/canvas pairing could still hit
181
- the same edge case Header did; `pickAccentText(primary, canvas, mode)` (explicit mode, no
182
- guessing) is the safer of the two for that case and is exported alongside it for that reason.
183
-
184
- ## Wave B — 8th brand (`storefront`), cross-repo coordination with the mobile design library
185
-
186
- - Added `brands/storefront/palette.{light,dark}.ts`, registered in `types.ts` (`ThemeName`),
187
- `brands/index.ts` (`lightPalettes`/`darkPalettes`/`palettes`/`themeNames`), `Theme/index.ts`
188
- (`ThemesList`/`brandThemes`), and `provider/colorModeStorage.ts`'s `VALID_BRANDS` allowlist (a
189
- hand-maintained literal array, **not** derived from `themeNames` — easy to miss; a stale stored
190
- `brand: "storefront"` would otherwise be silently rejected back to the default brand).
191
- - Anchor `primary[500] = "#004f4b"` (deep spruce teal, H≈177° S=100% L≈15.5%) — decided in
192
- cross-repo coordination with the sibling `Mobile-Components` design library, which owns and has
193
- already shipped the separate `zinc` brand (the true shadcn-clone) across all 8 brands; do not
194
- conflate the two — `storefront` is this repo's own brand, `zinc` is mobile's.
195
- - Structural ramps (`gray`, `background`, `border`, `boxborder`, `table.hover`, `backgroundColor`,
196
- `sidebar.background`) were derived by **rehuing `emerald`'s exact ramp** (same lightness/
197
- saturation curve per stop, hue rotated to storefront's 177°) rather than a fresh hand-tune —
198
- emerald is the closest existing single-hue teal brand, so this reuses an already-AA-verified
199
- shape instead of guessing new numbers. `primary` itself uses a custom lightness curve (500 pinned
200
- to the exact anchor hex; 50-400 and 600-900 solved so the anchor sits proportionally where the
201
- curve requires — emerald's own anchor is far lighter (L=33.7) than storefront's (L=15.5), so its
202
- literal curve doesn't transplant; only the *shape* (fractional position + step ratios) carries
203
- over). `gradient` mirrors emerald's "same hue, darker `to` stop" pattern, tuned to a ≥4.6 white-
204
- text-contrast margin at both stops per the Wave D "don't trust a <0.02 margin" rule (measured
205
- 4.98 / 6.96).
206
- - **Zero hand-tuning needed post-registration** — unlike the 7 existing brands (which each needed a
207
- `gray[500]`/gradient retune pass, see Wave D above), `storefront` passed every existing
208
- `it.each(themeNames)` AA assertion (`accentText.test.ts`, `buildDarkPalette.test.ts`, etc.) on the
209
- first run, because the rehue-from-emerald approach inherited an already-AA-clean shape. Full gate
210
- green: `tsc --noEmit` clean, `jest` 791/791 (65 suites), lint clean.
211
- - Dark palette is the plain `buildDarkPalette(light)` derivation (matches `slate`'s pattern) — no
212
- bespoke override needed. The generic derivation's `accentLightnessDelta` cap (which assumes a
213
- white button label) is architecturally incompatible with a true "near-white primary in dark mode"
214
- requirement, but `storefront` doesn't need that — that requirement belongs to mobile's `zinc`.
215
-
216
- ## Wave E — ThemeSwitcher brand-list `MenuList` dark-mode fix (user-reported, blocking)
217
-
218
- `ThemeSwitcher.tsx`'s brand-picker (`BrandMenu` + `MenuVariant`) `MenuList` had no explicit `bg=`,
219
- so in dark mode it fell through to Chakra's `Menu` baseStyle hardcoded `--menu-bg: #fff` (gated
220
- behind `_dark`, same bug class as `NavigationBar`/`ButtonGroupIcon`'s `MenuList` fix above) — a
221
- white dropdown with only the checked item's checkmark-opacity change to distinguish rows, so every
222
- unselected brand name read as near-white-on-white. Fixed with the same pattern: both `bg=` (colors
223
- the list's own box) **and** `sx={{ "--menu-bg": ... }}` (colors the var other pseudo-states read)
224
- on both `MenuList`s, plus an explicit `color=` for the item text (was inheriting ambient
225
- `text[900]`, now reads `menuColor` from the same theme-derived palette). New `useSwitcherColors()`
226
- hook centralizes all of `ThemeSwitcher`'s token reads. Verified: `tsc`/lint clean, all 63 existing
227
- `Theme/provider` tests still pass (no behavior regression, dark-mode-only fix).
228
-
229
- ## Wave F — 9th brand (`zinc`), ported from the mobile design library's shadcn clone
230
-
231
- User request: "add zinc theme exactly same as mobile," then "both mobile and web's zinc theme
232
- should me similar to shadcn theme as close as possible" — so the goal is maximum fidelity to
233
- mobile's `zinc` (itself "the shadcn look"), adapted only where web's own invariants require it.
234
-
235
- - Added `brands/zinc/palette.{light,dark}.ts`, registered in `types.ts` (`ThemeName`),
236
- `brands/index.ts`, `Theme/index.ts` (`ThemesList`/`brandThemes`), and
237
- `provider/colorModeStorage.ts`'s `VALID_BRANDS` allowlist — same 4-file wiring as `storefront`
238
- (Wave B).
239
- - **Light palette**: ported verbatim from `Mobile-Components/src/theme/tokens/brands/zinc/
240
- palette.light.ts` — no web-side changes needed, passed every existing AA sweep unmodified.
241
- - **Dark palette — INVERTS the primary**, unlike every other brand: the filled button is
242
- near-white (`#e4e4e7`) carrying a near-black label (`#18181b`, 13.96:1), the opposite of every
243
- other brand's "lifted-but-still-dark" dark primary. `primary`/`secondary`/the numeric
244
- `background` ramp/`text`/`header`/`gray`/`border`/`boxborder`/`placeholder`/`disabled`/`table`
245
- are pinned as literals ported verbatim from mobile to preserve the authentic shadcn look;
246
- `accentText` is recomputed against the overridden `primary` (not spread from the generic
247
- derivation, which would be stale).
248
- - **`backgroundColor` (named surfaces) and `sidebar` intentionally do NOT port mobile's literal
249
- values** — the one deliberate deviation from "exactly same as mobile," found by running zinc
250
- through web's existing `it.each(themeNames)` test sweeps:
251
- - Mobile's zinc dark `backgroundColor` maps its 12 named surfaces onto only 5 distinct hexes
252
- (e.g. `quaternary`/`medium`/`neutral` are all `#18181b`), which fails web's
253
- `darkSurfaces.test.ts` invariant that every named surface is a visually distinct elevation
254
- step (`ALIASED_SURFACES = ["light","tertiary"]` is the only sanctioned exception, shared by
255
- every brand). Retuning each collision by hand would be arbitrary; instead `backgroundColor`
256
- falls through to `...derived` (the same generic `buildDarkPalette` staircase every other
257
- brand gets) — zinc's hue (~240°, near-zero saturation) survives the derivation as a
258
- visually-identical cool neutral, just with distinct steps.
259
- - Mobile's zinc dark `sidebar` is separately tuned from its light `sidebar` — but every web
260
- brand's dark `sidebar` is identical to its light `sidebar` (`buildDarkPalette.ts`: "sidebar is
261
- already near-black in light mode, so it needs no inversion"), an invariant the SideBar
262
- dark-mode accent fix (this repo, same branch) depends on. `sidebar` falls through to
263
- `derived.sidebar` instead, matching every other brand.
264
- - **Fixed 3 test assertions that hardcoded a white filled-button label**, a bar only zinc's
265
- inverted primary fails (every other brand's dark primary still carries a white label, so this
266
- was never exercised before): `accentText.test.ts` ("dark filled-button label never regresses
267
- below its light-mode contrast") and `buildDarkPalette.test.ts` (2 assertions: "never lifts the
268
- accent past what light theme already ships" + "keeps solid-button labels readable against the
269
- accent fill"). All 3 now check via `onFilled(fill, white, black)` — whichever ink clears AA —
270
- instead of assuming white specifically, which is the correct brand-agnostic contract (the same
271
- one components already use) and a strictly more correct check, not a loosened one.
272
- - **Fixed a pre-existing bug in `ButtonGroupIcon.tsx`'s gradient variant** (2 spots, both hardcoded
273
- `theme.colors.white` for the label), independent of zinc but only caught because zinc's near-
274
- white gradient stops (originally `{from:"#fafafa", to:"#a1a1aa"}`) make the failure visible —
275
- same bug class already fixed elsewhere per `Button.styles.ts`'s own comment ("was a hardcoded
276
- `theme.colors.white` — fails AA for any colorScheme whose [500] doesn't clear white contrast").
277
- Now uses `onGradient(from, to, white, black)`, matching the established pattern.
278
- - Full gate green: `tsc --noEmit` clean, lint clean, `jest` 902/902 (72 suites, up from 869/72 pre-
279
- zinc — 33 new tests from the added `zinc` sweep, zero regressions).
280
-
281
- **2026-07-18 — dark primary corrected to shadcn's actual value.** The original port used `#fafafa`
282
- for the dark-mode filled primary, approximated as "near-white" rather than checked against shadcn's
283
- real registry. Fetched shadcn's live zinc theme (`ui.shadcn.com/r/colors/zinc.json`, OKLCH tokens)
284
- and converted precisely: shadcn's dark `--primary` is `oklch(0.92 0.004 286.32)` → `#e4e4e7`
285
- (zinc-200), one shade dimmer than pure white — `#fafafa` is actually shadcn's `--foreground`
286
- (default dark-mode body text), not `--primary`. Updated `PRIMARY_500` and the dependent
287
- `gradient.from` (now references the constant instead of a duplicated literal) in both this repo and
288
- Mobile-Components; `accentText`/`boxShadow.primary` recompute automatically since they already
289
- derive from `PRIMARY_500` rather than being spread from the generic derivation. Light mode's
290
- primary (`#18181b`) already matched shadcn's `--primary` exactly — no change there. Verified every
291
- other light/dark role against the same live registry (`background`, `card`, `muted`/`secondary`/
292
- `accent`, `border`/`input`, `muted-foreground`) — all already matched shadcn within rounding.
293
- `fg.default`/`text[500]` (light `#18181b` vs shadcn `--foreground` `#09090b`) and the dark `bg.surface`
294
- elevation step (`#0e0e11` vs shadcn's card `#18181b`) were deliberately left as-is: both are
295
- shared-shape/shared-role values that would require restructuring the 10-step ramp or the
296
- cross-brand `roles/bg.surface` mapping, not a zinc-only anchor swap — out of scope for a
297
- change scoped to "don't break anything."
298
-
299
- ## Known gaps
300
-
301
- - `KanbanBoard.tsx` uses `var(--chakra-colors-gray-300)`, but `cssVarPrefix` is `"ck"` — that
302
- variable has never resolved (pre-existing; out of scope for the dark-mode task).
303
- - `backgroundColor.muted`/`accent`/`tertiary`/`quaternary`/etc. are **not** covered by the
304
- `gray[500]` retune above — 0-1 live usages in the whole codebase, and the one live
305
- `backgroundColor.muted` usage pairs with `gray[600]` text, not `gray[500]`. Intentionally
306
- deferred, not fixed.
307
- - **Found during Wave D live re-verification, NOT fixed (outside the QA report's scope, flagging
308
- for a follow-up pass):** the SideBar's notification-count badge ("10") measures ≈1.2-1.6:1
309
- against its translucent primary-tinted pill background — fails badly. The playground's own
310
- `/header` demo bar's raw-Chakra "Logout" ghost button measures ≈3.5:1 — same root cause as the
311
- already-documented Header Bug B ("Login" button, layout-navigation MODULE.md): a raw Chakra
312
- `Button` picking up the library's ghost-variant ink tuned for the page canvas, not Header's own
313
- dark bar. Neither was in the QA report or its established follow-up patterns, so left untouched
314
- rather than silently expanding this pass's scope.
@@ -1,17 +0,0 @@
1
- # Types & Exports
2
-
3
- ## Purpose
4
-
5
- Public API surface — semver-sensitive.
6
-
7
- ## Key paths
8
-
9
- - `src/index.ts` (~80 value exports + typed Props groups for UserDetails, RolesPermission, CustomModulesTable, SignInActivityTable, OrganizationDetails)
10
- - `src/types/`
11
- - `src/withTheme.tsx`
12
-
13
- ## Key rules
14
-
15
- - Every public component must be exported here
16
- - Breaking export changes require major version bump
17
- - Run `npm run build` after export changes
@@ -1,50 +0,0 @@
1
- # Utility UI
2
-
3
- ## Purpose
4
-
5
- Generic standalone UI helpers: CopyButton, ScrollToTop, LazyWrapper, MoreItems, EmptyState, PdfViewer, FilePreview, FieldSelectModal, ProfilePhotoViewer, StageProgress.
6
-
7
- ## Key paths
8
-
9
- - `src/Components/CopyButton/`, `ScrollToTop/`, `LazyWrapper/`, `MoreItems/`, `EmptyState/`, `PdfViewer/`, `FilePreview/`, `FieldSelectModal/`, `ProfilePhotoViewer/`, `StageProgress/`
10
-
11
- ## Key rules
12
-
13
- - FilePreview also exports `FilePreviewTrigger`; StageProgress also exports `StageItem` (StepperStage is internal)
14
- - LazyWrapper wraps lazy/Suspense loading; ScrollToTop is a scroll-position helper — keep them framework-agnostic (props in, events out)
15
- - Single-file components (CopyButton, ScrollToTop, LazyWrapper, PdfViewer, FieldSelectModal) have no colocated Props file — types are inline
16
-
17
- ## Dark mode
18
-
19
- CopyButton, EmptyState, FieldSelectModal, FilePreview, LazyWrapper, MoreItems, PdfViewer,
20
- ProfilePhotoViewer and StageProgress take their colors from `useCustomTheme()` or from Chakra scale
21
- tokens (FilePreviewTrigger's `bg="gray.100"`) — both resolve against the swapped palette. The `#…` literals
22
- left in FilePreview / StageProgressProps are `??` fallbacks behind optional token reads — never live
23
- colors. `blackAlpha.*` scrims are deliberate: a scrim stays black in both modes.
24
-
25
- - **Portalled overlay surfaces must pin their own `bg`.** Chakra drives Modal/Popover panels off its
26
- own default (`colors.white`, or `gray.700` under `_dark` — a *light* grey in our derived dark
27
- palettes), which does not track the swapped palette. FieldSelectModal, FilePreview and MoreItems
28
- each set `bg={theme.colors.background[50]}`; MoreItems' `PopoverArrow` needs its own `bg` too
29
- (that prop is what sets `--popper-arrow-bg`).
30
- - StageProgress colors resolve through `resolveStagePalette(theme, colorScheme)` in
31
- `StageProgressProps.tsx` — StageItem and StepperStage share it, so add a stage color there, not in
32
- a component. Its `onStrong` (label on a filled stage) is now `onFilled(strong, white, black)` —
33
- picks whichever of white/black clears AA against that scheme's actual `strong` rung, instead of
34
- assuming white always works; StepperStage's *unfilled* circle still uses `background[50]` because
35
- that one is a surface.
36
- - LazyWrapper's default spinner lives in a `DefaultFallback` subcomponent — `useCustomTheme()` is a
37
- hook, so it cannot be called from the plain `fallback` node.
38
-
39
- ### WCAG-contrast fixes (this pass)
40
-
41
- - **CopyButton "menu-item" ink**: `accent` now resolves via `accentTextOnCanvas(theme.colors.primary,
42
- theme.colors.backgroundColor.main)` instead of raw `primary[500]` — `primary[500]` is tuned for a
43
- label *on* a filled button, not ink read directly off the canvas, and was failing AA (as low as
44
- 4.07 measured) in 5 of 7 brands in dark mode.
45
- - **MoreItems popover item label**: reads `gray[500]` (the library's verified muted-text token) in
46
- place of a locally-picked, non-standard rung.
47
- - **Control-boundary borders** (WCAG 1.4.11, needs >=3.0 against any named surface up to `muted`)
48
- bumped to `boxborder[800]`: CopyButton's "button"-variant border (was raw `gray[200]`) and
49
- ProfilePhotoViewer's edit-icon border (was `boxborder[300]`) — both render as an actual control
50
- boundary, not decoration, so they need the stronger rung.
@@ -1,35 +0,0 @@
1
- # Utils & Hooks
2
-
3
- ## Purpose
4
-
5
- Shared utilities and hooks: debounce, table helpers, preferences, ref merging,
6
- truncation detection.
7
-
8
- ## Key paths
9
-
10
- - `src/Utils/table.ts`, `src/Utils/mergeRefs.ts`, `src/Hooks/usePreferences.ts`,
11
- `src/Hooks/useIsTruncated.ts`, `src/services/feedback.ts`
12
-
13
- ## Key rules
14
-
15
- - `debounce` exported from index.ts
16
- - **`useIsTruncated(content?, enabled?)`** (exported) — returns `{ ref, isTruncated }`;
17
- attach `ref` to a clamped element to detect real overflow (`scrollWidth/Height`
18
- vs `clientWidth/Height`, single- and multi-line). Re-measures on mount, element
19
- resize (`ResizeObserver`), and `content` change — never on hover/scroll. Pass
20
- `enabled=false` to make it fully inert. Powers `ToolTip overflowOnly` (see
21
- `overlays`).
22
- - **`mergeRefs(...refs)`** (internal) — combine a caller ref with an injected one
23
- when cloning an element.
24
-
25
- ## Recent changes
26
-
27
- - **`table.ts` — AA-safe `onSolid` ink.** `TablePaletteColor` gained an optional
28
- `onSolid` field; `buildTablePalette` and `pickTableColor` now compute it via
29
- `onFilled()` (`Theme/tokens/builders/accentText.ts`) against the theme's
30
- `white`/`black`, instead of assuming a fixed ink color. `pickTableColor` gained
31
- an optional trailing `theme` param to supply this — both additions are
32
- backward-compatible; existing callers without `theme` still work (fall back to
33
- `#FFFFFF`/`#000000`). `table.test.ts` updated to assert the `onFilled()` math,
34
- e.g. `#8B3FC8` clears white at 5.765 (onSolid stays white) while `#ff0000`
35
- fails white at 3.998 and falls back to black at 5.252.
@@ -1,64 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Local status line only — never sent to the model. See .cursor/TASK-SETUP.md
3
- set -euo pipefail
4
-
5
- STATE_FILE="${HOME}/.cursor/pixelize-skill-session-state.json"
6
-
7
- payload=$(cat)
8
- dir=$(echo "$payload" | jq -r ".cwd // .workspace.current_dir // empty")
9
- session_id=$(echo "$payload" | jq -r ".session_id // empty")
10
- base=$(basename "$dir")
11
-
12
- show_no_skill_warning=false
13
- if [[ -n "$session_id" && -f "$STATE_FILE" ]]; then
14
- if jq -e --arg id "$session_id" '.[$id].chatting_without_skill == true' "$STATE_FILE" >/dev/null 2>&1; then
15
- show_no_skill_warning=true
16
- fi
17
- fi
18
-
19
- case "$base" in
20
- account-frontend|account-service)
21
- line1="/ → task (Account FE + BE)"
22
- line2=""
23
- ;;
24
- crm-frontend|crm-service)
25
- line1="/ → task (this repo)"
26
- line2="/ → crm-task (CRM FE + BE)"
27
- ;;
28
- social-frontend|social-service)
29
- line1="/ → task (this repo)"
30
- line2="/ → social-task (Social FE + BE)"
31
- ;;
32
- tickets-frontend)
33
- line1="/ → task (this repo)"
34
- line2="/ → tickets-task"
35
- ;;
36
- crm-mobile)
37
- line1="/ → task (this repo)"
38
- line2="/ → crm-mobile-task"
39
- ;;
40
- Micro-Components)
41
- line1="/ → task (this repo)"
42
- line2="/ → design-task"
43
- ;;
44
- hrms)
45
- line1="/ → task (this repo)"
46
- line2="/ → hrms-task (HRMS FE + BE)"
47
- ;;
48
- *)
49
- line1="Open a Pixelize repo root for / → task"
50
- line2=""
51
- ;;
52
- esac
53
-
54
- if [[ "$show_no_skill_warning" == "true" ]]; then
55
- echo -e "\033[1;33m\033[7m ⚠ CHATTING WITHOUT TASK SKILL — use / menu ⚠ \033[0m"
56
- echo -e "\033[1;33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
57
- fi
58
-
59
- echo -e "\033[1;33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
60
- echo -e "\033[1;33m FEATURE WORK → $line1\033[0m"
61
- if [ -n "$line2" ]; then
62
- echo -e "\033[1;33m Full pipeline → $line2\033[0m"
63
- fi
64
- echo -e "\033[1;33m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\033[0m"
File without changes
@@ -1,12 +0,0 @@
1
- # Fix Kanban collapsed column reset on drag
2
-
3
- ## Problem
4
- `collapsedColumns` is re-hydrated from stale `kanbanPreferencesJson` whenever `mergedColumns` changes (e.g. after drag when parent updates `data`).
5
-
6
- ## Solution
7
- 1. Hydrate `collapsedColumns` from preferences **once** (when prefs load and columns exist).
8
- 2. On `mergedColumns` change, only **prune** keys for removed columns — never re-apply saved prefs.
9
-
10
- ## Files
11
- - `src/Components/KanbanBoard/KanbanBoard.tsx`
12
- - `src/Components/KanbanBoard/KanbanBoard.test.tsx`
@@ -1,77 +0,0 @@
1
-
2
- ---
3
-
4
- # RESUME POINT — paused 2026-07-16 ~12:50, user resuming in ~1hr
5
-
6
- ## State: SAFE TO PAUSE
7
- Working tree is green: `tsc` 0, `lint` clean, **679/679 tests**, `build` 0.
8
- Nothing committed yet. Branch `feature/theme-tokens-dark-mode`. Vite dev server may still be on :5173.
9
-
10
- ## Scope decision (user answered popup — BINDING)
11
- 1. **"Full WCAG + polish now (light WILL change)"** — the earlier "never touch light / don't affect
12
- consumers" constraint is now **RELEASED** for visual changes. API compatibility still absolute
13
- (`src/index.publicApi.test.ts` must stay green). Light-mode *pixels* may change; consumers need
14
- no code edits.
15
- 2. **shadcn theme = exact zinc/slate clone** — match real shadcn default tokens (zinc/slate
16
- neutrals, near-black primary in light, near-white primary in dark, minimal color).
17
-
18
- ## What is DONE
19
- - Portable `Theme/tokens/**` (pure, no Chakra/React/CSS) + `Theme/chakra/**` web binding.
20
- - 7 brands x light+dark; `PixelizeThemeProvider` (defaults `system`) + `useThemeMode` + `ThemeSwitcher`.
21
- - 29 families migrated hex->tokens. MODULE.md doc-sync done for 12 domains.
22
- - Fixed already: `accentText` token; Button outline/ghost/link on-canvas text; ghost hover tint;
23
- dark `gray[500]` ramp L48->L52.
24
-
25
- ## THE ROOT CAUSE (next thing to fix — Wave A)
26
- `liftScale()` in `tokens/builders/buildDarkPalette.ts` adds a lightness delta to EVERY rung, so for
27
- **brand (primary/secondary/tertiary) and semantic** scales in dark:
28
- - `[50]`/`[100]` stay near-white (lum ~0.907) -> used as tint chips/avatars/hover => **17 pages
29
- render light surfaces on the dark canvas** (this is the broken Accordion the user screenshotted).
30
- - `[600]`+ stay DARKER than `[500]` -> but components use `primary[600]` as **text**
31
- (e.g. `Accordion.tsx:90`) => dark-on-dark, contrast **1.34**.
32
- - Utility hues (gray/red/green/blue/...) are `reverseScale`d and are CORRECT already.
33
-
34
- **Fix:** give brand+semantic a proper dark ramp — monotonic **dark->light** across 50->900, with
35
- `[500]` PINNED to the adaptive white-label-safe accent (`accentLightnessDelta`, do not change it).
36
- Proposed targets (verify empirically): 50:12, 100:16, 200:22, 300:32, 400:44, 500:<accent>,
37
- 600:67, 700:76, 800:85, 900:93.
38
-
39
- **Cascade (Wave A2):** flipping the ramp breaks `Button.styles.ts` `solid._hover: bg=[600]` /
40
- `_active: bg=[700]` — those become LIGHT, so the white label fails. Semantics should be "one step
41
- darker" per mode: light uses `[600]`/`[700]`, dark must use `[400]`/`[300]`. `onCanvasText` and
42
- `onCanvasHoverBg` helpers already exist in `Button.styles.ts` — extend that pattern.
43
-
44
- **Obsolete test:** `Button.styles.test.ts` "light mode is untouched" pins light to `primary[500]`.
45
- The user has now approved light changes, so that test must be REWRITTEN (not deleted) to assert the
46
- new intended light values.
47
-
48
- ## Verified audit numbers (baseline to beat)
49
- Auditor: `scratchpad/audit-all-pages.cjs` (walks all 51 pages; `MODE=Light|Dark`, `ONLY_PAGE=<name>`).
50
- Reports: `scratchpad/shots-all/report.json` (dark), `scratchpad/shots-light/report.json` (light).
51
-
52
- | | DARK | LIGHT |
53
- |------------------------|------|-------|
54
- | failing text signatures | 95 | 118 |
55
- | worst ratio | 1.0 | 1.0 |
56
- | near-invisible (<1.5) | 16 | 6 |
57
- | pages w/ light surface | 17 | n/a |
58
-
59
- - 43 dark failures ALSO fail in light => pre-existing debt.
60
- - **52 dark failures are NEW** across 24 pages => the dark-mode regression to fix.
61
- - Light's 118 are PRE-EXISTING (present on base commit, untouched by this task).
62
-
63
- ## Known, deliberately NOT yet fixed
64
- - `bg={colors.white}` used as a SURFACE in 8 files (never in the 29-family scope because they use a
65
- token, not a hex — a hex-only grep could not see them):
66
- FileUpload:153, Dropdown:197, Reorder:44, Form/FormWrapper:36, Accordion:46,
67
- ProfilePhotoViewer:190, KanbanBoard/AccountCard:54, Header/components/desktopMenu:83
68
- -> should become `colors.background[50]` (identical #ffffff in light, dark-aware).
69
- - `KanbanBoard.tsx:876` uses `var(--chakra-colors-gray-300)` but `cssVarPrefix` is `"ck"` — that var
70
- has NEVER resolved. Pre-existing; unrelated to dark mode.
71
-
72
- ## CI reality (pre-existing, do NOT silently "fix")
73
- `.github/workflows/build.yml` runs `npm run test:coverage` with an 80% global threshold.
74
- **Base commit already fails it** (branches 62.57%). Our branch reads ~42% because
75
- `src/index.publicApi.test.ts` imports the barrel, growing the coverage denominator 101 -> 302 files.
76
- That is the TRUE coverage finally being measured, not a regression. Lowering the threshold =
77
- weakening a safety guard => user decision, not ours.