@pisell/private-materials 3.4.41 → 3.4.42

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 (119) 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 +151 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +1 -1
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/Sales/Summary/utils.d.ts +1 -1
  12. package/es/components/authentication/admin/AuthMethods/AuthMethods.less +11 -9
  13. package/es/components/authentication/admin/AuthMethods/index.js +29 -6
  14. package/es/components/booking/addons/model.d.ts +1 -10
  15. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  16. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  17. package/es/components/booking/forms/model.d.ts +1 -10
  18. package/es/components/booking/forms/table/index.d.ts +0 -1
  19. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  20. package/es/components/booking/info/model.d.ts +1 -10
  21. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  22. package/es/components/booking/info/service/like/index.d.ts +0 -1
  23. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/model.d.ts +1 -9
  25. package/es/components/booking/notes/model.d.ts +1 -10
  26. package/es/components/booking/payments/model.d.ts +1 -10
  27. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  28. package/es/components/eftpos/form/index.d.ts +0 -1
  29. package/es/components/eftpos/group/index.d.ts +0 -1
  30. package/es/components/eftpos/hooks.d.ts +0 -1
  31. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  32. package/es/components/eftpos/icon/device.d.ts +0 -1
  33. package/es/components/eftpos/receipt/index.d.ts +0 -1
  34. package/es/components/eftposPay/app.d.ts +1 -1
  35. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  36. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  37. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  38. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  39. package/es/components/eftposPay/hooks.d.ts +1 -1
  40. package/es/components/eftposPay/store/index.d.ts +1 -1
  41. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  42. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  43. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  44. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  45. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  46. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  47. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  48. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  49. package/es/components/pay/toC/model.d.ts +1 -9
  50. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  51. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  52. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  53. package/es/components/schedules/model.d.ts +1 -9
  54. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  55. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  56. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  57. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  58. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  59. package/es/components/wallet/Detail/model.d.ts +1 -13
  60. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  61. package/es/components/wallet/PointCard/model.d.ts +1 -13
  62. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  63. package/es/components/wallet/Voucher/model.d.ts +1 -13
  64. package/es/components/wallet/model.d.ts +1 -9
  65. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  66. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +11 -9
  67. package/lib/components/authentication/admin/AuthMethods/index.js +23 -7
  68. package/lib/components/booking/addons/model.d.ts +1 -10
  69. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  70. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  71. package/lib/components/booking/forms/model.d.ts +1 -10
  72. package/lib/components/booking/forms/table/index.d.ts +0 -1
  73. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  74. package/lib/components/booking/info/model.d.ts +1 -10
  75. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  76. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  77. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  78. package/lib/components/booking/model.d.ts +1 -9
  79. package/lib/components/booking/notes/model.d.ts +1 -10
  80. package/lib/components/booking/payments/model.d.ts +1 -10
  81. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  82. package/lib/components/eftpos/form/index.d.ts +0 -1
  83. package/lib/components/eftpos/group/index.d.ts +0 -1
  84. package/lib/components/eftpos/hooks.d.ts +0 -1
  85. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  86. package/lib/components/eftpos/icon/device.d.ts +0 -1
  87. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  88. package/lib/components/eftposPay/app.d.ts +1 -1
  89. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  90. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  91. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  92. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  93. package/lib/components/eftposPay/hooks.d.ts +1 -1
  94. package/lib/components/eftposPay/store/index.d.ts +1 -1
  95. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  96. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  97. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  98. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  99. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  100. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  101. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  102. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  103. package/lib/components/pay/toC/model.d.ts +1 -9
  104. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  105. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  106. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  107. package/lib/components/schedules/model.d.ts +1 -9
  108. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  109. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  110. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  111. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  112. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  113. package/lib/components/wallet/Detail/model.d.ts +1 -13
  114. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  115. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  116. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  117. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  118. package/lib/components/wallet/model.d.ts +1 -9
  119. package/package.json +4 -4
@@ -6,13 +6,17 @@
6
6
  .auth-methods-item {
7
7
  display: flex;
8
8
  align-items: center;
9
- padding: 20px 24px;
10
9
  border: 1px solid #f0f0f0;
11
10
  border-radius: 8px;
12
11
  background: #fff;
13
12
  margin-bottom: 12px;
14
- transition: all 0.3s;
15
- cursor: move;
13
+ }
14
+
15
+ .auth-methods-item-body {
16
+ display: flex;
17
+ flex: 1;
18
+ padding: 20px 24px 20px 0;
19
+ align-items: center;
16
20
  }
17
21
 
18
22
  .auth-methods-item:hover {
@@ -23,14 +27,12 @@
23
27
  display: flex;
24
28
  align-items: center;
25
29
  justify-content: center;
26
- margin-right: 16px;
27
30
  color: #d9d9d9;
28
- font-size: 16px;
31
+ font-size: 20px;
32
+ padding-left: 24px;
33
+ padding-right: 16px;
29
34
  cursor: grab;
30
- }
31
-
32
- .auth-methods-item-drag:active {
33
- cursor: grabbing;
35
+ align-self: stretch;
34
36
  }
35
37
 
36
38
  .auth-methods-item-icon {
@@ -37,6 +37,7 @@ __export(AuthMethods_exports, {
37
37
  module.exports = __toCommonJS(AuthMethods_exports);
38
38
  var import_react = __toESM(require("react"));
39
39
  var import_antd = require("antd");
40
+ var import_materials = require("@pisell/materials");
40
41
  var import_icons = require("@ant-design/icons");
41
42
  var import_core = require("@dnd-kit/core");
42
43
  var import_sortable = require("@dnd-kit/sortable");
@@ -87,8 +88,7 @@ var SortableItem = ({
87
88
  })
88
89
  },
89
90
  /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-drag", ...attributes, ...listeners }, /* @__PURE__ */ import_react.default.createElement(import_icons.HolderOutlined, null)),
90
- /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-icon" }, method.icon),
91
- /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-header" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "auth-methods-item-title" }, method.title), /* @__PURE__ */ import_react.default.createElement(
91
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-body" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-icon" }, method.icon), /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-header" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "auth-methods-item-title" }, method.title), /* @__PURE__ */ import_react.default.createElement(
92
92
  "span",
93
93
  {
94
94
  className: (0, import_classnames.default)(
@@ -97,8 +97,15 @@ var SortableItem = ({
97
97
  )
98
98
  },
99
99
  getCategoryText(method.category)
100
- )), /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-description" }, method.description), method.configLink && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { style: { marginTop: 8, fontSize: 12, color: "#8c8c8c", display: "flex", alignItems: "center", gap: 4 } }, /* @__PURE__ */ import_react.default.createElement(import_icons.InfoCircleOutlined, { style: { marginRight: 4 } }), import_utils.locales.getText(method.configLink), /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-config-link", onClick: onConfigClick }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("auth.oauth.config.link")))))),
101
- /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-actions" }, enableSetting && method.hasSettings && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "default", icon: /* @__PURE__ */ import_react.default.createElement(import_icons.SettingOutlined, null), onClick: onSettings }, import_utils.locales.getText("auth.button.settings")), /* @__PURE__ */ import_react.default.createElement(import_antd.Switch, { checked: method.enabled, onChange: onToggle, disabled: method.disableToggle }))
100
+ )), /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-description" }, method.description), method.configLink && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { style: { marginTop: 8, fontSize: 12, color: "#8c8c8c", display: "flex", alignItems: "center", gap: 4 } }, /* @__PURE__ */ import_react.default.createElement(import_icons.InfoCircleOutlined, { style: { marginRight: 4 } }), import_utils.locales.getText(method.configLink), /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-config-link", onClick: onConfigClick }, /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("auth.oauth.config.link")))))), /* @__PURE__ */ import_react.default.createElement("div", { className: "auth-methods-item-actions" }, enableSetting && method.hasSettings && /* @__PURE__ */ import_react.default.createElement(
101
+ import_materials.Button,
102
+ {
103
+ type: "default",
104
+ icon: /* @__PURE__ */ import_react.default.createElement(import_icons.SettingOutlined, null),
105
+ onClick: () => onSettings()
106
+ },
107
+ import_utils.locales.getText("auth.button.settings")
108
+ ), /* @__PURE__ */ import_react.default.createElement(import_antd.Switch, { checked: method.enabled, onChange: onToggle, disabled: method.disableToggle })))
102
109
  );
103
110
  };
104
111
  var AuthMethods = ({
@@ -118,7 +125,12 @@ var AuthMethods = ({
118
125
  (0, import_react.useEffect)(() => {
119
126
  if (initialMethods && initialMethods.length > 0) {
120
127
  console.log("AuthMethods 组件同步父组件数据:", initialMethods);
121
- setMethods(initialMethods);
128
+ const sortedMethods = [...initialMethods].sort((a, b) => {
129
+ const sortA = a.sort ?? 0;
130
+ const sortB = b.sort ?? 0;
131
+ return sortA - sortB;
132
+ });
133
+ setMethods(sortedMethods);
122
134
  }
123
135
  }, [initialMethods]);
124
136
  const sensors = (0, import_core.useSensors)(
@@ -138,8 +150,12 @@ var AuthMethods = ({
138
150
  const oldIndex = items.findIndex((item) => item.id === active.id);
139
151
  const newIndex = items.findIndex((item) => item.id === over.id);
140
152
  const newItems = (0, import_sortable.arrayMove)(items, oldIndex, newIndex);
141
- onOrderChange == null ? void 0 : onOrderChange(newItems);
142
- return newItems;
153
+ const updatedItems = newItems.map((item, index) => ({
154
+ ...item,
155
+ sort: index
156
+ }));
157
+ onOrderChange == null ? void 0 : onOrderChange(updatedItems);
158
+ return updatedItems;
143
159
  });
144
160
  }
145
161
  };
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface TabProductProps {
4
3
  list: any[];
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
3
2
  export default FormItemChildrenWrap;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
4
3
  export default Table;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
3
2
  export default useIsLowSpeedNetwork;
@@ -1,14 +1,5 @@
1
- /// <reference types="react" />
2
- import { FormState } from '../model';
3
1
  export declare const walkInData: {
4
2
  id: number;
5
3
  nickname: string;
6
4
  };
7
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
- state: FormState;
9
- } & {
10
- dispatch: (params: {
11
- type: string;
12
- payload: any;
13
- }) => void;
14
- }>;
5
+ export declare const Provider: any, Context: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: string;
9
+ locale: any;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Like: ({ status, onChange, className, style, }: {
4
3
  style?: any;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: string;
10
+ locale: any;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  amountSymbol: string;
4
3
  apis: {
@@ -105,11 +104,4 @@ export declare const walkInData: {
105
104
  id: number;
106
105
  nickname: string;
107
106
  };
108
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
- state: FormState;
110
- } & {
111
- dispatch: (params: {
112
- type: string;
113
- payload: any;
114
- }) => void;
115
- }>;
107
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,10 +1 @@
1
- /// <reference types="react" />
2
- import { FormState } from "../model";
3
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
- state: FormState;
5
- } & {
6
- dispatch: (params: {
7
- type: string;
8
- payload: any;
9
- }) => void;
10
- }>;
1
+ export declare const Provider: any, Context: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,5 +1,5 @@
1
1
  import { PosProps, RouteType } from './const';
2
- declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
2
+ declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "mode" | "type" | "getApi"> & {
3
3
  action: RouteType;
4
4
  device_number: string | number;
5
5
  api: ReturnType<PosProps['getApi']>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "payo" | "stripe" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
300
+ eftpos?: "tyro" | "windcave" | "payo" | "stripe" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: () => JSX.Element;
3
2
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.module.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -30,11 +29,4 @@ export interface PayGroup {
30
29
  _order: any;
31
30
  front_order_uuid?: string;
32
31
  }
33
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
34
- state: FormState;
35
- } & {
36
- dispatch: (params: {
37
- type: string;
38
- payload: any;
39
- }) => void;
40
- }>;
32
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => JSX.Element;
4
3
  export default Empty;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Content: () => JSX.Element;
4
3
  export default Content;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- addWalletCard: any;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- walletDetailState: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,14 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- setup?: 'menu' | 'list' | 'detail' | string;
5
- }
6
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
- state: RechargeState;
8
- } & {
9
- dispatch: (params: {
10
- type: string;
11
- payload: any;
12
- }) => void;
13
- }>;
14
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: number;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,29 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- selectedGiftOptionId: string | null;
4
- cardList: Array<{
5
- id: string;
6
- name: string;
7
- price: number;
8
- }>;
9
- selectedItem: {
10
- id?: string;
11
- gift_price?: number;
12
- price?: number;
13
- name?: string;
14
- variant_id?: string;
15
- };
16
- productId?: string;
17
- detailId?: string;
18
- total: string | number;
19
- rechargeModalOpen: boolean;
20
- }
21
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
- state: RechargeState;
23
- } & {
24
- dispatch: (params: {
25
- type: string;
26
- payload: any;
27
- }) => void;
28
- }>;
29
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,13 +1 @@
1
- /// <reference types="react" />
2
- interface RechargeState {
3
- total: 0;
4
- }
5
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
- state: RechargeState;
7
- } & {
8
- dispatch: (params: {
9
- type: string;
10
- payload: any;
11
- }) => void;
12
- }>;
13
- export {};
1
+ export declare const Provider: any, Context: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IWalletListItemProps } from './serve';
3
2
  export interface WalletCardItemProps {
4
3
  id: string;
@@ -27,11 +26,4 @@ export interface WalletListProps {
27
26
  currentSearchListItemCode?: string;
28
27
  [key: string]: any;
29
28
  }
30
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
- global_wallet: WalletListProps;
32
- } & {
33
- dispatch: (params: {
34
- type: string;
35
- payload: any;
36
- }) => void;
37
- }>;
29
+ export declare const Provider: any, Context: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.4.41",
3
+ "version": "3.4.42",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/materials": "3.3.63",
63
- "@pisell/utils": "3.0.1",
64
62
  "@pisell/icon": "0.0.11",
65
- "@pisell/date-picker": "3.0.3"
63
+ "@pisell/date-picker": "3.0.3",
64
+ "@pisell/utils": "3.0.1",
65
+ "@pisell/materials": "3.3.63"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",