@pathway-io/core 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -25,24 +25,42 @@ declare const colors: {
25
25
  950: string;
26
26
  };
27
27
  };
28
- declare const fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
29
- declare const fontSizes: {
28
+ declare const fonts: {
29
+ readonly '3xl': {
30
+ readonly size: 40;
31
+ readonly lineHeight: 48;
32
+ readonly fontFamily: "Helvetica-Now-Display";
33
+ };
34
+ readonly '2xl': {
35
+ readonly size: 28;
36
+ readonly lineHeight: 36;
37
+ readonly fontFamily: "Helvetica-Now-Display";
38
+ };
39
+ readonly xl: {
40
+ readonly size: 24;
41
+ readonly lineHeight: 28;
42
+ readonly fontFamily: "Helvetica-Now-Text";
43
+ };
30
44
  readonly lg: {
31
45
  readonly size: 20;
32
46
  readonly lineHeight: 28;
47
+ readonly fontFamily: "Helvetica-Now-Text";
33
48
  };
34
49
  readonly default: {
35
50
  readonly size: 16;
36
51
  readonly lineHeight: 22;
52
+ readonly fontFamily: "Helvetica-Now-Text";
37
53
  };
38
54
  readonly sm: {
39
55
  readonly size: 14;
40
56
  readonly lineHeight: 20;
57
+ readonly fontFamily: "Helvetica-Now-Text";
41
58
  };
42
59
  readonly xs: {
43
60
  readonly size: 12;
44
61
  readonly lineHeight: 18;
62
+ readonly fontFamily: "Helvetica-Now-Text";
45
63
  };
46
64
  };
47
65
 
48
- export { colors, fontFamilies, fontSizes };
66
+ export { colors, fonts };
package/dist/index.d.ts CHANGED
@@ -25,24 +25,42 @@ declare const colors: {
25
25
  950: string;
26
26
  };
27
27
  };
28
- declare const fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
29
- declare const fontSizes: {
28
+ declare const fonts: {
29
+ readonly '3xl': {
30
+ readonly size: 40;
31
+ readonly lineHeight: 48;
32
+ readonly fontFamily: "Helvetica-Now-Display";
33
+ };
34
+ readonly '2xl': {
35
+ readonly size: 28;
36
+ readonly lineHeight: 36;
37
+ readonly fontFamily: "Helvetica-Now-Display";
38
+ };
39
+ readonly xl: {
40
+ readonly size: 24;
41
+ readonly lineHeight: 28;
42
+ readonly fontFamily: "Helvetica-Now-Text";
43
+ };
30
44
  readonly lg: {
31
45
  readonly size: 20;
32
46
  readonly lineHeight: 28;
47
+ readonly fontFamily: "Helvetica-Now-Text";
33
48
  };
34
49
  readonly default: {
35
50
  readonly size: 16;
36
51
  readonly lineHeight: 22;
52
+ readonly fontFamily: "Helvetica-Now-Text";
37
53
  };
38
54
  readonly sm: {
39
55
  readonly size: 14;
40
56
  readonly lineHeight: 20;
57
+ readonly fontFamily: "Helvetica-Now-Text";
41
58
  };
42
59
  readonly xs: {
43
60
  readonly size: 12;
44
61
  readonly lineHeight: 18;
62
+ readonly fontFamily: "Helvetica-Now-Text";
45
63
  };
46
64
  };
47
65
 
48
- export { colors, fontFamilies, fontSizes };
66
+ export { colors, fonts };
package/dist/index.js CHANGED
@@ -21,8 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var core_exports = {};
22
22
  __export(core_exports, {
23
23
  colors: () => colors,
24
- fontFamilies: () => fontFamilies,
25
- fontSizes: () => fontSizes
24
+ fonts: () => fonts
26
25
  });
27
26
  module.exports = __toCommonJS(core_exports);
28
27
 
@@ -41,43 +40,60 @@ var gray = {
41
40
  950: "#0c0a09"
42
41
  };
43
42
  var green = {
44
- 100: "#EEECE8",
45
- 200: "#D1D5C3",
46
- 300: "#A3B18A",
47
- 400: "#7E9971",
43
+ 100: "#eeece8",
44
+ 200: "#d1d5c3",
45
+ 300: "#a3b18a",
46
+ 400: "#7e9971",
48
47
  500: "#588157",
49
- 600: "#3A5A40",
50
- 700: "#344E41",
51
- 800: "#23342B",
52
- 900: "#0B120F",
53
- 950: "#090F0C"
48
+ 600: "#3a5a40",
49
+ 700: "#344e41",
50
+ 800: "#23342b",
51
+ 900: "#0b120f",
52
+ 950: "#090f0c"
54
53
  };
55
54
  var colors = {
56
55
  neutral: gray,
57
56
  primary: green
58
57
  };
59
- var fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
60
- var fontSizes = {
58
+ var fonts = {
59
+ "3xl": {
60
+ size: 40,
61
+ lineHeight: 48,
62
+ fontFamily: "Helvetica-Now-Display"
63
+ },
64
+ "2xl": {
65
+ size: 28,
66
+ lineHeight: 36,
67
+ fontFamily: "Helvetica-Now-Display"
68
+ },
69
+ xl: {
70
+ size: 24,
71
+ lineHeight: 28,
72
+ fontFamily: "Helvetica-Now-Text"
73
+ },
61
74
  lg: {
62
75
  size: 20,
63
- lineHeight: 28
76
+ lineHeight: 28,
77
+ fontFamily: "Helvetica-Now-Text"
64
78
  },
65
79
  default: {
66
80
  size: 16,
67
- lineHeight: 22
81
+ lineHeight: 22,
82
+ fontFamily: "Helvetica-Now-Text"
68
83
  },
69
84
  sm: {
70
85
  size: 14,
71
- lineHeight: 20
86
+ lineHeight: 20,
87
+ fontFamily: "Helvetica-Now-Text"
72
88
  },
73
89
  xs: {
74
90
  size: 12,
75
- lineHeight: 18
91
+ lineHeight: 18,
92
+ fontFamily: "Helvetica-Now-Text"
76
93
  }
77
94
  };
78
95
  // Annotate the CommonJS export names for ESM import in node:
79
96
  0 && (module.exports = {
80
97
  colors,
81
- fontFamilies,
82
- fontSizes
98
+ fonts
83
99
  });
package/dist/index.mjs CHANGED
@@ -13,42 +13,59 @@ var gray = {
13
13
  950: "#0c0a09"
14
14
  };
15
15
  var green = {
16
- 100: "#EEECE8",
17
- 200: "#D1D5C3",
18
- 300: "#A3B18A",
19
- 400: "#7E9971",
16
+ 100: "#eeece8",
17
+ 200: "#d1d5c3",
18
+ 300: "#a3b18a",
19
+ 400: "#7e9971",
20
20
  500: "#588157",
21
- 600: "#3A5A40",
22
- 700: "#344E41",
23
- 800: "#23342B",
24
- 900: "#0B120F",
25
- 950: "#090F0C"
21
+ 600: "#3a5a40",
22
+ 700: "#344e41",
23
+ 800: "#23342b",
24
+ 900: "#0b120f",
25
+ 950: "#090f0c"
26
26
  };
27
27
  var colors = {
28
28
  neutral: gray,
29
29
  primary: green
30
30
  };
31
- var fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
32
- var fontSizes = {
31
+ var fonts = {
32
+ "3xl": {
33
+ size: 40,
34
+ lineHeight: 48,
35
+ fontFamily: "Helvetica-Now-Display"
36
+ },
37
+ "2xl": {
38
+ size: 28,
39
+ lineHeight: 36,
40
+ fontFamily: "Helvetica-Now-Display"
41
+ },
42
+ xl: {
43
+ size: 24,
44
+ lineHeight: 28,
45
+ fontFamily: "Helvetica-Now-Text"
46
+ },
33
47
  lg: {
34
48
  size: 20,
35
- lineHeight: 28
49
+ lineHeight: 28,
50
+ fontFamily: "Helvetica-Now-Text"
36
51
  },
37
52
  default: {
38
53
  size: 16,
39
- lineHeight: 22
54
+ lineHeight: 22,
55
+ fontFamily: "Helvetica-Now-Text"
40
56
  },
41
57
  sm: {
42
58
  size: 14,
43
- lineHeight: 20
59
+ lineHeight: 20,
60
+ fontFamily: "Helvetica-Now-Text"
44
61
  },
45
62
  xs: {
46
63
  size: 12,
47
- lineHeight: 18
64
+ lineHeight: 18,
65
+ fontFamily: "Helvetica-Now-Text"
48
66
  }
49
67
  };
50
68
  export {
51
69
  colors,
52
- fontFamilies,
53
- fontSizes
70
+ fonts
54
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Shared constants and types for Pathway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13,16 +13,16 @@ const gray = {
13
13
  }
14
14
 
15
15
  const green = {
16
- 100: '#EEECE8',
17
- 200: '#D1D5C3',
18
- 300: '#A3B18A',
19
- 400: '#7E9971',
16
+ 100: '#eeece8',
17
+ 200: '#d1d5c3',
18
+ 300: '#a3b18a',
19
+ 400: '#7e9971',
20
20
  500: '#588157',
21
- 600: '#3A5A40',
22
- 700: '#344E41',
23
- 800: '#23342B',
24
- 900: '#0B120F',
25
- 950: '#090F0C'
21
+ 600: '#3a5a40',
22
+ 700: '#344e41',
23
+ 800: '#23342b',
24
+ 900: '#0b120f',
25
+ 950: '#090f0c'
26
26
  }
27
27
 
28
28
  export const colors = {
@@ -30,23 +30,40 @@ export const colors = {
30
30
  primary: green
31
31
  } as const
32
32
 
33
- export const fontFamilies = 'Helvetica Neue, Helvetica, Arial, sans-serif'
34
-
35
- export const fontSizes = {
33
+ export const fonts = {
34
+ '3xl': {
35
+ size: 40,
36
+ lineHeight: 48,
37
+ fontFamily: 'Helvetica-Now-Display'
38
+ },
39
+ '2xl': {
40
+ size: 28,
41
+ lineHeight: 36,
42
+ fontFamily: 'Helvetica-Now-Display'
43
+ },
44
+ xl: {
45
+ size: 24,
46
+ lineHeight: 28,
47
+ fontFamily: 'Helvetica-Now-Text'
48
+ },
36
49
  lg: {
37
50
  size: 20,
38
- lineHeight: 28
51
+ lineHeight: 28,
52
+ fontFamily: 'Helvetica-Now-Text'
39
53
  },
40
54
  default: {
41
55
  size: 16,
42
- lineHeight: 22
56
+ lineHeight: 22,
57
+ fontFamily: 'Helvetica-Now-Text'
43
58
  },
44
59
  sm: {
45
60
  size: 14,
46
- lineHeight: 20
61
+ lineHeight: 20,
62
+ fontFamily: 'Helvetica-Now-Text'
47
63
  },
48
64
  xs: {
49
65
  size: 12,
50
- lineHeight: 18
66
+ lineHeight: 18,
67
+ fontFamily: 'Helvetica-Now-Text'
51
68
  }
52
69
  } as const