@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
@@ -0,0 +1,251 @@
1
+ import { FilterType } from "../filter/types";
2
+ import { SortItemProps } from "../sort/types";
3
+ import React from "react";
4
+ export declare type StorageMode = "" | "localStorage";
5
+ /**
6
+ * 排序总配置
7
+ */
8
+ export declare type SortType = {
9
+ /** 排序是否展示 */
10
+ show: boolean;
11
+ /** 排序存储模式 */
12
+ storageMode: StorageMode;
13
+ list: SortItemProps[];
14
+ };
15
+ /**
16
+ * 列展示总配置
17
+ */
18
+ export declare type ColumnSettingType = {
19
+ /** 列设置是否展示 */
20
+ show: boolean;
21
+ /** 列设置存储模式 */
22
+ storageMode: StorageMode;
23
+ };
24
+ declare type DataSourceListItemType = {
25
+ isCustom: boolean;
26
+ columnKey?: string;
27
+ label?: string;
28
+ name?: string | string[];
29
+ isHidden?: boolean;
30
+ };
31
+ /**
32
+ * 数据源分组总配置
33
+ */
34
+ export declare type DataSourceGroupType = {
35
+ /** 分组设置是否展示 */
36
+ show: boolean;
37
+ /** 分组设置存储模式 */
38
+ storageMode: StorageMode;
39
+ /** */
40
+ list: DataSourceListItemType[];
41
+ };
42
+ /**
43
+ * Gallery封面总配置
44
+ */
45
+ declare type GalleryCoverType = {
46
+ /** 封面是否展示 */
47
+ show: boolean;
48
+ /**
49
+ * 封面图片可以使用的字段
50
+ */
51
+ fields: string[];
52
+ /**
53
+ * 封面高度
54
+ */
55
+ height: number;
56
+ /** 图片裁剪方式 */
57
+ objectFit: "fill" | "cover";
58
+ };
59
+ /**
60
+ * Gallery标题总配置
61
+ */
62
+ declare type GalleryTitleType = {
63
+ /** 标题使用的字段 */
64
+ field: string;
65
+ /** 标题行数 */
66
+ line: number;
67
+ };
68
+ /**
69
+ * Gallery头部区域总配置
70
+ */
71
+ declare type GalleryHeaderType = {
72
+ /** 头部区域插槽 */
73
+ slot?: (record: Record<string, any>, index: number) => React.ReactNode;
74
+ /** 头部区域其他字段设置 */
75
+ fields: {
76
+ /** 头部区域其他字段是否展示 */
77
+ show: boolean;
78
+ /** 头部区域其他字段 */
79
+ list: string[];
80
+ };
81
+ };
82
+ /**
83
+ * Gallery内容区域总配置
84
+ */
85
+ declare type GalleryContentType = {
86
+ /** 内容区域字段配置 */
87
+ fields: {
88
+ columnKey: string;
89
+ show: boolean;
90
+ }[];
91
+ };
92
+ export declare type GallerySettingValueType = {
93
+ coverField: string | "noCover";
94
+ coverObjectFit: "fill" | "cover";
95
+ compactMode: "default" | "compact";
96
+ isShowLabel: boolean;
97
+ };
98
+ /**
99
+ * Gallery底部区域总配置
100
+ */
101
+ declare type GalleryFooterType = {
102
+ /** 底部区域自定义渲染 */
103
+ render: (record: Record<string, any>, index: number) => React.ReactNode;
104
+ /** 底部区域高度 */
105
+ height: number;
106
+ };
107
+ /**
108
+ * Gallery模式总配置
109
+ */
110
+ export declare type GallerySettingType = {
111
+ /** 卡片最小宽度 */
112
+ cardMinWidth: number;
113
+ /** 卡片最大宽度 */
114
+ cardMaxWidth: number;
115
+ /** 水平间隔 */
116
+ horizontalGutter: number;
117
+ /** 垂直间隔 */
118
+ verticalGutter: number;
119
+ /** 封面配置 */
120
+ cover: GalleryCoverType;
121
+ /** 标题配置 */
122
+ title: GalleryTitleType;
123
+ /** 头部区域 */
124
+ header: GalleryHeaderType;
125
+ /** 内容区域 */
126
+ content: GalleryContentType;
127
+ /** 固定高度 */
128
+ fixedHeight: boolean;
129
+ /** 固定的卡片高度 */
130
+ cardHeight: number;
131
+ /** 固定顶部 */
132
+ fixedHeader: boolean;
133
+ /** 固定底部 */
134
+ fixedFooter: boolean;
135
+ /** 底部区域 */
136
+ footer: GalleryFooterType;
137
+ /** 卡片点击时间 */
138
+ onItem: (record: Record<string, any>, index: number) => void;
139
+ };
140
+ /** 视图模式 */
141
+ export declare type ModeType = "grid" | "gallery" | "kanban";
142
+ /**
143
+ * 视图模式总配置
144
+ */
145
+ export declare type GridViewType = {
146
+ /** 默认视图模式 */
147
+ defaultViewMode: ModeType;
148
+ /** 开启多视图模式可进行页面内转换 */
149
+ multiple: boolean;
150
+ /** 当前可用的视图模式列表 */
151
+ modeList: ModeType[];
152
+ };
153
+ declare type SortDetail = {
154
+ fromIndex: number;
155
+ toIndex: number;
156
+ dataSource: Record<string, any>[];
157
+ fromId: number | string;
158
+ toId: number | string;
159
+ fromItem: Record<string, any>;
160
+ toItem: Record<string, any>;
161
+ };
162
+ /** 导入导出模式 */
163
+ export declare type ExportImportModeType = "import" | "export" | "export_file" | "import_log";
164
+ /**
165
+ * @title: 导出导入api
166
+ * @description:
167
+ * @return {*}
168
+ * @Author: WangHan
169
+ * @Date: 2024-09-11 15:44
170
+ */
171
+ export declare type ApiProps = {
172
+ export?: string;
173
+ import?: string;
174
+ export_file: string;
175
+ import_log?: string;
176
+ template?: string;
177
+ };
178
+ /**
179
+ * 导入导出配置
180
+ */
181
+ export declare type ExportImportType = {
182
+ /** 是否展示 */
183
+ show: boolean;
184
+ /** 当前所选项 */
185
+ selectLists: string[];
186
+ /** 导入模版链接 */
187
+ templateFileUrl: string;
188
+ /** 标题 */
189
+ title: string;
190
+ hiddenKeys?: string[];
191
+ apiUrl?: ApiProps;
192
+ otherParams?: any;
193
+ };
194
+ export declare type GridViewProps = {
195
+ columns: any;
196
+ dataSource: any[];
197
+ dispatch: any;
198
+ /**
199
+ * 画册模式的配置
200
+ */
201
+ gallery: GallerySettingType;
202
+ /**
203
+ * 视图设置
204
+ */
205
+ view: GridViewType;
206
+ style: React.CSSProperties;
207
+ pagination: any;
208
+ filter: FilterType;
209
+ buttons: React.ReactNode | any[];
210
+ actionButtons: any;
211
+ sort: SortType;
212
+ title?: React.ReactNode | (() => React.ReactNode);
213
+ showTitle?: boolean;
214
+ subTitle?: React.ReactNode | (() => React.ReactNode);
215
+ showSubTitle?: boolean;
216
+ exportImport: ExportImportType;
217
+ onValuesChange: (changedValues: any, values: any) => void;
218
+ summary: any;
219
+ utils: any;
220
+ rowKey: ((record: Record<string, any>) => string) | string;
221
+ columnSetting?: ColumnSettingType;
222
+ dataSourceGroup?: DataSourceGroupType;
223
+ loading: boolean;
224
+ dragSort: boolean;
225
+ onSortChange?: (detail: SortDetail) => boolean;
226
+ __id?: string;
227
+ __designMode?: "design";
228
+ /**
229
+ * 当前本地配置的key 用此hash是否改变用来判断是否清空本地配置 不填默认使用columns数据生成hash
230
+ */
231
+ currentSettingKey?: string;
232
+ /**
233
+ * 当前本地配置的唯一值, 不填默认使用currentSettingKey
234
+ */
235
+ currentComponentId?: string;
236
+ /**
237
+ * 当前表格中数据发生变化事件 包含本地筛选和外部传入数据变化
238
+ * @param currentDataSource
239
+ */
240
+ onDataSourceChange?: (currentDataSource: Record<string, any>[]) => void;
241
+ tabs: {
242
+ show: boolean;
243
+ type: 'default' | 'button' | 'buttonGroup' | 'dropdown';
244
+ items: {
245
+ name: string;
246
+ filterBy?: Record<string, any>;
247
+ sortBy?: string;
248
+ }[];
249
+ };
250
+ };
251
+ export {};
@@ -0,0 +1,16 @@
1
+ import { Component } from 'react';
2
+ import { TabsProps } from 'antd';
3
+ import './index.less';
4
+ declare class Tabs extends Component<any> {
5
+ state: {
6
+ activeKey: any;
7
+ };
8
+ componentDidMount(): void;
9
+ private _handleChange;
10
+ setActiveKey: (key: string) => void;
11
+ getActiveKey: () => any;
12
+ renderIconLabelTabBar: TabsProps['renderTabBar'];
13
+ filterHiddenTabs: (tabs: any[]) => any[];
14
+ render(): JSX.Element;
15
+ }
16
+ export default Tabs;
@@ -1,13 +1,14 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import './index.less';
3
3
  declare type Value = {
4
4
  en: string;
5
- "zh-CN": string;
6
- "zh-HK": string;
5
+ 'zh-CN': string;
6
+ 'zh-HK': string;
7
7
  };
8
8
  interface TranslationProps {
9
9
  value: Value;
10
10
  onChange: (value: Value) => void;
11
+ maxLength?: number;
11
12
  }
12
13
  declare const Translation: React.FC<TranslationProps>;
13
14
  export default Translation;
@@ -161,6 +161,7 @@ var Translation = (props) => {
161
161
  return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { label: d.text, labelCol: { span: 24 }, key: d.code }, /* @__PURE__ */ import_react.default.createElement(
162
162
  import_antd.Input,
163
163
  {
164
+ ...typeof others.maxLength === "number" ? { maxLength: others.maxLength } : {},
164
165
  value: _value[d.code],
165
166
  onChange: (e) => {
166
167
  set_value({ ..._value, [d.code]: e.target.value });
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { Version } from '../versionSelect';
3
+ import './index.less';
4
+ interface PublishVersionModalProps {
5
+ visible: boolean;
6
+ currentVersion: string;
7
+ onCancel: () => void;
8
+ onConfirm: (data: VersionData) => void;
9
+ isShowNote?: boolean;
10
+ confirmLoading?: boolean;
11
+ versions?: Version[];
12
+ isShowBasedOn?: boolean;
13
+ isShowCurrentVersion?: boolean;
14
+ isValidateVersion?: boolean;
15
+ }
16
+ interface VersionData {
17
+ version: string;
18
+ note: string;
19
+ baseVersion?: string;
20
+ versionType?: string;
21
+ }
22
+ declare const PublishVersionModal: React.FC<PublishVersionModalProps>;
23
+ export default PublishVersionModal;
@@ -1,22 +1,5 @@
1
- import React from 'react';
2
- import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
- export interface AmountProps {
4
- max?: number;
5
- min?: number;
6
- doneText?: string;
7
- resetText?: string;
8
- defaultValue?: string | number;
9
- placeholder?: string;
10
- amountProps?: {
11
- showCurrencySymbol: boolean;
12
- useThousandsSeparator: boolean;
13
- };
14
- presets?: BaseNumberKeyboardProps['presets'];
15
- value?: string | number;
16
- onChange?: (val: string | number) => void;
17
- onEnter?: (val: string | number) => void;
18
- defaultSelect?: boolean;
19
- inputFormat?: (_v: string) => React.ReactNode | null;
20
- }
1
+ import { AmountProps, RightItemsStyleProps } from './types';
2
+ import './index.less';
3
+ export type { AmountProps, RightItemsStyleProps };
21
4
  declare const Amount: (props: AmountProps) => JSX.Element;
22
5
  export default Amount;
@@ -34,8 +34,13 @@ __export(Amount_exports, {
34
34
  module.exports = __toCommonJS(Amount_exports);
35
35
  var import_react = __toESM(require("react"));
36
36
  var import_ahooks = require("ahooks");
37
+ var import_classnames = __toESM(require("classnames"));
38
+ var import_utils = require("@pisell/utils");
37
39
  var import_BaseNumberKeyboard = __toESM(require("../BaseNumberKeyboard"));
38
40
  var import_pisellText = __toESM(require("../../pisellText"));
41
+ var import_usePisellConfig = __toESM(require("../../pisell-config-provider/hooks/usePisellConfig"));
42
+ var import_themeConfig = require("./themeConfig");
43
+ var import_index = require("./index.less");
39
44
  var Amount = (props) => {
40
45
  const {
41
46
  min,
@@ -48,14 +53,43 @@ var Amount = (props) => {
48
53
  onEnter,
49
54
  presets,
50
55
  defaultSelect,
51
- inputFormat
56
+ inputFormat,
57
+ rightItemsStyle,
58
+ selectType = "light",
59
+ ...others
52
60
  } = props;
61
+ const config = (0, import_usePisellConfig.default)();
53
62
  const [value, setValue] = (0, import_ahooks.useControllableValue)(props, {
54
63
  defaultValue: defaultValue || ""
55
64
  });
56
65
  (0, import_react.useEffect)(() => {
57
66
  document.body.id = "body";
58
67
  }, []);
68
+ const configColor = (0, import_react.useMemo)(() => {
69
+ const currentConfig = import_themeConfig.amountThemeConfig[selectType];
70
+ const validProps = Object.entries(props).reduce((acc, [key, value2]) => {
71
+ if (value2 !== void 0 && key in currentConfig) {
72
+ acc[key] = value2;
73
+ }
74
+ return acc;
75
+ }, {});
76
+ return { ...currentConfig, ...validProps };
77
+ }, [selectType, props]);
78
+ (0, import_react.useEffect)(() => {
79
+ (0, import_utils.setTheme)({
80
+ "--pisell-amount-background-color": configColor.backgroundColor,
81
+ "--pisell-amount-container-background-color": configColor.containerBackgroundColor,
82
+ "--pisell-amount-text-color": configColor.textColor,
83
+ "--pisell-amount-keyboard-background-color": configColor.keyboardBackgroundColor,
84
+ "--pisell-amount-keyboard-button-background-color": configColor.keyboardButtonBackgroundColor,
85
+ "--pisell-amount-keyboard-button-text-color": configColor.keyboardButtonTextColor,
86
+ "--pisell-amount-keyboard-button-hover-color": configColor.keyboardButtonHoverColor,
87
+ "--pisell-amount-reset-button-background-color": configColor.resetButtonBackgroundColor,
88
+ "--pisell-amount-reset-button-text-color": configColor.resetButtonTextColor,
89
+ "--pisell-amount-done-button-background-color": configColor.doneButtonBackgroundColor,
90
+ "--pisell-amount-done-button-text-color": configColor.doneButtonTextColor
91
+ });
92
+ }, [configColor]);
59
93
  const format = (_v) => {
60
94
  const v = `${_v}`;
61
95
  if (inputFormat == null ? void 0 : inputFormat(v)) {
@@ -71,26 +105,48 @@ var Amount = (props) => {
71
105
  precision,
72
106
  hideDecimalForWholeNumbers: false,
73
107
  showCurrencySymbol: amountProps == null ? void 0 : amountProps.showCurrencySymbol,
74
- useThousandsSeparator: amountProps == null ? void 0 : amountProps.useThousandsSeparator
108
+ useThousandsSeparator: amountProps == null ? void 0 : amountProps.useThousandsSeparator,
109
+ style: {
110
+ color: (rightItemsStyle == null ? void 0 : rightItemsStyle.textColor) || configColor.textColor
111
+ }
75
112
  }
76
113
  ), endWith && ".");
77
114
  };
78
115
  return /* @__PURE__ */ import_react.default.createElement(
79
- import_BaseNumberKeyboard.default,
116
+ "div",
80
117
  {
81
- defaultSelect,
82
- max,
83
- min,
84
- value,
85
- onChange: setValue,
86
- placeholder,
87
- defaultValue,
88
- format,
89
- doneText,
90
- resetText,
91
- onEnter,
92
- presets
93
- }
118
+ className: (0, import_classnames.default)("pisell-amount-keyboard-wrap", {
119
+ "pisell-amount-keyboard-dark": selectType === "dark",
120
+ "pisell-amount-keyboard-light": selectType === "light"
121
+ })
122
+ },
123
+ /* @__PURE__ */ import_react.default.createElement(
124
+ import_BaseNumberKeyboard.default,
125
+ {
126
+ defaultSelect,
127
+ max,
128
+ min,
129
+ value,
130
+ onChange: setValue,
131
+ placeholder,
132
+ defaultValue,
133
+ format,
134
+ doneText,
135
+ resetText,
136
+ onEnter,
137
+ presets,
138
+ rightItemsStyle: {
139
+ ...rightItemsStyle,
140
+ buttonBackgroundColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.buttonBackgroundColor) || configColor.buttonBackgroundColor,
141
+ textColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.textColor) || configColor.textColor,
142
+ resetButtonBackgroundColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.resetButtonBackgroundColor) || configColor.resetButtonBackgroundColor,
143
+ resetButtonTextColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.resetButtonTextColor) || configColor.resetButtonTextColor,
144
+ isDoneButtonFollowTheme: (rightItemsStyle == null ? void 0 : rightItemsStyle.isDoneButtonFollowTheme) ?? configColor.isDoneButtonFollowTheme,
145
+ doneButtonBackgroundColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.doneButtonBackgroundColor) || configColor.doneButtonBackgroundColor,
146
+ doneButtonTextColor: (rightItemsStyle == null ? void 0 : rightItemsStyle.doneButtonTextColor) || configColor.doneButtonTextColor
147
+ }
148
+ }
149
+ )
94
150
  );
95
151
  };
96
152
  var Amount_default = Amount;
@@ -0,0 +1,39 @@
1
+ .pisell-amount-keyboard-wrap {
2
+ background-color: var(--pisell-amount-background-color, #ffffff);
3
+
4
+ &.pisell-amount-keyboard-dark {
5
+ background-color: var(--pisell-amount-background-color, rgba(0, 0, 0, 0.70));
6
+ }
7
+
8
+ &.pisell-amount-keyboard-light {
9
+ background-color: var(--pisell-amount-background-color, #ffffff);
10
+ }
11
+
12
+ .pisell-virtual-keyboard-input {
13
+ background-color: var(--pisell-amount-container-background-color, #d0d5dd);
14
+ color: var(--pisell-amount-text-color, #000000);
15
+ }
16
+
17
+ .pisell-keyboard {
18
+ background-color: var(--pisell-amount-keyboard-background-color, #f9f9f9);
19
+
20
+ .pisell-keyboard-item {
21
+ background-color: var(--pisell-amount-keyboard-button-background-color, #ffffff);
22
+ color: var(--pisell-amount-keyboard-button-text-color, #000000);
23
+
24
+ &:hover {
25
+ background-color: var(--pisell-amount-keyboard-button-hover-color, #f5f5f5);
26
+ }
27
+ }
28
+
29
+ .pisell-keyboard-reset-button {
30
+ background-color: var(--pisell-amount-reset-button-background-color, #ffffff);
31
+ color: var(--pisell-amount-reset-button-text-color, #d92d20);
32
+ }
33
+
34
+ .pisell-keyboard-done-button {
35
+ background-color: var(--pisell-amount-done-button-background-color, #4ca30d);
36
+ color: var(--pisell-amount-done-button-text-color, #ffffff);
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,60 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/virtual-keyboard/Amount/themeConfig.ts
20
+ var themeConfig_exports = {};
21
+ __export(themeConfig_exports, {
22
+ amountThemeConfig: () => amountThemeConfig
23
+ });
24
+ module.exports = __toCommonJS(themeConfig_exports);
25
+ var amountThemeConfig = {
26
+ dark: {
27
+ backgroundColor: "rgba(0, 0, 0, 0.70)",
28
+ containerBackgroundColor: "rgba(0, 0, 0, 0.40)",
29
+ buttonBackgroundColor: "#ffffff",
30
+ textColor: "#000000",
31
+ resetButtonBackgroundColor: "#ffffff",
32
+ resetButtonTextColor: "#d92d20",
33
+ isDoneButtonFollowTheme: true,
34
+ doneButtonBackgroundColor: "#4ca30d",
35
+ doneButtonTextColor: "#ffffff",
36
+ keyboardBackgroundColor: "rgba(0, 0, 0, 0.40)",
37
+ keyboardButtonBackgroundColor: "#ffffff",
38
+ keyboardButtonTextColor: "#000000",
39
+ keyboardButtonHoverColor: "#f5f5f5"
40
+ },
41
+ light: {
42
+ backgroundColor: "#ffffff",
43
+ containerBackgroundColor: "#d0d5dd",
44
+ buttonBackgroundColor: "#ffffff",
45
+ textColor: "#000000",
46
+ resetButtonBackgroundColor: "#ffffff",
47
+ resetButtonTextColor: "#d92d20",
48
+ isDoneButtonFollowTheme: true,
49
+ doneButtonBackgroundColor: "#4ca30d",
50
+ doneButtonTextColor: "#ffffff",
51
+ keyboardBackgroundColor: "#f9f9f9",
52
+ keyboardButtonBackgroundColor: "#ffffff",
53
+ keyboardButtonTextColor: "#000000",
54
+ keyboardButtonHoverColor: "#f5f5f5"
55
+ }
56
+ };
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ amountThemeConfig
60
+ });
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
3
+ export interface RightItemsStyleProps {
4
+ buttonBackgroundColor?: string;
5
+ textColor?: string;
6
+ resetButtonBackgroundColor?: string;
7
+ resetButtonTextColor?: string;
8
+ isDoneButtonFollowTheme?: boolean;
9
+ doneButtonBackgroundColor?: string;
10
+ doneButtonTextColor?: string;
11
+ }
12
+ export interface AmountProps {
13
+ max?: number;
14
+ min?: number;
15
+ doneText?: string;
16
+ resetText?: string;
17
+ defaultValue?: string | number;
18
+ placeholder?: string;
19
+ amountProps?: {
20
+ showCurrencySymbol: boolean;
21
+ useThousandsSeparator: boolean;
22
+ };
23
+ presets?: BaseNumberKeyboardProps['presets'];
24
+ value?: string | number;
25
+ onChange?: (val: string | number) => void;
26
+ onEnter?: (val: string | number) => void;
27
+ defaultSelect?: boolean;
28
+ inputFormat?: (_v: string) => React.ReactNode | null;
29
+ rightItemsStyle?: RightItemsStyleProps;
30
+ selectType?: 'light' | 'dark';
31
+ backgroundColor?: string;
32
+ containerBackgroundColor?: string;
33
+ buttonBackgroundColor?: string;
34
+ textColor?: string;
35
+ resetButtonBackgroundColor?: string;
36
+ resetButtonTextColor?: string;
37
+ isDoneButtonFollowTheme?: boolean;
38
+ doneButtonBackgroundColor?: string;
39
+ doneButtonTextColor?: string;
40
+ keyboardBackgroundColor?: string;
41
+ keyboardButtonBackgroundColor?: string;
42
+ keyboardButtonTextColor?: string;
43
+ keyboardButtonHoverColor?: string;
44
+ }
@@ -0,0 +1,17 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+
15
+ // src/components/virtual-keyboard/Amount/types.ts
16
+ var types_exports = {};
17
+ module.exports = __toCommonJS(types_exports);
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { PresetsProps } from "./Presets";
2
+ import { PresetsProps } from './Presets';
3
+ import { RightItemsStyleProps } from '../Amount';
3
4
  import './index.less';
4
5
  export interface BaseNumberKeyboardProps {
5
6
  placeholder?: string;
@@ -14,6 +15,7 @@ export interface BaseNumberKeyboardProps {
14
15
  min?: number;
15
16
  presets?: PresetsProps['presets'];
16
17
  defaultSelect?: boolean;
18
+ rightItemsStyle?: RightItemsStyleProps;
17
19
  }
18
20
  declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
19
21
  export default BaseNumberKeyboard;