@cube-dev/ui-kit 0.9.10 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/_internal/hooks/index.js +22 -0
- package/cjs/_internal/hooks/use-deprecation-warning.js +43 -0
- package/cjs/_internal/index.js +22 -0
- package/cjs/components/Base.js +8 -11
- package/cjs/components/Block.js +10 -11
- package/cjs/components/GlobalStyles.js +1 -1
- package/cjs/components/GridProvider.js +12 -11
- package/cjs/components/HiddenInput.js +1 -1
- package/cjs/components/OpenTrasition.js +1 -1
- package/cjs/components/Root.js +9 -8
- package/cjs/components/actions/Action.js +8 -11
- package/cjs/components/actions/Button/Button.js +5 -8
- package/cjs/components/actions/Button/Submit.js +1 -1
- package/cjs/components/actions/Button/index.js +1 -1
- package/cjs/components/actions/ButtonGroup/ButtonGroup.js +9 -11
- package/cjs/components/actions/index.js +1 -1
- package/cjs/components/content/ActiveZone/ActiveZone.js +6 -9
- package/cjs/components/{organisms → content}/Alert/Alert.js +9 -16
- package/cjs/components/content/Alert/index.js +22 -0
- package/cjs/components/{types.js → content/Alert/types.js} +1 -1
- package/cjs/components/content/Alert/use-alert.js +32 -0
- package/cjs/components/content/Avatar/Avatar.js +4 -7
- package/cjs/components/content/Badge/Badge.js +7 -10
- package/cjs/components/content/Card/Card.js +16 -16
- package/cjs/components/content/Content.js +8 -14
- package/cjs/components/{organisms → content}/CopySnippet/CopySnippet.js +61 -26
- package/cjs/components/content/CopySnippet/index.js +22 -0
- package/cjs/components/content/Divider.js +32 -34
- package/cjs/components/content/Footer.js +8 -13
- package/cjs/components/content/Header.js +8 -12
- package/cjs/components/content/Paragraph.js +4 -5
- package/cjs/components/content/Placeholder/Placeholder.js +37 -21
- package/cjs/components/content/PrismCode/PrismCode.js +8 -9
- package/cjs/components/content/Result/Result.js +8 -11
- package/cjs/components/content/Skeleton/Skeleton.js +7 -7
- package/cjs/components/content/Tag/Tag.js +29 -29
- package/cjs/components/content/Text.js +40 -44
- package/cjs/components/content/Title.js +30 -37
- package/cjs/components/forms/Checkbox/Checkbox.js +60 -66
- package/cjs/components/forms/Checkbox/CheckboxGroup.js +22 -37
- package/cjs/components/forms/Checkbox/context.js +1 -1
- package/cjs/components/forms/FieldWrapper.js +7 -11
- package/cjs/components/forms/FileInput/FileInput.js +47 -52
- package/cjs/components/forms/Form/Field.js +4 -9
- package/cjs/components/forms/Form/Form.js +16 -16
- package/cjs/components/forms/Form/index.js +1 -1
- package/cjs/components/forms/Form/useForm.js +13 -11
- package/cjs/components/forms/Form/validation.js +1 -1
- package/cjs/components/forms/Input/Input.js +28 -0
- package/cjs/components/forms/Input/index.js +22 -0
- package/cjs/components/forms/Label.js +12 -15
- package/cjs/components/forms/NumberInput/NumberInput.js +4 -4
- 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 +98 -97
- package/cjs/components/forms/RadioGroup/RadioGroup.js +21 -37
- 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 +78 -81
- package/cjs/components/forms/TextArea/TextArea.js +5 -5
- package/cjs/components/forms/TextInput/TextInput.js +4 -6
- package/cjs/components/forms/TextInput/TextInputBase.js +29 -26
- package/cjs/components/forms/index.js +18 -20
- package/cjs/components/layout/Flex.js +10 -11
- package/cjs/components/layout/Flow.js +11 -12
- package/cjs/components/layout/Grid.js +10 -12
- package/cjs/components/layout/Prefix.js +21 -21
- package/cjs/components/layout/Space.js +22 -20
- package/cjs/components/layout/Suffix.js +21 -21
- package/cjs/components/navigation/LegacyTabs/LegacyTabs.js +64 -41
- package/cjs/components/navigation/Link/Link.js +1 -1
- package/cjs/components/organisms/FileTabs/FileTabs.js +88 -58
- package/cjs/components/organisms/Modal/Modal.js +2 -2
- package/cjs/components/organisms/StatsCard/StatsCard.js +1 -1
- package/cjs/components/other/Base64Upload/Base64Upload.js +4 -6
- package/cjs/components/other/CloudLogo/CloudLogo.js +1 -1
- package/cjs/components/overlays/AlertDialog/AlertDialog.js +7 -9
- 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 +71 -80
- package/cjs/components/overlays/Dialog/DialogContainer.js +1 -1
- package/cjs/components/overlays/Dialog/DialogForm.js +23 -33
- package/cjs/components/overlays/Dialog/DialogTrigger.js +9 -10
- package/cjs/components/overlays/Dialog/context.js +12 -2
- package/cjs/components/overlays/Dialog/index.js +1 -1
- package/cjs/components/overlays/Modal/Modal.js +32 -32
- package/cjs/components/overlays/Modal/OpenTransition.js +1 -1
- package/cjs/components/overlays/Modal/Overlay.js +1 -1
- package/cjs/components/overlays/Modal/Popover.js +24 -27
- package/cjs/components/overlays/Modal/Tray.js +24 -24
- package/cjs/components/overlays/Modal/Underlay.js +25 -31
- package/cjs/components/overlays/Modal/index.js +1 -1
- package/cjs/components/overlays/Notification/Notification.js +53 -10
- package/cjs/components/overlays/OverlayWrapper.js +1 -1
- package/cjs/components/overlays/Tooltip/Tooltip.js +70 -60
- package/cjs/components/overlays/Tooltip/TooltipProvider.js +2 -2
- 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 +51 -48
- package/cjs/components/pickers/Menu/Menu.js +15 -20
- package/cjs/components/pickers/Menu/MenuButton.js +1 -1
- package/cjs/components/pickers/Menu/MenuItem.js +1 -1
- package/cjs/components/pickers/Menu/MenuSection.js +6 -7
- 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 +42 -20
- package/cjs/components/pickers/Select/Select.js +125 -122
- 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 +20 -0
- package/cjs/components/portal/storybook/templates/PortalOrder.js +17 -0
- package/cjs/components/portal/storybook/templates/basic.js +1 -1
- package/cjs/components/portal/storybook/templates/index.js +3 -1
- package/cjs/components/portal/types.js +1 -1
- package/cjs/components/portal/usePortal.js +1 -1
- package/cjs/components/status/LoadingAnimation/LoadingAnimation.js +4 -4
- package/cjs/components/status/Spin/Spin.js +2 -2
- package/cjs/data/themes.js +1 -1
- package/cjs/index.js +11 -19
- package/cjs/provider.js +4 -8
- package/cjs/providers/{StylesProvider.js → StyleProvider.js} +7 -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 +5 -5
- package/cjs/stories/components/DialogFormApp.js +2 -10
- package/cjs/stories/components/StyledButton.js +4 -4
- package/cjs/stories/lists/baseProps.js +12 -12
- package/cjs/styled/index.js +1 -1
- package/cjs/styled/styled.js +20 -25
- package/cjs/tasty/index.js +36 -0
- package/cjs/{providers → tasty/providers}/BreakpointsProvider.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 -3
- 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/{styles → tasty/styles}/types.js +1 -1
- package/cjs/{styles → tasty/styles}/width.js +1 -1
- package/cjs/tasty/tasty.js +113 -0
- package/cjs/tasty/types.js +11 -0
- 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 +11 -10
- 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 +22 -0
- package/cjs/test/render.js +18 -0
- package/cjs/test/setup.js +6 -2
- package/cjs/test/utils/index.js +22 -0
- package/cjs/test/utils/wait.js +16 -0
- package/cjs/tokens.js +11 -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 +3 -3
- 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 +17 -16
- 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 +12 -9
- 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 +4 -7
- package/es/components/Block.js +9 -10
- package/es/components/GlobalStyles.js +1 -1
- package/es/components/GridProvider.js +12 -11
- package/es/components/HiddenInput.js +1 -1
- package/es/components/OpenTrasition.js +1 -1
- package/es/components/Root.js +7 -6
- package/es/components/actions/Action.js +7 -10
- package/es/components/actions/Button/Button.js +5 -8
- package/es/components/actions/Button/Submit.js +1 -1
- package/es/components/actions/Button/index.js +1 -1
- package/es/components/actions/ButtonGroup/ButtonGroup.js +9 -11
- package/es/components/actions/index.js +1 -1
- package/es/components/content/ActiveZone/ActiveZone.js +4 -7
- package/es/components/{organisms → content}/Alert/Alert.js +9 -16
- package/es/components/content/Alert/index.js +10 -0
- package/es/components/{types.js → content/Alert/types.js} +1 -1
- package/es/components/content/Alert/use-alert.js +28 -0
- package/es/components/content/Avatar/Avatar.js +3 -6
- package/es/components/content/Badge/Badge.js +6 -9
- package/es/components/content/Card/Card.js +16 -16
- package/es/components/content/Content.js +6 -12
- package/es/components/{organisms → content}/CopySnippet/CopySnippet.js +62 -27
- package/es/components/content/CopySnippet/index.js +10 -0
- package/es/components/content/Divider.js +32 -34
- package/es/components/content/Footer.js +6 -11
- package/es/components/content/Header.js +6 -10
- package/es/components/content/Paragraph.js +2 -3
- package/es/components/content/Placeholder/Placeholder.js +34 -21
- package/es/components/content/PrismCode/PrismCode.js +7 -8
- package/es/components/content/Result/Result.js +6 -9
- package/es/components/content/Skeleton/Skeleton.js +7 -7
- package/es/components/content/Tag/Tag.js +28 -28
- package/es/components/content/Text.js +38 -42
- package/es/components/content/Title.js +27 -34
- package/es/components/forms/Checkbox/Checkbox.js +59 -65
- package/es/components/forms/Checkbox/CheckboxGroup.js +22 -37
- package/es/components/forms/Checkbox/context.js +1 -1
- package/es/components/forms/FieldWrapper.js +7 -11
- package/es/components/forms/FileInput/FileInput.js +46 -51
- package/es/components/forms/Form/Field.js +4 -9
- package/es/components/forms/Form/Form.js +17 -17
- package/es/components/forms/Form/index.js +1 -1
- package/es/components/forms/Form/useForm.js +12 -10
- package/es/components/forms/Form/validation.js +1 -1
- package/es/components/forms/Input/Input.js +25 -0
- package/es/components/forms/Input/index.js +10 -0
- package/es/components/forms/Label.js +12 -15
- package/es/components/forms/NumberInput/NumberInput.js +4 -4
- 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 +97 -96
- package/es/components/forms/RadioGroup/RadioGroup.js +21 -37
- 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 +78 -81
- package/es/components/forms/TextArea/TextArea.js +5 -5
- package/es/components/forms/TextInput/TextInput.js +4 -6
- package/es/components/forms/TextInput/TextInputBase.js +27 -24
- package/es/components/forms/index.js +8 -14
- package/es/components/layout/Flex.js +10 -11
- package/es/components/layout/Flow.js +10 -11
- package/es/components/layout/Grid.js +10 -12
- package/es/components/layout/Prefix.js +20 -20
- package/es/components/layout/Space.js +22 -20
- package/es/components/layout/Suffix.js +20 -20
- package/es/components/navigation/LegacyTabs/LegacyTabs.js +61 -41
- package/es/components/navigation/Link/Link.js +1 -1
- package/es/components/organisms/FileTabs/FileTabs.js +85 -58
- package/es/components/organisms/Modal/Modal.js +2 -2
- package/es/components/organisms/StatsCard/StatsCard.js +1 -1
- package/es/components/other/Base64Upload/Base64Upload.js +2 -4
- package/es/components/other/CloudLogo/CloudLogo.js +1 -1
- package/es/components/overlays/AlertDialog/AlertDialog.js +8 -10
- 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 +72 -81
- package/es/components/overlays/Dialog/DialogContainer.js +1 -1
- package/es/components/overlays/Dialog/DialogForm.js +21 -32
- package/es/components/overlays/Dialog/DialogTrigger.js +9 -10
- package/es/components/overlays/Dialog/context.js +8 -2
- package/es/components/overlays/Dialog/index.js +1 -1
- package/es/components/overlays/Modal/Modal.js +32 -32
- package/es/components/overlays/Modal/OpenTransition.js +1 -1
- package/es/components/overlays/Modal/Overlay.js +1 -1
- package/es/components/overlays/Modal/Popover.js +24 -27
- package/es/components/overlays/Modal/Tray.js +24 -24
- package/es/components/overlays/Modal/Underlay.js +25 -31
- package/es/components/overlays/Modal/index.js +1 -1
- package/es/components/overlays/Notification/Notification.js +53 -10
- package/es/components/overlays/OverlayWrapper.js +1 -1
- package/es/components/overlays/Tooltip/Tooltip.js +68 -61
- package/es/components/overlays/Tooltip/TooltipProvider.js +2 -2
- 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 +51 -48
- package/es/components/pickers/Menu/Menu.js +15 -20
- 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 +8 -9
- 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 +41 -19
- package/es/components/pickers/Select/Select.js +120 -120
- 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 +16 -0
- package/es/components/portal/storybook/templates/PortalOrder.js +13 -0
- package/es/components/portal/storybook/templates/basic.js +1 -1
- package/es/components/portal/storybook/templates/index.js +3 -1
- package/es/components/portal/types.js +1 -1
- package/es/components/portal/usePortal.js +1 -1
- package/es/components/status/LoadingAnimation/LoadingAnimation.js +4 -4
- package/es/components/status/Spin/Spin.js +2 -2
- package/es/data/themes.js +1 -1
- package/es/index.js +8 -11
- package/es/provider.js +3 -7
- package/es/providers/{StylesProvider.js → StyleProvider.js} +7 -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 +4 -5
- package/es/stories/components/DialogFormApp.js +4 -12
- package/es/stories/components/StyledButton.js +4 -4
- package/es/stories/lists/baseProps.js +2 -2
- package/es/styled/index.js +1 -1
- package/es/styled/styled.js +8 -12
- package/es/tasty/index.js +21 -0
- package/es/{providers → tasty/providers}/BreakpointsProvider.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 -3
- 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 +90 -0
- package/es/tasty/types.js +10 -0
- 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 +11 -10
- 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 +10 -0
- package/es/test/render.js +14 -0
- package/es/test/setup.js +6 -2
- package/es/test/utils/index.js +10 -0
- package/es/test/utils/wait.js +12 -0
- package/es/tokens.js +11 -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 +17 -16
- 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 +12 -9
- package/package.json +10 -10
- 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 +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/Alert/Alert.d.ts +3 -0
- package/types/components/content/Alert/index.d.ts +2 -0
- package/types/components/content/Alert/types.d.ts +17 -0
- package/types/components/content/Alert/use-alert.d.ts +6 -0
- package/types/components/content/Avatar/Avatar.d.ts +1 -2
- package/types/components/content/Badge/Badge.d.ts +1 -1
- package/types/components/content/Card/Card.d.ts +1 -1
- package/types/components/content/Content.d.ts +1 -1
- package/types/components/{organisms → content}/CopySnippet/CopySnippet.d.ts +2 -2
- package/types/components/content/CopySnippet/index.d.ts +1 -0
- package/types/components/content/Divider.d.ts +1 -1
- package/types/components/content/Footer.d.ts +1 -1
- package/types/components/content/Header.d.ts +1 -1
- package/types/components/content/Paragraph.d.ts +1 -1
- package/types/components/content/Placeholder/Placeholder.d.ts +1 -2
- package/types/components/content/PrismCode/PrismCode.d.ts +1 -2
- package/types/components/content/Result/Result.d.ts +1 -1
- package/types/components/content/Skeleton/Skeleton.d.ts +1 -1
- package/types/components/content/Tag/Tag.d.ts +2 -1
- package/types/components/content/Text.d.ts +1 -2
- package/types/components/content/Title.d.ts +1 -1
- package/types/components/forms/Checkbox/Checkbox.d.ts +1 -1
- package/types/components/forms/Checkbox/CheckboxGroup.d.ts +1 -1
- package/types/components/forms/FieldWrapper.d.ts +1 -1
- package/types/components/forms/FileInput/FileInput.d.ts +1 -2
- package/types/components/forms/Form/Form.d.ts +2 -3
- package/types/components/forms/Form/useForm.d.ts +6 -6
- package/types/components/forms/Input/Input.d.ts +14 -0
- package/types/components/forms/Input/index.d.ts +1 -0
- package/types/components/forms/Label.d.ts +1 -2
- package/types/components/forms/RadioGroup/Radio.d.ts +1 -2
- package/types/components/forms/RadioGroup/RadioGroup.d.ts +1 -2
- package/types/components/forms/Switch/Switch.d.ts +1 -2
- package/types/components/forms/TextInput/TextInput.d.ts +4 -8
- package/types/components/forms/TextInput/TextInputBase.d.ts +1 -2
- package/types/components/forms/index.d.ts +7 -35
- 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/AlertDialog.d.ts +1 -1
- package/types/components/overlays/AlertDialog/types.d.ts +1 -1
- package/types/components/overlays/Dialog/Dialog.d.ts +4 -6
- package/types/components/overlays/Dialog/DialogForm.d.ts +1 -2
- package/types/components/overlays/Dialog/DialogTrigger.d.ts +1 -1
- package/types/components/overlays/Dialog/context.d.ts +1 -0
- package/types/components/overlays/Modal/Modal.d.ts +1 -2
- package/types/components/overlays/Modal/Popover.d.ts +1 -1
- package/types/components/overlays/Modal/Tray.d.ts +1 -2
- package/types/components/overlays/Tooltip/Tooltip.d.ts +3 -3
- package/types/components/overlays/Tooltip/TooltipProvider.d.ts +1 -1
- package/types/components/overlays/Tooltip/context.d.ts +1 -1
- package/types/components/pickers/Menu/Menu.d.ts +2 -3
- package/types/components/pickers/Menu/MenuItem.d.ts +1 -2
- package/types/components/pickers/Menu/MenuSection.d.ts +3 -8
- package/types/components/pickers/Menu/styled.d.ts +129 -130
- package/types/components/pickers/Select/Select.d.ts +1 -2
- package/types/components/portal/storybook/templates/CustomRoot.d.ts +3 -0
- package/types/components/portal/storybook/templates/PortalOrder.d.ts +3 -0
- package/types/components/portal/storybook/templates/index.d.ts +2 -0
- package/types/index.d.ts +8 -16
- package/types/provider.d.ts +1 -7
- package/types/providers/{StylesProvider.d.ts → StyleProvider.d.ts} +7 -1
- package/types/shared/form.d.ts +1 -2
- package/types/stories/components/ConfirmDeletionDialogForm.d.ts +2 -2
- package/types/stories/components/StyledButton.d.ts +86 -87
- package/types/styled/styled.d.ts +24 -8
- package/types/tasty/index.d.ts +15 -0
- package/types/{providers → tasty/providers}/BreakpointsProvider.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 +1 -1
- 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 +36 -0
- package/types/{components → tasty}/types.d.ts +7 -18
- 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/test/index.d.ts +1 -0
- package/types/test/render.d.ts +3 -0
- package/types/test/utils/index.d.ts +1 -0
- package/types/test/utils/wait.d.ts +1 -0
- package/types/tokens.d.ts +8 -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/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/utils/escape-string.js +0 -21
- 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/utils/escape-string.js +0 -18
- 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/utils/escape-string.d.ts +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
export * from './use-deprecation-warning';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './hooks';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { AllBaseProps } from '
|
2
|
+
import { AllBaseProps } from '../tasty';
|
3
3
|
/**
|
4
|
-
* @deprecated consider using
|
4
|
+
* @deprecated consider using tasty() instead
|
5
5
|
*/
|
6
6
|
declare const _Base: import("react").ForwardRefExoticComponent<AllBaseProps<keyof HTMLElementTagNameMap> & import("react").RefAttributes<unknown>>;
|
7
7
|
export { _Base as Base };
|
@@ -1,8 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { AllBaseProps, ContainerStyleProps } from '
|
3
|
-
export declare const CUBE_BLOCK_STYLES: {
|
4
|
-
display: string;
|
5
|
-
};
|
2
|
+
import { AllBaseProps, ContainerStyleProps } from '../tasty';
|
6
3
|
export interface CubeBlockProps extends Omit<AllBaseProps, keyof ContainerStyleProps | 'as'>, ContainerStyleProps {
|
7
4
|
}
|
8
5
|
export declare const Block: import("react").ForwardRefExoticComponent<CubeBlockProps & import("react").RefAttributes<unknown>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
2
|
-
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '
|
2
|
+
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '../../tasty';
|
3
3
|
import { AriaButtonProps } from '@react-types/button';
|
4
4
|
export interface CubeActionProps extends BaseProps, TagNameProps, BaseStyleProps, ContainerStyleProps, TextStyleProps, Omit<AriaButtonProps, 'type'> {
|
5
5
|
to?: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
2
|
-
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '
|
2
|
+
import { BaseProps, BaseStyleProps, ContainerStyleProps, TagNameProps, TextStyleProps } from '../../../tasty';
|
3
3
|
import { FocusableOptions } from '@react-aria/focus';
|
4
4
|
export interface CubeActiveZoneProps extends BaseProps, TagNameProps, BaseStyleProps, ContainerStyleProps, TextStyleProps, FocusableOptions {
|
5
5
|
label?: string;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { BaseProps, ContainerStyleProps, TextStyleProps } from '../../../tasty';
|
2
|
+
import THEMES from '../../../data/themes';
|
3
|
+
export interface CubeAlertProps extends Omit<BaseProps, 'theme'>, ContainerStyleProps, TextStyleProps {
|
4
|
+
/**
|
5
|
+
* ***Deprecated***
|
6
|
+
*
|
7
|
+
* @deprecated use `theme` prop instead
|
8
|
+
* @default note
|
9
|
+
*/
|
10
|
+
type?: keyof typeof THEMES;
|
11
|
+
/**
|
12
|
+
* Changes the appearance of the Alert component
|
13
|
+
*
|
14
|
+
* @default note
|
15
|
+
*/
|
16
|
+
theme?: keyof typeof THEMES;
|
17
|
+
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
3
|
-
import { Styles } from '../../../styles/types';
|
2
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
4
3
|
export interface CubeAvatarProps extends BaseProps, ContainerStyleProps {
|
5
4
|
icon?: ReactNode;
|
6
5
|
size?: Styles['size'];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import THEMES from '../../../data/themes';
|
3
|
-
import { BaseProps, ContainerStyleProps } from '
|
3
|
+
import { BaseProps, ContainerStyleProps } from '../../../tasty';
|
4
4
|
export interface CubeBadgeProps extends BaseProps, ContainerStyleProps {
|
5
5
|
type?: keyof typeof THEMES | string;
|
6
6
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../../tasty';
|
3
3
|
export interface CubeCardProps extends BaseProps, ContainerStyleProps {
|
4
4
|
}
|
5
5
|
export declare const Card: import("react").ForwardRefExoticComponent<CubeCardProps & import("react").RefAttributes<unknown>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, ContainerStyleProps, TextStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps, TextStyleProps } from '../../tasty';
|
3
3
|
export interface CubeContentProps extends BaseProps, ContainerStyleProps, TextStyleProps {
|
4
4
|
}
|
5
5
|
export declare const Content: import("react").ForwardRefExoticComponent<CubeContentProps & import("react").RefAttributes<unknown>>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { CubeCardProps } from '
|
2
|
+
import { CubeCardProps } from '../Card/Card';
|
3
|
+
import { Styles } from '../../../tasty';
|
3
4
|
import { CubePrismCodeProps } from '../../content/PrismCode/PrismCode';
|
4
|
-
import { Styles } from '../../../styles/types';
|
5
5
|
export interface CubeCopySnippetProps extends CubeCardProps {
|
6
6
|
padding?: Styles['padding'];
|
7
7
|
/** The code snippet */
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './CopySnippet';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, OuterStyleProps } from '
|
2
|
+
import { BaseProps, OuterStyleProps } from '../../tasty';
|
3
3
|
export interface CubeDividerProps extends BaseProps, OuterStyleProps {
|
4
4
|
}
|
5
5
|
export declare const Divider: import("react").ForwardRefExoticComponent<CubeDividerProps & import("react").RefAttributes<unknown>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, ContainerStyleProps, TextStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps, TextStyleProps } from '../../tasty';
|
3
3
|
export interface CubeFooterProps extends BaseProps, ContainerStyleProps, TextStyleProps {
|
4
4
|
}
|
5
5
|
export declare const Footer: import("react").ForwardRefExoticComponent<CubeFooterProps & import("react").RefAttributes<unknown>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, ContainerStyleProps, TextStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps, TextStyleProps } from '../../tasty';
|
3
3
|
export interface CubeHeaderProps extends BaseProps, ContainerStyleProps, TextStyleProps {
|
4
4
|
}
|
5
5
|
export declare const Header: import("react").ForwardRefExoticComponent<CubeHeaderProps & import("react").RefAttributes<unknown>>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CubeTextProps } from './Text';
|
3
|
-
import { ContainerStyleProps } from '
|
3
|
+
import { ContainerStyleProps } from '../../tasty';
|
4
4
|
export interface CubeParagraphProps extends CubeTextProps, ContainerStyleProps {
|
5
5
|
}
|
6
6
|
export declare const Paragraph: import("react").ForwardRefExoticComponent<CubeParagraphProps & import("react").RefAttributes<unknown>>;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Styles } from '../../../
|
3
|
-
import { BaseProps, ContainerStyleProps } from '../../types';
|
2
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
4
3
|
export interface CubePlaceholderProps extends BaseProps, ContainerStyleProps {
|
5
4
|
size?: Styles['fontSize'];
|
6
5
|
circle?: boolean;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
3
|
-
import { Styles } from '../../../styles/types';
|
2
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
4
3
|
export interface CubePrismCodeProps extends ContainerStyleProps {
|
5
4
|
/** The CSS style map */
|
6
5
|
style?: BaseProps['style'];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../../tasty';
|
3
3
|
export interface CubeResultProps extends BaseProps, ContainerStyleProps {
|
4
4
|
/** Additional block content. For example, a set of buttons */
|
5
5
|
children?: ReactNode;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CubePlaceholderProps } from '../Placeholder/Placeholder';
|
3
3
|
import { CubeGridProps } from '../../layout/Grid';
|
4
|
-
import { BaseProps, ContainerStyleProps } from '
|
4
|
+
import { BaseProps, ContainerStyleProps } from '../../../tasty';
|
5
5
|
declare const LAYOUT_MAP: {
|
6
6
|
readonly page: ({ lines, children, ...props }: {
|
7
7
|
[x: string]: any;
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import THEMES from '../../../data/themes';
|
3
|
-
import { BaseProps, ContainerStyleProps } from '
|
3
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
4
4
|
export interface CubeTagProps extends BaseProps, ContainerStyleProps {
|
5
5
|
type?: keyof typeof THEMES | string;
|
6
6
|
isClosable?: boolean;
|
7
7
|
onClose?: () => void;
|
8
|
+
closeButtonStyles?: Styles;
|
8
9
|
}
|
9
10
|
declare const _Tag: import("react").ForwardRefExoticComponent<CubeTagProps & import("react").RefAttributes<unknown>>;
|
10
11
|
export { _Tag as Tag };
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { CSSProperties } from 'react';
|
2
|
-
import { ResponsiveStyleValue } from '../../
|
3
|
-
import { BaseProps, BaseStyleProps, ColorStyleProps, TagNameProps, TextStyleProps } from '../types';
|
2
|
+
import { BaseProps, BaseStyleProps, ColorStyleProps, ResponsiveStyleValue, TagNameProps, TextStyleProps } from '../../tasty';
|
4
3
|
export declare const TEXT_PROP_MAP: {
|
5
4
|
readonly transform: "textTransform";
|
6
5
|
readonly weight: "fontWeight";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CubeTextProps } from './Text';
|
3
|
-
import { BaseProps, ContainerStyleProps, PositionStyleProps, TagNameProps } from '
|
3
|
+
import { BaseProps, ContainerStyleProps, PositionStyleProps, TagNameProps } from '../../tasty';
|
4
4
|
export interface CubeTitleProps extends BaseProps, CubeTextProps, TagNameProps, ContainerStyleProps, PositionStyleProps {
|
5
5
|
/** The level of the heading **/
|
6
6
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import type { AriaCheckboxProps } from '@react-types/checkbox';
|
3
|
+
import { BaseProps } from '../../../tasty';
|
3
4
|
import { CheckboxGroup } from './CheckboxGroup';
|
4
|
-
import { BaseProps } from '../../types';
|
5
5
|
import { FormFieldProps } from '../../../shared';
|
6
6
|
export interface CubeCheckboxProps extends BaseProps, AriaCheckboxProps, FormFieldProps {
|
7
7
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps } from '
|
2
|
+
import { BaseProps } from '../../../tasty';
|
3
3
|
import type { AriaCheckboxGroupProps } from '@react-types/checkbox';
|
4
4
|
import { FormFieldProps } from '../../../shared';
|
5
5
|
export interface CubeCheckboxGroupProps extends BaseProps, AriaCheckboxGroupProps, FormFieldProps {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { LabelPosition, NecessityIndicator, ValidationState } from '../../shared';
|
3
|
-
import { Styles } from '../../
|
3
|
+
import { Styles } from '../../tasty';
|
4
4
|
export declare type CubeFieldWrapperProps = {
|
5
5
|
as: string;
|
6
6
|
labelPosition: LabelPosition;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { RefObject } from 'react';
|
2
|
-
import { Styles } from '../../../
|
3
|
-
import { BaseProps, BlockStyleProps, PositionStyleProps } from '../../types';
|
2
|
+
import { BaseProps, BlockStyleProps, PositionStyleProps, Styles } from '../../../tasty';
|
4
3
|
import type { AriaTextFieldProps } from '@react-types/textfield';
|
5
4
|
import { FormFieldProps } from '../../../shared';
|
6
5
|
export interface CubeFileInputProps extends BaseProps, PositionStyleProps, BlockStyleProps, AriaTextFieldProps, FormFieldProps {
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import { FormHTMLAttributes } from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
2
|
+
import { BaseProps, ContainerStyleProps, Styles } from '../../../tasty';
|
3
|
+
import { CubeFormData, CubeFormInstance } from './useForm';
|
4
4
|
import { FormBaseProps } from '../../../shared';
|
5
|
-
import { Styles } from '../../../styles/types';
|
6
5
|
export declare const FormContext: import("react").Context<{}>;
|
7
6
|
export declare function useFormProps(props: any): any;
|
8
7
|
export interface CubeFormProps extends FormBaseProps, BaseProps, ContainerStyleProps, Pick<FormHTMLAttributes<HTMLFormElement>, 'action' | 'autoComplete' | 'encType' | 'method' | 'target'> {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export declare type CubeFormData = {
|
2
|
-
[key: string]:
|
2
|
+
[key: string]: unknown;
|
3
3
|
};
|
4
4
|
export declare type CubeFieldData = {
|
5
|
-
value?:
|
5
|
+
value?: unknown;
|
6
6
|
name: string;
|
7
7
|
errors: string[];
|
8
8
|
touched?: boolean;
|
@@ -20,18 +20,18 @@ export declare class CubeFormInstance {
|
|
20
20
|
constructor(forceReRender?: () => void);
|
21
21
|
submit(): Promise<any>;
|
22
22
|
setFieldsValue(newData: {
|
23
|
-
[key: string]:
|
23
|
+
[key: string]: unknown;
|
24
24
|
}, touched?: boolean, skipRender?: boolean, createFields?: boolean): void;
|
25
|
-
getFieldValue(name: any):
|
25
|
+
getFieldValue(name: any): unknown;
|
26
26
|
getFieldsValue(): CubeFormData;
|
27
27
|
/**
|
28
28
|
* Similar to getFieldsValue() but respects '.' notation and creates nested objects.
|
29
29
|
*/
|
30
30
|
getFormData(): CubeFormData;
|
31
|
-
setFieldValue(name: string, value:
|
31
|
+
setFieldValue(name: string, value: unknown, touched?: boolean, skipRender?: boolean): void;
|
32
32
|
getFieldInstance(name: string): CubeFieldData;
|
33
33
|
setInitialFieldsValue(values: {
|
34
|
-
[key: string]:
|
34
|
+
[key: string]: unknown;
|
35
35
|
}): void;
|
36
36
|
resetFields(names?: string[], skipRender?: boolean): void;
|
37
37
|
validateField(name: string): Promise<any>;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { TextInput } from '../TextInput/TextInput';
|
2
|
+
import { PasswordInput } from '../PasswordInput/PasswordInput';
|
3
|
+
import { NumberInput } from '../NumberInput/NumberInput';
|
4
|
+
import { FileInput } from '../FileInput/FileInput';
|
5
|
+
import { TextArea } from '../TextArea/TextArea';
|
6
|
+
declare type CubeInput = typeof TextInput & {
|
7
|
+
Text: typeof TextInput;
|
8
|
+
Password: typeof PasswordInput;
|
9
|
+
Number: typeof NumberInput;
|
10
|
+
TextArea: typeof TextArea;
|
11
|
+
File: typeof FileInput;
|
12
|
+
};
|
13
|
+
export declare const Input: CubeInput;
|
14
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Input';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
2
|
-
import { BaseProps, ContainerStyleProps, TagNameProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps, Styles, TagNameProps } from '../../tasty';
|
3
3
|
import { LabelPosition, NecessityIndicator, ValidationState } from '../../shared';
|
4
|
-
import { Styles } from '../../styles/types';
|
5
4
|
export declare const INLINE_LABEL_STYLES: Styles;
|
6
5
|
export declare const LABEL_STYLES: Styles;
|
7
6
|
export interface CubeLabelProps extends BaseProps, TagNameProps, ContainerStyleProps {
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { BaseProps, Styles } from '../../../tasty';
|
2
3
|
import { RadioGroup } from './RadioGroup';
|
3
|
-
import { Styles } from '../../../styles/types';
|
4
|
-
import { BaseProps } from '../../types';
|
5
4
|
import type { AriaRadioProps } from '@react-types/radio';
|
6
5
|
import { FormFieldProps } from '../../../shared';
|
7
6
|
export interface CubeRadioProps extends BaseProps, AriaRadioProps, FormFieldProps {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Styles } from '../../../
|
3
|
-
import { BaseProps } from '../../types';
|
2
|
+
import { BaseProps, Styles } from '../../../tasty';
|
4
3
|
import type { AriaRadioGroupProps } from '@react-types/radio';
|
5
4
|
import { FormFieldProps } from '../../../shared';
|
6
5
|
export interface CubeRadioGroupProps extends BaseProps, AriaRadioGroupProps, FormFieldProps {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { Styles } from '../../../
|
3
|
-
import { BaseProps, BlockStyleProps, OuterStyleProps } from '../../types';
|
2
|
+
import { BaseProps, BlockStyleProps, OuterStyleProps, Styles } from '../../../tasty';
|
4
3
|
import type { AriaSwitchProps } from '@react-types/switch';
|
5
4
|
import { FormFieldProps } from '../../../shared';
|
6
5
|
export interface CubeSwitchProps extends BaseProps, OuterStyleProps, BlockStyleProps, FormFieldProps, AriaSwitchProps {
|
@@ -1,12 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CubeTextInputBaseProps } from './TextInputBase';
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
* communicate the entry requirements.
|
7
|
-
*/
|
8
|
-
declare const _TextInput: import("react").ForwardRefExoticComponent<Omit<CubeTextInputBaseProps, "value" | "defaultValue"> & {
|
3
|
+
import { WithNullableValue } from '../../../utils/react/nullableValue';
|
4
|
+
export declare type CubeTextInputProps = WithNullableValue<CubeTextInputBaseProps>;
|
5
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<Omit<CubeTextInputBaseProps, "value" | "defaultValue"> & {
|
9
6
|
value?: any;
|
10
7
|
defaultValue?: any;
|
11
|
-
} & import("react").RefAttributes<
|
12
|
-
export { _TextInput as TextInput };
|
8
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
2
|
-
import { Styles } from '../../../
|
3
|
-
import { BaseProps, BlockStyleProps, DimensionStyleProps, PositionStyleProps, Props } from '../../types';
|
2
|
+
import { BaseProps, BlockStyleProps, DimensionStyleProps, PositionStyleProps, Props, Styles } from '../../../tasty';
|
4
3
|
import { FormFieldProps } from '../../../shared';
|
5
4
|
import type { AriaTextFieldProps } from '@react-types/textfield';
|
6
5
|
export declare const DEFAULT_INPUT_STYLES: Styles;
|
@@ -1,35 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
value?: any;
|
9
|
-
defaultValue?: any;
|
10
|
-
} & import("react").RefAttributes<unknown>> & {
|
11
|
-
Text: typeof TextInput;
|
12
|
-
Password: typeof PasswordInput;
|
13
|
-
Number: typeof NumberInput;
|
14
|
-
TextArea: typeof TextArea;
|
15
|
-
File: typeof FileInput;
|
16
|
-
} & {
|
17
|
-
Text: import("react").ForwardRefExoticComponent<Omit<import("./TextInput/TextInputBase").CubeTextInputBaseProps, "value" | "defaultValue"> & {
|
18
|
-
value?: any;
|
19
|
-
defaultValue?: any;
|
20
|
-
} & import("react").RefAttributes<unknown>>;
|
21
|
-
Password: import("react").ForwardRefExoticComponent<Omit<import("./TextInput/TextInputBase").CubeTextInputBaseProps, "value" | "defaultValue"> & {
|
22
|
-
value?: any;
|
23
|
-
defaultValue?: any;
|
24
|
-
} & import("react").RefAttributes<unknown>>;
|
25
|
-
Number: import("react").ForwardRefExoticComponent<Omit<import("./NumberInput/NumberInput").CubeNumberInputProps, "value" | "defaultValue"> & {
|
26
|
-
value?: any;
|
27
|
-
defaultValue?: any;
|
28
|
-
} & import("react").RefAttributes<unknown>>;
|
29
|
-
TextArea: import("react").ForwardRefExoticComponent<Omit<import("./TextArea/TextArea").CubeTextAreaProps, "value" | "defaultValue"> & {
|
30
|
-
value?: any;
|
31
|
-
defaultValue?: any;
|
32
|
-
} & import("react").RefAttributes<unknown>>;
|
33
|
-
File: import("react").ForwardRefExoticComponent<import("./FileInput/FileInput").CubeFileInputProps & import("react").RefAttributes<unknown>>;
|
34
|
-
};
|
35
|
-
export { Input, TextInput, NumberInput, TextArea, PasswordInput, FileInput };
|
1
|
+
export * from './Input';
|
2
|
+
export * from './TextInput/TextInput';
|
3
|
+
export * from './PasswordInput/PasswordInput';
|
4
|
+
export * from './NumberInput/NumberInput';
|
5
|
+
export * from './FileInput/FileInput';
|
6
|
+
export * from './TextArea/TextArea';
|
7
|
+
export * from './Form';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../tasty';
|
3
3
|
export interface CubeFlexProps extends BaseProps, ContainerStyleProps {
|
4
4
|
}
|
5
5
|
export declare const Flex: import("react").ForwardRefExoticComponent<CubeFlexProps & import("react").RefAttributes<unknown>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../tasty';
|
3
3
|
export interface CubeFlowProps extends BaseProps, ContainerStyleProps {
|
4
4
|
}
|
5
5
|
export declare const Flow: import("react").ForwardRefExoticComponent<CubeFlowProps & import("react").RefAttributes<unknown>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, ContainerStyleProps, ShortGridStyles } from '
|
2
|
+
import { BaseProps, ContainerStyleProps, ShortGridStyles } from '../../tasty';
|
3
3
|
export interface CubeGridProps extends BaseProps, ContainerStyleProps, ShortGridStyles {
|
4
4
|
}
|
5
5
|
export declare const Grid: import("react").ForwardRefExoticComponent<CubeGridProps & import("react").RefAttributes<unknown>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CSSProperties } from 'react';
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../tasty';
|
3
3
|
export interface CubePrefixProps extends BaseProps, ContainerStyleProps {
|
4
4
|
onWidthChange?: Function;
|
5
5
|
outerGap?: CSSProperties['gap'];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../tasty';
|
3
3
|
export interface CubeSpaceProps extends BaseProps, ContainerStyleProps {
|
4
4
|
direction?: 'vertical' | 'horizontal';
|
5
5
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CSSProperties } from 'react';
|
2
|
-
import { BaseProps, ContainerStyleProps } from '
|
2
|
+
import { BaseProps, ContainerStyleProps } from '../../tasty';
|
3
3
|
export interface CubeSuffixProps extends BaseProps, ContainerStyleProps {
|
4
4
|
onWidthChange?: Function;
|
5
5
|
outerGap?: CSSProperties['gap'];
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { CubeFlexProps } from '../../layout/Flex';
|
3
3
|
import { CubeButtonProps } from '../../actions';
|
4
|
-
import { Styles } from '../../../
|
4
|
+
import { Styles } from '../../../tasty';
|
5
5
|
export interface CubeTabData {
|
6
6
|
id: string | number;
|
7
7
|
qa?: string;
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { CubeActionProps } from '../../actions/Action';
|
3
3
|
import { CubeFlexProps } from '../../layout/Flex';
|
4
|
-
import { Styles } from '../../../
|
4
|
+
import { Styles } from '../../../tasty';
|
5
|
+
/**
|
6
|
+
* @deprecated consider using <Tabs /> instead
|
7
|
+
*/
|
5
8
|
export interface FileTabProps extends Omit<CubeActionProps, 'id'> {
|
6
9
|
isDirty?: boolean;
|
7
10
|
isDisabled?: boolean;
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
1
2
|
import { CubeButtonProps } from '../../actions';
|
2
3
|
import { CubeDialogProps } from '../Dialog/Dialog';
|
3
|
-
import { ReactNode } from 'react';
|
4
4
|
export interface CubeAlertDialogActionsProps {
|
5
5
|
confirm?: CubeButtonProps | boolean;
|
6
6
|
secondary?: CubeButtonProps;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BaseProps, BaseStyleProps, BlockStyleProps, DimensionStyleProps } from '
|
1
|
+
import { BaseProps, BaseStyleProps, BlockStyleProps, DimensionStyleProps } from '../../../tasty';
|
2
2
|
import { AriaDialogProps } from '@react-types/dialog';
|
3
3
|
import { ReactNode } from 'react';
|
4
4
|
import { CubeDialogContainerProps } from '../Dialog';
|
@@ -1,21 +1,19 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { BaseProps, BaseStyleProps, BlockStyleProps, DimensionStyleProps } from '
|
2
|
+
import { BaseProps, BaseStyleProps, BlockStyleProps, DimensionStyleProps, Styles } from '../../../tasty';
|
3
3
|
import type { AriaDialogProps } from '@react-types/dialog';
|
4
4
|
export interface CubeDialogProps extends Omit<BaseProps, 'role'>, AriaDialogProps, BaseStyleProps, BlockStyleProps, DimensionStyleProps {
|
5
|
-
/** The type of the dialog. It affects its size and position. */
|
6
|
-
type?: 'modal' | 'popover' | 'fullscreen' | 'fullscreenTakeover' | 'panel' | 'tray';
|
7
5
|
/** The size of the dialog */
|
8
|
-
size?: 'S' | 'M' | 'L';
|
6
|
+
size?: 'S' | 'M' | 'L' | 'small' | 'medium' | 'large';
|
9
7
|
/** Whether the dialog is dismissable */
|
10
8
|
isDismissable?: boolean;
|
11
9
|
/** Trigger when the dialog is dismissed */
|
12
10
|
onDismiss?: (arg?: any) => void;
|
13
11
|
/** That you can replace the close icon with */
|
14
12
|
closeIcon?: ReactNode;
|
13
|
+
closeButtonStyles?: Styles;
|
15
14
|
}
|
16
15
|
/**
|
17
16
|
* Dialogs are windows containing contextual information, tasks, or workflows that appear over the user interface.
|
18
17
|
* Depending on the kind of Dialog, further interactions may be blocked until the Dialog is acknowledged.
|
19
18
|
*/
|
20
|
-
declare
|
21
|
-
export { _Dialog as Dialog };
|
19
|
+
export declare const Dialog: import("react").ForwardRefExoticComponent<CubeDialogProps & import("react").RefAttributes<import("@react-types/shared").DOMRefValue<HTMLDivElement>>>;
|
@@ -23,5 +23,4 @@ export interface CubeDialogFormRef {
|
|
23
23
|
/**
|
24
24
|
* DialogForms are a specific type of Dialog. They contain forms to fill.
|
25
25
|
*/
|
26
|
-
declare
|
27
|
-
export { _DialogForm as DialogForm };
|
26
|
+
export declare const DialogForm: (props: CubeDialogFormProps) => JSX.Element;
|