@digitalc/dxp-ui 0.0.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/LICENSE +21 -0
- package/README.md +38 -0
- package/es/assets/iconFont/iconfont.css +734 -0
- package/es/assets/iconFont/iconfont.eot +0 -0
- package/es/assets/iconFont/iconfont.js +43 -0
- package/es/assets/iconFont/iconfont.json +1262 -0
- package/es/assets/iconFont/iconfont.svg +377 -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/token.json +239 -0
- package/es/components/Button/designTokens.d.ts +66 -0
- package/es/components/Button/designTokens.js +131 -0
- package/es/components/Button/index.d.ts +44 -0
- package/es/components/Button/index.js +92 -0
- package/es/components/Button/index_backup.d.ts +72 -0
- package/es/components/Button/index_backup.js +110 -0
- package/es/components/Button/style/button.less +34 -0
- package/es/components/Button/style/variables.less +5 -0
- package/es/components/Text/index.d.ts +32 -0
- package/es/components/Text/index.js +59 -0
- package/es/components/Text/style/text.less +116 -0
- package/es/components/Text/style/variables.less +4 -0
- package/es/components/index.d.ts +4 -0
- package/es/components/index.js +4 -0
- package/es/constants/index.d.ts +15 -0
- package/es/constants/index.js +16 -0
- package/es/fonts/Poppins/Poppins-Bold.ttf +0 -0
- package/es/fonts/Poppins/Poppins-BoldItalic.ttf +0 -0
- package/es/fonts/Poppins/Poppins-ExtraBold.ttf +0 -0
- package/es/fonts/Poppins/Poppins-ExtraBoldItalic.ttf +0 -0
- package/es/fonts/Poppins/Poppins-ExtraLight.ttf +0 -0
- package/es/fonts/Poppins/Poppins-ExtraLightItalic.ttf +0 -0
- package/es/fonts/Poppins/Poppins-Italic.ttf +0 -0
- package/es/fonts/Poppins/Poppins-Light.ttf +0 -0
- package/es/fonts/Poppins/Poppins-LightItalic.ttf +0 -0
- package/es/fonts/Poppins/Poppins-Medium.ttf +0 -0
- package/es/fonts/Poppins/Poppins-MediumItalic.ttf +0 -0
- package/es/fonts/Poppins/Poppins-Regular.ttf +0 -0
- package/es/fonts/Poppins/Poppins-SemiBold.ttf +0 -0
- package/es/fonts/Poppins/Poppins-SemiBoldItalic.ttf +0 -0
- package/es/fonts/Poppins/Poppins-Thin.ttf +0 -0
- package/es/fonts/Poppins/Poppins-ThinItalic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-Black.ttf +0 -0
- package/es/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-Bold.ttf +0 -0
- package/es/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-ExtraBold.ttf +0 -0
- package/es/fonts/Roboto/Roboto-ExtraBoldItalic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-ExtraLight.ttf +0 -0
- package/es/fonts/Roboto/Roboto-ExtraLightItalic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf +0 -0
- package/es/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-Light.ttf +0 -0
- package/es/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/es/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/es/fonts/Roboto/Roboto-SemiBold.ttf +0 -0
- package/es/fonts/Roboto/Roboto-SemiBoldItalic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-Thin.ttf +0 -0
- package/es/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
- package/es/fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf +0 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +3 -0
- package/es/style/antdDesignToken.json +503 -0
- package/es/style/themes/base-vars.css +6 -0
- package/es/style/themes/colorful.css +5 -0
- package/es/style/themes/index.css +4 -0
- package/es/style/variables.less +34 -0
- package/es/tokens/DXPGlobal.d.ts +240 -0
- package/es/tokens/DXPGlobal.js +5 -0
- package/es/utils/noop.d.ts +1 -0
- package/es/utils/noop.js +1 -0
- package/es/utils/themeContext.d.ts +11 -0
- package/es/utils/themeContext.js +39 -0
- package/es/utils/tokenHelper.d.ts +1 -0
- package/es/utils/tokenHelper.js +4 -0
- package/es/utils/tokenManager.d.ts +1464 -0
- package/es/utils/tokenManager.js +750 -0
- package/package.json +112 -0
- package/umd/dxp-ui.min.css +1 -0
- package/umd/dxp-ui.min.js +1 -0
- package/umd/static/Poppins-Bold.8001a01b.ttf +0 -0
- package/umd/static/Roboto-Bold.ff276312.ttf +0 -0
- package/umd/static/Roboto-Regular.a5023d7b.ttf +0 -0
- package/umd/static/Roboto-SemiBold.3452daa4.ttf +0 -0
package/package.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@digitalc/dxp-ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A UI library of Digitalc Design React Component",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"react-component"
|
|
8
|
+
],
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": "iwhaleFED@126.com",
|
|
11
|
+
"main": "./umd/dxp-ui.min.js",
|
|
12
|
+
"types": "./es/index.d.ts",
|
|
13
|
+
"typings": "./es/index.d.ts",
|
|
14
|
+
"style": "./umd/dxp-ui.min.css",
|
|
15
|
+
"files": [
|
|
16
|
+
"umd",
|
|
17
|
+
"es"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "father build",
|
|
21
|
+
"build:watch": "father dev",
|
|
22
|
+
"deploy": "npm run docs:build && npm run docs:preview",
|
|
23
|
+
"dev": "dumi dev",
|
|
24
|
+
"docs:build": "dumi build",
|
|
25
|
+
"docs:deploy": "gh-pages -d docs-dist",
|
|
26
|
+
"docs:preview": "dumi preview",
|
|
27
|
+
"doctor": "father doctor",
|
|
28
|
+
"lint": "npm run lint:es && npm run lint:css",
|
|
29
|
+
"lint:css": "stylelint \"src/**/*.{less,css}\"",
|
|
30
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
31
|
+
"prepare": "dumi setup",
|
|
32
|
+
"prepublishOnly": "father doctor && npm run build",
|
|
33
|
+
"prepublishOnly1": "npm run build && SKIP_TESTS=true np --no-cleanup --any-branch --no-publish --no-test",
|
|
34
|
+
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,scss,md,json}\"",
|
|
35
|
+
"publish": "npm publish --access public",
|
|
36
|
+
"start": "npm run dev",
|
|
37
|
+
"test": "if [ -z \"$SKIP_TESTS\" ]; then umi-test; else echo 'Skipping tests'; fi",
|
|
38
|
+
"test0": "rc-test",
|
|
39
|
+
"test1": "if [ -z \"$SKIP_TESTS\" ]; then rc-test; else echo 'Skipping tests'; fi"
|
|
40
|
+
},
|
|
41
|
+
"commitlint": {
|
|
42
|
+
"extends": [
|
|
43
|
+
"@commitlint/config-conventional"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"lint-staged": {
|
|
47
|
+
"*.{md,json}": [
|
|
48
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
|
49
|
+
],
|
|
50
|
+
"*.{css,less}": [
|
|
51
|
+
"stylelint --fix",
|
|
52
|
+
"prettier --write"
|
|
53
|
+
],
|
|
54
|
+
"*.{js,jsx}": [
|
|
55
|
+
"eslint --fix",
|
|
56
|
+
"prettier --write"
|
|
57
|
+
],
|
|
58
|
+
"*.{ts,tsx}": [
|
|
59
|
+
"eslint --fix",
|
|
60
|
+
"prettier --parser=typescript --write"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@babel/runtime": "^7.18.0",
|
|
65
|
+
"classnames": "^2.3.2",
|
|
66
|
+
"lodash": "^4.17.21",
|
|
67
|
+
"prop-types": "^15.8.1",
|
|
68
|
+
"zod": "^3.24.1"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@commitlint/cli": "^17.1.2",
|
|
72
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
73
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
74
|
+
"@testing-library/react": "^15.0.0",
|
|
75
|
+
"@types/jest": "^29.0.0",
|
|
76
|
+
"@types/lodash": "^4.17.16",
|
|
77
|
+
"@types/react": "^18.0.0",
|
|
78
|
+
"@types/react-dom": "^18.0.0",
|
|
79
|
+
"@umijs/fabric": "^2.5.2",
|
|
80
|
+
"@umijs/lint": "^4.4.6",
|
|
81
|
+
"classnames": "^2.2.6",
|
|
82
|
+
"dumi": "^2.4.18",
|
|
83
|
+
"eslint": "^8.23.0",
|
|
84
|
+
"father": "^4.1.0",
|
|
85
|
+
"husky": "^8.0.1",
|
|
86
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
87
|
+
"less": "^4.2.0",
|
|
88
|
+
"less-loader": "^12.2.0",
|
|
89
|
+
"lint-staged": "^13.0.3",
|
|
90
|
+
"np": "^5.0.3",
|
|
91
|
+
"prettier": "^3.0.0",
|
|
92
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
|
93
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
|
94
|
+
"rc-test": "^7.1.2",
|
|
95
|
+
"react": "^18.3.1",
|
|
96
|
+
"react-dom": "^18.3.1",
|
|
97
|
+
"stylelint": "^16.11.0",
|
|
98
|
+
"typescript": "^5.0.0"
|
|
99
|
+
},
|
|
100
|
+
"peerDependencies": {
|
|
101
|
+
"react": ">=16.9.0",
|
|
102
|
+
"antd": "^5.24.5",
|
|
103
|
+
"@ant-design/icons": "^6.0.0",
|
|
104
|
+
"react-dom": ">=16.9.0"
|
|
105
|
+
},
|
|
106
|
+
"engines": {
|
|
107
|
+
"node": ">=8.x"
|
|
108
|
+
},
|
|
109
|
+
"publishConfig": {
|
|
110
|
+
"access": "public"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--base-color-primary:#d80202}:root[data-theme-style=colorful]{--base-color-primary:#26e704}.dxp-text-size-bannerTitle{font-size:40px;line-height:48px}.dxp-text-size-bannerTitle,.dxp-text-size-pageTitle{color:inherit;font-family:Poppins-Blod;font-weight:700}.dxp-text-size-pageTitle{font-size:32px;line-height:40px}.dxp-text-size-sectionTitle{font-size:24px;line-height:30px}.dxp-text-size-header,.dxp-text-size-sectionTitle{color:inherit;font-family:Poppins-Blod;font-weight:700}.dxp-text-size-header{font-size:20px;line-height:25px}.dxp-text-size-bodyBold{color:inherit;font-family:Roboto-Bold;font-size:16px;font-weight:700;line-height:24px}.dxp-text-size-bodyRegular{color:inherit}.dxp-text-size-bodyRegular,.dxp-text-size-bodyStrikethrough{font-family:Roboto-Regular;font-size:16px;font-weight:400;line-height:24px}.dxp-text-size-bodyStrikethrough{color:#757575;text-decoration:line-through}.dxp-text-size-smallbodyRegular{color:inherit}.dxp-text-size-smallBodyStrikethrough,.dxp-text-size-smallbodyRegular{font-family:Roboto-Regular;font-size:12px;font-weight:400;line-height:18px}.dxp-text-size-smallBodyStrikethrough{color:#757575;text-decoration:line-through}.dxp-text-size-smallBodySemiBold{color:inherit;font-family:Roboto-SemiBold;font-size:12px;font-weight:700;line-height:18px}.dxp-text-size-smallBodyBold{color:inherit}.dxp-text-size-smallBodyBold,.dxp-text-size-smallBodyLink{font-family:Roboto-Bold;font-size:12px;font-weight:700;line-height:18px}.dxp-text-size-smallBodyLink,.dxp-text-size-textLink{color:#4e28e8;text-decoration:underline}.dxp-text-size-textLink{font-family:Roboto-Bold;font-size:16px;font-weight:700;line-height:24px}.dxp-text-size-mediumBody{color:inherit;font-family:Roboto-Regular;font-size:14px;font-weight:400;line-height:22px}.dxp-text-size-mediumBodyBold{color:inherit;font-family:Roboto-Bold;font-size:14px;font-weight:700;line-height:22px}@font-face{font-family:Poppins-Blod;font-style:normal;font-weight:400;src:url(static/Poppins-Bold.8001a01b.ttf) format("truetype")}@font-face{font-family:Roboto-Bold;font-style:normal;font-weight:400;src:url(static/Roboto-Bold.ff276312.ttf) format("truetype")}@font-face{font-family:Roboto-Regular;font-style:normal;font-weight:400;src:url(static/Roboto-Regular.a5023d7b.ttf) format("truetype")}@font-face{font-family:Roboto-SemiBold;font-style:normal;font-weight:400;src:url(static/Roboto-SemiBold.3452daa4.ttf) format("truetype")}.dxp-button:not(:disabled):not(.ant-btn-disabled):hover{opacity:.8;transition:opacity .3s ease,transform .2s cubic-bezier(.4,0,.2,1)}.dxp-button:not(:disabled):not(.ant-btn-disabled):hover .dxp-text{transform:scale(.9);transform-origin:center;transition:opacity .3s ease,transform .2s cubic-bezier(.4,0,.2,1)}.dxp-button:not(:disabled):not(.dxp-button-disabled):active{opacity:.5;transition:opacity .3s ease,transform .2s cubic-bezier(.4,0,.2,1)}.dxp-button:not(:disabled):not(.dxp-button-disabled):active .dxp-text{transform:scale(.9);transform-origin:center;transition:opacity .3s ease,transform .2s cubic-bezier(.4,0,.2,1)}
|