@1money/component-ui 0.0.1
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/.agents/skills/1money-component-dev/SKILL.md +224 -0
- package/.agents/skills/1money-component-dev/checklist.md +159 -0
- package/.agents/skills/1money-component-dev/references/ComponentPatterns.md +478 -0
- package/.agents/skills/1money-component-dev/references/FigmaExtractionChecklist.md +144 -0
- package/.agents/skills/1money-component-dev/references/HooksGuide.md +360 -0
- package/.agents/skills/1money-component-dev/references/SemanticColors.md +215 -0
- package/.agents/skills/1money-component-dev/references/StyleSystemAPI.md +389 -0
- package/.claude/settings.local.json +103 -0
- package/.claude/skills/1money-component-dev/SKILL.md +229 -0
- package/.claude/skills/1money-component-dev/checklist.md +159 -0
- package/.claude/skills/1money-component-dev/references/ComponentPatterns.md +478 -0
- package/.claude/skills/1money-component-dev/references/FigmaExtractionChecklist.md +144 -0
- package/.claude/skills/1money-component-dev/references/HooksGuide.md +360 -0
- package/.claude/skills/1money-component-dev/references/SemanticColors.md +215 -0
- package/.claude/skills/1money-component-dev/references/StyleSystemAPI.md +389 -0
- package/.claude/skills/1money-component-review/SKILL.md +316 -0
- package/.claude/skills/component-pipeline/SKILL.md +116 -0
- package/.claude/skills/component-pipeline/checklist.md +125 -0
- package/.hintrc +13 -0
- package/@types/global.d.ts +28 -0
- package/AGENTS.md +540 -0
- package/CLAUDE.md +1 -0
- package/LICENSE +21 -0
- package/README.md +169 -0
- package/es/components/Accordion/Accordion.d.ts +6 -0
- package/es/components/Accordion/Accordion.js +102 -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 +1 -0
- package/es/components/Accordion/style/Accordion.scss +127 -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 +94 -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 +40 -0
- package/es/components/Alert/interface.js +6 -0
- package/es/components/Alert/style/Alert.css +1 -0
- package/es/components/Alert/style/Alert.scss +89 -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 +121 -0
- package/es/components/Button/constants.d.ts +56 -0
- package/es/components/Button/constants.js +69 -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 +14 -0
- package/es/components/Button/interface.js +2 -0
- package/es/components/Button/style/Button.css +1 -0
- package/es/components/Button/style/Button.scss +190 -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 +112 -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 +1 -0
- package/es/components/Calendar/style/Calendar.scss +377 -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 +1 -0
- package/es/components/Carousel/style/Carousel.scss +63 -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/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 +120 -0
- package/es/components/Checkbox/CheckboxGroup.d.ts +5 -0
- package/es/components/Checkbox/CheckboxGroup.js +140 -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 +7 -0
- package/es/components/Checkbox/constants.js +8 -0
- package/es/components/Checkbox/index.d.ts +10 -0
- package/es/components/Checkbox/index.js +10 -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 +1 -0
- package/es/components/Checkbox/style/Checkbox.scss +235 -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 +1 -0
- package/es/components/CoachMark/style/CoachMark.scss +176 -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/Copy.d.ts +6 -0
- package/es/components/Copy/Copy.js +70 -0
- package/es/components/Copy/index.d.ts +4 -0
- package/es/components/Copy/index.js +5 -0
- package/es/components/Copy/interface.d.ts +20 -0
- package/es/components/Copy/interface.js +2 -0
- package/es/components/Copy/style/Copy.css +1 -0
- package/es/components/Copy/style/Copy.scss +35 -0
- package/es/components/Copy/style/css.js +2 -0
- package/es/components/Copy/style/index.d.ts +1 -0
- package/es/components/Copy/style/index.js +2 -0
- package/es/components/Divider/Divider.d.ts +4 -0
- package/es/components/Divider/Divider.js +53 -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 +20 -0
- package/es/components/Divider/interface.js +2 -0
- package/es/components/Divider/style/Divider.css +1 -0
- package/es/components/Divider/style/Divider.scss +149 -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 +271 -0
- package/es/components/Drawer/constants.d.ts +15 -0
- package/es/components/Drawer/constants.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 +1 -0
- package/es/components/Drawer/style/Drawer.scss +163 -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 +24 -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 +0 -0
- package/es/components/Dropdown/style/Dropdown.scss +2 -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 +1 -0
- package/es/components/Empty/style/Empty.scss +53 -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 +1 -0
- package/es/components/Flex/style/Flex.scss +70 -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/Form/Form.d.ts +4 -0
- package/es/components/Form/Form.js +73 -0
- package/es/components/Form/FormItem.d.ts +4 -0
- package/es/components/Form/FormItem.js +183 -0
- package/es/components/Form/constants.d.ts +19 -0
- package/es/components/Form/constants.js +19 -0
- package/es/components/Form/context.d.ts +5 -0
- package/es/components/Form/context.js +19 -0
- package/es/components/Form/hooks/useForm.d.ts +3 -0
- package/es/components/Form/hooks/useForm.js +541 -0
- package/es/components/Form/hooks/useFormCore.d.ts +3 -0
- package/es/components/Form/hooks/useFormCore.js +348 -0
- package/es/components/Form/index.d.ts +10 -0
- package/es/components/Form/index.js +17 -0
- package/es/components/Form/interface.d.ts +166 -0
- package/es/components/Form/interface.js +2 -0
- package/es/components/Form/style/Form.css +1 -0
- package/es/components/Form/style/Form.scss +57 -0
- package/es/components/Form/style/css.js +2 -0
- package/es/components/Form/style/index.d.ts +1 -0
- package/es/components/Form/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 +1 -0
- package/es/components/Grid/style/Grid.scss +184 -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 +192 -0
- package/es/components/Icons/Icons.js +192 -0
- package/es/components/Icons/Illustrations.d.ts +18 -0
- package/es/components/Icons/Illustrations.js +874 -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 +265 -0
- package/es/components/Icons/SVGs.js +1918 -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 +27 -0
- package/es/components/Icons/interface.js +2 -0
- package/es/components/Icons/style/Icons.css +1 -0
- package/es/components/Icons/style/Icons.scss +85 -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 +192 -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 +1 -0
- package/es/components/Input/Amount/style/Amount.scss +89 -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 +1 -0
- package/es/components/Input/FieldShell/FieldShell.d.ts +19 -0
- package/es/components/Input/FieldShell/FieldShell.js +76 -0
- package/es/components/Input/FieldShell/FieldShell.scss +62 -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 +1 -0
- package/es/components/Input/Input/Input.d.ts +3 -0
- package/es/components/Input/Input/Input.js +158 -0
- package/es/components/Input/Input/Input.scss +131 -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 +337 -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 +1 -0
- package/es/components/Input/OTP/OTP.d.ts +5 -0
- package/es/components/Input/OTP/OTP.js +150 -0
- package/es/components/Input/OTP/OTP.scss +75 -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 +121 -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 +144 -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 +1 -0
- package/es/components/Input/TextArea/TextArea.d.ts +5 -0
- package/es/components/Input/TextArea/TextArea.js +93 -0
- package/es/components/Input/TextArea/TextArea.scss +87 -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 +1 -0
- package/es/components/Input/Trade/Trade.d.ts +5 -0
- package/es/components/Input/Trade/Trade.js +130 -0
- package/es/components/Input/Trade/Trade.scss +184 -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 +153 -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/Modal/Modal.d.ts +4 -0
- package/es/components/Modal/Modal.js +383 -0
- package/es/components/Modal/constants.d.ts +58 -0
- package/es/components/Modal/constants.js +55 -0
- package/es/components/Modal/index.d.ts +4 -0
- package/es/components/Modal/index.js +5 -0
- package/es/components/Modal/interface.d.ts +37 -0
- package/es/components/Modal/interface.js +2 -0
- package/es/components/Modal/style/Modal.css +1 -0
- package/es/components/Modal/style/Modal.scss +254 -0
- package/es/components/Modal/style/css.js +2 -0
- package/es/components/Modal/style/index.d.ts +1 -0
- package/es/components/Modal/style/index.js +2 -0
- package/es/components/Navigation/Nav.d.ts +5 -0
- package/es/components/Navigation/Nav.js +198 -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 +7 -0
- package/es/components/Navigation/NavigationLogo.js +36 -0
- package/es/components/Navigation/index.d.ts +5 -0
- package/es/components/Navigation/index.js +6 -0
- package/es/components/Navigation/interface.d.ts +95 -0
- package/es/components/Navigation/interface.js +2 -0
- package/es/components/Navigation/style/Nav.css +1 -0
- package/es/components/Navigation/style/Nav.scss +174 -0
- package/es/components/Navigation/style/Navigation.css +1 -0
- package/es/components/Navigation/style/Navigation.scss +443 -0
- package/es/components/Navigation/style/css.js +3 -0
- package/es/components/Navigation/style/index.d.ts +2 -0
- package/es/components/Navigation/style/index.js +3 -0
- package/es/components/Notification/Notification.d.ts +6 -0
- package/es/components/Notification/Notification.js +114 -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 +5 -0
- package/es/components/Notification/constants.js +7 -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 +1 -0
- package/es/components/Notification/style/Notification.scss +200 -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 +137 -0
- package/es/components/Pagination/constants.d.ts +53 -0
- package/es/components/Pagination/constants.js +56 -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 +54 -0
- package/es/components/Pagination/interface.js +2 -0
- package/es/components/Pagination/style/Pagination.css +1 -0
- package/es/components/Pagination/style/Pagination.scss +95 -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 +154 -0
- package/es/components/Popconfirm/Popconfirm.d.ts +6 -0
- package/es/components/Popconfirm/Popconfirm.js +131 -0
- package/es/components/Popconfirm/constants.d.ts +72 -0
- package/es/components/Popconfirm/constants.js +71 -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 +1 -0
- package/es/components/Popconfirm/style/Popconfirm.scss +264 -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 +3 -0
- package/es/components/ProForm/ProForm.js +254 -0
- package/es/components/ProForm/ProFormDependency.d.ts +3 -0
- package/es/components/ProForm/ProFormDependency.js +69 -0
- package/es/components/ProForm/ProFormGroup.d.ts +3 -0
- package/es/components/ProForm/ProFormGroup.js +78 -0
- package/es/components/ProForm/ProFormList.d.ts +3 -0
- package/es/components/ProForm/ProFormList.js +253 -0
- package/es/components/ProForm/Submitter.d.ts +6 -0
- package/es/components/ProForm/Submitter.js +67 -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 +5 -0
- package/es/components/ProForm/context.js +26 -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 +62 -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 +229 -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 +30 -0
- package/es/components/ProForm/index.js +37 -0
- package/es/components/ProForm/interface.d.ts +240 -0
- package/es/components/ProForm/interface.js +2 -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/ModalForm.d.ts +3 -0
- package/es/components/ProForm/layouts/ModalForm.js +74 -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 +1 -0
- package/es/components/ProForm/style/ProForm.scss +118 -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 +1 -0
- package/es/components/Progress/style/Progress.scss +120 -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 +179 -0
- package/es/components/Radio/RadioGroup.d.ts +5 -0
- package/es/components/Radio/RadioGroup.js +100 -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 +36 -0
- package/es/components/Radio/constants.js +63 -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 +115 -0
- package/es/components/Radio/interface.js +2 -0
- package/es/components/Radio/style/Radio.css +1 -0
- package/es/components/Radio/style/Radio.scss +431 -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 +1 -0
- package/es/components/Segment/style/Segment.scss +80 -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 +520 -0
- package/es/components/Select/SelectFieldShell.d.ts +22 -0
- package/es/components/Select/SelectFieldShell.js +73 -0
- package/es/components/Select/SelectOptionContent.d.ts +9 -0
- package/es/components/Select/SelectOptionContent.js +36 -0
- package/es/components/Select/SelectSearchControl.d.ts +12 -0
- package/es/components/Select/SelectSearchControl.js +38 -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 +14 -0
- package/es/components/Select/constants.js +20 -0
- package/es/components/Select/index.d.ts +4 -0
- package/es/components/Select/index.js +5 -0
- package/es/components/Select/interface.d.ts +83 -0
- package/es/components/Select/interface.js +4 -0
- package/es/components/Select/style/Select.css +1 -0
- package/es/components/Select/style/Select.scss +480 -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/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 +1 -0
- package/es/components/Skeleton/style/Skeleton.scss +47 -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 +116 -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 +1 -0
- package/es/components/Slider/style/Slider.scss +182 -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 +1 -0
- package/es/components/Space/style/Space.scss +40 -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 +83 -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 +14 -0
- package/es/components/Spinner/interface.js +2 -0
- package/es/components/Spinner/style/Spinner.css +1 -0
- package/es/components/Spinner/style/Spinner.scss +90 -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 +1 -0
- package/es/components/Step/style/Step.scss +91 -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 +93 -0
- package/es/components/Switch/constants.d.ts +11 -0
- package/es/components/Switch/constants.js +12 -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 +1 -0
- package/es/components/Switch/style/Switch.scss +126 -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 +164 -0
- package/es/components/Table/VirtualTable.d.ts +9 -0
- package/es/components/Table/VirtualTable.js +166 -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 +34 -0
- package/es/components/Table/core/useTableColumns.js +191 -0
- package/es/components/Table/core/useTableDataPipeline.d.ts +50 -0
- package/es/components/Table/core/useTableDataPipeline.js +262 -0
- package/es/components/Table/core/useTableExpand.d.ts +9 -0
- package/es/components/Table/core/useTableExpand.js +38 -0
- package/es/components/Table/core/useTableSelection.d.ts +17 -0
- package/es/components/Table/core/useTableSelection.js +144 -0
- package/es/components/Table/features/ExpandTrigger.d.ts +4 -0
- package/es/components/Table/features/ExpandTrigger.js +24 -0
- package/es/components/Table/features/SelectionColumn.d.ts +11 -0
- package/es/components/Table/features/SelectionColumn.js +41 -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 +179 -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 +181 -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 +692 -0
- package/es/components/Table/internal/kernel/VirtualTable/BodyGrid.d.ts +13 -0
- package/es/components/Table/internal/kernel/VirtualTable/BodyGrid.js +287 -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 +91 -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 +84 -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 +14 -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 +4 -0
- package/es/components/Table/renderers/EmptyState.js +15 -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 +7 -0
- package/es/components/Table/renderers/HeaderCell.js +22 -0
- package/es/components/Table/style/Table.css +1 -0
- package/es/components/Table/style/Table.scss +376 -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 +111 -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 +27 -0
- package/es/components/Tabs/interface.js +2 -0
- package/es/components/Tabs/style/Tabs.css +1 -0
- package/es/components/Tabs/style/Tabs.scss +100 -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 +1 -0
- package/es/components/Tag/style/Tag.scss +103 -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 +62 -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 +20 -0
- package/es/components/Tooltip/interface.js +2 -0
- package/es/components/Tooltip/style/Tooltip.css +1 -0
- package/es/components/Tooltip/style/Tooltip.scss +95 -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 +151 -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 +52 -0
- package/es/components/Trigger/interface.js +2 -0
- package/es/components/Trigger/style/Trigger.css +1 -0
- package/es/components/Trigger/style/Trigger.scss +18 -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 +1 -0
- package/es/components/Typography/style/Typography.scss +132 -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 +110 -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 +63 -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 +41 -0
- package/es/components/Upload/interface.js +2 -0
- package/es/components/Upload/style/Upload.css +1 -0
- package/es/components/Upload/style/Upload.scss +44 -0
- package/es/components/Upload/style/UploadFileBar.css +1 -0
- package/es/components/Upload/style/UploadFileBar.scss +94 -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 +237 -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 +1 -0
- package/es/components/VirtualList/style/VirtualList.scss +5 -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/index.css +1 -0
- package/es/index.d.ts +89 -0
- package/es/index.js +46 -0
- package/es/styles/_api.scss +5 -0
- package/es/styles/_settings.scss +5 -0
- package/es/styles/index.css +1 -0
- package/es/styles/index.scss +2 -0
- package/es/styles/public/_index.scss +2 -0
- package/es/styles/public/_system.scss +1 -0
- package/es/styles/public/_theme.scss +3 -0
- package/es/styles/recipes/_index.scss +1 -0
- package/es/styles/recipes/_variants.scss +110 -0
- package/es/styles/system/_index.scss +4 -0
- package/es/styles/system/_props.scss +95 -0
- package/es/styles/system/_public.scss +5 -0
- package/es/styles/system/_sx.scss +81 -0
- package/es/styles/theme/_breakpoints.scss +95 -0
- package/es/styles/theme/_functions.scss +271 -0
- package/es/styles/theme/_index.scss +6 -0
- package/es/styles/theme/_mixins.scss +37 -0
- package/es/styles/theme/_scales.scss +29 -0
- package/es/styles/theme/_values.scss +68 -0
- package/es/styles/tokens/_index.scss +11 -0
- package/es/styles/tokens/breakpoint/_index.scss +2 -0
- package/es/styles/tokens/breakpoint/_primitives.scss +8 -0
- package/es/styles/tokens/color/_index.scss +3 -0
- package/es/styles/tokens/color/_primitives.scss +42 -0
- package/es/styles/tokens/color/_semantic-color.scss +172 -0
- package/es/styles/tokens/opacity/_functions.scss +13 -0
- package/es/styles/tokens/opacity/_index.scss +3 -0
- package/es/styles/tokens/opacity/_primitives.scss +12 -0
- package/es/styles/tokens/radius/_index.scss +2 -0
- package/es/styles/tokens/radius/_primitives.scss +11 -0
- package/es/styles/tokens/shadow/_index.scss +2 -0
- package/es/styles/tokens/shadow/_primitives.scss +7 -0
- package/es/styles/tokens/sizing/_functions.scss +17 -0
- package/es/styles/tokens/sizing/_index.scss +4 -0
- package/es/styles/tokens/sizing/_primitives.scss +12 -0
- package/es/styles/tokens/sizing/_semantic-sizing.scss +11 -0
- package/es/styles/tokens/spacing/_functions.scss +51 -0
- package/es/styles/tokens/spacing/_index.scss +4 -0
- package/es/styles/tokens/spacing/_primitives.scss +22 -0
- package/es/styles/tokens/spacing/_semantic-spacing.scss +22 -0
- package/es/styles/tokens/typography/_functions.scss +31 -0
- package/es/styles/tokens/typography/_index.scss +4 -0
- package/es/styles/tokens/typography/_primitives.scss +27 -0
- package/es/styles/tokens/typography/_semantic-typography.scss +216 -0
- package/es/styles/utilities/_generator.scss +55 -0
- package/es/styles/utilities/_index.scss +14 -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/jest.setup.d.ts +1 -0
- package/jest.setup.ts +1 -0
- package/lib/components/Accordion/Accordion.d.ts +6 -0
- package/lib/components/Accordion/Accordion.js +112 -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 +1 -0
- package/lib/components/Accordion/style/Accordion.scss +127 -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 +103 -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 +40 -0
- package/lib/components/Alert/interface.js +12 -0
- package/lib/components/Alert/style/Alert.css +1 -0
- package/lib/components/Alert/style/Alert.scss +89 -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 +131 -0
- package/lib/components/Button/constants.d.ts +56 -0
- package/lib/components/Button/constants.js +76 -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 +14 -0
- package/lib/components/Button/interface.js +6 -0
- package/lib/components/Button/style/Button.css +1 -0
- package/lib/components/Button/style/Button.scss +190 -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 +122 -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 +1 -0
- package/lib/components/Calendar/style/Calendar.scss +377 -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 +1 -0
- package/lib/components/Carousel/style/Carousel.scss +63 -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/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 +130 -0
- package/lib/components/Checkbox/CheckboxGroup.d.ts +5 -0
- package/lib/components/Checkbox/CheckboxGroup.js +150 -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 +7 -0
- package/lib/components/Checkbox/constants.js +14 -0
- package/lib/components/Checkbox/index.d.ts +10 -0
- package/lib/components/Checkbox/index.js +52 -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 +1 -0
- package/lib/components/Checkbox/style/Checkbox.scss +235 -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 +1 -0
- package/lib/components/CoachMark/style/CoachMark.scss +176 -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/Copy.d.ts +6 -0
- package/lib/components/Copy/Copy.js +80 -0
- package/lib/components/Copy/index.d.ts +4 -0
- package/lib/components/Copy/index.js +33 -0
- package/lib/components/Copy/interface.d.ts +20 -0
- package/lib/components/Copy/interface.js +6 -0
- package/lib/components/Copy/style/Copy.css +1 -0
- package/lib/components/Copy/style/Copy.scss +35 -0
- package/lib/components/Copy/style/css.js +4 -0
- package/lib/components/Copy/style/index.d.ts +1 -0
- package/lib/components/Copy/style/index.js +4 -0
- package/lib/components/Divider/Divider.d.ts +4 -0
- package/lib/components/Divider/Divider.js +62 -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 +20 -0
- package/lib/components/Divider/interface.js +6 -0
- package/lib/components/Divider/style/Divider.css +1 -0
- package/lib/components/Divider/style/Divider.scss +149 -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 +281 -0
- package/lib/components/Drawer/constants.d.ts +15 -0
- package/lib/components/Drawer/constants.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 +1 -0
- package/lib/components/Drawer/style/Drawer.scss +163 -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 +31 -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 +0 -0
- package/lib/components/Dropdown/style/Dropdown.scss +2 -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 +1 -0
- package/lib/components/Empty/style/Empty.scss +53 -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 +1 -0
- package/lib/components/Flex/style/Flex.scss +70 -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/Form/Form.d.ts +4 -0
- package/lib/components/Form/Form.js +80 -0
- package/lib/components/Form/FormItem.d.ts +4 -0
- package/lib/components/Form/FormItem.js +193 -0
- package/lib/components/Form/constants.d.ts +19 -0
- package/lib/components/Form/constants.js +25 -0
- package/lib/components/Form/context.d.ts +5 -0
- package/lib/components/Form/context.js +25 -0
- package/lib/components/Form/hooks/useForm.d.ts +3 -0
- package/lib/components/Form/hooks/useForm.js +551 -0
- package/lib/components/Form/hooks/useFormCore.d.ts +3 -0
- package/lib/components/Form/hooks/useFormCore.js +355 -0
- package/lib/components/Form/index.d.ts +10 -0
- package/lib/components/Form/index.js +83 -0
- package/lib/components/Form/interface.d.ts +166 -0
- package/lib/components/Form/interface.js +6 -0
- package/lib/components/Form/style/Form.css +1 -0
- package/lib/components/Form/style/Form.scss +57 -0
- package/lib/components/Form/style/css.js +4 -0
- package/lib/components/Form/style/index.d.ts +1 -0
- package/lib/components/Form/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 +1 -0
- package/lib/components/Grid/style/Grid.scss +184 -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 +192 -0
- package/lib/components/Icons/Icons.js +193 -0
- package/lib/components/Icons/Illustrations.d.ts +18 -0
- package/lib/components/Icons/Illustrations.js +881 -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 +265 -0
- package/lib/components/Icons/SVGs.js +1926 -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 +27 -0
- package/lib/components/Icons/interface.js +6 -0
- package/lib/components/Icons/style/Icons.css +1 -0
- package/lib/components/Icons/style/Icons.scss +85 -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 +201 -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 +1 -0
- package/lib/components/Input/Amount/style/Amount.scss +89 -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 +1 -0
- package/lib/components/Input/FieldShell/FieldShell.d.ts +19 -0
- package/lib/components/Input/FieldShell/FieldShell.js +85 -0
- package/lib/components/Input/FieldShell/FieldShell.scss +62 -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 +1 -0
- package/lib/components/Input/Input/Input.d.ts +3 -0
- package/lib/components/Input/Input/Input.js +168 -0
- package/lib/components/Input/Input/Input.scss +131 -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 +347 -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 +1 -0
- package/lib/components/Input/OTP/OTP.d.ts +5 -0
- package/lib/components/Input/OTP/OTP.js +157 -0
- package/lib/components/Input/OTP/OTP.scss +75 -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 +131 -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 +154 -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 +1 -0
- package/lib/components/Input/TextArea/TextArea.d.ts +5 -0
- package/lib/components/Input/TextArea/TextArea.js +103 -0
- package/lib/components/Input/TextArea/TextArea.scss +87 -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 +1 -0
- package/lib/components/Input/Trade/Trade.d.ts +5 -0
- package/lib/components/Input/Trade/Trade.js +139 -0
- package/lib/components/Input/Trade/Trade.scss +184 -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 +153 -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/Modal/Modal.d.ts +4 -0
- package/lib/components/Modal/Modal.js +390 -0
- package/lib/components/Modal/constants.d.ts +58 -0
- package/lib/components/Modal/constants.js +62 -0
- package/lib/components/Modal/index.d.ts +4 -0
- package/lib/components/Modal/index.js +33 -0
- package/lib/components/Modal/interface.d.ts +37 -0
- package/lib/components/Modal/interface.js +6 -0
- package/lib/components/Modal/style/Modal.css +1 -0
- package/lib/components/Modal/style/Modal.scss +254 -0
- package/lib/components/Modal/style/css.js +4 -0
- package/lib/components/Modal/style/index.d.ts +1 -0
- package/lib/components/Modal/style/index.js +4 -0
- package/lib/components/Navigation/Nav.d.ts +5 -0
- package/lib/components/Navigation/Nav.js +208 -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 +7 -0
- package/lib/components/Navigation/NavigationLogo.js +42 -0
- package/lib/components/Navigation/index.d.ts +5 -0
- package/lib/components/Navigation/index.js +41 -0
- package/lib/components/Navigation/interface.d.ts +95 -0
- package/lib/components/Navigation/interface.js +6 -0
- package/lib/components/Navigation/style/Nav.css +1 -0
- package/lib/components/Navigation/style/Nav.scss +174 -0
- package/lib/components/Navigation/style/Navigation.css +1 -0
- package/lib/components/Navigation/style/Navigation.scss +443 -0
- package/lib/components/Navigation/style/css.js +5 -0
- package/lib/components/Navigation/style/index.d.ts +2 -0
- package/lib/components/Navigation/style/index.js +5 -0
- package/lib/components/Notification/Notification.d.ts +6 -0
- package/lib/components/Notification/Notification.js +122 -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 +5 -0
- package/lib/components/Notification/constants.js +13 -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 +1 -0
- package/lib/components/Notification/style/Notification.scss +200 -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 +146 -0
- package/lib/components/Pagination/constants.d.ts +53 -0
- package/lib/components/Pagination/constants.js +63 -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 +54 -0
- package/lib/components/Pagination/interface.js +6 -0
- package/lib/components/Pagination/style/Pagination.css +1 -0
- package/lib/components/Pagination/style/Pagination.scss +95 -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 +161 -0
- package/lib/components/Popconfirm/Popconfirm.d.ts +6 -0
- package/lib/components/Popconfirm/Popconfirm.js +141 -0
- package/lib/components/Popconfirm/constants.d.ts +72 -0
- package/lib/components/Popconfirm/constants.js +78 -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 +1 -0
- package/lib/components/Popconfirm/style/Popconfirm.scss +264 -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 +3 -0
- package/lib/components/ProForm/ProForm.js +264 -0
- package/lib/components/ProForm/ProFormDependency.d.ts +3 -0
- package/lib/components/ProForm/ProFormDependency.js +75 -0
- package/lib/components/ProForm/ProFormGroup.d.ts +3 -0
- package/lib/components/ProForm/ProFormGroup.js +85 -0
- package/lib/components/ProForm/ProFormList.d.ts +3 -0
- package/lib/components/ProForm/ProFormList.js +260 -0
- package/lib/components/ProForm/Submitter.d.ts +6 -0
- package/lib/components/ProForm/Submitter.js +74 -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 +5 -0
- package/lib/components/ProForm/context.js +32 -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 +72 -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 +237 -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 +30 -0
- package/lib/components/ProForm/index.js +187 -0
- package/lib/components/ProForm/interface.d.ts +240 -0
- package/lib/components/ProForm/interface.js +6 -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/ModalForm.d.ts +3 -0
- package/lib/components/ProForm/layouts/ModalForm.js +81 -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 +1 -0
- package/lib/components/ProForm/style/ProForm.scss +118 -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 +1 -0
- package/lib/components/Progress/style/Progress.scss +120 -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 +189 -0
- package/lib/components/Radio/RadioGroup.d.ts +5 -0
- package/lib/components/Radio/RadioGroup.js +110 -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 +36 -0
- package/lib/components/Radio/constants.js +69 -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 +115 -0
- package/lib/components/Radio/interface.js +6 -0
- package/lib/components/Radio/style/Radio.css +1 -0
- package/lib/components/Radio/style/Radio.scss +431 -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 +1 -0
- package/lib/components/Segment/style/Segment.scss +80 -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 +530 -0
- package/lib/components/Select/SelectFieldShell.d.ts +22 -0
- package/lib/components/Select/SelectFieldShell.js +79 -0
- package/lib/components/Select/SelectOptionContent.d.ts +9 -0
- package/lib/components/Select/SelectOptionContent.js +42 -0
- package/lib/components/Select/SelectSearchControl.d.ts +12 -0
- package/lib/components/Select/SelectSearchControl.js +44 -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 +14 -0
- package/lib/components/Select/constants.js +26 -0
- package/lib/components/Select/index.d.ts +4 -0
- package/lib/components/Select/index.js +49 -0
- package/lib/components/Select/interface.d.ts +83 -0
- package/lib/components/Select/interface.js +10 -0
- package/lib/components/Select/style/Select.css +1 -0
- package/lib/components/Select/style/Select.scss +480 -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/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 +1 -0
- package/lib/components/Skeleton/style/Skeleton.scss +47 -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 +126 -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 +1 -0
- package/lib/components/Slider/style/Slider.scss +182 -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 +1 -0
- package/lib/components/Space/style/Space.scss +40 -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 +91 -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 +14 -0
- package/lib/components/Spinner/interface.js +8 -0
- package/lib/components/Spinner/style/Spinner.css +1 -0
- package/lib/components/Spinner/style/Spinner.scss +90 -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 +1 -0
- package/lib/components/Step/style/Step.scss +91 -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 +103 -0
- package/lib/components/Switch/constants.d.ts +11 -0
- package/lib/components/Switch/constants.js +18 -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 +1 -0
- package/lib/components/Switch/style/Switch.scss +126 -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 +173 -0
- package/lib/components/Table/VirtualTable.d.ts +9 -0
- package/lib/components/Table/VirtualTable.js +175 -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 +34 -0
- package/lib/components/Table/core/useTableColumns.js +198 -0
- package/lib/components/Table/core/useTableDataPipeline.d.ts +50 -0
- package/lib/components/Table/core/useTableDataPipeline.js +269 -0
- package/lib/components/Table/core/useTableExpand.d.ts +9 -0
- package/lib/components/Table/core/useTableExpand.js +45 -0
- package/lib/components/Table/core/useTableSelection.d.ts +17 -0
- package/lib/components/Table/core/useTableSelection.js +151 -0
- package/lib/components/Table/features/ExpandTrigger.d.ts +4 -0
- package/lib/components/Table/features/ExpandTrigger.js +30 -0
- package/lib/components/Table/features/SelectionColumn.d.ts +11 -0
- package/lib/components/Table/features/SelectionColumn.js +47 -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 +179 -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 +193 -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 +701 -0
- package/lib/components/Table/internal/kernel/VirtualTable/BodyGrid.d.ts +13 -0
- package/lib/components/Table/internal/kernel/VirtualTable/BodyGrid.js +299 -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 +101 -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 +95 -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 +21 -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 +4 -0
- package/lib/components/Table/renderers/EmptyState.js +21 -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 +7 -0
- package/lib/components/Table/renderers/HeaderCell.js +28 -0
- package/lib/components/Table/style/Table.css +1 -0
- package/lib/components/Table/style/Table.scss +376 -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 +121 -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 +27 -0
- package/lib/components/Tabs/interface.js +6 -0
- package/lib/components/Tabs/style/Tabs.css +1 -0
- package/lib/components/Tabs/style/Tabs.scss +100 -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 +1 -0
- package/lib/components/Tag/style/Tag.scss +103 -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 +71 -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 +20 -0
- package/lib/components/Tooltip/interface.js +6 -0
- package/lib/components/Tooltip/style/Tooltip.css +1 -0
- package/lib/components/Tooltip/style/Tooltip.scss +95 -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 +161 -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 +52 -0
- package/lib/components/Trigger/interface.js +6 -0
- package/lib/components/Trigger/style/Trigger.css +1 -0
- package/lib/components/Trigger/style/Trigger.scss +18 -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 +1 -0
- package/lib/components/Typography/style/Typography.scss +132 -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 +117 -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 +72 -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 +41 -0
- package/lib/components/Upload/interface.js +6 -0
- package/lib/components/Upload/style/Upload.css +1 -0
- package/lib/components/Upload/style/Upload.scss +44 -0
- package/lib/components/Upload/style/UploadFileBar.css +1 -0
- package/lib/components/Upload/style/UploadFileBar.scss +94 -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 +247 -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 +1 -0
- package/lib/components/VirtualList/style/VirtualList.scss +5 -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/index.css +1 -0
- package/lib/index.d.ts +89 -0
- package/lib/index.js +494 -0
- package/lib/styles/_api.scss +5 -0
- package/lib/styles/_settings.scss +5 -0
- package/lib/styles/index.css +1 -0
- package/lib/styles/index.scss +2 -0
- package/lib/styles/public/_index.scss +2 -0
- package/lib/styles/public/_system.scss +1 -0
- package/lib/styles/public/_theme.scss +3 -0
- package/lib/styles/recipes/_index.scss +1 -0
- package/lib/styles/recipes/_variants.scss +110 -0
- package/lib/styles/system/_index.scss +4 -0
- package/lib/styles/system/_props.scss +95 -0
- package/lib/styles/system/_public.scss +5 -0
- package/lib/styles/system/_sx.scss +81 -0
- package/lib/styles/theme/_breakpoints.scss +95 -0
- package/lib/styles/theme/_functions.scss +271 -0
- package/lib/styles/theme/_index.scss +6 -0
- package/lib/styles/theme/_mixins.scss +37 -0
- package/lib/styles/theme/_scales.scss +29 -0
- package/lib/styles/theme/_values.scss +68 -0
- package/lib/styles/tokens/_index.scss +11 -0
- package/lib/styles/tokens/breakpoint/_index.scss +2 -0
- package/lib/styles/tokens/breakpoint/_primitives.scss +8 -0
- package/lib/styles/tokens/color/_index.scss +3 -0
- package/lib/styles/tokens/color/_primitives.scss +42 -0
- package/lib/styles/tokens/color/_semantic-color.scss +172 -0
- package/lib/styles/tokens/opacity/_functions.scss +13 -0
- package/lib/styles/tokens/opacity/_index.scss +3 -0
- package/lib/styles/tokens/opacity/_primitives.scss +12 -0
- package/lib/styles/tokens/radius/_index.scss +2 -0
- package/lib/styles/tokens/radius/_primitives.scss +11 -0
- package/lib/styles/tokens/shadow/_index.scss +2 -0
- package/lib/styles/tokens/shadow/_primitives.scss +7 -0
- package/lib/styles/tokens/sizing/_functions.scss +17 -0
- package/lib/styles/tokens/sizing/_index.scss +4 -0
- package/lib/styles/tokens/sizing/_primitives.scss +12 -0
- package/lib/styles/tokens/sizing/_semantic-sizing.scss +11 -0
- package/lib/styles/tokens/spacing/_functions.scss +51 -0
- package/lib/styles/tokens/spacing/_index.scss +4 -0
- package/lib/styles/tokens/spacing/_primitives.scss +22 -0
- package/lib/styles/tokens/spacing/_semantic-spacing.scss +22 -0
- package/lib/styles/tokens/typography/_functions.scss +31 -0
- package/lib/styles/tokens/typography/_index.scss +4 -0
- package/lib/styles/tokens/typography/_primitives.scss +27 -0
- package/lib/styles/tokens/typography/_semantic-typography.scss +216 -0
- package/lib/styles/utilities/_generator.scss +55 -0
- package/lib/styles/utilities/_index.scss +14 -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 +442 -0
- package/patches/primereact.patch +323 -0
- package/patches/react-pro-sidebar.patch +6421 -0
- package/public/favicon.ico +0 -0
- package/public/fonts/Aeonik/Aeonik-Air.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-AirItalic.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-Black.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-BlackItalic.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-Bold.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-BoldItalic.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-Light.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-LightItalic.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-Medium.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-MediumItalic.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-Regular.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-RegularItalic.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-Thin.ttf +0 -0
- package/public/fonts/Aeonik/Aeonik-ThinItalic.ttf +0 -0
- package/public/fonts/Inter/Inter-Black.ttf +0 -0
- package/public/fonts/Inter/Inter-BlackItalic.ttf +0 -0
- package/public/fonts/Inter/Inter-Bold.ttf +0 -0
- package/public/fonts/Inter/Inter-BoldItalic.ttf +0 -0
- package/public/fonts/Inter/Inter-ExtraBold.ttf +0 -0
- package/public/fonts/Inter/Inter-ExtraBoldItalic.ttf +0 -0
- package/public/fonts/Inter/Inter-ExtraLight.ttf +0 -0
- package/public/fonts/Inter/Inter-ExtraLightItalic.ttf +0 -0
- package/public/fonts/Inter/Inter-Italic.ttf +0 -0
- package/public/fonts/Inter/Inter-Light.ttf +0 -0
- package/public/fonts/Inter/Inter-LightItalic.ttf +0 -0
- package/public/fonts/Inter/Inter-Medium.ttf +0 -0
- package/public/fonts/Inter/Inter-MediumItalic.ttf +0 -0
- package/public/fonts/Inter/Inter-Regular.ttf +0 -0
- package/public/fonts/Inter/Inter-SemiBold.ttf +0 -0
- package/public/fonts/Inter/Inter-SemiBoldItalic.ttf +0 -0
- package/public/fonts/Inter/Inter-Thin.ttf +0 -0
- package/public/fonts/Inter/Inter-ThinItalic.ttf +0 -0
- package/public/fonts/Outfit/Outfit-Black.ttf +0 -0
- package/public/fonts/Outfit/Outfit-Bold.ttf +0 -0
- package/public/fonts/Outfit/Outfit-ExtraBold.ttf +0 -0
- package/public/fonts/Outfit/Outfit-ExtraLight.ttf +0 -0
- package/public/fonts/Outfit/Outfit-Light.ttf +0 -0
- package/public/fonts/Outfit/Outfit-Medium.ttf +0 -0
- package/public/fonts/Outfit/Outfit-Regular.ttf +0 -0
- package/public/fonts/Outfit/Outfit-SemiBold.ttf +0 -0
- package/public/fonts/Outfit/Outfit-Thin.ttf +0 -0
- package/public/github-mark.svg +3 -0
- package/public/tokens/GYEN.svg +9 -0
- package/public/tokens/PYUSD.svg +9 -0
- package/public/tokens/USDT.svg +6 -0
- package/scripts/mcp-server/index.d.mts +1 -0
- package/scripts/mcp-server/index.mjs +45 -0
- package/scripts/mcp-server/resources.d.mts +1 -0
- package/scripts/mcp-server/resources.mjs +102 -0
- package/test/jsdom-global-register.d.ts +1 -0
- package/test/jsdom-global-register.js +1 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
4
|
+
function adopt(value) {
|
|
5
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
6
|
+
resolve(value);
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
+
function fulfilled(value) {
|
|
11
|
+
try {
|
|
12
|
+
step(generator.next(value));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
reject(e);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function rejected(value) {
|
|
18
|
+
try {
|
|
19
|
+
step(generator["throw"](value));
|
|
20
|
+
} catch (e) {
|
|
21
|
+
reject(e);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function step(result) {
|
|
25
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
26
|
+
}
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
import { useEffect, useRef } from 'react';
|
|
31
|
+
import { useSafeState, useMemoizedFn } from '@1money/hooks';
|
|
32
|
+
import { stableSerialize } from '../utils';
|
|
33
|
+
/**
|
|
34
|
+
* Hook for async option fetching with param-based re-fetching.
|
|
35
|
+
* Returns [loading, options].
|
|
36
|
+
*/
|
|
37
|
+
export function useFieldRequest(request, params) {
|
|
38
|
+
var _this = this;
|
|
39
|
+
var _useSafeState = useSafeState(false),
|
|
40
|
+
_useSafeState2 = _slicedToArray(_useSafeState, 2),
|
|
41
|
+
loading = _useSafeState2[0],
|
|
42
|
+
setLoading = _useSafeState2[1];
|
|
43
|
+
var _useSafeState3 = useSafeState([]),
|
|
44
|
+
_useSafeState4 = _slicedToArray(_useSafeState3, 2),
|
|
45
|
+
options = _useSafeState4[0],
|
|
46
|
+
setOptions = _useSafeState4[1];
|
|
47
|
+
var requestRef = useRef(request);
|
|
48
|
+
requestRef.current = request;
|
|
49
|
+
var serializedParams = stableSerialize(params);
|
|
50
|
+
var fetchOptions = useMemoizedFn(function () {
|
|
51
|
+
return __awaiter(_this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
52
|
+
var fn, result;
|
|
53
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
54
|
+
while (1) switch (_context.prev = _context.next) {
|
|
55
|
+
case 0:
|
|
56
|
+
fn = requestRef.current;
|
|
57
|
+
if (fn) {
|
|
58
|
+
_context.next = 3;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
return _context.abrupt("return");
|
|
62
|
+
case 3:
|
|
63
|
+
setLoading(true);
|
|
64
|
+
_context.prev = 4;
|
|
65
|
+
_context.next = 7;
|
|
66
|
+
return fn(params);
|
|
67
|
+
case 7:
|
|
68
|
+
result = _context.sent;
|
|
69
|
+
if (Array.isArray(result)) {
|
|
70
|
+
setOptions(result);
|
|
71
|
+
}
|
|
72
|
+
case 9:
|
|
73
|
+
_context.prev = 9;
|
|
74
|
+
setLoading(false);
|
|
75
|
+
return _context.finish(9);
|
|
76
|
+
case 12:
|
|
77
|
+
case "end":
|
|
78
|
+
return _context.stop();
|
|
79
|
+
}
|
|
80
|
+
}, _callee, null, [[4,, 9, 12]]);
|
|
81
|
+
}));
|
|
82
|
+
});
|
|
83
|
+
useEffect(function () {
|
|
84
|
+
if (!requestRef.current) return;
|
|
85
|
+
fetchOptions();
|
|
86
|
+
}, [serializedParams]);
|
|
87
|
+
return [loading, options];
|
|
88
|
+
}
|
|
89
|
+
export default useFieldRequest;
|
|
90
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvUHJvRm9ybS9ob29rcy91c2VGaWVsZFJlcXVlc3QuanMiLCJjb21wb25lbnRzL1Byb0Zvcm0vc3JjL2NvbXBvbmVudHMvUHJvRm9ybS9ob29rcy91c2VGaWVsZFJlcXVlc3QudHMiXSwibmFtZXMiOlsiX19hd2FpdGVy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XG4gICAgICAgIH1cbiAgICAgICAgZmluYWxseSB7XG4gICAgICAgICAgICBzZXRMb2FkaW5nKGZhbHNlKTtcbiAgICAgICAgfVxuICAgIH0pKTtcbiAgICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgICAgICBpZiAoIXJlcXVlc3RSZWYuY3VycmVudClcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgZmV0Y2hPcHRpb25zKCk7XG4gICAgfSwgW3NlcmlhbGl6ZWRQYXJhbXNdKTtcbiAgICByZXR1cm4gW2xvYWRpbmcsIG9wdGlvbnNdO1xufVxuZXhwb3J0IGRlZmF1bHQgdXNlRmllbGRSZXF1ZXN0OyIsbnVsbF0sInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMifQ==
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import './style';
|
|
2
|
+
declare const ProForm: import("react").NamedExoticComponent<import("./interface").ProFormProps> & {
|
|
3
|
+
Dependency: import("react").NamedExoticComponent<import("./interface").ProFormDependencyProps>;
|
|
4
|
+
List: import("react").NamedExoticComponent<import("./interface").ProFormListProps>;
|
|
5
|
+
Group: import("react").NamedExoticComponent<import("./interface").ProFormGroupProps>;
|
|
6
|
+
FieldSet: import("react").NamedExoticComponent<import("./interface").ProFormFieldSetProps>;
|
|
7
|
+
Submitter: import("react").NamedExoticComponent<import("./Submitter").SubmitterInternalProps>;
|
|
8
|
+
Text: import("react").FC<import("./interface").ProFormFieldProps<import("../Input").InputProps>>;
|
|
9
|
+
Password: import("react").FC<import("./interface").ProFormFieldProps<import("../Input").InputPasswordProps>>;
|
|
10
|
+
TextArea: import("react").FC<import("./interface").ProFormFieldProps<import("../Input").InputTextAreaProps>>;
|
|
11
|
+
Checkbox: import("react").FC<import("./interface").ProFormFieldProps<import("../Checkbox").CheckboxProps>>;
|
|
12
|
+
CheckboxGroup: import("react").FC<import("./interface").ProFormFieldProps<import("../Checkbox").CheckboxGroupProps>>;
|
|
13
|
+
Switch: import("react").FC<import("./interface").ProFormFieldProps<import("../Switch").SwitchProps>>;
|
|
14
|
+
Select: import("react").FC<import("./interface").ProFormFieldProps<import("../Select").SelectProps>>;
|
|
15
|
+
Upload: import("react").FC<import("./interface").ProFormFieldProps<import("../Upload").UploadProps>>;
|
|
16
|
+
};
|
|
17
|
+
export { ProForm };
|
|
18
|
+
export default ProForm;
|
|
19
|
+
export { ProFormDependency } from './ProFormDependency';
|
|
20
|
+
export { ProFormList } from './ProFormList';
|
|
21
|
+
export { ProFormGroup } from './ProFormGroup';
|
|
22
|
+
export { Submitter } from './Submitter';
|
|
23
|
+
export { createProFormField, ProFormText, ProFormPassword, ProFormTextArea, ProFormCheckbox, ProFormCheckboxGroup, ProFormSwitch, ProFormSelect, ProFormUpload, ProFormFieldSet, } from './fields';
|
|
24
|
+
export { DrawerForm } from './layouts/DrawerForm';
|
|
25
|
+
export { ModalForm } from './layouts/ModalForm';
|
|
26
|
+
export { QueryFilter } from './layouts/QueryFilter';
|
|
27
|
+
export { useProFormContext, FormListContext, useFormListContext } from './context';
|
|
28
|
+
export type { ProFormProps, ProFormFieldProps, ProFormContextValue, ProFormFormInstance, ProFormFieldTransformFn, ProFormFieldConvertValueFn, ProFormValueEnumObj, ProFormRequestOption, FormListContextValue, ProFormColProps, ProFormFieldSetProps, ProFormGroupProps, SubmitterProps, ProFormDependencyProps, ProFormListProps, ProFormListAction, DrawerFormProps, ModalFormProps, QueryFilterProps, CreateProFormFieldConfig, } from './interface';
|
|
29
|
+
export { CSS_PREFIX, WIDTH_SIZE_MAP, DEFAULT_COL_SPAN, DEFAULT_TEXT, PROFORM_MODES } from './constants';
|
|
30
|
+
export type { ProFormMode } from './constants';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ProForm as ProFormBase } from './ProForm';
|
|
2
|
+
import { ProFormDependency } from './ProFormDependency';
|
|
3
|
+
import { ProFormList } from './ProFormList';
|
|
4
|
+
import { ProFormGroup } from './ProFormGroup';
|
|
5
|
+
import { Submitter } from './Submitter';
|
|
6
|
+
import { ProFormText, ProFormPassword, ProFormTextArea, ProFormCheckbox, ProFormCheckboxGroup, ProFormSwitch, ProFormSelect, ProFormUpload, ProFormFieldSet } from './fields';
|
|
7
|
+
import './style';
|
|
8
|
+
// Compose ProForm with static sub-components
|
|
9
|
+
var ProForm = Object.assign(ProFormBase, {
|
|
10
|
+
Dependency: ProFormDependency,
|
|
11
|
+
List: ProFormList,
|
|
12
|
+
Group: ProFormGroup,
|
|
13
|
+
FieldSet: ProFormFieldSet,
|
|
14
|
+
Submitter: Submitter,
|
|
15
|
+
Text: ProFormText,
|
|
16
|
+
Password: ProFormPassword,
|
|
17
|
+
TextArea: ProFormTextArea,
|
|
18
|
+
Checkbox: ProFormCheckbox,
|
|
19
|
+
CheckboxGroup: ProFormCheckboxGroup,
|
|
20
|
+
Switch: ProFormSwitch,
|
|
21
|
+
Select: ProFormSelect,
|
|
22
|
+
Upload: ProFormUpload
|
|
23
|
+
});
|
|
24
|
+
export { ProForm };
|
|
25
|
+
export default ProForm;
|
|
26
|
+
// Re-export individual pieces for named imports
|
|
27
|
+
export { ProFormDependency } from './ProFormDependency';
|
|
28
|
+
export { ProFormList } from './ProFormList';
|
|
29
|
+
export { ProFormGroup } from './ProFormGroup';
|
|
30
|
+
export { Submitter } from './Submitter';
|
|
31
|
+
export { createProFormField, ProFormText, ProFormPassword, ProFormTextArea, ProFormCheckbox, ProFormCheckboxGroup, ProFormSwitch, ProFormSelect, ProFormUpload, ProFormFieldSet } from './fields';
|
|
32
|
+
export { DrawerForm } from './layouts/DrawerForm';
|
|
33
|
+
export { ModalForm } from './layouts/ModalForm';
|
|
34
|
+
export { QueryFilter } from './layouts/QueryFilter';
|
|
35
|
+
export { useProFormContext, FormListContext, useFormListContext } from './context';
|
|
36
|
+
export { CSS_PREFIX, WIDTH_SIZE_MAP, DEFAULT_COL_SPAN, DEFAULT_TEXT, PROFORM_MODES } from './constants';
|
|
37
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XG5leHBvcnQgeyBTdWJtaXR0ZXIgfSBmcm9tICcuL1N1Ym1pdHRlcic7XG5leHBvcnQgeyBjcmVhdGVQcm9Gb3JtRmllbGQsIFByb0Zvcm1UZXh0LCBQcm9Gb3JtUGFzc3dvcmQsIFByb0Zvcm1UZXh0QXJlYSwgUHJvRm9ybUNoZWNrYm94LCBQcm9Gb3JtQ2hlY2tib3hHcm91cCwgUHJvRm9ybVN3aXRjaCwgUHJvRm9ybVNlbGVjdCwgUHJvRm9ybVVwbG9hZCwgUHJvRm9ybUZpZWxkU2V0LCB9IGZyb20gJy4vZmllbGRzJztcbmV4cG9ydCB7IERyYXdlckZvcm0gfSBmcm9tICcuL2xheW91dHMvRHJhd2VyRm9ybSc7XG5leHBvcnQgeyBNb2RhbEZvcm0gfSBmcm9tICcuL2xheW91dHMvTW9kYWxGb3JtJztcbmV4cG9ydCB7IFF1ZXJ5RmlsdGVyIH0gZnJvbSAnLi9sYXlvdXRzL1F1ZXJ5RmlsdGVyJztcbmV4cG9ydCB7IHVzZVByb0Zvcm1Db250ZXh0LCBGb3JtTGlzdENvbnRleHQsIHVzZUZvcm1MaXN0Q29udGV4dCB9IGZyb20gJy4vY29udGV4dCc7XG5leHBvcnQgeyBDU1NfUFJFRklYLCBXSURUSF9TSVpFX01BUCwgREVGQVVMVF9DT0xfU1BBTiwgREVGQVVMVF9URVhULCBQUk9GT1JNX01PREVTIH0gZnJvbSAnLi9jb25zdGFudHMnOyJdLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjIn0=
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import type { ReactNode, FC, ReactElement, MutableRefObject, CSSProperties } from 'react';
|
|
2
|
+
import type { FormProps, FormCoreInstance, Rule } from "../Form";
|
|
3
|
+
import type { ButtonProps } from "../Button";
|
|
4
|
+
import type { DrawerProps, DrawerPlacement } from "../Drawer";
|
|
5
|
+
import type { GridRowProps, GridColSize } from "../Grid";
|
|
6
|
+
import type { ModalProps } from "../Modal";
|
|
7
|
+
import type { ProFormMode } from './constants';
|
|
8
|
+
/** Transform field value before submission */
|
|
9
|
+
export type ProFormFieldTransformFn = (value: unknown, name: string, allValues: Record<string, unknown>) => unknown;
|
|
10
|
+
/** Convert stored value before displaying in the field */
|
|
11
|
+
export type ProFormFieldConvertValueFn = (value: unknown, name: string) => unknown;
|
|
12
|
+
export type ProFormValueEnumObj = Record<string | number, string | {
|
|
13
|
+
text: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}>;
|
|
16
|
+
export interface ProFormColProps {
|
|
17
|
+
span?: number;
|
|
18
|
+
sm?: GridColSize;
|
|
19
|
+
md?: GridColSize;
|
|
20
|
+
lg?: GridColSize;
|
|
21
|
+
}
|
|
22
|
+
export interface ProFormRequestOption {
|
|
23
|
+
label: string;
|
|
24
|
+
value: unknown;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface ProFormContextValue {
|
|
28
|
+
/** @deprecated Use `mode` instead. Kept for backward compatibility. */
|
|
29
|
+
readonly?: boolean;
|
|
30
|
+
/** Form mode: 'edit' (default), 'read' (readonly), 'update' (edit existing data) */
|
|
31
|
+
mode?: ProFormMode;
|
|
32
|
+
grid?: boolean;
|
|
33
|
+
colProps?: ProFormColProps;
|
|
34
|
+
registerTransform?: (name: string, fn: ProFormFieldTransformFn) => void;
|
|
35
|
+
unregisterTransform?: (name: string) => void;
|
|
36
|
+
formInstance?: ProFormFormInstance;
|
|
37
|
+
}
|
|
38
|
+
export interface ProFormFormInstance {
|
|
39
|
+
submit: () => {
|
|
40
|
+
success: boolean;
|
|
41
|
+
values?: Record<string, unknown>;
|
|
42
|
+
errors?: Record<string, string>;
|
|
43
|
+
};
|
|
44
|
+
resetFields: () => void;
|
|
45
|
+
getFieldValue: (name: string) => unknown;
|
|
46
|
+
getFieldsValue: () => Record<string, unknown>;
|
|
47
|
+
setFieldsValue: (values: Record<string, unknown>) => void;
|
|
48
|
+
setFieldValue: (name: string, value: unknown) => void;
|
|
49
|
+
validateFields: (fieldsRules?: Record<string, Rule[]>) => boolean;
|
|
50
|
+
getFieldsFormatValue: () => Record<string, unknown>;
|
|
51
|
+
validateFieldsReturnFormatValue: () => {
|
|
52
|
+
success: boolean;
|
|
53
|
+
values?: Record<string, unknown>;
|
|
54
|
+
errors?: Record<string, string>;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface ProFormFieldProps<FieldProps = Record<string, unknown>> {
|
|
58
|
+
name?: string;
|
|
59
|
+
label?: ReactNode;
|
|
60
|
+
rules?: Rule[];
|
|
61
|
+
required?: boolean;
|
|
62
|
+
help?: ReactNode;
|
|
63
|
+
validateStatus?: string;
|
|
64
|
+
labelCol?: {
|
|
65
|
+
span?: number;
|
|
66
|
+
offset?: number;
|
|
67
|
+
};
|
|
68
|
+
wrapperCol?: {
|
|
69
|
+
span?: number;
|
|
70
|
+
offset?: number;
|
|
71
|
+
};
|
|
72
|
+
colon?: boolean;
|
|
73
|
+
/** @deprecated Use `mode='read'` instead */
|
|
74
|
+
readonly?: boolean;
|
|
75
|
+
/** Field-level mode override: 'edit', 'read', or 'update' */
|
|
76
|
+
mode?: ProFormMode;
|
|
77
|
+
hidden?: boolean;
|
|
78
|
+
colProps?: ProFormColProps;
|
|
79
|
+
fieldProps?: Partial<FieldProps>;
|
|
80
|
+
placeholder?: string;
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
width?: 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
83
|
+
transform?: ProFormFieldTransformFn;
|
|
84
|
+
convertValue?: ProFormFieldConvertValueFn;
|
|
85
|
+
/** Field names to watch — auto-wraps with ProFormDependency */
|
|
86
|
+
dependencies?: string[];
|
|
87
|
+
/** Async option loader (works with Select, RadioGroup, CheckboxGroup) */
|
|
88
|
+
request?: (params?: Record<string, unknown>) => Promise<ProFormRequestOption[]>;
|
|
89
|
+
/** Extra params passed to request; merged with dependency values */
|
|
90
|
+
params?: Record<string, unknown>;
|
|
91
|
+
/** Quick enum → options conversion for Select/Radio/Checkbox fields */
|
|
92
|
+
valueEnum?: ProFormValueEnumObj;
|
|
93
|
+
/** Debounce delay (ms) for field onChange */
|
|
94
|
+
debounceTime?: number;
|
|
95
|
+
}
|
|
96
|
+
export interface SubmitterProps {
|
|
97
|
+
submitText?: ReactNode;
|
|
98
|
+
resetText?: ReactNode;
|
|
99
|
+
render?: (props: {
|
|
100
|
+
form: FormCoreInstance;
|
|
101
|
+
submit: () => void;
|
|
102
|
+
reset: () => void;
|
|
103
|
+
}, dom: ReactElement[]) => ReactNode;
|
|
104
|
+
onSubmit?: () => void;
|
|
105
|
+
onReset?: () => void;
|
|
106
|
+
submitButtonProps?: Partial<ButtonProps>;
|
|
107
|
+
resetButtonProps?: Partial<ButtonProps>;
|
|
108
|
+
}
|
|
109
|
+
export interface ProFormProps extends Omit<FormProps, 'onSubmit'> {
|
|
110
|
+
submitter?: SubmitterProps | false;
|
|
111
|
+
/** @deprecated Use `mode='read'` instead */
|
|
112
|
+
readonly?: boolean;
|
|
113
|
+
/** Form mode: 'edit' (default), 'read' (readonly), 'update' (edit existing data) */
|
|
114
|
+
mode?: ProFormMode;
|
|
115
|
+
grid?: boolean;
|
|
116
|
+
colProps?: ProFormColProps;
|
|
117
|
+
rowProps?: Partial<GridRowProps>;
|
|
118
|
+
loading?: boolean;
|
|
119
|
+
request?: (params?: unknown) => Promise<Record<string, unknown>>;
|
|
120
|
+
params?: unknown;
|
|
121
|
+
formRef?: MutableRefObject<ProFormFormInstance | undefined>;
|
|
122
|
+
/** Strip null / undefined / empty-string values before onFinish (default: true) */
|
|
123
|
+
omitNil?: boolean;
|
|
124
|
+
}
|
|
125
|
+
export interface ProFormListAction {
|
|
126
|
+
add: (defaultValue?: Record<string, unknown>, index?: number) => void;
|
|
127
|
+
remove: (index: number) => void;
|
|
128
|
+
move: (from: number, to: number) => void;
|
|
129
|
+
copy: (index: number) => void;
|
|
130
|
+
getList: () => unknown[];
|
|
131
|
+
}
|
|
132
|
+
export interface ProFormListProps {
|
|
133
|
+
name: string;
|
|
134
|
+
label?: ReactNode;
|
|
135
|
+
min?: number;
|
|
136
|
+
max?: number;
|
|
137
|
+
/** Validate that the list is not empty on form submission */
|
|
138
|
+
required?: boolean;
|
|
139
|
+
/** Error message when list is empty (used with required) */
|
|
140
|
+
requiredMessage?: string;
|
|
141
|
+
initialValue?: Record<string, unknown>[];
|
|
142
|
+
copyIconProps?: false | Partial<ButtonProps>;
|
|
143
|
+
deleteIconProps?: false | Partial<ButtonProps>;
|
|
144
|
+
creatorButtonProps?: false | (Partial<ButtonProps> & {
|
|
145
|
+
text?: ReactNode;
|
|
146
|
+
position?: 'top' | 'bottom';
|
|
147
|
+
});
|
|
148
|
+
itemRender?: (props: {
|
|
149
|
+
listDom: ReactNode;
|
|
150
|
+
action: ProFormListAction;
|
|
151
|
+
}) => ReactNode;
|
|
152
|
+
actionRender?: (row: {
|
|
153
|
+
index: number;
|
|
154
|
+
record: unknown;
|
|
155
|
+
}, action: ProFormListAction, defaultDom: {
|
|
156
|
+
copy: ReactNode;
|
|
157
|
+
delete: ReactNode;
|
|
158
|
+
}) => ReactNode;
|
|
159
|
+
children?: ReactNode | ((fields: Array<{
|
|
160
|
+
name: string;
|
|
161
|
+
key: string;
|
|
162
|
+
}>, action: ProFormListAction) => ReactNode);
|
|
163
|
+
onAfterAdd?: (defaultValue: Record<string, unknown>, index: number) => void;
|
|
164
|
+
onAfterRemove?: (index: number) => void;
|
|
165
|
+
}
|
|
166
|
+
export interface ProFormDependencyProps {
|
|
167
|
+
name: string[];
|
|
168
|
+
ignoreFormListField?: boolean;
|
|
169
|
+
children: (values: Record<string, unknown>, form: ProFormFormInstance) => ReactNode;
|
|
170
|
+
}
|
|
171
|
+
export interface FormListContextValue {
|
|
172
|
+
listName?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface ProFormFieldSetProps {
|
|
175
|
+
name?: string;
|
|
176
|
+
label?: ReactNode;
|
|
177
|
+
rules?: Rule[];
|
|
178
|
+
required?: boolean;
|
|
179
|
+
help?: ReactNode;
|
|
180
|
+
/** Gap between child fields in px */
|
|
181
|
+
gap?: number;
|
|
182
|
+
style?: CSSProperties;
|
|
183
|
+
children?: ReactNode;
|
|
184
|
+
}
|
|
185
|
+
export interface ProFormGroupProps {
|
|
186
|
+
title?: ReactNode;
|
|
187
|
+
/** Extra content rendered at the right of the title */
|
|
188
|
+
extra?: ReactNode;
|
|
189
|
+
collapsible?: boolean;
|
|
190
|
+
defaultCollapsed?: boolean;
|
|
191
|
+
collapsed?: boolean;
|
|
192
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
193
|
+
style?: CSSProperties;
|
|
194
|
+
children?: ReactNode;
|
|
195
|
+
}
|
|
196
|
+
export interface ModalFormProps extends Omit<ProFormProps, 'title'> {
|
|
197
|
+
open?: boolean;
|
|
198
|
+
onOpenChange?: (open: boolean) => void;
|
|
199
|
+
trigger?: ReactElement;
|
|
200
|
+
title?: ReactNode;
|
|
201
|
+
width?: number | string;
|
|
202
|
+
submitTimeout?: number;
|
|
203
|
+
autoClose?: boolean;
|
|
204
|
+
destroyOnClose?: boolean;
|
|
205
|
+
modalProps?: Partial<ModalProps>;
|
|
206
|
+
}
|
|
207
|
+
export interface DrawerFormProps extends Omit<ProFormProps, 'title'> {
|
|
208
|
+
open?: boolean;
|
|
209
|
+
onOpenChange?: (open: boolean) => void;
|
|
210
|
+
trigger?: ReactElement;
|
|
211
|
+
title?: ReactNode;
|
|
212
|
+
width?: number | string;
|
|
213
|
+
placement?: DrawerPlacement;
|
|
214
|
+
submitTimeout?: number;
|
|
215
|
+
autoClose?: boolean;
|
|
216
|
+
destroyOnClose?: boolean;
|
|
217
|
+
drawerProps?: Partial<DrawerProps>;
|
|
218
|
+
}
|
|
219
|
+
export interface QueryFilterProps extends ProFormProps {
|
|
220
|
+
defaultCollapsed?: boolean;
|
|
221
|
+
collapsed?: boolean;
|
|
222
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
223
|
+
defaultColsNumber?: number;
|
|
224
|
+
labelWidth?: number | 'auto';
|
|
225
|
+
split?: boolean;
|
|
226
|
+
searchConfig?: {
|
|
227
|
+
searchText?: ReactNode;
|
|
228
|
+
resetText?: ReactNode;
|
|
229
|
+
};
|
|
230
|
+
/** Sync form values to URL search params */
|
|
231
|
+
syncToUrl?: boolean | ((values: Record<string, unknown>, type: 'get' | 'set') => Record<string, unknown>);
|
|
232
|
+
}
|
|
233
|
+
export interface CreateProFormFieldConfig<FieldProps> {
|
|
234
|
+
component: FC<FieldProps> | (FC<FieldProps> & {
|
|
235
|
+
displayName?: string;
|
|
236
|
+
});
|
|
237
|
+
valuePropName?: string;
|
|
238
|
+
mapProps?: (props: Record<string, unknown>) => Record<string, unknown>;
|
|
239
|
+
renderReadonly?: (value: unknown, props?: Partial<FieldProps>) => ReactNode;
|
|
240
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy9Qcm9Gb3JtL2ludGVyZmFjZS5qcyIsIm5hbWVzIjpbXSwic291cmNlUm9vdCI6Ii4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9Qcm9Gb3JtL2ludGVyZmFjZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQge307Il0sIm1hcHBpbmdzIjoiQUFBQSIsImlnbm9yZUxpc3QiOltdfQ==
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
4
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
5
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
6
|
+
}
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { memo } from 'react';
|
|
11
|
+
import { default as classnames } from '../../../utils/classnames';
|
|
12
|
+
import { Drawer } from '../../Drawer';
|
|
13
|
+
import { ProForm } from '../ProForm';
|
|
14
|
+
import { CSS_PREFIX } from '../constants';
|
|
15
|
+
import { useOverlayForm } from './useOverlayForm';
|
|
16
|
+
var classes = classnames("".concat(CSS_PREFIX, "-drawer-form"));
|
|
17
|
+
var DrawerFormBase = function DrawerFormBase(props) {
|
|
18
|
+
var open = props.open,
|
|
19
|
+
onOpenChange = props.onOpenChange,
|
|
20
|
+
trigger = props.trigger,
|
|
21
|
+
title = props.title,
|
|
22
|
+
_props$width = props.width,
|
|
23
|
+
width = _props$width === void 0 ? 480 : _props$width,
|
|
24
|
+
_props$placement = props.placement,
|
|
25
|
+
placement = _props$placement === void 0 ? 'right' : _props$placement,
|
|
26
|
+
submitTimeout = props.submitTimeout,
|
|
27
|
+
_props$autoClose = props.autoClose,
|
|
28
|
+
autoClose = _props$autoClose === void 0 ? true : _props$autoClose,
|
|
29
|
+
drawerProps = props.drawerProps,
|
|
30
|
+
onFinish = props.onFinish,
|
|
31
|
+
submitter = props.submitter,
|
|
32
|
+
children = props.children,
|
|
33
|
+
_destroyOnClose = props.destroyOnClose,
|
|
34
|
+
formProps = __rest(props, ["open", "onOpenChange", "trigger", "title", "width", "placement", "submitTimeout", "autoClose", "drawerProps", "onFinish", "submitter", "children", "destroyOnClose"]);
|
|
35
|
+
var _useOverlayForm = useOverlayForm({
|
|
36
|
+
open: open,
|
|
37
|
+
onOpenChange: onOpenChange,
|
|
38
|
+
trigger: trigger,
|
|
39
|
+
autoClose: autoClose,
|
|
40
|
+
submitTimeout: submitTimeout
|
|
41
|
+
}, onFinish),
|
|
42
|
+
mergedOpen = _useOverlayForm.mergedOpen,
|
|
43
|
+
triggerNode = _useOverlayForm.triggerNode,
|
|
44
|
+
handleFinish = _useOverlayForm.handleFinish,
|
|
45
|
+
handleHide = _useOverlayForm.handleHide;
|
|
46
|
+
return _jsxs(_Fragment, {
|
|
47
|
+
children: [triggerNode, _jsx(Drawer, Object.assign({}, drawerProps, {
|
|
48
|
+
open: mergedOpen,
|
|
49
|
+
title: title,
|
|
50
|
+
placement: placement,
|
|
51
|
+
width: width,
|
|
52
|
+
onClose: handleHide,
|
|
53
|
+
footer: null,
|
|
54
|
+
children: _jsx("div", {
|
|
55
|
+
className: classes(),
|
|
56
|
+
children: _jsx(ProForm, Object.assign({}, formProps, {
|
|
57
|
+
onFinish: handleFinish,
|
|
58
|
+
submitter: submitter !== undefined ? submitter : {
|
|
59
|
+
resetButtonProps: {
|
|
60
|
+
onClick: handleHide
|
|
61
|
+
},
|
|
62
|
+
resetText: 'Cancel'
|
|
63
|
+
},
|
|
64
|
+
children: children
|
|
65
|
+
}))
|
|
66
|
+
})
|
|
67
|
+
}))]
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
DrawerFormBase.displayName = 'DrawerForm';
|
|
71
|
+
export var DrawerForm = /*#__PURE__*/memo(DrawerFormBase);
|
|
72
|
+
export default DrawerForm;
|
|
73
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvUHJvRm9ybS9sYXlvdXRzL0RyYXdlckZvcm0uanMiLCJjb21wb25lbnRzL1Byb0Zvcm0vc3JjL2NvbXBvbmVudHMvUHJvRm9ybS9sYXlvdXRzL0RyYXdlckZvcm0udHN4Il0sIm5hbWVzIjpbIl9fcmVzdCIsInMiLCJlIiwidCIsInAiLCJPYmplY3QiLCJwcm90b3R5cGUiLCJoYXNPd25Qcm9wZ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|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
4
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
5
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
6
|
+
}
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { memo } from 'react';
|
|
11
|
+
import { default as classnames } from '../../../utils/classnames';
|
|
12
|
+
import { Modal } from '../../Modal';
|
|
13
|
+
import { ProForm } from '../ProForm';
|
|
14
|
+
import { CSS_PREFIX } from '../constants';
|
|
15
|
+
import { useOverlayForm } from './useOverlayForm';
|
|
16
|
+
var classes = classnames("".concat(CSS_PREFIX, "-modal-form"));
|
|
17
|
+
var ModalFormBase = function ModalFormBase(props) {
|
|
18
|
+
var _a;
|
|
19
|
+
var open = props.open,
|
|
20
|
+
onOpenChange = props.onOpenChange,
|
|
21
|
+
trigger = props.trigger,
|
|
22
|
+
title = props.title,
|
|
23
|
+
width = props.width,
|
|
24
|
+
submitTimeout = props.submitTimeout,
|
|
25
|
+
_props$autoClose = props.autoClose,
|
|
26
|
+
autoClose = _props$autoClose === void 0 ? true : _props$autoClose,
|
|
27
|
+
modalProps = props.modalProps,
|
|
28
|
+
onFinish = props.onFinish,
|
|
29
|
+
submitter = props.submitter,
|
|
30
|
+
children = props.children,
|
|
31
|
+
_destroyOnClose = props.destroyOnClose,
|
|
32
|
+
formProps = __rest(props, ["open", "onOpenChange", "trigger", "title", "width", "submitTimeout", "autoClose", "modalProps", "onFinish", "submitter", "children", "destroyOnClose"]);
|
|
33
|
+
var _useOverlayForm = useOverlayForm({
|
|
34
|
+
open: open,
|
|
35
|
+
onOpenChange: onOpenChange,
|
|
36
|
+
trigger: trigger,
|
|
37
|
+
autoClose: autoClose,
|
|
38
|
+
submitTimeout: submitTimeout
|
|
39
|
+
}, onFinish),
|
|
40
|
+
mergedOpen = _useOverlayForm.mergedOpen,
|
|
41
|
+
triggerNode = _useOverlayForm.triggerNode,
|
|
42
|
+
handleFinish = _useOverlayForm.handleFinish,
|
|
43
|
+
handleHide = _useOverlayForm.handleHide;
|
|
44
|
+
return _jsxs(_Fragment, {
|
|
45
|
+
children: [triggerNode, _jsx(Modal, Object.assign({}, modalProps, {
|
|
46
|
+
open: mergedOpen,
|
|
47
|
+
title: title,
|
|
48
|
+
onCancel: handleHide,
|
|
49
|
+
footer: null
|
|
50
|
+
}, width !== undefined ? {
|
|
51
|
+
rootStyle: Object.assign(Object.assign({}, modalProps === null || modalProps === void 0 ? void 0 : modalProps.rootStyle), {
|
|
52
|
+
width: width
|
|
53
|
+
})
|
|
54
|
+
} : {}, {
|
|
55
|
+
children: _jsx("div", {
|
|
56
|
+
className: classes(),
|
|
57
|
+
children: _jsx(ProForm, Object.assign({}, formProps, {
|
|
58
|
+
onFinish: handleFinish,
|
|
59
|
+
submitter: submitter !== undefined ? submitter : {
|
|
60
|
+
resetButtonProps: {
|
|
61
|
+
onClick: handleHide
|
|
62
|
+
},
|
|
63
|
+
resetText: (_a = modalProps === null || modalProps === void 0 ? void 0 : modalProps.cancelText) !== null && _a !== void 0 ? _a : 'Cancel'
|
|
64
|
+
},
|
|
65
|
+
children: children
|
|
66
|
+
}))
|
|
67
|
+
})
|
|
68
|
+
}))]
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
ModalFormBase.displayName = 'ModalForm';
|
|
72
|
+
export var ModalForm = /*#__PURE__*/memo(ModalFormBase);
|
|
73
|
+
export default ModalForm;
|
|
74
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvUHJvRm9ybS9sYX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