@pisell/materials 1.0.865 → 1.0.866

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 (77) 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 +1 -1
  6. package/build/lowcode/preview.js +150 -150
  7. package/build/lowcode/render/default/view.js +31 -26
  8. package/build/lowcode/view.js +36 -31
  9. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  10. package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
  11. package/es/components/date-picker/index.d.ts +0 -1
  12. package/es/components/media/index.d.ts +18 -0
  13. package/es/components/media/index.js +340 -0
  14. package/es/components/media/index.less +100 -0
  15. package/es/components/page/index.d.ts +0 -1
  16. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  17. package/es/components/pisellAdjustPrice/index.js +46 -45
  18. package/es/components/pisellAdjustPrice/status.js +32 -0
  19. package/es/components/pisellVHFix/index.d.ts +13 -0
  20. package/es/components/pisellVHFix/index.js +36 -0
  21. package/es/components/pisellVHFix/index.less +10 -0
  22. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  23. package/es/components/select-time/index.d.ts +1 -0
  24. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  25. package/es/components/table/Table/fields/index.d.ts +0 -1
  26. package/es/components/virtual-keyboard/Number/index.d.ts +1 -0
  27. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  28. package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
  29. package/lib/components/date-picker/index.d.ts +0 -1
  30. package/lib/components/media/index.d.ts +18 -0
  31. package/lib/components/media/index.js +265 -0
  32. package/lib/components/media/index.less +100 -0
  33. package/lib/components/page/index.d.ts +0 -1
  34. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  35. package/lib/components/pisellAdjustPrice/index.js +27 -36
  36. package/lib/components/pisellAdjustPrice/status.js +60 -0
  37. package/lib/components/pisellVHFix/index.d.ts +13 -0
  38. package/lib/components/pisellVHFix/index.js +56 -0
  39. package/lib/components/pisellVHFix/index.less +10 -0
  40. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  41. package/lib/components/select-time/index.d.ts +1 -0
  42. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  43. package/lib/components/table/Table/fields/index.d.ts +0 -1
  44. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -0
  45. package/package.json +1 -1
  46. package/es/components/iconfont/index.d.ts +0 -8
  47. package/es/components/pisellToast/index.d.ts +0 -16
  48. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
  49. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  50. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  51. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  52. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  53. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  54. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
  55. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  56. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  57. package/es/components/productCard/cartSkuCard/index.d.ts +0 -8
  58. package/es/components/productCard/cartSkuCard/locales.d.ts +0 -93
  59. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -3
  60. package/es/components/productCard/components/Sales/index.d.ts +0 -3
  61. package/es/components/translation/index.d.ts +0 -14
  62. package/lib/components/iconfont/index.d.ts +0 -8
  63. package/lib/components/pisellToast/index.d.ts +0 -16
  64. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +0 -21
  65. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +0 -2
  66. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +0 -3
  67. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +0 -10
  68. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +0 -20
  69. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +0 -3
  70. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +0 -11
  71. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +0 -3
  72. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +0 -6
  73. package/lib/components/productCard/cartSkuCard/index.d.ts +0 -8
  74. package/lib/components/productCard/cartSkuCard/locales.d.ts +0 -93
  75. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -3
  76. package/lib/components/productCard/components/Sales/index.d.ts +0 -3
  77. package/lib/components/translation/index.d.ts +0 -14
@@ -0,0 +1,100 @@
1
+ .pisell-media {
2
+ .pisell-media-current-files {
3
+ margin-top: 8px;
4
+ display: flex;
5
+ flex-wrap: wrap;
6
+ gap: 8px;
7
+
8
+ .pisell-media-file-item {
9
+ position: relative;
10
+ border: 1px solid #d9d9d9;
11
+ border-radius: 6px;
12
+ padding: 4px;
13
+ display: flex;
14
+ align-items: center;
15
+ gap: 8px;
16
+
17
+ .pisell-media-file-actions {
18
+ position: absolute;
19
+ top: 4px;
20
+ right: 4px;
21
+ opacity: 0;
22
+ transition: opacity 0.2s;
23
+ }
24
+
25
+ &:hover .pisell-media-file-actions {
26
+ opacity: 1;
27
+ }
28
+ }
29
+ }
30
+
31
+ .pisell-media-modal {
32
+ .pisell-media-upload {
33
+ margin-bottom: 16px;
34
+ padding-bottom: 16px;
35
+ border-bottom: 1px solid #f0f0f0;
36
+ }
37
+
38
+ .pisell-media-list {
39
+ display: grid;
40
+ grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
41
+ gap: 12px;
42
+ max-height: 400px;
43
+ overflow-y: auto;
44
+
45
+ .pisell-media-item {
46
+ border: 2px solid transparent;
47
+ border-radius: 8px;
48
+ padding: 8px;
49
+ cursor: pointer;
50
+ background: #fafafa;
51
+ transition: all 0.2s;
52
+ display: flex;
53
+ flex-direction: column;
54
+ align-items: center;
55
+ text-align: center;
56
+ min-height: 120px;
57
+
58
+ &:hover {
59
+ border-color: #1890ff;
60
+ background: #f0f8ff;
61
+ }
62
+
63
+ &.selected {
64
+ border-color: #1890ff;
65
+ background: #e6f7ff;
66
+ }
67
+
68
+ .pisell-media-item-info {
69
+ margin-top: 8px;
70
+ width: 100%;
71
+
72
+ .pisell-media-item-name {
73
+ font-size: 12px;
74
+ color: #333;
75
+ margin-bottom: 4px;
76
+ overflow: hidden;
77
+ text-overflow: ellipsis;
78
+ white-space: nowrap;
79
+ }
80
+
81
+ .pisell-media-item-size {
82
+ font-size: 10px;
83
+ color: #999;
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ .pisell-media-selected {
90
+ margin-top: 16px;
91
+ padding: 8px 12px;
92
+ background: #f6ffed;
93
+ border: 1px solid #b7eb8f;
94
+ border-radius: 6px;
95
+ color: #52c41a;
96
+ font-size: 14px;
97
+ text-align: center;
98
+ }
99
+ }
100
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ConfigProviderProps } from '../config-provider';
3
2
  interface PageProps extends ConfigProviderProps {
4
3
  }
@@ -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;
@@ -41,6 +41,7 @@ var import_Amount = __toESM(require("../virtual-keyboard/Amount"));
41
41
  var import_locales = require("../../locales");
42
42
  var import_index = require("./index.less");
43
43
  var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
44
+ var import_status = require("./status");
44
45
  var PisellAdjustPrice = (props) => {
45
46
  const {
46
47
  value,
@@ -48,19 +49,6 @@ var PisellAdjustPrice = (props) => {
48
49
  defaultValue,
49
50
  originValue,
50
51
  selectType = "light",
51
- backgroundColor = "#ffffff",
52
- containerBackgroundColor = "#d0d5dd",
53
- buttonBackgroundColor = "#ffffff",
54
- textColor = "#000000",
55
- resetButtonBackgroundColor = "#ffffff",
56
- resetButtonTextColor = "#d92d20",
57
- isDoneButtonFollowTheme = true,
58
- doneButtonBackgroundColor = "#4ca30d",
59
- doneButtonTextColor = "#ffffff",
60
- isShowMainText = true,
61
- mainTextColor = "#101828",
62
- isShowSubText = true,
63
- subTextColor = "#667085",
64
52
  ...others
65
53
  } = props;
66
54
  const config = (0, import_usePisellConfig.default)();
@@ -74,6 +62,16 @@ var PisellAdjustPrice = (props) => {
74
62
  (0, import_react.useEffect)(() => {
75
63
  document.body.id = "body";
76
64
  }, []);
65
+ const configColor = (0, import_react.useMemo)(() => {
66
+ const currentConfig = import_status.defaultConfig[selectType];
67
+ const validProps = Object.entries(props).reduce((acc, [key, value2]) => {
68
+ if (value2 !== void 0 && key in currentConfig) {
69
+ acc[key] = value2;
70
+ }
71
+ return acc;
72
+ }, {});
73
+ return { ...currentConfig, ...validProps };
74
+ }, [selectType, props]);
77
75
  const handleEnter = () => {
78
76
  if (isDiscountError) {
79
77
  return;
@@ -115,21 +113,14 @@ var PisellAdjustPrice = (props) => {
115
113
  };
116
114
  (0, import_react.useEffect)(() => {
117
115
  (0, import_utils.setTheme)({
118
- "--pisell-adjust-price-text-color": textColor,
119
- "--pisell-adjust-price-background-color": backgroundColor,
120
- "--pisell-adjust-price-container-background-color": containerBackgroundColor,
121
- "--pisell-adjust-price-button-background-color": buttonBackgroundColor,
122
- "--pisell-adjust-price-main-text-color": mainTextColor,
123
- "--pisell-adjust-price-sub-text-color": subTextColor
116
+ "--pisell-adjust-price-text-color": configColor.textColor,
117
+ "--pisell-adjust-price-background-color": configColor.backgroundColor,
118
+ "--pisell-adjust-price-container-background-color": configColor.containerBackgroundColor,
119
+ "--pisell-adjust-price-button-background-color": configColor.buttonBackgroundColor,
120
+ "--pisell-adjust-price-main-text-color": configColor.mainTextColor,
121
+ "--pisell-adjust-price-sub-text-color": configColor.subTextColor
124
122
  });
125
- }, [
126
- textColor,
127
- backgroundColor,
128
- containerBackgroundColor,
129
- buttonBackgroundColor,
130
- mainTextColor,
131
- subTextColor
132
- ]);
123
+ }, [configColor]);
133
124
  return /* @__PURE__ */ import_react.default.createElement(
134
125
  "div",
135
126
  {
@@ -189,17 +180,17 @@ var PisellAdjustPrice = (props) => {
189
180
  onEnter: handleEnter,
190
181
  placeholder: discountMode === "amount" ? "0" : "%",
191
182
  rightItemsStyle: {
192
- buttonBackgroundColor,
193
- textColor,
194
- resetButtonBackgroundColor,
195
- resetButtonTextColor,
196
- isDoneButtonFollowTheme,
197
- doneButtonBackgroundColor,
198
- doneButtonTextColor
183
+ buttonBackgroundColor: configColor.buttonBackgroundColor,
184
+ textColor: configColor.textColor,
185
+ resetButtonBackgroundColor: configColor.resetButtonBackgroundColor,
186
+ resetButtonTextColor: configColor.resetButtonTextColor,
187
+ isDoneButtonFollowTheme: configColor.isDoneButtonFollowTheme,
188
+ doneButtonBackgroundColor: configColor.doneButtonBackgroundColor,
189
+ doneButtonTextColor: configColor.doneButtonTextColor
199
190
  }
200
191
  }
201
192
  )),
202
- updateMode === "discount" && /* @__PURE__ */ import_react.default.createElement("div", null, isShowMainText ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-low-code-adjust-price-total" }, isDiscountError ? /* @__PURE__ */ import_react.default.createElement(import_pisellText.default.Amount, { value: originValue }) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, newValue && (0, import_locales.getText)("pisell-adjust-price-total-after-discount"), /* @__PURE__ */ import_react.default.createElement(import_pisellText.default.Amount, { value: totalAfterDiscount }))) : null, isShowSubText ? /* @__PURE__ */ import_react.default.createElement(
193
+ updateMode === "discount" && /* @__PURE__ */ import_react.default.createElement("div", null, configColor.isShowMainText ? /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-low-code-adjust-price-total" }, isDiscountError ? /* @__PURE__ */ import_react.default.createElement(import_pisellText.default.Amount, { value: originValue }) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, newValue && (0, import_locales.getText)("pisell-adjust-price-total-after-discount"), /* @__PURE__ */ import_react.default.createElement(import_pisellText.default.Amount, { value: totalAfterDiscount }))) : null, configColor.isShowSubText ? /* @__PURE__ */ import_react.default.createElement(
203
194
  "div",
204
195
  {
205
196
  className: (0, import_classnames.default)(
@@ -216,7 +207,7 @@ var PisellAdjustPrice = (props) => {
216
207
  {
217
208
  value: originValue,
218
209
  style: {
219
- color: subTextColor
210
+ color: configColor.subTextColor
220
211
  }
221
212
  }
222
213
  ) : "100%"
@@ -0,0 +1,60 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/pisellAdjustPrice/status.ts
20
+ var status_exports = {};
21
+ __export(status_exports, {
22
+ defaultConfig: () => defaultConfig
23
+ });
24
+ module.exports = __toCommonJS(status_exports);
25
+ var defaultConfig = {
26
+ dark: {
27
+ backgroundColor: "rgba(0, 0, 0, 0.70)",
28
+ containerBackgroundColor: "rgba(0, 0, 0, 0.40)",
29
+ buttonBackgroundColor: "#ffffff",
30
+ textColor: "#000000",
31
+ resetButtonBackgroundColor: "#ffffff",
32
+ resetButtonTextColor: "#d92d20",
33
+ isDoneButtonFollowTheme: true,
34
+ doneButtonBackgroundColor: "#4ca30d",
35
+ doneButtonTextColor: "#ffffff",
36
+ isShowMainText: true,
37
+ mainTextColor: "#ffffff",
38
+ isShowSubText: true,
39
+ subTextColor: "#d0d5dd"
40
+ },
41
+ light: {
42
+ backgroundColor: "#ffffff",
43
+ containerBackgroundColor: "#d0d5dd",
44
+ buttonBackgroundColor: "#ffffff",
45
+ textColor: "#000000",
46
+ resetButtonBackgroundColor: "#ffffff",
47
+ resetButtonTextColor: "#d92d20",
48
+ isDoneButtonFollowTheme: true,
49
+ doneButtonBackgroundColor: "#4ca30d",
50
+ doneButtonTextColor: "#ffffff",
51
+ isShowMainText: true,
52
+ mainTextColor: "#101828",
53
+ isShowSubText: true,
54
+ subTextColor: "#667085"
55
+ }
56
+ };
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ defaultConfig
60
+ });
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface PisellVHFixProps {
4
+ children?: React.ReactNode;
5
+ className?: string;
6
+ style?: React.CSSProperties;
7
+ height?: number;
8
+ minHeight?: boolean;
9
+ maxHeight?: boolean;
10
+ minusPixels?: number;
11
+ }
12
+ declare const PisellVHFix: React.FC<PisellVHFixProps>;
13
+ export default PisellVHFix;
@@ -0,0 +1,56 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/pisellVHFix/index.tsx
30
+ var pisellVHFix_exports = {};
31
+ __export(pisellVHFix_exports, {
32
+ default: () => pisellVHFix_default
33
+ });
34
+ module.exports = __toCommonJS(pisellVHFix_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_useVH = require("../../hooks/useVH");
37
+ var import_index = require("./index.less");
38
+ var PisellVHFix = ({
39
+ children,
40
+ className,
41
+ style,
42
+ height = 100,
43
+ minHeight = false,
44
+ maxHeight = false,
45
+ minusPixels = 0
46
+ }) => {
47
+ (0, import_useVH.useVH)();
48
+ const containerStyle = {
49
+ ...style,
50
+ height: minusPixels > 0 ? `calc(var(--vh, 1vh) * ${height} - ${minusPixels}px)` : `calc(var(--vh, 1vh) * ${height})`,
51
+ ...minHeight && { minHeight: `calc(var(--vh, 1vh) * ${height})` },
52
+ ...maxHeight && { maxHeight: `calc(var(--vh, 1vh) * ${height})` }
53
+ };
54
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: `pisell-vh-fix ${className || ""}`, style: containerStyle }, children);
55
+ };
56
+ var pisellVHFix_default = PisellVHFix;
@@ -0,0 +1,10 @@
1
+ .pisell-vh-fix {
2
+ box-sizing: border-box;
3
+ overflow: hidden;
4
+
5
+ // 确保在Safari移动端正确显示
6
+ -webkit-overflow-scrolling: touch;
7
+
8
+ // 防止iOS Safari的弹性滚动
9
+ overscroll-behavior: contain;
10
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  export interface PisellWalletPassCardProps {
4
3
  id: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VirtualKeyboardTimeProps } from "../virtual-keyboard/Time";
2
3
  import { PopoverProps, TimePickerProps } from "antd";
3
4
  import "./index.less";
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const SelectField: () => JSX.Element;
3
2
  export default SelectField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const fieldMaps: {
3
2
  text: {
4
3
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface NumberProps {
2
3
  max?: number;
3
4
  min?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.865",
3
+ "version": "1.0.866",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,8 +0,0 @@
1
- import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
- import React from 'react';
3
- interface IconFontProps extends IconComponentProps {
4
- type: string;
5
- onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
- }
7
- declare const IconFont: React.FC<IconFontProps>;
8
- export default IconFont;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface PisellToastProps {
4
- /** 提示内容 */
5
- content: React.ReactNode;
6
- /** 自动关闭的延时,单位秒。设为 0 时不自动关闭 */
7
- duration?: number;
8
- /** 是否展示action */
9
- showAction?: boolean;
10
- /** action文案 */
11
- actionText?: string;
12
- /** 关闭时触发的回调函数 */
13
- onClose?: () => void;
14
- }
15
- declare const PisellToast: (props: PisellToastProps) => void;
16
- export default PisellToast;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface IProps {
4
- isShowImage?: boolean;
5
- dataSource: {
6
- image?: string;
7
- bundle?: any[];
8
- options?: any[];
9
- product_option_string?: string;
10
- name?: string;
11
- symbol?: string;
12
- price?: string | number;
13
- total?: number;
14
- origin_total?: number;
15
- num?: number;
16
- };
17
- style?: React.CSSProperties;
18
- isMainProduct?: boolean;
19
- }
20
- declare const BasicInfo: (props: IProps) => JSX.Element;
21
- export default BasicInfo;
@@ -1,2 +0,0 @@
1
- declare const DiscountReason: (props: any) => JSX.Element;
2
- export default DiscountReason;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Holders: (props: any) => JSX.Element | null;
3
- export default Holders;
@@ -1,10 +0,0 @@
1
- import './index.less';
2
- interface IProps {
3
- isShowImage?: boolean;
4
- dataSource: {
5
- bundle?: any[];
6
- symbol?: string;
7
- };
8
- }
9
- declare const Packages: ({ isShowImage, dataSource }: IProps) => JSX.Element | null;
10
- export default Packages;
@@ -1,20 +0,0 @@
1
- /**
2
- * @title: 金额是否是负
3
- * @description:
4
- * @param {string} type
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2024-11-22 10:01
8
- */
9
- export declare const minusSign: (item: any, type?: string) => "" | "-";
10
- /**
11
- * @title: 金额格式化
12
- * @description:
13
- * @param {number} price
14
- * @param {string} amountSymbol
15
- * @param {number} digit
16
- * @return {*}
17
- * @Author: WangHan
18
- * @Date: 2024-11-22 10:58
19
- */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Resources: (props: any) => JSX.Element;
3
- export default Resources;
@@ -1,11 +0,0 @@
1
- import './index.less';
2
- interface IProps {
3
- hideDivider?: boolean;
4
- dataSource: {
5
- symbol?: string;
6
- relation_products?: any[];
7
- bundle?: any[];
8
- };
9
- }
10
- declare const Sales: ({ hideDivider, dataSource }: IProps) => JSX.Element | null;
11
- export default Sales;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Specs: (props: any) => JSX.Element | null;
3
- export default Specs;
@@ -1,6 +0,0 @@
1
- import 'dayjs/locale/zh-cn';
2
- import 'dayjs/locale/en';
3
- import 'dayjs/locale/zh-tw';
4
- import './index.less';
5
- declare const TimeRange: (props: any) => JSX.Element | null;
6
- export default TimeRange;
@@ -1,8 +0,0 @@
1
- import './index.less';
2
- import { ProductCardTypes } from '../types';
3
- interface ISKUCardProps extends ProductCardTypes {
4
- type: 'a2' | 'a5';
5
- }
6
- export declare const PREFIX = "pisell-cart-sku-card";
7
- declare const CartSkuCard: (props: ISKUCardProps) => JSX.Element;
8
- export default CartSkuCard;
@@ -1,93 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.product.card.discount.reason': string;
4
- 'pisell2.cart.sku-card.more': string;
5
- 'pisell2.cart.sku-card.packages.title': string;
6
- 'pisell2.cart.sku-card.sales.title': string;
7
- 'pisell2.product.card.day': (val: number) => string;
8
- 'pisell2.product.card.day.event': (val: number) => string;
9
- 'pisell2.product.card.minute': (val: number) => string;
10
- 'pisell2.product.card.discount.note': string;
11
- 'pisell2.product.card.edit': string;
12
- 'pisell2.product.card.discount.add.note': string;
13
- 'pisell2.product.card.discount.edit.note': string;
14
- 'pisell2.product.card.confirm': string;
15
- 'pisell2.product.card.cancel': string;
16
- 'pisell2.product.card.note.pla': string;
17
- 'pisell2.product.card.items.package': string;
18
- 'pisell2.product.card.view-all': string;
19
- 'pisell2.product.card.view-less': string;
20
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
21
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
22
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
23
- 'pisell2.product.card.add.holder.modal.title.1': string;
24
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
25
- 'pisell2.product.card.sales': string;
26
- 'pisell2.product.card.add.holder.modal.cancel': string;
27
- 'pisell2.product.card.add.holder.modal.clear': string;
28
- 'pisell2.product.card.add.holder.modal.apply': string;
29
- 'pisell2.product.card.add.holder.modal.add': string;
30
- 'pisell2.product.card.closing-soon.warning': string;
31
- };
32
- 'zh-CN': {
33
- 'pisell2.product.card.discount.reason': string;
34
- 'pisell2.cart.sku-card.more': string;
35
- 'pisell2.cart.sku-card.packages.title': string;
36
- 'pisell2.cart.sku-card.sales.title': string;
37
- 'pisell2.product.card.edit': string;
38
- 'pisell2.product.card.day': (val: number) => string;
39
- 'pisell2.product.card.day.event': (val: number) => string;
40
- 'pisell2.product.card.minute': (val: number) => string;
41
- 'pisell2.product.card.discount.note': string;
42
- 'pisell2.product.card.discount.add.note': string;
43
- 'pisell2.product.card.discount.edit.note': string;
44
- 'pisell2.product.card.confirm': string;
45
- 'pisell2.product.card.cancel': string;
46
- 'pisell2.product.card.note.pla': string;
47
- 'pisell2.product.card.items.package': string;
48
- 'pisell2.product.card.view-all': string;
49
- 'pisell2.product.card.view-less': string;
50
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
51
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
52
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
53
- 'pisell2.product.card.add.holder.modal.title.1': string;
54
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
55
- 'pisell2.product.card.sales': string;
56
- 'pisell2.product.card.add.holder.modal.cancel': string;
57
- 'pisell2.product.card.add.holder.modal.clear': string;
58
- 'pisell2.product.card.add.holder.modal.apply': string;
59
- 'pisell2.product.card.add.holder.modal.add': string;
60
- 'pisell2.product.card.closing-soon.warning': string;
61
- };
62
- 'zh-HK': {
63
- 'pisell2.product.card.discount.reason': string;
64
- 'pisell2.cart.sku-card.more': string;
65
- 'pisell2.cart.sku-card.packages.title': string;
66
- 'pisell2.cart.sku-card.sales.title': string;
67
- 'pisell2.product.card.edit': string;
68
- 'pisell2.product.card.day': (val: number) => string;
69
- 'pisell2.product.card.day.event': (val: number) => string;
70
- 'pisell2.product.card.minute': (val: number) => string;
71
- 'pisell2.product.card.discount.note': string;
72
- 'pisell2.product.card.discount.add.note': string;
73
- 'pisell2.product.card.discount.edit.note': string;
74
- 'pisell2.product.card.confirm': string;
75
- 'pisell2.product.card.cancel': string;
76
- 'pisell2.product.card.note.pla': string;
77
- 'pisell2.product.card.items.package': string;
78
- 'pisell2.product.card.view-all': string;
79
- 'pisell2.product.card.view-less': string;
80
- 'pisell2.product.card.add.holder.button.text': (val: string) => string;
81
- 'pisell2.product.card.add.holder.placeholder': (val: string) => string;
82
- 'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
83
- 'pisell2.product.card.add.holder.modal.title.1': string;
84
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
85
- 'pisell2.product.card.sales': string;
86
- 'pisell2.product.card.add.holder.modal.cancel': string;
87
- 'pisell2.product.card.add.holder.modal.clear': string;
88
- 'pisell2.product.card.add.holder.modal.apply': string;
89
- 'pisell2.product.card.add.holder.modal.add': string;
90
- 'pisell2.product.card.closing-soon.warning': string;
91
- };
92
- };
93
- export default _default;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
- export default Footer;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const Sales: ({ item, isShowNote }: any) => JSX.Element | null;
3
- export default Sales;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare type Value = {
4
- en: string;
5
- 'zh-CN': string;
6
- 'zh-HK': string;
7
- };
8
- interface TranslationProps {
9
- value: Value;
10
- onChange: (value: Value) => void;
11
- maxLength?: number;
12
- }
13
- declare const Translation: React.FC<TranslationProps>;
14
- export default Translation;