@nutui/nutui-react 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/style/style.css +2 -2
- package/dist/cjs/packages/audio/audio.js +2 -2
- package/dist/cjs/packages/button/button.js +30 -6
- 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-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/calendarcard/style/style.css +1 -1
- 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-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/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/datepicker/datepicker.js +3 -5
- package/dist/cjs/packages/datepicker/utils.js +7 -0
- 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-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/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-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/progress/progress.js +1 -1
- 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-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/range/style/style.css +3 -3
- package/dist/cjs/packages/resultpage/resultpage.js +5 -5
- 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-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/swipe/swipe.js +20 -16
- package/dist/cjs/packages/switch/style/style.css +2 -2
- package/dist/cjs/packages/tabs/style/style.css +2 -2
- package/dist/cjs/packages/tag/style/style.css +2 -2
- package/dist/cjs/packages/timedetail/style/style.css +1 -1
- package/dist/cjs/packages/toast/Notification.js +1 -1
- package/dist/cjs/packages/toast/style/style.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 +1 -1
- 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/style/style.css +2 -2
- package/dist/es/packages/audio/audio.js +2 -2
- package/dist/es/packages/button/button.js +30 -6
- 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-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/calendarcard/style/style.css +1 -1
- 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-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/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/datepicker/datepicker.js +3 -5
- package/dist/es/packages/datepicker/utils.js +7 -0
- 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-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/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-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/progress/progress.js +1 -1
- 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-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/range/style/style.css +3 -3
- package/dist/es/packages/resultpage/resultpage.js +5 -5
- 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-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/swipe/swipe.js +20 -16
- package/dist/es/packages/switch/style/style.css +2 -2
- package/dist/es/packages/tabs/style/style.css +2 -2
- package/dist/es/packages/tag/style/style.css +2 -2
- package/dist/es/packages/timedetail/style/style.css +1 -1
- package/dist/es/packages/toast/Notification.js +1 -1
- package/dist/es/packages/toast/style/style.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 +1 -1
- 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 +103 -50
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +32 -32
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +33 -33
- package/dist/style.css +1 -1
- package/dist/style.scss +39 -39
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# v4.0.0-beta.1
|
|
2
|
+
`2026-06-05`
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
* 🤖 ci: add strict error handling and exit codes to issue resolver agent
|
|
6
|
+
* 📖 docs: 修订文档
|
|
7
|
+
* :sparkles: feat(agents): add local issue watcher daemon script
|
|
8
|
+
* :sparkles: feat(toast): 适配v16,增加升级v4版本的文档 (#3471)
|
|
9
|
+
* :sparkles: feat: inputnumber暗黑适配 (#3470)
|
|
10
|
+
* :sparkles: feat: inputnumber更新 (#3466)
|
|
11
|
+
* :sparkles: feat(checkbox): 适配v16并补充主题相关文档 (#3469)
|
|
12
|
+
* :sparkles: feat(radio): 适配V16 (#3468)
|
|
13
|
+
* :sparkles: feat(test): 单测处理 (#3467)
|
|
14
|
+
* :sparkles: feat(button): v16 重构+无障碍支持 (#3465)
|
|
15
|
+
* :bug: fix(swipe): resolve infinite re-render loop causing page freeze
|
|
16
|
+
* :bug: fix(datepicker): 解决时间解析为 Invalid Date 的 Bug (#3472)
|
|
17
|
+
* :bug: fix: conflicts
|
|
18
|
+
* 🪵 refactor: 添加手动触发 (#3474)
|
|
19
|
+
* 🪵 refactor: 添加GitHub Actions 自动化的 workflow 配置文件 (#3473)
|
|
20
|
+
* 💡 test(swipe): add touch interaction tests for coverage
|
|
21
|
+
|
|
22
|
+
|
|
1
23
|
# v3.0.20
|
|
2
24
|
|
|
3
25
|
`2026-05-20`
|
|
@@ -9,6 +9,11 @@ export interface BaseLang {
|
|
|
9
9
|
edit: string;
|
|
10
10
|
reset: string;
|
|
11
11
|
close: string;
|
|
12
|
+
back: string;
|
|
13
|
+
clear: string;
|
|
14
|
+
image: {
|
|
15
|
+
errorTip: string;
|
|
16
|
+
};
|
|
12
17
|
video: {
|
|
13
18
|
errorTip: string;
|
|
14
19
|
clickRetry: string;
|
|
@@ -39,6 +44,7 @@ export interface BaseLang {
|
|
|
39
44
|
today: string;
|
|
40
45
|
loadPreviousMonth: string;
|
|
41
46
|
noEarlierMonth: string;
|
|
47
|
+
dayAriaLabel?: Function;
|
|
42
48
|
};
|
|
43
49
|
shortpassword: {
|
|
44
50
|
title: string;
|
|
@@ -19,6 +19,11 @@ var enUS = {
|
|
|
19
19
|
edit: 'Edit',
|
|
20
20
|
reset: 'Reset',
|
|
21
21
|
close: 'Close',
|
|
22
|
+
back: 'Back',
|
|
23
|
+
clear: 'Clear',
|
|
24
|
+
image: {
|
|
25
|
+
errorTip: 'Image failed to load'
|
|
26
|
+
},
|
|
22
27
|
video: {
|
|
23
28
|
errorTip: 'Error Tip',
|
|
24
29
|
clickRetry: 'Click Retry'
|
|
@@ -58,7 +63,18 @@ var enUS = {
|
|
|
58
63
|
},
|
|
59
64
|
today: 'Today',
|
|
60
65
|
loadPreviousMonth: 'Load Previous Month',
|
|
61
|
-
noEarlierMonth: 'No Earlier Month'
|
|
66
|
+
noEarlierMonth: 'No Earlier Month',
|
|
67
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
68
|
+
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
69
|
+
var label = today ? "Today, ".concat(dateStr) : dateStr;
|
|
70
|
+
if (isActive) {
|
|
71
|
+
label = "Selected ".concat(label);
|
|
72
|
+
}
|
|
73
|
+
if (isDisable) {
|
|
74
|
+
label = "".concat(label, " disabled");
|
|
75
|
+
}
|
|
76
|
+
return label;
|
|
77
|
+
}
|
|
62
78
|
},
|
|
63
79
|
shortpassword: {
|
|
64
80
|
title: 'Please input a password',
|
|
@@ -19,6 +19,11 @@ var idID = {
|
|
|
19
19
|
edit: 'Sunting',
|
|
20
20
|
reset: 'Mengatur Ulang',
|
|
21
21
|
close: 'Tutup',
|
|
22
|
+
back: 'Kembali',
|
|
23
|
+
clear: 'Bersihkan',
|
|
24
|
+
image: {
|
|
25
|
+
errorTip: 'Gambar gagal dimuat'
|
|
26
|
+
},
|
|
22
27
|
video: {
|
|
23
28
|
errorTip: 'Terjadi Kesalahan',
|
|
24
29
|
clickRetry: 'Coba Lagi'
|
|
@@ -58,7 +63,18 @@ var idID = {
|
|
|
58
63
|
},
|
|
59
64
|
today: 'Hari ini',
|
|
60
65
|
loadPreviousMonth: 'Muat Bulan Sebelumnya',
|
|
61
|
-
noEarlierMonth: 'Tidak Ada Bulan Sebelumnya'
|
|
66
|
+
noEarlierMonth: 'Tidak Ada Bulan Sebelumnya',
|
|
67
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
68
|
+
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
69
|
+
var label = today ? "Hari ini, ".concat(dateStr) : dateStr;
|
|
70
|
+
if (isActive) {
|
|
71
|
+
label = "Dipilih ".concat(label);
|
|
72
|
+
}
|
|
73
|
+
if (isDisable) {
|
|
74
|
+
label = "".concat(label, " dinonaktifkan");
|
|
75
|
+
}
|
|
76
|
+
return label;
|
|
77
|
+
}
|
|
62
78
|
},
|
|
63
79
|
shortpassword: {
|
|
64
80
|
title: 'SIlakan masukan kata sandi',
|
|
@@ -18,6 +18,12 @@ var jaJP = {
|
|
|
18
18
|
select: '選択してください',
|
|
19
19
|
edit: '編集',
|
|
20
20
|
reset: 'リセット',
|
|
21
|
+
close: '閉じる',
|
|
22
|
+
back: '戻る',
|
|
23
|
+
clear: 'クリア',
|
|
24
|
+
image: {
|
|
25
|
+
errorTip: '画像の読み込みに失敗しました'
|
|
26
|
+
},
|
|
21
27
|
video: {
|
|
22
28
|
errorTip: '動画の読み込みに失敗しました',
|
|
23
29
|
clickRetry: 'クリックして再試行'
|
|
@@ -57,7 +63,16 @@ var jaJP = {
|
|
|
57
63
|
},
|
|
58
64
|
today: '今日',
|
|
59
65
|
loadPreviousMonth: '前の月を読み込む',
|
|
60
|
-
noEarlierMonth: 'これより前の月はありません'
|
|
66
|
+
noEarlierMonth: 'これより前の月はありません',
|
|
67
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
68
|
+
if (isActive) {
|
|
69
|
+
return today ? "今日".concat(month, "月").concat(day, "日を選択しました") : "".concat(month, "月").concat(day, "日を選択しました");
|
|
70
|
+
}
|
|
71
|
+
if (isDisable) {
|
|
72
|
+
return today ? "今日".concat(month, "月").concat(day, "日は無効です") : "".concat(month, "月").concat(day, "日は無効です");
|
|
73
|
+
}
|
|
74
|
+
return today ? "今日".concat(month, "月").concat(day, "日") : "".concat(month, "月").concat(day, "日");
|
|
75
|
+
}
|
|
61
76
|
},
|
|
62
77
|
shortpassword: {
|
|
63
78
|
title: 'パスワードを入力してください',
|
|
@@ -165,7 +180,6 @@ var jaJP = {
|
|
|
165
180
|
errorCanvasTips: '現在の環境はCanvasをサポートしていません'
|
|
166
181
|
},
|
|
167
182
|
mask: 'マスク',
|
|
168
|
-
close: '閉じる',
|
|
169
183
|
quickenter: {
|
|
170
184
|
title: 'クイックアクセス'
|
|
171
185
|
}
|
|
@@ -19,6 +19,11 @@ var trTR = {
|
|
|
19
19
|
edit: 'düzenlemek',
|
|
20
20
|
reset: 'sıfırlama',
|
|
21
21
|
close: 'Kapat',
|
|
22
|
+
back: 'Geri',
|
|
23
|
+
clear: 'Temizle',
|
|
24
|
+
image: {
|
|
25
|
+
errorTip: 'Resim yüklenemedi'
|
|
26
|
+
},
|
|
22
27
|
video: {
|
|
23
28
|
errorTip: 'Video yüklenemedi',
|
|
24
29
|
clickRetry: 'Yeniden Tıklayın'
|
|
@@ -58,7 +63,18 @@ var trTR = {
|
|
|
58
63
|
},
|
|
59
64
|
today: 'Bugün',
|
|
60
65
|
loadPreviousMonth: 'Önceki ayı yükle',
|
|
61
|
-
noEarlierMonth: 'Önceki ay yok'
|
|
66
|
+
noEarlierMonth: 'Önceki ay yok',
|
|
67
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
68
|
+
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
69
|
+
var label = today ? "Bug\xfcn, ".concat(dateStr) : dateStr;
|
|
70
|
+
if (isActive) {
|
|
71
|
+
label = "Se\xe7ili ".concat(label);
|
|
72
|
+
}
|
|
73
|
+
if (isDisable) {
|
|
74
|
+
label = "".concat(label, " devre dışı");
|
|
75
|
+
}
|
|
76
|
+
return label;
|
|
77
|
+
}
|
|
62
78
|
},
|
|
63
79
|
shortpassword: {
|
|
64
80
|
title: 'Lütfen şifrenizi girin',
|
|
@@ -19,6 +19,11 @@ var viVN = {
|
|
|
19
19
|
edit: 'Chỉnh sửa',
|
|
20
20
|
reset: 'Đặt lại',
|
|
21
21
|
close: 'Đóng',
|
|
22
|
+
back: 'Quay lại',
|
|
23
|
+
clear: 'Xóa',
|
|
24
|
+
image: {
|
|
25
|
+
errorTip: 'Tải ảnh không thành công'
|
|
26
|
+
},
|
|
22
27
|
video: {
|
|
23
28
|
errorTip: 'Tải video không thành công',
|
|
24
29
|
clickRetry: 'Nhấn để thử lại'
|
|
@@ -58,7 +63,18 @@ var viVN = {
|
|
|
58
63
|
},
|
|
59
64
|
today: 'Hôm nay',
|
|
60
65
|
loadPreviousMonth: 'Tải dữ liệu của tháng trước',
|
|
61
|
-
noEarlierMonth: 'Không có tháng nào sớm hơn'
|
|
66
|
+
noEarlierMonth: 'Không có tháng nào sớm hơn',
|
|
67
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
68
|
+
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
69
|
+
var label = today ? "H\xf4m nay, ".concat(dateStr) : dateStr;
|
|
70
|
+
if (isActive) {
|
|
71
|
+
label = "Đ\xe3 chọn ".concat(label);
|
|
72
|
+
}
|
|
73
|
+
if (isDisable) {
|
|
74
|
+
label = "".concat(label, " bị v\xf4 hiệu");
|
|
75
|
+
}
|
|
76
|
+
return label;
|
|
77
|
+
}
|
|
62
78
|
},
|
|
63
79
|
shortpassword: {
|
|
64
80
|
title: 'Vui lòng nhập mật khẩu',
|
|
@@ -19,6 +19,11 @@ var zhCN = {
|
|
|
19
19
|
edit: '编辑',
|
|
20
20
|
reset: '重置',
|
|
21
21
|
close: '关闭',
|
|
22
|
+
back: '返回',
|
|
23
|
+
clear: '清除',
|
|
24
|
+
image: {
|
|
25
|
+
errorTip: '图片加载失败'
|
|
26
|
+
},
|
|
22
27
|
video: {
|
|
23
28
|
errorTip: '视频加载失败',
|
|
24
29
|
clickRetry: '点击重试'
|
|
@@ -58,7 +63,16 @@ var zhCN = {
|
|
|
58
63
|
},
|
|
59
64
|
today: '今天',
|
|
60
65
|
loadPreviousMonth: '加载上一个月',
|
|
61
|
-
noEarlierMonth: '没有更早月份'
|
|
66
|
+
noEarlierMonth: '没有更早月份',
|
|
67
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
68
|
+
if (isActive) {
|
|
69
|
+
return today ? "已选定今日".concat(month, "月").concat(day, "号") : "已选定".concat(month, "月").concat(day, "号");
|
|
70
|
+
}
|
|
71
|
+
if (isDisable) {
|
|
72
|
+
return today ? "".concat(month, "月").concat(day, "号今日按钮变暗") : "".concat(month, "月").concat(day, "号按钮变暗");
|
|
73
|
+
}
|
|
74
|
+
return today ? "".concat(month, "月").concat(day, "号今日") : "".concat(month, "月").concat(day, "号");
|
|
75
|
+
}
|
|
62
76
|
},
|
|
63
77
|
shortpassword: {
|
|
64
78
|
title: '请输入密码',
|
|
@@ -19,6 +19,11 @@ var zhCN = {
|
|
|
19
19
|
edit: '編輯',
|
|
20
20
|
reset: '重置',
|
|
21
21
|
close: '關閉',
|
|
22
|
+
back: '返回',
|
|
23
|
+
clear: '清除',
|
|
24
|
+
image: {
|
|
25
|
+
errorTip: '圖片加載失敗'
|
|
26
|
+
},
|
|
22
27
|
video: {
|
|
23
28
|
errorTip: '視頻加載失敗',
|
|
24
29
|
clickRetry: '點擊重試'
|
|
@@ -58,7 +63,16 @@ var zhCN = {
|
|
|
58
63
|
},
|
|
59
64
|
today: '今天',
|
|
60
65
|
loadPreviousMonth: '加載上一個月',
|
|
61
|
-
noEarlierMonth: '沒有更早月份'
|
|
66
|
+
noEarlierMonth: '沒有更早月份',
|
|
67
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
68
|
+
if (isActive) {
|
|
69
|
+
return today ? "已選定今日".concat(month, "月").concat(day, "號") : "已選定".concat(month, "月").concat(day, "號");
|
|
70
|
+
}
|
|
71
|
+
if (isDisable) {
|
|
72
|
+
return today ? "".concat(month, "月").concat(day, "號今日按鈕變暗") : "".concat(month, "月").concat(day, "號按鈕變暗");
|
|
73
|
+
}
|
|
74
|
+
return today ? "".concat(month, "月").concat(day, "號今日") : "".concat(month, "月").concat(day, "號");
|
|
75
|
+
}
|
|
62
76
|
},
|
|
63
77
|
shortpassword: {
|
|
64
78
|
title: '請輸入密碼',
|
|
@@ -19,6 +19,11 @@ var zhUG = {
|
|
|
19
19
|
edit: 'يحرر',
|
|
20
20
|
reset: 'إعادة ضبط',
|
|
21
21
|
close: 'تاقاش',
|
|
22
|
+
back: 'قايتىش',
|
|
23
|
+
clear: 'تاقاش',
|
|
24
|
+
image: {
|
|
25
|
+
errorTip: 'رەسىم يۈكلەش مەغلۇپ بولدى'
|
|
26
|
+
},
|
|
22
27
|
video: {
|
|
23
28
|
errorTip: 'فىلىمنى قويۇش مەغلۇپ بولدى',
|
|
24
29
|
clickRetry: 'قايتا سىناش'
|
|
@@ -58,7 +63,18 @@ var zhUG = {
|
|
|
58
63
|
},
|
|
59
64
|
today: 'بۈگۈن',
|
|
60
65
|
loadPreviousMonth: 'ئالدىنقى ئاي',
|
|
61
|
-
noEarlierMonth: 'تۈگىدى'
|
|
66
|
+
noEarlierMonth: 'تۈگىدى',
|
|
67
|
+
dayAriaLabel: function dayAriaLabel(year, month, day, today, isActive, isDisable) {
|
|
68
|
+
var dateStr = "".concat(year, "-").concat(month, "-").concat(day);
|
|
69
|
+
var label = today ? "بۈگۈن, ".concat(dateStr) : dateStr;
|
|
70
|
+
if (isActive) {
|
|
71
|
+
label = "تاللانغان ".concat(label);
|
|
72
|
+
}
|
|
73
|
+
if (isDisable) {
|
|
74
|
+
label = "".concat(label, " چەكلەنگەن");
|
|
75
|
+
}
|
|
76
|
+
return label;
|
|
77
|
+
}
|
|
62
78
|
},
|
|
63
79
|
shortpassword: {
|
|
64
80
|
title: 'مەخپى نومۇرنى كىرگۈزۈڭ',
|
|
@@ -45,7 +45,7 @@ page {
|
|
|
45
45
|
line-height: calc(42px * var(--nut-scale-f, 1));
|
|
46
46
|
margin: auto;
|
|
47
47
|
text-align: center;
|
|
48
|
-
background:
|
|
48
|
+
background: var(--nutui-button-primary-background-color, var(--nutui-color-primary, #ff0f23));
|
|
49
49
|
border-radius: calc(21px * var(--nut-scale-f, 1));
|
|
50
50
|
font-size: var(--nutui-font-size-l, calc(15px * var(--nut-scale-font, var(--nut-scale-f, 1))));
|
|
51
51
|
color: #ffffff;
|
|
@@ -107,7 +107,7 @@ page {
|
|
|
107
107
|
}
|
|
108
108
|
.nut-address-selected-item.active {
|
|
109
109
|
border: calc(1px * var(--nut-scale-f, 1)) solid var(--nutui-color-primary, #ff0f23);
|
|
110
|
-
background-color: var(--nutui-color-primary-light-pressed, #
|
|
110
|
+
background-color: var(--nutui-color-primary-light-pressed, #ffe8ee);
|
|
111
111
|
color: var(--nutui-color-primary, #ff0f23);
|
|
112
112
|
}
|
|
113
113
|
.nut-address-selected-border {
|
|
@@ -162,8 +162,8 @@ var Audio = function Audio(props) {
|
|
|
162
162
|
currentDescription: null,
|
|
163
163
|
maxDescription: null,
|
|
164
164
|
minDescription: null,
|
|
165
|
-
"inactive-color": "#
|
|
166
|
-
"active-color": "#
|
|
165
|
+
"inactive-color": "var(--nutui-color-text-disabled, #c2c4cc)",
|
|
166
|
+
"active-color": "var(--nutui-color-primary, #ff0f23)"
|
|
167
167
|
})), /*#__PURE__*/ _react.default.createElement("div", {
|
|
168
168
|
className: "time"
|
|
169
169
|
}, AudioRef.current ? formatSeconds("".concat(statusRef.current.second)) : '00:00:00')), /*#__PURE__*/ _react.default.createElement("div", {
|
|
@@ -34,7 +34,7 @@ var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typing
|
|
|
34
34
|
onClick: function onClick() {}
|
|
35
35
|
});
|
|
36
36
|
var Button = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
37
|
-
var _ref = (0, _object_spread._)({}, defaultProps, props), color = _ref.color, shape = _ref.shape, fill = _ref.fill, loading = _ref.loading, disabled = _ref.disabled, type = _ref.type, size = _ref.size, block = _ref.block, icon = _ref.icon, rightIcon = _ref.rightIcon, children = _ref.children, className = _ref.className, style = _ref.style, nativeType = _ref.nativeType, onClick = _ref.onClick, rest = (0, _object_without_properties._)(_ref, [
|
|
37
|
+
var _ref = (0, _object_spread._)({}, defaultProps, props), color = _ref.color, shape = _ref.shape, fill = _ref.fill, loading = _ref.loading, disabled = _ref.disabled, type = _ref.type, size = _ref.size, block = _ref.block, icon = _ref.icon, rightIcon = _ref.rightIcon, children = _ref.children, className = _ref.className, style = _ref.style, nativeType = _ref.nativeType, description = _ref.description, onClick = _ref.onClick, rest = (0, _object_without_properties._)(_ref, [
|
|
38
38
|
"color",
|
|
39
39
|
"shape",
|
|
40
40
|
"fill",
|
|
@@ -49,8 +49,22 @@ var Button = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
49
49
|
"className",
|
|
50
50
|
"style",
|
|
51
51
|
"nativeType",
|
|
52
|
+
"description",
|
|
52
53
|
"onClick"
|
|
53
54
|
]);
|
|
55
|
+
var mappedSize = (0, _react.useMemo)(function() {
|
|
56
|
+
if (!size) return 'normal';
|
|
57
|
+
var sizeMap = {
|
|
58
|
+
'48': 'xlarge',
|
|
59
|
+
'40': 'large',
|
|
60
|
+
'32': 'normal',
|
|
61
|
+
'28': 'small',
|
|
62
|
+
'24': 'mini'
|
|
63
|
+
};
|
|
64
|
+
return sizeMap[size] || size;
|
|
65
|
+
}, [
|
|
66
|
+
size
|
|
67
|
+
]);
|
|
54
68
|
var getStyle = (0, _react.useMemo)(function() {
|
|
55
69
|
var style = {};
|
|
56
70
|
if (color) {
|
|
@@ -60,7 +74,7 @@ var Button = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
60
74
|
style.borderColor = color;
|
|
61
75
|
}
|
|
62
76
|
} else {
|
|
63
|
-
style.color = '#fff';
|
|
77
|
+
style.color = 'var(--nutui-color-primary-text, #fff)';
|
|
64
78
|
style.background = color;
|
|
65
79
|
style.borderColor = 'transparent';
|
|
66
80
|
}
|
|
@@ -80,19 +94,29 @@ var Button = /*#__PURE__*/ _react.default.forwardRef(function(props, ref) {
|
|
|
80
94
|
onClick
|
|
81
95
|
]);
|
|
82
96
|
var _obj;
|
|
83
|
-
var buttonClassNames = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(type), (_obj = {}, (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(type, "-solid"), type === 'primary' && !props.fill), (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(fill), props.fill), (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(type, "-").concat(fill), props.fill), (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(
|
|
97
|
+
var buttonClassNames = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(type), (_obj = {}, (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(type, "-solid"), type === 'primary' && !props.fill), (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(fill), props.fill), (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(type, "-").concat(fill), props.fill), (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(mappedSize), mappedSize), (0, _define_property._)(_obj, "".concat(prefixCls, "-has-desc"), !!description), (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(shape), shape), (0, _define_property._)(_obj, "".concat(prefixCls, "-block"), block), (0, _define_property._)(_obj, "".concat(prefixCls, "-disabled"), disabled || loading), (0, _define_property._)(_obj, "".concat(prefixCls, "-").concat(type).concat(props.fill ? "-".concat(fill) : '', "-disabled"), disabled || loading), (0, _define_property._)(_obj, "".concat(prefixCls, "-loading"), loading), (0, _define_property._)(_obj, "".concat(prefixCls, "-icononly"), !children), _obj), className);
|
|
84
98
|
return /*#__PURE__*/ _react.default.createElement("button", (0, _object_spread_props._)((0, _object_spread._)({}, rest), {
|
|
85
99
|
ref: ref,
|
|
86
100
|
type: nativeType,
|
|
87
101
|
className: buttonClassNames,
|
|
88
102
|
style: (0, _object_spread._)({}, getStyle, style),
|
|
103
|
+
"aria-disabled": disabled || loading,
|
|
104
|
+
"aria-busy": loading,
|
|
89
105
|
onClick: handleClick
|
|
90
106
|
}), /*#__PURE__*/ _react.default.createElement("div", {
|
|
91
107
|
className: "nut-button-wrap"
|
|
92
108
|
}, loading && /*#__PURE__*/ _react.default.createElement(_iconsreact.Loading, {
|
|
93
|
-
className: "nut-icon-loading"
|
|
109
|
+
className: "nut-icon-loading",
|
|
110
|
+
"aria-hidden": "true"
|
|
94
111
|
}), !loading && icon, children && /*#__PURE__*/ _react.default.createElement("div", {
|
|
95
|
-
className:
|
|
96
|
-
|
|
112
|
+
className: (0, _classnames.default)({
|
|
113
|
+
'nut-button-text': icon || loading,
|
|
114
|
+
'nut-button-text-right': rightIcon
|
|
115
|
+
})
|
|
116
|
+
}, description ? /*#__PURE__*/ _react.default.createElement("div", {
|
|
117
|
+
className: "nut-button-title"
|
|
118
|
+
}, children) : children, description && /*#__PURE__*/ _react.default.createElement("div", {
|
|
119
|
+
className: "nut-button-desc"
|
|
120
|
+
}, description)), rightIcon));
|
|
97
121
|
});
|
|
98
122
|
Button.displayName = 'NutButton';
|