@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,100 @@
|
|
|
1
|
+
.pisell-wallet-pass-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
|
+
background-size: cover;
|
|
10
|
+
height: 190px;
|
|
11
|
+
.pisell-card-name-wrap {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
line-height: 20px;
|
|
16
|
+
}
|
|
17
|
+
.pisell-card-store-name {
|
|
18
|
+
height: 20px;
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
line-height: 18px; /* 150% */
|
|
22
|
+
margin-bottom: 22px;
|
|
23
|
+
}
|
|
24
|
+
.pisell-card-amount-wrap {
|
|
25
|
+
display: flex;
|
|
26
|
+
margin-bottom: 4px;
|
|
27
|
+
.pisell-card-amount-item {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
margin-right: 16px;
|
|
31
|
+
.pisell-card-amount-item-label {
|
|
32
|
+
color: var(--Gray-500, #667085);
|
|
33
|
+
font-weight: 400;
|
|
34
|
+
line-height: 20px;
|
|
35
|
+
height: 20px;
|
|
36
|
+
}
|
|
37
|
+
.pisell-card-amount-item-value {
|
|
38
|
+
font-size: 20px;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
line-height: 30px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.pisell-card-code-wrap {
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: space-between;
|
|
47
|
+
position: relative;
|
|
48
|
+
.pisell-card-code {
|
|
49
|
+
line-height: 20px;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
gap: 2px;
|
|
53
|
+
}
|
|
54
|
+
.pisell-card-qr-code {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: -16px;
|
|
57
|
+
right: -6px;
|
|
58
|
+
.pisell-lowcode-qrcode-wrap {
|
|
59
|
+
.pisell-lowcode-qrcode {
|
|
60
|
+
background: rgba(255,255,255,0.8) !important;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.pisell-lowcode-qrcode {
|
|
66
|
+
padding: 6px;
|
|
67
|
+
}
|
|
68
|
+
.pisell-card-warn-message {
|
|
69
|
+
position: absolute;
|
|
70
|
+
bottom: 0;
|
|
71
|
+
width: 100%;
|
|
72
|
+
left: 0;
|
|
73
|
+
background: var(--Warning-200, #FEDF89);
|
|
74
|
+
display: flex;
|
|
75
|
+
padding: 10px 16px;
|
|
76
|
+
color: var(--Gray-900, #101828);
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
line-height: 20px;
|
|
79
|
+
.pisell-card-icon {
|
|
80
|
+
font-size: 20px;
|
|
81
|
+
color: #DC6803;
|
|
82
|
+
margin-right: 6px;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
.pisell-card-disabled {
|
|
87
|
+
color: var(--Gray-500, #667085);
|
|
88
|
+
padding-bottom: 36px;
|
|
89
|
+
.pisell-card-amount-wrap {
|
|
90
|
+
.pisell-card-amount-item {
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
align-items: center;
|
|
93
|
+
.pisell-card-amount-item-value {
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
font-weight: 400;
|
|
96
|
+
line-height: 20px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { useEffect } from "react";
|
|
8
|
+
var useCssVariables = function useCssVariables(props) {
|
|
9
|
+
var variables = props.variables,
|
|
10
|
+
ref = props.ref;
|
|
11
|
+
useEffect(function () {
|
|
12
|
+
if (!ref) return;
|
|
13
|
+
Object.entries(variables).forEach(function (_ref) {
|
|
14
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
15
|
+
key = _ref2[0],
|
|
16
|
+
value = _ref2[1];
|
|
17
|
+
ref.current.style.setProperty(key, value);
|
|
18
|
+
});
|
|
19
|
+
}, [variables, ref]);
|
|
20
|
+
};
|
|
21
|
+
export default useCssVariables;
|
package/es/index.d.ts
CHANGED
|
@@ -79,3 +79,26 @@ export { default as SelectTime } from './components/select-time';
|
|
|
79
79
|
export { default as AutoCompleteNumber } from './components/auto-complete-number';
|
|
80
80
|
export { default as BatchEditor } from './components/batch-editor';
|
|
81
81
|
export { default as DragSortTree } from './components/drag-sort-tree';
|
|
82
|
+
export { default as PisellModal } from './components/pisellModal';
|
|
83
|
+
export { default as PisellRow } from './components/pisellRow';
|
|
84
|
+
export { default as PisellConfigProvider } from './components/pisell-config-provider';
|
|
85
|
+
export { default as PisellCountdown } from './components/pisellCountdown';
|
|
86
|
+
export { default as PisellInput } from './components/pisellInput';
|
|
87
|
+
export { getBankCardTypeImg } from './components/pisellInput/components/BankCard/utils';
|
|
88
|
+
export { default as PisellCheckboxGroup } from './components/pisellCheckboxGroup';
|
|
89
|
+
export { default as PisellDatePicker } from './components/pisellDatePicker';
|
|
90
|
+
export { default as PisellTooltip } from './components/pisellTooltip';
|
|
91
|
+
export { default as PisellEmpty } from './components/pisellEmpty';
|
|
92
|
+
export { default as Iconfont } from './components/iconfont';
|
|
93
|
+
export { default as PisellContainer } from './components/pisellContainer';
|
|
94
|
+
export { default as PisellText } from './components/pisellText';
|
|
95
|
+
export { default as PisellLoading } from './components/pisellLoading';
|
|
96
|
+
export { default as PisellCardList } from './components/pisellCardList';
|
|
97
|
+
export { default as PisellToast } from './components/pisellToast';
|
|
98
|
+
export { default as PisellWalletPassCard } from './components/pisellWalletPassCard';
|
|
99
|
+
export { default as PisellScan } from './components/pisellScan';
|
|
100
|
+
export { default as PisellAlert } from './components/pisellAlert';
|
|
101
|
+
export { default as PisellCard } from './components/pisellCard';
|
|
102
|
+
export { default as PisellInformationEntry } from './components/pisellInformationEntry';
|
|
103
|
+
export { default as usePisellConfig } from './components/pisell-config-provider/hooks/usePisellConfig';
|
|
104
|
+
export { globalConfig, default as PisellContext } from './components/pisell-config-provider/context';
|
package/es/index.js
CHANGED
|
@@ -98,4 +98,29 @@ export { default as VirtualKeyboardTime } from "./components/virtual-keyboard/Ti
|
|
|
98
98
|
export { default as SelectTime } from "./components/select-time";
|
|
99
99
|
export { default as AutoCompleteNumber } from "./components/auto-complete-number";
|
|
100
100
|
export { default as BatchEditor } from "./components/batch-editor";
|
|
101
|
-
export { default as DragSortTree } from "./components/drag-sort-tree";
|
|
101
|
+
export { default as DragSortTree } from "./components/drag-sort-tree";
|
|
102
|
+
export { default as PisellModal } from "./components/pisellModal";
|
|
103
|
+
export { default as PisellRow } from "./components/pisellRow";
|
|
104
|
+
export { default as PisellConfigProvider } from "./components/pisell-config-provider";
|
|
105
|
+
export { default as PisellCountdown } from "./components/pisellCountdown";
|
|
106
|
+
export { default as PisellInput } from "./components/pisellInput";
|
|
107
|
+
export { getBankCardTypeImg } from "./components/pisellInput/components/BankCard/utils";
|
|
108
|
+
export { default as PisellCheckboxGroup } from "./components/pisellCheckboxGroup";
|
|
109
|
+
export { default as PisellDatePicker } from "./components/pisellDatePicker";
|
|
110
|
+
|
|
111
|
+
// export { default as InformationModal } from './components/pisellModal/components/Information';
|
|
112
|
+
export { default as PisellTooltip } from "./components/pisellTooltip";
|
|
113
|
+
export { default as PisellEmpty } from "./components/pisellEmpty";
|
|
114
|
+
export { default as Iconfont } from "./components/iconfont";
|
|
115
|
+
export { default as PisellContainer } from "./components/pisellContainer";
|
|
116
|
+
export { default as PisellText } from "./components/pisellText";
|
|
117
|
+
export { default as PisellLoading } from "./components/pisellLoading";
|
|
118
|
+
export { default as PisellCardList } from "./components/pisellCardList";
|
|
119
|
+
export { default as PisellToast } from "./components/pisellToast";
|
|
120
|
+
export { default as PisellWalletPassCard } from "./components/pisellWalletPassCard";
|
|
121
|
+
export { default as PisellScan } from "./components/pisellScan";
|
|
122
|
+
export { default as PisellAlert } from "./components/pisellAlert";
|
|
123
|
+
export { default as PisellCard } from "./components/pisellCard";
|
|
124
|
+
export { default as PisellInformationEntry } from "./components/pisellInformationEntry";
|
|
125
|
+
export { default as usePisellConfig } from "./components/pisell-config-provider/hooks/usePisellConfig";
|
|
126
|
+
export { globalConfig, default as PisellContext } from "./components/pisell-config-provider/context";
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -97,5 +97,14 @@ declare const _default: {
|
|
|
97
97
|
'table-action-export-import-log-copy': string;
|
|
98
98
|
'table-action-export-import-table-success-copy': string;
|
|
99
99
|
'drag-sort-tree-unavailable-today-tip': string;
|
|
100
|
+
'pisell-input-copy-success': string;
|
|
101
|
+
'pisell-input-copy': string;
|
|
102
|
+
'pisell-empty-description-no-data': string;
|
|
103
|
+
'pisell-information-entry-input-search': string;
|
|
104
|
+
'pisell-information-entry-scan-exit': string;
|
|
105
|
+
'pisell-wallet-pass-card-detail': string;
|
|
106
|
+
'pisell-wallet-pass-card-redeem': string;
|
|
107
|
+
'pisell-wallet-pass-card-balance': string;
|
|
108
|
+
'pisell-wallet-pass-card-valid-to': string;
|
|
100
109
|
};
|
|
101
110
|
export default _default;
|
package/es/locales/en-US.js
CHANGED
|
@@ -118,5 +118,17 @@ export default {
|
|
|
118
118
|
'table-action-export-import-log-err-log': 'Failure Log',
|
|
119
119
|
'table-action-export-import-log-copy': 'Copy',
|
|
120
120
|
'table-action-export-import-table-success-copy': 'Copy Success',
|
|
121
|
-
'drag-sort-tree-unavailable-today-tip': 'Unavailable today'
|
|
121
|
+
'drag-sort-tree-unavailable-today-tip': 'Unavailable today',
|
|
122
|
+
'pisell-input-copy-success': 'Copy Success',
|
|
123
|
+
'pisell-input-copy': 'Copy',
|
|
124
|
+
// 空状态
|
|
125
|
+
'pisell-empty-description-no-data': 'No Data',
|
|
126
|
+
// 信息录入组件
|
|
127
|
+
'pisell-information-entry-input-search': 'Search',
|
|
128
|
+
'pisell-information-entry-scan-exit': 'Exit',
|
|
129
|
+
// 钱包卡片组件
|
|
130
|
+
'pisell-wallet-pass-card-detail': 'Detail',
|
|
131
|
+
'pisell-wallet-pass-card-redeem': 'Redeem',
|
|
132
|
+
'pisell-wallet-pass-card-balance': 'Balance',
|
|
133
|
+
'pisell-wallet-pass-card-valid-to': 'Valid to'
|
|
122
134
|
};
|
package/es/locales/index.js
CHANGED
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -97,5 +97,14 @@ declare const _default: {
|
|
|
97
97
|
'table-action-export-import-log-copy': string;
|
|
98
98
|
'table-action-export-import-table-success-copy': string;
|
|
99
99
|
'drag-sort-tree-unavailable-today-tip': string;
|
|
100
|
+
'pisell-input-copy-success': string;
|
|
101
|
+
'pisell-input-copy': string;
|
|
102
|
+
'pisell-empty-description-no-data': string;
|
|
103
|
+
'pisell-information-entry-input-search': string;
|
|
104
|
+
'pisell-information-entry-scan-exit': string;
|
|
105
|
+
'pisell-wallet-pass-card-detail': string;
|
|
106
|
+
'pisell-wallet-pass-card-redeem': string;
|
|
107
|
+
'pisell-wallet-pass-card-balance': string;
|
|
108
|
+
'pisell-wallet-pass-card-valid-to': string;
|
|
100
109
|
};
|
|
101
110
|
export default _default;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -118,5 +118,17 @@ export default {
|
|
|
118
118
|
'table-action-export-import-log-err-log': '失败日志',
|
|
119
119
|
'table-action-export-import-log-copy': '复制',
|
|
120
120
|
'table-action-export-import-table-success-copy': '复制成功',
|
|
121
|
-
'drag-sort-tree-unavailable-today-tip': '今日不可用'
|
|
121
|
+
'drag-sort-tree-unavailable-today-tip': '今日不可用',
|
|
122
|
+
'pisell-input-copy-success': '复制成功',
|
|
123
|
+
'pisell-input-copy': '复制',
|
|
124
|
+
// 空状态
|
|
125
|
+
'pisell-empty-description-no-data': '暂无数据',
|
|
126
|
+
// 信息录入组件
|
|
127
|
+
'pisell-information-entry-input-search': '搜索',
|
|
128
|
+
'pisell-information-entry-scan-exit': '退出',
|
|
129
|
+
// 钱包卡片组件
|
|
130
|
+
'pisell-wallet-pass-card-detail': '详情',
|
|
131
|
+
'pisell-wallet-pass-card-redeem': '兑换',
|
|
132
|
+
'pisell-wallet-pass-card-balance': '余额',
|
|
133
|
+
'pisell-wallet-pass-card-valid-to': '有效期至'
|
|
122
134
|
};
|
package/es/locales/zh-TW.d.ts
CHANGED
|
@@ -97,5 +97,14 @@ declare const _default: {
|
|
|
97
97
|
'table-action-export-import-log-copy': string;
|
|
98
98
|
'table-action-export-import-table-success-copy': string;
|
|
99
99
|
'drag-sort-tree-unavailable-today-tip': string;
|
|
100
|
+
'pisell-input-copy-success': string;
|
|
101
|
+
'pisell-input-copy': string;
|
|
102
|
+
'pisell-empty-description-no-data': string;
|
|
103
|
+
'pisell-information-entry-input-search': string;
|
|
104
|
+
'pisell-information-entry-scan-exit': string;
|
|
105
|
+
'pisell-wallet-pass-card-detail': string;
|
|
106
|
+
'pisell-wallet-pass-card-redeem': string;
|
|
107
|
+
'pisell-wallet-pass-card-balance': string;
|
|
108
|
+
'pisell-wallet-pass-card-valid-to': string;
|
|
100
109
|
};
|
|
101
110
|
export default _default;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -118,5 +118,17 @@ export default {
|
|
|
118
118
|
'table-action-export-import-log-err-log': '失敗日誌',
|
|
119
119
|
'table-action-export-import-log-copy': '復製',
|
|
120
120
|
'table-action-export-import-table-success-copy': '復製成功',
|
|
121
|
-
'drag-sort-tree-unavailable-today-tip': '今日不可用'
|
|
121
|
+
'drag-sort-tree-unavailable-today-tip': '今日不可用',
|
|
122
|
+
'pisell-input-copy-success': '復製成功',
|
|
123
|
+
'pisell-input-copy': '復製',
|
|
124
|
+
// 空状态
|
|
125
|
+
'pisell-empty-description-no-data': '暫無數據',
|
|
126
|
+
// 信息录入组件
|
|
127
|
+
'pisell-information-entry-input-search': '搜索',
|
|
128
|
+
'pisell-information-entry-scan-exit': '退出',
|
|
129
|
+
// 钱包卡片组件
|
|
130
|
+
'pisell-wallet-pass-card-detail': '詳情',
|
|
131
|
+
'pisell-wallet-pass-card-redeem': '兌換',
|
|
132
|
+
'pisell-wallet-pass-card-balance': '餘額',
|
|
133
|
+
'pisell-wallet-pass-card-valid-to': '有效期至'
|
|
122
134
|
};
|
package/es/utils/index.d.ts
CHANGED
package/es/utils/index.js
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { isNumber, isString } from '@pisell/utils';
|
|
2
|
+
export var isBrowser = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
3
|
+
export var getCssNumber = function getCssNumber(val) {
|
|
4
|
+
if (isNumber(val)) {
|
|
5
|
+
return "".concat(val, "px");
|
|
6
|
+
} else if (isString(val)) {
|
|
7
|
+
var trimVal = val.trim();
|
|
8
|
+
if (!Number.isNaN(Number(trimVal))) {
|
|
9
|
+
return "".concat(val, "px");
|
|
10
|
+
}
|
|
11
|
+
return val;
|
|
12
|
+
} else {
|
|
13
|
+
return val;
|
|
14
|
+
}
|
|
15
|
+
};
|
package/es/utils/locale.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { globalConfig } from "../components/pisell-config-provider/context";
|
|
1
2
|
export var getCurrentLocale = function getCurrentLocale() {
|
|
2
|
-
var locale = localStorage.getItem('umi_locale') || 'en-US';
|
|
3
|
+
var locale = globalConfig.getConfig().locale || localStorage.getItem('umi_locale') || 'en-US';
|
|
3
4
|
//@ts-ignore
|
|
4
5
|
return locale;
|
|
5
6
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ButtonProps as OriginalButtonProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps as OriginalButtonProps } from 'antd';
|
|
3
3
|
export interface ButtonProps extends OriginalButtonProps {
|
|
4
|
-
__designMode?:
|
|
4
|
+
__designMode?: 'design' | undefined;
|
|
5
5
|
href?: string;
|
|
6
|
+
rightIcon?: React.ReactNode;
|
|
6
7
|
}
|
|
7
8
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<any>>;
|
|
8
9
|
export default Button;
|
|
@@ -34,14 +34,18 @@ __export(button_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(button_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_antd = require("antd");
|
|
37
|
-
var Button = (0, import_react.forwardRef)(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
innerProps.href = void 0;
|
|
43
|
-
}
|
|
44
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { ...props, ...innerProps, ref });
|
|
37
|
+
var Button = (0, import_react.forwardRef)((props, ref) => {
|
|
38
|
+
var _a;
|
|
39
|
+
const innerProps = {};
|
|
40
|
+
if (!((_a = props.href) == null ? void 0 : _a.trim()) || props.__designMode === "design") {
|
|
41
|
+
innerProps.href = void 0;
|
|
45
42
|
}
|
|
46
|
-
)
|
|
43
|
+
const _children = (0, import_react.useMemo)(() => {
|
|
44
|
+
if (props.rightIcon) {
|
|
45
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("span", { style: { marginRight: 8 } }, " ", props.children), props.rightIcon);
|
|
46
|
+
}
|
|
47
|
+
return props.children;
|
|
48
|
+
}, [props.children, props.rightIcon]);
|
|
49
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { ...props, ...innerProps, ref, children: _children });
|
|
50
|
+
});
|
|
47
51
|
var button_default = Button;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
interface IconFontProps extends
|
|
3
|
+
interface IconFontProps extends IconComponentProps {
|
|
3
4
|
type: string;
|
|
4
5
|
}
|
|
5
6
|
declare const IconFont: React.FC<IconFontProps>;
|
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
|
|
|
35
35
|
var import_icons = require("@ant-design/icons");
|
|
36
36
|
var import_react = __toESM(require("react"));
|
|
37
37
|
var MyIcon = (0, import_icons.createFromIconfontCN)({
|
|
38
|
-
scriptUrl: "https://at.alicdn.com/t/c/
|
|
38
|
+
scriptUrl: "https://at.alicdn.com/t/c/font_4075221_cy8sszjz7t7.js"
|
|
39
39
|
// 在 iconfont.cn 上生成
|
|
40
40
|
});
|
|
41
41
|
var IconFont = (props) => {
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { ConfigProviderProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConfigProviderProps } from '../config-provider';
|
|
3
3
|
interface PageProps extends ConfigProviderProps {
|
|
4
4
|
}
|
|
5
5
|
declare const Page: (props: PageProps) => React.JSX.Element;
|