antd-mobile 5.0.0-rc.23 → 5.0.0-rc.27
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 +6 -6
- package/2x/cjs/components/button/button.css +2 -2
- package/2x/cjs/components/calendar/calendar.js +3 -1
- package/2x/cjs/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- 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/dialog/dialog.css +4 -0
- package/2x/cjs/components/dropdown/dropdown.css +0 -4
- package/2x/cjs/components/dropdown/item.js +3 -1
- package/2x/cjs/components/ellipsis/ellipsis.js +3 -1
- package/2x/cjs/components/empty/empty.css +1 -1
- package/2x/cjs/components/floating-bubble/floating-bubble.css +1 -0
- package/2x/cjs/components/floating-panel/floating-panel.d.ts +7 -5
- package/2x/cjs/components/floating-panel/floating-panel.js +11 -1
- package/2x/cjs/components/form/form-item.css +4 -6
- 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 +3 -3
- package/2x/cjs/components/form/form.d.ts +5 -4
- package/2x/cjs/components/form/index.css +7 -9
- package/2x/cjs/components/form/index.d.ts +5 -4
- package/2x/cjs/components/image-uploader/image-uploader.js +1 -1
- package/2x/cjs/components/image-viewer/image-viewer.css +2 -0
- package/2x/cjs/components/image-viewer/image-viewer.js +12 -2
- package/2x/cjs/components/image-viewer/slide.js +11 -7
- package/2x/cjs/components/image-viewer/slides.d.ts +1 -1
- package/2x/cjs/components/index-bar/index-bar.css +2 -1
- package/2x/cjs/components/input/input.d.ts +6 -2
- package/2x/cjs/components/input/input.js +23 -3
- package/2x/cjs/components/list/list.css +8 -10
- package/2x/cjs/components/picker/picker.css +10 -2
- package/2x/cjs/components/picker/picker.d.ts +2 -1
- package/2x/cjs/components/picker/picker.js +3 -1
- package/2x/cjs/components/picker-view/picker-view.css +2 -1
- package/2x/cjs/components/picker-view/picker-view.d.ts +1 -1
- package/2x/cjs/components/picker-view/wheel.js +4 -2
- 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 +10 -20
- 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 +17 -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.js +2 -3
- package/2x/cjs/components/selector/selector.css +14 -6
- package/2x/cjs/components/selector/selector.d.ts +2 -1
- package/2x/cjs/components/selector/selector.js +3 -2
- package/2x/cjs/components/swiper/swiper.js +1 -1
- package/2x/cjs/components/tabs/tabs.js +2 -2
- 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.js +3 -1
- package/2x/cjs/utils/get-scroll-parent.js +1 -1
- package/2x/cjs/utils/use-ref-state.js +1 -1
- package/2x/cjs/utils/use-resize-effect.js +1 -3
- package/2x/cjs/utils/use-tab-list-scroll.js +1 -3
- package/2x/es/components/button/button.css +2 -2
- package/2x/es/components/calendar/calendar.js +3 -2
- package/2x/es/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- 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/dialog/dialog.css +4 -0
- package/2x/es/components/dropdown/dropdown.css +0 -4
- package/2x/es/components/dropdown/item.js +3 -1
- package/2x/es/components/ellipsis/ellipsis.js +3 -2
- package/2x/es/components/empty/empty.css +1 -1
- package/2x/es/components/floating-bubble/floating-bubble.css +1 -0
- package/2x/es/components/floating-panel/floating-panel.d.ts +7 -5
- package/2x/es/components/floating-panel/floating-panel.js +9 -1
- package/2x/es/components/form/form-item.css +4 -6
- 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 +3 -3
- package/2x/es/components/form/form.d.ts +5 -4
- package/2x/es/components/form/index.css +7 -9
- package/2x/es/components/form/index.d.ts +5 -4
- package/2x/es/components/image-uploader/image-uploader.js +3 -3
- package/2x/es/components/image-viewer/image-viewer.css +2 -0
- package/2x/es/components/image-viewer/image-viewer.js +13 -3
- package/2x/es/components/image-viewer/slide.js +11 -7
- package/2x/es/components/image-viewer/slides.d.ts +1 -1
- package/2x/es/components/index-bar/index-bar.css +2 -1
- package/2x/es/components/input/input.d.ts +6 -2
- package/2x/es/components/input/input.js +22 -4
- package/2x/es/components/list/list.css +8 -10
- package/2x/es/components/picker/picker.css +10 -2
- package/2x/es/components/picker/picker.d.ts +2 -1
- package/2x/es/components/picker/picker.js +3 -1
- package/2x/es/components/picker-view/picker-view.css +2 -1
- package/2x/es/components/picker-view/picker-view.d.ts +1 -1
- package/2x/es/components/picker-view/wheel.js +4 -3
- 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 +10 -20
- 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 +17 -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.js +2 -3
- package/2x/es/components/selector/selector.css +14 -6
- package/2x/es/components/selector/selector.d.ts +2 -1
- package/2x/es/components/selector/selector.js +3 -2
- package/2x/es/components/swiper/swiper.js +3 -3
- package/2x/es/components/tabs/tabs.js +4 -4
- 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.js +3 -2
- package/2x/es/utils/get-scroll-parent.js +1 -1
- package/2x/es/utils/use-ref-state.js +2 -2
- package/2x/es/utils/use-resize-effect.js +2 -3
- package/2x/es/utils/use-tab-list-scroll.js +2 -3
- package/2x/package.json +5 -5
- package/README.md +6 -6
- package/cjs/components/button/button.css +2 -2
- package/cjs/components/calendar/calendar.js +3 -1
- package/cjs/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- 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/dialog/dialog.css +3 -0
- package/cjs/components/dropdown/dropdown.css +0 -3
- package/cjs/components/dropdown/item.js +3 -1
- package/cjs/components/ellipsis/ellipsis.js +3 -1
- package/cjs/components/empty/empty.css +1 -1
- package/cjs/components/floating-bubble/floating-bubble.css +1 -0
- package/cjs/components/floating-panel/floating-panel.d.ts +7 -5
- package/cjs/components/floating-panel/floating-panel.js +11 -1
- package/cjs/components/form/form-item.css +4 -5
- 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 +3 -3
- package/cjs/components/form/form.d.ts +5 -4
- package/cjs/components/form/index.css +7 -8
- package/cjs/components/form/index.d.ts +5 -4
- package/cjs/components/image-uploader/image-uploader.js +1 -1
- package/cjs/components/image-viewer/image-viewer.css +2 -0
- package/cjs/components/image-viewer/image-viewer.js +12 -2
- package/cjs/components/image-viewer/slide.js +11 -7
- package/cjs/components/image-viewer/slides.d.ts +1 -1
- package/cjs/components/index-bar/index-bar.css +2 -1
- package/cjs/components/input/input.d.ts +6 -2
- package/cjs/components/input/input.js +23 -3
- package/cjs/components/list/list.css +7 -9
- package/cjs/components/picker/picker.css +9 -2
- package/cjs/components/picker/picker.d.ts +2 -1
- package/cjs/components/picker/picker.js +3 -1
- package/cjs/components/picker-view/picker-view.css +2 -1
- package/cjs/components/picker-view/picker-view.d.ts +1 -1
- package/cjs/components/picker-view/wheel.js +4 -2
- package/cjs/components/popover/arrow.d.ts +3 -0
- package/cjs/components/popover/arrow.js +26 -0
- package/cjs/components/popover/index.d.ts +10 -20
- 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 +17 -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.js +2 -3
- package/cjs/components/selector/selector.css +14 -6
- package/cjs/components/selector/selector.d.ts +2 -1
- package/cjs/components/selector/selector.js +3 -2
- package/cjs/components/swiper/swiper.js +1 -1
- package/cjs/components/tabs/tabs.js +2 -2
- 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.js +3 -1
- package/cjs/utils/get-scroll-parent.js +1 -1
- package/cjs/utils/use-ref-state.js +1 -1
- package/cjs/utils/use-resize-effect.js +1 -3
- package/cjs/utils/use-tab-list-scroll.js +1 -3
- package/es/components/button/button.css +2 -2
- package/es/components/calendar/calendar.js +3 -2
- package/es/components/cascade-picker-view/cascade-picker-view.d.ts +1 -2
- 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/dialog/dialog.css +3 -0
- package/es/components/dropdown/dropdown.css +0 -3
- package/es/components/dropdown/item.js +3 -1
- package/es/components/ellipsis/ellipsis.js +3 -2
- package/es/components/empty/empty.css +1 -1
- package/es/components/floating-bubble/floating-bubble.css +1 -0
- package/es/components/floating-panel/floating-panel.d.ts +7 -5
- package/es/components/floating-panel/floating-panel.js +9 -1
- package/es/components/form/form-item.css +4 -5
- 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 +3 -3
- package/es/components/form/form.d.ts +5 -4
- package/es/components/form/index.css +7 -8
- package/es/components/form/index.d.ts +5 -4
- package/es/components/image-uploader/image-uploader.js +3 -3
- package/es/components/image-viewer/image-viewer.css +2 -0
- package/es/components/image-viewer/image-viewer.js +13 -3
- package/es/components/image-viewer/slide.js +11 -7
- package/es/components/image-viewer/slides.d.ts +1 -1
- package/es/components/index-bar/index-bar.css +2 -1
- package/es/components/input/input.d.ts +6 -2
- package/es/components/input/input.js +22 -4
- package/es/components/list/list.css +7 -9
- package/es/components/picker/picker.css +9 -2
- package/es/components/picker/picker.d.ts +2 -1
- package/es/components/picker/picker.js +3 -1
- package/es/components/picker-view/picker-view.css +2 -1
- package/es/components/picker-view/picker-view.d.ts +1 -1
- package/es/components/picker-view/wheel.js +4 -3
- package/es/components/popover/arrow.d.ts +3 -0
- package/es/components/popover/arrow.js +12 -0
- package/es/components/popover/index.d.ts +10 -20
- 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 +17 -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.js +2 -3
- package/es/components/selector/selector.css +14 -6
- package/es/components/selector/selector.d.ts +2 -1
- package/es/components/selector/selector.js +3 -2
- package/es/components/swiper/swiper.js +3 -3
- package/es/components/tabs/tabs.js +4 -4
- 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.js +3 -2
- package/es/utils/get-scroll-parent.js +1 -1
- package/es/utils/use-ref-state.js +2 -2
- package/es/utils/use-resize-effect.js +2 -3
- package/es/utils/use-tab-list-scroll.js +2 -3
- package/package.json +5 -5
- 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
package/2x/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*
|
|
1
|
+
<img src="https://gw.alipayobjects.com/mdn/rms_ee68a8/afts/img/A*8HtNS4uMKkAAAAAAAAAAAAAAARQnAQ" alt="logo" width="100%" />
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|

|
|
5
|
-

|
|
6
|
+

|
|
6
7
|

|
|
7
8
|
[](http://isitmaintained.com/project/ant-design/ant-design-mobile 'Average time to resolve an issue')
|
|
8
9
|
[](http://isitmaintained.com/project/ant-design/ant-design-mobile 'Percentage of issues still open')
|
|
@@ -21,17 +22,16 @@ $ yarn add antd-mobile@next
|
|
|
21
22
|
- **Atomic**: The function of each component, neither more nor less, is exactly what you need.
|
|
22
23
|
- **Fluent**: With smooth gestures and delicate animation, it helps the product create the ultimate experience.
|
|
23
24
|
|
|
24
|
-
v5(Poplar) is the next major version of antd-mobile, we recommend using it instead of v2.
|
|
25
|
-
|
|
26
25
|
You can also play with antd-mobile just in browser with [Codesandbox](https://codesandbox.io/s/antd-mobile-snrxr?file=/package.json). No need to prepare development environment.
|
|
27
26
|
|
|
28
27
|
If you found bugs or would like to request some new features, please consider opening an [issue](https://github.com/ant-design/ant-design-mobile/issues/new).
|
|
29
28
|
|
|
30
29
|
If you have some question about how to use ant-mobile, you can start a [discussion thread](https://github.com/ant-design/ant-design-mobile/discussions).
|
|
31
30
|
|
|
32
|
-
Feel free to join
|
|
31
|
+
And we also have some community groups here. Feel free to join us:
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
- [DingDing](https://gw.alipayobjects.com/mdn/rms_25513e/afts/img/A*hBjlR4nUWjkAAAAAAAAAAAAAARQnAQ)
|
|
34
|
+
- [Discord](https://discord.gg/jmNvw4WFYn)
|
|
35
35
|
|
|
36
36
|
---
|
|
37
37
|
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
display: inline-block;
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
height: auto;
|
|
15
|
-
padding:
|
|
15
|
+
padding: 14px 24px;
|
|
16
16
|
margin: 0;
|
|
17
|
-
font-size:
|
|
17
|
+
font-size: 34px;
|
|
18
18
|
line-height: 1.4;
|
|
19
19
|
text-align: center;
|
|
20
20
|
border: var(--border-width) var(--border-style) var(--border-color);
|
|
@@ -23,6 +23,8 @@ var _configProvider = require("../config-provider");
|
|
|
23
23
|
|
|
24
24
|
var _isoWeek = _interopRequireDefault(require("dayjs/plugin/isoWeek"));
|
|
25
25
|
|
|
26
|
+
var _ahooks = require("ahooks");
|
|
27
|
+
|
|
26
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
29
|
|
|
28
30
|
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); }
|
|
@@ -91,7 +93,7 @@ const Calendar = p => {
|
|
|
91
93
|
}, [props.selectionMode, props.value, props.defaultValue]);
|
|
92
94
|
const [begin, setBegin] = (0, _react.useState)(null);
|
|
93
95
|
const [end, setEnd] = (0, _react.useState)(null);
|
|
94
|
-
(0,
|
|
96
|
+
(0, _ahooks.useIsomorphicLayoutEffect)(() => {
|
|
95
97
|
setBegin(dateRange[0] ? (0, _dayjs.default)(dateRange[0]) : null);
|
|
96
98
|
setEnd(dateRange[1] ? (0, _dayjs.default)(dateRange[1]) : null);
|
|
97
99
|
}, [dateRange[0], dateRange[1]]);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { NativeProps } from '../../utils/native-props';
|
|
3
2
|
import type { PickerViewProps } from '../picker-view';
|
|
4
3
|
import type { CascadePickerOption } from '../cascade-picker';
|
|
5
4
|
export declare type CascadePickerViewProps = Omit<PickerViewProps, 'columns'> & {
|
|
6
5
|
options: CascadePickerOption[];
|
|
7
|
-
}
|
|
6
|
+
};
|
|
8
7
|
export declare const CascadePickerView: FC<CascadePickerViewProps>;
|
|
@@ -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' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation'> & {
|
|
5
|
+
export declare type DatePickerProps = Pick<PickerProps, 'onCancel' | 'onClose' | 'closeOnMaskClick' | 'visible' | 'confirmText' | 'cancelText' | 'getContainer' | 'afterShow' | 'afterClose' | 'onClick' | 'title' | 'stopPropagation' | 'style'> & {
|
|
6
6
|
value?: Date | null;
|
|
7
7
|
defaultValue?: Date | null;
|
|
8
8
|
onSelect?: (value: Date) => void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
+
import type { PickerViewProps } from '../picker-view';
|
|
2
3
|
import { NativeProps } from '../../utils/native-props';
|
|
3
4
|
import type { Precision, DatePickerFilter } from '../date-picker/date-picker-utils';
|
|
4
|
-
export declare type DatePickerViewProps = {
|
|
5
|
+
export declare type DatePickerViewProps = Pick<PickerViewProps, 'style'> & {
|
|
5
6
|
value?: Date;
|
|
6
7
|
defaultValue?: Date;
|
|
7
8
|
onChange?: (value: Date) => void;
|
|
@@ -10,5 +11,5 @@ export declare type DatePickerViewProps = {
|
|
|
10
11
|
precision?: Precision;
|
|
11
12
|
renderLabel?: (type: Precision, data: number) => ReactNode;
|
|
12
13
|
filter?: DatePickerFilter;
|
|
13
|
-
} & NativeProps
|
|
14
|
+
} & NativeProps;
|
|
14
15
|
export declare const DatePickerView: FC<DatePickerViewProps>;
|
|
@@ -20,9 +20,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
20
20
|
const classPrefix = `adm-dropdown-item`;
|
|
21
21
|
|
|
22
22
|
const Item = props => {
|
|
23
|
+
var _a;
|
|
24
|
+
|
|
23
25
|
const cls = (0, _classnames.default)(classPrefix, {
|
|
24
26
|
[`${classPrefix}-active`]: props.active,
|
|
25
|
-
[`${classPrefix}-highlight`]: props.highlight
|
|
27
|
+
[`${classPrefix}-highlight`]: (_a = props.highlight) !== null && _a !== void 0 ? _a : props.active
|
|
26
28
|
});
|
|
27
29
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement("div", {
|
|
28
30
|
className: cls,
|
|
@@ -13,6 +13,8 @@ var _nativeProps = require("../../utils/native-props");
|
|
|
13
13
|
|
|
14
14
|
var _useResizeEffect = require("../../utils/use-resize-effect");
|
|
15
15
|
|
|
16
|
+
var _ahooks = require("ahooks");
|
|
17
|
+
|
|
16
18
|
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); }
|
|
17
19
|
|
|
18
20
|
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; }
|
|
@@ -129,7 +131,7 @@ const Ellipsis = p => {
|
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
(0, _useResizeEffect.useResizeEffect)(calcEllipsised, rootRef);
|
|
132
|
-
(0,
|
|
134
|
+
(0, _ahooks.useIsomorphicLayoutEffect)(() => {
|
|
133
135
|
calcEllipsised();
|
|
134
136
|
}, [props.content, props.direction, props.rows, props.expandText, props.collapseText]);
|
|
135
137
|
const expandActionElement = exceeded && props.expandText ? _react.default.createElement("a", {
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
|
-
export declare type FloatingPanelProps = {
|
|
4
|
-
anchors: number[];
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
onHeightChange?: (height: number, animating: boolean) => void;
|
|
7
|
-
} & NativeProps<'--border-radius' | '--z-index'>;
|
|
8
3
|
export declare type FloatingPanelRef = {
|
|
9
4
|
setHeight: (height: number, options?: {
|
|
10
5
|
immediate?: boolean;
|
|
11
6
|
}) => void;
|
|
12
7
|
};
|
|
8
|
+
export declare type FloatingPanelProps = {
|
|
9
|
+
anchors: number[];
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
onHeightChange?: (height: number, animating: boolean) => void;
|
|
12
|
+
handleDraggingOfContent?: boolean;
|
|
13
|
+
} & NativeProps<'--border-radius' | '--z-index'>;
|
|
13
14
|
export declare const FloatingPanel: React.ForwardRefExoticComponent<{
|
|
14
15
|
anchors: number[];
|
|
15
16
|
children: ReactNode;
|
|
16
17
|
onHeightChange?: ((height: number, animating: boolean) => void) | undefined;
|
|
18
|
+
handleDraggingOfContent?: boolean | undefined;
|
|
17
19
|
} & NativeProps<"--z-index" | "--border-radius"> & React.RefAttributes<FloatingPanelRef>>;
|
|
@@ -17,13 +17,21 @@ var _supportsPassive = require("../../utils/supports-passive");
|
|
|
17
17
|
|
|
18
18
|
var _nearest = require("../../utils/nearest");
|
|
19
19
|
|
|
20
|
+
var _withDefaultProps = require("../../utils/with-default-props");
|
|
21
|
+
|
|
22
|
+
var _useLockScroll = require("../../utils/use-lock-scroll");
|
|
23
|
+
|
|
20
24
|
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); }
|
|
21
25
|
|
|
22
26
|
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
27
|
|
|
24
|
-
const
|
|
28
|
+
const defaultProps = {
|
|
29
|
+
handleDraggingOfContent: true
|
|
30
|
+
};
|
|
31
|
+
const FloatingPanel = (0, _react.forwardRef)((p, ref) => {
|
|
25
32
|
var _a;
|
|
26
33
|
|
|
34
|
+
const props = (0, _withDefaultProps.mergeProps)(defaultProps, p);
|
|
27
35
|
const {
|
|
28
36
|
anchors
|
|
29
37
|
} = props;
|
|
@@ -61,6 +69,7 @@ const FloatingPanel = (0, _react.forwardRef)((props, ref) => {
|
|
|
61
69
|
if (header === target || (header === null || header === void 0 ? void 0 : header.contains(target))) {
|
|
62
70
|
pullingRef.current = true;
|
|
63
71
|
} else {
|
|
72
|
+
if (!props.handleDraggingOfContent) return;
|
|
64
73
|
const reachedTop = y.goal <= bounds.top;
|
|
65
74
|
const content = contentRef.current;
|
|
66
75
|
if (!content) return;
|
|
@@ -118,6 +127,7 @@ const FloatingPanel = (0, _react.forwardRef)((props, ref) => {
|
|
|
118
127
|
});
|
|
119
128
|
}
|
|
120
129
|
}), [api]);
|
|
130
|
+
(0, _useLockScroll.useLockScroll)(elementRef, true);
|
|
121
131
|
return (0, _nativeProps.withNativeProps)(props, _react.default.createElement(_web.animated.div, {
|
|
122
132
|
ref: elementRef,
|
|
123
133
|
className: 'adm-floating-panel',
|
|
@@ -13,13 +13,15 @@
|
|
|
13
13
|
.adm-form-item-label-required {
|
|
14
14
|
position: absolute;
|
|
15
15
|
left: -0.6em;
|
|
16
|
-
top: 0
|
|
16
|
+
top: 0;
|
|
17
|
+
font-family: SimSun, sans-serif;
|
|
17
18
|
color: var(--adm-color-danger);
|
|
18
19
|
user-select: none;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.adm-form-item-footer {
|
|
22
23
|
color: var(--adm-color-danger);
|
|
24
|
+
margin-top: 8px;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
.adm-form-item.adm-form-item-hidden {
|
|
@@ -27,12 +29,8 @@
|
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
.adm-form-vertical .adm-form-item-label {
|
|
30
|
-
margin-bottom: 8px;
|
|
31
32
|
font-size: 30px;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
.adm-form-vertical .adm-form-item-footer {
|
|
35
|
-
margin-top: 8px;
|
|
33
|
+
margin-bottom: 8px;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
.adm-form-horizontal .adm-list-item-content-prefix {
|
|
@@ -7,7 +7,7 @@ import type { FormLayout } from './index';
|
|
|
7
7
|
declare type RenderChildren<Values = any> = (form: FormInstance<Values>) => React.ReactNode;
|
|
8
8
|
declare type ChildrenType<Values = any> = RenderChildren<Values> | React.ReactNode;
|
|
9
9
|
declare type RcFieldProps = Omit<FieldProps, 'children'>;
|
|
10
|
-
export declare type FormItemProps = RcFieldProps
|
|
10
|
+
export declare type FormItemProps = Pick<RcFieldProps, 'dependencies' | 'valuePropName' | 'name' | 'rules' | 'messageVariables' | 'trigger' | 'validateTrigger' | 'shouldUpdate' | 'initialValue'> & Pick<ListItemProps, 'style' | 'onClick' | 'extra' | 'arrow'> & {
|
|
11
11
|
label?: React.ReactNode;
|
|
12
12
|
help?: React.ReactNode;
|
|
13
13
|
hasFeedback?: boolean;
|
|
@@ -17,6 +17,6 @@ export declare type FormItemProps = RcFieldProps & NativeProps & Pick<ListItemPr
|
|
|
17
17
|
hidden?: boolean;
|
|
18
18
|
layout?: FormLayout;
|
|
19
19
|
children: ChildrenType;
|
|
20
|
-
};
|
|
20
|
+
} & NativeProps;
|
|
21
21
|
export declare const FormItem: FC<FormItemProps>;
|
|
22
22
|
export {};
|
|
@@ -48,7 +48,8 @@ const FormItemLayout = props => {
|
|
|
48
48
|
children,
|
|
49
49
|
htmlFor,
|
|
50
50
|
hidden,
|
|
51
|
-
errors
|
|
51
|
+
errors,
|
|
52
|
+
arrow
|
|
52
53
|
} = props;
|
|
53
54
|
const context = (0, _react.useContext)(_context.FormContext);
|
|
54
55
|
const hasFeedback = props.hasFeedback !== undefined ? props.hasFeedback : context.hasFeedback;
|
|
@@ -77,7 +78,8 @@ const FormItemLayout = props => {
|
|
|
77
78
|
[`${classPrefix}-hidden`]: hidden
|
|
78
79
|
}),
|
|
79
80
|
disabled: disabled,
|
|
80
|
-
onClick: props.onClick
|
|
81
|
+
onClick: props.onClick,
|
|
82
|
+
arrow: arrow
|
|
81
83
|
}, children);
|
|
82
84
|
};
|
|
83
85
|
|
|
@@ -105,9 +107,10 @@ const FormItem = props => {
|
|
|
105
107
|
validateTrigger,
|
|
106
108
|
onClick,
|
|
107
109
|
shouldUpdate,
|
|
108
|
-
dependencies
|
|
110
|
+
dependencies,
|
|
111
|
+
arrow
|
|
109
112
|
} = props,
|
|
110
|
-
fieldProps = (0, _tslib.__rest)(props, ["className", "style", "label", "help", "extra", "hasFeedback", "name", "required", "noStyle", "hidden", "layout", "disabled", "rules", "children", "messageVariables", "trigger", "validateTrigger", "onClick", "shouldUpdate", "dependencies"]);
|
|
113
|
+
fieldProps = (0, _tslib.__rest)(props, ["className", "style", "label", "help", "extra", "hasFeedback", "name", "required", "noStyle", "hidden", "layout", "disabled", "rules", "children", "messageVariables", "trigger", "validateTrigger", "onClick", "shouldUpdate", "dependencies", "arrow"]);
|
|
111
114
|
|
|
112
115
|
const {
|
|
113
116
|
validateTrigger: contextValidateTrigger
|
|
@@ -166,7 +169,8 @@ const FormItem = props => {
|
|
|
166
169
|
errors: errors,
|
|
167
170
|
onClick: onClick,
|
|
168
171
|
hidden: hidden,
|
|
169
|
-
layout: layout
|
|
172
|
+
layout: layout,
|
|
173
|
+
arrow: arrow
|
|
170
174
|
}, _react.default.createElement(_context.NoStyleItemContext.Provider, {
|
|
171
175
|
value: onSubMetaChange
|
|
172
176
|
}, baseChildren));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.adm-form .adm-list.adm-list {
|
|
2
|
-
--padding-left:
|
|
3
|
-
--padding-right:
|
|
2
|
+
--padding-left: 32px;
|
|
3
|
+
--padding-right: 24px;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.adm-form-horizontal .adm-list.adm-list {
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.adm-form .adm-form-footer {
|
|
16
|
-
padding: 24px;
|
|
16
|
+
padding: 40px 24px;
|
|
17
17
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { NativeProps } from '../../utils/native-props';
|
|
3
3
|
import { ListProps } from '../list';
|
|
4
|
-
import type { FormProps as RcFormProps, FormInstance } from 'rc-field-form';
|
|
4
|
+
import type { FormProps as RcFormProps, FormInstance as RCFormInstance } from 'rc-field-form';
|
|
5
5
|
import { FormContextType } from './context';
|
|
6
6
|
import type { FormLayout } from '.';
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type FormInstance = Pick<RCFormInstance, 'getFieldValue' | 'getFieldsValue' | 'getFieldError' | 'getFieldsError' | 'isFieldTouched' | 'isFieldsTouched' | 'resetFields' | 'setFields' | 'setFieldsValue' | 'submit' | 'validateFields'>;
|
|
8
|
+
export declare type FormProps = Pick<RcFormProps, 'form' | 'initialValues' | 'name' | 'preserve' | 'validateMessages' | 'validateTrigger' | 'onFieldsChange' | 'onFinish' | 'onFinishFailed' | 'onValuesChange' | 'children'> & NativeProps & Partial<FormContextType> & {
|
|
8
9
|
footer?: ReactNode;
|
|
9
10
|
layout?: FormLayout;
|
|
10
11
|
mode?: ListProps['mode'];
|
|
11
12
|
};
|
|
12
|
-
export declare const Form: React.ForwardRefExoticComponent<RcFormProps<any> & NativeProps<never> & Partial<FormContextType> & {
|
|
13
|
+
export declare const Form: React.ForwardRefExoticComponent<Pick<RcFormProps<any>, "children" | "form" | "name" | "initialValues" | "preserve" | "validateMessages" | "validateTrigger" | "onFieldsChange" | "onFinish" | "onFinishFailed" | "onValuesChange"> & NativeProps<never> & Partial<FormContextType> & {
|
|
13
14
|
footer?: ReactNode;
|
|
14
15
|
layout?: "horizontal" | "vertical" | undefined;
|
|
15
16
|
mode?: ListProps['mode'];
|
|
16
|
-
} & React.RefAttributes<
|
|
17
|
+
} & React.RefAttributes<Pick<RCFormInstance<any>, "submit" | "getFieldValue" | "getFieldsValue" | "getFieldError" | "getFieldsError" | "isFieldTouched" | "isFieldsTouched" | "resetFields" | "setFields" | "setFieldsValue" | "validateFields">>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.adm-form .adm-list.adm-list {
|
|
2
|
-
--padding-left:
|
|
3
|
-
--padding-right:
|
|
2
|
+
--padding-left: 32px;
|
|
3
|
+
--padding-right: 24px;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.adm-form-horizontal .adm-list.adm-list {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.adm-form .adm-form-footer {
|
|
16
|
-
padding: 24px;
|
|
16
|
+
padding: 40px 24px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.adm-form-item + .adm-form-item {
|
|
@@ -31,13 +31,15 @@
|
|
|
31
31
|
.adm-form-item-label-required {
|
|
32
32
|
position: absolute;
|
|
33
33
|
left: -0.6em;
|
|
34
|
-
top: 0
|
|
34
|
+
top: 0;
|
|
35
|
+
font-family: SimSun, sans-serif;
|
|
35
36
|
color: var(--adm-color-danger);
|
|
36
37
|
user-select: none;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.adm-form-item-footer {
|
|
40
41
|
color: var(--adm-color-danger);
|
|
42
|
+
margin-top: 8px;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
.adm-form-item.adm-form-item-hidden {
|
|
@@ -45,12 +47,8 @@
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.adm-form-vertical .adm-form-item-label {
|
|
48
|
-
margin-bottom: 8px;
|
|
49
50
|
font-size: 30px;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
.adm-form-vertical .adm-form-item-footer {
|
|
53
|
-
margin-top: 8px;
|
|
51
|
+
margin-bottom: 8px;
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
.adm-form-horizontal .adm-list-item-content-prefix {
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import './index.less';
|
|
3
3
|
import { useForm } from 'rc-field-form';
|
|
4
4
|
export declare type FormLayout = 'vertical' | 'horizontal';
|
|
5
|
-
export type { FormProps } from './form';
|
|
6
|
-
export type {
|
|
7
|
-
|
|
5
|
+
export type { FormProps, FormInstance } from './form';
|
|
6
|
+
export type { FormItemProps } from './form-item';
|
|
7
|
+
export type { ValidateMessages, FieldData, NamePath, } from 'rc-field-form/es/interface';
|
|
8
|
+
declare const _default: import("react").ForwardRefExoticComponent<Pick<import("rc-field-form").FormProps<any>, "children" | "form" | "name" | "initialValues" | "preserve" | "validateMessages" | "validateTrigger" | "onFieldsChange" | "onFinish" | "onFinishFailed" | "onValuesChange"> & import("../../utils/native-props").NativeProps<never> & Partial<import("./context").FormContextType> & {
|
|
8
9
|
footer?: import("react").ReactNode;
|
|
9
10
|
layout?: "horizontal" | "vertical" | undefined;
|
|
10
11
|
mode?: "default" | "card" | undefined;
|
|
11
|
-
} & import("react").RefAttributes<import("rc-field-form").FormInstance<any>>> & {
|
|
12
|
+
} & import("react").RefAttributes<Pick<import("rc-field-form").FormInstance<any>, "submit" | "getFieldValue" | "getFieldsValue" | "getFieldError" | "getFieldsError" | "isFieldTouched" | "isFieldsTouched" | "resetFields" | "setFields" | "setFieldsValue" | "validateFields">>> & {
|
|
12
13
|
Item: import("react").FC<import("./form-item").FormItemProps>;
|
|
13
14
|
Header: import("react").FC<{}>;
|
|
14
15
|
useForm: typeof useForm;
|
|
@@ -50,7 +50,7 @@ const ImageUploader = p => {
|
|
|
50
50
|
setValue(updater(value));
|
|
51
51
|
});
|
|
52
52
|
const [tasks, setTasks] = (0, _react.useState)([]);
|
|
53
|
-
(0,
|
|
53
|
+
(0, _ahooks.useIsomorphicLayoutEffect)(() => {
|
|
54
54
|
setTasks(prev => prev.filter(task => {
|
|
55
55
|
if (task.url === undefined) return true;
|
|
56
56
|
return !value.some(fileItem => fileItem.url === task.url);
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
position: relative;
|
|
12
12
|
z-index: 1;
|
|
13
13
|
cursor: grab;
|
|
14
|
+
touch-action: none;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.adm-image-viewer-slides-inner {
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
width: 100%;
|
|
38
39
|
height: 100%;
|
|
39
40
|
cursor: grab;
|
|
41
|
+
touch-action: none;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.adm-image-viewer-image-wrapper {
|
|
@@ -59,6 +59,16 @@ const multiDefaultProps = Object.assign(Object.assign({}, defaultProps), {
|
|
|
59
59
|
});
|
|
60
60
|
const MultiImageViewer = (0, _react.forwardRef)((p, ref) => {
|
|
61
61
|
const props = (0, _withDefaultProps.mergeProps)(multiDefaultProps, p);
|
|
62
|
+
const [defaultIndex, setDefaultIndex] = (0, _react.useState)(props.defaultIndex);
|
|
63
|
+
const slidesRef = (0, _react.useRef)(null);
|
|
64
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
|
65
|
+
swipeTo: (index, immediate) => {
|
|
66
|
+
var _a;
|
|
67
|
+
|
|
68
|
+
setDefaultIndex(index);
|
|
69
|
+
(_a = slidesRef.current) === null || _a === void 0 ? void 0 : _a.swipeTo(index, immediate);
|
|
70
|
+
}
|
|
71
|
+
}));
|
|
62
72
|
|
|
63
73
|
const node = _react.default.createElement(_mask.default, {
|
|
64
74
|
visible: props.visible,
|
|
@@ -68,8 +78,8 @@ const MultiImageViewer = (0, _react.forwardRef)((p, ref) => {
|
|
|
68
78
|
}, _react.default.createElement("div", {
|
|
69
79
|
className: `${classPrefix}-content`
|
|
70
80
|
}, props.images && _react.default.createElement(_slides.Slides, {
|
|
71
|
-
ref:
|
|
72
|
-
defaultIndex:
|
|
81
|
+
ref: slidesRef,
|
|
82
|
+
defaultIndex: defaultIndex,
|
|
73
83
|
onIndexChange: props.onIndexChange,
|
|
74
84
|
images: props.images,
|
|
75
85
|
onTap: () => {
|
|
@@ -37,7 +37,7 @@ const Slide = props => {
|
|
|
37
37
|
const pinchLockRef = (0, _react.useRef)(false);
|
|
38
38
|
(0, _react2.useGesture)({
|
|
39
39
|
onDrag: state => {
|
|
40
|
-
if (state.tap && state.elapsedTime > 0) {
|
|
40
|
+
if (state.tap && state.elapsedTime > 0 && state.elapsedTime < 1000) {
|
|
41
41
|
// 判断点击时间>0是为了过滤掉非正常操作,例如用户长按选择图片之后的取消操作(也是一次点击)
|
|
42
42
|
props.onTap();
|
|
43
43
|
return;
|
|
@@ -96,13 +96,16 @@ const Slide = props => {
|
|
|
96
96
|
target: controlRef,
|
|
97
97
|
drag: {
|
|
98
98
|
// filterTaps: true,
|
|
99
|
-
from: () => [x.get(), y.get()]
|
|
99
|
+
from: () => [x.get(), y.get()],
|
|
100
|
+
pointer: {
|
|
101
|
+
touch: true
|
|
102
|
+
}
|
|
100
103
|
},
|
|
101
104
|
pinch: {
|
|
102
|
-
from: () => [zoom.get(), 0]
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
from: () => [zoom.get(), 0],
|
|
106
|
+
pointer: {
|
|
107
|
+
touch: true
|
|
108
|
+
}
|
|
106
109
|
}
|
|
107
110
|
});
|
|
108
111
|
return _react.default.createElement("div", {
|
|
@@ -124,7 +127,8 @@ const Slide = props => {
|
|
|
124
127
|
}
|
|
125
128
|
}, _react.default.createElement("img", {
|
|
126
129
|
src: props.image,
|
|
127
|
-
draggable: false
|
|
130
|
+
draggable: false,
|
|
131
|
+
alt: props.image
|
|
128
132
|
}))));
|
|
129
133
|
};
|
|
130
134
|
|
|
@@ -7,6 +7,6 @@ export declare type SlidesType = {
|
|
|
7
7
|
onIndexChange?: (index: number) => void;
|
|
8
8
|
};
|
|
9
9
|
export declare type SlidesRef = {
|
|
10
|
-
swipeTo: (index: number, immediate
|
|
10
|
+
swipeTo: (index: number, immediate?: boolean) => void;
|
|
11
11
|
};
|
|
12
12
|
export declare const Slides: React.ForwardRefExoticComponent<SlidesType & React.RefAttributes<SlidesRef>>;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
top: 50%;
|
|
34
34
|
right: 0;
|
|
35
35
|
transform: translateY(-50%);
|
|
36
|
-
z-index:
|
|
36
|
+
z-index: 910;
|
|
37
37
|
overflow: visible;
|
|
38
38
|
color: var(--adm-color-weak);
|
|
39
39
|
font-size: 24px;
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
|
|
90
90
|
.adm-index-bar-sticky .adm-index-bar-anchor-title {
|
|
91
91
|
position: sticky;
|
|
92
|
+
z-index: 900;
|
|
92
93
|
top: var(--sticky-offset-top);
|
|
93
94
|
left: 0;
|
|
94
95
|
}
|
|
@@ -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' | '
|
|
4
|
+
export declare type InputProps = Pick<NativeInputProps, 'maxLength' | 'minLength' | '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,15 @@ 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
|
+
min?: number;
|
|
17
|
+
max?: number;
|
|
16
18
|
} & NativeProps<'--font-size' | '--color' | '--placeholder-color' | '--text-align'>;
|
|
17
19
|
export declare type InputRef = {
|
|
18
20
|
clear: () => void;
|
|
19
21
|
focus: () => void;
|
|
20
22
|
blur: () => void;
|
|
21
23
|
};
|
|
22
|
-
export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "pattern" | "
|
|
24
|
+
export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "pattern" | "type" | "onCompositionEnd" | "onCompositionStart" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "autoCapitalize" | "autoCorrect" | "inputMode" | "autoComplete" | "maxLength" | "minLength"> & {
|
|
23
25
|
value?: string | undefined;
|
|
24
26
|
defaultValue?: string | undefined;
|
|
25
27
|
onChange?: ((val: string) => void) | undefined;
|
|
@@ -31,5 +33,7 @@ export declare const Input: React.ForwardRefExoticComponent<Pick<React.DetailedH
|
|
|
31
33
|
id?: string | undefined;
|
|
32
34
|
onEnterPress?: ((e: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
|
|
33
35
|
enterKeyHint?: "enter" | "search" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
36
|
+
min?: number | undefined;
|
|
37
|
+
max?: number | undefined;
|
|
34
38
|
} & NativeProps<"--color" | "--font-size" | "--placeholder-color" | "--text-align"> & React.RefAttributes<InputRef>>;
|
|
35
39
|
export {};
|