@cube-dev/ui-kit 0.12.1 → 0.12.4
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/_internal/hooks/index.js +1 -1
- package/cjs/_internal/hooks/use-chained-callback.js +1 -1
- package/cjs/_internal/hooks/use-deprecation-warning.js +1 -1
- package/cjs/_internal/hooks/use-event.js +1 -1
- package/cjs/_internal/hooks/use-sync-ref.js +1 -1
- package/cjs/_internal/hooks/use-timer/index.js +1 -1
- package/cjs/_internal/hooks/use-timer/timer.js +1 -1
- package/cjs/_internal/hooks/use-timer/use-timer.js +1 -1
- package/cjs/_internal/index.js +1 -1
- package/cjs/components/Base.js +4 -4
- package/cjs/components/Block.js +3 -3
- package/cjs/components/GlobalStyles.js +4 -4
- package/cjs/components/GridProvider.js +4 -4
- package/cjs/components/HiddenInput.js +1 -1
- package/cjs/components/OpenTrasition.js +1 -1
- package/cjs/components/Root.js +7 -7
- package/cjs/components/actions/Action.js +7 -7
- package/cjs/components/actions/Button/Button.js +16 -16
- package/cjs/components/actions/Button/Submit.js +2 -2
- package/cjs/components/actions/Button/index.js +1 -1
- package/cjs/components/actions/ButtonGroup/ButtonGroup.js +2 -2
- package/cjs/components/actions/index.js +1 -1
- package/cjs/components/content/ActiveZone/ActiveZone.js +6 -6
- package/cjs/components/content/Alert/Alert.js +3 -3
- package/cjs/components/content/Alert/index.js +1 -1
- package/cjs/components/content/Alert/types.js +1 -1
- package/cjs/components/content/Alert/use-alert.js +1 -1
- package/cjs/components/content/Avatar/Avatar.js +3 -3
- package/cjs/components/content/Badge/Badge.js +4 -4
- package/cjs/components/content/Card/Card.js +3 -3
- package/cjs/components/content/Content.js +3 -3
- package/cjs/components/content/CopySnippet/CopySnippet.js +1 -1
- package/cjs/components/content/CopySnippet/index.js +1 -1
- package/cjs/components/content/Divider.js +3 -3
- package/cjs/components/content/Footer.js +3 -3
- package/cjs/components/content/Header.js +3 -3
- package/cjs/components/content/Paragraph.js +4 -4
- package/cjs/components/content/Placeholder/Placeholder.js +5 -5
- package/cjs/components/content/PrismCode/PrismCode.js +1 -1
- package/cjs/components/content/Result/Result.js +1 -1
- package/cjs/components/content/Skeleton/Skeleton.js +1 -1
- package/cjs/components/content/Tag/Tag.js +5 -5
- package/cjs/components/content/Text.js +5 -5
- package/cjs/components/content/Title.js +4 -4
- package/cjs/components/forms/Checkbox/Checkbox.js +10 -5
- package/cjs/components/forms/Checkbox/CheckboxGroup.js +5 -4
- package/cjs/components/forms/Checkbox/context.js +1 -1
- package/cjs/components/forms/FieldWrapper.js +6 -6
- package/cjs/components/forms/FileInput/FileInput.js +22 -13
- package/cjs/components/forms/Form/Field.js +13 -10
- package/cjs/components/forms/Form/Form.js +4 -4
- package/cjs/components/forms/Form/index.js +1 -1
- package/cjs/components/forms/Form/types.js +1 -1
- package/cjs/components/forms/Form/useForm.js +19 -8
- package/cjs/components/forms/Form/validation.js +1 -1
- package/cjs/components/forms/Input/Input.js +1 -1
- package/cjs/components/forms/Input/index.js +1 -1
- package/cjs/components/forms/Label.js +3 -5
- package/cjs/components/forms/NumberInput/NumberInput.js +6 -6
- package/cjs/components/forms/NumberInput/StepButton.js +4 -4
- package/cjs/components/forms/PasswordInput/PasswordInput.js +5 -5
- package/cjs/components/forms/RadioGroup/Radio.js +5 -5
- package/cjs/components/forms/RadioGroup/RadioGroup.js +6 -5
- package/cjs/components/forms/RadioGroup/context.js +1 -1
- package/cjs/components/forms/SearchInput/SearchInput.js +15 -8
- package/cjs/components/forms/Switch/Switch.js +4 -3
- package/cjs/components/forms/TextArea/TextArea.js +4 -4
- package/cjs/components/forms/TextInput/TextInput.js +4 -4
- package/cjs/components/forms/TextInput/TextInputBase.js +135 -64
- package/cjs/components/forms/index.js +1 -1
- package/cjs/components/layout/Flex.js +3 -3
- package/cjs/components/layout/Flow.js +3 -3
- package/cjs/components/layout/Grid.js +3 -3
- package/cjs/components/layout/Prefix.js +4 -4
- package/cjs/components/layout/Space.js +3 -3
- package/cjs/components/layout/Suffix.js +3 -3
- package/cjs/components/navigation/LegacyTabs/LegacyTabs.js +5 -5
- package/cjs/components/navigation/Link/Link.js +2 -2
- package/cjs/components/organisms/FileTabs/FileTabs.js +5 -5
- package/cjs/components/organisms/Modal/Modal.js +7 -7
- package/cjs/components/organisms/StatsCard/StatsCard.js +2 -2
- package/cjs/components/other/Base64Upload/Base64Upload.js +4 -4
- package/cjs/components/other/CloudLogo/CloudLogo.js +2 -2
- package/cjs/components/overlays/AlertDialog/AlertDialog.js +2 -2
- package/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/cjs/components/overlays/AlertDialog/index.js +1 -1
- package/cjs/components/overlays/AlertDialog/types.js +1 -1
- package/cjs/components/overlays/Dialog/Dialog.js +3 -3
- package/cjs/components/overlays/Dialog/DialogContainer.js +4 -4
- package/cjs/components/overlays/Dialog/DialogForm.js +6 -6
- package/cjs/components/overlays/Dialog/DialogTrigger.js +10 -10
- package/cjs/components/overlays/Dialog/context.js +1 -1
- package/cjs/components/overlays/Dialog/index.js +1 -1
- package/cjs/components/overlays/Modal/Modal.js +4 -4
- package/cjs/components/overlays/Modal/OpenTransition.js +1 -1
- package/cjs/components/overlays/Modal/Overlay.js +4 -4
- package/cjs/components/overlays/Modal/Popover.js +8 -8
- package/cjs/components/overlays/Modal/Tray.js +6 -6
- package/cjs/components/overlays/Modal/Underlay.js +3 -3
- package/cjs/components/overlays/Modal/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/Bar/FloatingNotification.js +2 -2
- package/cjs/components/overlays/NewNotifications/Bar/NotificationsBar.js +4 -4
- package/cjs/components/overlays/NewNotifications/Bar/TransitionComponent.js +1 -1
- package/cjs/components/overlays/NewNotifications/Bar/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +1 -1
- package/cjs/components/overlays/NewNotifications/Dialog/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/Notification.js +2 -2
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationAction.js +2 -2
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +2 -2
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationView.js +3 -3
- package/cjs/components/overlays/NewNotifications/NotificationView/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/types.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsList.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/types.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notification-list-item.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-api.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-list.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-observer.js +1 -1
- package/cjs/components/overlays/NewNotifications/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/types.js +1 -1
- package/cjs/components/overlays/Notification/Notification.js +2 -2
- package/cjs/components/overlays/OverlayWrapper.js +2 -2
- package/cjs/components/overlays/Toasts/Toast.js +2 -2
- package/cjs/components/overlays/Toasts/index.js +1 -1
- package/cjs/components/overlays/Toasts/types.js +1 -1
- package/cjs/components/overlays/Toasts/use-toasts-api.js +1 -1
- package/cjs/components/overlays/Tooltip/Tooltip.js +7 -7
- package/cjs/components/overlays/Tooltip/TooltipProvider.js +2 -2
- package/cjs/components/overlays/Tooltip/TooltipTrigger.js +2 -2
- package/cjs/components/overlays/Tooltip/context.js +1 -1
- package/cjs/components/pickers/ComboBox/ComboBox.js +39 -31
- package/cjs/components/pickers/Menu/Menu.js +4 -3
- package/cjs/components/pickers/Menu/MenuButton.js +3 -3
- package/cjs/components/pickers/Menu/MenuItem.js +1 -1
- package/cjs/components/pickers/Menu/MenuSection.js +2 -2
- package/cjs/components/pickers/Menu/MenuTrigger.js +2 -2
- package/cjs/components/pickers/Menu/context.js +1 -1
- package/cjs/components/pickers/Menu/styled.js +1 -1
- package/cjs/components/pickers/Select/Select.js +101 -69
- package/cjs/components/portal/Portal.js +1 -1
- package/cjs/components/portal/PortalProvider.js +1 -1
- package/cjs/components/portal/index.js +1 -1
- package/cjs/components/portal/storybook/templates/CustomRoot.js +1 -1
- package/cjs/components/portal/storybook/templates/PortalOrder.js +1 -1
- package/cjs/components/portal/storybook/templates/basic.js +2 -2
- package/cjs/components/portal/storybook/templates/index.js +1 -1
- package/cjs/components/portal/types.js +1 -1
- package/cjs/components/portal/usePortal.js +1 -1
- package/cjs/components/status/LoadingAnimation/LoadingAnimation.js +4 -4
- 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 -2
- package/cjs/components/status/Spin/SpinsContainer.js +1 -1
- package/cjs/components/status/Spin/index.js +1 -1
- package/cjs/components/status/Spin/types.js +1 -1
- package/cjs/components/status/index.js +1 -1
- package/cjs/data/themes.js +1 -1
- package/cjs/icons/Attention.js +1 -1
- package/cjs/icons/Cross.js +1 -1
- package/cjs/icons/Danger.js +1 -1
- package/cjs/icons/Success.js +1 -1
- package/cjs/icons/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/provider.js +1 -1
- package/cjs/providers/StyleProvider.js +1 -1
- package/cjs/services/notification.js +2 -2
- package/cjs/shared/form.js +1 -1
- package/cjs/shared/index.js +1 -1
- package/cjs/stories/FormFieldArgs.js +15 -2
- package/cjs/stories/components/ConfirmDeletionDialogForm.js +3 -3
- package/cjs/stories/components/DialogFormApp.js +1 -1
- package/cjs/stories/components/StyledButton.js +1 -1
- package/cjs/stories/lists/baseProps.js +1 -1
- package/cjs/styled/index.js +1 -1
- package/cjs/styled/styled.js +1 -1
- package/cjs/tasty/index.js +1 -1
- package/cjs/tasty/providers/BreakpointsProvider.js +1 -1
- package/cjs/tasty/styles/align.js +1 -1
- package/cjs/tasty/styles/border.js +1 -1
- package/cjs/tasty/styles/boxShadow.combinator.js +1 -1
- package/cjs/tasty/styles/color.js +1 -1
- package/cjs/tasty/styles/createStyle.js +1 -1
- package/cjs/tasty/styles/dimension.js +1 -1
- package/cjs/tasty/styles/display.js +1 -1
- package/cjs/tasty/styles/fill.js +1 -1
- package/cjs/tasty/styles/flow.js +1 -1
- package/cjs/tasty/styles/font.js +1 -1
- package/cjs/tasty/styles/fontStyle.js +1 -1
- package/cjs/tasty/styles/gap.js +1 -1
- package/cjs/tasty/styles/groupRadius.js +1 -1
- package/cjs/tasty/styles/height.js +1 -1
- package/cjs/tasty/styles/index.js +1 -1
- package/cjs/tasty/styles/justify.js +1 -1
- package/cjs/tasty/styles/list.js +1 -1
- package/cjs/tasty/styles/margin.js +1 -1
- package/cjs/tasty/styles/marginBlock.js +1 -1
- package/cjs/tasty/styles/marginInline.js +1 -1
- package/cjs/tasty/styles/outline.js +1 -1
- package/cjs/tasty/styles/padding.js +1 -1
- package/cjs/tasty/styles/paddingBlock.js +1 -1
- package/cjs/tasty/styles/paddingInline.js +1 -1
- package/cjs/tasty/styles/predefined.js +1 -1
- package/cjs/tasty/styles/preset.js +1 -1
- package/cjs/tasty/styles/radius.js +1 -1
- package/cjs/tasty/styles/reset.js +1 -1
- package/cjs/tasty/styles/shadow.js +1 -1
- package/cjs/tasty/styles/styledScrollbar.js +1 -1
- package/cjs/tasty/styles/transition.js +1 -1
- package/cjs/tasty/styles/types.js +1 -1
- package/cjs/tasty/styles/width.js +1 -1
- package/cjs/tasty/tasty.js +1 -1
- package/cjs/tasty/types.js +1 -1
- package/cjs/tasty/utils/colors.js +1 -1
- package/cjs/tasty/utils/dotize.js +1 -1
- package/cjs/tasty/utils/filterBaseProps.js +1 -1
- package/cjs/tasty/utils/get-display-name.js +1 -1
- package/cjs/tasty/utils/index.js +1 -1
- package/cjs/tasty/utils/mergeStyles.js +1 -1
- package/cjs/tasty/utils/modAttrs.js +1 -1
- package/cjs/tasty/utils/renderStyles.js +2 -2
- package/cjs/tasty/utils/responsive.js +1 -1
- package/cjs/tasty/utils/string.js +1 -1
- package/cjs/tasty/utils/styles.js +1 -1
- package/cjs/tasty/utils/warnings.js +1 -1
- package/cjs/test/index.js +1 -1
- package/cjs/test/render.js +1 -1
- package/cjs/test/setup.js +1 -1
- package/cjs/test/utils/index.js +1 -1
- package/cjs/test/utils/wait.js +1 -1
- package/cjs/tokens.js +1 -1
- package/cjs/type-checks.js +1 -1
- package/cjs/utils/ResizeSensor.js +1 -1
- package/cjs/utils/modules.js +1 -1
- package/cjs/utils/promise.js +1 -1
- package/cjs/utils/react/Slots.js +13 -8
- package/cjs/utils/react/chain.js +1 -1
- package/cjs/utils/react/index.js +1 -1
- package/cjs/utils/react/interactions.js +1 -1
- package/cjs/utils/react/isTextOnly.js +1 -1
- package/cjs/utils/react/mapProps.js +1 -1
- package/cjs/utils/react/mergeProps.js +1 -1
- package/cjs/utils/react/nullableValue.js +1 -1
- package/cjs/utils/react/useCombinedRefs.js +1 -1
- package/cjs/utils/react/useId.js +4 -3
- package/cjs/utils/react/useLayoutEffect.js +2 -2
- package/cjs/utils/react/wrapNodeIfPlain.js +1 -1
- package/cjs/utils/transitions.js +1 -1
- package/cjs/utils/tree.js +1 -1
- package/cjs/utils/warnings.js +1 -1
- package/es/_internal/hooks/index.js +1 -1
- package/es/_internal/hooks/use-chained-callback.js +1 -1
- package/es/_internal/hooks/use-deprecation-warning.js +1 -1
- package/es/_internal/hooks/use-event.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/index.js +1 -1
- package/es/components/Base.js +4 -4
- package/es/components/Block.js +3 -3
- package/es/components/GlobalStyles.js +4 -4
- package/es/components/GridProvider.js +4 -4
- package/es/components/HiddenInput.js +1 -1
- package/es/components/OpenTrasition.js +1 -1
- package/es/components/Root.js +7 -7
- package/es/components/actions/Action.js +7 -7
- package/es/components/actions/Button/Button.js +14 -14
- 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 +2 -2
- package/es/components/actions/index.js +1 -1
- package/es/components/content/ActiveZone/ActiveZone.js +6 -6
- package/es/components/content/Alert/Alert.js +3 -3
- 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 +3 -3
- package/es/components/content/Badge/Badge.js +4 -4
- package/es/components/content/Card/Card.js +3 -3
- package/es/components/content/Content.js +3 -3
- package/es/components/content/CopySnippet/CopySnippet.js +1 -1
- package/es/components/content/CopySnippet/index.js +1 -1
- package/es/components/content/Divider.js +3 -3
- package/es/components/content/Footer.js +3 -3
- package/es/components/content/Header.js +3 -3
- package/es/components/content/Paragraph.js +4 -4
- package/es/components/content/Placeholder/Placeholder.js +5 -5
- 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 +5 -5
- package/es/components/content/Text.js +5 -5
- package/es/components/content/Title.js +4 -4
- package/es/components/forms/Checkbox/Checkbox.js +10 -5
- package/es/components/forms/Checkbox/CheckboxGroup.js +5 -4
- package/es/components/forms/Checkbox/context.js +1 -1
- package/es/components/forms/FieldWrapper.js +6 -6
- package/es/components/forms/FileInput/FileInput.js +22 -13
- package/es/components/forms/Form/Field.js +13 -10
- package/es/components/forms/Form/Form.js +4 -4
- package/es/components/forms/Form/index.js +1 -1
- package/es/components/forms/Form/types.js +1 -1
- package/es/components/forms/Form/useForm.js +19 -8
- package/es/components/forms/Form/validation.js +1 -1
- package/es/components/forms/Input/Input.js +1 -1
- package/es/components/forms/Input/index.js +1 -1
- package/es/components/forms/Label.js +3 -5
- package/es/components/forms/NumberInput/NumberInput.js +6 -6
- package/es/components/forms/NumberInput/StepButton.js +4 -4
- package/es/components/forms/PasswordInput/PasswordInput.js +5 -5
- package/es/components/forms/RadioGroup/Radio.js +5 -5
- package/es/components/forms/RadioGroup/RadioGroup.js +6 -5
- package/es/components/forms/RadioGroup/context.js +1 -1
- package/es/components/forms/SearchInput/SearchInput.js +15 -8
- package/es/components/forms/Switch/Switch.js +4 -3
- package/es/components/forms/TextArea/TextArea.js +4 -4
- package/es/components/forms/TextInput/TextInput.js +4 -4
- package/es/components/forms/TextInput/TextInputBase.js +136 -65
- package/es/components/forms/index.js +1 -1
- package/es/components/layout/Flex.js +3 -3
- package/es/components/layout/Flow.js +3 -3
- package/es/components/layout/Grid.js +3 -3
- package/es/components/layout/Prefix.js +6 -6
- package/es/components/layout/Space.js +3 -3
- package/es/components/layout/Suffix.js +3 -3
- package/es/components/navigation/LegacyTabs/LegacyTabs.js +5 -5
- package/es/components/navigation/Link/Link.js +2 -2
- package/es/components/organisms/FileTabs/FileTabs.js +5 -5
- package/es/components/organisms/Modal/Modal.js +7 -7
- package/es/components/organisms/StatsCard/StatsCard.js +2 -2
- package/es/components/other/Base64Upload/Base64Upload.js +4 -4
- package/es/components/other/CloudLogo/CloudLogo.js +2 -2
- 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 +3 -3
- package/es/components/overlays/Dialog/DialogContainer.js +4 -4
- package/es/components/overlays/Dialog/DialogForm.js +6 -6
- package/es/components/overlays/Dialog/DialogTrigger.js +10 -10
- 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 +4 -4
- package/es/components/overlays/Modal/OpenTransition.js +1 -1
- package/es/components/overlays/Modal/Overlay.js +4 -4
- package/es/components/overlays/Modal/Popover.js +5 -5
- package/es/components/overlays/Modal/Tray.js +6 -6
- package/es/components/overlays/Modal/Underlay.js +3 -3
- package/es/components/overlays/Modal/index.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/FloatingNotification.js +2 -2
- package/es/components/overlays/NewNotifications/Bar/NotificationsBar.js +4 -4
- package/es/components/overlays/NewNotifications/Bar/TransitionComponent.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/index.js +1 -1
- package/es/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +1 -1
- package/es/components/overlays/NewNotifications/Dialog/index.js +1 -1
- package/es/components/overlays/NewNotifications/Notification.js +2 -2
- package/es/components/overlays/NewNotifications/NotificationView/NotificationAction.js +2 -2
- package/es/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +2 -2
- 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 +3 -3
- package/es/components/overlays/NewNotifications/NotificationView/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/types.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList.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 +2 -2
- package/es/components/overlays/OverlayWrapper.js +2 -2
- package/es/components/overlays/Toasts/Toast.js +2 -2
- 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 +7 -7
- package/es/components/overlays/Tooltip/TooltipProvider.js +2 -2
- package/es/components/overlays/Tooltip/TooltipTrigger.js +2 -2
- package/es/components/overlays/Tooltip/context.js +1 -1
- package/es/components/pickers/ComboBox/ComboBox.js +42 -34
- package/es/components/pickers/Menu/Menu.js +4 -3
- package/es/components/pickers/Menu/MenuButton.js +3 -3
- package/es/components/pickers/Menu/MenuItem.js +1 -1
- package/es/components/pickers/Menu/MenuSection.js +2 -2
- 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/pickers/Select/Select.js +93 -61
- 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/status/LoadingAnimation/LoadingAnimation.js +4 -4
- 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 +2 -2
- package/es/components/status/Spin/SpinsContainer.js +1 -1
- package/es/components/status/Spin/index.js +1 -1
- package/es/components/status/Spin/types.js +1 -1
- package/es/components/status/index.js +1 -1
- package/es/data/themes.js +1 -1
- package/es/icons/Attention.js +1 -1
- package/es/icons/Cross.js +1 -1
- package/es/icons/Danger.js +1 -1
- package/es/icons/Success.js +1 -1
- package/es/icons/index.js +1 -1
- package/es/index.js +1 -1
- package/es/provider.js +1 -1
- package/es/providers/StyleProvider.js +1 -1
- package/es/services/notification.js +2 -2
- package/es/shared/form.js +1 -1
- package/es/shared/index.js +1 -1
- package/es/stories/FormFieldArgs.js +14 -1
- package/es/stories/components/ConfirmDeletionDialogForm.js +3 -3
- 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/styled/index.js +1 -1
- package/es/styled/styled.js +1 -1
- package/es/tasty/index.js +1 -1
- package/es/tasty/providers/BreakpointsProvider.js +1 -1
- package/es/tasty/styles/align.js +1 -1
- package/es/tasty/styles/border.js +1 -1
- package/es/tasty/styles/boxShadow.combinator.js +1 -1
- package/es/tasty/styles/color.js +1 -1
- package/es/tasty/styles/createStyle.js +1 -1
- package/es/tasty/styles/dimension.js +1 -1
- package/es/tasty/styles/display.js +1 -1
- package/es/tasty/styles/fill.js +1 -1
- package/es/tasty/styles/flow.js +1 -1
- package/es/tasty/styles/font.js +1 -1
- package/es/tasty/styles/fontStyle.js +1 -1
- package/es/tasty/styles/gap.js +1 -1
- package/es/tasty/styles/groupRadius.js +1 -1
- package/es/tasty/styles/height.js +1 -1
- package/es/tasty/styles/index.js +1 -1
- package/es/tasty/styles/justify.js +1 -1
- package/es/tasty/styles/list.js +1 -1
- package/es/tasty/styles/margin.js +1 -1
- package/es/tasty/styles/marginBlock.js +1 -1
- package/es/tasty/styles/marginInline.js +1 -1
- package/es/tasty/styles/outline.js +1 -1
- package/es/tasty/styles/padding.js +1 -1
- package/es/tasty/styles/paddingBlock.js +1 -1
- package/es/tasty/styles/paddingInline.js +1 -1
- package/es/tasty/styles/predefined.js +1 -1
- package/es/tasty/styles/preset.js +1 -1
- package/es/tasty/styles/radius.js +1 -1
- package/es/tasty/styles/reset.js +1 -1
- package/es/tasty/styles/shadow.js +1 -1
- package/es/tasty/styles/styledScrollbar.js +1 -1
- package/es/tasty/styles/transition.js +1 -1
- package/es/tasty/styles/types.js +1 -1
- package/es/tasty/styles/width.js +1 -1
- package/es/tasty/tasty.js +1 -1
- package/es/tasty/types.js +1 -1
- package/es/tasty/utils/colors.js +1 -1
- package/es/tasty/utils/dotize.js +1 -1
- package/es/tasty/utils/filterBaseProps.js +1 -1
- package/es/tasty/utils/get-display-name.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 +2 -2
- 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/test/index.js +1 -1
- package/es/test/render.js +1 -1
- package/es/test/setup.js +1 -1
- package/es/test/utils/index.js +1 -1
- package/es/test/utils/wait.js +1 -1
- package/es/tokens.js +1 -1
- package/es/type-checks.js +1 -1
- package/es/utils/ResizeSensor.js +1 -1
- package/es/utils/modules.js +1 -1
- package/es/utils/promise.js +1 -1
- package/es/utils/react/Slots.js +13 -8
- 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 +4 -3
- package/es/utils/react/useLayoutEffect.js +2 -2
- 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 +6 -1
- package/types/components/Root.d.ts +1 -1
- package/types/components/actions/Action.d.ts +1 -1
- package/types/components/actions/Button/Button.d.ts +3 -1
- package/types/components/content/ActiveZone/ActiveZone.d.ts +1 -1
- package/types/components/content/Paragraph.d.ts +1 -1
- package/types/components/content/Title.d.ts +1 -1
- package/types/components/forms/Checkbox/Checkbox.d.ts +2 -2
- package/types/components/forms/Checkbox/CheckboxGroup.d.ts +1 -1
- package/types/components/forms/FileInput/FileInput.d.ts +1 -1
- package/types/components/forms/Form/Field.d.ts +2 -2
- package/types/components/forms/Form/Form.d.ts +2 -2
- package/types/components/forms/Form/types.d.ts +1 -0
- package/types/components/forms/Form/useForm.d.ts +6 -6
- package/types/components/forms/RadioGroup/Radio.d.ts +1 -1
- package/types/components/forms/RadioGroup/RadioGroup.d.ts +1 -1
- package/types/components/forms/Switch/Switch.d.ts +1 -1
- package/types/components/forms/TextInput/TextInput.d.ts +1 -1
- package/types/components/forms/TextInput/TextInputBase.d.ts +4 -1
- package/types/components/organisms/StatsCard/StatsCard.d.ts +1 -1
- package/types/components/overlays/AlertDialog/types.d.ts +1 -1
- package/types/components/overlays/Dialog/DialogForm.d.ts +2 -2
- package/types/components/overlays/Modal/Popover.d.ts +1 -1
- package/types/components/overlays/NewNotifications/NotificationView/types.d.ts +2 -2
- package/types/components/overlays/NewNotifications/NotificationsList.d.ts +1 -1
- package/types/components/overlays/NewNotifications/hooks/use-notification-list-item.d.ts +1 -1
- package/types/components/overlays/NewNotifications/hooks/use-notifications-list.d.ts +1 -1
- package/types/components/overlays/Tooltip/Tooltip.d.ts +2 -2
- package/types/components/overlays/Tooltip/TooltipProvider.d.ts +2 -2
- package/types/components/pickers/ComboBox/ComboBox.d.ts +5 -2
- package/types/components/pickers/Menu/Menu.d.ts +3 -2
- package/types/components/pickers/Select/Select.d.ts +7 -3
- package/types/shared/form.d.ts +2 -1
- package/types/stories/FormFieldArgs.d.ts +16 -0
- package/types/utils/react/mapProps.d.ts +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
2
|
-
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '../../tasty';
|
3
2
|
import { AriaButtonProps } from '@react-types/button';
|
3
|
+
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '../../tasty';
|
4
4
|
export interface CubeActionProps extends BaseProps, TagNameProps, BaseStyleProps, ContainerStyleProps, TextStyleProps, Omit<AriaButtonProps, 'type'> {
|
5
5
|
to?: string;
|
6
6
|
label?: string;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
2
|
import { CubeActionProps } from '../Action';
|
3
|
+
import { Styles } from '../../../tasty';
|
3
4
|
export interface CubeButtonProps extends CubeActionProps {
|
4
5
|
icon?: ReactElement;
|
5
6
|
rightIcon?: ReactElement;
|
@@ -8,7 +9,7 @@ export interface CubeButtonProps extends CubeActionProps {
|
|
8
9
|
type?: 'primary' | 'secondary' | 'danger' | 'link' | 'clear' | 'outline' | 'neutral' | (string & {});
|
9
10
|
size?: 'small' | 'medium' | 'large' | (string & {});
|
10
11
|
}
|
11
|
-
export declare function
|
12
|
+
export declare function provideButtonStyles({ type, theme }: {
|
12
13
|
type: any;
|
13
14
|
theme: any;
|
14
15
|
}): {
|
@@ -814,4 +815,5 @@ export declare function provideStyles({ type, theme }: {
|
|
814
815
|
textAnchor?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.TextAnchor | undefined>;
|
815
816
|
vectorEffect?: import("../../../tasty").ResponsiveStyleValue<import("csstype").Property.VectorEffect | undefined>;
|
816
817
|
};
|
818
|
+
export declare const DEFAULT_BUTTON_STYLES: Styles;
|
817
819
|
export declare const Button: import("react").ForwardRefExoticComponent<CubeButtonProps & import("react").RefAttributes<import("@react-types/shared").FocusableRefValue<HTMLElement, HTMLElement>>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
2
|
-
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '../../../tasty';
|
3
2
|
import { FocusableOptions } from '@react-aria/focus';
|
3
|
+
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '../../../tasty';
|
4
4
|
export interface CubeActiveZoneProps extends BaseProps, TagNameProps, BaseStyleProps, ContainerStyleProps, TextStyleProps, FocusableOptions {
|
5
5
|
label?: string;
|
6
6
|
onClick?: MouseEventHandler;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { CubeTextProps } from './Text';
|
3
2
|
import { ContainerStyleProps } from '../../tasty';
|
3
|
+
import { CubeTextProps } from './Text';
|
4
4
|
export interface CubeParagraphProps extends CubeTextProps, ContainerStyleProps {
|
5
5
|
}
|
6
6
|
export declare const Paragraph: import("react").ForwardRefExoticComponent<CubeParagraphProps & import("react").RefAttributes<unknown>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { CubeTextProps } from './Text';
|
3
2
|
import { BaseProps, ContainerStyleProps, PositionStyleProps, TagNameProps } from '../../tasty';
|
3
|
+
import { CubeTextProps } from './Text';
|
4
4
|
export interface CubeTitleProps extends BaseProps, CubeTextProps, TagNameProps, ContainerStyleProps, PositionStyleProps {
|
5
5
|
/** The level of the heading **/
|
6
6
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import type { AriaCheckboxProps } from '@react-types/checkbox';
|
3
2
|
import { BaseProps } from '../../../tasty';
|
4
|
-
import { CheckboxGroup } from './CheckboxGroup';
|
5
3
|
import { FormFieldProps } from '../../../shared';
|
4
|
+
import { CheckboxGroup } from './CheckboxGroup';
|
5
|
+
import type { AriaCheckboxProps } from '@react-types/checkbox';
|
6
6
|
export interface CubeCheckboxProps extends BaseProps, AriaCheckboxProps, FormFieldProps {
|
7
7
|
}
|
8
8
|
declare let __Checkbox: import("react").ForwardRefExoticComponent<Omit<CubeCheckboxProps, "isSelected" | "defaultSelected"> & {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { BaseProps } from '../../../tasty';
|
3
|
-
import type { AriaCheckboxGroupProps } from '@react-types/checkbox';
|
4
3
|
import { FormFieldProps } from '../../../shared';
|
4
|
+
import type { AriaCheckboxGroupProps } from '@react-types/checkbox';
|
5
5
|
export interface CubeCheckboxGroupProps extends BaseProps, AriaCheckboxGroupProps, FormFieldProps {
|
6
6
|
orientation?: 'vertical' | 'horizontal';
|
7
7
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { RefObject } from 'react';
|
2
2
|
import { BaseProps, BlockStyleProps, PositionStyleProps, Styles } from '../../../tasty';
|
3
|
-
import type { AriaTextFieldProps } from '@react-types/textfield';
|
4
3
|
import { FormFieldProps } from '../../../shared';
|
4
|
+
import type { AriaTextFieldProps } from '@react-types/textfield';
|
5
5
|
export interface CubeFileInputProps extends BaseProps, PositionStyleProps, BlockStyleProps, AriaTextFieldProps, FormFieldProps {
|
6
6
|
/**
|
7
7
|
* The size of the input
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
2
|
import { LabelPosition, OptionalFieldBaseProps, ValidationRule } from '../../../shared';
|
3
|
-
import { CubeFormInstance } from './useForm';
|
4
3
|
import { Styles } from '../../../tasty';
|
4
|
+
import { CubeFormInstance } from './useForm';
|
5
5
|
import { FieldTypes } from './types';
|
6
6
|
export interface CubeFieldProps<T extends FieldTypes> extends OptionalFieldBaseProps {
|
7
7
|
/** The initial value of the input. */
|
@@ -13,7 +13,7 @@ export interface CubeFieldProps<T extends FieldTypes> extends OptionalFieldBaseP
|
|
13
13
|
/** The id prefix for the field to avoid collisions between forms */
|
14
14
|
idPrefix?: string;
|
15
15
|
children?: ReactElement | ((CubeFormInstance: any) => ReactElement);
|
16
|
-
/** Function that
|
16
|
+
/** Function that checks whether to perform update of the form state. */
|
17
17
|
shouldUpdate?: boolean | ((prevValues: any, nextValues: any) => boolean);
|
18
18
|
/** Validation rules */
|
19
19
|
rules?: ValidationRule[];
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { FormHTMLAttributes } from 'react';
|
2
|
+
import { DOMRef } from '@react-types/shared';
|
2
3
|
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
3
|
-
import { CubeFormData, CubeFormInstance } from './useForm';
|
4
4
|
import { FormBaseProps } from '../../../shared';
|
5
|
+
import { CubeFormData, CubeFormInstance } from './useForm';
|
5
6
|
import { FieldTypes } from './types';
|
6
|
-
import { DOMRef } from '@react-types/shared';
|
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,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { CubeFieldData, FieldTypes, SetFieldsArrType } from './types';
|
2
2
|
export declare type CubeFormData<T extends FieldTypes> = {
|
3
3
|
[K in keyof T]?: CubeFieldData<K, T[K]>;
|
4
4
|
};
|
@@ -8,18 +8,18 @@ export declare class CubeFormInstance<T extends FieldTypes, TFormData extends Cu
|
|
8
8
|
private fields;
|
9
9
|
ref: {};
|
10
10
|
isSubmitting: boolean;
|
11
|
-
onValuesChange: (data:
|
12
|
-
onSubmit: (data:
|
11
|
+
onValuesChange: (data: T) => void | Promise<void>;
|
12
|
+
onSubmit: (data: T) => void | Promise<void>;
|
13
13
|
constructor(forceReRender?: () => void);
|
14
14
|
submit(): Promise<void>;
|
15
|
-
setFieldsValue: (newData: Partial<T>, touched?: boolean | undefined, skipRender?: boolean | undefined, createFields?: boolean) => void;
|
15
|
+
setFieldsValue: (newData: Partial<T>, touched?: boolean | undefined, skipRender?: boolean | undefined, createFields?: boolean, inputOnly?: boolean) => void;
|
16
16
|
getFieldValue<Name extends keyof T>(name: Name): T[Name] | undefined;
|
17
17
|
getFieldsValue(): Partial<T>;
|
18
18
|
/**
|
19
19
|
* Similar to getFieldsValue() but respects '.' notation and creates nested objects.
|
20
20
|
*/
|
21
|
-
getFormData():
|
22
|
-
setFieldValue<Name extends keyof T>(name: Name, value: T[Name], touched?: boolean, skipRender?: boolean): void;
|
21
|
+
getFormData(): T;
|
22
|
+
setFieldValue<Name extends keyof T>(name: Name, value: T[Name], touched?: boolean, skipRender?: boolean, inputOnly?: boolean): void;
|
23
23
|
getFieldInstance<Name extends keyof T>(name: Name): TFormData[Name];
|
24
24
|
setInitialFieldsValue(values: Partial<T>): void;
|
25
25
|
resetFields(names?: (keyof T)[], skipRender?: boolean): void;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { BaseProps, Styles } from '../../../tasty';
|
3
|
+
import { FormFieldProps } from '../../../shared';
|
3
4
|
import { RadioGroup } from './RadioGroup';
|
4
5
|
import type { AriaRadioProps } from '@react-types/radio';
|
5
|
-
import { FormFieldProps } from '../../../shared';
|
6
6
|
export interface CubeRadioProps extends BaseProps, AriaRadioProps, FormFieldProps {
|
7
7
|
inputStyles?: Styles;
|
8
8
|
type?: 'button' | 'radio';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { BaseProps, Styles } from '../../../tasty';
|
3
|
-
import type { AriaRadioGroupProps } from '@react-types/radio';
|
4
3
|
import { FormFieldProps } from '../../../shared';
|
4
|
+
import type { AriaRadioGroupProps } from '@react-types/radio';
|
5
5
|
export interface CubeRadioGroupProps extends BaseProps, AriaRadioGroupProps, FormFieldProps {
|
6
6
|
groupStyles?: Styles;
|
7
7
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { BaseProps, BlockStyleProps, OuterStyleProps, Styles } from '../../../tasty';
|
3
|
-
import type { AriaSwitchProps } from '@react-types/switch';
|
4
3
|
import { FormFieldProps } from '../../../shared';
|
4
|
+
import type { AriaSwitchProps } from '@react-types/switch';
|
5
5
|
export interface CubeSwitchProps extends BaseProps, OuterStyleProps, BlockStyleProps, FormFieldProps, AriaSwitchProps {
|
6
6
|
inputStyles?: Styles;
|
7
7
|
isLoading?: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { CubeTextInputBaseProps } from './TextInputBase';
|
3
2
|
import { WithNullableValue } from '../../../utils/react/nullableValue';
|
3
|
+
import { CubeTextInputBaseProps } from './TextInputBase';
|
4
4
|
export declare type CubeTextInputProps = WithNullableValue<CubeTextInputBaseProps>;
|
5
5
|
export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<CubeTextInputBaseProps, "value" | "defaultValue"> & {
|
6
6
|
value?: any;
|
@@ -1,9 +1,12 @@
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
1
|
+
import { ReactElement, ReactNode, RefObject } from 'react';
|
2
2
|
import { BaseProps, BlockStyleProps, DimensionStyleProps, PositionStyleProps, Props, Styles } from '../../../tasty';
|
3
3
|
import { FormFieldProps } from '../../../shared';
|
4
4
|
import type { AriaTextFieldProps } from '@react-types/textfield';
|
5
|
+
export declare const INPUT_WRAPPER_STYLES: Styles;
|
5
6
|
export declare const DEFAULT_INPUT_STYLES: Styles;
|
6
7
|
export interface CubeTextInputBaseProps extends BaseProps, PositionStyleProps, DimensionStyleProps, BlockStyleProps, AriaTextFieldProps, FormFieldProps {
|
8
|
+
/** Left input icon */
|
9
|
+
icon?: ReactElement;
|
7
10
|
/** Input decoration before the main input */
|
8
11
|
prefix?: ReactNode;
|
9
12
|
/** Input decoration after the main input */
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { CubeCardProps } from '../../content/Card/Card';
|
2
1
|
import { ReactNode } from 'react';
|
2
|
+
import { CubeCardProps } from '../../content/Card/Card';
|
3
3
|
export interface CubeStatsCard extends CubeCardProps {
|
4
4
|
title?: string | ReactNode;
|
5
5
|
value?: string | number | ReactNode;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { BaseProps, BaseStyleProps, BlockStyleProps, DimensionStyleProps } from '../../../tasty';
|
2
1
|
import { AriaDialogProps } from '@react-types/dialog';
|
3
2
|
import { ReactNode } from 'react';
|
3
|
+
import { BaseProps, BaseStyleProps, BlockStyleProps, DimensionStyleProps } from '../../../tasty';
|
4
4
|
import { CubeDialogContainerProps } from '../Dialog';
|
5
5
|
import { CubeAlertDialogProps } from './AlertDialog';
|
6
6
|
export interface Dialog {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { CubeDialogProps } from './Dialog';
|
3
2
|
import { CubeFormProps } from '../../forms/Form/Form';
|
4
3
|
import { CubeButtonProps } from '../../actions';
|
5
4
|
import { FieldTypes } from '../../forms';
|
5
|
+
import { CubeDialogProps } from './Dialog';
|
6
6
|
export interface CubeDialogFormProps<T extends FieldTypes = FieldTypes> extends CubeDialogProps, Omit<CubeFormProps<T>, 'role'> {
|
7
7
|
/** Whether the submit button has a `danger` theme */
|
8
8
|
danger?: boolean;
|
@@ -24,4 +24,4 @@ export interface CubeDialogFormRef {
|
|
24
24
|
/**
|
25
25
|
* DialogForms are a specific type of Dialog. They contain forms to fill.
|
26
26
|
*/
|
27
|
-
export declare
|
27
|
+
export declare function DialogForm<T extends FieldTypes = FieldTypes>(props: CubeDialogFormProps<T>): JSX.Element;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
2
|
-
import { BaseProps } from '../../../tasty';
|
3
2
|
import { OverlayProps } from '@react-types/overlays';
|
3
|
+
import { BaseProps } from '../../../tasty';
|
4
4
|
import { PlacementAxis } from '../../../shared';
|
5
5
|
export interface CubePopoverProps extends BaseProps, Omit<OverlayProps, 'children'> {
|
6
6
|
container?: HTMLElement;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import type { ReactNode, HTMLAttributes } from 'react';
|
2
|
-
import type { CubeNotificationType } from '../types';
|
3
1
|
import { Styles } from '../../../../tasty';
|
4
2
|
import { Timer } from '../../../../_internal';
|
5
3
|
import { BaseNotificationProps } from '../types';
|
4
|
+
import type { CubeNotificationType } from '../types';
|
5
|
+
import type { ReactNode, HTMLAttributes } from 'react';
|
6
6
|
export declare type NotificationProps = {
|
7
7
|
qa?: string;
|
8
8
|
attributes?: HTMLAttributes<HTMLDivElement>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CollectionElement } from '@react-types/shared';
|
3
|
-
import type { CubeNotificationProps } from './types';
|
4
3
|
import { CollectionChildren } from './hooks';
|
4
|
+
import type { CubeNotificationProps } from './types';
|
5
5
|
export declare type NotificationsListProps<T> = {
|
6
6
|
items?: T[] | readonly T[];
|
7
7
|
children: CollectionChildren<T>;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { Key, MutableRefObject } from 'react';
|
2
1
|
import { SelectableItemAria } from '@react-aria/selection';
|
2
|
+
import type { Key, MutableRefObject } from 'react';
|
3
3
|
import type { ListState } from '@react-stately/list';
|
4
4
|
export declare type UseNotificationListItemPropsType<T extends object> = {
|
5
5
|
key: Key;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { HTMLAttributes, MutableRefObject } from 'react';
|
2
1
|
import { CollectionChildren, NotificationsListState } from './types';
|
2
|
+
import type { HTMLAttributes, MutableRefObject } from 'react';
|
3
3
|
export declare type UseNotificationsListPropsType<T, R> = {
|
4
4
|
items?: Iterable<T>;
|
5
5
|
children: CollectionChildren<T, R>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { DOMRefValue } from '@react-types/shared';
|
3
|
+
import { PlacementAxis } from '../../../shared';
|
2
4
|
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
3
5
|
import type { AriaTooltipProps } from '@react-types/tooltip';
|
4
|
-
import { PlacementAxis } from '../../../shared';
|
5
|
-
import { DOMRefValue } from '@react-types/shared';
|
6
6
|
export interface CubeTooltipProps extends BaseProps, ContainerStyleProps, AriaTooltipProps {
|
7
7
|
tipStyles?: Styles;
|
8
8
|
showIcon?: boolean;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { CubeTooltipTriggerProps } from './TooltipTrigger';
|
2
|
-
import { CubeTooltipProps } from './Tooltip';
|
3
1
|
import { ReactNode } from 'react';
|
4
2
|
import { Styles } from '../../../tasty';
|
3
|
+
import { CubeTooltipTriggerProps } from './TooltipTrigger';
|
4
|
+
import { CubeTooltipProps } from './Tooltip';
|
5
5
|
export interface CubeTooltipProviderProps extends Omit<CubeTooltipTriggerProps, 'children'> {
|
6
6
|
children: CubeTooltipTriggerProps['children'][0];
|
7
7
|
title?: ReactNode;
|
@@ -1,11 +1,13 @@
|
|
1
|
-
import { RefObject } from 'react';
|
2
|
-
import { CubeSelectBaseProps } from '../Select/Select';
|
1
|
+
import { ReactElement, RefObject } from 'react';
|
3
2
|
import { Item } from '@react-stately/collections';
|
3
|
+
import { CubeSelectBaseProps } from '../Select/Select';
|
4
4
|
import type { CollectionBase, KeyboardDelegate, LoadingState } from '@react-types/shared';
|
5
5
|
import type { ComboBoxProps } from '@react-types/combobox';
|
6
6
|
export interface CubeComboBoxProps<T> extends Omit<CubeSelectBaseProps<T>, 'onOpenChange'>, ComboBoxProps<T>, CollectionBase<T> {
|
7
|
+
icon?: ReactElement;
|
7
8
|
multiLine?: boolean;
|
8
9
|
autoComplete?: string;
|
10
|
+
wrapperRef?: RefObject<HTMLDivElement>;
|
9
11
|
inputRef?: RefObject<HTMLInputElement>;
|
10
12
|
/** The ref for the list box popover. */
|
11
13
|
popoverRef?: RefObject<HTMLDivElement>;
|
@@ -16,6 +18,7 @@ export interface CubeComboBoxProps<T> extends Omit<CubeSelectBaseProps<T>, 'onOp
|
|
16
18
|
loadingState?: LoadingState;
|
17
19
|
filter?: (val: any, str: string) => boolean;
|
18
20
|
size?: 'small' | 'default' | 'large' | string;
|
21
|
+
suffixPosition?: 'before' | 'after';
|
19
22
|
}
|
20
23
|
declare const __ComboBox: import("react").ForwardRefExoticComponent<CubeComboBoxProps<object> & import("react").RefAttributes<unknown>> & {
|
21
24
|
Item: typeof Item;
|
@@ -1,13 +1,14 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
2
|
import { DOMRef, ItemProps } from '@react-types/shared';
|
3
|
-
import
|
4
|
-
import { ContainerStyleProps, Styles } from '../../../tasty';
|
3
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
5
4
|
import { MenuButtonProps, MenuSelectionType } from './MenuButton';
|
5
|
+
import type { AriaMenuProps } from '@react-types/menu';
|
6
6
|
export interface CubeMenuProps<T> extends ContainerStyleProps, AriaMenuProps<T> {
|
7
7
|
selectionIcon?: MenuSelectionType;
|
8
8
|
header?: ReactNode;
|
9
9
|
footer?: ReactNode;
|
10
10
|
styles?: Styles;
|
11
|
+
qa?: BaseProps['qa'];
|
11
12
|
}
|
12
13
|
declare type PartialMenuButton = Partial<MenuButtonProps>;
|
13
14
|
declare type ItemComponent = <T>(props: ItemProps<T> & PartialMenuButton & {
|
@@ -1,9 +1,11 @@
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
2
|
-
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props, Styles } from '../../../tasty';
|
1
|
+
import { ReactElement, ReactNode, RefObject } from 'react';
|
3
2
|
import { Item } from '@react-stately/collections';
|
4
|
-
import
|
3
|
+
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Props, Styles } from '../../../tasty';
|
5
4
|
import { FormFieldProps } from '../../../shared';
|
5
|
+
import { CubeButtonProps } from '../../actions';
|
6
|
+
import type { AriaSelectProps } from '@react-types/select';
|
6
7
|
export interface CubeSelectBaseProps<T> extends BasePropsWithoutChildren, OuterStyleProps, FormFieldProps, BlockStyleProps, AriaSelectProps<T> {
|
8
|
+
icon?: ReactElement;
|
7
9
|
prefix?: ReactNode;
|
8
10
|
suffix?: ReactNode;
|
9
11
|
triggerRef?: RefObject<HTMLButtonElement>;
|
@@ -19,6 +21,8 @@ export interface CubeSelectBaseProps<T> extends BasePropsWithoutChildren, OuterS
|
|
19
21
|
direction?: 'top' | 'bottom';
|
20
22
|
shouldFlip?: boolean;
|
21
23
|
inputProps?: Props;
|
24
|
+
type?: CubeButtonProps['type'];
|
25
|
+
suffixPosition?: 'before' | 'after';
|
22
26
|
}
|
23
27
|
export interface CubeSelectProps<T> extends CubeSelectBaseProps<T> {
|
24
28
|
popoverRef?: RefObject<HTMLInputElement>;
|
package/types/shared/form.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Props, Styles } from '../tasty';
|
2
1
|
import { ReactNode } from 'react';
|
2
|
+
import { Props, Styles } from '../tasty';
|
3
3
|
/** Where to place label relative to input */
|
4
4
|
export declare type LabelPosition = 'side' | 'top';
|
5
5
|
/** The type of necessity indicator */
|
@@ -49,6 +49,7 @@ export interface FormFieldProps extends FormBaseProps {
|
|
49
49
|
insideForm?: boolean;
|
50
50
|
/** A text label of the field */
|
51
51
|
label?: ReactNode;
|
52
|
+
labelSuffix?: ReactNode;
|
52
53
|
/** An additional content next to the label */
|
53
54
|
extra?: ReactNode;
|
54
55
|
/** Custom label props */
|
@@ -329,3 +329,19 @@ export declare const SELECTED_KEY_ARG: {
|
|
329
329
|
};
|
330
330
|
};
|
331
331
|
};
|
332
|
+
export declare const ICON_ARG: {
|
333
|
+
icon: {
|
334
|
+
description: string;
|
335
|
+
control: {
|
336
|
+
type: string;
|
337
|
+
};
|
338
|
+
table: {
|
339
|
+
type: {
|
340
|
+
summary: string;
|
341
|
+
};
|
342
|
+
defaultValue: {
|
343
|
+
summary: boolean;
|
344
|
+
};
|
345
|
+
};
|
346
|
+
};
|
347
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { CubeButtonProps } from '../../components/actions';
|
2
1
|
import { AriaButtonProps } from '@react-types/button';
|
2
|
+
import { CubeButtonProps } from '../../components/actions';
|
3
3
|
/** Converts AriaButtonProps to CubeButtonProps */
|
4
4
|
export declare function ariaToCubeButtonProps(props: AriaButtonProps<'button'>): CubeButtonProps;
|
5
5
|
/** Converts CubeButtonProps to AriaButtonProps */
|