pixelize-design-library 2.4.1-beta.1 → 2.4.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Assets/defaultLogo.d.ts.map +1 -1
- package/dist/Assets/defaultLogo.js +1 -3
- package/dist/Assets/defaultLogo.tsx +4 -8
- package/dist/Components/Accordion/accordionColors.d.ts.map +1 -1
- package/dist/Components/Accordion/accordionColors.js +17 -3
- package/dist/Components/Checkbox/Checkbox.styles.d.ts.map +1 -1
- package/dist/Components/Checkbox/Checkbox.styles.js +13 -2
- package/dist/Components/CustomModulesTable/EditModuleModal.d.ts.map +1 -1
- package/dist/Components/CustomModulesTable/EditModuleModal.js +5 -1
- package/dist/Components/DatePicker/CalendarPanel.d.ts.map +1 -1
- package/dist/Components/DatePicker/CalendarPanel.js +15 -4
- package/dist/Components/DatePicker/SingleDatePicker.d.ts.map +1 -1
- package/dist/Components/DatePicker/SingleDatePicker.js +11 -9
- package/dist/Components/DatePicker/TimeOnlyPicker.js +2 -2
- package/dist/Components/DatePicker/TimePicker.d.ts.map +1 -1
- package/dist/Components/DatePicker/TimePicker.js +14 -2
- package/dist/Components/DatePicker/TimePickerInput.d.ts.map +1 -1
- package/dist/Components/DatePicker/TimePickerInput.js +9 -1
- package/dist/Components/Editor/joditThemeVars.d.ts.map +1 -1
- package/dist/Components/Editor/joditThemeVars.js +9 -0
- package/dist/Components/FilePreview/FilePreview.d.ts.map +1 -1
- package/dist/Components/FilePreview/FilePreview.js +3 -1
- package/dist/Components/FileUploader/FileUploader.js +2 -2
- package/dist/Components/FilterSidebar/FilterSidebar.js +1 -1
- package/dist/Components/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/dist/Components/NavigationBar/NavigationBar.js +10 -6
- package/dist/Components/OrgSwitcher/OrgSwitcher.d.ts.map +1 -1
- package/dist/Components/OrgSwitcher/OrgSwitcher.js +22 -3
- package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts +1 -0
- package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts.map +1 -1
- package/dist/Components/OrgSwitcher/OrgSwitcherProps.js +3 -3
- package/dist/Components/OrganizationDetails/CreateOrgModal.js +6 -4
- package/dist/Components/OrganizationDetails/OrganizationDetails.d.ts.map +1 -1
- package/dist/Components/OrganizationDetails/OrganizationDetails.js +55 -7
- package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts +24 -14
- package/dist/Components/OrganizationDetails/OrganizationDetailsProps.d.ts.map +1 -1
- package/dist/Components/PlanPill/PlanPill.d.ts +5 -0
- package/dist/Components/PlanPill/PlanPill.d.ts.map +1 -0
- package/dist/Components/PlanPill/PlanPill.js +41 -0
- package/dist/Components/PlanPill/PlanPillProps.d.ts +28 -0
- package/dist/Components/PlanPill/PlanPillProps.d.ts.map +1 -0
- package/dist/Components/PlanPill/PlanPillProps.js +2 -0
- package/dist/Components/Search/Search.d.ts.map +1 -1
- package/dist/Components/Search/Search.js +4 -2
- package/dist/Components/Select/Select.styles.d.ts.map +1 -1
- package/dist/Components/Select/Select.styles.js +29 -20
- package/dist/Components/SelectSearch/SelectSearch.js +1 -1
- package/dist/Components/SelectV2/SelectV2.d.ts +3 -0
- package/dist/Components/SelectV2/SelectV2.d.ts.map +1 -0
- package/dist/Components/SelectV2/SelectV2.js +185 -0
- package/dist/Components/SelectV2/SelectV2Props.d.ts +67 -0
- package/dist/Components/SelectV2/SelectV2Props.d.ts.map +1 -0
- package/dist/Components/SelectV2/SelectV2Props.js +2 -0
- package/dist/Components/SideBar/SecondaryBar.d.ts.map +1 -1
- package/dist/Components/SideBar/SecondaryBar.js +10 -2
- package/dist/Components/SideBar/SideBar.js +2 -2
- package/dist/Components/SideBar/components/MenuItemBox.d.ts.map +1 -1
- package/dist/Components/SideBar/components/MenuItemBox.js +7 -6
- package/dist/Components/Table/components/tableRowHoverStyle.d.ts +9 -8
- package/dist/Components/Table/components/tableRowHoverStyle.d.ts.map +1 -1
- package/dist/Components/Table/components/tableRowHoverStyle.js +12 -12
- package/dist/Components/Table/settings/ManageColumns.js +2 -2
- package/dist/Components/UpgradeButton/UpgradeButton.d.ts.map +1 -1
- package/dist/Components/UpgradeButton/UpgradeButton.js +25 -7
- package/dist/Components/UserDetails/UserDetails.d.ts.map +1 -1
- package/dist/Components/UserDetails/UserDetails.js +5 -2
- package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.js +2 -1
- package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts +2 -2
- package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts.map +1 -1
- package/dist/Components/WorkspaceWindow/WorkspaceWindow.js +25 -4
- package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts +18 -0
- package/dist/Components/WorkspaceWindow/WorkspaceWindowProps.d.ts.map +1 -1
- package/dist/Theme/chakra/Avatar.styles.d.ts +33 -0
- package/dist/Theme/chakra/Avatar.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Avatar.styles.js +28 -0
- package/dist/Theme/chakra/Drawer.styles.d.ts +32 -0
- package/dist/Theme/chakra/Drawer.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Drawer.styles.js +26 -0
- package/dist/Theme/chakra/Menu.styles.d.ts +70 -0
- package/dist/Theme/chakra/Menu.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Menu.styles.js +50 -0
- package/dist/Theme/chakra/Modal.styles.d.ts +32 -0
- package/dist/Theme/chakra/Modal.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Modal.styles.js +26 -0
- package/dist/Theme/chakra/Popover.styles.d.ts +37 -0
- package/dist/Theme/chakra/Popover.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Popover.styles.js +30 -0
- package/dist/Theme/chakra/Slider.styles.d.ts +31 -0
- package/dist/Theme/chakra/Slider.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Slider.styles.js +25 -0
- package/dist/Theme/chakra/Switch.styles.d.ts +31 -0
- package/dist/Theme/chakra/Switch.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Switch.styles.js +24 -0
- package/dist/Theme/chakra/Tabs.styles.d.ts +43 -0
- package/dist/Theme/chakra/Tabs.styles.d.ts.map +1 -0
- package/dist/Theme/chakra/Tabs.styles.js +41 -0
- package/dist/Theme/chakra/componentStyles.d.ts +230 -1
- package/dist/Theme/chakra/componentStyles.d.ts.map +1 -1
- package/dist/Theme/chakra/componentStyles.js +136 -0
- package/dist/Theme/chakra/createBrandTheme.d.ts.map +1 -1
- package/dist/Theme/chakra/createBrandTheme.js +47 -0
- package/dist/Theme/provider/PixelizeThemeProvider.d.ts +11 -1
- package/dist/Theme/provider/PixelizeThemeProvider.d.ts.map +1 -1
- package/dist/Theme/provider/PixelizeThemeProvider.js +35 -2
- package/dist/Theme/provider/ThemeSwitcher.d.ts.map +1 -1
- package/dist/Theme/provider/ThemeSwitcher.js +23 -11
- package/dist/Theme/tokens/brands/index.d.ts.map +1 -1
- package/dist/Theme/tokens/brands/index.js +20 -18
- package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts.map +1 -1
- package/dist/Theme/tokens/brands/zinc/palette.dark.js +4 -2
- package/dist/Theme/tokens/builders/outlineRung.d.ts +35 -0
- package/dist/Theme/tokens/builders/outlineRung.d.ts.map +1 -0
- package/dist/Theme/tokens/builders/outlineRung.js +69 -0
- package/dist/Theme/tokens/builders/statusTone.d.ts +35 -0
- package/dist/Theme/tokens/builders/statusTone.d.ts.map +1 -0
- package/dist/Theme/tokens/builders/statusTone.js +63 -0
- package/dist/Utils/planExpiry.d.ts +19 -0
- package/dist/Utils/planExpiry.d.ts.map +1 -0
- package/dist/Utils/planExpiry.js +61 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -3
- package/package.json +5 -1
- package/.claude/settings.local.json +0 -51
- package/.cursor/TASK-SETUP.md +0 -43
- package/.cursor/agents/be-impl.md +0 -37
- package/.cursor/agents/fe-impl.md +0 -39
- package/.cursor/agents/task-plan.md +0 -56
- package/.cursor/agents/test-create.md +0 -31
- package/.cursor/agents/test-exec.md +0 -26
- package/.cursor/hooks/task-hint.env +0 -1
- package/.cursor/hooks/task-skill-nudge.sh +0 -71
- package/.cursor/hooks/task-slash-guard.sh +0 -31
- package/.cursor/hooks.json +0 -13
- package/.cursor/modules/account-management/MODULE.md +0 -34
- package/.cursor/modules/buttons/MODULE.md +0 -47
- package/.cursor/modules/cards/MODULE.md +0 -55
- package/.cursor/modules/charts/MODULE.md +0 -40
- package/.cursor/modules/common/MODULE.md +0 -36
- package/.cursor/modules/contact-auth/MODULE.md +0 -19
- package/.cursor/modules/data-display/MODULE.md +0 -42
- package/.cursor/modules/feedback/MODULE.md +0 -32
- package/.cursor/modules/form/MODULE.md +0 -13
- package/.cursor/modules/inputs-basic/MODULE.md +0 -42
- package/.cursor/modules/inputs-date-file/MODULE.md +0 -56
- package/.cursor/modules/inputs-select/MODULE.md +0 -27
- package/.cursor/modules/inputs-toggle/MODULE.md +0 -18
- package/.cursor/modules/kanban/MODULE.md +0 -22
- package/.cursor/modules/layout-navigation/MODULE.md +0 -269
- package/.cursor/modules/overlays/MODULE.md +0 -69
- package/.cursor/modules/playground/MODULE.md +0 -28
- package/.cursor/modules/table/MODULE.md +0 -78
- package/.cursor/modules/theme/MODULE.md +0 -314
- package/.cursor/modules/types-exports/MODULE.md +0 -17
- package/.cursor/modules/utility-ui/MODULE.md +0 -50
- package/.cursor/modules/utils-hooks/MODULE.md +0 -35
- package/.cursor/pixelize-task-statusline.sh +0 -64
- package/.cursor/plans/blocked/.gitkeep +0 -0
- package/.cursor/plans/current.md +0 -12
- package/.cursor/plans/current.theme-tokens-dark-mode.md +0 -77
- package/.cursor/plans/current.theme-tokens-dark.md +0 -155
- package/.cursor/plans/done/.gitkeep +0 -0
- package/.cursor/rules +0 -31
- package/.cursor/skills/task/SKILL.md +0 -167
- package/CLAUDE.md +0 -148
- package/__mocks__/styleMock.js +0 -8
- package/coverage/clover.xml +0 -405
- package/coverage/coverage-final.json +0 -16
- package/coverage/coverage-summary.json +0 -50
- package/coverage/lcov-report/Button/Button.tsx.html +0 -244
- package/coverage/lcov-report/Button/index.html +0 -116
- package/coverage/lcov-report/Checkbox/Checkbox.tsx.html +0 -433
- package/coverage/lcov-report/Checkbox/index.html +0 -116
- package/coverage/lcov-report/Common/ErrorMessage.tsx.html +0 -148
- package/coverage/lcov-report/Common/FormLabel.tsx.html +0 -331
- package/coverage/lcov-report/Common/HelperText.tsx.html +0 -124
- package/coverage/lcov-report/Common/index.html +0 -146
- package/coverage/lcov-report/Components/Button/Button.tsx.html +0 -244
- package/coverage/lcov-report/Components/Button/index.html +0 -116
- package/coverage/lcov-report/Components/Checkbox/Checkbox.tsx.html +0 -433
- package/coverage/lcov-report/Components/Checkbox/index.html +0 -116
- package/coverage/lcov-report/Components/Common/ErrorMessage.tsx.html +0 -148
- package/coverage/lcov-report/Components/Common/FormLabel.tsx.html +0 -331
- package/coverage/lcov-report/Components/Common/HelperText.tsx.html +0 -124
- package/coverage/lcov-report/Components/Common/index.html +0 -146
- package/coverage/lcov-report/Components/CustomModulesTable/CustomModulesTable.tsx.html +0 -712
- package/coverage/lcov-report/Components/CustomModulesTable/DeleteModuleModal.tsx.html +0 -343
- package/coverage/lcov-report/Components/CustomModulesTable/EditModuleModal.tsx.html +0 -313
- package/coverage/lcov-report/Components/CustomModulesTable/index.html +0 -146
- package/coverage/lcov-report/Components/Divider/Divider.tsx.html +0 -133
- package/coverage/lcov-report/Components/Divider/index.html +0 -116
- package/coverage/lcov-report/Components/Dropdown/DropDown.tsx.html +0 -994
- package/coverage/lcov-report/Components/Dropdown/index.html +0 -116
- package/coverage/lcov-report/Components/EmptyState/EmptyState.tsx.html +0 -466
- package/coverage/lcov-report/Components/EmptyState/index.html +0 -116
- package/coverage/lcov-report/Components/Header/HeaderActions.tsx.html +0 -373
- package/coverage/lcov-report/Components/Header/index.html +0 -116
- package/coverage/lcov-report/Components/Input/TextInput.tsx.html +0 -487
- package/coverage/lcov-report/Components/Input/index.html +0 -116
- package/coverage/lcov-report/Components/Input/textInputIconSize.ts.html +0 -205
- package/coverage/lcov-report/Components/KanbanBoard/AccountCard.tsx.html +0 -547
- package/coverage/lcov-report/Components/KanbanBoard/AccountRow.tsx.html +0 -190
- package/coverage/lcov-report/Components/KanbanBoard/KanbanActions/KanbanActions.tsx.html +0 -247
- package/coverage/lcov-report/Components/KanbanBoard/KanbanActions/index.html +0 -116
- package/coverage/lcov-report/Components/KanbanBoard/KanbanBoard.tsx.html +0 -3598
- package/coverage/lcov-report/Components/KanbanBoard/MeasuredItem.tsx.html +0 -283
- package/coverage/lcov-report/Components/KanbanBoard/index.html +0 -161
- package/coverage/lcov-report/Components/OrganizationDetails/CreateOrgModal.tsx.html +0 -511
- package/coverage/lcov-report/Components/OrganizationDetails/DeleteOrgModal.tsx.html +0 -334
- package/coverage/lcov-report/Components/OrganizationDetails/OrganizationDetails.tsx.html +0 -1519
- package/coverage/lcov-report/Components/OrganizationDetails/index.html +0 -146
- package/coverage/lcov-report/Components/RolesPermission/DeleteRoleModal.tsx.html +0 -328
- package/coverage/lcov-report/Components/RolesPermission/RolesPermission.tsx.html +0 -1732
- package/coverage/lcov-report/Components/RolesPermission/index.html +0 -131
- package/coverage/lcov-report/Components/SearchSelect/SearchSelect.tsx.html +0 -2575
- package/coverage/lcov-report/Components/SearchSelect/SelectTruncatedLabel.tsx.html +0 -202
- package/coverage/lcov-report/Components/SearchSelect/index.html +0 -146
- package/coverage/lcov-report/Components/SearchSelect/searchSelectSize.ts.html +0 -496
- package/coverage/lcov-report/Components/Select/Select.tsx.html +0 -361
- package/coverage/lcov-report/Components/Select/index.html +0 -116
- package/coverage/lcov-report/Components/SideBar/components/OtherApps.tsx.html +0 -562
- package/coverage/lcov-report/Components/SideBar/components/OverflowTooltipText.tsx.html +0 -346
- package/coverage/lcov-report/Components/SideBar/components/index.html +0 -116
- package/coverage/lcov-report/Components/SignInActivityTable/SignInActivityTable.tsx.html +0 -490
- package/coverage/lcov-report/Components/SignInActivityTable/index.html +0 -116
- package/coverage/lcov-report/Components/Table/components/TableActions.tsx.html +0 -595
- package/coverage/lcov-report/Components/Table/components/TableBody.tsx.html +0 -2212
- package/coverage/lcov-report/Components/Table/components/TableGroupRow.tsx.html +0 -358
- package/coverage/lcov-report/Components/Table/components/TableLoading.tsx.html +0 -358
- package/coverage/lcov-report/Components/Table/components/index.html +0 -161
- package/coverage/lcov-report/Components/Table/settings/ManageColumns.tsx.html +0 -856
- package/coverage/lcov-report/Components/Table/settings/index.html +0 -116
- package/coverage/lcov-report/Components/Tag/Tag.styles.tsx.html +0 -331
- package/coverage/lcov-report/Components/Tag/Tag.tsx.html +0 -256
- package/coverage/lcov-report/Components/Tag/index.html +0 -131
- package/coverage/lcov-report/Components/ToolTip/ToolTip.tsx.html +0 -286
- package/coverage/lcov-report/Components/ToolTip/index.html +0 -116
- package/coverage/lcov-report/Components/UserDetails/AddUserModal.tsx.html +0 -709
- package/coverage/lcov-report/Components/UserDetails/ChangeRoleModal.tsx.html +0 -505
- package/coverage/lcov-report/Components/UserDetails/DeactivateConfirmModal.tsx.html +0 -379
- package/coverage/lcov-report/Components/UserDetails/UserDetails.tsx.html +0 -1900
- package/coverage/lcov-report/Components/UserDetails/index.html +0 -161
- package/coverage/lcov-report/EmptyState/EmptyState.tsx.html +0 -466
- package/coverage/lcov-report/EmptyState/index.html +0 -116
- package/coverage/lcov-report/Hooks/index.html +0 -116
- package/coverage/lcov-report/Hooks/usePreferences.ts.html +0 -421
- package/coverage/lcov-report/Input/TextInput.tsx.html +0 -487
- package/coverage/lcov-report/Input/index.html +0 -131
- package/coverage/lcov-report/Input/textInputIconSize.ts.html +0 -205
- package/coverage/lcov-report/KanbanBoard.tsx.html +0 -3481
- package/coverage/lcov-report/OrganizationDetails/CreateOrgModal.tsx.html +0 -511
- package/coverage/lcov-report/OrganizationDetails/DeleteOrgModal.tsx.html +0 -334
- package/coverage/lcov-report/OrganizationDetails/OrganizationDetails.tsx.html +0 -1519
- package/coverage/lcov-report/OrganizationDetails/index.html +0 -146
- package/coverage/lcov-report/RolesPermission/DeleteRoleModal.tsx.html +0 -328
- package/coverage/lcov-report/RolesPermission/RolesPermission.tsx.html +0 -1732
- package/coverage/lcov-report/RolesPermission/index.html +0 -116
- package/coverage/lcov-report/SearchSelect/SearchSelect.tsx.html +0 -2575
- package/coverage/lcov-report/SearchSelect/SelectTruncatedLabel.tsx.html +0 -202
- package/coverage/lcov-report/SearchSelect/index.html +0 -146
- package/coverage/lcov-report/SearchSelect/searchSelectSize.ts.html +0 -496
- package/coverage/lcov-report/Table/CompactSelect.tsx.html +0 -379
- package/coverage/lcov-report/Table/Components/ActiveFilters.tsx.html +0 -514
- package/coverage/lcov-report/Table/Components/HeaderActions.tsx.html +0 -373
- package/coverage/lcov-report/Table/Components/Pagination.tsx.html +0 -574
- package/coverage/lcov-report/Table/Components/TableActions.tsx.html +0 -574
- package/coverage/lcov-report/Table/Components/TableBody.tsx.html +0 -1027
- package/coverage/lcov-report/Table/Components/TableFilters.tsx.html +0 -397
- package/coverage/lcov-report/Table/Components/TableHeader.tsx.html +0 -1060
- package/coverage/lcov-report/Table/Components/TableLoading.tsx.html +0 -361
- package/coverage/lcov-report/Table/Components/TableSearch.tsx.html +0 -337
- package/coverage/lcov-report/Table/Components/index.html +0 -266
- package/coverage/lcov-report/Table/Components/useDebounce.ts.html +0 -178
- package/coverage/lcov-report/Table/Components/useTable.ts.html +0 -778
- package/coverage/lcov-report/Table/LeftFilterPane.tsx.html +0 -1810
- package/coverage/lcov-report/Table/SelectOperationControls.tsx.html +0 -178
- package/coverage/lcov-report/Table/Table.tsx.html +0 -1567
- package/coverage/lcov-report/Table/TableProps.tsx.html +0 -658
- package/coverage/lcov-report/Table/TableSettings/ManageColumns.tsx.html +0 -619
- package/coverage/lcov-report/Table/TableSettings/TableFilters.tsx.html +0 -229
- package/coverage/lcov-report/Table/TableSettings/TableSettings.tsx.html +0 -532
- package/coverage/lcov-report/Table/TableSettings/index.html +0 -146
- package/coverage/lcov-report/Table/TableToDo.tsx.html +0 -973
- package/coverage/lcov-report/Table/TextOperationControls.tsx.html +0 -271
- package/coverage/lcov-report/Table/filterTypes.ts.html +0 -97
- package/coverage/lcov-report/Table/index.html +0 -176
- package/coverage/lcov-report/Table/settings/ManageColumns.tsx.html +0 -856
- package/coverage/lcov-report/Table/settings/index.html +0 -116
- package/coverage/lcov-report/Tag/Tag.tsx.html +0 -256
- package/coverage/lcov-report/Tag/index.html +0 -116
- package/coverage/lcov-report/Theme/buildBrandTokens.ts.html +0 -175
- package/coverage/lcov-report/Theme/chartColorsFromTheme.ts.html +0 -214
- package/coverage/lcov-report/Theme/index.html +0 -131
- package/coverage/lcov-report/Theme/useCustomTheme.ts.html +0 -100
- package/coverage/lcov-report/ToolTip/ToolTip.tsx.html +0 -286
- package/coverage/lcov-report/ToolTip/index.html +0 -116
- package/coverage/lcov-report/UserDetails/AddUserModal.tsx.html +0 -709
- package/coverage/lcov-report/UserDetails/ChangeRoleModal.tsx.html +0 -505
- package/coverage/lcov-report/UserDetails/index.html +0 -116
- package/coverage/lcov-report/Utils/functions.ts.html +0 -106
- package/coverage/lcov-report/Utils/index.html +0 -116
- package/coverage/lcov-report/Utils/table.ts.html +0 -1189
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -251
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -210
- package/coverage/lcov.info +0 -981
- package/dist/Theme/Dark/theme.d.ts +0 -3
- package/dist/Theme/Dark/theme.d.ts.map +0 -1
- package/dist/Theme/Dark/theme.js +0 -277
- package/dist/Theme/Default/palette.d.ts +0 -375
- package/dist/Theme/Default/palette.d.ts.map +0 -1
- package/dist/Theme/Default/palette.js +0 -306
- package/dist/Theme/Default/theme.d.ts +0 -3
- package/dist/Theme/Default/theme.d.ts.map +0 -1
- package/dist/Theme/Default/theme.js +0 -19
- package/dist/Theme/Emerald/palette.d.ts +0 -375
- package/dist/Theme/Emerald/palette.d.ts.map +0 -1
- package/dist/Theme/Emerald/palette.js +0 -125
- package/dist/Theme/Emerald/theme.d.ts +0 -3
- package/dist/Theme/Emerald/theme.d.ts.map +0 -1
- package/dist/Theme/Emerald/theme.js +0 -19
- package/dist/Theme/Meadow/palette.d.ts +0 -375
- package/dist/Theme/Meadow/palette.d.ts.map +0 -1
- package/dist/Theme/Meadow/palette.js +0 -123
- package/dist/Theme/Meadow/theme.d.ts +0 -3
- package/dist/Theme/Meadow/theme.d.ts.map +0 -1
- package/dist/Theme/Meadow/theme.js +0 -19
- package/dist/Theme/Radiant/palette.d.ts +0 -375
- package/dist/Theme/Radiant/palette.d.ts.map +0 -1
- package/dist/Theme/Radiant/palette.js +0 -125
- package/dist/Theme/Radiant/theme.d.ts +0 -3
- package/dist/Theme/Radiant/theme.d.ts.map +0 -1
- package/dist/Theme/Radiant/theme.js +0 -19
- package/dist/Theme/Rosewood/palette.d.ts +0 -375
- package/dist/Theme/Rosewood/palette.d.ts.map +0 -1
- package/dist/Theme/Rosewood/palette.js +0 -125
- package/dist/Theme/Rosewood/theme.d.ts +0 -3
- package/dist/Theme/Rosewood/theme.d.ts.map +0 -1
- package/dist/Theme/Rosewood/theme.js +0 -19
- package/dist/Theme/Skyline/palette.d.ts +0 -375
- package/dist/Theme/Skyline/palette.d.ts.map +0 -1
- package/dist/Theme/Skyline/palette.js +0 -123
- package/dist/Theme/Skyline/theme.d.ts +0 -3
- package/dist/Theme/Skyline/theme.d.ts.map +0 -1
- package/dist/Theme/Skyline/theme.js +0 -19
- package/dist/Theme/Slate/palette.d.ts +0 -375
- package/dist/Theme/Slate/palette.d.ts.map +0 -1
- package/dist/Theme/Slate/palette.js +0 -123
- package/dist/Theme/Slate/theme.d.ts +0 -3
- package/dist/Theme/Slate/theme.d.ts.map +0 -1
- package/dist/Theme/Slate/theme.js +0 -19
- package/dist/Theme/buildBrandTokens.d.ts +0 -16
- package/dist/Theme/buildBrandTokens.d.ts.map +0 -1
- package/dist/Theme/buildBrandTokens.js +0 -33
- package/dist/Theme/chartColorsFromTheme.d.ts +0 -19
- package/dist/Theme/chartColorsFromTheme.d.ts.map +0 -1
- package/dist/Theme/chartColorsFromTheme.js +0 -34
- package/dist/Theme/common.d.ts +0 -167
- package/dist/Theme/common.d.ts.map +0 -1
- package/dist/Theme/common.js +0 -112
- package/dist/Theme/componentStyles.d.ts +0 -10
- package/dist/Theme/componentStyles.d.ts.map +0 -1
- package/dist/Theme/componentStyles.js +0 -19
- package/dist/Theme/fonts.d.ts +0 -37
- package/dist/Theme/fonts.d.ts.map +0 -1
- package/dist/Theme/fonts.js +0 -41
- package/dist/Theme/space.d.ts +0 -34
- package/dist/Theme/space.d.ts.map +0 -1
- package/dist/Theme/space.js +0 -35
- package/dist/Theme/theme.d.ts +0 -3
- package/dist/Theme/theme.d.ts.map +0 -1
- package/dist/Theme/theme.js +0 -12
- package/eslint.config.js +0 -48
- package/index.html +0 -13
- package/vite.config.ts +0 -13
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
+
declare const $thumbBg: {
|
|
3
|
+
variable: string;
|
|
4
|
+
reference: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Switch: {
|
|
7
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
8
|
+
thumb: {
|
|
9
|
+
[$thumbBg.variable]: any;
|
|
10
|
+
bg: string;
|
|
11
|
+
};
|
|
12
|
+
}) | undefined;
|
|
13
|
+
sizes?: {
|
|
14
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
15
|
+
keys: ("container" | "label" | "track" | "thumb")[];
|
|
16
|
+
}>;
|
|
17
|
+
} | undefined;
|
|
18
|
+
variants?: {
|
|
19
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
20
|
+
keys: ("container" | "label" | "track" | "thumb")[];
|
|
21
|
+
}>;
|
|
22
|
+
} | undefined;
|
|
23
|
+
defaultProps?: {
|
|
24
|
+
size?: string | number | undefined;
|
|
25
|
+
variant?: string | number | undefined;
|
|
26
|
+
colorScheme?: string | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
parts: ("container" | "label" | "track" | "thumb")[];
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=Switch.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Switch.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,QAAQ;;;CAA4B,CAAC;AAc3C,eAAO,MAAM,MAAM;6BAP4B,kBAAkB;;YAE7D,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;;;;;;;;;;CAOvG,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Switch = void 0;
|
|
4
|
+
const react_1 = require("@chakra-ui/react");
|
|
5
|
+
const anatomy_1 = require("@chakra-ui/anatomy");
|
|
6
|
+
const { defineMultiStyleConfig, definePartsStyle } = (0, react_1.createMultiStyleConfigHelpers)(anatomy_1.switchAnatomy.keys);
|
|
7
|
+
const $thumbBg = (0, react_1.cssVar)("switch-thumb-bg");
|
|
8
|
+
/**
|
|
9
|
+
* Same bug as Slider's thumb: Chakra's own Switch thumb baseStyle hardcodes `bg: "white"` with no
|
|
10
|
+
* `_dark` gate at all, so every bare `<Switch>` renders a literal white knob on the dark canvas
|
|
11
|
+
* regardless of mode.
|
|
12
|
+
*/
|
|
13
|
+
const baseStyle = definePartsStyle(({ theme }) => {
|
|
14
|
+
var _a, _b, _c, _d, _e, _f;
|
|
15
|
+
return ({
|
|
16
|
+
thumb: {
|
|
17
|
+
[$thumbBg.variable]: (_f = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.light) !== null && _c !== void 0 ? _c : (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#fff",
|
|
18
|
+
bg: $thumbBg.reference,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
exports.Switch = defineMultiStyleConfig({
|
|
23
|
+
baseStyle,
|
|
24
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
+
declare const $bg: {
|
|
3
|
+
variable: string;
|
|
4
|
+
reference: string;
|
|
5
|
+
};
|
|
6
|
+
declare const $border: {
|
|
7
|
+
variable: string;
|
|
8
|
+
reference: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Tabs: {
|
|
11
|
+
baseStyle?: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
12
|
+
keys: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
13
|
+
}> | undefined;
|
|
14
|
+
sizes?: {
|
|
15
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
16
|
+
keys: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
17
|
+
}>;
|
|
18
|
+
} | undefined;
|
|
19
|
+
variants?: {
|
|
20
|
+
enclosed: ({ theme }: StyleFunctionProps) => {
|
|
21
|
+
tab: {
|
|
22
|
+
_selected: {
|
|
23
|
+
[$border.variable]: any;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
"enclosed-colored": ({ theme }: StyleFunctionProps) => {
|
|
28
|
+
tab: {
|
|
29
|
+
_selected: {
|
|
30
|
+
[$bg.variable]: any;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} | undefined;
|
|
35
|
+
defaultProps?: {
|
|
36
|
+
size?: string | number | undefined;
|
|
37
|
+
variant?: "enclosed" | "enclosed-colored" | undefined;
|
|
38
|
+
colorScheme?: string | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
parts: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=Tabs.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Tabs.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,GAAG;;;CAAoB,CAAC;AAC9B,QAAA,MAAM,OAAO;;;CAA8B,CAAC;AAyB5C,eAAO,MAAM,IAAI;;;;;;;;;;8BAhBoC,kBAAkB;;;oBAGjE,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAkF;;;;wCAK9C,kBAAkB;;;oBAGxE,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;CAUpG,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Tabs = void 0;
|
|
4
|
+
const react_1 = require("@chakra-ui/react");
|
|
5
|
+
const anatomy_1 = require("@chakra-ui/anatomy");
|
|
6
|
+
const { defineMultiStyleConfig, definePartsStyle } = (0, react_1.createMultiStyleConfigHelpers)(anatomy_1.tabsAnatomy.keys);
|
|
7
|
+
const $bg = (0, react_1.cssVar)("tabs-bg");
|
|
8
|
+
const $border = (0, react_1.cssVar)("tabs-border-color");
|
|
9
|
+
/**
|
|
10
|
+
* Same bug class as Menu/Modal/Popover: Chakra's own Tabs baseStyle hardcodes the selected tab's
|
|
11
|
+
* "cutout" color to `colors.white` outside `_dark` for two variants — `enclosed`'s selected border
|
|
12
|
+
* (meant to match the panel it sits against) and `enclosed-colored`'s selected background — both
|
|
13
|
+
* gated behind `_dark`, which this theme-swap app never triggers. Every selected `enclosed`/
|
|
14
|
+
* `enclosed-colored` tab renders a white seam/fill on the dark canvas.
|
|
15
|
+
*/
|
|
16
|
+
const variantEnclosed = definePartsStyle(({ theme }) => {
|
|
17
|
+
var _a, _b, _c, _d, _e, _f;
|
|
18
|
+
return ({
|
|
19
|
+
tab: {
|
|
20
|
+
_selected: {
|
|
21
|
+
[$border.variable]: (_f = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.light) !== null && _c !== void 0 ? _c : (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#fff",
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
const variantEnclosedColored = definePartsStyle(({ theme }) => {
|
|
27
|
+
var _a, _b, _c, _d, _e, _f;
|
|
28
|
+
return ({
|
|
29
|
+
tab: {
|
|
30
|
+
_selected: {
|
|
31
|
+
[$bg.variable]: (_f = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.light) !== null && _c !== void 0 ? _c : (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.background) === null || _e === void 0 ? void 0 : _e[50]) !== null && _f !== void 0 ? _f : "#fff",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
exports.Tabs = defineMultiStyleConfig({
|
|
37
|
+
variants: {
|
|
38
|
+
enclosed: variantEnclosed,
|
|
39
|
+
"enclosed-colored": variantEnclosedColored,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ComponentStyleConfig } from "@chakra-ui/react";
|
|
1
|
+
import { ComponentStyleConfig, StyleFunctionProps } from "@chakra-ui/react";
|
|
2
2
|
export declare const componentStyles: {
|
|
3
3
|
Checkbox: ComponentStyleConfig;
|
|
4
|
+
Radio: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
4
5
|
Input: ComponentStyleConfig;
|
|
5
6
|
Button: ComponentStyleConfig;
|
|
6
7
|
Select: ComponentStyleConfig;
|
|
@@ -9,5 +10,233 @@ export declare const componentStyles: {
|
|
|
9
10
|
NumberInput: ComponentStyleConfig;
|
|
10
11
|
Badge: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
11
12
|
FormError: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
13
|
+
Drawer: {
|
|
14
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
15
|
+
dialog: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
bg: string;
|
|
18
|
+
color: any;
|
|
19
|
+
};
|
|
20
|
+
}) | undefined;
|
|
21
|
+
sizes?: {
|
|
22
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
23
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
24
|
+
}>;
|
|
25
|
+
} | undefined;
|
|
26
|
+
variants?: {
|
|
27
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
28
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
29
|
+
}>;
|
|
30
|
+
} | undefined;
|
|
31
|
+
defaultProps?: {
|
|
32
|
+
size?: string | number | undefined;
|
|
33
|
+
variant?: string | number | undefined;
|
|
34
|
+
colorScheme?: string | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
parts: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
37
|
+
};
|
|
38
|
+
Menu: {
|
|
39
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
40
|
+
list: {
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
bg: string;
|
|
43
|
+
color: any;
|
|
44
|
+
};
|
|
45
|
+
item: {
|
|
46
|
+
bg: string;
|
|
47
|
+
_focus: {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
bg: string;
|
|
50
|
+
};
|
|
51
|
+
_hover: {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
bg: string;
|
|
54
|
+
};
|
|
55
|
+
_active: {
|
|
56
|
+
[x: string]: any;
|
|
57
|
+
bg: string;
|
|
58
|
+
};
|
|
59
|
+
_expanded: {
|
|
60
|
+
[x: string]: any;
|
|
61
|
+
bg: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}) | undefined;
|
|
65
|
+
sizes?: {
|
|
66
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
67
|
+
keys: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
|
|
68
|
+
}>;
|
|
69
|
+
} | undefined;
|
|
70
|
+
variants?: {
|
|
71
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
72
|
+
keys: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
|
|
73
|
+
}>;
|
|
74
|
+
} | undefined;
|
|
75
|
+
defaultProps?: {
|
|
76
|
+
size?: string | number | undefined;
|
|
77
|
+
variant?: string | number | undefined;
|
|
78
|
+
colorScheme?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
parts: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
|
|
81
|
+
};
|
|
82
|
+
Modal: {
|
|
83
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
84
|
+
dialog: {
|
|
85
|
+
[x: string]: any;
|
|
86
|
+
bg: string;
|
|
87
|
+
color: any;
|
|
88
|
+
};
|
|
89
|
+
}) | undefined;
|
|
90
|
+
sizes?: {
|
|
91
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
92
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
93
|
+
}>;
|
|
94
|
+
} | undefined;
|
|
95
|
+
variants?: {
|
|
96
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
97
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
98
|
+
}>;
|
|
99
|
+
} | undefined;
|
|
100
|
+
defaultProps?: {
|
|
101
|
+
size?: string | number | undefined;
|
|
102
|
+
variant?: string | number | undefined;
|
|
103
|
+
colorScheme?: string | undefined;
|
|
104
|
+
} | undefined;
|
|
105
|
+
parts: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
106
|
+
};
|
|
107
|
+
Popover: {
|
|
108
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
109
|
+
content: {
|
|
110
|
+
[x: string]: any;
|
|
111
|
+
bg: string;
|
|
112
|
+
color: any;
|
|
113
|
+
};
|
|
114
|
+
}) | undefined;
|
|
115
|
+
sizes?: {
|
|
116
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
117
|
+
keys: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
|
|
118
|
+
}>;
|
|
119
|
+
} | undefined;
|
|
120
|
+
variants?: {
|
|
121
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
122
|
+
keys: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
|
|
123
|
+
}>;
|
|
124
|
+
} | undefined;
|
|
125
|
+
defaultProps?: {
|
|
126
|
+
size?: string | number | undefined;
|
|
127
|
+
variant?: string | number | undefined;
|
|
128
|
+
colorScheme?: string | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
parts: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
|
|
131
|
+
};
|
|
132
|
+
Slider: {
|
|
133
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
134
|
+
thumb: {
|
|
135
|
+
[x: string]: any;
|
|
136
|
+
bg: string;
|
|
137
|
+
};
|
|
138
|
+
}) | undefined;
|
|
139
|
+
sizes?: {
|
|
140
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
141
|
+
keys: ("container" | "mark" | "track" | "filledTrack" | "thumb")[];
|
|
142
|
+
}>;
|
|
143
|
+
} | undefined;
|
|
144
|
+
variants?: {
|
|
145
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
146
|
+
keys: ("container" | "mark" | "track" | "filledTrack" | "thumb")[];
|
|
147
|
+
}>;
|
|
148
|
+
} | undefined;
|
|
149
|
+
defaultProps?: {
|
|
150
|
+
size?: string | number | undefined;
|
|
151
|
+
variant?: string | number | undefined;
|
|
152
|
+
colorScheme?: string | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
parts: ("container" | "mark" | "track" | "filledTrack" | "thumb")[];
|
|
155
|
+
};
|
|
156
|
+
Switch: {
|
|
157
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
158
|
+
thumb: {
|
|
159
|
+
[x: string]: any;
|
|
160
|
+
bg: string;
|
|
161
|
+
};
|
|
162
|
+
}) | undefined;
|
|
163
|
+
sizes?: {
|
|
164
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
165
|
+
keys: ("container" | "label" | "track" | "thumb")[];
|
|
166
|
+
}>;
|
|
167
|
+
} | undefined;
|
|
168
|
+
variants?: {
|
|
169
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
170
|
+
keys: ("container" | "label" | "track" | "thumb")[];
|
|
171
|
+
}>;
|
|
172
|
+
} | undefined;
|
|
173
|
+
defaultProps?: {
|
|
174
|
+
size?: string | number | undefined;
|
|
175
|
+
variant?: string | number | undefined;
|
|
176
|
+
colorScheme?: string | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
parts: ("container" | "label" | "track" | "thumb")[];
|
|
179
|
+
};
|
|
180
|
+
Tabs: {
|
|
181
|
+
baseStyle?: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
182
|
+
keys: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
183
|
+
}> | undefined;
|
|
184
|
+
sizes?: {
|
|
185
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
186
|
+
keys: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
187
|
+
}>;
|
|
188
|
+
} | undefined;
|
|
189
|
+
variants?: {
|
|
190
|
+
enclosed: ({ theme }: StyleFunctionProps) => {
|
|
191
|
+
tab: {
|
|
192
|
+
_selected: {
|
|
193
|
+
[x: string]: any;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
"enclosed-colored": ({ theme }: StyleFunctionProps) => {
|
|
198
|
+
tab: {
|
|
199
|
+
_selected: {
|
|
200
|
+
[x: string]: any;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
} | undefined;
|
|
205
|
+
defaultProps?: {
|
|
206
|
+
size?: string | number | undefined;
|
|
207
|
+
variant?: "enclosed" | "enclosed-colored" | undefined;
|
|
208
|
+
colorScheme?: string | undefined;
|
|
209
|
+
} | undefined;
|
|
210
|
+
parts: ("tab" | "tablist" | "tabpanel" | "tabpanels" | "root" | "indicator")[];
|
|
211
|
+
};
|
|
212
|
+
Avatar: {
|
|
213
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
214
|
+
badge: {
|
|
215
|
+
[x: string]: any;
|
|
216
|
+
};
|
|
217
|
+
container: {
|
|
218
|
+
[x: string]: any;
|
|
219
|
+
};
|
|
220
|
+
}) | undefined;
|
|
221
|
+
sizes?: {
|
|
222
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
223
|
+
keys: ("container" | "label" | "group" | "badge" | "excessLabel")[];
|
|
224
|
+
}>;
|
|
225
|
+
} | undefined;
|
|
226
|
+
variants?: {
|
|
227
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
228
|
+
keys: ("container" | "label" | "group" | "badge" | "excessLabel")[];
|
|
229
|
+
}>;
|
|
230
|
+
} | undefined;
|
|
231
|
+
defaultProps?: {
|
|
232
|
+
size?: string | number | undefined;
|
|
233
|
+
variant?: string | number | undefined;
|
|
234
|
+
colorScheme?: string | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
parts: ("container" | "label" | "group" | "badge" | "excessLabel")[];
|
|
237
|
+
};
|
|
238
|
+
Skeleton: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
239
|
+
Tooltip: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
240
|
+
CloseButton: import("@chakra-ui/react").ComponentSingleStyleConfig;
|
|
12
241
|
};
|
|
13
242
|
//# sourceMappingURL=componentStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentStyles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/componentStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"componentStyles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/componentStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAU,MAAM,kBAAkB,CAAC;AAqMpF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB3B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.componentStyles = void 0;
|
|
4
|
+
const react_1 = require("@chakra-ui/react");
|
|
4
5
|
const Button_styles_1 = require("../../Components/Button/Button.styles");
|
|
5
6
|
const Checkbox_styles_1 = require("../../Components/Checkbox/Checkbox.styles");
|
|
6
7
|
const TextInput_styles_1 = require("../../Components/Input/TextInput.styles");
|
|
@@ -10,6 +11,15 @@ const InputTextArea_style_1 = require("../../Components/InputTextArea/InputTextA
|
|
|
10
11
|
const NumberInput_styles_1 = require("../../Components/NumberInput/NumberInput.styles");
|
|
11
12
|
const accentText_1 = require("../tokens/builders/accentText");
|
|
12
13
|
const color_1 = require("../tokens/builders/color");
|
|
14
|
+
const outlineRung_1 = require("../tokens/builders/outlineRung");
|
|
15
|
+
const Drawer_styles_1 = require("./Drawer.styles");
|
|
16
|
+
const Menu_styles_1 = require("./Menu.styles");
|
|
17
|
+
const Modal_styles_1 = require("./Modal.styles");
|
|
18
|
+
const Popover_styles_1 = require("./Popover.styles");
|
|
19
|
+
const Slider_styles_1 = require("./Slider.styles");
|
|
20
|
+
const Switch_styles_1 = require("./Switch.styles");
|
|
21
|
+
const Tabs_styles_1 = require("./Tabs.styles");
|
|
22
|
+
const Avatar_styles_1 = require("./Avatar.styles");
|
|
13
23
|
// `colorScheme` accepts any Chakra scale, including built-ins we never themed (blackAlpha,
|
|
14
24
|
// whiteAlpha) whose rungs are translucent `rgba(...)` strings, not opaque hex — our contrast
|
|
15
25
|
// math (hexToRgb) throws on those on purpose (see color.ts). Guard so those scales fall back to
|
|
@@ -75,8 +85,123 @@ const FormError = {
|
|
|
75
85
|
};
|
|
76
86
|
},
|
|
77
87
|
};
|
|
88
|
+
const $tooltipBg = (0, react_1.cssVar)("tooltip-bg");
|
|
89
|
+
const $tooltipFg = (0, react_1.cssVar)("tooltip-fg");
|
|
90
|
+
/**
|
|
91
|
+
* Chakra's own Tooltip baseStyle hardcodes `--tooltip-bg`/`--tooltip-fg` to `colors.gray.700`/
|
|
92
|
+
* `colors.whiteAlpha.900` (gated behind `_dark`, which this theme-swap app never triggers — see
|
|
93
|
+
* Menu.styles.ts / createBrandTheme's colorMode comment). Our reversed dark gray ramp makes
|
|
94
|
+
* `gray.700` LIGHT (~L79), so every bare `<Tooltip>` renders a near-white bubble with near-white
|
|
95
|
+
* text on the dark canvas — invisible. A tooltip floats over arbitrary content in either mode, so
|
|
96
|
+
* unlike Menu/Modal/Drawer (which follow the canvas) it needs a FIXED high-contrast chip that
|
|
97
|
+
* doesn't invert with the palette — `black`/`white` are exactly the two tokens `buildDarkPalette`
|
|
98
|
+
* deliberately never remaps, so they stay a stable dark-bg/white-text pair in both modes.
|
|
99
|
+
*/
|
|
100
|
+
const Tooltip = {
|
|
101
|
+
baseStyle: ({ theme }) => {
|
|
102
|
+
var _a, _b, _c, _d;
|
|
103
|
+
return ({
|
|
104
|
+
[$tooltipBg.variable]: (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.black) !== null && _b !== void 0 ? _b : "colors.gray.700",
|
|
105
|
+
[$tooltipFg.variable]: (_d = (_c = theme.colors) === null || _c === void 0 ? void 0 : _c.white) !== null && _d !== void 0 ? _d : "colors.whiteAlpha.900",
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
const $skeletonStart = (0, react_1.cssVar)("skeleton-start-color");
|
|
110
|
+
const $skeletonEnd = (0, react_1.cssVar)("skeleton-end-color");
|
|
111
|
+
/**
|
|
112
|
+
* Chakra's own Skeleton baseStyle hardcodes `--skeleton-start-color`/`--skeleton-end-color` to
|
|
113
|
+
* `colors.gray.100`/`colors.gray.400` the same `_dark`-gated way Menu/Popover did (Wave G/H), so
|
|
114
|
+
* every bare `<Skeleton>` shimmers between two near-white tones on the dark canvas. Fixed at the
|
|
115
|
+
* theme level rather than in `Skeletons.tsx`: Chakra's `Skeleton` only writes these vars from its
|
|
116
|
+
* `startColor`/`endColor` PROPS when a caller actually passes them (`useToken` on an empty string
|
|
117
|
+
* resolves to `undefined`, so the prop-driven `cssVarStyles` object stays empty) — an explicit
|
|
118
|
+
* prop still wins via that mechanism, this only supplies the default the base style already owns.
|
|
119
|
+
*/
|
|
120
|
+
const Skeleton = {
|
|
121
|
+
baseStyle: ({ theme }) => {
|
|
122
|
+
var _a, _b, _c, _d, _e, _f;
|
|
123
|
+
return ({
|
|
124
|
+
[$skeletonStart.variable]: (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.gray) === null || _b === void 0 ? void 0 : _b[100]) !== null && _c !== void 0 ? _c : "colors.gray.100",
|
|
125
|
+
[$skeletonEnd.variable]: (_f = (_e = (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.gray) === null || _e === void 0 ? void 0 : _e[300]) !== null && _f !== void 0 ? _f : "colors.gray.400",
|
|
126
|
+
background: $skeletonStart.reference,
|
|
127
|
+
borderColor: $skeletonEnd.reference,
|
|
128
|
+
});
|
|
129
|
+
},
|
|
130
|
+
};
|
|
131
|
+
// Chakra's `extendTheme` does not REPLACE a component's stock baseStyle when ours is also a
|
|
132
|
+
// function — it calls BOTH and deep-merges the two returned plain objects, key by key. Chakra's
|
|
133
|
+
// own stock Radio (@chakra-ui/theme radio.mjs) writes its checked dot with the shorthand style
|
|
134
|
+
// props `bg`/`w`/`h`/`pos`; an earlier version of this override used the full CSS property names
|
|
135
|
+
// (`background`/`width`/`height`/`position`). A deep merge treats those as DIFFERENT keys, so
|
|
136
|
+
// both survived into the final style object instead of one cleanly overwriting the other — and
|
|
137
|
+
// in practice Chakra's own `bg: "currentColor"` rung won, leaving a hardcoded-black dot. Using
|
|
138
|
+
// the exact same keys Chakra's stock style uses makes every one of ours a scalar overwrite, and
|
|
139
|
+
// `!important` on the two colour-bearing declarations removes any remaining doubt about which
|
|
140
|
+
// value survives serialization — verified against the actual rendered cascade, not just this
|
|
141
|
+
// function's return value (see componentStyles.radioDotMerge.test.ts, which asserts the merge
|
|
142
|
+
// behavior directly rather than only the function output).
|
|
143
|
+
const Radio = {
|
|
144
|
+
baseStyle: ({ theme, colorScheme }) => {
|
|
145
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
146
|
+
const swatch = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a[colorScheme];
|
|
147
|
+
const fill = (_b = swatch === null || swatch === void 0 ? void 0 : swatch[500]) !== null && _b !== void 0 ? _b : (_d = (_c = theme.colors) === null || _c === void 0 ? void 0 : _c.primary) === null || _d === void 0 ? void 0 : _d[500];
|
|
148
|
+
const white = (_f = (_e = theme.colors) === null || _e === void 0 ? void 0 : _e.white) !== null && _f !== void 0 ? _f : "#ffffff";
|
|
149
|
+
const black = (_h = (_g = theme.colors) === null || _g === void 0 ? void 0 : _g.black) !== null && _h !== void 0 ? _h : "#000000";
|
|
150
|
+
const dot = (0, accentText_1.onFilled)(fill, white, black);
|
|
151
|
+
// A browser probe found the checked radio's hover repeating its own resting `fill` —
|
|
152
|
+
// Chakra's stock checked._hover (inherited from checkbox) lands on the SAME `bg`/`borderColor`
|
|
153
|
+
// keys we do, so extendTheme's merge is a scalar overwrite here, not a coexisting selector;
|
|
154
|
+
// ours must supply a value that actually differs from resting, same fix shape as
|
|
155
|
+
// NavigationBar/OrgSwitcher's "hand a fill its own resting bg as the backdrop" pattern.
|
|
156
|
+
const hoverFill = (0, outlineRung_1.resolveHoverTint)(fill, fill);
|
|
157
|
+
return {
|
|
158
|
+
control: {
|
|
159
|
+
borderColor: (_k = (_j = theme.colors) === null || _j === void 0 ? void 0 : _j.boxborder) === null || _k === void 0 ? void 0 : _k[500],
|
|
160
|
+
_checked: {
|
|
161
|
+
bg: `${fill} !important`,
|
|
162
|
+
borderColor: `${fill} !important`,
|
|
163
|
+
color: `${dot} !important`,
|
|
164
|
+
_before: {
|
|
165
|
+
content: `""`,
|
|
166
|
+
display: "inline-block",
|
|
167
|
+
pos: "relative",
|
|
168
|
+
w: "50%",
|
|
169
|
+
h: "50%",
|
|
170
|
+
borderRadius: "50%",
|
|
171
|
+
bg: `${dot} !important`,
|
|
172
|
+
},
|
|
173
|
+
_hover: { bg: `${hoverFill} !important`, borderColor: `${hoverFill} !important` },
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
},
|
|
178
|
+
defaultProps: { colorScheme: "primary" },
|
|
179
|
+
};
|
|
180
|
+
const $closeButtonBg = (0, react_1.cssVar)("close-button-bg");
|
|
181
|
+
/**
|
|
182
|
+
* Chakra's stock CloseButton hover/active wash (`blackAlpha.100`/`.200`) only swaps to
|
|
183
|
+
* `whiteAlpha.100`/`.200` under `_dark` — dead in this app (see createBrandTheme's colorMode
|
|
184
|
+
* comment) — so a CloseButton on a dark canvas keeps the light-mode blackAlpha wash, which reads
|
|
185
|
+
* as almost no affordance against a dark surface. The light-mode values themselves also measure
|
|
186
|
+
* borderline against `background[50]` (1.14/1.19, under `MIN_PERCEPTIBLE_STEP`). Branch on the
|
|
187
|
+
* palette's own actual canvas (`isDarkCanvas`), not Chakra's dead colorMode, and step one rung up
|
|
188
|
+
* each scale (`.200`/`.300`) — verified >=1.19 across all 9 brands x both modes
|
|
189
|
+
* (closeButtonHover.test.ts).
|
|
190
|
+
*/
|
|
191
|
+
const CloseButton = {
|
|
192
|
+
baseStyle: ({ theme }) => {
|
|
193
|
+
var _a, _b, _c, _d, _e;
|
|
194
|
+
const dark = (0, accentText_1.isDarkCanvas)((_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.backgroundColor) === null || _b === void 0 ? void 0 : _b.main) !== null && _c !== void 0 ? _c : "#ffffff");
|
|
195
|
+
const alpha = dark ? (_d = theme.colors) === null || _d === void 0 ? void 0 : _d.whiteAlpha : (_e = theme.colors) === null || _e === void 0 ? void 0 : _e.blackAlpha;
|
|
196
|
+
return {
|
|
197
|
+
_hover: { [$closeButtonBg.variable]: alpha === null || alpha === void 0 ? void 0 : alpha[200] },
|
|
198
|
+
_active: { [$closeButtonBg.variable]: alpha === null || alpha === void 0 ? void 0 : alpha[300] },
|
|
199
|
+
};
|
|
200
|
+
},
|
|
201
|
+
};
|
|
78
202
|
exports.componentStyles = {
|
|
79
203
|
Checkbox: Checkbox_styles_1.Checkbox,
|
|
204
|
+
Radio,
|
|
80
205
|
Input: TextInput_styles_1.Input,
|
|
81
206
|
Button: Button_styles_1.Button,
|
|
82
207
|
Select: Select_styles_1.Select,
|
|
@@ -85,4 +210,15 @@ exports.componentStyles = {
|
|
|
85
210
|
NumberInput: NumberInput_styles_1.NumberInput,
|
|
86
211
|
Badge,
|
|
87
212
|
FormError,
|
|
213
|
+
Drawer: Drawer_styles_1.Drawer,
|
|
214
|
+
Menu: Menu_styles_1.Menu,
|
|
215
|
+
Modal: Modal_styles_1.Modal,
|
|
216
|
+
Popover: Popover_styles_1.Popover,
|
|
217
|
+
Slider: Slider_styles_1.Slider,
|
|
218
|
+
Switch: Switch_styles_1.Switch,
|
|
219
|
+
Tabs: Tabs_styles_1.Tabs,
|
|
220
|
+
Avatar: Avatar_styles_1.Avatar,
|
|
221
|
+
Skeleton,
|
|
222
|
+
Tooltip,
|
|
223
|
+
CloseButton,
|
|
88
224
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBrandTheme.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/createBrandTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"createBrandTheme.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/createBrandTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAOvE,MAAM,WAAW,uBAAuB;IACtC,gEAAgE;IAChE,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC/B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,YAAY,EACrB,UAAS,uBAA4B,wBAuGtC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -8,6 +8,7 @@ const react_1 = require("@chakra-ui/react");
|
|
|
8
8
|
const common_web_1 = __importDefault(require("./common.web"));
|
|
9
9
|
const fonts_web_1 = __importDefault(require("./fonts.web"));
|
|
10
10
|
const componentStyles_1 = require("./componentStyles");
|
|
11
|
+
const accentText_1 = require("../tokens/builders/accentText");
|
|
11
12
|
/**
|
|
12
13
|
* Builds a Chakra theme from a pure brand palette.
|
|
13
14
|
*
|
|
@@ -63,10 +64,56 @@ const createBrandTheme = (palette, options = {}) => {
|
|
|
63
64
|
? {
|
|
64
65
|
styles: {
|
|
65
66
|
global: {
|
|
67
|
+
// Native widgets the page cannot style — the `<select>` dropdown list and the
|
|
68
|
+
// time/date picker popups — are painted by the browser, which defaults to light
|
|
69
|
+
// and produced white popups on the dark canvas. `color-scheme` is the only way to
|
|
70
|
+
// tell it otherwise.
|
|
71
|
+
html: {
|
|
72
|
+
colorScheme: "dark",
|
|
73
|
+
},
|
|
66
74
|
body: {
|
|
67
75
|
bg: palette.backgroundColor.main,
|
|
68
76
|
color: palette.text[900],
|
|
69
77
|
},
|
|
78
|
+
// Text selection is another browser-painted surface `color-scheme` doesn't cover —
|
|
79
|
+
// the UA default `::selection` stays a light highlight regardless of theme, so
|
|
80
|
+
// selecting text anywhere (e.g. a table cell) shows a stray white/lavender patch on
|
|
81
|
+
// the dark canvas. Brand it instead, with WCAG-safe ink via the same `onFilled` math
|
|
82
|
+
// used for buttons/badges.
|
|
83
|
+
"::selection": {
|
|
84
|
+
background: palette.primary[500],
|
|
85
|
+
color: (0, accentText_1.onFilled)(palette.primary[500], palette.white, palette.black),
|
|
86
|
+
},
|
|
87
|
+
"::-moz-selection": {
|
|
88
|
+
background: palette.primary[500],
|
|
89
|
+
color: (0, accentText_1.onFilled)(palette.primary[500], palette.white, palette.black),
|
|
90
|
+
},
|
|
91
|
+
// `color-scheme: dark` gives WebKit/Blink a dark scrollbar by default, but it's the
|
|
92
|
+
// OS's generic dark gray, not brand-aware — style it explicitly so it matches the
|
|
93
|
+
// canvas instead of floating as a mismatched gray bar.
|
|
94
|
+
"::-webkit-scrollbar": {
|
|
95
|
+
width: "10px",
|
|
96
|
+
height: "10px",
|
|
97
|
+
},
|
|
98
|
+
"::-webkit-scrollbar-track": {
|
|
99
|
+
background: palette.backgroundColor.main,
|
|
100
|
+
},
|
|
101
|
+
"::-webkit-scrollbar-thumb": {
|
|
102
|
+
background: palette.gray[600],
|
|
103
|
+
borderRadius: "6px",
|
|
104
|
+
},
|
|
105
|
+
"::-webkit-scrollbar-thumb:hover": {
|
|
106
|
+
background: palette.gray[500],
|
|
107
|
+
},
|
|
108
|
+
// Chrome/Edge autofill paints its own opaque yellow/white fill behind the input
|
|
109
|
+
// text via `-webkit-box-shadow` (not `background`), so a plain `bg` override never
|
|
110
|
+
// reaches it — a bright light box survives on every dark autofilled field unless
|
|
111
|
+
// overridden with the same trick.
|
|
112
|
+
"input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus": {
|
|
113
|
+
WebkitBoxShadow: `0 0 0px 1000px ${palette.backgroundColor.secondary} inset`,
|
|
114
|
+
WebkitTextFillColor: palette.text[900],
|
|
115
|
+
caretColor: palette.text[900],
|
|
116
|
+
},
|
|
70
117
|
},
|
|
71
118
|
},
|
|
72
119
|
}
|
|
@@ -16,6 +16,16 @@ export type PixelizeThemeProviderProps = {
|
|
|
16
16
|
defaultMode?: ColorMode;
|
|
17
17
|
storageKey?: string;
|
|
18
18
|
disablePersistence?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* App-specific theme overrides (fonts, sizes, component defaultProps, zIndices, ...) merged
|
|
21
|
+
* onto the resolved `brandThemes[brand][resolvedMode]` via `extendTheme`. Re-evaluated whenever
|
|
22
|
+
* `brand`/`resolvedMode` change, so overrides always layer onto the CURRENT palette rather than
|
|
23
|
+
* a stale one. Safe to merge post-resolution: `createBrandTheme` already fixes
|
|
24
|
+
* `config.initialColorMode` to `"light"` on every palette, and `extendTheme` is a pure additive
|
|
25
|
+
* merge — it does not re-derive `_dark:` blocks or re-run color-mode resolution, so this cannot
|
|
26
|
+
* reintroduce the double-adaptation bug `forcedLightColorModeManager` avoids (see above).
|
|
27
|
+
*/
|
|
28
|
+
themeOverrides?: Record<string, unknown>;
|
|
19
29
|
};
|
|
20
30
|
export declare const ThemeModeContext: React.Context<ThemeModeContextValue | undefined>;
|
|
21
31
|
/**
|
|
@@ -32,5 +42,5 @@ export declare const ThemeModeContext: React.Context<ThemeModeContextValue | und
|
|
|
32
42
|
* whatever the active palette says. Read the mode from `useThemeMode()` instead. Existing apps are
|
|
33
43
|
* unaffected: they are light-only, where that argument was always the one returned anyway.
|
|
34
44
|
*/
|
|
35
|
-
export declare const PixelizeThemeProvider: ({ children, brand: brandProp, defaultMode, storageKey, disablePersistence, }: PixelizeThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const PixelizeThemeProvider: ({ children, brand: brandProp, defaultMode, storageKey, disablePersistence, themeOverrides, }: PixelizeThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
46
|
//# sourceMappingURL=PixelizeThemeProvider.d.ts.map
|