@cube-dev/ui-kit 0.0.0-canary-fd8d7fd → 0.0.0-canary-70220b3
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/{tasty → _internal/hooks}/index.js +2 -5
- package/cjs/_internal/hooks/use-deprecation-warning.js +43 -0
- package/cjs/_internal/index.js +22 -0
- package/cjs/components/Base.js +6 -6
- package/cjs/components/Block.js +11 -13
- package/cjs/components/GlobalStyles.js +1 -1
- package/cjs/components/GridProvider.js +5 -5
- package/cjs/components/HiddenInput.js +1 -1
- package/cjs/components/OpenTrasition.js +1 -1
- package/cjs/components/Root.js +4 -4
- package/cjs/components/actions/Action.js +7 -7
- package/cjs/components/actions/Button/Button.js +4 -4
- 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 +2 -2
- package/cjs/components/actions/index.js +1 -1
- package/cjs/components/content/ActiveZone/ActiveZone.js +5 -5
- package/cjs/components/{organisms → content}/Alert/Alert.js +12 -14
- package/cjs/components/content/Alert/index.js +22 -0
- package/cjs/{tasty/styles → components/content/Alert}/types.js +1 -1
- package/cjs/components/content/Alert/use-alert.js +34 -0
- package/cjs/components/content/Avatar/Avatar.js +4 -4
- package/cjs/components/content/Badge/Badge.js +8 -8
- package/cjs/components/content/Card/Card.js +4 -4
- package/cjs/components/content/Content.js +11 -8
- package/cjs/components/{organisms → content}/CopySnippet/CopySnippet.js +7 -7
- package/cjs/components/content/CopySnippet/index.js +22 -0
- package/cjs/components/content/Divider.js +4 -4
- package/cjs/components/content/Footer.js +10 -8
- package/cjs/components/content/Header.js +9 -8
- package/cjs/components/content/Paragraph.js +3 -3
- package/cjs/components/content/Placeholder/Placeholder.js +4 -4
- package/cjs/components/content/PrismCode/PrismCode.js +7 -7
- package/cjs/components/content/Result/Result.js +9 -9
- package/cjs/components/content/Skeleton/Skeleton.js +7 -7
- package/cjs/components/content/Tag/Tag.js +26 -31
- package/cjs/components/content/Text.js +34 -33
- package/cjs/components/content/Title.js +33 -29
- package/cjs/components/forms/Checkbox/Checkbox.js +6 -6
- package/cjs/components/forms/Checkbox/CheckboxGroup.js +4 -4
- package/cjs/components/forms/Checkbox/context.js +1 -1
- package/cjs/components/forms/FieldWrapper.js +10 -6
- package/cjs/components/forms/FileInput/FileInput.js +4 -4
- package/cjs/components/forms/Form/Field.js +1 -1
- package/cjs/components/forms/Form/Form.js +6 -6
- package/cjs/components/forms/Form/index.js +1 -1
- package/cjs/components/forms/Form/useForm.js +2 -2
- package/cjs/components/forms/Form/validation.js +1 -1
- package/cjs/components/forms/Label.js +14 -16
- package/cjs/components/forms/NumberInput/NumberInput.js +3 -3
- 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 +6 -6
- package/cjs/components/forms/RadioGroup/RadioGroup.js +4 -4
- 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 +6 -6
- package/cjs/components/forms/TextArea/TextArea.js +5 -5
- package/cjs/components/forms/TextInput/TextInput.js +1 -1
- package/cjs/components/forms/TextInput/TextInputBase.js +5 -5
- package/cjs/components/forms/index.js +1 -1
- package/cjs/components/layout/Flex.js +4 -4
- package/cjs/components/layout/Flow.js +4 -4
- package/cjs/components/layout/Grid.js +4 -4
- package/cjs/components/layout/Prefix.js +4 -4
- package/cjs/components/layout/Space.js +4 -4
- package/cjs/components/layout/Suffix.js +4 -4
- 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 +9 -16
- 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 -4
- 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 +4 -4
- 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 +8 -8
- 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 +2 -2
- 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 +2 -2
- package/cjs/components/overlays/Modal/Tray.js +2 -2
- package/cjs/components/overlays/Modal/Underlay.js +2 -2
- package/cjs/components/overlays/Modal/index.js +1 -1
- package/cjs/components/overlays/Notification/Notification.js +1 -1
- package/cjs/components/overlays/OverlayWrapper.js +1 -1
- package/cjs/components/overlays/Tooltip/Tooltip.js +4 -4
- 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 +5 -5
- package/cjs/components/pickers/Menu/Menu.js +4 -4
- 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 +15 -15
- package/cjs/components/pickers/Select/Select.js +5 -5
- 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/{tasty → components}/types.js +1 -1
- package/cjs/data/themes.js +1 -1
- package/cjs/index.js +11 -18
- package/cjs/provider.js +3 -3
- package/cjs/{tasty/providers → providers}/BreakpointsProvider.js +1 -1
- package/cjs/{tasty/providers → providers}/StylesProvider.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 +4 -4
- package/cjs/stories/lists/baseProps.js +2 -2
- package/cjs/styled/index.js +22 -0
- package/cjs/styled/styled.js +14 -13
- package/cjs/{tasty/styles → styles}/align.js +1 -1
- package/cjs/{tasty/styles → styles}/border.js +1 -1
- package/cjs/{tasty/styles → styles}/boxShadow.combinator.js +1 -1
- package/cjs/{tasty/styles → styles}/color.js +1 -1
- package/cjs/{tasty/styles → styles}/createStyle.js +1 -1
- package/cjs/{tasty/styles → styles}/dimension.js +1 -1
- package/cjs/{tasty/styles → styles}/display.js +1 -1
- package/cjs/{tasty/styles → styles}/fill.js +1 -1
- package/cjs/{tasty/styles → styles}/flow.js +1 -1
- package/cjs/{tasty/styles → styles}/font.js +1 -1
- package/cjs/{tasty/styles → styles}/fontStyle.js +1 -1
- package/cjs/{tasty/styles → styles}/gap.js +1 -1
- package/cjs/{tasty/styles → styles}/groupRadius.js +1 -1
- package/cjs/{tasty/styles → styles}/height.js +1 -1
- package/cjs/{tasty/styles → styles}/index.js +1 -1
- package/cjs/{tasty/styles → styles}/justify.js +1 -1
- package/cjs/{tasty/styles → styles}/list.js +1 -1
- package/cjs/{tasty/styles → styles}/margin.js +4 -4
- package/cjs/{tasty/styles → styles}/marginBlock.js +1 -1
- package/cjs/{tasty/styles → styles}/marginInline.js +1 -1
- package/cjs/{tasty/styles → styles}/outline.js +1 -1
- package/cjs/{tasty/styles → styles}/padding.js +6 -6
- package/cjs/{tasty/styles → styles}/paddingBlock.js +1 -1
- package/cjs/{tasty/styles → styles}/paddingInline.js +1 -1
- package/cjs/{tasty/styles → styles}/predefined.js +1 -1
- package/cjs/{tasty/styles → styles}/preset.js +1 -1
- package/cjs/{tasty/styles → styles}/radius.js +1 -1
- package/cjs/{tasty/styles → styles}/reset.js +1 -1
- package/cjs/{tasty/styles → styles}/shadow.js +1 -1
- package/cjs/{tasty/styles → styles}/styledScrollbar.js +1 -1
- package/cjs/{tasty/styles → styles}/transition.js +1 -1
- package/cjs/styles/types.js +11 -0
- package/cjs/{tasty/styles → styles}/width.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 -6
- package/cjs/utils/ResizeSensor.js +1 -1
- package/cjs/{tasty/utils → utils}/colors.js +1 -1
- package/cjs/{tasty/utils → utils}/dotize.js +1 -1
- package/cjs/utils/escape-string.js +21 -0
- package/cjs/{tasty/utils → utils}/filterBaseProps.js +1 -1
- package/cjs/{tasty/utils → utils}/index.js +1 -1
- package/cjs/utils/{react/interactions.js → interactions.js} +1 -1
- package/cjs/{tasty/utils → utils}/mergeStyles.js +1 -1
- package/cjs/utils/modules.js +1 -1
- package/cjs/utils/promise.js +1 -1
- package/cjs/utils/react/Slots.js +2 -2
- package/cjs/utils/react/chain.js +1 -1
- package/cjs/utils/react/index.js +2 -2
- package/cjs/utils/react/isTextOnly.js +1 -1
- package/cjs/utils/react/mapProps.js +1 -1
- package/cjs/utils/react/mergeProps.js +15 -15
- package/cjs/{tasty/utils → utils/react}/modAttrs.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/{tasty/utils → utils}/renderStyles.js +4 -6
- package/cjs/{tasty/utils → utils}/responsive.js +1 -1
- package/cjs/{tasty/utils → utils}/string.js +1 -1
- package/cjs/{tasty/utils → utils}/styles.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 +6 -6
- package/es/components/Block.js +10 -12
- package/es/components/GlobalStyles.js +1 -1
- package/es/components/GridProvider.js +5 -5
- package/es/components/HiddenInput.js +1 -1
- package/es/components/OpenTrasition.js +1 -1
- package/es/components/Root.js +4 -4
- package/es/components/actions/Action.js +7 -7
- package/es/components/actions/Button/Button.js +4 -4
- 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 +5 -5
- package/es/components/{organisms → content}/Alert/Alert.js +12 -14
- package/es/components/content/Alert/index.js +10 -0
- package/es/{tasty → components/content/Alert}/types.js +1 -1
- package/es/components/content/Alert/use-alert.js +30 -0
- package/es/components/content/Avatar/Avatar.js +4 -4
- package/es/components/content/Badge/Badge.js +8 -8
- package/es/components/content/Card/Card.js +4 -4
- package/es/components/content/Content.js +11 -8
- package/es/components/{organisms → content}/CopySnippet/CopySnippet.js +6 -6
- package/es/components/content/CopySnippet/index.js +10 -0
- package/es/components/content/Divider.js +4 -4
- package/es/components/content/Footer.js +10 -8
- package/es/components/content/Header.js +9 -8
- package/es/components/content/Paragraph.js +3 -3
- package/es/components/content/Placeholder/Placeholder.js +4 -4
- package/es/components/content/PrismCode/PrismCode.js +7 -7
- package/es/components/content/Result/Result.js +9 -9
- package/es/components/content/Skeleton/Skeleton.js +7 -7
- package/es/components/content/Tag/Tag.js +26 -31
- package/es/components/content/Text.js +34 -33
- package/es/components/content/Title.js +33 -29
- package/es/components/forms/Checkbox/Checkbox.js +6 -6
- package/es/components/forms/Checkbox/CheckboxGroup.js +4 -4
- package/es/components/forms/Checkbox/context.js +1 -1
- package/es/components/forms/FieldWrapper.js +10 -6
- package/es/components/forms/FileInput/FileInput.js +4 -4
- package/es/components/forms/Form/Field.js +1 -1
- package/es/components/forms/Form/Form.js +6 -6
- 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 +14 -16
- package/es/components/forms/NumberInput/NumberInput.js +3 -3
- 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 +6 -6
- package/es/components/forms/RadioGroup/RadioGroup.js +4 -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 +6 -6
- package/es/components/forms/TextArea/TextArea.js +5 -5
- package/es/components/forms/TextInput/TextInput.js +1 -1
- package/es/components/forms/TextInput/TextInputBase.js +5 -5
- package/es/components/forms/index.js +1 -1
- package/es/components/layout/Flex.js +4 -4
- package/es/components/layout/Flow.js +4 -4
- package/es/components/layout/Grid.js +4 -4
- package/es/components/layout/Prefix.js +4 -4
- package/es/components/layout/Space.js +4 -4
- package/es/components/layout/Suffix.js +4 -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 +9 -16
- 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 +4 -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 +4 -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 +8 -8
- package/es/components/overlays/Dialog/context.js +1 -1
- package/es/components/overlays/Dialog/index.js +1 -1
- package/es/components/overlays/Modal/Modal.js +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 +4 -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 +5 -5
- package/es/components/pickers/Menu/Menu.js +4 -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 +15 -15
- package/es/components/pickers/Select/Select.js +5 -5
- 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/{tasty/styles → components}/types.js +1 -1
- package/es/data/themes.js +1 -1
- package/es/index.js +10 -12
- package/es/provider.js +3 -3
- package/es/{tasty/providers → providers}/BreakpointsProvider.js +1 -1
- package/es/{tasty/providers → providers}/StylesProvider.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 +4 -4
- package/es/stories/lists/baseProps.js +2 -2
- package/es/styled/index.js +10 -0
- package/es/styled/styled.js +12 -12
- package/es/{tasty/styles → styles}/align.js +1 -1
- package/es/{tasty/styles → styles}/border.js +1 -1
- package/es/{tasty/styles → styles}/boxShadow.combinator.js +1 -1
- package/es/{tasty/styles → styles}/color.js +1 -1
- package/es/{tasty/styles → styles}/createStyle.js +1 -1
- package/es/{tasty/styles → styles}/dimension.js +1 -1
- package/es/{tasty/styles → styles}/display.js +1 -1
- package/es/{tasty/styles → styles}/fill.js +1 -1
- package/es/{tasty/styles → styles}/flow.js +1 -1
- package/es/{tasty/styles → styles}/font.js +1 -1
- package/es/{tasty/styles → styles}/fontStyle.js +1 -1
- package/es/{tasty/styles → styles}/gap.js +1 -1
- package/es/{tasty/styles → styles}/groupRadius.js +1 -1
- package/es/{tasty/styles → styles}/height.js +1 -1
- package/es/{tasty/styles → styles}/index.js +1 -1
- package/es/{tasty/styles → styles}/justify.js +1 -1
- package/es/{tasty/styles → styles}/list.js +1 -1
- package/es/{tasty/styles → styles}/margin.js +4 -4
- package/es/{tasty/styles → styles}/marginBlock.js +1 -1
- package/es/{tasty/styles → styles}/marginInline.js +1 -1
- package/es/{tasty/styles → styles}/outline.js +1 -1
- package/es/{tasty/styles → styles}/padding.js +6 -6
- package/es/{tasty/styles → styles}/paddingBlock.js +1 -1
- package/es/{tasty/styles → styles}/paddingInline.js +1 -1
- package/es/{tasty/styles → styles}/predefined.js +1 -1
- package/es/{tasty/styles → styles}/preset.js +1 -1
- package/es/{tasty/styles → styles}/radius.js +1 -1
- package/es/{tasty/styles → styles}/reset.js +1 -1
- package/es/{tasty/styles → styles}/shadow.js +1 -1
- package/es/{tasty/styles → styles}/styledScrollbar.js +1 -1
- package/es/{tasty/styles → styles}/transition.js +1 -1
- package/es/styles/types.js +10 -0
- package/es/{tasty/styles → styles}/width.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 -6
- package/es/utils/ResizeSensor.js +1 -1
- package/es/{tasty/utils → utils}/colors.js +1 -1
- package/es/{tasty/utils → utils}/dotize.js +1 -1
- package/es/utils/escape-string.js +18 -0
- package/es/{tasty/utils → utils}/filterBaseProps.js +1 -1
- package/es/{tasty/utils → utils}/index.js +1 -1
- package/es/utils/{react/interactions.js → interactions.js} +1 -1
- package/es/{tasty/utils → utils}/mergeStyles.js +1 -1
- package/es/utils/modules.js +1 -1
- package/es/utils/promise.js +1 -1
- package/es/utils/react/Slots.js +2 -2
- package/es/utils/react/chain.js +1 -1
- package/es/utils/react/index.js +2 -2
- package/es/utils/react/isTextOnly.js +1 -1
- package/es/utils/react/mapProps.js +1 -1
- package/es/utils/react/mergeProps.js +15 -15
- package/es/{tasty/utils → utils/react}/modAttrs.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/{tasty/utils → utils}/renderStyles.js +4 -6
- package/es/{tasty/utils → utils}/responsive.js +1 -1
- package/es/{tasty/utils → utils}/string.js +1 -1
- package/es/{tasty/utils → utils}/styles.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 +2 -2
- package/types/components/Block.d.ts +4 -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 +2 -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 +2 -2
- package/types/components/content/PrismCode/PrismCode.d.ts +2 -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 +2 -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 +2 -2
- package/types/components/forms/Form/Form.d.ts +2 -2
- package/types/components/forms/Label.d.ts +2 -2
- package/types/components/forms/RadioGroup/Radio.d.ts +2 -2
- package/types/components/forms/RadioGroup/RadioGroup.d.ts +2 -2
- package/types/components/forms/Switch/Switch.d.ts +2 -2
- package/types/components/forms/TextInput/TextInputBase.d.ts +2 -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 +2 -2
- package/types/components/overlays/Modal/Popover.d.ts +1 -1
- package/types/components/overlays/Modal/Tray.d.ts +2 -2
- package/types/components/overlays/Tooltip/Tooltip.d.ts +2 -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 -2
- package/types/components/pickers/Menu/styled.d.ts +110 -108
- package/types/components/pickers/Select/Select.d.ts +2 -2
- package/types/{tasty → components}/types.d.ts +17 -4
- package/types/index.d.ts +10 -17
- package/types/provider.d.ts +2 -2
- package/types/{tasty/providers → providers}/BreakpointsProvider.d.ts +0 -0
- package/types/{tasty/providers → providers}/StylesProvider.d.ts +0 -0
- package/types/shared/form.d.ts +2 -2
- package/types/stories/components/StyledButton.d.ts +68 -67
- package/types/styled/index.d.ts +1 -0
- package/types/styled/styled.d.ts +5 -26
- package/types/{tasty/styles → styles}/align.d.ts +0 -0
- package/types/{tasty/styles → styles}/border.d.ts +0 -0
- package/types/{tasty/styles → styles}/boxShadow.combinator.d.ts +0 -0
- package/types/{tasty/styles → styles}/color.d.ts +0 -0
- package/types/{tasty/styles → styles}/createStyle.d.ts +0 -0
- package/types/{tasty/styles → styles}/dimension.d.ts +0 -0
- package/types/{tasty/styles → styles}/display.d.ts +0 -0
- package/types/{tasty/styles → styles}/fill.d.ts +0 -0
- package/types/{tasty/styles → styles}/flow.d.ts +0 -0
- package/types/{tasty/styles → styles}/font.d.ts +0 -0
- package/types/{tasty/styles → styles}/fontStyle.d.ts +0 -0
- package/types/{tasty/styles → styles}/gap.d.ts +0 -0
- package/types/{tasty/styles → styles}/groupRadius.d.ts +0 -0
- package/types/{tasty/styles → styles}/height.d.ts +0 -0
- package/types/{tasty/styles → styles}/index.d.ts +0 -0
- package/types/{tasty/styles → styles}/justify.d.ts +0 -0
- package/types/{tasty/styles → styles}/list.d.ts +0 -0
- package/types/{tasty/styles → styles}/margin.d.ts +0 -0
- package/types/{tasty/styles → styles}/marginBlock.d.ts +0 -0
- package/types/{tasty/styles → styles}/marginInline.d.ts +0 -0
- package/types/{tasty/styles → styles}/outline.d.ts +0 -0
- package/types/{tasty/styles → styles}/padding.d.ts +0 -0
- package/types/{tasty/styles → styles}/paddingBlock.d.ts +0 -0
- package/types/{tasty/styles → styles}/paddingInline.d.ts +0 -0
- package/types/{tasty/styles → styles}/predefined.d.ts +0 -0
- package/types/{tasty/styles → styles}/preset.d.ts +0 -0
- package/types/{tasty/styles → styles}/radius.d.ts +0 -0
- package/types/{tasty/styles → styles}/reset.d.ts +0 -0
- package/types/{tasty/styles → styles}/shadow.d.ts +0 -0
- package/types/{tasty/styles → styles}/styledScrollbar.d.ts +0 -0
- package/types/{tasty/styles → styles}/transition.d.ts +0 -0
- package/types/{tasty/styles → styles}/types.d.ts +1 -1
- package/types/{tasty/styles → styles}/width.d.ts +0 -0
- package/types/tokens.d.ts +0 -4
- package/types/{tasty/utils → utils}/colors.d.ts +0 -0
- package/types/{tasty/utils → utils}/dotize.d.ts +0 -0
- package/types/utils/escape-string.d.ts +1 -0
- package/types/{tasty/utils → utils}/filterBaseProps.d.ts +0 -0
- package/types/{tasty/utils → utils}/index.d.ts +0 -0
- package/types/utils/{react/interactions.d.ts → interactions.d.ts} +0 -0
- package/types/{tasty/utils → utils}/mergeStyles.d.ts +0 -0
- package/types/utils/react/index.d.ts +1 -1
- package/types/utils/react/mergeProps.d.ts +1 -1
- package/types/{tasty/utils → utils/react}/modAttrs.d.ts +0 -0
- package/types/utils/react/nullableValue.d.ts +1 -1
- package/types/{tasty/utils → utils}/renderStyles.d.ts +0 -0
- package/types/{tasty/utils → utils}/responsive.d.ts +0 -0
- package/types/{tasty/utils → utils}/string.d.ts +0 -0
- package/types/{tasty/utils → utils}/styles.d.ts +0 -0
- 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/cjs/tasty/tasty.js +0 -108
- package/cjs/tasty/utils/warnings.js +0 -37
- 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/es/tasty/index.js +0 -11
- package/es/tasty/tasty.js +0 -86
- package/es/tasty/utils/warnings.js +0 -32
- 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
- package/types/tasty/index.d.ts +0 -3
- package/types/tasty/tasty.d.ts +0 -31
- package/types/tasty/utils/warnings.d.ts +0 -7
|
@@ -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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -38,9 +38,9 @@ function DialogTrigger(props) {
|
|
|
38
38
|
// eslint-disable-next-line arrow-body-style
|
|
39
39
|
useEffect(() => {
|
|
40
40
|
return () => {
|
|
41
|
-
if ((wasOpen.current || isExiting.current)
|
|
42
|
-
type !== 'popover'
|
|
43
|
-
type !== 'tray') {
|
|
41
|
+
if ((wasOpen.current || isExiting.current)
|
|
42
|
+
&& type !== 'popover'
|
|
43
|
+
&& type !== 'tray') {
|
|
44
44
|
console.warn('CubeUIKit: A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.');
|
|
45
45
|
}
|
|
46
46
|
};
|
|
@@ -104,10 +104,10 @@ function DialogTriggerBase(props) {
|
|
|
104
104
|
isDismissable,
|
|
105
105
|
...dialogProps,
|
|
106
106
|
};
|
|
107
|
-
return (_jsxs(Fragment, { children: [_jsx(PressResponder, { ...triggerProps, onPress: state.toggle, isPressed: state.isOpen
|
|
108
|
-
type !== 'modal'
|
|
109
|
-
type !== 'fullscreen'
|
|
110
|
-
type !== 'fullscreenTakeover', children: trigger }, void 0), _jsx(DialogContext.Provider, { value: context, children: overlay }, void 0)] }, void 0));
|
|
107
|
+
return (_jsxs(Fragment, { children: [_jsx(PressResponder, { ...triggerProps, onPress: state.toggle, isPressed: state.isOpen
|
|
108
|
+
&& type !== 'modal'
|
|
109
|
+
&& type !== 'fullscreen'
|
|
110
|
+
&& type !== 'fullscreenTakeover', children: trigger }, void 0), _jsx(DialogContext.Provider, { value: context, children: overlay }, void 0)] }, void 0));
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
|
|
@@ -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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ import { forwardRef } from 'react';
|
|
|
13
13
|
import { Underlay } from './Underlay';
|
|
14
14
|
import { useModal, useOverlay, usePreventScroll } from '@react-aria/overlays';
|
|
15
15
|
import { Base } from '../../Base';
|
|
16
|
-
import { useContextStyles } from '../../../
|
|
16
|
+
import { useContextStyles } from '../../../providers/StylesProvider';
|
|
17
17
|
import { mergeProps } from '../../../utils/react';
|
|
18
18
|
export const OVERLAY_WRAPPER_STYLES = {
|
|
19
19
|
position: 'fixed',
|
|
@@ -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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ import { Overlay } from './Overlay';
|
|
|
11
11
|
import { forwardRef } from 'react';
|
|
12
12
|
import { useModal, useOverlay } from '@react-aria/overlays';
|
|
13
13
|
import { Base } from '../../Base';
|
|
14
|
-
import { useContextStyles } from '../../../
|
|
14
|
+
import { useContextStyles } from '../../../providers/StylesProvider';
|
|
15
15
|
const POPOVER_STYLES = {
|
|
16
16
|
pointerEvents: 'auto',
|
|
17
17
|
position: 'absolute',
|
|
@@ -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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ import { Underlay } from './Underlay';
|
|
|
14
14
|
import { useModal, useOverlay, usePreventScroll } from '@react-aria/overlays';
|
|
15
15
|
import { OVERLAY_WRAPPER_STYLES } from './Modal';
|
|
16
16
|
import { Base } from '../../Base';
|
|
17
|
-
import { useContextStyles } from '../../../
|
|
17
|
+
import { useContextStyles } from '../../../providers/StylesProvider';
|
|
18
18
|
import { mergeProps } from '../../../utils/react';
|
|
19
19
|
const TRAY_STYLES = {
|
|
20
20
|
zIndex: 2,
|
|
@@ -1,14 +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-70220b3
|
|
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
10
|
import { Base } from '../../Base';
|
|
11
|
-
import { useContextStyles } from '../../../
|
|
11
|
+
import { useContextStyles } from '../../../providers/StylesProvider';
|
|
12
12
|
const UNDERLAY_STYLES = {
|
|
13
13
|
position: 'fixed',
|
|
14
14
|
top: 0,
|
|
@@ -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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -12,9 +12,9 @@ import { createDOMRef } from '@react-spectrum/utils';
|
|
|
12
12
|
import { TooltipContext } from './context';
|
|
13
13
|
import { useTooltip } from '@react-aria/tooltip';
|
|
14
14
|
import { Base } from '../../Base';
|
|
15
|
-
import { extractStyles } from '../../../
|
|
16
|
-
import { CONTAINER_STYLES } from '../../../
|
|
17
|
-
import { useContextStyles } from '../../../
|
|
15
|
+
import { extractStyles } from '../../../utils/styles';
|
|
16
|
+
import { CONTAINER_STYLES } from '../../../styles/list';
|
|
17
|
+
import { useContextStyles } from '../../../providers/StylesProvider';
|
|
18
18
|
import { getOverlayTransitionCSS } from '../../../utils/transitions';
|
|
19
19
|
const TOOLTIP_STYLES = {
|
|
20
20
|
display: 'block',
|
|
@@ -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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -17,10 +17,10 @@ import { useHover } from '@react-aria/interactions';
|
|
|
17
17
|
import { useProviderProps } from '../../../provider';
|
|
18
18
|
import { useFilter } from '@react-aria/i18n';
|
|
19
19
|
import { Base } from '../../Base';
|
|
20
|
-
import { extractStyles } from '../../../
|
|
21
|
-
import { BLOCK_STYLES, OUTER_STYLES } from '../../../
|
|
22
|
-
import { useFocus } from '../../../utils/
|
|
23
|
-
import { useContextStyles } from '../../../
|
|
20
|
+
import { extractStyles } from '../../../utils/styles';
|
|
21
|
+
import { BLOCK_STYLES, OUTER_STYLES } from '../../../styles/list';
|
|
22
|
+
import { useFocus } from '../../../utils/interactions';
|
|
23
|
+
import { useContextStyles } from '../../../providers/StylesProvider';
|
|
24
24
|
import { modAttrs, useCombinedRefs } from '../../../utils/react';
|
|
25
25
|
import { FieldWrapper } from '../../forms/FieldWrapper';
|
|
26
26
|
import { ListBoxPopup } from '../Select/Select';
|
|
@@ -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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -12,9 +12,9 @@ import { useMenu } from '@react-aria/menu';
|
|
|
12
12
|
import { mergeProps, useSyncRef } from '@react-aria/utils';
|
|
13
13
|
import { useDOMRef } from '@react-spectrum/utils';
|
|
14
14
|
import { useTreeState } from '@react-stately/tree';
|
|
15
|
-
import { useContextStyles } from '../../../
|
|
16
|
-
import { CONTAINER_STYLES } from '../../../
|
|
17
|
-
import { extractStyles } from '../../../
|
|
15
|
+
import { useContextStyles } from '../../../providers/StylesProvider';
|
|
16
|
+
import { CONTAINER_STYLES } from '../../../styles/list';
|
|
17
|
+
import { extractStyles } from '../../../utils/styles';
|
|
18
18
|
import { StyledMenu, StyledMenuHeader } from './styled';
|
|
19
19
|
import { MenuItem } from './MenuItem';
|
|
20
20
|
import { MenuSection } from './MenuSection';
|
|
@@ -1,15 +1,15 @@
|
|
|
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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import { styled } from '../../../styled';
|
|
9
9
|
import { Space } from '../../layout/Space';
|
|
10
|
-
export const StyledMenu =
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
export const StyledMenu = styled({
|
|
11
|
+
tag: 'ul',
|
|
12
|
+
name: 'Menu',
|
|
13
13
|
styles: {
|
|
14
14
|
display: 'flex',
|
|
15
15
|
flow: 'column',
|
|
@@ -36,8 +36,8 @@ export const StyledMenu = tasty({
|
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
});
|
|
39
|
-
export const StyledDivider =
|
|
40
|
-
|
|
39
|
+
export const StyledDivider = styled({
|
|
40
|
+
tag: 'li',
|
|
41
41
|
styles: {
|
|
42
42
|
display: 'flex',
|
|
43
43
|
flow: 'column',
|
|
@@ -47,8 +47,8 @@ export const StyledDivider = tasty({
|
|
|
47
47
|
height: '1px',
|
|
48
48
|
},
|
|
49
49
|
});
|
|
50
|
-
export const StyledMenuHeader =
|
|
51
|
-
|
|
50
|
+
export const StyledMenuHeader = styled(Space, {
|
|
51
|
+
tag: 'li',
|
|
52
52
|
styles: {
|
|
53
53
|
fill: '#light',
|
|
54
54
|
color: '#dark-02',
|
|
@@ -61,8 +61,8 @@ export const StyledMenuHeader = tasty(Space, {
|
|
|
61
61
|
radius: '1r 1r 0 0',
|
|
62
62
|
},
|
|
63
63
|
});
|
|
64
|
-
export const StyledMenuSection =
|
|
65
|
-
|
|
64
|
+
export const StyledMenuSection = styled({
|
|
65
|
+
tag: 'li',
|
|
66
66
|
styles: {
|
|
67
67
|
display: 'flex',
|
|
68
68
|
flow: 'column',
|
|
@@ -77,8 +77,8 @@ export const StyledMenuSection = tasty({
|
|
|
77
77
|
fill: '#white',
|
|
78
78
|
},
|
|
79
79
|
});
|
|
80
|
-
export const StyledMenuItem =
|
|
81
|
-
|
|
80
|
+
export const StyledMenuItem = styled({
|
|
81
|
+
tag: 'li',
|
|
82
82
|
styles: {
|
|
83
83
|
display: 'flex',
|
|
84
84
|
flow: 'column',
|
|
@@ -93,8 +93,8 @@ export const StyledMenuItem = tasty({
|
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
95
|
});
|
|
96
|
-
export const StyledMenuSectionHeading =
|
|
97
|
-
|
|
96
|
+
export const StyledMenuSectionHeading = styled(Space, {
|
|
97
|
+
tag: 'header',
|
|
98
98
|
styles: {
|
|
99
99
|
color: '#dark-03',
|
|
100
100
|
preset: 'c1',
|
|
@@ -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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -20,10 +20,10 @@ import { useFormProps } from '../../forms/Form/Form';
|
|
|
20
20
|
import { useFocus as useAriaFocus, useHover } from '@react-aria/interactions';
|
|
21
21
|
import { useProviderProps } from '../../../provider';
|
|
22
22
|
import { Base } from '../../Base';
|
|
23
|
-
import { extractStyles } from '../../../
|
|
24
|
-
import { BLOCK_STYLES, OUTER_STYLES } from '../../../
|
|
25
|
-
import { useFocus } from '../../../utils/
|
|
26
|
-
import { useContextStyles } from '../../../
|
|
23
|
+
import { extractStyles } from '../../../utils/styles';
|
|
24
|
+
import { BLOCK_STYLES, OUTER_STYLES } from '../../../styles/list';
|
|
25
|
+
import { useFocus } from '../../../utils/interactions';
|
|
26
|
+
import { useContextStyles } from '../../../providers/StylesProvider';
|
|
27
27
|
import { useCombinedRefs } from '../../../utils/react';
|
|
28
28
|
import { FieldWrapper } from '../../forms/FieldWrapper';
|
|
29
29
|
import { Item } from '@react-stately/collections';
|
package/es/data/themes.js
CHANGED
package/es/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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -13,6 +13,7 @@ export { Item, Section } from '@react-stately/collections';
|
|
|
13
13
|
export { Base } from './components/Base';
|
|
14
14
|
export { Block } from './components/Block';
|
|
15
15
|
export { ActiveZone } from './components/content/ActiveZone/ActiveZone';
|
|
16
|
+
export * from './components/content/CopySnippet';
|
|
16
17
|
export { Grid } from './components/layout/Grid';
|
|
17
18
|
export { Flex } from './components/layout/Flex';
|
|
18
19
|
export { Link } from './components/navigation/Link/Link';
|
|
@@ -60,36 +61,33 @@ export { Dialog, DialogTrigger, DialogContainer, DialogForm, } from './component
|
|
|
60
61
|
export { Tooltip } from './components/overlays/Tooltip/Tooltip';
|
|
61
62
|
export { TooltipTrigger } from './components/overlays/Tooltip/TooltipTrigger';
|
|
62
63
|
export { TooltipProvider } from './components/overlays/Tooltip/TooltipProvider';
|
|
64
|
+
export * from './components/content/CopySnippet';
|
|
65
|
+
export * from './components/content/Alert';
|
|
63
66
|
// molecules
|
|
64
|
-
export { TopBar } from './components/organisms/TopBar/TopBar';
|
|
65
|
-
export { Alert } from './components/organisms/Alert/Alert';
|
|
66
|
-
export { DirectoryTree } from './components/organisms/DirectoryTree/DirectoryTree';
|
|
67
67
|
export { LegacyTabs } from './components/navigation/LegacyTabs/LegacyTabs';
|
|
68
68
|
export { FileTabs } from './components/organisms/FileTabs/FileTabs';
|
|
69
69
|
export { Modal } from './components/organisms/Modal/Modal';
|
|
70
|
-
export { CopySnippet } from './components/organisms/CopySnippet/CopySnippet';
|
|
71
70
|
export { StatsCard } from './components/organisms/StatsCard/StatsCard';
|
|
72
71
|
export { AlertDialog, useAlertDialogAPI, } from './components/overlays/AlertDialog';
|
|
73
|
-
export { SearchResults } from './components/organisms/SearchResults/SearchResults';
|
|
74
72
|
// services
|
|
75
73
|
export { notification } from './services/notification';
|
|
76
|
-
export * from './
|
|
74
|
+
export * from './providers/BreakpointsProvider';
|
|
77
75
|
export const Typography = {
|
|
78
76
|
Text,
|
|
79
77
|
Title,
|
|
80
78
|
Paragraph,
|
|
81
79
|
};
|
|
82
80
|
export { Text, Title, Paragraph };
|
|
83
|
-
export { useContextStyles, StyleProvider
|
|
81
|
+
export { useContextStyles, StyleProvider } from './providers/StylesProvider';
|
|
84
82
|
export { Provider } from './provider';
|
|
85
83
|
export { Portal } from './components/portal';
|
|
86
84
|
export * from './components/forms';
|
|
87
|
-
export * from './
|
|
88
|
-
export * from './
|
|
89
|
-
export * from './
|
|
85
|
+
export * from './styles/types';
|
|
86
|
+
export * from './styles/list';
|
|
87
|
+
export * from './styles/index';
|
|
90
88
|
export { ModalProvider } from '@react-aria/overlays';
|
|
91
89
|
export * from './utils/react';
|
|
92
|
-
export * from './
|
|
90
|
+
export * from './styled';
|
|
93
91
|
export { default as copy } from 'clipboard-copy';
|
|
94
92
|
export * from '@react-aria/ssr';
|
|
95
93
|
export * from './components/forms/Form';
|
package/es/provider.js
CHANGED
|
@@ -1,14 +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-70220b3
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { createContext, useContext, } from 'react';
|
|
10
|
-
import { StyleProvider } from './
|
|
11
|
-
import { BreakpointsProvider } from './
|
|
10
|
+
import { StyleProvider } from './providers/StylesProvider';
|
|
11
|
+
import { BreakpointsProvider } from './providers/BreakpointsProvider';
|
|
12
12
|
export const UIKitContext = createContext({});
|
|
13
13
|
export function Provider(allProps) {
|
|
14
14
|
let { breakpoints, children, insideForm, isDisabled, isReadOnly, isRequired, validationState, router, styles, root, ref, } = allProps;
|