@sheinx/base 3.10.0-beta.2 → 3.10.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/alert/alert.d.ts.map +1 -1
- package/cjs/alert/alert.js +31 -12
- package/cjs/alert/alert.type.d.ts +38 -0
- 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/avatar/avatar.d.ts.map +1 -1
- package/cjs/avatar/avatar.js +27 -3
- package/cjs/avatar/avatar.type.d.ts +27 -0
- package/cjs/avatar/avatar.type.d.ts.map +1 -1
- package/cjs/avatar/context.d.ts +6 -1
- package/cjs/avatar/context.d.ts.map +1 -1
- package/cjs/avatar/context.js +1 -0
- package/cjs/avatar/group.d.ts.map +1 -1
- package/cjs/avatar/group.js +44 -12
- package/cjs/avatar/index.d.ts +1 -1
- package/cjs/avatar/index.d.ts.map +1 -1
- package/cjs/badge/badge.d.ts.map +1 -1
- package/cjs/badge/badge.js +28 -7
- package/cjs/badge/badge.type.d.ts +21 -0
- package/cjs/badge/badge.type.d.ts.map +1 -1
- package/cjs/badge/index.d.ts +1 -1
- package/cjs/badge/index.d.ts.map +1 -1
- package/cjs/border-beam/border-beam-effect.d.ts +11 -0
- package/cjs/border-beam/border-beam-effect.d.ts.map +1 -0
- package/cjs/border-beam/border-beam-effect.js +25 -0
- package/cjs/border-beam/border-beam.d.ts +4 -0
- package/cjs/border-beam/border-beam.d.ts.map +1 -0
- package/cjs/border-beam/border-beam.js +59 -0
- package/cjs/border-beam/border-beam.type.d.ts +56 -0
- package/cjs/border-beam/border-beam.type.d.ts.map +1 -0
- package/cjs/border-beam/border-beam.type.js +5 -0
- package/cjs/border-beam/index.d.ts +3 -0
- package/cjs/border-beam/index.d.ts.map +1 -0
- package/cjs/border-beam/index.js +20 -0
- package/cjs/border-beam/use-border-size.d.ts +8 -0
- package/cjs/border-beam/use-border-size.d.ts.map +1 -0
- package/cjs/border-beam/use-border-size.js +46 -0
- package/cjs/border-beam/use-child-dom.d.ts +9 -0
- package/cjs/border-beam/use-child-dom.d.ts.map +1 -0
- package/cjs/border-beam/use-child-dom.js +108 -0
- package/cjs/border-beam/util.d.ts +16 -0
- package/cjs/border-beam/util.d.ts.map +1 -0
- package/cjs/border-beam/util.js +57 -0
- package/cjs/breadcrumb/breadcrumb-item.d.ts +5 -2
- package/cjs/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/cjs/breadcrumb/breadcrumb-item.js +8 -2
- package/cjs/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/cjs/breadcrumb/breadcrumb.js +50 -13
- package/cjs/breadcrumb/breadcrumb.type.d.ts +25 -0
- 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/list.d.ts +4 -1
- package/cjs/breadcrumb/list.d.ts.map +1 -1
- package/cjs/breadcrumb/list.js +7 -4
- package/cjs/button/button.d.ts.map +1 -1
- package/cjs/button/button.js +27 -4
- package/cjs/button/button.type.d.ts +40 -0
- 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/card/card-body.js +11 -3
- package/cjs/card/card-footer.d.ts +2 -2
- package/cjs/card/card-footer.d.ts.map +1 -1
- package/cjs/card/card-footer.js +13 -5
- package/cjs/card/card-header.d.ts.map +1 -1
- package/cjs/card/card-header.js +10 -6
- package/cjs/card/card.context.d.ts +4 -0
- package/cjs/card/card.context.d.ts.map +1 -1
- package/cjs/card/card.d.ts.map +1 -1
- package/cjs/card/card.js +22 -11
- package/cjs/card/card.type.d.ts +25 -0
- package/cjs/card/card.type.d.ts.map +1 -1
- package/cjs/card/index.d.ts +1 -1
- package/cjs/card/index.d.ts.map +1 -1
- package/cjs/carousel/carousel.d.ts.map +1 -1
- package/cjs/carousel/carousel.js +44 -12
- package/cjs/carousel/carousel.type.d.ts +37 -0
- 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/cascader/cascader.d.ts.map +1 -1
- package/cjs/cascader/cascader.js +26 -12
- package/cjs/cascader/cascader.type.d.ts +14 -0
- package/cjs/cascader/cascader.type.d.ts.map +1 -1
- package/cjs/cascader/filter-list.d.ts.map +1 -1
- package/cjs/cascader/filter-list.js +11 -4
- package/cjs/cascader/filter-list.type.d.ts +4 -1
- package/cjs/cascader/filter-list.type.d.ts.map +1 -1
- package/cjs/cascader/filter-node.d.ts.map +1 -1
- package/cjs/cascader/filter-node.js +5 -2
- package/cjs/cascader/filter-node.type.d.ts +4 -1
- package/cjs/cascader/filter-node.type.d.ts.map +1 -1
- package/cjs/cascader/index.d.ts +1 -1
- package/cjs/cascader/index.d.ts.map +1 -1
- package/cjs/cascader/list.d.ts.map +1 -1
- package/cjs/cascader/list.js +8 -3
- package/cjs/cascader/list.type.d.ts +4 -1
- package/cjs/cascader/list.type.d.ts.map +1 -1
- package/cjs/cascader/node.d.ts.map +1 -1
- package/cjs/cascader/node.js +6 -3
- package/cjs/cascader/node.type.d.ts +4 -1
- package/cjs/cascader/node.type.d.ts.map +1 -1
- package/cjs/checkbox/checkbox-group.d.ts.map +1 -1
- package/cjs/checkbox/checkbox-group.js +24 -4
- package/cjs/checkbox/checkbox-group.type.d.ts +14 -1
- package/cjs/checkbox/checkbox-group.type.d.ts.map +1 -1
- package/cjs/checkbox/checkbox.type.d.ts +14 -0
- package/cjs/checkbox/checkbox.type.d.ts.map +1 -1
- package/cjs/checkbox/index.d.ts +1 -1
- package/cjs/checkbox/index.d.ts.map +1 -1
- package/cjs/checkbox/simple-checkbox.d.ts.map +1 -1
- package/cjs/checkbox/simple-checkbox.js +22 -5
- package/cjs/collapse/collapse-item.d.ts.map +1 -1
- package/cjs/collapse/collapse-item.js +13 -11
- package/cjs/collapse/collapse.d.ts.map +1 -1
- package/cjs/collapse/collapse.js +30 -7
- package/cjs/collapse/collapse.type.d.ts +25 -0
- package/cjs/collapse/collapse.type.d.ts.map +1 -1
- package/cjs/collapse/index.d.ts +1 -1
- package/cjs/collapse/index.d.ts.map +1 -1
- package/cjs/common/index.d.ts +2 -0
- package/cjs/common/index.d.ts.map +1 -1
- package/cjs/common/index.js +8 -1
- package/cjs/common/use-semantic.d.ts +128 -0
- package/cjs/common/use-semantic.d.ts.map +1 -0
- package/cjs/common/use-semantic.js +130 -0
- package/cjs/config/index.d.ts +955 -0
- package/cjs/config/index.d.ts.map +1 -1
- package/cjs/config/index.js +43 -1
- package/cjs/date-picker/date-picker.d.ts.map +1 -1
- package/cjs/date-picker/date-picker.js +28 -10
- package/cjs/date-picker/date-picker.type.d.ts +14 -0
- package/cjs/date-picker/date-picker.type.d.ts.map +1 -1
- package/cjs/date-picker/day.d.ts.map +1 -1
- package/cjs/date-picker/day.js +9 -6
- package/cjs/date-picker/index.d.ts +1 -1
- package/cjs/date-picker/index.d.ts.map +1 -1
- package/cjs/date-picker/month.d.ts.map +1 -1
- package/cjs/date-picker/month.js +12 -6
- package/cjs/date-picker/picker.d.ts.map +1 -1
- package/cjs/date-picker/picker.js +9 -3
- package/cjs/date-picker/picker.type.d.ts +5 -2
- package/cjs/date-picker/picker.type.d.ts.map +1 -1
- package/cjs/date-picker/quarter.d.ts.map +1 -1
- package/cjs/date-picker/quarter.js +12 -6
- package/cjs/date-picker/time.js +10 -4
- package/cjs/date-picker/year.d.ts.map +1 -1
- package/cjs/date-picker/year.js +12 -6
- package/cjs/descriptions/descriptions.d.ts.map +1 -1
- package/cjs/descriptions/descriptions.js +38 -16
- package/cjs/descriptions/descriptions.type.d.ts +26 -0
- 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/divider/divider.d.ts.map +1 -1
- package/cjs/divider/divider.js +33 -4
- package/cjs/divider/divider.type.d.ts +21 -0
- package/cjs/divider/divider.type.d.ts.map +1 -1
- package/cjs/divider/index.d.ts +1 -1
- package/cjs/divider/index.d.ts.map +1 -1
- package/cjs/dropdown/Item.d.ts.map +1 -1
- package/cjs/dropdown/Item.js +2 -0
- package/cjs/dropdown/dropdown.type.d.ts +45 -0
- package/cjs/dropdown/dropdown.type.d.ts.map +1 -1
- package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
- package/cjs/dropdown/dropdownIn.js +41 -13
- package/cjs/dropdown/index.d.ts +1 -1
- package/cjs/dropdown/index.d.ts.map +1 -1
- package/cjs/empty/empty.d.ts.map +1 -1
- package/cjs/empty/empty.js +32 -11
- package/cjs/empty/empty.type.d.ts +22 -0
- package/cjs/empty/empty.type.d.ts.map +1 -1
- package/cjs/empty/index.d.ts +1 -1
- package/cjs/empty/index.d.ts.map +1 -1
- package/cjs/form/form-item.d.ts.map +1 -1
- package/cjs/form/form-item.js +42 -9
- package/cjs/form/form-item.type.d.ts +14 -0
- package/cjs/form/form-item.type.d.ts.map +1 -1
- package/cjs/form/form-semantic-context.d.ts +9 -0
- package/cjs/form/form-semantic-context.d.ts.map +1 -0
- package/cjs/form/form-semantic-context.js +10 -0
- package/cjs/form/form.d.ts.map +1 -1
- package/cjs/form/form.js +30 -6
- package/cjs/form/form.type.d.ts +14 -0
- package/cjs/form/form.type.d.ts.map +1 -1
- package/cjs/form/index.d.ts +2 -2
- package/cjs/form/index.d.ts.map +1 -1
- package/cjs/gap/gap.d.ts.map +1 -1
- package/cjs/gap/gap.js +29 -6
- package/cjs/gap/gap.type.d.ts +21 -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/grid/grid.d.ts.map +1 -1
- package/cjs/grid/grid.js +24 -3
- package/cjs/grid/grid.type.d.ts +20 -0
- package/cjs/grid/grid.type.d.ts.map +1 -1
- package/cjs/grid/index.d.ts +1 -1
- package/cjs/grid/index.d.ts.map +1 -1
- package/cjs/icons/icons.d.ts.map +1 -1
- package/cjs/icons/icons.js +10 -4
- package/cjs/image/image.d.ts.map +1 -1
- package/cjs/image/image.js +37 -13
- package/cjs/image/image.type.d.ts +23 -0
- 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/index.d.ts +1 -0
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +12 -0
- package/cjs/input/index.d.ts +1 -1
- package/cjs/input/index.d.ts.map +1 -1
- package/cjs/input/input.type.d.ts +16 -0
- 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 +5 -2
- package/cjs/input/use-input-common.d.ts +4 -2
- package/cjs/input/use-input-common.d.ts.map +1 -1
- package/cjs/input/use-input-common.js +16 -6
- package/cjs/link/index.d.ts +1 -1
- package/cjs/link/index.d.ts.map +1 -1
- package/cjs/link/link.d.ts.map +1 -1
- package/cjs/link/link.js +33 -4
- package/cjs/link/link.type.d.ts +35 -0
- package/cjs/link/link.type.d.ts.map +1 -1
- package/cjs/list/index.d.ts +1 -1
- package/cjs/list/index.d.ts.map +1 -1
- package/cjs/list/list.d.ts.map +1 -1
- package/cjs/list/list.js +24 -6
- package/cjs/list/list.type.d.ts +22 -0
- package/cjs/list/list.type.d.ts.map +1 -1
- package/cjs/menu/index.d.ts +1 -1
- package/cjs/menu/index.d.ts.map +1 -1
- package/cjs/menu/item.d.ts.map +1 -1
- package/cjs/menu/item.js +41 -13
- package/cjs/menu/menu.d.ts.map +1 -1
- package/cjs/menu/menu.js +31 -6
- package/cjs/menu/menu.type.d.ts +93 -0
- package/cjs/menu/menu.type.d.ts.map +1 -1
- package/cjs/message/func.d.ts.map +1 -1
- package/cjs/message/func.js +6 -2
- package/cjs/message/func.type.d.ts +16 -1
- package/cjs/message/func.type.d.ts.map +1 -1
- package/cjs/message/index.d.ts +1 -1
- package/cjs/message/index.d.ts.map +1 -1
- package/cjs/message/manager.d.ts +3 -0
- package/cjs/message/manager.d.ts.map +1 -1
- package/cjs/message/manager.js +6 -4
- package/cjs/message/message.d.ts.map +1 -1
- package/cjs/message/message.js +30 -8
- package/cjs/message/message.type.d.ts +24 -0
- package/cjs/message/message.type.d.ts.map +1 -1
- package/cjs/modal/index.d.ts +1 -1
- package/cjs/modal/index.d.ts.map +1 -1
- package/cjs/modal/modal-content.d.ts.map +1 -1
- package/cjs/modal/modal-content.js +28 -15
- package/cjs/modal/modal.type.d.ts +38 -0
- package/cjs/modal/modal.type.d.ts.map +1 -1
- package/cjs/pagination/index.d.ts +1 -1
- package/cjs/pagination/index.d.ts.map +1 -1
- package/cjs/pagination/pagination-buttons.d.ts.map +1 -1
- package/cjs/pagination/pagination-buttons.js +12 -4
- package/cjs/pagination/pagination-buttons.type.d.ts +5 -2
- package/cjs/pagination/pagination-buttons.type.d.ts.map +1 -1
- package/cjs/pagination/pagination-jumper.js +6 -2
- package/cjs/pagination/pagination-jumper.type.d.ts +4 -1
- package/cjs/pagination/pagination-jumper.type.d.ts.map +1 -1
- package/cjs/pagination/pagination-next.js +11 -3
- package/cjs/pagination/pagination-prev.d.ts.map +1 -1
- package/cjs/pagination/pagination-prev.js +5 -2
- package/cjs/pagination/pagination-simple.d.ts.map +1 -1
- package/cjs/pagination/pagination-simple.js +12 -4
- package/cjs/pagination/pagination-simple.type.d.ts +4 -1
- package/cjs/pagination/pagination-simple.type.d.ts.map +1 -1
- package/cjs/pagination/pagination-size-list.d.ts.map +1 -1
- package/cjs/pagination/pagination-size-list.js +5 -2
- package/cjs/pagination/pagination-size-list.type.d.ts +4 -1
- package/cjs/pagination/pagination-size-list.type.d.ts.map +1 -1
- package/cjs/pagination/pagination.d.ts.map +1 -1
- package/cjs/pagination/pagination.js +36 -9
- package/cjs/pagination/pagination.type.d.ts +25 -0
- package/cjs/pagination/pagination.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/popover.d.ts.map +1 -1
- package/cjs/popover/popover.js +25 -6
- package/cjs/popover/popover.type.d.ts +66 -0
- package/cjs/popover/popover.type.d.ts.map +1 -1
- package/cjs/progress/circle.d.ts.map +1 -1
- package/cjs/progress/circle.js +45 -14
- package/cjs/progress/index.d.ts +1 -1
- package/cjs/progress/index.d.ts.map +1 -1
- package/cjs/progress/line.d.ts.map +1 -1
- package/cjs/progress/line.js +40 -12
- package/cjs/progress/progress.type.d.ts +48 -0
- package/cjs/progress/progress.type.d.ts.map +1 -1
- package/cjs/radio/index.d.ts +1 -1
- package/cjs/radio/index.d.ts.map +1 -1
- package/cjs/radio/radio-group.d.ts.map +1 -1
- package/cjs/radio/radio-group.js +20 -5
- package/cjs/radio/radio-group.type.d.ts +14 -1
- package/cjs/radio/radio-group.type.d.ts.map +1 -1
- package/cjs/radio/radio.type.d.ts +14 -0
- package/cjs/radio/radio.type.d.ts.map +1 -1
- package/cjs/radio/simple-radio.d.ts.map +1 -1
- package/cjs/radio/simple-radio.js +22 -5
- package/cjs/rate/index.d.ts +1 -1
- package/cjs/rate/index.d.ts.map +1 -1
- package/cjs/rate/rate.d.ts.map +1 -1
- package/cjs/rate/rate.js +15 -7
- package/cjs/rate/rate.type.d.ts +14 -0
- package/cjs/rate/rate.type.d.ts.map +1 -1
- package/cjs/select/index.d.ts +1 -1
- package/cjs/select/index.d.ts.map +1 -1
- package/cjs/select/list-columns-option.d.ts.map +1 -1
- package/cjs/select/list-columns-option.js +12 -3
- package/cjs/select/list-columns-option.type.d.ts +3 -1
- package/cjs/select/list-columns-option.type.d.ts.map +1 -1
- package/cjs/select/list-columns.d.ts.map +1 -1
- package/cjs/select/list-columns.js +9 -3
- package/cjs/select/list-option.d.ts.map +1 -1
- package/cjs/select/list-option.js +9 -4
- package/cjs/select/list-option.type.d.ts +3 -1
- package/cjs/select/list-option.type.d.ts.map +1 -1
- package/cjs/select/list-tree.d.ts.map +1 -1
- package/cjs/select/list-tree.js +12 -4
- package/cjs/select/list-tree.type.d.ts +3 -1
- package/cjs/select/list-tree.type.d.ts.map +1 -1
- package/cjs/select/list.d.ts.map +1 -1
- package/cjs/select/list.js +11 -5
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/select/select.js +24 -13
- package/cjs/select/select.type.d.ts +16 -0
- package/cjs/select/select.type.d.ts.map +1 -1
- package/cjs/skeleton/index.d.ts +1 -1
- package/cjs/skeleton/index.d.ts.map +1 -1
- package/cjs/skeleton/skeleton.d.ts.map +1 -1
- package/cjs/skeleton/skeleton.js +40 -11
- package/cjs/skeleton/skeleton.type.d.ts +23 -0
- package/cjs/skeleton/skeleton.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/slider.d.ts.map +1 -1
- package/cjs/slider/slider.js +23 -7
- package/cjs/slider/slider.type.d.ts +14 -0
- package/cjs/slider/slider.type.d.ts.map +1 -1
- package/cjs/spin/index.d.ts +1 -1
- package/cjs/spin/index.d.ts.map +1 -1
- package/cjs/spin/spin.d.ts.map +1 -1
- package/cjs/spin/spin.js +35 -8
- package/cjs/spin/spin.type.d.ts +37 -0
- package/cjs/spin/spin.type.d.ts.map +1 -1
- package/cjs/steps/index.d.ts +2 -2
- package/cjs/steps/index.d.ts.map +1 -1
- package/cjs/steps/step.arrow.d.ts.map +1 -1
- package/cjs/steps/step.arrow.js +27 -8
- package/cjs/steps/step.d.ts.map +1 -1
- package/cjs/steps/step.default.d.ts.map +1 -1
- package/cjs/steps/step.default.js +14 -6
- package/cjs/steps/step.dot.js +13 -6
- package/cjs/steps/step.js +27 -4
- package/cjs/steps/step.type.d.ts +38 -2
- package/cjs/steps/step.type.d.ts.map +1 -1
- package/cjs/steps/steps-context.type.d.ts +8 -0
- package/cjs/steps/steps-context.type.d.ts.map +1 -1
- package/cjs/steps/steps.d.ts.map +1 -1
- package/cjs/steps/steps.js +29 -5
- package/cjs/steps/steps.type.d.ts +49 -1
- package/cjs/steps/steps.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/switch.d.ts.map +1 -1
- package/cjs/switch/switch.js +14 -5
- package/cjs/switch/switch.type.d.ts +14 -0
- package/cjs/switch/switch.type.d.ts.map +1 -1
- package/cjs/table/index.d.ts +1 -1
- package/cjs/table/index.d.ts.map +1 -1
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +34 -13
- package/cjs/table/table.type.d.ts +28 -0
- package/cjs/table/table.type.d.ts.map +1 -1
- package/cjs/table/tbody.d.ts.map +1 -1
- package/cjs/table/tbody.js +5 -1
- package/cjs/table/tbody.type.d.ts +4 -0
- package/cjs/table/tbody.type.d.ts.map +1 -1
- package/cjs/table/tfoot.d.ts.map +1 -1
- package/cjs/table/tfoot.js +8 -2
- package/cjs/table/tfoot.type.d.ts +3 -0
- package/cjs/table/tfoot.type.d.ts.map +1 -1
- package/cjs/table/thead-filter.js +4 -1
- package/cjs/table/thead.d.ts.map +1 -1
- package/cjs/table/thead.js +8 -5
- package/cjs/table/thead.type.d.ts +5 -0
- package/cjs/table/thead.type.d.ts.map +1 -1
- package/cjs/table/tr.d.ts +5 -0
- package/cjs/table/tr.d.ts.map +1 -1
- package/cjs/table/tr.js +5 -5
- package/cjs/tabs/index.d.ts +1 -1
- package/cjs/tabs/index.d.ts.map +1 -1
- package/cjs/tabs/tab.d.ts.map +1 -1
- package/cjs/tabs/tab.js +20 -7
- package/cjs/tabs/tab.type.d.ts +4 -0
- package/cjs/tabs/tab.type.d.ts.map +1 -1
- package/cjs/tabs/tabs-header.d.ts.map +1 -1
- package/cjs/tabs/tabs-header.js +32 -10
- package/cjs/tabs/tabs-header.type.d.ts +4 -1
- package/cjs/tabs/tabs-header.type.d.ts.map +1 -1
- package/cjs/tabs/tabs.d.ts.map +1 -1
- package/cjs/tabs/tabs.js +21 -6
- package/cjs/tabs/tabs.type.d.ts +29 -0
- 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/tag.d.ts.map +1 -1
- package/cjs/tag/tag.js +28 -9
- package/cjs/tag/tag.type.d.ts +22 -0
- package/cjs/tag/tag.type.d.ts.map +1 -1
- package/cjs/textarea/index.d.ts +1 -1
- package/cjs/textarea/index.d.ts.map +1 -1
- package/cjs/textarea/simple-textarea.d.ts.map +1 -1
- package/cjs/textarea/simple-textarea.js +19 -5
- package/cjs/textarea/textarea.type.d.ts +19 -0
- package/cjs/textarea/textarea.type.d.ts.map +1 -1
- package/cjs/tooltip/index.d.ts +1 -1
- package/cjs/tooltip/index.d.ts.map +1 -1
- package/cjs/tooltip/tooltip.d.ts.map +1 -1
- package/cjs/tooltip/tooltip.js +37 -14
- package/cjs/tooltip/tooltip.type.d.ts +62 -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/transfer-list-header.js +5 -2
- package/cjs/transfer/transfer-list-header.type.d.ts +4 -1
- package/cjs/transfer/transfer-list-header.type.d.ts.map +1 -1
- package/cjs/transfer/transfer-list-item.d.ts.map +1 -1
- package/cjs/transfer/transfer-list-item.js +12 -4
- package/cjs/transfer/transfer-list-item.type.d.ts +4 -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 +10 -4
- package/cjs/transfer/transfer-list.type.d.ts +4 -1
- package/cjs/transfer/transfer-list.type.d.ts.map +1 -1
- package/cjs/transfer/transfer.d.ts.map +1 -1
- package/cjs/transfer/transfer.js +25 -9
- package/cjs/transfer/transfer.type.d.ts +14 -0
- 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/tree-content.d.ts.map +1 -1
- package/cjs/tree/tree-content.js +12 -6
- package/cjs/tree/tree-context.type.d.ts +6 -2
- package/cjs/tree/tree-context.type.d.ts.map +1 -1
- package/cjs/tree/tree-simple-node.d.ts.map +1 -1
- package/cjs/tree/tree-simple-node.js +5 -2
- package/cjs/tree/tree-virtual-node.d.ts.map +1 -1
- package/cjs/tree/tree-virtual-node.js +7 -3
- package/cjs/tree/tree.d.ts.map +1 -1
- package/cjs/tree/tree.js +20 -5
- package/cjs/tree/tree.type.d.ts +23 -0
- 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/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +22 -13
- package/cjs/tree-select/tree-select.type.d.ts +14 -0
- package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
- package/cjs/upload/index.d.ts +1 -1
- package/cjs/upload/index.d.ts.map +1 -1
- package/cjs/upload/result.d.ts +4 -1
- package/cjs/upload/result.d.ts.map +1 -1
- package/cjs/upload/result.js +3 -3
- package/cjs/upload/upload.d.ts.map +1 -1
- package/cjs/upload/upload.js +21 -8
- package/cjs/upload/upload.type.d.ts +14 -0
- package/cjs/upload/upload.type.d.ts.map +1 -1
- package/cjs/virtual-scroll/scroll-table.d.ts.map +1 -1
- package/cjs/virtual-scroll/scroll-table.js +23 -4
- package/esm/alert/alert.d.ts.map +1 -1
- package/esm/alert/alert.js +31 -12
- package/esm/alert/alert.type.d.ts +38 -0
- package/esm/alert/alert.type.d.ts.map +1 -1
- package/esm/alert/index.d.ts +1 -1
- package/esm/alert/index.d.ts.map +1 -1
- package/esm/avatar/avatar.d.ts.map +1 -1
- package/esm/avatar/avatar.js +27 -3
- package/esm/avatar/avatar.type.d.ts +27 -0
- package/esm/avatar/avatar.type.d.ts.map +1 -1
- package/esm/avatar/context.d.ts +6 -1
- package/esm/avatar/context.d.ts.map +1 -1
- package/esm/avatar/context.js +2 -0
- package/esm/avatar/group.d.ts.map +1 -1
- package/esm/avatar/group.js +43 -11
- package/esm/avatar/index.d.ts +1 -1
- package/esm/avatar/index.d.ts.map +1 -1
- package/esm/badge/badge.d.ts.map +1 -1
- package/esm/badge/badge.js +27 -6
- package/esm/badge/badge.type.d.ts +21 -0
- package/esm/badge/badge.type.d.ts.map +1 -1
- package/esm/badge/index.d.ts +1 -1
- package/esm/badge/index.d.ts.map +1 -1
- package/esm/border-beam/border-beam-effect.d.ts +11 -0
- package/esm/border-beam/border-beam-effect.d.ts.map +1 -0
- package/esm/border-beam/border-beam-effect.js +18 -0
- package/esm/border-beam/border-beam.d.ts +4 -0
- package/esm/border-beam/border-beam.d.ts.map +1 -0
- package/esm/border-beam/border-beam.js +54 -0
- package/esm/border-beam/border-beam.type.d.ts +56 -0
- package/esm/border-beam/border-beam.type.d.ts.map +1 -0
- package/esm/border-beam/border-beam.type.js +1 -0
- package/esm/border-beam/index.d.ts +3 -0
- package/esm/border-beam/index.d.ts.map +1 -0
- package/esm/border-beam/index.js +2 -0
- package/esm/border-beam/use-border-size.d.ts +8 -0
- package/esm/border-beam/use-border-size.d.ts.map +1 -0
- package/esm/border-beam/use-border-size.js +39 -0
- package/esm/border-beam/use-child-dom.d.ts +9 -0
- package/esm/border-beam/use-child-dom.d.ts.map +1 -0
- package/esm/border-beam/use-child-dom.js +101 -0
- package/esm/border-beam/util.d.ts +16 -0
- package/esm/border-beam/util.d.ts.map +1 -0
- package/esm/border-beam/util.js +51 -0
- package/esm/breadcrumb/breadcrumb-item.d.ts +5 -2
- package/esm/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb-item.js +8 -2
- package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb.js +49 -12
- package/esm/breadcrumb/breadcrumb.type.d.ts +25 -0
- package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
- package/esm/breadcrumb/index.d.ts +1 -1
- package/esm/breadcrumb/index.d.ts.map +1 -1
- package/esm/breadcrumb/list.d.ts +4 -1
- package/esm/breadcrumb/list.d.ts.map +1 -1
- package/esm/breadcrumb/list.js +7 -4
- package/esm/button/button.d.ts.map +1 -1
- package/esm/button/button.js +27 -4
- package/esm/button/button.type.d.ts +40 -0
- package/esm/button/button.type.d.ts.map +1 -1
- package/esm/button/index.d.ts +1 -1
- package/esm/button/index.d.ts.map +1 -1
- package/esm/card/card-body.js +11 -3
- package/esm/card/card-footer.d.ts +2 -2
- package/esm/card/card-footer.d.ts.map +1 -1
- package/esm/card/card-footer.js +13 -5
- package/esm/card/card-header.d.ts.map +1 -1
- package/esm/card/card-header.js +10 -6
- package/esm/card/card.context.d.ts +4 -0
- package/esm/card/card.context.d.ts.map +1 -1
- package/esm/card/card.d.ts.map +1 -1
- package/esm/card/card.js +23 -12
- package/esm/card/card.type.d.ts +25 -0
- package/esm/card/card.type.d.ts.map +1 -1
- package/esm/card/index.d.ts +1 -1
- package/esm/card/index.d.ts.map +1 -1
- package/esm/carousel/carousel.d.ts.map +1 -1
- package/esm/carousel/carousel.js +43 -11
- package/esm/carousel/carousel.type.d.ts +37 -0
- package/esm/carousel/carousel.type.d.ts.map +1 -1
- package/esm/carousel/index.d.ts +1 -1
- package/esm/carousel/index.d.ts.map +1 -1
- package/esm/cascader/cascader.d.ts.map +1 -1
- package/esm/cascader/cascader.js +26 -12
- package/esm/cascader/cascader.type.d.ts +14 -0
- package/esm/cascader/cascader.type.d.ts.map +1 -1
- package/esm/cascader/filter-list.d.ts.map +1 -1
- package/esm/cascader/filter-list.js +11 -4
- package/esm/cascader/filter-list.type.d.ts +4 -1
- package/esm/cascader/filter-list.type.d.ts.map +1 -1
- package/esm/cascader/filter-node.d.ts.map +1 -1
- package/esm/cascader/filter-node.js +5 -2
- package/esm/cascader/filter-node.type.d.ts +4 -1
- package/esm/cascader/filter-node.type.d.ts.map +1 -1
- package/esm/cascader/index.d.ts +1 -1
- package/esm/cascader/index.d.ts.map +1 -1
- package/esm/cascader/list.d.ts.map +1 -1
- package/esm/cascader/list.js +8 -3
- package/esm/cascader/list.type.d.ts +4 -1
- package/esm/cascader/list.type.d.ts.map +1 -1
- package/esm/cascader/node.d.ts.map +1 -1
- package/esm/cascader/node.js +6 -3
- package/esm/cascader/node.type.d.ts +4 -1
- package/esm/cascader/node.type.d.ts.map +1 -1
- package/esm/checkbox/checkbox-group.d.ts.map +1 -1
- package/esm/checkbox/checkbox-group.js +25 -4
- package/esm/checkbox/checkbox-group.type.d.ts +14 -1
- package/esm/checkbox/checkbox-group.type.d.ts.map +1 -1
- package/esm/checkbox/checkbox.type.d.ts +14 -0
- package/esm/checkbox/checkbox.type.d.ts.map +1 -1
- package/esm/checkbox/index.d.ts +1 -1
- package/esm/checkbox/index.d.ts.map +1 -1
- package/esm/checkbox/simple-checkbox.d.ts.map +1 -1
- package/esm/checkbox/simple-checkbox.js +22 -5
- package/esm/collapse/collapse-item.d.ts.map +1 -1
- package/esm/collapse/collapse-item.js +13 -11
- package/esm/collapse/collapse.d.ts.map +1 -1
- package/esm/collapse/collapse.js +30 -7
- package/esm/collapse/collapse.type.d.ts +25 -0
- package/esm/collapse/collapse.type.d.ts.map +1 -1
- package/esm/collapse/index.d.ts +1 -1
- package/esm/collapse/index.d.ts.map +1 -1
- package/esm/common/index.d.ts +2 -0
- package/esm/common/index.d.ts.map +1 -1
- package/esm/common/index.js +1 -1
- package/esm/common/use-semantic.d.ts +128 -0
- package/esm/common/use-semantic.d.ts.map +1 -0
- package/esm/common/use-semantic.js +124 -0
- package/esm/config/index.d.ts +955 -0
- package/esm/config/index.d.ts.map +1 -1
- package/esm/config/index.js +43 -1
- package/esm/date-picker/date-picker.d.ts.map +1 -1
- package/esm/date-picker/date-picker.js +28 -10
- package/esm/date-picker/date-picker.type.d.ts +14 -0
- package/esm/date-picker/date-picker.type.d.ts.map +1 -1
- package/esm/date-picker/day.d.ts.map +1 -1
- package/esm/date-picker/day.js +9 -6
- package/esm/date-picker/index.d.ts +1 -1
- package/esm/date-picker/index.d.ts.map +1 -1
- package/esm/date-picker/month.d.ts.map +1 -1
- package/esm/date-picker/month.js +12 -6
- package/esm/date-picker/picker.d.ts.map +1 -1
- package/esm/date-picker/picker.js +9 -3
- package/esm/date-picker/picker.type.d.ts +5 -2
- package/esm/date-picker/picker.type.d.ts.map +1 -1
- package/esm/date-picker/quarter.d.ts.map +1 -1
- package/esm/date-picker/quarter.js +12 -6
- package/esm/date-picker/time.js +10 -3
- package/esm/date-picker/year.d.ts.map +1 -1
- package/esm/date-picker/year.js +12 -6
- package/esm/descriptions/descriptions.d.ts.map +1 -1
- package/esm/descriptions/descriptions.js +37 -15
- package/esm/descriptions/descriptions.type.d.ts +26 -0
- package/esm/descriptions/descriptions.type.d.ts.map +1 -1
- package/esm/descriptions/index.d.ts +1 -1
- package/esm/descriptions/index.d.ts.map +1 -1
- package/esm/divider/divider.d.ts.map +1 -1
- package/esm/divider/divider.js +33 -4
- package/esm/divider/divider.type.d.ts +21 -0
- package/esm/divider/divider.type.d.ts.map +1 -1
- package/esm/divider/index.d.ts +1 -1
- package/esm/divider/index.d.ts.map +1 -1
- package/esm/dropdown/Item.d.ts.map +1 -1
- package/esm/dropdown/Item.js +2 -0
- package/esm/dropdown/dropdown.type.d.ts +45 -0
- package/esm/dropdown/dropdown.type.d.ts.map +1 -1
- package/esm/dropdown/dropdown.type.js +18 -0
- package/esm/dropdown/dropdownIn.d.ts.map +1 -1
- package/esm/dropdown/dropdownIn.js +40 -12
- package/esm/dropdown/index.d.ts +1 -1
- package/esm/dropdown/index.d.ts.map +1 -1
- package/esm/empty/empty.d.ts.map +1 -1
- package/esm/empty/empty.js +32 -11
- package/esm/empty/empty.type.d.ts +22 -0
- package/esm/empty/empty.type.d.ts.map +1 -1
- package/esm/empty/index.d.ts +1 -1
- package/esm/empty/index.d.ts.map +1 -1
- package/esm/form/form-item.d.ts.map +1 -1
- package/esm/form/form-item.js +43 -10
- package/esm/form/form-item.type.d.ts +14 -0
- package/esm/form/form-item.type.d.ts.map +1 -1
- package/esm/form/form-semantic-context.d.ts +9 -0
- package/esm/form/form-semantic-context.d.ts.map +1 -0
- package/esm/form/form-semantic-context.js +4 -0
- package/esm/form/form.d.ts.map +1 -1
- package/esm/form/form.js +30 -6
- package/esm/form/form.type.d.ts +14 -0
- package/esm/form/form.type.d.ts.map +1 -1
- package/esm/form/index.d.ts +2 -2
- package/esm/form/index.d.ts.map +1 -1
- package/esm/gap/gap.d.ts.map +1 -1
- package/esm/gap/gap.js +28 -5
- package/esm/gap/gap.type.d.ts +21 -0
- package/esm/gap/gap.type.d.ts.map +1 -1
- package/esm/gap/index.d.ts +1 -1
- package/esm/gap/index.d.ts.map +1 -1
- package/esm/grid/grid.d.ts.map +1 -1
- package/esm/grid/grid.js +24 -3
- package/esm/grid/grid.type.d.ts +20 -0
- package/esm/grid/grid.type.d.ts.map +1 -1
- package/esm/grid/index.d.ts +1 -1
- package/esm/grid/index.d.ts.map +1 -1
- package/esm/icons/icons.d.ts.map +1 -1
- package/esm/icons/icons.js +10 -4
- package/esm/image/image.d.ts.map +1 -1
- package/esm/image/image.js +38 -14
- package/esm/image/image.type.d.ts +23 -0
- package/esm/image/image.type.d.ts.map +1 -1
- package/esm/image/index.d.ts +1 -1
- package/esm/image/index.d.ts.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/input/index.d.ts +1 -1
- package/esm/input/index.d.ts.map +1 -1
- package/esm/input/input.type.d.ts +16 -0
- package/esm/input/input.type.d.ts.map +1 -1
- package/esm/input/simple-input.d.ts.map +1 -1
- package/esm/input/simple-input.js +5 -2
- package/esm/input/use-input-common.d.ts +4 -2
- package/esm/input/use-input-common.d.ts.map +1 -1
- package/esm/input/use-input-common.js +16 -6
- package/esm/link/index.d.ts +1 -1
- package/esm/link/index.d.ts.map +1 -1
- package/esm/link/link.d.ts.map +1 -1
- package/esm/link/link.js +33 -4
- package/esm/link/link.type.d.ts +35 -0
- package/esm/link/link.type.d.ts.map +1 -1
- package/esm/list/index.d.ts +1 -1
- package/esm/list/index.d.ts.map +1 -1
- package/esm/list/list.d.ts.map +1 -1
- package/esm/list/list.js +24 -6
- package/esm/list/list.type.d.ts +22 -0
- package/esm/list/list.type.d.ts.map +1 -1
- package/esm/menu/index.d.ts +1 -1
- package/esm/menu/index.d.ts.map +1 -1
- package/esm/menu/item.d.ts.map +1 -1
- package/esm/menu/item.js +41 -13
- package/esm/menu/menu.d.ts.map +1 -1
- package/esm/menu/menu.js +32 -6
- package/esm/menu/menu.type.d.ts +93 -0
- package/esm/menu/menu.type.d.ts.map +1 -1
- package/esm/message/func.d.ts.map +1 -1
- package/esm/message/func.js +6 -2
- package/esm/message/func.type.d.ts +16 -1
- package/esm/message/func.type.d.ts.map +1 -1
- package/esm/message/index.d.ts +1 -1
- package/esm/message/index.d.ts.map +1 -1
- package/esm/message/manager.d.ts +3 -0
- package/esm/message/manager.d.ts.map +1 -1
- package/esm/message/manager.js +6 -3
- package/esm/message/message.d.ts.map +1 -1
- package/esm/message/message.js +30 -8
- package/esm/message/message.type.d.ts +24 -0
- package/esm/message/message.type.d.ts.map +1 -1
- package/esm/modal/index.d.ts +1 -1
- package/esm/modal/index.d.ts.map +1 -1
- package/esm/modal/modal-content.d.ts.map +1 -1
- package/esm/modal/modal-content.js +28 -15
- package/esm/modal/modal.type.d.ts +38 -0
- package/esm/modal/modal.type.d.ts.map +1 -1
- package/esm/pagination/index.d.ts +1 -1
- package/esm/pagination/index.d.ts.map +1 -1
- package/esm/pagination/pagination-buttons.d.ts.map +1 -1
- package/esm/pagination/pagination-buttons.js +12 -4
- package/esm/pagination/pagination-buttons.type.d.ts +5 -2
- package/esm/pagination/pagination-buttons.type.d.ts.map +1 -1
- package/esm/pagination/pagination-jumper.js +6 -2
- package/esm/pagination/pagination-jumper.type.d.ts +4 -1
- package/esm/pagination/pagination-jumper.type.d.ts.map +1 -1
- package/esm/pagination/pagination-next.js +11 -3
- package/esm/pagination/pagination-prev.d.ts.map +1 -1
- package/esm/pagination/pagination-prev.js +5 -2
- package/esm/pagination/pagination-simple.d.ts.map +1 -1
- package/esm/pagination/pagination-simple.js +12 -4
- package/esm/pagination/pagination-simple.type.d.ts +4 -1
- package/esm/pagination/pagination-simple.type.d.ts.map +1 -1
- package/esm/pagination/pagination-size-list.d.ts.map +1 -1
- package/esm/pagination/pagination-size-list.js +5 -2
- package/esm/pagination/pagination-size-list.type.d.ts +4 -1
- package/esm/pagination/pagination-size-list.type.d.ts.map +1 -1
- package/esm/pagination/pagination.d.ts.map +1 -1
- package/esm/pagination/pagination.js +35 -8
- package/esm/pagination/pagination.type.d.ts +25 -0
- package/esm/pagination/pagination.type.d.ts.map +1 -1
- package/esm/popover/index.d.ts +1 -1
- package/esm/popover/index.d.ts.map +1 -1
- package/esm/popover/popover.d.ts.map +1 -1
- package/esm/popover/popover.js +25 -6
- package/esm/popover/popover.type.d.ts +66 -0
- package/esm/popover/popover.type.d.ts.map +1 -1
- package/esm/progress/circle.d.ts.map +1 -1
- package/esm/progress/circle.js +45 -14
- package/esm/progress/index.d.ts +1 -1
- package/esm/progress/index.d.ts.map +1 -1
- package/esm/progress/line.d.ts.map +1 -1
- package/esm/progress/line.js +40 -12
- package/esm/progress/progress.type.d.ts +48 -0
- package/esm/progress/progress.type.d.ts.map +1 -1
- package/esm/radio/index.d.ts +1 -1
- package/esm/radio/index.d.ts.map +1 -1
- package/esm/radio/radio-group.d.ts.map +1 -1
- package/esm/radio/radio-group.js +19 -4
- package/esm/radio/radio-group.type.d.ts +14 -1
- package/esm/radio/radio-group.type.d.ts.map +1 -1
- package/esm/radio/radio.type.d.ts +14 -0
- package/esm/radio/radio.type.d.ts.map +1 -1
- package/esm/radio/simple-radio.d.ts.map +1 -1
- package/esm/radio/simple-radio.js +22 -5
- package/esm/rate/index.d.ts +1 -1
- package/esm/rate/index.d.ts.map +1 -1
- package/esm/rate/rate.d.ts.map +1 -1
- package/esm/rate/rate.js +15 -7
- package/esm/rate/rate.type.d.ts +14 -0
- package/esm/rate/rate.type.d.ts.map +1 -1
- package/esm/select/index.d.ts +1 -1
- package/esm/select/index.d.ts.map +1 -1
- package/esm/select/list-columns-option.d.ts.map +1 -1
- package/esm/select/list-columns-option.js +12 -3
- package/esm/select/list-columns-option.type.d.ts +3 -1
- package/esm/select/list-columns-option.type.d.ts.map +1 -1
- package/esm/select/list-columns.d.ts.map +1 -1
- package/esm/select/list-columns.js +9 -3
- package/esm/select/list-option.d.ts.map +1 -1
- package/esm/select/list-option.js +9 -4
- package/esm/select/list-option.type.d.ts +3 -1
- package/esm/select/list-option.type.d.ts.map +1 -1
- package/esm/select/list-tree.d.ts.map +1 -1
- package/esm/select/list-tree.js +12 -4
- package/esm/select/list-tree.type.d.ts +3 -1
- package/esm/select/list-tree.type.d.ts.map +1 -1
- package/esm/select/list.d.ts.map +1 -1
- package/esm/select/list.js +11 -5
- package/esm/select/select.d.ts.map +1 -1
- package/esm/select/select.js +24 -13
- package/esm/select/select.type.d.ts +16 -0
- package/esm/select/select.type.d.ts.map +1 -1
- package/esm/skeleton/index.d.ts +1 -1
- package/esm/skeleton/index.d.ts.map +1 -1
- package/esm/skeleton/skeleton.d.ts.map +1 -1
- package/esm/skeleton/skeleton.js +39 -10
- package/esm/skeleton/skeleton.type.d.ts +23 -0
- package/esm/skeleton/skeleton.type.d.ts.map +1 -1
- package/esm/slider/index.d.ts +1 -1
- package/esm/slider/index.d.ts.map +1 -1
- package/esm/slider/slider.d.ts.map +1 -1
- package/esm/slider/slider.js +22 -6
- package/esm/slider/slider.type.d.ts +14 -0
- package/esm/slider/slider.type.d.ts.map +1 -1
- package/esm/spin/index.d.ts +1 -1
- package/esm/spin/index.d.ts.map +1 -1
- package/esm/spin/spin.d.ts.map +1 -1
- package/esm/spin/spin.js +35 -8
- package/esm/spin/spin.type.d.ts +37 -0
- package/esm/spin/spin.type.d.ts.map +1 -1
- package/esm/steps/index.d.ts +2 -2
- package/esm/steps/index.d.ts.map +1 -1
- package/esm/steps/step.arrow.d.ts.map +1 -1
- package/esm/steps/step.arrow.js +27 -8
- package/esm/steps/step.d.ts.map +1 -1
- package/esm/steps/step.default.d.ts.map +1 -1
- package/esm/steps/step.default.js +14 -6
- package/esm/steps/step.dot.js +13 -6
- package/esm/steps/step.js +26 -3
- package/esm/steps/step.type.d.ts +38 -2
- package/esm/steps/step.type.d.ts.map +1 -1
- package/esm/steps/steps-context.type.d.ts +8 -0
- package/esm/steps/steps-context.type.d.ts.map +1 -1
- package/esm/steps/steps.d.ts.map +1 -1
- package/esm/steps/steps.js +28 -4
- package/esm/steps/steps.type.d.ts +49 -1
- package/esm/steps/steps.type.d.ts.map +1 -1
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/index.d.ts.map +1 -1
- package/esm/switch/switch.d.ts.map +1 -1
- package/esm/switch/switch.js +14 -5
- package/esm/switch/switch.type.d.ts +14 -0
- package/esm/switch/switch.type.d.ts.map +1 -1
- package/esm/table/index.d.ts +1 -1
- package/esm/table/index.d.ts.map +1 -1
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +34 -13
- package/esm/table/table.type.d.ts +28 -0
- package/esm/table/table.type.d.ts.map +1 -1
- package/esm/table/tbody.d.ts.map +1 -1
- package/esm/table/tbody.js +5 -1
- package/esm/table/tbody.type.d.ts +4 -0
- package/esm/table/tbody.type.d.ts.map +1 -1
- package/esm/table/tfoot.d.ts.map +1 -1
- package/esm/table/tfoot.js +8 -2
- package/esm/table/tfoot.type.d.ts +3 -0
- package/esm/table/tfoot.type.d.ts.map +1 -1
- package/esm/table/thead-filter.js +4 -1
- package/esm/table/thead.d.ts.map +1 -1
- package/esm/table/thead.js +8 -5
- package/esm/table/thead.type.d.ts +5 -0
- package/esm/table/thead.type.d.ts.map +1 -1
- package/esm/table/tr.d.ts +5 -0
- package/esm/table/tr.d.ts.map +1 -1
- package/esm/table/tr.js +5 -5
- package/esm/tabs/index.d.ts +1 -1
- package/esm/tabs/index.d.ts.map +1 -1
- package/esm/tabs/tab.d.ts.map +1 -1
- package/esm/tabs/tab.js +20 -7
- package/esm/tabs/tab.type.d.ts +4 -0
- package/esm/tabs/tab.type.d.ts.map +1 -1
- package/esm/tabs/tabs-header.d.ts.map +1 -1
- package/esm/tabs/tabs-header.js +32 -10
- package/esm/tabs/tabs-header.type.d.ts +4 -1
- package/esm/tabs/tabs-header.type.d.ts.map +1 -1
- package/esm/tabs/tabs.d.ts.map +1 -1
- package/esm/tabs/tabs.js +21 -6
- package/esm/tabs/tabs.type.d.ts +29 -0
- package/esm/tabs/tabs.type.d.ts.map +1 -1
- package/esm/tag/index.d.ts +1 -1
- package/esm/tag/index.d.ts.map +1 -1
- package/esm/tag/tag.d.ts.map +1 -1
- package/esm/tag/tag.js +28 -9
- package/esm/tag/tag.type.d.ts +22 -0
- package/esm/tag/tag.type.d.ts.map +1 -1
- package/esm/textarea/index.d.ts +1 -1
- package/esm/textarea/index.d.ts.map +1 -1
- package/esm/textarea/simple-textarea.d.ts.map +1 -1
- package/esm/textarea/simple-textarea.js +19 -5
- package/esm/textarea/textarea.type.d.ts +19 -0
- package/esm/textarea/textarea.type.d.ts.map +1 -1
- package/esm/tooltip/index.d.ts +1 -1
- package/esm/tooltip/index.d.ts.map +1 -1
- package/esm/tooltip/tooltip.d.ts.map +1 -1
- package/esm/tooltip/tooltip.js +37 -14
- package/esm/tooltip/tooltip.type.d.ts +62 -0
- package/esm/tooltip/tooltip.type.d.ts.map +1 -1
- package/esm/transfer/index.d.ts +1 -1
- package/esm/transfer/index.d.ts.map +1 -1
- package/esm/transfer/transfer-list-header.js +5 -2
- package/esm/transfer/transfer-list-header.type.d.ts +4 -1
- package/esm/transfer/transfer-list-header.type.d.ts.map +1 -1
- package/esm/transfer/transfer-list-item.d.ts.map +1 -1
- package/esm/transfer/transfer-list-item.js +12 -4
- package/esm/transfer/transfer-list-item.type.d.ts +4 -1
- package/esm/transfer/transfer-list-item.type.d.ts.map +1 -1
- package/esm/transfer/transfer-list.d.ts.map +1 -1
- package/esm/transfer/transfer-list.js +10 -4
- package/esm/transfer/transfer-list.type.d.ts +4 -1
- package/esm/transfer/transfer-list.type.d.ts.map +1 -1
- package/esm/transfer/transfer.d.ts.map +1 -1
- package/esm/transfer/transfer.js +24 -8
- package/esm/transfer/transfer.type.d.ts +14 -0
- package/esm/transfer/transfer.type.d.ts.map +1 -1
- package/esm/tree/index.d.ts +1 -1
- package/esm/tree/index.d.ts.map +1 -1
- package/esm/tree/tree-content.d.ts.map +1 -1
- package/esm/tree/tree-content.js +12 -6
- package/esm/tree/tree-context.type.d.ts +6 -2
- package/esm/tree/tree-context.type.d.ts.map +1 -1
- package/esm/tree/tree-simple-node.d.ts.map +1 -1
- package/esm/tree/tree-simple-node.js +5 -2
- package/esm/tree/tree-virtual-node.d.ts.map +1 -1
- package/esm/tree/tree-virtual-node.js +7 -3
- package/esm/tree/tree.d.ts.map +1 -1
- package/esm/tree/tree.js +20 -5
- package/esm/tree/tree.type.d.ts +23 -0
- package/esm/tree/tree.type.d.ts.map +1 -1
- package/esm/tree-select/index.d.ts +1 -1
- package/esm/tree-select/index.d.ts.map +1 -1
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +22 -13
- package/esm/tree-select/tree-select.type.d.ts +14 -0
- package/esm/tree-select/tree-select.type.d.ts.map +1 -1
- package/esm/upload/index.d.ts +1 -1
- package/esm/upload/index.d.ts.map +1 -1
- package/esm/upload/result.d.ts +4 -1
- package/esm/upload/result.d.ts.map +1 -1
- package/esm/upload/result.js +3 -3
- package/esm/upload/upload.d.ts.map +1 -1
- package/esm/upload/upload.js +20 -7
- package/esm/upload/upload.type.d.ts +14 -0
- package/esm/upload/upload.type.d.ts.map +1 -1
- package/esm/virtual-scroll/scroll-table.d.ts.map +1 -1
- package/esm/virtual-scroll/scroll-table.js +23 -4
- package/package.json +2 -2
package/esm/menu/menu.js
CHANGED
|
@@ -19,6 +19,9 @@ import { useMenu, util, useRender } from '@sheinx/hooks';
|
|
|
19
19
|
import Item from "./item";
|
|
20
20
|
import classNames from 'classnames';
|
|
21
21
|
// import Scroll from './scroll';
|
|
22
|
+
|
|
23
|
+
import { useSemantic } from "../common";
|
|
24
|
+
import { useConfig } from "../config";
|
|
22
25
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
26
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
27
|
var emptyArray = [];
|
|
@@ -52,6 +55,24 @@ var Menu = function Menu(props) {
|
|
|
52
55
|
hasOpen = _useState2[0],
|
|
53
56
|
setHasOpen = _useState2[1];
|
|
54
57
|
|
|
58
|
+
// Semantic DOM
|
|
59
|
+
var config = useConfig();
|
|
60
|
+
var semInfo = {
|
|
61
|
+
mode: mode,
|
|
62
|
+
theme: theme,
|
|
63
|
+
collapse: !!collapse,
|
|
64
|
+
active: false,
|
|
65
|
+
disabled: false,
|
|
66
|
+
open: false,
|
|
67
|
+
inPath: false,
|
|
68
|
+
hasChildren: false,
|
|
69
|
+
level: -1
|
|
70
|
+
};
|
|
71
|
+
var _useSemantic = useSemantic(props.classNames, props.styles, config.menu, semInfo),
|
|
72
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
73
|
+
semClass = _useSemantic2[0],
|
|
74
|
+
semStyle = _useSemantic2[1];
|
|
75
|
+
|
|
55
76
|
// 当使用 active 函数且 openKeys 非受控时,自动展开激活项的父级菜单
|
|
56
77
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
57
78
|
var mergedDefaultOpenKeys = useMemo(function () {
|
|
@@ -97,7 +118,8 @@ var Menu = function Menu(props) {
|
|
|
97
118
|
if (modeProps === 'horizontal') return;
|
|
98
119
|
if (props.header) {
|
|
99
120
|
return /*#__PURE__*/_jsx("div", {
|
|
100
|
-
className: classes === null || classes === void 0 ? void 0 : classes.header,
|
|
121
|
+
className: classNames(classes === null || classes === void 0 ? void 0 : classes.header, semClass('header')),
|
|
122
|
+
style: semStyle('header'),
|
|
101
123
|
children: props.header
|
|
102
124
|
});
|
|
103
125
|
}
|
|
@@ -114,14 +136,14 @@ var Menu = function Menu(props) {
|
|
|
114
136
|
}
|
|
115
137
|
}, [data, openKeys]);
|
|
116
138
|
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
|
|
117
|
-
className: classNames(props.className, classes === null || classes === void 0 ? void 0 : classes.rootClass, classes === null || classes === void 0 ? void 0 : classes.wrapper, mode === 'inline' && (classes === null || classes === void 0 ? void 0 : classes.wrapperInline), (mode === 'vertical' || mode === 'vertical-auto') && (classes === null || classes === void 0 ? void 0 : classes.wrapperVertical), mode === 'horizontal' && (classes === null || classes === void 0 ? void 0 : classes.wrapperHorizontal), hasOpen && (classes === null || classes === void 0 ? void 0 : classes.wrapperHasOpen), theme === 'dark' ? classes === null || classes === void 0 ? void 0 : classes.wrapperDark : classes === null || classes === void 0 ? void 0 : classes.wrapperLight, collapse && (classes === null || classes === void 0 ? void 0 : classes.wrapperCollapse), context.inTransition && (classes === null || classes === void 0 ? void 0 : classes.wrapperInTransition), props.inlineAnimate && (classes === null || classes === void 0 ? void 0 : classes.wrapperInlineAnimate))
|
|
139
|
+
className: classNames(props.className, classes === null || classes === void 0 ? void 0 : classes.rootClass, classes === null || classes === void 0 ? void 0 : classes.wrapper, mode === 'inline' && (classes === null || classes === void 0 ? void 0 : classes.wrapperInline), (mode === 'vertical' || mode === 'vertical-auto') && (classes === null || classes === void 0 ? void 0 : classes.wrapperVertical), mode === 'horizontal' && (classes === null || classes === void 0 ? void 0 : classes.wrapperHorizontal), hasOpen && (classes === null || classes === void 0 ? void 0 : classes.wrapperHasOpen), theme === 'dark' ? classes === null || classes === void 0 ? void 0 : classes.wrapperDark : classes === null || classes === void 0 ? void 0 : classes.wrapperLight, collapse && (classes === null || classes === void 0 ? void 0 : classes.wrapperCollapse), context.inTransition && (classes === null || classes === void 0 ? void 0 : classes.wrapperInTransition), props.inlineAnimate && (classes === null || classes === void 0 ? void 0 : classes.wrapperInlineAnimate), semClass('root'))
|
|
118
140
|
}, util.getDataAttribute({
|
|
119
141
|
theme: theme,
|
|
120
142
|
mode: isVertical ? 'vertical' : mode
|
|
121
143
|
})), {}, {
|
|
122
|
-
style: _objectSpread({
|
|
144
|
+
style: _objectSpread(_objectSpread({
|
|
123
145
|
height: props.height
|
|
124
|
-
}, props.style),
|
|
146
|
+
}, props.style), semStyle('root')),
|
|
125
147
|
onTransitionEnd: function onTransitionEnd(e) {
|
|
126
148
|
if (e.target === e.currentTarget) {
|
|
127
149
|
context.inTransition = false;
|
|
@@ -135,7 +157,8 @@ var Menu = function Menu(props) {
|
|
|
135
157
|
className: classes === null || classes === void 0 ? void 0 : classes.scrollbox,
|
|
136
158
|
ref: scrollRef,
|
|
137
159
|
children: /*#__PURE__*/_jsx("ul", {
|
|
138
|
-
className: classNames(classes === null || classes === void 0 ? void 0 : classes.root, hasExpand && (classes === null || classes === void 0 ? void 0 : classes.childrenHasExpand)),
|
|
160
|
+
className: classNames(classes === null || classes === void 0 ? void 0 : classes.root, hasExpand && (classes === null || classes === void 0 ? void 0 : classes.childrenHasExpand), semClass('list')),
|
|
161
|
+
style: semStyle('list'),
|
|
139
162
|
children: data.map(function (item, index) {
|
|
140
163
|
var key = util.getKey(props.keygen, item, index);
|
|
141
164
|
return /*#__PURE__*/_jsx(Item, {
|
|
@@ -169,7 +192,10 @@ var Menu = function Menu(props) {
|
|
|
169
192
|
renderIcon: props.renderIcon,
|
|
170
193
|
collapse: collapse,
|
|
171
194
|
isEdgeItem: false,
|
|
172
|
-
getItemProps: props.getItemProps
|
|
195
|
+
getItemProps: props.getItemProps,
|
|
196
|
+
globalSemanticConfig: config.menu,
|
|
197
|
+
userClassNames: props.classNames,
|
|
198
|
+
userStyles: props.styles
|
|
173
199
|
}, key);
|
|
174
200
|
})
|
|
175
201
|
})
|
package/esm/menu/menu.type.d.ts
CHANGED
|
@@ -3,7 +3,74 @@ import type { UseMenuItemProps } from '@sheinx/hooks';
|
|
|
3
3
|
import { KeygenResult, KeygenType, ObjectKey } from '@sheinx/hooks';
|
|
4
4
|
import { CommonType } from '../common/type';
|
|
5
5
|
import { PopoverJssStyle } from '../popover/popover.type';
|
|
6
|
+
import type { SemanticClassNames, SemanticStyles, SemanticGlobalConfig } from '../common/use-semantic';
|
|
6
7
|
export type MenuMode = 'inline' | 'vertical' | 'horizontal' | 'vertical-auto';
|
|
8
|
+
/**
|
|
9
|
+
* Menu Semantic DOM key 列表
|
|
10
|
+
* - root: 菜单最外层容器
|
|
11
|
+
* - header: 菜单头部区域(仅 inline 模式)
|
|
12
|
+
* - list: 菜单列表(ul 元素)
|
|
13
|
+
* - item: 菜单项(li 元素)
|
|
14
|
+
* - itemContent: 菜单项内容区
|
|
15
|
+
* - title: 菜单项标题/链接
|
|
16
|
+
* - icon: 菜单项图标
|
|
17
|
+
* - expand: 展开/折叠箭头
|
|
18
|
+
*
|
|
19
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
20
|
+
*/
|
|
21
|
+
export type MenuSemanticKey = 'root' | 'header' | 'list' | 'item' | 'itemContent' | 'title' | 'icon' | 'expand';
|
|
22
|
+
/**
|
|
23
|
+
* 传入函数式 `classNames` 时的状态快照。
|
|
24
|
+
*
|
|
25
|
+
* @version 3.10.0
|
|
26
|
+
*/
|
|
27
|
+
export interface MenuClassNamesInfo {
|
|
28
|
+
/**
|
|
29
|
+
* @cn 菜单展示模式
|
|
30
|
+
* @en Menu display mode
|
|
31
|
+
*/
|
|
32
|
+
mode: MenuMode;
|
|
33
|
+
/**
|
|
34
|
+
* @cn 菜单主题
|
|
35
|
+
* @en Menu theme
|
|
36
|
+
*/
|
|
37
|
+
theme: 'dark' | 'light';
|
|
38
|
+
/**
|
|
39
|
+
* @cn 是否折叠
|
|
40
|
+
* @en Whether collapsed
|
|
41
|
+
*/
|
|
42
|
+
collapse: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @cn 是否激活(仅 item 级别 key 有效)
|
|
45
|
+
* @en Whether active (only for item-level keys)
|
|
46
|
+
*/
|
|
47
|
+
active: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* @cn 是否禁用(仅 item 级别 key 有效)
|
|
50
|
+
* @en Whether disabled (only for item-level keys)
|
|
51
|
+
*/
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @cn 是否展开(仅 item 级别 key 有效)
|
|
55
|
+
* @en Whether expanded (only for item-level keys)
|
|
56
|
+
*/
|
|
57
|
+
open: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @cn 是否在激活路径上(仅 item 级别 key 有效)
|
|
60
|
+
* @en Whether in active path (only for item-level keys)
|
|
61
|
+
*/
|
|
62
|
+
inPath: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* @cn 是否有子菜单(仅 item 级别 key 有效)
|
|
65
|
+
* @en Whether has children (only for item-level keys)
|
|
66
|
+
*/
|
|
67
|
+
hasChildren: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* @cn 菜单项层级,0 为根节点(仅 item 级别 key 有效)
|
|
70
|
+
* @en Menu item level, 0 for root (only for item-level keys)
|
|
71
|
+
*/
|
|
72
|
+
level: number;
|
|
73
|
+
}
|
|
7
74
|
export interface MenuClasses {
|
|
8
75
|
rootClass: string;
|
|
9
76
|
wrapper: string;
|
|
@@ -60,6 +127,20 @@ export interface MenuJssStyle extends PopoverJssStyle {
|
|
|
60
127
|
*/
|
|
61
128
|
export interface MenuProps<DataItem, Key extends KeygenResult = KeygenResult> extends Pick<CommonType, 'className' | 'style'> {
|
|
62
129
|
jssStyle?: MenuJssStyle;
|
|
130
|
+
/**
|
|
131
|
+
* @en Semantic DOM classNames for internal nodes (root / header / list / item / itemContent / title / icon / expand).
|
|
132
|
+
* Accepts a static string or a function receiving a state snapshot.
|
|
133
|
+
* @cn 语义化 DOM 类名,可精准定制内部节点(root / header / list / item / itemContent / title / icon / expand)。
|
|
134
|
+
* 值可为静态字符串或接收状态快照的函数。
|
|
135
|
+
* @version 3.10.0
|
|
136
|
+
*/
|
|
137
|
+
classNames?: SemanticClassNames<MenuSemanticKey, MenuClassNamesInfo>;
|
|
138
|
+
/**
|
|
139
|
+
* @en Semantic DOM inline styles for internal nodes (root / header / list / item / itemContent / title / icon / expand).
|
|
140
|
+
* @cn 语义化 DOM 内联样式,可精准定制内部节点(root / header / list / item / itemContent / title / icon / expand)。
|
|
141
|
+
* @version 3.10.0
|
|
142
|
+
*/
|
|
143
|
+
styles?: SemanticStyles<MenuSemanticKey>;
|
|
63
144
|
/**
|
|
64
145
|
* @en style of menu
|
|
65
146
|
* @cn 菜单样式
|
|
@@ -215,5 +296,17 @@ export interface MenuItemProps extends UseMenuItemProps, Pick<MenuProps<any, any
|
|
|
215
296
|
scrollRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
216
297
|
collapse?: boolean;
|
|
217
298
|
isEdgeItem?: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* @internal Global semantic config from setConfig, passed down for nested items.
|
|
301
|
+
*/
|
|
302
|
+
globalSemanticConfig?: SemanticGlobalConfig<MenuSemanticKey>;
|
|
303
|
+
/**
|
|
304
|
+
* @internal User-level classNames prop, passed down for nested items.
|
|
305
|
+
*/
|
|
306
|
+
userClassNames?: SemanticClassNames<MenuSemanticKey, MenuClassNamesInfo>;
|
|
307
|
+
/**
|
|
308
|
+
* @internal User-level styles prop, passed down for nested items.
|
|
309
|
+
*/
|
|
310
|
+
userStyles?: SemanticStyles<MenuSemanticKey>;
|
|
218
311
|
}
|
|
219
312
|
//# sourceMappingURL=menu.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.type.d.ts","sourceRoot":"","sources":["menu.type.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"menu.type.d.ts","sourceRoot":"","sources":["menu.type.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["func.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,cAAc,EAAe,YAAY,EAAE,MAAM,aAAa,CAAC;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"func.d.ts","sourceRoot":"","sources":["func.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,cAAc,EAAe,YAAY,EAAE,MAAM,aAAa,CAAC;;;;;;;;;kBAoDxE,YAAY;0BAUJ,cAAc;;AAlBtC,wBAqBE"}
|
package/esm/message/func.js
CHANGED
|
@@ -16,11 +16,15 @@ var create = function create(type) {
|
|
|
16
16
|
top = _mo$top === void 0 ? 'auto' : _mo$top,
|
|
17
17
|
hideClose = mo.hideClose,
|
|
18
18
|
container = mo.container,
|
|
19
|
-
jssStyle = mo.jssStyle
|
|
19
|
+
jssStyle = mo.jssStyle,
|
|
20
|
+
classNames = mo.classNames,
|
|
21
|
+
styles = mo.styles;
|
|
20
22
|
return getComponent({
|
|
21
23
|
position: position,
|
|
22
24
|
container: container,
|
|
23
|
-
jssStyle: jssStyle
|
|
25
|
+
jssStyle: jssStyle,
|
|
26
|
+
classNames: classNames,
|
|
27
|
+
styles: styles
|
|
24
28
|
}).then(function (messager) {
|
|
25
29
|
return messager.addMessage({
|
|
26
30
|
content: content,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MessageClasses } from './message.type';
|
|
2
|
+
import { MessageClasses, MessageSemanticKey, MessageClassNamesInfo } from './message.type';
|
|
3
3
|
import { AlertClasses } from '../alert/alert.type';
|
|
4
|
+
import type { SemanticClassNames, SemanticStyles } from '../common/use-semantic';
|
|
4
5
|
export type MessageType = 'default' | 'success' | 'info' | 'warning' | 'danger';
|
|
5
6
|
export type PositionType = 'top' | 'middle' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6
7
|
export interface MessageFuncArg {
|
|
@@ -63,5 +64,19 @@ export interface MessageOptions {
|
|
|
63
64
|
message?: () => MessageClasses;
|
|
64
65
|
alert?: () => AlertClasses;
|
|
65
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* @en Semantic DOM classNames for internal nodes (root / item / message).
|
|
69
|
+
* Accepts static strings or functions that receive a state snapshot.
|
|
70
|
+
* @cn Semantic DOM 类名,可按 key 定制内部各节点(root / item / message)。
|
|
71
|
+
* 支持静态字符串或函数(接收状态快照)。
|
|
72
|
+
* @version 3.10.0
|
|
73
|
+
*/
|
|
74
|
+
classNames?: SemanticClassNames<MessageSemanticKey, MessageClassNamesInfo>;
|
|
75
|
+
/**
|
|
76
|
+
* @en Semantic DOM inline styles for internal nodes (root / item / message).
|
|
77
|
+
* @cn Semantic DOM 内联样式,按 key 定制内部各节点。
|
|
78
|
+
* @version 3.10.0
|
|
79
|
+
*/
|
|
80
|
+
styles?: SemanticStyles<MessageSemanticKey>;
|
|
66
81
|
}
|
|
67
82
|
//# sourceMappingURL=func.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"func.type.d.ts","sourceRoot":"","sources":["func.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"func.type.d.ts","sourceRoot":"","sources":["func.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEjF,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhF,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,QAAQ,GACR,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,CAAC;AAEnB,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;IACxF;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,GAAG,WAAW,CAAC;IAC9C,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,cAAc,CAAC;QAC/B,KAAK,CAAC,EAAE,MAAM,YAAY,CAAC;KAC5B,CAAC;IAEF;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAC;IAE3E;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;CAC7C"}
|
package/esm/message/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default, default as Message } from './func';
|
|
2
2
|
export type { MessageType, MessageFuncArg, MessageOptions, PositionType } from './func.type';
|
|
3
|
-
export type { MessageClasses } from './message.type';
|
|
3
|
+
export type { MessageClasses, MessageSemanticKey, MessageClassNamesInfo } from './message.type';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,QAAQ,CAAC;AAErD,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE7F,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,QAAQ,CAAC;AAErD,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE7F,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/esm/message/manager.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import Message from './message';
|
|
2
2
|
import { MessageProps } from './message.type';
|
|
3
|
+
import type { MessageOptions } from './func.type';
|
|
3
4
|
export declare const destroy: (position: string) => void;
|
|
4
5
|
interface Params {
|
|
5
6
|
position: string;
|
|
6
7
|
container?: (() => HTMLElement) | HTMLElement;
|
|
7
8
|
rootClassName?: string;
|
|
8
9
|
jssStyle: MessageProps['jssStyle'];
|
|
10
|
+
classNames?: MessageOptions['classNames'];
|
|
11
|
+
styles?: MessageOptions['styles'];
|
|
9
12
|
}
|
|
10
13
|
export declare function getComponent(params: Params): Promise<Message>;
|
|
11
14
|
export default Message;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["manager.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["manager.tsx"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAclD,eAAO,MAAM,OAAO,aAAc,MAAM,SAWvC,CAAC;AAEF,UAAU,MAAM;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,MAAM,WAAW,CAAC,GAAG,WAAW,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;CACnC;AACD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,oBAmC1C;AAED,eAAe,OAAO,CAAC"}
|
package/esm/message/manager.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// import classNames from 'classnames';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import Message from "./message";
|
|
4
3
|
import { getDefaultContainer } from "../config";
|
|
@@ -28,7 +27,9 @@ export function getComponent(params) {
|
|
|
28
27
|
var position = params.position,
|
|
29
28
|
container = params.container,
|
|
30
29
|
rootClassName = params.rootClassName,
|
|
31
|
-
jssStyle = params.jssStyle
|
|
30
|
+
jssStyle = params.jssStyle,
|
|
31
|
+
classNames = params.classNames,
|
|
32
|
+
styles = params.styles;
|
|
32
33
|
return new Promise(function (resolve) {
|
|
33
34
|
var target = getContainer(container);
|
|
34
35
|
if (lastContainer && lastContainer !== target) {
|
|
@@ -53,7 +54,9 @@ export function getComponent(params) {
|
|
|
53
54
|
},
|
|
54
55
|
position: position,
|
|
55
56
|
onDestroy: destroy.bind(null, position),
|
|
56
|
-
jssStyle: jssStyle
|
|
57
|
+
jssStyle: jssStyle,
|
|
58
|
+
classNames: classNames,
|
|
59
|
+
styles: styles
|
|
57
60
|
}), div);
|
|
58
61
|
}
|
|
59
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["message.tsx"],"names":[],"mappings":";AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["message.tsx"],"names":[],"mappings":";AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,YAAY,EAA6C,MAAM,gBAAgB,CAAC;AAU1G,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAClC;AAqID,cAAM,OAAQ,SAAQ,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC;IACnE,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;gBACrB,KAAK,EAAE,YAAY;IAa/B,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC;IAK5C,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC;IAgB3C,aAAa,CAAC,EAAE,EAAE,MAAM;IAmBxB,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAgB1E,MAAM;CAgBP;AAED,eAAe,OAAO,CAAC"}
|
package/esm/message/message.js
CHANGED
|
@@ -26,6 +26,8 @@ import React, { useEffect, useState } from 'react';
|
|
|
26
26
|
import Alert from "../alert";
|
|
27
27
|
import classNames from 'classnames';
|
|
28
28
|
import { util } from '@sheinx/hooks';
|
|
29
|
+
import { useSemantic } from "../common";
|
|
30
|
+
import { useConfig } from "../config";
|
|
29
31
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
30
32
|
var getUidStr = util.getUidStr,
|
|
31
33
|
getDataAttribute = util.getDataAttribute,
|
|
@@ -37,6 +39,7 @@ var MessagePure = function MessagePure(props) {
|
|
|
37
39
|
jssStyle = props.jssStyle,
|
|
38
40
|
position = props.position,
|
|
39
41
|
timeoutMap = props.timeoutMap;
|
|
42
|
+
var config = useConfig();
|
|
40
43
|
var _useState = useState(timeoutMap),
|
|
41
44
|
_useState2 = _slicedToArray(_useState, 2),
|
|
42
45
|
timeoutByIdMap = _useState2[0],
|
|
@@ -47,6 +50,19 @@ var MessagePure = function MessagePure(props) {
|
|
|
47
50
|
|
|
48
51
|
// hooks
|
|
49
52
|
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$message = jssStyle.message) === null || _jssStyle$message === void 0 ? void 0 : _jssStyle$message.call(jssStyle);
|
|
53
|
+
|
|
54
|
+
// Semantic DOM
|
|
55
|
+
var globalSemanticConfig = config.message ? {
|
|
56
|
+
classNames: config.message.classNames,
|
|
57
|
+
styles: config.message.styles
|
|
58
|
+
} : undefined;
|
|
59
|
+
var semInfo = {
|
|
60
|
+
position: position
|
|
61
|
+
};
|
|
62
|
+
var _useSemantic = useSemantic(props.classNames, props.styles, globalSemanticConfig, semInfo),
|
|
63
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
64
|
+
semClass = _useSemantic2[0],
|
|
65
|
+
semStyle = _useSemantic2[1];
|
|
50
66
|
var handleClassName = function handleClassName(position, closeMsg) {
|
|
51
67
|
return classNames(styles === null || styles === void 0 ? void 0 : styles.item, closeMsg ? styles === null || styles === void 0 ? void 0 : styles.itemDismissed : styles === null || styles === void 0 ? void 0 : styles.itemShow);
|
|
52
68
|
};
|
|
@@ -72,7 +88,8 @@ var MessagePure = function MessagePure(props) {
|
|
|
72
88
|
return styles;
|
|
73
89
|
};
|
|
74
90
|
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
|
75
|
-
className: classNames(styles === null || styles === void 0 ? void 0 : styles.rootClass, styles === null || styles === void 0 ? void 0 : styles.wrapper)
|
|
91
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.rootClass, styles === null || styles === void 0 ? void 0 : styles.wrapper, semClass('root')),
|
|
92
|
+
style: semStyle('root')
|
|
76
93
|
}, getDataAttribute({
|
|
77
94
|
position: position
|
|
78
95
|
})), {}, {
|
|
@@ -89,8 +106,8 @@ var MessagePure = function MessagePure(props) {
|
|
|
89
106
|
hideClose = _ref.hideClose,
|
|
90
107
|
duration = _ref.duration;
|
|
91
108
|
return /*#__PURE__*/_jsx("div", {
|
|
92
|
-
className:
|
|
93
|
-
style: handleStyle(!!dismiss, h || 0, position),
|
|
109
|
+
className: classNames(handleClassName(position, !!dismiss), className, semClass('item')),
|
|
110
|
+
style: _objectSpread(_objectSpread({}, handleStyle(!!dismiss, h || 0, position)), semStyle('item')),
|
|
94
111
|
onMouseEnter: function onMouseEnter() {
|
|
95
112
|
if (timeoutByIdMap[id]) {
|
|
96
113
|
clearTimeout(timeoutByIdMap[id]);
|
|
@@ -112,16 +129,16 @@ var MessagePure = function MessagePure(props) {
|
|
|
112
129
|
}
|
|
113
130
|
},
|
|
114
131
|
children: /*#__PURE__*/_jsx(Alert, _objectSpread(_objectSpread({
|
|
115
|
-
className: styles === null || styles === void 0 ? void 0 : styles.message,
|
|
132
|
+
className: classNames(styles === null || styles === void 0 ? void 0 : styles.message, semClass('message')),
|
|
116
133
|
jssStyle: jssStyle,
|
|
117
134
|
closable: !hideClose && 'only',
|
|
118
135
|
onClose: function onClose() {
|
|
119
136
|
props.onClose(id, dismissDuration, props.cachedHeight[id]);
|
|
120
137
|
},
|
|
121
138
|
icon: type !== 'default',
|
|
122
|
-
style: {
|
|
139
|
+
style: _objectSpread({
|
|
123
140
|
top: top
|
|
124
|
-
},
|
|
141
|
+
}, semStyle('message')),
|
|
125
142
|
title: title,
|
|
126
143
|
type: type === 'default' ? undefined : type
|
|
127
144
|
}, util.getDataAttribute({
|
|
@@ -221,14 +238,19 @@ var Message = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
221
238
|
key: "render",
|
|
222
239
|
value: function render() {
|
|
223
240
|
var messages = this.state.messages;
|
|
224
|
-
var
|
|
241
|
+
var _this$props2 = this.props,
|
|
242
|
+
jssStyle = _this$props2.jssStyle,
|
|
243
|
+
classNames = _this$props2.classNames,
|
|
244
|
+
styles = _this$props2.styles;
|
|
225
245
|
return /*#__PURE__*/_jsx(MessagePure, {
|
|
226
246
|
messages: messages,
|
|
227
247
|
jssStyle: jssStyle,
|
|
228
248
|
cachedHeight: this.cachedHeight,
|
|
229
249
|
timeoutMap: this.timeoutMap,
|
|
230
250
|
position: this.props.position || 'top',
|
|
231
|
-
onClose: this.closeMessageForAnimation
|
|
251
|
+
onClose: this.closeMessageForAnimation,
|
|
252
|
+
classNames: classNames,
|
|
253
|
+
styles: styles
|
|
232
254
|
});
|
|
233
255
|
}
|
|
234
256
|
}]);
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { SemanticClassNames, SemanticStyles } from '../common/use-semantic';
|
|
3
|
+
/**
|
|
4
|
+
* Message Semantic DOM key 列表
|
|
5
|
+
* - root: 最外层容器(位置管理器)
|
|
6
|
+
* - item: 单条消息容器(动画控制层)
|
|
7
|
+
* - message: 消息内容区(Alert 包装层)
|
|
8
|
+
*
|
|
9
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
10
|
+
*/
|
|
11
|
+
export type MessageSemanticKey = 'root' | 'item' | 'message';
|
|
12
|
+
/**
|
|
13
|
+
* 传入函数式 `classNames` 时的状态快照。
|
|
14
|
+
*
|
|
15
|
+
* @version 3.10.0
|
|
16
|
+
*/
|
|
17
|
+
export interface MessageClassNamesInfo {
|
|
18
|
+
/**
|
|
19
|
+
* @cn 消息显示位置
|
|
20
|
+
* @en Message display position
|
|
21
|
+
*/
|
|
22
|
+
position: 'top' | 'middle' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
23
|
+
}
|
|
2
24
|
export interface MessageItemType {
|
|
3
25
|
type: 'success' | 'info' | 'warning' | 'danger' | 'default';
|
|
4
26
|
content: React.ReactNode;
|
|
@@ -30,5 +52,7 @@ export interface MessageProps {
|
|
|
30
52
|
};
|
|
31
53
|
onDestroy?: () => void;
|
|
32
54
|
position?: string;
|
|
55
|
+
classNames?: SemanticClassNames<MessageSemanticKey, MessageClassNamesInfo>;
|
|
56
|
+
styles?: SemanticStyles<MessageSemanticKey>;
|
|
33
57
|
}
|
|
34
58
|
//# sourceMappingURL=message.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.type.d.ts","sourceRoot":"","sources":["message.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"message.type.d.ts","sourceRoot":"","sources":["message.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEjF;;;;;;;GAOG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAE7D;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;CACxF;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC5D,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IAEjB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AACD,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,MAAM,cAAc,CAAC;KAChC,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,EAAE,qBAAqB,CAAC,CAAC;IAC3E,MAAM,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;CAC7C"}
|
package/esm/modal/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default, default as Modal } from './modal';
|
|
2
2
|
export { default as ModalMethods } from './modal-func';
|
|
3
3
|
export { default as ModalSubmit } from './modal-submit';
|
|
4
|
-
export type { ModalProps, ModalClasses } from './modal.type';
|
|
4
|
+
export type { ModalProps, ModalClasses, ModalSemanticKey, ModalClassNamesInfo } from './modal.type';
|
|
5
5
|
export type { ModalOptions } from './modal-func.type';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/modal/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACpG,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["modal-content.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["modal-content.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAqF9D,QAAA,MAAM,KAAK,UAAW,iBAAiB,mDA8ctC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -20,6 +20,7 @@ import { useDragMove, useDragResize, usePersistFn, useRender } from '@sheinx/hoo
|
|
|
20
20
|
import { FormFooterProvider } from "../form/form-footer-context";
|
|
21
21
|
import { popupContext } from '@sheinx/hooks';
|
|
22
22
|
import { useConfig } from "../config";
|
|
23
|
+
import { useSemantic } from "../common";
|
|
23
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
25
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
26
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -97,6 +98,15 @@ var Modal = function Modal(props) {
|
|
|
97
98
|
_props$style = props.style,
|
|
98
99
|
style = _props$style === void 0 ? {} : _props$style;
|
|
99
100
|
var globalConfig = useConfig();
|
|
101
|
+
|
|
102
|
+
// Semantic DOM
|
|
103
|
+
var semInfo = {
|
|
104
|
+
visible: !!props.visible
|
|
105
|
+
};
|
|
106
|
+
var _useSemantic = useSemantic(props.classNames, props.styles, globalConfig.modal, semInfo),
|
|
107
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
108
|
+
semClass = _useSemantic2[0],
|
|
109
|
+
semStyle = _useSemantic2[1];
|
|
100
110
|
var width = style.width || props.width || defaultWidth;
|
|
101
111
|
var height = style.height || props.height;
|
|
102
112
|
var _useState = useState(''),
|
|
@@ -333,35 +343,37 @@ var Modal = function Modal(props) {
|
|
|
333
343
|
}
|
|
334
344
|
var isEmptyTitle = !props.title && props.title !== 0;
|
|
335
345
|
if (isEmptyTitle) {
|
|
336
|
-
var closeRoot = classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerClose, modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.emptyClose);
|
|
346
|
+
var closeRoot = classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerClose, modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.emptyClose, semClass('close'));
|
|
337
347
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
338
348
|
children: [renderIcon(isEmptyTitle), showCloseIcon && /*#__PURE__*/_jsx("div", {
|
|
339
349
|
className: closeRoot,
|
|
350
|
+
style: semStyle('close'),
|
|
340
351
|
onClick: handleClose,
|
|
341
352
|
children: Icons.modal.Close
|
|
342
353
|
})]
|
|
343
354
|
});
|
|
344
355
|
}
|
|
345
356
|
return /*#__PURE__*/_jsxs("div", {
|
|
346
|
-
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.header,
|
|
357
|
+
className: classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.header, semClass('header')),
|
|
347
358
|
onMouseDown: props.moveable && !props.fullScreen ? moveInfo.handleMouseDown : undefined,
|
|
348
|
-
style: props.headerStyle,
|
|
359
|
+
style: _objectSpread(_objectSpread({}, props.headerStyle), semStyle('header')),
|
|
349
360
|
children: [renderIcon(), /*#__PURE__*/_jsx("div", {
|
|
350
361
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerTitle,
|
|
351
362
|
children: props.title
|
|
352
363
|
}), showCloseIcon && /*#__PURE__*/_jsx("div", {
|
|
353
|
-
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerClose,
|
|
364
|
+
className: classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerClose, semClass('close')),
|
|
365
|
+
style: semStyle('close'),
|
|
354
366
|
onClick: handleClose,
|
|
355
367
|
children: Icons.modal.Close
|
|
356
368
|
})]
|
|
357
369
|
});
|
|
358
370
|
};
|
|
359
371
|
var renderBody = function renderBody() {
|
|
360
|
-
var bodyStyle = _objectSpread({
|
|
372
|
+
var bodyStyle = _objectSpread(_objectSpread({
|
|
361
373
|
padding: props.padding
|
|
362
|
-
}, props.bodyStyle);
|
|
374
|
+
}, props.bodyStyle), semStyle('body'));
|
|
363
375
|
return /*#__PURE__*/_jsx("div", {
|
|
364
|
-
className: classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.body, props.type && !!AlertIconMap[props.type] && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.bodyWithIcon)),
|
|
376
|
+
className: classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.body, props.type && !!AlertIconMap[props.type] && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.bodyWithIcon), semClass('body')),
|
|
365
377
|
style: bodyStyle,
|
|
366
378
|
children: props.children
|
|
367
379
|
});
|
|
@@ -369,8 +381,8 @@ var Modal = function Modal(props) {
|
|
|
369
381
|
var renderFooter = function renderFooter() {
|
|
370
382
|
if (!props.footer) return null;
|
|
371
383
|
return /*#__PURE__*/_jsx("div", {
|
|
372
|
-
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.footer,
|
|
373
|
-
style: props.footerStyle,
|
|
384
|
+
className: classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.footer, semClass('footer')),
|
|
385
|
+
style: _objectSpread(_objectSpread({}, props.footerStyle), semStyle('footer')),
|
|
374
386
|
children: props.footer
|
|
375
387
|
});
|
|
376
388
|
};
|
|
@@ -449,25 +461,26 @@ var Modal = function Modal(props) {
|
|
|
449
461
|
onClick: function onClick(e) {
|
|
450
462
|
e.stopPropagation();
|
|
451
463
|
},
|
|
452
|
-
className: classNames(props.rootClassName, modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.rootClass, modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapper, animation && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperAnimation), visible ? modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperShow : modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperHide, showMask && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperIsMask), props.fullScreen && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperFullScreen), props.moveable && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperMoveable), hideMask && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperHideMask), maskBlur && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperMaskBlur), props.zoom && !props.moveable && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperZoom), (isPositionX || isPositionY) && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawer), props.position === 'left' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerLeft), props.position === 'right' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerRight), props.position === 'top' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerTop), props.position === 'bottom' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerBottom)),
|
|
464
|
+
className: classNames(props.rootClassName, modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.rootClass, modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapper, animation && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperAnimation), visible ? modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperShow : modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperHide, showMask && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperIsMask), props.fullScreen && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperFullScreen), props.moveable && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperMoveable), hideMask && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperHideMask), maskBlur && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperMaskBlur), props.zoom && !props.moveable && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperZoom), (isPositionX || isPositionY) && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawer), props.position === 'left' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerLeft), props.position === 'right' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerRight), props.position === 'top' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerTop), props.position === 'bottom' && (modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.wrapperDrawerBottom), semClass('root')),
|
|
453
465
|
onAnimationEnd: handleAnimationEnd,
|
|
454
|
-
style: {
|
|
466
|
+
style: _objectSpread({
|
|
455
467
|
background: props.maskBackground,
|
|
456
468
|
zIndex: props.zIndex,
|
|
457
469
|
display: !visible && !animation ? 'none' : undefined
|
|
458
|
-
},
|
|
470
|
+
}, semStyle('root')),
|
|
459
471
|
dir: globalConfig.direction,
|
|
460
472
|
children: /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
|
461
|
-
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.mask
|
|
473
|
+
className: classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.mask, semClass('mask'))
|
|
462
474
|
}, events), {}, {
|
|
463
475
|
onMouseDown: handleMaskMouseDown,
|
|
464
476
|
onMouseUp: handleMaskMouseUp,
|
|
465
477
|
onClick: handleMaskClick,
|
|
466
478
|
onAnimationStart: updateOrigin,
|
|
479
|
+
style: semStyle('mask'),
|
|
467
480
|
children: /*#__PURE__*/_jsx("div", {
|
|
468
481
|
ref: panelRef,
|
|
469
|
-
className: classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.panel, props.className),
|
|
470
|
-
style: panelStyle,
|
|
482
|
+
className: classNames(modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.panel, props.className, semClass('container')),
|
|
483
|
+
style: _objectSpread(_objectSpread({}, panelStyle), semStyle('container')),
|
|
471
484
|
children: content
|
|
472
485
|
})
|
|
473
486
|
}))
|