@cube-dev/ui-kit 0.27.2 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +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 +6 -7
- package/cjs/components/forms/DatePicker/DateInputBase.js +6 -5
- package/cjs/components/forms/DatePicker/DatePicker.js +7 -8
- 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 +6 -7
- package/cjs/components/forms/DatePicker/DatePickerSegment.js +3 -3
- package/cjs/components/forms/DatePicker/DateRangePicker.js +7 -8
- package/cjs/components/forms/DatePicker/TimeInput.js +6 -7
- 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 +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 +6 -7
- package/cjs/components/other/Calendar/CalendarCell.js +3 -3
- package/cjs/components/other/Calendar/CalendarGrid.js +4 -5
- 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 +3 -4
- package/es/components/forms/DatePicker/DateInputBase.js +4 -3
- package/es/components/forms/DatePicker/DatePicker.js +3 -4
- 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 +3 -4
- package/es/components/forms/DatePicker/DatePickerSegment.js +2 -2
- package/es/components/forms/DatePicker/DateRangePicker.js +3 -4
- package/es/components/forms/DatePicker/TimeInput.js +3 -4
- 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 +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 +3 -4
- package/es/components/other/Calendar/CalendarCell.js +2 -2
- package/es/components/other/Calendar/CalendarGrid.js +2 -3
- 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/DatePickerSegment.d.ts +1 -1
- 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/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/es/tokens.js
CHANGED
package/es/type-checks.js
CHANGED
package/es/utils/ResizeSensor.js
CHANGED
package/es/utils/modules.js
CHANGED
package/es/utils/promise.js
CHANGED
package/es/utils/random.js
CHANGED
package/es/utils/range.js
CHANGED
package/es/utils/react/Slots.js
CHANGED
package/es/utils/react/chain.js
CHANGED
package/es/utils/react/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.28.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { useEffect, useState } from 'react';
|
9
|
-
import { useFocus as reactAriaUseFocus, useFocusVisible
|
9
|
+
import { useFocus as reactAriaUseFocus, useFocusVisible } from 'react-aria';
|
10
10
|
export function useFocus({ isDisabled }, onlyVisible = false) {
|
11
11
|
useEffect(() => {
|
12
12
|
setIsFocused(false);
|
@@ -14,6 +14,8 @@ export function useFocus({ isDisabled }, onlyVisible = false) {
|
|
14
14
|
let [isFocused, setIsFocused] = useState(false);
|
15
15
|
let { isFocusVisible } = useFocusVisible({});
|
16
16
|
let { focusProps } = reactAriaUseFocus({
|
17
|
+
isDisabled,
|
18
|
+
// @ts-ignore
|
17
19
|
onFocusChange: setIsFocused,
|
18
20
|
});
|
19
21
|
return {
|
package/es/utils/react/useId.js
CHANGED
package/es/utils/transitions.js
CHANGED
package/es/utils/tree.js
CHANGED
package/es/utils/warnings.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cube-dev/ui-kit",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.28.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;
|
@@ -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;
|
@@ -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>;
|