@cube-dev/ui-kit 0.0.0-canary-00505d5 → 0.0.0-canary-5bf7ae4
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 +22 -0
- package/cjs/_internal/hooks/use-deprecation-warning.js +43 -0
- package/cjs/_internal/index.js +22 -0
- package/cjs/components/Base.js +6 -9
- package/cjs/components/Block.js +3 -6
- package/cjs/components/GlobalStyles.js +1 -1
- package/cjs/components/GridProvider.js +3 -3
- package/cjs/components/HiddenInput.js +1 -1
- package/cjs/components/OpenTrasition.js +1 -1
- package/cjs/components/Root.js +5 -7
- package/cjs/components/actions/Action.js +5 -7
- package/cjs/components/actions/Button/Button.js +3 -3
- 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 +3 -3
- package/cjs/components/actions/index.js +1 -1
- package/cjs/components/content/ActiveZone/ActiveZone.js +5 -7
- package/cjs/components/{organisms → content}/Alert/Alert.js +12 -14
- package/cjs/components/content/Alert/index.js +22 -0
- package/cjs/components/content/Alert/types.js +11 -0
- package/cjs/components/content/Alert/use-alert.js +32 -0
- package/cjs/components/content/Avatar/Avatar.js +4 -6
- package/cjs/components/content/Badge/Badge.js +3 -6
- package/cjs/components/content/Card/Card.js +4 -6
- package/cjs/components/content/Content.js +4 -7
- package/cjs/components/{organisms → content}/CopySnippet/CopySnippet.js +3 -4
- package/cjs/components/content/CopySnippet/index.js +22 -0
- package/cjs/components/content/Divider.js +5 -7
- package/cjs/components/content/Footer.js +5 -8
- package/cjs/components/content/Header.js +4 -7
- package/cjs/components/content/Paragraph.js +4 -5
- package/cjs/components/content/Placeholder/Placeholder.js +4 -6
- package/cjs/components/content/PrismCode/PrismCode.js +2 -3
- package/cjs/components/content/Result/Result.js +3 -6
- package/cjs/components/content/Skeleton/Skeleton.js +1 -1
- package/cjs/components/content/Tag/Tag.js +4 -7
- package/cjs/components/content/Text.js +4 -7
- package/cjs/components/content/Title.js +5 -8
- package/cjs/components/forms/Checkbox/Checkbox.js +9 -12
- package/cjs/components/forms/Checkbox/CheckboxGroup.js +7 -9
- package/cjs/components/forms/Checkbox/context.js +1 -1
- package/cjs/components/forms/FieldWrapper.js +2 -2
- package/cjs/components/forms/FileInput/FileInput.js +4 -6
- package/cjs/components/forms/Form/Field.js +1 -1
- package/cjs/components/forms/Form/Form.js +4 -6
- package/cjs/components/forms/Form/index.js +1 -1
- package/cjs/components/forms/Form/useForm.js +3 -3
- package/cjs/components/forms/Form/validation.js +1 -1
- package/cjs/components/forms/Label.js +4 -8
- 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 +8 -11
- package/cjs/components/forms/RadioGroup/RadioGroup.js +7 -9
- 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 +10 -13
- 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 +7 -9
- package/cjs/components/forms/index.js +1 -1
- package/cjs/components/layout/Flex.js +4 -6
- package/cjs/components/layout/Flow.js +5 -7
- package/cjs/components/layout/Grid.js +4 -6
- package/cjs/components/layout/Prefix.js +5 -7
- package/cjs/components/layout/Space.js +4 -6
- package/cjs/components/layout/Suffix.js +5 -7
- 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 +4 -6
- 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 +5 -7
- 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 +3 -3
- 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 +3 -3
- package/cjs/components/overlays/Modal/Tray.js +3 -3
- package/cjs/components/overlays/Modal/Underlay.js +3 -3
- 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 +5 -7
- 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 +7 -9
- package/cjs/components/pickers/Menu/Menu.js +4 -6
- package/cjs/components/pickers/Menu/MenuButton.js +1 -1
- package/cjs/components/pickers/Menu/MenuItem.js +1 -1
- package/cjs/components/pickers/Menu/MenuSection.js +1 -1
- package/cjs/components/pickers/Menu/MenuTrigger.js +1 -1
- package/cjs/components/pickers/Menu/context.js +1 -1
- package/cjs/components/pickers/Menu/styled.js +1 -1
- package/cjs/components/pickers/Select/Select.js +12 -15
- package/cjs/components/portal/Portal.js +1 -1
- package/cjs/components/portal/PortalProvider.js +1 -1
- package/cjs/components/portal/index.js +1 -1
- package/cjs/components/portal/storybook/templates/CustomRoot.js +1 -1
- package/cjs/components/portal/storybook/templates/PortalOrder.js +1 -1
- package/cjs/components/portal/storybook/templates/basic.js +1 -1
- package/cjs/components/portal/storybook/templates/index.js +1 -1
- package/cjs/components/portal/types.js +1 -1
- package/cjs/components/portal/usePortal.js +1 -1
- package/cjs/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/cjs/components/status/Spin/Spin.js +1 -1
- package/cjs/data/themes.js +1 -1
- package/cjs/index.js +11 -19
- package/cjs/provider.js +4 -5
- 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 +12 -12
- package/cjs/styled/index.js +22 -0
- package/cjs/styled/styled.js +17 -22
- package/cjs/tasty/index.js +13 -1
- package/cjs/tasty/providers/BreakpointsProvider.js +1 -1
- package/cjs/tasty/providers/StylesProvider.js +1 -1
- package/cjs/tasty/styles/align.js +1 -1
- package/cjs/tasty/styles/border.js +1 -1
- package/cjs/tasty/styles/boxShadow.combinator.js +1 -1
- package/cjs/tasty/styles/color.js +1 -1
- package/cjs/tasty/styles/createStyle.js +1 -1
- package/cjs/tasty/styles/dimension.js +1 -1
- package/cjs/tasty/styles/display.js +1 -1
- package/cjs/tasty/styles/fill.js +1 -1
- package/cjs/tasty/styles/flow.js +1 -1
- package/cjs/tasty/styles/font.js +1 -1
- package/cjs/tasty/styles/fontStyle.js +1 -1
- package/cjs/tasty/styles/gap.js +1 -1
- package/cjs/tasty/styles/groupRadius.js +1 -1
- package/cjs/tasty/styles/height.js +1 -1
- package/cjs/tasty/styles/index.js +1 -1
- package/cjs/tasty/styles/justify.js +1 -1
- package/cjs/tasty/styles/list.js +1 -1
- package/cjs/tasty/styles/margin.js +1 -1
- package/cjs/tasty/styles/marginBlock.js +1 -1
- package/cjs/tasty/styles/marginInline.js +1 -1
- package/cjs/tasty/styles/outline.js +1 -1
- package/cjs/tasty/styles/padding.js +1 -1
- package/cjs/tasty/styles/paddingBlock.js +1 -1
- package/cjs/tasty/styles/paddingInline.js +1 -1
- package/cjs/tasty/styles/predefined.js +1 -1
- package/cjs/tasty/styles/preset.js +1 -1
- package/cjs/tasty/styles/radius.js +1 -1
- package/cjs/tasty/styles/reset.js +1 -1
- package/cjs/tasty/styles/shadow.js +1 -1
- package/cjs/tasty/styles/styledScrollbar.js +1 -1
- package/cjs/tasty/styles/transition.js +1 -1
- package/cjs/tasty/styles/types.js +1 -1
- package/cjs/tasty/styles/width.js +1 -1
- package/cjs/tasty/tasty.js +1 -1
- package/cjs/tasty/types.js +1 -1
- package/cjs/tasty/utils/colors.js +1 -1
- package/cjs/tasty/utils/dotize.js +1 -1
- package/cjs/tasty/utils/filterBaseProps.js +1 -1
- package/cjs/tasty/utils/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/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 +3 -3
- 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 +22 -2
- package/es/_internal/hooks/index.js +10 -0
- package/es/_internal/hooks/use-deprecation-warning.js +20 -0
- package/es/_internal/index.js +10 -0
- package/es/components/Base.js +2 -5
- package/es/components/Block.js +2 -5
- 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 +1 -1
- package/es/components/Root.js +2 -4
- package/es/components/actions/Action.js +3 -5
- package/es/components/actions/Button/Button.js +2 -2
- 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 +2 -2
- package/es/components/actions/index.js +1 -1
- package/es/components/content/ActiveZone/ActiveZone.js +2 -4
- package/es/components/{organisms → content}/Alert/Alert.js +12 -14
- package/es/components/content/Alert/index.js +10 -0
- package/es/components/content/Alert/types.js +10 -0
- package/es/components/content/Alert/use-alert.js +28 -0
- package/es/components/content/Avatar/Avatar.js +2 -4
- package/es/components/content/Badge/Badge.js +2 -5
- package/es/components/content/Card/Card.js +2 -4
- package/es/components/content/Content.js +2 -5
- package/es/components/{organisms → content}/CopySnippet/CopySnippet.js +3 -4
- package/es/components/content/CopySnippet/index.js +10 -0
- package/es/components/content/Divider.js +2 -4
- package/es/components/content/Footer.js +2 -5
- package/es/components/content/Header.js +2 -5
- package/es/components/content/Paragraph.js +2 -3
- package/es/components/content/Placeholder/Placeholder.js +2 -4
- package/es/components/content/PrismCode/PrismCode.js +2 -3
- package/es/components/content/Result/Result.js +2 -5
- package/es/components/content/Skeleton/Skeleton.js +1 -1
- package/es/components/content/Tag/Tag.js +2 -5
- package/es/components/content/Text.js +2 -5
- package/es/components/content/Title.js +2 -5
- package/es/components/forms/Checkbox/Checkbox.js +2 -5
- package/es/components/forms/Checkbox/CheckboxGroup.js +2 -4
- package/es/components/forms/Checkbox/context.js +1 -1
- package/es/components/forms/FieldWrapper.js +2 -2
- package/es/components/forms/FileInput/FileInput.js +2 -4
- package/es/components/forms/Form/Field.js +1 -1
- package/es/components/forms/Form/Form.js +3 -5
- package/es/components/forms/Form/index.js +1 -1
- package/es/components/forms/Form/useForm.js +2 -2
- package/es/components/forms/Form/validation.js +1 -1
- package/es/components/forms/Label.js +2 -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 +2 -5
- package/es/components/forms/RadioGroup/RadioGroup.js +2 -4
- 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 +2 -5
- 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 +3 -5
- package/es/components/forms/index.js +1 -1
- package/es/components/layout/Flex.js +2 -4
- package/es/components/layout/Flow.js +2 -4
- package/es/components/layout/Grid.js +2 -4
- package/es/components/layout/Prefix.js +2 -4
- package/es/components/layout/Space.js +2 -4
- package/es/components/layout/Suffix.js +2 -4
- 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 +2 -4
- 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 +2 -4
- 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 +2 -2
- 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 +2 -2
- package/es/components/overlays/Modal/Tray.js +2 -2
- 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 +1 -1
- package/es/components/overlays/OverlayWrapper.js +1 -1
- package/es/components/overlays/Tooltip/Tooltip.js +2 -4
- 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 +2 -4
- package/es/components/pickers/Menu/Menu.js +2 -4
- package/es/components/pickers/Menu/MenuButton.js +1 -1
- package/es/components/pickers/Menu/MenuItem.js +1 -1
- package/es/components/pickers/Menu/MenuSection.js +1 -1
- package/es/components/pickers/Menu/MenuTrigger.js +1 -1
- package/es/components/pickers/Menu/context.js +1 -1
- package/es/components/pickers/Menu/styled.js +1 -1
- package/es/components/pickers/Select/Select.js +3 -6
- package/es/components/portal/Portal.js +1 -1
- package/es/components/portal/PortalProvider.js +1 -1
- package/es/components/portal/index.js +1 -1
- package/es/components/portal/storybook/templates/CustomRoot.js +1 -1
- package/es/components/portal/storybook/templates/PortalOrder.js +1 -1
- package/es/components/portal/storybook/templates/basic.js +1 -1
- package/es/components/portal/storybook/templates/index.js +1 -1
- package/es/components/portal/types.js +1 -1
- package/es/components/portal/usePortal.js +1 -1
- package/es/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/es/components/status/Spin/Spin.js +1 -1
- package/es/data/themes.js +1 -1
- package/es/index.js +8 -11
- package/es/provider.js +2 -3
- 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 +2 -2
- package/es/styled/index.js +10 -0
- package/es/styled/styled.js +4 -9
- package/es/tasty/index.js +13 -1
- package/es/tasty/providers/BreakpointsProvider.js +1 -1
- package/es/tasty/providers/StylesProvider.js +1 -1
- package/es/tasty/styles/align.js +1 -1
- package/es/tasty/styles/border.js +1 -1
- package/es/tasty/styles/boxShadow.combinator.js +1 -1
- package/es/tasty/styles/color.js +1 -1
- package/es/tasty/styles/createStyle.js +1 -1
- package/es/tasty/styles/dimension.js +1 -1
- package/es/tasty/styles/display.js +1 -1
- package/es/tasty/styles/fill.js +1 -1
- package/es/tasty/styles/flow.js +1 -1
- package/es/tasty/styles/font.js +1 -1
- package/es/tasty/styles/fontStyle.js +1 -1
- package/es/tasty/styles/gap.js +1 -1
- package/es/tasty/styles/groupRadius.js +1 -1
- package/es/tasty/styles/height.js +1 -1
- package/es/tasty/styles/index.js +1 -1
- package/es/tasty/styles/justify.js +1 -1
- package/es/tasty/styles/list.js +1 -1
- package/es/tasty/styles/margin.js +1 -1
- package/es/tasty/styles/marginBlock.js +1 -1
- package/es/tasty/styles/marginInline.js +1 -1
- package/es/tasty/styles/outline.js +1 -1
- package/es/tasty/styles/padding.js +1 -1
- package/es/tasty/styles/paddingBlock.js +1 -1
- package/es/tasty/styles/paddingInline.js +1 -1
- package/es/tasty/styles/predefined.js +1 -1
- package/es/tasty/styles/preset.js +1 -1
- package/es/tasty/styles/radius.js +1 -1
- package/es/tasty/styles/reset.js +1 -1
- package/es/tasty/styles/shadow.js +1 -1
- package/es/tasty/styles/styledScrollbar.js +1 -1
- package/es/tasty/styles/transition.js +1 -1
- package/es/tasty/styles/types.js +1 -1
- package/es/tasty/styles/width.js +1 -1
- package/es/tasty/tasty.js +1 -1
- package/es/tasty/types.js +1 -1
- package/es/tasty/utils/colors.js +1 -1
- package/es/tasty/utils/dotize.js +1 -1
- package/es/tasty/utils/filterBaseProps.js +1 -1
- package/es/tasty/utils/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/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 +2 -2
- 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 +20 -1
- package/package.json +1 -1
- package/types/_internal/hooks/index.d.ts +1 -0
- package/types/_internal/hooks/use-deprecation-warning.d.ts +2 -0
- package/types/_internal/index.d.ts +1 -0
- package/types/components/Base.d.ts +1 -1
- package/types/components/Block.d.ts +1 -1
- package/types/components/GridProvider.d.ts +1 -1
- package/types/components/Root.d.ts +1 -1
- package/types/components/actions/Action.d.ts +1 -1
- package/types/components/content/ActiveZone/ActiveZone.d.ts +1 -1
- package/types/components/content/Alert/Alert.d.ts +3 -0
- package/types/components/content/Alert/index.d.ts +2 -0
- package/types/components/content/Alert/types.d.ts +17 -0
- package/types/components/content/Alert/use-alert.d.ts +6 -0
- package/types/components/content/Avatar/Avatar.d.ts +1 -2
- package/types/components/content/Badge/Badge.d.ts +1 -1
- package/types/components/content/Card/Card.d.ts +1 -1
- package/types/components/content/Content.d.ts +1 -1
- package/types/components/{organisms → content}/CopySnippet/CopySnippet.d.ts +2 -2
- package/types/components/content/CopySnippet/index.d.ts +1 -0
- package/types/components/content/Divider.d.ts +1 -1
- package/types/components/content/Footer.d.ts +1 -1
- package/types/components/content/Header.d.ts +1 -1
- package/types/components/content/Paragraph.d.ts +1 -1
- package/types/components/content/Placeholder/Placeholder.d.ts +1 -2
- package/types/components/content/PrismCode/PrismCode.d.ts +1 -2
- package/types/components/content/Result/Result.d.ts +1 -1
- package/types/components/content/Skeleton/Skeleton.d.ts +1 -1
- package/types/components/content/Tag/Tag.d.ts +1 -1
- package/types/components/content/Text.d.ts +1 -2
- package/types/components/content/Title.d.ts +1 -1
- package/types/components/forms/Checkbox/Checkbox.d.ts +1 -1
- package/types/components/forms/Checkbox/CheckboxGroup.d.ts +1 -1
- package/types/components/forms/FieldWrapper.d.ts +1 -1
- package/types/components/forms/FileInput/FileInput.d.ts +1 -2
- package/types/components/forms/Form/Form.d.ts +2 -3
- package/types/components/forms/Label.d.ts +1 -2
- package/types/components/forms/RadioGroup/Radio.d.ts +1 -2
- package/types/components/forms/RadioGroup/RadioGroup.d.ts +1 -2
- package/types/components/forms/Switch/Switch.d.ts +1 -2
- package/types/components/forms/TextInput/TextInputBase.d.ts +1 -2
- package/types/components/layout/Flex.d.ts +1 -1
- package/types/components/layout/Flow.d.ts +1 -1
- package/types/components/layout/Grid.d.ts +1 -1
- package/types/components/layout/Prefix.d.ts +1 -1
- package/types/components/layout/Space.d.ts +1 -1
- package/types/components/layout/Suffix.d.ts +1 -1
- package/types/components/navigation/LegacyTabs/LegacyTabs.d.ts +1 -1
- package/types/components/organisms/FileTabs/FileTabs.d.ts +4 -1
- package/types/components/other/Base64Upload/Base64Upload.d.ts +1 -1
- package/types/components/overlays/AlertDialog/types.d.ts +1 -1
- package/types/components/overlays/Dialog/Dialog.d.ts +1 -1
- package/types/components/overlays/Dialog/DialogTrigger.d.ts +1 -1
- package/types/components/overlays/Modal/Modal.d.ts +1 -2
- package/types/components/overlays/Modal/Popover.d.ts +1 -1
- package/types/components/overlays/Modal/Tray.d.ts +1 -2
- package/types/components/overlays/Tooltip/Tooltip.d.ts +1 -2
- package/types/components/overlays/Tooltip/TooltipProvider.d.ts +1 -1
- package/types/components/overlays/Tooltip/context.d.ts +1 -1
- package/types/components/pickers/Menu/Menu.d.ts +2 -3
- package/types/components/pickers/Menu/styled.d.ts +128 -128
- package/types/components/pickers/Select/Select.d.ts +1 -2
- package/types/index.d.ts +8 -16
- package/types/provider.d.ts +1 -2
- package/types/shared/form.d.ts +1 -2
- package/types/stories/components/StyledButton.d.ts +84 -84
- package/types/styled/index.d.ts +1 -0
- package/types/styled/styled.d.ts +1 -3
- package/types/tasty/index.d.ts +15 -1
- package/types/tasty/styles/index.d.ts +1 -1
- package/types/tasty/styles/preset.d.ts +1 -1
- package/types/tasty/styles/types.d.ts +1 -1
- package/types/tasty/types.d.ts +1 -1
- package/types/utils/react/index.d.ts +1 -1
- package/types/utils/react/mergeProps.d.ts +1 -1
- package/types/utils/react/nullableValue.d.ts +1 -1
- package/types/utils/warnings.d.ts +6 -0
- package/cjs/components/organisms/DirectoryTree/DirectoryTree.js +0 -166
- package/cjs/components/organisms/SearchResults/SearchResults.js +0 -108
- package/cjs/components/organisms/TopBar/TopBar.js +0 -33
- package/es/components/organisms/DirectoryTree/DirectoryTree.js +0 -162
- package/es/components/organisms/SearchResults/SearchResults.js +0 -104
- package/es/components/organisms/TopBar/TopBar.js +0 -29
- package/types/components/organisms/Alert/Alert.d.ts +0 -8
- package/types/components/organisms/DirectoryTree/DirectoryTree.d.ts +0 -44
- package/types/components/organisms/SearchResults/SearchResults.d.ts +0 -31
- package/types/components/organisms/TopBar/TopBar.d.ts +0 -6
|
@@ -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-5bf7ae4
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -17,9 +17,7 @@ const actions_1 = require("../../actions");
|
|
|
17
17
|
const Block_1 = require("../../Block");
|
|
18
18
|
const Text_1 = require("../../content/Text");
|
|
19
19
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
20
|
-
const
|
|
21
|
-
const list_1 = require("../../../tasty/styles/list");
|
|
22
|
-
const filterBaseProps_1 = require("../../../tasty/utils/filterBaseProps");
|
|
20
|
+
const tasty_1 = require("../../../tasty");
|
|
23
21
|
const DEFAULT_STYLES = {
|
|
24
22
|
display: 'inline-flex',
|
|
25
23
|
padding: '.75x 1x',
|
|
@@ -32,7 +30,7 @@ const DEFAULT_STYLES = {
|
|
|
32
30
|
};
|
|
33
31
|
exports.Base64Upload = (0, styled_components_1.default)((0, react_1.forwardRef)((allProps, ref) => {
|
|
34
32
|
const { onInput, ...props } = allProps;
|
|
35
|
-
const styles = (0,
|
|
33
|
+
const styles = (0, tasty_1.extractStyles)(props, tasty_1.POSITION_STYLES, DEFAULT_STYLES);
|
|
36
34
|
const [file, setFile] = (0, react_1.useState)();
|
|
37
35
|
const [error, setError] = (0, react_1.useState)('');
|
|
38
36
|
function onInputFile(e) {
|
|
@@ -76,7 +74,7 @@ exports.Base64Upload = (0, styled_components_1.default)((0, react_1.forwardRef)(
|
|
|
76
74
|
setError('Invalid file');
|
|
77
75
|
}
|
|
78
76
|
}
|
|
79
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(actions_1.Button, { ...(0,
|
|
77
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(actions_1.Button, { ...(0, tasty_1.filterBaseProps)(props, { eventProps: true }), styles: styles, ref: ref, children: [(0, jsx_runtime_1.jsx)(Block_1.Block, { radius: "round", fill: "#purple.10", color: "#dark-02", padding: ".5x 1x", children: "Choose file" }, void 0), (0, jsx_runtime_1.jsx)(Block_1.Block, { color: "#dark-04", children: file || 'No file selected' }, void 0), (0, jsx_runtime_1.jsx)("input", { type: "file", name: "base64", onInput: onInputFile, accept: ".json" }, void 0)] }, void 0), error && (0, jsx_runtime_1.jsx)(Text_1.Text.Danger, { color: "danger", children: error }, void 0)] }, void 0));
|
|
80
78
|
})) `
|
|
81
79
|
appearance: none;
|
|
82
80
|
cursor: pointer;
|
|
@@ -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-5bf7ae4
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -19,11 +19,9 @@ const dialog_1 = require("@react-aria/dialog");
|
|
|
19
19
|
const i18n_1 = require("@react-aria/i18n");
|
|
20
20
|
const Base_1 = require("../../Base");
|
|
21
21
|
const icons_1 = require("@ant-design/icons");
|
|
22
|
-
const
|
|
23
|
-
const list_1 = require("../../../tasty/styles/list");
|
|
22
|
+
const tasty_1 = require("../../../tasty");
|
|
24
23
|
const react_2 = require("../../../utils/react");
|
|
25
|
-
const
|
|
26
|
-
const STYLES_LIST = [...list_1.BASE_STYLES, ...list_1.DIMENSION_STYLES, ...list_1.BLOCK_STYLES];
|
|
24
|
+
const STYLES_LIST = [...tasty_1.BASE_STYLES, ...tasty_1.DIMENSION_STYLES, ...tasty_1.BLOCK_STYLES];
|
|
27
25
|
const DEFAULT_STYLES = {
|
|
28
26
|
pointerEvents: 'auto',
|
|
29
27
|
position: 'relative',
|
|
@@ -106,8 +104,8 @@ function Dialog(props, ref) {
|
|
|
106
104
|
size = sizeMap[size.toUpperCase()] || size;
|
|
107
105
|
const styles = {
|
|
108
106
|
...DEFAULT_STYLES,
|
|
109
|
-
...(0,
|
|
110
|
-
...(0,
|
|
107
|
+
...(0, tasty_1.useContextStyles)('Dialog', props),
|
|
108
|
+
...(0, tasty_1.extractStyles)(otherProps, STYLES_LIST),
|
|
111
109
|
'@dialog-size': `${sizePxMap[size] || 288}px`,
|
|
112
110
|
};
|
|
113
111
|
let formatMessage = (0, i18n_1.useMessageFormatter)(intlMessages);
|
|
@@ -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-5bf7ae4
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ const react_1 = require("react");
|
|
|
16
16
|
const Underlay_1 = require("./Underlay");
|
|
17
17
|
const overlays_1 = require("@react-aria/overlays");
|
|
18
18
|
const Base_1 = require("../../Base");
|
|
19
|
-
const
|
|
19
|
+
const tasty_1 = require("../../../tasty");
|
|
20
20
|
const react_2 = require("../../../utils/react");
|
|
21
21
|
exports.OVERLAY_WRAPPER_STYLES = {
|
|
22
22
|
position: 'fixed',
|
|
@@ -69,7 +69,7 @@ let ModalWrapper = (0, react_1.forwardRef)(function ModalWrapper(props, ref) {
|
|
|
69
69
|
let { qa, children, isOpen, type, placement, styles, overlayProps, ...otherProps } = props;
|
|
70
70
|
styles = {
|
|
71
71
|
...MODAL_STYLES,
|
|
72
|
-
...(0,
|
|
72
|
+
...(0, tasty_1.useContextStyles)('Modal', props),
|
|
73
73
|
...styles,
|
|
74
74
|
};
|
|
75
75
|
(0, overlays_1.usePreventScroll)();
|
|
@@ -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-5bf7ae4
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ const Overlay_1 = require("./Overlay");
|
|
|
14
14
|
const react_2 = require("react");
|
|
15
15
|
const overlays_1 = require("@react-aria/overlays");
|
|
16
16
|
const Base_1 = require("../../Base");
|
|
17
|
-
const
|
|
17
|
+
const tasty_1 = require("../../../tasty");
|
|
18
18
|
const POPOVER_STYLES = {
|
|
19
19
|
pointerEvents: 'auto',
|
|
20
20
|
position: 'absolute',
|
|
@@ -46,7 +46,7 @@ const PopoverWrapper = (0, react_2.forwardRef)((props, ref) => {
|
|
|
46
46
|
});
|
|
47
47
|
styles = {
|
|
48
48
|
...POPOVER_STYLES,
|
|
49
|
-
...(0,
|
|
49
|
+
...(0, tasty_1.useContextStyles)('Popover', props),
|
|
50
50
|
...styles,
|
|
51
51
|
};
|
|
52
52
|
return ((0, jsx_runtime_1.jsx)(Base_1.Base, { qa: qa || 'Popover', ...(0, react_1.mergeProps)(otherProps, overlayProps, modalProps), styles: styles, ref: ref, mods: {
|
|
@@ -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-5bf7ae4
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ const Underlay_1 = require("./Underlay");
|
|
|
17
17
|
const overlays_1 = require("@react-aria/overlays");
|
|
18
18
|
const Modal_1 = require("./Modal");
|
|
19
19
|
const Base_1 = require("../../Base");
|
|
20
|
-
const
|
|
20
|
+
const tasty_1 = require("../../../tasty");
|
|
21
21
|
const react_2 = require("../../../utils/react");
|
|
22
22
|
const TRAY_STYLES = {
|
|
23
23
|
zIndex: 2,
|
|
@@ -44,7 +44,7 @@ let TrayWrapper = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
44
44
|
});
|
|
45
45
|
styles = {
|
|
46
46
|
...TRAY_STYLES,
|
|
47
|
-
...(0,
|
|
47
|
+
...(0, tasty_1.useContextStyles)('Tray', props),
|
|
48
48
|
...styles,
|
|
49
49
|
};
|
|
50
50
|
// We need to measure the window's height in JS rather than using percentages in CSS
|
|
@@ -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-5bf7ae4
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ exports.Underlay = void 0;
|
|
|
11
11
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
12
|
const react_1 = require("react");
|
|
13
13
|
const Base_1 = require("../../Base");
|
|
14
|
-
const
|
|
14
|
+
const tasty_1 = require("../../../tasty");
|
|
15
15
|
const UNDERLAY_STYLES = {
|
|
16
16
|
position: 'fixed',
|
|
17
17
|
top: 0,
|
|
@@ -39,7 +39,7 @@ const UNDERLAY_STYLES = {
|
|
|
39
39
|
const Underlay = ({ isOpen, ...otherProps }, ref) => {
|
|
40
40
|
const styles = {
|
|
41
41
|
...UNDERLAY_STYLES,
|
|
42
|
-
...(0,
|
|
42
|
+
...(0, tasty_1.useContextStyles)('Underlay'),
|
|
43
43
|
};
|
|
44
44
|
return ((0, jsx_runtime_1.jsx)(Base_1.Base, { ref: ref, "data-qa": "Underlay", styles: styles, mods: {
|
|
45
45
|
open: isOpen,
|
|
@@ -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-5bf7ae4
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -15,9 +15,7 @@ const utils_1 = require("@react-spectrum/utils");
|
|
|
15
15
|
const context_1 = require("./context");
|
|
16
16
|
const tooltip_1 = require("@react-aria/tooltip");
|
|
17
17
|
const Base_1 = require("../../Base");
|
|
18
|
-
const
|
|
19
|
-
const list_1 = require("../../../tasty/styles/list");
|
|
20
|
-
const StylesProvider_1 = require("../../../tasty/providers/StylesProvider");
|
|
18
|
+
const tasty_1 = require("../../../tasty");
|
|
21
19
|
const transitions_1 = require("../../../utils/transitions");
|
|
22
20
|
const TOOLTIP_STYLES = {
|
|
23
21
|
display: 'block',
|
|
@@ -68,14 +66,14 @@ function Tooltip(props, ref) {
|
|
|
68
66
|
overlayRef = overlayRef || defaultRef;
|
|
69
67
|
props = (0, react_2.mergeProps)(props, tooltipProviderProps);
|
|
70
68
|
let { placement = 'top', isOpen, tipStyles, showIcon, isMaterial, ...otherProps } = props;
|
|
71
|
-
const styles = (0,
|
|
69
|
+
const styles = (0, tasty_1.extractStyles)(otherProps, tasty_1.CONTAINER_STYLES, {
|
|
72
70
|
...TOOLTIP_STYLES,
|
|
73
71
|
pointerEvents: isMaterial ? 'auto' : 'none',
|
|
74
|
-
...(0,
|
|
72
|
+
...(0, tasty_1.useContextStyles)('Tooltip', props),
|
|
75
73
|
});
|
|
76
74
|
tipStyles = {
|
|
77
75
|
...TIP_STYLES,
|
|
78
|
-
...(0,
|
|
76
|
+
...(0, tasty_1.useContextStyles)('Tooltip_Tip'),
|
|
79
77
|
...tipStyles,
|
|
80
78
|
};
|
|
81
79
|
let { tooltipProps } = (0, tooltip_1.useTooltip)(props, state);
|
|
@@ -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-5bf7ae4
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -20,10 +20,8 @@ const interactions_1 = require("@react-aria/interactions");
|
|
|
20
20
|
const provider_1 = require("../../../provider");
|
|
21
21
|
const i18n_1 = require("@react-aria/i18n");
|
|
22
22
|
const Base_1 = require("../../Base");
|
|
23
|
-
const
|
|
24
|
-
const list_1 = require("../../../tasty/styles/list");
|
|
23
|
+
const tasty_1 = require("../../../tasty");
|
|
25
24
|
const interactions_2 = require("../../../utils/react/interactions");
|
|
26
|
-
const StylesProvider_1 = require("../../../tasty/providers/StylesProvider");
|
|
27
25
|
const react_2 = require("../../../utils/react");
|
|
28
26
|
const FieldWrapper_1 = require("../../forms/FieldWrapper");
|
|
29
27
|
const Select_1 = require("../Select/Select");
|
|
@@ -74,19 +72,19 @@ function ComboBox(props, ref) {
|
|
|
74
72
|
defaultFilter: filter || contains,
|
|
75
73
|
allowsEmptyCollection: isAsync,
|
|
76
74
|
});
|
|
77
|
-
const outerStyles = (0,
|
|
75
|
+
const outerStyles = (0, tasty_1.extractStyles)(otherProps, tasty_1.OUTER_STYLES, {
|
|
78
76
|
...COMBOBOX_STYLES,
|
|
79
|
-
...(0,
|
|
77
|
+
...(0, tasty_1.useContextStyles)('ComboBox_Wrapper', props),
|
|
80
78
|
...styles,
|
|
81
79
|
});
|
|
82
|
-
inputStyles = (0,
|
|
80
|
+
inputStyles = (0, tasty_1.extractStyles)(otherProps, tasty_1.BLOCK_STYLES, {
|
|
83
81
|
...INPUT_STYLES,
|
|
84
|
-
...(0,
|
|
82
|
+
...(0, tasty_1.useContextStyles)('ComboBox', props),
|
|
85
83
|
...inputStyles,
|
|
86
84
|
});
|
|
87
85
|
triggerStyles = {
|
|
88
86
|
...TRIGGER_STYLES,
|
|
89
|
-
...(0,
|
|
87
|
+
...(0, tasty_1.useContextStyles)('ComboBox_Trigger', props),
|
|
90
88
|
...triggerStyles,
|
|
91
89
|
};
|
|
92
90
|
ref = (0, react_2.useCombinedRefs)(ref);
|
|
@@ -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-5bf7ae4
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -18,9 +18,7 @@ const menu_1 = require("@react-aria/menu");
|
|
|
18
18
|
const utils_1 = require("@react-aria/utils");
|
|
19
19
|
const utils_2 = require("@react-spectrum/utils");
|
|
20
20
|
const tree_1 = require("@react-stately/tree");
|
|
21
|
-
const
|
|
22
|
-
const list_1 = require("../../../tasty/styles/list");
|
|
23
|
-
const styles_1 = require("../../../tasty/utils/styles");
|
|
21
|
+
const tasty_1 = require("../../../tasty");
|
|
24
22
|
const styled_1 = require("./styled");
|
|
25
23
|
const MenuItem_1 = require("./MenuItem");
|
|
26
24
|
const MenuSection_1 = require("./MenuSection");
|
|
@@ -34,8 +32,8 @@ function Menu(props, ref) {
|
|
|
34
32
|
const items = [...state.collection];
|
|
35
33
|
const hasSections = items.some((item) => item.type === 'section');
|
|
36
34
|
const { menuProps } = (0, menu_1.useMenu)(completeProps, state, domRef);
|
|
37
|
-
const menuStyles = (0,
|
|
38
|
-
const containerStyles = (0,
|
|
35
|
+
const menuStyles = (0, tasty_1.useContextStyles)('Menu', props) || {};
|
|
36
|
+
const containerStyles = (0, tasty_1.extractStyles)(completeProps, tasty_1.CONTAINER_STYLES);
|
|
39
37
|
const baseProps = {
|
|
40
38
|
styles: {
|
|
41
39
|
...menuStyles,
|