pixelize-design-library 2.4.1-beta.11 → 2.4.1-beta.13
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/App.d.ts +4 -0
- package/dist/App.js +95 -0
- package/dist/Components/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/Components/AlertDialog/AlertDialog.js +1 -1
- package/dist/Components/Button/Button.d.ts +1 -1
- package/dist/Components/Button/Button.d.ts.map +1 -1
- package/dist/Components/Button/Button.js +2 -2
- package/dist/Components/Button/ButtonProps.d.ts +1 -1
- package/dist/Components/Button/ButtonProps.d.ts.map +1 -1
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.d.ts.map +1 -1
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +5 -2
- package/dist/Components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/Components/Checkbox/Checkbox.js +2 -2
- package/dist/Components/Checkbox/CheckboxProps.d.ts +1 -1
- package/dist/Components/Checkbox/CheckboxProps.d.ts.map +1 -1
- package/dist/Components/Common/ErrorMessage.d.ts +2 -1
- package/dist/Components/Common/ErrorMessage.d.ts.map +1 -1
- package/dist/Components/Common/ErrorMessage.js +4 -2
- package/dist/Components/Common/FormLabel.d.ts +1 -1
- package/dist/Components/Common/FormLabel.d.ts.map +1 -1
- package/dist/Components/Common/FormLabel.js +15 -2
- package/dist/Components/Common/Label.d.ts +3 -1
- package/dist/Components/Common/Label.d.ts.map +1 -1
- package/dist/Components/Common/Label.js +2 -2
- package/dist/Components/Dropdown/DropDown.d.ts.map +1 -1
- package/dist/Components/Dropdown/DropDown.js +132 -14
- package/dist/Components/Dropdown/DropdownProps.d.ts +2 -0
- package/dist/Components/Dropdown/DropdownProps.d.ts.map +1 -1
- package/dist/Components/Editor/EditorProps.d.ts +1 -1
- package/dist/Components/Editor/EditorProps.d.ts.map +1 -1
- package/dist/Components/KanbanBoard/KanbanBoard.d.ts.map +1 -1
- package/dist/Components/KanbanBoard/KanbanBoard.js +5 -2
- package/dist/Components/KanbanBoard/MeasuredItem.d.ts.map +1 -1
- package/dist/Components/KanbanBoard/MeasuredItem.js +4 -2
- package/dist/Components/NavigationBar/NavigationBar.d.ts.map +1 -1
- package/dist/Components/NavigationBar/NavigationBar.js +3 -1
- package/dist/Components/OrgSwitcher/OrgSwitcher.d.ts.map +1 -1
- package/dist/Components/OrgSwitcher/OrgSwitcher.js +40 -3
- package/dist/Components/ProductCard/ProductPrice.d.ts.map +1 -1
- package/dist/Components/ProductCard/ProductPrice.js +13 -7
- package/dist/Components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/Components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/Components/ProgressBar/ProgressBar.js +2 -2
- package/dist/Components/ProgressBar/ProgressBarProps.d.ts +1 -1
- package/dist/Components/ProgressBar/ProgressBarProps.d.ts.map +1 -1
- package/dist/Components/ScrollToTop/ScrollToTop.d.ts.map +1 -1
- package/dist/Components/ScrollToTop/ScrollToTop.js +8 -3
- package/dist/Components/SearchSelect/SearchSelect.d.ts.map +1 -1
- package/dist/Components/SearchSelect/SearchSelect.js +213 -18
- package/dist/Components/SelectSearch/SelectSearch.d.ts.map +1 -1
- package/dist/Components/SelectSearch/SelectSearch.js +89 -4
- package/dist/Components/SelectV2/SelectV2.d.ts.map +1 -1
- package/dist/Components/SelectV2/SelectV2.js +116 -29
- package/dist/Components/SideBar/SecondaryBar.d.ts.map +1 -1
- package/dist/Components/SideBar/SecondaryBar.js +15 -7
- package/dist/Components/SideBar/SideBar.d.ts.map +1 -1
- package/dist/Components/SideBar/SideBar.js +36 -5
- package/dist/Components/SideBar/components/MenuItemBox.d.ts.map +1 -1
- package/dist/Components/SideBar/components/MenuItemBox.js +44 -15
- package/dist/Components/SideBar/components/MenuPopoverContent.d.ts.map +1 -1
- package/dist/Components/SideBar/components/MenuPopoverContent.js +9 -3
- package/dist/Components/StageProgress/StageItem.d.ts.map +1 -1
- package/dist/Components/StageProgress/StageItem.js +1 -1
- package/dist/Components/StageProgress/StepperStage.d.ts.map +1 -1
- package/dist/Components/StageProgress/StepperStage.js +1 -1
- package/dist/Components/Table/Table.d.ts.map +1 -1
- package/dist/Components/Table/Table.js +1 -1
- package/dist/Components/Table/components/HeaderActions.d.ts.map +1 -1
- package/dist/Components/Table/components/HeaderActions.js +3 -1
- package/dist/Components/Table/components/TableActions.d.ts.map +1 -1
- package/dist/Components/Table/components/TableActions.js +3 -3
- package/dist/Components/Table/components/TableBody.d.ts.map +1 -1
- package/dist/Components/Table/components/TableBody.js +74 -48
- package/dist/Components/Table/components/TableGroupRow.d.ts +1 -0
- package/dist/Components/Table/components/TableGroupRow.d.ts.map +1 -1
- package/dist/Components/Table/components/TableGroupRow.js +2 -2
- package/dist/Components/Table/components/TableHeader.d.ts.map +1 -1
- package/dist/Components/Table/components/TableHeader.js +35 -42
- package/dist/Components/Table/components/TableSearch.d.ts.map +1 -1
- package/dist/Components/Table/components/TableSearch.js +1 -1
- package/dist/Components/Table/filters/CompactSelect.d.ts.map +1 -1
- package/dist/Components/Table/filters/CompactSelect.js +33 -1
- package/dist/Components/Table/filters/LeftFilterPane.d.ts.map +1 -1
- package/dist/Components/Table/filters/LeftFilterPane.js +1 -1
- package/dist/Components/Table/hooks/useTable.d.ts.map +1 -1
- package/dist/Components/Table/hooks/useTable.js +6 -2
- package/dist/Components/Table/settings/ManageColumns.d.ts.map +1 -1
- package/dist/Components/Table/settings/ManageColumns.js +13 -4
- package/dist/Components/Table/settings/TableSettings.d.ts.map +1 -1
- package/dist/Components/Table/settings/TableSettings.js +2 -2
- package/dist/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/Components/Tag/Tag.js +5 -8
- package/dist/Components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/Components/Timeline/Timeline.js +202 -202
- package/dist/Components/Toaster/Toaster.d.ts.map +1 -1
- package/dist/Components/Toaster/Toaster.js +19 -11
- package/dist/Hooks/usePreferences.d.ts.map +1 -1
- package/dist/Hooks/usePreferences.js +6 -1
- package/dist/Layout.d.ts +3 -0
- package/dist/Layout.js +286 -0
- package/dist/Pages/TInput.d.ts +3 -0
- package/dist/Pages/TInput.d.ts.map +1 -0
- package/dist/Pages/TInput.js +20 -0
- package/dist/Pages/accordion.d.ts +3 -0
- package/dist/Pages/accordion.d.ts.map +1 -0
- package/dist/Pages/accordion.js +21 -0
- package/dist/Pages/alertdialog.d.ts +3 -0
- package/dist/Pages/alertdialog.d.ts.map +1 -0
- package/dist/Pages/alertdialog.js +53 -0
- package/dist/Pages/button.d.ts +3 -0
- package/dist/Pages/button.d.ts.map +1 -0
- package/dist/Pages/button.js +32 -0
- package/dist/Pages/card.d.ts +3 -0
- package/dist/Pages/card.d.ts.map +1 -0
- package/dist/Pages/card.js +102 -0
- package/dist/Pages/chart.d.ts +4 -0
- package/dist/Pages/chart.d.ts.map +1 -0
- package/dist/Pages/chart.js +25 -0
- package/dist/Pages/checkbox.d.ts +3 -0
- package/dist/Pages/checkbox.d.ts.map +1 -0
- package/dist/Pages/checkbox.js +11 -0
- package/dist/Pages/contactForm.d.ts +3 -0
- package/dist/Pages/contactForm.d.ts.map +1 -0
- package/dist/Pages/contactForm.js +15 -0
- package/dist/Pages/customModulesTable.d.ts +4 -0
- package/dist/Pages/customModulesTable.d.ts.map +1 -0
- package/dist/Pages/customModulesTable.js +25 -0
- package/dist/Pages/datePick.d.ts +3 -0
- package/dist/Pages/datePick.d.ts.map +1 -0
- package/dist/Pages/datePick.js +49 -0
- package/dist/Pages/drawer.d.ts +3 -0
- package/dist/Pages/drawer.d.ts.map +1 -0
- package/dist/Pages/drawer.js +53 -0
- package/dist/Pages/dropdown.d.ts +3 -0
- package/dist/Pages/dropdown.d.ts.map +1 -0
- package/dist/Pages/dropdown.js +21 -0
- package/dist/Pages/editor.d.ts +3 -0
- package/dist/Pages/editor.d.ts.map +1 -0
- package/dist/Pages/editor.js +13 -0
- package/dist/Pages/feedback.d.ts +2 -0
- package/dist/Pages/feedback.d.ts.map +1 -0
- package/dist/Pages/feedback.js +12 -0
- package/dist/Pages/fileUpload.d.ts +2 -0
- package/dist/Pages/fileUpload.d.ts.map +1 -0
- package/dist/Pages/fileUpload.js +36 -0
- package/dist/Pages/input.d.ts +3 -0
- package/dist/Pages/input.d.ts.map +1 -0
- package/dist/Pages/input.js +48 -0
- package/dist/Pages/kanbanboard.d.ts +3 -0
- package/dist/Pages/kanbanboard.d.ts.map +1 -0
- package/dist/Pages/kanbanboard.js +182 -0
- package/dist/Pages/modal.d.ts +3 -0
- package/dist/Pages/modal.d.ts.map +1 -0
- package/dist/Pages/modal.js +61 -0
- package/dist/Pages/multiSelect.d.ts +3 -0
- package/dist/Pages/multiSelect.d.ts.map +1 -0
- package/dist/Pages/multiSelect.js +22 -0
- package/dist/Pages/noteArea.d.ts +3 -0
- package/dist/Pages/noteArea.d.ts.map +1 -0
- package/dist/Pages/noteArea.js +26 -0
- package/dist/Pages/notification.d.ts +3 -0
- package/dist/Pages/notification.d.ts.map +1 -0
- package/dist/Pages/notification.js +37 -0
- package/dist/Pages/numberInput.d.ts +3 -0
- package/dist/Pages/numberInput.d.ts.map +1 -0
- package/dist/Pages/numberInput.js +16 -0
- package/dist/Pages/orgSwitcher.d.ts +4 -0
- package/dist/Pages/orgSwitcher.d.ts.map +1 -0
- package/dist/Pages/orgSwitcher.js +36 -0
- package/dist/Pages/organizationDetails.d.ts +4 -0
- package/dist/Pages/organizationDetails.d.ts.map +1 -0
- package/dist/Pages/organizationDetails.js +80 -0
- package/dist/Pages/photoViewer.d.ts +3 -0
- package/dist/Pages/photoViewer.d.ts.map +1 -0
- package/dist/Pages/photoViewer.js +12 -0
- package/dist/Pages/pinInputs.d.ts +3 -0
- package/dist/Pages/pinInputs.d.ts.map +1 -0
- package/dist/Pages/pinInputs.js +11 -0
- package/dist/Pages/productCaard.d.ts +3 -0
- package/dist/Pages/productCaard.d.ts.map +1 -0
- package/dist/Pages/productCaard.js +311 -0
- package/dist/Pages/productDetailCard.d.ts +3 -0
- package/dist/Pages/productDetailCard.d.ts.map +1 -0
- package/dist/Pages/productDetailCard.js +78 -0
- package/dist/Pages/productFilter.d.ts +3 -0
- package/dist/Pages/productFilter.d.ts.map +1 -0
- package/dist/Pages/productFilter.js +148 -0
- package/dist/Pages/progressbar.d.ts +3 -0
- package/dist/Pages/progressbar.d.ts.map +1 -0
- package/dist/Pages/progressbar.js +11 -0
- package/dist/Pages/radioButton.d.ts +3 -0
- package/dist/Pages/radioButton.d.ts.map +1 -0
- package/dist/Pages/radioButton.js +18 -0
- package/dist/Pages/rolesPermission.d.ts +4 -0
- package/dist/Pages/rolesPermission.d.ts.map +1 -0
- package/dist/Pages/rolesPermission.js +144 -0
- package/dist/Pages/search.d.ts +3 -0
- package/dist/Pages/search.d.ts.map +1 -0
- package/dist/Pages/search.js +21 -0
- package/dist/Pages/searchSelect.d.ts +3 -0
- package/dist/Pages/searchSelect.d.ts.map +1 -0
- package/dist/Pages/searchSelect.js +97 -0
- package/dist/Pages/select.d.ts +3 -0
- package/dist/Pages/select.d.ts.map +1 -0
- package/dist/Pages/select.js +20 -0
- package/dist/Pages/selectSearch.d.ts +3 -0
- package/dist/Pages/selectSearch.d.ts.map +1 -0
- package/dist/Pages/selectSearch.js +58 -0
- package/dist/Pages/signInActivityTable.d.ts +4 -0
- package/dist/Pages/signInActivityTable.d.ts.map +1 -0
- package/dist/Pages/signInActivityTable.js +17 -0
- package/dist/Pages/skeleton.d.ts +3 -0
- package/dist/Pages/skeleton.d.ts.map +1 -0
- package/dist/Pages/skeleton.js +12 -0
- package/dist/Pages/stageProgress.d.ts +4 -0
- package/dist/Pages/stageProgress.d.ts.map +1 -0
- package/dist/Pages/stageProgress.js +31 -0
- package/dist/Pages/switch.d.ts +3 -0
- package/dist/Pages/switch.d.ts.map +1 -0
- package/dist/Pages/switch.js +17 -0
- package/dist/Pages/table.d.ts +3 -0
- package/dist/Pages/table.d.ts.map +1 -0
- package/dist/Pages/table.js +182 -0
- package/dist/Pages/tag.d.ts +3 -0
- package/dist/Pages/tag.d.ts.map +1 -0
- package/dist/Pages/tag.js +27 -0
- package/dist/Pages/textArea.d.ts +3 -0
- package/dist/Pages/textArea.d.ts.map +1 -0
- package/dist/Pages/textArea.js +14 -0
- package/dist/Pages/tier1.d.ts +4 -0
- package/dist/Pages/tier1.d.ts.map +1 -0
- package/dist/Pages/tier1.js +86 -0
- package/dist/Pages/timeline.d.ts +3 -0
- package/dist/Pages/timeline.d.ts.map +1 -0
- package/dist/Pages/timeline.js +73 -0
- package/dist/Pages/tooltip.d.ts +3 -0
- package/dist/Pages/tooltip.d.ts.map +1 -0
- package/dist/Pages/tooltip.js +11 -0
- package/dist/Pages/toster.d.ts +3 -0
- package/dist/Pages/toster.d.ts.map +1 -0
- package/dist/Pages/toster.js +53 -0
- package/dist/Pages/upgradeButton.d.ts +4 -0
- package/dist/Pages/upgradeButton.d.ts.map +1 -0
- package/dist/Pages/upgradeButton.js +17 -0
- package/dist/Pages/userDetails.d.ts +4 -0
- package/dist/Pages/userDetails.d.ts.map +1 -0
- package/dist/Pages/userDetails.js +79 -0
- package/dist/Pages/verifyEmail.d.ts +3 -0
- package/dist/Pages/verifyEmail.d.ts.map +1 -0
- package/dist/Pages/verifyEmail.js +17 -0
- package/dist/Theme/index.d.ts.map +1 -1
- package/dist/Theme/index.js +25 -9
- package/dist/Theme/provider/PixelizeThemeProvider.d.ts.map +1 -1
- package/dist/Theme/provider/PixelizeThemeProvider.js +17 -7
- package/dist/Utils/rafThrottle.d.ts +15 -0
- package/dist/Utils/rafThrottle.d.ts.map +1 -0
- package/dist/Utils/rafThrottle.js +34 -0
- package/dist/Utils/table.d.ts.map +1 -1
- package/dist/Utils/table.js +16 -5
- package/dist/bootstrap.d.ts +2 -0
- package/dist/bootstrap.js +16 -0
- package/dist/esm/App.js +90 -0
- package/dist/esm/Assets/defaultLogo.js +5 -0
- package/dist/esm/Components/Accordion/Accordion.js +34 -0
- package/dist/esm/Components/Accordion/AccordionProps.js +1 -0
- package/dist/esm/Components/Accordion/accordionColors.js +30 -0
- package/dist/esm/Components/AlertDialog/AlertDialog.js +9 -0
- package/dist/esm/Components/AlertDialog/AlertDialogProps.js +1 -0
- package/dist/esm/Components/Apexcharts/ApexBarChart/ApexBarChart.js +71 -0
- package/dist/esm/Components/Apexcharts/ApexBarChart/ApexBarChartProps.js +1 -0
- package/dist/esm/Components/Apexcharts/ApexLineChart/ApexLineChart.js +149 -0
- package/dist/esm/Components/Apexcharts/ApexLineChart/ApexLineChartProps.js +1 -0
- package/dist/esm/Components/Apexcharts/ApexPieChart/ApexPieChart.js +161 -0
- package/dist/esm/Components/Apexcharts/ApexPieChart/ApexPieChartProps.js +1 -0
- package/dist/esm/Components/Apexcharts/ApexPolarCharts/ApexPolarCharts.js +79 -0
- package/dist/esm/Components/Apexcharts/ApexPolarCharts/ApexPolarChartsProps.js +1 -0
- package/dist/esm/Components/Breadcrumbs/Breadcrumbs.js +9 -0
- package/dist/esm/Components/Breadcrumbs/Breadcrumbs.stories.js +5 -0
- package/dist/esm/Components/Breadcrumbs/BreadcrumbsProps.js +1 -0
- package/dist/esm/Components/Button/Button.js +7 -0
- package/dist/esm/Components/Button/Button.stories.js +5 -0
- package/dist/esm/Components/Button/Button.styles.js +204 -0
- package/dist/esm/Components/Button/ButtonProps.js +1 -0
- package/dist/esm/Components/ButtonGroupIcon/ButtonGoupIconProps.js +1 -0
- package/dist/esm/Components/ButtonGroupIcon/ButtonGroupIcon.js +98 -0
- package/dist/esm/Components/ButtonGroupIcon/ButtonGroupIcon.stories.js +5 -0
- package/dist/esm/Components/Buttons/Buttons.js +5 -0
- package/dist/esm/Components/Buttons/ButtonsProps.js +1 -0
- package/dist/esm/Components/Card/Card.js +5 -0
- package/dist/esm/Components/Card/CardProps.js +1 -0
- package/dist/esm/Components/Card/PaymentCard/PaymentCard.js +65 -0
- package/dist/esm/Components/Card/PaymentCard/PaymentCardProps.js +1 -0
- package/dist/esm/Components/Checkbox/Checkbox.js +28 -0
- package/dist/esm/Components/Checkbox/Checkbox.stories.js +6 -0
- package/dist/esm/Components/Checkbox/Checkbox.styles.js +69 -0
- package/dist/esm/Components/Checkbox/CheckboxProps.js +1 -0
- package/dist/esm/Components/Common/ErrorComponent.js +15 -0
- package/dist/esm/Components/Common/ErrorMessage.js +17 -0
- package/dist/esm/Components/Common/FormLabel.js +32 -0
- package/dist/esm/Components/Common/FormattedDescription.js +57 -0
- package/dist/esm/Components/Common/HelperText.js +8 -0
- package/dist/esm/Components/Common/Label.js +13 -0
- package/dist/esm/Components/Common/fieldStyles.js +34 -0
- package/dist/esm/Components/ContactForm/ContactForm.js +112 -0
- package/dist/esm/Components/ContactForm/ContactFormProps.js +1 -0
- package/dist/esm/Components/CopyButton/CopyButton.js +44 -0
- package/dist/esm/Components/CustomModulesTable/CustomModulesTable.js +63 -0
- package/dist/esm/Components/CustomModulesTable/CustomModulesTableProps.js +1 -0
- package/dist/esm/Components/CustomModulesTable/DeleteModuleModal.js +11 -0
- package/dist/esm/Components/CustomModulesTable/EditModuleModal.js +20 -0
- package/dist/esm/Components/DatePicker/CalendarPanel.js +133 -0
- package/dist/esm/Components/DatePicker/DatePicker.js +252 -0
- package/dist/esm/Components/DatePicker/DatePickerProps.js +1 -0
- package/dist/esm/Components/DatePicker/RangeDatePicker.js +206 -0
- package/dist/esm/Components/DatePicker/SingleDatePicker.js +972 -0
- package/dist/esm/Components/DatePicker/ThemeDatePicker.js +27 -0
- package/dist/esm/Components/DatePicker/TimeOnlyPicker.js +78 -0
- package/dist/esm/Components/DatePicker/TimePicker.js +70 -0
- package/dist/esm/Components/DatePicker/TimePickerInput.js +412 -0
- package/dist/esm/Components/Divider/Divider.js +9 -0
- package/dist/esm/Components/Drawer/Drawer.js +24 -0
- package/dist/esm/Components/Drawer/DrawerProps.js +1 -0
- package/dist/esm/Components/Dropdown/DropDown.js +249 -0
- package/dist/esm/Components/Dropdown/DropdownProps.js +1 -0
- package/dist/esm/Components/Editor/Editor.js +38 -0
- package/dist/esm/Components/Editor/EditorProps.js +1 -0
- package/dist/esm/Components/Editor/joditThemeVars.js +75 -0
- package/dist/esm/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +15 -0
- package/dist/esm/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.js +1 -0
- package/dist/esm/Components/EmptyState/EmptyState.js +40 -0
- package/dist/esm/Components/EmptyState/EmptyStateProps.js +1 -0
- package/dist/esm/Components/FeedbackForm/FeedbackForm.js +65 -0
- package/dist/esm/Components/FieldSelectModal/FieldSelectModal.js +33 -0
- package/dist/esm/Components/FilePreview/FilePreview.js +79 -0
- package/dist/esm/Components/FilePreview/FilePreviewProps.js +1 -0
- package/dist/esm/Components/FileUpload/FileUpload.js +82 -0
- package/dist/esm/Components/FileUpload/FileUploadProps.js +1 -0
- package/dist/esm/Components/FileUpload/constants.js +24 -0
- package/dist/esm/Components/FileUploader/FileUploader.js +78 -0
- package/dist/esm/Components/FileUploader/FileUploaderProps.js +1 -0
- package/dist/esm/Components/FilterSidebar/FilterSidebar.js +258 -0
- package/dist/esm/Components/FilterSidebar/filterHoverStyle.js +10 -0
- package/dist/esm/Components/Form/FormWrapper.js +9 -0
- package/dist/esm/Components/Header/Header.js +55 -0
- package/dist/esm/Components/Header/HeaderActions.js +24 -0
- package/dist/esm/Components/Header/HeaderProps.js +1 -0
- package/dist/esm/Components/Header/components/desktopMenu.js +43 -0
- package/dist/esm/Components/Header/components/mobileMenu.js +37 -0
- package/dist/esm/Components/Input/Input/Input.js +40 -0
- package/dist/esm/Components/Input/Input/InputProps.js +1 -0
- package/dist/esm/Components/Input/PhoneNumberInput.js +62 -0
- package/dist/esm/Components/Input/PhoneNumberInputProps.js +1 -0
- package/dist/esm/Components/Input/Switch/InputSwitch.js +21 -0
- package/dist/esm/Components/Input/TextInput.js +16 -0
- package/dist/esm/Components/Input/TextInput.stories.js +7 -0
- package/dist/esm/Components/Input/TextInput.styles.js +101 -0
- package/dist/esm/Components/Input/TextInputProps.js +1 -0
- package/dist/esm/Components/Input/textInputIconSize.js +36 -0
- package/dist/esm/Components/InputTextArea/InputTextArea.js +8 -0
- package/dist/esm/Components/InputTextArea/InputTextArea.style.js +77 -0
- package/dist/esm/Components/InputTextArea/InputTextAreaProps.js +1 -0
- package/dist/esm/Components/KanbanBoard/AccountCard.js +22 -0
- package/dist/esm/Components/KanbanBoard/AccountRow.js +10 -0
- package/dist/esm/Components/KanbanBoard/KanbanActions/KanbanActions.js +13 -0
- package/dist/esm/Components/KanbanBoard/KanbanBoard.js +453 -0
- package/dist/esm/Components/KanbanBoard/KanbanBoardProps.js +1 -0
- package/dist/esm/Components/KanbanBoard/MeasuredItem.js +54 -0
- package/dist/esm/Components/LazyWrapper/LazyWrapper.js +10 -0
- package/dist/esm/Components/LimitReachedModal/LimitReachedModal.js +40 -0
- package/dist/esm/Components/LimitReachedModal/LimitReachedModalProps.js +1 -0
- package/dist/esm/Components/LimitReachedModal/limitReachedCopy.js +50 -0
- package/dist/esm/Components/Loading/Loading.js +24 -0
- package/dist/esm/Components/Loading/Loading.stories.js +6 -0
- package/dist/esm/Components/Loading/LoadingProps.js +1 -0
- package/dist/esm/Components/Modal/Modal.js +30 -0
- package/dist/esm/Components/Modal/Modal.stories.js +6 -0
- package/dist/esm/Components/Modal/ModalProps.js +1 -0
- package/dist/esm/Components/MoreItems/MoreItems.js +22 -0
- package/dist/esm/Components/MoreItems/MoreItemsProps.js +1 -0
- package/dist/esm/Components/MultiSelect/MultiSelect.js +70 -0
- package/dist/esm/Components/MultiSelect/MultiSelectProps.js +1 -0
- package/dist/esm/Components/NavigationBar/NavBar.stories.js +2 -0
- package/dist/esm/Components/NavigationBar/NavigationBar.js +57 -0
- package/dist/esm/Components/NavigationBar/NavigationBarProps.js +1 -0
- package/dist/esm/Components/NoteTextArea/NoteTextArea.js +142 -0
- package/dist/esm/Components/NoteTextArea/NoteTextAreaProps.js +1 -0
- package/dist/esm/Components/Notification/Notification.js +106 -0
- package/dist/esm/Components/Notification/NotificationProps.js +1 -0
- package/dist/esm/Components/NumberInput/NumberInput.js +6 -0
- package/dist/esm/Components/NumberInput/NumberInput.styles.js +85 -0
- package/dist/esm/Components/NumberInput/NumberInputProps.js +1 -0
- package/dist/esm/Components/OrgSwitcher/OrgSwitcher.js +116 -0
- package/dist/esm/Components/OrgSwitcher/OrgSwitcherProps.js +34 -0
- package/dist/esm/Components/OrganizationDetails/CreateOrgModal.js +57 -0
- package/dist/esm/Components/OrganizationDetails/DeleteOrgModal.js +11 -0
- package/dist/esm/Components/OrganizationDetails/OrganizationDetails.js +165 -0
- package/dist/esm/Components/OrganizationDetails/OrganizationDetailsProps.js +1 -0
- package/dist/esm/Components/PdfViewer/PdfViewer.js +10 -0
- package/dist/esm/Components/PinInput/PinInput.js +15 -0
- package/dist/esm/Components/PinInput/PinInput.stories.js +5 -0
- package/dist/esm/Components/PinInput/PinInputProps.js +1 -0
- package/dist/esm/Components/PinInputs/PinInputs.js +48 -0
- package/dist/esm/Components/PinInputs/PinInputsProps.js +1 -0
- package/dist/esm/Components/PlanBadge/PlanBadge.js +17 -0
- package/dist/esm/Components/PlanBadge/PlanBadgeProps.js +1 -0
- package/dist/esm/Components/PlanPill/PlanPill.js +40 -0
- package/dist/esm/Components/PlanPill/PlanPillProps.js +1 -0
- package/dist/esm/Components/PlanPill/planPillGradient.js +17 -0
- package/dist/esm/Components/ProductCard/ProductCard.js +62 -0
- package/dist/esm/Components/ProductCard/ProductCardProps.js +1 -0
- package/dist/esm/Components/ProductCard/ProductLabel.js +18 -0
- package/dist/esm/Components/ProductCard/ProductPrice.js +110 -0
- package/dist/esm/Components/ProductCard/ProductReview.js +19 -0
- package/dist/esm/Components/ProductCard/ProductTags.js +48 -0
- package/dist/esm/Components/ProductDetails/ProductDetails.js +40 -0
- package/dist/esm/Components/ProductDetails/ProductDetailsProps.js +1 -0
- package/dist/esm/Components/ProductDetails/ProductDtlPrice.js +22 -0
- package/dist/esm/Components/ProductDetails/ProductImageSlider.js +188 -0
- package/dist/esm/Components/ProfileCard/ProfileCard.js +34 -0
- package/dist/esm/Components/ProfileCard/ProfileCard.stories.js +5 -0
- package/dist/esm/Components/ProfileCard/ProfileCardProps.js +1 -0
- package/dist/esm/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +70 -0
- package/dist/esm/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.js +5 -0
- package/dist/esm/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.js +1 -0
- package/dist/esm/Components/ProgressBar/ProgressBar.js +6 -0
- package/dist/esm/Components/ProgressBar/ProgressBar.stories.js +6 -0
- package/dist/esm/Components/ProgressBar/ProgressBarProps.js +1 -0
- package/dist/esm/Components/RadioButton/RadioButton.js +25 -0
- package/dist/esm/Components/RadioButton/RadioButton.stories.js +6 -0
- package/dist/esm/Components/RadioButton/RadioButtonProps.js +1 -0
- package/dist/esm/Components/Reorder/Reorder.js +22 -0
- package/dist/esm/Components/Reorder/ReorderProps.js +1 -0
- package/dist/esm/Components/RolesPermission/DeleteRoleModal.js +13 -0
- package/dist/esm/Components/RolesPermission/RolesPermission.js +121 -0
- package/dist/esm/Components/RolesPermission/RolesPermissionProps.js +1 -0
- package/dist/esm/Components/ScrollToTop/ScrollToTop.js +67 -0
- package/dist/esm/Components/Search/Search.js +29 -0
- package/dist/esm/Components/Search/SearchProps.js +1 -0
- package/dist/esm/Components/SearchSelect/SearchSelect.js +518 -0
- package/dist/esm/Components/SearchSelect/SearchSelectProps.js +1 -0
- package/dist/esm/Components/SearchSelect/SelectTruncatedLabel.js +17 -0
- package/dist/esm/Components/SearchSelect/searchSelectSize.js +93 -0
- package/dist/esm/Components/Select/Select.js +24 -0
- package/dist/esm/Components/Select/Select.stories.js +7 -0
- package/dist/esm/Components/Select/Select.styles.js +108 -0
- package/dist/esm/Components/Select/SelectProps.js +1 -0
- package/dist/esm/Components/SelectSearch/SelectSearch.js +270 -0
- package/dist/esm/Components/SelectSearch/SelectSearchProps.js +1 -0
- package/dist/esm/Components/SelectV2/SelectV2.js +233 -0
- package/dist/esm/Components/SelectV2/SelectV2Props.js +1 -0
- package/dist/esm/Components/SideBar/SecondaryBar.js +67 -0
- package/dist/esm/Components/SideBar/SideBar.js +237 -0
- package/dist/esm/Components/SideBar/SideBarProps.js +1 -0
- package/dist/esm/Components/SideBar/Sidebar.stories.js +6 -0
- package/dist/esm/Components/SideBar/components/MenuItemBox.js +132 -0
- package/dist/esm/Components/SideBar/components/MenuItems.js +114 -0
- package/dist/esm/Components/SideBar/components/MenuPopoverContent.js +54 -0
- package/dist/esm/Components/SideBar/components/OtherApps.js +20 -0
- package/dist/esm/Components/SideBar/components/OverflowTooltipText.js +29 -0
- package/dist/esm/Components/SideBar/components/TextTruncation.js +27 -0
- package/dist/esm/Components/SideBar/sidebarAccentColors.js +31 -0
- package/dist/esm/Components/SignInActivityTable/SignInActivityTable.js +34 -0
- package/dist/esm/Components/SignInActivityTable/SignInActivityTableProps.js +1 -0
- package/dist/esm/Components/Skeletons/Skeleton.stories.js +6 -0
- package/dist/esm/Components/Skeletons/SkeletonProps.js +1 -0
- package/dist/esm/Components/Skeletons/Skeletons.js +5 -0
- package/dist/esm/Components/Slider/Slider.js +41 -0
- package/dist/esm/Components/StageProgress/StageItem.js +85 -0
- package/dist/esm/Components/StageProgress/StageProgress.js +47 -0
- package/dist/esm/Components/StageProgress/StageProgressProps.js +29 -0
- package/dist/esm/Components/StageProgress/StepperStage.js +38 -0
- package/dist/esm/Components/Switch/Switch.js +11 -0
- package/dist/esm/Components/Switch/SwitchProps.js +1 -0
- package/dist/esm/Components/Table/Table.js +430 -0
- package/dist/esm/Components/Table/Table.stories.js +8 -0
- package/dist/esm/Components/Table/TableProps.js +1 -0
- package/dist/esm/Components/Table/components/HeaderActions.js +47 -0
- package/dist/esm/Components/Table/components/Pagination.js +19 -0
- package/dist/esm/Components/Table/components/TableActions.js +55 -0
- package/dist/esm/Components/Table/components/TableBody.js +337 -0
- package/dist/esm/Components/Table/components/TableGroupRow.js +11 -0
- package/dist/esm/Components/Table/components/TableHeader.js +100 -0
- package/dist/esm/Components/Table/components/TableLoading.js +11 -0
- package/dist/esm/Components/Table/components/TableSearch.js +31 -0
- package/dist/esm/Components/Table/components/tableRowHoverStyle.js +22 -0
- package/dist/esm/Components/Table/filterTypes.js +1 -0
- package/dist/esm/Components/Table/filters/ActiveFilters.js +63 -0
- package/dist/esm/Components/Table/filters/CompactSelect.js +55 -0
- package/dist/esm/Components/Table/filters/LeftFilterPane.js +174 -0
- package/dist/esm/Components/Table/filters/SelectOperationControls.js +5 -0
- package/dist/esm/Components/Table/filters/TableFilters.js +45 -0
- package/dist/esm/Components/Table/filters/TextOperationControls.js +16 -0
- package/dist/esm/Components/Table/hooks/useDebounce.js +22 -0
- package/dist/esm/Components/Table/hooks/useTable.js +227 -0
- package/dist/esm/Components/Table/settings/ManageColumns.js +105 -0
- package/dist/esm/Components/Table/settings/TableSettings.js +82 -0
- package/dist/esm/Components/Tag/Tag.js +18 -0
- package/dist/esm/Components/Tag/Tag.styles.js +91 -0
- package/dist/esm/Components/Tag/TagProps.js +1 -0
- package/dist/esm/Components/Timeline/Timeline.js +250 -0
- package/dist/esm/Components/Timeline/TimelineProps.js +1 -0
- package/dist/esm/Components/Toaster/Toaster.js +120 -0
- package/dist/esm/Components/Toaster/Toaster.stories.js +7 -0
- package/dist/esm/Components/Toaster/ToasterProps.js +1 -0
- package/dist/esm/Components/Toggle/TableToggle.js +39 -0
- package/dist/esm/Components/Toggle/TableToggleProps.js +1 -0
- package/dist/esm/Components/ToolTip/OverflowToolTip.js +20 -0
- package/dist/esm/Components/ToolTip/ToolTip.js +35 -0
- package/dist/esm/Components/ToolTip/ToolTip.stories.js +6 -0
- package/dist/esm/Components/ToolTip/ToolTipProps.js +1 -0
- package/dist/esm/Components/Trail/EditableCell.js +27 -0
- package/dist/esm/Components/Trail/SelectAllCheckbox.js +5 -0
- package/dist/esm/Components/Trail/TrailWorks.js +54 -0
- package/dist/esm/Components/Trail/data.js +26 -0
- package/dist/esm/Components/UpgradeButton/UpgradeButton.js +79 -0
- package/dist/esm/Components/UpgradeButton/UpgradeButtonProps.js +1 -0
- package/dist/esm/Components/UserDetails/AddUserModal.js +101 -0
- package/dist/esm/Components/UserDetails/ChangeRoleModal.js +56 -0
- package/dist/esm/Components/UserDetails/DeactivateConfirmModal.js +14 -0
- package/dist/esm/Components/UserDetails/UserDetails.js +109 -0
- package/dist/esm/Components/UserDetails/UserDetailsProps.js +1 -0
- package/dist/esm/Components/WorkspaceWindow/WorkspaceTrayPreview.js +83 -0
- package/dist/esm/Components/WorkspaceWindow/WorkspaceWindow.js +61 -0
- package/dist/esm/Components/WorkspaceWindow/WorkspaceWindowProps.js +1 -0
- package/dist/esm/Constants/Sidebar.js +39 -0
- package/dist/esm/Hooks/useIsTruncated.js +54 -0
- package/dist/esm/Hooks/usePreferences.js +74 -0
- package/dist/esm/Hooks/useSidebarPrefs.js +68 -0
- package/dist/esm/Layout.js +281 -0
- package/dist/esm/Pages/TInput.js +15 -0
- package/dist/esm/Pages/accordion.js +16 -0
- package/dist/esm/Pages/alertdialog.js +15 -0
- package/dist/esm/Pages/button.js +27 -0
- package/dist/esm/Pages/card.js +64 -0
- package/dist/esm/Pages/chart.js +20 -0
- package/dist/esm/Pages/checkbox.js +6 -0
- package/dist/esm/Pages/contactForm.js +10 -0
- package/dist/esm/Pages/customModulesTable.js +20 -0
- package/dist/esm/Pages/datePick.js +44 -0
- package/dist/esm/Pages/drawer.js +15 -0
- package/dist/esm/Pages/dropdown.js +16 -0
- package/dist/esm/Pages/editor.js +8 -0
- package/dist/esm/Pages/feedback.js +6 -0
- package/dist/esm/Pages/fileUpload.js +29 -0
- package/dist/esm/Pages/input.js +43 -0
- package/dist/esm/Pages/kanbanboard.js +177 -0
- package/dist/esm/Pages/modal.js +23 -0
- package/dist/esm/Pages/multiSelect.js +17 -0
- package/dist/esm/Pages/noteArea.js +21 -0
- package/dist/esm/Pages/notification.js +32 -0
- package/dist/esm/Pages/numberInput.js +11 -0
- package/dist/esm/Pages/orgSwitcher.js +31 -0
- package/dist/esm/Pages/organizationDetails.js +75 -0
- package/dist/esm/Pages/photoViewer.js +7 -0
- package/dist/esm/Pages/pinInputs.js +6 -0
- package/dist/esm/Pages/productCaard.js +306 -0
- package/dist/esm/Pages/productDetailCard.js +73 -0
- package/dist/esm/Pages/productFilter.js +143 -0
- package/dist/esm/Pages/progressbar.js +6 -0
- package/dist/esm/Pages/radioButton.js +16 -0
- package/dist/esm/Pages/rolesPermission.js +139 -0
- package/dist/esm/Pages/search.js +16 -0
- package/dist/esm/Pages/searchSelect.js +92 -0
- package/dist/esm/Pages/select.js +15 -0
- package/dist/esm/Pages/selectSearch.js +53 -0
- package/dist/esm/Pages/signInActivityTable.js +12 -0
- package/dist/esm/Pages/skeleton.js +7 -0
- package/dist/esm/Pages/stageProgress.js +26 -0
- package/dist/esm/Pages/switch.js +12 -0
- package/dist/esm/Pages/table.js +175 -0
- package/dist/esm/Pages/tag.js +22 -0
- package/dist/esm/Pages/textArea.js +9 -0
- package/dist/esm/Pages/tier1.js +48 -0
- package/dist/esm/Pages/timeline.js +68 -0
- package/dist/esm/Pages/tooltip.js +6 -0
- package/dist/esm/Pages/toster.js +48 -0
- package/dist/esm/Pages/upgradeButton.js +12 -0
- package/dist/esm/Pages/userDetails.js +74 -0
- package/dist/esm/Pages/verifyEmail.js +12 -0
- package/dist/esm/Theme/chakra/Avatar.styles.js +25 -0
- package/dist/esm/Theme/chakra/Drawer.styles.js +23 -0
- package/dist/esm/Theme/chakra/Menu.styles.js +47 -0
- package/dist/esm/Theme/chakra/Modal.styles.js +23 -0
- package/dist/esm/Theme/chakra/Popover.styles.js +27 -0
- package/dist/esm/Theme/chakra/Slider.styles.js +22 -0
- package/dist/esm/Theme/chakra/Switch.styles.js +21 -0
- package/dist/esm/Theme/chakra/Tabs.styles.js +38 -0
- package/dist/esm/Theme/chakra/common.web.js +22 -0
- package/dist/esm/Theme/chakra/componentStyles.js +221 -0
- package/dist/esm/Theme/chakra/createBrandTheme.js +118 -0
- package/dist/esm/Theme/chakra/fonts.web.js +10 -0
- package/dist/esm/Theme/index.js +63 -0
- package/dist/esm/Theme/provider/PixelizeThemeProvider.js +204 -0
- package/dist/esm/Theme/provider/ThemeSwitcher.js +107 -0
- package/dist/esm/Theme/provider/colorModeStorage.js +99 -0
- package/dist/esm/Theme/provider/index.js +3 -0
- package/dist/esm/Theme/provider/useThemeMode.js +9 -0
- package/dist/esm/Theme/themeProps.js +1 -0
- package/dist/esm/Theme/tokens/brands/emerald/palette.dark.js +8 -0
- package/dist/esm/Theme/tokens/brands/emerald/palette.light.js +130 -0
- package/dist/esm/Theme/tokens/brands/index.js +73 -0
- package/dist/esm/Theme/tokens/brands/lavender/palette.dark.js +8 -0
- package/dist/esm/Theme/tokens/brands/lavender/palette.light.js +321 -0
- package/dist/esm/Theme/tokens/brands/meadow/palette.dark.js +8 -0
- package/dist/esm/Theme/tokens/brands/meadow/palette.light.js +128 -0
- package/dist/esm/Theme/tokens/brands/radiant/palette.dark.js +8 -0
- package/dist/esm/Theme/tokens/brands/radiant/palette.light.js +130 -0
- package/dist/esm/Theme/tokens/brands/rosewood/palette.dark.js +8 -0
- package/dist/esm/Theme/tokens/brands/rosewood/palette.light.js +134 -0
- package/dist/esm/Theme/tokens/brands/skyline/palette.dark.js +8 -0
- package/dist/esm/Theme/tokens/brands/skyline/palette.light.js +128 -0
- package/dist/esm/Theme/tokens/brands/slate/palette.dark.js +8 -0
- package/dist/esm/Theme/tokens/brands/slate/palette.light.js +132 -0
- package/dist/esm/Theme/tokens/brands/storefront/palette.dark.js +8 -0
- package/dist/esm/Theme/tokens/brands/storefront/palette.light.js +122 -0
- package/dist/esm/Theme/tokens/brands/zinc/palette.dark.js +202 -0
- package/dist/esm/Theme/tokens/brands/zinc/palette.light.js +381 -0
- package/dist/esm/Theme/tokens/builders/accentText.js +83 -0
- package/dist/esm/Theme/tokens/builders/buildBrandTokens.js +28 -0
- package/dist/esm/Theme/tokens/builders/buildDarkPalette.js +289 -0
- package/dist/esm/Theme/tokens/builders/chartColorsFromTheme.js +21 -0
- package/dist/esm/Theme/tokens/builders/color.js +141 -0
- package/dist/esm/Theme/tokens/builders/index.js +5 -0
- package/dist/esm/Theme/tokens/builders/outlineRung.js +63 -0
- package/dist/esm/Theme/tokens/builders/statusTone.js +56 -0
- package/dist/esm/Theme/tokens/index.js +14 -0
- package/dist/esm/Theme/tokens/primitives/breakpoints.js +8 -0
- package/dist/esm/Theme/tokens/primitives/index.js +9 -0
- package/dist/esm/Theme/tokens/primitives/letterSpacings.js +9 -0
- package/dist/esm/Theme/tokens/primitives/lineHeights.js +18 -0
- package/dist/esm/Theme/tokens/primitives/radii.js +12 -0
- package/dist/esm/Theme/tokens/primitives/shadows.js +15 -0
- package/dist/esm/Theme/tokens/primitives/sizes.js +34 -0
- package/dist/esm/Theme/tokens/primitives/space.js +33 -0
- package/dist/esm/Theme/tokens/primitives/typography.js +40 -0
- package/dist/esm/Theme/tokens/primitives/zIndices.js +16 -0
- package/dist/esm/Theme/tokens/types.js +7 -0
- package/dist/esm/Theme/useCustomTheme.js +4 -0
- package/dist/esm/Utils/accountHandoff.js +139 -0
- package/dist/esm/Utils/functions.js +7 -0
- package/dist/esm/Utils/mergeRefs.js +16 -0
- package/dist/esm/Utils/planBadge.js +105 -0
- package/dist/esm/Utils/planExpiry.js +109 -0
- package/dist/esm/Utils/rafThrottle.js +30 -0
- package/dist/esm/Utils/table.js +321 -0
- package/dist/esm/bootstrap.js +11 -0
- package/dist/esm/index.js +133 -0
- package/dist/esm/services/feedback.js +15 -0
- package/dist/esm/withTheme.js +9 -0
- package/package.json +13 -6
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { buildDarkPalette } from "../../builders/buildDarkPalette";
|
|
2
|
+
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens";
|
|
3
|
+
import { pickAccentText } from "../../builders/accentText";
|
|
4
|
+
import light from "./palette.light";
|
|
5
|
+
/**
|
|
6
|
+
* zinc dark is the shadcn dark look and INVERTS the primary: the filled button is near-white
|
|
7
|
+
* `#e4e4e7` carrying a `#18181b` label (13.96:1) — the opposite of every other brand, whose dark
|
|
8
|
+
* primary stays a lifted version of its own hue. `#e4e4e7` is shadcn's actual dark-mode `--primary`
|
|
9
|
+
* (verified against shadcn's live zinc theme registry, 2026-07-18) — a shade dimmer than pure
|
|
10
|
+
* `#fafafa`, which is shadcn's `--foreground` (default body text), not `--primary`. The generic
|
|
11
|
+
* `buildDarkPalette` derivation would only lift zinc's near-black accent to a mid grey (a light
|
|
12
|
+
* label's floor), so `primary`/`secondary`/`background` (numeric ramp)/`text`/`header`/`gray`/
|
|
13
|
+
* `border`/`boxborder`/`placeholder`/`disabled`/`table` are pinned here as explicit literals ported
|
|
14
|
+
* verbatim from Mobile-Components, matching shadcn's own dark palette as closely as web's token
|
|
15
|
+
* shape allows.
|
|
16
|
+
*
|
|
17
|
+
* `backgroundColor` (named surfaces) and `sidebar` are the two fields left to `...derived` instead
|
|
18
|
+
* of a literal port — see the comment above the `palette` object for why.
|
|
19
|
+
*
|
|
20
|
+
* `accentText` is recomputed against the OVERRIDDEN `primary` and `derived.backgroundColor.main`,
|
|
21
|
+
* not spread from `derived` — the generic derivation's `accentText` was picked for the generic
|
|
22
|
+
* (wrong) lifted primary and would be stale once `primary` is replaced below.
|
|
23
|
+
*/
|
|
24
|
+
const derived = buildDarkPalette(light);
|
|
25
|
+
const PRIMARY_500 = "#e4e4e7";
|
|
26
|
+
const SECONDARY_500 = "#a1a1aa";
|
|
27
|
+
const primary = {
|
|
28
|
+
50: "#18181b",
|
|
29
|
+
100: "#27272a",
|
|
30
|
+
200: "#3f3f46",
|
|
31
|
+
300: "#52525b",
|
|
32
|
+
400: "#a1a1aa",
|
|
33
|
+
500: PRIMARY_500,
|
|
34
|
+
600: "#fbfbfb",
|
|
35
|
+
700: "#fcfcfc",
|
|
36
|
+
800: "#fefefe",
|
|
37
|
+
900: "#ffffff",
|
|
38
|
+
opacity: buildPrimaryOpacity(PRIMARY_500),
|
|
39
|
+
};
|
|
40
|
+
const secondary = {
|
|
41
|
+
50: "#18181b",
|
|
42
|
+
100: "#27272a",
|
|
43
|
+
200: "#3f3f46",
|
|
44
|
+
300: "#52525b",
|
|
45
|
+
400: "#71717a",
|
|
46
|
+
500: SECONDARY_500,
|
|
47
|
+
600: "#b4b4bb",
|
|
48
|
+
700: "#d4d4d8",
|
|
49
|
+
800: "#e4e4e7",
|
|
50
|
+
900: "#fafafa",
|
|
51
|
+
opacity: buildPrimaryOpacity(SECONDARY_500),
|
|
52
|
+
};
|
|
53
|
+
// background[50] = the elevated surface (#0e0e11), resolved through a token, not a literal.
|
|
54
|
+
const background = {
|
|
55
|
+
50: "#0e0e11",
|
|
56
|
+
100: "#131316",
|
|
57
|
+
200: "#18181b",
|
|
58
|
+
300: "#212124",
|
|
59
|
+
400: "#27272a",
|
|
60
|
+
500: "#3f3f46",
|
|
61
|
+
600: "#52525b",
|
|
62
|
+
700: "#71717a",
|
|
63
|
+
800: "#a1a1aa",
|
|
64
|
+
900: "#d4d4d8",
|
|
65
|
+
};
|
|
66
|
+
const text = {
|
|
67
|
+
50: "#71717a",
|
|
68
|
+
100: "#8a8a93",
|
|
69
|
+
200: "#a1a1aa",
|
|
70
|
+
300: "#b4b4bb",
|
|
71
|
+
400: "#d4d4d8",
|
|
72
|
+
500: "#fafafa",
|
|
73
|
+
600: "#fbfbfb",
|
|
74
|
+
700: "#fcfcfc",
|
|
75
|
+
800: "#fefefe",
|
|
76
|
+
900: "#ffffff",
|
|
77
|
+
};
|
|
78
|
+
const header = {
|
|
79
|
+
50: "#8a8a93",
|
|
80
|
+
100: "#a1a1aa",
|
|
81
|
+
200: "#c4c4c9",
|
|
82
|
+
300: "#d4d4d8",
|
|
83
|
+
400: "#e4e4e7",
|
|
84
|
+
500: "#fafafa",
|
|
85
|
+
600: "#fbfbfb",
|
|
86
|
+
700: "#fcfcfc",
|
|
87
|
+
800: "#fefefe",
|
|
88
|
+
900: "#ffffff",
|
|
89
|
+
};
|
|
90
|
+
// muted-foreground = gray[500] = #a1a1aa (5.81:1 on the #27272a muted surface); it also serves
|
|
91
|
+
// as the focus ring on the #09090b canvas (7.76:1). gray[400] = the interactive border/icon rung,
|
|
92
|
+
// and is the one value here NOT ported verbatim: it is pinned to whatever clears the 3:1 non-text
|
|
93
|
+
// bar on the LIGHTEST named surface, which is derived rather than ported. shadcn's own #71717a
|
|
94
|
+
// measures 2.81 there, so this sits two steps lighter (3.19).
|
|
95
|
+
const gray = {
|
|
96
|
+
50: "#18181b",
|
|
97
|
+
100: "#27272a",
|
|
98
|
+
200: "#3f3f46",
|
|
99
|
+
300: "#52525b",
|
|
100
|
+
400: "#7a7a83",
|
|
101
|
+
500: "#a1a1aa",
|
|
102
|
+
600: "#b4b4bb",
|
|
103
|
+
700: "#d4d4d8",
|
|
104
|
+
800: "#e4e4e7",
|
|
105
|
+
900: "#f4f4f5",
|
|
106
|
+
};
|
|
107
|
+
// border[200] = decorative (#27272a); border[500] = interactive outline (#6b6b75, 3.78:1 on canvas).
|
|
108
|
+
const border = {
|
|
109
|
+
50: "#18181b",
|
|
110
|
+
100: "#212124",
|
|
111
|
+
200: "#27272a",
|
|
112
|
+
300: "#3f3f46",
|
|
113
|
+
400: "#52525b",
|
|
114
|
+
500: "#6b6b75",
|
|
115
|
+
600: "#8a8a93",
|
|
116
|
+
700: "#a1a1aa",
|
|
117
|
+
800: "#d4d4d8",
|
|
118
|
+
900: "#e4e4e7",
|
|
119
|
+
};
|
|
120
|
+
const boxborder = {
|
|
121
|
+
50: "#18181b",
|
|
122
|
+
100: "#212124",
|
|
123
|
+
200: "#27272a",
|
|
124
|
+
300: "#3f3f46",
|
|
125
|
+
400: "#52525b",
|
|
126
|
+
500: "#6b6b75",
|
|
127
|
+
600: "#8a8a93",
|
|
128
|
+
700: "#a1a1aa",
|
|
129
|
+
800: "#d4d4d8",
|
|
130
|
+
900: "#e4e4e7",
|
|
131
|
+
};
|
|
132
|
+
const placeholder = {
|
|
133
|
+
50: "#3f3f46",
|
|
134
|
+
100: "#52525b",
|
|
135
|
+
200: "#6b6b75",
|
|
136
|
+
300: "#71717a",
|
|
137
|
+
400: "#8a8a93",
|
|
138
|
+
500: "#a1a1aa",
|
|
139
|
+
600: "#b4b4bb",
|
|
140
|
+
700: "#c4c4c9",
|
|
141
|
+
800: "#d4d4d8",
|
|
142
|
+
900: "#e4e4e7",
|
|
143
|
+
};
|
|
144
|
+
const disabled = {
|
|
145
|
+
50: "#18181b",
|
|
146
|
+
100: "#212124",
|
|
147
|
+
200: "#27272a",
|
|
148
|
+
300: "#3f3f46",
|
|
149
|
+
400: "#4a4a52",
|
|
150
|
+
500: "#52525b",
|
|
151
|
+
600: "#6b6b75",
|
|
152
|
+
700: "#8a8a93",
|
|
153
|
+
800: "#a1a1aa",
|
|
154
|
+
900: "#d4d4d8",
|
|
155
|
+
};
|
|
156
|
+
const table = {
|
|
157
|
+
hover: {
|
|
158
|
+
50: "#0e0e11",
|
|
159
|
+
100: "#131316",
|
|
160
|
+
200: "#18181b",
|
|
161
|
+
300: "#1f1f22",
|
|
162
|
+
400: "#27272a",
|
|
163
|
+
500: "#2f2f33",
|
|
164
|
+
600: "#3f3f46",
|
|
165
|
+
700: "#52525b",
|
|
166
|
+
800: "#71717a",
|
|
167
|
+
900: "#a1a1aa",
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
const palette = {
|
|
171
|
+
...derived,
|
|
172
|
+
gradient: { from: PRIMARY_500, to: "#a1a1aa" },
|
|
173
|
+
primary,
|
|
174
|
+
secondary,
|
|
175
|
+
tertiary: { ...secondary },
|
|
176
|
+
// `backgroundColor` (named surfaces) and `sidebar` are deliberately NOT overridden with
|
|
177
|
+
// mobile's literal values: mobile's zinc names 5 groups of surfaces onto the same hex each
|
|
178
|
+
// (e.g. quaternary/medium/neutral all "#18181b"), which violates web's "every named surface
|
|
179
|
+
// is a visually distinct elevation step" invariant (`darkSurfaces.test.ts`) that every other
|
|
180
|
+
// brand is held to. Falling through to `...derived` runs zinc through the SAME generic
|
|
181
|
+
// `NAMED_SURFACE_L` staircase every other brand uses — zinc's hue is ~240deg/near-zero
|
|
182
|
+
// saturation, so the result is visually the same cool neutral, just with distinct steps.
|
|
183
|
+
// `sidebar` similarly falls through to `derived.sidebar` (== `light.sidebar`, non-inverting)
|
|
184
|
+
// rather than mobile's separately-tuned dark sidebar, matching the "sidebar never inverts"
|
|
185
|
+
// invariant every other web brand relies on (including this session's own SideBar accent fix).
|
|
186
|
+
background,
|
|
187
|
+
text,
|
|
188
|
+
header,
|
|
189
|
+
gray,
|
|
190
|
+
border,
|
|
191
|
+
boxborder,
|
|
192
|
+
placeholder,
|
|
193
|
+
disabled,
|
|
194
|
+
table,
|
|
195
|
+
accentText: pickAccentText(primary, derived.backgroundColor.main, "dark"),
|
|
196
|
+
boxShadow: {
|
|
197
|
+
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
198
|
+
error: derived.boxShadow.error,
|
|
199
|
+
default: "#00000080",
|
|
200
|
+
},
|
|
201
|
+
};
|
|
202
|
+
export default palette;
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { buildPrimaryOpacity, buildPrimaryShadowTint } from "../../builders/buildBrandTokens";
|
|
2
|
+
/**
|
|
3
|
+
* zinc — the shadcn-clone brand already shipped on Mobile-Components (the mobile design
|
|
4
|
+
* library's own default brand). These exact hexes are ported verbatim from mobile's
|
|
5
|
+
* `src/theme/tokens/brands/zinc/palette.light.ts` — the mobile file's own comment calls them
|
|
6
|
+
* "the shared source of truth: web is adopting them verbatim" — so every rung here is
|
|
7
|
+
* authoritative, not an approximation or a rehue.
|
|
8
|
+
*
|
|
9
|
+
* Unlike every other web brand, zinc's filled primary is the near-black anchor itself:
|
|
10
|
+
* `primary[500]` is `#18181b`, a white label lands at 16.97:1. `background[50]` is the literal
|
|
11
|
+
* canvas white as a real surface token, never a hardcoded `"white"`.
|
|
12
|
+
*/
|
|
13
|
+
const PRIMARY_500 = "#18181b";
|
|
14
|
+
const SECONDARY_500 = "#71717a";
|
|
15
|
+
const primary = {
|
|
16
|
+
50: "#f4f4f5",
|
|
17
|
+
100: "#e4e4e7",
|
|
18
|
+
200: "#d4d4d8",
|
|
19
|
+
300: "#a1a1aa",
|
|
20
|
+
400: "#3f3f46",
|
|
21
|
+
500: PRIMARY_500,
|
|
22
|
+
600: "#141417",
|
|
23
|
+
700: "#101013",
|
|
24
|
+
800: "#0c0c0e",
|
|
25
|
+
900: "#09090b",
|
|
26
|
+
opacity: buildPrimaryOpacity(PRIMARY_500),
|
|
27
|
+
};
|
|
28
|
+
const secondary = {
|
|
29
|
+
50: "#fafafa",
|
|
30
|
+
100: "#f4f4f5",
|
|
31
|
+
200: "#e4e4e7",
|
|
32
|
+
300: "#d4d4d8",
|
|
33
|
+
400: "#a1a1aa",
|
|
34
|
+
500: SECONDARY_500,
|
|
35
|
+
600: "#52525b",
|
|
36
|
+
700: "#3f3f46",
|
|
37
|
+
800: "#27272a",
|
|
38
|
+
900: "#18181b",
|
|
39
|
+
opacity: buildPrimaryOpacity(SECONDARY_500),
|
|
40
|
+
};
|
|
41
|
+
const tertiary = { ...secondary };
|
|
42
|
+
// Shared status ramps — identical across every brand (status is universal, brand is the hue).
|
|
43
|
+
const semantic = {
|
|
44
|
+
success: {
|
|
45
|
+
50: "#e9f8ef",
|
|
46
|
+
100: "#bbe9cc",
|
|
47
|
+
200: "#9adeb4",
|
|
48
|
+
300: "#6ccf92",
|
|
49
|
+
400: "#4fc67d",
|
|
50
|
+
500: "#23b85c",
|
|
51
|
+
600: "#20a754",
|
|
52
|
+
700: "#198341",
|
|
53
|
+
800: "#136533",
|
|
54
|
+
900: "#0f4d27",
|
|
55
|
+
},
|
|
56
|
+
error: {
|
|
57
|
+
50: "#feedeb",
|
|
58
|
+
100: "#fbc6c2",
|
|
59
|
+
200: "#f9aaa4",
|
|
60
|
+
300: "#f6837b",
|
|
61
|
+
400: "#f56b61",
|
|
62
|
+
500: "#f2463a",
|
|
63
|
+
600: "#dc4035",
|
|
64
|
+
700: "#ac3229",
|
|
65
|
+
800: "#852720",
|
|
66
|
+
900: "#661d18",
|
|
67
|
+
},
|
|
68
|
+
warning: {
|
|
69
|
+
50: "#fff4ef",
|
|
70
|
+
100: "#ffddce",
|
|
71
|
+
200: "#ffccb7",
|
|
72
|
+
300: "#ffb596",
|
|
73
|
+
400: "#ffa781",
|
|
74
|
+
500: "#ff9162",
|
|
75
|
+
600: "#e88459",
|
|
76
|
+
700: "#b56746",
|
|
77
|
+
800: "#8c5036",
|
|
78
|
+
900: "#6b3d29",
|
|
79
|
+
},
|
|
80
|
+
info: {
|
|
81
|
+
50: "#eff9fc",
|
|
82
|
+
100: "#cdedf5",
|
|
83
|
+
200: "#b5e4f0",
|
|
84
|
+
300: "#94d7e9",
|
|
85
|
+
400: "#7fd0e5",
|
|
86
|
+
500: "#5fc4de",
|
|
87
|
+
600: "#56b2ea",
|
|
88
|
+
700: "#438b9e",
|
|
89
|
+
800: "#346c78",
|
|
90
|
+
900: "#28525d",
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
const gray = {
|
|
94
|
+
50: "#fafafa",
|
|
95
|
+
100: "#f4f4f5",
|
|
96
|
+
200: "#e4e4e7",
|
|
97
|
+
300: "#d4d4d8",
|
|
98
|
+
400: "#a1a1aa",
|
|
99
|
+
500: "#71717a",
|
|
100
|
+
600: "#52525b",
|
|
101
|
+
700: "#3f3f46",
|
|
102
|
+
800: "#27272a",
|
|
103
|
+
900: "#18181b",
|
|
104
|
+
};
|
|
105
|
+
// Shared utility hues — same values as every brand.
|
|
106
|
+
const red = {
|
|
107
|
+
50: "#feedeb",
|
|
108
|
+
100: "#fbc6c2",
|
|
109
|
+
200: "#f9aaa4",
|
|
110
|
+
300: "#f6837b",
|
|
111
|
+
400: "#f56b61",
|
|
112
|
+
500: "#f2463a",
|
|
113
|
+
600: "#dc4035",
|
|
114
|
+
700: "#ac3229",
|
|
115
|
+
800: "#852720",
|
|
116
|
+
900: "#661d18",
|
|
117
|
+
};
|
|
118
|
+
const orange = {
|
|
119
|
+
50: "#fff4ef",
|
|
120
|
+
100: "#ffddce",
|
|
121
|
+
200: "#ffccb7",
|
|
122
|
+
300: "#ffb596",
|
|
123
|
+
400: "#ffa781",
|
|
124
|
+
500: "#ff9162",
|
|
125
|
+
600: "#e88459",
|
|
126
|
+
700: "#b56746",
|
|
127
|
+
800: "#8c5036",
|
|
128
|
+
900: "#6b3d29",
|
|
129
|
+
};
|
|
130
|
+
const yellow = {
|
|
131
|
+
50: "#fefbec",
|
|
132
|
+
100: "#fdf1c5",
|
|
133
|
+
200: "#fbeba9",
|
|
134
|
+
300: "#fae281",
|
|
135
|
+
400: "#f9dc69",
|
|
136
|
+
500: "#f7d343",
|
|
137
|
+
600: "#e1c03d",
|
|
138
|
+
700: "#af9630",
|
|
139
|
+
800: "#887425",
|
|
140
|
+
900: "#68591c",
|
|
141
|
+
};
|
|
142
|
+
const green = {
|
|
143
|
+
50: "#e9f8ef",
|
|
144
|
+
100: "#bbe9cc",
|
|
145
|
+
200: "#9adeb4",
|
|
146
|
+
300: "#6ccf92",
|
|
147
|
+
400: "#4fc67d",
|
|
148
|
+
500: "#23b85c",
|
|
149
|
+
600: "#20a754",
|
|
150
|
+
700: "#198341",
|
|
151
|
+
800: "#136533",
|
|
152
|
+
900: "#0f4d27",
|
|
153
|
+
};
|
|
154
|
+
const teal = {
|
|
155
|
+
50: "#eff9fc",
|
|
156
|
+
100: "#cdedf5",
|
|
157
|
+
200: "#b5e4f0",
|
|
158
|
+
300: "#94d7e9",
|
|
159
|
+
400: "#7fd0e5",
|
|
160
|
+
500: "#5fc4de",
|
|
161
|
+
600: "#56b2ea",
|
|
162
|
+
700: "#438b9e",
|
|
163
|
+
800: "#346c78",
|
|
164
|
+
900: "#28525d",
|
|
165
|
+
};
|
|
166
|
+
const blue = {
|
|
167
|
+
50: "#ebf8ff",
|
|
168
|
+
100: "#bee3f8",
|
|
169
|
+
200: "#90cdf4",
|
|
170
|
+
300: "#63b3ed",
|
|
171
|
+
400: "#4299e1",
|
|
172
|
+
500: "#3182ce",
|
|
173
|
+
600: "#2b6cb0",
|
|
174
|
+
700: "#2c5282",
|
|
175
|
+
800: "#2a4365",
|
|
176
|
+
900: "#1a365d",
|
|
177
|
+
};
|
|
178
|
+
const cyan = {
|
|
179
|
+
50: "#edfdfd",
|
|
180
|
+
100: "#c4f1f9",
|
|
181
|
+
200: "#9decf9",
|
|
182
|
+
300: "#76e4f7",
|
|
183
|
+
400: "#0bc5ea",
|
|
184
|
+
500: "#00b5d8",
|
|
185
|
+
600: "#00a3c4",
|
|
186
|
+
700: "#0987a0",
|
|
187
|
+
800: "#086f83",
|
|
188
|
+
900: "#065666",
|
|
189
|
+
};
|
|
190
|
+
const purple = {
|
|
191
|
+
50: "#faf5ff",
|
|
192
|
+
100: "#e9d8fd",
|
|
193
|
+
200: "#d6bcfa",
|
|
194
|
+
300: "#b794f4",
|
|
195
|
+
400: "#9f7aea",
|
|
196
|
+
500: "#805ad5",
|
|
197
|
+
600: "#6b46c1",
|
|
198
|
+
700: "#553c9a",
|
|
199
|
+
800: "#44337a",
|
|
200
|
+
900: "#322659",
|
|
201
|
+
};
|
|
202
|
+
const pink = {
|
|
203
|
+
50: "#fff5f7",
|
|
204
|
+
100: "#fed7e2",
|
|
205
|
+
200: "#fbb6ce",
|
|
206
|
+
300: "#f687b3",
|
|
207
|
+
400: "#ed64a6",
|
|
208
|
+
500: "#d53f8c",
|
|
209
|
+
600: "#b83280",
|
|
210
|
+
700: "#97266d",
|
|
211
|
+
800: "#702459",
|
|
212
|
+
900: "#521b41",
|
|
213
|
+
};
|
|
214
|
+
const backgroundColor = {
|
|
215
|
+
main: "#ffffff",
|
|
216
|
+
secondary: "#fafafa",
|
|
217
|
+
tertiary: "#f4f4f5",
|
|
218
|
+
quaternary: "#e4e4e7",
|
|
219
|
+
light: "#ffffff",
|
|
220
|
+
medium: "#f4f4f5",
|
|
221
|
+
accent: "#e4e4e7",
|
|
222
|
+
subtle: "#fafafa",
|
|
223
|
+
muted: "#f4f4f5",
|
|
224
|
+
neutral: "#f4f4f5",
|
|
225
|
+
base: "#fafafa",
|
|
226
|
+
tableHeader: "#f4f4f5",
|
|
227
|
+
};
|
|
228
|
+
// background[50] is the elevated-surface token and must BE the literal canvas colour (#ffffff),
|
|
229
|
+
// so a "white surface" resolves through a token, never a hardcoded "white".
|
|
230
|
+
const background = {
|
|
231
|
+
50: "#ffffff",
|
|
232
|
+
100: "#fafafa",
|
|
233
|
+
200: "#f4f4f5",
|
|
234
|
+
300: "#e4e4e7",
|
|
235
|
+
400: "#d4d4d8",
|
|
236
|
+
500: "#a1a1aa",
|
|
237
|
+
600: "#71717a",
|
|
238
|
+
700: "#52525b",
|
|
239
|
+
800: "#3f3f46",
|
|
240
|
+
900: "#27272a",
|
|
241
|
+
};
|
|
242
|
+
const text = {
|
|
243
|
+
50: "#a1a1aa",
|
|
244
|
+
100: "#71717a",
|
|
245
|
+
200: "#52525b",
|
|
246
|
+
300: "#3f3f46",
|
|
247
|
+
400: "#27272a",
|
|
248
|
+
500: "#18181b",
|
|
249
|
+
600: "#141417",
|
|
250
|
+
700: "#101013",
|
|
251
|
+
800: "#0c0c0e",
|
|
252
|
+
900: "#09090b",
|
|
253
|
+
};
|
|
254
|
+
const header = {
|
|
255
|
+
50: "#71717a",
|
|
256
|
+
100: "#52525b",
|
|
257
|
+
200: "#3f3f46",
|
|
258
|
+
300: "#27272a",
|
|
259
|
+
400: "#1f1f22",
|
|
260
|
+
500: "#18181b",
|
|
261
|
+
600: "#121215",
|
|
262
|
+
700: "#0e0e11",
|
|
263
|
+
800: "#0b0b0d",
|
|
264
|
+
900: "#09090b",
|
|
265
|
+
};
|
|
266
|
+
const placeholder = {
|
|
267
|
+
50: "#d4d4d8",
|
|
268
|
+
100: "#a1a1aa",
|
|
269
|
+
200: "#8a8a93",
|
|
270
|
+
300: "#71717a",
|
|
271
|
+
400: "#63636b",
|
|
272
|
+
500: "#52525b",
|
|
273
|
+
600: "#47474e",
|
|
274
|
+
700: "#3f3f46",
|
|
275
|
+
800: "#27272a",
|
|
276
|
+
900: "#18181b",
|
|
277
|
+
};
|
|
278
|
+
const boxShadow = {
|
|
279
|
+
primary: buildPrimaryShadowTint(PRIMARY_500),
|
|
280
|
+
error: "#F2463A47",
|
|
281
|
+
default: "#00000033",
|
|
282
|
+
};
|
|
283
|
+
const sidebar = {
|
|
284
|
+
background: {
|
|
285
|
+
50: "#d4d4d8",
|
|
286
|
+
100: "#a1a1aa",
|
|
287
|
+
200: "#71717a",
|
|
288
|
+
300: "#52525b",
|
|
289
|
+
400: "#3f3f46",
|
|
290
|
+
500: "#18181b",
|
|
291
|
+
600: "#141417",
|
|
292
|
+
700: "#101013",
|
|
293
|
+
800: "#0c0c0e",
|
|
294
|
+
900: "#09090b",
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
const boxborder = {
|
|
298
|
+
50: "#fafafa",
|
|
299
|
+
100: "#f4f4f5",
|
|
300
|
+
200: "#e4e4e7",
|
|
301
|
+
300: "#d4d4d8",
|
|
302
|
+
400: "#c4c4c9",
|
|
303
|
+
500: "#a1a1aa",
|
|
304
|
+
600: "#8a8a93",
|
|
305
|
+
700: "#71717a",
|
|
306
|
+
800: "#52525b",
|
|
307
|
+
900: "#3f3f46",
|
|
308
|
+
};
|
|
309
|
+
// border[200] = decorative (#e4e4e7); border[500] = interactive input outline (#8a8a93, 3.42:1 on
|
|
310
|
+
// canvas — a 1px control outline is a UI component under WCAG 1.4.11 and needs 3:1, not 4.5:1).
|
|
311
|
+
const border = {
|
|
312
|
+
50: "#fafafa",
|
|
313
|
+
100: "#f4f4f5",
|
|
314
|
+
200: "#e4e4e7",
|
|
315
|
+
300: "#d4d4d8",
|
|
316
|
+
400: "#b4b4bb",
|
|
317
|
+
500: "#8a8a93",
|
|
318
|
+
600: "#71717a",
|
|
319
|
+
700: "#52525b",
|
|
320
|
+
800: "#3f3f46",
|
|
321
|
+
900: "#27272a",
|
|
322
|
+
};
|
|
323
|
+
const table = {
|
|
324
|
+
hover: {
|
|
325
|
+
50: "#fcfcfc",
|
|
326
|
+
100: "#fafafa",
|
|
327
|
+
200: "#f4f4f5",
|
|
328
|
+
300: "#efeff0",
|
|
329
|
+
400: "#e9e9eb",
|
|
330
|
+
500: "#e4e4e7",
|
|
331
|
+
600: "#d4d4d8",
|
|
332
|
+
700: "#a1a1aa",
|
|
333
|
+
800: "#78787f",
|
|
334
|
+
900: "#5a5a60",
|
|
335
|
+
},
|
|
336
|
+
};
|
|
337
|
+
const disabled = {
|
|
338
|
+
50: "#fafafa",
|
|
339
|
+
100: "#f4f4f5",
|
|
340
|
+
200: "#e4e4e7",
|
|
341
|
+
300: "#d4d4d8",
|
|
342
|
+
400: "#c4c4c9",
|
|
343
|
+
500: "#a1a1aa",
|
|
344
|
+
600: "#8a8a93",
|
|
345
|
+
700: "#71717a",
|
|
346
|
+
800: "#52525b",
|
|
347
|
+
900: "#3f3f46",
|
|
348
|
+
};
|
|
349
|
+
const gradient = { from: "#18181b", to: "#52525b" };
|
|
350
|
+
const palette = {
|
|
351
|
+
gradient,
|
|
352
|
+
primary,
|
|
353
|
+
secondary,
|
|
354
|
+
tertiary,
|
|
355
|
+
transparent: "transparent",
|
|
356
|
+
black: "#000",
|
|
357
|
+
white: "#fff",
|
|
358
|
+
semantic,
|
|
359
|
+
gray,
|
|
360
|
+
red,
|
|
361
|
+
orange,
|
|
362
|
+
yellow,
|
|
363
|
+
green,
|
|
364
|
+
teal,
|
|
365
|
+
blue,
|
|
366
|
+
cyan,
|
|
367
|
+
purple,
|
|
368
|
+
pink,
|
|
369
|
+
backgroundColor,
|
|
370
|
+
background,
|
|
371
|
+
text,
|
|
372
|
+
header,
|
|
373
|
+
placeholder,
|
|
374
|
+
boxShadow,
|
|
375
|
+
sidebar,
|
|
376
|
+
boxborder,
|
|
377
|
+
border,
|
|
378
|
+
table,
|
|
379
|
+
disabled,
|
|
380
|
+
};
|
|
381
|
+
export default palette;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { contrastRatio, relativeLuminance } from "./color";
|
|
2
|
+
/** WCAG AA for normal-size text. Accent-as-text must clear this against the canvas. */
|
|
3
|
+
const AA_NORMAL_TEXT = 4.5;
|
|
4
|
+
/**
|
|
5
|
+
* Rungs to try, ordered nearest-to-accent first. `primary[500]` is the true brand accent, so
|
|
6
|
+
* it is always tried first and only stepped away from when it fails AA — that keeps brand
|
|
7
|
+
* identity as strong as contrast allows instead of flattening every brand to one safe rung.
|
|
8
|
+
*
|
|
9
|
+
* Light canvases need darker rungs; dark canvases need lighter ones. Both walk 500 -> 900 because
|
|
10
|
+
* BOTH ramps put their light end at 900: light mode runs light -> dark (so 900 is the darkest),
|
|
11
|
+
* while every dark scale runs dark -> light (so 900 is the lightest). Same direction, opposite
|
|
12
|
+
* meaning — walking 500 -> 100 for dark would step toward the canvas and land at ~1.4 contrast.
|
|
13
|
+
*/
|
|
14
|
+
const SEARCH_ORDER = {
|
|
15
|
+
light: [500, 600, 700, 800, 900],
|
|
16
|
+
dark: [500, 600, 700, 800, 900],
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Pick the accent rung to use for accent-COLORED TEXT sitting on the canvas.
|
|
20
|
+
*
|
|
21
|
+
* `primary[500]` cannot serve both roles: it must stay dark enough for a white label on a
|
|
22
|
+
* filled button (>=4.5) yet be light enough to read as text on a dark canvas (>=4.5). Those
|
|
23
|
+
* constraints are mutually exclusive at a single lightness, so text gets its own token.
|
|
24
|
+
*
|
|
25
|
+
* Falls back to the most extreme rung when no candidate clears AA, so the result is always a
|
|
26
|
+
* real brand color rather than a throw. If `primary` itself is missing (a caller rendered
|
|
27
|
+
* outside a Pixelize theme, so the scale never got merged in), there is no brand rung to pick
|
|
28
|
+
* from at all — fall back to whichever of white/black clears AA against `canvas`, using the
|
|
29
|
+
* same proven-always-safe math as `onFilled` below, rather than throwing on `primary[rung]`.
|
|
30
|
+
*
|
|
31
|
+
* `ColorScale` requires every rung 50-900, but a caller can still hand in a partial object (a
|
|
32
|
+
* sparse test theme mock, a hand-built scale) — treat a missing rung as "doesn't clear AA" and
|
|
33
|
+
* keep walking rather than crashing `contrastRatio` on `undefined`.
|
|
34
|
+
*/
|
|
35
|
+
export const pickAccentText = (primary, canvas, mode) => {
|
|
36
|
+
const safeInk = () => (contrastRatio("#ffffff", canvas) >= AA_NORMAL_TEXT ? "#ffffff" : "#000000");
|
|
37
|
+
if (!primary)
|
|
38
|
+
return safeInk();
|
|
39
|
+
const order = SEARCH_ORDER[mode];
|
|
40
|
+
const found = order.find((rung) => primary[rung] != null && contrastRatio(primary[rung], canvas) >= AA_NORMAL_TEXT);
|
|
41
|
+
if (found !== undefined)
|
|
42
|
+
return primary[found];
|
|
43
|
+
for (let i = order.length - 1; i >= 0; i--) {
|
|
44
|
+
const rung = primary[order[i]];
|
|
45
|
+
if (rung != null)
|
|
46
|
+
return rung;
|
|
47
|
+
}
|
|
48
|
+
return safeInk();
|
|
49
|
+
};
|
|
50
|
+
/** Below this relative luminance a canvas is treated as dark. Well clear of both real canvases. */
|
|
51
|
+
const DARK_CANVAS_LUMINANCE = 0.2;
|
|
52
|
+
/** True when `canvas` is a dark surface. Lets style configs branch without threading color mode. */
|
|
53
|
+
export const isDarkCanvas = (canvas) => relativeLuminance(canvas) < DARK_CANVAS_LUMINANCE;
|
|
54
|
+
/**
|
|
55
|
+
* Accent text color for any scale (primary, secondary, red, …) drawn on `canvas`.
|
|
56
|
+
*
|
|
57
|
+
* Held to AA in BOTH modes. This deliberately no longer returns light's `[500]` untouched: that
|
|
58
|
+
* concession existed only while light mode was frozen for consumers, and it shipped known AA
|
|
59
|
+
* failures (radiant 4.15, emerald 3.24, rosewood 3.29). Those brands now step to the nearest rung
|
|
60
|
+
* that clears AA, which changes their light pixels — the accepted cost of meeting WCAG.
|
|
61
|
+
*/
|
|
62
|
+
export const accentTextOnCanvas = (scale, canvas) => pickAccentText(scale, canvas, relativeLuminance(canvas) < DARK_CANVAS_LUMINANCE ? "dark" : "light");
|
|
63
|
+
/**
|
|
64
|
+
* Ink for text drawn ON a filled swatch (a button/tag/badge fill), not the canvas. `white`/`black`
|
|
65
|
+
* must be the mode-stable absolutes (`theme.colors.white` / `theme.colors.black`) — NOT a
|
|
66
|
+
* mode-adaptive token like `text[900]`, which is dark ink in light mode but near-white in dark and
|
|
67
|
+
* would silently flip which candidate is "the dark one" depending on mode.
|
|
68
|
+
*
|
|
69
|
+
* Provably always clears AA: brute-forcing the sRGB cube shows `max(contrast(white,X),
|
|
70
|
+
* contrast(black,X)) >= 4.583` for every X, so whichever of the two fails, the other clears 4.5 —
|
|
71
|
+
* this never needs to step the fill's rung. Prefers white first (brand-conventional look) and
|
|
72
|
+
* only falls back to black when white itself fails.
|
|
73
|
+
*/
|
|
74
|
+
export const onFilled = (fill, white, black) => contrastRatio(white, fill) >= AA_NORMAL_TEXT ? white : black;
|
|
75
|
+
/**
|
|
76
|
+
* Ink for text on a two-stop gradient fill. Picks `onFilled` against whichever stop is LIGHTER —
|
|
77
|
+
* the harder case for either ink to clear. Each brand's `gradient` token is tuned so this
|
|
78
|
+
* resolves to the same ink at both ends (see palette.light.ts `gradient` comments); a caller
|
|
79
|
+
* that overrides the gradient (e.g. `UpgradeButton`'s `gradient` prop) isn't guaranteed the same
|
|
80
|
+
* safety, since an arbitrary pair can still need different inks at each end.
|
|
81
|
+
*/
|
|
82
|
+
export const onGradient = (from, to, white, black) => onFilled(relativeLuminance(from) >= relativeLuminance(to) ? from : to, white, black);
|
|
83
|
+
export { AA_NORMAL_TEXT, DARK_CANVAS_LUMINANCE };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds 8-digit hex alpha tokens from a 6-digit brand color (Chakra primary.500).
|
|
3
|
+
*/
|
|
4
|
+
export function normalizeHex(hex) {
|
|
5
|
+
const trimmed = hex.trim();
|
|
6
|
+
const withHash = trimmed.startsWith("#") ? trimmed : `#${trimmed}`;
|
|
7
|
+
if (!/^#[0-9a-fA-F]{6}$/.test(withHash)) {
|
|
8
|
+
throw new Error(`Invalid hex color (expected #RRGGBB): ${hex}`);
|
|
9
|
+
}
|
|
10
|
+
return withHash.toLowerCase();
|
|
11
|
+
}
|
|
12
|
+
export function buildPrimaryOpacity(primary500) {
|
|
13
|
+
const h = normalizeHex(primary500);
|
|
14
|
+
return {
|
|
15
|
+
4: `${h}0a`,
|
|
16
|
+
8: `${h}14`,
|
|
17
|
+
16: `${h}29`,
|
|
18
|
+
24: `${h}3d`,
|
|
19
|
+
32: `${h}52`,
|
|
20
|
+
40: `${h}66`,
|
|
21
|
+
48: `${h}7a`,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/** Tint used for focus rings / primary-tinted shadows (matches ~28% alpha pattern). */
|
|
25
|
+
export function buildPrimaryShadowTint(primary500) {
|
|
26
|
+
const h = normalizeHex(primary500);
|
|
27
|
+
return `${h}47`;
|
|
28
|
+
}
|