@cube-dev/ui-kit 0.0.0-canary-23bc0fd → 0.0.0-canary-9ea74e0
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 +1 -1
- package/cjs/components/actions/Button/Submit.js +1 -1
- package/cjs/components/actions/Button/index.js +1 -1
- package/cjs/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/cjs/components/actions/index.js +1 -1
- package/cjs/components/content/ActiveZone/ActiveZone.js +2 -3
- package/cjs/components/content/Alert/Alert.js +3 -3
- package/cjs/components/content/Alert/index.js +1 -1
- package/cjs/components/content/Alert/types.js +1 -1
- package/cjs/components/content/Alert/use-alert.js +1 -1
- package/cjs/components/content/Avatar/Avatar.js +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 +1 -1
- 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 +37 -19
- 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 +1 -1
- 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 +3 -3
- 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 +75 -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 +1 -1
- package/cjs/components/navigation/Link/Link.js +1 -1
- package/cjs/components/organisms/FileTabs/FileTabs.js +1 -1
- package/cjs/components/organisms/Modal/Modal.js +1 -1
- package/cjs/components/organisms/StatsCard/StatsCard.js +1 -1
- package/cjs/components/other/Base64Upload/Base64Upload.js +1 -1
- package/cjs/components/other/CloudLogo/CloudLogo.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/cjs/components/overlays/AlertDialog/index.js +1 -1
- package/cjs/components/overlays/AlertDialog/types.js +1 -1
- package/cjs/components/overlays/Dialog/Dialog.js +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 +1 -1
- package/cjs/components/overlays/OverlayWrapper.js +1 -1
- package/cjs/components/overlays/Tooltip/Tooltip.js +54 -56
- 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 +42 -45
- package/cjs/components/pickers/Menu/Menu.js +1 -1
- package/cjs/components/pickers/Menu/MenuButton.js +1 -1
- package/cjs/components/pickers/Menu/MenuItem.js +1 -1
- package/cjs/components/pickers/Menu/MenuSection.js +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 +9 -11
- package/cjs/components/pickers/Select/Select.js +103 -112
- 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 +4 -2
- 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 +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 +1 -1
- package/cjs/utils/react/chain.js +1 -1
- package/cjs/utils/react/index.js +1 -1
- package/cjs/utils/react/interactions.js +1 -1
- package/cjs/utils/react/isTextOnly.js +1 -1
- package/cjs/utils/react/mapProps.js +1 -1
- package/cjs/utils/react/mergeProps.js +1 -1
- package/cjs/utils/react/nullableValue.js +1 -1
- package/cjs/utils/react/useCombinedRefs.js +1 -1
- package/cjs/utils/react/useId.js +1 -1
- package/cjs/utils/react/useLayoutEffect.js +1 -1
- package/cjs/utils/react/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 +1 -1
- package/es/components/actions/Button/Submit.js +1 -1
- package/es/components/actions/Button/index.js +1 -1
- package/es/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/es/components/actions/index.js +1 -1
- package/es/components/content/ActiveZone/ActiveZone.js +3 -4
- package/es/components/content/Alert/Alert.js +3 -3
- package/es/components/content/Alert/index.js +1 -1
- package/es/components/content/Alert/types.js +1 -1
- package/es/components/content/Alert/use-alert.js +1 -1
- package/es/components/content/Avatar/Avatar.js +3 -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 +1 -1
- 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 +35 -20
- 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 +1 -1
- 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 +3 -3
- 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 +77 -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 +1 -1
- package/es/components/navigation/Link/Link.js +1 -1
- package/es/components/organisms/FileTabs/FileTabs.js +1 -1
- package/es/components/organisms/Modal/Modal.js +1 -1
- package/es/components/organisms/StatsCard/StatsCard.js +1 -1
- package/es/components/other/Base64Upload/Base64Upload.js +1 -1
- package/es/components/other/CloudLogo/CloudLogo.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/es/components/overlays/AlertDialog/index.js +1 -1
- package/es/components/overlays/AlertDialog/types.js +1 -1
- package/es/components/overlays/Dialog/Dialog.js +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 +1 -1
- package/es/components/overlays/OverlayWrapper.js +1 -1
- package/es/components/overlays/Tooltip/Tooltip.js +55 -57
- 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 +43 -46
- package/es/components/pickers/Menu/Menu.js +1 -1
- package/es/components/pickers/Menu/MenuButton.js +1 -1
- package/es/components/pickers/Menu/MenuItem.js +1 -1
- package/es/components/pickers/Menu/MenuSection.js +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 +9 -11
- package/es/components/pickers/Select/Select.js +104 -113
- 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 +3 -2
- 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 +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 +1 -1
- package/es/utils/react/chain.js +1 -1
- package/es/utils/react/index.js +1 -1
- package/es/utils/react/interactions.js +1 -1
- package/es/utils/react/isTextOnly.js +1 -1
- package/es/utils/react/mapProps.js +1 -1
- package/es/utils/react/mergeProps.js +1 -1
- package/es/utils/react/nullableValue.js +1 -1
- package/es/utils/react/useCombinedRefs.js +1 -1
- package/es/utils/react/useId.js +1 -1
- package/es/utils/react/useLayoutEffect.js +1 -1
- package/es/utils/react/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 +1 -1
- package/types/components/content/Tag/Tag.d.ts +2 -1
- package/types/components/overlays/Dialog/Dialog.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
|
@@ -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-9ea74e0
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -14,70 +14,71 @@ import { FocusScope } from '@react-aria/focus';
|
|
|
14
14
|
import { forwardRef } from 'react';
|
|
15
15
|
import { useDialog } from '@react-aria/dialog';
|
|
16
16
|
import { useMessageFormatter } from '@react-aria/i18n';
|
|
17
|
-
import { Base } from '../../Base';
|
|
18
17
|
import { CloseOutlined } from '@ant-design/icons';
|
|
19
|
-
import { BASE_STYLES, BLOCK_STYLES, DIMENSION_STYLES, extractStyles, } from '../../../tasty';
|
|
18
|
+
import { BASE_STYLES, BLOCK_STYLES, DIMENSION_STYLES, extractStyles, tasty, } from '../../../tasty';
|
|
20
19
|
import { mergeProps, SlotProvider } from '../../../utils/react';
|
|
21
|
-
import { useContextStyles } from '../../../providers/StyleProvider';
|
|
22
20
|
const STYLES_LIST = [...BASE_STYLES, ...DIMENSION_STYLES, ...BLOCK_STYLES];
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
'
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
'
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
'
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
'
|
|
21
|
+
const DialogElement = tasty({
|
|
22
|
+
as: 'section',
|
|
23
|
+
styles: {
|
|
24
|
+
pointerEvents: 'auto',
|
|
25
|
+
position: 'relative',
|
|
26
|
+
display: 'flex',
|
|
27
|
+
placeItems: 'stretch',
|
|
28
|
+
placeContent: 'stretch',
|
|
29
|
+
width: {
|
|
30
|
+
'': '288px @dialog-size 90vw',
|
|
31
|
+
'[data-type="fullscreen"]': '90vw 90vw',
|
|
32
|
+
'[data-type="fullscreenTakeover"]': '100vw 100vw',
|
|
33
|
+
'[data-type="panel"]': '100vw 100vw',
|
|
34
|
+
},
|
|
35
|
+
height: {
|
|
36
|
+
'': 'max 90vh',
|
|
37
|
+
'[data-type="fullscreenTakeover"] | [data-type="panel"]': 'max 100vh',
|
|
38
|
+
},
|
|
39
|
+
gap: 0,
|
|
40
|
+
flow: 'column',
|
|
41
|
+
radius: {
|
|
42
|
+
'': '2r',
|
|
43
|
+
'[data-type="tray"]': '2r top',
|
|
44
|
+
'[data-type="fullscreenTakeover"] | [data-type="panel"]': '0r',
|
|
45
|
+
},
|
|
46
|
+
fill: '#white',
|
|
47
|
+
shadow: {
|
|
48
|
+
'': '0 20px 30px #shadow',
|
|
49
|
+
'[data-type="popover"]': '0px 4px 16px #shadow',
|
|
50
|
+
},
|
|
51
|
+
transform: {
|
|
52
|
+
'': false,
|
|
53
|
+
'[data-type="modal"]': 'translate(0, ((50vh - 50%) / -3))',
|
|
54
|
+
},
|
|
55
|
+
placeSelf: 'stretch',
|
|
56
|
+
'@dialog-heading-padding-v': {
|
|
57
|
+
'': '2x',
|
|
58
|
+
'[data-type="popover"]': '1x',
|
|
59
|
+
},
|
|
60
|
+
'@dialog-content-padding-v': {
|
|
61
|
+
'': '3x',
|
|
62
|
+
'[data-type="popover"]': '2x',
|
|
63
|
+
},
|
|
64
|
+
'@dialog-padding-h': {
|
|
65
|
+
'': '3x',
|
|
66
|
+
'[data-type="popover"]': '2x',
|
|
67
|
+
},
|
|
68
|
+
'@dialog-footer-v': {
|
|
69
|
+
'': '2x',
|
|
70
|
+
'[data-type="popover"]': '1x',
|
|
71
|
+
},
|
|
72
|
+
'@dialog-content-gap': '3x',
|
|
71
73
|
},
|
|
72
|
-
|
|
73
|
-
};
|
|
74
|
+
});
|
|
74
75
|
const CLOSE_BUTTON_STYLES = {
|
|
76
|
+
display: 'flex',
|
|
75
77
|
position: 'absolute',
|
|
76
78
|
top: '1x',
|
|
77
79
|
right: '1x',
|
|
78
80
|
width: '5x',
|
|
79
81
|
height: '5x',
|
|
80
|
-
display: 'flex',
|
|
81
82
|
placeContent: 'center',
|
|
82
83
|
};
|
|
83
84
|
const sizeMap = {
|
|
@@ -102,14 +103,9 @@ const intlMessages = {
|
|
|
102
103
|
*/
|
|
103
104
|
export const Dialog = forwardRef(function Dialog(props, ref) {
|
|
104
105
|
let { type = 'modal', ...contextProps } = useDialogContext();
|
|
105
|
-
let { qa, children, size = 'S', isDismissable = contextProps.isDismissable, onDismiss = contextProps.onClose, closeIcon, ...otherProps } = props;
|
|
106
|
+
let { qa, children, size = 'S', isDismissable = contextProps.isDismissable, onDismiss = contextProps.onClose, closeIcon, closeButtonStyles, ...otherProps } = props;
|
|
106
107
|
size = sizeMap[size.toUpperCase()] || size;
|
|
107
|
-
const styles =
|
|
108
|
-
...DEFAULT_STYLES,
|
|
109
|
-
...useContextStyles('Dialog', props),
|
|
110
|
-
...extractStyles(otherProps, STYLES_LIST),
|
|
111
|
-
'@dialog-size': `${sizePxMap[size] || 288}px`,
|
|
112
|
-
};
|
|
108
|
+
const styles = extractStyles(otherProps, STYLES_LIST);
|
|
113
109
|
let formatMessage = useMessageFormatter(intlMessages);
|
|
114
110
|
let domRef = useDOMRef(ref);
|
|
115
111
|
let { dialogProps, titleProps } = useDialog(mergeProps(contextProps, props), domRef);
|
|
@@ -160,8 +156,10 @@ export const Dialog = forwardRef(function Dialog(props, ref) {
|
|
|
160
156
|
},
|
|
161
157
|
},
|
|
162
158
|
};
|
|
163
|
-
return (_jsx(FocusScope, { contain: true, restoreFocus: true, children: _jsxs(
|
|
159
|
+
return (_jsx(FocusScope, { contain: true, restoreFocus: true, children: _jsxs(DialogElement, { "data-id": "Dialog", "data-qa": qa || 'Dialog', styles: styles, as: "section", ...dialogProps, mods: {
|
|
164
160
|
dismissable: isDismissable,
|
|
161
|
+
}, style: {
|
|
162
|
+
'--dialog-size': `${sizePxMap[size] || 288}px`,
|
|
165
163
|
}, "data-type": type, "data-size": size, ref: domRef, children: [dismissButton, _jsxs(SlotProvider, { slots: slots, children: [isDismissable && (_jsx(Button, { qa: "ModalCloseButton", type: "neutral", styles: CLOSE_BUTTON_STYLES, icon: closeIcon || _jsx(CloseOutlined, {}, void 0), label: formatMessage('dismiss'), onPress: () => onDismiss && onDismiss() }, void 0)), children] }, void 0)] }, void 0) }, void 0));
|
|
166
164
|
});
|
|
167
165
|
|
|
@@ -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-9ea74e0
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -12,9 +12,8 @@ import { Overlay } from './Overlay';
|
|
|
12
12
|
import { forwardRef } from 'react';
|
|
13
13
|
import { Underlay } from './Underlay';
|
|
14
14
|
import { useModal, useOverlay, usePreventScroll } from '@react-aria/overlays';
|
|
15
|
-
import {
|
|
15
|
+
import { tasty } from '../../../tasty';
|
|
16
16
|
import { mergeProps } from '../../../utils/react';
|
|
17
|
-
import { useContextStyles } from '../../../providers/StyleProvider';
|
|
18
17
|
export const OVERLAY_WRAPPER_STYLES = {
|
|
19
18
|
position: 'fixed',
|
|
20
19
|
display: 'grid',
|
|
@@ -32,30 +31,36 @@ export const OVERLAY_WRAPPER_STYLES = {
|
|
|
32
31
|
zIndex: 2,
|
|
33
32
|
transition: 'visibility 0ms linear .13s',
|
|
34
33
|
};
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
34
|
+
const ModalWrapperElement = tasty({
|
|
35
|
+
qa: 'ModalWrapper',
|
|
36
|
+
styles: OVERLAY_WRAPPER_STYLES,
|
|
37
|
+
});
|
|
38
|
+
const ModalElement = tasty({
|
|
39
|
+
styles: {
|
|
40
|
+
display: 'grid',
|
|
41
|
+
zIndex: 2,
|
|
42
|
+
height: {
|
|
43
|
+
'': 'max (@cube-visual-viewport-height * .9)',
|
|
44
|
+
'[data-type="fullscreenTakeover"] | [data-type="panel"]': '@cube-visual-viewport-height @cube-visual-viewport-height',
|
|
45
|
+
'[data-type="fullscreen"]': '(@cube-visual-viewport-height * .9) (@cube-visual-viewport-height * .9)',
|
|
46
|
+
'[data-type="fullscreenTakeover"]': '@cube-visual-viewport-height @cube-visual-viewport-height',
|
|
47
|
+
},
|
|
48
|
+
width: {
|
|
49
|
+
width: '288px 90vw',
|
|
50
|
+
},
|
|
51
|
+
pointerEvents: 'none',
|
|
52
|
+
transition: 'opacity .25s linear, visibility 0ms linear, transform .25s ease-in-out',
|
|
53
|
+
transform: {
|
|
54
|
+
'': 'translate(0, 0) scale(1, 1)',
|
|
55
|
+
'[data-type="modal"] & !open': 'translate(0, -3x) scale(1, 1)',
|
|
56
|
+
'[data-type^="fullscreen"] & !open': 'translate(0, 0) scale(1.02, 1.02)',
|
|
57
|
+
},
|
|
58
|
+
opacity: {
|
|
59
|
+
'': 0,
|
|
60
|
+
open: 0.9999,
|
|
61
|
+
},
|
|
57
62
|
},
|
|
58
|
-
};
|
|
63
|
+
});
|
|
59
64
|
function Modal(props, ref) {
|
|
60
65
|
let { qa, children, onClose, type, styles, ...otherProps } = props;
|
|
61
66
|
let domRef = useDOMRef(ref);
|
|
@@ -64,18 +69,13 @@ function Modal(props, ref) {
|
|
|
64
69
|
}
|
|
65
70
|
let ModalWrapper = forwardRef(function ModalWrapper(props, ref) {
|
|
66
71
|
let { qa, children, isOpen, type, placement, styles, overlayProps, ...otherProps } = props;
|
|
67
|
-
styles = {
|
|
68
|
-
...MODAL_STYLES,
|
|
69
|
-
...useContextStyles('Modal', props),
|
|
70
|
-
...styles,
|
|
71
|
-
};
|
|
72
72
|
usePreventScroll();
|
|
73
73
|
let { modalProps } = useModal();
|
|
74
74
|
let viewport = useViewportSize();
|
|
75
75
|
let style = {
|
|
76
76
|
'--cube-visual-viewport-height': viewport.height + 'px',
|
|
77
77
|
};
|
|
78
|
-
return (_jsx(
|
|
78
|
+
return (_jsx(ModalWrapperElement, { mods: { open: isOpen }, "data-type": type, "data-placement": placement, style: style, children: _jsx(ModalElement, { qa: qa || 'Modal', styles: styles, mods: { open: isOpen }, "data-type": type, "data-placement": placement, ...mergeProps(otherProps, overlayProps, modalProps), ref: ref, children: children }, void 0) }, void 0));
|
|
79
79
|
});
|
|
80
80
|
let _Modal = forwardRef(Modal);
|
|
81
81
|
export { _Modal as Modal };
|
|
@@ -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-9ea74e0
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -10,25 +10,27 @@ import { mergeProps } from '../../../utils/react';
|
|
|
10
10
|
import { Overlay } from './Overlay';
|
|
11
11
|
import { forwardRef } from 'react';
|
|
12
12
|
import { useModal, useOverlay } from '@react-aria/overlays';
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
import { tasty } from '../../../tasty';
|
|
14
|
+
const PopoverElement = tasty({
|
|
15
|
+
role: 'presentation',
|
|
16
|
+
styles: {
|
|
17
|
+
pointerEvents: 'auto',
|
|
18
|
+
position: 'absolute',
|
|
19
|
+
transition: 'opacity .120s linear, visibility 0ms linear, transform .120s ease-in-out',
|
|
20
|
+
transform: {
|
|
21
|
+
'': 'scale(1, .9)',
|
|
22
|
+
open: 'scale(1, 1)',
|
|
23
|
+
},
|
|
24
|
+
opacity: {
|
|
25
|
+
'': 0,
|
|
26
|
+
open: '.9999',
|
|
27
|
+
},
|
|
28
|
+
transformOrigin: {
|
|
29
|
+
'': 'top center',
|
|
30
|
+
'[data-placement="top"]': 'bottom center',
|
|
31
|
+
},
|
|
22
32
|
},
|
|
23
|
-
|
|
24
|
-
'': 0,
|
|
25
|
-
open: '.9999',
|
|
26
|
-
},
|
|
27
|
-
transformOrigin: {
|
|
28
|
-
'': 'top center',
|
|
29
|
-
'[data-placement="top"]': 'bottom center',
|
|
30
|
-
},
|
|
31
|
-
};
|
|
33
|
+
});
|
|
32
34
|
function Popover(props, ref) {
|
|
33
35
|
let { qa, style, styles, children, placement, arrowProps, onClose, shouldCloseOnBlur, isKeyboardDismissDisabled, isNonModal, isDismissable = true, ...otherProps } = props;
|
|
34
36
|
return (_jsx(Overlay, { ...otherProps, children: _jsx(PopoverWrapper, { qa: qa, ref: ref, style: style, styles: styles, placement: placement, arrowProps: arrowProps, onClose: onClose, shouldCloseOnBlur: shouldCloseOnBlur, isKeyboardDismissDisabled: isKeyboardDismissDisabled, isNonModal: isNonModal, isDismissable: isDismissable, children: children }, void 0) }, void 0));
|
|
@@ -41,14 +43,9 @@ const PopoverWrapper = forwardRef(function PopoverWrapper(props, ref) {
|
|
|
41
43
|
let { modalProps } = useModal({
|
|
42
44
|
isDisabled: isNonModal,
|
|
43
45
|
});
|
|
44
|
-
styles
|
|
45
|
-
...POPOVER_STYLES,
|
|
46
|
-
...useContextStyles('Popover', props),
|
|
47
|
-
...styles,
|
|
48
|
-
};
|
|
49
|
-
return (_jsx(Base, { qa: qa || 'Popover', ...mergeProps(otherProps, overlayProps, modalProps), styles: styles, ref: ref, mods: {
|
|
46
|
+
return (_jsx(PopoverElement, { qa: qa || 'Popover', ...mergeProps(otherProps, overlayProps, modalProps), styles: styles, ref: ref, mods: {
|
|
50
47
|
open: isOpen,
|
|
51
|
-
}, "data-placement": placement,
|
|
48
|
+
}, "data-placement": placement, style: style, children: children }, void 0));
|
|
52
49
|
});
|
|
53
50
|
let _Popover = forwardRef(Popover);
|
|
54
51
|
export { _Popover as Popover };
|
|
@@ -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-9ea74e0
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -13,20 +13,29 @@ import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
|
13
13
|
import { Underlay } from './Underlay';
|
|
14
14
|
import { useModal, useOverlay, usePreventScroll } from '@react-aria/overlays';
|
|
15
15
|
import { OVERLAY_WRAPPER_STYLES } from './Modal';
|
|
16
|
-
import {
|
|
16
|
+
import { tasty } from '../../../tasty';
|
|
17
17
|
import { mergeProps } from '../../../utils/react';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
transition: 'transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear',
|
|
25
|
-
opacity: {
|
|
26
|
-
'': 0,
|
|
27
|
-
open: '.9999',
|
|
18
|
+
const TrayWrapperElement = tasty({
|
|
19
|
+
qa: 'TrayWrapper',
|
|
20
|
+
styles: {
|
|
21
|
+
...OVERLAY_WRAPPER_STYLES,
|
|
22
|
+
placeContent: 'end center',
|
|
23
|
+
placeItems: 'end center',
|
|
28
24
|
},
|
|
29
|
-
};
|
|
25
|
+
});
|
|
26
|
+
const TrayElement = tasty({
|
|
27
|
+
styles: {
|
|
28
|
+
zIndex: 2,
|
|
29
|
+
height: 'max (@cube-visual-viewport-height * .9)',
|
|
30
|
+
width: '288px 90vw',
|
|
31
|
+
pointerEvents: 'auto',
|
|
32
|
+
transition: 'transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear',
|
|
33
|
+
opacity: {
|
|
34
|
+
'': 0,
|
|
35
|
+
open: '.9999',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
});
|
|
30
39
|
function Tray(props, ref) {
|
|
31
40
|
let { qa, children, onClose, isFixedHeight, isNonModal, styles, ...otherProps } = props;
|
|
32
41
|
let domRef = useDOMRef(ref);
|
|
@@ -39,11 +48,6 @@ let TrayWrapper = forwardRef(function (props, ref) {
|
|
|
39
48
|
let { modalProps } = useModal({
|
|
40
49
|
isDisabled: isNonModal,
|
|
41
50
|
});
|
|
42
|
-
styles = {
|
|
43
|
-
...TRAY_STYLES,
|
|
44
|
-
...useContextStyles('Tray', props),
|
|
45
|
-
...styles,
|
|
46
|
-
};
|
|
47
51
|
// We need to measure the window's height in JS rather than using percentages in CSS
|
|
48
52
|
// so that contents (e.g. menu) can inherit the max-height properly. Using percentages
|
|
49
53
|
// does not work properly because there is nothing to base the percentage on.
|
|
@@ -75,13 +79,9 @@ let TrayWrapper = forwardRef(function (props, ref) {
|
|
|
75
79
|
'--cube-visual-viewport-height': height + 'px',
|
|
76
80
|
};
|
|
77
81
|
let domProps = mergeProps(otherProps, overlayProps);
|
|
78
|
-
return (_jsx(
|
|
82
|
+
return (_jsx(TrayWrapperElement, { mods: {
|
|
79
83
|
open: isOpen,
|
|
80
|
-
}, styles: {
|
|
81
|
-
...OVERLAY_WRAPPER_STYLES,
|
|
82
|
-
placeContent: 'end center',
|
|
83
|
-
placeItems: 'end center',
|
|
84
|
-
}, style: wrapperStyle, children: _jsx(Base, { qa: qa || 'Tray', styles: styles, mods: {
|
|
84
|
+
}, style: wrapperStyle, children: _jsx(TrayElement, { qa: qa || 'Tray', styles: styles, mods: {
|
|
85
85
|
open: isOpen,
|
|
86
86
|
'fixed-height': isFixedHeight,
|
|
87
87
|
}, ...domProps, ...modalProps, ref: ref, children: children }, void 0) }, void 0));
|
|
@@ -1,44 +1,38 @@
|
|
|
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-9ea74e0
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { forwardRef } from 'react';
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
import { tasty } from '../../../tasty';
|
|
11
|
+
const UnderlayElement = tasty({
|
|
12
|
+
qa: 'Underlay',
|
|
13
|
+
styles: {
|
|
14
|
+
position: 'fixed',
|
|
15
|
+
top: 0,
|
|
16
|
+
right: 0,
|
|
17
|
+
bottom: 0,
|
|
18
|
+
left: 0,
|
|
19
|
+
zIndex: 1,
|
|
20
|
+
transitionDelay: '0ms',
|
|
21
|
+
opacity: {
|
|
22
|
+
'': 0,
|
|
23
|
+
open: 0.9999,
|
|
24
|
+
},
|
|
25
|
+
pointerEvents: {
|
|
26
|
+
'': 'none',
|
|
27
|
+
open: 'auto',
|
|
28
|
+
},
|
|
29
|
+
fill: '#dark.30',
|
|
30
|
+
overflow: 'hidden',
|
|
31
|
+
transition: 'transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear',
|
|
27
32
|
},
|
|
28
|
-
|
|
29
|
-
'': 'none',
|
|
30
|
-
open: 'auto',
|
|
31
|
-
},
|
|
32
|
-
fill: '#dark.30',
|
|
33
|
-
overflow: 'hidden',
|
|
34
|
-
transition: 'transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear',
|
|
35
|
-
};
|
|
33
|
+
});
|
|
36
34
|
const Underlay = ({ isOpen, ...otherProps }, ref) => {
|
|
37
|
-
|
|
38
|
-
...UNDERLAY_STYLES,
|
|
39
|
-
...useContextStyles('Underlay'),
|
|
40
|
-
};
|
|
41
|
-
return (_jsx(Base, { ref: ref, "data-qa": "Underlay", styles: styles, mods: {
|
|
35
|
+
return (_jsx(UnderlayElement, { ref: ref, mods: {
|
|
42
36
|
open: isOpen,
|
|
43
37
|
}, ...otherProps }, void 0));
|
|
44
38
|
};
|