@aloudata/aloudata-design 0.4.0-beta.1 → 0.4.0-beta.11

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 (155) hide show
  1. package/es/Avatar/component/Avatar/index.d.ts +84 -0
  2. package/es/Avatar/component/Avatar/index.js +42 -0
  3. package/es/Avatar/index.d.ts +1 -13
  4. package/es/Avatar/index.js +1 -30
  5. package/es/Avatar/style/index.less +1 -1
  6. package/es/Breadcrumb/index.d.ts +5 -2
  7. package/es/Breadcrumb/index.js +17 -7
  8. package/es/Button/index.d.ts +1 -1
  9. package/es/Button/index.js +3 -8
  10. package/es/Button/style/index.less +6 -0
  11. package/es/Button/style/variables.less +26 -26
  12. package/es/Checkbox/component/CheckboxGroup/index.d.ts +4 -0
  13. package/es/Checkbox/component/CheckboxGroup/index.js +27 -0
  14. package/es/Checkbox/index.d.ts +4 -5
  15. package/es/Checkbox/index.js +3 -12
  16. package/es/Checkbox/style/index.less +36 -16
  17. package/es/Checkbox/type.d.ts +94 -0
  18. package/es/Checkbox/type.js +6 -0
  19. package/es/Divider/index.d.ts +40 -2
  20. package/es/Divider/index.js +10 -1
  21. package/es/Divider/style/index.less +4 -0
  22. package/es/Divider/style/index.less.d.ts +183 -0
  23. package/es/Dropdown/Button.d.ts +4 -4
  24. package/es/Dropdown/Button.js +5 -5
  25. package/es/Dropdown/index.d.ts +5 -5
  26. package/es/Dropdown/index.js +5 -5
  27. package/es/Icon/icons.d.ts +9 -0
  28. package/es/Icon/icons.js +1590 -0
  29. package/es/Input/components/Input/index.d.ts +13 -1
  30. package/es/Input/components/Input/index.js +1 -3
  31. package/es/Input/components/Password/index.d.ts +6 -1
  32. package/es/Input/components/Password/index.js +11 -3
  33. package/es/Input/components/TextArea/index.d.ts +1 -1
  34. package/es/Input/style/index.less +139 -59
  35. package/es/InputNumber/index.d.ts +3 -3
  36. package/es/InputNumber/style/index.less +66 -26
  37. package/es/InputNumber/type.d.ts +161 -0
  38. package/es/InputNumber/type.js +1 -0
  39. package/es/Menu/index.d.ts +2 -0
  40. package/es/Popconfirm/index.d.ts +90 -0
  41. package/es/Popconfirm/index.js +111 -0
  42. package/es/Popconfirm/style/index.d.ts +2 -0
  43. package/es/Popconfirm/style/index.js +2 -0
  44. package/es/Popconfirm/style/index.less +57 -0
  45. package/es/Progress/index.d.ts +3 -0
  46. package/es/Progress/index.js +2 -0
  47. package/es/Progress/style/index.d.ts +2 -0
  48. package/es/Progress/style/index.js +2 -0
  49. package/es/Progress/style/index.less +1 -0
  50. package/es/Select/style/variables.less.d.ts +6 -0
  51. package/es/Steps/style/index.less +10 -4
  52. package/es/Table/Table.js +87 -91
  53. package/es/Table/components/TableHead/index.d.ts +0 -1
  54. package/es/Table/components/TableHead/index.js +1 -2
  55. package/es/Table/interface.d.ts +2 -0
  56. package/es/Table/style/index.less +14 -5
  57. package/es/Table/style/variable.less +0 -5
  58. package/es/Table/style/variable.less.d.ts +1 -1
  59. package/es/Table/utils.js +16 -9
  60. package/es/Tabs/index.d.ts +21 -6
  61. package/es/Tabs/index.js +3 -5
  62. package/es/Tabs/style/index.less +1 -1
  63. package/es/Tooltip/index.d.ts +2 -2
  64. package/es/Tooltip/index.js +4 -4
  65. package/es/index.d.ts +7 -3
  66. package/es/index.js +3 -1
  67. package/es/style/themes/default/scrollBar.less +10 -7
  68. package/es/style/themes/default/themeColor.module.less +176 -166
  69. package/es/style/themes/default/themeColor.module.less.d.ts +6 -0
  70. package/lib/Avatar/component/Avatar/index.d.ts +84 -0
  71. package/lib/Avatar/component/Avatar/index.js +61 -0
  72. package/lib/Avatar/index.d.ts +1 -13
  73. package/lib/Avatar/index.js +3 -44
  74. package/lib/Avatar/style/index.less +1 -1
  75. package/lib/Breadcrumb/index.d.ts +5 -2
  76. package/lib/Breadcrumb/index.js +17 -8
  77. package/lib/Button/index.d.ts +1 -1
  78. package/lib/Button/index.js +3 -8
  79. package/lib/Button/style/index.less +6 -0
  80. package/lib/Button/style/variables.less +26 -26
  81. package/lib/Checkbox/component/CheckboxGroup/index.d.ts +4 -0
  82. package/lib/Checkbox/component/CheckboxGroup/index.js +42 -0
  83. package/lib/Checkbox/index.d.ts +4 -5
  84. package/lib/Checkbox/index.js +4 -13
  85. package/lib/Checkbox/style/index.less +36 -16
  86. package/lib/Checkbox/type.d.ts +94 -0
  87. package/lib/Checkbox/type.js +13 -0
  88. package/lib/Divider/index.d.ts +40 -2
  89. package/lib/Divider/index.js +11 -1
  90. package/lib/Divider/style/index.less +4 -0
  91. package/lib/Divider/style/index.less.d.ts +183 -0
  92. package/lib/Dropdown/Button.d.ts +4 -4
  93. package/lib/Dropdown/Button.js +5 -5
  94. package/lib/Dropdown/index.d.ts +5 -5
  95. package/lib/Dropdown/index.js +5 -5
  96. package/lib/Icon/icons.d.ts +9 -0
  97. package/lib/Icon/icons.js +1597 -0
  98. package/lib/Input/components/Input/index.d.ts +13 -1
  99. package/lib/Input/components/Input/index.js +1 -3
  100. package/lib/Input/components/Password/index.d.ts +6 -1
  101. package/lib/Input/components/Password/index.js +14 -4
  102. package/lib/Input/components/TextArea/index.d.ts +1 -1
  103. package/lib/Input/style/index.less +139 -59
  104. package/lib/InputNumber/index.d.ts +3 -3
  105. package/lib/InputNumber/style/index.less +66 -26
  106. package/lib/InputNumber/type.d.ts +161 -0
  107. package/lib/InputNumber/type.js +5 -0
  108. package/lib/Menu/index.d.ts +2 -0
  109. package/lib/Popconfirm/index.d.ts +90 -0
  110. package/lib/Popconfirm/index.js +127 -0
  111. package/lib/Popconfirm/style/index.d.ts +2 -0
  112. package/lib/Popconfirm/style/index.js +5 -0
  113. package/lib/Popconfirm/style/index.less +57 -0
  114. package/lib/Progress/index.d.ts +3 -0
  115. package/lib/Progress/index.js +13 -0
  116. package/lib/Progress/style/index.d.ts +2 -0
  117. package/lib/Progress/style/index.js +5 -0
  118. package/lib/Progress/style/index.less +1 -0
  119. package/lib/Select/style/variables.less.d.ts +6 -0
  120. package/lib/Steps/style/index.less +10 -4
  121. package/lib/Table/Table.js +90 -96
  122. package/lib/Table/components/TableHead/index.d.ts +0 -1
  123. package/lib/Table/components/TableHead/index.js +1 -2
  124. package/lib/Table/interface.d.ts +2 -0
  125. package/lib/Table/style/index.less +14 -5
  126. package/lib/Table/style/variable.less +0 -5
  127. package/lib/Table/style/variable.less.d.ts +1 -1
  128. package/lib/Table/utils.js +16 -9
  129. package/lib/Tabs/index.d.ts +21 -6
  130. package/lib/Tabs/index.js +3 -7
  131. package/lib/Tabs/style/index.less +1 -1
  132. package/lib/Tooltip/index.d.ts +2 -2
  133. package/lib/Tooltip/index.js +4 -4
  134. package/lib/index.d.ts +7 -3
  135. package/lib/index.js +16 -0
  136. package/lib/style/themes/default/scrollBar.less +10 -7
  137. package/lib/style/themes/default/themeColor.module.less +176 -166
  138. package/lib/style/themes/default/themeColor.module.less.d.ts +6 -0
  139. package/package.json +4 -3
  140. package/es/Icon/icons.json +0 -418
  141. package/es/Table/hooks/useFrame.d.ts +0 -7
  142. package/es/Table/hooks/useFrame.js +0 -90
  143. package/es/Table/hooks/useTableColumn.d.ts +0 -28
  144. package/es/Table/hooks/useTableColumn.js +0 -53
  145. package/es/Table/style/index.less.d.ts +0 -126
  146. package/es/Tabs/TabPane.d.ts +0 -21
  147. package/es/Tabs/TabPane.js +0 -6
  148. package/lib/Icon/icons.json +0 -418
  149. package/lib/Table/hooks/useFrame.d.ts +0 -7
  150. package/lib/Table/hooks/useFrame.js +0 -98
  151. package/lib/Table/hooks/useTableColumn.d.ts +0 -28
  152. package/lib/Table/hooks/useTableColumn.js +0 -66
  153. package/lib/Table/style/index.less.d.ts +0 -126
  154. package/lib/Tabs/TabPane.d.ts +0 -21
  155. package/lib/Tabs/TabPane.js +0 -18
@@ -0,0 +1,161 @@
1
+ /// <reference types="react" />
2
+ import { InputNumberProps } from 'antd';
3
+ export interface IInputNumberProps extends InputNumberProps {
4
+ /**
5
+ * @description 带标签的Input,设置后置标签
6
+ * @type ReactNode
7
+ * @default --
8
+ */
9
+ addonBefore?: React.ReactNode;
10
+ /**
11
+ * @description 带标签的Input,设置前置标签
12
+ * @type ReactNode
13
+ * @default --
14
+ */
15
+ addonAfter?: React.ReactNode;
16
+ /**
17
+ * @description 自动获取焦点
18
+ * @type boolean
19
+ * @default false
20
+ */
21
+ autoFocus?: boolean;
22
+ /**
23
+ * @description 是否有边框
24
+ * @type boolean
25
+ * @default true
26
+ */
27
+ bordered?: boolean;
28
+ /**
29
+ * @description 是否显示增减按钮,也可以设置自定义箭头图标
30
+ * @type boolean
31
+ | {
32
+ upIcon?: React.ReactNode;
33
+ downIcon?: React.ReactNode;
34
+ };
35
+ * @default -
36
+ */
37
+ controls?: boolean | {
38
+ upIcon?: React.ReactNode;
39
+ downIcon?: React.ReactNode;
40
+ };
41
+ /**
42
+ * @description 小数点
43
+ * @type string
44
+ * @default -
45
+ */
46
+ decimalSeparator?: string;
47
+ /**
48
+ * @description 初始值
49
+ * @type number
50
+ * @default -
51
+ */
52
+ defaultValue?: number;
53
+ /**
54
+ * @description 禁用
55
+ * @type boolean
56
+ * @default false
57
+ */
58
+ disabled?: boolean;
59
+ /**
60
+ * @description 制定输入框展示值的格式
61
+ * @type (value: number | string | undefined, info: { userTyping: boolean; input: string }) => string
62
+ * @default -
63
+ */
64
+ formatter?: (value: number | string | undefined, info: {
65
+ userTyping: boolean;
66
+ input: string;
67
+ }) => string;
68
+ /**
69
+ * @description 是否启用键盘快捷行为
70
+ * @type boolean
71
+ * @default true
72
+ */
73
+ keyboard?: boolean;
74
+ /**
75
+ * @description 最大值
76
+ * @type number
77
+ * @default Number.MAX_SAFE_INTEGER
78
+ */
79
+ max?: number;
80
+ /**
81
+ * @description 最小值
82
+ * @type number
83
+ * @default Number.MIN_SAFE_INTEGER
84
+ */
85
+ min?: number;
86
+ /**
87
+ * @description 指定从 formatter 里转换回数字的方式,和 formatter 搭配使用
88
+ * @type (value: string) => number
89
+ * @default -
90
+ */
91
+ parser?: (value: string | undefined) => number;
92
+ /**
93
+ * @description 数值精度,配置 formatter 时会以 formatter 为准
94
+ * @type number
95
+ * @default -
96
+ */
97
+ precision?: number;
98
+ /**
99
+ * @description 只读
100
+ * @type boolean
101
+ * @default false
102
+ */
103
+ readonly?: boolean;
104
+ /**
105
+ * @description 设置校验状态
106
+ * @type 'warning' | 'error'
107
+ * @default -
108
+ */
109
+ status?: 'warning' | 'error';
110
+ /**
111
+ * @description 带有前缀图标的input
112
+ * @type ReactNode
113
+ * @default -
114
+ */
115
+ prefix?: React.ReactNode;
116
+ /**
117
+ * @description 输入框大小
118
+ * @type 'small' | 'middle' | 'large'
119
+ * @default -
120
+ */
121
+ size?: 'small' | 'middle' | 'large';
122
+ /**
123
+ * @description 每次改变步数,可以为小数
124
+ * @type number | string
125
+ * @default 1
126
+ */
127
+ step?: number | string;
128
+ /**
129
+ * @description 字符值模式,开启后支持高精度小数。同时 onChange 将返回 string 类型
130
+ * @type boolean
131
+ * @default false
132
+ */
133
+ stringMode?: boolean;
134
+ /**
135
+ * @description 当前值
136
+ * @type number
137
+ * @default -
138
+ */
139
+ value?: number;
140
+ /**
141
+ * @description 变化回调
142
+ * @type (value: number | string | null) => void
143
+ * @default -
144
+ */
145
+ onChange?: (value: number | string | null) => void;
146
+ /**
147
+ * @description 按下回车的回调
148
+ * @type (e: React.KeyboardEvent) => void
149
+ * @default -
150
+ */
151
+ onPressEnter?: (e: React.KeyboardEvent) => void;
152
+ /**
153
+ * @description 点击上下箭头的回调
154
+ * @type (value: number|string, info: { offset: number|string, type: 'up' | 'down' }) => void
155
+ * @default -
156
+ */
157
+ onStep?: (value: number | string, info: {
158
+ offset: number | string;
159
+ type: 'up' | 'down';
160
+ }) => void;
161
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { MenuProps } from 'antd';
3
+ import { ItemType as antdItemType } from 'antd/lib/menu/hooks/useItems';
3
4
  import MenuItem from './MenuItem';
4
5
  import type { MenuClickEventHandler } from 'rc-menu/lib/interface';
5
6
  export interface IMenuProps extends MenuProps {
@@ -12,6 +13,7 @@ export interface IMenuProps extends MenuProps {
12
13
  className?: string;
13
14
  children?: React.ReactNode | React.ReactNode[];
14
15
  }
16
+ export declare type ItemType = antdItemType;
15
17
  declare function Menu(props: IMenuProps): JSX.Element;
16
18
  declare namespace Menu {
17
19
  var Item: typeof MenuItem;
@@ -0,0 +1,90 @@
1
+ import type { AbstractTooltipProps, RenderFunction } from 'antd/lib/tooltip';
2
+ import React from 'react';
3
+ import { ButtonType, IButtonProps } from '../Button';
4
+ import './style/index.less';
5
+ export interface IPopconfirmProps extends AbstractTooltipProps {
6
+ /**
7
+ * @description 确认框的描述
8
+ * @type string | RenderFunction
9
+ * @default -
10
+ */
11
+ title: string | RenderFunction;
12
+ /**
13
+ * @description 点击确认的回调
14
+ * @type (e?: React.MouseEvent<HTMLElement>) => void
15
+ * @default -
16
+ */
17
+ onConfirm?: (e?: React.MouseEvent<HTMLElement>) => void;
18
+ /**
19
+ * @description 点击取消的回调
20
+ * @type (e?: React.MouseEvent<HTMLElement>) => void
21
+ * @default -
22
+ */
23
+ onCancel?: (e?: React.MouseEvent<HTMLElement>) => void;
24
+ /**
25
+ * @description 确认按钮文字
26
+ * @type ReactNode
27
+ * @default 确认
28
+ */
29
+ okText?: React.ReactNode;
30
+ /**
31
+ * @description 确认按钮类型
32
+ * @type string
33
+ * @default primary
34
+ */
35
+ okType?: ButtonType;
36
+ /**
37
+ * @description 取消按钮文字
38
+ * @type ReactNode
39
+ * @default 取消
40
+ */
41
+ cancelText?: React.ReactNode;
42
+ /**
43
+ * @description 取消按钮类型
44
+ * @type string
45
+ * @default text
46
+ */
47
+ cancelType?: ButtonType;
48
+ /**
49
+ * @description ok按钮props
50
+ * @type IButtonProps
51
+ * @default -
52
+ */
53
+ okButtonProps?: IButtonProps;
54
+ /**
55
+ * @description cancel按钮props
56
+ * @type IButtonProps
57
+ * @default -
58
+ */
59
+ cancelButtonProps?: IButtonProps;
60
+ /**
61
+ * @description 是否显示取消按钮
62
+ * @type boolean
63
+ * @default true
64
+ */
65
+ showCancel?: boolean;
66
+ /**
67
+ * @description 自定义弹出气泡的icon图标
68
+ * @type ReactNode
69
+ * @default -
70
+ */
71
+ icon?: React.ReactNode;
72
+ /**
73
+ * @description 当确认框状态改变时
74
+ * @type (
75
+ open: boolean,
76
+ e?: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLDivElement>,
77
+ ) => void;
78
+ * @default -
79
+ */
80
+ onOpenChange?: (open: boolean, e?: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLDivElement>) => void;
81
+ /**
82
+ * @description 自定义底部按钮
83
+ * @type ReactNode
84
+ * @default -
85
+ */
86
+ footer?: React.ReactNode;
87
+ children?: React.ReactNode;
88
+ }
89
+ declare const Popconfirm: ({ title, icon, okText, okType, cancelText, cancelType, okButtonProps, cancelButtonProps, showCancel, children, footer, ...props }: IPopconfirmProps) => JSX.Element;
90
+ export default Popconfirm;
@@ -0,0 +1,111 @@
1
+ import "antd/es/popover/style";
2
+ import _Popover from "antd/es/popover";
3
+ var _excluded = ["title", "icon", "okText", "okType", "cancelText", "cancelType", "okButtonProps", "cancelButtonProps", "showCancel", "children", "footer"];
4
+
5
+ var _this = this;
6
+
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+
9
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
14
+
15
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16
+
17
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
+
19
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
20
+
21
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22
+
23
+ import useMergedState from 'rc-util/lib/hooks/useMergedState';
24
+ import React from 'react';
25
+ import Button from '../Button';
26
+ import './style/index.less';
27
+
28
+ var Popconfirm = function Popconfirm(_ref) {
29
+ var title = _ref.title,
30
+ icon = _ref.icon,
31
+ _ref$okText = _ref.okText,
32
+ okText = _ref$okText === void 0 ? '确认' : _ref$okText,
33
+ _ref$okType = _ref.okType,
34
+ okType = _ref$okType === void 0 ? 'primary' : _ref$okType,
35
+ _ref$cancelText = _ref.cancelText,
36
+ cancelText = _ref$cancelText === void 0 ? '取消' : _ref$cancelText,
37
+ _ref$cancelType = _ref.cancelType,
38
+ cancelType = _ref$cancelType === void 0 ? 'text' : _ref$cancelType,
39
+ okButtonProps = _ref.okButtonProps,
40
+ cancelButtonProps = _ref.cancelButtonProps,
41
+ _ref$showCancel = _ref.showCancel,
42
+ showCancel = _ref$showCancel === void 0 ? true : _ref$showCancel,
43
+ children = _ref.children,
44
+ footer = _ref.footer,
45
+ props = _objectWithoutProperties(_ref, _excluded);
46
+
47
+ var _useMergedState = useMergedState(false, {
48
+ value: props.open,
49
+ defaultValue: props.defaultOpen
50
+ }),
51
+ _useMergedState2 = _slicedToArray(_useMergedState, 2),
52
+ open = _useMergedState2[0],
53
+ setOpen = _useMergedState2[1];
54
+
55
+ var settingOpen = function settingOpen(value, e) {
56
+ var _props$onOpenChange;
57
+
58
+ setOpen(value, true);
59
+ (_props$onOpenChange = props.onOpenChange) === null || _props$onOpenChange === void 0 ? void 0 : _props$onOpenChange.call(props, value, e);
60
+ };
61
+
62
+ var onConfirm = function onConfirm(e) {
63
+ var _props$onConfirm;
64
+
65
+ settingOpen(false, e);
66
+ (_props$onConfirm = props.onConfirm) === null || _props$onConfirm === void 0 ? void 0 : _props$onConfirm.call(_this, e);
67
+ };
68
+
69
+ var onCancel = function onCancel(e) {
70
+ var _props$onCancel;
71
+
72
+ settingOpen(false, e);
73
+ (_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 ? void 0 : _props$onCancel.call(_this, e);
74
+ };
75
+
76
+ var onOpenChange = function onOpenChange(value) {
77
+ settingOpen(value);
78
+ };
79
+
80
+ var content = /*#__PURE__*/React.createElement("div", {
81
+ className: "content"
82
+ }, /*#__PURE__*/React.createElement("div", {
83
+ className: "contentTitle"
84
+ }, icon && /*#__PURE__*/React.createElement("span", {
85
+ className: "icon"
86
+ }, icon), /*#__PURE__*/React.createElement("p", {
87
+ className: "desc"
88
+ }, typeof title === 'function' ? title() : title)), /*#__PURE__*/React.createElement("div", {
89
+ className: "contentFooter"
90
+ }, footer || /*#__PURE__*/React.createElement(React.Fragment, null, showCancel && /*#__PURE__*/React.createElement(Button, Object.assign({
91
+ type: cancelType
92
+ }, cancelButtonProps, {
93
+ onClick: onCancel
94
+ }), cancelText), /*#__PURE__*/React.createElement(Button, Object.assign({
95
+ type: okType
96
+ }, okButtonProps, {
97
+ onClick: onConfirm
98
+ }), okText))));
99
+ return /*#__PURE__*/React.createElement(_Popover, Object.assign({
100
+ content: content,
101
+ open: open,
102
+ onVisibleChange: onOpenChange,
103
+ trigger: ['click']
104
+ }, props), /*#__PURE__*/React.createElement("span", {
105
+ onClick: function onClick() {
106
+ setOpen(!open);
107
+ }
108
+ }, children));
109
+ };
110
+
111
+ export default Popconfirm;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,57 @@
1
+ @import '../../style/index.less';
2
+
3
+ .content {
4
+ width: 320px;
5
+ max-height: 152px;
6
+ overflow: auto;
7
+ border-radius: @border-radius-base;
8
+
9
+ .contentTitle {
10
+ display: flex;
11
+ flex: none;
12
+ flex-direction: row;
13
+ flex-grow: 0;
14
+ gap: 4px;
15
+ align-items: flex-start;
16
+ align-self: stretch;
17
+ order: 0;
18
+ width: 300px;
19
+ padding: 16px;
20
+ line-height: 20px;
21
+
22
+ .icon {
23
+ flex: 0 0 20px;
24
+ }
25
+
26
+ .desc {
27
+ flex: 1;
28
+ align-items: center;
29
+ width: 244px;
30
+ color: @NL40;
31
+ font-weight: 400;
32
+ font-size: 14px;
33
+ line-height: 20px;
34
+ word-wrap: break-word;
35
+ }
36
+ }
37
+
38
+ .contentFooter {
39
+ display: flex;
40
+ flex: none;
41
+ flex-grow: 0;
42
+ gap: 12px;
43
+ align-items: center;
44
+ align-self: stretch;
45
+ justify-content: flex-end;
46
+ order: 1;
47
+ width: 300px;
48
+ height: 60px;
49
+ padding: 16px;
50
+ background: @BG100;
51
+ }
52
+ }
53
+
54
+ .ant-popover-inner {
55
+ border-radius: @border-radius-base;
56
+ box-shadow: @shadow-lg;
57
+ }
@@ -0,0 +1,3 @@
1
+ import Progress, { ProgressProps } from 'antd/es/progress';
2
+ export { ProgressProps };
3
+ export default Progress;
@@ -0,0 +1,2 @@
1
+ import Progress from 'antd/es/progress';
2
+ export default Progress;
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1,2 @@
1
+ import '../../style';
2
+ import './index.less';
@@ -0,0 +1 @@
1
+ @import '../../style/index.less';
@@ -90,7 +90,13 @@ interface CssExports {
90
90
  'SELECTOR_PADDING_HORIZONTAL_MIDDLE': string;
91
91
  'SELECTOR_PADDING_HORIZONTAL_MINI': string;
92
92
  'SELECTOR_PADDING_HORIZONTAL_SMALL': string;
93
+ 'SHADOW_BODY_TOP_LEFT': string;
93
94
  'SHADOW_L': string;
95
+ 'SHADOW_LG': string;
96
+ 'SHADOW_MD': string;
97
+ 'SHADOW_SM': string;
98
+ 'SHADOW_XL': string;
99
+ 'SHADOW_XS': string;
94
100
  'TA10': string;
95
101
  'TA20': string;
96
102
  'TA30': string;
@@ -1,9 +1,7 @@
1
1
  @import '../../style/index.less';
2
2
 
3
- .ant-steps-item-icon {
4
- width: 24px;
5
- height: 24px;
6
- margin: 6px 8px -2px 0;
3
+ .ald-steps .ant-steps-item .ant-steps-item-container .ant-steps-item-icon {
4
+ margin: 6px 8px -2px 42px;
7
5
  font-size: 12px;
8
6
  line-height: 24px;
9
7
  text-align: center;
@@ -15,6 +13,10 @@
15
13
  .ant-steps.ald-steps {
16
14
  padding: 24px;
17
15
 
16
+ .ant-steps-item-container {
17
+ height: 49px;
18
+ }
19
+
18
20
  .ant-steps-item-content {
19
21
  display: flex;
20
22
  flex-direction: column;
@@ -34,12 +36,16 @@
34
36
  // 常规step
35
37
  .ant-steps-item {
36
38
  .ant-steps-item-tail {
39
+ display: flex;
40
+ align-items: flex-start;
41
+ height: 30px;
37
42
  margin-left: 50px;
38
43
  padding: 3.5px 7px;
39
44
 
40
45
  &::after {
41
46
  height: 2px;
42
47
  background-color: @NL90;
48
+ content: '';
43
49
  }
44
50
  }
45
51