@mapcairn/theme 0.0.0-stage → 0.1.0-rc.2

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/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { checkThemeContrast } from "./checkThemeContrast.js";
2
+ import { compositeOver, contrastRatio, parseColour, toHex } from "./contrast.js";
3
+ import { createThemeStylesheet } from "./createThemeStylesheet.js";
4
+ import { mapOverlayTokens } from "./mapOverlayTokens.js";
5
+ import { blur, focusRing, surfaceBlurStyle, surfaceBlurSupported, tokens } from "./tokens.styles.js";
6
+ import { tokenValues_exports } from "./tokenValues.js";
7
+ import { zLayer } from "./zLayer.js";
8
+ export { blur, checkThemeContrast, compositeOver, contrastRatio, createThemeStylesheet, focusRing, mapOverlayTokens, parseColour, surfaceBlurStyle, surfaceBlurSupported, toHex, tokenValues_exports as tokenValues, tokens, zLayer };
@@ -0,0 +1,41 @@
1
+ import { tokens } from "./tokens.styles.js";
2
+ // src/mapOverlayTokens.ts
3
+ /**
4
+ * The CSS variable references for everything drawn over the map: pin,
5
+ * measure line and fill, accuracy circle, halo, loading indicator and
6
+ * tile-error banner. Overlay components style from these alone, so they
7
+ * look the same on every map engine and never import an engine's styles.
8
+ *
9
+ * Each colour clears 3:1 against light and dark basemaps; `contrast.test.ts`
10
+ * enforces it. The fills are translucent by design, so the outline beside
11
+ * them carries the contrast.
12
+ */
13
+ var mapOverlayTokens = {
14
+ /** The map element's colour before tiles load. */
15
+ background: tokens.color.mapBackground,
16
+ /** The space around the sphere when the map is drawn as a globe. */
17
+ globeSpace: tokens.color.mapGlobeSpace,
18
+ /** Dropped pin. */
19
+ pin: tokens.color.mapPin,
20
+ /** Outline that separates a pin or line from the map beneath. */
21
+ halo: tokens.color.mapHalo,
22
+ /** Measurement line. */
23
+ measureLine: tokens.color.mapMeasureLine,
24
+ /** Measured area fill. */
25
+ measureFill: tokens.color.mapMeasureFill,
26
+ /** Location accuracy circle outline. */
27
+ accuracyStroke: tokens.color.mapAccuracy,
28
+ /** Location accuracy circle fill. */
29
+ accuracyFill: tokens.color.mapAccuracyFill,
30
+ /** The moving arc of the tile-loading indicator. */
31
+ loadingIndicator: tokens.color.mapPin,
32
+ /** The track behind the loading indicator. */
33
+ loadingTrack: tokens.color.mapHalo,
34
+ /** Tile-error banner background. */
35
+ tileErrorBackground: tokens.color.dangerTint,
36
+ /** Tile-error banner text and icon. */
37
+ tileErrorText: tokens.color.danger
38
+ };
39
+ export { mapOverlayTokens };
40
+
41
+ //# sourceMappingURL=mapOverlayTokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapOverlayTokens.js","names":[],"sources":["../src/mapOverlayTokens.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-only\n// Copyright MapCairn contributors\nimport { tokens } from \"./tokens.css\";\n\n/**\n * The CSS variable references for everything drawn over the map: pin,\n * measure line and fill, accuracy circle, halo, loading indicator and\n * tile-error banner. Overlay components style from these alone, so they\n * look the same on every map engine and never import an engine's styles.\n *\n * Each colour clears 3:1 against light and dark basemaps; `contrast.test.ts`\n * enforces it. The fills are translucent by design, so the outline beside\n * them carries the contrast.\n */\nexport const mapOverlayTokens = {\n /** The map element's colour before tiles load. */\n background: tokens.color.mapBackground,\n /** The space around the sphere when the map is drawn as a globe. */\n globeSpace: tokens.color.mapGlobeSpace,\n /** Dropped pin. */\n pin: tokens.color.mapPin,\n /** Outline that separates a pin or line from the map beneath. */\n halo: tokens.color.mapHalo,\n /** Measurement line. */\n measureLine: tokens.color.mapMeasureLine,\n /** Measured area fill. */\n measureFill: tokens.color.mapMeasureFill,\n /** Location accuracy circle outline. */\n accuracyStroke: tokens.color.mapAccuracy,\n /** Location accuracy circle fill. */\n accuracyFill: tokens.color.mapAccuracyFill,\n /** The moving arc of the tile-loading indicator. */\n loadingIndicator: tokens.color.mapPin,\n /** The track behind the loading indicator. */\n loadingTrack: tokens.color.mapHalo,\n /** Tile-error banner background. */\n tileErrorBackground: tokens.color.dangerTint,\n /** Tile-error banner text and icon. */\n tileErrorText: tokens.color.danger,\n} as const;\n"],"mappings":";;;;;;;;;;;;AAcA,IAAa,mBAAmB;;CAE9B,YAAY,OAAO,MAAM;;CAEzB,YAAY,OAAO,MAAM;;CAEzB,KAAK,OAAO,MAAM;;CAElB,MAAM,OAAO,MAAM;;CAEnB,aAAa,OAAO,MAAM;;CAE1B,aAAa,OAAO,MAAM;;CAE1B,gBAAgB,OAAO,MAAM;;CAE7B,cAAc,OAAO,MAAM;;CAE3B,kBAAkB,OAAO,MAAM;;CAE/B,cAAc,OAAO,MAAM;;CAE3B,qBAAqB,OAAO,MAAM;;CAElC,eAAe,OAAO,MAAM;AAC9B"}
@@ -0,0 +1,507 @@
1
+ import { __exportAll } from "./_virtual/_rolldown/runtime.js";
2
+ import { compositeOver, toHex } from "./contrast.js";
3
+ // src/tokenValues.ts
4
+ var tokenValues_exports = /* @__PURE__ */ __exportAll({
5
+ accent: () => accent,
6
+ blurValue: () => blurValue,
7
+ colourRoleNames: () => colourRoleNames,
8
+ dataMarker: () => dataMarker,
9
+ dataPalette: () => dataPalette,
10
+ focusWidth: () => focusWidth,
11
+ focusWidthContrastMore: () => focusWidthContrastMore,
12
+ fontFamily: () => fontFamily,
13
+ fontFamilyMono: () => fontFamilyMono,
14
+ fontWeight: () => fontWeight,
15
+ forcedColors: () => forcedColors,
16
+ inset: () => inset,
17
+ motion: () => motion,
18
+ neutral: () => neutral,
19
+ nonLatinLanguages: () => nonLatinLanguages,
20
+ nonLatinType: () => nonLatinType,
21
+ radius: () => radius,
22
+ representativeBackdrops: () => representativeBackdrops,
23
+ size: () => size,
24
+ space: () => space,
25
+ spring: () => spring,
26
+ themeColor: () => themeColor,
27
+ themeValues: () => themeValues,
28
+ typeScale: () => typeScale,
29
+ zIndex: () => zIndex,
30
+ zLayerOrder: () => zLayerOrder
31
+ });
32
+ /**
33
+ * Every design-token value as plain typed data, with no vanilla-extract in
34
+ * sight. `tokens.css.ts` turns this into CSS custom properties; the unit
35
+ * tests (`contrast.test.ts`) and the documentation read it directly.
36
+ *
37
+ * Colours are `oklch()` strings so the palette is built from lightness steps
38
+ * rather than hand-picked hex. Every colour stays inside the sRGB gamut, which
39
+ * `contrast.test.ts` enforces so the contrast maths matches what any display
40
+ * renders.
41
+ */
42
+ /**
43
+ * Neutral ramp with a faint cool tint (hue 250, chroma at most 0.012).
44
+ * Steps run light to dark; the number is the usual 50 to 950 scale.
45
+ */
46
+ var neutral = {
47
+ 50: "oklch(0.975 0.003 250)",
48
+ 100: "oklch(0.955 0.004 250)",
49
+ 200: "oklch(0.915 0.005 250)",
50
+ 300: "oklch(0.86 0.007 250)",
51
+ 400: "oklch(0.74 0.009 250)",
52
+ 500: "oklch(0.62 0.011 250)",
53
+ 600: "oklch(0.53 0.012 250)",
54
+ 700: "oklch(0.44 0.012 250)",
55
+ 800: "oklch(0.34 0.011 250)",
56
+ 850: "oklch(0.28 0.01 250)",
57
+ 900: "oklch(0.22 0.01 250)",
58
+ 950: "oklch(0.17 0.008 250)"
59
+ };
60
+ /**
61
+ * The one accent: a clear blue at hue 255. Chroma follows the sRGB gamut edge
62
+ * at each lightness, which is why it peaks in the middle of the ramp.
63
+ * Step 600 is the map overlay blue and the light focus ring; 700 is the light
64
+ * accent used for text and fills; 300 is the dark accent.
65
+ */
66
+ var accent = {
67
+ 50: "oklch(0.97 0.013 255)",
68
+ 100: "oklch(0.93 0.032 255)",
69
+ 200: "oklch(0.87 0.06 255)",
70
+ 300: "oklch(0.8 0.095 255)",
71
+ 400: "oklch(0.74 0.125 255)",
72
+ 500: "oklch(0.66 0.17 255)",
73
+ 600: "oklch(0.55 0.175 255)",
74
+ 700: "oklch(0.46 0.15 255)",
75
+ 800: "oklch(0.39 0.125 255)",
76
+ 900: "oklch(0.32 0.095 255)"
77
+ };
78
+ /** Red used only for errors and destructive actions. */
79
+ var red = {
80
+ tintLight: "oklch(0.95 0.024 25)",
81
+ textLight: "oklch(0.48 0.17 27)",
82
+ tintDark: "oklch(0.3 0.07 25)",
83
+ textDark: "oklch(0.82 0.095 25)"
84
+ };
85
+ /**
86
+ * The data palette: the colours data layers draw with, named by the slots
87
+ * `@mapcairn/core` lets a layer definition use (`PALETTE_SLOTS`). Six-digit hex,
88
+ * because the map engine and SVG `fill` attributes read it directly.
89
+ *
90
+ * The categorical colours are Okabe-Ito (without black, which vanishes on a
91
+ * dark basemap). The ordinal ramp runs light to dark in the manner of
92
+ * viridis, for ordered values such as magnitude. Every marker also has a
93
+ * dark edge and white halo (`dataMarker`) and a shape or size, so colour is never the only signal.
94
+ */
95
+ var dataPalette = {
96
+ orange: "#e69f00",
97
+ "sky-blue": "#56b4e9",
98
+ "bluish-green": "#009e73",
99
+ yellow: "#f0e442",
100
+ blue: "#0072b2",
101
+ vermillion: "#d55e00",
102
+ "reddish-purple": "#cc79a7",
103
+ "ordinal-1": "#fde725",
104
+ "ordinal-2": "#5ec962",
105
+ "ordinal-3": "#21918c",
106
+ "ordinal-4": "#3b528b",
107
+ "ordinal-5": "#440154"
108
+ };
109
+ /**
110
+ * The two-tone edge of a data marker: a dark line just outside the fill, and
111
+ * a white halo outside that. The same in both themes and on every basemap,
112
+ * because a marker looks the same wherever it is drawn. On a light map the
113
+ * dark edge shows the pale colours (yellow, the lightest ramp step); on a
114
+ * dark surface the halo shows the dark ones (the darkest step). Plain hex,
115
+ * because the map engine draws markers as bitmaps.
116
+ */
117
+ var dataMarker = {
118
+ edge: "#1c2733",
119
+ halo: "#ffffff",
120
+ /** Width of the dark edge, in CSS pixels. */
121
+ edgeWidth: 1,
122
+ /** Width of the white halo outside the edge, in CSS pixels. */
123
+ haloWidth: 1.5
124
+ };
125
+ /**
126
+ * Backdrops that surface contrast is measured over. A translucent surface
127
+ * takes on whatever map is under it, so tests composite over both extremes,
128
+ * plus the light basemaps for the things drawn on the map. Every built-in
129
+ * basemap is light; pure black stands in for any dark map a host adds.
130
+ */
131
+ var representativeBackdrops = {
132
+ white: "#ffffff",
133
+ black: "#000000",
134
+ /** Close to a light OpenStreetMap or Positron land colour. */
135
+ lightMap: "#f2efe9",
136
+ /**
137
+ * The land (background layer) colour of OpenFreeMap Bright, the default
138
+ * basemap in both themes. It must equal `DEFAULT_BASEMAP_BACKGROUND` in
139
+ * `@mapcairn/core`, which this package cannot import; a test in
140
+ * `packages/web` checks that they agree.
141
+ */
142
+ defaultBasemap: "#f8f4f0"
143
+ };
144
+ /** Names of the colour roles, in declaration order. */
145
+ var colourRoleNames = [
146
+ "surface",
147
+ "surfaceRaised",
148
+ "text",
149
+ "textMuted",
150
+ "accent",
151
+ "accentTint",
152
+ "accentContrast",
153
+ "hairline",
154
+ "controlBoundary",
155
+ "chromeBorder",
156
+ "danger",
157
+ "dangerTint",
158
+ "scrim",
159
+ "focusRing",
160
+ "focusRingInner",
161
+ "pageBackground",
162
+ "mapBackground",
163
+ "mapGlobeSpace",
164
+ "mapPin",
165
+ "mapMeasureLine",
166
+ "mapMeasureFill",
167
+ "mapAccuracy",
168
+ "mapAccuracyFill",
169
+ "mapHalo"
170
+ ];
171
+ var lightColour = {
172
+ surface: "oklch(1 0 0 / 0.82)",
173
+ surfaceRaised: "oklch(1 0 0 / 0.94)",
174
+ text: neutral[900],
175
+ textMuted: neutral[700],
176
+ accent: accent[700],
177
+ accentTint: accent[100],
178
+ accentContrast: "oklch(1 0 0)",
179
+ hairline: "oklch(0.22 0.01 250 / 0.12)",
180
+ controlBoundary: neutral[600],
181
+ chromeBorder: "transparent",
182
+ danger: red.textLight,
183
+ dangerTint: red.tintLight,
184
+ scrim: "oklch(0 0 0 / 0.4)",
185
+ focusRing: accent[600],
186
+ focusRingInner: "oklch(1 0 0)",
187
+ pageBackground: "oklch(0.95 0.008 85)",
188
+ mapBackground: representativeBackdrops.defaultBasemap,
189
+ mapGlobeSpace: "oklch(0.82 0.02 250)",
190
+ mapPin: accent[600],
191
+ mapMeasureLine: accent[600],
192
+ mapMeasureFill: "oklch(0.55 0.175 255 / 0.18)",
193
+ mapAccuracy: accent[600],
194
+ mapAccuracyFill: "oklch(0.55 0.175 255 / 0.12)",
195
+ mapHalo: "oklch(1 0 0)"
196
+ };
197
+ var darkColour = {
198
+ surface: "oklch(0.19 0.008 250 / 0.8)",
199
+ surfaceRaised: "oklch(0.25 0.009 250 / 0.88)",
200
+ text: neutral[50],
201
+ textMuted: neutral[300],
202
+ accent: accent[300],
203
+ accentTint: "oklch(0.3 0.06 255)",
204
+ accentContrast: neutral[950],
205
+ hairline: "oklch(1 0 0 / 0.14)",
206
+ controlBoundary: "oklch(0.7 0.01 250)",
207
+ chromeBorder: "transparent",
208
+ danger: red.textDark,
209
+ dangerTint: red.tintDark,
210
+ scrim: "oklch(0 0 0 / 0.6)",
211
+ focusRing: accent[500],
212
+ focusRingInner: "oklch(0.19 0.008 250)",
213
+ pageBackground: "oklch(0.24 0.008 250)",
214
+ mapBackground: representativeBackdrops.defaultBasemap,
215
+ mapGlobeSpace: "oklch(0.31 0.025 255)",
216
+ mapPin: accent[600],
217
+ mapMeasureLine: accent[600],
218
+ mapMeasureFill: "oklch(0.55 0.175 255 / 0.28)",
219
+ mapAccuracy: accent[600],
220
+ mapAccuracyFill: "oklch(0.55 0.175 255 / 0.2)",
221
+ mapHalo: "oklch(0.19 0.008 250)"
222
+ };
223
+ /** Light and dark values for every themed token. */
224
+ var themeValues = {
225
+ light: {
226
+ colour: lightColour,
227
+ opaque: {
228
+ ...lightColour,
229
+ surface: "oklch(0.995 0.002 250)",
230
+ surfaceRaised: "oklch(1 0 0)"
231
+ },
232
+ contrastMore: {
233
+ ...lightColour,
234
+ surface: "oklch(1 0 0)",
235
+ surfaceRaised: "oklch(1 0 0)",
236
+ text: "oklch(0.15 0.01 250)",
237
+ textMuted: neutral[800],
238
+ hairline: neutral[600],
239
+ controlBoundary: neutral[700],
240
+ chromeBorder: neutral[700]
241
+ },
242
+ shadow: {
243
+ floating: "0 1px 2px oklch(0.2 0.02 250 / 0.12), 0 4px 16px oklch(0.2 0.02 250 / 0.14)",
244
+ sheet: "0 0 2px oklch(0.2 0.02 250 / 0.1), 0 -4px 24px oklch(0.2 0.02 250 / 0.16), 0 8px 32px oklch(0.2 0.02 250 / 0.12)"
245
+ }
246
+ },
247
+ dark: {
248
+ colour: darkColour,
249
+ opaque: {
250
+ ...darkColour,
251
+ surface: "oklch(0.2 0.008 250)",
252
+ surfaceRaised: "oklch(0.26 0.009 250)"
253
+ },
254
+ contrastMore: {
255
+ ...darkColour,
256
+ surface: "oklch(0.17 0.008 250)",
257
+ surfaceRaised: "oklch(0.17 0.008 250)",
258
+ text: "oklch(1 0 0)",
259
+ textMuted: neutral[100],
260
+ hairline: neutral[400],
261
+ controlBoundary: neutral[300],
262
+ chromeBorder: neutral[300],
263
+ focusRingInner: "oklch(0.17 0.008 250)"
264
+ },
265
+ shadow: {
266
+ floating: "0 1px 2px oklch(0 0 0 / 0.4), 0 4px 16px oklch(0 0 0 / 0.45), inset 0 1px 0 oklch(1 0 0 / 0.07)",
267
+ sheet: "0 0 2px oklch(0 0 0 / 0.4), 0 -4px 24px oklch(0 0 0 / 0.5), 0 8px 32px oklch(0 0 0 / 0.4), inset 0 1px 0 oklch(1 0 0 / 0.07)"
268
+ }
269
+ }
270
+ };
271
+ /**
272
+ * Colours for `forced-colors: active`, written as CSS system colours. Only the
273
+ * chrome roles are mapped; map overlay colours stay as they are because the
274
+ * map is drawn on a canvas that forced colours does not recolour.
275
+ */
276
+ var forcedColors = {
277
+ surface: "Canvas",
278
+ surfaceRaised: "Canvas",
279
+ text: "CanvasText",
280
+ textMuted: "CanvasText",
281
+ accent: "Highlight",
282
+ accentTint: "Canvas",
283
+ accentContrast: "HighlightText",
284
+ hairline: "CanvasText",
285
+ controlBoundary: "ButtonBorder",
286
+ chromeBorder: "CanvasText",
287
+ danger: "CanvasText",
288
+ dangerTint: "Canvas",
289
+ focusRing: "Highlight",
290
+ focusRingInner: "Canvas",
291
+ pageBackground: "Canvas",
292
+ mapBackground: "Canvas",
293
+ mapGlobeSpace: "Canvas"
294
+ };
295
+ /**
296
+ * Opaque colours for the `theme-color` meta tag: the default surface
297
+ * flattened over each theme's page background, so the browser chrome keeps
298
+ * the theme's own lightness above the map and on every other page.
299
+ */
300
+ var themeColor = {
301
+ light: toHex(compositeOver(themeValues.light.colour.surface, themeValues.light.colour.pageBackground)),
302
+ dark: toHex(compositeOver(themeValues.dark.colour.surface, themeValues.dark.colour.pageBackground))
303
+ };
304
+ /** Backdrop blur applied behind translucent surfaces. */
305
+ var blurValue = "blur(20px) saturate(150%)";
306
+ /** Spacing scale in pixels, plus the screen inset. */
307
+ var space = {
308
+ xxs: "4px",
309
+ xs: "8px",
310
+ sm: "12px",
311
+ md: "16px",
312
+ lg: "24px",
313
+ xl: "32px"
314
+ };
315
+ /** Distance from the screen edge to floating chrome. */
316
+ var inset = "12px";
317
+ /** Corner radii by role. */
318
+ var radius = {
319
+ pill: "24px",
320
+ sheet: "20px",
321
+ control: "14px",
322
+ inner: "10px",
323
+ round: "50%"
324
+ };
325
+ /**
326
+ * Type scale. Sizes are in rem so they follow the user's font size; line
327
+ * height is unitless and tracking is in em. Only weights 400 and 600 exist.
328
+ */
329
+ var typeScale = {
330
+ small: {
331
+ size: "0.8125rem",
332
+ lineHeight: "1.4",
333
+ tracking: "0.01em"
334
+ },
335
+ body: {
336
+ size: "0.9375rem",
337
+ lineHeight: "1.45",
338
+ tracking: "0em"
339
+ },
340
+ large: {
341
+ size: "1.0625rem",
342
+ lineHeight: "1.4",
343
+ tracking: "-0.005em"
344
+ },
345
+ title: {
346
+ size: "1.375rem",
347
+ lineHeight: "1.25",
348
+ tracking: "-0.015em"
349
+ },
350
+ /**
351
+ * The one display size, for the heading of a full page that is not the map
352
+ * (the reference host's product page). The map's chrome never uses it.
353
+ */
354
+ display: {
355
+ size: "2.5rem",
356
+ lineHeight: "1.1",
357
+ tracking: "-0.025em"
358
+ }
359
+ };
360
+ /**
361
+ * Tracking and line height for text in a script that tracking or a tight line
362
+ * breaks. Letter spacing, positive or negative, cuts the joins of Arabic
363
+ * script and the conjuncts of the Indic scripts, and the tall marks of Indic,
364
+ * Thai and Khmer text collide at the Latin line heights. Tracking is zero and
365
+ * every step gets a line height of 1.5 or more. A host may set these tokens;
366
+ * Latin text never reads them.
367
+ */
368
+ var nonLatinType = {
369
+ tracking: "0em",
370
+ lineHeight: {
371
+ small: "1.6",
372
+ body: "1.6",
373
+ large: "1.6",
374
+ title: "1.5",
375
+ display: "1.5"
376
+ }
377
+ };
378
+ /**
379
+ * The language subtags that take {@link nonLatinType}, matched with `:lang()`
380
+ * so a region or script subtag (`zh-Hans`) matches too. The list is not
381
+ * exhaustive; a host adds rules for others. Custom properties inherit, so a
382
+ * Latin span inside a listed language keeps these values.
383
+ */
384
+ var nonLatinLanguages = [
385
+ "ar",
386
+ "fa",
387
+ "ur",
388
+ "ps",
389
+ "sd",
390
+ "ug",
391
+ "ckb",
392
+ "ku",
393
+ "yi",
394
+ "ji",
395
+ "dv",
396
+ "syr",
397
+ "he",
398
+ "iw",
399
+ "hi",
400
+ "mr",
401
+ "ne",
402
+ "bn",
403
+ "as",
404
+ "sa",
405
+ "gu",
406
+ "pa",
407
+ "or",
408
+ "ta",
409
+ "te",
410
+ "kn",
411
+ "ml",
412
+ "si",
413
+ "th",
414
+ "lo",
415
+ "km",
416
+ "my",
417
+ "am",
418
+ "ti",
419
+ "bo",
420
+ "dz",
421
+ "mn",
422
+ "jv",
423
+ "ks",
424
+ "ka",
425
+ "hy",
426
+ "ja",
427
+ "ko",
428
+ "zh",
429
+ "yue",
430
+ "cmn"
431
+ ];
432
+ /** Font weights. Nothing else is declared in `@font-face`. */
433
+ var fontWeight = {
434
+ regular: "400",
435
+ semibold: "600"
436
+ };
437
+ /**
438
+ * The font stack: the self-hosted variable face, its metric-matched fallback
439
+ * (declared in `packages/web/src/fonts/fonts.css`) and then system fonts that
440
+ * also cover non-Latin place names.
441
+ */
442
+ var fontFamily = "\"IBM Plex Sans Variable\", \"IBM Plex Sans Fallback\", system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif";
443
+ /**
444
+ * The stack for code samples only: the system's own monospaced faces, so no
445
+ * second web font is downloaded. Interface text never uses it.
446
+ */
447
+ var fontFamilyMono = "ui-monospace, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace";
448
+ /** Interactive sizes and the icon system. */
449
+ var size = {
450
+ control: "3rem",
451
+ minTarget: "2.75rem",
452
+ gapBetweenTargets: "0.5rem",
453
+ icon: "24px",
454
+ iconStroke: "1.75"
455
+ };
456
+ /** Focus ring widths. `prefers-contrast: more` raises both. */
457
+ var focusWidth = {
458
+ inner: "2px",
459
+ outer: "2px"
460
+ };
461
+ /** Focus ring widths under `prefers-contrast: more`. */
462
+ var focusWidthContrastMore = {
463
+ inner: "3px",
464
+ outer: "3px"
465
+ };
466
+ /**
467
+ * A critically damped-ish spring (damping ratio 0.72) sampled to `linear()`,
468
+ * peaking about 3.5% over. Used for the sheet only.
469
+ */
470
+ var spring = "linear(0, 0.229, 0.593, 0.858, 0.992, 1.035, 1.035, 1.021, 1.009, 1.002, 0.999, 0.999, 0.999, 0.999, 1, 1, 1, 1, 1)";
471
+ /** Motion tokens. Only transform and opacity animate. */
472
+ var motion = {
473
+ duration: {
474
+ fast: "120ms",
475
+ base: "200ms",
476
+ slow: "320ms"
477
+ },
478
+ /** Durations when `prefers-reduced-motion: reduce` is set. */
479
+ durationReduced: "0.01ms",
480
+ easing: "cubic-bezier(0.2, 0, 0, 1)",
481
+ spring
482
+ };
483
+ /** Z layers from bottom to top, with room between for local adjustments. */
484
+ var zIndex = {
485
+ map: "0",
486
+ mapOverlay: "10",
487
+ chrome: "20",
488
+ chromeRaised: "30",
489
+ sheet: "40",
490
+ toolbar: "50",
491
+ popover: "60",
492
+ toast: "70"
493
+ };
494
+ /** Z layer names in stacking order, bottom to top. */
495
+ var zLayerOrder = [
496
+ "map",
497
+ "mapOverlay",
498
+ "chrome",
499
+ "chromeRaised",
500
+ "sheet",
501
+ "toolbar",
502
+ "popover",
503
+ "toast"
504
+ ];
505
+ export { accent, blurValue, colourRoleNames, dataMarker, dataPalette, focusWidth, focusWidthContrastMore, fontFamily, fontFamilyMono, fontWeight, forcedColors, inset, motion, neutral, nonLatinLanguages, nonLatinType, radius, representativeBackdrops, size, space, spring, themeColor, themeValues, tokenValues_exports, typeScale, zIndex, zLayerOrder };
506
+
507
+ //# sourceMappingURL=tokenValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokenValues.js","names":[],"sources":["../src/tokenValues.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-only\n// Copyright MapCairn contributors\nimport { compositeOver, toHex } from \"./contrast\";\n\n/**\n * Every design-token value as plain typed data, with no vanilla-extract in\n * sight. `tokens.css.ts` turns this into CSS custom properties; the unit\n * tests (`contrast.test.ts`) and the documentation read it directly.\n *\n * Colours are `oklch()` strings so the palette is built from lightness steps\n * rather than hand-picked hex. Every colour stays inside the sRGB gamut, which\n * `contrast.test.ts` enforces so the contrast maths matches what any display\n * renders.\n */\n\n/**\n * Neutral ramp with a faint cool tint (hue 250, chroma at most 0.012).\n * Steps run light to dark; the number is the usual 50 to 950 scale.\n */\nexport const neutral = {\n 50: \"oklch(0.975 0.003 250)\",\n 100: \"oklch(0.955 0.004 250)\",\n 200: \"oklch(0.915 0.005 250)\",\n 300: \"oklch(0.86 0.007 250)\",\n 400: \"oklch(0.74 0.009 250)\",\n 500: \"oklch(0.62 0.011 250)\",\n 600: \"oklch(0.53 0.012 250)\",\n 700: \"oklch(0.44 0.012 250)\",\n 800: \"oklch(0.34 0.011 250)\",\n 850: \"oklch(0.28 0.01 250)\",\n 900: \"oklch(0.22 0.01 250)\",\n 950: \"oklch(0.17 0.008 250)\",\n} as const;\n\n/**\n * The one accent: a clear blue at hue 255. Chroma follows the sRGB gamut edge\n * at each lightness, which is why it peaks in the middle of the ramp.\n * Step 600 is the map overlay blue and the light focus ring; 700 is the light\n * accent used for text and fills; 300 is the dark accent.\n */\nexport const accent = {\n 50: \"oklch(0.97 0.013 255)\",\n 100: \"oklch(0.93 0.032 255)\",\n 200: \"oklch(0.87 0.06 255)\",\n 300: \"oklch(0.8 0.095 255)\",\n 400: \"oklch(0.74 0.125 255)\",\n 500: \"oklch(0.66 0.17 255)\",\n 600: \"oklch(0.55 0.175 255)\",\n 700: \"oklch(0.46 0.15 255)\",\n 800: \"oklch(0.39 0.125 255)\",\n 900: \"oklch(0.32 0.095 255)\",\n} as const;\n\n/** Red used only for errors and destructive actions. */\nconst red = {\n tintLight: \"oklch(0.95 0.024 25)\",\n textLight: \"oklch(0.48 0.17 27)\",\n tintDark: \"oklch(0.3 0.07 25)\",\n textDark: \"oklch(0.82 0.095 25)\",\n} as const;\n\n/**\n * The data palette: the colours data layers draw with, named by the slots\n * `@mapcairn/core` lets a layer definition use (`PALETTE_SLOTS`). Six-digit hex,\n * because the map engine and SVG `fill` attributes read it directly.\n *\n * The categorical colours are Okabe-Ito (without black, which vanishes on a\n * dark basemap). The ordinal ramp runs light to dark in the manner of\n * viridis, for ordered values such as magnitude. Every marker also has a\n * dark edge and white halo (`dataMarker`) and a shape or size, so colour is never the only signal.\n */\nexport const dataPalette = {\n orange: \"#e69f00\",\n \"sky-blue\": \"#56b4e9\",\n \"bluish-green\": \"#009e73\",\n yellow: \"#f0e442\",\n blue: \"#0072b2\",\n vermillion: \"#d55e00\",\n \"reddish-purple\": \"#cc79a7\",\n \"ordinal-1\": \"#fde725\",\n \"ordinal-2\": \"#5ec962\",\n \"ordinal-3\": \"#21918c\",\n \"ordinal-4\": \"#3b528b\",\n \"ordinal-5\": \"#440154\",\n} as const;\n\n/**\n * The two-tone edge of a data marker: a dark line just outside the fill, and\n * a white halo outside that. The same in both themes and on every basemap,\n * because a marker looks the same wherever it is drawn. On a light map the\n * dark edge shows the pale colours (yellow, the lightest ramp step); on a\n * dark surface the halo shows the dark ones (the darkest step). Plain hex,\n * because the map engine draws markers as bitmaps.\n */\nexport const dataMarker = {\n edge: \"#1c2733\",\n halo: \"#ffffff\",\n /** Width of the dark edge, in CSS pixels. */\n edgeWidth: 1,\n /** Width of the white halo outside the edge, in CSS pixels. */\n haloWidth: 1.5,\n} as const;\n\n/**\n * Backdrops that surface contrast is measured over. A translucent surface\n * takes on whatever map is under it, so tests composite over both extremes,\n * plus the light basemaps for the things drawn on the map. Every built-in\n * basemap is light; pure black stands in for any dark map a host adds.\n */\nexport const representativeBackdrops = {\n white: \"#ffffff\",\n black: \"#000000\",\n /** Close to a light OpenStreetMap or Positron land colour. */\n lightMap: \"#f2efe9\",\n /**\n * The land (background layer) colour of OpenFreeMap Bright, the default\n * basemap in both themes. It must equal `DEFAULT_BASEMAP_BACKGROUND` in\n * `@mapcairn/core`, which this package cannot import; a test in\n * `packages/web` checks that they agree.\n */\n defaultBasemap: \"#f8f4f0\",\n} as const;\n\n/** The semantic colour roles. Components use these and never a ramp step. */\nexport interface ColourRoles {\n /** Floating chrome (search pill, control groups, sheet). Translucent by default. */\n surface: string;\n /** A surface raised inside another surface (inputs, cards). */\n surfaceRaised: string;\n /** Body text and icons. */\n text: string;\n /** Secondary text. Never used below 13px and never as the only cue. */\n textMuted: string;\n /** The accent: links, selected state, switch-on, selected basemap outline. */\n accent: string;\n /** Opaque tint behind selected rows and chips. */\n accentTint: string;\n /** Text and icons placed on `accent`. */\n accentContrast: string;\n /** Dividers inside lists and between grouped controls. Decorative. */\n hairline: string;\n /** The edge of an input, switch track or slider track, where the edge identifies the control. */\n controlBoundary: string;\n /** Border for floating chrome. Transparent by default so forced colours can paint it. */\n chromeBorder: string;\n /** Error text and icons. */\n danger: string;\n /** Opaque tint behind an error message. */\n dangerTint: string;\n /** Veil behind a modal sheet. */\n scrim: string;\n /** Outer tone of the two-tone focus ring. */\n focusRing: string;\n /** Inner tone of the focus ring, in the surface colour. */\n focusRingInner: string;\n /**\n * Full pages that are not the map (privacy, errors, the style guide) and\n * the document behind everything. Follows the theme.\n */\n pageBackground: string;\n /**\n * Colour of the map region before the map draws: the default basemap's\n * land colour, the same in both themes, so the first view does not flash a\n * different colour before the basemap appears.\n */\n mapBackground: string;\n /**\n * The space around the sphere when the map is drawn as a globe, in place\n * of `mapBackground`. Darker than every pale basemap's land, so the edge\n * of the globe shows, and in the dark theme lighter and bluer than the\n * near-black Dark basemap, so its edge shows too. A flat map never uses it.\n */\n mapGlobeSpace: string;\n /** Dropped pin. */\n mapPin: string;\n /** Measurement line. */\n mapMeasureLine: string;\n /** Measured area fill. Translucent by design. */\n mapMeasureFill: string;\n /** Location accuracy circle outline. */\n mapAccuracy: string;\n /** Location accuracy circle fill. Translucent by design. */\n mapAccuracyFill: string;\n /** Outline that separates a pin or line from the map beneath. */\n mapHalo: string;\n}\n\n/** Names of the colour roles, in declaration order. */\nexport const colourRoleNames = [\n \"surface\",\n \"surfaceRaised\",\n \"text\",\n \"textMuted\",\n \"accent\",\n \"accentTint\",\n \"accentContrast\",\n \"hairline\",\n \"controlBoundary\",\n \"chromeBorder\",\n \"danger\",\n \"dangerTint\",\n \"scrim\",\n \"focusRing\",\n \"focusRingInner\",\n \"pageBackground\",\n \"mapBackground\",\n \"mapGlobeSpace\",\n \"mapPin\",\n \"mapMeasureLine\",\n \"mapMeasureFill\",\n \"mapAccuracy\",\n \"mapAccuracyFill\",\n \"mapHalo\",\n] as const satisfies readonly (keyof ColourRoles)[];\n\n/** The two themes. */\nexport type ThemeName = \"light\" | \"dark\";\n\n/** Everything that differs between light and dark. */\nexport interface ThemeValues {\n /** Default colours. Surfaces are translucent and sit behind a backdrop blur. */\n colour: ColourRoles;\n /**\n * The same roles with opaque surfaces. Used where `backdrop-filter` is not\n * supported and under `prefers-reduced-transparency`.\n */\n opaque: ColourRoles;\n /**\n * `prefers-contrast: more`: opaque surfaces, muted text and hairlines raised\n * to at least 4.5:1 and 3:1. Fully merged so tests can treat every set alike.\n */\n contrastMore: ColourRoles;\n /** The two elevation shadows. Dark values are stronger and add a faint top highlight. */\n shadow: { floating: string; sheet: string };\n}\n\nconst lightColour: ColourRoles = {\n surface: \"oklch(1 0 0 / 0.82)\",\n surfaceRaised: \"oklch(1 0 0 / 0.94)\",\n text: neutral[900],\n textMuted: neutral[700],\n accent: accent[700],\n accentTint: accent[100],\n accentContrast: \"oklch(1 0 0)\",\n hairline: \"oklch(0.22 0.01 250 / 0.12)\",\n controlBoundary: neutral[600],\n chromeBorder: \"transparent\",\n danger: red.textLight,\n dangerTint: red.tintLight,\n scrim: \"oklch(0 0 0 / 0.4)\",\n focusRing: accent[600],\n focusRingInner: \"oklch(1 0 0)\",\n pageBackground: \"oklch(0.95 0.008 85)\",\n mapBackground: representativeBackdrops.defaultBasemap,\n mapGlobeSpace: \"oklch(0.82 0.02 250)\",\n mapPin: accent[600],\n mapMeasureLine: accent[600],\n mapMeasureFill: \"oklch(0.55 0.175 255 / 0.18)\",\n mapAccuracy: accent[600],\n mapAccuracyFill: \"oklch(0.55 0.175 255 / 0.12)\",\n mapHalo: \"oklch(1 0 0)\",\n};\n\nconst darkColour: ColourRoles = {\n surface: \"oklch(0.19 0.008 250 / 0.8)\",\n surfaceRaised: \"oklch(0.25 0.009 250 / 0.88)\",\n text: neutral[50],\n textMuted: neutral[300],\n accent: accent[300],\n accentTint: \"oklch(0.3 0.06 255)\",\n accentContrast: neutral[950],\n hairline: \"oklch(1 0 0 / 0.14)\",\n controlBoundary: \"oklch(0.7 0.01 250)\",\n chromeBorder: \"transparent\",\n danger: red.textDark,\n dangerTint: red.tintDark,\n scrim: \"oklch(0 0 0 / 0.6)\",\n focusRing: accent[500],\n focusRingInner: \"oklch(0.19 0.008 250)\",\n pageBackground: \"oklch(0.24 0.008 250)\",\n mapBackground: representativeBackdrops.defaultBasemap,\n mapGlobeSpace: \"oklch(0.31 0.025 255)\",\n mapPin: accent[600],\n mapMeasureLine: accent[600],\n mapMeasureFill: \"oklch(0.55 0.175 255 / 0.28)\",\n mapAccuracy: accent[600],\n mapAccuracyFill: \"oklch(0.55 0.175 255 / 0.2)\",\n mapHalo: \"oklch(0.19 0.008 250)\",\n};\n\n/** Light and dark values for every themed token. */\nexport const themeValues: Record<ThemeName, ThemeValues> = {\n light: {\n colour: lightColour,\n opaque: {\n ...lightColour,\n surface: \"oklch(0.995 0.002 250)\",\n surfaceRaised: \"oklch(1 0 0)\",\n },\n contrastMore: {\n ...lightColour,\n surface: \"oklch(1 0 0)\",\n surfaceRaised: \"oklch(1 0 0)\",\n text: \"oklch(0.15 0.01 250)\",\n textMuted: neutral[800],\n hairline: neutral[600],\n controlBoundary: neutral[700],\n chromeBorder: neutral[700],\n },\n shadow: {\n floating:\n \"0 1px 2px oklch(0.2 0.02 250 / 0.12), 0 4px 16px oklch(0.2 0.02 250 / 0.14)\",\n sheet:\n \"0 0 2px oklch(0.2 0.02 250 / 0.1), 0 -4px 24px oklch(0.2 0.02 250 / 0.16), 0 8px 32px oklch(0.2 0.02 250 / 0.12)\",\n },\n },\n dark: {\n colour: darkColour,\n opaque: {\n ...darkColour,\n surface: \"oklch(0.2 0.008 250)\",\n surfaceRaised: \"oklch(0.26 0.009 250)\",\n },\n contrastMore: {\n ...darkColour,\n surface: \"oklch(0.17 0.008 250)\",\n surfaceRaised: \"oklch(0.17 0.008 250)\",\n text: \"oklch(1 0 0)\",\n textMuted: neutral[100],\n hairline: neutral[400],\n controlBoundary: neutral[300],\n chromeBorder: neutral[300],\n focusRingInner: \"oklch(0.17 0.008 250)\",\n },\n shadow: {\n floating:\n \"0 1px 2px oklch(0 0 0 / 0.4), 0 4px 16px oklch(0 0 0 / 0.45), inset 0 1px 0 oklch(1 0 0 / 0.07)\",\n sheet:\n \"0 0 2px oklch(0 0 0 / 0.4), 0 -4px 24px oklch(0 0 0 / 0.5), 0 8px 32px oklch(0 0 0 / 0.4), inset 0 1px 0 oklch(1 0 0 / 0.07)\",\n },\n },\n};\n\n/**\n * Colours for `forced-colors: active`, written as CSS system colours. Only the\n * chrome roles are mapped; map overlay colours stay as they are because the\n * map is drawn on a canvas that forced colours does not recolour.\n */\nexport const forcedColors: Partial<ColourRoles> = {\n surface: \"Canvas\",\n surfaceRaised: \"Canvas\",\n text: \"CanvasText\",\n textMuted: \"CanvasText\",\n accent: \"Highlight\",\n accentTint: \"Canvas\",\n accentContrast: \"HighlightText\",\n hairline: \"CanvasText\",\n controlBoundary: \"ButtonBorder\",\n chromeBorder: \"CanvasText\",\n danger: \"CanvasText\",\n dangerTint: \"Canvas\",\n focusRing: \"Highlight\",\n focusRingInner: \"Canvas\",\n pageBackground: \"Canvas\",\n mapBackground: \"Canvas\",\n mapGlobeSpace: \"Canvas\",\n};\n\n/**\n * Opaque colours for the `theme-color` meta tag: the default surface\n * flattened over each theme's page background, so the browser chrome keeps\n * the theme's own lightness above the map and on every other page.\n */\nexport const themeColor: Record<ThemeName, string> = {\n light: toHex(\n compositeOver(\n themeValues.light.colour.surface,\n themeValues.light.colour.pageBackground,\n ),\n ),\n dark: toHex(\n compositeOver(\n themeValues.dark.colour.surface,\n themeValues.dark.colour.pageBackground,\n ),\n ),\n};\n\n/** Backdrop blur applied behind translucent surfaces. */\nexport const blurValue = \"blur(20px) saturate(150%)\";\n\n/** Spacing scale in pixels, plus the screen inset. */\nexport const space = {\n xxs: \"4px\",\n xs: \"8px\",\n sm: \"12px\",\n md: \"16px\",\n lg: \"24px\",\n xl: \"32px\",\n} as const;\n\n/** Distance from the screen edge to floating chrome. */\nexport const inset = \"12px\";\n\n/** Corner radii by role. */\nexport const radius = {\n pill: \"24px\",\n sheet: \"20px\",\n control: \"14px\",\n inner: \"10px\",\n round: \"50%\",\n} as const;\n\n/**\n * Type scale. Sizes are in rem so they follow the user's font size; line\n * height is unitless and tracking is in em. Only weights 400 and 600 exist.\n */\nexport const typeScale = {\n small: { size: \"0.8125rem\", lineHeight: \"1.4\", tracking: \"0.01em\" },\n body: { size: \"0.9375rem\", lineHeight: \"1.45\", tracking: \"0em\" },\n large: { size: \"1.0625rem\", lineHeight: \"1.4\", tracking: \"-0.005em\" },\n title: { size: \"1.375rem\", lineHeight: \"1.25\", tracking: \"-0.015em\" },\n /**\n * The one display size, for the heading of a full page that is not the map\n * (the reference host's product page). The map's chrome never uses it.\n */\n display: { size: \"2.5rem\", lineHeight: \"1.1\", tracking: \"-0.025em\" },\n} as const;\n\n/**\n * Tracking and line height for text in a script that tracking or a tight line\n * breaks. Letter spacing, positive or negative, cuts the joins of Arabic\n * script and the conjuncts of the Indic scripts, and the tall marks of Indic,\n * Thai and Khmer text collide at the Latin line heights. Tracking is zero and\n * every step gets a line height of 1.5 or more. A host may set these tokens;\n * Latin text never reads them.\n */\nexport const nonLatinType = {\n tracking: \"0em\",\n lineHeight: {\n small: \"1.6\",\n body: \"1.6\",\n large: \"1.6\",\n title: \"1.5\",\n display: \"1.5\",\n },\n} as const;\n\n/**\n * The language subtags that take {@link nonLatinType}, matched with `:lang()`\n * so a region or script subtag (`zh-Hans`) matches too. The list is not\n * exhaustive; a host adds rules for others. Custom properties inherit, so a\n * Latin span inside a listed language keeps these values.\n */\nexport const nonLatinLanguages = [\n \"ar\",\n \"fa\",\n \"ur\",\n \"ps\",\n \"sd\",\n \"ug\",\n \"ckb\",\n \"ku\",\n \"yi\",\n \"ji\",\n \"dv\",\n \"syr\",\n \"he\",\n \"iw\",\n \"hi\",\n \"mr\",\n \"ne\",\n \"bn\",\n \"as\",\n \"sa\",\n \"gu\",\n \"pa\",\n \"or\",\n \"ta\",\n \"te\",\n \"kn\",\n \"ml\",\n \"si\",\n \"th\",\n \"lo\",\n \"km\",\n \"my\",\n \"am\",\n \"ti\",\n \"bo\",\n \"dz\",\n \"mn\",\n \"jv\",\n \"ks\",\n \"ka\",\n \"hy\",\n \"ja\",\n \"ko\",\n \"zh\",\n \"yue\",\n \"cmn\",\n] as const;\n\n/** Font weights. Nothing else is declared in `@font-face`. */\nexport const fontWeight = { regular: \"400\", semibold: \"600\" } as const;\n\n/**\n * The font stack: the self-hosted variable face, its metric-matched fallback\n * (declared in `packages/web/src/fonts/fonts.css`) and then system fonts that\n * also cover non-Latin place names.\n */\nexport const fontFamily =\n '\"IBM Plex Sans Variable\", \"IBM Plex Sans Fallback\", system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif';\n\n/**\n * The stack for code samples only: the system's own monospaced faces, so no\n * second web font is downloaded. Interface text never uses it.\n */\nexport const fontFamilyMono =\n 'ui-monospace, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace';\n\n/** Interactive sizes and the icon system. */\nexport const size = {\n control: \"3rem\",\n minTarget: \"2.75rem\",\n gapBetweenTargets: \"0.5rem\",\n icon: \"24px\",\n iconStroke: \"1.75\",\n} as const;\n\n/** Focus ring widths. `prefers-contrast: more` raises both. */\nexport const focusWidth = { inner: \"2px\", outer: \"2px\" } as const;\n\n/** Focus ring widths under `prefers-contrast: more`. */\nexport const focusWidthContrastMore = { inner: \"3px\", outer: \"3px\" } as const;\n\n/**\n * A critically damped-ish spring (damping ratio 0.72) sampled to `linear()`,\n * peaking about 3.5% over. Used for the sheet only.\n */\nexport const spring =\n \"linear(0, 0.229, 0.593, 0.858, 0.992, 1.035, 1.035, 1.021, 1.009, 1.002, 0.999, 0.999, 0.999, 0.999, 1, 1, 1, 1, 1)\";\n\n/** Motion tokens. Only transform and opacity animate. */\nexport const motion = {\n duration: { fast: \"120ms\", base: \"200ms\", slow: \"320ms\" },\n /** Durations when `prefers-reduced-motion: reduce` is set. */\n durationReduced: \"0.01ms\",\n easing: \"cubic-bezier(0.2, 0, 0, 1)\",\n spring,\n} as const;\n\n/** Name of a z layer. */\nexport type ZLayerName =\n | \"map\"\n | \"mapOverlay\"\n | \"chrome\"\n | \"chromeRaised\"\n | \"sheet\"\n | \"toolbar\"\n | \"popover\"\n | \"toast\";\n\n/** Z layers from bottom to top, with room between for local adjustments. */\nexport const zIndex = {\n map: \"0\",\n mapOverlay: \"10\",\n chrome: \"20\",\n chromeRaised: \"30\",\n sheet: \"40\",\n toolbar: \"50\",\n popover: \"60\",\n toast: \"70\",\n} as const satisfies Record<ZLayerName, string>;\n\n/** Z layer names in stacking order, bottom to top. */\nexport const zLayerOrder = [\n \"map\",\n \"mapOverlay\",\n \"chrome\",\n \"chromeRaised\",\n \"sheet\",\n \"toolbar\",\n \"popover\",\n \"toast\",\n] as const satisfies readonly ZLayerName[];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA,IAAa,UAAU;CACrB,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;AACP;;;;;;;AAQA,IAAa,SAAS;CACpB,IAAI;CACJ,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;AACP;;AAGA,IAAM,MAAM;CACV,WAAW;CACX,WAAW;CACX,UAAU;CACV,UAAU;AACZ;;;;;;;;;;;AAYA,IAAa,cAAc;CACzB,QAAQ;CACR,YAAY;CACZ,gBAAgB;CAChB,QAAQ;CACR,MAAM;CACN,YAAY;CACZ,kBAAkB;CAClB,aAAa;CACb,aAAa;CACb,aAAa;CACb,aAAa;CACb,aAAa;AACf;;;;;;;;;AAUA,IAAa,aAAa;CACxB,MAAM;CACN,MAAM;;CAEN,WAAW;;CAEX,WAAW;AACb;;;;;;;AAQA,IAAa,0BAA0B;CACrC,OAAO;CACP,OAAO;;CAEP,UAAU;;;;;;;CAOV,gBAAgB;AAClB;;AAmEA,IAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAuBA,IAAM,cAA2B;CAC/B,SAAS;CACT,eAAe;CACf,MAAM,QAAQ;CACd,WAAW,QAAQ;CACnB,QAAQ,OAAO;CACf,YAAY,OAAO;CACnB,gBAAgB;CAChB,UAAU;CACV,iBAAiB,QAAQ;C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