@wot-ui/ui 1.0.0 → 2.0.0-alpha.3
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/LICENSE +21 -0
- package/README.md +134 -0
- package/attributes.json +1 -0
- package/changelog.md +53 -0
- package/common/AbortablePromise.ts +28 -0
- package/common/canvasHelper.ts +49 -0
- package/common/clickoutside.ts +25 -0
- package/common/event.ts +8 -0
- package/common/formatDate.ts +68 -0
- package/common/interceptor.ts +43 -0
- package/common/props.ts +53 -0
- package/common/util.ts +836 -0
- package/components/wd-action-sheet/index.scss +232 -0
- package/components/wd-action-sheet/types.ts +155 -0
- package/components/wd-action-sheet/wd-action-sheet.vue +176 -0
- package/components/wd-avatar/index.scss +150 -0
- package/components/wd-avatar/types.ts +98 -0
- package/components/wd-avatar/wd-avatar.vue +184 -0
- package/components/wd-avatar-group/index.scss +11 -0
- package/components/wd-avatar-group/types.ts +61 -0
- package/components/wd-avatar-group/wd-avatar-group.vue +115 -0
- package/components/wd-backtop/index.scss +67 -0
- package/components/wd-backtop/types.ts +66 -0
- package/components/wd-backtop/wd-backtop.vue +57 -0
- package/components/wd-badge/index.scss +116 -0
- package/components/wd-badge/types.ts +94 -0
- package/components/wd-badge/wd-badge.vue +78 -0
- package/components/wd-button/index.scss +436 -0
- package/components/wd-button/types.ts +204 -0
- package/components/wd-button/wd-button.vue +210 -0
- package/components/wd-calendar/index.scss +97 -0
- package/components/wd-calendar/types.ts +221 -0
- package/components/wd-calendar/wd-calendar.vue +339 -0
- package/components/wd-calendar-view/index.scss +41 -0
- package/components/wd-calendar-view/month/index.scss +144 -0
- package/components/wd-calendar-view/month/month.vue +389 -0
- package/components/wd-calendar-view/month/types.ts +70 -0
- package/components/wd-calendar-view/monthPanel/index.scss +84 -0
- package/components/wd-calendar-view/monthPanel/month-panel.vue +541 -0
- package/components/wd-calendar-view/monthPanel/types.ts +151 -0
- package/components/wd-calendar-view/types.ts +166 -0
- package/components/wd-calendar-view/utils.ts +318 -0
- package/components/wd-calendar-view/wd-calendar-view.vue +117 -0
- package/components/wd-calendar-view/year/index.scss +148 -0
- package/components/wd-calendar-view/year/types.ts +74 -0
- package/components/wd-calendar-view/year/year.vue +206 -0
- package/components/wd-calendar-view/yearPanel/index.scss +42 -0
- package/components/wd-calendar-view/yearPanel/types.ts +96 -0
- package/components/wd-calendar-view/yearPanel/year-panel.vue +249 -0
- package/components/wd-card/index.scss +104 -0
- package/components/wd-card/types.ts +47 -0
- package/components/wd-card/wd-card.vue +38 -0
- package/components/wd-cascader/index.scss +154 -0
- package/components/wd-cascader/types.ts +191 -0
- package/components/wd-cascader/wd-cascader.vue +589 -0
- package/components/wd-cell/index.scss +244 -0
- package/components/wd-cell/types.ts +205 -0
- package/components/wd-cell/wd-cell.vue +172 -0
- package/components/wd-cell-group/index.scss +53 -0
- package/components/wd-cell-group/types.ts +97 -0
- package/components/wd-cell-group/wd-cell-group.vue +48 -0
- package/components/wd-checkbox/index.scss +166 -0
- package/components/wd-checkbox/types.ts +118 -0
- package/components/wd-checkbox/wd-checkbox.vue +216 -0
- package/components/wd-checkbox-group/index.scss +5 -0
- package/components/wd-checkbox-group/types.ts +93 -0
- package/components/wd-checkbox-group/wd-checkbox-group.vue +148 -0
- package/components/wd-circle/index.scss +28 -0
- package/components/wd-circle/types.ts +54 -0
- package/components/wd-circle/wd-circle.vue +306 -0
- package/components/wd-col/index.scss +5 -0
- package/components/wd-col/types.ts +16 -0
- package/components/wd-col/wd-col.vue +83 -0
- package/components/wd-collapse/index.scss +71 -0
- package/components/wd-collapse/types.ts +68 -0
- package/components/wd-collapse/wd-collapse.vue +165 -0
- package/components/wd-collapse-item/index.scss +86 -0
- package/components/wd-collapse-item/types.ts +62 -0
- package/components/wd-collapse-item/wd-collapse-item.vue +184 -0
- package/components/wd-config-provider/index.scss +10 -0
- package/components/wd-config-provider/types.ts +2063 -0
- package/components/wd-config-provider/wd-config-provider.vue +61 -0
- package/components/wd-count-down/index.scss +16 -0
- package/components/wd-count-down/types.ts +58 -0
- package/components/wd-count-down/utils.ts +52 -0
- package/components/wd-count-down/wd-count-down.vue +62 -0
- package/components/wd-count-to/index.scss +25 -0
- package/components/wd-count-to/types.ts +121 -0
- package/components/wd-count-to/wd-count-to.vue +126 -0
- package/components/wd-curtain/index.scss +96 -0
- package/components/wd-curtain/types.ts +82 -0
- package/components/wd-curtain/wd-curtain.vue +172 -0
- package/components/wd-datetime-picker/index.scss +133 -0
- package/components/wd-datetime-picker/types.ts +198 -0
- package/components/wd-datetime-picker/wd-datetime-picker.vue +526 -0
- package/components/wd-datetime-picker-view/types.ts +171 -0
- package/components/wd-datetime-picker-view/util.ts +30 -0
- package/components/wd-datetime-picker-view/wd-datetime-picker-view.vue +402 -0
- package/components/wd-dialog/index.scss +281 -0
- package/components/wd-dialog/index.ts +168 -0
- package/components/wd-dialog/types.ts +452 -0
- package/components/wd-dialog/wd-dialog.vue +586 -0
- package/components/wd-divider/index.scss +122 -0
- package/components/wd-divider/types.ts +50 -0
- package/components/wd-divider/wd-divider.vue +54 -0
- package/components/wd-drop-menu/index.scss +90 -0
- package/components/wd-drop-menu/types.ts +38 -0
- package/components/wd-drop-menu/wd-drop-menu.vue +168 -0
- package/components/wd-drop-menu-item/index.scss +96 -0
- package/components/wd-drop-menu-item/types.ts +93 -0
- package/components/wd-drop-menu-item/wd-drop-menu-item.vue +205 -0
- package/components/wd-empty/index.scss +46 -0
- package/components/wd-empty/types.ts +37 -0
- package/components/wd-empty/wd-empty.vue +47 -0
- package/components/wd-fab/index.scss +124 -0
- package/components/wd-fab/types.ts +119 -0
- package/components/wd-fab/wd-fab.vue +322 -0
- package/components/wd-floating-panel/index.scss +73 -0
- package/components/wd-floating-panel/type.ts +32 -0
- package/components/wd-floating-panel/wd-floating-panel.vue +142 -0
- package/components/wd-form/adapters/zod.ts +56 -0
- package/components/wd-form/types.ts +147 -0
- package/components/wd-form/wd-form.vue +121 -0
- package/components/wd-form-item/index.scss +26 -0
- package/components/wd-form-item/types.ts +134 -0
- package/components/wd-form-item/wd-form-item.vue +182 -0
- package/components/wd-gap/index.scss +9 -0
- package/components/wd-gap/types.ts +26 -0
- package/components/wd-gap/wd-gap.vue +38 -0
- package/components/wd-grid/index.scss +11 -0
- package/components/wd-grid/types.ts +97 -0
- package/components/wd-grid/wd-grid.vue +48 -0
- package/components/wd-grid-item/index.scss +187 -0
- package/components/wd-grid-item/types.ts +98 -0
- package/components/wd-grid-item/wd-grid-item.vue +295 -0
- package/components/wd-icon/index.scss +46 -0
- package/components/wd-icon/types.ts +44 -0
- package/components/wd-icon/wd-icon.vue +66 -0
- package/components/wd-image-preview/index.scss +94 -0
- package/components/wd-image-preview/index.ts +95 -0
- package/components/wd-image-preview/types.ts +165 -0
- package/components/wd-image-preview/wd-image-preview.vue +233 -0
- package/components/wd-img/index.scss +82 -0
- package/components/wd-img/types.ts +96 -0
- package/components/wd-img/wd-img.vue +91 -0
- package/components/wd-img-cropper/index.scss +259 -0
- package/components/wd-img-cropper/types.ts +101 -0
- package/components/wd-img-cropper/wd-img-cropper.vue +653 -0
- package/components/wd-index-anchor/index.scss +34 -0
- package/components/wd-index-anchor/type.ts +9 -0
- package/components/wd-index-anchor/wd-index-anchor.vue +55 -0
- package/components/wd-index-bar/index.scss +68 -0
- package/components/wd-index-bar/type.ts +23 -0
- package/components/wd-index-bar/wd-index-bar.vue +157 -0
- package/components/wd-input/index.scss +129 -0
- package/components/wd-input/types.ts +165 -0
- package/components/wd-input/wd-input.vue +237 -0
- package/components/wd-input-number/index.scss +233 -0
- package/components/wd-input-number/types.ts +131 -0
- package/components/wd-input-number/wd-input-number.vue +473 -0
- package/components/wd-keyboard/constants.ts +81 -0
- package/components/wd-keyboard/index.scss +104 -0
- package/components/wd-keyboard/key/index.scss +103 -0
- package/components/wd-keyboard/key/index.vue +84 -0
- package/components/wd-keyboard/key/types.ts +44 -0
- package/components/wd-keyboard/types.ts +138 -0
- package/components/wd-keyboard/wd-keyboard.vue +236 -0
- package/components/wd-loading/index.scss +205 -0
- package/components/wd-loading/types.ts +61 -0
- package/components/wd-loading/wd-loading.vue +70 -0
- package/components/wd-loadmore/index.scss +62 -0
- package/components/wd-loadmore/types.ts +42 -0
- package/components/wd-loadmore/wd-loadmore.vue +68 -0
- package/components/wd-navbar/index.scss +96 -0
- package/components/wd-navbar/types.ts +74 -0
- package/components/wd-navbar/wd-navbar.vue +136 -0
- package/components/wd-navbar-capsule/index.scss +70 -0
- package/components/wd-navbar-capsule/types.ts +11 -0
- package/components/wd-navbar-capsule/wd-navbar-capsule.vue +48 -0
- package/components/wd-notice-bar/index.scss +94 -0
- package/components/wd-notice-bar/types.ts +97 -0
- package/components/wd-notice-bar/wd-notice-bar.vue +270 -0
- package/components/wd-notify/index.scss +114 -0
- package/components/wd-notify/index.ts +63 -0
- package/components/wd-notify/types.ts +130 -0
- package/components/wd-notify/wd-notify.vue +162 -0
- package/components/wd-overlay/index.scss +14 -0
- package/components/wd-overlay/types.ts +42 -0
- package/components/wd-overlay/wd-overlay.vue +55 -0
- package/components/wd-pagination/index.scss +71 -0
- package/components/wd-pagination/types.ts +69 -0
- package/components/wd-pagination/wd-pagination.vue +118 -0
- package/components/wd-password-input/index.scss +134 -0
- package/components/wd-password-input/types.ts +42 -0
- package/components/wd-password-input/wd-password-input.vue +51 -0
- package/components/wd-picker/index.scss +72 -0
- package/components/wd-picker/types.ts +141 -0
- package/components/wd-picker/wd-picker.vue +220 -0
- package/components/wd-picker-view/index.scss +93 -0
- package/components/wd-picker-view/types.ts +145 -0
- package/components/wd-picker-view/useSelection.ts +385 -0
- package/components/wd-picker-view/wd-picker-view.vue +227 -0
- package/components/wd-popover/index.scss +117 -0
- package/components/wd-popover/types.ts +106 -0
- package/components/wd-popover/wd-popover.vue +212 -0
- package/components/wd-popup/index.scss +89 -0
- package/components/wd-popup/types.ts +110 -0
- package/components/wd-popup/wd-popup.vue +174 -0
- package/components/wd-progress/index.scss +155 -0
- package/components/wd-progress/types.ts +94 -0
- package/components/wd-progress/wd-progress.vue +249 -0
- package/components/wd-radio/index.scss +189 -0
- package/components/wd-radio/types.ts +64 -0
- package/components/wd-radio/wd-radio.vue +164 -0
- package/components/wd-radio-group/index.scss +5 -0
- package/components/wd-radio-group/types.ts +70 -0
- package/components/wd-radio-group/wd-radio-group.vue +53 -0
- package/components/wd-rate/index.scss +57 -0
- package/components/wd-rate/types.ts +86 -0
- package/components/wd-rate/wd-rate.vue +168 -0
- package/components/wd-resize/index.scss +31 -0
- package/components/wd-resize/types.ts +14 -0
- package/components/wd-resize/wd-resize.vue +157 -0
- package/components/wd-root-portal/wd-root-portal.vue +77 -0
- package/components/wd-row/index.scss +6 -0
- package/components/wd-row/types.ts +36 -0
- package/components/wd-row/wd-row.vue +88 -0
- package/components/wd-search/index.scss +171 -0
- package/components/wd-search/types.ts +107 -0
- package/components/wd-search/wd-search.vue +198 -0
- package/components/wd-segmented/index.scss +155 -0
- package/components/wd-segmented/types.ts +81 -0
- package/components/wd-segmented/wd-segmented.vue +169 -0
- package/components/wd-select-picker/index.scss +72 -0
- package/components/wd-select-picker/types.ts +72 -0
- package/components/wd-select-picker/wd-select-picker.vue +371 -0
- package/components/wd-sidebar/index.scss +25 -0
- package/components/wd-sidebar/types.ts +34 -0
- package/components/wd-sidebar/wd-sidebar.vue +57 -0
- package/components/wd-sidebar-item/index.scss +91 -0
- package/components/wd-sidebar-item/types.ts +28 -0
- package/components/wd-sidebar-item/wd-sidebar-item.vue +118 -0
- package/components/wd-signature/index.scss +42 -0
- package/components/wd-signature/types.ts +295 -0
- package/components/wd-signature/wd-signature.vue +664 -0
- package/components/wd-skeleton/index.scss +112 -0
- package/components/wd-skeleton/types.ts +124 -0
- package/components/wd-skeleton/wd-skeleton.vue +110 -0
- package/components/wd-slide-verify/index.scss +112 -0
- package/components/wd-slide-verify/types.ts +98 -0
- package/components/wd-slide-verify/wd-slide-verify.vue +222 -0
- package/components/wd-slider/index.scss +485 -0
- package/components/wd-slider/types.ts +166 -0
- package/components/wd-slider/wd-slider.vue +529 -0
- package/components/wd-sort-button/index.scss +126 -0
- package/components/wd-sort-button/types.ts +68 -0
- package/components/wd-sort-button/wd-sort-button.vue +67 -0
- package/components/wd-step/index.scss +366 -0
- package/components/wd-step/types.ts +43 -0
- package/components/wd-step/wd-step.vue +181 -0
- package/components/wd-steps/index.scss +7 -0
- package/components/wd-steps/types.ts +50 -0
- package/components/wd-steps/wd-steps.vue +39 -0
- package/components/wd-sticky/index.scss +9 -0
- package/components/wd-sticky/types.ts +13 -0
- package/components/wd-sticky/wd-sticky.vue +192 -0
- package/components/wd-sticky-box/index.scss +6 -0
- package/components/wd-sticky-box/types.ts +20 -0
- package/components/wd-sticky-box/wd-sticky-box.vue +157 -0
- package/components/wd-swipe-action/index.scss +22 -0
- package/components/wd-swipe-action/types.ts +87 -0
- package/components/wd-swipe-action/wd-swipe-action.vue +320 -0
- package/components/wd-swiper/index.scss +69 -0
- package/components/wd-swiper/types.ts +275 -0
- package/components/wd-swiper/wd-swiper.vue +332 -0
- package/components/wd-swiper-nav/index.scss +179 -0
- package/components/wd-swiper-nav/types.ts +42 -0
- package/components/wd-swiper-nav/wd-swiper-nav.vue +42 -0
- package/components/wd-switch/index.scss +177 -0
- package/components/wd-switch/types.ts +93 -0
- package/components/wd-switch/wd-switch.vue +107 -0
- package/components/wd-tab/index.scss +16 -0
- package/components/wd-tab/types.ts +45 -0
- package/components/wd-tab/wd-tab.vue +99 -0
- package/components/wd-tabbar/index.scss +71 -0
- package/components/wd-tabbar/types.ts +79 -0
- package/components/wd-tabbar/wd-tabbar.vue +109 -0
- package/components/wd-tabbar-item/index.scss +50 -0
- package/components/wd-tabbar-item/types.ts +45 -0
- package/components/wd-tabbar-item/wd-tabbar-item.vue +101 -0
- package/components/wd-table/index.scss +128 -0
- package/components/wd-table/types.ts +160 -0
- package/components/wd-table/wd-table.vue +331 -0
- package/components/wd-table-column/index.scss +15 -0
- package/components/wd-table-column/types.ts +81 -0
- package/components/wd-table-column/wd-table-column.vue +198 -0
- package/components/wd-tabs/index.scss +332 -0
- package/components/wd-tabs/types.ts +155 -0
- package/components/wd-tabs/wd-tabs.vue +508 -0
- package/components/wd-tag/index.scss +325 -0
- package/components/wd-tag/types.ts +90 -0
- package/components/wd-tag/wd-tag.vue +158 -0
- package/components/wd-text/index.scss +52 -0
- package/components/wd-text/types.ts +107 -0
- package/components/wd-text/wd-text.vue +141 -0
- package/components/wd-textarea/index.scss +112 -0
- package/components/wd-textarea/types.ts +151 -0
- package/components/wd-textarea/wd-textarea.vue +212 -0
- package/components/wd-toast/index.scss +92 -0
- package/components/wd-toast/index.ts +97 -0
- package/components/wd-toast/types.ts +190 -0
- package/components/wd-toast/wd-toast.vue +158 -0
- package/components/wd-tooltip/index.scss +77 -0
- package/components/wd-tooltip/types.ts +105 -0
- package/components/wd-tooltip/wd-tooltip.vue +169 -0
- package/components/wd-tour/index.scss +106 -0
- package/components/wd-tour/types.ts +268 -0
- package/components/wd-tour/wd-tour.vue +518 -0
- package/components/wd-transition/index.scss +67 -0
- package/components/wd-transition/types.ts +106 -0
- package/components/wd-transition/wd-transition.vue +238 -0
- package/components/wd-upload/index.scss +204 -0
- package/components/wd-upload/types.ts +390 -0
- package/components/wd-upload/wd-upload.vue +565 -0
- package/components/wd-video-preview/index.scss +54 -0
- package/components/wd-video-preview/index.ts +64 -0
- package/components/wd-video-preview/types.ts +66 -0
- package/components/wd-video-preview/wd-video-preview.vue +141 -0
- package/components/wd-watermark/index.scss +21 -0
- package/components/wd-watermark/types.ts +130 -0
- package/components/wd-watermark/wd-watermark.vue +718 -0
- package/components/wot-ui/wot-ui.vue +5 -0
- package/composables/index.ts +12 -0
- package/composables/useCell.ts +34 -0
- package/composables/useChildren.ts +120 -0
- package/composables/useConfigProvider.ts +45 -0
- package/composables/useCountDown.ts +138 -0
- package/composables/useDeviceInfo.ts +136 -0
- package/composables/useLockScroll.ts +37 -0
- package/composables/useParent.ts +51 -0
- package/composables/usePopover.ts +212 -0
- package/composables/useQueue.ts +52 -0
- package/composables/useRaf.ts +37 -0
- package/composables/useTouch.ts +43 -0
- package/composables/useTranslate.ts +12 -0
- package/composables/useUpload.ts +366 -0
- package/global.d.ts +106 -0
- package/index.ts +11 -0
- package/locale/index.ts +32 -0
- package/locale/lang/ar-SA.ts +150 -0
- package/locale/lang/de-DE.ts +150 -0
- package/locale/lang/en-US.ts +150 -0
- package/locale/lang/es-ES.ts +150 -0
- package/locale/lang/fr-FR.ts +150 -0
- package/locale/lang/ja-JP.ts +150 -0
- package/locale/lang/ko-KR.ts +150 -0
- package/locale/lang/pt-PT.ts +150 -0
- package/locale/lang/ru-RU.ts +150 -0
- package/locale/lang/th-TH.ts +150 -0
- package/locale/lang/tr-TR.ts +155 -0
- package/locale/lang/ug-CN.ts +154 -0
- package/locale/lang/vi-VN.ts +89 -0
- package/locale/lang/zh-CN.ts +154 -0
- package/locale/lang/zh-HK.ts +78 -0
- package/locale/lang/zh-TW.ts +78 -0
- package/package.json +1 -11
- package/styles/iconfont/iconfont.scss +1243 -0
- package/styles/mixin/_config.scss +7 -0
- package/styles/mixin/_function.scss +44 -0
- package/styles/mixin/_mixin.scss +473 -0
- package/styles/theme/base/color.scss +210 -0
- package/styles/theme/base/font.scss +13 -0
- package/styles/theme/base/index.scss +8 -0
- package/styles/theme/base/insets.scss +32 -0
- package/styles/theme/base/number.scss +36 -0
- package/styles/theme/base/opacity.scss +9 -0
- package/styles/theme/base/radius.scss +13 -0
- package/styles/theme/base/stroke.scss +9 -0
- package/styles/theme/base/typography.scss +44 -0
- package/styles/theme/dark.scss +101 -0
- package/styles/theme/index.scss +16 -0
- package/styles/theme/light.scss +101 -0
- package/styles/variable.scss +472 -0
- package/tags.json +1 -0
- package/web-types.json +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
.wd-root-portal {
|
|
4
|
+
/* 字重 */
|
|
5
|
+
--wot-font-weight-ultra-light: 100;
|
|
6
|
+
--wot-font-weight-thin: 200;
|
|
7
|
+
--wot-font-weight-light: 300;
|
|
8
|
+
--wot-font-weight-regular: 400;
|
|
9
|
+
--wot-font-weight-medium: 600;
|
|
10
|
+
--wot-font-weight-semibold: 700;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
.wd-root-portal {
|
|
4
|
+
--wot-spacing-zero: var(--wot-number-n0);
|
|
5
|
+
--wot-padding-zero: var(--wot-number-n0);
|
|
6
|
+
--wot-padding-ultra-tight: var(--wot-number-n2);
|
|
7
|
+
--wot-padding-super-tight: var(--wot-number-n4);
|
|
8
|
+
--wot-padding-extra-tight: var(--wot-number-n6);
|
|
9
|
+
--wot-padding-tight: var(--wot-number-n8);
|
|
10
|
+
--wot-padding-main: var(--wot-number-n10);
|
|
11
|
+
--wot-padding-loose: var(--wot-number-n12);
|
|
12
|
+
--wot-padding-extra-loose: var(--wot-number-n16);
|
|
13
|
+
--wot-padding-super-loose: var(--wot-number-n20);
|
|
14
|
+
--wot-padding-ultra-loose: var(--wot-number-n24);
|
|
15
|
+
--wot-padding-spacious: var(--wot-number-n28);
|
|
16
|
+
--wot-padding-extra-spacious: var(--wot-number-n32);
|
|
17
|
+
--wot-padding-super-spacious: var(--wot-number-n40);
|
|
18
|
+
--wot-padding-ultra-spacious: var(--wot-number-n48);
|
|
19
|
+
--wot-spacing-ultra-tight: var(--wot-number-n2);
|
|
20
|
+
--wot-spacing-super-tight: var(--wot-number-n4);
|
|
21
|
+
--wot-spacing-extra-tight: var(--wot-number-n6);
|
|
22
|
+
--wot-spacing-tight: var(--wot-number-n8);
|
|
23
|
+
--wot-spacing-main: var(--wot-number-n10);
|
|
24
|
+
--wot-spacing-loose: var(--wot-number-n12);
|
|
25
|
+
--wot-spacing-extra-loose: var(--wot-number-n16);
|
|
26
|
+
--wot-spacing-super-loose: var(--wot-number-n20);
|
|
27
|
+
--wot-spacing-ultra-loose: var(--wot-number-n24);
|
|
28
|
+
--wot-spacing-spacious: var(--wot-number-n28);
|
|
29
|
+
--wot-spacing-extra-spacious: var(--wot-number-n32);
|
|
30
|
+
--wot-spacing-super-spacious: var(--wot-number-n40);
|
|
31
|
+
--wot-spacing-ultra-spacious: var(--wot-number-n48);
|
|
32
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
.wd-root-portal {
|
|
4
|
+
--wot-n-0: 0px;
|
|
5
|
+
--wot-n-05: 0.5px;
|
|
6
|
+
--wot-n-1: 1px;
|
|
7
|
+
--wot-n-2: 2px;
|
|
8
|
+
--wot-n-3: 3px;
|
|
9
|
+
--wot-n-4: 4px;
|
|
10
|
+
--wot-n-5: 5px;
|
|
11
|
+
--wot-n-6: 6px;
|
|
12
|
+
--wot-n-8: 8px;
|
|
13
|
+
--wot-n-9: 9px;
|
|
14
|
+
--wot-n-10: 10px;
|
|
15
|
+
--wot-n-11: 11px;
|
|
16
|
+
--wot-n-12: 12px;
|
|
17
|
+
--wot-n-14: 14px;
|
|
18
|
+
--wot-n-15: 15px;
|
|
19
|
+
--wot-n-16: 16px;
|
|
20
|
+
--wot-n-17: 17px;
|
|
21
|
+
--wot-n-18: 18px;
|
|
22
|
+
--wot-n-20: 20px;
|
|
23
|
+
--wot-n-22: 22px;
|
|
24
|
+
--wot-n-24: 24px;
|
|
25
|
+
--wot-n-26: 26px;
|
|
26
|
+
--wot-n-28: 28px;
|
|
27
|
+
--wot-n-32: 32px;
|
|
28
|
+
--wot-n-34: 34px;
|
|
29
|
+
--wot-n-36: 36px;
|
|
30
|
+
--wot-n-40: 40px;
|
|
31
|
+
--wot-n-48: 48px;
|
|
32
|
+
--wot-n-56: 56px;
|
|
33
|
+
--wot-n-60: 60px;
|
|
34
|
+
--wot-n-375: 375px;
|
|
35
|
+
--wot-nFull: 9999px;
|
|
36
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
.wd-root-portal {
|
|
4
|
+
/* 圆角 */
|
|
5
|
+
--wot-radius-zero: var(--wot-n-0);
|
|
6
|
+
--wot-radius-small: var(--wot-n-2);
|
|
7
|
+
--wot-radius-main: var(--wot-n-4);
|
|
8
|
+
--wot-radius-large: var(--wot-n-8);
|
|
9
|
+
--wot-radius-extra-large: var(--wot-n-12);
|
|
10
|
+
--wot-radius-super-large: var(--wot-n-16);
|
|
11
|
+
--wot-radius-ultra-large: var(--wot-n-20);
|
|
12
|
+
--wot-radius-radius-full: var(--wot-nFull);
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
.wd-root-portal {
|
|
4
|
+
/* title */
|
|
5
|
+
--wot-typography-title-font-family: PingFang SC;
|
|
6
|
+
--wot-typography-title-size-main: var(--wot-n-18);
|
|
7
|
+
--wot-typography-title-size-large: var(--wot-n-20);
|
|
8
|
+
--wot-typography-title-size-extra-large: var(--wot-n-24);
|
|
9
|
+
--wot-typography-title-font-weight-light: var(--wot-font-weight-regular);
|
|
10
|
+
--wot-typography-title-font-weight-main: var(--wot-font-weight-medium);
|
|
11
|
+
--wot-typography-title-font-weight-strong: var(--wot-font-weight-semibold);
|
|
12
|
+
--wot-typography-title-line--height-size-main: var(--wot-n-26);
|
|
13
|
+
--wot-typography-title-line--height-size-large: var(--wot-n-28);
|
|
14
|
+
--wot-typography-title-line--height-size-extra-large: var(--wot-n-34);
|
|
15
|
+
/* body */
|
|
16
|
+
--wot-typography-body-font-family: PingFang SC;
|
|
17
|
+
--wot-typography-body-size-main: var(--wot-n-14);
|
|
18
|
+
--wot-typography-body-size-large: var(--wot-n-15);
|
|
19
|
+
--wot-typography-body-size-extra-large: var(--wot-n-16);
|
|
20
|
+
--wot-typography-body-size-super-large: var(--wot-n-17);
|
|
21
|
+
--wot-typography-body-size-ultra-large: var(--wot-n-18);
|
|
22
|
+
--wot-typography-body-font-weight-main: var(--wot-font-weight-regular);
|
|
23
|
+
--wot-typography-body-font-weight-strong: var(--wot-font-weight-medium);
|
|
24
|
+
--wot-typography-body-font-weight-extra-strong: var(--wot-font-weight-semibold);
|
|
25
|
+
--wot-typography-body-line--height-size-main: var(--wot-n-20);
|
|
26
|
+
--wot-typography-body-line--height-size-large: var(--wot-n-22);
|
|
27
|
+
--wot-typography-body-line--height-size-extra-large: var(--wot-n-24);
|
|
28
|
+
--wot-typography-body-line--height-size-super-large: var(--wot-n-24);
|
|
29
|
+
--wot-typography-body-line--height-size-ultra-large: var(--wot-n-26);
|
|
30
|
+
/* label */
|
|
31
|
+
--wot-typography-label-font-family: PingFang SC;
|
|
32
|
+
--wot-typography-label-size-super-small: var(--wot-n-9);
|
|
33
|
+
--wot-typography-label-size-extra-small: var(--wot-n-10);
|
|
34
|
+
--wot-typography-label-size-small: var(--wot-n-11);
|
|
35
|
+
--wot-typography-label-size-main: var(--wot-n-12);
|
|
36
|
+
--wot-typography-label-size-large: var(--wot-n-14);
|
|
37
|
+
--wot-typography-label-font-weight-main: var(--wot-font-weight-regular);
|
|
38
|
+
--wot-typography-label-font-weight-strong: var(--wot-font-weight-medium);
|
|
39
|
+
--wot-typography-label-line--height-size-super-small: var(--wot-n-14);
|
|
40
|
+
--wot-typography-label-line--height-size-extra-small: var(--wot-n-16);
|
|
41
|
+
--wot-typography-label-line--height-size-small: var(--wot-n-16);
|
|
42
|
+
--wot-typography-label-line--height-size-main: var(--wot-n-18);
|
|
43
|
+
--wot-typography-label-line--height-size-large: var(--wot-n-18);
|
|
44
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@mixin dark-theme-vars {
|
|
2
|
+
/* 深色模式语义变量 */
|
|
3
|
+
/* 主色 */
|
|
4
|
+
--wot-primary-1: var(--wot-blue-10);
|
|
5
|
+
--wot-primary-2: var(--wot-blue-9);
|
|
6
|
+
--wot-primary-3: var(--wot-blue-8);
|
|
7
|
+
--wot-primary-4: var(--wot-blue-7);
|
|
8
|
+
--wot-primary-5: var(--wot-blue-6);
|
|
9
|
+
--wot-primary-6: var(--wot-blue-5);
|
|
10
|
+
--wot-primary-7: var(--wot-blue-4);
|
|
11
|
+
--wot-primary-8: var(--wot-blue-3);
|
|
12
|
+
--wot-primary-9: var(--wot-blue-2);
|
|
13
|
+
--wot-primary-10: var(--wot-blue-1);
|
|
14
|
+
/* 危险色 */
|
|
15
|
+
--wot-danger-main: var(--wot-red-5);
|
|
16
|
+
--wot-danger-hover: var(--wot-red-6);
|
|
17
|
+
--wot-danger-clicked: var(--wot-red-4);
|
|
18
|
+
--wot-danger-disabled: var(--wot-red-8);
|
|
19
|
+
--wot-danger-particular: var(--wot-red-9);
|
|
20
|
+
--wot-danger-surface: var(--wot-red-10);
|
|
21
|
+
/* 成功色 */
|
|
22
|
+
--wot-success-main: var(--wot-green-5);
|
|
23
|
+
--wot-success-hover: var(--wot-green-6);
|
|
24
|
+
--wot-success-clicked: var(--wot-green-4);
|
|
25
|
+
--wot-success-disabled: var(--wot-green-8);
|
|
26
|
+
--wot-success-particular: var(--wot-green-9);
|
|
27
|
+
--wot-success-surface: var(--wot-green-10);
|
|
28
|
+
/* 警告色 */
|
|
29
|
+
--wot-warning-main: var(--wot-orange-5);
|
|
30
|
+
--wot-warning-hover: var(--wot-orange-6);
|
|
31
|
+
--wot-warning-clicked: var(--wot-orange-4);
|
|
32
|
+
--wot-warning-disabled: var(--wot-orange-8);
|
|
33
|
+
--wot-warning-particular: var(--wot-orange-9);
|
|
34
|
+
--wot-warning-surface: var(--wot-orange-10);
|
|
35
|
+
/* 中性色 */
|
|
36
|
+
/* 文字 */
|
|
37
|
+
--wot-text-main: var(--wot-coolgrey-1);
|
|
38
|
+
--wot-text-secondary: var(--wot-coolgrey-3);
|
|
39
|
+
--wot-text-auxiliary: var(--wot-coolgrey-5);
|
|
40
|
+
--wot-text-disabled: var(--wot-coolgrey-7);
|
|
41
|
+
--wot-text-placeholder: var(--wot-coolgrey-6);
|
|
42
|
+
--wot-text-white: var(--wot-base-white);
|
|
43
|
+
/* 图标 */
|
|
44
|
+
--wot-icon-main: var(--wot-coolgrey-1);
|
|
45
|
+
--wot-icon-secondary: var(--wot-coolgrey-3);
|
|
46
|
+
--wot-icon-auxiliary: var(--wot-coolgrey-5);
|
|
47
|
+
--wot-icon-disabled: var(--wot-coolgrey-7);
|
|
48
|
+
--wot-icon-placeholder: var(--wot-coolgrey-6);
|
|
49
|
+
--wot-icon-white: var(--wot-base-white);
|
|
50
|
+
/* 边框 */
|
|
51
|
+
--wot-border-extra-strong: var(--wot-coolgrey-3);
|
|
52
|
+
--wot-border-strong: var(--wot-coolgrey-5);
|
|
53
|
+
--wot-border-main: var(--wot-coolgrey-7);
|
|
54
|
+
--wot-border-light: var(--wot-coolgrey-9);
|
|
55
|
+
--wot-border-white: var(--wot-base-white);
|
|
56
|
+
--wot-border-zero: var(--wot-base-transparent);
|
|
57
|
+
/* 填充 */
|
|
58
|
+
--wot-filled-extra-strong: var(--wot-coolgrey-7);
|
|
59
|
+
--wot-filled-strong: var(--wot-coolgrey-8);
|
|
60
|
+
--wot-filled-content: var(--wot-coolgrey-9);
|
|
61
|
+
--wot-filled-bottom: var(--wot-coolgrey-10);
|
|
62
|
+
--wot-filled-oppo: var(--wot-base-black);
|
|
63
|
+
--wot-filled-zero: var(--wot-base-transparent);
|
|
64
|
+
/* 分割线 */
|
|
65
|
+
--wot-divider-main: var(--wot-opacwhite-3_08);
|
|
66
|
+
--wot-divider-light: var(--wot-opacwhite-2_04);
|
|
67
|
+
--wot-divider-strong: var(--wot-opacwhite-4_15);
|
|
68
|
+
--wot-divider-white: var(--wot-base-white);
|
|
69
|
+
/* 反馈 */
|
|
70
|
+
--wot-feedback-hover: var(--wot-opacwhite-2_04);
|
|
71
|
+
--wot-feedback-active: var(--wot-opacwhite-3_08);
|
|
72
|
+
--wot-feedback-accent: var(--wot-blue-opac);
|
|
73
|
+
/* 填充色-透明度 */
|
|
74
|
+
--wot-opacfilled-tooltip-toast-cover: var(--wot-opac-9_75);
|
|
75
|
+
--wot-opacfilled-main-cover: var(--wot-opac-7_55);
|
|
76
|
+
--wot-opacfilled-light-cover: var(--wot-opac-6_30);
|
|
77
|
+
/* Picker View Mask */
|
|
78
|
+
--wot-picker-view-mask-start-color: var(--wot-opac-10_85);
|
|
79
|
+
--wot-picker-view-mask-end-color: var(--wot-opac-5_20);
|
|
80
|
+
/* 分类色 */
|
|
81
|
+
/* 黄色 */
|
|
82
|
+
--wot-classifyapplication-yellow-background: var(--wot-yellow-10);
|
|
83
|
+
--wot-classifyapplication-yellow-border: var(--wot-yellow-8);
|
|
84
|
+
--wot-classifyapplication-yellow-content: var(--wot-yellow-5);
|
|
85
|
+
/* 蓝色 */
|
|
86
|
+
--wot-classifyapplication-cyan-background: var(--wot-cyan-10);
|
|
87
|
+
--wot-classifyapplication-cyan-border: var(--wot-cyan-8);
|
|
88
|
+
--wot-classifyapplication-cyan-content: var(--wot-cyan-5);
|
|
89
|
+
/* 紫色 */
|
|
90
|
+
--wot-classifyapplication-purple-background: var(--wot-purple-10);
|
|
91
|
+
--wot-classifyapplication-purple-border: var(--wot-purple-8);
|
|
92
|
+
--wot-classifyapplication-purple-content: var(--wot-purple-5);
|
|
93
|
+
/* 靛色 */
|
|
94
|
+
--wot-classifyapplication-grape-background: var(--wot-grape-10);
|
|
95
|
+
--wot-classifyapplication-grape-border: var(--wot-grape-8);
|
|
96
|
+
--wot-classifyapplication-grape-content: var(--wot-grape-5);
|
|
97
|
+
/* 粉色 */
|
|
98
|
+
--wot-classifyapplication-pink-background: var(--wot-pink-10);
|
|
99
|
+
--wot-classifyapplication-pink-border: var(--wot-pink-8);
|
|
100
|
+
--wot-classifyapplication-pink-content: var(--wot-pink-5);
|
|
101
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use './base/index.scss'as *;
|
|
2
|
+
@use './light.scss'as light;
|
|
3
|
+
@use './dark.scss'as dark;
|
|
4
|
+
|
|
5
|
+
page,
|
|
6
|
+
.wot-theme-dark,
|
|
7
|
+
.wot-theme-dark .wd-root-portal {
|
|
8
|
+
@include dark.dark-theme-vars;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
page,
|
|
13
|
+
.wot-theme-light,
|
|
14
|
+
.wot-theme-light .wd-root-portal {
|
|
15
|
+
@include light.light-theme-vars;
|
|
16
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@mixin light-theme-vars {
|
|
2
|
+
/* 浅色模式颜色语义变量 */
|
|
3
|
+
/* 主色 */
|
|
4
|
+
--wot-primary-1: var(--wot-blue-1);
|
|
5
|
+
--wot-primary-2: var(--wot-blue-2);
|
|
6
|
+
--wot-primary-3: var(--wot-blue-3);
|
|
7
|
+
--wot-primary-4: var(--wot-blue-4);
|
|
8
|
+
--wot-primary-5: var(--wot-blue-5);
|
|
9
|
+
--wot-primary-6: var(--wot-blue-6);
|
|
10
|
+
--wot-primary-7: var(--wot-blue-7);
|
|
11
|
+
--wot-primary-8: var(--wot-blue-8);
|
|
12
|
+
--wot-primary-9: var(--wot-blue-9);
|
|
13
|
+
--wot-primary-10: var(--wot-blue-10);
|
|
14
|
+
/* 危险色 */
|
|
15
|
+
--wot-danger-main: var(--wot-red-6);
|
|
16
|
+
--wot-danger-hover: var(--wot-red-5);
|
|
17
|
+
--wot-danger-clicked: var(--wot-red-7);
|
|
18
|
+
--wot-danger-disabled: var(--wot-red-3);
|
|
19
|
+
--wot-danger-particular: var(--wot-red-2);
|
|
20
|
+
--wot-danger-surface: var(--wot-red-1);
|
|
21
|
+
/* 成功色 */
|
|
22
|
+
--wot-success-main: var(--wot-green-6);
|
|
23
|
+
--wot-success-hover: var(--wot-green-5);
|
|
24
|
+
--wot-success-clicked: var(--wot-green-7);
|
|
25
|
+
--wot-success-disabled: var(--wot-green-3);
|
|
26
|
+
--wot-success-particular: var(--wot-green-2);
|
|
27
|
+
--wot-success-surface: var(--wot-green-1);
|
|
28
|
+
/* 警告色 */
|
|
29
|
+
--wot-warning-main: var(--wot-orange-6);
|
|
30
|
+
--wot-warning-hover: var(--wot-orange-5);
|
|
31
|
+
--wot-warning-clicked: var(--wot-orange-7);
|
|
32
|
+
--wot-warning-disabled: var(--wot-orange-3);
|
|
33
|
+
--wot-warning-particular: var(--wot-orange-2);
|
|
34
|
+
--wot-warning-surface: var(--wot-orange-1);
|
|
35
|
+
/* 中性色 */
|
|
36
|
+
/* 文字 */
|
|
37
|
+
--wot-text-main: var(--wot-coolgrey-10);
|
|
38
|
+
--wot-text-secondary: var(--wot-coolgrey-8);
|
|
39
|
+
--wot-text-auxiliary: var(--wot-coolgrey-6);
|
|
40
|
+
--wot-text-disabled: var(--wot-coolgrey-4);
|
|
41
|
+
--wot-text-placeholder: var(--wot-coolgrey-5);
|
|
42
|
+
--wot-text-white: var(--wot-base-white);
|
|
43
|
+
/* 图标 */
|
|
44
|
+
--wot-icon-main: var(--wot-coolgrey-10);
|
|
45
|
+
--wot-icon-secondary: var(--wot-coolgrey-8);
|
|
46
|
+
--wot-icon-auxiliary: var(--wot-coolgrey-6);
|
|
47
|
+
--wot-icon-disabled: var(--wot-coolgrey-4);
|
|
48
|
+
--wot-icon-placeholder: var(--wot-coolgrey-5);
|
|
49
|
+
--wot-icon-white: var(--wot-base-white);
|
|
50
|
+
/* 边框 */
|
|
51
|
+
--wot-border-extra-strong: var(--wot-coolgrey-6);
|
|
52
|
+
--wot-border-strong: var(--wot-coolgrey-4);
|
|
53
|
+
--wot-border-main: var(--wot-coolgrey-3);
|
|
54
|
+
--wot-border-light: var(--wot-coolgrey-2);
|
|
55
|
+
--wot-border-white: var(--wot-base-white);
|
|
56
|
+
--wot-border-zero: var(--wot-base-transparent);
|
|
57
|
+
/* 填充 */
|
|
58
|
+
--wot-filled-extra-strong: var(--wot-coolgrey-4);
|
|
59
|
+
--wot-filled-strong: var(--wot-coolgrey-3);
|
|
60
|
+
--wot-filled-content: var(--wot-coolgrey-2);
|
|
61
|
+
--wot-filled-bottom: var(--wot-coolgrey-1);
|
|
62
|
+
--wot-filled-oppo: var(--wot-base-white);
|
|
63
|
+
--wot-filled-zero: var(--wot-base-transparent);
|
|
64
|
+
/* 分割线 */
|
|
65
|
+
--wot-divider-main: var(--wot-opac-3_08);
|
|
66
|
+
--wot-divider-light: var(--wot-opac-2_04);
|
|
67
|
+
--wot-divider-strong: var(--wot-opac-4_15);
|
|
68
|
+
--wot-divider-white: var(--wot-base-white);
|
|
69
|
+
/* 反馈 */
|
|
70
|
+
--wot-feedback-hover: var(--wot-opac-2_04);
|
|
71
|
+
--wot-feedback-active: var(--wot-opac-3_08);
|
|
72
|
+
--wot-feedback-accent: var(--wot-blue-opac);
|
|
73
|
+
/* 填充色-透明度 */
|
|
74
|
+
--wot-opacfilled-tooltip-toast-cover: var(--wot-opac-9_75);
|
|
75
|
+
--wot-opacfilled-main-cover: var(--wot-opac-7_55);
|
|
76
|
+
--wot-opacfilled-light-cover: var(--wot-opac-6_30);
|
|
77
|
+
/* Picker View Mask */
|
|
78
|
+
--wot-picker-view-mask-start-color: var(--wot-opacwhite-10_85);
|
|
79
|
+
--wot-picker-view-mask-end-color: var(--wot-opacwhite-5_20);
|
|
80
|
+
/* 分类色 */
|
|
81
|
+
/* 黄色 */
|
|
82
|
+
--wot-classifyapplication-yellow-background: var(--wot-yellow-1);
|
|
83
|
+
--wot-classifyapplication-yellow-border: var(--wot-yellow-3);
|
|
84
|
+
--wot-classifyapplication-yellow-content: var(--wot-yellow-6);
|
|
85
|
+
/* 蓝色 */
|
|
86
|
+
--wot-classifyapplication-cyan-background: var(--wot-cyan-1);
|
|
87
|
+
--wot-classifyapplication-cyan-border: var(--wot-cyan-3);
|
|
88
|
+
--wot-classifyapplication-cyan-content: var(--wot-cyan-6);
|
|
89
|
+
/* 紫色 */
|
|
90
|
+
--wot-classifyapplication-purple-background: var(--wot-purple-1);
|
|
91
|
+
--wot-classifyapplication-purple-border: var(--wot-purple-3);
|
|
92
|
+
--wot-classifyapplication-purple-content: var(--wot-purple-6);
|
|
93
|
+
/* 靛色 */
|
|
94
|
+
--wot-classifyapplication-grape-background: var(--wot-grape-1);
|
|
95
|
+
--wot-classifyapplication-grape-border: var(--wot-grape-3);
|
|
96
|
+
--wot-classifyapplication-grape-content: var(--wot-grape-6);
|
|
97
|
+
/* 粉色 */
|
|
98
|
+
--wot-classifyapplication-pink-background: var(--wot-pink-1);
|
|
99
|
+
--wot-classifyapplication-pink-border: var(--wot-pink-3);
|
|
100
|
+
--wot-classifyapplication-pink-content: var(--wot-pink-6);
|
|
101
|
+
}
|