@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.
- package/build/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +4 -4
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +29 -27
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +22 -20
- package/es/components/button/index.d.ts +4 -3
- package/es/components/button/index.js +14 -3
- package/es/components/iconfont/index.d.ts +2 -1
- package/es/components/iconfont/index.js +1 -1
- package/es/components/page/index.css +0 -0
- package/es/components/page/index.d.ts +2 -2
- package/es/components/page/index.js +226 -186
- package/es/components/pisell-config-provider/context.d.ts +20 -0
- package/es/components/pisell-config-provider/context.js +36 -0
- package/es/components/pisell-config-provider/hooks/usePisellConfig.d.ts +5 -0
- package/es/components/pisell-config-provider/hooks/usePisellConfig.js +11 -0
- package/es/components/pisell-config-provider/index.d.ts +12 -0
- package/es/components/pisell-config-provider/index.js +36 -0
- package/es/components/pisellAlert/index.d.ts +22 -0
- package/es/components/pisellAlert/index.js +73 -0
- package/es/components/pisellAlert/index.less +149 -0
- package/es/components/pisellCard/index.d.ts +12 -0
- package/es/components/pisellCard/index.js +16 -0
- package/es/components/pisellCard/index.less +9 -0
- package/es/components/pisellCardList/index.d.ts +43 -0
- package/es/components/pisellCardList/index.js +72 -0
- package/es/components/pisellCardList/index.less +75 -0
- package/es/components/pisellCheckboxGroup/index.d.ts +34 -0
- package/es/components/pisellCheckboxGroup/index.js +173 -0
- package/es/components/pisellCheckboxGroup/index.less +36 -0
- package/es/components/pisellCheckboxGroup/mock.d.ts +4 -0
- package/es/components/pisellCheckboxGroup/mock.js +16 -0
- package/es/components/pisellContainer/components/Portal/index.d.ts +10 -0
- package/es/components/pisellContainer/components/Portal/index.js +7 -0
- package/es/components/pisellContainer/containers.d.ts +1 -0
- package/es/components/pisellContainer/containers.js +8 -0
- package/es/components/pisellContainer/index.d.ts +22 -0
- package/es/components/pisellContainer/index.js +19 -0
- package/es/components/pisellCountdown/index.d.ts +24 -0
- package/es/components/pisellCountdown/index.js +44 -0
- package/es/components/pisellCountdown/utils.d.ts +7 -0
- package/es/components/pisellCountdown/utils.js +50 -0
- package/es/components/pisellDatePicker/datePickerCpt.d.ts +22 -0
- package/es/components/pisellDatePicker/datePickerCpt.js +191 -0
- package/es/components/pisellDatePicker/detePickerCpt.less +22 -0
- package/es/components/pisellDatePicker/index.d.ts +3 -0
- package/es/components/pisellDatePicker/index.js +17 -0
- package/es/components/pisellEmpty/index.d.ts +16 -0
- package/es/components/pisellEmpty/index.js +38 -0
- package/es/components/pisellEmpty/index.less +34 -0
- package/es/components/pisellInformationEntry/Input/index.d.ts +8 -0
- package/es/components/pisellInformationEntry/Input/index.js +50 -0
- package/es/components/pisellInformationEntry/Input/index.less +14 -0
- package/es/components/pisellInformationEntry/Scan/index.d.ts +8 -0
- package/es/components/pisellInformationEntry/Scan/index.js +25 -0
- package/es/components/pisellInformationEntry/Scan/index.less +8 -0
- package/es/components/pisellInformationEntry/constants.d.ts +3 -0
- package/es/components/pisellInformationEntry/constants.js +21 -0
- package/es/components/pisellInformationEntry/index.d.ts +31 -0
- package/es/components/pisellInformationEntry/index.js +188 -0
- package/es/components/pisellInformationEntry/index.less +40 -0
- package/es/components/pisellInformationEntry/utils.d.ts +4 -0
- package/es/components/pisellInformationEntry/utils.js +38 -0
- package/es/components/pisellInput/components/BankCard/cardPng/AMEX.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/Discover.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/JCB.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/MasterCard.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/UnionPay.png +0 -0
- package/es/components/pisellInput/components/BankCard/cardPng/VISA.png +0 -0
- package/es/components/pisellInput/components/BankCard/index.d.ts +11 -0
- package/es/components/pisellInput/components/BankCard/index.js +82 -0
- package/es/components/pisellInput/components/BankCard/index.less +4 -0
- package/es/components/pisellInput/components/BankCard/utils.d.ts +11 -0
- package/es/components/pisellInput/components/BankCard/utils.js +65 -0
- package/es/components/pisellInput/components/Copy/index.d.ts +11 -0
- package/es/components/pisellInput/components/Copy/index.js +53 -0
- package/es/components/pisellInput/components/SecurityCode/card.png +0 -0
- package/es/components/pisellInput/components/SecurityCode/index.d.ts +12 -0
- package/es/components/pisellInput/components/SecurityCode/index.js +46 -0
- package/es/components/pisellInput/components/SecurityCode/index.less +4 -0
- package/es/components/pisellInput/index.d.ts +13 -0
- package/es/components/pisellInput/index.js +15 -0
- package/es/components/pisellLoading/index.d.ts +18 -0
- package/es/components/pisellLoading/index.js +45 -0
- package/es/components/pisellLoading/index.less +35 -0
- package/es/components/pisellMessage/index.d.ts +4 -0
- package/es/components/pisellMessage/index.js +5 -0
- package/es/components/pisellModal/components/Information/index.d.ts +21 -0
- package/es/components/pisellModal/components/Information/index.js +25 -0
- package/es/components/pisellModal/components/Information/index.less +16 -0
- package/es/components/pisellModal/components/IpadModal/index.d.ts +6 -0
- package/es/components/pisellModal/components/IpadModal/index.js +6 -0
- package/es/components/pisellModal/components/MobileModal/index.d.ts +9 -0
- package/es/components/pisellModal/components/MobileModal/index.js +27 -0
- package/es/components/pisellModal/components/MobileModal/index.less +60 -0
- package/es/components/pisellModal/components/PcModal/index.d.ts +30 -0
- package/es/components/pisellModal/components/PcModal/index.js +129 -0
- package/es/components/pisellModal/components/PcModal/index.less +105 -0
- package/es/components/pisellModal/components/functions/index.d.ts +12 -0
- package/es/components/pisellModal/components/functions/index.js +44 -0
- package/es/components/pisellModal/components/functions/index.less +25 -0
- package/es/components/pisellModal/components/index.d.ts +10 -0
- package/es/components/pisellModal/components/index.js +9 -0
- package/es/components/pisellModal/constants.d.ts +6 -0
- package/es/components/pisellModal/constants.js +6 -0
- package/es/components/pisellModal/index.d.ts +43 -0
- package/es/components/pisellModal/index.js +30 -0
- package/es/components/pisellRow/index.d.ts +22 -0
- package/es/components/pisellRow/index.js +67 -0
- package/es/components/pisellRow/index.less +13 -0
- package/es/components/pisellScan/index.d.ts +21 -0
- package/es/components/pisellScan/index.js +80 -0
- package/es/components/pisellScan/index.less +12 -0
- package/es/components/pisellText/components/Amount/index.d.ts +18 -0
- package/es/components/pisellText/components/Amount/index.js +25 -0
- package/es/components/pisellText/index.d.ts +8 -0
- package/es/components/pisellText/index.js +7 -0
- package/es/components/pisellToast/index.d.ts +16 -0
- package/es/components/pisellToast/index.js +32 -0
- package/es/components/pisellToast/index.less +26 -0
- package/es/components/pisellTooltip/index.d.ts +10 -0
- package/es/components/pisellTooltip/index.js +15 -0
- package/es/components/pisellTooltip/index.less +5 -0
- package/es/components/pisellWalletPassCard/bg.jpeg +0 -0
- package/es/components/pisellWalletPassCard/index.d.ts +54 -0
- package/es/components/pisellWalletPassCard/index.js +93 -0
- package/es/components/pisellWalletPassCard/index.less +100 -0
- package/es/hooks/useCssVariables.d.ts +8 -0
- package/es/hooks/useCssVariables.js +21 -0
- package/es/index.d.ts +23 -0
- package/es/index.js +26 -1
- package/es/locales/en-US.d.ts +9 -0
- package/es/locales/en-US.js +13 -1
- package/es/locales/index.js +3 -1
- package/es/locales/zh-CN.d.ts +9 -0
- package/es/locales/zh-CN.js +13 -1
- package/es/locales/zh-TW.d.ts +9 -0
- package/es/locales/zh-TW.js +13 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +15 -1
- package/es/utils/locale.js +2 -1
- package/lib/components/button/index.d.ts +4 -3
- package/lib/components/button/index.js +13 -9
- package/lib/components/iconfont/index.d.ts +2 -1
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/page/index.css +0 -0
- package/lib/components/page/index.d.ts +2 -2
- package/lib/components/page/index.js +201 -161
- package/lib/components/pisell-config-provider/context.d.ts +20 -0
- package/lib/components/pisell-config-provider/context.js +49 -0
- package/lib/components/pisell-config-provider/hooks/usePisellConfig.d.ts +5 -0
- package/lib/components/pisell-config-provider/hooks/usePisellConfig.js +31 -0
- package/lib/components/pisell-config-provider/index.d.ts +12 -0
- package/lib/components/pisell-config-provider/index.js +69 -0
- package/lib/components/pisellAlert/index.d.ts +22 -0
- package/lib/components/pisellAlert/index.js +95 -0
- package/lib/components/pisellAlert/index.less +149 -0
- package/lib/components/pisellCard/index.d.ts +12 -0
- package/lib/components/pisellCard/index.js +48 -0
- package/lib/components/pisellCard/index.less +9 -0
- package/lib/components/pisellCardList/index.d.ts +43 -0
- package/lib/components/pisellCardList/index.js +108 -0
- package/lib/components/pisellCardList/index.less +75 -0
- package/lib/components/pisellCheckboxGroup/index.d.ts +34 -0
- package/lib/components/pisellCheckboxGroup/index.js +150 -0
- package/lib/components/pisellCheckboxGroup/index.less +36 -0
- package/lib/components/pisellCheckboxGroup/mock.d.ts +4 -0
- package/lib/components/pisellCheckboxGroup/mock.js +35 -0
- package/lib/components/pisellContainer/components/Portal/index.d.ts +10 -0
- package/lib/components/pisellContainer/components/Portal/index.js +40 -0
- package/lib/components/pisellContainer/containers.d.ts +1 -0
- package/lib/components/pisellContainer/containers.js +46 -0
- package/lib/components/pisellContainer/index.d.ts +22 -0
- package/lib/components/pisellContainer/index.js +49 -0
- package/lib/components/pisellCountdown/index.d.ts +24 -0
- package/lib/components/pisellCountdown/index.js +63 -0
- package/lib/components/pisellCountdown/utils.d.ts +7 -0
- package/lib/components/pisellCountdown/utils.js +60 -0
- package/lib/components/pisellDatePicker/datePickerCpt.d.ts +22 -0
- package/lib/components/pisellDatePicker/datePickerCpt.js +157 -0
- package/lib/components/pisellDatePicker/detePickerCpt.less +22 -0
- package/lib/components/pisellDatePicker/index.d.ts +3 -0
- package/lib/components/pisellDatePicker/index.js +48 -0
- package/lib/components/pisellEmpty/index.d.ts +16 -0
- package/lib/components/pisellEmpty/index.js +61 -0
- package/lib/components/pisellEmpty/index.less +34 -0
- package/lib/components/pisellInformationEntry/Input/index.d.ts +8 -0
- package/lib/components/pisellInformationEntry/Input/index.js +56 -0
- package/lib/components/pisellInformationEntry/Input/index.less +14 -0
- package/lib/components/pisellInformationEntry/Scan/index.d.ts +8 -0
- package/lib/components/pisellInformationEntry/Scan/index.js +64 -0
- package/lib/components/pisellInformationEntry/Scan/index.less +8 -0
- package/lib/components/pisellInformationEntry/constants.d.ts +3 -0
- package/lib/components/pisellInformationEntry/constants.js +49 -0
- package/lib/components/pisellInformationEntry/index.d.ts +31 -0
- package/lib/components/pisellInformationEntry/index.js +162 -0
- package/lib/components/pisellInformationEntry/index.less +40 -0
- package/lib/components/pisellInformationEntry/utils.d.ts +4 -0
- package/lib/components/pisellInformationEntry/utils.js +40 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/AMEX.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/Discover.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/JCB.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/MasterCard.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/UnionPay.png +0 -0
- package/lib/components/pisellInput/components/BankCard/cardPng/VISA.png +0 -0
- package/lib/components/pisellInput/components/BankCard/index.d.ts +11 -0
- package/lib/components/pisellInput/components/BankCard/index.js +98 -0
- package/lib/components/pisellInput/components/BankCard/index.less +4 -0
- package/lib/components/pisellInput/components/BankCard/utils.d.ts +11 -0
- package/lib/components/pisellInput/components/BankCard/utils.js +103 -0
- package/lib/components/pisellInput/components/Copy/index.d.ts +11 -0
- package/lib/components/pisellInput/components/Copy/index.js +61 -0
- package/lib/components/pisellInput/components/SecurityCode/card.png +0 -0
- package/lib/components/pisellInput/components/SecurityCode/index.d.ts +12 -0
- package/lib/components/pisellInput/components/SecurityCode/index.js +74 -0
- package/lib/components/pisellInput/components/SecurityCode/index.less +4 -0
- package/lib/components/pisellInput/index.d.ts +13 -0
- package/lib/components/pisellInput/index.js +46 -0
- package/lib/components/pisellLoading/index.d.ts +18 -0
- package/lib/components/pisellLoading/index.js +69 -0
- package/lib/components/pisellLoading/index.less +35 -0
- package/lib/components/pisellMessage/index.d.ts +4 -0
- package/lib/components/pisellMessage/index.js +34 -0
- package/lib/components/pisellModal/components/Information/index.d.ts +21 -0
- package/lib/components/pisellModal/components/Information/index.js +54 -0
- package/lib/components/pisellModal/components/Information/index.less +16 -0
- package/lib/components/pisellModal/components/IpadModal/index.d.ts +6 -0
- package/lib/components/pisellModal/components/IpadModal/index.js +40 -0
- package/lib/components/pisellModal/components/MobileModal/index.d.ts +9 -0
- package/lib/components/pisellModal/components/MobileModal/index.js +67 -0
- package/lib/components/pisellModal/components/MobileModal/index.less +60 -0
- package/lib/components/pisellModal/components/PcModal/index.d.ts +30 -0
- package/lib/components/pisellModal/components/PcModal/index.js +143 -0
- package/lib/components/pisellModal/components/PcModal/index.less +105 -0
- package/lib/components/pisellModal/components/functions/index.d.ts +12 -0
- package/lib/components/pisellModal/components/functions/index.js +90 -0
- package/lib/components/pisellModal/components/functions/index.less +25 -0
- package/lib/components/pisellModal/components/index.d.ts +10 -0
- package/lib/components/pisellModal/components/index.js +52 -0
- package/lib/components/pisellModal/constants.d.ts +6 -0
- package/lib/components/pisellModal/constants.js +33 -0
- package/lib/components/pisellModal/index.d.ts +43 -0
- package/lib/components/pisellModal/index.js +63 -0
- package/lib/components/pisellRow/index.d.ts +22 -0
- package/lib/components/pisellRow/index.js +82 -0
- package/lib/components/pisellRow/index.less +13 -0
- package/lib/components/pisellScan/index.d.ts +21 -0
- package/lib/components/pisellScan/index.js +100 -0
- package/lib/components/pisellScan/index.less +12 -0
- package/lib/components/pisellText/components/Amount/index.d.ts +18 -0
- package/lib/components/pisellText/components/Amount/index.js +64 -0
- package/lib/components/pisellText/index.d.ts +8 -0
- package/lib/components/pisellText/index.js +41 -0
- package/lib/components/pisellToast/index.d.ts +16 -0
- package/lib/components/pisellToast/index.js +59 -0
- package/lib/components/pisellToast/index.less +26 -0
- package/lib/components/pisellTooltip/index.d.ts +10 -0
- package/lib/components/pisellTooltip/index.js +53 -0
- package/lib/components/pisellTooltip/index.less +5 -0
- package/lib/components/pisellWalletPassCard/bg.jpeg +0 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +54 -0
- package/lib/components/pisellWalletPassCard/index.js +101 -0
- package/lib/components/pisellWalletPassCard/index.less +100 -0
- package/lib/hooks/useCssVariables.d.ts +8 -0
- package/lib/hooks/useCssVariables.js +36 -0
- package/lib/index.d.ts +23 -0
- package/lib/index.js +71 -0
- package/lib/locales/en-US.d.ts +9 -0
- package/lib/locales/en-US.js +13 -1
- package/lib/locales/index.js +3 -1
- package/lib/locales/zh-CN.d.ts +9 -0
- package/lib/locales/zh-CN.js +13 -1
- package/lib/locales/zh-TW.d.ts +9 -0
- package/lib/locales/zh-TW.js +13 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +16 -0
- package/lib/utils/locale.js +2 -1
- package/lowcode/_utils/transform-meta.ts +31 -10
- package/lowcode/button/__screenshots__/pisell-modal-information.png +0 -0
- package/lowcode/button/meta.ts +30 -0
- package/lowcode/button/snippets.ts +28 -0
- package/lowcode/information-modal/meta.ts +1931 -0
- package/lowcode/modal/meta.ts +1 -1
- package/lowcode/page/meta.ts +8 -1
- package/lowcode/pisell-alert/meta.ts +117 -0
- package/lowcode/pisell-alert/snippets.ts +50 -0
- package/lowcode/pisell-card/__screenshots__/card-1.png +0 -0
- package/lowcode/pisell-card/meta.ts +100 -0
- package/lowcode/pisell-card/snippets.ts +10 -0
- package/lowcode/pisell-card-list/meta.ts +145 -0
- package/lowcode/pisell-card-list/snippets.ts +9 -0
- package/lowcode/pisell-checkbox-group/meta.ts +112 -0
- package/lowcode/pisell-checkbox-group/snippets.ts +13 -0
- package/lowcode/pisell-container/meta.ts +71 -0
- package/lowcode/pisell-container/snippets.ts +14 -0
- package/lowcode/pisell-countdown/meta.ts +71 -0
- package/lowcode/pisell-countdown/snippets.ts +12 -0
- package/lowcode/pisell-date-picker/meta.ts +76 -0
- package/lowcode/pisell-date-picker/snippets.ts +9 -0
- package/lowcode/pisell-empty/__screenshots__/empty-1.png +0 -0
- package/lowcode/pisell-empty/meta.ts +85 -0
- package/lowcode/pisell-empty/snippets.ts +10 -0
- package/lowcode/pisell-information-entry/meta.ts +131 -0
- package/lowcode/pisell-information-entry/snippets.ts +17 -0
- package/lowcode/pisell-input/__screenshots__/input-1.png +0 -0
- package/lowcode/pisell-input/meta.ts +193 -0
- package/lowcode/pisell-input/snippets.ts +11 -0
- package/lowcode/pisell-input.bank-card-input/__screenshots__/pisell-input.bank-card-input.png +0 -0
- package/lowcode/pisell-input.bank-card-input/meta.ts +62 -0
- package/lowcode/pisell-input.bank-card-input/snippets.ts +11 -0
- package/lowcode/pisell-input.copy/meta.ts +73 -0
- package/lowcode/pisell-input.copy/snippets.ts +10 -0
- package/lowcode/pisell-input.security-code/__screenshots__/pisell-input.security-code.png +0 -0
- package/lowcode/pisell-input.security-code/meta.ts +92 -0
- package/lowcode/pisell-input.security-code/snippets.ts +11 -0
- package/lowcode/pisell-loading/meta.ts +98 -0
- package/lowcode/pisell-loading/snippets.ts +11 -0
- package/lowcode/pisell-modal/__screenshots__/modal-1.png +0 -0
- package/lowcode/pisell-modal/__screenshots__/modal-2.png +0 -0
- package/lowcode/pisell-modal/meta.ts +200 -0
- package/lowcode/pisell-modal/snippets.ts +38 -0
- package/lowcode/pisell-modal.information/__screenshots__/pisell-modal.information.png +0 -0
- package/lowcode/pisell-modal.information/meta.ts +116 -0
- package/lowcode/pisell-modal.information/snippets.ts +17 -0
- package/lowcode/pisell-row/meta.ts +127 -0
- package/lowcode/pisell-row/snippets.ts +24 -0
- package/lowcode/pisell-scan/meta.ts +53 -0
- package/lowcode/pisell-scan/snippets.ts +13 -0
- package/lowcode/pisell-text/meta.ts +8117 -0
- package/lowcode/pisell-text.amount/meta.ts +61 -0
- package/lowcode/pisell-text.amount/snippets.ts +15 -0
- package/lowcode/pisell-tooltip/__screenshots__/tooltip-1.jpg +0 -0
- package/lowcode/pisell-tooltip/meta.ts +306 -0
- package/lowcode/pisell-tooltip/snippets.ts +12 -0
- package/lowcode/pisell-wallet-pass-card/meta.ts +189 -0
- package/lowcode/pisell-wallet-pass-card/snippets.ts +20 -0
- package/package.json +4 -3
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellAlert/index.tsx
|
|
30
|
+
var pisellAlert_exports = {};
|
|
31
|
+
__export(pisellAlert_exports, {
|
|
32
|
+
default: () => pisellAlert_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellAlert_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_iconfont = __toESM(require("../iconfont"));
|
|
39
|
+
var import_index = require("./index.less");
|
|
40
|
+
var iconMap = {
|
|
41
|
+
success: "pisell2-check-circle",
|
|
42
|
+
warning: "pisell2-alert-circle",
|
|
43
|
+
error: "pisell2-alert-circle",
|
|
44
|
+
info: "pisell2-alert-circle"
|
|
45
|
+
};
|
|
46
|
+
var PisellAlert = (props) => {
|
|
47
|
+
const {
|
|
48
|
+
message,
|
|
49
|
+
description,
|
|
50
|
+
type = "success",
|
|
51
|
+
showIcon,
|
|
52
|
+
icon,
|
|
53
|
+
closable,
|
|
54
|
+
className,
|
|
55
|
+
showDismiss,
|
|
56
|
+
dismiss,
|
|
57
|
+
showView,
|
|
58
|
+
view,
|
|
59
|
+
onViewClick,
|
|
60
|
+
...others
|
|
61
|
+
} = props;
|
|
62
|
+
const [visible, setVisible] = (0, import_react.useState)(true);
|
|
63
|
+
return visible && /* @__PURE__ */ import_react.default.createElement(
|
|
64
|
+
import_antd.Alert,
|
|
65
|
+
{
|
|
66
|
+
...others,
|
|
67
|
+
icon: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-alert-type-icon" }, icon || /* @__PURE__ */ import_react.default.createElement(import_iconfont.default, { type: iconMap[type] })),
|
|
68
|
+
message,
|
|
69
|
+
description: /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("div", null, description), (showDismiss || showView) && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-alert-action-wrap" }, showDismiss && /* @__PURE__ */ import_react.default.createElement(
|
|
70
|
+
"span",
|
|
71
|
+
{
|
|
72
|
+
className: "pisell-action-item pisell-action-dismiss",
|
|
73
|
+
onClick: (e) => {
|
|
74
|
+
var _a;
|
|
75
|
+
setVisible(false);
|
|
76
|
+
(_a = props == null ? void 0 : props.onClose) == null ? void 0 : _a.call(props, e);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
dismiss
|
|
80
|
+
), showView && /* @__PURE__ */ import_react.default.createElement(
|
|
81
|
+
"span",
|
|
82
|
+
{
|
|
83
|
+
className: "pisell-action-item pisell-action-view",
|
|
84
|
+
onClick: onViewClick
|
|
85
|
+
},
|
|
86
|
+
view
|
|
87
|
+
))),
|
|
88
|
+
type,
|
|
89
|
+
showIcon,
|
|
90
|
+
closable,
|
|
91
|
+
className: (0, import_classnames.default)(className, "pisell-alert-wrap")
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
var pisellAlert_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,48 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellCard/index.tsx
|
|
30
|
+
var pisellCard_exports = {};
|
|
31
|
+
__export(pisellCard_exports, {
|
|
32
|
+
default: () => pisellCard_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellCard_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_index = require("./index.less");
|
|
39
|
+
var PisellCard = (props) => {
|
|
40
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
41
|
+
import_antd.Card,
|
|
42
|
+
{
|
|
43
|
+
...props,
|
|
44
|
+
className: (0, import_classnames.default)("pisell-card-wrap", props.className)
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
var pisellCard_default = PisellCard;
|
|
@@ -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,108 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellCardList/index.tsx
|
|
30
|
+
var pisellCardList_exports = {};
|
|
31
|
+
__export(pisellCardList_exports, {
|
|
32
|
+
default: () => pisellCardList_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellCardList_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_react_infinite_scroll_component = __toESM(require("react-infinite-scroll-component"));
|
|
37
|
+
var import_antd = require("antd");
|
|
38
|
+
var import_pisellCheckboxGroup = __toESM(require("../pisellCheckboxGroup"));
|
|
39
|
+
var import_pisellWalletPassCard = __toESM(require("../pisellWalletPassCard"));
|
|
40
|
+
var import_pisellEmpty = __toESM(require("../pisellEmpty"));
|
|
41
|
+
var PisellCardList = (props) => {
|
|
42
|
+
const {
|
|
43
|
+
data,
|
|
44
|
+
loadMoreData = () => {
|
|
45
|
+
},
|
|
46
|
+
endMessage,
|
|
47
|
+
loader,
|
|
48
|
+
hasMore,
|
|
49
|
+
onChange,
|
|
50
|
+
value,
|
|
51
|
+
mode,
|
|
52
|
+
showName,
|
|
53
|
+
showCode,
|
|
54
|
+
showCover,
|
|
55
|
+
showDetail,
|
|
56
|
+
showBalance,
|
|
57
|
+
showRedeem,
|
|
58
|
+
showQrCode,
|
|
59
|
+
showStoreName,
|
|
60
|
+
showValidDate,
|
|
61
|
+
empty,
|
|
62
|
+
showEmpty,
|
|
63
|
+
showBalanceSymbol
|
|
64
|
+
} = props;
|
|
65
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
66
|
+
import_react_infinite_scroll_component.default,
|
|
67
|
+
{
|
|
68
|
+
dataLength: data.length,
|
|
69
|
+
next: loadMoreData,
|
|
70
|
+
hasMore,
|
|
71
|
+
loader: loader || /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { paragraph: { rows: 3 }, active: true }),
|
|
72
|
+
endMessage,
|
|
73
|
+
scrollableTarget: "scrollableDiv"
|
|
74
|
+
},
|
|
75
|
+
data.length ? /* @__PURE__ */ import_react.default.createElement(
|
|
76
|
+
import_pisellCheckboxGroup.default,
|
|
77
|
+
{
|
|
78
|
+
options: data,
|
|
79
|
+
value,
|
|
80
|
+
mode,
|
|
81
|
+
rowKey: "id",
|
|
82
|
+
gap: 12,
|
|
83
|
+
onChange,
|
|
84
|
+
iconPosition: "hide",
|
|
85
|
+
renderOption: (item, active) => {
|
|
86
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
87
|
+
import_pisellWalletPassCard.default,
|
|
88
|
+
{
|
|
89
|
+
...item,
|
|
90
|
+
active,
|
|
91
|
+
showName: showName || (item == null ? void 0 : item.showName),
|
|
92
|
+
showBalance: showBalance || (item == null ? void 0 : item.showBalance),
|
|
93
|
+
showCode: showCode || (item == null ? void 0 : item.showCode),
|
|
94
|
+
showCover: showCover || (item == null ? void 0 : item.showCover),
|
|
95
|
+
showDetail: showDetail || (item == null ? void 0 : item.showDetail),
|
|
96
|
+
showQrCode: showQrCode || (item == null ? void 0 : item.showQrCode),
|
|
97
|
+
showRedeem: showRedeem || (item == null ? void 0 : item.showRedeem),
|
|
98
|
+
showStoreName: showStoreName || (item == null ? void 0 : item.showStoreName),
|
|
99
|
+
showValidDate: showValidDate || (item == null ? void 0 : item.showValidDate),
|
|
100
|
+
showBalanceSymbol: showBalanceSymbol || (item == null ? void 0 : item.showBalanceSymbol)
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
) : showEmpty && (empty || /* @__PURE__ */ import_react.default.createElement(import_pisellEmpty.default, null))
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
var pisellCardList_default = (0, import_react.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;
|