@cube-dev/ui-kit 0.0.0-canary-2f06269 → 0.0.0-canary-8a29f3f
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 +10 -0
- package/cjs/_internal/hooks/index.js +1 -1
- package/cjs/_internal/hooks/use-chained-callback.js +1 -1
- package/cjs/_internal/hooks/use-deprecation-warning.js +1 -1
- package/cjs/_internal/hooks/use-effect-once.js +1 -1
- package/cjs/_internal/hooks/use-event.js +1 -1
- package/cjs/_internal/hooks/use-is-first-render.js +1 -1
- package/cjs/_internal/hooks/use-sync-ref.js +1 -1
- package/cjs/_internal/hooks/use-timer/index.js +1 -1
- package/cjs/_internal/hooks/use-timer/timer.js +1 -1
- package/cjs/_internal/hooks/use-timer/use-timer.js +1 -1
- package/cjs/_internal/hooks/use-update-effect.js +1 -1
- package/cjs/_internal/hooks/use-warn.js +1 -1
- package/cjs/_internal/index.js +1 -1
- package/cjs/components/Base.js +1 -1
- package/cjs/components/Block.js +1 -1
- package/cjs/components/GlobalStyles.js +1 -1
- package/cjs/components/GridProvider.js +1 -1
- package/cjs/components/HiddenInput.js +1 -1
- package/cjs/components/OpenTrasition.js +1 -1
- package/cjs/components/Root.js +3 -3
- package/cjs/components/actions/Action.js +1 -1
- package/cjs/components/actions/Button/Button.js +1 -1
- package/cjs/components/actions/Button/Submit.js +1 -1
- package/cjs/components/actions/Button/index.js +1 -1
- package/cjs/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/cjs/components/actions/index.js +1 -1
- package/cjs/components/actions/use-action.js +6 -7
- package/cjs/components/content/ActiveZone/ActiveZone.js +6 -7
- package/cjs/components/content/Alert/Alert.js +1 -1
- package/cjs/components/content/Alert/index.js +1 -1
- package/cjs/components/content/Alert/types.js +1 -1
- package/cjs/components/content/Alert/use-alert.js +1 -1
- package/cjs/components/content/Avatar/Avatar.js +1 -1
- package/cjs/components/content/Badge/Badge.js +1 -1
- package/cjs/components/content/Card/Card.js +1 -1
- package/cjs/components/content/Content.js +1 -1
- package/cjs/components/content/CopyPasteBlock/CopyPasteBlock.js +3 -3
- package/cjs/components/content/CopyPasteBlock/index.js +1 -1
- package/cjs/components/content/CopySnippet/CopySnippet.js +1 -1
- package/cjs/components/content/CopySnippet/index.js +1 -1
- package/cjs/components/content/Divider.js +1 -1
- package/cjs/components/content/Footer.js +1 -1
- package/cjs/components/content/Header.js +1 -1
- package/cjs/components/content/Paragraph.js +1 -1
- package/cjs/components/content/Placeholder/Placeholder.js +1 -1
- package/cjs/components/content/PrismCode/PrismCode.js +1 -1
- package/cjs/components/content/Result/Result.js +1 -1
- package/cjs/components/content/Skeleton/Skeleton.js +1 -1
- package/cjs/components/content/Tag/Tag.js +1 -1
- package/cjs/components/content/Text.js +1 -1
- package/cjs/components/content/Title.js +1 -1
- package/cjs/components/forms/Checkbox/Checkbox.js +9 -10
- package/cjs/components/forms/Checkbox/CheckboxGroup.js +5 -5
- package/cjs/components/forms/Checkbox/context.js +1 -1
- package/cjs/components/forms/DatePicker/DateInput.js +8 -9
- package/cjs/components/forms/DatePicker/DateInputBase.js +6 -5
- package/cjs/components/forms/DatePicker/DatePicker.js +7 -9
- package/cjs/components/forms/DatePicker/DatePickerButton.js +1 -1
- package/cjs/components/forms/DatePicker/DatePickerElement.js +1 -1
- package/cjs/components/forms/DatePicker/DatePickerInput.js +20 -10
- package/cjs/components/forms/DatePicker/DatePickerSegment.js +3 -3
- package/cjs/components/forms/DatePicker/DateRangePicker.js +7 -9
- package/cjs/components/forms/DatePicker/DateRangeSeparatedPicker.js +124 -0
- package/cjs/components/forms/DatePicker/TimeInput.js +7 -8
- package/cjs/components/forms/DatePicker/index.js +1 -1
- package/cjs/components/forms/DatePicker/intl.js +1 -1
- package/cjs/components/forms/DatePicker/parseDate.js +1 -1
- package/cjs/components/forms/DatePicker/props.js +1 -1
- package/cjs/components/forms/DatePicker/utils.js +53 -49
- package/cjs/components/forms/FieldWrapper/FieldWrapper.js +1 -1
- package/cjs/components/forms/FieldWrapper/extract-field-wrapper-props.js +1 -1
- package/cjs/components/forms/FieldWrapper/index.js +1 -1
- package/cjs/components/forms/FieldWrapper/types.js +1 -1
- package/cjs/components/forms/FileInput/FileInput.js +1 -1
- package/cjs/components/forms/Form/Field.js +1 -1
- package/cjs/components/forms/Form/Form.js +1 -1
- package/cjs/components/forms/Form/Submit/Submit.js +1 -1
- package/cjs/components/forms/Form/Submit/index.js +1 -1
- package/cjs/components/forms/Form/SubmitError.js +1 -1
- package/cjs/components/forms/Form/index.js +1 -1
- package/cjs/components/forms/Form/types.js +1 -1
- package/cjs/components/forms/Form/use-field/index.js +1 -1
- package/cjs/components/forms/Form/use-field/types.js +1 -1
- package/cjs/components/forms/Form/use-field/use-field-props.js +1 -1
- package/cjs/components/forms/Form/use-field/use-field.js +1 -1
- package/cjs/components/forms/Form/use-form.js +1 -1
- package/cjs/components/forms/Form/validation.js +1 -1
- package/cjs/components/forms/Input/Input.js +1 -1
- package/cjs/components/forms/Input/index.js +1 -1
- package/cjs/components/forms/Label.js +1 -1
- package/cjs/components/forms/NumberInput/NumberInput.js +6 -7
- package/cjs/components/forms/NumberInput/StepButton.js +1 -1
- package/cjs/components/forms/PasswordInput/PasswordInput.js +3 -3
- package/cjs/components/forms/RadioGroup/Radio.js +6 -7
- package/cjs/components/forms/RadioGroup/RadioGroup.js +5 -5
- package/cjs/components/forms/RadioGroup/context.js +1 -1
- package/cjs/components/forms/SearchInput/SearchInput.js +5 -5
- package/cjs/components/forms/Slider/Gradation.js +1 -1
- package/cjs/components/forms/Slider/Header.js +1 -1
- package/cjs/components/forms/Slider/RangeSlider.js +1 -1
- package/cjs/components/forms/Slider/Slider.js +1 -1
- package/cjs/components/forms/Slider/SliderBase.js +6 -7
- package/cjs/components/forms/Slider/SliderInput.js +1 -1
- package/cjs/components/forms/Slider/SliderThumb.js +5 -7
- package/cjs/components/forms/Slider/SliderTrack.js +1 -1
- package/cjs/components/forms/Slider/elements.js +1 -1
- package/cjs/components/forms/Slider/index.js +1 -1
- package/cjs/components/forms/Slider/types.js +1 -1
- package/cjs/components/forms/Switch/Switch.js +8 -9
- package/cjs/components/forms/TextArea/TextArea.js +3 -3
- package/cjs/components/forms/TextInput/TextInput.js +3 -3
- package/cjs/components/forms/TextInput/TextInputBase.js +5 -5
- package/cjs/components/forms/index.js +1 -1
- package/cjs/components/forms/wrapper.js +1 -1
- package/cjs/components/layout/Flex.js +1 -1
- package/cjs/components/layout/Flow.js +1 -1
- package/cjs/components/layout/Grid.js +1 -1
- package/cjs/components/layout/Prefix.js +1 -1
- package/cjs/components/layout/Space.js +1 -1
- package/cjs/components/layout/Suffix.js +1 -1
- package/cjs/components/navigation/LegacyTabs/LegacyTabs.js +1 -1
- package/cjs/components/navigation/Link/Link.js +1 -1
- package/cjs/components/organisms/FileTabs/FileTabs.js +1 -1
- package/cjs/components/organisms/Modal/Modal.js +1 -1
- package/cjs/components/organisms/StatsCard/StatsCard.js +1 -1
- package/cjs/components/other/Base64Upload/Base64Upload.js +1 -1
- package/cjs/components/other/Calendar/Calendar.js +7 -8
- package/cjs/components/other/Calendar/CalendarCell.js +9 -5
- package/cjs/components/other/Calendar/CalendarGrid.js +5 -6
- package/cjs/components/other/Calendar/RangeCalendar.js +6 -7
- package/cjs/components/other/CloudLogo/CloudLogo.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/cjs/components/overlays/AlertDialog/index.js +1 -1
- package/cjs/components/overlays/AlertDialog/types.js +1 -1
- package/cjs/components/overlays/Dialog/Dialog.js +6 -7
- package/cjs/components/overlays/Dialog/DialogContainer.js +1 -1
- package/cjs/components/overlays/Dialog/DialogForm.js +1 -1
- package/cjs/components/overlays/Dialog/DialogTrigger.js +6 -6
- package/cjs/components/overlays/Dialog/context.js +1 -1
- package/cjs/components/overlays/Dialog/index.js +1 -1
- package/cjs/components/overlays/Modal/Modal.js +5 -5
- package/cjs/components/overlays/Modal/OpenTransition.js +1 -1
- package/cjs/components/overlays/Modal/Overlay.js +1 -1
- package/cjs/components/overlays/Modal/Popover.js +4 -4
- package/cjs/components/overlays/Modal/Tray.js +5 -5
- package/cjs/components/overlays/Modal/Underlay.js +1 -1
- package/cjs/components/overlays/Modal/index.js +1 -1
- package/cjs/components/overlays/Modal/types.js +1 -1
- package/cjs/components/overlays/NewNotifications/Bar/FloatingNotification.js +1 -1
- package/cjs/components/overlays/NewNotifications/Bar/NotificationsBar.js +6 -6
- package/cjs/components/overlays/NewNotifications/Bar/TransitionComponent.js +1 -1
- package/cjs/components/overlays/NewNotifications/Bar/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +3 -3
- package/cjs/components/overlays/NewNotifications/Dialog/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/Notification.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationAction.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationView.js +4 -5
- package/cjs/components/overlays/NewNotifications/NotificationView/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/types.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +3 -3
- package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsList/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsList/types.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/types.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notification-list-item.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-api.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-list.js +3 -3
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-observer.js +1 -1
- package/cjs/components/overlays/NewNotifications/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/types.js +1 -1
- package/cjs/components/overlays/Notification/Notification.js +1 -1
- package/cjs/components/overlays/OverlayWrapper.js +1 -1
- package/cjs/components/overlays/Toasts/Toast.js +1 -1
- package/cjs/components/overlays/Toasts/index.js +1 -1
- package/cjs/components/overlays/Toasts/types.js +1 -1
- package/cjs/components/overlays/Toasts/use-toasts-api.js +1 -1
- package/cjs/components/overlays/Tooltip/Tooltip.js +3 -3
- package/cjs/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/cjs/components/overlays/Tooltip/TooltipTrigger.js +6 -7
- package/cjs/components/overlays/Tooltip/context.js +1 -1
- package/cjs/components/pickers/ComboBox/ComboBox.js +14 -19
- package/cjs/components/pickers/Menu/Menu.js +7 -8
- package/cjs/components/pickers/Menu/MenuButton.js +1 -1
- package/cjs/components/pickers/Menu/MenuItem.js +5 -7
- package/cjs/components/pickers/Menu/MenuSection.js +3 -3
- package/cjs/components/pickers/Menu/MenuTrigger.js +7 -8
- package/cjs/components/pickers/Menu/context.js +1 -1
- package/cjs/components/pickers/Menu/styled.js +1 -1
- package/cjs/components/pickers/Select/Select.js +17 -24
- package/cjs/components/portal/Portal.js +1 -1
- package/cjs/components/portal/PortalProvider.js +1 -1
- package/cjs/components/portal/index.js +1 -1
- package/cjs/components/portal/storybook/templates/CustomRoot.js +1 -1
- package/cjs/components/portal/storybook/templates/PortalOrder.js +1 -1
- package/cjs/components/portal/storybook/templates/basic.js +1 -1
- package/cjs/components/portal/storybook/templates/index.js +1 -1
- package/cjs/components/portal/types.js +1 -1
- package/cjs/components/portal/usePortal.js +1 -1
- package/cjs/components/shared/InvalidIcon.js +1 -1
- package/cjs/components/shared/ValidIcon.js +1 -1
- package/cjs/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/cjs/components/status/LoadingAnimation/index.js +1 -1
- package/cjs/components/status/Spin/Cube.js +1 -1
- package/cjs/components/status/Spin/InternalSpinner.js +1 -1
- package/cjs/components/status/Spin/Spin.js +1 -1
- package/cjs/components/status/Spin/SpinsContainer.js +1 -1
- package/cjs/components/status/Spin/index.js +1 -1
- package/cjs/components/status/Spin/types.js +1 -1
- package/cjs/components/status/index.js +1 -1
- package/cjs/data/themes.js +1 -1
- package/cjs/icons/Attention.js +1 -1
- package/cjs/icons/Cross.js +1 -1
- package/cjs/icons/Danger.js +1 -1
- package/cjs/icons/Success.js +1 -1
- package/cjs/icons/index.js +1 -1
- package/cjs/index.js +6 -6
- package/cjs/provider.js +1 -1
- package/cjs/providers/TrackingProvider.js +1 -1
- package/cjs/services/notification.js +1 -1
- package/cjs/shared/form.js +1 -1
- package/cjs/shared/index.js +1 -1
- package/cjs/stories/FormFieldArgs.js +1 -1
- package/cjs/stories/components/ConfirmDeletionDialogForm.js +1 -1
- package/cjs/stories/components/DialogFormApp.js +1 -1
- package/cjs/stories/components/StyledButton.js +1 -1
- package/cjs/stories/lists/baseProps.js +1 -1
- package/cjs/tasty/index.js +1 -1
- package/cjs/tasty/providers/BreakpointsProvider.js +1 -1
- package/cjs/tasty/styles/align.js +1 -1
- package/cjs/tasty/styles/border.js +1 -1
- package/cjs/tasty/styles/boxShadow.combinator.js +1 -1
- package/cjs/tasty/styles/color.js +1 -1
- package/cjs/tasty/styles/createStyle.js +1 -1
- package/cjs/tasty/styles/dimension.js +1 -1
- package/cjs/tasty/styles/display.js +1 -1
- package/cjs/tasty/styles/fill.js +1 -1
- package/cjs/tasty/styles/flow.js +1 -1
- package/cjs/tasty/styles/font.js +1 -1
- package/cjs/tasty/styles/fontStyle.js +1 -1
- package/cjs/tasty/styles/gap.js +1 -1
- package/cjs/tasty/styles/groupRadius.js +1 -1
- package/cjs/tasty/styles/height.js +1 -1
- package/cjs/tasty/styles/index.js +1 -1
- package/cjs/tasty/styles/justify.js +1 -1
- package/cjs/tasty/styles/list.js +1 -1
- package/cjs/tasty/styles/margin.js +1 -1
- package/cjs/tasty/styles/marginBlock.js +1 -1
- package/cjs/tasty/styles/marginInline.js +1 -1
- package/cjs/tasty/styles/outline.js +1 -1
- package/cjs/tasty/styles/padding.js +1 -1
- package/cjs/tasty/styles/paddingBlock.js +1 -1
- package/cjs/tasty/styles/paddingInline.js +1 -1
- package/cjs/tasty/styles/predefined.js +1 -1
- package/cjs/tasty/styles/preset.js +1 -1
- package/cjs/tasty/styles/radius.js +1 -1
- package/cjs/tasty/styles/reset.js +1 -1
- package/cjs/tasty/styles/shadow.js +1 -1
- package/cjs/tasty/styles/styledScrollbar.js +1 -1
- package/cjs/tasty/styles/transition.js +1 -1
- package/cjs/tasty/styles/types.js +1 -1
- package/cjs/tasty/styles/width.js +1 -1
- package/cjs/tasty/tasty.js +1 -1
- package/cjs/tasty/types.js +1 -1
- package/cjs/tasty/utils/cache-wrapper.js +1 -1
- package/cjs/tasty/utils/case-converter.js +1 -1
- package/cjs/tasty/utils/colors.js +1 -1
- package/cjs/tasty/utils/dotize.js +1 -1
- package/cjs/tasty/utils/filterBaseProps.js +1 -1
- package/cjs/tasty/utils/getDisplayName.js +1 -1
- package/cjs/tasty/utils/index.js +1 -1
- package/cjs/tasty/utils/mergeStyles.js +1 -1
- package/cjs/tasty/utils/modAttrs.js +1 -1
- package/cjs/tasty/utils/renderStyles.js +1 -1
- package/cjs/tasty/utils/responsive.js +1 -1
- package/cjs/tasty/utils/string.js +1 -1
- package/cjs/tasty/utils/styles.js +1 -1
- package/cjs/tasty/utils/warnings.js +1 -1
- package/cjs/tokens.js +1 -1
- package/cjs/type-checks.js +1 -1
- package/cjs/utils/ResizeSensor.js +1 -1
- package/cjs/utils/modules.js +1 -1
- package/cjs/utils/promise.js +1 -1
- package/cjs/utils/random.js +1 -1
- package/cjs/utils/range.js +1 -1
- package/cjs/utils/react/Slots.js +1 -1
- package/cjs/utils/react/chain.js +1 -1
- package/cjs/utils/react/index.js +1 -1
- package/cjs/utils/react/interactions.js +6 -4
- package/cjs/utils/react/isTextOnly.js +1 -1
- package/cjs/utils/react/mapProps.js +1 -1
- package/cjs/utils/react/mergeProps.js +1 -1
- package/cjs/utils/react/nullableValue.js +1 -1
- package/cjs/utils/react/useCombinedRefs.js +1 -1
- package/cjs/utils/react/useId.js +1 -1
- package/cjs/utils/react/useLayoutEffect.js +1 -1
- package/cjs/utils/react/useViewportSize.js +1 -1
- package/cjs/utils/react/wrapNodeIfPlain.js +1 -1
- package/cjs/utils/transitions.js +1 -1
- package/cjs/utils/tree.js +1 -1
- package/cjs/utils/warnings.js +1 -1
- package/es/_internal/hooks/index.js +1 -1
- package/es/_internal/hooks/use-chained-callback.js +1 -1
- package/es/_internal/hooks/use-deprecation-warning.js +1 -1
- package/es/_internal/hooks/use-effect-once.js +1 -1
- package/es/_internal/hooks/use-event.js +1 -1
- package/es/_internal/hooks/use-is-first-render.js +1 -1
- package/es/_internal/hooks/use-sync-ref.js +1 -1
- package/es/_internal/hooks/use-timer/index.js +1 -1
- package/es/_internal/hooks/use-timer/timer.js +1 -1
- package/es/_internal/hooks/use-timer/use-timer.js +1 -1
- package/es/_internal/hooks/use-update-effect.js +1 -1
- package/es/_internal/hooks/use-warn.js +1 -1
- package/es/_internal/index.js +1 -1
- package/es/components/Base.js +1 -1
- package/es/components/Block.js +1 -1
- package/es/components/GlobalStyles.js +1 -1
- package/es/components/GridProvider.js +1 -1
- package/es/components/HiddenInput.js +1 -1
- package/es/components/OpenTrasition.js +1 -1
- package/es/components/Root.js +2 -2
- package/es/components/actions/Action.js +1 -1
- package/es/components/actions/Button/Button.js +1 -1
- package/es/components/actions/Button/Submit.js +1 -1
- package/es/components/actions/Button/index.js +1 -1
- package/es/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/es/components/actions/index.js +1 -1
- package/es/components/actions/use-action.js +2 -3
- package/es/components/content/ActiveZone/ActiveZone.js +2 -3
- package/es/components/content/Alert/Alert.js +1 -1
- package/es/components/content/Alert/index.js +1 -1
- package/es/components/content/Alert/types.js +1 -1
- package/es/components/content/Alert/use-alert.js +1 -1
- package/es/components/content/Avatar/Avatar.js +1 -1
- package/es/components/content/Badge/Badge.js +1 -1
- package/es/components/content/Card/Card.js +1 -1
- package/es/components/content/Content.js +1 -1
- package/es/components/content/CopyPasteBlock/CopyPasteBlock.js +2 -2
- package/es/components/content/CopyPasteBlock/index.js +1 -1
- package/es/components/content/CopySnippet/CopySnippet.js +1 -1
- package/es/components/content/CopySnippet/index.js +1 -1
- package/es/components/content/Divider.js +1 -1
- package/es/components/content/Footer.js +1 -1
- package/es/components/content/Header.js +1 -1
- package/es/components/content/Paragraph.js +1 -1
- package/es/components/content/Placeholder/Placeholder.js +1 -1
- package/es/components/content/PrismCode/PrismCode.js +1 -1
- package/es/components/content/Result/Result.js +1 -1
- package/es/components/content/Skeleton/Skeleton.js +1 -1
- package/es/components/content/Tag/Tag.js +1 -1
- package/es/components/content/Text.js +1 -1
- package/es/components/content/Title.js +1 -1
- package/es/components/forms/Checkbox/Checkbox.js +3 -4
- package/es/components/forms/Checkbox/CheckboxGroup.js +3 -3
- package/es/components/forms/Checkbox/context.js +1 -1
- package/es/components/forms/DatePicker/DateInput.js +5 -6
- package/es/components/forms/DatePicker/DateInputBase.js +4 -3
- package/es/components/forms/DatePicker/DatePicker.js +3 -5
- package/es/components/forms/DatePicker/DatePickerButton.js +1 -1
- package/es/components/forms/DatePicker/DatePickerElement.js +1 -1
- package/es/components/forms/DatePicker/DatePickerInput.js +17 -7
- package/es/components/forms/DatePicker/DatePickerSegment.js +2 -2
- package/es/components/forms/DatePicker/DateRangePicker.js +3 -5
- package/es/components/forms/DatePicker/DateRangeSeparatedPicker.js +121 -0
- package/es/components/forms/DatePicker/TimeInput.js +5 -6
- package/es/components/forms/DatePicker/index.js +1 -1
- package/es/components/forms/DatePicker/intl.js +1 -1
- package/es/components/forms/DatePicker/parseDate.js +1 -1
- package/es/components/forms/DatePicker/props.js +1 -1
- package/es/components/forms/DatePicker/utils.js +53 -47
- package/es/components/forms/FieldWrapper/FieldWrapper.js +1 -1
- package/es/components/forms/FieldWrapper/extract-field-wrapper-props.js +1 -1
- package/es/components/forms/FieldWrapper/index.js +1 -1
- package/es/components/forms/FieldWrapper/types.js +1 -1
- package/es/components/forms/FileInput/FileInput.js +1 -1
- package/es/components/forms/Form/Field.js +1 -1
- package/es/components/forms/Form/Form.js +1 -1
- package/es/components/forms/Form/Submit/Submit.js +1 -1
- package/es/components/forms/Form/Submit/index.js +1 -1
- package/es/components/forms/Form/SubmitError.js +1 -1
- package/es/components/forms/Form/index.js +1 -1
- package/es/components/forms/Form/types.js +1 -1
- package/es/components/forms/Form/use-field/index.js +1 -1
- package/es/components/forms/Form/use-field/types.js +1 -1
- package/es/components/forms/Form/use-field/use-field-props.js +1 -1
- package/es/components/forms/Form/use-field/use-field.js +1 -1
- package/es/components/forms/Form/use-form.js +1 -1
- package/es/components/forms/Form/validation.js +1 -1
- package/es/components/forms/Input/Input.js +1 -1
- package/es/components/forms/Input/index.js +1 -1
- package/es/components/forms/Label.js +1 -1
- package/es/components/forms/NumberInput/NumberInput.js +3 -4
- package/es/components/forms/NumberInput/StepButton.js +1 -1
- package/es/components/forms/PasswordInput/PasswordInput.js +2 -2
- package/es/components/forms/RadioGroup/Radio.js +2 -3
- package/es/components/forms/RadioGroup/RadioGroup.js +3 -3
- package/es/components/forms/RadioGroup/context.js +1 -1
- package/es/components/forms/SearchInput/SearchInput.js +3 -3
- package/es/components/forms/Slider/Gradation.js +1 -1
- package/es/components/forms/Slider/Header.js +1 -1
- package/es/components/forms/Slider/RangeSlider.js +1 -1
- package/es/components/forms/Slider/Slider.js +1 -1
- package/es/components/forms/Slider/SliderBase.js +3 -4
- package/es/components/forms/Slider/SliderInput.js +1 -1
- package/es/components/forms/Slider/SliderThumb.js +2 -4
- package/es/components/forms/Slider/SliderTrack.js +1 -1
- package/es/components/forms/Slider/elements.js +1 -1
- package/es/components/forms/Slider/index.js +1 -1
- package/es/components/forms/Slider/types.js +1 -1
- package/es/components/forms/Switch/Switch.js +3 -4
- package/es/components/forms/TextArea/TextArea.js +2 -2
- package/es/components/forms/TextInput/TextInput.js +2 -2
- package/es/components/forms/TextInput/TextInputBase.js +2 -2
- package/es/components/forms/index.js +1 -1
- package/es/components/forms/wrapper.js +1 -1
- package/es/components/layout/Flex.js +1 -1
- package/es/components/layout/Flow.js +1 -1
- package/es/components/layout/Grid.js +1 -1
- package/es/components/layout/Prefix.js +1 -1
- package/es/components/layout/Space.js +1 -1
- package/es/components/layout/Suffix.js +1 -1
- package/es/components/navigation/LegacyTabs/LegacyTabs.js +1 -1
- package/es/components/navigation/Link/Link.js +1 -1
- package/es/components/organisms/FileTabs/FileTabs.js +1 -1
- package/es/components/organisms/Modal/Modal.js +1 -1
- package/es/components/organisms/StatsCard/StatsCard.js +1 -1
- package/es/components/other/Base64Upload/Base64Upload.js +1 -1
- package/es/components/other/Calendar/Calendar.js +4 -5
- package/es/components/other/Calendar/CalendarCell.js +8 -4
- package/es/components/other/Calendar/CalendarGrid.js +3 -4
- package/es/components/other/Calendar/RangeCalendar.js +3 -4
- package/es/components/other/CloudLogo/CloudLogo.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/es/components/overlays/AlertDialog/index.js +1 -1
- package/es/components/overlays/AlertDialog/types.js +1 -1
- package/es/components/overlays/Dialog/Dialog.js +3 -4
- package/es/components/overlays/Dialog/DialogContainer.js +1 -1
- package/es/components/overlays/Dialog/DialogForm.js +1 -1
- package/es/components/overlays/Dialog/DialogTrigger.js +3 -3
- package/es/components/overlays/Dialog/context.js +1 -1
- package/es/components/overlays/Dialog/index.js +1 -1
- package/es/components/overlays/Modal/Modal.js +2 -2
- package/es/components/overlays/Modal/OpenTransition.js +1 -1
- package/es/components/overlays/Modal/Overlay.js +1 -1
- package/es/components/overlays/Modal/Popover.js +2 -2
- package/es/components/overlays/Modal/Tray.js +2 -2
- package/es/components/overlays/Modal/Underlay.js +1 -1
- package/es/components/overlays/Modal/index.js +1 -1
- package/es/components/overlays/Modal/types.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/FloatingNotification.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/NotificationsBar.js +4 -4
- package/es/components/overlays/NewNotifications/Bar/TransitionComponent.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/index.js +1 -1
- package/es/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +2 -2
- package/es/components/overlays/NewNotifications/Dialog/index.js +1 -1
- package/es/components/overlays/NewNotifications/Notification.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationAction.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationView.js +2 -3
- package/es/components/overlays/NewNotifications/NotificationView/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/types.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +2 -2
- package/es/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/types.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/index.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/types.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notification-list-item.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-api.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-list.js +2 -2
- package/es/components/overlays/NewNotifications/hooks/use-notifications-observer.js +1 -1
- package/es/components/overlays/NewNotifications/index.js +1 -1
- package/es/components/overlays/NewNotifications/types.js +1 -1
- package/es/components/overlays/Notification/Notification.js +1 -1
- package/es/components/overlays/OverlayWrapper.js +1 -1
- package/es/components/overlays/Toasts/Toast.js +1 -1
- package/es/components/overlays/Toasts/index.js +1 -1
- package/es/components/overlays/Toasts/types.js +1 -1
- package/es/components/overlays/Toasts/use-toasts-api.js +1 -1
- package/es/components/overlays/Tooltip/Tooltip.js +2 -2
- package/es/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/es/components/overlays/Tooltip/TooltipTrigger.js +3 -4
- package/es/components/overlays/Tooltip/context.js +1 -1
- package/es/components/pickers/ComboBox/ComboBox.js +3 -8
- package/es/components/pickers/Menu/Menu.js +3 -4
- package/es/components/pickers/Menu/MenuButton.js +1 -1
- package/es/components/pickers/Menu/MenuItem.js +2 -4
- package/es/components/pickers/Menu/MenuSection.js +2 -2
- package/es/components/pickers/Menu/MenuTrigger.js +3 -4
- package/es/components/pickers/Menu/context.js +1 -1
- package/es/components/pickers/Menu/styled.js +1 -1
- package/es/components/pickers/Select/Select.js +5 -12
- package/es/components/portal/Portal.js +1 -1
- package/es/components/portal/PortalProvider.js +1 -1
- package/es/components/portal/index.js +1 -1
- package/es/components/portal/storybook/templates/CustomRoot.js +1 -1
- package/es/components/portal/storybook/templates/PortalOrder.js +1 -1
- package/es/components/portal/storybook/templates/basic.js +1 -1
- package/es/components/portal/storybook/templates/index.js +1 -1
- package/es/components/portal/types.js +1 -1
- package/es/components/portal/usePortal.js +1 -1
- package/es/components/shared/InvalidIcon.js +1 -1
- package/es/components/shared/ValidIcon.js +1 -1
- package/es/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/es/components/status/LoadingAnimation/index.js +1 -1
- package/es/components/status/Spin/Cube.js +1 -1
- package/es/components/status/Spin/InternalSpinner.js +1 -1
- package/es/components/status/Spin/Spin.js +1 -1
- package/es/components/status/Spin/SpinsContainer.js +1 -1
- package/es/components/status/Spin/index.js +1 -1
- package/es/components/status/Spin/types.js +1 -1
- package/es/components/status/index.js +1 -1
- package/es/data/themes.js +1 -1
- package/es/icons/Attention.js +1 -1
- package/es/icons/Cross.js +1 -1
- package/es/icons/Danger.js +1 -1
- package/es/icons/Success.js +1 -1
- package/es/icons/index.js +1 -1
- package/es/index.js +3 -3
- package/es/provider.js +1 -1
- package/es/providers/TrackingProvider.js +1 -1
- package/es/services/notification.js +1 -1
- package/es/shared/form.js +1 -1
- package/es/shared/index.js +1 -1
- package/es/stories/FormFieldArgs.js +1 -1
- package/es/stories/components/ConfirmDeletionDialogForm.js +1 -1
- package/es/stories/components/DialogFormApp.js +1 -1
- package/es/stories/components/StyledButton.js +1 -1
- package/es/stories/lists/baseProps.js +1 -1
- package/es/tasty/index.js +1 -1
- package/es/tasty/providers/BreakpointsProvider.js +1 -1
- package/es/tasty/styles/align.js +1 -1
- package/es/tasty/styles/border.js +1 -1
- package/es/tasty/styles/boxShadow.combinator.js +1 -1
- package/es/tasty/styles/color.js +1 -1
- package/es/tasty/styles/createStyle.js +1 -1
- package/es/tasty/styles/dimension.js +1 -1
- package/es/tasty/styles/display.js +1 -1
- package/es/tasty/styles/fill.js +1 -1
- package/es/tasty/styles/flow.js +1 -1
- package/es/tasty/styles/font.js +1 -1
- package/es/tasty/styles/fontStyle.js +1 -1
- package/es/tasty/styles/gap.js +1 -1
- package/es/tasty/styles/groupRadius.js +1 -1
- package/es/tasty/styles/height.js +1 -1
- package/es/tasty/styles/index.js +1 -1
- package/es/tasty/styles/justify.js +1 -1
- package/es/tasty/styles/list.js +1 -1
- package/es/tasty/styles/margin.js +1 -1
- package/es/tasty/styles/marginBlock.js +1 -1
- package/es/tasty/styles/marginInline.js +1 -1
- package/es/tasty/styles/outline.js +1 -1
- package/es/tasty/styles/padding.js +1 -1
- package/es/tasty/styles/paddingBlock.js +1 -1
- package/es/tasty/styles/paddingInline.js +1 -1
- package/es/tasty/styles/predefined.js +1 -1
- package/es/tasty/styles/preset.js +1 -1
- package/es/tasty/styles/radius.js +1 -1
- package/es/tasty/styles/reset.js +1 -1
- package/es/tasty/styles/shadow.js +1 -1
- package/es/tasty/styles/styledScrollbar.js +1 -1
- package/es/tasty/styles/transition.js +1 -1
- package/es/tasty/styles/types.js +1 -1
- package/es/tasty/styles/width.js +1 -1
- package/es/tasty/tasty.js +1 -1
- package/es/tasty/types.js +1 -1
- package/es/tasty/utils/cache-wrapper.js +1 -1
- package/es/tasty/utils/case-converter.js +1 -1
- package/es/tasty/utils/colors.js +1 -1
- package/es/tasty/utils/dotize.js +1 -1
- package/es/tasty/utils/filterBaseProps.js +1 -1
- package/es/tasty/utils/getDisplayName.js +1 -1
- package/es/tasty/utils/index.js +1 -1
- package/es/tasty/utils/mergeStyles.js +1 -1
- package/es/tasty/utils/modAttrs.js +1 -1
- package/es/tasty/utils/renderStyles.js +1 -1
- package/es/tasty/utils/responsive.js +1 -1
- package/es/tasty/utils/string.js +1 -1
- package/es/tasty/utils/styles.js +1 -1
- package/es/tasty/utils/warnings.js +1 -1
- package/es/tokens.js +1 -1
- package/es/type-checks.js +1 -1
- package/es/utils/ResizeSensor.js +1 -1
- package/es/utils/modules.js +1 -1
- package/es/utils/promise.js +1 -1
- package/es/utils/random.js +1 -1
- package/es/utils/range.js +1 -1
- package/es/utils/react/Slots.js +1 -1
- package/es/utils/react/chain.js +1 -1
- package/es/utils/react/index.js +1 -1
- package/es/utils/react/interactions.js +4 -2
- package/es/utils/react/isTextOnly.js +1 -1
- package/es/utils/react/mapProps.js +1 -1
- package/es/utils/react/mergeProps.js +1 -1
- package/es/utils/react/nullableValue.js +1 -1
- package/es/utils/react/useCombinedRefs.js +1 -1
- package/es/utils/react/useId.js +1 -1
- package/es/utils/react/useLayoutEffect.js +1 -1
- package/es/utils/react/useViewportSize.js +1 -1
- package/es/utils/react/wrapNodeIfPlain.js +1 -1
- package/es/utils/transitions.js +1 -1
- package/es/utils/tree.js +1 -1
- package/es/utils/warnings.js +1 -1
- package/package.json +29 -63
- package/types/components/actions/use-action.d.ts +2 -2
- package/types/components/content/ActiveZone/ActiveZone.d.ts +1 -1
- package/types/components/content/CopySnippet/CopySnippet.d.ts +8 -8
- package/types/components/forms/Checkbox/context.d.ts +1 -2
- package/types/components/forms/DatePicker/DatePickerButton.d.ts +4 -4
- package/types/components/forms/DatePicker/DatePickerInput.d.ts +2 -0
- package/types/components/forms/DatePicker/DatePickerSegment.d.ts +1 -1
- package/types/components/forms/DatePicker/DateRangeSeparatedPicker.d.ts +19 -0
- package/types/components/forms/DatePicker/TimeInput.d.ts +21 -2
- package/types/components/forms/DatePicker/props.d.ts +1 -1
- package/types/components/forms/DatePicker/utils.d.ts +1 -4
- package/types/components/forms/NumberInput/NumberInput.d.ts +1 -1
- package/types/components/forms/RadioGroup/Radio.d.ts +12 -6
- package/types/components/forms/RadioGroup/context.d.ts +1 -1
- package/types/components/forms/Slider/Gradation.d.ts +1 -1
- package/types/components/forms/Slider/SliderBase.d.ts +1 -1
- package/types/components/forms/Slider/SliderInput.d.ts +1 -1
- package/types/components/forms/Slider/SliderThumb.d.ts +3 -2
- package/types/components/forms/Slider/SliderTrack.d.ts +1 -1
- package/types/components/forms/TextInput/TextInputBase.d.ts +3 -1
- package/types/components/other/Calendar/Calendar.d.ts +7 -2
- package/types/components/other/Calendar/CalendarCell.d.ts +2 -1
- package/types/components/overlays/Modal/Modal.d.ts +1 -1
- package/types/components/overlays/Modal/Overlay.d.ts +1 -1
- package/types/components/overlays/Modal/Popover.d.ts +1 -1
- package/types/components/overlays/NewNotifications/hooks/types.d.ts +1 -1
- package/types/components/overlays/NewNotifications/hooks/use-notification-list-item.d.ts +1 -1
- package/types/components/overlays/Tooltip/context.d.ts +1 -1
- package/types/components/pickers/ComboBox/ComboBox.d.ts +5 -4
- package/types/components/pickers/Menu/Menu.d.ts +2 -3
- package/types/components/pickers/Menu/MenuItem.d.ts +1 -1
- package/types/components/pickers/Menu/MenuTrigger.d.ts +7 -3
- package/types/components/pickers/Select/Select.d.ts +2 -3
- package/types/index.d.ts +2 -2
- package/types/stories/components/StyledButton.d.ts +4 -4
- package/types/utils/react/interactions.d.ts +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -10,26 +10,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.SliderThumb = void 0;
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
12
|
const react_1 = require("react");
|
|
13
|
-
const
|
|
14
|
-
const interactions_1 = require("@react-aria/interactions");
|
|
15
|
-
const visually_hidden_1 = require("@react-aria/visually-hidden");
|
|
13
|
+
const react_aria_1 = require("react-aria");
|
|
16
14
|
const react_2 = require("../../../utils/react");
|
|
17
15
|
const elements_1 = require("./elements");
|
|
18
16
|
function SliderThumb(props) {
|
|
19
17
|
let { state, inputRef, isDisabled } = props;
|
|
20
18
|
const backupRef = (0, react_1.useRef)(null);
|
|
21
19
|
inputRef = inputRef || backupRef;
|
|
22
|
-
const { thumbProps, inputProps, isDragging, isFocused } = (0,
|
|
20
|
+
const { thumbProps, inputProps, isDragging, isFocused } = (0, react_aria_1.useSliderThumb)({
|
|
23
21
|
...props,
|
|
24
22
|
inputRef,
|
|
25
23
|
}, state);
|
|
26
|
-
const { hoverProps, isHovered } = (0,
|
|
24
|
+
const { hoverProps, isHovered } = (0, react_aria_1.useHover)({ isDisabled });
|
|
27
25
|
return ((0, jsx_runtime_1.jsx)(elements_1.SliderThumbElement, { mods: {
|
|
28
26
|
hovered: isHovered,
|
|
29
27
|
dragged: isDragging,
|
|
30
28
|
focused: !isDragging && isFocused,
|
|
31
29
|
disabled: isDisabled,
|
|
32
|
-
}, ...(0, react_2.mergeProps)(thumbProps, hoverProps), role: "presentation", children: (0, jsx_runtime_1.jsx)(
|
|
30
|
+
}, ...(0, react_2.mergeProps)(thumbProps, hoverProps), role: "presentation", children: (0, jsx_runtime_1.jsx)(react_aria_1.VisuallyHidden, { children: (0, jsx_runtime_1.jsx)("input", { ref: inputRef, ...inputProps }) }) }));
|
|
33
31
|
}
|
|
34
32
|
exports.SliderThumb = SliderThumb;
|
|
35
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,13 +11,12 @@ exports.Switch = void 0;
|
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
12
|
const react_1 = require("react");
|
|
13
13
|
const utils_1 = require("@react-spectrum/utils");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const toggle_1 = require("@react-stately/toggle");
|
|
14
|
+
const react_aria_1 = require("react-aria");
|
|
15
|
+
const react_stately_1 = require("react-stately");
|
|
17
16
|
const icons_1 = require("@ant-design/icons");
|
|
18
17
|
const provider_1 = require("../../../provider");
|
|
19
18
|
const tasty_1 = require("../../../tasty");
|
|
20
|
-
const
|
|
19
|
+
const interactions_1 = require("../../../utils/react/interactions");
|
|
21
20
|
const react_2 = require("../../../utils/react");
|
|
22
21
|
const HiddenInput_1 = require("../../HiddenInput");
|
|
23
22
|
const Label_1 = require("../Label");
|
|
@@ -127,17 +126,17 @@ function Switch(props, ref) {
|
|
|
127
126
|
...(insideForm ? Label_1.LABEL_STYLES : Label_1.INLINE_LABEL_STYLES),
|
|
128
127
|
...labelStyles,
|
|
129
128
|
}), [insideForm, labelStyles]);
|
|
130
|
-
let { isFocused, focusProps } = (0,
|
|
131
|
-
let { hoverProps, isHovered } = (0,
|
|
129
|
+
let { isFocused, focusProps } = (0, interactions_1.useFocus)({ isDisabled }, true);
|
|
130
|
+
let { hoverProps, isHovered } = (0, react_aria_1.useHover)({ isDisabled });
|
|
132
131
|
let inputRef = (0, react_1.useRef)(null);
|
|
133
132
|
let domRef = (0, utils_1.useFocusableRef)(ref, inputRef);
|
|
134
133
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
135
|
-
let { inputProps } = (0,
|
|
134
|
+
let { inputProps } = (0, react_aria_1.useSwitch)({
|
|
136
135
|
...props,
|
|
137
136
|
...(typeof label === 'string' && label.trim()
|
|
138
137
|
? { 'aria-label': label }
|
|
139
138
|
: {}),
|
|
140
|
-
}, (0,
|
|
139
|
+
}, (0, react_stately_1.useToggleState)(props), inputRef);
|
|
141
140
|
const mods = {
|
|
142
141
|
checked: inputProps.checked,
|
|
143
142
|
disabled: isDisabled,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ exports.TextArea = void 0;
|
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
12
|
const react_1 = require("react");
|
|
13
13
|
const utils_1 = require("@react-stately/utils");
|
|
14
|
-
const
|
|
14
|
+
const react_aria_1 = require("react-aria");
|
|
15
15
|
const TextInputBase_1 = require("../TextInput/TextInputBase");
|
|
16
16
|
const provider_1 = require("../../../provider");
|
|
17
17
|
const nullableValue_1 = require("../../../utils/react/nullableValue");
|
|
@@ -52,7 +52,7 @@ function TextArea(props, ref) {
|
|
|
52
52
|
onHeightChange();
|
|
53
53
|
}
|
|
54
54
|
}, [onHeightChange, inputValue, inputRef]);
|
|
55
|
-
let { labelProps, inputProps } = (0,
|
|
55
|
+
let { labelProps, inputProps } = (0, react_aria_1.useTextField)({
|
|
56
56
|
...props,
|
|
57
57
|
onChange: (0, react_2.chain)(onChange, setInputValue),
|
|
58
58
|
inputElementType: 'textarea',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.TextInput = void 0;
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
12
|
const react_1 = require("react");
|
|
13
|
-
const
|
|
13
|
+
const react_aria_1 = require("react-aria");
|
|
14
14
|
const provider_1 = require("../../../provider");
|
|
15
15
|
const nullableValue_1 = require("../../../utils/react/nullableValue");
|
|
16
16
|
const Form_1 = require("../Form");
|
|
@@ -26,7 +26,7 @@ exports.TextInput = (0, react_1.forwardRef)(function TextInput(props, ref) {
|
|
|
26
26
|
}),
|
|
27
27
|
});
|
|
28
28
|
let inputRef = (0, react_1.useRef)(null);
|
|
29
|
-
let { labelProps, inputProps } = (0,
|
|
29
|
+
let { labelProps, inputProps } = (0, react_aria_1.useTextField)(props, inputRef);
|
|
30
30
|
return ((0, jsx_runtime_1.jsx)(TextInputBase_1.TextInputBase, { ...props, ref: ref, labelProps: labelProps, inputProps: inputProps, inputRef: inputRef }));
|
|
31
31
|
});
|
|
32
32
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -12,11 +12,11 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
12
12
|
const icons_1 = require("@ant-design/icons");
|
|
13
13
|
const utils_1 = require("@react-spectrum/utils");
|
|
14
14
|
const react_1 = require("react");
|
|
15
|
-
const
|
|
15
|
+
const react_aria_1 = require("react-aria");
|
|
16
16
|
const Form_1 = require("../Form");
|
|
17
17
|
const provider_1 = require("../../../provider");
|
|
18
18
|
const tasty_1 = require("../../../tasty");
|
|
19
|
-
const
|
|
19
|
+
const interactions_1 = require("../../../utils/react/interactions");
|
|
20
20
|
const react_2 = require("../../../utils/react");
|
|
21
21
|
const wrapper_1 = require("../wrapper");
|
|
22
22
|
const InvalidIcon_1 = require("../../shared/InvalidIcon");
|
|
@@ -152,8 +152,8 @@ function TextInputBase(props, ref) {
|
|
|
152
152
|
let type = otherProps.type;
|
|
153
153
|
inputStyles = (0, tasty_1.extractStyles)(otherProps, INPUT_STYLE_PROPS_LIST, inputStyles);
|
|
154
154
|
let ElementType = multiLine ? 'textarea' : 'input';
|
|
155
|
-
let { isFocused, focusProps } = (0,
|
|
156
|
-
let { hoverProps, isHovered } = (0,
|
|
155
|
+
let { isFocused, focusProps } = (0, interactions_1.useFocus)({ isDisabled });
|
|
156
|
+
let { hoverProps, isHovered } = (0, react_aria_1.useHover)({ isDisabled });
|
|
157
157
|
let domRef = (0, react_1.useRef)(null);
|
|
158
158
|
let defaultInputRef = (0, react_1.useRef)(null);
|
|
159
159
|
inputRef = inputRef || defaultInputRef;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -10,10 +10,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.Calendar = void 0;
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
12
|
const react_1 = require("react");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const react_aria_1 = require("react-aria");
|
|
14
|
+
const react_stately_1 = require("react-stately");
|
|
15
15
|
const date_1 = require("@internationalized/date");
|
|
16
|
-
const i18n_1 = require("@react-aria/i18n");
|
|
17
16
|
const utils_1 = require("@react-spectrum/utils");
|
|
18
17
|
const icons_1 = require("@ant-design/icons");
|
|
19
18
|
const actions_1 = require("../../actions");
|
|
@@ -37,8 +36,8 @@ const CalendarHeaderElement = (0, tasty_1.tasty)({
|
|
|
37
36
|
});
|
|
38
37
|
function Calendar(props, ref) {
|
|
39
38
|
props = (0, provider_1.useProviderProps)(props);
|
|
40
|
-
let { locale } = (0,
|
|
41
|
-
let state = (0,
|
|
39
|
+
let { locale } = (0, react_aria_1.useLocale)();
|
|
40
|
+
let state = (0, react_stately_1.useCalendarState)({
|
|
42
41
|
...props,
|
|
43
42
|
locale,
|
|
44
43
|
createCalendar: date_1.createCalendar,
|
|
@@ -50,8 +49,8 @@ function Calendar(props, ref) {
|
|
|
50
49
|
state.setFocused(true);
|
|
51
50
|
},
|
|
52
51
|
}));
|
|
53
|
-
let { calendarProps, prevButtonProps, nextButtonProps, title } = (0,
|
|
54
|
-
return ((0, jsx_runtime_1.jsxs)(CalendarElement, { ...calendarProps, children: [(0, jsx_runtime_1.jsxs)(CalendarHeaderElement, { children: [(0, jsx_runtime_1.jsx)(Title_1.Title, { level: 6, preset: "h6", children: title }), (0, jsx_runtime_1.jsxs)(actions_1.Button.Group, { gap: ".5x", children: [(0, jsx_runtime_1.jsx)(actions_1.Button, { size: "small", ...prevButtonProps, icon: (0, jsx_runtime_1.jsx)(icons_1.LeftOutlined, {}) }), (0, jsx_runtime_1.jsx)(actions_1.Button, { size: "small", ...nextButtonProps, icon: (0, jsx_runtime_1.jsx)(icons_1.RightOutlined, {}) })] })] }), (0, jsx_runtime_1.jsx)(CalendarGrid_1.CalendarGrid, { state: state })] }));
|
|
52
|
+
let { calendarProps, prevButtonProps, nextButtonProps, title } = (0, react_aria_1.useCalendar)(props, state);
|
|
53
|
+
return ((0, jsx_runtime_1.jsxs)(CalendarElement, { ...calendarProps, children: [(0, jsx_runtime_1.jsxs)(CalendarHeaderElement, { children: [(0, jsx_runtime_1.jsx)(Title_1.Title, { level: 6, preset: "h6", children: title }), (0, jsx_runtime_1.jsxs)(actions_1.Button.Group, { gap: ".5x", children: [(0, jsx_runtime_1.jsx)(actions_1.Button, { size: "small", ...prevButtonProps, icon: (0, jsx_runtime_1.jsx)(icons_1.LeftOutlined, {}) }), (0, jsx_runtime_1.jsx)(actions_1.Button, { size: "small", ...nextButtonProps, icon: (0, jsx_runtime_1.jsx)(icons_1.RightOutlined, {}) })] })] }), (0, jsx_runtime_1.jsx)(CalendarGrid_1.CalendarGrid, { state: state, selectedRange: props.selectedRange })] }));
|
|
55
54
|
}
|
|
56
55
|
const _Calendar = (0, react_1.forwardRef)(Calendar);
|
|
57
56
|
exports.Calendar = _Calendar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.CalendarCell = void 0;
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
12
|
const react_1 = require("react");
|
|
13
|
-
const
|
|
13
|
+
const react_aria_1 = require("react-aria");
|
|
14
14
|
const tasty_1 = require("../../../tasty");
|
|
15
15
|
const CalendarCellElement = (0, tasty_1.tasty)({
|
|
16
16
|
as: 'td',
|
|
@@ -52,11 +52,15 @@ const CalendarButtonElement = (0, tasty_1.tasty)({
|
|
|
52
52
|
cursor: 'pointer',
|
|
53
53
|
},
|
|
54
54
|
});
|
|
55
|
-
function CalendarCell({ state, date }) {
|
|
55
|
+
function CalendarCell({ state, selectedRange, date }) {
|
|
56
56
|
let ref = (0, react_1.useRef)(null);
|
|
57
|
-
let { cellProps, buttonProps, isSelected, isPressed, isFocused, isInvalid, isOutsideVisibleRange, isDisabled, isUnavailable, formattedDate, } = (0,
|
|
57
|
+
let { cellProps, buttonProps, isSelected, isPressed, isFocused, isInvalid, isOutsideVisibleRange, isDisabled, isUnavailable, formattedDate, } = (0, react_aria_1.useCalendarCell)({ date }, state, ref);
|
|
58
|
+
const isFinalSelected = selectedRange
|
|
59
|
+
? date.compare(selectedRange.start) >= 0 &&
|
|
60
|
+
date.compare(selectedRange.end) <= 0
|
|
61
|
+
: isSelected;
|
|
58
62
|
return ((0, jsx_runtime_1.jsx)(CalendarCellElement, { ...cellProps, children: (0, jsx_runtime_1.jsx)(CalendarButtonElement, { ...buttonProps, ref: ref, hidden: isOutsideVisibleRange, mods: {
|
|
59
|
-
selected:
|
|
63
|
+
selected: isFinalSelected,
|
|
60
64
|
pressed: isPressed,
|
|
61
65
|
focused: isFocused,
|
|
62
66
|
invalid: isInvalid,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.CalendarGrid = void 0;
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
|
-
const
|
|
12
|
+
const react_aria_1 = require("react-aria");
|
|
13
13
|
const date_1 = require("@internationalized/date");
|
|
14
|
-
const i18n_1 = require("@react-aria/i18n");
|
|
15
14
|
const tasty_1 = require("../../../tasty");
|
|
16
15
|
const CalendarCell_1 = require("./CalendarCell");
|
|
17
16
|
const TableElement = (0, tasty_1.tasty)({
|
|
@@ -21,13 +20,13 @@ const TableElement = (0, tasty_1.tasty)({
|
|
|
21
20
|
},
|
|
22
21
|
});
|
|
23
22
|
function CalendarGrid({ state, ...props }) {
|
|
24
|
-
let { locale } = (0,
|
|
25
|
-
let { gridProps, headerProps, weekDays } = (0,
|
|
23
|
+
let { locale } = (0, react_aria_1.useLocale)();
|
|
24
|
+
let { gridProps, headerProps, weekDays } = (0, react_aria_1.useCalendarGrid)(props, state);
|
|
26
25
|
// Get the number of weeks in the month, so we can render the proper number of rows.
|
|
27
26
|
let weeksInMonth = (0, date_1.getWeeksInMonth)(state.visibleRange.start, locale);
|
|
28
27
|
return ((0, jsx_runtime_1.jsxs)(TableElement, { ...gridProps, children: [(0, jsx_runtime_1.jsx)("thead", { "data-element": "Head", ...headerProps, children: (0, jsx_runtime_1.jsx)("tr", { "data-element": "HeadRow", children: weekDays.map((day, index) => ((0, jsx_runtime_1.jsx)("th", { children: day }, index))) }) }), (0, jsx_runtime_1.jsx)("tbody", { "data-element": "Body", children: [...new Array(weeksInMonth).keys()].map((weekIndex) => ((0, jsx_runtime_1.jsx)("tr", { "data-element": "Row", children: state
|
|
29
28
|
.getDatesInWeek(weekIndex)
|
|
30
|
-
.map((date, i) => date ? ((0, jsx_runtime_1.jsx)(CalendarCell_1.CalendarCell, { state: state, date: date }, i)) : ((0, jsx_runtime_1.jsx)("td", {}, i))) }, weekIndex))) })] }));
|
|
29
|
+
.map((date, i) => date ? ((0, jsx_runtime_1.jsx)(CalendarCell_1.CalendarCell, { state: state, date: date, selectedRange: props.selectedRange }, i)) : ((0, jsx_runtime_1.jsx)("td", {}, i))) }, weekIndex))) })] }));
|
|
31
30
|
}
|
|
32
31
|
exports.CalendarGrid = CalendarGrid;
|
|
33
32
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -10,10 +10,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.RangeCalendar = void 0;
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
12
|
const react_1 = require("react");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
13
|
+
const react_aria_1 = require("react-aria");
|
|
14
|
+
const react_stately_1 = require("react-stately");
|
|
15
15
|
const date_1 = require("@internationalized/date");
|
|
16
|
-
const i18n_1 = require("@react-aria/i18n");
|
|
17
16
|
const utils_1 = require("@react-spectrum/utils");
|
|
18
17
|
const icons_1 = require("@ant-design/icons");
|
|
19
18
|
const actions_1 = require("../../actions");
|
|
@@ -37,8 +36,8 @@ const CalendarHeaderElement = (0, tasty_1.tasty)({
|
|
|
37
36
|
});
|
|
38
37
|
function RangeCalendar(props, ref) {
|
|
39
38
|
props = (0, provider_1.useProviderProps)(props);
|
|
40
|
-
let { locale } = (0,
|
|
41
|
-
let state = (0,
|
|
39
|
+
let { locale } = (0, react_aria_1.useLocale)();
|
|
40
|
+
let state = (0, react_stately_1.useRangeCalendarState)({
|
|
42
41
|
...props,
|
|
43
42
|
locale,
|
|
44
43
|
createCalendar: date_1.createCalendar,
|
|
@@ -50,7 +49,7 @@ function RangeCalendar(props, ref) {
|
|
|
50
49
|
state.setFocused(true);
|
|
51
50
|
},
|
|
52
51
|
}));
|
|
53
|
-
let { calendarProps, prevButtonProps, nextButtonProps, title } = (0,
|
|
52
|
+
let { calendarProps, prevButtonProps, nextButtonProps, title } = (0, react_aria_1.useRangeCalendar)(props, state, domRef);
|
|
54
53
|
return ((0, jsx_runtime_1.jsxs)(CalendarElement, { ref: domRef, ...calendarProps, children: [(0, jsx_runtime_1.jsxs)(CalendarHeaderElement, { children: [(0, jsx_runtime_1.jsx)(Title_1.Title, { level: 6, preset: "h6", children: title }), (0, jsx_runtime_1.jsxs)(actions_1.Button.Group, { gap: ".5x", children: [(0, jsx_runtime_1.jsx)(actions_1.Button, { size: "small", ...prevButtonProps, icon: (0, jsx_runtime_1.jsx)(icons_1.LeftOutlined, {}) }), (0, jsx_runtime_1.jsx)(actions_1.Button, { size: "small", ...nextButtonProps, icon: (0, jsx_runtime_1.jsx)(icons_1.RightOutlined, {}) })] })] }), (0, jsx_runtime_1.jsx)(CalendarGrid_1.CalendarGrid, { state: state })] }));
|
|
55
54
|
}
|
|
56
55
|
const _RangeCalendar = (0, react_1.forwardRef)(RangeCalendar);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-8a29f3f
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -14,10 +14,9 @@ exports.Dialog = void 0;
|
|
|
14
14
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
15
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
16
16
|
const utils_1 = require("@react-spectrum/utils");
|
|
17
|
-
const
|
|
17
|
+
const react_aria_1 = require("react-aria");
|
|
18
18
|
const react_1 = require("react");
|
|
19
|
-
const
|
|
20
|
-
const i18n_1 = require("@react-aria/i18n");
|
|
19
|
+
const react_aria_2 = require("react-aria");
|
|
21
20
|
const icons_1 = require("@ant-design/icons");
|
|
22
21
|
const react_focus_lock_1 = __importDefault(require("react-focus-lock"));
|
|
23
22
|
const tasty_1 = require("../../../tasty");
|
|
@@ -122,14 +121,14 @@ const DialogContent = (0, react_1.forwardRef)(function DialogContent(props, ref)
|
|
|
122
121
|
let { qa, children, size = 'S', isDismissable = contextProps.isDismissable, onDismiss = contextProps.onClose, closeIcon, closeButtonStyles, ...otherProps } = props;
|
|
123
122
|
size = sizeMap[size.toUpperCase()] || size;
|
|
124
123
|
const styles = (0, tasty_1.extractStyles)(otherProps, STYLES_LIST);
|
|
125
|
-
let formatMessage = (0,
|
|
124
|
+
let formatMessage = (0, react_aria_2.useMessageFormatter)(intlMessages);
|
|
126
125
|
let domRef = (0, utils_1.useDOMRef)(ref);
|
|
127
|
-
let { dialogProps, titleProps } = (0,
|
|
126
|
+
let { dialogProps, titleProps } = (0, react_aria_2.useDialog)((0, react_2.mergeProps)(contextProps, props), domRef);
|
|
128
127
|
// If rendered in a popover or tray there won't be a visible dismiss button,
|
|
129
128
|
// so we render a hidden one for screen readers.
|
|
130
129
|
let dismissButton;
|
|
131
130
|
if (type === 'popover' || type === 'tray') {
|
|
132
|
-
dismissButton = (0, jsx_runtime_1.jsx)(
|
|
131
|
+
dismissButton = (0, jsx_runtime_1.jsx)(react_aria_1.DismissButton, { onDismiss: onDismiss });
|
|
133
132
|
}
|
|
134
133
|
// let hasHeader = useHasChild('[data-id="Header"]', domRef);
|
|
135
134
|
// let hasFooter = useHasChild('[data-id="Footer"]', domRef);
|