@sheinx/base 3.10.0-beta.9 → 3.10.0
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/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 +27 -13
- 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 +19 -9
- 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/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 +24 -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 +12 -4
- 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 +47 -0
- 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.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 +21 -6
- 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 +133 -8
- package/cjs/upload/upload.type.d.ts +45 -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/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 +27 -13
- 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 +19 -9
- 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/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 +24 -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 +11 -4
- 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 +47 -0
- 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.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 +21 -6
- 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 +132 -7
- package/esm/upload/upload.type.d.ts +45 -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
|
@@ -21,7 +21,9 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
21
21
|
var dataItem = _ref.dataItem,
|
|
22
22
|
renderItem = _ref.renderItem,
|
|
23
23
|
jssStyle = _ref.jssStyle,
|
|
24
|
-
max = _ref.max
|
|
24
|
+
max = _ref.max,
|
|
25
|
+
semClass = _ref.semClass,
|
|
26
|
+
semStyle = _ref.semStyle;
|
|
25
27
|
var contentRef = useRef(null);
|
|
26
28
|
var _useState = useState(false),
|
|
27
29
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -33,7 +35,8 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
33
35
|
}
|
|
34
36
|
}, [max, dataItem]);
|
|
35
37
|
var breadcrumbClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$breadcrumb = jssStyle.breadcrumb) === null || _jssStyle$breadcrumb === void 0 ? void 0 : _jssStyle$breadcrumb.call(jssStyle);
|
|
36
|
-
var contentClass = classNames(breadcrumbClasses.content, isOverflow && (breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.contentMaxWidth));
|
|
38
|
+
var contentClass = classNames(breadcrumbClasses.content, isOverflow && (breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.contentMaxWidth), semClass('content'));
|
|
39
|
+
var contentStyle = semStyle('content');
|
|
37
40
|
var d = dataItem;
|
|
38
41
|
var item = d.title;
|
|
39
42
|
if (! /*#__PURE__*/React.isValidElement(item)) {
|
|
@@ -44,6 +47,7 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
44
47
|
if (d.url) props.href = d.url;
|
|
45
48
|
item = /*#__PURE__*/_jsxs("a", _objectSpread(_objectSpread({}, props), {}, {
|
|
46
49
|
className: contentClass,
|
|
50
|
+
style: contentStyle,
|
|
47
51
|
role: "button",
|
|
48
52
|
ref: contentRef,
|
|
49
53
|
children: [d.icon, d.icon && d.title && /*#__PURE__*/_jsx(_Fragment, {
|
|
@@ -53,6 +57,7 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
53
57
|
} else {
|
|
54
58
|
item = /*#__PURE__*/_jsxs("span", {
|
|
55
59
|
className: contentClass,
|
|
60
|
+
style: contentStyle,
|
|
56
61
|
ref: contentRef,
|
|
57
62
|
children: [d.icon, d.icon && d.title && /*#__PURE__*/_jsx(_Fragment, {
|
|
58
63
|
children: "\xA0"
|
|
@@ -64,6 +69,7 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
64
69
|
if (max !== undefined) {
|
|
65
70
|
item = /*#__PURE__*/_jsx("span", {
|
|
66
71
|
className: contentClass,
|
|
72
|
+
style: contentStyle,
|
|
67
73
|
ref: contentRef,
|
|
68
74
|
children: renderItem(dataItem)
|
|
69
75
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["breadcrumb.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAkB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["breadcrumb.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAkB,kBAAkB,EAA4C,MAAM,mBAAmB,CAAC;AAQlI,QAAA,MAAM,UAAU,sGAyEf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
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
|
+
var _excluded = ["root"],
|
|
3
|
+
_excluded2 = ["root"];
|
|
2
4
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
5
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
6
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
7
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
8
|
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; }
|
|
9
9
|
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; }
|
|
10
10
|
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; }
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
12
|
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); }
|
|
13
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
15
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
20
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
21
|
import classNames from 'classnames';
|
|
14
22
|
import { util } from '@sheinx/hooks';
|
|
15
23
|
import React from 'react';
|
|
16
24
|
import List from "./list";
|
|
17
25
|
import BreadcrumbItem from "./breadcrumb-item";
|
|
18
26
|
import Popover from "../popover";
|
|
27
|
+
import { useConfig } from "../config";
|
|
28
|
+
import { useSemantic } from "../common";
|
|
19
29
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
30
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
31
|
var getKey = util.getKey;
|
|
@@ -26,15 +36,26 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
26
36
|
_props$separator = props.separator,
|
|
27
37
|
separator = _props$separator === void 0 ? '/' : _props$separator,
|
|
28
38
|
_props$maxHeight = props.maxHeight,
|
|
29
|
-
maxHeight = _props$maxHeight === void 0 ? '50vh' : _props$maxHeight
|
|
39
|
+
maxHeight = _props$maxHeight === void 0 ? '50vh' : _props$maxHeight,
|
|
40
|
+
classNamesProp = props.classNames,
|
|
41
|
+
stylesProp = props.styles;
|
|
30
42
|
var breadcrumbClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$bread = _props$jssStyle.breadcrumb) === null || _props$jssStyle$bread === void 0 ? void 0 : _props$jssStyle$bread.call(_props$jssStyle);
|
|
31
43
|
var maxCount = props.max ? Math.max(2, props.max) : undefined;
|
|
44
|
+
|
|
45
|
+
// Semantic DOM
|
|
46
|
+
var config = useConfig();
|
|
47
|
+
var _useSemantic = useSemantic(classNamesProp, stylesProp, config.breadcrumb),
|
|
48
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
49
|
+
semClass = _useSemantic2[0],
|
|
50
|
+
semStyle = _useSemantic2[1];
|
|
32
51
|
var renderItem = function renderItem(dataItem) {
|
|
33
52
|
return /*#__PURE__*/_jsx(BreadcrumbItem, {
|
|
34
53
|
dataItem: dataItem,
|
|
35
54
|
renderItem: props.renderItem,
|
|
36
55
|
jssStyle: props.jssStyle,
|
|
37
|
-
max: maxCount
|
|
56
|
+
max: maxCount,
|
|
57
|
+
semClass: semClass,
|
|
58
|
+
semStyle: semStyle
|
|
38
59
|
});
|
|
39
60
|
};
|
|
40
61
|
var renderArray = function renderArray(data) {
|
|
@@ -42,10 +63,12 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
42
63
|
data: data,
|
|
43
64
|
renderItem: renderItem,
|
|
44
65
|
jssStyle: props.jssStyle,
|
|
45
|
-
maxHeight: maxHeight
|
|
66
|
+
maxHeight: maxHeight,
|
|
67
|
+
semClass: semClass,
|
|
68
|
+
semStyle: semStyle
|
|
46
69
|
});
|
|
47
70
|
};
|
|
48
|
-
var className = classNames(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.rootClass, breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.wrapper, props.className);
|
|
71
|
+
var className = classNames(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.rootClass, breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.wrapper, props.className, semClass('root'));
|
|
49
72
|
var getRenderData = function getRenderData() {
|
|
50
73
|
if (!maxCount) return data;
|
|
51
74
|
if (data.length <= maxCount) return data;
|
|
@@ -54,9 +77,17 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
54
77
|
var reset = data.slice(sliceIndex);
|
|
55
78
|
var moreData = data.slice(1, sliceIndex);
|
|
56
79
|
var moreClassName = classNames(props.className, breadcrumbClasses.wrapperPopover);
|
|
80
|
+
// 嵌套 Breadcrumb 不透传 root 的 semantic,避免"盒中盒"重复装饰
|
|
81
|
+
var _ref = classNamesProp || {},
|
|
82
|
+
_rootCls = _ref.root,
|
|
83
|
+
innerClassNames = _objectWithoutProperties(_ref, _excluded);
|
|
84
|
+
var _ref2 = stylesProp || {},
|
|
85
|
+
_rootSty = _ref2.root,
|
|
86
|
+
innerStyles = _objectWithoutProperties(_ref2, _excluded2);
|
|
57
87
|
var more = {
|
|
58
88
|
title: /*#__PURE__*/_jsxs("span", {
|
|
59
|
-
className: classNames(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.content, breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.ellipsis),
|
|
89
|
+
className: classNames(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.content, breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.ellipsis, semClass('content')),
|
|
90
|
+
style: semStyle('content'),
|
|
60
91
|
children: ["...", /*#__PURE__*/_jsx(Popover, {
|
|
61
92
|
jssStyle: props.jssStyle,
|
|
62
93
|
useTextStyle: true,
|
|
@@ -65,7 +96,9 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
65
96
|
children: /*#__PURE__*/_jsx(Breadcrumb, _objectSpread(_objectSpread({}, props), {}, {
|
|
66
97
|
className: moreClassName,
|
|
67
98
|
data: moreData,
|
|
68
|
-
max: undefined
|
|
99
|
+
max: undefined,
|
|
100
|
+
classNames: innerClassNames,
|
|
101
|
+
styles: innerStyles
|
|
69
102
|
}))
|
|
70
103
|
})]
|
|
71
104
|
})
|
|
@@ -75,19 +108,23 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
75
108
|
var lastIndex = Math.min(data.length - 1, maxCount !== undefined ? maxCount : data.length - 1);
|
|
76
109
|
return /*#__PURE__*/_jsx("div", {
|
|
77
110
|
className: className,
|
|
78
|
-
style: props.style,
|
|
111
|
+
style: _objectSpread(_objectSpread({}, props.style), semStyle('root')),
|
|
79
112
|
children: data && getRenderData().map(function (d, index) {
|
|
80
113
|
var itemFirst = Array.isArray(d) ? d[0] : d;
|
|
81
114
|
var isLastItem = index === lastIndex;
|
|
82
115
|
return /*#__PURE__*/_jsxs("div", {
|
|
83
|
-
className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item,
|
|
116
|
+
className: classNames(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item, semClass('item')),
|
|
117
|
+
style: semStyle('item'),
|
|
84
118
|
children: [Array.isArray(d) ? renderArray(d) : /*#__PURE__*/_jsx(BreadcrumbItem, {
|
|
85
119
|
dataItem: d,
|
|
86
120
|
renderItem: props.renderItem,
|
|
87
121
|
jssStyle: props.jssStyle,
|
|
88
|
-
max: maxCount
|
|
122
|
+
max: maxCount,
|
|
123
|
+
semClass: semClass,
|
|
124
|
+
semStyle: semStyle
|
|
89
125
|
}), !isLastItem && /*#__PURE__*/_jsx("div", {
|
|
90
|
-
className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.separator,
|
|
126
|
+
className: classNames(breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.separator, semClass('separator')),
|
|
127
|
+
style: semStyle('separator'),
|
|
91
128
|
children: separator
|
|
92
129
|
})]
|
|
93
130
|
}, props.keygen ? getKey(props.keygen, itemFirst, index) : index);
|
|
@@ -2,8 +2,21 @@ import React from 'react';
|
|
|
2
2
|
import type { CommonType } from '../common/type';
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
4
|
import type { KeygenType } from '@sheinx/hooks';
|
|
5
|
+
import type { SemanticClassNames, SemanticStyles } from '../common/use-semantic';
|
|
5
6
|
import type { PopoverJssStyle } from '../popover/popover.type';
|
|
6
7
|
import type { TooltipClasses } from '../tooltip/tooltip.type';
|
|
8
|
+
/**
|
|
9
|
+
* Breadcrumb Semantic DOM key 列表
|
|
10
|
+
* - root: 最外层容器
|
|
11
|
+
* - item: 每个面包屑项的容器
|
|
12
|
+
* - separator: 分隔符节点
|
|
13
|
+
* - content: 文本/链接内容节点
|
|
14
|
+
* - dropdown: 溢出下拉面板
|
|
15
|
+
* - dropdownItem: 下拉面板内每一项
|
|
16
|
+
*
|
|
17
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
18
|
+
*/
|
|
19
|
+
export type BreadcrumbSemanticKey = 'root' | 'item' | 'separator' | 'content' | 'dropdown' | 'dropdownItem';
|
|
7
20
|
export type StructureArray<T> = Array<T | T[]>;
|
|
8
21
|
export interface BreadcrumbClasses {
|
|
9
22
|
rootClass: string;
|
|
@@ -27,6 +40,18 @@ export interface BreadcrumbJssStyle extends PopoverJssStyle {
|
|
|
27
40
|
}
|
|
28
41
|
export interface BreadcrumbProps<Item = BreadcrumbDataType> extends Pick<CommonType, 'className' | 'style'> {
|
|
29
42
|
jssStyle?: BreadcrumbJssStyle;
|
|
43
|
+
/**
|
|
44
|
+
* @en Semantic DOM classNames for internal nodes.
|
|
45
|
+
* @cn 语义化 DOM 类名,用于定制内部节点样式。
|
|
46
|
+
* @version 3.10.0
|
|
47
|
+
*/
|
|
48
|
+
classNames?: SemanticClassNames<BreadcrumbSemanticKey>;
|
|
49
|
+
/**
|
|
50
|
+
* @en Semantic DOM styles for internal nodes.
|
|
51
|
+
* @cn 语义化 DOM 行内样式,用于定制内部节点样式。
|
|
52
|
+
* @version 3.10.0
|
|
53
|
+
*/
|
|
54
|
+
styles?: SemanticStyles<BreadcrumbSemanticKey>;
|
|
30
55
|
/**
|
|
31
56
|
* @en The array of breadcrumb objects, see data
|
|
32
57
|
* @cn 面包屑对象数组,见 data
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.type.d.ts","sourceRoot":"","sources":["breadcrumb.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"breadcrumb.type.d.ts","sourceRoot":"","sources":["breadcrumb.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEjF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,CAAC;AAE5G,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,UAAU,CAAC,EAAE,MAAM,iBAAiB,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,cAAc,CAAC;CAChC;AAED,MAAM,WAAW,eAAe,CAAC,IAAI,GAAG,kBAAkB,CACxD,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;IAC/C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAE9B;;;;OAIG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;IAEvD;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC,qBAAqB,CAAC,CAAC;IAE/C;;;;;OAKG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IAE5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,SAAS,CAAC;IACxC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAErD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default, default as Breadcrumb } from './breadcrumb';
|
|
2
|
-
export type { BreadcrumbProps, BreadcrumbDataType, BreadcrumbClasses } from './breadcrumb.type';
|
|
2
|
+
export type { BreadcrumbProps, BreadcrumbDataType, BreadcrumbClasses, BreadcrumbSemanticKey } from './breadcrumb.type';
|
|
3
3
|
//# 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,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/esm/breadcrumb/list.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { BreadcrumbJssStyle } from './breadcrumb.type';
|
|
2
|
+
import type { BreadcrumbJssStyle, BreadcrumbSemanticKey } from './breadcrumb.type';
|
|
3
|
+
import type { SemanticClassFn, SemanticStyleFn } from '../common/use-semantic';
|
|
3
4
|
interface ListProps {
|
|
4
5
|
data: any[];
|
|
5
6
|
maxHeight?: string | number;
|
|
6
7
|
jssStyle?: BreadcrumbJssStyle;
|
|
7
8
|
renderItem: (dataItem: any) => React.ReactNode;
|
|
9
|
+
semClass: SemanticClassFn<BreadcrumbSemanticKey>;
|
|
10
|
+
semStyle: SemanticStyleFn<BreadcrumbSemanticKey>;
|
|
8
11
|
}
|
|
9
12
|
declare const List: (props: ListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
export default List;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE/E,UAAU,SAAS;IACjB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,UAAU,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,KAAK,CAAC,SAAS,CAAC;IAC/C,QAAQ,EAAE,eAAe,CAAC,qBAAqB,CAAC,CAAC;IACjD,QAAQ,EAAE,eAAe,CAAC,qBAAqB,CAAC,CAAC;CAClD;AACD,QAAA,MAAM,IAAI,UAAW,SAAS,4CAoD7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/esm/breadcrumb/list.js
CHANGED
|
@@ -21,6 +21,8 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
21
21
|
var List = function List(props) {
|
|
22
22
|
var _props$jssStyle, _props$jssStyle$bread;
|
|
23
23
|
var classes = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$bread = _props$jssStyle.breadcrumb) === null || _props$jssStyle$bread === void 0 ? void 0 : _props$jssStyle$bread.call(_props$jssStyle);
|
|
24
|
+
var semClass = props.semClass,
|
|
25
|
+
semStyle = props.semStyle;
|
|
24
26
|
var _usePopup = usePopup({
|
|
25
27
|
disabled: false,
|
|
26
28
|
trigger: 'hover',
|
|
@@ -40,7 +42,8 @@ var List = function List(props) {
|
|
|
40
42
|
return /*#__PURE__*/_jsx("div", {
|
|
41
43
|
className: classes === null || classes === void 0 ? void 0 : classes.itemWrapper,
|
|
42
44
|
children: /*#__PURE__*/_jsx("div", {
|
|
43
|
-
className: classNames(classes === null || classes === void 0 ? void 0 : classes.dropdownItem),
|
|
45
|
+
className: classNames(classes === null || classes === void 0 ? void 0 : classes.dropdownItem, semClass('dropdownItem')),
|
|
46
|
+
style: semStyle('dropdownItem'),
|
|
44
47
|
onClick: closePop,
|
|
45
48
|
children: props.renderItem(item)
|
|
46
49
|
})
|
|
@@ -67,16 +70,16 @@ var List = function List(props) {
|
|
|
67
70
|
popupElRef: popupRef,
|
|
68
71
|
adjust: true,
|
|
69
72
|
children: /*#__PURE__*/_jsx(AnimationList, {
|
|
70
|
-
className: classNames(classes === null || classes === void 0 ? void 0 : classes.dropdown),
|
|
73
|
+
className: classNames(classes === null || classes === void 0 ? void 0 : classes.dropdown, semClass('dropdown')),
|
|
71
74
|
type: 'fade',
|
|
72
75
|
duration: 'fast',
|
|
73
76
|
show: open,
|
|
74
77
|
onRef: popupRef,
|
|
75
78
|
animation: false,
|
|
76
|
-
style: {
|
|
79
|
+
style: _objectSpread({
|
|
77
80
|
maxHeight: props.maxHeight,
|
|
78
81
|
overflow: 'auto'
|
|
79
|
-
},
|
|
82
|
+
}, semStyle('dropdown')),
|
|
80
83
|
children: renderList(rest)
|
|
81
84
|
})
|
|
82
85
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiB,WAAW,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiB,WAAW,EAA2C,MAAM,eAAe,CAAC;AAQpG,QAAA,MAAM,MAAM;YAAW,WAAW;;CAsIjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
package/esm/button/button.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
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
2
|
var _excluded = ["jssStyle", "className", "style", "children", "loading", "href", "text", "outline", "shape", "size", "type", "space", "target", "mode", "htmlType", "renderLoading"],
|
|
3
3
|
_excluded2 = ["htmlType", "onRef"];
|
|
4
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
9
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
4
10
|
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; }
|
|
5
11
|
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; }
|
|
6
12
|
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; }
|
|
@@ -12,6 +18,7 @@ import { useButton } from '@sheinx/hooks';
|
|
|
12
18
|
import classNames from 'classnames';
|
|
13
19
|
import React, { isValidElement } from 'react';
|
|
14
20
|
import { useConfig } from "../config";
|
|
21
|
+
import { useSemantic } from "../common";
|
|
15
22
|
import ButtonGroup from "./button-group";
|
|
16
23
|
import Spin from "../spin";
|
|
17
24
|
import { util } from '@sheinx/hooks';
|
|
@@ -55,6 +62,20 @@ var Button = function Button(props) {
|
|
|
55
62
|
getAnchorProps = _useButton.getAnchorProps,
|
|
56
63
|
disabled = _useButton.disabled;
|
|
57
64
|
var buttonStyle = (jssStyle === null || jssStyle === void 0 || (_jssStyle$button = jssStyle.button) === null || _jssStyle$button === void 0 ? void 0 : _jssStyle$button.call(jssStyle)) || {};
|
|
65
|
+
|
|
66
|
+
// Semantic DOM
|
|
67
|
+
var globalSemanticConfig = config.button ? {
|
|
68
|
+
classNames: config.button.classNames,
|
|
69
|
+
styles: config.button.styles
|
|
70
|
+
} : undefined;
|
|
71
|
+
var semInfo = {
|
|
72
|
+
disabled: !!disabled,
|
|
73
|
+
loading: !!loading
|
|
74
|
+
};
|
|
75
|
+
var _useSemantic = useSemantic(props.classNames, props.styles, globalSemanticConfig, semInfo),
|
|
76
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
77
|
+
semClass = _useSemantic2[0],
|
|
78
|
+
semStyle = _useSemantic2[1];
|
|
58
79
|
var getType = function getType() {
|
|
59
80
|
if (typeProp === 'default') return 'secondary';
|
|
60
81
|
return typeProp;
|
|
@@ -67,7 +88,8 @@ var Button = function Button(props) {
|
|
|
67
88
|
var mode = getMode();
|
|
68
89
|
var type = getType();
|
|
69
90
|
var modeSetted = mode || (text ? 'text' : outline ? 'outline' : undefined);
|
|
70
|
-
var rootClass = classNames(className, buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.rootClass, buttonStyle[type || 'default'], buttonStyle.button, !!disabled && buttonStyle.disabled, !!loading && buttonStyle.loading, modeSetted === 'text' && buttonStyle.text, modeSetted === 'dashed' && buttonStyle.dashed, modeSetted === 'outline' && buttonStyle.outline, shape === 'round' && buttonStyle.round, shape === 'circle' && buttonStyle.circle, shape === 'square' && buttonStyle.square, size === 'small' && buttonStyle.small, size === 'large' && buttonStyle.large);
|
|
91
|
+
var rootClass = classNames(className, buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.rootClass, buttonStyle[type || 'default'], buttonStyle.button, !!disabled && buttonStyle.disabled, !!loading && buttonStyle.loading, modeSetted === 'text' && buttonStyle.text, modeSetted === 'dashed' && buttonStyle.dashed, modeSetted === 'outline' && buttonStyle.outline, shape === 'round' && buttonStyle.round, shape === 'circle' && buttonStyle.circle, shape === 'square' && buttonStyle.square, size === 'small' && buttonStyle.small, size === 'large' && buttonStyle.large, semClass('root'));
|
|
92
|
+
var rootStyle = semStyle('root') ? _objectSpread(_objectSpread({}, style), semStyle('root')) : style;
|
|
71
93
|
var rootProps = getButtonProps();
|
|
72
94
|
var htmlType = rootProps.htmlType,
|
|
73
95
|
onRef = rootProps.onRef,
|
|
@@ -86,7 +108,8 @@ var Button = function Button(props) {
|
|
|
86
108
|
// }
|
|
87
109
|
|
|
88
110
|
var loadingEl = /*#__PURE__*/_jsx("div", {
|
|
89
|
-
className: buttonStyle.spin,
|
|
111
|
+
className: classNames(buttonStyle.spin, semClass('loading')),
|
|
112
|
+
style: semStyle('loading'),
|
|
90
113
|
children: /*#__PURE__*/_jsx(Spin, {
|
|
91
114
|
size: '1em',
|
|
92
115
|
jssStyle: jssStyle,
|
|
@@ -100,7 +123,7 @@ var Button = function Button(props) {
|
|
|
100
123
|
if (href && !disabled) {
|
|
101
124
|
return /*#__PURE__*/_jsxs("a", _objectSpread(_objectSpread({}, getAnchorProps({
|
|
102
125
|
className: rootClass,
|
|
103
|
-
style:
|
|
126
|
+
style: rootStyle
|
|
104
127
|
})), {}, {
|
|
105
128
|
href: href,
|
|
106
129
|
target: target,
|
|
@@ -117,7 +140,7 @@ var Button = function Button(props) {
|
|
|
117
140
|
type: htmlType,
|
|
118
141
|
ref: onRef,
|
|
119
142
|
className: rootClass,
|
|
120
|
-
style:
|
|
143
|
+
style: rootStyle,
|
|
121
144
|
children: [loading && loadingEl, buttonInnerEl]
|
|
122
145
|
}))
|
|
123
146
|
);
|
|
@@ -2,6 +2,32 @@ import { CommonType } from '../common/type';
|
|
|
2
2
|
import { BaseButtonProps, ButtonMode, ButtonType } from '@sheinx/hooks';
|
|
3
3
|
import { SpinClasses } from '../spin/spin.type';
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import type { SemanticClassNames, SemanticStyles } from '../common/use-semantic';
|
|
6
|
+
/**
|
|
7
|
+
* Button Semantic DOM key 列表
|
|
8
|
+
* - root: 按钮元素(button 或 a)
|
|
9
|
+
* - loading: 加载指示器容器
|
|
10
|
+
*
|
|
11
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
12
|
+
*/
|
|
13
|
+
export type ButtonSemanticKey = 'root' | 'loading';
|
|
14
|
+
/**
|
|
15
|
+
* 传入函数式 `classNames` 时的状态快照。
|
|
16
|
+
*
|
|
17
|
+
* @version 3.10.0
|
|
18
|
+
*/
|
|
19
|
+
export interface ButtonClassNamesInfo {
|
|
20
|
+
/**
|
|
21
|
+
* @cn 是否禁用
|
|
22
|
+
* @en Whether disabled
|
|
23
|
+
*/
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @cn 是否加载中
|
|
27
|
+
* @en Whether loading
|
|
28
|
+
*/
|
|
29
|
+
loading: boolean;
|
|
30
|
+
}
|
|
5
31
|
export interface ButtonClasses {
|
|
6
32
|
rootClass: string;
|
|
7
33
|
button: string;
|
|
@@ -89,6 +115,20 @@ export interface ButtonBaseProps extends BaseButtonProps, Pick<CommonType, 'styl
|
|
|
89
115
|
* @cn 自定义loading
|
|
90
116
|
*/
|
|
91
117
|
renderLoading?: (buttonEl: React.ReactNode) => React.ReactElement;
|
|
118
|
+
/**
|
|
119
|
+
* @en Semantic DOM classNames for internal nodes (root / loading).
|
|
120
|
+
* Accepts static strings or functions that receive a state snapshot.
|
|
121
|
+
* @cn Semantic DOM 类名,可按 key 定制内部各节点(root / loading)。
|
|
122
|
+
* 支持静态字符串或函数(接收状态快照)。
|
|
123
|
+
* @version 3.10.0
|
|
124
|
+
*/
|
|
125
|
+
classNames?: SemanticClassNames<ButtonSemanticKey, ButtonClassNamesInfo>;
|
|
126
|
+
/**
|
|
127
|
+
* @en Semantic DOM inline styles for internal nodes (root / loading).
|
|
128
|
+
* @cn Semantic DOM 内联样式,按 key 定制内部各节点。
|
|
129
|
+
* @version 3.10.0
|
|
130
|
+
*/
|
|
131
|
+
styles?: SemanticStyles<ButtonSemanticKey>;
|
|
92
132
|
}
|
|
93
133
|
export interface ButtonGroupProps extends Pick<CommonType, 'style' | 'className' | 'size'> {
|
|
94
134
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["button.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"button.type.d.ts","sourceRoot":"","sources":["button.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEjF;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;AAEnD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,WAAW,CAAC,EAAE,MAAM,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,CAAC;IAC9E;;;;OAIG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;;OAGG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;IACrC;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,MAAM,WAAW,eACf,SAAQ,eAAe,EACrB,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,CAAC,EACvC,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAClE,QAAQ,CAAC,EAAE;QACT,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC;QAC7B,IAAI,CAAC,EAAE,MAAM,WAAW,CAAC;KAC1B,CAAC;IACF;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,CAAC;IACjE;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,YAAY,CAAC;IAElE;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAAC;IAEzE;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC;CAC5C;AAED,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,CAAC;IACxF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC"}
|
package/esm/button/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default, default as Button } from './button';
|
|
2
|
-
export type { ButtonProps } from './button.type';
|
|
2
|
+
export type { ButtonProps, ButtonSemanticKey, ButtonClassNamesInfo } from './button.type';
|
|
3
3
|
export { default as ButtonGroup } from './button-group';
|
|
4
4
|
export type { ButtonGroupProps, ButtonClasses, ButtonGroupClasses, ButtonGroupJssStyle, } from './button.type';
|
|
5
5
|
//# 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,MAAM,EAAE,MAAM,UAAU,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AACtD,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,eAAe,CAAC"}
|
package/esm/card/card-body.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
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); }
|
|
1
7
|
import classNames from 'classnames';
|
|
2
8
|
import { useContext } from 'react';
|
|
3
9
|
import { CardContext } from "./card.context";
|
|
@@ -8,11 +14,13 @@ var CardBody = function CardBody(props) {
|
|
|
8
14
|
var cardClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$card = _props$jssStyle.card) === null || _props$jssStyle$card === void 0 ? void 0 : _props$jssStyle$card.call(_props$jssStyle);
|
|
9
15
|
var _useContext = useContext(CardContext),
|
|
10
16
|
collapsible = _useContext.collapsible,
|
|
11
|
-
collapsed = _useContext.collapsed
|
|
12
|
-
|
|
17
|
+
collapsed = _useContext.collapsed,
|
|
18
|
+
semClass = _useContext.semClass,
|
|
19
|
+
semStyle = _useContext.semStyle;
|
|
20
|
+
var cs = classNames(props.className, cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.body, semClass === null || semClass === void 0 ? void 0 : semClass('body'));
|
|
13
21
|
var body = /*#__PURE__*/_jsx("div", {
|
|
14
22
|
className: cs,
|
|
15
|
-
style: props.style,
|
|
23
|
+
style: _objectSpread(_objectSpread({}, props.style), semStyle === null || semStyle === void 0 ? void 0 : semStyle('body')),
|
|
16
24
|
children: props.children
|
|
17
25
|
});
|
|
18
26
|
if (collapsible) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CardHeaderProps } from './card-header.type';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const CardFooter: (props: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default CardFooter;
|
|
4
4
|
//# sourceMappingURL=card-footer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-footer.d.ts","sourceRoot":"","sources":["card-footer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,QAAA,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"card-footer.d.ts","sourceRoot":"","sources":["card-footer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,QAAA,MAAM,UAAU,UAAW,eAAe,4CAuBzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/esm/card/card-footer.js
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
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); }
|
|
1
7
|
import classNames from 'classnames';
|
|
2
8
|
import { CardContext } from "./card.context";
|
|
3
9
|
import { useContext } from 'react';
|
|
4
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
var
|
|
11
|
+
var CardFooter = function CardFooter(props) {
|
|
6
12
|
var _props$jssStyle, _props$jssStyle$card;
|
|
7
13
|
var _props$align = props.align,
|
|
8
14
|
align = _props$align === void 0 ? 'right' : _props$align;
|
|
9
15
|
var cardClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$card = _props$jssStyle.card) === null || _props$jssStyle$card === void 0 ? void 0 : _props$jssStyle$card.call(_props$jssStyle);
|
|
10
16
|
var _useContext = useContext(CardContext),
|
|
11
17
|
onCollapse = _useContext.onCollapse,
|
|
12
|
-
handleDragMouseDown = _useContext.handleDragMouseDown
|
|
13
|
-
|
|
18
|
+
handleDragMouseDown = _useContext.handleDragMouseDown,
|
|
19
|
+
semClass = _useContext.semClass,
|
|
20
|
+
semStyle = _useContext.semStyle;
|
|
21
|
+
var footerClassName = classNames(props.className, align === 'center' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.center), align === 'right' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.right), cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.footer, semClass === null || semClass === void 0 ? void 0 : semClass('footer'));
|
|
14
22
|
return /*#__PURE__*/_jsx("div", {
|
|
15
23
|
onMouseDown: handleDragMouseDown,
|
|
16
24
|
onClick: onCollapse,
|
|
17
25
|
className: footerClassName,
|
|
18
|
-
style: props.style,
|
|
26
|
+
style: _objectSpread(_objectSpread({}, props.style), semStyle === null || semStyle === void 0 ? void 0 : semStyle('footer')),
|
|
19
27
|
children: props.children
|
|
20
28
|
});
|
|
21
29
|
};
|
|
22
|
-
export default
|
|
30
|
+
export default CardFooter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-header.d.ts","sourceRoot":"","sources":["card-header.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,QAAA,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"card-header.d.ts","sourceRoot":"","sources":["card-header.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,QAAA,MAAM,UAAU,UAAW,eAAe,4CA+DzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/esm/card/card-header.js
CHANGED
|
@@ -19,7 +19,9 @@ var CardHeader = function CardHeader(props) {
|
|
|
19
19
|
var _useContext = useContext(CardContext),
|
|
20
20
|
collapsible = _useContext.collapsible,
|
|
21
21
|
onCollapse = _useContext.onCollapse,
|
|
22
|
-
handleDragMouseDown = _useContext.handleDragMouseDown
|
|
22
|
+
handleDragMouseDown = _useContext.handleDragMouseDown,
|
|
23
|
+
semClass = _useContext.semClass,
|
|
24
|
+
semStyle = _useContext.semStyle;
|
|
23
25
|
var renderIndicator = function renderIndicator() {
|
|
24
26
|
if (!collapsible) return null;
|
|
25
27
|
return /*#__PURE__*/_jsx("div", {
|
|
@@ -32,14 +34,14 @@ var CardHeader = function CardHeader(props) {
|
|
|
32
34
|
});
|
|
33
35
|
};
|
|
34
36
|
var alignClass = classNames(align === 'center' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.center), align === 'right' && (cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.right));
|
|
35
|
-
var headerContentClassName = classNames(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.headerContent, alignClass);
|
|
37
|
+
var headerContentClassName = classNames(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.headerContent, alignClass, semClass === null || semClass === void 0 ? void 0 : semClass('headerContent'));
|
|
36
38
|
var commonHeaderProps = {
|
|
37
39
|
onMouseDown: handleDragMouseDown,
|
|
38
40
|
onClick: onCollapse,
|
|
39
|
-
style: props.style
|
|
41
|
+
style: _objectSpread(_objectSpread({}, props.style), semStyle === null || semStyle === void 0 ? void 0 : semStyle('header'))
|
|
40
42
|
};
|
|
41
43
|
if (!props.extra && !collapsible) {
|
|
42
|
-
var simpleHeaderClassName = classNames(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.header, cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.simpleHeader, alignClass, props.className);
|
|
44
|
+
var simpleHeaderClassName = classNames(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.header, cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.simpleHeader, alignClass, props.className, semClass === null || semClass === void 0 ? void 0 : semClass('header'));
|
|
43
45
|
return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({
|
|
44
46
|
className: simpleHeaderClassName
|
|
45
47
|
}, commonHeaderProps), {}, {
|
|
@@ -47,13 +49,15 @@ var CardHeader = function CardHeader(props) {
|
|
|
47
49
|
}));
|
|
48
50
|
}
|
|
49
51
|
return /*#__PURE__*/_jsxs("div", _objectSpread(_objectSpread({
|
|
50
|
-
className: classNames(props.className, cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.header)
|
|
52
|
+
className: classNames(props.className, cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.header, semClass === null || semClass === void 0 ? void 0 : semClass('header'))
|
|
51
53
|
}, commonHeaderProps), {}, {
|
|
52
54
|
children: [renderIndicator(), /*#__PURE__*/_jsx("div", {
|
|
53
55
|
className: headerContentClassName,
|
|
56
|
+
style: semStyle === null || semStyle === void 0 ? void 0 : semStyle('headerContent'),
|
|
54
57
|
children: props.children
|
|
55
58
|
}), props.extra && /*#__PURE__*/_jsx("div", {
|
|
56
|
-
className: cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.headerExtra,
|
|
59
|
+
className: classNames(cardClasses === null || cardClasses === void 0 ? void 0 : cardClasses.headerExtra, semClass === null || semClass === void 0 ? void 0 : semClass('headerExtra')),
|
|
60
|
+
style: semStyle === null || semStyle === void 0 ? void 0 : semStyle('headerExtra'),
|
|
57
61
|
children: props.extra
|
|
58
62
|
})]
|
|
59
63
|
}));
|