@md-code/styles 0.0.0-stage → 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.
Files changed (81) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +771 -2
  3. package/dist/colors-0AY7L5dk.js +244 -0
  4. package/dist/index.js +129 -0
  5. package/dist/themes/colors.js +1 -0
  6. package/dist/themes-BJwXZ1XG.js +419 -0
  7. package/dist/themes.js +3 -0
  8. package/dist/types/GlobalStyles.d.ts +9 -0
  9. package/dist/types/GlobalStyles.d.ts.map +1 -0
  10. package/dist/types/ThemeProviderWrapper.d.ts +4 -0
  11. package/dist/types/ThemeProviderWrapper.d.ts.map +1 -0
  12. package/dist/types/helpers/font.d.ts +2 -0
  13. package/dist/types/helpers/font.d.ts.map +1 -0
  14. package/dist/types/helpers/fullWidth.d.ts +3 -0
  15. package/dist/types/helpers/fullWidth.d.ts.map +1 -0
  16. package/dist/types/helpers/index.d.ts +5 -0
  17. package/dist/types/helpers/index.d.ts.map +1 -0
  18. package/dist/types/helpers/offsets.d.ts +3 -0
  19. package/dist/types/helpers/offsets.d.ts.map +1 -0
  20. package/dist/types/helpers/spaceBetween.d.ts +3 -0
  21. package/dist/types/helpers/spaceBetween.d.ts.map +1 -0
  22. package/dist/types/index.d.ts +9 -0
  23. package/dist/types/index.d.ts.map +1 -0
  24. package/dist/types/theme-provider/styles.d.ts +19 -0
  25. package/dist/types/theme-provider/styles.d.ts.map +1 -0
  26. package/dist/types/themes/baseTheme.d.ts +166 -0
  27. package/dist/types/themes/baseTheme.d.ts.map +1 -0
  28. package/dist/types/themes/board.d.ts +287 -0
  29. package/dist/types/themes/board.d.ts.map +1 -0
  30. package/dist/types/themes/colors.d.ts +3 -0
  31. package/dist/types/themes/colors.d.ts.map +1 -0
  32. package/dist/types/themes/contract/defineTheme.d.ts +17 -0
  33. package/dist/types/themes/contract/defineTheme.d.ts.map +1 -0
  34. package/dist/types/themes/contract/index.d.ts +102 -0
  35. package/dist/types/themes/contract/index.d.ts.map +1 -0
  36. package/dist/types/themes/editor.d.ts +170 -0
  37. package/dist/types/themes/editor.d.ts.map +1 -0
  38. package/dist/types/themes/index.d.ts +12 -0
  39. package/dist/types/themes/index.d.ts.map +1 -0
  40. package/dist/types/themes/liquidGlass.d.ts +157 -0
  41. package/dist/types/themes/liquidGlass.d.ts.map +1 -0
  42. package/dist/types/themes/tokens/base/animation.d.ts +17 -0
  43. package/dist/types/themes/tokens/base/animation.d.ts.map +1 -0
  44. package/dist/types/themes/tokens/base/colors.d.ts +10 -0
  45. package/dist/types/themes/tokens/base/colors.d.ts.map +1 -0
  46. package/dist/types/themes/tokens/base/effects.d.ts +11 -0
  47. package/dist/types/themes/tokens/base/effects.d.ts.map +1 -0
  48. package/dist/types/themes/tokens/base/offsets.d.ts +8 -0
  49. package/dist/types/themes/tokens/base/offsets.d.ts.map +1 -0
  50. package/dist/types/themes/tokens/base/shadows.d.ts +7 -0
  51. package/dist/types/themes/tokens/base/shadows.d.ts.map +1 -0
  52. package/dist/types/themes/tokens/base/shape.d.ts +10 -0
  53. package/dist/types/themes/tokens/base/shape.d.ts.map +1 -0
  54. package/dist/types/themes/tokens/base/typography.d.ts +22 -0
  55. package/dist/types/themes/tokens/base/typography.d.ts.map +1 -0
  56. package/dist/types/themes/tokens/board.d.ts +298 -0
  57. package/dist/types/themes/tokens/board.d.ts.map +1 -0
  58. package/dist/types/themes/tokens/elements.d.ts +24 -0
  59. package/dist/types/themes/tokens/elements.d.ts.map +1 -0
  60. package/dist/types/themes/tokens/offsets.d.ts +20 -0
  61. package/dist/types/themes/tokens/offsets.d.ts.map +1 -0
  62. package/dist/types/themes/tokens/report.d.ts +241 -0
  63. package/dist/types/themes/tokens/report.d.ts.map +1 -0
  64. package/dist/types/themes/tokens/screens.d.ts +24 -0
  65. package/dist/types/themes/tokens/screens.d.ts.map +1 -0
  66. package/dist/types/themes/tokens/variables.d.ts +39 -0
  67. package/dist/types/themes/tokens/variables.d.ts.map +1 -0
  68. package/dist/types/themes/tokens/zIndexes.d.ts +13 -0
  69. package/dist/types/themes/tokens/zIndexes.d.ts.map +1 -0
  70. package/dist/types/themes/types/index.d.ts +8 -0
  71. package/dist/types/themes/types/index.d.ts.map +1 -0
  72. package/dist/types/themes/viking.d.ts +157 -0
  73. package/dist/types/themes/viking.d.ts.map +1 -0
  74. package/dist/types/themes/zones/pair.d.ts +297 -0
  75. package/dist/types/themes/zones/pair.d.ts.map +1 -0
  76. package/dist/types/themes/zones/report.d.ts +451 -0
  77. package/dist/types/themes/zones/report.d.ts.map +1 -0
  78. package/dist/types/types.d.ts +179 -0
  79. package/dist/types/types.d.ts.map +1 -0
  80. package/dist/types.js +0 -0
  81. package/package.json +325 -5
@@ -0,0 +1,451 @@
1
+ /**
2
+ * A ZONE theme for the REPORT situation (README §2): a dense, dark, code-first
3
+ * reading surface — a page of panels, each panel a lifted surface with tinted
4
+ * badges, hairlines and monospace paths. A consumer nests a `ThemeProvider`
5
+ * around the report zone; the subtree resolves against this theme.
6
+ *
7
+ * The palette of the report was a private module before DISSOLVE-1; it is
8
+ * expressed here through EXISTING contract fields — no new field, no new
9
+ * variable (README §7.1):
10
+ *
11
+ * | report surface | contract field | value |
12
+ * |----------------|-------------------------|----------------------------------------------|
13
+ * | page | `colors.section` | `#0b0e14` (what the body is painted with) |
14
+ * | text | `colors.sectionContent` | `#e2e8f2` |
15
+ * | raised surface | `colors.overlay` | `#171f2e` (tiles, inputs, rows ON a panel) |
16
+ * | hairline | `colors.status.edge` | `#243044` (a border is always a status) |
17
+ * | focus ring | `colors.highlighted` | `#3a4a64` |
18
+ *
19
+ * ## Two levels of surface, one name (README §3.2/§3.3)
20
+ *
21
+ * The report stacks surfaces: the page (`#0b0e14`), a panel on it (`#121722`),
22
+ * and raised tiles inside the panel (`#171f2e`). `colors.section` already means
23
+ * "the background of the section/page/card you are inside" (§3.3), so the three
24
+ * levels are the SAME field read at three nesting depths: `reportTheme` is the
25
+ * page, `reportPanelTheme` is the panel a `Surface` nests around its own children,
26
+ * and inside a panel the raised level is `colors.overlay`. No `page` key, no
27
+ * fourth surface name — a zone theme is how one colour of the contract changes
28
+ * per depth (§2, §7.2).
29
+ *
30
+ * ## Status map — this zone's OWN vocabulary (README §3.4)
31
+ *
32
+ * The report paints by MEANING, never by a raw colour: a caller names a status
33
+ * and the zone decides the pixels. Two groups:
34
+ *
35
+ * • chrome (`edge`, `dim`, `faint`) — the zone's greys. Chrome is one ink, so
36
+ * `background === content`; `edge.paint` is the translucent edge the pill
37
+ * rim behind a badge with no status of its own is drawn in.
38
+ * • hues — one key per meaning the reports paint (accent for links/active,
39
+ * danger/warn/ok for severity, the comparison pair `same`/`differs` for the
40
+ * legend). A hue key carries the SAME ink at three strengths: `background`
41
+ * = 12% tint (the pill behind a badge), `content` = the ink itself (the word,
42
+ * the icon, the swatch), `paint` = 33% tint (the pill's rim, a range mark).
43
+ * The alphas are hand-tuned, not derivable (`color-mix` misses the captured
44
+ * values), so they are CARRIED EXACTLY — the board zone's lesson (§3.4).
45
+ *
46
+ * `same`/`differs` are SOLID: the legend chip and the lane swatch are the hue
47
+ * itself, not a wash over a surface.
48
+ *
49
+ * ## Design tokens — this zone's own values (zone theme DATA)
50
+ *
51
+ * Legal zone DATA (like `codeEditor`'s `font.family`), not new fields: the report
52
+ * is a CODE-CENTRIC zone, so its `text` font role is the monospace stack and its
53
+ * titles keep the sans one; weights 400/650, the 12 / 12.5 / 15px scale, the
54
+ * 16/16/12/8px rhythm, the 6px radius and `shadows.section: none` (a panel is a
55
+ * flat lifted surface, not a floating card) all come from the report's own
56
+ * measurements. Sizes with no slot stay `calc()` over a slot in the component
57
+ * (README §4), never a new token.
58
+ *
59
+ * Interaction fragments are ready CSS the component only attaches (§4.3): the
60
+ * report's hover lifts a row onto the raised layer without an underline, and its
61
+ * focus ring is the `highlighted` hairline.
62
+ */
63
+ export declare const reportTheme: {
64
+ zIndex: {
65
+ animatedElements: number;
66
+ content: number;
67
+ overlay: number;
68
+ alert: number;
69
+ };
70
+ border: {
71
+ radius: string;
72
+ size: string;
73
+ };
74
+ shadows: {
75
+ section: string;
76
+ notification: string;
77
+ content: string;
78
+ };
79
+ animation: {
80
+ speed: {
81
+ fast: string;
82
+ normal: string;
83
+ slow: string;
84
+ pulse: string;
85
+ };
86
+ easing: {
87
+ standard: string;
88
+ inOut: string;
89
+ out: string;
90
+ linear: string;
91
+ spring: string;
92
+ };
93
+ };
94
+ font: {
95
+ family: {
96
+ text: string;
97
+ title: string;
98
+ };
99
+ weight: {
100
+ text: string;
101
+ title: string;
102
+ };
103
+ transform: {
104
+ text: string;
105
+ title: string;
106
+ };
107
+ sizes: {
108
+ small: string;
109
+ regular: string;
110
+ large: string;
111
+ };
112
+ spacing: string;
113
+ };
114
+ elements: {
115
+ sidebar: {
116
+ width: string;
117
+ };
118
+ header: {
119
+ height: string;
120
+ };
121
+ form: {
122
+ height: string;
123
+ minWidth: string;
124
+ };
125
+ icons: {
126
+ height: string;
127
+ width: string;
128
+ radius: string;
129
+ };
130
+ modal: {
131
+ width: string;
132
+ height: string;
133
+ };
134
+ };
135
+ offsets: {
136
+ page: string;
137
+ section: string;
138
+ betweenElements: string;
139
+ elementContent: string;
140
+ };
141
+ colors: {
142
+ section: string;
143
+ sectionContent: string;
144
+ overlay: string;
145
+ highlighted: string;
146
+ highlightedContent: string;
147
+ status: {
148
+ edge: {
149
+ background: string;
150
+ content: string;
151
+ paint: string;
152
+ };
153
+ dim: {
154
+ background: string;
155
+ content: string;
156
+ };
157
+ faint: {
158
+ background: string;
159
+ content: string;
160
+ };
161
+ accent: import("@md-code/styles/types").StatusPair;
162
+ amber: import("@md-code/styles/types").StatusPair;
163
+ violet: import("@md-code/styles/types").StatusPair;
164
+ teal: import("@md-code/styles/types").StatusPair;
165
+ rose: import("@md-code/styles/types").StatusPair;
166
+ indigo: import("@md-code/styles/types").StatusPair;
167
+ gold: import("@md-code/styles/types").StatusPair;
168
+ grey: import("@md-code/styles/types").StatusPair;
169
+ coral: import("@md-code/styles/types").StatusPair;
170
+ danger: import("@md-code/styles/types").StatusPair;
171
+ warn: import("@md-code/styles/types").StatusPair;
172
+ ok: import("@md-code/styles/types").StatusPair;
173
+ mute: import("@md-code/styles/types").StatusPair;
174
+ same: {
175
+ background: string;
176
+ content: string;
177
+ };
178
+ differs: {
179
+ background: string;
180
+ content: string;
181
+ };
182
+ };
183
+ };
184
+ screens: {
185
+ mobile: {
186
+ device: string;
187
+ height: number;
188
+ width: number;
189
+ };
190
+ tablet: {
191
+ device: string;
192
+ height: number;
193
+ width: number;
194
+ };
195
+ desktop: {
196
+ device: string;
197
+ height: number;
198
+ width: number;
199
+ };
200
+ };
201
+ effects: {
202
+ interaction: {
203
+ hover: string;
204
+ focus: string;
205
+ active: string;
206
+ disabled: string;
207
+ };
208
+ texture: string;
209
+ };
210
+ geometry: {
211
+ shape: string;
212
+ imprint: string;
213
+ };
214
+ variables: {
215
+ border: {
216
+ size: number;
217
+ radius: number;
218
+ };
219
+ header: {
220
+ height: {
221
+ mobile: number;
222
+ tablet: number;
223
+ desktop: number;
224
+ };
225
+ };
226
+ sidebar: {
227
+ width: number;
228
+ };
229
+ font: {
230
+ weight: number;
231
+ lineHeight: number;
232
+ };
233
+ offsets: {
234
+ section: {
235
+ mobile: number;
236
+ tablet: number;
237
+ desktop: number;
238
+ };
239
+ betweenElements: {
240
+ mobile: number;
241
+ tablet: number;
242
+ desktop: number;
243
+ };
244
+ elementContent: {
245
+ mobile: number;
246
+ tablet: number;
247
+ desktop: number;
248
+ };
249
+ };
250
+ };
251
+ theme: string;
252
+ };
253
+ /**
254
+ * The PANEL level of the report (JSDoc above): the same zone, one surface up.
255
+ * A `Surface` nests this around its own children, so everything inside — the
256
+ * panel's own background, its heads, its rows — resolves against `#121722`,
257
+ * while the page around it stays on `reportTheme`. Everything else is inherited
258
+ * (one zone, one vocabulary — README §2).
259
+ */
260
+ export declare const reportPanelTheme: {
261
+ theme: string;
262
+ colors: {
263
+ section: string;
264
+ sectionContent: string;
265
+ overlay: string;
266
+ highlighted: string;
267
+ highlightedContent: string;
268
+ status: {
269
+ edge: {
270
+ background: string;
271
+ content: string;
272
+ paint: string;
273
+ };
274
+ dim: {
275
+ background: string;
276
+ content: string;
277
+ };
278
+ faint: {
279
+ background: string;
280
+ content: string;
281
+ };
282
+ accent: import("@md-code/styles/types").StatusPair;
283
+ amber: import("@md-code/styles/types").StatusPair;
284
+ violet: import("@md-code/styles/types").StatusPair;
285
+ teal: import("@md-code/styles/types").StatusPair;
286
+ rose: import("@md-code/styles/types").StatusPair;
287
+ indigo: import("@md-code/styles/types").StatusPair;
288
+ gold: import("@md-code/styles/types").StatusPair;
289
+ grey: import("@md-code/styles/types").StatusPair;
290
+ coral: import("@md-code/styles/types").StatusPair;
291
+ danger: import("@md-code/styles/types").StatusPair;
292
+ warn: import("@md-code/styles/types").StatusPair;
293
+ ok: import("@md-code/styles/types").StatusPair;
294
+ mute: import("@md-code/styles/types").StatusPair;
295
+ same: {
296
+ background: string;
297
+ content: string;
298
+ };
299
+ differs: {
300
+ background: string;
301
+ content: string;
302
+ };
303
+ };
304
+ };
305
+ zIndex: {
306
+ animatedElements: number;
307
+ content: number;
308
+ overlay: number;
309
+ alert: number;
310
+ };
311
+ border: {
312
+ radius: string;
313
+ size: string;
314
+ };
315
+ shadows: {
316
+ section: string;
317
+ notification: string;
318
+ content: string;
319
+ };
320
+ animation: {
321
+ speed: {
322
+ fast: string;
323
+ normal: string;
324
+ slow: string;
325
+ pulse: string;
326
+ };
327
+ easing: {
328
+ standard: string;
329
+ inOut: string;
330
+ out: string;
331
+ linear: string;
332
+ spring: string;
333
+ };
334
+ };
335
+ font: {
336
+ family: {
337
+ text: string;
338
+ title: string;
339
+ };
340
+ weight: {
341
+ text: string;
342
+ title: string;
343
+ };
344
+ transform: {
345
+ text: string;
346
+ title: string;
347
+ };
348
+ sizes: {
349
+ small: string;
350
+ regular: string;
351
+ large: string;
352
+ };
353
+ spacing: string;
354
+ };
355
+ elements: {
356
+ sidebar: {
357
+ width: string;
358
+ };
359
+ header: {
360
+ height: string;
361
+ };
362
+ form: {
363
+ height: string;
364
+ minWidth: string;
365
+ };
366
+ icons: {
367
+ height: string;
368
+ width: string;
369
+ radius: string;
370
+ };
371
+ modal: {
372
+ width: string;
373
+ height: string;
374
+ };
375
+ };
376
+ offsets: {
377
+ page: string;
378
+ section: string;
379
+ betweenElements: string;
380
+ elementContent: string;
381
+ };
382
+ screens: {
383
+ mobile: {
384
+ device: string;
385
+ height: number;
386
+ width: number;
387
+ };
388
+ tablet: {
389
+ device: string;
390
+ height: number;
391
+ width: number;
392
+ };
393
+ desktop: {
394
+ device: string;
395
+ height: number;
396
+ width: number;
397
+ };
398
+ };
399
+ effects: {
400
+ interaction: {
401
+ hover: string;
402
+ focus: string;
403
+ active: string;
404
+ disabled: string;
405
+ };
406
+ texture: string;
407
+ };
408
+ geometry: {
409
+ shape: string;
410
+ imprint: string;
411
+ };
412
+ variables: {
413
+ border: {
414
+ size: number;
415
+ radius: number;
416
+ };
417
+ header: {
418
+ height: {
419
+ mobile: number;
420
+ tablet: number;
421
+ desktop: number;
422
+ };
423
+ };
424
+ sidebar: {
425
+ width: number;
426
+ };
427
+ font: {
428
+ weight: number;
429
+ lineHeight: number;
430
+ };
431
+ offsets: {
432
+ section: {
433
+ mobile: number;
434
+ tablet: number;
435
+ desktop: number;
436
+ };
437
+ betweenElements: {
438
+ mobile: number;
439
+ tablet: number;
440
+ desktop: number;
441
+ };
442
+ elementContent: {
443
+ mobile: number;
444
+ tablet: number;
445
+ desktop: number;
446
+ };
447
+ };
448
+ };
449
+ };
450
+ export default reportTheme;
451
+ //# sourceMappingURL=report.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../../../themes/zones/report.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGI,CAAC;AAE7B;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOD,CAAC;AAE7B,eAAe,WAAW,CAAC"}
@@ -0,0 +1,179 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DefaultTheme } from "styled-components";
3
+ import type { ThemeElements, ThemeOffsets, ThemeScreens, ThemeVariables } from "./themes/contract/index.js";
4
+ /**
5
+ * The theme contract: the single home of every type `@md-code/styles` publishes
6
+ * (`ThemeInterface`, `StatusPair`, the status-key helpers) and of the prop types
7
+ * its own helpers and provider read (`TFullWidth`, `ThemeProviderWrapperProps`).
8
+ * TypeScript checks the theme's STRUCTURE — fields present, status keys legal —
9
+ * never the CSS values: every CSS-bearing field is a plain `string`/`number`, and
10
+ * the linter's resolver validates what a declaration actually reaches, per theme
11
+ * (README §5.6). No value lists here.
12
+ */
13
+ /**
14
+ * One entry of the application-owned status map (README §3.4). FOUR channels:
15
+ * `background` (the standing surface wash) and `content` (the ink ON it) are
16
+ * required; `hot` (the focused wash of the ONE chain under the pointer) and
17
+ * `paint` (the wash behind a standing text mark) are optional ZONE channels a
18
+ * hand-tuned palette carries. Plain strings — the linter resolves their paint.
19
+ */
20
+ export interface StatusPair {
21
+ background: string;
22
+ content: string;
23
+ hot?: string;
24
+ paint?: string;
25
+ }
26
+ /**
27
+ * The status keys a given theme declares: a theme is a complete design context
28
+ * with its own status map (README §2, §3.4), so the key set is a property of the
29
+ * theme type. A component types its `$status`/`tone` prop through this.
30
+ */
31
+ export type StatusKeyOf<TTheme> = TTheme extends {
32
+ colors: {
33
+ status?: infer TStatusMap;
34
+ };
35
+ } ? keyof NonNullable<TStatusMap> & string : string;
36
+ /**
37
+ * The status keys of the consuming application's `DefaultTheme` augmentation
38
+ * (README §3.4): an app narrows it once and every prop typed through this helper
39
+ * accepts exactly those keys; no augmentation keeps the open `string`.
40
+ */
41
+ export type ThemeStatusKeys = StatusKeyOf<DefaultTheme>;
42
+ /**
43
+ * The theme contract. `TStatus` is the union of status keys the theme's
44
+ * `colors.status` map may contain; it defaults to `string`, so the library stays
45
+ * open and the consuming app may narrow it (README §3.4).
46
+ */
47
+ export interface ThemeInterface<TStatus extends string = string> {
48
+ /** The theme's identity (`'base'`, `'viking'`), not a CSS value. */
49
+ theme: string;
50
+ zIndex: Record<string, number>;
51
+ border: {
52
+ /** A COMPLETE CSS length (`'4px'`, `var(--border-radius)`), never a bare number. */
53
+ radius: string;
54
+ /** A COMPLETE CSS length (`'1px'`, `var(--border-size)`), never a bare number. */
55
+ size: string;
56
+ };
57
+ shadows: {
58
+ /** A resting surface: card, section, control (README §5.2). */
59
+ section: string;
60
+ /** Everything that floats ABOVE the page: modals, toasts, tooltips (README §5.2). */
61
+ notification: string;
62
+ /** The only shadow placed on entityContent — a text-shadow (README §5.2). */
63
+ content: string;
64
+ };
65
+ /** Motion rhythm (README §4.3): COMPLETE CSS durations/easings, written with no suffix. */
66
+ animation: {
67
+ speed: {
68
+ /** Hover/focus (~0.2s), state/toggles (~0.3s), slower states (~0.4s), pulse loops (2s). */
69
+ fast: string;
70
+ normal: string;
71
+ slow: string;
72
+ pulse: string;
73
+ };
74
+ easing: {
75
+ /** Default bezier; in/out pairs; `linear` loops; `spring` overshoots (ghost elements). */
76
+ standard: string;
77
+ inOut: string;
78
+ out: string;
79
+ linear: string;
80
+ spring: string;
81
+ };
82
+ };
83
+ colors: {
84
+ section: string;
85
+ sectionContent: string;
86
+ overlay: string;
87
+ overlayContent?: string;
88
+ highlighted: string;
89
+ highlightedContent: string;
90
+ /**
91
+ * Application-owned statuses: an OPEN, OPTIONAL map from the consuming
92
+ * theme's own status keys to a surface/content pair. `styles` knows no key in
93
+ * it — a component reads `colors.status?.[key]?.background ?? colors.section`
94
+ * and falls back to the zone pair when absent (README §3.4, §5.1).
95
+ */
96
+ status?: Partial<Record<TStatus, StatusPair>>;
97
+ };
98
+ effects: {
99
+ /**
100
+ * The surface texture as ONE complete CSS value: a `background-image`, a
101
+ * `backdrop-filter` (`blur(...)`) or `'none'` (README §5.3).
102
+ */
103
+ texture: string;
104
+ /** Ready state fragments a component only attaches (README §4.3, §6). */
105
+ interaction: {
106
+ hover: string;
107
+ active: string;
108
+ focus: string;
109
+ disabled: string;
110
+ };
111
+ };
112
+ geometry: {
113
+ /** The silhouette of an entity surface (README §5.4): `'none'`, `polygon(...)`. */
114
+ shape: string;
115
+ /**
116
+ * What the object IMPRINTS on its surroundings: a ready CSS fragment a
117
+ * component places into `::before`/`::after`. It is theme DATA computed from
118
+ * the theme's own values, never hardcoded (README §5.4).
119
+ */
120
+ imprint: string;
121
+ };
122
+ font: {
123
+ /** Family per role. There is no `code` role: a code surface is a ZONE theme
124
+ * whose `text` role IS monospace (README §5.5, §6). */
125
+ family: {
126
+ text: string;
127
+ title: string;
128
+ };
129
+ /** Font weight per role (`'400'`, `'700'`), applied where that role is painted. */
130
+ weight: {
131
+ text: string;
132
+ title: string;
133
+ };
134
+ /** `text-transform` per role (`'none'`, `'uppercase'`, …). */
135
+ transform: {
136
+ text: string;
137
+ title: string;
138
+ };
139
+ sizes: {
140
+ small: string;
141
+ regular: string;
142
+ large: string;
143
+ };
144
+ spacing: string;
145
+ };
146
+ /** The theme's own numbers and the COMPLETE CSS lengths they resolve to. */
147
+ variables: ThemeVariables;
148
+ screens: ThemeScreens;
149
+ offsets: ThemeOffsets;
150
+ elements: ThemeElements;
151
+ }
152
+ /** The theme a provider hands down — the contract read at its open default. */
153
+ export type Theme = ThemeInterface;
154
+ /**
155
+ * Props of the package's `ThemeProvider`: a theme is a COMPLETE `ThemeInterface`
156
+ * and the provider hands it down as is — it does not merge it with `baseTheme`.
157
+ */
158
+ export interface ThemeProviderWrapperProps {
159
+ children: ReactNode;
160
+ theme: ThemeInterface;
161
+ }
162
+ /** `withOffsetsRight`/`withOffsetBottom`: the element's own extra rhythm (README §4.4). */
163
+ export type TWithBasicElementOffsets = {
164
+ /** added offset right by multiplying theme baseOffset variable */
165
+ $offsetRight?: boolean | number;
166
+ /** added offset bottom by multiplying theme baseOffset variable */
167
+ $offsetBottom?: boolean | number;
168
+ };
169
+ /** `withFullWidth`: let the element take the whole row. */
170
+ export type TFullWidth = {
171
+ /** expand component into 100% width */
172
+ $fullWidth?: boolean;
173
+ };
174
+ /** `withSpaceBetween`: push the element's children to the row's two ends. */
175
+ export type TWithSpaceBetween = {
176
+ /** spread children to the opposite ends of the row */
177
+ $spaceBetween?: boolean;
178
+ };
179
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,mCAAgC;AAEzG;;;;;;;;GAQG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;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