@nutui/nutui-react-taro 3.1.0-beta.1 → 4.0.0-beta.1
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 +22 -0
- package/dist/cjs/locales/base.d.ts +6 -0
- package/dist/cjs/locales/en-US.js +17 -1
- package/dist/cjs/locales/id-ID.js +17 -1
- package/dist/cjs/locales/ja-JP.js +16 -2
- package/dist/cjs/locales/tr-TR.js +17 -1
- package/dist/cjs/locales/vi-VN.js +17 -1
- package/dist/cjs/locales/zh-CN.js +15 -1
- package/dist/cjs/locales/zh-TW.js +15 -1
- package/dist/cjs/locales/zh-UG.js +17 -1
- package/dist/cjs/packages/address/existRender.js +1 -1
- package/dist/cjs/packages/address/style/style.css +2 -2
- package/dist/cjs/packages/address/style/style.harmony.css +6 -6
- package/dist/cjs/packages/audio/audio.js +2 -2
- package/dist/cjs/packages/audio/style/style.harmony.css +295 -50
- package/dist/cjs/packages/button/button.js +38 -9
- package/dist/cjs/packages/button/style/button.scss +327 -227
- package/dist/cjs/packages/button/style/style.css +292 -47
- package/dist/cjs/packages/button/style/style.harmony.css +292 -47
- package/dist/cjs/packages/button/style-jmapp/button.scss +327 -227
- package/dist/cjs/packages/button/style-jmapp/style.css +268 -23
- package/dist/cjs/packages/button/style-jrkf/button.scss +327 -227
- package/dist/cjs/packages/button/style-jrkf/style.css +268 -23
- package/dist/cjs/packages/calendar/style/style.css +2 -2
- package/dist/cjs/packages/calendar/style/style.harmony.css +2 -2
- package/dist/cjs/packages/calendarcard/style/style.css +1 -1
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +1 -1
- package/dist/cjs/packages/card/style/style.harmony.css +2 -2
- package/dist/cjs/packages/cascader/cascader.js +1 -1
- package/dist/cjs/packages/cascader/style/style.harmony.css +2 -2
- package/dist/cjs/packages/checkbox/checkbox.js +4 -3
- package/dist/cjs/packages/checkbox/style/checkbox.scss +19 -3
- package/dist/cjs/packages/checkbox/style/style.css +21 -6
- package/dist/cjs/packages/checkbox/style/style.harmony.css +23 -8
- package/dist/cjs/packages/checkbox/style-jmapp/checkbox.scss +19 -3
- package/dist/cjs/packages/checkbox/style-jmapp/style.css +18 -3
- package/dist/cjs/packages/checkbox/style-jrkf/checkbox.scss +19 -3
- package/dist/cjs/packages/checkbox/style-jrkf/style.css +18 -3
- package/dist/cjs/packages/checkboxgroup/style/style.css +2 -2
- package/dist/cjs/packages/checkboxgroup/style/style.harmony.css +2 -2
- package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/style/style.css +1 -1
- package/dist/cjs/packages/countdown/style/style.harmony.css +1 -1
- package/dist/cjs/packages/datepicker/datepicker.js +3 -5
- package/dist/cjs/packages/datepicker/utils.js +7 -0
- package/dist/cjs/packages/dialog/style/style.harmony.css +292 -47
- package/dist/cjs/packages/elevator/style/elevator.scss +6 -2
- package/dist/cjs/packages/elevator/style/style.css +2 -2
- package/dist/cjs/packages/elevator/style/style.harmony.css +2 -2
- package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +6 -2
- package/dist/cjs/packages/elevator/style-jmapp/style.css +2 -2
- package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +6 -2
- package/dist/cjs/packages/elevator/style-jrkf/style.css +2 -2
- package/dist/cjs/packages/ellipsis/style/style.css +1 -1
- package/dist/cjs/packages/ellipsis/style/style.harmony.css +1 -1
- package/dist/cjs/packages/empty/style/style.harmony.css +292 -47
- package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +1 -1
- package/dist/cjs/packages/inputnumber/inputnumber.js +5 -1
- package/dist/cjs/packages/inputnumber/style/inputnumber.scss +11 -5
- package/dist/cjs/packages/inputnumber/style/style.css +16 -11
- package/dist/cjs/packages/inputnumber/style/style.harmony.css +16 -11
- package/dist/cjs/packages/inputnumber/style-jmapp/inputnumber.scss +11 -5
- package/dist/cjs/packages/inputnumber/style-jmapp/style.css +10 -5
- package/dist/cjs/packages/inputnumber/style-jrkf/inputnumber.scss +11 -5
- package/dist/cjs/packages/inputnumber/style-jrkf/style.css +10 -5
- package/dist/cjs/packages/pagination/pagination.js +2 -2
- package/dist/cjs/packages/price/price.js +15 -4
- package/dist/cjs/packages/progress/progress.js +2 -2
- package/dist/cjs/packages/radio/radio.js +3 -2
- package/dist/cjs/packages/radio/style/radio.scss +9 -3
- package/dist/cjs/packages/radio/style/style.css +10 -5
- package/dist/cjs/packages/radio/style/style.harmony.css +12 -7
- package/dist/cjs/packages/radio/style-jmapp/radio.scss +9 -3
- package/dist/cjs/packages/radio/style-jmapp/style.css +8 -3
- package/dist/cjs/packages/radio/style-jrkf/radio.scss +9 -3
- package/dist/cjs/packages/radio/style-jrkf/style.css +8 -3
- package/dist/cjs/packages/radiogroup/style/style.css +2 -2
- package/dist/cjs/packages/radiogroup/style/style.harmony.css +2 -2
- package/dist/cjs/packages/range/style/style.css +3 -3
- package/dist/cjs/packages/range/style/style.harmony.css +3 -3
- package/dist/cjs/packages/resultpage/resultpage.js +5 -5
- package/dist/cjs/packages/resultpage/style/style.harmony.css +292 -47
- package/dist/cjs/packages/searchbar/style/searchbar.scss +5 -5
- package/dist/cjs/packages/searchbar/style/style.css +5 -5
- package/dist/cjs/packages/searchbar/style/style.harmony.css +5 -5
- package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +5 -5
- package/dist/cjs/packages/searchbar/style-jmapp/style.css +5 -5
- package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +5 -5
- package/dist/cjs/packages/searchbar/style-jrkf/style.css +5 -5
- package/dist/cjs/packages/signature/signature.js +1 -1
- package/dist/cjs/packages/steps/style/style.css +2 -2
- package/dist/cjs/packages/steps/style/style.harmony.css +2 -2
- package/dist/cjs/packages/swipe/swipe.js +2 -2
- package/dist/cjs/packages/switch/style/style.css +2 -2
- package/dist/cjs/packages/switch/style/style.harmony.css +2 -2
- package/dist/cjs/packages/tabs/style/style.css +2 -2
- package/dist/cjs/packages/tabs/style/style.harmony.css +2 -2
- package/dist/cjs/packages/tag/style/style.css +2 -2
- package/dist/cjs/packages/tag/style/style.harmony.css +2 -2
- package/dist/cjs/packages/timedetail/style/style.css +1 -1
- package/dist/cjs/packages/timedetail/style/style.harmony.css +1 -1
- package/dist/cjs/packages/timeselect/style/style.harmony.css +1 -1
- package/dist/cjs/packages/toast/style/style.css +18 -15
- package/dist/cjs/packages/toast/style/style.harmony.css +18 -15
- package/dist/cjs/packages/toast/style/toast.scss +23 -16
- package/dist/cjs/packages/toast/style-jmapp/style.css +17 -14
- package/dist/cjs/packages/toast/style-jmapp/toast.scss +23 -16
- package/dist/cjs/packages/toast/style-jrkf/style.css +17 -14
- package/dist/cjs/packages/toast/style-jrkf/toast.scss +23 -16
- package/dist/cjs/packages/toast/toast.js +2 -3
- package/dist/cjs/types/base/atoms.d.ts +3 -3
- package/dist/cjs/types/spec/button/base.d.ts +1 -0
- package/dist/cjs/utils/taro/get-system-info.d.ts +0 -5
- package/dist/cjs/utils/taro/get-system-info.js +2 -7
- package/dist/es/hooks/taro/use-custom-event.js +1 -0
- package/dist/es/locales/base.d.ts +6 -0
- package/dist/es/locales/en-US.js +17 -1
- package/dist/es/locales/id-ID.js +17 -1
- package/dist/es/locales/ja-JP.js +16 -2
- package/dist/es/locales/tr-TR.js +17 -1
- package/dist/es/locales/vi-VN.js +17 -1
- package/dist/es/locales/zh-CN.js +15 -1
- package/dist/es/locales/zh-TW.js +15 -1
- package/dist/es/locales/zh-UG.js +17 -1
- package/dist/es/packages/address/existRender.js +1 -1
- package/dist/es/packages/address/style/style.css +2 -2
- package/dist/es/packages/address/style/style.harmony.css +6 -6
- package/dist/es/packages/audio/audio.js +2 -2
- package/dist/es/packages/audio/style/style.harmony.css +295 -50
- package/dist/es/packages/button/button.js +37 -8
- package/dist/es/packages/button/style/button.scss +327 -227
- package/dist/es/packages/button/style/style.css +292 -47
- package/dist/es/packages/button/style/style.harmony.css +292 -47
- package/dist/es/packages/button/style-jmapp/button.scss +327 -227
- package/dist/es/packages/button/style-jmapp/style.css +268 -23
- package/dist/es/packages/button/style-jrkf/button.scss +327 -227
- package/dist/es/packages/button/style-jrkf/style.css +268 -23
- package/dist/es/packages/calendar/style/style.css +2 -2
- package/dist/es/packages/calendar/style/style.harmony.css +2 -2
- package/dist/es/packages/calendarcard/style/style.css +1 -1
- package/dist/es/packages/calendarcard/style/style.harmony.css +1 -1
- package/dist/es/packages/card/style/style.harmony.css +2 -2
- package/dist/es/packages/cascader/cascader.js +1 -1
- package/dist/es/packages/cascader/style/style.harmony.css +2 -2
- package/dist/es/packages/checkbox/checkbox.js +4 -3
- package/dist/es/packages/checkbox/style/checkbox.scss +19 -3
- package/dist/es/packages/checkbox/style/style.css +21 -6
- package/dist/es/packages/checkbox/style/style.harmony.css +23 -8
- package/dist/es/packages/checkbox/style-jmapp/checkbox.scss +19 -3
- package/dist/es/packages/checkbox/style-jmapp/style.css +18 -3
- package/dist/es/packages/checkbox/style-jrkf/checkbox.scss +19 -3
- package/dist/es/packages/checkbox/style-jrkf/style.css +18 -3
- package/dist/es/packages/checkboxgroup/style/style.css +2 -2
- package/dist/es/packages/checkboxgroup/style/style.harmony.css +2 -2
- package/dist/es/packages/circleprogress/circleprogress.js +1 -1
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/style/style.css +1 -1
- package/dist/es/packages/countdown/style/style.harmony.css +1 -1
- package/dist/es/packages/datepicker/datepicker.js +3 -5
- package/dist/es/packages/datepicker/utils.js +7 -0
- package/dist/es/packages/dialog/style/style.harmony.css +292 -47
- package/dist/es/packages/elevator/style/elevator.scss +6 -2
- package/dist/es/packages/elevator/style/style.css +2 -2
- package/dist/es/packages/elevator/style/style.harmony.css +2 -2
- package/dist/es/packages/elevator/style-jmapp/elevator.scss +6 -2
- package/dist/es/packages/elevator/style-jmapp/style.css +2 -2
- package/dist/es/packages/elevator/style-jrkf/elevator.scss +6 -2
- package/dist/es/packages/elevator/style-jrkf/style.css +2 -2
- package/dist/es/packages/ellipsis/style/style.css +1 -1
- package/dist/es/packages/ellipsis/style/style.harmony.css +1 -1
- package/dist/es/packages/empty/style/style.harmony.css +292 -47
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +1 -1
- package/dist/es/packages/inputnumber/inputnumber.js +5 -1
- package/dist/es/packages/inputnumber/style/inputnumber.scss +11 -5
- package/dist/es/packages/inputnumber/style/style.css +16 -11
- package/dist/es/packages/inputnumber/style/style.harmony.css +16 -11
- package/dist/es/packages/inputnumber/style-jmapp/inputnumber.scss +11 -5
- package/dist/es/packages/inputnumber/style-jmapp/style.css +10 -5
- package/dist/es/packages/inputnumber/style-jrkf/inputnumber.scss +11 -5
- package/dist/es/packages/inputnumber/style-jrkf/style.css +10 -5
- package/dist/es/packages/pagination/pagination.js +2 -2
- package/dist/es/packages/price/price.js +16 -5
- package/dist/es/packages/progress/progress.js +2 -2
- package/dist/es/packages/radio/radio.js +3 -2
- package/dist/es/packages/radio/style/radio.scss +9 -3
- package/dist/es/packages/radio/style/style.css +10 -5
- package/dist/es/packages/radio/style/style.harmony.css +12 -7
- package/dist/es/packages/radio/style-jmapp/radio.scss +9 -3
- package/dist/es/packages/radio/style-jmapp/style.css +8 -3
- package/dist/es/packages/radio/style-jrkf/radio.scss +9 -3
- package/dist/es/packages/radio/style-jrkf/style.css +8 -3
- package/dist/es/packages/radiogroup/style/style.css +2 -2
- package/dist/es/packages/radiogroup/style/style.harmony.css +2 -2
- package/dist/es/packages/range/style/style.css +3 -3
- package/dist/es/packages/range/style/style.harmony.css +3 -3
- package/dist/es/packages/resultpage/resultpage.js +5 -5
- package/dist/es/packages/resultpage/style/style.harmony.css +292 -47
- package/dist/es/packages/searchbar/style/searchbar.scss +5 -5
- package/dist/es/packages/searchbar/style/style.css +5 -5
- package/dist/es/packages/searchbar/style/style.harmony.css +5 -5
- package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +5 -5
- package/dist/es/packages/searchbar/style-jmapp/style.css +5 -5
- package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +5 -5
- package/dist/es/packages/searchbar/style-jrkf/style.css +5 -5
- package/dist/es/packages/signature/signature.js +1 -1
- package/dist/es/packages/steps/style/style.css +2 -2
- package/dist/es/packages/steps/style/style.harmony.css +2 -2
- package/dist/es/packages/swipe/swipe.js +2 -2
- package/dist/es/packages/switch/style/style.css +2 -2
- package/dist/es/packages/switch/style/style.harmony.css +2 -2
- package/dist/es/packages/tabs/style/style.css +2 -2
- package/dist/es/packages/tabs/style/style.harmony.css +2 -2
- package/dist/es/packages/tag/style/style.css +2 -2
- package/dist/es/packages/tag/style/style.harmony.css +2 -2
- package/dist/es/packages/timedetail/style/style.css +1 -1
- package/dist/es/packages/timedetail/style/style.harmony.css +1 -1
- package/dist/es/packages/timeselect/style/style.harmony.css +1 -1
- package/dist/es/packages/toast/style/style.css +18 -15
- package/dist/es/packages/toast/style/style.harmony.css +18 -15
- package/dist/es/packages/toast/style/toast.scss +23 -16
- package/dist/es/packages/toast/style-jmapp/style.css +17 -14
- package/dist/es/packages/toast/style-jmapp/toast.scss +23 -16
- package/dist/es/packages/toast/style-jrkf/style.css +17 -14
- package/dist/es/packages/toast/style-jrkf/toast.scss +23 -16
- package/dist/es/packages/toast/toast.js +2 -3
- package/dist/es/types/base/atoms.d.ts +3 -3
- package/dist/es/types/spec/button/base.d.ts +1 -0
- package/dist/es/utils/taro/get-system-info.d.ts +0 -5
- package/dist/es/utils/taro/get-system-info.js +8 -7
- package/dist/nutui.react.umd.js +135 -51
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +33 -33
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +34 -34
- package/dist/style.css +1 -1
- package/dist/style.scss +35 -35
- package/dist/styles/theme-daojia.scss +55 -48
- package/dist/styles/theme-dark-daojia.scss +55 -47
- package/dist/styles/theme-dark.scss +108 -109
- package/dist/styles/theme-default.scss +110 -111
- package/dist/styles/theme-jmapp.scss +1 -1
- package/dist/styles/theme-jrkf.scss +1 -1
- package/dist/styles/themes/daojia.css +1 -1
- package/dist/styles/themes/dark-daojia.css +1 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/dist/styles/themes/jmapp.css +1 -1
- package/dist/styles/themes/jrkf.css +1 -1
- package/dist/styles/variables-daojia.scss +1055 -1976
- package/dist/styles/variables-jmapp.scss +96 -5
- package/dist/styles/variables-jrkf.scss +96 -5
- package/dist/styles/variables.scss +141 -37
- package/package.json +1 -1
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
.nut-icon {
|
|
77
77
|
width: $icon-size-12;
|
|
78
78
|
height: $icon-size-12;
|
|
79
|
-
color: var(--nutui-black-5);
|
|
79
|
+
color: var(--nutui-black-5, rgba(0, 0, 0, 0.2));
|
|
80
80
|
margin-right: $searchbar-inner-gap;
|
|
81
81
|
}
|
|
82
82
|
&::after {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
display: flex;
|
|
95
95
|
flex-direction: row;
|
|
96
96
|
z-index: 2;
|
|
97
|
-
background-color:
|
|
97
|
+
background-color: $searchbar-content-background;
|
|
98
98
|
top: scale-px(9px);
|
|
99
99
|
left: scale-px(6px);
|
|
100
100
|
font-size: $font-size-s;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
flex-direction: row;
|
|
106
106
|
align-items: center;
|
|
107
107
|
padding: scale-px(4px) scale-px(8px);
|
|
108
|
-
background-color:
|
|
108
|
+
background-color: $color-background-sunken;
|
|
109
109
|
border-radius: scale-px(4px);
|
|
110
110
|
margin-right: scale-px(2px);
|
|
111
111
|
}
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
width: $icon-size-6;
|
|
115
115
|
height: $icon-size-6;
|
|
116
116
|
font-size: $icon-size-6;
|
|
117
|
-
color:
|
|
117
|
+
color: $color-text-disabled;
|
|
118
118
|
margin-left: scale-px(4px);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
padding: scale-px(5px) $searchbar-gap;
|
|
197
197
|
|
|
198
198
|
.nut-searchbar-content {
|
|
199
|
-
border: scale-px(0.5px) solid
|
|
199
|
+
border: scale-px(0.5px) solid $color-primary;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
.nut-searchbar-clear.nut-searchbar-icon .nut-icon {
|
|
72
72
|
width: var(--nutui-icon-size-12, 12px);
|
|
73
73
|
height: var(--nutui-icon-size-12, 12px);
|
|
74
|
-
color: var(--nutui-black-5);
|
|
74
|
+
color: var(--nutui-black-5, rgba(0, 0, 0, 0.2));
|
|
75
75
|
margin-right: var(--nutui-searchbar-inner-gap, 8px);
|
|
76
76
|
}
|
|
77
77
|
.nut-searchbar-clear.nut-searchbar-icon::after {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
display: flex;
|
|
87
87
|
flex-direction: row;
|
|
88
88
|
z-index: 2;
|
|
89
|
-
background-color:
|
|
89
|
+
background-color: var(--nutui-searchbar-content-background, var(--nutui-color-default-light));
|
|
90
90
|
top: scale-px(9px);
|
|
91
91
|
left: scale-px(6px);
|
|
92
92
|
font-size: var(--nutui-font-text-small);
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
flex-direction: row;
|
|
98
98
|
align-items: center;
|
|
99
99
|
padding: scale-px(4px) scale-px(8px);
|
|
100
|
-
background-color: #
|
|
100
|
+
background-color: var(--nutui-gray-2, #f8f8f8);
|
|
101
101
|
border-radius: scale-px(4px);
|
|
102
102
|
margin-right: scale-px(2px);
|
|
103
103
|
}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
width: var(--nutui-icon-size-6, 6px);
|
|
106
106
|
height: var(--nutui-icon-size-6, 6px);
|
|
107
107
|
font-size: var(--nutui-icon-size-6, 6px);
|
|
108
|
-
color:
|
|
108
|
+
color: var(--nutui-color-text-disabled);
|
|
109
109
|
margin-left: scale-px(4px);
|
|
110
110
|
}
|
|
111
111
|
.nut-searchbar-left, .nut-searchbar-right {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
padding: scale-px(5px) var(--nutui-searchbar-gap, 16px);
|
|
166
166
|
}
|
|
167
167
|
.nut-searchbar-focus .nut-searchbar-content {
|
|
168
|
-
border: scale-px(0.5px) solid
|
|
168
|
+
border: scale-px(0.5px) solid var(--nutui-color-primary);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
[dir=rtl] .nut-searchbar-left,
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
.nut-icon {
|
|
77
77
|
width: $icon-size-12;
|
|
78
78
|
height: $icon-size-12;
|
|
79
|
-
color: var(--nutui-black-5);
|
|
79
|
+
color: var(--nutui-black-5, rgba(0, 0, 0, 0.2));
|
|
80
80
|
margin-right: $searchbar-inner-gap;
|
|
81
81
|
}
|
|
82
82
|
&::after {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
display: flex;
|
|
95
95
|
flex-direction: row;
|
|
96
96
|
z-index: 2;
|
|
97
|
-
background-color:
|
|
97
|
+
background-color: $searchbar-content-background;
|
|
98
98
|
top: scale-px(9px);
|
|
99
99
|
left: scale-px(6px);
|
|
100
100
|
font-size: $font-size-s;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
flex-direction: row;
|
|
106
106
|
align-items: center;
|
|
107
107
|
padding: scale-px(4px) scale-px(8px);
|
|
108
|
-
background-color:
|
|
108
|
+
background-color: $color-background-sunken;
|
|
109
109
|
border-radius: scale-px(4px);
|
|
110
110
|
margin-right: scale-px(2px);
|
|
111
111
|
}
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
width: $icon-size-6;
|
|
115
115
|
height: $icon-size-6;
|
|
116
116
|
font-size: $icon-size-6;
|
|
117
|
-
color:
|
|
117
|
+
color: $color-text-disabled;
|
|
118
118
|
margin-left: scale-px(4px);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
padding: scale-px(5px) $searchbar-gap;
|
|
197
197
|
|
|
198
198
|
.nut-searchbar-content {
|
|
199
|
-
border: scale-px(0.5px) solid
|
|
199
|
+
border: scale-px(0.5px) solid $color-primary;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
.nut-searchbar-clear.nut-searchbar-icon .nut-icon {
|
|
72
72
|
width: var(--nutui-icon-size-12, 12px);
|
|
73
73
|
height: var(--nutui-icon-size-12, 12px);
|
|
74
|
-
color: var(--nutui-black-5);
|
|
74
|
+
color: var(--nutui-black-5, rgba(0, 0, 0, 0.2));
|
|
75
75
|
margin-right: var(--nutui-searchbar-inner-gap, 8px);
|
|
76
76
|
}
|
|
77
77
|
.nut-searchbar-clear.nut-searchbar-icon::after {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
display: flex;
|
|
87
87
|
flex-direction: row;
|
|
88
88
|
z-index: 2;
|
|
89
|
-
background-color:
|
|
89
|
+
background-color: var(--nutui-searchbar-content-background, var(--nutui-color-default-light));
|
|
90
90
|
top: scale-px(9px);
|
|
91
91
|
left: scale-px(6px);
|
|
92
92
|
font-size: var(--nutui-font-text-small);
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
flex-direction: row;
|
|
98
98
|
align-items: center;
|
|
99
99
|
padding: scale-px(4px) scale-px(8px);
|
|
100
|
-
background-color: #
|
|
100
|
+
background-color: var(--nutui-gray-2, #f0f0f0);
|
|
101
101
|
border-radius: scale-px(4px);
|
|
102
102
|
margin-right: scale-px(2px);
|
|
103
103
|
}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
width: var(--nutui-icon-size-6, 6px);
|
|
106
106
|
height: var(--nutui-icon-size-6, 6px);
|
|
107
107
|
font-size: var(--nutui-icon-size-6, 6px);
|
|
108
|
-
color:
|
|
108
|
+
color: var(--nutui-color-text-disabled);
|
|
109
109
|
margin-left: scale-px(4px);
|
|
110
110
|
}
|
|
111
111
|
.nut-searchbar-left, .nut-searchbar-right {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
padding: scale-px(5px) var(--nutui-searchbar-gap, 16px);
|
|
166
166
|
}
|
|
167
167
|
.nut-searchbar-focus .nut-searchbar-content {
|
|
168
|
-
border: scale-px(0.5px) solid #
|
|
168
|
+
border: scale-px(0.5px) solid var(--nutui-color-primary, #ff6666);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
[dir=rtl] .nut-searchbar-left,
|
|
@@ -10,7 +10,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
|
10
10
|
canvasId: 'spcanvas',
|
|
11
11
|
type: 'png',
|
|
12
12
|
lineWidth: 2,
|
|
13
|
-
strokeStyle: '#
|
|
13
|
+
strokeStyle: 'var(--nutui-color-title, #1a1a1a)'
|
|
14
14
|
});
|
|
15
15
|
var InternalSignature = function(props, ref) {
|
|
16
16
|
var _ref = _object_spread({}, defaultProps, props), canvasId = _ref.canvasId, type = _ref.type, lineWidth = _ref.lineWidth, strokeStyle = _ref.strokeStyle, className = _ref.className, style = _ref.style, onConfirm = _ref.onConfirm, onClear = _ref.onClear, rest = _object_without_properties(_ref, [
|
|
@@ -240,7 +240,7 @@ page {
|
|
|
240
240
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon,
|
|
241
241
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon,
|
|
242
242
|
.nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text {
|
|
243
|
-
background-color: var(--nutui-steps-enhanced-finish-head-background-color, var(--nutui-color-primary-light-pressed, #
|
|
243
|
+
background-color: var(--nutui-steps-enhanced-finish-head-background-color, var(--nutui-color-primary-light-pressed, #ffe8ee));
|
|
244
244
|
}
|
|
245
245
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
|
|
246
246
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text .nut-icon, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
|
|
@@ -251,5 +251,5 @@ page {
|
|
|
251
251
|
color: var(--nutui-steps-enhanced-finish-head-text-color, var(--nutui-color-primary-stop-1, #ff475d));
|
|
252
252
|
}
|
|
253
253
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-dot, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-dot {
|
|
254
|
-
background-color: var(--nutui-steps-enhanced-finish-head-dot-background-color, var(--nutui-color-primary-disabled-special, #
|
|
254
|
+
background-color: var(--nutui-steps-enhanced-finish-head-dot-background-color, var(--nutui-color-primary-disabled-special, #ff91a5));
|
|
255
255
|
}
|
|
@@ -359,7 +359,7 @@ page {
|
|
|
359
359
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon,
|
|
360
360
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon,
|
|
361
361
|
.nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-text {
|
|
362
|
-
background-color: var(--nutui-steps-enhanced-finish-head-background-color, var(--nutui-color-primary-light-pressed, #
|
|
362
|
+
background-color: var(--nutui-steps-enhanced-finish-head-background-color, var(--nutui-color-primary-light-pressed, #ffe8ee));
|
|
363
363
|
}
|
|
364
364
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
|
|
365
365
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-text .nut-icon, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-icon .nut-icon,
|
|
@@ -370,5 +370,5 @@ page {
|
|
|
370
370
|
color: var(--nutui-steps-enhanced-finish-head-text-color, var(--nutui-color-primary-stop-1, #ff475d));
|
|
371
371
|
}
|
|
372
372
|
.nut-steps-horizontal-enhanced .nut-step-finish .nut-step-head-dot, .nut-steps-vertical-enhanced .nut-step-finish .nut-step-head-dot {
|
|
373
|
-
background-color: var(--nutui-steps-enhanced-finish-head-dot-background-color, var(--nutui-color-primary-disabled-special, #
|
|
373
|
+
background-color: var(--nutui-steps-enhanced-finish-head-dot-background-color, var(--nutui-color-primary-disabled-special, #ff91a5));
|
|
374
374
|
}
|
|
@@ -157,7 +157,7 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
157
157
|
var newState = _object_spread_props(_object_spread({}, state), {
|
|
158
158
|
dragging: true
|
|
159
159
|
});
|
|
160
|
-
var isEdge = !opened || touch.deltaX.current * startOffset.current < 0;
|
|
160
|
+
var isEdge = !opened.current || touch.deltaX.current * startOffset.current < 0;
|
|
161
161
|
if (isEdge) {
|
|
162
162
|
preventDefault(event, true);
|
|
163
163
|
}
|
|
@@ -183,7 +183,7 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
183
183
|
var toggle = function(side) {
|
|
184
184
|
var offset = Math.abs(state.offset);
|
|
185
185
|
var base = 0.3;
|
|
186
|
-
var baseNum = opened ? 1 - base : base;
|
|
186
|
+
var baseNum = opened.current ? 1 - base : base;
|
|
187
187
|
var width = side === 'left' ? actionWidth.current.left : actionWidth.current.right;
|
|
188
188
|
if (width && offset > Number(width) * baseNum) {
|
|
189
189
|
open(side);
|
|
@@ -63,7 +63,7 @@ page {
|
|
|
63
63
|
.nut-switch-button .nut-icon {
|
|
64
64
|
width: calc((var(--nutui-switch-height, calc(28px * var(--nut-scale-f, 1))) - var(--nutui-switch-border-width, calc(2px * var(--nut-scale-f, 1))) * 2) / 2);
|
|
65
65
|
height: calc((var(--nutui-switch-height, calc(28px * var(--nut-scale-f, 1))) - var(--nutui-switch-border-width, calc(2px * var(--nut-scale-f, 1))) * 2) / 2);
|
|
66
|
-
color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #
|
|
66
|
+
color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #ff91a5));
|
|
67
67
|
}
|
|
68
68
|
.nut-switch-close {
|
|
69
69
|
background-color: var(--nutui-switch-inactive-background-color, var(--nutui-color-text-disabled, #c2c4cc));
|
|
@@ -109,7 +109,7 @@ page {
|
|
|
109
109
|
color: var(--nutui-switch-inactive-disabled-label-text-color, var(--nutui-color-text-disabled, #c2c4cc));
|
|
110
110
|
}
|
|
111
111
|
.nut-switch-disabled {
|
|
112
|
-
background-color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #
|
|
112
|
+
background-color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #ff91a5));
|
|
113
113
|
}
|
|
114
114
|
.nut-switch-disabled-close {
|
|
115
115
|
background-color: var(--nutui-switch-inactive-disabled-background-color, var(--nutui-color-background, #f2f3f5));
|
|
@@ -63,7 +63,7 @@ page {
|
|
|
63
63
|
.nut-switch-button .nut-icon {
|
|
64
64
|
width: calc((var(--nutui-switch-height, calc(28px * var(--nut-scale-f, 1))) - var(--nutui-switch-border-width, calc(2px * var(--nut-scale-f, 1))) * 2) / 2);
|
|
65
65
|
height: calc((var(--nutui-switch-height, calc(28px * var(--nut-scale-f, 1))) - var(--nutui-switch-border-width, calc(2px * var(--nut-scale-f, 1))) * 2) / 2);
|
|
66
|
-
color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #
|
|
66
|
+
color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #ff91a5));
|
|
67
67
|
}
|
|
68
68
|
.nut-switch-close {
|
|
69
69
|
background-color: var(--nutui-switch-inactive-background-color, var(--nutui-color-text-disabled, #c2c4cc));
|
|
@@ -109,7 +109,7 @@ page {
|
|
|
109
109
|
color: var(--nutui-switch-inactive-disabled-label-text-color, var(--nutui-color-text-disabled, #c2c4cc));
|
|
110
110
|
}
|
|
111
111
|
.nut-switch-disabled {
|
|
112
|
-
background-color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #
|
|
112
|
+
background-color: var(--nutui-switch-active-disabled-background-color, var(--nutui-color-primary-disabled-special, #ff91a5));
|
|
113
113
|
}
|
|
114
114
|
.nut-switch-disabled-close {
|
|
115
115
|
background-color: var(--nutui-switch-inactive-disabled-background-color, var(--nutui-color-background, #f2f3f5));
|
|
@@ -163,7 +163,7 @@ page {
|
|
|
163
163
|
color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
|
|
164
164
|
border-radius: var(--nutui-tabs-button-border-radius, calc(50px * var(--nut-scale-f, 1)));
|
|
165
165
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
166
|
-
background-color: var(--nutui-tabs-button-active-background-color, var(--nutui-color-primary-light-pressed, #
|
|
166
|
+
background-color: var(--nutui-tabs-button-active-background-color, var(--nutui-color-primary-light-pressed, #ffe8ee));
|
|
167
167
|
border: var(--nutui-tabs-button-active-border, calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-primary, #ff0f23));
|
|
168
168
|
}
|
|
169
169
|
.nut-tabs-titles-divider {
|
|
@@ -228,7 +228,7 @@ page {
|
|
|
228
228
|
left: calc(10px * var(--nut-scale-f, 1));
|
|
229
229
|
width: var(--nutui-tabs-vertical-tab-line-width, calc(3px * var(--nut-scale-f, 1)));
|
|
230
230
|
height: var(--nutui-tabs-vertical-tab-line-height, calc(12px * var(--nut-scale-f, 1)));
|
|
231
|
-
background: var(--nutui-tabs-vertical-tab-line-color, linear-gradient(180deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-light-pressed, #
|
|
231
|
+
background: var(--nutui-tabs-vertical-tab-line-color, linear-gradient(180deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-light-pressed, #ffe8ee) 100%));
|
|
232
232
|
}
|
|
233
233
|
.nut-tabs-vertical .nut-tabs-titles-item-active .nut-tabs-titles-item-smile {
|
|
234
234
|
right: calc(-12px * var(--nut-scale-f, 1));
|
|
@@ -180,7 +180,7 @@ page {
|
|
|
180
180
|
color: var(--nutui-tabs-titles-item-active-color, var(--nutui-color-primary, #ff0f23));
|
|
181
181
|
border-radius: var(--nutui-tabs-button-border-radius, calc(50px * var(--nut-scale-f, 1)));
|
|
182
182
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
183
|
-
background-color: var(--nutui-tabs-button-active-background-color, var(--nutui-color-primary-light-pressed, #
|
|
183
|
+
background-color: var(--nutui-tabs-button-active-background-color, var(--nutui-color-primary-light-pressed, #ffe8ee));
|
|
184
184
|
border: var(--nutui-tabs-button-active-border, calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-primary, #ff0f23));
|
|
185
185
|
}
|
|
186
186
|
.nut-tabs-titles-divider {
|
|
@@ -245,7 +245,7 @@ page {
|
|
|
245
245
|
left: calc(10px * var(--nut-scale-f, 1));
|
|
246
246
|
width: var(--nutui-tabs-vertical-tab-line-width, calc(3px * var(--nut-scale-f, 1)));
|
|
247
247
|
height: var(--nutui-tabs-vertical-tab-line-height, calc(12px * var(--nut-scale-f, 1)));
|
|
248
|
-
background: var(--nutui-tabs-vertical-tab-line-color, linear-gradient(180deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-light-pressed, #
|
|
248
|
+
background: var(--nutui-tabs-vertical-tab-line-color, linear-gradient(180deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-light-pressed, #ffe8ee) 100%));
|
|
249
249
|
}
|
|
250
250
|
.nut-tabs-vertical .nut-tabs-titles-item-active .nut-tabs-titles-item-smile {
|
|
251
251
|
right: calc(-12px * var(--nut-scale-f, 1));
|
|
@@ -43,7 +43,7 @@ page {
|
|
|
43
43
|
background: #fa2c19;
|
|
44
44
|
}
|
|
45
45
|
.nut-tag-info {
|
|
46
|
-
background: var(--nutui-tag-info-background-color, var(--nutui-color-info, #
|
|
46
|
+
background: var(--nutui-tag-info-background-color, var(--nutui-color-info, #0c82f7));
|
|
47
47
|
}
|
|
48
48
|
.nut-tag-success {
|
|
49
49
|
background: var(--nutui-tag-success-background-color, #4fc08d);
|
|
@@ -52,7 +52,7 @@ page {
|
|
|
52
52
|
background: var(--nutui-tag-danger-background-color, var(--nutui-color-danger, #ff0f23));
|
|
53
53
|
}
|
|
54
54
|
.nut-tag-warning {
|
|
55
|
-
background: var(--nutui-tag-warning-background-color, var(--nutui-color-warning, #
|
|
55
|
+
background: var(--nutui-tag-warning-background-color, var(--nutui-color-warning, #ffaa00));
|
|
56
56
|
}
|
|
57
57
|
.nut-tag-round {
|
|
58
58
|
border-radius: var(--nutui-tag-round-border-radius, calc(8px * var(--nut-scale-f, 1)));
|
|
@@ -43,7 +43,7 @@ page {
|
|
|
43
43
|
background: #fa2c19;
|
|
44
44
|
}
|
|
45
45
|
.nut-tag-info {
|
|
46
|
-
background: var(--nutui-tag-info-background-color, var(--nutui-color-info, #
|
|
46
|
+
background: var(--nutui-tag-info-background-color, var(--nutui-color-info, #0c82f7));
|
|
47
47
|
}
|
|
48
48
|
.nut-tag-success {
|
|
49
49
|
background: var(--nutui-tag-success-background-color, #4fc08d);
|
|
@@ -52,7 +52,7 @@ page {
|
|
|
52
52
|
background: var(--nutui-tag-danger-background-color, var(--nutui-color-danger, #ff0f23));
|
|
53
53
|
}
|
|
54
54
|
.nut-tag-warning {
|
|
55
|
-
background: var(--nutui-tag-warning-background-color, var(--nutui-color-warning, #
|
|
55
|
+
background: var(--nutui-tag-warning-background-color, var(--nutui-color-warning, #ffaa00));
|
|
56
56
|
}
|
|
57
57
|
.nut-tag-round {
|
|
58
58
|
border-radius: var(--nutui-tag-round-border-radius, calc(8px * var(--nut-scale-f, 1)));
|
|
@@ -32,7 +32,7 @@ page {
|
|
|
32
32
|
border: calc(1px * var(--nut-scale-f, 1)) solid transparent;
|
|
33
33
|
}
|
|
34
34
|
.nut-timedetail-item.active {
|
|
35
|
-
background-color: var(--nutui-color-primary-light-pressed, #
|
|
35
|
+
background-color: var(--nutui-color-primary-light-pressed, #ffe8ee);
|
|
36
36
|
border: calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-primary, #ff0f23);
|
|
37
37
|
color: var(--nutui-color-primary, #ff0f23);
|
|
38
38
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
@@ -32,7 +32,7 @@ page {
|
|
|
32
32
|
border: calc(1px * var(--nut-scale-f, 1)) solid transparent;
|
|
33
33
|
}
|
|
34
34
|
.nut-timedetail-item.active {
|
|
35
|
-
background-color: var(--nutui-color-primary-light-pressed, #
|
|
35
|
+
background-color: var(--nutui-color-primary-light-pressed, #ffe8ee);
|
|
36
36
|
border: calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-primary, #ff0f23);
|
|
37
37
|
color: var(--nutui-color-primary, #ff0f23);
|
|
38
38
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
@@ -436,7 +436,7 @@ page {
|
|
|
436
436
|
border: 1px solid transparent;
|
|
437
437
|
}
|
|
438
438
|
.nut-timedetail-item.active {
|
|
439
|
-
background-color: var(--nutui-color-primary-light-pressed, #
|
|
439
|
+
background-color: var(--nutui-color-primary-light-pressed, #ffe8ee);
|
|
440
440
|
border: 1px solid var(--nutui-color-primary, #ff0f23);
|
|
441
441
|
color: var(--nutui-color-primary, #ff0f23);
|
|
442
442
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
@@ -52,19 +52,20 @@ page {
|
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
justify-content: center;
|
|
54
54
|
align-items: center;
|
|
55
|
-
min-width: calc(
|
|
56
|
-
max-width:
|
|
55
|
+
min-width: var(--nutui-toast-inner-min-width, calc(88px * var(--nut-scale-f, 1)));
|
|
56
|
+
max-width: var(--nutui-toast-inner-max-width, calc(200px * var(--nut-scale-f, 1)));
|
|
57
57
|
box-sizing: border-box;
|
|
58
58
|
font-size: var(--nutui-toast-text-font-size, var(--nutui-font-size-base, calc(14px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
|
|
59
59
|
text-align: var(--nutui-toast-inner-text-align, center);
|
|
60
|
-
padding: var(--nutui-toast-inner-padding, calc(
|
|
60
|
+
padding: var(--nutui-toast-inner-padding, calc(12px * var(--nut-scale-f, 1)) calc(16px * var(--nut-scale-f, 1)));
|
|
61
61
|
word-break: break-all;
|
|
62
62
|
background: var(--nutui-toast-inner-bg-color, var(--nutui-color-mask, rgba(0, 0, 0, 0.7)));
|
|
63
63
|
border-radius: var(--nutui-toast-inner-border-radius, var(--nutui-radius-xl, calc(12px * var(--nut-scale-f, 1))));
|
|
64
64
|
color: var(--nutui-toast-font-color, #ffffff);
|
|
65
65
|
}
|
|
66
|
-
.nut-toast-
|
|
67
|
-
|
|
66
|
+
.nut-toast-has-icon .nut-toast-inner {
|
|
67
|
+
min-width: var(--nutui-toast-inner-has-icon-min-width, calc(97px * var(--nut-scale-f, 1)));
|
|
68
|
+
max-width: var(--nutui-toast-inner-has-icon-max-width, calc(225px * var(--nut-scale-f, 1)));
|
|
68
69
|
}
|
|
69
70
|
.nut-toast-inner-normal {
|
|
70
71
|
word-break: normal;
|
|
@@ -90,8 +91,9 @@ page {
|
|
|
90
91
|
top: var(--nutui-toast-inner-top, 20%);
|
|
91
92
|
}
|
|
92
93
|
.nut-toast-text {
|
|
93
|
-
color: #ffffff;
|
|
94
|
+
color: var(--nutui-toast-font-color, var(--nutui-white, #ffffff));
|
|
94
95
|
text-align: var(--nutui-toast-inner-text-align, center);
|
|
96
|
+
font-weight: var(--nutui-toast-text-font-weight, 400);
|
|
95
97
|
/* #ifdef harmony dynamic*/
|
|
96
98
|
line-height: normal;
|
|
97
99
|
/* #endif */
|
|
@@ -101,9 +103,9 @@ page {
|
|
|
101
103
|
height: auto;
|
|
102
104
|
}
|
|
103
105
|
.nut-toast-title {
|
|
104
|
-
color: #ffffff;
|
|
106
|
+
color: var(--nutui-toast-font-color, var(--nutui-white, #ffffff));
|
|
105
107
|
font-size: var(--nutui-toast-title-font-size, var(--nutui-font-size-md, calc(16px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
|
|
106
|
-
font-weight: 600;
|
|
108
|
+
font-weight: var(--nutui-toast-title-font-weight, 600);
|
|
107
109
|
text-align: var(--nutui-toast-inner-text-align, center);
|
|
108
110
|
/* #ifdef harmony dynamic*/
|
|
109
111
|
line-height: normal;
|
|
@@ -113,21 +115,22 @@ page {
|
|
|
113
115
|
/* #endif */
|
|
114
116
|
}
|
|
115
117
|
.nut-toast .nut-icon {
|
|
116
|
-
width: calc(
|
|
117
|
-
height: calc(
|
|
118
|
-
color: #ffffff;
|
|
118
|
+
width: calc(20px * var(--nut-scale-f, 1));
|
|
119
|
+
height: calc(20px * var(--nut-scale-f, 1));
|
|
120
|
+
color: var(--nutui-toast-icon-color, var(--nutui-toast-font-color, var(--nutui-white, #ffffff)));
|
|
119
121
|
}
|
|
120
122
|
.nut-toast-icon-wrapper {
|
|
121
123
|
width: 100%;
|
|
122
124
|
display: flex;
|
|
123
125
|
align-items: center;
|
|
124
126
|
justify-content: center;
|
|
125
|
-
margin:
|
|
126
|
-
|
|
127
|
+
margin: 0;
|
|
128
|
+
padding: calc(10px * var(--nut-scale-f, 1)) 0;
|
|
129
|
+
color: var(--nutui-toast-icon-color, var(--nutui-toast-font-color, var(--nutui-white, #ffffff)));
|
|
127
130
|
}
|
|
128
131
|
.nut-toast-icon-wrapper-icon {
|
|
129
|
-
width: calc(
|
|
130
|
-
height: calc(
|
|
132
|
+
width: calc(20px * var(--nut-scale-f, 1));
|
|
133
|
+
height: calc(20px * var(--nut-scale-f, 1));
|
|
131
134
|
}
|
|
132
135
|
.nut-toast-rtl {
|
|
133
136
|
left: auto;
|
|
@@ -106,19 +106,20 @@ page {
|
|
|
106
106
|
flex-direction: column;
|
|
107
107
|
justify-content: center;
|
|
108
108
|
align-items: center;
|
|
109
|
-
min-width: calc(
|
|
110
|
-
max-width:
|
|
109
|
+
min-width: var(--nutui-toast-inner-min-width, calc(88px * var(--nut-scale-f, 1)));
|
|
110
|
+
max-width: var(--nutui-toast-inner-max-width, calc(200px * var(--nut-scale-f, 1)));
|
|
111
111
|
box-sizing: border-box;
|
|
112
112
|
font-size: var(--nutui-toast-text-font-size, var(--nutui-font-size-base, calc(14px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
|
|
113
113
|
text-align: var(--nutui-toast-inner-text-align, center);
|
|
114
|
-
padding: var(--nutui-toast-inner-padding, calc(
|
|
114
|
+
padding: var(--nutui-toast-inner-padding, calc(12px * var(--nut-scale-f, 1)) calc(16px * var(--nut-scale-f, 1)));
|
|
115
115
|
word-break: break-all;
|
|
116
116
|
background: var(--nutui-toast-inner-bg-color, var(--nutui-color-mask, rgba(0, 0, 0, 0.7)));
|
|
117
117
|
border-radius: var(--nutui-toast-inner-border-radius, var(--nutui-radius-xl, calc(12px * var(--nut-scale-f, 1))));
|
|
118
118
|
color: var(--nutui-toast-font-color, #ffffff);
|
|
119
119
|
}
|
|
120
|
-
.nut-toast-
|
|
121
|
-
|
|
120
|
+
.nut-toast-has-icon .nut-toast-inner {
|
|
121
|
+
min-width: var(--nutui-toast-inner-has-icon-min-width, calc(97px * var(--nut-scale-f, 1)));
|
|
122
|
+
max-width: var(--nutui-toast-inner-has-icon-max-width, calc(225px * var(--nut-scale-f, 1)));
|
|
122
123
|
}
|
|
123
124
|
.nut-toast-inner-normal {
|
|
124
125
|
word-break: normal;
|
|
@@ -144,8 +145,9 @@ page {
|
|
|
144
145
|
top: var(--nutui-toast-inner-top, 20%);
|
|
145
146
|
}
|
|
146
147
|
.nut-toast-text {
|
|
147
|
-
color: #ffffff;
|
|
148
|
+
color: var(--nutui-toast-font-color, var(--nutui-white, #ffffff));
|
|
148
149
|
text-align: var(--nutui-toast-inner-text-align, center);
|
|
150
|
+
font-weight: var(--nutui-toast-text-font-weight, 400);
|
|
149
151
|
/* #ifdef harmony dynamic*/
|
|
150
152
|
line-height: normal;
|
|
151
153
|
/* #endif */
|
|
@@ -155,9 +157,9 @@ page {
|
|
|
155
157
|
height: auto;
|
|
156
158
|
}
|
|
157
159
|
.nut-toast-title {
|
|
158
|
-
color: #ffffff;
|
|
160
|
+
color: var(--nutui-toast-font-color, var(--nutui-white, #ffffff));
|
|
159
161
|
font-size: var(--nutui-toast-title-font-size, var(--nutui-font-size-md, calc(16px * var(--nut-scale-font, var(--nut-scale-f, 1)))));
|
|
160
|
-
font-weight: 600;
|
|
162
|
+
font-weight: var(--nutui-toast-title-font-weight, 600);
|
|
161
163
|
text-align: var(--nutui-toast-inner-text-align, center);
|
|
162
164
|
/* #ifdef harmony dynamic*/
|
|
163
165
|
line-height: normal;
|
|
@@ -167,21 +169,22 @@ page {
|
|
|
167
169
|
/* #endif */
|
|
168
170
|
}
|
|
169
171
|
.nut-toast .nut-icon {
|
|
170
|
-
width: calc(
|
|
171
|
-
height: calc(
|
|
172
|
-
color: #ffffff;
|
|
172
|
+
width: calc(20px * var(--nut-scale-f, 1));
|
|
173
|
+
height: calc(20px * var(--nut-scale-f, 1));
|
|
174
|
+
color: var(--nutui-toast-icon-color, var(--nutui-toast-font-color, var(--nutui-white, #ffffff)));
|
|
173
175
|
}
|
|
174
176
|
.nut-toast-icon-wrapper {
|
|
175
177
|
width: 100%;
|
|
176
178
|
display: flex;
|
|
177
179
|
align-items: center;
|
|
178
180
|
justify-content: center;
|
|
179
|
-
margin:
|
|
180
|
-
|
|
181
|
+
margin: 0;
|
|
182
|
+
padding: calc(10px * var(--nut-scale-f, 1)) 0;
|
|
183
|
+
color: var(--nutui-toast-icon-color, var(--nutui-toast-font-color, var(--nutui-white, #ffffff)));
|
|
181
184
|
}
|
|
182
185
|
.nut-toast-icon-wrapper-icon {
|
|
183
|
-
width: calc(
|
|
184
|
-
height: calc(
|
|
186
|
+
width: calc(20px * var(--nut-scale-f, 1));
|
|
187
|
+
height: calc(20px * var(--nut-scale-f, 1));
|
|
185
188
|
}
|
|
186
189
|
.nut-toast-rtl {
|
|
187
190
|
left: auto;
|
|
@@ -42,9 +42,8 @@
|
|
|
42
42
|
flex-direction: column;
|
|
43
43
|
justify-content: center;
|
|
44
44
|
align-items: center;
|
|
45
|
-
min-width: scale-px(
|
|
46
|
-
max-width:
|
|
47
|
-
// max-width: 224px;
|
|
45
|
+
min-width: var(--nutui-toast-inner-min-width, scale-px(88px));
|
|
46
|
+
max-width: var(--nutui-toast-inner-max-width, scale-px(200px));
|
|
48
47
|
box-sizing: border-box;
|
|
49
48
|
font-size: $toast-text-font-size;
|
|
50
49
|
text-align: $toast-inner-text-align;
|
|
@@ -54,9 +53,9 @@
|
|
|
54
53
|
border-radius: $toast-inner-border-radius;
|
|
55
54
|
color: $toast-font-color;
|
|
56
55
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
.nut-toast-has-icon & {
|
|
57
|
+
min-width: var(--nutui-toast-inner-has-icon-min-width, scale-px(97px));
|
|
58
|
+
max-width: var(--nutui-toast-inner-has-icon-max-width, scale-px(225px));
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
&-normal {
|
|
@@ -91,8 +90,9 @@
|
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
&-text {
|
|
94
|
-
color: #ffffff;
|
|
93
|
+
color: var(--nutui-toast-font-color, var(--nutui-white, #ffffff));
|
|
95
94
|
text-align: $toast-inner-text-align;
|
|
95
|
+
font-weight: var(--nutui-toast-text-font-weight, 400);
|
|
96
96
|
/* #ifdef harmony dynamic*/
|
|
97
97
|
line-height: normal;
|
|
98
98
|
/* #endif */
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&-title {
|
|
106
|
-
color: #ffffff;
|
|
106
|
+
color: var(--nutui-toast-font-color, var(--nutui-white, #ffffff));
|
|
107
107
|
font-size: $toast-title-font-size;
|
|
108
|
-
font-weight: 600;
|
|
108
|
+
font-weight: var(--nutui-toast-title-font-weight, 600);
|
|
109
109
|
text-align: $toast-inner-text-align;
|
|
110
110
|
/* #ifdef harmony dynamic*/
|
|
111
111
|
line-height: normal;
|
|
@@ -116,9 +116,12 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.nut-icon {
|
|
119
|
-
width: scale-px(
|
|
120
|
-
height: scale-px(
|
|
121
|
-
color:
|
|
119
|
+
width: scale-px(20px);
|
|
120
|
+
height: scale-px(20px);
|
|
121
|
+
color: var(
|
|
122
|
+
--nutui-toast-icon-color,
|
|
123
|
+
var(--nutui-toast-font-color, var(--nutui-white, #ffffff))
|
|
124
|
+
);
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
&-icon-wrapper {
|
|
@@ -126,12 +129,16 @@
|
|
|
126
129
|
display: flex;
|
|
127
130
|
align-items: center;
|
|
128
131
|
justify-content: center;
|
|
129
|
-
margin:
|
|
130
|
-
|
|
132
|
+
margin: 0;
|
|
133
|
+
padding: scale-px(10px) 0;
|
|
134
|
+
color: var(
|
|
135
|
+
--nutui-toast-icon-color,
|
|
136
|
+
var(--nutui-toast-font-color, var(--nutui-white, #ffffff))
|
|
137
|
+
);
|
|
131
138
|
|
|
132
139
|
&-icon {
|
|
133
|
-
width: scale-px(
|
|
134
|
-
height: scale-px(
|
|
140
|
+
width: scale-px(20px);
|
|
141
|
+
height: scale-px(20px);
|
|
135
142
|
}
|
|
136
143
|
}
|
|
137
144
|
|