@cube-dev/ui-kit 0.0.0-canary-7480fe6 → 0.0.0-canary-00505d5
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/components/Base.js +6 -6
- package/cjs/components/Block.js +13 -11
- 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/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 +8 -11
- package/cjs/components/content/Divider.js +4 -4
- package/cjs/components/content/Footer.js +8 -10
- package/cjs/components/content/Header.js +8 -9
- 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 +31 -26
- package/cjs/components/content/Text.js +33 -34
- package/cjs/components/content/Title.js +29 -33
- 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 +6 -10
- 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 +16 -14
- 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/{content → organisms}/Alert/Alert.js +14 -12
- package/cjs/components/{content → organisms}/CopySnippet/CopySnippet.js +7 -7
- package/cjs/components/organisms/DirectoryTree/DirectoryTree.js +166 -0
- package/cjs/components/organisms/FileTabs/FileTabs.js +16 -9
- package/cjs/components/organisms/Modal/Modal.js +1 -1
- package/cjs/components/organisms/SearchResults/SearchResults.js +108 -0
- package/cjs/components/organisms/StatsCard/StatsCard.js +1 -1
- package/cjs/components/organisms/TopBar/TopBar.js +33 -0
- 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/data/themes.js +1 -1
- package/cjs/index.js +18 -11
- package/cjs/provider.js +3 -3
- 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/styled.js +13 -14
- package/cjs/{_internal/hooks → tasty}/index.js +5 -2
- package/cjs/{providers → tasty/providers}/BreakpointsProvider.js +1 -1
- package/cjs/{providers → tasty/providers}/StylesProvider.js +1 -1
- package/cjs/{styles → tasty/styles}/align.js +1 -1
- package/cjs/{styles → tasty/styles}/border.js +1 -1
- package/cjs/{styles → tasty/styles}/boxShadow.combinator.js +1 -1
- package/cjs/{styles → tasty/styles}/color.js +1 -1
- package/cjs/{styles → tasty/styles}/createStyle.js +1 -1
- package/cjs/{styles → tasty/styles}/dimension.js +1 -1
- package/cjs/{styles → tasty/styles}/display.js +1 -1
- package/cjs/{styles → tasty/styles}/fill.js +1 -1
- package/cjs/{styles → tasty/styles}/flow.js +1 -1
- package/cjs/{styles → tasty/styles}/font.js +1 -1
- package/cjs/{styles → tasty/styles}/fontStyle.js +1 -1
- package/cjs/{styles → tasty/styles}/gap.js +1 -1
- package/cjs/{styles → tasty/styles}/groupRadius.js +1 -1
- package/cjs/{styles → tasty/styles}/height.js +1 -1
- package/cjs/{styles → tasty/styles}/index.js +1 -1
- package/cjs/{styles → tasty/styles}/justify.js +1 -1
- package/cjs/{styles → tasty/styles}/list.js +1 -1
- package/cjs/{styles → tasty/styles}/margin.js +4 -4
- package/cjs/{styles → tasty/styles}/marginBlock.js +1 -1
- package/cjs/{styles → tasty/styles}/marginInline.js +1 -1
- package/cjs/{styles → tasty/styles}/outline.js +1 -1
- package/cjs/{styles → tasty/styles}/padding.js +6 -6
- package/cjs/{styles → tasty/styles}/paddingBlock.js +1 -1
- package/cjs/{styles → tasty/styles}/paddingInline.js +1 -1
- package/cjs/{styles → tasty/styles}/predefined.js +1 -1
- package/cjs/{styles → tasty/styles}/preset.js +1 -1
- package/cjs/{styles → tasty/styles}/radius.js +1 -1
- package/cjs/{styles → tasty/styles}/reset.js +1 -1
- package/cjs/{styles → tasty/styles}/shadow.js +1 -1
- package/cjs/{styles → tasty/styles}/styledScrollbar.js +1 -1
- package/cjs/{styles → tasty/styles}/transition.js +1 -1
- package/cjs/{components/content/Alert → tasty/styles}/types.js +1 -1
- package/cjs/{styles → tasty/styles}/width.js +1 -1
- package/cjs/tasty/tasty.js +108 -0
- package/cjs/{components → tasty}/types.js +1 -1
- package/cjs/{utils → tasty/utils}/colors.js +1 -1
- package/cjs/{utils → tasty/utils}/dotize.js +1 -1
- package/cjs/{utils → tasty/utils}/filterBaseProps.js +1 -1
- package/cjs/{utils → tasty/utils}/index.js +1 -1
- package/cjs/{utils → tasty/utils}/mergeStyles.js +1 -1
- package/cjs/{utils/react → tasty/utils}/modAttrs.js +1 -1
- package/cjs/{utils → tasty/utils}/renderStyles.js +6 -4
- package/cjs/{utils → tasty/utils}/responsive.js +1 -1
- package/cjs/{utils → tasty/utils}/string.js +1 -1
- package/cjs/{utils → tasty/utils}/styles.js +1 -1
- package/cjs/tasty/utils/warnings.js +37 -0
- 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 +6 -1
- package/cjs/utils/ResizeSensor.js +1 -1
- package/cjs/utils/modules.js +1 -1
- package/cjs/utils/promise.js +1 -1
- package/cjs/utils/react/Slots.js +2 -2
- package/cjs/utils/react/chain.js +1 -1
- package/cjs/utils/react/index.js +2 -2
- package/cjs/utils/{interactions.js → 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 +15 -15
- 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 +2 -22
- package/es/components/Base.js +6 -6
- package/es/components/Block.js +12 -10
- 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/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 +8 -11
- package/es/components/content/Divider.js +4 -4
- package/es/components/content/Footer.js +8 -10
- package/es/components/content/Header.js +8 -9
- 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 +31 -26
- package/es/components/content/Text.js +33 -34
- package/es/components/content/Title.js +29 -33
- 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 +6 -10
- 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 +16 -14
- 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/{content → organisms}/Alert/Alert.js +14 -12
- package/es/components/{content → organisms}/CopySnippet/CopySnippet.js +6 -6
- package/es/components/organisms/DirectoryTree/DirectoryTree.js +162 -0
- package/es/components/organisms/FileTabs/FileTabs.js +16 -9
- package/es/components/organisms/Modal/Modal.js +1 -1
- package/es/components/organisms/SearchResults/SearchResults.js +104 -0
- package/es/components/organisms/StatsCard/StatsCard.js +1 -1
- package/es/components/organisms/TopBar/TopBar.js +29 -0
- 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/data/themes.js +1 -1
- package/es/index.js +12 -10
- package/es/provider.js +3 -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 +4 -4
- package/es/stories/lists/baseProps.js +2 -2
- package/es/styled/styled.js +12 -12
- package/es/tasty/index.js +11 -0
- package/es/{providers → tasty/providers}/BreakpointsProvider.js +1 -1
- package/es/{providers → tasty/providers}/StylesProvider.js +1 -1
- package/es/{styles → tasty/styles}/align.js +1 -1
- package/es/{styles → tasty/styles}/border.js +1 -1
- package/es/{styles → tasty/styles}/boxShadow.combinator.js +1 -1
- package/es/{styles → tasty/styles}/color.js +1 -1
- package/es/{styles → tasty/styles}/createStyle.js +1 -1
- package/es/{styles → tasty/styles}/dimension.js +1 -1
- package/es/{styles → tasty/styles}/display.js +1 -1
- package/es/{styles → tasty/styles}/fill.js +1 -1
- package/es/{styles → tasty/styles}/flow.js +1 -1
- package/es/{styles → tasty/styles}/font.js +1 -1
- package/es/{styles → tasty/styles}/fontStyle.js +1 -1
- package/es/{styles → tasty/styles}/gap.js +1 -1
- package/es/{styles → tasty/styles}/groupRadius.js +1 -1
- package/es/{styles → tasty/styles}/height.js +1 -1
- package/es/{styles → tasty/styles}/index.js +1 -1
- package/es/{styles → tasty/styles}/justify.js +1 -1
- package/es/{styles → tasty/styles}/list.js +1 -1
- package/es/{styles → tasty/styles}/margin.js +4 -4
- package/es/{styles → tasty/styles}/marginBlock.js +1 -1
- package/es/{styles → tasty/styles}/marginInline.js +1 -1
- package/es/{styles → tasty/styles}/outline.js +1 -1
- package/es/{styles → tasty/styles}/padding.js +6 -6
- package/es/{styles → tasty/styles}/paddingBlock.js +1 -1
- package/es/{styles → tasty/styles}/paddingInline.js +1 -1
- package/es/{styles → tasty/styles}/predefined.js +1 -1
- package/es/{styles → tasty/styles}/preset.js +1 -1
- package/es/{styles → tasty/styles}/radius.js +1 -1
- package/es/{styles → tasty/styles}/reset.js +1 -1
- package/es/{styles → tasty/styles}/shadow.js +1 -1
- package/es/{styles → tasty/styles}/styledScrollbar.js +1 -1
- package/es/{styles → tasty/styles}/transition.js +1 -1
- package/es/{styles → tasty/styles}/types.js +1 -1
- package/es/{styles → tasty/styles}/width.js +1 -1
- package/es/tasty/tasty.js +86 -0
- package/es/{components/content/Alert → tasty}/types.js +1 -1
- package/es/{utils → tasty/utils}/colors.js +1 -1
- package/es/{utils → tasty/utils}/dotize.js +1 -1
- package/es/{utils → tasty/utils}/filterBaseProps.js +1 -1
- package/es/{utils → tasty/utils}/index.js +1 -1
- package/es/{utils → tasty/utils}/mergeStyles.js +1 -1
- package/es/{utils/react → tasty/utils}/modAttrs.js +1 -1
- package/es/{utils → tasty/utils}/renderStyles.js +6 -4
- package/es/{utils → tasty/utils}/responsive.js +1 -1
- package/es/{utils → tasty/utils}/string.js +1 -1
- package/es/{utils → tasty/utils}/styles.js +1 -1
- package/es/tasty/utils/warnings.js +32 -0
- 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 +6 -1
- package/es/utils/ResizeSensor.js +1 -1
- package/es/utils/modules.js +1 -1
- package/es/utils/promise.js +1 -1
- package/es/utils/react/Slots.js +2 -2
- package/es/utils/react/chain.js +1 -1
- package/es/utils/react/index.js +2 -2
- package/es/utils/{interactions.js → 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 +15 -15
- package/es/utils/react/nullableValue.js +1 -1
- package/es/utils/react/useCombinedRefs.js +1 -1
- package/es/utils/react/useId.js +1 -1
- package/es/utils/react/useLayoutEffect.js +1 -1
- package/es/utils/react/wrapNodeIfPlain.js +1 -1
- package/es/utils/transitions.js +1 -1
- package/es/utils/tree.js +1 -1
- package/es/utils/warnings.js +1 -20
- package/package.json +1 -1
- package/types/components/Base.d.ts +2 -2
- package/types/components/Block.d.ts +1 -4
- 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/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/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/Alert/Alert.d.ts +8 -0
- package/types/components/{content → organisms}/CopySnippet/CopySnippet.d.ts +2 -2
- package/types/components/organisms/DirectoryTree/DirectoryTree.d.ts +44 -0
- package/types/components/organisms/FileTabs/FileTabs.d.ts +1 -4
- package/types/components/organisms/SearchResults/SearchResults.d.ts +31 -0
- package/types/components/organisms/TopBar/TopBar.d.ts +6 -0
- 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 +108 -110
- package/types/components/pickers/Select/Select.d.ts +2 -2
- package/types/index.d.ts +17 -10
- package/types/provider.d.ts +2 -2
- package/types/shared/form.d.ts +2 -2
- package/types/stories/components/StyledButton.d.ts +67 -68
- package/types/styled/styled.d.ts +26 -5
- package/types/tasty/index.d.ts +3 -0
- package/types/{providers → tasty/providers}/BreakpointsProvider.d.ts +0 -0
- package/types/{providers → tasty/providers}/StylesProvider.d.ts +0 -0
- package/types/{styles → tasty/styles}/align.d.ts +0 -0
- package/types/{styles → tasty/styles}/border.d.ts +0 -0
- package/types/{styles → tasty/styles}/boxShadow.combinator.d.ts +0 -0
- package/types/{styles → tasty/styles}/color.d.ts +0 -0
- package/types/{styles → tasty/styles}/createStyle.d.ts +0 -0
- package/types/{styles → tasty/styles}/dimension.d.ts +0 -0
- package/types/{styles → tasty/styles}/display.d.ts +0 -0
- package/types/{styles → tasty/styles}/fill.d.ts +0 -0
- package/types/{styles → tasty/styles}/flow.d.ts +0 -0
- package/types/{styles → tasty/styles}/font.d.ts +0 -0
- package/types/{styles → tasty/styles}/fontStyle.d.ts +0 -0
- package/types/{styles → tasty/styles}/gap.d.ts +0 -0
- package/types/{styles → tasty/styles}/groupRadius.d.ts +0 -0
- package/types/{styles → tasty/styles}/height.d.ts +0 -0
- package/types/{styles → tasty/styles}/index.d.ts +0 -0
- package/types/{styles → tasty/styles}/justify.d.ts +0 -0
- package/types/{styles → tasty/styles}/list.d.ts +0 -0
- package/types/{styles → tasty/styles}/margin.d.ts +0 -0
- package/types/{styles → tasty/styles}/marginBlock.d.ts +0 -0
- package/types/{styles → tasty/styles}/marginInline.d.ts +0 -0
- package/types/{styles → tasty/styles}/outline.d.ts +0 -0
- package/types/{styles → tasty/styles}/padding.d.ts +0 -0
- package/types/{styles → tasty/styles}/paddingBlock.d.ts +0 -0
- package/types/{styles → tasty/styles}/paddingInline.d.ts +0 -0
- package/types/{styles → tasty/styles}/predefined.d.ts +0 -0
- package/types/{styles → tasty/styles}/preset.d.ts +0 -0
- package/types/{styles → tasty/styles}/radius.d.ts +0 -0
- package/types/{styles → tasty/styles}/reset.d.ts +0 -0
- package/types/{styles → tasty/styles}/shadow.d.ts +0 -0
- package/types/{styles → tasty/styles}/styledScrollbar.d.ts +0 -0
- package/types/{styles → tasty/styles}/transition.d.ts +0 -0
- package/types/{styles → tasty/styles}/types.d.ts +1 -1
- package/types/{styles → tasty/styles}/width.d.ts +0 -0
- package/types/tasty/tasty.d.ts +31 -0
- package/types/{components → tasty}/types.d.ts +4 -17
- package/types/{utils → tasty/utils}/colors.d.ts +0 -0
- package/types/{utils → tasty/utils}/dotize.d.ts +0 -0
- package/types/{utils → tasty/utils}/filterBaseProps.d.ts +0 -0
- package/types/{utils → tasty/utils}/index.d.ts +0 -0
- package/types/{utils → tasty/utils}/mergeStyles.d.ts +0 -0
- package/types/{utils/react → tasty/utils}/modAttrs.d.ts +0 -0
- package/types/{utils → tasty/utils}/renderStyles.d.ts +0 -0
- package/types/{utils → tasty/utils}/responsive.d.ts +0 -0
- package/types/{utils → tasty/utils}/string.d.ts +0 -0
- package/types/{utils → tasty/utils}/styles.d.ts +0 -0
- package/types/tasty/utils/warnings.d.ts +7 -0
- package/types/tokens.d.ts +4 -0
- package/types/utils/react/index.d.ts +1 -1
- package/types/utils/{interactions.d.ts → react/interactions.d.ts} +0 -0
- package/types/utils/react/mergeProps.d.ts +1 -1
- package/types/utils/react/nullableValue.d.ts +1 -1
- package/types/utils/warnings.d.ts +0 -6
- package/cjs/_internal/hooks/use-deprecation-warning.js +0 -43
- package/cjs/_internal/index.js +0 -22
- package/cjs/components/content/Alert/index.js +0 -22
- package/cjs/components/content/Alert/use-alert.js +0 -34
- package/cjs/components/content/CopySnippet/index.js +0 -22
- package/cjs/styled/index.js +0 -22
- package/cjs/styles/types.js +0 -11
- package/cjs/utils/escape-string.js +0 -21
- package/es/_internal/hooks/index.js +0 -10
- package/es/_internal/hooks/use-deprecation-warning.js +0 -20
- package/es/_internal/index.js +0 -10
- package/es/components/content/Alert/index.js +0 -10
- package/es/components/content/Alert/use-alert.js +0 -30
- package/es/components/content/CopySnippet/index.js +0 -10
- package/es/components/types.js +0 -10
- package/es/styled/index.js +0 -10
- package/es/utils/escape-string.js +0 -18
- package/types/_internal/hooks/index.d.ts +0 -1
- package/types/_internal/hooks/use-deprecation-warning.d.ts +0 -2
- package/types/_internal/index.d.ts +0 -1
- package/types/components/content/Alert/Alert.d.ts +0 -3
- package/types/components/content/Alert/index.d.ts +0 -2
- package/types/components/content/Alert/types.d.ts +0 -17
- package/types/components/content/Alert/use-alert.d.ts +0 -6
- package/types/components/content/CopySnippet/index.d.ts +0 -1
- package/types/styled/index.d.ts +0 -1
- package/types/utils/escape-string.d.ts +0 -1
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -14,12 +14,12 @@ const react_1 = require("react");
|
|
|
14
14
|
const interactions_1 = require("@react-aria/interactions");
|
|
15
15
|
const radio_1 = require("@react-aria/radio");
|
|
16
16
|
const context_1 = require("./context");
|
|
17
|
-
const styles_1 = require("../../../utils/styles");
|
|
18
|
-
const StylesProvider_1 = require("../../../providers/StylesProvider");
|
|
19
|
-
const list_1 = require("../../../styles/list");
|
|
17
|
+
const styles_1 = require("../../../tasty/utils/styles");
|
|
18
|
+
const StylesProvider_1 = require("../../../tasty/providers/StylesProvider");
|
|
19
|
+
const list_1 = require("../../../tasty/styles/list");
|
|
20
20
|
const Base_1 = require("../../Base");
|
|
21
|
-
const filterBaseProps_1 = require("../../../utils/filterBaseProps");
|
|
22
|
-
const interactions_2 = require("../../../utils/interactions");
|
|
21
|
+
const filterBaseProps_1 = require("../../../tasty/utils/filterBaseProps");
|
|
22
|
+
const interactions_2 = require("../../../utils/react/interactions");
|
|
23
23
|
const react_2 = require("../../../utils/react");
|
|
24
24
|
const provider_1 = require("../../../provider");
|
|
25
25
|
const Label_1 = require("../Label");
|
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -17,10 +17,10 @@ const radio_1 = require("@react-aria/radio");
|
|
|
17
17
|
const radio_2 = require("@react-stately/radio");
|
|
18
18
|
const Form_1 = require("../Form/Form");
|
|
19
19
|
const context_1 = require("./context");
|
|
20
|
-
const styles_1 = require("../../../utils/styles");
|
|
21
|
-
const list_1 = require("../../../styles/list");
|
|
20
|
+
const styles_1 = require("../../../tasty/utils/styles");
|
|
21
|
+
const list_1 = require("../../../tasty/styles/list");
|
|
22
22
|
const Base_1 = require("../../Base");
|
|
23
|
-
const StylesProvider_1 = require("../../../providers/StylesProvider");
|
|
23
|
+
const StylesProvider_1 = require("../../../tasty/providers/StylesProvider");
|
|
24
24
|
const FieldWrapper_1 = require("../FieldWrapper");
|
|
25
25
|
const nullableValue_1 = require("../../../utils/react/nullableValue");
|
|
26
26
|
const GROUP_STYLES = {
|
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -15,13 +15,13 @@ const switch_1 = require("@react-aria/switch");
|
|
|
15
15
|
const interactions_1 = require("@react-aria/interactions");
|
|
16
16
|
const toggle_1 = require("@react-stately/toggle");
|
|
17
17
|
const provider_1 = require("../../../provider");
|
|
18
|
-
const list_1 = require("../../../styles/list");
|
|
19
|
-
const styles_1 = require("../../../utils/styles");
|
|
18
|
+
const list_1 = require("../../../tasty/styles/list");
|
|
19
|
+
const styles_1 = require("../../../tasty/utils/styles");
|
|
20
20
|
const Base_1 = require("../../Base");
|
|
21
|
-
const interactions_2 = require("../../../utils/interactions");
|
|
21
|
+
const interactions_2 = require("../../../utils/react/interactions");
|
|
22
22
|
const react_2 = require("../../../utils/react");
|
|
23
|
-
const filterBaseProps_1 = require("../../../utils/filterBaseProps");
|
|
24
|
-
const StylesProvider_1 = require("../../../providers/StylesProvider");
|
|
23
|
+
const filterBaseProps_1 = require("../../../tasty/utils/filterBaseProps");
|
|
24
|
+
const StylesProvider_1 = require("../../../tasty/providers/StylesProvider");
|
|
25
25
|
const HiddenInput_1 = require("../../HiddenInput");
|
|
26
26
|
const Label_1 = require("../Label");
|
|
27
27
|
const icons_1 = require("@ant-design/icons");
|
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -32,10 +32,10 @@ function TextArea(props, ref) {
|
|
|
32
32
|
input.style.height = 'auto';
|
|
33
33
|
input.style.height = input.scrollHeight
|
|
34
34
|
? `calc(${input.scrollHeight}px + (2 * var(--border-width)))`
|
|
35
|
-
: `${parseFloat(computedStyle.paddingTop)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
: `${parseFloat(computedStyle.paddingTop) +
|
|
36
|
+
parseFloat(computedStyle.paddingBottom) +
|
|
37
|
+
parseFloat(computedStyle.lineHeight) * (rows || 3) +
|
|
38
|
+
2}px`;
|
|
39
39
|
input.style.alignSelf = prevAlignment;
|
|
40
40
|
}
|
|
41
41
|
}, [inputRef]);
|
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -16,12 +16,12 @@ const Form_1 = require("../Form/Form");
|
|
|
16
16
|
const interactions_1 = require("@react-aria/interactions");
|
|
17
17
|
const provider_1 = require("../../../provider");
|
|
18
18
|
const Base_1 = require("../../Base");
|
|
19
|
-
const styles_1 = require("../../../utils/styles");
|
|
20
|
-
const list_1 = require("../../../styles/list");
|
|
21
|
-
const interactions_2 = require("../../../utils/interactions");
|
|
19
|
+
const styles_1 = require("../../../tasty/utils/styles");
|
|
20
|
+
const list_1 = require("../../../tasty/styles/list");
|
|
21
|
+
const interactions_2 = require("../../../utils/react/interactions");
|
|
22
22
|
const Prefix_1 = require("../../layout/Prefix");
|
|
23
23
|
const Suffix_1 = require("../../layout/Suffix");
|
|
24
|
-
const StylesProvider_1 = require("../../../providers/StylesProvider");
|
|
24
|
+
const StylesProvider_1 = require("../../../tasty/providers/StylesProvider");
|
|
25
25
|
const FieldWrapper_1 = require("../FieldWrapper");
|
|
26
26
|
const Space_1 = require("../../layout/Space");
|
|
27
27
|
const Block_1 = require("../../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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ exports.Flex = 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 list_1 = require("../../styles/list");
|
|
15
|
-
const styles_1 = require("../../utils/styles");
|
|
16
|
-
const filterBaseProps_1 = require("../../utils/filterBaseProps");
|
|
14
|
+
const list_1 = require("../../tasty/styles/list");
|
|
15
|
+
const styles_1 = require("../../tasty/utils/styles");
|
|
16
|
+
const filterBaseProps_1 = require("../../tasty/utils/filterBaseProps");
|
|
17
17
|
const DEFAULT_STYLES = {
|
|
18
18
|
display: 'flex',
|
|
19
19
|
flow: 'row',
|
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ exports.Flow = 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 list_1 = require("../../styles/list");
|
|
15
|
-
const styles_1 = require("../../utils/styles");
|
|
16
|
-
const filterBaseProps_1 = require("../../utils/filterBaseProps");
|
|
14
|
+
const list_1 = require("../../tasty/styles/list");
|
|
15
|
+
const styles_1 = require("../../tasty/utils/styles");
|
|
16
|
+
const filterBaseProps_1 = require("../../tasty/utils/filterBaseProps");
|
|
17
17
|
const DEFAULT_STYLES = {
|
|
18
18
|
display: 'block',
|
|
19
19
|
flow: 'column',
|
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ exports.Grid = 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 list_1 = require("../../styles/list");
|
|
15
|
-
const styles_1 = require("../../utils/styles");
|
|
16
|
-
const filterBaseProps_1 = require("../../utils/filterBaseProps");
|
|
14
|
+
const list_1 = require("../../tasty/styles/list");
|
|
15
|
+
const styles_1 = require("../../tasty/utils/styles");
|
|
16
|
+
const filterBaseProps_1 = require("../../tasty/utils/filterBaseProps");
|
|
17
17
|
const DEFAULT_STYLES = {
|
|
18
18
|
display: 'grid',
|
|
19
19
|
flow: 'row',
|
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ exports.Prefix = 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 list_1 = require("../../styles/list");
|
|
15
|
-
const styles_1 = require("../../utils/styles");
|
|
16
|
-
const filterBaseProps_1 = require("../../utils/filterBaseProps");
|
|
14
|
+
const list_1 = require("../../tasty/styles/list");
|
|
15
|
+
const styles_1 = require("../../tasty/utils/styles");
|
|
16
|
+
const filterBaseProps_1 = require("../../tasty/utils/filterBaseProps");
|
|
17
17
|
const react_2 = require("../../utils/react");
|
|
18
18
|
const DEFAULT_STYLES = {
|
|
19
19
|
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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ exports.Space = 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 list_1 = require("../../styles/list");
|
|
15
|
-
const styles_1 = require("../../utils/styles");
|
|
16
|
-
const filterBaseProps_1 = require("../../utils/filterBaseProps");
|
|
14
|
+
const list_1 = require("../../tasty/styles/list");
|
|
15
|
+
const styles_1 = require("../../tasty/utils/styles");
|
|
16
|
+
const filterBaseProps_1 = require("../../tasty/utils/filterBaseProps");
|
|
17
17
|
const DEFAULT_STYLES = {
|
|
18
18
|
display: 'flex',
|
|
19
19
|
gap: true,
|
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -11,9 +11,9 @@ exports.Suffix = 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 list_1 = require("../../styles/list");
|
|
15
|
-
const styles_1 = require("../../utils/styles");
|
|
16
|
-
const filterBaseProps_1 = require("../../utils/filterBaseProps");
|
|
14
|
+
const list_1 = require("../../tasty/styles/list");
|
|
15
|
+
const styles_1 = require("../../tasty/utils/styles");
|
|
16
|
+
const filterBaseProps_1 = require("../../tasty/utils/filterBaseProps");
|
|
17
17
|
const react_2 = require("../../utils/react");
|
|
18
18
|
const DEFAULT_STYLES = {
|
|
19
19
|
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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -14,10 +14,13 @@ exports.Alert = void 0;
|
|
|
14
14
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
15
|
const react_1 = require("react");
|
|
16
16
|
const themes_1 = __importDefault(require("../../../data/themes"));
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
17
|
+
const list_1 = require("../../../tasty/styles/list");
|
|
18
|
+
const styles_1 = require("../../../tasty/utils/styles");
|
|
19
|
+
const filterBaseProps_1 = require("../../../tasty/utils/filterBaseProps");
|
|
20
|
+
const tasty_1 = require("../../../tasty");
|
|
21
|
+
const RawAlert = (0, tasty_1.tasty)({
|
|
22
|
+
role: 'alert',
|
|
23
|
+
qa: 'Alert',
|
|
21
24
|
styles: {
|
|
22
25
|
display: 'block',
|
|
23
26
|
flow: 'column',
|
|
@@ -43,14 +46,13 @@ const RawAlert = (0, styled_1.styled)({
|
|
|
43
46
|
}, {}),
|
|
44
47
|
},
|
|
45
48
|
},
|
|
46
|
-
props: {
|
|
47
|
-
role: 'alert',
|
|
48
|
-
qa: 'Alert',
|
|
49
|
-
},
|
|
50
49
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
const STYLE_LIST = [...list_1.CONTAINER_STYLES, ...list_1.TEXT_STYLES];
|
|
51
|
+
exports.Alert = (0, react_1.forwardRef)((allProps, ref) => {
|
|
52
|
+
let { type, label, isDisabled, ...props } = allProps;
|
|
53
|
+
type = isDisabled ? 'disabled' : type || 'note';
|
|
54
|
+
const styles = (0, styles_1.extractStyles)(props, STYLE_LIST);
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)(RawAlert, { ...(0, filterBaseProps_1.filterBaseProps)(props, { eventProps: true }), "data-type": type, styles: styles, ref: ref }, void 0));
|
|
54
56
|
});
|
|
55
57
|
|
|
56
58
|
|
|
@@ -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-00505d5
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -14,14 +14,14 @@ exports.CopySnippet = void 0;
|
|
|
14
14
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
15
|
const clipboard_copy_1 = __importDefault(require("clipboard-copy"));
|
|
16
16
|
const actions_1 = require("../../actions");
|
|
17
|
-
const Card_1 = require("
|
|
17
|
+
const Card_1 = require("../../content/Card/Card");
|
|
18
18
|
const Grid_1 = require("../../layout/Grid");
|
|
19
|
-
const
|
|
19
|
+
const tasty_1 = require("../../../tasty");
|
|
20
20
|
const PrismCode_1 = require("../../content/PrismCode/PrismCode");
|
|
21
21
|
const notification_1 = require("../../../services/notification");
|
|
22
22
|
const icons_1 = require("@ant-design/icons");
|
|
23
23
|
const TooltipTrigger_1 = require("../../overlays/Tooltip/TooltipTrigger");
|
|
24
|
-
const
|
|
24
|
+
const Action_1 = require("../../actions/Action");
|
|
25
25
|
const Tooltip_1 = require("../../overlays/Tooltip/Tooltip");
|
|
26
26
|
const POSITION_ACTION = {
|
|
27
27
|
position: 'absolute',
|
|
@@ -29,7 +29,7 @@ const POSITION_ACTION = {
|
|
|
29
29
|
top: 0,
|
|
30
30
|
zIndex: 1,
|
|
31
31
|
};
|
|
32
|
-
const StyledBlock = (0,
|
|
32
|
+
const StyledBlock = (0, tasty_1.tasty)({
|
|
33
33
|
styles: {
|
|
34
34
|
position: 'relative',
|
|
35
35
|
overflow: {
|
|
@@ -50,7 +50,7 @@ const StyledBlock = (0, styled_1.styled)({
|
|
|
50
50
|
},
|
|
51
51
|
},
|
|
52
52
|
});
|
|
53
|
-
const ButtonContainer = (0,
|
|
53
|
+
const ButtonContainer = (0, tasty_1.tasty)({
|
|
54
54
|
styles: {
|
|
55
55
|
position: 'relative',
|
|
56
56
|
'&::after': {
|
|
@@ -103,7 +103,7 @@ function CopySnippet(allProps) {
|
|
|
103
103
|
},
|
|
104
104
|
}, style: POSITION_ACTION, onPress: onCopy, icon: (0, jsx_runtime_1.jsx)(icons_1.CopyOutlined, {}, void 0) }, void 0)] }, void 0) }, void 0));
|
|
105
105
|
if (showTooltip) {
|
|
106
|
-
return ((0, jsx_runtime_1.jsxs)(TooltipTrigger_1.TooltipTrigger, { children: [(0, jsx_runtime_1.jsx)(
|
|
106
|
+
return ((0, jsx_runtime_1.jsxs)(TooltipTrigger_1.TooltipTrigger, { children: [(0, jsx_runtime_1.jsx)(Action_1.Action, { styles: { display: 'block', cursor: 'default', width: '100%' }, children: Snippet }, void 0), (0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { children: formattedCode }, void 0)] }, void 0));
|
|
107
107
|
}
|
|
108
108
|
return Snippet;
|
|
109
109
|
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* author: Cube Dev Team
|
|
4
|
+
* @cube-dev/ui-kit v0.0.0-canary-00505d5
|
|
5
|
+
* Released under the MIT license.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
"use strict";
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.DirectoryTree = void 0;
|
|
11
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
12
|
+
const react_1 = require("react");
|
|
13
|
+
const icons_1 = require("@ant-design/icons");
|
|
14
|
+
const Flex_1 = require("../../layout/Flex");
|
|
15
|
+
const Action_1 = require("../../actions/Action");
|
|
16
|
+
const actions_1 = require("../../actions");
|
|
17
|
+
const Space_1 = require("../../layout/Space");
|
|
18
|
+
const Block_1 = require("../../Block");
|
|
19
|
+
const IMAGES = {
|
|
20
|
+
created: ((0, jsx_runtime_1.jsxs)("svg", { width: "16", height: "16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M4.714 8.572h2.714v2.715c0 .078.065.142.143.142h.857a.143.143 0 00.143-.143V8.572h2.715a.143.143 0 00.142-.143v-.857a.143.143 0 00-.142-.143H8.57V4.715a.143.143 0 00-.143-.143h-.857a.143.143 0 00-.143.143V7.43H4.714a.143.143 0 00-.143.143v.857c0 .079.065.143.143.143z", fill: "#67C082" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z", fill: "#67C082" }, void 0)] }, void 0)),
|
|
21
|
+
deleted: ((0, jsx_runtime_1.jsxs)("svg", { width: "16", height: "16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M4.714 8.57h6.572a.143.143 0 00.142-.142V7.57a.143.143 0 00-.142-.143H4.714a.143.143 0 00-.143.143v.857c0 .078.065.143.143.143z", fill: "#FF646D" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z", fill: "#FF646D" }, void 0)] }, void 0)),
|
|
22
|
+
modified: ((0, jsx_runtime_1.jsxs)("svg", { width: "16", height: "16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M14.572.857H1.429a.57.57 0 00-.572.572v13.143a.57.57 0 00.572.571h13.143a.57.57 0 00.571-.571V1.429a.57.57 0 00-.571-.572zm-.715 13H2.143V2.143h11.714v11.714z", fill: "#FBBC05" }, void 0), (0, jsx_runtime_1.jsx)("circle", { cx: "8", cy: "8", r: "2.222", fill: "#FBBC05" }, void 0)] }, void 0)),
|
|
23
|
+
};
|
|
24
|
+
const TEXT_OVERFLOW_STYLES = {
|
|
25
|
+
whiteSpace: 'nowrap',
|
|
26
|
+
textOverflow: 'ellipsis',
|
|
27
|
+
maxWidth: '100%',
|
|
28
|
+
overflow: 'hidden',
|
|
29
|
+
};
|
|
30
|
+
function calcPadding(indent) {
|
|
31
|
+
return `.75x .5x .75x ${1.5 * indent + 0.5}x`;
|
|
32
|
+
}
|
|
33
|
+
function extractLeafKeys(subTreeData, dirsOnly = false) {
|
|
34
|
+
return subTreeData.reduce((list, item) => {
|
|
35
|
+
if (!item.isLeaf) {
|
|
36
|
+
list.push(item.key);
|
|
37
|
+
list.push(...extractLeafKeys(item.children || []));
|
|
38
|
+
}
|
|
39
|
+
else if (!dirsOnly) {
|
|
40
|
+
list.push(item.key);
|
|
41
|
+
}
|
|
42
|
+
return list;
|
|
43
|
+
}, []);
|
|
44
|
+
}
|
|
45
|
+
const MODE_BG = {
|
|
46
|
+
created: {
|
|
47
|
+
'': '#success.10',
|
|
48
|
+
hovered: '#success.15',
|
|
49
|
+
},
|
|
50
|
+
deleted: {
|
|
51
|
+
'': '#danger.08',
|
|
52
|
+
hovered: '#danger.13',
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
const MODE_COLOR = {
|
|
56
|
+
created: '#success',
|
|
57
|
+
deleted: '#danger',
|
|
58
|
+
};
|
|
59
|
+
function getItemStyles({ isSelected, mode, indent }) {
|
|
60
|
+
return {
|
|
61
|
+
width: 'max 100%',
|
|
62
|
+
radius: true,
|
|
63
|
+
textAlign: 'left',
|
|
64
|
+
fill: isSelected
|
|
65
|
+
? '#purple.05'
|
|
66
|
+
: MODE_BG[mode] || {
|
|
67
|
+
'': '#clear',
|
|
68
|
+
hovered: '#dark.04',
|
|
69
|
+
},
|
|
70
|
+
color: isSelected ? '#purple-text' : MODE_COLOR[mode] || '#dark.75',
|
|
71
|
+
outline: {
|
|
72
|
+
'': '#purple-03.0',
|
|
73
|
+
'focused & focus-visible': '#purple-03',
|
|
74
|
+
},
|
|
75
|
+
fontWeight: isSelected ? 500 : 400,
|
|
76
|
+
padding: calcPadding(indent),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function Item(props) {
|
|
80
|
+
let { children, mode, indent, onPress, isSelected } = props;
|
|
81
|
+
return ((0, jsx_runtime_1.jsx)(Action_1.Action, { onPress: onPress, styles: getItemStyles({ isSelected, mode, indent }), style: { whiteSpace: 'nowrap' }, children: children }, void 0));
|
|
82
|
+
}
|
|
83
|
+
function sortTreeData(filesTree) {
|
|
84
|
+
filesTree = filesTree.map((item) => {
|
|
85
|
+
return {
|
|
86
|
+
...item,
|
|
87
|
+
children: item.children ? sortTreeData(item.children) : undefined,
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
return filesTree.sort((a, b) => {
|
|
91
|
+
if (!a.isLeaf && b.isLeaf) {
|
|
92
|
+
return -1;
|
|
93
|
+
}
|
|
94
|
+
else if (!b.isLeaf && a.isLeaf) {
|
|
95
|
+
return 1;
|
|
96
|
+
}
|
|
97
|
+
else if (a.title && b.title) {
|
|
98
|
+
return a.title.localeCompare(b.title, 'en', { sensitivity: 'base' });
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
return 0;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
const HOVER_CSS = `
|
|
106
|
+
&:hover .actions {
|
|
107
|
+
opacity: 1;
|
|
108
|
+
}
|
|
109
|
+
&:not(:hover) .actions {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
function DirectoryTree(props) {
|
|
114
|
+
let { onSelect, treeData, selectedKey, defaultExpandAll, rootTitle, actionsPanel, onlyDirs, ...otherProps } = props;
|
|
115
|
+
treeData = sortTreeData(treeData);
|
|
116
|
+
const [expanded, setExpanded] = (0, react_1.useState)(['/']);
|
|
117
|
+
const [selected, setSelected] = (0, react_1.useState)(selectedKey);
|
|
118
|
+
const fullTreeData = [
|
|
119
|
+
{
|
|
120
|
+
key: '/',
|
|
121
|
+
title: rootTitle || '/',
|
|
122
|
+
children: treeData,
|
|
123
|
+
},
|
|
124
|
+
];
|
|
125
|
+
(0, react_1.useEffect)(() => {
|
|
126
|
+
setSelected(selectedKey);
|
|
127
|
+
}, [selectedKey]);
|
|
128
|
+
(0, react_1.useEffect)(() => {
|
|
129
|
+
if (defaultExpandAll) {
|
|
130
|
+
setExpanded(extractLeafKeys(fullTreeData, true));
|
|
131
|
+
}
|
|
132
|
+
}, []);
|
|
133
|
+
function toggle(item) {
|
|
134
|
+
if (expanded.includes(item.key)) {
|
|
135
|
+
setExpanded(expanded.filter((key) => key !== item.key));
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
setExpanded([...expanded, item.key]);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function select(item) {
|
|
142
|
+
onSelect && onSelect(item.key);
|
|
143
|
+
setSelected(item.key);
|
|
144
|
+
}
|
|
145
|
+
function recursiveRender(subTreeData, indent = 0) {
|
|
146
|
+
return subTreeData.reduce((list, item) => {
|
|
147
|
+
if (!item.isLeaf) {
|
|
148
|
+
list.push((0, jsx_runtime_1.jsx)(Item, { indent: indent, isSelected: selected === item.key, onPress: () => select(item), children: (0, jsx_runtime_1.jsxs)(Space_1.Space, { gap: ".5x", css: HOVER_CSS, children: [(0, jsx_runtime_1.jsx)(actions_1.Button, { type: "clear", margin: "-.5x", padding: ".25x", color: {
|
|
149
|
+
'': '#dark.60',
|
|
150
|
+
hovered: '#purple',
|
|
151
|
+
}, onPress: () => toggle(item), label: expanded.includes(item.key) ? 'Collapse' : 'Expand', children: expanded.includes(item.key) ? ((0, jsx_runtime_1.jsx)(icons_1.CaretUpOutlined, {}, void 0)) : ((0, jsx_runtime_1.jsx)(icons_1.CaretDownOutlined, {}, void 0)) }, void 0), (0, jsx_runtime_1.jsxs)(Space_1.Space, { gap: "1x", flexGrow: 1, color: selected === item.key ? '#purple' : '#dark.50', children: [expanded.includes(item.key) ? ((0, jsx_runtime_1.jsx)(icons_1.FolderOpenFilled, {}, void 0)) : ((0, jsx_runtime_1.jsx)(icons_1.FolderFilled, {}, void 0)), (0, jsx_runtime_1.jsx)(Block_1.Block, { style: TEXT_OVERFLOW_STYLES, color: selected === item.key ? '#purple-text' : '#dark.75', children: item.title }, void 0)] }, void 0), actionsPanel && actionsPanel(item)] }, void 0) }, item.key));
|
|
152
|
+
if (expanded.includes(item.key)) {
|
|
153
|
+
list.push(...recursiveRender(item.children || [], indent + 1));
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
else if (!onlyDirs) {
|
|
157
|
+
list.push((0, jsx_runtime_1.jsx)(Item, { indent: indent + 1.7, isSelected: selected === item.key, onPress: () => select(item), mode: item.mode, children: (0, jsx_runtime_1.jsxs)(Space_1.Space, { gap: "1x", css: HOVER_CSS, color: selected === item.key ? '#purple' : '#dark.50', children: [(0, jsx_runtime_1.jsx)(icons_1.FileOutlined, {}, void 0), (0, jsx_runtime_1.jsx)(Block_1.Block, { style: TEXT_OVERFLOW_STYLES, flexGrow: 1, color: selected === item.key ? '#purple-text' : '#dark.75', children: item.title }, void 0), actionsPanel && actionsPanel(item), item.mode && ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { padding: "0 .5x", placeItems: "center", children: IMAGES[item.mode] }, void 0))] }, void 0) }, item.key));
|
|
158
|
+
}
|
|
159
|
+
return list;
|
|
160
|
+
}, []);
|
|
161
|
+
}
|
|
162
|
+
return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { styles: { flow: 'column', fontWeight: 500, width: '100%', gap: '1bw' }, ...otherProps, children: recursiveRender(fullTreeData) }, void 0));
|
|
163
|
+
}
|
|
164
|
+
exports.DirectoryTree = DirectoryTree;
|
|
165
|
+
|
|
166
|
+
|