antd-mobile 5.28.2 → 5.29.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/2x/bundle/antd-mobile.cjs.development.js +429 -217
- package/2x/bundle/antd-mobile.cjs.js +9 -9
- package/2x/bundle/antd-mobile.es.development.js +429 -217
- package/2x/bundle/antd-mobile.es.js +4918 -4678
- package/2x/bundle/antd-mobile.umd.development.js +429 -217
- package/2x/bundle/antd-mobile.umd.js +9 -9
- package/2x/bundle/style.css +36 -33
- package/2x/cjs/components/action-sheet/action-sheet.css +1 -1
- package/2x/cjs/components/action-sheet/action-sheet.js +6 -2
- package/2x/cjs/components/avatar/avatar.d.ts +1 -1
- package/2x/cjs/components/avatar/avatar.js +2 -1
- package/2x/cjs/components/badge/badge.css +2 -2
- package/2x/cjs/components/button/button.css +2 -2
- package/2x/cjs/components/calendar/calendar.js +1 -1
- package/2x/cjs/components/capsule-tabs/capsule-tabs.css +2 -2
- package/2x/cjs/components/check-list/check-list-item.js +3 -1
- package/2x/cjs/components/check-list/check-list.d.ts +1 -0
- package/2x/cjs/components/check-list/check-list.js +2 -0
- package/2x/cjs/components/check-list/context.d.ts +1 -0
- package/2x/cjs/components/checkbox/checkbox.css +2 -2
- package/2x/cjs/components/ellipsis/ellipsis.js +1 -1
- package/2x/cjs/components/image/image.css +1 -1
- package/2x/cjs/components/index-bar/index-bar.css +4 -4
- package/2x/cjs/components/input/input.d.ts +1 -1
- package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +2 -2
- package/2x/cjs/components/notice-bar/notice-bar.css +1 -1
- package/2x/cjs/components/number-keyboard/number-keyboard.js +14 -8
- package/2x/cjs/components/popover/index.d.ts +1 -1
- package/2x/cjs/components/popover/popover.css +1 -1
- package/2x/cjs/components/popover/popover.d.ts +2 -2
- package/2x/cjs/components/popover/popover.js +1 -1
- package/2x/cjs/components/popup/popup.js +13 -11
- package/2x/cjs/components/radio/radio.css +2 -2
- package/2x/cjs/components/search-bar/search-bar.css +1 -1
- package/2x/cjs/components/selector/selector.css +1 -1
- package/2x/cjs/components/selector/selector.js +10 -2
- package/2x/cjs/components/side-bar/side-bar.css +1 -1
- package/2x/cjs/components/slider/slider.css +3 -3
- package/2x/cjs/components/stepper/stepper.css +2 -2
- package/2x/cjs/components/swipe-action/swipe-action.css +1 -1
- package/2x/cjs/components/switch/switch.css +2 -2
- package/2x/cjs/components/tabs/tabs.js +5 -2
- package/2x/cjs/components/text-area/text-area.d.ts +1 -1
- package/2x/cjs/components/text-area/text-area.js +1 -0
- package/2x/cjs/components/virtual-input/virtual-input.js +11 -2
- package/2x/cjs/global/global.css +5 -2
- package/2x/cjs/global/theme-default.css +5 -2
- package/2x/cjs/locales/base.d.ts +3 -0
- package/2x/cjs/locales/base.js +3 -0
- package/2x/cjs/locales/da-DK.d.ts +134 -0
- package/2x/cjs/locales/da-DK.js +132 -0
- package/2x/cjs/locales/en-US.d.ts +3 -0
- package/2x/cjs/locales/es-ES.d.ts +3 -0
- package/2x/cjs/locales/fa-IR.d.ts +3 -0
- package/2x/cjs/locales/fr-FR.d.ts +3 -0
- package/2x/cjs/locales/id-ID.d.ts +3 -0
- package/2x/cjs/locales/it-IT.d.ts +134 -0
- package/2x/cjs/locales/it-IT.js +144 -0
- package/2x/cjs/locales/ja-JP.d.ts +3 -0
- package/2x/cjs/locales/kk-KZ.d.ts +3 -0
- package/2x/cjs/locales/ko-KR.d.ts +3 -0
- package/2x/cjs/locales/nb-NO.d.ts +134 -0
- package/2x/cjs/locales/nb-NO.js +144 -0
- package/2x/cjs/locales/nl-NL.d.ts +134 -0
- package/2x/cjs/locales/nl-NL.js +144 -0
- package/2x/cjs/locales/zh-CN.d.ts +3 -0
- package/2x/cjs/locales/zh-CN.js +3 -0
- package/2x/cjs/locales/zh-HK.d.ts +3 -0
- package/2x/cjs/locales/zh-TW.d.ts +3 -0
- package/2x/es/components/action-sheet/action-sheet.css +1 -1
- package/2x/es/components/action-sheet/action-sheet.js +6 -2
- package/2x/es/components/avatar/avatar.d.ts +1 -1
- package/2x/es/components/avatar/avatar.js +2 -1
- package/2x/es/components/badge/badge.css +2 -2
- package/2x/es/components/button/button.css +2 -2
- package/2x/es/components/calendar/calendar.js +1 -1
- package/2x/es/components/capsule-tabs/capsule-tabs.css +2 -2
- package/2x/es/components/check-list/check-list-item.js +3 -1
- package/2x/es/components/check-list/check-list.d.ts +1 -0
- package/2x/es/components/check-list/check-list.js +2 -0
- package/2x/es/components/check-list/context.d.ts +1 -0
- package/2x/es/components/checkbox/checkbox.css +2 -2
- package/2x/es/components/ellipsis/ellipsis.js +1 -1
- package/2x/es/components/image/image.css +1 -1
- package/2x/es/components/index-bar/index-bar.css +4 -4
- package/2x/es/components/input/input.d.ts +1 -1
- package/2x/es/components/jumbo-tabs/jumbo-tabs.css +2 -2
- package/2x/es/components/notice-bar/notice-bar.css +1 -1
- package/2x/es/components/number-keyboard/number-keyboard.js +14 -8
- package/2x/es/components/popover/index.d.ts +1 -1
- package/2x/es/components/popover/popover.css +1 -1
- package/2x/es/components/popover/popover.d.ts +2 -2
- package/2x/es/components/popover/popover.js +1 -1
- package/2x/es/components/popup/popup.js +13 -11
- package/2x/es/components/radio/radio.css +2 -2
- package/2x/es/components/search-bar/search-bar.css +1 -1
- package/2x/es/components/selector/selector.css +1 -1
- package/2x/es/components/selector/selector.js +10 -2
- package/2x/es/components/side-bar/side-bar.css +1 -1
- package/2x/es/components/slider/slider.css +3 -3
- package/2x/es/components/stepper/stepper.css +2 -2
- package/2x/es/components/swipe-action/swipe-action.css +1 -1
- package/2x/es/components/switch/switch.css +2 -2
- package/2x/es/components/tabs/tabs.js +5 -2
- package/2x/es/components/text-area/text-area.d.ts +1 -1
- package/2x/es/components/text-area/text-area.js +1 -0
- package/2x/es/components/virtual-input/virtual-input.js +11 -2
- package/2x/es/global/global.css +5 -2
- package/2x/es/global/theme-default.css +5 -2
- package/2x/es/locales/base.d.ts +3 -0
- package/2x/es/locales/base.js +3 -0
- package/2x/es/locales/da-DK.d.ts +134 -0
- package/2x/es/locales/da-DK.js +125 -0
- package/2x/es/locales/en-US.d.ts +3 -0
- package/2x/es/locales/es-ES.d.ts +3 -0
- package/2x/es/locales/fa-IR.d.ts +3 -0
- package/2x/es/locales/fr-FR.d.ts +3 -0
- package/2x/es/locales/id-ID.d.ts +3 -0
- package/2x/es/locales/it-IT.d.ts +134 -0
- package/2x/es/locales/it-IT.js +137 -0
- package/2x/es/locales/ja-JP.d.ts +3 -0
- package/2x/es/locales/kk-KZ.d.ts +3 -0
- package/2x/es/locales/ko-KR.d.ts +3 -0
- package/2x/es/locales/nb-NO.d.ts +134 -0
- package/2x/es/locales/nb-NO.js +137 -0
- package/2x/es/locales/nl-NL.d.ts +134 -0
- package/2x/es/locales/nl-NL.js +137 -0
- package/2x/es/locales/zh-CN.d.ts +3 -0
- package/2x/es/locales/zh-CN.js +3 -0
- package/2x/es/locales/zh-HK.d.ts +3 -0
- package/2x/es/locales/zh-TW.d.ts +3 -0
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.development.js +429 -217
- package/bundle/antd-mobile.cjs.js +9 -9
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +429 -217
- package/bundle/antd-mobile.es.js +4918 -4678
- package/bundle/antd-mobile.umd.development.js +429 -217
- package/bundle/antd-mobile.umd.js +9 -9
- package/bundle/style.css +1 -1
- package/cjs/components/action-sheet/action-sheet.css +1 -1
- package/cjs/components/action-sheet/action-sheet.js +6 -2
- package/cjs/components/avatar/avatar.d.ts +1 -1
- package/cjs/components/avatar/avatar.js +2 -1
- package/cjs/components/badge/badge.css +2 -2
- package/cjs/components/button/button.css +2 -2
- package/cjs/components/calendar/calendar.js +1 -1
- package/cjs/components/capsule-tabs/capsule-tabs.css +2 -2
- package/cjs/components/check-list/check-list-item.js +3 -1
- package/cjs/components/check-list/check-list.d.ts +1 -0
- package/cjs/components/check-list/check-list.js +2 -0
- package/cjs/components/check-list/context.d.ts +1 -0
- package/cjs/components/checkbox/checkbox.css +2 -2
- package/cjs/components/ellipsis/ellipsis.js +1 -1
- package/cjs/components/image/image.css +1 -1
- package/cjs/components/index-bar/index-bar.css +4 -4
- package/cjs/components/input/input.d.ts +1 -1
- package/cjs/components/jumbo-tabs/jumbo-tabs.css +2 -2
- package/cjs/components/notice-bar/notice-bar.css +1 -1
- package/cjs/components/number-keyboard/number-keyboard.js +14 -8
- package/cjs/components/popover/index.d.ts +1 -1
- package/cjs/components/popover/popover.css +1 -1
- package/cjs/components/popover/popover.d.ts +2 -2
- package/cjs/components/popover/popover.js +1 -1
- package/cjs/components/popup/popup.js +13 -11
- package/cjs/components/radio/radio.css +2 -2
- package/cjs/components/search-bar/search-bar.css +1 -1
- package/cjs/components/selector/selector.css +1 -1
- package/cjs/components/selector/selector.js +10 -2
- package/cjs/components/side-bar/side-bar.css +1 -1
- package/cjs/components/slider/slider.css +3 -3
- package/cjs/components/stepper/stepper.css +2 -2
- package/cjs/components/swipe-action/swipe-action.css +1 -1
- package/cjs/components/switch/switch.css +2 -2
- package/cjs/components/tabs/tabs.js +5 -2
- package/cjs/components/text-area/text-area.d.ts +1 -1
- package/cjs/components/text-area/text-area.js +1 -0
- package/cjs/components/virtual-input/virtual-input.js +11 -2
- package/cjs/global/global.css +5 -2
- package/cjs/global/theme-default.css +5 -2
- package/cjs/locales/base.d.ts +3 -0
- package/cjs/locales/base.js +3 -0
- package/cjs/locales/da-DK.d.ts +134 -0
- package/cjs/locales/da-DK.js +132 -0
- package/cjs/locales/en-US.d.ts +3 -0
- package/cjs/locales/es-ES.d.ts +3 -0
- package/cjs/locales/fa-IR.d.ts +3 -0
- package/cjs/locales/fr-FR.d.ts +3 -0
- package/cjs/locales/id-ID.d.ts +3 -0
- package/cjs/locales/it-IT.d.ts +134 -0
- package/cjs/locales/it-IT.js +144 -0
- package/cjs/locales/ja-JP.d.ts +3 -0
- package/cjs/locales/kk-KZ.d.ts +3 -0
- package/cjs/locales/ko-KR.d.ts +3 -0
- package/cjs/locales/nb-NO.d.ts +134 -0
- package/cjs/locales/nb-NO.js +144 -0
- package/cjs/locales/nl-NL.d.ts +134 -0
- package/cjs/locales/nl-NL.js +144 -0
- package/cjs/locales/zh-CN.d.ts +3 -0
- package/cjs/locales/zh-CN.js +3 -0
- package/cjs/locales/zh-HK.d.ts +3 -0
- package/cjs/locales/zh-TW.d.ts +3 -0
- package/es/components/action-sheet/action-sheet.css +1 -1
- package/es/components/action-sheet/action-sheet.js +6 -2
- package/es/components/avatar/avatar.d.ts +1 -1
- package/es/components/avatar/avatar.js +2 -1
- package/es/components/badge/badge.css +2 -2
- package/es/components/button/button.css +2 -2
- package/es/components/calendar/calendar.js +1 -1
- package/es/components/capsule-tabs/capsule-tabs.css +2 -2
- package/es/components/check-list/check-list-item.js +3 -1
- package/es/components/check-list/check-list.d.ts +1 -0
- package/es/components/check-list/check-list.js +2 -0
- package/es/components/check-list/context.d.ts +1 -0
- package/es/components/checkbox/checkbox.css +2 -2
- package/es/components/ellipsis/ellipsis.js +1 -1
- package/es/components/image/image.css +1 -1
- package/es/components/index-bar/index-bar.css +4 -4
- package/es/components/input/input.d.ts +1 -1
- package/es/components/jumbo-tabs/jumbo-tabs.css +2 -2
- package/es/components/notice-bar/notice-bar.css +1 -1
- package/es/components/number-keyboard/number-keyboard.js +14 -8
- package/es/components/popover/index.d.ts +1 -1
- package/es/components/popover/popover.css +1 -1
- package/es/components/popover/popover.d.ts +2 -2
- package/es/components/popover/popover.js +1 -1
- package/es/components/popup/popup.js +13 -11
- package/es/components/radio/radio.css +2 -2
- package/es/components/search-bar/search-bar.css +1 -1
- package/es/components/selector/selector.css +1 -1
- package/es/components/selector/selector.js +10 -2
- package/es/components/side-bar/side-bar.css +1 -1
- package/es/components/slider/slider.css +3 -3
- package/es/components/stepper/stepper.css +2 -2
- package/es/components/swipe-action/swipe-action.css +1 -1
- package/es/components/switch/switch.css +2 -2
- package/es/components/tabs/tabs.js +5 -2
- package/es/components/text-area/text-area.d.ts +1 -1
- package/es/components/text-area/text-area.js +1 -0
- package/es/components/virtual-input/virtual-input.js +11 -2
- package/es/global/global.css +5 -2
- package/es/global/theme-default.css +5 -2
- package/es/locales/base.d.ts +3 -0
- package/es/locales/base.js +3 -0
- package/es/locales/da-DK.d.ts +134 -0
- package/es/locales/da-DK.js +125 -0
- package/es/locales/en-US.d.ts +3 -0
- package/es/locales/es-ES.d.ts +3 -0
- package/es/locales/fa-IR.d.ts +3 -0
- package/es/locales/fr-FR.d.ts +3 -0
- package/es/locales/id-ID.d.ts +3 -0
- package/es/locales/it-IT.d.ts +134 -0
- package/es/locales/it-IT.js +137 -0
- package/es/locales/ja-JP.d.ts +3 -0
- package/es/locales/kk-KZ.d.ts +3 -0
- package/es/locales/ko-KR.d.ts +3 -0
- package/es/locales/nb-NO.d.ts +134 -0
- package/es/locales/nb-NO.js +137 -0
- package/es/locales/nl-NL.d.ts +134 -0
- package/es/locales/nl-NL.js +137 -0
- package/es/locales/zh-CN.d.ts +3 -0
- package/es/locales/zh-CN.js +3 -0
- package/es/locales/zh-HK.d.ts +3 -0
- package/es/locales/zh-TW.d.ts +3 -0
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _mergeLocale = require("../utils/merge-locale");
|
|
8
|
+
var _base = require("./base");
|
|
9
|
+
const typeTemplate = '${label} is niet geldig als ${type}';
|
|
10
|
+
const nlNL = (0, _mergeLocale.mergeLocale)(_base.base, {
|
|
11
|
+
locale: 'nl-NL',
|
|
12
|
+
common: {
|
|
13
|
+
confirm: 'Bevestigen',
|
|
14
|
+
cancel: 'Annuleren',
|
|
15
|
+
loading: 'Laden',
|
|
16
|
+
close: 'Sluiten'
|
|
17
|
+
},
|
|
18
|
+
Calendar: {
|
|
19
|
+
markItems: ['Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za', 'Zo'],
|
|
20
|
+
renderYearAndMonth: (year, month) => `${month}-${year}`
|
|
21
|
+
},
|
|
22
|
+
Cascader: {
|
|
23
|
+
placeholder: 'Selecteren'
|
|
24
|
+
},
|
|
25
|
+
Dialog: {
|
|
26
|
+
ok: 'OK'
|
|
27
|
+
},
|
|
28
|
+
DatePicker: {
|
|
29
|
+
tillNow: 'Tot nu'
|
|
30
|
+
},
|
|
31
|
+
ErrorBlock: {
|
|
32
|
+
default: {
|
|
33
|
+
title: 'Oeps, er is iets fout gegaan',
|
|
34
|
+
description: 'Wacht een minuutje en probeer opnieuw'
|
|
35
|
+
},
|
|
36
|
+
busy: {
|
|
37
|
+
title: 'Oeps, niet aan het laden',
|
|
38
|
+
description: 'Probeer de pagina te vernieuwen'
|
|
39
|
+
},
|
|
40
|
+
disconnected: {
|
|
41
|
+
title: 'Netwerk is bezet',
|
|
42
|
+
description: 'Probeer de pagina te vernieuwen'
|
|
43
|
+
},
|
|
44
|
+
empty: {
|
|
45
|
+
title: 'Hmm, dat kon niet gevonden worden...',
|
|
46
|
+
description: 'Wil je een nieuwe zoekopdracht proberen?'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
Form: {
|
|
50
|
+
required: 'Verplicht',
|
|
51
|
+
optional: 'Optioneel',
|
|
52
|
+
defaultValidateMessages: {
|
|
53
|
+
default: 'Veldvalidatiefout voor ${label}',
|
|
54
|
+
required: 'Vul ${label} in',
|
|
55
|
+
enum: '${label} moet een van de volgende zijn: [${enum}]',
|
|
56
|
+
whitespace: '${label} mag geen leeg karakter zijn',
|
|
57
|
+
date: {
|
|
58
|
+
format: 'Ongeldige datumnotatie voor ${label}',
|
|
59
|
+
parse: 'Kan ${label} niet converteren naar een datum',
|
|
60
|
+
invalid: 'Ongeldige datum voor ${label}'
|
|
61
|
+
},
|
|
62
|
+
types: {
|
|
63
|
+
string: typeTemplate,
|
|
64
|
+
method: typeTemplate,
|
|
65
|
+
array: typeTemplate,
|
|
66
|
+
object: typeTemplate,
|
|
67
|
+
number: typeTemplate,
|
|
68
|
+
date: typeTemplate,
|
|
69
|
+
boolean: typeTemplate,
|
|
70
|
+
integer: typeTemplate,
|
|
71
|
+
float: typeTemplate,
|
|
72
|
+
regexp: typeTemplate,
|
|
73
|
+
email: typeTemplate,
|
|
74
|
+
url: typeTemplate,
|
|
75
|
+
hex: typeTemplate
|
|
76
|
+
},
|
|
77
|
+
string: {
|
|
78
|
+
len: '${label} moet ${len} tekens zijn',
|
|
79
|
+
min: '${label} moet minimaal ${min} tekens zijn',
|
|
80
|
+
max: '${label} mag maximaal ${max} tekens zijn',
|
|
81
|
+
range: '${label} moet tussen ${min}-${max} tekens zijn'
|
|
82
|
+
},
|
|
83
|
+
number: {
|
|
84
|
+
len: '${label} moet gelijk zijn aan ${len}',
|
|
85
|
+
min: '${label} moet minimaal ${min} zijn',
|
|
86
|
+
max: '${label} mag maximaal ${max} zijn',
|
|
87
|
+
range: '${label} moet tussen ${min}-${max} zijn'
|
|
88
|
+
},
|
|
89
|
+
array: {
|
|
90
|
+
len: 'Moet ${len} ${label} zijn',
|
|
91
|
+
min: 'Moet minimaal ${min} ${label} zijn',
|
|
92
|
+
max: 'Mag maximaal ${max} ${label} zijn',
|
|
93
|
+
range: 'Aantal ${label} moet tussen ${min}-${max} zijn'
|
|
94
|
+
},
|
|
95
|
+
pattern: {
|
|
96
|
+
mismatch: '${label} komt niet overeen met het patroon ${pattern}'
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
ImageUploader: {
|
|
101
|
+
uploading: 'Uploaden...',
|
|
102
|
+
upload: 'Uploaden'
|
|
103
|
+
},
|
|
104
|
+
InfiniteScroll: {
|
|
105
|
+
noMore: 'Geen meer',
|
|
106
|
+
failedToLoad: 'Laden mislukt',
|
|
107
|
+
retry: 'Opnieuw proberen'
|
|
108
|
+
},
|
|
109
|
+
Input: {
|
|
110
|
+
clear: 'wissen'
|
|
111
|
+
},
|
|
112
|
+
Mask: {
|
|
113
|
+
name: 'Masker'
|
|
114
|
+
},
|
|
115
|
+
Modal: {
|
|
116
|
+
ok: 'Begrepen'
|
|
117
|
+
},
|
|
118
|
+
PasscodeInput: {
|
|
119
|
+
name: 'Invoer voor toegangscode'
|
|
120
|
+
},
|
|
121
|
+
PullToRefresh: {
|
|
122
|
+
pulling: 'Trek naar beneden om te vernieuwen',
|
|
123
|
+
canRelease: 'Los om onmiddellijk te vernieuwen',
|
|
124
|
+
complete: 'Vernieuwen voltooid'
|
|
125
|
+
},
|
|
126
|
+
SearchBar: {
|
|
127
|
+
name: 'Zoekbalk'
|
|
128
|
+
},
|
|
129
|
+
Slider: {
|
|
130
|
+
name: 'Schuifregelaar'
|
|
131
|
+
},
|
|
132
|
+
Stepper: {
|
|
133
|
+
decrease: 'afnemen',
|
|
134
|
+
increase: 'toenemen'
|
|
135
|
+
},
|
|
136
|
+
Switch: {
|
|
137
|
+
name: 'Schakelaar'
|
|
138
|
+
},
|
|
139
|
+
Selector: {
|
|
140
|
+
name: 'Selector'
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
var _default = nlNL;
|
|
144
|
+
exports.default = _default;
|
package/2x/cjs/locales/zh-CN.js
CHANGED
|
@@ -55,13 +55,17 @@ export const ActionSheet = p => {
|
|
|
55
55
|
if (props.closeOnAction) {
|
|
56
56
|
(_c = props.onClose) === null || _c === void 0 ? void 0 : _c.call(props);
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
},
|
|
59
|
+
role: 'option',
|
|
60
|
+
"aria-disabled": action.disabled
|
|
59
61
|
}, React.createElement("div", {
|
|
60
62
|
className: `${classPrefix}-button-item-name`
|
|
61
63
|
}, action.text), action.description && React.createElement("div", {
|
|
62
64
|
className: `${classPrefix}-button-item-description`
|
|
63
65
|
}, action.description))))), props.cancelText && React.createElement("div", {
|
|
64
|
-
className: `${classPrefix}-cancel
|
|
66
|
+
className: `${classPrefix}-cancel`,
|
|
67
|
+
role: 'option',
|
|
68
|
+
"aria-label": props.cancelText
|
|
65
69
|
}, React.createElement("div", {
|
|
66
70
|
className: `${classPrefix}-button-item-wrapper`
|
|
67
71
|
}, React.createElement("a", {
|
|
@@ -5,5 +5,5 @@ export declare type AvatarProps = {
|
|
|
5
5
|
src: string;
|
|
6
6
|
fallback?: ReactNode;
|
|
7
7
|
fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
8
|
-
} & Pick<ImageProps, 'alt' | 'lazy' | 'onClick' | 'onError'> & NativeProps<'--size' | '--border-radius'>;
|
|
8
|
+
} & Pick<ImageProps, 'alt' | 'lazy' | 'onClick' | 'onError' | 'onLoad'> & NativeProps<'--size' | '--border-radius'>;
|
|
9
9
|
export declare const Avatar: FC<AvatarProps>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.adm-badge-content {
|
|
18
|
-
color: var(--adm-color-
|
|
18
|
+
color: var(--adm-color-text-light-solid);
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
min-width: 16px;
|
|
21
21
|
padding: 2px 8px;
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.adm-badge-bordered {
|
|
44
|
-
border: solid 2px var(--adm-color-
|
|
44
|
+
border: solid 2px var(--adm-color-text-light-solid);
|
|
45
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.adm-button {
|
|
2
|
-
--color: var(--adm-color-
|
|
2
|
+
--color: var(--adm-color-text-light-solid);
|
|
3
3
|
--text-color: var(--adm-button-text-color, var(--adm-color-text));
|
|
4
4
|
--background-color: var(--adm-button-background-color, var(--adm-color-background));
|
|
5
5
|
--border-radius: var(--adm-button-border-radius, 8px);
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.adm-button:not(.adm-button-default) {
|
|
62
|
-
--text-color: var(--adm-color-
|
|
62
|
+
--text-color: var(--adm-color-text-light-solid);
|
|
63
63
|
--background-color: var(--color);
|
|
64
64
|
--border-color: var(--color);
|
|
65
65
|
}
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
font-size: var(--adm-font-size-7);
|
|
38
38
|
text-align: center;
|
|
39
39
|
white-space: nowrap;
|
|
40
|
-
background-color: var(--adm-color-
|
|
40
|
+
background-color: var(--adm-color-fill-content);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.adm-capsule-tabs-tab-active {
|
|
44
|
-
color: var(--adm-color-
|
|
44
|
+
color: var(--adm-color-text-light-solid);
|
|
45
45
|
background-color: var(--adm-color-primary);
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -13,9 +13,11 @@ export const CheckListItem = props => {
|
|
|
13
13
|
}
|
|
14
14
|
const active = context.value.includes(props.value);
|
|
15
15
|
const readOnly = props.readOnly || context.readOnly;
|
|
16
|
+
const defaultExtra = active ? context.activeIcon : null;
|
|
17
|
+
const renderExtra = context.extra ? context.extra(active) : defaultExtra;
|
|
16
18
|
const extra = React.createElement("div", {
|
|
17
19
|
className: `${classPrefix}-extra`
|
|
18
|
-
},
|
|
20
|
+
}, renderExtra);
|
|
19
21
|
return withNativeProps(props, React.createElement(List.Item, {
|
|
20
22
|
title: props.title,
|
|
21
23
|
className: classNames(classPrefix, readOnly && `${classPrefix}-readonly`, active && `${classPrefix}-active`),
|
|
@@ -7,6 +7,7 @@ export declare type CheckListProps = Pick<ListProps, 'mode' | 'style'> & {
|
|
|
7
7
|
onChange?: (val: string[]) => void;
|
|
8
8
|
multiple?: boolean;
|
|
9
9
|
activeIcon?: ReactNode;
|
|
10
|
+
extra?: (active: boolean) => ReactNode;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
readOnly?: boolean;
|
|
12
13
|
children?: React.ReactNode;
|
|
@@ -4,6 +4,7 @@ export declare const CheckListContext: import("react").Context<{
|
|
|
4
4
|
check: (val: string) => void;
|
|
5
5
|
uncheck: (val: string) => void;
|
|
6
6
|
activeIcon?: ReactNode;
|
|
7
|
+
extra?: ((active: boolean) => ReactNode) | undefined;
|
|
7
8
|
disabled?: boolean | undefined;
|
|
8
9
|
readOnly?: boolean | undefined;
|
|
9
10
|
} | null>;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
width: var(--icon-size);
|
|
22
22
|
height: var(--icon-size);
|
|
23
|
-
color: var(--adm-color-
|
|
23
|
+
color: var(--adm-color-text-light-solid);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.adm-checkbox .adm-checkbox-icon > svg {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
.adm-checkbox.adm-checkbox-disabled .adm-checkbox-icon.adm-checkbox-icon {
|
|
50
50
|
color: #b7b7b7;
|
|
51
51
|
border-color: var(--adm-color-light);
|
|
52
|
-
background-color: var(--adm-color-
|
|
52
|
+
background-color: var(--adm-color-fill-content);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.adm-checkbox .adm-checkbox-custom-icon {
|
|
@@ -120,7 +120,7 @@ export const Ellipsis = p => {
|
|
|
120
120
|
setExpanded(true);
|
|
121
121
|
}
|
|
122
122
|
}, props.expandText)) : null;
|
|
123
|
-
const collapseActionElement = exceeded && props.
|
|
123
|
+
const collapseActionElement = exceeded && props.collapseText ? withStopPropagation(props.stopPropagationForActionButtons, React.createElement("a", {
|
|
124
124
|
onClick: () => {
|
|
125
125
|
setExpanded(false);
|
|
126
126
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
height: 100%;
|
|
5
5
|
position: relative;
|
|
6
|
-
background-color: var(--adm-color-
|
|
6
|
+
background-color: var(--adm-color-background);
|
|
7
7
|
--sticky-offset-top: 0;
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
padding: 0 24px;
|
|
26
26
|
color: var(--adm-color-weak);
|
|
27
27
|
font-size: var(--adm-font-size-main);
|
|
28
|
-
background-color: var(--adm-color-
|
|
28
|
+
background-color: var(--adm-color-fill-content);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.adm-index-bar-sidebar {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
right: 120px;
|
|
49
49
|
width: 94px;
|
|
50
50
|
height: 94px;
|
|
51
|
-
color: var(--adm-color-
|
|
51
|
+
color: var(--adm-color-text-light-solid);
|
|
52
52
|
font-size: 50px;
|
|
53
53
|
line-height: 94px;
|
|
54
54
|
text-align: center;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
.adm-index-bar-sidebar-item-active {
|
|
82
|
-
color: var(--adm-color-
|
|
82
|
+
color: var(--adm-color-text-light-solid);
|
|
83
83
|
background-color: var(--adm-color-primary);
|
|
84
84
|
border-radius: 50%;
|
|
85
85
|
}
|
|
@@ -26,7 +26,7 @@ export declare type InputRef = {
|
|
|
26
26
|
blur: () => void;
|
|
27
27
|
nativeElement: HTMLInputElement | null;
|
|
28
28
|
};
|
|
29
|
-
export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "onClick" | "name" | "type" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "
|
|
29
|
+
export declare const Input: React.ForwardRefExoticComponent<Pick<NativeInputProps, "pattern" | "onClick" | "name" | "type" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoFocus" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "maxLength" | "minLength" | "step"> & {
|
|
30
30
|
value?: string | undefined;
|
|
31
31
|
defaultValue?: string | undefined;
|
|
32
32
|
onChange?: ((val: string) => void) | undefined;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
border-radius: 20px;
|
|
57
57
|
color: var(--adm-color-weak);
|
|
58
58
|
font-size: var(--adm-font-size-main);
|
|
59
|
-
background-color: var(--adm-color-
|
|
59
|
+
background-color: var(--adm-color-fill-content);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.adm-jumbo-tabs-tab-active {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.adm-jumbo-tabs-tab-active .adm-jumbo-tabs-tab-description {
|
|
67
|
-
color: var(--adm-color-
|
|
67
|
+
color: var(--adm-color-text-light-solid);
|
|
68
68
|
background-color: var(--adm-color-primary);
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.adm-notice-bar {
|
|
2
2
|
--background-color: #ababab;
|
|
3
3
|
--border-color: #999999;
|
|
4
|
-
--text-color: var(--adm-color-
|
|
4
|
+
--text-color: var(--adm-color-text-light-solid);
|
|
5
5
|
--font-size: var(--adm-font-size-7);
|
|
6
6
|
--icon-font-size: var(--adm-font-size-10);
|
|
7
7
|
--height: 80px;
|
|
@@ -88,16 +88,18 @@ export const NumberKeyboard = p => {
|
|
|
88
88
|
className: classNames(`${classPrefix}-header`, {
|
|
89
89
|
[`${classPrefix}-header-with-title`]: !!title
|
|
90
90
|
})
|
|
91
|
-
}, title && React.createElement("div", {
|
|
92
|
-
className: `${classPrefix}-title
|
|
91
|
+
}, 'title' && React.createElement("div", {
|
|
92
|
+
className: `${classPrefix}-title`,
|
|
93
|
+
"aria-label": title
|
|
93
94
|
}, title), showCloseButton && React.createElement("span", {
|
|
94
95
|
className: `${classPrefix}-header-close-button`,
|
|
95
96
|
onClick: () => {
|
|
96
97
|
var _a;
|
|
97
98
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
98
99
|
},
|
|
99
|
-
role: '
|
|
100
|
-
title: 'CLOSE'
|
|
100
|
+
role: 'grid',
|
|
101
|
+
title: 'CLOSE',
|
|
102
|
+
tabIndex: -1
|
|
101
103
|
}, React.createElement(DownOutline, null)));
|
|
102
104
|
};
|
|
103
105
|
const renderKey = (key, index) => {
|
|
@@ -108,8 +110,9 @@ export const NumberKeyboard = p => {
|
|
|
108
110
|
[`${classPrefix}-key-mid`]: index === 9 && !!confirmText && keys.length < 12
|
|
109
111
|
});
|
|
110
112
|
const ariaProps = key ? {
|
|
111
|
-
role: '
|
|
112
|
-
title: key
|
|
113
|
+
role: 'grid',
|
|
114
|
+
title: key,
|
|
115
|
+
tabIndex: -1
|
|
113
116
|
} : undefined;
|
|
114
117
|
return React.createElement("div", Object.assign({
|
|
115
118
|
key: key,
|
|
@@ -161,11 +164,14 @@ export const NumberKeyboard = p => {
|
|
|
161
164
|
onBackspacePressEnd();
|
|
162
165
|
},
|
|
163
166
|
title: 'BACKSPACE',
|
|
164
|
-
role: '
|
|
167
|
+
role: 'grid',
|
|
168
|
+
tabIndex: -1
|
|
165
169
|
}, React.createElement(TextDeletionOutline, null)), React.createElement("div", {
|
|
166
170
|
className: `${classPrefix}-key ${classPrefix}-key-extra ${classPrefix}-key-ok`,
|
|
167
171
|
onTouchEnd: e => onKeyPress(e, 'OK'),
|
|
168
|
-
role: '
|
|
172
|
+
role: 'grid',
|
|
173
|
+
tabIndex: -1,
|
|
174
|
+
"aria-label": confirmText
|
|
169
175
|
}, confirmText))), props.safeArea && React.createElement("div", {
|
|
170
176
|
className: `${classPrefix}-footer`
|
|
171
177
|
}, React.createElement(SafeArea, {
|
|
@@ -18,7 +18,7 @@ declare const _default: import("react").ForwardRefExoticComponent<{
|
|
|
18
18
|
content: import("react").ReactNode;
|
|
19
19
|
} & {
|
|
20
20
|
className?: string | undefined;
|
|
21
|
-
style?: (import("react").CSSProperties & Partial<Record<"--z-index", string>>) | undefined;
|
|
21
|
+
style?: (import("react").CSSProperties & Partial<Record<"--z-index" | "--arrow-size", string>>) | undefined;
|
|
22
22
|
tabIndex?: number | undefined;
|
|
23
23
|
} & import("react").AriaAttributes & import("react").RefAttributes<import("./popover").PopoverRef>> & {
|
|
24
24
|
Menu: import("react").ForwardRefExoticComponent<Omit<import("./popover").PopoverProps, "content"> & {
|
|
@@ -15,7 +15,7 @@ export declare type PopoverProps = {
|
|
|
15
15
|
placement?: Placement | DeprecatedPlacement;
|
|
16
16
|
stopPropagation?: PropagationEvent[];
|
|
17
17
|
content: React.ReactNode;
|
|
18
|
-
} & NativeProps<'--z-index'>;
|
|
18
|
+
} & NativeProps<'--z-index' | '--arrow-size'>;
|
|
19
19
|
export declare type PopoverRef = {
|
|
20
20
|
show: () => void;
|
|
21
21
|
hide: () => void;
|
|
@@ -35,6 +35,6 @@ export declare const Popover: React.ForwardRefExoticComponent<{
|
|
|
35
35
|
content: React.ReactNode;
|
|
36
36
|
} & {
|
|
37
37
|
className?: string | undefined;
|
|
38
|
-
style?: (React.CSSProperties & Partial<Record<"--z-index", string>>) | undefined;
|
|
38
|
+
style?: (React.CSSProperties & Partial<Record<"--z-index" | "--arrow-size", string>>) | undefined;
|
|
39
39
|
tabIndex?: number | undefined;
|
|
40
40
|
} & React.AriaAttributes & React.RefAttributes<PopoverRef>>;
|
|
@@ -99,7 +99,7 @@ export const Popover = forwardRef((p, ref) => {
|
|
|
99
99
|
top: arrowY != null ? `${arrowY}px` : '',
|
|
100
100
|
right: '',
|
|
101
101
|
bottom: '',
|
|
102
|
-
[arrowSide]:
|
|
102
|
+
[arrowSide]: 'calc(var(--arrow-size) * -1)'
|
|
103
103
|
});
|
|
104
104
|
const arrowRotate = {
|
|
105
105
|
top: '0deg',
|
|
@@ -79,17 +79,19 @@ export const Popup = p => {
|
|
|
79
79
|
className: bodyCls,
|
|
80
80
|
style: Object.assign(Object.assign({}, props.bodyStyle), {
|
|
81
81
|
transform: percent.to(v => {
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
if (v) {
|
|
83
|
+
if (props.position === 'bottom') {
|
|
84
|
+
return `translate(0, ${v}%)`;
|
|
85
|
+
}
|
|
86
|
+
if (props.position === 'top') {
|
|
87
|
+
return `translate(0, -${v}%)`;
|
|
88
|
+
}
|
|
89
|
+
if (props.position === 'left') {
|
|
90
|
+
return `translate(-${v}%, 0)`;
|
|
91
|
+
}
|
|
92
|
+
if (props.position === 'right') {
|
|
93
|
+
return `translate(${v}%, 0)`;
|
|
94
|
+
}
|
|
93
95
|
}
|
|
94
96
|
return 'none';
|
|
95
97
|
})
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
width: var(--icon-size);
|
|
22
22
|
height: var(--icon-size);
|
|
23
|
-
color: var(--adm-color-
|
|
23
|
+
color: var(--adm-color-text-light-solid);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.adm-radio .adm-radio-icon > svg {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
.adm-radio.adm-radio-disabled .adm-radio-icon {
|
|
50
50
|
color: #b7b7b7;
|
|
51
51
|
border-color: var(--adm-color-light);
|
|
52
|
-
background-color: var(--adm-color-
|
|
52
|
+
background-color: var(--adm-color-fill-content);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.adm-radio .adm-radio-custom-icon {
|
|
@@ -6,6 +6,7 @@ import Space from '../space';
|
|
|
6
6
|
import Grid from '../grid';
|
|
7
7
|
import { usePropsValue } from '../../utils/use-props-value';
|
|
8
8
|
import { CheckMark } from './check-mark';
|
|
9
|
+
import { useConfig } from '../config-provider';
|
|
9
10
|
const classPrefix = `adm-selector`;
|
|
10
11
|
const defaultProps = {
|
|
11
12
|
multiple: false,
|
|
@@ -27,6 +28,9 @@ export const Selector = p => {
|
|
|
27
28
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, val, extend);
|
|
28
29
|
}
|
|
29
30
|
});
|
|
31
|
+
const {
|
|
32
|
+
locale
|
|
33
|
+
} = useConfig();
|
|
30
34
|
const items = props.options.map(option => {
|
|
31
35
|
const active = (value || []).includes(option.value);
|
|
32
36
|
const disabled = option.disabled || props.disabled;
|
|
@@ -49,7 +53,9 @@ export const Selector = p => {
|
|
|
49
53
|
const val = active ? [] : [option.value];
|
|
50
54
|
setValue(val);
|
|
51
55
|
}
|
|
52
|
-
}
|
|
56
|
+
},
|
|
57
|
+
role: 'option',
|
|
58
|
+
"aria-selected": active && !props.multiple || active && props.multiple
|
|
53
59
|
}, option.label, option.description && React.createElement("div", {
|
|
54
60
|
className: `${classPrefix}-item-description`
|
|
55
61
|
}, option.description), active && props.showCheckMark && React.createElement("div", {
|
|
@@ -57,7 +63,9 @@ export const Selector = p => {
|
|
|
57
63
|
}, React.createElement(CheckMark, null)));
|
|
58
64
|
});
|
|
59
65
|
return withNativeProps(props, React.createElement("div", {
|
|
60
|
-
className: classPrefix
|
|
66
|
+
className: classPrefix,
|
|
67
|
+
role: 'listbox',
|
|
68
|
+
"aria-label": locale.Selector.name
|
|
61
69
|
}, !props.columns && React.createElement(Space, {
|
|
62
70
|
wrap: true
|
|
63
71
|
}, items), props.columns && React.createElement(Grid, {
|