@ada-cx/lovelace 1.16.0 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,35 @@
1
1
  export declare const textRoot: import("@vanilla-extract/recipes").RuntimeFn<{
2
2
  variant: {
3
- body: import("@vanilla-extract/css").StyleRule;
4
- caption: import("@vanilla-extract/css").StyleRule;
5
- "title-small": import("@vanilla-extract/css").StyleRule;
6
- "title-large": import("@vanilla-extract/css").StyleRule;
3
+ body: {
4
+ fontFamily: "var(--lovelace-font-family-body)";
5
+ fontSize: "var(--lovelace-font-size-caption)" | "var(--lovelace-font-size-body)" | "var(--lovelace-font-size-title-small)" | "var(--lovelace-font-size-title-large)";
6
+ lineHeight: "var(--lovelace-line-height-caption)" | "var(--lovelace-line-height-body)" | "var(--lovelace-line-height-title-small)" | "var(--lovelace-line-height-title-large)";
7
+ };
8
+ caption: {
9
+ fontFamily: "var(--lovelace-font-family-body)";
10
+ fontSize: "var(--lovelace-font-size-caption)" | "var(--lovelace-font-size-body)" | "var(--lovelace-font-size-title-small)" | "var(--lovelace-font-size-title-large)";
11
+ lineHeight: "var(--lovelace-line-height-caption)" | "var(--lovelace-line-height-body)" | "var(--lovelace-line-height-title-small)" | "var(--lovelace-line-height-title-large)";
12
+ };
13
+ "title-small": {
14
+ fontFamily: "var(--lovelace-font-family-body)";
15
+ fontSize: "var(--lovelace-font-size-caption)" | "var(--lovelace-font-size-body)" | "var(--lovelace-font-size-title-small)" | "var(--lovelace-font-size-title-large)";
16
+ lineHeight: "var(--lovelace-line-height-caption)" | "var(--lovelace-line-height-body)" | "var(--lovelace-line-height-title-small)" | "var(--lovelace-line-height-title-large)";
17
+ };
18
+ "title-large": {
19
+ fontFamily: "var(--lovelace-font-family-body)";
20
+ fontSize: "var(--lovelace-font-size-caption)" | "var(--lovelace-font-size-body)" | "var(--lovelace-font-size-title-small)" | "var(--lovelace-font-size-title-large)";
21
+ lineHeight: "var(--lovelace-line-height-caption)" | "var(--lovelace-line-height-body)" | "var(--lovelace-line-height-title-small)" | "var(--lovelace-line-height-title-large)";
22
+ };
7
23
  };
8
24
  weight: {
9
- regular: import("@vanilla-extract/css").StyleRule;
10
- medium: import("@vanilla-extract/css").StyleRule;
11
- "semi-bold": import("@vanilla-extract/css").StyleRule;
25
+ regular: {
26
+ fontWeight: "var(--lovelace-font-weight-regular)" | "var(--lovelace-font-weight-medium)" | "var(--lovelace-font-weight-semi-bold)";
27
+ };
28
+ medium: {
29
+ fontWeight: "var(--lovelace-font-weight-regular)" | "var(--lovelace-font-weight-medium)" | "var(--lovelace-font-weight-semi-bold)";
30
+ };
31
+ "semi-bold": {
32
+ fontWeight: "var(--lovelace-font-weight-regular)" | "var(--lovelace-font-weight-medium)" | "var(--lovelace-font-weight-semi-bold)";
33
+ };
12
34
  };
13
35
  }>;
@@ -1,4 +1,3 @@
1
- import type { StyleRule } from "@vanilla-extract/css";
2
1
  /**
3
2
  * The four semantic type tiers Figma defines, as variable names rather than
4
3
  * values. Lovelace 2.0 publishes no TEXT styles — typography lives entirely in
@@ -15,13 +14,19 @@ export type TextWeight = "regular" | "medium" | "semi-bold";
15
14
  * `font-family-code` / `font-family-mono` have none, so a family prop would be
16
15
  * surface Figma does not show.
17
16
  */
18
- export declare function typographyVariant(variant: TextVariant): StyleRule;
17
+ export declare function typographyVariant(variant: TextVariant): {
18
+ fontFamily: "var(--lovelace-font-family-body)";
19
+ fontSize: "var(--lovelace-font-size-caption)" | "var(--lovelace-font-size-body)" | "var(--lovelace-font-size-title-small)" | "var(--lovelace-font-size-title-large)";
20
+ lineHeight: "var(--lovelace-line-height-caption)" | "var(--lovelace-line-height-body)" | "var(--lovelace-line-height-title-small)" | "var(--lovelace-line-height-title-large)";
21
+ };
19
22
  /**
20
23
  * Weight alone. Split from the tier because the two axes are independent in
21
24
  * practice: `body` ships with `regular` on seven components and `medium` on
22
25
  * seven others, so a tier cannot carry a weight of its own.
23
26
  */
24
- export declare function typographyWeight(weight: TextWeight): StyleRule;
27
+ export declare function typographyWeight(weight: TextWeight): {
28
+ fontWeight: "var(--lovelace-font-weight-regular)" | "var(--lovelace-font-weight-medium)" | "var(--lovelace-font-weight-semi-bold)";
29
+ };
25
30
  /**
26
31
  * Both axes as one block, spread into a host's own class rather than shared as
27
32
  * one class — the `rowFrame` treatment. The hosts are a `<button>`, a
@@ -29,4 +34,9 @@ export declare function typographyWeight(weight: TextWeight): StyleRule;
29
34
  * every case the type sits on the component's own root: there is no text child
30
35
  * to hang a class on.
31
36
  */
32
- export declare function typography(variant: TextVariant, weight?: TextWeight): StyleRule;
37
+ export declare function typography(variant: TextVariant, weight?: TextWeight): {
38
+ fontWeight: "var(--lovelace-font-weight-regular)" | "var(--lovelace-font-weight-medium)" | "var(--lovelace-font-weight-semi-bold)";
39
+ fontFamily: "var(--lovelace-font-family-body)";
40
+ fontSize: "var(--lovelace-font-size-caption)" | "var(--lovelace-font-size-body)" | "var(--lovelace-font-size-title-small)" | "var(--lovelace-font-size-title-large)";
41
+ lineHeight: "var(--lovelace-line-height-caption)" | "var(--lovelace-line-height-body)" | "var(--lovelace-line-height-title-small)" | "var(--lovelace-line-height-title-large)";
42
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-cx/lovelace",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Ada's messaging design system primitives: React Aria Components behavior, vanilla-extract styling, Figma-generated design tokens.",
5
5
  "license": "ISC",
6
6
  "type": "module",
@@ -49,8 +49,6 @@
49
49
  "lint": "npx biome check"
50
50
  },
51
51
  "dependencies": {
52
- "@vanilla-extract/css": "^1.20.1",
53
- "@vanilla-extract/recipes": "^0.5.7",
54
52
  "react-aria": "^3.48.0",
55
53
  "react-aria-components": "^1.17.0",
56
54
  "react-stately": "^3.46.0"
@@ -61,6 +59,8 @@
61
59
  },
62
60
  "devDependencies": {
63
61
  "@figma/code-connect": "^1.3.0",
62
+ "@vanilla-extract/css": "^1.20.1",
63
+ "@vanilla-extract/recipes": "^0.5.7",
64
64
  "@vanilla-extract/vite-plugin": "^5.2.2"
65
65
  }
66
66
  }