zartui 3.1.9 → 3.1.11
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/Cascader.d.ts +1 -1
- package/es/cascader/index.css +1 -1
- package/es/cascader/index.d.ts +2 -2
- package/es/cascader/types.d.ts +21 -0
- package/es/cell/Cell.d.ts +24 -1
- package/es/cell/Cell.mjs +30 -5
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +15 -2
- package/es/cell/types.d.ts +24 -0
- package/es/cell-group/index.css +1 -1
- package/es/checkbox/Checkbox.d.ts +1 -1
- package/es/checkbox/Checker.mjs +6 -0
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +2 -2
- package/es/checkbox/types.d.ts +19 -0
- package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/es/checkbox-group/index.css +1 -1
- package/es/checkbox-group/index.d.ts +1 -1
- package/es/collapse/Collapse.d.ts +1 -1
- package/es/collapse/index.d.ts +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 +3 -3
- package/es/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
- package/es/date-time-picker/index.css +1 -1
- package/es/date-time-picker/index.d.ts +3 -3
- 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.d.ts +1 -1
- package/es/dropdown-item/DropdownItem.mjs +1 -0
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-item/index.d.ts +2 -2
- 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/Field.d.ts +17 -2
- package/es/field/index.css +1 -1
- package/es/field/index.d.ts +13 -3
- 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 +133 -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 +192 -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 +5 -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/NumberKeyboard.d.ts +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/number-keyboard/index.d.ts +2 -1
- 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/PullRefresh.d.ts +1 -1
- package/es/pull-refresh/index.css +1 -1
- package/es/pull-refresh/index.d.ts +2 -1
- 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/RadioGroup.d.ts +1 -1
- package/es/radio-group/index.css +1 -1
- package/es/radio-group/index.d.ts +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/Rate.d.ts +1 -1
- package/es/rate/index.css +1 -1
- package/es/rate/index.d.ts +2 -1
- package/es/rate/types.d.ts +6 -0
- package/es/rate/types.mjs +0 -0
- package/es/search/Search.d.ts +2 -2
- package/es/search/index.css +1 -1
- package/es/search/index.d.ts +3 -3
- 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/Stepper.d.ts +1 -1
- package/es/stepper/index.css +1 -1
- package/es/stepper/index.d.ts +2 -1
- 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/Switch.d.ts +1 -1
- package/es/switch/index.css +1 -1
- package/es/switch/index.d.ts +2 -1
- package/es/switch/types.d.ts +18 -0
- package/es/switch/types.mjs +0 -0
- package/es/tabbar/Tabbar.d.ts +1 -1
- package/es/tabbar/index.d.ts +2 -1
- 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 +3 -3
- package/es/time-picker/index.css +1 -1
- package/es/time-picker/index.d.ts +4 -3
- 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/Cascader.d.ts +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cascader/index.d.ts +2 -2
- package/lib/cascader/types.d.ts +21 -0
- package/lib/cell/Cell.d.ts +24 -1
- package/lib/cell/Cell.js +28 -3
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +15 -2
- package/lib/cell/types.d.ts +24 -0
- package/lib/cell-group/index.css +1 -1
- package/lib/checkbox/Checkbox.d.ts +1 -1
- package/lib/checkbox/Checker.js +6 -0
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/types.d.ts +19 -0
- package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox-group/index.css +1 -1
- package/lib/checkbox-group/index.d.ts +1 -1
- package/lib/collapse/Collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +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 +3 -3
- package/lib/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
- package/lib/date-time-picker/index.css +1 -1
- package/lib/date-time-picker/index.d.ts +3 -3
- 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.d.ts +1 -1
- package/lib/dropdown-item/DropdownItem.js +1 -0
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-item/index.d.ts +2 -2
- 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/Field.d.ts +17 -2
- package/lib/field/index.css +1 -1
- package/lib/field/index.d.ts +13 -3
- 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 +132 -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 +191 -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 +5 -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/NumberKeyboard.d.ts +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/number-keyboard/index.d.ts +2 -1
- 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/PullRefresh.d.ts +1 -1
- package/lib/pull-refresh/index.css +1 -1
- package/lib/pull-refresh/index.d.ts +2 -1
- 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/RadioGroup.d.ts +1 -1
- package/lib/radio-group/index.css +1 -1
- package/lib/radio-group/index.d.ts +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/Rate.d.ts +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.d.ts +2 -1
- package/lib/rate/types.d.ts +6 -0
- package/lib/rate/types.js +15 -0
- package/lib/search/Search.d.ts +2 -2
- package/lib/search/index.css +1 -1
- package/lib/search/index.d.ts +3 -3
- 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/Stepper.d.ts +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/stepper/index.d.ts +2 -1
- 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/Switch.d.ts +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/switch/index.d.ts +2 -1
- package/lib/switch/types.d.ts +18 -0
- package/lib/switch/types.js +15 -0
- package/lib/tabbar/Tabbar.d.ts +1 -1
- package/lib/tabbar/index.d.ts +2 -1
- 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 +3 -3
- package/lib/time-picker/index.css +1 -1
- package/lib/time-picker/index.d.ts +4 -3
- 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 +1156 -693
- package/lib/zartui.es.js +1156 -693
- package/lib/zartui.js +1156 -693
- package/lib/zartui.min.js +1 -1
- package/package.json +5 -4
package/es/step/Step.mjs
CHANGED
|
@@ -54,12 +54,12 @@ var stdin_default = defineComponent({
|
|
|
54
54
|
} = parentProps;
|
|
55
55
|
const style = {};
|
|
56
56
|
if (isActive()) {
|
|
57
|
-
style.background = `${activeBgColor || "
|
|
57
|
+
style.background = `${activeBgColor || "var(--zt-primary-color-a2)"}`;
|
|
58
58
|
if (activeBorderColor) {
|
|
59
59
|
style.border = `1px solid ${activeBorderColor}`;
|
|
60
60
|
}
|
|
61
61
|
style.fontWeight = "bold";
|
|
62
|
-
style.color = `${activeColor || "
|
|
62
|
+
style.color = `${activeColor || "var(--zt-primary-color)"}`;
|
|
63
63
|
} else {
|
|
64
64
|
style.background = `${inactiveBgColor || ""}`;
|
|
65
65
|
if (inactiveBorderColor) {
|
package/es/step/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-step-
|
|
1
|
+
:root{--zt-step-process-text-color: var(--zt-text-color);--zt-step-line-color: var(--zt-gray-a1);--zt-step-circle-container-background: var(--zt-background-2);--zt-step-circle-container-left: 0}:root[zt-theme-size=large]{--zt-step-circle-container-left: 6px}.zt-step{-webkit-user-select:none;user-select:none;position:relative;flex:1}.zt-step__circle{display:block;width:var(--zt-line-height-md);height:var(--zt-line-height-md);line-height:var(--zt-line-height-md);background:var(--zt-gray-a2);border-radius:50%;text-align:center;font-size:var(--zt-font-size-md)}.zt-step__line{position:absolute;background-color:var(--zt-step-line-color);transition:background-color var(--zt-duration-base)}.zt-step--horizontal{float:left}.zt-step--horizontal .zt-step__circle-container{position:absolute;top:10px;left:calc(50% - 10px);z-index:1;background-color:var(--zt-step-circle-container-background);transform:translateY(-50%)}.zt-step--horizontal .zt-step__title{display:inline-block;margin-top:26px;font-size:var(--zt-font-size-md);color:var(--zt-gray-a6);width:100%;text-align:center}.zt-step--horizontal .zt-step__title--active{color:var(--zt-text-color)}.zt-step--horizontal .zt-step__line{top:10px;left:calc(50% + 14px);width:calc(100% - 28px);height:1px}.zt-step--horizontal .zt-step__icon{display:block;font-size:var(--zt-font-size-sm);left:50%;top:50%;transform:translate(-50%,-50%)}.zt-step--horizontal .zt-step--process{color:var(--zt-step-process-text-color)}.zt-step--vertical{display:block;float:none;padding:10px 16px 10px 8px;line-height:var(--zt-line-height-sm)}.zt-step--vertical .zt-step__title{font-size:var(--zt-font-size-md);color:var(--zt-gray-a6)}.zt-step--vertical .zt-step__circle-container{position:absolute;top:20px;left:var(--zt-step-circle-container-left);z-index:1;font-size:var(--zt-font-size-sm);line-height:1;transform:translate(-100%,-50%)}.zt-step--vertical .zt-step__line{left:-10px;top:34px;height:calc(100% - 28px);width:1px}.zt-step--vertical .zt-step__icon{display:block;font-size:var(--zt-font-size-sm);left:50%;top:50%;transform:translate(-50%,-50%)}.zt-step:last-child .zt-step__line{width:0}.zt-step__icon,.zt-step__title{transition:color var(--zt-duration-base)}
|
package/es/step/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const Step: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
8
8
|
inactiveIcon: StringConstructor;
|
|
9
9
|
}>>, {}, {}>>;
|
|
10
10
|
export default Step;
|
|
11
|
+
export type { StepThemeVars } from './types';
|
|
11
12
|
declare module 'vue' {
|
|
12
13
|
interface GlobalComponents {
|
|
13
14
|
ZtStep: typeof Step;
|
|
File without changes
|
package/es/stepper/Stepper.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
103
|
default: number;
|
|
104
104
|
};
|
|
105
105
|
decimalLength: (NumberConstructor | StringConstructor)[];
|
|
106
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
106
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "update:modelValue" | "minus" | "plus" | "overlimit")[], "blur" | "change" | "focus" | "update:modelValue" | "minus" | "plus" | "overlimit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
107
107
|
min: {
|
|
108
108
|
type: (NumberConstructor | StringConstructor)[];
|
|
109
109
|
default: number;
|
package/es/stepper/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-stepper-background: rgba(45, 75, 115, .04);--zt-stepper-background-image: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%, #ffffff 100%);--zt-stepper-box-border: 0;--zt-stepper-button-icon-color: var(--zt-text-color);--zt-stepper-button-disabled-color: var(--zt-background);--zt-stepper-button-disabled-icon-color: var(--zt-gray-a2);--zt-stepper-button-round-theme-color: var(--zt-primary-color);--zt-stepper-button-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0px rgba(45, 75, 115, .1);--zt-stepper-input-width: 60px;--zt-stepper-input-height: 32px;--zt-stepper-input-
|
|
1
|
+
:root{--zt-stepper-background: rgba(45, 75, 115, .04);--zt-stepper-background-image: linear-gradient(135deg, #e6ebf0 0%, #ffffff 100%, #ffffff 100%);--zt-stepper-box-border: 0;--zt-stepper-button-icon-color: var(--zt-text-color);--zt-stepper-button-disabled-color: var(--zt-background);--zt-stepper-button-disabled-icon-color: var(--zt-gray-a2);--zt-stepper-button-round-theme-color: var(--zt-primary-color);--zt-stepper-button-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0px rgba(45, 75, 115, .1);--zt-stepper-input-width: 60px;--zt-stepper-input-height: 32px;--zt-stepper-input-text-color: var(--zt-text-color);--zt-stepper-input-disabled-text-color: var(--zt-gray-a2);--zt-stepper-input-disabled-background: var(--zt-active-color);--zt-stepper-input-box-shadow: inset 4px 4px 8px -4px rgba(45, 75, 115, .1);--zt-stepper-radius: var(--zt-radius-max)}.zt-stepper{display:inline-block;-webkit-user-select:none;user-select:none}.zt-stepper__could-click:active{box-shadow:inset 4px 4px 8px rgba(45,75,115,.24)}.zt-stepper__minus,.zt-stepper__plus{display:inline-flex;justify-content:center;align-items:center;position:relative;box-sizing:border-box;width:var(--zt-stepper-input-height);height:var(--zt-stepper-input-height);margin:0;padding:0;vertical-align:middle;background:var(--zt-stepper-background);border:var(--zt-stepper-box-border);background-image:var(--zt-stepper-background-image);box-shadow:var(--zt-stepper-button-box-shadow)}.zt-stepper__minus i,.zt-stepper__plus i{transform:scale(.625)}.zt-stepper__minus--disabled,.zt-stepper__plus--disabled{color:var(--zt-stepper-button-disabled-icon-color);background-color:var(--zt-stepper-button-disabled-color);cursor:not-allowed}.zt-stepper__minus{border-radius:var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius)}.zt-stepper__minus:after{display:none}.zt-stepper__plus{border-radius:var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius) var(--zt-stepper-radius)}.zt-stepper__input{box-sizing:border-box;width:var(--zt-stepper-input-width);height:var(--zt-stepper-input-height);margin:0 12px;padding:4px;color:var(--zt-stepper-input-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);text-align:center;vertical-align:middle;background:var(--zt-stepper-background);border:var(--zt-stepper-box-border);border-radius:var(--zt-radius-gt);box-shadow:var(--zt-stepper-input-box-shadow);-webkit-appearance:none}.zt-stepper__input:disabled{color:var(--zt-stepper-input-disabled-text-color);background:var(--zt-stepper-input-disabled-background);-webkit-text-fill-color:var(--zt-stepper-input-disabled-text-color);opacity:1}.zt-stepper__input:read-only{cursor:default}.zt-stepper--round .zt-stepper__input{background-color:transparent}.zt-stepper--round .zt-stepper__plus,.zt-stepper--round .zt-stepper__minus{border-radius:100%}.zt-stepper--round .zt-stepper__plus--disabled,.zt-stepper--round .zt-stepper__minus--disabled{opacity:.3;cursor:not-allowed}.zt-stepper--round .zt-stepper__plus{color:var(--zt-white);background:var(--zt-stepper-button-round-theme-color)}.zt-stepper--round .zt-stepper__minus{color:var(--zt-stepper-button-round-theme-color);background-color:var(--zt-background-2);border:1px solid var(--zt-stepper-button-round-theme-color)}.zt-theme-dark{--zt-stepper-background: #19232d;--zt-stepper-background-image: linear-gradient(135deg, #0e1824 0%, #203043 100%);--zt-stepper-box-border: 1px solid rgba(255, 255, 255, .12);--zt-stepper-button-box-shadow: -1px -1px 2px 0 rgba(255, 255, 255, .12), 0 0 3px 0 rgba(0, 12, 24, .8);--zt-stepper-input-disabled-background: linear-gradient(147deg, #0e1824 0%, #203043 100%)}
|
package/es/stepper/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
|
|
|
48
48
|
default: number;
|
|
49
49
|
};
|
|
50
50
|
decimalLength: (NumberConstructor | StringConstructor)[];
|
|
51
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
51
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "update:modelValue" | "minus" | "plus" | "overlimit")[], "blur" | "change" | "focus" | "update:modelValue" | "minus" | "plus" | "overlimit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
52
|
min: {
|
|
53
53
|
type: (NumberConstructor | StringConstructor)[];
|
|
54
54
|
default: number;
|
|
@@ -125,6 +125,7 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
|
|
|
125
125
|
}, {}>>;
|
|
126
126
|
export default Stepper;
|
|
127
127
|
export type { StepperTheme, StepperProps } from './Stepper';
|
|
128
|
+
export type { StepperThemeVars } from './types';
|
|
128
129
|
declare module 'vue' {
|
|
129
130
|
interface GlobalComponents {
|
|
130
131
|
ZtStepper: typeof Stepper;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type StepperThemeVars = {
|
|
2
|
+
stepperBackground?: string;
|
|
3
|
+
stepperBackgroundImage?: string;
|
|
4
|
+
stepperBoxBorder?: string;
|
|
5
|
+
stepperButtonIconColor?: string;
|
|
6
|
+
stepperButtonDisabledColor?: string;
|
|
7
|
+
stepperButtonDisabledIconColor?: string;
|
|
8
|
+
stepperButtonRoundThemeColor?: string;
|
|
9
|
+
stepperButtonBoxShadow?: string;
|
|
10
|
+
stepperInputWidth?: string;
|
|
11
|
+
stepperInputHeight?: string;
|
|
12
|
+
stepperInputTextColor?: string;
|
|
13
|
+
stepperInputDisabledTextColor?: string;
|
|
14
|
+
stepperInputDisabledBackground?: string;
|
|
15
|
+
stepperInputBoxShadow?: string;
|
|
16
|
+
stepperRadius?: string;
|
|
17
|
+
};
|
|
File without changes
|
package/es/steps/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-steps-background: var(--zt-background-2);--zt-steps-vertical-title-color: rgba(0, 0, 0, .4)}.zt-steps{overflow:hidden;background-color:var(--zt-steps-background);margin:12px;border:0 solid rgba(0,0,0,.1);box-shadow:0 4px 8px rgba(0,0,0,.1);border-radius:8px}.zt-steps--horizontal{padding:
|
|
1
|
+
:root{--zt-steps-background: var(--zt-background-2);--zt-steps-vertical-title-color: rgba(0, 0, 0, .4);--zt-steps-horizontal-padding: var(--zt-padding-xs)}:root[zt-theme-size=large]{--zt-steps-horizontal-padding: 14px}.zt-steps{overflow:hidden;background-color:var(--zt-steps-background);margin:12px;border:0 solid rgba(0,0,0,.1);box-shadow:0 4px 8px rgba(0,0,0,.1);border-radius:8px}.zt-steps--horizontal{padding:var(--zt-steps-horizontal-padding) 0}.zt-steps--horizontal .zt-steps__items{position:relative;display:flex}.zt-steps--vertical{padding:0 0 0 var(--zt-padding-xl)}.zt-theme-dark{--zt-steps-vertical-title-color: rgba(255, 255, 255, .4)}
|
package/es/steps/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare const Steps: import("../utils").WithInstall<import("vue").DefineC
|
|
|
41
41
|
export default Steps;
|
|
42
42
|
export { stepsProps } from './Steps';
|
|
43
43
|
export type { StepsProps, StepsDirection } from './Steps';
|
|
44
|
+
export type { StepsThemeVars } from './types';
|
|
44
45
|
declare module 'vue' {
|
|
45
46
|
interface GlobalComponents {
|
|
46
47
|
ZtSteps: typeof Steps;
|
|
File without changes
|
package/es/sticky/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare const Sticky: import("../utils").WithInstall<import("vue").Define
|
|
|
38
38
|
}, {}>>;
|
|
39
39
|
export default Sticky;
|
|
40
40
|
export type { StickyProps, StickyPosition } from './Sticky';
|
|
41
|
+
export type { StickyThemeVars } from './types';
|
|
41
42
|
declare module 'vue' {
|
|
42
43
|
interface GlobalComponents {
|
|
43
44
|
ZtSticky: typeof Sticky;
|
|
File without changes
|
package/es/style/base.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-
|
|
1
|
+
:root{--zt-green-r: 40;--zt-green-g: 205;--zt-green-b: 120;--zt-green-rgb: var(--zt-green-r), var(--zt-green-g), var(--zt-green-b);--zt-deep-green-r: 0;--zt-deep-green-g: 175;--zt-deep-green-b: 145;--zt-deep-green-rgb: var(--zt-deep-green-r), var(--zt-deep-green-g), var(--zt-deep-green-b);--zt-orange-r: 255;--zt-orange-g: 150;--zt-orange-b: 35;--zt-orange-rgb: var(--zt-orange-r), var(--zt-orange-g), var(--zt-orange-b);--zt-yellow-r: 255;--zt-yellow-g: 205;--zt-yellow-b: 35;--zt-yellow-rgb: var(--zt-yellow-r), var(--zt-yellow-g), var(--zt-yellow-b);--zt-blue-r: 0;--zt-blue-g: 145;--zt-blue-b: 250;--zt-blue-rgb: var(--zt-blue-r), var(--zt-blue-g), var(--zt-blue-b);--zt-gray-r: 45;--zt-gray-g: 75;--zt-gray-b: 115;--zt-gray-rgb: var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b);--zt-red-r: 255;--zt-red-g: 80;--zt-red-b: 35;--zt-red-rgb: var(--zt-red-r), var(--zt-red-g), var(--zt-red-b);--zt-primary-color-r: 0;--zt-primary-color-g: 145;--zt-primary-color-b: 250;--zt-primary-color-rgb: var(--zt-primary-color-r), var(--zt-primary-color-g), var(--zt-primary-color-b);--zt-black: #000;--zt-white: #fff;--zt-gray: rgb(var(--zt-gray-rgb));--zt-gray-3: #ebedf0;--zt-gray-4: #dcdee0;--zt-gray-5: #c8c9cc;--zt-gray-6: #969799;--zt-gray-7: #646566;--zt-gray-8: #323233;--zt-gray-a04: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .04);--zt-gray-a06: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .06);--zt-gray-a08: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .08);--zt-gray-a1: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .1);--zt-gray-a2: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .2);--zt-gray-a4: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .4);--zt-gray-a6: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .6);--zt-gray-a8: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .8);--zt-red: rgb(var(--zt-red-rgb));--zt-blue: rgb(var(--zt-blue-rgb));--zt-orange: rgb(var(--zt-orange-rgb));--zt-green: rgb(var(--zt-green-rgb));--zt-yellow: rgb(var(--zt-yellow-rgb));--zt-text-color-rgb: var(--zt-gray-rgb);--zt-primary-color: rgb(var(--zt-primary-color-rgb));--zt-primary-color-light: rgb(var(--zt-primary-color-r), calc(var(--zt-primary-color-g) + 30), var(--zt-primary-color-b));--zt-primary-color-a1: rgba(var(--zt-primary-color-rgb), .1);--zt-primary-color-a2: rgba(var(--zt-primary-color-rgb), .2);--zt-primary-color-a6: rgba(var(--zt-primary-color-rgb), .6);--zt-success-color: var(--zt-green);--zt-danger-color: var(--zt-red);--zt-warning-color: var(--zt-orange);--zt-text-color: var(--zt-gray);--zt-text-color-2: var(--zt-gray-6);--zt-text-color-3: var(--zt-gray-5);--zt-placeholder-color: var(--zt-gray-a2);--zt-active-color: var(--zt-gray-a2);--zt-active-opacity: .6;--zt-disabled-opacity: .4;--zt-background: #f5faff;--zt-background-2: var(--zt-white);--zt-background-3: #edf3fa;--zt-background-4: rgba(255, 205, 35, .2);--zt-background-5: #ff4b50;--zt-background-card: var(--zt-white);--zt-padding-xxs: 2px;--zt-padding-base: 4px;--zt-padding-xs: 8px;--zt-padding-sm: 12px;--zt-padding-md: 16px;--zt-padding-lg: 24px;--zt-padding-xl: 32px;--zt-font-bold: 600;--zt-font-size-xs: 10px;--zt-font-size-sm: 12px;--zt-font-size-md: 14px;--zt-font-size-lg: 16px;--zt-font-size-xl: 18px;--zt-font-size-xxl: 20px;--zt-font-size-xxxl: 22px;--zt-line-height-xs: 16px;--zt-line-height-sm: 18px;--zt-line-height-md: 20px;--zt-line-height-lg: 22px;--zt-line-height-xl: 24px;--zt-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--zt-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--zt-duration-base: .3s;--zt-duration-fast: .2s;--zt-ease-out: ease-out;--zt-ease-in: ease-in;--zt-border-color: var(--zt-gray-a1);--zt-border-width: 1px;--zt-radius-sm: 2px;--zt-radius-md: 4px;--zt-radius-lg: 8px;--zt-radius-gt: 16px;--zt-radius-max: 999px}:root[zt-theme-size=large]{--zt-font-size-sm: 18px;--zt-font-size-md: 20px;--zt-font-size-lg: 22px;--zt-font-size-xl: 24px;--zt-font-size-xxl: 26px;--zt-font-size-xxxl: 28px;--zt-line-height-xs: 28px;--zt-line-height-sm: 30px;--zt-line-height-md: 32px;--zt-line-height-lg: 34px;--zt-line-height-xl: 36px}.zt-theme-dark{--zt-gray-r: 255;--zt-gray-g: 255;--zt-gray-b: 255;--zt-text-color-2: #707070;--zt-text-color-3: #4d4d4d;--zt-background: #0f1923;--zt-background-2: #19232d;--zt-background-3: #19232d;--zt-background-card: var(--zt-gray-a04)}html{-webkit-tap-highlight-color:transparent}:root{margin:0;font-family:var(--zt-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=zt-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes zt-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes zt-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes zt-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes zt-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes zt-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes zt-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes zt-fade-in{0%{opacity:0}to{opacity:1}}@keyframes zt-fade-out{0%{opacity:1}to{opacity:0}}@keyframes zt-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.zt-fade-enter-active{animation:var(--zt-duration-base) zt-fade-in both var(--zt-ease-out)}.zt-fade-leave-active{animation:var(--zt-duration-base) zt-fade-out both var(--zt-ease-in)}.zt-slide-up-enter-active{animation:zt-slide-up-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-up-leave-active{animation:zt-slide-up-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-down-enter-active{animation:zt-slide-down-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-down-leave-active{animation:zt-slide-down-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-left-enter-active{animation:zt-slide-left-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-left-leave-active{animation:zt-slide-left-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-slide-right-enter-active{animation:zt-slide-right-enter var(--zt-duration-base) both var(--zt-ease-out)}.zt-slide-right-leave-active{animation:zt-slide-right-leave var(--zt-duration-base) both var(--zt-ease-in)}.zt-clearfix:after{display:table;clear:both;content:""}.zt-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.zt-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.zt-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.zt-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.zt-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.zt-haptics-feedback{cursor:pointer}.zt-haptics-feedback:active{opacity:var(--zt-active-opacity)}[class*=zt-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-hairline,.zt-hairline--top,.zt-hairline--left,.zt-hairline--right,.zt-hairline--bottom,.zt-hairline--surround,.zt-hairline--top-bottom{position:relative}.zt-hairline--top:after{border-top-width:var(--zt-border-width)}.zt-hairline--left:after{border-left-width:var(--zt-border-width)}.zt-hairline--right:after{border-right-width:var(--zt-border-width)}.zt-hairline--bottom:after{border-bottom-width:var(--zt-border-width)}.zt-hairline--top-bottom:after,.zt-hairline-unset--top-bottom:after{border-width:var(--zt-border-width) 0}.zt-hairline--surround:after{border-width:var(--zt-border-width)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-
|
|
1
|
+
:root{--zt-green-r: 40;--zt-green-g: 205;--zt-green-b: 120;--zt-green-rgb: var(--zt-green-r), var(--zt-green-g), var(--zt-green-b);--zt-deep-green-r: 0;--zt-deep-green-g: 175;--zt-deep-green-b: 145;--zt-deep-green-rgb: var(--zt-deep-green-r), var(--zt-deep-green-g), var(--zt-deep-green-b);--zt-orange-r: 255;--zt-orange-g: 150;--zt-orange-b: 35;--zt-orange-rgb: var(--zt-orange-r), var(--zt-orange-g), var(--zt-orange-b);--zt-yellow-r: 255;--zt-yellow-g: 205;--zt-yellow-b: 35;--zt-yellow-rgb: var(--zt-yellow-r), var(--zt-yellow-g), var(--zt-yellow-b);--zt-blue-r: 0;--zt-blue-g: 145;--zt-blue-b: 250;--zt-blue-rgb: var(--zt-blue-r), var(--zt-blue-g), var(--zt-blue-b);--zt-gray-r: 45;--zt-gray-g: 75;--zt-gray-b: 115;--zt-gray-rgb: var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b);--zt-red-r: 255;--zt-red-g: 80;--zt-red-b: 35;--zt-red-rgb: var(--zt-red-r), var(--zt-red-g), var(--zt-red-b);--zt-primary-color-r: 0;--zt-primary-color-g: 145;--zt-primary-color-b: 250;--zt-primary-color-rgb: var(--zt-primary-color-r), var(--zt-primary-color-g), var(--zt-primary-color-b);--zt-black: #000;--zt-white: #fff;--zt-gray: rgb(var(--zt-gray-rgb));--zt-gray-3: #ebedf0;--zt-gray-4: #dcdee0;--zt-gray-5: #c8c9cc;--zt-gray-6: #969799;--zt-gray-7: #646566;--zt-gray-8: #323233;--zt-gray-a04: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .04);--zt-gray-a06: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .06);--zt-gray-a08: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .08);--zt-gray-a1: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .1);--zt-gray-a2: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .2);--zt-gray-a4: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .4);--zt-gray-a6: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .6);--zt-gray-a8: rgb(var(--zt-gray-r), var(--zt-gray-g), var(--zt-gray-b), .8);--zt-red: rgb(var(--zt-red-rgb));--zt-blue: rgb(var(--zt-blue-rgb));--zt-orange: rgb(var(--zt-orange-rgb));--zt-green: rgb(var(--zt-green-rgb));--zt-yellow: rgb(var(--zt-yellow-rgb));--zt-text-color-rgb: var(--zt-gray-rgb);--zt-primary-color: rgb(var(--zt-primary-color-rgb));--zt-primary-color-light: rgb(var(--zt-primary-color-r), calc(var(--zt-primary-color-g) + 30), var(--zt-primary-color-b));--zt-primary-color-a1: rgba(var(--zt-primary-color-rgb), .1);--zt-primary-color-a2: rgba(var(--zt-primary-color-rgb), .2);--zt-primary-color-a6: rgba(var(--zt-primary-color-rgb), .6);--zt-success-color: var(--zt-green);--zt-danger-color: var(--zt-red);--zt-warning-color: var(--zt-orange);--zt-text-color: var(--zt-gray);--zt-text-color-2: var(--zt-gray-6);--zt-text-color-3: var(--zt-gray-5);--zt-placeholder-color: var(--zt-gray-a2);--zt-active-color: var(--zt-gray-a2);--zt-active-opacity: .6;--zt-disabled-opacity: .4;--zt-background: #f5faff;--zt-background-2: var(--zt-white);--zt-background-3: #edf3fa;--zt-background-4: rgba(255, 205, 35, .2);--zt-background-5: #ff4b50;--zt-background-card: var(--zt-white);--zt-padding-xxs: 2px;--zt-padding-base: 4px;--zt-padding-xs: 8px;--zt-padding-sm: 12px;--zt-padding-md: 16px;--zt-padding-lg: 24px;--zt-padding-xl: 32px;--zt-font-bold: 600;--zt-font-size-xs: 10px;--zt-font-size-sm: 12px;--zt-font-size-md: 14px;--zt-font-size-lg: 16px;--zt-font-size-xl: 18px;--zt-font-size-xxl: 20px;--zt-font-size-xxxl: 22px;--zt-line-height-xs: 16px;--zt-line-height-sm: 18px;--zt-line-height-md: 20px;--zt-line-height-lg: 22px;--zt-line-height-xl: 24px;--zt-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--zt-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--zt-duration-base: .3s;--zt-duration-fast: .2s;--zt-ease-out: ease-out;--zt-ease-in: ease-in;--zt-border-color: var(--zt-gray-a1);--zt-border-width: 1px;--zt-radius-sm: 2px;--zt-radius-md: 4px;--zt-radius-lg: 8px;--zt-radius-gt: 16px;--zt-radius-max: 999px}:root[zt-theme-size=large]{--zt-font-size-sm: 18px;--zt-font-size-md: 20px;--zt-font-size-lg: 22px;--zt-font-size-xl: 24px;--zt-font-size-xxl: 26px;--zt-font-size-xxxl: 28px;--zt-line-height-xs: 28px;--zt-line-height-sm: 30px;--zt-line-height-md: 32px;--zt-line-height-lg: 34px;--zt-line-height-xl: 36px}.zt-theme-dark{--zt-gray-r: 255;--zt-gray-g: 255;--zt-gray-b: 255;--zt-text-color-2: #707070;--zt-text-color-3: #4d4d4d;--zt-background: #0f1923;--zt-background-2: #19232d;--zt-background-3: #19232d;--zt-background-card: var(--zt-gray-a04)}
|
package/es/swipe/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-swipe-indicator-size: 4px;--zt-swipe-indicator-active-opacity: 1;--zt-swipe-indicator-inactive-opacity: .4;--zt-swipe-indicator-active-background: var(--zt-white);--zt-swipe-indicator-inactive-background: var(--zt-white);--zt-swipe-title-
|
|
1
|
+
:root{--zt-swipe-indicator-size: 4px;--zt-swipe-indicator-active-opacity: 1;--zt-swipe-indicator-inactive-opacity: .4;--zt-swipe-indicator-active-background: var(--zt-white);--zt-swipe-indicator-inactive-background: var(--zt-white);--zt-swipe-title-color: var(--zt-white);--zt-footer-padding: 0 16px;--zt-footer-height: 44px}.zt-swipe{position:relative;overflow:hidden;transform:translateZ(0);cursor:-webkit-grab;cursor:grab;-webkit-user-select:none;user-select:none}.zt-swipe__track{display:flex;height:100%;transition-property:transform}.zt-swipe__track--vertical{flex-direction:column}.zt-swipe__foot{background-image:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.6));height:var(--zt-footer-height);position:absolute;bottom:0;width:100%;padding:var(--zt-footer-padding);display:flex;align-items:center;justify-content:space-between;box-sizing:border-box}.zt-swipe__title{font-size:var(--zt-font-size-lg);color:var(--zt-swipe-title-color)}.zt-swipe__indicators{display:flex}.zt-swipe__indicators--vertical{flex-direction:column}.zt-swipe__indicators--vertical .zt-swipe__indicator:not(:last-child){margin-bottom:var(--zt-swipe-indicator-size)}.zt-swipe__indicator{width:var(--zt-swipe-indicator-size);height:var(--zt-swipe-indicator-size);background-color:var(--zt-swipe-indicator-inactive-background);border-radius:100%;opacity:var(--zt-swipe-indicator-inactive-opacity);transition:opacity var(--zt-duration-fast),background-color var(--zt-duration-fast)}.zt-swipe__indicator:not(:last-child){margin-right:var(--zt-swipe-indicator-size)}.zt-swipe__indicator--active{background-color:var(--zt-swipe-indicator-active-background);opacity:var(--zt-swipe-indicator-active-opacity)}
|
package/es/swipe/index.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
|
86
86
|
}, {}>>;
|
|
87
87
|
export default Swipe;
|
|
88
88
|
export type { SwipeProps };
|
|
89
|
-
export type { SwipeInstance, SwipeToOptions } from './types';
|
|
89
|
+
export type { SwipeInstance, SwipeToOptions, SwipeThemeVars } from './types';
|
|
90
90
|
declare module 'vue' {
|
|
91
91
|
interface GlobalComponents {
|
|
92
92
|
ZtSwipe: typeof Swipe;
|
package/es/swipe/types.d.ts
CHANGED
|
@@ -29,3 +29,13 @@ export type SwipeProvide = {
|
|
|
29
29
|
activeIndicator: ComputedRef<number>;
|
|
30
30
|
};
|
|
31
31
|
export type SwipeInstance = ComponentPublicInstance<SwipeProps, SwipeExpose>;
|
|
32
|
+
export type SwipeThemeVars = {
|
|
33
|
+
swipeIndicatorSize?: string;
|
|
34
|
+
swipeIndicatorActiveOpacity?: number;
|
|
35
|
+
swipeIndicatorInactiveOpacity?: number;
|
|
36
|
+
swipeIndicatorActiveBackground?: string;
|
|
37
|
+
swipeIndicatorInactiveBackground?: string;
|
|
38
|
+
swipeTitleColor?: string;
|
|
39
|
+
footerPadding?: string;
|
|
40
|
+
footerHeight?: string;
|
|
41
|
+
};
|
package/es/switch/Switch.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
type: import("vue").PropType<unknown>;
|
|
32
32
|
default: unknown;
|
|
33
33
|
};
|
|
34
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
34
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
35
35
|
size: (NumberConstructor | StringConstructor)[];
|
|
36
36
|
loading: BooleanConstructor;
|
|
37
37
|
disabled: BooleanConstructor;
|
package/es/switch/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-switch-size: 28px;--zt-switch-width:calc(1.5em + 10px);--zt-switch-height: 1em;--zt-switch-shadow: inset 2px 2px 4px 1px rgba(0, 0, 0, .15);--zt-switch-node-size:calc(1em - 4px);--zt-switch-node-
|
|
1
|
+
:root{--zt-switch-font-size: 28px;--zt-switch-width:calc(1.5em + 10px);--zt-switch-height: 1em;--zt-switch-shadow: inset 2px 2px 4px 1px rgba(0, 0, 0, .15);--zt-switch-node-size:calc(1em - 4px);--zt-switch-node-background: linear-gradient(135deg, #e6edf0 0%, #ffffff 100%, #ffffff 100%);--zt-switch-node-on-background: linear-gradient(135deg, #dce1eb 0%, #ffffff 100%);--zt-switch-node-border: 1px solid #ffffff99;--zt-switch-node-on-border: var(--zt-switch-node-border);--zt-switch-node-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .15);--zt-switch-node-on-shadow: -2px 2px 4px 0 rgba(45, 75, 115, .4);--zt-switch-background: #fafaff;--zt-switch-on-background: var(--zt-primary-color);--zt-switch-on-shadow: inset 2px 2px 4px 0 #2d4b7366;--zt-switch-duration: var(--zt-duration-base);--zt-switch-disabled-opacity: var(--zt-disabled-opacity)}:root[zt-theme-size=large]{--zt-switch-font-size: 34px}.zt-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--zt-switch-width);height:var(--zt-switch-height);font-size:var(--zt-switch-font-size);background:var(--zt-switch-background);border-radius:var(--zt-switch-node-size);cursor:pointer;transition:background-color var(--zt-switch-duration);box-shadow:var(--zt-switch-shadow)}.zt-switch__node{position:absolute;top:1px;left:1px;width:var(--zt-switch-node-size);height:var(--zt-switch-node-size);font-size:inherit;background-image:var(--zt-switch-node-background);border:var(--zt-switch-node-border);border-radius:100%;box-shadow:var(--zt-switch-node-shadow);transition:transform var(--zt-switch-duration) cubic-bezier(.3,1.05,.4,1.05)}.zt-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.zt-switch--on{background:var(--zt-switch-on-background);box-shadow:var(--zt-switch-on-shadow)}.zt-switch--on .zt-switch__node{background:var(--zt-switch-node-on-background);border:var(--zt-switch-node-on-border);box-shadow:var(--zt-switch-node-on-shadow);transform:translate(calc(var(--zt-switch-width) - var(--zt-switch-node-size) - 4px))}.zt-switch--on .zt-switch__loading{color:var(--zt-switch-on-background)}.zt-switch--disabled{cursor:not-allowed;opacity:var(--zt-switch-disabled-opacity)}.zt-switch--loading{cursor:default}.zt-theme-dark{--zt-switch-shadow: inset 4px 4px 8px 0 #0f1923;--zt-switch-background: #202d39;--zt-switch-on-shadow: inset 2px 2px 4px 0 #2d4b7366;--zt-switch-node-background: linear-gradient(135deg, #0e1824 0%, #24364b 100%);--zt-switch-node-on-background: linear-gradient(135deg, #dce1eb 0%, #ffffff 100%);--zt-switch-node-border: 1px solid rgba(255, 255, 255, .08);--zt-switch-node-on-border: 1px solid rgba(255, 255, 255, .6);--zt-switch-node-shadow: 0 0 5px 0 rgba(0, 12, 24, .8)}
|
package/es/switch/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const Switch: import("../utils").WithInstall<import("vue").Define
|
|
|
13
13
|
type: import("vue").PropType<unknown>;
|
|
14
14
|
default: unknown;
|
|
15
15
|
};
|
|
16
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
16
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
size: (NumberConstructor | StringConstructor)[];
|
|
18
18
|
loading: BooleanConstructor;
|
|
19
19
|
disabled: BooleanConstructor;
|
|
@@ -39,6 +39,7 @@ export declare const Switch: import("../utils").WithInstall<import("vue").Define
|
|
|
39
39
|
}, {}>>;
|
|
40
40
|
export default Switch;
|
|
41
41
|
export type { SwitchProps } from './Switch';
|
|
42
|
+
export type { SwitchThemeVars } from './types';
|
|
42
43
|
declare module 'vue' {
|
|
43
44
|
interface GlobalComponents {
|
|
44
45
|
ZtSwitch: typeof Switch;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type SwitchThemeVars = {
|
|
2
|
+
switchWidth?: string;
|
|
3
|
+
switchHeight?: string;
|
|
4
|
+
switchShadow?: string;
|
|
5
|
+
switchNodeSize?: string;
|
|
6
|
+
switchNodeBackground?: string;
|
|
7
|
+
switchNodeOnBackground?: string;
|
|
8
|
+
switchNodeBorder?: string;
|
|
9
|
+
switchNodeOnBorder?: string;
|
|
10
|
+
switchNodeShadow?: string;
|
|
11
|
+
switchNodeOnShadow?: string;
|
|
12
|
+
switchBackground?: string;
|
|
13
|
+
switchOnBackground?: string;
|
|
14
|
+
switchOnShadow?: string;
|
|
15
|
+
switchDuration?: string;
|
|
16
|
+
switchDisabledOpacity?: string;
|
|
17
|
+
switchFontSize?: string;
|
|
18
|
+
};
|
|
File without changes
|
package/es/tabbar/Tabbar.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
type: PropType<boolean | null>;
|
|
54
54
|
default: null;
|
|
55
55
|
};
|
|
56
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
56
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
57
57
|
route: BooleanConstructor;
|
|
58
58
|
fixed: {
|
|
59
59
|
type: BooleanConstructor;
|
package/es/tabbar/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const Tabbar: import("../utils").WithInstall<import("vue").Define
|
|
|
21
21
|
type: import("vue").PropType<boolean | null>;
|
|
22
22
|
default: null;
|
|
23
23
|
};
|
|
24
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
24
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
25
|
route: BooleanConstructor;
|
|
26
26
|
fixed: {
|
|
27
27
|
type: BooleanConstructor;
|
|
@@ -57,6 +57,7 @@ export declare const Tabbar: import("../utils").WithInstall<import("vue").Define
|
|
|
57
57
|
}, {}>>;
|
|
58
58
|
export default Tabbar;
|
|
59
59
|
export type { TabbarProps } from './Tabbar';
|
|
60
|
+
export type { TabbarThemeVars } from './types';
|
|
60
61
|
declare module 'vue' {
|
|
61
62
|
interface GlobalComponents {
|
|
62
63
|
ZtTabbar: typeof Tabbar;
|
|
File without changes
|
package/es/tabbar-item/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-tabbar-item-
|
|
1
|
+
:root{--zt-tabbar-item-text-color: var(--zt-gray-a6);--zt-tabbar-item-active-color: var(--zt-primary-color);--zt-tabbar-item-margin: 8px auto 6px;--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-tabbar-item-box-width: 36px;--zt-tabbar-item-box-height: 36px;--zt-tabbar-item-box-border-radius: var(--zt-radius-lg);--zt-tabbar-item-icon-border: 0;--zt-tabbar-item-text-padding-top: 4px;--zt-tabbar-item-text-height: 12px;--zt-tabbar-item-icon-background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);--zt-tabbar-item-icon-active-box-shadow: inset 4px 4px 8px 0 var(--zt-gray-a2);--zt-tabbar-item-icon-font-size: 24px}:root[zt-theme-size=large]{--zt-tabbar-item-icon-font-size: 30px}.zt-tabbar-item{color:var(--zt-tabbar-item-text-color);margin:var(--zt-tabbar-item-margin);-webkit-text-size-adjust:100%;cursor:pointer;-webkit-user-select:none;user-select:none}.zt-tabbar-item__icon{font-size:var(--zt-tabbar-item-icon-font-size);border:var(--zt-tabbar-item-icon-border);display:flex;justify-content:center;align-items:center;width:var(--zt-tabbar-item-box-width);height:var(--zt-tabbar-item-box-height);box-shadow:var(--zt-tabbar-item-icon-box-shadow);background:var(--zt-tabbar-item-icon-background);border-radius:var(--zt-tabbar-item-box-border-radius);box-sizing:border-box}.zt-tabbar-item__icon:active{background:rgba(45,75,115,.04);box-shadow:var(--zt-tabbar-item-icon-active-box-shadow)}.zt-tabbar-item__text{font-size:var(--zt-font-size-sm);padding-top:var(--zt-tabbar-item-text-padding-top);transform:scale(.83333);text-align:center;height:var(--zt-tabbar-item-text-height);line-height:var(--zt-tabbar-item-text-height)}.zt-tabbar-item--active{color:var(--zt-tabbar-item-active-color);font-weight:var(--zt-font-bold)}.zt-theme-dark{--zt-tabbar-item-text-color: var(--zt-gray);--zt-tabbar-item-icon-border: 1px solid rgba(151, 151, 151, .12);--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .12), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-tabbar-item-icon-background: linear-gradient(135deg, #121d2a 0%, #1d2c3d 100%);--zt-tabbar-item-icon-active-box-shadow: inset 6px 6px 6px 0 #000d1b}
|
|
@@ -28,6 +28,7 @@ export declare const TabbarItem: import("../utils").WithInstall<import("vue").De
|
|
|
28
28
|
}, {}>>;
|
|
29
29
|
export default TabbarItem;
|
|
30
30
|
export type { TabbarItemProps } from './TabbarItem';
|
|
31
|
+
export type { TabbarItemThemeVars } from './types';
|
|
31
32
|
declare module 'vue' {
|
|
32
33
|
interface GlobalComponents {
|
|
33
34
|
ZtTabbarItem: typeof TabbarItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type TabbarItemThemeVars = {
|
|
2
|
+
tabbarItemTextColor?: string;
|
|
3
|
+
tabbarItemActiveColor?: string;
|
|
4
|
+
tabbarItemMargin?: string;
|
|
5
|
+
tabbarItemIconBoxShadow?: string;
|
|
6
|
+
tabbarItemBoxWidth?: string;
|
|
7
|
+
tabbarItemBoxHeight?: string;
|
|
8
|
+
tabbarItemBoxBorderRadius?: string;
|
|
9
|
+
tabbarItemIconBorder?: string;
|
|
10
|
+
tabbarItemTextPaddingTop?: string;
|
|
11
|
+
tabbarItemTextHeight?: string;
|
|
12
|
+
tabbarItemIconBackground?: string;
|
|
13
|
+
tabbarItemIconFontSize?: string;
|
|
14
|
+
};
|
|
File without changes
|
package/es/table/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-table-head-
|
|
1
|
+
:root{--zt-table-head-color: var(--zt-primary-color);--zt-table-head-height: 40px;--zt-table-head-background: #e6f5ff;--zt-table-body-height: 40px;--zt-table-body-color: var(--zt-gray);--zt-table-body-background: var(--zt-white);--zt-table-sort-default: var(--zt-gray-5);--zt-table-sort-active: var(--zt-primary-color)}:root[zt-theme-size=large]{--zt-table-head-height: 52px}.zt-base-hair{position:relative}.zt-base-hair:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table table{border-collapse:separate;border-spacing:0;width:100%;table-layout:auto;box-sizing:border-box}.zt-table--fixed{overflow:auto scroll}.zt-table--fixed::-webkit-scrollbar{width:0;height:0}.zt-table--fixed table{table-layout:fixed}.zt-table--thead-fixed{position:-webkit-sticky!important;position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt-table--bordered{position:relative}.zt-table--bordered:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered:after{border-left-width:var(--zt-border-width)}.zt-table--bordered>table{position:relative}.zt-table--bordered>table:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered>table:after{border-top-width:var(--zt-border-width)}.zt-table--bordered .zt-table__thead>tr>th{position:relative}.zt-table--bordered .zt-table__thead>tr>th:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered .zt-table__thead>tr>th:after{border-right-width:var(--zt-border-width);border-bottom-width:var(--zt-border-width)}.zt-table--bordered .zt-table__tbody>tr>td{position:relative}.zt-table--bordered .zt-table__tbody>tr>td:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table--bordered .zt-table__tbody>tr>td:after{border-right-width:var(--zt-border-width);border-bottom-width:var(--zt-border-width)}.zt-table__thead>tr>th{box-sizing:border-box;overflow-wrap:break-word;min-height:var(--zt-table-head-height);font-weight:600;font-size:var(--zt-font-size-md);color:var(--zt-table-head-color);text-align:center;line-height:var(--zt-table-head-height);background:var(--zt-table-head-background)}.zt-table__tbody>tr>td{box-sizing:border-box;overflow-wrap:break-word;min-height:var(--zt-table-body-height);font-size:var(--zt-font-size-md);color:var(--zt-table-body-color);text-align:center;line-height:var(--zt-line-height-md);background:var(--zt-table-body-background);padding:10px 16px}.zt-table--striped .zt-table__tbody>tr:nth-child(2n)>td{background:var(--zt-table-head-background)}.zt-table__left--last{border-right:none!important}.zt-table__left--last:after{content:"";position:absolute;top:0;right:-10px;width:10px;height:100%;opacity:.06;background-image:linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%)}.zt-table__left--fixed{position:-webkit-sticky!important;position:-webkit-sticky!important;position:sticky!important;z-index:2}.zt-table__head{display:flex;justify-content:center}.zt-table__head-sort{display:inline-flex;align-items:center;justify-content:center;flex-direction:column;color:var(--zt-table-sort-default)}.zt-table__head-label{line-height:var(--zt-table-head-height)}.zt-table__sort-active{color:var(--zt-table-sort-active)}.zt-table--skeleton{background-color:#fff;padding-bottom:10px}.zt-table__row{display:flex;box-sizing:border-box;padding:0 10px;height:40px}.zt-table__row--head{display:flex;justify-content:center;align-items:center;background-color:#e7f0fb;margin-bottom:8px}.zt-table__row--head .zt-table__col-item{background-color:#cfdae9;height:20px}.zt-table__col{display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:1;padding:4px 6px;height:40px}.zt-table__col-item{width:100%;height:100%;border-radius:4px;background-color:rgba(45,75,115,.06)}.zt-table--animate{animation:zt-table-blink var(--zt-skeleton-duration) ease-in-out infinite}@keyframes zt-table-blink{50%{opacity:.6}}
|
package/es/table/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export declare const Table: import("../utils").WithInstall<import("vue").DefineC
|
|
|
70
70
|
export default Table;
|
|
71
71
|
export { tableProps } from './Table';
|
|
72
72
|
export type { TableBodyOption, TableHeaderOption, TableProps } from './Table';
|
|
73
|
+
export type { TableThemeVars } from './types';
|
|
73
74
|
declare module 'vue' {
|
|
74
75
|
interface GlobalComponents {
|
|
75
76
|
ZtTable: typeof Table;
|
package/es/table/types.d.ts
CHANGED
|
@@ -3,3 +3,13 @@ export declare enum SortOrderEnum {
|
|
|
3
3
|
ASCEND = "ascend",
|
|
4
4
|
DESCEND = "descend"
|
|
5
5
|
}
|
|
6
|
+
export type TableThemeVars = {
|
|
7
|
+
tableHeadColor?: string;
|
|
8
|
+
tableHeadBackground?: string;
|
|
9
|
+
tableBodyHeight?: string;
|
|
10
|
+
tableBodyColor?: string;
|
|
11
|
+
tableBodyBackground?: string;
|
|
12
|
+
tableSortDefault?: string;
|
|
13
|
+
tableSortActive?: string;
|
|
14
|
+
tableHeadHeight?: string;
|
|
15
|
+
};
|
package/es/tabs/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-
|
|
1
|
+
:root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-active-opacity: .2;--zt-tabs-default-color: var(--zt-primary-color);--zt-tabs-line-height: 44px;--zt-tabs-line-bottom: 16px;--zt-tabs-card-height: 32px;--zt-tabs-bottom-bar-width: 12px;--zt-tabs-bottom-bar-height: 4px;--zt-tabs-bottom-bar-color: var(--zt-primary-color);--zt-tabs-bottom-bar-radius: 2px;--zt-tabs-nav-background: var(--zt-background);--zt-tab-text-color: var(--zt-gray-a6);--zt-tabs-overlay-left-background: linear-gradient(90deg, #ffffff 0%, rgba(245, 250, 255, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%)}.zt-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--zt-padding-md);color:var(--zt-tab-text-color);font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-md);cursor:pointer}.zt-tab--active{color:var(--zt-tab-active-text-color);font-size:var(--zt-font-size-lg);font-weight:var(--zt-font-bold)}.zt-tab--active:active{opacity:var(--zt-tab-active-opacity)}.zt-tab--disabled{color:var(--zt-tab-disabled-text-color);cursor:not-allowed;font-size:var(--zt-font-size-md)}.zt-tab--grow{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tab--shrink{flex:none;padding:0 var(--zt-padding-xs)}.zt-tab--card{color:var(--zt-tabs-default-color)}.zt-tab--card.zt-tab--active{color:var(--zt-white);background-color:var(--zt-tabs-default-color)}.zt-tab--card--disabled{color:var(--zt-tab-disabled-text-color)}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper,.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden;position:relative}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__overlay-left,.zt-tabs__overlay-right{position:absolute;top:0;width:var(--zt-tabs-line-height);height:var(--zt-tabs-line-height);pointer-events:none}.zt-tabs__overlay-left{left:0;background:var(--zt-tabs-overlay-left-background)}.zt-tabs__overlay-right{right:0;background:var(--zt-tabs-overlay-right-background)}.zt-tabs__nav{position:relative;display:flex;justify-content:flex-start;background-color:var(--zt-tabs-nav-background);-webkit-user-select:none;user-select:none}.zt-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--complete::-webkit-scrollbar{display:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:var(--zt-tabs-line-bottom)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tab,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tab{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav::-webkit-scrollbar,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav--card.zt-tabs__nav--shrink{display:inline-flex}.zt-tabs__line{position:absolute;bottom:var(--zt-tabs-line-bottom);left:0;z-index:1;width:var(--zt-tabs-bottom-bar-width);height:var(--zt-tabs-bottom-bar-height);background:var(--zt-tabs-bottom-bar-color);border-radius:var(--zt-tabs-bottom-bar-radius)}.zt-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:var(--zt-tabs-line-height)}.zt-tabs--card>.zt-tabs__wrap{height:var(--zt-tabs-card-height)}.zt-theme-dark{--zt-tabs-overlay-left-background: linear-gradient(90deg, #0f1923 0%, rgba(15, 25, 35, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(15, 25, 35, 0) 3%, #0f1923 100%)}
|
package/es/tabs/index.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export declare const Tabs: import("../utils").WithInstall<import("vue").DefineCo
|
|
|
106
106
|
}, {}>>;
|
|
107
107
|
export default Tabs;
|
|
108
108
|
export type { TabsProps };
|
|
109
|
-
export type { TabsType, TabsInstance } from './types';
|
|
109
|
+
export type { TabsType, TabsInstance, TabsThemeVars } from './types';
|
|
110
110
|
declare module 'vue' {
|
|
111
111
|
interface GlobalComponents {
|
|
112
112
|
ZtTabs: typeof Tabs;
|
package/es/tabs/types.d.ts
CHANGED
|
@@ -21,3 +21,20 @@ export type TabsExpose = {
|
|
|
21
21
|
scrollTo: (name: Numeric) => void;
|
|
22
22
|
};
|
|
23
23
|
export type TabsInstance = ComponentPublicInstance<TabsProps, TabsExpose>;
|
|
24
|
+
export type TabsThemeVars = {
|
|
25
|
+
tabActiveTextColor?: string;
|
|
26
|
+
tabDisabledTextColor?: string;
|
|
27
|
+
tabActiveOpacity?: number;
|
|
28
|
+
tabsDefaultColor?: string;
|
|
29
|
+
tabsLineHeight?: string;
|
|
30
|
+
tabsLineBottom?: string;
|
|
31
|
+
tabsCardHeight?: string;
|
|
32
|
+
tabsBottomBarWidth?: string;
|
|
33
|
+
tabsBottomBarHeight?: string;
|
|
34
|
+
tabsBottomBarColor?: string;
|
|
35
|
+
tabsBottomBarRadius?: string;
|
|
36
|
+
tabsNavBackground?: string;
|
|
37
|
+
tabTextColor?: string;
|
|
38
|
+
tabsOverlayLeftBackground?: string;
|
|
39
|
+
tabsOverlayRightBackground?: string;
|
|
40
|
+
};
|
package/es/tag/Tag.mjs
CHANGED
|
@@ -50,10 +50,11 @@ var stdin_default = defineComponent({
|
|
|
50
50
|
style.transformOrigin = "left bottom";
|
|
51
51
|
const width = Math.sqrt(props.badgeWidth * props.badgeWidth + props.badgeHeight * props.badgeHeight);
|
|
52
52
|
const originHeight = parseNumber(getComputedStyle(document.body).getPropertyValue("--zt-tag-line-height"), 20);
|
|
53
|
-
|
|
54
|
-
style.
|
|
55
|
-
style.
|
|
56
|
-
style.
|
|
53
|
+
const isLarge = document.documentElement.getAttribute("zt-theme-size") === "large";
|
|
54
|
+
style.top = isLarge ? "-30px" : -originHeight + "px";
|
|
55
|
+
style.right = isLarge ? "-30px" : props.badgeWidth - width + "px";
|
|
56
|
+
style.width = isLarge ? "100px" : width + "px";
|
|
57
|
+
style.height = isLarge ? "30px" : originHeight + "px";
|
|
57
58
|
}
|
|
58
59
|
return style;
|
|
59
60
|
};
|
package/es/tag/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--zt-tag-
|
|
1
|
+
:root{--zt-tag-text-color: var(--zt-white);--zt-tag-radius: 2px;--zt-tag-icon-gap: 2px;--zt-tag-icon-size: 16px;--zt-tag-round-radius: 12px;--zt-tag-badge-padding: 0 var(--zt-padding-sm);--zt-tag-closeable-background: var(--zt-gray-a6);--zt-tag-closeable-height: 28px;--zt-tag-danger-color: var(--zt-danger-color);--zt-tag-primary-color: var(--zt-primary-color);--zt-tag-success-color: var(--zt-success-color);--zt-tag-warning-color: var(--zt-warning-color);--zt-tag-default-color: var(--zt-gray-a08);--zt-tag-plain-background: var(--zt-background-2);--zt-tag-stamp-diameter: 60px}:root[zt-theme-size=large]{--zt-tag-closeable-height: 40px}.zt-tag{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;padding:0 var(--zt-padding-sm);color:var(--zt-tag-text-color);font-size:var(--zt-font-size-sm);line-height:var(--zt-line-height-xl);border-radius:var(--zt-tag-radius);overflow:hidden;word-break:break-all}.zt-tag__icon{font-size:var(--zt-font-size-lg);margin-right:var(--zt-tag-icon-gap)}.zt-tag__image{width:var(--zt-tag-icon-size);height:var(--zt-tag-icon-size);margin-right:var(--zt-tag-icon-gap)}.zt-tag--default{background:var(--zt-tag-default-color)}.zt-tag--default.zt-tag--plain{color:var(--zt-tag-default-color)}.zt-tag--danger{background:var(--zt-tag-danger-color)}.zt-tag--danger.zt-tag--plain{color:var(--zt-tag-danger-color)}.zt-tag--primary{background:var(--zt-tag-primary-color)}.zt-tag--primary.zt-tag--plain{color:var(--zt-tag-primary-color)}.zt-tag--success{background:var(--zt-tag-success-color)}.zt-tag--success.zt-tag--plain{color:var(--zt-tag-success-color)}.zt-tag--warning{background:var(--zt-tag-warning-color)}.zt-tag--warning.zt-tag--plain{color:var(--zt-tag-warning-color)}.zt-tag--plain{background:var(--zt-tag-plain-background);border-color:currentColor}.zt-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.zt-tag--mark{border-radius:0 var(--zt-tag-round-radius) var(--zt-tag-round-radius) 0}.zt-tag--mark:after{display:block;width:2px;content:""}.zt-tag--round{border-radius:calc(var(--zt-line-height-xl) / 2);line-height:var(--zt-line-height-xl)}.zt-tag__close{font-size:var(--zt-font-size-xxl);margin-left:2px}.zt-tag--closeable{font-size:var(--zt-font-size-md);line-height:var(--zt-tag-closeable-height);background:var(--zt-tag-closeable-background);border-radius:calc(var(--zt-tag-closeable-height) / 2)}.zt-tag--badge{position:absolute;text-align:center;display:block;box-sizing:border-box;top:calc(var(--zt-line-height-md) - 2 * var(--zt-line-height-md));padding:var(--zt-tag-badge-padding);height:var(--zt-line-height-md);line-height:var(--zt-line-height-md)}.zt-tag__stamp{width:var(--zt-tag-stamp-diameter);height:var(--zt-tag-stamp-diameter);background:rgba(0,0,0,0);padding:0}.zt-tag__stamp--text{width:50px;height:24px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;text-align:center;font-weight:600}.zt-tag__stamp--default{color:var(--zt-gray-a6)}.zt-tag__stamp--danger{color:var(--zt-tag-danger-color)}.zt-tag__stamp--primary{color:var(--zt-tag-primary-color)}.zt-tag__stamp--success{color:var(--zt-tag-success-color)}.zt-tag__stamp--warning{color:var(--zt-tag-warning-color)}.zt-theme-dark{--zt-tag-closeable-background: rgba(255, 255, 255, .1)}
|
package/es/tag/index.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
|
|
|
84
84
|
export default Tag;
|
|
85
85
|
export { tagProps } from './Tag';
|
|
86
86
|
export type { TagType, TagProps } from './Tag';
|
|
87
|
+
export type { TagThemeVars } from './types';
|
|
87
88
|
declare module 'vue' {
|
|
88
89
|
interface GlobalComponents {
|
|
89
90
|
ZtTag: typeof Tag;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type TagThemeVars = {
|
|
2
|
+
tagTextColor?: string;
|
|
3
|
+
tagRadius?: string;
|
|
4
|
+
tagIconGap?: string;
|
|
5
|
+
tagIconSize?: string;
|
|
6
|
+
tagRoundRadius?: string;
|
|
7
|
+
tagBadgePadding?: string;
|
|
8
|
+
tagCloseableBackground?: string;
|
|
9
|
+
tagDangerColor?: string;
|
|
10
|
+
tagPrimaryColor?: string;
|
|
11
|
+
tagSuccessColor?: string;
|
|
12
|
+
tagWarningColor?: string;
|
|
13
|
+
tagDefaultColor?: string;
|
|
14
|
+
tagPlainBackground?: string;
|
|
15
|
+
tagStampDiameter?: string;
|
|
16
|
+
tagCloseableHeight?: string;
|
|
17
|
+
};
|
package/es/tag/types.mjs
ADDED
|
File without changes
|