pixelize-design-library 2.4.2-beta.43 → 2.4.2-beta.45
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/CHANGELOG.md +195 -0
- package/COMPONENT-GOTCHAS.md +457 -241
- package/DESIGN-GUIDE.md +210 -0
- package/README.md +51 -26
- package/dist/Components/Accordion/Accordion.js +7 -9
- package/dist/Components/Accordion/accordionColors.d.ts +6 -0
- package/dist/Components/Accordion/accordionColors.js +11 -11
- package/dist/Components/AlertDialog/AlertDialog.d.ts +1 -1
- package/dist/Components/AlertDialog/AlertDialog.js +5 -5
- package/dist/Components/AlertDialog/AlertDialogProps.d.ts +27 -4
- package/dist/Components/Apexcharts/ApexAreaChart/ApexAreaChart.js +6 -2
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.js +7 -4
- package/dist/Components/Apexcharts/ApexChartFallback.d.ts +7 -0
- package/dist/Components/Apexcharts/ApexChartFallback.js +10 -0
- package/dist/Components/Apexcharts/ApexLineChart/ApexLineChart.js +6 -2
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.js +6 -2
- package/dist/Components/Apexcharts/ApexPolarCharts/ApexPolarCharts.js +8 -5
- package/dist/Components/Apexcharts/ApexRadialChart/ApexRadialChart.js +6 -4
- package/dist/Components/Apexcharts/LazyReactApexChart.d.ts +2 -0
- package/dist/Components/Apexcharts/LazyReactApexChart.js +40 -0
- package/dist/Components/AppSwitcher/AppMark.d.ts +0 -5
- package/dist/Components/AppSwitcher/AppMark.js +1 -5
- package/dist/Components/AppSwitcher/AppSwitcher.js +4 -9
- package/dist/Components/Avatar/Avatar.d.ts +3 -0
- package/dist/Components/Avatar/Avatar.js +24 -0
- package/dist/Components/Avatar/AvatarGroup.d.ts +3 -0
- package/dist/Components/Avatar/AvatarGroup.js +24 -0
- package/dist/Components/Avatar/AvatarGroupProps.d.ts +19 -0
- package/dist/Components/Avatar/AvatarProps.d.ts +22 -0
- package/dist/Components/Avatar/AvatarProps.js +2 -0
- package/dist/Components/Avatar/avatarColorway.d.ts +11 -0
- package/dist/Components/Avatar/avatarColorway.js +31 -0
- package/dist/Components/Avatar/avatarSizing.d.ts +5 -0
- package/dist/Components/Avatar/avatarSizing.js +15 -0
- package/dist/Components/Backdrop/Backdrop.d.ts +3 -0
- package/dist/Components/Backdrop/Backdrop.js +34 -0
- package/dist/Components/Backdrop/BackdropProps.d.ts +33 -0
- package/dist/Components/Backdrop/BackdropProps.js +2 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.js +14 -4
- package/dist/Components/Breadcrumbs/breadcrumbInk.d.ts +9 -0
- package/dist/Components/Breadcrumbs/breadcrumbInk.js +11 -0
- package/dist/Components/Button/Button.js +2 -2
- package/dist/Components/Button/Button.styles.js +21 -62
- package/dist/Components/Button/ButtonProps.d.ts +8 -2
- package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.d.ts +2 -42
- package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.js +16 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.d.ts +1 -1
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +3 -10
- package/dist/Components/ButtonGroupIcon/ButtonGroupIconProps.d.ts +42 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIconProps.js +2 -0
- package/dist/Components/Buttons/Buttons.d.ts +1 -1
- package/dist/Components/Buttons/Buttons.js +5 -3
- package/dist/Components/Buttons/ButtonsProps.d.ts +5 -1
- package/dist/Components/Card/Card.d.ts +18 -2
- package/dist/Components/Card/Card.js +10 -5
- package/dist/Components/Card/CardProps.d.ts +27 -9
- package/dist/Components/Card/PaymentCard/PaymentCard.js +13 -9
- package/dist/Components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/Components/Checkbox/Checkbox.js +11 -9
- package/dist/Components/Checkbox/Checkbox.styles.js +41 -36
- package/dist/Components/Checkbox/CheckboxProps.d.ts +11 -2
- package/dist/Components/Common/ErrorComponent.d.ts +1 -1
- package/dist/Components/Common/ErrorComponent.js +1 -1
- package/dist/Components/Common/ErrorMessage.d.ts +1 -1
- package/dist/Components/Common/ErrorMessage.js +3 -3
- package/dist/Components/Common/FieldMessage.d.ts +9 -0
- package/dist/Components/Common/FieldMessage.js +19 -0
- package/dist/Components/Common/FormLabel.d.ts +9 -0
- package/dist/Components/Common/FormLabel.js +15 -9
- package/dist/Components/Common/HelperText.d.ts +1 -1
- package/dist/Components/Common/HelperText.js +3 -2
- package/dist/Components/Common/Label.d.ts +1 -1
- package/dist/Components/Common/Label.js +3 -2
- package/dist/Components/Common/fieldMessageStyles.d.ts +19 -0
- package/dist/Components/Common/fieldMessageStyles.js +18 -0
- package/dist/Components/Common/fieldStyles.d.ts +46 -9
- package/dist/Components/Common/fieldStyles.js +72 -30
- package/dist/Components/Common/useFieldIds.d.ts +16 -0
- package/dist/Components/Common/useFieldIds.js +27 -0
- package/dist/Components/ConfirmDialog/ConfirmDialog.d.ts +4 -0
- package/dist/Components/ConfirmDialog/ConfirmDialog.js +23 -0
- package/dist/Components/ConfirmDialog/ConfirmDialogProps.d.ts +45 -0
- package/dist/Components/ConfirmDialog/ConfirmDialogProps.js +2 -0
- package/dist/Components/ContactForm/ContactForm.d.ts +2 -2
- package/dist/Components/ContactForm/ContactForm.js +19 -15
- package/dist/Components/ContactForm/ContactFormProps.d.ts +16 -2
- package/dist/Components/CopyButton/CopyButton.js +3 -4
- package/dist/Components/CustomModulesTable/DeleteModuleModal.js +2 -2
- package/dist/Components/CustomModulesTable/EditModuleModal.js +2 -4
- package/dist/Components/DatePicker/CalendarPanel.js +5 -9
- package/dist/Components/DatePicker/DatePicker.d.ts +5 -3
- package/dist/Components/DatePicker/DatePicker.js +12 -50
- package/dist/Components/DatePicker/DatePickerProps.d.ts +48 -4
- package/dist/Components/DatePicker/DatePickerProps.js +3 -0
- package/dist/Components/DatePicker/RangeDatePicker.js +17 -21
- package/dist/Components/DatePicker/SingleDatePicker.d.ts +4 -2
- package/dist/Components/DatePicker/SingleDatePicker.js +40 -57
- package/dist/Components/DatePicker/ThemeDatePicker.d.ts +3 -2
- package/dist/Components/DatePicker/ThemeDatePicker.js +12 -18
- package/dist/Components/DatePicker/TimeOnlyPicker.d.ts +5 -3
- package/dist/Components/DatePicker/TimeOnlyPicker.js +37 -23
- package/dist/Components/DatePicker/TimePicker.js +8 -12
- package/dist/Components/DatePicker/TimePickerInput.d.ts +6 -2
- package/dist/Components/DatePicker/TimePickerInput.js +5 -11
- package/dist/Components/DatePicker/dayStates.d.ts +0 -23
- package/dist/Components/DatePicker/dayStates.js +3 -15
- package/dist/Components/DatePicker/pickerField.d.ts +24 -0
- package/dist/Components/DatePicker/pickerField.js +31 -0
- package/dist/Components/DatePicker/valueFormat.d.ts +4 -0
- package/dist/Components/DatePicker/valueFormat.js +21 -0
- package/dist/Components/DescriptionList/DescriptionList.d.ts +4 -0
- package/dist/Components/DescriptionList/DescriptionList.js +32 -0
- package/dist/Components/DescriptionList/DescriptionListProps.d.ts +29 -0
- package/dist/Components/DescriptionList/DescriptionListProps.js +2 -0
- package/dist/Components/Drawer/Drawer.d.ts +5 -11
- package/dist/Components/Drawer/Drawer.js +22 -8
- package/dist/Components/Drawer/DrawerProps.d.ts +16 -4
- package/dist/Components/Dropdown/DropDown.d.ts +1 -1
- package/dist/Components/Dropdown/DropDown.js +42 -32
- package/dist/Components/Dropdown/DropdownProps.d.ts +15 -2
- package/dist/Components/Editor/Editor.js +12 -0
- package/dist/Components/Editor/joditAccessibility.d.ts +1 -0
- package/dist/Components/Editor/joditAccessibility.js +28 -0
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.d.ts +1 -1
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +3 -5
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.d.ts +1 -1
- package/dist/Components/EmptyState/EmptyState.js +24 -15
- package/dist/Components/EmptyState/EmptyStateProps.d.ts +5 -1
- package/dist/Components/FeedbackForm/FeedbackForm.d.ts +1 -1
- package/dist/Components/FeedbackForm/FeedbackForm.js +19 -6
- package/dist/Components/FieldSelectModal/FieldSelectModal.js +2 -4
- package/dist/Components/FilePreview/FilePreview.js +8 -8
- package/dist/Components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/Components/FileUpload/FileUpload.js +24 -5
- package/dist/Components/FileUpload/FileUploadProps.d.ts +23 -1
- package/dist/Components/FileUpload/constants.d.ts +1 -0
- package/dist/Components/FileUpload/constants.js +2 -1
- package/dist/Components/FileUploader/FileUploader.js +6 -5
- package/dist/Components/FilterBar/FilterBar.d.ts +4 -0
- package/dist/Components/FilterBar/FilterBar.js +17 -0
- package/dist/Components/FilterBar/FilterBarProps.d.ts +25 -0
- package/dist/Components/FilterBar/FilterBarProps.js +2 -0
- package/dist/Components/FilterSidebar/FilterSidebar.js +27 -32
- package/dist/Components/FilterSidebar/filterHoverStyle.d.ts +1 -1
- package/dist/Components/FilterSidebar/filterHoverStyle.js +1 -1
- package/dist/Components/Form/FormWrapper.js +1 -1
- package/dist/Components/Header/Header.d.ts +0 -15
- package/dist/Components/Header/Header.js +2 -16
- package/dist/Components/Header/HeaderActions.d.ts +4 -0
- package/dist/Components/Header/HeaderActions.js +4 -4
- package/dist/Components/Header/HeaderProps.d.ts +14 -1
- package/dist/Components/Header/components/desktopMenu.d.ts +1 -1
- package/dist/Components/Header/components/desktopMenu.js +10 -11
- package/dist/Components/Header/components/mobileMenu.d.ts +1 -1
- package/dist/Components/Header/components/mobileMenu.js +23 -20
- package/dist/Components/Input/Input/Input.d.ts +1 -1
- package/dist/Components/Input/Input/Input.js +3 -2
- package/dist/Components/Input/Input/InputProps.d.ts +4 -1
- package/dist/Components/Input/PhoneNumberInput.d.ts +2 -2
- package/dist/Components/Input/PhoneNumberInput.js +7 -4
- package/dist/Components/Input/PhoneNumberInputProps.d.ts +4 -2
- package/dist/Components/Input/Switch/InputSwitch.d.ts +16 -5
- package/dist/Components/Input/Switch/InputSwitch.js +17 -19
- package/dist/Components/Input/TextInput.js +80 -7
- package/dist/Components/Input/TextInput.styles.d.ts +18 -1
- package/dist/Components/Input/TextInput.styles.js +48 -89
- package/dist/Components/Input/TextInputProps.d.ts +44 -9
- package/dist/Components/Input/textInputIconSize.d.ts +2 -7
- package/dist/Components/Input/textInputIconSize.js +4 -20
- package/dist/Components/Input/useAriaRequired.d.ts +2 -0
- package/dist/Components/Input/useAriaRequired.js +19 -0
- package/dist/Components/InputTextArea/InputTextArea.d.ts +2 -2
- package/dist/Components/InputTextArea/InputTextArea.js +9 -5
- package/dist/Components/InputTextArea/InputTextArea.style.js +14 -69
- package/dist/Components/InputTextArea/InputTextAreaProps.d.ts +9 -2
- package/dist/Components/KanbanBoard/AccountCard.js +8 -5
- package/dist/Components/KanbanBoard/AccountRow.d.ts +1 -1
- package/dist/Components/KanbanBoard/AccountRow.js +1 -1
- package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.js +1 -1
- package/dist/Components/KanbanBoard/KanbanBoard.d.ts +1 -1
- package/dist/Components/KanbanBoard/KanbanBoard.js +85 -49
- package/dist/Components/KanbanBoard/KanbanBoardProps.d.ts +37 -19
- package/dist/Components/KanbanBoard/index.d.ts +2 -0
- package/dist/Components/KanbanBoard/index.js +8 -0
- package/dist/Components/LimitReachedModal/LimitReachedModal.js +1 -1
- package/dist/Components/LimitReachedModal/limitReachedCopy.js +1 -3
- package/dist/Components/Loading/Loading.d.ts +1 -1
- package/dist/Components/Loading/Loading.js +19 -19
- package/dist/Components/Loading/LoadingProps.d.ts +5 -1
- package/dist/Components/MediaViewer/MediaViewer.d.ts +5 -0
- package/dist/Components/MediaViewer/MediaViewer.js +234 -0
- package/dist/Components/MediaViewer/MediaViewerProps.d.ts +92 -0
- package/dist/Components/MediaViewer/MediaViewerProps.js +32 -0
- package/dist/Components/MediaViewer/components/MediaAudioPlayer.d.ts +4 -0
- package/dist/Components/MediaViewer/components/MediaAudioPlayer.js +138 -0
- package/dist/Components/MediaViewer/components/MediaAudioPlayerProps.d.ts +48 -0
- package/dist/Components/MediaViewer/components/MediaAudioPlayerProps.js +21 -0
- package/dist/Components/MediaViewer/components/MediaDocumentStage.d.ts +4 -0
- package/dist/Components/MediaViewer/components/MediaDocumentStage.js +149 -0
- package/dist/Components/MediaViewer/components/MediaDocumentStageProps.d.ts +42 -0
- package/dist/Components/MediaViewer/components/MediaDocumentStageProps.js +11 -0
- package/dist/Components/MediaViewer/components/MediaImageViewer.d.ts +4 -0
- package/dist/Components/MediaViewer/components/MediaImageViewer.js +103 -0
- package/dist/Components/MediaViewer/components/MediaImageViewerProps.d.ts +47 -0
- package/dist/Components/MediaViewer/components/MediaImageViewerProps.js +18 -0
- package/dist/Components/MediaViewer/components/MediaScrubber.d.ts +5 -0
- package/dist/Components/MediaViewer/components/MediaScrubber.js +89 -0
- package/dist/Components/MediaViewer/components/MediaScrubberProps.d.ts +30 -0
- package/dist/Components/MediaViewer/components/MediaScrubberProps.js +2 -0
- package/dist/Components/MediaViewer/components/MediaStatusPanel.d.ts +5 -0
- package/dist/Components/MediaViewer/components/MediaStatusPanel.js +14 -0
- package/dist/Components/MediaViewer/components/MediaStatusPanelProps.d.ts +24 -0
- package/dist/Components/MediaViewer/components/MediaStatusPanelProps.js +2 -0
- package/dist/Components/MediaViewer/components/MediaVideoPlayer.d.ts +4 -0
- package/dist/Components/MediaViewer/components/MediaVideoPlayer.js +248 -0
- package/dist/Components/MediaViewer/components/MediaVideoPlayerProps.d.ts +71 -0
- package/dist/Components/MediaViewer/components/MediaVideoPlayerProps.js +31 -0
- package/dist/Components/MediaViewer/components/TileChip.d.ts +5 -0
- package/dist/Components/MediaViewer/components/TileChip.js +12 -0
- package/dist/Components/MediaViewer/components/TileChipProps.d.ts +7 -0
- package/dist/Components/MediaViewer/components/TileChipProps.js +2 -0
- package/dist/Components/MediaViewer/components/VideoPoster.d.ts +5 -0
- package/dist/Components/MediaViewer/components/VideoPoster.js +16 -0
- package/dist/Components/MediaViewer/components/VideoPosterProps.d.ts +6 -0
- package/dist/Components/MediaViewer/components/VideoPosterProps.js +2 -0
- package/dist/Components/MediaViewer/components/ViewerIconButton.d.ts +5 -0
- package/dist/Components/MediaViewer/components/ViewerIconButton.js +20 -0
- package/dist/Components/MediaViewer/components/ViewerIconButtonProps.d.ts +24 -0
- package/dist/Components/MediaViewer/components/ViewerIconButtonProps.js +2 -0
- package/dist/Components/MediaViewer/components/mediaKindIcon.d.ts +5 -0
- package/dist/Components/MediaViewer/components/mediaKindIcon.js +23 -0
- package/dist/Components/MediaViewer/components/sanitizeDocxHrefs.d.ts +1 -0
- package/dist/Components/MediaViewer/components/sanitizeDocxHrefs.js +30 -0
- package/dist/Components/MediaViewer/hooks/useAutoHideChrome.d.ts +15 -0
- package/dist/Components/MediaViewer/hooks/useAutoHideChrome.js +43 -0
- package/dist/Components/MediaViewer/hooks/useFileViewer.d.ts +18 -0
- package/dist/Components/MediaViewer/hooks/useFileViewer.js +51 -0
- package/dist/Components/MediaViewer/mediaItems.d.ts +64 -0
- package/dist/Components/MediaViewer/mediaItems.js +196 -0
- package/dist/Components/MediaViewer/useViewerChrome.d.ts +15 -0
- package/dist/Components/MediaViewer/useViewerChrome.js +30 -0
- package/dist/Components/Modal/Modal.d.ts +5 -11
- package/dist/Components/Modal/Modal.js +24 -18
- package/dist/Components/Modal/ModalProps.d.ts +19 -4
- package/dist/Components/MoreItems/MoreItems.js +4 -2
- package/dist/Components/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/Components/MultiSelect/MultiSelect.js +40 -28
- package/dist/Components/MultiSelect/MultiSelectProps.d.ts +13 -3
- package/dist/Components/NavigationBar/NavigationBar.js +10 -8
- package/dist/Components/NoteTextArea/NoteTextArea.d.ts +4 -2
- package/dist/Components/NoteTextArea/NoteTextArea.js +13 -9
- package/dist/Components/NoteTextArea/NoteTextAreaProps.d.ts +4 -2
- package/dist/Components/Notification/Notification.d.ts +1 -1
- package/dist/Components/Notification/Notification.js +10 -3
- package/dist/Components/Notification/NotificationProps.d.ts +1 -1
- package/dist/Components/NotificationBell/NotificationBell.d.ts +4 -0
- package/dist/Components/NotificationBell/NotificationBell.js +35 -0
- package/dist/Components/NotificationBell/NotificationBellProps.d.ts +147 -0
- package/dist/Components/NotificationBell/NotificationBellProps.js +2 -0
- package/dist/Components/NotificationBell/NotificationItem.d.ts +4 -0
- package/dist/Components/NotificationBell/NotificationItem.js +34 -0
- package/dist/Components/NotificationBell/NotificationList.d.ts +4 -0
- package/dist/Components/NotificationBell/NotificationList.js +41 -0
- package/dist/Components/NotificationBell/NotificationPanel.d.ts +4 -0
- package/dist/Components/NotificationBell/NotificationPanel.js +36 -0
- package/dist/Components/NotificationBell/index.d.ts +6 -0
- package/dist/Components/NotificationBell/index.js +30 -0
- package/dist/Components/NotificationBell/notificationHelpers.d.ts +32 -0
- package/dist/Components/NotificationBell/notificationHelpers.js +115 -0
- package/dist/Components/NumberInput/NumberInput.d.ts +6 -2
- package/dist/Components/NumberInput/NumberInput.js +9 -5
- package/dist/Components/NumberInput/NumberInput.styles.js +19 -78
- package/dist/Components/NumberInput/NumberInputProps.d.ts +20 -1
- package/dist/Components/OrgSwitcher/OrgSwitcher.js +4 -12
- package/dist/Components/OrgSwitcher/OrgSwitcherProps.d.ts +1 -1
- package/dist/Components/OrgSwitcher/OrgSwitcherProps.js +2 -1
- package/dist/Components/OrganizationDetails/CreateOrgModal.js +1 -1
- package/dist/Components/OrganizationDetails/DeleteOrgModal.js +4 -6
- package/dist/Components/OrganizationDetails/OrganizationDetails.js +8 -7
- package/dist/Components/PageHeader/PageHeader.d.ts +4 -0
- package/dist/Components/PageHeader/PageHeader.js +11 -0
- package/dist/Components/PageHeader/PageHeaderProps.d.ts +20 -0
- package/dist/Components/PageHeader/PageHeaderProps.js +2 -0
- package/dist/Components/PdfViewer/PdfViewer.js +1 -1
- package/dist/Components/PersonChip/PersonChip.d.ts +3 -0
- package/dist/Components/PersonChip/PersonChip.js +47 -0
- package/dist/Components/PersonChip/PersonChipProps.d.ts +33 -0
- package/dist/Components/PersonChip/PersonChipProps.js +2 -0
- package/dist/Components/PinInput/PinInput.d.ts +2 -2
- package/dist/Components/PinInput/PinInput.js +11 -10
- package/dist/Components/PinInput/PinInputProps.d.ts +3 -2
- package/dist/Components/PinInput/pinInputCellSize.d.ts +7 -0
- package/dist/Components/PinInput/pinInputCellSize.js +10 -0
- package/dist/Components/PlanBadge/PlanBadge.d.ts +0 -7
- package/dist/Components/PlanBadge/PlanBadge.js +1 -7
- package/dist/Components/PlanPill/PlanPill.js +2 -3
- package/dist/Components/PlanPill/planPillGradient.d.ts +5 -21
- package/dist/Components/PlanPill/planPillGradient.js +8 -23
- package/dist/Components/Primitives/Primitives.d.ts +3 -6
- package/dist/Components/Primitives/Primitives.js +3 -41
- package/dist/Components/ProductCard/ProductPrice.js +18 -7
- package/dist/Components/ProductCard/ProductReview.js +3 -2
- package/dist/Components/ProductDetails/ProductDetails.js +1 -1
- package/dist/Components/ProductDetails/ProductDtlPrice.js +5 -5
- package/dist/Components/ProductDetails/ProductImageSlider.d.ts +3 -1
- package/dist/Components/ProductDetails/ProductImageSlider.js +36 -20
- package/dist/Components/ProfileCard/ProfileCard.d.ts +4 -10
- package/dist/Components/ProfileCard/ProfileCard.js +25 -10
- package/dist/Components/ProfileCard/ProfileCardProps.d.ts +8 -2
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +7 -4
- package/dist/Components/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/Components/ProgressBar/ProgressBar.js +27 -3
- package/dist/Components/ProgressBar/ProgressBarProps.d.ts +10 -4
- package/dist/Components/QueryState/ErrorState.d.ts +4 -0
- package/dist/Components/QueryState/ErrorState.js +16 -0
- package/dist/Components/QueryState/QueryStateBoundary.d.ts +4 -0
- package/dist/Components/QueryState/QueryStateBoundary.js +25 -0
- package/dist/Components/QueryState/QueryStateProps.d.ts +48 -0
- package/dist/Components/QueryState/QueryStateProps.js +2 -0
- package/dist/Components/RadioButton/RadioButton.d.ts +2 -2
- package/dist/Components/RadioButton/RadioButton.js +34 -14
- package/dist/Components/RadioButton/RadioButtonProps.d.ts +50 -6
- package/dist/Components/RangeSlider/RangeSlider.d.ts +4 -0
- package/dist/Components/RangeSlider/RangeSlider.js +136 -0
- package/dist/Components/RangeSlider/RangeSliderProps.d.ts +74 -0
- package/dist/Components/RangeSlider/RangeSliderProps.js +2 -0
- package/dist/Components/RangeSlider/rangeSliderColors.d.ts +9 -0
- package/dist/Components/RangeSlider/rangeSliderColors.js +11 -0
- package/dist/Components/RangeSlider/rangeSliderMath.d.ts +16 -0
- package/dist/Components/RangeSlider/rangeSliderMath.js +79 -0
- package/dist/Components/RangeSlider/rangeSliderSize.d.ts +7 -0
- package/dist/Components/RangeSlider/rangeSliderSize.js +12 -0
- package/dist/Components/Reorder/Reorder.d.ts +1 -6
- package/dist/Components/Reorder/Reorder.js +2 -2
- package/dist/Components/Reorder/ReorderProps.d.ts +5 -2
- package/dist/Components/RolesPermission/DeleteRoleModal.js +4 -6
- package/dist/Components/RolesPermission/RolesPermission.js +1 -1
- package/dist/Components/SaveBar/SaveBar.d.ts +4 -0
- package/dist/Components/SaveBar/SaveBar.js +24 -0
- package/dist/Components/SaveBar/SaveBarProps.d.ts +22 -0
- package/dist/Components/SaveBar/SaveBarProps.js +2 -0
- package/dist/Components/ScrollToTop/ScrollToTop.js +5 -2
- package/dist/Components/Search/Search.d.ts +3 -2
- package/dist/Components/Search/Search.js +33 -15
- package/dist/Components/Search/SearchProps.d.ts +26 -4
- package/dist/Components/SearchSelect/SearchSelect.d.ts +2 -1
- package/dist/Components/SearchSelect/SearchSelect.js +61 -75
- package/dist/Components/SearchSelect/SearchSelectProps.d.ts +27 -3
- package/dist/Components/SearchSelect/searchSelectSize.d.ts +4 -14
- package/dist/Components/SearchSelect/searchSelectSize.js +15 -15
- package/dist/Components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/Components/SegmentedControl/SegmentedControl.js +53 -31
- package/dist/Components/SegmentedControl/SegmentedControlProps.d.ts +12 -2
- package/dist/Components/SegmentedControl/segmentedInk.d.ts +11 -0
- package/dist/Components/SegmentedControl/segmentedInk.js +30 -0
- package/dist/Components/SegmentedControl/useSlidingPill.d.ts +11 -0
- package/dist/Components/SegmentedControl/useSlidingPill.js +25 -0
- package/dist/Components/Select/Select.d.ts +5 -2
- package/dist/Components/Select/Select.js +65 -24
- package/dist/Components/Select/Select.styles.js +12 -81
- package/dist/Components/Select/SelectNative.d.ts +63 -0
- package/dist/Components/Select/SelectNative.js +49 -0
- package/dist/Components/Select/SelectPopup.d.ts +5 -0
- package/dist/Components/Select/SelectPopup.js +423 -0
- package/dist/Components/Select/SelectProps.d.ts +122 -16
- package/dist/Components/SelectSearch/SelectSearch.d.ts +2 -2
- package/dist/Components/SelectSearch/SelectSearch.js +16 -78
- package/dist/Components/SelectSearch/SelectSearchProps.d.ts +31 -2
- package/dist/Components/SelectV2/SelectV2.d.ts +15 -3
- package/dist/Components/SelectV2/SelectV2.js +17 -264
- package/dist/Components/SelectV2/SelectV2Props.d.ts +39 -13
- package/dist/Components/SettingRow/SettingRow.d.ts +4 -0
- package/dist/Components/SettingRow/SettingRow.js +24 -0
- package/dist/Components/SettingRow/SettingRowProps.d.ts +16 -0
- package/dist/Components/SettingRow/SettingRowProps.js +2 -0
- package/dist/Components/SettingRow/SettingsSection.d.ts +4 -0
- package/dist/Components/SettingRow/SettingsSection.js +16 -0
- package/dist/Components/SettingRow/SettingsSectionProps.d.ts +18 -0
- package/dist/Components/SettingRow/SettingsSectionProps.js +2 -0
- package/dist/Components/SideBar/SecondaryBar.js +21 -10
- package/dist/Components/SideBar/SideBar.js +38 -22
- package/dist/Components/SideBar/SideBarProps.d.ts +10 -1
- package/dist/Components/SideBar/components/MenuItemBox.d.ts +2 -0
- package/dist/Components/SideBar/components/MenuItemBox.js +44 -28
- package/dist/Components/SideBar/components/MenuItems.js +4 -4
- package/dist/Components/SideBar/components/MenuPopoverContent.js +21 -10
- package/dist/Components/SideBar/components/OtherApps.js +3 -3
- package/dist/Components/SideBar/components/OverflowTooltipText.js +3 -1
- package/dist/Components/SideBar/components/TextTruncation.js +3 -3
- package/dist/Components/SideBar/menuDisabled.d.ts +5 -0
- package/dist/Components/SideBar/menuDisabled.js +7 -0
- package/dist/Components/SideBar/sidebarId.d.ts +2 -0
- package/dist/Components/SideBar/sidebarId.js +6 -0
- package/dist/Components/SideBar/sidebarScale.d.ts +15 -0
- package/dist/Components/SideBar/sidebarScale.js +18 -0
- package/dist/Components/Skeletons/SkeletonProps.d.ts +4 -2
- package/dist/Components/Skeletons/Skeletons.d.ts +1 -1
- package/dist/Components/Skeletons/Skeletons.js +2 -2
- package/dist/Components/Slider/Slider.js +2 -1
- package/dist/Components/Spinner/Spinner.d.ts +3 -0
- package/dist/Components/Spinner/Spinner.js +22 -0
- package/dist/Components/Spinner/SpinnerProps.d.ts +15 -0
- package/dist/Components/Spinner/SpinnerProps.js +2 -0
- package/dist/Components/StageProgress/StageItem.js +12 -4
- package/dist/Components/StageProgress/StageProgress.js +6 -7
- package/dist/Components/StageProgress/StageProgressProps.d.ts +9 -3
- package/dist/Components/StageProgress/StageProgressProps.js +6 -2
- package/dist/Components/StageProgress/StepperStage.js +5 -2
- package/dist/Components/StatCard/StatCard.d.ts +4 -0
- package/dist/Components/StatCard/StatCard.js +42 -0
- package/dist/Components/StatCard/StatCardProps.d.ts +26 -0
- package/dist/Components/StatCard/StatCardProps.js +2 -0
- package/dist/Components/Switch/Switch.d.ts +2 -2
- package/dist/Components/Switch/Switch.js +11 -9
- package/dist/Components/Switch/SwitchProps.d.ts +7 -1
- package/dist/Components/Table/Table.d.ts +1 -1
- package/dist/Components/Table/Table.js +56 -49
- package/dist/Components/Table/TableProps.d.ts +46 -8
- package/dist/Components/Table/components/HeaderActions.js +3 -2
- package/dist/Components/Table/components/Pagination.d.ts +2 -2
- package/dist/Components/Table/components/Pagination.js +12 -4
- package/dist/Components/Table/components/TableActions.js +1 -1
- package/dist/Components/Table/components/TableBody.d.ts +1 -1
- package/dist/Components/Table/components/TableBody.js +33 -41
- package/dist/Components/Table/components/TableGroupRow.js +1 -1
- package/dist/Components/Table/components/TableHeader.d.ts +1 -1
- package/dist/Components/Table/components/TableHeader.js +14 -12
- package/dist/Components/Table/components/TableSearch.js +1 -1
- package/dist/Components/Table/components/rowMetrics.d.ts +11 -0
- package/dist/Components/Table/components/rowMetrics.js +16 -0
- package/dist/Components/Table/filters/ActiveFilters.js +7 -4
- package/dist/Components/Table/filters/CompactSelect.js +1 -1
- package/dist/Components/Table/filters/LeftFilterPane.js +1 -1
- package/dist/Components/Table/filters/SelectOperationControls.js +9 -1
- package/dist/Components/Table/filters/TableFilters.js +1 -1
- package/dist/Components/Table/filters/TextOperationControls.js +8 -1
- package/dist/Components/Table/hooks/useTable.d.ts +3 -11
- package/dist/Components/Table/hooks/useTable.js +19 -26
- package/dist/Components/Table/settings/ManageColumns.js +7 -6
- package/dist/Components/Table/settings/TableSettings.js +5 -4
- package/dist/Components/Table/variants/classic.js +2 -0
- package/dist/Components/Table/variants/stripe.d.ts +3 -0
- package/dist/Components/Table/variants/stripe.js +7 -0
- package/dist/Components/Table/variants/studio.js +2 -0
- package/dist/Components/Table/variants/tokens.d.ts +2 -0
- package/dist/Components/Tabs/Tabs.d.ts +3 -0
- package/dist/Components/Tabs/Tabs.js +70 -0
- package/dist/Components/Tabs/TabsContext.d.ts +22 -0
- package/dist/Components/Tabs/TabsContext.js +16 -0
- package/dist/Components/Tabs/TabsProps.d.ts +74 -0
- package/dist/Components/Tabs/TabsProps.js +2 -0
- package/dist/Components/Tabs/components/CountBadge.d.ts +12 -0
- package/dist/Components/Tabs/components/CountBadge.js +17 -0
- package/dist/Components/Tabs/components/Tab.d.ts +3 -0
- package/dist/Components/Tabs/components/Tab.js +49 -0
- package/dist/Components/Tabs/components/TabList.d.ts +3 -0
- package/dist/Components/Tabs/components/TabList.js +71 -0
- package/dist/Components/Tabs/components/TabPanel.d.ts +3 -0
- package/dist/Components/Tabs/components/TabPanel.js +17 -0
- package/dist/Components/Tabs/components/TabPanels.d.ts +3 -0
- package/dist/Components/Tabs/components/TabPanels.js +14 -0
- package/dist/Components/Tabs/index.d.ts +6 -0
- package/dist/Components/Tabs/index.js +16 -0
- package/dist/Components/Tabs/tabStyles.d.ts +15 -0
- package/dist/Components/Tabs/tabStyles.js +38 -0
- package/dist/Components/Tag/Tag.js +14 -6
- package/dist/Components/Tag/Tag.styles.d.ts +2 -0
- package/dist/Components/Tag/Tag.styles.js +44 -37
- package/dist/Components/Tag/TagProps.d.ts +17 -4
- package/dist/Components/Timeline/Timeline.d.ts +1 -1
- package/dist/Components/Timeline/Timeline.js +42 -30
- package/dist/Components/Timeline/TimelineProps.d.ts +25 -2
- package/dist/Components/Toaster/Toaster.js +73 -55
- package/dist/Components/Toaster/ToasterProps.d.ts +18 -5
- package/dist/Components/Toaster/toastDuration.d.ts +4 -0
- package/dist/Components/Toaster/toastDuration.js +7 -0
- package/dist/Components/Toggle/TableToggle.d.ts +1 -1
- package/dist/Components/Toggle/TableToggle.js +10 -25
- package/dist/Components/Toggle/TableToggleProps.d.ts +3 -2
- package/dist/Components/ToggleSwitch/ToggleSwitch.d.ts +2 -2
- package/dist/Components/ToggleSwitch/ToggleSwitch.js +41 -7
- package/dist/Components/ToggleSwitch/ToggleSwitchProps.d.ts +63 -8
- package/dist/Components/ToolTip/OverflowToolTip.d.ts +0 -15
- package/dist/Components/ToolTip/OverflowToolTip.js +1 -15
- package/dist/Components/ToolTip/ToolTip.js +13 -13
- package/dist/Components/ToolTip/ToolTipProps.d.ts +5 -2
- package/dist/Components/UpgradeButton/UpgradeButton.js +9 -14
- package/dist/Components/UserDetails/AddUserModal.js +1 -1
- package/dist/Components/UserDetails/ChangeRoleModal.js +1 -1
- package/dist/Components/UserDetails/DeactivateConfirmModal.js +4 -6
- package/dist/Components/UserDetails/UserDetails.js +6 -8
- package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.d.ts +0 -13
- package/dist/Components/WorkspaceWindow/WorkspaceTrayPreview.js +2 -14
- package/dist/Components/WorkspaceWindow/WorkspaceWindow.d.ts +0 -11
- package/dist/Components/WorkspaceWindow/WorkspaceWindow.js +6 -23
- package/dist/Hooks/useDebounce.d.ts +6 -0
- package/dist/Hooks/useDebounce.js +33 -0
- package/dist/Hooks/useExclusiveOverlay.d.ts +0 -4
- package/dist/Hooks/useExclusiveOverlay.js +1 -4
- package/dist/Hooks/useFullscreen.d.ts +8 -0
- package/dist/Hooks/useFullscreen.js +32 -0
- package/dist/Hooks/useIsTruncated.d.ts +0 -30
- package/dist/Hooks/useIsTruncated.js +1 -30
- package/dist/Hooks/usePreferences.js +1 -6
- package/dist/Hooks/useSidebarPrefs.d.ts +1 -42
- package/dist/Hooks/useSidebarPrefs.js +1 -2
- package/dist/Theme/assertPalette.d.ts +1 -1
- package/dist/Theme/assertPalette.js +2 -2
- package/dist/Theme/chakra/Card.styles.d.ts +78 -0
- package/dist/Theme/chakra/Card.styles.js +48 -0
- package/dist/Theme/chakra/Drawer.styles.d.ts +41 -9
- package/dist/Theme/chakra/Drawer.styles.js +14 -13
- package/dist/Theme/chakra/Menu.styles.d.ts +3 -18
- package/dist/Theme/chakra/Menu.styles.js +2 -23
- package/dist/Theme/chakra/Modal.styles.d.ts +42 -9
- package/dist/Theme/chakra/Modal.styles.js +15 -13
- package/dist/Theme/chakra/Popover.styles.d.ts +3 -3
- package/dist/Theme/chakra/Popover.styles.js +2 -10
- package/dist/Theme/chakra/Slider.styles.d.ts +3 -3
- package/dist/Theme/chakra/Slider.styles.js +1 -6
- package/dist/Theme/chakra/common.web.d.ts +0 -4
- package/dist/Theme/chakra/common.web.js +1 -7
- package/dist/Theme/chakra/componentStyles.d.ts +157 -103
- package/dist/Theme/chakra/componentStyles.js +66 -86
- package/dist/Theme/chakra/createBrandTheme.d.ts +0 -10
- package/dist/Theme/chakra/createBrandTheme.js +6 -50
- package/dist/Theme/chakra/focusRing.styles.d.ts +17 -24
- package/dist/Theme/chakra/focusRing.styles.js +20 -24
- package/dist/Theme/chakra/fonts.web.d.ts +0 -5
- package/dist/Theme/chakra/fonts.web.js +1 -5
- package/dist/Theme/chakra/motion.d.ts +5 -0
- package/dist/Theme/chakra/motion.js +27 -0
- package/dist/Theme/chakra/overlay.styles.d.ts +51 -0
- package/dist/Theme/chakra/overlay.styles.js +48 -0
- package/dist/Theme/chakra/paletteFromTheme.d.ts +0 -4
- package/dist/Theme/chakra/paletteFromTheme.js +1 -4
- package/dist/Theme/index.d.ts +0 -12
- package/dist/Theme/index.js +3 -18
- package/dist/Theme/provider/PixelizeThemeProvider.d.ts +0 -32
- package/dist/Theme/provider/PixelizeThemeProvider.js +6 -74
- package/dist/Theme/provider/ThemeSwitcher.js +17 -18
- package/dist/Theme/provider/colorModeStorage.js +1 -4
- package/dist/Theme/tokens/brands/emerald/palette.dark.d.ts +0 -4
- package/dist/Theme/tokens/brands/emerald/palette.dark.js +0 -4
- package/dist/Theme/tokens/brands/emerald/palette.light.js +2 -10
- package/dist/Theme/tokens/brands/index.js +4 -4
- package/dist/Theme/tokens/brands/lavender/palette.dark.d.ts +0 -4
- package/dist/Theme/tokens/brands/lavender/palette.dark.js +0 -4
- package/dist/Theme/tokens/brands/lavender/palette.light.js +4 -13
- package/dist/Theme/tokens/brands/meadow/palette.dark.d.ts +0 -4
- package/dist/Theme/tokens/brands/meadow/palette.dark.js +0 -4
- package/dist/Theme/tokens/brands/meadow/palette.light.js +2 -11
- package/dist/Theme/tokens/brands/radiant/palette.dark.d.ts +0 -4
- package/dist/Theme/tokens/brands/radiant/palette.dark.js +0 -4
- package/dist/Theme/tokens/brands/radiant/palette.light.js +2 -10
- package/dist/Theme/tokens/brands/rosewood/palette.dark.d.ts +0 -4
- package/dist/Theme/tokens/brands/rosewood/palette.dark.js +0 -4
- package/dist/Theme/tokens/brands/rosewood/palette.light.js +2 -14
- package/dist/Theme/tokens/brands/skyline/palette.dark.d.ts +0 -4
- package/dist/Theme/tokens/brands/skyline/palette.dark.js +0 -4
- package/dist/Theme/tokens/brands/skyline/palette.light.js +2 -11
- package/dist/Theme/tokens/brands/slate/palette.dark.d.ts +0 -4
- package/dist/Theme/tokens/brands/slate/palette.dark.js +0 -4
- package/dist/Theme/tokens/brands/slate/palette.light.js +1 -11
- package/dist/Theme/tokens/brands/storefront/palette.dark.d.ts +0 -4
- package/dist/Theme/tokens/brands/storefront/palette.dark.js +0 -4
- package/dist/Theme/tokens/brands/zinc/palette.dark.d.ts +10 -9
- package/dist/Theme/tokens/brands/zinc/palette.dark.js +5 -35
- package/dist/Theme/tokens/brands/zinc/palette.light.js +3 -12
- package/dist/Theme/tokens/builders/accentText.d.ts +0 -43
- package/dist/Theme/tokens/builders/accentText.js +5 -48
- package/dist/Theme/tokens/builders/brandInk.d.ts +2 -0
- package/dist/Theme/tokens/builders/brandInk.js +19 -1
- package/dist/Theme/tokens/builders/buildBrandTokens.d.ts +0 -3
- package/dist/Theme/tokens/builders/buildBrandTokens.js +1 -3
- package/dist/Theme/tokens/builders/buildDarkPalette.d.ts +0 -12
- package/dist/Theme/tokens/builders/buildDarkPalette.js +15 -103
- package/dist/Theme/tokens/builders/chartColorsFromTheme.d.ts +0 -8
- package/dist/Theme/tokens/builders/chartColorsFromTheme.js +1 -8
- package/dist/Theme/tokens/builders/color.d.ts +0 -20
- package/dist/Theme/tokens/builders/color.js +3 -20
- package/dist/Theme/tokens/builders/filledSurface.d.ts +2 -12
- package/dist/Theme/tokens/builders/filledSurface.js +35 -25
- package/dist/Theme/tokens/builders/focusRing.d.ts +0 -45
- package/dist/Theme/tokens/builders/focusRing.js +5 -49
- package/dist/Theme/tokens/builders/gradientInk.d.ts +0 -10
- package/dist/Theme/tokens/builders/gradientInk.js +2 -10
- package/dist/Theme/tokens/builders/index.d.ts +4 -0
- package/dist/Theme/tokens/builders/index.js +4 -0
- package/dist/Theme/tokens/builders/outlineRung.d.ts +0 -66
- package/dist/Theme/tokens/builders/outlineRung.js +4 -70
- package/dist/Theme/tokens/builders/placeholderInk.d.ts +0 -12
- package/dist/Theme/tokens/builders/placeholderInk.js +2 -12
- package/dist/Theme/tokens/builders/resolvedRungs.d.ts +0 -5
- package/dist/Theme/tokens/builders/resolvedRungs.js +1 -5
- package/dist/Theme/tokens/builders/rowStates.d.ts +0 -6
- package/dist/Theme/tokens/builders/rowStates.js +4 -8
- package/dist/Theme/tokens/builders/scrim.d.ts +6 -0
- package/dist/Theme/tokens/builders/scrim.js +17 -0
- package/dist/Theme/tokens/builders/scrollbar.d.ts +0 -4
- package/dist/Theme/tokens/builders/scrollbar.js +1 -4
- package/dist/Theme/tokens/builders/semanticText.d.ts +0 -5
- package/dist/Theme/tokens/builders/semanticText.js +1 -5
- package/dist/Theme/tokens/builders/sidebarAccent.d.ts +8 -0
- package/dist/Theme/tokens/builders/sidebarAccent.js +15 -1
- package/dist/Theme/tokens/builders/statusTone.d.ts +1 -19
- package/dist/Theme/tokens/builders/statusTone.js +4 -19
- package/dist/Theme/tokens/builders/surfaceRaised.d.ts +6 -0
- package/dist/Theme/tokens/builders/surfaceRaised.js +21 -0
- package/dist/Theme/tokens/builders/surfaceRungs.d.ts +0 -4
- package/dist/Theme/tokens/builders/surfaceRungs.js +3 -9
- package/dist/Theme/tokens/builders/tone.d.ts +22 -0
- package/dist/Theme/tokens/builders/tone.js +54 -0
- package/dist/Theme/tokens/builders/tooltipSurface.d.ts +6 -0
- package/dist/Theme/tokens/builders/tooltipSurface.js +10 -0
- package/dist/Theme/tokens/builders/viewportHeight.d.ts +8 -0
- package/dist/Theme/tokens/builders/viewportHeight.js +9 -0
- package/dist/Theme/tokens/index.d.ts +0 -10
- package/dist/Theme/tokens/index.js +1 -10
- package/dist/Theme/tokens/primitives/controlSizes.d.ts +12 -0
- package/dist/Theme/tokens/primitives/controlSizes.js +14 -0
- package/dist/Theme/tokens/primitives/index.d.ts +2 -0
- package/dist/Theme/tokens/primitives/index.js +16 -0
- package/dist/Theme/tokens/primitives/motion.d.ts +8 -0
- package/dist/Theme/tokens/primitives/motion.js +12 -0
- package/dist/Theme/tokens/primitives/sizes.d.ts +0 -4
- package/dist/Theme/tokens/primitives/sizes.js +1 -4
- package/dist/Theme/tokens/primitives/typography.d.ts +0 -7
- package/dist/Theme/tokens/primitives/typography.js +1 -7
- package/dist/Theme/tokens/types.d.ts +8 -28
- package/dist/Theme/tokens/types.js +1 -6
- package/dist/Utils/accountHandoff.d.ts +0 -17
- package/dist/Utils/accountHandoff.js +2 -17
- package/dist/Utils/apiError.d.ts +2 -0
- package/dist/Utils/apiError.js +28 -0
- package/dist/Utils/functions.d.ts +1 -0
- package/dist/Utils/functions.js +6 -4
- package/dist/Utils/humanize.d.ts +4 -0
- package/dist/Utils/humanize.js +19 -0
- package/dist/Utils/lazyWithRetry.d.ts +9 -0
- package/dist/Utils/lazyWithRetry.js +51 -0
- package/dist/Utils/mergeRefs.d.ts +0 -5
- package/dist/Utils/mergeRefs.js +1 -5
- package/dist/Utils/planBadge.d.ts +1 -11
- package/dist/Utils/planBadge.js +2 -12
- package/dist/Utils/planExpiry.d.ts +0 -26
- package/dist/Utils/planExpiry.js +4 -29
- package/dist/Utils/rafThrottle.d.ts +0 -11
- package/dist/Utils/rafThrottle.js +1 -11
- package/dist/Utils/table.d.ts +2 -22
- package/dist/Utils/table.js +17 -87
- package/dist/Utils/validation.d.ts +13 -0
- package/dist/Utils/validation.js +86 -0
- package/dist/esm/Components/Accordion/Accordion.js +8 -10
- package/dist/esm/Components/Accordion/accordionColors.js +9 -10
- package/dist/esm/Components/AlertDialog/AlertDialog.js +3 -6
- package/dist/esm/Components/Apexcharts/ApexAreaChart/ApexAreaChart.js +7 -3
- package/dist/esm/Components/Apexcharts/ApexBarChart/ApexBarChart.js +8 -5
- package/dist/esm/Components/Apexcharts/ApexChartFallback.js +5 -0
- package/dist/esm/Components/Apexcharts/ApexLineChart/ApexLineChart.js +7 -3
- package/dist/esm/Components/Apexcharts/ApexPieChart/ApexPieChart.js +7 -3
- package/dist/esm/Components/Apexcharts/ApexPolarCharts/ApexPolarCharts.js +9 -6
- package/dist/esm/Components/Apexcharts/ApexRadialChart/ApexRadialChart.js +7 -5
- package/dist/esm/Components/Apexcharts/LazyReactApexChart.js +5 -0
- package/dist/esm/Components/AppSwitcher/AppMark.js +1 -5
- package/dist/esm/Components/AppSwitcher/AppSwitcher.js +4 -9
- package/dist/esm/Components/Avatar/Avatar.js +22 -0
- package/dist/esm/Components/Avatar/AvatarGroup.js +19 -0
- package/dist/esm/Components/Avatar/AvatarProps.js +1 -0
- package/dist/esm/Components/Avatar/avatarColorway.js +25 -0
- package/dist/esm/Components/Avatar/avatarSizing.js +12 -0
- package/dist/esm/Components/Backdrop/Backdrop.js +28 -0
- package/dist/esm/Components/Backdrop/BackdropProps.js +1 -0
- package/dist/esm/Components/Breadcrumbs/Breadcrumbs.js +15 -5
- package/dist/esm/Components/Breadcrumbs/breadcrumbInk.js +7 -0
- package/dist/esm/Components/Button/Button.js +2 -2
- package/dist/esm/Components/Button/Button.styles.js +21 -62
- package/dist/esm/Components/ButtonGroupIcon/ButtonGoupIconProps.js +2 -1
- package/dist/esm/Components/ButtonGroupIcon/ButtonGroupIcon.js +3 -10
- package/dist/esm/Components/ButtonGroupIcon/ButtonGroupIconProps.js +1 -0
- package/dist/esm/Components/Buttons/Buttons.js +2 -3
- package/dist/esm/Components/Card/Card.js +11 -5
- package/dist/esm/Components/Card/PaymentCard/PaymentCard.js +13 -9
- package/dist/esm/Components/Checkbox/Checkbox.js +11 -9
- package/dist/esm/Components/Checkbox/Checkbox.styles.js +42 -37
- package/dist/esm/Components/Common/ErrorComponent.js +1 -1
- package/dist/esm/Components/Common/ErrorMessage.js +5 -5
- package/dist/esm/Components/Common/FieldMessage.js +14 -0
- package/dist/esm/Components/Common/FormLabel.js +13 -8
- package/dist/esm/Components/Common/HelperText.js +3 -2
- package/dist/esm/Components/Common/Label.js +3 -2
- package/dist/esm/Components/Common/fieldMessageStyles.js +13 -0
- package/dist/esm/Components/Common/fieldStyles.js +66 -29
- package/dist/esm/Components/Common/useFieldIds.js +23 -0
- package/dist/esm/Components/ConfirmDialog/ConfirmDialog.js +18 -0
- package/dist/esm/Components/ConfirmDialog/ConfirmDialogProps.js +1 -0
- package/dist/esm/Components/ContactForm/ContactForm.js +19 -15
- package/dist/esm/Components/CopyButton/CopyButton.js +3 -4
- package/dist/esm/Components/CustomModulesTable/DeleteModuleModal.js +4 -4
- package/dist/esm/Components/CustomModulesTable/EditModuleModal.js +2 -4
- package/dist/esm/Components/DatePicker/CalendarPanel.js +5 -9
- package/dist/esm/Components/DatePicker/DatePicker.js +12 -49
- package/dist/esm/Components/DatePicker/DatePickerProps.js +1 -1
- package/dist/esm/Components/DatePicker/RangeDatePicker.js +17 -21
- package/dist/esm/Components/DatePicker/SingleDatePicker.js +37 -53
- package/dist/esm/Components/DatePicker/ThemeDatePicker.js +11 -18
- package/dist/esm/Components/DatePicker/TimeOnlyPicker.js +35 -20
- package/dist/esm/Components/DatePicker/TimePicker.js +8 -12
- package/dist/esm/Components/DatePicker/TimePickerInput.js +5 -11
- package/dist/esm/Components/DatePicker/dayStates.js +3 -15
- package/dist/esm/Components/DatePicker/pickerField.js +24 -0
- package/dist/esm/Components/DatePicker/valueFormat.js +15 -0
- package/dist/esm/Components/DescriptionList/DescriptionList.js +27 -0
- package/dist/esm/Components/DescriptionList/DescriptionListProps.js +1 -0
- package/dist/esm/Components/Drawer/Drawer.js +22 -8
- package/dist/esm/Components/Dropdown/DropDown.js +43 -33
- package/dist/esm/Components/Editor/Editor.js +13 -1
- package/dist/esm/Components/Editor/joditAccessibility.js +24 -0
- package/dist/esm/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +3 -5
- package/dist/esm/Components/EmptyState/EmptyState.js +24 -15
- package/dist/esm/Components/FeedbackForm/FeedbackForm.js +17 -7
- package/dist/esm/Components/FieldSelectModal/FieldSelectModal.js +3 -5
- package/dist/esm/Components/FilePreview/FilePreview.js +8 -8
- package/dist/esm/Components/FileUpload/FileUpload.js +22 -6
- package/dist/esm/Components/FileUpload/constants.js +1 -0
- package/dist/esm/Components/FileUploader/FileUploader.js +6 -5
- package/dist/esm/Components/FilterBar/FilterBar.js +12 -0
- package/dist/esm/Components/FilterBar/FilterBarProps.js +1 -0
- package/dist/esm/Components/FilterSidebar/FilterSidebar.js +28 -33
- package/dist/esm/Components/FilterSidebar/filterHoverStyle.js +1 -1
- package/dist/esm/Components/Form/FormWrapper.js +1 -1
- package/dist/esm/Components/Header/Header.js +2 -16
- package/dist/esm/Components/Header/HeaderActions.js +4 -4
- package/dist/esm/Components/Header/components/desktopMenu.js +10 -11
- package/dist/esm/Components/Header/components/mobileMenu.js +23 -20
- package/dist/esm/Components/Input/Input/Input.js +3 -2
- package/dist/esm/Components/Input/PhoneNumberInput.js +8 -5
- package/dist/esm/Components/Input/Switch/InputSwitch.js +16 -21
- package/dist/esm/Components/Input/TextInput.js +83 -10
- package/dist/esm/Components/Input/TextInput.styles.js +42 -88
- package/dist/esm/Components/Input/textInputIconSize.js +4 -20
- package/dist/esm/Components/Input/useAriaRequired.js +15 -0
- package/dist/esm/Components/InputTextArea/InputTextArea.js +10 -6
- package/dist/esm/Components/InputTextArea/InputTextArea.style.js +14 -69
- package/dist/esm/Components/KanbanBoard/AccountCard.js +9 -6
- package/dist/esm/Components/KanbanBoard/AccountRow.js +1 -1
- package/dist/esm/Components/KanbanBoard/KanbanActions/KanbanActions.js +1 -1
- package/dist/esm/Components/KanbanBoard/KanbanBoard.js +86 -50
- package/dist/esm/Components/KanbanBoard/index.js +1 -0
- package/dist/esm/Components/LimitReachedModal/LimitReachedModal.js +2 -2
- package/dist/esm/Components/LimitReachedModal/limitReachedCopy.js +1 -3
- package/dist/esm/Components/Loading/Loading.js +16 -19
- package/dist/esm/Components/MediaViewer/MediaViewer.js +196 -0
- package/dist/esm/Components/MediaViewer/MediaViewerProps.js +29 -0
- package/dist/esm/Components/MediaViewer/components/MediaAudioPlayer.js +133 -0
- package/dist/esm/Components/MediaViewer/components/MediaAudioPlayerProps.js +18 -0
- package/dist/esm/Components/MediaViewer/components/MediaDocumentStage.js +109 -0
- package/dist/esm/Components/MediaViewer/components/MediaDocumentStageProps.js +8 -0
- package/dist/esm/Components/MediaViewer/components/MediaImageViewer.js +98 -0
- package/dist/esm/Components/MediaViewer/components/MediaImageViewerProps.js +15 -0
- package/dist/esm/Components/MediaViewer/components/MediaScrubber.js +87 -0
- package/dist/esm/Components/MediaViewer/components/MediaScrubberProps.js +1 -0
- package/dist/esm/Components/MediaViewer/components/MediaStatusPanel.js +12 -0
- package/dist/esm/Components/MediaViewer/components/MediaStatusPanelProps.js +1 -0
- package/dist/esm/Components/MediaViewer/components/MediaVideoPlayer.js +243 -0
- package/dist/esm/Components/MediaViewer/components/MediaVideoPlayerProps.js +28 -0
- package/dist/esm/Components/MediaViewer/components/TileChip.js +10 -0
- package/dist/esm/Components/MediaViewer/components/TileChipProps.js +1 -0
- package/dist/esm/Components/MediaViewer/components/VideoPoster.js +11 -0
- package/dist/esm/Components/MediaViewer/components/VideoPosterProps.js +1 -0
- package/dist/esm/Components/MediaViewer/components/ViewerIconButton.js +15 -0
- package/dist/esm/Components/MediaViewer/components/ViewerIconButtonProps.js +1 -0
- package/dist/esm/Components/MediaViewer/components/mediaKindIcon.js +18 -0
- package/dist/esm/Components/MediaViewer/components/sanitizeDocxHrefs.js +27 -0
- package/dist/esm/Components/MediaViewer/hooks/useAutoHideChrome.js +40 -0
- package/dist/esm/Components/MediaViewer/hooks/useFileViewer.js +45 -0
- package/dist/esm/Components/MediaViewer/mediaItems.js +174 -0
- package/dist/esm/Components/MediaViewer/useViewerChrome.js +27 -0
- package/dist/esm/Components/Modal/Modal.js +25 -19
- package/dist/esm/Components/MoreItems/MoreItems.js +4 -2
- package/dist/esm/Components/MultiSelect/MultiSelect.js +40 -28
- package/dist/esm/Components/NavigationBar/NavigationBar.js +7 -8
- package/dist/esm/Components/NoteTextArea/NoteTextArea.js +15 -10
- package/dist/esm/Components/Notification/Notification.js +9 -5
- package/dist/esm/Components/NotificationBell/NotificationBell.js +33 -0
- package/dist/esm/Components/NotificationBell/NotificationBellProps.js +1 -0
- package/dist/esm/Components/NotificationBell/NotificationItem.js +29 -0
- package/dist/esm/Components/NotificationBell/NotificationList.js +36 -0
- package/dist/esm/Components/NotificationBell/NotificationPanel.js +31 -0
- package/dist/esm/Components/NotificationBell/index.js +6 -0
- package/dist/esm/Components/NotificationBell/notificationHelpers.js +107 -0
- package/dist/esm/Components/NumberInput/NumberInput.js +7 -6
- package/dist/esm/Components/NumberInput/NumberInput.styles.js +19 -78
- package/dist/esm/Components/OrgSwitcher/OrgSwitcher.js +4 -12
- package/dist/esm/Components/OrgSwitcher/OrgSwitcherProps.js +2 -1
- package/dist/esm/Components/OrganizationDetails/CreateOrgModal.js +1 -1
- package/dist/esm/Components/OrganizationDetails/DeleteOrgModal.js +7 -9
- package/dist/esm/Components/OrganizationDetails/OrganizationDetails.js +9 -8
- package/dist/esm/Components/PageHeader/PageHeader.js +9 -0
- package/dist/esm/Components/PageHeader/PageHeaderProps.js +1 -0
- package/dist/esm/Components/PdfViewer/PdfViewer.js +1 -1
- package/dist/esm/Components/PersonChip/PersonChip.js +42 -0
- package/dist/esm/Components/PersonChip/PersonChipProps.js +1 -0
- package/dist/esm/Components/PinInput/PinInput.js +11 -10
- package/dist/esm/Components/PinInput/pinInputCellSize.js +6 -0
- package/dist/esm/Components/PlanBadge/PlanBadge.js +1 -7
- package/dist/esm/Components/PlanPill/PlanPill.js +2 -3
- package/dist/esm/Components/PlanPill/planPillGradient.js +6 -20
- package/dist/esm/Components/Primitives/Primitives.js +3 -6
- package/dist/esm/Components/ProductCard/ProductPrice.js +18 -7
- package/dist/esm/Components/ProductCard/ProductReview.js +3 -2
- package/dist/esm/Components/ProductDetails/ProductDetails.js +1 -1
- package/dist/esm/Components/ProductDetails/ProductDtlPrice.js +5 -5
- package/dist/esm/Components/ProductDetails/ProductImageSlider.js +36 -20
- package/dist/esm/Components/ProfileCard/ProfileCard.js +25 -10
- package/dist/esm/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +7 -4
- package/dist/esm/Components/ProgressBar/ProgressBar.js +27 -3
- package/dist/esm/Components/QueryState/ErrorState.js +11 -0
- package/dist/esm/Components/QueryState/QueryStateBoundary.js +20 -0
- package/dist/esm/Components/QueryState/QueryStateProps.js +1 -0
- package/dist/esm/Components/RadioButton/RadioButton.js +33 -16
- package/dist/esm/Components/RangeSlider/RangeSlider.js +131 -0
- package/dist/esm/Components/RangeSlider/RangeSliderProps.js +1 -0
- package/dist/esm/Components/RangeSlider/rangeSliderColors.js +7 -0
- package/dist/esm/Components/RangeSlider/rangeSliderMath.js +69 -0
- package/dist/esm/Components/RangeSlider/rangeSliderSize.js +8 -0
- package/dist/esm/Components/Reorder/Reorder.js +2 -2
- package/dist/esm/Components/RolesPermission/DeleteRoleModal.js +7 -9
- package/dist/esm/Components/RolesPermission/RolesPermission.js +1 -1
- package/dist/esm/Components/SaveBar/SaveBar.js +19 -0
- package/dist/esm/Components/SaveBar/SaveBarProps.js +1 -0
- package/dist/esm/Components/ScrollToTop/ScrollToTop.js +5 -2
- package/dist/esm/Components/Search/Search.js +35 -16
- package/dist/esm/Components/SearchSelect/SearchSelect.js +62 -76
- package/dist/esm/Components/SearchSelect/searchSelectSize.js +15 -15
- package/dist/esm/Components/SegmentedControl/SegmentedControl.js +51 -32
- package/dist/esm/Components/SegmentedControl/segmentedInk.js +23 -0
- package/dist/esm/Components/SegmentedControl/useSlidingPill.js +22 -0
- package/dist/esm/Components/Select/Select.js +67 -25
- package/dist/esm/Components/Select/Select.styles.js +12 -81
- package/dist/esm/Components/Select/SelectNative.js +44 -0
- package/dist/esm/Components/Select/SelectPopup.js +385 -0
- package/dist/esm/Components/SelectSearch/SelectSearch.js +18 -80
- package/dist/esm/Components/SelectV2/SelectV2.js +16 -231
- package/dist/esm/Components/SettingRow/SettingRow.js +22 -0
- package/dist/esm/Components/SettingRow/SettingRowProps.js +1 -0
- package/dist/esm/Components/SettingRow/SettingsSection.js +11 -0
- package/dist/esm/Components/SettingRow/SettingsSectionProps.js +1 -0
- package/dist/esm/Components/SideBar/SecondaryBar.js +21 -10
- package/dist/esm/Components/SideBar/SideBar.js +39 -23
- package/dist/esm/Components/SideBar/components/MenuItemBox.js +41 -25
- package/dist/esm/Components/SideBar/components/MenuItems.js +4 -4
- package/dist/esm/Components/SideBar/components/MenuPopoverContent.js +21 -10
- package/dist/esm/Components/SideBar/components/OtherApps.js +3 -3
- package/dist/esm/Components/SideBar/components/OverflowTooltipText.js +3 -1
- package/dist/esm/Components/SideBar/components/TextTruncation.js +3 -3
- package/dist/esm/Components/SideBar/menuDisabled.js +3 -0
- package/dist/esm/Components/SideBar/sidebarId.js +2 -0
- package/dist/esm/Components/SideBar/sidebarScale.js +15 -0
- package/dist/esm/Components/Skeletons/Skeletons.js +2 -2
- package/dist/esm/Components/Slider/Slider.js +2 -1
- package/dist/esm/Components/Spinner/Spinner.js +19 -0
- package/dist/esm/Components/Spinner/SpinnerProps.js +1 -0
- package/dist/esm/Components/StageProgress/StageItem.js +12 -4
- package/dist/esm/Components/StageProgress/StageProgress.js +6 -7
- package/dist/esm/Components/StageProgress/StageProgressProps.js +6 -2
- package/dist/esm/Components/StageProgress/StepperStage.js +5 -2
- package/dist/esm/Components/StatCard/StatCard.js +37 -0
- package/dist/esm/Components/StatCard/StatCardProps.js +1 -0
- package/dist/esm/Components/Switch/Switch.js +10 -11
- package/dist/esm/Components/Table/Table.js +58 -51
- package/dist/esm/Components/Table/components/HeaderActions.js +3 -2
- package/dist/esm/Components/Table/components/Pagination.js +13 -5
- package/dist/esm/Components/Table/components/TableActions.js +1 -1
- package/dist/esm/Components/Table/components/TableBody.js +33 -41
- package/dist/esm/Components/Table/components/TableGroupRow.js +1 -1
- package/dist/esm/Components/Table/components/TableHeader.js +14 -12
- package/dist/esm/Components/Table/components/TableSearch.js +1 -1
- package/dist/esm/Components/Table/components/rowMetrics.js +11 -0
- package/dist/esm/Components/Table/filters/ActiveFilters.js +7 -4
- package/dist/esm/Components/Table/filters/CompactSelect.js +1 -1
- package/dist/esm/Components/Table/filters/LeftFilterPane.js +1 -1
- package/dist/esm/Components/Table/filters/SelectOperationControls.js +8 -3
- package/dist/esm/Components/Table/filters/TableFilters.js +1 -1
- package/dist/esm/Components/Table/filters/TextOperationControls.js +6 -2
- package/dist/esm/Components/Table/hooks/useTable.js +18 -26
- package/dist/esm/Components/Table/settings/ManageColumns.js +7 -6
- package/dist/esm/Components/Table/settings/TableSettings.js +5 -4
- package/dist/esm/Components/Table/variants/classic.js +2 -0
- package/dist/esm/Components/Table/variants/stripe.js +3 -0
- package/dist/esm/Components/Table/variants/studio.js +2 -0
- package/dist/esm/Components/Tabs/Tabs.js +65 -0
- package/dist/esm/Components/Tabs/TabsContext.js +10 -0
- package/dist/esm/Components/Tabs/TabsProps.js +1 -0
- package/dist/esm/Components/Tabs/components/CountBadge.js +15 -0
- package/dist/esm/Components/Tabs/components/Tab.js +44 -0
- package/dist/esm/Components/Tabs/components/TabList.js +69 -0
- package/dist/esm/Components/Tabs/components/TabPanel.js +15 -0
- package/dist/esm/Components/Tabs/components/TabPanels.js +12 -0
- package/dist/esm/Components/Tabs/index.js +5 -0
- package/dist/esm/Components/Tabs/tabStyles.js +33 -0
- package/dist/esm/Components/Tag/Tag.js +15 -7
- package/dist/esm/Components/Tag/Tag.styles.js +44 -37
- package/dist/esm/Components/Timeline/Timeline.js +42 -30
- package/dist/esm/Components/Toaster/Toaster.js +73 -58
- package/dist/esm/Components/Toaster/toastDuration.js +3 -0
- package/dist/esm/Components/Toggle/TableToggle.js +9 -24
- package/dist/esm/Components/ToggleSwitch/ToggleSwitch.js +39 -8
- package/dist/esm/Components/ToolTip/OverflowToolTip.js +1 -15
- package/dist/esm/Components/ToolTip/ToolTip.js +14 -14
- package/dist/esm/Components/UpgradeButton/UpgradeButton.js +9 -14
- package/dist/esm/Components/UserDetails/AddUserModal.js +1 -1
- package/dist/esm/Components/UserDetails/ChangeRoleModal.js +1 -1
- package/dist/esm/Components/UserDetails/DeactivateConfirmModal.js +6 -8
- package/dist/esm/Components/UserDetails/UserDetails.js +7 -9
- package/dist/esm/Components/WorkspaceWindow/WorkspaceTrayPreview.js +2 -14
- package/dist/esm/Components/WorkspaceWindow/WorkspaceWindow.js +6 -23
- package/dist/esm/Hooks/useDebounce.js +29 -0
- package/dist/esm/Hooks/useExclusiveOverlay.js +1 -4
- package/dist/esm/Hooks/useFullscreen.js +29 -0
- package/dist/esm/Hooks/useIsTruncated.js +1 -30
- package/dist/esm/Hooks/usePreferences.js +1 -6
- package/dist/esm/Hooks/useSidebarPrefs.js +1 -2
- package/dist/esm/Theme/assertPalette.js +2 -2
- package/dist/esm/Theme/chakra/Card.styles.js +45 -0
- package/dist/esm/Theme/chakra/Drawer.styles.js +14 -13
- package/dist/esm/Theme/chakra/Menu.styles.js +2 -23
- package/dist/esm/Theme/chakra/Modal.styles.js +15 -13
- package/dist/esm/Theme/chakra/Popover.styles.js +2 -10
- package/dist/esm/Theme/chakra/Slider.styles.js +1 -6
- package/dist/esm/Theme/chakra/common.web.js +1 -7
- package/dist/esm/Theme/chakra/componentStyles.js +68 -88
- package/dist/esm/Theme/chakra/createBrandTheme.js +6 -50
- package/dist/esm/Theme/chakra/focusRing.styles.js +17 -23
- package/dist/esm/Theme/chakra/fonts.web.js +1 -5
- package/dist/esm/Theme/chakra/motion.js +22 -0
- package/dist/esm/Theme/chakra/overlay.styles.js +43 -0
- package/dist/esm/Theme/chakra/paletteFromTheme.js +1 -4
- package/dist/esm/Theme/index.js +3 -18
- package/dist/esm/Theme/provider/PixelizeThemeProvider.js +6 -74
- package/dist/esm/Theme/provider/ThemeSwitcher.js +18 -19
- package/dist/esm/Theme/provider/colorModeStorage.js +1 -4
- package/dist/esm/Theme/tokens/brands/emerald/palette.dark.js +0 -4
- package/dist/esm/Theme/tokens/brands/emerald/palette.light.js +2 -10
- package/dist/esm/Theme/tokens/brands/index.js +4 -4
- package/dist/esm/Theme/tokens/brands/lavender/palette.dark.js +0 -4
- package/dist/esm/Theme/tokens/brands/lavender/palette.light.js +4 -13
- package/dist/esm/Theme/tokens/brands/meadow/palette.dark.js +0 -4
- package/dist/esm/Theme/tokens/brands/meadow/palette.light.js +2 -11
- package/dist/esm/Theme/tokens/brands/radiant/palette.dark.js +0 -4
- package/dist/esm/Theme/tokens/brands/radiant/palette.light.js +2 -10
- package/dist/esm/Theme/tokens/brands/rosewood/palette.dark.js +0 -4
- package/dist/esm/Theme/tokens/brands/rosewood/palette.light.js +2 -14
- package/dist/esm/Theme/tokens/brands/skyline/palette.dark.js +0 -4
- package/dist/esm/Theme/tokens/brands/skyline/palette.light.js +2 -11
- package/dist/esm/Theme/tokens/brands/slate/palette.dark.js +0 -4
- package/dist/esm/Theme/tokens/brands/slate/palette.light.js +1 -11
- package/dist/esm/Theme/tokens/brands/storefront/palette.dark.js +0 -4
- package/dist/esm/Theme/tokens/brands/zinc/palette.dark.js +5 -35
- package/dist/esm/Theme/tokens/brands/zinc/palette.light.js +3 -12
- package/dist/esm/Theme/tokens/builders/accentText.js +5 -48
- package/dist/esm/Theme/tokens/builders/brandInk.js +18 -2
- package/dist/esm/Theme/tokens/builders/buildBrandTokens.js +1 -3
- package/dist/esm/Theme/tokens/builders/buildDarkPalette.js +15 -103
- package/dist/esm/Theme/tokens/builders/chartColorsFromTheme.js +1 -8
- package/dist/esm/Theme/tokens/builders/color.js +3 -20
- package/dist/esm/Theme/tokens/builders/filledSurface.js +35 -25
- package/dist/esm/Theme/tokens/builders/focusRing.js +5 -49
- package/dist/esm/Theme/tokens/builders/gradientInk.js +2 -10
- package/dist/esm/Theme/tokens/builders/index.js +4 -0
- package/dist/esm/Theme/tokens/builders/outlineRung.js +4 -70
- package/dist/esm/Theme/tokens/builders/placeholderInk.js +2 -12
- package/dist/esm/Theme/tokens/builders/resolvedRungs.js +1 -5
- package/dist/esm/Theme/tokens/builders/rowStates.js +5 -9
- package/dist/esm/Theme/tokens/builders/scrim.js +12 -0
- package/dist/esm/Theme/tokens/builders/scrollbar.js +1 -4
- package/dist/esm/Theme/tokens/builders/semanticText.js +1 -5
- package/dist/esm/Theme/tokens/builders/sidebarAccent.js +11 -0
- package/dist/esm/Theme/tokens/builders/statusTone.js +4 -19
- package/dist/esm/Theme/tokens/builders/surfaceRaised.js +15 -0
- package/dist/esm/Theme/tokens/builders/surfaceRungs.js +3 -9
- package/dist/esm/Theme/tokens/builders/tone.js +47 -0
- package/dist/esm/Theme/tokens/builders/tooltipSurface.js +6 -0
- package/dist/esm/Theme/tokens/builders/viewportHeight.js +6 -0
- package/dist/esm/Theme/tokens/index.js +1 -10
- package/dist/esm/Theme/tokens/primitives/controlSizes.js +10 -0
- package/dist/esm/Theme/tokens/primitives/index.js +2 -0
- package/dist/esm/Theme/tokens/primitives/motion.js +8 -0
- package/dist/esm/Theme/tokens/primitives/sizes.js +1 -4
- package/dist/esm/Theme/tokens/primitives/typography.js +1 -7
- package/dist/esm/Theme/tokens/types.js +1 -6
- package/dist/esm/Utils/accountHandoff.js +2 -17
- package/dist/esm/Utils/apiError.js +24 -0
- package/dist/esm/Utils/functions.js +6 -4
- package/dist/esm/Utils/humanize.js +15 -0
- package/dist/esm/Utils/lazyWithRetry.js +45 -0
- package/dist/esm/Utils/mergeRefs.js +1 -5
- package/dist/esm/Utils/planBadge.js +2 -12
- package/dist/esm/Utils/planExpiry.js +4 -29
- package/dist/esm/Utils/rafThrottle.js +1 -11
- package/dist/esm/Utils/table.js +15 -54
- package/dist/esm/Utils/validation.js +73 -0
- package/dist/esm/index.js +64 -2
- package/dist/global.css +6 -1
- package/dist/index.d.ts +110 -6
- package/dist/index.js +192 -4
- package/package.json +11 -3
- package/dist/Assets/defaultLogo.tsx +0 -26
- package/dist/Components/PinInputs/PinInputs.d.ts +0 -4
- package/dist/Components/PinInputs/PinInputs.js +0 -47
- package/dist/Components/PinInputs/PinInputsProps.d.ts +0 -10
- package/dist/Components/Table/hooks/useDebounce.d.ts +0 -2
- package/dist/Components/Table/hooks/useDebounce.js +0 -24
- package/dist/Components/Trail/EditableCell.d.ts +0 -13
- package/dist/Components/Trail/EditableCell.js +0 -35
- package/dist/Components/Trail/SelectAllCheckbox.d.ts +0 -9
- package/dist/Components/Trail/SelectAllCheckbox.js +0 -10
- package/dist/Components/Trail/TrailWorks.d.ts +0 -3
- package/dist/Components/Trail/TrailWorks.js +0 -57
- package/dist/Components/Trail/data.d.ts +0 -15
- package/dist/Components/Trail/data.js +0 -29
- package/dist/Theme/chakra/Avatar.styles.d.ts +0 -32
- package/dist/Theme/chakra/Avatar.styles.js +0 -28
- package/dist/Theme/chakra/Switch.styles.d.ts +0 -30
- package/dist/Theme/chakra/Switch.styles.js +0 -22
- package/dist/Theme/chakra/Tabs.styles.d.ts +0 -42
- package/dist/Theme/chakra/Tabs.styles.js +0 -36
- package/dist/esm/Components/PinInputs/PinInputs.js +0 -42
- package/dist/esm/Components/Table/hooks/useDebounce.js +0 -22
- package/dist/esm/Components/Trail/EditableCell.js +0 -31
- package/dist/esm/Components/Trail/SelectAllCheckbox.js +0 -6
- package/dist/esm/Components/Trail/TrailWorks.js +0 -55
- package/dist/esm/Components/Trail/data.js +0 -26
- package/dist/esm/Theme/chakra/Avatar.styles.js +0 -25
- package/dist/esm/Theme/chakra/Switch.styles.js +0 -19
- package/dist/esm/Theme/chakra/Tabs.styles.js +0 -33
- /package/dist/Components/{PinInputs/PinInputsProps.js → Avatar/AvatarGroupProps.js} +0 -0
- /package/dist/esm/Components/{PinInputs/PinInputsProps.js → Avatar/AvatarGroupProps.js} +0 -0
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import type { PaletteProps } from "../types";
|
|
2
2
|
export type ThemeColorPalette = PaletteProps;
|
|
3
3
|
export type ChartMode = "light" | "dark";
|
|
4
|
-
/**
|
|
5
|
-
* Categorical series palette. Generated in OKLCH on one fixed hue sequence per mode, so a
|
|
6
|
-
* theme switch never repaints a series. Verified with the six-check validator: lightness
|
|
7
|
-
* band, chroma floor, CVD separation, normal-vision floor and contrast all pass on both
|
|
8
|
-
* surfaces. Worst adjacent protan/deutan separation is 10.9 (light) / 11.6 (dark) OKLab
|
|
9
|
-
* dE, against a target of 8 — the previous four-color default scored 4.8 and was
|
|
10
|
-
* unreadable for red-green color blindness. Re-run the validator before editing a value.
|
|
11
|
-
*/
|
|
12
4
|
export declare const CATEGORICAL_SERIES: Record<ChartMode, readonly string[]>;
|
|
13
5
|
export declare const chartMode: (colors: ThemeColorPalette) => ChartMode;
|
|
14
6
|
export declare function getCategoricalSeriesColors(colors: ThemeColorPalette): string[];
|
|
@@ -7,14 +7,7 @@ exports.chartInk = chartInk;
|
|
|
7
7
|
exports.mergeChartTitleStyle = mergeChartTitleStyle;
|
|
8
8
|
exports.chartAxisLabelColor = chartAxisLabelColor;
|
|
9
9
|
const accentText_1 = require("./accentText");
|
|
10
|
-
|
|
11
|
-
* Categorical series palette. Generated in OKLCH on one fixed hue sequence per mode, so a
|
|
12
|
-
* theme switch never repaints a series. Verified with the six-check validator: lightness
|
|
13
|
-
* band, chroma floor, CVD separation, normal-vision floor and contrast all pass on both
|
|
14
|
-
* surfaces. Worst adjacent protan/deutan separation is 10.9 (light) / 11.6 (dark) OKLab
|
|
15
|
-
* dE, against a target of 8 — the previous four-color default scored 4.8 and was
|
|
16
|
-
* unreadable for red-green color blindness. Re-run the validator before editing a value.
|
|
17
|
-
*/
|
|
10
|
+
// NOTE: fixed OKLCH hue sequence per mode, six-check validated (CVD separation 10.9/11.6 dE vs target 8) — re-run the validator before editing.
|
|
18
11
|
exports.CATEGORICAL_SERIES = {
|
|
19
12
|
light: ["#009068", "#3177dc", "#5a8b00", "#8b5dce", "#9b7300", "#af4da9", "#cb4a2a", "#009d82"],
|
|
20
13
|
dark: ["#00976d", "#377ee3", "#5f9200", "#9163d5", "#a27900", "#b654b0", "#d25030", "#00aa8e"],
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure color math. No dependencies, no platform APIs — safe for the mobile port.
|
|
3
|
-
*
|
|
4
|
-
* Used by `buildDarkPalette` to derive dark ramps from each brand's own light colors,
|
|
5
|
-
* and to assert contrast in tests.
|
|
6
|
-
*/
|
|
7
1
|
export type Rgb = {
|
|
8
2
|
r: number;
|
|
9
3
|
g: number;
|
|
@@ -14,25 +8,11 @@ export type Hsl = {
|
|
|
14
8
|
s: number;
|
|
15
9
|
l: number;
|
|
16
10
|
};
|
|
17
|
-
/**
|
|
18
|
-
* Accepts `#rgb` or `#rrggbb` only. An `#rrggbbaa` throws ON PURPOSE.
|
|
19
|
-
*
|
|
20
|
-
* The old version silently dropped the alpha and returned the fully-opaque rgb. That made
|
|
21
|
-
* `contrastRatio` score a 16%-alpha hover tint as if it were solid — a measured 4.18 for a fill that
|
|
22
|
-
* actually renders at 1.17 over the canvas, a 3.6x overstatement — with a doc comment saying "alpha
|
|
23
|
-
* ignored" that made it look handled. Alpha over an unknown backdrop has no defined luminance, so the
|
|
24
|
-
* only correct move is to refuse it: composite it first with `compositeOver`, then measure the result.
|
|
25
|
-
*/
|
|
26
11
|
export declare function hexToRgb(hex: string): Rgb;
|
|
27
12
|
/** Alpha in 0..1. `#rgb`/`#rrggbb` read as fully opaque (`a: 1`); `#rgba`/`#rrggbbaa` carry their alpha. */
|
|
28
13
|
export declare function hexToRgba(hex: string): Rgb & {
|
|
29
14
|
a: number;
|
|
30
15
|
};
|
|
31
|
-
/**
|
|
32
|
-
* Flatten a translucent foreground onto an opaque backdrop — the ONLY way to get a real color for a
|
|
33
|
-
* tint before measuring contrast. `contrastRatio(tint, canvas)` now throws; the correct call is
|
|
34
|
-
* `contrastRatio(compositeOver(tint, canvas), canvas)`.
|
|
35
|
-
*/
|
|
36
16
|
export declare function compositeOver(foreground: string, backdrop: string): string;
|
|
37
17
|
export declare function rgbToHex({ r, g, b }: Rgb): string;
|
|
38
18
|
export declare function rgbToHsl({ r, g, b }: Rgb): Hsl;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* Pure color math. No dependencies, no platform APIs — safe for the mobile port.
|
|
4
|
-
*
|
|
5
|
-
* Used by `buildDarkPalette` to derive dark ramps from each brand's own light colors,
|
|
6
|
-
* and to assert contrast in tests.
|
|
7
|
-
*/
|
|
2
|
+
// Pure color math, no dependencies or platform APIs — safe for the mobile port.
|
|
8
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
4
|
exports.hslToHex = exports.hexToHsl = void 0;
|
|
10
5
|
exports.hexToRgb = hexToRgb;
|
|
@@ -18,15 +13,7 @@ exports.mix = mix;
|
|
|
18
13
|
exports.relativeLuminance = relativeLuminance;
|
|
19
14
|
exports.contrastRatio = contrastRatio;
|
|
20
15
|
const clamp = (n, min, max) => Math.min(max, Math.max(min, n));
|
|
21
|
-
|
|
22
|
-
* Accepts `#rgb` or `#rrggbb` only. An `#rrggbbaa` throws ON PURPOSE.
|
|
23
|
-
*
|
|
24
|
-
* The old version silently dropped the alpha and returned the fully-opaque rgb. That made
|
|
25
|
-
* `contrastRatio` score a 16%-alpha hover tint as if it were solid — a measured 4.18 for a fill that
|
|
26
|
-
* actually renders at 1.17 over the canvas, a 3.6x overstatement — with a doc comment saying "alpha
|
|
27
|
-
* ignored" that made it look handled. Alpha over an unknown backdrop has no defined luminance, so the
|
|
28
|
-
* only correct move is to refuse it: composite it first with `compositeOver`, then measure the result.
|
|
29
|
-
*/
|
|
16
|
+
// NOTE: #rrggbbaa throws on purpose — alpha over an unknown backdrop has no defined luminance; composite first.
|
|
30
17
|
function hexToRgb(hex) {
|
|
31
18
|
let h = hex.trim().replace(/^#/, "");
|
|
32
19
|
if (h.length === 3)
|
|
@@ -49,11 +36,7 @@ function hexToRgba(hex) {
|
|
|
49
36
|
}
|
|
50
37
|
return { ...hexToRgb(`#${h}`), a: 1 };
|
|
51
38
|
}
|
|
52
|
-
|
|
53
|
-
* Flatten a translucent foreground onto an opaque backdrop — the ONLY way to get a real color for a
|
|
54
|
-
* tint before measuring contrast. `contrastRatio(tint, canvas)` now throws; the correct call is
|
|
55
|
-
* `contrastRatio(compositeOver(tint, canvas), canvas)`.
|
|
56
|
-
*/
|
|
39
|
+
// Flattens a translucent foreground onto a backdrop before measuring contrast — contrastRatio(tint, ...) now throws.
|
|
57
40
|
function compositeOver(foreground, backdrop) {
|
|
58
41
|
const f = hexToRgba(foreground);
|
|
59
42
|
const b = hexToRgb(backdrop);
|
|
@@ -11,19 +11,9 @@ export type FilledSurface = {
|
|
|
11
11
|
activeFill: string;
|
|
12
12
|
activeColor: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
* Lightest rung on `scale` that still carries `white` at WCAG AA. Prefers [500] when it already
|
|
16
|
-
* passes; otherwise walks toward darker rungs. Used for solid fills on buttons, tags, badges and
|
|
17
|
-
* table status pills so consumers never get black ink on a saturated fill when white is achievable.
|
|
18
|
-
*/
|
|
19
|
-
export declare const solidFillRung: (scale: ColorScale, white: string) => keyof ColorScale;
|
|
14
|
+
export declare const solidFillRung: (scale: ColorScale, white: string, canvas?: string) => keyof ColorScale;
|
|
20
15
|
/** Hover (step 0) or active (step 1) fill rung, one step darker than `solidFillRung`. */
|
|
21
16
|
export declare const darkerFillRung: (scale: ColorScale, canvas: string, white: string, step: 0 | 1) => keyof ColorScale;
|
|
22
17
|
/** Label ink for a specific fill swatch — always `onFilled`, exported for style configs. */
|
|
23
18
|
export declare const labelOnFill: (fill: string, white: string, black: string) => string;
|
|
24
|
-
|
|
25
|
-
* Consumer-facing helper: given any `ColorScale` (primary, red, semantic.error, …), return the
|
|
26
|
-
* fill rung and matching ink for solid / hover / active states. Use this whenever you paint a
|
|
27
|
-
* `bg` from a scale — never pair `scale[500]` with `onFilled` or `colors.white` by hand.
|
|
28
|
-
*/
|
|
29
|
-
export declare const resolveFilledSurface: (scale: ColorScale, colors: Pick<PaletteProps, "white" | "black" | "backgroundColor">) => FilledSurface;
|
|
19
|
+
export declare const resolveFilledSurface: (scale: ColorScale, colors: Pick<PaletteProps, "white" | "black" | "backgroundColor" | "background">) => FilledSurface;
|
|
@@ -3,29 +3,41 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.resolveFilledSurface = exports.labelOnFill = exports.darkerFillRung = exports.solidFillRung = void 0;
|
|
4
4
|
const color_1 = require("./color");
|
|
5
5
|
const accentText_1 = require("./accentText");
|
|
6
|
+
const outlineRung_1 = require("./outlineRung");
|
|
6
7
|
const RUNGS = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
|
|
7
|
-
|
|
8
|
-
* The rung one/two steps DARKER than the accent — what a filled button's hover/active needs so its
|
|
9
|
-
* white label stays legible.
|
|
10
|
-
*
|
|
11
|
-
* Every dark scale runs dark -> light across 50 -> 900 (brand scales are rebuilt that way, utility
|
|
12
|
-
* hues are reversed), the mirror of light mode. So "darker than [500]" is [600]/[700] in light but
|
|
13
|
-
* [400]/[300] in dark.
|
|
14
|
-
*/
|
|
8
|
+
// NOTE: "darker than [500]" is [600]/[700] in light but [400]/[300] in dark, since dark ramps run dark -> light.
|
|
15
9
|
const FILL_STEP_RUNGS = { light: [600, 700], dark: [400, 300] };
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
// NOTE: walks away from canvas one named rung at a time from 500 — one direction, so hues stay comparable.
|
|
11
|
+
const rungAwayFromCanvas = (scale, canvas) => {
|
|
12
|
+
const dir = (0, accentText_1.isDarkCanvas)(canvas) ? -1 : 1;
|
|
13
|
+
let last = 500;
|
|
14
|
+
for (let i = RUNGS.indexOf(500); i >= 0 && i < RUNGS.length; i += dir) {
|
|
15
|
+
last = RUNGS[i];
|
|
16
|
+
if ((0, color_1.contrastRatio)(scale[last], canvas) >= outlineRung_1.AA_NON_TEXT)
|
|
17
|
+
return last;
|
|
18
|
+
}
|
|
19
|
+
return last;
|
|
20
|
+
};
|
|
21
|
+
// Below this a white-labelled fill melts into the surface (zinc dark primary), so ink yields instead.
|
|
22
|
+
const WHITE_FILL_MIN_SURFACE = 2.5;
|
|
23
|
+
const lightestWhiteRung = (scale, white) => {
|
|
22
24
|
if ((0, color_1.contrastRatio)(scale[500], white) >= accentText_1.AA_NORMAL_TEXT)
|
|
23
25
|
return 500;
|
|
24
|
-
const passing = RUNGS.filter((r) =>
|
|
26
|
+
const passing = RUNGS.filter((r) => (0, color_1.contrastRatio)(scale[r], white) >= accentText_1.AA_NORMAL_TEXT);
|
|
25
27
|
if (!passing.length)
|
|
26
|
-
return
|
|
28
|
+
return undefined;
|
|
27
29
|
return passing.reduce((a, b) => (0, color_1.contrastRatio)(scale[a], white) <= (0, color_1.contrastRatio)(scale[b], white) ? a : b);
|
|
28
30
|
};
|
|
31
|
+
// Lightest rung carrying a white label at AA; falls back to stepping away from canvas and letting ink flip.
|
|
32
|
+
const solidFillRung = (scale, white, canvas) => {
|
|
33
|
+
const whiteRung = lightestWhiteRung(scale, white);
|
|
34
|
+
if (whiteRung && (!canvas || (0, color_1.contrastRatio)(scale[whiteRung], canvas) >= WHITE_FILL_MIN_SURFACE)) {
|
|
35
|
+
return whiteRung;
|
|
36
|
+
}
|
|
37
|
+
if (!canvas || (0, color_1.contrastRatio)(scale[500], canvas) >= outlineRung_1.AA_NON_TEXT)
|
|
38
|
+
return 500;
|
|
39
|
+
return rungAwayFromCanvas(scale, canvas);
|
|
40
|
+
};
|
|
29
41
|
exports.solidFillRung = solidFillRung;
|
|
30
42
|
const steppedRung = (base, canvas, step) => {
|
|
31
43
|
const dir = (0, accentText_1.isDarkCanvas)(canvas) ? -100 : 100;
|
|
@@ -33,7 +45,7 @@ const steppedRung = (base, canvas, step) => {
|
|
|
33
45
|
};
|
|
34
46
|
/** Hover (step 0) or active (step 1) fill rung, one step darker than `solidFillRung`. */
|
|
35
47
|
const darkerFillRung = (scale, canvas, white, step) => {
|
|
36
|
-
const base = (0, exports.solidFillRung)(scale, white);
|
|
48
|
+
const base = (0, exports.solidFillRung)(scale, white, canvas);
|
|
37
49
|
if (base === 500) {
|
|
38
50
|
const mode = (0, accentText_1.isDarkCanvas)(canvas) ? "dark" : "light";
|
|
39
51
|
return FILL_STEP_RUNGS[mode][step];
|
|
@@ -45,15 +57,13 @@ exports.darkerFillRung = darkerFillRung;
|
|
|
45
57
|
/** Label ink for a specific fill swatch — always `onFilled`, exported for style configs. */
|
|
46
58
|
const labelOnFill = (fill, white, black) => (0, accentText_1.onFilled)(fill, white, black);
|
|
47
59
|
exports.labelOnFill = labelOnFill;
|
|
48
|
-
|
|
49
|
-
* Consumer-facing helper: given any `ColorScale` (primary, red, semantic.error, …), return the
|
|
50
|
-
* fill rung and matching ink for solid / hover / active states. Use this whenever you paint a
|
|
51
|
-
* `bg` from a scale — never pair `scale[500]` with `onFilled` or `colors.white` by hand.
|
|
52
|
-
*/
|
|
60
|
+
// Consumer-facing helper: fill rung + ink for solid/hover/active. Never pair scale[500] with onFilled by hand.
|
|
53
61
|
const resolveFilledSurface = (scale, colors) => {
|
|
54
|
-
const { white, black, backgroundColor } = colors;
|
|
55
|
-
const canvas = backgroundColor.main
|
|
56
|
-
|
|
62
|
+
const { white, black, backgroundColor, background } = colors;
|
|
63
|
+
const canvas = (0, color_1.contrastRatio)(scale[500], backgroundColor.main) <= (0, color_1.contrastRatio)(scale[500], background[50])
|
|
64
|
+
? backgroundColor.main
|
|
65
|
+
: background[50];
|
|
66
|
+
const rung = (0, exports.solidFillRung)(scale, white, canvas);
|
|
57
67
|
const fill = scale[rung];
|
|
58
68
|
const hoverRung = (0, exports.darkerFillRung)(scale, canvas, white, 0);
|
|
59
69
|
const hoverFill = scale[hoverRung];
|
|
@@ -1,52 +1,7 @@
|
|
|
1
1
|
import type { FocusRingTokens, PaletteProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* The nearest re-lighting of `hex` that clears `target` against EVERY backdrop at once.
|
|
4
|
-
*
|
|
5
|
-
* Not `settleAcross`: that folds one `liftToContrast` per surface, and each lift walks AWAY from
|
|
6
|
-
* the surface it was handed. That is correct when every backdrop sits on the same side of the ink
|
|
7
|
-
* (its case — a set of light surfaces, or a set of dark ones), and wrong here, where a focus ring
|
|
8
|
-
* is squeezed BETWEEN a near-white canvas and a mid-dark button fill: the lift against the fill
|
|
9
|
-
* walks straight back across the canvas it had just cleared. Seeding `settleAcross` with
|
|
10
|
-
* `primary[500]` measured 1.08-1.99 on the light canvas for every brand for exactly that reason.
|
|
11
|
-
*
|
|
12
|
-
* Walking outward from the seed and testing every backdrop at each step keeps the result the
|
|
13
|
-
* CLOSEST passing colour to the brand accent, so the ring still reads as brand chrome. Contrast is
|
|
14
|
-
* a function of relative luminance alone, and lightness sweeps luminance monotonically from 0 to 1,
|
|
15
|
-
* so if any colour on this hue clears the set, this finds it.
|
|
16
|
-
*/
|
|
17
2
|
export declare function settleBetween(hex: string, backdrops: readonly string[], target?: number): string;
|
|
18
3
|
/** Everything the ring is derived from. A `PaletteProps` satisfies it; so does a brand source. */
|
|
19
4
|
export type FocusRingSource = Pick<PaletteProps, "primary" | "background" | "backgroundColor">;
|
|
20
|
-
/**
|
|
21
|
-
* The three backdrops a focused button's ring is actually drawn against: the page canvas, a card
|
|
22
|
-
* surface, and — because a solid button's ring sits directly against its own fill — `primary[500]`.
|
|
23
|
-
*
|
|
24
|
-
* Deliberately NOT every named surface. `muted`/`accent`/`quaternary` are mid-tone, and a single
|
|
25
|
-
* band asked to clear those AND a dark brand fill has no solution at any hue — contrast is
|
|
26
|
-
* luminance alone, and `skyline`/`storefront` come out with an empty band. That is what the second
|
|
27
|
-
* tone is for: `halo` owns the fill-side adjacency instead.
|
|
28
|
-
*/
|
|
29
5
|
export declare const focusRingBackdrops: (source: FocusRingSource) => string[];
|
|
30
|
-
/**
|
|
31
|
-
* The two-tone `:focus-visible` indicator.
|
|
32
|
-
*
|
|
33
|
-
* Chakra's stock ring (`shadows.outline`, a fixed `rgba(66,153,225,.6)`) measured 1.83:1 on the
|
|
34
|
-
* lavender canvas and 1.38:1 on a primary button — a focus indicator you cannot see, on all nine
|
|
35
|
-
* brands. It is one hardcoded blue, so no palette could have saved it.
|
|
36
|
-
*
|
|
37
|
-
* `halo` is the surface tone, drawn as the inner band so the indicator separates from a filled
|
|
38
|
-
* control whatever `colorScheme` painted it. `ring` is the brand accent, walked to the nearest
|
|
39
|
-
* lightness that clears 3:1 on all three backdrops at once — including the halo, so the two tones
|
|
40
|
-
* are always told apart.
|
|
41
|
-
*/
|
|
42
6
|
export declare const buildFocusRing: (source: FocusRingSource) => FocusRingTokens;
|
|
43
|
-
/**
|
|
44
|
-
* Re-derives the ring from the FINISHED palette, as the last step of the rung chain.
|
|
45
|
-
*
|
|
46
|
-
* `finalizeLightPalette` and `buildDarkPalette` seed it, but neither is the final word: a brand
|
|
47
|
-
* file may replace `primary` or `background` after the generic derivation runs — `zinc`'s dark
|
|
48
|
-
* palette replaces both, inverting the filled button to near-white — and a ring resolved against
|
|
49
|
-
* the pre-override values is then silently wrong. Same reason `withSurfaceRungs` re-lifts inks the
|
|
50
|
-
* finalizers already derived. `focusRing.test.ts` asserts this is a fixed point.
|
|
51
|
-
*/
|
|
52
7
|
export declare const withFocusRing: (palette: PaletteProps) => PaletteProps;
|
|
@@ -6,21 +6,7 @@ const color_1 = require("./color");
|
|
|
6
6
|
const outlineRung_1 = require("./outlineRung");
|
|
7
7
|
/** Same lightness granularity `buildDarkPalette` walks its accents at. */
|
|
8
8
|
const LIGHTNESS_STEP = 0.5;
|
|
9
|
-
|
|
10
|
-
* The nearest re-lighting of `hex` that clears `target` against EVERY backdrop at once.
|
|
11
|
-
*
|
|
12
|
-
* Not `settleAcross`: that folds one `liftToContrast` per surface, and each lift walks AWAY from
|
|
13
|
-
* the surface it was handed. That is correct when every backdrop sits on the same side of the ink
|
|
14
|
-
* (its case — a set of light surfaces, or a set of dark ones), and wrong here, where a focus ring
|
|
15
|
-
* is squeezed BETWEEN a near-white canvas and a mid-dark button fill: the lift against the fill
|
|
16
|
-
* walks straight back across the canvas it had just cleared. Seeding `settleAcross` with
|
|
17
|
-
* `primary[500]` measured 1.08-1.99 on the light canvas for every brand for exactly that reason.
|
|
18
|
-
*
|
|
19
|
-
* Walking outward from the seed and testing every backdrop at each step keeps the result the
|
|
20
|
-
* CLOSEST passing colour to the brand accent, so the ring still reads as brand chrome. Contrast is
|
|
21
|
-
* a function of relative luminance alone, and lightness sweeps luminance monotonically from 0 to 1,
|
|
22
|
-
* so if any colour on this hue clears the set, this finds it.
|
|
23
|
-
*/
|
|
9
|
+
// NOTE: not settleAcross — a ring squeezed between a light canvas and a dark fill needs the closest color that clears both, not a per-surface lift.
|
|
24
10
|
function settleBetween(hex, backdrops, target = outlineRung_1.AA_NON_TEXT) {
|
|
25
11
|
const clears = (candidate) => backdrops.every((backdrop) => (0, color_1.contrastRatio)(candidate, backdrop) >= target);
|
|
26
12
|
if (clears(hex))
|
|
@@ -34,40 +20,18 @@ function settleBetween(hex, backdrops, target = outlineRung_1.AA_NON_TEXT) {
|
|
|
34
20
|
if (clears(lighter))
|
|
35
21
|
return lighter;
|
|
36
22
|
}
|
|
37
|
-
//
|
|
38
|
-
// close enough to leave no gap would land here. Take the end that is least bad rather than throw
|
|
39
|
-
// at import time, and let `focusRing.test.ts` be what reports it.
|
|
23
|
+
// NOTE: unreachable for shipped brands (gated by focusRing.test.ts) — takes the least-bad end rather than throwing.
|
|
40
24
|
const ends = [(0, color_1.withLightness)(hex, 0), (0, color_1.withLightness)(hex, 100)];
|
|
41
25
|
const worst = (candidate) => Math.min(...backdrops.map((backdrop) => (0, color_1.contrastRatio)(candidate, backdrop)));
|
|
42
26
|
return worst(ends[0]) >= worst(ends[1]) ? ends[0] : ends[1];
|
|
43
27
|
}
|
|
44
|
-
|
|
45
|
-
* The three backdrops a focused button's ring is actually drawn against: the page canvas, a card
|
|
46
|
-
* surface, and — because a solid button's ring sits directly against its own fill — `primary[500]`.
|
|
47
|
-
*
|
|
48
|
-
* Deliberately NOT every named surface. `muted`/`accent`/`quaternary` are mid-tone, and a single
|
|
49
|
-
* band asked to clear those AND a dark brand fill has no solution at any hue — contrast is
|
|
50
|
-
* luminance alone, and `skyline`/`storefront` come out with an empty band. That is what the second
|
|
51
|
-
* tone is for: `halo` owns the fill-side adjacency instead.
|
|
52
|
-
*/
|
|
28
|
+
// NOTE: only canvas + card surface — including the fill or every named surface leaves no solvable hue.
|
|
53
29
|
const focusRingBackdrops = (source) => [
|
|
54
30
|
source.backgroundColor.main,
|
|
55
31
|
source.background[50],
|
|
56
|
-
source.primary[500],
|
|
57
32
|
];
|
|
58
33
|
exports.focusRingBackdrops = focusRingBackdrops;
|
|
59
|
-
|
|
60
|
-
* The two-tone `:focus-visible` indicator.
|
|
61
|
-
*
|
|
62
|
-
* Chakra's stock ring (`shadows.outline`, a fixed `rgba(66,153,225,.6)`) measured 1.83:1 on the
|
|
63
|
-
* lavender canvas and 1.38:1 on a primary button — a focus indicator you cannot see, on all nine
|
|
64
|
-
* brands. It is one hardcoded blue, so no palette could have saved it.
|
|
65
|
-
*
|
|
66
|
-
* `halo` is the surface tone, drawn as the inner band so the indicator separates from a filled
|
|
67
|
-
* control whatever `colorScheme` painted it. `ring` is the brand accent, walked to the nearest
|
|
68
|
-
* lightness that clears 3:1 on all three backdrops at once — including the halo, so the two tones
|
|
69
|
-
* are always told apart.
|
|
70
|
-
*/
|
|
34
|
+
// NOTE: replaces Chakra's stock ring (a fixed blue that measured under 2:1 on every brand).
|
|
71
35
|
const buildFocusRing = (source) => {
|
|
72
36
|
const halo = settleBetween(source.background[50], [source.primary[500]]);
|
|
73
37
|
return {
|
|
@@ -76,15 +40,7 @@ const buildFocusRing = (source) => {
|
|
|
76
40
|
};
|
|
77
41
|
};
|
|
78
42
|
exports.buildFocusRing = buildFocusRing;
|
|
79
|
-
|
|
80
|
-
* Re-derives the ring from the FINISHED palette, as the last step of the rung chain.
|
|
81
|
-
*
|
|
82
|
-
* `finalizeLightPalette` and `buildDarkPalette` seed it, but neither is the final word: a brand
|
|
83
|
-
* file may replace `primary` or `background` after the generic derivation runs — `zinc`'s dark
|
|
84
|
-
* palette replaces both, inverting the filled button to near-white — and a ring resolved against
|
|
85
|
-
* the pre-override values is then silently wrong. Same reason `withSurfaceRungs` re-lifts inks the
|
|
86
|
-
* finalizers already derived. `focusRing.test.ts` asserts this is a fixed point.
|
|
87
|
-
*/
|
|
43
|
+
// NOTE: re-derives against the FINISHED palette — a brand file can still override primary/background after the generic pass.
|
|
88
44
|
const withFocusRing = (palette) => ({
|
|
89
45
|
...palette,
|
|
90
46
|
focusRing: (0, exports.buildFocusRing)(palette),
|
|
@@ -6,17 +6,7 @@ export type Gradient = {
|
|
|
6
6
|
export type ResolvedGradient = Gradient & {
|
|
7
7
|
ink: string;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
10
|
-
* Sinks both stops until WHITE ink clears AA, keeping each stop's hue. Any mid-tone gradient
|
|
11
|
-
* otherwise flips `onGradient` to black ink, so the same element reads white-on-colour in one
|
|
12
|
-
* brand and black-on-pastel in the next.
|
|
13
|
-
*/
|
|
14
9
|
export declare const inkSafeGradient: (gradient: Gradient) => Gradient;
|
|
15
|
-
/**
|
|
16
|
-
* The only correct way to paint text on a gradient: returns the stops to draw AND the ink for
|
|
17
|
-
* them. Calling `onGradient` on raw stops is the black-text bug — it picks ink for a backdrop
|
|
18
|
-
* that is then painted differently.
|
|
19
|
-
*/
|
|
20
10
|
export declare const resolveGradient: (gradient: Gradient, white: string, black: string) => ResolvedGradient;
|
|
21
11
|
/** `linear-gradient(...)` for a resolved pair — one spelling of the CSS everywhere. */
|
|
22
12
|
export declare const gradientCss: (g: Gradient, angle?: string) => string;
|
|
@@ -3,21 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.gradientCss = exports.resolveGradient = exports.inkSafeGradient = void 0;
|
|
4
4
|
const accentText_1 = require("./accentText");
|
|
5
5
|
const statusTone_1 = require("./statusTone");
|
|
6
|
-
|
|
7
|
-
* Sinks both stops until WHITE ink clears AA, keeping each stop's hue. Any mid-tone gradient
|
|
8
|
-
* otherwise flips `onGradient` to black ink, so the same element reads white-on-colour in one
|
|
9
|
-
* brand and black-on-pastel in the next.
|
|
10
|
-
*/
|
|
6
|
+
// NOTE: sinks both stops until white ink clears AA — otherwise a mid-tone gradient flips onGradient to black.
|
|
11
7
|
const inkSafeGradient = (gradient) => ({
|
|
12
8
|
from: (0, statusTone_1.resolveAvatarFill)(gradient.from),
|
|
13
9
|
to: (0, statusTone_1.resolveAvatarFill)(gradient.to),
|
|
14
10
|
});
|
|
15
11
|
exports.inkSafeGradient = inkSafeGradient;
|
|
16
|
-
|
|
17
|
-
* The only correct way to paint text on a gradient: returns the stops to draw AND the ink for
|
|
18
|
-
* them. Calling `onGradient` on raw stops is the black-text bug — it picks ink for a backdrop
|
|
19
|
-
* that is then painted differently.
|
|
20
|
-
*/
|
|
12
|
+
// The only correct way to paint gradient text — returns the stops to draw AND the ink for them together.
|
|
21
13
|
const resolveGradient = (gradient, white, black) => {
|
|
22
14
|
const { from, to } = (0, exports.inkSafeGradient)(gradient);
|
|
23
15
|
return { from, to, ink: (0, accentText_1.onGradient)(from, to, white, black) };
|
|
@@ -23,3 +23,7 @@ __exportStar(require("./focusRing"), exports);
|
|
|
23
23
|
__exportStar(require("./scrollbar"), exports);
|
|
24
24
|
__exportStar(require("./gradientInk"), exports);
|
|
25
25
|
__exportStar(require("./placeholderInk"), exports);
|
|
26
|
+
__exportStar(require("./tone"), exports);
|
|
27
|
+
__exportStar(require("./scrim"), exports);
|
|
28
|
+
__exportStar(require("./tooltipSurface"), exports);
|
|
29
|
+
__exportStar(require("./surfaceRaised"), exports);
|
|
@@ -1,78 +1,12 @@
|
|
|
1
1
|
import type { PaletteProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* The floor a hover/active state's step off its own resting surface must clear to be seen at
|
|
4
|
-
* all — same value the SideBar ladder, Accordion, and NavigationBar hover states are held to.
|
|
5
|
-
* A "hover" a user cannot perceive is not a hover.
|
|
6
|
-
*/
|
|
7
2
|
export declare const MIN_PERCEPTIBLE_STEP = 1.15;
|
|
8
|
-
/** WCAG 1.4.11 — a control outline is a UI component boundary, held to 3:1. */
|
|
9
3
|
export declare const AA_NON_TEXT = 3;
|
|
10
|
-
/**
|
|
11
|
-
* Resting chrome — card, popover and field outlines — settles here, not at `AA_NON_TEXT`.
|
|
12
|
-
* At 3:1 a container border is text-weight and the UI reads as a wireframe; every mainstream
|
|
13
|
-
* system draws this line far lighter (Tailwind gray-200 1.24, Chakra gray.200 1.30, Material
|
|
14
|
-
* outline-variant 1.61). 1.4.11 asks that a control be identifiable, not that its resting
|
|
15
|
-
* border carry the whole job: the fill, the label and the focus ring do that.
|
|
16
|
-
*
|
|
17
|
-
* That defence was untrue when it was written. Buttons defined no `_focusVisible` at all, so the
|
|
18
|
-
* focus ring was Chakra's stock `shadows.outline` — a fixed blue measuring 1.38:1 on a primary
|
|
19
|
-
* button — and nothing in the library was held to `AA_NON_TEXT` at the moment of focus. It is
|
|
20
|
-
* true now: `focusRing` (`builders/focusRing.ts`) is derived per brand per mode and gated at 3:1
|
|
21
|
-
* on the canvas, on a card and on the button's own fill by `builders/focusRing.test.ts`. If that
|
|
22
|
-
* gate is ever relaxed, this constant loses its justification with it.
|
|
23
|
-
*/
|
|
24
4
|
export declare const CHROME_BORDER = 1.5;
|
|
25
5
|
export declare const CHROME_RULE = 1.31;
|
|
26
|
-
/**
|
|
27
|
-
* A rule is decorative, so it has a ceiling and no floor: soften it until the surface it reads
|
|
28
|
-
* hardest against sits at `target`, and leave a already-fainter rung alone. Never `settleAcross`
|
|
29
|
-
* here — that clears a floor on EVERY surface, so one tinted surface drags the rule darker.
|
|
30
|
-
*/
|
|
31
6
|
export declare function ruleInk(hex: string, surfaces: readonly string[], target: number): string;
|
|
32
|
-
/**
|
|
33
|
-
* Walks a hex toward `target` contrast against `backdrop`, keeping hue and saturation.
|
|
34
|
-
* Direction is DERIVED from the backdrop, never passed: a mode argument here was redundant
|
|
35
|
-
* with the backdrop in every call site, and a redundant argument is one that can be wrong.
|
|
36
|
-
* Tries the far side first, falls back to the near side, and stops at the first passing step.
|
|
37
|
-
*/
|
|
38
7
|
export declare function liftToContrast(hex: string, backdrop: string, target?: number): string;
|
|
39
|
-
/**
|
|
40
|
-
* Mirror of `liftToContrast`: walks ink TOWARD the backdrop, stopping at the last step that
|
|
41
|
-
* still clears `target`. For ink that must stay legible without reading as body copy.
|
|
42
|
-
*/
|
|
43
8
|
export declare function softenToContrast(hex: string, backdrop: string, target: number): string;
|
|
44
|
-
/**
|
|
45
|
-
* `boxborder[500]` is the rung every control outline reads (Checkbox, SearchSelect, the date
|
|
46
|
-
* pickers, the editor's inputs). Settled onto `CHROME_BORDER` — lifted when a brand authored it
|
|
47
|
-
* invisibly pale, softened when it overshoots. It was previously lifted to `AA_NON_TEXT`, which
|
|
48
|
-
* shipped 3.85-4.95:1 outlines: a text-weight box around every card and popover.
|
|
49
|
-
* Resolved here rather than hand-pinned per brand: a copied hex goes stale the moment a canvas moves.
|
|
50
|
-
*
|
|
51
|
-
* `border[*]` is deliberately untouched — that ramp draws table gridlines, which are decorative
|
|
52
|
-
* and outside 1.4.11.
|
|
53
|
-
*/
|
|
54
9
|
export declare function withOutlineRung(palette: PaletteProps): PaletteProps;
|
|
55
|
-
/**
|
|
56
|
-
* A hover/active tint resolved against the surface it actually sits on, guaranteed to clear
|
|
57
|
-
* `MIN_PERCEPTIBLE_STEP`. Written for the recurring shape found across NavigationBar, UserDetails
|
|
58
|
-
* and Accordion: a pale `primary[50]`/`gray[50]` tint that measures near-1.0 on a near-white
|
|
59
|
-
* surface — invisible — with no dark-mode branch, so the same call site is wrong in both modes at
|
|
60
|
-
* once. `restSurface` is required rather than assumed white/black: a menu item's hover sits on
|
|
61
|
-
* its OWN list background, not necessarily the page canvas.
|
|
62
|
-
*/
|
|
63
10
|
export declare function resolveHoverTint(seed: string, restSurface: string): string;
|
|
64
|
-
/**
|
|
65
|
-
* Settles ink into `target` against EVERY surface at once. Softening one step can change which
|
|
66
|
-
* surface is hardest, so resolving against a single pre-computed "hardest" one lands under the
|
|
67
|
-
* floor on another — that is how radiant and rosewood ended up with an invisible outline on
|
|
68
|
-
* their muted surface.
|
|
69
|
-
*/
|
|
70
11
|
export declare function settleAcross(hex: string, surfaces: readonly string[], target: number): string;
|
|
71
|
-
/**
|
|
72
|
-
* A pure-grey surface sitting `target` contrast away from `backdrop`. Binary search, not a walk:
|
|
73
|
-
* `liftToContrast` cannot move a seed already at lightness 0 or 100, and a pure-white panel seeded
|
|
74
|
-
* itself straight to black. Neutral on purpose — the light palettes are hand-authored and tinted,
|
|
75
|
-
* so lifting one of their surface rungs turns a selected row into a saturated brand block, while
|
|
76
|
-
* the derived dark palettes land on grey and look right.
|
|
77
|
-
*/
|
|
78
12
|
export declare function neutralStep(backdrop: string, target: number): string;
|
|
@@ -9,49 +9,17 @@ exports.resolveHoverTint = resolveHoverTint;
|
|
|
9
9
|
exports.settleAcross = settleAcross;
|
|
10
10
|
exports.neutralStep = neutralStep;
|
|
11
11
|
const color_1 = require("./color");
|
|
12
|
-
/**
|
|
13
|
-
* The floor a hover/active state's step off its own resting surface must clear to be seen at
|
|
14
|
-
* all — same value the SideBar ladder, Accordion, and NavigationBar hover states are held to.
|
|
15
|
-
* A "hover" a user cannot perceive is not a hover.
|
|
16
|
-
*/
|
|
17
12
|
exports.MIN_PERCEPTIBLE_STEP = 1.15;
|
|
18
|
-
/** WCAG 1.4.11 — a control outline is a UI component boundary, held to 3:1. */
|
|
19
13
|
exports.AA_NON_TEXT = 3;
|
|
20
|
-
|
|
21
|
-
* Resting chrome — card, popover and field outlines — settles here, not at `AA_NON_TEXT`.
|
|
22
|
-
* At 3:1 a container border is text-weight and the UI reads as a wireframe; every mainstream
|
|
23
|
-
* system draws this line far lighter (Tailwind gray-200 1.24, Chakra gray.200 1.30, Material
|
|
24
|
-
* outline-variant 1.61). 1.4.11 asks that a control be identifiable, not that its resting
|
|
25
|
-
* border carry the whole job: the fill, the label and the focus ring do that.
|
|
26
|
-
*
|
|
27
|
-
* That defence was untrue when it was written. Buttons defined no `_focusVisible` at all, so the
|
|
28
|
-
* focus ring was Chakra's stock `shadows.outline` — a fixed blue measuring 1.38:1 on a primary
|
|
29
|
-
* button — and nothing in the library was held to `AA_NON_TEXT` at the moment of focus. It is
|
|
30
|
-
* true now: `focusRing` (`builders/focusRing.ts`) is derived per brand per mode and gated at 3:1
|
|
31
|
-
* on the canvas, on a card and on the button's own fill by `builders/focusRing.test.ts`. If that
|
|
32
|
-
* gate is ever relaxed, this constant loses its justification with it.
|
|
33
|
-
*/
|
|
14
|
+
// NOTE: settles below AA_NON_TEXT — focusRing.ts covers the 1.4.11 gate instead.
|
|
34
15
|
exports.CHROME_BORDER = 1.5;
|
|
35
|
-
// The resting rule between two surfaces — a card edge, a divider, a menu outline. Lighter than
|
|
36
|
-
// CHROME_BORDER, which outlines a control the user acts on.
|
|
37
16
|
exports.CHROME_RULE = 1.31;
|
|
38
|
-
/**
|
|
39
|
-
* A rule is decorative, so it has a ceiling and no floor: soften it until the surface it reads
|
|
40
|
-
* hardest against sits at `target`, and leave a already-fainter rung alone. Never `settleAcross`
|
|
41
|
-
* here — that clears a floor on EVERY surface, so one tinted surface drags the rule darker.
|
|
42
|
-
*/
|
|
43
17
|
function ruleInk(hex, surfaces, target) {
|
|
44
18
|
const loudest = surfaces.reduce((worst, s) => (0, color_1.contrastRatio)(hex, s) > (0, color_1.contrastRatio)(hex, worst) ? s : worst);
|
|
45
19
|
return (0, color_1.contrastRatio)(hex, loudest) > target
|
|
46
20
|
? softenToContrast(hex, loudest, target)
|
|
47
21
|
: hex;
|
|
48
22
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Walks a hex toward `target` contrast against `backdrop`, keeping hue and saturation.
|
|
51
|
-
* Direction is DERIVED from the backdrop, never passed: a mode argument here was redundant
|
|
52
|
-
* with the backdrop in every call site, and a redundant argument is one that can be wrong.
|
|
53
|
-
* Tries the far side first, falls back to the near side, and stops at the first passing step.
|
|
54
|
-
*/
|
|
55
23
|
function liftToContrast(hex, backdrop, target = exports.AA_NON_TEXT) {
|
|
56
24
|
if ((0, color_1.contrastRatio)(hex, backdrop) >= target)
|
|
57
25
|
return hex;
|
|
@@ -69,10 +37,6 @@ function liftToContrast(hex, backdrop, target = exports.AA_NON_TEXT) {
|
|
|
69
37
|
const ends = [(0, color_1.withLightness)(hex, 100, s), (0, color_1.withLightness)(hex, 0, s)];
|
|
70
38
|
return (0, color_1.contrastRatio)(ends[0], backdrop) >= (0, color_1.contrastRatio)(ends[1], backdrop) ? ends[0] : ends[1];
|
|
71
39
|
}
|
|
72
|
-
/**
|
|
73
|
-
* Mirror of `liftToContrast`: walks ink TOWARD the backdrop, stopping at the last step that
|
|
74
|
-
* still clears `target`. For ink that must stay legible without reading as body copy.
|
|
75
|
-
*/
|
|
76
40
|
function softenToContrast(hex, backdrop, target) {
|
|
77
41
|
if ((0, color_1.contrastRatio)(hex, backdrop) <= target)
|
|
78
42
|
return hex;
|
|
@@ -87,20 +51,9 @@ function softenToContrast(hex, backdrop, target) {
|
|
|
87
51
|
}
|
|
88
52
|
return softest;
|
|
89
53
|
}
|
|
90
|
-
|
|
91
|
-
* `boxborder[500]` is the rung every control outline reads (Checkbox, SearchSelect, the date
|
|
92
|
-
* pickers, the editor's inputs). Settled onto `CHROME_BORDER` — lifted when a brand authored it
|
|
93
|
-
* invisibly pale, softened when it overshoots. It was previously lifted to `AA_NON_TEXT`, which
|
|
94
|
-
* shipped 3.85-4.95:1 outlines: a text-weight box around every card and popover.
|
|
95
|
-
* Resolved here rather than hand-pinned per brand: a copied hex goes stale the moment a canvas moves.
|
|
96
|
-
*
|
|
97
|
-
* `border[*]` is deliberately untouched — that ramp draws table gridlines, which are decorative
|
|
98
|
-
* and outside 1.4.11.
|
|
99
|
-
*/
|
|
54
|
+
// NOTE: border[*] is untouched — it draws decorative table gridlines, outside 1.4.11.
|
|
100
55
|
function withOutlineRung(palette) {
|
|
101
56
|
const current = palette.boxborder[500];
|
|
102
|
-
// The border sits between the control's fill and the surface behind it; hold it to the
|
|
103
|
-
// harder of the two.
|
|
104
57
|
const backdrop = (0, color_1.contrastRatio)(current, palette.backgroundColor.main) <=
|
|
105
58
|
(0, color_1.contrastRatio)(current, palette.background[50])
|
|
106
59
|
? palette.backgroundColor.main
|
|
@@ -112,23 +65,10 @@ function withOutlineRung(palette) {
|
|
|
112
65
|
return palette;
|
|
113
66
|
return { ...palette, boxborder: { ...palette.boxborder, 500: resolved } };
|
|
114
67
|
}
|
|
115
|
-
/**
|
|
116
|
-
* A hover/active tint resolved against the surface it actually sits on, guaranteed to clear
|
|
117
|
-
* `MIN_PERCEPTIBLE_STEP`. Written for the recurring shape found across NavigationBar, UserDetails
|
|
118
|
-
* and Accordion: a pale `primary[50]`/`gray[50]` tint that measures near-1.0 on a near-white
|
|
119
|
-
* surface — invisible — with no dark-mode branch, so the same call site is wrong in both modes at
|
|
120
|
-
* once. `restSurface` is required rather than assumed white/black: a menu item's hover sits on
|
|
121
|
-
* its OWN list background, not necessarily the page canvas.
|
|
122
|
-
*/
|
|
123
68
|
function resolveHoverTint(seed, restSurface) {
|
|
124
69
|
return liftToContrast(seed, restSurface, exports.MIN_PERCEPTIBLE_STEP);
|
|
125
70
|
}
|
|
126
|
-
|
|
127
|
-
* Settles ink into `target` against EVERY surface at once. Softening one step can change which
|
|
128
|
-
* surface is hardest, so resolving against a single pre-computed "hardest" one lands under the
|
|
129
|
-
* floor on another — that is how radiant and rosewood ended up with an invisible outline on
|
|
130
|
-
* their muted surface.
|
|
131
|
-
*/
|
|
71
|
+
// NOTE: settles against every surface at once — a single "hardest" surface can drop under target on another.
|
|
132
72
|
function settleAcross(hex, surfaces, target) {
|
|
133
73
|
const clearsAll = (c) => surfaces.every((s) => (0, color_1.contrastRatio)(c, s) >= target);
|
|
134
74
|
if (!clearsAll(hex)) {
|
|
@@ -145,13 +85,7 @@ function settleAcross(hex, surfaces, target) {
|
|
|
145
85
|
}
|
|
146
86
|
return settled;
|
|
147
87
|
}
|
|
148
|
-
|
|
149
|
-
* A pure-grey surface sitting `target` contrast away from `backdrop`. Binary search, not a walk:
|
|
150
|
-
* `liftToContrast` cannot move a seed already at lightness 0 or 100, and a pure-white panel seeded
|
|
151
|
-
* itself straight to black. Neutral on purpose — the light palettes are hand-authored and tinted,
|
|
152
|
-
* so lifting one of their surface rungs turns a selected row into a saturated brand block, while
|
|
153
|
-
* the derived dark palettes land on grey and look right.
|
|
154
|
-
*/
|
|
88
|
+
// NOTE: binary search, not liftToContrast — a seed already at lightness 0/100 can't walk.
|
|
155
89
|
function neutralStep(backdrop, target) {
|
|
156
90
|
const grey = (l) => (0, color_1.withLightness)("#808080", l, 0);
|
|
157
91
|
let lo = (0, color_1.hexToHsl)(backdrop).l;
|