@pisell/materials 1.0.476 → 1.0.477
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +13 -13
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +13 -13
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/Input.Phone/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +5 -5
- package/es/components/walletCard/index.js +7 -5
- package/es/components/walletCard/index.less +39 -0
- package/es/locales/en-US.d.ts +2 -0
- package/es/locales/en-US.js +4 -1
- package/es/locales/zh-CN.d.ts +2 -0
- package/es/locales/zh-CN.js +4 -1
- package/es/locales/zh-TW.d.ts +2 -0
- package/es/locales/zh-TW.js +4 -1
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/fields/Input.Phone/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +5 -5
- package/lib/components/walletCard/index.js +6 -4
- package/lib/components/walletCard/index.less +39 -0
- package/lib/locales/en-US.d.ts +2 -0
- package/lib/locales/en-US.js +4 -1
- package/lib/locales/zh-CN.d.ts +2 -0
- package/lib/locales/zh-CN.js +4 -1
- package/lib/locales/zh-TW.d.ts +2 -0
- package/lib/locales/zh-TW.js +4 -1
- package/package.json +3 -3
|
@@ -16,7 +16,7 @@ interface UseTablePropsProps {
|
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
18
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
19
|
-
title: number | boolean | React.
|
|
19
|
+
title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
20
20
|
pagination: {
|
|
21
21
|
total: number;
|
|
22
22
|
current: number;
|
|
@@ -25,7 +25,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
25
25
|
showSizeChanger: boolean;
|
|
26
26
|
};
|
|
27
27
|
columns: import("./useColumns").Column[];
|
|
28
|
-
subTitle: number | boolean | React.
|
|
28
|
+
subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
29
29
|
buttons: any[] | null;
|
|
30
30
|
filter: React.JSX.Element | null;
|
|
31
31
|
onRow: (record: any) => any;
|
|
@@ -40,7 +40,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
40
40
|
width: number;
|
|
41
41
|
align: "center" | "left" | "right";
|
|
42
42
|
fixed: false | "left" | "right";
|
|
43
|
-
type: "
|
|
43
|
+
type: "link" | "button";
|
|
44
44
|
items: OperationItem[];
|
|
45
45
|
} | undefined;
|
|
46
46
|
operationContent?: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const Phone: React.FC<import("
|
|
2
|
+
declare const Phone: React.FC<import("./WithMode").PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
|
|
3
3
|
export default Phone;
|
|
@@ -5,7 +5,7 @@ declare const formFieldMap: {
|
|
|
5
5
|
} & {
|
|
6
6
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
7
7
|
};
|
|
8
|
-
ColorPicker: import("react").FC<import("
|
|
8
|
+
ColorPicker: import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
9
9
|
DatePicker: import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
10
10
|
Input: import("react").FC<import("./Input/type").InputProps> & {
|
|
11
11
|
JSON: import("react").FC<any>;
|
|
@@ -13,7 +13,7 @@ declare const formFieldMap: {
|
|
|
13
13
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
14
14
|
URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
15
15
|
Email: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
16
|
-
Phone: import("react").FC<import("
|
|
16
|
+
Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
17
17
|
};
|
|
18
18
|
Radio: import("react").FC<{}> & {
|
|
19
19
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -38,17 +38,17 @@ declare const formFieldMap: {
|
|
|
38
38
|
'Checkbox.Group': import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
39
39
|
DateRangePicker: import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
40
40
|
};
|
|
41
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
41
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
|
|
42
42
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
43
43
|
} & {
|
|
44
44
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
45
|
-
}) | import("react").FC<import("
|
|
45
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
46
46
|
JSON: import("react").FC<any>;
|
|
47
47
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
48
48
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
49
49
|
URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
50
50
|
Email: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
51
|
-
Phone: import("react").FC<import("
|
|
51
|
+
Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
52
52
|
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
53
53
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
54
54
|
} & {
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
|
-
import { Card, Flex, QRCode } from 'antd';
|
|
8
|
+
import { Card, Flex, QRCode, Divider, Button } from 'antd';
|
|
9
9
|
import cfg from "./../../../../../application/admin/src/configs";
|
|
10
10
|
import Iconfont from "./../iconfont";
|
|
11
11
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
@@ -13,7 +13,9 @@ import Barcode from 'react-barcode';
|
|
|
13
13
|
import { image } from '@pisell/utils';
|
|
14
14
|
import Amount from "./../pisellText/components/Amount";
|
|
15
15
|
import "./index.less";
|
|
16
|
+
import PisellModal from "./../pisellModal";
|
|
16
17
|
import classNames from 'classnames';
|
|
18
|
+
import { getText } from "../../locales/index";
|
|
17
19
|
var WalletCard = function WalletCard(props) {
|
|
18
20
|
var _context$appHelper;
|
|
19
21
|
var _props$mode = props.mode,
|
|
@@ -83,7 +85,7 @@ var WalletCard = function WalletCard(props) {
|
|
|
83
85
|
}));
|
|
84
86
|
};
|
|
85
87
|
var modalProps = {
|
|
86
|
-
title: '
|
|
88
|
+
title: getText('walletCard-qrcode'),
|
|
87
89
|
platform: platform,
|
|
88
90
|
onCancel: function onCancel() {
|
|
89
91
|
return setIsModalOpen(false);
|
|
@@ -164,17 +166,17 @@ var WalletCard = function WalletCard(props) {
|
|
|
164
166
|
className: classNames('pisell-wallet-card-showCode')
|
|
165
167
|
}, codeRender()))), /*#__PURE__*/React.createElement(PisellModal, modalProps, /*#__PURE__*/React.createElement(QRCode, {
|
|
166
168
|
size: 200,
|
|
167
|
-
value:
|
|
169
|
+
value: cardNo,
|
|
168
170
|
style: {
|
|
169
171
|
marginTop: 24
|
|
170
172
|
}
|
|
171
173
|
}), /*#__PURE__*/React.createElement("p", {
|
|
172
174
|
className: classNames('pisell-qrcode-modal-value')
|
|
173
|
-
},
|
|
175
|
+
}, cardNo), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Button, {
|
|
174
176
|
onClick: function onClick() {
|
|
175
177
|
return setIsModalOpen(false);
|
|
176
178
|
},
|
|
177
179
|
className: classNames('pisell-qrcode-modal-button')
|
|
178
|
-
},
|
|
180
|
+
}, getText('walletCard-done'))));
|
|
179
181
|
};
|
|
180
182
|
export default WalletCard;
|
|
@@ -93,4 +93,43 @@
|
|
|
93
93
|
background-color: #fff;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
|
|
97
|
+
.pisell-qrcode-modal {
|
|
98
|
+
.pisell-lowcode-modal-content {
|
|
99
|
+
padding: 0;
|
|
100
|
+
.pisell-lowcode-modal-body {
|
|
101
|
+
display: flex;
|
|
102
|
+
width: 100%;
|
|
103
|
+
align-items: center;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
.pisell-qrcode-modal-value {
|
|
106
|
+
color: var(--Gray-500, #667085);
|
|
107
|
+
font-family: Inter;
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
font-style: normal;
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
line-height: 20px;
|
|
112
|
+
margin: 20px 0 24px;
|
|
113
|
+
}
|
|
114
|
+
.pisell-lowcode-divider {
|
|
115
|
+
margin: 0;
|
|
116
|
+
}
|
|
117
|
+
.pisell-qrcode-modal-button {
|
|
118
|
+
margin: 24px;
|
|
119
|
+
|
|
120
|
+
color: var(--Base-White, #fff);
|
|
121
|
+
|
|
122
|
+
font-family: Inter;
|
|
123
|
+
font-size: 16px;
|
|
124
|
+
font-style: normal;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
line-height: 24px;
|
|
127
|
+
|
|
128
|
+
width: calc(100% - 48px);
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
background-color: var(--theme-color, #7f56d9);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
96
135
|
}
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -144,5 +144,7 @@ declare const _default: {
|
|
|
144
144
|
'pisell-number-format-thousand': string;
|
|
145
145
|
'pisell-number-format-million': string;
|
|
146
146
|
'pisell-number-format-billion': string;
|
|
147
|
+
'walletCard-done': string;
|
|
148
|
+
'walletCard-qrcode': string;
|
|
147
149
|
};
|
|
148
150
|
export default _default;
|
package/es/locales/en-US.js
CHANGED
|
@@ -181,5 +181,8 @@ export default {
|
|
|
181
181
|
// Number formatting
|
|
182
182
|
'pisell-number-format-thousand': 'K',
|
|
183
183
|
'pisell-number-format-million': 'M',
|
|
184
|
-
'pisell-number-format-billion': 'B'
|
|
184
|
+
'pisell-number-format-billion': 'B',
|
|
185
|
+
//walletCard 组件
|
|
186
|
+
'walletCard-done': 'Done',
|
|
187
|
+
'walletCard-qrcode': 'QR code'
|
|
185
188
|
};
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -144,5 +144,7 @@ declare const _default: {
|
|
|
144
144
|
'pisell-number-format-thousand': string;
|
|
145
145
|
'pisell-number-format-million': string;
|
|
146
146
|
'pisell-number-format-billion': string;
|
|
147
|
+
'walletCard-done': string;
|
|
148
|
+
'walletCard-qrcode': string;
|
|
147
149
|
};
|
|
148
150
|
export default _default;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -180,5 +180,8 @@ export default {
|
|
|
180
180
|
// 数字格式化
|
|
181
181
|
'pisell-number-format-thousand': '千',
|
|
182
182
|
'pisell-number-format-million': '百万',
|
|
183
|
-
'pisell-number-format-billion': '十亿'
|
|
183
|
+
'pisell-number-format-billion': '十亿',
|
|
184
|
+
//walletCard 组件
|
|
185
|
+
'walletCard-done': '完成',
|
|
186
|
+
'walletCard-qrcode': '二维码'
|
|
184
187
|
};
|
package/es/locales/zh-TW.d.ts
CHANGED
|
@@ -144,5 +144,7 @@ declare const _default: {
|
|
|
144
144
|
'pisell-number-format-thousand': string;
|
|
145
145
|
'pisell-number-format-million': string;
|
|
146
146
|
'pisell-number-format-billion': string;
|
|
147
|
+
'walletCard-done': string;
|
|
148
|
+
'walletCard-qrcode': string;
|
|
147
149
|
};
|
|
148
150
|
export default _default;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -181,5 +181,8 @@ export default {
|
|
|
181
181
|
// 數字格式化
|
|
182
182
|
'pisell-number-format-thousand': '千',
|
|
183
183
|
'pisell-number-format-million': '百萬',
|
|
184
|
-
'pisell-number-format-billion': '十億'
|
|
184
|
+
'pisell-number-format-billion': '十億',
|
|
185
|
+
//walletCard 组件
|
|
186
|
+
'walletCard-done': '完成',
|
|
187
|
+
'walletCard-qrcode': '二維碼'
|
|
185
188
|
};
|
|
@@ -16,7 +16,7 @@ interface UseTablePropsProps {
|
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
18
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
19
|
-
title: number | boolean | React.
|
|
19
|
+
title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
20
20
|
pagination: {
|
|
21
21
|
total: number;
|
|
22
22
|
current: number;
|
|
@@ -25,7 +25,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
25
25
|
showSizeChanger: boolean;
|
|
26
26
|
};
|
|
27
27
|
columns: import("./useColumns").Column[];
|
|
28
|
-
subTitle: number | boolean | React.
|
|
28
|
+
subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
29
29
|
buttons: any[] | null;
|
|
30
30
|
filter: React.JSX.Element | null;
|
|
31
31
|
onRow: (record: any) => any;
|
|
@@ -40,7 +40,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
40
40
|
width: number;
|
|
41
41
|
align: "center" | "left" | "right";
|
|
42
42
|
fixed: false | "left" | "right";
|
|
43
|
-
type: "
|
|
43
|
+
type: "link" | "button";
|
|
44
44
|
items: OperationItem[];
|
|
45
45
|
} | undefined;
|
|
46
46
|
operationContent?: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const Phone: React.FC<import("
|
|
2
|
+
declare const Phone: React.FC<import("./WithMode").PhoneInputProps & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
|
|
3
3
|
export default Phone;
|
|
@@ -5,7 +5,7 @@ declare const formFieldMap: {
|
|
|
5
5
|
} & {
|
|
6
6
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
7
7
|
};
|
|
8
|
-
ColorPicker: import("react").FC<import("
|
|
8
|
+
ColorPicker: import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
9
9
|
DatePicker: import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
10
10
|
Input: import("react").FC<import("./Input/type").InputProps> & {
|
|
11
11
|
JSON: import("react").FC<any>;
|
|
@@ -13,7 +13,7 @@ declare const formFieldMap: {
|
|
|
13
13
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
14
14
|
URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
15
15
|
Email: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
16
|
-
Phone: import("react").FC<import("
|
|
16
|
+
Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
17
17
|
};
|
|
18
18
|
Radio: import("react").FC<{}> & {
|
|
19
19
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -38,17 +38,17 @@ declare const formFieldMap: {
|
|
|
38
38
|
'Checkbox.Group': import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
39
39
|
DateRangePicker: import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
40
40
|
};
|
|
41
|
-
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
41
|
+
declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<any> | (import("react").FC<{}> & {
|
|
42
42
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
43
43
|
} & {
|
|
44
44
|
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
45
|
-
}) | import("react").FC<import("
|
|
45
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
46
46
|
JSON: import("react").FC<any>;
|
|
47
47
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
48
48
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
49
49
|
URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
50
50
|
Email: import("react").FC<import("antd").InputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
51
|
-
Phone: import("react").FC<import("
|
|
51
|
+
Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
52
52
|
}) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
|
|
53
53
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
54
54
|
} & {
|
|
@@ -41,7 +41,9 @@ var import_react_barcode = __toESM(require("react-barcode"));
|
|
|
41
41
|
var import_utils = require("@pisell/utils");
|
|
42
42
|
var import_Amount = __toESM(require("./../pisellText/components/Amount"));
|
|
43
43
|
var import_index = require("./index.less");
|
|
44
|
+
var import_pisellModal = __toESM(require("./../pisellModal"));
|
|
44
45
|
var import_classnames = __toESM(require("classnames"));
|
|
46
|
+
var import_locales = require("../../locales/index");
|
|
45
47
|
var WalletCard = (props) => {
|
|
46
48
|
var _a;
|
|
47
49
|
const {
|
|
@@ -78,7 +80,7 @@ var WalletCard = (props) => {
|
|
|
78
80
|
return /* @__PURE__ */ import_react.default.createElement(import_antd.Flex, { justify: "center" }, codeType === "one" ? /* @__PURE__ */ import_react.default.createElement(import_react_barcode.default, { value: cardNo, height: 114, width: 3 }) : /* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { size: 250, value: cardNo, bordered: false }));
|
|
79
81
|
};
|
|
80
82
|
const modalProps = {
|
|
81
|
-
title:
|
|
83
|
+
title: (0, import_locales.getText)("walletCard-qrcode"),
|
|
82
84
|
platform,
|
|
83
85
|
onCancel: () => setIsModalOpen(false),
|
|
84
86
|
open: isModalOpen,
|
|
@@ -207,13 +209,13 @@ var WalletCard = (props) => {
|
|
|
207
209
|
)
|
|
208
210
|
),
|
|
209
211
|
showCode && cardStyle === "full" && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("pisell-wallet-card-showCode") }, codeRender())
|
|
210
|
-
)), /* @__PURE__ */ import_react.default.createElement(
|
|
211
|
-
Button,
|
|
212
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_pisellModal.default, { ...modalProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.QRCode, { size: 200, value: cardNo, style: { marginTop: 24 } }), /* @__PURE__ */ import_react.default.createElement("p", { className: (0, import_classnames.default)("pisell-qrcode-modal-value") }, cardNo), /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, null), /* @__PURE__ */ import_react.default.createElement(
|
|
213
|
+
import_antd.Button,
|
|
212
214
|
{
|
|
213
215
|
onClick: () => setIsModalOpen(false),
|
|
214
216
|
className: (0, import_classnames.default)("pisell-qrcode-modal-button")
|
|
215
217
|
},
|
|
216
|
-
"
|
|
218
|
+
(0, import_locales.getText)("walletCard-done")
|
|
217
219
|
)));
|
|
218
220
|
};
|
|
219
221
|
var walletCard_default = WalletCard;
|
|
@@ -93,4 +93,43 @@
|
|
|
93
93
|
background-color: #fff;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
|
|
97
|
+
.pisell-qrcode-modal {
|
|
98
|
+
.pisell-lowcode-modal-content {
|
|
99
|
+
padding: 0;
|
|
100
|
+
.pisell-lowcode-modal-body {
|
|
101
|
+
display: flex;
|
|
102
|
+
width: 100%;
|
|
103
|
+
align-items: center;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
.pisell-qrcode-modal-value {
|
|
106
|
+
color: var(--Gray-500, #667085);
|
|
107
|
+
font-family: Inter;
|
|
108
|
+
font-size: 14px;
|
|
109
|
+
font-style: normal;
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
line-height: 20px;
|
|
112
|
+
margin: 20px 0 24px;
|
|
113
|
+
}
|
|
114
|
+
.pisell-lowcode-divider {
|
|
115
|
+
margin: 0;
|
|
116
|
+
}
|
|
117
|
+
.pisell-qrcode-modal-button {
|
|
118
|
+
margin: 24px;
|
|
119
|
+
|
|
120
|
+
color: var(--Base-White, #fff);
|
|
121
|
+
|
|
122
|
+
font-family: Inter;
|
|
123
|
+
font-size: 16px;
|
|
124
|
+
font-style: normal;
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
line-height: 24px;
|
|
127
|
+
|
|
128
|
+
width: calc(100% - 48px);
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
background-color: var(--theme-color, #7f56d9);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
96
135
|
}
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -144,5 +144,7 @@ declare const _default: {
|
|
|
144
144
|
'pisell-number-format-thousand': string;
|
|
145
145
|
'pisell-number-format-million': string;
|
|
146
146
|
'pisell-number-format-billion': string;
|
|
147
|
+
'walletCard-done': string;
|
|
148
|
+
'walletCard-qrcode': string;
|
|
147
149
|
};
|
|
148
150
|
export default _default;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -179,5 +179,8 @@ var en_US_default = {
|
|
|
179
179
|
// Number formatting
|
|
180
180
|
"pisell-number-format-thousand": "K",
|
|
181
181
|
"pisell-number-format-million": "M",
|
|
182
|
-
"pisell-number-format-billion": "B"
|
|
182
|
+
"pisell-number-format-billion": "B",
|
|
183
|
+
//walletCard 组件
|
|
184
|
+
"walletCard-done": "Done",
|
|
185
|
+
"walletCard-qrcode": "QR code"
|
|
183
186
|
};
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -144,5 +144,7 @@ declare const _default: {
|
|
|
144
144
|
'pisell-number-format-thousand': string;
|
|
145
145
|
'pisell-number-format-million': string;
|
|
146
146
|
'pisell-number-format-billion': string;
|
|
147
|
+
'walletCard-done': string;
|
|
148
|
+
'walletCard-qrcode': string;
|
|
147
149
|
};
|
|
148
150
|
export default _default;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -178,5 +178,8 @@ var zh_CN_default = {
|
|
|
178
178
|
// 数字格式化
|
|
179
179
|
"pisell-number-format-thousand": "千",
|
|
180
180
|
"pisell-number-format-million": "百万",
|
|
181
|
-
"pisell-number-format-billion": "十亿"
|
|
181
|
+
"pisell-number-format-billion": "十亿",
|
|
182
|
+
//walletCard 组件
|
|
183
|
+
"walletCard-done": "完成",
|
|
184
|
+
"walletCard-qrcode": "二维码"
|
|
182
185
|
};
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -144,5 +144,7 @@ declare const _default: {
|
|
|
144
144
|
'pisell-number-format-thousand': string;
|
|
145
145
|
'pisell-number-format-million': string;
|
|
146
146
|
'pisell-number-format-billion': string;
|
|
147
|
+
'walletCard-done': string;
|
|
148
|
+
'walletCard-qrcode': string;
|
|
147
149
|
};
|
|
148
150
|
export default _default;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -179,5 +179,8 @@ var zh_TW_default = {
|
|
|
179
179
|
// 數字格式化
|
|
180
180
|
"pisell-number-format-thousand": "千",
|
|
181
181
|
"pisell-number-format-million": "百萬",
|
|
182
|
-
"pisell-number-format-billion": "十億"
|
|
182
|
+
"pisell-number-format-billion": "十億",
|
|
183
|
+
//walletCard 组件
|
|
184
|
+
"walletCard-done": "完成",
|
|
185
|
+
"walletCard-qrcode": "二維碼"
|
|
183
186
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.477",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"styled-components": "^6.0.0-rc.3",
|
|
69
69
|
"libphonenumber-js": "^1.11.17",
|
|
70
70
|
"@pisell/date-picker": "1.0.113",
|
|
71
|
-
"@pisell/
|
|
72
|
-
"@pisell/
|
|
71
|
+
"@pisell/utils": "1.0.43",
|
|
72
|
+
"@pisell/icon": "0.0.10"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "^18.0.0",
|