@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,75 @@
|
|
|
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/Text/designTokens.ts
|
|
20
|
+
var designTokens_exports = {};
|
|
21
|
+
__export(designTokens_exports, {
|
|
22
|
+
otherDesignTokens: () => otherDesignTokens
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(designTokens_exports);
|
|
25
|
+
var import_tokenHelper = require("../../utils/tokenHelper");
|
|
26
|
+
var otherDesignTokens = {
|
|
27
|
+
fontSizeDesktopTitleT23: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT23")}px`,
|
|
28
|
+
fontSizeDesktopContentC15: `${(0, import_tokenHelper.getToken)("fontSizeDesktopContentC15")}px`,
|
|
29
|
+
fontSizeDesktopContentC21: `${(0, import_tokenHelper.getToken)("fontSizeDesktopContentC21")}px`,
|
|
30
|
+
fontSizeDesktopTitleT21: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT21")}px`,
|
|
31
|
+
fontSizeDesktopTitleT15: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT15")}px`,
|
|
32
|
+
fontSizeDesktopContentC13: `${(0, import_tokenHelper.getToken)("fontSizeDesktopContentC13")}px`,
|
|
33
|
+
fontSizeDesktopContentC11: `${(0, import_tokenHelper.getToken)("fontSizeDesktopContentC11")}px`,
|
|
34
|
+
fontSizeDesktopContentC12: `${(0, import_tokenHelper.getToken)("fontSizeDesktopContentC12")}px`,
|
|
35
|
+
fontSizeDesktopContentC14: `${(0, import_tokenHelper.getToken)("fontSizeDesktopContentC14")}px`,
|
|
36
|
+
fontSizeDesktopTitleT1: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT1")}px`,
|
|
37
|
+
fontSizeDesktopTitleT32: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT32")}px`,
|
|
38
|
+
fontSizeDesktopTitleT41: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT41")}px`,
|
|
39
|
+
fontSizeDesktopContentC05: `${(0, import_tokenHelper.getToken)("fontSizeDesktopContentC05")}px`,
|
|
40
|
+
fontSizeDesktopContentC04: `${(0, import_tokenHelper.getToken)("fontSizeDesktopContentC04")}px`,
|
|
41
|
+
fontSizeDesktopTitleT7: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT7")}px`,
|
|
42
|
+
fontSizeDesktopTitleT8: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT8")}px`,
|
|
43
|
+
fontSizeDesktopTitleT2: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT2")}px`,
|
|
44
|
+
fontSizeDesktopTitleT5: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT5")}px`,
|
|
45
|
+
fontSizeDesktopTitleT3: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT3")}px`,
|
|
46
|
+
fontSizeDesktopTitleT4: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT4")}px`,
|
|
47
|
+
fontSizeDesktopTitleT10: `${(0, import_tokenHelper.getToken)("fontSizeDesktopTitleT10")}px`,
|
|
48
|
+
fontSizeMobileContentC04: `${(0, import_tokenHelper.getToken)("fontSizeMobileContentC04")}px`,
|
|
49
|
+
fontSizeMobileContentC05: `${(0, import_tokenHelper.getToken)("fontSizeMobileContentC05")}px`,
|
|
50
|
+
fontSizeMobileContentC11: `${(0, import_tokenHelper.getToken)("fontSizeMobileContentC11")}px`,
|
|
51
|
+
fontSizeMobileContentC12: `${(0, import_tokenHelper.getToken)("fontSizeMobileContentC12")}px`,
|
|
52
|
+
fontSizeMobileContentC13: `${(0, import_tokenHelper.getToken)("fontSizeMobileContentC13")}px`,
|
|
53
|
+
fontSizeMobileContentC14: `${(0, import_tokenHelper.getToken)("fontSizeMobileContentC14")}px`,
|
|
54
|
+
fontSizeMobileContentC15: `${(0, import_tokenHelper.getToken)("fontSizeMobileContentC15")}px`,
|
|
55
|
+
fontSizeMobileContentC21: `${(0, import_tokenHelper.getToken)("fontSizeMobileContentC21")}px`,
|
|
56
|
+
fontSizeMobileTitleT12: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT12")}px`,
|
|
57
|
+
fontSizeMobileTitleT13: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT13")}px`,
|
|
58
|
+
fontSizeMobileTitleT14: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT14")}px`,
|
|
59
|
+
fontSizeMobileTitleT15: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT15")}px`,
|
|
60
|
+
fontSizeMobileTitleT21: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT21")}px`,
|
|
61
|
+
fontSizeMobileTitleT23: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT23")}px`,
|
|
62
|
+
fontSizeMobileTitleT24: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT24")}px`,
|
|
63
|
+
fontSizeMobileTitleT25: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT25")}px`,
|
|
64
|
+
fontSizeMobileTitleT32: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT32")}px`,
|
|
65
|
+
fontSizeMobileTitleT34: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT34")}px`,
|
|
66
|
+
fontSizeMobileTitleT41: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT41")}px`,
|
|
67
|
+
fontSizeMobileTitleT45: `${(0, import_tokenHelper.getToken)("fontSizeMobileTitleT45")}px`,
|
|
68
|
+
fontSizeMobileNavigation: `${(0, import_tokenHelper.getToken)("fontSizeMobileNavigation")}px`,
|
|
69
|
+
fontFamilyPromaryRegular: (0, import_tokenHelper.getToken)("fontFamilyPromaryRegular"),
|
|
70
|
+
fontFamilyPromarySemiBold: (0, import_tokenHelper.getToken)("fontFamilyPromarySemiBold"),
|
|
71
|
+
fontFamilyPromaryBold: (0, import_tokenHelper.getToken)("fontFamilyPromaryBold"),
|
|
72
|
+
fontFamilySecondaryRegular: (0, import_tokenHelper.getToken)("fontFamilySecondaryRegular"),
|
|
73
|
+
fontFamilySecondarySemiBold: (0, import_tokenHelper.getToken)("fontFamilySecondarySemiBold"),
|
|
74
|
+
fontFamilySecondaryBold: (0, import_tokenHelper.getToken)("fontFamilySecondaryBold")
|
|
75
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style/index.less';
|
|
3
|
+
export type Size = 'TitleT41Bold' | 'TitleT32Bold' | 'TitleT23Bold' | 'TitleT21Bold' | 'TitleT15Bold' | 'ContentC14Bold' | 'ContentC14Regular' | 'ContentC14Strikethrough' | 'ContentC14TextLink' | 'ContentC13Bold' | 'ContentC13Regular' | 'ContentC13Strikethrough' | 'ContentC13TextLink' | 'ContentC12Regular' | 'ContentC12Strikethrough' | 'ContentC12SemiBold' | 'ContentC12Bold' | 'ContentC12TextLink' | 'navigation';
|
|
4
|
+
export interface TextProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
size?: Size;
|
|
8
|
+
prefixCls?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
declare const Text: (props: TextProps) => React.JSX.Element;
|
|
13
|
+
export default Text;
|
|
@@ -0,0 +1,432 @@
|
|
|
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/Text/index.tsx
|
|
56
|
+
var Text_exports = {};
|
|
57
|
+
__export(Text_exports, {
|
|
58
|
+
default: () => Text_default
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(Text_exports);
|
|
61
|
+
var import_react = __toESM(require("react"));
|
|
62
|
+
var import_classnames = __toESM(require("classnames"));
|
|
63
|
+
var import_cssinjs = require("@ant-design/cssinjs");
|
|
64
|
+
var import_theme = require("../../utils/theme");
|
|
65
|
+
var import_designTokens = require("./designTokens");
|
|
66
|
+
var import_constants = require("../../constants");
|
|
67
|
+
var import_style = require("./style/index.less");
|
|
68
|
+
var Text = (props) => {
|
|
69
|
+
const _a = props, {
|
|
70
|
+
children,
|
|
71
|
+
className,
|
|
72
|
+
size = "ContentC14Bold",
|
|
73
|
+
prefixCls = import_constants.cssClasses.PREFIX + "-text",
|
|
74
|
+
style,
|
|
75
|
+
breakpoint = "Mobile"
|
|
76
|
+
} = _a, attr = __objRest(_a, [
|
|
77
|
+
"children",
|
|
78
|
+
"className",
|
|
79
|
+
"size",
|
|
80
|
+
"prefixCls",
|
|
81
|
+
"style",
|
|
82
|
+
"breakpoint"
|
|
83
|
+
]);
|
|
84
|
+
const {
|
|
85
|
+
fontSizeDesktopTitleT23,
|
|
86
|
+
// fontSizeDesktopContentC15,
|
|
87
|
+
// fontSizeDesktopContentC21,
|
|
88
|
+
fontSizeDesktopTitleT21,
|
|
89
|
+
fontSizeDesktopTitleT15,
|
|
90
|
+
fontSizeDesktopContentC13,
|
|
91
|
+
// fontSizeDesktopContentC11,
|
|
92
|
+
fontSizeDesktopContentC12,
|
|
93
|
+
fontSizeDesktopContentC14,
|
|
94
|
+
// fontSizeDesktopTitleT1,
|
|
95
|
+
fontSizeDesktopTitleT32,
|
|
96
|
+
fontSizeDesktopTitleT41,
|
|
97
|
+
// fontSizeDesktopContentC05,
|
|
98
|
+
// fontSizeDesktopContentC04,
|
|
99
|
+
// fontSizeDesktopTitleT7,
|
|
100
|
+
// fontSizeDesktopTitleT8,
|
|
101
|
+
// fontSizeDesktopTitleT2,
|
|
102
|
+
// fontSizeDesktopTitleT5,
|
|
103
|
+
// fontSizeDesktopTitleT3,
|
|
104
|
+
// fontSizeDesktopTitleT4,
|
|
105
|
+
// fontSizeDesktopTitleT10,
|
|
106
|
+
// fontSizeMobileContentC04,
|
|
107
|
+
// fontSizeMobileContentC05,
|
|
108
|
+
// fontSizeMobileContentC11,
|
|
109
|
+
fontSizeMobileContentC12,
|
|
110
|
+
fontSizeMobileContentC13,
|
|
111
|
+
fontSizeMobileContentC14,
|
|
112
|
+
// fontSizeMobileContentC15,
|
|
113
|
+
// fontSizeMobileContentC21,
|
|
114
|
+
// fontSizeMobileTitleT12,
|
|
115
|
+
// fontSizeMobileTitleT13,
|
|
116
|
+
// fontSizeMobileTitleT14,
|
|
117
|
+
fontSizeMobileTitleT15,
|
|
118
|
+
fontSizeMobileTitleT21,
|
|
119
|
+
fontSizeMobileTitleT23,
|
|
120
|
+
// fontSizeMobileTitleT24,
|
|
121
|
+
// fontSizeMobileTitleT25,
|
|
122
|
+
fontSizeMobileTitleT32,
|
|
123
|
+
// fontSizeMobileTitleT34,
|
|
124
|
+
fontSizeMobileTitleT41,
|
|
125
|
+
// fontSizeMobileTitleT45,
|
|
126
|
+
// fontSizeMobileNavigation,
|
|
127
|
+
// fontFamilyPromaryRegular,
|
|
128
|
+
// fontFamilyPromarySemiBold,
|
|
129
|
+
fontFamilyPromaryBold,
|
|
130
|
+
fontFamilySecondaryRegular,
|
|
131
|
+
fontFamilySecondarySemiBold,
|
|
132
|
+
fontFamilySecondaryBold
|
|
133
|
+
} = import_designTokens.otherDesignTokens;
|
|
134
|
+
const fontFamilyMap = {
|
|
135
|
+
fontFamilyPromaryRegular: "Regular",
|
|
136
|
+
fontFamilyPromarySemiBold: "SemiBold",
|
|
137
|
+
fontFamilyPromaryBold: "Bold",
|
|
138
|
+
fontFamilySecondaryRegular: "Regular",
|
|
139
|
+
fontFamilySecondarySemiBold: "SemiBold",
|
|
140
|
+
fontFamilySecondaryBold: "Bold"
|
|
141
|
+
};
|
|
142
|
+
const useCustomButtonStyle = () => {
|
|
143
|
+
const hashId = (0, import_cssinjs.useStyleRegister)({
|
|
144
|
+
theme: import_theme.theme,
|
|
145
|
+
token: { baseColor: "blue" },
|
|
146
|
+
path: [`${prefixCls}-size`]
|
|
147
|
+
}, () => `
|
|
148
|
+
.${prefixCls}-mobile.${prefixCls}-size-TitleT41Bold {
|
|
149
|
+
font-size: ${fontSizeMobileTitleT41};
|
|
150
|
+
line-height: 1.2;
|
|
151
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
152
|
+
// font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
153
|
+
font-weight: bold;
|
|
154
|
+
}
|
|
155
|
+
.${prefixCls}-mobile.${prefixCls}-size-TitleT32Bold {
|
|
156
|
+
font-size: ${fontSizeMobileTitleT32};
|
|
157
|
+
line-height: 1.2;
|
|
158
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
159
|
+
font-weight: bold;
|
|
160
|
+
}
|
|
161
|
+
.${prefixCls}-mobile.${prefixCls}-size-TitleT23Bold {
|
|
162
|
+
font-size: ${fontSizeMobileTitleT23};
|
|
163
|
+
line-height: 1.2;
|
|
164
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
165
|
+
font-weight: bold;
|
|
166
|
+
}
|
|
167
|
+
.${prefixCls}-mobile.${prefixCls}-size-TitleT21Bold {
|
|
168
|
+
font-size: ${fontSizeMobileTitleT21};
|
|
169
|
+
line-height: 1.25;
|
|
170
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
171
|
+
font-weight: bold;
|
|
172
|
+
}
|
|
173
|
+
.${prefixCls}-mobile.${prefixCls}-size-TitleT15Bold {
|
|
174
|
+
font-size: ${fontSizeMobileTitleT15};
|
|
175
|
+
line-height: 1.25;
|
|
176
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
177
|
+
font-weight: bold;
|
|
178
|
+
}
|
|
179
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC14Bold {
|
|
180
|
+
font-size: ${fontSizeMobileContentC14};
|
|
181
|
+
line-height: 1.5;
|
|
182
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
183
|
+
font-weight: bold;
|
|
184
|
+
}
|
|
185
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC14Regular {
|
|
186
|
+
font-size: ${fontSizeMobileContentC14};
|
|
187
|
+
line-height: 1.5;
|
|
188
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
189
|
+
font-weight: normal;
|
|
190
|
+
letter-spacing: 0.1px;
|
|
191
|
+
}
|
|
192
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC14Strikethrough {
|
|
193
|
+
color: #757575;
|
|
194
|
+
font-size: ${fontSizeMobileContentC14};
|
|
195
|
+
line-height: 1.5;
|
|
196
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
197
|
+
font-weight: normal;
|
|
198
|
+
text-decoration: line-through;
|
|
199
|
+
letter-spacing: 0.1px;
|
|
200
|
+
}
|
|
201
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC14TextLink {
|
|
202
|
+
color: #4E28E8;
|
|
203
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
204
|
+
font-weight: bold;
|
|
205
|
+
font-size: ${fontSizeMobileContentC14};
|
|
206
|
+
line-height: 1.5;
|
|
207
|
+
text-decoration: underline;
|
|
208
|
+
letter-spacing: 0.1px;
|
|
209
|
+
}
|
|
210
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC13Bold {
|
|
211
|
+
font-size: ${fontSizeMobileContentC13};
|
|
212
|
+
line-height: 1.5;
|
|
213
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
214
|
+
font-weight: bold;
|
|
215
|
+
}
|
|
216
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC13Regular {
|
|
217
|
+
font-size: ${fontSizeMobileContentC13};
|
|
218
|
+
line-height: 1.5;
|
|
219
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
220
|
+
font-weight: normal;
|
|
221
|
+
letter-spacing: 0.1px;
|
|
222
|
+
}
|
|
223
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC13Strikethrough {
|
|
224
|
+
color: #757575;
|
|
225
|
+
font-size: ${fontSizeMobileContentC13};
|
|
226
|
+
line-height: 1.5;
|
|
227
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
228
|
+
font-weight: normal;
|
|
229
|
+
text-decoration: line-through;
|
|
230
|
+
letter-spacing: 0.1px;
|
|
231
|
+
}
|
|
232
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC13TextLink {
|
|
233
|
+
color: #4E28E8;
|
|
234
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
235
|
+
font-weight: bold;
|
|
236
|
+
font-size: ${fontSizeMobileContentC13};
|
|
237
|
+
line-height: 1.5;
|
|
238
|
+
text-decoration: underline;
|
|
239
|
+
letter-spacing: 0.1px;
|
|
240
|
+
}
|
|
241
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC12Regular {
|
|
242
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
243
|
+
font-weight: normal;
|
|
244
|
+
font-size: ${fontSizeMobileContentC12};
|
|
245
|
+
line-height: 1.5;
|
|
246
|
+
letter-spacing: 0.1px;
|
|
247
|
+
}
|
|
248
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC12Strikethrough {
|
|
249
|
+
color: #757575;
|
|
250
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
251
|
+
font-weight: normal;
|
|
252
|
+
font-size: ${fontSizeMobileContentC12};
|
|
253
|
+
line-height: 1.5;
|
|
254
|
+
text-decoration: line-through;
|
|
255
|
+
letter-spacing: 0.2px;
|
|
256
|
+
}
|
|
257
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC12SemiBold {
|
|
258
|
+
font-family: ${fontFamilySecondarySemiBold}-${fontFamilyMap.fontFamilySecondarySemiBold};
|
|
259
|
+
font-weight: bold;
|
|
260
|
+
font-size: ${fontSizeMobileContentC12};
|
|
261
|
+
line-height: 1.5;
|
|
262
|
+
letter-spacing: 0.2px;
|
|
263
|
+
}
|
|
264
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC12Bold {
|
|
265
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
266
|
+
font-weight: bold;
|
|
267
|
+
font-size: ${fontSizeMobileContentC12};
|
|
268
|
+
line-height: 1.5;
|
|
269
|
+
letter-spacing: 0.2px;
|
|
270
|
+
}
|
|
271
|
+
.${prefixCls}-mobile.${prefixCls}-size-ContentC12TextLink {
|
|
272
|
+
color: #4E28E8;
|
|
273
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
274
|
+
font-weight: bold;
|
|
275
|
+
font-size: ${fontSizeMobileContentC12};
|
|
276
|
+
line-height: 1.5;
|
|
277
|
+
text-decoration: underline;
|
|
278
|
+
letter-spacing: 0.2px;
|
|
279
|
+
}
|
|
280
|
+
.${prefixCls}-desktop.${prefixCls}-size-TitleT41Bold {
|
|
281
|
+
font-size: ${fontSizeDesktopTitleT41};
|
|
282
|
+
line-height: 1.2;
|
|
283
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
284
|
+
font-weight: bold;
|
|
285
|
+
}
|
|
286
|
+
.${prefixCls}-desktop.${prefixCls}-size-TitleT32Bold {
|
|
287
|
+
font-size: ${fontSizeDesktopTitleT32};
|
|
288
|
+
line-height: 1.2;
|
|
289
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
290
|
+
font-weight: bold;
|
|
291
|
+
}
|
|
292
|
+
.${prefixCls}-desktop.${prefixCls}-size-TitleT23Bold {
|
|
293
|
+
font-size: ${fontSizeDesktopTitleT23};
|
|
294
|
+
line-height: 1.2;
|
|
295
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
296
|
+
font-weight: bold;
|
|
297
|
+
}
|
|
298
|
+
.${prefixCls}-desktop.${prefixCls}-size-TitleT21Bold {
|
|
299
|
+
font-size: ${fontSizeDesktopTitleT21};
|
|
300
|
+
line-height: 1.25;
|
|
301
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
302
|
+
font-weight: bold;
|
|
303
|
+
}
|
|
304
|
+
.${prefixCls}-desktop.${prefixCls}-size-TitleT15Bold {
|
|
305
|
+
font-size: ${fontSizeDesktopTitleT15};
|
|
306
|
+
line-height: 1.25;
|
|
307
|
+
font-family: ${fontFamilyPromaryBold}-${fontFamilyMap.fontFamilyPromaryBold};
|
|
308
|
+
font-weight: bold;
|
|
309
|
+
}
|
|
310
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC14Bold {
|
|
311
|
+
font-size: ${fontSizeDesktopContentC14};
|
|
312
|
+
line-height: 1.5;
|
|
313
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
314
|
+
font-weight: bold;
|
|
315
|
+
}
|
|
316
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC14Regular {
|
|
317
|
+
font-size: ${fontSizeDesktopContentC14};
|
|
318
|
+
line-height: 1.5;
|
|
319
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
320
|
+
font-weight: normal;
|
|
321
|
+
letter-spacing: 0.1px;
|
|
322
|
+
}
|
|
323
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC14Strikethrough {
|
|
324
|
+
color: #757575;
|
|
325
|
+
font-size: ${fontSizeDesktopContentC14};
|
|
326
|
+
line-height: 1.5;
|
|
327
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
328
|
+
font-weight: normal;
|
|
329
|
+
text-decoration: line-through;
|
|
330
|
+
letter-spacing: 0.1px;
|
|
331
|
+
}
|
|
332
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC14TextLink {
|
|
333
|
+
color: #4E28E8;
|
|
334
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
335
|
+
font-weight: bold;
|
|
336
|
+
font-size: ${fontSizeDesktopContentC14};
|
|
337
|
+
line-height: 1.5;
|
|
338
|
+
text-decoration: underline;
|
|
339
|
+
letter-spacing: 0.1px;
|
|
340
|
+
}
|
|
341
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC13Bold {
|
|
342
|
+
font-size: ${fontSizeDesktopContentC13};
|
|
343
|
+
line-height: 1.5;
|
|
344
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
345
|
+
font-weight: bold;
|
|
346
|
+
}
|
|
347
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC13Regular {
|
|
348
|
+
font-size: ${fontSizeDesktopContentC13};
|
|
349
|
+
line-height: 1.5;
|
|
350
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
351
|
+
font-weight: normal;
|
|
352
|
+
letter-spacing: 0.1px;
|
|
353
|
+
}
|
|
354
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC13Strikethrough {
|
|
355
|
+
color: #757575;
|
|
356
|
+
font-size: ${fontSizeDesktopContentC13};
|
|
357
|
+
line-height: 1.5;
|
|
358
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
359
|
+
font-weight: normal;
|
|
360
|
+
text-decoration: line-through;
|
|
361
|
+
letter-spacing: 0.1px;
|
|
362
|
+
}
|
|
363
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC13TextLink {
|
|
364
|
+
color: #4E28E8;
|
|
365
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
366
|
+
font-weight: bold;
|
|
367
|
+
font-size: ${fontSizeDesktopContentC13};
|
|
368
|
+
line-height: 1.5;
|
|
369
|
+
text-decoration: underline;
|
|
370
|
+
letter-spacing: 0.1px;
|
|
371
|
+
}
|
|
372
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC12Regular {
|
|
373
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
374
|
+
font-weight: normal;
|
|
375
|
+
font-size: ${fontSizeDesktopContentC12};
|
|
376
|
+
line-height: 1.5;
|
|
377
|
+
letter-spacing: 0.1px;
|
|
378
|
+
}
|
|
379
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC12Strikethrough {
|
|
380
|
+
color: #757575;
|
|
381
|
+
font-family: ${fontFamilySecondaryRegular}-${fontFamilyMap.fontFamilySecondaryRegular};
|
|
382
|
+
font-weight: normal;
|
|
383
|
+
font-size: ${fontSizeDesktopContentC12};
|
|
384
|
+
line-height: 1.5;
|
|
385
|
+
text-decoration: line-through;
|
|
386
|
+
letter-spacing: 0.2px;
|
|
387
|
+
}
|
|
388
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC12SemiBold {
|
|
389
|
+
font-family: ${fontFamilySecondarySemiBold}-${fontFamilyMap.fontFamilySecondarySemiBold};
|
|
390
|
+
font-weight: bold;
|
|
391
|
+
font-size: ${fontSizeDesktopContentC12};
|
|
392
|
+
line-height: 1.5;
|
|
393
|
+
letter-spacing: 0.2px;
|
|
394
|
+
}
|
|
395
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC12Bold {
|
|
396
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
397
|
+
font-weight: bold;
|
|
398
|
+
font-size: ${fontSizeDesktopContentC12};
|
|
399
|
+
line-height: 1.5;
|
|
400
|
+
letter-spacing: 0.2px;
|
|
401
|
+
}
|
|
402
|
+
.${prefixCls}-desktop.${prefixCls}-size-ContentC12TextLink {
|
|
403
|
+
color: #4E28E8;
|
|
404
|
+
font-family: ${fontFamilySecondaryBold}-${fontFamilyMap.fontFamilySecondaryBold};
|
|
405
|
+
font-weight: bold;
|
|
406
|
+
font-size: ${fontSizeDesktopContentC12};
|
|
407
|
+
line-height: 1.5;
|
|
408
|
+
text-decoration: underline;
|
|
409
|
+
letter-spacing: 0.2px;
|
|
410
|
+
}
|
|
411
|
+
`);
|
|
412
|
+
return hashId;
|
|
413
|
+
};
|
|
414
|
+
useCustomButtonStyle();
|
|
415
|
+
const baseProps = {
|
|
416
|
+
className: (0, import_classnames.default)(
|
|
417
|
+
prefixCls,
|
|
418
|
+
{
|
|
419
|
+
[`${prefixCls}-size-${size}`]: size
|
|
420
|
+
},
|
|
421
|
+
breakpoint === "Desktop" ? `${prefixCls}-desktop` : `${prefixCls}-mobile`,
|
|
422
|
+
className
|
|
423
|
+
),
|
|
424
|
+
style
|
|
425
|
+
};
|
|
426
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
427
|
+
"span",
|
|
428
|
+
__spreadValues(__spreadValues({}, baseProps), attr),
|
|
429
|
+
children
|
|
430
|
+
);
|
|
431
|
+
};
|
|
432
|
+
var Text_default = Text;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const designTokens: {
|
|
2
|
+
borderRadius: any;
|
|
3
|
+
paddingInline: any;
|
|
4
|
+
colorText: any;
|
|
5
|
+
colorBorder: string;
|
|
6
|
+
hoverBorderColor: string;
|
|
7
|
+
activeBorderColor: string;
|
|
8
|
+
activeShadow: string;
|
|
9
|
+
colorError: string;
|
|
10
|
+
colorBgContainer: any;
|
|
11
|
+
colorBgContainerDisabled: any;
|
|
12
|
+
};
|
|
13
|
+
declare const otherDesignTokens: {
|
|
14
|
+
hoverBorderColor: any;
|
|
15
|
+
activeBorderColor: any;
|
|
16
|
+
paddingBlock: any;
|
|
17
|
+
colorLabelActive: any;
|
|
18
|
+
colorLabel: any;
|
|
19
|
+
width: string;
|
|
20
|
+
colorError: any;
|
|
21
|
+
iconPaddingLeft: any;
|
|
22
|
+
colorInputIconStandard: any;
|
|
23
|
+
spacingInputTextHintMessagePaddingTop: any;
|
|
24
|
+
colorInputTextHintMessage: any;
|
|
25
|
+
colorInputTextCounter: any;
|
|
26
|
+
colorErrorBorder: any;
|
|
27
|
+
colorInputBackgroundHaze: any;
|
|
28
|
+
};
|
|
29
|
+
declare const commonToken: {
|
|
30
|
+
[x: string]: string | number;
|
|
31
|
+
};
|
|
32
|
+
declare const styleToken: {
|
|
33
|
+
[x: string]: string;
|
|
34
|
+
};
|
|
35
|
+
declare const stickyStyleToken: {
|
|
36
|
+
[x: string]: string;
|
|
37
|
+
};
|
|
38
|
+
export { designTokens, otherDesignTokens, styleToken, stickyStyleToken, commonToken };
|
|
@@ -0,0 +1,100 @@
|
|
|
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/TextInputInside/designTokens.ts
|
|
20
|
+
var designTokens_exports = {};
|
|
21
|
+
__export(designTokens_exports, {
|
|
22
|
+
commonToken: () => commonToken,
|
|
23
|
+
designTokens: () => designTokens,
|
|
24
|
+
otherDesignTokens: () => otherDesignTokens,
|
|
25
|
+
stickyStyleToken: () => stickyStyleToken,
|
|
26
|
+
styleToken: () => styleToken
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(designTokens_exports);
|
|
29
|
+
var import_tokenHelper = require("../../utils/tokenHelper");
|
|
30
|
+
var import_constants = require("../../constants");
|
|
31
|
+
var prefixCls = import_constants.cssClasses.PREFIX + "-modal";
|
|
32
|
+
var designTokens = {
|
|
33
|
+
borderRadius: (0, import_tokenHelper.getToken)("borderRadiusInput"),
|
|
34
|
+
// 圆角
|
|
35
|
+
// paddingBlock: getToken('spacingInputPaddingVertical'), // 纵向内边距
|
|
36
|
+
paddingInline: (0, import_tokenHelper.getToken)("spacingInputPaddingHorizontal"),
|
|
37
|
+
// 横向内边距
|
|
38
|
+
colorText: (0, import_tokenHelper.getToken)("colorInputTextActive"),
|
|
39
|
+
// 内容文本颜色
|
|
40
|
+
colorBorder: "transparent",
|
|
41
|
+
// 边框颜色
|
|
42
|
+
hoverBorderColor: "transparent",
|
|
43
|
+
// 边框颜色
|
|
44
|
+
activeBorderColor: "transparent",
|
|
45
|
+
// 边框颜色
|
|
46
|
+
activeShadow: "",
|
|
47
|
+
// 边框shadow颜色
|
|
48
|
+
colorError: "transparent",
|
|
49
|
+
// 错误边框颜色
|
|
50
|
+
colorBgContainer: (0, import_tokenHelper.getToken)("colorInputBackground"),
|
|
51
|
+
// 背景颜色
|
|
52
|
+
colorBgContainerDisabled: (0, import_tokenHelper.getToken)("colorInputBackgroundHaze")
|
|
53
|
+
// 背景颜色
|
|
54
|
+
};
|
|
55
|
+
var otherDesignTokens = {
|
|
56
|
+
hoverBorderColor: (0, import_tokenHelper.getToken)("colorInputBorderActive"),
|
|
57
|
+
// hover边框颜色
|
|
58
|
+
activeBorderColor: (0, import_tokenHelper.getToken)("colorInputBorderActive"),
|
|
59
|
+
// active边框颜色
|
|
60
|
+
paddingBlock: (0, import_tokenHelper.getToken)("spacingInputPaddingVerticalLg"),
|
|
61
|
+
// 纵向内边距
|
|
62
|
+
colorLabelActive: (0, import_tokenHelper.getToken)("colorInputTextLabelActive"),
|
|
63
|
+
// label激活状态的颜色
|
|
64
|
+
colorLabel: (0, import_tokenHelper.getToken)("colorInputTextLabel"),
|
|
65
|
+
// label文本颜色
|
|
66
|
+
width: `calc(100vw - ${(0, import_tokenHelper.getToken)("spacingModalPaddingHorizontal")}px - ${(0, import_tokenHelper.getToken)("spacingModalPaddingHorizontal")}px)`,
|
|
67
|
+
// 宽度
|
|
68
|
+
colorError: (0, import_tokenHelper.getToken)("colorInputTextError"),
|
|
69
|
+
// 错误信息文本颜色
|
|
70
|
+
iconPaddingLeft: (0, import_tokenHelper.getToken)("spacingInputIconPaddingLeft"),
|
|
71
|
+
// 错误信息文本颜色
|
|
72
|
+
colorInputIconStandard: (0, import_tokenHelper.getToken)("colorInputIconStandard"),
|
|
73
|
+
// 标准icon颜色
|
|
74
|
+
spacingInputTextHintMessagePaddingTop: (0, import_tokenHelper.getToken)("spacingInputTextHintMessagePaddingTop"),
|
|
75
|
+
// 错误信息文本颜色
|
|
76
|
+
colorInputTextHintMessage: (0, import_tokenHelper.getToken)("colorInputTextHintMessage"),
|
|
77
|
+
// 信息文本颜色
|
|
78
|
+
colorInputTextCounter: (0, import_tokenHelper.getToken)("colorInputTextCounter"),
|
|
79
|
+
// 字数统计文本颜色
|
|
80
|
+
colorErrorBorder: (0, import_tokenHelper.getToken)("colorInputBorderError"),
|
|
81
|
+
// error颜色
|
|
82
|
+
colorInputBackgroundHaze: (0, import_tokenHelper.getToken)("colorInputBackgroundHaze")
|
|
83
|
+
// 背景颜色
|
|
84
|
+
};
|
|
85
|
+
var commonToken = {
|
|
86
|
+
[`--${prefixCls}-header-margin-bottom`]: 0,
|
|
87
|
+
[`--${prefixCls}-footer-margin-top`]: 0,
|
|
88
|
+
[`--${prefixCls}-footer-padding`]: `${(0, import_tokenHelper.getToken)("spacingModalButtonPaddingTop")}px 0 0`,
|
|
89
|
+
[`--${prefixCls}-body-padding`]: `${(0, import_tokenHelper.getToken)("spacingModalCardVerticalGap")}px 0`
|
|
90
|
+
};
|
|
91
|
+
var styleToken = {
|
|
92
|
+
[`--${prefixCls}-content-padding`]: `${(0, import_tokenHelper.getToken)("spacingModalCardPaddingTop")}px ${(0, import_tokenHelper.getToken)("spacingModalCardPaddingHorizontal")}px ${(0, import_tokenHelper.getToken)("spacingModalCardPaddingBottom")}px ${(0, import_tokenHelper.getToken)("spacingModalCardPaddingHorizontal")}px`,
|
|
93
|
+
[`--${prefixCls}-footer-border-top`]: "none",
|
|
94
|
+
[`--${prefixCls}-footer-padding`]: "0px"
|
|
95
|
+
};
|
|
96
|
+
var stickyStyleToken = {
|
|
97
|
+
[`--${prefixCls}-content-padding`]: `${(0, import_tokenHelper.getToken)("spacingModalCardPaddingTop")}px ${(0, import_tokenHelper.getToken)("spacingModalCardPaddingHorizontal")}px ${40 + (0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingVertical") + (0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingHorizontal")}px ${(0, import_tokenHelper.getToken)("spacingModalCardPaddingHorizontal")}px`,
|
|
98
|
+
[`--${prefixCls}-footer-padding`]: `${(0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingVertical")}px ${(0, import_tokenHelper.getToken)("spacingModalButtonStickyPaddingHorizontal")}px`,
|
|
99
|
+
[`--${prefixCls}-footer-border-top`]: "1px solid #E1E1E1"
|
|
100
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style/index.less';
|
|
3
|
+
export type InputType = 'default' | 'search' | 'link' | 'image' | 'counter';
|
|
4
|
+
export interface TextInputInsideProps {
|
|
5
|
+
type?: InputType;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
declare const TextInputInside: (props: TextInputInsideProps) => React.JSX.Element;
|
|
10
|
+
export default TextInputInside;
|