@yup/taro-ui 0.1.0 → 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 +182 -6
- 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/style/index.css +79 -61
- 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/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/icon/index.js +1 -1
- package/es/components/icon/style/iconfont.css +13 -1
- 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/input/style/index.css +19 -19
- 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/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/global/global.css +3 -0
- package/es/global/theme-default.css +3 -0
- package/es/index.d.ts +20 -0
- package/es/index.js +1 -1
- 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 +114 -81
- package/es/utils/is.js +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
pgae {
|
|
3
|
+
--ypmini-media-uploader-button-width: calc(106px * var(--ypmini-hd));
|
|
4
|
+
--ypmini-media-uploader-button-height: calc(106px * var(--ypmini-hd));
|
|
5
|
+
--ypmini-media-uploader-button-border-radius: calc(8px * var(--ypmini-hd));
|
|
6
|
+
--ypmini-media-uploader-button-border-color: #e9edf3;
|
|
7
|
+
--ypmini-media-uploader-horizal-sapce: calc(12px * var(--ypmini-hd));
|
|
8
|
+
--ypmini-media-uploader-vertical-sapce: calc(12px * var(--ypmini-hd));
|
|
9
|
+
}
|
|
10
|
+
.ypmini-media-uploader-list {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
margin-top: calc(-1 * var(--ypmini-media-uploader-vertical-sapce));
|
|
14
|
+
margin-left: calc(-1 * var(--ypmini-media-uploader-horizal-sapce));
|
|
15
|
+
}
|
|
16
|
+
.ypmini-media-uploader-cell {
|
|
17
|
+
width: var(--ypmini-media-uploader-button-width);
|
|
18
|
+
height: var(--ypmini-media-uploader-button-height);
|
|
19
|
+
border-radius: var(--ypmini-media-uploader-button-border-radius);
|
|
20
|
+
border: 2px dashed var(--ypmini-media-uploader-button-border-color);
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
margin-top: var(--ypmini-media-uploader-vertical-sapce);
|
|
23
|
+
margin-left: var(--ypmini-media-uploader-horizal-sapce);
|
|
24
|
+
border: unset;
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
.ypmini-media-uploader-cell.ypmini-media-uploader-cell-single {
|
|
28
|
+
margin-top: 0;
|
|
29
|
+
margin-left: 0;
|
|
30
|
+
}
|
|
31
|
+
.ypmini-media-uploader-cell-delete {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
position: absolute;
|
|
36
|
+
right: 0;
|
|
37
|
+
top: 0;
|
|
38
|
+
z-index: 10;
|
|
39
|
+
height: 48px;
|
|
40
|
+
width: 48px;
|
|
41
|
+
border-radius: 0px 16px 0px 16px;
|
|
42
|
+
background: rgba(0, 0, 0, 0.65);
|
|
43
|
+
}
|
|
44
|
+
.ypmini-media-uploader-cell-delete .ypmini-media-uploader-cell-delete-icon {
|
|
45
|
+
font-size: 32px;
|
|
46
|
+
color: #fff;
|
|
47
|
+
}
|
|
48
|
+
.ypmini-media-uploader-image-view {
|
|
49
|
+
height: 100%;
|
|
50
|
+
width: 100%;
|
|
51
|
+
object-fit: contain;
|
|
52
|
+
}
|
|
53
|
+
.ypmini-media-uploader-process-mask {
|
|
54
|
+
position: absolute;
|
|
55
|
+
left: 0;
|
|
56
|
+
right: 0;
|
|
57
|
+
bottom: 0;
|
|
58
|
+
top: 0;
|
|
59
|
+
background: rgba(0, 0, 0, 0.65);
|
|
60
|
+
z-index: 20;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
}
|
|
65
|
+
.ypmini-media-uploader-process-bar {
|
|
66
|
+
width: calc(100% - (34px * var(--ypmini-hd)));
|
|
67
|
+
height: 12px;
|
|
68
|
+
border-radius: 6px;
|
|
69
|
+
background: rgba(255, 255, 255, 0.45);
|
|
70
|
+
}
|
|
71
|
+
.ypmini-media-uploader-process-bar-inner {
|
|
72
|
+
height: 100%;
|
|
73
|
+
width: 30%;
|
|
74
|
+
border-radius: 6px;
|
|
75
|
+
background: #ffffff;
|
|
76
|
+
}
|
|
77
|
+
.ypmini-media-uploader-button {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
width: var(--ypmini-media-uploader-button-width);
|
|
82
|
+
height: var(--ypmini-media-uploader-button-height);
|
|
83
|
+
border-radius: var(--ypmini-media-uploader-button-border-radius);
|
|
84
|
+
border: 2px dashed var(--ypmini-media-uploader-button-border-color);
|
|
85
|
+
}
|
|
86
|
+
.ypmini-media-uploader-button.ypmini-media-uploader-button-single {
|
|
87
|
+
margin-top: 0;
|
|
88
|
+
margin-left: 0;
|
|
89
|
+
}
|
|
90
|
+
.ypmini-media-uploader-button .ypmini-media-uploader-icon {
|
|
91
|
+
font-size: 66px;
|
|
92
|
+
color: #e9edf3;
|
|
93
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewProps } from '@tarojs/components';
|
|
3
|
+
export interface TagProps extends ViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* 颜色类型
|
|
6
|
+
*/
|
|
7
|
+
color?: 'default' | 'primary' | 'warning' | 'success';
|
|
8
|
+
/**
|
|
9
|
+
* 大小规格
|
|
10
|
+
*/
|
|
11
|
+
size?: 'default' | 'small';
|
|
12
|
+
/**
|
|
13
|
+
* 填充样式 outlined 外边框填充, solid 无外边框
|
|
14
|
+
*/
|
|
15
|
+
variant?: "outlined" | 'solid';
|
|
16
|
+
}
|
|
17
|
+
declare const Tag: React.FC<TagProps>;
|
|
18
|
+
export default Tag;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{objectWithoutProperties as a,objectSpread2 as i}from"../../_virtual/_rollupPluginBabelHelpers.js";import{jsx as t}from"react/jsx-runtime";import o from"classnames";import{View as r}from"@tarojs/components";var e=["color","variant","size","className","children"],c=function(c){var n=c.color,s=void 0===n?"default":n,l=c.variant,m=void 0===l?"solid":l,p=c.size,d=void 0===p?"default":p,u=c.className,f=c.children,v=a(c,e);return t(r,i(i({className:o("ypmini-tag","ypmini-tag-".concat(s),"ypmini-tag-".concat(m),"ypmini-tag-".concat(s,"--").concat(m),"ypmini-tag-size-".concat(d),u)},v),{},{children:f}))};export{c as default};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
page,
|
|
2
|
+
:root {
|
|
3
|
+
--ypmini-tag-size-default-height: calc(var(--ypmini-hd) * 22px);
|
|
4
|
+
--ypmini-tag-size-default-font-size: calc(var(--ypmini-hd) * 12px);
|
|
5
|
+
--ypmini-tag-size-small-height: calc(var(--ypmini-hd) * 18px);
|
|
6
|
+
--ypmini-tag-size-small-font-size: calc(var(--ypmini-hd) * 12px);
|
|
7
|
+
--ypmini-tag-default-background-color: #f5f7fc;
|
|
8
|
+
--ypmini-tag-primary-background-color: var(--ypmini-primary-secondary-color);
|
|
9
|
+
--ypmini-tag-success-background-color: #dff2ec;
|
|
10
|
+
--ypmini-tag-warning-background-color: #ffebec;
|
|
11
|
+
--ypmini-tag-default-font-color: rgba(0, 0, 0, 0.65);
|
|
12
|
+
--ypmini-tag-primary-font-color: var(--ypmini-primary-color);
|
|
13
|
+
--ypmini-tag-success-font-color: #06b578;
|
|
14
|
+
--ypmini-tag-warning-font-color: #e8362e;
|
|
15
|
+
--ypmini-tag-default-font-size: calc(var(--ypmini-hd) * 12px);
|
|
16
|
+
--ypmini-tag-small-font-size: calc(var(--ypmini-hd) * 10px);
|
|
17
|
+
}
|
|
18
|
+
.ypmini-tag {
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
height: var(--ypmini-tag-size-default-height);
|
|
23
|
+
padding: 0px 12px;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
border-radius: 8px;
|
|
26
|
+
font-size: var(--ypmini-tag-size-default-font-size);
|
|
27
|
+
}
|
|
28
|
+
.ypmini-tag-size-default {
|
|
29
|
+
padding: 0px 12px;
|
|
30
|
+
font-size: var(--ypmini-tag-size-default-font-size);
|
|
31
|
+
height: var(--ypmini-tag-size-default-height);
|
|
32
|
+
}
|
|
33
|
+
.ypmini-tag-size-small {
|
|
34
|
+
padding: 0px 8px;
|
|
35
|
+
font-size: var(--ypmini-tag-size-small-font-size);
|
|
36
|
+
height: var(--ypmini-tag-size-small-height);
|
|
37
|
+
}
|
|
38
|
+
.ypmini-tag-outlined {
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
}
|
|
41
|
+
.ypmini-tag-default {
|
|
42
|
+
background: var(--ypmini-tag-default-background-color);
|
|
43
|
+
color: var(--ypmini-tag-default-font-color);
|
|
44
|
+
}
|
|
45
|
+
.ypmini-tag-default--outlined {
|
|
46
|
+
--ypmini-tag-default-outlined-border-color: var(--ypmini-tag-default-font-color);
|
|
47
|
+
border: 1px solid var(--ypmini-tag-default-outlined-border-color);
|
|
48
|
+
}
|
|
49
|
+
.ypmini-tag-default--solid {
|
|
50
|
+
border: unset;
|
|
51
|
+
background: var(--ypmini-tag-default-background-color);
|
|
52
|
+
color: var(--ypmini-tag-default-font-color);
|
|
53
|
+
}
|
|
54
|
+
.ypmini-tag-primary {
|
|
55
|
+
background: var(--ypmini-tag-primary-background-color);
|
|
56
|
+
color: var(--ypmini-tag-primary-font-color);
|
|
57
|
+
}
|
|
58
|
+
.ypmini-tag-primary--outlined {
|
|
59
|
+
--ypmini-tag-primary-outlined-border-color: var(--ypmini-tag-primary-font-color);
|
|
60
|
+
border: 1px solid var(--ypmini-tag-primary-outlined-border-color);
|
|
61
|
+
}
|
|
62
|
+
.ypmini-tag-primary--solid {
|
|
63
|
+
border: unset;
|
|
64
|
+
background: var(--ypmini-tag-primary-background-color);
|
|
65
|
+
color: var(--ypmini-tag-primary-font-color);
|
|
66
|
+
}
|
|
67
|
+
.ypmini-tag-warning {
|
|
68
|
+
background: var(--ypmini-tag-warning-background-color);
|
|
69
|
+
color: var(--ypmini-tag-warning-font-color);
|
|
70
|
+
}
|
|
71
|
+
.ypmini-tag-warning--outlined {
|
|
72
|
+
--ypmini-tag-warning-outlined-border-color: var(--ypmini-tag-warning-font-color);
|
|
73
|
+
border: 1px solid var(--ypmini-tag-warning-outlined-border-color);
|
|
74
|
+
}
|
|
75
|
+
.ypmini-tag-warning--solid {
|
|
76
|
+
border: unset;
|
|
77
|
+
background: var(--ypmini-tag-warning-background-color);
|
|
78
|
+
color: var(--ypmini-tag-warning-font-color);
|
|
79
|
+
}
|
|
80
|
+
.ypmini-tag-success {
|
|
81
|
+
background: var(--ypmini-tag-success-background-color);
|
|
82
|
+
color: var(--ypmini-tag-success-font-color);
|
|
83
|
+
}
|
|
84
|
+
.ypmini-tag-success--outlined {
|
|
85
|
+
--ypmini-tag-success-outlined-border-color: var(--ypmini-tag-success-font-color);
|
|
86
|
+
border: 1px solid var(--ypmini-tag-success-outlined-border-color);
|
|
87
|
+
}
|
|
88
|
+
.ypmini-tag-success--solid {
|
|
89
|
+
border: unset;
|
|
90
|
+
background: var(--ypmini-tag-success-background-color);
|
|
91
|
+
color: var(--ypmini-tag-success-font-color);
|
|
92
|
+
}
|
package/es/global/global.css
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
page {
|
|
3
3
|
--ypmini-hd: 2;
|
|
4
4
|
--ypmini-primary-color: #0092ff;
|
|
5
|
+
--ypmini-primary-secondary-color: #e0f3ff;
|
|
5
6
|
--ypmini-color-text: rgba(0, 0, 0, 0.85);
|
|
6
7
|
--ypmini-color-text-light: var(--ypmini-primary-color);
|
|
7
8
|
--ypmini-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
@@ -15,4 +16,6 @@ page {
|
|
|
15
16
|
--ypmini-font-size-large: calc(17px * var(--ypmini-hd));
|
|
16
17
|
--ypmini-font-size-default: calc(15px * var(--ypmini-hd));
|
|
17
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);
|
|
18
21
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
page {
|
|
3
3
|
--ypmini-hd: 2;
|
|
4
4
|
--ypmini-primary-color: #0092ff;
|
|
5
|
+
--ypmini-primary-secondary-color: #e0f3ff;
|
|
5
6
|
--ypmini-color-text: rgba(0, 0, 0, 0.85);
|
|
6
7
|
--ypmini-color-text-light: var(--ypmini-primary-color);
|
|
7
8
|
--ypmini-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
@@ -15,4 +16,6 @@ page {
|
|
|
15
16
|
--ypmini-font-size-large: calc(17px * var(--ypmini-hd));
|
|
16
17
|
--ypmini-font-size-default: calc(15px * var(--ypmini-hd));
|
|
17
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);
|
|
18
21
|
}
|
package/es/index.d.ts
CHANGED
|
@@ -10,3 +10,23 @@ export { default as DatePickerView } from './components/date-picker-view';
|
|
|
10
10
|
export { default as Switch } from './components/switch';
|
|
11
11
|
export { default as Popup } from './components/popup';
|
|
12
12
|
export { default as SafeArea } from './components/safe-area';
|
|
13
|
+
export { default as MediaUploader } from './components/media-uploader';
|
|
14
|
+
export { default as Dialog } from './components/dialog';
|
|
15
|
+
export { default as CitySelector } from './components/city-selector';
|
|
16
|
+
export { default as Tag } from './components/tag';
|
|
17
|
+
export { default as Avatar } from './components/avatar';
|
|
18
|
+
export type * from './components/media-uploader';
|
|
19
|
+
export type * from './components/dialog';
|
|
20
|
+
export type * from './components/button';
|
|
21
|
+
export type * from './components/popup';
|
|
22
|
+
export type * from './components/date-picker-view';
|
|
23
|
+
export type * from './components/picker-view';
|
|
24
|
+
export type * from './components/form';
|
|
25
|
+
export type * from './components/radio';
|
|
26
|
+
export type * from './components/input';
|
|
27
|
+
export type * from './components/checkbox';
|
|
28
|
+
export type * from './components/icon';
|
|
29
|
+
export type * from './components/switch';
|
|
30
|
+
export type * from './components/city-selector';
|
|
31
|
+
export type * from './components/tag';
|
|
32
|
+
export type * from './components/avatar';
|
package/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{default as Button}from"./components/button/index.js";export{default as Checkbox}from"./components/checkbox/index.js";export{default as Input}from"./components/input/index.js";export{default as Radio}from"./components/radio/index.js";export{default as Form}from"./components/form/index.js";import"./components/toast/index.js";export{default as Icon}from"./components/icon/index.js";export{default as PickerView}from"./components/picker-view/index.js";export{default as DatePickerView}from"./components/date-picker-view/index.js";export{default as Switch}from"./components/switch/index.js";export{default as Popup}from"./components/popup/index.js";export{default as SafeArea}from"./components/safe-area/index.js";export{default as Toast}from"./components/toast/toast.js";
|
|
1
|
+
export{default as Button}from"./components/button/index.js";export{default as Checkbox}from"./components/checkbox/index.js";export{default as Input}from"./components/input/index.js";export{default as Radio}from"./components/radio/index.js";export{default as Form}from"./components/form/index.js";import"./components/toast/index.js";export{default as Icon}from"./components/icon/index.js";export{default as PickerView}from"./components/picker-view/index.js";export{default as DatePickerView}from"./components/date-picker-view/index.js";export{default as Switch}from"./components/switch/index.js";export{default as Popup}from"./components/popup/index.js";export{default as SafeArea}from"./components/safe-area/index.js";export{default as MediaUploader}from"./components/media-uploader/index.js";export{default as Dialog}from"./components/dialog/index.js";export{default as CitySelector}from"./components/city-selector/index.js";export{default as Tag}from"./components/tag/index.js";export{default as Avatar}from"./components/avatar/index.js";export{default as Toast}from"./components/toast/toast.js";
|
package/es/style/iconfont.ttf
CHANGED
|
Binary file
|
package/es/style/iconfont.woff
CHANGED
|
Binary file
|
package/es/style/iconfont.woff2
CHANGED
|
Binary file
|
package/es/style/index.css
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
page {
|
|
3
3
|
--ypmini-hd: 2;
|
|
4
4
|
--ypmini-primary-color: #0092ff;
|
|
5
|
+
--ypmini-primary-secondary-color: #e0f3ff;
|
|
5
6
|
--ypmini-color-text: rgba(0, 0, 0, 0.85);
|
|
6
7
|
--ypmini-color-text-light: var(--ypmini-primary-color);
|
|
7
8
|
--ypmini-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
@@ -15,51 +16,54 @@ page {
|
|
|
15
16
|
--ypmini-font-size-large: calc(17px * var(--ypmini-hd));
|
|
16
17
|
--ypmini-font-size-default: calc(15px * var(--ypmini-hd));
|
|
17
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);
|
|
18
21
|
}
|
|
19
22
|
:root,
|
|
20
23
|
page {
|
|
21
|
-
--border-radius: calc(8px * var(--ypmini-hd));
|
|
22
|
-
--button-height-large: calc(48px * var(--ypmini-hd));
|
|
23
|
-
--button-height-default: calc(44px * var(--ypmini-hd));
|
|
24
|
-
--button-height-middle: calc(40px * var(--ypmini-hd));
|
|
25
|
-
--button-height-small: calc(32px * var(--ypmini-hd));
|
|
26
|
-
--button-font-size-samll: calc(14px * var(--ypmini-hd));
|
|
27
|
-
--button-font-size-moddle: calc(15px * var(--ypmini-hd));
|
|
28
|
-
--button-font-size-default: calc(17px * var(--ypmini-hd));
|
|
29
|
-
--button-font-size-large: calc(17px * var(--ypmini-hd));
|
|
30
|
-
--default-button-background: #f5f7fc;
|
|
31
|
-
--default-button-text-color: rgba(0, 0, 0, 0.65);
|
|
32
|
-
--
|
|
33
|
-
--primary-button-
|
|
34
|
-
--primary-button-
|
|
35
|
-
--primary-button-
|
|
36
|
-
--
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
--
|
|
40
|
-
--
|
|
41
|
-
--
|
|
42
|
-
--
|
|
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);
|
|
43
50
|
}
|
|
44
51
|
.ypmini-taro-button {
|
|
45
52
|
padding: 0 24px;
|
|
46
53
|
border: unset;
|
|
47
54
|
font-weight: bold;
|
|
48
|
-
font-size: var(--button-font-size-default);
|
|
55
|
+
font-size: var(--ypmini-button-font-size-default);
|
|
49
56
|
width: auto;
|
|
50
|
-
height: var(--button-height-default);
|
|
51
|
-
line-height: var(--button-height-default);
|
|
57
|
+
height: var(--ypmini-button-height-default);
|
|
58
|
+
line-height: var(--ypmini-button-height-default);
|
|
52
59
|
color: var(--ypmini-color-text);
|
|
53
|
-
border-radius: var(--border-radius);
|
|
60
|
+
border-radius: var(--ypmini-border-radius);
|
|
54
61
|
display: inline-block;
|
|
55
62
|
white-space: nowrap;
|
|
56
63
|
}
|
|
57
64
|
.ypmini-taro-button:after {
|
|
58
65
|
display: none;
|
|
59
66
|
}
|
|
60
|
-
.ypmini-taro-button-ghost {
|
|
61
|
-
background: transparent;
|
|
62
|
-
}
|
|
63
67
|
.ypmini-taro-button-shape-default {
|
|
64
68
|
padding: 0 24px;
|
|
65
69
|
}
|
|
@@ -68,87 +72,104 @@ page {
|
|
|
68
72
|
border-radius: 1998px;
|
|
69
73
|
}
|
|
70
74
|
.ypmini-taro-button-size-large {
|
|
71
|
-
height: var(--button-height-large);
|
|
72
|
-
line-height: var(--button-height-large);
|
|
75
|
+
height: var(--ypmini-button-height-large);
|
|
76
|
+
line-height: var(--ypmini-button-height-large);
|
|
73
77
|
font-weight: bold;
|
|
74
|
-
font-size: var(--button-font-size-large);
|
|
78
|
+
font-size: var(--ypmini-button-font-size-large);
|
|
75
79
|
}
|
|
76
80
|
.ypmini-taro-button-size-middle {
|
|
77
81
|
font-weight: 400;
|
|
78
|
-
font-size: var(--button-font-size-middle);
|
|
79
|
-
height: var(--button-height-middle);
|
|
80
|
-
line-height: var(--button-height-middle);
|
|
82
|
+
font-size: var(--ypmini-button-font-size-middle);
|
|
83
|
+
height: var(--ypmini-button-height-middle);
|
|
84
|
+
line-height: var(--ypmini-button-height-middle);
|
|
81
85
|
}
|
|
82
86
|
.ypmini-taro-button-size-default {
|
|
83
|
-
height: var(--button-height-default);
|
|
84
|
-
line-height: var(--button-height-default);
|
|
87
|
+
height: var(--ypmini-button-height-default);
|
|
88
|
+
line-height: var(--ypmini-button-height-default);
|
|
85
89
|
}
|
|
86
90
|
.ypmini-taro-button-size-small {
|
|
87
91
|
font-weight: 400;
|
|
88
|
-
font-size: var(--button-font-size-middle);
|
|
89
|
-
height: var(--button-height-small);
|
|
90
|
-
line-height: var(--button-height-small);
|
|
92
|
+
font-size: var(--ypmini-button-font-size-middle);
|
|
93
|
+
height: var(--ypmini-button-height-small);
|
|
94
|
+
line-height: var(--ypmini-button-height-small);
|
|
91
95
|
}
|
|
92
96
|
.ypmini-taro-button-warning {
|
|
93
|
-
background: var(--warning-button-background);
|
|
94
|
-
color: var(--warning-button-text-color);
|
|
97
|
+
background: var(--ypmini-warning-button-background);
|
|
98
|
+
color: var(--ypmini-warning-button-text-color);
|
|
95
99
|
}
|
|
96
100
|
.ypmini-taro-button-warning.ypmini-taro-button-warning-disabled {
|
|
97
101
|
opacity: 0.6;
|
|
98
102
|
}
|
|
99
103
|
.ypmini-taro-button-warning.ypmini-taro-button-warning-disabled.ypmini-taro-button-warning.ypmini-taro-button-warning-disabled[disabled] {
|
|
100
|
-
color: var(--warning-button-text-color);
|
|
104
|
+
color: var(--ypmini-warning-button-text-color);
|
|
101
105
|
}
|
|
102
106
|
.ypmini-taro-button-warning.ypmini-taro-button-outlined {
|
|
103
|
-
border: 2px solid
|
|
104
|
-
color:
|
|
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 {
|
|
105
112
|
background: transparent;
|
|
113
|
+
color: var(--ypmini-warning-button-ghost-color);
|
|
106
114
|
}
|
|
107
115
|
.ypmini-taro-button-primary {
|
|
108
|
-
background: var(--primary-button-background);
|
|
109
|
-
color: var(--primary-button-text-color);
|
|
116
|
+
background: var(--ypmini-primary-button-background);
|
|
117
|
+
color: var(--ypmini-primary-button-text-color);
|
|
110
118
|
}
|
|
111
119
|
.ypmini-taro-button-primary.ypmini-taro-button-primary-disabled {
|
|
112
|
-
color: var(--primary-button-disabled-text-color);
|
|
113
|
-
background: var(--primary-button-disabled-background);
|
|
120
|
+
color: var(--ypmini-primary-button-disabled-text-color);
|
|
121
|
+
background: var(--ypmini-primary-button-disabled-background);
|
|
114
122
|
}
|
|
115
123
|
.ypmini-taro-button-primary.ypmini-taro-button-outlined {
|
|
116
|
-
border: 2px solid var(--primary-button-outlined-color);
|
|
117
|
-
color: var(--primary-button-outlined-color);
|
|
124
|
+
border: 2px solid var(--ypmini-primary-button-outlined-color);
|
|
125
|
+
color: var(--ypmini-primary-button-outlined-color);
|
|
118
126
|
background: transparent;
|
|
119
127
|
}
|
|
128
|
+
.ypmini-taro-button-primary.ypmini-taro-button-ghost {
|
|
129
|
+
background: transparent;
|
|
130
|
+
color: var(--ypmini-primary-button-ghost-color);
|
|
131
|
+
}
|
|
120
132
|
.ypmini-taro-button-default {
|
|
121
|
-
background: var(--default-button-background);
|
|
122
|
-
color: var(--default-button-text-color);
|
|
133
|
+
background: var(--ypmini-default-button-background);
|
|
134
|
+
color: var(--ypmini-default-button-text-color);
|
|
123
135
|
}
|
|
124
136
|
.ypmini-taro-button-default.ypmini-taro-button-default-disabled {
|
|
125
137
|
opacity: 0.6;
|
|
126
138
|
}
|
|
127
139
|
.ypmini-taro-button-default.ypmini-taro-button-default-disabled.ypmini-taro-button-default.ypmini-taro-button-default-disabled[disabled] {
|
|
128
|
-
color: var(--default-button-text-color);
|
|
140
|
+
color: var(--ypmini-default-button-text-color);
|
|
129
141
|
}
|
|
130
142
|
.ypmini-taro-button-default.ypmini-taro-button-outlined {
|
|
131
|
-
border: 2px solid var(--default-button-outlined-color);
|
|
132
|
-
color: var(--default-button-outlined-color);
|
|
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 {
|
|
133
148
|
background: transparent;
|
|
149
|
+
color: var(--ypmini-default-button-ghost-color);
|
|
134
150
|
}
|
|
135
151
|
.ypmini-taro-button-secondary {
|
|
136
|
-
background: var(--secondary-button-background);
|
|
137
|
-
color: var(--secondary-button-text-color);
|
|
152
|
+
background: var(--ypmini-secondary-button-background);
|
|
153
|
+
color: var(--ypmini-secondary-button-text-color);
|
|
138
154
|
}
|
|
139
155
|
.ypmini-taro-button-secondary.ypmini-taro-button-secondary-disabled {
|
|
140
156
|
opacity: 0.6;
|
|
141
157
|
}
|
|
142
158
|
.ypmini-taro-button-secondary.ypmini-taro-button-secondary-disabled.ypmini-taro-button-secondary.ypmini-taro-button-secondary-disabled[disabled] {
|
|
143
|
-
color: var(--secondary-button-text-color);
|
|
159
|
+
color: var(--ypmini-secondary-button-text-color);
|
|
144
160
|
}
|
|
145
161
|
.ypmini-taro-button-secondary.ypmini-taro-button-outlined {
|
|
146
|
-
border: 2px solid var(--secondary-button-background);
|
|
147
|
-
color: var(--secondary-button-background);
|
|
162
|
+
border: 2px solid var(--ypmini-secondary-button-background);
|
|
163
|
+
color: var(--ypmini-secondary-button-background);
|
|
148
164
|
background: transparent;
|
|
149
165
|
}
|
|
166
|
+
.ypmini-taro-button-secondary.ypmini-taro-button-ghost {
|
|
167
|
+
background: transparent;
|
|
168
|
+
color: var(--ypmini-secondary-button-ghost-color);
|
|
169
|
+
}
|
|
150
170
|
.ypmini-taro-button-block {
|
|
151
171
|
display: block;
|
|
172
|
+
width: 100%;
|
|
152
173
|
}
|
|
153
174
|
.ypmini-taro-button-icon-wrapper {
|
|
154
175
|
display: flex;
|
|
@@ -245,7 +266,7 @@ page {
|
|
|
245
266
|
@font-face {
|
|
246
267
|
font-family: "iconfont";
|
|
247
268
|
/* Project id 5088009 */
|
|
248
|
-
src: url('iconfont.woff2?t=
|
|
269
|
+
src: url('iconfont.woff2?t=1767782477263') format('woff2'), url('iconfont.woff?t=1767782477263') format('woff'), url('iconfont.ttf?t=1767782477263') format('truetype');
|
|
249
270
|
}
|
|
250
271
|
.iconfont {
|
|
251
272
|
font-family: "iconfont" !important;
|
|
@@ -254,6 +275,18 @@ page {
|
|
|
254
275
|
-webkit-font-smoothing: antialiased;
|
|
255
276
|
-moz-osx-font-smoothing: grayscale;
|
|
256
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
|
+
}
|
|
257
290
|
.icon-telephone_icon:before {
|
|
258
291
|
content: "\e60f";
|
|
259
292
|
}
|
|
@@ -304,47 +337,47 @@ page {
|
|
|
304
337
|
}
|
|
305
338
|
:root,
|
|
306
339
|
page {
|
|
307
|
-
--input-placeholder-color:
|
|
308
|
-
--input-text-color: var(--ypmini-color-text);
|
|
309
|
-
--input-font-size: var(--ypmini-font-size-default);
|
|
310
|
-
--input-delete-cion-color: #00000040;
|
|
311
|
-
--input-delete-cion-size: calc(var(--ypmini-hd) * 16px);
|
|
312
|
-
--input-height: calc(48px * var(--ypmini-hd));
|
|
313
|
-
--input-prefix-icon-size: calc(16px * var(--ypmini-hd));
|
|
314
|
-
--input-border-color: var(--ypmini-border-color);
|
|
315
|
-
--input-prefix-icon-color: #000000a6;
|
|
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;
|
|
316
349
|
}
|
|
317
350
|
.ypmini-taro-input-wrapper {
|
|
318
351
|
display: flex;
|
|
319
352
|
align-items: center;
|
|
320
|
-
height: var(--input-height);
|
|
321
|
-
font-size: var(--input-font-size);
|
|
353
|
+
height: var(--ypmini-input-height);
|
|
354
|
+
font-size: var(--ypmini-input-font-size);
|
|
322
355
|
padding: 0px 24px;
|
|
323
356
|
border-radius: 16px;
|
|
324
|
-
border: 2px solid var(--input-border-color);
|
|
357
|
+
border: 2px solid var(--ypmini-input-border-color);
|
|
325
358
|
box-sizing: border-box;
|
|
326
359
|
}
|
|
327
360
|
.ypmini-taro-input-borderless-wrapper {
|
|
328
361
|
border: unset;
|
|
329
362
|
}
|
|
330
363
|
.ypmini-taro-input {
|
|
331
|
-
color: var(--input-text-color);
|
|
364
|
+
color: var(--ypmini-input-text-color);
|
|
332
365
|
flex: 1;
|
|
333
366
|
border: none;
|
|
334
367
|
}
|
|
335
368
|
.ypmini-taro-input input::placeholder {
|
|
336
|
-
color: var(--input-placeholder-color);
|
|
369
|
+
color: var(--ypmini-input-placeholder-color);
|
|
337
370
|
}
|
|
338
371
|
.ypmini-input-placeholder {
|
|
339
|
-
color: var(--input-placeholder-color);
|
|
372
|
+
color: var(--ypmini-input-placeholder-color);
|
|
340
373
|
}
|
|
341
374
|
.ypmini-taro-input-clear {
|
|
342
375
|
display: flex;
|
|
343
376
|
align-items: center;
|
|
344
377
|
}
|
|
345
378
|
.ypmini-taro-input-clear-icon {
|
|
346
|
-
color: var(--input-delete-cion-color);
|
|
347
|
-
font-size: var(--input-delete-cion-size);
|
|
379
|
+
color: var(--ypmini-input-delete-cion-color);
|
|
380
|
+
font-size: var(--ypmini-input-delete-cion-size);
|
|
348
381
|
}
|
|
349
382
|
.ypmini-taro-input-count {
|
|
350
383
|
color: rgba(0, 0, 0, 0.45);
|
|
@@ -359,9 +392,9 @@ page {
|
|
|
359
392
|
.ypmini-taro-input-prefix-icon-wrapper {
|
|
360
393
|
display: flex;
|
|
361
394
|
align-items: center;
|
|
362
|
-
font-size: var(--input-prefix-icon-size);
|
|
395
|
+
font-size: var(--ypmini-input-prefix-icon-size);
|
|
363
396
|
margin-right: 16px;
|
|
364
|
-
color: var(--input-prefix-icon-color);
|
|
397
|
+
color: var(--ypmini-input-prefix-icon-color);
|
|
365
398
|
}
|
|
366
399
|
:root,
|
|
367
400
|
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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yup/taro-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "鱼泡 Taro UI组件库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "es/index.js",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@tarojs/react": "3.6.37",
|
|
67
67
|
"@tarojs/runtime": "3.6.37",
|
|
68
68
|
"@tarojs/taro": "3.6.37",
|
|
69
|
-
"@tarojs/taro-h5": "
|
|
69
|
+
"@tarojs/taro-h5": "^4.1.9",
|
|
70
70
|
"@types/minimatch": "5.1.2",
|
|
71
71
|
"@types/node-sass": "^4.11.8",
|
|
72
72
|
"@yangzw/bruce-std": "^1.3.6",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"less-plugin-autoprefix": "^2.0.0",
|
|
101
101
|
"lint-staged": "^13.0.3",
|
|
102
102
|
"prettier": "^2.7.1",
|
|
103
|
+
"react-dom": "18.2.0",
|
|
103
104
|
"rimraf": "^6.1.0",
|
|
104
105
|
"rollup-plugin-copy": "^3.5.0",
|
|
105
106
|
"rollup-plugin-ignore": "^1.0.10",
|
|
@@ -114,7 +115,8 @@
|
|
|
114
115
|
"stylelint-webpack-plugin": "^5.0.1",
|
|
115
116
|
"tslib": "^2.6.3",
|
|
116
117
|
"typescript": "^5.5.4",
|
|
117
|
-
"typescript-eslint": "^8.2.0"
|
|
118
|
+
"typescript-eslint": "^8.2.0",
|
|
119
|
+
"webpack": "^5.104.1"
|
|
118
120
|
},
|
|
119
121
|
"peerDependencies": {
|
|
120
122
|
"@tarojs/components": "3.6.37",
|