@tiny-design/react 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_utils/components.js +205 -0
- package/es/_utils/components.js.map +1 -0
- package/es/_utils/dom.d.ts +5 -0
- package/es/_utils/dom.js +31 -0
- package/es/_utils/dom.js.map +1 -0
- package/es/_utils/general.js +24 -0
- package/es/_utils/general.js.map +1 -0
- package/es/_utils/hooks.js +33 -0
- package/es/_utils/hooks.js.map +1 -0
- package/es/_utils/object.js +29 -0
- package/es/_utils/object.js.map +1 -0
- package/es/_utils/props.d.ts +14 -0
- package/es/_utils/use-locale.d.ts +7 -0
- package/es/_utils/use-locale.js +13 -0
- package/es/_utils/use-locale.js.map +1 -0
- package/es/_utils/use-theme.d.ts +11 -0
- package/es/_utils/use-theme.js +53 -0
- package/es/_utils/use-theme.js.map +1 -0
- package/es/_utils/use-virtual-scroll.js +30 -0
- package/es/_utils/use-virtual-scroll.js.map +1 -0
- package/es/_utils/useCombobox.js +82 -0
- package/es/_utils/useCombobox.js.map +1 -0
- package/es/_utils/warning.js +6 -0
- package/es/_utils/warning.js.map +1 -0
- package/es/alert/alert.d.ts +8 -0
- package/es/alert/alert.js +87 -0
- package/es/alert/alert.js.map +1 -0
- package/es/alert/index.d.ts +1 -0
- package/es/alert/index.js +9 -0
- package/es/alert/index.js.map +1 -0
- package/es/alert/style/_index.scss +72 -0
- package/es/alert/style/_mixin.scss +5 -0
- package/es/alert/style/index.css +70 -0
- package/es/alert/style/index.d.ts +1 -0
- package/es/alert/style/index.js +1 -0
- package/es/alert/types.d.ts +26 -0
- package/es/anchor/anchor-context.js +7 -0
- package/es/anchor/anchor-context.js.map +1 -0
- package/es/anchor/anchor-link.d.ts +8 -0
- package/es/anchor/anchor-link.js +44 -0
- package/es/anchor/anchor-link.js.map +1 -0
- package/es/anchor/anchor.d.ts +10 -0
- package/es/anchor/anchor.js +166 -0
- package/es/anchor/anchor.js.map +1 -0
- package/es/anchor/index.d.ts +11 -0
- package/es/anchor/index.js +12 -0
- package/es/anchor/index.js.map +1 -0
- package/es/anchor/style/_index.scss +83 -0
- package/es/anchor/style/index.css +67 -0
- package/es/anchor/style/index.d.ts +1 -0
- package/es/anchor/style/index.js +2 -0
- package/es/anchor/types.d.ts +25 -0
- package/es/aspect-ratio/aspect-ratio.d.ts +8 -0
- package/es/aspect-ratio/aspect-ratio.js +32 -0
- package/es/aspect-ratio/aspect-ratio.js.map +1 -0
- package/es/aspect-ratio/index.d.ts +1 -0
- package/es/aspect-ratio/index.js +9 -0
- package/es/aspect-ratio/index.js.map +1 -0
- package/es/aspect-ratio/style/_index.scss +22 -0
- package/es/aspect-ratio/style/index.css +18 -0
- package/es/aspect-ratio/style/index.d.ts +1 -0
- package/es/aspect-ratio/style/index.js +1 -0
- package/es/aspect-ratio/types.d.ts +13 -0
- package/es/auto-complete/auto-complete.d.ts +8 -0
- package/es/auto-complete/auto-complete.js +138 -0
- package/es/auto-complete/auto-complete.js.map +1 -0
- package/es/auto-complete/index.d.ts +2 -0
- package/es/auto-complete/style/_index.scss +58 -0
- package/es/auto-complete/style/index.css +48 -0
- package/es/auto-complete/style/index.d.ts +1 -0
- package/es/auto-complete/style/index.js +1 -0
- package/es/auto-complete/types.d.ts +31 -0
- package/es/avatar/avatar-group.d.ts +10 -0
- package/es/avatar/avatar-group.js +31 -0
- package/es/avatar/avatar-group.js.map +1 -0
- package/es/avatar/avatar.d.ts +8 -0
- package/es/avatar/avatar.js +76 -0
- package/es/avatar/avatar.js.map +1 -0
- package/es/avatar/index.d.ts +11 -0
- package/es/avatar/index.js +11 -0
- package/es/avatar/index.js.map +1 -0
- package/es/avatar/style/_index.scss +80 -0
- package/es/avatar/style/index.css +65 -0
- package/es/avatar/style/index.d.ts +1 -0
- package/es/avatar/style/index.js +1 -0
- package/es/avatar/types.d.ts +27 -0
- package/es/back-top/back-top.d.ts +7 -0
- package/es/back-top/back-top.js +79 -0
- package/es/back-top/back-top.js.map +1 -0
- package/es/back-top/index.d.ts +1 -0
- package/es/back-top/index.js +9 -0
- package/es/back-top/index.js.map +1 -0
- package/es/back-top/style/_index.scss +25 -0
- package/es/back-top/style/index.css +22 -0
- package/es/back-top/style/index.d.ts +1 -0
- package/es/back-top/style/index.js +1 -0
- package/es/back-top/types.d.ts +14 -0
- package/es/badge/badge.d.ts +8 -0
- package/es/badge/badge.js +50 -0
- package/es/badge/badge.js.map +1 -0
- package/es/badge/index.d.ts +1 -0
- package/es/badge/index.js +9 -0
- package/es/badge/index.js.map +1 -0
- package/es/badge/style/_index.scss +60 -0
- package/es/badge/style/_mixin.scss +11 -0
- package/es/badge/style/index.css +85 -0
- package/es/badge/style/index.d.ts +1 -0
- package/es/badge/style/index.js +1 -0
- package/es/badge/types.d.ts +25 -0
- package/es/breadcrumb/breadcrumb-item.d.ts +11 -0
- package/es/breadcrumb/breadcrumb-item.js +25 -0
- package/es/breadcrumb/breadcrumb-item.js.map +1 -0
- package/es/breadcrumb/breadcrumb.d.ts +11 -0
- package/es/breadcrumb/breadcrumb.js +27 -0
- package/es/breadcrumb/breadcrumb.js.map +1 -0
- package/es/breadcrumb/index.d.ts +11 -0
- package/es/breadcrumb/index.js +11 -0
- package/es/breadcrumb/index.js.map +1 -0
- package/es/breadcrumb/style/_index.scss +38 -0
- package/es/breadcrumb/style/index.css +25 -0
- package/es/breadcrumb/style/index.d.ts +1 -0
- package/es/breadcrumb/style/index.js +1 -0
- package/es/breadcrumb/types.d.ts +15 -0
- package/es/button/button-group.d.ts +8 -0
- package/es/button/button-group.js +38 -0
- package/es/button/button-group.js.map +1 -0
- package/es/button/button.d.ts +8 -0
- package/es/button/button.js +48 -0
- package/es/button/button.js.map +1 -0
- package/es/button/index.d.ts +11 -0
- package/es/button/index.js +11 -0
- package/es/button/index.js.map +1 -0
- package/es/button/style/_index.scss +215 -0
- package/es/button/style/_mixin.scss +45 -0
- package/es/button/style/index.css +369 -0
- package/es/button/style/index.d.ts +1 -0
- package/es/button/style/index.js +1 -0
- package/es/button/types.d.ts +24 -0
- package/es/calendar/calendar.d.ts +8 -0
- package/es/calendar/calendar.js +199 -0
- package/es/calendar/calendar.js.map +1 -0
- package/es/calendar/index.d.ts +1 -0
- package/es/calendar/index.js +9 -0
- package/es/calendar/index.js.map +1 -0
- package/es/calendar/style/_index.scss +190 -0
- package/es/calendar/style/index.css +156 -0
- package/es/calendar/style/index.d.ts +1 -0
- package/es/calendar/style/index.js +1 -0
- package/es/calendar/types.d.ts +27 -0
- package/es/card/card-content.d.ts +11 -0
- package/es/card/card-content.js +16 -0
- package/es/card/card-content.js.map +1 -0
- package/es/card/card.d.ts +8 -0
- package/es/card/card.js +60 -0
- package/es/card/card.js.map +1 -0
- package/es/card/index.d.ts +11 -0
- package/es/card/index.js +11 -0
- package/es/card/index.js.map +1 -0
- package/es/card/style/_index.scss +57 -0
- package/es/card/style/_mixin.scss +4 -0
- package/es/card/style/index.css +48 -0
- package/es/card/style/index.d.ts +1 -0
- package/es/card/style/index.js +1 -0
- package/es/card/types.d.ts +25 -0
- package/es/carousel/carousel-item.d.ts +13 -0
- package/es/carousel/carousel-item.js +15 -0
- package/es/carousel/carousel-item.js.map +1 -0
- package/es/carousel/carousel.d.ts +8 -0
- package/es/carousel/carousel.js +226 -0
- package/es/carousel/carousel.js.map +1 -0
- package/es/carousel/index.d.ts +12 -0
- package/es/carousel/index.js +11 -0
- package/es/carousel/index.js.map +1 -0
- package/es/carousel/style/_index.scss +158 -0
- package/es/carousel/style/index.css +128 -0
- package/es/carousel/style/index.d.ts +1 -0
- package/es/carousel/style/index.js +1 -0
- package/es/carousel/types.d.ts +47 -0
- package/es/cascader/cascader.d.ts +8 -0
- package/es/cascader/cascader.js +196 -0
- package/es/cascader/cascader.js.map +1 -0
- package/es/cascader/index.d.ts +1 -0
- package/es/cascader/index.js +9 -0
- package/es/cascader/index.js.map +1 -0
- package/es/cascader/style/_index.scss +162 -0
- package/es/cascader/style/index.css +135 -0
- package/es/cascader/style/index.d.ts +1 -0
- package/es/cascader/style/index.js +1 -0
- package/es/cascader/types.d.ts +31 -0
- package/es/checkbox/checkbox-group-context.js +7 -0
- package/es/checkbox/checkbox-group-context.js.map +1 -0
- package/es/checkbox/checkbox-group.d.ts +8 -0
- package/es/checkbox/checkbox-group.js +42 -0
- package/es/checkbox/checkbox-group.js.map +1 -0
- package/es/checkbox/checkbox.d.ts +8 -0
- package/es/checkbox/checkbox.js +61 -0
- package/es/checkbox/checkbox.js.map +1 -0
- package/es/checkbox/index.d.ts +11 -0
- package/es/checkbox/index.js +11 -0
- package/es/checkbox/index.js.map +1 -0
- package/es/checkbox/style/_index.scss +139 -0
- package/es/checkbox/style/index.css +106 -0
- package/es/checkbox/style/index.d.ts +1 -0
- package/es/checkbox/style/index.js +1 -0
- package/es/checkbox/types.d.ts +23 -0
- package/es/col/index.d.ts +1 -0
- package/es/col/index.js +7 -0
- package/es/col/index.js.map +1 -0
- package/es/collapse/collapse-context.js +7 -0
- package/es/collapse/collapse-context.js.map +1 -0
- package/es/collapse/collapse-panel.d.ts +11 -0
- package/es/collapse/collapse-panel.js +96 -0
- package/es/collapse/collapse-panel.js.map +1 -0
- package/es/collapse/collapse.d.ts +8 -0
- package/es/collapse/collapse.js +68 -0
- package/es/collapse/collapse.js.map +1 -0
- package/es/collapse/index.d.ts +11 -0
- package/es/collapse/index.js +11 -0
- package/es/collapse/index.js.map +1 -0
- package/es/collapse/style/_index.scss +101 -0
- package/es/collapse/style/index.css +83 -0
- package/es/collapse/style/index.d.ts +1 -0
- package/es/collapse/style/index.js +1 -0
- package/es/collapse/types.d.ts +28 -0
- package/es/collapse-transition/collapse-transition.js +97 -0
- package/es/collapse-transition/collapse-transition.js.map +1 -0
- package/es/collapse-transition/index.js +9 -0
- package/es/collapse-transition/index.js.map +1 -0
- package/es/collapse-transition/style/_index.scss +4 -0
- package/es/collapse-transition/style/index.css +4 -0
- package/es/collapse-transition/style/index.d.ts +1 -0
- package/es/collapse-transition/style/index.js +1 -0
- package/es/color-picker/color-picker.d.ts +8 -0
- package/es/color-picker/color-picker.js +250 -0
- package/es/color-picker/color-picker.js.map +1 -0
- package/es/color-picker/index.d.ts +1 -0
- package/es/color-picker/index.js +9 -0
- package/es/color-picker/index.js.map +1 -0
- package/es/color-picker/style/_index.scss +196 -0
- package/es/color-picker/style/index.css +169 -0
- package/es/color-picker/style/index.d.ts +1 -0
- package/es/color-picker/style/index.js +1 -0
- package/es/color-picker/types.d.ts +23 -0
- package/es/color-picker/utils.js +113 -0
- package/es/color-picker/utils.js.map +1 -0
- package/es/config-provider/config-context.d.ts +18 -0
- package/es/config-provider/config-context.js +12 -0
- package/es/config-provider/config-context.js.map +1 -0
- package/es/config-provider/config-provider.d.ts +10 -0
- package/es/config-provider/config-provider.js +29 -0
- package/es/config-provider/config-provider.js.map +1 -0
- package/es/config-provider/index.d.ts +1 -0
- package/es/config-provider/index.js +7 -0
- package/es/config-provider/index.js.map +1 -0
- package/es/config-provider/types.d.ts +10 -0
- package/es/copy-to-clipboard/copy-to-clipboard.d.ts +11 -0
- package/es/copy-to-clipboard/copy-to-clipboard.js +45 -0
- package/es/copy-to-clipboard/copy-to-clipboard.js.map +1 -0
- package/es/copy-to-clipboard/index.d.ts +1 -0
- package/es/copy-to-clipboard/index.js +7 -0
- package/es/copy-to-clipboard/index.js.map +1 -0
- package/es/copy-to-clipboard/types.d.ts +11 -0
- package/es/countdown/countdown.d.ts +8 -0
- package/es/countdown/countdown.js +65 -0
- package/es/countdown/countdown.js.map +1 -0
- package/es/countdown/index.d.ts +1 -0
- package/es/countdown/index.js +7 -0
- package/es/countdown/index.js.map +1 -0
- package/es/countdown/types.d.ts +20 -0
- package/es/date-picker/date-picker.d.ts +11 -0
- package/es/date-picker/date-picker.js +228 -0
- package/es/date-picker/date-picker.js.map +1 -0
- package/es/date-picker/index.d.ts +2 -0
- package/es/date-picker/index.js +9 -0
- package/es/date-picker/index.js.map +1 -0
- package/es/date-picker/picker-day.js +42 -0
- package/es/date-picker/picker-day.js.map +1 -0
- package/es/date-picker/picker-header.js +74 -0
- package/es/date-picker/picker-header.js.map +1 -0
- package/es/date-picker/picker-month.js +42 -0
- package/es/date-picker/picker-month.js.map +1 -0
- package/es/date-picker/picker-year.js +46 -0
- package/es/date-picker/picker-year.js.map +1 -0
- package/es/date-picker/style/_index.scss +272 -0
- package/es/date-picker/style/index.css +221 -0
- package/es/date-picker/style/index.d.ts +1 -0
- package/es/date-picker/style/index.js +1 -0
- package/es/date-picker/types.d.ts +45 -0
- package/es/date-picker/utils.js +102 -0
- package/es/date-picker/utils.js.map +1 -0
- package/es/descriptions/col.js +50 -0
- package/es/descriptions/col.js.map +1 -0
- package/es/descriptions/descriptions-item.d.ts +10 -0
- package/es/descriptions/descriptions-item.js +9 -0
- package/es/descriptions/descriptions-item.js.map +1 -0
- package/es/descriptions/descriptions.d.ts +11 -0
- package/es/descriptions/descriptions.js +63 -0
- package/es/descriptions/descriptions.js.map +1 -0
- package/es/descriptions/index.d.ts +11 -0
- package/es/descriptions/index.js +11 -0
- package/es/descriptions/index.js.map +1 -0
- package/es/descriptions/row.js +32 -0
- package/es/descriptions/row.js.map +1 -0
- package/es/descriptions/style/_index.scss +116 -0
- package/es/descriptions/style/index.css +72 -0
- package/es/descriptions/style/index.d.ts +1 -0
- package/es/descriptions/style/index.js +1 -0
- package/es/descriptions/types.d.ts +20 -0
- package/es/divider/divider.d.ts +8 -0
- package/es/divider/divider.js +29 -0
- package/es/divider/divider.js.map +1 -0
- package/es/divider/index.d.ts +1 -0
- package/es/divider/index.js +9 -0
- package/es/divider/index.js.map +1 -0
- package/es/divider/style/_index.scss +80 -0
- package/es/divider/style/index.css +62 -0
- package/es/divider/style/index.d.ts +1 -0
- package/es/divider/style/index.js +1 -0
- package/es/divider/types.d.ts +14 -0
- package/es/drawer/drawer.d.ts +8 -0
- package/es/drawer/drawer.js +117 -0
- package/es/drawer/drawer.js.map +1 -0
- package/es/drawer/index.d.ts +1 -0
- package/es/drawer/index.js +10 -0
- package/es/drawer/index.js.map +1 -0
- package/es/drawer/style/_index.scss +152 -0
- package/es/drawer/style/index.css +110 -0
- package/es/drawer/style/index.d.ts +1 -0
- package/es/drawer/style/index.js +2 -0
- package/es/drawer/types.d.ts +26 -0
- package/es/dropdown/dropdown.d.ts +10 -0
- package/es/dropdown/dropdown.js +107 -0
- package/es/dropdown/dropdown.js.map +1 -0
- package/es/dropdown/index.d.ts +1 -0
- package/es/dropdown/index.js +10 -0
- package/es/dropdown/index.js.map +1 -0
- package/es/dropdown/style/_index.scss +37 -0
- package/es/dropdown/style/index.css +24 -0
- package/es/dropdown/style/index.d.ts +1 -0
- package/es/dropdown/style/index.js +2 -0
- package/es/dropdown/types.d.ts +20 -0
- package/es/empty/empty.d.ts +8 -0
- package/es/empty/empty.js +82 -0
- package/es/empty/empty.js.map +1 -0
- package/es/empty/index.d.ts +1 -0
- package/es/empty/index.js +9 -0
- package/es/empty/index.js.map +1 -0
- package/es/empty/style/_index.scss +26 -0
- package/es/empty/style/index.css +20 -0
- package/es/empty/style/index.d.ts +1 -0
- package/es/empty/style/index.js +1 -0
- package/es/empty/types.d.ts +14 -0
- package/es/flex/flex.d.ts +8 -0
- package/es/flex/flex.js +36 -0
- package/es/flex/flex.js.map +1 -0
- package/es/flex/index.d.ts +1 -0
- package/es/flex/index.js +9 -0
- package/es/flex/index.js.map +1 -0
- package/es/flex/style/_index.scss +5 -0
- package/es/flex/style/index.css +3 -0
- package/es/flex/style/index.d.ts +1 -0
- package/es/flex/style/index.js +1 -0
- package/es/flex/types.d.ts +16 -0
- package/es/flip/flip-item.d.ts +10 -0
- package/es/flip/flip-item.js +15 -0
- package/es/flip/flip-item.js.map +1 -0
- package/es/flip/flip.d.ts +11 -0
- package/es/flip/flip.js +50 -0
- package/es/flip/flip.js.map +1 -0
- package/es/flip/index.d.ts +11 -0
- package/es/flip/index.js +11 -0
- package/es/flip/index.js.map +1 -0
- package/es/flip/style/_index.scss +61 -0
- package/es/flip/style/index.css +46 -0
- package/es/flip/style/index.d.ts +1 -0
- package/es/flip/style/index.js +1 -0
- package/es/flip/types.d.ts +20 -0
- package/es/form/form-helper.js +36 -0
- package/es/form/form-helper.js.map +1 -0
- package/es/form/form-instance-context.js +8 -0
- package/es/form/form-instance-context.js.map +1 -0
- package/es/form/form-instance.d.ts +37 -0
- package/es/form/form-instance.js +75 -0
- package/es/form/form-instance.js.map +1 -0
- package/es/form/form-item.d.ts +10 -0
- package/es/form/form-item.js +136 -0
- package/es/form/form-item.js.map +1 -0
- package/es/form/form-options-context.js +12 -0
- package/es/form/form-options-context.js.map +1 -0
- package/es/form/form.d.ts +10 -0
- package/es/form/form.js +59 -0
- package/es/form/form.js.map +1 -0
- package/es/form/index.d.ts +15 -0
- package/es/form/index.js +16 -0
- package/es/form/index.js.map +1 -0
- package/es/form/style/_index.scss +93 -0
- package/es/form/style/index.css +71 -0
- package/es/form/style/index.d.ts +1 -0
- package/es/form/style/index.js +2 -0
- package/es/form/types.d.ts +67 -0
- package/es/form/use-form.d.ts +7 -0
- package/es/form/use-form.js +9 -0
- package/es/form/use-form.js.map +1 -0
- package/es/grid/col.d.ts +8 -0
- package/es/grid/col.js +48 -0
- package/es/grid/col.js.map +1 -0
- package/es/grid/row.d.ts +8 -0
- package/es/grid/row.js +52 -0
- package/es/grid/row.js.map +1 -0
- package/es/grid/style/_index.scss +90 -0
- package/es/grid/style/index.css +1562 -0
- package/es/grid/style/index.d.ts +1 -0
- package/es/grid/style/index.js +1 -0
- package/es/grid/types.d.ts +34 -0
- package/es/icon/icon.d.ts +8 -0
- package/es/icon/icon.js +25 -0
- package/es/icon/icon.js.map +1 -0
- package/es/icon/index.d.ts +1 -0
- package/es/icon/index.js +9 -0
- package/es/icon/index.js.map +1 -0
- package/es/icon/style/_index.scss +16 -0
- package/es/icon/style/index.css +987 -0
- package/es/icon/style/index.d.ts +1 -0
- package/es/icon/style/index.js +1 -0
- package/es/icon/types.d.ts +15 -0
- package/es/image/image.d.ts +10 -0
- package/es/image/image.js +49 -0
- package/es/image/image.js.map +1 -0
- package/es/image/index.d.ts +1 -0
- package/es/image/index.js +9 -0
- package/es/image/index.js.map +1 -0
- package/es/image/style/_index.scss +9 -0
- package/es/image/style/index.css +6 -0
- package/es/image/style/index.d.ts +1 -0
- package/es/image/style/index.js +1 -0
- package/es/image/types.d.ts +18 -0
- package/es/index.d.ts +88 -0
- package/es/index.js +88 -0
- package/es/input/index.d.ts +13 -0
- package/es/input/index.js +13 -0
- package/es/input/index.js.map +1 -0
- package/es/input/input-group-addon.d.ts +11 -0
- package/es/input/input-group-addon.js +35 -0
- package/es/input/input-group-addon.js.map +1 -0
- package/es/input/input-group.d.ts +11 -0
- package/es/input/input-group.js +28 -0
- package/es/input/input-group.js.map +1 -0
- package/es/input/input.d.ts +8 -0
- package/es/input/input.js +92 -0
- package/es/input/input.js.map +1 -0
- package/es/input/style/_index.scss +180 -0
- package/es/input/style/_mixin.scss +38 -0
- package/es/input/style/index.css +157 -0
- package/es/input/style/index.d.ts +1 -0
- package/es/input/style/index.js +1 -0
- package/es/input/types.d.ts +31 -0
- package/es/input-number/index.d.ts +1 -0
- package/es/input-number/index.js +10 -0
- package/es/input-number/index.js.map +1 -0
- package/es/input-number/input-number.d.ts +8 -0
- package/es/input-number/input-number.js +98 -0
- package/es/input-number/input-number.js.map +1 -0
- package/es/input-number/style/_index.scss +142 -0
- package/es/input-number/style/index.css +123 -0
- package/es/input-number/style/index.d.ts +1 -0
- package/es/input-number/style/index.js +2 -0
- package/es/input-number/types.d.ts +21 -0
- package/es/input-password/index.d.ts +1 -0
- package/es/input-password/index.js +10 -0
- package/es/input-password/index.js.map +1 -0
- package/es/input-password/input-password.d.ts +7 -0
- package/es/input-password/input-password.js +40 -0
- package/es/input-password/input-password.js.map +1 -0
- package/es/input-password/style/_index.scss +20 -0
- package/es/input-password/style/index.css +14 -0
- package/es/input-password/style/index.d.ts +1 -0
- package/es/input-password/style/index.js +2 -0
- package/es/input-password/types.d.ts +12 -0
- package/es/intl-provider/index.d.ts +1 -0
- package/es/intl-provider/index.js +7 -0
- package/es/intl-provider/index.js.map +1 -0
- package/es/intl-provider/intl-context.js +8 -0
- package/es/intl-provider/intl-context.js.map +1 -0
- package/es/intl-provider/intl-provider.d.ts +12 -0
- package/es/intl-provider/intl-provider.js +15 -0
- package/es/intl-provider/intl-provider.js.map +1 -0
- package/es/intl-provider/with-locale.d.ts +14 -0
- package/es/intl-provider/with-locale.js +19 -0
- package/es/intl-provider/with-locale.js.map +1 -0
- package/es/keyboard/index.d.ts +1 -0
- package/es/keyboard/index.js +9 -0
- package/es/keyboard/index.js.map +1 -0
- package/es/keyboard/keyboard.d.ts +8 -0
- package/es/keyboard/keyboard.js +21 -0
- package/es/keyboard/keyboard.js.map +1 -0
- package/es/keyboard/style/_index.scss +23 -0
- package/es/keyboard/style/index.css +22 -0
- package/es/keyboard/style/index.d.ts +1 -0
- package/es/keyboard/style/index.js +1 -0
- package/es/keyboard/types.d.ts +10 -0
- package/es/layout/index.d.ts +14 -0
- package/es/layout/index.js +14 -0
- package/es/layout/index.js.map +1 -0
- package/es/layout/layout.d.ts +14 -0
- package/es/layout/layout.js +65 -0
- package/es/layout/layout.js.map +1 -0
- package/es/layout/sidebar-context.js +11 -0
- package/es/layout/sidebar-context.js.map +1 -0
- package/es/layout/sidebar.d.ts +8 -0
- package/es/layout/sidebar.js +63 -0
- package/es/layout/sidebar.js.map +1 -0
- package/es/layout/style/_index.scss +82 -0
- package/es/layout/style/index.css +69 -0
- package/es/layout/style/index.d.ts +1 -0
- package/es/layout/style/index.js +1 -0
- package/es/layout/types.d.ts +20 -0
- package/es/link/index.d.ts +1 -0
- package/es/link/index.js +9 -0
- package/es/link/index.js.map +1 -0
- package/es/link/link.d.ts +8 -0
- package/es/link/link.js +34 -0
- package/es/link/link.js.map +1 -0
- package/es/link/style/_index.scss +17 -0
- package/es/link/style/index.css +11 -0
- package/es/link/style/index.d.ts +1 -0
- package/es/link/style/index.js +1 -0
- package/es/link/types.d.ts +13 -0
- package/es/list/index.d.ts +13 -0
- package/es/list/index.js +13 -0
- package/es/list/index.js.map +1 -0
- package/es/list/list-item-meta.d.ts +11 -0
- package/es/list/list-item-meta.js +32 -0
- package/es/list/list-item-meta.js.map +1 -0
- package/es/list/list-item.d.ts +8 -0
- package/es/list/list-item.js +38 -0
- package/es/list/list-item.js.map +1 -0
- package/es/list/list.d.ts +8 -0
- package/es/list/list.js +143 -0
- package/es/list/list.js.map +1 -0
- package/es/list/style/_index.scss +141 -0
- package/es/list/style/index.css +108 -0
- package/es/list/style/index.d.ts +1 -0
- package/es/list/style/index.js +1 -0
- package/es/list/types.d.ts +47 -0
- package/es/loader/index.d.ts +1 -0
- package/es/loader/index.js +9 -0
- package/es/loader/index.js.map +1 -0
- package/es/loader/indicator.js +19 -0
- package/es/loader/indicator.js.map +1 -0
- package/es/loader/loader.d.ts +8 -0
- package/es/loader/loader.js +42 -0
- package/es/loader/loader.js.map +1 -0
- package/es/loader/style/_index.scss +142 -0
- package/es/loader/style/index.css +135 -0
- package/es/loader/style/index.d.ts +1 -0
- package/es/loader/style/index.js +1 -0
- package/es/loader/types.d.ts +21 -0
- package/es/loading-bar/index.d.ts +9 -0
- package/es/loading-bar/index.js +79 -0
- package/es/loading-bar/index.js.map +1 -0
- package/es/loading-bar/loading-bar.js +28 -0
- package/es/loading-bar/loading-bar.js.map +1 -0
- package/es/loading-bar/style/_index.scss +17 -0
- package/es/loading-bar/style/index.css +14 -0
- package/es/loading-bar/style/index.d.ts +1 -0
- package/es/loading-bar/style/index.js +1 -0
- package/es/locale/en_US.d.ts +7 -0
- package/es/locale/en_US.js +64 -0
- package/es/locale/en_US.js.map +1 -0
- package/es/locale/types.d.ts +44 -0
- package/es/locale/zh_CN.d.ts +7 -0
- package/es/locale/zh_CN.js +64 -0
- package/es/locale/zh_CN.js.map +1 -0
- package/es/menu/index.d.ts +17 -0
- package/es/menu/index.js +19 -0
- package/es/menu/index.js.map +1 -0
- package/es/menu/menu-context.js +11 -0
- package/es/menu/menu-context.js.map +1 -0
- package/es/menu/menu-divider.d.ts +10 -0
- package/es/menu/menu-divider.js +15 -0
- package/es/menu/menu-divider.js.map +1 -0
- package/es/menu/menu-item-group.d.ts +10 -0
- package/es/menu/menu-item-group.js +43 -0
- package/es/menu/menu-item-group.js.map +1 -0
- package/es/menu/menu-item.d.ts +10 -0
- package/es/menu/menu-item.js +49 -0
- package/es/menu/menu-item.js.map +1 -0
- package/es/menu/menu.d.ts +10 -0
- package/es/menu/menu.js +51 -0
- package/es/menu/menu.js.map +1 -0
- package/es/menu/style/_index.scss +183 -0
- package/es/menu/style/_mixin.scss +16 -0
- package/es/menu/style/index.css +158 -0
- package/es/menu/style/index.d.ts +1 -0
- package/es/menu/style/index.js +3 -0
- package/es/menu/sub-menu-context.js +7 -0
- package/es/menu/sub-menu-context.js.map +1 -0
- package/es/menu/sub-menu.d.ts +10 -0
- package/es/menu/sub-menu.js +135 -0
- package/es/menu/sub-menu.js.map +1 -0
- package/es/menu/types.d.ts +37 -0
- package/es/message/index.d.ts +1 -0
- package/es/message/index.js +9 -0
- package/es/message/index.js.map +1 -0
- package/es/message/message-container.d.ts +7 -0
- package/es/message/message-container.js +69 -0
- package/es/message/message-container.js.map +1 -0
- package/es/message/message.js +81 -0
- package/es/message/message.js.map +1 -0
- package/es/message/style/_index.scss +59 -0
- package/es/message/style/index.css +73 -0
- package/es/message/style/index.d.ts +1 -0
- package/es/message/style/index.js +1 -0
- package/es/modal/index.d.ts +12 -0
- package/es/modal/index.js +14 -0
- package/es/modal/index.js.map +1 -0
- package/es/modal/modal-context.d.ts +37 -0
- package/es/modal/modal-context.js +68 -0
- package/es/modal/modal-context.js.map +1 -0
- package/es/modal/modal.d.ts +8 -0
- package/es/modal/modal.js +149 -0
- package/es/modal/modal.js.map +1 -0
- package/es/modal/style/_index.scss +116 -0
- package/es/modal/style/index.css +94 -0
- package/es/modal/style/index.d.ts +1 -0
- package/es/modal/style/index.js +3 -0
- package/es/modal/types.d.ts +38 -0
- package/es/native-select/index.d.ts +13 -0
- package/es/native-select/index.js +13 -0
- package/es/native-select/index.js.map +1 -0
- package/es/native-select/native-opt-group.d.ts +9 -0
- package/es/native-select/native-opt-group.js +15 -0
- package/es/native-select/native-opt-group.js.map +1 -0
- package/es/native-select/native-option.d.ts +9 -0
- package/es/native-select/native-option.js +14 -0
- package/es/native-select/native-option.js.map +1 -0
- package/es/native-select/native-select.d.ts +8 -0
- package/es/native-select/native-select.js +28 -0
- package/es/native-select/native-select.js.map +1 -0
- package/es/native-select/style/_index.scss +65 -0
- package/es/native-select/style/_mixin.scss +4 -0
- package/es/native-select/style/index.css +55 -0
- package/es/native-select/style/index.d.ts +1 -0
- package/es/native-select/style/index.js +1 -0
- package/es/native-select/types.d.ts +13 -0
- package/es/notification/index.js +9 -0
- package/es/notification/index.js.map +1 -0
- package/es/notification/notification-container.d.ts +5 -0
- package/es/notification/notification-container.js +78 -0
- package/es/notification/notification-container.js.map +1 -0
- package/es/notification/notification.js +82 -0
- package/es/notification/notification.js.map +1 -0
- package/es/notification/style/_index.scss +66 -0
- package/es/notification/style/index.css +57 -0
- package/es/notification/style/index.d.ts +1 -0
- package/es/notification/style/index.js +1 -0
- package/es/overlay/index.d.ts +1 -0
- package/es/overlay/index.js +9 -0
- package/es/overlay/index.js.map +1 -0
- package/es/overlay/overlay.d.ts +10 -0
- package/es/overlay/overlay.js +62 -0
- package/es/overlay/overlay.js.map +1 -0
- package/es/overlay/style/_index.scss +51 -0
- package/es/overlay/style/index.css +36 -0
- package/es/overlay/style/index.d.ts +1 -0
- package/es/overlay/style/index.js +1 -0
- package/es/overlay/types.d.ts +21 -0
- package/es/pagination/index.d.ts +1 -0
- package/es/pagination/index.js +9 -0
- package/es/pagination/index.js.map +1 -0
- package/es/pagination/pagination.d.ts +7 -0
- package/es/pagination/pagination.js +133 -0
- package/es/pagination/pagination.js.map +1 -0
- package/es/pagination/style/_index.scss +143 -0
- package/es/pagination/style/index.css +115 -0
- package/es/pagination/style/index.d.ts +1 -0
- package/es/pagination/style/index.js +1 -0
- package/es/pagination/types.d.ts +20 -0
- package/es/pop-confirm/index.d.ts +1 -0
- package/es/pop-confirm/index.js +11 -0
- package/es/pop-confirm/index.js.map +1 -0
- package/es/pop-confirm/pop-confirm.d.ts +10 -0
- package/es/pop-confirm/pop-confirm.js +67 -0
- package/es/pop-confirm/pop-confirm.js.map +1 -0
- package/es/pop-confirm/style/_index.scss +25 -0
- package/es/pop-confirm/style/index.css +18 -0
- package/es/pop-confirm/style/index.d.ts +1 -0
- package/es/pop-confirm/style/index.js +3 -0
- package/es/pop-confirm/types.d.ts +14 -0
- package/es/popover/index.d.ts +1 -0
- package/es/popover/index.js +10 -0
- package/es/popover/index.js.map +1 -0
- package/es/popover/popover.d.ts +8 -0
- package/es/popover/popover.js +35 -0
- package/es/popover/popover.js.map +1 -0
- package/es/popover/style/_index.scss +42 -0
- package/es/popover/style/index.css +24 -0
- package/es/popover/style/index.d.ts +1 -0
- package/es/popover/style/index.js +2 -0
- package/es/popover/types.d.ts +14 -0
- package/es/popup/index.js +10 -0
- package/es/popup/index.js.map +1 -0
- package/es/popup/popup.js +197 -0
- package/es/popup/popup.js.map +1 -0
- package/es/popup/style/_index.scss +84 -0
- package/es/popup/style/index.css +57 -0
- package/es/popup/style/index.d.ts +1 -0
- package/es/popup/style/index.js +2 -0
- package/es/popup/types.d.ts +36 -0
- package/es/portal/index.js +7 -0
- package/es/portal/index.js.map +1 -0
- package/es/portal/portal.js +12 -0
- package/es/portal/portal.js.map +1 -0
- package/es/progress/bar.js +58 -0
- package/es/progress/bar.js.map +1 -0
- package/es/progress/circle.js +76 -0
- package/es/progress/circle.js.map +1 -0
- package/es/progress/index.d.ts +16 -0
- package/es/progress/index.js +13 -0
- package/es/progress/index.js.map +1 -0
- package/es/progress/style/_index.scss +170 -0
- package/es/progress/style/index.css +128 -0
- package/es/progress/style/index.d.ts +1 -0
- package/es/progress/style/index.js +1 -0
- package/es/progress/types.d.ts +36 -0
- package/es/progress/types.js +12 -0
- package/es/progress/types.js.map +1 -0
- package/es/radio/index.d.ts +11 -0
- package/es/radio/index.js +11 -0
- package/es/radio/index.js.map +1 -0
- package/es/radio/radio-group-context.js +7 -0
- package/es/radio/radio-group-context.js.map +1 -0
- package/es/radio/radio-group.d.ts +8 -0
- package/es/radio/radio-group.js +42 -0
- package/es/radio/radio-group.js.map +1 -0
- package/es/radio/radio.d.ts +8 -0
- package/es/radio/radio.js +61 -0
- package/es/radio/radio.js.map +1 -0
- package/es/radio/style/_index.scss +86 -0
- package/es/radio/style/index.css +66 -0
- package/es/radio/style/index.d.ts +1 -0
- package/es/radio/style/index.js +1 -0
- package/es/radio/types.d.ts +24 -0
- package/es/rate/index.d.ts +1 -0
- package/es/rate/index.js +9 -0
- package/es/rate/index.js.map +1 -0
- package/es/rate/rate-item.js +29 -0
- package/es/rate/rate-item.js.map +1 -0
- package/es/rate/rate.d.ts +8 -0
- package/es/rate/rate.js +88 -0
- package/es/rate/rate.js.map +1 -0
- package/es/rate/style/_index.scss +31 -0
- package/es/rate/style/index.css +23 -0
- package/es/rate/style/index.d.ts +1 -0
- package/es/rate/style/index.js +1 -0
- package/es/rate/types.d.ts +19 -0
- package/es/result/index.d.ts +1 -0
- package/es/result/index.js +9 -0
- package/es/result/index.js.map +1 -0
- package/es/result/result.d.ts +8 -0
- package/es/result/result.js +61 -0
- package/es/result/result.js.map +1 -0
- package/es/result/style/_index.scss +48 -0
- package/es/result/style/index.css +65 -0
- package/es/result/style/index.d.ts +1 -0
- package/es/result/style/index.js +1 -0
- package/es/result/types.d.ts +16 -0
- package/es/row/index.d.ts +1 -0
- package/es/row/index.js +7 -0
- package/es/row/index.js.map +1 -0
- package/es/scroll-indicator/index.d.ts +1 -0
- package/es/scroll-indicator/index.js +9 -0
- package/es/scroll-indicator/index.js.map +1 -0
- package/es/scroll-indicator/scroll-indicator.d.ts +11 -0
- package/es/scroll-indicator/scroll-indicator.js +40 -0
- package/es/scroll-indicator/scroll-indicator.js.map +1 -0
- package/es/scroll-indicator/style/_index.scss +15 -0
- package/es/scroll-indicator/style/index.css +12 -0
- package/es/scroll-indicator/style/index.d.ts +1 -0
- package/es/scroll-indicator/style/index.js +1 -0
- package/es/scroll-indicator/types.d.ts +12 -0
- package/es/segmented/index.d.ts +1 -0
- package/es/segmented/index.js +9 -0
- package/es/segmented/index.js.map +1 -0
- package/es/segmented/segmented.d.ts +8 -0
- package/es/segmented/segmented.js +76 -0
- package/es/segmented/segmented.js.map +1 -0
- package/es/segmented/style/_index.scss +93 -0
- package/es/segmented/style/index.css +79 -0
- package/es/segmented/style/index.d.ts +1 -0
- package/es/segmented/style/index.js +1 -0
- package/es/segmented/types.d.ts +23 -0
- package/es/select/index.d.ts +13 -0
- package/es/select/index.js +15 -0
- package/es/select/index.js.map +1 -0
- package/es/select/opt-group.d.ts +11 -0
- package/es/select/opt-group.js +36 -0
- package/es/select/opt-group.js.map +1 -0
- package/es/select/option.d.ts +11 -0
- package/es/select/option.js +47 -0
- package/es/select/option.js.map +1 -0
- package/es/select/select-context.js +10 -0
- package/es/select/select-context.js.map +1 -0
- package/es/select/select.d.ts +11 -0
- package/es/select/select.js +367 -0
- package/es/select/select.js.map +1 -0
- package/es/select/style/_index.scss +313 -0
- package/es/select/style/index.css +260 -0
- package/es/select/style/index.d.ts +1 -0
- package/es/select/style/index.js +3 -0
- package/es/select/types.d.ts +53 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/index.js +9 -0
- package/es/skeleton/index.js.map +1 -0
- package/es/skeleton/skeleton.d.ts +8 -0
- package/es/skeleton/skeleton.js +28 -0
- package/es/skeleton/skeleton.js.map +1 -0
- package/es/skeleton/style/_index.scss +42 -0
- package/es/skeleton/style/index.css +34 -0
- package/es/skeleton/style/index.d.ts +1 -0
- package/es/skeleton/style/index.js +1 -0
- package/es/skeleton/types.d.ts +12 -0
- package/es/slider/index.d.ts +1 -0
- package/es/slider/index.js +10 -0
- package/es/slider/index.js.map +1 -0
- package/es/slider/slider.d.ts +8 -0
- package/es/slider/slider.js +247 -0
- package/es/slider/slider.js.map +1 -0
- package/es/slider/style/_index.scss +177 -0
- package/es/slider/style/index.css +138 -0
- package/es/slider/style/index.d.ts +1 -0
- package/es/slider/style/index.js +2 -0
- package/es/slider/types.d.ts +33 -0
- package/es/space/index.d.ts +1 -0
- package/es/space/index.js +9 -0
- package/es/space/index.js.map +1 -0
- package/es/space/space.d.ts +8 -0
- package/es/space/space.js +37 -0
- package/es/space/space.js.map +1 -0
- package/es/space/style/_index.scss +25 -0
- package/es/space/style/index.css +18 -0
- package/es/space/style/index.d.ts +1 -0
- package/es/space/style/index.js +1 -0
- package/es/space/types.d.ts +14 -0
- package/es/speed-dial/index.d.ts +11 -0
- package/es/speed-dial/index.js +11 -0
- package/es/speed-dial/index.js.map +1 -0
- package/es/speed-dial/speed-dial-action.d.ts +8 -0
- package/es/speed-dial/speed-dial-action.js +40 -0
- package/es/speed-dial/speed-dial-action.js.map +1 -0
- package/es/speed-dial/speed-dial-context.js +7 -0
- package/es/speed-dial/speed-dial-context.js.map +1 -0
- package/es/speed-dial/speed-dial.d.ts +8 -0
- package/es/speed-dial/speed-dial.js +92 -0
- package/es/speed-dial/speed-dial.js.map +1 -0
- package/es/speed-dial/style/_index.scss +230 -0
- package/es/speed-dial/style/index.css +183 -0
- package/es/speed-dial/style/index.d.ts +1 -0
- package/es/speed-dial/style/index.js +1 -0
- package/es/speed-dial/types.d.ts +26 -0
- package/es/split/index.d.ts +1 -0
- package/es/split/index.js +9 -0
- package/es/split/index.js.map +1 -0
- package/es/split/resizer.d.ts +12 -0
- package/es/split/resizer.js +56 -0
- package/es/split/resizer.js.map +1 -0
- package/es/split/split-context.js +7 -0
- package/es/split/split-context.js.map +1 -0
- package/es/split/split-pane.js +27 -0
- package/es/split/split-pane.js.map +1 -0
- package/es/split/split.d.ts +10 -0
- package/es/split/split.js +141 -0
- package/es/split/split.js.map +1 -0
- package/es/split/style/_index.scss +98 -0
- package/es/split/style/index.css +82 -0
- package/es/split/style/index.d.ts +1 -0
- package/es/split/style/index.js +1 -0
- package/es/split/types.d.ts +30 -0
- package/es/split-button/index.d.ts +1 -0
- package/es/split-button/index.js +11 -0
- package/es/split-button/index.js.map +1 -0
- package/es/split-button/split-button.d.ts +11 -0
- package/es/split-button/split-button.js +43 -0
- package/es/split-button/split-button.js.map +1 -0
- package/es/split-button/style/_index.scss +9 -0
- package/es/split-button/style/index.css +4 -0
- package/es/split-button/style/index.d.ts +1 -0
- package/es/split-button/style/index.js +3 -0
- package/es/split-button/types.d.ts +20 -0
- package/es/statistic/index.d.ts +1 -0
- package/es/statistic/index.js +9 -0
- package/es/statistic/index.js.map +1 -0
- package/es/statistic/statistic.d.ts +8 -0
- package/es/statistic/statistic.js +58 -0
- package/es/statistic/statistic.js.map +1 -0
- package/es/statistic/style/_index.scss +31 -0
- package/es/statistic/style/index.css +24 -0
- package/es/statistic/style/index.d.ts +1 -0
- package/es/statistic/style/index.js +1 -0
- package/es/statistic/types.d.ts +17 -0
- package/es/steps/index.d.ts +11 -0
- package/es/steps/index.js +11 -0
- package/es/steps/index.js.map +1 -0
- package/es/steps/steps-context.js +12 -0
- package/es/steps/steps-context.js.map +1 -0
- package/es/steps/steps-item.d.ts +8 -0
- package/es/steps/steps-item.js +70 -0
- package/es/steps/steps-item.js.map +1 -0
- package/es/steps/steps.d.ts +8 -0
- package/es/steps/steps.js +49 -0
- package/es/steps/steps.js.map +1 -0
- package/es/steps/style/_index.scss +208 -0
- package/es/steps/style/index.css +148 -0
- package/es/steps/style/index.d.ts +1 -0
- package/es/steps/style/index.js +1 -0
- package/es/steps/types.d.ts +24 -0
- package/es/sticky/index.d.ts +1 -0
- package/es/sticky/index.js +9 -0
- package/es/sticky/index.js.map +1 -0
- package/es/sticky/sticky.d.ts +10 -0
- package/es/sticky/sticky.js +127 -0
- package/es/sticky/sticky.js.map +1 -0
- package/es/sticky/style/_index.scss +8 -0
- package/es/sticky/style/index.css +3 -0
- package/es/sticky/style/index.d.ts +1 -0
- package/es/sticky/style/index.js +1 -0
- package/es/sticky/types.d.ts +14 -0
- package/es/strength-indicator/index.d.ts +1 -0
- package/es/strength-indicator/index.js +9 -0
- package/es/strength-indicator/index.js.map +1 -0
- package/es/strength-indicator/strength-indicator.d.ts +8 -0
- package/es/strength-indicator/strength-indicator.js +48 -0
- package/es/strength-indicator/strength-indicator.js.map +1 -0
- package/es/strength-indicator/style/_index.scss +46 -0
- package/es/strength-indicator/style/index.css +37 -0
- package/es/strength-indicator/style/index.d.ts +1 -0
- package/es/strength-indicator/style/index.js +1 -0
- package/es/strength-indicator/types.d.ts +17 -0
- package/es/style/_animation.scss +1 -0
- package/es/style/_component.scss +78 -0
- package/es/style/_font.scss +1 -0
- package/es/style/_mixins.scss +1 -0
- package/es/style/_tokens.scss +1 -0
- package/es/style/_variables.scss +1 -0
- package/es/style/base.css +1162 -0
- package/es/style/base.scss +1 -0
- package/es/style/index.scss +2 -0
- package/es/switch/index.d.ts +1 -0
- package/es/switch/index.js +9 -0
- package/es/switch/index.js.map +1 -0
- package/es/switch/style/_index.scss +144 -0
- package/es/switch/style/_mixin.scss +16 -0
- package/es/switch/style/index.css +187 -0
- package/es/switch/style/index.d.ts +1 -0
- package/es/switch/style/index.js +1 -0
- package/es/switch/switch.d.ts +8 -0
- package/es/switch/switch.js +55 -0
- package/es/switch/switch.js.map +1 -0
- package/es/switch/types.d.ts +18 -0
- package/es/table/index.d.ts +1 -0
- package/es/table/index.js +9 -0
- package/es/table/index.js.map +1 -0
- package/es/table/style/_index.scss +143 -0
- package/es/table/style/index.css +105 -0
- package/es/table/style/index.d.ts +1 -0
- package/es/table/style/index.js +1 -0
- package/es/table/table.d.ts +8 -0
- package/es/table/table.js +294 -0
- package/es/table/table.js.map +1 -0
- package/es/table/types.d.ts +59 -0
- package/es/tabs/index.d.ts +12 -0
- package/es/tabs/index.js +11 -0
- package/es/tabs/index.js.map +1 -0
- package/es/tabs/style/index.css +241 -0
- package/es/tabs/style/index.d.ts +1 -0
- package/es/tabs/style/index.js +1 -0
- package/es/tabs/style/index.scss +315 -0
- package/es/tabs/tab-panel.d.ts +10 -0
- package/es/tabs/tab-panel.js +23 -0
- package/es/tabs/tab-panel.js.map +1 -0
- package/es/tabs/tabs.d.ts +8 -0
- package/es/tabs/tabs.js +277 -0
- package/es/tabs/tabs.js.map +1 -0
- package/es/tabs/types.d.ts +69 -0
- package/es/tag/checkable-tag.d.ts +10 -0
- package/es/tag/checkable-tag.js +35 -0
- package/es/tag/checkable-tag.js.map +1 -0
- package/es/tag/index.d.ts +11 -0
- package/es/tag/index.js +11 -0
- package/es/tag/index.js.map +1 -0
- package/es/tag/style/_index.scss +119 -0
- package/es/tag/style/index.css +103 -0
- package/es/tag/style/index.d.ts +1 -0
- package/es/tag/style/index.js +1 -0
- package/es/tag/tag.d.ts +8 -0
- package/es/tag/tag.js +54 -0
- package/es/tag/tag.js.map +1 -0
- package/es/tag/types.d.ts +22 -0
- package/es/tag/types.js +18 -0
- package/es/tag/types.js.map +1 -0
- package/es/textarea/index.d.ts +1 -0
- package/es/textarea/index.js +10 -0
- package/es/textarea/index.js.map +1 -0
- package/es/textarea/style/_index.scss +28 -0
- package/es/textarea/style/index.css +50 -0
- package/es/textarea/style/index.d.ts +1 -0
- package/es/textarea/style/index.js +2 -0
- package/es/textarea/textarea.d.ts +8 -0
- package/es/textarea/textarea.js +50 -0
- package/es/textarea/textarea.js.map +1 -0
- package/es/textarea/types.d.ts +16 -0
- package/es/time-picker/index.d.ts +2 -0
- package/es/time-picker/index.js +9 -0
- package/es/time-picker/index.js.map +1 -0
- package/es/time-picker/style/_index.scss +241 -0
- package/es/time-picker/style/index.css +202 -0
- package/es/time-picker/style/index.d.ts +1 -0
- package/es/time-picker/style/index.js +1 -0
- package/es/time-picker/time-panel.js +113 -0
- package/es/time-picker/time-panel.js.map +1 -0
- package/es/time-picker/time-picker.d.ts +10 -0
- package/es/time-picker/time-picker.js +208 -0
- package/es/time-picker/time-picker.js.map +1 -0
- package/es/time-picker/types.d.ts +56 -0
- package/es/timeline/index.d.ts +11 -0
- package/es/timeline/index.js +11 -0
- package/es/timeline/index.js.map +1 -0
- package/es/timeline/style/_index.scss +91 -0
- package/es/timeline/style/index.css +69 -0
- package/es/timeline/style/index.d.ts +1 -0
- package/es/timeline/style/index.js +1 -0
- package/es/timeline/timeline-item.d.ts +8 -0
- package/es/timeline/timeline-item.js +34 -0
- package/es/timeline/timeline-item.js.map +1 -0
- package/es/timeline/timeline.d.ts +8 -0
- package/es/timeline/timeline.js +28 -0
- package/es/timeline/timeline.js.map +1 -0
- package/es/timeline/types.d.ts +17 -0
- package/es/tooltip/index.d.ts +1 -0
- package/es/tooltip/index.js +10 -0
- package/es/tooltip/index.js.map +1 -0
- package/es/tooltip/style/_index.scss +41 -0
- package/es/tooltip/style/index.css +22 -0
- package/es/tooltip/style/index.d.ts +1 -0
- package/es/tooltip/style/index.js +2 -0
- package/es/tooltip/tooltip.d.ts +8 -0
- package/es/tooltip/tooltip.js +30 -0
- package/es/tooltip/tooltip.js.map +1 -0
- package/es/tooltip/types.d.ts +12 -0
- package/es/transfer/index.d.ts +1 -0
- package/es/transfer/index.js +13 -0
- package/es/transfer/index.js.map +1 -0
- package/es/transfer/style/_index.scss +98 -0
- package/es/transfer/style/index.css +83 -0
- package/es/transfer/style/index.d.ts +1 -0
- package/es/transfer/style/index.js +5 -0
- package/es/transfer/transfer-panel.js +95 -0
- package/es/transfer/transfer-panel.js.map +1 -0
- package/es/transfer/transfer.d.ts +8 -0
- package/es/transfer/transfer.js +122 -0
- package/es/transfer/transfer.js.map +1 -0
- package/es/transfer/types.d.ts +25 -0
- package/es/transition/index.d.ts +1 -0
- package/es/transition/index.js +9 -0
- package/es/transition/index.js.map +1 -0
- package/es/transition/style/_index.scss +20 -0
- package/es/transition/style/_mixin.scss +58 -0
- package/es/transition/style/index.css +275 -0
- package/es/transition/style/index.d.ts +1 -0
- package/es/transition/style/index.js +1 -0
- package/es/transition/transition.d.ts +18 -0
- package/es/transition/transition.js +21 -0
- package/es/transition/transition.js.map +1 -0
- package/es/tree/index.d.ts +1 -0
- package/es/tree/index.js +11 -0
- package/es/tree/index.js.map +1 -0
- package/es/tree/style/_index.scss +66 -0
- package/es/tree/style/index.css +52 -0
- package/es/tree/style/index.d.ts +1 -0
- package/es/tree/style/index.js +3 -0
- package/es/tree/tree-instance.js +108 -0
- package/es/tree/tree-instance.js.map +1 -0
- package/es/tree/tree-node.js +73 -0
- package/es/tree/tree-node.js.map +1 -0
- package/es/tree/tree.d.ts +8 -0
- package/es/tree/tree.js +50 -0
- package/es/tree/tree.js.map +1 -0
- package/es/tree/types.d.ts +28 -0
- package/es/typography/heading.d.ts +7 -0
- package/es/typography/heading.js +31 -0
- package/es/typography/heading.js.map +1 -0
- package/es/typography/index.d.ts +15 -0
- package/es/typography/index.js +15 -0
- package/es/typography/index.js.map +1 -0
- package/es/typography/paragraph.d.ts +8 -0
- package/es/typography/paragraph.js +20 -0
- package/es/typography/paragraph.js.map +1 -0
- package/es/typography/style/_index.scss +126 -0
- package/es/typography/style/index.css +105 -0
- package/es/typography/style/index.d.ts +1 -0
- package/es/typography/style/index.js +1 -0
- package/es/typography/text.d.ts +7 -0
- package/es/typography/text.js +31 -0
- package/es/typography/text.js.map +1 -0
- package/es/typography/types.d.ts +28 -0
- package/es/typography/typography.d.ts +8 -0
- package/es/typography/typography.js +20 -0
- package/es/typography/typography.js.map +1 -0
- package/es/upload/ajax.js +26 -0
- package/es/upload/ajax.js.map +1 -0
- package/es/upload/dragger-cover.js +35 -0
- package/es/upload/dragger-cover.js.map +1 -0
- package/es/upload/index.d.ts +1 -0
- package/es/upload/index.js +9 -0
- package/es/upload/index.js.map +1 -0
- package/es/upload/style/_index.scss +99 -0
- package/es/upload/style/index.css +105 -0
- package/es/upload/style/index.d.ts +1 -0
- package/es/upload/style/index.js +1 -0
- package/es/upload/types.d.ts +44 -0
- package/es/upload/upload-list.js +57 -0
- package/es/upload/upload-list.js.map +1 -0
- package/es/upload/upload.d.ts +8 -0
- package/es/upload/upload.js +141 -0
- package/es/upload/upload.js.map +1 -0
- package/lib/_utils/components.js +221 -0
- package/lib/_utils/components.js.map +1 -0
- package/lib/_utils/dom.d.ts +5 -0
- package/lib/_utils/dom.js +34 -0
- package/lib/_utils/dom.js.map +1 -0
- package/lib/_utils/general.js +25 -0
- package/lib/_utils/general.js.map +1 -0
- package/lib/_utils/hooks.js +35 -0
- package/lib/_utils/hooks.js.map +1 -0
- package/lib/_utils/object.js +29 -0
- package/lib/_utils/object.js.map +1 -0
- package/lib/_utils/props.d.ts +14 -0
- package/lib/_utils/use-locale.d.ts +7 -0
- package/lib/_utils/use-locale.js +14 -0
- package/lib/_utils/use-locale.js.map +1 -0
- package/lib/_utils/use-theme.d.ts +11 -0
- package/lib/_utils/use-theme.js +54 -0
- package/lib/_utils/use-theme.js.map +1 -0
- package/lib/_utils/use-virtual-scroll.js +31 -0
- package/lib/_utils/use-virtual-scroll.js.map +1 -0
- package/lib/_utils/useCombobox.js +83 -0
- package/lib/_utils/useCombobox.js.map +1 -0
- package/lib/_utils/warning.js +12 -0
- package/lib/_utils/warning.js.map +1 -0
- package/lib/_virtual/_rolldown/runtime.js +23 -0
- package/lib/alert/alert.d.ts +8 -0
- package/lib/alert/alert.js +90 -0
- package/lib/alert/alert.js.map +1 -0
- package/lib/alert/index.js +8 -0
- package/lib/alert/index.js.map +1 -0
- package/lib/alert/style/_index.scss +72 -0
- package/lib/alert/style/_mixin.scss +5 -0
- package/lib/alert/style/index.css +70 -0
- package/lib/alert/style/index.d.ts +1 -0
- package/lib/alert/style/index.js +1 -0
- package/lib/alert/types.d.ts +26 -0
- package/lib/anchor/anchor-context.js +9 -0
- package/lib/anchor/anchor-context.js.map +1 -0
- package/lib/anchor/anchor-link.d.ts +8 -0
- package/lib/anchor/anchor-link.js +47 -0
- package/lib/anchor/anchor-link.js.map +1 -0
- package/lib/anchor/anchor.d.ts +10 -0
- package/lib/anchor/anchor.js +169 -0
- package/lib/anchor/anchor.js.map +1 -0
- package/lib/anchor/index.d.ts +11 -0
- package/lib/anchor/index.js +12 -0
- package/lib/anchor/index.js.map +1 -0
- package/lib/anchor/style/_index.scss +83 -0
- package/lib/anchor/style/index.css +67 -0
- package/lib/anchor/style/index.d.ts +1 -0
- package/lib/anchor/style/index.js +2 -0
- package/lib/anchor/types.d.ts +25 -0
- package/lib/aspect-ratio/aspect-ratio.d.ts +8 -0
- package/lib/aspect-ratio/aspect-ratio.js +35 -0
- package/lib/aspect-ratio/aspect-ratio.js.map +1 -0
- package/lib/aspect-ratio/index.js +8 -0
- package/lib/aspect-ratio/index.js.map +1 -0
- package/lib/aspect-ratio/style/_index.scss +22 -0
- package/lib/aspect-ratio/style/index.css +18 -0
- package/lib/aspect-ratio/style/index.d.ts +1 -0
- package/lib/aspect-ratio/style/index.js +1 -0
- package/lib/aspect-ratio/types.d.ts +13 -0
- package/lib/auto-complete/auto-complete.d.ts +8 -0
- package/lib/auto-complete/auto-complete.js +141 -0
- package/lib/auto-complete/auto-complete.js.map +1 -0
- package/lib/auto-complete/style/_index.scss +58 -0
- package/lib/auto-complete/style/index.css +48 -0
- package/lib/auto-complete/style/index.d.ts +1 -0
- package/lib/auto-complete/style/index.js +1 -0
- package/lib/auto-complete/types.d.ts +31 -0
- package/lib/avatar/avatar-group.d.ts +10 -0
- package/lib/avatar/avatar-group.js +34 -0
- package/lib/avatar/avatar-group.js.map +1 -0
- package/lib/avatar/avatar.d.ts +8 -0
- package/lib/avatar/avatar.js +79 -0
- package/lib/avatar/avatar.js.map +1 -0
- package/lib/avatar/index.d.ts +11 -0
- package/lib/avatar/index.js +11 -0
- package/lib/avatar/index.js.map +1 -0
- package/lib/avatar/style/_index.scss +80 -0
- package/lib/avatar/style/index.css +65 -0
- package/lib/avatar/style/index.d.ts +1 -0
- package/lib/avatar/style/index.js +1 -0
- package/lib/avatar/types.d.ts +27 -0
- package/lib/back-top/back-top.d.ts +7 -0
- package/lib/back-top/back-top.js +82 -0
- package/lib/back-top/back-top.js.map +1 -0
- package/lib/back-top/index.js +8 -0
- package/lib/back-top/index.js.map +1 -0
- package/lib/back-top/style/_index.scss +25 -0
- package/lib/back-top/style/index.css +22 -0
- package/lib/back-top/style/index.d.ts +1 -0
- package/lib/back-top/style/index.js +1 -0
- package/lib/back-top/types.d.ts +14 -0
- package/lib/badge/badge.d.ts +8 -0
- package/lib/badge/badge.js +53 -0
- package/lib/badge/badge.js.map +1 -0
- package/lib/badge/index.js +8 -0
- package/lib/badge/index.js.map +1 -0
- package/lib/badge/style/_index.scss +60 -0
- package/lib/badge/style/_mixin.scss +11 -0
- package/lib/badge/style/index.css +85 -0
- package/lib/badge/style/index.d.ts +1 -0
- package/lib/badge/style/index.js +1 -0
- package/lib/badge/types.d.ts +25 -0
- package/lib/breadcrumb/breadcrumb-item.d.ts +11 -0
- package/lib/breadcrumb/breadcrumb-item.js +28 -0
- package/lib/breadcrumb/breadcrumb-item.js.map +1 -0
- package/lib/breadcrumb/breadcrumb.d.ts +11 -0
- package/lib/breadcrumb/breadcrumb.js +30 -0
- package/lib/breadcrumb/breadcrumb.js.map +1 -0
- package/lib/breadcrumb/index.d.ts +11 -0
- package/lib/breadcrumb/index.js +11 -0
- package/lib/breadcrumb/index.js.map +1 -0
- package/lib/breadcrumb/style/_index.scss +38 -0
- package/lib/breadcrumb/style/index.css +25 -0
- package/lib/breadcrumb/style/index.d.ts +1 -0
- package/lib/breadcrumb/style/index.js +1 -0
- package/lib/breadcrumb/types.d.ts +15 -0
- package/lib/button/button-group.d.ts +8 -0
- package/lib/button/button-group.js +41 -0
- package/lib/button/button-group.js.map +1 -0
- package/lib/button/button.d.ts +8 -0
- package/lib/button/button.js +51 -0
- package/lib/button/button.js.map +1 -0
- package/lib/button/index.d.ts +11 -0
- package/lib/button/index.js +11 -0
- package/lib/button/index.js.map +1 -0
- package/lib/button/style/_index.scss +215 -0
- package/lib/button/style/_mixin.scss +45 -0
- package/lib/button/style/index.css +369 -0
- package/lib/button/style/index.d.ts +1 -0
- package/lib/button/style/index.js +1 -0
- package/lib/button/types.d.ts +24 -0
- package/lib/calendar/calendar.d.ts +8 -0
- package/lib/calendar/calendar.js +202 -0
- package/lib/calendar/calendar.js.map +1 -0
- package/lib/calendar/index.js +8 -0
- package/lib/calendar/index.js.map +1 -0
- package/lib/calendar/style/_index.scss +190 -0
- package/lib/calendar/style/index.css +156 -0
- package/lib/calendar/style/index.d.ts +1 -0
- package/lib/calendar/style/index.js +1 -0
- package/lib/calendar/types.d.ts +27 -0
- package/lib/card/card-content.d.ts +11 -0
- package/lib/card/card-content.js +18 -0
- package/lib/card/card-content.js.map +1 -0
- package/lib/card/card.d.ts +8 -0
- package/lib/card/card.js +63 -0
- package/lib/card/card.js.map +1 -0
- package/lib/card/index.d.ts +11 -0
- package/lib/card/index.js +11 -0
- package/lib/card/index.js.map +1 -0
- package/lib/card/style/_index.scss +57 -0
- package/lib/card/style/_mixin.scss +4 -0
- package/lib/card/style/index.css +48 -0
- package/lib/card/style/index.d.ts +1 -0
- package/lib/card/style/index.js +1 -0
- package/lib/card/types.d.ts +25 -0
- package/lib/carousel/carousel-item.d.ts +13 -0
- package/lib/carousel/carousel-item.js +16 -0
- package/lib/carousel/carousel-item.js.map +1 -0
- package/lib/carousel/carousel.d.ts +8 -0
- package/lib/carousel/carousel.js +229 -0
- package/lib/carousel/carousel.js.map +1 -0
- package/lib/carousel/index.d.ts +12 -0
- package/lib/carousel/index.js +11 -0
- package/lib/carousel/index.js.map +1 -0
- package/lib/carousel/style/_index.scss +158 -0
- package/lib/carousel/style/index.css +128 -0
- package/lib/carousel/style/index.d.ts +1 -0
- package/lib/carousel/style/index.js +1 -0
- package/lib/carousel/types.d.ts +47 -0
- package/lib/cascader/cascader.d.ts +8 -0
- package/lib/cascader/cascader.js +199 -0
- package/lib/cascader/cascader.js.map +1 -0
- package/lib/cascader/index.js +8 -0
- package/lib/cascader/index.js.map +1 -0
- package/lib/cascader/style/_index.scss +162 -0
- package/lib/cascader/style/index.css +135 -0
- package/lib/cascader/style/index.d.ts +1 -0
- package/lib/cascader/style/index.js +1 -0
- package/lib/cascader/types.d.ts +31 -0
- package/lib/checkbox/checkbox-group-context.js +9 -0
- package/lib/checkbox/checkbox-group-context.js.map +1 -0
- package/lib/checkbox/checkbox-group.d.ts +8 -0
- package/lib/checkbox/checkbox-group.js +45 -0
- package/lib/checkbox/checkbox-group.js.map +1 -0
- package/lib/checkbox/checkbox.d.ts +8 -0
- package/lib/checkbox/checkbox.js +64 -0
- package/lib/checkbox/checkbox.js.map +1 -0
- package/lib/checkbox/index.d.ts +11 -0
- package/lib/checkbox/index.js +11 -0
- package/lib/checkbox/index.js.map +1 -0
- package/lib/checkbox/style/_index.scss +139 -0
- package/lib/checkbox/style/index.css +106 -0
- package/lib/checkbox/style/index.d.ts +1 -0
- package/lib/checkbox/style/index.js +1 -0
- package/lib/checkbox/types.d.ts +23 -0
- package/lib/col/index.js +6 -0
- package/lib/col/index.js.map +1 -0
- package/lib/collapse/collapse-context.js +9 -0
- package/lib/collapse/collapse-context.js.map +1 -0
- package/lib/collapse/collapse-panel.d.ts +11 -0
- package/lib/collapse/collapse-panel.js +99 -0
- package/lib/collapse/collapse-panel.js.map +1 -0
- package/lib/collapse/collapse.d.ts +8 -0
- package/lib/collapse/collapse.js +71 -0
- package/lib/collapse/collapse.js.map +1 -0
- package/lib/collapse/index.d.ts +11 -0
- package/lib/collapse/index.js +11 -0
- package/lib/collapse/index.js.map +1 -0
- package/lib/collapse/style/_index.scss +101 -0
- package/lib/collapse/style/index.css +83 -0
- package/lib/collapse/style/index.d.ts +1 -0
- package/lib/collapse/style/index.js +1 -0
- package/lib/collapse/types.d.ts +28 -0
- package/lib/collapse-transition/collapse-transition.js +99 -0
- package/lib/collapse-transition/collapse-transition.js.map +1 -0
- package/lib/collapse-transition/index.js +8 -0
- package/lib/collapse-transition/index.js.map +1 -0
- package/lib/collapse-transition/style/_index.scss +4 -0
- package/lib/collapse-transition/style/index.css +4 -0
- package/lib/collapse-transition/style/index.d.ts +1 -0
- package/lib/collapse-transition/style/index.js +1 -0
- package/lib/color-picker/color-picker.d.ts +8 -0
- package/lib/color-picker/color-picker.js +253 -0
- package/lib/color-picker/color-picker.js.map +1 -0
- package/lib/color-picker/index.js +8 -0
- package/lib/color-picker/index.js.map +1 -0
- package/lib/color-picker/style/_index.scss +196 -0
- package/lib/color-picker/style/index.css +169 -0
- package/lib/color-picker/style/index.d.ts +1 -0
- package/lib/color-picker/style/index.js +1 -0
- package/lib/color-picker/types.d.ts +23 -0
- package/lib/color-picker/utils.js +115 -0
- package/lib/color-picker/utils.js.map +1 -0
- package/lib/config-provider/config-context.d.ts +18 -0
- package/lib/config-provider/config-context.js +14 -0
- package/lib/config-provider/config-context.js.map +1 -0
- package/lib/config-provider/config-provider.d.ts +10 -0
- package/lib/config-provider/config-provider.js +30 -0
- package/lib/config-provider/config-provider.js.map +1 -0
- package/lib/config-provider/index.js +6 -0
- package/lib/config-provider/index.js.map +1 -0
- package/lib/config-provider/types.d.ts +10 -0
- package/lib/copy-to-clipboard/copy-to-clipboard.d.ts +11 -0
- package/lib/copy-to-clipboard/copy-to-clipboard.js +48 -0
- package/lib/copy-to-clipboard/copy-to-clipboard.js.map +1 -0
- package/lib/copy-to-clipboard/index.js +6 -0
- package/lib/copy-to-clipboard/index.js.map +1 -0
- package/lib/copy-to-clipboard/types.d.ts +11 -0
- package/lib/countdown/countdown.d.ts +8 -0
- package/lib/countdown/countdown.js +68 -0
- package/lib/countdown/countdown.js.map +1 -0
- package/lib/countdown/index.js +6 -0
- package/lib/countdown/index.js.map +1 -0
- package/lib/countdown/types.d.ts +20 -0
- package/lib/date-picker/date-picker.d.ts +11 -0
- package/lib/date-picker/date-picker.js +230 -0
- package/lib/date-picker/date-picker.js.map +1 -0
- package/lib/date-picker/index.js +8 -0
- package/lib/date-picker/index.js.map +1 -0
- package/lib/date-picker/picker-day.js +44 -0
- package/lib/date-picker/picker-day.js.map +1 -0
- package/lib/date-picker/picker-header.js +75 -0
- package/lib/date-picker/picker-header.js.map +1 -0
- package/lib/date-picker/picker-month.js +44 -0
- package/lib/date-picker/picker-month.js.map +1 -0
- package/lib/date-picker/picker-year.js +48 -0
- package/lib/date-picker/picker-year.js.map +1 -0
- package/lib/date-picker/style/_index.scss +272 -0
- package/lib/date-picker/style/index.css +221 -0
- package/lib/date-picker/style/index.d.ts +1 -0
- package/lib/date-picker/style/index.js +1 -0
- package/lib/date-picker/types.d.ts +45 -0
- package/lib/date-picker/utils.js +108 -0
- package/lib/date-picker/utils.js.map +1 -0
- package/lib/descriptions/col.js +53 -0
- package/lib/descriptions/col.js.map +1 -0
- package/lib/descriptions/descriptions-item.d.ts +10 -0
- package/lib/descriptions/descriptions-item.js +9 -0
- package/lib/descriptions/descriptions-item.js.map +1 -0
- package/lib/descriptions/descriptions.d.ts +11 -0
- package/lib/descriptions/descriptions.js +66 -0
- package/lib/descriptions/descriptions.js.map +1 -0
- package/lib/descriptions/index.d.ts +11 -0
- package/lib/descriptions/index.js +11 -0
- package/lib/descriptions/index.js.map +1 -0
- package/lib/descriptions/row.js +34 -0
- package/lib/descriptions/row.js.map +1 -0
- package/lib/descriptions/style/_index.scss +116 -0
- package/lib/descriptions/style/index.css +72 -0
- package/lib/descriptions/style/index.d.ts +1 -0
- package/lib/descriptions/style/index.js +1 -0
- package/lib/descriptions/types.d.ts +20 -0
- package/lib/divider/divider.d.ts +8 -0
- package/lib/divider/divider.js +32 -0
- package/lib/divider/divider.js.map +1 -0
- package/lib/divider/index.js +8 -0
- package/lib/divider/index.js.map +1 -0
- package/lib/divider/style/_index.scss +80 -0
- package/lib/divider/style/index.css +62 -0
- package/lib/divider/style/index.d.ts +1 -0
- package/lib/divider/style/index.js +1 -0
- package/lib/divider/types.d.ts +14 -0
- package/lib/drawer/drawer.d.ts +8 -0
- package/lib/drawer/drawer.js +120 -0
- package/lib/drawer/drawer.js.map +1 -0
- package/lib/drawer/index.js +9 -0
- package/lib/drawer/index.js.map +1 -0
- package/lib/drawer/style/_index.scss +152 -0
- package/lib/drawer/style/index.css +110 -0
- package/lib/drawer/style/index.d.ts +1 -0
- package/lib/drawer/style/index.js +2 -0
- package/lib/drawer/types.d.ts +26 -0
- package/lib/dropdown/dropdown.d.ts +10 -0
- package/lib/dropdown/dropdown.js +110 -0
- package/lib/dropdown/dropdown.js.map +1 -0
- package/lib/dropdown/index.js +9 -0
- package/lib/dropdown/index.js.map +1 -0
- package/lib/dropdown/style/_index.scss +37 -0
- package/lib/dropdown/style/index.css +24 -0
- package/lib/dropdown/style/index.d.ts +1 -0
- package/lib/dropdown/style/index.js +2 -0
- package/lib/dropdown/types.d.ts +20 -0
- package/lib/empty/empty.d.ts +8 -0
- package/lib/empty/empty.js +85 -0
- package/lib/empty/empty.js.map +1 -0
- package/lib/empty/index.js +8 -0
- package/lib/empty/index.js.map +1 -0
- package/lib/empty/style/_index.scss +26 -0
- package/lib/empty/style/index.css +20 -0
- package/lib/empty/style/index.d.ts +1 -0
- package/lib/empty/style/index.js +1 -0
- package/lib/empty/types.d.ts +14 -0
- package/lib/flex/flex.d.ts +8 -0
- package/lib/flex/flex.js +39 -0
- package/lib/flex/flex.js.map +1 -0
- package/lib/flex/index.js +8 -0
- package/lib/flex/index.js.map +1 -0
- package/lib/flex/style/_index.scss +5 -0
- package/lib/flex/style/index.css +3 -0
- package/lib/flex/style/index.d.ts +1 -0
- package/lib/flex/style/index.js +1 -0
- package/lib/flex/types.d.ts +16 -0
- package/lib/flip/flip-item.d.ts +10 -0
- package/lib/flip/flip-item.js +16 -0
- package/lib/flip/flip-item.js.map +1 -0
- package/lib/flip/flip.d.ts +11 -0
- package/lib/flip/flip.js +53 -0
- package/lib/flip/flip.js.map +1 -0
- package/lib/flip/index.d.ts +11 -0
- package/lib/flip/index.js +11 -0
- package/lib/flip/index.js.map +1 -0
- package/lib/flip/style/_index.scss +61 -0
- package/lib/flip/style/index.css +46 -0
- package/lib/flip/style/index.d.ts +1 -0
- package/lib/flip/style/index.js +1 -0
- package/lib/flip/types.d.ts +20 -0
- package/lib/form/form-helper.js +38 -0
- package/lib/form/form-helper.js.map +1 -0
- package/lib/form/form-instance-context.js +10 -0
- package/lib/form/form-instance-context.js.map +1 -0
- package/lib/form/form-instance.d.ts +37 -0
- package/lib/form/form-instance.js +75 -0
- package/lib/form/form-instance.js.map +1 -0
- package/lib/form/form-item.d.ts +10 -0
- package/lib/form/form-item.js +139 -0
- package/lib/form/form-item.js.map +1 -0
- package/lib/form/form-options-context.js +14 -0
- package/lib/form/form-options-context.js.map +1 -0
- package/lib/form/form.d.ts +10 -0
- package/lib/form/form.js +62 -0
- package/lib/form/form.js.map +1 -0
- package/lib/form/index.d.ts +15 -0
- package/lib/form/index.js +16 -0
- package/lib/form/index.js.map +1 -0
- package/lib/form/style/_index.scss +93 -0
- package/lib/form/style/index.css +71 -0
- package/lib/form/style/index.d.ts +1 -0
- package/lib/form/style/index.js +2 -0
- package/lib/form/types.d.ts +67 -0
- package/lib/form/use-form.d.ts +7 -0
- package/lib/form/use-form.js +9 -0
- package/lib/form/use-form.js.map +1 -0
- package/lib/grid/col.d.ts +8 -0
- package/lib/grid/col.js +51 -0
- package/lib/grid/col.js.map +1 -0
- package/lib/grid/row.d.ts +8 -0
- package/lib/grid/row.js +55 -0
- package/lib/grid/row.js.map +1 -0
- package/lib/grid/style/_index.scss +90 -0
- package/lib/grid/style/index.css +1562 -0
- package/lib/grid/style/index.d.ts +1 -0
- package/lib/grid/style/index.js +1 -0
- package/lib/grid/types.d.ts +34 -0
- package/lib/icon/icon.d.ts +8 -0
- package/lib/icon/icon.js +28 -0
- package/lib/icon/icon.js.map +1 -0
- package/lib/icon/index.js +8 -0
- package/lib/icon/index.js.map +1 -0
- package/lib/icon/style/_index.scss +16 -0
- package/lib/icon/style/index.css +987 -0
- package/lib/icon/style/index.d.ts +1 -0
- package/lib/icon/style/index.js +1 -0
- package/lib/icon/types.d.ts +15 -0
- package/lib/image/image.d.ts +10 -0
- package/lib/image/image.js +51 -0
- package/lib/image/image.js.map +1 -0
- package/lib/image/index.js +8 -0
- package/lib/image/index.js.map +1 -0
- package/lib/image/style/_index.scss +9 -0
- package/lib/image/style/index.css +6 -0
- package/lib/image/style/index.d.ts +1 -0
- package/lib/image/style/index.js +1 -0
- package/lib/image/types.d.ts +18 -0
- package/lib/index.d.ts +88 -0
- package/lib/index.js +174 -0
- package/lib/input/index.d.ts +13 -0
- package/lib/input/index.js +13 -0
- package/lib/input/index.js.map +1 -0
- package/lib/input/input-group-addon.d.ts +11 -0
- package/lib/input/input-group-addon.js +38 -0
- package/lib/input/input-group-addon.js.map +1 -0
- package/lib/input/input-group.d.ts +11 -0
- package/lib/input/input-group.js +31 -0
- package/lib/input/input-group.js.map +1 -0
- package/lib/input/input.d.ts +8 -0
- package/lib/input/input.js +95 -0
- package/lib/input/input.js.map +1 -0
- package/lib/input/style/_index.scss +180 -0
- package/lib/input/style/_mixin.scss +38 -0
- package/lib/input/style/index.css +157 -0
- package/lib/input/style/index.d.ts +1 -0
- package/lib/input/style/index.js +1 -0
- package/lib/input/types.d.ts +31 -0
- package/lib/input-number/index.js +9 -0
- package/lib/input-number/index.js.map +1 -0
- package/lib/input-number/input-number.d.ts +8 -0
- package/lib/input-number/input-number.js +101 -0
- package/lib/input-number/input-number.js.map +1 -0
- package/lib/input-number/style/_index.scss +142 -0
- package/lib/input-number/style/index.css +123 -0
- package/lib/input-number/style/index.d.ts +1 -0
- package/lib/input-number/style/index.js +2 -0
- package/lib/input-number/types.d.ts +21 -0
- package/lib/input-password/index.js +9 -0
- package/lib/input-password/index.js.map +1 -0
- package/lib/input-password/input-password.d.ts +7 -0
- package/lib/input-password/input-password.js +43 -0
- package/lib/input-password/input-password.js.map +1 -0
- package/lib/input-password/style/_index.scss +20 -0
- package/lib/input-password/style/index.css +14 -0
- package/lib/input-password/style/index.d.ts +1 -0
- package/lib/input-password/style/index.js +2 -0
- package/lib/input-password/types.d.ts +12 -0
- package/lib/intl-provider/index.js +6 -0
- package/lib/intl-provider/index.js.map +1 -0
- package/lib/intl-provider/intl-context.js +10 -0
- package/lib/intl-provider/intl-context.js.map +1 -0
- package/lib/intl-provider/intl-provider.d.ts +12 -0
- package/lib/intl-provider/intl-provider.js +17 -0
- package/lib/intl-provider/intl-provider.js.map +1 -0
- package/lib/intl-provider/with-locale.d.ts +14 -0
- package/lib/intl-provider/with-locale.js +20 -0
- package/lib/intl-provider/with-locale.js.map +1 -0
- package/lib/keyboard/index.js +8 -0
- package/lib/keyboard/index.js.map +1 -0
- package/lib/keyboard/keyboard.d.ts +8 -0
- package/lib/keyboard/keyboard.js +24 -0
- package/lib/keyboard/keyboard.js.map +1 -0
- package/lib/keyboard/style/_index.scss +23 -0
- package/lib/keyboard/style/index.css +22 -0
- package/lib/keyboard/style/index.d.ts +1 -0
- package/lib/keyboard/style/index.js +1 -0
- package/lib/keyboard/types.d.ts +10 -0
- package/lib/layout/index.d.ts +14 -0
- package/lib/layout/index.js +14 -0
- package/lib/layout/index.js.map +1 -0
- package/lib/layout/layout.d.ts +14 -0
- package/lib/layout/layout.js +71 -0
- package/lib/layout/layout.js.map +1 -0
- package/lib/layout/sidebar-context.js +13 -0
- package/lib/layout/sidebar-context.js.map +1 -0
- package/lib/layout/sidebar.d.ts +8 -0
- package/lib/layout/sidebar.js +66 -0
- package/lib/layout/sidebar.js.map +1 -0
- package/lib/layout/style/_index.scss +82 -0
- package/lib/layout/style/index.css +69 -0
- package/lib/layout/style/index.d.ts +1 -0
- package/lib/layout/style/index.js +1 -0
- package/lib/layout/types.d.ts +20 -0
- package/lib/link/index.js +8 -0
- package/lib/link/index.js.map +1 -0
- package/lib/link/link.d.ts +8 -0
- package/lib/link/link.js +37 -0
- package/lib/link/link.js.map +1 -0
- package/lib/link/style/_index.scss +17 -0
- package/lib/link/style/index.css +11 -0
- package/lib/link/style/index.d.ts +1 -0
- package/lib/link/style/index.js +1 -0
- package/lib/link/types.d.ts +13 -0
- package/lib/list/index.d.ts +13 -0
- package/lib/list/index.js +13 -0
- package/lib/list/index.js.map +1 -0
- package/lib/list/list-item-meta.d.ts +11 -0
- package/lib/list/list-item-meta.js +35 -0
- package/lib/list/list-item-meta.js.map +1 -0
- package/lib/list/list-item.d.ts +8 -0
- package/lib/list/list-item.js +41 -0
- package/lib/list/list-item.js.map +1 -0
- package/lib/list/list.d.ts +8 -0
- package/lib/list/list.js +146 -0
- package/lib/list/list.js.map +1 -0
- package/lib/list/style/_index.scss +141 -0
- package/lib/list/style/index.css +108 -0
- package/lib/list/style/index.d.ts +1 -0
- package/lib/list/style/index.js +1 -0
- package/lib/list/types.d.ts +47 -0
- package/lib/loader/index.js +8 -0
- package/lib/loader/index.js.map +1 -0
- package/lib/loader/indicator.js +21 -0
- package/lib/loader/indicator.js.map +1 -0
- package/lib/loader/loader.d.ts +8 -0
- package/lib/loader/loader.js +45 -0
- package/lib/loader/loader.js.map +1 -0
- package/lib/loader/style/_index.scss +142 -0
- package/lib/loader/style/index.css +135 -0
- package/lib/loader/style/index.d.ts +1 -0
- package/lib/loader/style/index.js +1 -0
- package/lib/loader/types.d.ts +21 -0
- package/lib/loading-bar/index.d.ts +9 -0
- package/lib/loading-bar/index.js +81 -0
- package/lib/loading-bar/index.js.map +1 -0
- package/lib/loading-bar/loading-bar.js +31 -0
- package/lib/loading-bar/loading-bar.js.map +1 -0
- package/lib/loading-bar/style/_index.scss +17 -0
- package/lib/loading-bar/style/index.css +14 -0
- package/lib/loading-bar/style/index.d.ts +1 -0
- package/lib/loading-bar/style/index.js +1 -0
- package/lib/locale/en_US.d.ts +7 -0
- package/lib/locale/en_US.js +64 -0
- package/lib/locale/en_US.js.map +1 -0
- package/lib/locale/types.d.ts +44 -0
- package/lib/locale/zh_CN.d.ts +7 -0
- package/lib/locale/zh_CN.js +64 -0
- package/lib/locale/zh_CN.js.map +1 -0
- package/lib/menu/index.d.ts +17 -0
- package/lib/menu/index.js +19 -0
- package/lib/menu/index.js.map +1 -0
- package/lib/menu/menu-context.js +13 -0
- package/lib/menu/menu-context.js.map +1 -0
- package/lib/menu/menu-divider.d.ts +10 -0
- package/lib/menu/menu-divider.js +17 -0
- package/lib/menu/menu-divider.js.map +1 -0
- package/lib/menu/menu-item-group.d.ts +10 -0
- package/lib/menu/menu-item-group.js +46 -0
- package/lib/menu/menu-item-group.js.map +1 -0
- package/lib/menu/menu-item.d.ts +10 -0
- package/lib/menu/menu-item.js +52 -0
- package/lib/menu/menu-item.js.map +1 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.js +54 -0
- package/lib/menu/menu.js.map +1 -0
- package/lib/menu/style/_index.scss +183 -0
- package/lib/menu/style/_mixin.scss +16 -0
- package/lib/menu/style/index.css +158 -0
- package/lib/menu/style/index.d.ts +1 -0
- package/lib/menu/style/index.js +3 -0
- package/lib/menu/sub-menu-context.js +9 -0
- package/lib/menu/sub-menu-context.js.map +1 -0
- package/lib/menu/sub-menu.d.ts +10 -0
- package/lib/menu/sub-menu.js +138 -0
- package/lib/menu/sub-menu.js.map +1 -0
- package/lib/menu/types.d.ts +37 -0
- package/lib/message/index.js +8 -0
- package/lib/message/index.js.map +1 -0
- package/lib/message/message-container.d.ts +7 -0
- package/lib/message/message-container.js +71 -0
- package/lib/message/message-container.js.map +1 -0
- package/lib/message/message.js +84 -0
- package/lib/message/message.js.map +1 -0
- package/lib/message/style/_index.scss +59 -0
- package/lib/message/style/index.css +73 -0
- package/lib/message/style/index.d.ts +1 -0
- package/lib/message/style/index.js +1 -0
- package/lib/modal/index.d.ts +12 -0
- package/lib/modal/index.js +14 -0
- package/lib/modal/index.js.map +1 -0
- package/lib/modal/modal-context.d.ts +37 -0
- package/lib/modal/modal-context.js +71 -0
- package/lib/modal/modal-context.js.map +1 -0
- package/lib/modal/modal.d.ts +8 -0
- package/lib/modal/modal.js +152 -0
- package/lib/modal/modal.js.map +1 -0
- package/lib/modal/style/_index.scss +116 -0
- package/lib/modal/style/index.css +94 -0
- package/lib/modal/style/index.d.ts +1 -0
- package/lib/modal/style/index.js +3 -0
- package/lib/modal/types.d.ts +38 -0
- package/lib/native-select/index.d.ts +13 -0
- package/lib/native-select/index.js +13 -0
- package/lib/native-select/index.js.map +1 -0
- package/lib/native-select/native-opt-group.d.ts +9 -0
- package/lib/native-select/native-opt-group.js +17 -0
- package/lib/native-select/native-opt-group.js.map +1 -0
- package/lib/native-select/native-option.d.ts +9 -0
- package/lib/native-select/native-option.js +16 -0
- package/lib/native-select/native-option.js.map +1 -0
- package/lib/native-select/native-select.d.ts +8 -0
- package/lib/native-select/native-select.js +31 -0
- package/lib/native-select/native-select.js.map +1 -0
- package/lib/native-select/style/_index.scss +65 -0
- package/lib/native-select/style/_mixin.scss +4 -0
- package/lib/native-select/style/index.css +55 -0
- package/lib/native-select/style/index.d.ts +1 -0
- package/lib/native-select/style/index.js +1 -0
- package/lib/native-select/types.d.ts +13 -0
- package/lib/notification/index.js +8 -0
- package/lib/notification/index.js.map +1 -0
- package/lib/notification/notification-container.d.ts +5 -0
- package/lib/notification/notification-container.js +80 -0
- package/lib/notification/notification-container.js.map +1 -0
- package/lib/notification/notification.js +85 -0
- package/lib/notification/notification.js.map +1 -0
- package/lib/notification/style/_index.scss +66 -0
- package/lib/notification/style/index.css +57 -0
- package/lib/notification/style/index.d.ts +1 -0
- package/lib/notification/style/index.js +1 -0
- package/lib/overlay/index.js +8 -0
- package/lib/overlay/index.js.map +1 -0
- package/lib/overlay/overlay.d.ts +10 -0
- package/lib/overlay/overlay.js +64 -0
- package/lib/overlay/overlay.js.map +1 -0
- package/lib/overlay/style/_index.scss +51 -0
- package/lib/overlay/style/index.css +36 -0
- package/lib/overlay/style/index.d.ts +1 -0
- package/lib/overlay/style/index.js +1 -0
- package/lib/overlay/types.d.ts +21 -0
- package/lib/pagination/index.js +8 -0
- package/lib/pagination/index.js.map +1 -0
- package/lib/pagination/pagination.d.ts +7 -0
- package/lib/pagination/pagination.js +136 -0
- package/lib/pagination/pagination.js.map +1 -0
- package/lib/pagination/style/_index.scss +143 -0
- package/lib/pagination/style/index.css +115 -0
- package/lib/pagination/style/index.d.ts +1 -0
- package/lib/pagination/style/index.js +1 -0
- package/lib/pagination/types.d.ts +20 -0
- package/lib/pop-confirm/index.js +10 -0
- package/lib/pop-confirm/index.js.map +1 -0
- package/lib/pop-confirm/pop-confirm.d.ts +10 -0
- package/lib/pop-confirm/pop-confirm.js +70 -0
- package/lib/pop-confirm/pop-confirm.js.map +1 -0
- package/lib/pop-confirm/style/_index.scss +25 -0
- package/lib/pop-confirm/style/index.css +18 -0
- package/lib/pop-confirm/style/index.d.ts +1 -0
- package/lib/pop-confirm/style/index.js +3 -0
- package/lib/pop-confirm/types.d.ts +14 -0
- package/lib/popover/index.js +9 -0
- package/lib/popover/index.js.map +1 -0
- package/lib/popover/popover.d.ts +8 -0
- package/lib/popover/popover.js +38 -0
- package/lib/popover/popover.js.map +1 -0
- package/lib/popover/style/_index.scss +42 -0
- package/lib/popover/style/index.css +24 -0
- package/lib/popover/style/index.d.ts +1 -0
- package/lib/popover/style/index.js +2 -0
- package/lib/popover/types.d.ts +14 -0
- package/lib/popup/index.js +9 -0
- package/lib/popup/index.js.map +1 -0
- package/lib/popup/popup.js +200 -0
- package/lib/popup/popup.js.map +1 -0
- package/lib/popup/style/_index.scss +84 -0
- package/lib/popup/style/index.css +57 -0
- package/lib/popup/style/index.d.ts +1 -0
- package/lib/popup/style/index.js +2 -0
- package/lib/popup/types.d.ts +36 -0
- package/lib/portal/index.js +6 -0
- package/lib/portal/index.js.map +1 -0
- package/lib/portal/portal.js +14 -0
- package/lib/portal/portal.js.map +1 -0
- package/lib/progress/bar.js +61 -0
- package/lib/progress/bar.js.map +1 -0
- package/lib/progress/circle.js +79 -0
- package/lib/progress/circle.js.map +1 -0
- package/lib/progress/index.d.ts +16 -0
- package/lib/progress/index.js +13 -0
- package/lib/progress/index.js.map +1 -0
- package/lib/progress/style/_index.scss +170 -0
- package/lib/progress/style/index.css +128 -0
- package/lib/progress/style/index.d.ts +1 -0
- package/lib/progress/style/index.js +1 -0
- package/lib/progress/types.d.ts +36 -0
- package/lib/progress/types.js +12 -0
- package/lib/progress/types.js.map +1 -0
- package/lib/radio/index.d.ts +11 -0
- package/lib/radio/index.js +11 -0
- package/lib/radio/index.js.map +1 -0
- package/lib/radio/radio-group-context.js +9 -0
- package/lib/radio/radio-group-context.js.map +1 -0
- package/lib/radio/radio-group.d.ts +8 -0
- package/lib/radio/radio-group.js +45 -0
- package/lib/radio/radio-group.js.map +1 -0
- package/lib/radio/radio.d.ts +8 -0
- package/lib/radio/radio.js +64 -0
- package/lib/radio/radio.js.map +1 -0
- package/lib/radio/style/_index.scss +86 -0
- package/lib/radio/style/index.css +66 -0
- package/lib/radio/style/index.d.ts +1 -0
- package/lib/radio/style/index.js +1 -0
- package/lib/radio/types.d.ts +24 -0
- package/lib/rate/index.js +8 -0
- package/lib/rate/index.js.map +1 -0
- package/lib/rate/rate-item.js +31 -0
- package/lib/rate/rate-item.js.map +1 -0
- package/lib/rate/rate.d.ts +8 -0
- package/lib/rate/rate.js +91 -0
- package/lib/rate/rate.js.map +1 -0
- package/lib/rate/style/_index.scss +31 -0
- package/lib/rate/style/index.css +23 -0
- package/lib/rate/style/index.d.ts +1 -0
- package/lib/rate/style/index.js +1 -0
- package/lib/rate/types.d.ts +19 -0
- package/lib/result/index.js +8 -0
- package/lib/result/index.js.map +1 -0
- package/lib/result/result.d.ts +8 -0
- package/lib/result/result.js +64 -0
- package/lib/result/result.js.map +1 -0
- package/lib/result/style/_index.scss +48 -0
- package/lib/result/style/index.css +65 -0
- package/lib/result/style/index.d.ts +1 -0
- package/lib/result/style/index.js +1 -0
- package/lib/result/types.d.ts +16 -0
- package/lib/row/index.js +6 -0
- package/lib/row/index.js.map +1 -0
- package/lib/scroll-indicator/index.js +8 -0
- package/lib/scroll-indicator/index.js.map +1 -0
- package/lib/scroll-indicator/scroll-indicator.d.ts +11 -0
- package/lib/scroll-indicator/scroll-indicator.js +43 -0
- package/lib/scroll-indicator/scroll-indicator.js.map +1 -0
- package/lib/scroll-indicator/style/_index.scss +15 -0
- package/lib/scroll-indicator/style/index.css +12 -0
- package/lib/scroll-indicator/style/index.d.ts +1 -0
- package/lib/scroll-indicator/style/index.js +1 -0
- package/lib/scroll-indicator/types.d.ts +12 -0
- package/lib/segmented/index.js +8 -0
- package/lib/segmented/index.js.map +1 -0
- package/lib/segmented/segmented.d.ts +8 -0
- package/lib/segmented/segmented.js +79 -0
- package/lib/segmented/segmented.js.map +1 -0
- package/lib/segmented/style/_index.scss +93 -0
- package/lib/segmented/style/index.css +79 -0
- package/lib/segmented/style/index.d.ts +1 -0
- package/lib/segmented/style/index.js +1 -0
- package/lib/segmented/types.d.ts +23 -0
- package/lib/select/index.d.ts +13 -0
- package/lib/select/index.js +15 -0
- package/lib/select/index.js.map +1 -0
- package/lib/select/opt-group.d.ts +11 -0
- package/lib/select/opt-group.js +39 -0
- package/lib/select/opt-group.js.map +1 -0
- package/lib/select/option.d.ts +11 -0
- package/lib/select/option.js +50 -0
- package/lib/select/option.js.map +1 -0
- package/lib/select/select-context.js +12 -0
- package/lib/select/select-context.js.map +1 -0
- package/lib/select/select.d.ts +11 -0
- package/lib/select/select.js +370 -0
- package/lib/select/select.js.map +1 -0
- package/lib/select/style/_index.scss +313 -0
- package/lib/select/style/index.css +260 -0
- package/lib/select/style/index.d.ts +1 -0
- package/lib/select/style/index.js +3 -0
- package/lib/select/types.d.ts +53 -0
- package/lib/skeleton/index.js +8 -0
- package/lib/skeleton/index.js.map +1 -0
- package/lib/skeleton/skeleton.d.ts +8 -0
- package/lib/skeleton/skeleton.js +31 -0
- package/lib/skeleton/skeleton.js.map +1 -0
- package/lib/skeleton/style/_index.scss +42 -0
- package/lib/skeleton/style/index.css +34 -0
- package/lib/skeleton/style/index.d.ts +1 -0
- package/lib/skeleton/style/index.js +1 -0
- package/lib/skeleton/types.d.ts +12 -0
- package/lib/slider/index.js +9 -0
- package/lib/slider/index.js.map +1 -0
- package/lib/slider/slider.d.ts +8 -0
- package/lib/slider/slider.js +250 -0
- package/lib/slider/slider.js.map +1 -0
- package/lib/slider/style/_index.scss +177 -0
- package/lib/slider/style/index.css +138 -0
- package/lib/slider/style/index.d.ts +1 -0
- package/lib/slider/style/index.js +2 -0
- package/lib/slider/types.d.ts +33 -0
- package/lib/space/index.js +8 -0
- package/lib/space/index.js.map +1 -0
- package/lib/space/space.d.ts +8 -0
- package/lib/space/space.js +40 -0
- package/lib/space/space.js.map +1 -0
- package/lib/space/style/_index.scss +25 -0
- package/lib/space/style/index.css +18 -0
- package/lib/space/style/index.d.ts +1 -0
- package/lib/space/style/index.js +1 -0
- package/lib/space/types.d.ts +14 -0
- package/lib/speed-dial/index.d.ts +11 -0
- package/lib/speed-dial/index.js +11 -0
- package/lib/speed-dial/index.js.map +1 -0
- package/lib/speed-dial/speed-dial-action.d.ts +8 -0
- package/lib/speed-dial/speed-dial-action.js +43 -0
- package/lib/speed-dial/speed-dial-action.js.map +1 -0
- package/lib/speed-dial/speed-dial-context.js +7 -0
- package/lib/speed-dial/speed-dial-context.js.map +1 -0
- package/lib/speed-dial/speed-dial.d.ts +8 -0
- package/lib/speed-dial/speed-dial.js +95 -0
- package/lib/speed-dial/speed-dial.js.map +1 -0
- package/lib/speed-dial/style/_index.scss +230 -0
- package/lib/speed-dial/style/index.css +183 -0
- package/lib/speed-dial/style/index.d.ts +1 -0
- package/lib/speed-dial/style/index.js +1 -0
- package/lib/speed-dial/types.d.ts +26 -0
- package/lib/split/index.js +8 -0
- package/lib/split/index.js.map +1 -0
- package/lib/split/resizer.d.ts +12 -0
- package/lib/split/resizer.js +59 -0
- package/lib/split/resizer.js.map +1 -0
- package/lib/split/split-context.js +9 -0
- package/lib/split/split-context.js.map +1 -0
- package/lib/split/split-pane.js +30 -0
- package/lib/split/split-pane.js.map +1 -0
- package/lib/split/split.d.ts +10 -0
- package/lib/split/split.js +144 -0
- package/lib/split/split.js.map +1 -0
- package/lib/split/style/_index.scss +98 -0
- package/lib/split/style/index.css +82 -0
- package/lib/split/style/index.d.ts +1 -0
- package/lib/split/style/index.js +1 -0
- package/lib/split/types.d.ts +30 -0
- package/lib/split-button/index.js +10 -0
- package/lib/split-button/index.js.map +1 -0
- package/lib/split-button/split-button.d.ts +11 -0
- package/lib/split-button/split-button.js +46 -0
- package/lib/split-button/split-button.js.map +1 -0
- package/lib/split-button/style/_index.scss +9 -0
- package/lib/split-button/style/index.css +4 -0
- package/lib/split-button/style/index.d.ts +1 -0
- package/lib/split-button/style/index.js +3 -0
- package/lib/split-button/types.d.ts +20 -0
- package/lib/statistic/index.js +8 -0
- package/lib/statistic/index.js.map +1 -0
- package/lib/statistic/statistic.d.ts +8 -0
- package/lib/statistic/statistic.js +61 -0
- package/lib/statistic/statistic.js.map +1 -0
- package/lib/statistic/style/_index.scss +31 -0
- package/lib/statistic/style/index.css +24 -0
- package/lib/statistic/style/index.d.ts +1 -0
- package/lib/statistic/style/index.js +1 -0
- package/lib/statistic/types.d.ts +17 -0
- package/lib/steps/index.d.ts +11 -0
- package/lib/steps/index.js +11 -0
- package/lib/steps/index.js.map +1 -0
- package/lib/steps/steps-context.js +14 -0
- package/lib/steps/steps-context.js.map +1 -0
- package/lib/steps/steps-item.d.ts +8 -0
- package/lib/steps/steps-item.js +73 -0
- package/lib/steps/steps-item.js.map +1 -0
- package/lib/steps/steps.d.ts +8 -0
- package/lib/steps/steps.js +52 -0
- package/lib/steps/steps.js.map +1 -0
- package/lib/steps/style/_index.scss +208 -0
- package/lib/steps/style/index.css +148 -0
- package/lib/steps/style/index.d.ts +1 -0
- package/lib/steps/style/index.js +1 -0
- package/lib/steps/types.d.ts +24 -0
- package/lib/sticky/index.js +8 -0
- package/lib/sticky/index.js.map +1 -0
- package/lib/sticky/sticky.d.ts +10 -0
- package/lib/sticky/sticky.js +129 -0
- package/lib/sticky/sticky.js.map +1 -0
- package/lib/sticky/style/_index.scss +8 -0
- package/lib/sticky/style/index.css +3 -0
- package/lib/sticky/style/index.d.ts +1 -0
- package/lib/sticky/style/index.js +1 -0
- package/lib/sticky/types.d.ts +14 -0
- package/lib/strength-indicator/index.js +8 -0
- package/lib/strength-indicator/index.js.map +1 -0
- package/lib/strength-indicator/strength-indicator.d.ts +8 -0
- package/lib/strength-indicator/strength-indicator.js +51 -0
- package/lib/strength-indicator/strength-indicator.js.map +1 -0
- package/lib/strength-indicator/style/_index.scss +46 -0
- package/lib/strength-indicator/style/index.css +37 -0
- package/lib/strength-indicator/style/index.d.ts +1 -0
- package/lib/strength-indicator/style/index.js +1 -0
- package/lib/strength-indicator/types.d.ts +17 -0
- package/lib/style/_animation.scss +1 -0
- package/lib/style/_component.scss +78 -0
- package/lib/style/_font.scss +1 -0
- package/lib/style/_mixins.scss +1 -0
- package/lib/style/_tokens.scss +1 -0
- package/lib/style/_variables.scss +1 -0
- package/lib/style/base.css +1162 -0
- package/lib/style/base.scss +1 -0
- package/lib/style/index.scss +2 -0
- package/lib/switch/index.js +8 -0
- package/lib/switch/index.js.map +1 -0
- package/lib/switch/style/_index.scss +144 -0
- package/lib/switch/style/_mixin.scss +16 -0
- package/lib/switch/style/index.css +187 -0
- package/lib/switch/style/index.d.ts +1 -0
- package/lib/switch/style/index.js +1 -0
- package/lib/switch/switch.d.ts +8 -0
- package/lib/switch/switch.js +58 -0
- package/lib/switch/switch.js.map +1 -0
- package/lib/switch/types.d.ts +18 -0
- package/lib/table/index.js +8 -0
- package/lib/table/index.js.map +1 -0
- package/lib/table/style/_index.scss +143 -0
- package/lib/table/style/index.css +105 -0
- package/lib/table/style/index.d.ts +1 -0
- package/lib/table/style/index.js +1 -0
- package/lib/table/table.d.ts +8 -0
- package/lib/table/table.js +297 -0
- package/lib/table/table.js.map +1 -0
- package/lib/table/types.d.ts +59 -0
- package/lib/tabs/index.d.ts +12 -0
- package/lib/tabs/index.js +11 -0
- package/lib/tabs/index.js.map +1 -0
- package/lib/tabs/style/index.css +241 -0
- package/lib/tabs/style/index.d.ts +1 -0
- package/lib/tabs/style/index.js +1 -0
- package/lib/tabs/style/index.scss +315 -0
- package/lib/tabs/tab-panel.d.ts +10 -0
- package/lib/tabs/tab-panel.js +25 -0
- package/lib/tabs/tab-panel.js.map +1 -0
- package/lib/tabs/tabs.d.ts +8 -0
- package/lib/tabs/tabs.js +280 -0
- package/lib/tabs/tabs.js.map +1 -0
- package/lib/tabs/types.d.ts +69 -0
- package/lib/tag/checkable-tag.d.ts +10 -0
- package/lib/tag/checkable-tag.js +38 -0
- package/lib/tag/checkable-tag.js.map +1 -0
- package/lib/tag/index.d.ts +11 -0
- package/lib/tag/index.js +11 -0
- package/lib/tag/index.js.map +1 -0
- package/lib/tag/style/_index.scss +119 -0
- package/lib/tag/style/index.css +103 -0
- package/lib/tag/style/index.d.ts +1 -0
- package/lib/tag/style/index.js +1 -0
- package/lib/tag/tag.d.ts +8 -0
- package/lib/tag/tag.js +57 -0
- package/lib/tag/tag.js.map +1 -0
- package/lib/tag/types.d.ts +22 -0
- package/lib/tag/types.js +18 -0
- package/lib/tag/types.js.map +1 -0
- package/lib/textarea/index.js +9 -0
- package/lib/textarea/index.js.map +1 -0
- package/lib/textarea/style/_index.scss +28 -0
- package/lib/textarea/style/index.css +50 -0
- package/lib/textarea/style/index.d.ts +1 -0
- package/lib/textarea/style/index.js +2 -0
- package/lib/textarea/textarea.d.ts +8 -0
- package/lib/textarea/textarea.js +53 -0
- package/lib/textarea/textarea.js.map +1 -0
- package/lib/textarea/types.d.ts +16 -0
- package/lib/time-picker/index.js +8 -0
- package/lib/time-picker/index.js.map +1 -0
- package/lib/time-picker/style/_index.scss +241 -0
- package/lib/time-picker/style/index.css +202 -0
- package/lib/time-picker/style/index.d.ts +1 -0
- package/lib/time-picker/style/index.js +1 -0
- package/lib/time-picker/time-panel.js +115 -0
- package/lib/time-picker/time-panel.js.map +1 -0
- package/lib/time-picker/time-picker.d.ts +10 -0
- package/lib/time-picker/time-picker.js +210 -0
- package/lib/time-picker/time-picker.js.map +1 -0
- package/lib/time-picker/types.d.ts +56 -0
- package/lib/timeline/index.d.ts +11 -0
- package/lib/timeline/index.js +11 -0
- package/lib/timeline/index.js.map +1 -0
- package/lib/timeline/style/_index.scss +91 -0
- package/lib/timeline/style/index.css +69 -0
- package/lib/timeline/style/index.d.ts +1 -0
- package/lib/timeline/style/index.js +1 -0
- package/lib/timeline/timeline-item.d.ts +8 -0
- package/lib/timeline/timeline-item.js +37 -0
- package/lib/timeline/timeline-item.js.map +1 -0
- package/lib/timeline/timeline.d.ts +8 -0
- package/lib/timeline/timeline.js +31 -0
- package/lib/timeline/timeline.js.map +1 -0
- package/lib/timeline/types.d.ts +17 -0
- package/lib/tooltip/index.js +9 -0
- package/lib/tooltip/index.js.map +1 -0
- package/lib/tooltip/style/_index.scss +41 -0
- package/lib/tooltip/style/index.css +22 -0
- package/lib/tooltip/style/index.d.ts +1 -0
- package/lib/tooltip/style/index.js +2 -0
- package/lib/tooltip/tooltip.d.ts +8 -0
- package/lib/tooltip/tooltip.js +33 -0
- package/lib/tooltip/tooltip.js.map +1 -0
- package/lib/tooltip/types.d.ts +12 -0
- package/lib/transfer/index.js +12 -0
- package/lib/transfer/index.js.map +1 -0
- package/lib/transfer/style/_index.scss +98 -0
- package/lib/transfer/style/index.css +83 -0
- package/lib/transfer/style/index.d.ts +1 -0
- package/lib/transfer/style/index.js +5 -0
- package/lib/transfer/transfer-panel.js +98 -0
- package/lib/transfer/transfer-panel.js.map +1 -0
- package/lib/transfer/transfer.d.ts +8 -0
- package/lib/transfer/transfer.js +125 -0
- package/lib/transfer/transfer.js.map +1 -0
- package/lib/transfer/types.d.ts +25 -0
- package/lib/transition/index.js +8 -0
- package/lib/transition/index.js.map +1 -0
- package/lib/transition/style/_index.scss +20 -0
- package/lib/transition/style/_mixin.scss +58 -0
- package/lib/transition/style/index.css +275 -0
- package/lib/transition/style/index.d.ts +1 -0
- package/lib/transition/style/index.js +1 -0
- package/lib/transition/transition.d.ts +18 -0
- package/lib/transition/transition.js +23 -0
- package/lib/transition/transition.js.map +1 -0
- package/lib/tree/index.js +10 -0
- package/lib/tree/index.js.map +1 -0
- package/lib/tree/style/_index.scss +66 -0
- package/lib/tree/style/index.css +52 -0
- package/lib/tree/style/index.d.ts +1 -0
- package/lib/tree/style/index.js +3 -0
- package/lib/tree/tree-instance.js +108 -0
- package/lib/tree/tree-instance.js.map +1 -0
- package/lib/tree/tree-node.js +76 -0
- package/lib/tree/tree-node.js.map +1 -0
- package/lib/tree/tree.d.ts +8 -0
- package/lib/tree/tree.js +53 -0
- package/lib/tree/tree.js.map +1 -0
- package/lib/tree/types.d.ts +28 -0
- package/lib/typography/heading.d.ts +7 -0
- package/lib/typography/heading.js +34 -0
- package/lib/typography/heading.js.map +1 -0
- package/lib/typography/index.d.ts +15 -0
- package/lib/typography/index.js +15 -0
- package/lib/typography/index.js.map +1 -0
- package/lib/typography/paragraph.d.ts +8 -0
- package/lib/typography/paragraph.js +23 -0
- package/lib/typography/paragraph.js.map +1 -0
- package/lib/typography/style/_index.scss +126 -0
- package/lib/typography/style/index.css +105 -0
- package/lib/typography/style/index.d.ts +1 -0
- package/lib/typography/style/index.js +1 -0
- package/lib/typography/text.d.ts +7 -0
- package/lib/typography/text.js +34 -0
- package/lib/typography/text.js.map +1 -0
- package/lib/typography/types.d.ts +28 -0
- package/lib/typography/typography.d.ts +8 -0
- package/lib/typography/typography.js +23 -0
- package/lib/typography/typography.js.map +1 -0
- package/lib/upload/ajax.js +26 -0
- package/lib/upload/ajax.js.map +1 -0
- package/lib/upload/dragger-cover.js +38 -0
- package/lib/upload/dragger-cover.js.map +1 -0
- package/lib/upload/index.js +8 -0
- package/lib/upload/index.js.map +1 -0
- package/lib/upload/style/_index.scss +99 -0
- package/lib/upload/style/index.css +105 -0
- package/lib/upload/style/index.d.ts +1 -0
- package/lib/upload/style/index.js +1 -0
- package/lib/upload/types.d.ts +44 -0
- package/lib/upload/upload-list.js +58 -0
- package/lib/upload/upload-list.js.map +1 -0
- package/lib/upload/upload.d.ts +8 -0
- package/lib/upload/upload.js +144 -0
- package/lib/upload/upload.js.map +1 -0
- package/package.json +87 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BaseProps } from "../_utils/props.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/upload/types.d.ts
|
|
5
|
+
type UploadFileStatus = 'uploading' | 'done' | 'error' | 'ready';
|
|
6
|
+
interface UploadFile {
|
|
7
|
+
uid: string;
|
|
8
|
+
name: string;
|
|
9
|
+
status: UploadFileStatus;
|
|
10
|
+
percent?: number;
|
|
11
|
+
url?: string;
|
|
12
|
+
}
|
|
13
|
+
interface UploadProps extends BaseProps {
|
|
14
|
+
action: string;
|
|
15
|
+
accept?: string;
|
|
16
|
+
method?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
data?: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
};
|
|
22
|
+
headers?: {
|
|
23
|
+
[key: string]: string;
|
|
24
|
+
};
|
|
25
|
+
multiple?: boolean;
|
|
26
|
+
drag?: boolean;
|
|
27
|
+
tip?: React.ReactNode;
|
|
28
|
+
withCredentials?: boolean;
|
|
29
|
+
limit?: number;
|
|
30
|
+
fileList?: UploadFile[];
|
|
31
|
+
defaultFileList?: UploadFile[];
|
|
32
|
+
beforeUpload?: (file: File) => boolean | Promise<File>;
|
|
33
|
+
onProgress?: (percent: number, file: UploadFile, fileList: UploadFile[]) => void;
|
|
34
|
+
onSuccess?: (e: ProgressEvent, file: UploadFile, fileList: UploadFile[]) => void;
|
|
35
|
+
onError?: (e: ProgressEvent, file: UploadFile, fileList: UploadFile[]) => void;
|
|
36
|
+
onChange?: (file: UploadFile, fileList: UploadFile[]) => void;
|
|
37
|
+
onRemove?: (file: UploadFile) => void;
|
|
38
|
+
onExceed?: (files: FileList, fileList: UploadFile[]) => void;
|
|
39
|
+
httpRequest?: (...args: unknown[]) => void;
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { UploadProps };
|
|
44
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { CheckCircle, CloseCircle, LoadingCircle, PaperClip } from "../_utils/components.js";
|
|
2
|
+
import Progress from "../progress/index.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/upload/upload-list.tsx
|
|
5
|
+
const UploadList = (props) => {
|
|
6
|
+
const { prefixCls, fileList, onRemove } = props;
|
|
7
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
8
|
+
className: `${prefixCls}__upload-list`,
|
|
9
|
+
children: fileList.map((file) => {
|
|
10
|
+
const { uid, name, status, percent } = file;
|
|
11
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
12
|
+
className: `${prefixCls}__upload-list-item`,
|
|
13
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
14
|
+
className: `${prefixCls}__upload-list-item-container`,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsx(PaperClip, {
|
|
17
|
+
size: 11,
|
|
18
|
+
color: "rgba(0, 0, 0, 0.45)"
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ jsx("span", {
|
|
21
|
+
className: `${prefixCls}__upload-list-item-name`,
|
|
22
|
+
children: name
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ jsxs("span", {
|
|
25
|
+
className: `${prefixCls}__upload-list-item-status`,
|
|
26
|
+
children: [
|
|
27
|
+
status === "done" && /* @__PURE__ */ jsx(CheckCircle, { size: 16 }),
|
|
28
|
+
status === "error" && /* @__PURE__ */ jsx(CloseCircle, { size: 16 }),
|
|
29
|
+
status === "uploading" && /* @__PURE__ */ jsx(LoadingCircle, {
|
|
30
|
+
style: { animation: "ty-rotate 1s linear infinite" },
|
|
31
|
+
color: "#1890ff",
|
|
32
|
+
size: 16
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ jsx("span", {
|
|
37
|
+
className: `${prefixCls}__upload-list-item-delete`,
|
|
38
|
+
onClick: () => onRemove && onRemove(file),
|
|
39
|
+
children: "✕"
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
}), status === "uploading" && /* @__PURE__ */ jsx(Progress.Bar, {
|
|
43
|
+
strokeColor: "blue",
|
|
44
|
+
percent,
|
|
45
|
+
showInfo: false,
|
|
46
|
+
style: { marginTop: 5 },
|
|
47
|
+
strokeWidth: 2
|
|
48
|
+
})]
|
|
49
|
+
}, uid);
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
UploadList.displayName = "UploadList";
|
|
54
|
+
//#endregion
|
|
55
|
+
export { UploadList as default };
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=upload-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-list.js","names":[],"sources":["../../src/upload/upload-list.tsx"],"sourcesContent":["import { CheckCircle, CloseCircle, LoadingCircle, PaperClip } from '../_utils/components';\nimport Progress from '../progress';\nimport { UploadFile } from './types';\n\ntype UploadListProps = {\n prefixCls: string;\n fileList: UploadFile[];\n onRemove: (file: UploadFile) => void;\n};\n\nconst UploadList = (props: UploadListProps): JSX.Element => {\n const { prefixCls, fileList, onRemove } = props;\n\n return (\n <ul className={`${prefixCls}__upload-list`}>\n {fileList.map((file) => {\n const { uid, name, status, percent } = file;\n return (\n <li key={uid} className={`${prefixCls}__upload-list-item`}>\n <div className={`${prefixCls}__upload-list-item-container`}>\n <PaperClip size={11} color=\"rgba(0, 0, 0, 0.45)\" />\n <span className={`${prefixCls}__upload-list-item-name`}>{name}</span>\n <span className={`${prefixCls}__upload-list-item-status`}>\n {status === 'done' && <CheckCircle size={16} />}\n {status === 'error' && <CloseCircle size={16} />}\n {status === 'uploading' && (\n <LoadingCircle\n style={{ animation: 'ty-rotate 1s linear infinite' }}\n color=\"#1890ff\"\n size={16}\n />\n )}\n </span>\n <span\n className={`${prefixCls}__upload-list-item-delete`}\n onClick={(): void => onRemove && onRemove(file)}>\n ✕\n </span>\n </div>\n {status === 'uploading' && (\n <Progress.Bar\n strokeColor=\"blue\"\n percent={percent}\n showInfo={false}\n style={{ marginTop: 5 }}\n strokeWidth={2}\n />\n )}\n </li>\n );\n })}\n </ul>\n );\n};\n\nUploadList.displayName = 'UploadList';\n\nexport default UploadList;\n"],"mappings":";;;;AAUA,MAAM,cAAc,UAAwC;CAC1D,MAAM,EAAE,WAAW,UAAU,aAAa;AAE1C,QACE,oBAAC,MAAD;EAAI,WAAW,GAAG,UAAU;YACzB,SAAS,KAAK,SAAS;GACtB,MAAM,EAAE,KAAK,MAAM,QAAQ,YAAY;AACvC,UACE,qBAAC,MAAD;IAAc,WAAW,GAAG,UAAU;cAAtC,CACE,qBAAC,OAAD;KAAK,WAAW,GAAG,UAAU;eAA7B;MACE,oBAAC,WAAD;OAAW,MAAM;OAAI,OAAM;OAAwB,CAAA;MACnD,oBAAC,QAAD;OAAM,WAAW,GAAG,UAAU;iBAA2B;OAAY,CAAA;MACrE,qBAAC,QAAD;OAAM,WAAW,GAAG,UAAU;iBAA9B;QACG,WAAW,UAAU,oBAAC,aAAD,EAAa,MAAM,IAAM,CAAA;QAC9C,WAAW,WAAW,oBAAC,aAAD,EAAa,MAAM,IAAM,CAAA;QAC/C,WAAW,eACV,oBAAC,eAAD;SACE,OAAO,EAAE,WAAW,gCAAgC;SACpD,OAAM;SACN,MAAM;SACN,CAAA;QAEC;;MACP,oBAAC,QAAD;OACE,WAAW,GAAG,UAAU;OACxB,eAAqB,YAAY,SAAS,KAAK;iBAAE;OAE5C,CAAA;MACH;QACL,WAAW,eACV,oBAAC,SAAS,KAAV;KACE,aAAY;KACH;KACT,UAAU;KACV,OAAO,EAAE,WAAW,GAAG;KACvB,aAAa;KACb,CAAA,CAED;MA9BI,IA8BJ;IAEP;EACC,CAAA;;AAIT,WAAW,cAAc"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UploadProps } from "./types.js";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/upload/upload.d.ts
|
|
5
|
+
declare const Upload: React.ForwardRefExoticComponent<UploadProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Upload };
|
|
8
|
+
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { ConfigContext } from "../config-provider/config-context.js";
|
|
2
|
+
import { getPrefixCls } from "../_utils/general.js";
|
|
3
|
+
import ajax from "./ajax.js";
|
|
4
|
+
import UploadList from "./upload-list.js";
|
|
5
|
+
import DraggerCover from "./dragger-cover.js";
|
|
6
|
+
import React, { useContext, useRef, useState } from "react";
|
|
7
|
+
import classNames from "classnames";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
//#region src/upload/upload.tsx
|
|
10
|
+
const Upload = React.forwardRef((props, ref) => {
|
|
11
|
+
const { defaultFileList = [], httpRequest = ajax, disabled = false, method = "post", headers, withCredentials, accept, action, multiple, name, data, drag, beforeUpload, limit, onExceed, onProgress, onSuccess, onError, onChange, onRemove, tip, className, style, children, prefixCls: customisedCls } = props;
|
|
12
|
+
const prefixCls = getPrefixCls("upload", useContext(ConfigContext).prefixCls, customisedCls);
|
|
13
|
+
const cls = classNames(prefixCls, className, { [`${prefixCls}_disabled`]: disabled });
|
|
14
|
+
const fileRef = useRef(null);
|
|
15
|
+
const [fileList, setFileList] = useState("fileList" in props && Array.isArray(props.fileList) ? props.fileList : defaultFileList);
|
|
16
|
+
const updateFileList = (updateFile, targetObj) => {
|
|
17
|
+
setFileList((prevState) => prevState.map((file) => {
|
|
18
|
+
if (file.uid === updateFile.uid) return {
|
|
19
|
+
...file,
|
|
20
|
+
...targetObj
|
|
21
|
+
};
|
|
22
|
+
else return file;
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
25
|
+
const xhrOnProgress = (percent, uploadFile) => {
|
|
26
|
+
const updateObj = {
|
|
27
|
+
percent,
|
|
28
|
+
status: "uploading"
|
|
29
|
+
};
|
|
30
|
+
updateFileList(uploadFile, updateObj);
|
|
31
|
+
onProgress && onProgress(percent, {
|
|
32
|
+
...uploadFile,
|
|
33
|
+
...updateObj
|
|
34
|
+
}, fileList);
|
|
35
|
+
};
|
|
36
|
+
const xhrOnComplete = (e, uploadFile) => {
|
|
37
|
+
const updateObj = { status: "done" };
|
|
38
|
+
updateFileList(uploadFile, updateObj);
|
|
39
|
+
const updatedUploadFile = {
|
|
40
|
+
...uploadFile,
|
|
41
|
+
...updateObj
|
|
42
|
+
};
|
|
43
|
+
onSuccess && onSuccess(e, updatedUploadFile, fileList);
|
|
44
|
+
onChange && onChange(updatedUploadFile, fileList);
|
|
45
|
+
};
|
|
46
|
+
const xhrOnError = (e, uploadFile) => {
|
|
47
|
+
const updateObj = { status: "error" };
|
|
48
|
+
updateFileList(uploadFile, { status: "error" });
|
|
49
|
+
const updatedUploadFile = {
|
|
50
|
+
...uploadFile,
|
|
51
|
+
...updateObj
|
|
52
|
+
};
|
|
53
|
+
onError && onError(e, updatedUploadFile, fileList);
|
|
54
|
+
onChange && onChange(updatedUploadFile, fileList);
|
|
55
|
+
};
|
|
56
|
+
const postRequest = (file) => {
|
|
57
|
+
const uploadFile = {
|
|
58
|
+
uid: "file-" + Date.now() + "-" + Math.random().toString(36).slice(2, 9),
|
|
59
|
+
name: file.name,
|
|
60
|
+
status: "ready",
|
|
61
|
+
percent: 0
|
|
62
|
+
};
|
|
63
|
+
setFileList((prevState) => [uploadFile, ...prevState]);
|
|
64
|
+
httpRequest({
|
|
65
|
+
headers,
|
|
66
|
+
withCredentials,
|
|
67
|
+
file,
|
|
68
|
+
data,
|
|
69
|
+
filename: name || file.name,
|
|
70
|
+
method,
|
|
71
|
+
action,
|
|
72
|
+
onProgress: (percent) => xhrOnProgress(percent, uploadFile),
|
|
73
|
+
onSuccess: (e) => xhrOnComplete(e, uploadFile),
|
|
74
|
+
onError: (e) => xhrOnError(e, uploadFile)
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
const uploadFiles = (files) => {
|
|
78
|
+
if (limit && fileList.length + files.length > limit) {
|
|
79
|
+
onExceed && onExceed(files, fileList);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
Array.from(files).forEach((file) => {
|
|
83
|
+
if (!beforeUpload) postRequest(file);
|
|
84
|
+
else {
|
|
85
|
+
const res = beforeUpload(file);
|
|
86
|
+
if (res && res instanceof Promise) res.then((processedFile) => postRequest(processedFile));
|
|
87
|
+
else if (res !== false) postRequest(file);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
const handleTriggerOnClick = () => {
|
|
92
|
+
if (!disabled) {
|
|
93
|
+
if (fileRef.current) fileRef.current.click();
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const handleFileOnChange = (e) => {
|
|
97
|
+
const files = e.currentTarget.files;
|
|
98
|
+
if (!files) return;
|
|
99
|
+
uploadFiles(files);
|
|
100
|
+
if (fileRef.current) fileRef.current.value = "";
|
|
101
|
+
};
|
|
102
|
+
const handleOnRemove = (uploadFile) => {
|
|
103
|
+
setFileList((prevState) => prevState.filter((file) => file.uid !== uploadFile.uid));
|
|
104
|
+
onRemove && onRemove(uploadFile);
|
|
105
|
+
};
|
|
106
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
107
|
+
ref,
|
|
108
|
+
className: cls,
|
|
109
|
+
style,
|
|
110
|
+
onClick: handleTriggerOnClick,
|
|
111
|
+
children: [
|
|
112
|
+
drag ? /* @__PURE__ */ jsx(DraggerCover, {
|
|
113
|
+
prefixCls,
|
|
114
|
+
onFile: uploadFiles,
|
|
115
|
+
disabled,
|
|
116
|
+
children
|
|
117
|
+
}) : children,
|
|
118
|
+
tip && /* @__PURE__ */ jsx("div", {
|
|
119
|
+
className: `${prefixCls}__tip`,
|
|
120
|
+
children: tip
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ jsx("input", {
|
|
123
|
+
ref: fileRef,
|
|
124
|
+
accept,
|
|
125
|
+
multiple,
|
|
126
|
+
type: "file",
|
|
127
|
+
style: { display: "none" },
|
|
128
|
+
onChange: handleFileOnChange
|
|
129
|
+
})
|
|
130
|
+
]
|
|
131
|
+
}), /* @__PURE__ */ jsx(UploadList, {
|
|
132
|
+
prefixCls,
|
|
133
|
+
fileList,
|
|
134
|
+
onRemove: handleOnRemove
|
|
135
|
+
})] });
|
|
136
|
+
});
|
|
137
|
+
Upload.displayName = "Upload";
|
|
138
|
+
//#endregion
|
|
139
|
+
export { Upload as default };
|
|
140
|
+
|
|
141
|
+
//# sourceMappingURL=upload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.js","names":[],"sources":["../../src/upload/upload.tsx"],"sourcesContent":["import React, { useContext, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider/config-context';\nimport { getPrefixCls } from '../_utils/general';\nimport ajax from './ajax';\nimport UploadList from './upload-list';\nimport DraggerCover from './dragger-cover';\nimport { UploadFile, UploadProps } from './types';\n\nconst Upload = React.forwardRef<HTMLDivElement, UploadProps>((props, ref) => {\n const {\n defaultFileList = [],\n httpRequest = ajax,\n disabled = false,\n method = 'post',\n headers,\n withCredentials,\n accept,\n action,\n multiple,\n name,\n data,\n drag,\n beforeUpload,\n limit,\n onExceed,\n onProgress,\n onSuccess,\n onError,\n onChange,\n onRemove,\n tip,\n className,\n style,\n children,\n prefixCls: customisedCls,\n } = props;\n const configContext = useContext(ConfigContext);\n const prefixCls = getPrefixCls('upload', configContext.prefixCls, customisedCls);\n const cls = classNames(prefixCls, className, {\n [`${prefixCls}_disabled`]: disabled,\n });\n const fileRef = useRef<HTMLInputElement | null>(null);\n const [fileList, setFileList] = useState<UploadFile[]>(\n 'fileList' in props && Array.isArray(props.fileList) ? props.fileList : defaultFileList\n );\n\n const updateFileList = (updateFile: UploadFile, targetObj: Partial<UploadFile>): void => {\n setFileList((prevState) =>\n prevState.map((file: UploadFile) => {\n if (file.uid === updateFile.uid) {\n return { ...file, ...targetObj };\n } else {\n return file;\n }\n })\n );\n };\n\n const xhrOnProgress = (percent: number, uploadFile: UploadFile): void => {\n const updateObj: Partial<UploadFile> = { percent, status: 'uploading' };\n updateFileList(uploadFile, updateObj);\n onProgress && onProgress(percent, { ...uploadFile, ...updateObj }, fileList);\n };\n\n const xhrOnComplete = (e: ProgressEvent, uploadFile: UploadFile): void => {\n const updateObj: Partial<UploadFile> = { status: 'done' };\n updateFileList(uploadFile, updateObj);\n const updatedUploadFile = { ...uploadFile, ...updateObj };\n onSuccess && onSuccess(e, updatedUploadFile, fileList);\n onChange && onChange(updatedUploadFile, fileList);\n };\n\n const xhrOnError = (e: ProgressEvent, uploadFile: UploadFile): void => {\n const updateObj: Partial<UploadFile> = { status: 'error' };\n updateFileList(uploadFile, { status: 'error' });\n const updatedUploadFile = { ...uploadFile, ...updateObj };\n onError && onError(e, updatedUploadFile, fileList);\n onChange && onChange(updatedUploadFile, fileList);\n };\n\n const postRequest = (file: File): void => {\n // Create a upload file instance\n const uploadFile: UploadFile = {\n uid: 'file-' + Date.now() + '-' + Math.random().toString(36).slice(2, 9),\n name: file.name,\n status: 'ready',\n percent: 0,\n };\n setFileList((prevState) => [uploadFile, ...prevState]);\n\n httpRequest({\n headers,\n withCredentials,\n file,\n data,\n filename: name || file.name,\n method,\n action,\n onProgress: (percent: number) => xhrOnProgress(percent, uploadFile),\n onSuccess: (e: ProgressEvent) => xhrOnComplete(e, uploadFile),\n onError: (e: ProgressEvent) => xhrOnError(e, uploadFile),\n });\n };\n\n const uploadFiles = (files: FileList): void => {\n if (limit && fileList.length + files.length > limit) {\n onExceed && onExceed(files, fileList);\n return;\n }\n\n const postFiles = Array.from(files);\n postFiles.forEach((file) => {\n if (!beforeUpload) {\n postRequest(file);\n } else {\n const res = beforeUpload(file);\n if (res && res instanceof Promise) {\n res.then((processedFile: File) => postRequest(processedFile));\n } else if (res !== false) {\n postRequest(file);\n }\n }\n });\n };\n\n const handleTriggerOnClick = (): void => {\n if (!disabled) {\n if (fileRef.current) {\n (fileRef.current as HTMLInputElement).click();\n }\n }\n };\n\n const handleFileOnChange = (e: React.ChangeEvent<HTMLInputElement>): void => {\n const files = e.currentTarget.files;\n if (!files) {\n return;\n }\n uploadFiles(files);\n if (fileRef.current) {\n (fileRef.current as HTMLInputElement).value = '';\n }\n };\n\n const handleOnRemove = (uploadFile: UploadFile): void => {\n setFileList((prevState) => prevState.filter((file) => file.uid !== uploadFile.uid));\n onRemove && onRemove(uploadFile);\n };\n\n return (\n <>\n <div ref={ref} className={cls} style={style} onClick={handleTriggerOnClick}>\n {drag ? (\n <DraggerCover prefixCls={prefixCls} onFile={uploadFiles} disabled={disabled}>\n {children}\n </DraggerCover>\n ) : (\n children\n )}\n {tip && <div className={`${prefixCls}__tip`}>{tip}</div>}\n <input\n ref={fileRef}\n accept={accept}\n multiple={multiple}\n type=\"file\"\n style={{ display: 'none' }}\n onChange={handleFileOnChange}\n />\n </div>\n <UploadList prefixCls={prefixCls} fileList={fileList} onRemove={handleOnRemove} />\n </>\n );\n});\n\nUpload.displayName = 'Upload';\n\nexport default Upload;\n"],"mappings":";;;;;;;;;AASA,MAAM,SAAS,MAAM,YAAyC,OAAO,QAAQ;CAC3E,MAAM,EACJ,kBAAkB,EAAE,EACpB,cAAc,MACd,WAAW,OACX,SAAS,QACT,SACA,iBACA,QACA,QACA,UACA,MACA,MACA,MACA,cACA,OACA,UACA,YACA,WACA,SACA,UACA,UACA,KACA,WACA,OACA,UACA,WAAW,kBACT;CAEJ,MAAM,YAAY,aAAa,UADT,WAAW,cAAc,CACQ,WAAW,cAAc;CAChF,MAAM,MAAM,WAAW,WAAW,WAAW,GAC1C,GAAG,UAAU,aAAa,UAC5B,CAAC;CACF,MAAM,UAAU,OAAgC,KAAK;CACrD,MAAM,CAAC,UAAU,eAAe,SAC9B,cAAc,SAAS,MAAM,QAAQ,MAAM,SAAS,GAAG,MAAM,WAAW,gBACzE;CAED,MAAM,kBAAkB,YAAwB,cAAyC;AACvF,eAAa,cACX,UAAU,KAAK,SAAqB;AAClC,OAAI,KAAK,QAAQ,WAAW,IAC1B,QAAO;IAAE,GAAG;IAAM,GAAG;IAAW;OAEhC,QAAO;IAET,CACH;;CAGH,MAAM,iBAAiB,SAAiB,eAAiC;EACvE,MAAM,YAAiC;GAAE;GAAS,QAAQ;GAAa;AACvE,iBAAe,YAAY,UAAU;AACrC,gBAAc,WAAW,SAAS;GAAE,GAAG;GAAY,GAAG;GAAW,EAAE,SAAS;;CAG9E,MAAM,iBAAiB,GAAkB,eAAiC;EACxE,MAAM,YAAiC,EAAE,QAAQ,QAAQ;AACzD,iBAAe,YAAY,UAAU;EACrC,MAAM,oBAAoB;GAAE,GAAG;GAAY,GAAG;GAAW;AACzD,eAAa,UAAU,GAAG,mBAAmB,SAAS;AACtD,cAAY,SAAS,mBAAmB,SAAS;;CAGnD,MAAM,cAAc,GAAkB,eAAiC;EACrE,MAAM,YAAiC,EAAE,QAAQ,SAAS;AAC1D,iBAAe,YAAY,EAAE,QAAQ,SAAS,CAAC;EAC/C,MAAM,oBAAoB;GAAE,GAAG;GAAY,GAAG;GAAW;AACzD,aAAW,QAAQ,GAAG,mBAAmB,SAAS;AAClD,cAAY,SAAS,mBAAmB,SAAS;;CAGnD,MAAM,eAAe,SAAqB;EAExC,MAAM,aAAyB;GAC7B,KAAK,UAAU,KAAK,KAAK,GAAG,MAAM,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE;GACxE,MAAM,KAAK;GACX,QAAQ;GACR,SAAS;GACV;AACD,eAAa,cAAc,CAAC,YAAY,GAAG,UAAU,CAAC;AAEtD,cAAY;GACV;GACA;GACA;GACA;GACA,UAAU,QAAQ,KAAK;GACvB;GACA;GACA,aAAa,YAAoB,cAAc,SAAS,WAAW;GACnE,YAAY,MAAqB,cAAc,GAAG,WAAW;GAC7D,UAAU,MAAqB,WAAW,GAAG,WAAW;GACzD,CAAC;;CAGJ,MAAM,eAAe,UAA0B;AAC7C,MAAI,SAAS,SAAS,SAAS,MAAM,SAAS,OAAO;AACnD,eAAY,SAAS,OAAO,SAAS;AACrC;;AAGgB,QAAM,KAAK,MAAM,CACzB,SAAS,SAAS;AAC1B,OAAI,CAAC,aACH,aAAY,KAAK;QACZ;IACL,MAAM,MAAM,aAAa,KAAK;AAC9B,QAAI,OAAO,eAAe,QACxB,KAAI,MAAM,kBAAwB,YAAY,cAAc,CAAC;aACpD,QAAQ,MACjB,aAAY,KAAK;;IAGrB;;CAGJ,MAAM,6BAAmC;AACvC,MAAI,CAAC;OACC,QAAQ,QACT,SAAQ,QAA6B,OAAO;;;CAKnD,MAAM,sBAAsB,MAAiD;EAC3E,MAAM,QAAQ,EAAE,cAAc;AAC9B,MAAI,CAAC,MACH;AAEF,cAAY,MAAM;AAClB,MAAI,QAAQ,QACT,SAAQ,QAA6B,QAAQ;;CAIlD,MAAM,kBAAkB,eAAiC;AACvD,eAAa,cAAc,UAAU,QAAQ,SAAS,KAAK,QAAQ,WAAW,IAAI,CAAC;AACnF,cAAY,SAAS,WAAW;;AAGlC,QACE,qBAAA,UAAA,EAAA,UAAA,CACE,qBAAC,OAAD;EAAU;EAAK,WAAW;EAAY;EAAO,SAAS;YAAtD;GACG,OACC,oBAAC,cAAD;IAAyB;IAAW,QAAQ;IAAuB;IAChE;IACY,CAAA,GAEf;GAED,OAAO,oBAAC,OAAD;IAAK,WAAW,GAAG,UAAU;cAAS;IAAU,CAAA;GACxD,oBAAC,SAAD;IACE,KAAK;IACG;IACE;IACV,MAAK;IACL,OAAO,EAAE,SAAS,QAAQ;IAC1B,UAAU;IACV,CAAA;GACE;KACN,oBAAC,YAAD;EAAuB;EAAqB;EAAU,UAAU;EAAkB,CAAA,CACjF,EAAA,CAAA;EAEL;AAEF,OAAO,cAAc"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.js");
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_runtime.__toESM(react);
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
//#region src/_utils/components.tsx
|
|
6
|
+
const ArrowDown = (props) => {
|
|
7
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
8
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
9
|
+
...otherProps,
|
|
10
|
+
width: size,
|
|
11
|
+
height: size,
|
|
12
|
+
viewBox: "0 0 1024 1024",
|
|
13
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
14
|
+
fill: color,
|
|
15
|
+
d: "M472.064 751.552 72.832 352.32c-22.08-22.08-22.08-57.792 0-79.872 22.016-22.016 57.792-22.08 79.872 0L512 631.744l359.296-359.296c22.016-22.016 57.792-22.08 79.872 0 22.08 22.08 22.016 57.792 0 79.872l-399.232 399.232C529.856 773.568 494.144 773.568 472.064 751.552z"
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
const PaperClip = (props) => {
|
|
20
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
21
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
22
|
+
...otherProps,
|
|
23
|
+
width: size,
|
|
24
|
+
height: size,
|
|
25
|
+
viewBox: "0 0 1024 1024",
|
|
26
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
27
|
+
fill: color,
|
|
28
|
+
d: "M596.600738 77.483387C707.652076-15.699749 863.952233-17.103951 945.87122 80.523296 1025.33565 175.225316 1000.817463 322.788809 897.886159 416.55918L500.872884 750.033876C428.941403 810.391556 330.343483 819.035113 279.34144 758.253245 228.350653 697.484792 254.004524 601.845857 325.904469 541.51464L549.255103 354.101205C568.4844 337.965909 597.16161 340.484261 613.234234 359.638868L613.234234 359.638868C629.339635 378.832538 626.827441 407.455341 607.577908 423.607617L384.227274 611.021052C346.503334 642.675196 335.433548 683.943896 348.847852 699.93044 362.276678 715.934291 404.796072 712.206837 442.550079 680.527464L829.892107 355.508911C905.161842 292.350105 923.282829 194.760822 876.364807 138.846101 829.422073 82.901929 730.238566 83.792991 654.923543 146.9898L207.957862 522.038537C112.028875 602.532515 99.523634 745.608046 180.046565 841.571538 260.588409 937.557569 403.622296 950.081865 499.571887 869.570599L901.909406 531.969334C921.04904 515.909275 949.653556 518.488625 965.72618 537.643231L965.72618 537.643231C981.831581 556.836901 979.334768 585.446798 960.232211 601.475747L557.894692 939.077011C423.555518 1051.800962 223.290899 1034.265449 110.540153 899.894342 0.612214 768.887326 14.525852 575.161364 139.830689 461.101188L596.600738 77.483387Z"
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
const CheckCircle = (props) => {
|
|
33
|
+
const { size = 20, color = "#52c41a", ...otherProps } = props;
|
|
34
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
35
|
+
...otherProps,
|
|
36
|
+
width: size,
|
|
37
|
+
height: size,
|
|
38
|
+
viewBox: "0 0 1024 1024",
|
|
39
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
40
|
+
fill: color,
|
|
41
|
+
d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m193.5 301.7l-210.6 292c-12.7 17.7-39 17.7-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const CloseCircle = (props) => {
|
|
46
|
+
const { size = 20, color = "#f44336", ...otherProps } = props;
|
|
47
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
48
|
+
...otherProps,
|
|
49
|
+
width: size,
|
|
50
|
+
height: size,
|
|
51
|
+
viewBox: "0 0 1024 1024",
|
|
52
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
53
|
+
fill: color,
|
|
54
|
+
d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m165.4 618.2l-66-0.3L512 563.4l-99.3 118.4-66.1 0.3c-4.4 0-8-3.5-8-8 0-1.9 0.7-3.7 1.9-5.2l130.1-155L340.5 359c-1.2-1.5-1.9-3.3-1.9-5.2 0-4.4 3.6-8 8-8l66.1 0.3L512 464.6l99.3-118.4 66-0.3c4.4 0 8 3.5 8 8 0 1.9-0.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
const WarningCircle = (props) => {
|
|
59
|
+
const { size = 20, color = "#ff9800", ...otherProps } = props;
|
|
60
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
61
|
+
...otherProps,
|
|
62
|
+
width: size,
|
|
63
|
+
height: size,
|
|
64
|
+
viewBox: "0 0 1024 1024",
|
|
65
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
66
|
+
fill: color,
|
|
67
|
+
d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296z m32 440c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"
|
|
68
|
+
})
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
const InfoCircle = (props) => {
|
|
72
|
+
const { size = 20, color = "#1890ff", ...otherProps } = props;
|
|
73
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
74
|
+
...otherProps,
|
|
75
|
+
width: size,
|
|
76
|
+
height: size,
|
|
77
|
+
viewBox: "0 0 1024 1024",
|
|
78
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
79
|
+
fill: color,
|
|
80
|
+
d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272z m-32-344c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"
|
|
81
|
+
})
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
const LoadingCircle = (props) => {
|
|
85
|
+
const { size = 20, color = "#1890ff", ...otherProps } = props;
|
|
86
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
87
|
+
...otherProps,
|
|
88
|
+
width: size,
|
|
89
|
+
height: size,
|
|
90
|
+
viewBox: "0 0 1024 1024",
|
|
91
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
92
|
+
fill: color,
|
|
93
|
+
d: "M512.064 963.296c-96.16 0-189.344-30.816-267.68-89.472-95.744-71.712-157.856-176.48-174.848-294.912C52.544 460.448 82.688 342.464 154.4 246.688c148.096-197.76 429.44-238.08 627.136-90.08 82.88 62.08 142.016 151.584 166.56 252 4.192 17.184-6.336 34.496-23.488 38.688-17.152 4.064-34.496-6.304-38.688-23.488-20.992-86.048-71.68-162.752-142.752-215.968-169.376-126.88-410.56-92.288-537.536 77.216-61.472 82.08-87.296 183.2-72.704 284.736 14.56 101.536 67.808 191.296 149.888 252.736 169.536 127.04 410.688 92.384 537.6-77.12 33.216-44.384 56-94.112 67.648-147.84 3.776-17.28 20.896-28.256 38.048-24.512 17.28 3.744 28.256 20.8 24.512 38.048-13.664 62.784-40.224 120.832-78.976 172.672-71.712 95.744-176.48 157.888-294.976 174.848a449.402 449.402 0 0 1-64.608 4.672z"
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
const Check = (props) => {
|
|
98
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
99
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
100
|
+
...otherProps,
|
|
101
|
+
width: size,
|
|
102
|
+
height: size,
|
|
103
|
+
viewBox: "0 0 1024 1024",
|
|
104
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
105
|
+
fill: color,
|
|
106
|
+
d: "M887.904 298.208c-12.864-12.064-33.152-11.488-45.216 1.408L415.936 753.984l-233.12-229.696c-12.608-12.416-32.864-12.288-45.28 0.32-12.416 12.576-12.256 32.864 0.352 45.248l256.48 252.672c0.096 0.096 0.224 0.128 0.32 0.224s0.128 0.224 0.224 0.32c2.016 1.92 4.448 3.008 6.784 4.288 1.152 0.672 2.144 1.664 3.36 2.144 3.776 1.472 7.776 2.24 11.744 2.24 4.192 0 8.384-0.832 12.288-2.496 1.312-0.544 2.336-1.664 3.552-2.368 2.4-1.408 4.896-2.592 6.944-4.672 0.096-0.096 0.128-0.256 0.224-0.352 0.064-0.096 0.192-0.128 0.288-0.224L889.28 343.424c12.16-12.832 11.488-33.088-1.376-45.216z"
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
const Close = (props) => {
|
|
111
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
112
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
113
|
+
...otherProps,
|
|
114
|
+
width: size,
|
|
115
|
+
height: size,
|
|
116
|
+
viewBox: "0 0 1024 1024",
|
|
117
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
118
|
+
fill: color,
|
|
119
|
+
d: "M782.426059 824.924989l-584.588225-584.727395c-11.987009-11.990079-11.984962-31.42778 0.005116-43.414789 11.990079-11.987009 31.42778-11.984962 43.414789 0.005117l584.588225 584.727395c11.987009 11.990079 11.984962 31.42778-0.005116 43.414788-11.989055 11.988032-31.42778 11.984962-43.414789-0.005116z"
|
|
120
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
121
|
+
fill: color,
|
|
122
|
+
d: "M197.768249 824.856427c-11.987009-11.990079-11.984962-31.42778 0.005117-43.414788l584.727394-584.589249c11.990079-11.987009 31.42778-11.984962 43.414789 0.005117 11.987009 11.990079 11.984962 31.42778-0.005116 43.414788l-584.727395 584.589249c-11.990079 11.987009-31.42778 11.984962-43.414789-0.005117z"
|
|
123
|
+
})]
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
const Eye = (props) => {
|
|
127
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
128
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
129
|
+
...otherProps,
|
|
130
|
+
width: size,
|
|
131
|
+
height: size,
|
|
132
|
+
viewBox: "0 0 1024 1024",
|
|
133
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
134
|
+
fill: color,
|
|
135
|
+
d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3-7.7 16.2-7.7 35.2 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z"
|
|
136
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
137
|
+
fill: color,
|
|
138
|
+
d: "M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176z m0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"
|
|
139
|
+
})]
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
const EyeClose = (props) => {
|
|
143
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
144
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
145
|
+
...otherProps,
|
|
146
|
+
width: size,
|
|
147
|
+
height: size,
|
|
148
|
+
viewBox: "0 0 1024 1024",
|
|
149
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
150
|
+
fill: color,
|
|
151
|
+
d: "M942.3 486.4l-0.1-0.1-0.1-0.1c-36.4-76.7-80-138.7-130.7-186L760.7 351c43.7 40.2 81.5 93.7 114.1 160.9C791.5 684.2 673.4 766 512 766c-51.3 0-98.3-8.3-141.2-25.1l-54.7 54.7C374.6 823.8 439.8 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0.1-51.3zM878.3 154.2l-42.4-42.4c-3.1-3.1-8.2-3.1-11.3 0L707.8 228.5C649.4 200.2 584.2 186 512 186c-192.2 0-335.4 100.5-430.2 300.3v0.1c-7.7 16.2-7.7 35.2 0 51.5 36.4 76.7 80 138.7 130.7 186.1L111.8 824.5c-3.1 3.1-3.1 8.2 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0l712.8-712.8c3.1-3 3.1-8.1 0-11.2zM398.9 537.4c-1.9-8.2-2.9-16.7-2.9-25.4 0-61.9 50.1-112 112-112 8.7 0 17.3 1 25.4 2.9L398.9 537.4z m184.5-184.5C560.5 342.1 535 336 508 336c-97.2 0-176 78.8-176 176 0 27 6.1 52.5 16.9 75.4L263.3 673c-43.7-40.2-81.5-93.7-114.1-160.9C232.6 339.8 350.7 258 512 258c51.3 0 98.3 8.3 141.2 25.1l-69.8 69.8z"
|
|
152
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
153
|
+
fill: color,
|
|
154
|
+
d: "M508 624c-6.4 0-12.7-0.5-18.8-1.6l-51.1 51.1c21.4 9.3 45.1 14.4 69.9 14.4 97.2 0 176-78.8 176-176 0-24.8-5.1-48.5-14.4-69.9l-51.1 51.1c1 6.1 1.6 12.4 1.6 18.8C620 573.9 569.9 624 508 624z"
|
|
155
|
+
})]
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
const ClockIcon = (props) => {
|
|
159
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
160
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
161
|
+
...otherProps,
|
|
162
|
+
width: size,
|
|
163
|
+
height: size,
|
|
164
|
+
viewBox: "64 64 896 896",
|
|
165
|
+
fill: color,
|
|
166
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" })]
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
const CalendarIcon = (props) => {
|
|
170
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
171
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
172
|
+
...otherProps,
|
|
173
|
+
width: size,
|
|
174
|
+
height: size,
|
|
175
|
+
viewBox: "64 64 896 896",
|
|
176
|
+
fill: color,
|
|
177
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z" })
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
const ClearIcon = (props) => {
|
|
181
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
182
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
183
|
+
...otherProps,
|
|
184
|
+
width: size,
|
|
185
|
+
height: size,
|
|
186
|
+
viewBox: "64 64 896 896",
|
|
187
|
+
fill: color,
|
|
188
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" })
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
const TreeArrow = (props) => {
|
|
192
|
+
const { size = 20, color = "currentcolor", ...otherProps } = props;
|
|
193
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
194
|
+
...otherProps,
|
|
195
|
+
width: size,
|
|
196
|
+
height: size,
|
|
197
|
+
viewBox: "0 0 1024 1024",
|
|
198
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
199
|
+
fill: color,
|
|
200
|
+
d: "M726.652801 429.305603 297.347199 429.305603 512.193405 638.156258Z"
|
|
201
|
+
})
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
//#endregion
|
|
205
|
+
exports.ArrowDown = ArrowDown;
|
|
206
|
+
exports.CalendarIcon = CalendarIcon;
|
|
207
|
+
exports.Check = Check;
|
|
208
|
+
exports.CheckCircle = CheckCircle;
|
|
209
|
+
exports.ClearIcon = ClearIcon;
|
|
210
|
+
exports.ClockIcon = ClockIcon;
|
|
211
|
+
exports.Close = Close;
|
|
212
|
+
exports.CloseCircle = CloseCircle;
|
|
213
|
+
exports.Eye = Eye;
|
|
214
|
+
exports.EyeClose = EyeClose;
|
|
215
|
+
exports.InfoCircle = InfoCircle;
|
|
216
|
+
exports.LoadingCircle = LoadingCircle;
|
|
217
|
+
exports.PaperClip = PaperClip;
|
|
218
|
+
exports.TreeArrow = TreeArrow;
|
|
219
|
+
exports.WarningCircle = WarningCircle;
|
|
220
|
+
|
|
221
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","names":[],"sources":["../../src/_utils/components.tsx"],"sourcesContent":["import React from 'react';\n\ntype IconProps = {\n className?: string;\n style?: React.CSSProperties;\n size?: number | string;\n color?: string;\n};\nexport const ArrowDown = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M472.064 751.552 72.832 352.32c-22.08-22.08-22.08-57.792 0-79.872 22.016-22.016 57.792-22.08 79.872 0L512 631.744l359.296-359.296c22.016-22.016 57.792-22.08 79.872 0 22.08 22.08 22.016 57.792 0 79.872l-399.232 399.232C529.856 773.568 494.144 773.568 472.064 751.552z\"\n />\n </svg>\n );\n};\n\nexport const PaperClip = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M596.600738 77.483387C707.652076-15.699749 863.952233-17.103951 945.87122 80.523296 1025.33565 175.225316 1000.817463 322.788809 897.886159 416.55918L500.872884 750.033876C428.941403 810.391556 330.343483 819.035113 279.34144 758.253245 228.350653 697.484792 254.004524 601.845857 325.904469 541.51464L549.255103 354.101205C568.4844 337.965909 597.16161 340.484261 613.234234 359.638868L613.234234 359.638868C629.339635 378.832538 626.827441 407.455341 607.577908 423.607617L384.227274 611.021052C346.503334 642.675196 335.433548 683.943896 348.847852 699.93044 362.276678 715.934291 404.796072 712.206837 442.550079 680.527464L829.892107 355.508911C905.161842 292.350105 923.282829 194.760822 876.364807 138.846101 829.422073 82.901929 730.238566 83.792991 654.923543 146.9898L207.957862 522.038537C112.028875 602.532515 99.523634 745.608046 180.046565 841.571538 260.588409 937.557569 403.622296 950.081865 499.571887 869.570599L901.909406 531.969334C921.04904 515.909275 949.653556 518.488625 965.72618 537.643231L965.72618 537.643231C981.831581 556.836901 979.334768 585.446798 960.232211 601.475747L557.894692 939.077011C423.555518 1051.800962 223.290899 1034.265449 110.540153 899.894342 0.612214 768.887326 14.525852 575.161364 139.830689 461.101188L596.600738 77.483387Z\"\n />\n </svg>\n );\n};\n\nexport const CheckCircle = (props: IconProps): React.ReactElement => {\n const { size = 20, color = '#52c41a', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m193.5 301.7l-210.6 292c-12.7 17.7-39 17.7-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z\"\n />\n </svg>\n );\n};\n\nexport const CloseCircle = (props: IconProps): React.ReactElement => {\n const { size = 20, color = '#f44336', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m165.4 618.2l-66-0.3L512 563.4l-99.3 118.4-66.1 0.3c-4.4 0-8-3.5-8-8 0-1.9 0.7-3.7 1.9-5.2l130.1-155L340.5 359c-1.2-1.5-1.9-3.3-1.9-5.2 0-4.4 3.6-8 8-8l66.1 0.3L512 464.6l99.3-118.4 66-0.3c4.4 0 8 3.5 8 8 0 1.9-0.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z\"\n />\n </svg>\n );\n};\n\nexport const WarningCircle = (props: IconProps): React.ReactElement => {\n const { size = 20, color = '#ff9800', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296z m32 440c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z\"\n />\n </svg>\n );\n};\n\nexport const InfoCircle = (props: IconProps): React.ReactElement => {\n const { size = 20, color = '#1890ff', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272z m-32-344c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z\"\n />\n </svg>\n );\n};\n\nexport const LoadingCircle = (props: IconProps): React.ReactElement => {\n const { size = 20, color = '#1890ff', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M512.064 963.296c-96.16 0-189.344-30.816-267.68-89.472-95.744-71.712-157.856-176.48-174.848-294.912C52.544 460.448 82.688 342.464 154.4 246.688c148.096-197.76 429.44-238.08 627.136-90.08 82.88 62.08 142.016 151.584 166.56 252 4.192 17.184-6.336 34.496-23.488 38.688-17.152 4.064-34.496-6.304-38.688-23.488-20.992-86.048-71.68-162.752-142.752-215.968-169.376-126.88-410.56-92.288-537.536 77.216-61.472 82.08-87.296 183.2-72.704 284.736 14.56 101.536 67.808 191.296 149.888 252.736 169.536 127.04 410.688 92.384 537.6-77.12 33.216-44.384 56-94.112 67.648-147.84 3.776-17.28 20.896-28.256 38.048-24.512 17.28 3.744 28.256 20.8 24.512 38.048-13.664 62.784-40.224 120.832-78.976 172.672-71.712 95.744-176.48 157.888-294.976 174.848a449.402 449.402 0 0 1-64.608 4.672z\"\n />\n </svg>\n );\n};\n\nexport const QuestionCircle = (props: IconProps): React.ReactElement => {\n const { size = 20, color = '#ff9800', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z m62.9-219.5c-18.5 7.1-30.9 25.1-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z\"\n />\n </svg>\n );\n};\n\nexport const Check = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M887.904 298.208c-12.864-12.064-33.152-11.488-45.216 1.408L415.936 753.984l-233.12-229.696c-12.608-12.416-32.864-12.288-45.28 0.32-12.416 12.576-12.256 32.864 0.352 45.248l256.48 252.672c0.096 0.096 0.224 0.128 0.32 0.224s0.128 0.224 0.224 0.32c2.016 1.92 4.448 3.008 6.784 4.288 1.152 0.672 2.144 1.664 3.36 2.144 3.776 1.472 7.776 2.24 11.744 2.24 4.192 0 8.384-0.832 12.288-2.496 1.312-0.544 2.336-1.664 3.552-2.368 2.4-1.408 4.896-2.592 6.944-4.672 0.096-0.096 0.128-0.256 0.224-0.352 0.064-0.096 0.192-0.128 0.288-0.224L889.28 343.424c12.16-12.832 11.488-33.088-1.376-45.216z\"\n />\n </svg>\n );\n};\n\nexport const Close = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M782.426059 824.924989l-584.588225-584.727395c-11.987009-11.990079-11.984962-31.42778 0.005116-43.414789 11.990079-11.987009 31.42778-11.984962 43.414789 0.005117l584.588225 584.727395c11.987009 11.990079 11.984962 31.42778-0.005116 43.414788-11.989055 11.988032-31.42778 11.984962-43.414789-0.005116z\"\n />\n <path\n fill={color}\n d=\"M197.768249 824.856427c-11.987009-11.990079-11.984962-31.42778 0.005117-43.414788l584.727394-584.589249c11.990079-11.987009 31.42778-11.984962 43.414789 0.005117 11.987009 11.990079 11.984962 31.42778-0.005116 43.414788l-584.727395 584.589249c-11.990079 11.987009-31.42778 11.984962-43.414789-0.005117z\"\n />\n </svg>\n );\n};\n\nexport const Eye = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3-7.7 16.2-7.7 35.2 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z\"\n />\n <path\n fill={color}\n d=\"M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176z m0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z\"\n />\n </svg>\n );\n};\n\nexport const EyeClose = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path\n fill={color}\n d=\"M942.3 486.4l-0.1-0.1-0.1-0.1c-36.4-76.7-80-138.7-130.7-186L760.7 351c43.7 40.2 81.5 93.7 114.1 160.9C791.5 684.2 673.4 766 512 766c-51.3 0-98.3-8.3-141.2-25.1l-54.7 54.7C374.6 823.8 439.8 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0.1-51.3zM878.3 154.2l-42.4-42.4c-3.1-3.1-8.2-3.1-11.3 0L707.8 228.5C649.4 200.2 584.2 186 512 186c-192.2 0-335.4 100.5-430.2 300.3v0.1c-7.7 16.2-7.7 35.2 0 51.5 36.4 76.7 80 138.7 130.7 186.1L111.8 824.5c-3.1 3.1-3.1 8.2 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0l712.8-712.8c3.1-3 3.1-8.1 0-11.2zM398.9 537.4c-1.9-8.2-2.9-16.7-2.9-25.4 0-61.9 50.1-112 112-112 8.7 0 17.3 1 25.4 2.9L398.9 537.4z m184.5-184.5C560.5 342.1 535 336 508 336c-97.2 0-176 78.8-176 176 0 27 6.1 52.5 16.9 75.4L263.3 673c-43.7-40.2-81.5-93.7-114.1-160.9C232.6 339.8 350.7 258 512 258c51.3 0 98.3 8.3 141.2 25.1l-69.8 69.8z\"\n />\n <path\n fill={color}\n d=\"M508 624c-6.4 0-12.7-0.5-18.8-1.6l-51.1 51.1c21.4 9.3 45.1 14.4 69.9 14.4 97.2 0 176-78.8 176-176 0-24.8-5.1-48.5-14.4-69.9l-51.1 51.1c1 6.1 1.6 12.4 1.6 18.8C620 573.9 569.9 624 508 624z\"\n />\n </svg>\n );\n};\n\nexport const ClockIcon = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"64 64 896 896\" fill={color}>\n <path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" />\n <path d=\"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z\" />\n </svg>\n );\n};\n\nexport const CalendarIcon = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"64 64 896 896\" fill={color}>\n <path d=\"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z\" />\n </svg>\n );\n};\n\nexport const ClearIcon = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"64 64 896 896\" fill={color}>\n <path d=\"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z\" />\n </svg>\n );\n};\n\nexport const TreeArrow = (props: IconProps): React.ReactElement => {\n const { size = 20, color = 'currentcolor', ...otherProps } = props;\n return (\n <svg {...otherProps} width={size} height={size} viewBox=\"0 0 1024 1024\">\n <path fill={color} d=\"M726.652801 429.305603 297.347199 429.305603 512.193405 638.156258Z\" />\n </svg>\n );\n};\n"],"mappings":";;;;;AAQA,MAAa,aAAa,UAAyC;CACjE,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YACtD,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA;EACE,CAAA;;AAIV,MAAa,aAAa,UAAyC;CACjE,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YACtD,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA;EACE,CAAA;;AAIV,MAAa,eAAe,UAAyC;CACnE,MAAM,EAAE,OAAO,IAAI,QAAQ,WAAW,GAAG,eAAe;AACxD,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YACtD,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA;EACE,CAAA;;AAIV,MAAa,eAAe,UAAyC;CACnE,MAAM,EAAE,OAAO,IAAI,QAAQ,WAAW,GAAG,eAAe;AACxD,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YACtD,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA;EACE,CAAA;;AAIV,MAAa,iBAAiB,UAAyC;CACrE,MAAM,EAAE,OAAO,IAAI,QAAQ,WAAW,GAAG,eAAe;AACxD,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YACtD,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA;EACE,CAAA;;AAIV,MAAa,cAAc,UAAyC;CAClE,MAAM,EAAE,OAAO,IAAI,QAAQ,WAAW,GAAG,eAAe;AACxD,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YACtD,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA;EACE,CAAA;;AAIV,MAAa,iBAAiB,UAAyC;CACrE,MAAM,EAAE,OAAO,IAAI,QAAQ,WAAW,GAAG,eAAe;AACxD,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YACtD,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA;EACE,CAAA;;AAgBV,MAAa,SAAS,UAAyC;CAC7D,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YACtD,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA;EACE,CAAA;;AAIV,MAAa,SAAS,UAAyC;CAC7D,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YAAxD,CACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA,EACF,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA,CACE;;;AAIV,MAAa,OAAO,UAAyC;CAC3D,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YAAxD,CACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA,EACF,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA,CACE;;;AAIV,MAAa,YAAY,UAAyC;CAChE,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YAAxD,CACE,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA,EACF,iBAAA,GAAA,kBAAA,KAAC,QAAD;GACE,MAAM;GACN,GAAE;GACF,CAAA,CACE;;;AAIV,MAAa,aAAa,UAAyC;CACjE,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,MAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;EAAgB,MAAM;YAA9E,CACE,iBAAA,GAAA,kBAAA,KAAC,QAAD,EAAM,GAAE,iLAAkL,CAAA,EAC1L,iBAAA,GAAA,kBAAA,KAAC,QAAD,EAAM,GAAE,sKAAuK,CAAA,CAC3K;;;AAIV,MAAa,gBAAgB,UAAyC;CACpE,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;EAAgB,MAAM;YAC5E,iBAAA,GAAA,kBAAA,KAAC,QAAD,EAAM,GAAE,8VAA+V,CAAA;EACnW,CAAA;;AAIV,MAAa,aAAa,UAAyC;CACjE,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;EAAgB,MAAM;YAC5E,iBAAA,GAAA,kBAAA,KAAC,QAAD,EAAM,GAAE,2WAA4W,CAAA;EAChX,CAAA;;AAIV,MAAa,aAAa,UAAyC;CACjE,MAAM,EAAE,OAAO,IAAI,QAAQ,gBAAgB,GAAG,eAAe;AAC7D,QACE,iBAAA,GAAA,kBAAA,KAAC,OAAD;EAAK,GAAI;EAAY,OAAO;EAAM,QAAQ;EAAM,SAAQ;YACtD,iBAAA,GAAA,kBAAA,KAAC,QAAD;GAAM,MAAM;GAAO,GAAE;GAAwE,CAAA;EACzF,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/_utils/dom.ts
|
|
2
|
+
const getScroll = (node, isVertical = true) => {
|
|
3
|
+
if (typeof window === "undefined") return 0;
|
|
4
|
+
const windowProp = isVertical ? "scrollY" : "scrollX";
|
|
5
|
+
const elementProp = isVertical ? "scrollTop" : "scrollLeft";
|
|
6
|
+
return node === window ? node[windowProp] : node[elementProp];
|
|
7
|
+
};
|
|
8
|
+
const getRect = (node = window) => {
|
|
9
|
+
return node !== window ? node.getBoundingClientRect() : {
|
|
10
|
+
top: 0,
|
|
11
|
+
left: 0,
|
|
12
|
+
bottom: 0,
|
|
13
|
+
right: 0,
|
|
14
|
+
width: window.document.documentElement.clientWidth,
|
|
15
|
+
height: window.document.documentElement.clientHeight
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
const getNodeHeight = (node) => {
|
|
19
|
+
if (!node) return 0;
|
|
20
|
+
if (node === window) return window.innerHeight;
|
|
21
|
+
return node.clientHeight;
|
|
22
|
+
};
|
|
23
|
+
const getNodeScrollHeight = (node) => {
|
|
24
|
+
if (!node) return 0;
|
|
25
|
+
if (node === window) return window.document.documentElement.scrollHeight;
|
|
26
|
+
return node.scrollHeight;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.getNodeHeight = getNodeHeight;
|
|
30
|
+
exports.getNodeScrollHeight = getNodeScrollHeight;
|
|
31
|
+
exports.getRect = getRect;
|
|
32
|
+
exports.getScroll = getScroll;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=dom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom.js","names":[],"sources":["../../src/_utils/dom.ts"],"sourcesContent":["export type Target = HTMLElement | Window;\n\nexport const getScroll = (node: Target, isVertical = true): number => {\n if (typeof window === 'undefined') {\n return 0;\n }\n const windowProp = isVertical ? 'scrollY' : 'scrollX';\n const elementProp = isVertical ? 'scrollTop' : 'scrollLeft';\n return node === window ? (node as Window)[windowProp] : (node as HTMLElement)[elementProp];\n};\n\nexport const getRect = (node: Target = window) => {\n return node !== window\n ? (node as HTMLElement).getBoundingClientRect()\n : {\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n width: window.document.documentElement.clientWidth,\n height: window.document.documentElement.clientHeight,\n };\n};\n\n/**\n * Get element absolute position relative to the root\n * @param node\n */\nexport const getAbsolutePosition = (node: Target = window): { x: number; y: number } => {\n if (node === window) {\n return { x: 0, y: 0 };\n }\n const x =\n (node as HTMLElement).getBoundingClientRect().left + document.documentElement.scrollLeft;\n const y = (node as HTMLElement).getBoundingClientRect().top + document.documentElement.scrollTop;\n return { x, y };\n};\n\nexport const getNodeHeight = (node: Target): number => {\n if (!node) {\n return 0;\n }\n if (node === window) {\n return window.innerHeight;\n }\n return (node as HTMLElement).clientHeight;\n};\n\nexport const getNodeScrollHeight = (node: Target): number => {\n if (!node) {\n return 0;\n }\n\n if (node === window) {\n return window.document.documentElement.scrollHeight;\n }\n return (node as HTMLElement).scrollHeight;\n};\n"],"mappings":";AAEA,MAAa,aAAa,MAAc,aAAa,SAAiB;AACpE,KAAI,OAAO,WAAW,YACpB,QAAO;CAET,MAAM,aAAa,aAAa,YAAY;CAC5C,MAAM,cAAc,aAAa,cAAc;AAC/C,QAAO,SAAS,SAAU,KAAgB,cAAe,KAAqB;;AAGhF,MAAa,WAAW,OAAe,WAAW;AAChD,QAAO,SAAS,SACX,KAAqB,uBAAuB,GAC7C;EACE,KAAK;EACL,MAAM;EACN,QAAQ;EACR,OAAO;EACP,OAAO,OAAO,SAAS,gBAAgB;EACvC,QAAQ,OAAO,SAAS,gBAAgB;EACzC;;AAiBP,MAAa,iBAAiB,SAAyB;AACrD,KAAI,CAAC,KACH,QAAO;AAET,KAAI,SAAS,OACX,QAAO,OAAO;AAEhB,QAAQ,KAAqB;;AAG/B,MAAa,uBAAuB,SAAyB;AAC3D,KAAI,CAAC,KACH,QAAO;AAGT,KAAI,SAAS,OACX,QAAO,OAAO,SAAS,gBAAgB;AAEzC,QAAQ,KAAqB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/_utils/general.ts
|
|
2
|
+
/**
|
|
3
|
+
* Transfer camel char to dash format
|
|
4
|
+
* @param str
|
|
5
|
+
*/
|
|
6
|
+
const camelCaseToDash = (str) => {
|
|
7
|
+
return str.replace(/[A-Z]/g, (word) => {
|
|
8
|
+
return "-" + word.toLowerCase();
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Get class name from combining context prefix and customised class
|
|
13
|
+
* @param suffixCls
|
|
14
|
+
* @param contextPrefix
|
|
15
|
+
* @param customisedCls
|
|
16
|
+
*/
|
|
17
|
+
const getPrefixCls = (suffixCls, contextPrefix, customisedCls) => {
|
|
18
|
+
if (customisedCls) return customisedCls;
|
|
19
|
+
return contextPrefix ? `${contextPrefix}-${suffixCls}` : `ty-${suffixCls}`;
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.camelCaseToDash = camelCaseToDash;
|
|
23
|
+
exports.getPrefixCls = getPrefixCls;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=general.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general.js","names":[],"sources":["../../src/_utils/general.ts"],"sourcesContent":["/**\n * Check whether the target is in the array\n * @param target\n * @param array\n */\nexport const isOneOf = (target: string, array: string | string[]) => {\n if (Array.isArray(array)) {\n return array.includes(target);\n }\n\n return array === target;\n};\n\n/**\n * Transfer camel char to dash format\n * @param str\n */\nexport const camelCaseToDash = (str: string) => {\n const regex = /[A-Z]/g;\n return str.replace(regex, (word: string) => {\n return '-' + word.toLowerCase();\n });\n};\n\n/**\n * Covert hex color to rgb color including alpha channel\n * @param color: hex color\n * @param opacity: max 1\n */\nexport const convertHexToRGBA = (color: string, opacity = 1): string => {\n if (/^#[0-9A-F]{6}$/i.test(color)) {\n const hex = color.replace('#', '');\n const r = parseInt(hex.substring(0, 2), 16);\n const g = parseInt(hex.substring(2, 4), 16);\n const b = parseInt(hex.substring(4, 6), 16);\n\n return `rgba(${r},${g},${b},${opacity})`;\n }\n return color;\n};\n\n/**\n * Get class name from combining context prefix and customised class\n * @param suffixCls\n * @param contextPrefix\n * @param customisedCls\n */\nexport const getPrefixCls = (suffixCls: string, contextPrefix?: string, customisedCls?: string): string => {\n if (customisedCls) {\n return customisedCls;\n }\n return contextPrefix ? `${contextPrefix}-${suffixCls}` : `ty-${suffixCls}`;\n};\n"],"mappings":";;;;;AAiBA,MAAa,mBAAmB,QAAgB;AAE9C,QAAO,IAAI,QADG,WACa,SAAiB;AAC1C,SAAO,MAAM,KAAK,aAAa;GAC/B;;;;;;;;AA0BJ,MAAa,gBAAgB,WAAmB,eAAwB,kBAAmC;AACzG,KAAI,cACF,QAAO;AAET,QAAO,gBAAgB,GAAG,cAAc,GAAG,cAAc,MAAM"}
|