@cube-dev/ui-kit 0.8.8 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/README.md +26 -0
- package/dist/cjs/components/Base.js +58 -0
- package/dist/cjs/components/Block.js +25 -0
- package/dist/cjs/components/GlobalStyles.js +322 -0
- package/dist/cjs/components/GridProvider.js +85 -0
- package/dist/cjs/components/HiddenInput.js +39 -0
- package/dist/cjs/components/OpenTrasition.js +38 -0
- package/dist/cjs/components/Root.js +50 -0
- package/dist/cjs/components/actions/Action.js +136 -0
- package/dist/cjs/components/actions/Button/Button.js +313 -0
- package/dist/cjs/components/actions/Button/Submit.js +29 -0
- package/dist/cjs/components/actions/Button/index.js +23 -0
- package/dist/cjs/components/actions/ButtonGroup/ButtonGroup.js +28 -0
- package/dist/cjs/components/actions/index.js +28 -0
- package/dist/cjs/components/content/ActiveZone/ActiveZone.js +44 -0
- package/dist/cjs/components/content/Avatar/Avatar.js +39 -0
- package/dist/cjs/components/content/Badge/Badge.js +58 -0
- package/dist/cjs/components/content/Card/Card.js +30 -0
- package/dist/cjs/components/content/Content.js +42 -0
- package/dist/cjs/components/content/Divider.js +53 -0
- package/dist/cjs/components/content/Footer.js +36 -0
- package/dist/cjs/components/content/Header.js +35 -0
- package/dist/cjs/components/content/Paragraph.js +27 -0
- package/dist/cjs/components/content/Placeholder/Placeholder.js +51 -0
- package/dist/cjs/components/content/PrismCode/PrismCode.js +44 -0
- package/dist/cjs/components/content/Result/Result.js +105 -0
- package/dist/cjs/components/content/Skeleton/Skeleton.js +79 -0
- package/dist/cjs/components/content/Tag/Tag.js +94 -0
- package/dist/cjs/components/content/Text.js +81 -0
- package/dist/cjs/components/content/Title.js +69 -0
- package/dist/cjs/components/forms/Checkbox/Checkbox.js +177 -0
- package/dist/cjs/components/forms/Checkbox/CheckboxGroup.js +110 -0
- package/dist/cjs/components/forms/Checkbox/context.js +14 -0
- package/dist/cjs/components/forms/FieldWrapper.js +82 -0
- package/dist/cjs/components/forms/FileInput/FileInput.js +152 -0
- package/dist/cjs/components/forms/Form/Field.js +234 -0
- package/dist/cjs/components/forms/Form/Form.js +125 -0
- package/dist/cjs/components/forms/Form/index.js +20 -0
- package/dist/cjs/components/forms/Form/useForm.js +280 -0
- package/dist/cjs/components/forms/Form/validation.js +149 -0
- package/dist/cjs/components/forms/Label.js +90 -0
- package/dist/cjs/components/forms/NumberInput/NumberInput.js +50 -0
- package/dist/cjs/components/forms/NumberInput/StepButton.js +35 -0
- package/dist/cjs/components/forms/PasswordInput/PasswordInput.js +43 -0
- package/dist/cjs/components/forms/RadioGroup/Radio.js +181 -0
- package/dist/cjs/components/forms/RadioGroup/RadioGroup.js +113 -0
- package/dist/cjs/components/forms/RadioGroup/context.js +18 -0
- package/dist/cjs/components/forms/SearchInput/SearchInput.js +45 -0
- package/dist/cjs/components/forms/Switch/Switch.js +156 -0
- package/dist/cjs/components/forms/TextArea/TextArea.js +63 -0
- package/dist/cjs/components/forms/TextInput/TextInput.js +33 -0
- package/dist/cjs/components/forms/TextInput/TextInputBase.js +167 -0
- package/dist/cjs/components/forms/index.js +30 -0
- package/dist/cjs/components/layout/Flex.js +26 -0
- package/dist/cjs/components/layout/Flow.js +27 -0
- package/dist/cjs/components/layout/Grid.js +33 -0
- package/dist/cjs/components/layout/Prefix.js +46 -0
- package/dist/cjs/components/layout/Space.js +35 -0
- package/dist/cjs/components/layout/Suffix.js +45 -0
- package/dist/cjs/components/navigation/LegacyTabs/LegacyTabs.js +255 -0
- package/dist/cjs/components/navigation/Link/Link.js +18 -0
- package/dist/cjs/components/organisms/Alert/Alert.js +41 -0
- package/dist/cjs/components/organisms/CopySnippet/CopySnippet.js +112 -0
- package/dist/cjs/components/organisms/DirectoryTree/DirectoryTree.js +166 -0
- package/dist/cjs/components/organisms/FileTabs/FileTabs.js +300 -0
- package/dist/cjs/components/organisms/Modal/Modal.js +258 -0
- package/dist/cjs/components/organisms/SearchResults/SearchResults.js +108 -0
- package/dist/cjs/components/organisms/StatsCard/StatsCard.js +20 -0
- package/dist/cjs/components/organisms/TopBar/TopBar.js +33 -0
- package/dist/cjs/components/other/Base64Upload/Base64Upload.js +110 -0
- package/dist/cjs/components/other/CloudLogo/CloudLogo.js +43 -0
- package/dist/cjs/components/overlays/AlertDialog/AlertDialog.js +67 -0
- package/dist/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +115 -0
- package/dist/cjs/components/overlays/AlertDialog/AlertDialogZone.js +58 -0
- package/dist/cjs/components/overlays/AlertDialog/index.js +24 -0
- package/dist/cjs/components/overlays/AlertDialog/types.js +11 -0
- package/dist/cjs/components/overlays/Dialog/Dialog.js +181 -0
- package/dist/cjs/components/overlays/Dialog/DialogContainer.js +42 -0
- package/dist/cjs/components/overlays/Dialog/DialogForm.js +56 -0
- package/dist/cjs/components/overlays/Dialog/DialogTrigger.js +116 -0
- package/dist/cjs/components/overlays/Dialog/context.js +14 -0
- package/dist/cjs/components/overlays/Dialog/index.js +25 -0
- package/dist/cjs/components/overlays/Modal/Modal.js +86 -0
- package/dist/cjs/components/overlays/Modal/OpenTransition.js +26 -0
- package/dist/cjs/components/overlays/Modal/Overlay.js +40 -0
- package/dist/cjs/components/overlays/Modal/Popover.js +59 -0
- package/dist/cjs/components/overlays/Modal/Tray.js +95 -0
- package/dist/cjs/components/overlays/Modal/Underlay.js +51 -0
- package/dist/cjs/components/overlays/Modal/index.js +22 -0
- package/dist/cjs/components/overlays/Notification/Notification.js +44 -0
- package/dist/cjs/components/overlays/OverlayWrapper.js +35 -0
- package/dist/cjs/components/overlays/Tooltip/Tooltip.js +100 -0
- package/dist/cjs/components/overlays/Tooltip/TooltipProvider.js +26 -0
- package/dist/cjs/components/overlays/Tooltip/TooltipTrigger.js +72 -0
- package/dist/cjs/components/overlays/Tooltip/context.js +17 -0
- package/dist/cjs/components/pickers/ComboBox/ComboBox.js +171 -0
- package/dist/cjs/components/pickers/Select/Select.js +258 -0
- package/dist/cjs/components/portal/Portal.js +48 -0
- package/dist/cjs/components/portal/PortalProvider.js +28 -0
- package/dist/cjs/components/portal/index.js +25 -0
- package/dist/cjs/components/portal/storybook/templates/basic.js +17 -0
- package/dist/cjs/components/portal/storybook/templates/index.js +22 -0
- package/dist/cjs/components/portal/types.js +11 -0
- package/dist/cjs/components/portal/usePortal.js +50 -0
- package/dist/cjs/components/status/LoadingAnimation/LoadingAnimation.js +139 -0
- package/dist/cjs/components/status/Spin/Spin.js +38 -0
- package/dist/cjs/components/types.js +11 -0
- package/dist/cjs/data/themes.js +33 -0
- package/dist/cjs/index.js +182 -30
- package/dist/cjs/provider.js +51 -0
- package/dist/cjs/providers/BreakpointsProvider.js +20 -0
- package/dist/cjs/providers/StylesProvider.js +42 -0
- package/dist/cjs/services/notification.js +67 -0
- package/dist/cjs/shared/form.js +11 -0
- package/dist/cjs/shared/index.js +22 -0
- package/dist/cjs/stories/FormFieldArgs.js +288 -0
- package/dist/cjs/stories/components/ConfirmDeletionDialogForm.js +36 -0
- package/dist/cjs/stories/components/DialogFormApp.js +27 -0
- package/dist/cjs/stories/components/StyledButton.js +37 -0
- package/dist/cjs/stories/lists/baseProps.js +42 -0
- package/dist/cjs/styled/index.js +22 -0
- package/dist/cjs/styled/styled.js +107 -0
- package/dist/cjs/styles/align.js +24 -0
- package/dist/cjs/styles/border.js +52 -0
- package/dist/cjs/styles/boxShadow.combinator.js +26 -0
- package/dist/cjs/styles/color.js +43 -0
- package/dist/cjs/styles/dimension.js +89 -0
- package/dist/cjs/styles/display.js +17 -0
- package/dist/cjs/styles/fill.js +42 -0
- package/dist/cjs/styles/flow.js +24 -0
- package/dist/cjs/styles/font.js +27 -0
- package/dist/cjs/styles/fontStyle.js +23 -0
- package/dist/cjs/styles/gap.js +67 -0
- package/dist/cjs/styles/groupRadius.js +64 -0
- package/dist/cjs/styles/height.js +19 -0
- package/dist/cjs/styles/index.js +105 -0
- package/dist/cjs/styles/justify.js +24 -0
- package/dist/cjs/styles/list.js +87 -0
- package/dist/cjs/styles/margin.js +50 -0
- package/dist/cjs/styles/marginBlock.js +36 -0
- package/dist/cjs/styles/marginInline.js +40 -0
- package/dist/cjs/styles/outline.js +28 -0
- package/dist/cjs/styles/padding.js +51 -0
- package/dist/cjs/styles/paddingBlock.js +40 -0
- package/dist/cjs/styles/paddingInline.js +40 -0
- package/dist/cjs/styles/predefined.js +122 -0
- package/dist/cjs/styles/preset.js +55 -0
- package/dist/cjs/styles/radius.js +76 -0
- package/dist/cjs/styles/reset.js +104 -0
- package/dist/cjs/styles/shadow.js +27 -0
- package/dist/cjs/styles/styledScrollbar.js +55 -0
- package/dist/cjs/styles/transition.js +88 -0
- package/dist/cjs/styles/types.js +11 -0
- package/dist/cjs/styles/width.js +19 -0
- package/dist/cjs/test/setup.js +14 -0
- package/dist/cjs/tokens.js +233 -0
- package/dist/cjs/utils/ResizeSensor.js +324 -0
- package/dist/cjs/utils/colors.js +19 -0
- package/dist/cjs/utils/dotize.js +194 -0
- package/dist/cjs/utils/escape-string.js +21 -0
- package/dist/cjs/utils/filterBaseProps.js +69 -0
- package/dist/cjs/utils/index.js +46 -0
- package/dist/cjs/utils/interactions.js +29 -0
- package/dist/cjs/utils/mergeStyles.js +36 -0
- package/dist/cjs/utils/modules.js +16 -0
- package/dist/cjs/utils/promise.js +18 -0
- package/dist/cjs/utils/react/Slots.js +48 -0
- package/dist/cjs/utils/react/chain.js +25 -0
- package/dist/cjs/utils/react/index.js +30 -0
- package/dist/cjs/utils/react/isTextOnly.js +17 -0
- package/dist/cjs/utils/react/mapProps.js +30 -0
- package/dist/cjs/utils/react/mergeProps.js +67 -0
- package/dist/cjs/utils/react/modAttrs.js +26 -0
- package/dist/cjs/utils/react/nullableValue.js +46 -0
- package/dist/cjs/utils/react/useCombinedRefs.js +30 -0
- package/dist/cjs/utils/react/useId.js +87 -0
- package/dist/cjs/utils/react/useLayoutEffect.js +36 -0
- package/dist/cjs/utils/react/wrapNodeIfPlain.js +22 -0
- package/dist/cjs/utils/renderStyles.js +132 -0
- package/dist/cjs/utils/responsive.js +72 -0
- package/dist/cjs/utils/string.js +16 -0
- package/dist/cjs/utils/styles.js +870 -0
- package/dist/cjs/utils/transitions.js +67 -0
- package/dist/cjs/utils/tree.js +28 -0
- package/dist/cjs/utils/warnings.js +55 -0
- package/dist/es/components/Base.js +52 -0
- package/dist/es/components/Block.js +22 -0
- package/dist/es/components/GlobalStyles.js +319 -0
- package/dist/es/components/GridProvider.js +64 -0
- package/dist/es/components/HiddenInput.js +33 -0
- package/dist/es/components/OpenTrasition.js +31 -0
- package/dist/es/components/Root.js +46 -0
- package/dist/es/components/actions/Action.js +130 -0
- package/dist/es/components/actions/Button/Button.js +309 -0
- package/dist/es/components/actions/Button/Submit.js +26 -0
- package/dist/es/components/actions/Button/index.js +11 -0
- package/dist/es/components/actions/ButtonGroup/ButtonGroup.js +25 -0
- package/dist/es/components/actions/index.js +15 -0
- package/dist/es/components/content/ActiveZone/ActiveZone.js +41 -0
- package/dist/es/components/content/Avatar/Avatar.js +36 -0
- package/dist/es/components/content/Badge/Badge.js +52 -0
- package/dist/es/components/content/Card/Card.js +27 -0
- package/dist/es/components/content/Content.js +39 -0
- package/dist/es/components/content/Divider.js +50 -0
- package/dist/es/components/content/Footer.js +33 -0
- package/dist/es/components/content/Header.js +32 -0
- package/dist/es/components/content/Paragraph.js +24 -0
- package/dist/es/components/content/Placeholder/Placeholder.js +48 -0
- package/dist/es/components/content/PrismCode/PrismCode.js +38 -0
- package/dist/es/components/content/Result/Result.js +102 -0
- package/dist/es/components/content/Skeleton/Skeleton.js +75 -0
- package/dist/es/components/content/Tag/Tag.js +88 -0
- package/dist/es/components/content/Text.js +78 -0
- package/dist/es/components/content/Title.js +66 -0
- package/dist/es/components/forms/Checkbox/Checkbox.js +174 -0
- package/dist/es/components/forms/Checkbox/CheckboxGroup.js +107 -0
- package/dist/es/components/forms/Checkbox/context.js +11 -0
- package/dist/es/components/forms/FieldWrapper.js +79 -0
- package/dist/es/components/forms/FileInput/FileInput.js +149 -0
- package/dist/es/components/forms/Form/Field.js +230 -0
- package/dist/es/components/forms/Form/Form.js +121 -0
- package/dist/es/components/forms/Form/index.js +14 -0
- package/dist/es/components/forms/Form/useForm.js +275 -0
- package/dist/es/components/forms/Form/validation.js +141 -0
- package/dist/es/components/forms/Label.js +87 -0
- package/dist/es/components/forms/NumberInput/NumberInput.js +47 -0
- package/dist/es/components/forms/NumberInput/StepButton.js +31 -0
- package/dist/es/components/forms/PasswordInput/PasswordInput.js +40 -0
- package/dist/es/components/forms/RadioGroup/Radio.js +178 -0
- package/dist/es/components/forms/RadioGroup/RadioGroup.js +110 -0
- package/dist/es/components/forms/RadioGroup/context.js +14 -0
- package/dist/es/components/forms/SearchInput/SearchInput.js +42 -0
- package/dist/es/components/forms/Switch/Switch.js +153 -0
- package/dist/es/components/forms/TextArea/TextArea.js +60 -0
- package/dist/es/components/forms/TextInput/TextInput.js +30 -0
- package/dist/es/components/forms/TextInput/TextInputBase.js +164 -0
- package/dist/es/components/forms/index.js +22 -0
- package/dist/es/components/layout/Flex.js +23 -0
- package/dist/es/components/layout/Flow.js +24 -0
- package/dist/es/components/layout/Grid.js +30 -0
- package/dist/es/components/layout/Prefix.js +43 -0
- package/dist/es/components/layout/Space.js +32 -0
- package/dist/es/components/layout/Suffix.js +42 -0
- package/dist/es/components/navigation/LegacyTabs/LegacyTabs.js +251 -0
- package/dist/es/components/navigation/Link/Link.js +15 -0
- package/dist/es/components/organisms/Alert/Alert.js +35 -0
- package/dist/es/components/organisms/CopySnippet/CopySnippet.js +105 -0
- package/dist/es/components/organisms/DirectoryTree/DirectoryTree.js +162 -0
- package/dist/es/components/organisms/FileTabs/FileTabs.js +296 -0
- package/dist/es/components/organisms/Modal/Modal.js +251 -0
- package/dist/es/components/organisms/SearchResults/SearchResults.js +104 -0
- package/dist/es/components/organisms/StatsCard/StatsCard.js +16 -0
- package/dist/es/components/organisms/TopBar/TopBar.js +29 -0
- package/dist/es/components/other/Base64Upload/Base64Upload.js +104 -0
- package/dist/es/components/other/CloudLogo/CloudLogo.js +37 -0
- package/dist/es/components/overlays/AlertDialog/AlertDialog.js +64 -0
- package/dist/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +107 -0
- package/dist/es/components/overlays/AlertDialog/AlertDialogZone.js +54 -0
- package/dist/es/components/overlays/AlertDialog/index.js +12 -0
- package/dist/es/components/overlays/AlertDialog/types.js +10 -0
- package/dist/es/components/overlays/Dialog/Dialog.js +178 -0
- package/dist/es/components/overlays/Dialog/DialogContainer.js +38 -0
- package/dist/es/components/overlays/Dialog/DialogForm.js +53 -0
- package/dist/es/components/overlays/Dialog/DialogTrigger.js +113 -0
- package/dist/es/components/overlays/Dialog/context.js +11 -0
- package/dist/es/components/overlays/Dialog/index.js +13 -0
- package/dist/es/components/overlays/Modal/Modal.js +83 -0
- package/dist/es/components/overlays/Modal/OpenTransition.js +19 -0
- package/dist/es/components/overlays/Modal/Overlay.js +37 -0
- package/dist/es/components/overlays/Modal/Popover.js +56 -0
- package/dist/es/components/overlays/Modal/Tray.js +92 -0
- package/dist/es/components/overlays/Modal/Underlay.js +48 -0
- package/dist/{mjs/components/overlays/Modal/index.d.ts → es/components/overlays/Modal/index.js} +9 -0
- package/dist/es/components/overlays/Notification/Notification.js +37 -0
- package/dist/es/components/overlays/OverlayWrapper.js +31 -0
- package/dist/es/components/overlays/Tooltip/Tooltip.js +97 -0
- package/dist/es/components/overlays/Tooltip/TooltipProvider.js +23 -0
- package/dist/es/components/overlays/Tooltip/TooltipTrigger.js +69 -0
- package/dist/es/components/overlays/Tooltip/context.js +11 -0
- package/dist/es/components/pickers/ComboBox/ComboBox.js +168 -0
- package/dist/es/components/pickers/Select/Select.js +254 -0
- package/dist/es/components/portal/Portal.js +41 -0
- package/dist/es/components/portal/PortalProvider.js +24 -0
- package/dist/es/components/portal/index.js +11 -0
- package/dist/es/components/portal/storybook/templates/basic.js +13 -0
- package/dist/es/components/portal/storybook/templates/index.js +10 -0
- package/dist/es/components/portal/types.js +10 -0
- package/dist/es/components/portal/usePortal.js +43 -0
- package/dist/es/components/status/LoadingAnimation/LoadingAnimation.js +132 -0
- package/dist/es/components/status/Spin/Spin.js +35 -0
- package/dist/es/components/types.js +10 -0
- package/dist/es/data/themes.js +31 -0
- package/dist/es/index.js +96 -0
- package/dist/es/provider.js +46 -0
- package/dist/es/providers/BreakpointsProvider.js +16 -0
- package/dist/es/providers/StylesProvider.js +37 -0
- package/dist/es/services/notification.js +61 -0
- package/dist/es/shared/form.js +10 -0
- package/dist/es/shared/index.js +10 -0
- package/dist/es/stories/FormFieldArgs.js +285 -0
- package/dist/es/stories/components/ConfirmDeletionDialogForm.js +33 -0
- package/dist/es/stories/components/DialogFormApp.js +23 -0
- package/dist/es/stories/components/StyledButton.js +33 -0
- package/dist/es/stories/lists/baseProps.js +39 -0
- package/dist/es/styled/index.js +10 -0
- package/dist/es/styled/styled.js +85 -0
- package/dist/es/styles/align.js +20 -0
- package/dist/es/styles/border.js +48 -0
- package/dist/es/styles/boxShadow.combinator.js +22 -0
- package/dist/es/styles/color.js +39 -0
- package/dist/es/styles/dimension.js +85 -0
- package/dist/es/styles/display.js +13 -0
- package/dist/es/styles/fill.js +38 -0
- package/dist/es/styles/flow.js +20 -0
- package/dist/es/styles/font.js +23 -0
- package/dist/es/styles/fontStyle.js +19 -0
- package/dist/es/styles/gap.js +63 -0
- package/dist/es/styles/groupRadius.js +60 -0
- package/dist/es/styles/height.js +15 -0
- package/dist/es/styles/index.js +99 -0
- package/dist/es/styles/justify.js +20 -0
- package/dist/es/styles/list.js +84 -0
- package/dist/es/styles/margin.js +46 -0
- package/dist/es/styles/marginBlock.js +32 -0
- package/dist/es/styles/marginInline.js +36 -0
- package/dist/es/styles/outline.js +24 -0
- package/dist/es/styles/padding.js +47 -0
- package/dist/es/styles/paddingBlock.js +36 -0
- package/dist/es/styles/paddingInline.js +36 -0
- package/dist/es/styles/predefined.js +120 -0
- package/dist/es/styles/preset.js +51 -0
- package/dist/es/styles/radius.js +72 -0
- package/dist/es/styles/reset.js +100 -0
- package/dist/es/styles/shadow.js +23 -0
- package/dist/es/styles/styledScrollbar.js +51 -0
- package/dist/es/styles/transition.js +84 -0
- package/dist/es/styles/types.js +10 -0
- package/dist/es/styles/width.js +15 -0
- package/dist/es/test/setup.js +12 -0
- package/dist/es/tokens.js +230 -0
- package/dist/es/utils/ResizeSensor.js +320 -0
- package/dist/es/utils/colors.js +15 -0
- package/dist/es/utils/dotize.js +191 -0
- package/dist/es/utils/escape-string.js +18 -0
- package/dist/es/utils/filterBaseProps.js +65 -0
- package/dist/es/utils/index.js +42 -0
- package/dist/es/utils/interactions.js +25 -0
- package/dist/es/utils/mergeStyles.js +32 -0
- package/dist/es/utils/modules.js +12 -0
- package/dist/es/utils/promise.js +14 -0
- package/dist/es/utils/react/Slots.js +42 -0
- package/dist/es/utils/react/chain.js +21 -0
- package/dist/{mjs/utils/react/index.d.ts → es/utils/react/index.js} +9 -0
- package/dist/es/utils/react/isTextOnly.js +13 -0
- package/dist/es/utils/react/mapProps.js +25 -0
- package/dist/es/utils/react/mergeProps.js +60 -0
- package/dist/es/utils/react/modAttrs.js +22 -0
- package/dist/es/utils/react/nullableValue.js +37 -0
- package/dist/es/utils/react/useCombinedRefs.js +26 -0
- package/dist/es/utils/react/useId.js +81 -0
- package/dist/es/utils/react/useLayoutEffect.js +14 -0
- package/dist/es/utils/react/wrapNodeIfPlain.js +18 -0
- package/dist/es/utils/renderStyles.js +127 -0
- package/dist/es/utils/responsive.js +66 -0
- package/dist/es/utils/string.js +12 -0
- package/dist/es/utils/styles.js +844 -0
- package/dist/es/utils/transitions.js +63 -0
- package/dist/es/utils/tree.js +24 -0
- package/dist/es/utils/warnings.js +48 -0
- package/dist/package.json +80 -0
- package/dist/{cjs → types}/components/Base.d.ts +0 -0
- package/dist/{cjs → types}/components/Block.d.ts +0 -0
- package/dist/{cjs → types}/components/GlobalStyles.d.ts +0 -0
- package/dist/{cjs → types}/components/GridProvider.d.ts +0 -0
- package/dist/{cjs → types}/components/HiddenInput.d.ts +0 -0
- package/dist/{cjs → types}/components/OpenTrasition.d.ts +0 -0
- package/dist/{cjs → types}/components/Root.d.ts +0 -0
- package/dist/{cjs → types}/components/actions/Action.d.ts +0 -0
- package/dist/{cjs → types}/components/actions/Button/Button.d.ts +1 -1
- package/dist/{cjs → types}/components/actions/Button/Submit.d.ts +0 -0
- package/dist/types/components/actions/Button/index.d.ts +2 -0
- package/dist/{cjs → types}/components/actions/ButtonGroup/ButtonGroup.d.ts +0 -0
- package/dist/types/components/actions/index.d.ts +10 -0
- package/dist/{cjs → types}/components/content/ActiveZone/ActiveZone.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Avatar/Avatar.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Badge/Badge.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Card/Card.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Content.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Divider.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Footer.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Header.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Paragraph.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Placeholder/Placeholder.d.ts +0 -0
- package/dist/{cjs → types}/components/content/PrismCode/PrismCode.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Result/Result.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Skeleton/Skeleton.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Tag/Tag.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Text.d.ts +0 -0
- package/dist/{cjs → types}/components/content/Title.d.ts +0 -0
- package/dist/{mjs → types}/components/forms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/{mjs → types}/components/forms/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/{cjs → types}/components/forms/Checkbox/context.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/FieldWrapper.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/FileInput/FileInput.d.ts +1 -1
- package/dist/{cjs → types}/components/forms/Form/Field.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/Form/Form.d.ts +0 -0
- package/dist/types/components/forms/Form/index.d.ts +14 -0
- package/dist/{cjs → types}/components/forms/Form/useForm.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/Form/validation.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/Label.d.ts +0 -0
- package/dist/{mjs → types}/components/forms/NumberInput/NumberInput.d.ts +1 -1
- package/dist/{cjs → types}/components/forms/NumberInput/StepButton.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/PasswordInput/PasswordInput.d.ts +0 -0
- package/dist/{mjs → types}/components/forms/RadioGroup/Radio.d.ts +1 -1
- package/dist/{mjs → types}/components/forms/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/{cjs → types}/components/forms/RadioGroup/context.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/SearchInput/SearchInput.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/Switch/Switch.d.ts +1 -1
- package/dist/{cjs → types}/components/forms/TextArea/TextArea.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/TextInput/TextInput.d.ts +0 -0
- package/dist/{cjs → types}/components/forms/TextInput/TextInputBase.d.ts +1 -1
- package/dist/types/components/forms/index.d.ts +35 -0
- package/dist/{cjs → types}/components/layout/Flex.d.ts +0 -0
- package/dist/{cjs → types}/components/layout/Flow.d.ts +0 -0
- package/dist/{cjs → types}/components/layout/Grid.d.ts +0 -0
- package/dist/{cjs → types}/components/layout/Prefix.d.ts +0 -0
- package/dist/{cjs → types}/components/layout/Space.d.ts +0 -0
- package/dist/{cjs → types}/components/layout/Suffix.d.ts +0 -0
- package/dist/{cjs → types}/components/navigation/LegacyTabs/LegacyTabs.d.ts +1 -1
- package/dist/{cjs → types}/components/navigation/Link/Link.d.ts +1 -1
- package/dist/{cjs → types}/components/organisms/Alert/Alert.d.ts +0 -0
- package/dist/{cjs → types}/components/organisms/CopySnippet/CopySnippet.d.ts +0 -0
- package/dist/{cjs → types}/components/organisms/DirectoryTree/DirectoryTree.d.ts +0 -0
- package/dist/{cjs → types}/components/organisms/FileTabs/FileTabs.d.ts +0 -0
- package/dist/{mjs → types}/components/organisms/Modal/Modal.d.ts +2 -0
- package/dist/{cjs → types}/components/organisms/SearchResults/SearchResults.d.ts +0 -0
- package/dist/{cjs → types}/components/organisms/StatsCard/StatsCard.d.ts +0 -0
- package/dist/{cjs → types}/components/organisms/TopBar/TopBar.d.ts +0 -0
- package/dist/{cjs → types}/components/other/Base64Upload/Base64Upload.d.ts +0 -0
- package/dist/{cjs → types}/components/other/CloudLogo/CloudLogo.d.ts +1 -1
- package/dist/{mjs → types}/components/overlays/AlertDialog/AlertDialog.d.ts +5 -4
- package/dist/types/components/overlays/AlertDialog/AlertDialogApiProvider.d.ts +48 -0
- package/dist/types/components/overlays/AlertDialog/AlertDialogZone.d.ts +9 -0
- package/dist/types/components/overlays/AlertDialog/index.d.ts +3 -0
- package/dist/types/components/overlays/AlertDialog/types.d.ts +39 -0
- package/dist/{mjs → types}/components/overlays/Dialog/Dialog.d.ts +1 -1
- package/dist/{mjs → types}/components/overlays/Dialog/DialogContainer.d.ts +9 -4
- package/dist/{mjs → types}/components/overlays/Dialog/DialogForm.d.ts +1 -1
- package/dist/{cjs → types}/components/overlays/Dialog/DialogTrigger.d.ts +0 -0
- package/dist/{cjs → types}/components/overlays/Dialog/context.d.ts +0 -0
- package/dist/types/components/overlays/Dialog/index.d.ts +4 -0
- package/dist/{cjs → types}/components/overlays/Modal/Modal.d.ts +3 -2
- package/dist/{cjs → types}/components/overlays/Modal/OpenTransition.d.ts +0 -0
- package/dist/{cjs → types}/components/overlays/Modal/Overlay.d.ts +3 -2
- package/dist/{mjs → types}/components/overlays/Modal/Popover.d.ts +1 -0
- package/dist/{mjs → types}/components/overlays/Modal/Tray.d.ts +2 -1
- package/dist/{cjs → types}/components/overlays/Modal/Underlay.d.ts +0 -0
- package/dist/{cjs → types}/components/overlays/Modal/index.d.ts +0 -0
- package/dist/{cjs → types}/components/overlays/Notification/Notification.d.ts +0 -0
- package/dist/{mjs → types}/components/overlays/OverlayWrapper.d.ts +2 -2
- package/dist/{cjs → types}/components/overlays/Tooltip/Tooltip.d.ts +1 -1
- package/dist/{cjs → types}/components/overlays/Tooltip/TooltipProvider.d.ts +0 -0
- package/dist/{cjs → types}/components/overlays/Tooltip/TooltipTrigger.d.ts +1 -1
- package/dist/{cjs → types}/components/overlays/Tooltip/context.d.ts +0 -0
- package/dist/{mjs → types}/components/pickers/ComboBox/ComboBox.d.ts +2 -2
- package/dist/{mjs → types}/components/pickers/Select/Select.d.ts +1 -1
- package/dist/types/components/portal/Portal.d.ts +26 -0
- package/dist/types/components/portal/PortalProvider.d.ts +13 -0
- package/dist/types/components/portal/index.d.ts +3 -0
- package/dist/types/components/portal/storybook/templates/basic.d.ts +3 -0
- package/dist/types/components/portal/storybook/templates/index.d.ts +1 -0
- package/dist/types/components/portal/types.d.ts +21 -0
- package/dist/types/components/portal/usePortal.d.ts +10 -0
- package/dist/{cjs → types}/components/status/LoadingAnimation/LoadingAnimation.d.ts +0 -0
- package/dist/{cjs → types}/components/status/Spin/Spin.d.ts +0 -0
- package/dist/{mjs → types}/components/types.d.ts +3 -4
- package/dist/{cjs → types}/data/themes.d.ts +0 -0
- package/dist/{mjs → types}/index.d.ts +7 -56
- package/dist/{mjs → types}/provider.d.ts +1 -2
- package/dist/{cjs → types}/providers/BreakpointsProvider.d.ts +0 -0
- package/dist/{cjs → types}/providers/StylesProvider.d.ts +0 -0
- package/dist/{cjs → types}/services/notification.d.ts +0 -0
- package/dist/{cjs → types}/shared/form.d.ts +0 -0
- package/dist/{cjs → types}/shared/index.d.ts +0 -0
- package/dist/{cjs → types}/stories/FormFieldArgs.d.ts +0 -0
- package/dist/{cjs → types}/stories/components/ConfirmDeletionDialogForm.d.ts +0 -0
- package/dist/{cjs → types}/stories/components/DialogFormApp.d.ts +0 -0
- package/dist/types/stories/components/StyledButton.d.ts +119 -0
- package/dist/{cjs → types}/stories/lists/baseProps.d.ts +0 -0
- package/dist/types/styled/index.d.ts +1 -0
- package/dist/types/styled/styled.d.ts +30 -0
- package/dist/{cjs → types}/styles/align.d.ts +0 -0
- package/dist/{cjs → types}/styles/border.d.ts +0 -0
- package/dist/{cjs → types}/styles/boxShadow.combinator.d.ts +0 -0
- package/dist/{cjs → types}/styles/color.d.ts +0 -0
- package/dist/{cjs → types}/styles/dimension.d.ts +0 -0
- package/dist/{cjs → types}/styles/display.d.ts +0 -0
- package/dist/{cjs → types}/styles/fill.d.ts +0 -0
- package/dist/{cjs → types}/styles/flow.d.ts +0 -0
- package/dist/{cjs → types}/styles/font.d.ts +0 -0
- package/dist/{cjs → types}/styles/fontStyle.d.ts +0 -0
- package/dist/{cjs → types}/styles/gap.d.ts +0 -0
- package/dist/{cjs → types}/styles/groupRadius.d.ts +0 -0
- package/dist/{cjs → types}/styles/height.d.ts +0 -0
- package/dist/{cjs → types}/styles/index.d.ts +0 -0
- package/dist/{cjs → types}/styles/justify.d.ts +0 -0
- package/dist/{cjs → types}/styles/list.d.ts +0 -0
- package/dist/{cjs → types}/styles/margin.d.ts +0 -0
- package/dist/{cjs → types}/styles/marginBlock.d.ts +0 -0
- package/dist/{cjs → types}/styles/marginInline.d.ts +0 -0
- package/dist/{cjs → types}/styles/outline.d.ts +0 -0
- package/dist/{cjs → types}/styles/padding.d.ts +0 -0
- package/dist/{cjs → types}/styles/paddingBlock.d.ts +0 -0
- package/dist/{cjs → types}/styles/paddingInline.d.ts +0 -0
- package/dist/{cjs → types}/styles/predefined.d.ts +0 -0
- package/dist/{cjs → types}/styles/preset.d.ts +0 -0
- package/dist/{cjs → types}/styles/radius.d.ts +0 -0
- package/dist/{cjs → types}/styles/reset.d.ts +0 -0
- package/dist/{cjs → types}/styles/shadow.d.ts +0 -0
- package/dist/{cjs → types}/styles/styledScrollbar.d.ts +0 -0
- package/dist/{cjs → types}/styles/transition.d.ts +0 -0
- package/dist/{cjs → types}/styles/types.d.ts +0 -0
- package/dist/{cjs → types}/styles/width.d.ts +0 -0
- package/dist/types/test/setup.d.ts +3 -0
- package/dist/{cjs → types}/tokens.d.ts +0 -0
- package/dist/{cjs → types}/utils/ResizeSensor.d.ts +0 -0
- package/dist/{cjs → types}/utils/colors.d.ts +0 -0
- package/dist/{cjs → types}/utils/dotize.d.ts +0 -0
- package/dist/{cjs → types}/utils/escape-string.d.ts +0 -0
- package/dist/{cjs → types}/utils/filterBaseProps.d.ts +0 -0
- package/dist/{cjs → types}/utils/index.d.ts +0 -0
- package/dist/{cjs → types}/utils/interactions.d.ts +0 -0
- package/dist/{cjs → types}/utils/mergeStyles.d.ts +0 -0
- package/dist/{cjs → types}/utils/modules.d.ts +0 -0
- package/dist/{cjs → types}/utils/promise.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/Slots.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/chain.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/index.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/isTextOnly.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/mapProps.d.ts +1 -1
- package/dist/{cjs → types}/utils/react/mergeProps.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/modAttrs.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/nullableValue.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/useCombinedRefs.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/useId.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/useLayoutEffect.d.ts +0 -0
- package/dist/{cjs → types}/utils/react/wrapNodeIfPlain.d.ts +0 -0
- package/dist/{cjs → types}/utils/renderStyles.d.ts +0 -0
- package/dist/{cjs → types}/utils/responsive.d.ts +0 -0
- package/dist/{cjs → types}/utils/string.d.ts +0 -0
- package/dist/{cjs → types}/utils/styles.d.ts +0 -0
- package/dist/{cjs → types}/utils/transitions.d.ts +0 -0
- package/dist/{cjs → types}/utils/tree.d.ts +0 -0
- package/dist/types/utils/warnings.d.ts +9 -0
- package/package.json +71 -60
- package/dist/cjs/App.d.ts +0 -3
- package/dist/cjs/components/forms/Checkbox/Checkbox.d.ts +0 -19
- package/dist/cjs/components/forms/Checkbox/CheckboxGroup.d.ts +0 -16
- package/dist/cjs/components/forms/Form/index.d.ts +0 -5
- package/dist/cjs/components/forms/NumberInput/NumberInput.d.ts +0 -15
- package/dist/cjs/components/forms/RadioGroup/Radio.d.ts +0 -27
- package/dist/cjs/components/forms/RadioGroup/RadioGroup.d.ts +0 -17
- package/dist/cjs/components/organisms/Modal/Modal.d.ts +0 -26
- package/dist/cjs/components/overlays/AlertDialog/AlertDialog.d.ts +0 -20
- package/dist/cjs/components/overlays/Dialog/Dialog.d.ts +0 -21
- package/dist/cjs/components/overlays/Dialog/DialogContainer.d.ts +0 -22
- package/dist/cjs/components/overlays/Dialog/DialogForm.d.ts +0 -27
- package/dist/cjs/components/overlays/Dialog/api.d.ts +0 -24
- package/dist/cjs/components/overlays/Dialog/index.d.ts +0 -12
- package/dist/cjs/components/overlays/Modal/Popover.d.ts +0 -16
- package/dist/cjs/components/overlays/Modal/Tray.d.ts +0 -13
- package/dist/cjs/components/overlays/OverlayWrapper.d.ts +0 -10
- package/dist/cjs/components/pickers/ComboBox/ComboBox.d.ts +0 -25
- package/dist/cjs/components/pickers/Select/Select.d.ts +0 -48
- package/dist/cjs/components/types.d.ts +0 -82
- package/dist/cjs/index.d.ts +0 -200
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/provider.d.ts +0 -24
- package/dist/cjs/stories/components/StyledButton.d.ts +0 -4
- package/dist/cjs/styled.d.ts +0 -11
- package/dist/cjs/utils/warnings.d.ts +0 -3
- package/dist/mjs/App.d.ts +0 -3
- package/dist/mjs/components/Base.d.ts +0 -4
- package/dist/mjs/components/Block.d.ts +0 -8
- package/dist/mjs/components/GlobalStyles.d.ts +0 -1
- package/dist/mjs/components/GridProvider.d.ts +0 -10
- package/dist/mjs/components/HiddenInput.d.ts +0 -1
- package/dist/mjs/components/OpenTrasition.d.ts +0 -14
- package/dist/mjs/components/Root.d.ts +0 -17
- package/dist/mjs/components/actions/Action.d.ts +0 -24
- package/dist/mjs/components/actions/Button/Button.d.ts +0 -19
- package/dist/mjs/components/actions/Button/Submit.d.ts +0 -3
- package/dist/mjs/components/actions/ButtonGroup/ButtonGroup.d.ts +0 -3
- package/dist/mjs/components/content/ActiveZone/ActiveZone.d.ts +0 -9
- package/dist/mjs/components/content/Avatar/Avatar.d.ts +0 -8
- package/dist/mjs/components/content/Badge/Badge.d.ts +0 -7
- package/dist/mjs/components/content/Card/Card.d.ts +0 -5
- package/dist/mjs/components/content/Content.d.ts +0 -5
- package/dist/mjs/components/content/Divider.d.ts +0 -5
- package/dist/mjs/components/content/Footer.d.ts +0 -5
- package/dist/mjs/components/content/Header.d.ts +0 -5
- package/dist/mjs/components/content/Paragraph.d.ts +0 -6
- package/dist/mjs/components/content/Placeholder/Placeholder.d.ts +0 -8
- package/dist/mjs/components/content/PrismCode/PrismCode.d.ts +0 -17
- package/dist/mjs/components/content/Result/Result.d.ts +0 -20
- package/dist/mjs/components/content/Skeleton/Skeleton.d.ts +0 -56
- package/dist/mjs/components/content/Tag/Tag.d.ts +0 -10
- package/dist/mjs/components/content/Text.d.ts +0 -37
- package/dist/mjs/components/content/Title.d.ts +0 -12
- package/dist/mjs/components/forms/Checkbox/context.d.ts +0 -3
- package/dist/mjs/components/forms/FieldWrapper.d.ts +0 -32
- package/dist/mjs/components/forms/FileInput/FileInput.d.ts +0 -27
- package/dist/mjs/components/forms/Form/Field.d.ts +0 -31
- package/dist/mjs/components/forms/Form/Form.d.ts +0 -30
- package/dist/mjs/components/forms/Form/index.d.ts +0 -5
- package/dist/mjs/components/forms/Form/useForm.d.ts +0 -52
- package/dist/mjs/components/forms/Form/validation.d.ts +0 -2
- package/dist/mjs/components/forms/Label.d.ts +0 -18
- package/dist/mjs/components/forms/NumberInput/StepButton.d.ts +0 -5
- package/dist/mjs/components/forms/PasswordInput/PasswordInput.d.ts +0 -12
- package/dist/mjs/components/forms/RadioGroup/context.d.ts +0 -4
- package/dist/mjs/components/forms/SearchInput/SearchInput.d.ts +0 -10
- package/dist/mjs/components/forms/Switch/Switch.d.ts +0 -19
- package/dist/mjs/components/forms/TextArea/TextArea.d.ts +0 -19
- package/dist/mjs/components/forms/TextInput/TextInput.d.ts +0 -12
- package/dist/mjs/components/forms/TextInput/TextInputBase.d.ts +0 -42
- package/dist/mjs/components/layout/Flex.d.ts +0 -5
- package/dist/mjs/components/layout/Flow.d.ts +0 -5
- package/dist/mjs/components/layout/Grid.d.ts +0 -5
- package/dist/mjs/components/layout/Prefix.d.ts +0 -7
- package/dist/mjs/components/layout/Space.d.ts +0 -6
- package/dist/mjs/components/layout/Suffix.d.ts +0 -7
- package/dist/mjs/components/navigation/LegacyTabs/LegacyTabs.d.ts +0 -43
- package/dist/mjs/components/navigation/Link/Link.d.ts +0 -3
- package/dist/mjs/components/organisms/Alert/Alert.d.ts +0 -8
- package/dist/mjs/components/organisms/CopySnippet/CopySnippet.d.ts +0 -26
- package/dist/mjs/components/organisms/DirectoryTree/DirectoryTree.d.ts +0 -44
- package/dist/mjs/components/organisms/FileTabs/FileTabs.d.ts +0 -34
- package/dist/mjs/components/organisms/SearchResults/SearchResults.d.ts +0 -31
- package/dist/mjs/components/organisms/StatsCard/StatsCard.d.ts +0 -8
- package/dist/mjs/components/organisms/TopBar/TopBar.d.ts +0 -6
- package/dist/mjs/components/other/Base64Upload/Base64Upload.d.ts +0 -5
- package/dist/mjs/components/other/CloudLogo/CloudLogo.d.ts +0 -4
- package/dist/mjs/components/overlays/Dialog/DialogTrigger.d.ts +0 -36
- package/dist/mjs/components/overlays/Dialog/api.d.ts +0 -24
- package/dist/mjs/components/overlays/Dialog/context.d.ts +0 -7
- package/dist/mjs/components/overlays/Dialog/index.d.ts +0 -12
- package/dist/mjs/components/overlays/Modal/Modal.d.ts +0 -13
- package/dist/mjs/components/overlays/Modal/OpenTransition.d.ts +0 -2
- package/dist/mjs/components/overlays/Modal/Overlay.d.ts +0 -6
- package/dist/mjs/components/overlays/Modal/Underlay.d.ts +0 -9
- package/dist/mjs/components/overlays/Notification/Notification.d.ts +0 -7
- package/dist/mjs/components/overlays/Tooltip/Tooltip.d.ts +0 -16
- package/dist/mjs/components/overlays/Tooltip/TooltipProvider.d.ts +0 -13
- package/dist/mjs/components/overlays/Tooltip/TooltipTrigger.d.ts +0 -20
- package/dist/mjs/components/overlays/Tooltip/context.d.ts +0 -16
- package/dist/mjs/components/status/LoadingAnimation/LoadingAnimation.d.ts +0 -6
- package/dist/mjs/components/status/Spin/Spin.d.ts +0 -8
- package/dist/mjs/data/themes.d.ts +0 -23
- package/dist/mjs/index.js +0 -46
- package/dist/mjs/index.js.map +0 -1
- package/dist/mjs/providers/BreakpointsProvider.d.ts +0 -8
- package/dist/mjs/providers/StylesProvider.d.ts +0 -10
- package/dist/mjs/services/notification.d.ts +0 -25
- package/dist/mjs/shared/form.d.ts +0 -70
- package/dist/mjs/shared/index.d.ts +0 -3
- package/dist/mjs/stories/FormFieldArgs.d.ts +0 -325
- package/dist/mjs/stories/components/ConfirmDeletionDialogForm.d.ts +0 -7
- package/dist/mjs/stories/components/DialogFormApp.d.ts +0 -2
- package/dist/mjs/stories/components/StyledButton.d.ts +0 -4
- package/dist/mjs/stories/lists/baseProps.d.ts +0 -1
- package/dist/mjs/styled.d.ts +0 -11
- package/dist/mjs/styles/align.d.ts +0 -9
- package/dist/mjs/styles/border.d.ts +0 -11
- package/dist/mjs/styles/boxShadow.combinator.d.ts +0 -6
- package/dist/mjs/styles/color.d.ts +0 -6
- package/dist/mjs/styles/dimension.d.ts +0 -4
- package/dist/mjs/styles/display.d.ts +0 -9
- package/dist/mjs/styles/fill.d.ts +0 -6
- package/dist/mjs/styles/flow.d.ts +0 -9
- package/dist/mjs/styles/font.d.ts +0 -9
- package/dist/mjs/styles/fontStyle.d.ts +0 -8
- package/dist/mjs/styles/gap.d.ts +0 -21
- package/dist/mjs/styles/groupRadius.d.ts +0 -11
- package/dist/mjs/styles/height.d.ts +0 -9
- package/dist/mjs/styles/index.d.ts +0 -8
- package/dist/mjs/styles/justify.d.ts +0 -9
- package/dist/mjs/styles/list.d.ts +0 -9
- package/dist/mjs/styles/margin.d.ts +0 -12
- package/dist/mjs/styles/marginBlock.d.ts +0 -8
- package/dist/mjs/styles/marginInline.d.ts +0 -8
- package/dist/mjs/styles/outline.d.ts +0 -8
- package/dist/mjs/styles/padding.d.ts +0 -12
- package/dist/mjs/styles/paddingBlock.d.ts +0 -8
- package/dist/mjs/styles/paddingInline.d.ts +0 -8
- package/dist/mjs/styles/predefined.d.ts +0 -1
- package/dist/mjs/styles/preset.d.ts +0 -13
- package/dist/mjs/styles/radius.d.ts +0 -16
- package/dist/mjs/styles/reset.d.ts +0 -6
- package/dist/mjs/styles/shadow.d.ts +0 -8
- package/dist/mjs/styles/styledScrollbar.d.ts +0 -54
- package/dist/mjs/styles/transition.d.ts +0 -9
- package/dist/mjs/styles/types.d.ts +0 -111
- package/dist/mjs/styles/width.d.ts +0 -9
- package/dist/mjs/tokens.d.ts +0 -159
- package/dist/mjs/utils/ResizeSensor.d.ts +0 -9
- package/dist/mjs/utils/colors.d.ts +0 -1
- package/dist/mjs/utils/dotize.d.ts +0 -21
- package/dist/mjs/utils/escape-string.d.ts +0 -1
- package/dist/mjs/utils/filterBaseProps.d.ts +0 -12
- package/dist/mjs/utils/index.d.ts +0 -1
- package/dist/mjs/utils/interactions.d.ts +0 -6
- package/dist/mjs/utils/mergeStyles.d.ts +0 -2
- package/dist/mjs/utils/modules.d.ts +0 -1
- package/dist/mjs/utils/promise.d.ts +0 -1
- package/dist/mjs/utils/react/Slots.d.ts +0 -4
- package/dist/mjs/utils/react/chain.d.ts +0 -4
- package/dist/mjs/utils/react/isTextOnly.d.ts +0 -1
- package/dist/mjs/utils/react/mapProps.d.ts +0 -6
- package/dist/mjs/utils/react/mergeProps.d.ts +0 -9
- package/dist/mjs/utils/react/modAttrs.d.ts +0 -6
- package/dist/mjs/utils/react/nullableValue.d.ts +0 -19
- package/dist/mjs/utils/react/useCombinedRefs.d.ts +0 -2
- package/dist/mjs/utils/react/useId.d.ts +0 -15
- package/dist/mjs/utils/react/useLayoutEffect.d.ts +0 -2
- package/dist/mjs/utils/react/wrapNodeIfPlain.d.ts +0 -2
- package/dist/mjs/utils/renderStyles.d.ts +0 -10
- package/dist/mjs/utils/responsive.d.ts +0 -9
- package/dist/mjs/utils/string.d.ts +0 -1
- package/dist/mjs/utils/styles.d.ts +0 -198
- package/dist/mjs/utils/transitions.d.ts +0 -8
- package/dist/mjs/utils/tree.d.ts +0 -1
- package/dist/mjs/utils/warnings.d.ts +0 -3
@@ -0,0 +1,47 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { parseStyle, DIRECTIONS, filterMods } from '../utils/styles';
|
9
|
+
export function paddingStyle({ padding, paddingBlock, paddingInline, paddingTop, paddingRight, paddingBottom, paddingLeft, }) {
|
10
|
+
if (typeof padding === 'number') {
|
11
|
+
padding = `${padding}px`;
|
12
|
+
}
|
13
|
+
if (!padding)
|
14
|
+
return '';
|
15
|
+
if (padding === true)
|
16
|
+
padding = '1x';
|
17
|
+
let { values, mods } = parseStyle(padding);
|
18
|
+
let directions = filterMods(mods, DIRECTIONS);
|
19
|
+
if (!values.length) {
|
20
|
+
values = ['var(--gap)'];
|
21
|
+
}
|
22
|
+
if (!directions.length) {
|
23
|
+
directions = DIRECTIONS;
|
24
|
+
}
|
25
|
+
const paddingDirs = [paddingTop, paddingRight, paddingBottom, paddingLeft];
|
26
|
+
return directions.reduce((styles, dir) => {
|
27
|
+
const index = DIRECTIONS.indexOf(dir);
|
28
|
+
if (((!!(index % 2) && paddingInline == null)
|
29
|
+
|| (!(index % 2) && paddingBlock == null))
|
30
|
+
&& paddingDirs[index] == null) {
|
31
|
+
styles[`padding-${dir}`]
|
32
|
+
= values[index] || values[index % 2] || values[0];
|
33
|
+
}
|
34
|
+
return styles;
|
35
|
+
}, {});
|
36
|
+
}
|
37
|
+
paddingStyle.__lookupStyles = [
|
38
|
+
'padding',
|
39
|
+
'paddingTop',
|
40
|
+
'paddingRight',
|
41
|
+
'paddingBottom',
|
42
|
+
'paddingLeft',
|
43
|
+
'paddingBlock',
|
44
|
+
'paddingInline',
|
45
|
+
];
|
46
|
+
|
47
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { parseStyle } from '../utils/styles';
|
9
|
+
export function paddingBlockStyle({ paddingBlock: padding, paddingTop, paddingBottom, }) {
|
10
|
+
if (typeof padding === 'number') {
|
11
|
+
padding = `${padding}px`;
|
12
|
+
}
|
13
|
+
if (!padding)
|
14
|
+
return '';
|
15
|
+
if (padding === true)
|
16
|
+
padding = '1x';
|
17
|
+
let { values } = parseStyle(padding);
|
18
|
+
if (!values.length) {
|
19
|
+
values = ['var(--gap)'];
|
20
|
+
}
|
21
|
+
const styles = {};
|
22
|
+
if (paddingTop == null) {
|
23
|
+
styles['padding-top'] = values[0];
|
24
|
+
}
|
25
|
+
if (paddingBottom == null) {
|
26
|
+
styles['padding-bottom'] = values[1] || values[0];
|
27
|
+
}
|
28
|
+
return styles;
|
29
|
+
}
|
30
|
+
paddingBlockStyle.__lookupStyles = [
|
31
|
+
'paddingBlock',
|
32
|
+
'paddingTop',
|
33
|
+
'paddingBottom',
|
34
|
+
];
|
35
|
+
|
36
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { parseStyle } from '../utils/styles';
|
9
|
+
export function paddingInlineStyle({ paddingInline: padding, paddingLeft, paddingRight, }) {
|
10
|
+
if (typeof padding === 'number') {
|
11
|
+
padding = `${padding}px`;
|
12
|
+
}
|
13
|
+
if (!padding)
|
14
|
+
return '';
|
15
|
+
if (padding === true)
|
16
|
+
padding = '1x';
|
17
|
+
let { values } = parseStyle(padding);
|
18
|
+
if (!values.length) {
|
19
|
+
values = ['var(--gap)'];
|
20
|
+
}
|
21
|
+
const styles = {};
|
22
|
+
if (paddingLeft == null) {
|
23
|
+
styles['padding-left'] = values[0];
|
24
|
+
}
|
25
|
+
if (paddingRight == null) {
|
26
|
+
styles['padding-right'] = values[1] || values[0];
|
27
|
+
}
|
28
|
+
return styles;
|
29
|
+
}
|
30
|
+
paddingInlineStyle.__lookupStyles = [
|
31
|
+
'paddingInline',
|
32
|
+
'paddingLeft',
|
33
|
+
'paddingRight',
|
34
|
+
];
|
35
|
+
|
36
|
+
|
@@ -0,0 +1,120 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { gapStyle } from './gap';
|
9
|
+
import { flowStyle } from './flow';
|
10
|
+
import { resetStyle } from './reset';
|
11
|
+
import { colorStyle } from './color';
|
12
|
+
import { fillStyle } from './fill';
|
13
|
+
import { widthStyle } from './width';
|
14
|
+
import { heightStyle } from './height';
|
15
|
+
import { radiusStyle } from './radius';
|
16
|
+
import { borderStyle } from './border';
|
17
|
+
import { shadowStyle } from './shadow';
|
18
|
+
import { paddingStyle } from './padding';
|
19
|
+
import { paddingBlockStyle } from './paddingBlock';
|
20
|
+
import { paddingInlineStyle } from './paddingInline';
|
21
|
+
import { presetStyle } from './preset';
|
22
|
+
import { fontStyleStyle } from './fontStyle';
|
23
|
+
import { marginStyle } from './margin';
|
24
|
+
import { marginBlockStyle } from './marginBlock';
|
25
|
+
import { marginInlineStyle } from './marginInline';
|
26
|
+
import { fontStyle } from './font';
|
27
|
+
import { outlineStyle } from './outline';
|
28
|
+
import { transitionStyle } from './transition';
|
29
|
+
import { groupRadiusAttr } from './groupRadius';
|
30
|
+
import { boxShadowCombinator } from './boxShadow.combinator';
|
31
|
+
import { styledScrollbarStyle } from './styledScrollbar';
|
32
|
+
import { displayStyle } from './display';
|
33
|
+
import { alignStyle } from './align';
|
34
|
+
import { justifyStyle } from './justify';
|
35
|
+
import { defineCustomStyle, defineStyleAlias } from './index';
|
36
|
+
const numberConverter = (val) => {
|
37
|
+
if (typeof val === 'number') {
|
38
|
+
return `${val}px`;
|
39
|
+
}
|
40
|
+
return val;
|
41
|
+
};
|
42
|
+
const columnsConverter = (val) => {
|
43
|
+
if (typeof val === 'number') {
|
44
|
+
return 'minmax(1px, 1fr) '.repeat(val).trim();
|
45
|
+
}
|
46
|
+
return;
|
47
|
+
};
|
48
|
+
const rowsConverter = (val) => {
|
49
|
+
if (typeof val === 'number') {
|
50
|
+
return 'auto '.repeat(val).trim();
|
51
|
+
}
|
52
|
+
return;
|
53
|
+
};
|
54
|
+
// Manually define styles that are used in other custom styles.
|
55
|
+
// Otherwise, they won't be handled as expected.
|
56
|
+
defineStyleAlias('fontSize');
|
57
|
+
defineStyleAlias('lineHeight');
|
58
|
+
defineStyleAlias('fontWeight');
|
59
|
+
defineStyleAlias('fontStyle');
|
60
|
+
defineStyleAlias('letterSpacing');
|
61
|
+
defineStyleAlias('textTransform');
|
62
|
+
defineStyleAlias('fontFamily');
|
63
|
+
defineStyleAlias('paddingTop');
|
64
|
+
defineStyleAlias('paddingRight');
|
65
|
+
defineStyleAlias('paddingBottom');
|
66
|
+
defineStyleAlias('paddingLeft');
|
67
|
+
defineStyleAlias('marginTop');
|
68
|
+
defineStyleAlias('marginRight');
|
69
|
+
defineStyleAlias('marginBottom');
|
70
|
+
defineStyleAlias('marginLeft');
|
71
|
+
// Coordinates
|
72
|
+
defineStyleAlias('top', 'top', numberConverter);
|
73
|
+
defineStyleAlias('right', 'right', numberConverter);
|
74
|
+
defineStyleAlias('bottom', 'bottom', numberConverter);
|
75
|
+
defineStyleAlias('left', 'left', numberConverter);
|
76
|
+
// Style aliases
|
77
|
+
defineStyleAlias('gridAreas', 'grid-template-areas');
|
78
|
+
defineStyleAlias('gridColumns', 'grid-template-columns', columnsConverter);
|
79
|
+
defineStyleAlias('gridRows', 'grid-template-rows', rowsConverter);
|
80
|
+
defineStyleAlias('gridTemplate', 'grid-template', (val) => {
|
81
|
+
if (typeof val !== 'string')
|
82
|
+
return;
|
83
|
+
return val
|
84
|
+
.split('/')
|
85
|
+
.map((s, i) => (i ? columnsConverter : rowsConverter)(s))
|
86
|
+
.join('/');
|
87
|
+
});
|
88
|
+
[
|
89
|
+
displayStyle,
|
90
|
+
transitionStyle,
|
91
|
+
resetStyle,
|
92
|
+
fillStyle,
|
93
|
+
widthStyle,
|
94
|
+
marginStyle,
|
95
|
+
marginBlockStyle,
|
96
|
+
marginInlineStyle,
|
97
|
+
gapStyle,
|
98
|
+
flowStyle,
|
99
|
+
colorStyle,
|
100
|
+
heightStyle,
|
101
|
+
radiusStyle,
|
102
|
+
borderStyle,
|
103
|
+
shadowStyle,
|
104
|
+
paddingStyle,
|
105
|
+
paddingBlockStyle,
|
106
|
+
paddingInlineStyle,
|
107
|
+
alignStyle,
|
108
|
+
justifyStyle,
|
109
|
+
presetStyle,
|
110
|
+
boxShadowCombinator,
|
111
|
+
outlineStyle,
|
112
|
+
fontStyle,
|
113
|
+
fontStyleStyle,
|
114
|
+
groupRadiusAttr,
|
115
|
+
styledScrollbarStyle,
|
116
|
+
]
|
117
|
+
// @ts-ignore
|
118
|
+
.forEach((handler) => defineCustomStyle(handler));
|
119
|
+
|
120
|
+
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { parseStyle } from '../utils/styles';
|
9
|
+
export function presetStyle({ preset, fontSize, lineHeight, textTransform, letterSpacing, fontWeight, fontStyle, font, }) {
|
10
|
+
if (!preset)
|
11
|
+
return '';
|
12
|
+
if (preset === true)
|
13
|
+
preset = '';
|
14
|
+
const { mods } = parseStyle(preset);
|
15
|
+
const name = mods[0] || 'default';
|
16
|
+
const styles = {};
|
17
|
+
if (!fontSize) {
|
18
|
+
styles['font-size'] = styles['--font-size'] = `var(--${name}-font-size, var(--initial-font-size, inherit))`;
|
19
|
+
}
|
20
|
+
if (!lineHeight) {
|
21
|
+
styles['line-height'] = styles['--line-height'] = `var(--${name}-line-height, var(--initial-line-height, 1.5))`;
|
22
|
+
}
|
23
|
+
if (!letterSpacing) {
|
24
|
+
styles['letter-spacing'] = styles['--letter-spacing'] = `var(--${name}-letter-spacing, var(--initial-letter-spacing, 0))`;
|
25
|
+
}
|
26
|
+
if (!fontWeight) {
|
27
|
+
styles['font-weight'] = styles['--font-weight'] = `var(--${name}-font-weight, var(--initial-font-weight, 400))`;
|
28
|
+
}
|
29
|
+
if (!fontStyle) {
|
30
|
+
styles['font-style'] = styles['--font-style'] = `var(--${name}-font-style, var(--initial-font-style, normal))`;
|
31
|
+
}
|
32
|
+
if (!textTransform) {
|
33
|
+
styles['text-transform'] = styles['--text-transform'] = `var(--${name}-text-transform, var(--initial-text-transform, none))`;
|
34
|
+
}
|
35
|
+
if (!font) {
|
36
|
+
styles['font-family'] = styles['--font-family'] = `var(--${name}-font-family, var(--font))`;
|
37
|
+
}
|
38
|
+
return styles;
|
39
|
+
}
|
40
|
+
presetStyle.__lookupStyles = [
|
41
|
+
'preset',
|
42
|
+
'fontSize',
|
43
|
+
'lineHeight',
|
44
|
+
'letterSpacing',
|
45
|
+
'textTransform',
|
46
|
+
'fontWeight',
|
47
|
+
'fontStyle',
|
48
|
+
'font',
|
49
|
+
];
|
50
|
+
|
51
|
+
|
@@ -0,0 +1,72 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { parseStyle, DIRECTIONS } from '../utils/styles';
|
9
|
+
const PROP = 'var(--radius)';
|
10
|
+
const SHARP = 'var(--leaf-sharp-radius)';
|
11
|
+
export function radiusStyle({ radius }) {
|
12
|
+
if (typeof radius === 'number') {
|
13
|
+
radius = `${radius}px`;
|
14
|
+
}
|
15
|
+
if (!radius)
|
16
|
+
return '';
|
17
|
+
if (radius === true)
|
18
|
+
radius = '1r';
|
19
|
+
let { mods, values } = parseStyle(radius, 1);
|
20
|
+
if (mods.includes('round')) {
|
21
|
+
values = ['9999rem'];
|
22
|
+
}
|
23
|
+
else if (mods.includes('ellipse')) {
|
24
|
+
values = ['50%'];
|
25
|
+
}
|
26
|
+
else if (!values.length) {
|
27
|
+
values = [PROP];
|
28
|
+
}
|
29
|
+
if (mods.includes('leaf')) {
|
30
|
+
values = [
|
31
|
+
values[1] || SHARP,
|
32
|
+
values[0] || PROP,
|
33
|
+
values[1] || SHARP,
|
34
|
+
values[0] || PROP,
|
35
|
+
];
|
36
|
+
}
|
37
|
+
else if (mods.includes('backleaf')) {
|
38
|
+
values = [
|
39
|
+
values[0] || PROP,
|
40
|
+
values[1] || SHARP,
|
41
|
+
values[0] || PROP,
|
42
|
+
values[1] || SHARP,
|
43
|
+
];
|
44
|
+
}
|
45
|
+
else if (mods.length) {
|
46
|
+
const arr = ['0', '0', '0', '0'];
|
47
|
+
let flag = false;
|
48
|
+
DIRECTIONS.forEach((dir, i) => {
|
49
|
+
if (!mods.includes(dir))
|
50
|
+
return;
|
51
|
+
flag = true;
|
52
|
+
arr[i] = values[0] || PROP;
|
53
|
+
arr[(i + 1) % 4] = values[0] || PROP;
|
54
|
+
});
|
55
|
+
if (flag) {
|
56
|
+
values = arr;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
return [
|
60
|
+
{
|
61
|
+
'--local-radius': values.join(' '),
|
62
|
+
'border-radius': 'var(--local-radius)',
|
63
|
+
},
|
64
|
+
{
|
65
|
+
$: '>*',
|
66
|
+
'--context-radius': values.join(' '),
|
67
|
+
},
|
68
|
+
];
|
69
|
+
}
|
70
|
+
radiusStyle.__lookupStyles = ['radius'];
|
71
|
+
|
72
|
+
|
@@ -0,0 +1,100 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { parseStyle } from '../utils/styles';
|
9
|
+
const RESET_MAP = {
|
10
|
+
input: [
|
11
|
+
{
|
12
|
+
css: `
|
13
|
+
-webkit-appearance: none;
|
14
|
+
font-family: inherit;
|
15
|
+
font-weight: inherit;
|
16
|
+
word-spacing: initial;
|
17
|
+
-webkit-text-fill-color: currentColor;
|
18
|
+
box-sizing: border-box;
|
19
|
+
user-select: auto;
|
20
|
+
resize: none;
|
21
|
+
`,
|
22
|
+
},
|
23
|
+
{
|
24
|
+
$: '::-webkit-search-cancel-button',
|
25
|
+
css: 'display: none',
|
26
|
+
},
|
27
|
+
{
|
28
|
+
$: [
|
29
|
+
':-webkit-autofill',
|
30
|
+
':-webkit-autofill:hover',
|
31
|
+
':-webkit-autofill:focus',
|
32
|
+
],
|
33
|
+
css: `
|
34
|
+
caret-color: var(--purple-color);
|
35
|
+
-webkit-text-fill-color: var(--purple-color);
|
36
|
+
-webkit-box-shadow: 0 0 0px 9999rem var(--white-color) inset;
|
37
|
+
box-shadow: 0 0 0px 9999rem var(--white-color) inset;
|
38
|
+
font-family: inherit;
|
39
|
+
font-size: inherit;
|
40
|
+
line-height: inherit;
|
41
|
+
`,
|
42
|
+
},
|
43
|
+
{
|
44
|
+
$: '[disabled]',
|
45
|
+
css: `
|
46
|
+
color: inherit;
|
47
|
+
background: transparent;
|
48
|
+
-webkit-opacity: 1;
|
49
|
+
`,
|
50
|
+
},
|
51
|
+
{
|
52
|
+
$: '::placeholder',
|
53
|
+
css: `
|
54
|
+
-webkit-text-fill-color: var(--local-placeholder-color);
|
55
|
+
color: var(--local-placeholder-color);
|
56
|
+
filter: saturate(.33);
|
57
|
+
`,
|
58
|
+
},
|
59
|
+
{
|
60
|
+
$: '::-webkit-search-cancel-button',
|
61
|
+
css: `
|
62
|
+
display: none;
|
63
|
+
-webkit-appearance: none;
|
64
|
+
`,
|
65
|
+
},
|
66
|
+
{
|
67
|
+
$: ':not([disabled])::placeholder',
|
68
|
+
css: '--local-placeholder-color: var(--placeholder-color, rgba(var(--dark-color-rgb), .3));\n',
|
69
|
+
},
|
70
|
+
],
|
71
|
+
button: [
|
72
|
+
{
|
73
|
+
css: `
|
74
|
+
transition: all var(--transition) linear;
|
75
|
+
background: transparent;
|
76
|
+
border: none;
|
77
|
+
outline: none;
|
78
|
+
appearance: none;
|
79
|
+
position: relative;
|
80
|
+
touch-action: manipulation;
|
81
|
+
-webkit-tap-highlight-color: transparent;
|
82
|
+
text-decoration: none;
|
83
|
+
`,
|
84
|
+
},
|
85
|
+
],
|
86
|
+
};
|
87
|
+
export function resetStyle({ reset }) {
|
88
|
+
if (!reset)
|
89
|
+
return;
|
90
|
+
const { mods } = parseStyle(reset, 1);
|
91
|
+
return mods.reduce((sum, mod) => {
|
92
|
+
if (RESET_MAP[mod]) {
|
93
|
+
sum.push(...RESET_MAP[mod]);
|
94
|
+
}
|
95
|
+
return sum;
|
96
|
+
}, []);
|
97
|
+
}
|
98
|
+
resetStyle.__lookupStyles = ['reset'];
|
99
|
+
|
100
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { parseStyle } from '../utils/styles';
|
9
|
+
export function shadowStyle({ shadow }) {
|
10
|
+
if (!shadow)
|
11
|
+
return '';
|
12
|
+
if (shadow === true)
|
13
|
+
shadow = '0 5px 15px #shadow';
|
14
|
+
const { values, mods, color } = parseStyle(shadow);
|
15
|
+
const mod = mods[0] || '';
|
16
|
+
const shadowColor = color || 'var(--shadow-color)';
|
17
|
+
return {
|
18
|
+
'--local-shadow-box-shadow': [mod, ...values, shadowColor].join(' '),
|
19
|
+
};
|
20
|
+
}
|
21
|
+
shadowStyle.__lookupStyles = ['shadow'];
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
export function styledScrollbarStyle({ styledScrollbar: val }) {
|
9
|
+
if (val == null)
|
10
|
+
return null;
|
11
|
+
if (!val) {
|
12
|
+
return [
|
13
|
+
{
|
14
|
+
$: '::-webkit-scrollbar',
|
15
|
+
display: 'none',
|
16
|
+
},
|
17
|
+
{
|
18
|
+
'scrollbar-width': 'none',
|
19
|
+
},
|
20
|
+
];
|
21
|
+
}
|
22
|
+
return [
|
23
|
+
{
|
24
|
+
$: '::-webkit-scrollbar',
|
25
|
+
width: 'var(--scrollbar-width)',
|
26
|
+
height: 'var(--scrollbar-width)',
|
27
|
+
},
|
28
|
+
{
|
29
|
+
$: '::-webkit-scrollbar-track',
|
30
|
+
'background-color': 'var(--scrollbar-bg-color)',
|
31
|
+
},
|
32
|
+
{
|
33
|
+
$: '::-webkit-scrollbar-thumb',
|
34
|
+
'background-color': 'var(--scrollbar-thumb-color)',
|
35
|
+
'border-radius': 'var(--scrollbar-radius)',
|
36
|
+
border: 'var(--scrollbar-outline-width) solid var(--scrollbar-outline-color)',
|
37
|
+
'background-clip': 'padding-box',
|
38
|
+
},
|
39
|
+
{
|
40
|
+
$: '::-webkit-scrollbar-corner',
|
41
|
+
'background-color': 'var(--scrollbar-corner-color)',
|
42
|
+
},
|
43
|
+
{
|
44
|
+
'scrollbar-width': 'thin',
|
45
|
+
'scrollbar-color': 'var(--scrollbar-bg-color) var(--scrollbar-thumb-color)',
|
46
|
+
},
|
47
|
+
];
|
48
|
+
}
|
49
|
+
styledScrollbarStyle.__lookupStyles = ['styledScrollbar'];
|
50
|
+
|
51
|
+
|
@@ -0,0 +1,84 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { parseStyle } from '../utils/styles';
|
9
|
+
const MAP = {
|
10
|
+
move: ['transform'],
|
11
|
+
rotate: ['transform'],
|
12
|
+
scale: ['transform'],
|
13
|
+
placeSelf: ['transform', 'top', 'right', 'bottom', 'left'],
|
14
|
+
fill: ['background-color'],
|
15
|
+
border: ['border', 'box-shadow'],
|
16
|
+
filter: ['filter', 'backdrop-filter'],
|
17
|
+
radius: ['border-radius'],
|
18
|
+
shadow: ['box-shadow'],
|
19
|
+
outline: ['box-shadow'],
|
20
|
+
preset: [
|
21
|
+
'font-size',
|
22
|
+
'line-height',
|
23
|
+
'letter-spacing',
|
24
|
+
'font-weight',
|
25
|
+
'font-style',
|
26
|
+
],
|
27
|
+
text: ['font-weight', 'text-decoration-color'],
|
28
|
+
theme: ['color', 'background-color', 'box-shadow', 'border', 'border-radius'],
|
29
|
+
inset: ['box-shadow'],
|
30
|
+
mark: ['box-shadow'],
|
31
|
+
width: ['max-width', 'min-width', 'width'],
|
32
|
+
height: ['max-height', 'min-height', 'height'],
|
33
|
+
gap: ['gap', 'margin'],
|
34
|
+
zIndex: ['z-index'],
|
35
|
+
image: ['background-image', 'background-position', 'background-size'],
|
36
|
+
};
|
37
|
+
export const DEFAULT_TIMING = 'var(--transition)';
|
38
|
+
const DEFAULT_EASING = 'linear';
|
39
|
+
function getTiming(name) {
|
40
|
+
return `var(--${name}-transition, var(--transition))`;
|
41
|
+
}
|
42
|
+
export function transitionStyle({ transition }) {
|
43
|
+
if (!transition)
|
44
|
+
return;
|
45
|
+
const tokens = parseStyle(transition).all;
|
46
|
+
if (!tokens)
|
47
|
+
return;
|
48
|
+
let tempTransition = [];
|
49
|
+
const transitions = [];
|
50
|
+
tokens.forEach((token) => {
|
51
|
+
if (token === ',') {
|
52
|
+
if (tempTransition) {
|
53
|
+
transitions.push(tempTransition);
|
54
|
+
tempTransition = [];
|
55
|
+
}
|
56
|
+
}
|
57
|
+
else {
|
58
|
+
tempTransition.push(token);
|
59
|
+
}
|
60
|
+
});
|
61
|
+
if (tempTransition) {
|
62
|
+
transitions.push(tempTransition);
|
63
|
+
}
|
64
|
+
const map = {};
|
65
|
+
transitions.forEach((transition) => {
|
66
|
+
const name = transition[0];
|
67
|
+
const timing = transition[1];
|
68
|
+
const easing = transition[2];
|
69
|
+
const delay = transition[3];
|
70
|
+
const styles = MAP[name] || [name];
|
71
|
+
styles.forEach((style) => {
|
72
|
+
map[style] = [name, easing, timing, delay];
|
73
|
+
});
|
74
|
+
});
|
75
|
+
const result = Object.entries(map)
|
76
|
+
.map(([style, [name, easing, timing, delay]]) => {
|
77
|
+
return `${style} ${timing || getTiming(name)} ${easing || DEFAULT_EASING} ${delay || '0s'}`;
|
78
|
+
})
|
79
|
+
.join(', ');
|
80
|
+
return { transition: result };
|
81
|
+
}
|
82
|
+
transitionStyle.__lookupStyles = ['transition'];
|
83
|
+
|
84
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* @license MIT
|
3
|
+
* author: Cube Dev Team
|
4
|
+
* @cube-dev/ui-kit v0.9.2
|
5
|
+
* Released under the MIT license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import { dimensionStyle } from './dimension';
|
9
|
+
const dimension = dimensionStyle('width');
|
10
|
+
export function widthStyle({ width }) {
|
11
|
+
return dimension(width);
|
12
|
+
}
|
13
|
+
widthStyle.__lookupStyles = ['width'];
|
14
|
+
|
15
|
+
|