skillgrid 0.0.1
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.md +129 -0
- package/README.md +211 -0
- package/dist/App.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +7 -0
- package/dist/components/Avatar/Avatar.type.d.ts +87 -0
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.d.ts +12 -0
- package/dist/components/Avatar/assets/index.d.ts +7 -0
- package/dist/components/Avatar/assets/react-svg-icons.d.ts +4 -0
- package/dist/components/Avatar/index.d.ts +5 -0
- package/dist/components/Avatar/lib/get-avatar-border-radius-by-size-and-shape.d.ts +3 -0
- package/dist/components/Avatar/lib/get-initials-color.d.ts +4 -0
- package/dist/components/Avatar/lib/get-initials-color.test.d.ts +1 -0
- package/dist/components/Avatar/lib/get-initials.d.ts +1 -0
- package/dist/components/Avatar/lib/get-initials.test.d.ts +1 -0
- package/dist/components/Avatar/lib/get-overflow-count-text.d.ts +2 -0
- package/dist/components/Avatar/lib/get-overflow-count-text.test.d.ts +1 -0
- package/dist/components/Avatar/lib/index.d.ts +4 -0
- package/dist/components/Badge/Badge.d.ts +17 -0
- package/dist/components/Badge/Badge.type.d.ts +61 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +14 -0
- package/dist/components/Button/Button.type.d.ts +105 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +13 -0
- package/dist/components/ConfigProvider/ConfigProvider.hook.d.ts +4 -0
- package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +23 -0
- package/dist/components/ConfigProvider/index.d.ts +3 -0
- package/dist/components/Image/Image.d.ts +11 -0
- package/dist/components/Image/Image.type.d.ts +36 -0
- package/dist/components/Image/assets/PlaceholderImageIcon.d.ts +9 -0
- package/dist/components/Image/index.d.ts +2 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts +14 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.type.d.ts +3 -0
- package/dist/components/LanguageSwitcher/index.d.ts +2 -0
- package/dist/components/Loader/Loader.d.ts +19 -0
- package/dist/components/Loader/Loader.type.d.ts +39 -0
- package/dist/components/Loader/index.d.ts +2 -0
- package/dist/components/Palette/Palette.constants.d.ts +13 -0
- package/dist/components/Palette/Palette.d.ts +4 -0
- package/dist/components/Palette/Palette.type.d.ts +4 -0
- package/dist/components/Palette/index.d.ts +2 -0
- package/dist/components/StoryComponents.d.ts +295 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useBackgroundColor.d.ts +20 -0
- package/dist/hooks/useCustomTranslations.d.ts +9 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.cjs10.js +1 -0
- package/dist/index.cjs11.js +1 -0
- package/dist/index.cjs12.js +1 -0
- package/dist/index.cjs13.js +1 -0
- package/dist/index.cjs14.js +1 -0
- package/dist/index.cjs15.js +1 -0
- package/dist/index.cjs16.js +1 -0
- package/dist/index.cjs17.js +1 -0
- package/dist/index.cjs18.js +1 -0
- package/dist/index.cjs19.js +1 -0
- package/dist/index.cjs2.js +1 -0
- package/dist/index.cjs20.js +1 -0
- package/dist/index.cjs21.js +1 -0
- package/dist/index.cjs22.js +1 -0
- package/dist/index.cjs23.js +1 -0
- package/dist/index.cjs24.js +1 -0
- package/dist/index.cjs25.js +1 -0
- package/dist/index.cjs26.js +1 -0
- package/dist/index.cjs27.js +1 -0
- package/dist/index.cjs28.js +1 -0
- package/dist/index.cjs29.js +1 -0
- package/dist/index.cjs3.js +1 -0
- package/dist/index.cjs30.js +1 -0
- package/dist/index.cjs31.js +1 -0
- package/dist/index.cjs32.js +1 -0
- package/dist/index.cjs33.js +1 -0
- package/dist/index.cjs34.js +1 -0
- package/dist/index.cjs35.js +9 -0
- package/dist/index.cjs36.js +22 -0
- package/dist/index.cjs37.js +5 -0
- package/dist/index.cjs38.js +1 -0
- package/dist/index.cjs39.js +1 -0
- package/dist/index.cjs4.js +1 -0
- package/dist/index.cjs40.js +1 -0
- package/dist/index.cjs41.js +1 -0
- package/dist/index.cjs42.js +1 -0
- package/dist/index.cjs43.js +1 -0
- package/dist/index.cjs44.js +1 -0
- package/dist/index.cjs45.js +1 -0
- package/dist/index.cjs5.js +1 -0
- package/dist/index.cjs6.js +1 -0
- package/dist/index.cjs7.js +1 -0
- package/dist/index.cjs8.js +1 -0
- package/dist/index.cjs9.js +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +21 -0
- package/dist/index.es10.js +4 -0
- package/dist/index.es11.js +61 -0
- package/dist/index.es12.js +82 -0
- package/dist/index.es13.js +5 -0
- package/dist/index.es14.js +32 -0
- package/dist/index.es15.js +7 -0
- package/dist/index.es16.js +5 -0
- package/dist/index.es17.js +73 -0
- package/dist/index.es18.js +48 -0
- package/dist/index.es19.js +22 -0
- package/dist/index.es2.js +8 -0
- package/dist/index.es20.js +7 -0
- package/dist/index.es21.js +11 -0
- package/dist/index.es22.js +26 -0
- package/dist/index.es23.js +7 -0
- package/dist/index.es24.js +6 -0
- package/dist/index.es25.js +12 -0
- package/dist/index.es26.js +6 -0
- package/dist/index.es27.js +4 -0
- package/dist/index.es28.js +22 -0
- package/dist/index.es29.js +42 -0
- package/dist/index.es3.js +66 -0
- package/dist/index.es30.js +17 -0
- package/dist/index.es31.js +7 -0
- package/dist/index.es32.js +14 -0
- package/dist/index.es33.js +10 -0
- package/dist/index.es34.js +4 -0
- package/dist/index.es35.js +28 -0
- package/dist/index.es36.js +604 -0
- package/dist/index.es37.js +42 -0
- package/dist/index.es38.js +4 -0
- package/dist/index.es39.js +4 -0
- package/dist/index.es4.js +180 -0
- package/dist/index.es40.js +4 -0
- package/dist/index.es41.js +4 -0
- package/dist/index.es42.js +4 -0
- package/dist/index.es43.js +4 -0
- package/dist/index.es44.js +4 -0
- package/dist/index.es45.js +6 -0
- package/dist/index.es5.js +75 -0
- package/dist/index.es6.js +67 -0
- package/dist/index.es7.js +24 -0
- package/dist/index.es8.js +18 -0
- package/dist/index.es9.js +4 -0
- package/dist/lib/create-rounded-cutout-rectangle-path.d.ts +18 -0
- package/dist/lib/create-rounded-cutout-rectangle-path.test.d.ts +1 -0
- package/dist/lib/generate-hash.d.ts +6 -0
- package/dist/lib/generate-hash.test.d.ts +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/locale/en_US.d.ts +6 -0
- package/dist/locale/index.d.ts +3 -0
- package/dist/locale/ru_RU.d.ts +6 -0
- package/dist/locale/type.d.ts +10 -0
- package/dist/main.d.ts +0 -0
- package/dist/setupTests.d.ts +5 -0
- package/dist/src/components/Avatar/Avatar.module.css +1 -0
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.module.css +1 -0
- package/dist/src/components/Badge/Badge.module.css +1 -0
- package/dist/src/components/Button/Button.module.css +1 -0
- package/dist/src/components/ConfigProvider/ConfigProvider.module.css +1 -0
- package/dist/src/components/Image/Image.module.css +1 -0
- package/dist/src/components/Loader/Loader.module.css +1 -0
- package/dist/types/i18n.d.ts +7 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +127 -0
package/package.json
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "skillgrid",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Skillgrid Components Library",
|
|
5
|
+
"keywords": ["react", "ui", "components"],
|
|
6
|
+
"author": "Skillaz Dev.",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": "https://gitlab.dev.skillaz.ru/frontend/skillgrid",
|
|
9
|
+
"homepage": "https://skillaz.ru/",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "./dist/index.cjs.js",
|
|
12
|
+
"module": "./dist/index.es.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.es.js",
|
|
18
|
+
"require": "./dist/index.cjs.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"dev": "vite",
|
|
26
|
+
"build": "vite build",
|
|
27
|
+
"type-check": "tsc",
|
|
28
|
+
"prepublish": "npm run build",
|
|
29
|
+
"format": "prettier --write .",
|
|
30
|
+
"lint": "eslint . --ext .ts,.tsx",
|
|
31
|
+
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
|
32
|
+
"lint:css": "stylelint **/*.css",
|
|
33
|
+
"lint:css:fix": "stylelint **/*.css --fix",
|
|
34
|
+
"preview": "vite preview",
|
|
35
|
+
"prepare": "husky install",
|
|
36
|
+
"skillgrid": "ts-node --esm scripts/generators/index.ts",
|
|
37
|
+
"test:generators": "vitest run scripts/generators/tests",
|
|
38
|
+
"storybook": "storybook dev -p 6006",
|
|
39
|
+
"build-storybook": "storybook build",
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"test:watch": "vitest --watch",
|
|
42
|
+
"test:coverage": "vitest run --coverage",
|
|
43
|
+
"test:ui": "vitest --ui",
|
|
44
|
+
"start": "concurrently \"yarn storybook\" \"yarn test:watch\" --kill-others --names \"STORYBOOK,TESTS\" --prefix-colors \"magenta.bold,green.bold\" --prefix \"[{name}]\"",
|
|
45
|
+
"docs:dev": "vitepress dev docs",
|
|
46
|
+
"docs:build": "vitepress build docs",
|
|
47
|
+
"docs:preview": "vitepress preview docs",
|
|
48
|
+
"docs": "yarn docs:dev"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@eslint/js": "^9.25.0",
|
|
52
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
53
|
+
"@storybook/addon-interactions": "^8.6.12",
|
|
54
|
+
"@storybook/addon-onboarding": "^8.6.12",
|
|
55
|
+
"@storybook/blocks": "^8.6.12",
|
|
56
|
+
"@storybook/react": "^8.6.12",
|
|
57
|
+
"@storybook/react-vite": "^8.6.12",
|
|
58
|
+
"@storybook/test": "^8.6.12",
|
|
59
|
+
"@testing-library/dom": "^10.4.0",
|
|
60
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
61
|
+
"@types/node": "^22.15.17",
|
|
62
|
+
"@types/react": "18.3.1",
|
|
63
|
+
"@types/react-dom": "18.3.1",
|
|
64
|
+
"@types/testing-library__jest-dom": "^6.0.0",
|
|
65
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
66
|
+
"@vitest/coverage-v8": "^1.4.0",
|
|
67
|
+
"@vitest/ui": "^1.4.0",
|
|
68
|
+
"concurrently": "^8.2.2",
|
|
69
|
+
"cosmiconfig": "^9.0.0",
|
|
70
|
+
"deepmerge": "^4.3.1",
|
|
71
|
+
"eslint": "^9.25.0",
|
|
72
|
+
"eslint-plugin-react": "^7.37.5",
|
|
73
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
74
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
75
|
+
"eslint-plugin-storybook": "^0.12.0",
|
|
76
|
+
"eslint-config-prettier": "^10.1.5",
|
|
77
|
+
"eslint-plugin-import": "^2.32.0",
|
|
78
|
+
"globals": "^16.0.0",
|
|
79
|
+
"husky": "^8.0.0",
|
|
80
|
+
"identity-obj-proxy": "^3.0.0",
|
|
81
|
+
"jsdom": "^24.0.0",
|
|
82
|
+
"react": "18.3.1",
|
|
83
|
+
"react-dom": "18.3.1",
|
|
84
|
+
"storybook": "^8.6.12",
|
|
85
|
+
"stylelint": "^15.11.0",
|
|
86
|
+
"stylelint-config-clean-order": "^5.2.0",
|
|
87
|
+
"stylelint-config-standard": "^34.0.0",
|
|
88
|
+
"stylelint-order": "^6.0.3",
|
|
89
|
+
"ts-node": "^10.9.2",
|
|
90
|
+
"typescript": "~5.8.3",
|
|
91
|
+
"typescript-eslint": "^8.30.1",
|
|
92
|
+
"vite": "^6.3.5",
|
|
93
|
+
"vite-plugin-dts": "^4.5.3",
|
|
94
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
95
|
+
"vitepress": "^1.0.0-rc.44",
|
|
96
|
+
"vitest": "^3.2.4"
|
|
97
|
+
},
|
|
98
|
+
"peerDependencies": {
|
|
99
|
+
"react": "17.0.2 || 18.3.1",
|
|
100
|
+
"react-dom": "17.0.2 || 18.3.1"
|
|
101
|
+
},
|
|
102
|
+
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447",
|
|
103
|
+
"dependencies": {
|
|
104
|
+
"@testing-library/react": "^16.3.0",
|
|
105
|
+
"antd": "^5.25.1",
|
|
106
|
+
"chalk": "^5.4.1",
|
|
107
|
+
"clsx": "^2.1.1",
|
|
108
|
+
"commander": "^13.1.0",
|
|
109
|
+
"fs-extra": "^11.3.0",
|
|
110
|
+
"handlebars": "^4.7.8",
|
|
111
|
+
"i18next": "^25.1.2",
|
|
112
|
+
"i18next-browser-languagedetector": "^8.1.0",
|
|
113
|
+
"prettier": "^3.5.3",
|
|
114
|
+
"react-i18next": "^15.5.1"
|
|
115
|
+
},
|
|
116
|
+
"eslintConfig": {
|
|
117
|
+
"extends": [
|
|
118
|
+
"plugin:storybook/recommended"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"resolutions": {
|
|
122
|
+
"string-width": "4.2.3",
|
|
123
|
+
"strip-ansi": "6.0.1",
|
|
124
|
+
"wrap-ansi": "7.0.0",
|
|
125
|
+
"cliui": "7.0.4"
|
|
126
|
+
}
|
|
127
|
+
}
|