@pisell/private-materials 3.4.59 → 3.4.60

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 (230) 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 +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  12. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  13. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  14. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  15. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  16. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  17. package/es/components/booking/forms/footer.d.ts +0 -1
  18. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  19. package/es/components/booking/forms/single/index.d.ts +0 -1
  20. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  21. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  22. package/es/components/booking/info/date/index.d.ts +0 -1
  23. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  24. package/es/components/booking/info/notes/index.d.ts +0 -1
  25. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  26. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  27. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  28. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  29. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  30. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  31. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  32. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  33. package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
  34. package/es/components/eftpos/index.d.ts +0 -1
  35. package/es/components/eftpos/pos.d.ts +0 -1
  36. package/es/components/eftposPay/amount.d.ts +0 -1
  37. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  38. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  39. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  40. package/es/components/eftposPay/payo/config.d.ts +0 -1
  41. package/es/components/eftposPay/tip.d.ts +0 -1
  42. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  43. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  44. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  45. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  46. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  47. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  48. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  49. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  50. package/es/components/kioskSkuDetail/index.d.ts +39 -0
  51. package/es/components/kioskSkuDetail/index.js +529 -0
  52. package/es/components/kioskSkuDetail/index.less +196 -0
  53. package/es/components/kioskSkuDetail/locales.d.ts +27 -0
  54. package/es/components/kioskSkuDetail/locales.js +26 -0
  55. package/es/components/login/index.d.ts +0 -1
  56. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  57. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  58. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  59. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  60. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  61. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  62. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  63. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  64. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  65. package/es/components/schedules/calendar/index.d.ts +0 -1
  66. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  67. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  68. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  69. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  70. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  71. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  72. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  73. package/es/components/schedules/products/list/index.d.ts +0 -1
  74. package/es/components/schedules/resources/list/index.d.ts +0 -1
  75. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  76. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  77. package/es/components/schedules/schedules/index.d.ts +0 -1
  78. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  79. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  80. package/es/components/shoppingCart/index.d.ts +0 -1
  81. package/es/hooks/usePaymentLogger.d.ts +0 -1
  82. package/es/index.d.ts +2 -0
  83. package/es/index.js +2 -0
  84. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  85. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  86. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  87. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  88. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  89. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  90. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  91. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  92. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  93. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  94. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  95. package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  96. package/es/plus/skuOptionsSelection/components/VariantCard/index.js +30 -1
  97. package/es/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  98. package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
  99. package/es/plus/skuOptionsSelection/locales.js +3 -0
  100. package/es/plus/skuOptionsSelection/store/actions.js +17 -2
  101. package/es/plus/skuOptionsSelection/types.d.ts +5 -0
  102. package/es/plus/skuOptionsSelection/types.js +2 -1
  103. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +70 -3
  104. package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  105. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  106. package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
  107. package/es/pro/Login2.0/steps/CodeInput.js +37 -7
  108. package/es/pro/Selector/demo.d.ts +1 -0
  109. package/es/pro/numberKeyboard/index.d.ts +28 -0
  110. package/es/pro/numberKeyboard/index.js +155 -0
  111. package/es/pro/numberKeyboard/index.less +25 -0
  112. package/es/pro/numberKeyboard/locales.d.ts +12 -0
  113. package/es/pro/numberKeyboard/locales.js +11 -0
  114. package/es/pro/pisellNumberSelector/example.d.ts +3 -0
  115. package/es/pro/pisellNumberSelector/example.js +68 -0
  116. package/es/pro/pisellNumberSelector/index.d.ts +29 -0
  117. package/es/pro/pisellNumberSelector/index.js +257 -0
  118. package/es/pro/pisellNumberSelector/index.less +235 -0
  119. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  120. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  121. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  122. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  123. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  124. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  125. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  126. package/lib/components/booking/forms/footer.d.ts +0 -1
  127. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  128. package/lib/components/booking/forms/single/index.d.ts +0 -1
  129. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  130. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  131. package/lib/components/booking/info/date/index.d.ts +0 -1
  132. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  133. package/lib/components/booking/info/notes/index.d.ts +0 -1
  134. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  135. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  136. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
  137. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  138. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  139. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  140. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  141. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  142. package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
  143. package/lib/components/eftpos/index.d.ts +0 -1
  144. package/lib/components/eftpos/pos.d.ts +0 -1
  145. package/lib/components/eftposPay/amount.d.ts +0 -1
  146. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  147. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  148. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  149. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  150. package/lib/components/eftposPay/tip.d.ts +0 -1
  151. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  152. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  153. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  154. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  155. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  156. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  157. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  158. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  159. package/lib/components/kioskSkuDetail/index.d.ts +39 -0
  160. package/lib/components/kioskSkuDetail/index.js +393 -0
  161. package/lib/components/kioskSkuDetail/index.less +196 -0
  162. package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
  163. package/lib/components/kioskSkuDetail/locales.js +50 -0
  164. package/lib/components/login/index.d.ts +0 -1
  165. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  166. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  167. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  168. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  169. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  170. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  171. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  172. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  173. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  174. package/lib/components/schedules/calendar/index.d.ts +0 -1
  175. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  176. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  177. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  178. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  179. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  180. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  181. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  182. package/lib/components/schedules/products/list/index.d.ts +0 -1
  183. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  184. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  185. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  186. package/lib/components/schedules/schedules/index.d.ts +0 -1
  187. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  188. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  189. package/lib/components/shoppingCart/index.d.ts +0 -1
  190. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  191. package/lib/index.d.ts +2 -0
  192. package/lib/index.js +6 -0
  193. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  194. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  195. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  196. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  197. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  198. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  199. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  200. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  201. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
  202. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
  203. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
  204. package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +0 -1
  205. package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +32 -3
  206. package/lib/plus/skuOptionsSelection/components/VariantCard/index.less +10 -0
  207. package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
  208. package/lib/plus/skuOptionsSelection/locales.js +3 -0
  209. package/lib/plus/skuOptionsSelection/store/actions.js +25 -1
  210. package/lib/plus/skuOptionsSelection/types.d.ts +5 -0
  211. package/lib/plus/skuOptionsSelection/types.js +2 -1
  212. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +51 -5
  213. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
  214. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
  215. package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
  216. package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
  217. package/lib/pro/Selector/demo.d.ts +1 -0
  218. package/lib/pro/numberKeyboard/index.d.ts +28 -0
  219. package/lib/pro/numberKeyboard/index.js +182 -0
  220. package/lib/pro/numberKeyboard/index.less +25 -0
  221. package/lib/pro/numberKeyboard/locales.d.ts +12 -0
  222. package/lib/pro/numberKeyboard/locales.js +35 -0
  223. package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
  224. package/lib/pro/pisellNumberSelector/example.js +93 -0
  225. package/lib/pro/pisellNumberSelector/index.d.ts +29 -0
  226. package/lib/pro/pisellNumberSelector/index.js +275 -0
  227. package/lib/pro/pisellNumberSelector/index.less +235 -0
  228. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  229. package/lowcode/kiosk-sku-detail/meta.ts +264 -0
  230. package/package.json +2 -2
@@ -33,22 +33,31 @@ __export(transformVariantGroup_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(transformVariantGroup_exports);
35
35
  var import_react = __toESM(require("react"));
36
+ var import_store = __toESM(require("../store/store"));
36
37
  var import_VariantCard = __toESM(require("../components/VariantCard"));
37
38
  var import_checkSkuStatus = require("./checkSkuStatus");
38
39
  var transformVariantGroup = (variantGroup) => {
40
+ var _a;
39
41
  if (!Array.isArray(variantGroup)) return [];
42
+ const variantProducts = ((_a = import_store.default.getState().dataSource) == null ? void 0 : _a.variant) || [];
40
43
  const formattedGroup = variantGroup.map((item) => {
41
- var _a;
42
- const selectorOptionsDataSource = (_a = item == null ? void 0 : item.variant_item) == null ? void 0 : _a.map(
44
+ var _a2;
45
+ const selectorOptionsDataSource = (_a2 = item == null ? void 0 : item.variant_item) == null ? void 0 : _a2.map(
43
46
  (variantItem) => {
44
47
  const { canSell, hasStock } = (0, import_checkSkuStatus.checkVariantStockCanSell)(variantItem);
45
48
  const disabled = (0, import_checkSkuStatus.checkSkuDisabled)(variantItem, canSell);
49
+ const price = getVariantItemFixedPrice({
50
+ selectedVariantIds: [`${variantItem == null ? void 0 : variantItem.variant_group_id}:${variantItem == null ? void 0 : variantItem.id}`],
51
+ variantProducts
52
+ });
46
53
  return {
47
54
  _original: { ...variantItem || {} },
48
55
  id: variantItem == null ? void 0 : variantItem.id,
49
56
  title: variantItem == null ? void 0 : variantItem.name,
50
57
  value: variantItem == null ? void 0 : variantItem.id,
51
58
  disabled,
59
+ // 组合规格选项对应的固定价格(若存在多价则返回 null,不展示)
60
+ price,
52
61
  ruleConfig: {
53
62
  autoValidate: true
54
63
  },
@@ -87,13 +96,19 @@ var transformVariantGroup = (variantGroup) => {
87
96
  }
88
97
  };
89
98
  selectorDataSource.renderItem = (itemProps) => {
90
- var _a2, _b;
99
+ var _a3, _b, _c;
91
100
  const { canSell, hasStock } = (0, import_checkSkuStatus.checkVariantStockByValue)(
92
- (_a2 = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _a2._original
101
+ (_a3 = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _a3._original
93
102
  );
103
+ const price = getVariantItemFixedPriceByValue({
104
+ variantItem: (_b = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _b._original,
105
+ variantProducts
106
+ });
94
107
  const _dataSource = {
95
108
  ...(itemProps == null ? void 0 : itemProps.dataSource) || {},
96
- disabled: (0, import_checkSkuStatus.checkSkuDisabled)((_b = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _b._original, canSell),
109
+ disabled: (0, import_checkSkuStatus.checkSkuDisabled)((_c = itemProps == null ? void 0 : itemProps.dataSource) == null ? void 0 : _c._original, canSell),
110
+ // 组合规格选项对应的固定价格(若存在多价则返回 null,不展示)
111
+ price,
97
112
  _extra: {
98
113
  canSell,
99
114
  hasStock
@@ -112,6 +127,37 @@ var transformVariantGroup = (variantGroup) => {
112
127
  });
113
128
  return formattedGroup;
114
129
  };
130
+ function getVariantItemFixedPrice(params) {
131
+ const selectedVariantIds = params.selectedVariantIds;
132
+ const variantProducts = params.variantProducts;
133
+ const matchedVariants = Array.isArray(variantProducts) ? variantProducts.filter((item) => {
134
+ var _a;
135
+ const ids = ((_a = item == null ? void 0 : item.sku_ids) == null ? void 0 : _a.split("_")) || [];
136
+ return selectedVariantIds.every((selectedId) => ids.includes(selectedId));
137
+ }) : [];
138
+ const prices = matchedVariants.map((item) => Number((item == null ? void 0 : item.price) ?? (item == null ? void 0 : item.base_price) ?? 0)).filter((n) => !Number.isNaN(n));
139
+ if (prices.length === 0) return null;
140
+ const uniquePrices = Array.from(new Set(prices));
141
+ if (uniquePrices.length !== 1) return null;
142
+ return uniquePrices[0];
143
+ }
144
+ function getVariantItemFixedPriceByValue(params) {
145
+ var _a;
146
+ const variantItem = params.variantItem;
147
+ const variantProducts = params.variantProducts;
148
+ const dataSource = import_store.default.getState().dataSource;
149
+ const selectorValue = import_store.default.getState().selectorValue;
150
+ const currentSkuId = `${variantItem == null ? void 0 : variantItem.variant_group_id}:${variantItem == null ? void 0 : variantItem.id}`;
151
+ const selectedVariantIds = [currentSkuId];
152
+ (_a = dataSource == null ? void 0 : dataSource.variant_group) == null ? void 0 : _a.forEach((group) => {
153
+ var _a2;
154
+ const selectedData = (_a2 = selectorValue == null ? void 0 : selectorValue[group.id]) == null ? void 0 : _a2.data;
155
+ if (selectedData && group.id !== (variantItem == null ? void 0 : variantItem.variant_group_id)) {
156
+ selectedVariantIds.push(`${selectedData == null ? void 0 : selectedData.variant_group_id}:${selectedData == null ? void 0 : selectedData.id}`);
157
+ }
158
+ });
159
+ return getVariantItemFixedPrice({ selectedVariantIds, variantProducts });
160
+ }
115
161
  // Annotate the CommonJS export names for ESM import in node:
116
162
  0 && (module.exports = {
117
163
  transformVariantGroup
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const RelationProduct: ({ value, onChange, }: {
4
3
  value?: string[] | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface TimelineSectionProps {
4
3
  code: string;
@@ -64,8 +64,25 @@ function LoginCodeInput({
64
64
  }
65
65
  }, [error, codeLength]);
66
66
  const handleInputChange = (index, value) => {
67
- var _a;
68
- if (!/^\d*$/.test(value)) return;
67
+ var _a, _b;
68
+ const digitsOnly = value.replace(/\D/g, "");
69
+ if (digitsOnly !== value && value !== "") return;
70
+ if (digitsOnly.length > 1) {
71
+ if (error && onClearError) onClearError();
72
+ const nextCode = [...code];
73
+ const maxFillLength = Math.min(codeLength - index, digitsOnly.length);
74
+ for (let offset = 0; offset < maxFillLength; offset += 1) {
75
+ nextCode[index + offset] = digitsOnly[offset];
76
+ }
77
+ setCode(nextCode);
78
+ const nextEmptyIndex = nextCode.findIndex((digit) => digit === "");
79
+ if (nextEmptyIndex === -1) {
80
+ onSubmit == null ? void 0 : onSubmit(nextCode.join(""));
81
+ return;
82
+ }
83
+ (_a = inputRefs.current[nextEmptyIndex]) == null ? void 0 : _a.focus();
84
+ return;
85
+ }
69
86
  if (value && error && onClearError) {
70
87
  onClearError();
71
88
  }
@@ -73,7 +90,7 @@ function LoginCodeInput({
73
90
  newCode[index] = value.slice(-1);
74
91
  setCode(newCode);
75
92
  if (value && index < codeLength - 1) {
76
- (_a = inputRefs.current[index + 1]) == null ? void 0 : _a.focus();
93
+ (_b = inputRefs.current[index + 1]) == null ? void 0 : _b.focus();
77
94
  }
78
95
  if (newCode.every((digit) => digit !== "")) {
79
96
  const fullCode = newCode.join("");
@@ -118,7 +135,12 @@ function LoginCodeInput({
118
135
  ref: (el) => inputRefs.current[index] = el,
119
136
  type: "text",
120
137
  inputMode: "numeric",
121
- maxLength: 1,
138
+ autoComplete: index === 0 ? "one-time-code" : "off",
139
+ autoCorrect: "off",
140
+ autoCapitalize: "off",
141
+ spellCheck: false,
142
+ maxLength: index === 0 ? codeLength : 1,
143
+ pattern: "[0-9]*",
122
144
  className: `code-input-box ${digit ? "has-value" : ""} ${error ? "has-error" : ""}`,
123
145
  value: digit,
124
146
  onChange: (e) => handleInputChange(index, e.target.value),
@@ -62,8 +62,25 @@ function CodeInput({
62
62
  }
63
63
  }, [error, codeLength]);
64
64
  const handleInputChange = (index, value) => {
65
- var _a;
66
- if (!/^\d*$/.test(value)) return;
65
+ var _a, _b;
66
+ const digitsOnly = value.replace(/\D/g, "");
67
+ if (digitsOnly !== value && value !== "") return;
68
+ if (digitsOnly.length > 1) {
69
+ if (error && onClearError) onClearError();
70
+ const nextCode = [...code];
71
+ const maxFillLength = Math.min(codeLength - index, digitsOnly.length);
72
+ for (let offset = 0; offset < maxFillLength; offset += 1) {
73
+ nextCode[index + offset] = digitsOnly[offset];
74
+ }
75
+ setCode(nextCode);
76
+ const nextEmptyIndex = nextCode.findIndex((digit) => digit === "");
77
+ if (nextEmptyIndex === -1) {
78
+ onSubmit == null ? void 0 : onSubmit(nextCode.join(""));
79
+ return;
80
+ }
81
+ (_a = inputRefs.current[nextEmptyIndex]) == null ? void 0 : _a.focus();
82
+ return;
83
+ }
67
84
  if (value && error && onClearError) {
68
85
  onClearError();
69
86
  }
@@ -71,7 +88,7 @@ function CodeInput({
71
88
  newCode[index] = value.slice(-1);
72
89
  setCode(newCode);
73
90
  if (value && index < codeLength - 1) {
74
- (_a = inputRefs.current[index + 1]) == null ? void 0 : _a.focus();
91
+ (_b = inputRefs.current[index + 1]) == null ? void 0 : _b.focus();
75
92
  }
76
93
  if (newCode.every((digit) => digit !== "")) {
77
94
  const fullCode = newCode.join("");
@@ -108,7 +125,7 @@ function CodeInput({
108
125
  };
109
126
  const title = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-check-email-title") : import_utils.locales.getText("pisell-register2-check-phone-title");
110
127
  const description = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-check-email-desc") : import_utils.locales.getText("pisell-register2-check-phone-desc");
111
- const displayAccount = typeof flowData.account === "object" && "phone" in flowData.account ? `+${flowData.account.country_calling_code}${flowData.account.phone}` : flowData.account;
128
+ const displayAccount = flowData.account;
112
129
  const noReceiveText = flowData.accountType === "email" ? import_utils.locales.getText("pisell-register2-no-email-received") : import_utils.locales.getText("pisell-register2-no-message-received");
113
130
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-container code-input-page" }, /* @__PURE__ */ import_react.default.createElement("button", { className: "back-button-top", onClick: onBack, "aria-label": "Go back" }, /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: "pisell2-arrow-left" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "register-step-content" }, /* @__PURE__ */ import_react.default.createElement("h2", { className: "register-step-title" }, title), /* @__PURE__ */ import_react.default.createElement("p", { className: "register-step-desc" }, description, /* @__PURE__ */ import_react.default.createElement("br", null), displayAccount), /* @__PURE__ */ import_react.default.createElement("div", { className: "code-input-group", onPaste: handlePaste }, code.map((digit, index) => /* @__PURE__ */ import_react.default.createElement(
114
131
  "input",
@@ -117,7 +134,12 @@ function CodeInput({
117
134
  ref: (el) => inputRefs.current[index] = el,
118
135
  type: "text",
119
136
  inputMode: "numeric",
120
- maxLength: 1,
137
+ autoComplete: index === 0 ? "one-time-code" : "off",
138
+ autoCorrect: "off",
139
+ autoCapitalize: "off",
140
+ spellCheck: false,
141
+ maxLength: index === 0 ? codeLength : 1,
142
+ pattern: "[0-9]*",
121
143
  className: `code-input-box ${digit ? "has-value" : ""} ${error ? "has-error" : ""}`,
122
144
  value: digit,
123
145
  onChange: (e) => handleInputChange(index, e.target.value),
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectorDemo: () => JSX.Element;
2
3
  export default SelectorDemo;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface NumberKeyboardProps {
4
+ /** 输入框的值 */
5
+ value?: string;
6
+ /** 输入框的placeholder */
7
+ placeholder?: string;
8
+ /** 输入框的最大长度 */
9
+ maxLength?: number;
10
+ /** 最大值 */
11
+ max?: number;
12
+ /** 确认按钮的文本 */
13
+ okText?: string;
14
+ /** 删除按钮的文本 */
15
+ deleteText?: string | React.ReactNode;
16
+ /** 输入框的值发生变化时回调 */
17
+ onChange?: (num: string) => void;
18
+ /** 确认按钮点击时回调 */
19
+ onOk?: () => void;
20
+ /** 删除按钮点击时回调 */
21
+ onDelete?: (num: string) => void;
22
+ /** 键盘整体样式 */
23
+ style?: React.CSSProperties;
24
+ /** 输入框的样式 */
25
+ inputStyle?: React.CSSProperties;
26
+ }
27
+ declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element;
28
+ export default NumberKeyboard;
@@ -0,0 +1,182 @@
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/pro/numberKeyboard/index.tsx
30
+ var numberKeyboard_exports = {};
31
+ __export(numberKeyboard_exports, {
32
+ default: () => numberKeyboard_default
33
+ });
34
+ module.exports = __toCommonJS(numberKeyboard_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_materials = require("@pisell/materials");
37
+ var import_Delete = __toESM(require("@pisell/icon/es/Delete"));
38
+ var import_utils = require("@pisell/utils");
39
+ var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
40
+ var import_locales = __toESM(require("./locales"));
41
+ var import_index = require("./index.less");
42
+ var NumberKeyboard = (props) => {
43
+ var _a, _b;
44
+ const context = (0, import_useEngineContext.default)();
45
+ import_utils.locales.init(import_locales.default, ((_b = (_a = context == null ? void 0 : context.engine) == null ? void 0 : _a.props) == null ? void 0 : _b.locale) || "en");
46
+ const [num, setNum] = (0, import_react.useState)((props == null ? void 0 : props.value) || "");
47
+ const KeyboardItems = (0, import_react.useMemo)(() => {
48
+ return [
49
+ {
50
+ value: 1,
51
+ label: "1",
52
+ disabled: false,
53
+ type: "text"
54
+ },
55
+ {
56
+ value: 2,
57
+ label: "2",
58
+ disabled: false,
59
+ type: "text"
60
+ },
61
+ {
62
+ value: 3,
63
+ label: "3",
64
+ disabled: false,
65
+ type: "text"
66
+ },
67
+ {
68
+ value: 4,
69
+ label: "4",
70
+ disabled: false,
71
+ type: "text"
72
+ },
73
+ {
74
+ value: 5,
75
+ label: "5",
76
+ disabled: false,
77
+ type: "text"
78
+ },
79
+ {
80
+ value: 6,
81
+ label: "6",
82
+ disabled: false,
83
+ type: "text"
84
+ },
85
+ {
86
+ value: 7,
87
+ label: "7",
88
+ disabled: false,
89
+ type: "text"
90
+ },
91
+ {
92
+ value: 8,
93
+ label: "8",
94
+ disabled: false,
95
+ type: "text"
96
+ },
97
+ {
98
+ value: 9,
99
+ label: "9",
100
+ disabled: false,
101
+ type: "text"
102
+ },
103
+ {
104
+ value: "delete",
105
+ label: (props == null ? void 0 : props.deleteText) || /* @__PURE__ */ import_react.default.createElement(import_Delete.default, { className: "virtual-keyboard-input-delete-icon-num" }),
106
+ disabled: false,
107
+ type: "text"
108
+ },
109
+ {
110
+ value: 0,
111
+ label: "0",
112
+ disabled: false,
113
+ type: "text"
114
+ },
115
+ {
116
+ value: "ok",
117
+ label: (props == null ? void 0 : props.okText) || import_utils.locales.getText("pisell2.number.keyboard.ok"),
118
+ disabled: false,
119
+ type: "primary"
120
+ }
121
+ ];
122
+ }, [import_utils.locales, props == null ? void 0 : props.okText, props == null ? void 0 : props.deleteText]);
123
+ const handleKeyboardChange = (e) => {
124
+ var _a2, _b2, _c;
125
+ if (e === "ok") {
126
+ (_a2 = props == null ? void 0 : props.onOk) == null ? void 0 : _a2.call(props);
127
+ } else if (e === "delete") {
128
+ if (num.length === 0) {
129
+ return;
130
+ }
131
+ const newNum = num.slice(0, -1);
132
+ setNum(newNum);
133
+ (_b2 = props == null ? void 0 : props.onDelete) == null ? void 0 : _b2.call(props, newNum);
134
+ } else {
135
+ if ((props == null ? void 0 : props.maxLength) && num.length >= (props == null ? void 0 : props.maxLength)) {
136
+ console.log("input_maxLength_over", props == null ? void 0 : props.maxLength, num);
137
+ return;
138
+ }
139
+ const newNum = num + e;
140
+ if ((props == null ? void 0 : props.max) && parseInt(newNum) > props.max) {
141
+ console.log("input_maxValue_over", props == null ? void 0 : props.max, newNum);
142
+ return;
143
+ }
144
+ setNum(newNum);
145
+ (_c = props == null ? void 0 : props.onChange) == null ? void 0 : _c.call(props, newNum);
146
+ }
147
+ };
148
+ const handleInputChange = (e) => {
149
+ var _a2;
150
+ const newNum = e.target.value;
151
+ if ((props == null ? void 0 : props.max) && parseInt(newNum) > props.max) {
152
+ return;
153
+ }
154
+ setNum(newNum);
155
+ (_a2 = props == null ? void 0 : props.onChange) == null ? void 0 : _a2.call(props, newNum);
156
+ };
157
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-pro-number-keyboard" }, /* @__PURE__ */ import_react.default.createElement(
158
+ import_materials.VirtualKeyboard,
159
+ {
160
+ style: {
161
+ ...(props == null ? void 0 : props.style) || {}
162
+ },
163
+ selectType: "dark",
164
+ keyboardProps: {
165
+ keydown: false,
166
+ items: KeyboardItems,
167
+ onChange: handleKeyboardChange
168
+ },
169
+ virtualKeyInputProps: {
170
+ value: num,
171
+ onChange: handleInputChange,
172
+ placeholder: (props == null ? void 0 : props.placeholder) || "",
173
+ style: {
174
+ height: "65px",
175
+ fontSize: "36px",
176
+ ...(props == null ? void 0 : props.inputStyle) || {}
177
+ }
178
+ }
179
+ }
180
+ ));
181
+ };
182
+ var numberKeyboard_default = NumberKeyboard;
@@ -0,0 +1,25 @@
1
+ .pisell-pro-number-keyboard {
2
+ zoom: 0.8;
3
+
4
+ .virtual-keyboard-wrap
5
+ .virtual-keyboard-content
6
+ .virtual-keyboard-item
7
+ .virtual-keyboard-item-button {
8
+ padding: 0 !important;
9
+ }
10
+
11
+ .virtual-keyboard-input-delete {
12
+ font-size: 30px !important;
13
+ color: #000 !important;
14
+ }
15
+
16
+ .virtual-keyboard-input-delete-icon-num {
17
+ padding-top: 6px;
18
+ font-size: 30px !important;
19
+ color: #000 !important;
20
+ }
21
+
22
+ .virtual-keyboard-component-left {
23
+ // background-color: rgba(29, 41, 57, 0.80) !important;
24
+ }
25
+ }
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ en: {
3
+ 'pisell2.number.keyboard.ok': string;
4
+ };
5
+ 'zh-CN': {
6
+ 'pisell2.number.keyboard.ok': string;
7
+ };
8
+ 'zh-HK': {
9
+ 'pisell2.number.keyboard.ok': string;
10
+ };
11
+ };
12
+ export default _default;
@@ -0,0 +1,35 @@
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/pro/numberKeyboard/locales.ts
20
+ var locales_exports = {};
21
+ __export(locales_exports, {
22
+ default: () => locales_default
23
+ });
24
+ module.exports = __toCommonJS(locales_exports);
25
+ var locales_default = {
26
+ en: {
27
+ "pisell2.number.keyboard.ok": "OK"
28
+ },
29
+ "zh-CN": {
30
+ "pisell2.number.keyboard.ok": "确认"
31
+ },
32
+ "zh-HK": {
33
+ "pisell2.number.keyboard.ok": "確認"
34
+ }
35
+ };
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Example: React.FC;
3
+ export default Example;
@@ -0,0 +1,93 @@
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/pro/pisellNumberSelector/example.tsx
30
+ var example_exports = {};
31
+ __export(example_exports, {
32
+ default: () => example_default
33
+ });
34
+ module.exports = __toCommonJS(example_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_index = __toESM(require("./index"));
37
+ var Example = () => {
38
+ const [value1, setValue1] = (0, import_react.useState)(1);
39
+ const [value2, setValue2] = (0, import_react.useState)(50);
40
+ const [value3, setValue3] = (0, import_react.useState)(99);
41
+ return /* @__PURE__ */ import_react.default.createElement("div", { style: { padding: "20px", display: "flex", flexDirection: "column", gap: "20px" } }, /* @__PURE__ */ import_react.default.createElement("h3", null, "PisellNumberSelector 使用示例"), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "基础用法"), /* @__PURE__ */ import_react.default.createElement(
42
+ import_index.default,
43
+ {
44
+ value: value1,
45
+ onChange: setValue1,
46
+ min: 0,
47
+ max: 10,
48
+ size: "middle"
49
+ }
50
+ ), /* @__PURE__ */ import_react.default.createElement("p", null, "当前值: ", value1)), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "不同尺寸"), /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "flex", gap: "10px", alignItems: "center" } }, /* @__PURE__ */ import_react.default.createElement(
51
+ import_index.default,
52
+ {
53
+ value: value2,
54
+ onChange: setValue2,
55
+ size: "small"
56
+ }
57
+ ), /* @__PURE__ */ import_react.default.createElement(
58
+ import_index.default,
59
+ {
60
+ value: value2,
61
+ onChange: setValue2,
62
+ size: "middle"
63
+ }
64
+ ), /* @__PURE__ */ import_react.default.createElement(
65
+ import_index.default,
66
+ {
67
+ value: value2,
68
+ onChange: setValue2,
69
+ size: "large"
70
+ }
71
+ ))), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "启用价格调整功能"), /* @__PURE__ */ import_react.default.createElement(
72
+ import_index.default,
73
+ {
74
+ value: value3,
75
+ onChange: setValue3,
76
+ min: 0,
77
+ max: 999,
78
+ size: "large",
79
+ enablePriceAdjust: true,
80
+ originValue: 100
81
+ }
82
+ ), /* @__PURE__ */ import_react.default.createElement("p", null, "点击数字可以打开价格调整面板"), /* @__PURE__ */ import_react.default.createElement("p", null, "当前值: ", value3)), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("h4", null, "禁用状态"), /* @__PURE__ */ import_react.default.createElement(
83
+ import_index.default,
84
+ {
85
+ value: 50,
86
+ onChange: () => {
87
+ },
88
+ disabled: true,
89
+ size: "middle"
90
+ }
91
+ )));
92
+ };
93
+ var example_default = Example;
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface PisellNumberSelectorProps {
4
+ /** 当前值 */
5
+ value?: number;
6
+ /** 最小值 */
7
+ min?: number;
8
+ /** 最大值 */
9
+ max?: number;
10
+ /** 步长 */
11
+ step?: number;
12
+ /** 强制宽度 */
13
+ width?: string;
14
+ styleType?: 'capsule' | 'separation';
15
+ /** 是否禁用 */
16
+ disabled?: boolean;
17
+ /** 值变化回调 */
18
+ onChange?: (value: number) => void;
19
+ /** 组件尺寸 */
20
+ size?: 'small' | 'middle' | 'large';
21
+ /** 自定义类名 */
22
+ className?: string;
23
+ /** 是否启用价格调整面板 */
24
+ enablePriceAdjust?: boolean;
25
+ /** 原始价格(用于价格调整) */
26
+ originValue?: number;
27
+ }
28
+ declare const PisellNumberSelector: React.FC<PisellNumberSelectorProps>;
29
+ export default PisellNumberSelector;