tntd 2.8.0-beta.2 → 2.8.0-beta.20
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/affix/index.js +1 -1
- package/es/affix/index.js.map +1 -1
- package/es/affix/style/index.js +2 -0
- package/es/affix/style/index.js.map +1 -0
- package/es/affix/style/index.less +6 -0
- package/es/alert/index.js +1 -1
- package/es/alert/index.js.map +1 -1
- package/es/alert/style/index.js +2 -0
- package/es/alert/style/index.js.map +1 -0
- package/es/alert/style/index.less +188 -0
- package/es/anchor/index.js +1 -1
- package/es/anchor/index.js.map +1 -1
- package/es/anchor/style/index.js +4 -0
- package/es/anchor/style/index.js.map +1 -0
- package/es/anchor/style/index.less +82 -0
- package/es/array-input/index.js +57 -42
- package/es/array-input/index.js.map +1 -1
- package/es/array-input/index.less +4 -1
- package/es/auto-complete/index.js +1 -1
- package/es/auto-complete/index.js.map +1 -1
- package/es/auto-complete/style/index.js +5 -0
- package/es/auto-complete/style/index.js.map +1 -0
- package/es/auto-complete/style/index.less +92 -0
- package/es/avatar/index.js +1 -1
- package/es/avatar/index.js.map +1 -1
- package/es/avatar/style/index.js +2 -0
- package/es/avatar/style/index.js.map +1 -0
- package/es/avatar/style/index.less +59 -0
- package/es/back-top/index.js +1 -1
- package/es/back-top/index.js.map +1 -1
- package/es/back-top/style/index.js +2 -0
- package/es/back-top/style/index.js.map +1 -0
- package/es/back-top/style/index.less +42 -0
- package/es/back-top/style/responsive.less +11 -0
- package/es/badge/index.js +1 -1
- package/es/badge/index.js.map +1 -1
- package/es/badge/style/index.js +2 -0
- package/es/badge/style/index.js.map +1 -0
- package/es/badge/style/index.less +190 -0
- package/es/breadcrumb/index.js +1 -1
- package/es/breadcrumb/index.js.map +1 -1
- package/es/breadcrumb/style/index.js +4 -0
- package/es/breadcrumb/style/index.js.map +1 -0
- package/es/breadcrumb/style/index.less +52 -0
- package/es/button/button.less +7 -0
- package/es/button/index.js +2 -1
- package/es/button/index.js.map +1 -1
- package/es/button/style/index.js +2 -0
- package/es/button/style/index.js.map +1 -0
- package/es/button/style/index.less +224 -0
- package/es/button/style/mixin.less +357 -0
- package/es/calendar/index.js +1 -1
- package/es/calendar/index.js.map +1 -1
- package/es/calendar/style/index.js +5 -0
- package/es/calendar/style/index.js.map +1 -0
- package/es/calendar/style/index.less +278 -0
- package/es/card/index.js +1 -1
- package/es/card/index.js.map +1 -1
- package/es/card/style/index.js +6 -0
- package/es/card/style/index.js.map +1 -0
- package/es/card/style/index.less +263 -0
- package/es/card/style/size.less +25 -0
- package/es/carousel/index.js +1 -1
- package/es/carousel/index.js.map +1 -1
- package/es/carousel/style/index.js +2 -0
- package/es/carousel/style/index.js.map +1 -0
- package/es/carousel/style/index.less +238 -0
- package/es/cascader/index.js +1 -1
- package/es/cascader/index.js.map +1 -1
- package/es/cascader/style/index.js +5 -0
- package/es/cascader/style/index.js.map +1 -0
- package/es/cascader/style/index.less +227 -0
- package/es/check-card/index.js +2 -3
- package/es/check-card/index.js.map +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/checkbox/index.js.map +1 -1
- package/es/checkbox/style/index.js +2 -0
- package/es/checkbox/style/index.js.map +1 -0
- package/es/checkbox/style/index.less +4 -0
- package/es/checkbox/style/mixin.less +220 -0
- package/es/col/index.js +1 -1
- package/es/col/index.js.map +1 -1
- package/es/col/style/index.js +4 -0
- package/es/col/style/index.js.map +1 -0
- package/es/collapse/collapse.less +3 -3
- package/es/collapse/index.js +1 -1
- package/es/collapse/index.js.map +1 -1
- package/es/collapse/style/index.js +2 -0
- package/es/collapse/style/index.js.map +1 -0
- package/es/collapse/style/index.less +135 -0
- package/es/color-picker/ColorPicker.js +8 -8
- package/es/color-picker/ColorPicker.js.map +1 -1
- package/es/color-picker/index.less +25 -8
- package/es/comment/index.js +1 -1
- package/es/comment/index.js.map +1 -1
- package/es/comment/style/index.js +2 -0
- package/es/comment/style/index.js.map +1 -0
- package/es/comment/style/index.less +93 -0
- package/es/config-provider/index.js +1 -1
- package/es/config-provider/index.js.map +1 -1
- package/es/config-provider/style/index.js +1 -0
- package/es/config-provider/style/index.js.map +1 -0
- package/es/config-provider/style/index.less +2 -0
- package/es/date-picker/index.js +1 -1
- package/es/date-picker/index.js.map +1 -1
- package/es/date-picker/style/Calendar.less +402 -0
- package/es/date-picker/style/DecadePanel.less +81 -0
- package/es/date-picker/style/MonthPanel.less +86 -0
- package/es/date-picker/style/MonthPicker.less +11 -0
- package/es/date-picker/style/Picker.less +114 -0
- package/es/date-picker/style/RangePicker.less +248 -0
- package/es/date-picker/style/TimePicker.less +151 -0
- package/es/date-picker/style/WeekPicker.less +21 -0
- package/es/date-picker/style/YearPanel.less +85 -0
- package/es/date-picker/style/index.js +7 -0
- package/es/date-picker/style/index.js.map +1 -0
- package/es/date-picker/style/index.less +17 -0
- package/es/descriptions/descriptions.js +101 -26
- package/es/descriptions/descriptions.js.map +1 -1
- package/es/descriptions/descriptions.less +111 -22
- package/es/descriptions/index.js +1 -1
- package/es/descriptions/index.js.map +1 -1
- package/es/descriptions/style/index.js +2 -0
- package/es/descriptions/style/index.js.map +1 -0
- package/es/descriptions/style/index.less +145 -0
- package/es/divider/index.js +1 -1
- package/es/divider/index.js.map +1 -1
- package/es/divider/style/index.js +2 -0
- package/es/divider/style/index.js.map +1 -0
- package/es/divider/style/index.less +109 -0
- package/es/drawer/drawer.js +108 -13
- package/es/drawer/drawer.js.map +1 -1
- package/es/drawer/index.js +2 -2
- package/es/drawer/index.js.map +1 -1
- package/es/drawer/index.less +151 -0
- package/es/drawer/style/drawer.less +230 -0
- package/es/drawer/style/index.js +3 -0
- package/es/drawer/style/index.js.map +1 -0
- package/es/drawer/style/index.less +3 -0
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/index.js.map +1 -1
- package/es/dropdown/style/index.js +4 -0
- package/es/dropdown/style/index.js.map +1 -0
- package/es/dropdown/style/index.less +283 -0
- package/es/empty/index.js +1 -1
- package/es/empty/index.js.map +1 -1
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/index.js.map +1 -0
- package/es/empty/style/index.less +52 -0
- package/es/form/form.js +8 -3
- package/es/form/form.js.map +1 -1
- package/es/form/form.less +42 -0
- package/es/form/index.js +1 -1
- package/es/form/index.js.map +1 -1
- package/es/form/style/index.js +4 -0
- package/es/form/style/index.js.map +1 -0
- package/es/form/style/index.less +653 -0
- package/es/form/style/mixin.less +126 -0
- package/es/grid/index.js +3 -13
- package/es/grid/index.js.map +1 -1
- package/es/grid/style/index.js +1 -1
- package/es/grid/style/index.js.map +1 -1
- package/es/grid/style/index.less +24 -26
- package/es/grid/style/mixin.less +63 -19
- package/es/grid-v4/RowContext.js.map +1 -0
- package/es/grid-v4/col.js.map +1 -0
- package/es/grid-v4/hooks/useBreakpoint.js.map +1 -0
- package/es/grid-v4/index.js +14 -0
- package/es/grid-v4/index.js.map +1 -0
- package/{lib/grid → es/grid-v4}/row.js.map +1 -1
- package/es/grid-v4/style/index.js +2 -0
- package/es/grid-v4/style/index.js.map +1 -0
- package/es/grid-v4/style/index.less +124 -0
- package/es/grid-v4/style/mixin.less +57 -0
- package/es/handle-icon/index.js +201 -0
- package/es/handle-icon/index.js.map +1 -0
- package/es/handle-icon/index.less +53 -0
- package/es/icon/index.js +2 -1
- package/es/icon/index.js.map +1 -1
- package/es/icon/style/index.js +3 -0
- package/es/icon/style/index.js.map +1 -0
- package/es/icon/style/index.less +4 -0
- package/es/icon/style/style.less +6 -0
- package/es/icon-old/index.js +4 -0
- package/es/icon-old/index.js.map +1 -0
- package/es/icon-old/style/index.js +2 -0
- package/es/icon-old/style/index.js.map +1 -0
- package/es/icon-old/style/index.less +4 -0
- package/es/index.js +8 -2
- package/es/index.js.map +1 -1
- package/es/input/index.js +1 -1
- package/es/input/index.js.map +1 -1
- package/es/input/input.js +10 -6
- package/es/input/input.js.map +1 -1
- package/es/input/style/index.js +4 -0
- package/es/input/style/index.js.map +1 -0
- package/es/input/style/index.less +57 -0
- package/es/input/style/mixin.less +448 -0
- package/es/input/style/search-input.less +34 -0
- package/es/input-number/index.js +1 -1
- package/es/input-number/index.js.map +1 -1
- package/es/input-number/style/index.js +2 -0
- package/es/input-number/style/index.js.map +1 -0
- package/es/input-number/style/index.less +179 -0
- package/es/layout/index.js +1 -1
- package/es/layout/index.js.map +1 -1
- package/es/layout/style/index.js +2 -0
- package/es/layout/style/index.js.map +1 -0
- package/es/layout/style/index.less +124 -0
- package/es/layout/style/light.less +15 -0
- package/es/list/index.js +1 -1
- package/es/list/index.js.map +1 -1
- package/es/list/style/bordered.less +41 -0
- package/es/list/style/index.js +7 -0
- package/es/list/style/index.js.map +1 -0
- package/es/list/style/index.less +234 -0
- package/es/list/style/responsive.less +40 -0
- package/es/locale/en_US.js +11 -1
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +11 -1
- package/es/locale/zh_CN.js.map +1 -1
- package/es/locale-provider/index.js +1 -1
- package/es/locale-provider/index.js.map +1 -1
- package/es/locale-provider/style/index.js +1 -0
- package/es/locale-provider/style/index.js.map +1 -0
- package/es/locale-provider/style/index.less +2 -0
- package/es/mentions/index.js +1 -1
- package/es/mentions/index.js.map +1 -1
- package/es/mentions/style/index.js +4 -0
- package/es/mentions/style/index.js.map +1 -0
- package/es/mentions/style/index.less +164 -0
- package/es/menu/index.js +1 -1
- package/es/menu/index.js.map +1 -1
- package/es/menu/style/dark.less +139 -0
- package/es/menu/style/index.js +5 -0
- package/es/menu/style/index.js.map +1 -0
- package/es/menu/style/index.less +515 -0
- package/es/message/index.js +1 -1
- package/es/message/index.js.map +1 -1
- package/es/message/style/index.js +2 -0
- package/es/message/style/index.js.map +1 -0
- package/es/message/style/index.less +75 -0
- package/es/modal/index.js +1 -1
- package/es/modal/index.js.map +1 -1
- package/es/modal/modal.js +51 -9
- package/es/modal/modal.js.map +1 -1
- package/es/modal/modal.less +13 -32
- package/es/modal/style/confirm.less +92 -0
- package/es/modal/style/index.js +4 -0
- package/es/modal/style/index.js.map +1 -0
- package/es/modal/style/index.less +4 -0
- package/es/modal/style/modal.less +171 -0
- package/es/notification/index.js +1 -1
- package/es/notification/index.js.map +1 -1
- package/es/notification/style/index.js +2 -0
- package/es/notification/style/index.js.map +1 -0
- package/es/notification/style/index.less +201 -0
- package/es/page/index.js +0 -1
- package/es/page-container/index.js +13 -0
- package/es/page-container/index.js.map +1 -0
- package/es/page-container/index.less +38 -0
- package/es/page-header/index.js +1 -1
- package/es/page-header/index.js.map +1 -1
- package/es/page-header/style/index.js +4 -0
- package/es/page-header/style/index.js.map +1 -0
- package/es/page-header/style/index.less +119 -0
- package/es/page-loading/index.js +29 -0
- package/es/page-loading/index.js.map +1 -0
- package/es/page-loading/index.less +38 -0
- package/es/page-loading/loading.gif +0 -0
- package/es/pagination/index.js +1 -1
- package/es/pagination/index.js.map +1 -1
- package/es/pagination/style/index.js +4 -0
- package/es/pagination/style/index.js.map +1 -0
- package/es/pagination/style/index.less +400 -0
- package/es/popconfirm/index.js +1 -1
- package/es/popconfirm/index.js.map +1 -1
- package/es/popconfirm/style/index.js +5 -0
- package/es/popconfirm/style/index.js.map +1 -0
- package/es/popover/index.js +1 -1
- package/es/popover/index.js.map +1 -1
- package/es/popover/style/index.js +4 -0
- package/es/popover/style/index.js.map +1 -0
- package/es/popover/style/index.less +206 -0
- package/es/progress/index.js +1 -1
- package/es/progress/index.js.map +1 -1
- package/es/progress/style/index.js +2 -0
- package/es/progress/style/index.js.map +1 -0
- package/es/progress/style/index.less +182 -0
- package/es/radio/index.js +1 -1
- package/es/radio/index.js.map +1 -1
- package/es/radio/style/index.js +2 -0
- package/es/radio/style/index.js.map +1 -0
- package/es/radio/style/index.less +327 -0
- package/es/rate/index.js +1 -1
- package/es/rate/index.js.map +1 -1
- package/es/rate/style/index.js +4 -0
- package/es/rate/style/index.js.map +1 -0
- package/es/rate/style/index.less +85 -0
- package/es/result/index.js +1 -1
- package/es/result/index.js.map +1 -1
- package/es/result/style/index.js +2 -0
- package/es/result/style/index.js.map +1 -0
- package/es/result/style/index.less +71 -0
- package/es/row/index.js +1 -1
- package/es/row/index.js.map +1 -1
- package/es/row/style/index.js +4 -0
- package/es/row/style/index.js.map +1 -0
- package/es/select/index.js +1 -1
- package/es/select/index.js.map +1 -1
- package/es/select/select.js +5 -3
- package/es/select/select.js.map +1 -1
- package/es/select/style/index.js +4 -0
- package/es/select/style/index.js.map +1 -0
- package/es/select/style/index.less +605 -0
- package/es/skeleton/index.js +1 -1
- package/es/skeleton/index.js.map +1 -1
- package/es/skeleton/style/index.js +2 -0
- package/es/skeleton/style/index.js.map +1 -0
- package/es/skeleton/style/index.less +130 -0
- package/es/slider/index.js +1 -1
- package/es/slider/index.js.map +1 -1
- package/es/slider/style/index.js +4 -0
- package/es/slider/style/index.js.map +1 -0
- package/es/slider/style/index.less +197 -0
- package/es/spin/index.js +1 -1
- package/es/spin/index.js.map +1 -1
- package/es/spin/style/index.js +2 -0
- package/es/spin/style/index.js.map +1 -0
- package/es/spin/style/index.less +214 -0
- package/es/statistic/index.js +1 -1
- package/es/statistic/index.js.map +1 -1
- package/es/statistic/style/index.js +2 -0
- package/es/statistic/style/index.js.map +1 -0
- package/es/statistic/style/index.less +40 -0
- package/es/steps/index.js +2 -1
- package/es/steps/index.js.map +1 -1
- package/es/steps/stepStyle/index.less +12 -0
- package/es/steps/stepStyle/nav.less +281 -0
- package/es/steps/stepStyle/small.less +5 -0
- package/es/steps/steps.js +6 -6
- package/es/steps/steps.js.map +1 -1
- package/es/steps/style/compatibility.less +50 -0
- package/es/steps/style/custom-icon.less +31 -0
- package/es/steps/style/index.js +2 -0
- package/es/steps/style/index.js.map +1 -0
- package/es/steps/style/index.less +241 -6
- package/es/steps/style/label-placement.less +38 -0
- package/es/steps/style/nav.less +96 -247
- package/es/steps/style/progress-dot.less +80 -0
- package/es/steps/style/small.less +43 -3
- package/es/steps/style/vertical.less +74 -0
- package/es/style/color/bezierEasing.less +110 -0
- package/es/style/color/colorPalette.less +75 -0
- package/es/style/color/colors.less +149 -0
- package/es/style/color/tinyColor.less +1184 -0
- package/es/style/core/base.less +510 -0
- package/es/style/core/iconfont.less +19 -0
- package/es/style/core/index.less +4 -0
- package/es/style/core/motion/fade.less +31 -0
- package/es/style/core/motion/move.less +120 -0
- package/es/style/core/motion/other.less +40 -0
- package/es/style/core/motion/slide.less +120 -0
- package/es/style/core/motion/swing.less +34 -0
- package/es/style/core/motion/zoom.less +162 -0
- package/es/style/core/motion.less +20 -0
- package/es/style/index.js +1 -0
- package/es/style/index.js.map +1 -0
- package/es/style/index.less +2 -0
- package/es/style/mixins/clearfix.less +13 -0
- package/es/style/mixins/compatibility.less +22 -0
- package/es/style/mixins/iconfont.less +44 -0
- package/es/style/mixins/index.less +10 -0
- package/es/style/mixins/motion.less +35 -0
- package/es/style/mixins/operation-unit.less +18 -0
- package/es/style/mixins/reset.less +13 -0
- package/es/style/mixins/size.less +10 -0
- package/es/style/mixins/typography.less +49 -0
- package/es/style/themes/default.less +700 -0
- package/es/style/themes/index.less +1 -0
- package/es/style/v2-compatible-reset.js +1 -0
- package/es/style/v2-compatible-reset.js.map +1 -0
- package/es/style/v2-compatible-reset.less +51 -0
- package/es/switch/style/index.js +2 -0
- package/es/switch/style/index.js.map +1 -0
- package/es/switch/style/index.less +178 -0
- package/es/switch/switch.js +1 -1
- package/es/switch/switch.js.map +1 -1
- package/es/table/expand.less +49 -0
- package/es/table/hooks/index.js +2 -1
- package/es/table/hooks/index.js.map +1 -1
- package/es/table/hooks/use-expand-fixed.js +78 -0
- package/es/table/hooks/use-expand-fixed.js.map +1 -0
- package/es/table/index.js +2 -1
- package/es/table/index.js.map +1 -1
- package/es/table/style/index.js +10 -0
- package/es/table/style/index.js.map +1 -0
- package/es/table/style/index.less +838 -0
- package/es/table/style/size.less +180 -0
- package/es/table/table.js +44 -11
- package/es/table/table.js.map +1 -1
- package/es/table/table.less +5 -5
- package/es/table/table.stories.js +413 -2
- package/es/table/table.stories.js.map +1 -1
- package/es/table/utils.js +11 -0
- package/es/table/utils.js.map +1 -1
- package/es/table-container/index.js +12 -0
- package/es/table-container/index.js.map +1 -0
- package/es/table-container/index.less +13 -0
- package/es/tabs/index.js +1 -1
- package/es/tabs/index.js.map +1 -1
- package/es/tabs/style/card-style.less +186 -0
- package/es/tabs/style/index.js +2 -0
- package/es/tabs/style/index.js.map +1 -0
- package/es/tabs/style/index.less +436 -0
- package/es/tabs/tabs.js +4 -2
- package/es/tabs/tabs.js.map +1 -1
- package/es/tabs-container/index.js +13 -0
- package/es/tabs-container/index.js.map +1 -0
- package/es/tabs-container/index.less +51 -0
- package/es/tag/color.less +53 -0
- package/es/tag/index.js +12 -3
- package/es/tag/index.js.map +1 -1
- package/es/tag/style/index.js +2 -0
- package/es/tag/style/index.js.map +1 -0
- package/es/tag/style/index.less +106 -0
- package/es/tag/tag.js +171 -0
- package/es/tag/tag.js.map +1 -0
- package/es/tag/tag.less +228 -0
- package/es/time-picker/index.js +1 -1
- package/es/time-picker/index.js.map +1 -1
- package/es/time-picker/style/index.js +2 -0
- package/es/time-picker/style/index.js.map +1 -0
- package/es/time-picker/style/index.less +247 -0
- package/es/timeline/index.js +1 -1
- package/es/timeline/index.js.map +1 -1
- package/es/timeline/style/index.js +2 -0
- package/es/timeline/style/index.js.map +1 -0
- package/es/timeline/style/index.less +167 -0
- package/es/title/index.js +4 -3
- package/es/title/index.js.map +1 -1
- package/es/tntd-action/index.js +7 -0
- package/es/tntd-action/index.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/component/getIcons.js +7 -8
- package/es/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
- package/es/tntd-cascader/AntdCascader/index.js +4 -5
- package/es/tntd-cascader/AntdCascader/index.js.map +1 -1
- package/es/tntd-cascader/rc-cascader/OptionList/index.js +0 -1
- package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +0 -1
- package/es/tntd-form/Form.js.map +1 -1
- package/es/tntd-form/FormItem/ItemHolder.js +2 -7
- package/es/tntd-form/FormItem/ItemHolder.js.map +1 -1
- package/es/tntd-form/FormItemInput.js +1 -1
- package/es/tntd-form/FormItemInput.js.map +1 -1
- package/es/tntd-form/FormItemLabel.js +1 -1
- package/es/tntd-form/FormItemLabel.js.map +1 -1
- package/es/tntd-form/context.js.map +1 -1
- package/es/tntd-form/style/index.js +1 -1
- package/es/tntd-form/style/index.js.map +1 -1
- package/es/tntd-form/style/index.less +1 -1
- package/es/tntd-form/style/rtl.less +3 -3
- package/es/tntd-layout/index.js +0 -1
- package/es/tntd-rc-select/_util/getIcons.js +7 -8
- package/es/tntd-rc-select/_util/getIcons.js.map +1 -1
- package/es/tntd-rc-select/style/index.less +844 -740
- package/es/tntd-select/index.js +5 -4
- package/es/tntd-select/index.js.map +1 -1
- package/es/tooltip/index.js +4 -3
- package/es/tooltip/index.js.map +1 -1
- package/es/tooltip/index.less +29 -0
- package/es/tooltip/style/index.js +2 -0
- package/es/tooltip/style/index.js.map +1 -0
- package/es/tooltip/style/index.less +187 -0
- package/es/tooltip/tooltip.js +33 -0
- package/es/tooltip/tooltip.js.map +1 -0
- package/es/transfer/index.js +1 -1
- package/es/transfer/index.js.map +1 -1
- package/es/transfer/style/customize.less +62 -0
- package/es/transfer/style/index.js +7 -0
- package/es/transfer/style/index.js.map +1 -0
- package/es/transfer/style/index.less +191 -0
- package/es/tree/index.js +1 -1
- package/es/tree/index.js.map +1 -1
- package/es/tree/style/directory.less +95 -0
- package/es/tree/style/index.js +2 -0
- package/es/tree/style/index.js.map +1 -0
- package/es/tree/style/index.less +280 -0
- package/es/tree/style/mixin.less +29 -0
- package/es/tree-select/index.js +1 -1
- package/es/tree-select/index.js.map +1 -1
- package/es/tree-select/style/index.js +6 -0
- package/es/tree-select/style/index.js.map +1 -0
- package/es/tree-select/style/index.less +191 -0
- package/es/typography/index.js +1 -1
- package/es/typography/index.js.map +1 -1
- package/es/typography/style/index.js +5 -0
- package/es/typography/style/index.js.map +1 -0
- package/es/typography/style/index.less +204 -0
- package/es/upload/index.js +1 -1
- package/es/upload/index.js.map +1 -1
- package/es/upload/style/index.js +5 -0
- package/es/upload/style/index.js.map +1 -0
- package/es/upload/style/index.less +542 -0
- package/es/version/index.js +1 -1
- package/es/version/index.js.map +1 -1
- package/es/version/style/index.js +2 -0
- package/es/version/style/index.js.map +1 -0
- package/lib/_util/context.js +3 -6
- package/lib/_util/defaultRenderEmpty.d.ts +2 -2
- package/lib/_util/defaultRenderEmpty.d.ts.map +1 -1
- package/lib/_util/defaultRenderEmpty.js +4 -5
- package/lib/_util/hooks/useFlexGapSupport.js +7 -8
- package/lib/_util/hooks/useForceUpdate.js +5 -5
- package/lib/_util/motion.js +3 -6
- package/lib/_util/reactNode.js +4 -5
- package/lib/_util/responsiveObserve.js +6 -9
- package/lib/_util/styleChecker.js +3 -5
- package/lib/_util/type.js +3 -5
- package/lib/_util/warning.js +5 -6
- package/lib/actions/index.js +1 -2
- package/lib/affix/index.d.ts +1 -1
- package/lib/affix/index.d.ts.map +1 -1
- package/lib/affix/index.js +5 -6
- package/lib/affix/index.js.map +1 -1
- package/lib/affix/style/index.d.ts +3 -0
- package/lib/affix/style/index.d.ts.map +1 -0
- package/lib/affix/style/index.js +4 -0
- package/lib/affix/style/index.js.map +1 -0
- package/lib/affix/style/index.less +6 -0
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/index.d.ts.map +1 -1
- package/lib/alert/index.js +5 -6
- package/lib/alert/index.js.map +1 -1
- package/lib/alert/style/index.d.ts +3 -0
- package/lib/alert/style/index.d.ts.map +1 -0
- package/lib/alert/style/index.js +4 -0
- package/lib/alert/style/index.js.map +1 -0
- package/lib/alert/style/index.less +188 -0
- package/lib/anchor/index.d.ts +1 -1
- package/lib/anchor/index.d.ts.map +1 -1
- package/lib/anchor/index.js +5 -6
- package/lib/anchor/index.js.map +1 -1
- package/lib/anchor/style/index.d.ts +4 -0
- package/lib/anchor/style/index.d.ts.map +1 -0
- package/lib/anchor/style/index.js +5 -0
- package/lib/anchor/style/index.js.map +1 -0
- package/lib/anchor/style/index.less +82 -0
- package/lib/array-input/index.d.ts +2 -12
- package/lib/array-input/index.d.ts.map +1 -1
- package/lib/array-input/index.js +70 -65
- package/lib/array-input/index.js.map +1 -1
- package/lib/array-input/index.less +4 -1
- package/lib/auth-context/index.js +2 -3
- package/lib/auto-complete/index.d.ts +1 -1
- package/lib/auto-complete/index.d.ts.map +1 -1
- package/lib/auto-complete/index.js +5 -6
- package/lib/auto-complete/index.js.map +1 -1
- package/lib/auto-complete/style/index.d.ts +5 -0
- package/lib/auto-complete/style/index.d.ts.map +1 -0
- package/lib/auto-complete/style/index.js +6 -0
- package/lib/auto-complete/style/index.js.map +1 -0
- package/lib/auto-complete/style/index.less +92 -0
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/index.d.ts.map +1 -1
- package/lib/avatar/index.js +5 -6
- package/lib/avatar/index.js.map +1 -1
- package/lib/avatar/style/index.d.ts +3 -0
- package/lib/avatar/style/index.d.ts.map +1 -0
- package/lib/avatar/style/index.js +4 -0
- package/lib/avatar/style/index.js.map +1 -0
- package/lib/avatar/style/index.less +59 -0
- package/lib/back-top/index.d.ts +1 -1
- package/lib/back-top/index.d.ts.map +1 -1
- package/lib/back-top/index.js +5 -6
- package/lib/back-top/index.js.map +1 -1
- package/lib/back-top/style/index.d.ts +3 -0
- package/lib/back-top/style/index.d.ts.map +1 -0
- package/lib/back-top/style/index.js +4 -0
- package/lib/back-top/style/index.js.map +1 -0
- package/lib/back-top/style/index.less +42 -0
- package/lib/back-top/style/responsive.less +11 -0
- package/lib/badge/index.d.ts +1 -1
- package/lib/badge/index.d.ts.map +1 -1
- package/lib/badge/index.js +5 -6
- package/lib/badge/index.js.map +1 -1
- package/lib/badge/style/index.d.ts +3 -0
- package/lib/badge/style/index.d.ts.map +1 -0
- package/lib/badge/style/index.js +4 -0
- package/lib/badge/style/index.js.map +1 -0
- package/lib/badge/style/index.less +190 -0
- package/lib/breadcrumb/index.d.ts +1 -1
- package/lib/breadcrumb/index.d.ts.map +1 -1
- package/lib/breadcrumb/index.js +5 -6
- package/lib/breadcrumb/index.js.map +1 -1
- package/lib/breadcrumb/style/index.d.ts +5 -0
- package/lib/breadcrumb/style/index.d.ts.map +1 -0
- package/lib/breadcrumb/style/index.js +6 -0
- package/lib/breadcrumb/style/index.js.map +1 -0
- package/lib/breadcrumb/style/index.less +52 -0
- package/lib/button/button.js +6 -9
- package/lib/button/button.less +7 -0
- package/lib/button/index.d.ts +2 -1
- package/lib/button/index.d.ts.map +1 -1
- package/lib/button/index.js +7 -7
- package/lib/button/index.js.map +1 -1
- package/lib/button/style/index.d.ts +3 -0
- package/lib/button/style/index.d.ts.map +1 -0
- package/lib/button/style/index.js +4 -0
- package/lib/button/style/index.js.map +1 -0
- package/lib/button/style/index.less +224 -0
- package/lib/button/style/mixin.less +357 -0
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/index.d.ts.map +1 -1
- package/lib/calendar/index.js +5 -6
- package/lib/calendar/index.js.map +1 -1
- package/lib/calendar/style/index.d.ts +5 -0
- package/lib/calendar/style/index.d.ts.map +1 -0
- package/lib/calendar/style/index.js +6 -0
- package/lib/calendar/style/index.js.map +1 -0
- package/lib/calendar/style/index.less +278 -0
- package/lib/card/card.js +5 -8
- package/lib/card/index.d.ts +1 -1
- package/lib/card/index.d.ts.map +1 -1
- package/lib/card/index.js +2 -3
- package/lib/card/index.js.map +1 -1
- package/lib/card/style/index.d.ts +6 -0
- package/lib/card/style/index.d.ts.map +1 -0
- package/lib/card/style/index.js +7 -0
- package/lib/card/style/index.js.map +1 -0
- package/lib/card/style/index.less +263 -0
- package/lib/card/style/size.less +25 -0
- package/lib/carousel/index.d.ts +1 -1
- package/lib/carousel/index.d.ts.map +1 -1
- package/lib/carousel/index.js +5 -6
- package/lib/carousel/index.js.map +1 -1
- package/lib/carousel/style/index.d.ts +3 -0
- package/lib/carousel/style/index.d.ts.map +1 -0
- package/lib/carousel/style/index.js +4 -0
- package/lib/carousel/style/index.js.map +1 -0
- package/lib/carousel/style/index.less +238 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/index.d.ts.map +1 -1
- package/lib/cascader/index.js +6 -8
- package/lib/cascader/index.js.map +1 -1
- package/lib/cascader/style/index.d.ts +5 -0
- package/lib/cascader/style/index.d.ts.map +1 -0
- package/lib/cascader/style/index.js +6 -0
- package/lib/cascader/style/index.js.map +1 -0
- package/lib/cascader/style/index.less +227 -0
- package/lib/check-card/group.js +9 -14
- package/lib/check-card/index.js +11 -16
- package/lib/check-card/index.js.map +1 -1
- package/lib/checkbox/checkbox-group.js +1 -2
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.d.ts.map +1 -1
- package/lib/checkbox/index.js +5 -6
- package/lib/checkbox/index.js.map +1 -1
- package/lib/checkbox/style/index.d.ts +3 -0
- package/lib/checkbox/style/index.d.ts.map +1 -0
- package/lib/checkbox/style/index.js +4 -0
- package/lib/checkbox/style/index.js.map +1 -0
- package/lib/checkbox/style/index.less +4 -0
- package/lib/checkbox/style/mixin.less +220 -0
- package/lib/col/index.d.ts +1 -1
- package/lib/col/index.d.ts.map +1 -1
- package/lib/col/index.js +5 -6
- package/lib/col/index.js.map +1 -1
- package/lib/col/style/index.d.ts +3 -0
- package/lib/col/style/index.d.ts.map +1 -0
- package/lib/col/style/index.js +4 -0
- package/lib/col/style/index.js.map +1 -0
- package/lib/collapse/collapse.less +3 -3
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse/index.d.ts.map +1 -1
- package/lib/collapse/index.js +5 -6
- package/lib/collapse/index.js.map +1 -1
- package/lib/collapse/style/index.d.ts +3 -0
- package/lib/collapse/style/index.d.ts.map +1 -0
- package/lib/collapse/style/index.js +4 -0
- package/lib/collapse/style/index.js.map +1 -0
- package/lib/collapse/style/index.less +135 -0
- package/lib/color-picker/ColorPicker.d.ts +4 -2
- package/lib/color-picker/ColorPicker.d.ts.map +1 -1
- package/lib/color-picker/ColorPicker.js +13 -17
- package/lib/color-picker/ColorPicker.js.map +1 -1
- package/lib/color-picker/index.d.ts +2 -1
- package/lib/color-picker/index.d.ts.map +1 -1
- package/lib/color-picker/index.less +25 -8
- package/lib/columns/index.d.ts +3 -2
- package/lib/columns/index.d.ts.map +1 -1
- package/lib/columns/index.js +3 -7
- package/lib/comment/index.d.ts +1 -1
- package/lib/comment/index.d.ts.map +1 -1
- package/lib/comment/index.js +5 -6
- package/lib/comment/index.js.map +1 -1
- package/lib/comment/style/index.d.ts +3 -0
- package/lib/comment/style/index.d.ts.map +1 -0
- package/lib/comment/style/index.js +4 -0
- package/lib/comment/style/index.js.map +1 -0
- package/lib/comment/style/index.less +93 -0
- package/lib/config-provider/DisabledContext.js +5 -7
- package/lib/config-provider/SizeContext.js +5 -7
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.d.ts.map +1 -1
- package/lib/config-provider/index.js +5 -6
- package/lib/config-provider/index.js.map +1 -1
- package/lib/config-provider/style/index.d.ts +2 -0
- package/lib/config-provider/style/index.d.ts.map +1 -0
- package/lib/config-provider/style/index.js +3 -0
- package/lib/config-provider/style/index.js.map +1 -0
- package/lib/config-provider/style/index.less +2 -0
- package/lib/connect/index.js +5 -11
- package/lib/date-picker/index.d.ts +1 -1
- package/lib/date-picker/index.d.ts.map +1 -1
- package/lib/date-picker/index.js +6 -8
- package/lib/date-picker/index.js.map +1 -1
- package/lib/date-picker/style/Calendar.less +402 -0
- package/lib/date-picker/style/DecadePanel.less +81 -0
- package/lib/date-picker/style/MonthPanel.less +86 -0
- package/lib/date-picker/style/MonthPicker.less +11 -0
- package/lib/date-picker/style/Picker.less +114 -0
- package/lib/date-picker/style/RangePicker.less +248 -0
- package/lib/date-picker/style/TimePicker.less +151 -0
- package/lib/date-picker/style/WeekPicker.less +21 -0
- package/lib/date-picker/style/YearPanel.less +85 -0
- package/lib/date-picker/style/index.d.ts +6 -0
- package/lib/date-picker/style/index.d.ts.map +1 -0
- package/lib/date-picker/style/index.js +7 -0
- package/lib/date-picker/style/index.js.map +1 -0
- package/lib/date-picker/style/index.less +17 -0
- package/lib/descriptions/descriptions.d.ts +17 -6
- package/lib/descriptions/descriptions.d.ts.map +1 -1
- package/lib/descriptions/descriptions.js +107 -35
- package/lib/descriptions/descriptions.js.map +1 -1
- package/lib/descriptions/descriptions.less +111 -22
- package/lib/descriptions/index.d.ts +1 -1
- package/lib/descriptions/index.d.ts.map +1 -1
- package/lib/descriptions/index.js +2 -3
- package/lib/descriptions/index.js.map +1 -1
- package/lib/descriptions/style/index.d.ts +3 -0
- package/lib/descriptions/style/index.d.ts.map +1 -0
- package/lib/descriptions/style/index.js +4 -0
- package/lib/descriptions/style/index.js.map +1 -0
- package/lib/descriptions/style/index.less +145 -0
- package/lib/development-login/LoginModal.d.ts +2 -1
- package/lib/development-login/LoginModal.d.ts.map +1 -1
- package/lib/development-login/LoginModal.js +9 -10
- package/lib/development-login/index.d.ts +2 -1
- package/lib/development-login/index.d.ts.map +1 -1
- package/lib/development-login/index.js +9 -8
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.d.ts.map +1 -1
- package/lib/divider/index.js +5 -6
- package/lib/divider/index.js.map +1 -1
- package/lib/divider/style/index.d.ts +3 -0
- package/lib/divider/style/index.d.ts.map +1 -0
- package/lib/divider/style/index.js +4 -0
- package/lib/divider/style/index.js.map +1 -0
- package/lib/divider/style/index.less +109 -0
- package/lib/drawer/drawer.d.ts +27 -2
- package/lib/drawer/drawer.d.ts.map +1 -1
- package/lib/drawer/drawer.js +121 -22
- package/lib/drawer/drawer.js.map +1 -1
- package/lib/drawer/index.d.ts +2 -2
- package/lib/drawer/index.d.ts.map +1 -1
- package/lib/drawer/index.js +7 -8
- package/lib/drawer/index.js.map +1 -1
- package/lib/drawer/index.less +151 -0
- package/lib/drawer/style/drawer.less +230 -0
- package/lib/drawer/style/index.d.ts +3 -0
- package/lib/drawer/style/index.d.ts.map +1 -0
- package/lib/drawer/style/index.js +4 -0
- package/lib/drawer/style/index.js.map +1 -0
- package/lib/drawer/style/index.less +3 -0
- package/lib/dropdown/index.d.ts +1 -1
- package/lib/dropdown/index.d.ts.map +1 -1
- package/lib/dropdown/index.js +5 -6
- package/lib/dropdown/index.js.map +1 -1
- package/lib/dropdown/style/index.d.ts +4 -0
- package/lib/dropdown/style/index.d.ts.map +1 -0
- package/lib/dropdown/style/index.js +5 -0
- package/lib/dropdown/style/index.js.map +1 -0
- package/lib/dropdown/style/index.less +283 -0
- package/lib/ellipsis/Svg/CopySVG.d.ts +2 -1
- package/lib/ellipsis/Svg/CopySVG.d.ts.map +1 -1
- package/lib/ellipsis/Svg/CopySVG.js +2 -3
- package/lib/ellipsis/Svg/TickSVG.d.ts +2 -1
- package/lib/ellipsis/Svg/TickSVG.d.ts.map +1 -1
- package/lib/ellipsis/Svg/TickSVG.js +2 -3
- package/lib/ellipsis/index.d.ts +2 -1
- package/lib/ellipsis/index.d.ts.map +1 -1
- package/lib/ellipsis/index.js +12 -9
- package/lib/empty/empty.d.ts +2 -2
- package/lib/empty/empty.d.ts.map +1 -1
- package/lib/empty/empty.js +8 -12
- package/lib/empty/empty.stories.js +2 -4
- package/lib/empty/index.d.ts +1 -1
- package/lib/empty/index.d.ts.map +1 -1
- package/lib/empty/index.js +2 -3
- package/lib/empty/index.js.map +1 -1
- package/lib/empty/style/index.d.ts +3 -0
- package/lib/empty/style/index.d.ts.map +1 -0
- package/lib/empty/style/index.js +4 -0
- package/lib/empty/style/index.js.map +1 -0
- package/lib/empty/style/index.less +52 -0
- package/lib/exception/exception.js +1 -2
- package/lib/exception/index.js +1 -2
- package/lib/form/form.d.ts +1 -0
- package/lib/form/form.d.ts.map +1 -1
- package/lib/form/form.js +16 -13
- package/lib/form/form.js.map +1 -1
- package/lib/form/form.less +42 -0
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.d.ts.map +1 -1
- package/lib/form/index.js +2 -3
- package/lib/form/index.js.map +1 -1
- package/lib/form/style/index.d.ts +4 -0
- package/lib/form/style/index.d.ts.map +1 -0
- package/lib/form/style/index.js +5 -0
- package/lib/form/style/index.js.map +1 -0
- package/lib/form/style/index.less +653 -0
- package/lib/form/style/mixin.less +126 -0
- package/lib/grid/index.d.ts +3 -10
- package/lib/grid/index.d.ts.map +1 -1
- package/lib/grid/index.js +17 -24
- package/lib/grid/index.js.map +1 -1
- package/lib/grid/style/index.d.ts +1 -0
- package/lib/grid/style/index.d.ts.map +1 -1
- package/lib/grid/style/index.js +1 -0
- package/lib/grid/style/index.js.map +1 -1
- package/lib/grid/style/index.less +24 -26
- package/lib/grid/style/mixin.less +63 -19
- package/lib/grid-v4/RowContext.d.ts.map +1 -0
- package/lib/{grid → grid-v4}/RowContext.js +1 -2
- package/lib/grid-v4/RowContext.js.map +1 -0
- package/lib/grid-v4/col.d.ts.map +1 -0
- package/lib/{grid → grid-v4}/col.js +9 -14
- package/lib/grid-v4/col.js.map +1 -0
- package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +1 -0
- package/lib/{grid → grid-v4}/hooks/useBreakpoint.js +1 -2
- package/lib/grid-v4/hooks/useBreakpoint.js.map +1 -0
- package/lib/grid-v4/index.d.ts +12 -0
- package/lib/grid-v4/index.d.ts.map +1 -0
- package/lib/grid-v4/index.js +30 -0
- package/lib/grid-v4/index.js.map +1 -0
- package/lib/grid-v4/row.d.ts.map +1 -0
- package/lib/{grid → grid-v4}/row.js +10 -14
- package/lib/grid-v4/row.js.map +1 -0
- package/lib/grid-v4/style/index.d.ts +2 -0
- package/lib/grid-v4/style/index.d.ts.map +1 -0
- package/lib/grid-v4/style/index.js +3 -0
- package/lib/grid-v4/style/index.js.map +1 -0
- package/lib/grid-v4/style/index.less +124 -0
- package/lib/grid-v4/style/mixin.less +57 -0
- package/lib/handle/index.d.ts +2 -1
- package/lib/handle/index.d.ts.map +1 -1
- package/lib/handle/index.js +6 -9
- package/lib/handle-icon/index.d.ts +7 -0
- package/lib/handle-icon/index.d.ts.map +1 -0
- package/lib/handle-icon/index.js +221 -0
- package/lib/handle-icon/index.js.map +1 -0
- package/lib/handle-icon/index.less +53 -0
- package/lib/icon/IconFont.js +4 -6
- package/lib/icon/components/Icon.js +16 -22
- package/lib/icon/components/utils.js +7 -9
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.d.ts.map +1 -1
- package/lib/icon/index.js +10 -13
- package/lib/icon/index.js.map +1 -1
- package/lib/icon/style/index.d.ts +4 -0
- package/lib/icon/style/index.d.ts.map +1 -0
- package/lib/icon/style/index.js +5 -0
- package/lib/icon/style/index.js.map +1 -0
- package/lib/icon/style/index.less +4 -0
- package/lib/icon/style/style.less +6 -0
- package/lib/icon/utils.js +1 -2
- package/lib/icon-list/index.js +1 -2
- package/lib/icon-old/index.d.ts +5 -0
- package/lib/icon-old/index.d.ts.map +1 -0
- package/lib/icon-old/index.js +24 -0
- package/lib/icon-old/index.js.map +1 -0
- package/lib/icon-old/style/index.d.ts +3 -0
- package/lib/icon-old/style/index.d.ts.map +1 -0
- package/lib/icon-old/style/index.js +4 -0
- package/lib/icon-old/style/index.js.map +1 -0
- package/lib/icon-old/style/index.less +4 -0
- package/lib/img/Contain.d.ts +2 -1
- package/lib/img/Contain.d.ts.map +1 -1
- package/lib/img/Contain.js +3 -6
- package/lib/img/Cover.d.ts +2 -1
- package/lib/img/Cover.d.ts.map +1 -1
- package/lib/img/Cover.js +8 -11
- package/lib/img/index.d.ts +2 -1
- package/lib/img/index.d.ts.map +1 -1
- package/lib/img/index.js +8 -11
- package/lib/index.d.ts +8 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +45 -3
- package/lib/index.js.map +1 -1
- package/lib/input/index.d.ts +1 -1
- package/lib/input/index.d.ts.map +1 -1
- package/lib/input/index.js +2 -3
- package/lib/input/index.js.map +1 -1
- package/lib/input/input.js +16 -16
- package/lib/input/input.js.map +1 -1
- package/lib/input/style/index.d.ts +4 -0
- package/lib/input/style/index.d.ts.map +1 -0
- package/lib/input/style/index.js +5 -0
- package/lib/input/style/index.js.map +1 -0
- package/lib/input/style/index.less +57 -0
- package/lib/input/style/mixin.less +448 -0
- package/lib/input/style/search-input.less +34 -0
- package/lib/input-number/index.d.ts +1 -1
- package/lib/input-number/index.d.ts.map +1 -1
- package/lib/input-number/index.js +5 -6
- package/lib/input-number/index.js.map +1 -1
- package/lib/input-number/style/index.d.ts +3 -0
- package/lib/input-number/style/index.d.ts.map +1 -0
- package/lib/input-number/style/index.js +4 -0
- package/lib/input-number/style/index.js.map +1 -0
- package/lib/input-number/style/index.less +179 -0
- package/lib/label/index.d.ts +2 -2
- package/lib/label/index.d.ts.map +1 -1
- package/lib/label/index.js +10 -17
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/index.d.ts.map +1 -1
- package/lib/layout/index.js +5 -6
- package/lib/layout/index.js.map +1 -1
- package/lib/layout/style/index.d.ts +3 -0
- package/lib/layout/style/index.d.ts.map +1 -0
- package/lib/layout/style/index.js +4 -0
- package/lib/layout/style/index.js.map +1 -0
- package/lib/layout/style/index.less +124 -0
- package/lib/layout/style/light.less +15 -0
- package/lib/list/index.d.ts +1 -1
- package/lib/list/index.d.ts.map +1 -1
- package/lib/list/index.js +5 -6
- package/lib/list/index.js.map +1 -1
- package/lib/list/style/bordered.less +41 -0
- package/lib/list/style/index.d.ts +7 -0
- package/lib/list/style/index.d.ts.map +1 -0
- package/lib/list/style/index.js +8 -0
- package/lib/list/style/index.js.map +1 -0
- package/lib/list/style/index.less +234 -0
- package/lib/list/style/responsive.less +40 -0
- package/lib/loading-button/index.d.ts +2 -1
- package/lib/loading-button/index.d.ts.map +1 -1
- package/lib/loading-button/index.js +8 -11
- package/lib/locale/default.d.ts +10 -0
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/default.js +1 -2
- package/lib/locale/en_US.d.ts +10 -0
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +12 -3
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +10 -0
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +12 -3
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/locale-provider/index.d.ts +1 -1
- package/lib/locale-provider/index.d.ts.map +1 -1
- package/lib/locale-provider/index.js +5 -6
- package/lib/locale-provider/index.js.map +1 -1
- package/lib/locale-provider/style/index.d.ts +2 -0
- package/lib/locale-provider/style/index.d.ts.map +1 -0
- package/lib/locale-provider/style/index.js +3 -0
- package/lib/locale-provider/style/index.js.map +1 -0
- package/lib/locale-provider/style/index.less +2 -0
- package/lib/mentions/index.d.ts +1 -1
- package/lib/mentions/index.d.ts.map +1 -1
- package/lib/mentions/index.js +5 -6
- package/lib/mentions/index.js.map +1 -1
- package/lib/mentions/style/index.d.ts +4 -0
- package/lib/mentions/style/index.d.ts.map +1 -0
- package/lib/mentions/style/index.js +5 -0
- package/lib/mentions/style/index.js.map +1 -0
- package/lib/mentions/style/index.less +164 -0
- package/lib/menu/index.d.ts +1 -1
- package/lib/menu/index.d.ts.map +1 -1
- package/lib/menu/index.js +5 -6
- package/lib/menu/index.js.map +1 -1
- package/lib/menu/style/dark.less +139 -0
- package/lib/menu/style/index.d.ts +4 -0
- package/lib/menu/style/index.d.ts.map +1 -0
- package/lib/menu/style/index.js +5 -0
- package/lib/menu/style/index.js.map +1 -0
- package/lib/menu/style/index.less +515 -0
- package/lib/message/index.d.ts +1 -1
- package/lib/message/index.d.ts.map +1 -1
- package/lib/message/index.js +5 -6
- package/lib/message/index.js.map +1 -1
- package/lib/message/style/index.d.ts +3 -0
- package/lib/message/style/index.d.ts.map +1 -0
- package/lib/message/style/index.js +4 -0
- package/lib/message/style/index.js.map +1 -0
- package/lib/message/style/index.less +75 -0
- package/lib/modal/index.d.ts +1 -1
- package/lib/modal/index.d.ts.map +1 -1
- package/lib/modal/index.js +2 -3
- package/lib/modal/index.js.map +1 -1
- package/lib/modal/modal.d.ts +1 -1
- package/lib/modal/modal.d.ts.map +1 -1
- package/lib/modal/modal.js +56 -17
- package/lib/modal/modal.js.map +1 -1
- package/lib/modal/modal.less +13 -32
- package/lib/modal/style/confirm.less +92 -0
- package/lib/modal/style/index.d.ts +4 -0
- package/lib/modal/style/index.d.ts.map +1 -0
- package/lib/modal/style/index.js +5 -0
- package/lib/modal/style/index.js.map +1 -0
- package/lib/modal/style/index.less +4 -0
- package/lib/modal/style/modal.less +171 -0
- package/lib/notification/index.d.ts +1 -1
- package/lib/notification/index.d.ts.map +1 -1
- package/lib/notification/index.js +5 -6
- package/lib/notification/index.js.map +1 -1
- package/lib/notification/style/index.d.ts +3 -0
- package/lib/notification/style/index.d.ts.map +1 -0
- package/lib/notification/style/index.js +4 -0
- package/lib/notification/style/index.js.map +1 -0
- package/lib/notification/style/index.less +201 -0
- package/lib/page/Box.d.ts +2 -1
- package/lib/page/Box.d.ts.map +1 -1
- package/lib/page/Box.js +2 -5
- package/lib/page/index.d.ts +2 -1
- package/lib/page/index.d.ts.map +1 -1
- package/lib/page/index.js +7 -12
- package/lib/page/utils.js +4 -7
- package/lib/page-container/index.d.ts +4 -0
- package/lib/page-container/index.d.ts.map +1 -0
- package/lib/page-container/index.js +22 -0
- package/lib/page-container/index.js.map +1 -0
- package/lib/page-container/index.less +38 -0
- package/lib/page-header/index.d.ts +1 -1
- package/lib/page-header/index.d.ts.map +1 -1
- package/lib/page-header/index.js +5 -6
- package/lib/page-header/index.js.map +1 -1
- package/lib/page-header/style/index.d.ts +4 -0
- package/lib/page-header/style/index.d.ts.map +1 -0
- package/lib/page-header/style/index.js +5 -0
- package/lib/page-header/style/index.js.map +1 -0
- package/lib/page-header/style/index.less +119 -0
- package/lib/page-loading/index.d.ts +4 -0
- package/lib/page-loading/index.d.ts.map +1 -0
- package/lib/page-loading/index.js +34 -0
- package/lib/page-loading/index.js.map +1 -0
- package/lib/page-loading/index.less +38 -0
- package/lib/page-loading/loading.gif +0 -0
- package/lib/pagination/index.d.ts +1 -1
- package/lib/pagination/index.d.ts.map +1 -1
- package/lib/pagination/index.js +5 -6
- package/lib/pagination/index.js.map +1 -1
- package/lib/pagination/style/index.d.ts +4 -0
- package/lib/pagination/style/index.d.ts.map +1 -0
- package/lib/pagination/style/index.js +5 -0
- package/lib/pagination/style/index.js.map +1 -0
- package/lib/pagination/style/index.less +400 -0
- package/lib/popconfirm/index.d.ts +1 -1
- package/lib/popconfirm/index.d.ts.map +1 -1
- package/lib/popconfirm/index.js +5 -6
- package/lib/popconfirm/index.js.map +1 -1
- package/lib/popconfirm/style/index.d.ts +4 -0
- package/lib/popconfirm/style/index.d.ts.map +1 -0
- package/lib/popconfirm/style/index.js +5 -0
- package/lib/popconfirm/style/index.js.map +1 -0
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/index.d.ts.map +1 -1
- package/lib/popover/index.js +5 -6
- package/lib/popover/index.js.map +1 -1
- package/lib/popover/style/index.d.ts +3 -0
- package/lib/popover/style/index.d.ts.map +1 -0
- package/lib/popover/style/index.js +4 -0
- package/lib/popover/style/index.js.map +1 -0
- package/lib/popover/style/index.less +206 -0
- package/lib/prev-locale.js +6 -11
- package/lib/preview-text/index.js +5 -7
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.d.ts.map +1 -1
- package/lib/progress/index.js +5 -6
- package/lib/progress/index.js.map +1 -1
- package/lib/progress/style/index.d.ts +3 -0
- package/lib/progress/style/index.d.ts.map +1 -0
- package/lib/progress/style/index.js +4 -0
- package/lib/progress/style/index.js.map +1 -0
- package/lib/progress/style/index.less +182 -0
- package/lib/query-form/Field/Checkbox.d.ts +2 -1
- package/lib/query-form/Field/Checkbox.d.ts.map +1 -1
- package/lib/query-form/Field/Checkbox.js +3 -6
- package/lib/query-form/Field/Select.d.ts +2 -1
- package/lib/query-form/Field/Select.d.ts.map +1 -1
- package/lib/query-form/Field/Select.js +10 -13
- package/lib/query-form/Field/SelectInput.d.ts +2 -1
- package/lib/query-form/Field/SelectInput.d.ts.map +1 -1
- package/lib/query-form/Field/SelectInput.js +10 -13
- package/lib/query-form/Field/fieldsMap.js +4 -7
- package/lib/query-form/Field/index.d.ts +1 -1
- package/lib/query-form/Field/index.d.ts.map +1 -1
- package/lib/query-form/Field/index.js +19 -24
- package/lib/query-form/createActions.js +2 -3
- package/lib/query-form/index.d.ts +1 -1
- package/lib/query-form/index.d.ts.map +1 -1
- package/lib/query-form/index.js +22 -25
- package/lib/query-list-scene/List.d.ts +1 -1
- package/lib/query-list-scene/List.d.ts.map +1 -1
- package/lib/query-list-scene/List.js +24 -29
- package/lib/query-list-scene/QueryForm.d.ts +1 -1
- package/lib/query-list-scene/QueryForm.d.ts.map +1 -1
- package/lib/query-list-scene/QueryForm.js +17 -22
- package/lib/query-list-scene/QueryListScene.d.ts +1 -1
- package/lib/query-list-scene/QueryListScene.d.ts.map +1 -1
- package/lib/query-list-scene/QueryListScene.js +14 -18
- package/lib/query-list-scene/Title.d.ts +2 -1
- package/lib/query-list-scene/Title.d.ts.map +1 -1
- package/lib/query-list-scene/Title.js +2 -3
- package/lib/query-list-scene/Toolbar.d.ts +2 -1
- package/lib/query-list-scene/Toolbar.d.ts.map +1 -1
- package/lib/query-list-scene/Toolbar.js +6 -9
- package/lib/query-list-scene/createActions.js +2 -3
- package/lib/query-list-scene/index.js +4 -8
- package/lib/radio/index.d.ts +1 -1
- package/lib/radio/index.d.ts.map +1 -1
- package/lib/radio/index.js +5 -6
- package/lib/radio/index.js.map +1 -1
- package/lib/radio/radio-group.js +1 -2
- package/lib/radio/style/index.d.ts +3 -0
- package/lib/radio/style/index.d.ts.map +1 -0
- package/lib/radio/style/index.js +4 -0
- package/lib/radio/style/index.js.map +1 -0
- package/lib/radio/style/index.less +327 -0
- package/lib/rate/index.d.ts +1 -1
- package/lib/rate/index.d.ts.map +1 -1
- package/lib/rate/index.js +5 -6
- package/lib/rate/index.js.map +1 -1
- package/lib/rate/style/index.d.ts +4 -0
- package/lib/rate/style/index.d.ts.map +1 -0
- package/lib/rate/style/index.js +5 -0
- package/lib/rate/style/index.js.map +1 -0
- package/lib/rate/style/index.less +85 -0
- package/lib/render-empty/index.js +1 -2
- package/lib/render-empty/render-empty.js +2 -3
- package/lib/result/index.d.ts +1 -1
- package/lib/result/index.d.ts.map +1 -1
- package/lib/result/index.js +5 -6
- package/lib/result/index.js.map +1 -1
- package/lib/result/style/index.d.ts +3 -0
- package/lib/result/style/index.d.ts.map +1 -0
- package/lib/result/style/index.js +4 -0
- package/lib/result/style/index.js.map +1 -0
- package/lib/result/style/index.less +71 -0
- package/lib/row/index.d.ts +1 -1
- package/lib/row/index.d.ts.map +1 -1
- package/lib/row/index.js +5 -6
- package/lib/row/index.js.map +1 -1
- package/lib/row/style/index.d.ts +3 -0
- package/lib/row/style/index.d.ts.map +1 -0
- package/lib/row/style/index.js +4 -0
- package/lib/row/style/index.js.map +1 -0
- package/lib/segmented/index.d.ts +1 -1
- package/lib/segmented/index.d.ts.map +1 -1
- package/lib/segmented/index.js +8 -12
- package/lib/select/index.d.ts +1 -1
- package/lib/select/index.d.ts.map +1 -1
- package/lib/select/index.js +2 -3
- package/lib/select/index.js.map +1 -1
- package/lib/select/select.d.ts.map +1 -1
- package/lib/select/select.js +12 -14
- package/lib/select/select.js.map +1 -1
- package/lib/select/style/index.d.ts +4 -0
- package/lib/select/style/index.d.ts.map +1 -0
- package/lib/select/style/index.js +5 -0
- package/lib/select/style/index.js.map +1 -0
- package/lib/select/style/index.less +605 -0
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/skeleton/index.d.ts.map +1 -1
- package/lib/skeleton/index.js +5 -6
- package/lib/skeleton/index.js.map +1 -1
- package/lib/skeleton/style/index.d.ts +3 -0
- package/lib/skeleton/style/index.d.ts.map +1 -0
- package/lib/skeleton/style/index.js +4 -0
- package/lib/skeleton/style/index.js.map +1 -0
- package/lib/skeleton/style/index.less +130 -0
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.d.ts.map +1 -1
- package/lib/slider/index.js +5 -6
- package/lib/slider/index.js.map +1 -1
- package/lib/slider/style/index.d.ts +4 -0
- package/lib/slider/style/index.d.ts.map +1 -0
- package/lib/slider/style/index.js +5 -0
- package/lib/slider/style/index.js.map +1 -0
- package/lib/slider/style/index.less +197 -0
- package/lib/spin/index.d.ts +1 -1
- package/lib/spin/index.d.ts.map +1 -1
- package/lib/spin/index.js +5 -6
- package/lib/spin/index.js.map +1 -1
- package/lib/spin/style/index.d.ts +3 -0
- package/lib/spin/style/index.d.ts.map +1 -0
- package/lib/spin/style/index.js +4 -0
- package/lib/spin/style/index.js.map +1 -0
- package/lib/spin/style/index.less +214 -0
- package/lib/statistic/index.d.ts +1 -1
- package/lib/statistic/index.d.ts.map +1 -1
- package/lib/statistic/index.js +5 -6
- package/lib/statistic/index.js.map +1 -1
- package/lib/statistic/style/index.d.ts +3 -0
- package/lib/statistic/style/index.d.ts.map +1 -0
- package/lib/statistic/style/index.js +4 -0
- package/lib/statistic/style/index.js.map +1 -0
- package/lib/statistic/style/index.less +40 -0
- package/lib/steps/index.d.ts +2 -1
- package/lib/steps/index.d.ts.map +1 -1
- package/lib/steps/index.js +3 -3
- package/lib/steps/index.js.map +1 -1
- package/lib/steps/stepStyle/index.less +12 -0
- package/lib/steps/stepStyle/nav.less +281 -0
- package/lib/steps/stepStyle/small.less +5 -0
- package/lib/steps/steps.d.ts +2 -2
- package/lib/steps/steps.d.ts.map +1 -1
- package/lib/steps/steps.js +9 -12
- package/lib/steps/steps.js.map +1 -1
- package/lib/steps/style/compatibility.less +50 -0
- package/lib/steps/style/custom-icon.less +31 -0
- package/lib/steps/style/index.d.ts +3 -0
- package/lib/steps/style/index.d.ts.map +1 -0
- package/lib/steps/style/index.js +4 -0
- package/lib/steps/style/index.js.map +1 -0
- package/lib/steps/style/index.less +241 -6
- package/lib/steps/style/label-placement.less +38 -0
- package/lib/steps/style/nav.less +96 -247
- package/lib/steps/style/progress-dot.less +80 -0
- package/lib/steps/style/small.less +43 -3
- package/lib/steps/style/vertical.less +74 -0
- package/lib/style/color/bezierEasing.less +110 -0
- package/lib/style/color/colorPalette.less +75 -0
- package/lib/style/color/colors.less +149 -0
- package/lib/style/color/tinyColor.less +1184 -0
- package/lib/style/core/base.less +510 -0
- package/lib/style/core/iconfont.less +19 -0
- package/lib/style/core/index.less +4 -0
- package/lib/style/core/motion/fade.less +31 -0
- package/lib/style/core/motion/move.less +120 -0
- package/lib/style/core/motion/other.less +40 -0
- package/lib/style/core/motion/slide.less +120 -0
- package/lib/style/core/motion/swing.less +34 -0
- package/lib/style/core/motion/zoom.less +162 -0
- package/lib/style/core/motion.less +20 -0
- package/lib/style/index.d.ts +2 -0
- package/lib/style/index.d.ts.map +1 -0
- package/lib/style/index.js +3 -0
- package/lib/style/index.js.map +1 -0
- package/lib/style/index.less +2 -0
- package/lib/style/mixins/clearfix.less +13 -0
- package/lib/style/mixins/compatibility.less +22 -0
- package/lib/style/mixins/iconfont.less +44 -0
- package/lib/style/mixins/index.less +10 -0
- package/lib/style/mixins/motion.less +35 -0
- package/lib/style/mixins/operation-unit.less +18 -0
- package/lib/style/mixins/reset.less +13 -0
- package/lib/style/mixins/size.less +10 -0
- package/lib/style/mixins/typography.less +49 -0
- package/lib/style/themes/default.less +700 -0
- package/lib/style/themes/index.less +1 -0
- package/lib/style/v2-compatible-reset.d.ts +2 -0
- package/lib/style/v2-compatible-reset.d.ts.map +1 -0
- package/lib/style/v2-compatible-reset.js +3 -0
- package/lib/style/v2-compatible-reset.js.map +1 -0
- package/lib/style/v2-compatible-reset.less +51 -0
- package/lib/svg-components/illustration-403.d.ts +1 -1
- package/lib/svg-components/illustration-403.js +4 -5
- package/lib/svg-components/illustration-404.d.ts +1 -1
- package/lib/svg-components/illustration-404.js +4 -5
- package/lib/svg-components/illustration-500.d.ts +1 -1
- package/lib/svg-components/illustration-500.js +4 -5
- package/lib/svg-components/illustration-empty.d.ts +1 -1
- package/lib/svg-components/illustration-empty.js +4 -5
- package/lib/svg-components/illustration-failure.d.ts +1 -1
- package/lib/svg-components/illustration-failure.js +4 -5
- package/lib/svg-components/illustration-no-access.d.ts +1 -1
- package/lib/svg-components/illustration-no-access.js +4 -5
- package/lib/svg-components/illustration-no-chart.d.ts +1 -1
- package/lib/svg-components/illustration-no-chart.js +4 -5
- package/lib/svg-components/illustration-no-result.d.ts +1 -1
- package/lib/svg-components/illustration-no-result.js +4 -5
- package/lib/svg-components/illustration-offline.d.ts +1 -1
- package/lib/svg-components/illustration-offline.js +4 -5
- package/lib/svg-components/illustration-success.d.ts +1 -1
- package/lib/svg-components/illustration-success.js +4 -5
- package/lib/switch/index.js +4 -5
- package/lib/switch/style/index.d.ts +3 -0
- package/lib/switch/style/index.d.ts.map +1 -0
- package/lib/switch/style/index.js +4 -0
- package/lib/switch/style/index.js.map +1 -0
- package/lib/switch/style/index.less +178 -0
- package/lib/switch/switch.d.ts +1 -1
- package/lib/switch/switch.d.ts.map +1 -1
- package/lib/switch/switch.js +6 -8
- package/lib/switch/switch.js.map +1 -1
- package/lib/table/assets/image-loading-background.d.ts +1 -1
- package/lib/table/assets/image-loading-background.js +4 -5
- package/lib/table/assets/image-loading.d.ts +1 -1
- package/lib/table/assets/image-loading.js +4 -5
- package/lib/table/constants.js +1 -2
- package/lib/table/context.js +1 -2
- package/lib/table/expand.less +49 -0
- package/lib/table/hooks/index.d.ts +1 -0
- package/lib/table/hooks/index.d.ts.map +1 -1
- package/lib/table/hooks/index.js +11 -0
- package/lib/table/hooks/index.js.map +1 -1
- package/lib/table/hooks/use-column-setting.js +4 -5
- package/lib/table/hooks/use-expand-fixed.d.ts +4 -0
- package/lib/table/hooks/use-expand-fixed.d.ts.map +1 -0
- package/lib/table/hooks/use-expand-fixed.js +108 -0
- package/lib/table/hooks/use-expand-fixed.js.map +1 -0
- package/lib/table/index.d.ts +2 -1
- package/lib/table/index.d.ts.map +1 -1
- package/lib/table/index.js +3 -3
- package/lib/table/index.js.map +1 -1
- package/lib/table/style/index.d.ts +9 -0
- package/lib/table/style/index.d.ts.map +1 -0
- package/lib/table/style/index.js +10 -0
- package/lib/table/style/index.js.map +1 -0
- package/lib/table/style/index.less +838 -0
- package/lib/table/style/size.less +180 -0
- package/lib/table/table.d.ts +4 -2
- package/lib/table/table.d.ts.map +1 -1
- package/lib/table/table.js +53 -20
- package/lib/table/table.js.map +1 -1
- package/lib/table/table.less +5 -5
- package/lib/table/table.stories.d.ts +106 -29
- package/lib/table/table.stories.d.ts.map +1 -1
- package/lib/table/table.stories.js +431 -13
- package/lib/table/table.stories.js.map +1 -1
- package/lib/table/total-shower.d.ts +2 -2
- package/lib/table/total-shower.d.ts.map +1 -1
- package/lib/table/total-shower.js +2 -3
- package/lib/table/utils.d.ts +1 -0
- package/lib/table/utils.d.ts.map +1 -1
- package/lib/table/utils.js +13 -0
- package/lib/table/utils.js.map +1 -1
- package/lib/table-container/index.d.ts +3 -0
- package/lib/table-container/index.d.ts.map +1 -0
- package/lib/table-container/index.js +21 -0
- package/lib/table-container/index.js.map +1 -0
- package/lib/table-container/index.less +13 -0
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.d.ts.map +1 -1
- package/lib/tabs/index.js +2 -3
- package/lib/tabs/index.js.map +1 -1
- package/lib/tabs/style/card-style.less +186 -0
- package/lib/tabs/style/index.d.ts +3 -0
- package/lib/tabs/style/index.d.ts.map +1 -0
- package/lib/tabs/style/index.js +4 -0
- package/lib/tabs/style/index.js.map +1 -0
- package/lib/tabs/style/index.less +436 -0
- package/lib/tabs/tabs.d.ts.map +1 -1
- package/lib/tabs/tabs.js +8 -9
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/tabs-container/index.d.ts +4 -0
- package/lib/tabs-container/index.d.ts.map +1 -0
- package/lib/tabs-container/index.js +22 -0
- package/lib/tabs-container/index.js.map +1 -0
- package/lib/tabs-container/index.less +51 -0
- package/lib/tag/color.less +53 -0
- package/lib/tag/index.d.ts +4 -3
- package/lib/tag/index.d.ts.map +1 -1
- package/lib/tag/index.js +15 -10
- package/lib/tag/index.js.map +1 -1
- package/lib/tag/style/index.d.ts +3 -0
- package/lib/tag/style/index.d.ts.map +1 -0
- package/lib/tag/style/index.js +4 -0
- package/lib/tag/style/index.js.map +1 -0
- package/lib/tag/style/index.less +106 -0
- package/lib/tag/tag.d.ts +41 -0
- package/lib/tag/tag.d.ts.map +1 -0
- package/lib/tag/tag.js +183 -0
- package/lib/tag/tag.js.map +1 -0
- package/lib/tag/tag.less +228 -0
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.d.ts.map +1 -1
- package/lib/time-picker/index.js +5 -6
- package/lib/time-picker/index.js.map +1 -1
- package/lib/time-picker/style/index.d.ts +3 -0
- package/lib/time-picker/style/index.d.ts.map +1 -0
- package/lib/time-picker/style/index.js +4 -0
- package/lib/time-picker/style/index.js.map +1 -0
- package/lib/time-picker/style/index.less +247 -0
- package/lib/timeline/index.d.ts +1 -1
- package/lib/timeline/index.d.ts.map +1 -1
- package/lib/timeline/index.js +5 -6
- package/lib/timeline/index.js.map +1 -1
- package/lib/timeline/style/index.d.ts +3 -0
- package/lib/timeline/style/index.d.ts.map +1 -0
- package/lib/timeline/style/index.js +4 -0
- package/lib/timeline/style/index.js.map +1 -0
- package/lib/timeline/style/index.less +167 -0
- package/lib/title/index.d.ts +2 -1
- package/lib/title/index.d.ts.map +1 -1
- package/lib/title/index.js +6 -8
- package/lib/title/index.js.map +1 -1
- package/lib/tntd-action/index.d.ts +4 -0
- package/lib/tntd-action/index.d.ts.map +1 -0
- package/lib/tntd-action/index.js +12 -0
- package/lib/tntd-action/index.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +5 -7
- package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +4 -5
- package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +4 -5
- package/lib/tntd-cascader/AntdCascader/component/context.js +3 -6
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts +2 -2
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts.map +1 -1
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +4 -5
- package/lib/tntd-cascader/AntdCascader/component/getIcons.d.ts +2 -2
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +4 -5
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +9 -12
- package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
- package/lib/tntd-cascader/AntdCascader/config/utils.js +8 -12
- package/lib/tntd-cascader/AntdCascader/config/warning.js +4 -5
- package/lib/tntd-cascader/AntdCascader/index.d.ts.map +1 -1
- package/lib/tntd-cascader/AntdCascader/index.js +14 -18
- package/lib/tntd-cascader/AntdCascader/index.js.map +1 -1
- package/lib/tntd-cascader/AntdCascader/interface.js +1 -2
- package/lib/tntd-cascader/rc-cascader/Cascader.js +7 -10
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts +1 -1
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts.map +1 -1
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +6 -7
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts +1 -1
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts.map +1 -1
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +8 -10
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +14 -17
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +8 -10
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +11 -13
- package/lib/tntd-cascader/rc-cascader/context.js +4 -5
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +6 -7
- package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +5 -6
- package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +5 -6
- package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +3 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +10 -13
- package/lib/tntd-cascader/rc-cascader/index.js +1 -2
- package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +3 -6
- package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +2 -2
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +1 -2
- package/lib/tntd-form/ErrorList.d.ts +1 -1
- package/lib/tntd-form/ErrorList.d.ts.map +1 -1
- package/lib/tntd-form/ErrorList.js +6 -6
- package/lib/tntd-form/Form.d.ts +1 -1
- package/lib/tntd-form/Form.d.ts.map +1 -1
- package/lib/tntd-form/Form.js +15 -18
- package/lib/tntd-form/Form.js.map +1 -1
- package/lib/tntd-form/FormItem/ItemHolder.d.ts +1 -1
- package/lib/tntd-form/FormItem/ItemHolder.d.ts.map +1 -1
- package/lib/tntd-form/FormItem/ItemHolder.js +12 -20
- package/lib/tntd-form/FormItem/ItemHolder.js.map +1 -1
- package/lib/tntd-form/FormItem/index.js +14 -14
- package/lib/tntd-form/FormItemInput.d.ts +1 -1
- package/lib/tntd-form/FormItemInput.d.ts.map +1 -1
- package/lib/tntd-form/FormItemInput.js +5 -6
- package/lib/tntd-form/FormItemInput.js.map +1 -1
- package/lib/tntd-form/FormItemLabel.d.ts +1 -1
- package/lib/tntd-form/FormItemLabel.d.ts.map +1 -1
- package/lib/tntd-form/FormItemLabel.js +9 -13
- package/lib/tntd-form/FormItemLabel.js.map +1 -1
- package/lib/tntd-form/FormList.js +5 -8
- package/lib/tntd-form/context.d.ts +1 -1
- package/lib/tntd-form/context.d.ts.map +1 -1
- package/lib/tntd-form/context.js +14 -19
- package/lib/tntd-form/context.js.map +1 -1
- package/lib/tntd-form/hooks/useDebounce.js +5 -5
- package/lib/tntd-form/hooks/useForm.js +5 -5
- package/lib/tntd-form/hooks/useFormItemStatus.js +1 -2
- package/lib/tntd-form/hooks/useFrameState.js +10 -9
- package/lib/tntd-form/hooks/useItemRef.js +3 -3
- package/lib/tntd-form/index.js +4 -5
- package/lib/tntd-form/style/index.d.ts +1 -1
- package/lib/tntd-form/style/index.d.ts.map +1 -1
- package/lib/tntd-form/style/index.js +1 -1
- package/lib/tntd-form/style/index.js.map +1 -1
- package/lib/tntd-form/style/index.less +1 -1
- package/lib/tntd-form/style/rtl.less +3 -3
- package/lib/tntd-form/validateMessagesContext.js +1 -2
- package/lib/tntd-icon/index.d.ts +2 -1
- package/lib/tntd-icon/index.d.ts.map +1 -1
- package/lib/tntd-icon/index.js +3 -6
- package/lib/tntd-layout/ActionsContext.js +1 -2
- package/lib/tntd-layout/AppList.js +7 -8
- package/lib/tntd-layout/Application.d.ts +2 -1
- package/lib/tntd-layout/Application.d.ts.map +1 -1
- package/lib/tntd-layout/Application.js +7 -8
- package/lib/tntd-layout/Avatar.d.ts +2 -1
- package/lib/tntd-layout/Avatar.d.ts.map +1 -1
- package/lib/tntd-layout/Avatar.js +5 -6
- package/lib/tntd-layout/CompatibleLanguage.d.ts +2 -1
- package/lib/tntd-layout/CompatibleLanguage.d.ts.map +1 -1
- package/lib/tntd-layout/CompatibleLanguage.js +7 -8
- package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts +2 -1
- package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts.map +1 -1
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +5 -6
- package/lib/tntd-layout/EnterpriseLayout/Language.js +7 -8
- package/lib/tntd-layout/EnterpriseLayout/Theme.d.ts +2 -1
- package/lib/tntd-layout/EnterpriseLayout/Theme.d.ts.map +1 -1
- package/lib/tntd-layout/EnterpriseLayout/Theme.js +7 -8
- package/lib/tntd-layout/EnterpriseLayout/index.js +2 -3
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.d.ts +2 -1
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.d.ts.map +1 -1
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +7 -8
- package/lib/tntd-layout/GlobalNavigation/index.js +7 -8
- package/lib/tntd-layout/Header.js +9 -6
- package/lib/tntd-layout/HeaderActions.js +18 -21
- package/lib/tntd-layout/HeaderNavs.js +8 -12
- package/lib/tntd-layout/HeaderTabs.js +10 -14
- package/lib/tntd-layout/Iconfont.d.ts +2 -1
- package/lib/tntd-layout/Iconfont.d.ts.map +1 -1
- package/lib/tntd-layout/Iconfont.js +2 -3
- package/lib/tntd-layout/Language.js +7 -8
- package/lib/tntd-layout/Layout.js +7 -8
- package/lib/tntd-layout/Logo.js +9 -6
- package/lib/tntd-layout/OrgAppList.js +7 -8
- package/lib/tntd-layout/SideMenu.js +8 -11
- package/lib/tntd-layout/Theme.d.ts +2 -1
- package/lib/tntd-layout/Theme.d.ts.map +1 -1
- package/lib/tntd-layout/Theme.js +7 -8
- package/lib/tntd-layout/createActions.js +2 -3
- package/lib/tntd-layout/images/index.js +4 -7
- package/lib/tntd-layout/index.d.ts +3 -2
- package/lib/tntd-layout/index.d.ts.map +1 -1
- package/lib/tntd-layout/index.js +6 -11
- package/lib/tntd-layout/paaslayout/CompactSideMenu.d.ts +2 -1
- package/lib/tntd-layout/paaslayout/CompactSideMenu.d.ts.map +1 -1
- package/lib/tntd-layout/paaslayout/CompactSideMenu.js +7 -8
- package/lib/tntd-layout/paaslayout/Header.d.ts +2 -1
- package/lib/tntd-layout/paaslayout/Header.d.ts.map +1 -1
- package/lib/tntd-layout/paaslayout/Header.js +9 -6
- package/lib/tntd-layout/paaslayout/Logo.d.ts +2 -1
- package/lib/tntd-layout/paaslayout/Logo.d.ts.map +1 -1
- package/lib/tntd-layout/paaslayout/Logo.js +6 -3
- package/lib/tntd-layout/paaslayout/SideMenu.d.ts +2 -1
- package/lib/tntd-layout/paaslayout/SideMenu.d.ts.map +1 -1
- package/lib/tntd-layout/paaslayout/SideMenu.js +7 -8
- package/lib/tntd-layout/paaslayout/index.js +7 -8
- package/lib/tntd-layout/storage.js +14 -27
- package/lib/tntd-modal/index.d.ts +2 -1
- package/lib/tntd-modal/index.d.ts.map +1 -1
- package/lib/tntd-modal/index.js +11 -15
- package/lib/tntd-rc-select/_util/DisabledContext.js +5 -7
- package/lib/tntd-rc-select/_util/FormItemInputContext.js +4 -5
- package/lib/tntd-rc-select/_util/PurePanel.d.ts +2 -2
- package/lib/tntd-rc-select/_util/PurePanel.d.ts.map +1 -1
- package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
- package/lib/tntd-rc-select/_util/SizeContext.js +4 -5
- package/lib/tntd-rc-select/_util/context.js +3 -6
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts +2 -2
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.d.ts.map +1 -1
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +4 -5
- package/lib/tntd-rc-select/_util/getIcons.d.ts +2 -2
- package/lib/tntd-rc-select/_util/getIcons.js +4 -5
- package/lib/tntd-rc-select/_util/getIcons.js.map +1 -1
- package/lib/tntd-rc-select/_util/interface.js +1 -2
- package/lib/tntd-rc-select/_util/motion.js +3 -6
- package/lib/tntd-rc-select/_util/type.js +3 -5
- package/lib/tntd-rc-select/_util/useCompactItemContext.js +9 -12
- package/lib/tntd-rc-select/_util/warning.js +4 -5
- package/lib/tntd-rc-select/index.js +11 -14
- package/lib/tntd-rc-select/style/index.less +844 -740
- package/lib/tntd-select/DropDownWrap.js +16 -19
- package/lib/tntd-select/index.d.ts +1 -1
- package/lib/tntd-select/index.d.ts.map +1 -1
- package/lib/tntd-select/index.js +48 -49
- package/lib/tntd-select/index.js.map +1 -1
- package/lib/tooltip/index.d.ts +4 -3
- package/lib/tooltip/index.d.ts.map +1 -1
- package/lib/tooltip/index.js +7 -7
- package/lib/tooltip/index.js.map +1 -1
- package/lib/tooltip/index.less +29 -0
- package/lib/tooltip/style/index.d.ts +3 -0
- package/lib/tooltip/style/index.d.ts.map +1 -0
- package/lib/tooltip/style/index.js +4 -0
- package/lib/tooltip/style/index.js.map +1 -0
- package/lib/tooltip/style/index.less +187 -0
- package/lib/tooltip/tooltip.d.ts +9 -0
- package/lib/tooltip/tooltip.d.ts.map +1 -0
- package/lib/tooltip/tooltip.js +53 -0
- package/lib/tooltip/tooltip.js.map +1 -0
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.d.ts.map +1 -1
- package/lib/transfer/index.js +5 -6
- package/lib/transfer/index.js.map +1 -1
- package/lib/transfer/style/customize.less +62 -0
- package/lib/transfer/style/index.d.ts +7 -0
- package/lib/transfer/style/index.d.ts.map +1 -0
- package/lib/transfer/style/index.js +8 -0
- package/lib/transfer/style/index.js.map +1 -0
- package/lib/transfer/style/index.less +191 -0
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/index.d.ts.map +1 -1
- package/lib/tree/index.js +5 -6
- package/lib/tree/index.js.map +1 -1
- package/lib/tree/style/directory.less +95 -0
- package/lib/tree/style/index.d.ts +3 -0
- package/lib/tree/style/index.d.ts.map +1 -0
- package/lib/tree/style/index.js +4 -0
- package/lib/tree/style/index.js.map +1 -0
- package/lib/tree/style/index.less +280 -0
- package/lib/tree/style/mixin.less +29 -0
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/index.d.ts.map +1 -1
- package/lib/tree-select/index.js +6 -8
- package/lib/tree-select/index.js.map +1 -1
- package/lib/tree-select/style/index.d.ts +5 -0
- package/lib/tree-select/style/index.d.ts.map +1 -0
- package/lib/tree-select/style/index.js +6 -0
- package/lib/tree-select/style/index.js.map +1 -0
- package/lib/tree-select/style/index.less +191 -0
- package/lib/typography/index.d.ts +1 -1
- package/lib/typography/index.d.ts.map +1 -1
- package/lib/typography/index.js +5 -6
- package/lib/typography/index.js.map +1 -1
- package/lib/typography/style/index.d.ts +5 -0
- package/lib/typography/style/index.d.ts.map +1 -0
- package/lib/typography/style/index.js +6 -0
- package/lib/typography/style/index.js.map +1 -0
- package/lib/typography/style/index.less +204 -0
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/index.d.ts.map +1 -1
- package/lib/upload/index.js +5 -6
- package/lib/upload/index.js.map +1 -1
- package/lib/upload/style/index.d.ts +5 -0
- package/lib/upload/style/index.d.ts.map +1 -0
- package/lib/upload/style/index.js +6 -0
- package/lib/upload/style/index.js.map +1 -0
- package/lib/upload/style/index.less +542 -0
- package/lib/utils/checkAuth.js +2 -4
- package/lib/utils/findMenuInfoByPath.js +2 -4
- package/lib/utils/index.js +10 -18
- package/lib/utils/lang.js +6 -11
- package/lib/version/index.d.ts +1 -1
- package/lib/version/index.d.ts.map +1 -1
- package/lib/version/index.js +5 -6
- package/lib/version/index.js.map +1 -1
- package/lib/version/style/index.d.ts +2 -0
- package/lib/version/style/index.d.ts.map +1 -0
- package/lib/version/style/index.js +3 -0
- package/lib/version/style/index.js.map +1 -0
- package/lib/water-mark/index.js +7 -9
- package/package.json +5 -4
- package/themes/common/css2.x.css +154 -0
- package/themes/common/css3.x.css +154 -0
- package/themes/common/index.less +2 -0
- package/themes/default/colors.less +12 -4
- package/themes/default/colorsVar.less +160 -0
- package/themes/default/lessToCssVar.less +127 -0
- package/themes/default/lessVars2.x.less +33 -0
- package/themes/default/lessVars3.x.less +35 -0
- package/themes/default/variables.less +35 -25
- package/themes/default/variablesVar.less +675 -0
- package/themes/utils/colorPalette.less +11 -0
- package/es/array-input/icon.js +0 -25
- package/es/array-input/icon.js.map +0 -1
- package/es/drawer/drawer.less +0 -20
- package/es/grid/RowContext.js.map +0 -1
- package/es/grid/col.js.map +0 -1
- package/es/grid/hooks/useBreakpoint.js.map +0 -1
- package/es/grid/row.js.map +0 -1
- package/lib/array-input/icon.d.ts +0 -3
- package/lib/array-input/icon.d.ts.map +0 -1
- package/lib/array-input/icon.js +0 -34
- package/lib/array-input/icon.js.map +0 -1
- package/lib/drawer/drawer.less +0 -20
- package/lib/grid/RowContext.d.ts.map +0 -1
- package/lib/grid/RowContext.js.map +0 -1
- package/lib/grid/col.d.ts.map +0 -1
- package/lib/grid/col.js.map +0 -1
- package/lib/grid/hooks/useBreakpoint.d.ts.map +0 -1
- package/lib/grid/hooks/useBreakpoint.js.map +0 -1
- package/lib/grid/row.d.ts.map +0 -1
- /package/es/{grid → grid-v4}/RowContext.js +0 -0
- /package/es/{grid → grid-v4}/col.js +0 -0
- /package/es/{grid → grid-v4}/hooks/useBreakpoint.js +0 -0
- /package/es/{grid → grid-v4}/row.js +0 -0
- /package/es/{grid → grid-v4}/style/rtl.less +0 -0
- /package/lib/{grid → grid-v4}/RowContext.d.ts +0 -0
- /package/lib/{grid → grid-v4}/col.d.ts +0 -0
- /package/lib/{grid → grid-v4}/hooks/useBreakpoint.d.ts +0 -0
- /package/lib/{grid → grid-v4}/row.d.ts +0 -0
- /package/lib/{grid → grid-v4}/style/rtl.less +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@import '../../style/themes/index';
|
|
2
|
+
@import '../../style/mixins/index';
|
|
3
|
+
|
|
4
|
+
@anchor-border-width: 2px;
|
|
5
|
+
|
|
6
|
+
.@{ant-prefix}-anchor {
|
|
7
|
+
.reset-component;
|
|
8
|
+
|
|
9
|
+
position: relative;
|
|
10
|
+
padding-left: @anchor-border-width;
|
|
11
|
+
|
|
12
|
+
&-wrapper {
|
|
13
|
+
margin-left: -4px;
|
|
14
|
+
padding-left: 4px;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
background-color: @component-background;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-ink {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
height: 100%;
|
|
24
|
+
&::before {
|
|
25
|
+
position: relative;
|
|
26
|
+
display: block;
|
|
27
|
+
width: @anchor-border-width;
|
|
28
|
+
height: 100%;
|
|
29
|
+
margin: 0 auto;
|
|
30
|
+
background-color: @anchor-border-color;
|
|
31
|
+
content: ' ';
|
|
32
|
+
}
|
|
33
|
+
&-ball {
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 50%;
|
|
36
|
+
display: none;
|
|
37
|
+
width: 8px;
|
|
38
|
+
height: 8px;
|
|
39
|
+
background-color: @component-background;
|
|
40
|
+
border: 2px solid @primary-color;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
transform: translateX(-50%);
|
|
43
|
+
transition: top 0.3s ease-in-out;
|
|
44
|
+
&.visible {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.fixed &-ink &-ink-ball {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-link {
|
|
55
|
+
padding: 7px 0 7px 16px;
|
|
56
|
+
line-height: 1.143;
|
|
57
|
+
|
|
58
|
+
&-title {
|
|
59
|
+
position: relative;
|
|
60
|
+
display: block;
|
|
61
|
+
margin-bottom: 6px;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
color: @text-color;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
text-overflow: ellipsis;
|
|
66
|
+
transition: all 0.3s;
|
|
67
|
+
|
|
68
|
+
&:only-child {
|
|
69
|
+
margin-bottom: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-active > &-title {
|
|
74
|
+
color: @primary-color;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-link &-link {
|
|
79
|
+
padding-top: 5px;
|
|
80
|
+
padding-bottom: 5px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
export default function
|
|
2
|
-
|
|
3
|
-
defaultValue: any;
|
|
4
|
-
value: any;
|
|
5
|
-
onChange: any;
|
|
6
|
-
mode?: string | undefined;
|
|
7
|
-
gutter?: number | undefined;
|
|
8
|
-
require?: boolean | undefined;
|
|
9
|
-
deleteTip?: string | undefined;
|
|
10
|
-
plusTip?: string | undefined;
|
|
11
|
-
addText?: string | undefined;
|
|
12
|
-
}): JSX.Element;
|
|
1
|
+
export default function WarpArrayInput(props: any): React.JSX.Element;
|
|
2
|
+
import React from "react";
|
|
13
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/array-input/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/array-input/index.js"],"names":[],"mappings":"AA8NA,sEAQC"}
|
package/lib/array-input/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports["default"] =
|
|
7
|
+
exports["default"] = WarpArrayInput;
|
|
8
8
|
var _sumBy2 = _interopRequireDefault(require("lodash/sumBy"));
|
|
9
9
|
var _sum2 = _interopRequireDefault(require("lodash/sum"));
|
|
10
10
|
var _set2 = _interopRequireDefault(require("lodash/set"));
|
|
@@ -12,33 +12,33 @@ var _isFunction2 = _interopRequireDefault(require("lodash/isFunction"));
|
|
|
12
12
|
var _isArray2 = _interopRequireDefault(require("lodash/isArray"));
|
|
13
13
|
var _get2 = _interopRequireDefault(require("lodash/get"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
var
|
|
15
|
+
var _LocaleReceiver = _interopRequireDefault(require("antd/lib/locale-provider/LocaleReceiver"));
|
|
16
16
|
var _col = _interopRequireDefault(require("../col"));
|
|
17
17
|
var _row = _interopRequireDefault(require("../row"));
|
|
18
18
|
var _table = _interopRequireDefault(require("../table"));
|
|
19
19
|
var _tooltip = _interopRequireDefault(require("../tooltip"));
|
|
20
|
+
var _icon = _interopRequireDefault(require("../icon"));
|
|
21
|
+
var _button = _interopRequireDefault(require("../button"));
|
|
20
22
|
require("./index.less");
|
|
21
|
-
function _getRequireWildcardCache(
|
|
22
|
-
function _interopRequireWildcard(
|
|
23
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
24
26
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
25
27
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
26
28
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
27
29
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
28
30
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
|
-
function _toPropertyKey(
|
|
30
|
-
function _toPrimitive(
|
|
31
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
32
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31
33
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
32
34
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
33
35
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
34
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
35
|
-
function _iterableToArrayLimit(
|
|
36
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
37
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
36
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
37
39
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
38
40
|
var t = {};
|
|
39
|
-
for (var p in s)
|
|
40
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
41
|
-
}
|
|
41
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
42
42
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
43
43
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
44
44
|
}
|
|
@@ -63,11 +63,17 @@ function ArrayInput(_ref) {
|
|
|
63
63
|
deleteTip = _ref$deleteTip === void 0 ? '' : _ref$deleteTip,
|
|
64
64
|
_ref$plusTip = _ref.plusTip,
|
|
65
65
|
plusTip = _ref$plusTip === void 0 ? '' : _ref$plusTip,
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
addText = _ref.addText,
|
|
67
|
+
locale = _ref.locale,
|
|
68
|
+
_ref$xProps = _ref.xProps,
|
|
69
|
+
xProps = _ref$xProps === void 0 ? {} : _ref$xProps,
|
|
70
|
+
renderAction = _ref.renderAction;
|
|
68
71
|
if (!(0, _isFunction2["default"])(children)) {
|
|
69
72
|
throw new Error('ArrayInput的children必须是函数');
|
|
70
73
|
}
|
|
74
|
+
if (addText === undefined) {
|
|
75
|
+
addText = locale === null || locale === void 0 ? void 0 : locale.add;
|
|
76
|
+
}
|
|
71
77
|
var _useState = (0, _react.useState)(value || defaultValue),
|
|
72
78
|
_useState2 = _slicedToArray(_useState, 2),
|
|
73
79
|
_value = _useState2[0],
|
|
@@ -110,6 +116,9 @@ function ArrayInput(_ref) {
|
|
|
110
116
|
if (!(0, _isArray2["default"])(fields)) {
|
|
111
117
|
fields = (0, _get2["default"])(fields, 'props.children', []);
|
|
112
118
|
}
|
|
119
|
+
var actionSpan = 24 - (0, _sum2["default"])(fields.map(function (f) {
|
|
120
|
+
return (0, _get2["default"])(f, 'props.span', 4);
|
|
121
|
+
})) % 24;
|
|
113
122
|
return _react["default"].createElement(_row["default"], {
|
|
114
123
|
gutter: gutter,
|
|
115
124
|
key: index,
|
|
@@ -139,41 +148,32 @@ function ArrayInput(_ref) {
|
|
|
139
148
|
}
|
|
140
149
|
}, other)));
|
|
141
150
|
}), _react["default"].createElement(_col["default"], {
|
|
142
|
-
span:
|
|
143
|
-
return (0, _get2["default"])(f, 'props.span', 4);
|
|
144
|
-
})) % 24
|
|
151
|
+
span: actionSpan
|
|
145
152
|
}, _react["default"].createElement("span", {
|
|
146
153
|
className: "tntd-array-input-action"
|
|
147
|
-
},
|
|
148
|
-
title:
|
|
149
|
-
placement: "left"
|
|
150
|
-
}, _react["default"].createElement("span", {
|
|
151
|
-
className: "mr10",
|
|
152
|
-
onClick: function onClick() {
|
|
153
|
-
return onAdd(index);
|
|
154
|
-
}
|
|
155
|
-
}, _icon.plusIcon)) : _react["default"].createElement("span", {
|
|
156
|
-
className: "mr10",
|
|
157
|
-
onClick: function onClick() {
|
|
158
|
-
return onAdd(index);
|
|
159
|
-
}
|
|
160
|
-
}, _icon.plusIcon), deleteTip ? _react["default"].createElement(_tooltip["default"], {
|
|
161
|
-
title: deleteTip,
|
|
162
|
-
placement: "right"
|
|
154
|
+
}, renderAction ? renderAction(item, index, onDelete, onAdd) : _react["default"].createElement(_react["default"].Fragment, null, deleteTip ? _react["default"].createElement(_tooltip["default"], {
|
|
155
|
+
title: deleteTip
|
|
163
156
|
}, _react["default"].createElement("span", {
|
|
164
157
|
onClick: function onClick() {
|
|
165
158
|
return onDelete(index);
|
|
166
159
|
}
|
|
167
|
-
},
|
|
160
|
+
}, _react["default"].createElement(_icon["default"], {
|
|
161
|
+
type: "delete"
|
|
162
|
+
}))) : _react["default"].createElement("span", {
|
|
168
163
|
onClick: function onClick() {
|
|
169
164
|
return onDelete(index);
|
|
170
165
|
}
|
|
171
|
-
}, _icon
|
|
172
|
-
|
|
166
|
+
}, _react["default"].createElement(_icon["default"], {
|
|
167
|
+
type: "delete"
|
|
168
|
+
}))))));
|
|
169
|
+
}), _react["default"].createElement(_button["default"], {
|
|
170
|
+
type: "link",
|
|
173
171
|
onClick: function onClick() {
|
|
174
172
|
return onAdd();
|
|
175
173
|
}
|
|
176
|
-
},
|
|
174
|
+
}, _react["default"].createElement(_icon["default"], {
|
|
175
|
+
type: "plus"
|
|
176
|
+
}), addText));
|
|
177
177
|
} else {
|
|
178
178
|
var fields = children({}, 0);
|
|
179
179
|
if (!(0, _isArray2["default"])(fields)) {
|
|
@@ -191,17 +191,11 @@ function ArrayInput(_ref) {
|
|
|
191
191
|
});
|
|
192
192
|
return _react["default"].createElement("div", {
|
|
193
193
|
className: "tntd-array-input"
|
|
194
|
-
}, _react["default"].createElement(_table["default"], {
|
|
194
|
+
}, _react["default"].createElement(_table["default"], Object.assign({
|
|
195
195
|
dataSource: dataSource,
|
|
196
196
|
pagination: false,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
onClick: function onClick() {
|
|
200
|
-
return onAdd();
|
|
201
|
-
}
|
|
202
|
-
}, addText)
|
|
203
|
-
}
|
|
204
|
-
}, fields.map(function (field) {
|
|
197
|
+
bordered: true
|
|
198
|
+
}, xProps), fields.map(function (field) {
|
|
205
199
|
var _ref2 = (field === null || field === void 0 ? void 0 : field.props) || {},
|
|
206
200
|
name = _ref2.name,
|
|
207
201
|
span = _ref2.span,
|
|
@@ -232,34 +226,45 @@ function ArrayInput(_ref) {
|
|
|
232
226
|
title: "\u64CD\u4F5C",
|
|
233
227
|
width: getWidth(24 - (0, _sumBy2["default"])(fields, 'props.span') % 24),
|
|
234
228
|
render: function render(text, row, index) {
|
|
229
|
+
if (renderAction) {
|
|
230
|
+
return renderAction(row, index, onDelete, onAdd);
|
|
231
|
+
}
|
|
235
232
|
return _react["default"].createElement("span", {
|
|
236
233
|
className: "tntd-array-input-action"
|
|
237
|
-
},
|
|
238
|
-
title:
|
|
239
|
-
placement: "left"
|
|
240
|
-
}, _react["default"].createElement("span", {
|
|
241
|
-
className: "mr10",
|
|
242
|
-
onClick: function onClick() {
|
|
243
|
-
return onAdd(index);
|
|
244
|
-
}
|
|
245
|
-
}, _icon.plusIcon)) : _react["default"].createElement("span", {
|
|
246
|
-
className: "mr10",
|
|
247
|
-
onClick: function onClick() {
|
|
248
|
-
return onAdd(index);
|
|
249
|
-
}
|
|
250
|
-
}, _icon.plusIcon), deleteTip ? _react["default"].createElement(_tooltip["default"], {
|
|
251
|
-
title: deleteTip,
|
|
252
|
-
placement: "right"
|
|
234
|
+
}, deleteTip ? _react["default"].createElement(_tooltip["default"], {
|
|
235
|
+
title: deleteTip
|
|
253
236
|
}, _react["default"].createElement("span", {
|
|
254
237
|
onClick: function onClick() {
|
|
255
238
|
return onDelete(index);
|
|
256
239
|
}
|
|
257
|
-
},
|
|
240
|
+
}, _react["default"].createElement(_icon["default"], {
|
|
241
|
+
type: "delete"
|
|
242
|
+
}))) : _react["default"].createElement("span", {
|
|
258
243
|
onClick: function onClick() {
|
|
259
244
|
return onDelete(index);
|
|
260
245
|
}
|
|
261
|
-
}, _icon
|
|
246
|
+
}, _react["default"].createElement(_icon["default"], {
|
|
247
|
+
type: "delete"
|
|
248
|
+
})));
|
|
249
|
+
}
|
|
250
|
+
})), _react["default"].createElement(_button["default"], {
|
|
251
|
+
type: "dashed",
|
|
252
|
+
block: true,
|
|
253
|
+
className: "mt10",
|
|
254
|
+
onClick: function onClick() {
|
|
255
|
+
return onAdd();
|
|
262
256
|
}
|
|
263
|
-
}
|
|
257
|
+
}, _react["default"].createElement(_icon["default"], {
|
|
258
|
+
type: "plus"
|
|
259
|
+
}), addText));
|
|
264
260
|
}
|
|
261
|
+
}
|
|
262
|
+
function WarpArrayInput(props) {
|
|
263
|
+
return _react["default"].createElement(_LocaleReceiver["default"], {
|
|
264
|
+
componentName: "ArrayInput"
|
|
265
|
+
}, function (locale) {
|
|
266
|
+
return _react["default"].createElement(ArrayInput, Object.assign({}, props, {
|
|
267
|
+
locale: locale
|
|
268
|
+
}));
|
|
269
|
+
});
|
|
265
270
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/array-input/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAkE;AAClE,+CAA+E;AAC/E,iCAA6C;AAE7C,iDAAwB;AACxB,iDAAwB;AACxB,qDAA4B;AAC5B,yDAAgC;AAEhC,wBAAqB;AAErB,MAAM,EAAE,MAAM,EAAE,GAAG,eAAK,CAAA;AACxB,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,CAAA;AAEtC,SAAwB,UAAU,CAAC,EACjC,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,MAAM,EACb,MAAM,GAAG,EAAE,EACX,OAAO,GAAG,KAAK,EACf,SAAS,GAAG,EAAE,EACd,OAAO,GAAG,EAAE,EACZ,OAAO,GAAG,IAAI,GACf;IACC,IAAI,CAAC,IAAA,mBAAU,EAAC,QAAQ,CAAC,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;KAC5C;IAED,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,IAAI,YAAY,CAAC,CAAA;IAE1D,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,QAAQ,CAAC,KAAK,CAAC,CAAA;IACjB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,MAAM,SAAS,GAAG,IAAA,mBAAW,EAAC,CAAC,KAAK,EAAE,EAAE;QACtC,IAAI,QAAQ,EAAE;YACZ,QAAQ,CAAC,KAAK,CAAC,CAAA;SAChB;aAAM;YACL,QAAQ,CAAC,KAAK,CAA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AAM,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAC/C,eAAQ,CACJ,CACR;4BACA,SAAS,CAAC,CAAC,CAAC,CACX,8BAAC,iBAAO,IAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAC,OAAO;gCAC1C,wCAAM,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAG,iBAAU,CAAQ,CACjD,CACX,CAAC,CAAC,CAAC,CACF,wCAAM,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAG,iBAAU,CAAQ,CAC1D,CACI,CACR,CAAA;oBACH,CAAC,GACO,CACJ,CACJ,CACP,CAAA;KACF;AACH,CAAC;AA1MD,6BA0MC","sourcesContent":["import { get, isArray, isFunction, set, sum, sumBy } from 'lodash'\nimport React, { isValidElement, useCallback, useEffect, useState } from 'react'\nimport { deleteIcon, plusIcon } from './icon'\n\nimport Col from '../col'\nimport Row from '../row'\nimport Table from '../table'\nimport Tooltip from '../tooltip'\n\nimport './index.less'\n\nconst { Column } = Table\nconst getWidth = (span) => 1000 / span\n\nexport default function ArrayInput({\n children,\n defaultValue,\n value,\n onChange,\n mode = 'list',\n gutter = 10,\n require = false,\n deleteTip = '',\n plusTip = '',\n addText = '添加',\n}) {\n if (!isFunction(children)) {\n throw new Error('ArrayInput的children必须是函数')\n }\n\n const [_value, setValue] = useState(value || defaultValue)\n\n useEffect(() => {\n setValue(value)\n }, [value])\n\n const _onChange = useCallback((value) => {\n if (onChange) {\n onChange(value)\n } else {\n setValue(value)\n }\n }, [])\n\n let inValue = _value || []\n if (require && inValue.length === 0) {\n inValue = [{}]\n }\n\n const changeValue = (index, name, value) => {\n inValue[index] = {\n ...inValue[index],\n [name]: value,\n }\n _onChange([...inValue])\n }\n\n const onAdd = (index) => {\n if (index === undefined) {\n _onChange([...inValue, {}])\n } else {\n inValue.splice(index + 1, 0, {})\n _onChange([...inValue])\n }\n }\n\n const onDelete = (i) => {\n inValue.splice(i, 1)\n _onChange([...inValue])\n }\n\n if (mode === 'list') {\n return (\n <div className=\"tntd-array-input\">\n {inValue.map((item, index) => {\n let fields = children(item, index)\n if (!isArray(fields)) {\n fields = get(fields, 'props.children', [])\n }\n return (\n <Row gutter={gutter} key={index} className=\"tntd-array-input-item\">\n {fields.map((field, i) => {\n if (!isValidElement(field)) {\n return field ? (\n <Col span={4} key={i}>\n {field}\n </Col>\n ) : (\n ''\n )\n }\n const { name, span = 4, onChange: fieldChange, ...other } = field?.props\n return (\n <Col span={span} key={i}>\n {React.cloneElement(field, {\n value: item[name] || undefined,\n onChange: (e) => {\n fieldChange && fieldChange(e, index, changeValue)\n const newValue = e.target ? e.target.value : e\n changeValue(index, name, newValue)\n },\n ...other,\n })}\n </Col>\n )\n })}\n <Col span={24 - (sum(fields.map((f) => get(f, 'props.span', 4))) % 24)}>\n <span className=\"tntd-array-input-action\">\n {plusTip ? (\n <Tooltip title={plusTip} placement=\"left\">\n <span className=\"mr10\" onClick={() => onAdd(index)}>\n {plusIcon}\n </span>\n </Tooltip>\n ) : (\n <span className=\"mr10\" onClick={() => onAdd(index)}>\n {plusIcon}\n </span>\n )}\n {deleteTip ? (\n <Tooltip title={deleteTip} placement=\"right\">\n <span onClick={() => onDelete(index)}>{deleteIcon}</span>\n </Tooltip>\n ) : (\n <span onClick={() => onDelete(index)}>{deleteIcon}</span>\n )}\n </span>\n </Col>\n </Row>\n )\n })}\n {inValue.length === 0 && <a onClick={() => onAdd()}>{addText}</a>}\n </div>\n )\n } else {\n let fields = children({}, 0)\n if (!isArray(fields)) {\n fields = get(fields, 'props.children', [])\n }\n const dataSource = inValue.map((value, index) => {\n const fields = children(value, index)\n const back = {}\n fields.forEach((field) => {\n const name = field?.props?.name\n name && set(back, name, field)\n })\n return back\n })\n return (\n <div className=\"tntd-array-input\">\n <Table\n dataSource={dataSource}\n pagination={false}\n locale={{\n emptyText: <a onClick={() => onAdd()}>{addText}</a>,\n }}\n >\n {fields.map((field) => {\n const { name, span, title } = field?.props || {}\n return (\n <Column\n key={name}\n dataIndex={name}\n title={title}\n width={getWidth(span || 24 / (fields.length + 1))}\n render={(field, row, index) => {\n if (!isValidElement(field)) {\n return field\n }\n const { onChange: fieldChange } = field.props\n return React.cloneElement(field, {\n value: inValue[index][name] || undefined,\n onChange: (e) => {\n fieldChange && fieldChange(e, index, changeValue)\n const newValue = e.target ? e.target.value : e\n changeValue(index, name, newValue)\n },\n })\n }}\n ></Column>\n )\n })}\n <Column\n key=\"action\"\n dataIndex=\"action\"\n title=\"操作\"\n width={getWidth(24 - (sumBy(fields, 'props.span') % 24))}\n render={(text, row, index) => {\n return (\n <span className=\"tntd-array-input-action\">\n {plusTip ? (\n <Tooltip title={plusTip} placement=\"left\">\n <span className=\"mr10\" onClick={() => onAdd(index)}>\n {plusIcon}\n </span>\n </Tooltip>\n ) : (\n <span className=\"mr10\" onClick={() => onAdd(index)}>\n {plusIcon}\n </span>\n )}\n {deleteTip ? (\n <Tooltip title={deleteTip} placement=\"right\">\n <span onClick={() => onDelete(index)}>{deleteIcon}</span>\n </Tooltip>\n ) : (\n <span onClick={() => onDelete(index)}>{deleteIcon}</span>\n )}\n </span>\n )\n }}\n ></Column>\n </Table>\n </div>\n )\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/array-input/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAkE;AAClE,+CAA+E;AAC/E,4FAAmE;AACnE,iDAAwB;AACxB,iDAAwB;AACxB,qDAA4B;AAC5B,yDAAgC;AAChC,mDAA0B;AAC1B,uDAA8B;AAE9B,wBAAqB;AAErB,MAAM,EAAE,MAAM,EAAE,GAAG,eAAK,CAAA;AACxB,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,CAAA;AAEtC,SAAS,UAAU,CAAC,EACl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AC,MAAM,EAAE,EAAE;QACV,OAAO,8BAAC,UAAU,oBAAK,KAAK,IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClD,CAAC,CACc,CAClB,CAAA;AACH,CAAC;AARD,iCAQC","sourcesContent":["import { get, isArray, isFunction, set, sum, sumBy } from 'lodash'\nimport React, { isValidElement, useCallback, useEffect, useState } from 'react'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\nimport Col from '../col'\nimport Row from '../row'\nimport Table from '../table'\nimport Tooltip from '../tooltip'\nimport Icon from '../icon'\nimport Button from '../button'\n\nimport './index.less'\n\nconst { Column } = Table\nconst getWidth = (span) => 1000 / span\n\nfunction ArrayInput({\n children,\n defaultValue,\n value,\n onChange,\n mode = 'list',\n gutter = 10,\n require = false,\n deleteTip = '',\n plusTip = '',\n addText,\n locale,\n xProps = {},\n renderAction,\n}) {\n if (!isFunction(children)) {\n throw new Error('ArrayInput的children必须是函数')\n }\n if (addText === undefined) {\n addText = locale?.add\n }\n\n const [_value, setValue] = useState(value || defaultValue)\n\n useEffect(() => {\n setValue(value)\n }, [value])\n\n const _onChange = useCallback((value) => {\n if (onChange) {\n onChange(value)\n } else {\n setValue(value)\n }\n }, [])\n\n let inValue = _value || []\n if (require && inValue.length === 0) {\n inValue = [{}]\n }\n\n const changeValue = (index, name, value) => {\n inValue[index] = {\n ...inValue[index],\n [name]: value,\n }\n _onChange([...inValue])\n }\n\n const onAdd = (index) => {\n if (index === undefined) {\n _onChange([...inValue, {}])\n } else {\n inValue.splice(index + 1, 0, {})\n _onChange([...inValue])\n }\n }\n\n const onDelete = (i) => {\n inValue.splice(i, 1)\n _onChange([...inValue])\n }\n\n if (mode === 'list') {\n return (\n <div className=\"tntd-array-input\">\n {inValue.map((item, index) => {\n let fields = children(item, index)\n if (!isArray(fields)) {\n fields = get(fields, 'props.children', [])\n }\n const actionSpan = 24 - (sum(fields.map((f) => get(f, 'props.span', 4))) % 24)\n return (\n <Row gutter={gutter} key={index} className=\"tntd-array-input-item\">\n {fields.map((field, i) => {\n if (!isValidElement(field)) {\n return field ? (\n <Col span={4} key={i}>\n {field}\n </Col>\n ) : (\n ''\n )\n }\n const { name, span = 4, onChange: fieldChange, ...other } = field?.props\n return (\n <Col span={span} key={i}>\n {React.cloneElement(field, {\n value: item[name] || undefined,\n onChange: (e) => {\n fieldChange && fieldChange(e, index, changeValue)\n const newValue = e.target ? e.target.value : e\n changeValue(index, name, newValue)\n },\n ...other,\n })}\n </Col>\n )\n })}\n <Col span={actionSpan}>\n <span className=\"tntd-array-input-action\">\n {renderAction ? (\n renderAction(item, index, onDelete, onAdd)\n ) : (\n <>\n {deleteTip ? (\n <Tooltip title={deleteTip}>\n <span onClick={() => onDelete(index)}>\n <Icon type=\"delete\" />\n </span>\n </Tooltip>\n ) : (\n <span onClick={() => onDelete(index)}>\n <Icon type=\"delete\" />\n </span>\n )}\n </>\n )}\n </span>\n </Col>\n </Row>\n )\n })}\n <Button type=\"link\" onClick={() => onAdd()}>\n <Icon type=\"plus\" />\n {addText}\n </Button>\n </div>\n )\n } else {\n let fields = children({}, 0)\n if (!isArray(fields)) {\n fields = get(fields, 'props.children', [])\n }\n const dataSource = inValue.map((value, index) => {\n const fields = children(value, index)\n const back = {}\n fields.forEach((field) => {\n const name = field?.props?.name\n name && set(back, name, field)\n })\n return back\n })\n return (\n <div className=\"tntd-array-input\">\n <Table dataSource={dataSource} pagination={false} bordered {...xProps}>\n {fields.map((field) => {\n const { name, span, title } = field?.props || {}\n return (\n <Column\n key={name}\n dataIndex={name}\n title={title}\n width={getWidth(span || 24 / (fields.length + 1))}\n render={(field, row, index) => {\n if (!isValidElement(field)) {\n return field\n }\n const { onChange: fieldChange } = field.props\n return React.cloneElement(field, {\n value: inValue[index][name] || undefined,\n onChange: (e) => {\n fieldChange && fieldChange(e, index, changeValue)\n const newValue = e.target ? e.target.value : e\n changeValue(index, name, newValue)\n },\n })\n }}\n ></Column>\n )\n })}\n <Column\n key=\"action\"\n dataIndex=\"action\"\n title=\"操作\"\n width={getWidth(24 - (sumBy(fields, 'props.span') % 24))}\n render={(text, row, index) => {\n if (renderAction) {\n return renderAction(row, index, onDelete, onAdd)\n }\n return (\n <span className=\"tntd-array-input-action\">\n {deleteTip ? (\n <Tooltip title={deleteTip}>\n <span onClick={() => onDelete(index)}>\n <Icon type=\"delete\" />\n </span>\n </Tooltip>\n ) : (\n <span onClick={() => onDelete(index)}>\n <Icon type=\"delete\" />\n </span>\n )}\n </span>\n )\n }}\n ></Column>\n </Table>\n <Button type=\"dashed\" block className=\"mt10\" onClick={() => onAdd()}>\n <Icon type=\"plus\" />\n {addText}\n </Button>\n </div>\n )\n }\n}\n\nexport default function WarpArrayInput(props) {\n return (\n <LocaleReceiver componentName=\"ArrayInput\">\n {(locale) => {\n return <ArrayInput {...props} locale={locale} />\n }}\n </LocaleReceiver>\n )\n}\n"]}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _default = (0, _react.createContext)(function () {
|
|
8
|
+
var _default = exports["default"] = (0, _react.createContext)(function () {
|
|
9
9
|
return true;
|
|
10
|
-
});
|
|
11
|
-
exports["default"] = _default;
|
|
10
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auto-complete/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,uBAAuB,CAAA;AAEhD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auto-complete/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,uBAAuB,CAAA;AAEhD,OAAO,SAAS,CAAA;AAEhB,cAAc,uBAAuB,CAAA;AAErC,eAAe,YAAY,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -18,8 +18,7 @@ Object.keys(_autoComplete).forEach(function (key) {
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
-
require("
|
|
22
|
-
function _getRequireWildcardCache(
|
|
23
|
-
function _interopRequireWildcard(
|
|
24
|
-
var _default = _autoComplete["default"];
|
|
25
|
-
exports["default"] = _default;
|
|
21
|
+
require("./style");
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
24
|
+
var _default = exports["default"] = _autoComplete["default"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auto-complete/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,0EAAgD;AAEhD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auto-complete/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,0EAAgD;AAEhD,mBAAgB;AAEhB,wDAAqC;AAErC,kBAAe,uBAAY,CAAA","sourcesContent":["import AutoComplete from 'antd/lib/auto-complete'\n\nimport './style'\n\nexport * from 'antd/lib/auto-complete'\n\nexport default AutoComplete\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auto-complete/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA;AAGrB,OAAO,oBAAoB,CAAA;AAC3B,OAAO,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/auto-complete/style/index.tsx"],"names":[],"mappings":";;AAAA,kCAA+B;AAC/B,wBAAqB;AAErB,qBAAqB;AACrB,8BAA2B;AAC3B,6BAA0B","sourcesContent":["import '../../style/index.less'\nimport './index.less'\n\n// style dependencies\nimport '../../select/style'\nimport '../../input/style'\n"]}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@import '../../style/themes/index';
|
|
2
|
+
@import '../../style/mixins/index';
|
|
3
|
+
@import '../../input/style/mixin';
|
|
4
|
+
|
|
5
|
+
@input-prefix-cls: ~'@{ant-prefix}-input';
|
|
6
|
+
@select-prefix-cls: ~'@{ant-prefix}-select';
|
|
7
|
+
@autocomplete-prefix-cls: ~'@{select-prefix-cls}-auto-complete';
|
|
8
|
+
|
|
9
|
+
.@{autocomplete-prefix-cls} {
|
|
10
|
+
.reset-component;
|
|
11
|
+
|
|
12
|
+
&.@{select-prefix-cls} {
|
|
13
|
+
.@{select-prefix-cls} {
|
|
14
|
+
&-selection {
|
|
15
|
+
border: 0;
|
|
16
|
+
box-shadow: none;
|
|
17
|
+
&__rendered {
|
|
18
|
+
height: 100%;
|
|
19
|
+
margin-right: 0;
|
|
20
|
+
margin-left: 0;
|
|
21
|
+
line-height: @input-height-base;
|
|
22
|
+
}
|
|
23
|
+
&__placeholder {
|
|
24
|
+
margin-right: calc(@input-padding-horizontal-base + 1px);
|
|
25
|
+
margin-left: calc(@input-padding-horizontal-base + 1px);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--single {
|
|
29
|
+
height: auto;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Fix https://github.com/ant-design/ant-design/issues/7800
|
|
35
|
+
.@{select-prefix-cls}-search--inline {
|
|
36
|
+
position: static;
|
|
37
|
+
float: left;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-allow-clear {
|
|
41
|
+
.@{select-prefix-cls}-selection:hover .@{select-prefix-cls}-selection__rendered {
|
|
42
|
+
margin-right: 0 !important;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.@{input-prefix-cls} {
|
|
47
|
+
height: @input-height-base;
|
|
48
|
+
line-height: @line-height-base;
|
|
49
|
+
background: transparent;
|
|
50
|
+
border-width: @border-width-base;
|
|
51
|
+
&:focus,
|
|
52
|
+
&:hover {
|
|
53
|
+
.hover;
|
|
54
|
+
}
|
|
55
|
+
&[disabled] {
|
|
56
|
+
.disabled;
|
|
57
|
+
|
|
58
|
+
background-color: transparent;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&-lg {
|
|
63
|
+
.@{select-prefix-cls}-selection__rendered {
|
|
64
|
+
line-height: @input-height-lg;
|
|
65
|
+
}
|
|
66
|
+
.@{input-prefix-cls} {
|
|
67
|
+
height: @input-height-lg;
|
|
68
|
+
padding-top: @input-padding-vertical-lg;
|
|
69
|
+
padding-bottom: @input-padding-vertical-lg;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-sm {
|
|
74
|
+
.@{select-prefix-cls}-selection__rendered {
|
|
75
|
+
line-height: @input-height-sm;
|
|
76
|
+
}
|
|
77
|
+
.@{input-prefix-cls} {
|
|
78
|
+
height: @input-height-sm;
|
|
79
|
+
padding-top: @input-padding-vertical-sm;
|
|
80
|
+
padding-bottom: @input-padding-vertical-sm;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// https://github.com/ant-design/ant-design/issues/14156
|
|
87
|
+
.@{input-prefix-cls}-group > .@{autocomplete-prefix-cls} {
|
|
88
|
+
.@{select-prefix-cls}-search__field.@{input-prefix-cls}-affix-wrapper {
|
|
89
|
+
display: inline;
|
|
90
|
+
float: none;
|
|
91
|
+
}
|
|
92
|
+
}
|
package/lib/avatar/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,gBAAgB,CAAA;AAEnC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,gBAAgB,CAAA;AAEnC,OAAO,SAAS,CAAA;AAEhB,cAAc,gBAAgB,CAAA;AAE9B,eAAe,MAAM,CAAA"}
|