@trackunit/ui-design-tokens 0.0.67 → 0.0.69

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/index.cjs CHANGED
@@ -593,12 +593,12 @@ const themeBoxShadow = {
593
593
  * are for active versions(e.g. hover).
594
594
  */
595
595
  const elevation = {
596
- E05: `var(${themeBoxShadow.sm})`,
597
- E10: `var(${themeBoxShadow.DEFAULT})`,
598
- E10A: `var(${themeBoxShadow.md})`,
599
- E20: `var(${themeBoxShadow.lg})`,
600
- E30: `var(${themeBoxShadow.xl})`,
601
- E40: `var(${themeBoxShadow["2xl"]})`,
596
+ E05: themeBoxShadow.sm,
597
+ E10: themeBoxShadow.DEFAULT,
598
+ E10A: themeBoxShadow.md,
599
+ E20: themeBoxShadow.lg,
600
+ E30: themeBoxShadow.xl,
601
+ E40: themeBoxShadow["2xl"],
602
602
  };
603
603
 
604
604
  /**
@@ -655,14 +655,14 @@ const themeSpacing = {
655
655
  "96": "24rem",
656
656
  };
657
657
  const size = {
658
- none: `var(${themeSpacing[0]})`,
659
- tiny: `var(${themeSpacing[1]})`,
660
- mini: `var(${themeSpacing[2]})`,
661
- small: `var(${themeSpacing[3]})`,
662
- medium: `var(${themeSpacing[4]})`,
663
- large: `var(${themeSpacing[6]})`,
664
- giant: `var(${themeSpacing[8]})`,
665
- enormous: `var(${themeSpacing[10]})`,
658
+ none: themeSpacing[0],
659
+ tiny: themeSpacing[1],
660
+ mini: themeSpacing[2],
661
+ small: themeSpacing[3],
662
+ medium: themeSpacing[4],
663
+ large: themeSpacing[6],
664
+ giant: themeSpacing[8],
665
+ enormous: themeSpacing[10],
666
666
  };
667
667
 
668
668
  /**
@@ -712,12 +712,12 @@ const themeFontWeight = {
712
712
  * Based on a root size of 16px.
713
713
  */
714
714
  const fontSize = {
715
- primary: `var(${themeFontSize["3xl"]})`,
716
- secondary: `var(${themeFontSize.lg})`,
717
- tertiary: `var(${themeFontSize.base})`,
718
- subtitle: `var(${themeFontSize.base})`,
719
- body: `var(${themeFontSize.sm})`,
720
- small: `var(${themeFontSize.xs})`, // 12px
715
+ primary: themeFontSize["3xl"],
716
+ secondary: themeFontSize.lg,
717
+ tertiary: themeFontSize.base,
718
+ subtitle: themeFontSize.base,
719
+ body: themeFontSize.sm,
720
+ small: themeFontSize.xs, // 12px
721
721
  };
722
722
  /**
723
723
  * Primary font weights.
package/index.js CHANGED
@@ -589,12 +589,12 @@ const themeBoxShadow = {
589
589
  * are for active versions(e.g. hover).
590
590
  */
591
591
  const elevation = {
592
- E05: `var(${themeBoxShadow.sm})`,
593
- E10: `var(${themeBoxShadow.DEFAULT})`,
594
- E10A: `var(${themeBoxShadow.md})`,
595
- E20: `var(${themeBoxShadow.lg})`,
596
- E30: `var(${themeBoxShadow.xl})`,
597
- E40: `var(${themeBoxShadow["2xl"]})`,
592
+ E05: themeBoxShadow.sm,
593
+ E10: themeBoxShadow.DEFAULT,
594
+ E10A: themeBoxShadow.md,
595
+ E20: themeBoxShadow.lg,
596
+ E30: themeBoxShadow.xl,
597
+ E40: themeBoxShadow["2xl"],
598
598
  };
599
599
 
600
600
  /**
@@ -651,14 +651,14 @@ const themeSpacing = {
651
651
  "96": "24rem",
652
652
  };
653
653
  const size = {
654
- none: `var(${themeSpacing[0]})`,
655
- tiny: `var(${themeSpacing[1]})`,
656
- mini: `var(${themeSpacing[2]})`,
657
- small: `var(${themeSpacing[3]})`,
658
- medium: `var(${themeSpacing[4]})`,
659
- large: `var(${themeSpacing[6]})`,
660
- giant: `var(${themeSpacing[8]})`,
661
- enormous: `var(${themeSpacing[10]})`,
654
+ none: themeSpacing[0],
655
+ tiny: themeSpacing[1],
656
+ mini: themeSpacing[2],
657
+ small: themeSpacing[3],
658
+ medium: themeSpacing[4],
659
+ large: themeSpacing[6],
660
+ giant: themeSpacing[8],
661
+ enormous: themeSpacing[10],
662
662
  };
663
663
 
664
664
  /**
@@ -708,12 +708,12 @@ const themeFontWeight = {
708
708
  * Based on a root size of 16px.
709
709
  */
710
710
  const fontSize = {
711
- primary: `var(${themeFontSize["3xl"]})`,
712
- secondary: `var(${themeFontSize.lg})`,
713
- tertiary: `var(${themeFontSize.base})`,
714
- subtitle: `var(${themeFontSize.base})`,
715
- body: `var(${themeFontSize.sm})`,
716
- small: `var(${themeFontSize.xs})`, // 12px
711
+ primary: themeFontSize["3xl"],
712
+ secondary: themeFontSize.lg,
713
+ tertiary: themeFontSize.base,
714
+ subtitle: themeFontSize.base,
715
+ body: themeFontSize.sm,
716
+ small: themeFontSize.xs, // 12px
717
717
  };
718
718
  /**
719
719
  * Primary font weights.
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@trackunit/ui-design-tokens",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
+ "engines": {
7
+ "node": ">=16.x"
8
+ },
6
9
  "module": "./index.js",
7
10
  "main": "./index.cjs",
8
11
  "type": "module",
@@ -17,11 +17,11 @@ export declare const themeBoxShadow: {
17
17
  * are for active versions(e.g. hover).
18
18
  */
19
19
  export declare const elevation: {
20
- readonly E05: "var(0 1px 2px 0 rgb(0 0 0 / 0.05))";
21
- readonly E10: "var(0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1))";
22
- readonly E10A: "var(0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1))";
23
- readonly E20: "var(0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1))";
24
- readonly E30: "var(0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1))";
25
- readonly E40: "var(0 25px 50px -12px rgb(0 0 0 / 0.25))";
20
+ readonly E05: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
21
+ readonly E10: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
22
+ readonly E10A: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
23
+ readonly E20: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
24
+ readonly E30: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
25
+ readonly E40: "0 25px 50px -12px rgb(0 0 0 / 0.25)";
26
26
  };
27
27
  export type Elevation = typeof elevation;
@@ -39,13 +39,13 @@ export declare const themeSpacing: {
39
39
  readonly "96": "24rem";
40
40
  };
41
41
  export declare const size: {
42
- readonly none: "var(0px)";
43
- readonly tiny: "var(0.25rem)";
44
- readonly mini: "var(0.5rem)";
45
- readonly small: "var(0.75rem)";
46
- readonly medium: "var(1rem)";
47
- readonly large: "var(1.5rem)";
48
- readonly giant: "var(2rem)";
49
- readonly enormous: "var(2.5rem)";
42
+ readonly none: "0px";
43
+ readonly tiny: "0.25rem";
44
+ readonly mini: "0.5rem";
45
+ readonly small: "0.75rem";
46
+ readonly medium: "1rem";
47
+ readonly large: "1.5rem";
48
+ readonly giant: "2rem";
49
+ readonly enormous: "2.5rem";
50
50
  };
51
51
  export type Size = typeof size;
@@ -35,12 +35,12 @@ export declare const themeFontWeight: {
35
35
  * Based on a root size of 16px.
36
36
  */
37
37
  export declare const fontSize: {
38
- readonly primary: "var(1.875rem)";
39
- readonly secondary: "var(1.125rem)";
40
- readonly tertiary: "var(1rem)";
41
- readonly subtitle: "var(1rem)";
42
- readonly body: "var(0.875rem)";
43
- readonly small: "var(0.75rem)";
38
+ readonly primary: "1.875rem";
39
+ readonly secondary: "1.125rem";
40
+ readonly tertiary: "1rem";
41
+ readonly subtitle: "1rem";
42
+ readonly body: "0.875rem";
43
+ readonly small: "0.75rem";
44
44
  };
45
45
  export type FontSize = typeof fontSize;
46
46
  /**