@pathway-io/core 1.0.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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ Shared constants and types for Pathway
2
+
3
+ :exclamation: For use as an npm package only
@@ -0,0 +1,21 @@
1
+ declare const fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
2
+ declare const fontSizes: {
3
+ readonly lg: {
4
+ readonly size: 20;
5
+ readonly lineHeight: 28;
6
+ };
7
+ readonly default: {
8
+ readonly size: 16;
9
+ readonly lineHeight: 22;
10
+ };
11
+ readonly sm: {
12
+ readonly size: 14;
13
+ readonly lineHeight: 20;
14
+ };
15
+ readonly xs: {
16
+ readonly size: 12;
17
+ readonly lineHeight: 18;
18
+ };
19
+ };
20
+
21
+ export { fontFamilies, fontSizes };
@@ -0,0 +1,21 @@
1
+ declare const fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
2
+ declare const fontSizes: {
3
+ readonly lg: {
4
+ readonly size: 20;
5
+ readonly lineHeight: 28;
6
+ };
7
+ readonly default: {
8
+ readonly size: 16;
9
+ readonly lineHeight: 22;
10
+ };
11
+ readonly sm: {
12
+ readonly size: 14;
13
+ readonly lineHeight: 20;
14
+ };
15
+ readonly xs: {
16
+ readonly size: 12;
17
+ readonly lineHeight: 18;
18
+ };
19
+ };
20
+
21
+ export { fontFamilies, fontSizes };
package/dist/index.js ADDED
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var core_exports = {};
22
+ __export(core_exports, {
23
+ fontFamilies: () => fontFamilies,
24
+ fontSizes: () => fontSizes
25
+ });
26
+ module.exports = __toCommonJS(core_exports);
27
+
28
+ // src/styles/index.ts
29
+ var fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
30
+ var fontSizes = {
31
+ lg: {
32
+ size: 20,
33
+ lineHeight: 28
34
+ },
35
+ default: {
36
+ size: 16,
37
+ lineHeight: 22
38
+ },
39
+ sm: {
40
+ size: 14,
41
+ lineHeight: 20
42
+ },
43
+ xs: {
44
+ size: 12,
45
+ lineHeight: 18
46
+ }
47
+ };
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ fontFamilies,
51
+ fontSizes
52
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,24 @@
1
+ // src/styles/index.ts
2
+ var fontFamilies = "Helvetica Neue, Helvetica, Arial, sans-serif";
3
+ var fontSizes = {
4
+ lg: {
5
+ size: 20,
6
+ lineHeight: 28
7
+ },
8
+ default: {
9
+ size: 16,
10
+ lineHeight: 22
11
+ },
12
+ sm: {
13
+ size: 14,
14
+ lineHeight: 20
15
+ },
16
+ xs: {
17
+ size: 12,
18
+ lineHeight: 18
19
+ }
20
+ };
21
+ export {
22
+ fontFamilies,
23
+ fontSizes
24
+ };
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './src'
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@pathway-io/core",
3
+ "version": "1.0.0",
4
+ "description": "Shared constants and types for Pathway",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "private": false,
9
+ "scripts": {
10
+ "build": "tsup index.ts --format cjs,esm --dts",
11
+ "release": "npm run build && npm publish --access public",
12
+ "ts:check": "tsc"
13
+ },
14
+ "keywords": [],
15
+ "author": "Rob Yedlin",
16
+ "license": "MIT",
17
+ "devDependencies": {
18
+ "date-fns": "^3.6.0",
19
+ "tsup": "^8.0.1",
20
+ "typescript": "^5.3.3"
21
+ }
22
+ }
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './styles'
2
+ export * from './lib'
3
+ export * from './types'
File without changes
@@ -0,0 +1,52 @@
1
+ const gray = {
2
+ 50: '#fafaf9',
3
+ 100: '#f5f5f4',
4
+ 200: '#e7e5e4',
5
+ 300: '#d6d3d1',
6
+ 400: '#a8a29e',
7
+ 500: '#78716c',
8
+ 600: '#57534e',
9
+ 700: '#44403c',
10
+ 800: '#292524',
11
+ 900: '#1c1917',
12
+ 950: '#0c0a09'
13
+ }
14
+
15
+ const 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
+
28
+ export default {
29
+ neutral: gray,
30
+ primary: green
31
+ } as const
32
+
33
+ export const fontFamilies = 'Helvetica Neue, Helvetica, Arial, sans-serif'
34
+
35
+ export const fontSizes = {
36
+ lg: {
37
+ size: 20,
38
+ lineHeight: 28
39
+ },
40
+ default: {
41
+ size: 16,
42
+ lineHeight: 22
43
+ },
44
+ sm: {
45
+ size: 14,
46
+ lineHeight: 20
47
+ },
48
+ xs: {
49
+ size: 12,
50
+ lineHeight: 18
51
+ }
52
+ } as const
File without changes
package/tsconfig.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Base Options: */
4
+ "esModuleInterop": true,
5
+ "skipLibCheck": true,
6
+ "target": "es2022",
7
+ "verbatimModuleSyntax": true,
8
+ "allowJs": true,
9
+ "resolveJsonModule": true,
10
+ "moduleDetection": "force",
11
+ /* Strictness */
12
+ "strict": true,
13
+ "noUncheckedIndexedAccess": true,
14
+ /* If NOT transpiling with TypeScript: */
15
+ "moduleResolution": "Bundler",
16
+ "module": "ESNext",
17
+ "noEmit": true,
18
+ /* If your code runs in the DOM: */
19
+ "lib": ["es2022", "dom", "dom.iterable"],
20
+ }
21
+ }