@yup/taro-ui 0.0.8 → 1.0.0
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 +228 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +3 -1
- package/es/components/avatar/index.d.ts +18 -0
- package/es/components/avatar/index.js +1 -0
- package/es/components/avatar/style/index.css +28 -0
- package/es/components/avatar/style/index.d.ts +2 -0
- package/es/components/avatar/style/index.js +2 -0
- package/es/components/button/index.d.ts +19 -3
- package/es/components/button/index.js +1 -1
- package/es/components/button/style/index.css +118 -48
- package/es/components/button/style/index.d.ts +1 -0
- package/es/components/button/style/index.js +1 -0
- package/es/components/checkbox/checkbox-group.d.ts +6 -2
- package/es/components/checkbox/checkbox-group.js +1 -1
- package/es/components/checkbox/index.js +1 -1
- package/es/components/checkbox/style/index.css +2 -24
- package/es/components/checkbox/style/index.d.ts +1 -0
- package/es/components/checkbox/style/index.js +1 -0
- package/es/components/city-selector/hooks/useLevel2Multiple.d.ts +24 -0
- package/es/components/city-selector/hooks/useLevel2Multiple.js +1 -0
- package/es/components/city-selector/hooks/useLevel2Single.d.ts +19 -0
- package/es/components/city-selector/hooks/useLevel2Single.js +1 -0
- package/es/components/city-selector/hooks/useMultiple.d.ts +28 -0
- package/es/components/city-selector/hooks/useMultiple.js +1 -0
- package/es/components/city-selector/hooks/useSingle.d.ts +23 -0
- package/es/components/city-selector/hooks/useSingle.js +1 -0
- package/es/components/city-selector/index.d.ts +5 -0
- package/es/components/city-selector/index.js +1 -0
- package/es/components/city-selector/style/index.css +153 -0
- package/es/components/city-selector/style/index.d.ts +2 -0
- package/es/components/city-selector/util.d.ts +2 -0
- package/es/components/city-selector/util.js +1 -0
- package/es/components/date-picker-view/index.d.ts +40 -0
- package/es/components/date-picker-view/index.js +1 -0
- package/es/components/date-picker-view/style/index.css +3 -0
- package/es/components/date-picker-view/style/index.d.ts +2 -0
- package/es/components/date-picker-view/style/index.js +2 -0
- package/es/components/date-picker-view/util.d.ts +7 -0
- package/es/components/date-picker-view/util.js +1 -0
- package/es/components/dialog/context.d.ts +4 -0
- package/es/components/dialog/index.d.ts +31 -0
- package/es/components/dialog/index.js +1 -0
- package/es/components/dialog/style/index.css +113 -0
- package/es/components/dialog/style/index.d.ts +2 -0
- package/es/components/dialog/style/index.js +2 -0
- package/es/components/form/form-item.js +1 -1
- package/es/components/form/index.js +1 -1
- package/es/components/form/style/index.css +0 -22
- package/es/components/form/style/index.d.ts +1 -0
- package/es/components/form/style/index.js +1 -0
- package/es/components/icon/index.d.ts +12 -0
- package/es/components/icon/index.js +1 -0
- package/es/components/icon/style/iconfont.css +72 -0
- package/es/components/icon/style/iconfont.ttf +0 -0
- package/es/components/icon/style/iconfont.woff +0 -0
- package/es/components/icon/style/iconfont.woff2 +0 -0
- package/es/components/icon/style/index.d.ts +1 -0
- package/es/components/icon/style/index.js +1 -0
- package/es/components/input/index.d.ts +12 -0
- package/es/components/input/index.js +1 -1
- package/es/components/input/style/index.css +33 -32
- package/es/components/input/style/index.d.ts +2 -0
- package/es/components/input/style/index.js +2 -0
- package/es/components/input/style/search.css +21 -0
- package/es/components/media-uploader/index.d.ts +123 -0
- package/es/components/media-uploader/index.js +1 -0
- package/es/components/media-uploader/style/index.css +93 -0
- package/es/components/media-uploader/style/index.d.ts +2 -0
- package/es/components/media-uploader/style/index.js +2 -0
- package/es/components/picker-view/index.d.ts +25 -0
- package/es/components/picker-view/index.js +1 -0
- package/es/components/picker-view/style/index.css +62 -0
- package/es/components/picker-view/style/index.d.ts +2 -0
- package/es/components/picker-view/style/index.js +2 -0
- package/es/components/popup/index.d.ts +62 -0
- package/es/components/popup/index.js +1 -0
- package/es/components/popup/style/index.css +91 -0
- package/es/components/popup/style/index.d.ts +2 -0
- package/es/components/popup/style/index.js +2 -0
- package/es/components/radio/context.d.ts +5 -0
- package/es/components/radio/context.js +1 -0
- package/es/components/radio/index.js +1 -1
- package/es/components/radio/radio-group.js +1 -1
- package/es/components/radio/style/group.css +0 -22
- package/es/components/radio/style/index.d.ts +1 -0
- package/es/components/radio/style/index.js +1 -0
- package/es/components/radio/style/radio.css +11 -24
- package/es/components/safe-area/index.d.ts +13 -0
- package/es/components/safe-area/index.js +1 -0
- package/es/components/safe-area/style/index.css +3 -0
- package/es/components/safe-area/style/index.d.ts +2 -0
- package/es/components/safe-area/style/index.js +2 -0
- package/es/components/safe-area/util.d.ts +5 -0
- package/es/components/safe-area/util.js +1 -0
- package/es/components/switch/index.d.ts +6 -0
- package/es/components/switch/index.js +1 -0
- package/es/components/switch/style/index.css +38 -0
- package/es/components/switch/style/index.d.ts +2 -0
- package/es/components/switch/style/index.js +2 -0
- package/es/components/tag/index.d.ts +18 -0
- package/es/components/tag/index.js +1 -0
- package/es/components/tag/style/index.css +92 -0
- package/es/components/tag/style/index.d.ts +2 -0
- package/es/components/tag/style/index.js +2 -0
- package/es/components/toast/style/index.css +0 -22
- package/es/components/toast/style/index.d.ts +1 -0
- package/es/components/toast/style/index.js +1 -0
- package/es/components/toast/toast.js +1 -1
- package/es/components/toast/withToast.js +1 -1
- package/es/global/global.css +21 -0
- package/es/global/index.d.ts +2 -1
- package/es/global/theme-default.css +21 -0
- package/es/global/variables.css +0 -0
- package/es/hooks/useRefState.d.ts +7 -0
- package/es/hooks/useRefState.js +1 -0
- package/es/index.d.ts +26 -0
- package/es/index.js +1 -1
- package/es/node_modules/@yup/taro-checkbox/dist/_virtual/_rollupPluginBabelHelpers.js +1 -0
- package/es/node_modules/@yup/taro-checkbox/dist/checkbox-group.js +1 -0
- package/es/node_modules/@yup/taro-checkbox/dist/context.js +1 -0
- package/es/node_modules/@yup/taro-checkbox/dist/index.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/_virtual/_rollupPluginBabelHelpers.js +3 -0
- package/es/node_modules/@yup/taro-form/dist/context.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/formItem.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/fromStore.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/index.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/useForm.js +1 -0
- package/es/node_modules/@yup/taro-form/dist/useWatch.js +1 -0
- package/es/node_modules/@yup/taro-radio/dist/_virtual/_rollupPluginBabelHelpers.js +1 -0
- package/es/node_modules/@yup/taro-radio/dist/context.js +1 -0
- package/es/node_modules/@yup/taro-radio/dist/index.js +1 -0
- package/es/node_modules/@yup/taro-radio/dist/radio-group.js +1 -0
- package/es/style/iconfont.ttf +0 -0
- package/es/style/iconfont.woff +0 -0
- package/es/style/iconfont.woff2 +0 -0
- package/es/style/index.css +282 -227
- package/es/utils/is.js +1 -1
- package/package.json +16 -9
- package/es/_virtual/_commonjsHelpers.js +0 -1
- package/es/_virtual/index.js +0 -1
- package/es/_virtual/jsx-runtime.js +0 -1
- package/es/_virtual/react-jsx-runtime.development.js +0 -1
- package/es/_virtual/react-jsx-runtime.production.min.js +0 -1
- package/es/global.css +0 -22
- package/es/node_modules/classnames/index.js +0 -1
- package/es/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1
- package/es/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -10
- package/es/node_modules/react/jsx-runtime.js +0 -1
- package/es/utils/react.d.ts +0 -2
package/es/style/index.css
CHANGED
|
@@ -1,107 +1,175 @@
|
|
|
1
1
|
:root,
|
|
2
2
|
page {
|
|
3
3
|
--ypmini-hd: 2;
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--yp-space-horizontal-base: calc(12px * var(--ypmini-hd));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:root,
|
|
25
|
-
page {
|
|
26
|
-
--ypmini-hd: 2;
|
|
27
|
-
--yp-color-primary: #0092ff;
|
|
28
|
-
--yp-color-text: rgba(0, 0, 0, 0.85);
|
|
29
|
-
--yp-color-text-light: #0092ff;
|
|
30
|
-
--yp-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
31
|
-
--yp-border-color: #e9edf3;
|
|
32
|
-
--yp-color-text-primary: #333;
|
|
33
|
-
--yp-color-text-link: var(--yp-color-primary);
|
|
34
|
-
--yp-color-text-secondary: #666;
|
|
35
|
-
--yp-color-text-disabled: #ccc;
|
|
36
|
-
--yp-color-text-placeholder: #999;
|
|
37
|
-
--yp-font-size-default: calc(17px * var(--ypmini-hd));
|
|
38
|
-
--yp-radio-circle-checked-color: var(--yp-color-primary);
|
|
39
|
-
--yp-radio-button-checked-color: var(--yp-color-primary);
|
|
40
|
-
--yp-checkbox-circle-checked-color: var(--yp-color-primary);
|
|
41
|
-
--yp-checkbox-button-checked-color: var(--yp-color-primary);
|
|
42
|
-
--yp-border-radius-base: calc(4px * var(--ypmini-hd));
|
|
43
|
-
--yp-border-radius-button: calc(8px * var(--ypmini-hd));
|
|
44
|
-
--yp-space-horizontal-base: calc(12px * var(--ypmini-hd));
|
|
4
|
+
--ypmini-primary-color: #0092ff;
|
|
5
|
+
--ypmini-primary-secondary-color: #e0f3ff;
|
|
6
|
+
--ypmini-color-text: rgba(0, 0, 0, 0.85);
|
|
7
|
+
--ypmini-color-text-light: var(--ypmini-primary-color);
|
|
8
|
+
--ypmini-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
9
|
+
--ypmini-color-text-primary: #333;
|
|
10
|
+
--ypmini-color-text-link: var(--ypmini-primary-color);
|
|
11
|
+
--ypmini-color-text-secondary: #666;
|
|
12
|
+
--ypmini-color-text-disabled: #ccc;
|
|
13
|
+
--ypmini-color-text-placeholder: #00000040;
|
|
14
|
+
--ypmini-border-color: #e9edf3;
|
|
15
|
+
--ypmini-font-size-max: calc(19px * var(--ypmini-hd));
|
|
16
|
+
--ypmini-font-size-large: calc(17px * var(--ypmini-hd));
|
|
17
|
+
--ypmini-font-size-default: calc(15px * var(--ypmini-hd));
|
|
18
|
+
--ypmini-font-size-middle: calc(14px * var(--ypmini-hd));
|
|
19
|
+
--ypmini-font-size-mini: calc(13px * var(--ypmini-hd));
|
|
20
|
+
--ypmini-mask-background: rgba(0, 0, 0, 0.65);
|
|
45
21
|
}
|
|
46
22
|
:root,
|
|
47
23
|
page {
|
|
48
|
-
--border-radius: calc(8px * var(--ypmini-hd));
|
|
49
|
-
--button-height: calc(48px * var(--ypmini-hd));
|
|
50
|
-
--
|
|
51
|
-
--
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
--
|
|
55
|
-
--
|
|
56
|
-
--
|
|
57
|
-
--
|
|
24
|
+
--ypmini-border-radius: calc(8px * var(--ypmini-hd));
|
|
25
|
+
--ypmini-button-height-large: calc(48px * var(--ypmini-hd));
|
|
26
|
+
--ypmini-button-height-default: calc(44px * var(--ypmini-hd));
|
|
27
|
+
--ypmini-button-height-middle: calc(40px * var(--ypmini-hd));
|
|
28
|
+
--ypmini-button-height-small: calc(32px * var(--ypmini-hd));
|
|
29
|
+
--ypmini-button-font-size-samll: calc(14px * var(--ypmini-hd));
|
|
30
|
+
--ypmini-button-font-size-moddle: calc(15px * var(--ypmini-hd));
|
|
31
|
+
--ypmini-button-font-size-default: calc(17px * var(--ypmini-hd));
|
|
32
|
+
--ypmini-button-font-size-large: calc(17px * var(--ypmini-hd));
|
|
33
|
+
--ypmini-default-button-background: #f5f7fc;
|
|
34
|
+
--ypmini-default-button-text-color: rgba(0, 0, 0, 0.65);
|
|
35
|
+
--ypmini-default-button-ghost-color: rgba(0, 0, 0, 0.65);
|
|
36
|
+
--ypmini-primary-button-background: var(--ypmini-primary-color);
|
|
37
|
+
--ypmini-primary-button-ghost-color: var(--ypmini-primary-color);
|
|
38
|
+
--ypmini-primary-button-disabled-background: #99d3ff;
|
|
39
|
+
--ypmini-primary-button-disabled-text-color: rgba(255, 255, 255, 0.45);
|
|
40
|
+
--ypmini-primary-button-text-color: #fff;
|
|
41
|
+
--ypmini-secondary-button-background: #00cbff;
|
|
42
|
+
--ypmini-secondary-button-text-color: #ffffff;
|
|
43
|
+
--ypmini-secondary-button-ghost-color: #00cbff;
|
|
44
|
+
--ypmini-warning-button-background: #FF5A57;
|
|
45
|
+
--ypmini-warning-button-text-color: #ffffff;
|
|
46
|
+
--ypmini-warning-button-ghost-color: #FF5A57;
|
|
47
|
+
--ypmini-warning-button-outlined-color: #E8362E;
|
|
48
|
+
--ypmini-primary-button-outlined-color: var(--ypmini-primary-color);
|
|
49
|
+
--ypmini-default-button-outlined-color: rgba(0, 0, 0, 0.65);
|
|
58
50
|
}
|
|
59
51
|
.ypmini-taro-button {
|
|
60
|
-
padding: 0
|
|
52
|
+
padding: 0 24px;
|
|
61
53
|
border: unset;
|
|
62
54
|
font-weight: bold;
|
|
63
|
-
font-size:
|
|
55
|
+
font-size: var(--ypmini-button-font-size-default);
|
|
64
56
|
width: auto;
|
|
65
|
-
height: var(--button-height);
|
|
66
|
-
line-height: var(--button-height);
|
|
67
|
-
color: var(--
|
|
68
|
-
border-radius: var(--border-radius);
|
|
57
|
+
height: var(--ypmini-button-height-default);
|
|
58
|
+
line-height: var(--ypmini-button-height-default);
|
|
59
|
+
color: var(--ypmini-color-text);
|
|
60
|
+
border-radius: var(--ypmini-border-radius);
|
|
69
61
|
display: inline-block;
|
|
70
62
|
white-space: nowrap;
|
|
71
63
|
}
|
|
72
64
|
.ypmini-taro-button:after {
|
|
73
65
|
display: none;
|
|
74
66
|
}
|
|
67
|
+
.ypmini-taro-button-shape-default {
|
|
68
|
+
padding: 0 24px;
|
|
69
|
+
}
|
|
70
|
+
.ypmini-taro-button-shape-round {
|
|
71
|
+
padding: 0px 24px;
|
|
72
|
+
border-radius: 1998px;
|
|
73
|
+
}
|
|
74
|
+
.ypmini-taro-button-size-large {
|
|
75
|
+
height: var(--ypmini-button-height-large);
|
|
76
|
+
line-height: var(--ypmini-button-height-large);
|
|
77
|
+
font-weight: bold;
|
|
78
|
+
font-size: var(--ypmini-button-font-size-large);
|
|
79
|
+
}
|
|
80
|
+
.ypmini-taro-button-size-middle {
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
font-size: var(--ypmini-button-font-size-middle);
|
|
83
|
+
height: var(--ypmini-button-height-middle);
|
|
84
|
+
line-height: var(--ypmini-button-height-middle);
|
|
85
|
+
}
|
|
86
|
+
.ypmini-taro-button-size-default {
|
|
87
|
+
height: var(--ypmini-button-height-default);
|
|
88
|
+
line-height: var(--ypmini-button-height-default);
|
|
89
|
+
}
|
|
90
|
+
.ypmini-taro-button-size-small {
|
|
91
|
+
font-weight: 400;
|
|
92
|
+
font-size: var(--ypmini-button-font-size-middle);
|
|
93
|
+
height: var(--ypmini-button-height-small);
|
|
94
|
+
line-height: var(--ypmini-button-height-small);
|
|
95
|
+
}
|
|
96
|
+
.ypmini-taro-button-warning {
|
|
97
|
+
background: var(--ypmini-warning-button-background);
|
|
98
|
+
color: var(--ypmini-warning-button-text-color);
|
|
99
|
+
}
|
|
100
|
+
.ypmini-taro-button-warning.ypmini-taro-button-warning-disabled {
|
|
101
|
+
opacity: 0.6;
|
|
102
|
+
}
|
|
103
|
+
.ypmini-taro-button-warning.ypmini-taro-button-warning-disabled.ypmini-taro-button-warning.ypmini-taro-button-warning-disabled[disabled] {
|
|
104
|
+
color: var(--ypmini-warning-button-text-color);
|
|
105
|
+
}
|
|
106
|
+
.ypmini-taro-button-warning.ypmini-taro-button-outlined {
|
|
107
|
+
border: 2px solid var(--ypmini-warning-button-outlined-color);
|
|
108
|
+
color: var(--ypmini-warning-button-outlined-color);
|
|
109
|
+
background: transparent;
|
|
110
|
+
}
|
|
111
|
+
.ypmini-taro-button-warning.ypmini-taro-button-ghost {
|
|
112
|
+
background: transparent;
|
|
113
|
+
color: var(--ypmini-warning-button-ghost-color);
|
|
114
|
+
}
|
|
75
115
|
.ypmini-taro-button-primary {
|
|
76
|
-
background: var(--primary-button-background);
|
|
77
|
-
color: var(--primary-button-text-color);
|
|
116
|
+
background: var(--ypmini-primary-button-background);
|
|
117
|
+
color: var(--ypmini-primary-button-text-color);
|
|
78
118
|
}
|
|
79
119
|
.ypmini-taro-button-primary.ypmini-taro-button-primary-disabled {
|
|
80
|
-
color: var(--primary-button-disabled-text-color);
|
|
81
|
-
background: var(--primary-button-disabled-background);
|
|
120
|
+
color: var(--ypmini-primary-button-disabled-text-color);
|
|
121
|
+
background: var(--ypmini-primary-button-disabled-background);
|
|
122
|
+
}
|
|
123
|
+
.ypmini-taro-button-primary.ypmini-taro-button-outlined {
|
|
124
|
+
border: 2px solid var(--ypmini-primary-button-outlined-color);
|
|
125
|
+
color: var(--ypmini-primary-button-outlined-color);
|
|
126
|
+
background: transparent;
|
|
127
|
+
}
|
|
128
|
+
.ypmini-taro-button-primary.ypmini-taro-button-ghost {
|
|
129
|
+
background: transparent;
|
|
130
|
+
color: var(--ypmini-primary-button-ghost-color);
|
|
82
131
|
}
|
|
83
132
|
.ypmini-taro-button-default {
|
|
84
|
-
background: var(--default-button-background);
|
|
85
|
-
color: var(--default-button-text-color);
|
|
133
|
+
background: var(--ypmini-default-button-background);
|
|
134
|
+
color: var(--ypmini-default-button-text-color);
|
|
86
135
|
}
|
|
87
136
|
.ypmini-taro-button-default.ypmini-taro-button-default-disabled {
|
|
88
137
|
opacity: 0.6;
|
|
89
138
|
}
|
|
90
139
|
.ypmini-taro-button-default.ypmini-taro-button-default-disabled.ypmini-taro-button-default.ypmini-taro-button-default-disabled[disabled] {
|
|
91
|
-
color: var(--default-button-text-color);
|
|
140
|
+
color: var(--ypmini-default-button-text-color);
|
|
141
|
+
}
|
|
142
|
+
.ypmini-taro-button-default.ypmini-taro-button-outlined {
|
|
143
|
+
border: 2px solid var(--ypmini-default-button-outlined-color);
|
|
144
|
+
color: var(--ypmini-default-button-outlined-color);
|
|
145
|
+
background: transparent;
|
|
146
|
+
}
|
|
147
|
+
.ypmini-taro-button-default.ypmini-taro-button-ghost {
|
|
148
|
+
background: transparent;
|
|
149
|
+
color: var(--ypmini-default-button-ghost-color);
|
|
92
150
|
}
|
|
93
151
|
.ypmini-taro-button-secondary {
|
|
94
|
-
background: var(--secondary-button-background);
|
|
95
|
-
color: var(--secondary-button-text-color);
|
|
152
|
+
background: var(--ypmini-secondary-button-background);
|
|
153
|
+
color: var(--ypmini-secondary-button-text-color);
|
|
96
154
|
}
|
|
97
155
|
.ypmini-taro-button-secondary.ypmini-taro-button-secondary-disabled {
|
|
98
156
|
opacity: 0.6;
|
|
99
157
|
}
|
|
100
158
|
.ypmini-taro-button-secondary.ypmini-taro-button-secondary-disabled.ypmini-taro-button-secondary.ypmini-taro-button-secondary-disabled[disabled] {
|
|
101
|
-
color: var(--secondary-button-text-color);
|
|
159
|
+
color: var(--ypmini-secondary-button-text-color);
|
|
160
|
+
}
|
|
161
|
+
.ypmini-taro-button-secondary.ypmini-taro-button-outlined {
|
|
162
|
+
border: 2px solid var(--ypmini-secondary-button-background);
|
|
163
|
+
color: var(--ypmini-secondary-button-background);
|
|
164
|
+
background: transparent;
|
|
165
|
+
}
|
|
166
|
+
.ypmini-taro-button-secondary.ypmini-taro-button-ghost {
|
|
167
|
+
background: transparent;
|
|
168
|
+
color: var(--ypmini-secondary-button-ghost-color);
|
|
102
169
|
}
|
|
103
170
|
.ypmini-taro-button-block {
|
|
104
171
|
display: block;
|
|
172
|
+
width: 100%;
|
|
105
173
|
}
|
|
106
174
|
.ypmini-taro-button-icon-wrapper {
|
|
107
175
|
display: flex;
|
|
@@ -115,29 +183,6 @@ page {
|
|
|
115
183
|
taro-button-core + taro-button-core {
|
|
116
184
|
margin-top: 0;
|
|
117
185
|
}
|
|
118
|
-
|
|
119
|
-
:root,
|
|
120
|
-
page {
|
|
121
|
-
--ypmini-hd: 2;
|
|
122
|
-
--yp-color-primary: #0092ff;
|
|
123
|
-
--yp-color-text: rgba(0, 0, 0, 0.85);
|
|
124
|
-
--yp-color-text-light: #0092ff;
|
|
125
|
-
--yp-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
126
|
-
--yp-border-color: #e9edf3;
|
|
127
|
-
--yp-color-text-primary: #333;
|
|
128
|
-
--yp-color-text-link: var(--yp-color-primary);
|
|
129
|
-
--yp-color-text-secondary: #666;
|
|
130
|
-
--yp-color-text-disabled: #ccc;
|
|
131
|
-
--yp-color-text-placeholder: #999;
|
|
132
|
-
--yp-font-size-default: calc(17px * var(--ypmini-hd));
|
|
133
|
-
--yp-radio-circle-checked-color: var(--yp-color-primary);
|
|
134
|
-
--yp-radio-button-checked-color: var(--yp-color-primary);
|
|
135
|
-
--yp-checkbox-circle-checked-color: var(--yp-color-primary);
|
|
136
|
-
--yp-checkbox-button-checked-color: var(--yp-color-primary);
|
|
137
|
-
--yp-border-radius-base: calc(4px * var(--ypmini-hd));
|
|
138
|
-
--yp-border-radius-button: calc(8px * var(--ypmini-hd));
|
|
139
|
-
--yp-space-horizontal-base: calc(12px * var(--ypmini-hd));
|
|
140
|
-
}
|
|
141
186
|
:root,
|
|
142
187
|
page {
|
|
143
188
|
--checkbox-button-font-size: calc(17px * var(--ypmini-hd));
|
|
@@ -145,8 +190,8 @@ page {
|
|
|
145
190
|
--checkbox-button-background-color: #f5f7fc;
|
|
146
191
|
--checkbox-button-text-color: #000000d9;
|
|
147
192
|
--checkbox-button-checked-background-color: #e0f3ff;
|
|
148
|
-
--checkbox-button-checked-text-color: var(--
|
|
149
|
-
--checkbox-button-checked-border-color: var(--
|
|
193
|
+
--checkbox-button-checked-text-color: var(--ypmini-primary-color);
|
|
194
|
+
--checkbox-button-checked-border-color: var(--ypmini-primary-color);
|
|
150
195
|
--checkbox-button-height: calc(52px * var(--ypmini-hd));
|
|
151
196
|
}
|
|
152
197
|
.ypmini-checkbox-button {
|
|
@@ -184,29 +229,6 @@ page {
|
|
|
184
229
|
margin-left: 24px;
|
|
185
230
|
margin-top: 0px;
|
|
186
231
|
}
|
|
187
|
-
|
|
188
|
-
:root,
|
|
189
|
-
page {
|
|
190
|
-
--ypmini-hd: 2;
|
|
191
|
-
--yp-color-primary: #0092ff;
|
|
192
|
-
--yp-color-text: rgba(0, 0, 0, 0.85);
|
|
193
|
-
--yp-color-text-light: #0092ff;
|
|
194
|
-
--yp-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
195
|
-
--yp-border-color: #e9edf3;
|
|
196
|
-
--yp-color-text-primary: #333;
|
|
197
|
-
--yp-color-text-link: var(--yp-color-primary);
|
|
198
|
-
--yp-color-text-secondary: #666;
|
|
199
|
-
--yp-color-text-disabled: #ccc;
|
|
200
|
-
--yp-color-text-placeholder: #999;
|
|
201
|
-
--yp-font-size-default: calc(17px * var(--ypmini-hd));
|
|
202
|
-
--yp-radio-circle-checked-color: var(--yp-color-primary);
|
|
203
|
-
--yp-radio-button-checked-color: var(--yp-color-primary);
|
|
204
|
-
--yp-checkbox-circle-checked-color: var(--yp-color-primary);
|
|
205
|
-
--yp-checkbox-button-checked-color: var(--yp-color-primary);
|
|
206
|
-
--yp-border-radius-base: calc(4px * var(--ypmini-hd));
|
|
207
|
-
--yp-border-radius-button: calc(8px * var(--ypmini-hd));
|
|
208
|
-
--yp-space-horizontal-base: calc(12px * var(--ypmini-hd));
|
|
209
|
-
}
|
|
210
232
|
:root,
|
|
211
233
|
page {
|
|
212
234
|
--form-item-label-width: calc(60px * var(--ypmini-hd));
|
|
@@ -241,56 +263,121 @@ page {
|
|
|
241
263
|
font-weight: bold;
|
|
242
264
|
font-size: 38px;
|
|
243
265
|
}
|
|
244
|
-
|
|
245
|
-
:
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
+
@font-face {
|
|
267
|
+
font-family: "iconfont";
|
|
268
|
+
/* Project id 5088009 */
|
|
269
|
+
src: url('iconfont.woff2?t=1767782477263') format('woff2'), url('iconfont.woff?t=1767782477263') format('woff'), url('iconfont.ttf?t=1767782477263') format('truetype');
|
|
270
|
+
}
|
|
271
|
+
.iconfont {
|
|
272
|
+
font-family: "iconfont" !important;
|
|
273
|
+
font-size: 16px;
|
|
274
|
+
font-style: normal;
|
|
275
|
+
-webkit-font-smoothing: antialiased;
|
|
276
|
+
-moz-osx-font-smoothing: grayscale;
|
|
277
|
+
}
|
|
278
|
+
.icon-checked_icon:before {
|
|
279
|
+
content: "\e61e";
|
|
280
|
+
}
|
|
281
|
+
.icon-refresh_icon:before {
|
|
282
|
+
content: "\e61f";
|
|
283
|
+
}
|
|
284
|
+
.icon-location_icon:before {
|
|
285
|
+
content: "\e620";
|
|
286
|
+
}
|
|
287
|
+
.icon-add_icon:before {
|
|
288
|
+
content: "\e61d";
|
|
289
|
+
}
|
|
290
|
+
.icon-telephone_icon:before {
|
|
291
|
+
content: "\e60f";
|
|
292
|
+
}
|
|
293
|
+
.icon-wechat_icon:before {
|
|
294
|
+
content: "\e610";
|
|
295
|
+
}
|
|
296
|
+
.icon-search_icon:before {
|
|
297
|
+
content: "\e611";
|
|
298
|
+
}
|
|
299
|
+
.icon-edit_icon:before {
|
|
300
|
+
content: "\e60e";
|
|
301
|
+
}
|
|
302
|
+
.icon-add-circle_icon:before {
|
|
303
|
+
content: "\e612";
|
|
304
|
+
}
|
|
305
|
+
.icon-checked-fill_icon:before {
|
|
306
|
+
content: "\e60d";
|
|
307
|
+
}
|
|
308
|
+
.icon-quote-fill_icon:before {
|
|
309
|
+
content: "\e613";
|
|
310
|
+
}
|
|
311
|
+
.icon-vedio_icon:before {
|
|
312
|
+
content: "\e614";
|
|
313
|
+
}
|
|
314
|
+
.icon-delete-fill_icon:before {
|
|
315
|
+
content: "\e615";
|
|
316
|
+
}
|
|
317
|
+
.icon-close_icon:before {
|
|
318
|
+
content: "\e616";
|
|
319
|
+
}
|
|
320
|
+
.icon-time_icon:before {
|
|
321
|
+
content: "\e617";
|
|
322
|
+
}
|
|
323
|
+
.icon-phone_icon:before {
|
|
324
|
+
content: "\e618";
|
|
325
|
+
}
|
|
326
|
+
.icon-arrow-right_icon:before {
|
|
327
|
+
content: "\e619";
|
|
328
|
+
}
|
|
329
|
+
.icon-attention_icon:before {
|
|
330
|
+
content: "\e61a";
|
|
331
|
+
}
|
|
332
|
+
.icon-comment_icon:before {
|
|
333
|
+
content: "\e61b";
|
|
334
|
+
}
|
|
335
|
+
.icon-camera_icon:before {
|
|
336
|
+
content: "\e61c";
|
|
266
337
|
}
|
|
267
338
|
:root,
|
|
268
339
|
page {
|
|
269
|
-
--input-placeholder-color:
|
|
270
|
-
--input-text-color: var(--
|
|
271
|
-
--input-font-size: var(--
|
|
340
|
+
--ypmini-input-placeholder-color: var(--ypmini-color-text-placeholder);
|
|
341
|
+
--ypmini-input-text-color: var(--ypmini-color-text);
|
|
342
|
+
--ypmini-input-font-size: var(--ypmini-font-size-default);
|
|
343
|
+
--ypmini-input-delete-cion-color: #00000040;
|
|
344
|
+
--ypmini-input-delete-cion-size: calc(var(--ypmini-hd) * 16px);
|
|
345
|
+
--ypmini-input-height: calc(48px * var(--ypmini-hd));
|
|
346
|
+
--ypmini-input-prefix-icon-size: calc(16px * var(--ypmini-hd));
|
|
347
|
+
--ypmini-input-border-color: var(--ypmini-border-color);
|
|
348
|
+
--ypmini-input-prefix-icon-color: #000000a6;
|
|
272
349
|
}
|
|
273
350
|
.ypmini-taro-input-wrapper {
|
|
274
351
|
display: flex;
|
|
275
|
-
|
|
276
|
-
|
|
352
|
+
align-items: center;
|
|
353
|
+
height: var(--ypmini-input-height);
|
|
354
|
+
font-size: var(--ypmini-input-font-size);
|
|
355
|
+
padding: 0px 24px;
|
|
277
356
|
border-radius: 16px;
|
|
278
|
-
border: 2px solid
|
|
357
|
+
border: 2px solid var(--ypmini-input-border-color);
|
|
279
358
|
box-sizing: border-box;
|
|
280
359
|
}
|
|
281
360
|
.ypmini-taro-input-borderless-wrapper {
|
|
282
361
|
border: unset;
|
|
283
362
|
}
|
|
284
363
|
.ypmini-taro-input {
|
|
285
|
-
color: var(--input-text-color);
|
|
364
|
+
color: var(--ypmini-input-text-color);
|
|
286
365
|
flex: 1;
|
|
287
366
|
border: none;
|
|
288
367
|
}
|
|
289
368
|
.ypmini-taro-input input::placeholder {
|
|
290
|
-
color: var(--input-placeholder-color);
|
|
369
|
+
color: var(--ypmini-input-placeholder-color);
|
|
291
370
|
}
|
|
292
371
|
.ypmini-input-placeholder {
|
|
293
|
-
color: var(--input-placeholder-color);
|
|
372
|
+
color: var(--ypmini-input-placeholder-color);
|
|
373
|
+
}
|
|
374
|
+
.ypmini-taro-input-clear {
|
|
375
|
+
display: flex;
|
|
376
|
+
align-items: center;
|
|
377
|
+
}
|
|
378
|
+
.ypmini-taro-input-clear-icon {
|
|
379
|
+
color: var(--ypmini-input-delete-cion-color);
|
|
380
|
+
font-size: var(--ypmini-input-delete-cion-size);
|
|
294
381
|
}
|
|
295
382
|
.ypmini-taro-input-count {
|
|
296
383
|
color: rgba(0, 0, 0, 0.45);
|
|
@@ -300,69 +387,35 @@ page {
|
|
|
300
387
|
margin-left: 8px;
|
|
301
388
|
}
|
|
302
389
|
.ypmini-taro-input-count .ypmini-taro-input-count-current-light {
|
|
303
|
-
color: var(--
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
:root,
|
|
307
|
-
page {
|
|
308
|
-
--ypmini-hd: 2;
|
|
309
|
-
--yp-color-primary: #0092ff;
|
|
310
|
-
--yp-color-text: rgba(0, 0, 0, 0.85);
|
|
311
|
-
--yp-color-text-light: #0092ff;
|
|
312
|
-
--yp-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
313
|
-
--yp-border-color: #e9edf3;
|
|
314
|
-
--yp-color-text-primary: #333;
|
|
315
|
-
--yp-color-text-link: var(--yp-color-primary);
|
|
316
|
-
--yp-color-text-secondary: #666;
|
|
317
|
-
--yp-color-text-disabled: #ccc;
|
|
318
|
-
--yp-color-text-placeholder: #999;
|
|
319
|
-
--yp-font-size-default: calc(17px * var(--ypmini-hd));
|
|
320
|
-
--yp-radio-circle-checked-color: var(--yp-color-primary);
|
|
321
|
-
--yp-radio-button-checked-color: var(--yp-color-primary);
|
|
322
|
-
--yp-checkbox-circle-checked-color: var(--yp-color-primary);
|
|
323
|
-
--yp-checkbox-button-checked-color: var(--yp-color-primary);
|
|
324
|
-
--yp-border-radius-base: calc(4px * var(--ypmini-hd));
|
|
325
|
-
--yp-border-radius-button: calc(8px * var(--ypmini-hd));
|
|
326
|
-
--yp-space-horizontal-base: calc(12px * var(--ypmini-hd));
|
|
390
|
+
color: var(--ypmini-color-text-light);
|
|
327
391
|
}
|
|
328
|
-
.ypmini-
|
|
392
|
+
.ypmini-taro-input-prefix-icon-wrapper {
|
|
329
393
|
display: flex;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
394
|
+
align-items: center;
|
|
395
|
+
font-size: var(--ypmini-input-prefix-icon-size);
|
|
396
|
+
margin-right: 16px;
|
|
397
|
+
color: var(--ypmini-input-prefix-icon-color);
|
|
334
398
|
}
|
|
335
|
-
|
|
336
|
-
|
|
399
|
+
:root,
|
|
400
|
+
page {
|
|
401
|
+
--search-input-backgroud: hsl(223, 54%, 97%);
|
|
402
|
+
--search-input-height: calc(var(--ypmini-hd) * 48px);
|
|
403
|
+
--search-input-font-size: calc(var(--ypmini-hd) * 15px);
|
|
337
404
|
}
|
|
338
|
-
.ypmini-
|
|
339
|
-
|
|
405
|
+
.ypmini-search-input-wrapper {
|
|
406
|
+
padding: 0px 24px;
|
|
407
|
+
border-radius: 16px;
|
|
408
|
+
height: var(--search-input-height);
|
|
409
|
+
display: inline-flex;
|
|
410
|
+
align-items: center;
|
|
411
|
+
font-size: var(--search-input-font-size);
|
|
412
|
+
background: var(--search-input-backgroud);
|
|
340
413
|
}
|
|
341
|
-
.ypmini-
|
|
342
|
-
|
|
414
|
+
.ypmini-search-input {
|
|
415
|
+
font-size: var(--input-font-size);
|
|
343
416
|
}
|
|
344
|
-
|
|
345
|
-
:
|
|
346
|
-
page {
|
|
347
|
-
--ypmini-hd: 2;
|
|
348
|
-
--yp-color-primary: #0092ff;
|
|
349
|
-
--yp-color-text: rgba(0, 0, 0, 0.85);
|
|
350
|
-
--yp-color-text-light: #0092ff;
|
|
351
|
-
--yp-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
352
|
-
--yp-border-color: #e9edf3;
|
|
353
|
-
--yp-color-text-primary: #333;
|
|
354
|
-
--yp-color-text-link: var(--yp-color-primary);
|
|
355
|
-
--yp-color-text-secondary: #666;
|
|
356
|
-
--yp-color-text-disabled: #ccc;
|
|
357
|
-
--yp-color-text-placeholder: #999;
|
|
358
|
-
--yp-font-size-default: calc(17px * var(--ypmini-hd));
|
|
359
|
-
--yp-radio-circle-checked-color: var(--yp-color-primary);
|
|
360
|
-
--yp-radio-button-checked-color: var(--yp-color-primary);
|
|
361
|
-
--yp-checkbox-circle-checked-color: var(--yp-color-primary);
|
|
362
|
-
--yp-checkbox-button-checked-color: var(--yp-color-primary);
|
|
363
|
-
--yp-border-radius-base: calc(4px * var(--ypmini-hd));
|
|
364
|
-
--yp-border-radius-button: calc(8px * var(--ypmini-hd));
|
|
365
|
-
--yp-space-horizontal-base: calc(12px * var(--ypmini-hd));
|
|
417
|
+
.ypmini-search-input-icon {
|
|
418
|
+
font-size: 32px;
|
|
366
419
|
}
|
|
367
420
|
:root,
|
|
368
421
|
page {
|
|
@@ -371,9 +424,18 @@ page {
|
|
|
371
424
|
--radio-button-background-color: #f5f7fc;
|
|
372
425
|
--radio-button-text-color: #000000d9;
|
|
373
426
|
--radio-button-checked-background-color: #e0f3ff;
|
|
374
|
-
--radio-button-checked-text-color: var(--
|
|
375
|
-
--radio-button-checked-border-color: var(--
|
|
427
|
+
--radio-button-checked-text-color: var(--ypmini-primary-color);
|
|
428
|
+
--radio-button-checked-border-color: var(--ypmini-primary-color);
|
|
376
429
|
--radio-button-height: calc(52px * var(--ypmini-hd));
|
|
430
|
+
--radio-default-size: calc(16px * var(--ypmini-hd));
|
|
431
|
+
}
|
|
432
|
+
.ypmini-taro-radio-default-inner {
|
|
433
|
+
width: var(--radio-default-size);
|
|
434
|
+
height: var(--radio-default-size);
|
|
435
|
+
border-radius: 100%;
|
|
436
|
+
}
|
|
437
|
+
.ypmini-taro-radio-default-inner-checked::before {
|
|
438
|
+
content: "☑️";
|
|
377
439
|
}
|
|
378
440
|
.ypmini-taro-radio-button-inner {
|
|
379
441
|
background-color: var(--radio-button-background-color);
|
|
@@ -393,28 +455,21 @@ page {
|
|
|
393
455
|
border-width: 2px;
|
|
394
456
|
border-style: solid;
|
|
395
457
|
}
|
|
396
|
-
|
|
397
|
-
:
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
--yp-radio-circle-checked-color: var(--yp-color-primary);
|
|
412
|
-
--yp-radio-button-checked-color: var(--yp-color-primary);
|
|
413
|
-
--yp-checkbox-circle-checked-color: var(--yp-color-primary);
|
|
414
|
-
--yp-checkbox-button-checked-color: var(--yp-color-primary);
|
|
415
|
-
--yp-border-radius-base: calc(4px * var(--ypmini-hd));
|
|
416
|
-
--yp-border-radius-button: calc(8px * var(--ypmini-hd));
|
|
417
|
-
--yp-space-horizontal-base: calc(12px * var(--ypmini-hd));
|
|
458
|
+
.ypmini-radio-group {
|
|
459
|
+
display: flex;
|
|
460
|
+
width: 100%;
|
|
461
|
+
}
|
|
462
|
+
.ypmini-radio-group-block {
|
|
463
|
+
display: block;
|
|
464
|
+
}
|
|
465
|
+
.ypmini-radio-group-button {
|
|
466
|
+
display: flex;
|
|
467
|
+
}
|
|
468
|
+
.ypmini-radio-group .ypmini-taro-radio-button {
|
|
469
|
+
flex: 1;
|
|
470
|
+
}
|
|
471
|
+
.ypmini-radio-group .ypmini-taro-radio:not(:first-child) {
|
|
472
|
+
margin-left: 24px;
|
|
418
473
|
}
|
|
419
474
|
:root,
|
|
420
475
|
page {
|
package/es/utils/is.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o=function(o){var t;return((null==Object||null===(t=Object.prototype)||void 0===t||null===(t=t.toString)||void 0===t||null===(t=t.call(o))||void 0===t?void 0:t.match(/^\[object\s(.*)\]$/))||[])[1]};function t(t){return"number"===o(t).toLowerCase()}function n(t){return"promise"===o(t).toLowerCase()}export{o as getTypeChar,t as isNumber,n as isPromise};
|