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
package/2x/bundle/style.css
CHANGED
|
@@ -16,14 +16,17 @@
|
|
|
16
16
|
--adm-color-success: #00b578;
|
|
17
17
|
--adm-color-warning: #ff8f1f;
|
|
18
18
|
--adm-color-danger: #ff3141;
|
|
19
|
-
--adm-color-white: #ffffff;
|
|
20
19
|
--adm-color-text: #333333;
|
|
21
20
|
--adm-color-text-secondary: #666666;
|
|
22
21
|
--adm-color-weak: #999999;
|
|
23
22
|
--adm-color-light: #cccccc;
|
|
24
23
|
--adm-color-border: #eeeeee;
|
|
25
|
-
--adm-color-box: #f5f5f5;
|
|
26
24
|
--adm-color-background: #ffffff;
|
|
25
|
+
--adm-color-white: #ffffff;
|
|
26
|
+
--adm-color-box: #f5f5f5;
|
|
27
|
+
--adm-color-text-light-solid: var(--adm-color-white);
|
|
28
|
+
--adm-color-text-dark-solid: #000000;
|
|
29
|
+
--adm-color-fill-content: var(--adm-color-box);
|
|
27
30
|
--adm-font-size-main: var(--adm-font-size-5);
|
|
28
31
|
--adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
|
|
29
32
|
--adm-border-color: var(--adm-color-border);
|
|
@@ -154,7 +157,7 @@ div.adm-px-tester {
|
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
.adm-action-sheet-cancel {
|
|
157
|
-
background-color: var(--adm-color-
|
|
160
|
+
background-color: var(--adm-color-fill-content);
|
|
158
161
|
padding-top: 16px;
|
|
159
162
|
}
|
|
160
163
|
|
|
@@ -308,7 +311,7 @@ div.adm-px-tester {
|
|
|
308
311
|
|
|
309
312
|
.adm-image-tip {
|
|
310
313
|
position: relative;
|
|
311
|
-
background-color: var(--adm-color-
|
|
314
|
+
background-color: var(--adm-color-fill-content);
|
|
312
315
|
height: 100%;
|
|
313
316
|
min-height: 48px;
|
|
314
317
|
min-width: 48px;
|
|
@@ -341,7 +344,7 @@ div.adm-px-tester {
|
|
|
341
344
|
}
|
|
342
345
|
|
|
343
346
|
.adm-badge-content {
|
|
344
|
-
color: var(--adm-color-
|
|
347
|
+
color: var(--adm-color-text-light-solid);
|
|
345
348
|
box-sizing: border-box;
|
|
346
349
|
min-width: 16px;
|
|
347
350
|
padding: 2px 8px;
|
|
@@ -367,11 +370,11 @@ div.adm-px-tester {
|
|
|
367
370
|
}
|
|
368
371
|
|
|
369
372
|
.adm-badge-bordered {
|
|
370
|
-
border: solid 2px var(--adm-color-
|
|
373
|
+
border: solid 2px var(--adm-color-text-light-solid);
|
|
371
374
|
}
|
|
372
375
|
|
|
373
376
|
.adm-button {
|
|
374
|
-
--color: var(--adm-color-
|
|
377
|
+
--color: var(--adm-color-text-light-solid);
|
|
375
378
|
--text-color: var(--adm-button-text-color, var(--adm-color-text));
|
|
376
379
|
--background-color: var(--adm-button-background-color, var(--adm-color-background));
|
|
377
380
|
--border-radius: var(--adm-button-border-radius, 8px);
|
|
@@ -431,7 +434,7 @@ div.adm-px-tester {
|
|
|
431
434
|
}
|
|
432
435
|
|
|
433
436
|
.adm-button:not(.adm-button-default) {
|
|
434
|
-
--text-color: var(--adm-color-
|
|
437
|
+
--text-color: var(--adm-color-text-light-solid);
|
|
435
438
|
--background-color: var(--color);
|
|
436
439
|
--border-color: var(--color);
|
|
437
440
|
}
|
|
@@ -685,11 +688,11 @@ div.adm-px-tester {
|
|
|
685
688
|
font-size: var(--adm-font-size-7);
|
|
686
689
|
text-align: center;
|
|
687
690
|
white-space: nowrap;
|
|
688
|
-
background-color: var(--adm-color-
|
|
691
|
+
background-color: var(--adm-color-fill-content);
|
|
689
692
|
}
|
|
690
693
|
|
|
691
694
|
.adm-capsule-tabs-tab-active {
|
|
692
|
-
color: var(--adm-color-
|
|
695
|
+
color: var(--adm-color-text-light-solid);
|
|
693
696
|
background-color: var(--adm-color-primary);
|
|
694
697
|
}
|
|
695
698
|
|
|
@@ -1417,7 +1420,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
1417
1420
|
box-sizing: border-box;
|
|
1418
1421
|
width: var(--icon-size);
|
|
1419
1422
|
height: var(--icon-size);
|
|
1420
|
-
color: var(--adm-color-
|
|
1423
|
+
color: var(--adm-color-text-light-solid);
|
|
1421
1424
|
}
|
|
1422
1425
|
|
|
1423
1426
|
.adm-checkbox .adm-checkbox-icon>svg {
|
|
@@ -1446,7 +1449,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
1446
1449
|
.adm-checkbox.adm-checkbox-disabled .adm-checkbox-icon.adm-checkbox-icon {
|
|
1447
1450
|
color: #b7b7b7;
|
|
1448
1451
|
border-color: var(--adm-color-light);
|
|
1449
|
-
background-color: var(--adm-color-
|
|
1452
|
+
background-color: var(--adm-color-fill-content);
|
|
1450
1453
|
}
|
|
1451
1454
|
|
|
1452
1455
|
.adm-checkbox .adm-checkbox-custom-icon {
|
|
@@ -2098,7 +2101,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2098
2101
|
.adm-popover-arrow-icon {
|
|
2099
2102
|
display: block;
|
|
2100
2103
|
height: var(--arrow-size);
|
|
2101
|
-
width:
|
|
2104
|
+
width: calc(var(--arrow-size) / 8 * 15);
|
|
2102
2105
|
position: absolute;
|
|
2103
2106
|
top: 50%;
|
|
2104
2107
|
left: 50%;
|
|
@@ -2476,7 +2479,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2476
2479
|
overflow: hidden;
|
|
2477
2480
|
height: 100%;
|
|
2478
2481
|
position: relative;
|
|
2479
|
-
background-color: var(--adm-color-
|
|
2482
|
+
background-color: var(--adm-color-background);
|
|
2480
2483
|
--sticky-offset-top: 0;
|
|
2481
2484
|
}
|
|
2482
2485
|
|
|
@@ -2498,7 +2501,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2498
2501
|
padding: 0 24px;
|
|
2499
2502
|
color: var(--adm-color-weak);
|
|
2500
2503
|
font-size: var(--adm-font-size-main);
|
|
2501
|
-
background-color: var(--adm-color-
|
|
2504
|
+
background-color: var(--adm-color-fill-content);
|
|
2502
2505
|
}
|
|
2503
2506
|
|
|
2504
2507
|
.adm-index-bar-sidebar {
|
|
@@ -2521,7 +2524,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2521
2524
|
right: 120px;
|
|
2522
2525
|
width: 94px;
|
|
2523
2526
|
height: 94px;
|
|
2524
|
-
color: var(--adm-color-
|
|
2527
|
+
color: var(--adm-color-text-light-solid);
|
|
2525
2528
|
font-size: 50px;
|
|
2526
2529
|
line-height: 94px;
|
|
2527
2530
|
text-align: center;
|
|
@@ -2552,7 +2555,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2552
2555
|
}
|
|
2553
2556
|
|
|
2554
2557
|
.adm-index-bar-sidebar-item-active {
|
|
2555
|
-
color: var(--adm-color-
|
|
2558
|
+
color: var(--adm-color-text-light-solid);
|
|
2556
2559
|
background-color: var(--adm-color-primary);
|
|
2557
2560
|
border-radius: 50%;
|
|
2558
2561
|
}
|
|
@@ -2756,7 +2759,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2756
2759
|
border-radius: 20px;
|
|
2757
2760
|
color: var(--adm-color-weak);
|
|
2758
2761
|
font-size: var(--adm-font-size-main);
|
|
2759
|
-
background-color: var(--adm-color-
|
|
2762
|
+
background-color: var(--adm-color-fill-content);
|
|
2760
2763
|
}
|
|
2761
2764
|
|
|
2762
2765
|
.adm-jumbo-tabs-tab-active {
|
|
@@ -2764,7 +2767,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2764
2767
|
}
|
|
2765
2768
|
|
|
2766
2769
|
.adm-jumbo-tabs-tab-active .adm-jumbo-tabs-tab-description {
|
|
2767
|
-
color: var(--adm-color-
|
|
2770
|
+
color: var(--adm-color-text-light-solid);
|
|
2768
2771
|
background-color: var(--adm-color-primary);
|
|
2769
2772
|
}
|
|
2770
2773
|
|
|
@@ -2927,7 +2930,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
2927
2930
|
.adm-notice-bar {
|
|
2928
2931
|
--background-color: #ababab;
|
|
2929
2932
|
--border-color: #999999;
|
|
2930
|
-
--text-color: var(--adm-color-
|
|
2933
|
+
--text-color: var(--adm-color-text-light-solid);
|
|
2931
2934
|
--font-size: var(--adm-font-size-7);
|
|
2932
2935
|
--icon-font-size: var(--adm-font-size-10);
|
|
2933
2936
|
--height: 80px;
|
|
@@ -3484,7 +3487,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
3484
3487
|
box-sizing: border-box;
|
|
3485
3488
|
width: var(--icon-size);
|
|
3486
3489
|
height: var(--icon-size);
|
|
3487
|
-
color: var(--adm-color-
|
|
3490
|
+
color: var(--adm-color-text-light-solid);
|
|
3488
3491
|
}
|
|
3489
3492
|
|
|
3490
3493
|
.adm-radio .adm-radio-icon>svg {
|
|
@@ -3513,7 +3516,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
3513
3516
|
.adm-radio.adm-radio-disabled .adm-radio-icon {
|
|
3514
3517
|
color: #b7b7b7;
|
|
3515
3518
|
border-color: var(--adm-color-light);
|
|
3516
|
-
background-color: var(--adm-color-
|
|
3519
|
+
background-color: var(--adm-color-fill-content);
|
|
3517
3520
|
}
|
|
3518
3521
|
|
|
3519
3522
|
.adm-radio .adm-radio-custom-icon {
|
|
@@ -3756,7 +3759,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
3756
3759
|
.adm-search-bar {
|
|
3757
3760
|
--height: 64px;
|
|
3758
3761
|
--padding-left: 16px;
|
|
3759
|
-
--background: var(--adm-color-
|
|
3762
|
+
--background: var(--adm-color-fill-content);
|
|
3760
3763
|
--border-radius: 12px;
|
|
3761
3764
|
--placeholder-color: var(--adm-color-weak);
|
|
3762
3765
|
---placeholder-color: var(--placeholder-color);
|
|
@@ -3822,7 +3825,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
3822
3825
|
}
|
|
3823
3826
|
|
|
3824
3827
|
.adm-selector {
|
|
3825
|
-
--color: var(--adm-color-
|
|
3828
|
+
--color: var(--adm-color-fill-content);
|
|
3826
3829
|
--checked-color: #e7f1ff;
|
|
3827
3830
|
--text-color: var(--adm-color-text);
|
|
3828
3831
|
--checked-text-color: var(--adm-color-primary);
|
|
@@ -3905,7 +3908,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
3905
3908
|
--height: 100%;
|
|
3906
3909
|
--width: 210px;
|
|
3907
3910
|
--item-border-radius: 16px;
|
|
3908
|
-
--background-color: var(--adm-color-
|
|
3911
|
+
--background-color: var(--adm-color-fill-content);
|
|
3909
3912
|
width: var(--width);
|
|
3910
3913
|
height: var(--height);
|
|
3911
3914
|
box-sizing: border-box;
|
|
@@ -4004,7 +4007,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
4004
4007
|
position: relative;
|
|
4005
4008
|
width: 100%;
|
|
4006
4009
|
height: 6px;
|
|
4007
|
-
background-color: var(--adm-color-
|
|
4010
|
+
background-color: var(--adm-color-fill-content);
|
|
4008
4011
|
border-radius: 6px;
|
|
4009
4012
|
}
|
|
4010
4013
|
|
|
@@ -4029,7 +4032,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
4029
4032
|
width: 14px;
|
|
4030
4033
|
height: 14px;
|
|
4031
4034
|
margin-left: -6px;
|
|
4032
|
-
background-color: var(--adm-color-
|
|
4035
|
+
background-color: var(--adm-color-fill-content);
|
|
4033
4036
|
border-radius: 50%;
|
|
4034
4037
|
}
|
|
4035
4038
|
|
|
@@ -4044,7 +4047,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
4044
4047
|
border-radius: 50%;
|
|
4045
4048
|
text-align: center;
|
|
4046
4049
|
line-height: 56px;
|
|
4047
|
-
background: var(--adm-color-
|
|
4050
|
+
background: var(--adm-color-text-light-solid);
|
|
4048
4051
|
box-shadow: 0 4px 10px rgba(0,0,0,.12);
|
|
4049
4052
|
color: var(--fill-color);
|
|
4050
4053
|
}
|
|
@@ -4128,14 +4131,14 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
4128
4131
|
--input-width: 88px;
|
|
4129
4132
|
--input-font-size: var(--adm-font-size-main);
|
|
4130
4133
|
--input-font-color: var(--adm-color-text);
|
|
4131
|
-
--input-background-color: var(--adm-color-
|
|
4134
|
+
--input-background-color: var(--adm-color-fill-content);
|
|
4132
4135
|
--border-radius: 4px;
|
|
4133
4136
|
--border: none;
|
|
4134
4137
|
--border-inner: solid 4px transparent;
|
|
4135
4138
|
--active-border: var(--border);
|
|
4136
4139
|
--button-font-size: var(--adm-font-size-7);
|
|
4137
4140
|
--button-text-color: var(--adm-color-primary);
|
|
4138
|
-
--button-background-color: var(--adm-color-
|
|
4141
|
+
--button-background-color: var(--adm-color-fill-content);
|
|
4139
4142
|
--button-width: var(--height);
|
|
4140
4143
|
display: flex;
|
|
4141
4144
|
align-items: center;
|
|
@@ -4408,7 +4411,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
4408
4411
|
.adm-swipe-action-action-button.adm-button {
|
|
4409
4412
|
--border-radius: 0;
|
|
4410
4413
|
--border-width: 0;
|
|
4411
|
-
--text-color: var(--adm-color-
|
|
4414
|
+
--text-color: var(--adm-color-text-light-solid);
|
|
4412
4415
|
padding-left: 40px;
|
|
4413
4416
|
padding-right: 40px;
|
|
4414
4417
|
}
|
|
@@ -4562,7 +4565,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
4562
4565
|
width: calc(var(--height) - 2 * var(--border-width));
|
|
4563
4566
|
height: calc(var(--height) - 2 * var(--border-width));
|
|
4564
4567
|
border-radius: calc(var(--height) - 2 * var(--border-width));
|
|
4565
|
-
background: var(--adm-color-
|
|
4568
|
+
background: var(--adm-color-text-light-solid);
|
|
4566
4569
|
position: absolute;
|
|
4567
4570
|
z-index: 2;
|
|
4568
4571
|
top: var(--border-width);
|
|
@@ -4598,7 +4601,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled):after {
|
|
|
4598
4601
|
|
|
4599
4602
|
.adm-switch.adm-switch-checked .adm-switch-inner {
|
|
4600
4603
|
margin: 0 calc(var(--height) - var(--border-width) + 10px) 0 20px;
|
|
4601
|
-
color: var(--adm-color-
|
|
4604
|
+
color: var(--adm-color-text-light-solid);
|
|
4602
4605
|
}
|
|
4603
4606
|
|
|
4604
4607
|
.adm-switch.adm-switch-disabled {
|
|
@@ -63,13 +63,17 @@ const ActionSheet = p => {
|
|
|
63
63
|
if (props.closeOnAction) {
|
|
64
64
|
(_c = props.onClose) === null || _c === void 0 ? void 0 : _c.call(props);
|
|
65
65
|
}
|
|
66
|
-
}
|
|
66
|
+
},
|
|
67
|
+
role: 'option',
|
|
68
|
+
"aria-disabled": action.disabled
|
|
67
69
|
}, _react.default.createElement("div", {
|
|
68
70
|
className: `${classPrefix}-button-item-name`
|
|
69
71
|
}, action.text), action.description && _react.default.createElement("div", {
|
|
70
72
|
className: `${classPrefix}-button-item-description`
|
|
71
73
|
}, action.description))))), props.cancelText && _react.default.createElement("div", {
|
|
72
|
-
className: `${classPrefix}-cancel
|
|
74
|
+
className: `${classPrefix}-cancel`,
|
|
75
|
+
role: 'option',
|
|
76
|
+
"aria-label": props.cancelText
|
|
73
77
|
}, _react.default.createElement("div", {
|
|
74
78
|
className: `${classPrefix}-button-item-wrapper`
|
|
75
79
|
}, _react.default.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
|
|
|
@@ -22,9 +22,11 @@ const CheckListItem = props => {
|
|
|
22
22
|
}
|
|
23
23
|
const active = context.value.includes(props.value);
|
|
24
24
|
const readOnly = props.readOnly || context.readOnly;
|
|
25
|
+
const defaultExtra = active ? context.activeIcon : null;
|
|
26
|
+
const renderExtra = context.extra ? context.extra(active) : defaultExtra;
|
|
25
27
|
const extra = _react.default.createElement("div", {
|
|
26
28
|
className: `${classPrefix}-extra`
|
|
27
|
-
},
|
|
29
|
+
}, renderExtra);
|
|
28
30
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement(_list.default.Item, {
|
|
29
31
|
title: props.title,
|
|
30
32
|
className: (0, _classnames.default)(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 {
|
|
@@ -129,7 +129,7 @@ const Ellipsis = p => {
|
|
|
129
129
|
setExpanded(true);
|
|
130
130
|
}
|
|
131
131
|
}, props.expandText)) : null;
|
|
132
|
-
const collapseActionElement = exceeded && props.
|
|
132
|
+
const collapseActionElement = exceeded && props.collapseText ? (0, _withStopPropagation.withStopPropagation)(props.stopPropagationForActionButtons, _react.default.createElement("a", {
|
|
133
133
|
onClick: () => {
|
|
134
134
|
setExpanded(false);
|
|
135
135
|
}
|
|
@@ -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;
|
|
@@ -97,16 +97,18 @@ const NumberKeyboard = p => {
|
|
|
97
97
|
className: (0, _classnames.default)(`${classPrefix}-header`, {
|
|
98
98
|
[`${classPrefix}-header-with-title`]: !!title
|
|
99
99
|
})
|
|
100
|
-
}, title && _react.default.createElement("div", {
|
|
101
|
-
className: `${classPrefix}-title
|
|
100
|
+
}, 'title' && _react.default.createElement("div", {
|
|
101
|
+
className: `${classPrefix}-title`,
|
|
102
|
+
"aria-label": title
|
|
102
103
|
}, title), showCloseButton && _react.default.createElement("span", {
|
|
103
104
|
className: `${classPrefix}-header-close-button`,
|
|
104
105
|
onClick: () => {
|
|
105
106
|
var _a;
|
|
106
107
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
107
108
|
},
|
|
108
|
-
role: '
|
|
109
|
-
title: 'CLOSE'
|
|
109
|
+
role: 'grid',
|
|
110
|
+
title: 'CLOSE',
|
|
111
|
+
tabIndex: -1
|
|
110
112
|
}, _react.default.createElement(_antdMobileIcons.DownOutline, null)));
|
|
111
113
|
};
|
|
112
114
|
const renderKey = (key, index) => {
|
|
@@ -117,8 +119,9 @@ const NumberKeyboard = p => {
|
|
|
117
119
|
[`${classPrefix}-key-mid`]: index === 9 && !!confirmText && keys.length < 12
|
|
118
120
|
});
|
|
119
121
|
const ariaProps = key ? {
|
|
120
|
-
role: '
|
|
121
|
-
title: key
|
|
122
|
+
role: 'grid',
|
|
123
|
+
title: key,
|
|
124
|
+
tabIndex: -1
|
|
122
125
|
} : undefined;
|
|
123
126
|
return _react.default.createElement("div", Object.assign({
|
|
124
127
|
key: key,
|
|
@@ -170,11 +173,14 @@ const NumberKeyboard = p => {
|
|
|
170
173
|
onBackspacePressEnd();
|
|
171
174
|
},
|
|
172
175
|
title: 'BACKSPACE',
|
|
173
|
-
role: '
|
|
176
|
+
role: 'grid',
|
|
177
|
+
tabIndex: -1
|
|
174
178
|
}, _react.default.createElement(_antdMobileIcons.TextDeletionOutline, null)), _react.default.createElement("div", {
|
|
175
179
|
className: `${classPrefix}-key ${classPrefix}-key-extra ${classPrefix}-key-ok`,
|
|
176
180
|
onTouchEnd: e => onKeyPress(e, 'OK'),
|
|
177
|
-
role: '
|
|
181
|
+
role: 'grid',
|
|
182
|
+
tabIndex: -1,
|
|
183
|
+
"aria-label": confirmText
|
|
178
184
|
}, confirmText))), props.safeArea && _react.default.createElement("div", {
|
|
179
185
|
className: `${classPrefix}-footer`
|
|
180
186
|
}, _react.default.createElement(_safeArea.default, {
|
|
@@ -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>>;
|
|
@@ -108,7 +108,7 @@ const Popover = (0, _react.forwardRef)((p, ref) => {
|
|
|
108
108
|
top: arrowY != null ? `${arrowY}px` : '',
|
|
109
109
|
right: '',
|
|
110
110
|
bottom: '',
|
|
111
|
-
[arrowSide]:
|
|
111
|
+
[arrowSide]: 'calc(var(--arrow-size) * -1)'
|
|
112
112
|
});
|
|
113
113
|
const arrowRotate = {
|
|
114
114
|
top: '0deg',
|