@pisell/materials 2.2.13 → 2.2.14

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 (342) hide show
  1. package/build/lowcode/assets-daily.json +13 -13
  2. package/build/lowcode/assets-dev.json +4 -4
  3. package/build/lowcode/assets-prod.json +13 -13
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +142 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +29 -27
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +22 -20
  11. package/es/components/button/index.d.ts +4 -3
  12. package/es/components/button/index.js +14 -3
  13. package/es/components/iconfont/index.d.ts +2 -1
  14. package/es/components/iconfont/index.js +1 -1
  15. package/es/components/page/index.css +0 -0
  16. package/es/components/page/index.d.ts +2 -2
  17. package/es/components/page/index.js +226 -186
  18. package/es/components/pisell-config-provider/context.d.ts +20 -0
  19. package/es/components/pisell-config-provider/context.js +36 -0
  20. package/es/components/pisell-config-provider/hooks/usePisellConfig.d.ts +5 -0
  21. package/es/components/pisell-config-provider/hooks/usePisellConfig.js +11 -0
  22. package/es/components/pisell-config-provider/index.d.ts +12 -0
  23. package/es/components/pisell-config-provider/index.js +36 -0
  24. package/es/components/pisellAlert/index.d.ts +22 -0
  25. package/es/components/pisellAlert/index.js +73 -0
  26. package/es/components/pisellAlert/index.less +149 -0
  27. package/es/components/pisellCard/index.d.ts +12 -0
  28. package/es/components/pisellCard/index.js +16 -0
  29. package/es/components/pisellCard/index.less +9 -0
  30. package/es/components/pisellCardList/index.d.ts +43 -0
  31. package/es/components/pisellCardList/index.js +72 -0
  32. package/es/components/pisellCardList/index.less +75 -0
  33. package/es/components/pisellCheckboxGroup/index.d.ts +34 -0
  34. package/es/components/pisellCheckboxGroup/index.js +173 -0
  35. package/es/components/pisellCheckboxGroup/index.less +36 -0
  36. package/es/components/pisellCheckboxGroup/mock.d.ts +4 -0
  37. package/es/components/pisellCheckboxGroup/mock.js +16 -0
  38. package/es/components/pisellContainer/components/Portal/index.d.ts +10 -0
  39. package/es/components/pisellContainer/components/Portal/index.js +7 -0
  40. package/es/components/pisellContainer/containers.d.ts +1 -0
  41. package/es/components/pisellContainer/containers.js +8 -0
  42. package/es/components/pisellContainer/index.d.ts +22 -0
  43. package/es/components/pisellContainer/index.js +19 -0
  44. package/es/components/pisellCountdown/index.d.ts +24 -0
  45. package/es/components/pisellCountdown/index.js +44 -0
  46. package/es/components/pisellCountdown/utils.d.ts +7 -0
  47. package/es/components/pisellCountdown/utils.js +50 -0
  48. package/es/components/pisellDatePicker/datePickerCpt.d.ts +22 -0
  49. package/es/components/pisellDatePicker/datePickerCpt.js +191 -0
  50. package/es/components/pisellDatePicker/detePickerCpt.less +22 -0
  51. package/es/components/pisellDatePicker/index.d.ts +3 -0
  52. package/es/components/pisellDatePicker/index.js +17 -0
  53. package/es/components/pisellEmpty/index.d.ts +16 -0
  54. package/es/components/pisellEmpty/index.js +38 -0
  55. package/es/components/pisellEmpty/index.less +34 -0
  56. package/es/components/pisellInformationEntry/Input/index.d.ts +8 -0
  57. package/es/components/pisellInformationEntry/Input/index.js +50 -0
  58. package/es/components/pisellInformationEntry/Input/index.less +14 -0
  59. package/es/components/pisellInformationEntry/Scan/index.d.ts +8 -0
  60. package/es/components/pisellInformationEntry/Scan/index.js +25 -0
  61. package/es/components/pisellInformationEntry/Scan/index.less +8 -0
  62. package/es/components/pisellInformationEntry/constants.d.ts +3 -0
  63. package/es/components/pisellInformationEntry/constants.js +21 -0
  64. package/es/components/pisellInformationEntry/index.d.ts +31 -0
  65. package/es/components/pisellInformationEntry/index.js +188 -0
  66. package/es/components/pisellInformationEntry/index.less +40 -0
  67. package/es/components/pisellInformationEntry/utils.d.ts +4 -0
  68. package/es/components/pisellInformationEntry/utils.js +38 -0
  69. package/es/components/pisellInput/components/BankCard/cardPng/AMEX.png +0 -0
  70. package/es/components/pisellInput/components/BankCard/cardPng/Discover.png +0 -0
  71. package/es/components/pisellInput/components/BankCard/cardPng/JCB.png +0 -0
  72. package/es/components/pisellInput/components/BankCard/cardPng/MasterCard.png +0 -0
  73. package/es/components/pisellInput/components/BankCard/cardPng/UnionPay.png +0 -0
  74. package/es/components/pisellInput/components/BankCard/cardPng/VISA.png +0 -0
  75. package/es/components/pisellInput/components/BankCard/index.d.ts +11 -0
  76. package/es/components/pisellInput/components/BankCard/index.js +82 -0
  77. package/es/components/pisellInput/components/BankCard/index.less +4 -0
  78. package/es/components/pisellInput/components/BankCard/utils.d.ts +11 -0
  79. package/es/components/pisellInput/components/BankCard/utils.js +65 -0
  80. package/es/components/pisellInput/components/Copy/index.d.ts +11 -0
  81. package/es/components/pisellInput/components/Copy/index.js +53 -0
  82. package/es/components/pisellInput/components/SecurityCode/card.png +0 -0
  83. package/es/components/pisellInput/components/SecurityCode/index.d.ts +12 -0
  84. package/es/components/pisellInput/components/SecurityCode/index.js +46 -0
  85. package/es/components/pisellInput/components/SecurityCode/index.less +4 -0
  86. package/es/components/pisellInput/index.d.ts +13 -0
  87. package/es/components/pisellInput/index.js +15 -0
  88. package/es/components/pisellLoading/index.d.ts +18 -0
  89. package/es/components/pisellLoading/index.js +45 -0
  90. package/es/components/pisellLoading/index.less +35 -0
  91. package/es/components/pisellMessage/index.d.ts +4 -0
  92. package/es/components/pisellMessage/index.js +5 -0
  93. package/es/components/pisellModal/components/Information/index.d.ts +21 -0
  94. package/es/components/pisellModal/components/Information/index.js +25 -0
  95. package/es/components/pisellModal/components/Information/index.less +16 -0
  96. package/es/components/pisellModal/components/IpadModal/index.d.ts +6 -0
  97. package/es/components/pisellModal/components/IpadModal/index.js +6 -0
  98. package/es/components/pisellModal/components/MobileModal/index.d.ts +9 -0
  99. package/es/components/pisellModal/components/MobileModal/index.js +27 -0
  100. package/es/components/pisellModal/components/MobileModal/index.less +60 -0
  101. package/es/components/pisellModal/components/PcModal/index.d.ts +30 -0
  102. package/es/components/pisellModal/components/PcModal/index.js +129 -0
  103. package/es/components/pisellModal/components/PcModal/index.less +105 -0
  104. package/es/components/pisellModal/components/functions/index.d.ts +12 -0
  105. package/es/components/pisellModal/components/functions/index.js +44 -0
  106. package/es/components/pisellModal/components/functions/index.less +25 -0
  107. package/es/components/pisellModal/components/index.d.ts +10 -0
  108. package/es/components/pisellModal/components/index.js +9 -0
  109. package/es/components/pisellModal/constants.d.ts +6 -0
  110. package/es/components/pisellModal/constants.js +6 -0
  111. package/es/components/pisellModal/index.d.ts +43 -0
  112. package/es/components/pisellModal/index.js +30 -0
  113. package/es/components/pisellRow/index.d.ts +22 -0
  114. package/es/components/pisellRow/index.js +67 -0
  115. package/es/components/pisellRow/index.less +13 -0
  116. package/es/components/pisellScan/index.d.ts +21 -0
  117. package/es/components/pisellScan/index.js +80 -0
  118. package/es/components/pisellScan/index.less +12 -0
  119. package/es/components/pisellText/components/Amount/index.d.ts +18 -0
  120. package/es/components/pisellText/components/Amount/index.js +25 -0
  121. package/es/components/pisellText/index.d.ts +8 -0
  122. package/es/components/pisellText/index.js +7 -0
  123. package/es/components/pisellToast/index.d.ts +16 -0
  124. package/es/components/pisellToast/index.js +32 -0
  125. package/es/components/pisellToast/index.less +26 -0
  126. package/es/components/pisellTooltip/index.d.ts +10 -0
  127. package/es/components/pisellTooltip/index.js +15 -0
  128. package/es/components/pisellTooltip/index.less +5 -0
  129. package/es/components/pisellWalletPassCard/bg.jpeg +0 -0
  130. package/es/components/pisellWalletPassCard/index.d.ts +54 -0
  131. package/es/components/pisellWalletPassCard/index.js +93 -0
  132. package/es/components/pisellWalletPassCard/index.less +100 -0
  133. package/es/hooks/useCssVariables.d.ts +8 -0
  134. package/es/hooks/useCssVariables.js +21 -0
  135. package/es/index.d.ts +23 -0
  136. package/es/index.js +26 -1
  137. package/es/locales/en-US.d.ts +9 -0
  138. package/es/locales/en-US.js +13 -1
  139. package/es/locales/index.js +3 -1
  140. package/es/locales/zh-CN.d.ts +9 -0
  141. package/es/locales/zh-CN.js +13 -1
  142. package/es/locales/zh-TW.d.ts +9 -0
  143. package/es/locales/zh-TW.js +13 -1
  144. package/es/utils/index.d.ts +1 -0
  145. package/es/utils/index.js +15 -1
  146. package/es/utils/locale.js +2 -1
  147. package/lib/components/button/index.d.ts +4 -3
  148. package/lib/components/button/index.js +13 -9
  149. package/lib/components/iconfont/index.d.ts +2 -1
  150. package/lib/components/iconfont/index.js +1 -1
  151. package/lib/components/page/index.css +0 -0
  152. package/lib/components/page/index.d.ts +2 -2
  153. package/lib/components/page/index.js +201 -161
  154. package/lib/components/pisell-config-provider/context.d.ts +20 -0
  155. package/lib/components/pisell-config-provider/context.js +49 -0
  156. package/lib/components/pisell-config-provider/hooks/usePisellConfig.d.ts +5 -0
  157. package/lib/components/pisell-config-provider/hooks/usePisellConfig.js +31 -0
  158. package/lib/components/pisell-config-provider/index.d.ts +12 -0
  159. package/lib/components/pisell-config-provider/index.js +69 -0
  160. package/lib/components/pisellAlert/index.d.ts +22 -0
  161. package/lib/components/pisellAlert/index.js +95 -0
  162. package/lib/components/pisellAlert/index.less +149 -0
  163. package/lib/components/pisellCard/index.d.ts +12 -0
  164. package/lib/components/pisellCard/index.js +48 -0
  165. package/lib/components/pisellCard/index.less +9 -0
  166. package/lib/components/pisellCardList/index.d.ts +43 -0
  167. package/lib/components/pisellCardList/index.js +108 -0
  168. package/lib/components/pisellCardList/index.less +75 -0
  169. package/lib/components/pisellCheckboxGroup/index.d.ts +34 -0
  170. package/lib/components/pisellCheckboxGroup/index.js +150 -0
  171. package/lib/components/pisellCheckboxGroup/index.less +36 -0
  172. package/lib/components/pisellCheckboxGroup/mock.d.ts +4 -0
  173. package/lib/components/pisellCheckboxGroup/mock.js +35 -0
  174. package/lib/components/pisellContainer/components/Portal/index.d.ts +10 -0
  175. package/lib/components/pisellContainer/components/Portal/index.js +40 -0
  176. package/lib/components/pisellContainer/containers.d.ts +1 -0
  177. package/lib/components/pisellContainer/containers.js +46 -0
  178. package/lib/components/pisellContainer/index.d.ts +22 -0
  179. package/lib/components/pisellContainer/index.js +49 -0
  180. package/lib/components/pisellCountdown/index.d.ts +24 -0
  181. package/lib/components/pisellCountdown/index.js +63 -0
  182. package/lib/components/pisellCountdown/utils.d.ts +7 -0
  183. package/lib/components/pisellCountdown/utils.js +60 -0
  184. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +22 -0
  185. package/lib/components/pisellDatePicker/datePickerCpt.js +157 -0
  186. package/lib/components/pisellDatePicker/detePickerCpt.less +22 -0
  187. package/lib/components/pisellDatePicker/index.d.ts +3 -0
  188. package/lib/components/pisellDatePicker/index.js +48 -0
  189. package/lib/components/pisellEmpty/index.d.ts +16 -0
  190. package/lib/components/pisellEmpty/index.js +61 -0
  191. package/lib/components/pisellEmpty/index.less +34 -0
  192. package/lib/components/pisellInformationEntry/Input/index.d.ts +8 -0
  193. package/lib/components/pisellInformationEntry/Input/index.js +56 -0
  194. package/lib/components/pisellInformationEntry/Input/index.less +14 -0
  195. package/lib/components/pisellInformationEntry/Scan/index.d.ts +8 -0
  196. package/lib/components/pisellInformationEntry/Scan/index.js +64 -0
  197. package/lib/components/pisellInformationEntry/Scan/index.less +8 -0
  198. package/lib/components/pisellInformationEntry/constants.d.ts +3 -0
  199. package/lib/components/pisellInformationEntry/constants.js +49 -0
  200. package/lib/components/pisellInformationEntry/index.d.ts +31 -0
  201. package/lib/components/pisellInformationEntry/index.js +162 -0
  202. package/lib/components/pisellInformationEntry/index.less +40 -0
  203. package/lib/components/pisellInformationEntry/utils.d.ts +4 -0
  204. package/lib/components/pisellInformationEntry/utils.js +40 -0
  205. package/lib/components/pisellInput/components/BankCard/cardPng/AMEX.png +0 -0
  206. package/lib/components/pisellInput/components/BankCard/cardPng/Discover.png +0 -0
  207. package/lib/components/pisellInput/components/BankCard/cardPng/JCB.png +0 -0
  208. package/lib/components/pisellInput/components/BankCard/cardPng/MasterCard.png +0 -0
  209. package/lib/components/pisellInput/components/BankCard/cardPng/UnionPay.png +0 -0
  210. package/lib/components/pisellInput/components/BankCard/cardPng/VISA.png +0 -0
  211. package/lib/components/pisellInput/components/BankCard/index.d.ts +11 -0
  212. package/lib/components/pisellInput/components/BankCard/index.js +98 -0
  213. package/lib/components/pisellInput/components/BankCard/index.less +4 -0
  214. package/lib/components/pisellInput/components/BankCard/utils.d.ts +11 -0
  215. package/lib/components/pisellInput/components/BankCard/utils.js +103 -0
  216. package/lib/components/pisellInput/components/Copy/index.d.ts +11 -0
  217. package/lib/components/pisellInput/components/Copy/index.js +61 -0
  218. package/lib/components/pisellInput/components/SecurityCode/card.png +0 -0
  219. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +12 -0
  220. package/lib/components/pisellInput/components/SecurityCode/index.js +74 -0
  221. package/lib/components/pisellInput/components/SecurityCode/index.less +4 -0
  222. package/lib/components/pisellInput/index.d.ts +13 -0
  223. package/lib/components/pisellInput/index.js +46 -0
  224. package/lib/components/pisellLoading/index.d.ts +18 -0
  225. package/lib/components/pisellLoading/index.js +69 -0
  226. package/lib/components/pisellLoading/index.less +35 -0
  227. package/lib/components/pisellMessage/index.d.ts +4 -0
  228. package/lib/components/pisellMessage/index.js +34 -0
  229. package/lib/components/pisellModal/components/Information/index.d.ts +21 -0
  230. package/lib/components/pisellModal/components/Information/index.js +54 -0
  231. package/lib/components/pisellModal/components/Information/index.less +16 -0
  232. package/lib/components/pisellModal/components/IpadModal/index.d.ts +6 -0
  233. package/lib/components/pisellModal/components/IpadModal/index.js +40 -0
  234. package/lib/components/pisellModal/components/MobileModal/index.d.ts +9 -0
  235. package/lib/components/pisellModal/components/MobileModal/index.js +67 -0
  236. package/lib/components/pisellModal/components/MobileModal/index.less +60 -0
  237. package/lib/components/pisellModal/components/PcModal/index.d.ts +30 -0
  238. package/lib/components/pisellModal/components/PcModal/index.js +143 -0
  239. package/lib/components/pisellModal/components/PcModal/index.less +105 -0
  240. package/lib/components/pisellModal/components/functions/index.d.ts +12 -0
  241. package/lib/components/pisellModal/components/functions/index.js +90 -0
  242. package/lib/components/pisellModal/components/functions/index.less +25 -0
  243. package/lib/components/pisellModal/components/index.d.ts +10 -0
  244. package/lib/components/pisellModal/components/index.js +52 -0
  245. package/lib/components/pisellModal/constants.d.ts +6 -0
  246. package/lib/components/pisellModal/constants.js +33 -0
  247. package/lib/components/pisellModal/index.d.ts +43 -0
  248. package/lib/components/pisellModal/index.js +63 -0
  249. package/lib/components/pisellRow/index.d.ts +22 -0
  250. package/lib/components/pisellRow/index.js +82 -0
  251. package/lib/components/pisellRow/index.less +13 -0
  252. package/lib/components/pisellScan/index.d.ts +21 -0
  253. package/lib/components/pisellScan/index.js +100 -0
  254. package/lib/components/pisellScan/index.less +12 -0
  255. package/lib/components/pisellText/components/Amount/index.d.ts +18 -0
  256. package/lib/components/pisellText/components/Amount/index.js +64 -0
  257. package/lib/components/pisellText/index.d.ts +8 -0
  258. package/lib/components/pisellText/index.js +41 -0
  259. package/lib/components/pisellToast/index.d.ts +16 -0
  260. package/lib/components/pisellToast/index.js +59 -0
  261. package/lib/components/pisellToast/index.less +26 -0
  262. package/lib/components/pisellTooltip/index.d.ts +10 -0
  263. package/lib/components/pisellTooltip/index.js +53 -0
  264. package/lib/components/pisellTooltip/index.less +5 -0
  265. package/lib/components/pisellWalletPassCard/bg.jpeg +0 -0
  266. package/lib/components/pisellWalletPassCard/index.d.ts +54 -0
  267. package/lib/components/pisellWalletPassCard/index.js +101 -0
  268. package/lib/components/pisellWalletPassCard/index.less +100 -0
  269. package/lib/hooks/useCssVariables.d.ts +8 -0
  270. package/lib/hooks/useCssVariables.js +36 -0
  271. package/lib/index.d.ts +23 -0
  272. package/lib/index.js +71 -0
  273. package/lib/locales/en-US.d.ts +9 -0
  274. package/lib/locales/en-US.js +13 -1
  275. package/lib/locales/index.js +3 -1
  276. package/lib/locales/zh-CN.d.ts +9 -0
  277. package/lib/locales/zh-CN.js +13 -1
  278. package/lib/locales/zh-TW.d.ts +9 -0
  279. package/lib/locales/zh-TW.js +13 -1
  280. package/lib/utils/index.d.ts +1 -0
  281. package/lib/utils/index.js +16 -0
  282. package/lib/utils/locale.js +2 -1
  283. package/lowcode/_utils/transform-meta.ts +31 -10
  284. package/lowcode/button/__screenshots__/pisell-modal-information.png +0 -0
  285. package/lowcode/button/meta.ts +30 -0
  286. package/lowcode/button/snippets.ts +28 -0
  287. package/lowcode/information-modal/meta.ts +1931 -0
  288. package/lowcode/modal/meta.ts +1 -1
  289. package/lowcode/page/meta.ts +8 -1
  290. package/lowcode/pisell-alert/meta.ts +117 -0
  291. package/lowcode/pisell-alert/snippets.ts +50 -0
  292. package/lowcode/pisell-card/__screenshots__/card-1.png +0 -0
  293. package/lowcode/pisell-card/meta.ts +100 -0
  294. package/lowcode/pisell-card/snippets.ts +10 -0
  295. package/lowcode/pisell-card-list/meta.ts +145 -0
  296. package/lowcode/pisell-card-list/snippets.ts +9 -0
  297. package/lowcode/pisell-checkbox-group/meta.ts +112 -0
  298. package/lowcode/pisell-checkbox-group/snippets.ts +13 -0
  299. package/lowcode/pisell-container/meta.ts +71 -0
  300. package/lowcode/pisell-container/snippets.ts +14 -0
  301. package/lowcode/pisell-countdown/meta.ts +71 -0
  302. package/lowcode/pisell-countdown/snippets.ts +12 -0
  303. package/lowcode/pisell-date-picker/meta.ts +76 -0
  304. package/lowcode/pisell-date-picker/snippets.ts +9 -0
  305. package/lowcode/pisell-empty/__screenshots__/empty-1.png +0 -0
  306. package/lowcode/pisell-empty/meta.ts +85 -0
  307. package/lowcode/pisell-empty/snippets.ts +10 -0
  308. package/lowcode/pisell-information-entry/meta.ts +131 -0
  309. package/lowcode/pisell-information-entry/snippets.ts +17 -0
  310. package/lowcode/pisell-input/__screenshots__/input-1.png +0 -0
  311. package/lowcode/pisell-input/meta.ts +193 -0
  312. package/lowcode/pisell-input/snippets.ts +11 -0
  313. package/lowcode/pisell-input.bank-card-input/__screenshots__/pisell-input.bank-card-input.png +0 -0
  314. package/lowcode/pisell-input.bank-card-input/meta.ts +62 -0
  315. package/lowcode/pisell-input.bank-card-input/snippets.ts +11 -0
  316. package/lowcode/pisell-input.copy/meta.ts +73 -0
  317. package/lowcode/pisell-input.copy/snippets.ts +10 -0
  318. package/lowcode/pisell-input.security-code/__screenshots__/pisell-input.security-code.png +0 -0
  319. package/lowcode/pisell-input.security-code/meta.ts +92 -0
  320. package/lowcode/pisell-input.security-code/snippets.ts +11 -0
  321. package/lowcode/pisell-loading/meta.ts +98 -0
  322. package/lowcode/pisell-loading/snippets.ts +11 -0
  323. package/lowcode/pisell-modal/__screenshots__/modal-1.png +0 -0
  324. package/lowcode/pisell-modal/__screenshots__/modal-2.png +0 -0
  325. package/lowcode/pisell-modal/meta.ts +200 -0
  326. package/lowcode/pisell-modal/snippets.ts +38 -0
  327. package/lowcode/pisell-modal.information/__screenshots__/pisell-modal.information.png +0 -0
  328. package/lowcode/pisell-modal.information/meta.ts +116 -0
  329. package/lowcode/pisell-modal.information/snippets.ts +17 -0
  330. package/lowcode/pisell-row/meta.ts +127 -0
  331. package/lowcode/pisell-row/snippets.ts +24 -0
  332. package/lowcode/pisell-scan/meta.ts +53 -0
  333. package/lowcode/pisell-scan/snippets.ts +13 -0
  334. package/lowcode/pisell-text/meta.ts +8117 -0
  335. package/lowcode/pisell-text.amount/meta.ts +61 -0
  336. package/lowcode/pisell-text.amount/snippets.ts +15 -0
  337. package/lowcode/pisell-tooltip/__screenshots__/tooltip-1.jpg +0 -0
  338. package/lowcode/pisell-tooltip/meta.ts +306 -0
  339. package/lowcode/pisell-tooltip/snippets.ts +12 -0
  340. package/lowcode/pisell-wallet-pass-card/meta.ts +189 -0
  341. package/lowcode/pisell-wallet-pass-card/snippets.ts +20 -0
  342. package/package.json +4 -3
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { AlertProps } from 'antd';
3
+ import './index.less';
4
+ export interface PisellAlertProps extends AlertProps {
5
+ /** 是否展示忽略按钮 */
6
+ showDismiss?: boolean;
7
+ /** 忽略按钮内容 */
8
+ dismiss?: React.ReactNode;
9
+ /** 是否展示行为按钮 */
10
+ showView?: boolean;
11
+ /** 行为按钮内容 */
12
+ view?: React.ReactNode;
13
+ /** 行为按钮点击事件 */
14
+ onViewClick?: (e: any) => void;
15
+ }
16
+ /**
17
+ * PisellAlert警告提示组件
18
+ * @param props
19
+ * @constructor
20
+ */
21
+ declare const PisellAlert: (props: PisellAlertProps) => false | React.JSX.Element;
22
+ export default PisellAlert;
@@ -0,0 +1,73 @@
1
+ var _excluded = ["message", "description", "type", "showIcon", "icon", "closable", "className", "showDismiss", "dismiss", "showView", "view", "onViewClick"];
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
+ 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."); }
5
+ 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); }
6
+ 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; }
7
+ 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; } }
8
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
+ 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; }
10
+ 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; }
11
+ import React, { useState } from 'react';
12
+ import { Alert } from 'antd';
13
+ import classNames from 'classnames';
14
+ import IconFont from "../iconfont";
15
+ import "./index.less";
16
+ var iconMap = {
17
+ success: 'pisell2-check-circle',
18
+ warning: 'pisell2-alert-circle',
19
+ error: 'pisell2-alert-circle',
20
+ info: 'pisell2-alert-circle'
21
+ };
22
+
23
+ /**
24
+ * PisellAlert警告提示组件
25
+ * @param props
26
+ * @constructor
27
+ */
28
+ var PisellAlert = function PisellAlert(props) {
29
+ var message = props.message,
30
+ description = props.description,
31
+ _props$type = props.type,
32
+ type = _props$type === void 0 ? 'success' : _props$type,
33
+ showIcon = props.showIcon,
34
+ icon = props.icon,
35
+ closable = props.closable,
36
+ className = props.className,
37
+ showDismiss = props.showDismiss,
38
+ dismiss = props.dismiss,
39
+ showView = props.showView,
40
+ view = props.view,
41
+ onViewClick = props.onViewClick,
42
+ others = _objectWithoutProperties(props, _excluded);
43
+ var _useState = useState(true),
44
+ _useState2 = _slicedToArray(_useState, 2),
45
+ visible = _useState2[0],
46
+ setVisible = _useState2[1];
47
+ return visible && /*#__PURE__*/React.createElement(Alert, _extends({}, others, {
48
+ icon: /*#__PURE__*/React.createElement("div", {
49
+ className: "pisell-alert-type-icon"
50
+ }, icon || /*#__PURE__*/React.createElement(IconFont, {
51
+ type: iconMap[type]
52
+ })),
53
+ message: message,
54
+ description: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, description), (showDismiss || showView) && /*#__PURE__*/React.createElement("div", {
55
+ className: "pisell-alert-action-wrap"
56
+ }, showDismiss && /*#__PURE__*/React.createElement("span", {
57
+ className: "pisell-action-item pisell-action-dismiss",
58
+ onClick: function onClick(e) {
59
+ var _props$onClose;
60
+ setVisible(false);
61
+ props === null || props === void 0 ? void 0 : (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props, e);
62
+ }
63
+ }, dismiss), showView && /*#__PURE__*/React.createElement("span", {
64
+ className: "pisell-action-item pisell-action-view",
65
+ onClick: onViewClick
66
+ }, view))),
67
+ type: type,
68
+ showIcon: showIcon,
69
+ closable: closable,
70
+ className: classNames(className, 'pisell-alert-wrap')
71
+ }));
72
+ };
73
+ export default PisellAlert;
@@ -0,0 +1,149 @@
1
+ .pisell-alert-wrap {
2
+ border-radius: 12px;
3
+ padding: 16px;
4
+ position: relative;
5
+ .pisell-lowcode-alert-close-icon {
6
+ font-size: 18px;
7
+ padding: 9px;
8
+ position: absolute;
9
+ top: 8px;
10
+ right: 8px;
11
+ color: inherit;
12
+ .anticon-close {
13
+ color: inherit;
14
+ }
15
+ }
16
+ .pisell-alert-type-icon {
17
+ font-size: 20px;
18
+ top: 4px;
19
+ margin-right: 16px;
20
+ &:before {
21
+ position: absolute;
22
+ content: '';
23
+ width: 28px;
24
+ height: 28px;
25
+ border-radius: 20px;
26
+ border-width: 2px;
27
+ border-style: solid;
28
+ border-color: inherit;
29
+ opacity: 0.3;
30
+ z-index: 2;
31
+ top: -4px;
32
+ left: -4px;
33
+ }
34
+ &:after {
35
+ position: absolute;
36
+ z-index: 2;
37
+ content: '';
38
+ width: 36px;
39
+ height: 36px;
40
+ border-radius: 20px;
41
+ border-width: 2px;
42
+ border-style: solid;
43
+ border-color: inherit;
44
+ opacity: 0.1;
45
+ top: -8px;
46
+ left: -8px;
47
+ }
48
+ }
49
+ .pisell-lowcode-alert-message {
50
+ color: inherit;
51
+ font-weight: 600;
52
+ }
53
+ .pisell-lowcode-alert-description {
54
+ color: inherit;
55
+ }
56
+ .pisell-alert-action-wrap {
57
+ margin-top: 12px;
58
+ display: flex;
59
+ gap: 12px;
60
+ .pisell-action-item {
61
+ cursor: pointer;
62
+ font-weight: 600;
63
+ }
64
+ }
65
+ }
66
+
67
+ .pisell-lowcode-alert-success {
68
+ border: 1px solid var(--Success-600, #079455);
69
+ background: var(--Success-25, #f6fef9);
70
+ color: var(--Success-700, #067647);
71
+ .pisell-alert-type-icon {
72
+ color: #079455;
73
+ line-height: 1;
74
+ position: relative;
75
+ }
76
+ .pisell-alert-action-wrap {
77
+ .pisell-action-item.pisell-action-dismiss {
78
+ color: var(--Success-600, #079455);
79
+ }
80
+ }
81
+ .pisell-lowcode-alert-close-icon {
82
+ .anticon-close {
83
+ color: #17B26A;
84
+ }
85
+ }
86
+ }
87
+
88
+ .pisell-lowcode-alert-info {
89
+ border: 1px solid var(--Blue-300, #84caff);
90
+ background: var(--Blue-50, #eff8ff);
91
+ color: var(--Blue-700, #175CD3);
92
+ .pisell-alert-type-icon {
93
+ color: #1570ef;
94
+ line-height: 1;
95
+ position: relative;
96
+ }
97
+ .pisell-alert-action-wrap {
98
+ .pisell-action-item.pisell-action-dismiss {
99
+ color: var(--Blue-600, #1570EF);
100
+ }
101
+ }
102
+ .pisell-lowcode-alert-close-icon {
103
+ .anticon-close {
104
+ color: #2E90FA
105
+ }
106
+ }
107
+ }
108
+
109
+ .pisell-lowcode-alert-warning {
110
+ border: 1px solid var(--Warning-300, #fec84b);
111
+ background: var(--Warning-25, #fffcf5);
112
+ color: var(--Warning-700, #B54708);
113
+ .pisell-alert-type-icon {
114
+ color: #dc6803;
115
+ line-height: 1;
116
+ position: relative;
117
+ }
118
+ .pisell-alert-action-wrap {
119
+ .pisell-action-item.pisell-action-dismiss {
120
+ color: var(--Warning-600, #DC6803);
121
+ }
122
+ }
123
+ .pisell-lowcode-alert-close-icon {
124
+ .anticon-close {
125
+ color: #F79009
126
+ }
127
+ }
128
+ }
129
+
130
+ .pisell-lowcode-alert-error {
131
+ border: 1px solid var(--Error-300, #fda29b);
132
+ background: var(--Error-25, #fffbfa);
133
+ color: var(--Error-700, #B42318);
134
+ .pisell-alert-type-icon {
135
+ color: #d92d20;
136
+ line-height: 1;
137
+ position: relative;
138
+ }
139
+ .pisell-alert-action-wrap {
140
+ .pisell-action-item.pisell-action-dismiss {
141
+ color: var(--Error-600, #D92D20);
142
+ }
143
+ }
144
+ .pisell-lowcode-alert-close-icon {
145
+ .anticon-close {
146
+ color: #F04438
147
+ }
148
+ }
149
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { CardProps } from 'antd';
3
+ import './index.less';
4
+ export interface PisellCardProps extends CardProps {
5
+ }
6
+ /**
7
+ * Pisell 卡片容器组件
8
+ * @param props
9
+ * @constructor
10
+ */
11
+ declare const PisellCard: (props: PisellCardProps) => React.JSX.Element;
12
+ export default PisellCard;
@@ -0,0 +1,16 @@
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
+ import React from 'react';
3
+ import { Card } from 'antd';
4
+ import classNames from 'classnames';
5
+ import "./index.less";
6
+ /**
7
+ * Pisell 卡片容器组件
8
+ * @param props
9
+ * @constructor
10
+ */
11
+ var PisellCard = function PisellCard(props) {
12
+ return /*#__PURE__*/React.createElement(Card, _extends({}, props, {
13
+ className: classNames('pisell-card-wrap', props.className)
14
+ }));
15
+ };
16
+ export default PisellCard;
@@ -0,0 +1,9 @@
1
+ .pisell-card-wrap {
2
+ border-radius: 12px;
3
+ .pisell-lowcode-card-body {
4
+ padding: 16px;
5
+ }
6
+ &:hover {
7
+ background: var(--Gray-50, #F9FAFB);
8
+ }
9
+ }
@@ -0,0 +1,43 @@
1
+ import React from 'react';
2
+ import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
3
+ import { PisellContextType } from '../pisell-config-provider/context';
4
+ import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
5
+ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
6
+ platform?: PisellContextType['platform'];
7
+ /** 当用户查看完所有记录时,底部会显示此消息 */
8
+ endMessage?: React.ReactNode;
9
+ /** 加载下次数据时的加载站位 */
10
+ loader?: React.ReactNode;
11
+ /** 是否有更多数据 */
12
+ hasMore: boolean;
13
+ /** 加载更多数据回调 */
14
+ loadMoreData?: () => Promise<void>;
15
+ /** 当前list数据 */
16
+ data: PisellWalletPassCardProps[];
17
+ /** list空数据时展示内容 */
18
+ empty?: React.ReactNode;
19
+ /** 是否展示空状态 */
20
+ showEmpty?: boolean;
21
+ /** 是否展示卡片名称 */
22
+ showName?: boolean;
23
+ /** 是否展示店铺名称 */
24
+ showStoreName?: boolean;
25
+ /** 是否展示核销金额 */
26
+ showRedeem?: boolean;
27
+ /** 是否展示余额 */
28
+ showBalance?: boolean;
29
+ /** 是否展示编码 */
30
+ showCode?: boolean;
31
+ /** 是否展示到期时间 */
32
+ showValidDate?: boolean;
33
+ /** 是否展示详情按钮 */
34
+ showDetail?: boolean;
35
+ /** 是否展示二维码 */
36
+ showQrCode?: boolean;
37
+ /** 是否展示封面图 */
38
+ showCover?: boolean;
39
+ /** 是否余额货币单位 */
40
+ showBalanceSymbol?: boolean;
41
+ }
42
+ declare const _default: React.MemoExoticComponent<(props: PisellCardListProps) => React.JSX.Element>;
43
+ export default _default;
@@ -0,0 +1,72 @@
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
+ import React, { memo } from 'react';
3
+ import InfiniteScroll from 'react-infinite-scroll-component';
4
+ import { Skeleton } from 'antd';
5
+ import PisellCheckboxGroup from "../pisellCheckboxGroup";
6
+ import PisellWalletPassCard from "../pisellWalletPassCard";
7
+ import PisellEmpty from "../pisellEmpty";
8
+ /**
9
+ * 卡列表组件
10
+ * @param props
11
+ * @constructor
12
+ */
13
+ var PisellCardList = function PisellCardList(props) {
14
+ var data = props.data,
15
+ _props$loadMoreData = props.loadMoreData,
16
+ loadMoreData = _props$loadMoreData === void 0 ? function () {} : _props$loadMoreData,
17
+ endMessage = props.endMessage,
18
+ loader = props.loader,
19
+ hasMore = props.hasMore,
20
+ onChange = props.onChange,
21
+ value = props.value,
22
+ mode = props.mode,
23
+ showName = props.showName,
24
+ showCode = props.showCode,
25
+ showCover = props.showCover,
26
+ showDetail = props.showDetail,
27
+ showBalance = props.showBalance,
28
+ showRedeem = props.showRedeem,
29
+ showQrCode = props.showQrCode,
30
+ showStoreName = props.showStoreName,
31
+ showValidDate = props.showValidDate,
32
+ empty = props.empty,
33
+ showEmpty = props.showEmpty,
34
+ showBalanceSymbol = props.showBalanceSymbol;
35
+ return /*#__PURE__*/React.createElement(InfiniteScroll, {
36
+ dataLength: data.length,
37
+ next: loadMoreData,
38
+ hasMore: hasMore,
39
+ loader: loader || /*#__PURE__*/React.createElement(Skeleton, {
40
+ paragraph: {
41
+ rows: 3
42
+ },
43
+ active: true
44
+ }),
45
+ endMessage: endMessage,
46
+ scrollableTarget: "scrollableDiv"
47
+ }, data.length ? /*#__PURE__*/React.createElement(PisellCheckboxGroup, {
48
+ options: data,
49
+ value: value,
50
+ mode: mode,
51
+ rowKey: "id",
52
+ gap: 12,
53
+ onChange: onChange,
54
+ iconPosition: "hide",
55
+ renderOption: function renderOption(item, active) {
56
+ return /*#__PURE__*/React.createElement(PisellWalletPassCard, _extends({}, item, {
57
+ active: active,
58
+ showName: showName || (item === null || item === void 0 ? void 0 : item.showName),
59
+ showBalance: showBalance || (item === null || item === void 0 ? void 0 : item.showBalance),
60
+ showCode: showCode || (item === null || item === void 0 ? void 0 : item.showCode),
61
+ showCover: showCover || (item === null || item === void 0 ? void 0 : item.showCover),
62
+ showDetail: showDetail || (item === null || item === void 0 ? void 0 : item.showDetail),
63
+ showQrCode: showQrCode || (item === null || item === void 0 ? void 0 : item.showQrCode),
64
+ showRedeem: showRedeem || (item === null || item === void 0 ? void 0 : item.showRedeem),
65
+ showStoreName: showStoreName || (item === null || item === void 0 ? void 0 : item.showStoreName),
66
+ showValidDate: showValidDate || (item === null || item === void 0 ? void 0 : item.showValidDate),
67
+ showBalanceSymbol: showBalanceSymbol || (item === null || item === void 0 ? void 0 : item.showBalanceSymbol)
68
+ }));
69
+ }
70
+ }) : showEmpty && (empty || /*#__PURE__*/React.createElement(PisellEmpty, null)));
71
+ };
72
+ export default /*#__PURE__*/memo(PisellCardList);
@@ -0,0 +1,75 @@
1
+ .pisell-card {
2
+ padding: 16px;
3
+ color: var(--Gray-900, #101828);
4
+ font-size: 14px;
5
+ font-style: normal;
6
+ position: relative;
7
+ overflow: hidden;
8
+ border-radius: 12px;
9
+ .pisell-card-name-wrap {
10
+ display: flex;
11
+ justify-content: space-between;
12
+ font-weight: 500;
13
+ line-height: 20px;
14
+ }
15
+ .pisell-card-store-name {
16
+ height: 20px;
17
+ font-size: 12px;
18
+ font-weight: 400;
19
+ line-height: 18px; /* 150% */
20
+ }
21
+ .pisell-card-amount-wrap {
22
+ display: flex;
23
+ margin-bottom: 4px;
24
+ .pisell-card-amount-item {
25
+ display: flex;
26
+ flex-direction: column;
27
+ margin-right: 16px;
28
+ .pisell-card-amount-item-label {
29
+ color: var(--Gray-500, #667085);
30
+ font-weight: 400;
31
+ line-height: 20px;
32
+ height: 20px;
33
+ }
34
+ .pisell-card-amount-item-value {
35
+ font-size: 20px;
36
+ font-weight: 600;
37
+ line-height: 30px;
38
+ }
39
+ }
40
+ }
41
+ .pisell-card-code-wrap {
42
+ display: flex;
43
+ justify-content: space-between;
44
+ position: relative;
45
+ .pisell-card-qr-code {
46
+ position: absolute;
47
+ top: -16px;
48
+ right: 0;
49
+ }
50
+ }
51
+ .pisell-lowcode-qrcode {
52
+ padding: 6px;
53
+ }
54
+ .pisell-card-warn-message {
55
+ position: absolute;
56
+ bottom: 0;
57
+ width: 100%;
58
+ left: 0;
59
+ background: var(--Warning-200, #FEDF89);
60
+ display: flex;
61
+ padding: 6px 16px;
62
+ color: var(--Warning-900, #7A2E0E);
63
+ font-weight: 400;
64
+ line-height: 20px;
65
+ .pisell-card-icon {
66
+ font-size: 20px;
67
+ color: #7A2E0E;
68
+ margin-right: 2px;
69
+ }
70
+ }
71
+ }
72
+ .pisell-card-disabled {
73
+ color: var(--Gray-500, #667085);
74
+ padding-bottom: 36px;
75
+ }
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from '../pisell-config-provider/context';
3
+ import './index.less';
4
+ export interface PisellCheckboxGroupOption {
5
+ label: string;
6
+ value: string;
7
+ disabled?: boolean;
8
+ [key: string]: any;
9
+ }
10
+ declare type PisellCheckboxGroupValue = string | string[] | any;
11
+ export interface PisellCheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
12
+ platform?: PisellContextType['platform'];
13
+ gap?: number;
14
+ padding?: number;
15
+ options: PisellCheckboxGroupOption[];
16
+ onChange?: (value: PisellCheckboxGroupValue, item: PisellCheckboxGroupOption) => void;
17
+ value?: PisellCheckboxGroupValue;
18
+ renderOption?: (option: PisellCheckboxGroupOption, active: boolean) => React.ReactNode;
19
+ rowKey?: string;
20
+ mode?: 'multiple' | 'single';
21
+ iconPosition?: 'left' | 'right' | 'hide';
22
+ optionClassName?: string;
23
+ optionActiveClassName?: string;
24
+ }
25
+ /**
26
+ * @title: PisellCheckboxGroup
27
+ * @description: 选中组件
28
+ * @param {PisellCheckboxGroupProps} props
29
+ * @return {*}
30
+ * @Author: zhiwei.Wang
31
+ * @Date: 2024-08-16 10:34
32
+ */
33
+ declare const PisellCheckboxGroup: (props: PisellCheckboxGroupProps) => React.JSX.Element;
34
+ export default PisellCheckboxGroup;