antd-mobile 5.12.1 → 5.12.2

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.
Files changed (58) hide show
  1. package/2x/cjs/components/dialog/dialog.d.ts +2 -1
  2. package/2x/cjs/components/dropdown/dropdown.css +1 -1
  3. package/2x/cjs/components/error-block/images/busy.d.ts +1 -0
  4. package/2x/cjs/components/error-block/images/default.d.ts +1 -0
  5. package/2x/cjs/components/error-block/images/disconnected.d.ts +1 -0
  6. package/2x/cjs/components/error-block/images/empty.d.ts +1 -0
  7. package/2x/cjs/components/image/image.d.ts +1 -1
  8. package/2x/cjs/components/modal/modal.d.ts +2 -1
  9. package/2x/cjs/components/popup/popup.d.ts +2 -1
  10. package/2x/cjs/components/search-bar/search-bar.js +2 -8
  11. package/2x/cjs/components/tabs/tabs.css +4 -3
  12. package/2x/cjs/components/tabs/tabs.d.ts +1 -1
  13. package/2x/cjs/components/toast/toast.d.ts +2 -1
  14. package/2x/es/components/dialog/dialog.d.ts +2 -1
  15. package/2x/es/components/dropdown/dropdown.css +1 -1
  16. package/2x/es/components/error-block/images/busy.d.ts +1 -0
  17. package/2x/es/components/error-block/images/default.d.ts +1 -0
  18. package/2x/es/components/error-block/images/disconnected.d.ts +1 -0
  19. package/2x/es/components/error-block/images/empty.d.ts +1 -0
  20. package/2x/es/components/image/image.d.ts +1 -1
  21. package/2x/es/components/modal/modal.d.ts +2 -1
  22. package/2x/es/components/popup/popup.d.ts +2 -1
  23. package/2x/es/components/search-bar/search-bar.js +2 -8
  24. package/2x/es/components/tabs/tabs.css +4 -3
  25. package/2x/es/components/tabs/tabs.d.ts +1 -1
  26. package/2x/es/components/toast/toast.d.ts +2 -1
  27. package/2x/package.json +2 -7
  28. package/bundle/antd-mobile.cjs.js +2 -8
  29. package/bundle/antd-mobile.es.js +2 -8
  30. package/bundle/style.css +5 -4
  31. package/cjs/components/dialog/dialog.d.ts +2 -1
  32. package/cjs/components/dropdown/dropdown.css +1 -1
  33. package/cjs/components/error-block/images/busy.d.ts +1 -0
  34. package/cjs/components/error-block/images/default.d.ts +1 -0
  35. package/cjs/components/error-block/images/disconnected.d.ts +1 -0
  36. package/cjs/components/error-block/images/empty.d.ts +1 -0
  37. package/cjs/components/image/image.d.ts +1 -1
  38. package/cjs/components/modal/modal.d.ts +2 -1
  39. package/cjs/components/popup/popup.d.ts +2 -1
  40. package/cjs/components/search-bar/search-bar.js +2 -8
  41. package/cjs/components/tabs/tabs.css +4 -3
  42. package/cjs/components/tabs/tabs.d.ts +1 -1
  43. package/cjs/components/toast/toast.d.ts +2 -1
  44. package/es/components/dialog/dialog.d.ts +2 -1
  45. package/es/components/dropdown/dropdown.css +1 -1
  46. package/es/components/error-block/images/busy.d.ts +1 -0
  47. package/es/components/error-block/images/default.d.ts +1 -0
  48. package/es/components/error-block/images/disconnected.d.ts +1 -0
  49. package/es/components/error-block/images/empty.d.ts +1 -0
  50. package/es/components/image/image.d.ts +1 -1
  51. package/es/components/modal/modal.d.ts +2 -1
  52. package/es/components/popup/popup.d.ts +2 -1
  53. package/es/components/search-bar/search-bar.js +2 -8
  54. package/es/components/tabs/tabs.css +4 -3
  55. package/es/components/tabs/tabs.d.ts +1 -1
  56. package/es/components/toast/toast.d.ts +2 -1
  57. package/package.json +2 -7
  58. package/umd/antd-mobile.js +1 -1
@@ -1,4 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { Action } from './dialog-action-button';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
@@ -19,7 +20,7 @@ export declare type DialogProps = {
19
20
  getContainer?: GetContainer;
20
21
  bodyStyle?: React.CSSProperties;
21
22
  bodyClassName?: string;
22
- maskStyle?: React.CSSProperties;
23
+ maskStyle?: MaskProps['style'];
23
24
  maskClassName?: string;
24
25
  stopPropagation?: PropagationEvent[];
25
26
  disableBodyScroll?: boolean;
@@ -38,7 +38,7 @@
38
38
  .adm-dropdown-item .adm-dropdown-item-title-arrow {
39
39
  color: var(--adm-color-light);
40
40
  font-size: 18px;
41
- transform: rotate(0deg) translateY(-2px);
41
+ transform: rotate(0deg) translateY(2px);
42
42
  transition: all ease 0.2s;
43
43
  }
44
44
 
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const busyImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const defaultImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const disconnectedImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const emptyImage: JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type ImageProps = {
4
- src: string;
4
+ src?: string;
5
5
  alt?: string;
6
6
  width?: number | string;
7
7
  height?: number | string;
@@ -1,4 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { Action } from './modal-action-button';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
@@ -19,7 +20,7 @@ export declare type ModalProps = {
19
20
  getContainer?: GetContainer;
20
21
  bodyStyle?: React.CSSProperties;
21
22
  bodyClassName?: string;
22
- maskStyle?: React.CSSProperties;
23
+ maskStyle?: MaskProps['style'];
23
24
  maskClassName?: string;
24
25
  stopPropagation?: PropagationEvent[];
25
26
  showCloseButton?: boolean;
@@ -1,5 +1,6 @@
1
1
  import React, { FC } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
+ import type { MaskProps } from '../mask';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
5
6
  export declare type PopupProps = {
@@ -15,7 +16,7 @@ export declare type PopupProps = {
15
16
  bodyClassName?: string;
16
17
  bodyStyle?: React.CSSProperties;
17
18
  maskClassName?: string;
18
- maskStyle?: React.CSSProperties;
19
+ maskStyle?: MaskProps['style'];
19
20
  onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
20
21
  stopPropagation?: PropagationEvent[];
21
22
  children?: React.ReactNode;
@@ -74,7 +74,7 @@ const SearchBar = (0, _react.forwardRef)((p, ref) => {
74
74
  }));
75
75
 
76
76
  const renderCancelButton = () => {
77
- let isShowCancel = false;
77
+ let isShowCancel;
78
78
 
79
79
  if (typeof props.showCancelButton === 'function') {
80
80
  isShowCancel = props.showCancelButton(hasFocus, value);
@@ -83,13 +83,7 @@ const SearchBar = (0, _react.forwardRef)((p, ref) => {
83
83
  }
84
84
 
85
85
  return isShowCancel && _react.default.createElement("div", {
86
- className: `${classPrefix}-suffix`,
87
- onMouseDown: e => {
88
- e.preventDefault();
89
- },
90
- onTouchStart: e => {
91
- e.preventDefault();
92
- }
86
+ className: `${classPrefix}-suffix`
93
87
  }, _react.default.createElement(_button.default, {
94
88
  fill: 'none',
95
89
  className: `${classPrefix}-cancel-button`,
@@ -3,6 +3,8 @@
3
3
  --content-padding: 24px;
4
4
  --active-line-height: 4px;
5
5
  --active-line-border-radius: var(--active-line-height);
6
+ --active-line-color: var(--adm-color-primary);
7
+ --active-title-color: var(--adm-color-primary);
6
8
  position: relative;
7
9
  min-width: 0;
8
10
  }
@@ -45,7 +47,7 @@
45
47
  }
46
48
 
47
49
  .adm-tabs-tab-active {
48
- color: var(--adm-color-primary);
50
+ color: var(--active-title-color);
49
51
  }
50
52
 
51
53
  .adm-tabs-tab-disabled {
@@ -57,8 +59,7 @@
57
59
  position: absolute;
58
60
  bottom: 0;
59
61
  height: var(--active-line-height);
60
- color: var(--adm-color-primary);
61
- background: var(--adm-color-primary);
62
+ background: var(--active-line-color);
62
63
  border-radius: var(--active-line-border-radius);
63
64
  }
64
65
 
@@ -15,5 +15,5 @@ export declare type TabsProps = {
15
15
  stretch?: boolean;
16
16
  onChange?: (key: string) => void;
17
17
  children?: React.ReactNode;
18
- } & NativeProps<'--fixed-active-line-width' | '--active-line-height' | '--active-line-border-radius' | '--title-font-size' | '--content-padding'>;
18
+ } & NativeProps<'--fixed-active-line-width' | '--active-line-height' | '--active-line-border-radius' | '--title-font-size' | '--content-padding' | '--active-title-color' | '--active-line-color'>;
19
19
  export declare const Tabs: FC<TabsProps>;
@@ -1,9 +1,10 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { PropagationEvent } from '../../utils/with-stop-propagation';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  export interface ToastProps {
5
6
  afterClose?: () => void;
6
- maskStyle?: React.CSSProperties;
7
+ maskStyle?: MaskProps['style'];
7
8
  maskClassName?: string;
8
9
  maskClickable?: boolean;
9
10
  content?: ReactNode;
@@ -1,4 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { Action } from './dialog-action-button';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
@@ -19,7 +20,7 @@ export declare type DialogProps = {
19
20
  getContainer?: GetContainer;
20
21
  bodyStyle?: React.CSSProperties;
21
22
  bodyClassName?: string;
22
- maskStyle?: React.CSSProperties;
23
+ maskStyle?: MaskProps['style'];
23
24
  maskClassName?: string;
24
25
  stopPropagation?: PropagationEvent[];
25
26
  disableBodyScroll?: boolean;
@@ -38,7 +38,7 @@
38
38
  .adm-dropdown-item .adm-dropdown-item-title-arrow {
39
39
  color: var(--adm-color-light);
40
40
  font-size: 18px;
41
- transform: rotate(0deg) translateY(-2px);
41
+ transform: rotate(0deg) translateY(2px);
42
42
  transition: all ease 0.2s;
43
43
  }
44
44
 
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const busyImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const defaultImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const disconnectedImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const emptyImage: JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type ImageProps = {
4
- src: string;
4
+ src?: string;
5
5
  alt?: string;
6
6
  width?: number | string;
7
7
  height?: number | string;
@@ -1,4 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { Action } from './modal-action-button';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
@@ -19,7 +20,7 @@ export declare type ModalProps = {
19
20
  getContainer?: GetContainer;
20
21
  bodyStyle?: React.CSSProperties;
21
22
  bodyClassName?: string;
22
- maskStyle?: React.CSSProperties;
23
+ maskStyle?: MaskProps['style'];
23
24
  maskClassName?: string;
24
25
  stopPropagation?: PropagationEvent[];
25
26
  showCloseButton?: boolean;
@@ -1,5 +1,6 @@
1
1
  import React, { FC } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
+ import type { MaskProps } from '../mask';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
5
6
  export declare type PopupProps = {
@@ -15,7 +16,7 @@ export declare type PopupProps = {
15
16
  bodyClassName?: string;
16
17
  bodyStyle?: React.CSSProperties;
17
18
  maskClassName?: string;
18
- maskStyle?: React.CSSProperties;
19
+ maskStyle?: MaskProps['style'];
19
20
  onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
20
21
  stopPropagation?: PropagationEvent[];
21
22
  children?: React.ReactNode;
@@ -52,7 +52,7 @@ export const SearchBar = forwardRef((p, ref) => {
52
52
  }));
53
53
 
54
54
  const renderCancelButton = () => {
55
- let isShowCancel = false;
55
+ let isShowCancel;
56
56
 
57
57
  if (typeof props.showCancelButton === 'function') {
58
58
  isShowCancel = props.showCancelButton(hasFocus, value);
@@ -61,13 +61,7 @@ export const SearchBar = forwardRef((p, ref) => {
61
61
  }
62
62
 
63
63
  return isShowCancel && React.createElement("div", {
64
- className: `${classPrefix}-suffix`,
65
- onMouseDown: e => {
66
- e.preventDefault();
67
- },
68
- onTouchStart: e => {
69
- e.preventDefault();
70
- }
64
+ className: `${classPrefix}-suffix`
71
65
  }, React.createElement(Button, {
72
66
  fill: 'none',
73
67
  className: `${classPrefix}-cancel-button`,
@@ -3,6 +3,8 @@
3
3
  --content-padding: 24px;
4
4
  --active-line-height: 4px;
5
5
  --active-line-border-radius: var(--active-line-height);
6
+ --active-line-color: var(--adm-color-primary);
7
+ --active-title-color: var(--adm-color-primary);
6
8
  position: relative;
7
9
  min-width: 0;
8
10
  }
@@ -45,7 +47,7 @@
45
47
  }
46
48
 
47
49
  .adm-tabs-tab-active {
48
- color: var(--adm-color-primary);
50
+ color: var(--active-title-color);
49
51
  }
50
52
 
51
53
  .adm-tabs-tab-disabled {
@@ -57,8 +59,7 @@
57
59
  position: absolute;
58
60
  bottom: 0;
59
61
  height: var(--active-line-height);
60
- color: var(--adm-color-primary);
61
- background: var(--adm-color-primary);
62
+ background: var(--active-line-color);
62
63
  border-radius: var(--active-line-border-radius);
63
64
  }
64
65
 
@@ -15,5 +15,5 @@ export declare type TabsProps = {
15
15
  stretch?: boolean;
16
16
  onChange?: (key: string) => void;
17
17
  children?: React.ReactNode;
18
- } & NativeProps<'--fixed-active-line-width' | '--active-line-height' | '--active-line-border-radius' | '--title-font-size' | '--content-padding'>;
18
+ } & NativeProps<'--fixed-active-line-width' | '--active-line-height' | '--active-line-border-radius' | '--title-font-size' | '--content-padding' | '--active-title-color' | '--active-line-color'>;
19
19
  export declare const Tabs: FC<TabsProps>;
@@ -1,9 +1,10 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { PropagationEvent } from '../../utils/with-stop-propagation';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  export interface ToastProps {
5
6
  afterClose?: () => void;
6
- maskStyle?: React.CSSProperties;
7
+ maskStyle?: MaskProps['style'];
7
8
  maskClassName?: string;
8
9
  maskClickable?: boolean;
9
10
  content?: ReactNode;
package/2x/package.json CHANGED
@@ -1,13 +1,9 @@
1
1
  {
2
2
  "name": "antd-mobile",
3
- "version": "5.12.1",
3
+ "version": "5.12.2",
4
4
  "dependencies": {
5
5
  "@floating-ui/dom": "^0.4.5",
6
6
  "@react-spring/web": "^9.4.5",
7
- "@types/big.js": "^6.1.3",
8
- "@types/react-is": "^17.0.3",
9
- "@types/react-virtualized": "^9.21.21",
10
- "@types/resize-observer-browser": "^0.1.7",
11
7
  "@use-gesture/react": "^10.2.12",
12
8
  "ahooks": "^3.3.10",
13
9
  "antd-mobile-icons": "^0.2.2",
@@ -43,6 +39,5 @@
43
39
  "url": "git+https://github.com/ant-design/ant-design-mobile.git",
44
40
  "branch": "master",
45
41
  "platform": "github"
46
- },
47
- "packageManager": "yarn@3.2.0"
42
+ }
48
43
  }
@@ -16562,20 +16562,14 @@ const SearchBar = React$1.forwardRef((p2, ref) => {
16562
16562
  }
16563
16563
  }));
16564
16564
  const renderCancelButton = () => {
16565
- let isShowCancel = false;
16565
+ let isShowCancel;
16566
16566
  if (typeof props.showCancelButton === "function") {
16567
16567
  isShowCancel = props.showCancelButton(hasFocus, value);
16568
16568
  } else {
16569
16569
  isShowCancel = props.showCancelButton && hasFocus;
16570
16570
  }
16571
16571
  return isShowCancel && React__default["default"].createElement("div", {
16572
- className: `${classPrefix$i}-suffix`,
16573
- onMouseDown: (e) => {
16574
- e.preventDefault();
16575
- },
16576
- onTouchStart: (e) => {
16577
- e.preventDefault();
16578
- }
16572
+ className: `${classPrefix$i}-suffix`
16579
16573
  }, React__default["default"].createElement(Button, {
16580
16574
  fill: "none",
16581
16575
  className: `${classPrefix$i}-cancel-button`,
@@ -16552,20 +16552,14 @@ const SearchBar = forwardRef((p2, ref) => {
16552
16552
  }
16553
16553
  }));
16554
16554
  const renderCancelButton = () => {
16555
- let isShowCancel = false;
16555
+ let isShowCancel;
16556
16556
  if (typeof props.showCancelButton === "function") {
16557
16557
  isShowCancel = props.showCancelButton(hasFocus, value);
16558
16558
  } else {
16559
16559
  isShowCancel = props.showCancelButton && hasFocus;
16560
16560
  }
16561
16561
  return isShowCancel && React$1.createElement("div", {
16562
- className: `${classPrefix$i}-suffix`,
16563
- onMouseDown: (e) => {
16564
- e.preventDefault();
16565
- },
16566
- onTouchStart: (e) => {
16567
- e.preventDefault();
16568
- }
16562
+ className: `${classPrefix$i}-suffix`
16569
16563
  }, React$1.createElement(Button, {
16570
16564
  fill: "none",
16571
16565
  className: `${classPrefix$i}-cancel-button`,
package/bundle/style.css CHANGED
@@ -757,6 +757,8 @@ div.adm-px-tester {
757
757
  --content-padding: 12px;
758
758
  --active-line-height: 2px;
759
759
  --active-line-border-radius: var(--active-line-height);
760
+ --active-line-color: var(--adm-color-primary);
761
+ --active-title-color: var(--adm-color-primary);
760
762
  position: relative;
761
763
  min-width: 0;
762
764
  }
@@ -792,7 +794,7 @@ div.adm-px-tester {
792
794
  cursor: pointer;
793
795
  }
794
796
  .adm-tabs-tab-active {
795
- color: var(--adm-color-primary);
797
+ color: var(--active-title-color);
796
798
  }
797
799
  .adm-tabs-tab-disabled {
798
800
  opacity: 0.5;
@@ -802,8 +804,7 @@ div.adm-px-tester {
802
804
  position: absolute;
803
805
  bottom: 0;
804
806
  height: var(--active-line-height);
805
- color: var(--adm-color-primary);
806
- background: var(--adm-color-primary);
807
+ background: var(--active-line-color);
807
808
  border-radius: var(--active-line-border-radius);
808
809
  }
809
810
  .adm-tabs-content {
@@ -1270,7 +1271,7 @@ a.adm-list-item:active:not(.adm-list-item-disabled)::after {
1270
1271
  .adm-dropdown-item .adm-dropdown-item-title-arrow {
1271
1272
  color: var(--adm-color-light);
1272
1273
  font-size: 9px;
1273
- transform: rotate(0deg) translateY(-1px);
1274
+ transform: rotate(0deg) translateY(1px);
1274
1275
  transition: all ease 0.2s;
1275
1276
  }
1276
1277
  .adm-dropdown-item .adm-dropdown-item-title-arrow-active {
@@ -1,4 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { Action } from './dialog-action-button';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
@@ -19,7 +20,7 @@ export declare type DialogProps = {
19
20
  getContainer?: GetContainer;
20
21
  bodyStyle?: React.CSSProperties;
21
22
  bodyClassName?: string;
22
- maskStyle?: React.CSSProperties;
23
+ maskStyle?: MaskProps['style'];
23
24
  maskClassName?: string;
24
25
  stopPropagation?: PropagationEvent[];
25
26
  disableBodyScroll?: boolean;
@@ -32,7 +32,7 @@
32
32
  .adm-dropdown-item .adm-dropdown-item-title-arrow {
33
33
  color: var(--adm-color-light);
34
34
  font-size: 9px;
35
- transform: rotate(0deg) translateY(-1px);
35
+ transform: rotate(0deg) translateY(1px);
36
36
  transition: all ease 0.2s;
37
37
  }
38
38
  .adm-dropdown-item .adm-dropdown-item-title-arrow-active {
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const busyImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const defaultImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const disconnectedImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const emptyImage: JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type ImageProps = {
4
- src: string;
4
+ src?: string;
5
5
  alt?: string;
6
6
  width?: number | string;
7
7
  height?: number | string;
@@ -1,4 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { Action } from './modal-action-button';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
@@ -19,7 +20,7 @@ export declare type ModalProps = {
19
20
  getContainer?: GetContainer;
20
21
  bodyStyle?: React.CSSProperties;
21
22
  bodyClassName?: string;
22
- maskStyle?: React.CSSProperties;
23
+ maskStyle?: MaskProps['style'];
23
24
  maskClassName?: string;
24
25
  stopPropagation?: PropagationEvent[];
25
26
  showCloseButton?: boolean;
@@ -1,5 +1,6 @@
1
1
  import React, { FC } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
+ import type { MaskProps } from '../mask';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
5
6
  export declare type PopupProps = {
@@ -15,7 +16,7 @@ export declare type PopupProps = {
15
16
  bodyClassName?: string;
16
17
  bodyStyle?: React.CSSProperties;
17
18
  maskClassName?: string;
18
- maskStyle?: React.CSSProperties;
19
+ maskStyle?: MaskProps['style'];
19
20
  onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
20
21
  stopPropagation?: PropagationEvent[];
21
22
  children?: React.ReactNode;
@@ -74,7 +74,7 @@ const SearchBar = (0, _react.forwardRef)((p, ref) => {
74
74
  }));
75
75
 
76
76
  const renderCancelButton = () => {
77
- let isShowCancel = false;
77
+ let isShowCancel;
78
78
 
79
79
  if (typeof props.showCancelButton === 'function') {
80
80
  isShowCancel = props.showCancelButton(hasFocus, value);
@@ -83,13 +83,7 @@ const SearchBar = (0, _react.forwardRef)((p, ref) => {
83
83
  }
84
84
 
85
85
  return isShowCancel && _react.default.createElement("div", {
86
- className: `${classPrefix}-suffix`,
87
- onMouseDown: e => {
88
- e.preventDefault();
89
- },
90
- onTouchStart: e => {
91
- e.preventDefault();
92
- }
86
+ className: `${classPrefix}-suffix`
93
87
  }, _react.default.createElement(_button.default, {
94
88
  fill: 'none',
95
89
  className: `${classPrefix}-cancel-button`,
@@ -3,6 +3,8 @@
3
3
  --content-padding: 12px;
4
4
  --active-line-height: 2px;
5
5
  --active-line-border-radius: var(--active-line-height);
6
+ --active-line-color: var(--adm-color-primary);
7
+ --active-title-color: var(--adm-color-primary);
6
8
  position: relative;
7
9
  min-width: 0;
8
10
  }
@@ -38,7 +40,7 @@
38
40
  cursor: pointer;
39
41
  }
40
42
  .adm-tabs-tab-active {
41
- color: var(--adm-color-primary);
43
+ color: var(--active-title-color);
42
44
  }
43
45
  .adm-tabs-tab-disabled {
44
46
  opacity: 0.5;
@@ -48,8 +50,7 @@
48
50
  position: absolute;
49
51
  bottom: 0;
50
52
  height: var(--active-line-height);
51
- color: var(--adm-color-primary);
52
- background: var(--adm-color-primary);
53
+ background: var(--active-line-color);
53
54
  border-radius: var(--active-line-border-radius);
54
55
  }
55
56
  .adm-tabs-content {
@@ -15,5 +15,5 @@ export declare type TabsProps = {
15
15
  stretch?: boolean;
16
16
  onChange?: (key: string) => void;
17
17
  children?: React.ReactNode;
18
- } & NativeProps<'--fixed-active-line-width' | '--active-line-height' | '--active-line-border-radius' | '--title-font-size' | '--content-padding'>;
18
+ } & NativeProps<'--fixed-active-line-width' | '--active-line-height' | '--active-line-border-radius' | '--title-font-size' | '--content-padding' | '--active-title-color' | '--active-line-color'>;
19
19
  export declare const Tabs: FC<TabsProps>;
@@ -1,9 +1,10 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { PropagationEvent } from '../../utils/with-stop-propagation';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  export interface ToastProps {
5
6
  afterClose?: () => void;
6
- maskStyle?: React.CSSProperties;
7
+ maskStyle?: MaskProps['style'];
7
8
  maskClassName?: string;
8
9
  maskClickable?: boolean;
9
10
  content?: ReactNode;
@@ -1,4 +1,5 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
+ import type { MaskProps } from '../mask';
2
3
  import { Action } from './dialog-action-button';
3
4
  import { GetContainer } from '../../utils/render-to-container';
4
5
  import { PropagationEvent } from '../../utils/with-stop-propagation';
@@ -19,7 +20,7 @@ export declare type DialogProps = {
19
20
  getContainer?: GetContainer;
20
21
  bodyStyle?: React.CSSProperties;
21
22
  bodyClassName?: string;
22
- maskStyle?: React.CSSProperties;
23
+ maskStyle?: MaskProps['style'];
23
24
  maskClassName?: string;
24
25
  stopPropagation?: PropagationEvent[];
25
26
  disableBodyScroll?: boolean;
@@ -32,7 +32,7 @@
32
32
  .adm-dropdown-item .adm-dropdown-item-title-arrow {
33
33
  color: var(--adm-color-light);
34
34
  font-size: 9px;
35
- transform: rotate(0deg) translateY(-1px);
35
+ transform: rotate(0deg) translateY(1px);
36
36
  transition: all ease 0.2s;
37
37
  }
38
38
  .adm-dropdown-item .adm-dropdown-item-title-arrow-active {
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const busyImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const defaultImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const disconnectedImage: JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const emptyImage: JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { NativeProps } from '../../utils/native-props';
3
3
  export declare type ImageProps = {
4
- src: string;
4
+ src?: string;
5
5
  alt?: string;
6
6
  width?: number | string;
7
7
  height?: number | string;