@cube-dev/ui-kit 0.0.0-canary-67120ec → 0.0.0-canary-3443cc5
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 +2 -6
- package/cjs/_internal/hooks/use-deprecation-warning.js +2 -6
- package/cjs/_internal/index.js +2 -6
- package/cjs/components/Base.js +2 -2
- package/cjs/components/Block.js +2 -2
- package/cjs/components/GlobalStyles.js +1 -1
- package/cjs/components/GridProvider.js +3 -7
- package/cjs/components/HiddenInput.js +1 -1
- package/cjs/components/OpenTrasition.js +2 -2
- package/cjs/components/Root.js +2 -2
- package/cjs/components/actions/Action.js +2 -2
- package/cjs/components/actions/Button/Button.js +2 -2
- package/cjs/components/actions/Button/Submit.js +2 -2
- package/cjs/components/actions/Button/index.js +2 -6
- package/cjs/components/actions/ButtonGroup/ButtonGroup.js +2 -2
- package/cjs/components/actions/index.js +2 -6
- package/cjs/components/content/ActiveZone/ActiveZone.js +2 -2
- package/cjs/components/content/Alert/Alert.js +2 -2
- package/cjs/components/content/Alert/index.js +2 -6
- 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 +2 -2
- package/cjs/components/content/Badge/Badge.js +2 -2
- package/cjs/components/content/Card/Card.js +2 -2
- package/cjs/components/content/Content.js +2 -2
- package/cjs/components/content/CopySnippet/CopySnippet.js +5 -5
- package/cjs/components/content/CopySnippet/index.js +2 -6
- package/cjs/components/content/Divider.js +2 -2
- package/cjs/components/content/Footer.js +2 -2
- package/cjs/components/content/Header.js +2 -2
- package/cjs/components/content/Paragraph.js +2 -2
- package/cjs/components/content/Placeholder/Placeholder.js +2 -2
- package/cjs/components/content/PrismCode/PrismCode.js +2 -2
- package/cjs/components/content/Result/Result.js +3 -3
- package/cjs/components/content/Skeleton/Skeleton.js +12 -12
- package/cjs/components/content/Tag/Tag.js +3 -3
- package/cjs/components/content/Text.js +8 -8
- package/cjs/components/content/Title.js +4 -4
- package/cjs/components/forms/Checkbox/Checkbox.js +7 -7
- package/cjs/components/forms/Checkbox/CheckboxGroup.js +3 -3
- package/cjs/components/forms/Checkbox/context.js +1 -1
- package/cjs/components/forms/FieldWrapper.js +4 -4
- package/cjs/components/forms/FileInput/FileInput.js +3 -3
- package/cjs/components/forms/Form/Field.js +2 -2
- package/cjs/components/forms/Form/Form.js +2 -2
- package/cjs/components/forms/Form/index.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 +2 -2
- package/cjs/components/forms/Input/index.js +2 -6
- package/cjs/components/forms/Label.js +4 -4
- package/cjs/components/forms/NumberInput/NumberInput.js +2 -2
- package/cjs/components/forms/NumberInput/StepButton.js +3 -3
- package/cjs/components/forms/PasswordInput/PasswordInput.js +3 -3
- package/cjs/components/forms/RadioGroup/Radio.js +6 -6
- package/cjs/components/forms/RadioGroup/RadioGroup.js +3 -3
- package/cjs/components/forms/RadioGroup/context.js +1 -1
- package/cjs/components/forms/SearchInput/SearchInput.js +3 -3
- package/cjs/components/forms/Switch/Switch.js +5 -5
- package/cjs/components/forms/TextArea/TextArea.js +2 -2
- package/cjs/components/forms/TextInput/TextInput.js +2 -2
- package/cjs/components/forms/TextInput/TextInputBase.js +5 -5
- package/cjs/components/forms/index.js +2 -6
- package/cjs/components/layout/Flex.js +2 -2
- package/cjs/components/layout/Flow.js +2 -2
- package/cjs/components/layout/Grid.js +2 -2
- package/cjs/components/layout/Prefix.js +2 -2
- package/cjs/components/layout/Space.js +2 -2
- package/cjs/components/layout/Suffix.js +2 -2
- package/cjs/components/navigation/LegacyTabs/LegacyTabs.js +4 -4
- package/cjs/components/navigation/Link/Link.js +2 -2
- package/cjs/components/organisms/FileTabs/FileTabs.js +4 -4
- package/cjs/components/organisms/Modal/Modal.js +3 -3
- package/cjs/components/organisms/StatsCard/StatsCard.js +2 -2
- package/cjs/components/other/Base64Upload/Base64Upload.js +2 -2
- package/cjs/components/other/CloudLogo/CloudLogo.js +2 -2
- package/cjs/components/overlays/AlertDialog/AlertDialog.js +8 -8
- package/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +2 -2
- package/cjs/components/overlays/AlertDialog/AlertDialogZone.js +2 -2
- package/cjs/components/overlays/AlertDialog/index.js +2 -6
- 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 +2 -2
- package/cjs/components/overlays/Dialog/DialogForm.js +3 -3
- package/cjs/components/overlays/Dialog/DialogTrigger.js +8 -8
- package/cjs/components/overlays/Dialog/context.js +1 -1
- package/cjs/components/overlays/Dialog/index.js +2 -6
- package/cjs/components/overlays/Modal/Modal.js +3 -3
- package/cjs/components/overlays/Modal/OpenTransition.js +2 -2
- package/cjs/components/overlays/Modal/Overlay.js +2 -2
- package/cjs/components/overlays/Modal/Popover.js +3 -3
- package/cjs/components/overlays/Modal/Tray.js +3 -3
- package/cjs/components/overlays/Modal/Underlay.js +2 -2
- package/cjs/components/overlays/Modal/index.js +1 -1
- package/cjs/components/overlays/Notification/Notification.js +2 -2
- package/cjs/components/overlays/OverlayWrapper.js +3 -3
- package/cjs/components/overlays/Tooltip/Tooltip.js +2 -2
- package/cjs/components/overlays/Tooltip/TooltipProvider.js +2 -2
- package/cjs/components/overlays/Tooltip/TooltipTrigger.js +4 -4
- package/cjs/components/overlays/Tooltip/context.js +1 -1
- package/cjs/components/pickers/ComboBox/ComboBox.js +6 -6
- package/cjs/components/pickers/Menu/Menu.js +3 -3
- package/cjs/components/pickers/Menu/MenuButton.js +4 -4
- package/cjs/components/pickers/Menu/MenuItem.js +3 -3
- package/cjs/components/pickers/Menu/MenuSection.js +3 -3
- package/cjs/components/pickers/Menu/MenuTrigger.js +6 -10
- package/cjs/components/pickers/Menu/context.js +2 -6
- package/cjs/components/pickers/Menu/styled.js +1 -1
- package/cjs/components/pickers/Select/Select.js +7 -7
- package/cjs/components/portal/Portal.js +2 -2
- package/cjs/components/portal/PortalProvider.js +1 -1
- package/cjs/components/portal/index.js +2 -6
- package/cjs/components/portal/storybook/templates/CustomRoot.js +2 -2
- package/cjs/components/portal/storybook/templates/PortalOrder.js +2 -2
- package/cjs/components/portal/storybook/templates/basic.js +2 -2
- package/cjs/components/portal/storybook/templates/index.js +2 -6
- package/cjs/components/portal/types.js +1 -1
- package/cjs/components/portal/usePortal.js +1 -1
- package/cjs/components/status/LoadingAnimation/LoadingAnimation.js +3 -3
- package/cjs/components/status/Spin/Spin.js +3 -3
- package/cjs/data/themes.js +1 -1
- package/cjs/index.js +2 -6
- package/cjs/provider.js +3 -3
- package/cjs/providers/StyleProvider.js +2 -2
- package/cjs/services/notification.js +2 -2
- package/cjs/shared/form.js +1 -1
- package/cjs/shared/index.js +2 -6
- package/cjs/stories/FormFieldArgs.js +1 -1
- package/cjs/stories/components/ConfirmDeletionDialogForm.js +3 -3
- package/cjs/stories/components/DialogFormApp.js +2 -2
- package/cjs/stories/components/StyledButton.js +2 -2
- package/cjs/stories/lists/baseProps.js +1 -1
- package/cjs/styled/index.js +2 -6
- package/cjs/styled/styled.js +5 -9
- package/cjs/tasty/index.js +2 -6
- package/cjs/tasty/providers/BreakpointsProvider.js +2 -2
- 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 +2 -6
- 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 +5 -9
- 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/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 +2 -6
- package/cjs/test/render.js +1 -1
- package/cjs/test/setup.js +1 -2
- package/cjs/test/utils/index.js +2 -6
- package/cjs/test/utils/wait.js +1 -1
- package/cjs/tokens.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 +3 -3
- 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 +2 -6
- 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-deprecation-warning.js +1 -1
- package/es/_internal/index.js +1 -1
- package/es/components/Base.js +2 -2
- package/es/components/Block.js +2 -2
- package/es/components/GlobalStyles.js +1 -1
- package/es/components/GridProvider.js +2 -2
- package/es/components/HiddenInput.js +1 -1
- package/es/components/OpenTrasition.js +2 -2
- package/es/components/Root.js +2 -2
- package/es/components/actions/Action.js +2 -2
- package/es/components/actions/Button/Button.js +2 -2
- 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 +2 -2
- package/es/components/content/Alert/Alert.js +2 -2
- 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 +2 -2
- package/es/components/content/Badge/Badge.js +2 -2
- package/es/components/content/Card/Card.js +2 -2
- package/es/components/content/Content.js +2 -2
- package/es/components/content/CopySnippet/CopySnippet.js +5 -5
- package/es/components/content/CopySnippet/index.js +1 -1
- package/es/components/content/Divider.js +2 -2
- package/es/components/content/Footer.js +2 -2
- package/es/components/content/Header.js +2 -2
- package/es/components/content/Paragraph.js +2 -2
- package/es/components/content/Placeholder/Placeholder.js +2 -2
- package/es/components/content/PrismCode/PrismCode.js +2 -2
- package/es/components/content/Result/Result.js +3 -3
- package/es/components/content/Skeleton/Skeleton.js +12 -12
- package/es/components/content/Tag/Tag.js +3 -3
- package/es/components/content/Text.js +8 -8
- package/es/components/content/Title.js +4 -4
- package/es/components/forms/Checkbox/Checkbox.js +7 -7
- package/es/components/forms/Checkbox/CheckboxGroup.js +3 -3
- package/es/components/forms/Checkbox/context.js +1 -1
- package/es/components/forms/FieldWrapper.js +4 -4
- package/es/components/forms/FileInput/FileInput.js +3 -3
- package/es/components/forms/Form/Field.js +2 -2
- package/es/components/forms/Form/Form.js +2 -2
- package/es/components/forms/Form/index.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 +2 -2
- package/es/components/forms/Input/index.js +1 -1
- package/es/components/forms/Label.js +4 -4
- package/es/components/forms/NumberInput/NumberInput.js +2 -2
- package/es/components/forms/NumberInput/StepButton.js +3 -3
- package/es/components/forms/PasswordInput/PasswordInput.js +3 -3
- package/es/components/forms/RadioGroup/Radio.js +6 -6
- package/es/components/forms/RadioGroup/RadioGroup.js +3 -3
- package/es/components/forms/RadioGroup/context.js +1 -1
- package/es/components/forms/SearchInput/SearchInput.js +3 -3
- package/es/components/forms/Switch/Switch.js +5 -5
- package/es/components/forms/TextArea/TextArea.js +2 -2
- package/es/components/forms/TextInput/TextInput.js +2 -2
- package/es/components/forms/TextInput/TextInputBase.js +5 -5
- package/es/components/forms/index.js +1 -1
- package/es/components/layout/Flex.js +2 -2
- package/es/components/layout/Flow.js +2 -2
- package/es/components/layout/Grid.js +2 -2
- package/es/components/layout/Prefix.js +2 -2
- package/es/components/layout/Space.js +2 -2
- package/es/components/layout/Suffix.js +2 -2
- package/es/components/navigation/LegacyTabs/LegacyTabs.js +4 -4
- package/es/components/navigation/Link/Link.js +2 -2
- package/es/components/organisms/FileTabs/FileTabs.js +4 -4
- package/es/components/organisms/Modal/Modal.js +3 -3
- package/es/components/organisms/StatsCard/StatsCard.js +2 -2
- package/es/components/other/Base64Upload/Base64Upload.js +2 -2
- package/es/components/other/CloudLogo/CloudLogo.js +2 -2
- package/es/components/overlays/AlertDialog/AlertDialog.js +8 -8
- package/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +2 -2
- package/es/components/overlays/AlertDialog/AlertDialogZone.js +2 -2
- 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 +2 -2
- package/es/components/overlays/Dialog/DialogForm.js +3 -3
- package/es/components/overlays/Dialog/DialogTrigger.js +8 -8
- 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 +3 -3
- package/es/components/overlays/Modal/OpenTransition.js +2 -2
- package/es/components/overlays/Modal/Overlay.js +2 -2
- package/es/components/overlays/Modal/Popover.js +3 -3
- package/es/components/overlays/Modal/Tray.js +3 -3
- package/es/components/overlays/Modal/Underlay.js +2 -2
- package/es/components/overlays/Modal/index.js +1 -1
- package/es/components/overlays/Notification/Notification.js +2 -2
- package/es/components/overlays/OverlayWrapper.js +3 -3
- package/es/components/overlays/Tooltip/Tooltip.js +2 -2
- package/es/components/overlays/Tooltip/TooltipProvider.js +2 -2
- package/es/components/overlays/Tooltip/TooltipTrigger.js +4 -4
- package/es/components/overlays/Tooltip/context.js +1 -1
- package/es/components/pickers/ComboBox/ComboBox.js +6 -6
- package/es/components/pickers/Menu/Menu.js +3 -3
- package/es/components/pickers/Menu/MenuButton.js +4 -4
- package/es/components/pickers/Menu/MenuItem.js +3 -3
- package/es/components/pickers/Menu/MenuSection.js +3 -3
- package/es/components/pickers/Menu/MenuTrigger.js +5 -5
- package/es/components/pickers/Menu/context.js +1 -1
- package/es/components/pickers/Menu/styled.js +1 -1
- package/es/components/pickers/Select/Select.js +7 -7
- package/es/components/portal/Portal.js +2 -2
- package/es/components/portal/PortalProvider.js +1 -1
- package/es/components/portal/index.js +1 -1
- package/es/components/portal/storybook/templates/CustomRoot.js +2 -2
- package/es/components/portal/storybook/templates/PortalOrder.js +2 -2
- 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 +3 -3
- package/es/components/status/Spin/Spin.js +3 -3
- package/es/data/themes.js +1 -1
- package/es/index.js +1 -1
- package/es/provider.js +3 -3
- package/es/providers/StyleProvider.js +2 -2
- 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 +1 -1
- package/es/stories/components/ConfirmDeletionDialogForm.js +3 -3
- package/es/stories/components/DialogFormApp.js +2 -2
- package/es/stories/components/StyledButton.js +2 -2
- package/es/stories/lists/baseProps.js +1 -1
- package/es/styled/index.js +1 -1
- package/es/styled/styled.js +4 -4
- package/es/tasty/index.js +1 -1
- package/es/tasty/providers/BreakpointsProvider.js +2 -2
- 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 +4 -4
- 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/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 -2
- package/es/test/utils/index.js +1 -1
- package/es/test/utils/wait.js +1 -1
- package/es/tokens.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 +3 -3
- 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/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 +44 -44
- package/types/components/pickers/Menu/styled.d.ts +2 -2
- package/types/stories/components/StyledButton.d.ts +1 -1
- package/types/tasty/utils/styles.d.ts +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ const ContentElement = tasty({
|
|
|
27
27
|
export const Content = forwardRef((props, ref) => {
|
|
28
28
|
props = useSlotProps(props, 'content');
|
|
29
29
|
const styles = extractStyles(props, STYLE_LIST);
|
|
30
|
-
return (_jsx(ContentElement, { ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }));
|
|
30
|
+
return (_jsx(ContentElement, { ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }, void 0));
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -81,7 +81,7 @@ const CopySnippetElement = tasty(Card, {
|
|
|
81
81
|
});
|
|
82
82
|
const CopyButton = tasty(Button, {
|
|
83
83
|
type: 'clear',
|
|
84
|
-
icon: _jsx(CopyOutlined, {}),
|
|
84
|
+
icon: _jsx(CopyOutlined, {}, void 0),
|
|
85
85
|
styles: {
|
|
86
86
|
padding: '1x 1.5x',
|
|
87
87
|
fontWeight: 500,
|
|
@@ -127,12 +127,12 @@ export function CopySnippet(allProps) {
|
|
|
127
127
|
multiline,
|
|
128
128
|
scroll: showScroll,
|
|
129
129
|
serif,
|
|
130
|
-
}, styles: { padding }, children: _jsx(PrismCode, { style: { margin: 0, overflow: 'visible' }, code: formattedCode, language: language || 'javascript' }) }), _jsx(ButtonContainer, { styles: { padding }, mods: { overlay: showOverlay }, children: _jsx(CopyButton, { label: `Copy ${codeTitle}`, mods: {
|
|
130
|
+
}, styles: { padding }, children: _jsx(PrismCode, { style: { margin: 0, overflow: 'visible' }, code: formattedCode, language: language || 'javascript' }, void 0) }, void 0), _jsx(ButtonContainer, { styles: { padding }, mods: { overlay: showOverlay }, children: _jsx(CopyButton, { label: `Copy ${codeTitle}`, mods: {
|
|
131
131
|
multiline,
|
|
132
132
|
'with-scroll': showScroll,
|
|
133
|
-
}, onPress: onCopy }) })] }) }));
|
|
133
|
+
}, onPress: onCopy }, void 0) }, void 0)] }, void 0) }, void 0));
|
|
134
134
|
if (showTooltip) {
|
|
135
|
-
return (_jsxs(TooltipTrigger, { children: [_jsx(ActionElement, { children: Snippet }), _jsx(Tooltip, { children: formattedCode })] }));
|
|
135
|
+
return (_jsxs(TooltipTrigger, { children: [_jsx(ActionElement, { children: Snippet }, void 0), _jsx(Tooltip, { children: formattedCode }, void 0)] }, void 0));
|
|
136
136
|
}
|
|
137
137
|
return Snippet;
|
|
138
138
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -42,7 +42,7 @@ export const Divider = forwardRef((props, ref) => {
|
|
|
42
42
|
return (_jsx(DividerElement, { as: children ? 'div' : 'hr', role: children ? 'separator' : undefined, mods: {
|
|
43
43
|
text: !!children,
|
|
44
44
|
...mods,
|
|
45
|
-
}, ...filterBaseProps(otherProps, { eventProps: true }), styles: styles, ref: ref, children: children && (_jsxs(_Fragment, { children: [_jsx("div", { "data-element": "Line" }), _jsx("div", { children: children }), _jsx("div", { "data-element": "Line" })] })) }));
|
|
45
|
+
}, ...filterBaseProps(otherProps, { eventProps: true }), styles: styles, ref: ref, children: children && (_jsxs(_Fragment, { children: [_jsx("div", { "data-element": "Line" }, void 0), _jsx("div", { children: children }, void 0), _jsx("div", { "data-element": "Line" }, void 0)] }, void 0)) }, void 0));
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -22,7 +22,7 @@ const FooterElement = tasty({
|
|
|
22
22
|
export const Footer = forwardRef((props, ref) => {
|
|
23
23
|
props = useSlotProps(props, 'footer');
|
|
24
24
|
const styles = extractStyles(props, STYLE_LIST);
|
|
25
|
-
return (_jsx(FooterElement, { ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }));
|
|
25
|
+
return (_jsx(FooterElement, { ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }, void 0));
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -22,7 +22,7 @@ const HeaderElement = tasty({
|
|
|
22
22
|
export const Header = forwardRef((props, ref) => {
|
|
23
23
|
props = useSlotProps(props, 'header');
|
|
24
24
|
const styles = extractStyles(props, STYLE_LIST);
|
|
25
|
-
return (_jsx(HeaderElement, { ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }));
|
|
25
|
+
return (_jsx(HeaderElement, { ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }, void 0));
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ const DEFAULT_STYLES = {
|
|
|
17
17
|
const STYLE_PROPS = [...CONTAINER_STYLES, ...TEXT_STYLES];
|
|
18
18
|
export const Paragraph = forwardRef((props, ref) => {
|
|
19
19
|
const styles = extractStyles(props, STYLE_PROPS, DEFAULT_STYLES);
|
|
20
|
-
return _jsx(Text, { as: "p", qa: "Paragraph", ...props, styles: styles, ref: ref });
|
|
20
|
+
return _jsx(Text, { as: "p", qa: "Paragraph", ...props, styles: styles, ref: ref }, void 0);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -55,7 +55,7 @@ export const Placeholder = forwardRef((allProps, ref) => {
|
|
|
55
55
|
width: circle ? size : false,
|
|
56
56
|
radius: circle ? '9999rem' : '1r',
|
|
57
57
|
...styles,
|
|
58
|
-
}, ref: ref }));
|
|
58
|
+
}, ref: ref }, void 0));
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ function PrismCode(props, ref) {
|
|
|
26
26
|
useEffect(() => {
|
|
27
27
|
Prism.highlightAll();
|
|
28
28
|
});
|
|
29
|
-
return (_jsx(PreElement, { ref: ref, className: "cube-prism-code", ...otherProps, children: _jsx("code", { "data-element": "Code", className: `language-${language}`, children: code }) }));
|
|
29
|
+
return (_jsx(PreElement, { ref: ref, className: "cube-prism-code", ...otherProps, children: _jsx("code", { "data-element": "Code", className: `language-${language}`, children: code }, void 0) }, void 0));
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Code block with syntax highlighting
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -89,10 +89,10 @@ function Result(props, ref) {
|
|
|
89
89
|
const { color, component: Component } = status && statusIconMap.hasOwnProperty(status)
|
|
90
90
|
? statusIconMap[status]
|
|
91
91
|
: statusIconMap.info;
|
|
92
|
-
return (_jsx(IconWrapper, { "data-element": "IconWrapper", styles: { color }, children: _jsx(Component, { "data-element": "Icon" }) }));
|
|
92
|
+
return (_jsx(IconWrapper, { "data-element": "IconWrapper", styles: { color }, children: _jsx(Component, { "data-element": "Icon" }, void 0) }, void 0));
|
|
93
93
|
}, [icon, status]);
|
|
94
94
|
const styles = extractStyles(otherProps, CONTAINER_STYLES);
|
|
95
|
-
return (_jsxs(Container, { ...filterBaseProps(otherProps, { eventProps: true }), ref: ref, styles: styles, children: [iconNode, (title || subtitle) && (_jsxs("div", { "data-element": "Title", children: [wrapNodeIfPlain(title, () => (_jsx(Title, { level: 2, preset: "h4", children: title }))), wrapNodeIfPlain(subtitle, () => (_jsx(Title, { level: 3, preset: "h5m", children: subtitle })))] })), children && _jsx("div", { "data-element": "Content", children: children })] }));
|
|
95
|
+
return (_jsxs(Container, { ...filterBaseProps(otherProps, { eventProps: true }), ref: ref, styles: styles, children: [iconNode, (title || subtitle) && (_jsxs("div", { "data-element": "Title", children: [wrapNodeIfPlain(title, () => (_jsx(Title, { level: 2, preset: "h4", children: title }, void 0))), wrapNodeIfPlain(subtitle, () => (_jsx(Title, { level: 3, preset: "h5m", children: subtitle }, void 0)))] }, void 0)), children && _jsx("div", { "data-element": "Content", children: children }, void 0)] }, void 0));
|
|
96
96
|
}
|
|
97
97
|
const _Result = forwardRef(Result);
|
|
98
98
|
export { _Result as Result };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -12,37 +12,37 @@ import { Space } from '../../layout/Space';
|
|
|
12
12
|
import { Grid } from '../../layout/Grid';
|
|
13
13
|
const LAYOUT_MAP = {
|
|
14
14
|
page({ lines, children, ...props }) {
|
|
15
|
-
return (_jsxs(Flow, { gap: "4x", ...props, children: [_jsxs(Space, { placeContent: "space-between", children: [_jsx(Placeholder, { width: "100px 25% 300px" }), _jsx(Placeholder, { width: "50px 10% 150px" })] }), _jsx(Flow, { gap: "2x", children: children ||
|
|
15
|
+
return (_jsxs(Flow, { gap: "4x", ...props, children: [_jsxs(Space, { placeContent: "space-between", children: [_jsx(Placeholder, { width: "100px 25% 300px" }, void 0), _jsx(Placeholder, { width: "50px 10% 150px" }, void 0)] }, void 0), _jsx(Flow, { gap: "2x", children: children ||
|
|
16
16
|
Array(lines || 5)
|
|
17
17
|
.fill(0)
|
|
18
|
-
.map((item, i) => _jsx(Placeholder, {}, i)) })] }));
|
|
18
|
+
.map((item, i) => _jsx(Placeholder, {}, i)) }, void 0)] }, void 0));
|
|
19
19
|
},
|
|
20
20
|
content({ children, lines, ...props }) {
|
|
21
21
|
return (_jsx(Flow, { gap: "2x", ...props, children: children ||
|
|
22
22
|
Array(lines || 5)
|
|
23
23
|
.fill(0)
|
|
24
|
-
.map((item, i) => _jsx(Placeholder, {}, i)) }));
|
|
24
|
+
.map((item, i) => _jsx(Placeholder, {}, i)) }, void 0));
|
|
25
25
|
},
|
|
26
26
|
topbar(props) {
|
|
27
|
-
return (_jsxs(Space, { gap: "4x", placeContent: "space-between", height: "6x", padding: "1x", border: "bottom", ...props, children: [_jsxs(Space, { children: [_jsx(Placeholder, { circle: true, size: "4x" }), _jsx(Placeholder, { width: "20x" })] }), _jsxs(Space, { children: [_jsx(Placeholder, { width: "10x" }), _jsx(Placeholder, { circle: true, size: "4x" })] })] }));
|
|
27
|
+
return (_jsxs(Space, { gap: "4x", placeContent: "space-between", height: "6x", padding: "1x", border: "bottom", ...props, children: [_jsxs(Space, { children: [_jsx(Placeholder, { circle: true, size: "4x" }, void 0), _jsx(Placeholder, { width: "20x" }, void 0)] }, void 0), _jsxs(Space, { children: [_jsx(Placeholder, { width: "10x" }, void 0), _jsx(Placeholder, { circle: true, size: "4x" }, void 0)] }, void 0)] }, void 0));
|
|
28
28
|
},
|
|
29
29
|
menu({ lines, ...props }) {
|
|
30
30
|
return (_jsx(Flow, { gap: "3.25x", ...props, padding: "3x 1x", children: Array(lines || 5)
|
|
31
31
|
.fill(0)
|
|
32
|
-
.map((item, i) => (_jsx(Placeholder, {}, i))) }));
|
|
32
|
+
.map((item, i) => (_jsx(Placeholder, {}, i))) }, void 0));
|
|
33
33
|
},
|
|
34
34
|
stats({ cards, ...props }) {
|
|
35
35
|
return (_jsx(Space, { gap: "4x", ...props, children: Array(cards || 3)
|
|
36
36
|
.fill(0)
|
|
37
|
-
.map((item, i) => (_jsx(Placeholder, { radius: "1x", width: "20x", height: "12x", flexGrow: 1 }, i))) }));
|
|
37
|
+
.map((item, i) => (_jsx(Placeholder, { radius: "1x", width: "20x", height: "12x", flexGrow: 1 }, i))) }, void 0));
|
|
38
38
|
},
|
|
39
39
|
tabs({ tabs, children, lines, ...props }) {
|
|
40
40
|
return (_jsxs(Flow, { gap: "4x", ...props, children: [_jsx(Space, { children: Array(tabs || 3)
|
|
41
41
|
.fill(0)
|
|
42
|
-
.map((item, i) => (_jsx(Placeholder, { width: "15x" }, i))) }), _jsx(Flow, { gap: "2x", children: children ||
|
|
42
|
+
.map((item, i) => (_jsx(Placeholder, { width: "15x" }, i))) }, void 0), _jsx(Flow, { gap: "2x", children: children ||
|
|
43
43
|
Array(lines || 5)
|
|
44
44
|
.fill(0)
|
|
45
|
-
.map((item, i) => _jsx(Placeholder, {}, i)) })] }));
|
|
45
|
+
.map((item, i) => _jsx(Placeholder, {}, i)) }, void 0)] }, void 0));
|
|
46
46
|
},
|
|
47
47
|
table({ rows, columns, ...props }) {
|
|
48
48
|
columns = columns || 5;
|
|
@@ -55,7 +55,7 @@ const LAYOUT_MAP = {
|
|
|
55
55
|
.map((item, j) => {
|
|
56
56
|
return (_jsx(Placeholder, { size: !i ? '3x' : '2x' }, `${i}.${j}`));
|
|
57
57
|
});
|
|
58
|
-
}) }));
|
|
58
|
+
}) }, void 0));
|
|
59
59
|
},
|
|
60
60
|
chart({ columns, ...props }) {
|
|
61
61
|
columns = columns || 12;
|
|
@@ -64,12 +64,12 @@ const LAYOUT_MAP = {
|
|
|
64
64
|
.fill(0)
|
|
65
65
|
.map((item, i) => {
|
|
66
66
|
return (_jsx(Placeholder, { height: `${heightMap[i % 12] * 10}%`, width: "max 6x" }, i));
|
|
67
|
-
}) }));
|
|
67
|
+
}) }, void 0));
|
|
68
68
|
},
|
|
69
69
|
};
|
|
70
70
|
export function Skeleton({ layout, ...props }) {
|
|
71
71
|
layout = layout || 'page';
|
|
72
|
-
return LAYOUT_MAP[layout] ? (LAYOUT_MAP[layout]({ ...props, qa: 'Skeleton' })) : (_jsx(Placeholder, { ...props }));
|
|
72
|
+
return LAYOUT_MAP[layout] ? (LAYOUT_MAP[layout]({ ...props, qa: 'Skeleton' })) : (_jsx(Placeholder, { ...props }, void 0));
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -78,9 +78,9 @@ const CloseAction = tasty(Action, {
|
|
|
78
78
|
const Tag = (allProps, ref) => {
|
|
79
79
|
let { type, isClosable, onClose, closeButtonStyles, children, ...props } = allProps;
|
|
80
80
|
const styles = extractStyles(props, CONTAINER_STYLES);
|
|
81
|
-
return (_jsxs(TagElement, { ...filterBaseProps(props, { eventProps: true }), styles: styles, "data-type": type, mods: { closable: isClosable }, ref: ref, children: [_jsx("div", { "data-element": "Content", children: children }), isClosable ? (_jsx(Suffix, { outerGap: "0", children: _jsx(CloseAction, { styles: closeButtonStyles, onPress: onClose, children: _jsx(CloseOutlined, { style: {
|
|
81
|
+
return (_jsxs(TagElement, { ...filterBaseProps(props, { eventProps: true }), styles: styles, "data-type": type, mods: { closable: isClosable }, ref: ref, children: [_jsx("div", { "data-element": "Content", children: children }, void 0), isClosable ? (_jsx(Suffix, { outerGap: "0", children: _jsx(CloseAction, { styles: closeButtonStyles, onPress: onClose, children: _jsx(CloseOutlined, { style: {
|
|
82
82
|
fontSize: 'calc(var(--font-size) - (var(--border-width) * 2))',
|
|
83
|
-
} }) }) })) : undefined] }));
|
|
83
|
+
} }, void 0) }, void 0) }, void 0)) : undefined] }, void 0));
|
|
84
84
|
};
|
|
85
85
|
const _Tag = forwardRef(Tag);
|
|
86
86
|
export { _Tag as Tag };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -49,26 +49,26 @@ const _Text = forwardRef(function Text(allProps, ref) {
|
|
|
49
49
|
return (_jsx(TextElement, { as: as || 'span', qa: qa || 'Text', styleName: styleName, mods: {
|
|
50
50
|
nowrap,
|
|
51
51
|
ellipsis,
|
|
52
|
-
}, block: !!(block || ellipsis), ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }));
|
|
52
|
+
}, block: !!(block || ellipsis), ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }, void 0));
|
|
53
53
|
});
|
|
54
54
|
const Text = Object.assign(_Text, {
|
|
55
55
|
Minor: forwardRef(function MinorText(props, ref) {
|
|
56
|
-
return _jsx(_Text, { ref: ref, color: "#minor", ...props });
|
|
56
|
+
return _jsx(_Text, { ref: ref, color: "#minor", ...props }, void 0);
|
|
57
57
|
}),
|
|
58
58
|
Danger: forwardRef(function DangerText(props, ref) {
|
|
59
|
-
return _jsx(_Text, { role: "alert", ref: ref, color: "#danger-text", ...props });
|
|
59
|
+
return _jsx(_Text, { role: "alert", ref: ref, color: "#danger-text", ...props }, void 0);
|
|
60
60
|
}),
|
|
61
61
|
Success: forwardRef(function SuccessText(props, ref) {
|
|
62
|
-
return _jsx(_Text, { ref: ref, color: "#success-text", ...props });
|
|
62
|
+
return _jsx(_Text, { ref: ref, color: "#success-text", ...props }, void 0);
|
|
63
63
|
}),
|
|
64
64
|
Strong: forwardRef(function StrongText(props, ref) {
|
|
65
|
-
return (_jsx(_Text, { as: "strong", preset: "strong", ref: ref, color: "#dark", ...props }));
|
|
65
|
+
return (_jsx(_Text, { as: "strong", preset: "strong", ref: ref, color: "#dark", ...props }, void 0));
|
|
66
66
|
}),
|
|
67
67
|
Emphasis: forwardRef(function EmphasisText(props, ref) {
|
|
68
|
-
return _jsx(_Text, { as: "em", preset: "em", ref: ref, ...props });
|
|
68
|
+
return _jsx(_Text, { as: "em", preset: "em", ref: ref, ...props }, void 0);
|
|
69
69
|
}),
|
|
70
70
|
Selection: forwardRef(function SelectionText(props, ref) {
|
|
71
|
-
return _jsx(_Text, { ref: ref, color: "#dark", fill: "#note.30", ...props });
|
|
71
|
+
return _jsx(_Text, { ref: ref, color: "#dark", fill: "#note.30", ...props }, void 0);
|
|
72
72
|
}),
|
|
73
73
|
});
|
|
74
74
|
export { Text };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -44,14 +44,14 @@ const _Title = forwardRef(({ qa, as, styleName, inline, nowrap, ellipsis, level,
|
|
|
44
44
|
return (_jsx(TitleElement, { qa: qa || 'Title', as: as || tag, styleName: styleName, "data-level": level || 1, mods: {
|
|
45
45
|
nowrap,
|
|
46
46
|
ellipsis,
|
|
47
|
-
}, inline: inline, ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }));
|
|
47
|
+
}, inline: inline, ...filterBaseProps(props, { eventProps: true }), styles: styles, ref: ref }, void 0));
|
|
48
48
|
});
|
|
49
49
|
const Title = Object.assign(_Title, {
|
|
50
50
|
Danger: forwardRef(function DangerTitle(props, ref) {
|
|
51
|
-
return _jsx(Title, { ref: ref, color: "#danger-text", ...props });
|
|
51
|
+
return _jsx(Title, { ref: ref, color: "#danger-text", ...props }, void 0);
|
|
52
52
|
}),
|
|
53
53
|
Success: forwardRef(function SuccessTitle(props, ref) {
|
|
54
|
-
return _jsx(Title, { ref: ref, color: "#success-text", ...props });
|
|
54
|
+
return _jsx(Title, { ref: ref, color: "#success-text", ...props }, void 0);
|
|
55
55
|
}),
|
|
56
56
|
});
|
|
57
57
|
export { Title };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -22,8 +22,8 @@ import { FieldWrapper } from '../FieldWrapper';
|
|
|
22
22
|
import { CheckboxGroup } from './CheckboxGroup';
|
|
23
23
|
import { CheckboxGroupContext } from './context';
|
|
24
24
|
import { castNullableIsSelected, } from '../../../utils/react/nullableValue';
|
|
25
|
-
const CheckOutlined = () => (_jsx("svg", { width: "10", height: "8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M3.417 7.604l-.017.018-3.4-3.4 1.433-1.433 1.985 1.985L8.192 0l1.432 1.433-6.189 6.189-.018-.018z", fill: "currentColor" }) }));
|
|
26
|
-
const IndeterminateOutline = () => (_jsx("svg", { width: "9", height: "3", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M0 .044v2.001l.026.025h8.063V.044H0z", fill: "#fff" }) }));
|
|
25
|
+
const CheckOutlined = () => (_jsx("svg", { width: "10", height: "8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M3.417 7.604l-.017.018-3.4-3.4 1.433-1.433 1.985 1.985L8.192 0l1.432 1.433-6.189 6.189-.018-.018z", fill: "currentColor" }, void 0) }, void 0));
|
|
26
|
+
const IndeterminateOutline = () => (_jsx("svg", { width: "9", height: "3", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M0 .044v2.001l.026.025h8.063V.044H0z", fill: "#fff" }, void 0) }, void 0));
|
|
27
27
|
const CheckboxWrapperElement = tasty({
|
|
28
28
|
as: 'label',
|
|
29
29
|
qa: 'CheckboxWrapper',
|
|
@@ -107,7 +107,7 @@ function Checkbox(props, ref) {
|
|
|
107
107
|
validationState: originalProps.validationState,
|
|
108
108
|
}, groupState, inputRef) // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
109
109
|
: useCheckbox(props, useToggleState(props), inputRef);
|
|
110
|
-
let markIcon = isIndeterminate ? _jsx(IndeterminateOutline, {}) : _jsx(CheckOutlined, {});
|
|
110
|
+
let markIcon = isIndeterminate ? _jsx(IndeterminateOutline, {}, void 0) : _jsx(CheckOutlined, {}, void 0);
|
|
111
111
|
if (groupState) {
|
|
112
112
|
for (let key of ['isSelected', 'defaultSelected', 'isEmphasized']) {
|
|
113
113
|
if (originalProps[key] != null) {
|
|
@@ -127,7 +127,7 @@ function Checkbox(props, ref) {
|
|
|
127
127
|
hovered: isHovered,
|
|
128
128
|
focused: isFocused,
|
|
129
129
|
};
|
|
130
|
-
const checkboxField = (_jsxs(CheckboxWrapperElement, { isHidden: isHidden, mods: mods, styles: { position: 'relative' }, children: [_jsx(HiddenInput, { "data-qa": qa || 'Checkbox', ...mergeProps(inputProps, focusProps), ref: inputRef }), _jsx(CheckboxElement, { qa: "Checkbox", mods: mods, styles: inputStyles, children: markIcon })] }));
|
|
130
|
+
const checkboxField = (_jsxs(CheckboxWrapperElement, { isHidden: isHidden, mods: mods, styles: { position: 'relative' }, children: [_jsx(HiddenInput, { "data-qa": qa || 'Checkbox', ...mergeProps(inputProps, focusProps), ref: inputRef }, void 0), _jsx(CheckboxElement, { qa: "Checkbox", mods: mods, styles: inputStyles, children: markIcon }, void 0)] }, void 0));
|
|
131
131
|
if (insideForm && !groupState) {
|
|
132
132
|
return (_jsx(FieldWrapper, { ...{
|
|
133
133
|
as: 'label',
|
|
@@ -149,13 +149,13 @@ function Checkbox(props, ref) {
|
|
|
149
149
|
tooltip,
|
|
150
150
|
Component: checkboxField,
|
|
151
151
|
ref: domRef,
|
|
152
|
-
} }));
|
|
152
|
+
} }, void 0));
|
|
153
153
|
}
|
|
154
154
|
return (_jsxs(CheckboxWrapperElement, { as: "label", styles: styles, isHidden: isHidden, ...hoverProps, ...filterBaseProps(otherProps), ref: domRef, children: [checkboxField, label && (_jsx(Element, { styles: labelStyles, mods: {
|
|
155
155
|
invalid: validationState === 'invalid',
|
|
156
156
|
valid: validationState === 'valid',
|
|
157
157
|
disabled: isDisabled,
|
|
158
|
-
}, ...filterBaseProps(labelProps), children: label }))] }));
|
|
158
|
+
}, ...filterBaseProps(labelProps), children: label }, void 0))] }, void 0));
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
161
|
* Checkboxes allow users to select multiple items from a list of individual items,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -60,7 +60,7 @@ function CheckboxGroup(props, ref) {
|
|
|
60
60
|
}, children: _jsx(FormContext.Provider, { value: {
|
|
61
61
|
isDisabled,
|
|
62
62
|
validationState,
|
|
63
|
-
}, children: _jsx(CheckboxGroupContext.Provider, { value: state, children: children }) }) }));
|
|
63
|
+
}, children: _jsx(CheckboxGroupContext.Provider, { value: state, children: children }, void 0) }, void 0) }, void 0));
|
|
64
64
|
return (_jsx(FieldWrapper, { ...{
|
|
65
65
|
labelPosition,
|
|
66
66
|
label,
|
|
@@ -80,7 +80,7 @@ function CheckboxGroup(props, ref) {
|
|
|
80
80
|
tooltip,
|
|
81
81
|
Component: radioGroup,
|
|
82
82
|
ref: domRef,
|
|
83
|
-
} }));
|
|
83
|
+
} }, void 0));
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
86
|
* Checkbox groups allow users to select a single option from a list of mutually exclusive options.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -62,15 +62,15 @@ const MessageElement = tasty({
|
|
|
62
62
|
});
|
|
63
63
|
function FieldWrapper(props, ref) {
|
|
64
64
|
const { as, labelPosition, label, extra, styles, isRequired, isDisabled, labelStyles, necessityIndicator, labelProps, fieldProps, message, messageStyles, description, Component, validationState, requiredMark = true, tooltip, isHidden, } = props;
|
|
65
|
-
const labelComponent = label ? (_jsxs(Label, { as: as === 'label' ? 'div' : 'label', styles: labelStyles, labelPosition: labelPosition, isRequired: requiredMark ? isRequired : false, isDisabled: isDisabled, necessityIndicator: necessityIndicator, validationState: validationState, "aria-label": label, ...labelProps, children: [extra ? (_jsxs(Grid, { placeContent: "baseline space-between", flow: "column", children: [_jsx("div", { children: label }), _jsx(Text, { preset: "t3", children: extra })] })) : (label), tooltip ? (_jsxs(_Fragment, { children: ["\u00A0", _jsx(TooltipProvider, { title: tooltip, activeWrap: true, width: "initial max-content 40x", children: _jsx(InfoCircleOutlined, { style: { color: 'var(--primary-color)' } }) })] })) : null] })) : null;
|
|
66
|
-
let descriptionComponent = description ? (_jsx("div", { "data-element": "Description", children: wrapNodeIfPlain(description, () => (_jsx(Paragraph, { children: description }))) })) : null;
|
|
65
|
+
const labelComponent = label ? (_jsxs(Label, { as: as === 'label' ? 'div' : 'label', styles: labelStyles, labelPosition: labelPosition, isRequired: requiredMark ? isRequired : false, isDisabled: isDisabled, necessityIndicator: necessityIndicator, validationState: validationState, "aria-label": label, ...labelProps, children: [extra ? (_jsxs(Grid, { placeContent: "baseline space-between", flow: "column", children: [_jsx("div", { children: label }, void 0), _jsx(Text, { preset: "t3", children: extra }, void 0)] }, void 0)) : (label), tooltip ? (_jsxs(_Fragment, { children: ["\u00A0", _jsx(TooltipProvider, { title: tooltip, activeWrap: true, width: "initial max-content 40x", children: _jsx(InfoCircleOutlined, { style: { color: 'var(--primary-color)' } }, void 0) }, void 0)] }, void 0)) : null] }, void 0)) : null;
|
|
66
|
+
let descriptionComponent = description ? (_jsx("div", { "data-element": "Description", children: wrapNodeIfPlain(description, () => (_jsx(Paragraph, { children: description }, void 0))) }, void 0)) : null;
|
|
67
67
|
const mods = {
|
|
68
68
|
'has-sider': labelPosition === 'side',
|
|
69
69
|
'has-description': !!description,
|
|
70
70
|
invalid: validationState === 'invalid',
|
|
71
71
|
valid: validationState === 'valid',
|
|
72
72
|
};
|
|
73
|
-
return (_jsxs(FieldElement, { as: as || 'div', ref: ref, mods: mods, isHidden: isHidden, styles: styles, ...fieldProps, children: [labelComponent || descriptionComponent ? (_jsxs("div", { "data-element": "LabelArea", children: [labelComponent, descriptionComponent] })) : null, _jsxs("div", { "data-element": "InputArea", children: [Component, message && !isDisabled && (_jsx(MessageElement, { mods: mods, styles: messageStyles, role: validationState === 'invalid' ? 'alert' : undefined, children: message }))] })] }));
|
|
73
|
+
return (_jsxs(FieldElement, { as: as || 'div', ref: ref, mods: mods, isHidden: isHidden, styles: styles, ...fieldProps, children: [labelComponent || descriptionComponent ? (_jsxs("div", { "data-element": "LabelArea", children: [labelComponent, descriptionComponent] }, void 0)) : null, _jsxs("div", { "data-element": "InputArea", children: [Component, message && !isDisabled && (_jsx(MessageElement, { mods: mods, styles: messageStyles, role: validationState === 'invalid' ? 'alert' : undefined, children: message }, void 0))] }, void 0)] }, void 0));
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* A wrapper for form fields to provide additional decoration for inputs.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -113,7 +113,7 @@ function FileInput(props, ref) {
|
|
|
113
113
|
setDragHover(false);
|
|
114
114
|
}, onDrop: () => {
|
|
115
115
|
setDragHover(false);
|
|
116
|
-
} }), _jsx("div", { "data-element": "Button", children: "Choose file" }), _jsx("div", { "data-element": !!value ? 'Value' : 'Placeholder', children: value || placeholder || 'No file selected' })] }));
|
|
116
|
+
} }, void 0), _jsx("div", { "data-element": "Button", children: "Choose file" }, void 0), _jsx("div", { "data-element": !!value ? 'Value' : 'Placeholder', children: value || placeholder || 'No file selected' }, void 0)] }, void 0));
|
|
117
117
|
return (_jsx(FieldWrapper, { ...{
|
|
118
118
|
labelPosition,
|
|
119
119
|
label,
|
|
@@ -133,7 +133,7 @@ function FileInput(props, ref) {
|
|
|
133
133
|
isHidden,
|
|
134
134
|
Component: fileInput,
|
|
135
135
|
ref: domRef,
|
|
136
|
-
} }));
|
|
136
|
+
} }, void 0));
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
139
|
* FileInputs are file inputs that allow users to select local files to
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -130,7 +130,7 @@ export function Field(allProps) {
|
|
|
130
130
|
return null;
|
|
131
131
|
let child = Children.only(children);
|
|
132
132
|
if (nonInput) {
|
|
133
|
-
return (_jsx(FieldWrapper, { isHidden: isHidden, validationState: validationState, necessityIndicator: necessityIndicator, necessityLabel: necessityLabel, isRequired: isRequired, label: label, extra: extra, tooltip: tooltip, message: message, description: description, Component: child }));
|
|
133
|
+
return (_jsx(FieldWrapper, { isHidden: isHidden, validationState: validationState, necessityIndicator: necessityIndicator, necessityLabel: necessityLabel, isRequired: isRequired, label: label, extra: extra, tooltip: tooltip, message: message, description: description, Component: child }, void 0));
|
|
134
134
|
}
|
|
135
135
|
if (!fieldName) {
|
|
136
136
|
console.error('invalid form name:', fieldName);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -110,7 +110,7 @@ function Form(props, ref) {
|
|
|
110
110
|
}, [defaultValues]);
|
|
111
111
|
return (_jsx(FormElement, { ...filterBaseProps(otherProps, { propNames: formPropNames }), onSubmit: onSubmitCallback, noValidate: true, styles: styles, ref: domRef, mods: {
|
|
112
112
|
'has-sider': labelPosition === 'side',
|
|
113
|
-
}, children: _jsx(FormContext.Provider, { value: ctx, children: _jsx(Provider, { insideForm: true, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, validationState: validationState, children: children }) }) }));
|
|
113
|
+
}, children: _jsx(FormContext.Provider, { value: ctx, children: _jsx(Provider, { insideForm: true, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, validationState: validationState, children: children }, void 0) }, void 0) }, void 0));
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* Forms allow users to enter data that can be submitted while providing alignment and styling for form fields.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license MIT
|
|
3
3
|
* author: Cube Dev Team
|
|
4
|
-
* @cube-dev/ui-kit v0.0.0-canary-
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-3443cc5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ import { NumberInput } from '../NumberInput/NumberInput';
|
|
|
13
13
|
import { FileInput } from '../FileInput/FileInput';
|
|
14
14
|
import { TextArea } from '../TextArea/TextArea';
|
|
15
15
|
export const Input = Object.assign(forwardRef(function Input(props, ref) {
|
|
16
|
-
return _jsx(TextInput, { ref: ref, ...props });
|
|
16
|
+
return _jsx(TextInput, { ref: ref, ...props }, void 0);
|
|
17
17
|
}), {
|
|
18
18
|
Text: TextInput,
|
|
19
19
|
Password: PasswordInput,
|