@metropolle/design-system 1.0.0-beta.20250821022912.15e7eda → 1.0.0-beta.2026.1.1.1723.0f6bc6d

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.
Files changed (57) hide show
  1. package/README.md +1 -0
  2. package/dist/css/compat/back.css +466 -0
  3. package/dist/css/components.css +1476 -8
  4. package/dist/css/liquid-glass.css +468 -0
  5. package/dist/css/mermaid.css +163 -0
  6. package/dist/css/tokens.css +67 -0
  7. package/dist/react/components/react/DataTable/DataTable.d.ts +4 -0
  8. package/dist/react/components/react/DataTable/DataTable.d.ts.map +1 -0
  9. package/dist/react/components/react/DataTable/TableHeader.d.ts +4 -0
  10. package/dist/react/components/react/DataTable/TableHeader.d.ts.map +1 -0
  11. package/dist/react/components/react/DataTable/TableRow.d.ts +4 -0
  12. package/dist/react/components/react/DataTable/TableRow.d.ts.map +1 -0
  13. package/dist/react/components/react/DataTable/examples.d.ts +28 -0
  14. package/dist/react/components/react/DataTable/examples.d.ts.map +1 -0
  15. package/dist/react/components/react/DataTable/index.d.ts +7 -0
  16. package/dist/react/components/react/DataTable/index.d.ts.map +1 -0
  17. package/dist/react/components/react/DataTable/migration-example.d.ts +46 -0
  18. package/dist/react/components/react/DataTable/migration-example.d.ts.map +1 -0
  19. package/dist/react/components/react/DataTable/renderers.d.ts +24 -0
  20. package/dist/react/components/react/DataTable/renderers.d.ts.map +1 -0
  21. package/dist/react/components/react/DataTable/types.d.ts +57 -0
  22. package/dist/react/components/react/DataTable/types.d.ts.map +1 -0
  23. package/dist/react/components/react/GlassCard/GlassCard.d.ts +46 -6
  24. package/dist/react/components/react/GlassCard/GlassCard.d.ts.map +1 -1
  25. package/dist/react/components/react/Modal/ConfirmDialog.d.ts +17 -0
  26. package/dist/react/components/react/Modal/ConfirmDialog.d.ts.map +1 -0
  27. package/dist/react/components/react/Modal/Modal.d.ts +12 -0
  28. package/dist/react/components/react/Modal/Modal.d.ts.map +1 -0
  29. package/dist/react/components/react/Modal/ModalBody.d.ts +9 -0
  30. package/dist/react/components/react/Modal/ModalBody.d.ts.map +1 -0
  31. package/dist/react/components/react/Modal/ModalFooter.d.ts +8 -0
  32. package/dist/react/components/react/Modal/ModalFooter.d.ts.map +1 -0
  33. package/dist/react/components/react/Modal/ModalHeader.d.ts +11 -0
  34. package/dist/react/components/react/Modal/ModalHeader.d.ts.map +1 -0
  35. package/dist/react/components/react/Modal/index.d.ts +6 -0
  36. package/dist/react/components/react/Modal/index.d.ts.map +1 -0
  37. package/dist/react/components/react/Select/Select.d.ts +71 -0
  38. package/dist/react/components/react/Select/Select.d.ts.map +1 -0
  39. package/dist/react/components/react/Select/index.d.ts +2 -0
  40. package/dist/react/components/react/Select/index.d.ts.map +1 -0
  41. package/dist/react/components/react/ThemeToggle/ThemeToggle.d.ts +28 -0
  42. package/dist/react/components/react/ThemeToggle/ThemeToggle.d.ts.map +1 -0
  43. package/dist/react/components/react/ThemeToggle/index.d.ts +3 -0
  44. package/dist/react/components/react/ThemeToggle/index.d.ts.map +1 -0
  45. package/dist/react/components/react/Typography/Typography.d.ts.map +1 -1
  46. package/dist/react/components/react/index.d.ts +11 -0
  47. package/dist/react/components/react/index.d.ts.map +1 -1
  48. package/dist/react/index.d.ts +11 -0
  49. package/dist/react/index.esm.js +1147 -14
  50. package/dist/react/index.esm.js.map +1 -1
  51. package/dist/react/index.js +1164 -12
  52. package/dist/react/index.js.map +1 -1
  53. package/dist/tokens/colors.json +100 -18
  54. package/dist/tokens/index.d.ts +19 -24
  55. package/dist/tokens/index.js +69 -2
  56. package/dist/tokens/index.json +100 -18
  57. package/package.json +23 -13
@@ -5,14 +5,48 @@
5
5
  "color": {
6
6
  "brand": {
7
7
  "primary": {
8
- "value": "#0055FF",
9
- "type": "color",
10
- "description": "Cor primária da marca Metropolle"
8
+ "default": {
9
+ "value": "#0055FF",
10
+ "type": "color",
11
+ "description": "Cor primaria da marca Metropolle"
12
+ },
13
+ "hover": {
14
+ "value": "#0044CC",
15
+ "type": "color",
16
+ "description": "Primary no estado hover"
17
+ },
18
+ "active": {
19
+ "value": "#003399",
20
+ "type": "color",
21
+ "description": "Primary no estado active/pressed"
22
+ },
23
+ "disabled": {
24
+ "value": "#80AAFF",
25
+ "type": "color",
26
+ "description": "Primary no estado disabled"
27
+ }
11
28
  },
12
29
  "secondary": {
13
- "value": "#FF9900",
14
- "type": "color",
15
- "description": "Cor secundária complementar"
30
+ "default": {
31
+ "value": "#FF9900",
32
+ "type": "color",
33
+ "description": "Cor secundaria complementar"
34
+ },
35
+ "hover": {
36
+ "value": "#E68A00",
37
+ "type": "color",
38
+ "description": "Secondary no estado hover"
39
+ },
40
+ "active": {
41
+ "value": "#CC7A00",
42
+ "type": "color",
43
+ "description": "Secondary no estado active/pressed"
44
+ },
45
+ "disabled": {
46
+ "value": "#FFCC80",
47
+ "type": "color",
48
+ "description": "Secondary no estado disabled"
49
+ }
16
50
  },
17
51
  "neutral": {
18
52
  "value": "#333333",
@@ -22,24 +56,72 @@
22
56
  },
23
57
  "semantic": {
24
58
  "success": {
25
- "value": "#10B981",
26
- "type": "color",
27
- "description": "Verde para estados de sucesso"
59
+ "default": {
60
+ "value": "#10B981",
61
+ "type": "color",
62
+ "description": "Verde para estados de sucesso"
63
+ },
64
+ "light": {
65
+ "value": "#D1FAE5",
66
+ "type": "color",
67
+ "description": "Success light para backgrounds"
68
+ },
69
+ "dark": {
70
+ "value": "#065F46",
71
+ "type": "color",
72
+ "description": "Success dark para texto em fundo claro"
73
+ }
28
74
  },
29
75
  "warning": {
30
- "value": "#F59E0B",
31
- "type": "color",
32
- "description": "Amarelo para avisos"
76
+ "default": {
77
+ "value": "#F59E0B",
78
+ "type": "color",
79
+ "description": "Amarelo para avisos"
80
+ },
81
+ "light": {
82
+ "value": "#FEF3C7",
83
+ "type": "color",
84
+ "description": "Warning light para backgrounds"
85
+ },
86
+ "dark": {
87
+ "value": "#92400E",
88
+ "type": "color",
89
+ "description": "Warning dark para texto em fundo claro"
90
+ }
33
91
  },
34
92
  "error": {
35
- "value": "#EF4444",
36
- "type": "color",
37
- "description": "Vermelho para erros"
93
+ "default": {
94
+ "value": "#EF4444",
95
+ "type": "color",
96
+ "description": "Vermelho para erros"
97
+ },
98
+ "light": {
99
+ "value": "#FEE2E2",
100
+ "type": "color",
101
+ "description": "Error light para backgrounds"
102
+ },
103
+ "dark": {
104
+ "value": "#991B1B",
105
+ "type": "color",
106
+ "description": "Error dark para texto em fundo claro"
107
+ }
38
108
  },
39
109
  "info": {
40
- "value": "#3B82F6",
41
- "type": "color",
42
- "description": "Azul para informações"
110
+ "default": {
111
+ "value": "#3B82F6",
112
+ "type": "color",
113
+ "description": "Azul para informacoes"
114
+ },
115
+ "light": {
116
+ "value": "#DBEAFE",
117
+ "type": "color",
118
+ "description": "Info light para backgrounds"
119
+ },
120
+ "dark": {
121
+ "value": "#1E40AF",
122
+ "type": "color",
123
+ "description": "Info dark para texto em fundo claro"
124
+ }
43
125
  }
44
126
  },
45
127
  "background": {
@@ -1,29 +1,5 @@
1
1
  // Auto-generated design token types
2
2
  export interface DesignTokens {
3
- typography: {
4
- 'fontFamily-brand': string;
5
- 'fontFamily-mono': string;
6
- 'fontSize-xs': string;
7
- 'fontSize-sm': string;
8
- 'fontSize-base': string;
9
- 'fontSize-lg': string;
10
- 'fontSize-xl': string;
11
- 'fontSize-2xl': string;
12
- 'fontSize-3xl': string;
13
- 'fontSize-4xl': string;
14
- 'lineHeight-tight': string;
15
- 'lineHeight-normal': string;
16
- 'lineHeight-relaxed': string;
17
- 'letterSpacing-brand': string;
18
- 'letterSpacing-tight': string;
19
- 'letterSpacing-normal': string;
20
- 'letterSpacing-wide': string;
21
- 'fontWeight-light': string;
22
- 'fontWeight-normal': string;
23
- 'fontWeight-medium': string;
24
- 'fontWeight-semibold': string;
25
- 'fontWeight-bold': string;
26
- };
27
3
  spacing: {
28
4
  'xs': string;
29
5
  'sm': string;
@@ -32,6 +8,25 @@ export interface DesignTokens {
32
8
  'xl': string;
33
9
  '2xl': string;
34
10
  '3xl': string;
11
+ 'borderRadius-sm': string;
12
+ 'borderRadius-md': string;
13
+ 'borderRadius-lg': string;
14
+ 'borderRadius-xl': string;
15
+ 'borderRadius-full': string;
16
+ 'shadow-sm': string;
17
+ 'shadow-md': string;
18
+ 'shadow-lg': string;
19
+ };
20
+ effects: {
21
+ 'transition-fast': string;
22
+ 'transition-normal': string;
23
+ 'transition-slow': string;
24
+ 'animation-fadeIn': string;
25
+ 'animation-slideUp': string;
26
+ 'animation-bounce': string;
27
+ 'transform-hoverUp': string;
28
+ 'opacity-disabled': string;
29
+ 'opacity-muted': string;
35
30
  };
36
31
  }
37
32
 
@@ -1,5 +1,38 @@
1
1
  // Auto-generated design tokens
2
2
  export const tokens = {
3
+ "colors": {
4
+ "color-brand-primary-default": "#0055FF",
5
+ "color-brand-primary-hover": "#0044CC",
6
+ "color-brand-primary-active": "#003399",
7
+ "color-brand-primary-disabled": "#80AAFF",
8
+ "color-brand-secondary-default": "#FF9900",
9
+ "color-brand-secondary-hover": "#E68A00",
10
+ "color-brand-secondary-active": "#CC7A00",
11
+ "color-brand-secondary-disabled": "#FFCC80",
12
+ "color-brand-neutral": "#333333",
13
+ "color-semantic-success-default": "#10B981",
14
+ "color-semantic-success-light": "#D1FAE5",
15
+ "color-semantic-success-dark": "#065F46",
16
+ "color-semantic-warning-default": "#F59E0B",
17
+ "color-semantic-warning-light": "#FEF3C7",
18
+ "color-semantic-warning-dark": "#92400E",
19
+ "color-semantic-error-default": "#EF4444",
20
+ "color-semantic-error-light": "#FEE2E2",
21
+ "color-semantic-error-dark": "#991B1B",
22
+ "color-semantic-info-default": "#3B82F6",
23
+ "color-semantic-info-light": "#DBEAFE",
24
+ "color-semantic-info-dark": "#1E40AF",
25
+ "color-background-primary": "linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%)",
26
+ "color-background-secondary": "rgba(255, 255, 255, 0.05)",
27
+ "color-background-glass-light": "rgba(255, 255, 255, 0.15)",
28
+ "color-background-glass-dark": "rgba(60, 60, 60, 0.8)",
29
+ "color-text-primary": "#ffffff",
30
+ "color-text-secondary": "rgba(255, 255, 255, 0.7)",
31
+ "color-text-muted": "rgba(255, 255, 255, 0.5)",
32
+ "color-border-light": "rgba(255, 255, 255, 0.1)",
33
+ "color-border-medium": "rgba(255, 255, 255, 0.2)",
34
+ "color-border-strong": "rgba(255, 255, 255, 0.3)"
35
+ },
3
36
  "typography": {
4
37
  "fontFamily-brand": "Helvetica, Inter Tight, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
5
38
  "fontFamily-mono": "'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace",
@@ -31,12 +64,46 @@ export const tokens = {
31
64
  "lg": "1.5rem",
32
65
  "xl": "2rem",
33
66
  "2xl": "3rem",
34
- "3xl": "4rem"
67
+ "3xl": "4rem",
68
+ "borderRadius-sm": "0.25rem",
69
+ "borderRadius-md": "0.5rem",
70
+ "borderRadius-lg": "1rem",
71
+ "borderRadius-xl": "1.25rem",
72
+ "borderRadius-full": "50%",
73
+ "shadow-glass-light": "0 8px 32px rgba(0, 0, 0, 0.1)",
74
+ "shadow-glass-lightHover": "0 12px 40px rgba(0, 0, 0, 0.15)",
75
+ "shadow-glass-dark": "0 8px 32px rgba(0, 0, 0, 0.3)",
76
+ "shadow-glass-darkHover": "0 12px 40px rgba(0, 0, 0, 0.4)",
77
+ "shadow-sm": "0 1px 2px rgba(0, 0, 0, 0.05)",
78
+ "shadow-md": "0 4px 6px rgba(0, 0, 0, 0.07)",
79
+ "shadow-lg": "0 10px 15px rgba(0, 0, 0, 0.1)",
80
+ "blur-glass-default": "20px",
81
+ "blur-glass-light": "15px",
82
+ "blur-glass-heavy": "30px"
83
+ },
84
+ "effects": {
85
+ "transition-fast": "0.15s ease",
86
+ "transition-normal": "0.3s ease",
87
+ "transition-slow": "0.5s ease",
88
+ "animation-fadeIn": "fadeIn 0.3s ease-in-out",
89
+ "animation-slideUp": "slideUp 0.3s ease-out",
90
+ "animation-bounce": "bounce 0.6s ease-in-out",
91
+ "backdrop-glass-filter": "blur(var(--blur, 20px))",
92
+ "backdrop-glass-webkitFilter": "blur(var(--blur, 20px))",
93
+ "transform-hoverUp": "translateY(-2px)",
94
+ "transform-scale-hover": "scale(1.02)",
95
+ "transform-scale-active": "scale(0.98)",
96
+ "opacity-glass-light-default": "0.15",
97
+ "opacity-glass-light-hover": "0.2",
98
+ "opacity-glass-dark-default": "0.8",
99
+ "opacity-glass-dark-hover": "0.85",
100
+ "opacity-disabled": "0.5",
101
+ "opacity-muted": "0.7"
35
102
  }
36
103
  };
37
104
 
38
105
  // Typed token access
39
- export type TokenCategory = 'typography' | 'spacing';
106
+ export type TokenCategory = 'colors' | 'typography' | 'spacing' | 'effects';
40
107
 
41
108
  export function getToken(category: TokenCategory, token: string): string {
42
109
  return tokens[category]?.[token] || '';
@@ -6,14 +6,48 @@
6
6
  "color": {
7
7
  "brand": {
8
8
  "primary": {
9
- "value": "#0055FF",
10
- "type": "color",
11
- "description": "Cor primária da marca Metropolle"
9
+ "default": {
10
+ "value": "#0055FF",
11
+ "type": "color",
12
+ "description": "Cor primaria da marca Metropolle"
13
+ },
14
+ "hover": {
15
+ "value": "#0044CC",
16
+ "type": "color",
17
+ "description": "Primary no estado hover"
18
+ },
19
+ "active": {
20
+ "value": "#003399",
21
+ "type": "color",
22
+ "description": "Primary no estado active/pressed"
23
+ },
24
+ "disabled": {
25
+ "value": "#80AAFF",
26
+ "type": "color",
27
+ "description": "Primary no estado disabled"
28
+ }
12
29
  },
13
30
  "secondary": {
14
- "value": "#FF9900",
15
- "type": "color",
16
- "description": "Cor secundária complementar"
31
+ "default": {
32
+ "value": "#FF9900",
33
+ "type": "color",
34
+ "description": "Cor secundaria complementar"
35
+ },
36
+ "hover": {
37
+ "value": "#E68A00",
38
+ "type": "color",
39
+ "description": "Secondary no estado hover"
40
+ },
41
+ "active": {
42
+ "value": "#CC7A00",
43
+ "type": "color",
44
+ "description": "Secondary no estado active/pressed"
45
+ },
46
+ "disabled": {
47
+ "value": "#FFCC80",
48
+ "type": "color",
49
+ "description": "Secondary no estado disabled"
50
+ }
17
51
  },
18
52
  "neutral": {
19
53
  "value": "#333333",
@@ -23,24 +57,72 @@
23
57
  },
24
58
  "semantic": {
25
59
  "success": {
26
- "value": "#10B981",
27
- "type": "color",
28
- "description": "Verde para estados de sucesso"
60
+ "default": {
61
+ "value": "#10B981",
62
+ "type": "color",
63
+ "description": "Verde para estados de sucesso"
64
+ },
65
+ "light": {
66
+ "value": "#D1FAE5",
67
+ "type": "color",
68
+ "description": "Success light para backgrounds"
69
+ },
70
+ "dark": {
71
+ "value": "#065F46",
72
+ "type": "color",
73
+ "description": "Success dark para texto em fundo claro"
74
+ }
29
75
  },
30
76
  "warning": {
31
- "value": "#F59E0B",
32
- "type": "color",
33
- "description": "Amarelo para avisos"
77
+ "default": {
78
+ "value": "#F59E0B",
79
+ "type": "color",
80
+ "description": "Amarelo para avisos"
81
+ },
82
+ "light": {
83
+ "value": "#FEF3C7",
84
+ "type": "color",
85
+ "description": "Warning light para backgrounds"
86
+ },
87
+ "dark": {
88
+ "value": "#92400E",
89
+ "type": "color",
90
+ "description": "Warning dark para texto em fundo claro"
91
+ }
34
92
  },
35
93
  "error": {
36
- "value": "#EF4444",
37
- "type": "color",
38
- "description": "Vermelho para erros"
94
+ "default": {
95
+ "value": "#EF4444",
96
+ "type": "color",
97
+ "description": "Vermelho para erros"
98
+ },
99
+ "light": {
100
+ "value": "#FEE2E2",
101
+ "type": "color",
102
+ "description": "Error light para backgrounds"
103
+ },
104
+ "dark": {
105
+ "value": "#991B1B",
106
+ "type": "color",
107
+ "description": "Error dark para texto em fundo claro"
108
+ }
39
109
  },
40
110
  "info": {
41
- "value": "#3B82F6",
42
- "type": "color",
43
- "description": "Azul para informações"
111
+ "default": {
112
+ "value": "#3B82F6",
113
+ "type": "color",
114
+ "description": "Azul para informacoes"
115
+ },
116
+ "light": {
117
+ "value": "#DBEAFE",
118
+ "type": "color",
119
+ "description": "Info light para backgrounds"
120
+ },
121
+ "dark": {
122
+ "value": "#1E40AF",
123
+ "type": "color",
124
+ "description": "Info dark para texto em fundo claro"
125
+ }
44
126
  }
45
127
  },
46
128
  "background": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metropolle/design-system",
3
- "version": "1.0.0-beta.20250821022912.15e7eda",
3
+ "version": "1.0.0-beta.2026.01.01.1723.0f6bc6d",
4
4
  "description": "Sistema de design unificado para a plataforma Metropolle",
5
5
  "type": "module",
6
6
  "main": "dist/react/index.js",
@@ -17,18 +17,23 @@
17
17
  "types": "./dist/tokens/index.d.ts"
18
18
  },
19
19
  "./css": "./dist/css/tokens.css",
20
- "./css/components": "./dist/css/components.css"
20
+ "./css/components": "./dist/css/components.css",
21
+ "./css/compat/back.css": "./dist/css/compat/back.css",
22
+ "./css/mermaid": "./dist/css/mermaid.css",
23
+ "./css/mermaid.css": "./dist/css/mermaid.css",
24
+ "./css/liquid-glass": "./dist/css/liquid-glass.css",
25
+ "./css/liquid-glass.css": "./dist/css/liquid-glass.css"
21
26
  },
22
27
  "files": [
23
28
  "dist/**/*",
24
29
  "README.md"
25
30
  ],
26
31
  "scripts": {
27
- "build": "npm run clean && npm run build:tokens && npm run build:react && npm run build:types && npm run build:css && echo ' Build completed successfully'",
32
+ "build": "npm run clean && npm run build:tokens && npm run build:react && npm run build:types && npm run build:css && echo '✔️ Build completed successfully'",
28
33
  "build:tokens": "node scripts/build-tokens.js",
29
- "build:react": "npx rollup -c rollup.react.config.js --silent",
34
+ "build:react": "rollup -c rollup.react.config.js --silent",
30
35
  "build:types": "tsc -p tsconfig.react.json && node scripts/build-types.js",
31
- "build:css": "npx postcss src/css/*.css --dir dist/css",
36
+ "build:css": "npx postcss \"src/css/**/*.css\" --base src/css --dir dist/css",
32
37
  "build:storybook": "storybook build",
33
38
  "dev": "storybook dev -p 6006",
34
39
  "test": "jest",
@@ -38,7 +43,12 @@
38
43
  "type-check": "tsc --noEmit",
39
44
  "clean": "rimraf dist",
40
45
  "prebuild": "npm run clean",
41
- "prepare": "npm run build"
46
+ "prepare": "npm run build",
47
+ "version:timestamp": "node scripts/version-timestamp.js timestamp",
48
+ "version:beta": "node scripts/version-timestamp.js beta",
49
+ "version:stable": "node scripts/version-timestamp.js stable",
50
+ "version:dev": "node scripts/version-timestamp.js beta dev",
51
+ "version:prod": "node scripts/version-timestamp.js stable prod"
42
52
  },
43
53
  "keywords": [
44
54
  "design-system",
@@ -60,16 +70,16 @@
60
70
  "react-dom": ">=18.0.0"
61
71
  },
62
72
  "dependencies": {
63
- "rollup": "^4.12.0",
73
+ "@metropolle/workspace": "file:..",
64
74
  "@rollup/plugin-commonjs": "^25.0.7",
65
75
  "@rollup/plugin-node-resolve": "^15.2.3",
66
- "@rollup/plugin-typescript": "^11.1.6"
76
+ "@rollup/plugin-typescript": "^11.1.6",
77
+ "rollup": "^4.12.0"
67
78
  },
68
79
  "devDependencies": {
69
- "@storybook/addon-a11y": "^8.4.7",
70
- "@storybook/addon-essentials": "^8.4.7",
71
- "@storybook/react": "^8.4.7",
72
- "@storybook/react-vite": "^8.4.7",
80
+ "@storybook/addon-a11y": "^9.1.2",
81
+ "@storybook/addon-docs": "^9.1.2",
82
+ "@storybook/react-vite": "^9.1.2",
73
83
  "@testing-library/jest-dom": "^6.4.2",
74
84
  "@testing-library/react": "^14.2.1",
75
85
  "@types/jest": "^29.5.12",
@@ -89,7 +99,7 @@
89
99
  "react": "^18.2.0",
90
100
  "react-dom": "^18.2.0",
91
101
  "rimraf": "^5.0.5",
92
- "storybook": "^8.4.7",
102
+ "storybook": "^9.1.2",
93
103
  "ts-jest": "^29.1.2",
94
104
  "typescript": "^5.4.5"
95
105
  },