@1money/component-ui 0.0.49 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Accordion/Accordion.d.ts +4 -0
- package/es/components/Accordion/Accordion.js +98 -0
- package/es/components/Accordion/constants.d.ts +16 -0
- package/es/components/Accordion/constants.js +17 -0
- package/es/components/Accordion/index.d.ts +4 -0
- package/es/components/Accordion/index.js +5 -0
- package/es/components/Accordion/interface.d.ts +29 -0
- package/es/components/Accordion/interface.js +2 -0
- package/es/components/Accordion/style/Accordion.css +94 -0
- package/es/components/Accordion/style/css.js +2 -0
- package/es/components/Accordion/style/index.d.ts +1 -0
- package/es/components/Accordion/style/index.js +2 -0
- package/es/components/Alert/Alert.d.ts +6 -0
- package/es/components/Alert/Alert.js +111 -0
- package/es/components/Alert/index.d.ts +4 -0
- package/es/components/Alert/index.js +5 -0
- package/es/components/Alert/interface.d.ts +42 -0
- package/es/components/Alert/interface.js +6 -0
- package/es/components/Alert/style/Alert.css +101 -0
- package/es/components/Alert/style/css.js +3 -0
- package/es/components/Alert/style/index.d.ts +2 -0
- package/es/components/Alert/style/index.js +3 -0
- package/es/components/Button/Button.d.ts +4 -0
- package/es/components/Button/Button.js +149 -0
- package/es/components/Button/constants.d.ts +70 -0
- package/es/components/Button/constants.js +90 -0
- package/es/components/Button/index.d.ts +5 -0
- package/es/components/Button/index.js +6 -0
- package/es/components/Button/interface.d.ts +23 -0
- package/es/components/Button/interface.js +2 -0
- package/es/components/Button/style/Button.css +178 -0
- package/es/components/Button/style/css.js +2 -0
- package/es/components/Button/style/index.d.ts +1 -0
- package/es/components/Button/style/index.js +2 -0
- package/es/components/Calendar/Calendar.d.ts +7 -0
- package/es/components/Calendar/Calendar.js +127 -0
- package/es/components/Calendar/index.d.ts +4 -0
- package/es/components/Calendar/index.js +5 -0
- package/es/components/Calendar/interface.d.ts +29 -0
- package/es/components/Calendar/interface.js +2 -0
- package/es/components/Calendar/style/Calendar.css +400 -0
- package/es/components/Calendar/style/css.js +2 -0
- package/es/components/Calendar/style/index.d.ts +1 -0
- package/es/components/Calendar/style/index.js +2 -0
- package/es/components/Carousel/Carousel.d.ts +6 -0
- package/es/components/Carousel/Carousel.js +46 -0
- package/es/components/Carousel/index.d.ts +4 -0
- package/es/components/Carousel/index.js +5 -0
- package/es/components/Carousel/interface.d.ts +15 -0
- package/es/components/Carousel/interface.js +2 -0
- package/es/components/Carousel/style/Carousel.css +57 -0
- package/es/components/Carousel/style/css.js +2 -0
- package/es/components/Carousel/style/index.d.ts +1 -0
- package/es/components/Carousel/style/index.js +2 -0
- package/es/components/Cell/Cell.d.ts +5 -0
- package/es/components/Cell/Cell.js +57 -0
- package/es/components/Cell/index.d.ts +4 -0
- package/es/components/Cell/index.js +5 -0
- package/es/components/Cell/interface.d.ts +12 -0
- package/es/components/Cell/interface.js +2 -0
- package/es/components/Cell/style/Cell.css +80 -0
- package/es/components/Cell/style/css.js +2 -0
- package/es/components/Cell/style/index.d.ts +1 -0
- package/es/components/Cell/style/index.js +2 -0
- package/es/components/Checkbox/BaseCheckbox.d.ts +6 -0
- package/es/components/Checkbox/BaseCheckbox.js +84 -0
- package/es/components/Checkbox/Checkbox.d.ts +6 -0
- package/es/components/Checkbox/Checkbox.js +122 -0
- package/es/components/Checkbox/CheckboxGroup.d.ts +5 -0
- package/es/components/Checkbox/CheckboxGroup.js +141 -0
- package/es/components/Checkbox/CheckboxGroupContext.d.ts +14 -0
- package/es/components/Checkbox/CheckboxGroupContext.js +3 -0
- package/es/components/Checkbox/constants.d.ts +17 -0
- package/es/components/Checkbox/constants.js +17 -0
- package/es/components/Checkbox/index.d.ts +10 -0
- package/es/components/Checkbox/index.js +11 -0
- package/es/components/Checkbox/interface.d.ts +77 -0
- package/es/components/Checkbox/interface.js +2 -0
- package/es/components/Checkbox/style/Checkbox.css +191 -0
- package/es/components/Checkbox/style/css.js +2 -0
- package/es/components/Checkbox/style/index.d.ts +1 -0
- package/es/components/Checkbox/style/index.js +2 -0
- package/es/components/CoachMark/CoachMark.d.ts +4 -0
- package/es/components/CoachMark/CoachMark.js +142 -0
- package/es/components/CoachMark/index.d.ts +4 -0
- package/es/components/CoachMark/index.js +5 -0
- package/es/components/CoachMark/interface.d.ts +47 -0
- package/es/components/CoachMark/interface.js +2 -0
- package/es/components/CoachMark/style/CoachMark.css +156 -0
- package/es/components/CoachMark/style/css.js +5 -0
- package/es/components/CoachMark/style/index.d.ts +4 -0
- package/es/components/CoachMark/style/index.js +5 -0
- package/es/components/Copy/Clipboard.d.ts +4 -0
- package/es/components/Copy/Clipboard.js +44 -0
- package/es/components/Copy/Copy.d.ts +4 -0
- package/es/components/Copy/Copy.js +81 -0
- package/es/components/Copy/index.d.ts +5 -0
- package/es/components/Copy/index.js +6 -0
- package/es/components/Copy/interface.d.ts +38 -0
- package/es/components/Copy/interface.js +2 -0
- package/es/components/Copy/style/Clipboard.css +45 -0
- package/es/components/Copy/style/Copy.css +48 -0
- package/es/components/Copy/style/css.js +3 -0
- package/es/components/Copy/style/index.d.ts +2 -0
- package/es/components/Copy/style/index.js +3 -0
- package/es/components/Dialog/Dialog.d.ts +4 -0
- package/es/components/Dialog/Dialog.js +361 -0
- package/es/components/Dialog/constants.d.ts +57 -0
- package/es/components/Dialog/constants.js +54 -0
- package/es/components/Dialog/index.d.ts +4 -0
- package/es/components/Dialog/index.js +5 -0
- package/es/components/Dialog/interface.d.ts +36 -0
- package/es/components/Dialog/interface.js +2 -0
- package/es/components/Dialog/style/Dialog.css +204 -0
- package/es/components/Dialog/style/css.js +2 -0
- package/es/components/Dialog/style/index.d.ts +1 -0
- package/es/components/Dialog/style/index.js +2 -0
- package/es/components/Divider/Divider.d.ts +4 -0
- package/es/components/Divider/Divider.js +50 -0
- package/es/components/Divider/constants.d.ts +36 -0
- package/es/components/Divider/constants.js +41 -0
- package/es/components/Divider/index.d.ts +4 -0
- package/es/components/Divider/index.js +5 -0
- package/es/components/Divider/interface.d.ts +19 -0
- package/es/components/Divider/interface.js +2 -0
- package/es/components/Divider/style/Divider.css +128 -0
- package/es/components/Divider/style/css.js +2 -0
- package/es/components/Divider/style/index.d.ts +1 -0
- package/es/components/Divider/style/index.js +2 -0
- package/es/components/Drawer/Drawer.d.ts +4 -0
- package/es/components/Drawer/Drawer.js +155 -0
- package/es/components/Drawer/constants.d.ts +18 -0
- package/es/components/Drawer/constants.js +19 -0
- package/es/components/Drawer/hooks/index.d.ts +4 -0
- package/es/components/Drawer/hooks/index.js +5 -0
- package/es/components/Drawer/hooks/useBodyScrollLock.d.ts +1 -0
- package/es/components/Drawer/hooks/useBodyScrollLock.js +29 -0
- package/es/components/Drawer/hooks/useDialogFocus.d.ts +2 -0
- package/es/components/Drawer/hooks/useDialogFocus.js +22 -0
- package/es/components/Drawer/hooks/useDrawerTransition.d.ts +4 -0
- package/es/components/Drawer/hooks/useDrawerTransition.js +57 -0
- package/es/components/Drawer/hooks/useEscapeClose.d.ts +1 -0
- package/es/components/Drawer/hooks/useEscapeClose.js +16 -0
- package/es/components/Drawer/index.d.ts +3 -0
- package/es/components/Drawer/index.js +4 -0
- package/es/components/Drawer/interface.d.ts +79 -0
- package/es/components/Drawer/interface.js +2 -0
- package/es/components/Drawer/style/Drawer.css +145 -0
- package/es/components/Drawer/style/css.js +2 -0
- package/es/components/Drawer/style/index.d.ts +1 -0
- package/es/components/Drawer/style/index.js +2 -0
- package/es/components/Dropdown/Dropdown.d.ts +5 -0
- package/es/components/Dropdown/Dropdown.js +32 -0
- package/es/components/Dropdown/index.d.ts +3 -0
- package/es/components/Dropdown/index.js +4 -0
- package/es/components/Dropdown/interface.d.ts +8 -0
- package/es/components/Dropdown/interface.js +2 -0
- package/es/components/Dropdown/style/Dropdown.css +48 -0
- package/es/components/Dropdown/style/css.js +3 -0
- package/es/components/Dropdown/style/index.d.ts +2 -0
- package/es/components/Dropdown/style/index.js +3 -0
- package/es/components/Empty/Empty.d.ts +6 -0
- package/es/components/Empty/Empty.js +68 -0
- package/es/components/Empty/index.d.ts +4 -0
- package/es/components/Empty/index.js +5 -0
- package/es/components/Empty/interface.d.ts +11 -0
- package/es/components/Empty/interface.js +2 -0
- package/es/components/Empty/style/Empty.css +58 -0
- package/es/components/Empty/style/css.js +3 -0
- package/es/components/Empty/style/index.d.ts +2 -0
- package/es/components/Empty/style/index.js +3 -0
- package/es/components/Flex/Flex.d.ts +5 -0
- package/es/components/Flex/Flex.js +50 -0
- package/es/components/Flex/constants.d.ts +41 -0
- package/es/components/Flex/constants.js +45 -0
- package/es/components/Flex/index.d.ts +5 -0
- package/es/components/Flex/index.js +6 -0
- package/es/components/Flex/interface.d.ts +13 -0
- package/es/components/Flex/interface.js +2 -0
- package/es/components/Flex/style/Flex.css +71 -0
- package/es/components/Flex/style/css.js +2 -0
- package/es/components/Flex/style/index.d.ts +1 -0
- package/es/components/Flex/style/index.js +2 -0
- package/es/components/Grid/Col.d.ts +4 -0
- package/es/components/Grid/Col.js +83 -0
- package/es/components/Grid/Grid.d.ts +10 -0
- package/es/components/Grid/Grid.js +15 -0
- package/es/components/Grid/Row.d.ts +4 -0
- package/es/components/Grid/Row.js +41 -0
- package/es/components/Grid/constants.d.ts +48 -0
- package/es/components/Grid/constants.js +71 -0
- package/es/components/Grid/helper.d.ts +15 -0
- package/es/components/Grid/helper.js +87 -0
- package/es/components/Grid/index.d.ts +7 -0
- package/es/components/Grid/index.js +8 -0
- package/es/components/Grid/interface.d.ts +38 -0
- package/es/components/Grid/interface.js +2 -0
- package/es/components/Grid/style/Grid.css +952 -0
- package/es/components/Grid/style/css.js +2 -0
- package/es/components/Grid/style/index.d.ts +1 -0
- package/es/components/Grid/style/index.js +2 -0
- package/es/components/Icons/Icons.d.ts +194 -0
- package/es/components/Icons/Icons.js +194 -0
- package/es/components/Icons/Illustrations.d.ts +19 -0
- package/es/components/Icons/Illustrations.js +936 -0
- package/es/components/Icons/Logo.d.ts +36 -0
- package/es/components/Icons/Logo.js +209 -0
- package/es/components/Icons/SVGs.d.ts +267 -0
- package/es/components/Icons/SVGs.js +1928 -0
- package/es/components/Icons/Wrapper.d.ts +6 -0
- package/es/components/Icons/Wrapper.js +100 -0
- package/es/components/Icons/index.d.ts +4 -0
- package/es/components/Icons/index.js +4 -0
- package/es/components/Icons/interface.d.ts +30 -0
- package/es/components/Icons/interface.js +2 -0
- package/es/components/Icons/style/Icons.css +81 -0
- package/es/components/Icons/style/css.js +2 -0
- package/es/components/Icons/style/index.d.ts +1 -0
- package/es/components/Icons/style/index.js +2 -0
- package/es/components/Input/Amount/Amount.d.ts +6 -0
- package/es/components/Input/Amount/Amount.js +199 -0
- package/es/components/Input/Amount/helper.d.ts +35 -0
- package/es/components/Input/Amount/helper.js +95 -0
- package/es/components/Input/Amount/index.d.ts +3 -0
- package/es/components/Input/Amount/index.js +4 -0
- package/es/components/Input/Amount/style/Amount.css +103 -0
- package/es/components/Input/Amount/style/css.js +2 -0
- package/es/components/Input/Amount/style/index.d.ts +1 -0
- package/es/components/Input/Amount/style/index.js +2 -0
- package/es/components/Input/FieldShell/FieldShell.css +76 -0
- package/es/components/Input/FieldShell/FieldShell.d.ts +23 -0
- package/es/components/Input/FieldShell/FieldShell.js +99 -0
- package/es/components/Input/FieldShell/index.d.ts +3 -0
- package/es/components/Input/FieldShell/index.js +3 -0
- package/es/components/Input/Input/Input.css +124 -0
- package/es/components/Input/Input/Input.d.ts +3 -0
- package/es/components/Input/Input/Input.js +170 -0
- package/es/components/Input/Input/index.d.ts +2 -0
- package/es/components/Input/Input/index.js +3 -0
- package/es/components/Input/Mask/Mask.d.ts +5 -0
- package/es/components/Input/Mask/Mask.js +344 -0
- package/es/components/Input/Mask/index.d.ts +2 -0
- package/es/components/Input/Mask/index.js +3 -0
- package/es/components/Input/OTP/OTP.css +79 -0
- package/es/components/Input/OTP/OTP.d.ts +5 -0
- package/es/components/Input/OTP/OTP.js +157 -0
- package/es/components/Input/OTP/index.d.ts +2 -0
- package/es/components/Input/OTP/index.js +3 -0
- package/es/components/Input/Password/Password.d.ts +5 -0
- package/es/components/Input/Password/Password.js +128 -0
- package/es/components/Input/Password/index.d.ts +2 -0
- package/es/components/Input/Password/index.js +3 -0
- package/es/components/Input/Search/Search.d.ts +5 -0
- package/es/components/Input/Search/Search.js +151 -0
- package/es/components/Input/Search/index.d.ts +2 -0
- package/es/components/Input/Search/index.js +3 -0
- package/es/components/Input/TextArea/TextArea.css +93 -0
- package/es/components/Input/TextArea/TextArea.d.ts +5 -0
- package/es/components/Input/TextArea/TextArea.js +100 -0
- package/es/components/Input/TextArea/index.d.ts +2 -0
- package/es/components/Input/TextArea/index.js +3 -0
- package/es/components/Input/Trade/Trade.css +192 -0
- package/es/components/Input/Trade/Trade.d.ts +5 -0
- package/es/components/Input/Trade/Trade.js +133 -0
- package/es/components/Input/Trade/index.d.ts +2 -0
- package/es/components/Input/Trade/index.js +3 -0
- package/es/components/Input/constants.d.ts +15 -0
- package/es/components/Input/constants.js +16 -0
- package/es/components/Input/index.d.ts +4 -0
- package/es/components/Input/index.js +5 -0
- package/es/components/Input/interface.d.ts +156 -0
- package/es/components/Input/interface.js +2 -0
- package/es/components/Input/style/css.js +7 -0
- package/es/components/Input/style/index.d.ts +6 -0
- package/es/components/Input/style/index.js +7 -0
- package/es/components/Input/useAmountInput.d.ts +35 -0
- package/es/components/Input/useAmountInput.js +207 -0
- package/es/components/Input/useSyncRef.d.ts +2 -0
- package/es/components/Input/useSyncRef.js +13 -0
- package/es/components/Link/Link.d.ts +4 -0
- package/es/components/Link/Link.js +57 -0
- package/es/components/Link/constants.d.ts +5 -0
- package/es/components/Link/constants.js +6 -0
- package/es/components/Link/index.d.ts +5 -0
- package/es/components/Link/index.js +6 -0
- package/es/components/Link/interface.d.ts +13 -0
- package/es/components/Link/interface.js +2 -0
- package/es/components/Link/style/Link.css +70 -0
- package/es/components/Link/style/css.js +2 -0
- package/es/components/Link/style/index.d.ts +1 -0
- package/es/components/Link/style/index.js +2 -0
- package/es/components/Navigation/Nav.d.ts +5 -0
- package/es/components/Navigation/Nav.js +200 -0
- package/es/components/Navigation/Navigation.d.ts +5 -0
- package/es/components/Navigation/Navigation.js +299 -0
- package/es/components/Navigation/NavigationLogo.d.ts +8 -0
- package/es/components/Navigation/NavigationLogo.js +46 -0
- package/es/components/Navigation/NavigationStepper.d.ts +5 -0
- package/es/components/Navigation/NavigationStepper.js +72 -0
- package/es/components/Navigation/index.d.ts +6 -0
- package/es/components/Navigation/index.js +7 -0
- package/es/components/Navigation/interface.d.ts +134 -0
- package/es/components/Navigation/interface.js +2 -0
- package/es/components/Navigation/style/Nav.css +158 -0
- package/es/components/Navigation/style/Navigation.css +373 -0
- package/es/components/Navigation/style/NavigationStepper.css +97 -0
- package/es/components/Navigation/style/css.js +4 -0
- package/es/components/Navigation/style/index.d.ts +3 -0
- package/es/components/Navigation/style/index.js +4 -0
- package/es/components/Notification/Notification.d.ts +6 -0
- package/es/components/Notification/Notification.js +108 -0
- package/es/components/Notification/NotificationStatic.d.ts +4 -0
- package/es/components/Notification/NotificationStatic.js +501 -0
- package/es/components/Notification/constants.d.ts +12 -0
- package/es/components/Notification/constants.js +16 -0
- package/es/components/Notification/index.d.ts +5 -0
- package/es/components/Notification/index.js +5 -0
- package/es/components/Notification/interface.d.ts +70 -0
- package/es/components/Notification/interface.js +7 -0
- package/es/components/Notification/style/Notification.css +170 -0
- package/es/components/Notification/style/css.js +2 -0
- package/es/components/Notification/style/index.d.ts +1 -0
- package/es/components/Notification/style/index.js +2 -0
- package/es/components/Pagination/Pagination.d.ts +5 -0
- package/es/components/Pagination/Pagination.js +136 -0
- package/es/components/Pagination/constants.d.ts +52 -0
- package/es/components/Pagination/constants.js +55 -0
- package/es/components/Pagination/index.d.ts +6 -0
- package/es/components/Pagination/index.js +7 -0
- package/es/components/Pagination/interface.d.ts +53 -0
- package/es/components/Pagination/interface.js +2 -0
- package/es/components/Pagination/style/Pagination.css +89 -0
- package/es/components/Pagination/style/css.js +2 -0
- package/es/components/Pagination/style/index.d.ts +1 -0
- package/es/components/Pagination/style/index.js +2 -0
- package/es/components/Pagination/usePagination.d.ts +3 -0
- package/es/components/Pagination/usePagination.js +145 -0
- package/es/components/Popconfirm/Popconfirm.d.ts +6 -0
- package/es/components/Popconfirm/Popconfirm.js +144 -0
- package/es/components/Popconfirm/constants.d.ts +74 -0
- package/es/components/Popconfirm/constants.js +73 -0
- package/es/components/Popconfirm/index.d.ts +4 -0
- package/es/components/Popconfirm/index.js +5 -0
- package/es/components/Popconfirm/interface.d.ts +40 -0
- package/es/components/Popconfirm/interface.js +2 -0
- package/es/components/Popconfirm/style/Popconfirm.css +137 -0
- package/es/components/Popconfirm/style/css.js +5 -0
- package/es/components/Popconfirm/style/index.d.ts +4 -0
- package/es/components/Popconfirm/style/index.js +5 -0
- package/es/components/Portal/Portal.d.ts +3 -0
- package/es/components/Portal/Portal.js +54 -0
- package/es/components/Portal/index.d.ts +4 -0
- package/es/components/Portal/index.js +5 -0
- package/es/components/Portal/interface.d.ts +7 -0
- package/es/components/Portal/interface.js +2 -0
- package/es/components/ProForm/ProForm.d.ts +4 -0
- package/es/components/ProForm/ProForm.js +302 -0
- package/es/components/ProForm/ProFormDependency.d.ts +4 -0
- package/es/components/ProForm/ProFormDependency.js +160 -0
- package/es/components/ProForm/ProFormGroup.d.ts +3 -0
- package/es/components/ProForm/ProFormGroup.js +78 -0
- package/es/components/ProForm/ProFormItem.d.ts +4 -0
- package/es/components/ProForm/ProFormItem.js +220 -0
- package/es/components/ProForm/ProFormList.d.ts +3 -0
- package/es/components/ProForm/ProFormList.js +252 -0
- package/es/components/ProForm/Submitter.d.ts +6 -0
- package/es/components/ProForm/Submitter.js +106 -0
- package/es/components/ProForm/constants.d.ts +18 -0
- package/es/components/ProForm/constants.js +23 -0
- package/es/components/ProForm/context.d.ts +13 -0
- package/es/components/ProForm/context.js +29 -0
- package/es/components/ProForm/core/constants.d.ts +21 -0
- package/es/components/ProForm/core/constants.js +20 -0
- package/es/components/ProForm/core/hooks/useForm.d.ts +3 -0
- package/es/components/ProForm/core/hooks/useForm.js +677 -0
- package/es/components/ProForm/core/hooks/useFormCore.d.ts +3 -0
- package/es/components/ProForm/core/hooks/useFormCore.js +347 -0
- package/es/components/ProForm/core/index.d.ts +6 -0
- package/es/components/ProForm/core/index.js +6 -0
- package/es/components/ProForm/core/interface.d.ts +153 -0
- package/es/components/ProForm/core/interface.js +2 -0
- package/es/components/ProForm/core/useFormItem.d.ts +21 -0
- package/es/components/ProForm/core/useFormItem.js +173 -0
- package/es/components/ProForm/fields/ProFormCheckbox.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormCheckbox.js +11 -0
- package/es/components/ProForm/fields/ProFormCheckboxGroup.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormCheckboxGroup.js +12 -0
- package/es/components/ProForm/fields/ProFormDatePicker.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormDatePicker.js +23 -0
- package/es/components/ProForm/fields/ProFormFieldSet.d.ts +4 -0
- package/es/components/ProForm/fields/ProFormFieldSet.js +65 -0
- package/es/components/ProForm/fields/ProFormPassword.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormPassword.js +11 -0
- package/es/components/ProForm/fields/ProFormRadioGroup.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormRadioGroup.js +10 -0
- package/es/components/ProForm/fields/ProFormSelect.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormSelect.js +40 -0
- package/es/components/ProForm/fields/ProFormSlider.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormSlider.js +10 -0
- package/es/components/ProForm/fields/ProFormSwitch.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormSwitch.js +11 -0
- package/es/components/ProForm/fields/ProFormText.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormText.js +10 -0
- package/es/components/ProForm/fields/ProFormTextArea.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormTextArea.js +10 -0
- package/es/components/ProForm/fields/ProFormUpload.d.ts +3 -0
- package/es/components/ProForm/fields/ProFormUpload.js +25 -0
- package/es/components/ProForm/fields/createProFormField.d.ts +4 -0
- package/es/components/ProForm/fields/createProFormField.js +156 -0
- package/es/components/ProForm/fields/index.d.ts +13 -0
- package/es/components/ProForm/fields/index.js +14 -0
- package/es/components/ProForm/hooks/useFieldRequest.d.ts +7 -0
- package/es/components/ProForm/hooks/useFieldRequest.js +90 -0
- package/es/components/ProForm/index.d.ts +38 -0
- package/es/components/ProForm/index.js +55 -0
- package/es/components/ProForm/interface.d.ts +284 -0
- package/es/components/ProForm/interface.js +2 -0
- package/es/components/ProForm/layouts/DialogForm.d.ts +3 -0
- package/es/components/ProForm/layouts/DialogForm.js +74 -0
- package/es/components/ProForm/layouts/DrawerForm.d.ts +3 -0
- package/es/components/ProForm/layouts/DrawerForm.js +73 -0
- package/es/components/ProForm/layouts/QueryFilter.d.ts +4 -0
- package/es/components/ProForm/layouts/QueryFilter.js +158 -0
- package/es/components/ProForm/layouts/index.d.ts +4 -0
- package/es/components/ProForm/layouts/index.js +5 -0
- package/es/components/ProForm/layouts/useOverlayForm.d.ts +17 -0
- package/es/components/ProForm/layouts/useOverlayForm.js +107 -0
- package/es/components/ProForm/style/ProForm.css +168 -0
- package/es/components/ProForm/style/css.js +2 -0
- package/es/components/ProForm/style/index.d.ts +1 -0
- package/es/components/ProForm/style/index.js +2 -0
- package/es/components/ProForm/utils.d.ts +22 -0
- package/es/components/ProForm/utils.js +211 -0
- package/es/components/Progress/Progress.d.ts +6 -0
- package/es/components/Progress/Progress.js +94 -0
- package/es/components/Progress/constants.d.ts +26 -0
- package/es/components/Progress/constants.js +32 -0
- package/es/components/Progress/index.d.ts +5 -0
- package/es/components/Progress/index.js +6 -0
- package/es/components/Progress/interface.d.ts +26 -0
- package/es/components/Progress/interface.js +2 -0
- package/es/components/Progress/style/Progress.css +103 -0
- package/es/components/Progress/style/css.js +2 -0
- package/es/components/Progress/style/index.d.ts +1 -0
- package/es/components/Progress/style/index.js +2 -0
- package/es/components/Radio/BaseRadio.d.ts +16 -0
- package/es/components/Radio/BaseRadio.js +58 -0
- package/es/components/Radio/Radio.d.ts +6 -0
- package/es/components/Radio/Radio.js +182 -0
- package/es/components/Radio/RadioGroup.d.ts +5 -0
- package/es/components/Radio/RadioGroup.js +102 -0
- package/es/components/Radio/RadioGroupContext.d.ts +22 -0
- package/es/components/Radio/RadioGroupContext.js +7 -0
- package/es/components/Radio/constants.d.ts +39 -0
- package/es/components/Radio/constants.js +57 -0
- package/es/components/Radio/index.d.ts +5 -0
- package/es/components/Radio/index.js +6 -0
- package/es/components/Radio/interface.d.ts +122 -0
- package/es/components/Radio/interface.js +2 -0
- package/es/components/Radio/style/Radio.css +362 -0
- package/es/components/Radio/style/css.js +3 -0
- package/es/components/Radio/style/index.d.ts +2 -0
- package/es/components/Radio/style/index.js +3 -0
- package/es/components/ResizeObserver/Collection.d.ts +19 -0
- package/es/components/ResizeObserver/Collection.js +41 -0
- package/es/components/ResizeObserver/ResizeObserver.d.ts +7 -0
- package/es/components/ResizeObserver/ResizeObserver.js +31 -0
- package/es/components/ResizeObserver/SingleObserver/index.d.ts +7 -0
- package/es/components/ResizeObserver/SingleObserver/index.js +38 -0
- package/es/components/ResizeObserver/index.d.ts +7 -0
- package/es/components/ResizeObserver/index.js +6 -0
- package/es/components/ResizeObserver/interface.d.ts +16 -0
- package/es/components/ResizeObserver/interface.js +2 -0
- package/es/components/ResizeObserver/useResizeObserver.d.ts +2 -0
- package/es/components/ResizeObserver/useResizeObserver.js +70 -0
- package/es/components/ResizeObserver/utils/observerUtil.d.ts +7 -0
- package/es/components/ResizeObserver/utils/observerUtil.js +39 -0
- package/es/components/ResizeObserver/utils/reactUtil.d.ts +19 -0
- package/es/components/ResizeObserver/utils/reactUtil.js +78 -0
- package/es/components/Segment/Segment.d.ts +6 -0
- package/es/components/Segment/Segment.js +100 -0
- package/es/components/Segment/index.d.ts +4 -0
- package/es/components/Segment/index.js +5 -0
- package/es/components/Segment/interface.d.ts +23 -0
- package/es/components/Segment/interface.js +2 -0
- package/es/components/Segment/style/Segment.css +79 -0
- package/es/components/Segment/style/css.js +2 -0
- package/es/components/Segment/style/index.d.ts +1 -0
- package/es/components/Segment/style/index.js +2 -0
- package/es/components/Select/Select.d.ts +6 -0
- package/es/components/Select/Select.js +563 -0
- package/es/components/Select/SelectCustom.d.ts +6 -0
- package/es/components/Select/SelectCustom.js +232 -0
- package/es/components/Select/SelectFieldShell.d.ts +24 -0
- package/es/components/Select/SelectFieldShell.js +81 -0
- package/es/components/Select/SelectOptionContent.d.ts +17 -0
- package/es/components/Select/SelectOptionContent.js +45 -0
- package/es/components/Select/SelectSearchControl.d.ts +15 -0
- package/es/components/Select/SelectSearchControl.js +43 -0
- package/es/components/Select/SelectValueContent.d.ts +18 -0
- package/es/components/Select/SelectValueContent.js +99 -0
- package/es/components/Select/constants.d.ts +45 -0
- package/es/components/Select/constants.js +43 -0
- package/es/components/Select/index.d.ts +7 -0
- package/es/components/Select/index.js +10 -0
- package/es/components/Select/interface.d.ts +229 -0
- package/es/components/Select/interface.js +4 -0
- package/es/components/Select/style/Select.css +468 -0
- package/es/components/Select/style/css.js +4 -0
- package/es/components/Select/style/index.d.ts +3 -0
- package/es/components/Select/style/index.js +4 -0
- package/es/components/Select/useSelectShell.d.ts +34 -0
- package/es/components/Select/useSelectShell.js +106 -0
- package/es/components/Select/utils.d.ts +21 -0
- package/es/components/Select/utils.js +140 -0
- package/es/components/Skeleton/Skeleton.d.ts +6 -0
- package/es/components/Skeleton/Skeleton.js +49 -0
- package/es/components/Skeleton/index.d.ts +4 -0
- package/es/components/Skeleton/index.js +5 -0
- package/es/components/Skeleton/interface.d.ts +19 -0
- package/es/components/Skeleton/interface.js +2 -0
- package/es/components/Skeleton/style/Skeleton.css +54 -0
- package/es/components/Skeleton/style/css.js +2 -0
- package/es/components/Skeleton/style/index.d.ts +1 -0
- package/es/components/Skeleton/style/index.js +2 -0
- package/es/components/Slider/Slider.d.ts +6 -0
- package/es/components/Slider/Slider.js +117 -0
- package/es/components/Slider/index.d.ts +4 -0
- package/es/components/Slider/index.js +5 -0
- package/es/components/Slider/interface.d.ts +39 -0
- package/es/components/Slider/interface.js +2 -0
- package/es/components/Slider/style/Slider.css +161 -0
- package/es/components/Slider/style/css.js +2 -0
- package/es/components/Slider/style/index.d.ts +1 -0
- package/es/components/Slider/style/index.js +2 -0
- package/es/components/Space/Space.d.ts +5 -0
- package/es/components/Space/Space.js +78 -0
- package/es/components/Space/constants.d.ts +33 -0
- package/es/components/Space/constants.js +37 -0
- package/es/components/Space/index.d.ts +5 -0
- package/es/components/Space/index.js +6 -0
- package/es/components/Space/interface.d.ts +12 -0
- package/es/components/Space/interface.js +2 -0
- package/es/components/Space/style/Space.css +47 -0
- package/es/components/Space/style/css.js +2 -0
- package/es/components/Space/style/index.d.ts +1 -0
- package/es/components/Space/style/index.js +2 -0
- package/es/components/Spinner/Spinner.d.ts +6 -0
- package/es/components/Spinner/Spinner.js +219 -0
- package/es/components/Spinner/index.d.ts +4 -0
- package/es/components/Spinner/index.js +5 -0
- package/es/components/Spinner/interface.d.ts +18 -0
- package/es/components/Spinner/interface.js +2 -0
- package/es/components/Spinner/lottie-pure.json +1 -0
- package/es/components/Spinner/style/Spinner.css +99 -0
- package/es/components/Spinner/style/css.js +2 -0
- package/es/components/Spinner/style/index.d.ts +1 -0
- package/es/components/Spinner/style/index.js +2 -0
- package/es/components/Step/Step.d.ts +5 -0
- package/es/components/Step/Step.js +116 -0
- package/es/components/Step/constants.d.ts +59 -0
- package/es/components/Step/constants.js +65 -0
- package/es/components/Step/index.d.ts +4 -0
- package/es/components/Step/index.js +5 -0
- package/es/components/Step/interface.d.ts +22 -0
- package/es/components/Step/interface.js +2 -0
- package/es/components/Step/style/Step.css +107 -0
- package/es/components/Step/style/css.js +2 -0
- package/es/components/Step/style/index.d.ts +1 -0
- package/es/components/Step/style/index.js +2 -0
- package/es/components/Switch/Switch.d.ts +6 -0
- package/es/components/Switch/Switch.js +94 -0
- package/es/components/Switch/constants.d.ts +25 -0
- package/es/components/Switch/constants.js +27 -0
- package/es/components/Switch/index.d.ts +5 -0
- package/es/components/Switch/index.js +6 -0
- package/es/components/Switch/interface.d.ts +26 -0
- package/es/components/Switch/interface.js +2 -0
- package/es/components/Switch/style/Switch.css +102 -0
- package/es/components/Switch/style/css.js +3 -0
- package/es/components/Switch/style/index.d.ts +2 -0
- package/es/components/Switch/style/index.js +3 -0
- package/es/components/Table/Table.d.ts +10 -0
- package/es/components/Table/Table.js +41 -0
- package/es/components/Table/VirtualTable.d.ts +9 -0
- package/es/components/Table/VirtualTable.js +53 -0
- package/es/components/Table/constants.d.ts +4 -0
- package/es/components/Table/constants.js +5 -0
- package/es/components/Table/core/useTableColumns.d.ts +48 -0
- package/es/components/Table/core/useTableColumns.js +253 -0
- package/es/components/Table/core/useTableDataPipeline.d.ts +57 -0
- package/es/components/Table/core/useTableDataPipeline.js +428 -0
- package/es/components/Table/core/useTableExpand.d.ts +11 -0
- package/es/components/Table/core/useTableExpand.js +63 -0
- package/es/components/Table/core/useTableSelection.d.ts +15 -0
- package/es/components/Table/core/useTableSelection.js +144 -0
- package/es/components/Table/core/useTableSetup.d.ts +42 -0
- package/es/components/Table/core/useTableSetup.js +195 -0
- package/es/components/Table/features/ExpandTrigger.d.ts +4 -0
- package/es/components/Table/features/ExpandTrigger.js +32 -0
- package/es/components/Table/features/FilterTrigger.d.ts +9 -0
- package/es/components/Table/features/FilterTrigger.js +157 -0
- package/es/components/Table/features/SelectionColumn.d.ts +12 -0
- package/es/components/Table/features/SelectionColumn.js +54 -0
- package/es/components/Table/features/SortTrigger.d.ts +7 -0
- package/es/components/Table/features/SortTrigger.js +26 -0
- package/es/components/Table/index.d.ts +6 -0
- package/es/components/Table/index.js +7 -0
- package/es/components/Table/interface.d.ts +262 -0
- package/es/components/Table/interface.js +2 -0
- package/es/components/Table/internal/index.d.ts +3 -0
- package/es/components/Table/internal/index.js +3 -0
- package/es/components/Table/internal/kernel/Body/BodyRow.d.ts +37 -0
- package/es/components/Table/internal/kernel/Body/BodyRow.js +174 -0
- package/es/components/Table/internal/kernel/Body/ExpandedRow.d.ts +15 -0
- package/es/components/Table/internal/kernel/Body/ExpandedRow.js +56 -0
- package/es/components/Table/internal/kernel/Body/MeasureCell.d.ts +8 -0
- package/es/components/Table/internal/kernel/Body/MeasureCell.js +39 -0
- package/es/components/Table/internal/kernel/Body/MeasureRow.d.ts +10 -0
- package/es/components/Table/internal/kernel/Body/MeasureRow.js +53 -0
- package/es/components/Table/internal/kernel/Body/index.d.ts +9 -0
- package/es/components/Table/internal/kernel/Body/index.js +124 -0
- package/es/components/Table/internal/kernel/Cell/index.d.ts +39 -0
- package/es/components/Table/internal/kernel/Cell/index.js +179 -0
- package/es/components/Table/internal/kernel/Cell/useCellRender.d.ts +3 -0
- package/es/components/Table/internal/kernel/Cell/useCellRender.js +63 -0
- package/es/components/Table/internal/kernel/Cell/useHoverState.d.ts +2 -0
- package/es/components/Table/internal/kernel/Cell/useHoverState.js +15 -0
- package/es/components/Table/internal/kernel/ColGroup.d.ts +8 -0
- package/es/components/Table/internal/kernel/ColGroup.js +56 -0
- package/es/components/Table/internal/kernel/FixedHolder/index.d.ts +27 -0
- package/es/components/Table/internal/kernel/FixedHolder/index.js +180 -0
- package/es/components/Table/internal/kernel/Footer/Cell.d.ts +11 -0
- package/es/components/Table/internal/kernel/Footer/Cell.js +50 -0
- package/es/components/Table/internal/kernel/Footer/Row.d.ts +8 -0
- package/es/components/Table/internal/kernel/Footer/Row.js +20 -0
- package/es/components/Table/internal/kernel/Footer/Summary.d.ts +14 -0
- package/es/components/Table/internal/kernel/Footer/Summary.js +13 -0
- package/es/components/Table/internal/kernel/Footer/SummaryContext.d.ts +11 -0
- package/es/components/Table/internal/kernel/Footer/SummaryContext.js +4 -0
- package/es/components/Table/internal/kernel/Footer/index.d.ts +16 -0
- package/es/components/Table/internal/kernel/Footer/index.js +36 -0
- package/es/components/Table/internal/kernel/Header/Header.d.ts +9 -0
- package/es/components/Table/internal/kernel/Header/Header.js +109 -0
- package/es/components/Table/internal/kernel/Header/HeaderRow.d.ts +18 -0
- package/es/components/Table/internal/kernel/Header/HeaderRow.js +60 -0
- package/es/components/Table/internal/kernel/Panel/index.d.ts +7 -0
- package/es/components/Table/internal/kernel/Panel/index.js +15 -0
- package/es/components/Table/internal/kernel/Table.d.ts +126 -0
- package/es/components/Table/internal/kernel/Table.js +686 -0
- package/es/components/Table/internal/kernel/VirtualTable/BodyGrid.d.ts +13 -0
- package/es/components/Table/internal/kernel/VirtualTable/BodyGrid.js +286 -0
- package/es/components/Table/internal/kernel/VirtualTable/BodyLine.d.ts +14 -0
- package/es/components/Table/internal/kernel/VirtualTable/BodyLine.js +113 -0
- package/es/components/Table/internal/kernel/VirtualTable/VirtualCell.d.ts +26 -0
- package/es/components/Table/internal/kernel/VirtualTable/VirtualCell.js +105 -0
- package/es/components/Table/internal/kernel/VirtualTable/context.d.ts +13 -0
- package/es/components/Table/internal/kernel/VirtualTable/context.js +5 -0
- package/es/components/Table/internal/kernel/VirtualTable/index.d.ts +17 -0
- package/es/components/Table/internal/kernel/VirtualTable/index.js +90 -0
- package/es/components/Table/internal/kernel/constant.d.ts +2 -0
- package/es/components/Table/internal/kernel/constant.js +4 -0
- package/es/components/Table/internal/kernel/context/PerfContext.d.ts +6 -0
- package/es/components/Table/internal/kernel/context/PerfContext.js +8 -0
- package/es/components/Table/internal/kernel/context/TableContext.d.ts +51 -0
- package/es/components/Table/internal/kernel/context/TableContext.js +10 -0
- package/es/components/Table/internal/kernel/hooks/useColumns/index.d.ts +31 -0
- package/es/components/Table/internal/kernel/hooks/useColumns/index.js +210 -0
- package/es/components/Table/internal/kernel/hooks/useColumns/useWidthColumns.d.ts +5 -0
- package/es/components/Table/internal/kernel/hooks/useColumns/useWidthColumns.js +69 -0
- package/es/components/Table/internal/kernel/hooks/useExpand.d.ts +10 -0
- package/es/components/Table/internal/kernel/hooks/useExpand.js +83 -0
- package/es/components/Table/internal/kernel/hooks/useFixedInfo.d.ts +2 -0
- package/es/components/Table/internal/kernel/hooks/useFixedInfo.js +18 -0
- package/es/components/Table/internal/kernel/hooks/useFlattenRecords.d.ts +19 -0
- package/es/components/Table/internal/kernel/hooks/useFlattenRecords.js +54 -0
- package/es/components/Table/internal/kernel/hooks/useFrame.d.ts +7 -0
- package/es/components/Table/internal/kernel/hooks/useFrame.js +63 -0
- package/es/components/Table/internal/kernel/hooks/useHover.d.ts +2 -0
- package/es/components/Table/internal/kernel/hooks/useHover.js +19 -0
- package/es/components/Table/internal/kernel/hooks/useRenderTimes.d.ts +5 -0
- package/es/components/Table/internal/kernel/hooks/useRenderTimes.js +41 -0
- package/es/components/Table/internal/kernel/hooks/useRowInfo.d.ts +11 -0
- package/es/components/Table/internal/kernel/hooks/useRowInfo.js +62 -0
- package/es/components/Table/internal/kernel/hooks/useSticky.d.ts +10 -0
- package/es/components/Table/internal/kernel/hooks/useSticky.js +33 -0
- package/es/components/Table/internal/kernel/hooks/useStickyOffsets.d.ts +6 -0
- package/es/components/Table/internal/kernel/hooks/useStickyOffsets.js +31 -0
- package/es/components/Table/internal/kernel/index.d.ts +12 -0
- package/es/components/Table/internal/kernel/index.js +11 -0
- package/es/components/Table/internal/kernel/interface.d.ts +202 -0
- package/es/components/Table/internal/kernel/interface.js +2 -0
- package/es/components/Table/internal/kernel/namePathType.d.ts +13 -0
- package/es/components/Table/internal/kernel/namePathType.js +3 -0
- package/es/components/Table/internal/kernel/selector-context/Immutable.d.ts +10 -0
- package/es/components/Table/internal/kernel/selector-context/Immutable.js +73 -0
- package/es/components/Table/internal/kernel/selector-context/context.d.ts +26 -0
- package/es/components/Table/internal/kernel/selector-context/context.js +83 -0
- package/es/components/Table/internal/kernel/selector-context/index.d.ts +7 -0
- package/es/components/Table/internal/kernel/selector-context/index.js +9 -0
- package/es/components/Table/internal/kernel/selector-context/isEqual.d.ts +5 -0
- package/es/components/Table/internal/kernel/selector-context/isEqual.js +48 -0
- package/es/components/Table/internal/kernel/stickyScrollBar.d.ts +12 -0
- package/es/components/Table/internal/kernel/stickyScrollBar.js +192 -0
- package/es/components/Table/internal/kernel/sugar/Column.d.ts +10 -0
- package/es/components/Table/internal/kernel/sugar/Column.js +11 -0
- package/es/components/Table/internal/kernel/sugar/ColumnGroup.d.ts +12 -0
- package/es/components/Table/internal/kernel/sugar/ColumnGroup.js +11 -0
- package/es/components/Table/internal/kernel/utils/dom/canUseDom.d.ts +1 -0
- package/es/components/Table/internal/kernel/utils/dom/canUseDom.js +4 -0
- package/es/components/Table/internal/kernel/utils/dom/isVisible.d.ts +2 -0
- package/es/components/Table/internal/kernel/utils/dom/isVisible.js +28 -0
- package/es/components/Table/internal/kernel/utils/expandUtil.d.ts +4 -0
- package/es/components/Table/internal/kernel/utils/expandUtil.js +47 -0
- package/es/components/Table/internal/kernel/utils/fixUtil.d.ts +21 -0
- package/es/components/Table/internal/kernel/utils/fixUtil.js +64 -0
- package/es/components/Table/internal/kernel/utils/get.d.ts +1 -0
- package/es/components/Table/internal/kernel/utils/get.js +11 -0
- package/es/components/Table/internal/kernel/utils/getScrollBarSize.d.ts +7 -0
- package/es/components/Table/internal/kernel/utils/getScrollBarSize.js +38 -0
- package/es/components/Table/internal/kernel/utils/legacyUtil.d.ts +5 -0
- package/es/components/Table/internal/kernel/utils/legacyUtil.js +31 -0
- package/es/components/Table/internal/kernel/utils/offsetUtil.d.ts +4 -0
- package/es/components/Table/internal/kernel/utils/offsetUtil.js +13 -0
- package/es/components/Table/internal/kernel/utils/pickAttrs.d.ts +6 -0
- package/es/components/Table/internal/kernel/utils/pickAttrs.js +33 -0
- package/es/components/Table/internal/kernel/utils/useMemo.d.ts +1 -0
- package/es/components/Table/internal/kernel/utils/useMemo.js +10 -0
- package/es/components/Table/internal/kernel/utils/valueUtil.d.ts +8 -0
- package/es/components/Table/internal/kernel/utils/valueUtil.js +30 -0
- package/es/components/Table/internal/kernel/utils/warning.d.ts +4 -0
- package/es/components/Table/internal/kernel/utils/warning.js +17 -0
- package/es/components/Table/renderers/BodyCell.d.ts +15 -0
- package/es/components/Table/renderers/BodyCell.js +40 -0
- package/es/components/Table/renderers/CellContent.d.ts +4 -0
- package/es/components/Table/renderers/CellContent.js +26 -0
- package/es/components/Table/renderers/EmptyState.d.ts +5 -0
- package/es/components/Table/renderers/EmptyState.js +22 -0
- package/es/components/Table/renderers/ExpandedRowContainer.d.ts +4 -0
- package/es/components/Table/renderers/ExpandedRowContainer.js +10 -0
- package/es/components/Table/renderers/HeaderCell.d.ts +11 -0
- package/es/components/Table/renderers/HeaderCell.js +32 -0
- package/es/components/Table/style/Table.css +370 -0
- package/es/components/Table/style/css.js +10 -0
- package/es/components/Table/style/index.d.ts +9 -0
- package/es/components/Table/style/index.js +10 -0
- package/es/components/Tabs/Tabs.d.ts +6 -0
- package/es/components/Tabs/Tabs.js +113 -0
- package/es/components/Tabs/index.d.ts +4 -0
- package/es/components/Tabs/index.js +5 -0
- package/es/components/Tabs/interface.d.ts +29 -0
- package/es/components/Tabs/interface.js +2 -0
- package/es/components/Tabs/style/Tabs.css +118 -0
- package/es/components/Tabs/style/css.js +2 -0
- package/es/components/Tabs/style/index.d.ts +1 -0
- package/es/components/Tabs/style/index.js +2 -0
- package/es/components/Tag/Tag.d.ts +6 -0
- package/es/components/Tag/Tag.js +80 -0
- package/es/components/Tag/constants.d.ts +18 -0
- package/es/components/Tag/constants.js +28 -0
- package/es/components/Tag/index.d.ts +5 -0
- package/es/components/Tag/index.js +6 -0
- package/es/components/Tag/interface.d.ts +15 -0
- package/es/components/Tag/interface.js +2 -0
- package/es/components/Tag/style/Tag.css +87 -0
- package/es/components/Tag/style/css.js +2 -0
- package/es/components/Tag/style/index.d.ts +1 -0
- package/es/components/Tag/style/index.js +2 -0
- package/es/components/Tooltip/Tooltip.d.ts +6 -0
- package/es/components/Tooltip/Tooltip.js +71 -0
- package/es/components/Tooltip/index.d.ts +4 -0
- package/es/components/Tooltip/index.js +5 -0
- package/es/components/Tooltip/interface.d.ts +22 -0
- package/es/components/Tooltip/interface.js +2 -0
- package/es/components/Tooltip/style/Tooltip.css +98 -0
- package/es/components/Tooltip/style/css.js +2 -0
- package/es/components/Tooltip/style/index.d.ts +1 -0
- package/es/components/Tooltip/style/index.js +2 -0
- package/es/components/Tour/Tour.d.ts +3 -0
- package/es/components/Tour/Tour.js +243 -0
- package/es/components/Tour/index.d.ts +4 -0
- package/es/components/Tour/index.js +5 -0
- package/es/components/Tour/interface.d.ts +46 -0
- package/es/components/Tour/interface.js +2 -0
- package/es/components/Trigger/Trigger.d.ts +5 -0
- package/es/components/Trigger/Trigger.js +193 -0
- package/es/components/Trigger/index.d.ts +3 -0
- package/es/components/Trigger/index.js +4 -0
- package/es/components/Trigger/interface.d.ts +77 -0
- package/es/components/Trigger/interface.js +2 -0
- package/es/components/Trigger/style/Trigger.css +35 -0
- package/es/components/Trigger/style/css.js +2 -0
- package/es/components/Trigger/style/index.d.ts +1 -0
- package/es/components/Trigger/style/index.js +2 -0
- package/es/components/Typography/Typography.d.ts +17 -0
- package/es/components/Typography/Typography.js +201 -0
- package/es/components/Typography/constants.d.ts +33 -0
- package/es/components/Typography/constants.js +9 -0
- package/es/components/Typography/index.d.ts +4 -0
- package/es/components/Typography/index.js +5 -0
- package/es/components/Typography/interface.d.ts +72 -0
- package/es/components/Typography/interface.js +22 -0
- package/es/components/Typography/render.d.ts +328 -0
- package/es/components/Typography/render.js +106 -0
- package/es/components/Typography/style/Typography.css +444 -0
- package/es/components/Typography/style/css.js +4 -0
- package/es/components/Typography/style/index.d.ts +3 -0
- package/es/components/Typography/style/index.js +4 -0
- package/es/components/Typography/useTypographyEnhancements.d.ts +43 -0
- package/es/components/Typography/useTypographyEnhancements.js +111 -0
- package/es/components/Typography/utils.d.ts +17 -0
- package/es/components/Typography/utils.js +88 -0
- package/es/components/Upload/Upload.d.ts +7 -0
- package/es/components/Upload/Upload.js +88 -0
- package/es/components/Upload/UploadFileBar.d.ts +6 -0
- package/es/components/Upload/UploadFileBar.js +69 -0
- package/es/components/Upload/index.d.ts +5 -0
- package/es/components/Upload/index.js +6 -0
- package/es/components/Upload/interface.d.ts +43 -0
- package/es/components/Upload/interface.js +2 -0
- package/es/components/Upload/style/Upload.css +55 -0
- package/es/components/Upload/style/UploadFileBar.css +88 -0
- package/es/components/Upload/style/css.js +3 -0
- package/es/components/Upload/style/index.d.ts +2 -0
- package/es/components/Upload/style/index.js +3 -0
- package/es/components/VirtualList/Filler.d.ts +21 -0
- package/es/components/VirtualList/Filler.js +56 -0
- package/es/components/VirtualList/Item.d.ts +6 -0
- package/es/components/VirtualList/Item.js +12 -0
- package/es/components/VirtualList/ScrollBar.d.ts +22 -0
- package/es/components/VirtualList/ScrollBar.js +236 -0
- package/es/components/VirtualList/VirtualList.d.ts +62 -0
- package/es/components/VirtualList/VirtualList.js +529 -0
- package/es/components/VirtualList/constants.d.ts +4 -0
- package/es/components/VirtualList/constants.js +5 -0
- package/es/components/VirtualList/hooks/useChildren.d.ts +2 -0
- package/es/components/VirtualList/hooks/useChildren.js +25 -0
- package/es/components/VirtualList/hooks/useDiffItem.d.ts +2 -0
- package/es/components/VirtualList/hooks/useDiffItem.js +16 -0
- package/es/components/VirtualList/hooks/useFrameWheel.d.ts +10 -0
- package/es/components/VirtualList/hooks/useFrameWheel.js +85 -0
- package/es/components/VirtualList/hooks/useGetSize.d.ts +7 -0
- package/es/components/VirtualList/hooks/useGetSize.js +47 -0
- package/es/components/VirtualList/hooks/useHeights.d.ts +8 -0
- package/es/components/VirtualList/hooks/useHeights.js +96 -0
- package/es/components/VirtualList/hooks/useMobileTouchMove.d.ts +2 -0
- package/es/components/VirtualList/hooks/useMobileTouchMove.js +85 -0
- package/es/components/VirtualList/hooks/useOriginScroll.d.ts +2 -0
- package/es/components/VirtualList/hooks/useOriginScroll.js +44 -0
- package/es/components/VirtualList/hooks/useScrollDrag.d.ts +3 -0
- package/es/components/VirtualList/hooks/useScrollDrag.js +76 -0
- package/es/components/VirtualList/hooks/useScrollTo.d.ts +18 -0
- package/es/components/VirtualList/hooks/useScrollTo.js +132 -0
- package/es/components/VirtualList/index.d.ts +9 -0
- package/es/components/VirtualList/index.js +5 -0
- package/es/components/VirtualList/interface.d.ts +26 -0
- package/es/components/VirtualList/interface.js +2 -0
- package/es/components/VirtualList/style/VirtualList.css +25 -0
- package/es/components/VirtualList/style/css.js +2 -0
- package/es/components/VirtualList/style/index.d.ts +1 -0
- package/es/components/VirtualList/style/index.js +2 -0
- package/es/components/VirtualList/utils/CacheMap.d.ts +16 -0
- package/es/components/VirtualList/utils/CacheMap.js +43 -0
- package/es/components/VirtualList/utils/algorithmUtil.d.ts +23 -0
- package/es/components/VirtualList/utils/algorithmUtil.js +77 -0
- package/es/components/VirtualList/utils/isFirefox.d.ts +2 -0
- package/es/components/VirtualList/utils/isFirefox.js +4 -0
- package/es/components/VirtualList/utils/raf.d.ts +9 -0
- package/es/components/VirtualList/utils/raf.js +47 -0
- package/es/components/VirtualList/utils/scrollbarUtil.d.ts +1 -0
- package/es/components/VirtualList/utils/scrollbarUtil.js +12 -0
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.js +2 -0
- package/es/hooks/useFloatingAnimation.d.ts +24 -0
- package/es/hooks/useFloatingAnimation.js +45 -0
- package/es/index.css +1 -0
- package/es/index.d.ts +92 -0
- package/es/index.js +47 -0
- package/es/stories/docs/ComponentDocsPage.js +234 -0
- package/es/stories/docs/componentDocMeta.js +94 -0
- package/es/stories/docs/storybook-docs.css +401 -0
- package/es/styles/index.css +5328 -0
- package/es/utils/classnames.d.ts +5 -0
- package/es/utils/classnames.js +18 -0
- package/es/utils/clipboard.d.ts +2 -0
- package/es/utils/clipboard.js +50 -0
- package/es/utils/ref.d.ts +4 -0
- package/es/utils/ref.js +32 -0
- package/es/utils/uuid.d.ts +2 -0
- package/es/utils/uuid.js +16 -0
- package/lib/components/Accordion/Accordion.d.ts +4 -0
- package/lib/components/Accordion/Accordion.js +108 -0
- package/lib/components/Accordion/constants.d.ts +16 -0
- package/lib/components/Accordion/constants.js +23 -0
- package/lib/components/Accordion/index.d.ts +4 -0
- package/lib/components/Accordion/index.js +33 -0
- package/lib/components/Accordion/interface.d.ts +29 -0
- package/lib/components/Accordion/interface.js +6 -0
- package/lib/components/Accordion/style/Accordion.css +94 -0
- package/lib/components/Accordion/style/css.js +4 -0
- package/lib/components/Accordion/style/index.d.ts +1 -0
- package/lib/components/Accordion/style/index.js +4 -0
- package/lib/components/Alert/Alert.d.ts +6 -0
- package/lib/components/Alert/Alert.js +120 -0
- package/lib/components/Alert/index.d.ts +4 -0
- package/lib/components/Alert/index.js +33 -0
- package/lib/components/Alert/interface.d.ts +42 -0
- package/lib/components/Alert/interface.js +12 -0
- package/lib/components/Alert/style/Alert.css +101 -0
- package/lib/components/Alert/style/css.js +5 -0
- package/lib/components/Alert/style/index.d.ts +2 -0
- package/lib/components/Alert/style/index.js +5 -0
- package/lib/components/Button/Button.d.ts +4 -0
- package/lib/components/Button/Button.js +159 -0
- package/lib/components/Button/constants.d.ts +70 -0
- package/lib/components/Button/constants.js +97 -0
- package/lib/components/Button/index.d.ts +5 -0
- package/lib/components/Button/index.js +45 -0
- package/lib/components/Button/interface.d.ts +23 -0
- package/lib/components/Button/interface.js +6 -0
- package/lib/components/Button/style/Button.css +178 -0
- package/lib/components/Button/style/css.js +4 -0
- package/lib/components/Button/style/index.d.ts +1 -0
- package/lib/components/Button/style/index.js +4 -0
- package/lib/components/Calendar/Calendar.d.ts +7 -0
- package/lib/components/Calendar/Calendar.js +137 -0
- package/lib/components/Calendar/index.d.ts +4 -0
- package/lib/components/Calendar/index.js +33 -0
- package/lib/components/Calendar/interface.d.ts +29 -0
- package/lib/components/Calendar/interface.js +6 -0
- package/lib/components/Calendar/style/Calendar.css +400 -0
- package/lib/components/Calendar/style/css.js +4 -0
- package/lib/components/Calendar/style/index.d.ts +1 -0
- package/lib/components/Calendar/style/index.js +4 -0
- package/lib/components/Carousel/Carousel.d.ts +6 -0
- package/lib/components/Carousel/Carousel.js +56 -0
- package/lib/components/Carousel/index.d.ts +4 -0
- package/lib/components/Carousel/index.js +33 -0
- package/lib/components/Carousel/interface.d.ts +15 -0
- package/lib/components/Carousel/interface.js +6 -0
- package/lib/components/Carousel/style/Carousel.css +57 -0
- package/lib/components/Carousel/style/css.js +4 -0
- package/lib/components/Carousel/style/index.d.ts +1 -0
- package/lib/components/Carousel/style/index.js +4 -0
- package/lib/components/Cell/Cell.d.ts +5 -0
- package/lib/components/Cell/Cell.js +66 -0
- package/lib/components/Cell/index.d.ts +4 -0
- package/lib/components/Cell/index.js +33 -0
- package/lib/components/Cell/interface.d.ts +12 -0
- package/lib/components/Cell/interface.js +6 -0
- package/lib/components/Cell/style/Cell.css +80 -0
- package/lib/components/Cell/style/css.js +4 -0
- package/lib/components/Cell/style/index.d.ts +1 -0
- package/lib/components/Cell/style/index.js +4 -0
- package/lib/components/Checkbox/BaseCheckbox.d.ts +6 -0
- package/lib/components/Checkbox/BaseCheckbox.js +94 -0
- package/lib/components/Checkbox/Checkbox.d.ts +6 -0
- package/lib/components/Checkbox/Checkbox.js +132 -0
- package/lib/components/Checkbox/CheckboxGroup.d.ts +5 -0
- package/lib/components/Checkbox/CheckboxGroup.js +151 -0
- package/lib/components/Checkbox/CheckboxGroupContext.d.ts +14 -0
- package/lib/components/Checkbox/CheckboxGroupContext.js +9 -0
- package/lib/components/Checkbox/constants.d.ts +17 -0
- package/lib/components/Checkbox/constants.js +23 -0
- package/lib/components/Checkbox/index.d.ts +10 -0
- package/lib/components/Checkbox/index.js +53 -0
- package/lib/components/Checkbox/interface.d.ts +77 -0
- package/lib/components/Checkbox/interface.js +6 -0
- package/lib/components/Checkbox/style/Checkbox.css +191 -0
- package/lib/components/Checkbox/style/css.js +4 -0
- package/lib/components/Checkbox/style/index.d.ts +1 -0
- package/lib/components/Checkbox/style/index.js +4 -0
- package/lib/components/CoachMark/CoachMark.d.ts +4 -0
- package/lib/components/CoachMark/CoachMark.js +152 -0
- package/lib/components/CoachMark/index.d.ts +4 -0
- package/lib/components/CoachMark/index.js +33 -0
- package/lib/components/CoachMark/interface.d.ts +47 -0
- package/lib/components/CoachMark/interface.js +8 -0
- package/lib/components/CoachMark/style/CoachMark.css +156 -0
- package/lib/components/CoachMark/style/css.js +7 -0
- package/lib/components/CoachMark/style/index.d.ts +4 -0
- package/lib/components/CoachMark/style/index.js +7 -0
- package/lib/components/Copy/Clipboard.d.ts +4 -0
- package/lib/components/Copy/Clipboard.js +54 -0
- package/lib/components/Copy/Copy.d.ts +4 -0
- package/lib/components/Copy/Copy.js +91 -0
- package/lib/components/Copy/index.d.ts +5 -0
- package/lib/components/Copy/index.js +41 -0
- package/lib/components/Copy/interface.d.ts +38 -0
- package/lib/components/Copy/interface.js +6 -0
- package/lib/components/Copy/style/Clipboard.css +45 -0
- package/lib/components/Copy/style/Copy.css +48 -0
- package/lib/components/Copy/style/css.js +5 -0
- package/lib/components/Copy/style/index.d.ts +2 -0
- package/lib/components/Copy/style/index.js +5 -0
- package/lib/components/Dialog/Dialog.d.ts +4 -0
- package/lib/components/Dialog/Dialog.js +368 -0
- package/lib/components/Dialog/constants.d.ts +57 -0
- package/lib/components/Dialog/constants.js +61 -0
- package/lib/components/Dialog/index.d.ts +4 -0
- package/lib/components/Dialog/index.js +33 -0
- package/lib/components/Dialog/interface.d.ts +36 -0
- package/lib/components/Dialog/interface.js +6 -0
- package/lib/components/Dialog/style/Dialog.css +204 -0
- package/lib/components/Dialog/style/css.js +4 -0
- package/lib/components/Dialog/style/index.d.ts +1 -0
- package/lib/components/Dialog/style/index.js +4 -0
- package/lib/components/Divider/Divider.d.ts +4 -0
- package/lib/components/Divider/Divider.js +60 -0
- package/lib/components/Divider/constants.d.ts +36 -0
- package/lib/components/Divider/constants.js +48 -0
- package/lib/components/Divider/index.d.ts +4 -0
- package/lib/components/Divider/index.js +31 -0
- package/lib/components/Divider/interface.d.ts +19 -0
- package/lib/components/Divider/interface.js +6 -0
- package/lib/components/Divider/style/Divider.css +128 -0
- package/lib/components/Divider/style/css.js +4 -0
- package/lib/components/Divider/style/index.d.ts +1 -0
- package/lib/components/Divider/style/index.js +4 -0
- package/lib/components/Drawer/Drawer.d.ts +4 -0
- package/lib/components/Drawer/Drawer.js +165 -0
- package/lib/components/Drawer/constants.d.ts +18 -0
- package/lib/components/Drawer/constants.js +25 -0
- package/lib/components/Drawer/hooks/index.d.ts +4 -0
- package/lib/components/Drawer/hooks/index.js +34 -0
- package/lib/components/Drawer/hooks/useBodyScrollLock.d.ts +1 -0
- package/lib/components/Drawer/hooks/useBodyScrollLock.js +35 -0
- package/lib/components/Drawer/hooks/useDialogFocus.d.ts +2 -0
- package/lib/components/Drawer/hooks/useDialogFocus.js +28 -0
- package/lib/components/Drawer/hooks/useDrawerTransition.d.ts +4 -0
- package/lib/components/Drawer/hooks/useDrawerTransition.js +64 -0
- package/lib/components/Drawer/hooks/useEscapeClose.d.ts +1 -0
- package/lib/components/Drawer/hooks/useEscapeClose.js +22 -0
- package/lib/components/Drawer/index.d.ts +3 -0
- package/lib/components/Drawer/index.js +46 -0
- package/lib/components/Drawer/interface.d.ts +79 -0
- package/lib/components/Drawer/interface.js +6 -0
- package/lib/components/Drawer/style/Drawer.css +145 -0
- package/lib/components/Drawer/style/css.js +4 -0
- package/lib/components/Drawer/style/index.d.ts +1 -0
- package/lib/components/Drawer/style/index.js +4 -0
- package/lib/components/Dropdown/Dropdown.d.ts +5 -0
- package/lib/components/Dropdown/Dropdown.js +39 -0
- package/lib/components/Dropdown/index.d.ts +3 -0
- package/lib/components/Dropdown/index.js +35 -0
- package/lib/components/Dropdown/interface.d.ts +8 -0
- package/lib/components/Dropdown/interface.js +6 -0
- package/lib/components/Dropdown/style/Dropdown.css +48 -0
- package/lib/components/Dropdown/style/css.js +5 -0
- package/lib/components/Dropdown/style/index.d.ts +2 -0
- package/lib/components/Dropdown/style/index.js +5 -0
- package/lib/components/Empty/Empty.d.ts +6 -0
- package/lib/components/Empty/Empty.js +77 -0
- package/lib/components/Empty/index.d.ts +4 -0
- package/lib/components/Empty/index.js +33 -0
- package/lib/components/Empty/interface.d.ts +11 -0
- package/lib/components/Empty/interface.js +6 -0
- package/lib/components/Empty/style/Empty.css +58 -0
- package/lib/components/Empty/style/css.js +5 -0
- package/lib/components/Empty/style/index.d.ts +2 -0
- package/lib/components/Empty/style/index.js +5 -0
- package/lib/components/Flex/Flex.d.ts +5 -0
- package/lib/components/Flex/Flex.js +60 -0
- package/lib/components/Flex/constants.d.ts +41 -0
- package/lib/components/Flex/constants.js +51 -0
- package/lib/components/Flex/index.d.ts +5 -0
- package/lib/components/Flex/index.js +60 -0
- package/lib/components/Flex/interface.d.ts +13 -0
- package/lib/components/Flex/interface.js +6 -0
- package/lib/components/Flex/style/Flex.css +71 -0
- package/lib/components/Flex/style/css.js +4 -0
- package/lib/components/Flex/style/index.d.ts +1 -0
- package/lib/components/Flex/style/index.js +4 -0
- package/lib/components/Grid/Col.d.ts +4 -0
- package/lib/components/Grid/Col.js +93 -0
- package/lib/components/Grid/Grid.d.ts +10 -0
- package/lib/components/Grid/Grid.js +21 -0
- package/lib/components/Grid/Row.d.ts +4 -0
- package/lib/components/Grid/Row.js +50 -0
- package/lib/components/Grid/constants.d.ts +48 -0
- package/lib/components/Grid/constants.js +77 -0
- package/lib/components/Grid/helper.d.ts +15 -0
- package/lib/components/Grid/helper.js +94 -0
- package/lib/components/Grid/index.d.ts +7 -0
- package/lib/components/Grid/index.js +62 -0
- package/lib/components/Grid/interface.d.ts +38 -0
- package/lib/components/Grid/interface.js +6 -0
- package/lib/components/Grid/style/Grid.css +952 -0
- package/lib/components/Grid/style/css.js +4 -0
- package/lib/components/Grid/style/index.d.ts +1 -0
- package/lib/components/Grid/style/index.js +4 -0
- package/lib/components/Icons/Icons.d.ts +194 -0
- package/lib/components/Icons/Icons.js +195 -0
- package/lib/components/Icons/Illustrations.d.ts +19 -0
- package/lib/components/Icons/Illustrations.js +943 -0
- package/lib/components/Icons/Logo.d.ts +36 -0
- package/lib/components/Icons/Logo.js +219 -0
- package/lib/components/Icons/SVGs.d.ts +267 -0
- package/lib/components/Icons/SVGs.js +1936 -0
- package/lib/components/Icons/Wrapper.d.ts +6 -0
- package/lib/components/Icons/Wrapper.js +109 -0
- package/lib/components/Icons/index.d.ts +4 -0
- package/lib/components/Icons/index.js +52 -0
- package/lib/components/Icons/interface.d.ts +30 -0
- package/lib/components/Icons/interface.js +6 -0
- package/lib/components/Icons/style/Icons.css +81 -0
- package/lib/components/Icons/style/css.js +4 -0
- package/lib/components/Icons/style/index.d.ts +1 -0
- package/lib/components/Icons/style/index.js +4 -0
- package/lib/components/Input/Amount/Amount.d.ts +6 -0
- package/lib/components/Input/Amount/Amount.js +208 -0
- package/lib/components/Input/Amount/helper.d.ts +35 -0
- package/lib/components/Input/Amount/helper.js +102 -0
- package/lib/components/Input/Amount/index.d.ts +3 -0
- package/lib/components/Input/Amount/index.js +18 -0
- package/lib/components/Input/Amount/style/Amount.css +103 -0
- package/lib/components/Input/Amount/style/css.js +4 -0
- package/lib/components/Input/Amount/style/index.d.ts +1 -0
- package/lib/components/Input/Amount/style/index.js +4 -0
- package/lib/components/Input/FieldShell/FieldShell.css +76 -0
- package/lib/components/Input/FieldShell/FieldShell.d.ts +23 -0
- package/lib/components/Input/FieldShell/FieldShell.js +108 -0
- package/lib/components/Input/FieldShell/index.d.ts +3 -0
- package/lib/components/Input/FieldShell/index.js +22 -0
- package/lib/components/Input/Input/Input.css +124 -0
- package/lib/components/Input/Input/Input.d.ts +3 -0
- package/lib/components/Input/Input/Input.js +180 -0
- package/lib/components/Input/Input/index.d.ts +2 -0
- package/lib/components/Input/Input/index.js +22 -0
- package/lib/components/Input/Mask/Mask.d.ts +5 -0
- package/lib/components/Input/Mask/Mask.js +354 -0
- package/lib/components/Input/Mask/index.d.ts +2 -0
- package/lib/components/Input/Mask/index.js +22 -0
- package/lib/components/Input/OTP/OTP.css +79 -0
- package/lib/components/Input/OTP/OTP.d.ts +5 -0
- package/lib/components/Input/OTP/OTP.js +164 -0
- package/lib/components/Input/OTP/index.d.ts +2 -0
- package/lib/components/Input/OTP/index.js +22 -0
- package/lib/components/Input/Password/Password.d.ts +5 -0
- package/lib/components/Input/Password/Password.js +138 -0
- package/lib/components/Input/Password/index.d.ts +2 -0
- package/lib/components/Input/Password/index.js +22 -0
- package/lib/components/Input/Search/Search.d.ts +5 -0
- package/lib/components/Input/Search/Search.js +161 -0
- package/lib/components/Input/Search/index.d.ts +2 -0
- package/lib/components/Input/Search/index.js +22 -0
- package/lib/components/Input/TextArea/TextArea.css +93 -0
- package/lib/components/Input/TextArea/TextArea.d.ts +5 -0
- package/lib/components/Input/TextArea/TextArea.js +110 -0
- package/lib/components/Input/TextArea/index.d.ts +2 -0
- package/lib/components/Input/TextArea/index.js +22 -0
- package/lib/components/Input/Trade/Trade.css +192 -0
- package/lib/components/Input/Trade/Trade.d.ts +5 -0
- package/lib/components/Input/Trade/Trade.js +142 -0
- package/lib/components/Input/Trade/index.d.ts +2 -0
- package/lib/components/Input/Trade/index.js +22 -0
- package/lib/components/Input/constants.d.ts +15 -0
- package/lib/components/Input/constants.js +22 -0
- package/lib/components/Input/index.d.ts +4 -0
- package/lib/components/Input/index.js +49 -0
- package/lib/components/Input/interface.d.ts +156 -0
- package/lib/components/Input/interface.js +6 -0
- package/lib/components/Input/style/css.js +9 -0
- package/lib/components/Input/style/index.d.ts +6 -0
- package/lib/components/Input/style/index.js +9 -0
- package/lib/components/Input/useAmountInput.d.ts +35 -0
- package/lib/components/Input/useAmountInput.js +214 -0
- package/lib/components/Input/useSyncRef.d.ts +2 -0
- package/lib/components/Input/useSyncRef.js +19 -0
- package/lib/components/Link/Link.d.ts +4 -0
- package/lib/components/Link/Link.js +66 -0
- package/lib/components/Link/constants.d.ts +5 -0
- package/lib/components/Link/constants.js +12 -0
- package/lib/components/Link/index.d.ts +5 -0
- package/lib/components/Link/index.js +45 -0
- package/lib/components/Link/interface.d.ts +13 -0
- package/lib/components/Link/interface.js +6 -0
- package/lib/components/Link/style/Link.css +70 -0
- package/lib/components/Link/style/css.js +4 -0
- package/lib/components/Link/style/index.d.ts +1 -0
- package/lib/components/Link/style/index.js +4 -0
- package/lib/components/Navigation/Nav.d.ts +5 -0
- package/lib/components/Navigation/Nav.js +210 -0
- package/lib/components/Navigation/Navigation.d.ts +5 -0
- package/lib/components/Navigation/Navigation.js +309 -0
- package/lib/components/Navigation/NavigationLogo.d.ts +8 -0
- package/lib/components/Navigation/NavigationLogo.js +52 -0
- package/lib/components/Navigation/NavigationStepper.d.ts +5 -0
- package/lib/components/Navigation/NavigationStepper.js +82 -0
- package/lib/components/Navigation/index.d.ts +6 -0
- package/lib/components/Navigation/index.js +49 -0
- package/lib/components/Navigation/interface.d.ts +134 -0
- package/lib/components/Navigation/interface.js +6 -0
- package/lib/components/Navigation/style/Nav.css +158 -0
- package/lib/components/Navigation/style/Navigation.css +373 -0
- package/lib/components/Navigation/style/NavigationStepper.css +97 -0
- package/lib/components/Navigation/style/css.js +6 -0
- package/lib/components/Navigation/style/index.d.ts +3 -0
- package/lib/components/Navigation/style/index.js +6 -0
- package/lib/components/Notification/Notification.d.ts +6 -0
- package/lib/components/Notification/Notification.js +116 -0
- package/lib/components/Notification/NotificationStatic.d.ts +4 -0
- package/lib/components/Notification/NotificationStatic.js +515 -0
- package/lib/components/Notification/constants.d.ts +12 -0
- package/lib/components/Notification/constants.js +22 -0
- package/lib/components/Notification/index.d.ts +5 -0
- package/lib/components/Notification/index.js +52 -0
- package/lib/components/Notification/interface.d.ts +70 -0
- package/lib/components/Notification/interface.js +13 -0
- package/lib/components/Notification/style/Notification.css +170 -0
- package/lib/components/Notification/style/css.js +4 -0
- package/lib/components/Notification/style/index.d.ts +1 -0
- package/lib/components/Notification/style/index.js +4 -0
- package/lib/components/Pagination/Pagination.d.ts +5 -0
- package/lib/components/Pagination/Pagination.js +145 -0
- package/lib/components/Pagination/constants.d.ts +52 -0
- package/lib/components/Pagination/constants.js +62 -0
- package/lib/components/Pagination/index.d.ts +6 -0
- package/lib/components/Pagination/index.js +53 -0
- package/lib/components/Pagination/interface.d.ts +53 -0
- package/lib/components/Pagination/interface.js +6 -0
- package/lib/components/Pagination/style/Pagination.css +89 -0
- package/lib/components/Pagination/style/css.js +4 -0
- package/lib/components/Pagination/style/index.d.ts +1 -0
- package/lib/components/Pagination/style/index.js +4 -0
- package/lib/components/Pagination/usePagination.d.ts +3 -0
- package/lib/components/Pagination/usePagination.js +152 -0
- package/lib/components/Popconfirm/Popconfirm.d.ts +6 -0
- package/lib/components/Popconfirm/Popconfirm.js +154 -0
- package/lib/components/Popconfirm/constants.d.ts +74 -0
- package/lib/components/Popconfirm/constants.js +80 -0
- package/lib/components/Popconfirm/index.d.ts +4 -0
- package/lib/components/Popconfirm/index.js +33 -0
- package/lib/components/Popconfirm/interface.d.ts +40 -0
- package/lib/components/Popconfirm/interface.js +6 -0
- package/lib/components/Popconfirm/style/Popconfirm.css +137 -0
- package/lib/components/Popconfirm/style/css.js +7 -0
- package/lib/components/Popconfirm/style/index.d.ts +4 -0
- package/lib/components/Popconfirm/style/index.js +7 -0
- package/lib/components/Portal/Portal.d.ts +3 -0
- package/lib/components/Portal/Portal.js +61 -0
- package/lib/components/Portal/index.d.ts +4 -0
- package/lib/components/Portal/index.js +33 -0
- package/lib/components/Portal/interface.d.ts +7 -0
- package/lib/components/Portal/interface.js +6 -0
- package/lib/components/ProForm/ProForm.d.ts +4 -0
- package/lib/components/ProForm/ProForm.js +312 -0
- package/lib/components/ProForm/ProFormDependency.d.ts +4 -0
- package/lib/components/ProForm/ProFormDependency.js +170 -0
- package/lib/components/ProForm/ProFormGroup.d.ts +3 -0
- package/lib/components/ProForm/ProFormGroup.js +85 -0
- package/lib/components/ProForm/ProFormItem.d.ts +4 -0
- package/lib/components/ProForm/ProFormItem.js +229 -0
- package/lib/components/ProForm/ProFormList.d.ts +3 -0
- package/lib/components/ProForm/ProFormList.js +259 -0
- package/lib/components/ProForm/Submitter.d.ts +6 -0
- package/lib/components/ProForm/Submitter.js +113 -0
- package/lib/components/ProForm/constants.d.ts +18 -0
- package/lib/components/ProForm/constants.js +29 -0
- package/lib/components/ProForm/context.d.ts +13 -0
- package/lib/components/ProForm/context.js +35 -0
- package/lib/components/ProForm/core/constants.d.ts +21 -0
- package/lib/components/ProForm/core/constants.js +26 -0
- package/lib/components/ProForm/core/hooks/useForm.d.ts +3 -0
- package/lib/components/ProForm/core/hooks/useForm.js +686 -0
- package/lib/components/ProForm/core/hooks/useFormCore.d.ts +3 -0
- package/lib/components/ProForm/core/hooks/useFormCore.js +354 -0
- package/lib/components/ProForm/core/index.d.ts +6 -0
- package/lib/components/ProForm/core/index.js +56 -0
- package/lib/components/ProForm/core/interface.d.ts +153 -0
- package/lib/components/ProForm/core/interface.js +6 -0
- package/lib/components/ProForm/core/useFormItem.d.ts +21 -0
- package/lib/components/ProForm/core/useFormItem.js +183 -0
- package/lib/components/ProForm/fields/ProFormCheckbox.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormCheckbox.js +17 -0
- package/lib/components/ProForm/fields/ProFormCheckboxGroup.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormCheckboxGroup.js +18 -0
- package/lib/components/ProForm/fields/ProFormDatePicker.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormDatePicker.js +29 -0
- package/lib/components/ProForm/fields/ProFormFieldSet.d.ts +4 -0
- package/lib/components/ProForm/fields/ProFormFieldSet.js +75 -0
- package/lib/components/ProForm/fields/ProFormPassword.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormPassword.js +17 -0
- package/lib/components/ProForm/fields/ProFormRadioGroup.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormRadioGroup.js +16 -0
- package/lib/components/ProForm/fields/ProFormSelect.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormSelect.js +46 -0
- package/lib/components/ProForm/fields/ProFormSlider.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormSlider.js +16 -0
- package/lib/components/ProForm/fields/ProFormSwitch.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormSwitch.js +17 -0
- package/lib/components/ProForm/fields/ProFormText.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormText.js +16 -0
- package/lib/components/ProForm/fields/ProFormTextArea.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormTextArea.js +16 -0
- package/lib/components/ProForm/fields/ProFormUpload.d.ts +3 -0
- package/lib/components/ProForm/fields/ProFormUpload.js +32 -0
- package/lib/components/ProForm/fields/createProFormField.d.ts +4 -0
- package/lib/components/ProForm/fields/createProFormField.js +164 -0
- package/lib/components/ProForm/fields/index.d.ts +13 -0
- package/lib/components/ProForm/fields/index.js +97 -0
- package/lib/components/ProForm/hooks/useFieldRequest.d.ts +7 -0
- package/lib/components/ProForm/hooks/useFieldRequest.js +98 -0
- package/lib/components/ProForm/index.d.ts +38 -0
- package/lib/components/ProForm/index.js +206 -0
- package/lib/components/ProForm/interface.d.ts +284 -0
- package/lib/components/ProForm/interface.js +6 -0
- package/lib/components/ProForm/layouts/DialogForm.d.ts +3 -0
- package/lib/components/ProForm/layouts/DialogForm.js +81 -0
- package/lib/components/ProForm/layouts/DrawerForm.d.ts +3 -0
- package/lib/components/ProForm/layouts/DrawerForm.js +80 -0
- package/lib/components/ProForm/layouts/QueryFilter.d.ts +4 -0
- package/lib/components/ProForm/layouts/QueryFilter.js +167 -0
- package/lib/components/ProForm/layouts/index.d.ts +4 -0
- package/lib/components/ProForm/layouts/index.js +34 -0
- package/lib/components/ProForm/layouts/useOverlayForm.d.ts +17 -0
- package/lib/components/ProForm/layouts/useOverlayForm.js +117 -0
- package/lib/components/ProForm/style/ProForm.css +168 -0
- package/lib/components/ProForm/style/css.js +4 -0
- package/lib/components/ProForm/style/index.d.ts +1 -0
- package/lib/components/ProForm/style/index.js +4 -0
- package/lib/components/ProForm/utils.d.ts +22 -0
- package/lib/components/ProForm/utils.js +228 -0
- package/lib/components/Progress/Progress.d.ts +6 -0
- package/lib/components/Progress/Progress.js +103 -0
- package/lib/components/Progress/constants.d.ts +26 -0
- package/lib/components/Progress/constants.js +38 -0
- package/lib/components/Progress/index.d.ts +5 -0
- package/lib/components/Progress/index.js +45 -0
- package/lib/components/Progress/interface.d.ts +26 -0
- package/lib/components/Progress/interface.js +6 -0
- package/lib/components/Progress/style/Progress.css +103 -0
- package/lib/components/Progress/style/css.js +4 -0
- package/lib/components/Progress/style/index.d.ts +1 -0
- package/lib/components/Progress/style/index.js +4 -0
- package/lib/components/Radio/BaseRadio.d.ts +16 -0
- package/lib/components/Radio/BaseRadio.js +65 -0
- package/lib/components/Radio/Radio.d.ts +6 -0
- package/lib/components/Radio/Radio.js +192 -0
- package/lib/components/Radio/RadioGroup.d.ts +5 -0
- package/lib/components/Radio/RadioGroup.js +112 -0
- package/lib/components/Radio/RadioGroupContext.d.ts +22 -0
- package/lib/components/Radio/RadioGroupContext.js +13 -0
- package/lib/components/Radio/constants.d.ts +39 -0
- package/lib/components/Radio/constants.js +63 -0
- package/lib/components/Radio/index.d.ts +5 -0
- package/lib/components/Radio/index.js +41 -0
- package/lib/components/Radio/interface.d.ts +122 -0
- package/lib/components/Radio/interface.js +6 -0
- package/lib/components/Radio/style/Radio.css +362 -0
- package/lib/components/Radio/style/css.js +5 -0
- package/lib/components/Radio/style/index.d.ts +2 -0
- package/lib/components/Radio/style/index.js +5 -0
- package/lib/components/ResizeObserver/Collection.d.ts +19 -0
- package/lib/components/ResizeObserver/Collection.js +51 -0
- package/lib/components/ResizeObserver/ResizeObserver.d.ts +7 -0
- package/lib/components/ResizeObserver/ResizeObserver.js +41 -0
- package/lib/components/ResizeObserver/SingleObserver/index.d.ts +7 -0
- package/lib/components/ResizeObserver/SingleObserver/index.js +48 -0
- package/lib/components/ResizeObserver/index.d.ts +7 -0
- package/lib/components/ResizeObserver/index.js +30 -0
- package/lib/components/ResizeObserver/interface.d.ts +16 -0
- package/lib/components/ResizeObserver/interface.js +6 -0
- package/lib/components/ResizeObserver/useResizeObserver.d.ts +2 -0
- package/lib/components/ResizeObserver/useResizeObserver.js +79 -0
- package/lib/components/ResizeObserver/utils/observerUtil.d.ts +7 -0
- package/lib/components/ResizeObserver/utils/observerUtil.js +47 -0
- package/lib/components/ResizeObserver/utils/reactUtil.d.ts +19 -0
- package/lib/components/ResizeObserver/utils/reactUtil.js +91 -0
- package/lib/components/Segment/Segment.d.ts +6 -0
- package/lib/components/Segment/Segment.js +110 -0
- package/lib/components/Segment/index.d.ts +4 -0
- package/lib/components/Segment/index.js +33 -0
- package/lib/components/Segment/interface.d.ts +23 -0
- package/lib/components/Segment/interface.js +6 -0
- package/lib/components/Segment/style/Segment.css +79 -0
- package/lib/components/Segment/style/css.js +4 -0
- package/lib/components/Segment/style/index.d.ts +1 -0
- package/lib/components/Segment/style/index.js +4 -0
- package/lib/components/Select/Select.d.ts +6 -0
- package/lib/components/Select/Select.js +573 -0
- package/lib/components/Select/SelectCustom.d.ts +6 -0
- package/lib/components/Select/SelectCustom.js +242 -0
- package/lib/components/Select/SelectFieldShell.d.ts +24 -0
- package/lib/components/Select/SelectFieldShell.js +87 -0
- package/lib/components/Select/SelectOptionContent.d.ts +17 -0
- package/lib/components/Select/SelectOptionContent.js +51 -0
- package/lib/components/Select/SelectSearchControl.d.ts +15 -0
- package/lib/components/Select/SelectSearchControl.js +49 -0
- package/lib/components/Select/SelectValueContent.d.ts +18 -0
- package/lib/components/Select/SelectValueContent.js +105 -0
- package/lib/components/Select/constants.d.ts +45 -0
- package/lib/components/Select/constants.js +49 -0
- package/lib/components/Select/index.d.ts +7 -0
- package/lib/components/Select/index.js +41 -0
- package/lib/components/Select/interface.d.ts +229 -0
- package/lib/components/Select/interface.js +10 -0
- package/lib/components/Select/style/Select.css +468 -0
- package/lib/components/Select/style/css.js +6 -0
- package/lib/components/Select/style/index.d.ts +3 -0
- package/lib/components/Select/style/index.js +6 -0
- package/lib/components/Select/useSelectShell.d.ts +34 -0
- package/lib/components/Select/useSelectShell.js +114 -0
- package/lib/components/Select/utils.d.ts +21 -0
- package/lib/components/Select/utils.js +161 -0
- package/lib/components/Skeleton/Skeleton.d.ts +6 -0
- package/lib/components/Skeleton/Skeleton.js +58 -0
- package/lib/components/Skeleton/index.d.ts +4 -0
- package/lib/components/Skeleton/index.js +33 -0
- package/lib/components/Skeleton/interface.d.ts +19 -0
- package/lib/components/Skeleton/interface.js +6 -0
- package/lib/components/Skeleton/style/Skeleton.css +54 -0
- package/lib/components/Skeleton/style/css.js +4 -0
- package/lib/components/Skeleton/style/index.d.ts +1 -0
- package/lib/components/Skeleton/style/index.js +4 -0
- package/lib/components/Slider/Slider.d.ts +6 -0
- package/lib/components/Slider/Slider.js +127 -0
- package/lib/components/Slider/index.d.ts +4 -0
- package/lib/components/Slider/index.js +33 -0
- package/lib/components/Slider/interface.d.ts +39 -0
- package/lib/components/Slider/interface.js +6 -0
- package/lib/components/Slider/style/Slider.css +161 -0
- package/lib/components/Slider/style/css.js +4 -0
- package/lib/components/Slider/style/index.d.ts +1 -0
- package/lib/components/Slider/style/index.js +4 -0
- package/lib/components/Space/Space.d.ts +5 -0
- package/lib/components/Space/Space.js +88 -0
- package/lib/components/Space/constants.d.ts +33 -0
- package/lib/components/Space/constants.js +43 -0
- package/lib/components/Space/index.d.ts +5 -0
- package/lib/components/Space/index.js +53 -0
- package/lib/components/Space/interface.d.ts +12 -0
- package/lib/components/Space/interface.js +6 -0
- package/lib/components/Space/style/Space.css +47 -0
- package/lib/components/Space/style/css.js +4 -0
- package/lib/components/Space/style/index.d.ts +1 -0
- package/lib/components/Space/style/index.js +4 -0
- package/lib/components/Spinner/Spinner.d.ts +6 -0
- package/lib/components/Spinner/Spinner.js +230 -0
- package/lib/components/Spinner/index.d.ts +4 -0
- package/lib/components/Spinner/index.js +33 -0
- package/lib/components/Spinner/interface.d.ts +18 -0
- package/lib/components/Spinner/interface.js +8 -0
- package/lib/components/Spinner/lottie-pure.json +1 -0
- package/lib/components/Spinner/style/Spinner.css +99 -0
- package/lib/components/Spinner/style/css.js +4 -0
- package/lib/components/Spinner/style/index.d.ts +1 -0
- package/lib/components/Spinner/style/index.js +4 -0
- package/lib/components/Step/Step.d.ts +5 -0
- package/lib/components/Step/Step.js +126 -0
- package/lib/components/Step/constants.d.ts +59 -0
- package/lib/components/Step/constants.js +72 -0
- package/lib/components/Step/index.d.ts +4 -0
- package/lib/components/Step/index.js +33 -0
- package/lib/components/Step/interface.d.ts +22 -0
- package/lib/components/Step/interface.js +6 -0
- package/lib/components/Step/style/Step.css +107 -0
- package/lib/components/Step/style/css.js +4 -0
- package/lib/components/Step/style/index.d.ts +1 -0
- package/lib/components/Step/style/index.js +4 -0
- package/lib/components/Switch/Switch.d.ts +6 -0
- package/lib/components/Switch/Switch.js +104 -0
- package/lib/components/Switch/constants.d.ts +25 -0
- package/lib/components/Switch/constants.js +33 -0
- package/lib/components/Switch/index.d.ts +5 -0
- package/lib/components/Switch/index.js +45 -0
- package/lib/components/Switch/interface.d.ts +26 -0
- package/lib/components/Switch/interface.js +6 -0
- package/lib/components/Switch/style/Switch.css +102 -0
- package/lib/components/Switch/style/css.js +5 -0
- package/lib/components/Switch/style/index.d.ts +2 -0
- package/lib/components/Switch/style/index.js +5 -0
- package/lib/components/Table/Table.d.ts +10 -0
- package/lib/components/Table/Table.js +47 -0
- package/lib/components/Table/VirtualTable.d.ts +9 -0
- package/lib/components/Table/VirtualTable.js +59 -0
- package/lib/components/Table/constants.d.ts +4 -0
- package/lib/components/Table/constants.js +11 -0
- package/lib/components/Table/core/useTableColumns.d.ts +48 -0
- package/lib/components/Table/core/useTableColumns.js +260 -0
- package/lib/components/Table/core/useTableDataPipeline.d.ts +57 -0
- package/lib/components/Table/core/useTableDataPipeline.js +435 -0
- package/lib/components/Table/core/useTableExpand.d.ts +11 -0
- package/lib/components/Table/core/useTableExpand.js +70 -0
- package/lib/components/Table/core/useTableSelection.d.ts +15 -0
- package/lib/components/Table/core/useTableSelection.js +151 -0
- package/lib/components/Table/core/useTableSetup.d.ts +42 -0
- package/lib/components/Table/core/useTableSetup.js +204 -0
- package/lib/components/Table/features/ExpandTrigger.d.ts +4 -0
- package/lib/components/Table/features/ExpandTrigger.js +38 -0
- package/lib/components/Table/features/FilterTrigger.d.ts +9 -0
- package/lib/components/Table/features/FilterTrigger.js +164 -0
- package/lib/components/Table/features/SelectionColumn.d.ts +12 -0
- package/lib/components/Table/features/SelectionColumn.js +60 -0
- package/lib/components/Table/features/SortTrigger.d.ts +7 -0
- package/lib/components/Table/features/SortTrigger.js +32 -0
- package/lib/components/Table/index.d.ts +6 -0
- package/lib/components/Table/index.js +47 -0
- package/lib/components/Table/interface.d.ts +262 -0
- package/lib/components/Table/interface.js +6 -0
- package/lib/components/Table/internal/index.d.ts +3 -0
- package/lib/components/Table/internal/index.js +52 -0
- package/lib/components/Table/internal/kernel/Body/BodyRow.d.ts +37 -0
- package/lib/components/Table/internal/kernel/Body/BodyRow.js +186 -0
- package/lib/components/Table/internal/kernel/Body/ExpandedRow.d.ts +15 -0
- package/lib/components/Table/internal/kernel/Body/ExpandedRow.js +67 -0
- package/lib/components/Table/internal/kernel/Body/MeasureCell.d.ts +8 -0
- package/lib/components/Table/internal/kernel/Body/MeasureCell.js +50 -0
- package/lib/components/Table/internal/kernel/Body/MeasureRow.d.ts +10 -0
- package/lib/components/Table/internal/kernel/Body/MeasureRow.js +64 -0
- package/lib/components/Table/internal/kernel/Body/index.d.ts +9 -0
- package/lib/components/Table/internal/kernel/Body/index.js +135 -0
- package/lib/components/Table/internal/kernel/Cell/index.d.ts +39 -0
- package/lib/components/Table/internal/kernel/Cell/index.js +190 -0
- package/lib/components/Table/internal/kernel/Cell/useCellRender.d.ts +3 -0
- package/lib/components/Table/internal/kernel/Cell/useCellRender.js +74 -0
- package/lib/components/Table/internal/kernel/Cell/useHoverState.d.ts +2 -0
- package/lib/components/Table/internal/kernel/Cell/useHoverState.js +23 -0
- package/lib/components/Table/internal/kernel/ColGroup.d.ts +8 -0
- package/lib/components/Table/internal/kernel/ColGroup.js +68 -0
- package/lib/components/Table/internal/kernel/FixedHolder/index.d.ts +27 -0
- package/lib/components/Table/internal/kernel/FixedHolder/index.js +192 -0
- package/lib/components/Table/internal/kernel/Footer/Cell.d.ts +11 -0
- package/lib/components/Table/internal/kernel/Footer/Cell.js +60 -0
- package/lib/components/Table/internal/kernel/Footer/Row.d.ts +8 -0
- package/lib/components/Table/internal/kernel/Footer/Row.js +31 -0
- package/lib/components/Table/internal/kernel/Footer/Summary.d.ts +14 -0
- package/lib/components/Table/internal/kernel/Footer/Summary.js +20 -0
- package/lib/components/Table/internal/kernel/Footer/SummaryContext.d.ts +11 -0
- package/lib/components/Table/internal/kernel/Footer/SummaryContext.js +13 -0
- package/lib/components/Table/internal/kernel/Footer/index.d.ts +16 -0
- package/lib/components/Table/internal/kernel/Footer/index.js +47 -0
- package/lib/components/Table/internal/kernel/Header/Header.d.ts +9 -0
- package/lib/components/Table/internal/kernel/Header/Header.js +120 -0
- package/lib/components/Table/internal/kernel/Header/HeaderRow.d.ts +18 -0
- package/lib/components/Table/internal/kernel/Header/HeaderRow.js +71 -0
- package/lib/components/Table/internal/kernel/Panel/index.d.ts +7 -0
- package/lib/components/Table/internal/kernel/Panel/index.js +25 -0
- package/lib/components/Table/internal/kernel/Table.d.ts +126 -0
- package/lib/components/Table/internal/kernel/Table.js +695 -0
- package/lib/components/Table/internal/kernel/VirtualTable/BodyGrid.d.ts +13 -0
- package/lib/components/Table/internal/kernel/VirtualTable/BodyGrid.js +298 -0
- package/lib/components/Table/internal/kernel/VirtualTable/BodyLine.d.ts +14 -0
- package/lib/components/Table/internal/kernel/VirtualTable/BodyLine.js +125 -0
- package/lib/components/Table/internal/kernel/VirtualTable/VirtualCell.d.ts +26 -0
- package/lib/components/Table/internal/kernel/VirtualTable/VirtualCell.js +117 -0
- package/lib/components/Table/internal/kernel/VirtualTable/context.d.ts +13 -0
- package/lib/components/Table/internal/kernel/VirtualTable/context.js +12 -0
- package/lib/components/Table/internal/kernel/VirtualTable/index.d.ts +17 -0
- package/lib/components/Table/internal/kernel/VirtualTable/index.js +100 -0
- package/lib/components/Table/internal/kernel/constant.d.ts +2 -0
- package/lib/components/Table/internal/kernel/constant.js +10 -0
- package/lib/components/Table/internal/kernel/context/PerfContext.d.ts +6 -0
- package/lib/components/Table/internal/kernel/context/PerfContext.js +18 -0
- package/lib/components/Table/internal/kernel/context/TableContext.d.ts +51 -0
- package/lib/components/Table/internal/kernel/context/TableContext.js +16 -0
- package/lib/components/Table/internal/kernel/hooks/useColumns/index.d.ts +31 -0
- package/lib/components/Table/internal/kernel/hooks/useColumns/index.js +223 -0
- package/lib/components/Table/internal/kernel/hooks/useColumns/useWidthColumns.d.ts +5 -0
- package/lib/components/Table/internal/kernel/hooks/useColumns/useWidthColumns.js +79 -0
- package/lib/components/Table/internal/kernel/hooks/useExpand.d.ts +10 -0
- package/lib/components/Table/internal/kernel/hooks/useExpand.js +94 -0
- package/lib/components/Table/internal/kernel/hooks/useFixedInfo.d.ts +2 -0
- package/lib/components/Table/internal/kernel/hooks/useFixedInfo.js +29 -0
- package/lib/components/Table/internal/kernel/hooks/useFlattenRecords.d.ts +19 -0
- package/lib/components/Table/internal/kernel/hooks/useFlattenRecords.js +64 -0
- package/lib/components/Table/internal/kernel/hooks/useFrame.d.ts +7 -0
- package/lib/components/Table/internal/kernel/hooks/useFrame.js +72 -0
- package/lib/components/Table/internal/kernel/hooks/useHover.d.ts +2 -0
- package/lib/components/Table/internal/kernel/hooks/useHover.js +30 -0
- package/lib/components/Table/internal/kernel/hooks/useRenderTimes.d.ts +5 -0
- package/lib/components/Table/internal/kernel/hooks/useRenderTimes.js +51 -0
- package/lib/components/Table/internal/kernel/hooks/useRowInfo.d.ts +11 -0
- package/lib/components/Table/internal/kernel/hooks/useRowInfo.js +70 -0
- package/lib/components/Table/internal/kernel/hooks/useSticky.d.ts +10 -0
- package/lib/components/Table/internal/kernel/hooks/useSticky.js +44 -0
- package/lib/components/Table/internal/kernel/hooks/useStickyOffsets.d.ts +6 -0
- package/lib/components/Table/internal/kernel/hooks/useStickyOffsets.js +38 -0
- package/lib/components/Table/internal/kernel/index.d.ts +12 -0
- package/lib/components/Table/internal/kernel/index.js +74 -0
- package/lib/components/Table/internal/kernel/interface.d.ts +202 -0
- package/lib/components/Table/internal/kernel/interface.js +6 -0
- package/lib/components/Table/internal/kernel/namePathType.d.ts +13 -0
- package/lib/components/Table/internal/kernel/namePathType.js +6 -0
- package/lib/components/Table/internal/kernel/selector-context/Immutable.d.ts +10 -0
- package/lib/components/Table/internal/kernel/selector-context/Immutable.js +82 -0
- package/lib/components/Table/internal/kernel/selector-context/context.d.ts +26 -0
- package/lib/components/Table/internal/kernel/selector-context/context.js +93 -0
- package/lib/components/Table/internal/kernel/selector-context/index.d.ts +7 -0
- package/lib/components/Table/internal/kernel/selector-context/index.js +34 -0
- package/lib/components/Table/internal/kernel/selector-context/isEqual.d.ts +5 -0
- package/lib/components/Table/internal/kernel/selector-context/isEqual.js +55 -0
- package/lib/components/Table/internal/kernel/stickyScrollBar.d.ts +12 -0
- package/lib/components/Table/internal/kernel/stickyScrollBar.js +203 -0
- package/lib/components/Table/internal/kernel/sugar/Column.d.ts +10 -0
- package/lib/components/Table/internal/kernel/sugar/Column.js +17 -0
- package/lib/components/Table/internal/kernel/sugar/ColumnGroup.d.ts +12 -0
- package/lib/components/Table/internal/kernel/sugar/ColumnGroup.js +17 -0
- package/lib/components/Table/internal/kernel/utils/dom/canUseDom.d.ts +1 -0
- package/lib/components/Table/internal/kernel/utils/dom/canUseDom.js +10 -0
- package/lib/components/Table/internal/kernel/utils/dom/isVisible.d.ts +2 -0
- package/lib/components/Table/internal/kernel/utils/dom/isVisible.js +34 -0
- package/lib/components/Table/internal/kernel/utils/expandUtil.d.ts +4 -0
- package/lib/components/Table/internal/kernel/utils/expandUtil.js +60 -0
- package/lib/components/Table/internal/kernel/utils/fixUtil.d.ts +21 -0
- package/lib/components/Table/internal/kernel/utils/fixUtil.js +70 -0
- package/lib/components/Table/internal/kernel/utils/get.d.ts +1 -0
- package/lib/components/Table/internal/kernel/utils/get.js +17 -0
- package/lib/components/Table/internal/kernel/utils/getScrollBarSize.d.ts +7 -0
- package/lib/components/Table/internal/kernel/utils/getScrollBarSize.js +45 -0
- package/lib/components/Table/internal/kernel/utils/legacyUtil.d.ts +5 -0
- package/lib/components/Table/internal/kernel/utils/legacyUtil.js +40 -0
- package/lib/components/Table/internal/kernel/utils/offsetUtil.d.ts +4 -0
- package/lib/components/Table/internal/kernel/utils/offsetUtil.js +20 -0
- package/lib/components/Table/internal/kernel/utils/pickAttrs.d.ts +6 -0
- package/lib/components/Table/internal/kernel/utils/pickAttrs.js +39 -0
- package/lib/components/Table/internal/kernel/utils/useMemo.d.ts +1 -0
- package/lib/components/Table/internal/kernel/utils/useMemo.js +19 -0
- package/lib/components/Table/internal/kernel/utils/valueUtil.d.ts +8 -0
- package/lib/components/Table/internal/kernel/utils/valueUtil.js +38 -0
- package/lib/components/Table/internal/kernel/utils/warning.d.ts +4 -0
- package/lib/components/Table/internal/kernel/utils/warning.js +26 -0
- package/lib/components/Table/renderers/BodyCell.d.ts +15 -0
- package/lib/components/Table/renderers/BodyCell.js +47 -0
- package/lib/components/Table/renderers/CellContent.d.ts +4 -0
- package/lib/components/Table/renderers/CellContent.js +32 -0
- package/lib/components/Table/renderers/EmptyState.d.ts +5 -0
- package/lib/components/Table/renderers/EmptyState.js +29 -0
- package/lib/components/Table/renderers/ExpandedRowContainer.d.ts +4 -0
- package/lib/components/Table/renderers/ExpandedRowContainer.js +16 -0
- package/lib/components/Table/renderers/HeaderCell.d.ts +11 -0
- package/lib/components/Table/renderers/HeaderCell.js +38 -0
- package/lib/components/Table/style/Table.css +370 -0
- package/lib/components/Table/style/css.js +12 -0
- package/lib/components/Table/style/index.d.ts +9 -0
- package/lib/components/Table/style/index.js +12 -0
- package/lib/components/Tabs/Tabs.d.ts +6 -0
- package/lib/components/Tabs/Tabs.js +123 -0
- package/lib/components/Tabs/index.d.ts +4 -0
- package/lib/components/Tabs/index.js +33 -0
- package/lib/components/Tabs/interface.d.ts +29 -0
- package/lib/components/Tabs/interface.js +6 -0
- package/lib/components/Tabs/style/Tabs.css +118 -0
- package/lib/components/Tabs/style/css.js +4 -0
- package/lib/components/Tabs/style/index.d.ts +1 -0
- package/lib/components/Tabs/style/index.js +4 -0
- package/lib/components/Tag/Tag.d.ts +6 -0
- package/lib/components/Tag/Tag.js +89 -0
- package/lib/components/Tag/constants.d.ts +18 -0
- package/lib/components/Tag/constants.js +34 -0
- package/lib/components/Tag/index.d.ts +5 -0
- package/lib/components/Tag/index.js +45 -0
- package/lib/components/Tag/interface.d.ts +15 -0
- package/lib/components/Tag/interface.js +6 -0
- package/lib/components/Tag/style/Tag.css +87 -0
- package/lib/components/Tag/style/css.js +4 -0
- package/lib/components/Tag/style/index.d.ts +1 -0
- package/lib/components/Tag/style/index.js +4 -0
- package/lib/components/Tooltip/Tooltip.d.ts +6 -0
- package/lib/components/Tooltip/Tooltip.js +80 -0
- package/lib/components/Tooltip/index.d.ts +4 -0
- package/lib/components/Tooltip/index.js +33 -0
- package/lib/components/Tooltip/interface.d.ts +22 -0
- package/lib/components/Tooltip/interface.js +6 -0
- package/lib/components/Tooltip/style/Tooltip.css +98 -0
- package/lib/components/Tooltip/style/css.js +4 -0
- package/lib/components/Tooltip/style/index.d.ts +1 -0
- package/lib/components/Tooltip/style/index.js +4 -0
- package/lib/components/Tour/Tour.d.ts +3 -0
- package/lib/components/Tour/Tour.js +250 -0
- package/lib/components/Tour/index.d.ts +4 -0
- package/lib/components/Tour/index.js +33 -0
- package/lib/components/Tour/interface.d.ts +46 -0
- package/lib/components/Tour/interface.js +6 -0
- package/lib/components/Trigger/Trigger.d.ts +5 -0
- package/lib/components/Trigger/Trigger.js +203 -0
- package/lib/components/Trigger/index.d.ts +3 -0
- package/lib/components/Trigger/index.js +35 -0
- package/lib/components/Trigger/interface.d.ts +77 -0
- package/lib/components/Trigger/interface.js +6 -0
- package/lib/components/Trigger/style/Trigger.css +35 -0
- package/lib/components/Trigger/style/css.js +4 -0
- package/lib/components/Trigger/style/index.d.ts +1 -0
- package/lib/components/Trigger/style/index.js +4 -0
- package/lib/components/Typography/Typography.d.ts +17 -0
- package/lib/components/Typography/Typography.js +207 -0
- package/lib/components/Typography/constants.d.ts +33 -0
- package/lib/components/Typography/constants.js +15 -0
- package/lib/components/Typography/index.d.ts +4 -0
- package/lib/components/Typography/index.js +79 -0
- package/lib/components/Typography/interface.d.ts +72 -0
- package/lib/components/Typography/interface.js +28 -0
- package/lib/components/Typography/render.d.ts +328 -0
- package/lib/components/Typography/render.js +116 -0
- package/lib/components/Typography/style/Typography.css +444 -0
- package/lib/components/Typography/style/css.js +6 -0
- package/lib/components/Typography/style/index.d.ts +3 -0
- package/lib/components/Typography/style/index.js +6 -0
- package/lib/components/Typography/useTypographyEnhancements.d.ts +43 -0
- package/lib/components/Typography/useTypographyEnhancements.js +118 -0
- package/lib/components/Typography/utils.d.ts +17 -0
- package/lib/components/Typography/utils.js +105 -0
- package/lib/components/Upload/Upload.d.ts +7 -0
- package/lib/components/Upload/Upload.js +97 -0
- package/lib/components/Upload/UploadFileBar.d.ts +6 -0
- package/lib/components/Upload/UploadFileBar.js +78 -0
- package/lib/components/Upload/index.d.ts +5 -0
- package/lib/components/Upload/index.js +41 -0
- package/lib/components/Upload/interface.d.ts +43 -0
- package/lib/components/Upload/interface.js +6 -0
- package/lib/components/Upload/style/Upload.css +55 -0
- package/lib/components/Upload/style/UploadFileBar.css +88 -0
- package/lib/components/Upload/style/css.js +5 -0
- package/lib/components/Upload/style/index.d.ts +2 -0
- package/lib/components/Upload/style/index.js +5 -0
- package/lib/components/VirtualList/Filler.d.ts +21 -0
- package/lib/components/VirtualList/Filler.js +66 -0
- package/lib/components/VirtualList/Item.d.ts +6 -0
- package/lib/components/VirtualList/Item.js +21 -0
- package/lib/components/VirtualList/ScrollBar.d.ts +22 -0
- package/lib/components/VirtualList/ScrollBar.js +246 -0
- package/lib/components/VirtualList/VirtualList.d.ts +62 -0
- package/lib/components/VirtualList/VirtualList.js +540 -0
- package/lib/components/VirtualList/constants.d.ts +4 -0
- package/lib/components/VirtualList/constants.js +11 -0
- package/lib/components/VirtualList/hooks/useChildren.d.ts +2 -0
- package/lib/components/VirtualList/hooks/useChildren.js +34 -0
- package/lib/components/VirtualList/hooks/useDiffItem.d.ts +2 -0
- package/lib/components/VirtualList/hooks/useDiffItem.js +25 -0
- package/lib/components/VirtualList/hooks/useFrameWheel.d.ts +10 -0
- package/lib/components/VirtualList/hooks/useFrameWheel.js +92 -0
- package/lib/components/VirtualList/hooks/useGetSize.d.ts +7 -0
- package/lib/components/VirtualList/hooks/useGetSize.js +57 -0
- package/lib/components/VirtualList/hooks/useHeights.d.ts +8 -0
- package/lib/components/VirtualList/hooks/useHeights.js +106 -0
- package/lib/components/VirtualList/hooks/useMobileTouchMove.d.ts +2 -0
- package/lib/components/VirtualList/hooks/useMobileTouchMove.js +91 -0
- package/lib/components/VirtualList/hooks/useOriginScroll.d.ts +2 -0
- package/lib/components/VirtualList/hooks/useOriginScroll.js +50 -0
- package/lib/components/VirtualList/hooks/useScrollDrag.d.ts +3 -0
- package/lib/components/VirtualList/hooks/useScrollDrag.js +87 -0
- package/lib/components/VirtualList/hooks/useScrollTo.d.ts +18 -0
- package/lib/components/VirtualList/hooks/useScrollTo.js +142 -0
- package/lib/components/VirtualList/index.d.ts +9 -0
- package/lib/components/VirtualList/index.js +31 -0
- package/lib/components/VirtualList/interface.d.ts +26 -0
- package/lib/components/VirtualList/interface.js +6 -0
- package/lib/components/VirtualList/style/VirtualList.css +25 -0
- package/lib/components/VirtualList/style/css.js +4 -0
- package/lib/components/VirtualList/style/index.d.ts +1 -0
- package/lib/components/VirtualList/style/index.js +4 -0
- package/lib/components/VirtualList/utils/CacheMap.d.ts +16 -0
- package/lib/components/VirtualList/utils/CacheMap.js +50 -0
- package/lib/components/VirtualList/utils/algorithmUtil.d.ts +23 -0
- package/lib/components/VirtualList/utils/algorithmUtil.js +84 -0
- package/lib/components/VirtualList/utils/isFirefox.d.ts +2 -0
- package/lib/components/VirtualList/utils/isFirefox.js +11 -0
- package/lib/components/VirtualList/utils/raf.d.ts +9 -0
- package/lib/components/VirtualList/utils/raf.js +53 -0
- package/lib/components/VirtualList/utils/scrollbarUtil.d.ts +1 -0
- package/lib/components/VirtualList/utils/scrollbarUtil.js +18 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +13 -0
- package/lib/hooks/useFloatingAnimation.d.ts +24 -0
- package/lib/hooks/useFloatingAnimation.js +51 -0
- package/lib/index.css +1 -0
- package/lib/index.d.ts +92 -0
- package/lib/index.js +519 -0
- package/lib/stories/docs/ComponentDocsPage.js +244 -0
- package/lib/stories/docs/componentDocMeta.js +101 -0
- package/lib/stories/docs/storybook-docs.css +401 -0
- package/lib/styles/index.css +5328 -0
- package/lib/utils/classnames.d.ts +5 -0
- package/lib/utils/classnames.js +25 -0
- package/lib/utils/clipboard.d.ts +2 -0
- package/lib/utils/clipboard.js +56 -0
- package/lib/utils/ref.d.ts +4 -0
- package/lib/utils/ref.js +41 -0
- package/lib/utils/uuid.d.ts +2 -0
- package/lib/utils/uuid.js +23 -0
- package/package.json +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Drawer = void 0;
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _hooks = require("@1money/hooks");
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _Icons = require("../Icons");
|
|
14
|
+
var _Portal = require("../Portal");
|
|
15
|
+
var _Typography = require("../Typography");
|
|
16
|
+
var _classnames = _interopRequireWildcard(require("../../utils/classnames"));
|
|
17
|
+
var _ref2 = require("../../utils/ref");
|
|
18
|
+
require("./style");
|
|
19
|
+
var _constants = require("./constants");
|
|
20
|
+
var _hooks2 = require("./hooks");
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
24
|
+
var t = {};
|
|
25
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
26
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
27
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
28
|
+
}
|
|
29
|
+
return t;
|
|
30
|
+
};
|
|
31
|
+
var renderControlButton = function renderControlButton(_ref) {
|
|
32
|
+
var classes = _ref.classes,
|
|
33
|
+
type = _ref.type,
|
|
34
|
+
label = _ref.label,
|
|
35
|
+
icon = _ref.icon,
|
|
36
|
+
onClick = _ref.onClick;
|
|
37
|
+
return (0, _jsxRuntime.jsx)("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
className: (0, _classnames.joinCls)(classes('control'), classes("control-".concat(type))),
|
|
40
|
+
"aria-label": label,
|
|
41
|
+
onClick: onClick,
|
|
42
|
+
children: icon
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var DrawerBase = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
46
|
+
var className = props.className,
|
|
47
|
+
style = props.style,
|
|
48
|
+
_props$prefixCls = props.prefixCls,
|
|
49
|
+
prefixCls = _props$prefixCls === void 0 ? 'drawer' : _props$prefixCls,
|
|
50
|
+
_props$open = props.open,
|
|
51
|
+
open = _props$open === void 0 ? false : _props$open,
|
|
52
|
+
_props$placement = props.placement,
|
|
53
|
+
placement = _props$placement === void 0 ? _constants.DRAWER_DEFAULTS.placement : _props$placement,
|
|
54
|
+
_props$width = props.width,
|
|
55
|
+
width = _props$width === void 0 ? _constants.DRAWER_DEFAULTS.width : _props$width,
|
|
56
|
+
_props$height = props.height,
|
|
57
|
+
height = _props$height === void 0 ? _constants.DRAWER_DEFAULTS.height : _props$height,
|
|
58
|
+
title = props.title,
|
|
59
|
+
footer = props.footer,
|
|
60
|
+
_props$maskClosable = props.maskClosable,
|
|
61
|
+
maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,
|
|
62
|
+
_props$showCloseIcon = props.showCloseIcon,
|
|
63
|
+
showCloseIcon = _props$showCloseIcon === void 0 ? true : _props$showCloseIcon,
|
|
64
|
+
_props$showBackIcon = props.showBackIcon,
|
|
65
|
+
showBackIcon = _props$showBackIcon === void 0 ? false : _props$showBackIcon,
|
|
66
|
+
closeIcon = props.closeIcon,
|
|
67
|
+
backIcon = props.backIcon,
|
|
68
|
+
children = props.children,
|
|
69
|
+
onClose = props.onClose,
|
|
70
|
+
onBack = props.onBack,
|
|
71
|
+
rootStyle = props.rootStyle,
|
|
72
|
+
wrapperStyle = props.wrapperStyle,
|
|
73
|
+
headerStyle = props.headerStyle,
|
|
74
|
+
bodyStyle = props.bodyStyle,
|
|
75
|
+
footerStyle = props.footerStyle,
|
|
76
|
+
rest = __rest(props, ["className", "style", "prefixCls", "open", "placement", "width", "height", "title", "footer", "maskClosable", "showCloseIcon", "showBackIcon", "closeIcon", "backIcon", "children", "onClose", "onBack", "rootStyle", "wrapperStyle", "headerStyle", "bodyStyle", "footerStyle"]);
|
|
77
|
+
var classes = (0, _classnames["default"])(prefixCls);
|
|
78
|
+
var drawerRef = (0, _react.useRef)(null);
|
|
79
|
+
var mergedRef = (0, _ref2.useComposeRef)(ref, drawerRef);
|
|
80
|
+
var _useDrawerTransition = (0, _hooks2.useDrawerTransition)(open, _constants.DRAWER_DEFAULTS.closeTimeoutMs),
|
|
81
|
+
mounted = _useDrawerTransition.mounted,
|
|
82
|
+
isVisible = _useDrawerTransition.open;
|
|
83
|
+
var hasHeader = title != null || showCloseIcon || showBackIcon;
|
|
84
|
+
var isHorizontal = _constants.DRAWER_HORIZONTAL_PLACEMENTS.has(placement);
|
|
85
|
+
var drawerLabel = typeof title === 'string' ? title : undefined;
|
|
86
|
+
var panelStyle = Object.assign(Object.assign((0, _defineProperty2["default"])({}, isHorizontal ? 'width' : 'height', isHorizontal ? width : height), wrapperStyle), style);
|
|
87
|
+
var handleClose = (0, _hooks.useEventCallback)(function () {
|
|
88
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
89
|
+
});
|
|
90
|
+
var handleBack = (0, _hooks.useEventCallback)(function () {
|
|
91
|
+
onBack === null || onBack === void 0 ? void 0 : onBack();
|
|
92
|
+
});
|
|
93
|
+
var handleOverlayClick = (0, _hooks.useEventCallback)(function () {
|
|
94
|
+
if (!maskClosable) return;
|
|
95
|
+
handleClose();
|
|
96
|
+
});
|
|
97
|
+
(0, _hooks2.useBodyScrollLock)(mounted && open);
|
|
98
|
+
(0, _hooks2.useDialogFocus)(mounted && open, drawerRef);
|
|
99
|
+
(0, _hooks2.useEscapeClose)(mounted && open, handleClose);
|
|
100
|
+
if (!mounted) return null;
|
|
101
|
+
return (0, _jsxRuntime.jsx)(_Portal.Portal, {
|
|
102
|
+
children: (0, _jsxRuntime.jsxs)("div", {
|
|
103
|
+
style: rootStyle,
|
|
104
|
+
className: (0, _classnames.joinCls)(classes('root'), isVisible ? classes('root-open') : classes('root-closed')),
|
|
105
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
|
106
|
+
"aria-hidden": "true",
|
|
107
|
+
className: classes('overlay'),
|
|
108
|
+
onClick: handleOverlayClick
|
|
109
|
+
}), (0, _jsxRuntime.jsxs)("div", Object.assign({}, rest, {
|
|
110
|
+
ref: mergedRef,
|
|
111
|
+
role: "dialog",
|
|
112
|
+
"aria-modal": "true",
|
|
113
|
+
"aria-label": drawerLabel,
|
|
114
|
+
tabIndex: -1,
|
|
115
|
+
style: panelStyle,
|
|
116
|
+
className: (0, _classnames.joinCls)(classes(), classes(placement), className),
|
|
117
|
+
children: [hasHeader && (0, _jsxRuntime.jsxs)("div", {
|
|
118
|
+
style: headerStyle,
|
|
119
|
+
className: classes('header'),
|
|
120
|
+
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
121
|
+
className: classes('header-main'),
|
|
122
|
+
children: [showBackIcon && renderControlButton({
|
|
123
|
+
classes: classes,
|
|
124
|
+
type: 'back',
|
|
125
|
+
label: 'Go back',
|
|
126
|
+
icon: backIcon !== null && backIcon !== void 0 ? backIcon : (0, _jsxRuntime.jsx)(_Icons.Icons, {
|
|
127
|
+
name: "arrowLeft",
|
|
128
|
+
size: _constants.DRAWER_DEFAULTS.controlIconSize
|
|
129
|
+
}),
|
|
130
|
+
onClick: handleBack
|
|
131
|
+
}), title != null && (0, _jsxRuntime.jsx)(_Typography.TypographyTitle, {
|
|
132
|
+
className: classes('title'),
|
|
133
|
+
size: _constants.DRAWER_TITLE_SIZE,
|
|
134
|
+
strong: true,
|
|
135
|
+
color: _constants.DRAWER_TITLE_COLOR,
|
|
136
|
+
children: title
|
|
137
|
+
})]
|
|
138
|
+
}), showCloseIcon && renderControlButton({
|
|
139
|
+
classes: classes,
|
|
140
|
+
type: 'close',
|
|
141
|
+
label: 'Close drawer',
|
|
142
|
+
icon: closeIcon !== null && closeIcon !== void 0 ? closeIcon : (0, _jsxRuntime.jsx)(_Icons.Icons, {
|
|
143
|
+
name: "cross",
|
|
144
|
+
size: _constants.DRAWER_DEFAULTS.controlIconSize
|
|
145
|
+
}),
|
|
146
|
+
onClick: handleClose
|
|
147
|
+
})]
|
|
148
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
149
|
+
style: bodyStyle,
|
|
150
|
+
className: classes('body'),
|
|
151
|
+
children: children
|
|
152
|
+
}), footer != null && (0, _jsxRuntime.jsx)("div", {
|
|
153
|
+
style: footerStyle,
|
|
154
|
+
className: classes('footer'),
|
|
155
|
+
children: footer
|
|
156
|
+
})]
|
|
157
|
+
}))]
|
|
158
|
+
})
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
DrawerBase.displayName = 'Drawer';
|
|
162
|
+
var Drawer = exports.Drawer = /*#__PURE__*/(0, _react.memo)(DrawerBase);
|
|
163
|
+
Drawer.displayName = 'Drawer';
|
|
164
|
+
var _default = exports["default"] = Drawer;
|
|
165
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvRHJhd2VyL0RyYXdlci5qcyIsImNvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMvRHJhd2VyL0RyYXdlci50c3giXSwibmFtZXMiOlsiX2pzeFJ1bnRpbWUiLCJyZXF1aXJlIiwiX2hvb2tzIiwiX3JlYWN0IiwiX0ljb25zIiwiX1BvcnRhbCIsIl9UeXBvZ3JhcGh5IiwiX2NsYXNzbmFtZXMiLCJfaW50ZXJvcFJlcXVpcmVXaWxkY2FyZCIsIl9yZWYyIiwiX2NvbnN0YW50cyIsIl9ob29rczIiLCJfZ2V0UmVxdWlyZVdpbGRjYXJkQ2FjaGUiLCJlIiwiV2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IsIFwiYXJpYS1tb2RhbFwiOiBcInRydWVcIiwgXCJhcmlhLWxhYmVsXCI6IGRyYXdlckxhYmVsLCB0YWJJbmRleDogLTEsIHN0eWxlOiBwYW5lbFN0eWxlLCBjbGFzc05hbWU6IGpvaW5DbHMoY2xhc3NlcygpLCBjbGFzc2VzKHBsYWNlbWVudCksIGNsYXNzTmFtZSksIGNoaWxkcmVuOiBbaGFzSGVhZGVyICYmIChfanN4cyhcImRpdlwiLCB7IHN0eWxlOiBoZWFkZXJTdHlsZSwgY2xhc3NOYW1lOiBjbGFzc2VzKCdoZWFkZXInKSwgY2hpbGRyZW46IFtfanN4cyhcImRpdlwiLCB7IGNsYXNzTmFtZTogY2xhc3NlcygnaGVhZGVyLW1haW4nKSwgY2hpbGRyZW46IFtzaG93QmFja0ljb24gJiYgcmVuZGVyQ29udHJvbEJ1dHRvbih7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzZXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6ICdiYWNrJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6ICdHbyBiYWNrJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbjogYmFja0ljb24gIT09IG51bGwgJiYgYmFja0ljb24gIT09IHZvaWQgMCA/IGJhY2tJY29uIDogX2pzeChJY29ucywgeyBuYW1lOiBcImFycm93TGVmdFwiLCBzaXplOiBEUkFXRVJfREVGQVVMVFMuY29udHJvbEljb25TaXplIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNsaWNrOiBoYW5kbGVCYWNrLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLCB0aXRsZSAhPSBudWxsICYmIF9qc3goVHlwb2dyYXBoeVRpdGxlLCB7IGNsYXNzTmFtZTogY2xhc3NlcygndGl0bGUnKSwgc2l6ZTogRFJBV0VSX1RJVExFX1NJWkUsIHN0cm9uZzogdHJ1ZSwgY29sb3I6IERSQVdFUl9USVRMRV9DT0xPUiwgY2hpbGRyZW46IHRpdGxlIH0pXSB9KSwgc2hvd0Nsb3NlSWNvbiAmJiByZW5kZXJDb250cm9sQnV0dG9uKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsYXNzZXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiAnY2xvc2UnLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6ICdDbG9zZSBkcmF3ZXInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbjogY2xvc2VJY29uICE9PSBudWxsICYmIGNsb3NlSWNvbiAhPT0gdm9pZCAwID8gY2xvc2VJY29uIDogX2pzeChJY29ucywgeyBuYW1lOiBcImNyb3NzXCIsIHNpemU6IERSQVdFUl9ERUZBVUxUUy5jb250cm9sSWNvblNpemUgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNsaWNrOiBoYW5kbGVDbG9zZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSldIH0pKSwgX2pzeChcImRpdlwiLCB7IHN0eWxlOiBib2R5U3R5bGUsIGNsYXNzTmFtZTogY2xhc3NlcygnYm9keScpLCBjaGlsZHJlbjogY2hpbGRyZW4gfSksIGZvb3RlciAhPSBudWxsICYmIChfanN4KFwiZGl2XCIsIHsgc3R5bGU6IGZvb3RlclN0eWxlLCBjbGFzc05hbWU6IGNsYXNzZXMoJ2Zvb3RlcicpLCBjaGlsZHJlbjogZm9vdGVyIH0pKV0gfSkpXSB9KSB9KSk7XG59KTtcbkRyYXdlckJhc2UuZGlzcGxheU5hbWUgPSAnRHJhd2VyJztcbmV4cG9ydCBjb25zdCBEcmF3ZXIgPSBtZW1vKERyYXdlckJhc2UpO1xuRHJhd2VyLmRpc3BsYXlOYW1lID0gJ0RyYXdlcic7XG5leHBvcnQgZGVmYXVsdCBEcmF3ZXI7IixudWxsXSwic291cmNlUm9vdCI6Ii4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYyJ9
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TypographyColor, TypographyTitleSize } from "../Typography";
|
|
2
|
+
export declare const DRAWER_PLACEMENTS: readonly ["top", "right", "bottom", "left"];
|
|
3
|
+
export declare const DRAWER_HORIZONTAL_PLACEMENTS: ReadonlySet<(typeof DRAWER_PLACEMENTS)[number]>;
|
|
4
|
+
export declare const DRAWER_PHASES: {
|
|
5
|
+
readonly closed: "closed";
|
|
6
|
+
readonly opening: "opening";
|
|
7
|
+
readonly open: "open";
|
|
8
|
+
readonly closing: "closing";
|
|
9
|
+
};
|
|
10
|
+
export declare const DRAWER_DEFAULTS: {
|
|
11
|
+
readonly closeTimeoutMs: 300;
|
|
12
|
+
readonly controlIconSize: 20;
|
|
13
|
+
readonly width: 360;
|
|
14
|
+
readonly height: 360;
|
|
15
|
+
readonly placement: "right";
|
|
16
|
+
};
|
|
17
|
+
export declare const DRAWER_TITLE_SIZE: TypographyTitleSize;
|
|
18
|
+
export declare const DRAWER_TITLE_COLOR: TypographyColor;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DRAWER_TITLE_SIZE = exports.DRAWER_TITLE_COLOR = exports.DRAWER_PLACEMENTS = exports.DRAWER_PHASES = exports.DRAWER_HORIZONTAL_PLACEMENTS = exports.DRAWER_DEFAULTS = void 0;
|
|
7
|
+
var DRAWER_PLACEMENTS = exports.DRAWER_PLACEMENTS = ['top', 'right', 'bottom', 'left'];
|
|
8
|
+
var DRAWER_HORIZONTAL_PLACEMENTS = exports.DRAWER_HORIZONTAL_PLACEMENTS = new Set(['left', 'right']);
|
|
9
|
+
var DRAWER_PHASES = exports.DRAWER_PHASES = {
|
|
10
|
+
closed: 'closed',
|
|
11
|
+
opening: 'opening',
|
|
12
|
+
open: 'open',
|
|
13
|
+
closing: 'closing'
|
|
14
|
+
};
|
|
15
|
+
var DRAWER_DEFAULTS = exports.DRAWER_DEFAULTS = {
|
|
16
|
+
closeTimeoutMs: 300,
|
|
17
|
+
controlIconSize: 20,
|
|
18
|
+
width: 360,
|
|
19
|
+
height: 360,
|
|
20
|
+
placement: 'right'
|
|
21
|
+
};
|
|
22
|
+
// ── Typography ──
|
|
23
|
+
var DRAWER_TITLE_SIZE = exports.DRAWER_TITLE_SIZE = 'lg';
|
|
24
|
+
var DRAWER_TITLE_COLOR = exports.DRAWER_TITLE_COLOR = 'default';
|
|
25
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMvRHJhd2VyL2NvbnN0YW50cy50cyIsImNvbXBvbmVudHMvRHJhd2VyL2NvbnN0YW50cy5qcyJdLCJuYW1lcyI6WyJEUkFXRVJfUExBQ0VNRU5UUyIsImV4cG9ydHMiLCJEUkFXRVJfSE9SSVpPTlRBTF9QTEFDRU1FTlRTIiwiU2V0IiwiRFJBV0VSX1BIQVNFUyIsImNsb3NlZCIsIm9wZW5pbmciLCJvcGVuIiwiY2xvc2luZyIsIkRSQVdFUl9ERUZBVUxUUyIsImNsb3NlVGltZW91dE1zIiwiY29udHJvbEljb25TaXplIiwid2lkdGgiLCJoZWlnaHQiLCJwbGFjZW1lbnQiLCJEUkFXRVJfVElUTEVfU0laRSIsIkRSQVdFUl9USVRMRV9DT0xPUiJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBRU8sSUFBTUEsaUJBQWlCLEdBQUFDLE9BQUEsQ0FBQUQsaUJBQUEsR0FBRyxDQUFD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lZCcsXG4gICAgb3BlbmluZzogJ29wZW5pbmcnLFxuICAgIG9wZW46ICdvcGVuJyxcbiAgICBjbG9zaW5nOiAnY2xvc2luZycsXG59O1xuZXhwb3J0IGNvbnN0IERSQVdFUl9ERUZBVUxUUyA9IHtcbiAgICBjbG9zZVRpbWVvdXRNczogMzAwLFxuICAgIGNvbnRyb2xJY29uU2l6ZTogMjAsXG4gICAgd2lkdGg6IDM2MCxcbiAgICBoZWlnaHQ6IDM2MCxcbiAgICBwbGFjZW1lbnQ6ICdyaWdodCcsXG59O1xuLy8g4pSA4pSAIFR5cG9ncmFwaHkg4pSA4pSAXG5leHBvcnQgY29uc3QgRFJBV0VSX1RJVExFX1NJWkUgPSAnbGcnO1xuZXhwb3J0IGNvbnN0IERSQVdFUl9USVRMRV9DT0xPUiA9ICdkZWZhdWx0JzsiXSwic291cmNlUm9vdCI6Ii4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYyJ9
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "useBodyScrollLock", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _useBodyScrollLock.useBodyScrollLock;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "useDialogFocus", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _useDialogFocus.useDialogFocus;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "useDrawerTransition", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _useDrawerTransition.useDrawerTransition;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "useEscapeClose", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _useEscapeClose.useEscapeClose;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _useBodyScrollLock = require("./useBodyScrollLock");
|
|
31
|
+
var _useDialogFocus = require("./useDialogFocus");
|
|
32
|
+
var _useDrawerTransition = require("./useDrawerTransition");
|
|
33
|
+
var _useEscapeClose = require("./useEscapeClose");
|
|
34
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvRHJhd2VyL3NyYy9jb21wb25lbnRzL0RyYXdlci9ob29rcy9pbmRleC50cyJdLCJuYW1lcyI6WyJfdXNlQm9keVNjcm9sbExvY2siLCJyZXF1aXJlIiwiX3VzZURpYWxvZ0ZvY3VzIiwiX3VzZURyYXdlclRyYW5zaXRpb24iLCJfdXNlRXNjYXBlQ2xvc2UiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsSUFBQUEsa0JBQUEsR0FBQUMsT0FBQTtBQUNBLElBQUFDLGVBQUEsR0FBQUQsT0FBQTtBQUNBLElBQUFFLG9CQUFBLEdBQUFGLE9BQUE7QUFDQSxJQUFBRyxlQUFBLEdBQUFILE9BQUEiLCJmaWxlIjoiY29tcG9uZW50cy9EcmF3ZXIvaG9va3MvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6W251bGxdLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useBodyScrollLock: (locked: boolean) => void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useBodyScrollLock = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var scrollLockCount = 0;
|
|
9
|
+
var setBodyOverflow = function setBodyOverflow(value) {
|
|
10
|
+
if (typeof document === 'undefined') return;
|
|
11
|
+
document.body.style.overflow = value;
|
|
12
|
+
};
|
|
13
|
+
var lockBodyScroll = function lockBodyScroll() {
|
|
14
|
+
scrollLockCount += 1;
|
|
15
|
+
setBodyOverflow('hidden');
|
|
16
|
+
};
|
|
17
|
+
var unlockBodyScroll = function unlockBodyScroll() {
|
|
18
|
+
scrollLockCount = Math.max(0, scrollLockCount - 1);
|
|
19
|
+
if (scrollLockCount !== 0) return;
|
|
20
|
+
window.requestAnimationFrame(function () {
|
|
21
|
+
if (scrollLockCount === 0) {
|
|
22
|
+
setBodyOverflow('');
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var useBodyScrollLock = exports.useBodyScrollLock = function useBodyScrollLock(locked) {
|
|
27
|
+
(0, _react.useEffect)(function () {
|
|
28
|
+
if (!locked) return undefined;
|
|
29
|
+
lockBodyScroll();
|
|
30
|
+
return function () {
|
|
31
|
+
unlockBodyScroll();
|
|
32
|
+
};
|
|
33
|
+
}, [locked]);
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvRHJhd2VyL3NyYy9jb21wb25lbnRzL0RyYXdlci9ob29rcy91c2VCb2R5U2Nyb2xsTG9jay50cyJdLCJuYW1lcyI6WyJfcmVhY3QiLCJyZXF1aXJlIiwic2Nyb2xsTG9ja0NvdW50Iiwic2V0Qm9keU92ZXJmbG93IiwidmFsdWUiLCJkb2N1bWVudCIsImJvZHkiLCJzdHlsZSIsIm92ZXJmbG93IiwibG9ja0JvZHlTY3JvbGwiLCJ1bmxvY2tCb2R5U2Nyb2xsIiwiTWF0aCIsIm1heCIsIndpbmRvdyIsInJlcXVlc3RBbmltYXRpb25GcmFtZSIsInVzZ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ENBQUNELE1BQU0sRUFBRSxPQUFPRSxTQUFTO0lBRTdCVixjQUFjLENBQUEsQ0FBRTtJQUVoQixPQUFPLFlBQUs7TUFDVkMsZ0JBQWdCLENBQUEsQ0FBRTtJQUNwQixDQUFDO0VBQ0gsQ0FBQyxFQUFFLENBQUNPLE1BQU0sQ0FBQyxDQUFDO0FBQ2QsQ0FBQyIsImZpbGUiOiJjb21wb25lbnRzL0RyYXdlci9ob29rcy91c2VCb2R5U2Nyb2xsTG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbbnVsbF0sInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMifQ==
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useDialogFocus = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var useDialogFocus = exports.useDialogFocus = function useDialogFocus(active, dialogRef) {
|
|
9
|
+
var previousActiveElementRef = (0, _react.useRef)(null);
|
|
10
|
+
(0, _react.useEffect)(function () {
|
|
11
|
+
if (!active || typeof document === 'undefined') return undefined;
|
|
12
|
+
previousActiveElementRef.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
13
|
+
var frame = window.requestAnimationFrame(function () {
|
|
14
|
+
var _a;
|
|
15
|
+
(_a = dialogRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
16
|
+
});
|
|
17
|
+
return function () {
|
|
18
|
+
window.cancelAnimationFrame(frame);
|
|
19
|
+
};
|
|
20
|
+
}, [active, dialogRef]);
|
|
21
|
+
(0, _react.useEffect)(function () {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
if (active) return;
|
|
24
|
+
(_b = (_a = previousActiveElementRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
25
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X2EgPSBwcmV2aW91c0FjdGl2ZUVsZW1lbnRSZWYuY3VycmVudCkgPT09IG51bGwgfHwgX2EgPT09IHZvaWQgMCA/IHZvaWQgMCA6IF9hLmZvY3VzKSA9PT0gbnVsbCB8fCBfYiA9PT0gdm9pZCAwID8gdm9pZCAwIDogX2IuY2FsbChfYSk7XG4gICAgICAgIHByZXZpb3VzQWN0aXZlRWxlbWVudFJlZi5jdXJyZW50ID0gbnVsbDtcbiAgICB9LCBbYWN0aXZlXSk7XG59OyJdLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjIn0=
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useDrawerTransition = void 0;
|
|
8
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _constants = require("../constants");
|
|
11
|
+
var clearTimer = function clearTimer(timerRef) {
|
|
12
|
+
if (timerRef.current === null) return;
|
|
13
|
+
window.clearTimeout(timerRef.current);
|
|
14
|
+
timerRef.current = null;
|
|
15
|
+
};
|
|
16
|
+
var clearFrame = function clearFrame(frameRef) {
|
|
17
|
+
if (frameRef.current === null) return;
|
|
18
|
+
window.cancelAnimationFrame(frameRef.current);
|
|
19
|
+
frameRef.current = null;
|
|
20
|
+
};
|
|
21
|
+
var useDrawerTransition = exports.useDrawerTransition = function useDrawerTransition(open, closeDelay) {
|
|
22
|
+
var _useState = (0, _react.useState)(open ? _constants.DRAWER_PHASES.open : _constants.DRAWER_PHASES.closed),
|
|
23
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
24
|
+
phase = _useState2[0],
|
|
25
|
+
setPhase = _useState2[1];
|
|
26
|
+
var closeTimerRef = (0, _react.useRef)(null);
|
|
27
|
+
var openFrameRef = (0, _react.useRef)(null);
|
|
28
|
+
(0, _react.useEffect)(function () {
|
|
29
|
+
return function () {
|
|
30
|
+
clearTimer(closeTimerRef);
|
|
31
|
+
clearFrame(openFrameRef);
|
|
32
|
+
};
|
|
33
|
+
}, []);
|
|
34
|
+
(0, _react.useEffect)(function () {
|
|
35
|
+
if (open) {
|
|
36
|
+
clearTimer(closeTimerRef);
|
|
37
|
+
if (phase === _constants.DRAWER_PHASES.open || phase === _constants.DRAWER_PHASES.opening) return;
|
|
38
|
+
setPhase(_constants.DRAWER_PHASES.opening);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (phase === _constants.DRAWER_PHASES.closed || phase === _constants.DRAWER_PHASES.closing) return;
|
|
42
|
+
clearFrame(openFrameRef);
|
|
43
|
+
setPhase(_constants.DRAWER_PHASES.closing);
|
|
44
|
+
closeTimerRef.current = window.setTimeout(function () {
|
|
45
|
+
setPhase(_constants.DRAWER_PHASES.closed);
|
|
46
|
+
closeTimerRef.current = null;
|
|
47
|
+
}, closeDelay);
|
|
48
|
+
}, [closeDelay, open, phase]);
|
|
49
|
+
(0, _react.useEffect)(function () {
|
|
50
|
+
if (phase !== _constants.DRAWER_PHASES.opening) return undefined;
|
|
51
|
+
openFrameRef.current = window.requestAnimationFrame(function () {
|
|
52
|
+
setPhase(_constants.DRAWER_PHASES.open);
|
|
53
|
+
openFrameRef.current = null;
|
|
54
|
+
});
|
|
55
|
+
return function () {
|
|
56
|
+
clearFrame(openFrameRef);
|
|
57
|
+
};
|
|
58
|
+
}, [phase]);
|
|
59
|
+
return {
|
|
60
|
+
mounted: phase !== _constants.DRAWER_PHASES.closed,
|
|
61
|
+
open: phase === _constants.DRAWER_PHASES.open
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJ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xvc2VUaW1lclJlZi5jdXJyZW50ID0gbnVsbDtcbiAgICAgICAgfSwgY2xvc2VEZWxheSk7XG4gICAgfSwgW2Nsb3NlRGVsYXksIG9wZW4sIHBoYXNlXSk7XG4gICAgdXNlRWZmZWN0KCgpID0+IHtcbiAgICAgICAgaWYgKHBoYXNlICE9PSBEUkFXRVJfUEhBU0VTLm9wZW5pbmcpXG4gICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgICAgICBvcGVuRnJhbWVSZWYuY3VycmVudCA9IHdpbmRvdy5yZXF1ZXN0QW5pbWF0aW9uRnJhbWUoKCkgPT4ge1xuICAgICAgICAgICAgc2V0UGhhc2UoRFJBV0VSX1BIQVNFUy5vcGVuKTtcbiAgICAgICAgICAgIG9wZW5GcmFtZVJlZi5jdXJyZW50ID0gbnVsbDtcbiAgICAgICAgfSk7XG4gICAgICAgIHJldHVybiAoKSA9PiB7XG4gICAgICAgICAgICBjbGVhckZyYW1lKG9wZW5GcmFtZVJlZik7XG4gICAgICAgIH07XG4gICAgfSwgW3BoYXNlXSk7XG4gICAgcmV0dXJuIHtcbiAgICAgICAgbW91bnRlZDogcGhhc2UgIT09IERSQVdFUl9QSEFTRVMuY2xvc2VkLFxuICAgICAgICBvcGVuOiBwaGFzZSA9PT0gRFJBV0VSX1BIQVNFUy5vcGVuLFxuICAgIH07XG59OyJdLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useEscapeClose: (enabled: boolean, onClose: (() => void) | undefined) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useEscapeClose = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var useEscapeClose = exports.useEscapeClose = function useEscapeClose(enabled, onClose) {
|
|
9
|
+
(0, _react.useEffect)(function () {
|
|
10
|
+
if (!enabled || typeof document === 'undefined') return undefined;
|
|
11
|
+
var handleKeyDown = function handleKeyDown(event) {
|
|
12
|
+
if (event.key !== 'Escape') return;
|
|
13
|
+
event.preventDefault();
|
|
14
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
15
|
+
};
|
|
16
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
17
|
+
return function () {
|
|
18
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
19
|
+
};
|
|
20
|
+
}, [enabled, onClose]);
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvRHJhd2VyL3NyYy9jb21wb25lbnRzL0RyYXdlci9ob29rcy91c2VFc2NhcGVDbG9zZS50cyJdLCJuYW1lcyI6WyJfcmVhY3QiLCJyZXF1aXJlIiwidXNlRXNjYXBlQ2xvc2UiLCJleHBvcnRzIiwiZW5hYmxlZCIsIm9uQ2xvc2UiLCJ1c2VFZmZlY3QiLCJkb2N1bWVudCIsInVuZGVmaW5lZCIsImhhbmRsZUtleURvd24iLCJldmVudCIsImtleSIsInByZXZlbnREZWZhdWx0IiwiYWRkRXZlbnRMaXN0ZW5lciIsInJlbW92ZUV2ZW50TGlzdGVuZXIiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLElBQUFBLE1BQUEsR0FBQUMsT0FBQTtBQUVPLElBQU1DLGNBQWMsR0FBQUMsT0FBQSxDQUFBRCxjQUFBLEdBQUcsU0FBakJBLGNBQWNBLENBQUlFLE9BQWdCLEVBQUVDLE9BQWlDLEVBQUk7RUFDcEYsSUFBQUMsZ0JBQVMsRUFBQyxZQUFLO0lBQ2IsSUFBSSxDQUFDRixPQUFPLElBQUksT0FBT0csUUFBUSxLQUFLLFdBQVcsRUFBRSxPQUFPQyxTQUFTO0lBRWpFLElBQU1DLGFBQWEsR0FBRyxTQUFoQkEsYUFBYUEsQ0FBSUMsS0FBb0IsRUFBSTtNQUM3QyxJQUFJQSxLQUFLLENBQUNDLEdBQUcsS0FBSyxRQUFRLEVBQUU7TUFFNUJELEtBQUssQ0FBQ0UsY0FBYyxDQUFBLENBQUU7TUFDdEJQLE9BQU8sS0FBQSxJQUFBLElBQVBBLE9BQU8sS0FBQSxLQUFBLENBQUEsR0FBQSxLQUFBLENBQUEsR0FBUEEsT0FBTyxDQUFBLENBQUk7SUFDYixDQUFDO0lBRURFLFFBQVEsQ0FBQ00sZ0JBQWdCLENBQUMsU0FBUyxFQUFFSixhQUFhLENBQUM7SUFFbkQsT0FBTyxZQUFLO01BQ1ZGLFFBQVEsQ0FBQ08sbUJBQW1CLENBQUMsU0FBUyxFQUFFTCxhQUFhLENBQUM7SUFDeEQsQ0FBQztFQUNILENBQUMsRUFBRSxDQUFDTCxPQUFPLEVBQUVDLE9BQU8sQ0FBQyxDQUFDO0FBQ3hCLENBQUMiLCJmaWxlIjoiY29tcG9uZW50cy9EcmF3ZXIvaG9va3MvdXNlRXNjYXBlQ2xvc2UuanMiLCJzb3VyY2VzQ29udGVudCI6W251bGxdLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjIn0=
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
Drawer: true
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "Drawer", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function get() {
|
|
12
|
+
return _Drawer.Drawer;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "default", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function get() {
|
|
18
|
+
return _Drawer.Drawer;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
var _Drawer = require("./Drawer");
|
|
22
|
+
var _interface = require("./interface");
|
|
23
|
+
Object.keys(_interface).forEach(function (key) {
|
|
24
|
+
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
26
|
+
if (key in exports && exports[key] === _interface[key]) return;
|
|
27
|
+
Object.defineProperty(exports, key, {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function get() {
|
|
30
|
+
return _interface[key];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
var _constants = require("./constants");
|
|
35
|
+
Object.keys(_constants).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
38
|
+
if (key in exports && exports[key] === _constants[key]) return;
|
|
39
|
+
Object.defineProperty(exports, key, {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function get() {
|
|
42
|
+
return _constants[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMvRHJhd2VyL2luZGV4LnRzIl0sIm5hbWVzIjpbIl9EcmF3ZXIiLCJyZXF1aXJlIiwiX2ludGVyZmFjZSIsIk9iamVjdCIsImtleXMiLCJmb3JFYWNoIiwia2V5IiwicHJvdG90eXBlIiwiaGFzT3duUHJvcGVydHkiLCJjYWxsIiwiX2V4cG9ydE5hbWVzIiwiZXhwb3J0cyIsImRlZmluZVByb3BlcnR5IiwiZW51bWVyYWJsZSIsImdldCIsIl9jb25zdGFudHMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsSUFBQUEsT0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bmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbbnVsbF0sInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMifQ==
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { DRAWER_PLACEMENTS } from './constants';
|
|
3
|
+
export type DrawerPlacement = (typeof DRAWER_PLACEMENTS)[number];
|
|
4
|
+
export interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'title'> {
|
|
5
|
+
prefixCls?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Controls the open state of the drawer
|
|
8
|
+
* @defaultValue false
|
|
9
|
+
*/
|
|
10
|
+
open?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Position where the drawer slides out from
|
|
13
|
+
* @defaultValue 'right'
|
|
14
|
+
*/
|
|
15
|
+
placement?: DrawerPlacement;
|
|
16
|
+
/**
|
|
17
|
+
* Width of the drawer when placement is 'left' or 'right'
|
|
18
|
+
* @defaultValue 360
|
|
19
|
+
*/
|
|
20
|
+
width?: string | number;
|
|
21
|
+
/**
|
|
22
|
+
* Height of the drawer when placement is 'top' or 'bottom'
|
|
23
|
+
* @defaultValue 360
|
|
24
|
+
*/
|
|
25
|
+
height?: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* Title content displayed in the drawer header
|
|
28
|
+
*/
|
|
29
|
+
title?: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Footer content displayed at the bottom of the drawer
|
|
32
|
+
*/
|
|
33
|
+
footer?: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Whether clicking the mask can close the drawer
|
|
36
|
+
* @defaultValue true
|
|
37
|
+
*/
|
|
38
|
+
maskClosable?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to show the close icon in the header
|
|
41
|
+
* @defaultValue true
|
|
42
|
+
*/
|
|
43
|
+
showCloseIcon?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether to show the back icon in the header
|
|
46
|
+
* @defaultValue false
|
|
47
|
+
*/
|
|
48
|
+
showBackIcon?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Custom close icon element
|
|
51
|
+
*/
|
|
52
|
+
closeIcon?: ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Custom back icon element
|
|
55
|
+
*/
|
|
56
|
+
backIcon?: ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* Main content of the drawer
|
|
59
|
+
*/
|
|
60
|
+
children?: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Callback function triggered when the drawer is closed
|
|
63
|
+
*/
|
|
64
|
+
onClose?: () => void;
|
|
65
|
+
/**
|
|
66
|
+
* Callback function triggered when the back icon is clicked
|
|
67
|
+
*/
|
|
68
|
+
onBack?: () => void;
|
|
69
|
+
/** Custom styles for the root container */
|
|
70
|
+
rootStyle?: CSSProperties;
|
|
71
|
+
/** Custom styles for the drawer wrapper */
|
|
72
|
+
wrapperStyle?: CSSProperties;
|
|
73
|
+
/** Custom styles for the header section */
|
|
74
|
+
headerStyle?: CSSProperties;
|
|
75
|
+
/** Custom styles for the body section */
|
|
76
|
+
bodyStyle?: CSSProperties;
|
|
77
|
+
/** Custom styles for the footer section */
|
|
78
|
+
footerStyle?: CSSProperties;
|
|
79
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy9EcmF3ZXIvaW50ZXJmYWNlLmpzIiwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjIiwic291cmNlcyI6WyJjb21wb25lbnRzL0RyYXdlci9pbnRlcmZhY2UuanMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHt9OyJdLCJtYXBwaW5ncyI6IiIsImlnbm9yZUxpc3QiOltdfQ==
|