@geomak/ui 1.4.0 → 1.5.0

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.
@@ -1,191 +0,0 @@
1
- /**
2
- * Oxygen design-system colour palette.
3
- * Duplicated here so the published package is fully self-contained.
4
- */
5
- declare const PALETTE: {
6
- readonly 'true-blue': "#0466C8";
7
- readonly 'usafa-blue': "#0353A4";
8
- readonly 'dark-cornflower-blue': "#023E7D";
9
- readonly 'oxford-blue-700': "#002855";
10
- readonly 'oxford-blue-800': "#001845";
11
- readonly 'oxford-blue-900': "#001233";
12
- readonly independence: "#33415C";
13
- readonly 'black-coral': "#5C677D";
14
- readonly 'roman-silver': "#7D8597";
15
- readonly manatee: "#979DAC";
16
- readonly white: "#fff";
17
- readonly ice: "#DBF1FD";
18
- readonly 'ice-dark': "#d0e3ed";
19
- readonly 'midnight-green-eagle-900': "#013E53";
20
- readonly 'midnight-green-eagle-700': "#125F6C";
21
- readonly 'midnight-green-eagle-500': "#125F6C";
22
- readonly 'rich-black-fogra': "#000202";
23
- readonly 'rich-black-fogra-opaque': "#0000005b";
24
- readonly 'prussian-blue': "#00273A";
25
- readonly 'indigo-dye': "#013C54";
26
- readonly ming: "#0F6372";
27
- readonly skobeloff: "#217479";
28
- readonly 'dark-cyan': "#2A8784";
29
- readonly 'celadon-green': "#297E74";
30
- readonly turquise: "#2EB8B0";
31
- readonly 'oxford-blue-700-opaque': "rgba(0, 40, 85, .3)";
32
- readonly disabled: "#dee2e6";
33
- readonly error: "tomato";
34
- readonly warning: "orange";
35
- readonly success: "lightgreen";
36
- readonly info: "lightblue";
37
- readonly transparent: "rgba(255, 255, 255, .0)";
38
- };
39
- declare const COLORS: {
40
- PALETTE: {
41
- readonly 'true-blue': "#0466C8";
42
- readonly 'usafa-blue': "#0353A4";
43
- readonly 'dark-cornflower-blue': "#023E7D";
44
- readonly 'oxford-blue-700': "#002855";
45
- readonly 'oxford-blue-800': "#001845";
46
- readonly 'oxford-blue-900': "#001233";
47
- readonly independence: "#33415C";
48
- readonly 'black-coral': "#5C677D";
49
- readonly 'roman-silver': "#7D8597";
50
- readonly manatee: "#979DAC";
51
- readonly white: "#fff";
52
- readonly ice: "#DBF1FD";
53
- readonly 'ice-dark': "#d0e3ed";
54
- readonly 'midnight-green-eagle-900': "#013E53";
55
- readonly 'midnight-green-eagle-700': "#125F6C";
56
- readonly 'midnight-green-eagle-500': "#125F6C";
57
- readonly 'rich-black-fogra': "#000202";
58
- readonly 'rich-black-fogra-opaque': "#0000005b";
59
- readonly 'prussian-blue': "#00273A";
60
- readonly 'indigo-dye': "#013C54";
61
- readonly ming: "#0F6372";
62
- readonly skobeloff: "#217479";
63
- readonly 'dark-cyan': "#2A8784";
64
- readonly 'celadon-green': "#297E74";
65
- readonly turquise: "#2EB8B0";
66
- readonly 'oxford-blue-700-opaque': "rgba(0, 40, 85, .3)";
67
- readonly disabled: "#dee2e6";
68
- readonly error: "tomato";
69
- readonly warning: "orange";
70
- readonly success: "lightgreen";
71
- readonly info: "lightblue";
72
- readonly transparent: "rgba(255, 255, 255, .0)";
73
- };
74
- };
75
-
76
- /**
77
- * @geomak/ui — Design Tokens
78
- *
79
- * Three layers:
80
- *
81
- * 1. `palette` — raw brand colors from colors.ts (hex literals)
82
- * 2. `semanticTokens` — resolved hex values per light/dark mode
83
- * 3. `vars` — CSS custom-property references for inline styles / CSS-in-JS
84
- *
85
- * CSS custom properties are injected by importing '@geomak/ui/styles'.
86
- * Tailwind semantic utilities (bg-background, text-foreground, etc.) are
87
- * available after the consumer includes the package's tailwind preset.
88
- */
89
-
90
- /**
91
- * Resolved hex/rgba values for every semantic token, keyed by `light` / `dark`.
92
- * Use these when CSS custom properties aren't available (canvas, email, SSR snapshots).
93
- */
94
- declare const semanticTokens: {
95
- readonly light: {
96
- readonly background: "#DBF1FD";
97
- readonly surface: "#ffffff";
98
- readonly 'surface-raised': "#ffffff";
99
- readonly border: "#d0e3ed";
100
- readonly 'border-strong': "#7D8597";
101
- readonly foreground: "#001845";
102
- readonly 'foreground-secondary': "#33415C";
103
- readonly 'foreground-muted': "#5C677D";
104
- readonly accent: "#0466C8";
105
- readonly 'accent-hover': "#0353A4";
106
- readonly 'accent-foreground': "#ffffff";
107
- readonly error: "#e03131";
108
- readonly warning: "#e67700";
109
- readonly success: "#2f9e44";
110
- readonly info: "#1971c2";
111
- };
112
- readonly dark: {
113
- readonly background: "#001233";
114
- readonly surface: "#00273A";
115
- readonly 'surface-raised': "#002855";
116
- readonly border: "#33415C";
117
- readonly 'border-strong': "#5C677D";
118
- readonly foreground: "#DBF1FD";
119
- readonly 'foreground-secondary': "#979DAC";
120
- readonly 'foreground-muted': "#7D8597";
121
- readonly accent: "#0466C8";
122
- readonly 'accent-hover': "#1a80e8";
123
- readonly 'accent-foreground': "#ffffff";
124
- readonly error: "#ff6b6b";
125
- readonly warning: "#ffa94d";
126
- readonly success: "#69db7c";
127
- readonly info: "#74c0fc";
128
- };
129
- readonly shared: {
130
- readonly 'radius-sm': "2px";
131
- readonly 'radius-md': "5px";
132
- readonly 'radius-lg': "7px";
133
- readonly 'radius-xl': "10px";
134
- readonly 'radius-2xl': "12px";
135
- readonly 'radius-full': "9999px";
136
- };
137
- };
138
- type SemanticColorKey = keyof typeof semanticTokens.light;
139
- type SemanticRadiusKey = keyof typeof semanticTokens.shared;
140
- /**
141
- * CSS custom-property reference strings.
142
- *
143
- * @example
144
- * // Inline style — respects light/dark automatically
145
- * <div style={{ color: vars.color.foreground }}>...</div>
146
- *
147
- * @example
148
- * // CSS-in-JS (Emotion, styled-components)
149
- * const Card = styled.div`
150
- * background: ${vars.color.surface};
151
- * border: 1px solid ${vars.color.border};
152
- * `
153
- */
154
- declare const vars: {
155
- readonly color: {
156
- readonly background: "var(--color-background)";
157
- readonly surface: "var(--color-surface)";
158
- readonly surfaceRaised: "var(--color-surface-raised)";
159
- readonly border: "var(--color-border)";
160
- readonly borderStrong: "var(--color-border-strong)";
161
- readonly foreground: "var(--color-foreground)";
162
- readonly foregroundSecondary: "var(--color-foreground-secondary)";
163
- readonly foregroundMuted: "var(--color-foreground-muted)";
164
- readonly accent: "var(--color-accent)";
165
- readonly accentHover: "var(--color-accent-hover)";
166
- readonly accentForeground: "var(--color-accent-foreground)";
167
- readonly error: "var(--color-error)";
168
- readonly warning: "var(--color-warning)";
169
- readonly success: "var(--color-success)";
170
- readonly info: "var(--color-info)";
171
- };
172
- readonly radius: {
173
- readonly sm: "var(--radius-sm)";
174
- readonly md: "var(--radius-md)";
175
- readonly lg: "var(--radius-lg)";
176
- readonly xl: "var(--radius-xl)";
177
- readonly '2xl': "var(--radius-2xl)";
178
- readonly full: "var(--radius-full)";
179
- };
180
- readonly shadow: {
181
- readonly sm: "var(--shadow-sm)";
182
- readonly md: "var(--shadow-md)";
183
- readonly lg: "var(--shadow-lg)";
184
- readonly xl: "var(--shadow-xl)";
185
- };
186
- };
187
- type VarColorKey = keyof typeof vars.color;
188
- type VarRadiusKey = keyof typeof vars.radius;
189
- type VarShadowKey = keyof typeof vars.shadow;
190
-
191
- export { COLORS as C, PALETTE as P, type SemanticColorKey as S, type VarColorKey as V, type SemanticRadiusKey as a, type VarRadiusKey as b, type VarShadowKey as c, semanticTokens as s, vars as v };