@lightsparkdev/ui 0.0.11 → 0.0.12

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.
@@ -0,0 +1,1871 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __export = (target, all) => {
26
+ for (var name in all)
27
+ __defProp(target, name, { get: all[name], enumerable: true });
28
+ };
29
+ var __copyProps = (to, from, except, desc) => {
30
+ if (from && typeof from === "object" || typeof from === "function") {
31
+ for (let key of __getOwnPropNames(from))
32
+ if (!__hasOwnProp.call(to, key) && key !== except)
33
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
34
+ }
35
+ return to;
36
+ };
37
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
38
+ // If the importer is in node compatibility mode or this is not an ESM
39
+ // file that has been converted to a CommonJS file using a Babel-
40
+ // compatible transform (i.e. "__esModule" has not been set), then set
41
+ // "default" to the CommonJS "module.exports" for node compatibility.
42
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
43
+ mod
44
+ ));
45
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
+ var __async = (__this, __arguments, generator) => {
47
+ return new Promise((resolve, reject) => {
48
+ var fulfilled = (value) => {
49
+ try {
50
+ step(generator.next(value));
51
+ } catch (e) {
52
+ reject(e);
53
+ }
54
+ };
55
+ var rejected = (value) => {
56
+ try {
57
+ step(generator.throw(value));
58
+ } catch (e) {
59
+ reject(e);
60
+ }
61
+ };
62
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
63
+ step((generator = generator.apply(__this, __arguments)).next());
64
+ });
65
+ };
66
+
67
+ // src/components/CodeBlock.tsx
68
+ var CodeBlock_exports = {};
69
+ __export(CodeBlock_exports, {
70
+ CodeBlock: () => CodeBlock,
71
+ InlineCode: () => InlineCode,
72
+ ProgrammingLanguageOptions: () => ProgrammingLanguageOptions,
73
+ StyledCodeBlock: () => StyledCodeBlock
74
+ });
75
+ module.exports = __toCommonJS(CodeBlock_exports);
76
+ var import_styled5 = __toESM(require("@emotion/styled"), 1);
77
+ var import_prismjs = __toESM(require("prismjs"), 1);
78
+ var import_prism_dart_min = require("prismjs/components/prism-dart.min.js");
79
+ var import_prism_go_min = require("prismjs/components/prism-go.min.js");
80
+ var import_prism_graphql_min = require("prismjs/components/prism-graphql.min.js");
81
+ var import_prism_java_min = require("prismjs/components/prism-java.min.js");
82
+ var import_prism_json_min = require("prismjs/components/prism-json.min.js");
83
+ var import_prism_jsx_min = require("prismjs/components/prism-jsx.min.js");
84
+ var import_prism_kotlin_min = require("prismjs/components/prism-kotlin.min.js");
85
+ var import_prism_python_min = require("prismjs/components/prism-python.min.js");
86
+ var import_prism_rust_min = require("prismjs/components/prism-rust.min.js");
87
+ var import_prism_swift_min = require("prismjs/components/prism-swift.min.js");
88
+ var import_prism_tomorrow = require("prismjs/themes/prism-tomorrow.css");
89
+ var import_react10 = require("react");
90
+ var import_react_select = __toESM(require("react-select"), 1);
91
+
92
+ // src/styles/colors.tsx
93
+ var import_react3 = require("@emotion/react");
94
+
95
+ // src/styles/breakpoints.tsx
96
+ var import_react = require("@emotion/react");
97
+ var import_lodash_es = require("lodash-es");
98
+ var import_react2 = require("react");
99
+ var import_jsx_runtime = require("@emotion/react/jsx-runtime");
100
+ var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
101
+ Breakpoints2["sm"] = "sm";
102
+ Breakpoints2["md"] = "md";
103
+ Breakpoints2["lg"] = "lg";
104
+ return Breakpoints2;
105
+ })(Breakpoints || {});
106
+ var breakpoints = {
107
+ ["sm" /* sm */]: 640,
108
+ ["md" /* md */]: 834,
109
+ ["lg" /* lg */]: 1200
110
+ };
111
+ var breakpointFn = (mq) => (style) => `@media ${mq} { ${style} }`;
112
+ var bp = {
113
+ key: Breakpoints,
114
+ ["sm" /* sm */]: breakpointFn(`(max-width:${breakpoints.sm}px)`),
115
+ ["lg" /* lg */]: breakpointFn(`(min-width:${breakpoints.lg}px)`),
116
+ ["minSmMaxLg" /* minSmMaxLg */]: breakpointFn(
117
+ `(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.lg - 1}px)`
118
+ ),
119
+ ["minSmMaxMd" /* minSmMaxMd */]: breakpointFn(
120
+ `(min-width:${breakpoints.sm + 1}px) and (max-width:${breakpoints.md - 1}px)`
121
+ ),
122
+ ["minMdMaxLg" /* minMdMaxLg */]: breakpointFn(
123
+ `(min-width:${breakpoints.md}px) and (max-width:${breakpoints.lg - 1}px)`
124
+ ),
125
+ ["maxLg" /* maxLg */]: breakpointFn(`(max-width:${breakpoints.lg - 1}px)`),
126
+ ["maxMd" /* maxMd */]: breakpointFn(`(max-width:${breakpoints.md - 1}px)`),
127
+ ["minSm" /* minSm */]: breakpointFn(`(min-width:${breakpoints.sm + 1}px)`),
128
+ ["minMd" /* minMd */]: breakpointFn(`(min-width:${breakpoints.md + 1}px)`),
129
+ current: function(assertBp) {
130
+ const currentBp = (
131
+ /* window is undefined in first server side render for Next apps: */
132
+ typeof window === "undefined" ? "sm" /* sm */ : window.getComputedStyle(document.body, ":before").content.replace(/"/g, "")
133
+ );
134
+ if (assertBp) {
135
+ return inRange(
136
+ currentBp,
137
+ assertBp
138
+ );
139
+ }
140
+ return currentBp;
141
+ },
142
+ switch: (smVal, minSmMaxMdVal, minMdMaxLgVal, lgVal) => {
143
+ const currentBp = bp.current();
144
+ if (currentBp === "sm" /* sm */) {
145
+ return smVal;
146
+ } else if (currentBp === "minSmMaxMd" /* minSmMaxMd */) {
147
+ return minSmMaxMdVal;
148
+ } else if (currentBp === "minMdMaxLg" /* minMdMaxLg */) {
149
+ return minMdMaxLgVal;
150
+ }
151
+ return lgVal;
152
+ },
153
+ isSm: () => bp.current("sm" /* sm */),
154
+ isMinSm: () => bp.current("minSm" /* minSm */),
155
+ isMinSmMaxMd: () => bp.current("minSmMaxMd" /* minSmMaxMd */),
156
+ isMinMdMaxLg: () => bp.current("minMdMaxLg" /* minMdMaxLg */),
157
+ isLg: () => bp.current("lg" /* lg */)
158
+ };
159
+ function inRange(currentBp, assertBp) {
160
+ const isSm = currentBp === "sm" /* sm */;
161
+ const isMinSmMaxMd = currentBp === "minSmMaxMd" /* minSmMaxMd */;
162
+ const isMinMdMaxLg = currentBp === "minMdMaxLg" /* minMdMaxLg */;
163
+ const isLg = currentBp === "lg" /* lg */;
164
+ if (assertBp) {
165
+ switch (assertBp) {
166
+ case "sm" /* sm */:
167
+ return isSm;
168
+ case "minSmMaxMd" /* minSmMaxMd */:
169
+ return isMinSmMaxMd;
170
+ case "minMdMaxLg" /* minMdMaxLg */:
171
+ return isMinMdMaxLg;
172
+ case "lg" /* lg */:
173
+ return isLg;
174
+ case "minSmMaxLg" /* minSmMaxLg */:
175
+ return isMinSmMaxMd || isMinMdMaxLg;
176
+ case "maxLg" /* maxLg */:
177
+ return isSm || isMinSmMaxMd || isMinMdMaxLg;
178
+ case "maxMd" /* maxMd */:
179
+ return isSm || isMinSmMaxMd;
180
+ case "minSm" /* minSm */:
181
+ return isMinSmMaxMd || isMinMdMaxLg || isLg;
182
+ case "minMd" /* minMd */:
183
+ return isMinMdMaxLg || isLg;
184
+ default:
185
+ return false;
186
+ }
187
+ }
188
+ return false;
189
+ }
190
+
191
+ // src/styles/fonts/typographyTokens.ts
192
+ var FONT_FAMILIES = {
193
+ main: "Montserrat",
194
+ code: "Monaco"
195
+ };
196
+ var LINE_HEIGHTS = {
197
+ ["UmaDocs" /* UmaDocs */]: {
198
+ "5xl": "72px",
199
+ "4xl": "60px",
200
+ "3xl": "44px",
201
+ "2xl": "40px",
202
+ xl: "36px",
203
+ lg: "32px",
204
+ md: "28px",
205
+ sm: "24px",
206
+ xs: "20px",
207
+ "2xs": "16px"
208
+ },
209
+ ["Lightspark" /* Lightspark */]: {
210
+ "7xl": "72px",
211
+ "6xl": "60px",
212
+ "5xl": "44px",
213
+ "4xl": "40px",
214
+ "3xl": "36px",
215
+ "2xl": "32px",
216
+ xl: "28px",
217
+ lg: "24px",
218
+ md: "20px",
219
+ sm: "18px",
220
+ xs: "16px",
221
+ "2xs": "14px"
222
+ }
223
+ };
224
+ var FONT_WEIGHTS = {
225
+ main: {
226
+ Bold: 700,
227
+ SemiBold: 600,
228
+ Medium: 500
229
+ },
230
+ code: {
231
+ Bold: 700,
232
+ Regular: 400
233
+ }
234
+ };
235
+ var FONT_SIZE = {
236
+ ["UmaDocs" /* UmaDocs */]: {
237
+ "2xs": "11px",
238
+ xs: "12px",
239
+ sm: "14px",
240
+ md: "16px",
241
+ lg: "20px",
242
+ xl: "24px",
243
+ "2xl": "28px",
244
+ "3xl": "32px",
245
+ "4xl": "36px",
246
+ "5xl": "48px",
247
+ "6xl": "64px"
248
+ },
249
+ ["Lightspark" /* Lightspark */]: {
250
+ "2xs": "10px",
251
+ xs: "12px",
252
+ sm: "14px",
253
+ md: "16px",
254
+ lg: "20px",
255
+ xl: "24px",
256
+ "2xl": "28px",
257
+ "3xl": "32px",
258
+ "4xl": "36px",
259
+ "5xl": "48px",
260
+ "6xl": "64px"
261
+ }
262
+ };
263
+ var LETTER_SPACING = {
264
+ ["UmaDocs" /* UmaDocs */]: {
265
+ tight: "-.02em",
266
+ normal: "0",
267
+ loose: ".1em"
268
+ },
269
+ ["Lightspark" /* Lightspark */]: {
270
+ "tight-max": "-4%",
271
+ "tight-high": "-3%",
272
+ "tight-medium": "-2%",
273
+ "tight-low": "-0.5%",
274
+ normal: "0",
275
+ "loose-max": "1.44px"
276
+ }
277
+ };
278
+ var TEXT_CASE = {
279
+ none: "none",
280
+ uppercase: "uppercase"
281
+ };
282
+ var TEXT_DECORATION = {
283
+ none: "none"
284
+ };
285
+ var PARAGRAPH_INDENT = {
286
+ 0: "0px"
287
+ };
288
+ var PARAGRAPH_SPACING = {
289
+ default: "default",
290
+ 0: "0",
291
+ 16: "16px",
292
+ 40: "40px"
293
+ };
294
+ var getTypography = (customFontFamilies) => {
295
+ const fontFamilies = customFontFamilies != null ? customFontFamilies : FONT_FAMILIES;
296
+ return {
297
+ fontFamilies,
298
+ lineHeights: LINE_HEIGHTS,
299
+ fontWeights: FONT_WEIGHTS,
300
+ fontSize: FONT_SIZE,
301
+ letterSpacing: LETTER_SPACING,
302
+ textCase: TEXT_CASE,
303
+ textDecoration: TEXT_DECORATION,
304
+ paragraphIndent: PARAGRAPH_INDENT,
305
+ paragraphSpacing: PARAGRAPH_SPACING,
306
+ ["Lightspark" /* Lightspark */]: {
307
+ Display: {
308
+ ["Large" /* Large */]: {
309
+ "font-family": `${fontFamilies.main}`,
310
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
311
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */]["7xl"]}`,
312
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */]["6xl"]}`,
313
+ "letter-spacing": "-2.56px",
314
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
315
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
316
+ "text-case": `${TEXT_CASE.none}`,
317
+ "text-decoration": `${TEXT_DECORATION.none}`
318
+ },
319
+ ["Medium" /* Medium */]: {
320
+ "font-family": `${fontFamilies.main}`,
321
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
322
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */]["6xl"]}`,
323
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */]["5xl"]}`,
324
+ "letter-spacing": "-1.92px",
325
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
326
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
327
+ "text-case": `${TEXT_CASE.none}`,
328
+ "text-decoration": `${TEXT_DECORATION.none}`
329
+ },
330
+ ["Small" /* Small */]: {
331
+ "font-family": `${fontFamilies.main}`,
332
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
333
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */]["5xl"]}`,
334
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */]["4xl"]}`,
335
+ "letter-spacing": "-1.44px",
336
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
337
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
338
+ "text-case": `${TEXT_CASE.none}`,
339
+ "text-decoration": `${TEXT_DECORATION.none}`
340
+ }
341
+ },
342
+ Headline: {
343
+ ["Large" /* Large */]: {
344
+ "font-family": `${fontFamilies.main}`,
345
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
346
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */]["4xl"]}`,
347
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */]["3xl"]}`,
348
+ "letter-spacing": "-.96px",
349
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
350
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
351
+ "text-case": `${TEXT_CASE.none}`,
352
+ "text-decoration": `${TEXT_DECORATION.none}`
353
+ },
354
+ ["Medium" /* Medium */]: {
355
+ "font-family": `${fontFamilies.main}`,
356
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
357
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */]["3xl"]}`,
358
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */]["2xl"]}`,
359
+ "letter-spacing": "-.84px",
360
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
361
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
362
+ "text-case": `${TEXT_CASE.none}`,
363
+ "text-decoration": `${TEXT_DECORATION.none}`
364
+ },
365
+ ["Small" /* Small */]: {
366
+ "font-family": `${fontFamilies.main}`,
367
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
368
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */]["2xl"]}`,
369
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].xl}`,
370
+ "letter-spacing": "-.72px",
371
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
372
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
373
+ "text-case": `${TEXT_CASE.none}`,
374
+ "text-decoration": `${TEXT_DECORATION.none}`
375
+ }
376
+ },
377
+ Title: {
378
+ ["Large" /* Large */]: {
379
+ "font-family": `${fontFamilies.main}`,
380
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
381
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].xl}`,
382
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].lg}`,
383
+ "letter-spacing": "-.4px",
384
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
385
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
386
+ "text-case": `${TEXT_CASE.none}`,
387
+ "text-decoration": `${TEXT_DECORATION.none}`
388
+ },
389
+ ["Medium" /* Medium */]: {
390
+ "font-family": `${fontFamilies.main}`,
391
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
392
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].lg}`,
393
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].md}`,
394
+ "letter-spacing": "-.32x",
395
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
396
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
397
+ "text-case": `${TEXT_CASE.none}`,
398
+ "text-decoration": `${TEXT_DECORATION.none}`
399
+ },
400
+ ["Small" /* Small */]: {
401
+ "font-family": `${fontFamilies.main}`,
402
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
403
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].md}`,
404
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].sm}`,
405
+ "letter-spacing": "-.28px",
406
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
407
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
408
+ "text-case": `${TEXT_CASE.none}`,
409
+ "text-decoration": `${TEXT_DECORATION.none}`
410
+ }
411
+ },
412
+ Body: {
413
+ ["Large" /* Large */]: {
414
+ "font-family": `${fontFamilies.main}`,
415
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
416
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].xl}`,
417
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].lg}`,
418
+ "letter-spacing": "-.08px",
419
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
420
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
421
+ "text-case": `${TEXT_CASE.none}`,
422
+ "text-decoration": `${TEXT_DECORATION.none}`
423
+ },
424
+ ["Medium" /* Medium */]: {
425
+ "font-family": `${fontFamilies.main}`,
426
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
427
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].lg}`,
428
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].md}`,
429
+ "letter-spacing": "-.07px",
430
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
431
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
432
+ "text-case": `${TEXT_CASE.none}`,
433
+ "text-decoration": `${TEXT_DECORATION.none}`
434
+ },
435
+ ["Small" /* Small */]: {
436
+ "font-family": `${fontFamilies.main}`,
437
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
438
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].md}`,
439
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].sm}`,
440
+ "letter-spacing": "-.06px",
441
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
442
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
443
+ "text-case": `${TEXT_CASE.none}`,
444
+ "text-decoration": `${TEXT_DECORATION.none}`
445
+ }
446
+ },
447
+ "Body Strong": {
448
+ ["Large" /* Large */]: {
449
+ "font-family": `${fontFamilies.main}`,
450
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
451
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].xl}`,
452
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].lg}`,
453
+ "letter-spacing": "-.08px",
454
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
455
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
456
+ "text-case": `${TEXT_CASE.none}`,
457
+ "text-decoration": `${TEXT_DECORATION.none}`
458
+ },
459
+ ["Medium" /* Medium */]: {
460
+ "font-family": `${fontFamilies.main}`,
461
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
462
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].lg}`,
463
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].md}`,
464
+ "letter-spacing": "-.07px",
465
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
466
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
467
+ "text-case": `${TEXT_CASE.none}`,
468
+ "text-decoration": `${TEXT_DECORATION.none}`
469
+ },
470
+ ["Small" /* Small */]: {
471
+ "font-family": `${fontFamilies.main}`,
472
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
473
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].md}`,
474
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].sm}`,
475
+ "letter-spacing": "-.06px",
476
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
477
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
478
+ "text-case": `${TEXT_CASE.none}`,
479
+ "text-decoration": `${TEXT_DECORATION.none}`
480
+ }
481
+ },
482
+ Label: {
483
+ ["Large" /* Large */]: {
484
+ "font-family": `${fontFamilies.main}`,
485
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
486
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].md}`,
487
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].sm}`,
488
+ "letter-spacing": "-.07px",
489
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
490
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
491
+ "text-case": `${TEXT_CASE.none}`,
492
+ "text-decoration": `${TEXT_DECORATION.none}`
493
+ },
494
+ ["Medium" /* Medium */]: {
495
+ "font-family": `${fontFamilies.main}`,
496
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
497
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].xs}`,
498
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].xs}`,
499
+ "letter-spacing": "-.06px",
500
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
501
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
502
+ "text-case": `${TEXT_CASE.none}`,
503
+ "text-decoration": `${TEXT_DECORATION.none}`
504
+ },
505
+ ["Small" /* Small */]: {
506
+ "font-family": `${fontFamilies.main}`,
507
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
508
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */]["2xs"]}`,
509
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */]["2xs"]}`,
510
+ "letter-spacing": "-.05px",
511
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
512
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
513
+ "text-case": `${TEXT_CASE.none}`,
514
+ "text-decoration": `${TEXT_DECORATION.none}`
515
+ }
516
+ },
517
+ "Label Moderate": {
518
+ ["Large" /* Large */]: {
519
+ "font-family": `${fontFamilies.main}`,
520
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
521
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].md}`,
522
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].sm}`,
523
+ "letter-spacing": "-.07px",
524
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
525
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
526
+ "text-case": `${TEXT_CASE.none}`,
527
+ "text-decoration": `${TEXT_DECORATION.none}`
528
+ },
529
+ ["Medium" /* Medium */]: {
530
+ "font-family": `${fontFamilies.main}`,
531
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
532
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].xs}`,
533
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].xs}`,
534
+ "letter-spacing": "-.06px",
535
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
536
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
537
+ "text-case": `${TEXT_CASE.none}`,
538
+ "text-decoration": `${TEXT_DECORATION.none}`
539
+ },
540
+ ["Small" /* Small */]: {
541
+ "font-family": `${fontFamilies.main}`,
542
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
543
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */]["2xs"]}`,
544
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */]["2xs"]}`,
545
+ "letter-spacing": "-.05px",
546
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
547
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
548
+ "text-case": `${TEXT_CASE.none}`,
549
+ "text-decoration": `${TEXT_DECORATION.none}`
550
+ }
551
+ },
552
+ "Label Strong": {
553
+ ["Large" /* Large */]: {
554
+ "font-family": `${fontFamilies.main}`,
555
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
556
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].md}`,
557
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].sm}`,
558
+ "letter-spacing": "-.07px",
559
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
560
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
561
+ "text-case": `${TEXT_CASE.none}`,
562
+ "text-decoration": `${TEXT_DECORATION.none}`
563
+ },
564
+ ["Medium" /* Medium */]: {
565
+ "font-family": `${fontFamilies.main}`,
566
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
567
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].xs}`,
568
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].xs}`,
569
+ "letter-spacing": "-.06px",
570
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
571
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
572
+ "text-case": `${TEXT_CASE.none}`,
573
+ "text-decoration": `${TEXT_DECORATION.none}`
574
+ },
575
+ ["Small" /* Small */]: {
576
+ "font-family": `${fontFamilies.main}`,
577
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
578
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */]["2xs"]}`,
579
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */]["2xs"]}`,
580
+ "letter-spacing": "-.05px",
581
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
582
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
583
+ "text-case": `${TEXT_CASE.none}`,
584
+ "text-decoration": `${TEXT_DECORATION.none}`
585
+ }
586
+ },
587
+ Overline: {
588
+ ["Large" /* Large */]: {
589
+ "font-family": `${fontFamilies.main}`,
590
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
591
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].lg}`,
592
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].md}`,
593
+ "letter-spacing": "1.92px",
594
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
595
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
596
+ "text-case": `${TEXT_CASE.uppercase}`,
597
+ "text-decoration": `${TEXT_DECORATION.none}`
598
+ },
599
+ ["Medium" /* Medium */]: {
600
+ "font-family": `${fontFamilies.main}`,
601
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
602
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].md}`,
603
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].sm}`,
604
+ "letter-spacing": "1.68px",
605
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
606
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
607
+ "text-case": `${TEXT_CASE.uppercase}`,
608
+ "text-decoration": `${TEXT_DECORATION.none}`
609
+ },
610
+ ["Small" /* Small */]: {
611
+ "font-family": `${fontFamilies.main}`,
612
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
613
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].xs}`,
614
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].xs}`,
615
+ "letter-spacing": "1.44px",
616
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
617
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
618
+ "text-case": `${TEXT_CASE.uppercase}`,
619
+ "text-decoration": `${TEXT_DECORATION.none}`
620
+ }
621
+ },
622
+ Code: {
623
+ ["Large" /* Large */]: {
624
+ "font-family": `${fontFamilies.code}`,
625
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
626
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].xl}`,
627
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].lg}`,
628
+ "letter-spacing": `${LETTER_SPACING["Lightspark" /* Lightspark */].normal}`,
629
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
630
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
631
+ "text-case": `${TEXT_CASE.none}`,
632
+ "text-decoration": `${TEXT_DECORATION.none}`
633
+ },
634
+ ["Medium" /* Medium */]: {
635
+ "font-family": `${fontFamilies.code}`,
636
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
637
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].lg}`,
638
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].md}`,
639
+ "letter-spacing": `${LETTER_SPACING["Lightspark" /* Lightspark */].normal}`,
640
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
641
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
642
+ "text-case": `${TEXT_CASE.none}`,
643
+ "text-decoration": `${TEXT_DECORATION.none}`
644
+ },
645
+ ["Small" /* Small */]: {
646
+ "font-family": `${fontFamilies.code}`,
647
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
648
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].md}`,
649
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].sm}`,
650
+ "letter-spacing": `${LETTER_SPACING["Lightspark" /* Lightspark */].normal}`,
651
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
652
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
653
+ "text-case": `${TEXT_CASE.none}`,
654
+ "text-decoration": `${TEXT_DECORATION.none}`
655
+ }
656
+ },
657
+ "Code Strong": {
658
+ ["Large" /* Large */]: {
659
+ "font-family": `${fontFamilies.code}`,
660
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
661
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].lg}`,
662
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].md}`,
663
+ "letter-spacing": `${LETTER_SPACING["Lightspark" /* Lightspark */].normal}`,
664
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
665
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
666
+ "text-case": `${TEXT_CASE.none}`,
667
+ "text-decoration": `${TEXT_DECORATION.none}`
668
+ },
669
+ ["Medium" /* Medium */]: {
670
+ "font-family": `${fontFamilies.code}`,
671
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
672
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].md}`,
673
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].sm}`,
674
+ "letter-spacing": `${LETTER_SPACING["Lightspark" /* Lightspark */].normal}`,
675
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
676
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
677
+ "text-case": `${TEXT_CASE.none}`,
678
+ "text-decoration": `${TEXT_DECORATION.none}`
679
+ },
680
+ ["Small" /* Small */]: {
681
+ "font-family": `${fontFamilies.code}`,
682
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
683
+ "line-height": `${LINE_HEIGHTS["Lightspark" /* Lightspark */].xs}`,
684
+ "font-size": `${FONT_SIZE["Lightspark" /* Lightspark */].xs}`,
685
+ "letter-spacing": `${LETTER_SPACING["Lightspark" /* Lightspark */].normal}`,
686
+ "paragraph-spacing": `${PARAGRAPH_SPACING[0]}`,
687
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
688
+ "text-case": `${TEXT_CASE.none}`,
689
+ "text-decoration": `${TEXT_DECORATION.none}`
690
+ }
691
+ }
692
+ },
693
+ ["UmaDocs" /* UmaDocs */]: {
694
+ Display: {
695
+ ["Large" /* Large */]: {
696
+ "font-family": `${fontFamilies.main}`,
697
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
698
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["5xl"]}`,
699
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */]["6xl"]}`,
700
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].tight}`,
701
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
702
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
703
+ "text-case": `${TEXT_CASE.none}`,
704
+ "text-decoration": `${TEXT_DECORATION.none}`
705
+ },
706
+ ["Medium" /* Medium */]: {
707
+ "font-family": `${fontFamilies.main}`,
708
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
709
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["4xl"]}`,
710
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */]["5xl"]}`,
711
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].tight}`,
712
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
713
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
714
+ "text-case": `${TEXT_CASE.none}`,
715
+ "text-decoration": `${TEXT_DECORATION.none}`
716
+ },
717
+ ["Small" /* Small */]: {
718
+ "font-family": `${fontFamilies.main}`,
719
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
720
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["3xl"]}`,
721
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */]["4xl"]}`,
722
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].tight}`,
723
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
724
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
725
+ "text-case": `${TEXT_CASE.none}`,
726
+ "text-decoration": `${TEXT_DECORATION.none}`
727
+ }
728
+ },
729
+ Headline: {
730
+ ["Large" /* Large */]: {
731
+ "font-family": `${fontFamilies.main}`,
732
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
733
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["2xl"]}`,
734
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */]["3xl"]}`,
735
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].tight}`,
736
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
737
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
738
+ "text-case": `${TEXT_CASE.none}`,
739
+ "text-decoration": `${TEXT_DECORATION.none}`
740
+ },
741
+ ["Medium" /* Medium */]: {
742
+ "font-family": `${fontFamilies.main}`,
743
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
744
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].xl}`,
745
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */]["2xl"]}`,
746
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].tight}`,
747
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
748
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
749
+ "text-case": `${TEXT_CASE.none}`,
750
+ "text-decoration": `${TEXT_DECORATION.none}`
751
+ },
752
+ ["Small" /* Small */]: {
753
+ "font-family": `${fontFamilies.main}`,
754
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
755
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].lg}`,
756
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].xl}`,
757
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].tight}`,
758
+ "paragraph-spacing": `${PARAGRAPH_SPACING[16]}`,
759
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
760
+ "text-case": `${TEXT_CASE.none}`,
761
+ "text-decoration": `${TEXT_DECORATION.none}`
762
+ }
763
+ },
764
+ Title: {
765
+ ["Large" /* Large */]: {
766
+ "font-family": `${fontFamilies.main}`,
767
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
768
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].md}`,
769
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].lg}`,
770
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
771
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
772
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
773
+ "text-case": `${TEXT_CASE.none}`,
774
+ "text-decoration": `${TEXT_DECORATION.none}`
775
+ },
776
+ ["Medium" /* Medium */]: {
777
+ "font-family": `${fontFamilies.main}`,
778
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
779
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
780
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].md}`,
781
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
782
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
783
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
784
+ "text-case": `${TEXT_CASE.none}`,
785
+ "text-decoration": `${TEXT_DECORATION.none}`
786
+ },
787
+ ["Small" /* Small */]: {
788
+ "font-family": `${fontFamilies.main}`,
789
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
790
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].xs}`,
791
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].sm}`,
792
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
793
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
794
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
795
+ "text-case": `${TEXT_CASE.none}`,
796
+ "text-decoration": `${TEXT_DECORATION.none}`
797
+ }
798
+ },
799
+ Body: {
800
+ ["Large" /* Large */]: {
801
+ "font-family": `${fontFamilies.main}`,
802
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
803
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
804
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].md}`,
805
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
806
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
807
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
808
+ "text-case": `${TEXT_CASE.none}`,
809
+ "text-decoration": `${TEXT_DECORATION.none}`
810
+ },
811
+ ["Medium" /* Medium */]: {
812
+ "font-family": `${fontFamilies.main}`,
813
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
814
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
815
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].sm}`,
816
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
817
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
818
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
819
+ "text-case": `${TEXT_CASE.none}`,
820
+ "text-decoration": `${TEXT_DECORATION.none}`
821
+ },
822
+ ["Small" /* Small */]: {
823
+ "font-family": `${fontFamilies.main}`,
824
+ "font-weight": `${FONT_WEIGHTS.main.Medium}`,
825
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
826
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].xs}`,
827
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
828
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
829
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
830
+ "text-case": `${TEXT_CASE.none}`,
831
+ "text-decoration": `${TEXT_DECORATION.none}`
832
+ }
833
+ },
834
+ "Body Strong": {
835
+ ["Large" /* Large */]: {
836
+ "font-family": `${fontFamilies.main}`,
837
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
838
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
839
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].md}`,
840
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
841
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
842
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
843
+ "text-case": `${TEXT_CASE.none}`,
844
+ "text-decoration": `${TEXT_DECORATION.none}`
845
+ },
846
+ ["Medium" /* Medium */]: {
847
+ "font-family": `${fontFamilies.main}`,
848
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
849
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
850
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].sm}`,
851
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
852
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
853
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
854
+ "text-case": `${TEXT_CASE.none}`,
855
+ "text-decoration": `${TEXT_DECORATION.none}`
856
+ },
857
+ ["Small" /* Small */]: {
858
+ "font-family": `${fontFamilies.main}`,
859
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
860
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
861
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].xs}`,
862
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
863
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
864
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
865
+ "text-case": `${TEXT_CASE.none}`,
866
+ "text-decoration": `${TEXT_DECORATION.none}`
867
+ }
868
+ },
869
+ Label: {
870
+ ["Large" /* Large */]: {
871
+ "font-family": `${fontFamilies.main}`,
872
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
873
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].xs}`,
874
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].sm}`,
875
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
876
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
877
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
878
+ "text-case": `${TEXT_CASE.none}`,
879
+ "text-decoration": `${TEXT_DECORATION.none}`
880
+ },
881
+ ["Medium" /* Medium */]: {
882
+ "font-family": `${fontFamilies.main}`,
883
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
884
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["2xs"]}`,
885
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].xs}`,
886
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
887
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
888
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
889
+ "text-case": `${TEXT_CASE.none}`,
890
+ "text-decoration": `${TEXT_DECORATION.none}`
891
+ },
892
+ ["Small" /* Small */]: {
893
+ "font-family": `${fontFamilies.main}`,
894
+ "font-weight": `${FONT_WEIGHTS.main.SemiBold}`,
895
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["2xs"]}`,
896
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */]["2xs"]}`,
897
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
898
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
899
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
900
+ "text-case": `${TEXT_CASE.none}`,
901
+ "text-decoration": `${TEXT_DECORATION.none}`
902
+ }
903
+ },
904
+ "Label Moderate": {
905
+ ["Large" /* Large */]: {
906
+ "font-family": `${fontFamilies.main}`,
907
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
908
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].xs}`,
909
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].sm}`,
910
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
911
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
912
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
913
+ "text-case": `${TEXT_CASE.none}`,
914
+ "text-decoration": `${TEXT_DECORATION.none}`
915
+ },
916
+ ["Medium" /* Medium */]: {
917
+ "font-family": `${fontFamilies.main}`,
918
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
919
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["2xs"]}`,
920
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].xs}`,
921
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
922
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
923
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
924
+ "text-case": `${TEXT_CASE.none}`,
925
+ "text-decoration": `${TEXT_DECORATION.none}`
926
+ },
927
+ ["Small" /* Small */]: {
928
+ "font-family": `${fontFamilies.main}`,
929
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
930
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["2xs"]}`,
931
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */]["2xs"]}`,
932
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
933
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
934
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
935
+ "text-case": `${TEXT_CASE.none}`,
936
+ "text-decoration": `${TEXT_DECORATION.none}`
937
+ }
938
+ },
939
+ "Label Strong": {
940
+ ["Large" /* Large */]: {
941
+ "font-family": `${fontFamilies.main}`,
942
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
943
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].xs}`,
944
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].sm}`,
945
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
946
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
947
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
948
+ "text-case": `${TEXT_CASE.none}`,
949
+ "text-decoration": `${TEXT_DECORATION.none}`
950
+ },
951
+ ["Medium" /* Medium */]: {
952
+ "font-family": `${fontFamilies.main}`,
953
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
954
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["2xs"]}`,
955
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].xs}`,
956
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
957
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
958
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
959
+ "text-case": `${TEXT_CASE.none}`,
960
+ "text-decoration": `${TEXT_DECORATION.none}`
961
+ },
962
+ ["Small" /* Small */]: {
963
+ "font-family": `${fontFamilies.main}`,
964
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
965
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["2xs"]}`,
966
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */]["2xs"]}`,
967
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
968
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
969
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
970
+ "text-case": `${TEXT_CASE.none}`,
971
+ "text-decoration": `${TEXT_DECORATION.none}`
972
+ }
973
+ },
974
+ Overline: {
975
+ ["Large" /* Large */]: {
976
+ "font-family": `${fontFamilies.main}`,
977
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
978
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
979
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].md}`,
980
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].loose}`,
981
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
982
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
983
+ "text-case": `${TEXT_CASE.uppercase}`,
984
+ "text-decoration": `${TEXT_DECORATION.none}`
985
+ },
986
+ ["Medium" /* Medium */]: {
987
+ "font-family": `${fontFamilies.main}`,
988
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
989
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].xs}`,
990
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].sm}`,
991
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].loose}`,
992
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
993
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
994
+ "text-case": `${TEXT_CASE.uppercase}`,
995
+ "text-decoration": `${TEXT_DECORATION.none}`
996
+ },
997
+ ["Small" /* Small */]: {
998
+ "font-family": `${fontFamilies.main}`,
999
+ "font-weight": `${FONT_WEIGHTS.main.Bold}`,
1000
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */]["2xs"]}`,
1001
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].xs}`,
1002
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].loose}`,
1003
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
1004
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
1005
+ "text-case": `${TEXT_CASE.uppercase}`,
1006
+ "text-decoration": `${TEXT_DECORATION.none}`
1007
+ }
1008
+ },
1009
+ Code: {
1010
+ ["Large" /* Large */]: {
1011
+ "font-family": `${fontFamilies.code}`,
1012
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
1013
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
1014
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].md}`,
1015
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
1016
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
1017
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
1018
+ "text-case": `${TEXT_CASE.none}`,
1019
+ "text-decoration": `${TEXT_DECORATION.none}`
1020
+ },
1021
+ ["Medium" /* Medium */]: {
1022
+ "font-family": `${fontFamilies.code}`,
1023
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
1024
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
1025
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].sm}`,
1026
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
1027
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
1028
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
1029
+ "text-case": `${TEXT_CASE.none}`,
1030
+ "text-decoration": `${TEXT_DECORATION.none}`
1031
+ },
1032
+ ["Small" /* Small */]: {
1033
+ "font-family": `${fontFamilies.code}`,
1034
+ "font-weight": `${FONT_WEIGHTS.code.Regular}`,
1035
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].xs}`,
1036
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].xs}`,
1037
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
1038
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
1039
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
1040
+ "text-case": `${TEXT_CASE.none}`,
1041
+ "text-decoration": `${TEXT_DECORATION.none}`
1042
+ }
1043
+ },
1044
+ "Code Strong": {
1045
+ ["Large" /* Large */]: {
1046
+ "font-family": `${fontFamilies.code}`,
1047
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
1048
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
1049
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].md}`,
1050
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
1051
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
1052
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
1053
+ "text-case": `${TEXT_CASE.none}`,
1054
+ "text-decoration": `${TEXT_DECORATION.none}`
1055
+ },
1056
+ ["Medium" /* Medium */]: {
1057
+ "font-family": `${fontFamilies.code}`,
1058
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
1059
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
1060
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].sm}`,
1061
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
1062
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
1063
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
1064
+ "text-case": `${TEXT_CASE.none}`,
1065
+ "text-decoration": `${TEXT_DECORATION.none}`
1066
+ },
1067
+ ["Small" /* Small */]: {
1068
+ "font-family": `${fontFamilies.code}`,
1069
+ "font-weight": `${FONT_WEIGHTS.code.Bold}`,
1070
+ "line-height": `${LINE_HEIGHTS["UmaDocs" /* UmaDocs */].sm}`,
1071
+ "font-size": `${FONT_SIZE["UmaDocs" /* UmaDocs */].xs}`,
1072
+ "letter-spacing": `${LETTER_SPACING["UmaDocs" /* UmaDocs */].normal}`,
1073
+ "paragraph-spacing": `${PARAGRAPH_SPACING.default}`,
1074
+ "paragraph-indent": `${PARAGRAPH_INDENT[0]}`,
1075
+ "text-case": `${TEXT_CASE.none}`,
1076
+ "text-decoration": `${TEXT_DECORATION.none}`
1077
+ }
1078
+ }
1079
+ }
1080
+ };
1081
+ };
1082
+
1083
+ // src/styles/colors.tsx
1084
+ var neutral = {
1085
+ black: "#000000",
1086
+ gray5: "#0D0D0D",
1087
+ gray10: "#1A1A1A",
1088
+ gray15: "#262626",
1089
+ gray20: "#333333",
1090
+ gray25: "#404040",
1091
+ gray30: "#4D4D4D",
1092
+ gray40: "#666666",
1093
+ gray50: "#808080",
1094
+ gray60: "#999999",
1095
+ gray70: "#B3B3B3",
1096
+ gray80: "#CCCCCC",
1097
+ gray85: "#D9D9D9",
1098
+ gray90: "#E6E6E6",
1099
+ gray95: "#F2F2F2",
1100
+ white: "#FFFFFF"
1101
+ };
1102
+ var uma = {
1103
+ background: "#F9F9F9",
1104
+ black: "#16171A",
1105
+ blue: "#0068C9",
1106
+ blue50: "#C0C9D6",
1107
+ blue80: "#DCE2EA",
1108
+ blue90: "#EBEEF2",
1109
+ blue95: "#F2F5F7",
1110
+ grey300: "#DEDFE4",
1111
+ secondary: "#686A72",
1112
+ stroke: "#C0C9D6",
1113
+ strokeProminent: "#9BA7B9",
1114
+ fill: "#EBEEF2"
1115
+ };
1116
+ var darkGradient = "#1d1d1d linear-gradient(180deg, #090909 63.08%, #1d1d1d 100.52%)";
1117
+ var primary = "#FFF14E";
1118
+ var colors = __spreadProps(__spreadValues({}, neutral), {
1119
+ uma,
1120
+ // green
1121
+ success: "#17C27C",
1122
+ // blue
1123
+ blue43: "#145BC6",
1124
+ blue22: "#0E2E60",
1125
+ blue58: "#28BFFF",
1126
+ blue95: "#EBEEF2",
1127
+ // yellow
1128
+ primary,
1129
+ warning: primary,
1130
+ // orange
1131
+ danger: "#FD2C0F",
1132
+ // neutral
1133
+ secondary: neutral.black,
1134
+ // billing
1135
+ tier1: "#179257",
1136
+ tier2: "#8B38DE",
1137
+ tier3: "#0048F7"
1138
+ });
1139
+ function extend(obj, rest) {
1140
+ return __spreadValues(__spreadValues({}, obj), rest);
1141
+ }
1142
+ function extendBase(obj, rest) {
1143
+ return __spreadValues(__spreadValues({}, obj), rest);
1144
+ }
1145
+ function hcNeutralFromBg(bgHex, defaultHex, altHex) {
1146
+ const bgRGB = hexToRGB(bgHex);
1147
+ const hcRGB = hexToRGB(defaultHex);
1148
+ if (!bgRGB || !hcRGB)
1149
+ return defaultHex;
1150
+ const c = contrast(bgRGB, hcRGB);
1151
+ if (c < 4.5) {
1152
+ return altHex;
1153
+ }
1154
+ return defaultHex;
1155
+ }
1156
+ var lightBaseTheme = {
1157
+ type: "light" /* Light */,
1158
+ app: "Lightspark" /* Lightspark */,
1159
+ bg: colors.white,
1160
+ smBg: colors.white,
1161
+ c05Neutral: neutral.gray95,
1162
+ c1Neutral: neutral.gray90,
1163
+ c15Neutral: neutral.gray85,
1164
+ c2Neutral: neutral.gray80,
1165
+ c3Neutral: neutral.gray70,
1166
+ c4Neutral: neutral.gray60,
1167
+ c5Neutral: neutral.gray50,
1168
+ c6Neutral: neutral.gray40,
1169
+ c7Neutral: neutral.gray30,
1170
+ c8Neutral: neutral.gray20,
1171
+ c9Neutral: neutral.gray10,
1172
+ danger: colors.danger,
1173
+ hcNeutral: colors.black,
1174
+ hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.black, colors.white),
1175
+ info: colors.blue43,
1176
+ lcNeutral: neutral.gray80,
1177
+ link: colors.blue43,
1178
+ mcNeutral: neutral.gray40,
1179
+ onInfoText: colors.white,
1180
+ onPrimaryText: colors.black,
1181
+ onSuccessText: colors.white,
1182
+ primary: colors.primary,
1183
+ secondary: colors.secondary,
1184
+ success: colors.success,
1185
+ text: colors.black,
1186
+ typography: getTypography(),
1187
+ vlcNeutral: neutral.gray95,
1188
+ warning: colors.warning
1189
+ };
1190
+ var darkBaseTheme = {
1191
+ type: "dark" /* Dark */,
1192
+ app: "Lightspark" /* Lightspark */,
1193
+ bg: colors.black,
1194
+ smBg: colors.black,
1195
+ c05Neutral: neutral.gray5,
1196
+ c1Neutral: neutral.gray10,
1197
+ c15Neutral: neutral.gray15,
1198
+ c2Neutral: neutral.gray20,
1199
+ c3Neutral: neutral.gray30,
1200
+ c4Neutral: neutral.gray40,
1201
+ c5Neutral: neutral.gray50,
1202
+ c6Neutral: neutral.gray60,
1203
+ c7Neutral: neutral.gray70,
1204
+ c8Neutral: neutral.gray80,
1205
+ c9Neutral: neutral.gray90,
1206
+ danger: colors.danger,
1207
+ hcNeutral: colors.white,
1208
+ hcNeutralFromBg: (bgHex) => hcNeutralFromBg(bgHex, colors.white, colors.black),
1209
+ info: colors.white,
1210
+ lcNeutral: neutral.gray40,
1211
+ link: colors.blue43,
1212
+ mcNeutral: neutral.gray60,
1213
+ onInfoText: colors.white,
1214
+ onPrimaryText: colors.black,
1215
+ onSuccessText: colors.white,
1216
+ primary: colors.primary,
1217
+ secondary: colors.secondary,
1218
+ success: colors.success,
1219
+ text: colors.white,
1220
+ typography: getTypography(),
1221
+ vlcNeutral: neutral.gray20,
1222
+ warning: colors.warning
1223
+ };
1224
+ var lightTheme = extend(lightBaseTheme, {
1225
+ header: extendBase(lightBaseTheme, {
1226
+ text: colors.gray60
1227
+ }),
1228
+ nav: extendBase(lightBaseTheme, {
1229
+ text: colors.gray10,
1230
+ secondary: colors.gray40
1231
+ }),
1232
+ content: extendBase(lightBaseTheme, {
1233
+ bg: colors.white,
1234
+ smBg: colors.white
1235
+ }),
1236
+ controls: extendBase(lightBaseTheme, {
1237
+ bg: neutral.gray95,
1238
+ smBg: neutral.gray95,
1239
+ text: neutral.gray60,
1240
+ secondary: colors.secondary
1241
+ })
1242
+ });
1243
+ var darkTheme = extend(darkBaseTheme, {
1244
+ header: extendBase(darkBaseTheme, {}),
1245
+ nav: extendBase(darkBaseTheme, {}),
1246
+ content: extendBase(darkBaseTheme, {}),
1247
+ controls: extendBase(darkBaseTheme, {
1248
+ bg: neutral.gray40,
1249
+ smBg: neutral.gray40,
1250
+ text: neutral.white,
1251
+ secondary: colors.secondary
1252
+ })
1253
+ });
1254
+ var umaLightTheme = extend(lightTheme, {
1255
+ app: "UmaDocs" /* UmaDocs */,
1256
+ bg: uma.background,
1257
+ smBg: uma.background,
1258
+ secondary: uma.secondary,
1259
+ text: uma.black,
1260
+ link: uma.blue,
1261
+ content: extendBase(lightBaseTheme, {
1262
+ bg: uma.background,
1263
+ smBg: uma.background,
1264
+ text: uma.black,
1265
+ secondary: uma.secondary
1266
+ }),
1267
+ controls: extendBase(lightBaseTheme, {
1268
+ text: uma.black,
1269
+ secondary: uma.secondary,
1270
+ bg: uma.blue90
1271
+ })
1272
+ });
1273
+ var isLight = (theme) => theme.type === "light" /* Light */;
1274
+ var themeOr = (lightValue, darkValue) => ({ theme }) => {
1275
+ return isLight(theme) ? lightValue : darkValue;
1276
+ };
1277
+ function luminance(r, g, b) {
1278
+ const a = [r, g, b].map(function(v) {
1279
+ v /= 255;
1280
+ return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
1281
+ });
1282
+ return a[0] * 0.2126 + a[1] * 0.7152 + a[2] * 0.0722;
1283
+ }
1284
+ function contrast(rgb1, rgb2) {
1285
+ const lum1 = luminance(rgb1[0], rgb1[1], rgb1[2]);
1286
+ const lum2 = luminance(rgb2[0], rgb2[1], rgb2[2]);
1287
+ const brightest = Math.max(lum1, lum2);
1288
+ const darkest = Math.min(lum1, lum2);
1289
+ return (brightest + 0.05) / (darkest + 0.05);
1290
+ }
1291
+ function hexToRGB(hex) {
1292
+ const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
1293
+ return result ? [
1294
+ parseInt(result[1], 16),
1295
+ parseInt(result[2], 16),
1296
+ parseInt(result[3], 16)
1297
+ ] : [0, 0, 0];
1298
+ }
1299
+
1300
+ // src/styles/common.tsx
1301
+ var import_react4 = require("@emotion/react");
1302
+ var import_styled = __toESM(require("@emotion/styled"), 1);
1303
+ var rootFontSizePx = 12;
1304
+ var rootFontSizeRems = rootFontSizePx / 16;
1305
+ function buildStandardContentInset(smPx, minSmMaxLgPx, lgPx) {
1306
+ const smCSS = import_react4.css`
1307
+ ${bp.sm(`
1308
+ margin-left: auto;
1309
+ margin-right: auto;
1310
+ width: calc(100% - ${smPx * 2}px);
1311
+ `)}
1312
+ `;
1313
+ const minSmMaxLgCSS = import_react4.css`
1314
+ ${bp.minSmMaxLg(`
1315
+ margin-left: auto;
1316
+ margin-right: auto;
1317
+ width: calc(100% - ${minSmMaxLgPx * 2}px);
1318
+ `)}
1319
+ `;
1320
+ const lgCSS = import_react4.css`
1321
+ ${bp.lg(`
1322
+ margin-left: auto;
1323
+ margin-right: auto;
1324
+ width: calc(100% - ${lgPx * 2}px);
1325
+ max-width: 1280px;
1326
+ `)}
1327
+ `;
1328
+ return {
1329
+ smPx,
1330
+ minSmMaxLgPx,
1331
+ lgPx,
1332
+ smCSS,
1333
+ minSmMaxLgCSS,
1334
+ lgCSS,
1335
+ css: import_react4.css`
1336
+ ${lgCSS}
1337
+ ${smCSS}
1338
+ ${minSmMaxLgCSS}
1339
+ `
1340
+ };
1341
+ }
1342
+ var standardContentInset = buildStandardContentInset(16, 24, 32);
1343
+ var standardBorderRadius = (radius) => {
1344
+ const borderRadiusPx = Array.isArray(radius) ? radius.map((r) => `${r}px`).join(" ") : `${radius}px`;
1345
+ return `
1346
+ border-radius: ${borderRadiusPx};
1347
+ `;
1348
+ };
1349
+ var standardCardShadow = import_react4.css`
1350
+ box-shadow:
1351
+ 0px 4px 10px 0px rgba(0, 0, 0, 0.08),
1352
+ 0px 8px 24px 0px rgba(0, 0, 0, 0.04);
1353
+ `;
1354
+ var pageBorderRadiusPx = 16;
1355
+ var pageBorderRadius = `
1356
+ border-radius: ${pageBorderRadiusPx}px;
1357
+ `;
1358
+ var getFocusOutline = ({
1359
+ theme,
1360
+ onBgHex
1361
+ }) => `${onBgHex ? theme.hcNeutralFromBg(onBgHex) : theme.hcNeutral} dashed 1px`;
1362
+ var outlineOffset = "-2px";
1363
+ var standardFocusOutline = ({ theme }) => import_react4.css`
1364
+ &,
1365
+ & a,
1366
+ & button {
1367
+ &:focus-visible {
1368
+ outline: ${getFocusOutline({ theme })};
1369
+ outline-offset: ${outlineOffset};
1370
+ }
1371
+ }
1372
+ `;
1373
+ var subtext = ({ theme }) => import_react4.css`
1374
+ color: ${theme.c6Neutral};
1375
+ font-weight: 600;
1376
+ `;
1377
+ var Subtext = import_styled.default.div`
1378
+ ${subtext}
1379
+ `;
1380
+ var darkGradientBg = import_react4.css`
1381
+ background: ${darkGradient};
1382
+ `;
1383
+ var overlaySurfaceBorderColor = ({
1384
+ theme,
1385
+ important = false
1386
+ }) => import_react4.css`
1387
+ border-color: ${themeOr(theme.c1Neutral, theme.c3Neutral)({ theme })}
1388
+ ${important ? "!important" : ""};
1389
+ `;
1390
+ var overlaySurface = ({
1391
+ theme,
1392
+ important = false
1393
+ }) => import_react4.css`
1394
+ background-color: ${themeOr(colors.white, theme.c1Neutral)({ theme })}
1395
+ ${important ? "!important" : ""};
1396
+ border: 0.5px solid ${important ? "!important" : ""};
1397
+ ${overlaySurfaceBorderColor({ theme, important })};
1398
+ ${themeOr(
1399
+ `box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.1) ${important ? "!important" : ""};`,
1400
+ ""
1401
+ )({ theme })}
1402
+ `;
1403
+
1404
+ // src/styles/utils.tsx
1405
+ var import_react5 = require("@emotion/react");
1406
+ function pxToRems(rems, asNum = false) {
1407
+ const value = (rems / rootFontSizePx).toFixed(6);
1408
+ return asNum ? Number(value) : `${value}rem`;
1409
+ }
1410
+ var size = {
1411
+ px8: pxToRems(8),
1412
+ px10: pxToRems(10),
1413
+ px12: pxToRems(12),
1414
+ px14: pxToRems(14),
1415
+ px16: pxToRems(16),
1416
+ px18: pxToRems(18),
1417
+ px20: pxToRems(20),
1418
+ px21: pxToRems(21),
1419
+ px24: pxToRems(24)
1420
+ };
1421
+ var flexCenterAxis = import_react5.css`
1422
+ display: flex;
1423
+ align-items: center;
1424
+ `;
1425
+ var flexCenter = import_react5.css`
1426
+ display: flex;
1427
+ justify-content: center;
1428
+ align-items: center;
1429
+ `;
1430
+ var inlineFlexCenter = import_react5.css`
1431
+ display: flex;
1432
+ justify-content: center;
1433
+ align-items: center;
1434
+ `;
1435
+ var flexBetween = import_react5.css`
1436
+ display: flex;
1437
+ justify-content: space-between;
1438
+ align-items: center;
1439
+ `;
1440
+ var absoluteCenter = import_react5.css`
1441
+ position: absolute;
1442
+ top: 0;
1443
+ bottom: 0;
1444
+ left: 0;
1445
+ right: 0;
1446
+ margin: auto;
1447
+ `;
1448
+ var textCenter = import_react5.css`
1449
+ text-align: center;
1450
+ `;
1451
+ var overflowAutoWithoutScrollbars = import_react5.css`
1452
+ overflow: auto;
1453
+ scrollbar-width: none;
1454
+ -ms-overflow-style: none;
1455
+
1456
+ &::-webkit-scrollbar {
1457
+ display: none;
1458
+ }
1459
+
1460
+ &::-moz-scrollbar {
1461
+ display: none;
1462
+ }
1463
+ `;
1464
+
1465
+ // src/components/CopyToClipboardButton.tsx
1466
+ var import_styled4 = __toESM(require("@emotion/styled"), 1);
1467
+ var import_nanoid = require("nanoid");
1468
+ var import_react9 = require("react");
1469
+
1470
+ // src/components/Icon.tsx
1471
+ var import_styled2 = __toESM(require("@emotion/styled"), 1);
1472
+ var import_react6 = require("react");
1473
+
1474
+ // src/utils/strings.tsx
1475
+ function isString(str) {
1476
+ return typeof str === "string";
1477
+ }
1478
+
1479
+ // src/components/Icon.tsx
1480
+ var import_jsx_runtime2 = require("@emotion/react/jsx-runtime");
1481
+ var iconMap = {};
1482
+ function loadIcon(iconName) {
1483
+ return __async(this, null, function* () {
1484
+ let IconComp;
1485
+ try {
1486
+ ({ default: IconComp } = yield import(
1487
+ /* webpackMode: "eager" */
1488
+ // this can't be a variable only, needs to have some string constraints:
1489
+ `./icons/${iconName}.js`
1490
+ ));
1491
+ } catch (e) {
1492
+ throw new Error(`Icon ${iconName} not found`);
1493
+ }
1494
+ iconMap[iconName] = IconComp;
1495
+ });
1496
+ }
1497
+ function Icon({
1498
+ className,
1499
+ name,
1500
+ width,
1501
+ tutorialStep,
1502
+ mr = 0,
1503
+ ml = 0,
1504
+ verticalAlign = "middle",
1505
+ color = void 0
1506
+ }) {
1507
+ const [, setLoading] = (0, import_react6.useState)(false);
1508
+ const IconComponent = iconMap[name] || null;
1509
+ (0, import_react6.useLayoutEffect)(() => {
1510
+ void (() => __async(this, null, function* () {
1511
+ if (!iconMap[name]) {
1512
+ setLoading(true);
1513
+ yield loadIcon(name);
1514
+ setLoading(false);
1515
+ }
1516
+ }))();
1517
+ }, [name]);
1518
+ const w = parseFloat((width / rootFontSizePx).toFixed(2));
1519
+ const mrRems = parseFloat((mr / rootFontSizePx).toFixed(2));
1520
+ const mlRems = parseFloat((ml / rootFontSizePx).toFixed(2));
1521
+ const va = typeof verticalAlign === "string" ? verticalAlign : parseFloat((verticalAlign / rootFontSizePx).toFixed(2));
1522
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1523
+ IconContainer,
1524
+ {
1525
+ className,
1526
+ w,
1527
+ mr: mrRems,
1528
+ ml: mlRems,
1529
+ verticalAlign: va,
1530
+ fontColor: color,
1531
+ "data-tutorial-tip": tutorialStep == null ? void 0 : tutorialStep.toString(),
1532
+ children: IconComponent ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(IconComponent, {}) : null
1533
+ }
1534
+ );
1535
+ }
1536
+ var IconContainer = import_styled2.default.span`
1537
+ pointer-events: none;
1538
+ display: inline-flex;
1539
+ ${({ mr, ml, w }) => `
1540
+ width: ${w}em;
1541
+ /* ensure no shrink in flex containers: */
1542
+ min-width: ${w}em;
1543
+ ${mr ? `margin-right: ${mr}em;` : ""}
1544
+ ${ml ? `margin-left: ${ml}em;` : ""}
1545
+ `}
1546
+
1547
+ vertical-align: ${({ verticalAlign }) => isString(verticalAlign) ? verticalAlign : `${verticalAlign}em`};
1548
+
1549
+ ${({ fontColor }) => `
1550
+ & svg {
1551
+ color: ${fontColor || "inherit"};
1552
+ }
1553
+ `}
1554
+ `;
1555
+
1556
+ // src/components/LightTooltip.tsx
1557
+ var import_css = require("@emotion/css");
1558
+ var import_react7 = require("@emotion/react");
1559
+ var import_react8 = __toESM(require("react"), 1);
1560
+ var import_react_dom = __toESM(require("react-dom"), 1);
1561
+ var import_react_tooltip = require("react-tooltip");
1562
+
1563
+ // src/styles/z-index.tsx
1564
+ var z = {
1565
+ card: 1,
1566
+ fieldError: 1,
1567
+ textInput: 2,
1568
+ select: 3,
1569
+ selectFocused: 4,
1570
+ walletActionPreviewTopGradient: 1,
1571
+ headerContainer: 99,
1572
+ smBanner: 99,
1573
+ headerTop: 100,
1574
+ navMenu: 100,
1575
+ smNavMenu: 100,
1576
+ navAction: 101,
1577
+ smNavAction: 100,
1578
+ // keep under navDropdown
1579
+ notificationBanner: 170,
1580
+ qrReaderVideo: 180,
1581
+ qrReaderOverlay: 181,
1582
+ modalOverlay: 190,
1583
+ modalContainer: 191,
1584
+ dropdown: 192,
1585
+ tooltip: 193,
1586
+ toast: 200
1587
+ };
1588
+
1589
+ // src/components/LightTooltip.tsx
1590
+ var import_jsx_runtime3 = require("@emotion/react/jsx-runtime");
1591
+ function LightTooltip(props) {
1592
+ const nodeRef = (0, import_react8.useRef)(null);
1593
+ const [nodeReady, setNodeReady] = import_react8.default.useState(false);
1594
+ (0, import_react8.useEffect)(() => {
1595
+ if (!nodeRef.current) {
1596
+ nodeRef.current = document.createElement("div");
1597
+ document.body.appendChild(nodeRef.current);
1598
+ }
1599
+ setNodeReady(true);
1600
+ return () => {
1601
+ if (nodeRef.current) {
1602
+ document.body.removeChild(nodeRef.current);
1603
+ nodeRef.current = null;
1604
+ }
1605
+ };
1606
+ }, []);
1607
+ const theme = (0, import_react7.useTheme)();
1608
+ console.log("LightTooltip.tsx: tooltipProps:", props);
1609
+ return nodeReady && nodeRef.current ? import_react_dom.default.createPortal(
1610
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
1611
+ import_react_tooltip.Tooltip,
1612
+ __spreadProps(__spreadValues({}, props), {
1613
+ id: props.id || "",
1614
+ content: props.content || "",
1615
+ noArrow: true,
1616
+ border: "0.05rem solid rgba(0, 0, 0, 0.1)",
1617
+ className: styles({ theme }),
1618
+ variant: "light",
1619
+ delayShow: 180
1620
+ })
1621
+ ),
1622
+ nodeRef.current
1623
+ ) : null;
1624
+ }
1625
+ var styles = ({ theme }) => import_css.css`
1626
+ font-size: "10px",
1627
+ color: ${theme.c2Neutral};
1628
+ border-radius: 8px !important;
1629
+ padding: 16px !important;
1630
+ z-index: ${z.tooltip};
1631
+ ${overlaySurface({ theme, important: true })};
1632
+
1633
+ max-width: 260px;
1634
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.10), 0px 4px 8px 0px rgba(0, 0, 0, 0.08) !important;
1635
+ `;
1636
+
1637
+ // src/components/UnstyledButton.tsx
1638
+ var import_styled3 = __toESM(require("@emotion/styled"), 1);
1639
+ var UnstyledButton = import_styled3.default.button`
1640
+ ${standardFocusOutline}
1641
+ font-family: ${({ theme }) => theme.typography.fontFamilies.main};
1642
+ appearance: none;
1643
+ background: transparent;
1644
+ border: none;
1645
+ padding: 0;
1646
+ cursor: ${({ disabled }) => disabled ? "not-allowed" : "pointer"};
1647
+ /* needed in Safari for some reason */
1648
+ font-size: 1rem;
1649
+ color: inherit;
1650
+ font-weight: inherit;
1651
+ `;
1652
+
1653
+ // src/components/CopyToClipboardButton.tsx
1654
+ var import_jsx_runtime4 = require("@emotion/react/jsx-runtime");
1655
+ var CopyToClipboardButton = (props) => {
1656
+ var _a;
1657
+ const originalTooltipContent = props.tooltipContent || "Click to copy";
1658
+ const icon = props.icon || "Copy";
1659
+ const id = `copy-node-name-${(_a = props.id) != null ? _a : (0, import_nanoid.nanoid)()}`;
1660
+ const [tooltipContent, setTooltipContent] = (0, import_react9.useState)(originalTooltipContent);
1661
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1662
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1663
+ Button,
1664
+ {
1665
+ type: "button",
1666
+ onClick: () => {
1667
+ void (() => __async(void 0, null, function* () {
1668
+ try {
1669
+ yield navigator.clipboard.writeText(props.value);
1670
+ setTooltipContent("Copied!");
1671
+ } catch (err) {
1672
+ setTooltipContent("Unable to copy");
1673
+ }
1674
+ setTimeout(() => {
1675
+ setTooltipContent(originalTooltipContent);
1676
+ }, 2e3);
1677
+ }))();
1678
+ },
1679
+ css: props.buttonCSS,
1680
+ ml: props.ml,
1681
+ "data-tooltip-id": id,
1682
+ children: [
1683
+ props.children ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Children, { children: props.children }) : null,
1684
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { name: icon, width: props.isSm ? 12 : 16 })
1685
+ ]
1686
+ }
1687
+ ),
1688
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1689
+ LightTooltip,
1690
+ {
1691
+ id,
1692
+ place: props.place || "right",
1693
+ content: tooltipContent
1694
+ }
1695
+ )
1696
+ ] });
1697
+ };
1698
+ var Children = import_styled4.default.span`
1699
+ margin-right: 4px;
1700
+ `;
1701
+ var Button = (0, import_styled4.default)(UnstyledButton)`
1702
+ background: rgba(0, 0, 0, 0);
1703
+ vertical-align: middle;
1704
+ ${({ ml }) => ml ? `margin-left: ${ml}px` : ""};
1705
+ `;
1706
+
1707
+ // src/components/CodeBlock.tsx
1708
+ var import_jsx_runtime5 = require("@emotion/react/jsx-runtime");
1709
+ var ProgrammingLanguageOptions = {
1710
+ Bash: "bash",
1711
+ Flutter: "dart",
1712
+ Go: "go",
1713
+ GraphQL: "graphql",
1714
+ Java: "java",
1715
+ JavaScript: "js",
1716
+ JSON: "json",
1717
+ Kotlin: "kotlin",
1718
+ Python: "python",
1719
+ React: "react",
1720
+ ReactNative: "tsx",
1721
+ Rust: "rust",
1722
+ Swift: "swift",
1723
+ Text: "txt"
1724
+ };
1725
+ var backgroundColor = "#2d2d2d";
1726
+ var InlineCode = import_styled5.default.span`
1727
+ font-family: "Roboto Mono", monospace;
1728
+ background-color: #2d2d2d;
1729
+ border: 1px solid ${themeOr(colors.gray90, colors.gray20)};
1730
+ border-radius: 3px;
1731
+ line-height: 24px;
1732
+ padding: 0 4px;
1733
+ `;
1734
+ var codeSelectStyles = {
1735
+ container: (styles2) => __spreadProps(__spreadValues({}, styles2), {
1736
+ display: "flex"
1737
+ }),
1738
+ control: (styles2) => __spreadProps(__spreadValues({}, styles2), {
1739
+ backgroundColor,
1740
+ border: "none",
1741
+ cursor: "pointer",
1742
+ "&:hover": {
1743
+ border: "#none"
1744
+ },
1745
+ boxShadow: "none",
1746
+ minHeight: 0
1747
+ }),
1748
+ dropdownIndicator: (styles2) => __spreadProps(__spreadValues({}, styles2), {
1749
+ color: "#ffffff",
1750
+ padding: "0 0 0 4px",
1751
+ "&:hover": {
1752
+ color: "#ffffff"
1753
+ }
1754
+ }),
1755
+ indicatorSeparator: (styles2) => ({
1756
+ display: "none"
1757
+ }),
1758
+ input: (styles2) => __spreadProps(__spreadValues({}, styles2), {
1759
+ fontSize: "1rem",
1760
+ margin: 0,
1761
+ color: "transparent"
1762
+ }),
1763
+ menu: (styles2) => __spreadProps(__spreadValues({}, styles2), {
1764
+ backgroundColor,
1765
+ width: "auto"
1766
+ }),
1767
+ menuList: (styles2) => __spreadProps(__spreadValues({}, styles2), {
1768
+ borderRadius: "4px",
1769
+ padding: 0
1770
+ }),
1771
+ option: (styles2, state) => __spreadProps(__spreadValues({}, styles2), {
1772
+ cursor: "pointer",
1773
+ backgroundColor: state.isSelected ? colors.gray25 : backgroundColor,
1774
+ "&:hover": {
1775
+ backgroundColor: colors.gray25
1776
+ }
1777
+ }),
1778
+ singleValue: (styles2) => __spreadProps(__spreadValues({}, styles2), {
1779
+ color: "#ffffff",
1780
+ margin: 0
1781
+ }),
1782
+ valueContainer: (styles2) => __spreadProps(__spreadValues({}, styles2), {
1783
+ padding: 0
1784
+ })
1785
+ };
1786
+ var CodeBlock = ({
1787
+ title,
1788
+ children,
1789
+ className,
1790
+ language = "Text",
1791
+ languageOptions,
1792
+ onSelectLanguage,
1793
+ withCopyButton
1794
+ }) => {
1795
+ (0, import_react10.useLayoutEffect)(() => {
1796
+ import_prismjs.default.highlightAll();
1797
+ }, [children, language]);
1798
+ const header = withCopyButton || languageOptions && onSelectLanguage ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(CodeBlockHeader, { children: [
1799
+ title && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CodeBlockHeaderTitle, { children: title }),
1800
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1801
+ "div",
1802
+ {
1803
+ css: {
1804
+ display: "flex",
1805
+ alignItems: "center",
1806
+ justifyContent: title ? "flex-end" : "space-between",
1807
+ width: "100%"
1808
+ },
1809
+ children: [
1810
+ languageOptions && onSelectLanguage ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { css: { margin: title ? "0 16px 0 auto" : "0" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1811
+ import_react_select.default,
1812
+ {
1813
+ value: { value: language, label: language },
1814
+ options: languageOptions.map((lang) => ({
1815
+ value: lang,
1816
+ label: lang
1817
+ })),
1818
+ onChange: (selected) => {
1819
+ if (selected == null ? void 0 : selected.value) {
1820
+ onSelectLanguage(selected.value);
1821
+ }
1822
+ },
1823
+ styles: codeSelectStyles
1824
+ }
1825
+ ) }) : null,
1826
+ withCopyButton ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CopyToClipboardButton, { value: children }) : null
1827
+ ]
1828
+ }
1829
+ )
1830
+ ] }) : null;
1831
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(StyledCodeBlock, { className, children: [
1832
+ header,
1833
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CodeBlockContainer, { hasHeader: header !== null, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("code", { className: `language-${ProgrammingLanguageOptions[language]}`, children }) })
1834
+ ] });
1835
+ };
1836
+ var StyledCodeBlock = import_styled5.default.div``;
1837
+ var CodeBlockHeader = import_styled5.default.div`
1838
+ align-items: center;
1839
+ background-color: #2d2d2d;
1840
+ border-bottom: 1px solid ${colors.gray25};
1841
+ border-top-left-radius: 8px;
1842
+ border-top-right-radius: 8px;
1843
+ color: #ffffff;
1844
+ display: flex;
1845
+ flex-direction: row;
1846
+ justify-content: space-between;
1847
+ padding: 16px 20px;
1848
+ `;
1849
+ var CodeBlockContainer = import_styled5.default.pre`
1850
+ ${overflowAutoWithoutScrollbars}
1851
+ &[class*="language-"] {
1852
+ padding: 20px;
1853
+ font-weight: 500;
1854
+ ${standardBorderRadius(8)}
1855
+ ${(props) => props.hasHeader ? `border-top-left-radius: 0;
1856
+ border-top-right-radius: 0;
1857
+ margin-top: 0;` : ""}
1858
+ }
1859
+ `;
1860
+ var CodeBlockHeaderTitle = import_styled5.default.div`
1861
+ width: 100%;
1862
+ font-weight: 500;
1863
+ color: ${({ theme }) => theme.hcNeutralFromBg(backgroundColor)};
1864
+ `;
1865
+ // Annotate the CommonJS export names for ESM import in node:
1866
+ 0 && (module.exports = {
1867
+ CodeBlock,
1868
+ InlineCode,
1869
+ ProgrammingLanguageOptions,
1870
+ StyledCodeBlock
1871
+ });