@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,143 @@
|
|
|
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/pisellModal/components/PcModal/index.tsx
|
|
30
|
+
var PcModal_exports = {};
|
|
31
|
+
__export(PcModal_exports, {
|
|
32
|
+
default: () => PcModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(PcModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_XClose = __toESM(require("@pisell/icon/es/XClose"));
|
|
40
|
+
var import_Delete_wght300_24px = __toESM(require("@pisell/icon/src/Delete_wght300_24px"));
|
|
41
|
+
var import_modal = __toESM(require("../../../modal"));
|
|
42
|
+
var import_constants = require("../../constants");
|
|
43
|
+
var import_index = require("./index.less");
|
|
44
|
+
var PcModal = (props) => {
|
|
45
|
+
const {
|
|
46
|
+
wrapClassName,
|
|
47
|
+
okButtonProps,
|
|
48
|
+
cancelButtonProps,
|
|
49
|
+
width: propsWidth,
|
|
50
|
+
size = "middle",
|
|
51
|
+
closeIcon: propsCloseIcon,
|
|
52
|
+
headerDivider,
|
|
53
|
+
footerDivider,
|
|
54
|
+
title,
|
|
55
|
+
centered = true,
|
|
56
|
+
deleteButtonProps,
|
|
57
|
+
onDelete,
|
|
58
|
+
cancelVisible = true,
|
|
59
|
+
okVisible = true,
|
|
60
|
+
actions,
|
|
61
|
+
footer,
|
|
62
|
+
header
|
|
63
|
+
} = props;
|
|
64
|
+
const width = (0, import_react.useMemo)(() => {
|
|
65
|
+
return propsWidth || import_constants.sizeMap[size];
|
|
66
|
+
}, [propsWidth, size]);
|
|
67
|
+
const closeIcon = (0, import_react.useMemo)(() => {
|
|
68
|
+
if ((0, import_utils.isUndefined)(propsCloseIcon)) {
|
|
69
|
+
return /* @__PURE__ */ import_react.default.createElement(import_XClose.default, { style: { fontSize: 20 } });
|
|
70
|
+
}
|
|
71
|
+
}, [propsCloseIcon]);
|
|
72
|
+
const deleteBtn = (0, import_react.useMemo)(() => {
|
|
73
|
+
if (!deleteButtonProps) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return /* @__PURE__ */ import_react.default.createElement("span", { style: { flexShrink: 0 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
77
|
+
import_antd.Button,
|
|
78
|
+
{
|
|
79
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_Delete_wght300_24px.default, { style: { fontSize: 20 } }),
|
|
80
|
+
size: "large",
|
|
81
|
+
...deleteButtonProps,
|
|
82
|
+
onClick: (e) => {
|
|
83
|
+
var _a;
|
|
84
|
+
(_a = deleteButtonProps == null ? void 0 : deleteButtonProps.onClick) == null ? void 0 : _a.call(deleteButtonProps, e);
|
|
85
|
+
onDelete == null ? void 0 : onDelete();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
));
|
|
89
|
+
}, [deleteButtonProps]);
|
|
90
|
+
const isHideFooter = (0, import_react.useMemo)(() => {
|
|
91
|
+
return (0, import_utils.isBoolean)(footer) && !footer || footer === null;
|
|
92
|
+
}, [footer]);
|
|
93
|
+
const isHideHeader = (0, import_react.useMemo)(() => {
|
|
94
|
+
return (0, import_utils.isBoolean)(header) && !header || header === null;
|
|
95
|
+
}, [header]);
|
|
96
|
+
const renderFooter = (_, { OkBtn, CancelBtn }) => {
|
|
97
|
+
if (footer) {
|
|
98
|
+
return footer;
|
|
99
|
+
}
|
|
100
|
+
if ([deleteBtn, actions, cancelVisible, okVisible].every((item) => !item)) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, deleteBtn, actions, cancelVisible && /* @__PURE__ */ import_react.default.createElement(CancelBtn, null), okVisible && /* @__PURE__ */ import_react.default.createElement(OkBtn, null));
|
|
104
|
+
};
|
|
105
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
106
|
+
import_modal.default,
|
|
107
|
+
{
|
|
108
|
+
keyboard: false,
|
|
109
|
+
...props,
|
|
110
|
+
centered,
|
|
111
|
+
title: title || /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 24 } }),
|
|
112
|
+
width,
|
|
113
|
+
wrapClassName: (0, import_classnames.default)("pisell-pc-modal", {
|
|
114
|
+
[wrapClassName]: wrapClassName
|
|
115
|
+
}),
|
|
116
|
+
closeIcon,
|
|
117
|
+
footer: isHideFooter ? null : renderFooter,
|
|
118
|
+
okButtonProps: {
|
|
119
|
+
block: true,
|
|
120
|
+
size: "large",
|
|
121
|
+
style: {
|
|
122
|
+
margin: 0
|
|
123
|
+
},
|
|
124
|
+
...okButtonProps || {}
|
|
125
|
+
},
|
|
126
|
+
cancelButtonProps: {
|
|
127
|
+
block: true,
|
|
128
|
+
size: "large",
|
|
129
|
+
...cancelButtonProps || {}
|
|
130
|
+
},
|
|
131
|
+
styles: {
|
|
132
|
+
header: {
|
|
133
|
+
borderBottom: headerDivider ? "1px solid var(--Gray-200, #EAECF0)" : "none",
|
|
134
|
+
display: isHideHeader ? "none" : "block"
|
|
135
|
+
},
|
|
136
|
+
footer: {
|
|
137
|
+
borderTop: footerDivider ? "1px solid var(--Gray-200, #EAECF0)" : "none"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
};
|
|
143
|
+
var PcModal_default = PcModal;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.pisell-lowcode-modal-root {
|
|
2
|
+
.pisell-pc-modal {
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
.pisell-lowcode-modal-content {
|
|
5
|
+
padding: 0 !important;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
max-height: 90vh;
|
|
9
|
+
min-height: 260px;
|
|
10
|
+
.pisell-lowcode-modal-close {
|
|
11
|
+
top: 8px;
|
|
12
|
+
right: 16px;
|
|
13
|
+
padding: 10px;
|
|
14
|
+
box-sizing: content-box;
|
|
15
|
+
width: 24px;
|
|
16
|
+
height: 24px;
|
|
17
|
+
}
|
|
18
|
+
.pisell-lowcode-modal-header {
|
|
19
|
+
padding: 16px 24px;
|
|
20
|
+
border-bottom: 1px solid var(--Gray-200, #EAECF0);
|
|
21
|
+
margin: 0;
|
|
22
|
+
.pisell-lowcode-modal-title {
|
|
23
|
+
color: var(--Gray-900, #101828);
|
|
24
|
+
font-size: 18px;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
line-height: 24px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.pisell-lowcode-modal-body {
|
|
31
|
+
padding: 0 24px;
|
|
32
|
+
overflow: auto;
|
|
33
|
+
flex: 1;
|
|
34
|
+
}
|
|
35
|
+
.pisell-lowcode-modal-footer {
|
|
36
|
+
display: flex;
|
|
37
|
+
gap: 12px;
|
|
38
|
+
border-top: 1px solid var(--Gray-200, #EAECF0);
|
|
39
|
+
padding: 24px;
|
|
40
|
+
margin: 0;
|
|
41
|
+
.pisell-lowcode-btn-icon {
|
|
42
|
+
width: auto !important;
|
|
43
|
+
}
|
|
44
|
+
.pisell-lowcode-btn {
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@keyframes pisellMoveDownIn {
|
|
53
|
+
0% {
|
|
54
|
+
transform: translateY(100%);
|
|
55
|
+
transform-origin: 0 0;
|
|
56
|
+
opacity: 0;
|
|
57
|
+
}
|
|
58
|
+
100% {
|
|
59
|
+
transform: translateY(0%);
|
|
60
|
+
transform-origin: 0 0;
|
|
61
|
+
opacity: 1;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
@keyframes pisellMoveDownOut {
|
|
65
|
+
0% {
|
|
66
|
+
transform: translateY(0%);
|
|
67
|
+
transform-origin: 0 0;
|
|
68
|
+
opacity: 1;
|
|
69
|
+
}
|
|
70
|
+
100% {
|
|
71
|
+
transform: translateY(100%);
|
|
72
|
+
transform-origin: 0 0;
|
|
73
|
+
opacity: 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.pisell-move-down-enter,
|
|
78
|
+
.pisell-move-down-appear {
|
|
79
|
+
animation-duration: 0.2s;
|
|
80
|
+
animation-fill-mode: both;
|
|
81
|
+
animation-play-state: paused;
|
|
82
|
+
}
|
|
83
|
+
.pisell-move-down-leave {
|
|
84
|
+
animation-duration: 0.2s;
|
|
85
|
+
animation-fill-mode: both;
|
|
86
|
+
animation-play-state: paused;
|
|
87
|
+
}
|
|
88
|
+
.pisell-move-down-enter.pisell-move-down-enter-active,
|
|
89
|
+
.pisell-move-down-appear.pisell-move-down-appear-active {
|
|
90
|
+
animation-name: pisellMoveDownIn;
|
|
91
|
+
animation-play-state: running;
|
|
92
|
+
}
|
|
93
|
+
.pisell-move-down-leave.pisell-move-down-leave-active {
|
|
94
|
+
animation-name: pisellMoveDownOut;
|
|
95
|
+
animation-play-state: running;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
.pisell-move-down-enter,
|
|
99
|
+
.pisell-move-down-appear {
|
|
100
|
+
opacity: 0;
|
|
101
|
+
animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
|
|
102
|
+
}
|
|
103
|
+
.pisell-move-down-leave {
|
|
104
|
+
animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
|
|
105
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ModalFuncProps } from 'antd';
|
|
2
|
+
import { PisellContextType } from '../../../pisell-config-provider/context';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface PisellModalFuncProps extends ModalFuncProps {
|
|
5
|
+
platform?: PisellContextType['platform'];
|
|
6
|
+
}
|
|
7
|
+
export declare const info: (props: PisellModalFuncProps) => any;
|
|
8
|
+
export declare const success: (props: PisellModalFuncProps) => any;
|
|
9
|
+
export declare const error: (props: PisellModalFuncProps) => any;
|
|
10
|
+
export declare const warning: (props: PisellModalFuncProps) => any;
|
|
11
|
+
export declare const warn: (props: PisellModalFuncProps) => any;
|
|
12
|
+
export declare const confirm: (props: PisellModalFuncProps) => any;
|
|
@@ -0,0 +1,90 @@
|
|
|
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/pisellModal/components/functions/index.tsx
|
|
30
|
+
var functions_exports = {};
|
|
31
|
+
__export(functions_exports, {
|
|
32
|
+
confirm: () => confirm,
|
|
33
|
+
error: () => error,
|
|
34
|
+
info: () => info,
|
|
35
|
+
success: () => success,
|
|
36
|
+
warn: () => warn,
|
|
37
|
+
warning: () => warning
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(functions_exports);
|
|
40
|
+
var import_modal = __toESM(require("../../../modal"));
|
|
41
|
+
var import_classnames = __toESM(require("classnames"));
|
|
42
|
+
var import_context = require("../../../pisell-config-provider/context");
|
|
43
|
+
var import_index = require("./index.less");
|
|
44
|
+
var genConfig = (props) => {
|
|
45
|
+
const { platform } = import_context.globalConfig.getConfig();
|
|
46
|
+
return {
|
|
47
|
+
...props,
|
|
48
|
+
wrapClassName: (0, import_classnames.default)("pisell-modal-function-wrap", {
|
|
49
|
+
["pisell-modal-mobile-function-wrap"]: platform === "h5"
|
|
50
|
+
}),
|
|
51
|
+
cancelButtonProps: {
|
|
52
|
+
block: true,
|
|
53
|
+
size: "large",
|
|
54
|
+
...props.cancelButtonProps || {}
|
|
55
|
+
},
|
|
56
|
+
okButtonProps: {
|
|
57
|
+
block: true,
|
|
58
|
+
size: "large",
|
|
59
|
+
...props.okButtonProps || {}
|
|
60
|
+
},
|
|
61
|
+
icon: null
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
var info = (props) => {
|
|
65
|
+
return import_modal.default.info(genConfig(props));
|
|
66
|
+
};
|
|
67
|
+
var success = (props) => {
|
|
68
|
+
return import_modal.default.success(genConfig(props));
|
|
69
|
+
};
|
|
70
|
+
var error = (props) => {
|
|
71
|
+
return import_modal.default.error(genConfig(props));
|
|
72
|
+
};
|
|
73
|
+
var warning = (props) => {
|
|
74
|
+
return import_modal.default.warning(genConfig(props));
|
|
75
|
+
};
|
|
76
|
+
var warn = (props) => {
|
|
77
|
+
return import_modal.default.warn(genConfig(props));
|
|
78
|
+
};
|
|
79
|
+
var confirm = (props) => {
|
|
80
|
+
return import_modal.default.confirm(genConfig(props));
|
|
81
|
+
};
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
confirm,
|
|
85
|
+
error,
|
|
86
|
+
info,
|
|
87
|
+
success,
|
|
88
|
+
warn,
|
|
89
|
+
warning
|
|
90
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.pisell-lowcode-modal-root {
|
|
2
|
+
.pisell-modal-function-wrap {
|
|
3
|
+
.pisell-lowcode-modal-confirm-btns {
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: 12px;
|
|
6
|
+
button {
|
|
7
|
+
margin: 0 !important;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
.pisell-modal-mobile-function-wrap {
|
|
12
|
+
.pisell-lowcode-modal {
|
|
13
|
+
width: 100% !important;
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
position: absolute;
|
|
18
|
+
bottom: 0;
|
|
19
|
+
top: auto;
|
|
20
|
+
.pisell-lowcode-modal-content {
|
|
21
|
+
border-radius: 12px 12px 0 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import IpadModal from './IpadModal';
|
|
3
|
+
import MobileModal from './MobileModal';
|
|
4
|
+
import PcModal from './PcModal';
|
|
5
|
+
declare const platformCpt: {
|
|
6
|
+
h5: (props: import("./MobileModal").MobileModalProps) => import("react").JSX.Element;
|
|
7
|
+
pc: (props: import("./PcModal").PcModalProps) => import("react").JSX.Element;
|
|
8
|
+
ipad: (props: import("./IpadModal").IpadModalProps) => import("react").JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export { IpadModal, MobileModal, PcModal, platformCpt };
|
|
@@ -0,0 +1,52 @@
|
|
|
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/pisellModal/components/index.ts
|
|
30
|
+
var components_exports = {};
|
|
31
|
+
__export(components_exports, {
|
|
32
|
+
IpadModal: () => import_IpadModal.default,
|
|
33
|
+
MobileModal: () => import_MobileModal.default,
|
|
34
|
+
PcModal: () => import_PcModal.default,
|
|
35
|
+
platformCpt: () => platformCpt
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(components_exports);
|
|
38
|
+
var import_IpadModal = __toESM(require("./IpadModal"));
|
|
39
|
+
var import_MobileModal = __toESM(require("./MobileModal"));
|
|
40
|
+
var import_PcModal = __toESM(require("./PcModal"));
|
|
41
|
+
var platformCpt = {
|
|
42
|
+
h5: import_MobileModal.default,
|
|
43
|
+
pc: import_PcModal.default,
|
|
44
|
+
ipad: import_IpadModal.default
|
|
45
|
+
};
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
IpadModal,
|
|
49
|
+
MobileModal,
|
|
50
|
+
PcModal,
|
|
51
|
+
platformCpt
|
|
52
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
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/pisellModal/constants.ts
|
|
20
|
+
var constants_exports = {};
|
|
21
|
+
__export(constants_exports, {
|
|
22
|
+
sizeMap: () => sizeMap
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(constants_exports);
|
|
25
|
+
var sizeMap = {
|
|
26
|
+
large: 800,
|
|
27
|
+
middle: 480,
|
|
28
|
+
small: 400
|
|
29
|
+
};
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
sizeMap
|
|
33
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModalProps, ButtonProps } from 'antd';
|
|
3
|
+
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
|
+
export interface PisellModalProps extends ModalProps {
|
|
5
|
+
/** 平台 */
|
|
6
|
+
platform?: PisellContextType['platform'];
|
|
7
|
+
/**
|
|
8
|
+
* 弹窗大小
|
|
9
|
+
* large 800
|
|
10
|
+
* middle 600
|
|
11
|
+
* small 400
|
|
12
|
+
* */
|
|
13
|
+
size?: 'large' | 'middle' | 'small';
|
|
14
|
+
/** 头部分割线是否展示 */
|
|
15
|
+
headerDivider?: boolean;
|
|
16
|
+
/** 底部分割线是否展示 */
|
|
17
|
+
footerDivider?: boolean;
|
|
18
|
+
/** 删除按钮props */
|
|
19
|
+
deleteButtonProps?: ButtonProps | null;
|
|
20
|
+
/** 删除事件 */
|
|
21
|
+
onDelete?: () => void;
|
|
22
|
+
/** 移动端展示时弹窗高度 默认null 在移动端全屏 */
|
|
23
|
+
mobileModalHeight?: string | number;
|
|
24
|
+
/** footer中额外操作按钮 */
|
|
25
|
+
actions?: React.ReactNode;
|
|
26
|
+
/** 取消按钮是否展示 */
|
|
27
|
+
cancelVisible?: boolean;
|
|
28
|
+
/** 确认按钮是否展示 */
|
|
29
|
+
okVisible?: boolean;
|
|
30
|
+
/** 是否展示header */
|
|
31
|
+
header?: boolean | null;
|
|
32
|
+
}
|
|
33
|
+
declare const PisellModal: {
|
|
34
|
+
(props: PisellModalProps): React.JSX.Element;
|
|
35
|
+
confirm: (props: import("./components/functions").PisellModalFuncProps) => any;
|
|
36
|
+
info: (props: import("./components/functions").PisellModalFuncProps) => any;
|
|
37
|
+
error: (props: import("./components/functions").PisellModalFuncProps) => any;
|
|
38
|
+
warn: (props: import("./components/functions").PisellModalFuncProps) => any;
|
|
39
|
+
warning: (props: import("./components/functions").PisellModalFuncProps) => any;
|
|
40
|
+
success: (props: import("./components/functions").PisellModalFuncProps) => any;
|
|
41
|
+
Information: (props: import("./components/Information").InformationProps) => React.JSX.Element;
|
|
42
|
+
};
|
|
43
|
+
export default PisellModal;
|
|
@@ -0,0 +1,63 @@
|
|
|
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/pisellModal/index.tsx
|
|
30
|
+
var pisellModal_exports = {};
|
|
31
|
+
__export(pisellModal_exports, {
|
|
32
|
+
default: () => pisellModal_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pisellModal_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_usePisellConfig = __toESM(require("../pisell-config-provider/hooks/usePisellConfig"));
|
|
37
|
+
var import_components = require("./components");
|
|
38
|
+
var import_functions = require("./components/functions");
|
|
39
|
+
var import_Information = __toESM(require("./components/Information"));
|
|
40
|
+
var PisellModal = (props) => {
|
|
41
|
+
const { platform, headerDivider = true, footerDivider = true } = props;
|
|
42
|
+
const config = (0, import_usePisellConfig.default)();
|
|
43
|
+
const ModalCpt = import_components.platformCpt[platform || config.platform];
|
|
44
|
+
(0, import_react.useEffect)(() => {
|
|
45
|
+
document.body.id = "body";
|
|
46
|
+
}, []);
|
|
47
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
48
|
+
ModalCpt,
|
|
49
|
+
{
|
|
50
|
+
...props,
|
|
51
|
+
headerDivider,
|
|
52
|
+
footerDivider
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
PisellModal.confirm = import_functions.confirm;
|
|
57
|
+
PisellModal.info = import_functions.info;
|
|
58
|
+
PisellModal.error = import_functions.error;
|
|
59
|
+
PisellModal.warn = import_functions.warn;
|
|
60
|
+
PisellModal.warning = import_functions.warning;
|
|
61
|
+
PisellModal.success = import_functions.success;
|
|
62
|
+
PisellModal.Information = import_Information.default;
|
|
63
|
+
var pisellModal_default = PisellModal;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellContextType } from '../pisell-config-provider/context';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface PisellRowProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
5
|
+
platform?: PisellContextType['platform'];
|
|
6
|
+
gap?: number;
|
|
7
|
+
padding?: number;
|
|
8
|
+
leftContent?: React.ReactNode;
|
|
9
|
+
rightContent?: React.ReactNode;
|
|
10
|
+
centerContent?: React.ReactNode;
|
|
11
|
+
centerContentFill?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @title: Pisell Row
|
|
15
|
+
* @description: 左中右布局组件
|
|
16
|
+
* @param {PisellRowProps} props
|
|
17
|
+
* @return {*}
|
|
18
|
+
* @Author: zhiwei.Wang
|
|
19
|
+
* @Date: 2024-08-16 10:38
|
|
20
|
+
*/
|
|
21
|
+
declare const PisellRow: (props: PisellRowProps) => React.JSX.Element;
|
|
22
|
+
export default PisellRow;
|