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
|
@@ -25,6 +25,7 @@ const PLACEMENT_STYLE = {
|
|
|
25
25
|
* `onOpenChange`.
|
|
26
26
|
*/
|
|
27
27
|
function WorkspaceTrayPreview({ children, preview, enabled = true, openDelayMs = 350, closeDelayMs = 200, placement = "top-end", onOpenChange, width = "340px", testId = "workspace-tray-preview", }) {
|
|
28
|
+
var _a, _b, _c, _d;
|
|
28
29
|
const theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
29
30
|
const [open, setOpen] = (0, react_1.useState)(false);
|
|
30
31
|
const openTimer = (0, react_1.useRef)(null);
|
|
@@ -79,7 +80,7 @@ function WorkspaceTrayPreview({ children, preview, enabled = true, openDelayMs =
|
|
|
79
80
|
e.stopPropagation();
|
|
80
81
|
closeNow();
|
|
81
82
|
}
|
|
82
|
-
}, children: [children, open && ((0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", ...PLACEMENT_STYLE[placement], w: typeof width === "number" ? `${width}px` : width, maxW: "min(360px, calc(100vw - 2rem))", bg: theme.colors.background[50], borderWidth: "1px", borderColor:
|
|
83
|
+
}, children: [children, open && ((0, jsx_runtime_1.jsx)(react_2.Box, { position: "absolute", ...PLACEMENT_STYLE[placement], w: typeof width === "number" ? `${width}px` : width, maxW: "min(360px, calc(100vw - 2rem))", bg: theme.colors.background[50], borderWidth: "1px", borderColor: (_b = (_a = theme.colors.boxborder) === null || _a === void 0 ? void 0 : _a[200]) !== null && _b !== void 0 ? _b : theme.colors.gray[200], borderRadius: "lg", boxShadow: "xl", zIndex: 1500, pointerEvents: "auto", p: 3, textAlign: "left", color: (_d = (_c = theme.colors.text) === null || _c === void 0 ? void 0 : _c[700]) !== null && _d !== void 0 ? _d : theme.colors.gray[800], cursor: "default", onMouseEnter: clearCloseTimer, onMouseLeave: scheduleClose, "data-testid": testId, children: typeof preview === "function"
|
|
83
84
|
? preview({ close: closeNow })
|
|
84
85
|
: preview }))] }));
|
|
85
86
|
}
|
|
@@ -6,10 +6,10 @@ import type { WorkspaceTrayProps, WorkspaceWindowProps } from "./WorkspaceWindow
|
|
|
6
6
|
* management: the parent owns the window state and passes callbacks. Render
|
|
7
7
|
* minimized windows with the companion WorkspaceTray.
|
|
8
8
|
*/
|
|
9
|
-
export default function WorkspaceWindow({ title, state, children, onMinimize, onClose, onOpenFullPage, headerActions, testId, }: WorkspaceWindowProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export default function WorkspaceWindow({ title, state, children, onMinimize, onClose, onOpenFullPage, onOverlayClick, headerActions, testId, }: WorkspaceWindowProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
10
|
/**
|
|
11
11
|
* Bottom tray of restore pills for minimized WorkspaceWindows. Presentational —
|
|
12
12
|
* the parent supplies the minimized items and restore/close handlers.
|
|
13
13
|
*/
|
|
14
|
-
export declare function WorkspaceTray({ items, onRestore, onClose, testId, }: WorkspaceTrayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
export declare function WorkspaceTray({ items, onRestore, onClose, testId, renderItem, }: WorkspaceTrayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
15
15
|
//# sourceMappingURL=WorkspaceWindow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceWindow.d.ts","sourceRoot":"","sources":["../../../src/Components/WorkspaceWindow/WorkspaceWindow.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAOhC;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,KAAK,EACL,QAAQ,EACR,UAAU,EACV,OAAO,EACP,cAAc,EACd,aAAa,EACb,MAA2B,GAC5B,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"WorkspaceWindow.d.ts","sourceRoot":"","sources":["../../../src/Components/WorkspaceWindow/WorkspaceWindow.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAOhC;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,KAAK,EACL,QAAQ,EACR,UAAU,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACd,aAAa,EACb,MAA2B,GAC5B,EAAE,oBAAoB,kDAkHtB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,OAAO,EACP,MAAyB,EACzB,UAAU,GACX,EAAE,kBAAkB,kDA6EpB"}
|
|
@@ -17,7 +17,8 @@ const WINDOW_SIZE = { maxW: "88rem", h: "92vh" };
|
|
|
17
17
|
* management: the parent owns the window state and passes callbacks. Render
|
|
18
18
|
* minimized windows with the companion WorkspaceTray.
|
|
19
19
|
*/
|
|
20
|
-
function WorkspaceWindow({ title, state, children, onMinimize, onClose, onOpenFullPage, headerActions, testId = "workspace-window", }) {
|
|
20
|
+
function WorkspaceWindow({ title, state, children, onMinimize, onClose, onOpenFullPage, onOverlayClick, headerActions, testId = "workspace-window", }) {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f;
|
|
21
22
|
// Must run before the early return: a minimized render would otherwise skip the hook
|
|
22
23
|
// and change hook order when the window reopens.
|
|
23
24
|
const theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
@@ -27,18 +28,38 @@ function WorkspaceWindow({ title, state, children, onMinimize, onClose, onOpenFu
|
|
|
27
28
|
return ((0, jsx_runtime_1.jsxs)(react_1.Modal, { isOpen: true, onClose: () => onClose === null || onClose === void 0 ? void 0 : onClose(), size: "full", isCentered: true, scrollBehavior: "inside",
|
|
28
29
|
// Don't discard unsaved work on an accidental overlay click / Esc — the
|
|
29
30
|
// parent decides via the explicit Close control.
|
|
30
|
-
closeOnOverlayClick: false, closeOnEsc: false, children: [(0, jsx_runtime_1.jsx)(react_1.ModalOverlay, { backdropFilter: "blur(3px)" }), (0, jsx_runtime_1.jsx)(react_1.ModalContent, { bg: "transparent", boxShadow: "none", m: 0, display: "flex", alignItems: "center", justifyContent: "center",
|
|
31
|
+
closeOnOverlayClick: false, closeOnEsc: false, children: [(0, jsx_runtime_1.jsx)(react_1.ModalOverlay, { backdropFilter: "blur(3px)" }), (0, jsx_runtime_1.jsx)(react_1.ModalContent, { bg: "transparent", boxShadow: "none", m: 0, display: "flex", alignItems: "center", justifyContent: "center",
|
|
32
|
+
// With size="full" the transparent ModalContent covers the whole
|
|
33
|
+
// viewport, so Chakra's own closeOnOverlayClick never fires (the
|
|
34
|
+
// ModalOverlay sits behind it). Detect "clicked the blurred area
|
|
35
|
+
// around the window" ourselves: only when the click lands on this
|
|
36
|
+
// wrapper, not on the window Box or its children.
|
|
37
|
+
onMouseDown: (e) => {
|
|
38
|
+
if (e.target === e.currentTarget)
|
|
39
|
+
onOverlayClick === null || onOverlayClick === void 0 ? void 0 : onOverlayClick();
|
|
40
|
+
}, "data-testid": `${testId}-backdrop`, children: (0, jsx_runtime_1.jsxs)(react_1.Box, { bg: theme.colors.background[50], borderRadius: "0.75rem", boxShadow: "2xl", overflow: "hidden", w: "100%", maxW: size.maxW, h: size.h, display: "flex", flexDirection: "column", "data-testid": testId, "data-window-state": state, children: [(0, jsx_runtime_1.jsxs)(react_1.Flex, { align: "center", justify: "space-between", px: 3, py: 2, borderBottomWidth: "1px", borderColor: (_b = (_a = theme.colors.boxborder) === null || _a === void 0 ? void 0 : _a[200]) !== null && _b !== void 0 ? _b : theme.colors.gray[100], bg: (_d = (_c = theme.colors.background) === null || _c === void 0 ? void 0 : _c[100]) !== null && _d !== void 0 ? _d : theme.colors.gray[50], flexShrink: 0, children: [(0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "sm", fontWeight: 600, color: (_f = (_e = theme.colors.text) === null || _e === void 0 ? void 0 : _e[700]) !== null && _f !== void 0 ? _f : theme.colors.gray[700], noOfLines: 1, "data-testid": `${testId}-title`, children: title }), (0, jsx_runtime_1.jsxs)(react_1.HStack, { spacing: 1, children: [headerActions, onOpenFullPage ? ((0, jsx_runtime_1.jsx)(react_1.IconButton, { "aria-label": "Open full page", size: "xs", variant: "ghost", icon: (0, jsx_runtime_1.jsx)(lucide_react_1.ExternalLink, { size: 14 }), onClick: onOpenFullPage, "data-testid": `${testId}-fullpage` })) : null, onMinimize ? ((0, jsx_runtime_1.jsx)(react_1.IconButton, { "aria-label": "Minimize", size: "xs", variant: "ghost", icon: (0, jsx_runtime_1.jsx)(lucide_react_1.Minus, { size: 15 }), onClick: onMinimize, "data-testid": `${testId}-minimize` })) : null, onClose ? ((0, jsx_runtime_1.jsx)(react_1.IconButton, { "aria-label": "Close", size: "xs", variant: "ghost", colorScheme: "red", icon: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 15 }), onClick: onClose, "data-testid": `${testId}-close` })) : null] })] }), (0, jsx_runtime_1.jsx)(react_1.Box, { flex: "1", overflow: "auto", px: { base: 3, md: 5 }, py: 4, children: children })] }) })] }));
|
|
31
41
|
}
|
|
32
42
|
/**
|
|
33
43
|
* Bottom tray of restore pills for minimized WorkspaceWindows. Presentational —
|
|
34
44
|
* the parent supplies the minimized items and restore/close handlers.
|
|
35
45
|
*/
|
|
36
|
-
function WorkspaceTray({ items, onRestore, onClose, testId = "workspace-tray", }) {
|
|
46
|
+
function WorkspaceTray({ items, onRestore, onClose, testId = "workspace-tray", renderItem, }) {
|
|
47
|
+
const theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
37
48
|
if (!items.length)
|
|
38
49
|
return null;
|
|
39
50
|
return (
|
|
40
51
|
// Floating bottom-right cluster (Gmail/Jira minimized-window pattern) rather
|
|
41
52
|
// than a full-width docked bar, so it never covers the bottom strip of page
|
|
42
53
|
// content and needs no reserved page gutter. Pills wrap upward.
|
|
43
|
-
(0, jsx_runtime_1.jsx)(react_1.Flex, { position: "fixed", bottom: 4, right: 4, zIndex: 1400, direction: "row-reverse", wrap: "wrap-reverse", justify: "flex-start", gap: 2, maxW: { base: "calc(100vw - 2rem)", md: "36rem" }, "data-testid": testId, children: items.map((item) =>
|
|
54
|
+
(0, jsx_runtime_1.jsx)(react_1.Flex, { position: "fixed", bottom: 4, right: 4, zIndex: 1400, direction: "row-reverse", wrap: "wrap-reverse", justify: "flex-start", gap: 2, maxW: { base: "calc(100vw - 2rem)", md: "36rem" }, "data-testid": testId, children: items.map((item) => {
|
|
55
|
+
var _a, _b, _c, _d, _e, _f;
|
|
56
|
+
const api = {
|
|
57
|
+
restore: () => onRestore === null || onRestore === void 0 ? void 0 : onRestore(item.id),
|
|
58
|
+
close: () => onClose === null || onClose === void 0 ? void 0 : onClose(item.id),
|
|
59
|
+
};
|
|
60
|
+
if (renderItem) {
|
|
61
|
+
return (0, jsx_runtime_1.jsx)(react_1.Box, { children: renderItem(item, api) }, item.id);
|
|
62
|
+
}
|
|
63
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.HStack, { spacing: 1, pl: 3, pr: 1, py: 1, borderRadius: "full", bg: (_b = (_a = theme.colors.primary) === null || _a === void 0 ? void 0 : _a[100]) !== null && _b !== void 0 ? _b : "blue.100", color: (_d = (_c = theme.colors.primary) === null || _c === void 0 ? void 0 : _c[700]) !== null && _d !== void 0 ? _d : "blue.700", boxShadow: "md", borderWidth: "1px", borderColor: (_f = (_e = theme.colors.primary) === null || _e === void 0 ? void 0 : _e[200]) !== null && _f !== void 0 ? _f : "blue.200", "data-testid": `${testId}-pill`, children: [(0, jsx_runtime_1.jsx)(react_1.Box, { as: "button", type: "button", fontSize: "sm", onClick: api.restore, "data-testid": `${testId}-restore`, maxW: "16rem", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", children: item.title }), onClose ? ((0, jsx_runtime_1.jsx)(react_1.IconButton, { "aria-label": "Close", size: "xs", variant: "ghost", borderRadius: "full", minW: "auto", h: "auto", p: 1, color: "inherit", icon: (0, jsx_runtime_1.jsx)(lucide_react_1.X, { size: 13 }), onClick: api.close, "data-testid": `${testId}-close` })) : null] }, item.id));
|
|
64
|
+
}) }));
|
|
44
65
|
}
|
|
@@ -19,6 +19,13 @@ export interface WorkspaceWindowProps {
|
|
|
19
19
|
onClose?: () => void;
|
|
20
20
|
/** Optional "pop out to full page" affordance; hidden when omitted. */
|
|
21
21
|
onOpenFullPage?: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Fires when the blurred area around the window is clicked. With
|
|
24
|
+
* `size="full"` the transparent ModalContent covers the whole viewport, so
|
|
25
|
+
* Chakra's own `closeOnOverlayClick` never fires — the parent handles this
|
|
26
|
+
* itself (e.g. minimize-on-backdrop-click) via this callback.
|
|
27
|
+
*/
|
|
28
|
+
onOverlayClick?: () => void;
|
|
22
29
|
/** Extra controls rendered in the control bar, left of the window buttons. */
|
|
23
30
|
headerActions?: ReactNode;
|
|
24
31
|
/** data-testid for the window container. */
|
|
@@ -34,6 +41,17 @@ export interface WorkspaceTrayProps {
|
|
|
34
41
|
onRestore?: (id: string) => void;
|
|
35
42
|
onClose?: (id: string) => void;
|
|
36
43
|
testId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Full override for a single item's pill markup — e.g. to wrap it in an
|
|
46
|
+
* app-specific hover preview, or to show extra state (a dirty dot) the
|
|
47
|
+
* generic pill doesn't know about. Receives the item plus ready-bound
|
|
48
|
+
* restore/close callbacks; when provided, the built-in pill is skipped for
|
|
49
|
+
* that item and this renders in its place inside the same positioned tray.
|
|
50
|
+
*/
|
|
51
|
+
renderItem?: (item: WorkspaceTrayItem, api: {
|
|
52
|
+
restore: () => void;
|
|
53
|
+
close: () => void;
|
|
54
|
+
}) => ReactNode;
|
|
37
55
|
}
|
|
38
56
|
export interface WorkspaceTrayPreviewProps {
|
|
39
57
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceWindowProps.d.ts","sourceRoot":"","sources":["../../../src/Components/WorkspaceWindow/WorkspaceWindowProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;AAExE,MAAM,WAAW,oBAAoB;IACnC,+CAA+C;IAC/C,KAAK,EAAE,SAAS,CAAC;IACjB,0EAA0E;IAC1E,KAAK,EAAE,oBAAoB,CAAC;IAC5B,mBAAmB;IACnB,QAAQ,EAAE,SAAS,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B,8EAA8E;IAC9E,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,kEAAkE;IAClE,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"WorkspaceWindowProps.d.ts","sourceRoot":"","sources":["../../../src/Components/WorkspaceWindow/WorkspaceWindowProps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;AAExE,MAAM,WAAW,oBAAoB;IACnC,+CAA+C;IAC/C,KAAK,EAAE,SAAS,CAAC;IACjB,0EAA0E;IAC1E,KAAK,EAAE,oBAAoB,CAAC;IAC5B,mBAAmB;IACnB,QAAQ,EAAE,SAAS,CAAC;IAEpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B,8EAA8E;IAC9E,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,kEAAkE;IAClE,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,CACX,IAAI,EAAE,iBAAiB,EACvB,GAAG,EAAE;QAAE,OAAO,EAAE,MAAM,IAAI,CAAC;QAAC,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAC5C,SAAS,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;OAKG;IACH,OAAO,EAAE,SAAS,GAAG,CAAC,CAAC,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,KAAK,SAAS,CAAC,CAAC;IACjE,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,cAAc,GAAG,YAAY,CAAC;IACpE,8EAA8E;IAC9E,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
+
declare const $badgeBorder: {
|
|
3
|
+
variable: string;
|
|
4
|
+
reference: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Avatar: {
|
|
7
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
8
|
+
badge: {
|
|
9
|
+
[$badgeBorder.variable]: any;
|
|
10
|
+
};
|
|
11
|
+
container: {
|
|
12
|
+
[$badgeBorder.variable]: any;
|
|
13
|
+
};
|
|
14
|
+
}) | undefined;
|
|
15
|
+
sizes?: {
|
|
16
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
17
|
+
keys: ("container" | "label" | "group" | "badge" | "excessLabel")[];
|
|
18
|
+
}>;
|
|
19
|
+
} | undefined;
|
|
20
|
+
variants?: {
|
|
21
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
22
|
+
keys: ("container" | "label" | "group" | "badge" | "excessLabel")[];
|
|
23
|
+
}>;
|
|
24
|
+
} | undefined;
|
|
25
|
+
defaultProps?: {
|
|
26
|
+
size?: string | number | undefined;
|
|
27
|
+
variant?: string | number | undefined;
|
|
28
|
+
colorScheme?: string | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
parts: ("container" | "label" | "group" | "badge" | "excessLabel")[];
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=Avatar.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Avatar.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,YAAY;;;CAAgC,CAAC;AAoBnD,eAAO,MAAM,MAAM;6BAZ4B,kBAAkB;;YAI3D,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAQ;;;YAG/B,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAQ;;;;;;;;;;;;;;;;;;;CAOnC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Avatar = 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.avatarAnatomy.keys);
|
|
7
|
+
const $badgeBorder = (0, react_1.cssVar)("avatar-border-color");
|
|
8
|
+
/**
|
|
9
|
+
* Same bug class as Menu/Modal/Popover: Chakra's own Avatar baseStyle hardcodes the badge/
|
|
10
|
+
* container border color to `colors.white` outside `_dark` (it's a cutout ring meant to match
|
|
11
|
+
* the surface the avatar sits on), gated behind `_dark`, which this theme-swap app never
|
|
12
|
+
* triggers. Every bare `<Avatar>`/`<AvatarBadge>` renders a white ring on the dark canvas.
|
|
13
|
+
*/
|
|
14
|
+
const baseStyle = definePartsStyle(({ theme }) => {
|
|
15
|
+
var _a, _b, _c, _d, _e, _f;
|
|
16
|
+
const border = (_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";
|
|
17
|
+
return {
|
|
18
|
+
badge: {
|
|
19
|
+
[$badgeBorder.variable]: border,
|
|
20
|
+
},
|
|
21
|
+
container: {
|
|
22
|
+
[$badgeBorder.variable]: border,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
exports.Avatar = defineMultiStyleConfig({
|
|
27
|
+
baseStyle,
|
|
28
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
+
declare const $bg: {
|
|
3
|
+
variable: string;
|
|
4
|
+
reference: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Drawer: {
|
|
7
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
8
|
+
dialog: {
|
|
9
|
+
[$bg.variable]: any;
|
|
10
|
+
bg: string;
|
|
11
|
+
color: any;
|
|
12
|
+
};
|
|
13
|
+
}) | undefined;
|
|
14
|
+
sizes?: {
|
|
15
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
16
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
17
|
+
}>;
|
|
18
|
+
} | undefined;
|
|
19
|
+
variants?: {
|
|
20
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
21
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
22
|
+
}>;
|
|
23
|
+
} | undefined;
|
|
24
|
+
defaultProps?: {
|
|
25
|
+
size?: string | number | undefined;
|
|
26
|
+
variant?: string | number | undefined;
|
|
27
|
+
colorScheme?: string | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
parts: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=Drawer.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Drawer.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,GAAG;;;CAAsB,CAAC;AAgBhC,eAAO,MAAM,MAAM;6BAR4B,kBAAkB;;YAE7D,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;;;;;;;;;;;CAQlG,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Drawer = 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.drawerAnatomy.keys);
|
|
7
|
+
const $bg = (0, react_1.cssVar)("drawer-bg");
|
|
8
|
+
/**
|
|
9
|
+
* Chakra's own Drawer baseStyle hardcodes `--drawer-bg` to "colors.white" (gated behind `_dark`,
|
|
10
|
+
* which this theme-swap app never triggers — see createBrandTheme's colorMode comment), so every
|
|
11
|
+
* `<DrawerContent>` in every consuming app renders a white panel on the dark canvas — the same
|
|
12
|
+
* bug class `Menu.styles.ts`/`Modal.styles.ts` already fix.
|
|
13
|
+
*/
|
|
14
|
+
const baseStyle = definePartsStyle(({ theme }) => {
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
16
|
+
return ({
|
|
17
|
+
dialog: {
|
|
18
|
+
[$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",
|
|
19
|
+
bg: $bg.reference,
|
|
20
|
+
color: (_j = (_h = (_g = theme.colors) === null || _g === void 0 ? void 0 : _g.text) === null || _h === void 0 ? void 0 : _h[900]) !== null && _j !== void 0 ? _j : "inherit",
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
exports.Drawer = defineMultiStyleConfig({
|
|
25
|
+
baseStyle,
|
|
26
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
+
declare const $bg: {
|
|
3
|
+
variable: string;
|
|
4
|
+
reference: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Chakra's own MenuList baseStyle hardcodes `--menu-bg` to "#fff" (gated behind `_dark`, which
|
|
8
|
+
* this theme-swap app never triggers — see createBrandTheme's colorMode comment), so every
|
|
9
|
+
* bare `<MenuList>` in every consuming app renders a white dropdown on the dark canvas. A `bg`
|
|
10
|
+
* prop set by a call site only recolors the list's own box, not this var — which `MenuItem`'s
|
|
11
|
+
* `_focus`/`_active`/`_expanded` states read — so both must come from the theme, not per call
|
|
12
|
+
* site (already duplicated at every fix-it-locally call site: NavigationBar, ButtonGroupIcon,
|
|
13
|
+
* ThemeSwitcher's BrandMenu/MenuVariant).
|
|
14
|
+
*
|
|
15
|
+
* Chakra's own MenuItem baseStyle then RE-hardcodes the same `--menu-bg` var on `_focus`/
|
|
16
|
+
* `_active`/`_expanded` (to `colors.gray.100`/`.200`, also `_dark`-gated) — so even with `list`
|
|
17
|
+
* fixed above, hovering/focusing an item snaps the var back to a near-white literal. Override
|
|
18
|
+
* `item` here too, to a theme-driven hover tint, or every hover state stays white regardless of
|
|
19
|
+
* the list fix.
|
|
20
|
+
*/
|
|
21
|
+
declare const $itemBg: {
|
|
22
|
+
variable: string;
|
|
23
|
+
reference: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const Menu: {
|
|
26
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
27
|
+
list: {
|
|
28
|
+
[$bg.variable]: any;
|
|
29
|
+
bg: string;
|
|
30
|
+
color: any;
|
|
31
|
+
};
|
|
32
|
+
item: {
|
|
33
|
+
bg: string;
|
|
34
|
+
_focus: {
|
|
35
|
+
[$itemBg.variable]: any;
|
|
36
|
+
bg: string;
|
|
37
|
+
};
|
|
38
|
+
_hover: {
|
|
39
|
+
[$itemBg.variable]: any;
|
|
40
|
+
bg: string;
|
|
41
|
+
};
|
|
42
|
+
_active: {
|
|
43
|
+
[$itemBg.variable]: any;
|
|
44
|
+
bg: string;
|
|
45
|
+
};
|
|
46
|
+
_expanded: {
|
|
47
|
+
[$itemBg.variable]: any;
|
|
48
|
+
bg: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}) | undefined;
|
|
52
|
+
sizes?: {
|
|
53
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
54
|
+
keys: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
|
|
55
|
+
}>;
|
|
56
|
+
} | undefined;
|
|
57
|
+
variants?: {
|
|
58
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
59
|
+
keys: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
|
|
60
|
+
}>;
|
|
61
|
+
} | undefined;
|
|
62
|
+
defaultProps?: {
|
|
63
|
+
size?: string | number | undefined;
|
|
64
|
+
variant?: string | number | undefined;
|
|
65
|
+
colorScheme?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
parts: ("button" | "list" | "icon" | "item" | "groupTitle" | "command" | "divider")[];
|
|
68
|
+
};
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=Menu.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Menu.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,GAAG;;;CAAoB,CAAC;AAE9B;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,OAAO;;;CAAyB,CAAC;AA4BvC,eAAO,MAAM,IAAI;6BA1B8B,kBAAkB;;YAO3D,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAkF;;;;;;;gBAWtF,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAS;;;;gBAC3B,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAS;;;;gBAC1B,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAU;;;;gBAC1B,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAS;;;;;;;;;;;;;;;;;;;;;CAO5C,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Menu = 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.menuAnatomy.keys);
|
|
7
|
+
const $bg = (0, react_1.cssVar)("menu-bg");
|
|
8
|
+
/**
|
|
9
|
+
* Chakra's own MenuList baseStyle hardcodes `--menu-bg` to "#fff" (gated behind `_dark`, which
|
|
10
|
+
* this theme-swap app never triggers — see createBrandTheme's colorMode comment), so every
|
|
11
|
+
* bare `<MenuList>` in every consuming app renders a white dropdown on the dark canvas. A `bg`
|
|
12
|
+
* prop set by a call site only recolors the list's own box, not this var — which `MenuItem`'s
|
|
13
|
+
* `_focus`/`_active`/`_expanded` states read — so both must come from the theme, not per call
|
|
14
|
+
* site (already duplicated at every fix-it-locally call site: NavigationBar, ButtonGroupIcon,
|
|
15
|
+
* ThemeSwitcher's BrandMenu/MenuVariant).
|
|
16
|
+
*
|
|
17
|
+
* Chakra's own MenuItem baseStyle then RE-hardcodes the same `--menu-bg` var on `_focus`/
|
|
18
|
+
* `_active`/`_expanded` (to `colors.gray.100`/`.200`, also `_dark`-gated) — so even with `list`
|
|
19
|
+
* fixed above, hovering/focusing an item snaps the var back to a near-white literal. Override
|
|
20
|
+
* `item` here too, to a theme-driven hover tint, or every hover state stays white regardless of
|
|
21
|
+
* the list fix.
|
|
22
|
+
*/
|
|
23
|
+
const $itemBg = (0, react_1.cssVar)("menu-item-bg");
|
|
24
|
+
const baseStyle = definePartsStyle(({ theme }) => {
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
26
|
+
const hoverBg = (_g = (_d = (_c = (_b = (_a = theme.colors) === null || _a === void 0 ? void 0 : _a.primary) === null || _b === void 0 ? void 0 : _b.opacity) === null || _c === void 0 ? void 0 : _c[8]) !== null && _d !== void 0 ? _d : (_f = (_e = theme.colors) === null || _e === void 0 ? void 0 : _e.gray) === null || _f === void 0 ? void 0 : _f[100]) !== null && _g !== void 0 ? _g : "#f7fafc";
|
|
27
|
+
const activeBg = (_p = (_l = (_k = (_j = (_h = theme.colors) === null || _h === void 0 ? void 0 : _h.primary) === null || _j === void 0 ? void 0 : _j.opacity) === null || _k === void 0 ? void 0 : _k[16]) !== null && _l !== void 0 ? _l : (_o = (_m = theme.colors) === null || _m === void 0 ? void 0 : _m.gray) === null || _o === void 0 ? void 0 : _o[200]) !== null && _p !== void 0 ? _p : "#edf2f7";
|
|
28
|
+
return {
|
|
29
|
+
list: {
|
|
30
|
+
[$bg.variable]: (_v = (_s = (_r = (_q = theme.colors) === null || _q === void 0 ? void 0 : _q.backgroundColor) === null || _r === void 0 ? void 0 : _r.light) !== null && _s !== void 0 ? _s : (_u = (_t = theme.colors) === null || _t === void 0 ? void 0 : _t.background) === null || _u === void 0 ? void 0 : _u[50]) !== null && _v !== void 0 ? _v : "#fff",
|
|
31
|
+
bg: $bg.reference,
|
|
32
|
+
color: (_y = (_x = (_w = theme.colors) === null || _w === void 0 ? void 0 : _w.text) === null || _x === void 0 ? void 0 : _x[900]) !== null && _y !== void 0 ? _y : "inherit",
|
|
33
|
+
},
|
|
34
|
+
// Own CSS var (`--menu-item-bg`), NOT the list's `--menu-bg` — Chakra's stock item
|
|
35
|
+
// baseStyle rewrites `--menu-bg` itself on hover/focus, so reusing that same var name
|
|
36
|
+
// here for the item's resting bg risked the two colliding under the same custom
|
|
37
|
+
// property. A dedicated var keeps the item's hover/focus tint fully independent of the
|
|
38
|
+
// list's background var.
|
|
39
|
+
item: {
|
|
40
|
+
bg: "transparent",
|
|
41
|
+
_focus: { [$itemBg.variable]: hoverBg, bg: $itemBg.reference },
|
|
42
|
+
_hover: { [$itemBg.variable]: hoverBg, bg: $itemBg.reference },
|
|
43
|
+
_active: { [$itemBg.variable]: activeBg, bg: $itemBg.reference },
|
|
44
|
+
_expanded: { [$itemBg.variable]: hoverBg, bg: $itemBg.reference },
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
exports.Menu = defineMultiStyleConfig({
|
|
49
|
+
baseStyle,
|
|
50
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
+
declare const $bg: {
|
|
3
|
+
variable: string;
|
|
4
|
+
reference: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const Modal: {
|
|
7
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
8
|
+
dialog: {
|
|
9
|
+
[$bg.variable]: any;
|
|
10
|
+
bg: string;
|
|
11
|
+
color: any;
|
|
12
|
+
};
|
|
13
|
+
}) | undefined;
|
|
14
|
+
sizes?: {
|
|
15
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
16
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
17
|
+
}>;
|
|
18
|
+
} | undefined;
|
|
19
|
+
variants?: {
|
|
20
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
21
|
+
keys: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
22
|
+
}>;
|
|
23
|
+
} | undefined;
|
|
24
|
+
defaultProps?: {
|
|
25
|
+
size?: string | number | undefined;
|
|
26
|
+
variant?: string | number | undefined;
|
|
27
|
+
colorScheme?: string | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
parts: ("overlay" | "body" | "dialog" | "footer" | "header" | "closeButton" | "dialogContainer")[];
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=Modal.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Modal.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,GAAG;;;CAAqB,CAAC;AAgB/B,eAAO,MAAM,KAAK;6BAR6B,kBAAkB;;YAE7D,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;;;;;;;;;;;CAQlG,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Modal = 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.modalAnatomy.keys);
|
|
7
|
+
const $bg = (0, react_1.cssVar)("modal-bg");
|
|
8
|
+
/**
|
|
9
|
+
* Chakra's own Modal baseStyle hardcodes `--modal-bg` to "colors.white" (gated behind `_dark`,
|
|
10
|
+
* which this theme-swap app never triggers — see createBrandTheme's colorMode comment), so every
|
|
11
|
+
* `<ModalContent>` in every consuming app renders a white dialog on the dark canvas — the same
|
|
12
|
+
* bug class `Menu.styles.ts` already fixes for dropdowns.
|
|
13
|
+
*/
|
|
14
|
+
const baseStyle = definePartsStyle(({ theme }) => {
|
|
15
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
16
|
+
return ({
|
|
17
|
+
dialog: {
|
|
18
|
+
[$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",
|
|
19
|
+
bg: $bg.reference,
|
|
20
|
+
color: (_j = (_h = (_g = theme.colors) === null || _g === void 0 ? void 0 : _g.text) === null || _h === void 0 ? void 0 : _h[900]) !== null && _j !== void 0 ? _j : "inherit",
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
exports.Modal = defineMultiStyleConfig({
|
|
25
|
+
baseStyle,
|
|
26
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
|
+
declare const $popperBg: {
|
|
3
|
+
variable: string;
|
|
4
|
+
reference: string;
|
|
5
|
+
};
|
|
6
|
+
declare const $arrowShadowColor: {
|
|
7
|
+
variable: string;
|
|
8
|
+
reference: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Popover: {
|
|
11
|
+
baseStyle?: (({ theme }: StyleFunctionProps) => {
|
|
12
|
+
content: {
|
|
13
|
+
[$popperBg.variable]: any;
|
|
14
|
+
[$arrowShadowColor.variable]: any;
|
|
15
|
+
bg: string;
|
|
16
|
+
color: any;
|
|
17
|
+
};
|
|
18
|
+
}) | undefined;
|
|
19
|
+
sizes?: {
|
|
20
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
21
|
+
keys: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
|
|
22
|
+
}>;
|
|
23
|
+
} | undefined;
|
|
24
|
+
variants?: {
|
|
25
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
26
|
+
keys: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
|
|
27
|
+
}>;
|
|
28
|
+
} | undefined;
|
|
29
|
+
defaultProps?: {
|
|
30
|
+
size?: string | number | undefined;
|
|
31
|
+
variant?: string | number | undefined;
|
|
32
|
+
colorScheme?: string | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
parts: ("content" | "body" | "footer" | "header" | "closeButton" | "popper" | "arrow")[];
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=Popover.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Popover.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,SAAS;;;CAAsB,CAAC;AACtC,QAAA,MAAM,iBAAiB;;;CAAsC,CAAC;AAmB9D,eAAO,MAAM,OAAO;6BAT2B,kBAAkB;;YAE7D,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAkF;YAEtG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,MAAuE;;;;;;;;;;;;;;;;;;;;;CAOrG,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Popover = 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.popoverAnatomy.keys);
|
|
7
|
+
const $popperBg = (0, react_1.cssVar)("popper-bg");
|
|
8
|
+
const $arrowShadowColor = (0, react_1.cssVar)("popper-arrow-shadow-color");
|
|
9
|
+
/**
|
|
10
|
+
* Same bug class as Menu (Wave G): Chakra's own Popover baseStyle hardcodes `--popper-bg` to
|
|
11
|
+
* "#fff" and `--popper-arrow-shadow-color` to `colors.gray.200`, both gated behind `_dark`, which
|
|
12
|
+
* this theme-swap app never triggers (see Menu.styles.ts / createBrandTheme's colorMode comment).
|
|
13
|
+
* Every bare `<PopoverContent>` renders a white card with a light arrow shadow on the dark canvas.
|
|
14
|
+
* `--popper-arrow-bg` is left alone — Chakra's own baseStyle already points it at `$popperBg`, so
|
|
15
|
+
* fixing `$popperBg` here fixes the arrow fill too.
|
|
16
|
+
*/
|
|
17
|
+
const baseStyle = definePartsStyle(({ theme }) => {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
return ({
|
|
20
|
+
content: {
|
|
21
|
+
[$popperBg.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
|
+
bg: $popperBg.reference,
|
|
23
|
+
[$arrowShadowColor.variable]: (_m = (_j = (_h = (_g = theme.colors) === null || _g === void 0 ? void 0 : _g.border) === null || _h === void 0 ? void 0 : _h[200]) !== null && _j !== void 0 ? _j : (_l = (_k = theme.colors) === null || _k === void 0 ? void 0 : _k.gray) === null || _l === void 0 ? void 0 : _l[200]) !== null && _m !== void 0 ? _m : "#e2e8f0",
|
|
24
|
+
color: (_q = (_p = (_o = theme.colors) === null || _o === void 0 ? void 0 : _o.text) === null || _p === void 0 ? void 0 : _p[900]) !== null && _q !== void 0 ? _q : "inherit",
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
exports.Popover = defineMultiStyleConfig({
|
|
29
|
+
baseStyle,
|
|
30
|
+
});
|
|
@@ -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 Slider: {
|
|
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" | "mark" | "track" | "filledTrack" | "thumb")[];
|
|
16
|
+
}>;
|
|
17
|
+
} | undefined;
|
|
18
|
+
variants?: {
|
|
19
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
20
|
+
keys: ("container" | "mark" | "track" | "filledTrack" | "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" | "mark" | "track" | "filledTrack" | "thumb")[];
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=Slider.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.styles.d.ts","sourceRoot":"","sources":["../../../src/Theme/chakra/Slider.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAK3D,QAAA,MAAM,QAAQ;;;CAA4B,CAAC;AAe3C,eAAO,MAAM,MAAM;6BAP4B,kBAAkB;;YAE7D,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAkF;;;;;;;;;;;;;;;;;;;;CAOvG,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Slider = 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.sliderAnatomy.keys);
|
|
7
|
+
const $thumbBg = (0, react_1.cssVar)("slider-thumb-bg");
|
|
8
|
+
/**
|
|
9
|
+
* Chakra's own Slider thumb baseStyle hardcodes `bg: "white"` with no `_dark` gate at all (unlike
|
|
10
|
+
* track/filledTrack, which at least have one Chakra's own colorMode never triggers here) — so
|
|
11
|
+
* every bare `<SliderThumb>` renders a literal white circle on the dark canvas regardless of mode,
|
|
12
|
+
* same bug class as Menu/Modal but without even the dead `_dark` branch.
|
|
13
|
+
*/
|
|
14
|
+
const baseStyle = definePartsStyle(({ theme }) => {
|
|
15
|
+
var _a, _b, _c, _d, _e, _f;
|
|
16
|
+
return ({
|
|
17
|
+
thumb: {
|
|
18
|
+
[$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",
|
|
19
|
+
bg: $thumbBg.reference,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
exports.Slider = defineMultiStyleConfig({
|
|
24
|
+
baseStyle,
|
|
25
|
+
});
|