@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,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -13,12 +13,11 @@ const icons_1 = require("@ant-design/icons");
|
|
13
13
|
const utils_1 = require("@react-spectrum/utils");
|
14
14
|
const react_1 = require("react");
|
15
15
|
const react_aria_1 = require("react-aria");
|
16
|
-
const
|
16
|
+
const form_1 = require("../../form");
|
17
17
|
const provider_1 = require("../../../provider");
|
18
18
|
const tasty_1 = require("../../../tasty");
|
19
19
|
const interactions_1 = require("../../../utils/react/interactions");
|
20
20
|
const react_2 = require("../../../utils/react");
|
21
|
-
const wrapper_1 = require("../wrapper");
|
22
21
|
const InvalidIcon_1 = require("../../shared/InvalidIcon");
|
23
22
|
const ValidIcon_1 = require("../../shared/ValidIcon");
|
24
23
|
const ADD_STYLES = {
|
@@ -137,8 +136,8 @@ exports.DEFAULT_INPUT_STYLES = {
|
|
137
136
|
const InputElement = (0, tasty_1.tasty)({ qa: 'Input', styles: exports.DEFAULT_INPUT_STYLES });
|
138
137
|
function _TextInputBase(props, ref) {
|
139
138
|
props = (0, provider_1.useProviderProps)(props);
|
140
|
-
props = (0,
|
141
|
-
props = (0,
|
139
|
+
props = (0, form_1.useFormProps)(props);
|
140
|
+
props = (0, form_1.useFieldProps)(props, {
|
142
141
|
defaultValidationTrigger: 'onBlur',
|
143
142
|
valuePropsMapper: ({ value, onChange }) => ({
|
144
143
|
value: typeof value === 'string' || typeof value === 'number'
|
@@ -211,7 +210,7 @@ function _TextInputBase(props, ref) {
|
|
211
210
|
prefix,
|
212
211
|
suffix,
|
213
212
|
]);
|
214
|
-
const hasTextSecurity =
|
213
|
+
const hasTextSecurity = multiLine && type === 'password';
|
215
214
|
const textSecurityStyles = hasTextSecurity
|
216
215
|
? {
|
217
216
|
fontFamily: 'text-security-disc',
|
@@ -219,7 +218,7 @@ function _TextInputBase(props, ref) {
|
|
219
218
|
}
|
220
219
|
: {};
|
221
220
|
const textField = ((0, jsx_runtime_1.jsxs)(InputWrapperElement, { ref: wrapperRef, qa: qa || 'TextInput', mods: modifiers, "data-size": size, styles: wrapperStyles, ...wrapperProps, children: [(0, jsx_runtime_1.jsx)(InputElement, { as: ElementType, ...(0, react_2.mergeProps)(inputProps, focusProps, hoverProps), ref: inputRef, rows: multiLine ? rows : undefined, mods: modifiers, style: textSecurityStyles, autoFocus: autoFocus, "data-size": size, styles: inputStyles, disabled: !!isDisabled, maxLength: maxLength, minLength: minLength }), prefix ? (0, jsx_runtime_1.jsx)("div", { "data-element": "Prefix", children: prefix }) : null, (validationState && !isLoading) || isLoading || suffix ? ((0, jsx_runtime_1.jsxs)("div", { "data-element": "Suffix", children: [suffixPosition === 'before' ? suffix : null, (validationState && !isLoading) || isLoading ? ((0, jsx_runtime_1.jsxs)("div", { "data-element": "State", children: [validationState && !isLoading ? validation : null, isLoading && (0, jsx_runtime_1.jsx)(icons_1.LoadingOutlined, { "data-element": "InputIcon" })] })) : null, suffixPosition === 'after' ? suffix : null] })) : null] }));
|
222
|
-
return (0,
|
221
|
+
return (0, form_1.wrapWithField)(textField, domRef, {
|
223
222
|
...props,
|
224
223
|
styles,
|
225
224
|
});
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
"use strict";
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
14
|
+
}
|
15
|
+
Object.defineProperty(o, k2, desc);
|
16
|
+
}) : (function(o, m, k, k2) {
|
17
|
+
if (k2 === undefined) k2 = k;
|
18
|
+
o[k2] = m[k];
|
19
|
+
}));
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
22
|
+
};
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
24
|
+
__exportStar(require("./TextInput"), exports);
|
25
|
+
__exportStar(require("./TextInputBase"), exports);
|
26
|
+
|
27
|
+
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -22,12 +22,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
22
|
};
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
24
24
|
__exportStar(require("./Input"), exports);
|
25
|
-
__exportStar(require("./TextInput
|
26
|
-
__exportStar(require("./TextInput/TextInputBase"), exports);
|
25
|
+
__exportStar(require("./TextInput"), exports);
|
27
26
|
__exportStar(require("./PasswordInput/PasswordInput"), exports);
|
28
27
|
__exportStar(require("./NumberInput/NumberInput"), exports);
|
29
28
|
__exportStar(require("./FileInput/FileInput"), exports);
|
30
|
-
__exportStar(require("./TextArea
|
31
|
-
__exportStar(require("./
|
29
|
+
__exportStar(require("./TextArea"), exports);
|
30
|
+
__exportStar(require("./Checkbox"), exports);
|
31
|
+
__exportStar(require("./DatePicker"), exports);
|
32
|
+
__exportStar(require("./RadioGroup"), exports);
|
33
|
+
__exportStar(require("./SearchInput"), exports);
|
34
|
+
__exportStar(require("./Slider"), exports);
|
35
|
+
__exportStar(require("./Switch/Switch"), exports);
|
36
|
+
__exportStar(require("./Select"), exports);
|
37
|
+
__exportStar(require("./ComboBox"), exports);
|
32
38
|
|
33
39
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -11,18 +11,19 @@ exports.FieldWrapper = void 0;
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
12
|
const react_1 = require("react");
|
13
13
|
const Paragraph_1 = require("../../content/Paragraph");
|
14
|
-
const
|
14
|
+
const index_1 = require("../../../tasty/index");
|
15
15
|
const TooltipProvider_1 = require("../../overlays/Tooltip/TooltipProvider");
|
16
16
|
const Text_1 = require("../../content/Text");
|
17
|
-
const
|
17
|
+
const index_2 = require("../../../utils/react/index");
|
18
18
|
const Space_1 = require("../../layout/Space");
|
19
19
|
const Flex_1 = require("../../layout/Flex");
|
20
20
|
const Label_1 = require("../Label");
|
21
|
-
const
|
22
|
-
const FieldElement = (0,
|
21
|
+
const index_3 = require("../../../icons/index");
|
22
|
+
const FieldElement = (0, index_1.tasty)({
|
23
23
|
qa: 'Field',
|
24
24
|
styles: {
|
25
25
|
display: 'grid',
|
26
|
+
width: 'auto',
|
26
27
|
gridColumns: {
|
27
28
|
'': 'minmax(0, 1fr)',
|
28
29
|
'has-sider': '@(full-label-width, auto) minmax(0, 1fr)',
|
@@ -55,7 +56,7 @@ const FieldElement = (0, tasty_1.tasty)({
|
|
55
56
|
if (process.env.NODE_ENV === 'development') {
|
56
57
|
FieldElement.displayName = 'FieldWrapperElement';
|
57
58
|
}
|
58
|
-
const MessageElement = (0,
|
59
|
+
const MessageElement = (0, index_1.tasty)({
|
59
60
|
qa: 'Field_Message',
|
60
61
|
styles: {
|
61
62
|
preset: 't3',
|
@@ -75,11 +76,11 @@ const MessageElement = (0, tasty_1.tasty)({
|
|
75
76
|
*/
|
76
77
|
exports.FieldWrapper = (0, react_1.forwardRef)(function FieldWrapper(props, ref) {
|
77
78
|
const { as, labelPosition = 'top', label, extra, styles, isRequired, isDisabled, labelStyles, necessityIndicator, labelProps, fieldProps, message, messageStyles, description, Component, validationState, requiredMark = true, tooltip, isHidden, labelSuffix, children, } = props;
|
78
|
-
const labelComponent = label ? ((0, jsx_runtime_1.jsx)(Label_1.Label, { as: as === 'label' ? 'div' : 'label', styles: labelStyles, labelPosition: labelPosition, isRequired: requiredMark ? isRequired : false, isDisabled: isDisabled, necessityIndicator: necessityIndicator, validationState: validationState, "aria-label": label, ...labelProps, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { placeContent: "baseline space-between", width: "100%", children: [(0, jsx_runtime_1.jsxs)(Space_1.Space, { placeItems: "center", gap: "0.25x", children: [(0, jsx_runtime_1.jsx)("div", { children: label }), tooltip ? ((0, jsx_runtime_1.jsx)(TooltipProvider_1.TooltipProvider, { activeWrap: true, title: tooltip, width: "initial max-content 40x", children: (0, jsx_runtime_1.jsx)(
|
79
|
+
const labelComponent = label ? ((0, jsx_runtime_1.jsx)(Label_1.Label, { as: as === 'label' ? 'div' : 'label', styles: labelStyles, labelPosition: labelPosition, isRequired: requiredMark ? isRequired : false, isDisabled: isDisabled, necessityIndicator: necessityIndicator, validationState: validationState, "aria-label": typeof label === 'string' ? label : undefined, ...labelProps, children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { placeContent: "baseline space-between", width: "100%", children: [(0, jsx_runtime_1.jsxs)(Space_1.Space, { placeItems: "center", gap: "0.25x", children: [(0, jsx_runtime_1.jsx)("div", { children: label }), tooltip ? ((0, jsx_runtime_1.jsx)(TooltipProvider_1.TooltipProvider, { activeWrap: true, title: tooltip, width: "initial max-content 40x", children: (0, jsx_runtime_1.jsx)(index_3.InfoCircleIcon, { style: {
|
79
80
|
color: 'var(--purple-text-color)',
|
80
81
|
margin: '0 4px',
|
81
82
|
} }) })) : null, (0, jsx_runtime_1.jsx)("div", { children: labelSuffix })] }), extra && (0, jsx_runtime_1.jsx)(Text_1.Text, { preset: "t3", children: extra })] }) })) : null;
|
82
|
-
let descriptionComponent = description ? ((0, jsx_runtime_1.jsx)("div", { "data-element": "Description", children: (0,
|
83
|
+
let descriptionComponent = description ? ((0, jsx_runtime_1.jsx)("div", { "data-element": "Description", children: (0, index_2.wrapNodeIfPlain)(description, () => ((0, jsx_runtime_1.jsx)(Paragraph_1.Paragraph, { children: description }))) })) : null;
|
83
84
|
const mods = {
|
84
85
|
'has-sider': labelPosition === 'side',
|
85
86
|
'has-description': !!description,
|
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
"use strict";
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.extractFieldWrapperProps =
|
10
|
+
exports.extractFieldWrapperProps = extractFieldWrapperProps;
|
11
11
|
const createFieldWrapperPropsKeys = (arr) => new Set(arr);
|
12
12
|
const fieldWrapperPropsKeys = createFieldWrapperPropsKeys([
|
13
13
|
'as',
|
@@ -45,6 +45,5 @@ function extractFieldWrapperProps(props) {
|
|
45
45
|
}
|
46
46
|
return { fieldWrapperProps, rest };
|
47
47
|
}
|
48
|
-
exports.extractFieldWrapperProps = extractFieldWrapperProps;
|
49
48
|
|
50
49
|
|
@@ -1,21 +1,22 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
"use strict";
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.
|
10
|
+
exports.Field = Field;
|
11
|
+
exports.useInsideLegacyField = useInsideLegacyField;
|
11
12
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
13
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
13
14
|
const react_1 = require("react");
|
14
|
-
const
|
15
|
-
const
|
15
|
+
const index_1 = require("../../../utils/react/index");
|
16
|
+
const index_2 = require("../FieldWrapper/index");
|
16
17
|
const warnings_1 = require("../../../utils/warnings");
|
17
18
|
const Form_1 = require("./Form");
|
18
|
-
const
|
19
|
+
const index_3 = require("./use-field/index");
|
19
20
|
function getDefaultValidateTrigger(type) {
|
20
21
|
type = type || '';
|
21
22
|
return type === 'Number' || type.includes('Text') ? 'onBlur' : 'onChange';
|
@@ -81,7 +82,7 @@ function Field(props) {
|
|
81
82
|
}
|
82
83
|
let child = children == null ? null : react_1.Children.only(children);
|
83
84
|
const inputType = child?.type?.cubeInputType ?? 'Text';
|
84
|
-
const __props = (0,
|
85
|
+
const __props = (0, index_3.useField)(allProps, {
|
85
86
|
defaultValidationTrigger: getDefaultValidateTrigger(inputType),
|
86
87
|
});
|
87
88
|
const { validationState, message, isRequired, name, id } = __props;
|
@@ -94,14 +95,14 @@ function Field(props) {
|
|
94
95
|
labelProps.for = id;
|
95
96
|
}
|
96
97
|
if (__props.nonInput) {
|
97
|
-
return ((0, jsx_runtime_1.jsx)(LegacyFieldProvider, { children: (0, jsx_runtime_1.jsx)(
|
98
|
+
return ((0, jsx_runtime_1.jsx)(LegacyFieldProvider, { children: (0, jsx_runtime_1.jsx)(index_2.FieldWrapper, { isHidden: isHidden, isDisabled: isDisabled, validationState: __props.validationState, necessityIndicator: necessityIndicator, necessityLabel: necessityLabel, isRequired: isRequired, label: label, labelProps: labelProps, extra: extra, tooltip: tooltip, message: message, description: description, Component: child, styles: styles, labelPosition: labelPosition, labelStyles: labelStyles, labelSuffix: labelSuffix }) }));
|
98
99
|
}
|
99
100
|
if (!form) {
|
100
101
|
(0, warnings_1.warn)('Form Field requires declared form instance if field name is specified');
|
101
102
|
return null;
|
102
103
|
}
|
103
104
|
if (!__props.field) {
|
104
|
-
return ((0, jsx_runtime_1.jsx)(LegacyFieldProvider, { children: (0, react_1.cloneElement)(child, (0,
|
105
|
+
return ((0, jsx_runtime_1.jsx)(LegacyFieldProvider, { children: (0, react_1.cloneElement)(child, (0, index_1.mergeProps)(child.props, {
|
105
106
|
...getValueProps(inputType),
|
106
107
|
label: name,
|
107
108
|
name,
|
@@ -149,9 +150,8 @@ function Field(props) {
|
|
149
150
|
Object.assign(newProps, getValueProps(inputType, __props.field?.inputValue, __props.onChange, child.props.allowsCustomValue));
|
150
151
|
const { onChange, onSelectionChange, ...childProps } = child.props;
|
151
152
|
// onChange event passed to the child should be executed after Form onChange logic
|
152
|
-
return ((0, jsx_runtime_1.jsx)(LegacyFieldProvider, { children: (0, react_1.cloneElement)(child, (0,
|
153
|
+
return ((0, jsx_runtime_1.jsx)(LegacyFieldProvider, { children: (0, react_1.cloneElement)(child, (0, index_1.mergeProps)(childProps, newProps, onChange ? { onChange: __props.onChange } : {}, onSelectionChange ? { onSelectionChange: __props.onChange } : {})) }));
|
153
154
|
}
|
154
|
-
exports.Field = Field;
|
155
155
|
const LegacyFieldContext = (0, react_1.createContext)({
|
156
156
|
insideLegacyField: false,
|
157
157
|
});
|
@@ -163,6 +163,5 @@ function useInsideLegacyField() {
|
|
163
163
|
const { insideLegacyField = false } = (0, react_1.useContext)(LegacyFieldContext);
|
164
164
|
return insideLegacyField;
|
165
165
|
}
|
166
|
-
exports.useInsideLegacyField = useInsideLegacyField;
|
167
166
|
|
168
167
|
|
@@ -1,23 +1,24 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
"use strict";
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.Form = exports.
|
10
|
+
exports.Form = exports.FormContext = void 0;
|
11
|
+
exports.useFormProps = useFormProps;
|
11
12
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
13
|
const utils_1 = require("@react-spectrum/utils");
|
13
14
|
const react_1 = require("react");
|
14
15
|
const provider_1 = require("../../../provider");
|
15
|
-
const
|
16
|
-
const
|
16
|
+
const index_1 = require("../../../tasty/index");
|
17
|
+
const index_2 = require("../../../utils/react/index");
|
17
18
|
const promise_1 = require("../../../utils/promise");
|
18
19
|
const use_form_1 = require("./use-form");
|
19
20
|
exports.FormContext = (0, react_1.createContext)({});
|
20
|
-
const FormElement = (0,
|
21
|
+
const FormElement = (0, index_1.tasty)({
|
21
22
|
as: 'form',
|
22
23
|
qa: 'Form',
|
23
24
|
styles: {
|
@@ -41,7 +42,6 @@ function useFormProps(props) {
|
|
41
42
|
const ctx = (0, react_1.useContext)(exports.FormContext);
|
42
43
|
return { ...ctx, ...props };
|
43
44
|
}
|
44
|
-
exports.useFormProps = useFormProps;
|
45
45
|
const formPropNames = new Set([
|
46
46
|
'action',
|
47
47
|
'autoComplete',
|
@@ -63,7 +63,7 @@ function Form(props, ref) {
|
|
63
63
|
if (!labelWidth) {
|
64
64
|
labelWidth = isHorizontal ? 'auto' : undefined;
|
65
65
|
}
|
66
|
-
ref = (0,
|
66
|
+
ref = (0, index_2.useCombinedRefs)(ref);
|
67
67
|
let onSubmitCallback;
|
68
68
|
if ((onSubmit || onSubmitFailed) && !otherProps.action) {
|
69
69
|
onSubmitCallback = async (e) => {
|
@@ -114,7 +114,7 @@ function Form(props, ref) {
|
|
114
114
|
onSubmit: onSubmitCallback,
|
115
115
|
onValuesChange,
|
116
116
|
});
|
117
|
-
let styles = (0,
|
117
|
+
let styles = (0, index_1.extractStyles)(otherProps, index_1.CONTAINER_STYLES);
|
118
118
|
if (labelWidth) {
|
119
119
|
styles['@label-width'] = labelWidth;
|
120
120
|
}
|
@@ -143,7 +143,7 @@ function Form(props, ref) {
|
|
143
143
|
form?.setInitialFieldsValue(defaultValues);
|
144
144
|
}
|
145
145
|
}, [defaultValues]);
|
146
|
-
return ((0, jsx_runtime_1.jsx)(FormElement, { ...(0,
|
146
|
+
return ((0, jsx_runtime_1.jsx)(FormElement, { ...(0, index_1.filterBaseProps)(otherProps, { propNames: formPropNames }), ref: domRef, noValidate: true, styles: styles, mods: { 'has-sider': labelPosition === 'side', horizontal: isHorizontal }, onSubmit: onSubmitCallback, children: (0, jsx_runtime_1.jsx)(exports.FormContext.Provider, { value: ctx, children: (0, jsx_runtime_1.jsx)(provider_1.Provider, { insideForm: true, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, validationState: validationState, children: children }) }) }));
|
147
147
|
}
|
148
148
|
/**
|
149
149
|
* Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -12,14 +12,14 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
12
|
const react_1 = require("react");
|
13
13
|
const provider_1 = require("../../../../provider");
|
14
14
|
const Form_1 = require("../Form");
|
15
|
-
const
|
15
|
+
const index_1 = require("../../../actions/index");
|
16
16
|
exports.Submit = (0, react_1.forwardRef)(function Submit(props, ref) {
|
17
17
|
props = (0, provider_1.useProviderProps)(props);
|
18
18
|
props = (0, Form_1.useFormProps)(props);
|
19
19
|
const { form, ...otherProps } = props;
|
20
20
|
const formData = form?.getFieldsValue() ?? {};
|
21
21
|
const isInvalid = Object.keys(formData).some((name) => form?.isFieldInvalid(name) ?? false);
|
22
|
-
return ((0, jsx_runtime_1.jsx)(
|
22
|
+
return ((0, jsx_runtime_1.jsx)(index_1.Button, { ref: ref, type: "primary", htmlType: "submit", isLoading: form?.isSubmitting, isDisabled: isInvalid, ...otherProps }));
|
23
23
|
});
|
24
24
|
|
25
25
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.SubmitError = void 0;
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
12
12
|
const react_1 = require("react");
|
13
|
-
const
|
13
|
+
const index_1 = require("../../content/Alert/index");
|
14
14
|
const Form_1 = require("./Form");
|
15
15
|
/**
|
16
16
|
* An alert that shows a form error message received from the onSubmit callback.
|
@@ -24,7 +24,7 @@ const SubmitError = function SubmitError(props) {
|
|
24
24
|
typeof submitError !== 'string') {
|
25
25
|
submitError = 'Internal error';
|
26
26
|
}
|
27
|
-
return ((0, jsx_runtime_1.jsx)(
|
27
|
+
return ((0, jsx_runtime_1.jsx)(index_1.Alert, { theme: "danger", ...props, children: submitError }));
|
28
28
|
};
|
29
29
|
exports.SubmitError = SubmitError;
|
30
30
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -19,7 +19,7 @@ Object.defineProperty(exports, "useFormProps", { enumerable: true, get: function
|
|
19
19
|
Object.defineProperty(exports, "FormContext", { enumerable: true, get: function () { return Form_1.FormContext; } });
|
20
20
|
const Form = Object.assign(Form_1.Form, { Item: Field_1.Field, useForm: use_form_1.useForm, SubmitError: SubmitError_1.SubmitError });
|
21
21
|
exports.Form = Form;
|
22
|
-
var
|
23
|
-
Object.defineProperty(exports, "useFieldProps", { enumerable: true, get: function () { return
|
22
|
+
var index_1 = require("./use-field/index");
|
23
|
+
Object.defineProperty(exports, "useFieldProps", { enumerable: true, get: function () { return index_1.useFieldProps; } });
|
24
24
|
|
25
25
|
|
@@ -1,18 +1,18 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
"use strict";
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.useFieldProps =
|
10
|
+
exports.useFieldProps = useFieldProps;
|
11
11
|
const react_1 = require("react");
|
12
12
|
const react_2 = require("react");
|
13
|
-
const
|
13
|
+
const index_1 = require("../../../../_internal/index");
|
14
14
|
const Field_1 = require("../Field");
|
15
|
-
const
|
15
|
+
const index_2 = require("../../../../utils/react/index");
|
16
16
|
const warnings_1 = require("../../../../utils/warnings");
|
17
17
|
const use_field_1 = require("./use-field");
|
18
18
|
function useFieldProps(props, params = {}) {
|
@@ -44,9 +44,9 @@ function useFieldProps(props, params = {}) {
|
|
44
44
|
(0, warnings_1.warn)(`The "rules" prop is not supported for fields that are not part of a form. The "${props.name}" field is placed outside the form.`);
|
45
45
|
}
|
46
46
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
47
|
-
const onBlurChained = (0,
|
47
|
+
const onBlurChained = (0, index_1.useChainedCallback)(field?.onBlur, 'onBlur' in props ? props.onBlur : undefined);
|
48
48
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
49
|
-
const onChangeEvent = (0,
|
49
|
+
const onChangeEvent = (0, index_1.useEvent)((value, dontTouch) => field?.onChange?.(value, dontTouch, field?.validateTrigger ?? defaultValidationTrigger));
|
50
50
|
const valueProps = !isOutsideOfForm
|
51
51
|
? valuePropsMapper({ value: field.value, onChange: onChangeEvent })
|
52
52
|
: {};
|
@@ -62,7 +62,7 @@ function useFieldProps(props, params = {}) {
|
|
62
62
|
}
|
63
63
|
const result = isOutsideOfForm
|
64
64
|
? props
|
65
|
-
: (0,
|
65
|
+
: (0, index_2.mergeProps)(props, field, valueProps, {
|
66
66
|
validateTrigger: field.validateTrigger ?? defaultValidationTrigger,
|
67
67
|
onBlur: onBlurChained,
|
68
68
|
});
|
@@ -78,6 +78,5 @@ function useFieldProps(props, params = {}) {
|
|
78
78
|
}
|
79
79
|
return result;
|
80
80
|
}
|
81
|
-
exports.useFieldProps = useFieldProps;
|
82
81
|
|
83
82
|
|
@@ -1,15 +1,15 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
"use strict";
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.useField =
|
10
|
+
exports.useField = useField;
|
11
11
|
const react_1 = require("react");
|
12
|
-
const
|
12
|
+
const index_1 = require("../../../../_internal/index");
|
13
13
|
const Form_1 = require("../Form");
|
14
14
|
const validation_1 = require("../validation");
|
15
15
|
const ID_MAP = {};
|
@@ -41,7 +41,7 @@ function useField(props, params) {
|
|
41
41
|
}
|
42
42
|
const nonInput = !name;
|
43
43
|
const fieldName = name != null ? name : '';
|
44
|
-
const isFirstRender = (0,
|
44
|
+
const isFirstRender = (0, index_1.useIsFirstRender)();
|
45
45
|
let [fieldId, setFieldId] = (0, react_1.useState)(id || (idPrefix ? `${idPrefix}_${fieldName}` : fieldName));
|
46
46
|
(0, react_1.useEffect)(() => {
|
47
47
|
let newId;
|
@@ -57,7 +57,7 @@ function useField(props, params) {
|
|
57
57
|
form.removeField(fieldName);
|
58
58
|
}
|
59
59
|
};
|
60
|
-
}, []);
|
60
|
+
}, [fieldName]);
|
61
61
|
let field = form?.getFieldInstance(fieldName);
|
62
62
|
if (field) {
|
63
63
|
field.rules = rules;
|
@@ -88,7 +88,7 @@ function useField(props, params) {
|
|
88
88
|
form.setFieldValue(fieldName, defaultValue, false, true);
|
89
89
|
}
|
90
90
|
}
|
91
|
-
const onChangeHandler = (0,
|
91
|
+
const onChangeHandler = (0, index_1.useEvent)((val, dontTouch) => {
|
92
92
|
if (!form)
|
93
93
|
return;
|
94
94
|
const field = form.getFieldInstance(fieldName);
|
@@ -112,7 +112,7 @@ function useField(props, params) {
|
|
112
112
|
form.validateField(fieldName).catch(() => { }); // do nothing on fail
|
113
113
|
}
|
114
114
|
});
|
115
|
-
const onBlurHandler = (0,
|
115
|
+
const onBlurHandler = (0, index_1.useEvent)(() => {
|
116
116
|
if (validateTrigger === 'onBlur') {
|
117
117
|
// We need a timeout so the change event can be done.
|
118
118
|
setTimeout(() => {
|
@@ -156,6 +156,5 @@ function useField(props, params) {
|
|
156
156
|
nonInput,
|
157
157
|
]);
|
158
158
|
}
|
159
|
-
exports.useField = useField;
|
160
159
|
|
161
160
|
|
@@ -1,15 +1,16 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.
|
4
|
+
* @cube-dev/ui-kit v0.40.0
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
"use strict";
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
10
|
-
exports.
|
10
|
+
exports.CubeFormInstance = void 0;
|
11
|
+
exports.useForm = useForm;
|
11
12
|
const react_1 = require("react");
|
12
|
-
const
|
13
|
+
const index_1 = require("../../../tasty/index");
|
13
14
|
const validation_1 = require("./validation");
|
14
15
|
function setValue(obj, path, value) {
|
15
16
|
let a = path.split('.');
|
@@ -141,10 +142,10 @@ class CubeFormInstance {
|
|
141
142
|
return this.fields[name];
|
142
143
|
}
|
143
144
|
setInitialFieldsValue(values) {
|
144
|
-
this.initialFields =
|
145
|
+
this.initialFields = index_1.dotize.convert(values) ?? {};
|
145
146
|
}
|
146
147
|
updateInitialFieldsValue(values) {
|
147
|
-
this.initialFields = { ...this.initialFields, ...
|
148
|
+
this.initialFields = { ...this.initialFields, ...index_1.dotize.convert(values) };
|
148
149
|
}
|
149
150
|
resetFields(names, skipRender) {
|
150
151
|
const fieldsValue = this.getFieldsValue();
|
@@ -240,6 +241,9 @@ class CubeFormInstance {
|
|
240
241
|
return false;
|
241
242
|
return !!field.touched;
|
242
243
|
}
|
244
|
+
get isTouched() {
|
245
|
+
return Object.values(this.fields).some((field) => field?.touched);
|
246
|
+
}
|
243
247
|
getFieldError(name) {
|
244
248
|
const field = this.getFieldInstance(name);
|
245
249
|
if (!field)
|
@@ -326,6 +330,5 @@ function useForm(form, ref, options = {}) {
|
|
326
330
|
}
|
327
331
|
return [formRef.current];
|
328
332
|
}
|
329
|
-
exports.useForm = useForm;
|
330
333
|
|
331
334
|
|