@gaulatti/bleecker 0.1.46 → 0.1.48

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.
@@ -58,6 +58,32 @@ export declare const shadows: {
58
58
  readonly raised: "0 2px 5px rgb(26 55 77 / 0.045), 0 18px 42px -22px rgb(26 55 77 / 0.24)";
59
59
  readonly overlay: "0 24px 64px -20px rgb(26 55 77 / 0.28), 0 4px 14px rgb(26 55 77 / 0.06)";
60
60
  };
61
+ /** Control heights in px. `dense` and `compact` sit beside the existing 36/40/48. */
62
+ export declare const controlHeights: {
63
+ readonly dense: 28;
64
+ readonly compact: 32;
65
+ readonly small: 36;
66
+ readonly default: 40;
67
+ readonly large: 48;
68
+ };
69
+ /** One focus ring for every control, in px. */
70
+ export declare const focusRing: {
71
+ readonly width: 2;
72
+ readonly offset: 2;
73
+ };
74
+ /** Type scale in px for dense, hairline-first surfaces. */
75
+ export declare const fontSizes: {
76
+ readonly caps: 11;
77
+ readonly caption: 12;
78
+ readonly dense: 13;
79
+ readonly body: 14;
80
+ readonly section: 20;
81
+ readonly readout: 24;
82
+ };
83
+ /** Tracking in em for the 11px caps label (the proposals use .08 to .14em). */
84
+ export declare const capsTracking = 0.1;
85
+ /** Monospace face for tabular readouts (levels, durations, counts). */
86
+ export declare const monoFamily = "ui-monospace";
61
87
  export declare const lightColors: {
62
88
  readonly sand: "#e6d5b8";
63
89
  readonly desert: "#c1814d";
@@ -90,6 +116,13 @@ export declare const lightColors: {
90
116
  readonly destructiveForeground: "#ffffff";
91
117
  readonly accent: "#f9f6f2";
92
118
  readonly accentForeground: "#2d2d2d";
119
+ readonly statusOk: "#2f7d5b";
120
+ readonly statusWarn: "#a8741a";
121
+ readonly statusBad: "#a65d57";
122
+ readonly statusIdle: "#767676";
123
+ readonly rail: "#e9e1d3";
124
+ readonly railStrong: "#d4c4a9";
125
+ readonly cue: "#8a5735";
93
126
  readonly dusk: "#694f5d";
94
127
  readonly deepSea: "#1a374d";
95
128
  readonly accentOxblood: "#76323f";
@@ -131,6 +164,13 @@ export declare const darkColors: {
131
164
  readonly destructiveForeground: "#0d1821";
132
165
  readonly accent: "#1a2332";
133
166
  readonly accentForeground: "#f0f4f8";
167
+ readonly statusOk: "#5cc49a";
168
+ readonly statusWarn: "#e0ac69";
169
+ readonly statusBad: "#d47b75";
170
+ readonly statusIdle: "#8a9bb0";
171
+ readonly rail: "#22324a";
172
+ readonly railStrong: "#2f4562";
173
+ readonly cue: "#e0ac69";
134
174
  readonly dusk: "#694f5d";
135
175
  readonly accentOxblood: "#76323f";
136
176
  readonly accentBronze: "#cd7f32";
@@ -171,6 +211,13 @@ export declare const themes: {
171
211
  readonly destructiveForeground: "#ffffff";
172
212
  readonly accent: "#f9f6f2";
173
213
  readonly accentForeground: "#2d2d2d";
214
+ readonly statusOk: "#2f7d5b";
215
+ readonly statusWarn: "#a8741a";
216
+ readonly statusBad: "#a65d57";
217
+ readonly statusIdle: "#767676";
218
+ readonly rail: "#e9e1d3";
219
+ readonly railStrong: "#d4c4a9";
220
+ readonly cue: "#8a5735";
174
221
  readonly dusk: "#694f5d";
175
222
  readonly deepSea: "#1a374d";
176
223
  readonly accentOxblood: "#76323f";
@@ -212,6 +259,13 @@ export declare const themes: {
212
259
  readonly destructiveForeground: "#0d1821";
213
260
  readonly accent: "#1a2332";
214
261
  readonly accentForeground: "#f0f4f8";
262
+ readonly statusOk: "#5cc49a";
263
+ readonly statusWarn: "#e0ac69";
264
+ readonly statusBad: "#d47b75";
265
+ readonly statusIdle: "#8a9bb0";
266
+ readonly rail: "#22324a";
267
+ readonly railStrong: "#2f4562";
268
+ readonly cue: "#e0ac69";
215
269
  readonly dusk: "#694f5d";
216
270
  readonly accentOxblood: "#76323f";
217
271
  readonly accentBronze: "#cd7f32";
@@ -58,6 +58,35 @@ export const shadows = {
58
58
  raised: '0 2px 5px rgb(26 55 77 / 0.045), 0 18px 42px -22px rgb(26 55 77 / 0.24)',
59
59
  overlay: '0 24px 64px -20px rgb(26 55 77 / 0.28), 0 4px 14px rgb(26 55 77 / 0.06)'
60
60
  };
61
+ // Elevated surfaces (bleecker#549 phase 1, bleecker#550). Everything below is
62
+ // additive: no existing export, key or type changes, and existing screens keep
63
+ // their size and look until a component opts in.
64
+ /** Control heights in px. `dense` and `compact` sit beside the existing 36/40/48. */
65
+ export const controlHeights = {
66
+ dense: 28,
67
+ compact: 32,
68
+ small: 36,
69
+ default: 40,
70
+ large: 48
71
+ };
72
+ /** One focus ring for every control, in px. */
73
+ export const focusRing = {
74
+ width: 2,
75
+ offset: 2
76
+ };
77
+ /** Type scale in px for dense, hairline-first surfaces. */
78
+ export const fontSizes = {
79
+ caps: 11,
80
+ caption: 12,
81
+ dense: 13,
82
+ body: 14,
83
+ section: 20,
84
+ readout: 24
85
+ };
86
+ /** Tracking in em for the 11px caps label (the proposals use .08 to .14em). */
87
+ export const capsTracking = 0.1;
88
+ /** Monospace face for tabular readouts (levels, durations, counts). */
89
+ export const monoFamily = 'ui-monospace';
61
90
  const sharedColors = {
62
91
  dusk: '#694f5d',
63
92
  deepSea: '#1a374d',
@@ -99,7 +128,14 @@ export const lightColors = {
99
128
  destructive: '#a65d57',
100
129
  destructiveForeground: '#ffffff',
101
130
  accent: '#f9f6f2',
102
- accentForeground: '#2d2d2d'
131
+ accentForeground: '#2d2d2d',
132
+ statusOk: '#2f7d5b',
133
+ statusWarn: '#a8741a',
134
+ statusBad: '#a65d57',
135
+ statusIdle: '#767676',
136
+ rail: '#e9e1d3',
137
+ railStrong: '#d4c4a9',
138
+ cue: '#8a5735'
103
139
  };
104
140
  export const darkColors = {
105
141
  ...sharedColors,
@@ -134,7 +170,14 @@ export const darkColors = {
134
170
  destructive: '#d47b75',
135
171
  destructiveForeground: '#0d1821',
136
172
  accent: '#1a2332',
137
- accentForeground: '#f0f4f8'
173
+ accentForeground: '#f0f4f8',
174
+ statusOk: '#5cc49a',
175
+ statusWarn: '#e0ac69',
176
+ statusBad: '#d47b75',
177
+ statusIdle: '#8a9bb0',
178
+ rail: '#22324a',
179
+ railStrong: '#2f4562',
180
+ cue: '#e0ac69'
138
181
  };
139
182
  export const themes = {
140
183
  light: lightColors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gaulatti/bleecker",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -69,11 +69,12 @@
69
69
  "build-storybook": "npm run check:exports-stories && npm run check:kolibri-toggle && npm run build:css && storybook build",
70
70
  "typecheck": "tsc --noEmit -p tsconfig.json",
71
71
  "check:exports-stories": "node scripts/check-exports-and-stories.mjs",
72
- "check": "npm run check:tokens && npm run typecheck && npm run check:exports-stories && npm run check:kolibri-toggle && npm run test:select-reset && npm run typecheck:theme && npm run test:theme && npm test",
72
+ "check": "npm run check:tokens && npm run typecheck && npm run check:exports-stories && npm run check:kolibri-toggle && npm run test:select-reset && npm run typecheck:theme && npm run test:theme && npm run test:tokens && npm test",
73
73
  "test:select-reset": "node --test tests/select-controlled-reset.test.mjs",
74
74
  "prepack": "npm run build",
75
75
  "check:runtime": "node scripts/check-package-runtime.mjs",
76
76
  "test:theme": "node --test tests/theme-provider.test.mjs",
77
+ "test:tokens": "node --test tests/token-kotlin.test.mjs",
77
78
  "typecheck:theme": "tsc --noEmit -p tests/tsconfig.theme.json"
78
79
  },
79
80
  "peerDependencies": {
@@ -49,6 +49,21 @@
49
49
  --shadow-surface: 0 1px 2px rgb(26 55 77 / 0.025), 0 10px 30px -18px rgb(26 55 77 / 0.18);
50
50
  --shadow-raised: 0 2px 5px rgb(26 55 77 / 0.045), 0 18px 42px -22px rgb(26 55 77 / 0.24);
51
51
  --shadow-overlay: 0 24px 64px -20px rgb(26 55 77 / 0.28), 0 4px 14px rgb(26 55 77 / 0.06);
52
+ --control-height-dense: 28px;
53
+ --control-height-compact: 32px;
54
+ --control-height-small: 36px;
55
+ --control-height-default: 40px;
56
+ --control-height-large: 48px;
57
+ --focus-ring-width: 2px;
58
+ --focus-ring-offset: 2px;
59
+ --text-caps: 11px;
60
+ --text-caption: 12px;
61
+ --text-dense: 13px;
62
+ --text-body: 14px;
63
+ --text-section: 20px;
64
+ --text-readout: 24px;
65
+ --tracking-caps: 0.1em;
66
+ --font-readout: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
52
67
  --color-sand: var(--app-sand);
53
68
  --color-desert: var(--app-desert);
54
69
  --color-terracotta: var(--app-terracotta);
@@ -87,6 +102,13 @@
87
102
  --color-destructive-foreground: var(--app-destructive-foreground);
88
103
  --color-accent: var(--app-accent);
89
104
  --color-accent-foreground: var(--app-accent-foreground);
105
+ --color-status-ok: var(--app-status-ok);
106
+ --color-status-warn: var(--app-status-warn);
107
+ --color-status-bad: var(--app-status-bad);
108
+ --color-status-idle: var(--app-status-idle);
109
+ --color-rail: var(--app-rail);
110
+ --color-rail-strong: var(--app-rail-strong);
111
+ --color-cue: var(--app-cue);
90
112
  }
91
113
 
92
114
  @layer base {
@@ -129,6 +151,13 @@
129
151
  --app-destructive-foreground: #ffffff;
130
152
  --app-accent: #f9f6f2;
131
153
  --app-accent-foreground: #2d2d2d;
154
+ --app-status-ok: #2f7d5b;
155
+ --app-status-warn: #a8741a;
156
+ --app-status-bad: #a65d57;
157
+ --app-status-idle: #767676;
158
+ --app-rail: #e9e1d3;
159
+ --app-rail-strong: #d4c4a9;
160
+ --app-cue: #8a5735;
132
161
  }
133
162
 
134
163
  html.dark {
@@ -170,5 +199,12 @@
170
199
  --app-destructive-foreground: #0d1821;
171
200
  --app-accent: #1a2332;
172
201
  --app-accent-foreground: #f0f4f8;
202
+ --app-status-ok: #5cc49a;
203
+ --app-status-warn: #e0ac69;
204
+ --app-status-bad: #d47b75;
205
+ --app-status-idle: #8a9bb0;
206
+ --app-rail: #22324a;
207
+ --app-rail-strong: #2f4562;
208
+ --app-cue: #e0ac69;
173
209
  }
174
210
  }