antd-mobile 5.10.2 → 5.10.3
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/cjs/components/auto-center/auto-center.d.ts +4 -2
- package/2x/cjs/components/badge/badge.d.ts +1 -0
- package/2x/cjs/components/calendar/calendar.js +1 -1
- package/2x/cjs/components/capsule-tabs/capsule-tabs.d.ts +3 -1
- package/2x/cjs/components/card/card.d.ts +1 -0
- package/2x/cjs/components/check-list/check-list.d.ts +2 -1
- package/2x/cjs/components/checkbox/checkbox.d.ts +1 -0
- package/2x/cjs/components/checkbox/group.d.ts +2 -1
- package/2x/cjs/components/collapse/collapse.d.ts +4 -1
- package/2x/cjs/components/config-provider/config-provider.d.ts +2 -1
- package/2x/cjs/components/date-picker/date-picker.d.ts +1 -1
- package/2x/cjs/components/date-picker/date-picker.js +2 -1
- package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +1 -1
- package/2x/cjs/components/date-picker-view/date-picker-view.js +1 -0
- package/2x/cjs/components/divider/divider.d.ts +2 -1
- package/2x/cjs/components/dropdown/item.d.ts +2 -1
- package/2x/cjs/components/error-block/error-block.d.ts +2 -1
- package/2x/cjs/components/floating-bubble/floating-bubble.d.ts +1 -0
- package/2x/cjs/components/form/header.d.ts +4 -2
- package/2x/cjs/components/form/index.d.ts +3 -1
- package/2x/cjs/components/grid/grid.d.ts +2 -0
- package/2x/cjs/components/image-uploader/image-uploader.d.ts +2 -1
- package/2x/cjs/components/infinite-scroll/infinite-scroll.d.ts +2 -1
- package/2x/cjs/components/infinite-scroll/infinite-scroll.js +6 -1
- package/2x/cjs/components/input/input.d.ts +2 -2
- package/2x/cjs/components/input/input.js +2 -1
- package/2x/cjs/components/jumbo-tabs/jumbo-tabs.d.ts +3 -1
- package/2x/cjs/components/list/list.css +1 -0
- package/2x/cjs/components/list/list.d.ts +1 -0
- package/2x/cjs/components/mask/mask.d.ts +1 -0
- package/2x/cjs/components/nav-bar/nav-bar.d.ts +2 -1
- package/2x/cjs/components/picker/picker.d.ts +1 -0
- package/2x/cjs/components/picker/picker.js +1 -0
- package/2x/cjs/components/picker-view/picker-view.d.ts +1 -0
- package/2x/cjs/components/picker-view/picker-view.js +4 -2
- package/2x/cjs/components/picker-view/wheel.d.ts +1 -0
- package/2x/cjs/components/picker-view/wheel.js +24 -4
- package/2x/cjs/components/popover/wrapper.d.ts +3 -1
- package/2x/cjs/components/popup/popup.d.ts +1 -0
- package/2x/cjs/components/pull-to-refresh/pull-to-refresh.d.ts +2 -1
- package/2x/cjs/components/pull-to-refresh/pull-to-refresh.js +2 -2
- package/2x/cjs/components/radio/group.d.ts +2 -1
- package/2x/cjs/components/radio/radio.d.ts +1 -0
- package/2x/cjs/components/side-bar/side-bar.d.ts +2 -0
- package/2x/cjs/components/space/space.d.ts +1 -0
- package/2x/cjs/components/steps/steps.d.ts +2 -1
- package/2x/cjs/components/swiper/index.d.ts +1 -0
- package/2x/cjs/components/swiper/swiper-item.d.ts +1 -0
- package/2x/cjs/components/tab-bar/tab-bar.d.ts +2 -0
- package/2x/cjs/components/tabs/tabs.d.ts +3 -1
- package/2x/cjs/components/tag/tag.d.ts +1 -0
- package/2x/cjs/components/text-area/text-area.d.ts +2 -2
- package/2x/cjs/components/text-area/text-area.js +2 -1
- package/2x/cjs/locales/base.d.ts +3 -0
- package/2x/cjs/locales/base.js +4 -1
- package/2x/cjs/locales/en-US.d.ts +3 -0
- package/2x/cjs/locales/es-ES.d.ts +3 -0
- package/2x/cjs/locales/es-ES.js +1 -1
- package/2x/cjs/locales/fa-IR.d.ts +3 -0
- package/2x/cjs/locales/ko-KR.d.ts +3 -0
- package/2x/cjs/locales/ko-KR.js +2 -2
- package/2x/cjs/locales/zh-CN.d.ts +3 -0
- package/2x/cjs/locales/zh-CN.js +4 -1
- package/2x/cjs/locales/zh-HK.d.ts +3 -0
- package/2x/cjs/locales/zh-HK.js +4 -1
- package/2x/cjs/locales/zh-TW.d.ts +3 -0
- package/2x/cjs/locales/zh-TW.js +4 -1
- package/2x/es/components/auto-center/auto-center.d.ts +4 -2
- package/2x/es/components/badge/badge.d.ts +1 -0
- package/2x/es/components/calendar/calendar.js +1 -1
- package/2x/es/components/capsule-tabs/capsule-tabs.d.ts +3 -1
- package/2x/es/components/card/card.d.ts +1 -0
- package/2x/es/components/check-list/check-list.d.ts +2 -1
- package/2x/es/components/checkbox/checkbox.d.ts +1 -0
- package/2x/es/components/checkbox/group.d.ts +2 -1
- package/2x/es/components/collapse/collapse.d.ts +4 -1
- package/2x/es/components/config-provider/config-provider.d.ts +2 -1
- package/2x/es/components/date-picker/date-picker.d.ts +1 -1
- package/2x/es/components/date-picker/date-picker.js +2 -1
- package/2x/es/components/date-picker-view/date-picker-view.d.ts +1 -1
- package/2x/es/components/date-picker-view/date-picker-view.js +1 -0
- package/2x/es/components/divider/divider.d.ts +2 -1
- package/2x/es/components/dropdown/item.d.ts +2 -1
- package/2x/es/components/error-block/error-block.d.ts +2 -1
- package/2x/es/components/floating-bubble/floating-bubble.d.ts +1 -0
- package/2x/es/components/form/header.d.ts +4 -2
- package/2x/es/components/form/index.d.ts +3 -1
- package/2x/es/components/grid/grid.d.ts +2 -0
- package/2x/es/components/image-uploader/image-uploader.d.ts +2 -1
- package/2x/es/components/infinite-scroll/infinite-scroll.d.ts +2 -1
- package/2x/es/components/infinite-scroll/infinite-scroll.js +5 -1
- package/2x/es/components/input/input.d.ts +2 -2
- package/2x/es/components/input/input.js +2 -1
- package/2x/es/components/jumbo-tabs/jumbo-tabs.d.ts +3 -1
- package/2x/es/components/list/list.css +1 -0
- package/2x/es/components/list/list.d.ts +1 -0
- package/2x/es/components/mask/mask.d.ts +1 -0
- package/2x/es/components/nav-bar/nav-bar.d.ts +2 -1
- package/2x/es/components/picker/picker.d.ts +1 -0
- package/2x/es/components/picker/picker.js +1 -0
- package/2x/es/components/picker-view/picker-view.d.ts +1 -0
- package/2x/es/components/picker-view/picker-view.js +4 -2
- package/2x/es/components/picker-view/wheel.d.ts +1 -0
- package/2x/es/components/picker-view/wheel.js +24 -5
- package/2x/es/components/popover/wrapper.d.ts +3 -1
- package/2x/es/components/popup/popup.d.ts +1 -0
- package/2x/es/components/pull-to-refresh/pull-to-refresh.d.ts +2 -1
- package/2x/es/components/pull-to-refresh/pull-to-refresh.js +2 -2
- package/2x/es/components/radio/group.d.ts +2 -1
- package/2x/es/components/radio/radio.d.ts +1 -0
- package/2x/es/components/side-bar/side-bar.d.ts +2 -0
- package/2x/es/components/space/space.d.ts +1 -0
- package/2x/es/components/steps/steps.d.ts +2 -1
- package/2x/es/components/swiper/index.d.ts +1 -0
- package/2x/es/components/swiper/swiper-item.d.ts +1 -0
- package/2x/es/components/tab-bar/tab-bar.d.ts +2 -0
- package/2x/es/components/tabs/tabs.d.ts +3 -1
- package/2x/es/components/tag/tag.d.ts +1 -0
- package/2x/es/components/text-area/text-area.d.ts +2 -2
- package/2x/es/components/text-area/text-area.js +2 -1
- package/2x/es/locales/base.d.ts +3 -0
- package/2x/es/locales/base.js +4 -1
- package/2x/es/locales/en-US.d.ts +3 -0
- package/2x/es/locales/es-ES.d.ts +3 -0
- package/2x/es/locales/es-ES.js +1 -1
- package/2x/es/locales/fa-IR.d.ts +3 -0
- package/2x/es/locales/ko-KR.d.ts +3 -0
- package/2x/es/locales/ko-KR.js +2 -2
- package/2x/es/locales/zh-CN.d.ts +3 -0
- package/2x/es/locales/zh-CN.js +4 -1
- package/2x/es/locales/zh-HK.d.ts +3 -0
- package/2x/es/locales/zh-HK.js +4 -1
- package/2x/es/locales/zh-TW.d.ts +3 -0
- package/2x/es/locales/zh-TW.js +4 -1
- package/2x/package.json +2 -1
- package/bundle/antd-mobile.cjs.js +48 -15
- package/bundle/antd-mobile.es.js +49 -16
- package/bundle/style.css +1 -0
- package/cjs/components/auto-center/auto-center.d.ts +4 -2
- package/cjs/components/badge/badge.d.ts +1 -0
- package/cjs/components/calendar/calendar.js +1 -1
- package/cjs/components/capsule-tabs/capsule-tabs.d.ts +3 -1
- package/cjs/components/card/card.d.ts +1 -0
- package/cjs/components/check-list/check-list.d.ts +2 -1
- package/cjs/components/checkbox/checkbox.d.ts +1 -0
- package/cjs/components/checkbox/group.d.ts +2 -1
- package/cjs/components/collapse/collapse.d.ts +4 -1
- package/cjs/components/config-provider/config-provider.d.ts +2 -1
- package/cjs/components/date-picker/date-picker.d.ts +1 -1
- package/cjs/components/date-picker/date-picker.js +2 -1
- package/cjs/components/date-picker-view/date-picker-view.d.ts +1 -1
- package/cjs/components/date-picker-view/date-picker-view.js +1 -0
- package/cjs/components/divider/divider.d.ts +2 -1
- package/cjs/components/dropdown/item.d.ts +2 -1
- package/cjs/components/error-block/error-block.d.ts +2 -1
- package/cjs/components/floating-bubble/floating-bubble.d.ts +1 -0
- package/cjs/components/form/header.d.ts +4 -2
- package/cjs/components/form/index.d.ts +3 -1
- package/cjs/components/grid/grid.d.ts +2 -0
- package/cjs/components/image-uploader/image-uploader.d.ts +2 -1
- package/cjs/components/infinite-scroll/infinite-scroll.d.ts +2 -1
- package/cjs/components/infinite-scroll/infinite-scroll.js +6 -1
- package/cjs/components/input/input.d.ts +2 -2
- package/cjs/components/input/input.js +2 -1
- package/cjs/components/jumbo-tabs/jumbo-tabs.d.ts +3 -1
- package/cjs/components/list/list.css +1 -0
- package/cjs/components/list/list.d.ts +1 -0
- package/cjs/components/mask/mask.d.ts +1 -0
- package/cjs/components/nav-bar/nav-bar.d.ts +2 -1
- package/cjs/components/picker/picker.d.ts +1 -0
- package/cjs/components/picker/picker.js +1 -0
- package/cjs/components/picker-view/picker-view.d.ts +1 -0
- package/cjs/components/picker-view/picker-view.js +4 -2
- package/cjs/components/picker-view/wheel.d.ts +1 -0
- package/cjs/components/picker-view/wheel.js +24 -4
- package/cjs/components/popover/wrapper.d.ts +3 -1
- package/cjs/components/popup/popup.d.ts +1 -0
- package/cjs/components/pull-to-refresh/pull-to-refresh.d.ts +2 -1
- package/cjs/components/pull-to-refresh/pull-to-refresh.js +2 -2
- package/cjs/components/radio/group.d.ts +2 -1
- package/cjs/components/radio/radio.d.ts +1 -0
- package/cjs/components/side-bar/side-bar.d.ts +2 -0
- package/cjs/components/space/space.d.ts +1 -0
- package/cjs/components/steps/steps.d.ts +2 -1
- package/cjs/components/swiper/index.d.ts +1 -0
- package/cjs/components/swiper/swiper-item.d.ts +1 -0
- package/cjs/components/tab-bar/tab-bar.d.ts +2 -0
- package/cjs/components/tabs/tabs.d.ts +3 -1
- package/cjs/components/tag/tag.d.ts +1 -0
- package/cjs/components/text-area/text-area.d.ts +2 -2
- package/cjs/components/text-area/text-area.js +2 -1
- package/cjs/locales/base.d.ts +3 -0
- package/cjs/locales/base.js +4 -1
- package/cjs/locales/en-US.d.ts +3 -0
- package/cjs/locales/es-ES.d.ts +3 -0
- package/cjs/locales/es-ES.js +1 -1
- package/cjs/locales/fa-IR.d.ts +3 -0
- package/cjs/locales/ko-KR.d.ts +3 -0
- package/cjs/locales/ko-KR.js +2 -2
- package/cjs/locales/zh-CN.d.ts +3 -0
- package/cjs/locales/zh-CN.js +4 -1
- package/cjs/locales/zh-HK.d.ts +3 -0
- package/cjs/locales/zh-HK.js +4 -1
- package/cjs/locales/zh-TW.d.ts +3 -0
- package/cjs/locales/zh-TW.js +4 -1
- package/es/components/auto-center/auto-center.d.ts +4 -2
- package/es/components/badge/badge.d.ts +1 -0
- package/es/components/calendar/calendar.js +1 -1
- package/es/components/capsule-tabs/capsule-tabs.d.ts +3 -1
- package/es/components/card/card.d.ts +1 -0
- package/es/components/check-list/check-list.d.ts +2 -1
- package/es/components/checkbox/checkbox.d.ts +1 -0
- package/es/components/checkbox/group.d.ts +2 -1
- package/es/components/collapse/collapse.d.ts +4 -1
- package/es/components/config-provider/config-provider.d.ts +2 -1
- package/es/components/date-picker/date-picker.d.ts +1 -1
- package/es/components/date-picker/date-picker.js +2 -1
- package/es/components/date-picker-view/date-picker-view.d.ts +1 -1
- package/es/components/date-picker-view/date-picker-view.js +1 -0
- package/es/components/divider/divider.d.ts +2 -1
- package/es/components/dropdown/item.d.ts +2 -1
- package/es/components/error-block/error-block.d.ts +2 -1
- package/es/components/floating-bubble/floating-bubble.d.ts +1 -0
- package/es/components/form/header.d.ts +4 -2
- package/es/components/form/index.d.ts +3 -1
- package/es/components/grid/grid.d.ts +2 -0
- package/es/components/image-uploader/image-uploader.d.ts +2 -1
- package/es/components/infinite-scroll/infinite-scroll.d.ts +2 -1
- package/es/components/infinite-scroll/infinite-scroll.js +5 -1
- package/es/components/input/input.d.ts +2 -2
- package/es/components/input/input.js +2 -1
- package/es/components/jumbo-tabs/jumbo-tabs.d.ts +3 -1
- package/es/components/list/list.css +1 -0
- package/es/components/list/list.d.ts +1 -0
- package/es/components/mask/mask.d.ts +1 -0
- package/es/components/nav-bar/nav-bar.d.ts +2 -1
- package/es/components/picker/picker.d.ts +1 -0
- package/es/components/picker/picker.js +1 -0
- package/es/components/picker-view/picker-view.d.ts +1 -0
- package/es/components/picker-view/picker-view.js +4 -2
- package/es/components/picker-view/wheel.d.ts +1 -0
- package/es/components/picker-view/wheel.js +24 -5
- package/es/components/popover/wrapper.d.ts +3 -1
- package/es/components/popup/popup.d.ts +1 -0
- package/es/components/pull-to-refresh/pull-to-refresh.d.ts +2 -1
- package/es/components/pull-to-refresh/pull-to-refresh.js +2 -2
- package/es/components/radio/group.d.ts +2 -1
- package/es/components/radio/radio.d.ts +1 -0
- package/es/components/side-bar/side-bar.d.ts +2 -0
- package/es/components/space/space.d.ts +1 -0
- package/es/components/steps/steps.d.ts +2 -1
- package/es/components/swiper/index.d.ts +1 -0
- package/es/components/swiper/swiper-item.d.ts +1 -0
- package/es/components/tab-bar/tab-bar.d.ts +2 -0
- package/es/components/tabs/tabs.d.ts +3 -1
- package/es/components/tag/tag.d.ts +1 -0
- package/es/components/text-area/text-area.d.ts +2 -2
- package/es/components/text-area/text-area.js +2 -1
- package/es/locales/base.d.ts +3 -0
- package/es/locales/base.js +4 -1
- package/es/locales/en-US.d.ts +3 -0
- package/es/locales/es-ES.d.ts +3 -0
- package/es/locales/es-ES.js +1 -1
- package/es/locales/fa-IR.d.ts +3 -0
- package/es/locales/ko-KR.d.ts +3 -0
- package/es/locales/ko-KR.js +2 -2
- package/es/locales/zh-CN.d.ts +3 -0
- package/es/locales/zh-CN.js +4 -1
- package/es/locales/zh-HK.d.ts +3 -0
- package/es/locales/zh-HK.js +4 -1
- package/es/locales/zh-TW.d.ts +3 -0
- package/es/locales/zh-TW.js +4 -1
- package/package.json +2 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -1241,7 +1241,7 @@ const base = {
|
|
|
1241
1241
|
common: {
|
|
1242
1242
|
confirm: "Confirm",
|
|
1243
1243
|
cancel: "Cancel",
|
|
1244
|
-
loading: "Loading
|
|
1244
|
+
loading: "Loading"
|
|
1245
1245
|
},
|
|
1246
1246
|
Calendar: {
|
|
1247
1247
|
markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
@@ -1325,6 +1325,9 @@ const base = {
|
|
|
1325
1325
|
ImageUploader: {
|
|
1326
1326
|
uploading: "Uploading..."
|
|
1327
1327
|
},
|
|
1328
|
+
InfiniteScroll: {
|
|
1329
|
+
noMore: "No more"
|
|
1330
|
+
},
|
|
1328
1331
|
Mask: {
|
|
1329
1332
|
name: "Mask"
|
|
1330
1333
|
},
|
|
@@ -1343,7 +1346,7 @@ const zhCN = mergeLocale(base, {
|
|
|
1343
1346
|
common: {
|
|
1344
1347
|
confirm: "\u786E\u5B9A",
|
|
1345
1348
|
cancel: "\u53D6\u6D88",
|
|
1346
|
-
loading: "\u52A0\u8F7D\u4E2D
|
|
1349
|
+
loading: "\u52A0\u8F7D\u4E2D"
|
|
1347
1350
|
},
|
|
1348
1351
|
Calendar: {
|
|
1349
1352
|
markItems: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
|
|
@@ -1427,6 +1430,9 @@ const zhCN = mergeLocale(base, {
|
|
|
1427
1430
|
ImageUploader: {
|
|
1428
1431
|
uploading: "\u4E0A\u4F20\u4E2D..."
|
|
1429
1432
|
},
|
|
1433
|
+
InfiniteScroll: {
|
|
1434
|
+
noMore: "\u6CA1\u6709\u66F4\u591A\u4E86"
|
|
1435
|
+
},
|
|
1430
1436
|
Mask: {
|
|
1431
1437
|
name: "\u906E\u7F69\u5C42"
|
|
1432
1438
|
},
|
|
@@ -8874,7 +8880,7 @@ const Calendar = React$1.forwardRef((p, ref) => {
|
|
|
8874
8880
|
} else {
|
|
8875
8881
|
page = pageOrPageGenerator;
|
|
8876
8882
|
}
|
|
8877
|
-
setCurrent(dayjs__default["default"]().year(page.year).month(page.month - 1));
|
|
8883
|
+
setCurrent(dayjs__default["default"]().year(page.year).month(page.month - 1).date(1));
|
|
8878
8884
|
},
|
|
8879
8885
|
jumpToToday: () => {
|
|
8880
8886
|
setCurrent(dayjs__default["default"]().date(1));
|
|
@@ -9631,7 +9637,7 @@ const Wheel = React$1.memo((props) => {
|
|
|
9631
9637
|
return;
|
|
9632
9638
|
onSelect(item.value);
|
|
9633
9639
|
}
|
|
9634
|
-
const
|
|
9640
|
+
const handleDrag = (state) => {
|
|
9635
9641
|
draggingRef.current = true;
|
|
9636
9642
|
const min = -((column.length - 1) * itemHeight.current);
|
|
9637
9643
|
const max = 0;
|
|
@@ -9646,13 +9652,30 @@ const Wheel = React$1.memo((props) => {
|
|
|
9646
9652
|
y: rubberbandIfOutOfBounds(position, min, max, itemHeight.current * 50, 0.2)
|
|
9647
9653
|
});
|
|
9648
9654
|
}
|
|
9655
|
+
};
|
|
9656
|
+
react.useDrag((state) => {
|
|
9657
|
+
state.event.stopPropagation();
|
|
9658
|
+
handleDrag(state);
|
|
9649
9659
|
}, {
|
|
9650
9660
|
axis: "y",
|
|
9651
9661
|
from: () => [0, y2.get()],
|
|
9652
9662
|
filterTaps: true,
|
|
9653
9663
|
pointer: {
|
|
9654
9664
|
touch: true
|
|
9655
|
-
}
|
|
9665
|
+
},
|
|
9666
|
+
target: rootRef
|
|
9667
|
+
});
|
|
9668
|
+
react.useWheel((state) => {
|
|
9669
|
+
state.event.stopPropagation();
|
|
9670
|
+
handleDrag(state);
|
|
9671
|
+
}, {
|
|
9672
|
+
axis: "y",
|
|
9673
|
+
from: () => [0, y2.get()],
|
|
9674
|
+
preventDefault: true,
|
|
9675
|
+
target: props.mouseWheel ? rootRef : void 0,
|
|
9676
|
+
eventOptions: supportsPassive ? {
|
|
9677
|
+
passive: false
|
|
9678
|
+
} : false
|
|
9656
9679
|
});
|
|
9657
9680
|
let selectedIndex = null;
|
|
9658
9681
|
function renderAccessible() {
|
|
@@ -9686,10 +9709,10 @@ const Wheel = React$1.memo((props) => {
|
|
|
9686
9709
|
"aria-label": `\u9009\u62E9\u4E0B\u4E00\u9879\uFF1A${next.label}`
|
|
9687
9710
|
}, "-")));
|
|
9688
9711
|
}
|
|
9689
|
-
return React__default["default"].createElement("div",
|
|
9712
|
+
return React__default["default"].createElement("div", {
|
|
9690
9713
|
ref: rootRef,
|
|
9691
9714
|
className: `${classPrefix$13}-column`
|
|
9692
|
-
},
|
|
9715
|
+
}, React__default["default"].createElement(web.animated.div, {
|
|
9693
9716
|
style: {
|
|
9694
9717
|
translateY: y2
|
|
9695
9718
|
},
|
|
@@ -9771,7 +9794,8 @@ const defaultRenderLabel$3 = (item) => item.label;
|
|
|
9771
9794
|
const classPrefix$12 = `adm-picker-view`;
|
|
9772
9795
|
const defaultProps$S = {
|
|
9773
9796
|
defaultValue: [],
|
|
9774
|
-
renderLabel: defaultRenderLabel$3
|
|
9797
|
+
renderLabel: defaultRenderLabel$3,
|
|
9798
|
+
mouseWheel: false
|
|
9775
9799
|
};
|
|
9776
9800
|
const PickerView = React$1.memo((p) => {
|
|
9777
9801
|
const props = mergeProps(defaultProps$S, p);
|
|
@@ -9822,7 +9846,8 @@ const PickerView = React$1.memo((p) => {
|
|
|
9822
9846
|
column,
|
|
9823
9847
|
value: innerValue[index2],
|
|
9824
9848
|
onSelect: handleSelect,
|
|
9825
|
-
renderLabel: props.renderLabel
|
|
9849
|
+
renderLabel: props.renderLabel,
|
|
9850
|
+
mouseWheel: props.mouseWheel
|
|
9826
9851
|
})), React__default["default"].createElement("div", {
|
|
9827
9852
|
className: `${classPrefix$12}-mask`
|
|
9828
9853
|
}, React__default["default"].createElement("div", {
|
|
@@ -9902,6 +9927,7 @@ const Picker$1 = React$1.memo((p) => {
|
|
|
9902
9927
|
columns: props.columns,
|
|
9903
9928
|
renderLabel: props.renderLabel,
|
|
9904
9929
|
value: innerValue,
|
|
9930
|
+
mouseWheel: props.mouseWheel,
|
|
9905
9931
|
onChange
|
|
9906
9932
|
}))));
|
|
9907
9933
|
const popupElement = React__default["default"].createElement(Popup, {
|
|
@@ -11382,7 +11408,8 @@ const DatePicker = (p) => {
|
|
|
11382
11408
|
afterClose: props.afterClose,
|
|
11383
11409
|
onClick: props.onClick,
|
|
11384
11410
|
title: props.title,
|
|
11385
|
-
stopPropagation: props.stopPropagation
|
|
11411
|
+
stopPropagation: props.stopPropagation,
|
|
11412
|
+
mouseWheel: props.mouseWheel
|
|
11386
11413
|
}, () => {
|
|
11387
11414
|
var _a;
|
|
11388
11415
|
return (_a = props.children) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
@@ -11447,6 +11474,7 @@ const DatePickerView = (p) => {
|
|
|
11447
11474
|
return withNativeProps(props, React__default["default"].createElement(PickerView, {
|
|
11448
11475
|
columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, props.renderLabel, props.filter),
|
|
11449
11476
|
value: pickerValue,
|
|
11477
|
+
mouseWheel: props.mouseWheel,
|
|
11450
11478
|
onChange
|
|
11451
11479
|
}));
|
|
11452
11480
|
};
|
|
@@ -14467,7 +14495,10 @@ const classPrefix$w = `adm-infinite-scroll`;
|
|
|
14467
14495
|
const InfiniteScrollContent = ({
|
|
14468
14496
|
hasMore
|
|
14469
14497
|
}) => {
|
|
14470
|
-
|
|
14498
|
+
const {
|
|
14499
|
+
locale
|
|
14500
|
+
} = useConfig();
|
|
14501
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, hasMore ? React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement("span", null, locale.common.loading), React__default["default"].createElement(DotLoading, null)) : React__default["default"].createElement("span", null, locale.InfiniteScroll.noMore));
|
|
14471
14502
|
};
|
|
14472
14503
|
const InfiniteScroll = (p) => {
|
|
14473
14504
|
const props = mergeProps({
|
|
@@ -14615,7 +14646,8 @@ const Input = React$1.forwardRef((p, ref) => {
|
|
|
14615
14646
|
onKeyDown: handleKeydown,
|
|
14616
14647
|
onKeyUp: props.onKeyUp,
|
|
14617
14648
|
onCompositionStart: props.onCompositionStart,
|
|
14618
|
-
onCompositionEnd: props.onCompositionEnd
|
|
14649
|
+
onCompositionEnd: props.onCompositionEnd,
|
|
14650
|
+
onClick: props.onClick
|
|
14619
14651
|
}), props.clearable && !!value && !props.readOnly && hasFocus && React__default["default"].createElement("div", {
|
|
14620
14652
|
className: `${classPrefix$v}-clear`,
|
|
14621
14653
|
onMouseDown: (e) => {
|
|
@@ -15408,7 +15440,7 @@ const classPrefix$m = `adm-pull-to-refresh`;
|
|
|
15408
15440
|
const defaultProps$j = {
|
|
15409
15441
|
pullingText: "\u4E0B\u62C9\u5237\u65B0",
|
|
15410
15442
|
canReleaseText: "\u91CA\u653E\u7ACB\u5373\u5237\u65B0",
|
|
15411
|
-
refreshingText: "\u52A0\u8F7D\u4E2D
|
|
15443
|
+
refreshingText: "\u52A0\u8F7D\u4E2D...",
|
|
15412
15444
|
completeText: "\u5237\u65B0\u6210\u529F",
|
|
15413
15445
|
completeDelay: 500,
|
|
15414
15446
|
disabled: false,
|
|
@@ -15421,7 +15453,7 @@ const PullToRefresh = (p) => {
|
|
|
15421
15453
|
locale
|
|
15422
15454
|
} = useConfig();
|
|
15423
15455
|
const props = mergeProps(defaultProps$j, {
|
|
15424
|
-
refreshingText: locale.common.loading
|
|
15456
|
+
refreshingText: `${locale.common.loading}...`,
|
|
15425
15457
|
pullingText: locale.PullToRefresh.pulling,
|
|
15426
15458
|
canReleaseText: locale.PullToRefresh.canRelease,
|
|
15427
15459
|
completeText: locale.PullToRefresh.complete
|
|
@@ -17212,7 +17244,8 @@ const TextArea = React$1.forwardRef((p, ref) => {
|
|
|
17212
17244
|
disabled: props.disabled,
|
|
17213
17245
|
readOnly: props.readOnly,
|
|
17214
17246
|
onFocus: props.onFocus,
|
|
17215
|
-
onBlur: props.onBlur
|
|
17247
|
+
onBlur: props.onBlur,
|
|
17248
|
+
onClick: props.onClick
|
|
17216
17249
|
}), count));
|
|
17217
17250
|
});
|
|
17218
17251
|
TextArea.defaultProps = defaultProps$5;
|
package/bundle/antd-mobile.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useUnmountedRef, useUpdate, useMemoizedFn, useUpdateEffect, useIsomorph
|
|
|
5
5
|
import { useSpring, animated, to } from "@react-spring/web";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
7
|
import { isFragment } from "react-is";
|
|
8
|
-
import { useDrag, createUseGesture, dragAction, pinchAction } from "@use-gesture/react";
|
|
8
|
+
import { useDrag, useWheel, createUseGesture, dragAction, pinchAction } from "@use-gesture/react";
|
|
9
9
|
import { RightOutline, CheckOutline, DownOutline, PictureOutline, PictureWrongOutline, DownFill, QuestionCircleOutline, CloseOutline, AddOutline, CloseCircleFill, LeftOutline, SoundOutline, TextDeletionOutline, StarFill, CheckCircleFill, InformationCircleFill, ClockCircleFill, ExclamationCircleFill, SearchOutline, MinusOutline } from "antd-mobile-icons";
|
|
10
10
|
import { staged } from "staged-components";
|
|
11
11
|
import RcForm, { List as List$2, Field, useForm } from "rc-field-form";
|
|
@@ -1231,7 +1231,7 @@ const base = {
|
|
|
1231
1231
|
common: {
|
|
1232
1232
|
confirm: "Confirm",
|
|
1233
1233
|
cancel: "Cancel",
|
|
1234
|
-
loading: "Loading
|
|
1234
|
+
loading: "Loading"
|
|
1235
1235
|
},
|
|
1236
1236
|
Calendar: {
|
|
1237
1237
|
markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
@@ -1315,6 +1315,9 @@ const base = {
|
|
|
1315
1315
|
ImageUploader: {
|
|
1316
1316
|
uploading: "Uploading..."
|
|
1317
1317
|
},
|
|
1318
|
+
InfiniteScroll: {
|
|
1319
|
+
noMore: "No more"
|
|
1320
|
+
},
|
|
1318
1321
|
Mask: {
|
|
1319
1322
|
name: "Mask"
|
|
1320
1323
|
},
|
|
@@ -1333,7 +1336,7 @@ const zhCN = mergeLocale(base, {
|
|
|
1333
1336
|
common: {
|
|
1334
1337
|
confirm: "\u786E\u5B9A",
|
|
1335
1338
|
cancel: "\u53D6\u6D88",
|
|
1336
|
-
loading: "\u52A0\u8F7D\u4E2D
|
|
1339
|
+
loading: "\u52A0\u8F7D\u4E2D"
|
|
1337
1340
|
},
|
|
1338
1341
|
Calendar: {
|
|
1339
1342
|
markItems: ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u65E5"],
|
|
@@ -1417,6 +1420,9 @@ const zhCN = mergeLocale(base, {
|
|
|
1417
1420
|
ImageUploader: {
|
|
1418
1421
|
uploading: "\u4E0A\u4F20\u4E2D..."
|
|
1419
1422
|
},
|
|
1423
|
+
InfiniteScroll: {
|
|
1424
|
+
noMore: "\u6CA1\u6709\u66F4\u591A\u4E86"
|
|
1425
|
+
},
|
|
1420
1426
|
Mask: {
|
|
1421
1427
|
name: "\u906E\u7F69\u5C42"
|
|
1422
1428
|
},
|
|
@@ -8864,7 +8870,7 @@ const Calendar = forwardRef((p, ref) => {
|
|
|
8864
8870
|
} else {
|
|
8865
8871
|
page = pageOrPageGenerator;
|
|
8866
8872
|
}
|
|
8867
|
-
setCurrent(dayjs().year(page.year).month(page.month - 1));
|
|
8873
|
+
setCurrent(dayjs().year(page.year).month(page.month - 1).date(1));
|
|
8868
8874
|
},
|
|
8869
8875
|
jumpToToday: () => {
|
|
8870
8876
|
setCurrent(dayjs().date(1));
|
|
@@ -9621,7 +9627,7 @@ const Wheel = memo((props) => {
|
|
|
9621
9627
|
return;
|
|
9622
9628
|
onSelect(item.value);
|
|
9623
9629
|
}
|
|
9624
|
-
const
|
|
9630
|
+
const handleDrag = (state) => {
|
|
9625
9631
|
draggingRef.current = true;
|
|
9626
9632
|
const min = -((column.length - 1) * itemHeight.current);
|
|
9627
9633
|
const max = 0;
|
|
@@ -9636,13 +9642,30 @@ const Wheel = memo((props) => {
|
|
|
9636
9642
|
y: rubberbandIfOutOfBounds(position, min, max, itemHeight.current * 50, 0.2)
|
|
9637
9643
|
});
|
|
9638
9644
|
}
|
|
9645
|
+
};
|
|
9646
|
+
useDrag((state) => {
|
|
9647
|
+
state.event.stopPropagation();
|
|
9648
|
+
handleDrag(state);
|
|
9639
9649
|
}, {
|
|
9640
9650
|
axis: "y",
|
|
9641
9651
|
from: () => [0, y2.get()],
|
|
9642
9652
|
filterTaps: true,
|
|
9643
9653
|
pointer: {
|
|
9644
9654
|
touch: true
|
|
9645
|
-
}
|
|
9655
|
+
},
|
|
9656
|
+
target: rootRef
|
|
9657
|
+
});
|
|
9658
|
+
useWheel((state) => {
|
|
9659
|
+
state.event.stopPropagation();
|
|
9660
|
+
handleDrag(state);
|
|
9661
|
+
}, {
|
|
9662
|
+
axis: "y",
|
|
9663
|
+
from: () => [0, y2.get()],
|
|
9664
|
+
preventDefault: true,
|
|
9665
|
+
target: props.mouseWheel ? rootRef : void 0,
|
|
9666
|
+
eventOptions: supportsPassive ? {
|
|
9667
|
+
passive: false
|
|
9668
|
+
} : false
|
|
9646
9669
|
});
|
|
9647
9670
|
let selectedIndex = null;
|
|
9648
9671
|
function renderAccessible() {
|
|
@@ -9676,10 +9699,10 @@ const Wheel = memo((props) => {
|
|
|
9676
9699
|
"aria-label": `\u9009\u62E9\u4E0B\u4E00\u9879\uFF1A${next.label}`
|
|
9677
9700
|
}, "-")));
|
|
9678
9701
|
}
|
|
9679
|
-
return React$1.createElement("div",
|
|
9702
|
+
return React$1.createElement("div", {
|
|
9680
9703
|
ref: rootRef,
|
|
9681
9704
|
className: `${classPrefix$13}-column`
|
|
9682
|
-
},
|
|
9705
|
+
}, React$1.createElement(animated.div, {
|
|
9683
9706
|
style: {
|
|
9684
9707
|
translateY: y2
|
|
9685
9708
|
},
|
|
@@ -9761,7 +9784,8 @@ const defaultRenderLabel$3 = (item) => item.label;
|
|
|
9761
9784
|
const classPrefix$12 = `adm-picker-view`;
|
|
9762
9785
|
const defaultProps$S = {
|
|
9763
9786
|
defaultValue: [],
|
|
9764
|
-
renderLabel: defaultRenderLabel$3
|
|
9787
|
+
renderLabel: defaultRenderLabel$3,
|
|
9788
|
+
mouseWheel: false
|
|
9765
9789
|
};
|
|
9766
9790
|
const PickerView = memo((p) => {
|
|
9767
9791
|
const props = mergeProps(defaultProps$S, p);
|
|
@@ -9812,7 +9836,8 @@ const PickerView = memo((p) => {
|
|
|
9812
9836
|
column,
|
|
9813
9837
|
value: innerValue[index2],
|
|
9814
9838
|
onSelect: handleSelect,
|
|
9815
|
-
renderLabel: props.renderLabel
|
|
9839
|
+
renderLabel: props.renderLabel,
|
|
9840
|
+
mouseWheel: props.mouseWheel
|
|
9816
9841
|
})), React$1.createElement("div", {
|
|
9817
9842
|
className: `${classPrefix$12}-mask`
|
|
9818
9843
|
}, React$1.createElement("div", {
|
|
@@ -9892,6 +9917,7 @@ const Picker$1 = memo((p) => {
|
|
|
9892
9917
|
columns: props.columns,
|
|
9893
9918
|
renderLabel: props.renderLabel,
|
|
9894
9919
|
value: innerValue,
|
|
9920
|
+
mouseWheel: props.mouseWheel,
|
|
9895
9921
|
onChange
|
|
9896
9922
|
}))));
|
|
9897
9923
|
const popupElement = React$1.createElement(Popup, {
|
|
@@ -11372,7 +11398,8 @@ const DatePicker = (p) => {
|
|
|
11372
11398
|
afterClose: props.afterClose,
|
|
11373
11399
|
onClick: props.onClick,
|
|
11374
11400
|
title: props.title,
|
|
11375
|
-
stopPropagation: props.stopPropagation
|
|
11401
|
+
stopPropagation: props.stopPropagation,
|
|
11402
|
+
mouseWheel: props.mouseWheel
|
|
11376
11403
|
}, () => {
|
|
11377
11404
|
var _a;
|
|
11378
11405
|
return (_a = props.children) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
|
@@ -11437,6 +11464,7 @@ const DatePickerView = (p) => {
|
|
|
11437
11464
|
return withNativeProps(props, React$1.createElement(PickerView, {
|
|
11438
11465
|
columns: (selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, props.renderLabel, props.filter),
|
|
11439
11466
|
value: pickerValue,
|
|
11467
|
+
mouseWheel: props.mouseWheel,
|
|
11440
11468
|
onChange
|
|
11441
11469
|
}));
|
|
11442
11470
|
};
|
|
@@ -14457,7 +14485,10 @@ const classPrefix$w = `adm-infinite-scroll`;
|
|
|
14457
14485
|
const InfiniteScrollContent = ({
|
|
14458
14486
|
hasMore
|
|
14459
14487
|
}) => {
|
|
14460
|
-
|
|
14488
|
+
const {
|
|
14489
|
+
locale
|
|
14490
|
+
} = useConfig();
|
|
14491
|
+
return React$1.createElement(React$1.Fragment, null, hasMore ? React$1.createElement(React$1.Fragment, null, React$1.createElement("span", null, locale.common.loading), React$1.createElement(DotLoading, null)) : React$1.createElement("span", null, locale.InfiniteScroll.noMore));
|
|
14461
14492
|
};
|
|
14462
14493
|
const InfiniteScroll = (p) => {
|
|
14463
14494
|
const props = mergeProps({
|
|
@@ -14605,7 +14636,8 @@ const Input = forwardRef((p, ref) => {
|
|
|
14605
14636
|
onKeyDown: handleKeydown,
|
|
14606
14637
|
onKeyUp: props.onKeyUp,
|
|
14607
14638
|
onCompositionStart: props.onCompositionStart,
|
|
14608
|
-
onCompositionEnd: props.onCompositionEnd
|
|
14639
|
+
onCompositionEnd: props.onCompositionEnd,
|
|
14640
|
+
onClick: props.onClick
|
|
14609
14641
|
}), props.clearable && !!value && !props.readOnly && hasFocus && React$1.createElement("div", {
|
|
14610
14642
|
className: `${classPrefix$v}-clear`,
|
|
14611
14643
|
onMouseDown: (e) => {
|
|
@@ -15398,7 +15430,7 @@ const classPrefix$m = `adm-pull-to-refresh`;
|
|
|
15398
15430
|
const defaultProps$j = {
|
|
15399
15431
|
pullingText: "\u4E0B\u62C9\u5237\u65B0",
|
|
15400
15432
|
canReleaseText: "\u91CA\u653E\u7ACB\u5373\u5237\u65B0",
|
|
15401
|
-
refreshingText: "\u52A0\u8F7D\u4E2D
|
|
15433
|
+
refreshingText: "\u52A0\u8F7D\u4E2D...",
|
|
15402
15434
|
completeText: "\u5237\u65B0\u6210\u529F",
|
|
15403
15435
|
completeDelay: 500,
|
|
15404
15436
|
disabled: false,
|
|
@@ -15411,7 +15443,7 @@ const PullToRefresh = (p) => {
|
|
|
15411
15443
|
locale
|
|
15412
15444
|
} = useConfig();
|
|
15413
15445
|
const props = mergeProps(defaultProps$j, {
|
|
15414
|
-
refreshingText: locale.common.loading
|
|
15446
|
+
refreshingText: `${locale.common.loading}...`,
|
|
15415
15447
|
pullingText: locale.PullToRefresh.pulling,
|
|
15416
15448
|
canReleaseText: locale.PullToRefresh.canRelease,
|
|
15417
15449
|
completeText: locale.PullToRefresh.complete
|
|
@@ -17202,7 +17234,8 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
17202
17234
|
disabled: props.disabled,
|
|
17203
17235
|
readOnly: props.readOnly,
|
|
17204
17236
|
onFocus: props.onFocus,
|
|
17205
|
-
onBlur: props.onBlur
|
|
17237
|
+
onBlur: props.onBlur,
|
|
17238
|
+
onClick: props.onClick
|
|
17206
17239
|
}), count));
|
|
17207
17240
|
});
|
|
17208
17241
|
TextArea.defaultProps = defaultProps$5;
|
package/bundle/style.css
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
|
-
export declare type AutoCenterProps =
|
|
3
|
+
export declare type AutoCenterProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & NativeProps;
|
|
4
6
|
export declare const AutoCenter: FC<AutoCenterProps>;
|
|
@@ -89,7 +89,7 @@ const Calendar = (0, _react.forwardRef)((p, ref) => {
|
|
|
89
89
|
page = pageOrPageGenerator;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
setCurrent((0, _dayjs.default)().year(page.year).month(page.month - 1));
|
|
92
|
+
setCurrent((0, _dayjs.default)().year(page.year).month(page.month - 1).date(1));
|
|
93
93
|
},
|
|
94
94
|
jumpToToday: () => {
|
|
95
95
|
setCurrent((0, _dayjs.default)().date(1));
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
export declare type CapsuleTabProps = {
|
|
4
4
|
title: ReactNode;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
forceRender?: boolean;
|
|
7
7
|
destroyOnClose?: boolean;
|
|
8
|
+
children?: ReactNode;
|
|
8
9
|
} & NativeProps;
|
|
9
10
|
export declare const CapsuleTab: FC<CapsuleTabProps>;
|
|
10
11
|
export declare type CapsuleTabsProps = {
|
|
11
12
|
activeKey?: string | null;
|
|
12
13
|
defaultActiveKey?: string | null;
|
|
13
14
|
onChange?: (key: string) => void;
|
|
15
|
+
children?: React.ReactNode;
|
|
14
16
|
} & NativeProps;
|
|
15
17
|
export declare const CapsuleTabs: FC<CapsuleTabsProps>;
|
|
@@ -10,5 +10,6 @@ export declare type CardProps = {
|
|
|
10
10
|
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
11
11
|
onBodyClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
12
12
|
onHeaderClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
13
|
+
children?: React.ReactNode;
|
|
13
14
|
} & NativeProps;
|
|
14
15
|
export declare const Card: FC<CardProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
import { ListProps } from '../list';
|
|
4
4
|
export declare type CheckListProps = Pick<ListProps, 'mode' | 'style'> & {
|
|
@@ -9,5 +9,6 @@ export declare type CheckListProps = Pick<ListProps, 'mode' | 'style'> & {
|
|
|
9
9
|
activeIcon?: ReactNode;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
readOnly?: boolean;
|
|
12
|
+
children?: React.ReactNode;
|
|
12
13
|
} & NativeProps;
|
|
13
14
|
export declare const CheckList: FC<CheckListProps>;
|
|
@@ -11,5 +11,6 @@ export declare type CheckboxProps = {
|
|
|
11
11
|
block?: boolean;
|
|
12
12
|
id?: string;
|
|
13
13
|
icon?: (checked: boolean, indeterminate: boolean) => React.ReactNode;
|
|
14
|
+
children?: React.ReactNode;
|
|
14
15
|
} & NativeProps<'--icon-size' | '--font-size' | '--gap'>;
|
|
15
16
|
export declare const Checkbox: FC<CheckboxProps>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { CheckboxValue } from '.';
|
|
3
3
|
export interface CheckboxGroupProps {
|
|
4
4
|
value?: CheckboxValue[];
|
|
5
5
|
onChange?: (val: CheckboxValue[]) => void;
|
|
6
6
|
defaultValue?: CheckboxValue[];
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
8
9
|
}
|
|
9
10
|
export declare const Group: FC<CheckboxGroupProps>;
|
|
@@ -8,6 +8,7 @@ export declare type CollapsePanelProps = {
|
|
|
8
8
|
destroyOnClose?: boolean;
|
|
9
9
|
onClick?: (event: React.MouseEvent<Element, MouseEvent>) => void;
|
|
10
10
|
arrow?: React.ReactNode | ((active: boolean) => React.ReactNode);
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
} & NativeProps;
|
|
12
13
|
export declare const CollapsePanel: FC<CollapsePanelProps>;
|
|
13
14
|
declare type ValueProps<T> = {
|
|
@@ -20,6 +21,8 @@ export declare type CollapseProps = (({
|
|
|
20
21
|
accordion?: false;
|
|
21
22
|
} & ValueProps<string[]>) | ({
|
|
22
23
|
accordion: true;
|
|
23
|
-
} & ValueProps<string | null>)) &
|
|
24
|
+
} & ValueProps<string | null>)) & {
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
} & NativeProps;
|
|
24
27
|
export declare const Collapse: FC<CollapseProps>;
|
|
25
28
|
export {};
|
|
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
import type { PickerProps } from '../picker';
|
|
3
3
|
import { NativeProps } from '../../utils/native-props';
|
|
4
4
|
import type { Precision, DatePickerFilter } from './date-picker-utils';
|
|
5
|
-
export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' | 'closeOnMaskClick' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation' | 'style'> & {
|
|
5
|
+
export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' | 'closeOnMaskClick' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation' | 'style' | 'mouseWheel'> & {
|
|
6
6
|
value?: Date | null;
|
|
7
7
|
defaultValue?: Date | null;
|
|
8
8
|
onSelect?: (value: Date) => void;
|
|
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
|
|
|
2
2
|
import type { PickerViewProps } from '../picker-view';
|
|
3
3
|
import { NativeProps } from '../../utils/native-props';
|
|
4
4
|
import type { Precision, DatePickerFilter } from '../date-picker/date-picker-utils';
|
|
5
|
-
export declare type DatePickerViewProps = Pick<PickerViewProps, 'style'> & {
|
|
5
|
+
export declare type DatePickerViewProps = Pick<PickerViewProps, 'style' | 'mouseWheel'> & {
|
|
6
6
|
value?: Date;
|
|
7
7
|
defaultValue?: Date;
|
|
8
8
|
onChange?: (value: Date) => void;
|
|
@@ -53,6 +53,7 @@ const DatePickerView = p => {
|
|
|
53
53
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement(_pickerView.default, {
|
|
54
54
|
columns: selected => (0, _datePickerUtils.generateDatePickerColumns)(selected, props.min, props.max, props.precision, props.renderLabel, props.filter),
|
|
55
55
|
value: pickerValue,
|
|
56
|
+
mouseWheel: props.mouseWheel,
|
|
56
57
|
onChange: onChange
|
|
57
58
|
}));
|
|
58
59
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
export declare type DividerProps = {
|
|
4
4
|
contentPosition?: 'left' | 'right' | 'center';
|
|
5
5
|
direction?: 'horizontal' | 'vertical';
|
|
6
|
+
children?: React.ReactNode;
|
|
6
7
|
} & NativeProps;
|
|
7
8
|
export declare const Divider: FC<DividerProps>;
|
|
@@ -9,10 +9,11 @@ export declare type DropdownItemProps = {
|
|
|
9
9
|
destroyOnClose?: boolean;
|
|
10
10
|
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
11
11
|
arrow?: React.ReactNode;
|
|
12
|
+
children?: React.ReactNode;
|
|
12
13
|
} & NativeProps;
|
|
13
14
|
declare const Item: FC<DropdownItemProps>;
|
|
14
15
|
export default Item;
|
|
15
16
|
declare type DropdownItemChildrenWrapProps = {
|
|
16
17
|
onClick?: () => void;
|
|
17
|
-
} & Pick<DropdownItemProps, 'active' | 'forceRender' | 'destroyOnClose'>;
|
|
18
|
+
} & Pick<DropdownItemProps, 'active' | 'forceRender' | 'destroyOnClose' | 'children'>;
|
|
18
19
|
export declare const ItemChildrenWrap: FC<DropdownItemChildrenWrapProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, ReactElement, ReactNode } from 'react';
|
|
1
|
+
import React, { FC, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
export declare type ErrorBlockProps = {
|
|
4
4
|
status?: 'default' | 'disconnected' | 'empty' | 'busy';
|
|
@@ -6,5 +6,6 @@ export declare type ErrorBlockProps = {
|
|
|
6
6
|
image?: string | ReactElement;
|
|
7
7
|
description?: ReactNode;
|
|
8
8
|
fullPage?: boolean;
|
|
9
|
+
children?: React.ReactNode;
|
|
9
10
|
} & NativeProps<'--image-height' | '--image-height-full-page' | '--image-width' | '--image-width-full-page'>;
|
|
10
11
|
export declare const ErrorBlock: FC<ErrorBlockProps>;
|
|
@@ -4,5 +4,6 @@ export declare type FloatingBubbleProps = {
|
|
|
4
4
|
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
5
5
|
axis?: 'x' | 'y' | 'xy' | 'lock';
|
|
6
6
|
magnetic?: 'x' | 'y';
|
|
7
|
+
children?: React.ReactNode;
|
|
7
8
|
} & NativeProps<'--initial-position-left' | '--initial-position-right' | '--initial-position-top' | '--initial-position-bottom' | '--z-index' | '--edge-distance' | '--size' | '--border-radius' | '--background'>;
|
|
8
9
|
export declare const FloatingBubble: FC<FloatingBubbleProps>;
|
|
@@ -14,7 +14,9 @@ declare const _default: import("react").ForwardRefExoticComponent<Pick<import("r
|
|
|
14
14
|
} & import("react").RefAttributes<import("./form").FormInstance>> & {
|
|
15
15
|
Item: import("react").FC<import("./form-item").FormItemProps>;
|
|
16
16
|
Subscribe: import("react").VFC<import("./form-subscribe").FormSubscribeProps>;
|
|
17
|
-
Header: import("react").FC<{
|
|
17
|
+
Header: import("react").FC<{
|
|
18
|
+
children?: import("react").ReactNode;
|
|
19
|
+
}>;
|
|
18
20
|
Array: import("react").FC<import("./form-array").FormArrayProps>;
|
|
19
21
|
useForm: typeof useForm;
|
|
20
22
|
};
|
|
@@ -3,10 +3,12 @@ import { NativeProps } from '../../utils/native-props';
|
|
|
3
3
|
export declare type GridProps = {
|
|
4
4
|
columns: number;
|
|
5
5
|
gap?: number | string | [number | string, number | string];
|
|
6
|
+
children?: React.ReactNode;
|
|
6
7
|
} & NativeProps<'--gap' | '--gap-vertical' | '--gap-horizontal'>;
|
|
7
8
|
export declare const Grid: FC<GridProps>;
|
|
8
9
|
export declare type GridItemProps = {
|
|
9
10
|
span?: number;
|
|
10
11
|
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
12
|
+
children?: React.ReactNode;
|
|
11
13
|
} & NativeProps;
|
|
12
14
|
export declare const GridItem: FC<GridItemProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, InputHTMLAttributes } from 'react';
|
|
1
|
+
import React, { FC, InputHTMLAttributes } from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
import type { ImageProps } from '../image';
|
|
4
4
|
export declare type TaskStatus = 'pending' | 'fail';
|
|
@@ -27,5 +27,6 @@ export declare type ImageUploaderProps = {
|
|
|
27
27
|
preview?: boolean;
|
|
28
28
|
showFailed?: boolean;
|
|
29
29
|
imageFit?: ImageProps['fit'];
|
|
30
|
+
children?: React.ReactNode;
|
|
30
31
|
} & NativeProps<'--cell-size'>;
|
|
31
32
|
export declare const ImageUploader: FC<ImageUploaderProps>;
|