@cube-dev/ui-kit 0.27.2 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -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 +25 -40
- package/cjs/components/forms/Checkbox/CheckboxGroup.js +15 -9
- 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 +133 -0
- package/cjs/components/forms/DatePicker/TimeInput.js +7 -8
- package/cjs/components/forms/DatePicker/index.js +2 -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 +9 -3
- 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 +2 -4
- 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 +15 -29
- 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 +23 -37
- 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 +20 -35
- package/es/components/forms/Checkbox/CheckboxGroup.js +13 -7
- 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 +130 -0
- package/es/components/forms/DatePicker/TimeInput.js +5 -6
- package/es/components/forms/DatePicker/index.js +2 -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 +9 -3
- 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 +2 -4
- 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 +13 -27
- 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 +18 -32
- 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/Checkbox.d.ts +2 -1
- 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/index.d.ts +1 -0
- 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
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cube-dev/ui-kit",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.29.0",
|
4
4
|
"description": "UIKit for Cube Projects",
|
5
5
|
"keywords": [
|
6
6
|
"uikit"
|
@@ -18,76 +18,42 @@
|
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
20
|
"@ant-design/icons": "^5.0.1",
|
21
|
-
"@internationalized/date": "^3.
|
22
|
-
"@react-aria/
|
23
|
-
"@react-aria/
|
24
|
-
"@react-aria/
|
25
|
-
"@react-aria/
|
26
|
-
"@react-aria/
|
27
|
-
"@react-aria/
|
28
|
-
"@react-
|
29
|
-
"@react-
|
30
|
-
"@react-
|
31
|
-
"@react-
|
32
|
-
"@react-
|
33
|
-
"@react-
|
34
|
-
"@react-
|
35
|
-
"@react-
|
36
|
-
"@react-
|
37
|
-
"@react-
|
38
|
-
"@react-
|
39
|
-
"@react-
|
40
|
-
"@react-
|
41
|
-
"@react-
|
42
|
-
"@react-
|
43
|
-
"@react-
|
44
|
-
"@react-
|
45
|
-
"@react-
|
46
|
-
"@react-aria/utils": "3.14.2",
|
47
|
-
"@react-aria/visually-hidden": "3.6.1",
|
48
|
-
"@react-spectrum/utils": "3.8.1",
|
49
|
-
"@react-stately/calendar": "^3.3.0",
|
50
|
-
"@react-stately/checkbox": "3.3.2",
|
51
|
-
"@react-stately/collections": "3.5.1",
|
52
|
-
"@react-stately/combobox": "3.3.1",
|
53
|
-
"@react-stately/datepicker": "^3.5.0",
|
54
|
-
"@react-stately/list": "3.6.1",
|
55
|
-
"@react-stately/menu": "3.4.4",
|
56
|
-
"@react-stately/numberfield": "3.3.1",
|
57
|
-
"@react-stately/overlays": "3.4.4",
|
58
|
-
"@react-stately/radio": "3.6.2",
|
59
|
-
"@react-stately/searchfield": "3.3.4",
|
60
|
-
"@react-stately/select": "3.3.4",
|
61
|
-
"@react-stately/selection": "3.11.2",
|
62
|
-
"@react-stately/slider": "3.2.4",
|
63
|
-
"@react-stately/toggle": "3.4.4",
|
64
|
-
"@react-stately/tooltip": "3.2.4",
|
65
|
-
"@react-stately/tree": "3.4.1",
|
66
|
-
"@react-stately/utils": "3.5.2",
|
67
|
-
"@react-types/button": "3.7.0",
|
68
|
-
"@react-types/calendar": "^3.3.0",
|
69
|
-
"@react-types/checkbox": "3.4.1",
|
70
|
-
"@react-types/combobox": "3.5.5",
|
71
|
-
"@react-types/datepicker": "^3.4.0",
|
72
|
-
"@react-types/dialog": "3.4.5",
|
73
|
-
"@react-types/menu": "3.7.3",
|
74
|
-
"@react-types/numberfield": "3.3.5",
|
75
|
-
"@react-types/overlays": "3.6.5",
|
76
|
-
"@react-types/radio": "3.3.1",
|
77
|
-
"@react-types/select": "3.6.5",
|
78
|
-
"@react-types/shared": "3.16.0",
|
79
|
-
"@react-types/slider": "3.3.1",
|
80
|
-
"@react-types/switch": "3.2.5",
|
81
|
-
"@react-types/textfield": "3.6.2",
|
82
|
-
"@react-types/tooltip": "3.2.5",
|
21
|
+
"@internationalized/date": "^3.5.0",
|
22
|
+
"@react-aria/focus": "^3.15.0",
|
23
|
+
"@react-aria/i18n": "^3.9.0",
|
24
|
+
"@react-aria/interactions": "^3.20.0",
|
25
|
+
"@react-aria/selection": "^3.17.2",
|
26
|
+
"@react-aria/ssr": "^3.9.0",
|
27
|
+
"@react-aria/utils": "^3.22.0",
|
28
|
+
"@react-spectrum/utils": "^3.11.2",
|
29
|
+
"@react-stately/utils": "^3.9.0",
|
30
|
+
"@react-types/button": "^3.9.1",
|
31
|
+
"@react-types/calendar": "^3.4.2",
|
32
|
+
"@react-types/checkbox": "^3.6.0",
|
33
|
+
"@react-types/combobox": "^3.9.0",
|
34
|
+
"@react-types/datepicker": "^3.7.0",
|
35
|
+
"@react-types/dialog": "^3.5.7",
|
36
|
+
"@react-types/menu": "^3.9.6",
|
37
|
+
"@react-types/numberfield": "^3.7.0",
|
38
|
+
"@react-types/overlays": "^3.8.4",
|
39
|
+
"@react-types/radio": "^3.6.0",
|
40
|
+
"@react-types/select": "^3.9.0",
|
41
|
+
"@react-types/shared": "^3.22.0",
|
42
|
+
"@react-types/slider": "^3.7.0",
|
43
|
+
"@react-types/switch": "^3.5.0",
|
44
|
+
"@react-types/textfield": "^3.9.0",
|
45
|
+
"@react-types/tooltip": "^3.4.6",
|
83
46
|
"clipboard-copy": "^4.0.1",
|
84
47
|
"clsx": "^1.1.1",
|
85
48
|
"email-validator": "^2.0.4",
|
86
49
|
"prismjs": "^1.27.0",
|
50
|
+
"react-aria": "^3.30.0",
|
87
51
|
"react-focus-lock": "^2.9.4",
|
88
52
|
"react-is": "^17.0.0",
|
89
53
|
"react-keyed-flatten-children": "^1.3.0",
|
54
|
+
"react-stately": "^3.28.0",
|
90
55
|
"react-transition-group": "^4.4.5",
|
56
|
+
"react-types": "^0.1.0",
|
91
57
|
"storybook": "^7.0.17",
|
92
58
|
"tiny-invariant": "^1.3.1",
|
93
59
|
"valid-url": "^1.0.9"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
2
|
-
import { AriaButtonProps } from '@react-types/button';
|
3
2
|
import { FocusableRef } from '@react-types/shared';
|
3
|
+
import { AriaButtonProps } from '@react-types/button';
|
4
4
|
import { BaseProps, TagNameProps } from '../../tasty';
|
5
5
|
export interface CubeUseActionProps extends BaseProps, TagNameProps, Omit<AriaButtonProps, 'type'> {
|
6
6
|
to?: string;
|
@@ -38,7 +38,7 @@ export declare const useAction: ({ to, as, htmlType, label, mods, onPress, ...pr
|
|
38
38
|
href: string | undefined;
|
39
39
|
mods: {
|
40
40
|
hovered: boolean;
|
41
|
-
pressed:
|
41
|
+
pressed: any;
|
42
42
|
focused: boolean;
|
43
43
|
disabled: boolean | undefined;
|
44
44
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
2
|
-
import { FocusableOptions } from '
|
2
|
+
import { FocusableOptions } from 'react-aria';
|
3
3
|
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '../../../tasty';
|
4
4
|
export interface CubeActiveZoneProps extends BaseProps, TagNameProps, BaseStyleProps, ContainerStyleProps, TextStyleProps, FocusableOptions {
|
5
5
|
label?: string;
|
@@ -103,15 +103,15 @@ declare const ActionButton: import("react").ComponentType<{
|
|
103
103
|
onMouseEnter?: import("react").MouseEventHandler<Element> | undefined;
|
104
104
|
onMouseLeave?: import("react").MouseEventHandler<Element> | undefined;
|
105
105
|
key?: import("react").Key | null | undefined;
|
106
|
-
onPress?: ((e: import("
|
107
|
-
onPressStart?: ((e: import("
|
108
|
-
onPressEnd?: ((e: import("
|
106
|
+
onPress?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
107
|
+
onPressStart?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
108
|
+
onPressEnd?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
109
109
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
110
110
|
excludeFromTabOrder?: boolean | undefined;
|
111
111
|
isLoading?: boolean | undefined;
|
112
112
|
isSelected?: boolean | undefined;
|
113
113
|
onPressChange?: ((isPressed: boolean) => void) | undefined;
|
114
|
-
onPressUp?: ((e: import("
|
114
|
+
onPressUp?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
115
115
|
elementType?: "button" | import("react").JSXElementConstructor<any> | undefined;
|
116
116
|
to?: string | undefined;
|
117
117
|
htmlType?: "button" | "reset" | "submit" | undefined;
|
@@ -246,15 +246,15 @@ declare const _CopySnippet: typeof CopySnippet & {
|
|
246
246
|
onMouseEnter?: import("react").MouseEventHandler<Element> | undefined;
|
247
247
|
onMouseLeave?: import("react").MouseEventHandler<Element> | undefined;
|
248
248
|
key?: import("react").Key | null | undefined;
|
249
|
-
onPress?: ((e: import("
|
250
|
-
onPressStart?: ((e: import("
|
251
|
-
onPressEnd?: ((e: import("
|
249
|
+
onPress?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
250
|
+
onPressStart?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
251
|
+
onPressEnd?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
252
252
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
253
253
|
excludeFromTabOrder?: boolean | undefined;
|
254
254
|
isLoading?: boolean | undefined;
|
255
255
|
isSelected?: boolean | undefined;
|
256
256
|
onPressChange?: ((isPressed: boolean) => void) | undefined;
|
257
|
-
onPressUp?: ((e: import("
|
257
|
+
onPressUp?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
258
258
|
elementType?: "button" | import("react").JSXElementConstructor<any> | undefined;
|
259
259
|
to?: string | undefined;
|
260
260
|
htmlType?: "button" | "reset" | "submit" | undefined;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps } from '../../../tasty';
|
2
|
+
import { BaseProps, Styles } from '../../../tasty';
|
3
3
|
import { FieldBaseProps } from '../../../shared';
|
4
4
|
import { CheckboxGroup } from './CheckboxGroup';
|
5
5
|
import type { AriaCheckboxProps } from '@react-types/checkbox';
|
6
6
|
export interface CubeCheckboxProps extends BaseProps, AriaCheckboxProps, FieldBaseProps {
|
7
|
+
inputStyles?: Styles;
|
7
8
|
}
|
8
9
|
declare let __Checkbox: import("react").ForwardRefExoticComponent<Omit<CubeCheckboxProps, "isSelected" | "defaultSelected"> & {
|
9
10
|
isSelected?: any;
|
@@ -100,15 +100,15 @@ export declare const DatePickerButton: import("react").ComponentType<{
|
|
100
100
|
onMouseEnter?: import("react").MouseEventHandler<Element> | undefined;
|
101
101
|
onMouseLeave?: import("react").MouseEventHandler<Element> | undefined;
|
102
102
|
key?: import("react").Key | null | undefined;
|
103
|
-
onPress?: ((e: import("
|
104
|
-
onPressStart?: ((e: import("
|
105
|
-
onPressEnd?: ((e: import("
|
103
|
+
onPress?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
104
|
+
onPressStart?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
105
|
+
onPressEnd?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
106
106
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
107
107
|
excludeFromTabOrder?: boolean | undefined;
|
108
108
|
isLoading?: boolean | undefined;
|
109
109
|
isSelected?: boolean | undefined;
|
110
110
|
onPressChange?: ((isPressed: boolean) => void) | undefined;
|
111
|
-
onPressUp?: ((e: import("
|
111
|
+
onPressUp?: ((e: import("react-aria").PressEvent) => void) | undefined;
|
112
112
|
elementType?: "button" | import("react").JSXElementConstructor<any> | undefined;
|
113
113
|
to?: string | undefined;
|
114
114
|
htmlType?: "button" | "reset" | "submit" | undefined;
|
@@ -4,6 +4,8 @@ interface CubeDatePickerInputProps<T extends DateValue> extends SpectrumDatePick
|
|
4
4
|
hideValidationIcon?: boolean;
|
5
5
|
maxGranularity?: SpectrumDatePickerProps<T>['granularity'];
|
6
6
|
useLocale?: boolean;
|
7
|
+
onFocus?: () => void;
|
8
|
+
onBlur?: () => void;
|
7
9
|
}
|
8
10
|
export declare function DatePickerInput<T extends DateValue>(props: CubeDatePickerInputProps<T>): JSX.Element;
|
9
11
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { DateFieldState, DateSegment } from '
|
2
|
+
import { DateFieldState, DateSegment } from 'react-stately';
|
3
3
|
import { DatePickerBase, DateValue } from '@react-types/datepicker';
|
4
4
|
interface DatePickerSegmentProps extends DatePickerBase<DateValue> {
|
5
5
|
segment: DateSegment;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ReactElement } from 'react';
|
2
|
+
import { AriaDateRangePickerProps, DateValue } from '@react-types/datepicker';
|
3
|
+
import { FocusableRef } from '@react-types/shared';
|
4
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
5
|
+
import { FieldBaseProps, ValidationState } from '../../../shared';
|
6
|
+
export interface CubeDateRangeSeparatedPickerProps<T extends DateValue = DateValue> extends AriaDateRangePickerProps<T>, BaseProps, ContainerStyleProps, FieldBaseProps {
|
7
|
+
wrapperStyles?: Styles;
|
8
|
+
inputStyles?: Styles;
|
9
|
+
styles?: Styles;
|
10
|
+
size?: 'small' | 'medium' | 'large' | (string & {});
|
11
|
+
validationState?: ValidationState;
|
12
|
+
maxVisibleMonths?: number;
|
13
|
+
shouldFlip?: boolean;
|
14
|
+
useLocale?: boolean;
|
15
|
+
}
|
16
|
+
declare const _DateRangeSeparatedPicker: <T extends DateValue>(props: CubeDateRangeSeparatedPickerProps<T> & {
|
17
|
+
ref?: FocusableRef<HTMLElement> | undefined;
|
18
|
+
}) => ReactElement;
|
19
|
+
export { _DateRangeSeparatedPicker as DateRangeSeparatedPicker };
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
2
|
import { FocusableRef } from '@react-types/shared';
|
3
|
-
import { TimeValue } from '@react-types/datepicker';
|
4
|
-
import { AriaTimeFieldProps } from '
|
3
|
+
import { Granularity, TimeValue } from '@react-types/datepicker';
|
4
|
+
import { AriaTimeFieldProps, DateValue } from 'react-aria';
|
5
5
|
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
6
6
|
import { FieldBaseProps, ValidationState } from '../../../shared';
|
7
7
|
export interface CubeTimeInputProps<T extends TimeValue = TimeValue> extends AriaTimeFieldProps<T>, BaseProps, ContainerStyleProps, FieldBaseProps {
|
@@ -10,6 +10,25 @@ export interface CubeTimeInputProps<T extends TimeValue = TimeValue> extends Ari
|
|
10
10
|
styles?: Styles;
|
11
11
|
size?: 'small' | 'medium' | 'large' | (string & {});
|
12
12
|
validationState?: ValidationState;
|
13
|
+
value?: TimeValue;
|
14
|
+
/** The minimum allowed date that a user may select. */
|
15
|
+
minValue?: TimeValue;
|
16
|
+
/** The maximum allowed date that a user may select. */
|
17
|
+
maxValue?: TimeValue;
|
18
|
+
/** Callback that is called for each date of the calendar. If it returns true, then the date is unavailable. */
|
19
|
+
isDateUnavailable?: (date: DateValue) => boolean;
|
20
|
+
/** A placeholder date that influences the format of the placeholder shown when no value is selected. Defaults to today's date at midnight. */
|
21
|
+
placeholderValue?: TimeValue;
|
22
|
+
/** Whether to display the time in 12 or 24 hour format. By default, this is determined by the user's locale. */
|
23
|
+
hourCycle?: 12 | 24;
|
24
|
+
/** Determines the smallest unit that is displayed in the date picker. By default, this is `"day"` for dates, and `"minute"` for times. */
|
25
|
+
granularity?: Granularity;
|
26
|
+
/**
|
27
|
+
* Whether to hide the time zone abbreviation.
|
28
|
+
* @default false
|
29
|
+
*/
|
30
|
+
hideTimeZone?: boolean;
|
31
|
+
onChange?: (value: TimeValue) => void;
|
13
32
|
}
|
14
33
|
/**
|
15
34
|
* TimeFields allow users to enter and edit time values using a keyboard.
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { DatePickerProps } from '@react-types/datepicker';
|
2
|
-
import { DateValue } from '
|
2
|
+
import { DateValue } from 'react-aria';
|
3
3
|
export declare const DEFAULT_DATE_PROPS: Partial<DatePickerProps<DateValue>>;
|
4
4
|
export declare const DEFAULT_TIME_PROPS: Partial<DatePickerProps<DateValue>>;
|
@@ -1,8 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { FocusableRef } from '@react-types/shared';
|
3
|
-
import {
|
4
|
-
import { DateSegment } from '@react-stately/datepicker';
|
5
|
-
export declare function useFormatHelpText(props: Pick<SpectrumDatePickerBase, 'description' | 'showFormatHelpText'>): {};
|
6
|
-
export declare function useVisibleMonths(maxVisibleMonths: number): number;
|
3
|
+
import { DateSegment } from 'react-stately';
|
7
4
|
export declare function useFocusManagerRef(ref: FocusableRef<HTMLElement>): import("react").MutableRefObject<undefined>;
|
8
5
|
export declare function formatSegments(segments: DateSegment[]): DateSegment[];
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CubeTextInputBaseProps } from '../TextInput/TextInputBase';
|
3
3
|
import type { AriaNumberFieldProps } from '@react-types/numberfield';
|
4
|
-
export interface CubeNumberInputProps extends Omit<CubeTextInputBaseProps, 'defaultValue' | 'value' | 'onChange'>, AriaNumberFieldProps {
|
4
|
+
export interface CubeNumberInputProps extends Omit<CubeTextInputBaseProps, 'defaultValue' | 'value' | 'onChange'>, Omit<AriaNumberFieldProps, 'validate'> {
|
5
5
|
/** Whether or to hide stepper */
|
6
6
|
hideStepper?: boolean;
|
7
7
|
}
|
@@ -54,11 +54,11 @@ declare const ButtonGroup: import("react").ComponentType<{
|
|
54
54
|
insideForm?: boolean | undefined;
|
55
55
|
isReadOnly?: boolean | undefined;
|
56
56
|
isRequired?: boolean | undefined;
|
57
|
-
validationState?: import("
|
57
|
+
validationState?: import("react-stately").ValidationState | undefined;
|
58
58
|
isLoading?: boolean | undefined;
|
59
59
|
rules?: import("../../../shared").ValidationRule[] | undefined;
|
60
60
|
extra?: import("react").ReactNode;
|
61
|
-
orientation?: import("
|
61
|
+
orientation?: import("react-aria").Orientation | undefined;
|
62
62
|
labelStyles?: Styles | undefined;
|
63
63
|
labelPosition?: import("../../../shared").LabelPosition | undefined;
|
64
64
|
requiredMark?: boolean | undefined;
|
@@ -71,7 +71,10 @@ declare const ButtonGroup: import("react").ComponentType<{
|
|
71
71
|
idPrefix?: string | undefined;
|
72
72
|
validationDelay?: number | undefined;
|
73
73
|
shouldUpdate?: boolean | ((prevValues: any, nextValues: any) => boolean) | undefined;
|
74
|
-
|
74
|
+
validate?: ((value: string | null) => true | import("@react-types/shared").ValidationError | null | undefined) | undefined;
|
75
|
+
isInvalid?: boolean | undefined;
|
76
|
+
validationBehavior?: "native" | "aria" | undefined;
|
77
|
+
errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
|
75
78
|
groupStyles?: Styles | undefined;
|
76
79
|
isSolid?: boolean | undefined;
|
77
80
|
} & {}>;
|
@@ -127,11 +130,11 @@ declare const __Radio: import("react").ForwardRefExoticComponent<CubeRadioProps
|
|
127
130
|
insideForm?: boolean | undefined;
|
128
131
|
isReadOnly?: boolean | undefined;
|
129
132
|
isRequired?: boolean | undefined;
|
130
|
-
validationState?: import("
|
133
|
+
validationState?: import("react-stately").ValidationState | undefined;
|
131
134
|
isLoading?: boolean | undefined;
|
132
135
|
rules?: import("../../../shared").ValidationRule[] | undefined;
|
133
136
|
extra?: import("react").ReactNode;
|
134
|
-
orientation?: import("
|
137
|
+
orientation?: import("react-aria").Orientation | undefined;
|
135
138
|
labelStyles?: Styles | undefined;
|
136
139
|
labelPosition?: import("../../../shared").LabelPosition | undefined;
|
137
140
|
requiredMark?: boolean | undefined;
|
@@ -144,7 +147,10 @@ declare const __Radio: import("react").ForwardRefExoticComponent<CubeRadioProps
|
|
144
147
|
idPrefix?: string | undefined;
|
145
148
|
validationDelay?: number | undefined;
|
146
149
|
shouldUpdate?: boolean | ((prevValues: any, nextValues: any) => boolean) | undefined;
|
147
|
-
|
150
|
+
validate?: ((value: string | null) => true | import("@react-types/shared").ValidationError | null | undefined) | undefined;
|
151
|
+
isInvalid?: boolean | undefined;
|
152
|
+
validationBehavior?: "native" | "aria" | undefined;
|
153
|
+
errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
|
148
154
|
groupStyles?: Styles | undefined;
|
149
155
|
isSolid?: boolean | undefined;
|
150
156
|
} & {}>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RefObject, ReactNode } from 'react';
|
2
|
-
import { SliderState } from '
|
2
|
+
import { SliderState } from 'react-stately';
|
3
3
|
import { CubeSliderBaseProps } from './types';
|
4
4
|
export interface SliderBaseChildArguments {
|
5
5
|
inputRef: RefObject<HTMLInputElement>;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { RefObject } from 'react';
|
2
|
-
import { AriaSliderThumbOptions } from '
|
3
|
-
import { SliderState } from '
|
2
|
+
import { AriaSliderThumbOptions } from 'react-aria';
|
3
|
+
import { SliderState } from 'react-stately';
|
4
4
|
export interface SliderThumbProps extends AriaSliderThumbOptions {
|
5
5
|
state: SliderState;
|
6
6
|
isDisabled?: boolean;
|
7
7
|
trackRef: RefObject<HTMLElement>;
|
8
8
|
inputRef: RefObject<HTMLInputElement>;
|
9
|
+
index: number;
|
9
10
|
}
|
10
11
|
export declare function SliderThumb(props: SliderThumbProps): JSX.Element;
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { ReactElement, ReactNode, RefObject } from 'react';
|
2
|
+
import { AriaNumberFieldProps } from 'react-aria';
|
2
3
|
import { BaseProps, BlockStyleProps, DimensionStyleProps, PositionStyleProps, Props, Styles } from '../../../tasty';
|
3
4
|
import { FieldBaseProps } from '../../../shared';
|
4
5
|
import type { AriaTextFieldProps } from '@react-types/textfield';
|
5
6
|
export declare const INPUT_WRAPPER_STYLES: Styles;
|
6
7
|
export declare const DEFAULT_INPUT_STYLES: Styles;
|
7
|
-
export interface CubeTextInputBaseProps extends BaseProps, PositionStyleProps, DimensionStyleProps, BlockStyleProps, AriaTextFieldProps, FieldBaseProps {
|
8
|
+
export interface CubeTextInputBaseProps extends BaseProps, PositionStyleProps, DimensionStyleProps, BlockStyleProps, Omit<AriaTextFieldProps, 'validate'>, FieldBaseProps {
|
9
|
+
validate?: AriaTextFieldProps['validate'] | AriaNumberFieldProps['validate'];
|
8
10
|
/** Left input icon */
|
9
11
|
icon?: ReactElement;
|
10
12
|
/** Input decoration before the main input */
|
@@ -1,5 +1,10 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { AriaCalendarProps, DateValue } from '@react-types/calendar';
|
3
|
-
|
3
|
+
export interface CubeCalendarProps extends AriaCalendarProps<DateValue> {
|
4
|
+
selectedRange?: {
|
5
|
+
start: DateValue;
|
6
|
+
end: DateValue;
|
7
|
+
};
|
8
|
+
}
|
9
|
+
declare const _Calendar: import("react").ForwardRefExoticComponent<CubeCalendarProps & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLElement, HTMLElement>>>;
|
4
10
|
export { _Calendar as Calendar };
|
5
|
-
export type { AriaCalendarProps as CubeCalendarProps };
|
@@ -3,7 +3,7 @@ import { BaseProps, Styles } from '../../../tasty';
|
|
3
3
|
import { WithCloseBehavior } from './types';
|
4
4
|
import type { ModalProps } from '@react-types/overlays';
|
5
5
|
export declare const OVERLAY_WRAPPER_STYLES: Styles;
|
6
|
-
export interface CubeModalProps extends Omit<ModalProps, 'container' | 'type'>, WithCloseBehavior {
|
6
|
+
export interface CubeModalProps extends Omit<ModalProps, 'container' | 'type' | 'nodeRef'>, WithCloseBehavior {
|
7
7
|
container?: HTMLElement;
|
8
8
|
qa?: BaseProps['qa'];
|
9
9
|
onClose?: (action?: string) => void;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { WithCloseBehavior } from './types';
|
3
3
|
import type { OverlayProps } from '@react-types/overlays';
|
4
|
-
export interface CubeOverlayProps extends Omit<OverlayProps, 'container'>, WithCloseBehavior {
|
4
|
+
export interface CubeOverlayProps extends Omit<OverlayProps, 'container' | 'nodeRef'>, WithCloseBehavior {
|
5
5
|
container?: HTMLElement | null;
|
6
6
|
}
|
7
7
|
declare let _Overlay: import("react").ForwardRefExoticComponent<CubeOverlayProps & import("react").RefAttributes<unknown>>;
|
@@ -3,7 +3,7 @@ import { OverlayProps } from '@react-types/overlays';
|
|
3
3
|
import { BaseProps } from '../../../tasty';
|
4
4
|
import { PlacementAxis } from '../../../shared';
|
5
5
|
import { TransitionState, WithCloseBehavior } from './types';
|
6
|
-
export interface CubePopoverProps extends BaseProps, Omit<OverlayProps, 'children'>, WithCloseBehavior, TransitionState {
|
6
|
+
export interface CubePopoverProps extends BaseProps, Omit<OverlayProps, 'children' | 'nodeRef'>, WithCloseBehavior, TransitionState {
|
7
7
|
container?: HTMLElement;
|
8
8
|
placement?: PlacementAxis;
|
9
9
|
arrowProps?: HTMLAttributes<HTMLElement>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ListState } from '
|
1
|
+
import type { ListState } from 'react-stately';
|
2
2
|
import type { Collection, CollectionElement, Node } from '@react-types/shared';
|
3
3
|
import type { CubeNotificationProps } from '../types';
|
4
4
|
export type CollectionChildren<T, R = T> = CollectionElement<R> | CollectionElement<R>[] | ((item: T) => CollectionElement<R>);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SelectableItemAria } from '@react-aria/selection';
|
2
2
|
import type { Key, MutableRefObject } from 'react';
|
3
|
-
import type { ListState } from '
|
3
|
+
import type { ListState } from 'react-stately';
|
4
4
|
export type UseNotificationListItemPropsType<T extends object> = {
|
5
5
|
key: Key;
|
6
6
|
ref: MutableRefObject<HTMLElement | null>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { HTMLAttributes, RefObject } from 'react';
|
2
|
-
import { TooltipTriggerState } from '
|
2
|
+
import { TooltipTriggerState } from 'react-stately';
|
3
3
|
import { PlacementAxis } from '../../../shared';
|
4
4
|
import { Props } from '../../../tasty';
|
5
5
|
interface TooltipContextProps {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { ForwardedRef, ReactElement, RefObject } from 'react';
|
2
|
-
import { FilterFn } from '@react-stately/combobox';
|
3
|
-
import { Item } from '@react-stately/collections';
|
4
2
|
import { CubeSelectBaseProps } from '../Select/Select';
|
5
3
|
import type { CollectionBase, KeyboardDelegate, LoadingState } from '@react-types/shared';
|
6
4
|
import type { ComboBoxProps } from '@react-types/combobox';
|
7
|
-
|
5
|
+
type FilterFn = (textValue: string, inputValue: string) => boolean;
|
6
|
+
export interface CubeComboBoxProps<T> extends Omit<CubeSelectBaseProps<T>, 'onOpenChange' | 'onBlur' | 'onFocus' | 'validate'>, ComboBoxProps<T>, CollectionBase<T> {
|
7
|
+
validate?: ComboBoxProps<T>['validate'];
|
8
8
|
icon?: ReactElement;
|
9
9
|
multiLine?: boolean;
|
10
10
|
autoComplete?: string;
|
@@ -28,5 +28,6 @@ export interface CubeComboBoxProps<T> extends Omit<CubeSelectBaseProps<T>, 'onOp
|
|
28
28
|
export declare const ComboBox: (<T>(props: CubeComboBoxProps<T> & {
|
29
29
|
ref?: ForwardedRef<HTMLDivElement> | undefined;
|
30
30
|
}) => JSX.Element) & {
|
31
|
-
Item:
|
31
|
+
Item: any;
|
32
32
|
};
|
33
|
+
export {};
|
@@ -18,15 +18,14 @@ type ItemComponent = <T>(props: ItemProps<T> & PartialMenuButton & {
|
|
18
18
|
wrapper?: (item: ReactElement) => ReactElement;
|
19
19
|
}) => JSX.Element;
|
20
20
|
declare const Item: ItemComponent;
|
21
|
-
declare const Section: <T>(props: import("@react-types/shared").SectionProps<T>) => JSX.Element;
|
22
21
|
declare const __Menu: (<T>(props: CubeMenuProps<T> & {
|
23
22
|
ref?: DOMRef<HTMLUListElement> | undefined;
|
24
23
|
}) => ReactElement) & {
|
25
24
|
Item: typeof Item;
|
26
|
-
Section:
|
25
|
+
Section: any;
|
27
26
|
} & {
|
28
27
|
Item: ItemComponent;
|
29
|
-
Section:
|
28
|
+
Section: any;
|
30
29
|
displayName: string;
|
31
30
|
};
|
32
31
|
export { __Menu as Menu };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Key } from 'react';
|
2
2
|
import { Node } from '@react-types/shared';
|
3
|
-
import { TreeState } from '
|
3
|
+
import { TreeState } from 'react-stately';
|
4
4
|
import { Styles } from '../../../tasty';
|
5
5
|
import { MenuSelectionType } from './MenuButton';
|
6
6
|
export interface MenuItemProps<T> {
|
@@ -1,18 +1,22 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
-
import { PositionProps } from '@react-types/overlays';
|
3
2
|
import { MenuTriggerProps as BaseTriggerProps } from '@react-types/menu';
|
3
|
+
import { Placement, PositionProps } from '@react-types/overlays';
|
4
4
|
export type CubeMenuTriggerProps = BaseTriggerProps & PositionProps & {
|
5
|
-
trigger?: string;
|
6
5
|
isDisabled?: boolean;
|
7
6
|
children: ReactNode[];
|
7
|
+
direction?: Placement;
|
8
|
+
align?: 'start' | 'end';
|
9
|
+
closeOnSelect?: boolean;
|
8
10
|
};
|
9
11
|
/**
|
10
12
|
* The MenuTrigger serves as a wrapper around a Menu and its associated trigger,
|
11
13
|
* linking the Menu's open state with the trigger's press state.
|
12
14
|
*/
|
13
15
|
declare let _MenuTrigger: React.ForwardRefExoticComponent<BaseTriggerProps & PositionProps & {
|
14
|
-
trigger?: string | undefined;
|
15
16
|
isDisabled?: boolean | undefined;
|
16
17
|
children: ReactNode[];
|
18
|
+
direction?: Placement | undefined;
|
19
|
+
align?: "end" | "start" | undefined;
|
20
|
+
closeOnSelect?: boolean | undefined;
|
17
21
|
} & React.RefAttributes<import("@react-types/shared").DOMRefValue<HTMLElement>>>;
|
18
22
|
export { _MenuTrigger as MenuTrigger };
|