zartui 3.1.9 → 3.1.10
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/README.md +23 -23
- package/es/action-sheet/index.css +1 -1
- package/es/action-sheet/index.d.ts +1 -0
- package/es/action-sheet/types.d.ts +14 -0
- package/es/action-sheet/types.mjs +0 -0
- package/es/avatar/index.css +1 -1
- package/es/avatar/index.d.ts +1 -1
- package/es/avatar/types.d.ts +10 -0
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +1 -0
- package/es/badge/types.d.ts +15 -0
- package/es/badge/types.mjs +0 -0
- package/es/button/index.css +1 -1
- package/es/button/index.d.ts +1 -1
- package/es/button/types.d.ts +35 -0
- package/es/calendar/CalendarDay.mjs +8 -1
- package/es/calendar/CalendarHeader.mjs +2 -2
- package/es/calendar/index.css +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/calendar/types.d.ts +25 -0
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/types.d.ts +21 -0
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell/types.d.ts +24 -0
- package/es/cell-group/index.css +1 -1
- package/es/checkbox/Checker.mjs +6 -0
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox/types.d.ts +19 -0
- package/es/checkbox-group/index.css +1 -1
- package/es/collapse-item/index.css +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/collapse-item/types.d.ts +8 -0
- package/es/config-provider/index.d.ts +2 -1
- package/es/config-provider/types.d.ts +138 -0
- package/es/config-provider/types.mjs +0 -0
- package/es/date-time-picker/DateTimePicker.d.ts +2 -2
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
- package/es/date-time-picker/index.css +1 -1
- package/es/date-time-picker/index.d.ts +2 -2
- package/es/date-time-picker/utils.d.ts +1 -1
- package/es/dialog/Dialog.d.ts +1 -1
- package/es/dialog/index.css +1 -1
- package/es/dialog/index.d.ts +2 -2
- package/es/dialog/types.d.ts +18 -0
- package/es/divider/index.css +1 -1
- package/es/divider/index.d.ts +1 -0
- package/es/divider/types.d.ts +8 -0
- package/es/divider/types.mjs +0 -0
- package/es/dropdown-item/DropdownItem.mjs +1 -0
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/dropdown-item/types.d.ts +3 -0
- package/es/dropdown-menu/index.css +1 -1
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/dropdown-menu/types.d.ts +12 -0
- package/es/empty/Empty.mjs +5 -3
- package/es/empty/Images.d.ts +20 -9
- package/es/empty/Images.mjs +755 -563
- package/es/empty/index.css +1 -1
- package/es/empty/index.d.ts +1 -0
- package/es/empty/types.d.ts +8 -0
- package/es/empty/types.mjs +0 -0
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +1 -1
- package/es/field/types.d.ts +22 -0
- package/es/grid-item/index.css +1 -1
- package/es/grid-item/index.d.ts +1 -0
- package/es/grid-item/types.d.ts +7 -0
- package/es/grid-item/types.mjs +0 -0
- package/es/hierarchy-select/Breadcrumb.mjs +1 -1
- package/es/hierarchy-select/HierarchySelect.d.ts +13 -0
- package/es/hierarchy-select/HierarchySelect.mjs +132 -21
- package/es/hierarchy-select/index.css +1 -1
- package/es/hierarchy-select/index.d.ts +10 -1
- package/es/hierarchy-select/svg/SubIcon.d.ts +2 -1
- package/es/hierarchy-select/svg/SubIcon.mjs +10 -29
- package/es/hierarchy-select/types.d.ts +21 -0
- package/es/image/index.css +1 -1
- package/es/image/index.d.ts +1 -0
- package/es/image/types.d.ts +5 -0
- package/es/image/types.mjs +0 -0
- package/es/image-preview/ImagePreview.d.ts +1 -1
- package/es/image-preview/index.css +1 -1
- package/es/image-preview/index.d.ts +2 -2
- package/es/image-preview/types.d.ts +10 -0
- package/es/index-anchor/index.css +1 -1
- package/es/index-anchor/types.d.ts +1 -3
- package/es/index-bar/IndexBar.d.ts +26 -0
- package/es/index-bar/IndexBar.mjs +184 -50
- package/es/index-bar/index.css +1 -1
- package/es/index-bar/index.d.ts +18 -0
- package/es/index-bar/types.d.ts +4 -3
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/lazyload/vue-lazyload/index.d.ts +55 -55
- package/es/list/index.css +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/list/types.d.ts +5 -0
- package/es/loading/index.css +1 -1
- package/es/loading/index.d.ts +1 -0
- package/es/loading/types.d.ts +6 -0
- package/es/loading/types.mjs +0 -0
- package/es/media-picker/index.css +1 -1
- package/es/media-picker/index.d.ts +1 -1
- package/es/media-picker/type.d.ts +12 -0
- package/es/media-player/index.css +1 -1
- package/es/multiple-picker/MultiplePicker.d.ts +3 -3
- package/es/multiple-picker/index.css +1 -1
- package/es/multiple-picker/index.d.ts +4 -3
- package/es/multiple-picker/types.d.ts +17 -0
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +1 -0
- package/es/nav-bar/types.d.ts +16 -0
- package/es/nav-bar/types.mjs +0 -0
- package/es/notice-bar/index.css +1 -1
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notice-bar/types.d.ts +10 -0
- package/es/notify/index.css +1 -1
- package/es/notify/index.d.ts +1 -1
- package/es/notify/types.d.ts +8 -0
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +1 -0
- package/es/number-keyboard/types.d.ts +14 -0
- package/es/number-keyboard/types.mjs +0 -0
- package/es/overlay/index.d.ts +1 -0
- package/es/overlay/types.d.ts +4 -0
- package/es/overlay/types.mjs +0 -0
- package/es/password-input/index.css +1 -1
- package/es/password-input/index.d.ts +1 -0
- package/es/password-input/types.d.ts +15 -0
- package/es/password-input/types.mjs +0 -0
- package/es/picker/Picker.d.ts +6 -6
- package/es/picker/index.css +1 -1
- package/es/picker/index.d.ts +7 -7
- package/es/picker/types.d.ts +17 -0
- package/es/popover/Popover.mjs +1 -1
- package/es/popover/index.css +1 -1
- package/es/popover/index.d.ts +1 -1
- package/es/popover/types.d.ts +12 -0
- package/es/popup/index.css +1 -1
- package/es/popup/index.d.ts +1 -1
- package/es/popup/types.d.ts +8 -0
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +1 -0
- package/es/pull-refresh/types.d.ts +6 -0
- package/es/pull-refresh/types.mjs +0 -0
- package/es/radio/index.css +1 -1
- package/es/radio/index.d.ts +1 -0
- package/es/radio/types.d.ts +18 -0
- package/es/radio/types.mjs +0 -0
- package/es/radio-group/index.css +1 -1
- package/es/radio-picker/RadioPicker.d.ts +3 -3
- package/es/radio-picker/index.css +1 -1
- package/es/radio-picker/index.d.ts +4 -4
- package/es/radio-picker/types.d.ts +24 -0
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +1 -0
- package/es/rate/types.d.ts +6 -0
- package/es/rate/types.mjs +0 -0
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +1 -1
- package/es/search/types.d.ts +12 -0
- package/es/signature/index.css +1 -1
- package/es/signature/index.d.ts +1 -1
- package/es/signature/types.d.ts +9 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/types.d.ts +9 -0
- package/es/skeleton/types.mjs +0 -0
- package/es/step/Step.mjs +2 -2
- package/es/step/index.css +1 -1
- package/es/step/index.d.ts +1 -0
- package/es/step/types.d.ts +6 -0
- package/es/step/types.mjs +0 -0
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +1 -0
- package/es/stepper/types.d.ts +17 -0
- package/es/stepper/types.mjs +0 -0
- package/es/steps/index.css +1 -1
- package/es/steps/index.d.ts +1 -0
- package/es/steps/types.d.ts +5 -0
- package/es/steps/types.mjs +0 -0
- package/es/sticky/index.d.ts +1 -0
- package/es/sticky/types.d.ts +3 -0
- package/es/sticky/types.mjs +0 -0
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/swipe/index.css +1 -1
- package/es/swipe/index.d.ts +1 -1
- package/es/swipe/types.d.ts +10 -0
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +1 -0
- package/es/switch/types.d.ts +18 -0
- package/es/switch/types.mjs +0 -0
- package/es/tabbar/index.d.ts +1 -0
- package/es/tabbar/types.d.ts +5 -0
- package/es/tabbar/types.mjs +0 -0
- package/es/tabbar-item/index.css +1 -1
- package/es/tabbar-item/index.d.ts +1 -0
- package/es/tabbar-item/types.d.ts +14 -0
- package/es/tabbar-item/types.mjs +0 -0
- package/es/table/index.css +1 -1
- package/es/table/index.d.ts +1 -0
- package/es/table/types.d.ts +10 -0
- package/es/tabs/index.css +1 -1
- package/es/tabs/index.d.ts +1 -1
- package/es/tabs/types.d.ts +17 -0
- package/es/tag/Tag.mjs +5 -4
- package/es/tag/index.css +1 -1
- package/es/tag/index.d.ts +1 -0
- package/es/tag/types.d.ts +17 -0
- package/es/tag/types.mjs +0 -0
- package/es/text-ellipsis/types.d.ts +1 -0
- package/es/time-picker/TimePicker.d.ts +2 -2
- package/es/time-picker/index.css +1 -1
- package/es/time-picker/index.d.ts +3 -2
- package/es/time-picker/types.d.ts +23 -0
- package/es/time-picker/types.mjs +0 -0
- package/es/timeline/index.css +1 -1
- package/es/timeline/index.d.ts +1 -0
- package/es/timeline/types.d.ts +9 -0
- package/es/timeline/types.mjs +0 -0
- package/es/toast/index.css +1 -1
- package/es/toast/index.d.ts +1 -1
- package/es/toast/types.d.ts +15 -0
- package/es/uploader/index.css +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/es/uploader/types.d.ts +21 -0
- package/es/vue-sfc-shim.d.ts +6 -6
- package/es/vue-tsx-shim.d.ts +23 -23
- package/lib/action-sheet/index.css +1 -1
- package/lib/action-sheet/index.d.ts +1 -0
- package/lib/action-sheet/types.d.ts +14 -0
- package/lib/action-sheet/types.js +15 -0
- package/lib/avatar/index.css +1 -1
- package/lib/avatar/index.d.ts +1 -1
- package/lib/avatar/types.d.ts +10 -0
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +1 -0
- package/lib/badge/types.d.ts +15 -0
- package/lib/badge/types.js +15 -0
- package/lib/button/index.css +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/button/types.d.ts +35 -0
- package/lib/calendar/CalendarDay.js +8 -1
- package/lib/calendar/CalendarHeader.js +2 -2
- package/lib/calendar/index.css +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/types.d.ts +25 -0
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/types.d.ts +21 -0
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell/types.d.ts +24 -0
- package/lib/cell-group/index.css +1 -1
- package/lib/checkbox/Checker.js +6 -0
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/types.d.ts +19 -0
- package/lib/checkbox-group/index.css +1 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/types.d.ts +8 -0
- package/lib/config-provider/index.d.ts +2 -1
- package/lib/config-provider/types.d.ts +138 -0
- package/lib/config-provider/types.js +15 -0
- package/lib/date-time-picker/DateTimePicker.d.ts +2 -2
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +2 -2
- package/lib/date-time-picker/index.css +1 -1
- package/lib/date-time-picker/index.d.ts +2 -2
- package/lib/date-time-picker/utils.d.ts +1 -1
- package/lib/dialog/Dialog.d.ts +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/dialog/index.d.ts +2 -2
- package/lib/dialog/types.d.ts +18 -0
- package/lib/divider/index.css +1 -1
- package/lib/divider/index.d.ts +1 -0
- package/lib/divider/types.d.ts +8 -0
- package/lib/divider/types.js +15 -0
- package/lib/dropdown-item/DropdownItem.js +1 -0
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/dropdown-item/types.d.ts +3 -0
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/types.d.ts +12 -0
- package/lib/empty/Empty.js +4 -2
- package/lib/empty/Images.d.ts +20 -9
- package/lib/empty/Images.js +755 -563
- package/lib/empty/index.css +1 -1
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/types.d.ts +8 -0
- package/lib/empty/types.js +15 -0
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +1 -1
- package/lib/field/types.d.ts +22 -0
- package/lib/grid-item/index.css +1 -1
- package/lib/grid-item/index.d.ts +1 -0
- package/lib/grid-item/types.d.ts +7 -0
- package/lib/grid-item/types.js +15 -0
- package/lib/hierarchy-select/Breadcrumb.js +1 -1
- package/lib/hierarchy-select/HierarchySelect.d.ts +13 -0
- package/lib/hierarchy-select/HierarchySelect.js +131 -20
- package/lib/hierarchy-select/index.css +1 -1
- package/lib/hierarchy-select/index.d.ts +10 -1
- package/lib/hierarchy-select/svg/SubIcon.d.ts +2 -1
- package/lib/hierarchy-select/svg/SubIcon.js +9 -28
- package/lib/hierarchy-select/types.d.ts +21 -0
- package/lib/image/index.css +1 -1
- package/lib/image/index.d.ts +1 -0
- package/lib/image/types.d.ts +5 -0
- package/lib/image/types.js +15 -0
- package/lib/image-preview/ImagePreview.d.ts +1 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/image-preview/index.d.ts +2 -2
- package/lib/image-preview/types.d.ts +10 -0
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-anchor/types.d.ts +1 -3
- package/lib/index-bar/IndexBar.d.ts +26 -0
- package/lib/index-bar/IndexBar.js +183 -49
- package/lib/index-bar/index.css +1 -1
- package/lib/index-bar/index.d.ts +18 -0
- package/lib/index-bar/types.d.ts +4 -3
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
- package/lib/list/index.css +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/types.d.ts +5 -0
- package/lib/loading/index.css +1 -1
- package/lib/loading/index.d.ts +1 -0
- package/lib/loading/types.d.ts +6 -0
- package/lib/loading/types.js +15 -0
- package/lib/media-picker/index.css +1 -1
- package/lib/media-picker/index.d.ts +1 -1
- package/lib/media-picker/type.d.ts +12 -0
- package/lib/media-player/index.css +1 -1
- package/lib/multiple-picker/MultiplePicker.d.ts +3 -3
- package/lib/multiple-picker/index.css +1 -1
- package/lib/multiple-picker/index.d.ts +4 -3
- package/lib/multiple-picker/types.d.ts +17 -0
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +1 -0
- package/lib/nav-bar/types.d.ts +16 -0
- package/lib/nav-bar/types.js +15 -0
- package/lib/notice-bar/index.css +1 -1
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notice-bar/types.d.ts +10 -0
- package/lib/notify/index.css +1 -1
- package/lib/notify/index.d.ts +1 -1
- package/lib/notify/types.d.ts +8 -0
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +1 -0
- package/lib/number-keyboard/types.d.ts +14 -0
- package/lib/number-keyboard/types.js +15 -0
- package/lib/overlay/index.d.ts +1 -0
- package/lib/overlay/types.d.ts +4 -0
- package/lib/overlay/types.js +15 -0
- package/lib/password-input/index.css +1 -1
- package/lib/password-input/index.d.ts +1 -0
- package/lib/password-input/types.d.ts +15 -0
- package/lib/password-input/types.js +15 -0
- package/lib/picker/Picker.d.ts +6 -6
- package/lib/picker/index.css +1 -1
- package/lib/picker/index.d.ts +7 -7
- package/lib/picker/types.d.ts +17 -0
- package/lib/popover/Popover.js +1 -1
- package/lib/popover/index.css +1 -1
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/types.d.ts +12 -0
- package/lib/popup/index.css +1 -1
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/types.d.ts +8 -0
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +1 -0
- package/lib/pull-refresh/types.d.ts +6 -0
- package/lib/pull-refresh/types.js +15 -0
- package/lib/radio/index.css +1 -1
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/types.d.ts +18 -0
- package/lib/radio/types.js +15 -0
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-picker/RadioPicker.d.ts +3 -3
- package/lib/radio-picker/index.css +1 -1
- package/lib/radio-picker/index.d.ts +4 -4
- package/lib/radio-picker/types.d.ts +24 -0
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/types.d.ts +6 -0
- package/lib/rate/types.js +15 -0
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +1 -1
- package/lib/search/types.d.ts +12 -0
- package/lib/signature/index.css +1 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/signature/types.d.ts +9 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/types.d.ts +9 -0
- package/lib/skeleton/types.js +15 -0
- package/lib/step/Step.js +2 -2
- package/lib/step/index.css +1 -1
- package/lib/step/index.d.ts +1 -0
- package/lib/step/types.d.ts +6 -0
- package/lib/step/types.js +15 -0
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +1 -0
- package/lib/stepper/types.d.ts +17 -0
- package/lib/stepper/types.js +15 -0
- package/lib/steps/index.css +1 -1
- package/lib/steps/index.d.ts +1 -0
- package/lib/steps/types.d.ts +5 -0
- package/lib/steps/types.js +15 -0
- package/lib/sticky/index.d.ts +1 -0
- package/lib/sticky/types.d.ts +3 -0
- package/lib/sticky/types.js +15 -0
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/swipe/index.css +1 -1
- package/lib/swipe/index.d.ts +1 -1
- package/lib/swipe/types.d.ts +10 -0
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/types.d.ts +18 -0
- package/lib/switch/types.js +15 -0
- package/lib/tabbar/index.d.ts +1 -0
- package/lib/tabbar/types.d.ts +5 -0
- package/lib/tabbar/types.js +15 -0
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabbar-item/index.d.ts +1 -0
- package/lib/tabbar-item/types.d.ts +14 -0
- package/lib/tabbar-item/types.js +15 -0
- package/lib/table/index.css +1 -1
- package/lib/table/index.d.ts +1 -0
- package/lib/table/types.d.ts +10 -0
- package/lib/tabs/index.css +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/types.d.ts +17 -0
- package/lib/tag/Tag.js +5 -4
- package/lib/tag/index.css +1 -1
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/types.d.ts +17 -0
- package/lib/tag/types.js +15 -0
- package/lib/text-ellipsis/types.d.ts +1 -0
- package/lib/time-picker/TimePicker.d.ts +2 -2
- package/lib/time-picker/index.css +1 -1
- package/lib/time-picker/index.d.ts +3 -2
- package/lib/time-picker/types.d.ts +23 -0
- package/lib/time-picker/types.js +15 -0
- package/lib/timeline/index.css +1 -1
- package/lib/timeline/index.d.ts +1 -0
- package/lib/timeline/types.d.ts +9 -0
- package/lib/timeline/types.js +15 -0
- package/lib/toast/index.css +1 -1
- package/lib/toast/index.d.ts +1 -1
- package/lib/toast/types.d.ts +15 -0
- package/lib/uploader/index.css +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/uploader/types.d.ts +21 -0
- package/lib/vue-sfc-shim.d.ts +6 -6
- package/lib/vue-tsx-shim.d.ts +23 -23
- package/lib/web-types.json +1 -1
- package/lib/zartui.cjs.js +1118 -688
- package/lib/zartui.es.js +1118 -688
- package/lib/zartui.js +1118 -688
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -5
package/es/loading/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-loading-text-color: var(--zt-gray-a6);--zt-loading-
|
|
1
|
+
:root{--zt-loading-text-color: var(--zt-gray-a6);--zt-loading-spinner-color: var(--zt-gray-a4);--zt-loading-spinner-size: 36px;--zt-loading-spinner-duration: .8s}.zt-loading{position:relative;color:var(--zt-loading-spinner-color);font-size:0;vertical-align:middle}.zt-loading__spinner{position:relative;display:inline-block;width:var(--zt-loading-spinner-size);max-width:100%;height:var(--zt-loading-spinner-size);max-height:100%;vertical-align:middle;animation:zt-rotate var(--zt-loading-spinner-duration) linear infinite}.zt-loading__spinner--spinner{animation-timing-function:steps(12)}.zt-loading__spinner--circular{animation-duration:2s}.zt-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.zt-loading__line:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.zt-loading__circular{display:block;width:100%;height:100%}.zt-loading__circular circle{animation:zt-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.zt-loading__snake{display:block;width:100%;height:100%}.zt-loading__text{display:inline-block;margin-left:var(--zt-padding-base);color:var(--zt-loading-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);vertical-align:middle}.zt-loading--vertical{display:flex;flex-direction:column;align-items:center}.zt-loading--vertical .zt-loading__text{margin:var(--zt-padding-base) 0 0}.zt-loading--horizontal-with-text .zt-loading__spinner--snake{width:20px;height:20px}@keyframes zt-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.zt-loading__spinner--spinner i:nth-of-type(1){transform:rotate(30deg);opacity:1}.zt-loading__spinner--spinner i:nth-of-type(2){transform:rotate(60deg);opacity:.9375}.zt-loading__spinner--spinner i:nth-of-type(3){transform:rotate(90deg);opacity:.875}.zt-loading__spinner--spinner i:nth-of-type(4){transform:rotate(120deg);opacity:.8125}.zt-loading__spinner--spinner i:nth-of-type(5){transform:rotate(150deg);opacity:.75}.zt-loading__spinner--spinner i:nth-of-type(6){transform:rotate(180deg);opacity:.6875}.zt-loading__spinner--spinner i:nth-of-type(7){transform:rotate(210deg);opacity:.625}.zt-loading__spinner--spinner i:nth-of-type(8){transform:rotate(240deg);opacity:.5625}.zt-loading__spinner--spinner i:nth-of-type(9){transform:rotate(270deg);opacity:.5}.zt-loading__spinner--spinner i:nth-of-type(10){transform:rotate(300deg);opacity:.4375}.zt-loading__spinner--spinner i:nth-of-type(11){transform:rotate(330deg);opacity:.375}.zt-loading__spinner--spinner i:nth-of-type(12){transform:rotate(360deg);opacity:.3125}
|
package/es/loading/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export declare const Loading: import("../utils").WithInstall<import("vue").Defin
|
|
|
24
24
|
}, {}>>;
|
|
25
25
|
export default Loading;
|
|
26
26
|
export type { LoadingType, LoadingProps } from './Loading';
|
|
27
|
+
export type { LoadingThemeVars } from './types';
|
|
27
28
|
declare module 'vue' {
|
|
28
29
|
interface GlobalComponents {
|
|
29
30
|
ZtLoading: typeof Loading;
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-media-picker-image-color: var(--zt-text-color);--zt-media-picker-button-background: linear-gradient(135deg, #e6ebf0 0%, #fff 100%, #fff 100%);--zt-media-picker-button-box-shadow: -4px -4px 8px 0 var(--zt-white), 4px 4px 8px 0 var(--zt-gray-a1);--zt-media-picker-button-border: 0;--zt-media-picker-button-active-border: 1px solid rgba(255, 255, 255, .75);--zt-media-picker-button-active-box-shadow: inset 4px 4px 8px 0 var(--zt-gray-a2)}.zt-media-picker__hidden{display:none}.zt-media-picker__title{position:relative;height:
|
|
1
|
+
:root{--zt-media-picker-image-color: var(--zt-text-color);--zt-media-picker-button-background: linear-gradient(135deg, #e6ebf0 0%, #fff 100%, #fff 100%);--zt-media-picker-button-box-shadow: -4px -4px 8px 0 var(--zt-white), 4px 4px 8px 0 var(--zt-gray-a1);--zt-media-picker-button-border: 0;--zt-media-picker-button-active-border: 1px solid rgba(255, 255, 255, .75);--zt-media-picker-button-active-box-shadow: inset 4px 4px 8px 0 var(--zt-gray-a2);--zt-media-picker-line-height: 46px;--zt-media-picker-box-size: 48px;--zt-media-picker-icon-size: 32px;--zt-media-picker-title-height: 44px}:root[zt-theme-size=large]{--zt-media-picker-line-height: 52px;--zt-media-picker-box-size: 54px;--zt-media-picker-icon-size: 38px;--zt-media-picker-title-height: 56px}.zt-media-picker__hidden{display:none}.zt-media-picker__title{position:relative;height:var(--zt-media-picker-title-height);line-height:var(--zt-media-picker-title-height);font-weight:700;font-size:var(--zt-font-size-lg);color:var(--zt-text-color);padding:0 16px}.zt-media-picker__title:before{position:absolute;width:4px;height:16px;background:var(--zt-primary-color);left:0;top:14px;content:" "}.zt-media-picker__title:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-media-picker__line{width:100%;height:calc(var(--zt-media-picker-line-height) * 2);display:flex;align-items:center;overflow-x:auto}.zt-media-picker__line::-webkit-scrollbar{width:0;height:0}.zt-media-picker__line:after{content:" ";min-width:16px;height:10px}.zt-media-picker__box{width:var(--zt-media-picker-box-size);display:flex;flex-direction:column;align-items:center}.zt-media-picker__box:first-child{margin-left:16px}.zt-media-picker__box:not(:last-child){margin-right:24px}.zt-media-picker__button{display:flex;align-items:center;justify-content:center;width:var(--zt-media-picker-box-size);height:var(--zt-media-picker-box-size);background:var(--zt-media-picker-button-background);box-shadow:var(--zt-media-picker-button-box-shadow);border:var(--zt-media-picker-button-border);border-radius:8px;box-sizing:border-box}.zt-media-picker__button:active{background:rgba(45,75,115,.04);border:var(--zt-media-picker-button-active-border);box-shadow:var(--zt-media-picker-button-active-box-shadow)}.zt-media-picker__icon{width:var(--zt-media-picker-icon-size);height:var(--zt-media-picker-icon-size);color:var(--zt-media-picker-image-color)}.zt-media-picker__label{margin-top:8px;font-size:var(--zt-font-size-sm);color:var(--zt-gray-a8);letter-spacing:0;text-align:center;line-height:var(--zt-line-height-xs);-webkit-user-select:none;user-select:none}.zt-media-picker__grid{padding:0 16px 8px!important}.zt-media-picker__delete{box-sizing:content-box;width:20px;height:20px;position:absolute;padding:4px;top:0;right:0}.zt-media-picker .zt-image{width:100%;height:100%}.zt-media-picker .zt-grid-item__content{padding:0}.zt-media-picker__thumbnail{width:100%;height:100%}.zt-media-picker__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--zt-white);background-color:var(--zt-uploader-mask-background);border-radius:4px}.zt-media-picker__mask-icon{font-size:var(--zt-font-size-xxxl)}.zt-media-picker__mask-message{margin-top:6px;padding:0 var(--zt-padding-base);font-size:var(--zt-font-size-sm);line-height:var(--zt-uploader-mask-message-line-height)}.zt-media-picker__loading{width:var(--zt-uploader-loading-icon-size);height:var(--zt-uploader-loading-icon-size);color:var(--zt-uploader-icon-color)}.zt-theme-dark{--zt-media-picker-button-background: linear-gradient(135deg, #111c29 0%, #1d2c3e 100%, #1c2a3c 100%);--zt-media-picker-button-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .08), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-media-picker-button-border: 1px solid var(--zt-gray-a1);--zt-media-picker-button-active-border: 1px solid var(--zt-gray-a1);--zt-media-picker-button-active-box-shadow: inset 6px 6px 6px 0 #000d1b}
|
|
@@ -146,7 +146,7 @@ export declare const MediaPicker: import("../utils").WithInstall<import("vue").D
|
|
|
146
146
|
}, {}>>;
|
|
147
147
|
export default MediaPicker;
|
|
148
148
|
export type { MediaPickerProps } from './MediaPicker';
|
|
149
|
-
export type { Media, MediaType, MediaAddType, MediaUploadStatus, MediaPreview, MediaPick, MediaBeforeRead, MediaAfterRead, MediaBeforeDelete, } from './type';
|
|
149
|
+
export type { Media, MediaType, MediaAddType, MediaUploadStatus, MediaPreview, MediaPick, MediaBeforeRead, MediaAfterRead, MediaBeforeDelete, MediaPickerThemeVars, } from './type';
|
|
150
150
|
declare module 'vue' {
|
|
151
151
|
interface GlobalComponents {
|
|
152
152
|
ZtMediaPicker: typeof MediaPicker;
|
|
@@ -20,3 +20,15 @@ export type MediaAfterRead = (medias: Array<Media>) => void;
|
|
|
20
20
|
export type MediaBeforeDelete = (media: Media) => boolean | Promise<void>;
|
|
21
21
|
export type MediaPick = (mediaType: MediaType, mediaAddType: MediaAddType) => boolean;
|
|
22
22
|
export type MediaPreview = (medias: Array<Media>, index: number) => boolean;
|
|
23
|
+
export type MediaPickerThemeVars = {
|
|
24
|
+
mediaPickerImageColor?: string;
|
|
25
|
+
mediaPickerButtonBackground?: string;
|
|
26
|
+
mediaPickerButtonBoxShadow?: string;
|
|
27
|
+
mediaPickerButtonBorder?: string;
|
|
28
|
+
mediaPickerButtonActiveBorder?: string;
|
|
29
|
+
mediaPickerButtonActiveBoxShadow?: string;
|
|
30
|
+
mediaPickerLineHeight?: string;
|
|
31
|
+
mediaPickerBoxSize?: string;
|
|
32
|
+
mediaPickerIconSize?: string;
|
|
33
|
+
mediaPickerTitleHeight?: string;
|
|
34
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.zt-media-player{background-color:var(--zt-background);font-size:0}.zt-media-player__video{width:100%;height:400px;max-height:70%;background-color:rgba(0,0,0,.8)}.zt-media-player__audio{width:100%}.zt-media-player__cancel{padding:8px 16px;color:var(--zt-text-color)}.zt-media-player__cancel-btn{width:100%;border:none;cursor:pointer;background-color:var(--zt-gray-a04);border-radius:20px;height:44px;font-size:
|
|
1
|
+
.zt-media-player{background-color:var(--zt-background);font-size:0}.zt-media-player__video{width:100%;height:400px;max-height:70%;background-color:rgba(0,0,0,.8)}.zt-media-player__audio{width:100%}.zt-media-player__cancel{padding:8px 16px;color:var(--zt-text-color)}.zt-media-player__cancel-btn{width:100%;border:none;cursor:pointer;background-color:var(--zt-gray-a04);border-radius:20px;height:44px;font-size:var(--zt-font-size-lg);color:var(--zt-text-color);line-height:var(--zt-line-height-xl)}.zt-media-player__cancel-btn:active{opacity:var(--zt-active-opacity)}
|
|
@@ -156,12 +156,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
156
156
|
loading: boolean;
|
|
157
157
|
options: PickerOption[];
|
|
158
158
|
allowHtml: boolean;
|
|
159
|
-
showToolbar: boolean;
|
|
160
|
-
toolbarPosition: string;
|
|
161
|
-
showPicker: boolean;
|
|
162
159
|
textKey: string;
|
|
163
160
|
itemHeight: string | number;
|
|
164
161
|
columnCounts: number;
|
|
162
|
+
showPicker: boolean;
|
|
163
|
+
showToolbar: boolean;
|
|
164
|
+
toolbarPosition: string;
|
|
165
165
|
selectedIndex: number[];
|
|
166
166
|
}, {}>;
|
|
167
167
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-multiple-picker-warpper-padding: 12px 16px 4px 16px;--zt-multiple-picker-option-text-color: var(--zt-gray-a6);--zt-multiple-picker-background-color: var(--zt-background-2);--zt-multiple-picker-toolbar-height: 44px;--zt-multiple-picker-
|
|
1
|
+
:root{--zt-multiple-picker-warpper-padding: 12px 16px 4px 16px;--zt-multiple-picker-option-text-color: var(--zt-gray-a6);--zt-multiple-picker-background-color: var(--zt-background-2);--zt-multiple-picker-toolbar-height: 44px;--zt-multiple-picker-title-text-color: var(--zt-gray-a4);--zt-multiple-picker-title-padding: 12px 0;--zt-multiple-picker-item-padding: 0 4px 8px 0;--zt-multiple-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-multiple-picker-max-height: 84vh;--zt-multiple-picker-loading-icon-color: var(--zt-primary-color);--zt-multiple-picker-loading-mask-color: var(--zt-picker-loading-mask-color);--zt-multiple-picker-toolbar-padding: 8px 16px;--zt-multiple-picker-ellipsis-border: 1px solid var(--zt-gray-a2);--zt-multiple-picker-title-background: var(--zt-background-2);--zt-multiple-picker-ellipsis-height: 38px}:root[zt-theme-size=large]{--zt-multiple-picker-ellipsis-height: 50px}.zt-multiple-picker{display:flex;flex-direction:column;justify-content:space-between;position:relative;background-color:var(--zt-multiple-picker-background-color);-webkit-user-select:none;user-select:none;max-height:var(--zt-multiple-picker-max-height)}.zt-multiple-picker__toolbar{display:flex;align-items:center;justify-content:space-between;box-sizing:content-box;flex-shrink:0;background:var(--zt-multiple-picker-title-background);height:var(--zt-multiple-picker-toolbar-height);padding:var(--zt-multiple-picker-toolbar-padding)}.zt-multiple-picker__title{flex-shrink:0;font-weight:var(--zt-multiple-picker-cancel-action-font-weight);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);text-align:center;background:var(--zt-multiple-picker-title-background);color:var(--zt-multiple-picker-title-text-color);padding:var(--zt-multiple-picker-title-padding)}.zt-multiple-picker__options{position:relative;display:flex;cursor:-webkit-grab;cursor:grab;overflow-y:scroll}.zt-multiple-picker__options:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-multiple-picker__options:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:0;border-top:1px solid var(--zt-border-color);transform:scaleY(.5)}.zt-multiple-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--zt-multiple-picker-loading-icon-color);background-color:var(--zt-multiple-picker-loading-mask-color)}.zt-multiple-picker-options{flex:1;overflow-y:scroll;font-size:var(--zt-font-size-md);margin:0;outline:0 none;padding:0}.zt-multiple-picker-options__wrapper{display:flex;flex-wrap:wrap;background-color:var(--zt-multiple-picker-background-color);padding:var(--zt-multiple-picker-warpper-padding)}.zt-multiple-picker-options__item{color:var(--zt-multiple-picker-option-text-color);padding:var(--zt-multiple-picker-item-padding);box-sizing:border-box;text-align:center;font-size:var(--zt-font-size-md)}.zt-multiple-picker-options__item .zt-ellipsis{height:var(--zt-multiple-picker-ellipsis-height);line-height:var(--zt-multiple-picker-ellipsis-height);border-radius:calc(var(--zt-multiple-picker-ellipsis-height) / 2);border:var(--zt-multiple-picker-ellipsis-border);padding:0 var(--zt-padding-md)}.zt-multiple-picker-options__item:active{opacity:var(--zt-active-opacity)}.zt-multiple-picker-options__item--disabled{cursor:not-allowed;opacity:var(--zt-multiple-picker-option-disabled-opacity)}.zt-multiple-picker-options__item--last{padding-right:0}.zt-multiple-picker-options__item--selected{color:var(--zt-primary-color)}.zt-multiple-picker-options__item--selected .zt-ellipsis{background:var(--zt-primary-color-a1)}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MultiplePickerProps } from './MultiplePicker';
|
|
2
|
+
export type { MultiplePickerThemeVars } from './types';
|
|
2
3
|
export declare const MultiplePicker: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
3
4
|
title: StringConstructor;
|
|
4
5
|
loading: BooleanConstructor;
|
|
@@ -106,12 +107,12 @@ export declare const MultiplePicker: import("../utils").WithInstall<import("vue"
|
|
|
106
107
|
loading: boolean;
|
|
107
108
|
options: import("./types").PickerOption[];
|
|
108
109
|
allowHtml: boolean;
|
|
109
|
-
showToolbar: boolean;
|
|
110
|
-
toolbarPosition: string;
|
|
111
|
-
showPicker: boolean;
|
|
112
110
|
textKey: string;
|
|
113
111
|
itemHeight: string | number;
|
|
114
112
|
columnCounts: number;
|
|
113
|
+
showPicker: boolean;
|
|
114
|
+
showToolbar: boolean;
|
|
115
|
+
toolbarPosition: string;
|
|
115
116
|
selectedIndex: number[];
|
|
116
117
|
}, {}>>;
|
|
117
118
|
export default MultiplePicker;
|
|
@@ -13,3 +13,20 @@ export type MultiplePickerOptionsExpose = {
|
|
|
13
13
|
setConfirmIndex: (indexes: PickerOption) => void;
|
|
14
14
|
};
|
|
15
15
|
export type MultiplePickerInstance = ComponentPublicInstance<MultiplePickerOptionsProps, MultiplePickerOptionsExpose>;
|
|
16
|
+
export type MultiplePickerThemeVars = {
|
|
17
|
+
multiplePickerWarpperPadding?: string;
|
|
18
|
+
multiplePickerOptionTextColor?: string;
|
|
19
|
+
multiplePickerBackgroundColor?: string;
|
|
20
|
+
multiplePickerToolbarHeight?: string;
|
|
21
|
+
multiplePickerTitleTextColor?: string;
|
|
22
|
+
multiplePickerTitlePadding?: string;
|
|
23
|
+
multiplePickerItemPadding?: string;
|
|
24
|
+
multiplePickerOptionDisabledOpacity?: string;
|
|
25
|
+
multiplePickerMaxHeight?: string;
|
|
26
|
+
multiplePickerLoadingIconColor?: string;
|
|
27
|
+
multiplePickerLoadingMaskColor?: string;
|
|
28
|
+
multiplePickerToolbarPadding?: string;
|
|
29
|
+
multiplePickerEllipsisBorder?: string;
|
|
30
|
+
multiplePickerTitleBackground?: string;
|
|
31
|
+
multiplePickerEllipsisHeight?: string;
|
|
32
|
+
};
|
package/es/nav-bar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-nav-bar-height: 44px;--zt-nav-bar-padding-bottom: 12px;--zt-nav-bar-
|
|
1
|
+
:root{--zt-nav-bar-height: 44px;--zt-nav-bar-padding-bottom: 12px;--zt-nav-bar-icon-color: var(--zt-text-color);--zt-nav-bar-button-height: 36px;--zt-nav-bar-title-height: 28px;--zt-nav-bar-z-index: 1;--zt-nav-bar-btn-border-radius: 18px;--zt-nav-bar-padding-left: 16px;--zt-nav-bar-padding-right: 16px;--zt-nav-bar-btn-background: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%, #ffffff 100%);--zt-nav-bar-btn-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-nav-bar-btn-border: 1px solid rgba(255, 255, 255, .75);--zt-nav-bar-icon-font-size: 24px;--zt-nav-bar-icon-size: 36px}:root[zt-theme-size=large]{--zt-nav-bar-icon-size: 48px;--zt-nav-bar-icon-font-size: 30px;--zt-nav-bar-title-height: 40px}.zt-nav-bar{position:relative;padding-bottom:var(--zt-nav-bar-padding-bottom);z-index:var(--zt-nav-bar-z-index);text-align:center;-webkit-user-select:none;user-select:none;color:var(--zt-nav-bar-icon-color)}.zt-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.zt-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.zt-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--zt-nav-bar-height)}.zt-nav-bar__icon{width:var(--zt-nav-bar-icon-size);height:var(--zt-nav-bar-icon-size);line-height:var(--zt-nav-bar-icon-size);font-size:var(--zt-nav-bar-icon-font-size)}.zt-nav-bar__text{display:inline-block;font-size:var(--zt-font-size-lg);padding-right:var(--zt-nav-bar-padding-left);padding-left:var(--zt-nav-bar-padding-right)}.zt-nav-bar__text--left-text{padding-left:0}.zt-nav-bar__bar-btn{display:flex;align-items:center;box-sizing:border-box;height:var(--zt-nav-bar-button-height);line-height:var(--zt-nav-bar-icon-size);background:var(--zt-nav-bar-btn-background);box-shadow:var(--zt-nav-bar-btn-box-shadow);border-radius:var(--zt-nav-bar-btn-border-radius);border:var(--zt-nav-bar-btn-border)}.zt-nav-bar__bar-btn:active{border:1px solid rgba(255,255,255,.75);box-shadow:inset 4px 4px 8px rgba(45,75,115,.24);background:rgba(45,75,115,.04)}.zt-nav-bar__title{height:var(--zt-nav-bar-title-height);text-align:center;line-height:var(--zt-nav-bar-title-height);max-width:50%;margin:0 auto;font-weight:var(--zt-font-bold);font-size:var(--zt-font-size-xl)}.zt-nav-bar__left,.zt-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--zt-padding-md);font-size:var(--zt-font-size-md);max-width:30%}.zt-nav-bar__left{left:0}.zt-nav-bar__right{right:0}.zt-theme-dark{--zt-nav-bar-btn-background: linear-gradient(135deg, #0e1824 0%, #203043 100%, #ffffff 100%, #1d2c3d 100%);--zt-nav-bar-btn-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .12), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-nav-bar-btn-border: 1px solid #394555}
|
package/es/nav-bar/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
|
|
|
49
49
|
}, {}>>;
|
|
50
50
|
export default NavBar;
|
|
51
51
|
export type { NavBarProps } from './NavBar';
|
|
52
|
+
export type { NavBarThemeVars } from './types';
|
|
52
53
|
declare module 'vue' {
|
|
53
54
|
interface GlobalComponents {
|
|
54
55
|
ZtNavBar: typeof NavBar;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type NavBarThemeVars = {
|
|
2
|
+
navBarHeight?: string;
|
|
3
|
+
navBarPaddingBottom?: string;
|
|
4
|
+
navBarIconColor?: string;
|
|
5
|
+
navBarButtonHeight?: string;
|
|
6
|
+
navBarTitleHeight?: string;
|
|
7
|
+
navBarZIndex?: string;
|
|
8
|
+
navBarBtnBorderRadius?: string;
|
|
9
|
+
navBarPaddingLeft?: string;
|
|
10
|
+
navBarPaddingRight?: string;
|
|
11
|
+
navBarBtnBackground?: string;
|
|
12
|
+
navBarBtnBoxShadow?: string;
|
|
13
|
+
navBarBtnBorder?: string;
|
|
14
|
+
navBarIconFontSize?: string;
|
|
15
|
+
navBarIconSize?: string;
|
|
16
|
+
};
|
|
File without changes
|
package/es/notice-bar/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-notice-bar-
|
|
1
|
+
:root{--zt-notice-bar-padding: 0 var(--zt-padding-md);--zt-notice-bar-wrapable-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notice-bar-text-color: var(--zt-orange);--zt-notice-bar-background: var(--zt-background-4);--zt-notice-bar-icon-size: 20px;--zt-notice-bar-icon-min-width: 20px;--zt-notice-bar-icon-height: 20px;--zt-notice-bar-height: 36px}:root[zt-theme-size=large]{--zt-notice-bar-height: 48px}.zt-notice-bar{position:relative;display:flex;align-items:center;height:var(--zt-notice-bar-height);padding:var(--zt-notice-bar-padding);color:var(--zt-notice-bar-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-notice-bar-height);background:var(--zt-notice-bar-background)}.zt-notice-bar__left-icon,.zt-notice-bar__right-icon{min-width:var(--zt-notice-bar-icon-min-width);font-size:var(--zt-font-size-xxl)}.zt-notice-bar__right-icon{text-align:right;cursor:pointer}.zt-notice-bar__left-icon-size,.zt-notice-bar__right-icon-size{width:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-size)}.zt-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.zt-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.zt-notice-bar__content.zt-ellipsis{max-width:100%}.zt-notice-bar--wrapable{height:auto;padding:var(--zt-notice-bar-wrapable-padding)}.zt-notice-bar--wrapable .zt-notice-bar__wrap{height:auto}.zt-notice-bar--wrapable .zt-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}.zt-theme-dark{--zt-notice-bar-background: rgba(255, 245, 211, .1)}
|
package/es/notice-bar/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare const NoticeBar: import("../utils").WithInstall<import("vue").Def
|
|
|
48
48
|
}, {}>>;
|
|
49
49
|
export default NoticeBar;
|
|
50
50
|
export type { NoticeBarProps };
|
|
51
|
-
export type { NoticeBarMode, NoticeBarInstance } from './types';
|
|
51
|
+
export type { NoticeBarMode, NoticeBarInstance, NoticeBarThemeVars, } from './types';
|
|
52
52
|
declare module 'vue' {
|
|
53
53
|
interface GlobalComponents {
|
|
54
54
|
ZtNoticeBar: typeof NoticeBar;
|
package/es/notice-bar/types.d.ts
CHANGED
|
@@ -5,3 +5,13 @@ export type NoticeBarExpose = {
|
|
|
5
5
|
reset: () => void;
|
|
6
6
|
};
|
|
7
7
|
export type NoticeBarInstance = ComponentPublicInstance<NoticeBarProps, NoticeBarExpose>;
|
|
8
|
+
export type NoticeBarThemeVars = {
|
|
9
|
+
noticeBarPadding?: string;
|
|
10
|
+
noticeBarWrapablePadding?: string;
|
|
11
|
+
noticeBarTextColor?: string;
|
|
12
|
+
noticeBarBackground?: string;
|
|
13
|
+
noticeBarIconSize?: string;
|
|
14
|
+
noticeBarIconMinWidth?: string;
|
|
15
|
+
noticeBarIconHeight?: string;
|
|
16
|
+
noticeBarHeight?: string;
|
|
17
|
+
};
|
package/es/notify/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-notify-text-color: var(--zt-white);--zt-notify-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notify-
|
|
1
|
+
:root{--zt-notify-text-color: var(--zt-white);--zt-notify-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notify-primary-background: var(--zt-primary-color);--zt-notify-success-background: var(--zt-success-color);--zt-notify-danger-background: var(--zt-danger-color);--zt-notify-warning-background: var(--zt-warning-color)}.zt-notify{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--zt-notify-padding);color:var(--zt-notify-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);white-space:pre-wrap;text-align:center;word-wrap:break-word}.zt-notify--primary{background:var(--zt-notify-primary-background)}.zt-notify--success{background:var(--zt-notify-success-background)}.zt-notify--danger{background:var(--zt-notify-danger-background)}.zt-notify--warning{background:var(--zt-notify-warning-background)}
|
package/es/notify/index.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export declare const Notify: import("../utils").WithInstall<import("vue").Define
|
|
|
91
91
|
export default Notify;
|
|
92
92
|
export { showNotify, closeNotify, setNotifyDefaultOptions, resetNotifyDefaultOptions, } from './function-call';
|
|
93
93
|
export type { NotifyProps } from './Notify';
|
|
94
|
-
export type { NotifyType, NotifyOptions } from './types';
|
|
94
|
+
export type { NotifyType, NotifyOptions, NotifyThemeVars } from './types';
|
|
95
95
|
declare module 'vue' {
|
|
96
96
|
interface GlobalComponents {
|
|
97
97
|
ZtNotify: typeof Notify;
|
package/es/notify/types.d.ts
CHANGED
|
@@ -15,3 +15,11 @@ export type NotifyOptions = {
|
|
|
15
15
|
onClose?: () => void;
|
|
16
16
|
onOpened?: () => void;
|
|
17
17
|
};
|
|
18
|
+
export type NotifyThemeVars = {
|
|
19
|
+
notifyTextColor?: string;
|
|
20
|
+
notifyPadding?: string;
|
|
21
|
+
notifyPrimaryBackground?: string;
|
|
22
|
+
notifySuccessBackground?: string;
|
|
23
|
+
notifyDangerBackground?: string;
|
|
24
|
+
notifyWarningBackground?: string;
|
|
25
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-number-keyboard-background: var(--zt-background-3);--zt-number-keyboard-key-
|
|
1
|
+
:root{--zt-number-keyboard-background: var(--zt-background-3);--zt-number-keyboard-key-background: var(--zt-background-card);--zt-number-keyboard-title-color: var(--zt-gray-a6);--zt-number-keyboard-button-text-color: var(--zt-white);--zt-number-keyboard-button-background: var(--zt-primary-color);--zt-number-keyboard-z-index: 100;--zt-number-keyboard-key-spacing: 0 8px 8px 0;--zt-number-keyboard-radius: 16px 16px 0 0;--zt-number-keyboard-key-font-size: 24px;--zt-number-keyboard-header-height: 34px;--zt-number-keyboard-button-height: 28px;--zt-number-keyboard-key-height: 44px}:root[zt-theme-size=large]{--zt-number-keyboard-key-font-size: 30px;--zt-number-keyboard-header-height: 46px;--zt-number-keyboard-button-height: 40px;--zt-number-keyboard-key-height: 56px}.zt-number-keyboard{position:fixed;bottom:0;left:0;z-index:var(--zt-number-keyboard-z-index);width:100%;padding-bottom:8px;background:var(--zt-number-keyboard-background);-webkit-user-select:none;user-select:none;border-radius:var(--zt-number-keyboard-radius);box-sizing:border-box}.zt-number-keyboard--with-title{border-radius:20px 20px 0 0}.zt-number-keyboard__header{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;height:var(--zt-number-keyboard-header-height);padding-top:2px;color:var(--zt-number-keyboard-title-color);font-size:var(--zt-font-size-md);line-height:var(--zt-number-keyboard-header-height)}.zt-number-keyboard__title{display:inline-block}.zt-number-keyboard__title-left{position:absolute;left:0}.zt-number-keyboard__body{display:flex;padding:2px 8px 0 16px}.zt-number-keyboard__body-no-title{padding-top:16px}.zt-number-keyboard__keys{display:flex;flex:3;flex-wrap:wrap}.zt-number-keyboard__sidebar{display:flex;flex:1;flex-direction:column}.zt-number-keyboard--unfit{padding-bottom:0}.zt-key{display:flex;align-items:center;justify-content:center;height:var(--zt-number-keyboard-key-height);font-size:var(--zt-number-keyboard-key-font-size);line-height:var(--zt-number-keyboard-key-height);background:var(--zt-number-keyboard-key-background);border-radius:var(--zt-radius-md);cursor:pointer;color:var(--zt-text-color)}.zt-key--large{position:absolute;top:0;right:6px;bottom:8px;left:0;height:auto}.zt-key--blue,.zt-key--delete{font-size:var(--zt-font-size-xxl)}.zt-key--active{opacity:var(--zt-active-opacity)}.zt-key--blue{color:var(--zt-number-keyboard-button-text-color);background:var(--zt-number-keyboard-button-background);line-height:var(--zt-number-keyboard-button-height);letter-spacing:0}.zt-key--blue.zt-key--active{opacity:var(--zt-active-opacity)}.zt-key__wrapper{position:relative;flex:1;flex-basis:33%;box-sizing:border-box;padding:var(--zt-number-keyboard-key-spacing)}.zt-key__wrapper--wider{flex-basis:66%}.zt-key__delete-icon{width:40px;height:40px}.zt-key__collapse-icon{width:30px;height:24px}.zt-key__loading-icon{color:var(--zt-number-keyboard-button-text-color)}.zt-number-keyboard__no-title{padding-bottom:0}
|
|
@@ -112,6 +112,7 @@ export declare const NumberKeyboard: import("../utils").WithInstall<import("vue"
|
|
|
112
112
|
}, {}>>;
|
|
113
113
|
export default NumberKeyboard;
|
|
114
114
|
export type { NumberKeyboardProps, NumberKeyboardTheme, } from './NumberKeyboard';
|
|
115
|
+
export type { NumberKeyboardThemeVars } from './types';
|
|
115
116
|
declare module 'vue' {
|
|
116
117
|
interface GlobalComponents {
|
|
117
118
|
ZtNumberKeyboard: typeof NumberKeyboard;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type NumberKeyboardThemeVars = {
|
|
2
|
+
numberKeyboardBackground?: string;
|
|
3
|
+
numberKeyboardKeyBackground?: string;
|
|
4
|
+
numberKeyboardTitleColor?: string;
|
|
5
|
+
numberKeyboardButtonTextColor?: string;
|
|
6
|
+
numberKeyboardButtonBackground?: string;
|
|
7
|
+
numberKeyboardZIndex?: number;
|
|
8
|
+
numberKeyboardKeySpacing?: string;
|
|
9
|
+
numberKeyboardRadius?: string;
|
|
10
|
+
numberKeyboardKeyFontSize?: string;
|
|
11
|
+
numberKeyboardHeaderHeight?: string;
|
|
12
|
+
numberKeyboardButtonHeight?: string;
|
|
13
|
+
numberKeyboardKeyHeight?: string;
|
|
14
|
+
};
|
|
File without changes
|
package/es/overlay/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const Overlay: import("../utils").WithInstall<import("vue").Defin
|
|
|
33
33
|
}, {}>>;
|
|
34
34
|
export default Overlay;
|
|
35
35
|
export type { OverlayProps } from './Overlay';
|
|
36
|
+
export type { OverlayThemeVars } from './types';
|
|
36
37
|
declare module 'vue' {
|
|
37
38
|
interface GlobalComponents {
|
|
38
39
|
ZtOverlay: typeof Overlay;
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-password-input-height: 48px;--zt-password-input-margin: 0 var(--zt-padding-md);--zt-password-input-
|
|
1
|
+
:root{--zt-password-input-height: 48px;--zt-password-input-margin: 0 var(--zt-padding-md);--zt-password-input-radius: 6px;--zt-password-input-background: var(--zt-background-2);--zt-password-input-info-color: var(--zt-text-color-2);--zt-password-input-error-info-color: var(--zt-danger-color);--zt-password-input-dot-size: 8px;--zt-password-input-dot-color: var(--zt-text-color);--zt-password-input-text-color: var(--zt-text-color);--zt-password-input-cursor-color: var(--zt-primary-color);--zt-password-input-cursor-width: 1px;--zt-password-input-cursor-height: 40%;--zt-password-input-cursor-duration: 1s}.zt-password-input{position:relative;margin:var(--zt-password-input-margin);-webkit-user-select:none;user-select:none}.zt-password-input__info,.zt-password-input__error-info{margin-top:var(--zt-padding-md);font-size:var(--zt-font-size-md);text-align:center}.zt-password-input__info{color:var(--zt-password-input-info-color)}.zt-password-input__error-info{color:var(--zt-password-input-error-info-color)}.zt-password-input__security{display:flex;width:100%;height:var(--zt-password-input-height);cursor:pointer}.zt-password-input__security:after{border-radius:var(--zt-password-input-radius)}.zt-password-input__security li:last-child{border-radius:0 4px 4px 0}.zt-password-input__security li:first-child{border-radius:0 4px 4px 0}.zt-password-input__security li{position:relative;display:flex;flex:1;align-items:center;justify-content:center;height:100%;color:var(--zt-password-input-text-color);font-size:var(--zt-font-size-xxl);background:var(--zt-password-input-background);border:0 solid rgba(45,75,115,.2)}.zt-password-input__security i{position:absolute;top:50%;left:50%;width:var(--zt-password-input-dot-size);height:var(--zt-password-input-dot-size);background:var(--zt-password-input-dot-color);border-radius:100%;transform:translate(-50%,-50%);visibility:hidden}.zt-password-input__cursor{position:absolute;top:50%;left:50%;width:var(--zt-password-input-cursor-width);height:var(--zt-password-input-cursor-height);background:var(--zt-password-input-cursor-color);width:1px;height:24px;transform:translate(-50%,-50%);animation:var(--zt-password-input-cursor-duration) zt-cursor-flicker infinite}@keyframes zt-cursor-flicker{0%{opacity:0}50%{opacity:1}to{opacity:0}}
|
|
@@ -42,6 +42,7 @@ export declare const PasswordInput: import("../utils").WithInstall<import("vue")
|
|
|
42
42
|
}, {}>>;
|
|
43
43
|
export default PasswordInput;
|
|
44
44
|
export type { PasswordInputProps } from './PasswordInput';
|
|
45
|
+
export type { PasswordInputThemeVars } from './types';
|
|
45
46
|
declare module 'vue' {
|
|
46
47
|
interface GlobalComponents {
|
|
47
48
|
ZtPasswordInput: typeof PasswordInput;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type PasswordInputThemeVars = {
|
|
2
|
+
passwordInputHeight?: string;
|
|
3
|
+
passwordInputMargin?: string;
|
|
4
|
+
passwordInputRadius?: string;
|
|
5
|
+
passwordInputBackground?: string;
|
|
6
|
+
passwordInputInfoColor?: string;
|
|
7
|
+
passwordInputErrorInfoColor?: string;
|
|
8
|
+
passwordInputDotSize?: string;
|
|
9
|
+
passwordInputDotColor?: string;
|
|
10
|
+
passwordInputTextColor?: string;
|
|
11
|
+
passwordInputCursorColor?: string;
|
|
12
|
+
passwordInputCursorWidth?: string;
|
|
13
|
+
passwordInputCursorHeight?: string;
|
|
14
|
+
passwordInputCursorDuration?: string;
|
|
15
|
+
};
|
|
File without changes
|
package/es/picker/Picker.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
143
143
|
type: BooleanConstructor;
|
|
144
144
|
default: true;
|
|
145
145
|
};
|
|
146
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "
|
|
146
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption")[], "update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
147
147
|
loading: BooleanConstructor;
|
|
148
148
|
readonly: BooleanConstructor;
|
|
149
149
|
allowHtml: BooleanConstructor;
|
|
@@ -202,8 +202,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
202
202
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
203
203
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
204
204
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
205
|
-
onClickOption?: ((...args: any[]) => any) | undefined;
|
|
206
205
|
"onUpdate:showPicker"?: ((...args: any[]) => any) | undefined;
|
|
206
|
+
onClickOption?: ((...args: any[]) => any) | undefined;
|
|
207
207
|
}, {
|
|
208
208
|
title: string;
|
|
209
209
|
modelValue: Numeric[];
|
|
@@ -213,12 +213,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
213
213
|
showTitle: boolean;
|
|
214
214
|
columns: (PickerColumn | PickerOption)[];
|
|
215
215
|
allowHtml: boolean;
|
|
216
|
-
optionHeight: string | number;
|
|
217
|
-
showToolbar: boolean;
|
|
218
216
|
swipeDuration: string | number;
|
|
217
|
+
showPicker: boolean;
|
|
218
|
+
showToolbar: boolean;
|
|
219
|
+
toolbarPosition: PickerToolbarPosition;
|
|
220
|
+
optionHeight: string | number;
|
|
219
221
|
visibleOptionNum: string | number;
|
|
220
222
|
columnsUnit: string[];
|
|
221
|
-
toolbarPosition: PickerToolbarPosition;
|
|
222
|
-
showPicker: boolean;
|
|
223
223
|
}, {}>;
|
|
224
224
|
export default _default;
|
package/es/picker/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-picker-cancel-margin: 8px 4px 8px 16px;--zt-picker-confirm-margin: 8px 16px 8px 4px;--zt-picker-title-height: 44px;--zt-picker-title-border-radius: 16px 16px 0 0;--zt-picker-frame-background-color: var(--zt-gray-a06);--zt-picker-
|
|
1
|
+
:root{--zt-picker-cancel-margin: 8px 4px 8px 16px;--zt-picker-confirm-margin: 8px 16px 8px 4px;--zt-picker-title-height: 44px;--zt-picker-title-border-radius: 16px 16px 0 0;--zt-picker-frame-background-color: var(--zt-gray-a06);--zt-picker-title-text-color: var(--zt-gray-a4);--zt-picker-background: var(--zt-background-2);--zt-picker-toolbar-height: 60px;--zt-picker-title-background: var(--zt-background-2);--zt-picker-option-padding: 0 var(--zt-padding-base);--zt-picker-option-text-color: var(--zt-text-color);--zt-picker-option-disabled-opacity: var(--zt-disabled-opacity);--zt-picker-loading-icon-color: var(--zt-primary-color);--zt-picker-loading-mask-color: rgba(255, 255, 255, .9);--zt-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.zt-theme-dark{--zt-picker-loading-mask-color: rgba(0, 0, 0, .6);--zt-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.zt-picker{position:relative;background:var(--zt-picker-background);-webkit-user-select:none;user-select:none}.zt-picker__toolbar{display:flex;align-items:center;justify-content:space-between;height:var(--zt-picker-toolbar-height)}.zt-picker__cancel,.zt-picker__confirm{width:50%}.zt-picker__cancel{background:var(--zt-button-default-background);margin:var(--zt-picker-cancel-margin)}.zt-picker__confirm{margin:var(--zt-picker-confirm-margin)}.zt-picker__title{display:flex;justify-content:center;align-items:center;width:100%;height:var(--zt-picker-title-height);border-radius:var(--zt-picker-title-border-radius);font-size:var(--zt-font-size-md);background:var(--zt-picker-title-background);color:var(--zt-picker-title-text-color)}.zt-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.zt-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--zt-picker-loading-icon-color);background:var(--zt-picker-loading-mask-color)}.zt-picker__frame{position:absolute;top:50%;z-index:2;transform:translateY(-50%);pointer-events:none;width:100%;background:var(--zt-picker-frame-background-color)}.zt-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--zt-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.zt-picker-column{position:relative;flex:1;overflow:hidden;font-size:var(--zt-font-size-lg);background:var(--zt-picker-background)}.zt-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.zt-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--zt-picker-option-padding);color:var(--zt-picker-option-text-color)}.zt-picker-column__item--disabled{cursor:not-allowed;opacity:var(--zt-picker-option-disabled-opacity)}.zt-picker-column__item--selected{font-weight:700}.zt-picker-column__unit{background:var(--zt-picker-title-background);position:absolute;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--zt-picker-option-text-color);font-size:var(--zt-font-size-lg);width:100%;height:100%}.zt-picker-column__unit-text{margin:0 4px;font-size:var(--zt-font-size-md)}
|
package/es/picker/index.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
|
53
53
|
type: BooleanConstructor;
|
|
54
54
|
default: true;
|
|
55
55
|
};
|
|
56
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "
|
|
56
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption")[], "update:modelValue" | "cancel" | "change" | "confirm" | "update:showPicker" | "clickOption", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
57
|
loading: BooleanConstructor;
|
|
58
58
|
readonly: BooleanConstructor;
|
|
59
59
|
allowHtml: BooleanConstructor;
|
|
@@ -112,8 +112,8 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
|
112
112
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
113
113
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
114
114
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
115
|
-
onClickOption?: ((...args: any[]) => any) | undefined;
|
|
116
115
|
"onUpdate:showPicker"?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onClickOption?: ((...args: any[]) => any) | undefined;
|
|
117
117
|
}, {
|
|
118
118
|
title: string;
|
|
119
119
|
modelValue: import("../utils").Numeric[];
|
|
@@ -123,18 +123,18 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
|
123
123
|
showTitle: boolean;
|
|
124
124
|
columns: (import("./types").PickerColumn | import("./types").PickerOption)[];
|
|
125
125
|
allowHtml: boolean;
|
|
126
|
-
optionHeight: string | number;
|
|
127
|
-
showToolbar: boolean;
|
|
128
126
|
swipeDuration: string | number;
|
|
127
|
+
showPicker: boolean;
|
|
128
|
+
showToolbar: boolean;
|
|
129
|
+
toolbarPosition: import("./types").PickerToolbarPosition;
|
|
130
|
+
optionHeight: string | number;
|
|
129
131
|
visibleOptionNum: string | number;
|
|
130
132
|
columnsUnit: string[];
|
|
131
|
-
toolbarPosition: import("./types").PickerToolbarPosition;
|
|
132
|
-
showPicker: boolean;
|
|
133
133
|
}, {}>>;
|
|
134
134
|
export default Picker;
|
|
135
135
|
export { pickerProps } from './Picker';
|
|
136
136
|
export type { PickerProps };
|
|
137
|
-
export type { PickerColumn, PickerOption, PickerInstance, PickerFieldNames, PickerToolbarPosition, PickerCancelEventParams, PickerChangeEventParams, PickerConfirmEventParams, } from './types';
|
|
137
|
+
export type { PickerColumn, PickerOption, PickerInstance, PickerFieldNames, PickerToolbarPosition, PickerCancelEventParams, PickerChangeEventParams, PickerConfirmEventParams, PickerThemeVars, } from './types';
|
|
138
138
|
declare module 'vue' {
|
|
139
139
|
interface GlobalComponents {
|
|
140
140
|
ZtPicker: typeof Picker;
|
package/es/picker/types.d.ts
CHANGED
|
@@ -42,3 +42,20 @@ export type PickerCancelEventParams = PickerConfirmEventParams;
|
|
|
42
42
|
export type PickerChangeEventParams = PickerConfirmEventParams & {
|
|
43
43
|
columnIndex: number;
|
|
44
44
|
};
|
|
45
|
+
export type PickerThemeVars = {
|
|
46
|
+
pickerCancelMargin?: string;
|
|
47
|
+
pickerConfirmMargin?: string;
|
|
48
|
+
pickerTitleHeight?: string;
|
|
49
|
+
pickerTitleBorderRadius?: string;
|
|
50
|
+
pickerFrameBackgroundColor?: string;
|
|
51
|
+
pickerTitleTextColor?: string;
|
|
52
|
+
pickerBackground?: string;
|
|
53
|
+
pickerToolbarHeight?: string;
|
|
54
|
+
pickerTitleBackground?: string;
|
|
55
|
+
pickerOptionPadding?: string;
|
|
56
|
+
pickerOptionTextColor?: string;
|
|
57
|
+
pickerOptionDisabledOpacity?: string;
|
|
58
|
+
pickerLoadingIconColor?: string;
|
|
59
|
+
pickerLoadingMaskColor?: string;
|
|
60
|
+
pickerMaskColor?: string;
|
|
61
|
+
};
|
package/es/popover/Popover.mjs
CHANGED
package/es/popover/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-popover-arrow-size: 6px;--zt-popover-radius: var(--zt-radius-lg);--zt-popover-action-width: 120px;--zt-popover-action-height: 40px;--zt-popover-
|
|
1
|
+
:root{--zt-popover-arrow-size: 6px;--zt-popover-radius: var(--zt-radius-lg);--zt-popover-action-width: 120px;--zt-popover-action-height: 40px;--zt-popover-light-text-color: var(--zt-text-color);--zt-popover-light-background: var(--zt-background-2);--zt-popover-light-action-disabled-text-color: var(--zt-text-color-3);--zt-popover-dark-text-color: var(--zt-white);--zt-popover-dark-background: #4a4a4a;--zt-popover-dark-action-disabled-text-color: var(--zt-text-color-2)}.zt-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.zt-popover__wrapper{display:inline-block}.zt-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--zt-popover-arrow-size)}.zt-popover__content{overflow:hidden;border-radius:var(--zt-popover-radius)}.zt-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--zt-popover-action-width);height:var(--zt-popover-action-height);padding:0 var(--zt-padding-md);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);cursor:pointer}.zt-popover__action:last-child .zt-popover__action-text:after{display:none}.zt-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.zt-popover__action-icon{margin-right:var(--zt-padding-xs);font-size:var(--zt-font-size-xxl)}.zt-popover__action--with-icon .zt-popover__action-text{justify-content:flex-start}.zt-popover[data-popper-placement^=top] .zt-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;margin-bottom:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=top]{transform-origin:50% 100%}.zt-popover[data-popper-placement=top] .zt-popover__arrow{left:50%;transform:translate(-50%)}.zt-popover[data-popper-placement=top-start]{transform-origin:0 100%}.zt-popover[data-popper-placement=top-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=top-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover[data-popper-placement^=left] .zt-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translateY(-50%);margin-right:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=left]{transform-origin:100% 50%}.zt-popover[data-popper-placement=left] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=left-start]{transform-origin:100% 0}.zt-popover[data-popper-placement=left-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=left-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=right] .zt-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translateY(-50%);margin-left:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=right]{transform-origin:0 50%}.zt-popover[data-popper-placement=right] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=right-start]{transform-origin:0 0}.zt-popover[data-popper-placement=right-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=right-end]{transform-origin:0 100%}.zt-popover[data-popper-placement=right-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=bottom] .zt-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%);margin-top:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=bottom]{transform-origin:50% 0}.zt-popover[data-popper-placement=bottom] .zt-popover__arrow{left:50%}.zt-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.zt-popover[data-popper-placement=bottom-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.zt-popover[data-popper-placement=bottom-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover--light{display:none;color:var(--zt-popover-light-text-color)}.zt-popover--light .zt-popover__content{background:var(--zt-popover-light-background);box-shadow:0 2px 12px rgba(50,50,51,.12)}.zt-popover--light .zt-popover__arrow{color:var(--zt-popover-light-background)}.zt-popover--light .zt-popover__action:active{background-color:var(--zt-active-color)}.zt-popover--light .zt-popover__action--selected{color:var(--zt-primary-color);cursor:not-allowed}.zt-popover--light .zt-popover__action--selected:active{background-color:transparent}.zt-popover--light .zt-popover__action--disabled{color:var(--zt-popover-light-action-disabled-text-color);cursor:not-allowed}.zt-popover--light .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark{display:none;color:var(--zt-popover-dark-text-color)}.zt-popover--dark .zt-popover__content{background:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__arrow{color:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__action:active{background-color:rgba(0,0,0,.2)}.zt-popover--dark .zt-popover__action--disabled{color:var(--zt-popover-dark-action-disabled-text-color)}.zt-popover--dark .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark .zt-popover__action-text:after{border-color:var(--zt-gray-7)}.zt-popover--show{display:block}.zt-popover--hidden{display:none}.zt-popover-zoom-enter-from,.zt-popover-zoom-leave-active{transform:scale(.8);opacity:0}.zt-popover-zoom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popover-zoom-leave-active{transition-timing-function:var(--zt-ease-in)}
|
package/es/popover/index.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
|
122
122
|
export default Popover;
|
|
123
123
|
export { popoverProps } from './Popover';
|
|
124
124
|
export type { PopoverProps } from './Popover';
|
|
125
|
-
export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, } from './types';
|
|
125
|
+
export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, PopoverThemeVars, } from './types';
|
|
126
126
|
declare module 'vue' {
|
|
127
127
|
interface GlobalComponents {
|
|
128
128
|
ZtPopover: typeof Popover;
|
package/es/popover/types.d.ts
CHANGED
|
@@ -9,3 +9,15 @@ export type PopoverAction = {
|
|
|
9
9
|
className?: string;
|
|
10
10
|
[key: PropertyKey]: any;
|
|
11
11
|
};
|
|
12
|
+
export type PopoverThemeVars = {
|
|
13
|
+
popoverArrowSize?: string;
|
|
14
|
+
popoverRadius?: string;
|
|
15
|
+
popoverActionWidth?: string;
|
|
16
|
+
popoverActionHeight?: string;
|
|
17
|
+
popoverLightTextColor?: string;
|
|
18
|
+
popoverLightBackground?: string;
|
|
19
|
+
popoverLightActionDisabledTextColor?: string;
|
|
20
|
+
popoverDarkTextColor?: string;
|
|
21
|
+
popoverDarkBackground?: string;
|
|
22
|
+
popoverDarkActionDisabledTextColor?: string;
|
|
23
|
+
};
|
package/es/popup/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-popup-background: var(--zt-background-2);--zt-popup-transition: transform var(--zt-duration-base);--zt-popup-round-radius: 16px;--zt-popup-close-icon-
|
|
1
|
+
:root{--zt-popup-background: var(--zt-background-2);--zt-popup-transition: transform var(--zt-duration-base);--zt-popup-round-radius: 16px;--zt-popup-close-icon-color: var(--zt-gray-a6);--zt-popup-close-icon-margin: 16px;--zt-popup-close-icon-z-index: 1}.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--zt-popup-background);transition:var(--zt-popup-transition);-webkit-overflow-scrolling:touch}.zt-popup__slider{position:fixed;width:100%;bottom:0;left:0;border-radius:16px 16px 0 0;background-color:var(--zt-popup-background)}.zt-popup__slider-title{height:40px;text-align:center}.zt-popup__slider-bar{display:inline-block;width:32px;height:4px;transform:scaleY(-1);background:rgba(45,75,115,.2);border-radius:3px}.zt-popup__slider-content{overflow-y:auto}.zt-popup--center{top:50%;left:50%;transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:var(--zt-popup-round-radius)}.zt-popup--top{top:0;left:0;width:100%}.zt-popup--top.zt-popup--round{border-radius:0 0 var(--zt-popup-round-radius) var(--zt-popup-round-radius)}.zt-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.zt-popup--right.zt-popup--round{border-radius:var(--zt-popup-round-radius) 0 0 var(--zt-popup-round-radius)}.zt-popup--bottom{bottom:0;left:0;width:100%}.zt-popup--bottom.zt-popup--round{border-radius:var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0 0}.zt-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.zt-popup--left.zt-popup--round{border-radius:0 var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0}.zt-popup-slide-top-enter-active,.zt-popup-slide-left-enter-active,.zt-popup-slide-right-enter-active,.zt-popup-slide-bottom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popup-slide-top-leave-active,.zt-popup-slide-left-leave-active,.zt-popup-slide-right-leave-active,.zt-popup-slide-bottom-leave-active{transition-timing-function:var(--zt-ease-in)}.zt-popup-slide-top-enter-from,.zt-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.zt-popup-slide-right-enter-from,.zt-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.zt-popup-slide-bottom-enter-from,.zt-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.zt-popup-slide-left-enter-from,.zt-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.zt-popup__slider-icon{z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-font-size-xxxl);cursor:pointer}.zt-popup__close-icon{position:absolute;z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-font-size-xxxl)}.zt-popup__close-icon--top-left{top:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--top-right{top:var(--zt-popup-close-icon-margin);right:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-left{bottom:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-right{right:var(--zt-popup-close-icon-margin);bottom:var(--zt-popup-close-icon-margin)}
|
package/es/popup/index.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
|
145
145
|
}, {}>>;
|
|
146
146
|
export default Popup;
|
|
147
147
|
export type { PopupProps } from './Popup';
|
|
148
|
-
export type { PopupPosition, PopupInstance, PopupCloseIconPosition, } from './types';
|
|
148
|
+
export type { PopupPosition, PopupInstance, PopupCloseIconPosition, PopupThemeVars, } from './types';
|
|
149
149
|
declare module 'vue' {
|
|
150
150
|
interface GlobalComponents {
|
|
151
151
|
ZtPopup: typeof Popup;
|