@sheinx/base 3.0.0-alpha.9 → 3.0.0-rc.10
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/cjs/absolute-list/absolute-context.d.ts +4 -0
- package/cjs/absolute-list/absolute-context.d.ts.map +1 -0
- package/cjs/absolute-list/absolute-context.js +10 -0
- package/cjs/absolute-list/absolute-list.d.ts +3 -1
- package/cjs/absolute-list/absolute-list.d.ts.map +1 -1
- package/cjs/absolute-list/absolute-list.js +34 -22
- package/cjs/absolute-list/absolute-list.type.d.ts +6 -5
- package/cjs/absolute-list/absolute-list.type.d.ts.map +1 -1
- package/cjs/absolute-list/index.js +3 -2
- package/cjs/absolute-list/use-container.d.ts +5 -5
- package/cjs/absolute-list/use-container.d.ts.map +1 -1
- package/cjs/absolute-list/use-container.js +19 -17
- package/cjs/alert/alert-icon.js +11 -13
- package/cjs/alert/alert.js +24 -23
- package/cjs/alert/alert.type.d.ts +3 -2
- package/cjs/alert/alert.type.d.ts.map +1 -1
- package/cjs/alert/index.d.ts +1 -1
- package/cjs/alert/index.d.ts.map +1 -1
- package/cjs/alert/index.js +3 -2
- package/cjs/animation-list/animation-list.d.ts.map +1 -1
- package/cjs/animation-list/animation-list.js +64 -45
- package/cjs/animation-list/animation-list.type.d.ts +1 -1
- package/cjs/animation-list/animation-list.type.d.ts.map +1 -1
- package/cjs/animation-list/index.js +3 -2
- package/cjs/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/cjs/breadcrumb/breadcrumb.js +16 -17
- package/cjs/breadcrumb/breadcrumb.type.d.ts +2 -1
- package/cjs/breadcrumb/breadcrumb.type.d.ts.map +1 -1
- package/cjs/breadcrumb/index.d.ts +1 -1
- package/cjs/breadcrumb/index.d.ts.map +1 -1
- package/cjs/breadcrumb/index.js +3 -2
- package/cjs/breadcrumb/list.js +21 -19
- package/cjs/button/button-group.js +6 -12
- package/cjs/button/button-item.js +3 -4
- package/cjs/button/button.js +23 -22
- package/cjs/button/button.type.d.ts +1 -7
- package/cjs/button/button.type.d.ts.map +1 -1
- package/cjs/button/index.d.ts +1 -1
- package/cjs/button/index.d.ts.map +1 -1
- package/cjs/button/index.js +3 -2
- package/cjs/card/card-accordion-context.d.ts.map +1 -1
- package/cjs/card/card-accordion-context.js +4 -5
- package/cjs/card/card-accordion.js +11 -7
- package/cjs/card/card-accordion.type.d.ts +0 -8
- package/cjs/card/card-accordion.type.d.ts.map +1 -1
- package/cjs/card/card-body.js +3 -4
- package/cjs/card/card-body.type.d.ts +0 -8
- package/cjs/card/card-body.type.d.ts.map +1 -1
- package/cjs/card/card-footer.js +3 -4
- package/cjs/card/card-footer.type.d.ts +0 -8
- package/cjs/card/card-footer.type.d.ts.map +1 -1
- package/cjs/card/card-header.js +4 -5
- package/cjs/card/card-header.type.d.ts +0 -8
- package/cjs/card/card-header.type.d.ts.map +1 -1
- package/cjs/card/card.context.d.ts.map +1 -1
- package/cjs/card/card.context.js +4 -4
- package/cjs/card/card.js +17 -16
- package/cjs/card/index.d.ts +1 -1
- package/cjs/card/index.d.ts.map +1 -1
- package/cjs/card/index.js +3 -2
- package/cjs/card-group/card-group-context.d.ts.map +1 -1
- package/cjs/card-group/card-group-context.js +3 -3
- package/cjs/card-group/card-group.js +9 -10
- package/cjs/card-group/index.d.ts +1 -1
- package/cjs/card-group/index.d.ts.map +1 -1
- package/cjs/card-group/index.js +3 -2
- package/cjs/card-group/item.js +6 -10
- package/cjs/card-group/lazyload.js +11 -11
- package/cjs/carousel/carousel.js +13 -17
- package/cjs/carousel/carousel.type.d.ts +0 -1
- package/cjs/carousel/carousel.type.d.ts.map +1 -1
- package/cjs/carousel/index.d.ts +1 -1
- package/cjs/carousel/index.d.ts.map +1 -1
- package/cjs/carousel/index.js +3 -2
- package/cjs/cascader/cascader.d.ts +1 -1
- package/cjs/cascader/cascader.d.ts.map +1 -1
- package/cjs/cascader/cascader.js +197 -79
- package/cjs/cascader/cascader.type.d.ts +94 -22
- package/cjs/cascader/cascader.type.d.ts.map +1 -1
- package/cjs/cascader/filter-list.js +3 -6
- package/cjs/cascader/filter-node.js +3 -6
- package/cjs/cascader/index.d.ts +1 -1
- package/cjs/cascader/index.d.ts.map +1 -1
- package/cjs/cascader/index.js +3 -2
- package/cjs/cascader/list.js +3 -5
- package/cjs/cascader/node.d.ts.map +1 -1
- package/cjs/cascader/node.js +29 -21
- package/cjs/checkbox/checkbox-group.d.ts +1 -1
- package/cjs/checkbox/checkbox-group.js +9 -11
- package/cjs/checkbox/checkbox.d.ts.map +1 -1
- package/cjs/checkbox/checkbox.js +19 -14
- package/cjs/checkbox/checkbox.type.d.ts +1 -1
- package/cjs/checkbox/group-context.d.ts +1 -1
- package/cjs/checkbox/group-context.d.ts.map +1 -1
- package/cjs/checkbox/group-context.js +2 -2
- package/cjs/checkbox/index.d.ts +1 -1
- package/cjs/checkbox/index.d.ts.map +1 -1
- package/cjs/checkbox/index.js +3 -2
- package/cjs/checkbox/simple-checkbox.js +13 -13
- package/cjs/checkbox/use-checkbox-inputable.js +10 -7
- package/cjs/collapse/collapse-item.js +10 -15
- package/cjs/collapse/collapse.js +3 -4
- package/cjs/collapse/group-context.d.ts +1 -1
- package/cjs/collapse/group-context.d.ts.map +1 -1
- package/cjs/collapse/group-context.js +2 -2
- package/cjs/collapse/index.d.ts +2 -2
- package/cjs/collapse/index.d.ts.map +1 -1
- package/cjs/collapse/index.js +3 -2
- package/cjs/common/type.d.ts +7 -0
- package/cjs/common/type.d.ts.map +1 -1
- package/cjs/common/use-clear.js +2 -3
- package/cjs/common/use-inner-title.d.ts +2 -0
- package/cjs/common/use-inner-title.d.ts.map +1 -1
- package/cjs/common/use-inner-title.js +35 -14
- package/cjs/common/use-tip.d.ts +18 -2
- package/cjs/common/use-tip.d.ts.map +1 -1
- package/cjs/common/use-tip.js +8 -10
- package/cjs/common/use-with-form-config.d.ts +1 -1
- package/cjs/common/use-with-form-config.d.ts.map +1 -1
- package/cjs/common/use-with-form-config.js +8 -11
- package/cjs/config/index.d.ts +2 -5
- package/cjs/config/index.d.ts.map +1 -1
- package/cjs/config/index.js +26 -30
- package/cjs/config/locale/Props.d.ts +4 -4
- package/cjs/config/locale/Props.d.ts.map +1 -1
- package/cjs/config/locale/en_US.js +2 -3
- package/cjs/config/locale/index.js +4 -3
- package/cjs/config/locale/zh-CN.js +2 -3
- package/cjs/date-picker/date-picker.d.ts +1 -1
- package/cjs/date-picker/date-picker.d.ts.map +1 -1
- package/cjs/date-picker/date-picker.js +50 -40
- package/cjs/date-picker/date-picker.type.d.ts +20 -9
- package/cjs/date-picker/date-picker.type.d.ts.map +1 -1
- package/cjs/date-picker/day.js +15 -21
- package/cjs/date-picker/index.d.ts +1 -1
- package/cjs/date-picker/index.d.ts.map +1 -1
- package/cjs/date-picker/index.js +3 -2
- package/cjs/date-picker/month.js +5 -9
- package/cjs/date-picker/month.type.d.ts +1 -1
- package/cjs/date-picker/month.type.d.ts.map +1 -1
- package/cjs/date-picker/picker.d.ts.map +1 -1
- package/cjs/date-picker/picker.js +13 -14
- package/cjs/date-picker/picker.type.d.ts +3 -2
- package/cjs/date-picker/picker.type.d.ts.map +1 -1
- package/cjs/date-picker/pickerTitle.js +2 -3
- package/cjs/date-picker/quarter.js +5 -9
- package/cjs/date-picker/quarter.type.d.ts +1 -1
- package/cjs/date-picker/quarter.type.d.ts.map +1 -1
- package/cjs/date-picker/quick.d.ts.map +1 -1
- package/cjs/date-picker/quick.js +8 -6
- package/cjs/date-picker/quick.type.d.ts +1 -0
- package/cjs/date-picker/quick.type.d.ts.map +1 -1
- package/cjs/date-picker/result.d.ts +1 -0
- package/cjs/date-picker/result.d.ts.map +1 -1
- package/cjs/date-picker/result.js +18 -17
- package/cjs/date-picker/time.js +7 -12
- package/cjs/date-picker/year.js +5 -9
- package/cjs/date-picker/year.type.d.ts +1 -1
- package/cjs/date-picker/year.type.d.ts.map +1 -1
- package/cjs/descriptions/descriptions.js +11 -18
- package/cjs/descriptions/descriptions.type.d.ts +1 -1
- package/cjs/descriptions/descriptions.type.d.ts.map +1 -1
- package/cjs/descriptions/index.d.ts +1 -1
- package/cjs/descriptions/index.d.ts.map +1 -1
- package/cjs/descriptions/index.js +3 -2
- package/cjs/divider/divider.js +3 -4
- package/cjs/divider/index.d.ts +1 -1
- package/cjs/divider/index.d.ts.map +1 -1
- package/cjs/divider/index.js +3 -2
- package/cjs/dropdown/Item.d.ts.map +1 -1
- package/cjs/dropdown/Item.js +42 -28
- package/cjs/dropdown/dropdown.js +8 -9
- package/cjs/dropdown/dropdown.type.d.ts +9 -7
- package/cjs/dropdown/dropdown.type.d.ts.map +1 -1
- package/cjs/dropdown/dropdown.type.js +2 -2
- package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
- package/cjs/dropdown/dropdownIn.js +21 -20
- package/cjs/dropdown/index.d.ts +1 -1
- package/cjs/dropdown/index.d.ts.map +1 -1
- package/cjs/dropdown/index.js +3 -2
- package/cjs/editable-area/editable-area.d.ts.map +1 -1
- package/cjs/editable-area/editable-area.js +29 -36
- package/cjs/editable-area/index.d.ts +1 -1
- package/cjs/editable-area/index.d.ts.map +1 -1
- package/cjs/editable-area/index.js +3 -2
- package/cjs/empty/empty-image.js +2 -3
- package/cjs/empty/empty.js +12 -13
- package/cjs/empty/index.d.ts +1 -1
- package/cjs/empty/index.d.ts.map +1 -1
- package/cjs/empty/index.js +3 -2
- package/cjs/form/error-trans.js +2 -6
- package/cjs/form/form-button.js +8 -9
- package/cjs/form/form-field.d.ts.map +1 -1
- package/cjs/form/form-field.js +13 -7
- package/cjs/form/form-field.type.d.ts +1 -1
- package/cjs/form/form-field.type.d.ts.map +1 -1
- package/cjs/form/form-fieldset.js +8 -14
- package/cjs/form/form-flow.js +1 -2
- package/cjs/form/form-footer-context.d.ts.map +1 -1
- package/cjs/form/form-footer-context.js +15 -16
- package/cjs/form/form-item.js +19 -17
- package/cjs/form/form.d.ts +1 -1
- package/cjs/form/form.d.ts.map +1 -1
- package/cjs/form/form.js +29 -24
- package/cjs/form/form.type.d.ts +7 -0
- package/cjs/form/form.type.d.ts.map +1 -1
- package/cjs/form/form.type.js +1 -2
- package/cjs/form/index.d.ts +2 -2
- package/cjs/form/index.d.ts.map +1 -1
- package/cjs/form/index.js +3 -2
- package/cjs/gap/gap.d.ts.map +1 -1
- package/cjs/gap/gap.js +15 -12
- package/cjs/gap/gap.type.d.ts +7 -0
- package/cjs/gap/gap.type.d.ts.map +1 -1
- package/cjs/gap/index.d.ts +1 -1
- package/cjs/gap/index.d.ts.map +1 -1
- package/cjs/gap/index.js +3 -2
- package/cjs/gap/support.d.ts.map +1 -1
- package/cjs/gap/support.js +1 -0
- package/cjs/grid/grid.js +13 -19
- package/cjs/grid/grid.type.d.ts +1 -1
- package/cjs/grid/grid.type.d.ts.map +1 -1
- package/cjs/grid/index.js +3 -2
- package/cjs/grid/util.d.ts +1 -1
- package/cjs/grid/util.d.ts.map +1 -1
- package/cjs/grid/util.js +4 -3
- package/cjs/icon/icon.d.ts.map +1 -1
- package/cjs/icon/icon.js +28 -27
- package/cjs/icon/icon.type.d.ts +4 -4
- package/cjs/icon/icon.type.d.ts.map +1 -1
- package/cjs/icon/index.d.ts +1 -1
- package/cjs/icon/index.d.ts.map +1 -1
- package/cjs/icon/index.js +3 -2
- package/cjs/icons/config.d.ts +144 -0
- package/cjs/icons/config.d.ts.map +1 -0
- package/cjs/icons/config.js +164 -0
- package/cjs/icons/icons.d.ts +46 -0
- package/cjs/icons/icons.d.ts.map +1 -0
- package/cjs/icons/icons.js +184 -0
- package/cjs/icons/index.d.ts +1 -47
- package/cjs/icons/index.d.ts.map +1 -1
- package/cjs/icons/index.js +15 -187
- package/cjs/image/image-event.d.ts +1 -1
- package/cjs/image/image-event.d.ts.map +1 -1
- package/cjs/image/image-event.js +6 -5
- package/cjs/image/image-gallery.js +14 -15
- package/cjs/image/image-group.d.ts.map +1 -1
- package/cjs/image/image-group.js +21 -24
- package/cjs/image/image-group.type.d.ts +2 -1
- package/cjs/image/image-group.type.d.ts.map +1 -1
- package/cjs/image/image-magnify.js +10 -11
- package/cjs/image/image.js +21 -26
- package/cjs/image/image.type.d.ts +39 -5
- package/cjs/image/image.type.d.ts.map +1 -1
- package/cjs/image/index.d.ts +1 -1
- package/cjs/image/index.d.ts.map +1 -1
- package/cjs/image/index.js +3 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +5 -6
- package/cjs/input/index.d.ts +2 -1
- package/cjs/input/index.d.ts.map +1 -1
- package/cjs/input/index.js +3 -2
- package/cjs/input/input-group.d.ts.map +1 -1
- package/cjs/input/input-group.js +32 -31
- package/cjs/input/input-number.js +16 -16
- package/cjs/input/input-number.type.d.ts +1 -1
- package/cjs/input/input-number.type.d.ts.map +1 -1
- package/cjs/input/input-password.js +10 -11
- package/cjs/input/input.js +8 -10
- package/cjs/input/input.type.d.ts +8 -17
- package/cjs/input/input.type.d.ts.map +1 -1
- package/cjs/input/simple-input.d.ts.map +1 -1
- package/cjs/input/simple-input.js +22 -35
- package/cjs/input/use-input-common.d.ts +4 -6
- package/cjs/input/use-input-common.d.ts.map +1 -1
- package/cjs/input/use-input-common.js +31 -35
- package/cjs/list/base-item.js +14 -15
- package/cjs/list/index.d.ts +1 -1
- package/cjs/list/index.d.ts.map +1 -1
- package/cjs/list/index.js +3 -2
- package/cjs/list/list.d.ts.map +1 -1
- package/cjs/list/list.js +23 -26
- package/cjs/menu/index.d.ts +1 -1
- package/cjs/menu/index.d.ts.map +1 -1
- package/cjs/menu/index.js +3 -2
- package/cjs/menu/item.d.ts.map +1 -1
- package/cjs/menu/item.js +15 -14
- package/cjs/menu/menu.d.ts.map +1 -1
- package/cjs/menu/menu.js +19 -16
- package/cjs/menu/menu.type.d.ts +3 -3
- package/cjs/menu/menu.type.d.ts.map +1 -1
- package/cjs/menu/scroll.js +11 -7
- package/cjs/menu/scrollbar.js +3 -4
- package/cjs/message/func.js +2 -4
- package/cjs/message/func.type.d.ts +2 -2
- package/cjs/message/func.type.d.ts.map +1 -1
- package/cjs/message/index.d.ts +1 -0
- package/cjs/message/index.d.ts.map +1 -1
- package/cjs/message/index.js +3 -2
- package/cjs/message/manager.d.ts.map +1 -1
- package/cjs/message/manager.js +6 -7
- package/cjs/message/message.d.ts.map +1 -1
- package/cjs/message/message.js +57 -51
- package/cjs/modal/index.d.ts +1 -1
- package/cjs/modal/index.d.ts.map +1 -1
- package/cjs/modal/index.js +3 -2
- package/cjs/modal/modal-content.d.ts.map +1 -1
- package/cjs/modal/modal-content.js +50 -31
- package/cjs/modal/modal-func.d.ts +1 -1
- package/cjs/modal/modal-func.d.ts.map +1 -1
- package/cjs/modal/modal-func.js +19 -17
- package/cjs/modal/modal-submit.js +10 -11
- package/cjs/modal/modal.js +16 -11
- package/cjs/modal/modal.type.d.ts +1 -1
- package/cjs/modal/modal.type.d.ts.map +1 -1
- package/cjs/modal/use-modal-move.js +15 -12
- package/cjs/modal/use-modal-resize.js +9 -6
- package/cjs/pagination/index.d.ts +1 -1
- package/cjs/pagination/index.d.ts.map +1 -1
- package/cjs/pagination/index.js +3 -2
- package/cjs/pagination/pagination-button.js +11 -12
- package/cjs/pagination/pagination-buttons.js +20 -17
- package/cjs/pagination/pagination-buttons.type.d.ts +2 -2
- package/cjs/pagination/pagination-buttons.type.d.ts.map +1 -1
- package/cjs/pagination/pagination-jumper.js +10 -8
- package/cjs/pagination/pagination-next.d.ts.map +1 -1
- package/cjs/pagination/pagination-next.js +4 -5
- package/cjs/pagination/pagination-prev.d.ts.map +1 -1
- package/cjs/pagination/pagination-prev.js +4 -5
- package/cjs/pagination/pagination-simple.js +2 -3
- package/cjs/pagination/pagination-size-list.js +3 -5
- package/cjs/pagination/pagination.d.ts.map +1 -1
- package/cjs/pagination/pagination.js +14 -17
- package/cjs/pagination/pagination.type.d.ts +4 -4
- package/cjs/pagination/pagination.type.d.ts.map +1 -1
- package/cjs/popover/confirm.js +24 -23
- package/cjs/popover/confirm.type.d.ts +2 -2
- package/cjs/popover/confirm.type.d.ts.map +1 -1
- package/cjs/popover/index.d.ts +1 -1
- package/cjs/popover/index.d.ts.map +1 -1
- package/cjs/popover/index.js +3 -2
- package/cjs/popover/popover.d.ts.map +1 -1
- package/cjs/popover/popover.js +23 -20
- package/cjs/progress/analyzeColor.js +3 -5
- package/cjs/progress/circle.js +5 -8
- package/cjs/progress/index.d.ts +1 -1
- package/cjs/progress/index.d.ts.map +1 -1
- package/cjs/progress/index.js +3 -2
- package/cjs/progress/line-popup.js +8 -8
- package/cjs/progress/line.js +5 -8
- package/cjs/progress/progress.js +8 -9
- package/cjs/radio/group-context.d.ts +1 -1
- package/cjs/radio/group-context.d.ts.map +1 -1
- package/cjs/radio/group-context.js +2 -2
- package/cjs/radio/index.d.ts +1 -1
- package/cjs/radio/index.d.ts.map +1 -1
- package/cjs/radio/index.js +3 -2
- package/cjs/radio/radio-group.d.ts +1 -1
- package/cjs/radio/radio-group.d.ts.map +1 -1
- package/cjs/radio/radio-group.js +15 -17
- package/cjs/radio/radio.js +12 -12
- package/cjs/radio/simple-radio.js +12 -12
- package/cjs/rate/index.d.ts +1 -1
- package/cjs/rate/index.d.ts.map +1 -1
- package/cjs/rate/index.js +3 -2
- package/cjs/rate/rate.d.ts +1 -1
- package/cjs/rate/rate.d.ts.map +1 -1
- package/cjs/rate/rate.js +20 -19
- package/cjs/rate/rate.type.d.ts +2 -2
- package/cjs/rate/rate.type.d.ts.map +1 -1
- package/cjs/rule/index.js +1 -0
- package/cjs/select/index.d.ts +1 -1
- package/cjs/select/index.d.ts.map +1 -1
- package/cjs/select/index.js +3 -2
- package/cjs/select/list-columns-option.d.ts.map +1 -1
- package/cjs/select/list-columns-option.js +3 -5
- package/cjs/select/list-columns.js +3 -9
- package/cjs/select/list-option.d.ts.map +1 -1
- package/cjs/select/list-option.js +13 -15
- package/cjs/select/list-tree.d.ts.map +1 -1
- package/cjs/select/list-tree.js +6 -13
- package/cjs/select/list-tree.type.d.ts +1 -1
- package/cjs/select/list-tree.type.d.ts.map +1 -1
- package/cjs/select/list.js +23 -20
- package/cjs/select/result-input.d.ts.map +1 -1
- package/cjs/select/result-input.js +41 -43
- package/cjs/select/result-input.type.d.ts +6 -1
- package/cjs/select/result-input.type.d.ts.map +1 -1
- package/cjs/select/result-more.d.ts +2 -2
- package/cjs/select/result-more.d.ts.map +1 -1
- package/cjs/select/result-more.js +35 -17
- package/cjs/select/result-more.type.d.ts +4 -0
- package/cjs/select/result-more.type.d.ts.map +1 -1
- package/cjs/select/result.d.ts.map +1 -1
- package/cjs/select/result.js +145 -87
- package/cjs/select/result.type.d.ts +18 -4
- package/cjs/select/result.type.d.ts.map +1 -1
- package/cjs/select/select.d.ts +1 -1
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/select/select.js +267 -187
- package/cjs/select/select.type.d.ts +126 -24
- package/cjs/select/select.type.d.ts.map +1 -1
- package/cjs/slider/index.d.ts +1 -1
- package/cjs/slider/index.d.ts.map +1 -1
- package/cjs/slider/index.js +3 -2
- package/cjs/slider/slider.d.ts +1 -1
- package/cjs/slider/slider.d.ts.map +1 -1
- package/cjs/slider/slider.js +12 -12
- package/cjs/spin/base.d.ts.map +1 -1
- package/cjs/spin/base.js +10 -11
- package/cjs/spin/index.d.ts +1 -1
- package/cjs/spin/index.d.ts.map +1 -1
- package/cjs/spin/index.js +3 -2
- package/cjs/spin/spin.d.ts +2 -1
- package/cjs/spin/spin.d.ts.map +1 -1
- package/cjs/spin/spin.js +16 -16
- package/cjs/spin/spin.type.d.ts +3 -3
- package/cjs/spin/spin.type.d.ts.map +1 -1
- package/cjs/spin/spins.js +25 -27
- package/cjs/spin/utils.js +2 -4
- package/cjs/steps/index.d.ts +1 -1
- package/cjs/steps/index.d.ts.map +1 -1
- package/cjs/steps/index.js +3 -2
- package/cjs/steps/step.arrow.d.ts.map +1 -1
- package/cjs/steps/step.arrow.js +8 -7
- package/cjs/steps/step.default.d.ts.map +1 -1
- package/cjs/steps/step.default.js +13 -11
- package/cjs/steps/step.dot.d.ts.map +1 -1
- package/cjs/steps/step.dot.js +11 -9
- package/cjs/steps/step.js +13 -15
- package/cjs/steps/steps-context.d.ts.map +1 -1
- package/cjs/steps/steps-context.js +2 -2
- package/cjs/steps/steps.js +9 -8
- package/cjs/steps/steps.type.d.ts +28 -3
- package/cjs/steps/steps.type.d.ts.map +1 -1
- package/cjs/sticky/index.d.ts +1 -1
- package/cjs/sticky/index.d.ts.map +1 -1
- package/cjs/sticky/index.js +3 -2
- package/cjs/sticky/sticky.d.ts.map +1 -1
- package/cjs/sticky/sticky.js +61 -50
- package/cjs/sticky/sticky.type.d.ts +5 -1
- package/cjs/sticky/sticky.type.d.ts.map +1 -1
- package/cjs/switch/index.d.ts +1 -1
- package/cjs/switch/index.d.ts.map +1 -1
- package/cjs/switch/index.js +3 -2
- package/cjs/switch/switch.d.ts +1 -1
- package/cjs/switch/switch.d.ts.map +1 -1
- package/cjs/switch/switch.js +19 -13
- package/cjs/table/colgroup.js +1 -3
- package/cjs/table/index.d.ts +1 -1
- package/cjs/table/index.d.ts.map +1 -1
- package/cjs/table/index.js +3 -2
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +98 -83
- package/cjs/table/table.type.d.ts +12 -10
- package/cjs/table/table.type.d.ts.map +1 -1
- package/cjs/table/tbody.d.ts.map +1 -1
- package/cjs/table/tbody.js +6 -6
- package/cjs/table/tbody.type.d.ts +4 -3
- package/cjs/table/tbody.type.d.ts.map +1 -1
- package/cjs/table/temp/01-base.d.ts.map +1 -1
- package/cjs/table/temp/01-base.js +22 -14
- package/cjs/table/tfoot.js +4 -7
- package/cjs/table/thead.d.ts.map +1 -1
- package/cjs/table/thead.js +23 -31
- package/cjs/table/thead.type.d.ts +2 -2
- package/cjs/table/thead.type.d.ts.map +1 -1
- package/cjs/table/tr.d.ts +1 -1
- package/cjs/table/tr.d.ts.map +1 -1
- package/cjs/table/tr.js +24 -31
- package/cjs/table/use-table-select.d.ts +1 -2
- package/cjs/table/use-table-select.d.ts.map +1 -1
- package/cjs/table/use-table-select.js +8 -11
- package/cjs/tabs/index.d.ts +1 -1
- package/cjs/tabs/index.d.ts.map +1 -1
- package/cjs/tabs/index.js +3 -2
- package/cjs/tabs/tab.d.ts.map +1 -1
- package/cjs/tabs/tab.js +13 -14
- package/cjs/tabs/tabs-header.d.ts.map +1 -1
- package/cjs/tabs/tabs-header.js +34 -31
- package/cjs/tabs/tabs-panel.d.ts.map +1 -1
- package/cjs/tabs/tabs-panel.js +17 -6
- package/cjs/tabs/tabs.d.ts.map +1 -1
- package/cjs/tabs/tabs.js +31 -34
- package/cjs/tabs/tabs.type.d.ts +4 -4
- package/cjs/tabs/tabs.type.d.ts.map +1 -1
- package/cjs/tag/index.d.ts +1 -1
- package/cjs/tag/index.d.ts.map +1 -1
- package/cjs/tag/index.js +3 -2
- package/cjs/tag/tag-input.js +9 -10
- package/cjs/tag/tag.d.ts.map +1 -1
- package/cjs/tag/tag.js +24 -18
- package/cjs/tag/tag.type.d.ts +17 -6
- package/cjs/tag/tag.type.d.ts.map +1 -1
- package/cjs/tag/use-tag.d.ts.map +1 -1
- package/cjs/tag/use-tag.js +17 -9
- package/cjs/textarea/index.d.ts +1 -1
- package/cjs/textarea/index.d.ts.map +1 -1
- package/cjs/textarea/index.js +3 -2
- package/cjs/textarea/simple-textarea.js +17 -23
- package/cjs/textarea/textarea.d.ts +1 -1
- package/cjs/textarea/textarea.d.ts.map +1 -1
- package/cjs/textarea/textarea.js +25 -30
- package/cjs/textarea/textarea.type.d.ts +4 -2
- package/cjs/textarea/textarea.type.d.ts.map +1 -1
- package/cjs/textarea/use-auto-size.js +13 -12
- package/cjs/tooltip/index.d.ts +1 -1
- package/cjs/tooltip/index.d.ts.map +1 -1
- package/cjs/tooltip/index.js +3 -2
- package/cjs/tooltip/tooltip.d.ts.map +1 -1
- package/cjs/tooltip/tooltip.js +22 -22
- package/cjs/tooltip/tooltip.type.d.ts +6 -0
- package/cjs/tooltip/tooltip.type.d.ts.map +1 -1
- package/cjs/transfer/index.d.ts +1 -1
- package/cjs/transfer/index.d.ts.map +1 -1
- package/cjs/transfer/index.js +3 -2
- package/cjs/transfer/transfer-list-header.d.ts.map +1 -1
- package/cjs/transfer/transfer-list-header.js +9 -10
- package/cjs/transfer/transfer-list-item.d.ts.map +1 -1
- package/cjs/transfer/transfer-list-item.js +7 -6
- package/cjs/transfer/transfer-list-item.type.d.ts +1 -1
- package/cjs/transfer/transfer-list-item.type.d.ts.map +1 -1
- package/cjs/transfer/transfer-list.d.ts.map +1 -1
- package/cjs/transfer/transfer-list.js +15 -16
- package/cjs/transfer/transfer-operate.js +2 -4
- package/cjs/transfer/transfer.js +11 -10
- package/cjs/transfer/transfer.type.d.ts +30 -3
- package/cjs/transfer/transfer.type.d.ts.map +1 -1
- package/cjs/tree/index.d.ts +1 -1
- package/cjs/tree/index.d.ts.map +1 -1
- package/cjs/tree/index.js +3 -2
- package/cjs/tree/tree-checkbox.d.ts +2 -1
- package/cjs/tree/tree-checkbox.d.ts.map +1 -1
- package/cjs/tree/tree-checkbox.js +5 -3
- package/cjs/tree/tree-checkbox.type.d.ts +2 -2
- package/cjs/tree/tree-checkbox.type.d.ts.map +1 -1
- package/cjs/tree/tree-content.d.ts +2 -1
- package/cjs/tree/tree-content.d.ts.map +1 -1
- package/cjs/tree/tree-content.js +24 -21
- package/cjs/tree/tree-content.type.d.ts +2 -2
- package/cjs/tree/tree-content.type.d.ts.map +1 -1
- package/cjs/tree/tree-context.d.ts +3 -3
- package/cjs/tree/tree-context.d.ts.map +1 -1
- package/cjs/tree/tree-context.js +8 -13
- package/cjs/tree/tree-context.type.d.ts +5 -16
- package/cjs/tree/tree-context.type.d.ts.map +1 -1
- package/cjs/tree/tree-list.d.ts +1 -1
- package/cjs/tree/tree-list.d.ts.map +1 -1
- package/cjs/tree/tree-list.js +6 -6
- package/cjs/tree/tree-list.type.d.ts +3 -3
- package/cjs/tree/tree-list.type.d.ts.map +1 -1
- package/cjs/tree/tree-node.d.ts +1 -1
- package/cjs/tree/tree-node.d.ts.map +1 -1
- package/cjs/tree/tree-node.js +48 -35
- package/cjs/tree/tree-node.type.d.ts +3 -3
- package/cjs/tree/tree-node.type.d.ts.map +1 -1
- package/cjs/tree/tree-root.d.ts +1 -1
- package/cjs/tree/tree-root.d.ts.map +1 -1
- package/cjs/tree/tree-root.js +11 -11
- package/cjs/tree/tree-root.type.d.ts +3 -3
- package/cjs/tree/tree-root.type.d.ts.map +1 -1
- package/cjs/tree/tree.d.ts +2 -1
- package/cjs/tree/tree.d.ts.map +1 -1
- package/cjs/tree/tree.js +27 -30
- package/cjs/tree/tree.type.d.ts +27 -10
- package/cjs/tree/tree.type.d.ts.map +1 -1
- package/cjs/tree-select/index.d.ts +1 -1
- package/cjs/tree-select/index.d.ts.map +1 -1
- package/cjs/tree-select/index.js +3 -2
- package/cjs/tree-select/tree-select.d.ts +2 -2
- package/cjs/tree-select/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +170 -91
- package/cjs/tree-select/tree-select.type.d.ts +93 -20
- package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
- package/cjs/upload/button.d.ts.map +1 -1
- package/cjs/upload/button.js +18 -21
- package/cjs/upload/button.type.d.ts +1 -1
- package/cjs/upload/button.type.d.ts.map +1 -1
- package/cjs/upload/drop.js +16 -19
- package/cjs/upload/image.js +8 -9
- package/cjs/upload/index.d.ts +1 -1
- package/cjs/upload/index.d.ts.map +1 -1
- package/cjs/upload/index.js +3 -2
- package/cjs/upload/result.d.ts +1 -1
- package/cjs/upload/result.d.ts.map +1 -1
- package/cjs/upload/result.js +34 -34
- package/cjs/upload/upload.d.ts +1 -1
- package/cjs/upload/upload.d.ts.map +1 -1
- package/cjs/upload/upload.js +17 -25
- package/cjs/upload/useInputClick.js +2 -3
- package/cjs/virtual-scroll/index.js +3 -2
- package/cjs/virtual-scroll/scroll.js +11 -17
- package/cjs/virtual-scroll/virtual-scroll-list.js +20 -22
- package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
- package/cjs/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
- package/esm/absolute-list/absolute-context.d.ts +4 -0
- package/esm/absolute-list/absolute-context.d.ts.map +1 -0
- package/esm/absolute-list/absolute-context.js +5 -0
- package/esm/absolute-list/absolute-list.d.ts +3 -1
- package/esm/absolute-list/absolute-list.d.ts.map +1 -1
- package/esm/absolute-list/absolute-list.js +39 -36
- package/esm/absolute-list/absolute-list.type.d.ts +6 -5
- package/esm/absolute-list/absolute-list.type.d.ts.map +1 -1
- package/esm/absolute-list/absolute-list.type.js +1 -5
- package/esm/absolute-list/index.js +2 -19
- package/esm/absolute-list/use-container.d.ts +5 -5
- package/esm/absolute-list/use-container.d.ts.map +1 -1
- package/esm/absolute-list/use-container.js +28 -35
- package/esm/alert/alert-icon.js +15 -24
- package/esm/alert/alert.js +39 -46
- package/esm/alert/alert.type.d.ts +3 -2
- package/esm/alert/alert.type.d.ts.map +1 -1
- package/esm/alert/alert.type.js +1 -5
- package/esm/alert/index.d.ts +1 -1
- package/esm/alert/index.d.ts.map +1 -1
- package/esm/alert/index.js +2 -19
- package/esm/animation-list/animation-list.d.ts.map +1 -1
- package/esm/animation-list/animation-list.js +71 -60
- package/esm/animation-list/animation-list.type.d.ts +1 -1
- package/esm/animation-list/animation-list.type.d.ts.map +1 -1
- package/esm/animation-list/animation-list.type.js +1 -5
- package/esm/animation-list/index.js +2 -19
- package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb.js +35 -41
- package/esm/breadcrumb/breadcrumb.type.d.ts +2 -1
- package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb.type.js +1 -5
- package/esm/breadcrumb/index.d.ts +1 -1
- package/esm/breadcrumb/index.d.ts.map +1 -1
- package/esm/breadcrumb/index.js +2 -19
- package/esm/breadcrumb/list.js +37 -41
- package/esm/button/button-group.js +10 -26
- package/esm/button/button-item.js +4 -12
- package/esm/button/button.js +35 -40
- package/esm/button/button.type.d.ts +1 -7
- package/esm/button/button.type.d.ts.map +1 -1
- package/esm/button/button.type.js +1 -5
- package/esm/button/index.d.ts +1 -1
- package/esm/button/index.d.ts.map +1 -1
- package/esm/button/index.js +3 -26
- package/esm/card/card-accordion-context.d.ts.map +1 -1
- package/esm/card/card-accordion-context.js +4 -11
- package/esm/card/card-accordion.js +23 -26
- package/esm/card/card-accordion.type.d.ts +0 -8
- package/esm/card/card-accordion.type.d.ts.map +1 -1
- package/esm/card/card-accordion.type.js +1 -5
- package/esm/card/card-body.js +11 -19
- package/esm/card/card-body.type.d.ts +0 -8
- package/esm/card/card-body.type.d.ts.map +1 -1
- package/esm/card/card-body.type.js +1 -5
- package/esm/card/card-footer.js +9 -17
- package/esm/card/card-footer.type.d.ts +0 -8
- package/esm/card/card-footer.type.d.ts.map +1 -1
- package/esm/card/card-footer.type.js +1 -5
- package/esm/card/card-header.js +17 -24
- package/esm/card/card-header.type.d.ts +0 -8
- package/esm/card/card-header.type.d.ts.map +1 -1
- package/esm/card/card-header.type.js +1 -5
- package/esm/card/card.context.d.ts.map +1 -1
- package/esm/card/card.context.js +4 -10
- package/esm/card/card.js +43 -47
- package/esm/card/card.type.js +1 -5
- package/esm/card/index.d.ts +1 -1
- package/esm/card/index.d.ts.map +1 -1
- package/esm/card/index.js +7 -54
- package/esm/card-group/card-group-context.d.ts.map +1 -1
- package/esm/card-group/card-group-context.js +4 -9
- package/esm/card-group/card-group.js +22 -30
- package/esm/card-group/card-group.type.js +1 -5
- package/esm/card-group/index.d.ts +1 -1
- package/esm/card-group/index.d.ts.map +1 -1
- package/esm/card-group/index.js +3 -26
- package/esm/card-group/item.js +18 -30
- package/esm/card-group/item.type.js +1 -5
- package/esm/card-group/lazyload.js +19 -27
- package/esm/carousel/carousel.js +45 -54
- package/esm/carousel/carousel.type.d.ts +0 -1
- package/esm/carousel/carousel.type.d.ts.map +1 -1
- package/esm/carousel/carousel.type.js +1 -5
- package/esm/carousel/index.d.ts +1 -1
- package/esm/carousel/index.d.ts.map +1 -1
- package/esm/carousel/index.js +2 -19
- package/esm/cascader/cascader.d.ts +1 -1
- package/esm/cascader/cascader.d.ts.map +1 -1
- package/esm/cascader/cascader.js +248 -137
- package/esm/cascader/cascader.type.d.ts +94 -22
- package/esm/cascader/cascader.type.d.ts.map +1 -1
- package/esm/cascader/cascader.type.js +1 -5
- package/esm/cascader/filter-list.js +13 -23
- package/esm/cascader/filter-list.type.js +1 -5
- package/esm/cascader/filter-node.js +12 -22
- package/esm/cascader/filter-node.type.js +1 -5
- package/esm/cascader/index.d.ts +1 -1
- package/esm/cascader/index.d.ts.map +1 -1
- package/esm/cascader/index.js +2 -19
- package/esm/cascader/list.js +9 -18
- package/esm/cascader/list.type.js +1 -5
- package/esm/cascader/node.d.ts.map +1 -1
- package/esm/cascader/node.js +49 -47
- package/esm/cascader/node.type.js +1 -5
- package/esm/checkbox/checkbox-group.d.ts +1 -1
- package/esm/checkbox/checkbox-group.js +25 -33
- package/esm/checkbox/checkbox-group.type.js +1 -5
- package/esm/checkbox/checkbox.d.ts.map +1 -1
- package/esm/checkbox/checkbox.js +33 -35
- package/esm/checkbox/checkbox.type.d.ts +1 -1
- package/esm/checkbox/checkbox.type.js +1 -5
- package/esm/checkbox/group-context.d.ts +1 -1
- package/esm/checkbox/group-context.d.ts.map +1 -1
- package/esm/checkbox/group-context.js +4 -9
- package/esm/checkbox/index.d.ts +1 -1
- package/esm/checkbox/index.d.ts.map +1 -1
- package/esm/checkbox/index.js +3 -26
- package/esm/checkbox/simple-checkbox.js +31 -37
- package/esm/checkbox/use-checkbox-inputable.js +12 -15
- package/esm/collapse/collapse-item.js +28 -41
- package/esm/collapse/collapse-item.type.js +1 -5
- package/esm/collapse/collapse.js +12 -20
- package/esm/collapse/collapse.type.js +1 -5
- package/esm/collapse/group-context.d.ts +1 -1
- package/esm/collapse/group-context.d.ts.map +1 -1
- package/esm/collapse/group-context.js +4 -9
- package/esm/collapse/index.d.ts +2 -2
- package/esm/collapse/index.d.ts.map +1 -1
- package/esm/collapse/index.js +3 -26
- package/esm/common/type.d.ts +7 -0
- package/esm/common/type.d.ts.map +1 -1
- package/esm/common/type.js +1 -5
- package/esm/common/use-clear.js +4 -11
- package/esm/common/use-inner-title.d.ts +2 -0
- package/esm/common/use-inner-title.d.ts.map +1 -1
- package/esm/common/use-inner-title.js +40 -28
- package/esm/common/use-tip.d.ts +18 -2
- package/esm/common/use-tip.d.ts.map +1 -1
- package/esm/common/use-tip.js +14 -21
- package/esm/common/use-with-form-config.d.ts +1 -1
- package/esm/common/use-with-form-config.d.ts.map +1 -1
- package/esm/common/use-with-form-config.js +10 -19
- package/esm/config/index.d.ts +2 -5
- package/esm/config/index.d.ts.map +1 -1
- package/esm/config/index.js +29 -54
- package/esm/config/locale/Props.d.ts +4 -4
- package/esm/config/locale/Props.d.ts.map +1 -1
- package/esm/config/locale/Props.js +1 -5
- package/esm/config/locale/en_US.js +2 -9
- package/esm/config/locale/index.js +18 -25
- package/esm/config/locale/zh-CN.js +2 -9
- package/esm/date-picker/date-picker.d.ts +1 -1
- package/esm/date-picker/date-picker.d.ts.map +1 -1
- package/esm/date-picker/date-picker.js +83 -81
- package/esm/date-picker/date-picker.type.d.ts +20 -9
- package/esm/date-picker/date-picker.type.d.ts.map +1 -1
- package/esm/date-picker/date-picker.type.js +1 -5
- package/esm/date-picker/day.js +74 -85
- package/esm/date-picker/day.type.js +1 -5
- package/esm/date-picker/index.d.ts +1 -1
- package/esm/date-picker/index.d.ts.map +1 -1
- package/esm/date-picker/index.js +2 -19
- package/esm/date-picker/month.js +32 -42
- package/esm/date-picker/month.type.d.ts +1 -1
- package/esm/date-picker/month.type.d.ts.map +1 -1
- package/esm/date-picker/month.type.js +1 -5
- package/esm/date-picker/picker.d.ts.map +1 -1
- package/esm/date-picker/picker.js +33 -40
- package/esm/date-picker/picker.type.d.ts +3 -2
- package/esm/date-picker/picker.type.d.ts.map +1 -1
- package/esm/date-picker/picker.type.js +1 -5
- package/esm/date-picker/pickerTitle.js +8 -15
- package/esm/date-picker/quarter.js +31 -41
- package/esm/date-picker/quarter.type.d.ts +1 -1
- package/esm/date-picker/quarter.type.d.ts.map +1 -1
- package/esm/date-picker/quarter.type.js +1 -5
- package/esm/date-picker/quick.d.ts.map +1 -1
- package/esm/date-picker/quick.js +18 -23
- package/esm/date-picker/quick.type.d.ts +1 -0
- package/esm/date-picker/quick.type.d.ts.map +1 -1
- package/esm/date-picker/quick.type.js +1 -5
- package/esm/date-picker/result.d.ts +1 -0
- package/esm/date-picker/result.d.ts.map +1 -1
- package/esm/date-picker/result.js +44 -52
- package/esm/date-picker/time.js +33 -47
- package/esm/date-picker/time.type.js +1 -5
- package/esm/date-picker/year.js +34 -44
- package/esm/date-picker/year.type.d.ts +1 -1
- package/esm/date-picker/year.type.d.ts.map +1 -1
- package/esm/date-picker/year.type.js +1 -5
- package/esm/descriptions/descriptions.js +35 -50
- package/esm/descriptions/descriptions.type.d.ts +1 -1
- package/esm/descriptions/descriptions.type.d.ts.map +1 -1
- package/esm/descriptions/descriptions.type.js +1 -5
- package/esm/descriptions/index.d.ts +1 -1
- package/esm/descriptions/index.d.ts.map +1 -1
- package/esm/descriptions/index.js +2 -19
- package/esm/divider/divider.js +7 -15
- package/esm/divider/divider.type.js +1 -5
- package/esm/divider/index.d.ts +1 -1
- package/esm/divider/index.d.ts.map +1 -1
- package/esm/divider/index.js +2 -19
- package/esm/dropdown/Item.d.ts.map +1 -1
- package/esm/dropdown/Item.js +47 -41
- package/esm/dropdown/dropdown.js +11 -19
- package/esm/dropdown/dropdown.type.d.ts +9 -7
- package/esm/dropdown/dropdown.type.d.ts.map +1 -1
- package/esm/dropdown/dropdown.type.js +10 -3
- package/esm/dropdown/dropdownIn.d.ts.map +1 -1
- package/esm/dropdown/dropdownIn.js +48 -53
- package/esm/dropdown/index.d.ts +1 -1
- package/esm/dropdown/index.d.ts.map +1 -1
- package/esm/dropdown/index.js +2 -19
- package/esm/editable-area/editable-area.d.ts.map +1 -1
- package/esm/editable-area/editable-area.js +50 -65
- package/esm/editable-area/editable-area.type.js +1 -5
- package/esm/editable-area/index.d.ts +1 -1
- package/esm/editable-area/index.d.ts.map +1 -1
- package/esm/editable-area/index.js +2 -19
- package/esm/empty/empty-image.js +43 -49
- package/esm/empty/empty.js +28 -35
- package/esm/empty/empty.type.js +1 -5
- package/esm/empty/index.d.ts +1 -1
- package/esm/empty/index.d.ts.map +1 -1
- package/esm/empty/index.js +2 -19
- package/esm/form/error-trans.js +11 -21
- package/esm/form/form-button.js +16 -24
- package/esm/form/form-field.d.ts.map +1 -1
- package/esm/form/form-field.js +19 -20
- package/esm/form/form-field.type.d.ts +1 -1
- package/esm/form/form-field.type.d.ts.map +1 -1
- package/esm/form/form-field.type.js +1 -5
- package/esm/form/form-fieldset.js +22 -34
- package/esm/form/form-fieldset.type.js +1 -5
- package/esm/form/form-flow.js +4 -11
- package/esm/form/form-flow.type.js +1 -5
- package/esm/form/form-footer-context.d.ts.map +1 -1
- package/esm/form/form-footer-context.js +22 -31
- package/esm/form/form-item.js +34 -38
- package/esm/form/form-item.type.js +1 -5
- package/esm/form/form.d.ts +1 -1
- package/esm/form/form.d.ts.map +1 -1
- package/esm/form/form.js +41 -45
- package/esm/form/form.type.d.ts +7 -0
- package/esm/form/form.type.d.ts.map +1 -1
- package/esm/form/form.type.js +1 -8
- package/esm/form/index.d.ts +2 -2
- package/esm/form/index.d.ts.map +1 -1
- package/esm/form/index.js +7 -54
- package/esm/gap/gap.d.ts.map +1 -1
- package/esm/gap/gap.js +21 -25
- package/esm/gap/gap.type.d.ts +7 -0
- package/esm/gap/gap.type.d.ts.map +1 -1
- package/esm/gap/gap.type.js +1 -5
- package/esm/gap/index.d.ts +1 -1
- package/esm/gap/index.d.ts.map +1 -1
- package/esm/gap/index.js +2 -19
- package/esm/gap/support.d.ts.map +1 -1
- package/esm/gap/support.js +2 -7
- package/esm/grid/grid.js +19 -34
- package/esm/grid/grid.type.d.ts +1 -1
- package/esm/grid/grid.type.d.ts.map +1 -1
- package/esm/grid/grid.type.js +1 -5
- package/esm/grid/index.js +2 -19
- package/esm/grid/util.d.ts +1 -1
- package/esm/grid/util.d.ts.map +1 -1
- package/esm/grid/util.js +9 -14
- package/esm/icon/icon.d.ts.map +1 -1
- package/esm/icon/icon.js +36 -42
- package/esm/icon/icon.type.d.ts +4 -4
- package/esm/icon/icon.type.d.ts.map +1 -1
- package/esm/icon/icon.type.js +1 -5
- package/esm/icon/index.d.ts +1 -1
- package/esm/icon/index.d.ts.map +1 -1
- package/esm/icon/index.js +2 -19
- package/esm/icons/config.d.ts +144 -0
- package/esm/icons/config.d.ts.map +1 -0
- package/esm/icons/config.js +157 -0
- package/esm/icons/icons.d.ts +46 -0
- package/esm/icons/icons.d.ts.map +1 -0
- package/esm/icons/icons.js +177 -0
- package/esm/icons/index.d.ts +1 -47
- package/esm/icons/index.d.ts.map +1 -1
- package/esm/icons/index.js +2 -194
- package/esm/image/image-event.d.ts +1 -1
- package/esm/image/image-event.d.ts.map +1 -1
- package/esm/image/image-event.js +12 -18
- package/esm/image/image-gallery.js +31 -37
- package/esm/image/image-group.d.ts.map +1 -1
- package/esm/image/image-group.js +34 -45
- package/esm/image/image-group.type.d.ts +2 -1
- package/esm/image/image-group.type.d.ts.map +1 -1
- package/esm/image/image-group.type.js +1 -5
- package/esm/image/image-magnify.js +17 -23
- package/esm/image/image.js +53 -66
- package/esm/image/image.type.d.ts +39 -5
- package/esm/image/image.type.d.ts.map +1 -1
- package/esm/image/image.type.js +1 -5
- package/esm/image/index.d.ts +1 -1
- package/esm/image/index.d.ts.map +1 -1
- package/esm/image/index.js +3 -26
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +49 -581
- package/esm/input/index.d.ts +2 -1
- package/esm/input/index.d.ts.map +1 -1
- package/esm/input/index.js +5 -40
- package/esm/input/input-group.d.ts.map +1 -1
- package/esm/input/input-group.js +37 -44
- package/esm/input/input-group.type.js +1 -5
- package/esm/input/input-number.js +33 -39
- package/esm/input/input-number.type.d.ts +1 -1
- package/esm/input/input-number.type.d.ts.map +1 -1
- package/esm/input/input-number.type.js +1 -5
- package/esm/input/input-password.js +23 -29
- package/esm/input/input-password.type.js +1 -5
- package/esm/input/input.js +18 -27
- package/esm/input/input.type.d.ts +8 -17
- package/esm/input/input.type.d.ts.map +1 -1
- package/esm/input/input.type.js +1 -5
- package/esm/input/simple-input.d.ts.map +1 -1
- package/esm/input/simple-input.js +35 -54
- package/esm/input/use-input-common.d.ts +4 -6
- package/esm/input/use-input-common.d.ts.map +1 -1
- package/esm/input/use-input-common.js +50 -62
- package/esm/list/base-item.js +47 -54
- package/esm/list/base-item.type.js +1 -5
- package/esm/list/index.d.ts +1 -1
- package/esm/list/index.d.ts.map +1 -1
- package/esm/list/index.js +3 -26
- package/esm/list/list.d.ts.map +1 -1
- package/esm/list/list.js +61 -70
- package/esm/list/list.type.js +1 -5
- package/esm/menu/index.d.ts +1 -1
- package/esm/menu/index.d.ts.map +1 -1
- package/esm/menu/index.js +2 -19
- package/esm/menu/item.d.ts.map +1 -1
- package/esm/menu/item.js +45 -49
- package/esm/menu/menu.d.ts.map +1 -1
- package/esm/menu/menu.js +36 -39
- package/esm/menu/menu.type.d.ts +3 -3
- package/esm/menu/menu.type.d.ts.map +1 -1
- package/esm/menu/menu.type.js +1 -5
- package/esm/menu/scroll.js +25 -28
- package/esm/menu/scrollbar.js +16 -24
- package/esm/message/func.js +6 -14
- package/esm/message/func.type.d.ts +2 -2
- package/esm/message/func.type.d.ts.map +1 -1
- package/esm/message/func.type.js +1 -5
- package/esm/message/index.d.ts +1 -0
- package/esm/message/index.d.ts.map +1 -1
- package/esm/message/index.js +2 -19
- package/esm/message/manager.d.ts.map +1 -1
- package/esm/message/manager.js +15 -25
- package/esm/message/message.d.ts.map +1 -1
- package/esm/message/message.js +67 -69
- package/esm/message/message.type.js +1 -5
- package/esm/modal/index.d.ts +1 -1
- package/esm/modal/index.d.ts.map +1 -1
- package/esm/modal/index.js +4 -33
- package/esm/modal/modal-content.d.ts.map +1 -1
- package/esm/modal/modal-content.js +87 -74
- package/esm/modal/modal-content.type.js +1 -5
- package/esm/modal/modal-func.d.ts +1 -1
- package/esm/modal/modal-func.d.ts.map +1 -1
- package/esm/modal/modal-func.js +40 -44
- package/esm/modal/modal-func.type.js +1 -5
- package/esm/modal/modal-submit.js +17 -25
- package/esm/modal/modal.js +24 -26
- package/esm/modal/modal.type.d.ts +1 -1
- package/esm/modal/modal.type.d.ts.map +1 -1
- package/esm/modal/modal.type.js +1 -5
- package/esm/modal/use-modal-move.js +24 -27
- package/esm/modal/use-modal-resize.js +19 -22
- package/esm/pagination/index.d.ts +1 -1
- package/esm/pagination/index.d.ts.map +1 -1
- package/esm/pagination/index.js +2 -19
- package/esm/pagination/pagination-button.js +17 -25
- package/esm/pagination/pagination-button.type.js +1 -5
- package/esm/pagination/pagination-buttons.js +37 -39
- package/esm/pagination/pagination-buttons.type.d.ts +2 -2
- package/esm/pagination/pagination-buttons.type.d.ts.map +1 -1
- package/esm/pagination/pagination-buttons.type.js +1 -5
- package/esm/pagination/pagination-jumper.js +26 -30
- package/esm/pagination/pagination-jumper.type.js +1 -5
- package/esm/pagination/pagination-next.d.ts.map +1 -1
- package/esm/pagination/pagination-next.js +10 -18
- package/esm/pagination/pagination-prev.d.ts.map +1 -1
- package/esm/pagination/pagination-prev.js +10 -18
- package/esm/pagination/pagination-simple.js +11 -17
- package/esm/pagination/pagination-simple.type.js +1 -5
- package/esm/pagination/pagination-size-list.js +8 -17
- package/esm/pagination/pagination-size-list.type.js +1 -5
- package/esm/pagination/pagination.d.ts.map +1 -1
- package/esm/pagination/pagination.js +32 -42
- package/esm/pagination/pagination.type.d.ts +4 -4
- package/esm/pagination/pagination.type.d.ts.map +1 -1
- package/esm/pagination/pagination.type.js +1 -5
- package/esm/popover/confirm.js +39 -46
- package/esm/popover/confirm.type.d.ts +2 -2
- package/esm/popover/confirm.type.d.ts.map +1 -1
- package/esm/popover/confirm.type.js +1 -5
- package/esm/popover/index.d.ts +1 -1
- package/esm/popover/index.d.ts.map +1 -1
- package/esm/popover/index.js +3 -26
- package/esm/popover/popover.d.ts.map +1 -1
- package/esm/popover/popover.js +40 -45
- package/esm/popover/popover.type.js +1 -5
- package/esm/progress/analyzeColor.js +3 -11
- package/esm/progress/circle.js +21 -30
- package/esm/progress/index.d.ts +1 -1
- package/esm/progress/index.d.ts.map +1 -1
- package/esm/progress/index.js +2 -19
- package/esm/progress/line-popup.js +15 -21
- package/esm/progress/line.js +20 -29
- package/esm/progress/progress.js +13 -21
- package/esm/progress/progress.type.js +1 -5
- package/esm/radio/group-context.d.ts +1 -1
- package/esm/radio/group-context.d.ts.map +1 -1
- package/esm/radio/group-context.js +4 -9
- package/esm/radio/index.d.ts +1 -1
- package/esm/radio/index.d.ts.map +1 -1
- package/esm/radio/index.js +3 -26
- package/esm/radio/radio-group.d.ts +1 -1
- package/esm/radio/radio-group.d.ts.map +1 -1
- package/esm/radio/radio-group.js +38 -45
- package/esm/radio/radio-group.type.js +1 -5
- package/esm/radio/radio.js +20 -27
- package/esm/radio/radio.type.js +1 -5
- package/esm/radio/simple-radio.js +24 -30
- package/esm/rate/index.d.ts +1 -1
- package/esm/rate/index.d.ts.map +1 -1
- package/esm/rate/index.js +2 -19
- package/esm/rate/rate.d.ts +1 -1
- package/esm/rate/rate.d.ts.map +1 -1
- package/esm/rate/rate.js +34 -42
- package/esm/rate/rate.type.d.ts +2 -2
- package/esm/rate/rate.type.d.ts.map +1 -1
- package/esm/rate/rate.type.js +1 -5
- package/esm/rule/index.js +2 -12
- package/esm/select/index.d.ts +1 -1
- package/esm/select/index.d.ts.map +1 -1
- package/esm/select/index.js +2 -19
- package/esm/select/list-columns-option.d.ts.map +1 -1
- package/esm/select/list-columns-option.js +8 -17
- package/esm/select/list-columns-option.type.js +1 -5
- package/esm/select/list-columns.js +21 -33
- package/esm/select/list-option.d.ts.map +1 -1
- package/esm/select/list-option.js +19 -27
- package/esm/select/list-option.type.js +1 -5
- package/esm/select/list-tree.d.ts.map +1 -1
- package/esm/select/list-tree.js +14 -28
- package/esm/select/list-tree.type.d.ts +1 -1
- package/esm/select/list-tree.type.d.ts.map +1 -1
- package/esm/select/list-tree.type.js +1 -5
- package/esm/select/list.js +41 -46
- package/esm/select/result-input.d.ts.map +1 -1
- package/esm/select/result-input.js +49 -59
- package/esm/select/result-input.type.d.ts +6 -1
- package/esm/select/result-input.type.d.ts.map +1 -1
- package/esm/select/result-input.type.js +1 -5
- package/esm/select/result-more.d.ts +2 -2
- package/esm/select/result-more.d.ts.map +1 -1
- package/esm/select/result-more.js +49 -40
- package/esm/select/result-more.type.d.ts +4 -0
- package/esm/select/result-more.type.d.ts.map +1 -1
- package/esm/select/result-more.type.js +1 -5
- package/esm/select/result.d.ts.map +1 -1
- package/esm/select/result.js +178 -128
- package/esm/select/result.type.d.ts +18 -4
- package/esm/select/result.type.d.ts.map +1 -1
- package/esm/select/result.type.js +1 -5
- package/esm/select/select.d.ts +1 -1
- package/esm/select/select.d.ts.map +1 -1
- package/esm/select/select.js +301 -228
- package/esm/select/select.type.d.ts +126 -24
- package/esm/select/select.type.d.ts.map +1 -1
- package/esm/select/select.type.js +1 -5
- package/esm/slider/index.d.ts +1 -1
- package/esm/slider/index.d.ts.map +1 -1
- package/esm/slider/index.js +2 -19
- package/esm/slider/slider.d.ts +1 -1
- package/esm/slider/slider.d.ts.map +1 -1
- package/esm/slider/slider.js +33 -38
- package/esm/slider/slider.type.js +1 -5
- package/esm/spin/base.d.ts.map +1 -1
- package/esm/spin/base.js +16 -24
- package/esm/spin/index.d.ts +1 -1
- package/esm/spin/index.d.ts.map +1 -1
- package/esm/spin/index.js +2 -19
- package/esm/spin/spin.d.ts +2 -1
- package/esm/spin/spin.d.ts.map +1 -1
- package/esm/spin/spin.js +28 -34
- package/esm/spin/spin.type.d.ts +3 -3
- package/esm/spin/spin.type.d.ts.map +1 -1
- package/esm/spin/spin.type.js +1 -5
- package/esm/spin/spins.js +71 -80
- package/esm/spin/utils.js +2 -10
- package/esm/steps/index.d.ts +1 -1
- package/esm/steps/index.d.ts.map +1 -1
- package/esm/steps/index.js +3 -26
- package/esm/steps/step.arrow.d.ts.map +1 -1
- package/esm/steps/step.arrow.js +15 -20
- package/esm/steps/step.default.d.ts.map +1 -1
- package/esm/steps/step.default.js +25 -29
- package/esm/steps/step.dot.d.ts.map +1 -1
- package/esm/steps/step.dot.js +20 -24
- package/esm/steps/step.js +28 -37
- package/esm/steps/step.type.js +1 -5
- package/esm/steps/steps-context.d.ts.map +1 -1
- package/esm/steps/steps-context.js +4 -9
- package/esm/steps/steps-context.type.js +1 -5
- package/esm/steps/steps.js +18 -24
- package/esm/steps/steps.type.d.ts +28 -3
- package/esm/steps/steps.type.d.ts.map +1 -1
- package/esm/steps/steps.type.js +1 -5
- package/esm/sticky/index.d.ts +1 -1
- package/esm/sticky/index.d.ts.map +1 -1
- package/esm/sticky/index.js +2 -19
- package/esm/sticky/sticky.d.ts.map +1 -1
- package/esm/sticky/sticky.js +82 -77
- package/esm/sticky/sticky.type.d.ts +5 -1
- package/esm/sticky/sticky.type.d.ts.map +1 -1
- package/esm/sticky/sticky.type.js +1 -5
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/index.d.ts.map +1 -1
- package/esm/switch/index.js +2 -19
- package/esm/switch/switch.d.ts +1 -1
- package/esm/switch/switch.d.ts.map +1 -1
- package/esm/switch/switch.js +32 -32
- package/esm/switch/switch.type.js +1 -5
- package/esm/table/colgroup.js +6 -14
- package/esm/table/index.d.ts +1 -1
- package/esm/table/index.d.ts.map +1 -1
- package/esm/table/index.js +2 -19
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +163 -155
- package/esm/table/table.type.d.ts +12 -10
- package/esm/table/table.type.d.ts.map +1 -1
- package/esm/table/table.type.js +1 -5
- package/esm/table/tbody.d.ts.map +1 -1
- package/esm/table/tbody.js +14 -21
- package/esm/table/tbody.type.d.ts +4 -3
- package/esm/table/tbody.type.d.ts.map +1 -1
- package/esm/table/tbody.type.js +1 -5
- package/esm/table/temp/01-base.d.ts.map +1 -1
- package/esm/table/temp/01-base.js +40 -37
- package/esm/table/tfoot.js +12 -22
- package/esm/table/tfoot.type.js +1 -12
- package/esm/table/thead.d.ts.map +1 -1
- package/esm/table/thead.js +53 -68
- package/esm/table/thead.type.d.ts +2 -2
- package/esm/table/thead.type.d.ts.map +1 -1
- package/esm/table/thead.type.js +1 -5
- package/esm/table/tr.d.ts +1 -1
- package/esm/table/tr.d.ts.map +1 -1
- package/esm/table/tr.js +52 -66
- package/esm/table/use-table-select.d.ts +1 -2
- package/esm/table/use-table-select.d.ts.map +1 -1
- package/esm/table/use-table-select.js +20 -29
- package/esm/tabs/index.d.ts +1 -1
- package/esm/tabs/index.d.ts.map +1 -1
- package/esm/tabs/index.js +3 -26
- package/esm/tabs/tab.d.ts.map +1 -1
- package/esm/tabs/tab.js +25 -32
- package/esm/tabs/tab.type.js +1 -5
- package/esm/tabs/tabs-header.d.ts.map +1 -1
- package/esm/tabs/tabs-header.js +62 -65
- package/esm/tabs/tabs-header.type.js +1 -5
- package/esm/tabs/tabs-panel.d.ts.map +1 -1
- package/esm/tabs/tabs-panel.js +23 -19
- package/esm/tabs/tabs-panel.type.js +1 -5
- package/esm/tabs/tabs.d.ts.map +1 -1
- package/esm/tabs/tabs.js +59 -69
- package/esm/tabs/tabs.type.d.ts +4 -4
- package/esm/tabs/tabs.type.d.ts.map +1 -1
- package/esm/tabs/tabs.type.js +1 -5
- package/esm/tag/index.d.ts +1 -1
- package/esm/tag/index.d.ts.map +1 -1
- package/esm/tag/index.js +3 -26
- package/esm/tag/tag-input.js +16 -24
- package/esm/tag/tag.d.ts.map +1 -1
- package/esm/tag/tag.js +41 -41
- package/esm/tag/tag.type.d.ts +17 -6
- package/esm/tag/tag.type.d.ts.map +1 -1
- package/esm/tag/tag.type.js +1 -5
- package/esm/tag/use-tag.d.ts.map +1 -1
- package/esm/tag/use-tag.js +27 -25
- package/esm/textarea/index.d.ts +1 -1
- package/esm/textarea/index.d.ts.map +1 -1
- package/esm/textarea/index.js +2 -19
- package/esm/textarea/simple-textarea.js +26 -40
- package/esm/textarea/textarea.d.ts +1 -1
- package/esm/textarea/textarea.d.ts.map +1 -1
- package/esm/textarea/textarea.js +52 -65
- package/esm/textarea/textarea.type.d.ts +4 -2
- package/esm/textarea/textarea.type.d.ts.map +1 -1
- package/esm/textarea/textarea.type.js +1 -5
- package/esm/textarea/use-auto-size.js +20 -28
- package/esm/tooltip/index.d.ts +1 -1
- package/esm/tooltip/index.d.ts.map +1 -1
- package/esm/tooltip/index.js +2 -19
- package/esm/tooltip/tooltip.d.ts.map +1 -1
- package/esm/tooltip/tooltip.js +36 -43
- package/esm/tooltip/tooltip.type.d.ts +6 -0
- package/esm/tooltip/tooltip.type.d.ts.map +1 -1
- package/esm/tooltip/tooltip.type.js +1 -5
- package/esm/transfer/index.d.ts +1 -1
- package/esm/transfer/index.d.ts.map +1 -1
- package/esm/transfer/index.js +2 -19
- package/esm/transfer/transfer-list-header.d.ts.map +1 -1
- package/esm/transfer/transfer-list-header.js +22 -29
- package/esm/transfer/transfer-list-header.type.js +1 -5
- package/esm/transfer/transfer-list-item.d.ts.map +1 -1
- package/esm/transfer/transfer-list-item.js +21 -26
- package/esm/transfer/transfer-list-item.type.d.ts +1 -1
- package/esm/transfer/transfer-list-item.type.d.ts.map +1 -1
- package/esm/transfer/transfer-list-item.type.js +1 -5
- package/esm/transfer/transfer-list.d.ts.map +1 -1
- package/esm/transfer/transfer-list.js +44 -51
- package/esm/transfer/transfer-list.type.js +1 -5
- package/esm/transfer/transfer-operate.js +6 -14
- package/esm/transfer/transfer-operate.type.js +1 -5
- package/esm/transfer/transfer.js +28 -33
- package/esm/transfer/transfer.type.d.ts +30 -3
- package/esm/transfer/transfer.type.d.ts.map +1 -1
- package/esm/transfer/transfer.type.js +1 -5
- package/esm/tree/index.d.ts +1 -1
- package/esm/tree/index.d.ts.map +1 -1
- package/esm/tree/index.js +2 -19
- package/esm/tree/tree-checkbox.d.ts +2 -1
- package/esm/tree/tree-checkbox.d.ts.map +1 -1
- package/esm/tree/tree-checkbox.js +9 -13
- package/esm/tree/tree-checkbox.type.d.ts +2 -2
- package/esm/tree/tree-checkbox.type.d.ts.map +1 -1
- package/esm/tree/tree-checkbox.type.js +1 -5
- package/esm/tree/tree-content.d.ts +2 -1
- package/esm/tree/tree-content.d.ts.map +1 -1
- package/esm/tree/tree-content.js +46 -49
- package/esm/tree/tree-content.type.d.ts +2 -2
- package/esm/tree/tree-content.type.d.ts.map +1 -1
- package/esm/tree/tree-content.type.js +1 -5
- package/esm/tree/tree-context.d.ts +3 -3
- package/esm/tree/tree-context.d.ts.map +1 -1
- package/esm/tree/tree-context.js +8 -21
- package/esm/tree/tree-context.type.d.ts +5 -16
- package/esm/tree/tree-context.type.d.ts.map +1 -1
- package/esm/tree/tree-context.type.js +1 -5
- package/esm/tree/tree-list.d.ts +1 -1
- package/esm/tree/tree-list.d.ts.map +1 -1
- package/esm/tree/tree-list.js +12 -19
- package/esm/tree/tree-list.type.d.ts +3 -3
- package/esm/tree/tree-list.type.d.ts.map +1 -1
- package/esm/tree/tree-list.type.js +1 -5
- package/esm/tree/tree-node.d.ts +1 -1
- package/esm/tree/tree-node.d.ts.map +1 -1
- package/esm/tree/tree-node.js +62 -55
- package/esm/tree/tree-node.type.d.ts +3 -3
- package/esm/tree/tree-node.type.d.ts.map +1 -1
- package/esm/tree/tree-node.type.js +1 -5
- package/esm/tree/tree-root.d.ts +1 -1
- package/esm/tree/tree-root.d.ts.map +1 -1
- package/esm/tree/tree-root.js +15 -22
- package/esm/tree/tree-root.type.d.ts +3 -3
- package/esm/tree/tree-root.type.d.ts.map +1 -1
- package/esm/tree/tree-root.type.js +1 -5
- package/esm/tree/tree.d.ts +2 -1
- package/esm/tree/tree.d.ts.map +1 -1
- package/esm/tree/tree.js +43 -53
- package/esm/tree/tree.type.d.ts +27 -10
- package/esm/tree/tree.type.d.ts.map +1 -1
- package/esm/tree/tree.type.js +1 -5
- package/esm/tree-select/index.d.ts +1 -1
- package/esm/tree-select/index.d.ts.map +1 -1
- package/esm/tree-select/index.js +2 -19
- package/esm/tree-select/tree-select.d.ts +2 -2
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +211 -139
- package/esm/tree-select/tree-select.type.d.ts +93 -20
- package/esm/tree-select/tree-select.type.d.ts.map +1 -1
- package/esm/tree-select/tree-select.type.js +1 -5
- package/esm/upload/button.d.ts.map +1 -1
- package/esm/upload/button.js +39 -50
- package/esm/upload/button.type.d.ts +1 -1
- package/esm/upload/button.type.d.ts.map +1 -1
- package/esm/upload/button.type.js +1 -5
- package/esm/upload/drop.js +23 -33
- package/esm/upload/image.js +10 -18
- package/esm/upload/image.type.js +1 -5
- package/esm/upload/index.d.ts +1 -1
- package/esm/upload/index.d.ts.map +1 -1
- package/esm/upload/index.js +4 -33
- package/esm/upload/result.d.ts +1 -1
- package/esm/upload/result.d.ts.map +1 -1
- package/esm/upload/result.js +64 -71
- package/esm/upload/upload.d.ts +1 -1
- package/esm/upload/upload.d.ts.map +1 -1
- package/esm/upload/upload.js +54 -68
- package/esm/upload/upload.type.js +1 -5
- package/esm/upload/useInputClick.js +5 -12
- package/esm/virtual-scroll/index.js +3 -20
- package/esm/virtual-scroll/scroll.js +21 -34
- package/esm/virtual-scroll/virtual-scroll-list.js +32 -43
- package/esm/virtual-scroll/virtual-scroll-list.type.d.ts +1 -1
- package/esm/virtual-scroll/virtual-scroll-list.type.d.ts.map +1 -1
- package/esm/virtual-scroll/virtual-scroll-list.type.js +1 -5
- package/package.json +5 -4
- package/cjs/icons/caret.d.ts +0 -4
- package/cjs/icons/caret.d.ts.map +0 -1
- package/cjs/icons/caret.js +0 -19
- package/cjs/icons/caret.type.d.ts +0 -2
- package/cjs/icons/caret.type.d.ts.map +0 -1
- package/cjs/icons/caret.type.js +0 -5
- package/cjs/table/temp/00-scroll.d.ts +0 -4
- package/cjs/table/temp/00-scroll.d.ts.map +0 -1
- package/cjs/table/temp/00-scroll.js +0 -33
- package/esm/icons/caret.d.ts +0 -4
- package/esm/icons/caret.d.ts.map +0 -1
- package/esm/icons/caret.js +0 -19
- package/esm/icons/caret.type.d.ts +0 -2
- package/esm/icons/caret.type.d.ts.map +0 -1
- package/esm/icons/caret.type.js +0 -5
- package/esm/table/temp/00-scroll.d.ts +0 -4
- package/esm/table/temp/00-scroll.d.ts.map +0 -1
- package/esm/table/temp/00-scroll.js +0 -33
package/esm/modal/modal.js
CHANGED
|
@@ -1,40 +1,38 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
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); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import ReactDom from 'react-dom';
|
|
14
|
+
import { useState } from 'react';
|
|
15
|
+
import ModalContent from "./modal-content";
|
|
16
|
+
import useContainer from "../absolute-list/use-container";
|
|
17
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
18
|
var Modal = function Modal(props) {
|
|
21
|
-
var _useContainer = (
|
|
19
|
+
var _useContainer = useContainer({
|
|
22
20
|
container: props.container
|
|
23
21
|
}),
|
|
24
22
|
getRoot = _useContainer.getRoot;
|
|
25
|
-
var _useState =
|
|
26
|
-
_useState2 = (
|
|
23
|
+
var _useState = useState(true),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
27
25
|
canDestroy = _useState2[0],
|
|
28
26
|
seCanDestroy = _useState2[1];
|
|
29
27
|
var root = getRoot();
|
|
30
28
|
if (props.destroy && !props.visible && canDestroy) {
|
|
31
29
|
return null;
|
|
32
30
|
}
|
|
33
|
-
var Content = /*#__PURE__*/(
|
|
31
|
+
var Content = /*#__PURE__*/_jsx(ModalContent, _objectSpread(_objectSpread({}, props), {}, {
|
|
34
32
|
shouldDestroy: seCanDestroy,
|
|
35
33
|
autoShow: false
|
|
36
34
|
}));
|
|
37
|
-
|
|
35
|
+
if (!root) return null;
|
|
36
|
+
return /*#__PURE__*/ReactDom.createPortal(Content, root);
|
|
38
37
|
};
|
|
39
|
-
|
|
40
|
-
exports.default = _default;
|
|
38
|
+
export default Modal;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { CommonType } from '../common/type';
|
|
3
3
|
import { ButtonJssStyle } from '../button/button.type';
|
|
4
4
|
import { AlertJssStyle } from '../alert/alert.type';
|
|
5
|
-
export
|
|
5
|
+
export type Methods = 'success' | 'info' | 'warning' | 'error' | 'confirm' | 'normal';
|
|
6
6
|
export interface ModalClasses {
|
|
7
7
|
wrapper: string;
|
|
8
8
|
wrapperShow: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.type.d.ts","sourceRoot":"","sources":["modal.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,
|
|
1
|
+
{"version":3,"file":"modal.type.d.ts","sourceRoot":"","sources":["modal.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEtF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAE5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,EAAE,aAAa;IAClE,KAAK,CAAC,EAAE,MAAM,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;IACzE,QAAQ,CAAC,EAAE,aAAa,CAAC;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAEhC;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;;OAIG;IACH,aAAa,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC;IAE/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAE/C;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,WAAW,GAAG,IAAI,CAAC;IAE5D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IAEhD;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|
package/esm/modal/modal.type.js
CHANGED
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
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); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useState, useRef } from 'react';
|
|
14
|
+
import { useDragMock, usePersistFn, util } from '@sheinx/hooks';
|
|
17
15
|
var DIS_LIMIT = 50;
|
|
18
|
-
var useModalMove = function useModalMove() {
|
|
19
|
-
var _useState =
|
|
16
|
+
export var useModalMove = function useModalMove() {
|
|
17
|
+
var _useState = useState({
|
|
20
18
|
x: 0,
|
|
21
19
|
y: 0
|
|
22
20
|
}),
|
|
23
|
-
_useState2 = (
|
|
21
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
22
|
pos = _useState2[0],
|
|
25
23
|
setPos = _useState2[1];
|
|
26
|
-
var _useRef =
|
|
24
|
+
var _useRef = useRef({
|
|
27
25
|
rect: {},
|
|
28
26
|
startPostion: {
|
|
29
27
|
x: 0,
|
|
@@ -31,22 +29,22 @@ var useModalMove = function useModalMove() {
|
|
|
31
29
|
}
|
|
32
30
|
}),
|
|
33
31
|
context = _useRef.current;
|
|
34
|
-
var handleDragStart =
|
|
32
|
+
var handleDragStart = usePersistFn(function (e) {
|
|
35
33
|
var target = e.currentTarget;
|
|
36
34
|
var rect = target.getBoundingClientRect();
|
|
37
35
|
context.rect = rect;
|
|
38
36
|
context.startPostion = _objectSpread({}, pos);
|
|
39
37
|
});
|
|
40
|
-
var handleDragMove =
|
|
38
|
+
var handleDragMove = usePersistFn(function (deltaX, deltaY) {
|
|
41
39
|
setPos(function (pre) {
|
|
42
40
|
var x = pre.x + deltaX;
|
|
43
41
|
var y = pre.y + deltaY;
|
|
44
42
|
var moveX = x - context.startPostion.x;
|
|
45
43
|
var moveY = y - context.startPostion.y;
|
|
46
|
-
if (context.rect.left + moveX >
|
|
44
|
+
if (context.rect.left + moveX > util.docSize.width - DIS_LIMIT || context.rect.right + moveX < DIS_LIMIT) {
|
|
47
45
|
x = pre.x;
|
|
48
46
|
}
|
|
49
|
-
if (context.rect.top + moveY >
|
|
47
|
+
if (context.rect.top + moveY > util.docSize.height - DIS_LIMIT || context.rect.bottom + moveY < DIS_LIMIT) {
|
|
50
48
|
y = pre.y;
|
|
51
49
|
}
|
|
52
50
|
return {
|
|
@@ -55,7 +53,7 @@ var useModalMove = function useModalMove() {
|
|
|
55
53
|
};
|
|
56
54
|
});
|
|
57
55
|
});
|
|
58
|
-
var _useDragMock =
|
|
56
|
+
var _useDragMock = useDragMock({
|
|
59
57
|
onDragStart: handleDragStart,
|
|
60
58
|
onDragMove: handleDragMove
|
|
61
59
|
}),
|
|
@@ -66,5 +64,4 @@ var useModalMove = function useModalMove() {
|
|
|
66
64
|
isDragging: isDragging,
|
|
67
65
|
pos: pos
|
|
68
66
|
};
|
|
69
|
-
};
|
|
70
|
-
exports.useModalMove = useModalMove;
|
|
67
|
+
};
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var useModalResize = function useModalResize(props) {
|
|
12
|
-
var _useState = (0, _react.useState)({
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
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."); }
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { useState, useRef } from 'react';
|
|
8
|
+
import { useDragMock, usePersistFn } from '@sheinx/hooks';
|
|
9
|
+
export var useModalResize = function useModalResize(props) {
|
|
10
|
+
var _useState = useState({
|
|
13
11
|
width: props.defaultWidth,
|
|
14
12
|
height: props.defaultHeight
|
|
15
13
|
}),
|
|
16
|
-
_useState2 = (
|
|
14
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
17
15
|
pos = _useState2[0],
|
|
18
16
|
setPos = _useState2[1];
|
|
19
|
-
var _useRef =
|
|
17
|
+
var _useRef = useRef({
|
|
20
18
|
direction: 'xy',
|
|
21
19
|
position: 'none'
|
|
22
20
|
}),
|
|
23
21
|
context = _useRef.current;
|
|
24
|
-
var handleDragStart =
|
|
22
|
+
var handleDragStart = usePersistFn(function () {
|
|
25
23
|
var target = props.panelRef.current;
|
|
26
24
|
if (!target) return;
|
|
27
25
|
var rect = target.getBoundingClientRect();
|
|
@@ -32,7 +30,7 @@ var useModalResize = function useModalResize(props) {
|
|
|
32
30
|
height: height
|
|
33
31
|
});
|
|
34
32
|
});
|
|
35
|
-
var handleDragMove =
|
|
33
|
+
var handleDragMove = usePersistFn(function (deltaX, deltaY) {
|
|
36
34
|
setPos(function (pre) {
|
|
37
35
|
var _ref = pre,
|
|
38
36
|
width = _ref.width,
|
|
@@ -55,23 +53,23 @@ var useModalResize = function useModalResize(props) {
|
|
|
55
53
|
};
|
|
56
54
|
});
|
|
57
55
|
});
|
|
58
|
-
var _useDragMock =
|
|
56
|
+
var _useDragMock = useDragMock({
|
|
59
57
|
onDragStart: handleDragStart,
|
|
60
58
|
onDragMove: handleDragMove
|
|
61
59
|
}),
|
|
62
60
|
handleMouseDown = _useDragMock.handleMouseDown,
|
|
63
61
|
isDragging = _useDragMock.isDragging;
|
|
64
|
-
var handleXMouseDown =
|
|
62
|
+
var handleXMouseDown = usePersistFn(function (e) {
|
|
65
63
|
var position = e.currentTarget.getAttribute('data-position');
|
|
66
64
|
context.direction = position === 'right' ? 'x-r' : 'x';
|
|
67
65
|
handleMouseDown(e);
|
|
68
66
|
});
|
|
69
|
-
var handleYMouseDown =
|
|
67
|
+
var handleYMouseDown = usePersistFn(function (e) {
|
|
70
68
|
var position = e.currentTarget.getAttribute('data-position');
|
|
71
69
|
context.direction = position === 'bottom' ? 'y-r' : 'y';
|
|
72
70
|
handleMouseDown(e);
|
|
73
71
|
});
|
|
74
|
-
var handleXYMouseDown =
|
|
72
|
+
var handleXYMouseDown = usePersistFn(function (e) {
|
|
75
73
|
context.direction = 'xy';
|
|
76
74
|
handleMouseDown(e);
|
|
77
75
|
});
|
|
@@ -83,5 +81,4 @@ var useModalResize = function useModalResize(props) {
|
|
|
83
81
|
width: pos.width,
|
|
84
82
|
height: pos.height
|
|
85
83
|
};
|
|
86
|
-
};
|
|
87
|
-
exports.useModalResize = useModalResize;
|
|
84
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/esm/pagination/index.js
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
"use
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "Pagination", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _pagination.default;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "default", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _pagination.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
var _pagination = _interopRequireDefault(require("./pagination"));
|
|
1
|
+
"use client";
|
|
2
|
+
export { default, default as Pagination } from "./pagination";
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
-
var _react = require("react");
|
|
13
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
-
var _button = _interopRequireDefault(require("../button"));
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
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); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
import { useEffect } from 'react';
|
|
8
|
+
import classNames from 'classnames';
|
|
9
|
+
import Button from "../button";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
11
|
var PaginationButton = function PaginationButton(props) {
|
|
19
12
|
var _jssStyle$pagination;
|
|
20
13
|
var jssStyle = props.jssStyle,
|
|
@@ -31,21 +24,21 @@ var PaginationButton = function PaginationButton(props) {
|
|
|
31
24
|
onClick = props.onClick,
|
|
32
25
|
onMouseEnter = props.onMouseEnter,
|
|
33
26
|
onMouseLeave = props.onMouseLeave;
|
|
34
|
-
var paginationStyle = jssStyle === null || jssStyle === void 0
|
|
27
|
+
var paginationStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$pagination = jssStyle.pagination) === null || _jssStyle$pagination === void 0 ? void 0 : _jssStyle$pagination.call(jssStyle);
|
|
35
28
|
var handleClick = function handleClick() {
|
|
36
29
|
onClick(page);
|
|
37
30
|
};
|
|
38
31
|
var handleMouseEnter = function handleMouseEnter() {
|
|
39
|
-
onMouseEnter === null || onMouseEnter === void 0
|
|
32
|
+
onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(moreType, true);
|
|
40
33
|
};
|
|
41
34
|
var handleMouseLeave = function handleMouseLeave() {
|
|
42
|
-
onMouseLeave === null || onMouseLeave === void 0
|
|
35
|
+
onMouseLeave === null || onMouseLeave === void 0 || onMouseLeave(moreType, false);
|
|
43
36
|
};
|
|
44
37
|
var getButtonProps = function getButtonProps() {
|
|
45
38
|
var baseProps = {
|
|
46
39
|
jssStyle: jssStyle,
|
|
47
40
|
disabled: disabled,
|
|
48
|
-
className: (
|
|
41
|
+
className: classNames(className, paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.buttonItem),
|
|
49
42
|
shape: shape,
|
|
50
43
|
type: type,
|
|
51
44
|
size: size,
|
|
@@ -58,16 +51,15 @@ var PaginationButton = function PaginationButton(props) {
|
|
|
58
51
|
}
|
|
59
52
|
return baseProps;
|
|
60
53
|
};
|
|
61
|
-
|
|
54
|
+
useEffect(function () {
|
|
62
55
|
return function () {
|
|
63
56
|
if (moreType) {
|
|
64
57
|
handleMouseLeave();
|
|
65
58
|
}
|
|
66
59
|
};
|
|
67
60
|
}, []);
|
|
68
|
-
return /*#__PURE__*/(
|
|
61
|
+
return /*#__PURE__*/_jsx(Button, _objectSpread(_objectSpread({}, getButtonProps()), {}, {
|
|
69
62
|
children: children
|
|
70
63
|
}));
|
|
71
64
|
};
|
|
72
|
-
|
|
73
|
-
exports.default = _default;
|
|
65
|
+
export default PaginationButton;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
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); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
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; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import { useState } from 'react';
|
|
15
|
+
import Icons from "../icons";
|
|
16
|
+
import Button from "./pagination-button";
|
|
17
|
+
import Next from "./pagination-next";
|
|
18
|
+
import Prev from "./pagination-prev";
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
import { createElement as _createElement } from "react";
|
|
21
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
22
|
var PaginationButtons = function PaginationButtons(props) {
|
|
24
23
|
var _jssStyle$pagination;
|
|
25
24
|
var jssStyle = props.jssStyle,
|
|
@@ -34,16 +33,16 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
34
33
|
text = props.text,
|
|
35
34
|
mode = props.mode,
|
|
36
35
|
onChange = props.onChange;
|
|
37
|
-
var _useState =
|
|
38
|
-
_useState2 = (
|
|
36
|
+
var _useState = useState(false),
|
|
37
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
39
38
|
showPrevMore = _useState2[0],
|
|
40
39
|
setShowPrevMore = _useState2[1];
|
|
41
|
-
var _useState3 =
|
|
42
|
-
_useState4 = (
|
|
40
|
+
var _useState3 = useState(false),
|
|
41
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
42
|
showNextMore = _useState4[0],
|
|
44
43
|
setShowNextMore = _useState4[1];
|
|
45
|
-
var paginationStyle = jssStyle === null || jssStyle === void 0
|
|
46
|
-
var rootClasses = (
|
|
44
|
+
var paginationStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$pagination = jssStyle.pagination) === null || _jssStyle$pagination === void 0 ? void 0 : _jssStyle$pagination.call(jssStyle);
|
|
45
|
+
var rootClasses = classNames(paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.section, paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.buttons);
|
|
47
46
|
var getLinks = function getLinks() {
|
|
48
47
|
if (total === 0) return {
|
|
49
48
|
buttons: [],
|
|
@@ -107,7 +106,7 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
107
106
|
}
|
|
108
107
|
};
|
|
109
108
|
var renderPrev = function renderPrev() {
|
|
110
|
-
return /*#__PURE__*/(
|
|
109
|
+
return /*#__PURE__*/_jsx(Prev, {
|
|
111
110
|
jssStyle: jssStyle,
|
|
112
111
|
pageSize: pageSize,
|
|
113
112
|
disabled: disabled,
|
|
@@ -120,7 +119,7 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
120
119
|
});
|
|
121
120
|
};
|
|
122
121
|
var renderNext = function renderNext() {
|
|
123
|
-
return /*#__PURE__*/(
|
|
122
|
+
return /*#__PURE__*/_jsx(Next, {
|
|
124
123
|
jssStyle: jssStyle,
|
|
125
124
|
pageSize: pageSize,
|
|
126
125
|
disabled: disabled,
|
|
@@ -134,12 +133,12 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
134
133
|
};
|
|
135
134
|
var renderMore = function renderMore(type) {
|
|
136
135
|
if (type === 'prev' && showPrevMore) {
|
|
137
|
-
return
|
|
136
|
+
return Icons.pagination.PrePage;
|
|
138
137
|
}
|
|
139
138
|
if (type === 'next' && showNextMore) {
|
|
140
|
-
return
|
|
139
|
+
return Icons.pagination.NetPage;
|
|
141
140
|
}
|
|
142
|
-
return
|
|
141
|
+
return Icons.pagination.More;
|
|
143
142
|
};
|
|
144
143
|
var renderButtons = function renderButtons() {
|
|
145
144
|
var _getLinks = getLinks(),
|
|
@@ -147,7 +146,7 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
147
146
|
max = _getLinks.max;
|
|
148
147
|
return buttons.map(function (pageNum) {
|
|
149
148
|
if (typeof pageNum === 'number') {
|
|
150
|
-
return /*#__PURE__*/(
|
|
149
|
+
return /*#__PURE__*/_createElement(Button, _objectSpread(_objectSpread({}, getButtonProps()), {}, {
|
|
151
150
|
mode: pageNum === current ? undefined : mode,
|
|
152
151
|
key: pageNum,
|
|
153
152
|
page: pageNum,
|
|
@@ -159,7 +158,7 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
159
158
|
var page = isPrev ? current - span : current + span;
|
|
160
159
|
if (page < 1) page = 1;
|
|
161
160
|
if (page > max) page = max;
|
|
162
|
-
return /*#__PURE__*/(
|
|
161
|
+
return /*#__PURE__*/_createElement(Button, _objectSpread(_objectSpread({}, getButtonProps()), {}, {
|
|
163
162
|
page: page,
|
|
164
163
|
key: pageNum,
|
|
165
164
|
type: "secondary",
|
|
@@ -168,16 +167,15 @@ var PaginationButtons = function PaginationButtons(props) {
|
|
|
168
167
|
onMouseEnter: handleHoverMore,
|
|
169
168
|
onMouseLeave: handleHoverMore,
|
|
170
169
|
className: paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.sectionSize
|
|
171
|
-
}), /*#__PURE__*/(
|
|
170
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
172
171
|
className: paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.icon,
|
|
173
172
|
children: renderMore(pageNum)
|
|
174
173
|
}));
|
|
175
174
|
});
|
|
176
175
|
};
|
|
177
|
-
return /*#__PURE__*/(
|
|
176
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
178
177
|
className: rootClasses,
|
|
179
178
|
children: [renderPrev(), renderButtons(), renderNext()]
|
|
180
179
|
});
|
|
181
180
|
};
|
|
182
|
-
|
|
183
|
-
exports.default = _default;
|
|
181
|
+
export default PaginationButtons;
|
|
@@ -2,7 +2,7 @@ import { CommonType } from '../common/type';
|
|
|
2
2
|
import { InputClasses } from '../input/input.type';
|
|
3
3
|
import { ButtonClasses } from '../button/button.type';
|
|
4
4
|
import { PaginationClasses, TextParams } from '../pagination/pagination.type';
|
|
5
|
-
export
|
|
5
|
+
export type PaginationMoreTypes = 'prev' | 'next';
|
|
6
6
|
export interface PaginationButtonsProps extends Pick<CommonType, 'size'> {
|
|
7
7
|
jssStyle?: {
|
|
8
8
|
input?: () => InputClasses;
|
|
@@ -18,5 +18,5 @@ export interface PaginationButtonsProps extends Pick<CommonType, 'size'> {
|
|
|
18
18
|
mode: 'outline' | 'text';
|
|
19
19
|
onChange: (current: number, pageSize?: number) => void;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type PaginationActionButtonProps = Pick<PaginationButtonsProps, 'disabled' | 'mode' | 'size' | 'jssStyle' | 'total' | 'pageSize' | 'text' | 'current' | 'onChange'>;
|
|
22
22
|
//# sourceMappingURL=pagination-buttons.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-buttons.type.d.ts","sourceRoot":"","sources":["pagination-buttons.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE9E,
|
|
1
|
+
{"version":3,"file":"pagination-buttons.type.d.ts","sourceRoot":"","sources":["pagination-buttons.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,CAAC;AAElD,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC;IACtE,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE,MAAM,YAAY,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC;QAC7B,UAAU,CAAC,EAAE,MAAM,iBAAiB,CAAC;KACtC,CAAC;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD;AAED,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC5C,sBAAsB,EACtB,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CACnG,CAAC"}
|