@shapesos/clay 0.1.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/LICENSE +21 -0
- package/README.md +170 -0
- package/dist/chat.cjs +1117 -0
- package/dist/chat.cjs.map +1 -0
- package/dist/chat.d.cts +46 -0
- package/dist/chat.d.ts +46 -0
- package/dist/chat.js +11 -0
- package/dist/chat.js.map +1 -0
- package/dist/chunk-2GFOESHR.js +613 -0
- package/dist/chunk-2GFOESHR.js.map +1 -0
- package/dist/chunk-5WRI5ZAA.js +31 -0
- package/dist/chunk-5WRI5ZAA.js.map +1 -0
- package/dist/chunk-6HNZQ2BF.js +91 -0
- package/dist/chunk-6HNZQ2BF.js.map +1 -0
- package/dist/chunk-7AJSQJQ5.js +1 -0
- package/dist/chunk-7AJSQJQ5.js.map +1 -0
- package/dist/chunk-A6DKIFWS.js +292 -0
- package/dist/chunk-A6DKIFWS.js.map +1 -0
- package/dist/chunk-C77QMQNT.js +1 -0
- package/dist/chunk-C77QMQNT.js.map +1 -0
- package/dist/chunk-P7NISN4V.js +115 -0
- package/dist/chunk-P7NISN4V.js.map +1 -0
- package/dist/chunk-XY2OM47L.js +16511 -0
- package/dist/chunk-XY2OM47L.js.map +1 -0
- package/dist/icon.cjs +237 -0
- package/dist/icon.cjs.map +1 -0
- package/dist/icon.d.cts +27 -0
- package/dist/icon.d.ts +27 -0
- package/dist/icon.js +12 -0
- package/dist/icon.js.map +1 -0
- package/dist/index.cjs +17634 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/lottie.cjs +16545 -0
- package/dist/lottie.cjs.map +1 -0
- package/dist/lottie.d.cts +38 -0
- package/dist/lottie.d.ts +38 -0
- package/dist/lottie.js +8 -0
- package/dist/lottie.js.map +1 -0
- package/dist/tokens.cjs +410 -0
- package/dist/tokens.cjs.map +1 -0
- package/dist/tokens.d.cts +121 -0
- package/dist/tokens.d.ts +121 -0
- package/dist/tokens.js +19 -0
- package/dist/tokens.js.map +1 -0
- package/package.json +110 -0
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
declare const colors: {
|
|
2
|
+
readonly white: "#FFFFFF";
|
|
3
|
+
readonly "white-alpha-85": "rgba(255, 255, 255, 0.85)";
|
|
4
|
+
readonly "brown-10": "#FAF9F8";
|
|
5
|
+
readonly "brown-20": "#F5F3F0";
|
|
6
|
+
readonly "brown-30": "#EEEBE5";
|
|
7
|
+
readonly "brown-40": "#E6E2DA";
|
|
8
|
+
readonly "brown-50": "#CFCBC4";
|
|
9
|
+
readonly "brown-60": "#A19E99";
|
|
10
|
+
readonly "brown-70": "#73716D";
|
|
11
|
+
readonly "brown-80": "#5C5A57";
|
|
12
|
+
readonly "brown-90": "#2E2D2C";
|
|
13
|
+
readonly "brown-100": "#171716";
|
|
14
|
+
readonly "brown-alpha-12": "rgba(23, 23, 22, 0.12)";
|
|
15
|
+
readonly "brown-alpha-20": "rgba(23, 23, 22, 0.20)";
|
|
16
|
+
readonly "brown-alpha-55": "rgba(23, 23, 22, 0.55)";
|
|
17
|
+
readonly "brown-alpha-70": "rgba(23, 23, 22, 0.70)";
|
|
18
|
+
readonly "brown-alpha-80": "rgba(23, 23, 22, 0.80)";
|
|
19
|
+
readonly "brown-alpha-90": "rgba(23, 23, 22, 0.90)";
|
|
20
|
+
readonly "fuchsia-50": "#FAF5FF";
|
|
21
|
+
readonly "fuchsia-300": "#F0ABFC";
|
|
22
|
+
readonly "fuchsia-500": "#D946EF";
|
|
23
|
+
readonly "fuchsia-600": "#C026D3";
|
|
24
|
+
readonly "fuchsia-800": "#86198F";
|
|
25
|
+
readonly "pink-50": "#FDF2F8";
|
|
26
|
+
readonly "pink-400": "#F472B6";
|
|
27
|
+
readonly "pink-600": "#DB2777";
|
|
28
|
+
readonly "pink-800": "#9D174D";
|
|
29
|
+
readonly "violet-50": "#F5F3FF";
|
|
30
|
+
readonly "violet-400": "#A78BFA";
|
|
31
|
+
readonly "violet-600": "#7C3AED";
|
|
32
|
+
readonly "violet-800": "#5B21B6";
|
|
33
|
+
readonly "indigo-50": "#EEF2FF";
|
|
34
|
+
readonly "indigo-400": "#818CF8";
|
|
35
|
+
readonly "indigo-500": "#6366F1";
|
|
36
|
+
readonly "indigo-600": "#4F46E5";
|
|
37
|
+
readonly "indigo-800": "#3730A3";
|
|
38
|
+
readonly "cyan-50": "#E7FEFF";
|
|
39
|
+
readonly "cyan-300": "#67E8F9";
|
|
40
|
+
readonly "cyan-600": "#0891B2";
|
|
41
|
+
readonly "cyan-900": "#164E63";
|
|
42
|
+
readonly "teal-50": "#EBFDF9";
|
|
43
|
+
readonly "teal-300": "#5EEAD4";
|
|
44
|
+
readonly "teal-600": "#0D9488";
|
|
45
|
+
readonly "rose-400": "#FB7185";
|
|
46
|
+
readonly "purple-400": "#C084FC";
|
|
47
|
+
readonly "blue-50": "#EFF6FF";
|
|
48
|
+
readonly "blue-100": "#DBEAFE";
|
|
49
|
+
readonly "blue-300": "#93C5FD";
|
|
50
|
+
readonly "blue-400": "#60A5FA";
|
|
51
|
+
readonly "blue-600": "#2563EB";
|
|
52
|
+
readonly "blue-800": "#1E40AF";
|
|
53
|
+
readonly "sky-300": "#7DD3FC";
|
|
54
|
+
readonly "green-50": "#ECF9F0";
|
|
55
|
+
readonly "green-100": "#D4F1D9";
|
|
56
|
+
readonly "green-400": "#3DC269";
|
|
57
|
+
readonly "green-700": "#277C43";
|
|
58
|
+
readonly "green-800": "#1C5930";
|
|
59
|
+
readonly "orange-50": "#FFF7ED";
|
|
60
|
+
readonly "orange-100": "#FFEDD5";
|
|
61
|
+
readonly "orange-200": "#FED7AA";
|
|
62
|
+
readonly "orange-500": "#F97316";
|
|
63
|
+
readonly "orange-600": "#EA580C";
|
|
64
|
+
readonly "red-50": "#FEF2F2";
|
|
65
|
+
readonly "red-100": "#FEE2E2";
|
|
66
|
+
readonly "red-200": "#FECACA";
|
|
67
|
+
readonly "red-400": "#F7776C";
|
|
68
|
+
readonly "red-500": "#EF4444";
|
|
69
|
+
readonly "red-600": "#DC2626";
|
|
70
|
+
};
|
|
71
|
+
type ColorToken = keyof typeof colors;
|
|
72
|
+
|
|
73
|
+
declare const fontFamilies: {
|
|
74
|
+
readonly GEIST: "Geist";
|
|
75
|
+
readonly CRIMSON_PRO: "Crimson Pro";
|
|
76
|
+
};
|
|
77
|
+
declare const typographyTypes: {
|
|
78
|
+
readonly GEIST_LABEL_CAPTION_REGULAR: "GEIST_LABEL_CAPTION_REGULAR";
|
|
79
|
+
readonly GEIST_LABEL_CAPTION_MEDIUM: "GEIST_LABEL_CAPTION_MEDIUM";
|
|
80
|
+
readonly GEIST_LABEL_CAPTION_SEMI_BOLD: "GEIST_LABEL_CAPTION_SEMI_BOLD";
|
|
81
|
+
readonly GEIST_BODY_XS_REGULAR: "GEIST_BODY_XS_REGULAR";
|
|
82
|
+
readonly GEIST_BODY_XS_MEDIUM: "GEIST_BODY_XS_MEDIUM";
|
|
83
|
+
readonly GEIST_BODY_XS_BOLD: "GEIST_BODY_XS_BOLD";
|
|
84
|
+
readonly GEIST_BODY_S_REGULAR: "GEIST_BODY_S_REGULAR";
|
|
85
|
+
readonly GEIST_BODY_S_MEDIUM: "GEIST_BODY_S_MEDIUM";
|
|
86
|
+
readonly GEIST_BODY_S_SEMI_BOLD: "GEIST_BODY_S_SEMI_BOLD";
|
|
87
|
+
readonly GEIST_BODY_M_LIGHT: "GEIST_BODY_M_LIGHT";
|
|
88
|
+
readonly GEIST_BODY_M_REGULAR: "GEIST_BODY_M_REGULAR";
|
|
89
|
+
readonly GEIST_BODY_M_MEDIUM: "GEIST_BODY_M_MEDIUM";
|
|
90
|
+
readonly GEIST_BODY_M_SEMI_BOLD: "GEIST_BODY_M_SEMI_BOLD";
|
|
91
|
+
readonly GEIST_BODY_L_REGULAR: "GEIST_BODY_L_REGULAR";
|
|
92
|
+
readonly GEIST_BODY_L_MEDIUM: "GEIST_BODY_L_MEDIUM";
|
|
93
|
+
readonly GEIST_BODY_L_SEMI_BOLD: "GEIST_BODY_L_SEMI_BOLD";
|
|
94
|
+
readonly GEIST_BODY_L_BOLD: "GEIST_BODY_L_BOLD";
|
|
95
|
+
readonly GEIST_HEADING_S_REGULAR: "GEIST_HEADING_S_REGULAR";
|
|
96
|
+
readonly GEIST_HEADING_S_MEDIUM: "GEIST_HEADING_S_MEDIUM";
|
|
97
|
+
readonly GEIST_HEADING_S_BOLD: "GEIST_HEADING_S_BOLD";
|
|
98
|
+
readonly GEIST_HEADING_M_BOLD: "GEIST_HEADING_M_BOLD";
|
|
99
|
+
readonly GEIST_HEADING_L_REGULAR: "GEIST_HEADING_L_REGULAR";
|
|
100
|
+
readonly GEIST_HEADING_L_MEDIUM: "GEIST_HEADING_L_MEDIUM";
|
|
101
|
+
readonly GEIST_HEADING_L_SEMI_BOLD: "GEIST_HEADING_L_SEMI_BOLD";
|
|
102
|
+
readonly GEIST_HEADING_L_BOLD: "GEIST_HEADING_L_BOLD";
|
|
103
|
+
readonly GEIST_DISPLAY_L_MEDIUM: "GEIST_DISPLAY_L_MEDIUM";
|
|
104
|
+
readonly CRIMSON_PRO_BODY_S_LIGHT: "CRIMSON_PRO_BODY_S_LIGHT";
|
|
105
|
+
readonly CRIMSON_PRO_BODY_M_LIGHT: "CRIMSON_PRO_BODY_M_LIGHT";
|
|
106
|
+
readonly CRIMSON_PRO_HEADING_M_MEDIUM: "CRIMSON_PRO_HEADING_M_MEDIUM";
|
|
107
|
+
readonly CRIMSON_PRO_DISPLAY_XL_REGULAR: "CRIMSON_PRO_DISPLAY_XL_REGULAR";
|
|
108
|
+
};
|
|
109
|
+
type TypographyType = (typeof typographyTypes)[keyof typeof typographyTypes];
|
|
110
|
+
interface TypographyStyle {
|
|
111
|
+
fontFamily: string;
|
|
112
|
+
fontSize: number;
|
|
113
|
+
fontWeight: number;
|
|
114
|
+
lineHeight: number;
|
|
115
|
+
letterSpacing?: number;
|
|
116
|
+
fontStyle?: string;
|
|
117
|
+
}
|
|
118
|
+
declare const typographyStyles: Record<TypographyType, TypographyStyle>;
|
|
119
|
+
declare function typographyMixin(type: TypographyType): string;
|
|
120
|
+
|
|
121
|
+
export { type ColorToken, type TypographyStyle, type TypographyType, colors, fontFamilies, typographyMixin, typographyStyles, typographyTypes };
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "./chunk-C77QMQNT.js";
|
|
2
|
+
import {
|
|
3
|
+
fontFamilies,
|
|
4
|
+
typographyMixin,
|
|
5
|
+
typographyStyles,
|
|
6
|
+
typographyTypes
|
|
7
|
+
} from "./chunk-A6DKIFWS.js";
|
|
8
|
+
import {
|
|
9
|
+
colors
|
|
10
|
+
} from "./chunk-6HNZQ2BF.js";
|
|
11
|
+
import "./chunk-5WRI5ZAA.js";
|
|
12
|
+
export {
|
|
13
|
+
colors,
|
|
14
|
+
fontFamilies,
|
|
15
|
+
typographyMixin,
|
|
16
|
+
typographyStyles,
|
|
17
|
+
typographyTypes
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shapesos/clay",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "./dist/index.cjs",
|
|
5
|
+
"module": "./dist/index.js",
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@eslint/js": "^10.0.1",
|
|
8
|
+
"@playwright/test": "^1.58.2",
|
|
9
|
+
"@storybook/react": "^10.2.13",
|
|
10
|
+
"@storybook/react-vite": "^10.2.13",
|
|
11
|
+
"@tabler/icons-react": "^3.37.1",
|
|
12
|
+
"@testing-library/dom": "^10.4.1",
|
|
13
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
14
|
+
"@testing-library/react": "^16.3.2",
|
|
15
|
+
"@testing-library/user-event": "^14.6.1",
|
|
16
|
+
"@types/node": "^25.3.2",
|
|
17
|
+
"@types/react": "^19.2.14",
|
|
18
|
+
"@types/react-dom": "^19.2.3",
|
|
19
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
20
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
21
|
+
"eslint": "^10.0.2",
|
|
22
|
+
"eslint-config-prettier": "^10.1.8",
|
|
23
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
24
|
+
"jsdom": "^28.1.0",
|
|
25
|
+
"lefthook": "^2.1.1",
|
|
26
|
+
"react": "^19.2.4",
|
|
27
|
+
"react-dom": "^19.2.4",
|
|
28
|
+
"storybook": "^10.2.13",
|
|
29
|
+
"styled-components": "^6.3.11",
|
|
30
|
+
"tsup": "~8.5.1",
|
|
31
|
+
"typescript": "~5.9.3",
|
|
32
|
+
"typescript-eslint": "^8.56.1",
|
|
33
|
+
"vite": "^7.3.1",
|
|
34
|
+
"vitest": "~4.0.18"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": "^18 || ^19",
|
|
38
|
+
"react-dom": "^18 || ^19",
|
|
39
|
+
"styled-components": "^5 || ^6"
|
|
40
|
+
},
|
|
41
|
+
"exports": {
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./dist/index.d.ts",
|
|
44
|
+
"import": "./dist/index.js",
|
|
45
|
+
"require": "./dist/index.cjs"
|
|
46
|
+
},
|
|
47
|
+
"./tokens": {
|
|
48
|
+
"types": "./dist/tokens.d.ts",
|
|
49
|
+
"import": "./dist/tokens.js",
|
|
50
|
+
"require": "./dist/tokens.cjs"
|
|
51
|
+
},
|
|
52
|
+
"./chat": {
|
|
53
|
+
"types": "./dist/chat.d.ts",
|
|
54
|
+
"import": "./dist/chat.js",
|
|
55
|
+
"require": "./dist/chat.cjs"
|
|
56
|
+
},
|
|
57
|
+
"./icon": {
|
|
58
|
+
"types": "./dist/icon.d.ts",
|
|
59
|
+
"import": "./dist/icon.js",
|
|
60
|
+
"require": "./dist/icon.cjs"
|
|
61
|
+
},
|
|
62
|
+
"./lottie": {
|
|
63
|
+
"types": "./dist/lottie.d.ts",
|
|
64
|
+
"import": "./dist/lottie.js",
|
|
65
|
+
"require": "./dist/lottie.cjs"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"description": "Shapes.co design system — tokens and theming",
|
|
69
|
+
"files": [
|
|
70
|
+
"dist"
|
|
71
|
+
],
|
|
72
|
+
"keywords": [
|
|
73
|
+
"design-system",
|
|
74
|
+
"tokens",
|
|
75
|
+
"colors",
|
|
76
|
+
"typography",
|
|
77
|
+
"react",
|
|
78
|
+
"shapes"
|
|
79
|
+
],
|
|
80
|
+
"license": "MIT",
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "restricted",
|
|
83
|
+
"registry": "https://registry.npmjs.org/"
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"build": "tsup",
|
|
87
|
+
"dev": "tsup --watch",
|
|
88
|
+
"storybook": "storybook dev -p 6006",
|
|
89
|
+
"build-storybook": "storybook build",
|
|
90
|
+
"test": "vitest run",
|
|
91
|
+
"test:watch": "vitest",
|
|
92
|
+
"test:coverage": "vitest run --coverage",
|
|
93
|
+
"test:e2e": "playwright test",
|
|
94
|
+
"test:e2e:headed": "playwright test --headed",
|
|
95
|
+
"lint": "eslint .",
|
|
96
|
+
"lint:fix": "eslint --fix .",
|
|
97
|
+
"format": "prettier --write \"src/**/*.{ts,tsx}\" \"stories/**/*.tsx\" \".storybook/**/*.ts\"",
|
|
98
|
+
"typecheck": "tsc --noEmit",
|
|
99
|
+
"check": "eslint . && tsc --noEmit && vitest run",
|
|
100
|
+
"prepare": "lefthook install"
|
|
101
|
+
},
|
|
102
|
+
"sideEffects": false,
|
|
103
|
+
"type": "module",
|
|
104
|
+
"types": "./dist/index.d.ts",
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"lottie-react": "^2.4.1",
|
|
107
|
+
"react-markdown": "^10.1.0",
|
|
108
|
+
"remark-gfm": "^4.0.1"
|
|
109
|
+
}
|
|
110
|
+
}
|