@nutui/nutui-react-taro 2.7.10 → 2.7.12-patch.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/CHANGELOG.md +20 -5
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +1 -1
- package/dist/esm/nutui-react.es.js +1 -1
- package/dist/esm/{searchbar.taro-BgwUn_Ma.js → searchbar.taro-B7UhNlBh.js} +22 -16
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +27 -23
- package/dist/nutui.react.umd.js +27 -23
- package/dist/packages/searchbar/searchbar.scss +2 -0
- package/dist/style.css +1 -1
- package/dist/styles/theme-dark.css +71 -0
- package/dist/styles/theme-default.css +91 -0
- package/dist/styles/theme-jmapp.css +186 -0
- package/dist/styles/variables-jmapp.scss +4 -0
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +11 -5
- package/package.json +2 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page {
|
|
3
|
+
--nutui-brand-1: #403635; --nutui-brand-2: #665452; --nutui-brand-3: #99706b; --nutui-brand-4: #cc5f52; --nutui-brand-5: #f2503d; --nutui-brand-6: #fa3725; --nutui-brand-7: #f24130; --nutui-brand-8: #e55446; --nutui-brand-9: #f26e61; --nutui-brand-10: #e5928a;
|
|
4
|
+
--nutui-brand-stop-1: #f54958; --nutui-brand-stop-2: #fa3725;
|
|
5
|
+
--nutui-secondary-1: #1bbf30;
|
|
6
|
+
--nutui-color-primary: var(--nutui-brand-6);
|
|
7
|
+
--nutui-color-primary-stop-1: var(--nutui-brand-stop-1);
|
|
8
|
+
--nutui-color-primary-stop-2: var(--nutui-brand-stop-2);
|
|
9
|
+
--nutui-color-primary-pressed: var(--nutui-brand-7);
|
|
10
|
+
--nutui-color-primary-disabled: var(--nutui-brand-3);
|
|
11
|
+
--nutui-color-primary-text: #ffffff;
|
|
12
|
+
--nutui-color-primary-light: var(--nutui-brand-1);
|
|
13
|
+
--nutui-color-primary-light-pressed: var(--nutui-brand-2);
|
|
14
|
+
--nutui-color-text-link: #040608;
|
|
15
|
+
|
|
16
|
+
--nutui-gray-1: #1f1f1f;
|
|
17
|
+
--nutui-gray-2: #141414;
|
|
18
|
+
--nutui-gray-3: #0a0a0a;
|
|
19
|
+
--nutui-gray-4: #666666;
|
|
20
|
+
--nutui-gray-5: #818181;
|
|
21
|
+
--nutui-gray-6: #999999;
|
|
22
|
+
--nutui-gray-7: #cccccc;
|
|
23
|
+
|
|
24
|
+
--nutui-black-1: rgba(255, 255, 255, 0);
|
|
25
|
+
--nutui-black-2: rgba(255, 255, 255, 0.2);
|
|
26
|
+
--nutui-black-3: rgba(255, 255, 255, 0.06);
|
|
27
|
+
--nutui-black-10: rgba(0, 0, 0, 0.7);
|
|
28
|
+
|
|
29
|
+
--nutui-white-1: rgba(31, 31, 31, 0);
|
|
30
|
+
--nutui-white-7: rgba(31, 31, 31, 0.4);
|
|
31
|
+
--nutui-white-8: rgba(31, 31, 31, 0.5);
|
|
32
|
+
--nutui-white-12: rgba(31, 31, 31, 0.9);
|
|
33
|
+
|
|
34
|
+
--nutui-color-info: #1988fa;
|
|
35
|
+
--nutui-color-text-disabled: var(--nutui-gray-4);
|
|
36
|
+
|
|
37
|
+
--nutui-font-size-1: 10px;
|
|
38
|
+
--nutui-font-size-2: 12px;
|
|
39
|
+
--nutui-font-size-3: 14px;
|
|
40
|
+
--nutui-font-size-4: 16px;
|
|
41
|
+
--nutui-font-size-5: 18px;
|
|
42
|
+
--nutui-font-size-6: 20px;
|
|
43
|
+
--nutui-font-size-7: 22px;
|
|
44
|
+
--nutui-font-size-8: 24px;
|
|
45
|
+
--nutui-font-size-9: 26px;
|
|
46
|
+
--nutui-font-size-10: 28px;
|
|
47
|
+
--nutui-font-weight: 400;
|
|
48
|
+
--nutui-line-height-base: 1.5;
|
|
49
|
+
|
|
50
|
+
--nutui-spacing-1: 2px;
|
|
51
|
+
--nutui-spacing-2: 4px;
|
|
52
|
+
--nutui-spacing-3: 6px;
|
|
53
|
+
--nutui-spacing-4: 8px;
|
|
54
|
+
--nutui-spacing-5: 10px;
|
|
55
|
+
--nutui-spacing-6: 12px;
|
|
56
|
+
--nutui-spacing-7: 14px;
|
|
57
|
+
--nutui-spacing-8: 16px;
|
|
58
|
+
--nutui-spacing-9: 18px;
|
|
59
|
+
--nutui-spacing-10: 20px;
|
|
60
|
+
|
|
61
|
+
--nutui-radius-1: 0px;
|
|
62
|
+
--nutui-radius-2: 2px;
|
|
63
|
+
--nutui-radius-3: 4px;
|
|
64
|
+
--nutui-radius-4: 6px;
|
|
65
|
+
--nutui-radius-5: 8px;
|
|
66
|
+
--nutui-radius-6: 10px;
|
|
67
|
+
--nutui-radius-7: 12px;
|
|
68
|
+
--nutui-radius-8: 14px;
|
|
69
|
+
--nutui-radius-9: 16px;
|
|
70
|
+
--nutui-radius-10: 18px;
|
|
71
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page {
|
|
3
|
+
--nutui-brand-1: #ffeae8; --nutui-brand-2: #fec3be; --nutui-brand-3: #fd9d94; --nutui-brand-4: #fc776b; --nutui-brand-5: #fb5142; --nutui-brand-6: #fa2c19; --nutui-brand-7: #cf1f0f; --nutui-brand-8: #a31508; --nutui-brand-9: #780d03; --nutui-brand-10: #4d0004;
|
|
4
|
+
--nutui-brand-stop-1: #f53d4d; --nutui-brand-stop-2: #fa2c19;
|
|
5
|
+
--nutui-secondary-1: #14cc33;
|
|
6
|
+
--nutui-color-primary: var(--nutui-brand-6);
|
|
7
|
+
--nutui-color-primary-stop-1: var(--nutui-brand-stop-1);
|
|
8
|
+
--nutui-color-primary-stop-2: var(--nutui-brand-stop-2);
|
|
9
|
+
--nutui-color-primary-pressed: var(--nutui-brand-7);
|
|
10
|
+
--nutui-color-primary-disabled: var(--nutui-brand-3);
|
|
11
|
+
--nutui-color-primary-text: #ffffff;
|
|
12
|
+
--nutui-color-primary-light: var(--nutui-brand-1);
|
|
13
|
+
--nutui-color-primary-light-pressed: var(--nutui-brand-2);
|
|
14
|
+
|
|
15
|
+
--nutui-color-text-link: #396acc;
|
|
16
|
+
|
|
17
|
+
--nutui-gray-1: #ffffff;
|
|
18
|
+
--nutui-gray-2: #f8f8f8;
|
|
19
|
+
--nutui-gray-3: #f6f6f6;
|
|
20
|
+
--nutui-gray-4: #bfbfbf;
|
|
21
|
+
--nutui-gray-5: #8c8c8c;
|
|
22
|
+
--nutui-gray-6: #595959;
|
|
23
|
+
--nutui-gray-7: #1a1a1a;
|
|
24
|
+
|
|
25
|
+
--nutui-black-1: rgba(0, 0, 0, 0);
|
|
26
|
+
--nutui-black-2: rgba(0, 0, 0, 0.02);
|
|
27
|
+
--nutui-black-3: rgba(0, 0, 0, 0.06);
|
|
28
|
+
--nutui-black-4: rgba(0, 0, 0, 0.1);
|
|
29
|
+
--nutui-black-5: rgba(0, 0, 0, 0.2);
|
|
30
|
+
--nutui-black-6: rgba(0, 0, 0, 0.3);
|
|
31
|
+
--nutui-black-7: rgba(0, 0, 0, 0.4);
|
|
32
|
+
--nutui-black-8: rgba(0, 0, 0, 0.5);
|
|
33
|
+
--nutui-black-9: rgba(0, 0, 0, 0.6);
|
|
34
|
+
--nutui-black-10: rgba(0, 0, 0, 0.7);
|
|
35
|
+
--nutui-black-11: rgba(0, 0, 0, 0.8);
|
|
36
|
+
--nutui-black-12: rgba(0, 0, 0, 0.9);
|
|
37
|
+
--nutui-black-13: rgba(0, 0, 0, 1);
|
|
38
|
+
|
|
39
|
+
--nutui-white-1: rgba(255, 255, 255, 0);
|
|
40
|
+
--nutui-white-2: rgba(255, 255, 255, 0.02);
|
|
41
|
+
--nutui-white-3: rgba(255, 255, 255, 0.06);
|
|
42
|
+
--nutui-white-4: rgba(255, 255, 255, 0.1);
|
|
43
|
+
--nutui-white-5: rgba(255, 255, 255, 0.2);
|
|
44
|
+
--nutui-white-6: rgba(255, 255, 255, 0.3);
|
|
45
|
+
--nutui-white-7: rgba(255, 255, 255, 0.4);
|
|
46
|
+
--nutui-white-8: rgba(255, 255, 255, 0.5);
|
|
47
|
+
--nutui-white-9: rgba(255, 255, 255, 0.6);
|
|
48
|
+
--nutui-white-10: rgba(255, 255, 255, 0.7);
|
|
49
|
+
--nutui-white-11: rgba(255, 255, 255, 0.8);
|
|
50
|
+
--nutui-white-12: rgba(255, 255, 255, 0.9);
|
|
51
|
+
--nutui-white-13: rgba(255, 255, 255, 1);
|
|
52
|
+
|
|
53
|
+
--nutui-color-info: #1988fa;
|
|
54
|
+
--nutui-color-text-disabled: var(--nutui-gray-4);
|
|
55
|
+
|
|
56
|
+
--nutui-font-size-1: 10px;
|
|
57
|
+
--nutui-font-size-2: 12px;
|
|
58
|
+
--nutui-font-size-3: 14px;
|
|
59
|
+
--nutui-font-size-4: 16px;
|
|
60
|
+
--nutui-font-size-5: 18px;
|
|
61
|
+
--nutui-font-size-6: 20px;
|
|
62
|
+
--nutui-font-size-7: 22px;
|
|
63
|
+
--nutui-font-size-8: 24px;
|
|
64
|
+
--nutui-font-size-9: 26px;
|
|
65
|
+
--nutui-font-size-10: 28px;
|
|
66
|
+
--nutui-font-weight: 400;
|
|
67
|
+
--nutui-font-weight-bold: 500;
|
|
68
|
+
--nutui-line-height-base: 1.5;
|
|
69
|
+
|
|
70
|
+
--nutui-spacing-1: 2px;
|
|
71
|
+
--nutui-spacing-2: 4px;
|
|
72
|
+
--nutui-spacing-3: 6px;
|
|
73
|
+
--nutui-spacing-4: 8px;
|
|
74
|
+
--nutui-spacing-5: 10px;
|
|
75
|
+
--nutui-spacing-6: 12px;
|
|
76
|
+
--nutui-spacing-7: 14px;
|
|
77
|
+
--nutui-spacing-8: 16px;
|
|
78
|
+
--nutui-spacing-9: 18px;
|
|
79
|
+
--nutui-spacing-10: 20px;
|
|
80
|
+
|
|
81
|
+
--nutui-radius-1: 0px;
|
|
82
|
+
--nutui-radius-2: 2px;
|
|
83
|
+
--nutui-radius-3: 4px;
|
|
84
|
+
--nutui-radius-4: 6px;
|
|
85
|
+
--nutui-radius-5: 8px;
|
|
86
|
+
--nutui-radius-6: 10px;
|
|
87
|
+
--nutui-radius-7: 12px;
|
|
88
|
+
--nutui-radius-8: 14px;
|
|
89
|
+
--nutui-radius-9: 16px;
|
|
90
|
+
--nutui-radius-10: 18px;
|
|
91
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page {
|
|
3
|
+
--nutui-brand-1: #edf4ff; --nutui-brand-2: #dce9ff; --nutui-brand-3: #ccdefb; --nutui-brand-4: #a6c8ff; --nutui-brand-5: #82b1ff; --nutui-brand-6: #5c99ff; --nutui-brand-7: #317fff; --nutui-brand-8: #3768fa; --nutui-brand-9: #1b58ba; --nutui-brand-10: #244986; --nutui-brand-11: #193666; --nutui-brand-12: #16243e;
|
|
4
|
+
--nutui-brand-stop-1: var(--nutui-brand-8); --nutui-brand-stop-2: var(--nutui-brand-8);
|
|
5
|
+
--nutui-gray-0: #f4f4f4; --nutui-gray-1: #f7f7f7; --nutui-gray-2: #f0f0f0; --nutui-gray-3: #ebebeb; --nutui-gray-4: #e6e6e6;
|
|
6
|
+
--nutui-gray-5: #d9d9d9;
|
|
7
|
+
--nutui-gray-6: #cccccc;
|
|
8
|
+
--nutui-gray-7: #b5b5b5;
|
|
9
|
+
--nutui-gray-8: #8c8c8c;
|
|
10
|
+
--nutui-gray-9: #666666;
|
|
11
|
+
--nutui-gray-10: #595959;
|
|
12
|
+
--nutui-gray-11: #333333;
|
|
13
|
+
--nutui-gray-12: #262626;
|
|
14
|
+
|
|
15
|
+
--nutui-black-1: rgba(0, 0, 0, 0.02);
|
|
16
|
+
--nutui-black-2: rgba(0, 0, 0, 0.05);
|
|
17
|
+
--nutui-black-3: rgba(0, 0, 0, 0.1);
|
|
18
|
+
--nutui-black-4: rgba(0, 0, 0, 0.2);
|
|
19
|
+
--nutui-black-5: rgba(0, 0, 0, 0.3); --nutui-black-6: rgba(0, 0, 0, 0.4);
|
|
20
|
+
--nutui-black-7: rgba(0, 0, 0, 0.5); --nutui-black-8: rgba(0, 0, 0, 0.6); --nutui-black-9: rgba(0, 0, 0, 0.7); --nutui-black-10: rgba(0, 0, 0, 0.8); --nutui-black-11: rgba(0, 0, 0, 0.9); --nutui-black-12: rgba(0, 0, 0, 1);
|
|
21
|
+
--nutui-white-1: rgba(255, 255, 255, 0.02);
|
|
22
|
+
--nutui-white-2: rgba(255, 255, 255, 0.05);
|
|
23
|
+
--nutui-white-3: rgba(255, 255, 255, 0.1);
|
|
24
|
+
--nutui-white-4: rgba(255, 255, 255, 0.2);
|
|
25
|
+
--nutui-white-5: rgba(255, 255, 255, 0.3);
|
|
26
|
+
--nutui-white-6: rgba(255, 255, 255, 0.4);
|
|
27
|
+
--nutui-white-7: rgba(255, 255, 255, 0.5);
|
|
28
|
+
--nutui-white-8: rgba(255, 255, 255, 0.6);
|
|
29
|
+
--nutui-white-9: rgba(255, 255, 255, 0.7);
|
|
30
|
+
--nutui-white-10: rgba(255, 255, 255, 0.8);
|
|
31
|
+
--nutui-white-11: rgba(255, 255, 255, 0.9);
|
|
32
|
+
--nutui-white-12: rgba(255, 255, 255, 1);
|
|
33
|
+
|
|
34
|
+
--nutui-green-1: #eaf9e8;
|
|
35
|
+
--nutui-green-2: #cdf5c9;
|
|
36
|
+
--nutui-green-3: #b2f0ae;
|
|
37
|
+
--nutui-green-4: #7de279;
|
|
38
|
+
--nutui-green-5: #51d04f;
|
|
39
|
+
--nutui-green-6: #00bc14; --nutui-green-7: #12a300;
|
|
40
|
+
--nutui-green-8: #2b8e23;
|
|
41
|
+
--nutui-green-9: #007308;
|
|
42
|
+
--nutui-green-10: #005c05;
|
|
43
|
+
--nutui-green-11: #243f23;
|
|
44
|
+
--nutui-green-12: #192a18;
|
|
45
|
+
|
|
46
|
+
--nutui-orange-1: #fdf1ea;
|
|
47
|
+
--nutui-orange-2: #fee2d1;
|
|
48
|
+
--nutui-orange-3: #f5d6c3;
|
|
49
|
+
--nutui-orange-4: #fdd3b9;
|
|
50
|
+
--nutui-orange-5: #fcb487;
|
|
51
|
+
--nutui-orange-6: #ec7600; --nutui-orange-7: #cd6600;
|
|
52
|
+
--nutui-orange-8: #ae5604;
|
|
53
|
+
--nutui-orange-9: #914600;
|
|
54
|
+
--nutui-orange-10: #743702;
|
|
55
|
+
--nutui-orange-11: #562a09;
|
|
56
|
+
--nutui-orange-12: #351f11;
|
|
57
|
+
|
|
58
|
+
--nutui-red-1: #fff0ed;
|
|
59
|
+
--nutui-red-2: #fee1da;
|
|
60
|
+
--nutui-red-3: #fdd1ca;
|
|
61
|
+
--nutui-red-4: #fbb1a5;
|
|
62
|
+
--nutui-red-5: #ff8b79;
|
|
63
|
+
--nutui-red-6: #ff5e4a;
|
|
64
|
+
--nutui-red-7: #ea3f2d;
|
|
65
|
+
--nutui-red-8: #d82515; --nutui-red-9: #b7180a;
|
|
66
|
+
--nutui-red-10: #960800;
|
|
67
|
+
--nutui-red-11: #611d15;
|
|
68
|
+
--nutui-red-12: #3a1a16;
|
|
69
|
+
|
|
70
|
+
--nutui-info-1: #e5f8fa;
|
|
71
|
+
--nutui-info-2: #c4f0f7;
|
|
72
|
+
--nutui-info-3: #a3e8f2;
|
|
73
|
+
--nutui-info-4: #73d6ed;
|
|
74
|
+
--nutui-info-5: #00c2e3;
|
|
75
|
+
--nutui-info-6: #00abcc; --nutui-info-7: #0094b5;
|
|
76
|
+
--nutui-info-8: #007d9e;
|
|
77
|
+
--nutui-info-9: #006985;
|
|
78
|
+
--nutui-info-10: #00526e;
|
|
79
|
+
--nutui-info-11: #003d59;
|
|
80
|
+
--nutui-info-12: #00324a;
|
|
81
|
+
|
|
82
|
+
--nutui-color-info: var(--nutui-info-6);
|
|
83
|
+
--nutui-color-text-disabled: var(--nutui-black-6);
|
|
84
|
+
--nutui-font-size-1: 10px; --nutui-font-size-2: 11px;
|
|
85
|
+
--nutui-font-size-3: 12px; --nutui-font-size-4: 14px; --nutui-font-size-5: 16px; --nutui-font-size-6: 18px;
|
|
86
|
+
--nutui-font-size-7: 20px; --nutui-font-size-8: 24px; --nutui-font-size-9: 32px; --nutui-font-size-10: 40px; --nutui-font-weight: 400;
|
|
87
|
+
--nutui-line-height-base: 1.5;
|
|
88
|
+
|
|
89
|
+
--nutui-spacing-1: 2px; --nutui-spacing-2: 4px; --nutui-spacing-3: 6px; --nutui-spacing-4: 8px; --nutui-spacing-5: 10px; --nutui-spacing-6: 12px; --nutui-spacing-7: 14px; --nutui-spacing-8: 16px; --nutui-spacing-9: 18px;
|
|
90
|
+
--nutui-spacing-10: 20px;
|
|
91
|
+
|
|
92
|
+
--nutui-radius-1: 2px; --nutui-radius-2: 4px; --nutui-radius-3: 6px; --nutui-radius-4: 8px; --nutui-radius-5: 12px; --nutui-radius-6: 16px;
|
|
93
|
+
--nutui-color-default: var(--nutui-gray-2);
|
|
94
|
+
--nutui-color-default-press: var(--nutui-gray-3);
|
|
95
|
+
--nutui-color-default-disabled: var(--nutui-gray-1);
|
|
96
|
+
--nutui-color-default-light: var(--nutui-gray-1);
|
|
97
|
+
|
|
98
|
+
--nutui-color-primary: var(--nutui-brand-8);
|
|
99
|
+
--nutui-color-primary-pressed: var(--nutui-brand-9);
|
|
100
|
+
--nutui-color-primary-disabled: var(--nutui-brand-3);
|
|
101
|
+
--nutui-color-primary-light: var(--nutui-brand-1);
|
|
102
|
+
|
|
103
|
+
--nutui-color-success: var(--nutui-green-6);
|
|
104
|
+
--nutui-color-success-press: var(--nutui-green-8);
|
|
105
|
+
--nutui-color-success-disabled: var(--nutui-green-3);
|
|
106
|
+
--nutui-color-success-light: var(--nutui-green-1);
|
|
107
|
+
|
|
108
|
+
--nutui-color-warning: var(--nutui-orange-6);
|
|
109
|
+
--nutui-color-warning-press: var(--nutui-orange-8);
|
|
110
|
+
--nutui-color-warning-disabled: var(--nutui-orange-3);
|
|
111
|
+
--nutui-color-warning-light: var(--nutui-orange-1);
|
|
112
|
+
|
|
113
|
+
--nutui-color-danger: var(--nutui-red-8);
|
|
114
|
+
--nutui-color-danger-press: var(--nutui-red-9);
|
|
115
|
+
--nutui-color-danger-disabled: var(--nutui-red-3);
|
|
116
|
+
--nutui-color-danger-light: var(--nutui-red-1);
|
|
117
|
+
|
|
118
|
+
--nutui-color-info: var(--nutui-info-6);
|
|
119
|
+
--nutui-color-info-press: var(--nutui-info-7);
|
|
120
|
+
--nutui-color-info-disabled: var(--nutui-info-3);
|
|
121
|
+
--nutui-color-info-light: var(--nutui-info-1);
|
|
122
|
+
|
|
123
|
+
--nutui-color-dark: var(--nutui-gray-12);
|
|
124
|
+
--nutui-color-light: var(--nutui-gray-0);
|
|
125
|
+
|
|
126
|
+
--nutui-color-surface-1: var(--nutui-gray-0);
|
|
127
|
+
--nutui-color-surface-2: var(--nutui-white-12);
|
|
128
|
+
--nutui-color-surface-3: var(--nutui-white-12);
|
|
129
|
+
--nutui-color-surface-4: var(--nutui-white-12);
|
|
130
|
+
--nutui-color-surface-overlay: var(--nutui-black-8);
|
|
131
|
+
|
|
132
|
+
--nutui-color-border-shade: var(--nutui-gray-3);
|
|
133
|
+
--nutui-color-border: var(--nutui-gray-2);
|
|
134
|
+
--nutui-color-border-tint: var(--nutui-gray-1);
|
|
135
|
+
|
|
136
|
+
--nutui-color-title: var(--nutui-gray-12);
|
|
137
|
+
--nutui-color-text: var(--nutui-gray-10);
|
|
138
|
+
--nutui-color-text-help: var(--nutui-gray-8);
|
|
139
|
+
--nutui-color-text-disabled: var(--nutui-gray-7);
|
|
140
|
+
--nutui-color-text-dark: var(--nutui-white-12);
|
|
141
|
+
--nutui-color-text-link: var(--nutui-color-primary);
|
|
142
|
+
|
|
143
|
+
--nutui-font-h1: var(--nutui-font-size-7);
|
|
144
|
+
--nutui-font-h2: var(--nutui-font-size-6);
|
|
145
|
+
--nutui-font-h3: var(--nutui-font-size-5);
|
|
146
|
+
--nutui-font-h4: var(--nutui-font-size-4);
|
|
147
|
+
--nutui-font-h5: var(--nutui-font-size-3);
|
|
148
|
+
--nutui-font-text-large: var(--nutui-font-size-5);
|
|
149
|
+
--nutui-font-text: var(--nutui-font-size-4);
|
|
150
|
+
--nutui-font-text-small: var(--nutui-font-size-3);
|
|
151
|
+
--nutui-font-text-xs: var(--nutui-font-size-2);
|
|
152
|
+
--nutui-font-text-mini: var(--nutui-font-size-1);
|
|
153
|
+
|
|
154
|
+
--nutui-font-weight: 400;
|
|
155
|
+
--nutui-font-weight-bold: 600;
|
|
156
|
+
--nutui-line-height: 140%;
|
|
157
|
+
|
|
158
|
+
--nutui-spacing-xxs: var(--nutui-spacing-1);
|
|
159
|
+
--nutui-spacing-xs: var(--nutui-spacing-2);
|
|
160
|
+
--nutui-spacing-s: var(--nutui-spacing-3);
|
|
161
|
+
--nutui-spacing-base: var(--nutui-spacing-4);
|
|
162
|
+
--nutui-spacing-l: var(--nutui-spacing-5);
|
|
163
|
+
--nutui-spacing-xl: var(--nutui-spacing-6);
|
|
164
|
+
--nutui-spacing-xxl: var(--nutui-spacing-7);
|
|
165
|
+
--nutui-spacing-xxxl: var(--nutui-spacing-8);
|
|
166
|
+
--nutui-spacing-4xl: var(--nutui-spacing-9);
|
|
167
|
+
--nutui-spacing-5xl: var(--nutui-spacing-10);
|
|
168
|
+
|
|
169
|
+
--nutui-radius-xxs: var(--nutui-radius-1);
|
|
170
|
+
--nutui-radius-xs: var(--nutui-radius-2);
|
|
171
|
+
--nutui-radius-s: var(--nutui-radius-3);
|
|
172
|
+
--nutui-radius-base: var(--nutui-radius-4);
|
|
173
|
+
--nutui-radius-l: var(--nutui-radius-5);
|
|
174
|
+
--nutui-radius-xl: var(--nutui-radius-6);
|
|
175
|
+
--nutui-radius-full: 50%;
|
|
176
|
+
|
|
177
|
+
--nutui-shadow-light: 0 0 4 0 rgba(0, 0, 0, 0.05);
|
|
178
|
+
--nutui-shadow-raised: 0 0 6 0 rgba(0, 0, 0, 0.1);
|
|
179
|
+
--nutui-shadow-overlay: 0 0 8 0 rgba(0, 0, 0, 0.2);
|
|
180
|
+
|
|
181
|
+
--nutui-color-primary-stop-1: var(--nutui-brand-stop-1);
|
|
182
|
+
--nutui-color-primary-stop-2: var(--nutui-brand-stop-2);
|
|
183
|
+
--nutui-color-primary-text: #ffffff;
|
|
184
|
+
--nutui-color-primary-light-pressed: var(--nutui-brand-2);
|
|
185
|
+
--nutui-color-text-link: var(--nutui-brand-8);
|
|
186
|
+
}
|
|
@@ -996,6 +996,10 @@ $calendar-day-active-border-radius: var(
|
|
|
996
996
|
--nutui-calendar-day-active-border-radius,
|
|
997
997
|
4px
|
|
998
998
|
) !default;
|
|
999
|
+
$calendar-panel-item-width: var(
|
|
1000
|
+
--nutui-calendar-panel-item-width,
|
|
1001
|
+
24.85%
|
|
1002
|
+
) !default;
|
|
999
1003
|
|
|
1000
1004
|
//overlay(✅)
|
|
1001
1005
|
$overlay-bg-color: var(--nutui-overlay-bg-color, $color-mask) !default;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { default as React, FunctionComponent,
|
|
1
|
+
import { default as React, FunctionComponent, MouseEvent } from 'react';
|
|
2
|
+
import { InputProps, ITouchEvent } from '@tarojs/components';
|
|
3
|
+
import { BaseEventOrig } from '@tarojs/components/types/common';
|
|
2
4
|
import { BasicComponent } from '../../utils/typings';
|
|
5
|
+
type inputEventDetail = InputProps.inputEventDetail;
|
|
6
|
+
type inputForceEventDetail = InputProps.inputForceEventDetail;
|
|
7
|
+
type inputValueEventDetail = InputProps.inputValueEventDetail;
|
|
3
8
|
export interface SearchBarProps extends BasicComponent {
|
|
4
9
|
/**
|
|
5
10
|
* 当前输入的值
|
|
@@ -75,17 +80,17 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
75
80
|
* 输入内容时触发
|
|
76
81
|
* @default -
|
|
77
82
|
*/
|
|
78
|
-
onChange?: (value: string, event?:
|
|
83
|
+
onChange?: (value: string, event?: BaseEventOrig<inputEventDetail>) => void
|
|
79
84
|
/**
|
|
80
85
|
* 聚焦时触发
|
|
81
86
|
* @default -
|
|
82
87
|
*/
|
|
83
|
-
onFocus?: (value: string, event:
|
|
88
|
+
onFocus?: (value: string, event: BaseEventOrig<inputForceEventDetail>) => void
|
|
84
89
|
/**
|
|
85
90
|
* 失焦时触发
|
|
86
91
|
* @default -
|
|
87
92
|
*/
|
|
88
|
-
onBlur?: (value: string, event:
|
|
93
|
+
onBlur?: (value: string, event: BaseEventOrig<inputValueEventDetail>) => void
|
|
89
94
|
/**
|
|
90
95
|
* 点击清空时触发
|
|
91
96
|
* @default -
|
|
@@ -95,6 +100,7 @@ export interface SearchBarProps extends BasicComponent {
|
|
|
95
100
|
* 点击输入区域时触发
|
|
96
101
|
* @default -
|
|
97
102
|
*/
|
|
98
|
-
onInputClick?: (event:
|
|
103
|
+
onInputClick?: (event: ITouchEvent) => void
|
|
99
104
|
}
|
|
100
105
|
export declare const SearchBar: FunctionComponent<Partial<SearchBarProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur'>>;
|
|
106
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nutui/nutui-react-taro",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.12-patch.0",
|
|
4
4
|
"style": "dist/style.css",
|
|
5
5
|
"main": "dist/nutui.react.umd.js",
|
|
6
6
|
"module": "dist/esm/nutui-react.es.js",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.scss",
|
|
10
10
|
"dist/esm/**/style/*",
|
|
11
|
+
"dist/styles/*",
|
|
11
12
|
"dist/style.css",
|
|
12
13
|
"dist/styles/font/*",
|
|
13
14
|
"dist/styles/font-jmapp/*"
|