@cube-dev/ui-kit 0.9.0 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/components/Base.js +2 -2
- package/dist/cjs/components/Block.js +1 -1
- package/dist/cjs/components/GlobalStyles.js +1 -1
- package/dist/cjs/components/GridProvider.js +3 -2
- package/dist/cjs/components/HiddenInput.js +1 -1
- package/dist/cjs/components/OpenTrasition.js +1 -1
- package/dist/cjs/components/Root.js +2 -2
- package/dist/cjs/components/actions/Action.js +2 -2
- package/dist/cjs/components/actions/Button/Button.js +1 -1
- package/dist/cjs/components/actions/Button/Submit.js +1 -1
- package/dist/cjs/components/actions/Button/index.js +1 -1
- package/dist/cjs/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/cjs/components/actions/index.js +1 -1
- package/dist/cjs/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/cjs/components/content/Avatar/Avatar.js +1 -1
- package/dist/cjs/components/content/Badge/Badge.js +1 -1
- package/dist/cjs/components/content/Card/Card.js +1 -1
- package/dist/cjs/components/content/Content.js +1 -1
- package/dist/cjs/components/content/Divider.js +1 -1
- package/dist/cjs/components/content/Footer.js +1 -1
- package/dist/cjs/components/content/Header.js +1 -1
- package/dist/cjs/components/content/Paragraph.js +1 -1
- package/dist/cjs/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/cjs/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/cjs/components/content/Result/Result.js +1 -1
- package/dist/cjs/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/cjs/components/content/Tag/Tag.js +1 -1
- package/dist/cjs/components/content/Text.js +1 -1
- package/dist/cjs/components/content/Title.js +1 -1
- package/dist/cjs/components/forms/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/components/forms/Checkbox/CheckboxGroup.js +1 -1
- package/dist/cjs/components/forms/Checkbox/context.js +1 -1
- package/dist/cjs/components/forms/FieldWrapper.js +1 -1
- package/dist/cjs/components/forms/FileInput/FileInput.js +7 -6
- package/dist/cjs/components/forms/Form/Field.js +5 -5
- package/dist/cjs/components/forms/Form/Form.js +8 -8
- package/dist/cjs/components/forms/Form/index.js +1 -1
- package/dist/cjs/components/forms/Form/useForm.js +1 -1
- package/dist/cjs/components/forms/Form/validation.js +2 -2
- package/dist/cjs/components/forms/Label.js +1 -1
- package/dist/cjs/components/forms/NumberInput/NumberInput.js +1 -1
- package/dist/cjs/components/forms/NumberInput/StepButton.js +3 -3
- package/dist/cjs/components/forms/PasswordInput/PasswordInput.js +3 -3
- package/dist/cjs/components/forms/RadioGroup/Radio.js +1 -1
- package/dist/cjs/components/forms/RadioGroup/RadioGroup.js +1 -1
- package/dist/cjs/components/forms/RadioGroup/context.js +1 -1
- package/dist/cjs/components/forms/SearchInput/SearchInput.js +5 -5
- package/dist/cjs/components/forms/Switch/Switch.js +1 -1
- package/dist/cjs/components/forms/TextArea/TextArea.js +1 -1
- package/dist/cjs/components/forms/TextInput/TextInput.js +1 -1
- package/dist/cjs/components/forms/TextInput/TextInputBase.js +4 -4
- package/dist/cjs/components/forms/index.js +1 -1
- package/dist/cjs/components/layout/Flex.js +1 -1
- package/dist/cjs/components/layout/Flow.js +1 -1
- package/dist/cjs/components/layout/Grid.js +1 -1
- package/dist/cjs/components/layout/Prefix.js +2 -2
- package/dist/cjs/components/layout/Space.js +1 -1
- package/dist/cjs/components/layout/Suffix.js +1 -1
- package/dist/cjs/components/navigation/LegacyTabs/LegacyTabs.js +5 -5
- package/dist/cjs/components/navigation/Link/Link.js +3 -3
- package/dist/cjs/components/organisms/Alert/Alert.js +1 -1
- package/dist/cjs/components/organisms/CopySnippet/CopySnippet.js +3 -3
- package/dist/cjs/components/organisms/DirectoryTree/DirectoryTree.js +3 -3
- package/dist/cjs/components/organisms/FileTabs/FileTabs.js +1 -1
- package/dist/cjs/components/organisms/Modal/Modal.js +3 -3
- package/dist/cjs/components/organisms/SearchResults/SearchResults.js +3 -3
- package/dist/cjs/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/cjs/components/organisms/TopBar/TopBar.js +1 -1
- package/dist/cjs/components/other/Base64Upload/Base64Upload.js +5 -5
- package/dist/cjs/components/other/CloudLogo/CloudLogo.js +1 -1
- package/dist/cjs/components/overlays/AlertDialog/AlertDialog.js +13 -5
- package/dist/cjs/components/overlays/AlertDialog/AlertDialogApiProvider.js +7 -6
- package/dist/cjs/components/overlays/AlertDialog/AlertDialogZone.js +2 -2
- package/dist/cjs/components/overlays/AlertDialog/index.js +1 -1
- package/dist/cjs/components/overlays/AlertDialog/types.js +1 -1
- package/dist/cjs/components/overlays/Dialog/Dialog.js +3 -3
- package/dist/cjs/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/cjs/components/overlays/Dialog/DialogForm.js +6 -6
- package/dist/cjs/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/cjs/components/overlays/Dialog/context.js +1 -1
- package/dist/cjs/components/overlays/Dialog/index.js +1 -1
- package/dist/cjs/components/overlays/Modal/Modal.js +1 -1
- package/dist/cjs/components/overlays/Modal/OpenTransition.js +1 -1
- package/dist/cjs/components/overlays/Modal/Overlay.js +7 -7
- package/dist/cjs/components/overlays/Modal/Popover.js +1 -1
- package/dist/cjs/components/overlays/Modal/Tray.js +1 -1
- package/dist/cjs/components/overlays/Modal/Underlay.js +1 -1
- package/dist/cjs/components/overlays/Modal/index.js +1 -1
- package/dist/cjs/components/overlays/Notification/Notification.js +1 -1
- package/dist/cjs/components/overlays/OverlayWrapper.js +1 -1
- package/dist/cjs/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/cjs/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/cjs/components/overlays/Tooltip/TooltipTrigger.js +3 -2
- package/dist/cjs/components/overlays/Tooltip/context.js +1 -1
- package/dist/cjs/components/pickers/ComboBox/ComboBox.js +3 -2
- package/dist/cjs/components/pickers/Select/Select.js +3 -2
- package/dist/cjs/components/portal/Portal.js +1 -1
- package/dist/cjs/components/portal/PortalProvider.js +1 -1
- package/dist/cjs/components/portal/index.js +1 -1
- package/dist/cjs/components/portal/storybook/templates/basic.js +1 -1
- package/dist/cjs/components/portal/storybook/templates/index.js +1 -1
- package/dist/cjs/components/portal/types.js +1 -1
- package/dist/cjs/components/portal/usePortal.js +7 -5
- package/dist/cjs/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/cjs/components/status/Spin/Spin.js +1 -1
- package/dist/cjs/components/types.js +1 -1
- package/dist/cjs/data/themes.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/provider.js +1 -1
- package/dist/cjs/providers/BreakpointsProvider.js +1 -1
- package/dist/cjs/providers/StylesProvider.js +1 -1
- package/dist/cjs/services/notification.js +1 -1
- package/dist/cjs/shared/form.js +1 -1
- package/dist/cjs/shared/index.js +1 -1
- package/dist/cjs/stories/FormFieldArgs.js +1 -1
- package/dist/cjs/stories/components/ConfirmDeletionDialogForm.js +1 -1
- package/dist/cjs/stories/components/DialogFormApp.js +2 -2
- package/dist/cjs/stories/components/StyledButton.js +3 -3
- package/dist/cjs/stories/lists/baseProps.js +1 -1
- package/dist/cjs/styled/index.js +1 -1
- package/dist/cjs/styled/styled.js +12 -11
- package/dist/cjs/styles/align.js +1 -1
- package/dist/cjs/styles/border.js +1 -1
- package/dist/cjs/styles/boxShadow.combinator.js +1 -1
- package/dist/cjs/styles/color.js +1 -1
- package/dist/cjs/styles/dimension.js +1 -1
- package/dist/cjs/styles/display.js +1 -1
- package/dist/cjs/styles/fill.js +1 -1
- package/dist/cjs/styles/flow.js +1 -1
- package/dist/cjs/styles/font.js +1 -1
- package/dist/cjs/styles/fontStyle.js +1 -1
- package/dist/cjs/styles/gap.js +1 -1
- package/dist/cjs/styles/groupRadius.js +1 -1
- package/dist/cjs/styles/height.js +1 -1
- package/dist/cjs/styles/index.js +1 -1
- package/dist/cjs/styles/justify.js +1 -1
- package/dist/cjs/styles/list.js +1 -1
- package/dist/cjs/styles/margin.js +1 -1
- package/dist/cjs/styles/marginBlock.js +1 -1
- package/dist/cjs/styles/marginInline.js +1 -1
- package/dist/cjs/styles/outline.js +1 -1
- package/dist/cjs/styles/padding.js +1 -1
- package/dist/cjs/styles/paddingBlock.js +1 -1
- package/dist/cjs/styles/paddingInline.js +1 -1
- package/dist/cjs/styles/predefined.js +1 -1
- package/dist/cjs/styles/preset.js +1 -1
- package/dist/cjs/styles/radius.js +1 -1
- package/dist/cjs/styles/reset.js +1 -1
- package/dist/cjs/styles/shadow.js +1 -1
- package/dist/cjs/styles/styledScrollbar.js +1 -1
- package/dist/cjs/styles/transition.js +1 -1
- package/dist/cjs/styles/types.js +1 -1
- package/dist/cjs/styles/width.js +1 -1
- package/dist/cjs/test/setup.js +1 -1
- package/dist/cjs/tokens.js +1 -1
- package/dist/cjs/utils/ResizeSensor.js +1 -1
- package/dist/cjs/utils/colors.js +1 -1
- package/dist/cjs/utils/dotize.js +1 -1
- package/dist/cjs/utils/escape-string.js +1 -1
- package/dist/cjs/utils/filterBaseProps.js +2 -2
- package/dist/cjs/utils/index.js +1 -1
- package/dist/cjs/utils/interactions.js +1 -1
- package/dist/cjs/utils/mergeStyles.js +3 -3
- package/dist/cjs/utils/modules.js +1 -1
- package/dist/cjs/utils/promise.js +1 -1
- package/dist/cjs/utils/react/Slots.js +1 -1
- package/dist/cjs/utils/react/chain.js +1 -1
- package/dist/cjs/utils/react/index.js +1 -1
- package/dist/cjs/utils/react/isTextOnly.js +1 -1
- package/dist/cjs/utils/react/mapProps.js +1 -1
- package/dist/cjs/utils/react/mergeProps.js +3 -3
- package/dist/cjs/utils/react/modAttrs.js +1 -1
- package/dist/cjs/utils/react/nullableValue.js +1 -1
- package/dist/cjs/utils/react/useCombinedRefs.js +1 -1
- package/dist/cjs/utils/react/useId.js +1 -1
- package/dist/cjs/utils/react/useLayoutEffect.js +1 -1
- package/dist/cjs/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/cjs/utils/renderStyles.js +1 -1
- package/dist/cjs/utils/responsive.js +1 -1
- package/dist/cjs/utils/string.js +1 -1
- package/dist/cjs/utils/styles.js +1 -1
- package/dist/cjs/utils/transitions.js +1 -1
- package/dist/cjs/utils/tree.js +1 -1
- package/dist/cjs/utils/warnings.js +1 -1
- package/dist/es/components/Base.js +2 -2
- package/dist/es/components/Block.js +1 -1
- package/dist/es/components/GlobalStyles.js +1 -1
- package/dist/es/components/GridProvider.js +3 -2
- package/dist/es/components/HiddenInput.js +1 -1
- package/dist/es/components/OpenTrasition.js +1 -1
- package/dist/es/components/Root.js +2 -2
- package/dist/es/components/actions/Action.js +2 -2
- package/dist/es/components/actions/Button/Button.js +1 -1
- package/dist/es/components/actions/Button/Submit.js +1 -1
- package/dist/es/components/actions/Button/index.js +1 -1
- package/dist/es/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/es/components/actions/index.js +1 -1
- package/dist/es/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/es/components/content/Avatar/Avatar.js +1 -1
- package/dist/es/components/content/Badge/Badge.js +1 -1
- package/dist/es/components/content/Card/Card.js +1 -1
- package/dist/es/components/content/Content.js +1 -1
- package/dist/es/components/content/Divider.js +1 -1
- package/dist/es/components/content/Footer.js +1 -1
- package/dist/es/components/content/Header.js +1 -1
- package/dist/es/components/content/Paragraph.js +1 -1
- package/dist/es/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/es/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/es/components/content/Result/Result.js +1 -1
- package/dist/es/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/es/components/content/Tag/Tag.js +1 -1
- package/dist/es/components/content/Text.js +1 -1
- package/dist/es/components/content/Title.js +1 -1
- package/dist/es/components/forms/Checkbox/Checkbox.js +1 -1
- package/dist/es/components/forms/Checkbox/CheckboxGroup.js +1 -1
- package/dist/es/components/forms/Checkbox/context.js +1 -1
- package/dist/es/components/forms/FieldWrapper.js +1 -1
- package/dist/es/components/forms/FileInput/FileInput.js +7 -6
- package/dist/es/components/forms/Form/Field.js +5 -5
- package/dist/es/components/forms/Form/Form.js +8 -8
- package/dist/es/components/forms/Form/index.js +1 -1
- package/dist/es/components/forms/Form/useForm.js +1 -1
- package/dist/es/components/forms/Form/validation.js +2 -2
- package/dist/es/components/forms/Label.js +1 -1
- package/dist/es/components/forms/NumberInput/NumberInput.js +1 -1
- package/dist/es/components/forms/NumberInput/StepButton.js +2 -2
- package/dist/es/components/forms/PasswordInput/PasswordInput.js +2 -2
- package/dist/es/components/forms/RadioGroup/Radio.js +1 -1
- package/dist/es/components/forms/RadioGroup/RadioGroup.js +1 -1
- package/dist/es/components/forms/RadioGroup/context.js +1 -1
- package/dist/es/components/forms/SearchInput/SearchInput.js +5 -5
- package/dist/es/components/forms/Switch/Switch.js +1 -1
- package/dist/es/components/forms/TextArea/TextArea.js +1 -1
- package/dist/es/components/forms/TextInput/TextInput.js +1 -1
- package/dist/es/components/forms/TextInput/TextInputBase.js +4 -4
- package/dist/es/components/forms/index.js +1 -1
- package/dist/es/components/layout/Flex.js +1 -1
- package/dist/es/components/layout/Flow.js +1 -1
- package/dist/es/components/layout/Grid.js +1 -1
- package/dist/es/components/layout/Prefix.js +2 -2
- package/dist/es/components/layout/Space.js +1 -1
- package/dist/es/components/layout/Suffix.js +1 -1
- package/dist/es/components/navigation/LegacyTabs/LegacyTabs.js +4 -4
- package/dist/es/components/navigation/Link/Link.js +2 -2
- package/dist/es/components/organisms/Alert/Alert.js +1 -1
- package/dist/es/components/organisms/CopySnippet/CopySnippet.js +2 -2
- package/dist/es/components/organisms/DirectoryTree/DirectoryTree.js +2 -2
- package/dist/es/components/organisms/FileTabs/FileTabs.js +1 -1
- package/dist/es/components/organisms/Modal/Modal.js +2 -2
- package/dist/es/components/organisms/SearchResults/SearchResults.js +2 -2
- package/dist/es/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/es/components/organisms/TopBar/TopBar.js +1 -1
- package/dist/es/components/other/Base64Upload/Base64Upload.js +4 -4
- package/dist/es/components/other/CloudLogo/CloudLogo.js +1 -1
- package/dist/es/components/overlays/AlertDialog/AlertDialog.js +13 -5
- package/dist/es/components/overlays/AlertDialog/AlertDialogApiProvider.js +7 -6
- package/dist/es/components/overlays/AlertDialog/AlertDialogZone.js +2 -2
- package/dist/es/components/overlays/AlertDialog/index.js +1 -1
- package/dist/es/components/overlays/AlertDialog/types.js +1 -1
- package/dist/es/components/overlays/Dialog/Dialog.js +2 -2
- package/dist/es/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/es/components/overlays/Dialog/DialogForm.js +5 -5
- package/dist/es/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/es/components/overlays/Dialog/context.js +1 -1
- package/dist/es/components/overlays/Dialog/index.js +1 -1
- package/dist/es/components/overlays/Modal/Modal.js +1 -1
- package/dist/es/components/overlays/Modal/OpenTransition.js +1 -1
- package/dist/es/components/overlays/Modal/Overlay.js +9 -9
- package/dist/es/components/overlays/Modal/Popover.js +1 -1
- package/dist/es/components/overlays/Modal/Tray.js +1 -1
- package/dist/es/components/overlays/Modal/Underlay.js +1 -1
- package/dist/es/components/overlays/Modal/index.js +1 -1
- package/dist/es/components/overlays/Notification/Notification.js +1 -1
- package/dist/es/components/overlays/OverlayWrapper.js +1 -1
- package/dist/es/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/es/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/es/components/overlays/Tooltip/TooltipTrigger.js +3 -2
- package/dist/es/components/overlays/Tooltip/context.js +1 -1
- package/dist/es/components/pickers/ComboBox/ComboBox.js +3 -2
- package/dist/es/components/pickers/Select/Select.js +3 -2
- package/dist/es/components/portal/Portal.js +1 -1
- package/dist/es/components/portal/PortalProvider.js +1 -1
- package/dist/es/components/portal/index.js +1 -1
- package/dist/es/components/portal/storybook/templates/basic.js +1 -1
- package/dist/es/components/portal/storybook/templates/index.js +1 -1
- package/dist/es/components/portal/types.js +1 -1
- package/dist/es/components/portal/usePortal.js +7 -5
- package/dist/es/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/es/components/status/Spin/Spin.js +1 -1
- package/dist/es/components/types.js +1 -1
- package/dist/es/data/themes.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/provider.js +1 -1
- package/dist/es/providers/BreakpointsProvider.js +1 -1
- package/dist/es/providers/StylesProvider.js +1 -1
- package/dist/es/services/notification.js +1 -1
- package/dist/es/shared/form.js +1 -1
- package/dist/es/shared/index.js +1 -1
- package/dist/es/stories/FormFieldArgs.js +1 -1
- package/dist/es/stories/components/ConfirmDeletionDialogForm.js +1 -1
- package/dist/es/stories/components/DialogFormApp.js +2 -2
- package/dist/es/stories/components/StyledButton.js +2 -2
- package/dist/es/stories/lists/baseProps.js +1 -1
- package/dist/es/styled/index.js +1 -1
- package/dist/es/styled/styled.js +12 -11
- package/dist/es/styles/align.js +1 -1
- package/dist/es/styles/border.js +1 -1
- package/dist/es/styles/boxShadow.combinator.js +1 -1
- package/dist/es/styles/color.js +1 -1
- package/dist/es/styles/dimension.js +1 -1
- package/dist/es/styles/display.js +1 -1
- package/dist/es/styles/fill.js +1 -1
- package/dist/es/styles/flow.js +1 -1
- package/dist/es/styles/font.js +1 -1
- package/dist/es/styles/fontStyle.js +1 -1
- package/dist/es/styles/gap.js +1 -1
- package/dist/es/styles/groupRadius.js +1 -1
- package/dist/es/styles/height.js +1 -1
- package/dist/es/styles/index.js +1 -1
- package/dist/es/styles/justify.js +1 -1
- package/dist/es/styles/list.js +1 -1
- package/dist/es/styles/margin.js +1 -1
- package/dist/es/styles/marginBlock.js +1 -1
- package/dist/es/styles/marginInline.js +1 -1
- package/dist/es/styles/outline.js +1 -1
- package/dist/es/styles/padding.js +1 -1
- package/dist/es/styles/paddingBlock.js +1 -1
- package/dist/es/styles/paddingInline.js +1 -1
- package/dist/es/styles/predefined.js +1 -1
- package/dist/es/styles/preset.js +1 -1
- package/dist/es/styles/radius.js +1 -1
- package/dist/es/styles/reset.js +1 -1
- package/dist/es/styles/shadow.js +1 -1
- package/dist/es/styles/styledScrollbar.js +1 -1
- package/dist/es/styles/transition.js +1 -1
- package/dist/es/styles/types.js +1 -1
- package/dist/es/styles/width.js +1 -1
- package/dist/es/test/setup.js +1 -1
- package/dist/es/tokens.js +1 -1
- package/dist/es/utils/ResizeSensor.js +1 -1
- package/dist/es/utils/colors.js +1 -1
- package/dist/es/utils/dotize.js +1 -1
- package/dist/es/utils/escape-string.js +1 -1
- package/dist/es/utils/filterBaseProps.js +2 -2
- package/dist/es/utils/index.js +1 -1
- package/dist/es/utils/interactions.js +1 -1
- package/dist/es/utils/mergeStyles.js +3 -3
- package/dist/es/utils/modules.js +1 -1
- package/dist/es/utils/promise.js +1 -1
- package/dist/es/utils/react/Slots.js +1 -1
- package/dist/es/utils/react/chain.js +1 -1
- package/dist/es/utils/react/index.js +1 -1
- package/dist/es/utils/react/isTextOnly.js +1 -1
- package/dist/es/utils/react/mapProps.js +1 -1
- package/dist/es/utils/react/mergeProps.js +3 -3
- package/dist/es/utils/react/modAttrs.js +1 -1
- package/dist/es/utils/react/nullableValue.js +1 -1
- package/dist/es/utils/react/useCombinedRefs.js +1 -1
- package/dist/es/utils/react/useId.js +1 -1
- package/dist/es/utils/react/useLayoutEffect.js +1 -1
- package/dist/es/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/es/utils/renderStyles.js +1 -1
- package/dist/es/utils/responsive.js +1 -1
- package/dist/es/utils/string.js +1 -1
- package/dist/es/utils/styles.js +1 -1
- package/dist/es/utils/transitions.js +1 -1
- package/dist/es/utils/tree.js +1 -1
- package/dist/es/utils/warnings.js +1 -1
- package/dist/package.json +3 -2
- package/dist/types/components/navigation/LegacyTabs/LegacyTabs.d.ts +1 -1
- package/dist/types/components/navigation/Link/Link.d.ts +1 -1
- package/dist/types/components/other/CloudLogo/CloudLogo.d.ts +1 -1
- package/dist/types/components/overlays/AlertDialog/AlertDialog.d.ts +3 -3
- package/dist/types/components/overlays/Dialog/DialogForm.d.ts +1 -1
- package/dist/types/utils/react/mapProps.d.ts +1 -1
- package/package.json +3 -3
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
|
-
import { Button } from '../../actions
|
9
|
+
import { Button } from '../../actions';
|
10
10
|
import { CaretDownOutlined, CaretUpOutlined } from '@ant-design/icons';
|
11
11
|
const STEP_BUTTON_STYLES = {
|
12
12
|
padding: '0 .5x',
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -10,7 +10,7 @@ import { forwardRef, useCallback, useRef, useState } from 'react';
|
|
10
10
|
import { TextInputBase, } from '../TextInput/TextInputBase';
|
11
11
|
import { useProviderProps } from '../../../provider';
|
12
12
|
import { useTextField } from '@react-aria/textfield';
|
13
|
-
import { Button } from '../../actions
|
13
|
+
import { Button } from '../../actions';
|
14
14
|
import { EyeInvisibleOutlined, EyeOutlined } from '@ant-design/icons';
|
15
15
|
import { castNullableStringValue, } from '../../../utils/react/nullableValue';
|
16
16
|
function PasswordInput(props, ref) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -13,7 +13,7 @@ import { useSearchField } from '@react-aria/searchfield';
|
|
13
13
|
import { useCombinedRefs } from '../../../utils/react';
|
14
14
|
import { TextInputBase, } from '../TextInput/TextInputBase';
|
15
15
|
import { useProviderProps } from '../../../provider';
|
16
|
-
import { Button } from '../../actions
|
16
|
+
import { Button } from '../../actions';
|
17
17
|
import { ariaToCubeButtonProps } from '../../../utils/react/mapProps';
|
18
18
|
import { castNullableStringValue, } from '../../../utils/react/nullableValue';
|
19
19
|
export const SearchInput = forwardRef((props, ref) => {
|
@@ -31,9 +31,9 @@ export const SearchInput = forwardRef((props, ref) => {
|
|
31
31
|
}, [combinedRef, value]);
|
32
32
|
let state = useSearchFieldState(props);
|
33
33
|
let { inputProps, clearButtonProps } = useSearchField(props, state, inputRef);
|
34
|
-
return (_jsx(TextInputBase, { inputProps: inputProps, ref: ref, inputRef: inputRef, inputStyles: { paddingRight: '4x' }, type: "search", prefix: _jsx(SearchOutlined, {}, void 0), suffixPosition: "after", suffix: isClearable
|
35
|
-
|
36
|
-
|
34
|
+
return (_jsx(TextInputBase, { inputProps: inputProps, ref: ref, inputRef: inputRef, inputStyles: { paddingRight: '4x' }, type: "search", prefix: _jsx(SearchOutlined, {}, void 0), suffixPosition: "after", suffix: isClearable &&
|
35
|
+
state.value !== '' &&
|
36
|
+
!props.isReadOnly && (_jsx(Button, { type: "clear", ...ariaToCubeButtonProps(clearButtonProps), color: {
|
37
37
|
'': '#dark.50',
|
38
38
|
'hovered | pressed': '#purple-text',
|
39
39
|
}, radius: "right (1r - 1bw)", padding: ".5x 1x", placeSelf: "stretch", icon: _jsx(CloseOutlined, {}, void 0) }, void 0)), ...props }, void 0));
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -104,12 +104,12 @@ function TextInputBase(props, ref) {
|
|
104
104
|
useImperativeHandle(ref, () => ({
|
105
105
|
...createFocusableRef(domRef, inputRef),
|
106
106
|
select() {
|
107
|
-
if (inputRef
|
107
|
+
if (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) {
|
108
108
|
inputRef.current.select();
|
109
109
|
}
|
110
110
|
},
|
111
111
|
getInputElement() {
|
112
|
-
return inputRef
|
112
|
+
return inputRef === null || inputRef === void 0 ? void 0 : inputRef.current;
|
113
113
|
},
|
114
114
|
}));
|
115
115
|
let isInvalid = validationState === 'invalid';
|
@@ -118,7 +118,7 @@ function TextInputBase(props, ref) {
|
|
118
118
|
suffix =
|
119
119
|
typeof suffix === 'string' ? (_jsx(Block, { padding: "1x right", children: suffix }, void 0)) : (suffix);
|
120
120
|
// Fix safari bug: https://github.com/philipwalton/flexbugs/issues/270
|
121
|
-
if (!inputProps
|
121
|
+
if (!(inputProps === null || inputProps === void 0 ? void 0 : inputProps.placeholder)) {
|
122
122
|
if (!inputProps) {
|
123
123
|
inputProps = {};
|
124
124
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -30,7 +30,7 @@ export const Prefix = forwardRef((allProps, outerRef) => {
|
|
30
30
|
const styles = extractStyles(props, CONTAINER_STYLES, DEFAULT_STYLES);
|
31
31
|
const ref = useCombinedRefs(outerRef);
|
32
32
|
useEffect(() => {
|
33
|
-
if (ref
|
33
|
+
if ((ref === null || ref === void 0 ? void 0 : ref.current) && onWidthChange) {
|
34
34
|
onWidthChange(ref.current.offsetWidth);
|
35
35
|
}
|
36
36
|
}, [children, ref, onWidthChange]);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -10,7 +10,7 @@ import { createContext, useContext, useEffect, useLayoutEffect, useRef, useState
|
|
10
10
|
import { Block } from '../../Block';
|
11
11
|
import { Space } from '../../layout/Space';
|
12
12
|
import { Flex } from '../../layout/Flex';
|
13
|
-
import { Button } from '../../actions
|
13
|
+
import { Button } from '../../actions';
|
14
14
|
const LegacyTabsContext = createContext({
|
15
15
|
addTab() { },
|
16
16
|
removeTab() { },
|
@@ -135,8 +135,8 @@ export function LegacyTabs({ defaultActiveKey, activeKey: activeKeyProp, onTabCl
|
|
135
135
|
if (!el)
|
136
136
|
return;
|
137
137
|
setLeftFade(!!el.scrollLeft);
|
138
|
-
setRightFade(el.scrollWidth !== el.offsetWidth
|
139
|
-
|
138
|
+
setRightFade(el.scrollWidth !== el.offsetWidth &&
|
139
|
+
!!(el.scrollWidth - el.offsetWidth - el.scrollLeft));
|
140
140
|
}
|
141
141
|
useLayoutEffect(updateScroll, [tabs]);
|
142
142
|
function scrollCurrentIntoView() {
|
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
9
|
import { forwardRef } from 'react';
|
10
|
-
import { Button } from '../../actions
|
10
|
+
import { Button } from '../../actions';
|
11
11
|
export const Link = forwardRef((props, ref) => {
|
12
12
|
return _jsx(Button, { type: "link", ...props, ref: ref }, void 0);
|
13
13
|
});
|
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
9
9
|
import copy from 'clipboard-copy';
|
10
|
-
import { Button } from '../../actions
|
10
|
+
import { Button } from '../../actions';
|
11
11
|
import { Card } from '../../content/Card/Card';
|
12
12
|
import { Grid } from '../../layout/Grid';
|
13
13
|
import { styled } from '../../../styled';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -10,7 +10,7 @@ import { useEffect, useState } from 'react';
|
|
10
10
|
import { CaretDownOutlined, CaretUpOutlined, FileOutlined, FolderOpenFilled, FolderFilled, } from '@ant-design/icons';
|
11
11
|
import { Flex } from '../../layout/Flex';
|
12
12
|
import { Action } from '../../actions/Action';
|
13
|
-
import { Button } from '../../actions
|
13
|
+
import { Button } from '../../actions';
|
14
14
|
import { Space } from '../../layout/Space';
|
15
15
|
import { Block } from '../../Block';
|
16
16
|
const IMAGES = {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -14,7 +14,7 @@ import { Card } from '../../content/Card/Card';
|
|
14
14
|
import { Flow } from '../../layout/Flow';
|
15
15
|
import { Flex } from '../../layout/Flex';
|
16
16
|
import { Block } from '../../Block';
|
17
|
-
import { Button } from '../../actions
|
17
|
+
import { Button } from '../../actions';
|
18
18
|
import { Space } from '../../layout/Space';
|
19
19
|
import { Title } from '../../content/Title';
|
20
20
|
import styled from 'styled-components';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -10,7 +10,7 @@ import { useEffect, useState, Fragment } from 'react';
|
|
10
10
|
import { CaretDownOutlined, CaretUpOutlined, FileOutlined, } from '@ant-design/icons';
|
11
11
|
import { Flex } from '../../layout/Flex';
|
12
12
|
import { Action } from '../../actions/Action';
|
13
|
-
import { Button } from '../../actions
|
13
|
+
import { Button } from '../../actions';
|
14
14
|
import { Space } from '../../layout/Space';
|
15
15
|
import { Block } from '../../Block';
|
16
16
|
import { Paragraph } from '../../content/Paragraph';
|
@@ -1,13 +1,13 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
9
9
|
import { forwardRef, useState } from 'react';
|
10
|
-
import { Button } from '../../actions
|
10
|
+
import { Button } from '../../actions';
|
11
11
|
import { Block } from '../../Block';
|
12
12
|
import { Text } from '../../content/Text';
|
13
13
|
import styled from 'styled-components';
|
@@ -56,8 +56,8 @@ export const Base64Upload = styled(forwardRef((allProps, ref) => {
|
|
56
56
|
console.error(e);
|
57
57
|
return;
|
58
58
|
}
|
59
|
-
onInput
|
60
|
-
|
59
|
+
onInput &&
|
60
|
+
onInput({
|
61
61
|
encoded: base64text,
|
62
62
|
raw: JSON.parse(text),
|
63
63
|
});
|
@@ -1,14 +1,15 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
9
9
|
import { chain } from '@react-aria/utils';
|
10
|
-
import { Button } from '../../actions
|
10
|
+
import { Button } from '../../actions';
|
11
11
|
import { Content } from '../../content/Content';
|
12
|
+
import { Paragraph } from '../../content/Paragraph';
|
12
13
|
import { Dialog } from '../Dialog/Dialog';
|
13
14
|
import { DialogContext } from '../Dialog/context';
|
14
15
|
import { Title } from '../../content/Title';
|
@@ -27,9 +28,10 @@ const DEFAULT_CANCEL_PROPS = {
|
|
27
28
|
* AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
|
28
29
|
*/
|
29
30
|
function AlertDialog(props, ref) {
|
30
|
-
|
31
|
+
var _a;
|
32
|
+
const { onClose = () => { } } = (_a = useContext(DialogContext)) !== null && _a !== void 0 ? _a : {};
|
31
33
|
const { danger, actions, title, styles, noActions, content, ...otherProps } = props;
|
32
|
-
let { confirm: confirmProps, secondary: secondaryProps, cancel: cancelProps, } = actions
|
34
|
+
let { confirm: confirmProps, secondary: secondaryProps, cancel: cancelProps, } = actions !== null && actions !== void 0 ? actions : {};
|
33
35
|
// the confirm button is present by default
|
34
36
|
confirmProps =
|
35
37
|
confirmProps !== false
|
@@ -45,7 +47,13 @@ function AlertDialog(props, ref) {
|
|
45
47
|
...(typeof cancelProps === 'object' ? cancelProps : null),
|
46
48
|
}
|
47
49
|
: undefined;
|
48
|
-
return (_jsxs(Dialog, { role: "alertdialog", ref: ref, isDismissable: false, ...otherProps, children: [title ? (_jsx(Header, { children: _jsx(Title, { children: title }, void 0) }, void 0)) : null, _jsx(Content, { children: content }, void 0), !noActions ? (_jsx(Footer, { children: _jsxs(ButtonGroup, { align: "end", children: [_jsx(Button, { theme: danger ? 'danger' : undefined, autoFocus: true, ...confirmProps, onPress: (e) =>
|
50
|
+
return (_jsxs(Dialog, { role: "alertdialog", ref: ref, isDismissable: false, ...otherProps, children: [title ? (_jsx(Header, { children: _jsx(Title, { children: title }, void 0) }, void 0)) : null, content ? (_jsx(Content, { children: typeof content === 'string' ? (_jsx(Paragraph, { children: content }, void 0)) : (content) }, void 0)) : null, !noActions ? (_jsx(Footer, { children: _jsxs(ButtonGroup, { align: "end", children: [_jsx(Button, { theme: danger ? 'danger' : undefined, autoFocus: true, ...confirmProps, onPress: (e) => {
|
51
|
+
var _a, _b;
|
52
|
+
return chain((_b = (_a = confirmProps) === null || _a === void 0 ? void 0 : _a.onPress) === null || _b === void 0 ? void 0 : _b.call(_a, e), onClose('confirm'));
|
53
|
+
} }, void 0), secondaryProps && (_jsx(Button, { ...secondaryProps, onPress: (e) => { var _a; return chain((_a = secondaryProps === null || secondaryProps === void 0 ? void 0 : secondaryProps.onPress) === null || _a === void 0 ? void 0 : _a.call(secondaryProps, e), onClose('secondary')); } }, void 0)), cancelProps && (_jsx(Button, { ...cancelProps, onPress: (e) => {
|
54
|
+
var _a, _b;
|
55
|
+
return chain((_b = (_a = cancelProps) === null || _a === void 0 ? void 0 : _a.onPress) === null || _b === void 0 ? void 0 : _b.call(_a, e), onClose('cancel'));
|
56
|
+
} }, void 0))] }, void 0) }, void 0)) : null] }, void 0));
|
49
57
|
}
|
50
58
|
/**
|
51
59
|
* AlertDialogs are a specific type of Dialog. They display important information that users need to acknowledge.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -25,21 +25,22 @@ export function AlertDialogApiProvider(props) {
|
|
25
25
|
meta: { id: currentId, isClosed: false, isVisible: true },
|
26
26
|
};
|
27
27
|
const close = () => {
|
28
|
+
var _a;
|
28
29
|
if (currentDialog.meta.isClosed)
|
29
30
|
return;
|
30
31
|
currentDialog.meta.isClosed = true;
|
31
|
-
params.cancelToken
|
32
|
-
setOpenedDialog((currentState) => currentState
|
32
|
+
(_a = params.cancelToken) === null || _a === void 0 ? void 0 : _a.removeEventListener('abort', close);
|
33
|
+
setOpenedDialog((currentState) => (currentState === null || currentState === void 0 ? void 0 : currentState.meta.id) !== currentId
|
33
34
|
? currentState
|
34
35
|
: {
|
35
36
|
props: currentState.props,
|
36
37
|
meta: { ...currentState.meta, isVisible: false },
|
37
38
|
});
|
38
|
-
setTimeout(() => setOpenedDialog((currentState) => currentState
|
39
|
+
setTimeout(() => setOpenedDialog((currentState) => (currentState === null || currentState === void 0 ? void 0 : currentState.meta.id) !== currentId ? currentState : null), 300);
|
39
40
|
};
|
40
|
-
if (cancelToken
|
41
|
+
if (cancelToken === null || cancelToken === void 0 ? void 0 : cancelToken.aborted)
|
41
42
|
return new Promise(() => { });
|
42
|
-
cancelToken
|
43
|
+
cancelToken === null || cancelToken === void 0 ? void 0 : cancelToken.addEventListener('abort', close, { once: true });
|
43
44
|
currentDialog.meta.promise = new Promise((resolve, reject) => {
|
44
45
|
currentDialog.meta.resolve = (status) => {
|
45
46
|
close();
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -33,7 +33,7 @@ export function AlertDialogZone(props) {
|
|
33
33
|
return {
|
34
34
|
...action,
|
35
35
|
onPress: (e) => {
|
36
|
-
onPress
|
36
|
+
onPress === null || onPress === void 0 ? void 0 : onPress(e);
|
37
37
|
resolve(status);
|
38
38
|
},
|
39
39
|
};
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
-
import { Button } from '../../actions
|
9
|
+
import { Button } from '../../actions';
|
10
10
|
import { useDOMRef } from '@react-spectrum/utils';
|
11
11
|
import { DialogContext } from './context';
|
12
12
|
import { DismissButton } from '@react-aria/overlays';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* @license MIT
|
3
3
|
* author: Cube Dev Team
|
4
|
-
* @cube-dev/ui-kit v0.9.
|
4
|
+
* @cube-dev/ui-kit v0.9.3
|
5
5
|
* Released under the MIT license.
|
6
6
|
*/
|
7
7
|
|
@@ -14,7 +14,7 @@ import { Form } from '../../forms/Form/Form';
|
|
14
14
|
import { useForm } from '../../forms/Form/useForm';
|
15
15
|
import { Content } from '../../content/Content';
|
16
16
|
import { Submit } from '../../actions/Button/Submit';
|
17
|
-
import { Button } from '../../actions
|
17
|
+
import { Button } from '../../actions';
|
18
18
|
import { ButtonGroup } from '../../actions/ButtonGroup/ButtonGroup';
|
19
19
|
import { Header } from '../../content/Header';
|
20
20
|
const DialogForm = (props, ref) => {
|
@@ -30,12 +30,12 @@ const DialogForm = (props, ref) => {
|
|
30
30
|
},
|
31
31
|
}));
|
32
32
|
function onLocalDismiss() {
|
33
|
-
onDismiss
|
34
|
-
form
|
33
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
34
|
+
form === null || form === void 0 ? void 0 : form.resetFields();
|
35
35
|
setOpen(false);
|
36
36
|
}
|
37
37
|
return (_jsx(DialogContainer, { onDismiss: onLocalDismiss, isDismissable: true, children: open && (_jsxs(Dialog, { qa: `${qa || ''}Dialog`, size: size, closeIcon: closeIcon, children: [_jsx(Header, { children: _jsx(Title, { children: title }, void 0) }, void 0), _jsx(Content, { children: _jsxs(Form, { qa: qa || 'DialogForm', form: form, name: name, onSubmit: async (data) => {
|
38
|
-
await onSubmit
|
38
|
+
await (onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(data));
|
39
39
|
setOpen(false);
|
40
40
|
if (!preserve && form) {
|
41
41
|
form.resetFields();
|