@cube-dev/ui-kit 0.59.8 → 0.59.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/es/_internal/hooks/index.js +1 -1
- package/es/_internal/hooks/use-chained-callback.js +1 -1
- package/es/_internal/hooks/use-debounced-value.js +2 -2
- package/es/_internal/hooks/use-deprecation-warning.js +1 -1
- package/es/_internal/hooks/use-effect-once.js +1 -2
- 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 +2 -3
- package/es/components/HiddenInput.js +1 -1
- package/es/components/OpenTrasition.js +1 -1
- package/es/components/Root.js +4 -4
- package/es/components/actions/Action/Action.js +2 -2
- package/es/components/actions/Button/Button.js +2 -2
- package/es/components/actions/Button/index.js +1 -1
- package/es/components/actions/ButtonGroup/ButtonGroup.js +2 -2
- package/es/components/actions/index.js +1 -1
- package/es/components/actions/use-action.js +6 -6
- package/es/components/content/ActiveZone/ActiveZone.js +4 -4
- 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 +2 -2
- 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 +6 -6
- package/es/components/content/CopyPasteBlock/index.js +1 -1
- package/es/components/content/CopySnippet/CopySnippet.js +7 -7
- 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 +5 -5
- package/es/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/es/components/content/Result/Result.js +4 -4
- package/es/components/content/Skeleton/Skeleton.js +3 -3
- package/es/components/content/Tag/Tag.js +2 -2
- package/es/components/content/Text.js +1 -1
- package/es/components/content/Title.js +1 -1
- package/es/components/fields/Checkbox/Checkbox.js +6 -7
- package/es/components/fields/Checkbox/CheckboxGroup.js +4 -4
- package/es/components/fields/Checkbox/context.js +1 -1
- package/es/components/fields/Checkbox/index.js +1 -1
- package/es/components/fields/ComboBox/ComboBox.js +6 -6
- package/es/components/fields/ComboBox/index.js +1 -1
- package/es/components/fields/DatePicker/DateInput.js +5 -5
- package/es/components/fields/DatePicker/DateInputBase.js +4 -4
- package/es/components/fields/DatePicker/DatePicker.js +7 -7
- package/es/components/fields/DatePicker/DatePickerButton.js +2 -2
- package/es/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/es/components/fields/DatePicker/DatePickerInput.js +2 -2
- package/es/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/es/components/fields/DatePicker/DateRangePicker.js +7 -7
- package/es/components/fields/DatePicker/DateRangeSeparatedPicker.js +7 -7
- package/es/components/fields/DatePicker/TimeInput.js +2 -2
- package/es/components/fields/DatePicker/index.js +1 -1
- package/es/components/fields/DatePicker/intl.js +1 -1
- package/es/components/fields/DatePicker/parseDate.js +1 -1
- package/es/components/fields/DatePicker/props.js +1 -1
- package/es/components/fields/DatePicker/types.js +1 -1
- package/es/components/fields/DatePicker/utils.js +2 -2
- package/es/components/fields/FileInput/FileInput.js +4 -4
- package/es/components/fields/Input/Input.js +4 -4
- package/es/components/fields/Input/index.js +1 -1
- package/es/components/fields/NumberInput/NumberInput.js +6 -6
- package/es/components/fields/NumberInput/StepButton.js +2 -2
- package/es/components/fields/PasswordInput/PasswordInput.js +6 -5
- package/es/components/fields/RadioGroup/Radio.js +5 -5
- package/es/components/fields/RadioGroup/RadioGroup.js +4 -4
- package/es/components/fields/RadioGroup/context.js +1 -1
- package/es/components/fields/RadioGroup/index.js +1 -1
- package/es/components/fields/SearchInput/SearchInput.js +6 -6
- package/es/components/fields/SearchInput/index.js +1 -1
- package/es/components/fields/Select/Select.js +7 -7
- package/es/components/fields/Select/index.js +1 -1
- package/es/components/fields/Slider/Gradation.js +1 -1
- package/es/components/fields/Slider/Header.js +1 -1
- package/es/components/fields/Slider/RangeSlider.js +3 -3
- package/es/components/fields/Slider/Slider.js +3 -3
- package/es/components/fields/Slider/SliderBase.js +4 -4
- package/es/components/fields/Slider/SliderInput.js +1 -1
- package/es/components/fields/Slider/SliderThumb.js +1 -1
- package/es/components/fields/Slider/SliderTrack.js +1 -1
- package/es/components/fields/Slider/elements.js +1 -1
- package/es/components/fields/Slider/index.js +1 -1
- package/es/components/fields/Slider/types.js +1 -1
- package/es/components/fields/Switch/Switch.js +7 -8
- package/es/components/fields/Switch/index.js +1 -1
- package/es/components/fields/TextArea/TextArea.js +6 -5
- package/es/components/fields/TextArea/index.js +1 -1
- package/es/components/fields/TextInput/TextInput.js +3 -2
- package/es/components/fields/TextInput/TextInputBase.js +3 -3
- package/es/components/fields/TextInput/index.js +1 -1
- package/es/components/fields/TextInputMapper/TextInputMapper.js +3 -3
- package/es/components/fields/TextInputMapper/index.js +1 -1
- package/es/components/fields/index.js +1 -1
- package/es/components/form/FieldWrapper/FieldWrapper.js +6 -6
- package/es/components/form/FieldWrapper/extract-field-wrapper-props.js +1 -1
- package/es/components/form/FieldWrapper/index.js +1 -1
- package/es/components/form/FieldWrapper/types.js +1 -1
- package/es/components/form/Form/Field.js +2 -3
- package/es/components/form/Form/Form.js +2 -2
- package/es/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/es/components/form/Form/ResetButton/index.js +1 -1
- package/es/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/es/components/form/Form/SubmitButton/index.js +1 -1
- package/es/components/form/Form/SubmitError.js +2 -2
- package/es/components/form/Form/index.js +2 -2
- package/es/components/form/Form/types.js +1 -1
- package/es/components/form/Form/use-field/index.js +1 -1
- package/es/components/form/Form/use-field/types.js +1 -1
- package/es/components/form/Form/use-field/use-field-props.js +3 -8
- package/es/components/form/Form/use-field/use-field.js +1 -1
- package/es/components/form/Form/use-form.js +1 -1
- package/es/components/form/Form/validation.js +3 -3
- package/es/components/form/Label.js +1 -1
- package/es/components/form/index.js +1 -1
- package/es/components/form/wrapper.js +1 -1
- package/es/components/layout/Flex.js +1 -1
- package/es/components/layout/Flow.js +1 -1
- package/es/components/layout/Grid.js +1 -1
- package/es/components/layout/Panel.js +1 -1
- package/es/components/layout/Prefix.js +1 -1
- package/es/components/layout/ResizablePanel.js +2 -2
- package/es/components/layout/Space.js +1 -1
- package/es/components/layout/Suffix.js +1 -1
- package/es/components/navigation/LegacyTabs/LegacyTabs.js +5 -5
- package/es/components/navigation/Link/Link.js +1 -1
- package/es/components/organisms/FileTabs/FileTabs.js +6 -6
- package/es/components/organisms/Modal/Modal.js +8 -7
- package/es/components/organisms/StatsCard/StatsCard.js +2 -2
- package/es/components/other/Base64Upload/Base64Upload.js +2 -2
- package/es/components/other/Calendar/Calendar.js +7 -7
- package/es/components/other/Calendar/CalendarCell.js +1 -1
- package/es/components/other/Calendar/CalendarGrid.js +2 -2
- package/es/components/other/Calendar/RangeCalendar.js +7 -7
- package/es/components/other/CloudLogo/CloudLogo.js +2 -2
- package/es/components/overlays/AlertDialog/AlertDialog.js +5 -5
- package/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +2 -2
- package/es/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/es/components/overlays/AlertDialog/index.js +1 -1
- package/es/components/overlays/AlertDialog/types.js +1 -1
- package/es/components/overlays/Dialog/Dialog.js +3 -4
- package/es/components/overlays/Dialog/DialogContainer.js +2 -2
- package/es/components/overlays/Dialog/DialogForm.js +4 -5
- package/es/components/overlays/Dialog/DialogTrigger.js +3 -3
- package/es/components/overlays/Dialog/context.js +1 -1
- package/es/components/overlays/Dialog/dialog-container.js +2 -2
- package/es/components/overlays/Dialog/index.js +1 -1
- package/es/components/overlays/Modal/Modal.js +2 -2
- package/es/components/overlays/Modal/OpenTransition.js +1 -1
- package/es/components/overlays/Modal/Overlay.js +1 -1
- package/es/components/overlays/Modal/Popover.js +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 +2 -2
- package/es/components/overlays/NewNotifications/Bar/NotificationsBar.js +6 -6
- 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 +4 -4
- 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 +2 -2
- package/es/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +3 -3
- package/es/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +2 -2
- package/es/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +2 -2
- package/es/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +2 -2
- package/es/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationView.js +6 -6
- 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 -2
- package/es/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +3 -3
- package/es/components/overlays/NewNotifications/NotificationsList/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/types.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/index.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/types.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notification-list-item.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-api.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-list.js +2 -2
- package/es/components/overlays/NewNotifications/hooks/use-notifications-observer.js +1 -1
- package/es/components/overlays/NewNotifications/index.js +1 -1
- package/es/components/overlays/NewNotifications/types.js +1 -1
- package/es/components/overlays/Notification/Notification.js +5 -5
- package/es/components/overlays/OverlayWrapper.js +3 -3
- 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 +3 -3
- package/es/components/overlays/Tooltip/TooltipProvider.js +2 -2
- package/es/components/overlays/Tooltip/TooltipTrigger.js +3 -3
- package/es/components/overlays/Tooltip/context.js +1 -1
- package/es/components/overlays/Tooltip/index.js +1 -1
- package/es/components/pickers/Menu/Menu.js +6 -6
- package/es/components/pickers/Menu/MenuButton.js +3 -3
- package/es/components/pickers/Menu/MenuItem.js +4 -4
- package/es/components/pickers/Menu/MenuSection.js +1 -1
- package/es/components/pickers/Menu/MenuTrigger.js +5 -5
- 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 +2 -2
- 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/ClearIcon.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/CodeIcon.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/DatabaseIcon.js +1 -1
- package/es/icons/DirectionIcon.js +1 -1
- package/es/icons/DonutIcon.js +1 -1
- package/es/icons/DownIcon.js +1 -1
- package/es/icons/EditIcon.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/FolderFilledIcon.js +1 -1
- package/es/icons/FolderIcon.js +1 -1
- package/es/icons/FolderOpenFilledIcon.js +1 -1
- package/es/icons/FolderOpenIcon.js +1 -1
- package/es/icons/ForwardIcon.js +1 -1
- package/es/icons/HierarchyIcon.js +1 -1
- package/es/icons/Icon.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/PauseIcon.js +1 -1
- package/es/icons/PieChartIcon.js +1 -1
- package/es/icons/PlayCircleIcon.js +1 -1
- package/es/icons/PlayIcon.js +1 -1
- package/es/icons/PlusIcon.js +1 -1
- package/es/icons/ReloadIcon.js +1 -1
- package/es/icons/ReportIcon.js +1 -1
- package/es/icons/ReturnIcon.js +1 -1
- package/es/icons/RightIcon.js +1 -1
- package/es/icons/SchemeIcon.js +1 -1
- package/es/icons/SearchIcon.js +1 -1
- package/es/icons/SettingsIcon.js +1 -1
- package/es/icons/ShieldFilledIcon.js +1 -1
- package/es/icons/ShieldIcon.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/StopIcon.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/UserGroupIcon.js +1 -1
- package/es/icons/UserIcon.js +1 -1
- package/es/icons/UserLockIcon.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/add-new-icon.js +5 -6
- package/es/icons/index.js +1 -1
- package/es/icons/wrap-icon.js +1 -1
- package/es/index.js +3 -3
- package/es/provider.js +1 -1
- package/es/providers/TrackingProvider.js +1 -1
- package/es/services/notification.js +1 -1
- package/es/shared/form.js +1 -1
- package/es/shared/index.js +1 -1
- package/es/stories/Form.stories.js +2 -2
- package/es/stories/FormFieldArgs.js +1 -1
- package/es/stories/Layout.stories.js +2 -2
- package/es/stories/Tasty.stories.js +2 -2
- package/es/stories/components/ConfirmDeletionDialogForm.js +2 -2
- package/es/stories/components/DialogFormApp.js +1 -1
- package/es/stories/components/StyledButton.js +2 -2
- 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 +2 -2
- package/es/tasty/styles/dimension.js +1 -1
- package/es/tasty/styles/display.js +1 -1
- package/es/tasty/styles/fade.js +2 -2
- 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 +2 -2
- package/es/tasty/styles/justify.js +1 -1
- package/es/tasty/styles/list.js +1 -1
- package/es/tasty/styles/margin.js +2 -2
- 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 +2 -2
- package/es/tasty/styles/paddingBlock.js +1 -1
- package/es/tasty/styles/paddingInline.js +1 -1
- package/es/tasty/styles/predefined.js +22 -22
- package/es/tasty/styles/preset.js +1 -1
- package/es/tasty/styles/radius.js +2 -2
- 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 +6 -6
- 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 → getModCombinations.js} +1 -1
- package/es/tasty/utils/mergeStyles.js +1 -1
- package/es/tasty/utils/modAttrs.js +2 -2
- 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 +5 -4
- 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 +2 -4
- 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 +2 -2
- package/es/utils/react/chain.js +1 -1
- package/es/utils/react/index.js +2 -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 +2 -2
- package/es/utils/react/useId.js +2 -3
- package/es/utils/react/useLayoutEffect.js +1 -1
- package/es/utils/react/useQaProps.js +44 -0
- package/es/utils/react/useViewportSize.js +1 -1
- package/es/utils/react/wrapNodeIfPlain.js +1 -1
- package/es/utils/transitions.js +2 -2
- package/es/utils/tree.js +1 -1
- package/es/utils/warnings.js +1 -1
- package/es/version.js +2 -2
- package/package.json +6 -2
- package/types/components/Root.d.ts +1 -1
- package/types/components/actions/Action/Action.d.ts +1 -1
- package/types/components/actions/Button/Button.d.ts +1 -1
- package/types/components/actions/use-action.d.ts +1 -1
- package/types/components/content/Alert/types.d.ts +1 -1
- package/types/components/content/CopyPasteBlock/CopyPasteBlock.d.ts +1 -1
- package/types/components/content/CopySnippet/CopySnippet.d.ts +1 -1
- package/types/components/content/PrismCode/PrismCode.d.ts +3 -3
- package/types/components/content/Skeleton/Skeleton.d.ts +2 -2
- package/types/components/fields/Checkbox/Checkbox.d.ts +2 -2
- package/types/components/fields/Checkbox/CheckboxGroup.d.ts +1 -1
- package/types/components/fields/ComboBox/ComboBox.d.ts +1 -1
- package/types/components/fields/DatePicker/DateInput.d.ts +1 -1
- package/types/components/fields/DatePicker/DateInputBase.d.ts +1 -1
- package/types/components/fields/DatePicker/DatePicker.d.ts +1 -1
- package/types/components/fields/DatePicker/DatePickerElement.d.ts +206 -206
- package/types/components/fields/DatePicker/DatePickerInput.d.ts +1 -1
- package/types/components/fields/DatePicker/DatePickerSegment.d.ts +1 -1
- package/types/components/fields/DatePicker/DateRangePicker.d.ts +1 -1
- package/types/components/fields/DatePicker/DateRangeSeparatedPicker.d.ts +2 -2
- package/types/components/fields/DatePicker/TimeInput.d.ts +1 -1
- package/types/components/fields/DatePicker/props.d.ts +1 -1
- package/types/components/fields/FileInput/FileInput.d.ts +1 -1
- package/types/components/fields/Input/Input.d.ts +3 -3
- package/types/components/fields/NumberInput/NumberInput.d.ts +3 -3
- package/types/components/fields/PasswordInput/PasswordInput.d.ts +2 -2
- package/types/components/fields/RadioGroup/Radio.d.ts +57 -57
- package/types/components/fields/RadioGroup/RadioGroup.d.ts +1 -1
- package/types/components/fields/SearchInput/SearchInput.d.ts +2 -2
- package/types/components/fields/Select/Select.d.ts +3 -3
- package/types/components/fields/Slider/RangeSlider.d.ts +1 -1
- package/types/components/fields/Slider/SliderBase.d.ts +1 -1
- package/types/components/fields/Slider/types.d.ts +1 -1
- package/types/components/fields/Switch/Switch.d.ts +2 -2
- package/types/components/fields/TextArea/TextArea.d.ts +2 -2
- package/types/components/fields/TextInput/TextInput.d.ts +1 -1
- package/types/components/fields/TextInput/TextInputBase.d.ts +1 -1
- package/types/components/form/FieldWrapper/types.d.ts +2 -2
- package/types/components/form/Form/Field.d.ts +1 -1
- package/types/components/form/Form/Form.d.ts +3 -3
- package/types/components/form/Form/index.d.ts +1 -1
- package/types/components/form/Form/use-field/types.d.ts +2 -2
- package/types/components/form/Form/use-field/use-field-props.d.ts +2 -2
- package/types/components/form/Label.d.ts +1 -1
- package/types/components/form/wrapper.d.ts +1 -1
- package/types/components/navigation/LegacyTabs/LegacyTabs.d.ts +2 -2
- package/types/components/organisms/FileTabs/FileTabs.d.ts +1 -1
- package/types/components/overlays/AlertDialog/AlertDialogZone.d.ts +1 -1
- package/types/components/overlays/AlertDialog/types.d.ts +1 -1
- package/types/components/overlays/Dialog/DialogForm.d.ts +1 -1
- package/types/components/overlays/Dialog/DialogTrigger.d.ts +2 -2
- package/types/components/overlays/Modal/Popover.d.ts +1 -1
- package/types/components/overlays/NewNotifications/Bar/FloatingNotification.d.ts +1 -1
- package/types/components/overlays/NewNotifications/Bar/NotificationsBar.d.ts +2 -2
- package/types/components/overlays/NewNotifications/Bar/TransitionComponent.d.ts +1 -1
- package/types/components/overlays/NewNotifications/NotificationView/NotificationAction.d.ts +1 -1
- package/types/components/overlays/NewNotifications/NotificationView/NotificationProvider.d.ts +1 -1
- package/types/components/overlays/NewNotifications/NotificationView/types.d.ts +2 -2
- package/types/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.d.ts +1 -1
- package/types/components/overlays/NewNotifications/NotificationsList/NotificationsList.d.ts +1 -1
- package/types/components/overlays/NewNotifications/NotificationsList/types.d.ts +1 -1
- package/types/components/overlays/NewNotifications/hooks/types.d.ts +1 -1
- package/types/components/overlays/Tooltip/Tooltip.d.ts +1 -1
- package/types/components/overlays/Tooltip/TooltipProvider.d.ts +1 -1
- package/types/components/overlays/Tooltip/TooltipTrigger.d.ts +1 -1
- package/types/components/pickers/Menu/Menu.d.ts +3 -3
- package/types/components/pickers/Menu/MenuItem.d.ts +1 -1
- package/types/components/pickers/Menu/MenuTrigger.d.ts +1 -2
- package/types/components/pickers/Menu/styled.d.ts +412 -412
- package/types/components/portal/Portal.d.ts +1 -1
- package/types/components/status/Spin/Cube.d.ts +1 -1
- package/types/components/status/Spin/SpinsContainer.d.ts +1 -1
- package/types/index.d.ts +2 -2
- package/types/provider.d.ts +2 -2
- package/types/stories/components/ConfirmDeletionDialogForm.d.ts +1 -1
- package/types/tasty/tasty.d.ts +1 -1
- package/types/tasty/types.d.ts +1 -1
- package/types/utils/react/index.d.ts +1 -0
- package/types/utils/react/useQaProps.d.ts +19 -0
- /package/types/tasty/utils/{index.d.ts → getModCombinations.d.ts} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { AriaDatePickerProps, DateValue } from 'react-aria';
|
2
2
|
import { DateFieldBase, Granularity } from './types';
|
3
3
|
interface CubeDatePickerInputProps<T extends DateValue> extends AriaDatePickerProps<T>, DateFieldBase<T> {
|
4
4
|
hideValidationIcon?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { DateFieldState, DateSegment } from 'react-stately';
|
2
1
|
import { DateValue } from 'react-aria';
|
2
|
+
import { DateFieldState, DateSegment } from 'react-stately';
|
3
3
|
import { DateFieldBase } from './types';
|
4
4
|
interface DatePickerSegmentProps extends DateFieldBase<DateValue> {
|
5
5
|
segment: DateSegment;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FocusableRef } from '@react-types/shared';
|
2
2
|
import { AriaDateRangePickerProps, DateValue } from 'react-aria';
|
3
|
-
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
4
3
|
import { FieldBaseProps, ValidationState } from '../../../shared';
|
4
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
5
5
|
import { DateFieldBase } from './types';
|
6
6
|
export interface CubeDateRangePickerProps<T extends DateValue = DateValue> extends AriaDateRangePickerProps<T>, BaseProps, DateFieldBase<T>, ContainerStyleProps, FieldBaseProps {
|
7
7
|
wrapperStyles?: Styles;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ReactElement } from 'react';
|
2
1
|
import { FocusableRef } from '@react-types/shared';
|
2
|
+
import { ReactElement } from 'react';
|
3
3
|
import { AriaDateRangePickerProps, DateValue } from 'react-aria';
|
4
|
-
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
5
4
|
import { FieldBaseProps, ValidationState } from '../../../shared';
|
5
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
6
6
|
import { DateFieldBase } from './types';
|
7
7
|
export interface CubeDateRangeSeparatedPickerProps<T extends DateValue = DateValue> extends AriaDateRangePickerProps<T>, BaseProps, ContainerStyleProps, DateFieldBase<T>, FieldBaseProps {
|
8
8
|
wrapperStyles?: Styles;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AriaTimeFieldProps, DateValue, TimeValue } from 'react-aria';
|
2
|
-
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
3
2
|
import { FieldBaseProps, ValidationState } from '../../../shared';
|
3
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
4
4
|
import { Granularity } from './types';
|
5
5
|
export interface CubeTimeInputProps<T extends TimeValue = TimeValue> extends AriaTimeFieldProps<T>, BaseProps, ContainerStyleProps, FieldBaseProps {
|
6
6
|
wrapperStyles?: Styles;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import {
|
1
|
+
import { AriaDatePickerProps, DateValue } from 'react-aria';
|
2
2
|
export declare const DEFAULT_DATE_PROPS: Partial<AriaDatePickerProps<DateValue>>;
|
3
3
|
export declare const DEFAULT_TIME_PROPS: Partial<AriaDatePickerProps<DateValue>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { RefObject } from 'react';
|
2
|
-
import { BaseProps, BlockStyleProps, ContainerStyleProps, PositionStyleProps, Props, Styles } from '../../../tasty';
|
3
2
|
import { FieldBaseProps } from '../../../shared';
|
3
|
+
import { BaseProps, BlockStyleProps, ContainerStyleProps, PositionStyleProps, Props, Styles } from '../../../tasty';
|
4
4
|
import type { AriaTextFieldProps } from 'react-aria';
|
5
5
|
export interface CubeFileInputProps extends BaseProps, PositionStyleProps, ContainerStyleProps, BlockStyleProps, AriaTextFieldProps, FieldBaseProps {
|
6
6
|
/**
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { TextInput } from '../TextInput';
|
2
|
-
import { PasswordInput } from '../PasswordInput/PasswordInput';
|
3
|
-
import { NumberInput } from '../NumberInput/NumberInput';
|
4
1
|
import { FileInput } from '../FileInput/FileInput';
|
2
|
+
import { NumberInput } from '../NumberInput/NumberInput';
|
3
|
+
import { PasswordInput } from '../PasswordInput/PasswordInput';
|
5
4
|
import { TextArea } from '../TextArea/TextArea';
|
5
|
+
import { TextInput } from '../TextInput';
|
6
6
|
type CubeInput = typeof TextInput & {
|
7
7
|
Text: typeof TextInput;
|
8
8
|
Password: typeof PasswordInput;
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { AriaNumberFieldProps } from 'react-aria';
|
2
|
-
import { CubeTextInputBaseProps } from '../TextInput';
|
3
2
|
import { WithNullableValue } from '../../../utils/react/nullableValue';
|
3
|
+
import { CubeTextInputBaseProps } from '../TextInput';
|
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;
|
7
7
|
}
|
8
8
|
/**
|
9
|
-
* NumberFields allow users to enter a number
|
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<WithNullableValue<CubeNumberInputProps>, "ref"> & import("react").RefAttributes<
|
11
|
+
declare const _NumberInput: import("react").ForwardRefExoticComponent<Omit<WithNullableValue<CubeNumberInputProps>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
12
12
|
export { _NumberInput as NumberInput };
|
13
13
|
export type { AriaNumberFieldProps };
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { CubeTextInputBaseProps } from '../TextInput';
|
2
1
|
import { WithNullableValue } from '../../../utils/react/nullableValue';
|
2
|
+
import { CubeTextInputBaseProps } from '../TextInput';
|
3
3
|
export interface CubePasswordInputProps extends WithNullableValue<CubeTextInputBaseProps> {
|
4
4
|
}
|
5
5
|
/**
|
@@ -7,5 +7,5 @@ export interface CubePasswordInputProps extends WithNullableValue<CubeTextInputB
|
|
7
7
|
* with a keyboard. Various decorations can be displayed around the field to
|
8
8
|
* communicate the entry requirements.
|
9
9
|
*/
|
10
|
-
declare const _PasswordInput: import("react").ForwardRefExoticComponent<Omit<CubePasswordInputProps, "ref"> & import("react").RefAttributes<
|
10
|
+
declare const _PasswordInput: import("react").ForwardRefExoticComponent<Omit<CubePasswordInputProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
11
11
|
export { _PasswordInput as PasswordInput };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useRadio } from 'react-aria';
|
2
|
-
import { BaseProps, OuterStyleProps, Styles } from '../../../tasty';
|
3
2
|
import { FieldBaseProps } from '../../../shared';
|
3
|
+
import { BaseProps, OuterStyleProps, Styles } from '../../../tasty';
|
4
4
|
import { RadioGroup } from './RadioGroup';
|
5
5
|
import type { AriaRadioProps } from 'react-aria';
|
6
6
|
export { AriaRadioProps };
|
@@ -19,44 +19,44 @@ declare const ButtonGroup: import("react").ComponentType<{
|
|
19
19
|
value?: any;
|
20
20
|
children?: import("react").ReactNode;
|
21
21
|
ref?: import("react").LegacyRef<unknown> | undefined;
|
22
|
-
|
23
|
-
[key: string]: boolean | null | undefined;
|
24
|
-
} | undefined;
|
25
|
-
outline?: import("../../../tasty").ResponsiveStyleValue<boolean | import("csstype").Property.FontFamily | undefined>;
|
26
|
-
alignSelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.AlignSelf | undefined>;
|
27
|
-
flexBasis?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexBasis<string | number> | undefined>;
|
28
|
-
flexGrow?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexGrow | undefined>;
|
29
|
-
flexShrink?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexShrink | undefined>;
|
30
|
-
height?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Height<string | number> | undefined>;
|
31
|
-
justifySelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.JustifySelf | undefined>;
|
22
|
+
hide?: import("../../../tasty").ResponsiveStyleValue<boolean | undefined>;
|
32
23
|
opacity?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Opacity | undefined>;
|
33
|
-
order?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Order | undefined>;
|
34
|
-
position?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Position | undefined>;
|
35
|
-
textAlign?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.TextAlign | undefined>;
|
36
|
-
width?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Width<string | number> | undefined>;
|
37
|
-
zIndex?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.ZIndex | undefined>;
|
38
|
-
border?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Border<string | number> | undefined>;
|
39
|
-
flex?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Flex<string | number> | undefined>;
|
40
24
|
gridArea?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.GridArea | undefined>;
|
25
|
+
order?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Order | undefined>;
|
41
26
|
gridColumn?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.GridColumn | undefined>;
|
42
27
|
gridRow?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.GridRow | undefined>;
|
43
|
-
|
28
|
+
placeSelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.PlaceSelf | undefined>;
|
29
|
+
alignSelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.AlignSelf | undefined>;
|
30
|
+
justifySelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.JustifySelf | undefined>;
|
31
|
+
zIndex?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.ZIndex | undefined>;
|
44
32
|
margin?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Margin<string | number> | undefined>;
|
45
|
-
|
33
|
+
inset?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Inset<string | number> | undefined>;
|
34
|
+
position?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Position | undefined>;
|
35
|
+
reset?: import("../../../tasty").ResponsiveStyleValue<"input" | "button" | undefined>;
|
46
36
|
padding?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Padding<string | number> | undefined>;
|
47
|
-
paddingBlock?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.PaddingBlock<string | number> | undefined>;
|
48
37
|
paddingInline?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.PaddingInline<string | number> | undefined>;
|
49
|
-
|
50
|
-
reset?: import("../../../tasty").ResponsiveStyleValue<"input" | "button" | undefined>;
|
51
|
-
styledScrollbar?: import("../../../tasty").ResponsiveStyleValue<boolean | undefined>;
|
52
|
-
hide?: import("../../../tasty").ResponsiveStyleValue<boolean | undefined>;
|
38
|
+
paddingBlock?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.PaddingBlock<string | number> | undefined>;
|
53
39
|
shadow?: import("../../../tasty").ResponsiveStyleValue<string | undefined>;
|
40
|
+
border?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Border<string | number> | undefined>;
|
54
41
|
radius?: import("../../../tasty").ResponsiveStyleValue<string | true | undefined>;
|
42
|
+
overflow?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Overflow | undefined>;
|
43
|
+
styledScrollbar?: import("../../../tasty").ResponsiveStyleValue<boolean | undefined>;
|
44
|
+
outline?: import("../../../tasty").ResponsiveStyleValue<boolean | import("csstype").Property.FontFamily | undefined>;
|
45
|
+
textAlign?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.TextAlign | undefined>;
|
46
|
+
width?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Width<string | number> | undefined>;
|
47
|
+
height?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Height<string | number> | undefined>;
|
48
|
+
flexBasis?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexBasis<string | number> | undefined>;
|
49
|
+
flexGrow?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexGrow | undefined>;
|
50
|
+
flexShrink?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexShrink | undefined>;
|
51
|
+
flex?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Flex<string | number> | undefined>;
|
52
|
+
mods?: {
|
53
|
+
[key: string]: boolean | null | undefined;
|
54
|
+
} | undefined;
|
55
55
|
block?: boolean | undefined;
|
56
|
+
inline?: boolean | undefined;
|
56
57
|
style?: import("react").CSSProperties | (import("react").CSSProperties & {
|
57
58
|
[key: string]: string | number | null;
|
58
59
|
}) | undefined;
|
59
|
-
inline?: boolean | undefined;
|
60
60
|
element?: `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `I${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `O${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
61
61
|
tooltip?: import("react").ReactNode;
|
62
62
|
styles?: Styles | undefined;
|
@@ -84,14 +84,14 @@ declare const ButtonGroup: import("react").ComponentType<{
|
|
84
84
|
description?: import("react").ReactNode;
|
85
85
|
rules?: import("../../../shared").ValidationRule[] | undefined;
|
86
86
|
message?: import("react").ReactNode;
|
87
|
+
isLoading?: boolean | undefined;
|
88
|
+
key?: import("react").Key | null | undefined;
|
87
89
|
insideForm?: boolean | undefined;
|
88
90
|
isReadOnly?: boolean | undefined;
|
89
91
|
isRequired?: boolean | undefined;
|
90
92
|
validationState?: import("../../../shared").ValidationState | undefined;
|
91
|
-
isLoading?: boolean | undefined;
|
92
|
-
key?: import("react").Key | null | undefined;
|
93
|
-
extra?: import("react").ReactNode;
|
94
93
|
orientation?: "horizontal" | "vertical" | undefined;
|
94
|
+
extra?: import("react").ReactNode;
|
95
95
|
labelPosition?: import("../../../shared").LabelPosition | undefined;
|
96
96
|
necessityIndicator?: import("../../../shared").NecessityIndicator | undefined;
|
97
97
|
fieldProps?: import("../../../tasty").Props | undefined;
|
@@ -123,44 +123,44 @@ declare const __Radio: import("react").ForwardRefExoticComponent<CubeRadioProps
|
|
123
123
|
value?: any;
|
124
124
|
children?: import("react").ReactNode;
|
125
125
|
ref?: import("react").LegacyRef<unknown> | undefined;
|
126
|
-
|
127
|
-
[key: string]: boolean | null | undefined;
|
128
|
-
} | undefined;
|
129
|
-
outline?: import("../../../tasty").ResponsiveStyleValue<boolean | import("csstype").Property.FontFamily | undefined>;
|
130
|
-
alignSelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.AlignSelf | undefined>;
|
131
|
-
flexBasis?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexBasis<string | number> | undefined>;
|
132
|
-
flexGrow?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexGrow | undefined>;
|
133
|
-
flexShrink?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexShrink | undefined>;
|
134
|
-
height?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Height<string | number> | undefined>;
|
135
|
-
justifySelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.JustifySelf | undefined>;
|
126
|
+
hide?: import("../../../tasty").ResponsiveStyleValue<boolean | undefined>;
|
136
127
|
opacity?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Opacity | undefined>;
|
137
|
-
order?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Order | undefined>;
|
138
|
-
position?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Position | undefined>;
|
139
|
-
textAlign?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.TextAlign | undefined>;
|
140
|
-
width?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Width<string | number> | undefined>;
|
141
|
-
zIndex?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.ZIndex | undefined>;
|
142
|
-
border?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Border<string | number> | undefined>;
|
143
|
-
flex?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Flex<string | number> | undefined>;
|
144
128
|
gridArea?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.GridArea | undefined>;
|
129
|
+
order?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Order | undefined>;
|
145
130
|
gridColumn?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.GridColumn | undefined>;
|
146
131
|
gridRow?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.GridRow | undefined>;
|
147
|
-
|
132
|
+
placeSelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.PlaceSelf | undefined>;
|
133
|
+
alignSelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.AlignSelf | undefined>;
|
134
|
+
justifySelf?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.JustifySelf | undefined>;
|
135
|
+
zIndex?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.ZIndex | undefined>;
|
148
136
|
margin?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Margin<string | number> | undefined>;
|
149
|
-
|
137
|
+
inset?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Inset<string | number> | undefined>;
|
138
|
+
position?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Position | undefined>;
|
139
|
+
reset?: import("../../../tasty").ResponsiveStyleValue<"input" | "button" | undefined>;
|
150
140
|
padding?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Padding<string | number> | undefined>;
|
151
|
-
paddingBlock?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.PaddingBlock<string | number> | undefined>;
|
152
141
|
paddingInline?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.PaddingInline<string | number> | undefined>;
|
153
|
-
|
154
|
-
reset?: import("../../../tasty").ResponsiveStyleValue<"input" | "button" | undefined>;
|
155
|
-
styledScrollbar?: import("../../../tasty").ResponsiveStyleValue<boolean | undefined>;
|
156
|
-
hide?: import("../../../tasty").ResponsiveStyleValue<boolean | undefined>;
|
142
|
+
paddingBlock?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.PaddingBlock<string | number> | undefined>;
|
157
143
|
shadow?: import("../../../tasty").ResponsiveStyleValue<string | undefined>;
|
144
|
+
border?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Border<string | number> | undefined>;
|
158
145
|
radius?: import("../../../tasty").ResponsiveStyleValue<string | true | undefined>;
|
146
|
+
overflow?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Overflow | undefined>;
|
147
|
+
styledScrollbar?: import("../../../tasty").ResponsiveStyleValue<boolean | undefined>;
|
148
|
+
outline?: import("../../../tasty").ResponsiveStyleValue<boolean | import("csstype").Property.FontFamily | undefined>;
|
149
|
+
textAlign?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.TextAlign | undefined>;
|
150
|
+
width?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Width<string | number> | undefined>;
|
151
|
+
height?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Height<string | number> | undefined>;
|
152
|
+
flexBasis?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexBasis<string | number> | undefined>;
|
153
|
+
flexGrow?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexGrow | undefined>;
|
154
|
+
flexShrink?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.FlexShrink | undefined>;
|
155
|
+
flex?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.Flex<string | number> | undefined>;
|
156
|
+
mods?: {
|
157
|
+
[key: string]: boolean | null | undefined;
|
158
|
+
} | undefined;
|
159
159
|
block?: boolean | undefined;
|
160
|
+
inline?: boolean | undefined;
|
160
161
|
style?: import("react").CSSProperties | (import("react").CSSProperties & {
|
161
162
|
[key: string]: string | number | null;
|
162
163
|
}) | undefined;
|
163
|
-
inline?: boolean | undefined;
|
164
164
|
element?: `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `I${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `O${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
165
165
|
tooltip?: import("react").ReactNode;
|
166
166
|
styles?: Styles | undefined;
|
@@ -188,14 +188,14 @@ declare const __Radio: import("react").ForwardRefExoticComponent<CubeRadioProps
|
|
188
188
|
description?: import("react").ReactNode;
|
189
189
|
rules?: import("../../../shared").ValidationRule[] | undefined;
|
190
190
|
message?: import("react").ReactNode;
|
191
|
+
isLoading?: boolean | undefined;
|
192
|
+
key?: import("react").Key | null | undefined;
|
191
193
|
insideForm?: boolean | undefined;
|
192
194
|
isReadOnly?: boolean | undefined;
|
193
195
|
isRequired?: boolean | undefined;
|
194
196
|
validationState?: import("../../../shared").ValidationState | undefined;
|
195
|
-
isLoading?: boolean | undefined;
|
196
|
-
key?: import("react").Key | null | undefined;
|
197
|
-
extra?: import("react").ReactNode;
|
198
197
|
orientation?: "horizontal" | "vertical" | undefined;
|
198
|
+
extra?: import("react").ReactNode;
|
199
199
|
labelPosition?: import("../../../shared").LabelPosition | undefined;
|
200
200
|
necessityIndicator?: import("../../../shared").NecessityIndicator | undefined;
|
201
201
|
fieldProps?: import("../../../tasty").Props | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AriaRadioGroupProps } from 'react-aria';
|
2
|
-
import { BaseProps, BlockStyleProps, OuterStyleProps, Styles } from '../../../tasty';
|
3
2
|
import { FieldBaseProps } from '../../../shared';
|
3
|
+
import { BaseProps, BlockStyleProps, OuterStyleProps, Styles } from '../../../tasty';
|
4
4
|
export interface CubeRadioGroupProps extends BaseProps, AriaRadioGroupProps, BlockStyleProps, OuterStyleProps, FieldBaseProps {
|
5
5
|
groupStyles?: Styles;
|
6
6
|
isSolid?: boolean;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { SearchFieldProps, useSearchFieldState } from 'react-stately';
|
2
1
|
import { useSearchField } from 'react-aria';
|
3
|
-
import {
|
2
|
+
import { SearchFieldProps, useSearchFieldState } from 'react-stately';
|
4
3
|
import { WithNullableValue } from '../../../utils/react/nullableValue';
|
4
|
+
import { CubeTextInputBaseProps } from '../TextInput';
|
5
5
|
export { useSearchFieldState, useSearchField };
|
6
6
|
export type { SearchFieldProps };
|
7
7
|
export interface CubeSearchInputProps extends CubeTextInputBaseProps, SearchFieldProps {
|
@@ -1,9 +1,9 @@
|
|
1
|
+
import { AriaLabelingProps, CollectionBase } from '@react-types/shared';
|
1
2
|
import { ReactElement, ReactNode, RefObject } from 'react';
|
2
|
-
import { Item, useSelectState } from 'react-stately';
|
3
3
|
import { AriaSelectProps } from 'react-aria';
|
4
|
-
import {
|
5
|
-
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props, Styles } from '../../../tasty/index';
|
4
|
+
import { Item, useSelectState } from 'react-stately';
|
6
5
|
import { FieldBaseProps } from '../../../shared/index';
|
6
|
+
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props, Styles } from '../../../tasty/index';
|
7
7
|
export interface CubeSelectBaseProps<T> extends BasePropsWithoutChildren, AriaLabelingProps, OuterStyleProps, FieldBaseProps, BlockStyleProps, CollectionBase<T>, AriaSelectProps<T> {
|
8
8
|
icon?: ReactElement;
|
9
9
|
prefix?: ReactNode;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { CubeSliderBaseProps } from './types';
|
2
1
|
import type { RangeValue } from '../../../shared';
|
2
|
+
import type { CubeSliderBaseProps } from './types';
|
3
3
|
export interface CubeRangeSliderProps extends CubeSliderBaseProps<RangeValue<number>> {
|
4
4
|
gradation?: string[];
|
5
5
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { AriaSliderProps } from 'react-aria';
|
2
|
-
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Styles } from '../../../tasty';
|
3
2
|
import { FieldBaseProps } from '../../../shared';
|
3
|
+
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Styles } from '../../../tasty';
|
4
4
|
export interface CubeSliderBaseProps<T> extends Omit<AriaSliderProps<T>, 'label'>, BasePropsWithoutChildren, OuterStyleProps, FieldBaseProps, BlockStyleProps {
|
5
5
|
inputStyles?: Styles;
|
6
6
|
gradation?: string[];
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import { BaseProps, BlockStyleProps, OuterStyleProps, Styles } from '../../../tasty';
|
1
|
+
import { AriaSwitchProps, useSwitch } from 'react-aria';
|
3
2
|
import { FieldBaseProps } from '../../../shared';
|
3
|
+
import { BaseProps, BlockStyleProps, OuterStyleProps, Styles } from '../../../tasty';
|
4
4
|
export interface CubeSwitchProps extends BaseProps, OuterStyleProps, BlockStyleProps, FieldBaseProps, AriaSwitchProps {
|
5
5
|
inputStyles?: Styles;
|
6
6
|
isLoading?: boolean;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { CubeTextInputBaseProps } from '../TextInput';
|
2
1
|
import { WithNullableValue } from '../../../utils/react/nullableValue';
|
2
|
+
import { CubeTextInputBaseProps } from '../TextInput';
|
3
3
|
export interface CubeTextAreaProps extends CubeTextInputBaseProps {
|
4
4
|
/** Whether the textarea should change its size depends on the content */
|
5
5
|
autoSize?: boolean;
|
@@ -14,5 +14,5 @@ export interface CubeTextAreaProps extends CubeTextInputBaseProps {
|
|
14
14
|
* with a keyboard. Various decorations can be displayed around the field to
|
15
15
|
* communicate the entry requirements.
|
16
16
|
*/
|
17
|
-
declare const _TextArea: import("react").ForwardRefExoticComponent<Omit<WithNullableValue<CubeTextAreaProps>, "ref"> & import("react").RefAttributes<
|
17
|
+
declare const _TextArea: import("react").ForwardRefExoticComponent<Omit<WithNullableValue<CubeTextAreaProps>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
18
18
|
export { _TextArea as TextArea };
|
@@ -3,4 +3,4 @@ import { WithNullableValue } from '../../../utils/react/nullableValue';
|
|
3
3
|
import { CubeTextInputBaseProps } from './TextInputBase';
|
4
4
|
export type CubeTextInputProps = WithNullableValue<CubeTextInputBaseProps>;
|
5
5
|
export { useTextField };
|
6
|
-
export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<CubeTextInputProps, "ref"> & import("react").RefAttributes<
|
6
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<CubeTextInputProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ReactElement, ReactNode, RefObject } from 'react';
|
2
2
|
import { AriaNumberFieldProps, AriaTextFieldProps } from 'react-aria';
|
3
|
-
import { BaseProps, BlockStyleProps, DimensionStyleProps, PositionStyleProps, Props, Styles } from '../../../tasty';
|
4
3
|
import { FieldBaseProps } from '../../../shared';
|
4
|
+
import { BaseProps, BlockStyleProps, DimensionStyleProps, PositionStyleProps, Props, Styles } from '../../../tasty';
|
5
5
|
export declare const INPUT_WRAPPER_STYLES: Styles;
|
6
6
|
export declare const DEFAULT_INPUT_STYLES: Styles;
|
7
7
|
export interface CubeTextInputBaseProps extends BaseProps, PositionStyleProps, DimensionStyleProps, BlockStyleProps, Omit<AriaTextFieldProps, 'validate'>, FieldBaseProps {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
2
2
|
import { LabelPosition, NecessityIndicator, ValidationState } from '../../../shared/index';
|
3
3
|
import { Props, Styles } from '../../../tasty/index';
|
4
4
|
import { CubeLabelProps } from '../Label';
|
@@ -28,7 +28,7 @@ export type CubeFieldWrapperProps = {
|
|
28
28
|
message?: string | ReactNode;
|
29
29
|
/** Styles for the message */
|
30
30
|
messageStyles?: Styles;
|
31
|
-
Component?:
|
31
|
+
Component?: ReactElement;
|
32
32
|
/** Custom components that should go outside the field and should not be visible by default. For example: Dialogs */
|
33
33
|
children?: ReactNode;
|
34
34
|
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
2
|
import { FieldBaseProps } from '../../../shared/index';
|
3
3
|
import { Styles } from '../../../tasty/index';
|
4
|
-
import { CubeFormInstance } from './use-form';
|
5
4
|
import { FieldTypes } from './types';
|
5
|
+
import { CubeFormInstance } from './use-form';
|
6
6
|
export interface CubeFieldProps<T extends FieldTypes> extends FieldBaseProps {
|
7
7
|
/** The initial value of the input. */
|
8
8
|
defaultValue?: any;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { FormHTMLAttributes } from 'react';
|
2
1
|
import { DOMRef } from '@react-types/shared';
|
3
|
-
import {
|
2
|
+
import { FormHTMLAttributes } from 'react';
|
4
3
|
import { FormBaseProps } from '../../../shared/index';
|
5
|
-
import {
|
4
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty/index';
|
6
5
|
import { FieldTypes } from './types';
|
6
|
+
import { CubeFormData, CubeFormInstance } from './use-form';
|
7
7
|
export declare const FormContext: import("react").Context<{}>;
|
8
8
|
export declare function useFormProps(props: any): any;
|
9
9
|
export interface CubeFormProps<T extends FieldTypes = FieldTypes> extends FormBaseProps, BaseProps, ContainerStyleProps, Pick<FormHTMLAttributes<HTMLFormElement>, 'action' | 'autoComplete' | 'encType' | 'method' | 'target'> {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { CubeAlertProps } from '../../content/Alert/index';
|
2
2
|
import { Field } from './Field';
|
3
|
+
import { FormContext, useFormProps } from './Form';
|
3
4
|
import { ResetButton } from './ResetButton';
|
4
5
|
import { SubmitButton } from './SubmitButton';
|
5
6
|
import { SubmitError } from './SubmitError';
|
6
7
|
import { useForm } from './use-form';
|
7
|
-
import { useFormProps, FormContext } from './Form';
|
8
8
|
declare const Form: (<T extends import("./types").FieldTypes>(props: import("./Form").CubeFormProps<T>, ref: import("@react-types/shared").DOMRef<HTMLFormElement>) => import("react/jsx-runtime").JSX.Element) & {
|
9
9
|
Item: typeof Field;
|
10
10
|
SubmitError: typeof SubmitError;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { CubeFieldData, FieldTypes } from '../types';
|
3
2
|
import { ValidateTrigger, ValidationRule, ValidationState } from '../../../../shared/index';
|
4
|
-
import { CubeFormInstance } from '../use-form';
|
5
3
|
import { Props } from '../../../../tasty/index';
|
4
|
+
import { CubeFieldData, FieldTypes } from '../types';
|
5
|
+
import { CubeFormInstance } from '../use-form';
|
6
6
|
export interface CubeFieldProps<T extends FieldTypes> {
|
7
7
|
/** The initial value of the input. */
|
8
8
|
defaultValue?: any;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { CubeFieldProps } from './types';
|
2
|
-
import type { FieldTypes } from '../types';
|
3
1
|
import type { ValidateTrigger } from '../../../../shared/index';
|
2
|
+
import type { FieldTypes } from '../types';
|
3
|
+
import type { CubeFieldProps } from './types';
|
4
4
|
export type UseFieldPropsParams = {
|
5
5
|
valuePropsMapper?: ({ value, onChange }: {
|
6
6
|
value: any;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { BaseProps, ContainerStyleProps, Styles } from '../../tasty/index';
|
2
1
|
import { LabelPosition, NecessityIndicator, ValidationState } from '../../shared/index';
|
2
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../tasty/index';
|
3
3
|
export declare const INLINE_LABEL_STYLES: Styles;
|
4
4
|
export declare const LABEL_STYLES: Styles;
|
5
5
|
export interface CubeLabelProps extends BaseProps, ContainerStyleProps {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ReactElement, RefObject } from 'react';
|
2
1
|
import { FocusableRef } from '@react-types/shared';
|
2
|
+
import { ReactElement, RefObject } from 'react';
|
3
3
|
import { FieldBaseProps, FormBaseProps } from '../../shared/index';
|
4
4
|
import { BaseProps, Styles } from '../../tasty/index';
|
5
5
|
interface WrapWithFieldProps extends FieldBaseProps, BaseProps, FormBaseProps {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { CubeFlexProps } from '../../layout/Flex';
|
3
|
-
import { CubeButtonProps } from '../../actions';
|
4
2
|
import { Styles } from '../../../tasty';
|
3
|
+
import { CubeButtonProps } from '../../actions';
|
4
|
+
import { CubeFlexProps } from '../../layout/Flex';
|
5
5
|
export interface CubeTabData {
|
6
6
|
id: string | number;
|
7
7
|
qa?: string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
+
import { Styles } from '../../../tasty';
|
2
3
|
import { CubeActionProps } from '../../actions';
|
3
4
|
import { CubeFlexProps } from '../../layout/Flex';
|
4
|
-
import { Styles } from '../../../tasty';
|
5
5
|
/**
|
6
6
|
* @deprecated consider using <Tabs /> instead
|
7
7
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { AriaDialogProps } from 'react-aria';
|
2
1
|
import { ReactNode } from 'react';
|
2
|
+
import { AriaDialogProps } from 'react-aria';
|
3
3
|
import { BaseProps, BaseStyleProps, BlockStyleProps, DimensionStyleProps } from '../../../tasty';
|
4
4
|
import { CubeDialogContainerProps } from '../Dialog';
|
5
5
|
import { CubeAlertDialogProps } from './AlertDialog';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { CubeFormProps, FieldTypes } from '../../form';
|
2
1
|
import { CubeButtonProps } from '../../actions';
|
2
|
+
import { CubeFormProps, FieldTypes } from '../../form';
|
3
3
|
import { CubeDialogProps } from './Dialog';
|
4
4
|
export interface CubeDialogFormProps<T extends FieldTypes = FieldTypes> extends Omit<CubeDialogProps, 'children'>, Omit<CubeFormProps<T>, 'role' | 'children'> {
|
5
5
|
/** Whether the submit button has a `danger` theme */
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ReactElement, RefObject } from 'react';
|
2
|
+
import { OverlayTriggerProps, Placement, PositionProps } from 'react-aria';
|
2
3
|
import { OverlayTriggerState } from 'react-stately';
|
3
|
-
import { OverlayTriggerProps, PositionProps, Placement } from 'react-aria';
|
4
|
-
import { WithCloseBehavior } from '../Modal';
|
5
4
|
import { Styles } from '../../../tasty';
|
5
|
+
import { WithCloseBehavior } from '../Modal';
|
6
6
|
export type CubeDialogClose = (close: () => void) => ReactElement;
|
7
7
|
export interface CubeDialogTriggerProps extends OverlayTriggerProps, PositionProps, WithCloseBehavior {
|
8
8
|
/** The Dialog and its trigger element. See the DialogTrigger [Content section](#content) for more information on what to provide as children. */
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
2
2
|
import { OverlayProps } from 'react-aria';
|
3
|
-
import { BaseProps } from '../../../tasty';
|
4
3
|
import { PlacementAxis } from '../../../shared';
|
4
|
+
import { BaseProps } from '../../../tasty';
|
5
5
|
import { TransitionState, WithCloseBehavior } from './types';
|
6
6
|
export interface CubePopoverProps extends BaseProps, Omit<OverlayProps, 'children' | 'nodeRef'>, WithCloseBehavior, TransitionState {
|
7
7
|
container?: HTMLElement;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Key } from 'react';
|
2
|
-
import { CubeNotifyApiPropsWithID } from '../types';
|
3
2
|
import { NotificationItemNode, NotificationsListState } from '../hooks';
|
3
|
+
import { CubeNotifyApiPropsWithID } from '../types';
|
4
4
|
export type FloatingNotificationProps = {
|
5
5
|
id: Key;
|
6
6
|
isDisabledTimer: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Key } from 'react';
|
2
|
-
import { CubeNotifyApiPropsWithID } from '../types';
|
3
2
|
import { CollectionChildren } from '../hooks';
|
3
|
+
import { CubeNotifyApiPropsWithID } from '../types';
|
4
4
|
export type NotificationsBarProps = {
|
5
5
|
items: Iterable<CubeNotifyApiPropsWithID>;
|
6
6
|
children: CollectionChildren<CubeNotifyApiPropsWithID>;
|
@@ -15,7 +15,7 @@ export type NotificationsBarProps = {
|
|
15
15
|
/**
|
16
16
|
* @internal Do not use it
|
17
17
|
*/
|
18
|
-
export declare function NotificationsBar(props: NotificationsBarProps): JSX.Element;
|
18
|
+
export declare function NotificationsBar(props: NotificationsBarProps): import("react/jsx-runtime").JSX.Element;
|
19
19
|
export declare namespace NotificationsBar {
|
20
20
|
var Item: (props: CubeNotifyApiPropsWithID) => null;
|
21
21
|
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
2
2
|
import type { TransitionProps } from 'react-transition-group/Transition';
|
3
3
|
export type TransitionComponentProps = PropsWithChildren<Partial<TransitionProps>>;
|
4
|
-
export declare function TransitionComponent(props: TransitionComponentProps): JSX.Element;
|
4
|
+
export declare function TransitionComponent(props: TransitionComponentProps): import("react/jsx-runtime").JSX.Element;
|