@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
@@ -10,14 +11,21 @@ var _paginationJumper = _interopRequireDefault(require("./pagination-jumper"));
|
|
|
10
11
|
var _paginationButtons = _interopRequireDefault(require("./pagination-buttons"));
|
|
11
12
|
var _paginationSimple = _interopRequireDefault(require("./pagination-simple"));
|
|
12
13
|
var _hooks = require("@sheinx/hooks");
|
|
14
|
+
var _config = require("../config");
|
|
15
|
+
var _common = require("../common");
|
|
13
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
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); }
|
|
16
18
|
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; }
|
|
17
19
|
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; }
|
|
18
20
|
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; }
|
|
19
21
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
20
22
|
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); }
|
|
23
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
24
|
+
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."); }
|
|
25
|
+
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); }
|
|
26
|
+
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; }
|
|
27
|
+
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; } }
|
|
28
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
29
|
var devUseWarning = _hooks.util.devUseWarning;
|
|
22
30
|
var Pagination = function Pagination(props) {
|
|
23
31
|
var _jssStyle$pagination;
|
|
@@ -47,7 +55,9 @@ var Pagination = function Pagination(props) {
|
|
|
47
55
|
pageSizeList = props.pageSizeList,
|
|
48
56
|
style = props.style,
|
|
49
57
|
select = props.select,
|
|
50
|
-
sizeListProps = props.sizeListProps
|
|
58
|
+
sizeListProps = props.sizeListProps,
|
|
59
|
+
classNamesProp = props.classNames,
|
|
60
|
+
stylesProp = props.styles;
|
|
51
61
|
|
|
52
62
|
// 兼容v1 & v2版本
|
|
53
63
|
if (props.sizeListProps) {
|
|
@@ -65,11 +75,18 @@ var Pagination = function Pagination(props) {
|
|
|
65
75
|
current = _usePagination.current,
|
|
66
76
|
pageSize = _usePagination.pageSize;
|
|
67
77
|
var paginationStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$pagination = jssStyle.pagination) === null || _jssStyle$pagination === void 0 ? void 0 : _jssStyle$pagination.call(jssStyle);
|
|
78
|
+
|
|
79
|
+
// Semantic DOM
|
|
80
|
+
var config = (0, _config.useConfig)();
|
|
81
|
+
var _useSemantic = (0, _common.useSemantic)(classNamesProp, stylesProp, config.pagination),
|
|
82
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
83
|
+
semClass = _useSemantic2[0],
|
|
84
|
+
semStyle = _useSemantic2[1];
|
|
68
85
|
if (total < 0) return null;
|
|
69
|
-
var rootClasses = (0, _classnames.default)(className, paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.rootClass, paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.pagination, align === 'left' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.left), align === 'center' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.center), align === 'right' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.right), size === 'small' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.small), size === 'large' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.large));
|
|
86
|
+
var rootClasses = (0, _classnames.default)(className, paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.rootClass, paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.pagination, align === 'left' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.left), align === 'center' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.center), align === 'right' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.right), size === 'small' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.small), size === 'large' && (paginationStyle === null || paginationStyle === void 0 ? void 0 : paginationStyle.large), semClass('root'));
|
|
70
87
|
var getRootProps = function getRootProps() {
|
|
71
88
|
return {
|
|
72
|
-
style: style
|
|
89
|
+
style: _objectSpread(_objectSpread({}, style), semStyle('root'))
|
|
73
90
|
};
|
|
74
91
|
};
|
|
75
92
|
if (simple || layout.includes('simple')) {
|
|
@@ -84,7 +101,9 @@ var Pagination = function Pagination(props) {
|
|
|
84
101
|
current: current || 0,
|
|
85
102
|
pageSize: pageSize,
|
|
86
103
|
disabled: disabled,
|
|
87
|
-
onChange: onChange
|
|
104
|
+
onChange: onChange,
|
|
105
|
+
semClass: semClass,
|
|
106
|
+
semStyle: semStyle
|
|
88
107
|
})
|
|
89
108
|
}));
|
|
90
109
|
}
|
|
@@ -103,7 +122,9 @@ var Pagination = function Pagination(props) {
|
|
|
103
122
|
current: current || 0,
|
|
104
123
|
disabled: disabled,
|
|
105
124
|
pageSize: pageSize,
|
|
106
|
-
onChange: onChange
|
|
125
|
+
onChange: onChange,
|
|
126
|
+
semClass: semClass,
|
|
127
|
+
semStyle: semStyle
|
|
107
128
|
}, i);
|
|
108
129
|
case 'jumper':
|
|
109
130
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_paginationJumper.default, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -111,7 +132,9 @@ var Pagination = function Pagination(props) {
|
|
|
111
132
|
total: total,
|
|
112
133
|
current: current,
|
|
113
134
|
pageSize: pageSize,
|
|
114
|
-
onChange: onChange
|
|
135
|
+
onChange: onChange,
|
|
136
|
+
semClass: semClass,
|
|
137
|
+
semStyle: semStyle
|
|
115
138
|
}), i);
|
|
116
139
|
case 'list':
|
|
117
140
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_paginationSizeList.default, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -123,7 +146,9 @@ var Pagination = function Pagination(props) {
|
|
|
123
146
|
pageSize: pageSize,
|
|
124
147
|
pageSizeList: pageSizeList,
|
|
125
148
|
onChange: onChange,
|
|
126
|
-
sizeListProps: sizeListProps
|
|
149
|
+
sizeListProps: sizeListProps,
|
|
150
|
+
semClass: semClass,
|
|
151
|
+
semStyle: semStyle
|
|
127
152
|
}), i);
|
|
128
153
|
case 'simple':
|
|
129
154
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_paginationSimple.default, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -133,7 +158,9 @@ var Pagination = function Pagination(props) {
|
|
|
133
158
|
total: total,
|
|
134
159
|
current: current || 0,
|
|
135
160
|
pageSize: pageSize,
|
|
136
|
-
onChange: onChange
|
|
161
|
+
onChange: onChange,
|
|
162
|
+
semClass: semClass,
|
|
163
|
+
semStyle: semStyle
|
|
137
164
|
}), i);
|
|
138
165
|
default:
|
|
139
166
|
if (typeof section === 'function') {
|
|
@@ -4,7 +4,20 @@ import { SelectClasses } from '../select/select.type';
|
|
|
4
4
|
import { InputClasses } from '../input/input.type';
|
|
5
5
|
import { CommonType } from '../common/type';
|
|
6
6
|
import { SelectProps as FullSelectProps } from '../select/select.type';
|
|
7
|
+
import type { SemanticClassNames, SemanticStyles } from '../common/use-semantic';
|
|
7
8
|
export type AlignType = 'left' | 'center' | 'right';
|
|
9
|
+
/**
|
|
10
|
+
* Pagination Semantic DOM key 列表
|
|
11
|
+
* - root: 最外层容器
|
|
12
|
+
* - item: 页码按钮(含 "..." more 按钮)
|
|
13
|
+
* - prev: 上一页按钮
|
|
14
|
+
* - next: 下一页按钮
|
|
15
|
+
* - jumper: 跳转输入区域
|
|
16
|
+
* - sizeList: 每页条数选择区域
|
|
17
|
+
*
|
|
18
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
19
|
+
*/
|
|
20
|
+
export type PaginationSemanticKey = 'root' | 'item' | 'prev' | 'next' | 'jumper' | 'sizeList';
|
|
8
21
|
export type LayoutType = ('links' | 'list' | 'jumper' | 'simple' | ((props: PaginationProps) => React.ReactNode))[];
|
|
9
22
|
export interface PaginationJssStyle {
|
|
10
23
|
input?: () => InputClasses;
|
|
@@ -38,6 +51,18 @@ export interface TextParams {
|
|
|
38
51
|
jumper?: string;
|
|
39
52
|
}
|
|
40
53
|
export interface PaginationProps extends Pick<CommonType, 'style' | 'className' | 'size'> {
|
|
54
|
+
/**
|
|
55
|
+
* @en Semantic DOM classNames for internal nodes.
|
|
56
|
+
* @cn 语义化 DOM 类名,用于定制内部节点样式。
|
|
57
|
+
* @version 3.10.0
|
|
58
|
+
*/
|
|
59
|
+
classNames?: SemanticClassNames<PaginationSemanticKey>;
|
|
60
|
+
/**
|
|
61
|
+
* @en Semantic DOM styles for internal nodes.
|
|
62
|
+
* @cn 语义化 DOM 行内样式,用于定制内部节点样式。
|
|
63
|
+
* @version 3.10.0
|
|
64
|
+
*/
|
|
65
|
+
styles?: SemanticStyles<PaginationSemanticKey>;
|
|
41
66
|
/**
|
|
42
67
|
* @en Align of pagination
|
|
43
68
|
* @cn 排布方式
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.type.d.ts","sourceRoot":"","sources":["pagination.type.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"pagination.type.d.ts","sourceRoot":"","sources":["pagination.type.ts"],"names":[],"mappings":"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"}
|
package/cjs/popover/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default, default as Popover } from './popover';
|
|
2
2
|
export { default as PopoverConfirm } from './confirm';
|
|
3
|
-
export type { PopoverProps, PopoverClasses } from './popover.type';
|
|
3
|
+
export type { PopoverProps, PopoverClasses, PopoverSemanticKey, PopoverClassNamesInfo } from './popover.type';
|
|
4
4
|
export type { PopoverConfirmProps } from './confirm.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,OAAO,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AACtD,YAAY,EAAE,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,WAAW,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AACtD,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC9G,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["popover.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAA8D,MAAM,gBAAgB,CAAC;AAO1G,QAAA,MAAM,OAAO,UAAW,YAAY,mDA2PnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/cjs/popover/popover.js
CHANGED
|
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _hooks = require("@sheinx/hooks");
|
|
9
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
10
|
var _absoluteList = _interopRequireDefault(require("../absolute-list"));
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _config = require("../config");
|
|
12
13
|
var _arrow = require("../common/arrow");
|
|
13
|
-
var
|
|
14
|
+
var _useSemantic3 = require("../common/use-semantic");
|
|
14
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -98,6 +99,22 @@ var Popover = function Popover(props) {
|
|
|
98
99
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
99
100
|
contentStyle = _React$useState4[0],
|
|
100
101
|
setContentStyle = _React$useState4[1];
|
|
102
|
+
|
|
103
|
+
// Semantic DOM 访问器:合并用户 classNames / styles、setConfig 全局兜底与内部 JSS class
|
|
104
|
+
// 优先级(高→低):props > setConfig({ popover: { ... } }) > 内部默认
|
|
105
|
+
// 见 /docs/rfc/0001-semantic-dom.md §4.4
|
|
106
|
+
//
|
|
107
|
+
// 第 4 个参数 info 是当前渲染帧的状态快照,函数式 classNames 会自动接收它。
|
|
108
|
+
// 例:classNames={{ root: ({ open }) => open ? 'is-open' : '' }}
|
|
109
|
+
var semInfo = {
|
|
110
|
+
open: open,
|
|
111
|
+
position: props.adjust ? positionState : position,
|
|
112
|
+
type: type
|
|
113
|
+
};
|
|
114
|
+
var _useSemantic = (0, _useSemantic3.useSemantic)(props.classNames, props.styles, config.popover, semInfo),
|
|
115
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
116
|
+
semClass = _useSemantic2[0],
|
|
117
|
+
semStyle = _useSemantic2[1];
|
|
101
118
|
var events = getTargetProps();
|
|
102
119
|
|
|
103
120
|
// 计算 pointAtCenter 的偏移量,使箭头指向触发元素的中心,并与用户传入的 offset 合并
|
|
@@ -207,6 +224,7 @@ var Popover = function Popover(props) {
|
|
|
207
224
|
display: open ? undefined : 'none',
|
|
208
225
|
borderColor: props.border,
|
|
209
226
|
backgroundColor: props.background,
|
|
227
|
+
'--popover-border-color': props.border,
|
|
210
228
|
'--popover-background-color': props.background
|
|
211
229
|
};
|
|
212
230
|
if (popupGap) {
|
|
@@ -233,8 +251,8 @@ var Popover = function Popover(props) {
|
|
|
233
251
|
updateKey: updateKey,
|
|
234
252
|
setSizingStyle: props.boundary ? setContentStyle : undefined,
|
|
235
253
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread(_objectSpread({
|
|
236
|
-
className: (0, _classnames.default)(className, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.rootClass, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapper, open && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapperOpen), !showArrow && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.hideArrow), animation === false && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapperNoAnimation)),
|
|
237
|
-
style: containerStyle
|
|
254
|
+
className: (0, _classnames.default)(className, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.rootClass, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapper, open && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapperOpen), !showArrow && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.hideArrow), animation === false && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapperNoAnimation), semClass('root')),
|
|
255
|
+
style: _objectSpread(_objectSpread({}, containerStyle), semStyle('root'))
|
|
238
256
|
}, _hooks.util.getDataAttribute({
|
|
239
257
|
position: props.adjust ? positionState : position,
|
|
240
258
|
type: type
|
|
@@ -244,12 +262,13 @@ var Popover = function Popover(props) {
|
|
|
244
262
|
onMouseEnter: events.onMouseEnter,
|
|
245
263
|
dir: config.direction,
|
|
246
264
|
children: [showArrow && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
247
|
-
className: (0, _classnames.default)(popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.arrow, props.arrowClass),
|
|
265
|
+
className: (0, _classnames.default)(popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.arrow, props.arrowClass, semClass('arrow')),
|
|
266
|
+
style: semStyle('arrow'),
|
|
248
267
|
dir: config.direction
|
|
249
268
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
250
|
-
|
|
269
|
+
className: (0, _classnames.default)(popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.content, (typeof childrened === 'string' || props.useTextStyle) && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.text), semClass('content')),
|
|
270
|
+
style: _objectSpread(_objectSpread(_objectSpread({}, contentStyle), style), semStyle('content')),
|
|
251
271
|
onClick: emptyEvent,
|
|
252
|
-
className: (0, _classnames.default)(popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.content, (typeof childrened === 'string' || props.useTextStyle) && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.text)),
|
|
253
272
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Provider, {
|
|
254
273
|
value: providerValue,
|
|
255
274
|
children: childrened
|
|
@@ -3,6 +3,49 @@ import { CommonType } from '../common/type';
|
|
|
3
3
|
import { BasePopupProps } from '@sheinx/hooks';
|
|
4
4
|
import { AlertClasses } from '../alert/alert.type';
|
|
5
5
|
import { ButtonClasses } from '../button/button.type';
|
|
6
|
+
import type { SemanticClassNames, SemanticStyles } from '../common/use-semantic';
|
|
7
|
+
/**
|
|
8
|
+
* Popover Semantic DOM key 列表
|
|
9
|
+
* - root: 最外层弹层容器(与 className 等价)
|
|
10
|
+
* - arrow: 箭头
|
|
11
|
+
* - content: 弹层内容区
|
|
12
|
+
*
|
|
13
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
14
|
+
*/
|
|
15
|
+
export type PopoverSemanticKey = 'root' | 'arrow' | 'content';
|
|
16
|
+
/**
|
|
17
|
+
* 传入函数式 `classNames` 时的状态快照。
|
|
18
|
+
* 每次渲染时由组件内部自动注入,用户无需手动传。
|
|
19
|
+
*
|
|
20
|
+
* @version 3.10.0
|
|
21
|
+
*
|
|
22
|
+
* 用法示例:
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Popover
|
|
25
|
+
* classNames={{
|
|
26
|
+
* root: ({ open }) => open ? 'my-pop my-pop--open' : 'my-pop',
|
|
27
|
+
* content: ({ type }) => type === 'danger' ? 'my-content--danger' : undefined,
|
|
28
|
+
* }}
|
|
29
|
+
* />
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export interface PopoverClassNamesInfo {
|
|
33
|
+
/**
|
|
34
|
+
* @cn 当前弹层是否可见
|
|
35
|
+
* @en Whether the popup is currently visible
|
|
36
|
+
*/
|
|
37
|
+
open: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @cn 当前实际弹出位置(启用 adjust 时为调整后的位置)
|
|
40
|
+
* @en Actual popup position (adjusted position when `adjust` is enabled)
|
|
41
|
+
*/
|
|
42
|
+
position: PopoverPosition;
|
|
43
|
+
/**
|
|
44
|
+
* @cn 弹层语义类型
|
|
45
|
+
* @en Semantic type of the popup
|
|
46
|
+
*/
|
|
47
|
+
type?: 'info' | 'success' | 'warning' | 'danger' | 'error';
|
|
48
|
+
}
|
|
6
49
|
export interface PopoverClasses {
|
|
7
50
|
rootClass: string;
|
|
8
51
|
/**
|
|
@@ -159,8 +202,31 @@ export interface PopoverProps extends Pick<CommonType, 'className' | 'style'> {
|
|
|
159
202
|
/**
|
|
160
203
|
* @en The class name of the arrow
|
|
161
204
|
* @cn 箭头的 class 名称
|
|
205
|
+
* @deprecated 推荐使用 `classNames.arrow`
|
|
162
206
|
*/
|
|
163
207
|
arrowClass?: string;
|
|
208
|
+
/**
|
|
209
|
+
* @en Semantic DOM classNames. Allows custom class on internal DOM nodes (root / arrow / content).
|
|
210
|
+
* Value can be a static string, or a function that receives the current state snapshot
|
|
211
|
+
* (`open`, `position`, `type`) and returns a string dynamically.
|
|
212
|
+
* @cn Semantic DOM 类名定制。允许对组件内部 DOM 节点(root / arrow / content)追加自定义 class。
|
|
213
|
+
* 值可以是静态字符串,也可以是接收当前状态快照(`open`/`position`/`type`)并动态返回字符串的函数。
|
|
214
|
+
* @version 3.10.0
|
|
215
|
+
*/
|
|
216
|
+
classNames?: SemanticClassNames<PopoverSemanticKey, PopoverClassNamesInfo>;
|
|
217
|
+
/**
|
|
218
|
+
* @en Semantic DOM styles. Allows inline style on internal DOM nodes (root / arrow / content).
|
|
219
|
+
* **Note for `arrow`**: The triangle shape is drawn by the `::before` pseudo-element using
|
|
220
|
+
* `clip-path`. Setting `styles.arrow.backgroundColor` on the wrapper div will cover the
|
|
221
|
+
* transparent cutout and break the shape. To change the arrow color, use the `background`
|
|
222
|
+
* prop instead — it writes `--popover-background-color` which is consumed by `::before`.
|
|
223
|
+
* @cn Semantic DOM 样式定制。允许对组件内部 DOM 节点(root / arrow / content)追加内联 style。
|
|
224
|
+
* **`arrow` 注意事项**:三角形由 `::before` 伪元素通过 `clip-path` 绘制。
|
|
225
|
+
* 若对 `styles.arrow` 设置 `backgroundColor`,会在伪元素下方铺实心矩形并遮住透明区域,导致箭头形状失效。
|
|
226
|
+
* 修改箭头颜色请使用 `background` prop,它会写入 `--popover-background-color` CSS 变量并被 `::before` 读取。
|
|
227
|
+
* @version 3.10.0
|
|
228
|
+
*/
|
|
229
|
+
styles?: SemanticStyles<PopoverSemanticKey>;
|
|
164
230
|
/**
|
|
165
231
|
* @private 属性
|
|
166
232
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.type.d.ts","sourceRoot":"","sources":["popover.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.type.d.ts","sourceRoot":"","sources":["popover.type.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["circle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["circle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAA+C,MAAM,iBAAiB,CAAC;AAQ7F,QAAA,MAAM,MAAM,UAAW,aAAa,4CAqInC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/cjs/progress/circle.js
CHANGED
|
@@ -9,14 +9,22 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
9
9
|
var _icons = _interopRequireDefault(require("../icons"));
|
|
10
10
|
var _analyzeColor = _interopRequireDefault(require("./analyzeColor"));
|
|
11
11
|
var _hooks = require("@sheinx/hooks");
|
|
12
|
+
var _common = require("../common");
|
|
13
|
+
var _config = require("../config");
|
|
12
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
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); }
|
|
14
17
|
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; }
|
|
15
18
|
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; }
|
|
16
19
|
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; }
|
|
17
20
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
18
21
|
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); }
|
|
19
|
-
function
|
|
22
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
23
|
+
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."); }
|
|
24
|
+
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); }
|
|
25
|
+
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; }
|
|
26
|
+
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; } }
|
|
27
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
28
|
var Circle = function Circle(props) {
|
|
21
29
|
var _props$jssStyle;
|
|
22
30
|
var _props$value = props.value,
|
|
@@ -33,12 +41,30 @@ var Circle = function Circle(props) {
|
|
|
33
41
|
iconSize = props.iconSize,
|
|
34
42
|
success = props.success,
|
|
35
43
|
_props$animation = props.animation,
|
|
36
|
-
animation = _props$animation === void 0 ? true : _props$animation
|
|
44
|
+
animation = _props$animation === void 0 ? true : _props$animation,
|
|
45
|
+
_props$shape = props.shape,
|
|
46
|
+
shape = _props$shape === void 0 ? 'circle' : _props$shape;
|
|
47
|
+
var config = (0, _config.useConfig)();
|
|
37
48
|
var progressClasses = (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 ? void 0 : _props$jssStyle.progress();
|
|
38
|
-
|
|
49
|
+
|
|
50
|
+
// Semantic DOM
|
|
51
|
+
var globalSemanticConfig = config.progress ? {
|
|
52
|
+
classNames: config.progress.classNames,
|
|
53
|
+
styles: config.progress.styles
|
|
54
|
+
} : undefined;
|
|
55
|
+
var semInfo = {
|
|
56
|
+
value: value,
|
|
57
|
+
type: type,
|
|
58
|
+
shape: shape
|
|
59
|
+
};
|
|
60
|
+
var _useSemantic = (0, _common.useSemantic)(props.classNames, props.styles, globalSemanticConfig, semInfo),
|
|
61
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
62
|
+
semClass = _useSemantic2[0],
|
|
63
|
+
semStyle = _useSemantic2[1];
|
|
64
|
+
var iconStyle = _objectSpread({
|
|
39
65
|
width: iconSize,
|
|
40
66
|
height: iconSize
|
|
41
|
-
};
|
|
67
|
+
}, semStyle('icon'));
|
|
42
68
|
var cx = size / 2;
|
|
43
69
|
var cy = size / 2;
|
|
44
70
|
var r = size / 2 - strokeWidth / 2;
|
|
@@ -48,7 +74,7 @@ var Circle = function Circle(props) {
|
|
|
48
74
|
var style = Object.assign({
|
|
49
75
|
width: size,
|
|
50
76
|
height: size
|
|
51
|
-
}, props.style);
|
|
77
|
+
}, props.style, semStyle('root'));
|
|
52
78
|
var width = value === 0 && strokeLinecap === 'round' ? 0 : strokeWidth;
|
|
53
79
|
var objColor = color && _typeof(color) === 'object';
|
|
54
80
|
|
|
@@ -56,7 +82,11 @@ var Circle = function Circle(props) {
|
|
|
56
82
|
var successDasharray = success ? [p * (success.value / 100), p * (1 - success.value / 100)] : null;
|
|
57
83
|
var successWidth = success && success.value === 0 && strokeLinecap === 'round' ? 0 : strokeWidth;
|
|
58
84
|
var objSuccessColor = (success === null || success === void 0 ? void 0 : success.color) && _typeof(success.color) === 'object';
|
|
59
|
-
var mc = (0, _classnames.default)(props.className, progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.rootClass, progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.circle, progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapper, type === 'success' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperSuccess), type === 'info' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperInfo), type === 'warning' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperWarning), type === 'danger' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperDanger), animation === false && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.noAnimation));
|
|
85
|
+
var mc = (0, _classnames.default)(props.className, progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.rootClass, progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.circle, progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapper, type === 'success' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperSuccess), type === 'info' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperInfo), type === 'warning' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperWarning), type === 'danger' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperDanger), animation === false && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.noAnimation), semClass('root'));
|
|
86
|
+
|
|
87
|
+
// Semantic styles for track and indicator SVG circles
|
|
88
|
+
var trackSemStyle = semStyle('track');
|
|
89
|
+
var indicatorSemStyle = semStyle('indicator');
|
|
60
90
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({}, _hooks.util.extractProps(props, 'mouse')), {}, {
|
|
61
91
|
className: mc,
|
|
62
92
|
style: style,
|
|
@@ -91,24 +121,24 @@ var Circle = function Circle(props) {
|
|
|
91
121
|
})
|
|
92
122
|
})
|
|
93
123
|
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
94
|
-
className: progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.circleBg,
|
|
124
|
+
className: (0, _classnames.default)(progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.circleBg, semClass('track')),
|
|
95
125
|
cx: cx,
|
|
96
126
|
cy: cy,
|
|
97
127
|
r: r,
|
|
98
128
|
strokeWidth: strokeWidth,
|
|
99
129
|
fill: "transparent",
|
|
100
|
-
style: {
|
|
130
|
+
style: _objectSpread({
|
|
101
131
|
stroke: props.background
|
|
102
|
-
}
|
|
132
|
+
}, trackSemStyle)
|
|
103
133
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
104
|
-
className: progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.circleFront,
|
|
134
|
+
className: (0, _classnames.default)(progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.circleFront, semClass('indicator')),
|
|
105
135
|
cx: cx,
|
|
106
136
|
cy: cy,
|
|
107
137
|
r: r,
|
|
108
138
|
fill: "transparent",
|
|
109
|
-
style: {
|
|
139
|
+
style: _objectSpread({
|
|
110
140
|
stroke: objColor ? "url('#progress-linear')" : color
|
|
111
|
-
},
|
|
141
|
+
}, indicatorSemStyle),
|
|
112
142
|
strokeDasharray: dasharray,
|
|
113
143
|
strokeLinecap: strokeLinecap,
|
|
114
144
|
strokeWidth: width
|
|
@@ -126,10 +156,11 @@ var Circle = function Circle(props) {
|
|
|
126
156
|
strokeWidth: successWidth
|
|
127
157
|
})]
|
|
128
158
|
}), !showIcon && props.children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
129
|
-
className: progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.content,
|
|
159
|
+
className: (0, _classnames.default)(progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.content, semClass('content')),
|
|
160
|
+
style: semStyle('content'),
|
|
130
161
|
children: props.children
|
|
131
162
|
}), showIcon && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
132
|
-
className: progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.icon,
|
|
163
|
+
className: (0, _classnames.default)(progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.icon, semClass('icon')),
|
|
133
164
|
style: iconStyle,
|
|
134
165
|
children: [type === 'info' && _icons.default.progress.InfoCircle, type === 'warning' && _icons.default.progress.WarningCircle, type === 'success' && _icons.default.progress.SuccessCircle, type === 'danger' && _icons.default.progress.DangerCircle]
|
|
135
166
|
})]
|
package/cjs/progress/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default, default as Progress } from './progress';
|
|
2
|
-
export type { ProgressProps, ProgressClasses } from './progress.type';
|
|
2
|
+
export type { ProgressProps, ProgressClasses, ProgressSemanticKey, ProgressClassNamesInfo } from './progress.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,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["line.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["line.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAA+C,MAAM,iBAAiB,CAAC;AAS7F,QAAA,MAAM,IAAI,UAAW,aAAa,4CA2HjC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|