skillgrid 0.0.13 → 0.0.16-beta

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/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "skillgrid",
3
- "version": "0.0.13",
3
+ "version": "0.0.16-beta",
4
4
  "description": "Skillgrid Components Library",
5
- "keywords": ["react", "ui", "components"],
5
+ "keywords": [
6
+ "react",
7
+ "ui",
8
+ "components"
9
+ ],
6
10
  "author": "Skillaz Dev.",
7
11
  "license": "SEE LICENSE IN ./LICENCE.md",
8
12
  "repository": "https://gitlab.dev.skillaz.ru/frontend/skillgrid",
9
13
  "homepage": "https://skillaz.ru/",
10
14
  "type": "module",
11
- "sideEffects": [
12
- "*.css"
13
- ],
14
15
  "main": "./dist/index.cjs.js",
15
16
  "module": "./dist/index.es.js",
16
17
  "types": "./dist/index.d.ts",
@@ -25,6 +26,9 @@
25
26
  "files": [
26
27
  "dist"
27
28
  ],
29
+ "sideEffects": [
30
+ "*.css"
31
+ ],
28
32
  "scripts": {
29
33
  "dev": "vite",
30
34
  "build": "vite build",
@@ -37,7 +41,8 @@
37
41
  "lint:css:fix": "stylelint **/*.css --fix",
38
42
  "lint:fix:all": "npm run lint:fix && npm run lint:css:fix",
39
43
  "preview": "vite preview",
40
- "skillgrid": "ts-node --esm scripts/generators/index.ts",
44
+ "prepare": "husky",
45
+ "skillgrid": "tsx scripts/generators/index.ts",
41
46
  "test:generators": "vitest run scripts/generators/tests",
42
47
  "storybook": "storybook dev -p 6006",
43
48
  "build-storybook": "storybook build",
@@ -62,25 +67,27 @@
62
67
  "@storybook/test": "^8.6.12",
63
68
  "@testing-library/dom": "^10.4.0",
64
69
  "@testing-library/jest-dom": "^6.4.2",
70
+ "@types/fs-extra": "^11.0.4",
65
71
  "@types/node": "^22.15.17",
66
72
  "@types/react": "18.3.1",
67
73
  "@types/react-dom": "18.3.1",
68
74
  "@types/testing-library__jest-dom": "^6.0.0",
69
75
  "@vitejs/plugin-react": "^4.4.1",
70
- "@vitest/coverage-v8": "^1.4.0",
71
- "@vitest/ui": "^1.4.0",
76
+ "@vitest/coverage-v8": "^3.2.4",
77
+ "@vitest/ui": "^3.2.4",
72
78
  "concurrently": "^8.2.2",
73
79
  "cosmiconfig": "^9.0.0",
74
80
  "deepmerge": "^4.3.1",
75
81
  "eslint": "^9.25.0",
82
+ "eslint-config-prettier": "^10.1.5",
83
+ "eslint-import-resolver-typescript": "^4.4.4",
84
+ "eslint-plugin-import": "^2.32.0",
76
85
  "eslint-plugin-react": "^7.37.5",
77
86
  "eslint-plugin-react-hooks": "^5.2.0",
78
87
  "eslint-plugin-react-refresh": "^0.4.19",
79
88
  "eslint-plugin-storybook": "^0.12.0",
80
- "eslint-config-prettier": "^10.1.5",
81
- "eslint-plugin-import": "^2.32.0",
82
89
  "globals": "^16.0.0",
83
- "husky": "^9.1.7",
90
+ "husky": "^9.1.0",
84
91
  "identity-obj-proxy": "^3.0.0",
85
92
  "jsdom": "^24.0.0",
86
93
  "react": "18.3.1",
@@ -90,12 +97,13 @@
90
97
  "stylelint-config-clean-order": "^5.2.0",
91
98
  "stylelint-config-standard": "^34.0.0",
92
99
  "stylelint-order": "^6.0.3",
93
- "ts-node": "^10.9.2",
100
+ "tsx": "^4.20.3",
94
101
  "typescript": "~5.8.3",
95
102
  "typescript-eslint": "^8.30.1",
103
+ "typescript-plugin-css-modules": "^5.2.0",
96
104
  "vite": "^6.3.5",
97
105
  "vite-plugin-dts": "^4.5.3",
98
- "vite-plugin-lib-inject-css": "^2.2.2",
106
+ "vite-plugin-lib-inject-css": "2.2.2",
99
107
  "vitepress": "^1.0.0-rc.44",
100
108
  "vitest": "^3.2.4"
101
109
  },
package/dist/App.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare function App(): import("react").JSX.Element;
2
- export default App;
@@ -1,295 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const pageStyles: {
3
- fontFamily: string;
4
- color: string;
5
- lineHeight: number;
6
- padding: string;
7
- maxWidth: string;
8
- margin: string;
9
- };
10
- export declare const headerStyles: {
11
- display: string;
12
- flexDirection: "column";
13
- alignItems: string;
14
- padding: string;
15
- gap: string;
16
- width: string;
17
- marginBottom: string;
18
- };
19
- export declare const headerTitleContainerStyles: {
20
- display: string;
21
- flexDirection: "column";
22
- alignItems: string;
23
- padding: string;
24
- gap: string;
25
- width: string;
26
- };
27
- export declare const headerTitleStyles: {
28
- width: string;
29
- fontFamily: string;
30
- fontStyle: string;
31
- fontWeight: number;
32
- fontSize: string;
33
- lineHeight: string;
34
- letterSpacing: string;
35
- color: string;
36
- };
37
- export declare const headerSubtitleStyles: {
38
- width: string;
39
- maxWidth: string;
40
- fontFamily: string;
41
- fontStyle: string;
42
- fontWeight: number;
43
- fontSize: string;
44
- lineHeight: string;
45
- color: string;
46
- };
47
- export declare const headerDescriptionStyles: {
48
- width: string;
49
- maxWidth: string;
50
- fontFamily: string;
51
- fontStyle: string;
52
- fontWeight: number;
53
- fontSize: string;
54
- lineHeight: string;
55
- letterSpacing: string;
56
- color: string;
57
- };
58
- export declare const sectionStyles: {
59
- marginBottom: string;
60
- padding: string;
61
- };
62
- export declare const sectionTitleStyles: {
63
- width: string;
64
- fontFamily: string;
65
- fontStyle: string;
66
- fontWeight: number;
67
- fontSize: string;
68
- lineHeight: string;
69
- color: string;
70
- marginBottom: string;
71
- };
72
- export declare const subSectionTitleStyles: {
73
- fontFamily: string;
74
- fontSize: string;
75
- fontWeight: number;
76
- lineHeight: string;
77
- marginBottom: string;
78
- marginTop: string;
79
- color: string;
80
- };
81
- export declare const paragraphStyles: {
82
- fontFamily: string;
83
- fontSize: string;
84
- lineHeight: string;
85
- color: string;
86
- marginBottom: string;
87
- };
88
- export declare const listStyles: {
89
- marginBottom: string;
90
- paddingLeft: string;
91
- };
92
- export declare const listItemStyles: {
93
- fontFamily: string;
94
- fontSize: string;
95
- lineHeight: string;
96
- color: string;
97
- marginBottom: string;
98
- };
99
- export declare const dividerStyles: {
100
- borderBottom: string;
101
- margin: string;
102
- width: string;
103
- };
104
- export declare const codeBlockStyles: {
105
- fontFamily: string;
106
- fontSize: string;
107
- lineHeight: string;
108
- backgroundColor: string;
109
- padding: string;
110
- borderRadius: string;
111
- marginBottom: string;
112
- overflow: string;
113
- width: string;
114
- color: string;
115
- };
116
- export declare const gridStyles: {
117
- display: string;
118
- gridTemplateColumns: string;
119
- gap: string;
120
- width: string;
121
- marginBottom: string;
122
- };
123
- export declare const rowStyles: {
124
- display: string;
125
- flexWrap: "wrap";
126
- gap: string;
127
- marginBottom: string;
128
- };
129
- export declare const variantContainerStyles: {
130
- boxSizing: "border-box";
131
- display: string;
132
- flexDirection: "column";
133
- alignItems: string;
134
- padding: string;
135
- width: string;
136
- height: string;
137
- background: string;
138
- border: string;
139
- boxShadow: string;
140
- borderRadius: string;
141
- marginBottom: string;
142
- };
143
- export declare const darkVariantContainerStyles: {
144
- background: string;
145
- border: string;
146
- boxSizing: "border-box";
147
- display: string;
148
- flexDirection: "column";
149
- alignItems: string;
150
- padding: string;
151
- width: string;
152
- height: string;
153
- boxShadow: string;
154
- borderRadius: string;
155
- marginBottom: string;
156
- };
157
- export declare const variantDemoStyles: {
158
- boxSizing: "border-box";
159
- display: string;
160
- flexDirection: "column";
161
- justifyContent: string;
162
- alignItems: string;
163
- padding: string;
164
- gap: string;
165
- width: string;
166
- height: string;
167
- borderBottom: string;
168
- };
169
- export declare const darkVariantDemoStyles: {
170
- borderBottom: string;
171
- boxSizing: "border-box";
172
- display: string;
173
- flexDirection: "column";
174
- justifyContent: string;
175
- alignItems: string;
176
- padding: string;
177
- gap: string;
178
- width: string;
179
- height: string;
180
- };
181
- export declare const variantInfoStyles: {
182
- display: string;
183
- flexDirection: "column";
184
- alignItems: string;
185
- padding: string;
186
- gap: string;
187
- width: string;
188
- height: string;
189
- };
190
- export declare const variantTitleStyles: {
191
- width: string;
192
- fontFamily: string;
193
- fontStyle: string;
194
- fontWeight: string;
195
- fontSize: string;
196
- lineHeight: string;
197
- color: string;
198
- };
199
- export declare const darkVariantTitleStyles: {
200
- color: string;
201
- width: string;
202
- fontFamily: string;
203
- fontStyle: string;
204
- fontWeight: string;
205
- fontSize: string;
206
- lineHeight: string;
207
- };
208
- export declare const variantDescriptionStyles: {
209
- width: string;
210
- fontFamily: string;
211
- fontStyle: string;
212
- fontWeight: string;
213
- fontSize: string;
214
- lineHeight: string;
215
- letterSpacing: string;
216
- color: string;
217
- };
218
- export declare const darkVariantDescriptionStyles: {
219
- color: string;
220
- width: string;
221
- fontFamily: string;
222
- fontStyle: string;
223
- fontWeight: string;
224
- fontSize: string;
225
- lineHeight: string;
226
- letterSpacing: string;
227
- };
228
- export declare const tableStyles: {
229
- width: string;
230
- borderCollapse: "collapse";
231
- marginBottom: string;
232
- fontSize: string;
233
- border: string;
234
- borderRadius: string;
235
- overflow: string;
236
- };
237
- export declare const tableCellStyles: {
238
- padding: string;
239
- textAlign: "left";
240
- borderBottom: string;
241
- color: string;
242
- fontSize: string;
243
- lineHeight: string;
244
- fontFamily: string;
245
- };
246
- export declare const tableHeaderStyles: {
247
- fontWeight: string;
248
- background: string;
249
- color: string;
250
- padding: string;
251
- textAlign: "left";
252
- borderBottom: string;
253
- fontSize: string;
254
- lineHeight: string;
255
- fontFamily: string;
256
- };
257
- export declare const Header: ({ title, subtitle, description, }: {
258
- title: string;
259
- subtitle?: string;
260
- description?: string;
261
- }) => React.JSX.Element;
262
- export declare const Section: ({ title, children }: {
263
- title: string;
264
- children: React.ReactNode;
265
- }) => React.JSX.Element;
266
- export declare const SubSection: ({ title, children }: {
267
- title: string;
268
- children: React.ReactNode;
269
- }) => React.JSX.Element;
270
- export declare const Paragraph: ({ children }: {
271
- children: React.ReactNode;
272
- }) => React.JSX.Element;
273
- export declare const List: ({ items }: {
274
- items: React.ReactNode[];
275
- }) => React.JSX.Element;
276
- export declare const Divider: () => React.JSX.Element;
277
- export declare const CodeBlock: ({ content }: {
278
- content: string;
279
- }) => React.JSX.Element;
280
- export declare const Grid: ({ children }: {
281
- children: React.ReactNode;
282
- }) => React.JSX.Element;
283
- export declare const Row: ({ children }: {
284
- children: React.ReactNode;
285
- }) => React.JSX.Element;
286
- export declare const Variant: ({ title, paramText, dark, children, }: {
287
- title: string;
288
- paramText?: string;
289
- dark?: boolean;
290
- children: React.ReactNode;
291
- }) => React.JSX.Element;
292
- export declare const Table: ({ headers, rows }: {
293
- headers: string[];
294
- rows: React.ReactNode[][];
295
- }) => React.JSX.Element;
package/dist/main.d.ts DELETED
File without changes
@@ -1,5 +0,0 @@
1
- import { TestingLibraryMatchers } from '@testing-library/jest-dom/matchers';
2
- declare module 'vitest' {
3
- interface Assertion<T> extends TestingLibraryMatchers<T, void> {
4
- }
5
- }