@pathway-io/core 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -1,21 +1,66 @@
1
- declare const fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
2
- declare const fontSizes: {
1
+ declare const colors: {
2
+ readonly neutral: {
3
+ 50: string;
4
+ 100: string;
5
+ 200: string;
6
+ 300: string;
7
+ 400: string;
8
+ 500: string;
9
+ 600: string;
10
+ 700: string;
11
+ 800: string;
12
+ 900: string;
13
+ 950: string;
14
+ };
15
+ readonly primary: {
16
+ 100: string;
17
+ 200: string;
18
+ 300: string;
19
+ 400: string;
20
+ 500: string;
21
+ 600: string;
22
+ 700: string;
23
+ 800: string;
24
+ 900: string;
25
+ 950: string;
26
+ };
27
+ };
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
+ };
3
44
  readonly lg: {
4
45
  readonly size: 20;
5
46
  readonly lineHeight: 28;
47
+ readonly fontFamily: "Helvetica-Now-Text";
6
48
  };
7
49
  readonly default: {
8
50
  readonly size: 16;
9
51
  readonly lineHeight: 22;
52
+ readonly fontFamily: "Helvetica-Now-Text";
10
53
  };
11
54
  readonly sm: {
12
55
  readonly size: 14;
13
56
  readonly lineHeight: 20;
57
+ readonly fontFamily: "Helvetica-Now-Text";
14
58
  };
15
59
  readonly xs: {
16
60
  readonly size: 12;
17
61
  readonly lineHeight: 18;
62
+ readonly fontFamily: "Helvetica-Now-Text";
18
63
  };
19
64
  };
20
65
 
21
- export { fontFamilies, fontSizes };
66
+ export { colors, fonts };
package/dist/index.d.ts CHANGED
@@ -1,21 +1,66 @@
1
- declare const fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
2
- declare const fontSizes: {
1
+ declare const colors: {
2
+ readonly neutral: {
3
+ 50: string;
4
+ 100: string;
5
+ 200: string;
6
+ 300: string;
7
+ 400: string;
8
+ 500: string;
9
+ 600: string;
10
+ 700: string;
11
+ 800: string;
12
+ 900: string;
13
+ 950: string;
14
+ };
15
+ readonly primary: {
16
+ 100: string;
17
+ 200: string;
18
+ 300: string;
19
+ 400: string;
20
+ 500: string;
21
+ 600: string;
22
+ 700: string;
23
+ 800: string;
24
+ 900: string;
25
+ 950: string;
26
+ };
27
+ };
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
+ };
3
44
  readonly lg: {
4
45
  readonly size: 20;
5
46
  readonly lineHeight: 28;
47
+ readonly fontFamily: "Helvetica-Now-Text";
6
48
  };
7
49
  readonly default: {
8
50
  readonly size: 16;
9
51
  readonly lineHeight: 22;
52
+ readonly fontFamily: "Helvetica-Now-Text";
10
53
  };
11
54
  readonly sm: {
12
55
  readonly size: 14;
13
56
  readonly lineHeight: 20;
57
+ readonly fontFamily: "Helvetica-Now-Text";
14
58
  };
15
59
  readonly xs: {
16
60
  readonly size: 12;
17
61
  readonly lineHeight: 18;
62
+ readonly fontFamily: "Helvetica-Now-Text";
18
63
  };
19
64
  };
20
65
 
21
- export { fontFamilies, fontSizes };
66
+ export { colors, fonts };
package/dist/index.js CHANGED
@@ -20,33 +20,80 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.ts
21
21
  var core_exports = {};
22
22
  __export(core_exports, {
23
- fontFamilies: () => fontFamilies,
24
- fontSizes: () => fontSizes
23
+ colors: () => colors,
24
+ fonts: () => fonts
25
25
  });
26
26
  module.exports = __toCommonJS(core_exports);
27
27
 
28
28
  // src/styles/index.ts
29
- var fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
30
- var fontSizes = {
29
+ var gray = {
30
+ 50: "#fafaf9",
31
+ 100: "#f5f5f4",
32
+ 200: "#e7e5e4",
33
+ 300: "#d6d3d1",
34
+ 400: "#a8a29e",
35
+ 500: "#78716c",
36
+ 600: "#57534e",
37
+ 700: "#44403c",
38
+ 800: "#292524",
39
+ 900: "#1c1917",
40
+ 950: "#0c0a09"
41
+ };
42
+ var green = {
43
+ 100: "#eeece8",
44
+ 200: "#d1d5c3",
45
+ 300: "#a3b18a",
46
+ 400: "#7e9971",
47
+ 500: "#588157",
48
+ 600: "#3a5a40",
49
+ 700: "#344e41",
50
+ 800: "#23342b",
51
+ 900: "#0b120f",
52
+ 950: "#090f0c"
53
+ };
54
+ var colors = {
55
+ neutral: gray,
56
+ primary: green
57
+ };
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
+ },
31
74
  lg: {
32
75
  size: 20,
33
- lineHeight: 28
76
+ lineHeight: 28,
77
+ fontFamily: "Helvetica-Now-Text"
34
78
  },
35
79
  default: {
36
80
  size: 16,
37
- lineHeight: 22
81
+ lineHeight: 22,
82
+ fontFamily: "Helvetica-Now-Text"
38
83
  },
39
84
  sm: {
40
85
  size: 14,
41
- lineHeight: 20
86
+ lineHeight: 20,
87
+ fontFamily: "Helvetica-Now-Text"
42
88
  },
43
89
  xs: {
44
90
  size: 12,
45
- lineHeight: 18
91
+ lineHeight: 18,
92
+ fontFamily: "Helvetica-Now-Text"
46
93
  }
47
94
  };
48
95
  // Annotate the CommonJS export names for ESM import in node:
49
96
  0 && (module.exports = {
50
- fontFamilies,
51
- fontSizes
97
+ colors,
98
+ fonts
52
99
  });
package/dist/index.mjs CHANGED
@@ -1,24 +1,71 @@
1
1
  // src/styles/index.ts
2
- var fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
3
- var fontSizes = {
2
+ var gray = {
3
+ 50: "#fafaf9",
4
+ 100: "#f5f5f4",
5
+ 200: "#e7e5e4",
6
+ 300: "#d6d3d1",
7
+ 400: "#a8a29e",
8
+ 500: "#78716c",
9
+ 600: "#57534e",
10
+ 700: "#44403c",
11
+ 800: "#292524",
12
+ 900: "#1c1917",
13
+ 950: "#0c0a09"
14
+ };
15
+ var green = {
16
+ 100: "#eeece8",
17
+ 200: "#d1d5c3",
18
+ 300: "#a3b18a",
19
+ 400: "#7e9971",
20
+ 500: "#588157",
21
+ 600: "#3a5a40",
22
+ 700: "#344e41",
23
+ 800: "#23342b",
24
+ 900: "#0b120f",
25
+ 950: "#090f0c"
26
+ };
27
+ var colors = {
28
+ neutral: gray,
29
+ primary: green
30
+ };
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
+ },
4
47
  lg: {
5
48
  size: 20,
6
- lineHeight: 28
49
+ lineHeight: 28,
50
+ fontFamily: "Helvetica-Now-Text"
7
51
  },
8
52
  default: {
9
53
  size: 16,
10
- lineHeight: 22
54
+ lineHeight: 22,
55
+ fontFamily: "Helvetica-Now-Text"
11
56
  },
12
57
  sm: {
13
58
  size: 14,
14
- lineHeight: 20
59
+ lineHeight: 20,
60
+ fontFamily: "Helvetica-Now-Text"
15
61
  },
16
62
  xs: {
17
63
  size: 12,
18
- lineHeight: 18
64
+ lineHeight: 18,
65
+ fontFamily: "Helvetica-Now-Text"
19
66
  }
20
67
  };
21
68
  export {
22
- fontFamilies,
23
- fontSizes
69
+ colors,
70
+ fonts
24
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.2",
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,40 +13,57 @@ 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
- export default {
28
+ export const colors = {
29
29
  neutral: gray,
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