@cube-dev/ui-kit 0.0.0-canary-fcfd265 → 0.0.0-canary-7339959
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/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 +1 -1
- package/cjs/components/Block.js +1 -1
- package/cjs/components/GlobalStyles.js +1 -1
- package/cjs/components/GridProvider.js +1 -1
- package/cjs/components/HiddenInput.js +1 -1
- package/cjs/components/OpenTrasition.js +1 -1
- package/cjs/components/Root.js +1 -1
- package/cjs/components/actions/Action.js +1 -1
- package/cjs/components/actions/Button/Button.js +1 -1
- package/cjs/components/actions/Button/Submit.js +1 -1
- package/cjs/components/actions/Button/index.js +1 -1
- package/cjs/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/cjs/components/actions/index.js +1 -1
- package/cjs/components/content/ActiveZone/ActiveZone.js +1 -1
- package/cjs/components/content/Alert/Alert.js +1 -1
- package/cjs/components/content/Alert/index.js +1 -1
- package/cjs/components/content/Alert/types.js +1 -1
- package/cjs/components/content/Alert/use-alert.js +1 -1
- package/cjs/components/content/Avatar/Avatar.js +1 -1
- package/cjs/components/content/Badge/Badge.js +1 -1
- package/cjs/components/content/Card/Card.js +1 -1
- package/cjs/components/content/Content.js +1 -1
- package/cjs/components/content/CopySnippet/CopySnippet.js +1 -1
- package/cjs/components/content/CopySnippet/index.js +1 -1
- package/cjs/components/content/Divider.js +1 -1
- package/cjs/components/content/Footer.js +1 -1
- package/cjs/components/content/Header.js +1 -1
- package/cjs/components/content/Paragraph.js +1 -1
- package/cjs/components/content/Placeholder/Placeholder.js +1 -1
- package/cjs/components/content/PrismCode/PrismCode.js +1 -1
- package/cjs/components/content/Result/Result.js +1 -1
- package/cjs/components/content/Skeleton/Skeleton.js +1 -1
- package/cjs/components/content/Tag/Tag.js +1 -1
- package/cjs/components/content/Text.js +1 -1
- package/cjs/components/content/Title.js +1 -1
- package/cjs/components/forms/Checkbox/Checkbox.js +1 -1
- package/cjs/components/forms/Checkbox/CheckboxGroup.js +1 -1
- package/cjs/components/forms/Checkbox/context.js +1 -1
- package/cjs/components/forms/FieldWrapper.js +1 -1
- package/cjs/components/forms/FileInput/FileInput.js +1 -1
- package/cjs/components/forms/Form/Field.js +1 -1
- package/cjs/components/forms/Form/Form.js +1 -1
- package/cjs/components/forms/Form/index.js +1 -1
- package/cjs/components/forms/Form/types.js +1 -1
- package/cjs/components/forms/Form/useForm.js +1 -1
- package/cjs/components/forms/Form/validation.js +1 -1
- package/cjs/components/forms/Input/Input.js +1 -1
- package/cjs/components/forms/Input/index.js +1 -1
- package/cjs/components/forms/Label.js +1 -1
- package/cjs/components/forms/NumberInput/NumberInput.js +3 -3
- package/cjs/components/forms/NumberInput/StepButton.js +8 -4
- package/cjs/components/forms/PasswordInput/PasswordInput.js +1 -1
- package/cjs/components/forms/RadioGroup/Radio.js +1 -1
- package/cjs/components/forms/RadioGroup/RadioGroup.js +1 -1
- package/cjs/components/forms/RadioGroup/context.js +1 -1
- package/cjs/components/forms/SearchInput/SearchInput.js +1 -1
- package/cjs/components/forms/Switch/Switch.js +1 -1
- package/cjs/components/forms/TextArea/TextArea.js +1 -1
- package/cjs/components/forms/TextInput/TextInput.js +1 -1
- package/cjs/components/forms/TextInput/TextInputBase.js +1 -1
- package/cjs/components/forms/index.js +1 -1
- package/cjs/components/layout/Flex.js +1 -1
- package/cjs/components/layout/Flow.js +1 -1
- package/cjs/components/layout/Grid.js +1 -1
- package/cjs/components/layout/Prefix.js +1 -1
- package/cjs/components/layout/Space.js +1 -1
- package/cjs/components/layout/Suffix.js +1 -1
- package/cjs/components/navigation/LegacyTabs/LegacyTabs.js +1 -1
- package/cjs/components/navigation/Link/Link.js +1 -1
- package/cjs/components/organisms/FileTabs/FileTabs.js +1 -1
- package/cjs/components/organisms/Modal/Modal.js +1 -1
- package/cjs/components/organisms/StatsCard/StatsCard.js +1 -1
- package/cjs/components/other/Base64Upload/Base64Upload.js +1 -1
- package/cjs/components/other/CloudLogo/CloudLogo.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/cjs/components/overlays/AlertDialog/index.js +1 -1
- package/cjs/components/overlays/AlertDialog/types.js +1 -1
- package/cjs/components/overlays/Dialog/Dialog.js +1 -1
- package/cjs/components/overlays/Dialog/DialogContainer.js +1 -1
- package/cjs/components/overlays/Dialog/DialogForm.js +1 -1
- package/cjs/components/overlays/Dialog/DialogTrigger.js +1 -1
- 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 +1 -1
- package/cjs/components/overlays/Modal/OpenTransition.js +1 -1
- package/cjs/components/overlays/Modal/Overlay.js +1 -1
- package/cjs/components/overlays/Modal/Popover.js +1 -1
- package/cjs/components/overlays/Modal/Tray.js +1 -1
- package/cjs/components/overlays/Modal/Underlay.js +1 -1
- package/cjs/components/overlays/Modal/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/Bar/FloatingNotification.js +1 -1
- package/cjs/components/overlays/NewNotifications/Bar/NotificationsBar.js +1 -1
- 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 +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationAction.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/NotificationView.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationView/types.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsList/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/NotificationsList/types.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/index.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/types.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notification-list-item.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-api.js +1 -1
- package/cjs/components/overlays/NewNotifications/hooks/use-notifications-list.js +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 +1 -1
- package/cjs/components/overlays/OverlayWrapper.js +1 -1
- package/cjs/components/overlays/Toasts/Toast.js +1 -1
- package/cjs/components/overlays/Toasts/index.js +1 -1
- package/cjs/components/overlays/Toasts/types.js +1 -1
- package/cjs/components/overlays/Toasts/use-toasts-api.js +1 -1
- package/cjs/components/overlays/Tooltip/Tooltip.js +1 -1
- package/cjs/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/cjs/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/cjs/components/overlays/Tooltip/context.js +1 -1
- package/cjs/components/pickers/ComboBox/ComboBox.js +1 -1
- package/cjs/components/pickers/Menu/Menu.js +1 -1
- package/cjs/components/pickers/Menu/MenuButton.js +1 -1
- package/cjs/components/pickers/Menu/MenuItem.js +1 -1
- package/cjs/components/pickers/Menu/MenuSection.js +1 -1
- package/cjs/components/pickers/Menu/MenuTrigger.js +1 -1
- 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 +1 -1
- package/cjs/components/portal/Portal.js +1 -1
- package/cjs/components/portal/PortalProvider.js +1 -1
- package/cjs/components/portal/index.js +1 -1
- package/cjs/components/portal/storybook/templates/CustomRoot.js +1 -1
- package/cjs/components/portal/storybook/templates/PortalOrder.js +1 -1
- package/cjs/components/portal/storybook/templates/basic.js +1 -1
- package/cjs/components/portal/storybook/templates/index.js +1 -1
- package/cjs/components/portal/types.js +1 -1
- package/cjs/components/portal/usePortal.js +1 -1
- package/cjs/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/cjs/components/status/LoadingAnimation/index.js +1 -1
- package/cjs/components/status/Spin/Cube.js +1 -1
- package/cjs/components/status/Spin/InternalSpinner.js +1 -1
- package/cjs/components/status/Spin/Spin.js +1 -1
- package/cjs/components/status/Spin/SpinsContainer.js +1 -1
- package/cjs/components/status/Spin/index.js +1 -1
- package/cjs/components/status/Spin/types.js +1 -1
- package/cjs/components/status/index.js +1 -1
- package/cjs/data/themes.js +1 -1
- package/cjs/icons/Attention.js +1 -1
- package/cjs/icons/Cross.js +1 -1
- package/cjs/icons/Danger.js +1 -1
- package/cjs/icons/Success.js +1 -1
- package/cjs/icons/index.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/provider.js +1 -1
- package/cjs/providers/StyleProvider.js +1 -1
- package/cjs/services/notification.js +1 -1
- package/cjs/shared/form.js +1 -1
- package/cjs/shared/index.js +1 -1
- package/cjs/stories/FormFieldArgs.js +2 -20
- package/cjs/stories/components/ConfirmDeletionDialogForm.js +1 -1
- package/cjs/stories/components/DialogFormApp.js +1 -1
- package/cjs/stories/components/StyledButton.js +1 -1
- package/cjs/stories/lists/baseProps.js +1 -1
- package/cjs/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 +1 -1
- package/cjs/tasty/utils/responsive.js +1 -1
- package/cjs/tasty/utils/string.js +1 -1
- package/cjs/tasty/utils/styles.js +1 -1
- package/cjs/tasty/utils/warnings.js +1 -1
- package/cjs/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/random.js +1 -1
- package/cjs/utils/range.js +1 -1
- package/cjs/utils/react/Slots.js +1 -1
- package/cjs/utils/react/chain.js +1 -1
- package/cjs/utils/react/index.js +1 -1
- package/cjs/utils/react/interactions.js +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 +1 -1
- package/cjs/utils/react/useLayoutEffect.js +1 -1
- package/cjs/utils/react/useViewportSize.js +1 -1
- package/cjs/utils/react/wrapNodeIfPlain.js +1 -1
- package/cjs/utils/transitions.js +1 -1
- package/cjs/utils/tree.js +1 -1
- package/cjs/utils/warnings.js +1 -1
- package/es/_internal/hooks/index.js +1 -1
- package/es/_internal/hooks/use-chained-callback.js +1 -1
- package/es/_internal/hooks/use-deprecation-warning.js +1 -1
- package/es/_internal/hooks/use-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 +1 -1
- package/es/components/Block.js +1 -1
- package/es/components/GlobalStyles.js +1 -1
- package/es/components/GridProvider.js +1 -1
- package/es/components/HiddenInput.js +1 -1
- package/es/components/OpenTrasition.js +1 -1
- package/es/components/Root.js +1 -1
- package/es/components/actions/Action.js +1 -1
- package/es/components/actions/Button/Button.js +1 -1
- package/es/components/actions/Button/Submit.js +1 -1
- package/es/components/actions/Button/index.js +1 -1
- package/es/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/es/components/actions/index.js +1 -1
- package/es/components/content/ActiveZone/ActiveZone.js +1 -1
- package/es/components/content/Alert/Alert.js +1 -1
- package/es/components/content/Alert/index.js +1 -1
- package/es/components/content/Alert/types.js +1 -1
- package/es/components/content/Alert/use-alert.js +1 -1
- package/es/components/content/Avatar/Avatar.js +1 -1
- package/es/components/content/Badge/Badge.js +1 -1
- package/es/components/content/Card/Card.js +1 -1
- package/es/components/content/Content.js +1 -1
- package/es/components/content/CopySnippet/CopySnippet.js +1 -1
- package/es/components/content/CopySnippet/index.js +1 -1
- package/es/components/content/Divider.js +1 -1
- package/es/components/content/Footer.js +1 -1
- package/es/components/content/Header.js +1 -1
- package/es/components/content/Paragraph.js +1 -1
- package/es/components/content/Placeholder/Placeholder.js +1 -1
- package/es/components/content/PrismCode/PrismCode.js +1 -1
- package/es/components/content/Result/Result.js +1 -1
- package/es/components/content/Skeleton/Skeleton.js +1 -1
- package/es/components/content/Tag/Tag.js +1 -1
- package/es/components/content/Text.js +1 -1
- package/es/components/content/Title.js +1 -1
- package/es/components/forms/Checkbox/Checkbox.js +1 -1
- package/es/components/forms/Checkbox/CheckboxGroup.js +1 -1
- package/es/components/forms/Checkbox/context.js +1 -1
- package/es/components/forms/FieldWrapper.js +1 -1
- package/es/components/forms/FileInput/FileInput.js +1 -1
- package/es/components/forms/Form/Field.js +1 -1
- package/es/components/forms/Form/Form.js +1 -1
- package/es/components/forms/Form/index.js +1 -1
- package/es/components/forms/Form/types.js +1 -1
- package/es/components/forms/Form/useForm.js +1 -1
- package/es/components/forms/Form/validation.js +1 -1
- package/es/components/forms/Input/Input.js +1 -1
- package/es/components/forms/Input/index.js +1 -1
- package/es/components/forms/Label.js +1 -1
- package/es/components/forms/NumberInput/NumberInput.js +3 -3
- package/es/components/forms/NumberInput/StepButton.js +8 -4
- package/es/components/forms/PasswordInput/PasswordInput.js +1 -1
- package/es/components/forms/RadioGroup/Radio.js +1 -1
- package/es/components/forms/RadioGroup/RadioGroup.js +1 -1
- package/es/components/forms/RadioGroup/context.js +1 -1
- package/es/components/forms/SearchInput/SearchInput.js +1 -1
- package/es/components/forms/Switch/Switch.js +1 -1
- package/es/components/forms/TextArea/TextArea.js +1 -1
- package/es/components/forms/TextInput/TextInput.js +1 -1
- package/es/components/forms/TextInput/TextInputBase.js +1 -1
- package/es/components/forms/index.js +1 -1
- package/es/components/layout/Flex.js +1 -1
- package/es/components/layout/Flow.js +1 -1
- package/es/components/layout/Grid.js +1 -1
- package/es/components/layout/Prefix.js +1 -1
- package/es/components/layout/Space.js +1 -1
- package/es/components/layout/Suffix.js +1 -1
- package/es/components/navigation/LegacyTabs/LegacyTabs.js +1 -1
- package/es/components/navigation/Link/Link.js +1 -1
- package/es/components/organisms/FileTabs/FileTabs.js +1 -1
- package/es/components/organisms/Modal/Modal.js +1 -1
- package/es/components/organisms/StatsCard/StatsCard.js +1 -1
- package/es/components/other/Base64Upload/Base64Upload.js +1 -1
- package/es/components/other/CloudLogo/CloudLogo.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/es/components/overlays/AlertDialog/index.js +1 -1
- package/es/components/overlays/AlertDialog/types.js +1 -1
- package/es/components/overlays/Dialog/Dialog.js +1 -1
- package/es/components/overlays/Dialog/DialogContainer.js +1 -1
- package/es/components/overlays/Dialog/DialogForm.js +1 -1
- package/es/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/es/components/overlays/Dialog/context.js +1 -1
- package/es/components/overlays/Dialog/index.js +1 -1
- package/es/components/overlays/Modal/Modal.js +1 -1
- package/es/components/overlays/Modal/OpenTransition.js +1 -1
- package/es/components/overlays/Modal/Overlay.js +1 -1
- package/es/components/overlays/Modal/Popover.js +1 -1
- package/es/components/overlays/Modal/Tray.js +1 -1
- package/es/components/overlays/Modal/Underlay.js +1 -1
- package/es/components/overlays/Modal/index.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/FloatingNotification.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/NotificationsBar.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/TransitionComponent.js +1 -1
- package/es/components/overlays/NewNotifications/Bar/index.js +1 -1
- package/es/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.js +1 -1
- package/es/components/overlays/NewNotifications/Dialog/index.js +1 -1
- package/es/components/overlays/NewNotifications/Notification.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationAction.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationCloseButton.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationDescription.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationFooter.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationHeader.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationIcon.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationProvider.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/NotificationView.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationView/types.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/NotificationsProvider.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsContext/use-notifications.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/NotificationsList.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/NotificationsListItem.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/index.js +1 -1
- package/es/components/overlays/NewNotifications/NotificationsList/types.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/index.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/types.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notification-list-item.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-api.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-list.js +1 -1
- package/es/components/overlays/NewNotifications/hooks/use-notifications-observer.js +1 -1
- package/es/components/overlays/NewNotifications/index.js +1 -1
- package/es/components/overlays/NewNotifications/types.js +1 -1
- package/es/components/overlays/Notification/Notification.js +1 -1
- package/es/components/overlays/OverlayWrapper.js +1 -1
- package/es/components/overlays/Toasts/Toast.js +1 -1
- package/es/components/overlays/Toasts/index.js +1 -1
- package/es/components/overlays/Toasts/types.js +1 -1
- package/es/components/overlays/Toasts/use-toasts-api.js +1 -1
- package/es/components/overlays/Tooltip/Tooltip.js +1 -1
- package/es/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/es/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/es/components/overlays/Tooltip/context.js +1 -1
- package/es/components/pickers/ComboBox/ComboBox.js +1 -1
- package/es/components/pickers/Menu/Menu.js +1 -1
- package/es/components/pickers/Menu/MenuButton.js +1 -1
- package/es/components/pickers/Menu/MenuItem.js +1 -1
- package/es/components/pickers/Menu/MenuSection.js +1 -1
- package/es/components/pickers/Menu/MenuTrigger.js +1 -1
- 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 +1 -1
- package/es/components/portal/Portal.js +1 -1
- package/es/components/portal/PortalProvider.js +1 -1
- package/es/components/portal/index.js +1 -1
- package/es/components/portal/storybook/templates/CustomRoot.js +1 -1
- package/es/components/portal/storybook/templates/PortalOrder.js +1 -1
- package/es/components/portal/storybook/templates/basic.js +1 -1
- package/es/components/portal/storybook/templates/index.js +1 -1
- package/es/components/portal/types.js +1 -1
- package/es/components/portal/usePortal.js +1 -1
- package/es/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/es/components/status/LoadingAnimation/index.js +1 -1
- package/es/components/status/Spin/Cube.js +1 -1
- package/es/components/status/Spin/InternalSpinner.js +1 -1
- package/es/components/status/Spin/Spin.js +1 -1
- package/es/components/status/Spin/SpinsContainer.js +1 -1
- package/es/components/status/Spin/index.js +1 -1
- package/es/components/status/Spin/types.js +1 -1
- package/es/components/status/index.js +1 -1
- package/es/data/themes.js +1 -1
- package/es/icons/Attention.js +1 -1
- package/es/icons/Cross.js +1 -1
- package/es/icons/Danger.js +1 -1
- package/es/icons/Success.js +1 -1
- package/es/icons/index.js +1 -1
- package/es/index.js +1 -1
- package/es/provider.js +1 -1
- package/es/providers/StyleProvider.js +1 -1
- package/es/services/notification.js +1 -1
- package/es/shared/form.js +1 -1
- package/es/shared/index.js +1 -1
- package/es/stories/FormFieldArgs.js +1 -19
- package/es/stories/components/ConfirmDeletionDialogForm.js +1 -1
- package/es/stories/components/DialogFormApp.js +1 -1
- package/es/stories/components/StyledButton.js +1 -1
- package/es/stories/lists/baseProps.js +1 -1
- package/es/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 +1 -1
- package/es/tasty/utils/responsive.js +1 -1
- package/es/tasty/utils/string.js +1 -1
- package/es/tasty/utils/styles.js +1 -1
- package/es/tasty/utils/warnings.js +1 -1
- package/es/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/random.js +1 -1
- package/es/utils/range.js +1 -1
- package/es/utils/react/Slots.js +1 -1
- package/es/utils/react/chain.js +1 -1
- package/es/utils/react/index.js +1 -1
- package/es/utils/react/interactions.js +1 -1
- package/es/utils/react/isTextOnly.js +1 -1
- package/es/utils/react/mapProps.js +1 -1
- package/es/utils/react/mergeProps.js +1 -1
- package/es/utils/react/nullableValue.js +1 -1
- package/es/utils/react/useCombinedRefs.js +1 -1
- package/es/utils/react/useId.js +1 -1
- package/es/utils/react/useLayoutEffect.js +1 -1
- package/es/utils/react/useViewportSize.js +1 -1
- package/es/utils/react/wrapNodeIfPlain.js +1 -1
- package/es/utils/transitions.js +1 -1
- package/es/utils/tree.js +1 -1
- package/es/utils/warnings.js +1 -1
- package/package.json +1 -4
- package/types/stories/FormFieldArgs.d.ts +0 -22
- package/cjs/components/pickers/RangeSlider/Gradation.js +0 -28
- package/cjs/components/pickers/RangeSlider/Header.js +0 -16
- package/cjs/components/pickers/RangeSlider/RangeInput.js +0 -38
- package/cjs/components/pickers/RangeSlider/RangeSlider.js +0 -100
- package/cjs/components/pickers/RangeSlider/Slide.js +0 -28
- package/cjs/components/pickers/RangeSlider/Thumb.js +0 -36
- package/cjs/components/pickers/RangeSlider/styled.js +0 -118
- package/es/components/pickers/RangeSlider/Gradation.js +0 -24
- package/es/components/pickers/RangeSlider/Header.js +0 -12
- package/es/components/pickers/RangeSlider/RangeInput.js +0 -34
- package/es/components/pickers/RangeSlider/RangeSlider.js +0 -97
- package/es/components/pickers/RangeSlider/Slide.js +0 -24
- package/es/components/pickers/RangeSlider/Thumb.js +0 -32
- package/es/components/pickers/RangeSlider/styled.js +0 -115
- package/types/components/pickers/RangeSlider/Gradation.d.ts +0 -8
- package/types/components/pickers/RangeSlider/Header.d.ts +0 -1
- package/types/components/pickers/RangeSlider/RangeInput.d.ts +0 -10
- package/types/components/pickers/RangeSlider/RangeSlider.d.ts +0 -19
- package/types/components/pickers/RangeSlider/Slide.d.ts +0 -9
- package/types/components/pickers/RangeSlider/Thumb.d.ts +0 -9
- package/types/components/pickers/RangeSlider/styled.d.ts +0 -8
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-fcfd265
|
|
5
|
-
* Released under the MIT license.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
"use strict";
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.StyledContent = exports.StyledSlider = exports.StyledControls = exports.StyledGrade = exports.StyledGradation = exports.StyledSlideTrack = exports.StyledSlide = exports.StyledThumb = void 0;
|
|
11
|
-
const tasty_1 = require("../../../tasty");
|
|
12
|
-
exports.StyledThumb = (0, tasty_1.tasty)({
|
|
13
|
-
styles: {
|
|
14
|
-
top: '2x',
|
|
15
|
-
width: '2x',
|
|
16
|
-
height: '2x',
|
|
17
|
-
fill: {
|
|
18
|
-
'': '#purple',
|
|
19
|
-
hovered: '#6B4FEE',
|
|
20
|
-
dragged: '#7A77FF',
|
|
21
|
-
disabled: '#dark-04',
|
|
22
|
-
},
|
|
23
|
-
cursor: {
|
|
24
|
-
hovered: 'pointer',
|
|
25
|
-
dragged: 'grab',
|
|
26
|
-
},
|
|
27
|
-
shadow: '0px 2px 4px rgba(20, 20, 70, 0.2)',
|
|
28
|
-
radius: '50%',
|
|
29
|
-
border: {
|
|
30
|
-
focused: '3px solid #CAC9FF',
|
|
31
|
-
dragged: '2px solid #665DE8;',
|
|
32
|
-
},
|
|
33
|
-
boxSizing: {
|
|
34
|
-
'': 'border-box',
|
|
35
|
-
focused: 'content-box',
|
|
36
|
-
dragged: 'border-box',
|
|
37
|
-
},
|
|
38
|
-
transition: 'theme',
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
exports.StyledSlide = (0, tasty_1.tasty)({
|
|
42
|
-
styles: {
|
|
43
|
-
top: '1.875x',
|
|
44
|
-
position: 'absolute',
|
|
45
|
-
fill: {
|
|
46
|
-
'': '#dark-05',
|
|
47
|
-
// disabled: '#dark-04',
|
|
48
|
-
},
|
|
49
|
-
height: '2px',
|
|
50
|
-
width: '100%',
|
|
51
|
-
radius: true,
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
exports.StyledSlideTrack = (0, tasty_1.tasty)({
|
|
55
|
-
styles: {
|
|
56
|
-
position: 'absolute',
|
|
57
|
-
'@start-range': {
|
|
58
|
-
'': '@thumb-0-value',
|
|
59
|
-
single: '0',
|
|
60
|
-
},
|
|
61
|
-
'@end-range': {
|
|
62
|
-
'': '(1 - @thumb-1-value)',
|
|
63
|
-
single: '(1 - @thumb-0-value)',
|
|
64
|
-
},
|
|
65
|
-
left: '(@start-range * 100%)',
|
|
66
|
-
right: '(@end-range * 100%)',
|
|
67
|
-
height: '2px',
|
|
68
|
-
fill: {
|
|
69
|
-
'': '#purple',
|
|
70
|
-
disabled: '#dark-04',
|
|
71
|
-
},
|
|
72
|
-
radius: true,
|
|
73
|
-
},
|
|
74
|
-
});
|
|
75
|
-
exports.StyledGradation = (0, tasty_1.tasty)({
|
|
76
|
-
styles: {},
|
|
77
|
-
});
|
|
78
|
-
exports.StyledGrade = (0, tasty_1.tasty)({
|
|
79
|
-
styles: {},
|
|
80
|
-
});
|
|
81
|
-
exports.StyledControls = (0, tasty_1.tasty)({
|
|
82
|
-
styles: {
|
|
83
|
-
position: 'relative',
|
|
84
|
-
width: '100% - 2x',
|
|
85
|
-
height: '4x',
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
exports.StyledSlider = (0, tasty_1.tasty)({
|
|
89
|
-
as: 'section',
|
|
90
|
-
styles: {
|
|
91
|
-
position: 'relative',
|
|
92
|
-
display: 'flex',
|
|
93
|
-
gap: {
|
|
94
|
-
'': '0',
|
|
95
|
-
inputs: '1x',
|
|
96
|
-
},
|
|
97
|
-
flexDirection: {
|
|
98
|
-
'': 'column',
|
|
99
|
-
inputs: 'row',
|
|
100
|
-
},
|
|
101
|
-
alignItems: 'center',
|
|
102
|
-
width: '100%',
|
|
103
|
-
padding: {
|
|
104
|
-
'': '0',
|
|
105
|
-
sideLabel: '0.75x top',
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
});
|
|
109
|
-
exports.StyledContent = (0, tasty_1.tasty)({
|
|
110
|
-
styles: {
|
|
111
|
-
display: 'flex',
|
|
112
|
-
alignItems: 'center',
|
|
113
|
-
flexDirection: 'column',
|
|
114
|
-
width: '100%',
|
|
115
|
-
},
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-fcfd265
|
|
5
|
-
* Released under the MIT license.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { StyledGradation, StyledGrade } from './styled';
|
|
10
|
-
export function Gradation(props) {
|
|
11
|
-
const { state, ranges, values = [] } = props;
|
|
12
|
-
if (!values.length) {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
const getIsActive = (value, idx) => {
|
|
16
|
-
const [minIdx, maxIdx] = ranges.map((range) => state.getThumbValue(range));
|
|
17
|
-
return idx >= minIdx && idx <= maxIdx;
|
|
18
|
-
};
|
|
19
|
-
return (_jsx(StyledGradation, { children: values.map((value, idx) => (_jsx(StyledGrade, { mods: {
|
|
20
|
-
active: getIsActive(value, idx),
|
|
21
|
-
}, children: value }, value))) }, void 0));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-fcfd265
|
|
5
|
-
* Released under the MIT license.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { useCallback } from 'react';
|
|
10
|
-
import { Flow } from '../../layout/Flow';
|
|
11
|
-
import { NumberInput } from '../../forms';
|
|
12
|
-
function calculateWidth(max) {
|
|
13
|
-
if (typeof max === 'undefined') {
|
|
14
|
-
return undefined;
|
|
15
|
-
}
|
|
16
|
-
const value = String(max).length;
|
|
17
|
-
const charWidth = 2;
|
|
18
|
-
return `${value * charWidth}x`;
|
|
19
|
-
}
|
|
20
|
-
export function RangeInput(props) {
|
|
21
|
-
const { state, index, suffix, min, max, isLoading, ...otherProps } = props;
|
|
22
|
-
const value = state.values[index];
|
|
23
|
-
const width = calculateWidth(max);
|
|
24
|
-
const onChange = useCallback((value) => {
|
|
25
|
-
state.setThumbValue(index, value);
|
|
26
|
-
}, [index, state]);
|
|
27
|
-
return (_jsx(NumberInput, { ...otherProps, hideStepper: true, inputProps: {
|
|
28
|
-
maxLength: max && String(max).length,
|
|
29
|
-
}, inputStyles: {
|
|
30
|
-
width,
|
|
31
|
-
}, isLoading: isLoading, suffix: suffix && _jsx(Flow, { padding: "0.5x", children: suffix }, void 0), value: value, minValue: state.getThumbMinValue(index), maxValue: state.getThumbMaxValue(index), onChange: onChange }, void 0));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-fcfd265
|
|
5
|
-
* Released under the MIT license.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { forwardRef, useRef } from 'react';
|
|
10
|
-
import { useSlider } from '@react-aria/slider';
|
|
11
|
-
import { useSliderState } from '@react-stately/slider';
|
|
12
|
-
import { FieldWrapper } from '../../forms/FieldWrapper';
|
|
13
|
-
import { extractStyles, OUTER_STYLES, } from '../../../tasty';
|
|
14
|
-
import { Slide } from './Slide';
|
|
15
|
-
import { Gradation } from './Gradation';
|
|
16
|
-
import { Thumb } from './Thumb';
|
|
17
|
-
import { RangeInput } from './RangeInput';
|
|
18
|
-
import { StyledControls, StyledSlider, StyledContent } from './styled';
|
|
19
|
-
function getRanges(value) {
|
|
20
|
-
if (Array.isArray(value)) {
|
|
21
|
-
return value.length >= 2 ? [0, 1] : [0];
|
|
22
|
-
}
|
|
23
|
-
return [0];
|
|
24
|
-
}
|
|
25
|
-
function RangeSlider(props, ref) {
|
|
26
|
-
let { labelPosition, label, extra, styles, isRequired, validationState, message, description, requiredMark, labelSuffix, labelStyles, necessityIndicator, defaultValue, value, gradation, step = 1, isDisabled, isLoading, orientation = 'horizontal', showInput, inputStyles, inputSuffix, inputSuffixPosition, minValue, maxValue, onChange, onChangeEnd, ...otherProps } = props;
|
|
27
|
-
const ranges = getRanges(defaultValue || value || [0, 1]);
|
|
28
|
-
const isSingle = ranges.length <= 1;
|
|
29
|
-
const trackRef = useRef(null);
|
|
30
|
-
const inputRef = useRef(null);
|
|
31
|
-
const numberFormatter = new Intl.NumberFormat();
|
|
32
|
-
const baseProps = {
|
|
33
|
-
step,
|
|
34
|
-
orientation,
|
|
35
|
-
isDisabled,
|
|
36
|
-
onChange(range) {
|
|
37
|
-
if (onChange) {
|
|
38
|
-
onChange(Array.isArray(range) ? range : [range]);
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
onChangeEnd(range) {
|
|
42
|
-
if (onChangeEnd) {
|
|
43
|
-
onChangeEnd(Array.isArray(range) ? range : [range]);
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
const state = useSliderState({
|
|
48
|
-
...props,
|
|
49
|
-
...baseProps,
|
|
50
|
-
numberFormatter,
|
|
51
|
-
});
|
|
52
|
-
const { groupProps, trackProps, labelProps } = useSlider({
|
|
53
|
-
...props,
|
|
54
|
-
...baseProps,
|
|
55
|
-
}, state, trackRef);
|
|
56
|
-
const inputProps = {
|
|
57
|
-
min: minValue,
|
|
58
|
-
max: maxValue,
|
|
59
|
-
step,
|
|
60
|
-
state: state,
|
|
61
|
-
suffix: inputSuffix,
|
|
62
|
-
styles: inputStyles,
|
|
63
|
-
suffixPosition: inputSuffixPosition,
|
|
64
|
-
isDisabled,
|
|
65
|
-
isLoading,
|
|
66
|
-
};
|
|
67
|
-
const sliderField = (_jsxs(StyledSlider, { ...groupProps, mods: {
|
|
68
|
-
sideLabel: labelPosition === 'side',
|
|
69
|
-
inputs: showInput,
|
|
70
|
-
}, children: [!isSingle && showInput && _jsx(RangeInput, { index: 0, ...inputProps }, void 0), _jsx(StyledContent, { children: _jsxs(StyledControls, { ...trackProps, ref: trackRef, children: [_jsx(Slide, { state: state, ranges: ranges, isSingle: isSingle, isDisabled: isDisabled }, void 0), _jsx(Gradation, { state: state, ranges: ranges, values: gradation }, void 0), ranges.map((thumb) => (_jsx(Thumb, { index: thumb, state: state, inputRef: inputRef, trackRef: trackRef, isDisabled: isDisabled, defaultValue: defaultValue && defaultValue[thumb] }, thumb)))] }, void 0) }, void 0), showInput && _jsx(RangeInput, { index: 1, ...inputProps }, void 0)] }, void 0));
|
|
71
|
-
styles = extractStyles(otherProps, OUTER_STYLES, styles);
|
|
72
|
-
return (_jsx(FieldWrapper, { ...{
|
|
73
|
-
labelPosition,
|
|
74
|
-
label,
|
|
75
|
-
extra,
|
|
76
|
-
styles,
|
|
77
|
-
isRequired,
|
|
78
|
-
labelStyles,
|
|
79
|
-
necessityIndicator,
|
|
80
|
-
labelProps,
|
|
81
|
-
isDisabled,
|
|
82
|
-
validationState,
|
|
83
|
-
message,
|
|
84
|
-
description,
|
|
85
|
-
requiredMark,
|
|
86
|
-
labelSuffix,
|
|
87
|
-
Component: sliderField,
|
|
88
|
-
ref: ref,
|
|
89
|
-
} }, void 0));
|
|
90
|
-
}
|
|
91
|
-
const _RangeSlider = forwardRef(RangeSlider);
|
|
92
|
-
const __RangeSlider = Object.assign(_RangeSlider, {
|
|
93
|
-
cubeInputType: 'CheckboxGroup',
|
|
94
|
-
});
|
|
95
|
-
export { __RangeSlider as RangeSlider };
|
|
96
|
-
|
|
97
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-fcfd265
|
|
5
|
-
* Released under the MIT license.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { useMemo } from 'react';
|
|
10
|
-
import { StyledSlide, StyledSlideTrack } from './styled';
|
|
11
|
-
export function Slide(props) {
|
|
12
|
-
const { ranges, state, isDisabled, isSingle } = props;
|
|
13
|
-
const styles = {};
|
|
14
|
-
const mods = useMemo(() => ({
|
|
15
|
-
single: isSingle,
|
|
16
|
-
disabled: isDisabled,
|
|
17
|
-
}), [isDisabled, isSingle]);
|
|
18
|
-
ranges.forEach((rangeIndex) => {
|
|
19
|
-
styles[`@thumb-${rangeIndex}-value`] = state.getThumbPercent(rangeIndex);
|
|
20
|
-
});
|
|
21
|
-
return (_jsx(StyledSlide, { mods: mods, children: _jsx(StyledSlideTrack, { styles: styles, mods: mods }, void 0) }, void 0));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-fcfd265
|
|
5
|
-
* Released under the MIT license.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
import { useRef } from 'react';
|
|
10
|
-
import { useSliderThumb } from '@react-aria/slider';
|
|
11
|
-
import { useHover } from '@react-aria/interactions';
|
|
12
|
-
import { VisuallyHidden } from '@react-aria/visually-hidden';
|
|
13
|
-
import { FocusRing } from '@react-aria/focus';
|
|
14
|
-
import { mergeProps } from '../../../utils/react';
|
|
15
|
-
import { StyledThumb } from './styled';
|
|
16
|
-
export function Thumb(props) {
|
|
17
|
-
const { state, isDisabled } = props;
|
|
18
|
-
const ref = useRef(null);
|
|
19
|
-
const { thumbProps, inputProps, isDragging, isFocused } = useSliderThumb({
|
|
20
|
-
...props,
|
|
21
|
-
inputRef: ref,
|
|
22
|
-
}, state);
|
|
23
|
-
const { hoverProps, isHovered } = useHover({ isDisabled });
|
|
24
|
-
return (_jsx(FocusRing, { within: true, children: _jsx(StyledThumb, { mods: {
|
|
25
|
-
hovered: isHovered,
|
|
26
|
-
dragged: isDragging,
|
|
27
|
-
focused: isFocused,
|
|
28
|
-
disabled: isDisabled,
|
|
29
|
-
}, ...mergeProps(thumbProps, hoverProps), role: "presentation", children: _jsx(VisuallyHidden, { children: _jsx("input", { ref: ref, ...inputProps }, void 0) }, void 0) }, void 0) }, void 0));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license MIT
|
|
3
|
-
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-fcfd265
|
|
5
|
-
* Released under the MIT license.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { tasty } from '../../../tasty';
|
|
9
|
-
export const StyledThumb = tasty({
|
|
10
|
-
styles: {
|
|
11
|
-
top: '2x',
|
|
12
|
-
width: '2x',
|
|
13
|
-
height: '2x',
|
|
14
|
-
fill: {
|
|
15
|
-
'': '#purple',
|
|
16
|
-
hovered: '#6B4FEE',
|
|
17
|
-
dragged: '#7A77FF',
|
|
18
|
-
disabled: '#dark-04',
|
|
19
|
-
},
|
|
20
|
-
cursor: {
|
|
21
|
-
hovered: 'pointer',
|
|
22
|
-
dragged: 'grab',
|
|
23
|
-
},
|
|
24
|
-
shadow: '0px 2px 4px rgba(20, 20, 70, 0.2)',
|
|
25
|
-
radius: '50%',
|
|
26
|
-
border: {
|
|
27
|
-
focused: '3px solid #CAC9FF',
|
|
28
|
-
dragged: '2px solid #665DE8;',
|
|
29
|
-
},
|
|
30
|
-
boxSizing: {
|
|
31
|
-
'': 'border-box',
|
|
32
|
-
focused: 'content-box',
|
|
33
|
-
dragged: 'border-box',
|
|
34
|
-
},
|
|
35
|
-
transition: 'theme',
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
export const StyledSlide = tasty({
|
|
39
|
-
styles: {
|
|
40
|
-
top: '1.875x',
|
|
41
|
-
position: 'absolute',
|
|
42
|
-
fill: {
|
|
43
|
-
'': '#dark-05',
|
|
44
|
-
// disabled: '#dark-04',
|
|
45
|
-
},
|
|
46
|
-
height: '2px',
|
|
47
|
-
width: '100%',
|
|
48
|
-
radius: true,
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
export const StyledSlideTrack = tasty({
|
|
52
|
-
styles: {
|
|
53
|
-
position: 'absolute',
|
|
54
|
-
'@start-range': {
|
|
55
|
-
'': '@thumb-0-value',
|
|
56
|
-
single: '0',
|
|
57
|
-
},
|
|
58
|
-
'@end-range': {
|
|
59
|
-
'': '(1 - @thumb-1-value)',
|
|
60
|
-
single: '(1 - @thumb-0-value)',
|
|
61
|
-
},
|
|
62
|
-
left: '(@start-range * 100%)',
|
|
63
|
-
right: '(@end-range * 100%)',
|
|
64
|
-
height: '2px',
|
|
65
|
-
fill: {
|
|
66
|
-
'': '#purple',
|
|
67
|
-
disabled: '#dark-04',
|
|
68
|
-
},
|
|
69
|
-
radius: true,
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
export const StyledGradation = tasty({
|
|
73
|
-
styles: {},
|
|
74
|
-
});
|
|
75
|
-
export const StyledGrade = tasty({
|
|
76
|
-
styles: {},
|
|
77
|
-
});
|
|
78
|
-
export const StyledControls = tasty({
|
|
79
|
-
styles: {
|
|
80
|
-
position: 'relative',
|
|
81
|
-
width: '100% - 2x',
|
|
82
|
-
height: '4x',
|
|
83
|
-
},
|
|
84
|
-
});
|
|
85
|
-
export const StyledSlider = tasty({
|
|
86
|
-
as: 'section',
|
|
87
|
-
styles: {
|
|
88
|
-
position: 'relative',
|
|
89
|
-
display: 'flex',
|
|
90
|
-
gap: {
|
|
91
|
-
'': '0',
|
|
92
|
-
inputs: '1x',
|
|
93
|
-
},
|
|
94
|
-
flexDirection: {
|
|
95
|
-
'': 'column',
|
|
96
|
-
inputs: 'row',
|
|
97
|
-
},
|
|
98
|
-
alignItems: 'center',
|
|
99
|
-
width: '100%',
|
|
100
|
-
padding: {
|
|
101
|
-
'': '0',
|
|
102
|
-
sideLabel: '0.75x top',
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
export const StyledContent = tasty({
|
|
107
|
-
styles: {
|
|
108
|
-
display: 'flex',
|
|
109
|
-
alignItems: 'center',
|
|
110
|
-
flexDirection: 'column',
|
|
111
|
-
width: '100%',
|
|
112
|
-
},
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SliderState } from '@react-stately/slider';
|
|
3
|
-
export declare type GradationProps = {
|
|
4
|
-
state: SliderState;
|
|
5
|
-
ranges: number[];
|
|
6
|
-
values?: string[];
|
|
7
|
-
};
|
|
8
|
-
export declare function Gradation(props: GradationProps): JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function Header(): null;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SliderState } from '@react-stately/slider';
|
|
3
|
-
import { CubeNumberInputProps } from '../../forms';
|
|
4
|
-
export interface RangeInputProps extends CubeNumberInputProps {
|
|
5
|
-
index: number;
|
|
6
|
-
state: SliderState;
|
|
7
|
-
min?: number;
|
|
8
|
-
max?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare function RangeInput(props: RangeInputProps): JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormFieldProps } from '../../../shared';
|
|
3
|
-
import { BasePropsWithoutChildren, BlockStyleProps, OuterStyleProps, Styles } from '../../../tasty';
|
|
4
|
-
import type { AriaSliderProps, SliderProps } from '@react-types/slider';
|
|
5
|
-
declare type SliderValue = number[];
|
|
6
|
-
export interface CubeRangeSliderProps extends AriaSliderProps<SliderValue>, SliderProps<SliderValue>, BasePropsWithoutChildren, OuterStyleProps, FormFieldProps, BlockStyleProps {
|
|
7
|
-
showInput?: boolean;
|
|
8
|
-
inputSuffix?: string;
|
|
9
|
-
inputSuffixPosition?: 'before' | 'after';
|
|
10
|
-
inputStyles?: Styles;
|
|
11
|
-
isLoading?: boolean;
|
|
12
|
-
gradation?: string[];
|
|
13
|
-
onChange?: (range: SliderValue) => void;
|
|
14
|
-
onChangeEnd?: (range: SliderValue) => void;
|
|
15
|
-
}
|
|
16
|
-
declare const __RangeSlider: import("react").ForwardRefExoticComponent<CubeRangeSliderProps & import("react").RefAttributes<import("@react-types/shared").DOMRefValue<HTMLDivElement>>> & {
|
|
17
|
-
cubeInputType: string;
|
|
18
|
-
};
|
|
19
|
-
export { __RangeSlider as RangeSlider };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SliderState } from '@react-stately/slider';
|
|
3
|
-
export declare type SlideProps = {
|
|
4
|
-
state: SliderState;
|
|
5
|
-
ranges: number[];
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
isSingle?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function Slide(props: SlideProps): JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AriaSliderThumbOptions } from '@react-aria/slider';
|
|
3
|
-
import { SliderState } from '@react-stately/slider';
|
|
4
|
-
export interface ThumbProps extends AriaSliderThumbOptions {
|
|
5
|
-
state: SliderState;
|
|
6
|
-
defaultValue?: number;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function Thumb(props: ThumbProps): JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const StyledThumb: any;
|
|
2
|
-
export declare const StyledSlide: any;
|
|
3
|
-
export declare const StyledSlideTrack: any;
|
|
4
|
-
export declare const StyledGradation: any;
|
|
5
|
-
export declare const StyledGrade: any;
|
|
6
|
-
export declare const StyledControls: any;
|
|
7
|
-
export declare const StyledSlider: any;
|
|
8
|
-
export declare const StyledContent: any;
|