@metropolle/design-system 1.0.0-beta.20250821014534.5a59824
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 +81 -0
- package/dist/css/components.css +323 -0
- package/dist/css/tokens.css +90 -0
- package/dist/react/components/react/Button/Button.d.ts +27 -0
- package/dist/react/components/react/Button/Button.d.ts.map +1 -0
- package/dist/react/components/react/Button/index.d.ts +2 -0
- package/dist/react/components/react/Button/index.d.ts.map +1 -0
- package/dist/react/components/react/GlassCard/GlassCard.d.ts +23 -0
- package/dist/react/components/react/GlassCard/GlassCard.d.ts.map +1 -0
- package/dist/react/components/react/GlassCard/index.d.ts +2 -0
- package/dist/react/components/react/GlassCard/index.d.ts.map +1 -0
- package/dist/react/components/react/Typography/Typography.d.ts +39 -0
- package/dist/react/components/react/Typography/Typography.d.ts.map +1 -0
- package/dist/react/components/react/Typography/index.d.ts +2 -0
- package/dist/react/components/react/Typography/index.d.ts.map +1 -0
- package/dist/react/components/react/index.d.ts +8 -0
- package/dist/react/components/react/index.d.ts.map +1 -0
- package/dist/react/index.esm.js +1492 -0
- package/dist/react/index.esm.js.map +1 -0
- package/dist/react/index.js +1498 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/utils/cn.d.ts +6 -0
- package/dist/react/utils/cn.d.ts.map +1 -0
- package/dist/tokens/colors.json +104 -0
- package/dist/tokens/effects.json +110 -0
- package/dist/tokens/index.d.ts +40 -0
- package/dist/tokens/index.js +48 -0
- package/dist/tokens/index.json +470 -0
- package/dist/tokens/spacing.json +127 -0
- package/dist/tokens/typography.json +127 -0
- package/package.json +97 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Metropolle Typography Tokens",
|
|
4
|
+
"description": "Tokens de tipografia baseados na identidade Helvetica da Metropolle",
|
|
5
|
+
"typography": {
|
|
6
|
+
"fontFamily": {
|
|
7
|
+
"brand": {
|
|
8
|
+
"value": "Helvetica, Inter Tight, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
|
|
9
|
+
"type": "fontFamily",
|
|
10
|
+
"description": "Stack de fontes da marca Metropolle"
|
|
11
|
+
},
|
|
12
|
+
"mono": {
|
|
13
|
+
"value": "'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace",
|
|
14
|
+
"type": "fontFamily",
|
|
15
|
+
"description": "Fonte monospace para código"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"fontSize": {
|
|
19
|
+
"xs": {
|
|
20
|
+
"value": "0.75rem",
|
|
21
|
+
"type": "fontSize",
|
|
22
|
+
"description": "12px - Texto muito pequeno"
|
|
23
|
+
},
|
|
24
|
+
"sm": {
|
|
25
|
+
"value": "0.875rem",
|
|
26
|
+
"type": "fontSize",
|
|
27
|
+
"description": "14px - Texto pequeno"
|
|
28
|
+
},
|
|
29
|
+
"base": {
|
|
30
|
+
"value": "1rem",
|
|
31
|
+
"type": "fontSize",
|
|
32
|
+
"description": "16px - Texto base"
|
|
33
|
+
},
|
|
34
|
+
"lg": {
|
|
35
|
+
"value": "1.125rem",
|
|
36
|
+
"type": "fontSize",
|
|
37
|
+
"description": "18px - Texto grande"
|
|
38
|
+
},
|
|
39
|
+
"xl": {
|
|
40
|
+
"value": "1.25rem",
|
|
41
|
+
"type": "fontSize",
|
|
42
|
+
"description": "20px - Texto extra grande"
|
|
43
|
+
},
|
|
44
|
+
"2xl": {
|
|
45
|
+
"value": "1.5rem",
|
|
46
|
+
"type": "fontSize",
|
|
47
|
+
"description": "24px - Heading pequeno"
|
|
48
|
+
},
|
|
49
|
+
"3xl": {
|
|
50
|
+
"value": "1.875rem",
|
|
51
|
+
"type": "fontSize",
|
|
52
|
+
"description": "30px - Heading médio"
|
|
53
|
+
},
|
|
54
|
+
"4xl": {
|
|
55
|
+
"value": "2.125rem",
|
|
56
|
+
"type": "fontSize",
|
|
57
|
+
"description": "34px - Logo brand (mobile: 28.8px)"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"lineHeight": {
|
|
61
|
+
"tight": {
|
|
62
|
+
"value": "1.2",
|
|
63
|
+
"type": "lineHeight",
|
|
64
|
+
"description": "Line height apertado para headings"
|
|
65
|
+
},
|
|
66
|
+
"normal": {
|
|
67
|
+
"value": "1.5",
|
|
68
|
+
"type": "lineHeight",
|
|
69
|
+
"description": "Line height normal para texto"
|
|
70
|
+
},
|
|
71
|
+
"relaxed": {
|
|
72
|
+
"value": "1.75",
|
|
73
|
+
"type": "lineHeight",
|
|
74
|
+
"description": "Line height relaxado para leitura"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"letterSpacing": {
|
|
78
|
+
"brand": {
|
|
79
|
+
"value": "-0.05rem",
|
|
80
|
+
"type": "letterSpacing",
|
|
81
|
+
"description": "Letter spacing da marca (desktop)"
|
|
82
|
+
},
|
|
83
|
+
"tight": {
|
|
84
|
+
"value": "-0.03rem",
|
|
85
|
+
"type": "letterSpacing",
|
|
86
|
+
"description": "Letter spacing apertado (mobile)"
|
|
87
|
+
},
|
|
88
|
+
"normal": {
|
|
89
|
+
"value": "0",
|
|
90
|
+
"type": "letterSpacing",
|
|
91
|
+
"description": "Letter spacing normal"
|
|
92
|
+
},
|
|
93
|
+
"wide": {
|
|
94
|
+
"value": "0.025rem",
|
|
95
|
+
"type": "letterSpacing",
|
|
96
|
+
"description": "Letter spacing amplo"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"fontWeight": {
|
|
100
|
+
"light": {
|
|
101
|
+
"value": "300",
|
|
102
|
+
"type": "fontWeight",
|
|
103
|
+
"description": "Peso leve"
|
|
104
|
+
},
|
|
105
|
+
"normal": {
|
|
106
|
+
"value": "400",
|
|
107
|
+
"type": "fontWeight",
|
|
108
|
+
"description": "Peso normal"
|
|
109
|
+
},
|
|
110
|
+
"medium": {
|
|
111
|
+
"value": "500",
|
|
112
|
+
"type": "fontWeight",
|
|
113
|
+
"description": "Peso médio"
|
|
114
|
+
},
|
|
115
|
+
"semibold": {
|
|
116
|
+
"value": "600",
|
|
117
|
+
"type": "fontWeight",
|
|
118
|
+
"description": "Peso semi-bold"
|
|
119
|
+
},
|
|
120
|
+
"bold": {
|
|
121
|
+
"value": "700",
|
|
122
|
+
"type": "fontWeight",
|
|
123
|
+
"description": "Peso bold"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@metropolle/design-system",
|
|
3
|
+
"version": "1.0.0-beta.20250821014534.5a59824",
|
|
4
|
+
"description": "Sistema de design unificado para a plataforma Metropolle",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/react/index.js",
|
|
7
|
+
"module": "dist/react/index.esm.js",
|
|
8
|
+
"types": "dist/react/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/react/index.esm.js",
|
|
12
|
+
"require": "./dist/react/index.js",
|
|
13
|
+
"types": "./dist/react/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./tokens": {
|
|
16
|
+
"import": "./dist/tokens/index.js",
|
|
17
|
+
"types": "./dist/tokens/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./css": "./dist/css/tokens.css"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/**/*",
|
|
23
|
+
"README.md"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "npm run clean && npm run build:tokens && npm run build:react && npm run build:css && echo '✅ Build completed successfully'",
|
|
27
|
+
"build:tokens": "node scripts/build-tokens.js",
|
|
28
|
+
"build:react": "npx rollup -c rollup.react.config.js --silent",
|
|
29
|
+
"build:css": "npx postcss src/css/*.css --dir dist/css",
|
|
30
|
+
"build:storybook": "storybook build",
|
|
31
|
+
"dev": "storybook dev -p 6006",
|
|
32
|
+
"test": "jest",
|
|
33
|
+
"test:watch": "jest --watch",
|
|
34
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
35
|
+
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
36
|
+
"type-check": "tsc --noEmit",
|
|
37
|
+
"clean": "rimraf dist",
|
|
38
|
+
"prebuild": "npm run clean",
|
|
39
|
+
"prepare": "npm run build"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"design-system",
|
|
43
|
+
"react",
|
|
44
|
+
"angular",
|
|
45
|
+
"components",
|
|
46
|
+
"tokens",
|
|
47
|
+
"metropolle"
|
|
48
|
+
],
|
|
49
|
+
"author": "Metropolle Team",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "https://github.com/metropolle/features.git",
|
|
54
|
+
"directory": "design"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"react": ">=18.0.0",
|
|
58
|
+
"react-dom": ">=18.0.0"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"rollup": "^4.12.0",
|
|
62
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
63
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
64
|
+
"@rollup/plugin-typescript": "^11.1.6"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@storybook/addon-a11y": "^8.4.7",
|
|
68
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
69
|
+
"@storybook/react": "^8.4.7",
|
|
70
|
+
"@storybook/react-vite": "^8.4.7",
|
|
71
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
72
|
+
"@testing-library/react": "^14.2.1",
|
|
73
|
+
"@types/jest": "^29.5.12",
|
|
74
|
+
"@types/node": "^20.11.19",
|
|
75
|
+
"@types/react": "^18.2.55",
|
|
76
|
+
"@types/react-dom": "^18.2.19",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
78
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
79
|
+
"autoprefixer": "^10.4.21",
|
|
80
|
+
"eslint": "^8.56.0",
|
|
81
|
+
"eslint-plugin-react": "^7.33.2",
|
|
82
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
83
|
+
"jest": "^29.7.0",
|
|
84
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
85
|
+
"postcss": "^8.4.35",
|
|
86
|
+
"postcss-cli": "^11.0.0",
|
|
87
|
+
"react": "^18.2.0",
|
|
88
|
+
"react-dom": "^18.2.0",
|
|
89
|
+
"rimraf": "^5.0.5",
|
|
90
|
+
"storybook": "^8.4.7",
|
|
91
|
+
"ts-jest": "^29.1.2",
|
|
92
|
+
"typescript": "^5.4.5"
|
|
93
|
+
},
|
|
94
|
+
"publishConfig": {
|
|
95
|
+
"access": "public"
|
|
96
|
+
}
|
|
97
|
+
}
|