@digitalc/dxp-ui 0.0.4 → 0.0.5-alpha-gomo.1
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/README.md +151 -11
- package/es/assets/iconFont/demo.css +539 -0
- package/es/assets/iconFont/demo_index.html +4400 -0
- package/es/assets/iconFont/iconfont.css +22 -6
- package/es/assets/iconFont/iconfont.eot +0 -0
- package/es/assets/iconFont/iconfont.json +28 -0
- package/es/assets/iconFont/iconfont.svg +8 -0
- package/es/assets/iconFont/iconfont.ttf +0 -0
- package/es/assets/iconFont/iconfont.woff +0 -0
- package/es/assets/iconFont/iconfont.woff2 +0 -0
- package/es/assets/react.svg +1 -0
- package/es/assets/token.json +902 -238
- package/es/components/Accordion/designTokens.d.ts +11 -0
- package/es/components/Accordion/designTokens.js +16 -0
- package/es/components/Accordion/index.d.ts +21 -0
- package/es/components/Accordion/index.js +77 -0
- package/es/components/Accordion/style/index.less +14 -0
- package/es/components/Accordion/style/variables.less +4 -0
- package/es/components/Amount/designTokens.d.ts +6 -0
- package/es/components/Amount/designTokens.js +9 -0
- package/es/components/Amount/index.d.ts +23 -0
- package/es/components/Amount/index.js +144 -0
- package/es/components/Amount/style/index.less +10 -0
- package/es/components/Amount/style/variables.less +4 -0
- package/es/components/Button/designTokens.js +6 -7
- package/es/components/Button/index.d.ts +17 -22
- package/es/components/Button/index.js +85 -46
- package/es/components/Button/style/{button.less → index.less} +6 -2
- package/es/components/Chip/designTokens.d.ts +15 -0
- package/es/components/Chip/designTokens.js +22 -0
- package/es/components/Chip/index.d.ts +13 -0
- package/es/components/Chip/index.js +98 -0
- package/es/components/Chip/style/index.less +9 -0
- package/es/components/Chip/style/variables.less +4 -0
- package/es/components/Divider/index.d.ts +16 -0
- package/es/components/Divider/index.js +55 -0
- package/es/components/Divider/style/index.less +78 -0
- package/es/components/Divider/style/variables.less +4 -0
- package/es/components/Drawer/designTokens.d.ts +16 -0
- package/es/components/Drawer/designTokens.js +27 -0
- package/es/components/Drawer/index.d.ts +21 -0
- package/es/components/Drawer/index.js +189 -0
- package/es/components/Drawer/style/index.less +73 -0
- package/es/components/Drawer/style/variables.less +8 -0
- package/es/components/Icon/Icon.d.ts +9 -0
- package/es/components/Icon/Icon.js +18 -0
- package/es/components/Icon/designTokens.d.ts +6 -0
- package/es/components/Icon/designTokens.js +7 -0
- package/es/components/Icon/index.d.ts +12 -0
- package/es/components/Icon/index.js +29 -0
- package/es/components/IconButton/designTokens.d.ts +21 -0
- package/es/components/IconButton/designTokens.js +39 -0
- package/es/components/IconButton/index.d.ts +24 -0
- package/es/components/IconButton/index.js +106 -0
- package/es/components/IconButton/style/index.less +59 -0
- package/es/components/IconButton/style/variables.less +5 -0
- package/es/components/IconButtonGroup/index.d.ts +15 -0
- package/es/components/IconButtonGroup/index.js +22 -0
- package/es/components/Image/index.d.ts +12 -0
- package/es/components/Image/index.js +33 -0
- package/es/components/ListItem/designTokens.d.ts +30 -0
- package/es/components/ListItem/designTokens.js +31 -0
- package/es/components/ListItem/index.d.ts +60 -0
- package/es/components/ListItem/index.js +227 -0
- package/es/components/ListItem/style/index.less +77 -0
- package/es/components/ListItem/style/variables.less +1 -0
- package/es/components/Modal/designTokens.d.ts +31 -0
- package/es/components/Modal/designTokens.js +35 -0
- package/es/components/Modal/index.d.ts +14 -0
- package/es/components/Modal/index.js +101 -0
- package/es/components/Modal/style/index.less +92 -0
- package/es/components/Modal/style/variables.less +5 -0
- package/es/components/Navigation/designTokens.d.ts +16 -0
- package/es/components/Navigation/designTokens.js +19 -0
- package/es/components/Navigation/index.d.ts +31 -0
- package/es/components/Navigation/index.js +110 -0
- package/es/components/Navigation/style/index.less +52 -0
- package/es/components/Navigation/style/variables.less +1 -0
- package/es/components/Search/designTokens.d.ts +34 -0
- package/es/components/Search/designTokens.js +51 -0
- package/es/components/Search/index.d.ts +13 -0
- package/es/components/Search/index.js +85 -0
- package/es/components/Search/style/index.less +32 -0
- package/es/components/Search/style/variables.less +5 -0
- package/es/components/Stepper/designTokens.d.ts +26 -0
- package/es/components/Stepper/designTokens.js +60 -0
- package/es/components/Stepper/index.d.ts +22 -0
- package/es/components/Stepper/index.js +153 -0
- package/es/components/Stepper/style/index.less +140 -0
- package/es/components/Stepper/style/variables.less +5 -0
- package/es/components/StickyFooter/designTokens.d.ts +10 -0
- package/es/components/StickyFooter/designTokens.js +17 -0
- package/es/components/StickyFooter/index.d.ts +17 -0
- package/es/components/StickyFooter/index.js +83 -0
- package/es/components/StickyFooter/style/index.less +18 -0
- package/es/components/StickyFooter/style/variables.less +4 -0
- package/es/components/Tabs/designTokens.d.ts +44 -0
- package/es/components/Tabs/designTokens.js +64 -0
- package/es/components/Tabs/index.d.ts +14 -0
- package/es/components/Tabs/index.js +102 -0
- package/es/components/Tabs/style/index.less +25 -0
- package/es/components/Tabs/style/variables.less +4 -0
- package/es/components/Tag/designTokens.d.ts +90 -0
- package/es/components/Tag/designTokens.js +124 -0
- package/es/components/Tag/index.d.ts +15 -0
- package/es/components/Tag/index.js +85 -0
- package/es/components/Tag/style/index.less +9 -0
- package/es/components/Tag/style/variables.less +4 -0
- package/es/components/Text/designTokens.d.ts +51 -0
- package/es/components/Text/designTokens.js +52 -0
- package/es/components/Text/index.d.ts +6 -25
- package/es/components/Text/index.js +69 -56
- package/es/components/Text/style/index.less +2 -0
- package/es/components/TextInputInside/designTokens.d.ts +38 -0
- package/es/components/TextInputInside/designTokens.js +59 -0
- package/es/components/TextInputInside/index.d.ts +10 -0
- package/es/components/TextInputInside/index.js +141 -0
- package/es/components/TextInputInside/style/index.less +36 -0
- package/es/components/TextInputInside/style/variables.less +5 -0
- package/es/components/TextInputOutside/designTokens.d.ts +41 -0
- package/es/components/TextInputOutside/designTokens.js +67 -0
- package/es/components/TextInputOutside/index.d.ts +18 -0
- package/es/components/TextInputOutside/index.js +66 -0
- package/es/components/TextInputOutside/style/index.less +4 -0
- package/es/components/TextInputOutside/style/variables.less +5 -0
- package/es/components/TextLink/designTokens.d.ts +10 -0
- package/es/components/TextLink/designTokens.js +11 -0
- package/es/components/TextLink/index.d.ts +20 -0
- package/es/components/TextLink/index.js +95 -0
- package/es/components/Toast/designTokens.d.ts +13 -0
- package/es/components/Toast/designTokens.js +20 -0
- package/es/components/Toast/index.d.ts +26 -0
- package/es/components/Toast/index.js +175 -0
- package/es/components/Toast/style/index.less +9 -0
- package/es/components/Toast/style/variables.less +12 -0
- package/es/components/Toggle/designTokens.d.ts +9 -0
- package/es/components/Toggle/designTokens.js +13 -0
- package/es/components/Toggle/index.d.ts +27 -0
- package/es/components/Toggle/index.js +21 -0
- package/es/components/index.d.ts +45 -0
- package/es/components/index.js +26 -2
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.js +2 -2
- package/es/fonts/SF/SF-Pro-Display-BlackItalic.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Bold.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.eot +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.svg +40549 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.ttf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.woff +0 -0
- package/es/fonts/SF/SF-Pro-Text-Medium.woff2 +0 -0
- package/es/fonts/SF/SF-Pro-Text-Regular.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Regular.ttf +0 -0
- package/es/fonts/SF/SF-Pro-Text-Semibold.otf +0 -0
- package/es/fonts/SF/SF-Pro-Text-SemiboldItalic.otf +0 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -2
- package/es/style/variables.less +53 -27
- package/es/tokens/DXPGlobal.d.ts +255 -193
- package/es/tokens/DXPGlobal.js +4 -3
- package/es/utils/noop.js +1 -2
- package/es/utils/scaleTool.d.ts +12 -0
- package/es/utils/scaleTool.js +48 -0
- package/es/utils/theme.d.ts +11 -0
- package/es/utils/theme.js +15 -0
- package/es/utils/themeContext.d.ts +35 -2
- package/es/utils/themeContext.js +27 -7
- package/es/utils/tokenHelper.js +1 -2
- package/es/utils/tokenManager.d.ts +110 -2
- package/es/utils/tokenManager.js +778 -724
- package/lib/assets/iconFont/demo.css +539 -0
- package/lib/assets/iconFont/demo_index.html +4400 -0
- package/lib/assets/iconFont/iconfont.css +750 -0
- package/lib/assets/iconFont/iconfont.eot +0 -0
- package/lib/assets/iconFont/iconfont.json +1290 -0
- package/lib/assets/iconFont/iconfont.svg +385 -0
- package/lib/assets/iconFont/iconfont.ttf +0 -0
- package/lib/assets/iconFont/iconfont.woff +0 -0
- package/lib/assets/iconFont/iconfont.woff2 +0 -0
- package/lib/assets/react.svg +1 -0
- package/lib/assets/token.json +903 -0
- package/lib/components/Accordion/designTokens.d.ts +11 -0
- package/lib/components/Accordion/designTokens.js +42 -0
- package/lib/components/Accordion/index.d.ts +21 -0
- package/lib/components/Accordion/index.js +96 -0
- package/lib/components/Accordion/style/index.less +14 -0
- package/lib/components/Accordion/style/variables.less +4 -0
- package/lib/components/Amount/designTokens.d.ts +6 -0
- package/lib/components/Amount/designTokens.js +33 -0
- package/lib/components/Amount/index.d.ts +23 -0
- package/lib/components/Amount/index.js +160 -0
- package/lib/components/Amount/style/index.less +10 -0
- package/lib/components/Amount/style/variables.less +4 -0
- package/lib/components/Button/demo/index.d.ts +3 -0
- package/lib/components/Button/demo/index.js +138 -0
- package/lib/components/Button/designTokens.d.ts +66 -0
- package/lib/components/Button/designTokens.js +139 -0
- package/lib/components/Button/index.d.ts +39 -0
- package/lib/components/Button/index.js +132 -0
- package/lib/components/Button/style/index.less +38 -0
- package/lib/components/Button/style/variables.less +5 -0
- package/lib/components/Chip/designTokens.d.ts +15 -0
- package/lib/components/Chip/designTokens.js +45 -0
- package/lib/components/Chip/index.d.ts +13 -0
- package/lib/components/Chip/index.js +178 -0
- package/lib/components/Chip/style/index.less +9 -0
- package/lib/components/Chip/style/variables.less +4 -0
- package/lib/components/Divider/index.d.ts +16 -0
- package/lib/components/Divider/index.js +111 -0
- package/lib/components/Divider/style/index.less +78 -0
- package/lib/components/Divider/style/variables.less +4 -0
- package/lib/components/Drawer/designTokens.d.ts +16 -0
- package/lib/components/Drawer/designTokens.js +62 -0
- package/lib/components/Drawer/index.d.ts +21 -0
- package/lib/components/Drawer/index.js +229 -0
- package/lib/components/Drawer/style/index.less +73 -0
- package/lib/components/Drawer/style/variables.less +8 -0
- package/lib/components/Icon/Icon.d.ts +9 -0
- package/lib/components/Icon/Icon.js +74 -0
- package/lib/components/Icon/designTokens.d.ts +6 -0
- package/lib/components/Icon/designTokens.js +41 -0
- package/lib/components/Icon/index.d.ts +12 -0
- package/lib/components/Icon/index.js +73 -0
- package/lib/components/IconButton/designTokens.d.ts +21 -0
- package/lib/components/IconButton/designTokens.js +61 -0
- package/lib/components/IconButton/index.d.ts +24 -0
- package/lib/components/IconButton/index.js +202 -0
- package/lib/components/IconButton/style/index.less +59 -0
- package/lib/components/IconButton/style/variables.less +5 -0
- package/lib/components/IconButtonGroup/index.d.ts +15 -0
- package/lib/components/IconButtonGroup/index.js +53 -0
- package/lib/components/Image/index.d.ts +12 -0
- package/lib/components/Image/index.js +102 -0
- package/lib/components/ListItem/designTokens.d.ts +30 -0
- package/lib/components/ListItem/designTokens.js +65 -0
- package/lib/components/ListItem/index.d.ts +60 -0
- package/lib/components/ListItem/index.js +348 -0
- package/lib/components/ListItem/style/index.less +77 -0
- package/lib/components/ListItem/style/variables.less +1 -0
- package/lib/components/Modal/designTokens.d.ts +31 -0
- package/lib/components/Modal/designTokens.js +88 -0
- package/lib/components/Modal/index.d.ts +14 -0
- package/lib/components/Modal/index.js +168 -0
- package/lib/components/Modal/style/index.less +92 -0
- package/lib/components/Modal/style/variables.less +5 -0
- package/lib/components/Navigation/designTokens.d.ts +16 -0
- package/lib/components/Navigation/designTokens.js +53 -0
- package/lib/components/Navigation/index.d.ts +31 -0
- package/lib/components/Navigation/index.js +174 -0
- package/lib/components/Navigation/style/index.less +52 -0
- package/lib/components/Navigation/style/variables.less +1 -0
- package/lib/components/Search/designTokens.d.ts +34 -0
- package/lib/components/Search/designTokens.js +77 -0
- package/lib/components/Search/index.d.ts +13 -0
- package/lib/components/Search/index.js +137 -0
- package/lib/components/Search/style/index.less +32 -0
- package/lib/components/Search/style/variables.less +5 -0
- package/lib/components/Stepper/designTokens.d.ts +26 -0
- package/lib/components/Stepper/designTokens.js +90 -0
- package/lib/components/Stepper/index.d.ts +22 -0
- package/lib/components/Stepper/index.js +118 -0
- package/lib/components/Stepper/style/index.less +140 -0
- package/lib/components/Stepper/style/variables.less +5 -0
- package/lib/components/StickyFooter/designTokens.d.ts +10 -0
- package/lib/components/StickyFooter/designTokens.js +41 -0
- package/lib/components/StickyFooter/index.d.ts +17 -0
- package/lib/components/StickyFooter/index.js +150 -0
- package/lib/components/StickyFooter/style/index.less +18 -0
- package/lib/components/StickyFooter/style/variables.less +4 -0
- package/lib/components/Tabs/designTokens.d.ts +44 -0
- package/lib/components/Tabs/designTokens.js +90 -0
- package/lib/components/Tabs/index.d.ts +14 -0
- package/lib/components/Tabs/index.js +145 -0
- package/lib/components/Tabs/style/index.less +25 -0
- package/lib/components/Tabs/style/variables.less +4 -0
- package/lib/components/Tag/designTokens.d.ts +90 -0
- package/lib/components/Tag/designTokens.js +181 -0
- package/lib/components/Tag/index.d.ts +15 -0
- package/lib/components/Tag/index.js +146 -0
- package/lib/components/Tag/style/index.less +9 -0
- package/lib/components/Tag/style/variables.less +4 -0
- package/lib/components/Text/designTokens.d.ts +51 -0
- package/lib/components/Text/designTokens.js +75 -0
- package/lib/components/Text/index.d.ts +13 -0
- package/lib/components/Text/index.js +432 -0
- package/lib/components/Text/style/index.less +2 -0
- package/lib/components/Text/style/variables.less +4 -0
- package/lib/components/TextInputInside/designTokens.d.ts +38 -0
- package/lib/components/TextInputInside/designTokens.js +100 -0
- package/lib/components/TextInputInside/index.d.ts +10 -0
- package/lib/components/TextInputInside/index.js +230 -0
- package/lib/components/TextInputInside/style/index.less +36 -0
- package/lib/components/TextInputInside/style/variables.less +5 -0
- package/lib/components/TextInputOutside/designTokens.d.ts +41 -0
- package/lib/components/TextInputOutside/designTokens.js +95 -0
- package/lib/components/TextInputOutside/index.d.ts +18 -0
- package/lib/components/TextInputOutside/index.js +110 -0
- package/lib/components/TextInputOutside/style/index.less +4 -0
- package/lib/components/TextInputOutside/style/variables.less +5 -0
- package/lib/components/TextLink/designTokens.d.ts +10 -0
- package/lib/components/TextLink/designTokens.js +45 -0
- package/lib/components/TextLink/index.d.ts +20 -0
- package/lib/components/TextLink/index.js +120 -0
- package/lib/components/Toast/designTokens.d.ts +13 -0
- package/lib/components/Toast/designTokens.js +40 -0
- package/lib/components/Toast/index.d.ts +26 -0
- package/lib/components/Toast/index.js +213 -0
- package/lib/components/Toast/style/index.less +9 -0
- package/lib/components/Toast/style/variables.less +12 -0
- package/lib/components/Toggle/designTokens.d.ts +9 -0
- package/lib/components/Toggle/designTokens.js +47 -0
- package/lib/components/Toggle/index.d.ts +27 -0
- package/lib/components/Toggle/index.js +67 -0
- package/lib/components/index.d.ts +49 -0
- package/lib/components/index.js +90 -0
- package/lib/constants/index.d.ts +16 -0
- package/lib/constants/index.js +42 -0
- package/lib/fonts/Poppins/Poppins-Bold.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-BoldItalic.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-ExtraBold.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-ExtraBoldItalic.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-ExtraLight.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-ExtraLightItalic.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-Italic.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-Light.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-LightItalic.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-Medium.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-MediumItalic.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-Regular.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-SemiBold.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-SemiBoldItalic.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-Thin.ttf +0 -0
- package/lib/fonts/Poppins/Poppins-ThinItalic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-Black.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-Bold.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-ExtraBold.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-ExtraBoldItalic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-ExtraLight.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-ExtraLightItalic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-Light.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-SemiBold.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-SemiBoldItalic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-Thin.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
- package/lib/fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf +0 -0
- package/lib/fonts/SF/SF-Pro-Display-BlackItalic.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Bold.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.eot +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.svg +40549 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.ttf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.woff +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Medium.woff2 +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Regular.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Regular.ttf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-Semibold.otf +0 -0
- package/lib/fonts/SF/SF-Pro-Text-SemiboldItalic.otf +0 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +21 -0
- package/lib/style/antdDesignToken.json +503 -0
- package/lib/style/themes/base-vars.css +6 -0
- package/lib/style/themes/colorful.css +5 -0
- package/lib/style/themes/index.css +4 -0
- package/lib/style/variables.less +60 -0
- package/lib/tokens/DXPGlobal.d.ts +302 -0
- package/lib/tokens/DXPGlobal.js +37 -0
- package/lib/utils/noop.d.ts +1 -0
- package/lib/utils/noop.js +26 -0
- package/lib/utils/scaleTool.d.ts +12 -0
- package/lib/utils/scaleTool.js +66 -0
- package/lib/utils/theme.d.ts +11 -0
- package/lib/utils/theme.js +32 -0
- package/lib/utils/themeContext.d.ts +44 -0
- package/lib/utils/themeContext.js +117 -0
- package/lib/utils/tokenHelper.d.ts +1 -0
- package/lib/utils/tokenHelper.js +38 -0
- package/lib/utils/tokenManager.d.ts +1572 -0
- package/lib/utils/tokenManager.js +833 -0
- package/package.json +29 -22
- package/umd/dxp-ui.min.css +1 -2
- package/umd/dxp-ui.min.js +1 -2
- package/umd/static/SF-Pro-Text-Bold.89d66db4.otf +0 -0
- package/umd/static/SF-Pro-Text-Regular.e042d171.ttf +0 -0
- package/umd/static/SF-Pro-Text-Regular.f09e811b.otf +0 -0
- package/umd/static/SF-Pro-Text-Semibold.a5a4b4bc.otf +0 -0
- package/umd/static/SF-Pro-Text-SemiboldItalic.ed8f4a28.otf +0 -0
- package/umd/static/iconfont.176e7470.svg +1 -0
- package/umd/static/iconfont.47a0c957.ttf +0 -0
- package/umd/static/iconfont.6f470e01.eot +0 -0
- package/umd/static/iconfont.796b49bb.woff +0 -0
- package/es/assets/iconFont/iconfont.js +0 -44
- package/es/assets/iconFont/iconfont.js.map +0 -1
- package/es/components/Button/designTokens.js.map +0 -1
- package/es/components/Button/index.js.map +0 -1
- package/es/components/Button/index_backup.d.ts +0 -72
- package/es/components/Button/index_backup.js +0 -111
- package/es/components/Button/index_backup.js.map +0 -1
- package/es/components/Text/index.js.map +0 -1
- package/es/components/Text/style/text.less +0 -116
- package/es/components/index.js.map +0 -1
- package/es/constants/index.js.map +0 -1
- package/es/index.js.map +0 -1
- package/es/tokens/DXPGlobal.js.map +0 -1
- package/es/utils/noop.js.map +0 -1
- package/es/utils/themeContext.js.map +0 -1
- package/es/utils/tokenHelper.js.map +0 -1
- package/es/utils/tokenManager.js.map +0 -1
- package/umd/dxp-ui.min.css.map +0 -1
- package/umd/dxp-ui.min.js.map +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
+
var __spreadValues = (a, b) => {
|
|
13
|
+
for (var prop in b || (b = {}))
|
|
14
|
+
if (__hasOwnProp.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
if (__getOwnPropSymbols)
|
|
17
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
+
if (__propIsEnum.call(b, prop))
|
|
19
|
+
__defNormalProp(a, prop, b[prop]);
|
|
20
|
+
}
|
|
21
|
+
return a;
|
|
22
|
+
};
|
|
23
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
+
var __export = (target, all) => {
|
|
25
|
+
for (var name in all)
|
|
26
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
27
|
+
};
|
|
28
|
+
var __copyProps = (to, from, except, desc) => {
|
|
29
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
30
|
+
for (let key of __getOwnPropNames(from))
|
|
31
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
32
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
33
|
+
}
|
|
34
|
+
return to;
|
|
35
|
+
};
|
|
36
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
37
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
38
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
39
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
40
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
41
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
42
|
+
mod
|
|
43
|
+
));
|
|
44
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
45
|
+
|
|
46
|
+
// src/components/Stepper/index.tsx
|
|
47
|
+
var Stepper_exports = {};
|
|
48
|
+
__export(Stepper_exports, {
|
|
49
|
+
default: () => Stepper
|
|
50
|
+
});
|
|
51
|
+
module.exports = __toCommonJS(Stepper_exports);
|
|
52
|
+
var import_antd = require("antd");
|
|
53
|
+
var import_react = __toESM(require("react"));
|
|
54
|
+
var import_constants = require("../../constants");
|
|
55
|
+
var import_Text = __toESM(require("../Text"));
|
|
56
|
+
var import_designTokens = __toESM(require("./designTokens"));
|
|
57
|
+
var import_style = require("./style/index.less");
|
|
58
|
+
var Stepper = class extends import_react.PureComponent {
|
|
59
|
+
constructor() {
|
|
60
|
+
super(...arguments);
|
|
61
|
+
this.descriptionText = (content) => {
|
|
62
|
+
return /* @__PURE__ */ import_react.default.createElement(import_Text.default, { className: import_constants.cssClasses.PREFIX + "-stepper-description", size: "ContentC12Bold" }, content);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
const { style, items, children, breakpoint, percent, current, nextStepText = "Next Step:" } = this.props;
|
|
67
|
+
const processedItems = items == null ? void 0 : items.map((item) => __spreadProps(__spreadValues({}, item), {
|
|
68
|
+
description: this.descriptionText(item.description)
|
|
69
|
+
}));
|
|
70
|
+
const processedChildren = children && import_react.default.Children.map(children, (child) => {
|
|
71
|
+
if (import_react.default.isValidElement(child)) {
|
|
72
|
+
return import_react.default.cloneElement(child, {
|
|
73
|
+
description: this.descriptionText(child.props.description)
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return child;
|
|
77
|
+
});
|
|
78
|
+
const totalSteps = (items == null ? void 0 : items.length) || import_react.default.Children.count(children) || 0;
|
|
79
|
+
const getStepInfo = (items2, current2) => {
|
|
80
|
+
var _a, _b;
|
|
81
|
+
const hasNextStep = items2 && current2 !== void 0 && current2 < items2.length - 1;
|
|
82
|
+
return {
|
|
83
|
+
title: hasNextStep ? ((_a = items2[current2]) == null ? void 0 : _a.title) || "" : "",
|
|
84
|
+
nextStep: hasNextStep ? ((_b = items2[current2 + 1]) == null ? void 0 : _b.title) || "" : ""
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
const { title, nextStep } = getStepInfo(items, current);
|
|
88
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
89
|
+
import_antd.ConfigProvider,
|
|
90
|
+
{
|
|
91
|
+
prefixCls: import_constants.cssClasses.PREFIX,
|
|
92
|
+
theme: {
|
|
93
|
+
components: {
|
|
94
|
+
Steps: __spreadValues({}, import_designTokens.default)
|
|
95
|
+
},
|
|
96
|
+
cssVar: true,
|
|
97
|
+
hashed: false
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
breakpoint === "mobile" ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_constants.cssClasses.PREFIX}-stepper-m`, style: __spreadValues(__spreadValues({}, import_designTokens.mobileDesignTokens), style) }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_constants.cssClasses.PREFIX}-stepper-m-header` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_constants.cssClasses.PREFIX}-stepper-m-count` }, /* @__PURE__ */ import_react.default.createElement(import_Text.default, { className: `${import_constants.cssClasses.PREFIX}-stepper-m-neutral`, breakpoint: "mobile", size: "TitleT41Bold" }, String(current !== void 0 ? current + 1 : 1).padStart(2, "0")), /* @__PURE__ */ import_react.default.createElement(import_Text.default, { breakpoint: "mobile", size: "TitleT15Bold" }, "/"), /* @__PURE__ */ import_react.default.createElement(import_Text.default, { className: `${import_constants.cssClasses.PREFIX}-stepper-m-secondary`, breakpoint: "mobile", size: "TitleT23Bold" }, totalSteps)), /* @__PURE__ */ import_react.default.createElement(
|
|
101
|
+
import_antd.Progress,
|
|
102
|
+
{
|
|
103
|
+
percent,
|
|
104
|
+
status: "active",
|
|
105
|
+
strokeColor: import_designTokens.default.colorPrimary,
|
|
106
|
+
trailColor: import_designTokens.mobileDesignTokens.colorStepperBackgroundActiveWeak,
|
|
107
|
+
showInfo: false,
|
|
108
|
+
size: ["100%", 8]
|
|
109
|
+
}
|
|
110
|
+
), title && /* @__PURE__ */ import_react.default.createElement(import_Text.default, { className: `${import_constants.cssClasses.PREFIX}-stepper-m-title`, breakpoint: "mobile", size: "TitleT15Bold" }, title), nextStep && /* @__PURE__ */ import_react.default.createElement("div", { className: `${import_constants.cssClasses.PREFIX}-stepper-m-next` }, /* @__PURE__ */ import_react.default.createElement(import_Text.default, { type: "secondary", size: "ContentC12Regular" }, nextStepText, " ", nextStep)))) : /* @__PURE__ */ import_react.default.createElement(import_antd.Steps, __spreadProps(__spreadValues({}, this.props), { items: processedItems, style: __spreadValues(__spreadValues({}, import_designTokens.otherDesignTokens), style) }), processedChildren)
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
Stepper.defaultProps = {
|
|
115
|
+
prefixCls: import_constants.cssClasses.PREFIX + "-stepper",
|
|
116
|
+
breakpoint: "desktop",
|
|
117
|
+
labelPlacement: "vertical"
|
|
118
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
@import './variables.less';
|
|
2
|
+
|
|
3
|
+
// 基础按钮样式
|
|
4
|
+
@components: stepper;
|
|
5
|
+
|
|
6
|
+
// 使用字符串拼接
|
|
7
|
+
.@{prefix}-@{components} {
|
|
8
|
+
display: flex;
|
|
9
|
+
width: 100%;
|
|
10
|
+
font-size:0;
|
|
11
|
+
text-align: initial;
|
|
12
|
+
min-width: 128px;
|
|
13
|
+
padding-top: 8px;
|
|
14
|
+
padding-bottom: 8px;
|
|
15
|
+
|
|
16
|
+
// 定义中间变量来存储动态生成的 CSS 变量名
|
|
17
|
+
@progress-default-color: ~"--@{prefix}-@{components}-progress-default-color";
|
|
18
|
+
@progress-border-width: ~"--@{prefix}-@{components}-progress-border-width";
|
|
19
|
+
@progress-border-connector: ~"--@{prefix}-@{components}-progress-border-connector";
|
|
20
|
+
|
|
21
|
+
@finish-icon-bg-color: ~"--@{prefix}-@{components}-finish-icon-bg-color";
|
|
22
|
+
@finish-icon-border-color: ~"--@{prefix}-@{components}-finish-icon-border-color";
|
|
23
|
+
@finish-icon-success: ~"--@{prefix}-@{components}-finish-icon-success";
|
|
24
|
+
@finish-line-color: ~"--@{prefix}-@{components}-finish-line-color";
|
|
25
|
+
|
|
26
|
+
@wait-icon-bg-color: ~"--@{prefix}-@{components}-wait-icon-bg-color";
|
|
27
|
+
@wait-icon-border-color: ~"--@{prefix}-@{components}-wait-icon-border-color";
|
|
28
|
+
@wait-icon-color: ~"--@{prefix}-@{components}-wait-icon-success";
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
// 当前高亮步骤的圈的颜色
|
|
33
|
+
.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path,
|
|
34
|
+
.dxp-progress-inner:not(.dxp-progress-circle-gradient) .dxp-progress-circle-path {
|
|
35
|
+
// stroke-width: calc(var(@progress-border-width) * 2);
|
|
36
|
+
stroke: var(@progress-default-color) !important;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dxp-stepper-item-finish>.dxp-stepper-item-container>.dxp-stepper-item-content>.dxp-stepper-item-title::after {
|
|
40
|
+
height: calc(var(@progress-border-connector) * 1px); // 使用 calc() 函数结合单位
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// 当前已完成步骤的背景颜色
|
|
44
|
+
.dxp-stepper-item-finish .dxp-stepper-item-icon {
|
|
45
|
+
background-color: var(@finish-icon-bg-color);
|
|
46
|
+
border-color: var(@finish-icon-border-color);
|
|
47
|
+
|
|
48
|
+
.anticon {
|
|
49
|
+
color: var(@finish-icon-success);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// 当前已完成步骤的进度条颜色
|
|
54
|
+
.dxp-stepper-item-finish>.dxp-stepper-item-container>.dxp-stepper-item-content>.dxp-stepper-item-title::after {
|
|
55
|
+
border-color: var(@finish-line-color);
|
|
56
|
+
background-color: var(@finish-line-color);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dxp-stepper-item-wait .dxp-stepper-item-icon {
|
|
60
|
+
background-color: var(@wait-icon-bg-color);
|
|
61
|
+
border-color: var(@wait-icon-border-color);
|
|
62
|
+
|
|
63
|
+
.dxp-stepper-icon {
|
|
64
|
+
color: var(@wait-icon-color);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.dxp-stepper-with-progress.dxp-stepper-small .dxp-stepper-item-icon .dxp-progress-inner {
|
|
69
|
+
width: calc(var(--dxp-steps-icon-size-sm) + calc(var(--dxp-line-width) * 5)) !important;
|
|
70
|
+
height: calc(var(--dxp-steps-icon-size-sm) + calc(var(--dxp-line-width) * 5)) !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// moblie
|
|
76
|
+
@dxp-steps-color-neutral: ~"--dxp-steps-color-neutral";
|
|
77
|
+
@dxp-steps-color-secondary: ~"--dxp-steps-color-secondary";
|
|
78
|
+
@dxp-steps-color-label2: ~"--dxp-steps-color-label2";
|
|
79
|
+
@dxp-steps-background-active: ~"--dxp-steps-background-active";
|
|
80
|
+
@dxp-steps-background-activeWeak: ~"--dxp-steps-background-activeWeak";
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
@stepper-prefix-cls: stepper;
|
|
84
|
+
|
|
85
|
+
.@{prefix}-@{stepper-prefix-cls} {
|
|
86
|
+
font-size:0;
|
|
87
|
+
&-description {
|
|
88
|
+
margin-top: 4px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// mobile
|
|
92
|
+
&-m {
|
|
93
|
+
width: 100%;
|
|
94
|
+
padding: 16px 0;
|
|
95
|
+
|
|
96
|
+
&-header {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: 0;
|
|
100
|
+
.@{prefix}-@{stepper-prefix-cls}-bg{
|
|
101
|
+
background-color: var(@dxp-steps-background-active);
|
|
102
|
+
}
|
|
103
|
+
.@{prefix}-@{stepper-prefix-cls}-inner{
|
|
104
|
+
background-color: var(@dxp-steps-background-activeWeak);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&-count {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: baseline;
|
|
111
|
+
gap: 2px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&-neutral {
|
|
115
|
+
color: var(@dxp-steps-color-neutral);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&-secondary {
|
|
119
|
+
color: var(@dxp-steps-color-secondary);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&-title {
|
|
123
|
+
color: var(@dxp-steps-color-neutral);
|
|
124
|
+
margin-top: 0;
|
|
125
|
+
font-weight: 500;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&-next {
|
|
129
|
+
color: var(@dxp-steps-color-label2);
|
|
130
|
+
margin-top:0;
|
|
131
|
+
color: #858585;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ant-progress,
|
|
135
|
+
.ant5-progress,
|
|
136
|
+
.dxp-progress {
|
|
137
|
+
margin: 4px 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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/StickyFooter/designTokens.ts
|
|
20
|
+
var designTokens_exports = {};
|
|
21
|
+
__export(designTokens_exports, {
|
|
22
|
+
designTokens: () => designTokens
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(designTokens_exports);
|
|
25
|
+
var import_tokenHelper = require("../../utils/tokenHelper");
|
|
26
|
+
var designTokens = {
|
|
27
|
+
padding: `${(0, import_tokenHelper.getToken)("spacingStickyFooterPaddingTop")}px ${(0, import_tokenHelper.getToken)("spacingStickyFooterPaddingHorizontal")}px ${(0, import_tokenHelper.getToken)("spacingStickyFooterPaddingBottom")}px`,
|
|
28
|
+
// 间距
|
|
29
|
+
borderTop: `1px solid ${(0, import_tokenHelper.getToken)("colorStickyFooterBorderTop")}`,
|
|
30
|
+
// 边框
|
|
31
|
+
backgroundColor: (0, import_tokenHelper.getToken)("colorStickyFooterBackground"),
|
|
32
|
+
// 背景颜色
|
|
33
|
+
priceColor: (0, import_tokenHelper.getToken)("colorStickyFooterPrice"),
|
|
34
|
+
// 金额颜色
|
|
35
|
+
textColor: (0, import_tokenHelper.getToken)("colorStickyFooterText"),
|
|
36
|
+
// 文本颜色
|
|
37
|
+
textDiscontColor: (0, import_tokenHelper.getToken)("colorStickyFooterText2"),
|
|
38
|
+
// 文本颜色
|
|
39
|
+
colorStrikethrough: (0, import_tokenHelper.getToken)("colorStickyFooterPriceStrikethrough")
|
|
40
|
+
// 划线价颜色
|
|
41
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style/index.less';
|
|
3
|
+
export type type = 'default' | 'priceVariant1' | 'priceVariant2';
|
|
4
|
+
export interface StickyFooterProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
colorPrice?: string;
|
|
8
|
+
type?: type;
|
|
9
|
+
priceStrikethrough?: string;
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
onDropDownClick?: React.MouseEventHandler;
|
|
13
|
+
onRightBtnClick?: React.MouseEventHandler;
|
|
14
|
+
onBtnClick?: React.MouseEventHandler;
|
|
15
|
+
}
|
|
16
|
+
declare const StickyFooter: (props: StickyFooterProps) => React.JSX.Element;
|
|
17
|
+
export default StickyFooter;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
var __objRest = (source, exclude) => {
|
|
22
|
+
var target = {};
|
|
23
|
+
for (var prop in source)
|
|
24
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
if (source != null && __getOwnPropSymbols)
|
|
27
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
33
|
+
var __export = (target, all) => {
|
|
34
|
+
for (var name in all)
|
|
35
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
36
|
+
};
|
|
37
|
+
var __copyProps = (to, from, except, desc) => {
|
|
38
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
39
|
+
for (let key of __getOwnPropNames(from))
|
|
40
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
41
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
42
|
+
}
|
|
43
|
+
return to;
|
|
44
|
+
};
|
|
45
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
46
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
47
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
48
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
49
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
50
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
51
|
+
mod
|
|
52
|
+
));
|
|
53
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
54
|
+
|
|
55
|
+
// src/components/StickyFooter/index.tsx
|
|
56
|
+
var StickyFooter_exports = {};
|
|
57
|
+
__export(StickyFooter_exports, {
|
|
58
|
+
default: () => StickyFooter_default
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(StickyFooter_exports);
|
|
61
|
+
var import_react = __toESM(require("react"));
|
|
62
|
+
var import_cssinjs = require("@ant-design/cssinjs");
|
|
63
|
+
var import_theme = require("../../utils/theme");
|
|
64
|
+
var import_designTokens = require("./designTokens");
|
|
65
|
+
var import_constants = require("../../constants");
|
|
66
|
+
var import__ = require("../index");
|
|
67
|
+
var import_style = require("./style/index.less");
|
|
68
|
+
var StickyFooter = (props) => {
|
|
69
|
+
const _a = props, {
|
|
70
|
+
type = "default",
|
|
71
|
+
colorPrice,
|
|
72
|
+
price,
|
|
73
|
+
priceStrikethrough,
|
|
74
|
+
buttonText = "Confirm",
|
|
75
|
+
title,
|
|
76
|
+
position,
|
|
77
|
+
size,
|
|
78
|
+
children,
|
|
79
|
+
onDropDownClick,
|
|
80
|
+
onRightBtnClick,
|
|
81
|
+
onBtnClick,
|
|
82
|
+
showIcon = true,
|
|
83
|
+
iconType
|
|
84
|
+
} = _a, attr = __objRest(_a, [
|
|
85
|
+
"type",
|
|
86
|
+
"colorPrice",
|
|
87
|
+
"price",
|
|
88
|
+
"priceStrikethrough",
|
|
89
|
+
"buttonText",
|
|
90
|
+
"title",
|
|
91
|
+
"position",
|
|
92
|
+
"size",
|
|
93
|
+
"children",
|
|
94
|
+
"onDropDownClick",
|
|
95
|
+
"onRightBtnClick",
|
|
96
|
+
"onBtnClick",
|
|
97
|
+
"showIcon",
|
|
98
|
+
"iconType"
|
|
99
|
+
]);
|
|
100
|
+
const {
|
|
101
|
+
padding,
|
|
102
|
+
borderTop,
|
|
103
|
+
backgroundColor,
|
|
104
|
+
priceColor,
|
|
105
|
+
textColor,
|
|
106
|
+
textDiscontColor,
|
|
107
|
+
colorStrikethrough
|
|
108
|
+
} = import_designTokens.designTokens;
|
|
109
|
+
const useCustomButtonStyle = () => {
|
|
110
|
+
const hashId = (0, import_cssinjs.useStyleRegister)({
|
|
111
|
+
theme: import_theme.theme,
|
|
112
|
+
token: { baseColor: "blue" },
|
|
113
|
+
path: [`${import_constants.cssClasses.PREFIX}-stickyFooter`]
|
|
114
|
+
}, () => `
|
|
115
|
+
.${import_constants.cssClasses.PREFIX}-stickyFooter {
|
|
116
|
+
padding: ${padding};
|
|
117
|
+
border-top: ${borderTop};
|
|
118
|
+
background-color: ${backgroundColor};
|
|
119
|
+
}
|
|
120
|
+
`);
|
|
121
|
+
return hashId;
|
|
122
|
+
};
|
|
123
|
+
useCustomButtonStyle();
|
|
124
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
125
|
+
"div",
|
|
126
|
+
__spreadValues({
|
|
127
|
+
className: `${import_constants.cssClasses.PREFIX}-stickyFooter ${import_constants.cssClasses.PREFIX}-stickyFooter-${type}`,
|
|
128
|
+
onClick: props.onClick
|
|
129
|
+
}, attr),
|
|
130
|
+
type === "default" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import__.Button, { type: "primary", block: true, onClick: onBtnClick }, buttonText)),
|
|
131
|
+
type === "priceVariant1" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
132
|
+
import__.Amount,
|
|
133
|
+
{
|
|
134
|
+
priceStrikethrough,
|
|
135
|
+
priceColor: colorPrice || priceColor,
|
|
136
|
+
textColor: title === "discount" ? textDiscontColor : textColor,
|
|
137
|
+
colorStrikethrough,
|
|
138
|
+
title,
|
|
139
|
+
position,
|
|
140
|
+
size,
|
|
141
|
+
showIcon,
|
|
142
|
+
onDropDownClick,
|
|
143
|
+
iconType
|
|
144
|
+
},
|
|
145
|
+
price
|
|
146
|
+
), /* @__PURE__ */ import_react.default.createElement(import__.Button, { type: "primary", onClick: onRightBtnClick }, buttonText)),
|
|
147
|
+
children
|
|
148
|
+
);
|
|
149
|
+
};
|
|
150
|
+
var StickyFooter_default = StickyFooter;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
@import './variables.less';
|
|
3
|
+
@components: stickyFooter;
|
|
4
|
+
.@{prefix}-@{components} {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
position: fixed;
|
|
9
|
+
left: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
width: 100%;
|
|
12
|
+
background: #fff;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
z-index: 9;
|
|
15
|
+
&.@{prefix}-@{components}-default {
|
|
16
|
+
justify-content: center;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const otherDesignToken: {
|
|
2
|
+
colorTabsTextSubtitleInverseInactive: any;
|
|
3
|
+
colorTabsTextSubtitleInactive: any;
|
|
4
|
+
colorTabsIconInactiveInverse: any;
|
|
5
|
+
colorTabsIconActiveInverse: any;
|
|
6
|
+
colorTabsIconInactive: any;
|
|
7
|
+
colorTabsIconActive: any;
|
|
8
|
+
colorTabsTextSubtitleInverse: any;
|
|
9
|
+
colorTabsTextSubtitle: any;
|
|
10
|
+
sizingTabsIcon: any;
|
|
11
|
+
};
|
|
12
|
+
declare const designTokens: {
|
|
13
|
+
inkBarColor: any;
|
|
14
|
+
itemSelectedColor: any;
|
|
15
|
+
itemHoverColor: any;
|
|
16
|
+
itemActiveColor: any;
|
|
17
|
+
itemColor: any;
|
|
18
|
+
colorBorderSecondary: any;
|
|
19
|
+
horizontalItemPadding: string;
|
|
20
|
+
lineWidthBold: any;
|
|
21
|
+
};
|
|
22
|
+
declare const designFillTokens: {
|
|
23
|
+
inkBarColor: string;
|
|
24
|
+
itemSelectedColor: string;
|
|
25
|
+
itemHoverColor: any;
|
|
26
|
+
itemActiveColor: any;
|
|
27
|
+
itemColor: any;
|
|
28
|
+
colorBorderSecondary: string;
|
|
29
|
+
cardPadding: string;
|
|
30
|
+
colorFillAlter: string;
|
|
31
|
+
lineWidth: number;
|
|
32
|
+
colorBgContainer: string;
|
|
33
|
+
};
|
|
34
|
+
declare const inverseDesignTokens: {
|
|
35
|
+
inkBarColor: any;
|
|
36
|
+
itemSelectedColor: any;
|
|
37
|
+
itemHoverColor: any;
|
|
38
|
+
itemActiveColor: any;
|
|
39
|
+
itemColor: any;
|
|
40
|
+
colorBorderSecondary: any;
|
|
41
|
+
horizontalItemPadding: string;
|
|
42
|
+
lineWidthBold: any;
|
|
43
|
+
};
|
|
44
|
+
export { otherDesignToken, designTokens, inverseDesignTokens, designFillTokens };
|
|
@@ -0,0 +1,90 @@
|
|
|
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/Tabs/designTokens.ts
|
|
20
|
+
var designTokens_exports = {};
|
|
21
|
+
__export(designTokens_exports, {
|
|
22
|
+
designFillTokens: () => designFillTokens,
|
|
23
|
+
designTokens: () => designTokens,
|
|
24
|
+
inverseDesignTokens: () => inverseDesignTokens,
|
|
25
|
+
otherDesignToken: () => otherDesignToken
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(designTokens_exports);
|
|
28
|
+
var import_tokenHelper = require("../../utils/tokenHelper");
|
|
29
|
+
var otherDesignToken = {
|
|
30
|
+
colorTabsTextSubtitleInverseInactive: (0, import_tokenHelper.getToken)("colorTabsTextSubtitleInverseInactive"),
|
|
31
|
+
colorTabsTextSubtitleInactive: (0, import_tokenHelper.getToken)("colorTabsTextSubtitleInactive"),
|
|
32
|
+
colorTabsIconInactiveInverse: (0, import_tokenHelper.getToken)("colorTabsIconInactiveInverse"),
|
|
33
|
+
colorTabsIconActiveInverse: (0, import_tokenHelper.getToken)("colorTabsIconActiveInverse"),
|
|
34
|
+
colorTabsIconInactive: (0, import_tokenHelper.getToken)("colorTabsIconInactive"),
|
|
35
|
+
colorTabsIconActive: (0, import_tokenHelper.getToken)("colorTabsIconActive"),
|
|
36
|
+
colorTabsTextSubtitleInverse: (0, import_tokenHelper.getToken)("colorTabsTextSubtitleInverse"),
|
|
37
|
+
colorTabsTextSubtitle: (0, import_tokenHelper.getToken)("colorTabsTextSubtitle"),
|
|
38
|
+
sizingTabsIcon: (0, import_tokenHelper.getToken)("sizingTabsIcon")
|
|
39
|
+
};
|
|
40
|
+
var designTokens = {
|
|
41
|
+
inkBarColor: (0, import_tokenHelper.getToken)("colorTabsBorderActive"),
|
|
42
|
+
// 选中的边框颜色
|
|
43
|
+
itemSelectedColor: (0, import_tokenHelper.getToken)("colorTabsTextTitle"),
|
|
44
|
+
// 选中的label颜色
|
|
45
|
+
itemHoverColor: (0, import_tokenHelper.getToken)("colorTabsTextTitle"),
|
|
46
|
+
// hover label颜色
|
|
47
|
+
itemActiveColor: (0, import_tokenHelper.getToken)("colorTabsTextTitle"),
|
|
48
|
+
// active label颜色
|
|
49
|
+
itemColor: (0, import_tokenHelper.getToken)("colorTabsTextTitleInactive"),
|
|
50
|
+
// 默认label颜色
|
|
51
|
+
colorBorderSecondary: (0, import_tokenHelper.getToken)("colorTabsBorderInactive"),
|
|
52
|
+
// 未选中的边框
|
|
53
|
+
horizontalItemPadding: `${(0, import_tokenHelper.getToken)("spacingTabsVerticalGap")}px ${(0, import_tokenHelper.getToken)("spacingTabsPaddingHorizontal")}px`,
|
|
54
|
+
lineWidthBold: (0, import_tokenHelper.getToken)("borderWidthTabsActive")
|
|
55
|
+
};
|
|
56
|
+
var designFillTokens = {
|
|
57
|
+
inkBarColor: "#4D28E8",
|
|
58
|
+
// 选中的边框颜色
|
|
59
|
+
itemSelectedColor: "#fff",
|
|
60
|
+
// 选中的label颜色
|
|
61
|
+
itemHoverColor: (0, import_tokenHelper.getToken)("colorTabsTextTitle"),
|
|
62
|
+
// hover label颜色
|
|
63
|
+
itemActiveColor: (0, import_tokenHelper.getToken)("colorTabsTextTitle"),
|
|
64
|
+
// active label颜色
|
|
65
|
+
itemColor: (0, import_tokenHelper.getToken)("colorTabsTextTitleInactive"),
|
|
66
|
+
// 默认label颜色
|
|
67
|
+
colorBorderSecondary: "#F5F5F8",
|
|
68
|
+
// 未选中的边框
|
|
69
|
+
cardPadding: `6px ${(0, import_tokenHelper.getToken)("spacingTabsPaddingHorizontal")}px`,
|
|
70
|
+
colorFillAlter: "#F5F5F8",
|
|
71
|
+
lineWidth: 0,
|
|
72
|
+
// 线条宽度
|
|
73
|
+
colorBgContainer: "#4D28E8"
|
|
74
|
+
};
|
|
75
|
+
var inverseDesignTokens = {
|
|
76
|
+
inkBarColor: (0, import_tokenHelper.getToken)("colorTabsBorderActiveInverse"),
|
|
77
|
+
// 选中的边框颜色
|
|
78
|
+
itemSelectedColor: (0, import_tokenHelper.getToken)("colorTabsTextTitleInverse"),
|
|
79
|
+
// 选中的label颜色
|
|
80
|
+
itemHoverColor: (0, import_tokenHelper.getToken)("colorTabsTextTitleInverse"),
|
|
81
|
+
// hover label颜色
|
|
82
|
+
itemActiveColor: (0, import_tokenHelper.getToken)("colorTabsTextTitleInverse"),
|
|
83
|
+
// active label颜色
|
|
84
|
+
itemColor: (0, import_tokenHelper.getToken)("colorTabsTextTitleInverseInactive"),
|
|
85
|
+
// 默认label颜色
|
|
86
|
+
colorBorderSecondary: (0, import_tokenHelper.getToken)("colorTabsBorderInactiveInverse"),
|
|
87
|
+
// 未选中的边框
|
|
88
|
+
horizontalItemPadding: `${(0, import_tokenHelper.getToken)("spacingTabsVerticalGap")}px ${(0, import_tokenHelper.getToken)("spacingTabsPaddingHorizontal")}px`,
|
|
89
|
+
lineWidthBold: (0, import_tokenHelper.getToken)("borderWidthTabsActive")
|
|
90
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style/index.less';
|
|
3
|
+
export type Type = 'default' | 'fill';
|
|
4
|
+
export interface TabsProps {
|
|
5
|
+
prefixCls?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
defaultActiveKey?: string;
|
|
8
|
+
onChange?: (key: string) => void;
|
|
9
|
+
items?: any[];
|
|
10
|
+
inverse?: boolean;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
declare const Tabs: (props: TabsProps) => React.JSX.Element;
|
|
14
|
+
export default Tabs;
|