@cube-dev/ui-kit 0.153.0 → 0.154.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +35 -0
- package/dist/_internal/hooks/use-chained-callback.js +1 -1
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.d.ts +12 -0
- package/dist/components/fields/DatePicker/MonthPicker.js +19 -0
- package/dist/components/fields/DatePicker/MonthPicker.js.map +1 -0
- package/dist/components/fields/DatePicker/PeriodPicker.d.ts +28 -0
- package/dist/components/fields/DatePicker/PeriodPicker.js +131 -0
- package/dist/components/fields/DatePicker/PeriodPicker.js.map +1 -0
- package/dist/components/fields/DatePicker/QuarterPicker.d.ts +12 -0
- package/dist/components/fields/DatePicker/QuarterPicker.js +19 -0
- package/dist/components/fields/DatePicker/QuarterPicker.js.map +1 -0
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.d.ts +12 -0
- package/dist/components/fields/DatePicker/WeekPicker.js +19 -0
- package/dist/components/fields/DatePicker/WeekPicker.js.map +1 -0
- package/dist/components/fields/DatePicker/YearPicker.d.ts +12 -0
- package/dist/components/fields/DatePicker/YearPicker.js +19 -0
- package/dist/components/fields/DatePicker/YearPicker.js.map +1 -0
- package/dist/components/fields/DatePicker/index.d.ts +7 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.d.ts +35 -0
- package/dist/components/fields/DatePicker/period.js +58 -0
- package/dist/components/fields/DatePicker/period.js.map +1 -0
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.js +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/fields/index.d.ts +6 -0
- package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Board/Board.js +1 -1
- package/dist/components/layout/Board/BoardProvider.js +1 -1
- package/dist/components/layout/Board/BoardResponsive.js +1 -1
- package/dist/components/layout/Board/Widget.js +1 -1
- package/dist/components/layout/Board/WidgetHost.js +1 -1
- package/dist/components/layout/Board/board-context.js +1 -1
- package/dist/components/layout/Board/board-store.js +1 -1
- package/dist/components/layout/Board/grid-core/calculate.js +1 -1
- package/dist/components/layout/Board/grid-core/collision.js +1 -1
- package/dist/components/layout/Board/grid-core/compactors.js +1 -1
- package/dist/components/layout/Board/grid-core/constraints.js +1 -1
- package/dist/components/layout/Board/grid-core/layout.js +1 -1
- package/dist/components/layout/Board/grid-core/sort.js +1 -1
- package/dist/components/layout/Board/index.js +1 -1
- package/dist/components/layout/Board/responsive-utils.js +1 -1
- package/dist/components/layout/Board/use-board-layout.js +1 -1
- package/dist/components/layout/Board/use-board-registry.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/FileTabs/FileTabs.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +12 -3
- package/dist/components/other/Calendar/Calendar.js.map +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +4 -2
- package/dist/components/other/Calendar/CalendarCell.js.map +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +35 -13
- package/dist/components/other/Calendar/CalendarGrid.js.map +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +229 -0
- package/dist/components/other/Calendar/PeriodCalendar.js.map +1 -0
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/palette-config.d.ts +12 -5
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette-config.js.map +1 -1
- package/dist/tokens/palette.js +21 -7
- package/dist/tokens/palette.js.map +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/Theming.md +34 -30
- package/docs/components/fields/PeriodPicker.md +75 -0
- package/package.json +1 -1
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
|
+
import { _Title } from "../../content/Title.js";
|
|
3
|
+
import { useProviderProps } from "../../../provider.js";
|
|
4
|
+
import { Space } from "../../layout/Space.js";
|
|
5
|
+
import { LeftIcon } from "../../../icons/LeftIcon.js";
|
|
6
|
+
import { RightIcon } from "../../../icons/RightIcon.js";
|
|
7
|
+
import { Button } from "../../actions/index.js";
|
|
8
|
+
import { getQuarter, snapToPeriod } from "../../fields/DatePicker/period.js";
|
|
9
|
+
import { tasty } from "@tenphi/tasty";
|
|
10
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { useDateFormatter, useLocale } from "react-aria";
|
|
13
|
+
import { CalendarDate, getLocalTimeZone, today } from "@internationalized/date";
|
|
14
|
+
|
|
15
|
+
//#region src/components/other/Calendar/PeriodCalendar.tsx
|
|
16
|
+
const PeriodCalendarElement = tasty({ styles: {
|
|
17
|
+
padding: "1x",
|
|
18
|
+
gap: "1x",
|
|
19
|
+
width: "min 30x"
|
|
20
|
+
} });
|
|
21
|
+
const PeriodHeaderElement = tasty({ styles: {
|
|
22
|
+
display: "flex",
|
|
23
|
+
placeContent: "center space-between",
|
|
24
|
+
placeItems: "center",
|
|
25
|
+
gap: "1.5x"
|
|
26
|
+
} });
|
|
27
|
+
const PeriodGridElement = tasty({ styles: {
|
|
28
|
+
display: "grid",
|
|
29
|
+
gap: "1bw",
|
|
30
|
+
padding: ".5x top"
|
|
31
|
+
} });
|
|
32
|
+
const PeriodCellElement = tasty({
|
|
33
|
+
as: "button",
|
|
34
|
+
"data-popover-keep": true,
|
|
35
|
+
styles: {
|
|
36
|
+
preset: "t3m",
|
|
37
|
+
display: "grid",
|
|
38
|
+
placeItems: "center",
|
|
39
|
+
height: "5x",
|
|
40
|
+
padding: "1x",
|
|
41
|
+
border: 0,
|
|
42
|
+
fill: {
|
|
43
|
+
"": "#primary.0",
|
|
44
|
+
":hover": "#primary.16",
|
|
45
|
+
pressed: "#primary.10",
|
|
46
|
+
selected: "#primary",
|
|
47
|
+
"selected & :hover": "#primary",
|
|
48
|
+
disabled: "#primary.0"
|
|
49
|
+
},
|
|
50
|
+
color: {
|
|
51
|
+
"": "#dark",
|
|
52
|
+
outside: "#dark.30",
|
|
53
|
+
selected: "#white",
|
|
54
|
+
disabled: "#dark.30"
|
|
55
|
+
},
|
|
56
|
+
outline: {
|
|
57
|
+
"": "1bw #primary-text.0",
|
|
58
|
+
focused: "1bw #primary-text"
|
|
59
|
+
},
|
|
60
|
+
outlineOffset: .5,
|
|
61
|
+
radius: true,
|
|
62
|
+
cursor: {
|
|
63
|
+
"": "pointer",
|
|
64
|
+
disabled: "not-allowed"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
const COLUMNS = {
|
|
69
|
+
month: 3,
|
|
70
|
+
quarter: 4,
|
|
71
|
+
year: 3
|
|
72
|
+
};
|
|
73
|
+
function PeriodCalendar(props) {
|
|
74
|
+
props = useProviderProps(props);
|
|
75
|
+
let { picker, value, onChange, minValue, maxValue, isDateUnavailable, isDisabled, autoFocus } = props;
|
|
76
|
+
let { locale } = useLocale();
|
|
77
|
+
let monthFormatter = useDateFormatter({
|
|
78
|
+
month: "short",
|
|
79
|
+
timeZone: "UTC"
|
|
80
|
+
});
|
|
81
|
+
let selected = value ?? null;
|
|
82
|
+
let selectedYear = selected?.year ?? null;
|
|
83
|
+
let selectedMonth = selected?.month ?? null;
|
|
84
|
+
let [focusedYear, setFocusedYear] = useState(() => selectedYear ?? today(getLocalTimeZone()).year);
|
|
85
|
+
let cols = COLUMNS[picker];
|
|
86
|
+
let step = picker === "year" ? 10 : 1;
|
|
87
|
+
let decadeStart = Math.floor(focusedYear / 10) * 10;
|
|
88
|
+
let isPeriodDisabled = (date) => {
|
|
89
|
+
if (isDisabled) return true;
|
|
90
|
+
if (minValue && date.compare(snapToPeriod(minValue, picker, locale)) < 0) return true;
|
|
91
|
+
if (maxValue && date.compare(snapToPeriod(maxValue, picker, locale)) > 0) return true;
|
|
92
|
+
return isDateUnavailable?.(date) ?? false;
|
|
93
|
+
};
|
|
94
|
+
let cells = useMemo(() => {
|
|
95
|
+
if (picker === "month") return Array.from({ length: 12 }, (_, m) => {
|
|
96
|
+
let date = new CalendarDate(focusedYear, m + 1, 1);
|
|
97
|
+
return {
|
|
98
|
+
key: `m-${m}`,
|
|
99
|
+
label: monthFormatter.format(new Date(Date.UTC(2021, m, 15))),
|
|
100
|
+
date,
|
|
101
|
+
isSelected: selectedYear === focusedYear && selectedMonth === m + 1,
|
|
102
|
+
isDisabled: isPeriodDisabled(date),
|
|
103
|
+
isOutside: false
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
if (picker === "quarter") return Array.from({ length: 4 }, (_, q) => {
|
|
107
|
+
let date = new CalendarDate(focusedYear, q * 3 + 1, 1);
|
|
108
|
+
return {
|
|
109
|
+
key: `q-${q}`,
|
|
110
|
+
label: `Q${q + 1}`,
|
|
111
|
+
date,
|
|
112
|
+
isSelected: selectedYear === focusedYear && selectedMonth != null && getQuarter(selectedMonth) === q + 1,
|
|
113
|
+
isDisabled: isPeriodDisabled(date),
|
|
114
|
+
isOutside: false
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
return Array.from({ length: 12 }, (_, i) => {
|
|
118
|
+
let year = decadeStart - 1 + i;
|
|
119
|
+
let date = new CalendarDate(year, 1, 1);
|
|
120
|
+
return {
|
|
121
|
+
key: `y-${year}`,
|
|
122
|
+
label: String(year),
|
|
123
|
+
date,
|
|
124
|
+
isSelected: selectedYear === year,
|
|
125
|
+
isDisabled: isPeriodDisabled(date),
|
|
126
|
+
isOutside: year < decadeStart || year > decadeStart + 9
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
}, [
|
|
130
|
+
picker,
|
|
131
|
+
focusedYear,
|
|
132
|
+
decadeStart,
|
|
133
|
+
selectedYear,
|
|
134
|
+
selectedMonth,
|
|
135
|
+
monthFormatter,
|
|
136
|
+
locale,
|
|
137
|
+
minValue,
|
|
138
|
+
maxValue,
|
|
139
|
+
isDateUnavailable,
|
|
140
|
+
isDisabled
|
|
141
|
+
]);
|
|
142
|
+
let title = picker === "year" ? `${decadeStart}-${decadeStart + 9}` : String(focusedYear);
|
|
143
|
+
let cellRefs = useRef([]);
|
|
144
|
+
let [focusedIndex, setFocusedIndex] = useState(() => {
|
|
145
|
+
let idx = cells.findIndex((cell) => cell.isSelected);
|
|
146
|
+
return idx >= 0 ? idx : 0;
|
|
147
|
+
});
|
|
148
|
+
useEffect(() => {
|
|
149
|
+
if (autoFocus) cellRefs.current[focusedIndex]?.focus();
|
|
150
|
+
}, []);
|
|
151
|
+
let moveFocus = (index) => {
|
|
152
|
+
let clamped = Math.max(0, Math.min(cells.length - 1, index));
|
|
153
|
+
setFocusedIndex(clamped);
|
|
154
|
+
cellRefs.current[clamped]?.focus();
|
|
155
|
+
};
|
|
156
|
+
let onKeyDown = (e) => {
|
|
157
|
+
switch (e.key) {
|
|
158
|
+
case "ArrowRight":
|
|
159
|
+
moveFocus(focusedIndex + 1);
|
|
160
|
+
break;
|
|
161
|
+
case "ArrowLeft":
|
|
162
|
+
moveFocus(focusedIndex - 1);
|
|
163
|
+
break;
|
|
164
|
+
case "ArrowDown":
|
|
165
|
+
moveFocus(focusedIndex + cols);
|
|
166
|
+
break;
|
|
167
|
+
case "ArrowUp":
|
|
168
|
+
moveFocus(focusedIndex - cols);
|
|
169
|
+
break;
|
|
170
|
+
case "Home":
|
|
171
|
+
moveFocus(0);
|
|
172
|
+
break;
|
|
173
|
+
case "End":
|
|
174
|
+
moveFocus(cells.length - 1);
|
|
175
|
+
break;
|
|
176
|
+
default: return;
|
|
177
|
+
}
|
|
178
|
+
e.preventDefault();
|
|
179
|
+
};
|
|
180
|
+
return /* @__PURE__ */ jsxs(PeriodCalendarElement, { children: [/* @__PURE__ */ jsxs(PeriodHeaderElement, { children: [/* @__PURE__ */ jsx(_Title, {
|
|
181
|
+
level: 6,
|
|
182
|
+
preset: "h6",
|
|
183
|
+
children: title
|
|
184
|
+
}), /* @__PURE__ */ jsxs(Space, {
|
|
185
|
+
gap: ".5x",
|
|
186
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
187
|
+
"data-popover-keep": true,
|
|
188
|
+
size: "xsmall",
|
|
189
|
+
"aria-label": "Previous",
|
|
190
|
+
icon: /* @__PURE__ */ jsx(LeftIcon, {}),
|
|
191
|
+
isDisabled,
|
|
192
|
+
onPress: () => setFocusedYear((year) => year - step)
|
|
193
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
194
|
+
"data-popover-keep": true,
|
|
195
|
+
size: "xsmall",
|
|
196
|
+
"aria-label": "Next",
|
|
197
|
+
icon: /* @__PURE__ */ jsx(RightIcon, {}),
|
|
198
|
+
isDisabled,
|
|
199
|
+
onPress: () => setFocusedYear((year) => year + step)
|
|
200
|
+
})]
|
|
201
|
+
})] }), /* @__PURE__ */ jsx(PeriodGridElement, {
|
|
202
|
+
role: "grid",
|
|
203
|
+
styles: { gridColumns: `repeat(${cols}, 1fr)` },
|
|
204
|
+
onKeyDown,
|
|
205
|
+
children: cells.map((cell, i) => /* @__PURE__ */ jsx(PeriodCellElement, {
|
|
206
|
+
ref: (el) => {
|
|
207
|
+
cellRefs.current[i] = el;
|
|
208
|
+
},
|
|
209
|
+
type: "button",
|
|
210
|
+
tabIndex: i === focusedIndex ? 0 : -1,
|
|
211
|
+
disabled: cell.isDisabled,
|
|
212
|
+
"aria-pressed": cell.isSelected,
|
|
213
|
+
mods: {
|
|
214
|
+
selected: cell.isSelected,
|
|
215
|
+
outside: cell.isOutside,
|
|
216
|
+
disabled: cell.isDisabled
|
|
217
|
+
},
|
|
218
|
+
onFocus: () => setFocusedIndex(i),
|
|
219
|
+
onClick: () => {
|
|
220
|
+
if (!cell.isDisabled) onChange?.(cell.date);
|
|
221
|
+
},
|
|
222
|
+
children: cell.label
|
|
223
|
+
}, cell.key))
|
|
224
|
+
})] });
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
//#endregion
|
|
228
|
+
export { PeriodCalendar };
|
|
229
|
+
//# sourceMappingURL=PeriodCalendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeriodCalendar.js","names":["Title"],"sources":["../../../../src/components/other/Calendar/PeriodCalendar.tsx"],"sourcesContent":["import { CalendarDate, getLocalTimeZone, today } from '@internationalized/date';\nimport { tasty } from '@tenphi/tasty';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { DateValue, useDateFormatter, useLocale } from 'react-aria';\n\nimport { LeftIcon, RightIcon } from '../../../icons';\nimport { useProviderProps } from '../../../provider';\nimport { Button } from '../../actions';\nimport { Title } from '../../content/Title';\nimport {\n getQuarter,\n PickerType,\n snapToPeriod,\n} from '../../fields/DatePicker/period';\nimport { Space } from '../../layout/Space';\n\nconst PeriodCalendarElement = tasty({\n styles: {\n padding: '1x',\n gap: '1x',\n width: 'min 30x',\n },\n});\n\nconst PeriodHeaderElement = tasty({\n styles: {\n display: 'flex',\n placeContent: 'center space-between',\n placeItems: 'center',\n gap: '1.5x',\n },\n});\n\nconst PeriodGridElement = tasty({\n styles: {\n display: 'grid',\n gap: '1bw',\n padding: '.5x top',\n },\n});\n\nconst PeriodCellElement = tasty({\n as: 'button',\n 'data-popover-keep': true,\n styles: {\n preset: 't3m',\n display: 'grid',\n placeItems: 'center',\n height: '5x',\n padding: '1x',\n border: 0,\n fill: {\n '': '#primary.0',\n ':hover': '#primary.16',\n pressed: '#primary.10',\n\n selected: '#primary',\n 'selected & :hover': '#primary',\n\n disabled: '#primary.0',\n },\n color: {\n '': '#dark',\n outside: '#dark.30',\n selected: '#white',\n disabled: '#dark.30',\n },\n outline: {\n '': '1bw #primary-text.0',\n focused: '1bw #primary-text',\n },\n outlineOffset: 0.5,\n radius: true,\n cursor: {\n '': 'pointer',\n disabled: 'not-allowed',\n },\n },\n});\n\n// picker → grid columns\nconst COLUMNS: Record<'month' | 'quarter' | 'year', number> = {\n month: 3,\n quarter: 4,\n year: 3,\n};\n\nexport interface CubePeriodCalendarProps {\n /** Which non-day period this panel selects. */\n picker: 'month' | 'quarter' | 'year';\n value?: DateValue | null;\n onChange?: (date: CalendarDate) => void;\n minValue?: DateValue | null;\n maxValue?: DateValue | null;\n isDateUnavailable?: (date: DateValue) => boolean;\n isDisabled?: boolean;\n autoFocus?: boolean;\n}\n\ninterface Cell {\n key: string;\n label: string;\n date: CalendarDate;\n isSelected: boolean;\n isDisabled: boolean;\n isOutside: boolean;\n}\n\nexport function PeriodCalendar(props: CubePeriodCalendarProps) {\n props = useProviderProps(props);\n\n let {\n picker,\n value,\n onChange,\n minValue,\n maxValue,\n isDateUnavailable,\n isDisabled,\n autoFocus,\n } = props;\n\n let { locale } = useLocale();\n let monthFormatter = useDateFormatter({ month: 'short', timeZone: 'UTC' });\n\n let selected = value ?? null;\n let selectedYear = selected?.year ?? null;\n let selectedMonth = selected?.month ?? null;\n\n let [focusedYear, setFocusedYear] = useState(\n () => selectedYear ?? today(getLocalTimeZone()).year,\n );\n\n let cols = COLUMNS[picker];\n let step = picker === 'year' ? 10 : 1;\n let decadeStart = Math.floor(focusedYear / 10) * 10;\n\n let isPeriodDisabled = (date: CalendarDate) => {\n if (isDisabled) return true;\n if (minValue && date.compare(snapToPeriod(minValue, picker, locale)) < 0) {\n return true;\n }\n if (maxValue && date.compare(snapToPeriod(maxValue, picker, locale)) > 0) {\n return true;\n }\n\n return isDateUnavailable?.(date) ?? false;\n };\n\n let cells = useMemo<Cell[]>(() => {\n if (picker === 'month') {\n return Array.from({ length: 12 }, (_, m) => {\n let date = new CalendarDate(focusedYear, m + 1, 1);\n\n return {\n key: `m-${m}`,\n label: monthFormatter.format(new Date(Date.UTC(2021, m, 15))),\n date,\n isSelected: selectedYear === focusedYear && selectedMonth === m + 1,\n isDisabled: isPeriodDisabled(date),\n isOutside: false,\n };\n });\n }\n\n if (picker === 'quarter') {\n return Array.from({ length: 4 }, (_, q) => {\n let date = new CalendarDate(focusedYear, q * 3 + 1, 1);\n\n return {\n key: `q-${q}`,\n label: `Q${q + 1}`,\n date,\n isSelected:\n selectedYear === focusedYear &&\n selectedMonth != null &&\n getQuarter(selectedMonth) === q + 1,\n isDisabled: isPeriodDisabled(date),\n isOutside: false,\n };\n });\n }\n\n // year: render 12 cells — one leading + a decade + one trailing.\n return Array.from({ length: 12 }, (_, i) => {\n let year = decadeStart - 1 + i;\n let date = new CalendarDate(year, 1, 1);\n\n return {\n key: `y-${year}`,\n label: String(year),\n date,\n isSelected: selectedYear === year,\n isDisabled: isPeriodDisabled(date),\n isOutside: year < decadeStart || year > decadeStart + 9,\n };\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [\n picker,\n focusedYear,\n decadeStart,\n selectedYear,\n selectedMonth,\n monthFormatter,\n locale,\n minValue,\n maxValue,\n isDateUnavailable,\n isDisabled,\n ]);\n\n let title =\n picker === 'year'\n ? `${decadeStart}-${decadeStart + 9}`\n : String(focusedYear);\n\n let cellRefs = useRef<Array<HTMLButtonElement | null>>([]);\n let [focusedIndex, setFocusedIndex] = useState(() => {\n let idx = cells.findIndex((cell) => cell.isSelected);\n\n return idx >= 0 ? idx : 0;\n });\n\n useEffect(() => {\n if (autoFocus) {\n cellRefs.current[focusedIndex]?.focus();\n }\n // Focus only on mount.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n let moveFocus = (index: number) => {\n let clamped = Math.max(0, Math.min(cells.length - 1, index));\n setFocusedIndex(clamped);\n cellRefs.current[clamped]?.focus();\n };\n\n let onKeyDown = (e: React.KeyboardEvent) => {\n switch (e.key) {\n case 'ArrowRight':\n moveFocus(focusedIndex + 1);\n break;\n case 'ArrowLeft':\n moveFocus(focusedIndex - 1);\n break;\n case 'ArrowDown':\n moveFocus(focusedIndex + cols);\n break;\n case 'ArrowUp':\n moveFocus(focusedIndex - cols);\n break;\n case 'Home':\n moveFocus(0);\n break;\n case 'End':\n moveFocus(cells.length - 1);\n break;\n default:\n return;\n }\n e.preventDefault();\n };\n\n return (\n <PeriodCalendarElement>\n <PeriodHeaderElement>\n <Title level={6} preset=\"h6\">\n {title}\n </Title>\n <Space gap=\".5x\">\n <Button\n data-popover-keep\n size=\"xsmall\"\n aria-label=\"Previous\"\n icon={<LeftIcon />}\n isDisabled={isDisabled}\n onPress={() => setFocusedYear((year) => year - step)}\n />\n <Button\n data-popover-keep\n size=\"xsmall\"\n aria-label=\"Next\"\n icon={<RightIcon />}\n isDisabled={isDisabled}\n onPress={() => setFocusedYear((year) => year + step)}\n />\n </Space>\n </PeriodHeaderElement>\n <PeriodGridElement\n role=\"grid\"\n styles={{ gridColumns: `repeat(${cols}, 1fr)` }}\n onKeyDown={onKeyDown}\n >\n {cells.map((cell, i) => (\n <PeriodCellElement\n key={cell.key}\n ref={(el: HTMLButtonElement | null) => {\n cellRefs.current[i] = el;\n }}\n type=\"button\"\n tabIndex={i === focusedIndex ? 0 : -1}\n disabled={cell.isDisabled}\n aria-pressed={cell.isSelected}\n mods={{\n selected: cell.isSelected,\n outside: cell.isOutside,\n disabled: cell.isDisabled,\n }}\n onFocus={() => setFocusedIndex(i)}\n onClick={() => {\n if (!cell.isDisabled) onChange?.(cell.date);\n }}\n >\n {cell.label}\n </PeriodCellElement>\n ))}\n </PeriodGridElement>\n </PeriodCalendarElement>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { _Title } from "../../content/Title.js";
|
|
3
3
|
import { useProviderProps } from "../../../provider.js";
|
|
4
4
|
import { Space } from "../../layout/Space.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { chain } from "../../../utils/react/chain.js";
|
|
3
3
|
import { Paragraph } from "../../content/Paragraph.js";
|
|
4
4
|
import { _Title } from "../../content/Title.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { AlertDialogZone } from "./AlertDialogZone.js";
|
|
3
3
|
import { createContext, useContext, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { Portal } from "../../portal/Portal.js";
|
|
3
3
|
import { DialogContainer } from "../Dialog/DialogContainer.js";
|
|
4
4
|
import { _AlertDialog } from "./AlertDialog.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { SlotProvider } from "../../../utils/react/Slots.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { _Modal } from "../Modal/Modal.js";
|
|
3
3
|
import { DialogContext } from "./context.js";
|
|
4
4
|
import { Children, isValidElement, useRef } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { _Title } from "../../content/Title.js";
|
|
3
3
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
4
4
|
import { ButtonGroup } from "../../actions/ButtonGroup/ButtonGroup.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../../utils/react/useLayoutEffect.js";
|
|
3
3
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { usePopoverSync } from "../../../utils/react/usePopoverSync.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
4
4
|
import { DialogContainer } from "./DialogContainer.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { _Overlay } from "./Overlay.js";
|
|
4
4
|
import { _Underlay } from "./Underlay.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { DisplayTransition } from "../../helpers/DisplayTransition/DisplayTransition.js";
|
|
3
3
|
import { Provider, useProviderProps } from "../../../provider.js";
|
|
4
4
|
import { OpenTransitionContext } from "./OpenTransitionContext.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { _Overlay } from "./Overlay.js";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { _Overlay } from "./Overlay.js";
|
|
4
4
|
import { _Underlay } from "./Underlay.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { ItemAction } from "../../actions/ItemAction/ItemAction.js";
|
|
4
4
|
import { createContext, useContext, useMemo } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { Block } from "../../Block.js";
|
|
3
3
|
import { ItemActionProvider } from "../../actions/ItemActionContext.js";
|
|
4
4
|
import { Space } from "../../layout/Space.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { NotificationCard } from "./NotificationCard.js";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../../utils/react/useLayoutEffect.js";
|
|
3
3
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
4
4
|
import { DisplayTransition } from "../../helpers/DisplayTransition/DisplayTransition.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { NotificationContext, PersistentNotificationsContext, ToastContext, useNotificationContext, useToastContext } from "./NotificationContext.js";
|
|
3
3
|
import { OverlayContainer } from "./OverlayContainer.js";
|
|
4
4
|
import { useNotificationState } from "./use-notification-state.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { _Text } from "../../content/Text.js";
|
|
4
4
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
//#region src/components/overlays/Notifications/dismissed-storage.ts
|
|
3
3
|
const STORAGE_KEY = "cube-ui-dismissed-notifications";
|
|
4
4
|
const TTL_MS = 864e5;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useToastContext } from "./NotificationContext.js";
|
|
3
3
|
import { NotificationAction } from "./NotificationAction.js";
|
|
4
4
|
import { NotificationCard } from "./NotificationCard.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { useWarn } from "../../../_internal/hooks/use-warn.js";
|
|
4
4
|
import { useNotificationContext } from "./NotificationContext.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { cleanupAndGetValidIds, saveDismissedId } from "./dismissed-storage.js";
|
|
4
4
|
import { useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { _Item } from "../../content/Item/Item.js";
|
|
3
3
|
import { getThemeIcon } from "./useToast.js";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useToastContext } from "../Notifications/NotificationContext.js";
|
|
3
3
|
import { useProgressToast } from "./useProgressToast.js";
|
|
4
4
|
import { getThemeIcon, useToast } from "./useToast.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { ItemAction } from "../../actions/ItemAction/ItemAction.js";
|
|
4
4
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { CheckIcon } from "../../../icons/CheckIcon.js";
|
|
3
3
|
import { DangerIcon } from "../../../icons/DangerIcon.js";
|
|
4
4
|
import { InfoCircleIcon } from "../../../icons/InfoCircleIcon.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../../utils/react/useLayoutEffect.js";
|
|
4
4
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { _Tooltip } from "./Tooltip.js";
|
|
3
3
|
import { TooltipTrigger } from "./TooltipTrigger.js";
|
|
4
4
|
import { isValidElement, useEffect, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { TooltipContext } from "./context.js";
|
|
3
3
|
import { Block } from "../../Block.js";
|
|
4
4
|
import { _ActiveZone } from "../../content/ActiveZone/ActiveZone.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { usePortal } from "./usePortal.js";
|
|
3
3
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { usePortalContext } from "./PortalProvider.js";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import invariant from "tiny-invariant";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.154.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../_internal/hooks/use-event.js";
|
|
3
3
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
4
4
|
import { ListDropTargetDelegate, ListKeyboardDelegate, mergeProps, useDraggableCollection, useDroppableCollection } from "react-aria";
|