kui-vue 6.2.2 → 6.3.1
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/ai/kui-components.json +1016 -457
- package/dist/index.js +2 -2
- package/es/index.js +6225 -4909
- package/es/locale/de.js +6 -2
- package/es/locale/el.js +6 -2
- package/es/locale/en.js +6 -2
- package/es/locale/fr.js +6 -2
- package/es/locale/it.js +6 -2
- package/es/locale/ja.js +6 -2
- package/es/locale/ko.js +6 -2
- package/es/locale/ru.js +6 -2
- package/es/locale/th.js +6 -2
- package/es/locale/uk.js +6 -2
- package/es/locale/vi.js +6 -2
- package/es/locale/zh-CN.js +6 -2
- package/es/locale/zh-TW.js +6 -2
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +2 -2
- package/lib/locale/el.cjs +2 -2
- package/lib/locale/en.cjs +2 -2
- package/lib/locale/fr.cjs +2 -2
- package/lib/locale/it.cjs +2 -2
- package/lib/locale/ja.cjs +2 -2
- package/lib/locale/ko.cjs +2 -2
- package/lib/locale/ru.cjs +2 -2
- package/lib/locale/th.cjs +2 -2
- package/lib/locale/uk.cjs +2 -2
- package/lib/locale/vi.cjs +2 -2
- package/lib/locale/zh-CN.cjs +2 -2
- package/lib/locale/zh-TW.cjs +2 -2
- package/package.json +6 -5
- package/style/base.css +2 -2
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/motion.css +1 -1
- package/style/theme.css +2 -2
- package/types/affix/index.d.cts +42 -0
- package/types/alert/index.d.cts +84 -0
- package/types/alert/index.d.ts +6 -6
- package/types/anchor/anchor-link.d.cts +23 -0
- package/types/anchor/anchor.d.cts +58 -0
- package/types/anchor/anchor.d.ts +1 -1
- package/types/anchor/context.d.cts +8 -0
- package/types/anchor/index.d.cts +5 -0
- package/types/anchor/index.d.ts +4 -4
- package/types/auto-complete/index.d.cts +181 -0
- package/types/auto-complete/index.d.ts +53 -1
- package/types/avatar/avatar-group.d.cts +42 -0
- package/types/avatar/avatar-group.d.ts +1 -1
- package/types/avatar/avatar.d.cts +49 -0
- package/types/avatar/avatar.d.ts +2 -2
- package/types/avatar/context.d.cts +8 -0
- package/types/avatar/index.d.cts +5 -0
- package/types/avatar/index.d.ts +4 -4
- package/types/back-top/index.d.cts +60 -0
- package/types/badge/index.d.cts +45 -0
- package/types/badge/index.d.ts +8 -18
- package/types/base/transition.d.cts +3 -0
- package/types/breadcrumb/breadcrumb-item.d.cts +25 -0
- package/types/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/types/breadcrumb/breadcrumb.d.cts +22 -0
- package/types/breadcrumb/index.d.cts +5 -0
- package/types/breadcrumb/index.d.ts +4 -4
- package/types/button/button-group.d.cts +21 -0
- package/types/button/button-group.d.ts +1 -1
- package/types/button/button.d.cts +38 -0
- package/types/button/button.d.ts +4 -5
- package/types/button/index.d.cts +5 -0
- package/types/button/index.d.ts +4 -4
- package/types/calendar/index.d.cts +93 -0
- package/types/card/card-meta.d.cts +17 -0
- package/types/card/index.d.cts +76 -0
- package/types/card/index.d.ts +8 -8
- package/types/carousel/carousel-item.d.cts +2 -0
- package/types/carousel/carousel.d.cts +116 -0
- package/types/carousel/carousel.d.ts +1 -1
- package/types/carousel/drag.d.cts +19 -0
- package/types/carousel/index.d.cts +4 -0
- package/types/carousel/index.d.ts +3 -3
- package/types/cascader/index.d.cts +151 -0
- package/types/cascader/index.d.ts +30 -21
- package/types/cascader/types.d.cts +76 -0
- package/types/cascader/types.d.ts +7 -2
- package/types/check-card/check-card-group.d.cts +80 -0
- package/types/check-card/check-card-group.d.ts +5 -9
- package/types/check-card/check-card.d.cts +113 -0
- package/types/check-card/check-card.d.ts +6 -10
- package/types/check-card/context.d.cts +20 -0
- package/types/check-card/context.d.ts +3 -3
- package/types/check-card/index.d.cts +7 -0
- package/types/check-card/index.d.ts +5 -5
- package/types/check-card/types.d.cts +22 -0
- package/types/check-card/types.d.ts +3 -4
- package/types/checkbox/checkbox-group.d.cts +87 -0
- package/types/checkbox/checkbox-group.d.ts +6 -6
- package/types/checkbox/checkbox.d.cts +68 -0
- package/types/checkbox/checkbox.d.ts +3 -3
- package/types/checkbox/index.d.cts +7 -0
- package/types/checkbox/index.d.ts +5 -5
- package/types/checkbox/types.d.cts +12 -0
- package/types/collapse/collapse-panel.d.cts +21 -0
- package/types/collapse/collapse-panel.d.ts +1 -1
- package/types/collapse/collapse.d.cts +62 -0
- package/types/collapse/collapse.d.ts +6 -6
- package/types/collapse/context.d.cts +7 -0
- package/types/collapse/index.d.cts +6 -0
- package/types/collapse/index.d.ts +4 -4
- package/types/color-picker/alpha.d.cts +22 -0
- package/types/color-picker/hue.d.cts +21 -0
- package/types/color-picker/index.d.cts +228 -0
- package/types/color-picker/index.d.ts +31 -4
- package/types/color-picker/mode.d.cts +28 -0
- package/types/color-picker/mode.d.ts +2 -2
- package/types/color-picker/paint.d.cts +40 -0
- package/types/color-picker/presets.d.cts +22 -0
- package/types/color-picker/types.d.cts +1 -0
- package/types/components.d.cts +166 -0
- package/types/components.d.ts +166 -166
- package/types/config/context.d.cts +128 -0
- package/types/config/context.d.ts +102 -1
- package/types/config/index.d.cts +38 -0
- package/types/config/index.d.ts +2 -2
- package/types/config/popup-host.d.cts +6 -0
- package/types/config/popup.d.cts +4 -0
- package/types/const/types.d.cts +39 -0
- package/types/const/types.d.ts +12 -2
- package/types/const/var.d.cts +6 -0
- package/types/const/var.d.ts +6 -1
- package/types/date-picker/index.d.cts +334 -0
- package/types/date-picker/index.d.ts +21 -3
- package/types/descriptions/descriptions-item.d.cts +28 -0
- package/types/descriptions/descriptions-item.d.ts +1 -1
- package/types/descriptions/descriptions.d.cts +69 -0
- package/types/descriptions/descriptions.d.ts +1 -1
- package/types/descriptions/index.d.cts +6 -0
- package/types/descriptions/index.d.ts +4 -4
- package/types/directives/outsiteclick.d.cts +2 -0
- package/types/directives/resize.d.cts +3 -0
- package/types/directives/scroll.d.cts +2 -0
- package/types/divider/index.d.cts +42 -0
- package/types/divider/index.d.ts +1 -1
- package/types/drawer/index.d.cts +197 -0
- package/types/drawer/index.d.ts +22 -9
- package/types/dropdown/dropdown-button.d.cts +65 -0
- package/types/dropdown/dropdown-button.d.ts +24 -5
- package/types/dropdown/dropdown-context.d.cts +16 -0
- package/types/dropdown/dropdown-context.d.ts +5 -0
- package/types/dropdown/dropdown.d.cts +80 -0
- package/types/dropdown/dropdown.d.ts +17 -1
- package/types/dropdown/index.d.cts +6 -0
- package/types/dropdown/index.d.ts +4 -4
- package/types/dropdown/trigger.d.cts +13 -0
- package/types/dropdown/trigger.d.ts +4 -4
- package/types/empty/index.d.cts +12 -0
- package/types/feature-card/index.d.cts +101 -0
- package/types/feature-card/index.d.ts +6 -6
- package/types/feedback-panel/feedback-panel.d.cts +64 -0
- package/types/feedback-panel/feedback-panel.d.ts +7 -7
- package/types/feedback-panel/index.d.cts +4 -0
- package/types/feedback-panel/index.d.ts +3 -3
- package/types/flame-wrap/engine.d.cts +83 -0
- package/types/flame-wrap/engine.d.ts +18 -0
- package/types/flame-wrap/index.d.cts +81 -0
- package/types/flame-wrap/index.d.ts +1 -1
- package/types/flex/index.d.cts +44 -0
- package/types/flex/index.d.ts +3 -3
- package/types/flex/types.d.cts +4 -0
- package/types/flex/types.d.ts +1 -1
- package/types/form/context.d.cts +68 -0
- package/types/form/context.d.ts +4 -2
- package/types/form/form-item.d.cts +39 -0
- package/types/form/form-item.d.ts +2 -2
- package/types/form/form.d.cts +87 -0
- package/types/form/form.d.ts +2 -2
- package/types/form/index.d.cts +8 -0
- package/types/form/index.d.ts +6 -6
- package/types/form/types.d.cts +27 -0
- package/types/global.d.cts +516 -0
- package/types/global.d.ts +256 -0
- package/types/grid/grid-item.d.cts +25 -0
- package/types/grid/grid-item.d.ts +1 -1
- package/types/grid/grid.d.cts +44 -0
- package/types/grid/grid.d.ts +2 -2
- package/types/grid/index.d.cts +6 -0
- package/types/grid/index.d.ts +5 -5
- package/types/grid/useBreakpoint.d.cts +9 -0
- package/types/icon/index.d.cts +62 -0
- package/types/icon/index.d.ts +3 -3
- package/types/icon/types.d.cts +4 -0
- package/types/image/context.d.cts +9 -0
- package/types/image/context.d.ts +1 -1
- package/types/image/group.d.cts +11 -0
- package/types/image/image.d.cts +73 -0
- package/types/image/image.d.ts +6 -6
- package/types/image/index.d.cts +6 -0
- package/types/image/index.d.ts +5 -5
- package/types/image/instance.d.cts +17 -0
- package/types/image/instance.d.ts +1 -1
- package/types/image/preview.d.cts +47 -0
- package/types/image/preview.d.ts +1 -1
- package/types/image/utils.d.cts +6 -0
- package/types/index.d.cts +1 -1
- package/types/index.d.ts +1 -1
- package/types/input/index.d.cts +8 -0
- package/types/input/index.d.ts +6 -6
- package/types/input/input-base.d.cts +186 -0
- package/types/input/input-base.d.ts +2 -2
- package/types/input/input-box.d.cts +47 -0
- package/types/input/input-box.d.ts +1 -1
- package/types/input/input-group.d.cts +54 -0
- package/types/input/input-group.d.ts +3 -7
- package/types/input/input.d.cts +114 -0
- package/types/input/input.d.ts +19 -19
- package/types/input/textarea.d.cts +81 -0
- package/types/input/textarea.d.ts +1 -1
- package/types/input-number/index.d.cts +180 -0
- package/types/input-number/index.d.ts +39 -9
- package/types/input-otp/index.d.cts +4 -0
- package/types/input-otp/index.d.ts +3 -3
- package/types/input-otp/input-otp.d.cts +113 -0
- package/types/input-otp/input-otp.d.ts +3 -3
- package/types/input-otp/types.d.cts +1 -0
- package/types/input-tag/index.d.cts +118 -0
- package/types/input-tag/index.d.ts +1 -1
- package/types/kanban/index.d.cts +124 -0
- package/types/kanban/index.d.ts +5 -4
- package/types/layout/index.d.cts +136 -0
- package/types/layout/index.d.ts +1 -1
- package/types/list-panel/index.d.cts +79 -0
- package/types/list-panel/index.d.ts +7 -7
- package/types/loading/index.d.cts +11 -0
- package/types/locale/de.d.cts +4 -0
- package/types/locale/de.d.ts +4 -0
- package/types/locale/el.d.cts +4 -0
- package/types/locale/el.d.ts +4 -0
- package/types/locale/en.d.cts +4 -0
- package/types/locale/en.d.ts +4 -0
- package/types/locale/fr.d.cts +4 -0
- package/types/locale/fr.d.ts +4 -0
- package/types/locale/it.d.cts +4 -0
- package/types/locale/it.d.ts +4 -0
- package/types/locale/ja.d.cts +4 -0
- package/types/locale/ja.d.ts +4 -0
- package/types/locale/ko.d.cts +4 -0
- package/types/locale/ko.d.ts +4 -0
- package/types/locale/ru.d.cts +4 -0
- package/types/locale/ru.d.ts +4 -0
- package/types/locale/th.d.cts +4 -0
- package/types/locale/th.d.ts +4 -0
- package/types/locale/uk.d.cts +4 -0
- package/types/locale/uk.d.ts +4 -0
- package/types/locale/vi.d.cts +4 -0
- package/types/locale/vi.d.ts +4 -0
- package/types/locale/zh-CN.d.cts +4 -0
- package/types/locale/zh-CN.d.ts +4 -0
- package/types/locale/zh-TW.d.cts +4 -0
- package/types/locale/zh-TW.d.ts +4 -0
- package/types/mentions/index.d.cts +167 -0
- package/types/mentions/index.d.ts +17 -1
- package/types/menu/index.d.cts +8 -0
- package/types/menu/index.d.ts +6 -6
- package/types/menu/menu-context.d.cts +23 -0
- package/types/menu/menu-context.d.ts +1 -1
- package/types/menu/menu-divider.d.cts +2 -0
- package/types/menu/menu-group.d.cts +11 -0
- package/types/menu/menu-item.d.cts +23 -0
- package/types/menu/menu-item.d.ts +2 -2
- package/types/menu/menu-keyboard.d.cts +30 -0
- package/types/menu/menu-keyboard.d.ts +23 -0
- package/types/menu/menu.d.cts +99 -0
- package/types/menu/menu.d.ts +3 -3
- package/types/menu/recursive-menu.d.cts +14 -0
- package/types/menu/recursive-menu.d.ts +1 -1
- package/types/menu/sub-menu.d.cts +19 -0
- package/types/menu/sub-menu.d.ts +2 -2
- package/types/menu/types.d.cts +14 -0
- package/types/menu/types.d.ts +1 -1
- package/types/message/index.d.cts +26 -0
- package/types/message/index.d.ts +2 -2
- package/types/modal/index.d.cts +38 -0
- package/types/modal/index.d.ts +11 -5
- package/types/modal/modal.d.cts +178 -0
- package/types/modal/modal.d.ts +29 -6
- package/types/modal/toast.d.cts +37 -0
- package/types/modal/toast.d.ts +7 -7
- package/types/notice/container.d.cts +6 -0
- package/types/notice/content.d.cts +64 -0
- package/types/notice/content.d.ts +3 -3
- package/types/notice/index.d.cts +24 -0
- package/types/notice/index.d.ts +2 -2
- package/types/notice/instance.d.cts +8 -0
- package/types/notice/instance.d.ts +1 -1
- package/types/page/index.d.cts +143 -0
- package/types/page/index.d.ts +5 -5
- package/types/page/responsive.d.cts +1 -0
- package/types/page-header/index.d.cts +14 -0
- package/types/popconfirm/index.d.cts +82 -0
- package/types/popconfirm/index.d.ts +18 -2
- package/types/poptip/index.d.cts +80 -0
- package/types/poptip/index.d.ts +18 -2
- package/types/popup/index.d.cts +251 -0
- package/types/popup/index.d.ts +3 -3
- package/types/popup/layers.d.cts +11 -0
- package/types/popup/layers.d.ts +2 -0
- package/types/popup/types.d.cts +15 -0
- package/types/progress/index.d.cts +123 -0
- package/types/progress/index.d.ts +2 -2
- package/types/qrcode/index.d.cts +195 -0
- package/types/qrcode/index.d.ts +6 -6
- package/types/radio/index.d.cts +9 -0
- package/types/radio/index.d.ts +8 -8
- package/types/radio/radio-button.d.cts +84 -0
- package/types/radio/radio-button.d.ts +6 -6
- package/types/radio/radio-group.d.cts +36 -0
- package/types/radio/radio-group.d.ts +3 -3
- package/types/radio/radio.d.cts +84 -0
- package/types/radio/radio.d.ts +6 -6
- package/types/radio/types.d.cts +12 -0
- package/types/radio/types.d.ts +1 -1
- package/types/rate/index.d.cts +102 -0
- package/types/rate/index.d.ts +2 -2
- package/types/rate/star.d.cts +70 -0
- package/types/rate/star.d.ts +2 -2
- package/types/result/index.d.cts +4 -0
- package/types/result/index.d.ts +3 -3
- package/types/result/result.d.cts +34 -0
- package/types/result/result.d.ts +3 -3
- package/types/ripple/engine.d.cts +66 -0
- package/types/ripple/engine.d.ts +18 -0
- package/types/ripple/index.d.cts +42 -0
- package/types/ripple/index.d.ts +1 -1
- package/types/row-col/col.d.cts +52 -0
- package/types/row-col/index.d.cts +5 -0
- package/types/row-col/index.d.ts +4 -4
- package/types/row-col/row.d.cts +38 -0
- package/types/segmented/index.d.cts +49 -0
- package/types/segmented/index.d.ts +4 -3
- package/types/select/index.d.cts +6 -0
- package/types/select/index.d.ts +5 -5
- package/types/select/option.d.cts +53 -0
- package/types/select/option.d.ts +3 -3
- package/types/select/select.d.cts +81 -0
- package/types/select/select.d.ts +9 -4
- package/types/select/types.d.cts +12 -0
- package/types/skeleton/index.d.cts +11 -0
- package/types/skeleton/index.d.ts +10 -10
- package/types/skeleton/skeleton-avatar.d.cts +27 -0
- package/types/skeleton/skeleton-avatar.d.ts +9 -9
- package/types/skeleton/skeleton-button.d.cts +29 -0
- package/types/skeleton/skeleton-button.d.ts +11 -11
- package/types/skeleton/skeleton-image.d.cts +25 -0
- package/types/skeleton/skeleton-image.d.ts +5 -5
- package/types/skeleton/skeleton-text.d.cts +25 -0
- package/types/skeleton/skeleton-text.d.ts +7 -7
- package/types/skeleton/skeleton.d.cts +53 -0
- package/types/skeleton/skeleton.d.ts +9 -9
- package/types/skeleton/types.d.cts +71 -0
- package/types/skeleton/types.d.ts +1 -1
- package/types/skeleton/use-skeleton-loading.d.cts +2 -0
- package/types/slider/index.d.cts +66 -0
- package/types/slider/index.d.ts +1 -1
- package/types/slider/thumb.d.cts +70 -0
- package/types/slider/thumb.d.ts +1 -1
- package/types/space/index.d.cts +54 -0
- package/types/space/index.d.ts +1 -1
- package/types/spin/index.d.cts +71 -0
- package/types/spin/index.d.ts +1 -1
- package/types/splitter/index.d.cts +4 -0
- package/types/splitter/index.d.ts +2 -2
- package/types/splitter/splitter-panel.d.cts +35 -0
- package/types/splitter/splitter.d.cts +31 -0
- package/types/splitter/splitter.d.ts +1 -1
- package/types/stat-card/countup.d.cts +56 -0
- package/types/stat-card/index.d.cts +6 -0
- package/types/stat-card/index.d.ts +5 -5
- package/types/stat-card/rollup.d.cts +34 -0
- package/types/stat-card/stat-card.d.cts +120 -0
- package/types/stat-card/stat-card.d.ts +26 -8
- package/types/stat-card/stat-number.d.cts +110 -0
- package/types/stat-card/stat-number.d.ts +1 -1
- package/types/stat-card/types.d.cts +15 -0
- package/types/stat-card/utils/countup.d.cts +128 -0
- package/types/stat-card/utils/countup.d.ts +3 -3
- package/types/stat-card/utils/odometer.d.cts +17 -0
- package/types/stat-card/utils/odometer.d.ts +1 -1
- package/types/stat-card/utils/stat-item-key.d.cts +11 -0
- package/types/stat-card/utils/stat-item-key.d.ts +11 -0
- package/types/steps/index.d.cts +86 -0
- package/types/switch/index.d.cts +63 -0
- package/types/switch/index.d.ts +1 -1
- package/types/table/column-setting.d.cts +78 -0
- package/types/table/column-setting.d.ts +2 -2
- package/types/table/index.d.cts +262 -0
- package/types/table/index.d.ts +25 -9
- package/types/table/types.d.cts +39 -0
- package/types/table/types.d.ts +17 -1
- package/types/table/utils.d.cts +89 -0
- package/types/table/utils.d.ts +77 -1
- package/types/tabs/index.d.cts +6 -0
- package/types/tabs/index.d.ts +5 -5
- package/types/tabs/tab-panel.d.cts +22 -0
- package/types/tabs/tab-panel.d.ts +2 -2
- package/types/tabs/tabs.d.cts +51 -0
- package/types/tabs/tabs.d.ts +1 -1
- package/types/tabs/types.d.cts +16 -0
- package/types/tabs/types.d.ts +1 -1
- package/types/tag/index.d.cts +58 -0
- package/types/tag/index.d.ts +6 -6
- package/types/time-line/index.d.cts +6 -0
- package/types/time-line/index.d.ts +5 -5
- package/types/time-line/timeline-item.d.cts +21 -0
- package/types/time-line/timeline-item.d.ts +1 -1
- package/types/time-line/timeline.d.cts +27 -0
- package/types/time-line/timeline.d.ts +2 -2
- package/types/tooltip/index.d.cts +76 -0
- package/types/tooltip/index.d.ts +18 -2
- package/types/tour/index.d.cts +122 -0
- package/types/transfer/index.d.cts +129 -0
- package/types/transfer/index.d.ts +5 -4
- package/types/tree/context.d.cts +6 -0
- package/types/tree/index.d.cts +166 -0
- package/types/tree/index.d.ts +7 -7
- package/types/tree/types.d.cts +27 -0
- package/types/tree/types.d.ts +1 -1
- package/types/tree/utils.d.cts +33 -0
- package/types/tree/utils.d.ts +1 -1
- package/types/tree-select/index.d.cts +96 -0
- package/types/tree-select/index.d.ts +9 -4
- package/types/typography/index.d.cts +316 -0
- package/types/upload/file-list.d.cts +101 -0
- package/types/upload/file-list.d.ts +3 -3
- package/types/upload/index.d.cts +229 -0
- package/types/upload/index.d.ts +4 -4
- package/types/upload/picture-sort.d.cts +2 -0
- package/types/upload/selector.d.cts +82 -0
- package/types/upload/selector.d.ts +4 -4
- package/types/upload/types.d.cts +39 -0
- package/types/upload/types.d.ts +1 -1
- package/types/utils/checked.d.cts +2 -0
- package/types/utils/checked.d.ts +1 -1
- package/types/utils/color.d.cts +14 -0
- package/types/utils/color.d.ts +13 -0
- package/types/utils/css.d.cts +2 -0
- package/types/utils/element.d.cts +17 -0
- package/types/utils/focus.d.cts +5 -0
- package/types/utils/model-value.d.cts +10 -0
- package/types/utils/mouse.d.cts +1 -0
- package/types/utils/number.d.cts +6 -0
- package/types/utils/number.d.ts +1 -1
- package/types/utils/overlay-order.d.cts +6 -0
- package/types/utils/overlay-order.d.ts +6 -0
- package/types/utils/overlay-stack.d.cts +13 -0
- package/types/utils/overlay-stack.d.ts +13 -0
- package/types/utils/placement.d.cts +16 -0
- package/types/utils/popup.d.cts +11 -0
- package/types/utils/promise.d.cts +5 -0
- package/types/utils/promise.d.ts +5 -0
- package/types/utils/selection-tags.d.cts +18 -0
- package/types/utils/selection-tags.d.ts +1 -1
- package/types/utils/share.d.cts +12 -0
- package/types/utils/theme.d.cts +5 -0
- package/types/utils/vnode.d.cts +33 -0
- package/types/utils/vnode.d.ts +25 -0
- package/types/utils/vue.d.cts +17 -0
- package/types/virtual-list/index.d.cts +76 -0
- package/types/virtual-list/index.d.ts +1 -1
- package/types/virtual-list/range.d.cts +15 -0
- package/types/watermark/index.d.cts +188 -0
- package/types/watermark/index.d.ts +3 -3
- package/types/watermark/types.d.cts +11 -0
- package/vetur/attributes.json +533 -229
- package/vetur/tags.json +76 -28
- package/vetur/web-types.json +672 -288
package/types/radio/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import Radio from "./radio";
|
|
2
|
-
import RadioButton from "./radio-button";
|
|
3
|
-
import RadioGroup from "./radio-group";
|
|
4
|
-
export type { RadioProps } from "./radio";
|
|
5
|
-
export type { RadioButtonProps } from "./radio-button";
|
|
6
|
-
export type { RadioGroupProps } from "./radio-group";
|
|
7
|
-
export type { RadioOption } from "./types";
|
|
8
|
-
export type { ChangeEvent as RadioChangeEvent } from "./types";
|
|
1
|
+
import Radio from "./radio.js";
|
|
2
|
+
import RadioButton from "./radio-button.js";
|
|
3
|
+
import RadioGroup from "./radio-group.js";
|
|
4
|
+
export type { RadioProps } from "./radio.js";
|
|
5
|
+
export type { RadioButtonProps } from "./radio-button.js";
|
|
6
|
+
export type { RadioGroupProps } from "./radio-group.js";
|
|
7
|
+
export type { RadioOption } from "./types.js";
|
|
8
|
+
export type { ChangeEvent as RadioChangeEvent } from "./types.js";
|
|
9
9
|
export { Radio, RadioButton, RadioGroup };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.cjs";
|
|
3
|
+
import type { IconType } from "../icon/index.cjs";
|
|
4
|
+
import type { ChangeEvent } from "./types.cjs";
|
|
5
|
+
declare const radioButtonProps: {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
label: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
value: {
|
|
14
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
15
|
+
};
|
|
16
|
+
theme: PropType<SurfaceThemeType>;
|
|
17
|
+
disabled: BooleanType;
|
|
18
|
+
readonly: BooleanType;
|
|
19
|
+
checked: BooleanType;
|
|
20
|
+
icon: PropType<IconType[]>;
|
|
21
|
+
size: {
|
|
22
|
+
type: PropType<SizeType>;
|
|
23
|
+
};
|
|
24
|
+
shape: {
|
|
25
|
+
type: PropType<ShapeType>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>;
|
|
29
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
30
|
+
modelValue: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
label: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
value: {
|
|
38
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
39
|
+
};
|
|
40
|
+
theme: PropType<SurfaceThemeType>;
|
|
41
|
+
disabled: BooleanType;
|
|
42
|
+
readonly: BooleanType;
|
|
43
|
+
checked: BooleanType;
|
|
44
|
+
icon: PropType<IconType[]>;
|
|
45
|
+
size: {
|
|
46
|
+
type: PropType<SizeType>;
|
|
47
|
+
};
|
|
48
|
+
shape: {
|
|
49
|
+
type: PropType<ShapeType>;
|
|
50
|
+
};
|
|
51
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
|
+
change: (event: ChangeEvent) => boolean;
|
|
53
|
+
"update:modelValue": (value: boolean) => boolean;
|
|
54
|
+
"update:checked": (value: boolean) => boolean;
|
|
55
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
label: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
};
|
|
63
|
+
value: {
|
|
64
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
65
|
+
};
|
|
66
|
+
theme: PropType<SurfaceThemeType>;
|
|
67
|
+
disabled: BooleanType;
|
|
68
|
+
readonly: BooleanType;
|
|
69
|
+
checked: BooleanType;
|
|
70
|
+
icon: PropType<IconType[]>;
|
|
71
|
+
size: {
|
|
72
|
+
type: PropType<SizeType>;
|
|
73
|
+
};
|
|
74
|
+
shape: {
|
|
75
|
+
type: PropType<ShapeType>;
|
|
76
|
+
};
|
|
77
|
+
}>> & Readonly<{
|
|
78
|
+
onChange?: ((event: ChangeEvent) => any) | undefined;
|
|
79
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
80
|
+
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
modelValue: boolean;
|
|
83
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
-
import type { BooleanType, ShapeType, SizeType,
|
|
3
|
-
import type { IconType } from "../icon";
|
|
4
|
-
import type { ChangeEvent } from "./types";
|
|
2
|
+
import type { BooleanType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.js";
|
|
3
|
+
import type { IconType } from "../icon/index.js";
|
|
4
|
+
import type { ChangeEvent } from "./types.js";
|
|
5
5
|
declare const radioButtonProps: {
|
|
6
6
|
modelValue: {
|
|
7
7
|
type: BooleanConstructor;
|
|
@@ -13,7 +13,7 @@ declare const radioButtonProps: {
|
|
|
13
13
|
value: {
|
|
14
14
|
type: (NumberConstructor | StringConstructor)[];
|
|
15
15
|
};
|
|
16
|
-
theme: PropType<
|
|
16
|
+
theme: PropType<SurfaceThemeType>;
|
|
17
17
|
disabled: BooleanType;
|
|
18
18
|
readonly: BooleanType;
|
|
19
19
|
checked: BooleanType;
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
37
37
|
value: {
|
|
38
38
|
type: (NumberConstructor | StringConstructor)[];
|
|
39
39
|
};
|
|
40
|
-
theme: PropType<
|
|
40
|
+
theme: PropType<SurfaceThemeType>;
|
|
41
41
|
disabled: BooleanType;
|
|
42
42
|
readonly: BooleanType;
|
|
43
43
|
checked: BooleanType;
|
|
@@ -63,7 +63,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
63
63
|
value: {
|
|
64
64
|
type: (NumberConstructor | StringConstructor)[];
|
|
65
65
|
};
|
|
66
|
-
theme: PropType<
|
|
66
|
+
theme: PropType<SurfaceThemeType>;
|
|
67
67
|
disabled: BooleanType;
|
|
68
68
|
readonly: BooleanType;
|
|
69
69
|
checked: BooleanType;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, DirectionType, RadioType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.cjs";
|
|
3
|
+
import type { RadioOption } from "./types.cjs";
|
|
4
|
+
declare const radioGroupProps: {
|
|
5
|
+
modelValue: PropType<string | number>;
|
|
6
|
+
value: PropType<string | number>;
|
|
7
|
+
disabled: BooleanType;
|
|
8
|
+
readonly: BooleanType;
|
|
9
|
+
direction: {
|
|
10
|
+
type: PropType<DirectionType>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
type: PropType<SizeType>;
|
|
15
|
+
};
|
|
16
|
+
theme: {
|
|
17
|
+
type: PropType<SurfaceThemeType>;
|
|
18
|
+
};
|
|
19
|
+
shape: PropType<ShapeType>;
|
|
20
|
+
options: PropType<RadioOption[]>;
|
|
21
|
+
type: PropType<RadioType>;
|
|
22
|
+
};
|
|
23
|
+
export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
|
|
24
|
+
type RadioValue = string | number;
|
|
25
|
+
type RadioGroupPublicProps<T extends RadioValue> = Omit<Partial<RadioGroupProps>, "modelValue"> & {
|
|
26
|
+
modelValue?: T;
|
|
27
|
+
"onUpdate:modelValue"?: (value: T) => void;
|
|
28
|
+
onChange?: (value: T) => void;
|
|
29
|
+
};
|
|
30
|
+
type RadioGroupComponent = {
|
|
31
|
+
new <T extends RadioValue = RadioValue>(props: RadioGroupPublicProps<T>): {
|
|
32
|
+
$props: RadioGroupPublicProps<T>;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
declare const _default: RadioGroupComponent;
|
|
36
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
-
import type { BooleanType, DirectionType, RadioType, ShapeType, SizeType,
|
|
3
|
-
import type { RadioOption } from "./types";
|
|
2
|
+
import type { BooleanType, DirectionType, RadioType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.js";
|
|
3
|
+
import type { RadioOption } from "./types.js";
|
|
4
4
|
declare const radioGroupProps: {
|
|
5
5
|
modelValue: PropType<string | number>;
|
|
6
6
|
value: PropType<string | number>;
|
|
@@ -14,7 +14,7 @@ declare const radioGroupProps: {
|
|
|
14
14
|
type: PropType<SizeType>;
|
|
15
15
|
};
|
|
16
16
|
theme: {
|
|
17
|
-
type: PropType<
|
|
17
|
+
type: PropType<SurfaceThemeType>;
|
|
18
18
|
};
|
|
19
19
|
shape: PropType<ShapeType>;
|
|
20
20
|
options: PropType<RadioOption[]>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, SizeType, MarkThemeType } from "../const/types.cjs";
|
|
3
|
+
import type { ChangeEvent } from "./types.cjs";
|
|
4
|
+
declare const radioProps: {
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
value: {
|
|
10
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
11
|
+
};
|
|
12
|
+
name: StringConstructor;
|
|
13
|
+
label: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
checked: BooleanType;
|
|
17
|
+
disabled: BooleanType;
|
|
18
|
+
readonly: BooleanType;
|
|
19
|
+
theme: {
|
|
20
|
+
type: PropType<MarkThemeType>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
size: {
|
|
24
|
+
type: PropType<SizeType>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export type RadioProps = ExtractPropTypes<typeof radioProps>;
|
|
28
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
value: {
|
|
34
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
35
|
+
};
|
|
36
|
+
name: StringConstructor;
|
|
37
|
+
label: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
checked: BooleanType;
|
|
41
|
+
disabled: BooleanType;
|
|
42
|
+
readonly: BooleanType;
|
|
43
|
+
theme: {
|
|
44
|
+
type: PropType<MarkThemeType>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
size: {
|
|
48
|
+
type: PropType<SizeType>;
|
|
49
|
+
};
|
|
50
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
change: (event: ChangeEvent) => boolean;
|
|
52
|
+
"update:modelValue": (value: boolean) => boolean;
|
|
53
|
+
"update:checked": (value: boolean) => boolean;
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
55
|
+
modelValue: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
value: {
|
|
60
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
61
|
+
};
|
|
62
|
+
name: StringConstructor;
|
|
63
|
+
label: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
checked: BooleanType;
|
|
67
|
+
disabled: BooleanType;
|
|
68
|
+
readonly: BooleanType;
|
|
69
|
+
theme: {
|
|
70
|
+
type: PropType<MarkThemeType>;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
size: {
|
|
74
|
+
type: PropType<SizeType>;
|
|
75
|
+
};
|
|
76
|
+
}>> & Readonly<{
|
|
77
|
+
onChange?: ((event: ChangeEvent) => any) | undefined;
|
|
78
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
79
|
+
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
80
|
+
}>, {
|
|
81
|
+
theme: MarkThemeType;
|
|
82
|
+
modelValue: boolean;
|
|
83
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
|
+
export default _default;
|
package/types/radio/radio.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
-
import type { BooleanType, SizeType,
|
|
3
|
-
import type { ChangeEvent } from "./types";
|
|
2
|
+
import type { BooleanType, SizeType, MarkThemeType } from "../const/types.js";
|
|
3
|
+
import type { ChangeEvent } from "./types.js";
|
|
4
4
|
declare const radioProps: {
|
|
5
5
|
modelValue: {
|
|
6
6
|
type: BooleanConstructor;
|
|
@@ -17,7 +17,7 @@ declare const radioProps: {
|
|
|
17
17
|
disabled: BooleanType;
|
|
18
18
|
readonly: BooleanType;
|
|
19
19
|
theme: {
|
|
20
|
-
type: PropType<
|
|
20
|
+
type: PropType<MarkThemeType>;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
23
|
size: {
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
41
41
|
disabled: BooleanType;
|
|
42
42
|
readonly: BooleanType;
|
|
43
43
|
theme: {
|
|
44
|
-
type: PropType<
|
|
44
|
+
type: PropType<MarkThemeType>;
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
47
|
size: {
|
|
@@ -67,7 +67,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
67
67
|
disabled: BooleanType;
|
|
68
68
|
readonly: BooleanType;
|
|
69
69
|
theme: {
|
|
70
|
-
type: PropType<
|
|
70
|
+
type: PropType<MarkThemeType>;
|
|
71
71
|
default: string;
|
|
72
72
|
};
|
|
73
73
|
size: {
|
|
@@ -78,7 +78,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
78
78
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
79
79
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
80
80
|
}>, {
|
|
81
|
-
theme:
|
|
81
|
+
theme: MarkThemeType;
|
|
82
82
|
modelValue: boolean;
|
|
83
83
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
84
84
|
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IconType } from "../icon/index.cjs";
|
|
2
|
+
export interface ChangeEvent {
|
|
3
|
+
value?: string | number;
|
|
4
|
+
label: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface RadioOption {
|
|
8
|
+
label?: string;
|
|
9
|
+
value: string | number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
icon?: IconType[];
|
|
12
|
+
}
|
package/types/radio/types.d.ts
CHANGED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import { type BooleanType, type SizeType } from "../const/types.cjs";
|
|
3
|
+
import type { IconType } from "../icon/index.cjs";
|
|
4
|
+
declare const rateProps: {
|
|
5
|
+
modelValue: NumberConstructor;
|
|
6
|
+
value: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
default: number;
|
|
9
|
+
};
|
|
10
|
+
allowClear: {
|
|
11
|
+
type: BooleanType;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
allowHalf: BooleanType;
|
|
15
|
+
color: StringConstructor;
|
|
16
|
+
size: PropType<number | SizeType>;
|
|
17
|
+
showScore: BooleanType;
|
|
18
|
+
tooltips: PropType<string[]>;
|
|
19
|
+
disabled: BooleanType;
|
|
20
|
+
readonly: BooleanType;
|
|
21
|
+
count: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
26
|
+
icon: PropType<IconType[] | ((index: number) => IconType[])>;
|
|
27
|
+
symbolReverseFill: BooleanType;
|
|
28
|
+
strokeWidth: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
default: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export type RateProps = ExtractPropTypes<typeof rateProps>;
|
|
34
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
35
|
+
modelValue: NumberConstructor;
|
|
36
|
+
value: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
allowClear: {
|
|
41
|
+
type: BooleanType;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
allowHalf: BooleanType;
|
|
45
|
+
color: StringConstructor;
|
|
46
|
+
size: PropType<number | SizeType>;
|
|
47
|
+
showScore: BooleanType;
|
|
48
|
+
tooltips: PropType<string[]>;
|
|
49
|
+
disabled: BooleanType;
|
|
50
|
+
readonly: BooleanType;
|
|
51
|
+
count: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
56
|
+
icon: PropType<IconType[] | ((index: number) => IconType[])>;
|
|
57
|
+
symbolReverseFill: BooleanType;
|
|
58
|
+
strokeWidth: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
|
+
"update:modelValue": (value: number) => boolean;
|
|
64
|
+
change: (value: number) => boolean;
|
|
65
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
66
|
+
modelValue: NumberConstructor;
|
|
67
|
+
value: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
allowClear: {
|
|
72
|
+
type: BooleanType;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
allowHalf: BooleanType;
|
|
76
|
+
color: StringConstructor;
|
|
77
|
+
size: PropType<number | SizeType>;
|
|
78
|
+
showScore: BooleanType;
|
|
79
|
+
tooltips: PropType<string[]>;
|
|
80
|
+
disabled: BooleanType;
|
|
81
|
+
readonly: BooleanType;
|
|
82
|
+
count: {
|
|
83
|
+
type: NumberConstructor;
|
|
84
|
+
default: number;
|
|
85
|
+
};
|
|
86
|
+
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
87
|
+
icon: PropType<IconType[] | ((index: number) => IconType[])>;
|
|
88
|
+
symbolReverseFill: BooleanType;
|
|
89
|
+
strokeWidth: {
|
|
90
|
+
type: NumberConstructor;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
93
|
+
}>> & Readonly<{
|
|
94
|
+
onChange?: ((value: number) => any) | undefined;
|
|
95
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
96
|
+
}>, {
|
|
97
|
+
strokeWidth: number;
|
|
98
|
+
value: number;
|
|
99
|
+
count: number;
|
|
100
|
+
allowClear: boolean | undefined;
|
|
101
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
102
|
+
export default _default;
|
package/types/rate/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
-
import { type BooleanType, type SizeType } from "../const/types";
|
|
3
|
-
import type { IconType } from "../icon";
|
|
2
|
+
import { type BooleanType, type SizeType } from "../const/types.js";
|
|
3
|
+
import type { IconType } from "../icon/index.js";
|
|
4
4
|
declare const rateProps: {
|
|
5
5
|
modelValue: NumberConstructor;
|
|
6
6
|
value: {
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types.cjs";
|
|
3
|
+
import { type IconType } from "../icon/index.cjs";
|
|
4
|
+
declare const starProps: {
|
|
5
|
+
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
6
|
+
tooltips: StringConstructor;
|
|
7
|
+
percent: NumberConstructor;
|
|
8
|
+
full: BooleanType;
|
|
9
|
+
half: BooleanType;
|
|
10
|
+
allowHalf: BooleanType;
|
|
11
|
+
disabled: BooleanType;
|
|
12
|
+
icon: PropType<IconType[] | ((index: number) => IconType[])>;
|
|
13
|
+
size: PropType<number | string>;
|
|
14
|
+
index: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
symbolReverseFill: BooleanType;
|
|
19
|
+
strokeWidth: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type StarProps = ExtractPropTypes<typeof starProps>;
|
|
25
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
26
|
+
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
27
|
+
tooltips: StringConstructor;
|
|
28
|
+
percent: NumberConstructor;
|
|
29
|
+
full: BooleanType;
|
|
30
|
+
half: BooleanType;
|
|
31
|
+
allowHalf: BooleanType;
|
|
32
|
+
disabled: BooleanType;
|
|
33
|
+
icon: PropType<IconType[] | ((index: number) => IconType[])>;
|
|
34
|
+
size: PropType<number | string>;
|
|
35
|
+
index: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
symbolReverseFill: BooleanType;
|
|
40
|
+
strokeWidth: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
update: (type: "C" | "M", index: number, percent: number) => boolean;
|
|
46
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
47
|
+
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
48
|
+
tooltips: StringConstructor;
|
|
49
|
+
percent: NumberConstructor;
|
|
50
|
+
full: BooleanType;
|
|
51
|
+
half: BooleanType;
|
|
52
|
+
allowHalf: BooleanType;
|
|
53
|
+
disabled: BooleanType;
|
|
54
|
+
icon: PropType<IconType[] | ((index: number) => IconType[])>;
|
|
55
|
+
size: PropType<number | string>;
|
|
56
|
+
index: {
|
|
57
|
+
type: NumberConstructor;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
symbolReverseFill: BooleanType;
|
|
61
|
+
strokeWidth: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
default: number;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{
|
|
66
|
+
onUpdate?: ((type: "C" | "M", index: number, percent: number) => any) | undefined;
|
|
67
|
+
}>, {
|
|
68
|
+
strokeWidth: number;
|
|
69
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
export default _default;
|
package/types/rate/star.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
-
import type { BooleanType } from "../const/types";
|
|
3
|
-
import { type IconType } from "../icon";
|
|
2
|
+
import type { BooleanType } from "../const/types.js";
|
|
3
|
+
import { type IconType } from "../icon/index.js";
|
|
4
4
|
declare const starProps: {
|
|
5
5
|
character: PropType<string | ((index: number) => VNodeChild)>;
|
|
6
6
|
tooltips: StringConstructor;
|
package/types/result/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Result from "./result";
|
|
2
|
-
export type { ResultStatus } from "../const/types";
|
|
3
|
-
export type { ResultProps } from "./result";
|
|
1
|
+
import Result from "./result.js";
|
|
2
|
+
export type { ResultStatus } from "../const/types.js";
|
|
3
|
+
export type { ResultProps } from "./result.js";
|
|
4
4
|
export default Result;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { ResultStatus } from "../const/types.cjs";
|
|
3
|
+
import { type IconType } from "../icon/index.cjs";
|
|
4
|
+
declare const resultProps: {
|
|
5
|
+
status: {
|
|
6
|
+
type: PropType<ResultStatus>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
title: PropType<VNodeChild>;
|
|
10
|
+
subTitle: PropType<VNodeChild>;
|
|
11
|
+
icon: PropType<IconType[]>;
|
|
12
|
+
};
|
|
13
|
+
export type ResultProps = ExtractPropTypes<typeof resultProps>;
|
|
14
|
+
declare const Result: import("vue").DefineComponent<ExtractPropTypes<{
|
|
15
|
+
status: {
|
|
16
|
+
type: PropType<ResultStatus>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
title: PropType<VNodeChild>;
|
|
20
|
+
subTitle: PropType<VNodeChild>;
|
|
21
|
+
icon: PropType<IconType[]>;
|
|
22
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
23
|
+
status: {
|
|
24
|
+
type: PropType<ResultStatus>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
title: PropType<VNodeChild>;
|
|
28
|
+
subTitle: PropType<VNodeChild>;
|
|
29
|
+
icon: PropType<IconType[]>;
|
|
30
|
+
}>> & Readonly<{}>, {
|
|
31
|
+
status: ResultStatus;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
export default Result;
|
|
34
|
+
export type { ResultStatus } from "../const/types.cjs";
|
package/types/result/result.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
-
import type { ResultStatus } from "../const/types";
|
|
3
|
-
import { type IconType } from "../icon";
|
|
2
|
+
import type { ResultStatus } from "../const/types.js";
|
|
3
|
+
import { type IconType } from "../icon/index.js";
|
|
4
4
|
declare const resultProps: {
|
|
5
5
|
status: {
|
|
6
6
|
type: PropType<ResultStatus>;
|
|
@@ -31,4 +31,4 @@ declare const Result: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
31
31
|
status: ResultStatus;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
33
|
export default Result;
|
|
34
|
-
export type { ResultStatus } from "../const/types";
|
|
34
|
+
export type { ResultStatus } from "../const/types.js";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapted from Canvas UI by David Haz (DavidHDev).
|
|
3
|
+
* Source: https://github.com/DavidHDev/canvas-ui
|
|
4
|
+
* License: MIT + Commons Clause.
|
|
5
|
+
*/
|
|
6
|
+
export type RippleTrigger = "click" | "hover" | "none";
|
|
7
|
+
export interface RippleOptions {
|
|
8
|
+
/** Height of the waves (0 to 3). */
|
|
9
|
+
amplitude?: number;
|
|
10
|
+
/** How fast the rings travel outward. 1 is normal speed. */
|
|
11
|
+
speed?: number;
|
|
12
|
+
/** Distance between wave crests in CSS pixels. */
|
|
13
|
+
wavelength?: number;
|
|
14
|
+
/** Number of crests in each wave train (1 to 8). */
|
|
15
|
+
rings?: number;
|
|
16
|
+
/** How quickly the waves lose energy (higher dies faster). */
|
|
17
|
+
decay?: number;
|
|
18
|
+
/** How strongly the waves bend the page content, in CSS pixels. */
|
|
19
|
+
refraction?: number;
|
|
20
|
+
/** Chromatic dispersion splitting colors along the wave slopes (0 to 1). */
|
|
21
|
+
dispersion?: number;
|
|
22
|
+
/** Intensity of the light glints on the wave crests (0 to 2). */
|
|
23
|
+
shine?: number;
|
|
24
|
+
/** What spawns ripples. "click" on press, "hover" also leaves a wake while moving, "none" only ambient. */
|
|
25
|
+
trigger?: RippleTrigger;
|
|
26
|
+
/** Seconds between ambient ripples at random positions. 0 disables them. */
|
|
27
|
+
interval?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface RippleElements {
|
|
30
|
+
/** Canvas with layoutsubtree that hosts the HTML content. */
|
|
31
|
+
source: HTMLCanvasElement;
|
|
32
|
+
/** The element inside the source canvas that gets captured. */
|
|
33
|
+
content: HTMLElement;
|
|
34
|
+
/** Canvas the WebGL effect renders to. */
|
|
35
|
+
output: HTMLCanvasElement;
|
|
36
|
+
}
|
|
37
|
+
export interface RippleInstance {
|
|
38
|
+
/** Update effect options live. */
|
|
39
|
+
setOptions: (options: RippleOptions) => void;
|
|
40
|
+
/** Spawn a ripple at a position in CSS pixels relative to the element. */
|
|
41
|
+
splash: (x: number, y: number, strength?: number) => void;
|
|
42
|
+
/** Re-read canvas size. Call when the element is resized. */
|
|
43
|
+
resize: () => void;
|
|
44
|
+
/** Stop the loop and release all GPU resources. */
|
|
45
|
+
destroy: () => void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Attributes that turn a canvas into an HTML-in-Canvas host, and the matching
|
|
49
|
+
* opt-in for the element that gets drawn.
|
|
50
|
+
*/
|
|
51
|
+
export interface HtmlInCanvasMarkup {
|
|
52
|
+
canvas: Record<string, string>;
|
|
53
|
+
element: Record<string, string>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Chrome 156 renames the experimental boolean `layoutsubtree` to the
|
|
57
|
+
* standardized `content="drawable"`, and the element handed to
|
|
58
|
+
* `drawElementImage()` now declares itself with its own `drawable` attribute
|
|
59
|
+
* (WICG html-in-canvas issue #169). Browsers advertise the new spelling with a
|
|
60
|
+
* reflected `content` IDL attribute, so the shape is read off the prototype
|
|
61
|
+
* rather than sniffed from a version string: every release only ever sees the
|
|
62
|
+
* attribute it understands.
|
|
63
|
+
*/
|
|
64
|
+
export declare function htmlInCanvasMarkup(): HtmlInCanvasMarkup;
|
|
65
|
+
export declare function supportsHtmlInCanvas(): boolean;
|
|
66
|
+
export declare function createRipple(elements: RippleElements, options?: RippleOptions): RippleInstance | null;
|