@cube-dev/ui-kit 0.0.0-canary-423c3d2 → 0.0.0-canary-ed2a55b
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-deprecation-warning.js +1 -1
- package/cjs/_internal/index.js +1 -1
- package/cjs/components/Base.js +1 -1
- package/cjs/components/Block.js +3 -3
- package/cjs/components/GlobalStyles.js +1 -1
- package/cjs/components/GridProvider.js +8 -7
- package/cjs/components/HiddenInput.js +1 -1
- package/cjs/components/OpenTrasition.js +1 -1
- package/cjs/components/Root.js +6 -3
- package/cjs/components/actions/Action.js +2 -3
- package/cjs/components/actions/Button/Button.js +2 -5
- 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 +9 -11
- package/cjs/components/actions/index.js +1 -1
- package/cjs/components/content/ActiveZone/ActiveZone.js +2 -3
- package/cjs/components/content/Alert/Alert.js +6 -8
- 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 +2 -3
- package/cjs/components/content/Badge/Badge.js +3 -3
- package/cjs/components/content/Card/Card.js +15 -13
- package/cjs/components/content/Content.js +3 -3
- package/cjs/components/content/CopySnippet/CopySnippet.js +57 -21
- package/cjs/components/content/CopySnippet/index.js +1 -1
- package/cjs/components/content/Divider.js +31 -31
- package/cjs/components/content/Footer.js +3 -3
- package/cjs/components/content/Header.js +3 -3
- package/cjs/components/content/Paragraph.js +1 -1
- package/cjs/components/content/Placeholder/Placeholder.js +36 -18
- package/cjs/components/content/PrismCode/PrismCode.js +3 -3
- 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 +11 -13
- package/cjs/components/content/Text.js +3 -3
- package/cjs/components/content/Title.js +3 -3
- package/cjs/components/forms/Checkbox/Checkbox.js +57 -61
- package/cjs/components/forms/Checkbox/CheckboxGroup.js +21 -35
- package/cjs/components/forms/Checkbox/context.js +1 -1
- package/cjs/components/forms/FieldWrapper.js +4 -4
- package/cjs/components/forms/FileInput/FileInput.js +45 -49
- package/cjs/components/forms/Form/Field.js +1 -1
- package/cjs/components/forms/Form/Form.js +13 -11
- 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 +1 -1
- package/cjs/components/forms/Input/index.js +1 -1
- package/cjs/components/forms/Label.js +4 -6
- package/cjs/components/forms/NumberInput/NumberInput.js +1 -1
- package/cjs/components/forms/NumberInput/StepButton.js +1 -1
- package/cjs/components/forms/PasswordInput/PasswordInput.js +1 -1
- package/cjs/components/forms/RadioGroup/Radio.js +95 -92
- package/cjs/components/forms/RadioGroup/RadioGroup.js +20 -35
- 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 +72 -76
- 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 +24 -20
- package/cjs/components/forms/index.js +1 -1
- package/cjs/components/layout/Flex.js +9 -8
- package/cjs/components/layout/Flow.js +9 -8
- package/cjs/components/layout/Grid.js +9 -9
- package/cjs/components/layout/Prefix.js +19 -17
- package/cjs/components/layout/Space.js +21 -17
- package/cjs/components/layout/Suffix.js +19 -17
- package/cjs/components/navigation/LegacyTabs/LegacyTabs.js +64 -41
- package/cjs/components/navigation/Link/Link.js +1 -1
- package/cjs/components/organisms/FileTabs/FileTabs.js +73 -50
- 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 +60 -62
- 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 +32 -32
- 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 +23 -26
- package/cjs/components/overlays/Modal/Tray.js +24 -24
- package/cjs/components/overlays/Modal/Underlay.js +25 -31
- package/cjs/components/overlays/Modal/index.js +1 -1
- package/cjs/components/overlays/Notification/Notification.js +53 -10
- package/cjs/components/overlays/OverlayWrapper.js +1 -1
- package/cjs/components/overlays/Tooltip/Tooltip.js +69 -58
- 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 +44 -45
- package/cjs/components/pickers/Menu/Menu.js +4 -10
- 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 +6 -6
- 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 +10 -11
- package/cjs/components/pickers/Select/Select.js +117 -113
- 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 +4 -4
- package/cjs/components/status/Spin/Spin.js +2 -2
- package/cjs/data/themes.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 +1 -1
- 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 +3 -2
- 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 +8 -3
- 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 +2 -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 +6 -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 +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 +4 -3
- 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/wrapNodeIfPlain.js +1 -1
- package/cjs/utils/transitions.js +1 -1
- package/cjs/utils/tree.js +1 -1
- package/cjs/utils/warnings.js +13 -9
- 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 +1 -1
- package/es/components/Block.js +3 -3
- package/es/components/GlobalStyles.js +1 -1
- package/es/components/GridProvider.js +8 -7
- package/es/components/HiddenInput.js +1 -1
- package/es/components/OpenTrasition.js +1 -1
- package/es/components/Root.js +7 -4
- package/es/components/actions/Action.js +3 -4
- package/es/components/actions/Button/Button.js +2 -5
- 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 +9 -11
- package/es/components/actions/index.js +1 -1
- package/es/components/content/ActiveZone/ActiveZone.js +3 -4
- package/es/components/content/Alert/Alert.js +6 -8
- package/es/components/content/Alert/index.js +1 -1
- package/es/components/content/Alert/types.js +1 -1
- package/es/components/content/Alert/use-alert.js +1 -1
- package/es/components/content/Avatar/Avatar.js +3 -4
- package/es/components/content/Badge/Badge.js +3 -3
- package/es/components/content/Card/Card.js +16 -14
- package/es/components/content/Content.js +3 -3
- package/es/components/content/CopySnippet/CopySnippet.js +57 -21
- package/es/components/content/CopySnippet/index.js +1 -1
- package/es/components/content/Divider.js +32 -32
- package/es/components/content/Footer.js +3 -3
- package/es/components/content/Header.js +3 -3
- package/es/components/content/Paragraph.js +1 -1
- package/es/components/content/Placeholder/Placeholder.js +34 -19
- package/es/components/content/PrismCode/PrismCode.js +3 -3
- 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 +11 -13
- package/es/components/content/Text.js +3 -3
- package/es/components/content/Title.js +3 -3
- package/es/components/forms/Checkbox/Checkbox.js +58 -62
- package/es/components/forms/Checkbox/CheckboxGroup.js +22 -36
- package/es/components/forms/Checkbox/context.js +1 -1
- package/es/components/forms/FieldWrapper.js +4 -4
- package/es/components/forms/FileInput/FileInput.js +46 -50
- package/es/components/forms/Form/Field.js +1 -1
- package/es/components/forms/Form/Form.js +14 -12
- 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 +1 -1
- package/es/components/forms/Input/index.js +1 -1
- package/es/components/forms/Label.js +4 -6
- package/es/components/forms/NumberInput/NumberInput.js +1 -1
- package/es/components/forms/NumberInput/StepButton.js +1 -1
- package/es/components/forms/PasswordInput/PasswordInput.js +1 -1
- package/es/components/forms/RadioGroup/Radio.js +96 -93
- package/es/components/forms/RadioGroup/RadioGroup.js +21 -36
- 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 +74 -78
- 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 +25 -21
- package/es/components/forms/index.js +1 -1
- package/es/components/layout/Flex.js +10 -9
- package/es/components/layout/Flow.js +10 -9
- package/es/components/layout/Grid.js +10 -10
- package/es/components/layout/Prefix.js +20 -18
- package/es/components/layout/Space.js +22 -18
- package/es/components/layout/Suffix.js +20 -18
- package/es/components/navigation/LegacyTabs/LegacyTabs.js +61 -41
- package/es/components/navigation/Link/Link.js +1 -1
- package/es/components/organisms/FileTabs/FileTabs.js +70 -50
- 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 +61 -63
- 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 +32 -32
- 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 +23 -26
- package/es/components/overlays/Modal/Tray.js +24 -24
- package/es/components/overlays/Modal/Underlay.js +25 -31
- package/es/components/overlays/Modal/index.js +1 -1
- package/es/components/overlays/Notification/Notification.js +53 -10
- package/es/components/overlays/OverlayWrapper.js +1 -1
- package/es/components/overlays/Tooltip/Tooltip.js +68 -60
- 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 +45 -46
- package/es/components/pickers/Menu/Menu.js +4 -10
- 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 +7 -7
- 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 +10 -11
- package/es/components/pickers/Select/Select.js +116 -115
- 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 +4 -4
- package/es/components/status/Spin/Spin.js +2 -2
- package/es/data/themes.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 -1
- 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 +2 -2
- 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 +7 -3
- 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 +2 -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 +6 -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 +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 +4 -3
- 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 +13 -9
- package/package.json +4 -4
- package/types/components/content/Tag/Tag.d.ts +2 -1
- package/types/components/overlays/Dialog/Dialog.d.ts +2 -1
- package/types/components/overlays/Tooltip/Tooltip.d.ts +2 -1
- package/types/components/pickers/Menu/MenuItem.d.ts +2 -1
- package/types/components/pickers/Menu/MenuSection.d.ts +8 -3
- package/types/tasty/index.d.ts +1 -1
- package/types/tasty/tasty.d.ts +8 -4
- package/types/tokens.d.ts +4 -0
|
@@ -1,11 +1,14 @@
|
|
|
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-ed2a55b
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
9
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11
|
+
};
|
|
9
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
13
|
exports.Select = exports.ListBoxPopup = void 0;
|
|
11
14
|
const react_1 = require("react");
|
|
@@ -22,117 +25,127 @@ const overlays_1 = require("@react-aria/overlays");
|
|
|
22
25
|
const Form_1 = require("../../forms/Form/Form");
|
|
23
26
|
const interactions_1 = require("@react-aria/interactions");
|
|
24
27
|
const provider_1 = require("../../../provider");
|
|
25
|
-
const Base_1 = require("../../Base");
|
|
26
28
|
const tasty_1 = require("../../../tasty");
|
|
27
29
|
const interactions_2 = require("../../../utils/react/interactions");
|
|
28
30
|
const FieldWrapper_1 = require("../../forms/FieldWrapper");
|
|
29
31
|
const collections_1 = require("@react-stately/collections");
|
|
30
32
|
const OverlayWrapper_1 = require("../../overlays/OverlayWrapper");
|
|
31
33
|
const transitions_1 = require("../../../utils/transitions");
|
|
32
|
-
const
|
|
34
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
33
35
|
const CaretDownIcon = () => ((0, jsx_runtime_1.jsx)("svg", { "aria-hidden": "true", width: "14", height: "14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M11.49 4.102H2.51c-.269 0-.42.284-.253.478l4.49 5.206a.342.342 0 00.506 0l4.49-5.206c.167-.194.016-.478-.253-.478z", fill: "currentColor" }, void 0) }, void 0));
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const INPUT_STYLES = {
|
|
39
|
-
display: 'grid',
|
|
40
|
-
flow: 'column',
|
|
41
|
-
gridColumns: {
|
|
42
|
-
'': '1fr auto',
|
|
43
|
-
'with-prefix': 'auto 1fr auto',
|
|
44
|
-
},
|
|
45
|
-
placeItems: 'center stretch',
|
|
46
|
-
placeContent: 'center stretch',
|
|
47
|
-
gap: '1x',
|
|
48
|
-
padding: {
|
|
49
|
-
'': '(1.25x - 1bw) 1x (1.25x - 1bw) (1.5x - 1bw)',
|
|
50
|
-
'[data-size="small"]': '(.75x - 1px) 1x (.75x - 1px) (1.5x - 1px)',
|
|
36
|
+
const SelectWrapperElement = (0, tasty_1.tasty)({
|
|
37
|
+
styles: {
|
|
38
|
+
display: 'grid',
|
|
39
|
+
position: 'relative',
|
|
51
40
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
});
|
|
42
|
+
const SelectElement = (0, tasty_1.tasty)({
|
|
43
|
+
as: 'button',
|
|
44
|
+
qa: 'Button',
|
|
45
|
+
styles: {
|
|
46
|
+
display: 'grid',
|
|
47
|
+
flow: 'column',
|
|
48
|
+
gridColumns: {
|
|
49
|
+
'': '1fr auto',
|
|
50
|
+
'with-prefix': 'auto 1fr auto',
|
|
51
|
+
},
|
|
52
|
+
placeItems: 'center stretch',
|
|
53
|
+
placeContent: 'center stretch',
|
|
54
|
+
gap: '1x',
|
|
55
|
+
padding: {
|
|
56
|
+
'': '(1.25x - 1bw) 1x (1.25x - 1bw) (1.5x - 1bw)',
|
|
57
|
+
'[data-size="small"]': '(.75x - 1px) 1x (.75x - 1px) (1.5x - 1px)',
|
|
58
|
+
},
|
|
59
|
+
border: {
|
|
60
|
+
'': true,
|
|
61
|
+
invalid: '#danger-text.50',
|
|
62
|
+
valid: '#success-text.50',
|
|
63
|
+
focused: true,
|
|
64
|
+
},
|
|
65
|
+
radius: true,
|
|
66
|
+
reset: 'input',
|
|
67
|
+
preset: 'default',
|
|
68
|
+
outline: {
|
|
69
|
+
'': '#purple-03.0',
|
|
70
|
+
focused: '#purple-03',
|
|
71
|
+
},
|
|
72
|
+
color: {
|
|
73
|
+
'': '#dark.85',
|
|
74
|
+
invalid: '#danger-text',
|
|
75
|
+
focused: '#dark.85',
|
|
76
|
+
disabled: '#dark.30',
|
|
77
|
+
},
|
|
78
|
+
fill: {
|
|
79
|
+
'': '#purple.0',
|
|
80
|
+
hovered: '#dark.04',
|
|
81
|
+
pressed: '#dark.08',
|
|
82
|
+
disabled: '#dark.04',
|
|
83
|
+
},
|
|
84
|
+
fontWeight: 400,
|
|
85
|
+
textAlign: 'left',
|
|
86
|
+
cursor: 'pointer',
|
|
87
|
+
transition: 'theme',
|
|
57
88
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
89
|
+
});
|
|
90
|
+
const ListBoxElement = (0, tasty_1.tasty)({
|
|
91
|
+
as: 'ul',
|
|
92
|
+
styles: {
|
|
93
|
+
display: 'flex',
|
|
94
|
+
gap: '.5x',
|
|
95
|
+
flow: 'column',
|
|
96
|
+
margin: '0',
|
|
97
|
+
padding: '.5x',
|
|
98
|
+
listStyle: 'none',
|
|
99
|
+
radius: true,
|
|
100
|
+
fill: '#white',
|
|
101
|
+
shadow: '0px 4px 16px #shadow',
|
|
102
|
+
height: 'initial 30x',
|
|
103
|
+
overflow: 'hidden auto',
|
|
104
|
+
styledScrollbar: true,
|
|
64
105
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
106
|
+
});
|
|
107
|
+
const OptionElement = (0, tasty_1.tasty)({
|
|
108
|
+
as: 'li',
|
|
109
|
+
styles: {
|
|
110
|
+
display: 'block',
|
|
111
|
+
padding: '(1x - 1px) (1.5x - 1px)',
|
|
112
|
+
cursor: 'pointer',
|
|
113
|
+
radius: true,
|
|
114
|
+
fill: {
|
|
115
|
+
'': '#white',
|
|
116
|
+
focused: '#dark.04',
|
|
117
|
+
selected: '#purple',
|
|
118
|
+
'focused & selected': '#purple-text',
|
|
119
|
+
disabled: '#dark.04',
|
|
120
|
+
},
|
|
121
|
+
color: {
|
|
122
|
+
'': '#dark.85',
|
|
123
|
+
selected: '#white',
|
|
124
|
+
disabled: '#dark.30',
|
|
125
|
+
},
|
|
126
|
+
preset: 't3m',
|
|
127
|
+
transition: 'theme',
|
|
70
128
|
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
129
|
+
});
|
|
130
|
+
const OverlayElement = (0, tasty_1.tasty)({
|
|
131
|
+
styles: {
|
|
132
|
+
position: 'absolute',
|
|
133
|
+
width: 'min @overlay-min-width',
|
|
76
134
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
position: 'absolute',
|
|
84
|
-
};
|
|
85
|
-
const LISTBOX_STYLES = {
|
|
86
|
-
display: 'flex',
|
|
87
|
-
gap: '.5x',
|
|
88
|
-
flow: 'column',
|
|
89
|
-
margin: '0',
|
|
90
|
-
padding: '.5x',
|
|
91
|
-
listStyle: 'none',
|
|
92
|
-
radius: true,
|
|
93
|
-
fill: '#white',
|
|
94
|
-
shadow: '0px 4px 16px #shadow',
|
|
95
|
-
height: 'initial 30x',
|
|
96
|
-
overflow: 'hidden auto',
|
|
97
|
-
styledScrollbar: true,
|
|
98
|
-
};
|
|
99
|
-
const OPTION_STYLES = {
|
|
100
|
-
display: 'block',
|
|
101
|
-
padding: '(1x - 1px) (1.5x - 1px)',
|
|
102
|
-
cursor: 'pointer',
|
|
103
|
-
radius: true,
|
|
104
|
-
fill: {
|
|
105
|
-
'': '#white',
|
|
106
|
-
focused: '#dark.04',
|
|
107
|
-
selected: '#purple',
|
|
108
|
-
'focused & selected': '#purple-text',
|
|
109
|
-
disabled: '#dark.04',
|
|
110
|
-
},
|
|
111
|
-
color: {
|
|
112
|
-
'': '#dark.85',
|
|
113
|
-
selected: '#white',
|
|
114
|
-
disabled: '#dark.30',
|
|
115
|
-
},
|
|
116
|
-
preset: 't3m',
|
|
117
|
-
};
|
|
135
|
+
});
|
|
136
|
+
const StyledOverlayElement = (0, styled_components_1.default)(OverlayElement) `
|
|
137
|
+
${(props) => {
|
|
138
|
+
return (0, transitions_1.getOverlayTransitionCSS)({ placement: props === null || props === void 0 ? void 0 : props['data-position'] });
|
|
139
|
+
}}
|
|
140
|
+
`;
|
|
118
141
|
function Select(props, ref) {
|
|
119
142
|
var _a;
|
|
120
143
|
props = (0, provider_1.useProviderProps)(props);
|
|
121
144
|
props = (0, Form_1.useFormProps)(props);
|
|
122
145
|
let { qa, label, extra, labelPosition = 'top', labelStyles, isRequired, necessityIndicator, validationState, prefix, isDisabled, autoFocus, inputProps, triggerRef, popoverRef, listBoxRef, isLoading, loadingIndicator, overlayOffset = 8, inputStyles, optionStyles, suffix, listBoxStyles, overlayStyles, message, description, direction = 'bottom', shouldFlip = true, requiredMark = true, placeholder, tooltip, size, styles, ...otherProps } = props;
|
|
123
146
|
let state = (0, select_1.useSelectState)(props);
|
|
124
|
-
const outerStyles = (0, tasty_1.extractStyles)(otherProps, tasty_1.OUTER_STYLES,
|
|
125
|
-
|
|
126
|
-
...(0, StyleProvider_1.useContextStyles)('Select_Wrapper', otherProps),
|
|
127
|
-
...styles,
|
|
128
|
-
});
|
|
129
|
-
inputStyles = (0, tasty_1.extractStyles)(otherProps, tasty_1.BLOCK_STYLES, {
|
|
130
|
-
...INPUT_STYLES,
|
|
131
|
-
...(0, StyleProvider_1.useContextStyles)('Select', otherProps),
|
|
132
|
-
...inputStyles,
|
|
133
|
-
});
|
|
134
|
-
if (styles) {
|
|
135
|
-
}
|
|
147
|
+
const outerStyles = (0, tasty_1.extractStyles)(otherProps, tasty_1.OUTER_STYLES, styles);
|
|
148
|
+
inputStyles = (0, tasty_1.extractStyles)(otherProps, tasty_1.BLOCK_STYLES, inputStyles);
|
|
136
149
|
ref = (0, react_2.useCombinedRefs)(ref);
|
|
137
150
|
triggerRef = (0, react_2.useCombinedRefs)(triggerRef);
|
|
138
151
|
popoverRef = (0, react_2.useCombinedRefs)(popoverRef);
|
|
@@ -157,20 +170,22 @@ function Select(props, ref) {
|
|
|
157
170
|
let validationIcon = isInvalid ? ((0, jsx_runtime_1.jsx)(icons_1.WarningOutlined, { style: { color: 'var(--danger-color)' } }, void 0)) : ((0, jsx_runtime_1.jsx)(icons_1.CheckOutlined, { style: { color: 'var(--success-color)' } }, void 0));
|
|
158
171
|
let validation = (0, react_3.cloneElement)(validationIcon);
|
|
159
172
|
let triggerWidth = (_a = triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
|
160
|
-
let selectField = ((0, jsx_runtime_1.jsxs)(
|
|
173
|
+
let selectField = ((0, jsx_runtime_1.jsxs)(SelectWrapperElement, { qa: qa || 'Select', mods: {
|
|
161
174
|
invalid: isInvalid,
|
|
162
175
|
valid: validationState === 'valid',
|
|
163
176
|
disabled: isDisabled,
|
|
164
177
|
hovered: isHovered,
|
|
165
178
|
focused: isFocused,
|
|
166
|
-
}, styles: outerStyles, "data-size": size, children: [(0, jsx_runtime_1.jsx)(select_2.HiddenSelect, { state: state, triggerRef: triggerRef, label: props.label, name: props.name }, void 0), (0, jsx_runtime_1.jsxs)(
|
|
179
|
+
}, styles: outerStyles, "data-size": size, children: [(0, jsx_runtime_1.jsx)(select_2.HiddenSelect, { state: state, triggerRef: triggerRef, label: props.label, name: props.name }, void 0), (0, jsx_runtime_1.jsxs)(SelectElement, { ...(0, react_2.mergeProps)(buttonProps, hoverProps, focusProps), ref: triggerRef, styles: inputStyles, "data-size": size, mods: {
|
|
167
180
|
invalid: isInvalid,
|
|
168
181
|
valid: validationState === 'valid',
|
|
169
182
|
disabled: isDisabled,
|
|
170
183
|
hovered: isHovered,
|
|
171
184
|
focused: isFocused,
|
|
172
185
|
'with-prefix': !!prefix,
|
|
173
|
-
}, children: [prefix, (0, jsx_runtime_1.jsx)("span", { ...valueProps, children: state.selectedItem
|
|
186
|
+
}, children: [prefix, (0, jsx_runtime_1.jsx)("span", { ...valueProps, children: state.selectedItem
|
|
187
|
+
? state.selectedItem.rendered
|
|
188
|
+
: placeholder || (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "\u00A0" }, void 0) }, void 0), (validationState || isLoading || suffix) && ((0, jsx_runtime_1.jsxs)("div", { children: [validationState && !isLoading ? validation : null, isLoading && (0, jsx_runtime_1.jsx)(icons_1.LoadingOutlined, {}, void 0), suffix] }, void 0)), (0, jsx_runtime_1.jsx)(CaretDownIcon, {}, void 0)] }, void 0), (0, jsx_runtime_1.jsx)(OverlayWrapper_1.OverlayWrapper, { isOpen: state.isOpen && !isDisabled, children: (0, jsx_runtime_1.jsx)(ListBoxPopup, { ...menuProps, popoverRef: popoverRef, listBoxRef: listBoxRef, overlayProps: overlayProps, placement: placement, state: state, listBoxStyles: listBoxStyles, overlayStyles: overlayStyles, optionStyles: optionStyles, minWidth: triggerWidth }, void 0) }, void 0)] }, void 0));
|
|
174
189
|
return ((0, jsx_runtime_1.jsx)(FieldWrapper_1.FieldWrapper, { ...{
|
|
175
190
|
labelPosition,
|
|
176
191
|
label,
|
|
@@ -197,11 +212,6 @@ function ListBoxPopup({ state, popoverRef, listBoxRef, listBoxStyles, overlaySty
|
|
|
197
212
|
shouldUseVirtualFocus,
|
|
198
213
|
...otherProps,
|
|
199
214
|
}, state, listBoxRef);
|
|
200
|
-
listBoxStyles = {
|
|
201
|
-
...LISTBOX_STYLES,
|
|
202
|
-
...(0, StyleProvider_1.useContextStyles)('ListBoxPopup'),
|
|
203
|
-
...listBoxStyles,
|
|
204
|
-
};
|
|
205
215
|
// Handle events that should cause the popup to close,
|
|
206
216
|
// e.g. blur, clicking outside, or pressing the escape key.
|
|
207
217
|
let { overlayProps } = (0, overlays_1.useOverlay)({
|
|
@@ -214,11 +224,10 @@ function ListBoxPopup({ state, popoverRef, listBoxRef, listBoxStyles, overlaySty
|
|
|
214
224
|
// trigger when the popup is closed. In addition, add hidden
|
|
215
225
|
// <DismissButton> components at the start and end of the list
|
|
216
226
|
// to allow screen reader users to dismiss the popup easily.
|
|
217
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
218
|
-
|
|
219
|
-
...
|
|
220
|
-
|
|
221
|
-
}, ...parentOverlayProps, ...overlayProps, css: (0, transitions_1.getOverlayTransitionCSS)({ placement }), "data-position": placement, ref: popoverRef, children: (0, jsx_runtime_1.jsxs)(focus_1.FocusScope, { restoreFocus: true, children: [(0, jsx_runtime_1.jsx)(overlays_1.DismissButton, { onDismiss: () => state.close() }, void 0), (0, jsx_runtime_1.jsx)(Base_1.Base, { as: "ul", styles: listBoxStyles, ...(0, react_2.mergeProps)(listBoxProps, otherProps), ref: listBoxRef, children: Array.from(state.collection).map((item) => ((0, jsx_runtime_1.jsx)(Option, { item: item, state: state, styles: optionStyles, shouldUseVirtualFocus: shouldUseVirtualFocus }, item.key))) }, void 0), (0, jsx_runtime_1.jsx)(overlays_1.DismissButton, { onDismiss: () => state.close() }, void 0)] }, void 0) }, void 0));
|
|
227
|
+
return ((0, jsx_runtime_1.jsx)(StyledOverlayElement, { ...overlayProps, ...parentOverlayProps, styles: overlayStyles, style: {
|
|
228
|
+
'--overlay-min-width': minWidth ? `${minWidth}px` : 'initial',
|
|
229
|
+
...parentOverlayProps === null || parentOverlayProps === void 0 ? void 0 : parentOverlayProps.style,
|
|
230
|
+
}, "data-position": placement, ref: popoverRef, children: (0, jsx_runtime_1.jsxs)(focus_1.FocusScope, { restoreFocus: true, children: [(0, jsx_runtime_1.jsx)(overlays_1.DismissButton, { onDismiss: () => state.close() }, void 0), (0, jsx_runtime_1.jsx)(ListBoxElement, { styles: listBoxStyles, ...(0, react_2.mergeProps)(listBoxProps, otherProps), ref: listBoxRef, children: Array.from(state.collection).map((item) => ((0, jsx_runtime_1.jsx)(Option, { item: item, state: state, styles: optionStyles, shouldUseVirtualFocus: shouldUseVirtualFocus }, item.key))) }, void 0), (0, jsx_runtime_1.jsx)(overlays_1.DismissButton, { onDismiss: () => state.close() }, void 0)] }, void 0) }, void 0));
|
|
222
231
|
}
|
|
223
232
|
exports.ListBoxPopup = ListBoxPopup;
|
|
224
233
|
function Option({ item, state, styles, shouldUseVirtualFocus }) {
|
|
@@ -226,11 +235,6 @@ function Option({ item, state, styles, shouldUseVirtualFocus }) {
|
|
|
226
235
|
let isDisabled = state.disabledKeys.has(item.key);
|
|
227
236
|
let isSelected = state.selectionManager.isSelected(item.key);
|
|
228
237
|
let isVirtualFocused = state.selectionManager.focusedKey === item.key;
|
|
229
|
-
styles = {
|
|
230
|
-
...OPTION_STYLES,
|
|
231
|
-
...(0, StyleProvider_1.useContextStyles)('Option'),
|
|
232
|
-
...styles,
|
|
233
|
-
};
|
|
234
238
|
let { optionProps } = (0, listbox_1.useOption)({
|
|
235
239
|
key: item.key,
|
|
236
240
|
isDisabled,
|
|
@@ -243,7 +247,7 @@ function Option({ item, state, styles, shouldUseVirtualFocus }) {
|
|
|
243
247
|
// style to the focused option
|
|
244
248
|
let [isFocused, setFocused] = (0, react_3.useState)(false);
|
|
245
249
|
let { focusProps } = (0, interactions_1.useFocus)({ onFocusChange: setFocused });
|
|
246
|
-
return ((0, react_1.createElement)(
|
|
250
|
+
return ((0, react_1.createElement)(OptionElement, { ...(0, react_2.mergeProps)(optionProps, focusProps), ref: ref, mods: {
|
|
247
251
|
selected: isSelected,
|
|
248
252
|
focused: shouldUseVirtualFocus ? isVirtualFocused : isFocused,
|
|
249
253
|
disabled: isDisabled,
|
|
@@ -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-ed2a55b
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -20,11 +20,11 @@ const POSITIONS = [
|
|
|
20
20
|
[49, 49],
|
|
21
21
|
[98, 25],
|
|
22
22
|
];
|
|
23
|
-
const cubeImage =
|
|
23
|
+
const cubeImage = "data:image/svg+xml,%3Csvg width='36' height='41' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35.899 10.351l-18 10.25L.1 10.25l18-10.25L35.9 10.351z' fill='%23FAFAFF'/%3E%3Cpath d='M18 41L0 30.75l.101-20.5L18 20.5' fill='%23E5E5F6'/%3E%3Cpath d='M36 30.75L18 41V20.6l17.899-10.25L36 30.75z' fill='%23C0C0EA'/%3E%3C/svg%3E";
|
|
24
24
|
function pos(index) {
|
|
25
25
|
return `transform: translate(${POSITIONS[index][0]}%, ${POSITIONS[index][1]}%);`;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const ImgElement = styled_components_1.default.img(({ index }) => `
|
|
28
28
|
display: block;
|
|
29
29
|
position: absolute;
|
|
30
30
|
width: 50%;
|
|
@@ -123,7 +123,7 @@ const RawImg = styled_components_1.default.img(({ index }) => `
|
|
|
123
123
|
: ''}
|
|
124
124
|
`);
|
|
125
125
|
const Cube = (props) => {
|
|
126
|
-
return (0, jsx_runtime_1.jsx)(
|
|
126
|
+
return (0, jsx_runtime_1.jsx)(ImgElement, { role: "presentation", src: cubeImage, alt: "", ...props }, void 0);
|
|
127
127
|
};
|
|
128
128
|
const SIZE_MAP = {
|
|
129
129
|
small: 32,
|
|
@@ -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-ed2a55b
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -21,7 +21,7 @@ const Spin = ({ size, spinning, style, children, ...props }, ref) => {
|
|
|
21
21
|
if (spinning === false) {
|
|
22
22
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children }, void 0);
|
|
23
23
|
}
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(Block_1.Block, { ref: ref, role: "img", "aria-label": "Loading animation", height: "1em", opacity: ".8", style: {
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(Block_1.Block, { ref: ref, role: "img", "aria-label": "Loading animation", height: "1em 1em", opacity: ".8", style: {
|
|
25
25
|
fontSize: localSize * 8,
|
|
26
26
|
position: 'relative',
|
|
27
27
|
...(style || {}),
|
package/cjs/data/themes.js
CHANGED
package/cjs/index.js
CHANGED
package/cjs/provider.js
CHANGED
package/cjs/shared/form.js
CHANGED
package/cjs/shared/index.js
CHANGED
package/cjs/styled/index.js
CHANGED
package/cjs/styled/styled.js
CHANGED
package/cjs/tasty/index.js
CHANGED
|
@@ -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-ed2a55b
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -17,9 +17,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
17
17
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.tasty = void 0;
|
|
20
|
+
exports.Element = exports.tasty = void 0;
|
|
21
21
|
var tasty_1 = require("./tasty");
|
|
22
22
|
Object.defineProperty(exports, "tasty", { enumerable: true, get: function () { return tasty_1.tasty; } });
|
|
23
|
+
Object.defineProperty(exports, "Element", { enumerable: true, get: function () { return tasty_1.Element; } });
|
|
23
24
|
__exportStar(require("./utils/filterBaseProps"), exports);
|
|
24
25
|
__exportStar(require("./utils/colors"), exports);
|
|
25
26
|
__exportStar(require("./utils/styles"), exports);
|