ctc-component-library 0.0.5 → 0.0.7
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.ts +5 -5
- package/dist/index.es.js +288 -281
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -11
- package/dist/index.umd.js.map +1 -1
- package/dist/src/App.d.ts +3 -0
- package/dist/src/commons/shapes.d.ts +15 -0
- package/dist/src/commons/spacing.d.ts +15 -0
- package/dist/src/components/atoms/Button/Button.d.ts +2 -1
- package/dist/src/components/atoms/Button/Button.test.d.ts +1 -0
- package/dist/src/components/atoms/Icon/Icon.d.ts +1 -0
- package/dist/src/components/atoms/Icon/Icon.test.d.ts +1 -0
- package/dist/src/components/atoms/Typography/Typography.d.ts +10 -0
- package/dist/src/components/atoms/Typography/Typography.test.d.ts +1 -0
- package/dist/src/components/foundationOverview/ColorOverview/ColorOverview.d.ts +2 -0
- package/dist/src/components/foundationOverview/ColorOverview/ColorOverview.stories.d.ts +15 -0
- package/dist/src/components/foundationOverview/IconsOverview/IconsOverview.d.ts +3 -0
- package/dist/src/components/foundationOverview/IconsOverview/IconsOverview.stories.d.ts +15 -0
- package/dist/src/components/foundationOverview/ShapeOverview/ShapeOverview.d.ts +2 -0
- package/dist/src/components/foundationOverview/ShapeOverview/ShapeOverview.stories.d.ts +15 -0
- package/dist/src/components/foundationOverview/SpacingOverview/SpacingOverview.d.ts +2 -0
- package/dist/src/components/foundationOverview/SpacingOverview/SpacingOverview.stories.d.ts +15 -0
- package/dist/src/components/foundationOverview/TypographyOverview/TypographyOverview.d.ts +3 -0
- package/dist/src/components/foundationOverview/TypographyOverview/TypographyOverview.stories.d.ts +15 -0
- package/dist/src/components/foundationOverview/TypographyOverview/tokens.d.ts +14 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/stories/Button/Button.stories.d.ts +15 -0
- package/dist/src/stories/Typography/Typography.stories.d.ts +19 -0
- package/package.json +35 -17
- package/dist/src/vite-env.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ctc-component-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
@@ -19,6 +19,21 @@
|
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=18.19.1"
|
|
24
|
+
},
|
|
25
|
+
"husky": {
|
|
26
|
+
"hooks": {
|
|
27
|
+
"pre-commit": "lint-staged"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"lint-staged": {
|
|
31
|
+
"src/**/*.{ts,tsx}": [
|
|
32
|
+
"yarn prettier",
|
|
33
|
+
"yarn linter",
|
|
34
|
+
"git add ."
|
|
35
|
+
]
|
|
36
|
+
},
|
|
22
37
|
"scripts": {
|
|
23
38
|
"dev": "vite",
|
|
24
39
|
"build": "tsc && vite build",
|
|
@@ -28,7 +43,8 @@
|
|
|
28
43
|
"build-storybook": "storybook build",
|
|
29
44
|
"test": "vitest run",
|
|
30
45
|
"test:cov": "vitest run --coverage",
|
|
31
|
-
"prettier": "prettier \"src/**/*.{
|
|
46
|
+
"prettier": "prettier \"src/**/*.{ts,tsx}\" --write",
|
|
47
|
+
"linter": "eslint \"src/**/*.{ts,tsx}\" --fix"
|
|
32
48
|
},
|
|
33
49
|
"dependencies": {
|
|
34
50
|
"material-symbols": "^0.20.0",
|
|
@@ -37,6 +53,11 @@
|
|
|
37
53
|
"tailwindcss": "^3.2.4"
|
|
38
54
|
},
|
|
39
55
|
"devDependencies": {
|
|
56
|
+
"@babel/core": "^7.24.7",
|
|
57
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
58
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
59
|
+
"@babel/preset-env": "^7.24.7",
|
|
60
|
+
"@babel/preset-react": "^7.24.7",
|
|
40
61
|
"@chromatic-com/storybook": "^1.3.1",
|
|
41
62
|
"@storybook/addon-essentials": "^8.0.6",
|
|
42
63
|
"@storybook/addon-interactions": "^8.0.6",
|
|
@@ -51,11 +72,18 @@
|
|
|
51
72
|
"@testing-library/user-event": "^14.5.2",
|
|
52
73
|
"@types/react": "^18.0.26",
|
|
53
74
|
"@types/react-dom": "^18.0.9",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
76
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
54
77
|
"@vitejs/plugin-react": "^4.3.1",
|
|
55
78
|
"@vitejs/plugin-react-swc": "^3.0.0",
|
|
56
79
|
"@vitest/coverage-v8": "^1.6.0",
|
|
57
80
|
"autoprefixer": "^10.4.13",
|
|
58
81
|
"chromatic": "^11.3.0",
|
|
82
|
+
"eslint": "^7.32.0",
|
|
83
|
+
"eslint-plugin-import": "^2.29.1",
|
|
84
|
+
"eslint-plugin-react": "^7.34.3",
|
|
85
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
86
|
+
"eslint-plugin-unused-imports": "^3.2.0",
|
|
59
87
|
"husky": "^9.0.11",
|
|
60
88
|
"jsdom": "^24.1.0",
|
|
61
89
|
"lint-staged": "^15.2.7",
|
|
@@ -64,23 +92,13 @@
|
|
|
64
92
|
"sass": "^1.77.6",
|
|
65
93
|
"storybook": "^8.0.6",
|
|
66
94
|
"typescript": "^4.9.3",
|
|
67
|
-
"vite": "^
|
|
68
|
-
"vite-plugin-
|
|
95
|
+
"vite": "^5.3.3",
|
|
96
|
+
"vite-plugin-babel": "^1.2.0",
|
|
97
|
+
"vite-plugin-dts": "^3.9.1",
|
|
69
98
|
"vite-plugin-sass": "^0.1.0",
|
|
70
99
|
"vitest": "^1.6.0"
|
|
71
100
|
},
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
},
|
|
75
|
-
"husky": {
|
|
76
|
-
"hooks": {
|
|
77
|
-
"pre-commit": "lint-staged"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"lint-staged": {
|
|
81
|
-
"src/**/*.{js,cjs,jsx,ts,tsx}": [
|
|
82
|
-
"yarn prettier",
|
|
83
|
-
"git add ."
|
|
84
|
-
]
|
|
101
|
+
"resolutions": {
|
|
102
|
+
"jackspeak": "2.1.1"
|
|
85
103
|
}
|
|
86
104
|
}
|
package/dist/src/vite-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|