@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.
Files changed (94) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +144 -160
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +25 -35
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +30 -40
  11. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  12. package/es/components/dataSourceComponents/fields/index.d.ts +18 -18
  13. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  14. package/es/components/pisellAdjustPrice/index.d.ts +2 -6
  15. package/es/components/pisellAdjustPrice/index.js +63 -8
  16. package/es/components/pisellAdjustPrice/index.less +35 -6
  17. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  18. package/es/components/pisellAdjustPrice/status.js +32 -0
  19. package/es/components/pisellAdjustPrice/type.d.ts +20 -0
  20. package/es/components/pisellAdjustPrice/type.js +1 -0
  21. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  22. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  23. package/es/components/select-time/index.d.ts +0 -1
  24. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  25. package/es/components/table/Table/fields/image/index.d.ts +0 -1
  26. package/es/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  27. package/es/components/virtual-keyboard/Amount/index.d.ts +4 -20
  28. package/es/components/virtual-keyboard/Amount/index.js +79 -7
  29. package/es/components/virtual-keyboard/Amount/index.less +39 -0
  30. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  31. package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
  32. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  33. package/es/components/virtual-keyboard/Amount/types.js +1 -0
  34. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  35. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
  36. package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
  37. package/es/components/virtual-keyboard/Number/index.d.ts +3 -11
  38. package/es/components/virtual-keyboard/Number/index.js +77 -7
  39. package/es/components/virtual-keyboard/Number/index.less +39 -0
  40. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  41. package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
  42. package/es/components/virtual-keyboard/Number/types.d.ts +25 -0
  43. package/es/components/virtual-keyboard/Number/types.js +1 -0
  44. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  45. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  46. package/es/components/virtual-keyboard/index.d.ts +11 -0
  47. package/es/components/virtual-keyboard/index.js +88 -3
  48. package/es/components/virtual-keyboard/index.less +33 -1
  49. package/es/utils/platform.d.ts +1 -1
  50. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  51. package/lib/components/dataSourceComponents/fields/index.d.ts +18 -18
  52. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  53. package/lib/components/pisellAdjustPrice/index.d.ts +2 -6
  54. package/lib/components/pisellAdjustPrice/index.js +118 -57
  55. package/lib/components/pisellAdjustPrice/index.less +35 -6
  56. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  57. package/lib/components/pisellAdjustPrice/status.js +60 -0
  58. package/lib/components/pisellAdjustPrice/type.d.ts +20 -0
  59. package/lib/components/pisellAdjustPrice/type.js +17 -0
  60. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +1 -1
  61. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  62. package/lib/components/select-time/index.d.ts +0 -1
  63. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  64. package/lib/components/table/Table/fields/image/index.d.ts +0 -1
  65. package/lib/components/table/Table/fields/pSwitch/index.d.ts +0 -1
  66. package/lib/components/virtual-keyboard/Amount/index.d.ts +4 -20
  67. package/lib/components/virtual-keyboard/Amount/index.js +72 -16
  68. package/lib/components/virtual-keyboard/Amount/index.less +39 -0
  69. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  70. package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
  71. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  72. package/lib/components/virtual-keyboard/Amount/types.js +17 -0
  73. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  74. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
  75. package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
  76. package/lib/components/virtual-keyboard/Number/index.d.ts +3 -11
  77. package/lib/components/virtual-keyboard/Number/index.js +65 -11
  78. package/lib/components/virtual-keyboard/Number/index.less +39 -0
  79. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  80. package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
  81. package/lib/components/virtual-keyboard/Number/types.d.ts +25 -0
  82. package/lib/components/virtual-keyboard/Number/types.js +17 -0
  83. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +2 -0
  84. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -27
  85. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  86. package/lib/components/virtual-keyboard/index.js +60 -2
  87. package/lib/components/virtual-keyboard/index.less +33 -1
  88. package/lib/utils/platform.d.ts +1 -1
  89. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  90. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  91. package/lowcode/pisell-number-keyboard/meta.ts +167 -0
  92. package/lowcode/pisell-price-keyboard/meta.ts +167 -0
  93. package/lowcode/virtual-keyboard/meta.ts +131 -0
  94. package/package.json +3 -3
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "saas" | "xzero";
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -20,7 +20,7 @@ declare const formFieldMap: {
20
20
  Subdomain: import("react").FC<import("antd").InputProps & {
21
21
  onChange: (value: string) => void;
22
22
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "saas" | "xzero";
23
+ rootDomain: "custom" | "xzero" | "saas";
24
24
  customDomain?: string | undefined;
25
25
  value?: string | undefined;
26
26
  tenantId: string;
@@ -60,11 +60,19 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
64
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
64
+ options?: any;
65
+ optionSourceType?: "custom" | "default" | "api" | undefined;
66
+ labelField: string;
67
+ valueField: string;
68
+ extraParams?: Record<string, any> | undefined;
65
69
  } & {
66
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
- }) | 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("antd").InputProps & {
70
+ dataSource?: any;
71
+ }) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
72
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
73
+ } & {
74
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
75
+ }) | 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("antd").InputProps & {
68
76
  onChange: (value: string) => void;
69
77
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
70
78
  JSON: import("react").FC<any>;
@@ -79,24 +87,16 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
79
87
  Subdomain: import("react").FC<import("antd").InputProps & {
80
88
  onChange: (value: string) => void;
81
89
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
82
- rootDomain: "custom" | "saas" | "xzero";
90
+ rootDomain: "custom" | "xzero" | "saas";
83
91
  customDomain?: string | undefined;
84
92
  value?: string | undefined;
85
93
  tenantId: string;
86
94
  name?: string | undefined;
87
95
  fieldKey?: string | undefined;
88
96
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
89
- }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
90
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
91
- } & {
92
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
93
- }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
94
- options?: any;
95
- optionSourceType?: "custom" | "default" | "api" | undefined;
96
- labelField: string;
97
- valueField: string;
98
- extraParams?: Record<string, any> | undefined;
97
+ }) | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
98
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
99
99
  } & {
100
- dataSource?: any;
101
- }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
100
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
101
+ });
102
102
  export { getFieldComponent, formFieldMap };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputNumberProps } from 'antd/es/input-number';
2
3
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
3
4
  value?: number;
@@ -1,9 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
- export interface PisellAdjustPriceProps {
3
- value?: number;
4
- originValue: number;
5
- defaultValue?: number;
6
- onChange?: (val: number) => void;
7
- }
3
+ import { PisellAdjustPriceProps } from './type';
8
4
  declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
9
5
  export default PisellAdjustPrice;
@@ -1,9 +1,11 @@
1
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 = ["value", "onChange", "defaultValue", "originValue"];
2
+ var _excluded = ["value", "onChange", "defaultValue", "originValue", "selectType"];
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ 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; }
5
+ 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; }
3
6
  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; }
4
7
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
8
  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); }
6
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
10
  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."); }
9
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); }
@@ -15,16 +17,20 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
15
17
  import React, { useEffect, useMemo, useState } from 'react';
16
18
  import { Segmented } from 'antd';
17
19
  import classNames from 'classnames';
20
+ import { setTheme } from '@pisell/utils';
18
21
  import PisellText from "../pisellText";
19
22
  import Amount from "../virtual-keyboard/Amount";
20
23
  import { getText } from "../../locales";
21
24
  import "./index.less";
22
25
  import usePisellConfig from "../pisell-config-provider/hooks/usePisellConfig";
26
+ import { defaultConfig } from "./status";
23
27
  var PisellAdjustPrice = function PisellAdjustPrice(props) {
24
28
  var value = props.value,
25
29
  onChange = props.onChange,
26
30
  defaultValue = props.defaultValue,
27
31
  originValue = props.originValue,
32
+ _props$selectType = props.selectType,
33
+ selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
28
34
  others = _objectWithoutProperties(props, _excluded);
29
35
  var config = usePisellConfig();
30
36
  var _useState = useState(value || 0),
@@ -47,6 +53,30 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
47
53
  useEffect(function () {
48
54
  document.body.id = 'body';
49
55
  }, []);
56
+
57
+ /**
58
+ * @title: 配置颜色
59
+ * @description: 根据 props 和 selectType 生成最终的配置颜色
60
+ * @param {*} useMemo
61
+ * @return {*}
62
+ * @Author: WangHan
63
+ * @Date: 2025-08-04 18:36
64
+ */
65
+ var configColor = useMemo(function () {
66
+ var currentConfig = defaultConfig[selectType];
67
+
68
+ // 过滤出有效的 props 并合并到默认配置中
69
+ var validProps = Object.entries(props).reduce(function (acc, _ref) {
70
+ var _ref2 = _slicedToArray(_ref, 2),
71
+ key = _ref2[0],
72
+ value = _ref2[1];
73
+ if (value !== undefined && key in currentConfig) {
74
+ acc[key] = value;
75
+ }
76
+ return acc;
77
+ }, {});
78
+ return _objectSpread(_objectSpread({}, currentConfig), validProps);
79
+ }, [selectType, props]);
50
80
  var handleEnter = function handleEnter() {
51
81
  if (isDiscountError) {
52
82
  return;
@@ -93,8 +123,21 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
93
123
  return "".concat(v, "%");
94
124
  }
95
125
  };
126
+ useEffect(function () {
127
+ setTheme({
128
+ '--pisell-adjust-price-text-color': configColor.textColor,
129
+ '--pisell-adjust-price-background-color': configColor.backgroundColor,
130
+ '--pisell-adjust-price-container-background-color': configColor.containerBackgroundColor,
131
+ '--pisell-adjust-price-button-background-color': configColor.buttonBackgroundColor,
132
+ '--pisell-adjust-price-main-text-color': configColor.mainTextColor,
133
+ '--pisell-adjust-price-sub-text-color': configColor.subTextColor
134
+ });
135
+ }, [configColor]);
96
136
  return /*#__PURE__*/React.createElement("div", {
97
- className: "pisell-lowcode-adjust-price-wrap"
137
+ className: classNames('pisell-lowcode-adjust-price-wrap', {
138
+ 'pisell-lowcode-adjust-price-dark': selectType === 'dark',
139
+ 'pisell-lowcode-adjust-price-light': selectType === 'light'
140
+ })
98
141
  }, /*#__PURE__*/React.createElement(Segmented, {
99
142
  size: "large",
100
143
  options: [{
@@ -132,17 +175,29 @@ var PisellAdjustPrice = function PisellAdjustPrice(props) {
132
175
  defaultSelect: updateMode === 'priceOverride',
133
176
  onChange: handleChange,
134
177
  onEnter: handleEnter,
135
- placeholder: discountMode === 'amount' ? '0' : '%'
136
- }))), updateMode === 'discount' && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
178
+ placeholder: discountMode === 'amount' ? '0' : '%',
179
+ rightItemsStyle: {
180
+ buttonBackgroundColor: configColor.buttonBackgroundColor,
181
+ textColor: configColor.textColor,
182
+ resetButtonBackgroundColor: configColor.resetButtonBackgroundColor,
183
+ resetButtonTextColor: configColor.resetButtonTextColor,
184
+ isDoneButtonFollowTheme: configColor.isDoneButtonFollowTheme,
185
+ doneButtonBackgroundColor: configColor.doneButtonBackgroundColor,
186
+ doneButtonTextColor: configColor.doneButtonTextColor
187
+ }
188
+ }))), updateMode === 'discount' && /*#__PURE__*/React.createElement("div", null, configColor.isShowMainText ? /*#__PURE__*/React.createElement("div", {
137
189
  className: "pisell-low-code-adjust-price-total"
138
190
  }, isDiscountError ? /*#__PURE__*/React.createElement(PisellText.Amount, {
139
191
  value: originValue
140
192
  }) : /*#__PURE__*/React.createElement(React.Fragment, null, newValue && getText('pisell-adjust-price-total-after-discount'), /*#__PURE__*/React.createElement(PisellText.Amount, {
141
193
  value: totalAfterDiscount
142
- }))), /*#__PURE__*/React.createElement("div", {
194
+ }))) : null, configColor.isShowSubText ? /*#__PURE__*/React.createElement("div", {
143
195
  className: classNames('pisell-low-code-adjust-price-amount-desc', _defineProperty({}, 'pisell-low-code-adjust-price-amount-desc-error', isDiscountError))
144
196
  }, getText('pisell-adjust-price-discount-can-be-maximum'), ' ', discountMode === 'amount' ? /*#__PURE__*/React.createElement(PisellText.Amount, {
145
- value: originValue
146
- }) : '100%')));
197
+ value: originValue,
198
+ style: {
199
+ color: configColor.subTextColor
200
+ }
201
+ }) : '100%') : null));
147
202
  };
148
203
  export default PisellAdjustPrice;
@@ -1,30 +1,59 @@
1
1
  .pisell-lowcode-adjust-price-wrap {
2
2
  width: 380px;
3
3
  border-radius: 10px;
4
- background-color: #fff;
4
+ background-color: var(--pisell-adjust-price-background-color);
5
5
  padding: 10px;
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  gap: 10px;
9
+ transition: all 0.3s ease;
10
+
11
+ // 浅色模式样式
12
+ &.pisell-lowcode-adjust-price-light {
13
+ .pisell-lowcode-segmented-item-label {
14
+ color: #667085;
15
+ }
16
+ }
17
+
18
+ // 深色模式样式
19
+ &.pisell-lowcode-adjust-price-dark {
20
+ .pisell-lowcode-segmented-item-label {
21
+ color: #d0d5dd;
22
+ }
23
+ }
24
+
25
+ .pisell-lowcode-segmented {
26
+ background: var(--pisell-adjust-price-container-background-color);
27
+ :hover {
28
+ color: var(--pisell-adjust-price-text-color);
29
+ }
30
+ .pisell-lowcode-segmented-item-selected {
31
+ background: var(--pisell-adjust-price-button-background-color);
32
+ .pisell-lowcode-segmented-item-label {
33
+ color: var(--pisell-adjust-price-text-color) !important;
34
+ }
35
+ }
36
+ }
37
+
9
38
  .pisell-lowcode-adjust-price-amount-wrap {
10
39
  padding: 10px;
11
40
  border-radius: 10px;
12
- background: var(--Gray-300, #D0D5DD);
41
+ background: var(--pisell-adjust-price-container-background-color);
13
42
  }
14
43
  .pisell-low-code-adjust-price-total {
15
- color: var(--Gray-900, #101828);
44
+ color: var(--pisell-adjust-price-main-text-color);
16
45
  font-size: 20px;
17
46
  font-weight: 600;
18
47
  line-height: 30px; /* 150% */
19
48
  }
20
49
  .pisell-low-code-adjust-price-amount-desc {
21
- color: var(--Gray-500, #667085);
50
+ color: var(--pisell-adjust-price-sub-text-color);
22
51
  font-size: 16px;
23
52
  font-style: normal;
24
53
  font-weight: 400;
25
54
  line-height: 24px; /* 150% */
26
55
  }
27
56
  .pisell-low-code-adjust-price-amount-desc-error {
28
- color: var(--Error-600, #D92D20);
57
+ color: var(--Error-600, #d92d20);
29
58
  }
30
- }
59
+ }
@@ -0,0 +1,32 @@
1
+ export declare const defaultConfig: {
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
+ isShowMainText: boolean;
13
+ mainTextColor: string;
14
+ isShowSubText: boolean;
15
+ subTextColor: 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
+ isShowMainText: boolean;
28
+ mainTextColor: string;
29
+ isShowSubText: boolean;
30
+ subTextColor: string;
31
+ };
32
+ };
@@ -0,0 +1,32 @@
1
+ export var defaultConfig = {
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
+ isShowMainText: true,
13
+ mainTextColor: '#ffffff',
14
+ isShowSubText: true,
15
+ subTextColor: '#d0d5dd'
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
+ isShowMainText: true,
28
+ mainTextColor: '#101828',
29
+ isShowSubText: true,
30
+ subTextColor: '#667085'
31
+ }
32
+ };
@@ -0,0 +1,20 @@
1
+ export interface PisellAdjustPriceProps {
2
+ value?: number;
3
+ originValue: number;
4
+ defaultValue?: number;
5
+ onChange?: (val: number) => void;
6
+ selectType?: 'light' | 'dark';
7
+ backgroundColor?: string;
8
+ containerBackgroundColor?: string;
9
+ buttonBackgroundColor?: string;
10
+ textColor?: string;
11
+ resetButtonBackgroundColor?: string;
12
+ resetButtonTextColor?: string;
13
+ isDoneButtonFollowTheme?: boolean;
14
+ doneButtonBackgroundColor?: string;
15
+ doneButtonTextColor?: string;
16
+ isShowMainText?: boolean;
17
+ mainTextColor?: string;
18
+ isShowSubText?: boolean;
19
+ subTextColor?: string;
20
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
3
2
  import { PopoverProps, TimePickerProps } from "antd";
4
3
  import "./index.less";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type ColumnsSettingProps = {
3
2
  value?: Record<string, any>[];
4
3
  onChange?: (val: Record<string, any>[]) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: {
3
2
  field: {
4
3
  field_icon: string;
@@ -1,22 +1,6 @@
1
- import React from 'react';
2
- import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
- export interface AmountProps {
4
- max?: number;
5
- min?: number;
6
- doneText?: string;
7
- resetText?: string;
8
- defaultValue?: string | number;
9
- placeholder?: string;
10
- amountProps?: {
11
- showCurrencySymbol: boolean;
12
- useThousandsSeparator: boolean;
13
- };
14
- presets?: BaseNumberKeyboardProps['presets'];
15
- value?: string | number;
16
- onChange?: (val: string | number) => void;
17
- onEnter?: (val: string | number) => void;
18
- defaultSelect?: boolean;
19
- inputFormat?: (_v: string) => React.ReactNode | null;
20
- }
1
+ /// <reference types="react" />
2
+ import { AmountProps, RightItemsStyleProps } from './types';
3
+ import './index.less';
4
+ export type { AmountProps, RightItemsStyleProps };
21
5
  declare const Amount: (props: AmountProps) => JSX.Element;
22
6
  export default Amount;
@@ -1,14 +1,29 @@
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", "amountProps", "doneText", "resetText", "defaultValue", "placeholder", "onEnter", "presets", "defaultSelect", "inputFormat", "rightItemsStyle", "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
- import React, { useEffect } from 'react';
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 PisellText from "../../pisellText";
22
+ import usePisellConfig from "../../pisell-config-provider/hooks/usePisellConfig";
23
+ import { amountThemeConfig } from "./themeConfig";
24
+ import "./index.less";
11
25
  var Amount = function Amount(props) {
26
+ var _rightItemsStyle$isDo;
12
27
  var min = props.min,
13
28
  max = props.max,
14
29
  amountProps = props.amountProps,
@@ -19,9 +34,14 @@ var Amount = function Amount(props) {
19
34
  onEnter = props.onEnter,
20
35
  presets = props.presets,
21
36
  defaultSelect = props.defaultSelect,
22
- inputFormat = props.inputFormat;
37
+ inputFormat = props.inputFormat,
38
+ rightItemsStyle = props.rightItemsStyle,
39
+ _props$selectType = props.selectType,
40
+ selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
41
+ others = _objectWithoutProperties(props, _excluded);
42
+ var config = usePisellConfig();
23
43
  var _useControllableValue = useControllableValue(props, {
24
- defaultValue: defaultValue || ""
44
+ defaultValue: defaultValue || ''
25
45
  }),
26
46
  _useControllableValue2 = _slicedToArray(_useControllableValue, 2),
27
47
  value = _useControllableValue2[0],
@@ -29,6 +49,41 @@ var Amount = function Amount(props) {
29
49
  useEffect(function () {
30
50
  document.body.id = 'body';
31
51
  }, []);
52
+
53
+ /**
54
+ * 配置颜色
55
+ * 根据 props 和 selectType 生成最终的配置颜色
56
+ */
57
+ var configColor = useMemo(function () {
58
+ var currentConfig = amountThemeConfig[selectType];
59
+
60
+ // 过滤出有效的 props 并合并到默认配置中
61
+ var validProps = Object.entries(props).reduce(function (acc, _ref) {
62
+ var _ref2 = _slicedToArray(_ref, 2),
63
+ key = _ref2[0],
64
+ value = _ref2[1];
65
+ if (value !== undefined && key in currentConfig) {
66
+ acc[key] = value;
67
+ }
68
+ return acc;
69
+ }, {});
70
+ return _objectSpread(_objectSpread({}, currentConfig), validProps);
71
+ }, [selectType, props]);
72
+ useEffect(function () {
73
+ setTheme({
74
+ '--pisell-amount-background-color': configColor.backgroundColor,
75
+ '--pisell-amount-container-background-color': configColor.containerBackgroundColor,
76
+ '--pisell-amount-text-color': configColor.textColor,
77
+ '--pisell-amount-keyboard-background-color': configColor.keyboardBackgroundColor,
78
+ '--pisell-amount-keyboard-button-background-color': configColor.keyboardButtonBackgroundColor,
79
+ '--pisell-amount-keyboard-button-text-color': configColor.keyboardButtonTextColor,
80
+ '--pisell-amount-keyboard-button-hover-color': configColor.keyboardButtonHoverColor,
81
+ '--pisell-amount-reset-button-background-color': configColor.resetButtonBackgroundColor,
82
+ '--pisell-amount-reset-button-text-color': configColor.resetButtonTextColor,
83
+ '--pisell-amount-done-button-background-color': configColor.doneButtonBackgroundColor,
84
+ '--pisell-amount-done-button-text-color': configColor.doneButtonTextColor
85
+ });
86
+ }, [configColor]);
32
87
  var format = function format(_v) {
33
88
  var v = "".concat(_v);
34
89
  if (inputFormat !== null && inputFormat !== void 0 && inputFormat(v)) {
@@ -44,10 +99,18 @@ var Amount = function Amount(props) {
44
99
  precision: precision,
45
100
  hideDecimalForWholeNumbers: false,
46
101
  showCurrencySymbol: amountProps === null || amountProps === void 0 ? void 0 : amountProps.showCurrencySymbol,
47
- useThousandsSeparator: amountProps === null || amountProps === void 0 ? void 0 : amountProps.useThousandsSeparator
102
+ useThousandsSeparator: amountProps === null || amountProps === void 0 ? void 0 : amountProps.useThousandsSeparator,
103
+ style: {
104
+ color: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || configColor.textColor
105
+ }
48
106
  }), endWith && '.');
49
107
  };
50
- return /*#__PURE__*/React.createElement(BaseNumberKeyboard, {
108
+ return /*#__PURE__*/React.createElement("div", {
109
+ className: classNames('pisell-amount-keyboard-wrap', {
110
+ 'pisell-amount-keyboard-dark': selectType === 'dark',
111
+ 'pisell-amount-keyboard-light': selectType === 'light'
112
+ })
113
+ }, /*#__PURE__*/React.createElement(BaseNumberKeyboard, {
51
114
  defaultSelect: defaultSelect,
52
115
  max: max,
53
116
  min: min,
@@ -59,7 +122,16 @@ var Amount = function Amount(props) {
59
122
  doneText: doneText,
60
123
  resetText: resetText,
61
124
  onEnter: onEnter,
62
- presets: presets
63
- });
125
+ presets: presets,
126
+ rightItemsStyle: _objectSpread(_objectSpread({}, rightItemsStyle), {}, {
127
+ buttonBackgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.buttonBackgroundColor) || configColor.buttonBackgroundColor,
128
+ textColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.textColor) || configColor.textColor,
129
+ resetButtonBackgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonBackgroundColor) || configColor.resetButtonBackgroundColor,
130
+ resetButtonTextColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.resetButtonTextColor) || configColor.resetButtonTextColor,
131
+ isDoneButtonFollowTheme: (_rightItemsStyle$isDo = rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.isDoneButtonFollowTheme) !== null && _rightItemsStyle$isDo !== void 0 ? _rightItemsStyle$isDo : configColor.isDoneButtonFollowTheme,
132
+ doneButtonBackgroundColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonBackgroundColor) || configColor.doneButtonBackgroundColor,
133
+ doneButtonTextColor: (rightItemsStyle === null || rightItemsStyle === void 0 ? void 0 : rightItemsStyle.doneButtonTextColor) || configColor.doneButtonTextColor
134
+ })
135
+ }));
64
136
  };
65
137
  export default Amount;
@@ -0,0 +1,39 @@
1
+ .pisell-amount-keyboard-wrap {
2
+ background-color: var(--pisell-amount-background-color, #ffffff);
3
+
4
+ &.pisell-amount-keyboard-dark {
5
+ background-color: var(--pisell-amount-background-color, rgba(0, 0, 0, 0.70));
6
+ }
7
+
8
+ &.pisell-amount-keyboard-light {
9
+ background-color: var(--pisell-amount-background-color, #ffffff);
10
+ }
11
+
12
+ .pisell-virtual-keyboard-input {
13
+ background-color: var(--pisell-amount-container-background-color, #d0d5dd);
14
+ color: var(--pisell-amount-text-color, #000000);
15
+ }
16
+
17
+ .pisell-keyboard {
18
+ background-color: var(--pisell-amount-keyboard-background-color, #f9f9f9);
19
+
20
+ .pisell-keyboard-item {
21
+ background-color: var(--pisell-amount-keyboard-button-background-color, #ffffff);
22
+ color: var(--pisell-amount-keyboard-button-text-color, #000000);
23
+
24
+ &:hover {
25
+ background-color: var(--pisell-amount-keyboard-button-hover-color, #f5f5f5);
26
+ }
27
+ }
28
+
29
+ .pisell-keyboard-reset-button {
30
+ background-color: var(--pisell-amount-reset-button-background-color, #ffffff);
31
+ color: var(--pisell-amount-reset-button-text-color, #d92d20);
32
+ }
33
+
34
+ .pisell-keyboard-done-button {
35
+ background-color: var(--pisell-amount-done-button-background-color, #4ca30d);
36
+ color: var(--pisell-amount-done-button-text-color, #ffffff);
37
+ }
38
+ }
39
+ }