@swan-io/lake 12.2.15 → 12.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-io/lake",
3
- "version": "12.2.15",
3
+ "version": "12.3.0",
4
4
  "engines": {
5
5
  "node": "^22.12.0"
6
6
  },
@@ -325,6 +325,8 @@ body {
325
325
  --font-family-code: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
326
326
  --font-family-iban: "Roboto Mono", monospace;
327
327
 
328
+ --letter-spacing-primary: -0.011em; /* Computed by Inter dynamic metrics tool */
329
+
328
330
  --heading-color: var(--color-gray-900);
329
331
  --heading-line-height: 1.25;
330
332
 
@@ -56,6 +56,20 @@ export declare const gradients: {
56
56
  readonly vertical: "var(--gradient-vertical)";
57
57
  readonly oblique: "var(--gradient-oblique)";
58
58
  };
59
+ export declare const fonts: {
60
+ primary: string;
61
+ card: string;
62
+ code: string;
63
+ iban: string;
64
+ };
65
+ export type Fonts = keyof typeof fonts;
66
+ export declare const primaryFontStyle: {
67
+ fontFamily: string;
68
+ letterSpacing: number;
69
+ };
70
+ /**
71
+ * @deprecated use primaryFontStyle instead
72
+ */
59
73
  export declare const interFontStyle: {
60
74
  fontFamily: string;
61
75
  letterSpacing: number;
@@ -117,13 +131,6 @@ export declare const radii: {
117
131
  readonly 8: number;
118
132
  };
119
133
  export type Radii = keyof typeof radii;
120
- export declare const fonts: {
121
- primary: string;
122
- card: string;
123
- code: string;
124
- iban: string;
125
- };
126
- export type Fonts = keyof typeof fonts;
127
134
  export type Animation = {
128
135
  enter: AnimationStyles;
129
136
  leave: AnimationStyles;
@@ -248,120 +248,116 @@ export const gradients = {
248
248
  vertical: "var(--gradient-vertical)",
249
249
  oblique: "var(--gradient-oblique)",
250
250
  };
251
- export const interFontStyle = {
252
- fontFamily: [
253
- "Inter",
254
- "-apple-system",
255
- "system-ui",
256
- "BlinkMacSystemFont",
257
- "Segoe UI",
258
- "Helvetica",
259
- "Arial",
260
- "sans-serif",
261
- "Apple Color Emoji",
262
- "Segoe UI Emoji",
263
- "Segoe UI Symbol",
264
- "Noto Color Emoji",
265
- ].join(","),
266
- // Computed by Inter dynamic metrics tool
267
- letterSpacing: "-0.011em",
251
+ export const fonts = {
252
+ primary: "var(--font-family-primary)",
253
+ card: "var( --font-family-card-font)",
254
+ code: "var(--font-family-code)",
255
+ iban: "var(--font-family-iban)",
256
+ };
257
+ export const primaryFontStyle = {
258
+ fontFamily: fonts.primary,
259
+ letterSpacing: "var(--letter-spacing-primary)",
268
260
  };
261
+ /**
262
+ * @deprecated use primaryFontStyle instead
263
+ */
264
+ export const interFontStyle = primaryFontStyle;
269
265
  const asTextStyle = (x) => {
270
266
  return x;
271
267
  };
272
268
  const h1 = asTextStyle({
273
- ...interFontStyle,
269
+ ...primaryFontStyle,
274
270
  color: "var(--heading-color)",
275
271
  fontWeight: "var(--heading-1-font-weight)",
276
272
  fontSize: "var(--heading-1-font-size)",
277
273
  lineHeight: "var(--heading-line-height)",
278
274
  });
279
275
  const h2 = asTextStyle({
280
- ...interFontStyle,
276
+ ...primaryFontStyle,
281
277
  color: "var(--heading-color)",
282
278
  fontWeight: "var(--heading-2-font-weight)",
283
279
  fontSize: "var(--heading-2-font-size)",
284
280
  lineHeight: "var(--heading-line-height)",
285
281
  });
286
282
  const h3 = asTextStyle({
287
- ...interFontStyle,
283
+ ...primaryFontStyle,
288
284
  color: "var(--heading-color)",
289
285
  fontWeight: "var(--heading-3-font-weight)",
290
286
  fontSize: "var(--heading-3-font-size)",
291
287
  lineHeight: "var(--heading-line-height)",
292
288
  });
293
289
  const h4 = asTextStyle({
294
- ...interFontStyle,
290
+ ...primaryFontStyle,
295
291
  color: "var(--heading-color)",
296
292
  fontWeight: "var(--heading-4-font-weight)",
297
293
  fontSize: "var(--heading-4-font-size)",
298
294
  lineHeight: "var(--heading-line-height)",
299
295
  });
300
296
  const h5 = asTextStyle({
301
- ...interFontStyle,
297
+ ...primaryFontStyle,
302
298
  color: "var(--heading-color)",
303
299
  fontWeight: "var(--heading-5-font-weight)",
304
300
  fontSize: "var(--heading-5-font-size)",
305
301
  lineHeight: "var(--heading-line-height)",
306
302
  });
307
303
  const h6 = asTextStyle({
308
- ...interFontStyle,
304
+ ...primaryFontStyle,
309
305
  color: "var(--heading-color)",
310
306
  fontWeight: "var(--heading-6-font-weight)",
311
307
  fontSize: "var(--heading-6-font-size)",
312
308
  lineHeight: "var(--heading-line-height)",
313
309
  });
314
310
  const semibold = asTextStyle({
315
- ...interFontStyle,
311
+ ...primaryFontStyle,
316
312
  color: "var(--text-color)",
317
313
  fontWeight: "var(--text-semibold-font-weight)",
318
314
  fontSize: "var(--text-semibold-font-size)",
319
315
  lineHeight: "var(--text-line-height)",
320
316
  });
321
317
  const medium = asTextStyle({
322
- ...interFontStyle,
318
+ ...primaryFontStyle,
323
319
  color: "var(--text-color)",
324
320
  fontWeight: "var(--text-medium-font-weight)",
325
321
  fontSize: "var(--text-medium-font-size)",
326
322
  lineHeight: "var(--text-line-height)",
327
323
  });
328
324
  const regular = asTextStyle({
329
- ...interFontStyle,
325
+ ...primaryFontStyle,
330
326
  color: "var(--text-color)",
331
327
  fontWeight: "var(--text-regular-font-weight)",
332
328
  fontSize: "var(--text-regular-font-size)",
333
329
  lineHeight: "var(--text-line-height)",
334
330
  });
335
331
  const light = asTextStyle({
336
- ...interFontStyle,
332
+ ...primaryFontStyle,
337
333
  color: "var(--text-color)",
338
334
  fontWeight: "var(--text-light-font-weight)",
339
335
  fontSize: "var(--text-light-font-size)",
340
336
  lineHeight: "var(--text-line-height)",
341
337
  });
342
338
  const smallSemibold = asTextStyle({
343
- ...interFontStyle,
339
+ ...primaryFontStyle,
344
340
  color: "var(--text-color)",
345
341
  fontWeight: "var(--text-small-semibold-font-weight)",
346
342
  fontSize: "var(--text-small-semibold-font-size)",
347
343
  lineHeight: "var(--text-line-height)",
348
344
  });
349
345
  const smallMedium = asTextStyle({
350
- ...interFontStyle,
346
+ ...primaryFontStyle,
351
347
  color: "var(--text-color)",
352
348
  fontWeight: "var(--text-small-medium-font-weight)",
353
349
  fontSize: "var(--text-small-medium-font-size)",
354
350
  lineHeight: "var(--text-line-height)",
355
351
  });
356
352
  const smallRegular = asTextStyle({
357
- ...interFontStyle,
353
+ ...primaryFontStyle,
358
354
  color: "var(--text-color)",
359
355
  fontWeight: "var(--text-small-regular-font-weight)",
360
356
  fontSize: "var(--text-small-regular-font-size)",
361
357
  lineHeight: "var(--text-line-height)",
362
358
  });
363
359
  const placeholder = asTextStyle({
364
- ...interFontStyle,
360
+ ...primaryFontStyle,
365
361
  color: "var(--placeholder-color)",
366
362
  fontStyle: "italic",
367
363
  fontWeight: "var(--placeholder-font-weight)",
@@ -369,7 +365,7 @@ const placeholder = asTextStyle({
369
365
  lineHeight: "var(--placeholder-line-height)",
370
366
  });
371
367
  const smallPlaceholder = asTextStyle({
372
- ...interFontStyle,
368
+ ...primaryFontStyle,
373
369
  color: "var(--placeholder-color)",
374
370
  fontStyle: "italic",
375
371
  fontWeight: "var(--placeholder-small-font-weight)",
@@ -429,12 +425,6 @@ export const radii = {
429
425
  6: "var(--radius-6)",
430
426
  8: "var(--radius-8)",
431
427
  };
432
- export const fonts = {
433
- primary: "var(--font-family-primary)",
434
- card: "var( --font-family-card-font)",
435
- code: "var(--font-family-code)",
436
- iban: "var(--font-family-iban)",
437
- };
438
428
  const easeInOutQuad = "cubic-bezier(0.45, 0, 0.55, 1)";
439
429
  const fadeAndSlideInFromTop = StyleSheet.create({
440
430
  enter: {