@cube-dev/ui-kit 0.39.1 → 0.40.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 +2 -3
- package/cjs/_internal/hooks/use-deprecation-warning.js +2 -3
- package/cjs/_internal/hooks/use-effect-once.js +2 -3
- package/cjs/_internal/hooks/use-event.js +2 -3
- package/cjs/_internal/hooks/use-is-first-render.js +2 -3
- package/cjs/_internal/hooks/use-sync-ref.js +2 -3
- 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 +2 -3
- package/cjs/_internal/hooks/use-update-effect.js +2 -3
- package/cjs/_internal/hooks/use-warn.js +2 -3
- package/cjs/_internal/index.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 +2 -3
- package/cjs/components/Root.js +2 -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 +3 -3
- 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 +5 -5
- package/cjs/components/content/ActiveZone/ActiveZone.js +1 -1
- 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 +2 -3
- 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 +1 -1
- 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 +2 -3
- 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 → fields}/Checkbox/Checkbox.js +9 -9
- package/cjs/components/{forms → fields}/Checkbox/CheckboxGroup.js +6 -7
- package/cjs/components/{forms → fields}/Checkbox/context.js +1 -1
- package/cjs/components/{forms/Slider → fields/Checkbox}/index.js +3 -4
- package/cjs/components/{pickers → fields}/ComboBox/ComboBox.js +13 -45
- package/cjs/components/fields/ComboBox/index.js +26 -0
- package/cjs/components/{forms → fields}/DatePicker/DateInput.js +5 -6
- package/cjs/components/{forms → fields}/DatePicker/DateInputBase.js +1 -1
- package/cjs/components/{forms → fields}/DatePicker/DatePicker.js +5 -6
- package/cjs/components/{forms → fields}/DatePicker/DatePickerButton.js +1 -1
- package/cjs/components/{forms → fields}/DatePicker/DatePickerElement.js +1 -1
- package/cjs/components/{forms → fields}/DatePicker/DatePickerInput.js +2 -3
- package/cjs/components/{forms → fields}/DatePicker/DatePickerSegment.js +2 -3
- package/cjs/components/{forms → fields}/DatePicker/DateRangePicker.js +5 -6
- package/cjs/components/{forms → fields}/DatePicker/DateRangeSeparatedPicker.js +5 -6
- package/cjs/components/{forms → fields}/DatePicker/TimeInput.js +5 -6
- package/cjs/components/{forms → fields}/DatePicker/index.js +2 -1
- package/cjs/components/{forms → fields}/DatePicker/intl.js +1 -1
- package/cjs/components/{forms → fields}/DatePicker/parseDate.js +2 -3
- package/cjs/components/{forms → fields}/DatePicker/props.js +1 -1
- package/cjs/components/{forms/Slider → fields/DatePicker}/types.js +1 -1
- package/cjs/components/{forms → fields}/DatePicker/utils.js +3 -4
- package/cjs/components/{forms → fields}/FileInput/FileInput.js +27 -15
- package/cjs/components/{forms → fields}/Input/Input.js +2 -2
- package/cjs/components/{forms → fields}/Input/index.js +1 -1
- package/cjs/components/{forms → fields}/NumberInput/NumberInput.js +5 -5
- package/cjs/components/{forms → fields}/NumberInput/StepButton.js +2 -3
- package/cjs/components/{forms → fields}/PasswordInput/PasswordInput.js +5 -5
- package/cjs/components/{forms → fields}/RadioGroup/Radio.js +8 -8
- package/cjs/components/{forms → fields}/RadioGroup/RadioGroup.js +6 -7
- package/cjs/components/{forms → fields}/RadioGroup/context.js +3 -3
- package/cjs/components/fields/RadioGroup/index.js +27 -0
- package/cjs/components/{forms → fields}/SearchInput/SearchInput.js +6 -4
- package/cjs/components/fields/SearchInput/index.js +26 -0
- package/cjs/components/{pickers → fields}/Select/Select.js +30 -30
- package/cjs/components/fields/Select/index.js +26 -0
- package/cjs/components/{forms → fields}/Slider/Gradation.js +2 -3
- package/cjs/components/{forms → fields}/Slider/Header.js +2 -3
- package/cjs/components/{forms → fields}/Slider/RangeSlider.js +1 -1
- package/cjs/components/{forms → fields}/Slider/Slider.js +1 -1
- package/cjs/components/{forms → fields}/Slider/SliderBase.js +7 -7
- package/cjs/components/{forms → fields}/Slider/SliderInput.js +2 -3
- package/cjs/components/{forms → fields}/Slider/SliderThumb.js +2 -3
- package/cjs/components/{forms → fields}/Slider/SliderTrack.js +2 -3
- package/cjs/components/{forms → fields}/Slider/elements.js +1 -1
- package/cjs/components/fields/Slider/index.js +31 -0
- package/cjs/components/{forms/FieldWrapper → fields/Slider}/types.js +1 -1
- package/cjs/components/{forms → fields}/Switch/Switch.js +8 -9
- package/cjs/components/fields/Switch/index.js +26 -0
- package/cjs/components/{forms → fields}/TextArea/TextArea.js +5 -5
- package/cjs/components/fields/TextArea/index.js +26 -0
- package/cjs/components/{forms → fields}/TextInput/TextInput.js +5 -4
- package/cjs/components/{forms → fields}/TextInput/TextInputBase.js +6 -7
- package/cjs/components/fields/TextInput/index.js +27 -0
- package/cjs/components/{forms → fields}/index.js +11 -5
- package/cjs/components/{forms → form}/FieldWrapper/FieldWrapper.js +9 -8
- package/cjs/components/{forms → form}/FieldWrapper/extract-field-wrapper-props.js +2 -3
- package/cjs/components/{forms → form}/FieldWrapper/index.js +1 -1
- package/cjs/components/{forms/Form/use-field → form/FieldWrapper}/types.js +1 -1
- package/cjs/components/{forms → form}/Form/Field.js +10 -11
- package/cjs/components/{forms → form}/Form/Form.js +9 -9
- package/cjs/components/{forms → form}/Form/Submit/Submit.js +3 -3
- package/cjs/components/{forms → form}/Form/Submit/index.js +1 -1
- package/cjs/components/{forms → form}/Form/SubmitError.js +3 -3
- package/cjs/components/{forms → form}/Form/index.js +3 -3
- package/cjs/components/{forms → form}/Form/types.js +1 -1
- package/cjs/components/{forms → form}/Form/use-field/index.js +1 -1
- package/cjs/components/form/Form/use-field/types.js +11 -0
- package/cjs/components/{forms → form}/Form/use-field/use-field-props.js +7 -8
- package/cjs/components/{forms → form}/Form/use-field/use-field.js +7 -8
- package/cjs/components/{forms → form}/Form/use-form.js +9 -6
- package/cjs/components/{forms → form}/Form/validation.js +4 -4
- package/cjs/components/{forms → form}/Label.js +5 -5
- package/cjs/components/form/index.js +29 -0
- package/cjs/components/{forms → form}/wrapper.js +4 -5
- 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 +2 -3
- package/cjs/components/navigation/Link/Link.js +1 -1
- package/cjs/components/organisms/FileTabs/FileTabs.js +2 -3
- package/cjs/components/organisms/Modal/Modal.js +2 -3
- package/cjs/components/organisms/StatsCard/StatsCard.js +2 -3
- package/cjs/components/other/Base64Upload/Base64Upload.js +1 -1
- package/cjs/components/other/Calendar/Calendar.js +1 -1
- package/cjs/components/other/Calendar/CalendarCell.js +2 -3
- package/cjs/components/other/Calendar/CalendarGrid.js +2 -3
- package/cjs/components/other/Calendar/RangeCalendar.js +1 -1
- package/cjs/components/other/CloudLogo/CloudLogo.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialog.js +2 -2
- package/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +3 -4
- package/cjs/components/overlays/AlertDialog/AlertDialogZone.js +2 -3
- 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 +1 -1
- package/cjs/components/overlays/Dialog/DialogContainer.js +2 -3
- package/cjs/components/overlays/Dialog/DialogForm.js +5 -7
- package/cjs/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/cjs/components/overlays/Dialog/context.js +3 -3
- package/cjs/components/overlays/Dialog/index.js +1 -1
- package/cjs/components/overlays/Modal/Modal.js +1 -1
- package/cjs/components/overlays/Modal/OpenTransition.js +3 -4
- package/cjs/components/overlays/Modal/Overlay.js +1 -1
- package/cjs/components/overlays/Modal/Popover.js +1 -1
- package/cjs/components/overlays/Modal/Tray.js +1 -1
- 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 +2 -3
- package/cjs/components/overlays/NewNotifications/Bar/TransitionComponent.js +2 -3
- package/cjs/components/overlays/NewNotifications/Bar/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +3 -4
- package/cjs/components/overlays/NewNotifications/Dialog/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/Notification.js +2 -3
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationAction.js +2 -3
- 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 +3 -4
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationView.js +1 -1
- 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 +3 -3
- package/cjs/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +2 -3
- package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +2 -3
- package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +2 -3
- 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 +2 -3
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-api.js +2 -3
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-list.js +2 -3
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-observer.js +2 -3
- 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 +2 -3
- package/cjs/components/overlays/OverlayWrapper.js +2 -3
- package/cjs/components/overlays/Toasts/Toast.js +2 -3
- 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 +2 -3
- package/cjs/components/overlays/Tooltip/Tooltip.js +1 -1
- package/cjs/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/cjs/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/cjs/components/overlays/Tooltip/context.js +1 -1
- package/cjs/components/overlays/Tooltip/index.js +27 -0
- package/cjs/components/pickers/Menu/Menu.js +1 -1
- package/cjs/components/pickers/Menu/MenuButton.js +2 -3
- package/cjs/components/pickers/Menu/MenuItem.js +2 -3
- package/cjs/components/pickers/Menu/MenuSection.js +2 -3
- package/cjs/components/pickers/Menu/MenuTrigger.js +1 -1
- package/cjs/components/pickers/Menu/context.js +3 -3
- package/cjs/components/pickers/Menu/styled.js +1 -1
- package/cjs/components/portal/Portal.js +2 -3
- package/cjs/components/portal/PortalProvider.js +3 -3
- 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 +2 -3
- package/cjs/components/shared/InvalidIcon.js +1 -1
- package/cjs/components/shared/ValidIcon.js +1 -1
- package/cjs/components/status/LoadingAnimation/LoadingAnimation.js +2 -3
- 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 +2 -3
- 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/AiIcon.js +1 -1
- package/cjs/icons/AreaChartIcon.js +1 -1
- package/cjs/icons/BackwardIcon.js +1 -1
- package/cjs/icons/BarChartIcon.js +1 -1
- package/cjs/icons/BellFilledIcon.js +1 -1
- package/cjs/icons/BellIcon.js +1 -1
- package/cjs/icons/BooleanIcon.js +1 -1
- package/cjs/icons/CalendarEditIcon.js +1 -1
- package/cjs/icons/CalendarIcon.js +1 -1
- package/cjs/icons/CaretDownIcon.js +1 -1
- package/cjs/icons/CaretUpIcon.js +1 -1
- package/cjs/icons/CheckCircleFilledIcon.js +1 -1
- package/cjs/icons/CheckCircleIcon.js +1 -1
- package/cjs/icons/CheckIcon.js +1 -1
- package/cjs/icons/CircleFilledIcon.js +1 -1
- package/cjs/icons/CloseCircleFilledIcon.js +1 -1
- package/cjs/icons/CloseCircleIcon.js +1 -1
- package/cjs/icons/CloseIcon.js +1 -1
- package/cjs/icons/CopyIcon.js +1 -1
- package/cjs/icons/CountIcon.js +1 -1
- package/cjs/icons/CubeIcon.js +1 -1
- package/cjs/icons/DangerIcon.js +1 -1
- package/cjs/icons/DashboardIcon.js +1 -1
- package/cjs/icons/DonutIcon.js +1 -1
- package/cjs/icons/DownIcon.js +1 -1
- package/cjs/icons/ExclamationCircleFilledIcon.js +1 -1
- package/cjs/icons/ExclamationCircleIcon.js +1 -1
- package/cjs/icons/ExclamationIcon.js +1 -1
- package/cjs/icons/EyeIcon.js +1 -1
- package/cjs/icons/EyeInvisibleIcon.js +1 -1
- package/cjs/icons/FilterIcon.js +1 -1
- package/cjs/icons/ForwardIcon.js +1 -1
- package/cjs/icons/IconContainer.js +1 -1
- package/cjs/icons/InfoCircleIcon.js +1 -1
- package/cjs/icons/InfoIcon.js +1 -1
- package/cjs/icons/KeyIcon.js +1 -1
- package/cjs/icons/LeftIcon.js +1 -1
- package/cjs/icons/LineChartIcon.js +1 -1
- package/cjs/icons/LoadingIcon.js +1 -1
- package/cjs/icons/LockFilledIcon.js +1 -1
- package/cjs/icons/LockIcon.js +1 -1
- package/cjs/icons/MoreIcon.js +1 -1
- package/cjs/icons/NotAllowedIcon.js +1 -1
- package/cjs/icons/NumberIcon.js +1 -1
- package/cjs/icons/PauseCircleFilledIcon.js +1 -1
- package/cjs/icons/PauseCircleIcon.js +1 -1
- package/cjs/icons/PieChartIcon.js +1 -1
- package/cjs/icons/PlusIcon.js +1 -1
- package/cjs/icons/ReloadIcon.js +1 -1
- package/cjs/icons/RightIcon.js +1 -1
- package/cjs/icons/SearchIcon.js +1 -1
- package/cjs/icons/SettingsIcon.js +1 -1
- package/cjs/icons/SlashIcon.js +1 -1
- package/cjs/icons/SparklesIcon.js +1 -1
- package/cjs/icons/SqlIcon.js +1 -1
- package/cjs/icons/StatsIcon.js +1 -1
- package/cjs/icons/StringIcon.js +1 -1
- package/cjs/icons/SwitchIcon.js +1 -1
- package/cjs/icons/TableIcon.js +1 -1
- package/cjs/icons/ThumbsDownIcon.js +1 -1
- package/cjs/icons/ThumbsUpIcon.js +1 -1
- package/cjs/icons/ThunderboltCrossedIcon.js +1 -1
- package/cjs/icons/ThunderboltFilledIcon.js +1 -1
- package/cjs/icons/ThunderboltIcon.js +1 -1
- package/cjs/icons/TimeIcon.js +1 -1
- package/cjs/icons/UnlockIcon.js +1 -1
- package/cjs/icons/UpIcon.js +1 -1
- package/cjs/icons/ViewIcon.js +1 -1
- package/cjs/icons/WarningFilledIcon.js +1 -1
- package/cjs/icons/WarningIcon.js +1 -1
- package/cjs/icons/index.js +1 -1
- package/cjs/icons/wrap-icon.js +2 -3
- package/cjs/index.js +6 -38
- package/cjs/provider.js +4 -4
- package/cjs/providers/TrackingProvider.js +4 -4
- package/cjs/services/notification.js +1 -1
- package/cjs/shared/form.js +1 -1
- package/cjs/shared/index.js +1 -1
- package/cjs/stories/Form.stories.js +1 -1
- package/cjs/stories/FormFieldArgs.js +1 -1
- package/cjs/stories/Layout.stories.js +1 -1
- package/cjs/stories/Tasty.stories.js +1 -1
- package/cjs/stories/components/ConfirmDeletionDialogForm.js +2 -3
- package/cjs/stories/components/DialogFormApp.js +2 -3
- package/cjs/stories/components/StyledButton.js +3 -3
- package/cjs/stories/lists/baseProps.js +1 -1
- package/cjs/tasty/index.js +1 -1
- package/cjs/tasty/providers/BreakpointsProvider.js +3 -3
- package/cjs/tasty/styles/align.js +2 -3
- package/cjs/tasty/styles/border.js +2 -3
- package/cjs/tasty/styles/boxShadow.combinator.js +2 -3
- package/cjs/tasty/styles/color.js +2 -3
- package/cjs/tasty/styles/createStyle.js +2 -3
- package/cjs/tasty/styles/dimension.js +2 -3
- package/cjs/tasty/styles/display.js +2 -3
- package/cjs/tasty/styles/fade.js +2 -3
- package/cjs/tasty/styles/fill.js +2 -3
- package/cjs/tasty/styles/flow.js +2 -3
- package/cjs/tasty/styles/font.js +2 -3
- package/cjs/tasty/styles/fontStyle.js +2 -3
- package/cjs/tasty/styles/gap.js +2 -3
- package/cjs/tasty/styles/groupRadius.js +2 -3
- package/cjs/tasty/styles/height.js +2 -3
- package/cjs/tasty/styles/index.js +1 -1
- package/cjs/tasty/styles/inset.js +2 -3
- package/cjs/tasty/styles/justify.js +2 -3
- package/cjs/tasty/styles/list.js +1 -1
- package/cjs/tasty/styles/margin.js +2 -3
- package/cjs/tasty/styles/marginBlock.js +2 -3
- package/cjs/tasty/styles/marginInline.js +2 -3
- package/cjs/tasty/styles/outline.js +2 -3
- package/cjs/tasty/styles/padding.js +2 -3
- package/cjs/tasty/styles/paddingBlock.js +2 -3
- package/cjs/tasty/styles/paddingInline.js +2 -3
- package/cjs/tasty/styles/predefined.js +5 -5
- package/cjs/tasty/styles/preset.js +2 -3
- package/cjs/tasty/styles/radius.js +2 -3
- package/cjs/tasty/styles/reset.js +2 -3
- package/cjs/tasty/styles/shadow.js +2 -3
- package/cjs/tasty/styles/styledScrollbar.js +2 -3
- package/cjs/tasty/styles/transition.js +3 -3
- package/cjs/tasty/styles/types.js +1 -1
- package/cjs/tasty/styles/width.js +2 -3
- package/cjs/tasty/tasty.js +3 -3
- package/cjs/tasty/types.js +1 -1
- package/cjs/tasty/utils/cache-wrapper.js +2 -3
- package/cjs/tasty/utils/case-converter.js +2 -3
- package/cjs/tasty/utils/colors.js +2 -3
- package/cjs/tasty/utils/dotize.js +1 -1
- package/cjs/tasty/utils/filterBaseProps.js +2 -3
- package/cjs/tasty/utils/getDisplayName.js +2 -3
- package/cjs/tasty/utils/index.js +2 -3
- package/cjs/tasty/utils/mergeStyles.js +2 -3
- package/cjs/tasty/utils/modAttrs.js +1 -1
- package/cjs/tasty/utils/renderStyles.js +3 -4
- package/cjs/tasty/utils/responsive.js +4 -5
- package/cjs/tasty/utils/string.js +2 -3
- package/cjs/tasty/utils/styles.js +24 -24
- package/cjs/tasty/utils/warnings.js +3 -4
- package/cjs/tokens.js +1 -1
- package/cjs/type-checks.js +2 -2
- package/cjs/utils/ResizeSensor.js +1 -1
- package/cjs/utils/modules.js +2 -3
- package/cjs/utils/promise.js +2 -3
- package/cjs/utils/random.js +2 -3
- package/cjs/utils/range.js +2 -3
- package/cjs/utils/react/Slots.js +4 -5
- package/cjs/utils/react/chain.js +2 -3
- package/cjs/utils/react/index.js +1 -1
- package/cjs/utils/react/interactions.js +2 -3
- package/cjs/utils/react/isTextOnly.js +2 -3
- package/cjs/utils/react/mapProps.js +3 -4
- package/cjs/utils/react/mergeProps.js +2 -3
- package/cjs/utils/react/nullableValue.js +7 -8
- package/cjs/utils/react/useCombinedRefs.js +2 -3
- package/cjs/utils/react/useId.js +4 -5
- package/cjs/utils/react/useLayoutEffect.js +1 -1
- package/cjs/utils/react/useViewportSize.js +2 -3
- package/cjs/utils/react/wrapNodeIfPlain.js +2 -3
- package/cjs/utils/transitions.js +1 -1
- package/cjs/utils/tree.js +2 -3
- package/cjs/utils/warnings.js +5 -6
- 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/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 +1 -1
- package/es/components/actions/Action.js +1 -1
- package/es/components/actions/Button/Button.js +1 -1
- package/es/components/actions/Button/Submit.js +2 -2
- 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 +1 -1
- package/es/components/content/ActiveZone/ActiveZone.js +1 -1
- 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 +1 -1
- 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 → fields}/Checkbox/Checkbox.js +5 -5
- package/es/components/{forms → fields}/Checkbox/CheckboxGroup.js +2 -3
- package/es/components/{forms → fields}/Checkbox/context.js +1 -1
- package/es/components/fields/Checkbox/index.js +11 -0
- package/es/components/{pickers → fields}/ComboBox/ComboBox.js +8 -40
- package/es/components/fields/ComboBox/index.js +10 -0
- package/es/components/{forms → fields}/DatePicker/DateInput.js +3 -4
- package/es/components/{forms → fields}/DatePicker/DateInputBase.js +1 -1
- package/es/components/{forms → fields}/DatePicker/DatePicker.js +3 -4
- package/es/components/{forms → fields}/DatePicker/DatePickerButton.js +1 -1
- package/es/components/{forms → fields}/DatePicker/DatePickerElement.js +1 -1
- package/es/components/{forms → fields}/DatePicker/DatePickerInput.js +2 -2
- package/es/components/{forms → fields}/DatePicker/DatePickerSegment.js +1 -1
- package/es/components/{forms → fields}/DatePicker/DateRangePicker.js +3 -4
- package/es/components/{forms → fields}/DatePicker/DateRangeSeparatedPicker.js +3 -4
- package/es/components/{forms → fields}/DatePicker/TimeInput.js +3 -4
- package/es/components/{forms → fields}/DatePicker/index.js +2 -1
- package/es/components/{forms → fields}/DatePicker/intl.js +1 -1
- package/es/components/{forms → fields}/DatePicker/parseDate.js +1 -1
- package/es/components/{forms → fields}/DatePicker/props.js +1 -1
- package/es/components/{forms/FieldWrapper → fields/DatePicker}/types.js +1 -1
- package/es/components/{forms → fields}/DatePicker/utils.js +1 -1
- package/es/components/{forms → fields}/FileInput/FileInput.js +26 -14
- package/es/components/{forms → fields}/Input/Input.js +2 -2
- package/es/components/{forms → fields}/Input/index.js +1 -1
- package/es/components/{forms → fields}/NumberInput/NumberInput.js +3 -3
- package/es/components/{forms → fields}/NumberInput/StepButton.js +1 -1
- package/es/components/{forms → fields}/PasswordInput/PasswordInput.js +3 -3
- package/es/components/{forms → fields}/RadioGroup/Radio.js +3 -3
- package/es/components/{forms → fields}/RadioGroup/RadioGroup.js +2 -3
- package/es/components/{forms → fields}/RadioGroup/context.js +1 -1
- package/es/components/fields/RadioGroup/index.js +11 -0
- package/es/components/{forms → fields}/SearchInput/SearchInput.js +3 -2
- package/es/components/fields/SearchInput/index.js +10 -0
- package/es/components/{pickers → fields}/Select/Select.js +8 -8
- package/es/components/fields/Select/index.js +10 -0
- package/es/components/{forms → fields}/Slider/Gradation.js +1 -1
- package/es/components/{forms → fields}/Slider/Header.js +1 -1
- package/es/components/{forms → fields}/Slider/RangeSlider.js +1 -1
- package/es/components/{forms → fields}/Slider/Slider.js +1 -1
- package/es/components/{forms → fields}/Slider/SliderBase.js +3 -3
- package/es/components/{forms → fields}/Slider/SliderInput.js +1 -1
- package/es/components/{forms → fields}/Slider/SliderThumb.js +1 -1
- package/es/components/{forms → fields}/Slider/SliderTrack.js +1 -1
- package/es/components/{forms → fields}/Slider/elements.js +1 -1
- package/es/components/{forms → fields}/Slider/index.js +2 -1
- package/es/components/{forms → fields}/Slider/types.js +1 -1
- package/es/components/{forms → fields}/Switch/Switch.js +3 -4
- package/es/components/fields/Switch/index.js +10 -0
- package/es/components/{forms → fields}/TextArea/TextArea.js +3 -3
- package/es/components/fields/TextArea/index.js +10 -0
- package/es/components/{forms → fields}/TextInput/TextInput.js +3 -2
- package/es/components/{forms → fields}/TextInput/TextInputBase.js +3 -4
- package/es/components/fields/TextInput/index.js +11 -0
- package/es/components/fields/index.js +23 -0
- package/es/components/{forms → form}/FieldWrapper/FieldWrapper.js +6 -5
- package/es/components/{forms → form}/FieldWrapper/extract-field-wrapper-props.js +1 -1
- package/es/components/{forms → form}/FieldWrapper/index.js +1 -1
- package/es/components/{forms/Form → form/FieldWrapper}/types.js +1 -1
- package/es/components/{forms → form}/Form/Field.js +4 -4
- package/es/components/{forms → form}/Form/Form.js +3 -3
- package/es/components/{forms → form}/Form/Submit/Submit.js +2 -2
- package/es/components/{forms → form}/Form/Submit/index.js +1 -1
- package/es/components/{forms → form}/Form/SubmitError.js +2 -2
- package/es/components/{forms → form}/Form/index.js +2 -2
- package/es/components/{forms/Form/use-field → form/Form}/types.js +1 -1
- package/es/components/{forms → form}/Form/use-field/index.js +1 -1
- package/es/components/form/Form/use-field/types.js +10 -0
- package/es/components/{forms → form}/Form/use-field/use-field-props.js +3 -3
- package/es/components/{forms → form}/Form/use-field/use-field.js +3 -3
- package/es/components/{forms → form}/Form/use-form.js +5 -2
- package/es/components/{forms → form}/Form/validation.js +1 -1
- package/es/components/{forms → form}/Label.js +2 -2
- package/es/components/form/index.js +13 -0
- package/es/components/{forms → form}/wrapper.js +2 -2
- 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 +1 -1
- package/es/components/other/Calendar/CalendarCell.js +1 -1
- package/es/components/other/Calendar/CalendarGrid.js +1 -1
- package/es/components/other/Calendar/RangeCalendar.js +2 -2
- package/es/components/other/CloudLogo/CloudLogo.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialog.js +2 -2
- 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 +1 -1
- package/es/components/overlays/Dialog/DialogContainer.js +1 -1
- package/es/components/overlays/Dialog/DialogForm.js +2 -3
- package/es/components/overlays/Dialog/DialogTrigger.js +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/es/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/es/components/overlays/Tooltip/TooltipTrigger.js +2 -2
- package/es/components/overlays/Tooltip/context.js +1 -1
- package/es/components/overlays/Tooltip/index.js +11 -0
- package/es/components/pickers/Menu/Menu.js +1 -1
- package/es/components/pickers/Menu/MenuButton.js +1 -1
- package/es/components/pickers/Menu/MenuItem.js +1 -1
- package/es/components/pickers/Menu/MenuSection.js +1 -1
- package/es/components/pickers/Menu/MenuTrigger.js +2 -2
- package/es/components/pickers/Menu/context.js +1 -1
- package/es/components/pickers/Menu/styled.js +1 -1
- 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/AiIcon.js +1 -1
- package/es/icons/AreaChartIcon.js +1 -1
- package/es/icons/BackwardIcon.js +1 -1
- package/es/icons/BarChartIcon.js +1 -1
- package/es/icons/BellFilledIcon.js +1 -1
- package/es/icons/BellIcon.js +1 -1
- package/es/icons/BooleanIcon.js +1 -1
- package/es/icons/CalendarEditIcon.js +1 -1
- package/es/icons/CalendarIcon.js +1 -1
- package/es/icons/CaretDownIcon.js +1 -1
- package/es/icons/CaretUpIcon.js +1 -1
- package/es/icons/CheckCircleFilledIcon.js +1 -1
- package/es/icons/CheckCircleIcon.js +1 -1
- package/es/icons/CheckIcon.js +1 -1
- package/es/icons/CircleFilledIcon.js +1 -1
- package/es/icons/CloseCircleFilledIcon.js +1 -1
- package/es/icons/CloseCircleIcon.js +1 -1
- package/es/icons/CloseIcon.js +1 -1
- package/es/icons/CopyIcon.js +1 -1
- package/es/icons/CountIcon.js +1 -1
- package/es/icons/CubeIcon.js +1 -1
- package/es/icons/DangerIcon.js +1 -1
- package/es/icons/DashboardIcon.js +1 -1
- package/es/icons/DonutIcon.js +1 -1
- package/es/icons/DownIcon.js +1 -1
- package/es/icons/ExclamationCircleFilledIcon.js +1 -1
- package/es/icons/ExclamationCircleIcon.js +1 -1
- package/es/icons/ExclamationIcon.js +1 -1
- package/es/icons/EyeIcon.js +1 -1
- package/es/icons/EyeInvisibleIcon.js +1 -1
- package/es/icons/FilterIcon.js +1 -1
- package/es/icons/ForwardIcon.js +1 -1
- package/es/icons/IconContainer.js +1 -1
- package/es/icons/InfoCircleIcon.js +1 -1
- package/es/icons/InfoIcon.js +1 -1
- package/es/icons/KeyIcon.js +1 -1
- package/es/icons/LeftIcon.js +1 -1
- package/es/icons/LineChartIcon.js +1 -1
- package/es/icons/LoadingIcon.js +1 -1
- package/es/icons/LockFilledIcon.js +1 -1
- package/es/icons/LockIcon.js +1 -1
- package/es/icons/MoreIcon.js +1 -1
- package/es/icons/NotAllowedIcon.js +1 -1
- package/es/icons/NumberIcon.js +1 -1
- package/es/icons/PauseCircleFilledIcon.js +1 -1
- package/es/icons/PauseCircleIcon.js +1 -1
- package/es/icons/PieChartIcon.js +1 -1
- package/es/icons/PlusIcon.js +1 -1
- package/es/icons/ReloadIcon.js +1 -1
- package/es/icons/RightIcon.js +1 -1
- package/es/icons/SearchIcon.js +1 -1
- package/es/icons/SettingsIcon.js +1 -1
- package/es/icons/SlashIcon.js +1 -1
- package/es/icons/SparklesIcon.js +1 -1
- package/es/icons/SqlIcon.js +1 -1
- package/es/icons/StatsIcon.js +1 -1
- package/es/icons/StringIcon.js +1 -1
- package/es/icons/SwitchIcon.js +1 -1
- package/es/icons/TableIcon.js +1 -1
- package/es/icons/ThumbsDownIcon.js +1 -1
- package/es/icons/ThumbsUpIcon.js +1 -1
- package/es/icons/ThunderboltCrossedIcon.js +1 -1
- package/es/icons/ThunderboltFilledIcon.js +1 -1
- package/es/icons/ThunderboltIcon.js +1 -1
- package/es/icons/TimeIcon.js +1 -1
- package/es/icons/UnlockIcon.js +1 -1
- package/es/icons/UpIcon.js +1 -1
- package/es/icons/ViewIcon.js +1 -1
- package/es/icons/WarningFilledIcon.js +1 -1
- package/es/icons/WarningIcon.js +1 -1
- package/es/icons/index.js +1 -1
- package/es/icons/wrap-icon.js +1 -1
- package/es/index.js +4 -21
- 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/Form.stories.js +1 -1
- package/es/stories/FormFieldArgs.js +1 -1
- package/es/stories/Layout.stories.js +1 -1
- package/es/stories/Tasty.stories.js +1 -1
- package/es/stories/components/ConfirmDeletionDialogForm.js +2 -2
- 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/fade.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/inset.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 +2 -2
- 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 +1 -1
- 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 +1 -16
- package/types/components/Block.d.ts +0 -1
- package/types/components/HiddenInput.d.ts +0 -1
- package/types/components/actions/Action.d.ts +2 -2
- package/types/components/actions/Button/Button.d.ts +1 -1
- package/types/components/actions/Button/Submit.d.ts +0 -1
- package/types/components/actions/ButtonGroup/ButtonGroup.d.ts +0 -1
- package/types/components/actions/index.d.ts +1 -2
- package/types/components/actions/use-action.d.ts +2 -2
- package/types/components/content/Alert/Alert.d.ts +0 -1
- package/types/components/content/Badge/Badge.d.ts +0 -1
- package/types/components/content/Card/Card.d.ts +0 -1
- package/types/components/content/Content.d.ts +0 -1
- package/types/components/content/CopySnippet/CopySnippet.d.ts +6 -238
- package/types/components/content/Divider.d.ts +0 -1
- package/types/components/content/Footer.d.ts +0 -1
- package/types/components/content/Header.d.ts +0 -1
- package/types/components/content/Paragraph.d.ts +0 -1
- package/types/components/content/Placeholder/Placeholder.d.ts +0 -1
- package/types/components/content/PrismCode/PrismCode.d.ts +0 -1
- package/types/components/content/Title.d.ts +0 -1
- package/types/components/{forms → fields}/Checkbox/Checkbox.d.ts +9 -6
- package/types/components/{forms → fields}/Checkbox/CheckboxGroup.d.ts +3 -4
- package/types/components/{forms → fields}/Checkbox/context.d.ts +0 -1
- package/types/components/fields/Checkbox/index.d.ts +2 -0
- package/types/components/{pickers → fields}/ComboBox/ComboBox.d.ts +8 -5
- package/types/components/fields/ComboBox/index.d.ts +1 -0
- package/types/components/{forms → fields}/DatePicker/DateInput.d.ts +1 -1
- package/types/components/{forms → fields}/DatePicker/DatePicker.d.ts +3 -2
- package/types/components/fields/DatePicker/DatePickerButton.d.ts +5 -0
- package/types/components/{forms → fields}/DatePicker/DatePickerElement.d.ts +4 -1
- package/types/components/{forms → fields}/DatePicker/DatePickerInput.d.ts +4 -3
- package/types/components/{forms → fields}/DatePicker/DatePickerSegment.d.ts +3 -2
- package/types/components/{forms → fields}/DatePicker/DateRangePicker.d.ts +3 -2
- package/types/components/{forms → fields}/DatePicker/DateRangeSeparatedPicker.d.ts +3 -2
- package/types/components/{forms → fields}/DatePicker/TimeInput.d.ts +2 -2
- package/types/components/{forms → fields}/DatePicker/index.d.ts +1 -0
- package/types/components/fields/DatePicker/props.d.ts +3 -0
- package/types/components/fields/DatePicker/types.d.ts +29 -0
- package/types/components/{forms → fields}/DatePicker/utils.d.ts +0 -1
- package/types/components/{forms → fields}/FileInput/FileInput.d.ts +6 -1
- package/types/components/{forms → fields}/Input/Input.d.ts +1 -1
- package/types/components/{forms → fields}/NumberInput/NumberInput.d.ts +5 -7
- package/types/components/{forms → fields}/PasswordInput/PasswordInput.d.ts +5 -6
- package/types/components/{forms → fields}/RadioGroup/Radio.d.ts +20 -34
- package/types/components/{forms → fields}/RadioGroup/RadioGroup.d.ts +7 -4
- package/types/components/{forms → fields}/RadioGroup/context.d.ts +0 -1
- package/types/components/fields/RadioGroup/index.d.ts +2 -0
- package/types/components/fields/SearchInput/SearchInput.d.ts +11 -0
- package/types/components/fields/SearchInput/index.d.ts +1 -0
- package/types/components/{pickers → fields}/Select/Select.d.ts +10 -5
- package/types/components/fields/Select/index.d.ts +1 -0
- package/types/components/{forms → fields}/Slider/Gradation.d.ts +1 -1
- package/types/components/{forms → fields}/Slider/RangeSlider.d.ts +1 -2
- package/types/components/{forms → fields}/Slider/Slider.d.ts +1 -2
- package/types/components/{forms → fields}/Slider/SliderBase.d.ts +5 -3
- package/types/components/{forms → fields}/Slider/SliderInput.d.ts +1 -1
- package/types/components/{forms → fields}/Slider/SliderThumb.d.ts +1 -1
- package/types/components/{forms → fields}/Slider/SliderTrack.d.ts +1 -1
- package/types/components/{forms → fields}/Slider/elements.d.ts +0 -1
- package/types/components/fields/Slider/index.d.ts +5 -0
- package/types/components/{forms → fields}/Slider/types.d.ts +2 -1
- package/types/components/{forms → fields}/Switch/Switch.d.ts +5 -4
- package/types/components/fields/Switch/index.d.ts +1 -0
- package/types/components/{forms → fields}/TextArea/TextArea.d.ts +4 -7
- package/types/components/fields/TextArea/index.d.ts +1 -0
- package/types/components/{forms → fields}/TextInput/TextInput.d.ts +3 -5
- package/types/components/{forms → fields}/TextInput/TextInputBase.d.ts +3 -4
- package/types/components/fields/TextInput/index.d.ts +2 -0
- package/types/components/fields/index.d.ts +14 -0
- package/types/components/{forms → form}/FieldWrapper/FieldWrapper.d.ts +0 -1
- package/types/components/{forms → form}/FieldWrapper/types.d.ts +4 -3
- package/types/components/{forms → form}/Form/Field.d.ts +2 -2
- package/types/components/{forms → form}/Form/Form.d.ts +2 -2
- package/types/components/{forms → form}/Form/Submit/Submit.d.ts +2 -3
- package/types/components/{forms → form}/Form/SubmitError.d.ts +1 -1
- package/types/components/{forms → form}/Form/index.d.ts +4 -5
- package/types/components/{forms → form}/Form/use-field/types.d.ts +2 -2
- package/types/components/{forms → form}/Form/use-field/use-field-props.d.ts +1 -1
- package/types/components/{forms → form}/Form/use-field/use-field.d.ts +1 -1
- package/types/components/{forms → form}/Form/use-form.d.ts +1 -0
- package/types/components/{forms → form}/Label.d.ts +2 -2
- package/types/components/form/index.d.ts +4 -0
- package/types/components/{forms → form}/wrapper.d.ts +2 -2
- package/types/components/layout/Flex.d.ts +0 -1
- package/types/components/layout/Flow.d.ts +0 -1
- package/types/components/layout/Grid.d.ts +0 -1
- package/types/components/layout/Space.d.ts +0 -1
- package/types/components/navigation/Link/Link.d.ts +1 -2
- package/types/components/other/Base64Upload/Base64Upload.d.ts +1 -2
- package/types/components/other/Calendar/Calendar.d.ts +1 -2
- package/types/components/other/Calendar/RangeCalendar.d.ts +2 -3
- package/types/components/other/CloudLogo/CloudLogo.d.ts +1 -2
- package/types/components/overlays/AlertDialog/AlertDialog.d.ts +1 -1
- package/types/components/overlays/AlertDialog/AlertDialogZone.d.ts +0 -1
- package/types/components/overlays/AlertDialog/types.d.ts +1 -1
- package/types/components/overlays/Dialog/Dialog.d.ts +2 -1
- package/types/components/overlays/Dialog/DialogForm.d.ts +1 -2
- package/types/components/overlays/Dialog/DialogTrigger.d.ts +6 -1
- package/types/components/overlays/Modal/Modal.d.ts +2 -4
- package/types/components/overlays/Modal/OpenTransition.d.ts +2 -1
- package/types/components/overlays/Modal/Overlay.d.ts +2 -3
- package/types/components/overlays/Modal/Popover.d.ts +2 -2
- package/types/components/overlays/Modal/Tray.d.ts +8 -3
- package/types/components/overlays/Modal/types.d.ts +9 -0
- package/types/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.d.ts +0 -1
- package/types/components/overlays/NewNotifications/NotificationView/NotificationIcon.d.ts +0 -1
- package/types/components/overlays/NewNotifications/NotificationView/NotificationView.d.ts +5 -6
- package/types/components/overlays/NewNotifications/NotificationsList/NotificationsList.d.ts +2 -2
- package/types/components/overlays/OverlayWrapper.d.ts +2 -1
- package/types/components/overlays/Toasts/use-toasts-api.d.ts +0 -1
- package/types/components/overlays/Tooltip/Tooltip.d.ts +6 -2
- package/types/components/overlays/Tooltip/TooltipTrigger.d.ts +23 -2
- package/types/components/overlays/Tooltip/index.d.ts +2 -0
- package/types/components/pickers/Menu/Menu.d.ts +5 -2
- package/types/components/pickers/Menu/MenuTrigger.d.ts +5 -10
- package/types/components/pickers/Menu/styled.d.ts +8 -1
- package/types/components/portal/Portal.d.ts +0 -1
- package/types/components/portal/usePortal.d.ts +0 -1
- package/types/components/status/Spin/Cube.d.ts +1 -2
- package/types/components/status/Spin/InternalSpinner.d.ts +0 -1
- package/types/components/status/Spin/SpinsContainer.d.ts +1 -2
- package/types/icons/IconContainer.d.ts +0 -1
- package/types/index.d.ts +5 -37
- package/types/stories/components/ConfirmDeletionDialogForm.d.ts +1 -2
- package/types/stories/components/StyledButton.d.ts +3 -120
- package/types/tasty/types.d.ts +2 -1
- package/types/tasty/utils/dotize.d.ts +1 -1
- package/types/utils/react/mapProps.d.ts +1 -1
- package/es/components/forms/index.js +0 -17
- package/types/components/forms/DatePicker/DatePickerButton.d.ts +0 -122
- package/types/components/forms/DatePicker/props.d.ts +0 -4
- package/types/components/forms/SearchInput/SearchInput.d.ts +0 -11
- package/types/components/forms/Slider/index.d.ts +0 -3
- package/types/components/forms/index.d.ts +0 -8
- /package/types/components/{forms → fields}/DatePicker/DateInputBase.d.ts +0 -0
- /package/types/components/{forms → fields}/DatePicker/intl.d.ts +0 -0
- /package/types/components/{forms → fields}/DatePicker/parseDate.d.ts +0 -0
- /package/types/components/{forms → fields}/Input/index.d.ts +0 -0
- /package/types/components/{forms → fields}/NumberInput/StepButton.d.ts +0 -0
- /package/types/components/{forms → fields}/Slider/Header.d.ts +0 -0
- /package/types/components/{forms → form}/FieldWrapper/extract-field-wrapper-props.d.ts +0 -0
- /package/types/components/{forms → form}/FieldWrapper/index.d.ts +0 -0
- /package/types/components/{forms → form}/Form/Submit/index.d.ts +0 -0
- /package/types/components/{forms → form}/Form/types.d.ts +0 -0
- /package/types/components/{forms → form}/Form/use-field/index.d.ts +0 -0
- /package/types/components/{forms → form}/Form/validation.d.ts +0 -0
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { BaseProps, ContainerStyleProps, PositionStyleProps, TagNameProps } from '../../tasty';
|
3
2
|
import { CubeTextProps } from './Text';
|
4
3
|
export interface CubeTitleProps extends BaseProps, CubeTextProps, TagNameProps, ContainerStyleProps, PositionStyleProps {
|
@@ -1,20 +1,23 @@
|
|
1
|
-
|
1
|
+
import { useCheckbox, AriaCheckboxProps } from 'react-aria';
|
2
2
|
import { BaseProps, Styles } from '../../../tasty';
|
3
3
|
import { FieldBaseProps } from '../../../shared';
|
4
4
|
import { CheckboxGroup } from './CheckboxGroup';
|
5
|
-
import type { AriaCheckboxProps } from '@react-types/checkbox';
|
6
5
|
export interface CubeCheckboxProps extends BaseProps, AriaCheckboxProps, FieldBaseProps {
|
7
6
|
inputStyles?: Styles;
|
7
|
+
isIndeterminate?: boolean;
|
8
|
+
value?: string;
|
8
9
|
}
|
9
10
|
declare let __Checkbox: import("react").ForwardRefExoticComponent<Omit<CubeCheckboxProps, "isSelected" | "defaultSelected"> & {
|
10
|
-
isSelected?: any;
|
11
|
-
defaultSelected?: any;
|
11
|
+
isSelected?: T["isSelected"] | any;
|
12
|
+
defaultSelected?: T["defaultSelected"] | any;
|
12
13
|
} & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLElement, HTMLElement>>> & {
|
13
14
|
Group: typeof CheckboxGroup;
|
14
15
|
} & {
|
15
16
|
Group: import("react").ForwardRefExoticComponent<Omit<import("./CheckboxGroup").CubeCheckboxGroupProps, "value" | "defaultValue"> & {
|
16
|
-
value?: any;
|
17
|
-
defaultValue?: any;
|
17
|
+
value?: T_1["value"] | any;
|
18
|
+
defaultValue?: T_1["defaultValue"] | any;
|
18
19
|
} & import("react").RefAttributes<unknown>>;
|
19
20
|
};
|
20
21
|
export { __Checkbox as Checkbox };
|
22
|
+
export type { AriaCheckboxProps };
|
23
|
+
export { useCheckbox };
|
@@ -1,7 +1,6 @@
|
|
1
|
-
|
1
|
+
import { AriaCheckboxGroupProps } from 'react-aria';
|
2
2
|
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
3
3
|
import { FieldBaseProps } from '../../../shared';
|
4
|
-
import type { AriaCheckboxGroupProps } from '@react-types/checkbox';
|
5
4
|
export interface CubeCheckboxGroupProps extends BaseProps, AriaCheckboxGroupProps, FieldBaseProps, ContainerStyleProps {
|
6
5
|
orientation?: 'vertical' | 'horizontal';
|
7
6
|
inputStyles?: Styles;
|
@@ -11,7 +10,7 @@ export interface CubeCheckboxGroupProps extends BaseProps, AriaCheckboxGroupProp
|
|
11
10
|
* All possible options are exposed up front for users to compare.
|
12
11
|
*/
|
13
12
|
declare const _CheckboxGroup: import("react").ForwardRefExoticComponent<Omit<CubeCheckboxGroupProps, "value" | "defaultValue"> & {
|
14
|
-
value?: any;
|
15
|
-
defaultValue?: any;
|
13
|
+
value?: T["value"] | any;
|
14
|
+
defaultValue?: T["defaultValue"] | any;
|
16
15
|
} & import("react").RefAttributes<unknown>>;
|
17
16
|
export { _CheckboxGroup as CheckboxGroup };
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { ForwardedRef, ReactElement, RefObject } from 'react';
|
2
|
-
import {
|
2
|
+
import { AriaComboBoxProps, AriaTextFieldProps } from 'react-aria';
|
3
|
+
import { Item } from 'react-stately';
|
4
|
+
import { CubeSelectBaseProps } from '../Select';
|
3
5
|
import type { KeyboardDelegate, LoadingState } from '@react-types/shared';
|
4
|
-
import type { ComboBoxProps } from '@react-types/combobox';
|
5
6
|
type FilterFn = (textValue: string, inputValue: string) => boolean;
|
6
|
-
export
|
7
|
-
|
7
|
+
export type MenuTriggerAction = 'focus' | 'input' | 'manual';
|
8
|
+
export interface CubeComboBoxProps<T> extends Omit<CubeSelectBaseProps<T>, 'onOpenChange' | 'onBlur' | 'onFocus' | 'validate' | 'onSelectionChange'>, AriaComboBoxProps<T>, AriaTextFieldProps {
|
8
9
|
icon?: ReactElement;
|
9
10
|
multiLine?: boolean;
|
10
11
|
autoComplete?: string;
|
@@ -24,10 +25,12 @@ export interface CubeComboBoxProps<T> extends Omit<CubeSelectBaseProps<T>, 'onOp
|
|
24
25
|
filter?: FilterFn;
|
25
26
|
size?: 'small' | 'default' | 'large' | string;
|
26
27
|
suffixPosition?: 'before' | 'after';
|
28
|
+
menuTrigger?: MenuTriggerAction;
|
29
|
+
allowsCustomValue?: boolean;
|
27
30
|
}
|
28
31
|
export declare const ComboBox: (<T>(props: CubeComboBoxProps<T> & {
|
29
32
|
ref?: ForwardedRef<HTMLDivElement>;
|
30
33
|
}) => ReactElement) & {
|
31
|
-
Item:
|
34
|
+
Item: typeof Item;
|
32
35
|
};
|
33
36
|
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ComboBox';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
|
-
import { AriaDateFieldProps, DateValue } from '@react-types/datepicker';
|
3
2
|
import { FocusableRef } from '@react-types/shared';
|
3
|
+
import { AriaDateFieldProps, DateValue } from 'react-aria';
|
4
4
|
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
5
5
|
import { FieldBaseProps, ValidationState } from '../../../shared';
|
6
6
|
export interface CubeDateInputProps<T extends DateValue = DateValue> extends AriaDateFieldProps<T>, BaseProps, ContainerStyleProps, FieldBaseProps {
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
|
-
import { AriaDatePickerProps, DateValue } from '@react-types/datepicker';
|
3
2
|
import { FocusableRef } from '@react-types/shared';
|
3
|
+
import { AriaDatePickerProps, DateValue } from 'react-aria';
|
4
4
|
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
5
5
|
import { FieldBaseProps, ValidationState } from '../../../shared';
|
6
|
-
|
6
|
+
import { DateFieldBase } from './types';
|
7
|
+
export interface CubeDatePickerProps<T extends DateValue = DateValue> extends AriaDatePickerProps<T>, DateFieldBase<T>, BaseProps, ContainerStyleProps, FieldBaseProps {
|
7
8
|
wrapperStyles?: Styles;
|
8
9
|
inputStyles?: Styles;
|
9
10
|
triggerStyles?: Styles;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
export declare const DatePickerElement: import("react").ComponentType<{
|
3
2
|
children?: import("react").ReactNode;
|
4
3
|
ref?: import("react").LegacyRef<unknown> | undefined;
|
@@ -77,5 +76,9 @@ export declare const DatePickerElement: import("react").ComponentType<{
|
|
77
76
|
isDisabled?: boolean | undefined;
|
78
77
|
styleName?: string | undefined;
|
79
78
|
theme?: (string & {}) | "danger" | "default" | "special" | undefined;
|
79
|
+
"aria-describedby"?: string | undefined;
|
80
|
+
"aria-details"?: string | undefined;
|
81
|
+
"aria-label"?: string | undefined;
|
82
|
+
"aria-labelledby"?: string | undefined;
|
80
83
|
key?: import("react").Key | null | undefined;
|
81
84
|
} & {}>;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { DateValue,
|
2
|
-
|
1
|
+
import { DateValue, AriaDatePickerProps } from 'react-aria';
|
2
|
+
import { DateFieldBase, Granularity } from './types';
|
3
|
+
interface CubeDatePickerInputProps<T extends DateValue> extends AriaDatePickerProps<T>, DateFieldBase<T> {
|
3
4
|
hideValidationIcon?: boolean;
|
4
|
-
maxGranularity?:
|
5
|
+
maxGranularity?: Granularity;
|
5
6
|
useLocale?: boolean;
|
6
7
|
onFocus?: () => void;
|
7
8
|
onBlur?: () => void;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { DateFieldState, DateSegment } from 'react-stately';
|
2
|
-
import {
|
3
|
-
|
2
|
+
import { DateValue } from 'react-aria';
|
3
|
+
import { DateFieldBase } from './types';
|
4
|
+
interface DatePickerSegmentProps extends DateFieldBase<DateValue> {
|
4
5
|
segment: DateSegment;
|
5
6
|
state: DateFieldState;
|
6
7
|
}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
|
-
import { AriaDateRangePickerProps, DateValue } from '@react-types/datepicker';
|
3
2
|
import { FocusableRef } from '@react-types/shared';
|
3
|
+
import { AriaDateRangePickerProps, DateValue } from 'react-aria';
|
4
4
|
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
5
5
|
import { FieldBaseProps, ValidationState } from '../../../shared';
|
6
|
-
|
6
|
+
import { DateFieldBase } from './types';
|
7
|
+
export interface CubeDateRangePickerProps<T extends DateValue = DateValue> extends AriaDateRangePickerProps<T>, BaseProps, DateFieldBase<T>, ContainerStyleProps, FieldBaseProps {
|
7
8
|
wrapperStyles?: Styles;
|
8
9
|
inputStyles?: Styles;
|
9
10
|
styles?: Styles;
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
|
-
import { AriaDateRangePickerProps, DateValue } from '@react-types/datepicker';
|
3
2
|
import { FocusableRef } from '@react-types/shared';
|
3
|
+
import { AriaDateRangePickerProps, DateValue } from 'react-aria';
|
4
4
|
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
5
5
|
import { FieldBaseProps, ValidationState } from '../../../shared';
|
6
|
-
|
6
|
+
import { DateFieldBase } from './types';
|
7
|
+
export interface CubeDateRangeSeparatedPickerProps<T extends DateValue = DateValue> extends AriaDateRangePickerProps<T>, BaseProps, ContainerStyleProps, DateFieldBase<T>, FieldBaseProps {
|
7
8
|
wrapperStyles?: Styles;
|
8
9
|
inputStyles?: Styles;
|
9
10
|
styles?: Styles;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
2
|
import { FocusableRef } from '@react-types/shared';
|
3
|
-
import {
|
4
|
-
import { AriaTimeFieldProps, DateValue } from 'react-aria';
|
3
|
+
import { AriaTimeFieldProps, DateValue, TimeValue } from 'react-aria';
|
5
4
|
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
6
5
|
import { FieldBaseProps, ValidationState } from '../../../shared';
|
6
|
+
import { Granularity } from './types';
|
7
7
|
export interface CubeTimeInputProps<T extends TimeValue = TimeValue> extends AriaTimeFieldProps<T>, BaseProps, ContainerStyleProps, FieldBaseProps {
|
8
8
|
wrapperStyles?: Styles;
|
9
9
|
inputStyles?: Styles;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { DateValue } from 'react-aria';
|
2
|
+
export type Granularity = 'day' | 'hour' | 'minute' | 'second';
|
3
|
+
export interface DateFieldBase<T extends DateValue> {
|
4
|
+
/** The minimum allowed date that a user may select. */
|
5
|
+
minValue?: DateValue;
|
6
|
+
/** The maximum allowed date that a user may select. */
|
7
|
+
maxValue?: DateValue;
|
8
|
+
/** Callback that is called for each date of the calendar. If it returns true, then the date is unavailable. */
|
9
|
+
isDateUnavailable?: (date: DateValue) => boolean;
|
10
|
+
/** A placeholder date that influences the format of the placeholder shown when no value is selected. Defaults to today's date at midnight. */
|
11
|
+
placeholderValue?: T;
|
12
|
+
/** Whether to display the time in 12 or 24 hour format. By default, this is determined by the user's locale. */
|
13
|
+
hourCycle?: 12 | 24;
|
14
|
+
/** Determines the smallest unit that is displayed in the date picker. By default, this is `"day"` for dates, and `"minute"` for times. */
|
15
|
+
granularity?: Granularity;
|
16
|
+
/**
|
17
|
+
* Whether to hide the time zone abbreviation.
|
18
|
+
* @default false
|
19
|
+
*/
|
20
|
+
hideTimeZone?: boolean;
|
21
|
+
/**
|
22
|
+
* Whether to always show leading zeros in the month, day, and hour fields.
|
23
|
+
* By default, this is determined by the user's locale.
|
24
|
+
*/
|
25
|
+
shouldForceLeadingZeros?: boolean;
|
26
|
+
isDisabled?: boolean;
|
27
|
+
isReadOnly?: boolean;
|
28
|
+
isRequired?: boolean;
|
29
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { RefObject } from 'react';
|
2
2
|
import { BaseProps, BlockStyleProps, ContainerStyleProps, PositionStyleProps, Props, Styles } from '../../../tasty';
|
3
3
|
import { FieldBaseProps } from '../../../shared';
|
4
|
-
import type { AriaTextFieldProps } from '
|
4
|
+
import type { AriaTextFieldProps } from 'react-aria';
|
5
5
|
export interface CubeFileInputProps extends BaseProps, PositionStyleProps, ContainerStyleProps, BlockStyleProps, AriaTextFieldProps, FieldBaseProps {
|
6
6
|
/**
|
7
7
|
* The size of the input
|
@@ -19,6 +19,11 @@ export interface CubeFileInputProps extends BaseProps, PositionStyleProps, Conta
|
|
19
19
|
type?: 'file' | 'text';
|
20
20
|
/** Direct input props */
|
21
21
|
inputProps?: Props;
|
22
|
+
/** The file types that the input should accept */
|
23
|
+
accept?: string;
|
24
|
+
value?: string;
|
25
|
+
onChange?: (value: string) => void;
|
26
|
+
placeholder?: string;
|
22
27
|
}
|
23
28
|
/**
|
24
29
|
* FileInputs are file inputs that allow users to select local files to
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TextInput } from '../TextInput
|
1
|
+
import { TextInput } from '../TextInput';
|
2
2
|
import { PasswordInput } from '../PasswordInput/PasswordInput';
|
3
3
|
import { NumberInput } from '../NumberInput/NumberInput';
|
4
4
|
import { FileInput } from '../FileInput/FileInput';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
import { CubeTextInputBaseProps } from '../TextInput
|
3
|
-
import
|
1
|
+
import { AriaNumberFieldProps } from 'react-aria';
|
2
|
+
import { CubeTextInputBaseProps } from '../TextInput';
|
3
|
+
import { WithNullableValue } from '../../../utils/react/nullableValue';
|
4
4
|
export interface CubeNumberInputProps extends Omit<CubeTextInputBaseProps, 'defaultValue' | 'value' | 'onChange'>, Omit<AriaNumberFieldProps, 'validate'> {
|
5
5
|
/** Whether or to hide stepper */
|
6
6
|
hideStepper?: boolean;
|
@@ -8,8 +8,6 @@ export interface CubeNumberInputProps extends Omit<CubeTextInputBaseProps, 'defa
|
|
8
8
|
/**
|
9
9
|
* NumberFields allow users to enter a number, and increment or decrement the value using stepper buttons.
|
10
10
|
*/
|
11
|
-
declare const _NumberInput: import("react").ForwardRefExoticComponent<Omit<CubeNumberInputProps
|
12
|
-
value?: any;
|
13
|
-
defaultValue?: any;
|
14
|
-
} & import("react").RefAttributes<unknown>>;
|
11
|
+
declare const _NumberInput: import("react").ForwardRefExoticComponent<Omit<WithNullableValue<CubeNumberInputProps>, "ref"> & import("react").RefAttributes<unknown>>;
|
15
12
|
export { _NumberInput as NumberInput };
|
13
|
+
export type { AriaNumberFieldProps };
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
import {
|
1
|
+
import { CubeTextInputBaseProps } from '../TextInput';
|
2
|
+
import { WithNullableValue } from '../../../utils/react/nullableValue';
|
3
|
+
export interface CubePasswordInputProps extends WithNullableValue<CubeTextInputBaseProps> {
|
4
|
+
}
|
3
5
|
/**
|
4
6
|
* PasswordInputs are password inputs that allow users to input passwords or code entries
|
5
7
|
* with a keyboard. Various decorations can be displayed around the field to
|
6
8
|
* communicate the entry requirements.
|
7
9
|
*/
|
8
|
-
declare const _PasswordInput: import("react").ForwardRefExoticComponent<Omit<
|
9
|
-
value?: any;
|
10
|
-
defaultValue?: any;
|
11
|
-
} & import("react").RefAttributes<unknown>>;
|
10
|
+
declare const _PasswordInput: import("react").ForwardRefExoticComponent<Omit<CubePasswordInputProps, "ref"> & import("react").RefAttributes<unknown>>;
|
12
11
|
export { _PasswordInput as PasswordInput };
|
@@ -1,8 +1,10 @@
|
|
1
|
-
|
1
|
+
import { useRadio } from 'react-aria';
|
2
2
|
import { BaseProps, OuterStyleProps, Styles } from '../../../tasty';
|
3
3
|
import { FieldBaseProps } from '../../../shared';
|
4
4
|
import { RadioGroup } from './RadioGroup';
|
5
|
-
import type { AriaRadioProps } from '
|
5
|
+
import type { AriaRadioProps } from 'react-aria';
|
6
|
+
export { AriaRadioProps };
|
7
|
+
export { useRadio };
|
6
8
|
export interface CubeRadioProps extends BaseProps, AriaRadioProps, FieldBaseProps, OuterStyleProps {
|
7
9
|
inputStyles?: Styles;
|
8
10
|
type?: 'button' | 'radio';
|
@@ -44,42 +46,34 @@ declare const ButtonGroup: import("react").ComponentType<{
|
|
44
46
|
autoFocus?: boolean | undefined;
|
45
47
|
"aria-describedby"?: string | undefined;
|
46
48
|
"aria-details"?: string | undefined;
|
47
|
-
"aria-errormessage"?: string | undefined;
|
48
49
|
"aria-label"?: string | undefined;
|
49
50
|
"aria-labelledby"?: string | undefined;
|
50
|
-
onFocus?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
51
|
-
onBlur?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
52
51
|
onChange?: ((value: string) => void) | undefined;
|
53
52
|
description?: import("react").ReactNode;
|
54
53
|
rules?: import("../../../shared").ValidationRule[] | undefined;
|
55
54
|
message?: import("react").ReactNode;
|
56
|
-
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
57
55
|
insideForm?: boolean | undefined;
|
58
56
|
isReadOnly?: boolean | undefined;
|
59
57
|
isRequired?: boolean | undefined;
|
60
|
-
validationState?: import("
|
58
|
+
validationState?: import("../../../shared").ValidationState | undefined;
|
61
59
|
isLoading?: boolean | undefined;
|
62
60
|
key?: import("react").Key | null | undefined;
|
63
61
|
extra?: import("react").ReactNode;
|
64
|
-
orientation?:
|
65
|
-
labelStyles?: Styles | undefined;
|
62
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
66
63
|
labelPosition?: import("../../../shared").LabelPosition | undefined;
|
67
|
-
requiredMark?: boolean | undefined;
|
68
64
|
necessityIndicator?: import("../../../shared").NecessityIndicator | undefined;
|
69
|
-
necessityLabel?: import("react").ReactNode;
|
70
|
-
validateTrigger?: import("../../../shared").ValidateTrigger | undefined;
|
71
|
-
showValid?: boolean | undefined;
|
72
65
|
fieldProps?: import("../../../tasty").Props | undefined;
|
73
66
|
labelSuffix?: import("react").ReactNode;
|
67
|
+
labelStyles?: Styles | undefined;
|
74
68
|
labelProps?: import("../../../tasty").Props | undefined;
|
69
|
+
requiredMark?: boolean | undefined;
|
70
|
+
necessityLabel?: import("react").ReactNode;
|
75
71
|
messageStyles?: Styles | undefined;
|
72
|
+
validateTrigger?: import("../../../shared").ValidateTrigger | undefined;
|
73
|
+
showValid?: boolean | undefined;
|
76
74
|
idPrefix?: string | undefined;
|
77
75
|
validationDelay?: number | undefined;
|
78
76
|
shouldUpdate?: boolean | ((prevValues: any, nextValues: any) => boolean) | undefined;
|
79
|
-
validate?: ((value: string | null) => true | import("@react-types/shared").ValidationError | null | undefined) | undefined;
|
80
|
-
isInvalid?: boolean | undefined;
|
81
|
-
validationBehavior?: "native" | "aria" | undefined;
|
82
|
-
errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
|
83
77
|
groupStyles?: Styles | undefined;
|
84
78
|
isSolid?: boolean | undefined;
|
85
79
|
} & {}>;
|
@@ -89,8 +83,8 @@ declare const __Radio: import("react").ForwardRefExoticComponent<CubeRadioProps
|
|
89
83
|
ButtonGroup: typeof ButtonGroup;
|
90
84
|
} & {
|
91
85
|
Group: import("react").ForwardRefExoticComponent<Omit<import("./RadioGroup").CubeRadioGroupProps, "value" | "defaultValue"> & {
|
92
|
-
value?: any;
|
93
|
-
defaultValue?: any;
|
86
|
+
value?: T["value"] | any;
|
87
|
+
defaultValue?: T["defaultValue"] | any;
|
94
88
|
} & import("react").RefAttributes<unknown>>;
|
95
89
|
Button: import("react").ForwardRefExoticComponent<CubeRadioProps & import("react").RefAttributes<unknown>>;
|
96
90
|
ButtonGroup: import("react").ComponentType<{
|
@@ -125,42 +119,34 @@ declare const __Radio: import("react").ForwardRefExoticComponent<CubeRadioProps
|
|
125
119
|
autoFocus?: boolean | undefined;
|
126
120
|
"aria-describedby"?: string | undefined;
|
127
121
|
"aria-details"?: string | undefined;
|
128
|
-
"aria-errormessage"?: string | undefined;
|
129
122
|
"aria-label"?: string | undefined;
|
130
123
|
"aria-labelledby"?: string | undefined;
|
131
|
-
onFocus?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
132
|
-
onBlur?: ((e: import("react").FocusEvent<Element, Element>) => void) | undefined;
|
133
124
|
onChange?: ((value: string) => void) | undefined;
|
134
125
|
description?: import("react").ReactNode;
|
135
126
|
rules?: import("../../../shared").ValidationRule[] | undefined;
|
136
127
|
message?: import("react").ReactNode;
|
137
|
-
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
138
128
|
insideForm?: boolean | undefined;
|
139
129
|
isReadOnly?: boolean | undefined;
|
140
130
|
isRequired?: boolean | undefined;
|
141
|
-
validationState?: import("
|
131
|
+
validationState?: import("../../../shared").ValidationState | undefined;
|
142
132
|
isLoading?: boolean | undefined;
|
143
133
|
key?: import("react").Key | null | undefined;
|
144
134
|
extra?: import("react").ReactNode;
|
145
|
-
orientation?:
|
146
|
-
labelStyles?: Styles | undefined;
|
135
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
147
136
|
labelPosition?: import("../../../shared").LabelPosition | undefined;
|
148
|
-
requiredMark?: boolean | undefined;
|
149
137
|
necessityIndicator?: import("../../../shared").NecessityIndicator | undefined;
|
150
|
-
necessityLabel?: import("react").ReactNode;
|
151
|
-
validateTrigger?: import("../../../shared").ValidateTrigger | undefined;
|
152
|
-
showValid?: boolean | undefined;
|
153
138
|
fieldProps?: import("../../../tasty").Props | undefined;
|
154
139
|
labelSuffix?: import("react").ReactNode;
|
140
|
+
labelStyles?: Styles | undefined;
|
155
141
|
labelProps?: import("../../../tasty").Props | undefined;
|
142
|
+
requiredMark?: boolean | undefined;
|
143
|
+
necessityLabel?: import("react").ReactNode;
|
156
144
|
messageStyles?: Styles | undefined;
|
145
|
+
validateTrigger?: import("../../../shared").ValidateTrigger | undefined;
|
146
|
+
showValid?: boolean | undefined;
|
157
147
|
idPrefix?: string | undefined;
|
158
148
|
validationDelay?: number | undefined;
|
159
149
|
shouldUpdate?: boolean | ((prevValues: any, nextValues: any) => boolean) | undefined;
|
160
|
-
validate?: ((value: string | null) => true | import("@react-types/shared").ValidationError | null | undefined) | undefined;
|
161
|
-
isInvalid?: boolean | undefined;
|
162
|
-
validationBehavior?: "native" | "aria" | undefined;
|
163
|
-
errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
|
164
150
|
groupStyles?: Styles | undefined;
|
165
151
|
isSolid?: boolean | undefined;
|
166
152
|
} & {}>;
|
@@ -1,17 +1,20 @@
|
|
1
|
-
|
1
|
+
import { AriaRadioGroupProps } from 'react-aria';
|
2
2
|
import { BaseProps, Styles } from '../../../tasty';
|
3
3
|
import { FieldBaseProps } from '../../../shared';
|
4
|
-
import type { AriaRadioGroupProps } from '@react-types/radio';
|
5
4
|
export interface CubeRadioGroupProps extends BaseProps, AriaRadioGroupProps, FieldBaseProps {
|
6
5
|
groupStyles?: Styles;
|
7
6
|
isSolid?: boolean;
|
7
|
+
orientation?: 'horizontal' | 'vertical';
|
8
|
+
value?: string;
|
9
|
+
defaultValue?: string;
|
10
|
+
onChange?: (value: string) => void;
|
8
11
|
}
|
9
12
|
/**
|
10
13
|
* Radio groups allow users to select a single option from a list of mutually exclusive options.
|
11
14
|
* All possible options are exposed up front for users to compare.
|
12
15
|
*/
|
13
16
|
declare const _RadioGroup: import("react").ForwardRefExoticComponent<Omit<CubeRadioGroupProps, "value" | "defaultValue"> & {
|
14
|
-
value?: any;
|
15
|
-
defaultValue?: any;
|
17
|
+
value?: T["value"] | any;
|
18
|
+
defaultValue?: T["defaultValue"] | any;
|
16
19
|
} & import("react").RefAttributes<unknown>>;
|
17
20
|
export { _RadioGroup as RadioGroup };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { SearchFieldProps, useSearchFieldState } from 'react-stately';
|
2
|
+
import { useSearchField } from 'react-aria';
|
3
|
+
import { CubeTextInputBaseProps } from '../TextInput';
|
4
|
+
import { WithNullableValue } from '../../../utils/react/nullableValue';
|
5
|
+
export { useSearchFieldState, useSearchField };
|
6
|
+
export type { SearchFieldProps };
|
7
|
+
export interface CubeSearchInputProps extends CubeTextInputBaseProps, SearchFieldProps {
|
8
|
+
/** Whether the search input is clearable using ESC keyboard button or clear button inside the input */
|
9
|
+
isClearable?: boolean;
|
10
|
+
}
|
11
|
+
export declare const SearchInput: import("react").ForwardRefExoticComponent<Omit<WithNullableValue<CubeSearchInputProps>, "ref"> & import("react").RefAttributes<unknown>>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './SearchInput';
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { ReactElement, ReactNode, RefObject } from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
|
2
|
+
import { Item, useSelectState } from 'react-stately';
|
3
|
+
import { AriaSelectProps } from 'react-aria';
|
4
|
+
import { CollectionBase } from '@react-types/shared';
|
5
|
+
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props, Styles } from '../../../tasty/index';
|
6
|
+
import { FieldBaseProps } from '../../../shared/index';
|
7
|
+
export interface CubeSelectBaseProps<T> extends BasePropsWithoutChildren, OuterStyleProps, FieldBaseProps, BlockStyleProps, CollectionBase<T>, AriaSelectProps<T> {
|
6
8
|
icon?: ReactElement;
|
7
9
|
prefix?: ReactNode;
|
8
10
|
suffix?: ReactNode;
|
@@ -28,6 +30,7 @@ export interface CubeSelectProps<T> extends CubeSelectBaseProps<T> {
|
|
28
30
|
listBoxRef?: RefObject<HTMLElement>;
|
29
31
|
size?: 'small' | 'default' | 'large' | string;
|
30
32
|
ellipsis?: boolean;
|
33
|
+
placeholder?: string;
|
31
34
|
}
|
32
35
|
export declare function ListBoxPopup({ state, popoverRef, listBoxRef, listBoxStyles, overlayStyles, optionStyles, overlayProps: parentOverlayProps, shouldUseVirtualFocus, placement, minWidth, ...otherProps }: {
|
33
36
|
[x: string]: any;
|
@@ -43,8 +46,10 @@ export declare function ListBoxPopup({ state, popoverRef, listBoxRef, listBoxSty
|
|
43
46
|
minWidth: any;
|
44
47
|
}): import("react/jsx-runtime").JSX.Element;
|
45
48
|
declare const __Select: import("react").ForwardRefExoticComponent<CubeSelectProps<object> & import("react").RefAttributes<import("@react-types/shared").DOMRefValue<HTMLDivElement>>> & {
|
46
|
-
Item:
|
49
|
+
Item: typeof Item;
|
47
50
|
} & {
|
48
51
|
Item: any;
|
49
52
|
};
|
50
53
|
export { __Select as Select };
|
54
|
+
export type { AriaSelectProps };
|
55
|
+
export { useSelectState };
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Select';
|
@@ -1,10 +1,9 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import type { CubeSliderBaseProps } from './types';
|
3
2
|
import type { RangeValue } from '../../../shared';
|
4
3
|
export interface CubeRangeSliderProps extends CubeSliderBaseProps<RangeValue<number>> {
|
5
4
|
gradation?: string[];
|
6
5
|
}
|
7
|
-
declare const __RangeSlider: import("react").ForwardRefExoticComponent<CubeRangeSliderProps & import("react").RefAttributes<import("@react-types/shared").DOMRefValue<HTMLDivElement>>> & {
|
6
|
+
declare const __RangeSlider: import("react").ForwardRefExoticComponent<Omit<CubeRangeSliderProps, "ref"> & import("react").RefAttributes<import("@react-types/shared").DOMRefValue<HTMLDivElement>>> & {
|
8
7
|
cubeInputType: string;
|
9
8
|
};
|
10
9
|
export { __RangeSlider as RangeSlider };
|
@@ -1,9 +1,8 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import type { CubeSliderBaseProps } from './types';
|
3
2
|
export interface CubeSliderProps extends CubeSliderBaseProps<number> {
|
4
3
|
gradation?: string[];
|
5
4
|
}
|
6
|
-
declare const __Slider: import("react").ForwardRefExoticComponent<CubeSliderProps & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLDivElement, HTMLDivElement>>> & {
|
5
|
+
declare const __Slider: import("react").ForwardRefExoticComponent<Omit<CubeSliderProps, "ref"> & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLDivElement, HTMLDivElement>>> & {
|
7
6
|
cubeInputType: string;
|
8
7
|
};
|
9
8
|
export { __Slider as Slider };
|