@pisell/materials 6.1.1 → 6.2.25

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 (340) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +7 -7
  6. package/build/lowcode/preview.js +146 -146
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +36 -27
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +41 -32
  11. package/es/components/DragSortList/index.js +6 -6
  12. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  13. package/es/components/appVersionControl/index.d.ts +4 -0
  14. package/es/components/badge/index.d.ts +7 -0
  15. package/es/components/buttonGroupEdit/index.d.ts +8 -0
  16. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  17. package/es/components/cardPro/index.d.ts +3 -0
  18. package/es/components/classicLayout/index.js +4 -5
  19. package/es/components/collapse/index.d.ts +15 -0
  20. package/es/components/cropPhoto/index.d.ts +3 -0
  21. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  22. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  25. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  26. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  27. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  28. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  29. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  30. package/es/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  31. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  32. package/es/components/dataSourceComponents/fields/index.d.ts +4 -4
  33. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  34. package/es/components/drag-sort-tree/TreeItem/index.js +2 -1
  35. package/es/components/drag-sort-tree/index.d.ts +4 -0
  36. package/es/components/icon/index.js +5 -5
  37. package/es/components/iconfont/index.js +1 -1
  38. package/es/components/list/index.js +6 -6
  39. package/es/components/login-and-register/index.d.ts +82 -0
  40. package/es/components/login-and-register/index.js +22 -18
  41. package/es/components/page/index.d.ts +5 -0
  42. package/es/components/pisell-config-provider/index.d.ts +12 -0
  43. package/es/components/pisellAdjustPrice/index.d.ts +1 -6
  44. package/es/components/pisellAdjustPrice/index.js +64 -8
  45. package/es/components/pisellAdjustPrice/index.less +35 -6
  46. package/es/components/pisellAdjustPrice/status.js +32 -0
  47. package/es/components/pisellAdjustPrice/type.js +1 -0
  48. package/es/components/pisellAnchor/index.d.ts +23 -0
  49. package/es/components/pisellAvatar/index.d.ts +19 -0
  50. package/es/components/pisellCard/index.d.ts +19 -0
  51. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  52. package/es/components/pisellDropdown/index.d.ts +20 -0
  53. package/es/components/pisellEmpty/index.d.ts +19 -0
  54. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  55. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  56. package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  57. package/es/components/pisellInformationEntry/index.d.ts +33 -0
  58. package/es/components/pisellList01/index.d.ts +17 -0
  59. package/es/components/pisellQrcode/index.d.ts +10 -0
  60. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  61. package/es/components/pisellStatisticList/index.d.ts +21 -0
  62. package/es/components/pisellToast/index.js +3 -0
  63. package/es/components/pisellWalletPassCard/index.d.ts +0 -1
  64. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  65. package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +61 -0
  66. package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  67. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  68. package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
  69. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  70. package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
  71. package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  72. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  73. package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
  74. package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  75. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  76. package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
  77. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  78. package/es/components/productCard/cartSkuCard/components/resources/index.js +44 -0
  79. package/es/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  80. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  81. package/es/components/productCard/cartSkuCard/components/sales/index.js +55 -0
  82. package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  83. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  84. package/es/components/productCard/cartSkuCard/components/specs/index.js +43 -0
  85. package/es/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  86. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  87. package/es/components/productCard/cartSkuCard/components/timeRange/index.js +53 -0
  88. package/es/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  89. package/es/components/productCard/cartSkuCard/index.d.ts +8 -0
  90. package/es/components/productCard/cartSkuCard/index.js +195 -0
  91. package/es/components/productCard/cartSkuCard/index.less +69 -0
  92. package/es/components/productCard/cartSkuCard/locales.js +30 -0
  93. package/es/components/productCard/components/Action/index.d.ts +3 -0
  94. package/es/components/productCard/components/AmountFooter/index.js +22 -6
  95. package/es/components/productCard/components/AmountFooter/index.less +28 -1
  96. package/es/components/productCard/components/Divider/index.d.ts +3 -0
  97. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  98. package/es/components/productCard/components/Header/index.js +4 -3
  99. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  100. package/es/components/productCard/components/MultiDay/utils.d.ts +14 -0
  101. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  102. package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +2 -1
  103. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  104. package/es/components/productCard/components/Packages/components/options/index.less +3 -2
  105. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  106. package/es/components/productCard/components/Sales/index.js +2 -2
  107. package/es/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  108. package/es/components/productCard/components/Time/index.d.ts +3 -0
  109. package/es/components/productCard/components/Warning/index.d.ts +7 -0
  110. package/es/components/productCard/components/Warning/index.js +48 -0
  111. package/es/components/productCard/index.d.ts +3 -1
  112. package/es/components/productCard/index.js +10 -8
  113. package/es/components/productCard/locales.js +6 -3
  114. package/es/components/productCard/status.js +3 -1
  115. package/es/components/productCard/utils.js +8 -6
  116. package/es/components/qrcode/index.js +1 -1
  117. package/es/components/section-footers/index.d.ts +9 -0
  118. package/es/components/sort/components/InlineMenu/index.js +1 -1
  119. package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
  120. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  121. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  122. package/es/components/table/Actions/component/ViewMode/index.js +1 -1
  123. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
  124. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  125. package/es/components/table/Header/Buttons/index.js +5 -5
  126. package/es/components/table/Table/AddFieldModal/index.js +6 -6
  127. package/es/components/table/Table/SelectField/index.js +4 -4
  128. package/es/components/table/Table/fields/date/Edit/index.js +1 -1
  129. package/es/components/table/Table/fields/index.d.ts +2 -2
  130. package/es/components/table/Table/fields/link/Edit/index.js +5 -5
  131. package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
  132. package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
  133. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  134. package/es/components/table/Table/fields/text/Show/index.js +4 -4
  135. package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
  136. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  137. package/es/components/table/Table/index.d.ts +4 -0
  138. package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
  139. package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
  140. package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
  141. package/es/components/table/Table/utils.d.ts +1 -1
  142. package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
  143. package/es/components/table/hooks/useTableSetting.d.ts +22 -0
  144. package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
  145. package/es/components/table/hooks/useTransFilterSetting.js +5 -5
  146. package/es/components/table/types.d.ts +251 -0
  147. package/es/components/tabs/index.d.ts +16 -0
  148. package/es/components/translation/index.d.ts +4 -3
  149. package/es/components/translation/index.js +34 -32
  150. package/es/components/translation/utils.js +5 -5
  151. package/es/components/versionModal/index.d.ts +23 -0
  152. package/es/components/virtual-keyboard/Amount/index.d.ts +3 -20
  153. package/es/components/virtual-keyboard/Amount/index.js +79 -7
  154. package/es/components/virtual-keyboard/Amount/index.less +39 -0
  155. package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
  156. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  157. package/es/components/virtual-keyboard/Amount/types.js +1 -0
  158. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  159. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.js +38 -10
  160. package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
  161. package/es/components/virtual-keyboard/Number/index.d.ts +3 -11
  162. package/es/components/virtual-keyboard/Number/index.js +77 -7
  163. package/es/components/virtual-keyboard/Number/index.less +39 -0
  164. package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
  165. package/es/components/virtual-keyboard/Number/types.js +1 -0
  166. package/es/components/virtual-keyboard/VirtualKeyInput/index.js +10 -3
  167. package/es/components/virtual-keyboard/index.d.ts +11 -0
  168. package/es/components/virtual-keyboard/index.js +88 -3
  169. package/es/components/virtual-keyboard/index.less +33 -1
  170. package/es/components/walletCard/Guest/index.d.ts +3 -0
  171. package/es/components/walletCard/Guide/index.d.ts +3 -0
  172. package/es/components/walletCard/index.d.ts +67 -0
  173. package/es/hooks/useResponsive.js +2 -2
  174. package/es/utils/hoc.js +1 -1
  175. package/es/utils/index.d.ts +1 -1
  176. package/es/utils/miniRedux.js +8 -9
  177. package/es/utils/platform.d.ts +1 -1
  178. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  179. package/lib/components/appVersionControl/index.d.ts +4 -0
  180. package/lib/components/badge/index.d.ts +7 -0
  181. package/lib/components/buttonGroupEdit/index.d.ts +8 -0
  182. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  183. package/lib/components/cardPro/index.d.ts +3 -0
  184. package/lib/components/collapse/index.d.ts +15 -0
  185. package/lib/components/cropPhoto/index.d.ts +3 -0
  186. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  187. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  188. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  189. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  190. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +78 -0
  191. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  192. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  193. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  194. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  195. package/lib/components/dataSourceComponents/fields/Upload/serve.d.ts +20 -0
  196. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  197. package/lib/components/dataSourceComponents/fields/index.d.ts +4 -4
  198. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  199. package/lib/components/drag-sort-tree/TreeItem/index.js +2 -1
  200. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  201. package/lib/components/iconfont/index.js +1 -1
  202. package/lib/components/login-and-register/index.d.ts +82 -0
  203. package/lib/components/login-and-register/index.js +2 -2
  204. package/lib/components/lowCodePage/index.js +1 -2
  205. package/lib/components/page/index.d.ts +5 -0
  206. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  207. package/lib/components/pisellAdjustPrice/index.d.ts +1 -6
  208. package/lib/components/pisellAdjustPrice/index.js +119 -57
  209. package/lib/components/pisellAdjustPrice/index.less +35 -6
  210. package/lib/components/pisellAdjustPrice/status.js +60 -0
  211. package/lib/components/pisellAdjustPrice/type.js +17 -0
  212. package/lib/components/pisellAnchor/index.d.ts +23 -0
  213. package/lib/components/pisellAvatar/index.d.ts +19 -0
  214. package/lib/components/pisellCard/index.d.ts +19 -0
  215. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  216. package/lib/components/pisellDropdown/index.d.ts +20 -0
  217. package/lib/components/pisellEmpty/index.d.ts +19 -0
  218. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  219. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  220. package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
  221. package/lib/components/pisellInformationEntry/index.d.ts +33 -0
  222. package/lib/components/pisellList01/index.d.ts +17 -0
  223. package/lib/components/pisellQrcode/index.d.ts +10 -0
  224. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  225. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  226. package/lib/components/pisellToast/index.js +3 -0
  227. package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
  228. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +21 -0
  229. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +71 -0
  230. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
  231. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  232. package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
  233. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  234. package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
  235. package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
  236. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  237. package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
  238. package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
  239. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  240. package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
  241. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  242. package/lib/components/productCard/cartSkuCard/components/resources/index.js +73 -0
  243. package/lib/components/productCard/cartSkuCard/components/resources/index.less +20 -0
  244. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +11 -0
  245. package/lib/components/productCard/cartSkuCard/components/sales/index.js +76 -0
  246. package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
  247. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  248. package/lib/components/productCard/cartSkuCard/components/specs/index.js +65 -0
  249. package/lib/components/productCard/cartSkuCard/components/specs/index.less +28 -0
  250. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  251. package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +67 -0
  252. package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
  253. package/lib/components/productCard/cartSkuCard/index.d.ts +8 -0
  254. package/lib/components/productCard/cartSkuCard/index.js +216 -0
  255. package/lib/components/productCard/cartSkuCard/index.less +69 -0
  256. package/lib/components/productCard/cartSkuCard/locales.js +61 -0
  257. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  258. package/lib/components/productCard/components/AmountFooter/index.js +16 -6
  259. package/lib/components/productCard/components/AmountFooter/index.less +28 -1
  260. package/lib/components/productCard/components/Divider/index.d.ts +3 -0
  261. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  262. package/lib/components/productCard/components/Header/index.js +4 -3
  263. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  264. package/lib/components/productCard/components/MultiDay/utils.d.ts +14 -0
  265. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  266. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.js +2 -2
  267. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  268. package/lib/components/productCard/components/Packages/components/options/index.less +3 -2
  269. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  270. package/lib/components/productCard/components/Sales/index.js +2 -2
  271. package/lib/components/productCard/components/Time/components/Like/index.d.ts +9 -0
  272. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  273. package/lib/components/productCard/components/Warning/index.d.ts +7 -0
  274. package/lib/components/productCard/components/Warning/index.js +68 -0
  275. package/lib/components/productCard/index.d.ts +3 -1
  276. package/lib/components/productCard/index.js +6 -11
  277. package/lib/components/productCard/locales.js +6 -3
  278. package/lib/components/productCard/status.js +3 -1
  279. package/lib/components/productCard/utils.js +7 -6
  280. package/lib/components/section-footers/index.d.ts +9 -0
  281. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  282. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  283. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  284. package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
  285. package/lib/components/table/Table/fields/index.d.ts +2 -2
  286. package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
  287. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  288. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  289. package/lib/components/table/Table/fields/utils/index.js +1 -2
  290. package/lib/components/table/Table/index.d.ts +4 -0
  291. package/lib/components/table/Table/utils.d.ts +1 -1
  292. package/lib/components/table/hooks/useTableSetting.d.ts +22 -0
  293. package/lib/components/table/types.d.ts +251 -0
  294. package/lib/components/tabs/index.d.ts +16 -0
  295. package/lib/components/translation/index.d.ts +4 -3
  296. package/lib/components/translation/index.js +1 -0
  297. package/lib/components/versionModal/index.d.ts +23 -0
  298. package/lib/components/virtual-keyboard/Amount/index.d.ts +3 -20
  299. package/lib/components/virtual-keyboard/Amount/index.js +72 -16
  300. package/lib/components/virtual-keyboard/Amount/index.less +39 -0
  301. package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
  302. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  303. package/lib/components/virtual-keyboard/Amount/types.js +17 -0
  304. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +3 -1
  305. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.js +31 -8
  306. package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
  307. package/lib/components/virtual-keyboard/Number/index.d.ts +3 -11
  308. package/lib/components/virtual-keyboard/Number/index.js +65 -11
  309. package/lib/components/virtual-keyboard/Number/index.less +39 -0
  310. package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
  311. package/lib/components/virtual-keyboard/Number/types.js +17 -0
  312. package/lib/components/virtual-keyboard/VirtualKeyInput/index.js +34 -20
  313. package/lib/components/virtual-keyboard/index.d.ts +11 -0
  314. package/lib/components/virtual-keyboard/index.js +60 -2
  315. package/lib/components/virtual-keyboard/index.less +33 -1
  316. package/lib/components/walletCard/Guest/index.d.ts +3 -0
  317. package/lib/components/walletCard/Guide/index.d.ts +3 -0
  318. package/lib/components/walletCard/index.d.ts +67 -0
  319. package/lib/hooks/useResponsive.js +3 -6
  320. package/lib/utils/index.d.ts +1 -1
  321. package/lib/utils/platform.d.ts +1 -1
  322. package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
  323. package/lowcode/pisell-adjust-price/meta.ts +168 -0
  324. package/lowcode/pisell-adjust-price/snippets.ts +1 -0
  325. package/lowcode/pisell-number-keyboard/meta.ts +167 -0
  326. package/lowcode/pisell-price-keyboard/meta.ts +167 -0
  327. package/lowcode/virtual-keyboard/meta.ts +131 -0
  328. package/package.json +2 -2
  329. package/dist/umd/materials.min.css +0 -1
  330. package/dist/umd/materials.min.js +0 -1
  331. package/dist/umd/static/DotsSix.57d66266.svg +0 -1
  332. package/dist/umd/static/arrow-left.e542294f.svg +0 -1
  333. package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
  334. package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
  335. package/dist/umd/static/help-circle.31c9be40.svg +0 -1
  336. package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
  337. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  338. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
  339. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  340. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
@@ -1,27 +1,88 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["min", "max", "doneText", "resetText", "defaultValue", "placeholder", "onEnter", "selectType"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
8
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
12
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import React from 'react';
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
+ import React, { useEffect, useMemo } from 'react';
8
17
  import { useControllableValue } from 'ahooks';
18
+ import classNames from 'classnames';
19
+ import { setTheme } from '@pisell/utils';
9
20
  import BaseNumberKeyboard from "../BaseNumberKeyboard";
10
- var Number = function Number(props) {
21
+ import usePisellConfig from "../../pisell-config-provider/hooks/usePisellConfig";
22
+ import { numberThemeConfig } from "./themeConfig";
23
+ import "./index.less";
24
+ var _Number = function _Number(props) {
11
25
  var min = props.min,
12
26
  max = props.max,
13
27
  doneText = props.doneText,
14
28
  resetText = props.resetText,
15
29
  defaultValue = props.defaultValue,
16
30
  placeholder = props.placeholder,
17
- onEnter = props.onEnter;
31
+ onEnter = props.onEnter,
32
+ _props$selectType = props.selectType,
33
+ selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
34
+ others = _objectWithoutProperties(props, _excluded);
35
+ var config = usePisellConfig();
18
36
  var _useControllableValue = useControllableValue(props, {
19
37
  defaultValue: defaultValue || ""
20
38
  }),
21
39
  _useControllableValue2 = _slicedToArray(_useControllableValue, 2),
22
40
  value = _useControllableValue2[0],
23
41
  setValue = _useControllableValue2[1];
24
- return /*#__PURE__*/React.createElement(BaseNumberKeyboard, {
42
+ useEffect(function () {
43
+ document.body.id = 'body';
44
+ }, []);
45
+
46
+ /**
47
+ * 配置颜色
48
+ * 根据 props 和 selectType 生成最终的配置颜色
49
+ */
50
+ var configColor = useMemo(function () {
51
+ var currentConfig = numberThemeConfig[selectType];
52
+
53
+ // 过滤出有效的 props 并合并到默认配置中
54
+ var validProps = Object.entries(props).reduce(function (acc, _ref) {
55
+ var _ref2 = _slicedToArray(_ref, 2),
56
+ key = _ref2[0],
57
+ value = _ref2[1];
58
+ if (value !== undefined && key in currentConfig) {
59
+ acc[key] = value;
60
+ }
61
+ return acc;
62
+ }, {});
63
+ return _objectSpread(_objectSpread({}, currentConfig), validProps);
64
+ }, [selectType, props]);
65
+ useEffect(function () {
66
+ setTheme({
67
+ '--pisell-number-background-color': configColor.backgroundColor,
68
+ '--pisell-number-container-background-color': configColor.containerBackgroundColor,
69
+ '--pisell-number-text-color': configColor.textColor,
70
+ '--pisell-number-keyboard-background-color': configColor.keyboardBackgroundColor,
71
+ '--pisell-number-keyboard-button-background-color': configColor.keyboardButtonBackgroundColor,
72
+ '--pisell-number-keyboard-button-text-color': configColor.keyboardButtonTextColor,
73
+ '--pisell-number-keyboard-button-hover-color': configColor.keyboardButtonHoverColor,
74
+ '--pisell-number-reset-button-background-color': configColor.resetButtonBackgroundColor,
75
+ '--pisell-number-reset-button-text-color': configColor.resetButtonTextColor,
76
+ '--pisell-number-done-button-background-color': configColor.doneButtonBackgroundColor,
77
+ '--pisell-number-done-button-text-color': configColor.doneButtonTextColor
78
+ });
79
+ }, [configColor]);
80
+ return /*#__PURE__*/React.createElement("div", {
81
+ className: classNames('pisell-number-keyboard-wrap', {
82
+ 'pisell-number-keyboard-dark': selectType === 'dark',
83
+ 'pisell-number-keyboard-light': selectType === 'light'
84
+ })
85
+ }, /*#__PURE__*/React.createElement(BaseNumberKeyboard, {
25
86
  max: max,
26
87
  min: min,
27
88
  value: value,
@@ -29,7 +90,16 @@ var Number = function Number(props) {
29
90
  placeholder: placeholder,
30
91
  doneText: doneText,
31
92
  resetText: resetText,
32
- onEnter: onEnter
33
- });
93
+ onEnter: onEnter,
94
+ rightItemsStyle: {
95
+ buttonBackgroundColor: configColor.buttonBackgroundColor,
96
+ textColor: configColor.textColor,
97
+ resetButtonBackgroundColor: configColor.resetButtonBackgroundColor,
98
+ resetButtonTextColor: configColor.resetButtonTextColor,
99
+ isDoneButtonFollowTheme: configColor.isDoneButtonFollowTheme,
100
+ doneButtonBackgroundColor: configColor.doneButtonBackgroundColor,
101
+ doneButtonTextColor: configColor.doneButtonTextColor
102
+ }
103
+ }));
34
104
  };
35
- export default Number;
105
+ export default _Number;
@@ -0,0 +1,39 @@
1
+ .pisell-number-keyboard-wrap {
2
+ background-color: var(--pisell-number-background-color, #ffffff);
3
+
4
+ &.pisell-number-keyboard-dark {
5
+ background-color: var(--pisell-number-background-color, rgba(0, 0, 0, 0.70));
6
+ }
7
+
8
+ &.pisell-number-keyboard-light {
9
+ background-color: var(--pisell-number-background-color, #ffffff);
10
+ }
11
+
12
+ .pisell-virtual-keyboard-input {
13
+ background-color: var(--pisell-number-container-background-color, #d0d5dd);
14
+ color: var(--pisell-number-text-color, #000000);
15
+ }
16
+
17
+ .pisell-keyboard {
18
+ background-color: var(--pisell-number-keyboard-background-color, #f9f9f9);
19
+
20
+ .pisell-keyboard-item {
21
+ background-color: var(--pisell-number-keyboard-button-background-color, #ffffff);
22
+ color: var(--pisell-number-keyboard-button-text-color, #000000);
23
+
24
+ &:hover {
25
+ background-color: var(--pisell-number-keyboard-button-hover-color, #f5f5f5);
26
+ }
27
+ }
28
+
29
+ .pisell-keyboard-reset-button {
30
+ background-color: var(--pisell-number-reset-button-background-color, #ffffff);
31
+ color: var(--pisell-number-reset-button-text-color, #d92d20);
32
+ }
33
+
34
+ .pisell-keyboard-done-button {
35
+ background-color: var(--pisell-number-done-button-background-color, #4ca30d);
36
+ color: var(--pisell-number-done-button-text-color, #ffffff);
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,32 @@
1
+ export var numberThemeConfig = {
2
+ dark: {
3
+ backgroundColor: 'rgba(0, 0, 0, 0.70)',
4
+ containerBackgroundColor: 'rgba(0, 0, 0, 0.40)',
5
+ buttonBackgroundColor: '#ffffff',
6
+ textColor: '#000000',
7
+ resetButtonBackgroundColor: '#ffffff',
8
+ resetButtonTextColor: '#d92d20',
9
+ isDoneButtonFollowTheme: true,
10
+ doneButtonBackgroundColor: '#4ca30d',
11
+ doneButtonTextColor: '#ffffff',
12
+ keyboardBackgroundColor: 'rgba(0, 0, 0, 0.40)',
13
+ keyboardButtonBackgroundColor: '#ffffff',
14
+ keyboardButtonTextColor: '#000000',
15
+ keyboardButtonHoverColor: '#f5f5f5'
16
+ },
17
+ light: {
18
+ backgroundColor: '#ffffff',
19
+ containerBackgroundColor: '#d0d5dd',
20
+ buttonBackgroundColor: '#ffffff',
21
+ textColor: '#000000',
22
+ resetButtonBackgroundColor: '#ffffff',
23
+ resetButtonTextColor: '#d92d20',
24
+ isDoneButtonFollowTheme: true,
25
+ doneButtonBackgroundColor: '#4ca30d',
26
+ doneButtonTextColor: '#ffffff',
27
+ keyboardBackgroundColor: '#f9f9f9',
28
+ keyboardButtonBackgroundColor: '#ffffff',
29
+ keyboardButtonTextColor: '#000000',
30
+ keyboardButtonHoverColor: '#f5f5f5'
31
+ }
32
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -20,7 +20,8 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
20
20
  _props$showDelete = props.showDelete,
21
21
  showDelete = _props$showDelete === void 0 ? true : _props$showDelete,
22
22
  onValueSelect = props.onValueSelect,
23
- defaultSelect = props.defaultSelect;
23
+ defaultSelect = props.defaultSelect,
24
+ style = props.style;
24
25
  var _useState = useState(defaultSelect !== null && defaultSelect !== void 0 ? defaultSelect : false),
25
26
  _useState2 = _slicedToArray(_useState, 2),
26
27
  select = _useState2[0],
@@ -57,7 +58,10 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
57
58
  });
58
59
  };
59
60
  return /*#__PURE__*/React.createElement("div", {
60
- className: "virtual-keyboard-input-wrap"
61
+ className: "virtual-keyboard-input-wrap",
62
+ style: {
63
+ backgroundColor: (style === null || style === void 0 ? void 0 : style.backgroundColor) || '#ffffff'
64
+ }
61
65
  }, props.renderInput ? /*#__PURE__*/React.createElement("div", {
62
66
  className: classNames('virtual-keyboard-input', {
63
67
  'virtual-keyboard-input-select': select
@@ -66,6 +70,9 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
66
70
  if (value) {
67
71
  handleSelectChange(!select);
68
72
  }
73
+ },
74
+ style: {
75
+ color: (style === null || style === void 0 ? void 0 : style.color) || '#000000'
69
76
  }
70
77
  }, props.renderInput(props)) : /*#__PURE__*/React.createElement(Input, _extends({
71
78
  className: "virtual-keyboard-input",
@@ -73,7 +80,7 @@ var VirtualKeyInput = function VirtualKeyInput(props) {
73
80
  }, props, {
74
81
  readOnly: true,
75
82
  value: previewValue
76
- })), (_ref = "".concat(value !== null && value !== void 0 ? value : "")) !== null && _ref !== void 0 && _ref.length && showDelete ? /*#__PURE__*/React.createElement("div", {
83
+ })), (_ref = "".concat(value !== null && value !== void 0 ? value : '')) !== null && _ref !== void 0 && _ref.length && showDelete ? /*#__PURE__*/React.createElement("div", {
77
84
  className: "virtual-keyboard-input-delete",
78
85
  onClick: _onDelete
79
86
  }, /*#__PURE__*/React.createElement(Delete, {
@@ -9,6 +9,17 @@ interface VirtualKeyboardProps extends React.HTMLAttributes<HTMLDivElement> {
9
9
  style?: React.CSSProperties;
10
10
  onChange?: (value?: any) => void;
11
11
  value?: string;
12
+ selectType?: 'light' | 'dark';
13
+ backgroundColor?: string;
14
+ containerBackgroundColor?: string;
15
+ buttonBackgroundColor?: string;
16
+ textColor?: string;
17
+ keyboardBackgroundColor?: string;
18
+ keyboardButtonBackgroundColor?: string;
19
+ keyboardButtonTextColor?: string;
20
+ keyboardButtonHoverColor?: string;
21
+ primaryButtonBackgroundColor?: string;
22
+ primaryButtonTextColor?: string;
12
23
  }
13
24
  declare const VirtualKeyboard: (props: VirtualKeyboardProps) => JSX.Element;
14
25
  export default VirtualKeyboard;
@@ -1,9 +1,26 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["virtualKeyInputProps", "style", "className", "keyboardProps", "onChange", "value", "rightPanel", "selectType"];
1
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- import React, { useEffect } from "react";
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
16
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
17
+ import React, { useEffect, useMemo } from "react";
3
18
  import Keyboard from "./Keyboard";
4
19
  import VirtualKeyInput from "./VirtualKeyInput";
5
20
  import "./index.less";
6
21
  import classNames from "classnames";
22
+ import { setTheme } from '@pisell/utils';
23
+ import usePisellConfig from "../pisell-config-provider/hooks/usePisellConfig";
7
24
  var items = [{
8
25
  value: 1,
9
26
  label: "1",
@@ -60,6 +77,33 @@ var items = [{
60
77
  disabled: false,
61
78
  type: "primary"
62
79
  }];
80
+ // 默认主题配置
81
+ var virtualKeyboardThemeConfig = {
82
+ dark: {
83
+ backgroundColor: 'rgba(0, 0, 0, 0.70)',
84
+ containerBackgroundColor: 'rgba(0, 0, 0, 0.40)',
85
+ buttonBackgroundColor: '#ffffff',
86
+ textColor: '#000000',
87
+ keyboardBackgroundColor: 'rgba(0, 0, 0, 0.40)',
88
+ keyboardButtonBackgroundColor: '#ffffff',
89
+ keyboardButtonTextColor: '#000000',
90
+ keyboardButtonHoverColor: '#f5f5f5',
91
+ primaryButtonBackgroundColor: '#4ca30d',
92
+ primaryButtonTextColor: '#ffffff'
93
+ },
94
+ light: {
95
+ backgroundColor: '#ffffff',
96
+ containerBackgroundColor: '#d0d5dd',
97
+ buttonBackgroundColor: '#ffffff',
98
+ textColor: '#000000',
99
+ keyboardBackgroundColor: '#f9f9f9',
100
+ keyboardButtonBackgroundColor: '#ffffff',
101
+ keyboardButtonTextColor: '#000000',
102
+ keyboardButtonHoverColor: '#f5f5f5',
103
+ primaryButtonBackgroundColor: '#4ca30d',
104
+ primaryButtonTextColor: '#ffffff'
105
+ }
106
+ };
63
107
  var VirtualKeyboard = function VirtualKeyboard(props) {
64
108
  var virtualKeyInputProps = props.virtualKeyInputProps,
65
109
  style = props.style,
@@ -67,12 +111,53 @@ var VirtualKeyboard = function VirtualKeyboard(props) {
67
111
  keyboardProps = props.keyboardProps,
68
112
  onChange = props.onChange,
69
113
  value = props.value,
70
- rightPanel = props.rightPanel;
114
+ rightPanel = props.rightPanel,
115
+ _props$selectType = props.selectType,
116
+ selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
117
+ others = _objectWithoutProperties(props, _excluded);
118
+ var config = usePisellConfig();
71
119
  useEffect(function () {
72
120
  document.body.id = "body";
73
121
  }, []);
122
+
123
+ /**
124
+ * 配置颜色
125
+ * 根据 props 和 selectType 生成最终的配置颜色
126
+ */
127
+ var configColor = useMemo(function () {
128
+ var currentConfig = virtualKeyboardThemeConfig[selectType];
129
+
130
+ // 过滤出有效的 props 并合并到默认配置中
131
+ var validProps = Object.entries(props).reduce(function (acc, _ref) {
132
+ var _ref2 = _slicedToArray(_ref, 2),
133
+ key = _ref2[0],
134
+ value = _ref2[1];
135
+ if (value !== undefined && key in currentConfig) {
136
+ acc[key] = value;
137
+ }
138
+ return acc;
139
+ }, {});
140
+ return _objectSpread(_objectSpread({}, currentConfig), validProps);
141
+ }, [selectType, props]);
142
+ useEffect(function () {
143
+ setTheme({
144
+ '--virtual-keyboard-background-color': configColor.backgroundColor,
145
+ '--virtual-keyboard-container-background-color': configColor.containerBackgroundColor,
146
+ '--virtual-keyboard-button-background-color': configColor.buttonBackgroundColor,
147
+ '--virtual-keyboard-text-color': configColor.textColor,
148
+ '--virtual-keyboard-keyboard-background-color': configColor.keyboardBackgroundColor,
149
+ '--virtual-keyboard-keyboard-button-background-color': configColor.keyboardButtonBackgroundColor,
150
+ '--virtual-keyboard-keyboard-button-text-color': configColor.keyboardButtonTextColor,
151
+ '--virtual-keyboard-keyboard-button-hover-color': configColor.keyboardButtonHoverColor,
152
+ '--virtual-keyboard-primary-button-background-color': configColor.primaryButtonBackgroundColor,
153
+ '--virtual-keyboard-primary-button-text-color': configColor.primaryButtonTextColor
154
+ });
155
+ }, [configColor]);
74
156
  return /*#__PURE__*/React.createElement("div", {
75
- className: classNames("virtual-keyboard-component", className),
157
+ className: classNames("virtual-keyboard-component", className, {
158
+ 'virtual-keyboard-component-dark': selectType === 'dark',
159
+ 'virtual-keyboard-component-light': selectType === 'light'
160
+ }),
76
161
  style: style
77
162
  }, /*#__PURE__*/React.createElement("div", {
78
163
  className: classNames("virtual-keyboard-component-left")
@@ -2,14 +2,46 @@
2
2
  display: flex;
3
3
  align-items: center;
4
4
  gap: 20px;
5
+ background-color: var(--virtual-keyboard-background-color, #ffffff);
6
+
7
+ &.virtual-keyboard-component-dark {
8
+ background-color: var(--virtual-keyboard-background-color, rgba(0, 0, 0, 0.70));
9
+ }
10
+
11
+ &.virtual-keyboard-component-light {
12
+ background-color: var(--virtual-keyboard-background-color, #ffffff);
13
+ }
5
14
  }
6
15
 
7
16
  .virtual-keyboard-component-left {
8
17
  padding: 10px;
9
18
  width: 380px;
10
19
  border-radius: 10px;
11
- background: var(--Gray-300, #D0D5DD);
20
+ background: var(--virtual-keyboard-container-background-color, #D0D5DD);
12
21
  backdrop-filter: blur(50px);
22
+
23
+ .pisell-virtual-keyboard-input {
24
+ background-color: var(--virtual-keyboard-button-background-color, #ffffff);
25
+ color: var(--virtual-keyboard-text-color, #000000);
26
+ }
27
+
28
+ .pisell-keyboard {
29
+ background-color: var(--virtual-keyboard-keyboard-background-color, #f9f9f9);
30
+
31
+ .pisell-keyboard-item {
32
+ background-color: var(--virtual-keyboard-keyboard-button-background-color, #ffffff);
33
+ color: var(--virtual-keyboard-keyboard-button-text-color, #000000);
34
+
35
+ &:hover {
36
+ background-color: var(--virtual-keyboard-keyboard-button-hover-color, #f5f5f5);
37
+ }
38
+
39
+ &.pisell-keyboard-item-primary {
40
+ background-color: var(--virtual-keyboard-primary-button-background-color, #4ca30d);
41
+ color: var(--virtual-keyboard-primary-button-text-color, #ffffff);
42
+ }
43
+ }
44
+ }
13
45
  }
14
46
 
15
47
  .virtual-keyboard-component-right {
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Guest: (props: any) => JSX.Element;
3
+ export default Guest;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Guide: (props: any) => JSX.Element;
3
+ export default Guide;
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare global {
4
+ namespace JSX {
5
+ interface IntrinsicElements {
6
+ [elemName: string]: any;
7
+ }
8
+ }
9
+ }
10
+ export interface WalletCardItem {
11
+ key: string;
12
+ label?: string;
13
+ hidden?: boolean;
14
+ value?: number;
15
+ }
16
+ export interface WalletCardProps {
17
+ /** 二维码弹窗适配平台 */
18
+ platform?: 'pc' | 'h5' | 'ipad';
19
+ /** 卡片主题 */
20
+ mode?: 'dark' | 'light';
21
+ /** 默认还是完整显示code */
22
+ cardStyle?: 'normal' | 'full';
23
+ /** 条形码还是二维码 */
24
+ codeType?: 'barCode' | 'orCode';
25
+ /** 二维码方向 */
26
+ codeDirection?: 'bottom' | 'top';
27
+ /** 自定义背景图 */
28
+ customBackgroundImage?: string;
29
+ /** 图标:可以是React组件或图片URL */
30
+ showIcon?: boolean;
31
+ showWalletName?: boolean;
32
+ iconImg?: string;
33
+ /** 钱包名称 */
34
+ walletName?: string;
35
+ /** 店铺名称 */
36
+ shopName?: string;
37
+ /** 是否显示店铺名称 */
38
+ showShopName?: boolean;
39
+ /** 卡号 */
40
+ cardNo?: string;
41
+ /** 是否显示卡号 */
42
+ showCardNo?: boolean;
43
+ /** 是否显示二维码 */
44
+ showCode?: boolean;
45
+ /** 点击二维码/条形码的回调 */
46
+ onCodeClick?: () => void;
47
+ /** 货币符号 */
48
+ symbol: string;
49
+ /** 点击卡片的回调 */
50
+ onClick?: () => void;
51
+ /** 自定义类名 */
52
+ className?: string;
53
+ items: WalletCardItem[];
54
+ /** 自定义样式 */
55
+ style?: React.CSSProperties;
56
+ title?: string;
57
+ subTitle?: string;
58
+ align?: 'left' | 'center';
59
+ buttonText?: string;
60
+ [key: string]: any;
61
+ /** 是否已登录 */
62
+ isLogin?: boolean;
63
+ /** 是否是引导页 */
64
+ isGuide?: boolean;
65
+ }
66
+ declare const WalletCard: React.FC<WalletCardProps>;
67
+ export default WalletCard;
@@ -1,8 +1,8 @@
1
1
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
3
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
4
4
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
5
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
5
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
6
6
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7
7
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
8
8
  import { useEffect, useState, useMemo } from 'react';
package/es/utils/hoc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
3
3
  import React from 'react';
4
4
  import { get, set, has } from 'lodash';
5
5
  import dayjs from "dayjs";
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1,15 +1,15 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
8
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
10
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
14
  import React, { createContext, useCallback, useReducer } from 'react';
15
15
  export default (function (_ref2) {
@@ -23,7 +23,6 @@ export default (function (_ref2) {
23
23
  var Context = /*#__PURE__*/createContext({});
24
24
  var Provider = function Provider(ComponentUi) {
25
25
  var Components = function Components(props, ref) {
26
- var _objectSpread2, _ref5;
27
26
  var _useReducer = useReducer(function (state, _ref3) {
28
27
  var type = _ref3.type,
29
28
  payload = _ref3.payload;
@@ -48,14 +47,14 @@ export default (function (_ref2) {
48
47
  });
49
48
  }
50
49
  }, []);
51
- var _props = _objectSpread(_objectSpread({}, props), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, namespace, providerState), _defineProperty(_objectSpread2, "dispatch", _dispatch), _objectSpread2));
50
+ var _props = _objectSpread(_objectSpread({}, props), {}, _defineProperty(_defineProperty({}, namespace, providerState), "dispatch", _dispatch));
52
51
  var _ref = ref;
53
52
  // if (_props.forwardedRef) {
54
53
  // _ref = _props.forwardedRef;
55
54
  // delete _props.forwardedRef;
56
55
  // }
57
56
  return /*#__PURE__*/React.createElement(Context.Provider, {
58
- value: (_ref5 = {}, _defineProperty(_ref5, namespace, providerState), _defineProperty(_ref5, "dispatch", _dispatch), _ref5)
57
+ value: _defineProperty(_defineProperty({}, namespace, providerState), "dispatch", _dispatch)
59
58
  }, /*#__PURE__*/React.createElement(ComponentUi, _extends({}, _props, {
60
59
  ref: _ref
61
60
  })));
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface TimeSlot {
4
+ value: string;
5
+ label: string;
6
+ time: string;
7
+ remainingCount: number;
8
+ disabled?: boolean;
9
+ }
10
+ export interface TimeResourceSelectorProps {
11
+ timeSlots?: TimeSlot[];
12
+ multiple?: boolean;
13
+ showUnavailable?: boolean;
14
+ defaultExpanded?: boolean;
15
+ defaultSelectFirst?: boolean;
16
+ onChange?: (values: string | string[]) => void;
17
+ className?: string;
18
+ style?: React.CSSProperties;
19
+ }
20
+ declare const TimeResourceSelector: React.FC<TimeResourceSelectorProps>;
21
+ export default TimeResourceSelector;
@@ -0,0 +1,4 @@
1
+ import { AppVersionControlProps } from './types';
2
+ import './index.less';
3
+ declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
+ export default AppVersionControl;
@@ -0,0 +1,7 @@
1
+ import { BadgeProps as OriginalBadgeprops } from 'antd';
2
+ import './index.less';
3
+ export interface Badgeprops extends OriginalBadgeprops {
4
+ styleType: 'default' | 'warning';
5
+ }
6
+ declare const Badge: (props: any) => JSX.Element;
7
+ export default Badge;