@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,31 @@
|
|
|
1
|
+
declare const designTokens: {
|
|
2
|
+
borderRadiusLG: any;
|
|
3
|
+
titleColor: any;
|
|
4
|
+
contentBg: any;
|
|
5
|
+
headerBg: any;
|
|
6
|
+
colorText: any;
|
|
7
|
+
colorBgMask: any;
|
|
8
|
+
};
|
|
9
|
+
declare const otherDesignTokens: {
|
|
10
|
+
width: string;
|
|
11
|
+
spacingModalCardPaddingTop: any;
|
|
12
|
+
spacingModalButtonStickyPaddingVertical: any;
|
|
13
|
+
spacingModalCardVerticalGap: any;
|
|
14
|
+
spacingModalCardPaddingHorizontal: any;
|
|
15
|
+
};
|
|
16
|
+
declare const commonToken: {
|
|
17
|
+
[x: string]: string | number;
|
|
18
|
+
};
|
|
19
|
+
declare const styleToken: {
|
|
20
|
+
[x: string]: string | number;
|
|
21
|
+
};
|
|
22
|
+
declare const stickyFooterStyleToken: {
|
|
23
|
+
[x: string]: string | number;
|
|
24
|
+
};
|
|
25
|
+
declare const stickyHeaderFooterStyleToken: {
|
|
26
|
+
[x: string]: string | number;
|
|
27
|
+
};
|
|
28
|
+
declare const stickyHeaderStyleToken: {
|
|
29
|
+
[x: string]: string | number;
|
|
30
|
+
};
|
|
31
|
+
export { designTokens, otherDesignTokens, styleToken, stickyFooterStyleToken, stickyHeaderStyleToken, stickyHeaderFooterStyleToken, commonToken };
|
|
@@ -0,0 +1,88 @@
|
|
|
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/Modal/designTokens.ts
|
|
20
|
+
var designTokens_exports = {};
|
|
21
|
+
__export(designTokens_exports, {
|
|
22
|
+
commonToken: () => commonToken,
|
|
23
|
+
designTokens: () => designTokens,
|
|
24
|
+
otherDesignTokens: () => otherDesignTokens,
|
|
25
|
+
stickyFooterStyleToken: () => stickyFooterStyleToken,
|
|
26
|
+
stickyHeaderFooterStyleToken: () => stickyHeaderFooterStyleToken,
|
|
27
|
+
stickyHeaderStyleToken: () => stickyHeaderStyleToken,
|
|
28
|
+
styleToken: () => styleToken
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(designTokens_exports);
|
|
31
|
+
var import_tokenHelper = require("../../utils/tokenHelper");
|
|
32
|
+
var import_constants = require("../../constants");
|
|
33
|
+
var prefixCls = import_constants.cssClasses.PREFIX + "-modal";
|
|
34
|
+
var designTokens = {
|
|
35
|
+
borderRadiusLG: (0, import_tokenHelper.getToken)("borderRadiusModal"),
|
|
36
|
+
// 圆角
|
|
37
|
+
titleColor: (0, import_tokenHelper.getToken)("colorModalTextHeader"),
|
|
38
|
+
// header文本颜色
|
|
39
|
+
contentBg: (0, import_tokenHelper.getToken)("colorModalBackground"),
|
|
40
|
+
// 背景
|
|
41
|
+
headerBg: (0, import_tokenHelper.getToken)("colorModalBackground"),
|
|
42
|
+
// 背景
|
|
43
|
+
colorText: (0, import_tokenHelper.getToken)("colorModalTextBody"),
|
|
44
|
+
// 内容文本颜色
|
|
45
|
+
colorBgMask: (0, import_tokenHelper.getToken)("colorModalOverlay")
|
|
46
|
+
// 遮罩颜色
|
|
47
|
+
};
|
|
48
|
+
var otherDesignTokens = {
|
|
49
|
+
width: `calc(100vw - ${(0, import_tokenHelper.getToken)("spacingModalPaddingHorizontal")}px - ${(0, import_tokenHelper.getToken)("spacingModalPaddingHorizontal")}px)`,
|
|
50
|
+
// 宽度
|
|
51
|
+
spacingModalCardPaddingTop: (0, import_tokenHelper.getToken)("spacingModalCardPaddingTop"),
|
|
52
|
+
spacingModalButtonStickyPaddingVertical: (0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingVertical"),
|
|
53
|
+
spacingModalCardVerticalGap: (0, import_tokenHelper.getToken)("spacingModalCardVerticalGap"),
|
|
54
|
+
spacingModalCardPaddingHorizontal: (0, import_tokenHelper.getToken)("spacingModalCardPaddingHorizontal")
|
|
55
|
+
};
|
|
56
|
+
var commonToken = {
|
|
57
|
+
[`--${prefixCls}-footer-margin-top`]: 0,
|
|
58
|
+
[`--${prefixCls}-footer-padding`]: `${(0, import_tokenHelper.getToken)("spacingModalButtonPaddingTop")}px 0 0`
|
|
59
|
+
};
|
|
60
|
+
var styleToken = {
|
|
61
|
+
[`--${prefixCls}-content-padding`]: `${otherDesignTokens.spacingModalCardPaddingTop}px ${otherDesignTokens.spacingModalCardPaddingHorizontal}px ${(0, import_tokenHelper.getToken)("spacingModalCardPaddingBottom")}px ${otherDesignTokens.spacingModalCardPaddingHorizontal}px`,
|
|
62
|
+
[`--${prefixCls}-footer-border-top`]: "none",
|
|
63
|
+
[`--${prefixCls}-footer-padding`]: 0,
|
|
64
|
+
[`--${prefixCls}-body-padding`]: `${otherDesignTokens.spacingModalCardVerticalGap}px 0`,
|
|
65
|
+
[`--${prefixCls}-header-margin-bottom`]: 0
|
|
66
|
+
};
|
|
67
|
+
var stickyFooterStyleToken = {
|
|
68
|
+
[`--${prefixCls}-content-padding`]: `${otherDesignTokens.spacingModalCardPaddingTop}px ${otherDesignTokens.spacingModalCardPaddingHorizontal}px ${40 + (0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingVertical") + (0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingHorizontal")}px ${otherDesignTokens.spacingModalCardPaddingHorizontal}px`,
|
|
69
|
+
[`--${prefixCls}-footer-padding`]: `${otherDesignTokens.spacingModalButtonStickyPaddingVertical}px ${(0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingHorizontal")}px`,
|
|
70
|
+
[`--${prefixCls}-footer-border-top`]: "1px solid #E1E1E1",
|
|
71
|
+
[`--${prefixCls}-body-padding`]: `${otherDesignTokens.spacingModalCardVerticalGap}px 0`,
|
|
72
|
+
[`--${prefixCls}-header-margin-bottom`]: 0
|
|
73
|
+
};
|
|
74
|
+
var stickyHeaderFooterStyleToken = {
|
|
75
|
+
[`--${prefixCls}-content-padding`]: `${otherDesignTokens.spacingModalCardPaddingTop}px ${otherDesignTokens.spacingModalCardPaddingHorizontal}px ${40 + (0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingVertical") + (0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingHorizontal")}px ${otherDesignTokens.spacingModalCardPaddingHorizontal}px`,
|
|
76
|
+
[`--${prefixCls}-footer-padding`]: `${otherDesignTokens.spacingModalButtonStickyPaddingVertical}px ${(0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingHorizontal")}px`,
|
|
77
|
+
[`--${prefixCls}-footer-border-top`]: "1px solid #E1E1E1",
|
|
78
|
+
[`--${prefixCls}-body-padding`]: 0,
|
|
79
|
+
[`--${prefixCls}-header-margin-bottom`]: `${otherDesignTokens.spacingModalCardVerticalGap}px`
|
|
80
|
+
};
|
|
81
|
+
var stickyHeaderStyleToken = {
|
|
82
|
+
[`--${prefixCls}-content-padding`]: `0 ${otherDesignTokens.spacingModalCardPaddingHorizontal}px ${(0, import_tokenHelper.getToken)("spacingModalCardPaddingBottom")}px ${otherDesignTokens.spacingModalCardPaddingHorizontal}px`,
|
|
83
|
+
[`--${prefixCls}-footer-padding`]: `${otherDesignTokens.spacingModalCardVerticalGap}px 0 0`,
|
|
84
|
+
[`--${prefixCls}-footer-border-top`]: "none",
|
|
85
|
+
[`--${prefixCls}-body-padding`]: `${otherDesignTokens.spacingModalCardPaddingTop * 2 + 26}px 0 0 0`,
|
|
86
|
+
[`--${prefixCls}-header-margin-bottom`]: 0,
|
|
87
|
+
[`--${prefixCls}-header-padding`]: `${otherDesignTokens.spacingModalCardPaddingTop}px ${otherDesignTokens.spacingModalCardPaddingHorizontal}px`
|
|
88
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style/index.less';
|
|
3
|
+
export type ModalType = 'default' | 'stickyFooter' | 'stickyHeader' | 'stickyHeaderFooter';
|
|
4
|
+
export type ModalSize = '50%' | '66%';
|
|
5
|
+
export interface ModalProps {
|
|
6
|
+
type?: ModalType;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
theme?: string;
|
|
9
|
+
size?: ModalSize;
|
|
10
|
+
footerAlign?: 'left' | 'center' | 'right';
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
declare const Modal: (props: ModalProps) => React.JSX.Element;
|
|
14
|
+
export default Modal;
|
|
@@ -0,0 +1,168 @@
|
|
|
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/Modal/index.tsx
|
|
56
|
+
var Modal_exports = {};
|
|
57
|
+
__export(Modal_exports, {
|
|
58
|
+
default: () => Modal_default
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(Modal_exports);
|
|
61
|
+
var import_antd = require("antd");
|
|
62
|
+
var import_react = __toESM(require("react"));
|
|
63
|
+
var import_cssinjs = require("@ant-design/cssinjs");
|
|
64
|
+
var import_theme = require("../../utils/theme");
|
|
65
|
+
var import_constants = require("../../constants");
|
|
66
|
+
var import_designTokens = require("./designTokens");
|
|
67
|
+
var import_Text = __toESM(require("../Text"));
|
|
68
|
+
var import_style = require("./style/index.less");
|
|
69
|
+
var Modal = (props) => {
|
|
70
|
+
const _a = props, {
|
|
71
|
+
title,
|
|
72
|
+
style,
|
|
73
|
+
children,
|
|
74
|
+
type = "default",
|
|
75
|
+
breakpoint = "mobile",
|
|
76
|
+
size = "50%",
|
|
77
|
+
prefix = `${import_constants.cssClasses.PREFIX}-modal`,
|
|
78
|
+
footerAlign = "right",
|
|
79
|
+
footer = null
|
|
80
|
+
} = _a, attr = __objRest(_a, [
|
|
81
|
+
"title",
|
|
82
|
+
"style",
|
|
83
|
+
"children",
|
|
84
|
+
"type",
|
|
85
|
+
"breakpoint",
|
|
86
|
+
"size",
|
|
87
|
+
"prefix",
|
|
88
|
+
"footerAlign",
|
|
89
|
+
"footer"
|
|
90
|
+
]);
|
|
91
|
+
const {
|
|
92
|
+
spacingModalCardPaddingTop,
|
|
93
|
+
spacingModalButtonStickyPaddingVertical
|
|
94
|
+
} = import_designTokens.otherDesignTokens;
|
|
95
|
+
const useCustomButtonStyle = () => {
|
|
96
|
+
const hashId = (0, import_cssinjs.useStyleRegister)({
|
|
97
|
+
theme: import_theme.theme,
|
|
98
|
+
token: { baseColor: "blue" },
|
|
99
|
+
path: [`${prefix}`]
|
|
100
|
+
}, () => `
|
|
101
|
+
.${prefix}-sticky-headers .${prefix}-header {
|
|
102
|
+
}
|
|
103
|
+
.${prefix}-sticky-header.${prefix}-sticky-footer .${prefix}-body {
|
|
104
|
+
overflow-y: auto;
|
|
105
|
+
-ms-overflow-style: none;
|
|
106
|
+
scrollbar-width: none;
|
|
107
|
+
max-height: calc(80vh - ${spacingModalCardPaddingTop * 2}px - 26px - ${spacingModalButtonStickyPaddingVertical * 2}px - 40px - 16px);
|
|
108
|
+
}
|
|
109
|
+
.${prefix}-sticky-header.${prefix}-sticky-footer .${prefix}-body::-webkit-scrollbar {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
|
+
.${prefix}-left .${prefix}-footer {
|
|
113
|
+
text-align: left;
|
|
114
|
+
}
|
|
115
|
+
.${prefix}-right .${prefix}-footer {
|
|
116
|
+
text-align: right;
|
|
117
|
+
}
|
|
118
|
+
.${prefix}-center .${prefix}-footer {
|
|
119
|
+
text-align: center;
|
|
120
|
+
}
|
|
121
|
+
`);
|
|
122
|
+
return hashId;
|
|
123
|
+
};
|
|
124
|
+
useCustomButtonStyle();
|
|
125
|
+
const commonStyle = __spreadValues({}, import_designTokens.commonToken);
|
|
126
|
+
const getStyle = () => {
|
|
127
|
+
switch (type) {
|
|
128
|
+
case "stickyHeaderFooter":
|
|
129
|
+
return import_designTokens.stickyHeaderFooterStyleToken;
|
|
130
|
+
case "stickyHeader":
|
|
131
|
+
return import_designTokens.stickyHeaderStyleToken;
|
|
132
|
+
case "stickyFooter":
|
|
133
|
+
return import_designTokens.stickyFooterStyleToken;
|
|
134
|
+
default:
|
|
135
|
+
return import_designTokens.styleToken;
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const customStyle = __spreadValues({}, getStyle());
|
|
139
|
+
const stickyHeaderClass = type === "stickyHeader" ? `${prefix}-sticky-headers` : "";
|
|
140
|
+
const stickyFooterClass = type === "stickyFooter" ? `${prefix}-sticky-footer` : "";
|
|
141
|
+
const stickyHeaderFooterClass = type === "stickyHeaderFooter" ? `${prefix}-sticky-footer ${prefix}-sticky-header` : "";
|
|
142
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
143
|
+
import_antd.ConfigProvider,
|
|
144
|
+
{
|
|
145
|
+
wave: { disabled: true },
|
|
146
|
+
prefixCls: import_constants.cssClasses.PREFIX,
|
|
147
|
+
theme: {
|
|
148
|
+
components: {
|
|
149
|
+
Modal: __spreadValues({}, import_designTokens.designTokens)
|
|
150
|
+
},
|
|
151
|
+
cssVar: true,
|
|
152
|
+
hashed: false
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
156
|
+
import_antd.Modal,
|
|
157
|
+
__spreadValues({
|
|
158
|
+
width: breakpoint === "desktop" ? size : import_designTokens.otherDesignTokens.width,
|
|
159
|
+
title: /* @__PURE__ */ import_react.default.createElement(import_Text.default, { size: "TitleT21Bold" }, title),
|
|
160
|
+
style: __spreadValues(__spreadValues(__spreadValues({ top: "10%" }, commonStyle), customStyle), style),
|
|
161
|
+
footer,
|
|
162
|
+
className: `${stickyFooterClass} ${prefix}-${breakpoint} ${prefix}-${footerAlign} ${stickyHeaderClass} ${stickyHeaderFooterClass}`
|
|
163
|
+
}, attr),
|
|
164
|
+
/* @__PURE__ */ import_react.default.createElement(import_Text.default, { size: "ContentC14Regular" }, children)
|
|
165
|
+
)
|
|
166
|
+
));
|
|
167
|
+
};
|
|
168
|
+
var Modal_default = Modal;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@import './variables.less';
|
|
2
|
+
|
|
3
|
+
// 基础按钮样式
|
|
4
|
+
@components: modal;
|
|
5
|
+
|
|
6
|
+
// 使用字符串拼接
|
|
7
|
+
.@{prefix}-@{components} {
|
|
8
|
+
&::after {
|
|
9
|
+
content: '';
|
|
10
|
+
position: absolute;
|
|
11
|
+
left: 0;
|
|
12
|
+
bottom: var( ~"--@{prefix}-padding-lg");
|
|
13
|
+
display: block;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 64px;
|
|
16
|
+
background: linear-gradient(#F7F7F700, #F7F7F7);
|
|
17
|
+
border-bottom-right-radius: var( ~"--@{prefix}-border-radius-lg");
|
|
18
|
+
border-bottom-left-radius: var( ~"--@{prefix}-border-radius-lg");
|
|
19
|
+
z-index: 1;
|
|
20
|
+
}
|
|
21
|
+
&::before {
|
|
22
|
+
content: '';
|
|
23
|
+
position: absolute;
|
|
24
|
+
left: 0;
|
|
25
|
+
top: 0;
|
|
26
|
+
display: block;
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 24px;
|
|
29
|
+
background: linear-gradient(#F7F7F7, #F7F7F700);
|
|
30
|
+
border-top-right-radius: var( ~"--@{prefix}-border-radius-lg");
|
|
31
|
+
border-top-left-radius: var( ~"--@{prefix}-border-radius-lg");
|
|
32
|
+
z-index: 1;
|
|
33
|
+
}
|
|
34
|
+
.@{prefix}-@{components}-content {
|
|
35
|
+
position: static;
|
|
36
|
+
max-height: 80vh;
|
|
37
|
+
overflow-y: auto;
|
|
38
|
+
-ms-overflow-style: none;
|
|
39
|
+
/* IE 和 Edge */
|
|
40
|
+
scrollbar-width: none;
|
|
41
|
+
&::-webkit-scrollbar {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
/* Firefox */
|
|
45
|
+
}
|
|
46
|
+
.@{prefix}-@{components}-footer {
|
|
47
|
+
position: relative;
|
|
48
|
+
z-index: 2;
|
|
49
|
+
}
|
|
50
|
+
&.@{prefix}-@{components}-sticky-footer {
|
|
51
|
+
.@{prefix}-@{components}-content {
|
|
52
|
+
&::after {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.@{prefix}-@{components}-footer {
|
|
57
|
+
position: absolute;
|
|
58
|
+
bottom: 0;
|
|
59
|
+
left: 0;
|
|
60
|
+
width: 100%;
|
|
61
|
+
background: #fff;
|
|
62
|
+
border-bottom-right-radius: var( ~"--@{prefix}-border-radius-lg");
|
|
63
|
+
border-bottom-left-radius: var( ~"--@{prefix}-border-radius-lg");
|
|
64
|
+
text-align: center;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
&.@{prefix}-@{components}-desktop.@{prefix}-@{components}-sticky-footer .@{prefix}-button {
|
|
68
|
+
min-width: 290px;
|
|
69
|
+
}
|
|
70
|
+
&.@{prefix}-@{components}-mobile {
|
|
71
|
+
.@{prefix}-button {
|
|
72
|
+
min-width: 100%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.@{prefix}-@{components}-sticky-headers {
|
|
77
|
+
.@{prefix}-@{components}-content {
|
|
78
|
+
&::after {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.@{prefix}-@{components}-header {
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 0;
|
|
85
|
+
left: 0;
|
|
86
|
+
width: 100%;
|
|
87
|
+
background: #fff;
|
|
88
|
+
border-top-right-radius: var( ~"--@{prefix}-border-radius-lg");
|
|
89
|
+
border-top-left-radius: var( ~"--@{prefix}-border-radius-lg");
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const designTokens: {
|
|
2
|
+
spacingTopNavigationPaddingHorizontal: any;
|
|
3
|
+
spacingTopNavigationPaddingBottom: any;
|
|
4
|
+
spacingTopNavigationHorizontalGap: any;
|
|
5
|
+
spacingTopNavigationIconButtonHorizontalGap: any;
|
|
6
|
+
spacingTopNavigationTextLinkPaddingRight: any;
|
|
7
|
+
spacingTopNavigationTitlePaddingVertical: any;
|
|
8
|
+
colorTopNavigationTitleStandard: any;
|
|
9
|
+
colorTopNavigationTitleInverse: any;
|
|
10
|
+
colorTopNavigationGradient: any;
|
|
11
|
+
colorTopNavigationBackground: any;
|
|
12
|
+
colorTopNavigationBorderBottom: any;
|
|
13
|
+
colorTopNavigationBackgroundHaze: any;
|
|
14
|
+
colorTopNavigationBackgroundInverse: any;
|
|
15
|
+
};
|
|
16
|
+
export default designTokens;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/Navigation/designTokens.ts
|
|
30
|
+
var designTokens_exports = {};
|
|
31
|
+
__export(designTokens_exports, {
|
|
32
|
+
default: () => designTokens_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(designTokens_exports);
|
|
35
|
+
var import_tokenManager = __toESM(require("../../utils/tokenManager"));
|
|
36
|
+
var designTokens = {
|
|
37
|
+
spacingTopNavigationPaddingHorizontal: import_tokenManager.default.tokenKey("spacingTopNavigationPaddingHorizontal"),
|
|
38
|
+
// 左右padding
|
|
39
|
+
spacingTopNavigationPaddingBottom: import_tokenManager.default.tokenKey("spacingTopNavigationPaddingBottom"),
|
|
40
|
+
//底部padding
|
|
41
|
+
spacingTopNavigationHorizontalGap: import_tokenManager.default.tokenKey("spacingTopNavigationHorizontalGap"),
|
|
42
|
+
spacingTopNavigationIconButtonHorizontalGap: import_tokenManager.default.tokenKey("spacingTopNavigationIconButtonHorizontalGap"),
|
|
43
|
+
spacingTopNavigationTextLinkPaddingRight: import_tokenManager.default.tokenKey("spacingTopNavigationTextLinkPaddingRight"),
|
|
44
|
+
spacingTopNavigationTitlePaddingVertical: import_tokenManager.default.tokenKey("spacingTopNavigationTitlePaddingVertical"),
|
|
45
|
+
colorTopNavigationTitleStandard: import_tokenManager.default.tokenKey("colorTopNavigationTitleStandard"),
|
|
46
|
+
colorTopNavigationTitleInverse: import_tokenManager.default.tokenKey("colorTopNavigationTitleInverse"),
|
|
47
|
+
colorTopNavigationGradient: import_tokenManager.default.tokenKey("colorTopNavigationGradient"),
|
|
48
|
+
colorTopNavigationBackground: import_tokenManager.default.tokenKey("colorTopNavigationBackground"),
|
|
49
|
+
colorTopNavigationBorderBottom: import_tokenManager.default.tokenKey("colorTopNavigationBorderBottom"),
|
|
50
|
+
colorTopNavigationBackgroundHaze: import_tokenManager.default.tokenKey("colorTopNavigationBackgroundHaze"),
|
|
51
|
+
colorTopNavigationBackgroundInverse: import_tokenManager.default.tokenKey("colorTopNavigationBackgroundInverse")
|
|
52
|
+
};
|
|
53
|
+
var designTokens_default = designTokens;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style/index.less';
|
|
3
|
+
export interface RightIcon {
|
|
4
|
+
iconName: string;
|
|
5
|
+
onIconClick: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface RightLinkConfig {
|
|
8
|
+
linkText: string;
|
|
9
|
+
onLinkClick: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface TitleIconBadgeConfig {
|
|
12
|
+
iconName: string;
|
|
13
|
+
title: string;
|
|
14
|
+
badge: string | number;
|
|
15
|
+
}
|
|
16
|
+
export interface INavigationProps {
|
|
17
|
+
rightIcons?: RightIcon[];
|
|
18
|
+
leftIconName?: string;
|
|
19
|
+
imgBackground?: boolean;
|
|
20
|
+
rightLink?: RightLinkConfig;
|
|
21
|
+
titleIconBadge?: TitleIconBadgeConfig;
|
|
22
|
+
title?: string;
|
|
23
|
+
hideBorder?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
goBack?: () => void;
|
|
26
|
+
isInverse?: boolean;
|
|
27
|
+
noRight?: boolean;
|
|
28
|
+
leftIconSize?: string | number;
|
|
29
|
+
}
|
|
30
|
+
declare const Navigation: React.FC<INavigationProps>;
|
|
31
|
+
export default Navigation;
|