@sheinx/base 3.0.0-alpha.31 → 3.0.0-alpha.32
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.js +1 -2
- 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 +10 -15
- package/cjs/absolute-list/absolute-list.type.d.ts +2 -2
- package/cjs/absolute-list/absolute-list.type.d.ts.map +1 -1
- package/cjs/absolute-list/index.js +2 -2
- package/cjs/absolute-list/use-container.js +7 -14
- package/cjs/alert/alert-icon.js +11 -13
- package/cjs/alert/alert.js +24 -23
- package/cjs/alert/alert.type.d.ts +1 -1
- package/cjs/alert/alert.type.d.ts.map +1 -1
- package/cjs/alert/index.js +2 -2
- package/cjs/animation-list/animation-list.js +20 -25
- 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 +2 -2
- package/cjs/breadcrumb/breadcrumb.js +16 -15
- package/cjs/breadcrumb/breadcrumb.type.d.ts +1 -1
- package/cjs/breadcrumb/breadcrumb.type.d.ts.map +1 -1
- package/cjs/breadcrumb/index.js +2 -2
- package/cjs/breadcrumb/list.js +18 -16
- package/cjs/button/button-group.js +6 -12
- package/cjs/button/button-item.js +3 -4
- package/cjs/button/button.js +13 -13
- package/cjs/button/button.type.d.ts +1 -1
- package/cjs/button/button.type.d.ts.map +1 -1
- package/cjs/button/index.js +2 -2
- package/cjs/card/card-accordion-context.js +3 -5
- package/cjs/card/card-accordion.js +11 -7
- package/cjs/card/card-body.js +3 -4
- package/cjs/card/card-footer.js +3 -4
- package/cjs/card/card-header.js +4 -5
- package/cjs/card/card.context.js +3 -4
- package/cjs/card/card.js +17 -16
- package/cjs/card/index.js +2 -2
- package/cjs/card-group/card-group-context.js +2 -3
- package/cjs/card-group/card-group.js +9 -10
- package/cjs/card-group/index.js +2 -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.js +2 -2
- package/cjs/cascader/cascader.d.ts.map +1 -1
- package/cjs/cascader/cascader.js +44 -46
- package/cjs/cascader/cascader.type.d.ts +1 -1
- 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.js +2 -2
- package/cjs/cascader/list.js +3 -5
- package/cjs/cascader/node.d.ts.map +1 -1
- package/cjs/cascader/node.js +26 -18
- package/cjs/checkbox/checkbox-group.js +3 -5
- package/cjs/checkbox/checkbox.js +14 -14
- 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 +1 -2
- package/cjs/checkbox/index.js +2 -2
- package/cjs/checkbox/simple-checkbox.js +12 -12
- 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 +1 -2
- package/cjs/collapse/index.js +2 -2
- package/cjs/common/use-clear.js +2 -3
- package/cjs/common/use-inner-title.js +13 -12
- package/cjs/common/use-tip.js +8 -9
- package/cjs/common/use-with-form-config.js +8 -11
- package/cjs/config/index.d.ts +1 -4
- package/cjs/config/index.d.ts.map +1 -1
- package/cjs/config/index.js +18 -18
- 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 +3 -3
- package/cjs/config/locale/zh-CN.js +2 -3
- package/cjs/date-picker/date-picker.d.ts.map +1 -1
- package/cjs/date-picker/date-picker.js +26 -27
- package/cjs/date-picker/date-picker.type.d.ts +2 -2
- 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.js +2 -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.js +9 -11
- 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.js +3 -5
- package/cjs/date-picker/result.js +17 -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.js +2 -2
- package/cjs/divider/divider.js +3 -4
- package/cjs/divider/index.js +2 -2
- package/cjs/dropdown/Item.js +23 -27
- package/cjs/dropdown/dropdown.js +8 -9
- package/cjs/dropdown/dropdown.type.d.ts +5 -5
- 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 +11 -14
- package/cjs/dropdown/index.d.ts +1 -1
- package/cjs/dropdown/index.d.ts.map +1 -1
- package/cjs/dropdown/index.js +2 -2
- package/cjs/editable-area/editable-area.d.ts.map +1 -1
- package/cjs/editable-area/editable-area.js +21 -22
- package/cjs/editable-area/index.js +2 -2
- package/cjs/empty/empty-image.js +2 -3
- package/cjs/empty/empty.js +12 -13
- package/cjs/empty/index.js +2 -2
- package/cjs/form/error-trans.js +2 -6
- package/cjs/form/form-button.js +8 -9
- package/cjs/form/form-field.js +2 -4
- 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 +2 -8
- package/cjs/form/form-flow.js +1 -2
- package/cjs/form/form-footer-context.js +14 -16
- package/cjs/form/form-item.js +13 -14
- package/cjs/form/form.d.ts +1 -1
- package/cjs/form/form.d.ts.map +1 -1
- package/cjs/form/form.js +16 -20
- package/cjs/form/form.type.js +1 -2
- package/cjs/form/index.js +2 -2
- package/cjs/gap/gap.js +9 -11
- package/cjs/gap/index.js +2 -2
- 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 +2 -2
- package/cjs/grid/util.d.ts +1 -1
- package/cjs/grid/util.d.ts.map +1 -1
- package/cjs/grid/util.js +0 -3
- package/cjs/icon/icon.js +12 -14
- package/cjs/icon/icon.type.d.ts +1 -1
- package/cjs/icon/icon.type.d.ts.map +1 -1
- package/cjs/icon/index.js +2 -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 +14 -187
- package/cjs/image/image-event.js +3 -4
- package/cjs/image/image-gallery.js +14 -15
- package/cjs/image/image-group.d.ts.map +1 -1
- package/cjs/image/image-group.js +16 -22
- package/cjs/image/image-magnify.js +10 -11
- package/cjs/image/image.js +19 -23
- package/cjs/image/image.type.d.ts +4 -4
- package/cjs/image/image.type.d.ts.map +1 -1
- package/cjs/image/index.js +2 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +4 -6
- package/cjs/input/index.js +2 -2
- package/cjs/input/input-group.js +26 -27
- 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 +1 -1
- package/cjs/input/input.type.d.ts.map +1 -1
- package/cjs/input/simple-input.js +16 -16
- package/cjs/input/use-input-common.d.ts +1 -1
- package/cjs/input/use-input-common.js +22 -22
- package/cjs/list/base-item.js +14 -15
- package/cjs/list/index.js +2 -2
- package/cjs/list/list.d.ts.map +1 -1
- package/cjs/list/list.js +16 -21
- package/cjs/menu/index.js +2 -2
- package/cjs/menu/item.d.ts.map +1 -1
- package/cjs/menu/item.js +11 -13
- package/cjs/menu/menu.js +16 -13
- package/cjs/menu/menu.type.d.ts +2 -2
- package/cjs/menu/menu.type.d.ts.map +1 -1
- package/cjs/menu/scroll.js +10 -6
- 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.js +2 -2
- package/cjs/message/manager.d.ts.map +1 -1
- package/cjs/message/manager.js +6 -7
- package/cjs/message/message.js +45 -43
- package/cjs/modal/index.js +2 -2
- package/cjs/modal/modal-content.js +25 -27
- 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 +15 -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.js +2 -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 +10 -13
- package/cjs/pagination/pagination.type.d.ts +2 -2
- 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.js +2 -2
- package/cjs/popover/popover.js +14 -19
- package/cjs/progress/analyzeColor.js +2 -4
- package/cjs/progress/circle.js +5 -8
- package/cjs/progress/index.js +2 -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 +1 -2
- package/cjs/radio/index.js +2 -2
- package/cjs/radio/radio-group.js +9 -11
- package/cjs/radio/radio.js +12 -12
- package/cjs/radio/simple-radio.js +12 -12
- package/cjs/rate/index.js +2 -2
- package/cjs/rate/rate.js +16 -17
- package/cjs/select/index.js +2 -2
- package/cjs/select/list-columns-option.js +3 -4
- package/cjs/select/list-columns.js +3 -9
- package/cjs/select/list-option.js +11 -9
- package/cjs/select/list-tree.js +3 -4
- package/cjs/select/list.js +23 -20
- package/cjs/select/result-input.js +6 -13
- package/cjs/select/result-more.js +17 -19
- package/cjs/select/result.js +20 -25
- package/cjs/select/result.type.d.ts +1 -1
- package/cjs/select/result.type.d.ts.map +1 -1
- package/cjs/select/select.js +45 -43
- package/cjs/select/select.type.d.ts +6 -6
- package/cjs/select/select.type.d.ts.map +1 -1
- package/cjs/slider/index.js +2 -2
- package/cjs/slider/slider.js +9 -11
- package/cjs/spin/base.js +9 -11
- package/cjs/spin/index.js +2 -2
- package/cjs/spin/spin.js +11 -12
- package/cjs/spin/spin.type.d.ts +2 -2
- 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.js +2 -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.js +1 -2
- package/cjs/steps/steps.js +9 -8
- package/cjs/steps/steps.type.d.ts +3 -3
- package/cjs/steps/steps.type.d.ts.map +1 -1
- package/cjs/sticky/index.js +2 -2
- package/cjs/sticky/sticky.js +18 -20
- package/cjs/switch/index.js +2 -2
- package/cjs/switch/switch.js +16 -12
- package/cjs/table/colgroup.js +1 -3
- package/cjs/table/index.js +2 -2
- package/cjs/table/table.js +15 -19
- package/cjs/table/table.type.d.ts +7 -7
- package/cjs/table/table.type.d.ts.map +1 -1
- package/cjs/table/tbody.js +3 -5
- package/cjs/table/tbody.type.d.ts +2 -2
- 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.js +16 -24
- package/cjs/table/thead.type.d.ts +1 -1
- package/cjs/table/thead.type.d.ts.map +1 -1
- package/cjs/table/tr.js +16 -23
- package/cjs/table/use-table-select.js +6 -9
- package/cjs/tabs/index.js +2 -2
- package/cjs/tabs/tab.js +10 -11
- package/cjs/tabs/tabs-header.js +21 -19
- package/cjs/tabs/tabs-panel.js +8 -6
- package/cjs/tabs/tabs.js +24 -26
- package/cjs/tabs/tabs.type.d.ts +2 -2
- package/cjs/tabs/tabs.type.d.ts.map +1 -1
- package/cjs/tag/index.js +2 -2
- package/cjs/tag/tag-input.js +9 -10
- package/cjs/tag/tag.js +14 -14
- package/cjs/tag/tag.type.d.ts +7 -7
- package/cjs/tag/tag.type.d.ts.map +1 -1
- package/cjs/tag/use-tag.js +11 -8
- package/cjs/textarea/index.js +2 -2
- package/cjs/textarea/simple-textarea.js +17 -21
- package/cjs/textarea/textarea.js +22 -23
- package/cjs/textarea/textarea.type.d.ts +1 -6
- package/cjs/textarea/textarea.type.d.ts.map +1 -1
- package/cjs/textarea/use-auto-size.js +13 -12
- package/cjs/tooltip/index.js +2 -2
- package/cjs/tooltip/tooltip.js +11 -16
- package/cjs/transfer/index.js +2 -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.js +13 -14
- package/cjs/transfer/transfer-operate.js +2 -4
- package/cjs/transfer/transfer.js +11 -10
- package/cjs/transfer/transfer.type.d.ts +2 -2
- package/cjs/transfer/transfer.type.d.ts.map +1 -1
- package/cjs/tree/index.js +2 -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 +4 -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 +12 -14
- 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 +4 -3
- package/cjs/tree/tree-context.d.ts.map +1 -1
- package/cjs/tree/tree-context.js +8 -14
- package/cjs/tree/tree-context.type.d.ts +2 -2
- 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 +4 -4
- 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 +10 -11
- 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 +19 -21
- package/cjs/tree/tree.type.d.ts +4 -4
- package/cjs/tree/tree.type.d.ts.map +1 -1
- package/cjs/tree-select/index.js +2 -2
- package/cjs/tree-select/tree-select.d.ts +1 -1
- package/cjs/tree-select/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +33 -35
- package/cjs/tree-select/tree-select.type.d.ts +5 -5
- package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
- package/cjs/upload/button.js +18 -18
- 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.js +2 -2
- package/cjs/upload/result.js +24 -24
- package/cjs/upload/upload.d.ts.map +1 -1
- package/cjs/upload/upload.js +12 -22
- package/cjs/upload/useInputClick.js +2 -3
- package/cjs/virtual-scroll/index.js +2 -2
- package/cjs/virtual-scroll/scroll.js +9 -15
- 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.js +3 -9
- 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 +20 -34
- package/esm/absolute-list/absolute-list.type.d.ts +2 -2
- 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 +1 -19
- package/esm/absolute-list/use-container.js +19 -35
- package/esm/alert/alert-icon.js +15 -24
- package/esm/alert/alert.js +39 -46
- package/esm/alert/alert.type.d.ts +1 -1
- package/esm/alert/alert.type.d.ts.map +1 -1
- package/esm/alert/alert.type.js +1 -5
- package/esm/alert/index.js +1 -19
- package/esm/animation-list/animation-list.js +30 -43
- 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 +1 -19
- package/esm/breadcrumb/breadcrumb.js +35 -39
- package/esm/breadcrumb/breadcrumb.type.d.ts +1 -1
- package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb.type.js +1 -5
- package/esm/breadcrumb/index.js +1 -19
- package/esm/breadcrumb/list.js +34 -38
- package/esm/button/button-group.js +10 -26
- package/esm/button/button-item.js +4 -12
- package/esm/button/button.js +26 -32
- package/esm/button/button.type.d.ts +1 -1
- package/esm/button/button.type.d.ts.map +1 -1
- package/esm/button/button.type.js +1 -5
- package/esm/button/index.js +2 -26
- package/esm/card/card-accordion-context.js +3 -11
- package/esm/card/card-accordion.js +23 -26
- package/esm/card/card-accordion.type.js +1 -5
- package/esm/card/card-body.js +11 -19
- package/esm/card/card-body.type.js +1 -5
- package/esm/card/card-footer.js +9 -17
- package/esm/card/card-footer.type.js +1 -5
- package/esm/card/card-header.js +17 -24
- package/esm/card/card-header.type.js +1 -5
- package/esm/card/card.context.js +3 -10
- package/esm/card/card.js +43 -47
- package/esm/card/card.type.js +1 -5
- package/esm/card/index.js +6 -54
- package/esm/card-group/card-group-context.js +3 -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.js +2 -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.js +1 -19
- package/esm/cascader/cascader.d.ts.map +1 -1
- package/esm/cascader/cascader.js +118 -127
- package/esm/cascader/cascader.type.d.ts +1 -1
- 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.js +1 -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 +47 -45
- package/esm/cascader/node.type.js +1 -5
- package/esm/checkbox/checkbox-group.js +21 -29
- package/esm/checkbox/checkbox-group.type.js +1 -5
- package/esm/checkbox/checkbox.js +28 -35
- 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 +3 -9
- package/esm/checkbox/index.js +2 -26
- package/esm/checkbox/simple-checkbox.js +30 -36
- 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 +3 -9
- package/esm/collapse/index.js +2 -26
- package/esm/common/type.js +1 -5
- package/esm/common/use-clear.js +4 -11
- package/esm/common/use-inner-title.js +26 -34
- package/esm/common/use-tip.js +14 -20
- package/esm/common/use-with-form-config.js +10 -19
- package/esm/config/index.d.ts +1 -4
- package/esm/config/index.d.ts.map +1 -1
- package/esm/config/index.js +24 -45
- 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 +17 -25
- package/esm/config/locale/zh-CN.js +2 -9
- package/esm/date-picker/date-picker.d.ts.map +1 -1
- package/esm/date-picker/date-picker.js +65 -74
- package/esm/date-picker/date-picker.type.d.ts +2 -2
- 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.js +1 -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.js +30 -38
- 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.js +13 -22
- package/esm/date-picker/quick.type.js +1 -5
- package/esm/date-picker/result.js +43 -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.js +1 -19
- package/esm/divider/divider.js +7 -15
- package/esm/divider/divider.type.js +1 -5
- package/esm/divider/index.js +1 -19
- package/esm/dropdown/Item.js +30 -41
- package/esm/dropdown/dropdown.js +11 -19
- package/esm/dropdown/dropdown.type.d.ts +5 -5
- 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 +39 -48
- package/esm/dropdown/index.d.ts +1 -1
- package/esm/dropdown/index.d.ts.map +1 -1
- package/esm/dropdown/index.js +1 -19
- package/esm/editable-area/editable-area.d.ts.map +1 -1
- package/esm/editable-area/editable-area.js +44 -53
- package/esm/editable-area/editable-area.type.js +1 -5
- package/esm/editable-area/index.js +1 -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.js +1 -19
- package/esm/form/error-trans.js +11 -21
- package/esm/form/form-button.js +16 -24
- package/esm/form/form-field.js +9 -18
- 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 +17 -29
- 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.js +21 -31
- package/esm/form/form-item.js +30 -37
- 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 +29 -42
- package/esm/form/form.type.js +1 -8
- package/esm/form/index.js +6 -54
- package/esm/gap/gap.js +17 -26
- package/esm/gap/gap.type.js +1 -5
- package/esm/gap/index.js +1 -19
- package/esm/gap/support.js +1 -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 +1 -19
- package/esm/grid/util.d.ts +1 -1
- package/esm/grid/util.d.ts.map +1 -1
- package/esm/grid/util.js +7 -16
- package/esm/icon/icon.js +22 -31
- package/esm/icon/icon.type.d.ts +1 -1
- package/esm/icon/icon.type.d.ts.map +1 -1
- package/esm/icon/icon.type.js +1 -5
- package/esm/icon/index.js +1 -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 +1 -194
- package/esm/image/image-event.js +10 -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 +30 -44
- package/esm/image/image-group.type.js +1 -5
- package/esm/image/image-magnify.js +17 -23
- package/esm/image/image.js +51 -63
- package/esm/image/image.type.d.ts +4 -4
- package/esm/image/image.type.d.ts.map +1 -1
- package/esm/image/image.type.js +1 -5
- package/esm/image/index.js +2 -26
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +48 -581
- package/esm/input/index.js +4 -40
- package/esm/input/input-group.js +33 -42
- 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 +1 -1
- package/esm/input/input.type.d.ts.map +1 -1
- package/esm/input/input.type.js +1 -5
- package/esm/input/simple-input.js +31 -37
- package/esm/input/use-input-common.d.ts +1 -1
- package/esm/input/use-input-common.js +44 -52
- package/esm/list/base-item.js +47 -54
- package/esm/list/base-item.type.js +1 -5
- package/esm/list/index.js +2 -26
- package/esm/list/list.d.ts.map +1 -1
- package/esm/list/list.js +54 -65
- package/esm/list/list.type.js +1 -5
- package/esm/menu/index.js +1 -19
- package/esm/menu/item.d.ts.map +1 -1
- package/esm/menu/item.js +42 -49
- package/esm/menu/menu.js +35 -38
- package/esm/menu/menu.type.d.ts +2 -2
- package/esm/menu/menu.type.d.ts.map +1 -1
- package/esm/menu/menu.type.js +1 -5
- package/esm/menu/scroll.js +24 -27
- 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.js +1 -19
- package/esm/message/manager.d.ts.map +1 -1
- package/esm/message/manager.js +15 -25
- package/esm/message/message.js +59 -65
- package/esm/message/message.type.js +1 -5
- package/esm/modal/index.js +3 -33
- package/esm/modal/modal-content.js +63 -71
- 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 +23 -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.js +1 -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 +28 -38
- package/esm/pagination/pagination.type.d.ts +2 -2
- 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.js +2 -26
- package/esm/popover/popover.js +33 -46
- package/esm/popover/popover.type.js +1 -5
- package/esm/progress/analyzeColor.js +2 -10
- package/esm/progress/circle.js +21 -30
- package/esm/progress/index.js +1 -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 +3 -9
- package/esm/radio/index.js +2 -26
- package/esm/radio/radio-group.js +34 -41
- 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.js +1 -19
- package/esm/rate/rate.js +32 -42
- package/esm/rate/rate.type.js +1 -5
- package/esm/rule/index.js +1 -12
- package/esm/select/index.js +1 -19
- package/esm/select/list-columns-option.js +8 -16
- package/esm/select/list-columns-option.type.js +1 -5
- package/esm/select/list-columns.js +21 -33
- package/esm/select/list-option.js +17 -21
- package/esm/select/list-option.type.js +1 -5
- package/esm/select/list-tree.js +11 -19
- package/esm/select/list-tree.type.js +1 -5
- package/esm/select/list.js +41 -46
- package/esm/select/result-input.js +14 -29
- package/esm/select/result-input.type.js +1 -5
- package/esm/select/result-more.js +33 -44
- package/esm/select/result-more.type.js +1 -5
- package/esm/select/result.js +64 -77
- package/esm/select/result.type.d.ts +1 -1
- package/esm/select/result.type.d.ts.map +1 -1
- package/esm/select/result.type.js +1 -5
- package/esm/select/select.js +109 -114
- package/esm/select/select.type.d.ts +6 -6
- package/esm/select/select.type.d.ts.map +1 -1
- package/esm/select/select.type.js +1 -5
- package/esm/slider/index.js +1 -19
- package/esm/slider/slider.js +32 -39
- package/esm/slider/slider.type.js +1 -5
- package/esm/spin/base.js +16 -25
- package/esm/spin/index.js +1 -19
- package/esm/spin/spin.js +26 -33
- package/esm/spin/spin.type.d.ts +2 -2
- 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.js +2 -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.js +3 -9
- package/esm/steps/steps-context.type.js +1 -5
- package/esm/steps/steps.js +18 -24
- package/esm/steps/steps.type.d.ts +3 -3
- package/esm/steps/steps.type.d.ts.map +1 -1
- package/esm/steps/steps.type.js +1 -5
- package/esm/sticky/index.js +1 -19
- package/esm/sticky/sticky.js +40 -48
- package/esm/sticky/sticky.type.js +1 -5
- package/esm/switch/index.js +1 -19
- package/esm/switch/switch.js +31 -33
- package/esm/switch/switch.type.js +1 -5
- package/esm/table/colgroup.js +6 -14
- package/esm/table/index.js +1 -19
- package/esm/table/table.js +89 -100
- package/esm/table/table.type.d.ts +7 -7
- package/esm/table/table.type.d.ts.map +1 -1
- package/esm/table/table.type.js +1 -5
- package/esm/table/tbody.js +11 -20
- package/esm/table/tbody.type.d.ts +2 -2
- 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.js +47 -62
- package/esm/table/thead.type.d.ts +1 -1
- package/esm/table/thead.type.d.ts.map +1 -1
- package/esm/table/thead.type.js +1 -5
- package/esm/table/tr.js +45 -59
- package/esm/table/use-table-select.js +20 -29
- package/esm/tabs/index.js +2 -26
- package/esm/tabs/tab.js +23 -30
- package/esm/tabs/tab.type.js +1 -5
- package/esm/tabs/tabs-header.js +52 -56
- package/esm/tabs/tabs-header.type.js +1 -5
- package/esm/tabs/tabs-panel.js +14 -19
- package/esm/tabs/tabs-panel.type.js +1 -5
- package/esm/tabs/tabs.js +54 -63
- package/esm/tabs/tabs.type.d.ts +2 -2
- package/esm/tabs/tabs.type.d.ts.map +1 -1
- package/esm/tabs/tabs.type.js +1 -5
- package/esm/tag/index.js +2 -26
- package/esm/tag/tag-input.js +16 -24
- package/esm/tag/tag.js +33 -39
- package/esm/tag/tag.type.d.ts +7 -7
- package/esm/tag/tag.type.d.ts.map +1 -1
- package/esm/tag/tag.type.js +1 -5
- package/esm/tag/use-tag.js +21 -24
- package/esm/textarea/index.js +1 -19
- package/esm/textarea/simple-textarea.js +26 -38
- package/esm/textarea/textarea.js +51 -60
- package/esm/textarea/textarea.type.d.ts +1 -6
- 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.js +1 -19
- package/esm/tooltip/tooltip.js +28 -40
- package/esm/tooltip/tooltip.type.js +1 -5
- package/esm/transfer/index.js +1 -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.js +1 -5
- package/esm/transfer/transfer-list.js +42 -49
- 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 +2 -2
- package/esm/transfer/transfer.type.d.ts.map +1 -1
- package/esm/transfer/transfer.type.js +1 -5
- package/esm/tree/index.js +1 -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 +8 -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 +36 -44
- 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 +4 -3
- package/esm/tree/tree-context.d.ts.map +1 -1
- package/esm/tree/tree-context.js +8 -22
- package/esm/tree/tree-context.type.d.ts +2 -2
- 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 +10 -17
- 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 +25 -32
- 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 +36 -45
- package/esm/tree/tree.type.d.ts +4 -4
- package/esm/tree/tree.type.d.ts.map +1 -1
- package/esm/tree/tree.type.js +1 -5
- package/esm/tree-select/index.js +1 -19
- package/esm/tree-select/tree-select.d.ts +1 -1
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +101 -110
- package/esm/tree-select/tree-select.type.d.ts +5 -5
- 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.js +39 -47
- 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.js +3 -33
- package/esm/upload/result.js +63 -70
- package/esm/upload/upload.d.ts.map +1 -1
- package/esm/upload/upload.js +51 -67
- package/esm/upload/upload.type.js +1 -5
- package/esm/upload/useInputClick.js +5 -12
- package/esm/virtual-scroll/index.js +2 -20
- package/esm/virtual-scroll/scroll.js +19 -32
- 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 +3 -3
- 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 -32
- 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 -32
package/esm/spin/spins.js
CHANGED
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.array.concat.js");
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
-
var _base = _interopRequireDefault(require("./base"));
|
|
15
|
-
var _utils = require("./utils");
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
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; }
|
|
18
|
-
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 classNames from 'classnames';
|
|
8
|
+
import BaseSpin from "./base";
|
|
9
|
+
import { formatSize } from "./utils";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
11
|
var renderItem = function renderItem(props) {
|
|
20
12
|
var _jssStyle$spin;
|
|
21
13
|
var jssStyle = props.jssStyle,
|
|
22
14
|
index = props.index,
|
|
23
15
|
color = props.color,
|
|
24
16
|
itemStyle = props.itemStyle;
|
|
25
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
17
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin = jssStyle.spin) === null || _jssStyle$spin === void 0 ? void 0 : _jssStyle$spin.call(jssStyle)) || {};
|
|
26
18
|
var style = Object.assign({
|
|
27
19
|
backgroundColor: color
|
|
28
20
|
}, itemStyle);
|
|
29
|
-
return /*#__PURE__*/(
|
|
30
|
-
className: (
|
|
31
|
-
children: /*#__PURE__*/(
|
|
21
|
+
return /*#__PURE__*/_jsx("div", {
|
|
22
|
+
className: classNames(spinStyles === null || spinStyles === void 0 ? void 0 : spinStyles.item),
|
|
23
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
32
24
|
style: style
|
|
33
25
|
})
|
|
34
26
|
}, index);
|
|
@@ -40,14 +32,14 @@ var renderSvgItem = function renderSvgItem(props) {
|
|
|
40
32
|
color = props.color,
|
|
41
33
|
itemClass = props.itemClass,
|
|
42
34
|
itemSize = props.itemSize;
|
|
43
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
44
|
-
return /*#__PURE__*/(
|
|
45
|
-
className: (
|
|
46
|
-
children: /*#__PURE__*/(
|
|
35
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin2 = jssStyle.spin) === null || _jssStyle$spin2 === void 0 ? void 0 : _jssStyle$spin2.call(jssStyle)) || {};
|
|
36
|
+
return /*#__PURE__*/_jsx("div", {
|
|
37
|
+
className: classNames(spinStyles.item, itemClass),
|
|
38
|
+
children: /*#__PURE__*/_jsx("svg", {
|
|
47
39
|
width: itemSize,
|
|
48
40
|
height: itemSize,
|
|
49
41
|
viewBox: "0 0 100 100",
|
|
50
|
-
children: /*#__PURE__*/(
|
|
42
|
+
children: /*#__PURE__*/_jsx("circle", {
|
|
51
43
|
fill: color,
|
|
52
44
|
cx: 50,
|
|
53
45
|
cy: 50,
|
|
@@ -65,8 +57,8 @@ var renderSimpleItem = function renderSimpleItem(props) {
|
|
|
65
57
|
var style = Object.assign({
|
|
66
58
|
backgroundColor: color
|
|
67
59
|
}, itemStyle);
|
|
68
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
69
|
-
return /*#__PURE__*/(
|
|
60
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin3 = jssStyle.spin) === null || _jssStyle$spin3 === void 0 ? void 0 : _jssStyle$spin3.call(jssStyle)) || {};
|
|
61
|
+
return /*#__PURE__*/_jsx("div", {
|
|
70
62
|
style: style,
|
|
71
63
|
className: spinStyles.item
|
|
72
64
|
}, index);
|
|
@@ -77,13 +69,13 @@ var Default = function Default(props) {
|
|
|
77
69
|
_props$size = props.size,
|
|
78
70
|
size = _props$size === void 0 ? 'default' : _props$size,
|
|
79
71
|
className = props.className;
|
|
80
|
-
var _formatSize =
|
|
72
|
+
var _formatSize = formatSize(size),
|
|
81
73
|
value = _formatSize.value,
|
|
82
74
|
unit = _formatSize.unit;
|
|
83
75
|
var sizeSet = Math.ceil(value / 12.5) + unit;
|
|
84
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
85
|
-
return /*#__PURE__*/(
|
|
86
|
-
className: (
|
|
76
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin4 = jssStyle.spin) === null || _jssStyle$spin4 === void 0 ? void 0 : _jssStyle$spin4.call(jssStyle)) || {};
|
|
77
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
78
|
+
className: classNames(className, spinStyles.default),
|
|
87
79
|
count: 12,
|
|
88
80
|
itemStyle: {
|
|
89
81
|
width: sizeSet,
|
|
@@ -96,10 +88,10 @@ var ChasingDots = function ChasingDots(props) {
|
|
|
96
88
|
var _jssStyle$spin5;
|
|
97
89
|
var jssStyle = props.jssStyle,
|
|
98
90
|
className = props.className;
|
|
99
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
100
|
-
return /*#__PURE__*/(
|
|
91
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin5 = jssStyle.spin) === null || _jssStyle$spin5 === void 0 ? void 0 : _jssStyle$spin5.call(jssStyle)) || {};
|
|
92
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
101
93
|
count: 2,
|
|
102
|
-
className: (
|
|
94
|
+
className: classNames(className, spinStyles.chasingDots),
|
|
103
95
|
render: renderSvgItem
|
|
104
96
|
}));
|
|
105
97
|
};
|
|
@@ -107,10 +99,10 @@ var CubeGrid = function CubeGrid(props) {
|
|
|
107
99
|
var _jssStyle$spin6;
|
|
108
100
|
var jssStyle = props.jssStyle,
|
|
109
101
|
className = props.className;
|
|
110
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
111
|
-
return /*#__PURE__*/(
|
|
102
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin6 = jssStyle.spin) === null || _jssStyle$spin6 === void 0 ? void 0 : _jssStyle$spin6.call(jssStyle)) || {};
|
|
103
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
112
104
|
count: 9,
|
|
113
|
-
className: (
|
|
105
|
+
className: classNames(className, spinStyles.cubeGrid),
|
|
114
106
|
render: renderSimpleItem
|
|
115
107
|
}));
|
|
116
108
|
};
|
|
@@ -118,10 +110,10 @@ var DoubleBounce = function DoubleBounce(props) {
|
|
|
118
110
|
var _jssStyle$spin7;
|
|
119
111
|
var jssStyle = props.jssStyle,
|
|
120
112
|
className = props.className;
|
|
121
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
122
|
-
return /*#__PURE__*/(
|
|
113
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin7 = jssStyle.spin) === null || _jssStyle$spin7 === void 0 ? void 0 : _jssStyle$spin7.call(jssStyle)) || {};
|
|
114
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
123
115
|
count: 2,
|
|
124
|
-
className: (
|
|
116
|
+
className: classNames(className, spinStyles.doubleBounce),
|
|
125
117
|
render: renderSimpleItem
|
|
126
118
|
}));
|
|
127
119
|
};
|
|
@@ -131,16 +123,16 @@ var FadingCircle = function FadingCircle(props) {
|
|
|
131
123
|
size = _props$size2 === void 0 ? 40 : _props$size2,
|
|
132
124
|
jssStyle = props.jssStyle,
|
|
133
125
|
className = props.className;
|
|
134
|
-
var _formatSize2 =
|
|
126
|
+
var _formatSize2 = formatSize(size),
|
|
135
127
|
value = _formatSize2.value,
|
|
136
128
|
unit = _formatSize2.unit;
|
|
137
129
|
var itemSize = (value / 7).toFixed(3) + unit;
|
|
138
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
139
|
-
return /*#__PURE__*/(
|
|
130
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin8 = jssStyle.spin) === null || _jssStyle$spin8 === void 0 ? void 0 : _jssStyle$spin8.call(jssStyle)) || {};
|
|
131
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
140
132
|
count: 12,
|
|
141
|
-
className: (
|
|
133
|
+
className: classNames(className, spinStyles.fadingCircle),
|
|
142
134
|
itemSize: itemSize,
|
|
143
|
-
itemClass: (
|
|
135
|
+
itemClass: classNames(spinStyles.fade),
|
|
144
136
|
render: renderSvgItem
|
|
145
137
|
}));
|
|
146
138
|
};
|
|
@@ -150,16 +142,16 @@ var ScaleCircle = function ScaleCircle(props) {
|
|
|
150
142
|
size = _props$size3 === void 0 ? 40 : _props$size3,
|
|
151
143
|
jssStyle = props.jssStyle,
|
|
152
144
|
className = props.className;
|
|
153
|
-
var _formatSize3 =
|
|
145
|
+
var _formatSize3 = formatSize(size),
|
|
154
146
|
value = _formatSize3.value,
|
|
155
147
|
unit = _formatSize3.unit;
|
|
156
148
|
var itemSize = (value / 7).toFixed(3) + unit;
|
|
157
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
158
|
-
return /*#__PURE__*/(
|
|
149
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin9 = jssStyle.spin) === null || _jssStyle$spin9 === void 0 ? void 0 : _jssStyle$spin9.call(jssStyle)) || {};
|
|
150
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
159
151
|
count: 12,
|
|
160
|
-
className: (
|
|
152
|
+
className: classNames(className, spinStyles.fadingCircle),
|
|
161
153
|
itemSize: itemSize,
|
|
162
|
-
itemClass: (
|
|
154
|
+
itemClass: classNames(spinStyles.scaleCircle),
|
|
163
155
|
render: renderSvgItem
|
|
164
156
|
}));
|
|
165
157
|
};
|
|
@@ -167,10 +159,10 @@ var FourDots = function FourDots(props) {
|
|
|
167
159
|
var _jssStyle$spin10;
|
|
168
160
|
var jssStyle = props.jssStyle,
|
|
169
161
|
className = props.className;
|
|
170
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
171
|
-
return /*#__PURE__*/(
|
|
162
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin10 = jssStyle.spin) === null || _jssStyle$spin10 === void 0 ? void 0 : _jssStyle$spin10.call(jssStyle)) || {};
|
|
163
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
172
164
|
count: 4,
|
|
173
|
-
className: (
|
|
165
|
+
className: classNames(className, spinStyles.fourDots),
|
|
174
166
|
render: renderSvgItem
|
|
175
167
|
}));
|
|
176
168
|
};
|
|
@@ -182,11 +174,11 @@ var Plane = function Plane(props) {
|
|
|
182
174
|
var style = {
|
|
183
175
|
backgroundColor: color
|
|
184
176
|
};
|
|
185
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
186
|
-
return /*#__PURE__*/(
|
|
177
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin11 = jssStyle.spin) === null || _jssStyle$spin11 === void 0 ? void 0 : _jssStyle$spin11.call(jssStyle)) || {};
|
|
178
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
187
179
|
count: 0,
|
|
188
180
|
style: style,
|
|
189
|
-
className: (
|
|
181
|
+
className: classNames(className, spinStyles.plane)
|
|
190
182
|
}));
|
|
191
183
|
};
|
|
192
184
|
var Pulse = function Pulse(props) {
|
|
@@ -197,11 +189,11 @@ var Pulse = function Pulse(props) {
|
|
|
197
189
|
var style = {
|
|
198
190
|
backgroundColor: color
|
|
199
191
|
};
|
|
200
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
201
|
-
return /*#__PURE__*/(
|
|
192
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin12 = jssStyle.spin) === null || _jssStyle$spin12 === void 0 ? void 0 : _jssStyle$spin12.call(jssStyle)) || {};
|
|
193
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
202
194
|
count: 0,
|
|
203
195
|
style: style,
|
|
204
|
-
className: (
|
|
196
|
+
className: classNames(className, spinStyles.pulse)
|
|
205
197
|
}));
|
|
206
198
|
};
|
|
207
199
|
var Ring = function Ring(props) {
|
|
@@ -213,8 +205,8 @@ var Ring = function Ring(props) {
|
|
|
213
205
|
className = props.className,
|
|
214
206
|
_props$style = props.style,
|
|
215
207
|
styleProp = _props$style === void 0 ? {} : _props$style;
|
|
216
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
217
|
-
var _formatSize4 =
|
|
208
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin13 = jssStyle.spin) === null || _jssStyle$spin13 === void 0 ? void 0 : _jssStyle$spin13.call(jssStyle)) || {};
|
|
209
|
+
var _formatSize4 = formatSize(size),
|
|
218
210
|
value = _formatSize4.value,
|
|
219
211
|
unit = _formatSize4.unit;
|
|
220
212
|
var style = _objectSpread(_objectSpread({}, styleProp), {}, {
|
|
@@ -224,10 +216,10 @@ var Ring = function Ring(props) {
|
|
|
224
216
|
borderBottomColor: color,
|
|
225
217
|
fontSize: value / 10 + unit
|
|
226
218
|
});
|
|
227
|
-
return /*#__PURE__*/(
|
|
219
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
228
220
|
count: 0,
|
|
229
221
|
style: style,
|
|
230
|
-
className: (
|
|
222
|
+
className: classNames(className, spinStyles.ring)
|
|
231
223
|
}));
|
|
232
224
|
};
|
|
233
225
|
var ThreeBounce = function ThreeBounce(props) {
|
|
@@ -236,18 +228,18 @@ var ThreeBounce = function ThreeBounce(props) {
|
|
|
236
228
|
size = _props$size5 === void 0 ? 40 : _props$size5,
|
|
237
229
|
jssStyle = props.jssStyle,
|
|
238
230
|
className = props.className;
|
|
239
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
240
|
-
var _formatSize5 =
|
|
231
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin14 = jssStyle.spin) === null || _jssStyle$spin14 === void 0 ? void 0 : _jssStyle$spin14.call(jssStyle)) || {};
|
|
232
|
+
var _formatSize5 = formatSize(size),
|
|
241
233
|
value = _formatSize5.value,
|
|
242
234
|
unit = _formatSize5.unit;
|
|
243
|
-
return /*#__PURE__*/(
|
|
235
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
244
236
|
count: 3,
|
|
245
237
|
itemSize: value / 2 + unit,
|
|
246
238
|
style: {
|
|
247
239
|
width: value * 2 + unit,
|
|
248
240
|
height: 'auto'
|
|
249
241
|
},
|
|
250
|
-
className: (
|
|
242
|
+
className: classNames(className, spinStyles.threeBounce),
|
|
251
243
|
render: renderSvgItem
|
|
252
244
|
}));
|
|
253
245
|
};
|
|
@@ -257,8 +249,8 @@ var Wave = function Wave(props) {
|
|
|
257
249
|
size = _props$size6 === void 0 ? 40 : _props$size6,
|
|
258
250
|
jssStyle = props.jssStyle,
|
|
259
251
|
className = props.className;
|
|
260
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
261
|
-
var _formatSize6 =
|
|
252
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin15 = jssStyle.spin) === null || _jssStyle$spin15 === void 0 ? void 0 : _jssStyle$spin15.call(jssStyle)) || {};
|
|
253
|
+
var _formatSize6 = formatSize(size),
|
|
262
254
|
value = _formatSize6.value,
|
|
263
255
|
unit = _formatSize6.unit;
|
|
264
256
|
var width = value / 7;
|
|
@@ -269,13 +261,13 @@ var Wave = function Wave(props) {
|
|
|
269
261
|
} else {
|
|
270
262
|
margin = '2px';
|
|
271
263
|
}
|
|
272
|
-
return /*#__PURE__*/(
|
|
264
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
273
265
|
itemStyle: {
|
|
274
266
|
width: width + unit,
|
|
275
267
|
marginRight: margin
|
|
276
268
|
},
|
|
277
269
|
count: 5,
|
|
278
|
-
className: (
|
|
270
|
+
className: classNames(className, spinStyles.wave),
|
|
279
271
|
render: renderSimpleItem
|
|
280
272
|
}));
|
|
281
273
|
};
|
|
@@ -286,8 +278,8 @@ var ChasingRing = function ChasingRing(props) {
|
|
|
286
278
|
color = props.color,
|
|
287
279
|
className = props.className,
|
|
288
280
|
jssStyle = props.jssStyle;
|
|
289
|
-
var spinStyles = (jssStyle === null || jssStyle === void 0
|
|
290
|
-
var _formatSize7 =
|
|
281
|
+
var spinStyles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$spin16 = jssStyle.spin) === null || _jssStyle$spin16 === void 0 ? void 0 : _jssStyle$spin16.call(jssStyle)) || {};
|
|
282
|
+
var _formatSize7 = formatSize(size),
|
|
291
283
|
value = _formatSize7.value,
|
|
292
284
|
unit = _formatSize7.unit;
|
|
293
285
|
var borderWidth = "".concat(value / 10).concat(unit);
|
|
@@ -296,14 +288,14 @@ var ChasingRing = function ChasingRing(props) {
|
|
|
296
288
|
borderTopColor: color,
|
|
297
289
|
backgroundColor: 'transparent'
|
|
298
290
|
};
|
|
299
|
-
return /*#__PURE__*/(
|
|
291
|
+
return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
|
|
300
292
|
count: 4,
|
|
301
293
|
itemStyle: style,
|
|
302
|
-
className: (
|
|
294
|
+
className: classNames(className, spinStyles.chasingRing),
|
|
303
295
|
render: renderSimpleItem
|
|
304
296
|
}));
|
|
305
297
|
};
|
|
306
|
-
|
|
298
|
+
export default {
|
|
307
299
|
plane: Plane,
|
|
308
300
|
pulse: Pulse,
|
|
309
301
|
ring: Ring,
|
|
@@ -317,5 +309,4 @@ var _default = {
|
|
|
317
309
|
'four-dots': FourDots,
|
|
318
310
|
'scale-circle': ScaleCircle,
|
|
319
311
|
'three-bounce': ThreeBounce
|
|
320
|
-
};
|
|
321
|
-
exports.default = _default;
|
|
312
|
+
};
|
package/esm/spin/utils.js
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.formatSize = void 0;
|
|
7
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
8
|
-
var formatSize = function formatSize(size) {
|
|
1
|
+
export var formatSize = function formatSize(size) {
|
|
9
2
|
var ss = /^(\d+)([%|\w]*)$/.exec(String(size)) || [];
|
|
10
3
|
return {
|
|
11
4
|
value: parseFloat(ss[1]),
|
|
12
5
|
unit: ss[2] || 'px'
|
|
13
6
|
};
|
|
14
|
-
};
|
|
15
|
-
exports.formatSize = formatSize;
|
|
7
|
+
};
|
package/esm/steps/index.js
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
Object.defineProperty(exports, "Step", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _step.default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "Steps", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _steps.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "default", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function get() {
|
|
23
|
-
return _steps.default;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
var _steps = _interopRequireDefault(require("./steps"));
|
|
27
|
-
var _step = _interopRequireDefault(require("./step"));
|
|
2
|
+
export { default, default as Steps } from "./steps";
|
|
3
|
+
export { default as Step } from "./step";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.arrow.d.ts","sourceRoot":"","sources":["step.arrow.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"step.arrow.d.ts","sourceRoot":"","sources":["step.arrow.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,SAAS,UAAW,cAAc,gBA2BvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/esm/steps/step.arrow.js
CHANGED
|
@@ -1,44 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
require("core-js/modules/es.symbol.description.js");
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
1
|
+
import classNames from 'classnames';
|
|
2
|
+
import { util } from '@sheinx/hooks';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
5
|
var ArrowStep = function ArrowStep(props) {
|
|
12
6
|
var _jssStyle$steps;
|
|
13
7
|
var jssStyle = props.jssStyle,
|
|
14
8
|
title = props.title,
|
|
15
9
|
description = props.description,
|
|
16
|
-
onChange = props.onChange
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
onChange = props.onChange,
|
|
11
|
+
index = props.index,
|
|
12
|
+
status = props.status;
|
|
13
|
+
var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$steps = jssStyle.steps) === null || _jssStyle$steps === void 0 ? void 0 : _jssStyle$steps.call(jssStyle)) || {};
|
|
14
|
+
var rootClass = classNames(styles.arrow);
|
|
19
15
|
var renderTitle = function renderTitle() {
|
|
20
|
-
return /*#__PURE__*/(
|
|
16
|
+
return /*#__PURE__*/_jsx("div", {
|
|
21
17
|
className: styles.title,
|
|
22
|
-
children: title
|
|
18
|
+
children: util.isFunc(title) ? title(index, status) : title
|
|
23
19
|
});
|
|
24
20
|
};
|
|
25
21
|
var renderDescription = function renderDescription() {
|
|
26
|
-
return /*#__PURE__*/(
|
|
22
|
+
return /*#__PURE__*/_jsx("div", {
|
|
27
23
|
className: styles.description,
|
|
28
24
|
children: description
|
|
29
25
|
});
|
|
30
26
|
};
|
|
31
27
|
var renderContent = function renderContent() {
|
|
32
|
-
return /*#__PURE__*/(
|
|
28
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
33
29
|
className: styles.content,
|
|
34
30
|
children: [renderTitle(), description && renderDescription()]
|
|
35
31
|
});
|
|
36
32
|
};
|
|
37
|
-
return /*#__PURE__*/(
|
|
33
|
+
return /*#__PURE__*/_jsx("div", {
|
|
38
34
|
className: rootClass,
|
|
39
35
|
onClick: onChange,
|
|
40
36
|
children: renderContent()
|
|
41
37
|
});
|
|
42
38
|
};
|
|
43
|
-
|
|
44
|
-
exports.default = _default;
|
|
39
|
+
export default ArrowStep;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.default.d.ts","sourceRoot":"","sources":["step.default.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"step.default.d.ts","sourceRoot":"","sources":["step.default.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,QAAA,MAAM,WAAW,UAAW,cAAc,gBA0EzC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _icons = _interopRequireDefault(require("../icons"));
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
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 _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; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
|
+
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); }
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import { util } from '@sheinx/hooks';
|
|
7
|
+
import Icons from "../icons";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
10
|
var DefaultStep = function DefaultStep(props) {
|
|
14
|
-
var _jssStyle$steps
|
|
11
|
+
var _jssStyle$steps;
|
|
15
12
|
var jssStyle = props.jssStyle,
|
|
16
13
|
title = props.title,
|
|
17
14
|
description = props.description,
|
|
@@ -21,64 +18,63 @@ var DefaultStep = function DefaultStep(props) {
|
|
|
21
18
|
labelPlacement = props.labelPlacement,
|
|
22
19
|
renderIconProp = props.renderIcon,
|
|
23
20
|
onChange = props.onChange;
|
|
24
|
-
var styles = (jssStyle === null || jssStyle === void 0
|
|
21
|
+
var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$steps = jssStyle.steps) === null || _jssStyle$steps === void 0 ? void 0 : _jssStyle$steps.call(jssStyle)) || {};
|
|
25
22
|
var rootClass = styles.default;
|
|
26
|
-
var iconClass = (
|
|
23
|
+
var iconClass = classNames(styles.icon, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.finish, status === 'finish'), styles.error, status === 'error'), styles.process, status === 'process'), styles.wait, status === 'wait'));
|
|
27
24
|
var showTail = labelPlacement === 'vertical' || direction === 'vertical';
|
|
28
25
|
var renderTail = function renderTail() {
|
|
29
|
-
return /*#__PURE__*/(
|
|
26
|
+
return /*#__PURE__*/_jsx("div", {
|
|
30
27
|
className: styles.tail,
|
|
31
28
|
children: " "
|
|
32
29
|
});
|
|
33
30
|
};
|
|
34
31
|
var renderTitle = function renderTitle() {
|
|
35
|
-
return /*#__PURE__*/(
|
|
32
|
+
return /*#__PURE__*/_jsx("div", {
|
|
36
33
|
className: styles.title,
|
|
37
|
-
children: title
|
|
34
|
+
children: util.isFunc(title) ? title(index, status) : title
|
|
38
35
|
});
|
|
39
36
|
};
|
|
40
37
|
var renderDescription = function renderDescription() {
|
|
41
|
-
return /*#__PURE__*/(
|
|
38
|
+
return /*#__PURE__*/_jsx("div", {
|
|
42
39
|
className: styles.description,
|
|
43
40
|
children: description
|
|
44
41
|
});
|
|
45
42
|
};
|
|
46
43
|
var renderIcon = function renderIcon() {
|
|
47
|
-
if (renderIconProp) return /*#__PURE__*/(
|
|
44
|
+
if (renderIconProp) return /*#__PURE__*/_jsx("div", {
|
|
48
45
|
className: iconClass,
|
|
49
46
|
onClick: onChange,
|
|
50
|
-
children: /*#__PURE__*/(
|
|
47
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
51
48
|
className: styles.iconWrapper,
|
|
52
49
|
children: renderIconProp(index, status)
|
|
53
50
|
})
|
|
54
51
|
});
|
|
55
52
|
var iconComponent;
|
|
56
53
|
if (status === 'finish') {
|
|
57
|
-
iconComponent =
|
|
54
|
+
iconComponent = Icons.steps.Finish;
|
|
58
55
|
} else if (status === 'error') {
|
|
59
|
-
iconComponent =
|
|
56
|
+
iconComponent = Icons.steps.Error;
|
|
60
57
|
} else {
|
|
61
58
|
iconComponent = index + 1;
|
|
62
59
|
}
|
|
63
|
-
return /*#__PURE__*/(
|
|
60
|
+
return /*#__PURE__*/_jsx("div", {
|
|
64
61
|
className: iconClass,
|
|
65
62
|
onClick: onChange,
|
|
66
|
-
children: /*#__PURE__*/(
|
|
63
|
+
children: /*#__PURE__*/_jsx("span", {
|
|
67
64
|
className: styles.iconWrapper,
|
|
68
65
|
children: iconComponent
|
|
69
66
|
})
|
|
70
67
|
});
|
|
71
68
|
};
|
|
72
69
|
var renderContent = function renderContent() {
|
|
73
|
-
return /*#__PURE__*/(
|
|
70
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
74
71
|
className: styles.content,
|
|
75
72
|
children: [renderTitle(), description && renderDescription()]
|
|
76
73
|
});
|
|
77
74
|
};
|
|
78
|
-
return /*#__PURE__*/(
|
|
75
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
79
76
|
className: rootClass,
|
|
80
77
|
children: [showTail && renderTail(), renderIcon(), renderContent()]
|
|
81
78
|
});
|
|
82
79
|
};
|
|
83
|
-
|
|
84
|
-
exports.default = _default;
|
|
80
|
+
export default DefaultStep;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.dot.d.ts","sourceRoot":"","sources":["step.dot.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"step.dot.d.ts","sourceRoot":"","sources":["step.dot.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,QAAA,MAAM,OAAO,UAAW,cAAc,gBAiDrC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|