@pisell/materials 2.2.86 → 2.2.88
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 +7 -7
- package/build/lowcode/preview.js +144 -160
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +25 -35
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +30 -40
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +18 -18
- package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/es/components/pisellAdjustPrice/index.d.ts +2 -6
- package/es/components/pisellAdjustPrice/index.js +63 -8
- package/es/components/pisellAdjustPrice/index.less +35 -6
- package/es/components/pisellAdjustPrice/status.d.ts +32 -0
- package/es/components/pisellAdjustPrice/status.js +32 -0
- package/es/components/pisellAdjustPrice/type.d.ts +20 -0
- package/es/components/pisellAdjustPrice/type.js +1 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/es/components/productCard/components/Packages/utils.d.ts +1 -1
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/es/components/table/Table/fields/image/index.d.ts +0 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/index.d.ts +4 -20
- package/es/components/virtual-keyboard/Amount/index.js +79 -7
- package/es/components/virtual-keyboard/Amount/index.less +39 -0
- package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
- package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/es/components/virtual-keyboard/Amount/types.js +1 -0
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
- package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
- package/es/components/virtual-keyboard/Number/index.d.ts +3 -11
- package/es/components/virtual-keyboard/Number/index.js +77 -7
- package/es/components/virtual-keyboard/Number/index.less +39 -0
- package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
- package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
- package/es/components/virtual-keyboard/Number/types.js +1 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
- package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
- package/es/components/virtual-keyboard/index.d.ts +11 -0
- package/es/components/virtual-keyboard/index.js +88 -3
- package/es/components/virtual-keyboard/index.less +33 -1
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +18 -18
- package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
- package/lib/components/pisellAdjustPrice/index.d.ts +2 -6
- package/lib/components/pisellAdjustPrice/index.js +118 -57
- package/lib/components/pisellAdjustPrice/index.less +35 -6
- package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
- package/lib/components/pisellAdjustPrice/status.js +60 -0
- package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
- package/lib/components/pisellAdjustPrice/type.js +17 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
- package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
- package/lib/components/table/Table/fields/image/index.d.ts +0 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/index.d.ts +4 -20
- package/lib/components/virtual-keyboard/Amount/index.js +72 -16
- package/lib/components/virtual-keyboard/Amount/index.less +39 -0
- package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
- package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
- package/lib/components/virtual-keyboard/Amount/types.js +17 -0
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
- package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
- package/lib/components/virtual-keyboard/Number/index.d.ts +3 -11
- package/lib/components/virtual-keyboard/Number/index.js +65 -11
- package/lib/components/virtual-keyboard/Number/index.less +39 -0
- package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
- package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
- package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
- package/lib/components/virtual-keyboard/Number/types.js +17 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -27
- package/lib/components/virtual-keyboard/index.d.ts +11 -0
- package/lib/components/virtual-keyboard/index.js +60 -2
- package/lib/components/virtual-keyboard/index.less +33 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/pisell-adjust-price/meta.ts +168 -0
- package/lowcode/pisell-adjust-price/snippets.ts +1 -0
- package/lowcode/pisell-number-keyboard/meta.ts +167 -0
- package/lowcode/pisell-price-keyboard/meta.ts +167 -0
- package/lowcode/virtual-keyboard/meta.ts +131 -0
- package/package.json +3 -3
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const amountThemeConfig: {
|
|
2
|
+
dark: {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
containerBackgroundColor: string;
|
|
5
|
+
buttonBackgroundColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
resetButtonBackgroundColor: string;
|
|
8
|
+
resetButtonTextColor: string;
|
|
9
|
+
isDoneButtonFollowTheme: boolean;
|
|
10
|
+
doneButtonBackgroundColor: string;
|
|
11
|
+
doneButtonTextColor: string;
|
|
12
|
+
keyboardBackgroundColor: string;
|
|
13
|
+
keyboardButtonBackgroundColor: string;
|
|
14
|
+
keyboardButtonTextColor: string;
|
|
15
|
+
keyboardButtonHoverColor: string;
|
|
16
|
+
};
|
|
17
|
+
light: {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
containerBackgroundColor: string;
|
|
20
|
+
buttonBackgroundColor: string;
|
|
21
|
+
textColor: string;
|
|
22
|
+
resetButtonBackgroundColor: string;
|
|
23
|
+
resetButtonTextColor: string;
|
|
24
|
+
isDoneButtonFollowTheme: boolean;
|
|
25
|
+
doneButtonBackgroundColor: string;
|
|
26
|
+
doneButtonTextColor: string;
|
|
27
|
+
keyboardBackgroundColor: string;
|
|
28
|
+
keyboardButtonBackgroundColor: string;
|
|
29
|
+
keyboardButtonTextColor: string;
|
|
30
|
+
keyboardButtonHoverColor: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export var amountThemeConfig = {
|
|
2
|
+
dark: {
|
|
3
|
+
backgroundColor: 'rgba(0, 0, 0, 0.70)',
|
|
4
|
+
containerBackgroundColor: 'rgba(0, 0, 0, 0.40)',
|
|
5
|
+
buttonBackgroundColor: '#ffffff',
|
|
6
|
+
textColor: '#000000',
|
|
7
|
+
resetButtonBackgroundColor: '#ffffff',
|
|
8
|
+
resetButtonTextColor: '#d92d20',
|
|
9
|
+
isDoneButtonFollowTheme: true,
|
|
10
|
+
doneButtonBackgroundColor: '#4ca30d',
|
|
11
|
+
doneButtonTextColor: '#ffffff',
|
|
12
|
+
keyboardBackgroundColor: 'rgba(0, 0, 0, 0.40)',
|
|
13
|
+
keyboardButtonBackgroundColor: '#ffffff',
|
|
14
|
+
keyboardButtonTextColor: '#000000',
|
|
15
|
+
keyboardButtonHoverColor: '#f5f5f5'
|
|
16
|
+
},
|
|
17
|
+
light: {
|
|
18
|
+
backgroundColor: '#ffffff',
|
|
19
|
+
containerBackgroundColor: '#d0d5dd',
|
|
20
|
+
buttonBackgroundColor: '#ffffff',
|
|
21
|
+
textColor: '#000000',
|
|
22
|
+
resetButtonBackgroundColor: '#ffffff',
|
|
23
|
+
resetButtonTextColor: '#d92d20',
|
|
24
|
+
isDoneButtonFollowTheme: true,
|
|
25
|
+
doneButtonBackgroundColor: '#4ca30d',
|
|
26
|
+
doneButtonTextColor: '#ffffff',
|
|
27
|
+
keyboardBackgroundColor: '#f9f9f9',
|
|
28
|
+
keyboardButtonBackgroundColor: '#ffffff',
|
|
29
|
+
keyboardButtonTextColor: '#000000',
|
|
30
|
+
keyboardButtonHoverColor: '#f5f5f5'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
|
|
3
|
+
export interface RightItemsStyleProps {
|
|
4
|
+
buttonBackgroundColor?: string;
|
|
5
|
+
textColor?: string;
|
|
6
|
+
resetButtonBackgroundColor?: string;
|
|
7
|
+
resetButtonTextColor?: string;
|
|
8
|
+
isDoneButtonFollowTheme?: boolean;
|
|
9
|
+
doneButtonBackgroundColor?: string;
|
|
10
|
+
doneButtonTextColor?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface AmountProps {
|
|
13
|
+
max?: number;
|
|
14
|
+
min?: number;
|
|
15
|
+
doneText?: string;
|
|
16
|
+
resetText?: string;
|
|
17
|
+
defaultValue?: string | number;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
amountProps?: {
|
|
20
|
+
showCurrencySymbol: boolean;
|
|
21
|
+
useThousandsSeparator: boolean;
|
|
22
|
+
};
|
|
23
|
+
presets?: BaseNumberKeyboardProps['presets'];
|
|
24
|
+
value?: string | number;
|
|
25
|
+
onChange?: (val: string | number) => void;
|
|
26
|
+
onEnter?: (val: string | number) => void;
|
|
27
|
+
defaultSelect?: boolean;
|
|
28
|
+
inputFormat?: (_v: string) => React.ReactNode | null;
|
|
29
|
+
rightItemsStyle?: RightItemsStyleProps;
|
|
30
|
+
selectType?: 'light' | 'dark';
|
|
31
|
+
backgroundColor?: string;
|
|
32
|
+
containerBackgroundColor?: string;
|
|
33
|
+
buttonBackgroundColor?: string;
|
|
34
|
+
textColor?: string;
|
|
35
|
+
resetButtonBackgroundColor?: string;
|
|
36
|
+
resetButtonTextColor?: string;
|
|
37
|
+
isDoneButtonFollowTheme?: boolean;
|
|
38
|
+
doneButtonBackgroundColor?: string;
|
|
39
|
+
doneButtonTextColor?: string;
|
|
40
|
+
keyboardBackgroundColor?: string;
|
|
41
|
+
keyboardButtonBackgroundColor?: string;
|
|
42
|
+
keyboardButtonTextColor?: string;
|
|
43
|
+
keyboardButtonHoverColor?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { PresetsProps } from
|
|
2
|
+
import { PresetsProps } from './Presets';
|
|
3
|
+
import { RightItemsStyleProps } from '../Amount';
|
|
3
4
|
import './index.less';
|
|
4
5
|
export interface BaseNumberKeyboardProps {
|
|
5
6
|
placeholder?: string;
|
|
@@ -14,6 +15,7 @@ export interface BaseNumberKeyboardProps {
|
|
|
14
15
|
min?: number;
|
|
15
16
|
presets?: PresetsProps['presets'];
|
|
16
17
|
defaultSelect?: boolean;
|
|
18
|
+
rightItemsStyle?: RightItemsStyleProps;
|
|
17
19
|
}
|
|
18
20
|
declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
|
|
19
21
|
export default BaseNumberKeyboard;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
8
|
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."); }
|
|
3
9
|
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); }
|
|
@@ -86,7 +92,8 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
86
92
|
min = props.min,
|
|
87
93
|
onEnter = props.onEnter,
|
|
88
94
|
presets = props.presets,
|
|
89
|
-
defaultSelect = props.defaultSelect
|
|
95
|
+
defaultSelect = props.defaultSelect,
|
|
96
|
+
rightItemsStyle = props.rightItemsStyle;
|
|
90
97
|
var _useControllableValue = useControllableValue(props, {
|
|
91
98
|
defaultValue: defaultValue
|
|
92
99
|
}),
|
|
@@ -107,7 +114,11 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
107
114
|
className: "virtual-keyboard-input-delete-icon"
|
|
108
115
|
}),
|
|
109
116
|
disabled: false,
|
|
110
|
-
type: 'text'
|
|
117
|
+
type: 'text',
|
|
118
|
+
style: {
|
|
119
|
+
color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000',
|
|
120
|
+
backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || '#ffffff'
|
|
121
|
+
}
|
|
111
122
|
}, {
|
|
112
123
|
value: 'reset',
|
|
113
124
|
label: resetText || 'Reset',
|
|
@@ -115,7 +126,8 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
115
126
|
type: 'text',
|
|
116
127
|
style: {
|
|
117
128
|
fontSize: '18px',
|
|
118
|
-
color: '#D92D20'
|
|
129
|
+
color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonTextColor) || '#D92D20',
|
|
130
|
+
backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonBackgroundColor) || '#ffffff'
|
|
119
131
|
}
|
|
120
132
|
}, {
|
|
121
133
|
value: 'done',
|
|
@@ -125,11 +137,23 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
125
137
|
size: 2,
|
|
126
138
|
style: {
|
|
127
139
|
fontSize: '18px',
|
|
128
|
-
background: 'var(--
|
|
129
|
-
color: '#
|
|
140
|
+
background: rightItemsStyle !== null && rightItemsStyle !== void 0 && rightItemsStyle.isDoneButtonFollowTheme ? 'var(--theme-color)' : (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonBackgroundColor) || '#5d3f9f',
|
|
141
|
+
color: rightItemsStyle !== null && rightItemsStyle !== void 0 && rightItemsStyle.isDoneButtonFollowTheme ? '#ffffff' : (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonTextColor) || '#ffffff'
|
|
130
142
|
}
|
|
131
143
|
}];
|
|
132
|
-
}, [doneText, resetText]);
|
|
144
|
+
}, [doneText, resetText, rightItemsStyle]);
|
|
145
|
+
|
|
146
|
+
// 给每个item增加背景色
|
|
147
|
+
var itemsWithStyle = useMemo(function () {
|
|
148
|
+
return items.map(function (item) {
|
|
149
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
150
|
+
style: {
|
|
151
|
+
backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || '#fff',
|
|
152
|
+
color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000'
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}, [items, rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor, rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor]);
|
|
133
157
|
var checkValue = function checkValue(val) {
|
|
134
158
|
// 超过最大值时使用最大值
|
|
135
159
|
if (isNumber(max) && Number(val) > max) {
|
|
@@ -161,11 +185,11 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
161
185
|
},
|
|
162
186
|
delete: function _delete() {
|
|
163
187
|
// 选中时删除全部 否则删除最后一位
|
|
164
|
-
handleChangeValue(select ? '' : "".concat(value ||
|
|
188
|
+
handleChangeValue(select ? '' : "".concat(value || '').slice(0, -1));
|
|
165
189
|
},
|
|
166
190
|
reset: function reset() {
|
|
167
191
|
// 重置到默认值
|
|
168
|
-
handleChangeValue("".concat(defaultValue ||
|
|
192
|
+
handleChangeValue("".concat(defaultValue || '') || '');
|
|
169
193
|
},
|
|
170
194
|
done: function done() {
|
|
171
195
|
onEnter === null || onEnter === void 0 || onEnter(value);
|
|
@@ -200,12 +224,16 @@ var BaseNumberKeyboard = function BaseNumberKeyboard(props) {
|
|
|
200
224
|
},
|
|
201
225
|
showDelete: false,
|
|
202
226
|
onValueSelect: setSelect,
|
|
203
|
-
defaultSelect: defaultSelect
|
|
227
|
+
defaultSelect: defaultSelect,
|
|
228
|
+
style: {
|
|
229
|
+
backgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || '#fff',
|
|
230
|
+
color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || '#000000'
|
|
231
|
+
}
|
|
204
232
|
}), /*#__PURE__*/React.createElement(Presets, {
|
|
205
233
|
presets: presets,
|
|
206
234
|
onChange: handleChangeValue
|
|
207
235
|
}), /*#__PURE__*/React.createElement(Keyboard, {
|
|
208
|
-
items:
|
|
236
|
+
items: itemsWithStyle,
|
|
209
237
|
rightItems: rightItems,
|
|
210
238
|
onChange: handleKeyboardChange
|
|
211
239
|
}));
|
|
@@ -89,10 +89,10 @@ var Keyboard = function Keyboard(props) {
|
|
|
89
89
|
key: item.value,
|
|
90
90
|
type: item.type,
|
|
91
91
|
className: "virtual-keyboard-item-button",
|
|
92
|
-
style: {
|
|
92
|
+
style: _objectSpread({
|
|
93
93
|
fontSize: ((_item$style2 = item.style) === null || _item$style2 === void 0 ? void 0 : _item$style2.fontSize) || 25,
|
|
94
94
|
color: item.type === 'primary' ? '#fff' : ((_item$style3 = item.style) === null || _item$style3 === void 0 ? void 0 : _item$style3.color) || undefined
|
|
95
|
-
},
|
|
95
|
+
}, item.type === 'primary' ? item.style || {} : {}),
|
|
96
96
|
disabled: item.disabled,
|
|
97
97
|
onClick: function onClick(e) {
|
|
98
98
|
onChange === null || onChange === void 0 || onChange(item.value);
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
doneText?: string;
|
|
6
|
-
resetText: string;
|
|
7
|
-
defaultValue?: string | number;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
value?: string | number;
|
|
10
|
-
onChange?: (val: string | number) => void;
|
|
11
|
-
onEnter?: (val: string | number) => void;
|
|
12
|
-
}
|
|
2
|
+
import { NumberProps } from './types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export type { NumberProps };
|
|
13
5
|
declare const Number: (props: NumberProps) => JSX.Element;
|
|
14
6
|
export default Number;
|
|
@@ -1,27 +1,88 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["min", "max", "doneText", "resetText", "defaultValue", "placeholder", "onEnter", "selectType"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1
8
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
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."); }
|
|
3
10
|
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); }
|
|
4
11
|
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; }
|
|
5
12
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
|
+
import React, { useEffect, useMemo } from 'react';
|
|
8
17
|
import { useControllableValue } from 'ahooks';
|
|
18
|
+
import classNames from 'classnames';
|
|
19
|
+
import { setTheme } from '@pisell/utils';
|
|
9
20
|
import BaseNumberKeyboard from "../BaseNumberKeyboard";
|
|
10
|
-
|
|
21
|
+
import usePisellConfig from "../../pisell-config-provider/hooks/usePisellConfig";
|
|
22
|
+
import { numberThemeConfig } from "./themeConfig";
|
|
23
|
+
import "./index.less";
|
|
24
|
+
var _Number = function _Number(props) {
|
|
11
25
|
var min = props.min,
|
|
12
26
|
max = props.max,
|
|
13
27
|
doneText = props.doneText,
|
|
14
28
|
resetText = props.resetText,
|
|
15
29
|
defaultValue = props.defaultValue,
|
|
16
30
|
placeholder = props.placeholder,
|
|
17
|
-
onEnter = props.onEnter
|
|
31
|
+
onEnter = props.onEnter,
|
|
32
|
+
_props$selectType = props.selectType,
|
|
33
|
+
selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
|
|
34
|
+
others = _objectWithoutProperties(props, _excluded);
|
|
35
|
+
var config = usePisellConfig();
|
|
18
36
|
var _useControllableValue = useControllableValue(props, {
|
|
19
37
|
defaultValue: defaultValue || ""
|
|
20
38
|
}),
|
|
21
39
|
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
22
40
|
value = _useControllableValue2[0],
|
|
23
41
|
setValue = _useControllableValue2[1];
|
|
24
|
-
|
|
42
|
+
useEffect(function () {
|
|
43
|
+
document.body.id = 'body';
|
|
44
|
+
}, []);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 配置颜色
|
|
48
|
+
* 根据 props 和 selectType 生成最终的配置颜色
|
|
49
|
+
*/
|
|
50
|
+
var configColor = useMemo(function () {
|
|
51
|
+
var currentConfig = numberThemeConfig[selectType];
|
|
52
|
+
|
|
53
|
+
// 过滤出有效的 props 并合并到默认配置中
|
|
54
|
+
var validProps = Object.entries(props).reduce(function (acc, _ref) {
|
|
55
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
56
|
+
key = _ref2[0],
|
|
57
|
+
value = _ref2[1];
|
|
58
|
+
if (value !== undefined && key in currentConfig) {
|
|
59
|
+
acc[key] = value;
|
|
60
|
+
}
|
|
61
|
+
return acc;
|
|
62
|
+
}, {});
|
|
63
|
+
return _objectSpread(_objectSpread({}, currentConfig), validProps);
|
|
64
|
+
}, [selectType, props]);
|
|
65
|
+
useEffect(function () {
|
|
66
|
+
setTheme({
|
|
67
|
+
'--pisell-number-background-color': configColor.backgroundColor,
|
|
68
|
+
'--pisell-number-container-background-color': configColor.containerBackgroundColor,
|
|
69
|
+
'--pisell-number-text-color': configColor.textColor,
|
|
70
|
+
'--pisell-number-keyboard-background-color': configColor.keyboardBackgroundColor,
|
|
71
|
+
'--pisell-number-keyboard-button-background-color': configColor.keyboardButtonBackgroundColor,
|
|
72
|
+
'--pisell-number-keyboard-button-text-color': configColor.keyboardButtonTextColor,
|
|
73
|
+
'--pisell-number-keyboard-button-hover-color': configColor.keyboardButtonHoverColor,
|
|
74
|
+
'--pisell-number-reset-button-background-color': configColor.resetButtonBackgroundColor,
|
|
75
|
+
'--pisell-number-reset-button-text-color': configColor.resetButtonTextColor,
|
|
76
|
+
'--pisell-number-done-button-background-color': configColor.doneButtonBackgroundColor,
|
|
77
|
+
'--pisell-number-done-button-text-color': configColor.doneButtonTextColor
|
|
78
|
+
});
|
|
79
|
+
}, [configColor]);
|
|
80
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
81
|
+
className: classNames('pisell-number-keyboard-wrap', {
|
|
82
|
+
'pisell-number-keyboard-dark': selectType === 'dark',
|
|
83
|
+
'pisell-number-keyboard-light': selectType === 'light'
|
|
84
|
+
})
|
|
85
|
+
}, /*#__PURE__*/React.createElement(BaseNumberKeyboard, {
|
|
25
86
|
max: max,
|
|
26
87
|
min: min,
|
|
27
88
|
value: value,
|
|
@@ -29,7 +90,16 @@ var Number = function Number(props) {
|
|
|
29
90
|
placeholder: placeholder,
|
|
30
91
|
doneText: doneText,
|
|
31
92
|
resetText: resetText,
|
|
32
|
-
onEnter: onEnter
|
|
33
|
-
|
|
93
|
+
onEnter: onEnter,
|
|
94
|
+
rightItemsStyle: {
|
|
95
|
+
buttonBackgroundColor: configColor.buttonBackgroundColor,
|
|
96
|
+
textColor: configColor.textColor,
|
|
97
|
+
resetButtonBackgroundColor: configColor.resetButtonBackgroundColor,
|
|
98
|
+
resetButtonTextColor: configColor.resetButtonTextColor,
|
|
99
|
+
isDoneButtonFollowTheme: configColor.isDoneButtonFollowTheme,
|
|
100
|
+
doneButtonBackgroundColor: configColor.doneButtonBackgroundColor,
|
|
101
|
+
doneButtonTextColor: configColor.doneButtonTextColor
|
|
102
|
+
}
|
|
103
|
+
}));
|
|
34
104
|
};
|
|
35
|
-
export default
|
|
105
|
+
export default _Number;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.pisell-number-keyboard-wrap {
|
|
2
|
+
background-color: var(--pisell-number-background-color, #ffffff);
|
|
3
|
+
|
|
4
|
+
&.pisell-number-keyboard-dark {
|
|
5
|
+
background-color: var(--pisell-number-background-color, rgba(0, 0, 0, 0.70));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&.pisell-number-keyboard-light {
|
|
9
|
+
background-color: var(--pisell-number-background-color, #ffffff);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.pisell-virtual-keyboard-input {
|
|
13
|
+
background-color: var(--pisell-number-container-background-color, #d0d5dd);
|
|
14
|
+
color: var(--pisell-number-text-color, #000000);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.pisell-keyboard {
|
|
18
|
+
background-color: var(--pisell-number-keyboard-background-color, #f9f9f9);
|
|
19
|
+
|
|
20
|
+
.pisell-keyboard-item {
|
|
21
|
+
background-color: var(--pisell-number-keyboard-button-background-color, #ffffff);
|
|
22
|
+
color: var(--pisell-number-keyboard-button-text-color, #000000);
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
background-color: var(--pisell-number-keyboard-button-hover-color, #f5f5f5);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.pisell-keyboard-reset-button {
|
|
30
|
+
background-color: var(--pisell-number-reset-button-background-color, #ffffff);
|
|
31
|
+
color: var(--pisell-number-reset-button-text-color, #d92d20);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.pisell-keyboard-done-button {
|
|
35
|
+
background-color: var(--pisell-number-done-button-background-color, #4ca30d);
|
|
36
|
+
color: var(--pisell-number-done-button-text-color, #ffffff);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const numberThemeConfig: {
|
|
2
|
+
dark: {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
containerBackgroundColor: string;
|
|
5
|
+
buttonBackgroundColor: string;
|
|
6
|
+
textColor: string;
|
|
7
|
+
resetButtonBackgroundColor: string;
|
|
8
|
+
resetButtonTextColor: string;
|
|
9
|
+
isDoneButtonFollowTheme: boolean;
|
|
10
|
+
doneButtonBackgroundColor: string;
|
|
11
|
+
doneButtonTextColor: string;
|
|
12
|
+
keyboardBackgroundColor: string;
|
|
13
|
+
keyboardButtonBackgroundColor: string;
|
|
14
|
+
keyboardButtonTextColor: string;
|
|
15
|
+
keyboardButtonHoverColor: string;
|
|
16
|
+
};
|
|
17
|
+
light: {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
containerBackgroundColor: string;
|
|
20
|
+
buttonBackgroundColor: string;
|
|
21
|
+
textColor: string;
|
|
22
|
+
resetButtonBackgroundColor: string;
|
|
23
|
+
resetButtonTextColor: string;
|
|
24
|
+
isDoneButtonFollowTheme: boolean;
|
|
25
|
+
doneButtonBackgroundColor: string;
|
|
26
|
+
doneButtonTextColor: string;
|
|
27
|
+
keyboardBackgroundColor: string;
|
|
28
|
+
keyboardButtonBackgroundColor: string;
|
|
29
|
+
keyboardButtonTextColor: string;
|
|
30
|
+
keyboardButtonHoverColor: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export var numberThemeConfig = {
|
|
2
|
+
dark: {
|
|
3
|
+
backgroundColor: 'rgba(0, 0, 0, 0.70)',
|
|
4
|
+
containerBackgroundColor: 'rgba(0, 0, 0, 0.40)',
|
|
5
|
+
buttonBackgroundColor: '#ffffff',
|
|
6
|
+
textColor: '#000000',
|
|
7
|
+
resetButtonBackgroundColor: '#ffffff',
|
|
8
|
+
resetButtonTextColor: '#d92d20',
|
|
9
|
+
isDoneButtonFollowTheme: true,
|
|
10
|
+
doneButtonBackgroundColor: '#4ca30d',
|
|
11
|
+
doneButtonTextColor: '#ffffff',
|
|
12
|
+
keyboardBackgroundColor: 'rgba(0, 0, 0, 0.40)',
|
|
13
|
+
keyboardButtonBackgroundColor: '#ffffff',
|
|
14
|
+
keyboardButtonTextColor: '#000000',
|
|
15
|
+
keyboardButtonHoverColor: '#f5f5f5'
|
|
16
|
+
},
|
|
17
|
+
light: {
|
|
18
|
+
backgroundColor: '#ffffff',
|
|
19
|
+
containerBackgroundColor: '#d0d5dd',
|
|
20
|
+
buttonBackgroundColor: '#ffffff',
|
|
21
|
+
textColor: '#000000',
|
|
22
|
+
resetButtonBackgroundColor: '#ffffff',
|
|
23
|
+
resetButtonTextColor: '#d92d20',
|
|
24
|
+
isDoneButtonFollowTheme: true,
|
|
25
|
+
doneButtonBackgroundColor: '#4ca30d',
|
|
26
|
+
doneButtonTextColor: '#ffffff',
|
|
27
|
+
keyboardBackgroundColor: '#f9f9f9',
|
|
28
|
+
keyboardButtonBackgroundColor: '#ffffff',
|
|
29
|
+
keyboardButtonTextColor: '#000000',
|
|
30
|
+
keyboardButtonHoverColor: '#f5f5f5'
|
|
31
|
+
}
|
|
32
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface NumberProps {
|
|
2
|
+
max?: number;
|
|
3
|
+
min?: number;
|
|
4
|
+
doneText?: string;
|
|
5
|
+
resetText: string;
|
|
6
|
+
defaultValue?: string | number;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
value?: string | number;
|
|
9
|
+
onChange?: (val: string | number) => void;
|
|
10
|
+
onEnter?: (val: string | number) => void;
|
|
11
|
+
selectType?: 'light' | 'dark';
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
containerBackgroundColor?: string;
|
|
14
|
+
buttonBackgroundColor?: string;
|
|
15
|
+
textColor?: string;
|
|
16
|
+
resetButtonBackgroundColor?: string;
|
|
17
|
+
resetButtonTextColor?: string;
|
|
18
|
+
isDoneButtonFollowTheme?: boolean;
|
|
19
|
+
doneButtonBackgroundColor?: string;
|
|
20
|
+
doneButtonTextColor?: string;
|
|
21
|
+
keyboardBackgroundColor?: string;
|
|
22
|
+
keyboardButtonBackgroundColor?: string;
|
|
23
|
+
keyboardButtonTextColor?: string;
|
|
24
|
+
keyboardButtonHoverColor?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { InputProps } from 'antd';
|
|
2
3
|
import './index.less';
|
|
3
4
|
export interface VirtualKeyInputProps extends InputProps {
|
|
@@ -6,6 +7,7 @@ export interface VirtualKeyInputProps extends InputProps {
|
|
|
6
7
|
showDelete?: boolean;
|
|
7
8
|
onValueSelect?: (selected: boolean) => void;
|
|
8
9
|
defaultSelect?: boolean;
|
|
10
|
+
style?: React.CSSProperties;
|
|
9
11
|
}
|
|
10
12
|
declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
|
|
11
13
|
export default VirtualKeyInput;
|
|
@@ -20,7 +20,8 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
|
|
|
20
20
|
_props$showDelete = props.showDelete,
|
|
21
21
|
showDelete = _props$showDelete === void 0 ? true : _props$showDelete,
|
|
22
22
|
onValueSelect = props.onValueSelect,
|
|
23
|
-
defaultSelect = props.defaultSelect
|
|
23
|
+
defaultSelect = props.defaultSelect,
|
|
24
|
+
style = props.style;
|
|
24
25
|
var _useState = useState(defaultSelect !== null && defaultSelect !== void 0 ? defaultSelect : false),
|
|
25
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26
27
|
select = _useState2[0],
|
|
@@ -57,7 +58,10 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
|
|
|
57
58
|
});
|
|
58
59
|
};
|
|
59
60
|
return /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: "virtual-keyboard-input-wrap"
|
|
61
|
+
className: "virtual-keyboard-input-wrap",
|
|
62
|
+
style: {
|
|
63
|
+
backgroundColor: (style === null || style === void 0 ? void 0 : style.backgroundColor) || '#ffffff'
|
|
64
|
+
}
|
|
61
65
|
}, props.renderInput ? /*#__PURE__*/React.createElement("div", {
|
|
62
66
|
className: classNames('virtual-keyboard-input', {
|
|
63
67
|
'virtual-keyboard-input-select': select
|
|
@@ -66,6 +70,9 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
|
|
|
66
70
|
if (value) {
|
|
67
71
|
handleSelectChange(!select);
|
|
68
72
|
}
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
color: (style === null || style === void 0 ? void 0 : style.color) || '#000000'
|
|
69
76
|
}
|
|
70
77
|
}, props.renderInput(props)) : /*#__PURE__*/React.createElement(Input, _extends({
|
|
71
78
|
className: "virtual-keyboard-input",
|
|
@@ -73,7 +80,7 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
|
|
|
73
80
|
}, props, {
|
|
74
81
|
readOnly: true,
|
|
75
82
|
value: previewValue
|
|
76
|
-
})), (_ref = "".concat(value !== null && value !== void 0 ? value :
|
|
83
|
+
})), (_ref = "".concat(value !== null && value !== void 0 ? value : '')) !== null && _ref !== void 0 && _ref.length && showDelete ? /*#__PURE__*/React.createElement("div", {
|
|
77
84
|
className: "virtual-keyboard-input-delete",
|
|
78
85
|
onClick: _onDelete
|
|
79
86
|
}, /*#__PURE__*/React.createElement(Delete, {
|
|
@@ -9,6 +9,17 @@ interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
onChange?: (value?: any) => void;
|
|
11
11
|
value?: string;
|
|
12
|
+
selectType?: 'light' | 'dark';
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
containerBackgroundColor?: string;
|
|
15
|
+
buttonBackgroundColor?: string;
|
|
16
|
+
textColor?: string;
|
|
17
|
+
keyboardBackgroundColor?: string;
|
|
18
|
+
keyboardButtonBackgroundColor?: string;
|
|
19
|
+
keyboardButtonTextColor?: string;
|
|
20
|
+
keyboardButtonHoverColor?: string;
|
|
21
|
+
primaryButtonBackgroundColor?: string;
|
|
22
|
+
primaryButtonTextColor?: string;
|
|
12
23
|
}
|
|
13
24
|
declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
|
|
14
25
|
export default VirtualKeyboard;
|