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,155 +0,0 @@
1
- # Theme refactor → portable tokens + full dark mode + exported theme switcher
2
-
3
- ## Complexity
4
- hard
5
-
6
- ## Goal
7
- 1. **Restructure theme into a pure, platform-agnostic token layer** (zero Chakra/React/CSS imports)
8
- so the mobile design library can copy-paste it. Web-only Chakra binding lives separately.
9
- 2. **Full dark mode** across every component (derived from each brand's existing colors).
10
- 3. **Export** `PixelizeThemeProvider` + `useThemeMode()` + `<ThemeSwitcher/>` for consuming apps.
11
- 4. Refactor/improve along the way (dedupe 7 identical brand theme files, types, a11y contrast).
12
-
13
- ## Constraints (non-negotiable)
14
- - **Backward compatible — zero consumer rework.** No removed/renamed public exports, no changed
15
- prop signatures. `pixelize-design-library` stays **2.x**.
16
- - **Light mode must stay pixel-identical.** Dark mode is purely additive.
17
- - **Keep existing internal import paths as re-export shims** — `Theme/useCustomTheme` (91 importers)
18
- and `Theme/themeProps` (~20 importers) must not move.
19
- - Purity boundary: `Theme/tokens/**` must never import Chakra, React, or CSS.
20
- (`fonts.ts` CSS side-effect + `common.ts` `cssVarPrefix` are web-only → stay in web layer.)
21
-
22
- ## Phase checklist
23
- - [x] 1. Plan
24
- - [ ] 2a. Wave 0a — token restructure (serial)
25
- - [ ] 2b. Wave 0b — dark palettes + provider/hook/switcher (serial)
26
- - [ ] 2c. Wave 1 — component hex migration (PARALLEL, 17 disjoint families)
27
- - [ ] 3a/3b. Tests
28
- - [ ] 3d. Doc sync
29
- - [ ] 3c. PR readiness (lint + typecheck + test + build)
30
- - [ ] 4. Review gate
31
- - [ ] 5. Commit
32
-
33
- ## Baseline
34
- - `npx tsc --noEmit` → **exit 0** (green before any change).
35
- - Branch: `develop`, clean tree. Package v2.3.21.
36
-
37
- ---
38
-
39
- ## Architecture — the linchpin
40
-
41
- Components read **resolved hex strings** via `useCustomTheme()` and interpolate them:
42
- ```tsx
43
- border={`0.063rem solid ${theme.colors.border?.[500]}`}
44
- ```
45
- Chakra `semanticTokens` **cannot** work here (they only resolve as style-prop token names).
46
-
47
- **Therefore:** make `useCustomTheme()` **color-mode-aware** — it returns the dark palette when
48
- `colorMode === "dark"`. All **127** token-consuming files then flip to dark with **zero edits**.
49
- Remaining real work = the **22** files that hardcode hex.
50
-
51
- ## Target structure
52
-
53
- ```
54
- src/Theme/
55
- tokens/ ← PURE. zero Chakra/React/CSS. Copy-paste to mobile.
56
- index.ts ← barrel (brands, primitives, builders, types)
57
- types.ts ← PaletteProps, ThemeName, ColorMode
58
- primitives/ ← space, sizes, radii, shadows, zIndices,
59
- breakpoints, lineHeights, letterSpacings, typography
60
- builders/
61
- buildBrandTokens.ts ← moved (already pure)
62
- buildDarkPalette.ts ← NEW: pure light→dark derivation
63
- brands/<brand>/palette.light.ts + palette.dark.ts ← 7 brands
64
- chakra/ ← WEB-ONLY binding
65
- createBrandTheme.ts ← factory replacing 7 duplicated theme.ts
66
- componentStyles.ts ← moved
67
- fonts.web.ts ← CSS side-effect import + typography
68
- provider/ ← NEW
69
- PixelizeThemeProvider.tsx, useThemeMode.ts, ThemeSwitcher.tsx, storage.ts
70
- useCustomTheme.ts ← KEEP PATH, now color-mode-aware
71
- themeProps.ts ← KEEP PATH, re-export shim
72
- index.ts, <Brand>/theme.ts, <Brand>/palette.ts ← KEEP PATHS as shims
73
- ```
74
-
75
- ## Dark palette derivation (my call — "mix of existing theme colours")
76
- Pure `buildDarkPalette(lightPalette)`, applied to all 7 brands — **role-preserving inversion**:
77
- - **Surface/neutral/text/border scales** (`background`, `text`, `header`, `placeholder`, `border`,
78
- `boxborder`, `table.hover`, `disabled`, `gray`): reverse the ramp (50↔900 …) so each index keeps
79
- its semantic role but flips lightness. Because each brand's light ramps are already brand-tinted
80
- (lavender's gray is violet-tinted), reversing yields **brand-tinted dark for free** — no invented hexes.
81
- - **Named surface keys** (`backgroundColor.{main,secondary,…,tableHeader}`): explicit dark anchors;
82
- elevation goes **lighter** in dark (inverse of light mode).
83
- - **Brand/semantic** (`primary`, `secondary`, `tertiary`, `semantic.*`): keep hue; accessible accent
84
- on dark shifts lighter.
85
- - **`boxShadow`**: deepen. **`sidebar`**: already dark in light mode → keep near-identical.
86
- - Verify WCAG AA contrast for text-on-surface pairs.
87
-
88
- ## API contract (FROZEN)
89
- Additive exports from `src/index.ts` — nothing removed:
90
- ```ts
91
- export { PixelizeThemeProvider } from "./Theme/provider/PixelizeThemeProvider";
92
- export { useThemeMode } from "./Theme/provider/useThemeMode";
93
- export { ThemeSwitcher } from "./Theme/provider/ThemeSwitcher";
94
- export type { ColorMode, ThemeName, PaletteProps } from "./Theme/tokens/types";
95
- // unchanged: default withTheme, useCustomTheme, ThemesList, all 73 components
96
- ```
97
- ```ts
98
- type ColorMode = "light" | "dark" | "system";
99
- useThemeMode(): {
100
- mode: ColorMode; // user selection
101
- resolvedMode: "light"|"dark";// after system resolution
102
- setMode(m: ColorMode): void;
103
- toggle(): void;
104
- brand: ThemeName;
105
- setBrand(b: ThemeName): void;
106
- };
107
- <PixelizeThemeProvider brand? defaultMode? storageKey? disablePersistence?>
108
- <ThemeSwitcher variant?="icon"|"segmented"|"menu" showBrandPicker?=false />
109
- ```
110
- - Persisted to localStorage; SSR-safe (no window access during render).
111
- - `withTheme` keeps working unchanged (delegates to the provider internally).
112
-
113
- ## Wave plan (parallel/serial split)
114
- - **Wave 0a — SERIAL (orchestrator).** Token restructure + shims. Pure moves, zero behavior change.
115
- Gate: `tsc --noEmit` exit 0.
116
- - **Wave 0b — SERIAL (orchestrator).** `buildDarkPalette`, 7 dark palettes, color-mode-aware
117
- `useCustomTheme`, provider/hook/switcher, componentStyles `_dark`, exports.
118
- Serial because every Wave-1 agent depends on this contract.
119
- - **Wave 1 — PARALLEL (17 disjoint families).** Migrate the 22 hex files → tokens.
120
- *Proof of independence:* each agent owns exactly one `src/Components/<Family>/` folder; the sets are
121
- pairwise disjoint; **no agent touches** `src/index.ts`, `src/Theme/**`, `src/withTheme.tsx`,
122
- `src/App.tsx`, `src/Layout.tsx`, `src/global.css`, or any git/npm command. No new exports needed
123
- (all 22 files are in already-exported components) → shared registry untouched.
124
- - **Wave 2 — SERIAL.** `global.css` dark, playground demo, docs, full verify.
125
-
126
- ## Files — Wave 1 lanes (22 files / 17 families, pairwise disjoint)
127
- | Lane | Family | Files |
128
- |---|---|---|
129
- | 1 | UserDetails | UserDetails.tsx (16), DeactivateConfirmModal.tsx (3) |
130
- | 2 | OrganizationDetails | OrganizationDetails.tsx (16), DeleteOrgModal.tsx (2) |
131
- | 3 | OrgSwitcher | OrgSwitcher.tsx (13), OrgSwitcherProps.tsx (8) |
132
- | 4 | RolesPermission | RolesPermission.tsx (8), DeleteRoleModal.tsx (2) |
133
- | 5 | Toaster | Toaster.tsx (8) |
134
- | 6 | StageProgress | StageProgressProps.tsx (7) |
135
- | 7 | PdfViewer | PdfViewer.tsx (6) |
136
- | 8 | CustomModulesTable | CustomModulesTable.tsx (5), DeleteModuleModal.tsx (2) |
137
- | 9 | CopyButton | CopyButton.tsx (5) |
138
- | 10 | SignInActivityTable | SignInActivityTable.tsx (5) |
139
- | 11 | EmptyState | EmptyState.tsx (4) |
140
- | 12 | FilePreview | FilePreview.tsx (4) |
141
- | 13 | FieldSelectModal | FieldSelectModal.tsx (3) |
142
- | 14 | UpgradeButton | UpgradeButton.tsx (3) |
143
- | 15 | MoreItems | MoreItems.tsx (2) |
144
- | 16 | LazyWrapper | LazyWrapper.tsx (1) |
145
- | 17 | ToolTip | ToolTip.tsx (1) |
146
-
147
- ## Risks
148
- - 38 **test/story** files assert hardcoded hex → may break when components move to tokens. Handled in 3a/3b.
149
- - `Switch.tsx` / `InputSwitch.tsx` already call `useColorModeValue` → will finally activate under the
150
- provider; verify they look right in both modes.
151
- - `Theme/Default/palette` imported directly by 2 DatePicker tests → keep shim path.
152
- - Coverage thresholds are 80% global; new provider/builder code needs tests to hold the gate.
153
-
154
- ## Files-changed manifest
155
- (updated as waves land)
File without changes
package/.cursor/rules DELETED
@@ -1,31 +0,0 @@
1
- ## Session start
2
- - Always read CLAUDE.md before starting any task
3
- - Always read MODULE.md before touching a component family (`.cursor/modules/<domain>/MODULE.md`)
4
- - Read one similar existing component before implementing
5
- - Never invent a new pattern if one already exists
6
-
7
- ## Implementation
8
- - Components live in `src/Components/<Name>/`
9
- - Public API via `src/index.ts` only
10
- - Demo pages in `src/Pages/` for playground — not published
11
- - Never add CRM/app-specific API calls to library components
12
- - Use theme tokens from `src/Theme/` — no hardcoded brand colors
13
- - Add Jest tests for new behavior (`*.test.tsx`)
14
- - Keep changes minimal — no scope creep
15
-
16
- ## Output quality
17
- - Never create placeholder files unless explicitly asked
18
- - Never use fake data, lorem ipsum, example.com, or demo seeds
19
- - Never leave TODO comments — implement fully or report blocked
20
- - Production-ready components with loading/error states where applicable
21
-
22
- ## Branch rules
23
- - Always branch from **develop** — never from main
24
- - Feature work: `feature/<domain>-<short-description>`
25
- - Bug fixes: `fix/<domain>-<short-description>`
26
- - Never commit directly to main
27
-
28
- ## Commit rules
29
- - Never commit without explicit user confirmation
30
- - Never run git push under any condition
31
- - Never add Cursor co-author lines
@@ -1,167 +0,0 @@
1
- ---
2
- name: task
3
- description: >-
4
- Runs the Pixelize Design Library dev pipeline: task-plan → fe-impl → test-create → test-exec → review gate → commit. Use when the user invokes @task, /task, or requests component library delivery.
5
- disable-model-invocation: true
6
- ---
7
-
8
- # Task Pipeline — Pixelize Design Library
9
-
10
- Single library repo **Micro-Components** (`pixelize-design-library`). Module docs: `.cursor/modules/<domain>/MODULE.md`.
11
-
12
- Run phases in order. Do not skip unless user opts out.
13
-
14
- ```
15
- - [ ] 1. Task plan (agent: task-plan)
16
- - [ ] 2. Implementation (agents: fe-impl + be-impl, parallel when both needed)
17
- - [ ] 3a. Test creation (agent: test-create)
18
- - [ ] 3b. Test execution (agent: test-exec)
19
- - [ ] 4. Review gate (orchestrator — show diff, wait for user)
20
- - [ ] 5. Commit (orchestrator only)
21
- ```
22
-
23
- ---
24
-
25
- ## Before Starting
26
-
27
- 1. Read CLAUDE.md
28
- 2. Confirm user goal — feat / fix / refactor / chore
29
- 3. Tell user which phases apply
30
-
31
- ---
32
-
33
- ## Phase 1 — Task Plan
34
-
35
- Agent: task-plan → `.cursor/agents/task-plan.md`
36
-
37
- - Read `.cursor/modules/<domain>/MODULE.md` for touched component families
38
- - Plan saved to `.cursor/plans/current.md`
39
- - If current.md already exists — read it first, user may be resuming
40
-
41
- Gate: do not start phase 2 until plan has concrete tasks.
42
-
43
- ---
44
-
45
- ## Phase 2 — Implementation
46
-
47
- | Plan says | Action |
48
- |-----------|--------|
49
- | Library only | Invoke fe-impl only |
50
- | Both | Rare — fe-impl + test agents |
51
-
52
- Pass `.cursor/plans/current.md` to each agent.
53
-
54
- If blocked mid-task:
55
- - Save progress to `.cursor/plans/blocked/<task-name>.md` with exact blocker details
56
- - Stop pipeline and report to user
57
-
58
- Gate: all required agents must report Done or Blocked before phase 3.
59
-
60
- ---
61
-
62
- ## Phase 3 — Tests
63
-
64
- 3a: test-create → `.cursor/agents/test-create.md`
65
- 3b: test-exec → `.cursor/agents/test-exec.md`
66
-
67
- Jest: `npm test` from repo root.
68
-
69
- Gate: do not proceed to review if tests failed and not explicitly waived by user.
70
-
71
- ---
72
-
73
- ## Phase 4 — Review Gate
74
-
75
- ```bash
76
- git status
77
- git diff
78
- git diff --staged
79
- git log -5 --oneline
80
- ```
81
-
82
- Run git status/diff. STOP and wait for user approval.
83
-
84
- ```
85
- CHANGES READY TO COMMIT
86
-
87
- Backend:
88
- - path/to/file — what changed
89
-
90
- Frontend:
91
- - path/to/component — what changed
92
-
93
- Tests:
94
- - path/to/test — what it covers
95
-
96
- MODULE.md updates:
97
- - path/to/MODULE.md
98
-
99
- Excluded:
100
- - none
101
- ```
102
-
103
- STOP. Wait for: "yes" / "commit" / "looks good" / "go ahead"
104
-
105
-
106
- ## Phase 5 — Commit
107
-
108
- ### Commit message format
109
-
110
- ```
111
- <type>(<module>): <concise imperative title>
112
-
113
- Backend:
114
- - <specific change — file context>
115
-
116
- Frontend:
117
- - <specific change — file context>
118
-
119
- Tests:
120
- - <what is covered and where>
121
-
122
- Config:
123
- - <migrations, registry changes, config updates>
124
- ```
125
-
126
- ### Commit steps
127
-
128
- 1. Scan diff — if .env or secrets found, warn user and ask if they want to include. Commit only on confirmation.
129
- 2. git add relevant files — state any exclusions clearly
130
- 3. git commit using HEREDOC — never add Cursor attribution lines
131
- 4. If Cursor injects co-author lines — amend immediately if unpushed
132
- 5. Verify: git status + git log -1 --format=full
133
- 6. Show commit hash to user
134
- 7. Move `.cursor/plans/current.md` → `.cursor/plans/done/<YYYY-MM-DD>-<title>.md`
135
-
136
- Never run git push under any condition.
137
-
138
- ### Commit safety
139
-
140
- - Never --no-verify unless user explicitly requests
141
- - Never force-push any branch
142
- - Nothing staged → skip commit, report clearly
143
-
144
- ---
145
-
146
- ## Final Report
147
-
148
- | Phase | Status | Notes |
149
- | -------- | -------------- | --------------------------------- |
150
- | 1 Plan | done / skipped | saved to .cursor/plans/current.md |
151
- | 2 Impl | fe / be / both | done / blocked |
152
- | 3 Tests | create / exec | pass / fail / blocked |
153
- | 4 Review | approved | confirmed by user |
154
- | 5 Commit | done / skipped | hash if committed |
155
-
156
- ---
157
-
158
- ## User Opt-outs
159
-
160
- | User says | Effect |
161
- | ------------- | ----------------------------------------- |
162
- | "plan only" | Stop after phase 1 |
163
- | "no tests" | Skip phase 3 — confirm with user first |
164
- | "no commit" | Stop after phase 4 review |
165
- | "commit only" | Phase 4+5 only — still show diff and wait |
166
- | "skip review" | Go straight to commit — confirm with user |
167
-
package/CLAUDE.md DELETED
@@ -1,148 +0,0 @@
1
- # Pixelize Design Library — Agent Guide
2
-
3
- Rules for AI assistants working in **Micro-Components** (npm: `pixelize-design-library`).
4
-
5
- ## 1. App name and purpose
6
-
7
- **Pixelize Design Library** — shared React UI component library and theme system for all Pixelize frontends. Published to npm; local Vite playground demos components in `src/Pages/`.
8
-
9
- ## 2. Stack
10
-
11
- | Layer | Technology | Version |
12
- | ------------- | ----------------------------------- | -------------- |
13
- | Framework | React + TypeScript | 18.3.1 / 5.9.3 |
14
- | UI base | Chakra UI + Emotion + Framer Motion | 2.8.2 |
15
- | Build | `tsc` → `dist/` + CSS copy | — |
16
- | Dev | Vite playground | 6.2.0 |
17
- | Styling | Tailwind + global CSS | 3.4.17 |
18
- | Tests | Jest + Testing Library | 29.7.0 |
19
- | Package | `pixelize-design-library` | 2.2.x |
20
-
21
- Not a monorepo — single package, one `package.json`.
22
-
23
- ## 3. Repo relationship
24
-
25
- | Repo / package | Role |
26
- | --------------------------- | ------------------------------------------------- |
27
- | **Micro-Components** (here) | Source of `pixelize-design-library` npm package |
28
- | **crm-frontend** | Consumer — `npm run pixelize` to update |
29
- | **account-frontend** | Consumer |
30
- | **social-frontend** | Consumer |
31
- | **tickets-frontend** | Consumer |
32
- | **crm-mobile** | Consumer (native-base overlap — check mobile) |
33
- | **pixelize-authenticator** | Companion auth UI package (separate repo) |
34
-
35
- No backend API in this repo. Demo pages may call dev APIs for playground only.
36
-
37
- ## 4. Folder structure (2 levels)
38
-
39
- ```
40
- Micro-Components/
41
- ├── package.json, tsconfig.json, vite.config.ts
42
- ├── src/
43
- │ ├── index.ts public exports (~110)
44
- │ ├── withTheme.tsx legacy HOC wrapper (light-only, unchanged)
45
- │ ├── Components/ 73 component families
46
- │ ├── Theme/
47
- │ │ ├── tokens/ PURE, platform-agnostic — shared with the mobile lib
48
- │ │ │ ├── types.ts PaletteProps, ThemeName, ColorMode
49
- │ │ │ ├── primitives/ space, sizes, radii, shadows, typography, …
50
- │ │ │ ├── builders/ buildDarkPalette, buildBrandTokens, color math
51
- │ │ │ └── brands/<brand>/palette.light.ts + palette.dark.ts (7 brands)
52
- │ │ ├── chakra/ WEB-ONLY binding (createBrandTheme, componentStyles, fonts)
53
- │ │ ├── provider/ PixelizeThemeProvider, useThemeMode, ThemeSwitcher
54
- │ │ ├── useCustomTheme.ts hook used by ~127 components
55
- │ │ └── index.ts ThemesList (light) + brandThemes (light+dark)
56
- │ ├── Pages/ 49 Vite demo/playground pages
57
- │ ├── Utils/, Hooks/, services/, types/
58
- │ └── App.tsx, Layout.tsx playground shell
59
- ├── dist/ publish output (gitignored)
60
- └── .cursor/modules/ MODULE.md per component domain (22 domains)
61
- ```
62
-
63
- ### Theme rules (read before touching color)
64
-
65
- - **`Theme/tokens/**` must never import Chakra, React, or CSS.** It is copy-paste portable to the
66
- mobile design library; one CSS/Chakra import breaks that. Web-only concerns (the Inter font-face
67
- import, Chakra's `cssVarPrefix`) live in `Theme/chakra/`.
68
- - **Dark mode works by swapping which palette the theme carries** — not via `_dark`/`semanticTokens`.
69
- `componentStyles` variants are functions of `({ theme })` and `useCustomTheme()` reads
70
- `theme.colors`, so both follow the active palette automatically.
71
- - **Never hardcode a hex in a component.** Read tokens from `useCustomTheme()`, or the component
72
- will be stuck in light mode.
73
- - **`colors.white` is a foreground token** (the label on a filled button) and stays white in dark.
74
- For a white *surface* use `colors.background[50]` — identical `#ffffff` in light, dark-aware.
75
- - Dark palettes are **derived** (`buildDarkPalette`) from each brand's own light palette, so brand
76
- hue carries through. Override per brand in that brand's `palette.dark.ts` if ever needed.
77
- - `withTheme` stays **light-only** so existing apps are visually unchanged; dark is opt-in via
78
- `PixelizeThemeProvider` (defaults to `system`).
79
-
80
- ## 5. Dev commands
81
-
82
- ```bash
83
- npm start # Vite playground
84
- npm run build # tsc + copy CSS → dist/
85
- npm test # Jest
86
- npm run test:watch
87
- npm run remove # strip dev artifacts from dist before publish
88
- npm run package # version patch + build + publish
89
- ```
90
-
91
- ## 6. Module / component pattern
92
-
93
- Follow the **Table** or **KanbanBoard** pattern for complex components:
94
-
95
- | Step | Path |
96
- | ---- | ---- |
97
- | Component | `src/Components/<Name>/` |
98
- | Subcomponents | `src/Components/<Name>/Components/` or nested folders |
99
- | Props/types | `<Name>Props.ts` or colocated types |
100
- | Tests | `*.test.tsx` next to component |
101
- | Stories | `*.stories.tsx` (where present) |
102
- | Demo page | `src/Pages/<name>.tsx` |
103
- | Public export | add to `src/index.ts` |
104
- | Module doc | `.cursor/modules/<domain>/MODULE.md` |
105
-
106
- Read `.cursor/modules/<domain>/MODULE.md` before touching a component family.
107
-
108
- ## 7. Publishing integration
109
-
110
- - **Exports:** every public component must be exported from `src/index.ts`
111
- - **Peers:** React 18, Chakra, Emotion — consumers install alongside library
112
- - **Build:** `npm run build` compiles to `dist/`; never edit `dist/` directly
113
- - **Version:** patch releases via `npm run package`; CI publishes on merge to `develop`
114
- - **Breaking changes:** require version bump + consumer update in frontends
115
-
116
- ## 8. Checklist — adding a new component
117
-
118
- 1. Read similar component + `.cursor/modules/<domain>/MODULE.md`
119
- 2. Create `src/Components/<Name>/` with component + props
120
- 3. Add demo page in `src/Pages/` if needed
121
- 4. Export from `src/index.ts`
122
- 5. Add Jest tests (`*.test.tsx`)
123
- 6. Update `.cursor/modules/<domain>/MODULE.md`
124
- 7. Verify playground: `npm start`
125
- 8. After merge to develop: consumers run `npm run pixelize` in their frontend
126
-
127
- ## 9. Do
128
-
129
- - Match existing Chakra + design token patterns in `src/Theme/`
130
- - Keep components framework-agnostic where possible (props in, events out)
131
- - Add tests for new behavior
132
- - Use `useCustomTheme` / theme tokens — no hardcoded brand colors
133
- - Branch from **feature/cursor-ai-setup** or **develop**
134
-
135
- ## 10. Don't
136
-
137
- - Don't add app-specific business logic (CRM entities, API calls) to library components
138
- - Don't break existing exports without semver major bump
139
- - Don't edit `dist/` — always change `src/` and rebuild
140
- - Don't skip `index.ts` export for public components
141
- - Don't introduce a second component pattern without team agreement
142
- - Don't commit npm tokens or `.env` secrets
143
-
144
- ## Task pipeline
145
-
146
- - **Feature work:** invoke via **`/` menu → `task`** (not by typing `/task` in the message).
147
- - Cross-repo: **`/ → design-task**`.
148
- - One-time status line + hook details: [.cursor/TASK-SETUP.md](.cursor/TASK-SETUP.md).
@@ -1,8 +0,0 @@
1
- /**
2
- * Stub for CSS/SCSS imports under Jest (see `moduleNameMapper` in package.json).
3
- *
4
- * jest.moduleNameMapper has always referenced this file, but it did not exist — no test
5
- * imported a stylesheet (even transitively) until the public-API guard began importing
6
- * `src/index.ts`, which pulls in the Inter font-face CSS via the theme.
7
- */
8
- module.exports = {};