@yup/taro-ui 0.0.7 → 0.1.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 +52 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/es/components/button/index.d.ts +24 -5
- package/es/components/button/index.js +1 -1
- package/es/components/button/style/index.css +85 -31
- 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.d.ts +1 -1
- package/es/components/checkbox/index.js +1 -1
- package/es/components/checkbox/style/index.css +2 -26
- package/es/components/checkbox/style/index.d.ts +1 -0
- package/es/components/checkbox/style/index.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/form/form-item.d.ts +1 -1
- 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 -24
- 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 +60 -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 +14 -2
- package/es/components/input/index.js +1 -1
- package/es/components/input/style/index.css +35 -29
- 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/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.d.ts +1 -1
- package/es/components/radio/index.js +1 -1
- package/es/components/radio/radio-group.d.ts +1 -1
- package/es/components/radio/radio-group.js +1 -1
- package/es/components/radio/style/group.css +5 -25
- 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 +13 -28
- 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/toast/style/index.css +0 -24
- package/es/components/toast/style/index.d.ts +1 -0
- package/es/components/toast/style/index.js +1 -0
- package/es/components/toast/toast.d.ts +9 -0
- package/es/components/toast/toast.js +1 -1
- package/es/components/toast/withToast.js +1 -1
- package/es/global/global.css +18 -0
- package/es/global/index.d.ts +2 -1
- package/es/global/theme-default.css +18 -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 +6 -1
- 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 +463 -0
- package/package.json +13 -7
- 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 -24
- 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
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page {
|
|
3
|
+
--ypmini-hd: 2;
|
|
4
|
+
--ypmini-primary-color: #0092ff;
|
|
5
|
+
--ypmini-color-text: rgba(0, 0, 0, 0.85);
|
|
6
|
+
--ypmini-color-text-light: var(--ypmini-primary-color);
|
|
7
|
+
--ypmini-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
8
|
+
--ypmini-color-text-primary: #333;
|
|
9
|
+
--ypmini-color-text-link: var(--ypmini-primary-color);
|
|
10
|
+
--ypmini-color-text-secondary: #666;
|
|
11
|
+
--ypmini-color-text-disabled: #ccc;
|
|
12
|
+
--ypmini-color-text-placeholder: #00000040;
|
|
13
|
+
--ypmini-border-color: #e9edf3;
|
|
14
|
+
--ypmini-font-size-max: calc(19px * var(--ypmini-hd));
|
|
15
|
+
--ypmini-font-size-large: calc(17px * var(--ypmini-hd));
|
|
16
|
+
--ypmini-font-size-default: calc(15px * var(--ypmini-hd));
|
|
17
|
+
--ypmini-font-size-middle: calc(14px * var(--ypmini-hd));
|
|
18
|
+
}
|
|
19
|
+
:root,
|
|
20
|
+
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
|
+
--primary-button-background: var(--ypmini-primary-color);
|
|
33
|
+
--primary-button-disabled-background: #99d3ff;
|
|
34
|
+
--primary-button-disabled-text-color: rgba(255, 255, 255, 0.45);
|
|
35
|
+
--primary-button-text-color: #fff;
|
|
36
|
+
--secondary-button-background: #00cbff;
|
|
37
|
+
--secondary-button-text-color: #ffffff;
|
|
38
|
+
--warning-button-background: #FF5A57;
|
|
39
|
+
--warning-button-text-color: #ffffff;
|
|
40
|
+
--warning-button-outlined-color: #E8362E;
|
|
41
|
+
--primary-button-outlined-color: var(--ypmini-primary-color);
|
|
42
|
+
--default-button-outlined-color: rgba(0, 0, 0, 0.65);
|
|
43
|
+
}
|
|
44
|
+
.ypmini-taro-button {
|
|
45
|
+
padding: 0 24px;
|
|
46
|
+
border: unset;
|
|
47
|
+
font-weight: bold;
|
|
48
|
+
font-size: var(--button-font-size-default);
|
|
49
|
+
width: auto;
|
|
50
|
+
height: var(--button-height-default);
|
|
51
|
+
line-height: var(--button-height-default);
|
|
52
|
+
color: var(--ypmini-color-text);
|
|
53
|
+
border-radius: var(--border-radius);
|
|
54
|
+
display: inline-block;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
57
|
+
.ypmini-taro-button:after {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
.ypmini-taro-button-ghost {
|
|
61
|
+
background: transparent;
|
|
62
|
+
}
|
|
63
|
+
.ypmini-taro-button-shape-default {
|
|
64
|
+
padding: 0 24px;
|
|
65
|
+
}
|
|
66
|
+
.ypmini-taro-button-shape-round {
|
|
67
|
+
padding: 0px 24px;
|
|
68
|
+
border-radius: 1998px;
|
|
69
|
+
}
|
|
70
|
+
.ypmini-taro-button-size-large {
|
|
71
|
+
height: var(--button-height-large);
|
|
72
|
+
line-height: var(--button-height-large);
|
|
73
|
+
font-weight: bold;
|
|
74
|
+
font-size: var(--button-font-size-large);
|
|
75
|
+
}
|
|
76
|
+
.ypmini-taro-button-size-middle {
|
|
77
|
+
font-weight: 400;
|
|
78
|
+
font-size: var(--button-font-size-middle);
|
|
79
|
+
height: var(--button-height-middle);
|
|
80
|
+
line-height: var(--button-height-middle);
|
|
81
|
+
}
|
|
82
|
+
.ypmini-taro-button-size-default {
|
|
83
|
+
height: var(--button-height-default);
|
|
84
|
+
line-height: var(--button-height-default);
|
|
85
|
+
}
|
|
86
|
+
.ypmini-taro-button-size-small {
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
font-size: var(--button-font-size-middle);
|
|
89
|
+
height: var(--button-height-small);
|
|
90
|
+
line-height: var(--button-height-small);
|
|
91
|
+
}
|
|
92
|
+
.ypmini-taro-button-warning {
|
|
93
|
+
background: var(--warning-button-background);
|
|
94
|
+
color: var(--warning-button-text-color);
|
|
95
|
+
}
|
|
96
|
+
.ypmini-taro-button-warning.ypmini-taro-button-warning-disabled {
|
|
97
|
+
opacity: 0.6;
|
|
98
|
+
}
|
|
99
|
+
.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);
|
|
101
|
+
}
|
|
102
|
+
.ypmini-taro-button-warning.ypmini-taro-button-outlined {
|
|
103
|
+
border: 2px solid #E8362E;
|
|
104
|
+
color: #E8362E;
|
|
105
|
+
background: transparent;
|
|
106
|
+
}
|
|
107
|
+
.ypmini-taro-button-primary {
|
|
108
|
+
background: var(--primary-button-background);
|
|
109
|
+
color: var(--primary-button-text-color);
|
|
110
|
+
}
|
|
111
|
+
.ypmini-taro-button-primary.ypmini-taro-button-primary-disabled {
|
|
112
|
+
color: var(--primary-button-disabled-text-color);
|
|
113
|
+
background: var(--primary-button-disabled-background);
|
|
114
|
+
}
|
|
115
|
+
.ypmini-taro-button-primary.ypmini-taro-button-outlined {
|
|
116
|
+
border: 2px solid var(--primary-button-outlined-color);
|
|
117
|
+
color: var(--primary-button-outlined-color);
|
|
118
|
+
background: transparent;
|
|
119
|
+
}
|
|
120
|
+
.ypmini-taro-button-default {
|
|
121
|
+
background: var(--default-button-background);
|
|
122
|
+
color: var(--default-button-text-color);
|
|
123
|
+
}
|
|
124
|
+
.ypmini-taro-button-default.ypmini-taro-button-default-disabled {
|
|
125
|
+
opacity: 0.6;
|
|
126
|
+
}
|
|
127
|
+
.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);
|
|
129
|
+
}
|
|
130
|
+
.ypmini-taro-button-default.ypmini-taro-button-outlined {
|
|
131
|
+
border: 2px solid var(--default-button-outlined-color);
|
|
132
|
+
color: var(--default-button-outlined-color);
|
|
133
|
+
background: transparent;
|
|
134
|
+
}
|
|
135
|
+
.ypmini-taro-button-secondary {
|
|
136
|
+
background: var(--secondary-button-background);
|
|
137
|
+
color: var(--secondary-button-text-color);
|
|
138
|
+
}
|
|
139
|
+
.ypmini-taro-button-secondary.ypmini-taro-button-secondary-disabled {
|
|
140
|
+
opacity: 0.6;
|
|
141
|
+
}
|
|
142
|
+
.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);
|
|
144
|
+
}
|
|
145
|
+
.ypmini-taro-button-secondary.ypmini-taro-button-outlined {
|
|
146
|
+
border: 2px solid var(--secondary-button-background);
|
|
147
|
+
color: var(--secondary-button-background);
|
|
148
|
+
background: transparent;
|
|
149
|
+
}
|
|
150
|
+
.ypmini-taro-button-block {
|
|
151
|
+
display: block;
|
|
152
|
+
}
|
|
153
|
+
.ypmini-taro-button-icon-wrapper {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
}
|
|
157
|
+
.ypmini-taro-button-icon {
|
|
158
|
+
display: flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
margin-right: 8px;
|
|
161
|
+
}
|
|
162
|
+
taro-button-core + taro-button-core {
|
|
163
|
+
margin-top: 0;
|
|
164
|
+
}
|
|
165
|
+
:root,
|
|
166
|
+
page {
|
|
167
|
+
--checkbox-button-font-size: calc(17px * var(--ypmini-hd));
|
|
168
|
+
--checkbox-button-border-radius: calc(8px * var(--ypmini-hd));
|
|
169
|
+
--checkbox-button-background-color: #f5f7fc;
|
|
170
|
+
--checkbox-button-text-color: #000000d9;
|
|
171
|
+
--checkbox-button-checked-background-color: #e0f3ff;
|
|
172
|
+
--checkbox-button-checked-text-color: var(--ypmini-primary-color);
|
|
173
|
+
--checkbox-button-checked-border-color: var(--ypmini-primary-color);
|
|
174
|
+
--checkbox-button-height: calc(52px * var(--ypmini-hd));
|
|
175
|
+
}
|
|
176
|
+
.ypmini-checkbox-button {
|
|
177
|
+
background-color: var(--checkbox-button-background-color);
|
|
178
|
+
color: var(--checkbox-button-text-color);
|
|
179
|
+
font-size: var(--checkbox-button-font-size);
|
|
180
|
+
text-align: center;
|
|
181
|
+
padding: 0px 32px;
|
|
182
|
+
height: var(--checkbox-button-height);
|
|
183
|
+
line-height: var(--checkbox-button-height);
|
|
184
|
+
box-sizing: border-box;
|
|
185
|
+
border-radius: var(--checkbox-button-border-radius);
|
|
186
|
+
}
|
|
187
|
+
.ypmini-checkbox-button-checked {
|
|
188
|
+
background-color: var(--checkbox-button-checked-background-color);
|
|
189
|
+
color: var(--checkbox-button-checked-text-color);
|
|
190
|
+
border-color: var(--checkbox-button-checked-border-color);
|
|
191
|
+
border-width: 2px;
|
|
192
|
+
border-style: solid;
|
|
193
|
+
}
|
|
194
|
+
.ypmini-checkbox-group {
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
flex-wrap: wrap;
|
|
198
|
+
}
|
|
199
|
+
.ypmini-checkbox-group.ypmini-checkbox-group-block {
|
|
200
|
+
display: block;
|
|
201
|
+
margin-top: 0px;
|
|
202
|
+
}
|
|
203
|
+
.ypmini-checkbox-group.ypmini-checkbox-group-block .ypmini-checkbox:not(:first-child) {
|
|
204
|
+
margin-top: 24px;
|
|
205
|
+
margin-left: 0px;
|
|
206
|
+
}
|
|
207
|
+
.ypmini-checkbox-group .ypmini-checkbox:not(:first-child) {
|
|
208
|
+
margin-left: 24px;
|
|
209
|
+
margin-top: 0px;
|
|
210
|
+
}
|
|
211
|
+
:root,
|
|
212
|
+
page {
|
|
213
|
+
--form-item-label-width: calc(60px * var(--ypmini-hd));
|
|
214
|
+
}
|
|
215
|
+
.ypmini-form.ypmini-form-vertical .ypmini-form-item .yp-form-item-label {
|
|
216
|
+
margin-bottom: 24px;
|
|
217
|
+
padding-top: 32px;
|
|
218
|
+
}
|
|
219
|
+
.ypmini-form.ypmini-form-vertical .ypmini-form-item:not(:first-child) {
|
|
220
|
+
margin-top: 32px;
|
|
221
|
+
}
|
|
222
|
+
.ypmini-form.ypmini-form-horizontal .ypmini-form-item {
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
}
|
|
226
|
+
.ypmini-form.ypmini-form-horizontal .ypmini-form-item .yp-form-item-label {
|
|
227
|
+
width: var(--form-item-label-width);
|
|
228
|
+
text-align: left;
|
|
229
|
+
}
|
|
230
|
+
.ypmini-form.ypmini-form-horizontal .ypmini-form-item .yp-form-item-children {
|
|
231
|
+
flex: 1;
|
|
232
|
+
}
|
|
233
|
+
.ypmini-form.ypmini-form-horizontal .ypmini-form-item:not(:first-child) {
|
|
234
|
+
margin-top: 32px;
|
|
235
|
+
}
|
|
236
|
+
.ypmini-form-item-required .yp-form-item-label::before {
|
|
237
|
+
content: '*';
|
|
238
|
+
color: red;
|
|
239
|
+
}
|
|
240
|
+
.ypmini-form-item .yp-form-item-label {
|
|
241
|
+
color: #000000d9;
|
|
242
|
+
font-weight: bold;
|
|
243
|
+
font-size: 38px;
|
|
244
|
+
}
|
|
245
|
+
@font-face {
|
|
246
|
+
font-family: "iconfont";
|
|
247
|
+
/* Project id 5088009 */
|
|
248
|
+
src: url('iconfont.woff2?t=1766462693408') format('woff2'), url('iconfont.woff?t=1766462693408') format('woff'), url('iconfont.ttf?t=1766462693408') format('truetype');
|
|
249
|
+
}
|
|
250
|
+
.iconfont {
|
|
251
|
+
font-family: "iconfont" !important;
|
|
252
|
+
font-size: 16px;
|
|
253
|
+
font-style: normal;
|
|
254
|
+
-webkit-font-smoothing: antialiased;
|
|
255
|
+
-moz-osx-font-smoothing: grayscale;
|
|
256
|
+
}
|
|
257
|
+
.icon-telephone_icon:before {
|
|
258
|
+
content: "\e60f";
|
|
259
|
+
}
|
|
260
|
+
.icon-wechat_icon:before {
|
|
261
|
+
content: "\e610";
|
|
262
|
+
}
|
|
263
|
+
.icon-search_icon:before {
|
|
264
|
+
content: "\e611";
|
|
265
|
+
}
|
|
266
|
+
.icon-edit_icon:before {
|
|
267
|
+
content: "\e60e";
|
|
268
|
+
}
|
|
269
|
+
.icon-add-circle_icon:before {
|
|
270
|
+
content: "\e612";
|
|
271
|
+
}
|
|
272
|
+
.icon-checked-fill_icon:before {
|
|
273
|
+
content: "\e60d";
|
|
274
|
+
}
|
|
275
|
+
.icon-quote-fill_icon:before {
|
|
276
|
+
content: "\e613";
|
|
277
|
+
}
|
|
278
|
+
.icon-vedio_icon:before {
|
|
279
|
+
content: "\e614";
|
|
280
|
+
}
|
|
281
|
+
.icon-delete-fill_icon:before {
|
|
282
|
+
content: "\e615";
|
|
283
|
+
}
|
|
284
|
+
.icon-close_icon:before {
|
|
285
|
+
content: "\e616";
|
|
286
|
+
}
|
|
287
|
+
.icon-time_icon:before {
|
|
288
|
+
content: "\e617";
|
|
289
|
+
}
|
|
290
|
+
.icon-phone_icon:before {
|
|
291
|
+
content: "\e618";
|
|
292
|
+
}
|
|
293
|
+
.icon-arrow-right_icon:before {
|
|
294
|
+
content: "\e619";
|
|
295
|
+
}
|
|
296
|
+
.icon-attention_icon:before {
|
|
297
|
+
content: "\e61a";
|
|
298
|
+
}
|
|
299
|
+
.icon-comment_icon:before {
|
|
300
|
+
content: "\e61b";
|
|
301
|
+
}
|
|
302
|
+
.icon-camera_icon:before {
|
|
303
|
+
content: "\e61c";
|
|
304
|
+
}
|
|
305
|
+
:root,
|
|
306
|
+
page {
|
|
307
|
+
--input-placeholder-color: rgba(0, 0, 0, 0.25);
|
|
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;
|
|
316
|
+
}
|
|
317
|
+
.ypmini-taro-input-wrapper {
|
|
318
|
+
display: flex;
|
|
319
|
+
align-items: center;
|
|
320
|
+
height: var(--input-height);
|
|
321
|
+
font-size: var(--input-font-size);
|
|
322
|
+
padding: 0px 24px;
|
|
323
|
+
border-radius: 16px;
|
|
324
|
+
border: 2px solid var(--input-border-color);
|
|
325
|
+
box-sizing: border-box;
|
|
326
|
+
}
|
|
327
|
+
.ypmini-taro-input-borderless-wrapper {
|
|
328
|
+
border: unset;
|
|
329
|
+
}
|
|
330
|
+
.ypmini-taro-input {
|
|
331
|
+
color: var(--input-text-color);
|
|
332
|
+
flex: 1;
|
|
333
|
+
border: none;
|
|
334
|
+
}
|
|
335
|
+
.ypmini-taro-input input::placeholder {
|
|
336
|
+
color: var(--input-placeholder-color);
|
|
337
|
+
}
|
|
338
|
+
.ypmini-input-placeholder {
|
|
339
|
+
color: var(--input-placeholder-color);
|
|
340
|
+
}
|
|
341
|
+
.ypmini-taro-input-clear {
|
|
342
|
+
display: flex;
|
|
343
|
+
align-items: center;
|
|
344
|
+
}
|
|
345
|
+
.ypmini-taro-input-clear-icon {
|
|
346
|
+
color: var(--input-delete-cion-color);
|
|
347
|
+
font-size: var(--input-delete-cion-size);
|
|
348
|
+
}
|
|
349
|
+
.ypmini-taro-input-count {
|
|
350
|
+
color: rgba(0, 0, 0, 0.45);
|
|
351
|
+
font-size: 30px;
|
|
352
|
+
display: flex;
|
|
353
|
+
align-items: center;
|
|
354
|
+
margin-left: 8px;
|
|
355
|
+
}
|
|
356
|
+
.ypmini-taro-input-count .ypmini-taro-input-count-current-light {
|
|
357
|
+
color: var(--ypmini-color-text-light);
|
|
358
|
+
}
|
|
359
|
+
.ypmini-taro-input-prefix-icon-wrapper {
|
|
360
|
+
display: flex;
|
|
361
|
+
align-items: center;
|
|
362
|
+
font-size: var(--input-prefix-icon-size);
|
|
363
|
+
margin-right: 16px;
|
|
364
|
+
color: var(--input-prefix-icon-color);
|
|
365
|
+
}
|
|
366
|
+
:root,
|
|
367
|
+
page {
|
|
368
|
+
--search-input-backgroud: hsl(223, 54%, 97%);
|
|
369
|
+
--search-input-height: calc(var(--ypmini-hd) * 48px);
|
|
370
|
+
--search-input-font-size: calc(var(--ypmini-hd) * 15px);
|
|
371
|
+
}
|
|
372
|
+
.ypmini-search-input-wrapper {
|
|
373
|
+
padding: 0px 24px;
|
|
374
|
+
border-radius: 16px;
|
|
375
|
+
height: var(--search-input-height);
|
|
376
|
+
display: inline-flex;
|
|
377
|
+
align-items: center;
|
|
378
|
+
font-size: var(--search-input-font-size);
|
|
379
|
+
background: var(--search-input-backgroud);
|
|
380
|
+
}
|
|
381
|
+
.ypmini-search-input {
|
|
382
|
+
font-size: var(--input-font-size);
|
|
383
|
+
}
|
|
384
|
+
.ypmini-search-input-icon {
|
|
385
|
+
font-size: 32px;
|
|
386
|
+
}
|
|
387
|
+
:root,
|
|
388
|
+
page {
|
|
389
|
+
--radio-button-font-size: calc(17px * var(--ypmini-hd));
|
|
390
|
+
--radio-button-border-radius: calc(8px * var(--ypmini-hd));
|
|
391
|
+
--radio-button-background-color: #f5f7fc;
|
|
392
|
+
--radio-button-text-color: #000000d9;
|
|
393
|
+
--radio-button-checked-background-color: #e0f3ff;
|
|
394
|
+
--radio-button-checked-text-color: var(--ypmini-primary-color);
|
|
395
|
+
--radio-button-checked-border-color: var(--ypmini-primary-color);
|
|
396
|
+
--radio-button-height: calc(52px * var(--ypmini-hd));
|
|
397
|
+
--radio-default-size: calc(16px * var(--ypmini-hd));
|
|
398
|
+
}
|
|
399
|
+
.ypmini-taro-radio-default-inner {
|
|
400
|
+
width: var(--radio-default-size);
|
|
401
|
+
height: var(--radio-default-size);
|
|
402
|
+
border-radius: 100%;
|
|
403
|
+
}
|
|
404
|
+
.ypmini-taro-radio-default-inner-checked::before {
|
|
405
|
+
content: "☑️";
|
|
406
|
+
}
|
|
407
|
+
.ypmini-taro-radio-button-inner {
|
|
408
|
+
background-color: var(--radio-button-background-color);
|
|
409
|
+
color: var(--radio-button-text-color);
|
|
410
|
+
font-size: var(--radio-button-font-size);
|
|
411
|
+
text-align: center;
|
|
412
|
+
padding: 0px 32px;
|
|
413
|
+
height: var(--radio-button-height);
|
|
414
|
+
line-height: var(--radio-button-height);
|
|
415
|
+
box-sizing: border-box;
|
|
416
|
+
border-radius: var(--radio-button-border-radius);
|
|
417
|
+
}
|
|
418
|
+
.ypmini-taro-radio-button-inner-checked {
|
|
419
|
+
background-color: var(--radio-button-checked-background-color);
|
|
420
|
+
color: var(--radio-button-checked-text-color);
|
|
421
|
+
border-color: var(--radio-button-checked-border-color);
|
|
422
|
+
border-width: 2px;
|
|
423
|
+
border-style: solid;
|
|
424
|
+
}
|
|
425
|
+
.ypmini-radio-group {
|
|
426
|
+
display: flex;
|
|
427
|
+
width: 100%;
|
|
428
|
+
}
|
|
429
|
+
.ypmini-radio-group-block {
|
|
430
|
+
display: block;
|
|
431
|
+
}
|
|
432
|
+
.ypmini-radio-group-button {
|
|
433
|
+
display: flex;
|
|
434
|
+
}
|
|
435
|
+
.ypmini-radio-group .ypmini-taro-radio-button {
|
|
436
|
+
flex: 1;
|
|
437
|
+
}
|
|
438
|
+
.ypmini-radio-group .ypmini-taro-radio:not(:first-child) {
|
|
439
|
+
margin-left: 24px;
|
|
440
|
+
}
|
|
441
|
+
:root,
|
|
442
|
+
page {
|
|
443
|
+
--toast-z-index: 9999;
|
|
444
|
+
}
|
|
445
|
+
.ypmini-toast-container {
|
|
446
|
+
position: fixed;
|
|
447
|
+
top: 50%;
|
|
448
|
+
left: 50%;
|
|
449
|
+
transform: translate(-50%, -50%);
|
|
450
|
+
background: rgba(0, 0, 0, 0.7);
|
|
451
|
+
color: #fff;
|
|
452
|
+
padding: 24px;
|
|
453
|
+
border-radius: 8px;
|
|
454
|
+
display: flex;
|
|
455
|
+
align-items: center;
|
|
456
|
+
z-index: var(--toast-z-index);
|
|
457
|
+
max-width: 80%;
|
|
458
|
+
height: auto;
|
|
459
|
+
word-break: break-word;
|
|
460
|
+
}
|
|
461
|
+
.ypmini-toast-content {
|
|
462
|
+
font-size: 28px;
|
|
463
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yup/taro-ui",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "鱼泡 Taro UI组件库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "es/index.js",
|
|
@@ -18,8 +18,11 @@
|
|
|
18
18
|
"build:components": "gulp && rollup -c && cpx 'types/**/*' es",
|
|
19
19
|
"preview": "dumi preview",
|
|
20
20
|
"lint": "eslint .",
|
|
21
|
-
"release": "npm run build:components && npm publish",
|
|
22
|
-
"release:patch": "npm version patch &&
|
|
21
|
+
"release": "npm run build:components && standard-version && git push --follow-tags && npm publish",
|
|
22
|
+
"release:patch": "npm run build:components && standard-version --release-as patch && git push --follow-tags && npm publish",
|
|
23
|
+
"release:minor": "npm run build:components && standard-version --release-as minor && git push --follow-tags && npm publish",
|
|
24
|
+
"release:major": "npm run build:components && standard-version --release-as major && git push --follow-tags && npm publish",
|
|
25
|
+
"release:first": "npm run build:components && standard-version --first-release && git push --follow-tags && npm publish"
|
|
23
26
|
},
|
|
24
27
|
"publishConfig": {
|
|
25
28
|
"access": "public",
|
|
@@ -67,6 +70,9 @@
|
|
|
67
70
|
"@types/minimatch": "5.1.2",
|
|
68
71
|
"@types/node-sass": "^4.11.8",
|
|
69
72
|
"@yangzw/bruce-std": "^1.3.6",
|
|
73
|
+
"@yup/taro-checkbox": "^0.17.0",
|
|
74
|
+
"@yup/taro-form": "^0.17.0",
|
|
75
|
+
"@yup/taro-radio": "^0.17.0",
|
|
70
76
|
"babel-loader": "^10.0.0",
|
|
71
77
|
"babel-plugin-import": "^1.13.8",
|
|
72
78
|
"babel-plugin-transform-taroapi": "3.6.37",
|
|
@@ -81,6 +87,7 @@
|
|
|
81
87
|
"eslint-webpack-plugin": "^5.0.2",
|
|
82
88
|
"globals": "^15.9.0",
|
|
83
89
|
"gulp": "^5.0.0",
|
|
90
|
+
"gulp-clean-css": "^4.3.0",
|
|
84
91
|
"gulp-concat": "^2.6.1",
|
|
85
92
|
"gulp-copy": "^4.0.1",
|
|
86
93
|
"gulp-less": "^5.0.0",
|
|
@@ -100,6 +107,7 @@
|
|
|
100
107
|
"rollup-plugin-less": "^1.1.3",
|
|
101
108
|
"rollup-plugin-postcss": "^4.0.2",
|
|
102
109
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
110
|
+
"standard-version": "^9.5.0",
|
|
103
111
|
"stylelint": "^16.8.2",
|
|
104
112
|
"stylelint-config-standard": "^36.0.1",
|
|
105
113
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
@@ -111,14 +119,12 @@
|
|
|
111
119
|
"peerDependencies": {
|
|
112
120
|
"@tarojs/components": "3.6.37",
|
|
113
121
|
"@tarojs/taro": "3.6.37",
|
|
114
|
-
"classnames": "^2.3.2",
|
|
115
122
|
"react": "^18.2.0",
|
|
116
123
|
"react-dom": "^18.2.0"
|
|
117
124
|
},
|
|
118
125
|
"dependencies": {
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"@yup/taro-radio": "^0.9.1"
|
|
126
|
+
"classnames": "^2.3.2",
|
|
127
|
+
"dayjs": "^1.11.19"
|
|
122
128
|
},
|
|
123
129
|
"overrides": {
|
|
124
130
|
"minimatch": "^5.1.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as getDefaultExportFromCjs};
|
package/es/_virtual/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={exports:{}};export{e as __module};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={exports:{}};export{e as __module};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
package/es/global.css
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
:root,
|
|
2
|
-
page {
|
|
3
|
-
--ypmini-hd: 2;
|
|
4
|
-
}
|
|
5
|
-
:root,
|
|
6
|
-
page {
|
|
7
|
-
--yp-color-primary: #0092ff;
|
|
8
|
-
--yp-color-text: rgba(0, 0, 0, 0.85);
|
|
9
|
-
--yp-color-text-light: #0092ff;
|
|
10
|
-
--yp-color-text-weak: rgba(0, 0, 0, 0.45);
|
|
11
|
-
--yp-border-color: #e9edf3;
|
|
12
|
-
--yp-color-text-primary: #333;
|
|
13
|
-
--yp-color-text-link: var(--yp-color-primary);
|
|
14
|
-
--yp-color-text-secondary: #666;
|
|
15
|
-
--yp-color-text-disabled: #ccc;
|
|
16
|
-
--yp-color-text-placeholder: #999;
|
|
17
|
-
--yp-font-size-default: calc(17px * var(--ypmini-hd));
|
|
18
|
-
--yp-radio-circle-checked-color: var(--yp-color-primary);
|
|
19
|
-
--yp-radio-button-checked-color: var(--yp-color-primary);
|
|
20
|
-
--yp-checkbox-circle-checked-color: var(--yp-color-primary);
|
|
21
|
-
--yp-checkbox-button-checked-color: var(--yp-color-primary);
|
|
22
|
-
--yp-border-radius-base: calc(4px * var(--ypmini-hd));
|
|
23
|
-
--yp-space-horizontal-base: calc(12px * var(--ypmini-hd));
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{typeof as r}from"../../_virtual/_rollupPluginBabelHelpers.js";import{getDefaultExportFromCjs as t}from"../../_virtual/_commonjsHelpers.js";import{__module as o}from"../../_virtual/index.js";var e;e=o,function(){var t={}.hasOwnProperty;function o(){for(var r="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(r=i(r,n(o)))}return r}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!==r(e))return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var a in e)t.call(e,a)&&e[a]&&(n=i(n,a));return n}function i(r,t){return t?r?r+" "+t:r+t:r}e.exports?(o.default=o,e.exports=o):window.classNames=o}();var n=t(o.exports);export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{typeof as e}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{__exports as r}from"../../../_virtual/react-jsx-runtime.development.js";import t from"react";var n;function o(){return n||(n=1,"production"!==process.env.NODE_ENV&&function(){var n=t,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),g=Symbol.iterator;var b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];!function(e,r,t){var n=b.ReactDebugCurrentFrame,o=n.getStackAddendum();""!==o&&(r+="%s",t=t.concat([o]));var a=t.map(function(e){return String(e)});a.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,a)}("error",e,t)}var _;function k(e){return e.displayName||"Context"}function j(r){if(null==r)return null;if("number"==typeof r.tag&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof r)return r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case i:return"Fragment";case a:return"Portal";case c:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case y:return"SuspenseList"}if("object"===e(r))switch(r.$$typeof){case u:return k(r)+".Consumer";case l:return k(r._context)+".Provider";case f:return function(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return""!==o?t+"("+o+")":t}(r,r.render,"ForwardRef");case d:var t=r.displayName||null;return null!==t?t:j(r.type)||"Memo";case m:var n=r,o=n._payload,v=n._init;try{return j(v(o))}catch(e){return null}}return null}_=Symbol.for("react.module.reference");var w,S,O,R,E,P,T,$=Object.assign,x=0;function C(){}C.__reactDisabledLog=!0;var N,D=b.ReactCurrentDispatcher;function F(e,r,t){if(void 0===N)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return"\n"+N+e}var I,W=!1,L="function"==typeof WeakMap?WeakMap:Map;function A(r,t){if(!r||W)return"";var n,o=I.get(r);if(void 0!==o)return o;W=!0;var a,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=D.current,D.current=null,function(){if(0===x){w=console.log,S=console.info,O=console.warn,R=console.error,E=console.group,P=console.groupCollapsed,T=console.groupEnd;var e={configurable:!0,enumerable:!0,value:C,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}x++}();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":e(Reflect))&&Reflect.construct){try{Reflect.construct(s,[])}catch(e){n=e}Reflect.construct(r,[],s)}else{try{s.call()}catch(e){n=e}r.call(s.prototype)}}else{try{throw Error()}catch(e){n=e}r()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var c=e.stack.split("\n"),l=n.stack.split("\n"),u=c.length-1,f=l.length-1;u>=1&&f>=0&&c[u]!==l[f];)f--;for(;u>=1&&f>=0;u--,f--)if(c[u]!==l[f]){if(1!==u||1!==f)do{if(u--,--f<0||c[u]!==l[f]){var p="\n"+c[u].replace(" at new "," at ");return r.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",r.displayName)),"function"==typeof r&&I.set(r,p),p}}while(u>=1&&f>=0);break}}}finally{W=!1,D.current=a,function(){if(0===--x){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:w}),info:$({},e,{value:S}),warn:$({},e,{value:O}),error:$({},e,{value:R}),group:$({},e,{value:E}),groupCollapsed:$({},e,{value:P}),groupEnd:$({},e,{value:T})})}x<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var y=r?r.displayName||r.name:"",d=y?F(y):"";return"function"==typeof r&&I.set(r,d),d}function U(r,t,n){if(null==r)return"";if("function"==typeof r)return A(r,!(!(o=r.prototype)||!o.isReactComponent));var o;if("string"==typeof r)return F(r);switch(r){case p:return F("Suspense");case y:return F("SuspenseList")}if("object"===e(r))switch(r.$$typeof){case f:return A(r.render,!1);case d:return U(r.type,t,n);case m:var a=r,i=a._payload,s=a._init;try{return U(s(i),t,n)}catch(e){}}return""}I=new L;var z=Object.prototype.hasOwnProperty,M={},Y=b.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Y.setExtraStackFrame(t)}else Y.setExtraStackFrame(null)}var q=Array.isArray;function J(e){return q(e)}function K(e){return""+e}function V(e){if(function(e){try{return K(e),!1}catch(e){return!0}}(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),K(e)}var X,H,G,Q=b.ReactCurrentOwner,Z={key:!0,ref:!0,__self:!0,__source:!0};G={};function ee(e,r,t,n,a){var i,s={},c=null,l=null;for(i in void 0!==t&&(V(t),c=""+t),function(e){if(z.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return void 0!==e.key}(r)&&(V(r.key),c=""+r.key),function(e){if(z.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return void 0!==e.ref}(r)&&(l=r.ref,function(e,r){if("string"==typeof e.ref&&Q.current&&r&&Q.current.stateNode!==r){var t=j(Q.current.type);G[t]||(h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j(Q.current.type),e.ref),G[t]=!0)}}(r,a)),r)z.call(r,i)&&!Z.hasOwnProperty(i)&&(s[i]=r[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===s[i]&&(s[i]=u[i])}if(c||l){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;c&&function(e,r){var t=function(){X||(X=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}(s,f),l&&function(e,r){var t=function(){H||(H=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}(s,f)}return function(e,r,t,n,a,i,s){var c={$$typeof:o,type:e,key:r,ref:t,props:s,_owner:i,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(e,c,l,a,n,Q.current,s)}var re,te=b.ReactCurrentOwner,ne=b.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);ne.setExtraStackFrame(t)}else ne.setExtraStackFrame(null)}function ae(r){return"object"===e(r)&&null!==r&&r.$$typeof===o}function ie(){if(te.current){var e=j(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}re=!1;var se={};function ce(e,r){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var t=function(e){var r=ie();if(!r){var t="string"==typeof e?e:e.displayName||e.name;t&&(r="\n\nCheck the top-level render call using <"+t+">.")}return r}(r);if(!se[t]){se[t]=!0;var n="";e&&e._owner&&e._owner!==te.current&&(n=" It was passed a child from "+j(e._owner.type)+"."),oe(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),oe(null)}}}function le(r,t){if("object"===e(r))if(J(r))for(var n=0;n<r.length;n++){var o=r[n];ae(o)&&ce(o,t)}else if(ae(r))r._store&&(r._store.validated=!0);else if(r){var a=function(r){if(null===r||"object"!==e(r))return null;var t=g&&r[g]||r["@@iterator"];return"function"==typeof t?t:null}(r);if("function"==typeof a&&a!==r.entries)for(var i,s=a.call(r);!(i=s.next()).done;)ae(i.value)&&ce(i.value,t)}}function ue(r){var t,n=r.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!==e(n)||n.$$typeof!==f&&n.$$typeof!==d)return;t=n.propTypes}if(t){var o=j(n);!function(r,t,n,o,a){var i=Function.call.bind(z);for(var s in r)if(i(r,s)){var c=void 0;try{if("function"!=typeof r[s]){var l=Error((o||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+e(r[s])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}c=r[s](t,s,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(B(a),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",n,s,e(c)),B(null)),c instanceof Error&&!(c.message in M)&&(M[c.message]=!0,B(a),h("Failed %s type: %s",n,c.message),B(null))}}(t,r.props,"prop",o,r)}else if(void 0!==n.PropTypes&&!re){re=!0,h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var fe={};function pe(r,t,n,a,g,b){var k=function(r){return"string"==typeof r||"function"==typeof r||r===i||r===c||r===s||r===p||r===y||r===v||"object"===e(r)&&null!==r&&(r.$$typeof===m||r.$$typeof===d||r.$$typeof===l||r.$$typeof===u||r.$$typeof===f||r.$$typeof===_||void 0!==r.getModuleId)}(r);if(!k){var w="";(void 0===r||"object"===e(r)&&null!==r&&0===Object.keys(r).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var S,O=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(g);w+=O||ie(),null===r?S="null":J(r)?S="array":void 0!==r&&r.$$typeof===o?(S="<"+(j(r.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):S=e(r),h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,w)}var R=ee(r,t,n,g,b);if(null==R)return R;if(k){var E=t.children;if(void 0!==E)if(a)if(J(E)){for(var P=0;P<E.length;P++)le(E[P],r);Object.freeze&&Object.freeze(E)}else h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(E,r)}if(z.call(t,"key")){var T=j(r),$=Object.keys(t).filter(function(e){return"key"!==e}),x=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!fe[T+x])h('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',x,T,$.length>0?"{"+$.join(": ..., ")+": ...}":"{}",T),fe[T+x]=!0}return r===i?function(e){for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if("children"!==n&&"key"!==n){oe(e),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),oe(null);break}}null!==e.ref&&(oe(e),h("Invalid attribute `ref` supplied to `React.Fragment`."),oe(null))}(R):ue(R),R}var ye=function(e,r,t){return pe(e,r,t,!1)},de=function(e,r,t){return pe(e,r,t,!0)};r.Fragment=i,r.jsx=ye,r.jsxs=de}()),r}export{o as __require};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{__exports as r}from"../../../_virtual/react-jsx-runtime.production.min.js";import e from"react";
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var t;function o(){if(t)return r;t=1;var o=e,n=Symbol.for("react.element"),_=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(r,e,t){var o,_={},u=null,p=null;for(o in void 0!==t&&(u=""+t),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(p=e.ref),e)f.call(e,o)&&!i.hasOwnProperty(o)&&(_[o]=e[o]);if(r&&r.defaultProps)for(o in e=r.defaultProps)void 0===_[o]&&(_[o]=e[o]);return{$$typeof:n,type:r,key:u,ref:p,props:_,_owner:a.current}}return r.Fragment=_,r.jsx=u,r.jsxs=u,r}export{o as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__module as r}from"../../_virtual/jsx-runtime.js";import{__require as e}from"./cjs/react-jsx-runtime.production.min.js";import{__require as o}from"./cjs/react-jsx-runtime.development.js";"production"===process.env.NODE_ENV?r.exports=e():r.exports=o();var s=r.exports;export{s as j};
|
package/es/utils/react.d.ts
DELETED