@sheinx/base 3.10.0-beta.2 → 3.10.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/alert/alert.d.ts.map +1 -1
- package/cjs/alert/alert.js +31 -12
- package/cjs/alert/alert.type.d.ts +38 -0
- package/cjs/alert/alert.type.d.ts.map +1 -1
- package/cjs/alert/index.d.ts +1 -1
- package/cjs/alert/index.d.ts.map +1 -1
- package/cjs/avatar/avatar.d.ts.map +1 -1
- package/cjs/avatar/avatar.js +27 -3
- package/cjs/avatar/avatar.type.d.ts +27 -0
- package/cjs/avatar/avatar.type.d.ts.map +1 -1
- package/cjs/avatar/context.d.ts +6 -1
- package/cjs/avatar/context.d.ts.map +1 -1
- package/cjs/avatar/context.js +1 -0
- package/cjs/avatar/group.d.ts.map +1 -1
- package/cjs/avatar/group.js +44 -12
- package/cjs/avatar/index.d.ts +1 -1
- package/cjs/avatar/index.d.ts.map +1 -1
- package/cjs/badge/badge.d.ts.map +1 -1
- package/cjs/badge/badge.js +28 -7
- package/cjs/badge/badge.type.d.ts +21 -0
- package/cjs/badge/badge.type.d.ts.map +1 -1
- package/cjs/badge/index.d.ts +1 -1
- package/cjs/badge/index.d.ts.map +1 -1
- package/cjs/border-beam/border-beam-effect.d.ts +11 -0
- package/cjs/border-beam/border-beam-effect.d.ts.map +1 -0
- package/cjs/border-beam/border-beam-effect.js +25 -0
- package/cjs/border-beam/border-beam.d.ts +4 -0
- package/cjs/border-beam/border-beam.d.ts.map +1 -0
- package/cjs/border-beam/border-beam.js +59 -0
- package/cjs/border-beam/border-beam.type.d.ts +56 -0
- package/cjs/border-beam/border-beam.type.d.ts.map +1 -0
- package/cjs/border-beam/border-beam.type.js +5 -0
- package/cjs/border-beam/index.d.ts +3 -0
- package/cjs/border-beam/index.d.ts.map +1 -0
- package/cjs/border-beam/index.js +20 -0
- package/cjs/border-beam/use-border-size.d.ts +8 -0
- package/cjs/border-beam/use-border-size.d.ts.map +1 -0
- package/cjs/border-beam/use-border-size.js +46 -0
- package/cjs/border-beam/use-child-dom.d.ts +9 -0
- package/cjs/border-beam/use-child-dom.d.ts.map +1 -0
- package/cjs/border-beam/use-child-dom.js +108 -0
- package/cjs/border-beam/util.d.ts +16 -0
- package/cjs/border-beam/util.d.ts.map +1 -0
- package/cjs/border-beam/util.js +57 -0
- package/cjs/breadcrumb/breadcrumb-item.d.ts +5 -2
- package/cjs/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/cjs/breadcrumb/breadcrumb-item.js +8 -2
- package/cjs/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/cjs/breadcrumb/breadcrumb.js +50 -13
- package/cjs/breadcrumb/breadcrumb.type.d.ts +25 -0
- package/cjs/breadcrumb/breadcrumb.type.d.ts.map +1 -1
- package/cjs/breadcrumb/index.d.ts +1 -1
- package/cjs/breadcrumb/index.d.ts.map +1 -1
- package/cjs/breadcrumb/list.d.ts +4 -1
- package/cjs/breadcrumb/list.d.ts.map +1 -1
- package/cjs/breadcrumb/list.js +7 -4
- package/cjs/button/button.d.ts.map +1 -1
- package/cjs/button/button.js +27 -4
- package/cjs/button/button.type.d.ts +40 -0
- package/cjs/button/button.type.d.ts.map +1 -1
- package/cjs/button/index.d.ts +1 -1
- package/cjs/button/index.d.ts.map +1 -1
- package/cjs/card/card-body.js +11 -3
- package/cjs/card/card-footer.d.ts +2 -2
- package/cjs/card/card-footer.d.ts.map +1 -1
- package/cjs/card/card-footer.js +13 -5
- package/cjs/card/card-header.d.ts.map +1 -1
- package/cjs/card/card-header.js +10 -6
- package/cjs/card/card.context.d.ts +4 -0
- package/cjs/card/card.context.d.ts.map +1 -1
- package/cjs/card/card.d.ts.map +1 -1
- package/cjs/card/card.js +22 -11
- package/cjs/card/card.type.d.ts +25 -0
- package/cjs/card/card.type.d.ts.map +1 -1
- package/cjs/card/index.d.ts +1 -1
- package/cjs/card/index.d.ts.map +1 -1
- package/cjs/carousel/carousel.d.ts.map +1 -1
- package/cjs/carousel/carousel.js +44 -12
- package/cjs/carousel/carousel.type.d.ts +37 -0
- package/cjs/carousel/carousel.type.d.ts.map +1 -1
- package/cjs/carousel/index.d.ts +1 -1
- package/cjs/carousel/index.d.ts.map +1 -1
- package/cjs/cascader/cascader.d.ts.map +1 -1
- package/cjs/cascader/cascader.js +26 -12
- package/cjs/cascader/cascader.type.d.ts +14 -0
- package/cjs/cascader/cascader.type.d.ts.map +1 -1
- package/cjs/cascader/filter-list.d.ts.map +1 -1
- package/cjs/cascader/filter-list.js +11 -4
- package/cjs/cascader/filter-list.type.d.ts +4 -1
- package/cjs/cascader/filter-list.type.d.ts.map +1 -1
- package/cjs/cascader/filter-node.d.ts.map +1 -1
- package/cjs/cascader/filter-node.js +5 -2
- package/cjs/cascader/filter-node.type.d.ts +4 -1
- package/cjs/cascader/filter-node.type.d.ts.map +1 -1
- package/cjs/cascader/index.d.ts +1 -1
- package/cjs/cascader/index.d.ts.map +1 -1
- package/cjs/cascader/list.d.ts.map +1 -1
- package/cjs/cascader/list.js +8 -3
- package/cjs/cascader/list.type.d.ts +4 -1
- package/cjs/cascader/list.type.d.ts.map +1 -1
- package/cjs/cascader/node.d.ts.map +1 -1
- package/cjs/cascader/node.js +6 -3
- package/cjs/cascader/node.type.d.ts +4 -1
- package/cjs/cascader/node.type.d.ts.map +1 -1
- package/cjs/checkbox/checkbox-group.d.ts.map +1 -1
- package/cjs/checkbox/checkbox-group.js +24 -4
- package/cjs/checkbox/checkbox-group.type.d.ts +14 -1
- package/cjs/checkbox/checkbox-group.type.d.ts.map +1 -1
- package/cjs/checkbox/checkbox.type.d.ts +14 -0
- package/cjs/checkbox/checkbox.type.d.ts.map +1 -1
- package/cjs/checkbox/index.d.ts +1 -1
- package/cjs/checkbox/index.d.ts.map +1 -1
- package/cjs/checkbox/simple-checkbox.d.ts.map +1 -1
- package/cjs/checkbox/simple-checkbox.js +22 -5
- package/cjs/collapse/collapse-item.d.ts.map +1 -1
- package/cjs/collapse/collapse-item.js +13 -11
- package/cjs/collapse/collapse.d.ts.map +1 -1
- package/cjs/collapse/collapse.js +30 -7
- package/cjs/collapse/collapse.type.d.ts +25 -0
- package/cjs/collapse/collapse.type.d.ts.map +1 -1
- package/cjs/collapse/index.d.ts +1 -1
- package/cjs/collapse/index.d.ts.map +1 -1
- package/cjs/common/index.d.ts +2 -0
- package/cjs/common/index.d.ts.map +1 -1
- package/cjs/common/index.js +8 -1
- package/cjs/common/use-semantic.d.ts +128 -0
- package/cjs/common/use-semantic.d.ts.map +1 -0
- package/cjs/common/use-semantic.js +130 -0
- package/cjs/config/index.d.ts +955 -0
- package/cjs/config/index.d.ts.map +1 -1
- package/cjs/config/index.js +43 -1
- package/cjs/date-picker/date-picker.d.ts.map +1 -1
- package/cjs/date-picker/date-picker.js +28 -10
- package/cjs/date-picker/date-picker.type.d.ts +14 -0
- package/cjs/date-picker/date-picker.type.d.ts.map +1 -1
- package/cjs/date-picker/day.d.ts.map +1 -1
- package/cjs/date-picker/day.js +9 -6
- package/cjs/date-picker/index.d.ts +1 -1
- package/cjs/date-picker/index.d.ts.map +1 -1
- package/cjs/date-picker/month.d.ts.map +1 -1
- package/cjs/date-picker/month.js +12 -6
- package/cjs/date-picker/picker.d.ts.map +1 -1
- package/cjs/date-picker/picker.js +9 -3
- package/cjs/date-picker/picker.type.d.ts +5 -2
- package/cjs/date-picker/picker.type.d.ts.map +1 -1
- package/cjs/date-picker/quarter.d.ts.map +1 -1
- package/cjs/date-picker/quarter.js +12 -6
- package/cjs/date-picker/time.js +10 -4
- package/cjs/date-picker/year.d.ts.map +1 -1
- package/cjs/date-picker/year.js +12 -6
- package/cjs/descriptions/descriptions.d.ts.map +1 -1
- package/cjs/descriptions/descriptions.js +38 -16
- package/cjs/descriptions/descriptions.type.d.ts +26 -0
- package/cjs/descriptions/descriptions.type.d.ts.map +1 -1
- package/cjs/descriptions/index.d.ts +1 -1
- package/cjs/descriptions/index.d.ts.map +1 -1
- package/cjs/divider/divider.d.ts.map +1 -1
- package/cjs/divider/divider.js +33 -4
- package/cjs/divider/divider.type.d.ts +21 -0
- package/cjs/divider/divider.type.d.ts.map +1 -1
- package/cjs/divider/index.d.ts +1 -1
- package/cjs/divider/index.d.ts.map +1 -1
- package/cjs/dropdown/Item.d.ts.map +1 -1
- package/cjs/dropdown/Item.js +2 -0
- package/cjs/dropdown/dropdown.type.d.ts +45 -0
- package/cjs/dropdown/dropdown.type.d.ts.map +1 -1
- package/cjs/dropdown/dropdownIn.d.ts.map +1 -1
- package/cjs/dropdown/dropdownIn.js +41 -13
- package/cjs/dropdown/index.d.ts +1 -1
- package/cjs/dropdown/index.d.ts.map +1 -1
- package/cjs/empty/empty.d.ts.map +1 -1
- package/cjs/empty/empty.js +32 -11
- package/cjs/empty/empty.type.d.ts +22 -0
- package/cjs/empty/empty.type.d.ts.map +1 -1
- package/cjs/empty/index.d.ts +1 -1
- package/cjs/empty/index.d.ts.map +1 -1
- package/cjs/form/form-item.d.ts.map +1 -1
- package/cjs/form/form-item.js +42 -9
- package/cjs/form/form-item.type.d.ts +14 -0
- package/cjs/form/form-item.type.d.ts.map +1 -1
- package/cjs/form/form-semantic-context.d.ts +9 -0
- package/cjs/form/form-semantic-context.d.ts.map +1 -0
- package/cjs/form/form-semantic-context.js +10 -0
- package/cjs/form/form.d.ts.map +1 -1
- package/cjs/form/form.js +30 -6
- package/cjs/form/form.type.d.ts +14 -0
- package/cjs/form/form.type.d.ts.map +1 -1
- package/cjs/form/index.d.ts +2 -2
- package/cjs/form/index.d.ts.map +1 -1
- package/cjs/gap/gap.d.ts.map +1 -1
- package/cjs/gap/gap.js +29 -6
- package/cjs/gap/gap.type.d.ts +21 -0
- package/cjs/gap/gap.type.d.ts.map +1 -1
- package/cjs/gap/index.d.ts +1 -1
- package/cjs/gap/index.d.ts.map +1 -1
- package/cjs/grid/grid.d.ts.map +1 -1
- package/cjs/grid/grid.js +24 -3
- package/cjs/grid/grid.type.d.ts +20 -0
- package/cjs/grid/grid.type.d.ts.map +1 -1
- package/cjs/grid/index.d.ts +1 -1
- package/cjs/grid/index.d.ts.map +1 -1
- package/cjs/icons/icons.d.ts.map +1 -1
- package/cjs/icons/icons.js +10 -4
- package/cjs/image/image.d.ts.map +1 -1
- package/cjs/image/image.js +37 -13
- package/cjs/image/image.type.d.ts +23 -0
- package/cjs/image/image.type.d.ts.map +1 -1
- package/cjs/image/index.d.ts +1 -1
- package/cjs/image/index.d.ts.map +1 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +12 -0
- package/cjs/input/index.d.ts +1 -1
- package/cjs/input/index.d.ts.map +1 -1
- package/cjs/input/input.type.d.ts +16 -0
- package/cjs/input/input.type.d.ts.map +1 -1
- package/cjs/input/simple-input.d.ts.map +1 -1
- package/cjs/input/simple-input.js +5 -2
- package/cjs/input/use-input-common.d.ts +4 -2
- package/cjs/input/use-input-common.d.ts.map +1 -1
- package/cjs/input/use-input-common.js +16 -6
- package/cjs/link/index.d.ts +1 -1
- package/cjs/link/index.d.ts.map +1 -1
- package/cjs/link/link.d.ts.map +1 -1
- package/cjs/link/link.js +33 -4
- package/cjs/link/link.type.d.ts +35 -0
- package/cjs/link/link.type.d.ts.map +1 -1
- package/cjs/list/index.d.ts +1 -1
- package/cjs/list/index.d.ts.map +1 -1
- package/cjs/list/list.d.ts.map +1 -1
- package/cjs/list/list.js +24 -6
- package/cjs/list/list.type.d.ts +22 -0
- package/cjs/list/list.type.d.ts.map +1 -1
- package/cjs/menu/index.d.ts +1 -1
- package/cjs/menu/index.d.ts.map +1 -1
- package/cjs/menu/item.d.ts.map +1 -1
- package/cjs/menu/item.js +41 -13
- package/cjs/menu/menu.d.ts.map +1 -1
- package/cjs/menu/menu.js +31 -6
- package/cjs/menu/menu.type.d.ts +93 -0
- package/cjs/menu/menu.type.d.ts.map +1 -1
- package/cjs/message/func.d.ts.map +1 -1
- package/cjs/message/func.js +6 -2
- package/cjs/message/func.type.d.ts +16 -1
- package/cjs/message/func.type.d.ts.map +1 -1
- package/cjs/message/index.d.ts +1 -1
- package/cjs/message/index.d.ts.map +1 -1
- package/cjs/message/manager.d.ts +3 -0
- package/cjs/message/manager.d.ts.map +1 -1
- package/cjs/message/manager.js +6 -4
- package/cjs/message/message.d.ts.map +1 -1
- package/cjs/message/message.js +30 -8
- package/cjs/message/message.type.d.ts +24 -0
- package/cjs/message/message.type.d.ts.map +1 -1
- package/cjs/modal/index.d.ts +1 -1
- package/cjs/modal/index.d.ts.map +1 -1
- package/cjs/modal/modal-content.d.ts.map +1 -1
- package/cjs/modal/modal-content.js +28 -15
- package/cjs/modal/modal.type.d.ts +38 -0
- package/cjs/modal/modal.type.d.ts.map +1 -1
- package/cjs/pagination/index.d.ts +1 -1
- package/cjs/pagination/index.d.ts.map +1 -1
- package/cjs/pagination/pagination-buttons.d.ts.map +1 -1
- package/cjs/pagination/pagination-buttons.js +12 -4
- package/cjs/pagination/pagination-buttons.type.d.ts +5 -2
- package/cjs/pagination/pagination-buttons.type.d.ts.map +1 -1
- package/cjs/pagination/pagination-jumper.js +6 -2
- package/cjs/pagination/pagination-jumper.type.d.ts +4 -1
- package/cjs/pagination/pagination-jumper.type.d.ts.map +1 -1
- package/cjs/pagination/pagination-next.js +11 -3
- package/cjs/pagination/pagination-prev.d.ts.map +1 -1
- package/cjs/pagination/pagination-prev.js +5 -2
- package/cjs/pagination/pagination-simple.d.ts.map +1 -1
- package/cjs/pagination/pagination-simple.js +12 -4
- package/cjs/pagination/pagination-simple.type.d.ts +4 -1
- package/cjs/pagination/pagination-simple.type.d.ts.map +1 -1
- package/cjs/pagination/pagination-size-list.d.ts.map +1 -1
- package/cjs/pagination/pagination-size-list.js +5 -2
- package/cjs/pagination/pagination-size-list.type.d.ts +4 -1
- package/cjs/pagination/pagination-size-list.type.d.ts.map +1 -1
- package/cjs/pagination/pagination.d.ts.map +1 -1
- package/cjs/pagination/pagination.js +36 -9
- package/cjs/pagination/pagination.type.d.ts +25 -0
- package/cjs/pagination/pagination.type.d.ts.map +1 -1
- package/cjs/popover/index.d.ts +1 -1
- package/cjs/popover/index.d.ts.map +1 -1
- package/cjs/popover/popover.d.ts.map +1 -1
- package/cjs/popover/popover.js +25 -6
- package/cjs/popover/popover.type.d.ts +66 -0
- package/cjs/popover/popover.type.d.ts.map +1 -1
- package/cjs/progress/circle.d.ts.map +1 -1
- package/cjs/progress/circle.js +45 -14
- package/cjs/progress/index.d.ts +1 -1
- package/cjs/progress/index.d.ts.map +1 -1
- package/cjs/progress/line.d.ts.map +1 -1
- package/cjs/progress/line.js +40 -12
- package/cjs/progress/progress.type.d.ts +48 -0
- package/cjs/progress/progress.type.d.ts.map +1 -1
- package/cjs/radio/index.d.ts +1 -1
- package/cjs/radio/index.d.ts.map +1 -1
- package/cjs/radio/radio-group.d.ts.map +1 -1
- package/cjs/radio/radio-group.js +20 -5
- package/cjs/radio/radio-group.type.d.ts +14 -1
- package/cjs/radio/radio-group.type.d.ts.map +1 -1
- package/cjs/radio/radio.type.d.ts +14 -0
- package/cjs/radio/radio.type.d.ts.map +1 -1
- package/cjs/radio/simple-radio.d.ts.map +1 -1
- package/cjs/radio/simple-radio.js +22 -5
- package/cjs/rate/index.d.ts +1 -1
- package/cjs/rate/index.d.ts.map +1 -1
- package/cjs/rate/rate.d.ts.map +1 -1
- package/cjs/rate/rate.js +15 -7
- package/cjs/rate/rate.type.d.ts +14 -0
- package/cjs/rate/rate.type.d.ts.map +1 -1
- package/cjs/select/index.d.ts +1 -1
- package/cjs/select/index.d.ts.map +1 -1
- package/cjs/select/list-columns-option.d.ts.map +1 -1
- package/cjs/select/list-columns-option.js +12 -3
- package/cjs/select/list-columns-option.type.d.ts +3 -1
- package/cjs/select/list-columns-option.type.d.ts.map +1 -1
- package/cjs/select/list-columns.d.ts.map +1 -1
- package/cjs/select/list-columns.js +9 -3
- package/cjs/select/list-option.d.ts.map +1 -1
- package/cjs/select/list-option.js +9 -4
- package/cjs/select/list-option.type.d.ts +3 -1
- package/cjs/select/list-option.type.d.ts.map +1 -1
- package/cjs/select/list-tree.d.ts.map +1 -1
- package/cjs/select/list-tree.js +12 -4
- package/cjs/select/list-tree.type.d.ts +3 -1
- package/cjs/select/list-tree.type.d.ts.map +1 -1
- package/cjs/select/list.d.ts.map +1 -1
- package/cjs/select/list.js +11 -5
- package/cjs/select/select.d.ts.map +1 -1
- package/cjs/select/select.js +24 -13
- package/cjs/select/select.type.d.ts +16 -0
- package/cjs/select/select.type.d.ts.map +1 -1
- package/cjs/skeleton/index.d.ts +1 -1
- package/cjs/skeleton/index.d.ts.map +1 -1
- package/cjs/skeleton/skeleton.d.ts.map +1 -1
- package/cjs/skeleton/skeleton.js +40 -11
- package/cjs/skeleton/skeleton.type.d.ts +23 -0
- package/cjs/skeleton/skeleton.type.d.ts.map +1 -1
- package/cjs/slider/index.d.ts +1 -1
- package/cjs/slider/index.d.ts.map +1 -1
- package/cjs/slider/slider.d.ts.map +1 -1
- package/cjs/slider/slider.js +23 -7
- package/cjs/slider/slider.type.d.ts +14 -0
- package/cjs/slider/slider.type.d.ts.map +1 -1
- package/cjs/spin/index.d.ts +1 -1
- package/cjs/spin/index.d.ts.map +1 -1
- package/cjs/spin/spin.d.ts.map +1 -1
- package/cjs/spin/spin.js +35 -8
- package/cjs/spin/spin.type.d.ts +37 -0
- package/cjs/spin/spin.type.d.ts.map +1 -1
- package/cjs/steps/index.d.ts +2 -2
- package/cjs/steps/index.d.ts.map +1 -1
- package/cjs/steps/step.arrow.d.ts.map +1 -1
- package/cjs/steps/step.arrow.js +27 -8
- package/cjs/steps/step.d.ts.map +1 -1
- package/cjs/steps/step.default.d.ts.map +1 -1
- package/cjs/steps/step.default.js +14 -6
- package/cjs/steps/step.dot.js +13 -6
- package/cjs/steps/step.js +27 -4
- package/cjs/steps/step.type.d.ts +38 -2
- package/cjs/steps/step.type.d.ts.map +1 -1
- package/cjs/steps/steps-context.type.d.ts +8 -0
- package/cjs/steps/steps-context.type.d.ts.map +1 -1
- package/cjs/steps/steps.d.ts.map +1 -1
- package/cjs/steps/steps.js +29 -5
- package/cjs/steps/steps.type.d.ts +49 -1
- package/cjs/steps/steps.type.d.ts.map +1 -1
- package/cjs/switch/index.d.ts +1 -1
- package/cjs/switch/index.d.ts.map +1 -1
- package/cjs/switch/switch.d.ts.map +1 -1
- package/cjs/switch/switch.js +14 -5
- package/cjs/switch/switch.type.d.ts +14 -0
- package/cjs/switch/switch.type.d.ts.map +1 -1
- package/cjs/table/index.d.ts +1 -1
- package/cjs/table/index.d.ts.map +1 -1
- package/cjs/table/table.d.ts.map +1 -1
- package/cjs/table/table.js +34 -13
- package/cjs/table/table.type.d.ts +28 -0
- package/cjs/table/table.type.d.ts.map +1 -1
- package/cjs/table/tbody.d.ts.map +1 -1
- package/cjs/table/tbody.js +5 -1
- package/cjs/table/tbody.type.d.ts +4 -0
- package/cjs/table/tbody.type.d.ts.map +1 -1
- package/cjs/table/tfoot.d.ts.map +1 -1
- package/cjs/table/tfoot.js +8 -2
- package/cjs/table/tfoot.type.d.ts +3 -0
- package/cjs/table/tfoot.type.d.ts.map +1 -1
- package/cjs/table/thead-filter.js +4 -1
- package/cjs/table/thead.d.ts.map +1 -1
- package/cjs/table/thead.js +8 -5
- package/cjs/table/thead.type.d.ts +5 -0
- package/cjs/table/thead.type.d.ts.map +1 -1
- package/cjs/table/tr.d.ts +5 -0
- package/cjs/table/tr.d.ts.map +1 -1
- package/cjs/table/tr.js +5 -5
- package/cjs/tabs/index.d.ts +1 -1
- package/cjs/tabs/index.d.ts.map +1 -1
- package/cjs/tabs/tab.d.ts.map +1 -1
- package/cjs/tabs/tab.js +20 -7
- package/cjs/tabs/tab.type.d.ts +4 -0
- package/cjs/tabs/tab.type.d.ts.map +1 -1
- package/cjs/tabs/tabs-header.d.ts.map +1 -1
- package/cjs/tabs/tabs-header.js +32 -10
- package/cjs/tabs/tabs-header.type.d.ts +4 -1
- package/cjs/tabs/tabs-header.type.d.ts.map +1 -1
- package/cjs/tabs/tabs.d.ts.map +1 -1
- package/cjs/tabs/tabs.js +21 -6
- package/cjs/tabs/tabs.type.d.ts +29 -0
- package/cjs/tabs/tabs.type.d.ts.map +1 -1
- package/cjs/tag/index.d.ts +1 -1
- package/cjs/tag/index.d.ts.map +1 -1
- package/cjs/tag/tag.d.ts.map +1 -1
- package/cjs/tag/tag.js +28 -9
- package/cjs/tag/tag.type.d.ts +22 -0
- package/cjs/tag/tag.type.d.ts.map +1 -1
- package/cjs/textarea/index.d.ts +1 -1
- package/cjs/textarea/index.d.ts.map +1 -1
- package/cjs/textarea/simple-textarea.d.ts.map +1 -1
- package/cjs/textarea/simple-textarea.js +19 -5
- package/cjs/textarea/textarea.type.d.ts +19 -0
- package/cjs/textarea/textarea.type.d.ts.map +1 -1
- package/cjs/tooltip/index.d.ts +1 -1
- package/cjs/tooltip/index.d.ts.map +1 -1
- package/cjs/tooltip/tooltip.d.ts.map +1 -1
- package/cjs/tooltip/tooltip.js +37 -14
- package/cjs/tooltip/tooltip.type.d.ts +62 -0
- package/cjs/tooltip/tooltip.type.d.ts.map +1 -1
- package/cjs/transfer/index.d.ts +1 -1
- package/cjs/transfer/index.d.ts.map +1 -1
- package/cjs/transfer/transfer-list-header.js +5 -2
- package/cjs/transfer/transfer-list-header.type.d.ts +4 -1
- package/cjs/transfer/transfer-list-header.type.d.ts.map +1 -1
- package/cjs/transfer/transfer-list-item.d.ts.map +1 -1
- package/cjs/transfer/transfer-list-item.js +12 -4
- package/cjs/transfer/transfer-list-item.type.d.ts +4 -1
- package/cjs/transfer/transfer-list-item.type.d.ts.map +1 -1
- package/cjs/transfer/transfer-list.d.ts.map +1 -1
- package/cjs/transfer/transfer-list.js +10 -4
- package/cjs/transfer/transfer-list.type.d.ts +4 -1
- package/cjs/transfer/transfer-list.type.d.ts.map +1 -1
- package/cjs/transfer/transfer.d.ts.map +1 -1
- package/cjs/transfer/transfer.js +25 -9
- package/cjs/transfer/transfer.type.d.ts +14 -0
- package/cjs/transfer/transfer.type.d.ts.map +1 -1
- package/cjs/tree/index.d.ts +1 -1
- package/cjs/tree/index.d.ts.map +1 -1
- package/cjs/tree/tree-content.d.ts.map +1 -1
- package/cjs/tree/tree-content.js +12 -6
- package/cjs/tree/tree-context.type.d.ts +6 -2
- package/cjs/tree/tree-context.type.d.ts.map +1 -1
- package/cjs/tree/tree-simple-node.d.ts.map +1 -1
- package/cjs/tree/tree-simple-node.js +5 -2
- package/cjs/tree/tree-virtual-node.d.ts.map +1 -1
- package/cjs/tree/tree-virtual-node.js +7 -3
- package/cjs/tree/tree.d.ts.map +1 -1
- package/cjs/tree/tree.js +20 -5
- package/cjs/tree/tree.type.d.ts +23 -0
- package/cjs/tree/tree.type.d.ts.map +1 -1
- package/cjs/tree-select/index.d.ts +1 -1
- package/cjs/tree-select/index.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.d.ts.map +1 -1
- package/cjs/tree-select/tree-select.js +22 -13
- package/cjs/tree-select/tree-select.type.d.ts +14 -0
- package/cjs/tree-select/tree-select.type.d.ts.map +1 -1
- package/cjs/upload/index.d.ts +1 -1
- package/cjs/upload/index.d.ts.map +1 -1
- package/cjs/upload/result.d.ts +4 -1
- package/cjs/upload/result.d.ts.map +1 -1
- package/cjs/upload/result.js +3 -3
- package/cjs/upload/upload.d.ts.map +1 -1
- package/cjs/upload/upload.js +21 -8
- package/cjs/upload/upload.type.d.ts +14 -0
- package/cjs/upload/upload.type.d.ts.map +1 -1
- package/cjs/virtual-scroll/scroll-table.d.ts.map +1 -1
- package/cjs/virtual-scroll/scroll-table.js +23 -4
- package/esm/alert/alert.d.ts.map +1 -1
- package/esm/alert/alert.js +31 -12
- package/esm/alert/alert.type.d.ts +38 -0
- package/esm/alert/alert.type.d.ts.map +1 -1
- package/esm/alert/index.d.ts +1 -1
- package/esm/alert/index.d.ts.map +1 -1
- package/esm/avatar/avatar.d.ts.map +1 -1
- package/esm/avatar/avatar.js +27 -3
- package/esm/avatar/avatar.type.d.ts +27 -0
- package/esm/avatar/avatar.type.d.ts.map +1 -1
- package/esm/avatar/context.d.ts +6 -1
- package/esm/avatar/context.d.ts.map +1 -1
- package/esm/avatar/context.js +2 -0
- package/esm/avatar/group.d.ts.map +1 -1
- package/esm/avatar/group.js +43 -11
- package/esm/avatar/index.d.ts +1 -1
- package/esm/avatar/index.d.ts.map +1 -1
- package/esm/badge/badge.d.ts.map +1 -1
- package/esm/badge/badge.js +27 -6
- package/esm/badge/badge.type.d.ts +21 -0
- package/esm/badge/badge.type.d.ts.map +1 -1
- package/esm/badge/index.d.ts +1 -1
- package/esm/badge/index.d.ts.map +1 -1
- package/esm/border-beam/border-beam-effect.d.ts +11 -0
- package/esm/border-beam/border-beam-effect.d.ts.map +1 -0
- package/esm/border-beam/border-beam-effect.js +18 -0
- package/esm/border-beam/border-beam.d.ts +4 -0
- package/esm/border-beam/border-beam.d.ts.map +1 -0
- package/esm/border-beam/border-beam.js +54 -0
- package/esm/border-beam/border-beam.type.d.ts +56 -0
- package/esm/border-beam/border-beam.type.d.ts.map +1 -0
- package/esm/border-beam/border-beam.type.js +1 -0
- package/esm/border-beam/index.d.ts +3 -0
- package/esm/border-beam/index.d.ts.map +1 -0
- package/esm/border-beam/index.js +2 -0
- package/esm/border-beam/use-border-size.d.ts +8 -0
- package/esm/border-beam/use-border-size.d.ts.map +1 -0
- package/esm/border-beam/use-border-size.js +39 -0
- package/esm/border-beam/use-child-dom.d.ts +9 -0
- package/esm/border-beam/use-child-dom.d.ts.map +1 -0
- package/esm/border-beam/use-child-dom.js +101 -0
- package/esm/border-beam/util.d.ts +16 -0
- package/esm/border-beam/util.d.ts.map +1 -0
- package/esm/border-beam/util.js +51 -0
- package/esm/breadcrumb/breadcrumb-item.d.ts +5 -2
- package/esm/breadcrumb/breadcrumb-item.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb-item.js +8 -2
- package/esm/breadcrumb/breadcrumb.d.ts.map +1 -1
- package/esm/breadcrumb/breadcrumb.js +49 -12
- package/esm/breadcrumb/breadcrumb.type.d.ts +25 -0
- package/esm/breadcrumb/breadcrumb.type.d.ts.map +1 -1
- package/esm/breadcrumb/index.d.ts +1 -1
- package/esm/breadcrumb/index.d.ts.map +1 -1
- package/esm/breadcrumb/list.d.ts +4 -1
- package/esm/breadcrumb/list.d.ts.map +1 -1
- package/esm/breadcrumb/list.js +7 -4
- package/esm/button/button.d.ts.map +1 -1
- package/esm/button/button.js +27 -4
- package/esm/button/button.type.d.ts +40 -0
- package/esm/button/button.type.d.ts.map +1 -1
- package/esm/button/index.d.ts +1 -1
- package/esm/button/index.d.ts.map +1 -1
- package/esm/card/card-body.js +11 -3
- package/esm/card/card-footer.d.ts +2 -2
- package/esm/card/card-footer.d.ts.map +1 -1
- package/esm/card/card-footer.js +13 -5
- package/esm/card/card-header.d.ts.map +1 -1
- package/esm/card/card-header.js +10 -6
- package/esm/card/card.context.d.ts +4 -0
- package/esm/card/card.context.d.ts.map +1 -1
- package/esm/card/card.d.ts.map +1 -1
- package/esm/card/card.js +23 -12
- package/esm/card/card.type.d.ts +25 -0
- package/esm/card/card.type.d.ts.map +1 -1
- package/esm/card/index.d.ts +1 -1
- package/esm/card/index.d.ts.map +1 -1
- package/esm/carousel/carousel.d.ts.map +1 -1
- package/esm/carousel/carousel.js +43 -11
- package/esm/carousel/carousel.type.d.ts +37 -0
- package/esm/carousel/carousel.type.d.ts.map +1 -1
- package/esm/carousel/index.d.ts +1 -1
- package/esm/carousel/index.d.ts.map +1 -1
- package/esm/cascader/cascader.d.ts.map +1 -1
- package/esm/cascader/cascader.js +26 -12
- package/esm/cascader/cascader.type.d.ts +14 -0
- package/esm/cascader/cascader.type.d.ts.map +1 -1
- package/esm/cascader/filter-list.d.ts.map +1 -1
- package/esm/cascader/filter-list.js +11 -4
- package/esm/cascader/filter-list.type.d.ts +4 -1
- package/esm/cascader/filter-list.type.d.ts.map +1 -1
- package/esm/cascader/filter-node.d.ts.map +1 -1
- package/esm/cascader/filter-node.js +5 -2
- package/esm/cascader/filter-node.type.d.ts +4 -1
- package/esm/cascader/filter-node.type.d.ts.map +1 -1
- package/esm/cascader/index.d.ts +1 -1
- package/esm/cascader/index.d.ts.map +1 -1
- package/esm/cascader/list.d.ts.map +1 -1
- package/esm/cascader/list.js +8 -3
- package/esm/cascader/list.type.d.ts +4 -1
- package/esm/cascader/list.type.d.ts.map +1 -1
- package/esm/cascader/node.d.ts.map +1 -1
- package/esm/cascader/node.js +6 -3
- package/esm/cascader/node.type.d.ts +4 -1
- package/esm/cascader/node.type.d.ts.map +1 -1
- package/esm/checkbox/checkbox-group.d.ts.map +1 -1
- package/esm/checkbox/checkbox-group.js +25 -4
- package/esm/checkbox/checkbox-group.type.d.ts +14 -1
- package/esm/checkbox/checkbox-group.type.d.ts.map +1 -1
- package/esm/checkbox/checkbox.type.d.ts +14 -0
- package/esm/checkbox/checkbox.type.d.ts.map +1 -1
- package/esm/checkbox/index.d.ts +1 -1
- package/esm/checkbox/index.d.ts.map +1 -1
- package/esm/checkbox/simple-checkbox.d.ts.map +1 -1
- package/esm/checkbox/simple-checkbox.js +22 -5
- package/esm/collapse/collapse-item.d.ts.map +1 -1
- package/esm/collapse/collapse-item.js +13 -11
- package/esm/collapse/collapse.d.ts.map +1 -1
- package/esm/collapse/collapse.js +30 -7
- package/esm/collapse/collapse.type.d.ts +25 -0
- package/esm/collapse/collapse.type.d.ts.map +1 -1
- package/esm/collapse/index.d.ts +1 -1
- package/esm/collapse/index.d.ts.map +1 -1
- package/esm/common/index.d.ts +2 -0
- package/esm/common/index.d.ts.map +1 -1
- package/esm/common/index.js +1 -1
- package/esm/common/use-semantic.d.ts +128 -0
- package/esm/common/use-semantic.d.ts.map +1 -0
- package/esm/common/use-semantic.js +124 -0
- package/esm/config/index.d.ts +955 -0
- package/esm/config/index.d.ts.map +1 -1
- package/esm/config/index.js +43 -1
- package/esm/date-picker/date-picker.d.ts.map +1 -1
- package/esm/date-picker/date-picker.js +28 -10
- package/esm/date-picker/date-picker.type.d.ts +14 -0
- package/esm/date-picker/date-picker.type.d.ts.map +1 -1
- package/esm/date-picker/day.d.ts.map +1 -1
- package/esm/date-picker/day.js +9 -6
- package/esm/date-picker/index.d.ts +1 -1
- package/esm/date-picker/index.d.ts.map +1 -1
- package/esm/date-picker/month.d.ts.map +1 -1
- package/esm/date-picker/month.js +12 -6
- package/esm/date-picker/picker.d.ts.map +1 -1
- package/esm/date-picker/picker.js +9 -3
- package/esm/date-picker/picker.type.d.ts +5 -2
- package/esm/date-picker/picker.type.d.ts.map +1 -1
- package/esm/date-picker/quarter.d.ts.map +1 -1
- package/esm/date-picker/quarter.js +12 -6
- package/esm/date-picker/time.js +10 -3
- package/esm/date-picker/year.d.ts.map +1 -1
- package/esm/date-picker/year.js +12 -6
- package/esm/descriptions/descriptions.d.ts.map +1 -1
- package/esm/descriptions/descriptions.js +37 -15
- package/esm/descriptions/descriptions.type.d.ts +26 -0
- package/esm/descriptions/descriptions.type.d.ts.map +1 -1
- package/esm/descriptions/index.d.ts +1 -1
- package/esm/descriptions/index.d.ts.map +1 -1
- package/esm/divider/divider.d.ts.map +1 -1
- package/esm/divider/divider.js +33 -4
- package/esm/divider/divider.type.d.ts +21 -0
- package/esm/divider/divider.type.d.ts.map +1 -1
- package/esm/divider/index.d.ts +1 -1
- package/esm/divider/index.d.ts.map +1 -1
- package/esm/dropdown/Item.d.ts.map +1 -1
- package/esm/dropdown/Item.js +2 -0
- package/esm/dropdown/dropdown.type.d.ts +45 -0
- package/esm/dropdown/dropdown.type.d.ts.map +1 -1
- package/esm/dropdown/dropdown.type.js +18 -0
- package/esm/dropdown/dropdownIn.d.ts.map +1 -1
- package/esm/dropdown/dropdownIn.js +40 -12
- package/esm/dropdown/index.d.ts +1 -1
- package/esm/dropdown/index.d.ts.map +1 -1
- package/esm/empty/empty.d.ts.map +1 -1
- package/esm/empty/empty.js +32 -11
- package/esm/empty/empty.type.d.ts +22 -0
- package/esm/empty/empty.type.d.ts.map +1 -1
- package/esm/empty/index.d.ts +1 -1
- package/esm/empty/index.d.ts.map +1 -1
- package/esm/form/form-item.d.ts.map +1 -1
- package/esm/form/form-item.js +43 -10
- package/esm/form/form-item.type.d.ts +14 -0
- package/esm/form/form-item.type.d.ts.map +1 -1
- package/esm/form/form-semantic-context.d.ts +9 -0
- package/esm/form/form-semantic-context.d.ts.map +1 -0
- package/esm/form/form-semantic-context.js +4 -0
- package/esm/form/form.d.ts.map +1 -1
- package/esm/form/form.js +30 -6
- package/esm/form/form.type.d.ts +14 -0
- package/esm/form/form.type.d.ts.map +1 -1
- package/esm/form/index.d.ts +2 -2
- package/esm/form/index.d.ts.map +1 -1
- package/esm/gap/gap.d.ts.map +1 -1
- package/esm/gap/gap.js +28 -5
- package/esm/gap/gap.type.d.ts +21 -0
- package/esm/gap/gap.type.d.ts.map +1 -1
- package/esm/gap/index.d.ts +1 -1
- package/esm/gap/index.d.ts.map +1 -1
- package/esm/grid/grid.d.ts.map +1 -1
- package/esm/grid/grid.js +24 -3
- package/esm/grid/grid.type.d.ts +20 -0
- package/esm/grid/grid.type.d.ts.map +1 -1
- package/esm/grid/index.d.ts +1 -1
- package/esm/grid/index.d.ts.map +1 -1
- package/esm/icons/icons.d.ts.map +1 -1
- package/esm/icons/icons.js +10 -4
- package/esm/image/image.d.ts.map +1 -1
- package/esm/image/image.js +38 -14
- package/esm/image/image.type.d.ts +23 -0
- package/esm/image/image.type.d.ts.map +1 -1
- package/esm/image/index.d.ts +1 -1
- package/esm/image/index.d.ts.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/input/index.d.ts +1 -1
- package/esm/input/index.d.ts.map +1 -1
- package/esm/input/input.type.d.ts +16 -0
- package/esm/input/input.type.d.ts.map +1 -1
- package/esm/input/simple-input.d.ts.map +1 -1
- package/esm/input/simple-input.js +5 -2
- package/esm/input/use-input-common.d.ts +4 -2
- package/esm/input/use-input-common.d.ts.map +1 -1
- package/esm/input/use-input-common.js +16 -6
- package/esm/link/index.d.ts +1 -1
- package/esm/link/index.d.ts.map +1 -1
- package/esm/link/link.d.ts.map +1 -1
- package/esm/link/link.js +33 -4
- package/esm/link/link.type.d.ts +35 -0
- package/esm/link/link.type.d.ts.map +1 -1
- package/esm/list/index.d.ts +1 -1
- package/esm/list/index.d.ts.map +1 -1
- package/esm/list/list.d.ts.map +1 -1
- package/esm/list/list.js +24 -6
- package/esm/list/list.type.d.ts +22 -0
- package/esm/list/list.type.d.ts.map +1 -1
- package/esm/menu/index.d.ts +1 -1
- package/esm/menu/index.d.ts.map +1 -1
- package/esm/menu/item.d.ts.map +1 -1
- package/esm/menu/item.js +41 -13
- package/esm/menu/menu.d.ts.map +1 -1
- package/esm/menu/menu.js +32 -6
- package/esm/menu/menu.type.d.ts +93 -0
- package/esm/menu/menu.type.d.ts.map +1 -1
- package/esm/message/func.d.ts.map +1 -1
- package/esm/message/func.js +6 -2
- package/esm/message/func.type.d.ts +16 -1
- package/esm/message/func.type.d.ts.map +1 -1
- package/esm/message/index.d.ts +1 -1
- package/esm/message/index.d.ts.map +1 -1
- package/esm/message/manager.d.ts +3 -0
- package/esm/message/manager.d.ts.map +1 -1
- package/esm/message/manager.js +6 -3
- package/esm/message/message.d.ts.map +1 -1
- package/esm/message/message.js +30 -8
- package/esm/message/message.type.d.ts +24 -0
- package/esm/message/message.type.d.ts.map +1 -1
- package/esm/modal/index.d.ts +1 -1
- package/esm/modal/index.d.ts.map +1 -1
- package/esm/modal/modal-content.d.ts.map +1 -1
- package/esm/modal/modal-content.js +28 -15
- package/esm/modal/modal.type.d.ts +38 -0
- package/esm/modal/modal.type.d.ts.map +1 -1
- package/esm/pagination/index.d.ts +1 -1
- package/esm/pagination/index.d.ts.map +1 -1
- package/esm/pagination/pagination-buttons.d.ts.map +1 -1
- package/esm/pagination/pagination-buttons.js +12 -4
- package/esm/pagination/pagination-buttons.type.d.ts +5 -2
- package/esm/pagination/pagination-buttons.type.d.ts.map +1 -1
- package/esm/pagination/pagination-jumper.js +6 -2
- package/esm/pagination/pagination-jumper.type.d.ts +4 -1
- package/esm/pagination/pagination-jumper.type.d.ts.map +1 -1
- package/esm/pagination/pagination-next.js +11 -3
- package/esm/pagination/pagination-prev.d.ts.map +1 -1
- package/esm/pagination/pagination-prev.js +5 -2
- package/esm/pagination/pagination-simple.d.ts.map +1 -1
- package/esm/pagination/pagination-simple.js +12 -4
- package/esm/pagination/pagination-simple.type.d.ts +4 -1
- package/esm/pagination/pagination-simple.type.d.ts.map +1 -1
- package/esm/pagination/pagination-size-list.d.ts.map +1 -1
- package/esm/pagination/pagination-size-list.js +5 -2
- package/esm/pagination/pagination-size-list.type.d.ts +4 -1
- package/esm/pagination/pagination-size-list.type.d.ts.map +1 -1
- package/esm/pagination/pagination.d.ts.map +1 -1
- package/esm/pagination/pagination.js +35 -8
- package/esm/pagination/pagination.type.d.ts +25 -0
- package/esm/pagination/pagination.type.d.ts.map +1 -1
- package/esm/popover/index.d.ts +1 -1
- package/esm/popover/index.d.ts.map +1 -1
- package/esm/popover/popover.d.ts.map +1 -1
- package/esm/popover/popover.js +25 -6
- package/esm/popover/popover.type.d.ts +66 -0
- package/esm/popover/popover.type.d.ts.map +1 -1
- package/esm/progress/circle.d.ts.map +1 -1
- package/esm/progress/circle.js +45 -14
- package/esm/progress/index.d.ts +1 -1
- package/esm/progress/index.d.ts.map +1 -1
- package/esm/progress/line.d.ts.map +1 -1
- package/esm/progress/line.js +40 -12
- package/esm/progress/progress.type.d.ts +48 -0
- package/esm/progress/progress.type.d.ts.map +1 -1
- package/esm/radio/index.d.ts +1 -1
- package/esm/radio/index.d.ts.map +1 -1
- package/esm/radio/radio-group.d.ts.map +1 -1
- package/esm/radio/radio-group.js +19 -4
- package/esm/radio/radio-group.type.d.ts +14 -1
- package/esm/radio/radio-group.type.d.ts.map +1 -1
- package/esm/radio/radio.type.d.ts +14 -0
- package/esm/radio/radio.type.d.ts.map +1 -1
- package/esm/radio/simple-radio.d.ts.map +1 -1
- package/esm/radio/simple-radio.js +22 -5
- package/esm/rate/index.d.ts +1 -1
- package/esm/rate/index.d.ts.map +1 -1
- package/esm/rate/rate.d.ts.map +1 -1
- package/esm/rate/rate.js +15 -7
- package/esm/rate/rate.type.d.ts +14 -0
- package/esm/rate/rate.type.d.ts.map +1 -1
- package/esm/select/index.d.ts +1 -1
- package/esm/select/index.d.ts.map +1 -1
- package/esm/select/list-columns-option.d.ts.map +1 -1
- package/esm/select/list-columns-option.js +12 -3
- package/esm/select/list-columns-option.type.d.ts +3 -1
- package/esm/select/list-columns-option.type.d.ts.map +1 -1
- package/esm/select/list-columns.d.ts.map +1 -1
- package/esm/select/list-columns.js +9 -3
- package/esm/select/list-option.d.ts.map +1 -1
- package/esm/select/list-option.js +9 -4
- package/esm/select/list-option.type.d.ts +3 -1
- package/esm/select/list-option.type.d.ts.map +1 -1
- package/esm/select/list-tree.d.ts.map +1 -1
- package/esm/select/list-tree.js +12 -4
- package/esm/select/list-tree.type.d.ts +3 -1
- package/esm/select/list-tree.type.d.ts.map +1 -1
- package/esm/select/list.d.ts.map +1 -1
- package/esm/select/list.js +11 -5
- package/esm/select/select.d.ts.map +1 -1
- package/esm/select/select.js +24 -13
- package/esm/select/select.type.d.ts +16 -0
- package/esm/select/select.type.d.ts.map +1 -1
- package/esm/skeleton/index.d.ts +1 -1
- package/esm/skeleton/index.d.ts.map +1 -1
- package/esm/skeleton/skeleton.d.ts.map +1 -1
- package/esm/skeleton/skeleton.js +39 -10
- package/esm/skeleton/skeleton.type.d.ts +23 -0
- package/esm/skeleton/skeleton.type.d.ts.map +1 -1
- package/esm/slider/index.d.ts +1 -1
- package/esm/slider/index.d.ts.map +1 -1
- package/esm/slider/slider.d.ts.map +1 -1
- package/esm/slider/slider.js +22 -6
- package/esm/slider/slider.type.d.ts +14 -0
- package/esm/slider/slider.type.d.ts.map +1 -1
- package/esm/spin/index.d.ts +1 -1
- package/esm/spin/index.d.ts.map +1 -1
- package/esm/spin/spin.d.ts.map +1 -1
- package/esm/spin/spin.js +35 -8
- package/esm/spin/spin.type.d.ts +37 -0
- package/esm/spin/spin.type.d.ts.map +1 -1
- package/esm/steps/index.d.ts +2 -2
- package/esm/steps/index.d.ts.map +1 -1
- package/esm/steps/step.arrow.d.ts.map +1 -1
- package/esm/steps/step.arrow.js +27 -8
- package/esm/steps/step.d.ts.map +1 -1
- package/esm/steps/step.default.d.ts.map +1 -1
- package/esm/steps/step.default.js +14 -6
- package/esm/steps/step.dot.js +13 -6
- package/esm/steps/step.js +26 -3
- package/esm/steps/step.type.d.ts +38 -2
- package/esm/steps/step.type.d.ts.map +1 -1
- package/esm/steps/steps-context.type.d.ts +8 -0
- package/esm/steps/steps-context.type.d.ts.map +1 -1
- package/esm/steps/steps.d.ts.map +1 -1
- package/esm/steps/steps.js +28 -4
- package/esm/steps/steps.type.d.ts +49 -1
- package/esm/steps/steps.type.d.ts.map +1 -1
- package/esm/switch/index.d.ts +1 -1
- package/esm/switch/index.d.ts.map +1 -1
- package/esm/switch/switch.d.ts.map +1 -1
- package/esm/switch/switch.js +14 -5
- package/esm/switch/switch.type.d.ts +14 -0
- package/esm/switch/switch.type.d.ts.map +1 -1
- package/esm/table/index.d.ts +1 -1
- package/esm/table/index.d.ts.map +1 -1
- package/esm/table/table.d.ts.map +1 -1
- package/esm/table/table.js +34 -13
- package/esm/table/table.type.d.ts +28 -0
- package/esm/table/table.type.d.ts.map +1 -1
- package/esm/table/tbody.d.ts.map +1 -1
- package/esm/table/tbody.js +5 -1
- package/esm/table/tbody.type.d.ts +4 -0
- package/esm/table/tbody.type.d.ts.map +1 -1
- package/esm/table/tfoot.d.ts.map +1 -1
- package/esm/table/tfoot.js +8 -2
- package/esm/table/tfoot.type.d.ts +3 -0
- package/esm/table/tfoot.type.d.ts.map +1 -1
- package/esm/table/thead-filter.js +4 -1
- package/esm/table/thead.d.ts.map +1 -1
- package/esm/table/thead.js +8 -5
- package/esm/table/thead.type.d.ts +5 -0
- package/esm/table/thead.type.d.ts.map +1 -1
- package/esm/table/tr.d.ts +5 -0
- package/esm/table/tr.d.ts.map +1 -1
- package/esm/table/tr.js +5 -5
- package/esm/tabs/index.d.ts +1 -1
- package/esm/tabs/index.d.ts.map +1 -1
- package/esm/tabs/tab.d.ts.map +1 -1
- package/esm/tabs/tab.js +20 -7
- package/esm/tabs/tab.type.d.ts +4 -0
- package/esm/tabs/tab.type.d.ts.map +1 -1
- package/esm/tabs/tabs-header.d.ts.map +1 -1
- package/esm/tabs/tabs-header.js +32 -10
- package/esm/tabs/tabs-header.type.d.ts +4 -1
- package/esm/tabs/tabs-header.type.d.ts.map +1 -1
- package/esm/tabs/tabs.d.ts.map +1 -1
- package/esm/tabs/tabs.js +21 -6
- package/esm/tabs/tabs.type.d.ts +29 -0
- package/esm/tabs/tabs.type.d.ts.map +1 -1
- package/esm/tag/index.d.ts +1 -1
- package/esm/tag/index.d.ts.map +1 -1
- package/esm/tag/tag.d.ts.map +1 -1
- package/esm/tag/tag.js +28 -9
- package/esm/tag/tag.type.d.ts +22 -0
- package/esm/tag/tag.type.d.ts.map +1 -1
- package/esm/textarea/index.d.ts +1 -1
- package/esm/textarea/index.d.ts.map +1 -1
- package/esm/textarea/simple-textarea.d.ts.map +1 -1
- package/esm/textarea/simple-textarea.js +19 -5
- package/esm/textarea/textarea.type.d.ts +19 -0
- package/esm/textarea/textarea.type.d.ts.map +1 -1
- package/esm/tooltip/index.d.ts +1 -1
- package/esm/tooltip/index.d.ts.map +1 -1
- package/esm/tooltip/tooltip.d.ts.map +1 -1
- package/esm/tooltip/tooltip.js +37 -14
- package/esm/tooltip/tooltip.type.d.ts +62 -0
- package/esm/tooltip/tooltip.type.d.ts.map +1 -1
- package/esm/transfer/index.d.ts +1 -1
- package/esm/transfer/index.d.ts.map +1 -1
- package/esm/transfer/transfer-list-header.js +5 -2
- package/esm/transfer/transfer-list-header.type.d.ts +4 -1
- package/esm/transfer/transfer-list-header.type.d.ts.map +1 -1
- package/esm/transfer/transfer-list-item.d.ts.map +1 -1
- package/esm/transfer/transfer-list-item.js +12 -4
- package/esm/transfer/transfer-list-item.type.d.ts +4 -1
- package/esm/transfer/transfer-list-item.type.d.ts.map +1 -1
- package/esm/transfer/transfer-list.d.ts.map +1 -1
- package/esm/transfer/transfer-list.js +10 -4
- package/esm/transfer/transfer-list.type.d.ts +4 -1
- package/esm/transfer/transfer-list.type.d.ts.map +1 -1
- package/esm/transfer/transfer.d.ts.map +1 -1
- package/esm/transfer/transfer.js +24 -8
- package/esm/transfer/transfer.type.d.ts +14 -0
- package/esm/transfer/transfer.type.d.ts.map +1 -1
- package/esm/tree/index.d.ts +1 -1
- package/esm/tree/index.d.ts.map +1 -1
- package/esm/tree/tree-content.d.ts.map +1 -1
- package/esm/tree/tree-content.js +12 -6
- package/esm/tree/tree-context.type.d.ts +6 -2
- package/esm/tree/tree-context.type.d.ts.map +1 -1
- package/esm/tree/tree-simple-node.d.ts.map +1 -1
- package/esm/tree/tree-simple-node.js +5 -2
- package/esm/tree/tree-virtual-node.d.ts.map +1 -1
- package/esm/tree/tree-virtual-node.js +7 -3
- package/esm/tree/tree.d.ts.map +1 -1
- package/esm/tree/tree.js +20 -5
- package/esm/tree/tree.type.d.ts +23 -0
- package/esm/tree/tree.type.d.ts.map +1 -1
- package/esm/tree-select/index.d.ts +1 -1
- package/esm/tree-select/index.d.ts.map +1 -1
- package/esm/tree-select/tree-select.d.ts.map +1 -1
- package/esm/tree-select/tree-select.js +22 -13
- package/esm/tree-select/tree-select.type.d.ts +14 -0
- package/esm/tree-select/tree-select.type.d.ts.map +1 -1
- package/esm/upload/index.d.ts +1 -1
- package/esm/upload/index.d.ts.map +1 -1
- package/esm/upload/result.d.ts +4 -1
- package/esm/upload/result.d.ts.map +1 -1
- package/esm/upload/result.js +3 -3
- package/esm/upload/upload.d.ts.map +1 -1
- package/esm/upload/upload.js +20 -7
- package/esm/upload/upload.type.d.ts +14 -0
- package/esm/upload/upload.type.d.ts.map +1 -1
- package/esm/virtual-scroll/scroll-table.d.ts.map +1 -1
- package/esm/virtual-scroll/scroll-table.js +23 -4
- package/package.json +2 -2
package/esm/avatar/group.js
CHANGED
|
@@ -4,10 +4,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
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
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
13
|
import React, { Children, cloneElement } from 'react';
|
|
14
|
+
import classNames from 'classnames';
|
|
8
15
|
import { AvatarContext } from "./context";
|
|
9
16
|
import Avatar from "./avatar";
|
|
10
17
|
import { Popover } from "../popover";
|
|
18
|
+
import { useSemantic } from "../common/use-semantic";
|
|
19
|
+
import { useConfig } from "../config";
|
|
11
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
21
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
22
|
var AvatarProvider = function AvatarProvider(props) {
|
|
@@ -24,14 +33,39 @@ var AvatarGroup = function AvatarGroup(props) {
|
|
|
24
33
|
shape = props.shape,
|
|
25
34
|
max = props.max,
|
|
26
35
|
popover = props.popover,
|
|
27
|
-
renderMax = props.renderMax
|
|
36
|
+
renderMax = props.renderMax,
|
|
37
|
+
classNamesProp = props.classNames,
|
|
38
|
+
stylesProp = props.styles;
|
|
39
|
+
var config = useConfig();
|
|
40
|
+
var _useSemantic = useSemantic(classNamesProp, stylesProp, config.avatar),
|
|
41
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
42
|
+
semClass = _useSemantic2[0],
|
|
43
|
+
semStyle = _useSemantic2[1];
|
|
28
44
|
var avatarGroupClasses = (jssStyle === null || jssStyle === void 0 || (_jssStyle$avatar = jssStyle.avatar) === null || _jssStyle$avatar === void 0 ? void 0 : _jssStyle$avatar.call(jssStyle)) || {};
|
|
45
|
+
|
|
46
|
+
// Pass 'root' key semantic to child Avatars via Context
|
|
47
|
+
var childSemClass = function childSemClass(key) {
|
|
48
|
+
if (key === 'root') return semClass('root');
|
|
49
|
+
return undefined;
|
|
50
|
+
};
|
|
51
|
+
var childSemStyle = function childSemStyle(key) {
|
|
52
|
+
if (key === 'root') return semStyle('root');
|
|
53
|
+
return undefined;
|
|
54
|
+
};
|
|
29
55
|
var children = Children.toArray(childrenProp).map(function (child, index) {
|
|
30
56
|
return /*#__PURE__*/cloneElement(child, {
|
|
31
57
|
key: "avatar-key-".concat(index)
|
|
32
58
|
});
|
|
33
59
|
});
|
|
34
60
|
var childrenNumber = children.length;
|
|
61
|
+
var groupClass = classNames(avatarGroupClasses.group, semClass('group'));
|
|
62
|
+
var groupSemStyle = semStyle('group');
|
|
63
|
+
var providerValue = {
|
|
64
|
+
shape: shape,
|
|
65
|
+
size: size,
|
|
66
|
+
semClass: childSemClass,
|
|
67
|
+
semStyle: childSemStyle
|
|
68
|
+
};
|
|
35
69
|
if (max && max < childrenNumber) {
|
|
36
70
|
var childrenShow = children.slice(0, max);
|
|
37
71
|
var childrenHidden = children.slice(max, childrenNumber);
|
|
@@ -56,22 +90,20 @@ var AvatarGroup = function AvatarGroup(props) {
|
|
|
56
90
|
}))]
|
|
57
91
|
}, "more-avatar"));
|
|
58
92
|
}
|
|
59
|
-
return /*#__PURE__*/_jsx(AvatarProvider, {
|
|
60
|
-
shape: shape,
|
|
61
|
-
size: size,
|
|
93
|
+
return /*#__PURE__*/_jsx(AvatarProvider, _objectSpread(_objectSpread({}, providerValue), {}, {
|
|
62
94
|
children: /*#__PURE__*/_jsx("div", {
|
|
63
|
-
className:
|
|
95
|
+
className: groupClass,
|
|
96
|
+
style: groupSemStyle,
|
|
64
97
|
children: childrenShow
|
|
65
98
|
})
|
|
66
|
-
});
|
|
99
|
+
}));
|
|
67
100
|
}
|
|
68
|
-
return /*#__PURE__*/_jsx(AvatarProvider, {
|
|
69
|
-
shape: shape,
|
|
70
|
-
size: size,
|
|
101
|
+
return /*#__PURE__*/_jsx(AvatarProvider, _objectSpread(_objectSpread({}, providerValue), {}, {
|
|
71
102
|
children: /*#__PURE__*/_jsx("div", {
|
|
72
|
-
className:
|
|
103
|
+
className: groupClass,
|
|
104
|
+
style: groupSemStyle,
|
|
73
105
|
children: children
|
|
74
106
|
})
|
|
75
|
-
});
|
|
107
|
+
}));
|
|
76
108
|
};
|
|
77
109
|
export default AvatarGroup;
|
package/esm/avatar/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default, default as Avatar } from './avatar';
|
|
2
|
-
export type { AvatarProps } from './avatar.type';
|
|
2
|
+
export type { AvatarProps, AvatarSemanticKey, AvatarGroupSemanticKey } from './avatar.type';
|
|
3
3
|
export { default as AvatarGroup } from './group';
|
|
4
4
|
export type { AvatarGroupProps } from './avatar.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,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5F,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
package/esm/badge/badge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["badge.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["badge.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAkC,MAAM,cAAc,CAAC;AAI1E,QAAA,MAAM,KAAK,UAAW,UAAU,4CAqH/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/esm/badge/badge.js
CHANGED
|
@@ -4,9 +4,17 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
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
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
13
|
import { util } from '@sheinx/hooks';
|
|
8
14
|
import React from 'react';
|
|
9
15
|
import classNames from 'classnames';
|
|
16
|
+
import { useConfig } from "../config";
|
|
17
|
+
import { useSemantic } from "../common";
|
|
10
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
19
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -23,11 +31,20 @@ var Badge = function Badge(props) {
|
|
|
23
31
|
status = props.status,
|
|
24
32
|
showZero = props.showZero,
|
|
25
33
|
color = props.color,
|
|
26
|
-
text = props.text
|
|
34
|
+
text = props.text,
|
|
35
|
+
classNamesProp = props.classNames,
|
|
36
|
+
stylesProp = props.styles;
|
|
27
37
|
var badgeStyle = (jssStyle === null || jssStyle === void 0 || (_jssStyle$badge = jssStyle.badge) === null || _jssStyle$badge === void 0 ? void 0 : _jssStyle$badge.call(jssStyle)) || {};
|
|
38
|
+
|
|
39
|
+
// Semantic DOM
|
|
40
|
+
var config = useConfig();
|
|
41
|
+
var _useSemantic = useSemantic(classNamesProp, stylesProp, config.badge),
|
|
42
|
+
_useSemantic2 = _slicedToArray(_useSemantic, 2),
|
|
43
|
+
semClass = _useSemantic2[0],
|
|
44
|
+
semStyle = _useSemantic2[1];
|
|
28
45
|
var isTextBadge = text !== undefined || dot && children === undefined;
|
|
29
46
|
var isStandalone = !children && !isTextBadge;
|
|
30
|
-
var rootClass = classNames(className, badgeStyle.rootClass, badgeStyle.badge, isTextBadge && badgeStyle.textBadge, isStandalone && badgeStyle.standalone);
|
|
47
|
+
var rootClass = classNames(className, badgeStyle.rootClass, badgeStyle.badge, isTextBadge && badgeStyle.textBadge, isStandalone && badgeStyle.standalone, semClass('root'));
|
|
31
48
|
var isOverflowCount = overflowCount !== undefined && Number(count) > overflowCount;
|
|
32
49
|
var renderCount = function renderCount() {
|
|
33
50
|
if (isOverflowCount) {
|
|
@@ -64,22 +81,25 @@ var Badge = function Badge(props) {
|
|
|
64
81
|
return /*#__PURE__*/_jsx("sup", {
|
|
65
82
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
66
83
|
background: color
|
|
67
|
-
}),
|
|
68
|
-
className: badgeStyle.custom,
|
|
84
|
+
}, semStyle('badge')),
|
|
85
|
+
className: classNames(badgeStyle.custom, semClass('badge')),
|
|
69
86
|
children: countNode
|
|
70
87
|
});
|
|
71
88
|
}
|
|
72
89
|
return /*#__PURE__*/_jsx("sup", {
|
|
73
90
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
74
91
|
background: color
|
|
75
|
-
}),
|
|
76
|
-
className: classNames(size === 'small' && badgeStyle.small, dot ? badgeStyle.dot : badgeStyle.count, supClass, status && dot && _defineProperty({}, badgeStyle[status], true)),
|
|
92
|
+
}, semStyle('badge')),
|
|
93
|
+
className: classNames(size === 'small' && badgeStyle.small, dot ? badgeStyle.dot : badgeStyle.count, supClass, status && dot && _defineProperty({}, badgeStyle[status], true), semClass('badge')),
|
|
77
94
|
children: dot !== true && countNode
|
|
78
95
|
});
|
|
79
96
|
};
|
|
80
97
|
var renderText = function renderText() {
|
|
81
98
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
82
99
|
children: [/*#__PURE__*/_jsx("span", {
|
|
100
|
+
style: {
|
|
101
|
+
background: color
|
|
102
|
+
},
|
|
83
103
|
className: classNames(badgeStyle.textDot, status && _defineProperty({}, badgeStyle[status], true))
|
|
84
104
|
}), text !== undefined && /*#__PURE__*/_jsx("span", {
|
|
85
105
|
className: badgeStyle.text,
|
|
@@ -89,6 +109,7 @@ var Badge = function Badge(props) {
|
|
|
89
109
|
};
|
|
90
110
|
return /*#__PURE__*/_jsxs("span", {
|
|
91
111
|
className: rootClass,
|
|
112
|
+
style: semStyle('root'),
|
|
92
113
|
children: [!isTextBadge && children, !isTextBadge && renderSup(), isTextBadge && renderText()]
|
|
93
114
|
});
|
|
94
115
|
};
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CommonType } from '../common/type';
|
|
3
|
+
import type { SemanticClassNames, SemanticStyles } from '../common/use-semantic';
|
|
4
|
+
/**
|
|
5
|
+
* Badge Semantic DOM key 列表
|
|
6
|
+
* - root: 最外层容器
|
|
7
|
+
* - badge: 右上角徽标元素(数字/圆点/自定义内容)
|
|
8
|
+
*
|
|
9
|
+
* @see /docs/rfc/0001-semantic-dom.md
|
|
10
|
+
*/
|
|
11
|
+
export type BadgeSemanticKey = 'root' | 'badge';
|
|
3
12
|
export interface BadgeClasses {
|
|
4
13
|
rootClass: string;
|
|
5
14
|
badge: string;
|
|
@@ -26,6 +35,18 @@ export interface BadgeProps extends Pick<CommonType, 'className' | 'style'> {
|
|
|
26
35
|
jssStyle?: {
|
|
27
36
|
badge: () => BadgeClasses;
|
|
28
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* @en Semantic DOM classNames for internal nodes.
|
|
40
|
+
* @cn 语义化 DOM 类名,用于定制内部节点样式。
|
|
41
|
+
* @version 3.10.0
|
|
42
|
+
*/
|
|
43
|
+
classNames?: SemanticClassNames<BadgeSemanticKey>;
|
|
44
|
+
/**
|
|
45
|
+
* @en Semantic DOM styles for internal nodes.
|
|
46
|
+
* @cn 语义化 DOM 行内样式,用于定制内部节点样式。
|
|
47
|
+
* @version 3.10.0
|
|
48
|
+
*/
|
|
49
|
+
styles?: SemanticStyles<BadgeSemanticKey>;
|
|
29
50
|
/**
|
|
30
51
|
* @en Content
|
|
31
52
|
* @cn 内容
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.type.d.ts","sourceRoot":"","sources":["badge.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"badge.type.d.ts","sourceRoot":"","sources":["badge.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEjF;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhD,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;IACzE,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,YAAY,CAAC;KAC3B,CAAC;IAEF;;;;OAIG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAElD;;;;OAIG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAE;IACrE;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5B"}
|
package/esm/badge/index.d.ts
CHANGED
package/esm/badge/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BorderBeamEffectProps {
|
|
3
|
+
host: HTMLElement | null;
|
|
4
|
+
rootClassName?: string;
|
|
5
|
+
beamClassName?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const BorderBeamEffect: ({ host, rootClassName, beamClassName, className, style, }: BorderBeamEffectProps) => React.ReactPortal | null;
|
|
10
|
+
export default BorderBeamEffect;
|
|
11
|
+
//# sourceMappingURL=border-beam-effect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"border-beam-effect.d.ts","sourceRoot":"","sources":["border-beam-effect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,QAAA,MAAM,gBAAgB,8DAMnB,qBAAqB,6BAUvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
var BorderBeamEffect = function BorderBeamEffect(_ref) {
|
|
6
|
+
var host = _ref.host,
|
|
7
|
+
rootClassName = _ref.rootClassName,
|
|
8
|
+
beamClassName = _ref.beamClassName,
|
|
9
|
+
className = _ref.className,
|
|
10
|
+
style = _ref.style;
|
|
11
|
+
if (!host) return null;
|
|
12
|
+
return /*#__PURE__*/createPortal( /*#__PURE__*/_jsx("div", {
|
|
13
|
+
"aria-hidden": "true",
|
|
14
|
+
className: classNames(rootClassName, beamClassName, className),
|
|
15
|
+
style: style
|
|
16
|
+
}), host);
|
|
17
|
+
};
|
|
18
|
+
export default BorderBeamEffect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"border-beam.d.ts","sourceRoot":"","sources":["border-beam.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAa7E,QAAA,MAAM,UAAU,UAAW,eAAe,4CAmCzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import BorderBeamEffect from "./border-beam-effect";
|
|
15
|
+
import useBorderSize from "./use-border-size";
|
|
16
|
+
import useChildDom from "./use-child-dom";
|
|
17
|
+
import { BORDER_BEAM_CSS_VARIABLES, getBorderBeamGradient, getBorderBeamInset, toCssUnit } from "./util";
|
|
18
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
var BorderBeam = function BorderBeam(props) {
|
|
22
|
+
var _jssStyle$borderBeam;
|
|
23
|
+
var children = props.children,
|
|
24
|
+
className = props.className,
|
|
25
|
+
style = props.style,
|
|
26
|
+
color = props.color,
|
|
27
|
+
duration = props.duration,
|
|
28
|
+
lineWidth = props.lineWidth,
|
|
29
|
+
outset = props.outset,
|
|
30
|
+
size = props.size,
|
|
31
|
+
jssStyle = props.jssStyle;
|
|
32
|
+
var classes = (jssStyle === null || jssStyle === void 0 || (_jssStyle$borderBeam = jssStyle.borderBeam) === null || _jssStyle$borderBeam === void 0 ? void 0 : _jssStyle$borderBeam.call(jssStyle)) || {};
|
|
33
|
+
var _useChildDom = useChildDom(children),
|
|
34
|
+
_useChildDom2 = _slicedToArray(_useChildDom, 2),
|
|
35
|
+
childNode = _useChildDom2[0],
|
|
36
|
+
host = _useChildDom2[1];
|
|
37
|
+
var _useBorderSize = useBorderSize(host),
|
|
38
|
+
borderWidth = _useBorderSize.borderWidth,
|
|
39
|
+
borderRadius = _useBorderSize.borderRadius;
|
|
40
|
+
var gradient = React.useMemo(function () {
|
|
41
|
+
return getBorderBeamGradient(color);
|
|
42
|
+
}, [color]);
|
|
43
|
+
var effectStyle = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, style), gradient ? _defineProperty({}, BORDER_BEAM_CSS_VARIABLES.gradient, gradient) : {}), typeof duration === 'number' && duration > 0 ? _defineProperty({}, BORDER_BEAM_CSS_VARIABLES.duration, duration + 's') : {}), lineWidth !== undefined && lineWidth !== null ? _defineProperty({}, BORDER_BEAM_CSS_VARIABLES.lineWidth, toCssUnit(lineWidth)) : {}), size !== undefined && size !== null ? _defineProperty({}, BORDER_BEAM_CSS_VARIABLES.size, toCssUnit(size)) : {}), {}, _defineProperty(_defineProperty({}, BORDER_BEAM_CSS_VARIABLES.insetOffset, getBorderBeamInset(outset, borderWidth)), BORDER_BEAM_CSS_VARIABLES.borderRadius, borderRadius));
|
|
44
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
45
|
+
children: [childNode, /*#__PURE__*/_jsx(BorderBeamEffect, {
|
|
46
|
+
host: host,
|
|
47
|
+
rootClassName: classes.rootClass,
|
|
48
|
+
beamClassName: classes.beam,
|
|
49
|
+
className: className,
|
|
50
|
+
style: effectStyle
|
|
51
|
+
})]
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
export default BorderBeam;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CommonType } from '../common/type';
|
|
3
|
+
export interface BorderBeamGradientItem {
|
|
4
|
+
color: string;
|
|
5
|
+
percent: number;
|
|
6
|
+
}
|
|
7
|
+
export type BorderBeamGradient = BorderBeamGradientItem[];
|
|
8
|
+
export type BorderBeamColor = string | BorderBeamGradient;
|
|
9
|
+
export interface BorderBeamClasses {
|
|
10
|
+
rootClass: string;
|
|
11
|
+
beam: string;
|
|
12
|
+
'@keyframes borderBeamMove': string;
|
|
13
|
+
}
|
|
14
|
+
export interface BorderBeamStyle {
|
|
15
|
+
borderBeam?: () => BorderBeamClasses;
|
|
16
|
+
}
|
|
17
|
+
export interface BorderBeamProps extends Pick<CommonType, 'className' | 'style'> {
|
|
18
|
+
/**
|
|
19
|
+
* @en Decorated content
|
|
20
|
+
* @cn 需要添加边框流光的内容
|
|
21
|
+
*/
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* @en Beam color. A gradient stop percent uses the 0 to 100 input range.
|
|
25
|
+
* @cn 流光颜色。渐变停靠点 percent 使用 0 到 100 的输入区间。
|
|
26
|
+
*/
|
|
27
|
+
color?: BorderBeamColor;
|
|
28
|
+
/**
|
|
29
|
+
* @en Time in seconds for the beam to complete one loop
|
|
30
|
+
* @cn 流光完成一圈动画的时间,单位为秒
|
|
31
|
+
* @default 6
|
|
32
|
+
*/
|
|
33
|
+
duration?: number;
|
|
34
|
+
/**
|
|
35
|
+
* @en Beam line width. Numbers are treated as pixels.
|
|
36
|
+
* @cn 流光线宽,数字按像素处理
|
|
37
|
+
* @default 1px
|
|
38
|
+
*/
|
|
39
|
+
lineWidth?: number | string;
|
|
40
|
+
/**
|
|
41
|
+
* @en Distance that the beam expands beyond the host edge. Numbers are treated as pixels.
|
|
42
|
+
* @cn 流光层相对宿主边缘的外扩距离,数字按像素处理
|
|
43
|
+
*/
|
|
44
|
+
outset?: number | string;
|
|
45
|
+
/**
|
|
46
|
+
* @en Visible beam segment size. Numbers are treated as pixels.
|
|
47
|
+
* @cn 可见流光段尺寸,数字按像素处理
|
|
48
|
+
* @default 100px
|
|
49
|
+
*/
|
|
50
|
+
size?: number | string;
|
|
51
|
+
/**
|
|
52
|
+
* @private
|
|
53
|
+
*/
|
|
54
|
+
jssStyle?: BorderBeamStyle;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=border-beam.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"border-beam.type.d.ts","sourceRoot":"","sources":["border-beam.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,EAAE,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,kBAAkB,CAAC;AAE1D,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B,EAAE,MAAM,CAAC;CACrC;AAED,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,OAAO,CAAC;IAC9E;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/D,YAAY,EACV,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,GAChB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BorderWidth } from './util';
|
|
2
|
+
export interface BorderInfo {
|
|
3
|
+
borderWidth: BorderWidth;
|
|
4
|
+
borderRadius: string;
|
|
5
|
+
}
|
|
6
|
+
declare const useBorderSize: (host: HTMLElement | null) => BorderInfo;
|
|
7
|
+
export default useBorderSize;
|
|
8
|
+
//# sourceMappingURL=use-border-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-border-size.d.ts","sourceRoot":"","sources":["use-border-size.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;CACtB;AAYD,QAAA,MAAM,aAAa,SAAU,WAAW,GAAG,IAAI,eA0B9C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
var DEFAULT_BORDER_INFO = {
|
|
9
|
+
borderWidth: [0, 0, 0, 0],
|
|
10
|
+
borderRadius: '0px'
|
|
11
|
+
};
|
|
12
|
+
var parseBorderWidth = function parseBorderWidth(value) {
|
|
13
|
+
var width = Number.parseFloat(value);
|
|
14
|
+
return Number.isFinite(width) ? width : 0;
|
|
15
|
+
};
|
|
16
|
+
var useBorderSize = function useBorderSize(host) {
|
|
17
|
+
var _React$useState = React.useState(DEFAULT_BORDER_INFO),
|
|
18
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
19
|
+
borderInfo = _React$useState2[0],
|
|
20
|
+
setBorderInfo = _React$useState2[1];
|
|
21
|
+
React.useEffect(function () {
|
|
22
|
+
if (!host) {
|
|
23
|
+
setBorderInfo(DEFAULT_BORDER_INFO);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
var view = host.ownerDocument.defaultView;
|
|
27
|
+
if (!view) {
|
|
28
|
+
setBorderInfo(DEFAULT_BORDER_INFO);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
var style = view.getComputedStyle(host);
|
|
32
|
+
setBorderInfo({
|
|
33
|
+
borderWidth: [parseBorderWidth(style.borderTopWidth), parseBorderWidth(style.borderRightWidth), parseBorderWidth(style.borderBottomWidth), parseBorderWidth(style.borderLeftWidth)],
|
|
34
|
+
borderRadius: style.borderRadius || '0px'
|
|
35
|
+
});
|
|
36
|
+
}, [host]);
|
|
37
|
+
return borderInfo;
|
|
38
|
+
};
|
|
39
|
+
export default useBorderSize;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const canElementAcceptRef: (element: React.ReactElement, reactMajorVersion?: number) => boolean;
|
|
3
|
+
type RefCleanup = () => void;
|
|
4
|
+
type CleanupRef<T> = (instance: T | null) => void | RefCleanup;
|
|
5
|
+
type CompatibleRef<T> = React.Ref<T> | CleanupRef<T> | null | undefined;
|
|
6
|
+
export declare const mergeRefs: <T>(...refs: CompatibleRef<T>[]) => (node: T | null) => void | RefCleanup;
|
|
7
|
+
declare const useChildDom: (children: React.ReactNode) => [React.ReactNode, HTMLElement | null];
|
|
8
|
+
export default useChildDom;
|
|
9
|
+
//# sourceMappingURL=use-child-dom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-child-dom.d.ts","sourceRoot":"","sources":["use-child-dom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,eAAO,MAAM,mBAAmB,YACrB,MAAM,YAAY,iCAE1B,OAGF,CAAC;AAmBF,KAAK,UAAU,GAAG,MAAM,IAAI,CAAC;AAC7B,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,GAAG,UAAU,CAAC;AAC/D,KAAK,aAAa,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AAExE,eAAO,MAAM,SAAS,0DACK,IAAI,GAAG,UAsCjC,CAAC;AAEF,QAAA,MAAM,WAAW,aAAc,MAAM,SAAS,KAAG,CAAC,MAAM,SAAS,EAAE,WAAW,GAAG,IAAI,CAmBpF,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
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); }
|
|
8
|
+
import React from 'react';
|
|
9
|
+
var FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
10
|
+
var MEMO_TYPE = Symbol.for('react.memo');
|
|
11
|
+
var canAcceptRefType = function canAcceptRefType(type) {
|
|
12
|
+
if (typeof type === 'string') return true;
|
|
13
|
+
if (typeof type === 'function') {
|
|
14
|
+
var _prototype;
|
|
15
|
+
return Boolean((_prototype = type.prototype) === null || _prototype === void 0 ? void 0 : _prototype.isReactComponent);
|
|
16
|
+
}
|
|
17
|
+
if (!type || _typeof(type) !== 'object') return false;
|
|
18
|
+
var candidate = type;
|
|
19
|
+
if (candidate.$$typeof === FORWARD_REF_TYPE) return true;
|
|
20
|
+
return candidate.$$typeof === MEMO_TYPE ? canAcceptRefType(candidate.type) : false;
|
|
21
|
+
};
|
|
22
|
+
var getReactMajorVersion = function getReactMajorVersion() {
|
|
23
|
+
return Number.parseInt(React.version, 10);
|
|
24
|
+
};
|
|
25
|
+
export var canElementAcceptRef = function canElementAcceptRef(element) {
|
|
26
|
+
var reactMajorVersion = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getReactMajorVersion();
|
|
27
|
+
if (element.type === React.Fragment) return false;
|
|
28
|
+
return reactMajorVersion >= 19 || canAcceptRefType(element.type);
|
|
29
|
+
};
|
|
30
|
+
var getElementRef = function getElementRef(element) {
|
|
31
|
+
return getReactMajorVersion() >= 19 ? element.props.ref : element.ref;
|
|
32
|
+
};
|
|
33
|
+
var toHost = function toHost(node) {
|
|
34
|
+
var candidate = node && _typeof(node) === 'object' && 'nativeElement' in node ? node.nativeElement : node;
|
|
35
|
+
return typeof HTMLElement !== 'undefined' && candidate instanceof HTMLElement ? candidate : null;
|
|
36
|
+
};
|
|
37
|
+
export var mergeRefs = function mergeRefs() {
|
|
38
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
39
|
+
refs[_key] = arguments[_key];
|
|
40
|
+
}
|
|
41
|
+
return function (node) {
|
|
42
|
+
var callbackRefsWithoutCleanup = [];
|
|
43
|
+
var objectRefs = [];
|
|
44
|
+
var cleanups = [];
|
|
45
|
+
refs.forEach(function (ref) {
|
|
46
|
+
if (typeof ref === 'function') {
|
|
47
|
+
var cleanup = ref(node);
|
|
48
|
+
if (typeof cleanup === 'function') {
|
|
49
|
+
cleanups.push(cleanup);
|
|
50
|
+
} else {
|
|
51
|
+
callbackRefsWithoutCleanup.push(ref);
|
|
52
|
+
}
|
|
53
|
+
} else if (ref) {
|
|
54
|
+
var objectRef = ref;
|
|
55
|
+
objectRef.current = node;
|
|
56
|
+
objectRefs.push(objectRef);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
if (!cleanups.length) return;
|
|
60
|
+
return function () {
|
|
61
|
+
var error;
|
|
62
|
+
cleanups.forEach(function (cleanup) {
|
|
63
|
+
try {
|
|
64
|
+
cleanup();
|
|
65
|
+
} catch (cleanupError) {
|
|
66
|
+
error || (error = cleanupError);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
callbackRefsWithoutCleanup.forEach(function (ref) {
|
|
70
|
+
return ref(null);
|
|
71
|
+
});
|
|
72
|
+
objectRefs.forEach(function (ref) {
|
|
73
|
+
ref.current = null;
|
|
74
|
+
});
|
|
75
|
+
if (error) throw error;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
var useChildDom = function useChildDom(children) {
|
|
80
|
+
var _React$useState = React.useState(null),
|
|
81
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
82
|
+
host = _React$useState2[0],
|
|
83
|
+
setHost = _React$useState2[1];
|
|
84
|
+
var child = /*#__PURE__*/React.isValidElement(children) ? children : null;
|
|
85
|
+
var canAcceptRef = Boolean(child && canElementAcceptRef(child));
|
|
86
|
+
var childRef = child && canAcceptRef ? getElementRef(child) : undefined;
|
|
87
|
+
var internalRef = React.useCallback(function (node) {
|
|
88
|
+
var nextHost = toHost(node);
|
|
89
|
+
setHost(function (currentHost) {
|
|
90
|
+
return currentHost === nextHost ? currentHost : nextHost;
|
|
91
|
+
});
|
|
92
|
+
}, []);
|
|
93
|
+
var mergedRef = React.useMemo(function () {
|
|
94
|
+
return mergeRefs(childRef, internalRef);
|
|
95
|
+
}, [childRef]);
|
|
96
|
+
if (!child || !canAcceptRef) return [children, null];
|
|
97
|
+
return [/*#__PURE__*/React.cloneElement(child, {
|
|
98
|
+
ref: mergedRef
|
|
99
|
+
}), host];
|
|
100
|
+
};
|
|
101
|
+
export default useChildDom;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BorderBeamColor } from './border-beam.type';
|
|
2
|
+
export type BorderWidth = readonly [number, number, number, number];
|
|
3
|
+
export declare const DEFAULT_BORDER_BEAM_DURATION = 6;
|
|
4
|
+
export declare const MAX_BEAM_COLOR_STOP_PERCENT = 70;
|
|
5
|
+
export declare const BORDER_BEAM_CSS_VARIABLES: {
|
|
6
|
+
readonly gradient: "--soui-border-beam-gradient";
|
|
7
|
+
readonly duration: "--soui-border-beam-duration";
|
|
8
|
+
readonly lineWidth: "--soui-border-beam-line-width";
|
|
9
|
+
readonly size: "--soui-border-beam-size";
|
|
10
|
+
readonly insetOffset: "--soui-border-beam-inset-offset";
|
|
11
|
+
readonly borderRadius: "--soui-border-beam-border-radius";
|
|
12
|
+
};
|
|
13
|
+
export declare const getBorderBeamGradient: (value?: BorderBeamColor) => string | undefined;
|
|
14
|
+
export declare const toCssUnit: (value: number | string) => string;
|
|
15
|
+
export declare const getBorderBeamInset: (outset: number | string | null | undefined, borderWidth: BorderWidth) => string;
|
|
16
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAsB,MAAM,oBAAoB,CAAC;AAE9E,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAE9C,eAAO,MAAM,yBAAyB;;;;;;;CAO5B,CAAC;AAWX,eAAO,MAAM,qBAAqB,WAAY,eAAe,uBAQ5D,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,GAAG,MAAM,WACE,CAAC;AAKnD,eAAO,MAAM,kBAAkB,WACrB,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,qCAGsD,CAAC"}
|