antd-mobile 5.0.0-rc.21 → 5.0.0-rc.25
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/README.md +7 -6
- package/2x/cjs/components/avatar/avatar.d.ts +1 -1
- package/2x/cjs/components/badge/badge.css +18 -10
- package/2x/cjs/components/badge/badge.d.ts +1 -0
- package/2x/cjs/components/badge/badge.js +4 -5
- package/2x/cjs/components/button/button.css +1 -1
- package/2x/cjs/components/calendar/calendar.js +4 -0
- package/2x/cjs/components/capsule-tabs/capsule-tabs.css +1 -1
- package/2x/cjs/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- package/2x/cjs/components/checkbox/check-icon.js +4 -13
- package/2x/cjs/components/checkbox/checkbox.css +11 -30
- package/2x/cjs/components/checkbox/checkbox.js +4 -6
- package/2x/cjs/components/checkbox/indeterminate-icon.d.ts +3 -0
- package/2x/cjs/components/checkbox/indeterminate-icon.js +24 -0
- package/2x/cjs/components/date-picker/date-picker.d.ts +1 -1
- package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +3 -2
- package/2x/cjs/components/error-block/error-block.d.ts +1 -1
- package/2x/cjs/components/floating-bubble/floating-bubble.css +1 -0
- package/2x/cjs/components/floating-panel/floating-panel.d.ts +2 -0
- package/2x/cjs/components/floating-panel/floating-panel.js +5 -0
- package/2x/cjs/components/form/form-item.css +3 -2
- package/2x/cjs/components/form/form-item.d.ts +2 -2
- package/2x/cjs/components/form/form-item.js +9 -5
- package/2x/cjs/components/form/form.css +7 -3
- package/2x/cjs/components/form/form.d.ts +5 -4
- package/2x/cjs/components/form/index.css +10 -5
- package/2x/cjs/components/form/index.d.ts +5 -4
- package/2x/cjs/components/image-viewer/image-viewer.d.ts +8 -2
- package/2x/cjs/components/image-viewer/image-viewer.js +8 -5
- package/2x/cjs/components/image-viewer/index.d.ts +6 -2
- package/2x/cjs/components/image-viewer/slides.d.ts +7 -3
- package/2x/cjs/components/image-viewer/slides.js +18 -11
- package/2x/cjs/components/input/input.css +28 -25
- package/2x/cjs/components/input/input.d.ts +4 -4
- package/2x/cjs/components/input/input.js +10 -4
- package/2x/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -1
- package/2x/cjs/components/list/list.css +2 -6
- package/2x/cjs/components/list/list.d.ts +1 -1
- package/2x/cjs/components/modal/modal.css +25 -20
- package/2x/cjs/components/modal/modal.js +8 -12
- package/2x/cjs/components/nav-bar/nav-bar.css +3 -3
- package/2x/cjs/components/notice-bar/notice-bar.d.ts +1 -1
- package/2x/cjs/components/passcode-input/passcode-input.d.ts +2 -2
- package/2x/cjs/components/picker/picker.css +10 -2
- package/2x/cjs/components/picker/picker.d.ts +1 -1
- package/2x/cjs/components/picker-view/picker-view.css +4 -2
- package/2x/cjs/components/picker-view/picker-view.d.ts +1 -1
- package/2x/cjs/components/picker-view/wheel.js +1 -1
- package/2x/cjs/components/popover/arrow.d.ts +3 -0
- package/2x/cjs/components/popover/arrow.js +26 -0
- package/2x/cjs/components/popover/index.d.ts +7 -15
- package/2x/cjs/components/popover/index.js +4 -2
- package/2x/cjs/components/popover/popover-menu.css +63 -0
- package/2x/cjs/components/popover/popover-menu.d.ts +20 -0
- package/{cjs/components/popover/pop-menu.js → 2x/cjs/components/popover/popover-menu.js} +23 -26
- package/2x/cjs/components/popover/popover.css +90 -318
- package/2x/cjs/components/popover/popover.d.ts +9 -8
- package/2x/cjs/components/popover/popover.js +11 -17
- package/2x/cjs/components/radio/radio.css +9 -12
- package/2x/cjs/components/radio/radio.js +1 -3
- package/2x/cjs/components/result/result.css +2 -5
- package/2x/cjs/components/search-bar/search-bar.css +14 -9
- package/2x/cjs/components/selector/selector.css +4 -0
- package/2x/cjs/components/spin-loading/spin-loading.css +1 -19
- package/2x/cjs/components/spin-loading/spin-loading.d.ts +1 -1
- package/2x/cjs/components/spin-loading/spin-loading.js +33 -5
- package/2x/cjs/components/stepper/stepper.css +4 -7
- package/2x/cjs/components/stepper/stepper.js +0 -1
- package/2x/cjs/components/swipe-action/swipe-action.d.ts +2 -2
- package/2x/cjs/components/swipe-action/swipe-action.js +1 -1
- package/2x/cjs/components/swiper/swiper.js +14 -19
- package/2x/cjs/components/switch/switch.css +8 -3
- package/2x/cjs/components/tabs/tabs.css +1 -1
- package/2x/cjs/components/tag/tag.css +3 -3
- package/2x/cjs/components/text-area/text-area.css +9 -9
- package/2x/cjs/components/text-area/text-area.d.ts +2 -2
- package/2x/cjs/components/text-area/text-area.js +41 -32
- package/2x/cjs/components/virtual-input/virtual-input.d.ts +1 -1
- package/2x/cjs/utils/get-scroll-parent.js +1 -1
- package/2x/es/components/avatar/avatar.d.ts +1 -1
- package/2x/es/components/badge/badge.css +18 -10
- package/2x/es/components/badge/badge.d.ts +1 -0
- package/2x/es/components/badge/badge.js +4 -5
- package/2x/es/components/button/button.css +1 -1
- package/2x/es/components/calendar/calendar.js +2 -0
- package/2x/es/components/capsule-tabs/capsule-tabs.css +1 -1
- package/2x/es/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- package/2x/es/components/checkbox/check-icon.js +4 -13
- package/2x/es/components/checkbox/checkbox.css +11 -30
- package/2x/es/components/checkbox/checkbox.js +3 -6
- package/2x/es/components/checkbox/indeterminate-icon.d.ts +3 -0
- package/2x/es/components/checkbox/indeterminate-icon.js +10 -0
- package/2x/es/components/date-picker/date-picker.d.ts +1 -1
- package/2x/es/components/date-picker-view/date-picker-view.d.ts +3 -2
- package/2x/es/components/error-block/error-block.d.ts +1 -1
- package/2x/es/components/floating-bubble/floating-bubble.css +1 -0
- package/2x/es/components/floating-panel/floating-panel.d.ts +2 -0
- package/2x/es/components/floating-panel/floating-panel.js +5 -0
- package/2x/es/components/form/form-item.css +3 -2
- package/2x/es/components/form/form-item.d.ts +2 -2
- package/2x/es/components/form/form-item.js +9 -5
- package/2x/es/components/form/form.css +7 -3
- package/2x/es/components/form/form.d.ts +5 -4
- package/2x/es/components/form/index.css +10 -5
- package/2x/es/components/form/index.d.ts +5 -4
- package/2x/es/components/image-viewer/image-viewer.d.ts +8 -2
- package/2x/es/components/image-viewer/image-viewer.js +4 -3
- package/2x/es/components/image-viewer/index.d.ts +6 -2
- package/2x/es/components/image-viewer/slides.d.ts +7 -3
- package/2x/es/components/image-viewer/slides.js +19 -10
- package/2x/es/components/input/input.css +28 -25
- package/2x/es/components/input/input.d.ts +4 -4
- package/2x/es/components/input/input.js +7 -4
- package/2x/es/components/jumbo-tabs/jumbo-tabs.css +4 -1
- package/2x/es/components/list/list.css +2 -6
- package/2x/es/components/list/list.d.ts +1 -1
- package/2x/es/components/modal/modal.css +25 -20
- package/2x/es/components/modal/modal.js +8 -12
- package/2x/es/components/nav-bar/nav-bar.css +3 -3
- package/2x/es/components/notice-bar/notice-bar.d.ts +1 -1
- package/2x/es/components/passcode-input/passcode-input.d.ts +2 -2
- package/2x/es/components/picker/picker.css +10 -2
- package/2x/es/components/picker/picker.d.ts +1 -1
- package/2x/es/components/picker-view/picker-view.css +4 -2
- package/2x/es/components/picker-view/picker-view.d.ts +1 -1
- package/2x/es/components/picker-view/wheel.js +1 -1
- package/2x/es/components/popover/arrow.d.ts +3 -0
- package/2x/es/components/popover/arrow.js +12 -0
- package/2x/es/components/popover/index.d.ts +7 -15
- package/2x/es/components/popover/index.js +3 -2
- package/2x/es/components/popover/popover-menu.css +63 -0
- package/2x/es/components/popover/popover-menu.d.ts +20 -0
- package/2x/es/components/popover/popover-menu.js +52 -0
- package/2x/es/components/popover/popover.css +90 -318
- package/2x/es/components/popover/popover.d.ts +9 -8
- package/2x/es/components/popover/popover.js +10 -17
- package/2x/es/components/radio/radio.css +9 -12
- package/2x/es/components/radio/radio.js +1 -3
- package/2x/es/components/result/result.css +2 -5
- package/2x/es/components/search-bar/search-bar.css +14 -9
- package/2x/es/components/selector/selector.css +4 -0
- package/2x/es/components/spin-loading/spin-loading.css +1 -19
- package/2x/es/components/spin-loading/spin-loading.d.ts +1 -1
- package/2x/es/components/spin-loading/spin-loading.js +32 -5
- package/2x/es/components/stepper/stepper.css +4 -7
- package/2x/es/components/stepper/stepper.js +0 -1
- package/2x/es/components/swipe-action/swipe-action.d.ts +2 -2
- package/2x/es/components/swipe-action/swipe-action.js +1 -1
- package/2x/es/components/swiper/swiper.js +13 -19
- package/2x/es/components/switch/switch.css +8 -3
- package/2x/es/components/tabs/tabs.css +1 -1
- package/2x/es/components/tag/tag.css +3 -3
- package/2x/es/components/text-area/text-area.css +9 -9
- package/2x/es/components/text-area/text-area.d.ts +2 -2
- package/2x/es/components/text-area/text-area.js +41 -31
- package/2x/es/components/virtual-input/virtual-input.d.ts +1 -1
- package/2x/es/utils/get-scroll-parent.js +1 -1
- package/2x/package.json +2 -2
- package/README.md +7 -6
- package/cjs/components/avatar/avatar.d.ts +1 -1
- package/cjs/components/badge/badge.css +16 -10
- package/cjs/components/badge/badge.d.ts +1 -0
- package/cjs/components/badge/badge.js +4 -5
- package/cjs/components/button/button.css +1 -1
- package/cjs/components/calendar/calendar.js +4 -0
- package/cjs/components/capsule-tabs/capsule-tabs.css +1 -1
- package/cjs/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- package/cjs/components/checkbox/check-icon.js +4 -13
- package/cjs/components/checkbox/checkbox.css +11 -27
- package/cjs/components/checkbox/checkbox.js +4 -6
- package/cjs/components/checkbox/indeterminate-icon.d.ts +3 -0
- package/cjs/components/checkbox/indeterminate-icon.js +24 -0
- package/cjs/components/date-picker/date-picker.d.ts +1 -1
- package/cjs/components/date-picker-view/date-picker-view.d.ts +3 -2
- package/cjs/components/error-block/error-block.d.ts +1 -1
- package/cjs/components/floating-bubble/floating-bubble.css +1 -0
- package/cjs/components/floating-panel/floating-panel.d.ts +2 -0
- package/cjs/components/floating-panel/floating-panel.js +5 -0
- package/cjs/components/form/form-item.css +3 -2
- package/cjs/components/form/form-item.d.ts +2 -2
- package/cjs/components/form/form-item.js +9 -5
- package/cjs/components/form/form.css +6 -3
- package/cjs/components/form/form.d.ts +5 -4
- package/cjs/components/form/index.css +9 -5
- package/cjs/components/form/index.d.ts +5 -4
- package/cjs/components/image-viewer/image-viewer.d.ts +8 -2
- package/cjs/components/image-viewer/image-viewer.js +8 -5
- package/cjs/components/image-viewer/index.d.ts +6 -2
- package/cjs/components/image-viewer/slides.d.ts +7 -3
- package/cjs/components/image-viewer/slides.js +18 -11
- package/cjs/components/input/input.css +26 -24
- package/cjs/components/input/input.d.ts +4 -4
- package/cjs/components/input/input.js +10 -4
- package/cjs/components/jumbo-tabs/jumbo-tabs.css +4 -1
- package/cjs/components/list/list.css +2 -5
- package/cjs/components/list/list.d.ts +1 -1
- package/cjs/components/modal/modal.css +23 -19
- package/cjs/components/modal/modal.js +8 -12
- package/cjs/components/nav-bar/nav-bar.css +3 -3
- package/cjs/components/notice-bar/notice-bar.d.ts +1 -1
- package/cjs/components/passcode-input/passcode-input.d.ts +2 -2
- package/cjs/components/picker/picker.css +9 -2
- package/cjs/components/picker/picker.d.ts +1 -1
- package/cjs/components/picker-view/picker-view.css +4 -2
- package/cjs/components/picker-view/picker-view.d.ts +1 -1
- package/cjs/components/picker-view/wheel.js +1 -1
- package/cjs/components/popover/arrow.d.ts +3 -0
- package/cjs/components/popover/arrow.js +26 -0
- package/cjs/components/popover/index.d.ts +7 -15
- package/cjs/components/popover/index.js +4 -2
- package/cjs/components/popover/popover-menu.css +52 -0
- package/cjs/components/popover/popover-menu.d.ts +20 -0
- package/{2x/cjs/components/popover/pop-menu.js → cjs/components/popover/popover-menu.js} +23 -26
- package/cjs/components/popover/popover.css +83 -276
- package/cjs/components/popover/popover.d.ts +9 -8
- package/cjs/components/popover/popover.js +11 -17
- package/cjs/components/radio/radio.css +9 -12
- package/cjs/components/radio/radio.js +1 -3
- package/cjs/components/result/result.css +2 -5
- package/cjs/components/search-bar/search-bar.css +13 -9
- package/cjs/components/selector/selector.css +3 -0
- package/cjs/components/spin-loading/spin-loading.css +1 -17
- package/cjs/components/spin-loading/spin-loading.d.ts +1 -1
- package/cjs/components/spin-loading/spin-loading.js +33 -5
- package/cjs/components/stepper/stepper.css +4 -6
- package/cjs/components/stepper/stepper.js +0 -1
- package/cjs/components/swipe-action/swipe-action.d.ts +2 -2
- package/cjs/components/swipe-action/swipe-action.js +1 -1
- package/cjs/components/swiper/swiper.js +14 -19
- package/cjs/components/switch/switch.css +8 -3
- package/cjs/components/tabs/tabs.css +1 -1
- package/cjs/components/tag/tag.css +3 -3
- package/cjs/components/text-area/text-area.css +9 -9
- package/cjs/components/text-area/text-area.d.ts +2 -2
- package/cjs/components/text-area/text-area.js +41 -32
- package/cjs/components/virtual-input/virtual-input.d.ts +1 -1
- package/cjs/utils/get-scroll-parent.js +1 -1
- package/es/components/avatar/avatar.d.ts +1 -1
- package/es/components/badge/badge.css +16 -10
- package/es/components/badge/badge.d.ts +1 -0
- package/es/components/badge/badge.js +4 -5
- package/es/components/button/button.css +1 -1
- package/es/components/calendar/calendar.js +2 -0
- package/es/components/capsule-tabs/capsule-tabs.css +1 -1
- package/es/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- package/es/components/checkbox/check-icon.js +4 -13
- package/es/components/checkbox/checkbox.css +11 -27
- package/es/components/checkbox/checkbox.js +3 -6
- package/es/components/checkbox/indeterminate-icon.d.ts +3 -0
- package/es/components/checkbox/indeterminate-icon.js +10 -0
- package/es/components/date-picker/date-picker.d.ts +1 -1
- package/es/components/date-picker-view/date-picker-view.d.ts +3 -2
- package/es/components/error-block/error-block.d.ts +1 -1
- package/es/components/floating-bubble/floating-bubble.css +1 -0
- package/es/components/floating-panel/floating-panel.d.ts +2 -0
- package/es/components/floating-panel/floating-panel.js +5 -0
- package/es/components/form/form-item.css +3 -2
- package/es/components/form/form-item.d.ts +2 -2
- package/es/components/form/form-item.js +9 -5
- package/es/components/form/form.css +6 -3
- package/es/components/form/form.d.ts +5 -4
- package/es/components/form/index.css +9 -5
- package/es/components/form/index.d.ts +5 -4
- package/es/components/image-viewer/image-viewer.d.ts +8 -2
- package/es/components/image-viewer/image-viewer.js +4 -3
- package/es/components/image-viewer/index.d.ts +6 -2
- package/es/components/image-viewer/slides.d.ts +7 -3
- package/es/components/image-viewer/slides.js +19 -10
- package/es/components/input/input.css +26 -24
- package/es/components/input/input.d.ts +4 -4
- package/es/components/input/input.js +7 -4
- package/es/components/jumbo-tabs/jumbo-tabs.css +4 -1
- package/es/components/list/list.css +2 -5
- package/es/components/list/list.d.ts +1 -1
- package/es/components/modal/modal.css +23 -19
- package/es/components/modal/modal.js +8 -12
- package/es/components/nav-bar/nav-bar.css +3 -3
- package/es/components/notice-bar/notice-bar.d.ts +1 -1
- package/es/components/passcode-input/passcode-input.d.ts +2 -2
- package/es/components/picker/picker.css +9 -2
- package/es/components/picker/picker.d.ts +1 -1
- package/es/components/picker-view/picker-view.css +4 -2
- package/es/components/picker-view/picker-view.d.ts +1 -1
- package/es/components/picker-view/wheel.js +1 -1
- package/es/components/popover/arrow.d.ts +3 -0
- package/es/components/popover/arrow.js +12 -0
- package/es/components/popover/index.d.ts +7 -15
- package/es/components/popover/index.js +3 -2
- package/es/components/popover/popover-menu.css +52 -0
- package/es/components/popover/popover-menu.d.ts +20 -0
- package/es/components/popover/popover-menu.js +52 -0
- package/es/components/popover/popover.css +83 -276
- package/es/components/popover/popover.d.ts +9 -8
- package/es/components/popover/popover.js +10 -17
- package/es/components/radio/radio.css +9 -12
- package/es/components/radio/radio.js +1 -3
- package/es/components/result/result.css +2 -5
- package/es/components/search-bar/search-bar.css +13 -9
- package/es/components/selector/selector.css +3 -0
- package/es/components/spin-loading/spin-loading.css +1 -17
- package/es/components/spin-loading/spin-loading.d.ts +1 -1
- package/es/components/spin-loading/spin-loading.js +32 -5
- package/es/components/stepper/stepper.css +4 -6
- package/es/components/stepper/stepper.js +0 -1
- package/es/components/swipe-action/swipe-action.d.ts +2 -2
- package/es/components/swipe-action/swipe-action.js +1 -1
- package/es/components/swiper/swiper.js +13 -19
- package/es/components/switch/switch.css +8 -3
- package/es/components/tabs/tabs.css +1 -1
- package/es/components/tag/tag.css +3 -3
- package/es/components/text-area/text-area.css +9 -9
- package/es/components/text-area/text-area.d.ts +2 -2
- package/es/components/text-area/text-area.js +41 -31
- package/es/components/virtual-input/virtual-input.d.ts +1 -1
- package/es/utils/get-scroll-parent.js +1 -1
- package/package.json +2 -2
- package/umd/antd-mobile.js +1 -1
- package/2x/cjs/components/popover/animation.css +0 -111
- package/2x/cjs/components/popover/pop-menu.d.ts +0 -28
- package/2x/es/components/popover/animation.css +0 -111
- package/2x/es/components/popover/pop-menu.d.ts +0 -28
- package/2x/es/components/popover/pop-menu.js +0 -54
- package/cjs/components/popover/animation.css +0 -96
- package/cjs/components/popover/pop-menu.d.ts +0 -28
- package/es/components/popover/animation.css +0 -96
- package/es/components/popover/pop-menu.d.ts +0 -28
- package/es/components/popover/pop-menu.js +0 -54
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.MultiImageViewer = exports.ImageViewer = void 0;
|
|
7
7
|
|
|
8
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
|
|
10
10
|
var _withDefaultProps = require("../../utils/with-default-props");
|
|
11
11
|
|
|
@@ -19,6 +19,10 @@ var _slides = require("./slides");
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
22
26
|
const classPrefix = `adm-image-viewer`;
|
|
23
27
|
const defaultProps = {
|
|
24
28
|
maxZoom: 3,
|
|
@@ -53,8 +57,7 @@ exports.ImageViewer = ImageViewer;
|
|
|
53
57
|
const multiDefaultProps = Object.assign(Object.assign({}, defaultProps), {
|
|
54
58
|
defaultIndex: 0
|
|
55
59
|
});
|
|
56
|
-
|
|
57
|
-
const MultiImageViewer = p => {
|
|
60
|
+
const MultiImageViewer = (0, _react.forwardRef)((p, ref) => {
|
|
58
61
|
const props = (0, _withDefaultProps.mergeProps)(multiDefaultProps, p);
|
|
59
62
|
|
|
60
63
|
const node = _react.default.createElement(_mask.default, {
|
|
@@ -65,6 +68,7 @@ const MultiImageViewer = p => {
|
|
|
65
68
|
}, _react.default.createElement("div", {
|
|
66
69
|
className: `${classPrefix}-content`
|
|
67
70
|
}, props.images && _react.default.createElement(_slides.Slides, {
|
|
71
|
+
ref: ref,
|
|
68
72
|
defaultIndex: props.defaultIndex,
|
|
69
73
|
onIndexChange: props.onIndexChange,
|
|
70
74
|
images: props.images,
|
|
@@ -77,6 +81,5 @@ const MultiImageViewer = p => {
|
|
|
77
81
|
})));
|
|
78
82
|
|
|
79
83
|
return (0, _renderToContainer.renderToContainer)(props.getContainer, node);
|
|
80
|
-
};
|
|
81
|
-
|
|
84
|
+
});
|
|
82
85
|
exports.MultiImageViewer = MultiImageViewer;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './image-viewer.less';
|
|
3
3
|
import { showMultiImageViewer, showImageViewer, clearImageViewer } from './methods';
|
|
4
|
-
export type { ImageViewerProps, MultiImageViewerProps } from './image-viewer';
|
|
4
|
+
export type { ImageViewerProps, MultiImageViewerProps, MultiImageViewerRef, } from './image-viewer';
|
|
5
5
|
export type { ImageViewerHandler } from './methods';
|
|
6
6
|
declare const _default: import("react").FC<import("./image-viewer").ImageViewerProps> & {
|
|
7
|
-
Multi: import("react").
|
|
7
|
+
Multi: import("react").ForwardRefExoticComponent<Pick<import("./image-viewer").ImageViewerProps, "visible" | "onClose" | "afterClose" | "getContainer" | "maxZoom"> & {
|
|
8
|
+
images?: string[] | undefined;
|
|
9
|
+
defaultIndex?: number | undefined;
|
|
10
|
+
onIndexChange?: ((index: number) => void) | undefined;
|
|
11
|
+
} & import("react").RefAttributes<import("./slides").SlidesRef>> & {
|
|
8
12
|
show: typeof showMultiImageViewer;
|
|
9
13
|
};
|
|
10
14
|
show: typeof showImageViewer;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type SlidesType = {
|
|
3
3
|
images: string[];
|
|
4
4
|
onTap: () => void;
|
|
5
5
|
maxZoom: number;
|
|
6
6
|
defaultIndex: number;
|
|
7
7
|
onIndexChange?: (index: number) => void;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
|
+
export declare type SlidesRef = {
|
|
10
|
+
swipeTo: (index: number, immediate: boolean) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const Slides: React.ForwardRefExoticComponent<SlidesType & React.RefAttributes<SlidesRef>>;
|
|
@@ -22,8 +22,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
22
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
23
|
|
|
24
24
|
const classPrefix = `adm-image-viewer`;
|
|
25
|
-
|
|
26
|
-
const Slides = props => {
|
|
25
|
+
const Slides = (0, _react.forwardRef)((props, ref) => {
|
|
27
26
|
const slideWidth = window.innerWidth + (0, _convertPx.convertPx)(16);
|
|
28
27
|
const [{
|
|
29
28
|
x
|
|
@@ -35,10 +34,23 @@ const Slides = props => {
|
|
|
35
34
|
}
|
|
36
35
|
}));
|
|
37
36
|
const count = props.images.length;
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
|
|
38
|
+
function swipeTo(index, immediate = false) {
|
|
40
39
|
var _a;
|
|
41
40
|
|
|
41
|
+
const i = (0, _bound.bound)(index, 0, count - 1);
|
|
42
|
+
(_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, i);
|
|
43
|
+
api.start({
|
|
44
|
+
x: i * slideWidth,
|
|
45
|
+
immediate
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
|
50
|
+
swipeTo
|
|
51
|
+
}));
|
|
52
|
+
const dragLockRef = (0, _react.useRef)(false);
|
|
53
|
+
const bind = (0, _react2.useDrag)(state => {
|
|
42
54
|
if (dragLockRef.current) return;
|
|
43
55
|
const [offsetX] = state.offset;
|
|
44
56
|
|
|
@@ -46,11 +58,7 @@ const Slides = props => {
|
|
|
46
58
|
const minIndex = Math.floor(offsetX / slideWidth);
|
|
47
59
|
const maxIndex = minIndex + 1;
|
|
48
60
|
const velocityOffset = Math.min(state.velocity[0] * 2000, slideWidth) * state.direction[0];
|
|
49
|
-
|
|
50
|
-
(_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, index);
|
|
51
|
-
api.start({
|
|
52
|
-
x: index * slideWidth
|
|
53
|
-
});
|
|
61
|
+
swipeTo((0, _bound.bound)(Math.round((offsetX + velocityOffset) / slideWidth), minIndex, maxIndex));
|
|
54
62
|
} else {
|
|
55
63
|
api.start({
|
|
56
64
|
x: offsetX,
|
|
@@ -99,6 +107,5 @@ const Slides = props => {
|
|
|
99
107
|
},
|
|
100
108
|
dragLockRef: dragLockRef
|
|
101
109
|
}))));
|
|
102
|
-
};
|
|
103
|
-
|
|
110
|
+
});
|
|
104
111
|
exports.Slides = Slides;
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
.adm-input
|
|
1
|
+
.adm-input {
|
|
2
2
|
--font-size: 34px;
|
|
3
3
|
--color: var(--adm-color-text);
|
|
4
4
|
--placeholder-color: var(--adm-color-light);
|
|
5
|
-
--disabled-color: var(--adm-color-weak);
|
|
6
5
|
--text-align: left;
|
|
6
|
+
--background-color: transparent;
|
|
7
7
|
display: flex;
|
|
8
8
|
justify-content: flex-start;
|
|
9
9
|
align-items: center;
|
|
10
10
|
width: 100%;
|
|
11
11
|
max-width: 100%;
|
|
12
12
|
max-height: 100%;
|
|
13
|
+
background-color: var(--background-color);
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
.adm-input {
|
|
16
|
+
.adm-input-disabled {
|
|
17
|
+
opacity: 0.4;
|
|
18
|
+
cursor: not-allowed;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.adm-input-element {
|
|
16
22
|
flex: auto;
|
|
17
23
|
display: inline-block;
|
|
18
24
|
box-sizing: border-box;
|
|
@@ -32,65 +38,62 @@
|
|
|
32
38
|
text-align: var(--text-align);
|
|
33
39
|
}
|
|
34
40
|
|
|
35
|
-
.adm-input::placeholder {
|
|
41
|
+
.adm-input-element::placeholder {
|
|
36
42
|
color: var(--placeholder-color);
|
|
37
43
|
font-family: inherit;
|
|
38
44
|
}
|
|
39
45
|
|
|
40
|
-
.adm-input:-webkit-autofill {
|
|
46
|
+
.adm-input-element:-webkit-autofill {
|
|
41
47
|
background-color: transparent;
|
|
42
48
|
}
|
|
43
49
|
|
|
44
|
-
.adm-input:
|
|
45
|
-
color: var(--disabled-color);
|
|
46
|
-
cursor: not-allowed;
|
|
47
|
-
opacity: 1;
|
|
48
|
-
-webkit-text-fill-color: var(--disabled-color);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.adm-input:read-only {
|
|
50
|
+
.adm-input-element:read-only {
|
|
52
51
|
cursor: default;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
.adm-input:invalid {
|
|
54
|
+
.adm-input-element:invalid {
|
|
56
55
|
box-shadow: none;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
|
-
.adm-input::-ms-clear {
|
|
58
|
+
.adm-input-element::-ms-clear {
|
|
60
59
|
display: none;
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
.adm-input::-webkit-search-cancel-button {
|
|
62
|
+
.adm-input-element::-webkit-search-cancel-button {
|
|
64
63
|
display: none;
|
|
65
64
|
}
|
|
66
65
|
|
|
67
|
-
.adm-input::-webkit-search-decoration {
|
|
66
|
+
.adm-input-element::-webkit-search-decoration {
|
|
68
67
|
display: none;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
|
-
.adm-input[type='date'],
|
|
72
|
-
.adm-input[type='time'],
|
|
73
|
-
.adm-input[type='datetime-local'] {
|
|
70
|
+
.adm-input-element[type='date'],
|
|
71
|
+
.adm-input-element[type='time'],
|
|
72
|
+
.adm-input-element[type='datetime-local'] {
|
|
74
73
|
min-height: 1.5em;
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
.adm-input[type='search'] {
|
|
76
|
+
.adm-input-element[type='search'] {
|
|
78
77
|
-webkit-appearance: none;
|
|
79
78
|
}
|
|
80
79
|
|
|
81
|
-
.adm-input[readonly] {
|
|
80
|
+
.adm-input-element[readonly] {
|
|
82
81
|
pointer-events: none;
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
.adm-input-clear {
|
|
86
85
|
flex: none;
|
|
87
86
|
margin-left: 16px;
|
|
88
|
-
color: var(--
|
|
89
|
-
padding:
|
|
87
|
+
color: var(--adm-color-light);
|
|
88
|
+
padding: 8px;
|
|
90
89
|
cursor: pointer;
|
|
91
90
|
}
|
|
92
91
|
|
|
92
|
+
.adm-input-clear:active {
|
|
93
|
+
color: var(--adm-color-weak);
|
|
94
|
+
}
|
|
95
|
+
|
|
93
96
|
.adm-input-clear .antd-mobile-icon {
|
|
94
97
|
display: block;
|
|
95
|
-
font-size:
|
|
98
|
+
font-size: 30px;
|
|
96
99
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
declare type NativeInputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
4
|
-
export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'max' | 'min' | 'autoComplete' | 'pattern' | 'inputMode' | 'type' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp'> & {
|
|
4
|
+
export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | 'max' | 'min' | 'autoComplete' | 'pattern' | 'inputMode' | 'type' | 'onFocus' | 'onBlur' | 'autoCapitalize' | 'autoCorrect' | 'onKeyDown' | 'onKeyUp' | 'onCompositionStart' | 'onCompositionEnd'> & {
|
|
5
5
|
value?: string;
|
|
6
6
|
defaultValue?: string;
|
|
7
7
|
onChange?: (val: string) => void;
|
|
@@ -13,13 +13,13 @@ export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength
|
|
|
13
13
|
id?: string;
|
|
14
14
|
onEnterPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
15
15
|
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
16
|
-
} & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--
|
|
16
|
+
} & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--text-align'>;
|
|
17
17
|
export declare type InputRef = {
|
|
18
18
|
clear: () => void;
|
|
19
19
|
focus: () => void;
|
|
20
20
|
blur: () => void;
|
|
21
21
|
};
|
|
22
|
-
export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "pattern" | "max" | "min" | "type" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "maxLength" | "minLength"> & {
|
|
22
|
+
export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "pattern" | "max" | "min" | "type" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "maxLength" | "minLength"> & {
|
|
23
23
|
value?: string | undefined;
|
|
24
24
|
defaultValue?: string | undefined;
|
|
25
25
|
onChange?: ((val: string) => void) | undefined;
|
|
@@ -31,5 +31,5 @@ export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedH
|
|
|
31
31
|
id?: string | undefined;
|
|
32
32
|
onEnterPress?: ((e: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
|
|
33
33
|
enterKeyHint?: "enter" | "search" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
34
|
-
} & NativeProps<"--color" | "--font-size" | "--placeholder-color" | "--
|
|
34
|
+
} & NativeProps<"--color" | "--font-size" | "--placeholder-color" | "--text-align"> & React.RefAttributes<InputRef>>;
|
|
35
35
|
export {};
|
|
@@ -15,6 +15,10 @@ var _nativeProps = require("../../utils/native-props");
|
|
|
15
15
|
|
|
16
16
|
var _withDefaultProps = require("../../utils/with-default-props");
|
|
17
17
|
|
|
18
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
18
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
23
|
|
|
20
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -66,10 +70,10 @@ const Input = (0, _react.forwardRef)((p, ref) => {
|
|
|
66
70
|
};
|
|
67
71
|
}, [props.enterKeyHint]);
|
|
68
72
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
69
|
-
className: `${classPrefix}-
|
|
73
|
+
className: (0, _classnames.default)(`${classPrefix}`, props.disabled && `${classPrefix}-disabled`)
|
|
70
74
|
}, _react.default.createElement("input", {
|
|
71
75
|
ref: nativeInputRef,
|
|
72
|
-
className: classPrefix
|
|
76
|
+
className: `${classPrefix}-element`,
|
|
73
77
|
value: value,
|
|
74
78
|
onChange: e => {
|
|
75
79
|
setValue(e.target.value);
|
|
@@ -101,8 +105,10 @@ const Input = (0, _react.forwardRef)((p, ref) => {
|
|
|
101
105
|
autoCapitalize: props.autoCapitalize,
|
|
102
106
|
autoCorrect: props.autoCorrect,
|
|
103
107
|
onKeyDown: handleKeydown,
|
|
104
|
-
onKeyUp: props.onKeyUp
|
|
105
|
-
|
|
108
|
+
onKeyUp: props.onKeyUp,
|
|
109
|
+
onCompositionStart: props.onCompositionStart,
|
|
110
|
+
onCompositionEnd: props.onCompositionEnd
|
|
111
|
+
}), props.clearable && !!value && _react.default.createElement("div", {
|
|
106
112
|
className: `${classPrefix}-clear`,
|
|
107
113
|
onMouseDown: e => {
|
|
108
114
|
e.preventDefault();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.adm-jumbo-tabs {
|
|
2
|
+
--gap: 16px;
|
|
2
3
|
position: relative;
|
|
3
4
|
}
|
|
4
5
|
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
align-items: center;
|
|
15
16
|
position: relative;
|
|
16
17
|
overflow-x: scroll;
|
|
18
|
+
padding: 0 var(--gap);
|
|
17
19
|
scrollbar-width: none;
|
|
18
20
|
}
|
|
19
21
|
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
|
|
24
26
|
.adm-jumbo-tabs-tab-wrapper {
|
|
25
27
|
flex: auto;
|
|
26
|
-
padding: 0
|
|
28
|
+
padding: 0 calc(var(--gap) / 2);
|
|
27
29
|
text-align: center;
|
|
28
30
|
}
|
|
29
31
|
|
|
@@ -42,6 +44,7 @@
|
|
|
42
44
|
|
|
43
45
|
.adm-jumbo-tabs-tab-title {
|
|
44
46
|
line-height: 48px;
|
|
47
|
+
padding: 0 8px;
|
|
45
48
|
}
|
|
46
49
|
|
|
47
50
|
.adm-jumbo-tabs-tab-description {
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
pointer-events: none;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
a.adm-list-item:active {
|
|
102
|
+
a.adm-list-item:active:not(.adm-list-item-disabled) {
|
|
103
103
|
background-color: var(--active-background-color);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
a.adm-list-item:active::after {
|
|
106
|
+
a.adm-list-item:active:not(.adm-list-item-disabled)::after {
|
|
107
107
|
content: ' ';
|
|
108
108
|
display: block;
|
|
109
109
|
position: absolute;
|
|
@@ -111,8 +111,4 @@ a.adm-list-item:active::after {
|
|
|
111
111
|
bottom: -2px;
|
|
112
112
|
left: 0;
|
|
113
113
|
border-bottom: var(--border-inner);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
a.adm-list-item.adm-list-item-disabled:active {
|
|
117
|
-
background-color: unset;
|
|
118
114
|
}
|
|
@@ -3,5 +3,5 @@ import { NativeProps } from '../../utils/native-props';
|
|
|
3
3
|
export declare type ListProps = {
|
|
4
4
|
header?: ReactNode;
|
|
5
5
|
mode?: 'default' | 'card';
|
|
6
|
-
} & NativeProps<'--header-font-size' | '--prefix-width' | '--prefix-padding-right' | '--align-items' | '--active-background-color' | '--border-inner' | '--border-top' | '--border-bottom' | '--padding-left' | '--font-size'>;
|
|
6
|
+
} & NativeProps<'--header-font-size' | '--prefix-width' | '--prefix-padding-right' | '--align-items' | '--active-background-color' | '--border-inner' | '--border-top' | '--border-bottom' | '--padding-left' | '--padding-right' | '--font-size'>;
|
|
7
7
|
export declare const List: FC<ListProps>;
|
|
@@ -22,10 +22,12 @@
|
|
|
22
22
|
.adm-modal-main {
|
|
23
23
|
width: 100%;
|
|
24
24
|
max-height: 70vh;
|
|
25
|
+
box-sizing: border-box;
|
|
25
26
|
font-size: 28px;
|
|
26
27
|
background-color: white;
|
|
27
28
|
border-radius: 16px;
|
|
28
|
-
overflow: hidden;
|
|
29
|
+
overflow-x: hidden;
|
|
30
|
+
overflow-y: auto;
|
|
29
31
|
display: flex;
|
|
30
32
|
flex-direction: column;
|
|
31
33
|
}
|
|
@@ -40,14 +42,12 @@
|
|
|
40
42
|
|
|
41
43
|
.adm-modal-main .adm-modal-body {
|
|
42
44
|
padding: 40px 24px 24px;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
43
47
|
}
|
|
44
48
|
|
|
45
|
-
.adm-modal-main .adm-modal-body
|
|
46
|
-
|
|
47
|
-
right: 24px;
|
|
48
|
-
top: 24px;
|
|
49
|
-
color: var(--adm-color-weak);
|
|
50
|
-
padding: 4px;
|
|
49
|
+
.adm-modal-main .adm-modal-body > * + * {
|
|
50
|
+
margin-top: 16px;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.adm-modal-main .adm-modal-body-header-wrapper {
|
|
@@ -63,39 +63,44 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.adm-modal-main .adm-modal-body-content {
|
|
66
|
-
max-height: 70vh;
|
|
67
|
-
overflow-x: hidden;
|
|
68
|
-
overflow-y: auto;
|
|
69
66
|
font-size: 30px;
|
|
70
67
|
line-height: 1.4;
|
|
71
68
|
color: #333;
|
|
72
69
|
}
|
|
73
70
|
|
|
74
|
-
.adm-modal-main .adm-modal-
|
|
71
|
+
.adm-modal-main .adm-modal-close {
|
|
72
|
+
position: absolute;
|
|
73
|
+
right: 16px;
|
|
74
|
+
top: 16px;
|
|
75
|
+
color: var(--adm-color-weak);
|
|
76
|
+
padding: 8px;
|
|
77
|
+
font-size: 36px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.adm-modal-footer {
|
|
75
81
|
user-select: none;
|
|
76
82
|
padding: 16px 24px 24px;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
|
-
.adm-modal-
|
|
80
|
-
|
|
81
|
-
line-height: 50px;
|
|
82
|
-
border-right: solid 1px var(--adm-border-color);
|
|
85
|
+
.adm-modal-footer.adm-space {
|
|
86
|
+
--gap-vertical: 40px;
|
|
83
87
|
}
|
|
84
88
|
|
|
85
|
-
.adm-modal-
|
|
86
|
-
|
|
89
|
+
.adm-modal-footer .adm-modal-button {
|
|
90
|
+
font-size: 36px;
|
|
91
|
+
line-height: 50px;
|
|
87
92
|
}
|
|
88
93
|
|
|
89
|
-
.adm-modal-
|
|
94
|
+
.adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary) {
|
|
90
95
|
padding-top: 0;
|
|
91
96
|
padding-bottom: 0;
|
|
92
97
|
}
|
|
93
98
|
|
|
94
|
-
.adm-modal-
|
|
99
|
+
.adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary)::before {
|
|
95
100
|
display: none;
|
|
96
101
|
}
|
|
97
102
|
|
|
98
|
-
.adm-modal-
|
|
103
|
+
.adm-modal-footer .adm-modal-button:not(.adm-modal-button-primary):active {
|
|
99
104
|
opacity: 0.7;
|
|
100
105
|
}
|
|
101
106
|
|
|
@@ -100,7 +100,10 @@ const Modal = p => {
|
|
|
100
100
|
style: Object.assign({}, style),
|
|
101
101
|
onClick: e => e.stopPropagation(),
|
|
102
102
|
className: `${classPrefix}-main`
|
|
103
|
-
},
|
|
103
|
+
}, props.showCloseButton && _react.default.createElement("a", {
|
|
104
|
+
className: (0, _classnames.default)(`${classPrefix}-close`, 'adm-plain-anchor'),
|
|
105
|
+
onClick: props.onClose
|
|
106
|
+
}, _react.default.createElement(_antdMobileIcons.CloseOutline, null)), !!props.image && _react.default.createElement("div", {
|
|
104
107
|
className: `${classPrefix}-image-container`
|
|
105
108
|
}, _react.default.createElement(_image.default, {
|
|
106
109
|
src: props.image,
|
|
@@ -109,12 +112,6 @@ const Modal = p => {
|
|
|
109
112
|
})), _react.default.createElement("div", {
|
|
110
113
|
style: props.bodyStyle,
|
|
111
114
|
className: (0, _classnames.default)(`${classPrefix}-body`, props.bodyClassName)
|
|
112
|
-
}, props.showCloseButton && _react.default.createElement("a", {
|
|
113
|
-
className: (0, _classnames.default)(`${classPrefix}-close`, 'adm-plain-anchor'),
|
|
114
|
-
onClick: props.onClose
|
|
115
|
-
}, _react.default.createElement(_antdMobileIcons.CloseOutline, null)), _react.default.createElement(_space.default, {
|
|
116
|
-
direction: 'vertical',
|
|
117
|
-
block: true
|
|
118
115
|
}, !!props.header && _react.default.createElement("div", {
|
|
119
116
|
className: `${classPrefix}-body-header-wrapper`
|
|
120
117
|
}, _react.default.createElement("div", {
|
|
@@ -123,11 +120,10 @@ const Modal = p => {
|
|
|
123
120
|
className: `${classPrefix}-body-title`
|
|
124
121
|
}, props.title), !!props.content && _react.default.createElement("div", {
|
|
125
122
|
className: `${classPrefix}-body-content`
|
|
126
|
-
}, typeof props.content === 'string' ? _react.default.createElement(_autoCenter.default, null, props.content) : props.content))
|
|
127
|
-
className: `${classPrefix}-footer`
|
|
128
|
-
}, _react.default.createElement(_space.default, {
|
|
123
|
+
}, typeof props.content === 'string' ? _react.default.createElement(_autoCenter.default, null, props.content) : props.content)), _react.default.createElement(_space.default, {
|
|
129
124
|
direction: 'vertical',
|
|
130
|
-
block: true
|
|
125
|
+
block: true,
|
|
126
|
+
className: `${classPrefix}-footer`
|
|
131
127
|
}, props.actions.map((action, index) => {
|
|
132
128
|
return _react.default.createElement(_modalActionButton.ModalActionButton, {
|
|
133
129
|
key: action.key,
|
|
@@ -142,7 +138,7 @@ const Modal = p => {
|
|
|
142
138
|
}
|
|
143
139
|
})
|
|
144
140
|
});
|
|
145
|
-
})))))))
|
|
141
|
+
})))))));
|
|
146
142
|
return (0, _renderToContainer.renderToContainer)(props.getContainer, node);
|
|
147
143
|
};
|
|
148
144
|
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
.adm-nav-bar-back {
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
|
-
margin-right:
|
|
27
|
+
margin-right: 32px;
|
|
28
28
|
padding: 12px 0;
|
|
29
29
|
cursor: pointer;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.adm-nav-bar-back-arrow {
|
|
33
|
-
font-size:
|
|
34
|
-
margin-right:
|
|
33
|
+
font-size: 48px;
|
|
34
|
+
margin-right: 8px;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.adm-nav-bar-left {
|
|
@@ -17,5 +17,5 @@ export declare type NoticeBarProps = {
|
|
|
17
17
|
extra?: React.ReactNode;
|
|
18
18
|
/** 左侧广播图标 */
|
|
19
19
|
icon?: React.ReactNode;
|
|
20
|
-
} & NativeProps<'--background-color' | '--border-color' | '--text-color'>;
|
|
20
|
+
} & NativeProps<'--background-color' | '--border-color' | '--text-color' | '--font-size' | '--icon-font-size' | '--height'>;
|
|
21
21
|
export declare const NoticeBar: React.NamedExoticComponent<NoticeBarProps>;
|
|
@@ -14,7 +14,7 @@ export declare type PasscodeInputProps = {
|
|
|
14
14
|
onFocus?: () => void;
|
|
15
15
|
keyboard?: ReactElement<NumberKeyboardProps>;
|
|
16
16
|
onFill?: (val: string) => void;
|
|
17
|
-
} & NativeProps<'--cell-gap' | '--cell-size'>;
|
|
17
|
+
} & NativeProps<'--cell-gap' | '--cell-size' | '--dot-size' | '--border-color' | '--border-radius'>;
|
|
18
18
|
export declare type PasscodeInputRef = {
|
|
19
19
|
focus: () => void;
|
|
20
20
|
blur: () => void;
|
|
@@ -32,4 +32,4 @@ export declare const PasscodeInput: React.ForwardRefExoticComponent<{
|
|
|
32
32
|
onFocus?: (() => void) | undefined;
|
|
33
33
|
keyboard?: React.ReactElement<NumberKeyboardProps, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)> | undefined;
|
|
34
34
|
onFill?: ((val: string) => void) | undefined;
|
|
35
|
-
} & NativeProps<"--cell-size" | "--cell-gap"> & React.RefAttributes<PasscodeInputRef>>;
|
|
35
|
+
} & NativeProps<"--border-radius" | "--border-color" | "--cell-size" | "--dot-size" | "--cell-gap"> & React.RefAttributes<PasscodeInputRef>>;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
.adm-picker {
|
|
2
|
+
--header-button-font-size: 30px;
|
|
3
|
+
--title-font-size: 30px;
|
|
4
|
+
--item-font-size: 32px;
|
|
2
5
|
width: 100%;
|
|
3
6
|
height: 600px;
|
|
4
7
|
overflow: hidden;
|
|
5
8
|
position: relative;
|
|
6
9
|
display: flex;
|
|
7
10
|
flex-direction: column;
|
|
11
|
+
---item-font-size: var(--item-font-size);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.adm-picker .adm-picker-view.adm-picker-view {
|
|
15
|
+
--item-font-size: var(---item-font-size);
|
|
8
16
|
}
|
|
9
17
|
|
|
10
18
|
.adm-picker-header {
|
|
@@ -17,14 +25,14 @@
|
|
|
17
25
|
}
|
|
18
26
|
|
|
19
27
|
.adm-picker-header-button {
|
|
20
|
-
font-size:
|
|
28
|
+
font-size: var(--header-button-font-size);
|
|
21
29
|
display: inline-block;
|
|
22
30
|
padding: 16px 16px;
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
.adm-picker-header-title {
|
|
26
34
|
padding: 8px 8px;
|
|
27
|
-
font-size:
|
|
35
|
+
font-size: var(--title-font-size);
|
|
28
36
|
color: var(--adm-color-text);
|
|
29
37
|
text-align: center;
|
|
30
38
|
flex: 1;
|
|
@@ -15,5 +15,5 @@ export declare type PickerProps = {
|
|
|
15
15
|
confirmText?: ReactNode;
|
|
16
16
|
cancelText?: ReactNode;
|
|
17
17
|
children?: (items: (PickerColumnItem | null)[]) => ReactNode;
|
|
18
|
-
} & Pick<PopupProps, 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'stopPropagation'> & NativeProps
|
|
18
|
+
} & Pick<PopupProps, 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'stopPropagation'> & NativeProps<'--header-button-font-size' | '--title-font-size' | '--item-font-size'>;
|
|
19
19
|
export declare const Picker: React.NamedExoticComponent<PickerProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.adm-picker-view {
|
|
2
2
|
--height: 480px;
|
|
3
|
+
--item-font-size: 32px;
|
|
3
4
|
height: var(--height);
|
|
4
5
|
width: 100%;
|
|
5
6
|
display: flex;
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.adm-picker-view-column-item {
|
|
47
|
-
font-size:
|
|
48
|
+
font-size: var(--item-font-size);
|
|
48
49
|
padding: 0 12px;
|
|
49
50
|
height: 68px;
|
|
50
51
|
display: flex;
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
display: flex;
|
|
67
68
|
flex-direction: column;
|
|
68
69
|
position: relative;
|
|
70
|
+
z-index: 0;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
.adm-picker-view-column-accessible > * {
|
|
@@ -86,7 +88,7 @@
|
|
|
86
88
|
|
|
87
89
|
.adm-picker-view-mask {
|
|
88
90
|
position: absolute;
|
|
89
|
-
z-index:
|
|
91
|
+
z-index: 10000;
|
|
90
92
|
left: 0;
|
|
91
93
|
top: 0;
|
|
92
94
|
width: 100%;
|
|
@@ -14,5 +14,5 @@ export declare type PickerViewProps = {
|
|
|
14
14
|
value?: PickerValue[];
|
|
15
15
|
defaultValue?: PickerValue[];
|
|
16
16
|
onChange?: (value: PickerValue[], extend: PickerValueExtend) => void;
|
|
17
|
-
} & NativeProps<'--height'>;
|
|
17
|
+
} & NativeProps<'--height' | '--item-font-size'>;
|
|
18
18
|
export declare const PickerView: React.NamedExoticComponent<PickerViewProps>;
|
|
@@ -146,7 +146,7 @@ const Wheel = (0, _react.memo)(props => {
|
|
|
146
146
|
className: `${classPrefix}-column`
|
|
147
147
|
}, bind()), _react.default.createElement(_web.animated.div, {
|
|
148
148
|
style: {
|
|
149
|
-
y
|
|
149
|
+
translateY: y
|
|
150
150
|
},
|
|
151
151
|
className: `${classPrefix}-column-wheel`,
|
|
152
152
|
"aria-hidden": true
|