@pisell/private-materials 6.8.86 → 6.8.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 (118) 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 +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +9 -9
  11. package/es/components/booking/components/customiseItemModal/index.js +4 -7
  12. package/es/components/booking/deposit/index.d.ts +0 -1
  13. package/es/components/booking/info/index.d.ts +0 -1
  14. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  15. package/es/components/booking/utils.d.ts +2 -2
  16. package/es/components/eftposPay/amount.d.ts +1 -1
  17. package/es/components/eftposPay/app.d.ts +1 -1
  18. package/es/components/eftposPay/device.d.ts +1 -1
  19. package/es/components/eftposPay/hooks.d.ts +1 -1
  20. package/es/components/eftposPay/store/index.d.ts +4 -4
  21. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  22. package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
  23. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  24. package/es/components/ticketBooking/index.d.ts +0 -1
  25. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  26. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  27. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  28. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  29. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  30. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  31. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  32. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  33. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  34. package/es/plus/saasLogin/utils.d.ts +5 -5
  35. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  36. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  37. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  38. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +11 -2
  39. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
  40. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +1 -0
  41. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
  42. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  43. package/es/pro/NumericStepper/index.d.ts +21 -1
  44. package/es/pro/NumericStepper/index.js +74 -66
  45. package/es/pro/NumericStepper/index.less +289 -136
  46. package/es/pro/Selector/demo.d.ts +0 -1
  47. package/es/pro/Selector/hooks/usePresetProps.js +2 -1
  48. package/es/pro/keyboards/index.d.ts +2 -0
  49. package/es/pro/keyboards/index.js +1 -0
  50. package/es/pro/keyboards/locales.d.ts +24 -0
  51. package/es/pro/keyboards/locales.js +35 -0
  52. package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  53. package/es/pro/keyboards/numberKeyboard/index.js +524 -0
  54. package/es/pro/keyboards/numberKeyboard/index.less +59 -0
  55. package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  56. package/es/pro/keyboards/numberKeyboard/types.js +1 -0
  57. package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
  58. package/es/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
  59. package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
  60. package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
  61. package/es/pro/skuDetailModal/index.js +6 -8
  62. package/es/pro/skuDetailModal/index.less +4 -4
  63. package/lib/components/booking/components/customiseItemModal/index.js +4 -5
  64. package/lib/components/booking/deposit/index.d.ts +0 -1
  65. package/lib/components/booking/info/index.d.ts +0 -1
  66. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  67. package/lib/components/booking/utils.d.ts +2 -2
  68. package/lib/components/eftposPay/amount.d.ts +1 -1
  69. package/lib/components/eftposPay/app.d.ts +1 -1
  70. package/lib/components/eftposPay/device.d.ts +1 -1
  71. package/lib/components/eftposPay/hooks.d.ts +1 -1
  72. package/lib/components/eftposPay/store/index.d.ts +4 -4
  73. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
  74. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
  75. package/lib/components/ticketBooking/index.d.ts +0 -1
  76. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  77. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  78. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  79. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  80. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  81. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  82. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  83. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  84. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  85. package/lib/plus/saasLogin/utils.d.ts +5 -5
  86. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  87. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
  88. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  89. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -0
  90. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
  91. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +1 -0
  92. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
  93. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  94. package/lib/pro/NumericStepper/index.d.ts +21 -1
  95. package/lib/pro/NumericStepper/index.js +67 -69
  96. package/lib/pro/NumericStepper/index.less +289 -136
  97. package/lib/pro/Selector/demo.d.ts +0 -1
  98. package/lib/pro/Selector/hooks/usePresetProps.js +2 -1
  99. package/lib/pro/keyboards/index.d.ts +2 -0
  100. package/lib/pro/keyboards/index.js +39 -0
  101. package/lib/pro/keyboards/locales.d.ts +24 -0
  102. package/lib/pro/keyboards/locales.js +47 -0
  103. package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
  104. package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
  105. package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
  106. package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
  107. package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
  108. package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
  109. package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
  110. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
  111. package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
  112. package/lib/pro/skuDetailModal/index.js +94 -41
  113. package/lib/pro/skuDetailModal/index.less +4 -4
  114. package/package.json +1 -1
  115. package/es/pro/pisellNumberSelector/example.d.ts +0 -3
  116. package/es/pro/pisellNumberSelector/example.js +0 -68
  117. package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
  118. package/lib/pro/pisellNumberSelector/example.js +0 -93
@@ -300,7 +300,8 @@ var PaymentKeyboardBase = function PaymentKeyboardBase(props) {
300
300
  padding: 16
301
301
  },
302
302
  bottomContent: renderBottomContent(),
303
- preventBlurElements: [uniqueKeyboardId]
303
+ preventBlurElements: [uniqueKeyboardId],
304
+ selected: firstInputStatus.payment && !!internalPaymentValue
304
305
  });
305
306
  };
306
307
  var renderSurchargeDisplay = function renderSurchargeDisplay() {
@@ -327,7 +328,8 @@ var PaymentKeyboardBase = function PaymentKeyboardBase(props) {
327
328
  onFocus: function onFocus() {
328
329
  return setFocusedInput(KEYS.PERCENT);
329
330
  },
330
- preventBlurElements: [uniqueKeyboardId]
331
+ preventBlurElements: [uniqueKeyboardId],
332
+ selected: firstInputStatus.percent && !!(internalSurchargeValue !== null && internalSurchargeValue !== void 0 && internalSurchargeValue.percent) && focusedInput !== KEYS.FIXED
331
333
  }), /*#__PURE__*/React.createElement("div", {
332
334
  style: {
333
335
  color: '#667085',
@@ -349,7 +351,8 @@ var PaymentKeyboardBase = function PaymentKeyboardBase(props) {
349
351
  onFocus: function onFocus() {
350
352
  return setFocusedInput(KEYS.FIXED);
351
353
  },
352
- preventBlurElements: [uniqueKeyboardId]
354
+ preventBlurElements: [uniqueKeyboardId],
355
+ selected: firstInputStatus.fixed && !!(internalSurchargeValue !== null && internalSurchargeValue !== void 0 && internalSurchargeValue.fixed) && focusedInput === KEYS.FIXED
353
356
  }));
354
357
  };
355
358
  var customDisplay = function customDisplay() {
@@ -20,7 +20,7 @@ import { locales } from '@pisell/utils';
20
20
  import Delete_wght300_24px from '@pisell/icon/es/Delete_wght300_24px';
21
21
  import localeTexts from "./locales";
22
22
  import "./index.less";
23
- import PisellNumberSelector from "../pisellNumberSelector";
23
+ import NumericStepper from "../NumericStepper";
24
24
  import NoteModal from "../../plus/noteModal";
25
25
  import useEngineContext from "../../hooks/useEngineContext";
26
26
  import { DiscountKeyboard } from "../priceKeyboard";
@@ -832,13 +832,14 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
832
832
  onCancel: handleCancel,
833
833
  closable: false,
834
834
  destroyOnClose: true,
835
- width: 880,
835
+ width: "80%",
836
836
  className: "pisell-sku-detail-modal"
837
837
  }, /*#__PURE__*/React.createElement(PisellProcedure, {
838
838
  ref: procedureRef,
839
839
  className: "pisell-sku-procedure",
840
840
  mode: "modal",
841
841
  defaultCurrent: currentStep,
842
+ layoutMode: "ratio",
842
843
  onStepsChange: function onStepsChange(result) {
843
844
  // 动态 steps 情况下,保护 currentStep 不越界
844
845
  var nextStep = Math.min(Number(result.currentStep || 0), maxStepIndex);
@@ -875,15 +876,12 @@ var SkuDetailModal = function SkuDetailModal(_ref, ref) {
875
876
  className: "quantity-section"
876
877
  }, /*#__PURE__*/React.createElement("div", {
877
878
  className: "quantity-section-title"
878
- }, locales.getText('pisell2.text.sku.detail.modal.quantity')), /*#__PURE__*/React.createElement(PisellNumberSelector, {
879
+ }, locales.getText('pisell2.text.sku.detail.modal.quantity')), /*#__PURE__*/React.createElement(NumericStepper, {
880
+ variant: "capsule",
879
881
  value: quantity,
880
- width: "120px",
881
882
  onChange: handleQuantityChange,
882
883
  min: 1,
883
- max: 99999,
884
- step: 1,
885
- size: "middle",
886
- enablePriceAdjust: true
884
+ max: 99999
887
885
  })),
888
886
  actions: /*#__PURE__*/React.createElement("div", {
889
887
  className: "sku-detail-content-footer"
@@ -3,12 +3,12 @@
3
3
  * 固定弹窗高度,确保内部滚动容器有“可计算的最大高度”
4
4
  * 否则内容会把 modal 撑开,overflow-y: auto 无法生效(看起来就“滚不动”)
5
5
  */
6
- height: 684px;
6
+ height: 884px;
7
7
 
8
8
  // PisellModal(PC)内容容器:固定高度,内部 body 使用 flex 占满剩余空间
9
9
  .pisell-lowcode-modal-content {
10
- height: 684px;
11
- max-height: 684px!important;
10
+ height: 884px;
11
+ max-height: 884px!important;
12
12
  }
13
13
 
14
14
  // SkuDetailModal 内部使用自定义滚动容器(右侧内容区),避免整块 modal body 滚动
@@ -37,7 +37,7 @@
37
37
  flex: 1;
38
38
  min-height: 0;
39
39
  overflow-y: auto;
40
- max-height: 530px;
40
+ max-height: 730px;
41
41
  /**
42
42
  * @description
43
43
  * 让滚动条不要贴着内容(尤其是 macOS overlay scrollbar 会覆盖内容)
@@ -36,7 +36,7 @@ var import_react = __toESM(require("react"));
36
36
  var import_antd = require("antd");
37
37
  var import_utils = require("@pisell/utils");
38
38
  var import_materials = require("@pisell/materials");
39
- var import_pisellNumberSelector = __toESM(require("../../../../pro/pisellNumberSelector"));
39
+ var import_NumericStepper = __toESM(require("../../../../pro/NumericStepper"));
40
40
  var import_pisellPriceKeyboardModal = __toESM(require("../../../../pro/pisellPriceKeyboardModal"));
41
41
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
42
42
  var import_index = require("./index.less");
@@ -244,8 +244,9 @@ var CustomiseItemModal = ({
244
244
  },
245
245
  import_utils.locales.getText("pisell2.customise-item.save")
246
246
  )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "customise-item-quantity-selector-fixed" }, /* @__PURE__ */ import_react.default.createElement(
247
- import_pisellNumberSelector.default,
247
+ import_NumericStepper.default,
248
248
  {
249
+ variant: "capsule",
249
250
  value: quantity,
250
251
  min: 1,
251
252
  max: 999,
@@ -257,9 +258,7 @@ var CustomiseItemModal = ({
257
258
  } else {
258
259
  setQuantity(value);
259
260
  }
260
- },
261
- size: "middle",
262
- enablePriceAdjust: true
261
+ }
263
262
  }
264
263
  ))),
265
264
  /* @__PURE__ */ import_react.default.createElement(
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Deposit: (props: any) => JSX.Element;
3
2
  export default Deposit;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -173,10 +173,10 @@ export declare const getProductTotalPrice: (item: any) => number;
173
173
  export declare const getDuration: (duration: number | {
174
174
  type: string;
175
175
  value: number;
176
- }) => number | {
176
+ }) => number | "flexible" | {
177
177
  type: string;
178
178
  value: number;
179
- } | "flexible";
179
+ };
180
180
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
181
181
  export declare const getIsEdit: (state: any) => boolean;
182
182
  export {};
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "success" | "fail" | "page" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { PosProps, RouteType } from './const';
3
- declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
3
+ declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "mode" | "type" | "getApi"> & {
4
4
  action: RouteType;
5
5
  device_number: string | number;
6
6
  api: ReturnType<PosProps['getApi']>;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "fail" | "page" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "fail" | "init" | "warn" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
178
178
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
179
179
  type: EActionTypes;
180
180
  payload: {
181
- status: "loading" | "success" | "fail" | "warn" | "question";
181
+ status: "loading" | "success" | "warn" | "fail" | "question";
182
182
  };
183
183
  };
184
184
  /**
@@ -299,10 +299,10 @@ export declare const backUpFree: (payload: Partial<State>) => {
299
299
  name?: string | undefined;
300
300
  symbol?: string | undefined;
301
301
  amount?: string | number | undefined;
302
- mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
302
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
303
303
  order_id?: string | number | undefined;
304
304
  eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu" | undefined;
305
- action?: "amount" | "deviceList" | "pay" | undefined;
305
+ action?: "pay" | "amount" | "deviceList" | undefined;
306
306
  key?: number | undefined;
307
307
  step?: number | undefined;
308
308
  title?: string | undefined;
@@ -312,7 +312,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
312
312
  net?: boolean | undefined;
313
313
  component?: string | undefined;
314
314
  form?: string | undefined;
315
- status?: "loading" | "success" | "fail" | "init" | "warn" | "pedding" | "resove" | "reject" | "question" | undefined;
315
+ status?: "loading" | "success" | "warn" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
316
316
  warn?: string | undefined;
317
317
  steps?: {
318
318
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter';
3
2
  import './index.less';
4
3
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter/types';
4
3
  export declare const _formatBookingDetail: (data: any, modalState: any) => any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProductDisplayConfig, ProductDisplayPresetKey } from './components/ProductDisplayAdapter/types';
3
2
  import './index.less';
4
3
  interface TicketBookingProps {
@@ -47,7 +47,7 @@ declare type ScanData = {
47
47
  };
48
48
  };
49
49
  export declare const formatScanCustomer: (data: ScanData) => {
50
- searchType: "wallet" | "walletPass" | "product" | "customer" | "local_product";
50
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
51
51
  data: any;
52
52
  scanCode: string;
53
53
  } | null;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Capacity: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
5
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
6
  export default Capacity;
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const CardMask: ({ props }: {
5
5
  props: SkuStatusOverlayConfig;
6
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
7
7
  export default CardMask;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const Countdown: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
7
7
  export default Countdown;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Duration: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
5
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
6
  export default Duration;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const MemberPrice: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
7
7
  export default MemberPrice;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Resource: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
5
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
6
  export default Resource;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Stock: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
5
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
6
  export default Stock;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Time: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | JSX.Element | React.ReactFragment | null;
5
+ }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
6
  export default Time;
@@ -5,13 +5,13 @@ export declare const mergeData: (locales: any, props: SaasLoginProps) => {
5
5
  width?: number | undefined;
6
6
  height?: number | undefined;
7
7
  };
8
- logoPosition: "center" | "left" | "right";
8
+ logoPosition: "left" | "right" | "center";
9
9
  welcomeMessage: any;
10
- welcomeMessageAlign: "center" | "left" | "right";
10
+ welcomeMessageAlign: "left" | "right" | "center";
11
11
  title: any;
12
- titleAlign: "center" | "left" | "right";
12
+ titleAlign: "left" | "right" | "center";
13
13
  subtitle: any;
14
- subtitleAlign: "center" | "left" | "right";
14
+ subtitleAlign: "left" | "right" | "center";
15
15
  emailLabel: any;
16
16
  emailPlaceholder: any;
17
17
  passwordLabel: any;
@@ -19,7 +19,7 @@ export declare const mergeData: (locales: any, props: SaasLoginProps) => {
19
19
  buttonText: any;
20
20
  registerText: any;
21
21
  registerLinkText: any;
22
- registerAlign: "center" | "left" | "right";
22
+ registerAlign: "left" | "right" | "center";
23
23
  showLogo?: boolean | undefined;
24
24
  showWelcomeMessage?: boolean | undefined;
25
25
  showTitle?: boolean | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const OptionItemCard: (props: any) => JSX.Element;
4
3
  export default OptionItemCard;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface OptionsModalProps {
3
2
  parentDataSource: any;
4
3
  dataSource: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const VariantCard: (props: any) => JSX.Element;
4
3
  export default VariantCard;
@@ -76,6 +76,11 @@ var transformBundleGroup = (bundleGroup) => {
76
76
  autoValidate: true,
77
77
  required: Number(item == null ? void 0 : item.min_quantity) > 0 ? true : false
78
78
  },
79
+ layout: {
80
+ type: "antdGrid",
81
+ columns: 2,
82
+ gutter: [16, 16]
83
+ },
79
84
  headerProps: {
80
85
  renderExtra: (props) => {
81
86
  return /* @__PURE__ */ import_react.default.createElement(import_TitleExtra.default, { ...props || {} });
@@ -83,6 +88,11 @@ var transformBundleGroup = (bundleGroup) => {
83
88
  },
84
89
  stepperProps: {
85
90
  horizontalPadding: "8px"
91
+ },
92
+ layout: {
93
+ type: "antdGrid",
94
+ columns: 2,
95
+ gutter: [16, 16]
86
96
  }
87
97
  };
88
98
  selectorDataSource.renderItem = (itemProps) => {
@@ -58,6 +58,11 @@ var transformOptionGroup = (optionGroup) => {
58
58
  max: optionItem == null ? void 0 : optionItem.max_quantity,
59
59
  autoValidate: true
60
60
  },
61
+ layout: {
62
+ type: "antdGrid",
63
+ columns: 2,
64
+ gutter: [16, 16]
65
+ },
61
66
  _extra: {
62
67
  canSell,
63
68
  hasStock
@@ -92,6 +97,11 @@ var transformOptionGroup = (optionGroup) => {
92
97
  },
93
98
  stepperProps: {
94
99
  horizontalPadding: "8px"
100
+ },
101
+ layout: {
102
+ type: "antdGrid",
103
+ columns: 2,
104
+ gutter: [16, 16]
95
105
  }
96
106
  };
97
107
  selectorDataSource.renderItem = (itemProps) => {
@@ -170,6 +170,7 @@ var createBundleValue = (v, dataSource) => {
170
170
  });
171
171
  _createdValue.data._data = _data;
172
172
  }
173
+ _createdValue.data.num = (v1 == null ? void 0 : v1.num) || 1;
173
174
  _createdValue.quantity = (_createdValue.quantity || 0) + ((v1 == null ? void 0 : v1.quantity) || 0);
174
175
  const _pricePrefix = (findedBundleItem == null ? void 0 : findedBundleItem.price_type) === "markdown" ? -1 : 1;
175
176
  _createdValue.totalPrice = new import_decimal.default(_createdValue.totalPrice || 0).plus(
@@ -61,6 +61,11 @@ var transformVariantGroup = (variantGroup) => {
61
61
  ruleConfig: {
62
62
  autoValidate: true
63
63
  },
64
+ layout: {
65
+ type: "antdGrid",
66
+ columns: 2,
67
+ gutter: [16, 16]
68
+ },
64
69
  _extra: {
65
70
  canSell,
66
71
  hasStock
@@ -93,6 +98,11 @@ var transformVariantGroup = (variantGroup) => {
93
98
  },
94
99
  stepperProps: {
95
100
  horizontalPadding: "8px"
101
+ },
102
+ layout: {
103
+ type: "antdGrid",
104
+ columns: 2,
105
+ gutter: [16, 16]
96
106
  }
97
107
  };
98
108
  selectorDataSource.renderItem = (itemProps) => {
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
3
3
  value?: string;
4
4
  onChange?: (val: string) => void;
5
5
  }
6
- export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
6
+ export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
7
7
  declare const ImageUpload: React.FC<ImageUploadProps>;
8
8
  export default ImageUpload;
@@ -7,6 +7,12 @@ declare global {
7
7
  }
8
8
  }
9
9
  }
10
+ /**
11
+ * 样式变体类型
12
+ * - separated: 分离式,按钮独立显示(默认)
13
+ * - capsule: 胶囊式,按钮和数字在一个圆角容器内
14
+ */
15
+ export declare type NumericStepperVariant = 'separated' | 'capsule';
10
16
  export interface NumericStepperProps {
11
17
  /** 当前值 */
12
18
  value?: number;
@@ -31,12 +37,26 @@ export interface NumericStepperProps {
31
37
  horizontalPadding?: number | string;
32
38
  /** 尺寸 */
33
39
  size?: 'small' | 'middle' | 'large';
34
- /** 按钮形状 */
40
+ /** 按钮形状(仅在 variant='separated' 时生效) */
35
41
  shape?: 'round' | 'square';
36
42
  /** 减号按钮的自定义内容 */
37
43
  minusIcon?: React.ReactNode;
38
44
  /** 加号按钮的自定义内容 */
39
45
  plusIcon?: React.ReactNode;
46
+ /**
47
+ * 样式变体
48
+ * - separated: 分离式,按钮独立显示(默认)
49
+ * - capsule: 胶囊式,按钮和数字在一个圆角容器内
50
+ * @default 'separated'
51
+ */
52
+ variant?: NumericStepperVariant;
53
+ /**
54
+ * 是否启用输入功能(点击数字弹出键盘)
55
+ * - 开启时:展示区域 cursor 为 pointer,点击弹出键盘
56
+ * - 关闭后:展示区域无边框,点击不会弹出键盘
57
+ * @default true
58
+ */
59
+ enableInput?: boolean;
40
60
  }
41
61
  declare const NumericStepper: React.FC<NumericStepperProps>;
42
62
  export default NumericStepper;