pixelize-design-library 2.4.2-beta.43 → 2.4.2-beta.44
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 +130 -0
- package/COMPONENT-GOTCHAS.md +398 -243
- 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 +3 -4
- 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 -3
- 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 +26 -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 +2 -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/KanbanBoard.d.ts +1 -1
- package/dist/Components/KanbanBoard/KanbanBoard.js +85 -49
- package/dist/Components/KanbanBoard/KanbanBoardProps.d.ts +35 -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.js +19 -18
- package/dist/Components/MultiSelect/MultiSelectProps.d.ts +11 -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 +29 -0
- package/dist/Components/NotificationBell/notificationHelpers.js +106 -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 +10 -7
- 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.js +39 -32
- package/dist/Components/SegmentedControl/SegmentedControlProps.d.ts +10 -2
- 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 +415 -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 +19 -9
- package/dist/Components/SideBar/SideBar.js +35 -20
- package/dist/Components/SideBar/SideBarProps.d.ts +8 -1
- package/dist/Components/SideBar/components/MenuItemBox.d.ts +2 -0
- package/dist/Components/SideBar/components/MenuItemBox.js +43 -28
- package/dist/Components/SideBar/components/MenuItems.js +4 -4
- package/dist/Components/SideBar/components/MenuPopoverContent.js +20 -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/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 +5 -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 +1 -1
- package/dist/Components/Table/components/Pagination.js +1 -1
- 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/TableFilters.js +1 -1
- package/dist/Components/Table/hooks/useTable.d.ts +1 -10
- package/dist/Components/Table/hooks/useTable.js +14 -23
- 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 +39 -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 +0 -23
- package/dist/Theme/chakra/focusRing.styles.js +4 -23
- 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 +2 -10
- 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 +3 -4
- 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 -3
- 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 +27 -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/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 +19 -18
- 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 +98 -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 +10 -7
- 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 +34 -30
- 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 +377 -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 +19 -9
- package/dist/esm/Components/SideBar/SideBar.js +36 -21
- package/dist/esm/Components/SideBar/components/MenuItemBox.js +40 -25
- package/dist/esm/Components/SideBar/components/MenuItems.js +4 -4
- package/dist/esm/Components/SideBar/components/MenuPopoverContent.js +20 -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/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 +1 -1
- 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/TableFilters.js +1 -1
- package/dist/esm/Components/Table/hooks/useTable.js +14 -23
- 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 +34 -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 +4 -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 +2 -10
- 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
|
@@ -45,13 +45,7 @@ function daysUntil(expiryDate, now) {
|
|
|
45
45
|
const startOfDay = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
46
46
|
return Math.round((startOfDay(expiry).getTime() - startOfDay(now).getTime()) / 86400000);
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
* Turns an org's plan state into the label, urgency tone and inset-chip text for
|
|
50
|
-
* a `PlanPill` — the "Upgrade your plan" badge in an app's top bar.
|
|
51
|
-
*
|
|
52
|
-
* Copy and thresholds are centralized here so every app shows the same badge for
|
|
53
|
-
* the same org.
|
|
54
|
-
*/
|
|
48
|
+
// Turns an org's plan state into PlanPill's label, urgency tone and inset-chip text; centralized so every app matches.
|
|
55
49
|
export function resolvePlanBadge(input) {
|
|
56
50
|
var _a, _b;
|
|
57
51
|
if (!input.canManageBilling)
|
|
@@ -61,14 +55,10 @@ export function resolvePlanBadge(input) {
|
|
|
61
55
|
const daysLeft = daysUntil(input.expiryDate, now);
|
|
62
56
|
const remaining = formatPlanRemaining(input.expiryDate, now);
|
|
63
57
|
const elapsed = formatPlanElapsed(input.expiryDate, now);
|
|
64
|
-
//
|
|
65
|
-
// "Free expired" is not a state worth shouting about.
|
|
58
|
+
// NOTE: checked before expiry — a lapsed org downgrades to free, and "Free expired" isn't worth shouting about.
|
|
66
59
|
if (isFreePlan(input, planName))
|
|
67
60
|
return upgrade("");
|
|
68
61
|
if (input.isExpired || elapsed !== "") {
|
|
69
|
-
// "<plan> expired" as the label with the elapsed time in the inset chip —
|
|
70
|
-
// folding both behind "Upgrade your plan" made the pill wide enough to
|
|
71
|
-
// crowd the header.
|
|
72
62
|
return {
|
|
73
63
|
visible: true,
|
|
74
64
|
label: `${planName || GENERIC_PLAN_NAME} expired`,
|
|
@@ -15,16 +15,10 @@ function addCalendarMonths(date, months) {
|
|
|
15
15
|
function daysBetween(from, to) {
|
|
16
16
|
return Math.round((to.getTime() - from.getTime()) / MS_PER_DAY);
|
|
17
17
|
}
|
|
18
|
-
/** Compact units (`2mo`, `5d`) — this reads inside a badge subtitle, where
|
|
19
|
-
* "2 months 5 days left" wraps. */
|
|
20
18
|
function unit(count, suffix) {
|
|
21
19
|
return `${count}${suffix}`;
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
* Calendar months + leftover days between two dates.
|
|
25
|
-
* Anchoring on a real month boundary keeps "1 month" honest across 28/30/31-day
|
|
26
|
-
* months, so Jan 31 → Feb 28 reads as 28 days rather than a whole month.
|
|
27
|
-
*/
|
|
21
|
+
// NOTE: anchors on real month boundaries so Jan 31 -> Feb 28 reads as 28 days, not "1 month".
|
|
28
22
|
export function splitMonthsAndDays(from, to) {
|
|
29
23
|
let months = (to.getFullYear() - from.getFullYear()) * 12 +
|
|
30
24
|
(to.getMonth() - from.getMonth());
|
|
@@ -34,13 +28,7 @@ export function splitMonthsAndDays(from, to) {
|
|
|
34
28
|
months = 0;
|
|
35
29
|
return { months, days: daysBetween(addCalendarMonths(from, months), to) };
|
|
36
30
|
}
|
|
37
|
-
|
|
38
|
-
* Time left on a plan, compactly: `"3mo left"` once a whole month remains,
|
|
39
|
-
* `"18d left"` below that. Intended for `UpgradeButton`'s `subtitle`, so it
|
|
40
|
-
* stays one short line. Returns `""` when there is no usable date or the plan
|
|
41
|
-
* has already lapsed — an expired plan is a different message, which the
|
|
42
|
-
* consuming app owns.
|
|
43
|
-
*/
|
|
31
|
+
// Compact plan time left, e.g. "3mo left" / "18d left". "" when unusable or already lapsed.
|
|
44
32
|
export function formatPlanExpiry(expiryDate, now) {
|
|
45
33
|
const expiry = toDate(expiryDate);
|
|
46
34
|
if (!expiry)
|
|
@@ -55,7 +43,6 @@ export function formatPlanExpiry(expiryDate, now) {
|
|
|
55
43
|
const { months, days } = splitMonthsAndDays(today, expiryDay);
|
|
56
44
|
return months > 0 ? `${unit(months, "mo")} left` : `${unit(days, "d")} left`;
|
|
57
45
|
}
|
|
58
|
-
/** Never reports `0m`; the final stretch reads `1m`. */
|
|
59
46
|
function formatHoursMinutes(ms, suffix) {
|
|
60
47
|
const totalMinutes = Math.floor(ms / 60000);
|
|
61
48
|
const hours = Math.floor(totalMinutes / 60);
|
|
@@ -64,15 +51,7 @@ function formatHoursMinutes(ms, suffix) {
|
|
|
64
51
|
? `${unit(hours, "h")} ${unit(minutes, "m")} ${suffix}`
|
|
65
52
|
: `${unit(Math.max(minutes, 1), "m")} ${suffix}`;
|
|
66
53
|
}
|
|
67
|
-
|
|
68
|
-
* Time left on a plan, to the minute in the final day: `"3mo left"`, `"18d left"`,
|
|
69
|
-
* then `"23h 45m left"` down to `"1m left"`. `""` once lapsed.
|
|
70
|
-
*
|
|
71
|
-
* Differs from `formatPlanExpiry` only in that last day: a calendar-day count
|
|
72
|
-
* reads as "Expires today" for the whole day, which goes stale next to a live
|
|
73
|
-
* countdown. Prefer this for a badge that sits on screen; `formatPlanExpiry`
|
|
74
|
-
* stays the cheaper day-granular option.
|
|
75
|
-
*/
|
|
54
|
+
// NOTE: like formatPlanExpiry but to the minute in the final day — for a badge staying on screen.
|
|
76
55
|
export function formatPlanRemaining(expiryDate, now) {
|
|
77
56
|
const expiry = toDate(expiryDate);
|
|
78
57
|
if (!expiry)
|
|
@@ -87,11 +66,7 @@ export function formatPlanRemaining(expiryDate, now) {
|
|
|
87
66
|
const { months, days } = splitMonthsAndDays(startOfDay(referenceNow), startOfDay(expiry));
|
|
88
67
|
return months > 0 ? `${unit(months, "mo")} left` : `${unit(days, "d")} left`;
|
|
89
68
|
}
|
|
90
|
-
|
|
91
|
-
* How long ago a plan lapsed: `"1h 10m ago"` under a day, `"2d ago"` / `"1mo ago"`
|
|
92
|
-
* beyond it. `""` while the plan is still live — so a badge can say how stale a
|
|
93
|
-
* lapse is rather than a bare "expired".
|
|
94
|
-
*/
|
|
69
|
+
// How long ago a plan lapsed, e.g. "1h 10m ago" / "2d ago". "" while still live.
|
|
95
70
|
export function formatPlanElapsed(expiryDate, now) {
|
|
96
71
|
const expiry = toDate(expiryDate);
|
|
97
72
|
if (!expiry)
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Coalesces bursts of calls into one per animation frame.
|
|
3
|
-
*
|
|
4
|
-
* Every use in this library is a listener that reads layout (`getBoundingClientRect`) and then
|
|
5
|
-
* writes position state. Unthrottled, a capture-phase `scroll` listener runs once per scrollable
|
|
6
|
-
* ancestor per scroll event — on a low-end device that is a forced reflow several times per frame,
|
|
7
|
-
* which is what makes menus judder while the page moves. One frame is also the fastest rate the
|
|
8
|
-
* screen can show a change, so nothing is lost by dropping the rest.
|
|
9
|
-
*
|
|
10
|
-
* The trailing call wins: the last arguments before the frame fires are the current ones.
|
|
11
|
-
*/
|
|
1
|
+
// NOTE: coalesces bursts into one call per animation frame — the trailing call's args win.
|
|
12
2
|
export const rafThrottle = (fn) => {
|
|
13
3
|
let frame = null;
|
|
14
4
|
let latest;
|
package/dist/esm/Utils/table.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { useDebouncedCallback } from "../Hooks/useDebounce.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AA_NORMAL_TEXT, DEFAULT_BLACK, DEFAULT_WHITE, onFilled, } from "../Theme/tokens/builders/accentText.js";
|
|
3
4
|
import { compositeOver } from "../Theme/tokens/builders/color.js";
|
|
4
5
|
import { liftToContrast } from "../Theme/tokens/builders/outlineRung.js";
|
|
5
6
|
import { labelOnFill, solidFillRung } from "../Theme/tokens/builders/filledSurface.js";
|
|
6
|
-
import { resolveAvatarFill
|
|
7
|
-
|
|
8
|
-
//
|
|
7
|
+
import { resolveAvatarFill } from "../Theme/tokens/builders/statusTone.js";
|
|
8
|
+
import { resolveSoftTone } from "../Theme/tokens/builders/tone.js";
|
|
9
|
+
// NOTE: built once — sorting 10k rows runs this ~130k times and a Collator is costly to construct.
|
|
9
10
|
const COLLATOR = new Intl.Collator(undefined, {
|
|
10
11
|
numeric: true,
|
|
11
12
|
sensitivity: "base",
|
|
12
13
|
});
|
|
13
14
|
const HAS_DIGIT = /\d/;
|
|
14
|
-
|
|
15
|
-
* Type-aware, null-safe comparison. Detects numbers and dates; otherwise falls
|
|
16
|
-
* back to a numeric-aware locale string compare. Empty/null values sort last.
|
|
17
|
-
*/
|
|
15
|
+
// Type-aware, null-safe comparison: numbers and dates detected, else numeric-aware locale compare.
|
|
18
16
|
export function compareValues(aRaw, bRaw, direction) {
|
|
19
17
|
if (direction === "none")
|
|
20
18
|
return 0;
|
|
@@ -33,8 +31,7 @@ export function compareValues(aRaw, bRaw, direction) {
|
|
|
33
31
|
const bn = Number(b);
|
|
34
32
|
if (!Number.isNaN(an) && !Number.isNaN(bn))
|
|
35
33
|
return (an - bn) * dir;
|
|
36
|
-
//
|
|
37
|
-
// text columns (names, emails, statuses) without changing which strings parse as dates.
|
|
34
|
+
// NOTE: skips Date.parse on text columns with no digits — cheap and safe, since no digit means no date.
|
|
38
35
|
if (HAS_DIGIT.test(a) && HAS_DIGIT.test(b)) {
|
|
39
36
|
const ad = Date.parse(a);
|
|
40
37
|
const bd = Date.parse(b);
|
|
@@ -59,7 +56,6 @@ export function SortMultiColumnData(data, sortConfig) {
|
|
|
59
56
|
/** Theme-aware status palette per value — soft fill + semantic ink from `resolveStatusTone`. */
|
|
60
57
|
export function buildSemanticStatusPalette(toneByValue, theme) {
|
|
61
58
|
const c = theme.colors;
|
|
62
|
-
const mode = isDarkCanvas(c.backgroundColor.main) ? "dark" : "light";
|
|
63
59
|
const scales = {
|
|
64
60
|
info: c.semantic.info,
|
|
65
61
|
warning: c.semantic.warning,
|
|
@@ -69,7 +65,7 @@ export function buildSemanticStatusPalette(toneByValue, theme) {
|
|
|
69
65
|
};
|
|
70
66
|
return Object.fromEntries(Object.entries(toneByValue).map(([value, key]) => {
|
|
71
67
|
const scale = scales[key];
|
|
72
|
-
const tone =
|
|
68
|
+
const tone = resolveSoftTone(c, scale);
|
|
73
69
|
const solidRung = solidFillRung(scale, c.white);
|
|
74
70
|
const solid = scale[solidRung];
|
|
75
71
|
return [
|
|
@@ -98,7 +94,6 @@ const resolveStatusOverride = (fill, white, black, surface) => {
|
|
|
98
94
|
/** Deterministic, theme-aware color palette for groups + status pills. */
|
|
99
95
|
export function buildTablePalette(theme) {
|
|
100
96
|
const c = theme.colors;
|
|
101
|
-
const mode = isDarkCanvas(c.backgroundColor.main) ? "dark" : "light";
|
|
102
97
|
const scales = [
|
|
103
98
|
c.primary,
|
|
104
99
|
c.semantic.success,
|
|
@@ -112,7 +107,7 @@ export function buildTablePalette(theme) {
|
|
|
112
107
|
c.purple,
|
|
113
108
|
];
|
|
114
109
|
return scales.map((scale) => {
|
|
115
|
-
const tone =
|
|
110
|
+
const tone = resolveSoftTone(c, scale);
|
|
116
111
|
const solidRung = solidFillRung(scale, c.white);
|
|
117
112
|
const solid = scale[solidRung];
|
|
118
113
|
return {
|
|
@@ -144,12 +139,7 @@ export function pickTableColor(value, palette, override, theme) {
|
|
|
144
139
|
}
|
|
145
140
|
return palette[hashKey(value) % palette.length];
|
|
146
141
|
}
|
|
147
|
-
|
|
148
|
-
* Partition rows by a column, preserving first-seen group order. The group key is
|
|
149
|
-
* a normalized string so object/array values (e.g. a `user` field that is an object
|
|
150
|
-
* or an array of users) group together by their readable text instead of by object
|
|
151
|
-
* identity.
|
|
152
|
-
*/
|
|
142
|
+
// Partitions rows by a column, preserving first-seen group order; groups by readable text, not object identity.
|
|
153
143
|
export function groupRows(data, groupBy) {
|
|
154
144
|
const order = [];
|
|
155
145
|
const map = new Map();
|
|
@@ -204,11 +194,7 @@ const objectToText = (o) => {
|
|
|
204
194
|
return String(o.value);
|
|
205
195
|
return "";
|
|
206
196
|
};
|
|
207
|
-
|
|
208
|
-
* Readable string for any cell value. Handles primitives, React elements, entity
|
|
209
|
-
* objects (e.g. `user`: `{ name }` / `{ first_name, last_name }`), and arrays of
|
|
210
|
-
* any of those (e.g. a multi-user field) by joining their texts.
|
|
211
|
-
*/
|
|
197
|
+
// Readable string for any cell value: primitives, React elements, entity objects, or arrays of those.
|
|
212
198
|
const getStringValue = (value) => {
|
|
213
199
|
if (value === null || value === undefined)
|
|
214
200
|
return "";
|
|
@@ -226,10 +212,7 @@ const getStringValue = (value) => {
|
|
|
226
212
|
}
|
|
227
213
|
return "";
|
|
228
214
|
};
|
|
229
|
-
|
|
230
|
-
* When a column has no `node`, raw cell values are rendered; plain objects
|
|
231
|
-
* (e.g. relation/user fields) must not be passed as React children.
|
|
232
|
-
*/
|
|
215
|
+
// When a column has no `node`, plain objects (relation/user fields) can't be passed as React children.
|
|
233
216
|
export function normalizeTableCellValue(value) {
|
|
234
217
|
if (value === null || value === undefined)
|
|
235
218
|
return "";
|
|
@@ -241,7 +224,6 @@ export function normalizeTableCellValue(value) {
|
|
|
241
224
|
if (React.isValidElement(value)) {
|
|
242
225
|
return value;
|
|
243
226
|
}
|
|
244
|
-
// Objects (relation/user) and arrays (multi-user / multi-select) → readable text.
|
|
245
227
|
return getStringValue(value);
|
|
246
228
|
}
|
|
247
229
|
export const searchAndSortData = (data, searchValues) => {
|
|
@@ -280,22 +262,7 @@ export function debounce(func, delay) {
|
|
|
280
262
|
}, delay);
|
|
281
263
|
};
|
|
282
264
|
}
|
|
283
|
-
export
|
|
284
|
-
const callbackRef = useRef(callback);
|
|
285
|
-
const timerRef = useRef(null);
|
|
286
|
-
useEffect(() => {
|
|
287
|
-
callbackRef.current = callback;
|
|
288
|
-
}, [callback]);
|
|
289
|
-
const debouncedFn = useCallback((...args) => {
|
|
290
|
-
if (timerRef.current) {
|
|
291
|
-
clearTimeout(timerRef.current);
|
|
292
|
-
}
|
|
293
|
-
timerRef.current = setTimeout(() => {
|
|
294
|
-
callbackRef.current(...args);
|
|
295
|
-
}, delay);
|
|
296
|
-
}, [delay]);
|
|
297
|
-
return debouncedFn;
|
|
298
|
-
}
|
|
265
|
+
export const useDebounce = useDebouncedCallback;
|
|
299
266
|
export const pageSizeCalculation = (records) => {
|
|
300
267
|
const pageSize = [5, 10];
|
|
301
268
|
if (records > 100) {
|
|
@@ -335,13 +302,7 @@ export const TableCellCalculation = ({ isFrozen, columnWidths, headerIndex, isCh
|
|
|
335
302
|
}
|
|
336
303
|
return { leftOffset, cellBgColor, rowBgColor, cellTextColor, rowTextColor };
|
|
337
304
|
};
|
|
338
|
-
|
|
339
|
-
* Filters array of objects by checking all property values against the search query.
|
|
340
|
-
*
|
|
341
|
-
* @param data - Array of objects
|
|
342
|
-
* @param query - Search string
|
|
343
|
-
* @returns Filtered data
|
|
344
|
-
*/
|
|
305
|
+
// Filters an array of objects by checking all property values against the search query.
|
|
345
306
|
export function globalSearchFilter(data, query) {
|
|
346
307
|
if (!query.trim())
|
|
347
308
|
return data;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
2
|
+
export const defaultValidationMessages = {
|
|
3
|
+
email_required: "Email is required",
|
|
4
|
+
email_invalid: "Enter a valid email address",
|
|
5
|
+
password_required: "Password is required",
|
|
6
|
+
password_min: "Password must be at least {min} characters",
|
|
7
|
+
required: "{label} is required",
|
|
8
|
+
positive_number: "{label} must be a positive number",
|
|
9
|
+
file_type: "Unsupported file type",
|
|
10
|
+
file_too_large: "File must be smaller than {max}MB",
|
|
11
|
+
video_type: "Unsupported video type",
|
|
12
|
+
youtube_required: "YouTube URL is required",
|
|
13
|
+
youtube_invalid: "Enter a valid YouTube URL",
|
|
14
|
+
};
|
|
15
|
+
export function validateEmail(value) {
|
|
16
|
+
if (!value.trim())
|
|
17
|
+
return "email_required";
|
|
18
|
+
if (!EMAIL_REGEX.test(value.trim()))
|
|
19
|
+
return "email_invalid";
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
export function validatePassword(value, minLength = 6) {
|
|
23
|
+
if (!value)
|
|
24
|
+
return "password_required";
|
|
25
|
+
if (value.length < minLength)
|
|
26
|
+
return "password_min";
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
export function validateRequired(value) {
|
|
30
|
+
if (!value.trim())
|
|
31
|
+
return "required";
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
export function validatePositiveNumber(value) {
|
|
35
|
+
if (!value.trim())
|
|
36
|
+
return "required";
|
|
37
|
+
const n = Number(value);
|
|
38
|
+
if (Number.isNaN(n) || n <= 0)
|
|
39
|
+
return "positive_number";
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
const DEFAULT_FILE_TYPES = new Set(["application/pdf", "image/jpeg", "image/png", "image/jpg"]);
|
|
43
|
+
export function validateFileType(file, allowed = DEFAULT_FILE_TYPES) {
|
|
44
|
+
return allowed.has(file.type) ? undefined : "file_type";
|
|
45
|
+
}
|
|
46
|
+
export function validateFileSize(file, maxMB) {
|
|
47
|
+
return file.size > maxMB * 1024 * 1024 ? "file_too_large" : undefined;
|
|
48
|
+
}
|
|
49
|
+
export function validateFile(file, maxMB, allowed) {
|
|
50
|
+
var _a;
|
|
51
|
+
return (_a = validateFileType(file, allowed)) !== null && _a !== void 0 ? _a : validateFileSize(file, maxMB);
|
|
52
|
+
}
|
|
53
|
+
const DEFAULT_VIDEO_TYPES = new Set(["video/mp4", "video/quicktime"]);
|
|
54
|
+
export function validateVideoFileType(file, allowed = DEFAULT_VIDEO_TYPES) {
|
|
55
|
+
return allowed.has(file.type) ? undefined : "video_type";
|
|
56
|
+
}
|
|
57
|
+
export function validateVideoFile(file, maxMB, allowed) {
|
|
58
|
+
var _a;
|
|
59
|
+
return (_a = validateVideoFileType(file, allowed)) !== null && _a !== void 0 ? _a : validateFileSize(file, maxMB);
|
|
60
|
+
}
|
|
61
|
+
const YOUTUBE_HOSTS = new Set(["youtube.com", "www.youtube.com", "m.youtube.com", "youtu.be"]);
|
|
62
|
+
export function validateYoutubeUrl(value) {
|
|
63
|
+
if (!value.trim())
|
|
64
|
+
return "youtube_required";
|
|
65
|
+
let url;
|
|
66
|
+
try {
|
|
67
|
+
url = new URL(value.trim());
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
return "youtube_invalid";
|
|
71
|
+
}
|
|
72
|
+
return YOUTUBE_HOSTS.has(url.hostname.toLowerCase()) ? undefined : "youtube_invalid";
|
|
73
|
+
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// import "./bootstrap";
|
|
2
|
-
import
|
|
2
|
+
import Accordion from "./Components/Accordion/Accordion.js";
|
|
3
3
|
import AlertDialog from "./Components/AlertDialog/AlertDialog.js";
|
|
4
4
|
import ApexBarChart from "./Components/Apexcharts/ApexBarChart/ApexBarChart.js";
|
|
5
5
|
import ApexPieChart from "./Components/Apexcharts/ApexPieChart/ApexPieChart.js";
|
|
@@ -101,7 +101,7 @@ import SignInActivityTable from "./Components/SignInActivityTable/SignInActivity
|
|
|
101
101
|
import OrganizationDetails from "./Components/OrganizationDetails/OrganizationDetails.js";
|
|
102
102
|
export {
|
|
103
103
|
// components
|
|
104
|
-
|
|
104
|
+
Accordion, AlertDialog, ApexBarChart, ApexPieChart, ApexPolarChart, ApexLineChart, ApexAreaChart, ApexRadialChart, Breadcrumbs, Button, ButtonGroupIcon, Card, Checkbox, ContactForm, DatePicker, Drawer, DrawerHeader, DrawerBody, DrawerFooter, Dropdown, Editor, EmptyState, WorkspaceWindow, WorkspaceTray, WorkspaceTrayPreview, FieldSelectModal, FilePreview, FilePreviewTrigger, FileUpload, FileUploader, FilterSidebar, FormWrapper, LazyWrapper, MoreItems, PdfViewer, ScrollToTop, CopyButton, StageProgress, StageItem, OrgSwitcher, AppSwitcher, LimitReachedModal, UpgradeButton, PlanPill, PlanBadge, formatPlanElapsed, formatPlanExpiry, formatPlanRemaining, resolvePlanBadge, splitMonthsAndDays, UserDetails, RolesPermission, CustomModulesTable, SignInActivityTable, OrganizationDetails, Header, HeaderActions, InputTextArea, InputSwitch, KanbanBoard, KanbanActions, Loading, Modal, ModalHeader, ModalBody, ModalFooter, NavigationBar, Notification, NoteTextArea, MultiSelect, NumberInput, PaymentCard, PhoneNumberInput, PinInput, ProductCard, ProductDetails, ProfileCard, ProfileCardHeader, ProfileCardBody, ProfileCardFooter, ProfilePhotoViewer, ProgressBar, RadioButton, RadioButtonGroup, Reorder, Search, Select, SelectV2, SearchSelect, SelectSearch, SideBar, Slider, ScrollbarBox, Skeletons, Switch, ToggleSwitch, SegmentedControl, Table, TableToggle, Tag, TextInput, Timeline, Toaster, ToolTip, OverflowToolTip, useToaster, VerifyEmailOtp,
|
|
105
105
|
// hooks
|
|
106
106
|
useSidebarPrefs, useIsTruncated,
|
|
107
107
|
// themes
|
|
@@ -138,6 +138,11 @@ export { listRowBackgrounds } from "./Theme/tokens/builders/rowStates.js";
|
|
|
138
138
|
export { buildFocusRing, settleBetween, withFocusRing } from "./Theme/tokens/builders/focusRing.js";
|
|
139
139
|
export { focusRingShadow, focusVisibleRing, focusVisibleStyles, FOCUS_VISIBLE_OVER_STATE, FOCUS_HALO_WIDTH, FOCUS_RING_WIDTH, } from "./Theme/chakra/focusRing.styles.js";
|
|
140
140
|
export { AVATAR_SEEDS, avatarFillFor, meetsBodyText, resolveAvatarFill, resolveStatusTone, } from "./Theme/tokens/builders/statusTone.js";
|
|
141
|
+
export { mergeRefs, setRef } from "./Utils/mergeRefs.js";
|
|
142
|
+
export { rafThrottle } from "./Utils/rafThrottle.js";
|
|
143
|
+
export { toWords } from "./Utils/functions.js";
|
|
144
|
+
export { useDebouncedCallback, useDebouncedValue } from "./Hooks/useDebounce.js";
|
|
145
|
+
export { CATEGORICAL_SERIES, chartAxisLabelColor, chartInk, chartMode, getCategoricalSeriesColors, getDefaultSeriesColors, labelOnSeries, } from "./Theme/tokens/builders/chartColorsFromTheme.js";
|
|
141
146
|
// WCAG contrast + accent-picking helpers this library uses internally to keep text readable
|
|
142
147
|
// against any canvas/fill a palette produces. Pure and dependency-free — consumers building
|
|
143
148
|
// custom components against `ColorScale`/`PaletteProps` tokens can reuse the same logic instead
|
|
@@ -161,4 +166,61 @@ export { useAppSwitcherShortcut } from "./Components/AppSwitcher/useAppSwitcherS
|
|
|
161
166
|
export { scrollbarStyles, globalScrollbarStyles, SCROLLBAR_WIDTH, } from "./Theme/tokens/builders/scrollbar.js";
|
|
162
167
|
export { placeholderInk, placeholderInkOn, fieldSurfaces } from "./Theme/tokens/builders/placeholderInk.js";
|
|
163
168
|
export { resolveGradient, gradientCss, inkSafeGradient as inkSafeGradientToken, } from "./Theme/tokens/builders/gradientInk.js";
|
|
169
|
+
export { CONTROL_SIZES, CONTROL_SIZE_NAMES, DEFAULT_CONTROL_SIZE, isControlSize, } from "./Theme/tokens/primitives/controlSizes.js";
|
|
170
|
+
export { MOTION_MS, MOTION_EASE, transitionFor } from "./Theme/tokens/primitives/motion.js";
|
|
171
|
+
export { TONES, isTone, toneToColorScheme, toneToSemantic, toneScale, toneInk, resolveSoftTone, } from "./Theme/tokens/builders/tone.js";
|
|
172
|
+
export { overlayScrim, SCRIM_OPACITY } from "./Theme/tokens/builders/scrim.js";
|
|
173
|
+
export { tooltipSurface } from "./Theme/tokens/builders/tooltipSurface.js";
|
|
174
|
+
export { buildSurfaceRaised, raisedRule, RAISED_OVERLAY } from "./Theme/tokens/builders/surfaceRaised.js";
|
|
175
|
+
export { overlayScrimStyles, OVERLAY_BLUR } from "./Theme/chakra/overlay.styles.js";
|
|
176
|
+
export { usePrefersReducedMotion, reducedMotionSx, REDUCED_MOTION_QUERY } from "./Theme/chakra/motion.js";
|
|
177
|
+
export { useFieldIds } from "./Components/Common/useFieldIds.js";
|
|
178
|
+
export { default as FieldMessage } from "./Components/Common/FieldMessage.js";
|
|
179
|
+
export { fieldControlStyles, controlSizeStyles } from "./Components/Common/fieldStyles.js";
|
|
180
|
+
export { fieldLabelStyles } from "./Components/Common/FormLabel.js";
|
|
181
|
+
export { fieldMessageStyles } from "./Components/Common/fieldMessageStyles.js";
|
|
182
|
+
export { default as PageHeader } from "./Components/PageHeader/PageHeader.js";
|
|
183
|
+
export { default as StatCard } from "./Components/StatCard/StatCard.js";
|
|
184
|
+
export { default as ErrorState } from "./Components/QueryState/ErrorState.js";
|
|
185
|
+
export { default as QueryStateBoundary } from "./Components/QueryState/QueryStateBoundary.js";
|
|
186
|
+
export { default as Backdrop } from "./Components/Backdrop/Backdrop.js";
|
|
187
|
+
export { default as Spinner } from "./Components/Spinner/Spinner.js";
|
|
188
|
+
export { default as DescriptionList } from "./Components/DescriptionList/DescriptionList.js";
|
|
189
|
+
export { default as FilterBar } from "./Components/FilterBar/FilterBar.js";
|
|
190
|
+
export { default as SettingRow } from "./Components/SettingRow/SettingRow.js";
|
|
191
|
+
export { default as SettingsSection } from "./Components/SettingRow/SettingsSection.js";
|
|
192
|
+
export { default as Avatar } from "./Components/Avatar/Avatar.js";
|
|
193
|
+
export { default as AvatarGroup } from "./Components/Avatar/AvatarGroup.js";
|
|
194
|
+
export { resolveAvatarColorway, avatarScaleKeyFor, initialsFor } from "./Components/Avatar/avatarColorway.js";
|
|
195
|
+
export { default as PersonChip } from "./Components/PersonChip/PersonChip.js";
|
|
196
|
+
export { default as FeedbackForm } from "./Components/FeedbackForm/FeedbackForm.js";
|
|
197
|
+
export { default as SaveBar } from "./Components/SaveBar/SaveBar.js";
|
|
198
|
+
/** @deprecated Misspelling kept for consumers. Use `Accordion`. */
|
|
199
|
+
export { default as Accordian } from "./Components/Accordion/Accordion.js";
|
|
200
|
+
export { Tabs, TabList, Tab, TabPanels, TabPanel } from "./Components/Tabs/index.js";
|
|
201
|
+
export { default as ConfirmDialog } from "./Components/ConfirmDialog/ConfirmDialog.js";
|
|
202
|
+
export { default as NotificationBell } from "./Components/NotificationBell/NotificationBell.js";
|
|
203
|
+
export { default as NotificationPanel } from "./Components/NotificationBell/NotificationPanel.js";
|
|
204
|
+
export { default as NotificationList } from "./Components/NotificationBell/NotificationList.js";
|
|
205
|
+
export { default as NotificationItem } from "./Components/NotificationBell/NotificationItem.js";
|
|
206
|
+
export { sectionizeByDay, groupConsecutive, formatCount, formatRelativeTime, useAnchoredPanelHeight, } from "./Components/NotificationBell/notificationHelpers.js";
|
|
207
|
+
export { lazyWithRetry, installPreloadErrorReload, isChunkLoadError, clearChunkReloadGuard, } from "./Utils/lazyWithRetry.js";
|
|
208
|
+
export { humanize, createEnumLabelResolver } from "./Utils/humanize.js";
|
|
209
|
+
export { EMAIL_REGEX, validateEmail, validatePassword, validateRequired, validatePositiveNumber, validateFileType, validateFileSize, validateFile, validateVideoFileType, validateVideoFile, validateYoutubeUrl, defaultValidationMessages, } from "./Utils/validation.js";
|
|
210
|
+
export { getApiErrorMessage, getApiErrorStatus } from "./Utils/apiError.js";
|
|
211
|
+
export { default as RangeSlider } from "./Components/RangeSlider/RangeSlider.js";
|
|
212
|
+
export { default as MediaViewer } from "./Components/MediaViewer/MediaViewer.js";
|
|
213
|
+
export { default as useFileViewer } from "./Components/MediaViewer/hooks/useFileViewer.js";
|
|
214
|
+
export { default as MediaImageViewer } from "./Components/MediaViewer/components/MediaImageViewer.js";
|
|
215
|
+
export { defaultMediaImageViewerLabels } from "./Components/MediaViewer/components/MediaImageViewerProps.js";
|
|
216
|
+
export { default as MediaVideoPlayer } from "./Components/MediaViewer/components/MediaVideoPlayer.js";
|
|
217
|
+
export { defaultMediaVideoPlayerLabels } from "./Components/MediaViewer/components/MediaVideoPlayerProps.js";
|
|
218
|
+
export { default as MediaDocumentStage } from "./Components/MediaViewer/components/MediaDocumentStage.js";
|
|
219
|
+
export { defaultMediaDocumentStageLabels } from "./Components/MediaViewer/components/MediaDocumentStageProps.js";
|
|
220
|
+
export { defaultMediaViewerLabels } from "./Components/MediaViewer/MediaViewerProps.js";
|
|
221
|
+
export { default as MediaAudioPlayer } from "./Components/MediaViewer/components/MediaAudioPlayer.js";
|
|
222
|
+
export { defaultMediaAudioPlayerLabels } from "./Components/MediaViewer/components/MediaAudioPlayerProps.js";
|
|
223
|
+
export { default as MediaScrubber } from "./Components/MediaViewer/components/MediaScrubber.js";
|
|
224
|
+
export { default as MediaStatusPanel } from "./Components/MediaViewer/components/MediaStatusPanel.js";
|
|
225
|
+
export { buildMediaItems, buildFileItems, planPreview, countMedia, fileKind, resolveMediaUrl, MIN_ZOOM, MAX_ZOOM, ZOOM_STEP, PLAYBACK_SPEEDS, SEEK_STEP_SECONDS, } from "./Components/MediaViewer/mediaItems.js";
|
|
164
226
|
export * from "./Components/Primitives/Primitives.js";
|
package/dist/global.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Accordion from "./Components/Accordion/Accordion";
|
|
2
2
|
import AlertDialog from "./Components/AlertDialog/AlertDialog";
|
|
3
3
|
import ApexBarChart from "./Components/Apexcharts/ApexBarChart/ApexBarChart";
|
|
4
4
|
import ApexPieChart from "./Components/Apexcharts/ApexPieChart/ApexPieChart";
|
|
@@ -96,7 +96,7 @@ import RolesPermission from "./Components/RolesPermission/RolesPermission";
|
|
|
96
96
|
import CustomModulesTable from "./Components/CustomModulesTable/CustomModulesTable";
|
|
97
97
|
import SignInActivityTable from "./Components/SignInActivityTable/SignInActivityTable";
|
|
98
98
|
import OrganizationDetails from "./Components/OrganizationDetails/OrganizationDetails";
|
|
99
|
-
export {
|
|
99
|
+
export { Accordion, AlertDialog, ApexBarChart, ApexPieChart, ApexPolarChart, ApexLineChart, ApexAreaChart, ApexRadialChart, Breadcrumbs, Button, ButtonGroupIcon, Card, Checkbox, ContactForm, DatePicker, Drawer, DrawerHeader, DrawerBody, DrawerFooter, Dropdown, Editor, EmptyState, WorkspaceWindow, WorkspaceTray, WorkspaceTrayPreview, FieldSelectModal, FilePreview, FilePreviewTrigger, FileUpload, FileUploader, FilterSidebar, FormWrapper, LazyWrapper, MoreItems, PdfViewer, ScrollToTop, CopyButton, StageProgress, StageItem, OrgSwitcher, AppSwitcher, LimitReachedModal, UpgradeButton, PlanPill, PlanBadge, formatPlanElapsed, formatPlanExpiry, formatPlanRemaining, resolvePlanBadge, splitMonthsAndDays, UserDetails, RolesPermission, CustomModulesTable, SignInActivityTable, OrganizationDetails, Header, HeaderActions, InputTextArea, InputSwitch, KanbanBoard, KanbanActions, Loading, Modal, ModalHeader, ModalBody, ModalFooter, NavigationBar, Notification, NoteTextArea, MultiSelect, NumberInput, PaymentCard, PhoneNumberInput, PinInput, ProductCard, ProductDetails, ProfileCard, ProfileCardHeader, ProfileCardBody, ProfileCardFooter, ProfilePhotoViewer, ProgressBar, RadioButton, RadioButtonGroup, Reorder, Search, Select, SelectV2, SearchSelect, SelectSearch, SideBar, Slider, ScrollbarBox, Skeletons, Switch, ToggleSwitch, SegmentedControl, Table, TableToggle, Tag, TextInput, Timeline, Toaster, ToolTip, OverflowToolTip, useToaster, VerifyEmailOtp, useSidebarPrefs, useIsTruncated, useCustomTheme, ThemesList, debounce, isAllowedReturnUrl, resolveReturnUrl, createAccountHandoff, };
|
|
100
100
|
export default withTheme;
|
|
101
101
|
export type { UserDetailsProps, UserDetailsLabels, UserListItem, SelectedUserDetail, UserDetailRow, RoleOption, AddUserFormValues, ChangeRoleSubmitPayload, } from "./Components/UserDetails/UserDetailsProps";
|
|
102
102
|
export type { WorkspaceWindowProps, WorkspaceWindowState, WorkspaceTrayProps, WorkspaceTrayItem, WorkspaceTrayPreviewProps, } from "./Components/WorkspaceWindow/WorkspaceWindowProps";
|
|
@@ -121,6 +121,12 @@ export type { FocusRingSource } from "./Theme/tokens/builders/focusRing";
|
|
|
121
121
|
export { focusRingShadow, focusVisibleRing, focusVisibleStyles, FOCUS_VISIBLE_OVER_STATE, FOCUS_HALO_WIDTH, FOCUS_RING_WIDTH, } from "./Theme/chakra/focusRing.styles";
|
|
122
122
|
export { AVATAR_SEEDS, avatarFillFor, meetsBodyText, resolveAvatarFill, resolveStatusTone, } from "./Theme/tokens/builders/statusTone";
|
|
123
123
|
export type { StatusTone } from "./Theme/tokens/builders/statusTone";
|
|
124
|
+
export { mergeRefs, setRef } from "./Utils/mergeRefs";
|
|
125
|
+
export { rafThrottle } from "./Utils/rafThrottle";
|
|
126
|
+
export { toWords } from "./Utils/functions";
|
|
127
|
+
export { useDebouncedCallback, useDebouncedValue } from "./Hooks/useDebounce";
|
|
128
|
+
export { CATEGORICAL_SERIES, chartAxisLabelColor, chartInk, chartMode, getCategoricalSeriesColors, getDefaultSeriesColors, labelOnSeries, } from "./Theme/tokens/builders/chartColorsFromTheme";
|
|
129
|
+
export type { ChartMode } from "./Theme/tokens/builders/chartColorsFromTheme";
|
|
124
130
|
export type { ColorMode, ResolvedColorMode, ThemeName, PaletteProps, ColorScale, BrandScale, SemanticColors, NamedSurfaces, FocusRingTokens, } from "./Theme/tokens/types";
|
|
125
131
|
export { statusGradient, inkSafeGradient, chipFill, chipBorder, ACCENT_GRADIENT, STATUS_INK, } from "./Components/PlanPill/planPillGradient";
|
|
126
132
|
export { isDarkCanvas, onFilled, onGradient, accentTextOnCanvas, pickAccentText, AA_NORMAL_TEXT, DARK_CANVAS_LUMINANCE, } from "./Theme/tokens/builders/accentText";
|
|
@@ -130,6 +136,7 @@ export { hexToRgb, hexToRgba, compositeOver, rgbToHex, rgbToHsl, hslToRgb, hexTo
|
|
|
130
136
|
export type { Rgb, Hsl } from "./Theme/tokens/builders/color";
|
|
131
137
|
export type { SelectV2Props, SelectV2Size, OptionProp as SelectV2Option } from "./Components/SelectV2/SelectV2Props";
|
|
132
138
|
export type { PlanPillProps, PlanPillTone } from "./Components/PlanPill/PlanPillProps";
|
|
139
|
+
export type { ContactFormProps, ContactFormPayload } from "./Components/ContactForm/ContactFormProps";
|
|
133
140
|
export type { PlanBadgeProps } from "./Components/PlanBadge/PlanBadgeProps";
|
|
134
141
|
export type { PlanBadgeInput, PlanBadgeResult } from "./Utils/planBadge";
|
|
135
142
|
export type { PlanExpiryInput } from "./Utils/planExpiry";
|
|
@@ -144,19 +151,19 @@ export type { DrawerProps } from "./Components/Drawer/DrawerProps";
|
|
|
144
151
|
export type { AlertDialogsProps } from "./Components/AlertDialog/AlertDialogProps";
|
|
145
152
|
export type { chakraSelectProps as SelectProps, OptionProp as SelectOption, } from "./Components/Select/SelectProps";
|
|
146
153
|
export type { SearchSelectProps, Options as SearchSelectOption } from "./Components/SearchSelect/SearchSelectProps";
|
|
147
|
-
export type { MultiSelectProps, MultiSelctOPtions
|
|
154
|
+
export type { MultiSelectProps, MultiSelectOption, MultiSelctOPtions } from "./Components/MultiSelect/MultiSelectProps";
|
|
148
155
|
export type { SearchProps } from "./Components/Search/SearchProps";
|
|
149
156
|
export { DAY_STATE_KEYS, DAY_CLASS as CALENDAR_DAY_CLASS, isDayStateKey, resolveDayStateVisual, describeDayStates, } from "./Components/DatePicker/dayStates";
|
|
150
157
|
export type { DayStateKey, DayStates, DayStateVisual, RenderDayContent, } from "./Components/DatePicker/dayStates";
|
|
151
|
-
export type { DatePickerProps, TimePickerProps, SingleDatePickerProps, RangeDatePickerProps, RangeDate, PickerType, } from "./Components/DatePicker/DatePickerProps";
|
|
158
|
+
export type { DatePickerProps, TimePickerProps, SingleDatePickerProps, SingleDatePickerDateProps, SingleDatePickerStringProps, RangeDatePickerProps, RangeDate, PickerType, } from "./Components/DatePicker/DatePickerProps";
|
|
152
159
|
export type { TextInputProps } from "./Components/Input/TextInputProps";
|
|
153
160
|
export type { InputTextAreaProps } from "./Components/InputTextArea/InputTextAreaProps";
|
|
154
161
|
export type { NumberInputProps, ActiveStyle as NumberInputActiveStyle } from "./Components/NumberInput/NumberInputProps";
|
|
155
162
|
export type { CheckboxProps } from "./Components/Checkbox/CheckboxProps";
|
|
156
163
|
export type { SwitchProps } from "./Components/Switch/SwitchProps";
|
|
157
|
-
export type { ToggleSwitchProps, ToggleSwitchSize } from "./Components/ToggleSwitch/ToggleSwitchProps";
|
|
164
|
+
export type { ToggleSwitchProps, ToggleSwitchSize, ToggleSwitchColorScheme, } from "./Components/ToggleSwitch/ToggleSwitchProps";
|
|
158
165
|
export type { SegmentedControlProps, SegmentedControlOption, SegmentedControlSize, } from "./Components/SegmentedControl/SegmentedControlProps";
|
|
159
|
-
export type { ChakraRadioProps as RadioButtonProps, ChakraRadioGroupProps as RadioButtonGroupProps } from "./Components/RadioButton/RadioButtonProps";
|
|
166
|
+
export type { ChakraRadioProps as RadioButtonProps, ChakraRadioGroupProps as RadioButtonGroupProps, RadioOption } from "./Components/RadioButton/RadioButtonProps";
|
|
160
167
|
export type { ChakraPinInputProps as PinInputProps } from "./Components/PinInput/PinInputProps";
|
|
161
168
|
export type { TagProps, TagSize, TagVariant, TagColorScheme } from "./Components/Tag/TagProps";
|
|
162
169
|
export type { ToolTipProps } from "./Components/ToolTip/ToolTipProps";
|
|
@@ -182,4 +189,101 @@ export { placeholderInk, placeholderInkOn, fieldSurfaces } from "./Theme/tokens/
|
|
|
182
189
|
export type { FieldSurfaces } from "./Theme/tokens/builders/placeholderInk";
|
|
183
190
|
export { resolveGradient, gradientCss, inkSafeGradient as inkSafeGradientToken, } from "./Theme/tokens/builders/gradientInk";
|
|
184
191
|
export type { Gradient, ResolvedGradient, } from "./Theme/tokens/builders/gradientInk";
|
|
192
|
+
export { CONTROL_SIZES, CONTROL_SIZE_NAMES, DEFAULT_CONTROL_SIZE, isControlSize, } from "./Theme/tokens/primitives/controlSizes";
|
|
193
|
+
export type { ControlSize, ControlSizeSpec } from "./Theme/tokens/primitives/controlSizes";
|
|
194
|
+
export { MOTION_MS, MOTION_EASE, transitionFor } from "./Theme/tokens/primitives/motion";
|
|
195
|
+
export type { MotionSpeed } from "./Theme/tokens/primitives/motion";
|
|
196
|
+
export { TONES, isTone, toneToColorScheme, toneToSemantic, toneScale, toneInk, resolveSoftTone, } from "./Theme/tokens/builders/tone";
|
|
197
|
+
export type { Tone, ToneColorScheme } from "./Theme/tokens/builders/tone";
|
|
198
|
+
export { overlayScrim, SCRIM_OPACITY } from "./Theme/tokens/builders/scrim";
|
|
199
|
+
export { tooltipSurface } from "./Theme/tokens/builders/tooltipSurface";
|
|
200
|
+
export { buildSurfaceRaised, raisedRule, RAISED_OVERLAY } from "./Theme/tokens/builders/surfaceRaised";
|
|
201
|
+
export { overlayScrimStyles, OVERLAY_BLUR } from "./Theme/chakra/overlay.styles";
|
|
202
|
+
export { usePrefersReducedMotion, reducedMotionSx, REDUCED_MOTION_QUERY } from "./Theme/chakra/motion";
|
|
203
|
+
export { useFieldIds } from "./Components/Common/useFieldIds";
|
|
204
|
+
export type { FieldIds } from "./Components/Common/useFieldIds";
|
|
205
|
+
export { default as FieldMessage } from "./Components/Common/FieldMessage";
|
|
206
|
+
export type { FieldMessageProps } from "./Components/Common/FieldMessage";
|
|
207
|
+
export { fieldControlStyles, controlSizeStyles } from "./Components/Common/fieldStyles";
|
|
208
|
+
export { fieldLabelStyles } from "./Components/Common/FormLabel";
|
|
209
|
+
export { fieldMessageStyles } from "./Components/Common/fieldMessageStyles";
|
|
210
|
+
export { default as PageHeader } from "./Components/PageHeader/PageHeader";
|
|
211
|
+
export type { PageHeaderProps } from "./Components/PageHeader/PageHeaderProps";
|
|
212
|
+
export { default as StatCard } from "./Components/StatCard/StatCard";
|
|
213
|
+
export type { StatCardProps } from "./Components/StatCard/StatCardProps";
|
|
214
|
+
export { default as ErrorState } from "./Components/QueryState/ErrorState";
|
|
215
|
+
export { default as QueryStateBoundary } from "./Components/QueryState/QueryStateBoundary";
|
|
216
|
+
export type { ErrorStateProps, QueryStateBoundaryProps } from "./Components/QueryState/QueryStateProps";
|
|
217
|
+
export { default as Backdrop } from "./Components/Backdrop/Backdrop";
|
|
218
|
+
export type { BackdropProps, BackdropVariant } from "./Components/Backdrop/BackdropProps";
|
|
219
|
+
export { default as Spinner } from "./Components/Spinner/Spinner";
|
|
220
|
+
export type { SpinnerProps, SpinnerSize } from "./Components/Spinner/SpinnerProps";
|
|
221
|
+
export { default as DescriptionList } from "./Components/DescriptionList/DescriptionList";
|
|
222
|
+
export type { DescriptionListProps, DescriptionListItem, DescriptionListColumns } from "./Components/DescriptionList/DescriptionListProps";
|
|
223
|
+
export { default as FilterBar } from "./Components/FilterBar/FilterBar";
|
|
224
|
+
export type { FilterBarProps, FilterBarActiveFilter } from "./Components/FilterBar/FilterBarProps";
|
|
225
|
+
export { default as SettingRow } from "./Components/SettingRow/SettingRow";
|
|
226
|
+
export type { SettingRowProps } from "./Components/SettingRow/SettingRowProps";
|
|
227
|
+
export { default as SettingsSection } from "./Components/SettingRow/SettingsSection";
|
|
228
|
+
export type { SettingsSectionProps } from "./Components/SettingRow/SettingsSectionProps";
|
|
229
|
+
export { default as Avatar } from "./Components/Avatar/Avatar";
|
|
230
|
+
export type { AvatarProps, AvatarSize, AvatarStatus } from "./Components/Avatar/AvatarProps";
|
|
231
|
+
export { default as AvatarGroup } from "./Components/Avatar/AvatarGroup";
|
|
232
|
+
export type { AvatarGroupProps, AvatarGroupMember } from "./Components/Avatar/AvatarGroupProps";
|
|
233
|
+
export { resolveAvatarColorway, avatarScaleKeyFor, initialsFor } from "./Components/Avatar/avatarColorway";
|
|
234
|
+
export type { AvatarColorway, AvatarScaleKey } from "./Components/Avatar/avatarColorway";
|
|
235
|
+
export { default as PersonChip } from "./Components/PersonChip/PersonChip";
|
|
236
|
+
export type { PersonChipProps, PersonChipSize, PersonChipOrientation } from "./Components/PersonChip/PersonChipProps";
|
|
237
|
+
export { default as FeedbackForm } from "./Components/FeedbackForm/FeedbackForm";
|
|
238
|
+
export type { FeedbackFormProps, FeedbackPayload } from "./Components/FeedbackForm/FeedbackForm";
|
|
239
|
+
export { default as SaveBar } from "./Components/SaveBar/SaveBar";
|
|
240
|
+
export type { SaveBarProps } from "./Components/SaveBar/SaveBarProps";
|
|
241
|
+
export type { ToasterStatus } from "./Components/Toaster/ToasterProps";
|
|
242
|
+
export type { TableColumnAlign } from "./Components/Table/TableProps";
|
|
243
|
+
export type { KanbanBoardProps, ColumnType as KanbanColumnType, Account as KanbanAccount, ColumnCollapseChangePayload, KanbanDragPayload, KanbanPermissions, } from "./Components/KanbanBoard/KanbanBoardProps";
|
|
244
|
+
export type { ProgressBarColorScheme } from "./Components/ProgressBar/ProgressBarProps";
|
|
245
|
+
/** @deprecated Misspelling kept for consumers. Use `Accordion`. */
|
|
246
|
+
export { default as Accordian } from "./Components/Accordion/Accordion";
|
|
247
|
+
export { Tabs, TabList, Tab, TabPanels, TabPanel } from "./Components/Tabs";
|
|
248
|
+
export type { TabsProps, TabItem, TabsVariant, TabsOrientation, TabActivationMode, TabsColorScheme, TabListProps, TabProps, TabPanelsProps, TabPanelProps, } from "./Components/Tabs";
|
|
249
|
+
export { default as ConfirmDialog } from "./Components/ConfirmDialog/ConfirmDialog";
|
|
250
|
+
export type { ConfirmDialogProps } from "./Components/ConfirmDialog/ConfirmDialogProps";
|
|
251
|
+
export { default as NotificationBell } from "./Components/NotificationBell/NotificationBell";
|
|
252
|
+
export { default as NotificationPanel } from "./Components/NotificationBell/NotificationPanel";
|
|
253
|
+
export { default as NotificationList } from "./Components/NotificationBell/NotificationList";
|
|
254
|
+
export { default as NotificationItem } from "./Components/NotificationBell/NotificationItem";
|
|
255
|
+
export { sectionizeByDay, groupConsecutive, formatCount, formatRelativeTime, useAnchoredPanelHeight, } from "./Components/NotificationBell/notificationHelpers";
|
|
256
|
+
export { lazyWithRetry, installPreloadErrorReload, isChunkLoadError, clearChunkReloadGuard, } from "./Utils/lazyWithRetry";
|
|
257
|
+
export { humanize, createEnumLabelResolver } from "./Utils/humanize";
|
|
258
|
+
export type { EnumLabelResolver } from "./Utils/humanize";
|
|
259
|
+
export { EMAIL_REGEX, validateEmail, validatePassword, validateRequired, validatePositiveNumber, validateFileType, validateFileSize, validateFile, validateVideoFileType, validateVideoFile, validateYoutubeUrl, defaultValidationMessages, } from "./Utils/validation";
|
|
260
|
+
export type { ValidationCode } from "./Utils/validation";
|
|
261
|
+
export { getApiErrorMessage, getApiErrorStatus } from "./Utils/apiError";
|
|
262
|
+
export { default as RangeSlider } from "./Components/RangeSlider/RangeSlider";
|
|
263
|
+
export type { RangeSliderProps, RangeSliderSingleProps, RangeSliderRangeProps, RangeSliderMark, SliderScale, } from "./Components/RangeSlider/RangeSliderProps";
|
|
264
|
+
export { default as MediaViewer } from "./Components/MediaViewer/MediaViewer";
|
|
265
|
+
export type { MediaViewerProps } from "./Components/MediaViewer/MediaViewerProps";
|
|
266
|
+
export { default as useFileViewer } from "./Components/MediaViewer/hooks/useFileViewer";
|
|
267
|
+
export { default as MediaImageViewer } from "./Components/MediaViewer/components/MediaImageViewer";
|
|
268
|
+
export { defaultMediaImageViewerLabels } from "./Components/MediaViewer/components/MediaImageViewerProps";
|
|
269
|
+
export type { MediaImageViewerProps, MediaImageViewerLabels } from "./Components/MediaViewer/components/MediaImageViewerProps";
|
|
270
|
+
export { default as MediaVideoPlayer } from "./Components/MediaViewer/components/MediaVideoPlayer";
|
|
271
|
+
export { defaultMediaVideoPlayerLabels } from "./Components/MediaViewer/components/MediaVideoPlayerProps";
|
|
272
|
+
export type { MediaVideoPlayerProps, MediaVideoPlayerLabels } from "./Components/MediaViewer/components/MediaVideoPlayerProps";
|
|
273
|
+
export { default as MediaDocumentStage } from "./Components/MediaViewer/components/MediaDocumentStage";
|
|
274
|
+
export { defaultMediaDocumentStageLabels } from "./Components/MediaViewer/components/MediaDocumentStageProps";
|
|
275
|
+
export type { MediaDocumentStageProps, MediaDocumentStageLabels } from "./Components/MediaViewer/components/MediaDocumentStageProps";
|
|
276
|
+
export type { ResolveDocument, DocumentResolution } from "./Components/MediaViewer/components/MediaDocumentStageProps";
|
|
277
|
+
export { defaultMediaViewerLabels } from "./Components/MediaViewer/MediaViewerProps";
|
|
278
|
+
export type { MediaViewerLabels } from "./Components/MediaViewer/MediaViewerProps";
|
|
279
|
+
export type { FileViewerApi, UseFileViewerOptions } from "./Components/MediaViewer/hooks/useFileViewer";
|
|
280
|
+
export { default as MediaAudioPlayer } from "./Components/MediaViewer/components/MediaAudioPlayer";
|
|
281
|
+
export { defaultMediaAudioPlayerLabels } from "./Components/MediaViewer/components/MediaAudioPlayerProps";
|
|
282
|
+
export type { MediaAudioPlayerProps, MediaAudioPlayerLabels } from "./Components/MediaViewer/components/MediaAudioPlayerProps";
|
|
283
|
+
export { default as MediaScrubber } from "./Components/MediaViewer/components/MediaScrubber";
|
|
284
|
+
export type { MediaScrubberProps, BufferedRange } from "./Components/MediaViewer/components/MediaScrubberProps";
|
|
285
|
+
export { default as MediaStatusPanel } from "./Components/MediaViewer/components/MediaStatusPanel";
|
|
286
|
+
export type { MediaStatusPanelProps, MediaStatusTone } from "./Components/MediaViewer/components/MediaStatusPanelProps";
|
|
287
|
+
export { buildMediaItems, buildFileItems, planPreview, countMedia, fileKind, resolveMediaUrl, MIN_ZOOM, MAX_ZOOM, ZOOM_STEP, PLAYBACK_SPEEDS, SEEK_STEP_SECONDS, } from "./Components/MediaViewer/mediaItems";
|
|
288
|
+
export type { MediaItem, MediaKind, FileKind, MediaSource, MediaSources, MediaFile, ViewerFile, ResolveUrl, } from "./Components/MediaViewer/mediaItems";
|
|
185
289
|
export * from "./Components/Primitives/Primitives";
|