triafly-ui-kit 1.0.76 → 1.0.78

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,112 +1,112 @@
1
- {
2
- "name": "triafly-ui-kit",
3
- "version": "1.0.76",
4
- "description": "UI Kit from Triafly",
5
- "main": "./dist/main.js",
6
- "module": "./dist/main.js",
7
- "types": "./dist/main.d.ts",
8
- "type": "module",
9
- "exports": {
10
- ".": {
11
- "import": "./dist/main.js",
12
- "types": "./dist/main.d.ts"
13
- },
14
- "./dist/*": {
15
- "types": "./dist/*.d.ts"
16
- },
17
- "./variables.scss": {
18
- "default": "./src/styles/variables.scss"
19
- }
20
- },
21
- "files": [
22
- "dist",
23
- "src/styles",
24
- "src/assets/fonts"
25
- ],
26
- "scripts": {
27
- "build": "npm run build:types && vite build",
28
- "build:types": "tsc --build tsconfig.build.json",
29
- "dev": "vite",
30
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
31
- "preview": "vite preview",
32
- "prepare": "husky install",
33
- "precommit": "npm run lint-staged",
34
- "lint-staged": "lint-staged",
35
- "storybook": "storybook dev -p 6006",
36
- "build-storybook": "storybook build",
37
- "prepublish": "npm run build",
38
- "release-patch": "npm run build && npm version patch && git push && npm publish"
39
- },
40
- "browserslist": [
41
- "cover 99.5%"
42
- ],
43
- "peerDependencies": {
44
- "classnames": "^2.5.1",
45
- "react": "^18.0.0",
46
- "react-dom": "^18.0.0",
47
- "react-router-dom": "6.26.1"
48
- },
49
- "dependencies": {
50
- "dayjs": "^1.11.13",
51
- "fast-deep-equal": "^3.1.3",
52
- "papaparse": "^5.4.1",
53
- "react-paginate": "^8.2.0"
54
- },
55
- "devDependencies": {
56
- "@chromatic-com/storybook": "^3.2.3",
57
- "@eslint/js": "^9.25.0",
58
- "@storybook/addon-backgrounds": "^8.5.2",
59
- "@storybook/addon-essentials": "^8.4.7",
60
- "@storybook/addon-interactions": "^8.4.7",
61
- "@storybook/addon-onboarding": "^8.4.7",
62
- "@storybook/blocks": "^8.4.7",
63
- "@storybook/react": "^8.4.7",
64
- "@storybook/react-vite": "^8.4.7",
65
- "@storybook/test": "^8.4.7",
66
- "@types/eslint-plugin-jsx-a11y": "^6.10.0",
67
- "@types/eslint-plugin-prettier": "^3.1.3",
68
- "@types/node": "^22.15.21",
69
- "@types/papaparse": "^5.3.16",
70
- "@types/react": "^18.2.25",
71
- "@types/react-dom": "^18.2.25",
72
- "@typescript-eslint/eslint-plugin": "^6.21.0",
73
- "@typescript-eslint/parser": "^6.21.0",
74
- "@vitejs/plugin-react-swc": "^3.9.0",
75
- "autoprefixer": "^10.4.21",
76
- "eslint": "^8.57.0",
77
- "eslint-config-airbnb-typescript": "^17.1.0",
78
- "eslint-config-prettier": "^9.1.0",
79
- "eslint-import-resolver-typescript": "^4.4.1",
80
- "eslint-plugin-import": "^2.29.1",
81
- "eslint-plugin-jsx-a11y": "^6.8.0",
82
- "eslint-plugin-prettier": "^5.2.1",
83
- "eslint-plugin-react": "^7.34.1",
84
- "eslint-plugin-react-hooks": "^4.6.0",
85
- "eslint-plugin-react-refresh": "^0.4.19",
86
- "glob": "^11.0.2",
87
- "globals": "^16.0.0",
88
- "husky": "^9.1.7",
89
- "lint-staged": "^16.0.0",
90
- "react": "18.2.0",
91
- "react-dom": "18.2.0",
92
- "react-router-dom": "6.26.1",
93
- "sass": "^1.89.0",
94
- "storybook": "^8.6.14",
95
- "typescript": "~5.8.3",
96
- "typescript-eslint": "^8.30.1",
97
- "vite": "^6.3.5",
98
- "vite-plugin-dts": "^4.5.4",
99
- "vite-plugin-lib-inject-css": "^2.2.2",
100
- "vite-plugin-static-copy": "^3.0.0",
101
- "vite-plugin-svgr": "^4.3.0"
102
- },
103
- "publishConfig": {
104
- "access": "public"
105
- },
106
- "lint-staged": {
107
- "src/**/*.{ts,tsx}": [
108
- "eslint --fix",
109
- "prettier --write --ignore-unknown"
110
- ]
111
- }
112
- }
1
+ {
2
+ "name": "triafly-ui-kit",
3
+ "version": "1.0.78",
4
+ "description": "UI Kit from Triafly",
5
+ "main": "./dist/main.js",
6
+ "module": "./dist/main.js",
7
+ "types": "./dist/main.d.ts",
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./dist/main.js",
12
+ "types": "./dist/main.d.ts"
13
+ },
14
+ "./dist/*": {
15
+ "types": "./dist/*.d.ts"
16
+ },
17
+ "./variables.scss": {
18
+ "default": "./src/styles/variables.scss"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "src/styles",
24
+ "src/assets/fonts"
25
+ ],
26
+ "scripts": {
27
+ "build": "npm run build:types && vite build",
28
+ "build:types": "tsc --build tsconfig.build.json",
29
+ "dev": "vite",
30
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
31
+ "preview": "vite preview",
32
+ "prepare": "husky install",
33
+ "precommit": "npm run lint-staged",
34
+ "lint-staged": "lint-staged",
35
+ "storybook": "storybook dev -p 6006",
36
+ "build-storybook": "storybook build",
37
+ "prepublish": "npm run build",
38
+ "release-patch": "npm run build && npm version patch && git push && npm publish"
39
+ },
40
+ "browserslist": [
41
+ "cover 99.5%"
42
+ ],
43
+ "peerDependencies": {
44
+ "classnames": "^2.5.1",
45
+ "react": "^18.0.0",
46
+ "react-dom": "^18.0.0",
47
+ "react-router-dom": "6.26.1"
48
+ },
49
+ "dependencies": {
50
+ "dayjs": "^1.11.13",
51
+ "fast-deep-equal": "^3.1.3",
52
+ "papaparse": "^5.4.1",
53
+ "react-paginate": "^8.2.0"
54
+ },
55
+ "devDependencies": {
56
+ "@chromatic-com/storybook": "^3.2.3",
57
+ "@eslint/js": "^9.25.0",
58
+ "@storybook/addon-backgrounds": "^8.5.2",
59
+ "@storybook/addon-essentials": "^8.4.7",
60
+ "@storybook/addon-interactions": "^8.4.7",
61
+ "@storybook/addon-onboarding": "^8.4.7",
62
+ "@storybook/blocks": "^8.4.7",
63
+ "@storybook/react": "^8.4.7",
64
+ "@storybook/react-vite": "^8.4.7",
65
+ "@storybook/test": "^8.4.7",
66
+ "@types/eslint-plugin-jsx-a11y": "^6.10.0",
67
+ "@types/eslint-plugin-prettier": "^3.1.3",
68
+ "@types/node": "^22.15.21",
69
+ "@types/papaparse": "^5.3.16",
70
+ "@types/react": "^18.2.25",
71
+ "@types/react-dom": "^18.2.25",
72
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
73
+ "@typescript-eslint/parser": "^6.21.0",
74
+ "@vitejs/plugin-react-swc": "^3.9.0",
75
+ "autoprefixer": "^10.4.21",
76
+ "eslint": "^8.57.0",
77
+ "eslint-config-airbnb-typescript": "^17.1.0",
78
+ "eslint-config-prettier": "^9.1.0",
79
+ "eslint-import-resolver-typescript": "^4.4.1",
80
+ "eslint-plugin-import": "^2.29.1",
81
+ "eslint-plugin-jsx-a11y": "^6.8.0",
82
+ "eslint-plugin-prettier": "^5.2.1",
83
+ "eslint-plugin-react": "^7.34.1",
84
+ "eslint-plugin-react-hooks": "^4.6.0",
85
+ "eslint-plugin-react-refresh": "^0.4.19",
86
+ "glob": "^11.0.2",
87
+ "globals": "^16.0.0",
88
+ "husky": "^9.1.7",
89
+ "lint-staged": "^16.0.0",
90
+ "react": "18.2.0",
91
+ "react-dom": "18.2.0",
92
+ "react-router-dom": "6.26.1",
93
+ "sass": "^1.89.0",
94
+ "storybook": "^8.6.14",
95
+ "typescript": "~5.8.3",
96
+ "typescript-eslint": "^8.30.1",
97
+ "vite": "^6.3.5",
98
+ "vite-plugin-dts": "^4.5.4",
99
+ "vite-plugin-lib-inject-css": "^2.2.2",
100
+ "vite-plugin-static-copy": "^3.0.0",
101
+ "vite-plugin-svgr": "^4.3.0"
102
+ },
103
+ "publishConfig": {
104
+ "access": "public"
105
+ },
106
+ "lint-staged": {
107
+ "src/**/*.{ts,tsx}": [
108
+ "eslint --fix",
109
+ "prettier --write --ignore-unknown"
110
+ ]
111
+ }
112
+ }
@@ -1,22 +1,22 @@
1
- @mixin wrapper($bg-color: var(--color-bg-island-default), $padding: 20px 24px 20px 24px) {
2
- background-color: $bg-color;
3
- padding: $padding;
4
- border-radius: 16px;
5
- }
6
-
7
- @mixin outlinedColorScheme ($borderColor, $textColor) { //NOTE: дублирование стилей UI-кита изза модулей?
8
- background-color: transparent !important;
9
- border: 1px solid $borderColor;
10
- color: $textColor;
11
- &[disabled] {
12
- pointer-events: none;
13
- }
14
- &:hover {
15
- background-color: transparent;
16
- box-shadow: inset 0 0 0 1px $borderColor;
17
- }
18
-
19
- svg * {
20
- fill: $textColor;
21
- }
1
+ @mixin wrapper($bg-color: var(--color-bg-island-default), $padding: 20px 24px 20px 24px) {
2
+ background-color: $bg-color;
3
+ padding: $padding;
4
+ border-radius: 16px;
5
+ }
6
+
7
+ @mixin outlinedColorScheme ($borderColor, $textColor) { //NOTE: дублирование стилей UI-кита изза модулей?
8
+ background-color: transparent !important;
9
+ border: 1px solid $borderColor;
10
+ color: $textColor;
11
+ &[disabled] {
12
+ pointer-events: none;
13
+ }
14
+ &:hover {
15
+ background-color: transparent;
16
+ box-shadow: inset 0 0 0 1px $borderColor;
17
+ }
18
+
19
+ svg * {
20
+ fill: $textColor;
21
+ }
22
22
  }
@@ -1,4 +1,4 @@
1
- // Скрываем браузерный крестик в полях поиска
2
- input[type="search"]::-webkit-search-cancel-button {
3
- display: none;
1
+ // Скрываем браузерный крестик в полях поиска
2
+ input[type="search"]::-webkit-search-cancel-button {
3
+ display: none;
4
4
  }
@@ -1,27 +1,27 @@
1
- @import "./reset.scss";
2
- @import "./variables.scss";
3
- @import "./fix.scss";
4
- @import './_mixins.scss';
5
- @import './typography.scss';
6
-
7
- // Пока не трогать, тестовая подсветка блоков
8
- // html {
9
- // border: 4px solid red;
10
- // padding: 1px;
11
- // }
12
-
13
- // body {
14
- // border: 2px dashed;
15
- // margin: 1px;
16
- // }
17
-
18
- // div {
19
- // border: 1px dotted;
20
- // margin: 1px;
21
- // }
22
-
23
-
24
- //layout.module.scss не позволяет дочерним компонентам наследовать стили почему то. Сделать нормальный
25
- .page-content {
26
- border-radius: 16px;
1
+ @import "./reset.scss";
2
+ @import "./variables.scss";
3
+ @import "./fix.scss";
4
+ @import './_mixins.scss';
5
+ @import './typography.scss';
6
+
7
+ // Пока не трогать, тестовая подсветка блоков
8
+ // html {
9
+ // border: 4px solid red;
10
+ // padding: 1px;
11
+ // }
12
+
13
+ // body {
14
+ // border: 2px dashed;
15
+ // margin: 1px;
16
+ // }
17
+
18
+ // div {
19
+ // border: 1px dotted;
20
+ // margin: 1px;
21
+ // }
22
+
23
+
24
+ //layout.module.scss не позволяет дочерним компонентам наследовать стили почему то. Сделать нормальный
25
+ .page-content {
26
+ border-radius: 16px;
27
27
  }
@@ -1,106 +1,106 @@
1
- * {
2
- margin: 0;
3
- padding: 0;
4
- border: 0;
5
-
6
- /*color: #1a2026;*/
7
- }
8
-
9
- *,
10
- *::before,
11
- *::after {
12
- -moz-box-sizing: border-box;
13
- -webkit-box-sizing: border-box;
14
- box-sizing: border-box;
15
- }
16
-
17
- :focus,
18
- :active {
19
- outline: none;
20
- }
21
-
22
- nav,
23
- footer,
24
- header,
25
- aside {
26
- display: block;
27
- }
28
-
29
- html,
30
- body {
31
- width: 100%;
32
- height: 100%;
33
-
34
- font-size: 100%;
35
- font-size: 14px;
36
- line-height: 1;
37
- -ms-text-size-adjust: 100%;
38
- -moz-text-size-adjust: 100%;
39
- -webkit-text-size-adjust: 100%;
40
- }
41
-
42
- input,
43
- button,
44
- textarea {
45
- font-family: inherit;
46
- }
47
-
48
- input::-ms-clear {
49
- display: none;
50
- }
51
-
52
- button {
53
- cursor: pointer;
54
- }
55
-
56
- button::-moz-focus-inner {
57
- padding: 0;
58
-
59
- border: 0;
60
- }
61
-
62
- a,
63
- a:visited {
64
- text-decoration: none;
65
- }
66
-
67
- a:focus,
68
- a:active {
69
- outline: none;
70
- }
71
-
72
- a:hover {
73
- text-decoration: none;
74
- }
75
-
76
- ul li {
77
- list-style: none;
78
- }
79
-
80
- img {
81
- vertical-align: top;
82
- }
83
-
84
- h1,
85
- h2,
86
- h3,
87
- h4,
88
- h5,
89
- h6 {
90
- font-size: inherit;
91
- font-weight: 400;
92
- }
93
-
94
- #root {
95
- background-color: var(--color-bg-island-default);
96
- }
97
-
98
- .page-wrapper {
99
- width: 100%;
100
- max-width: 1920px;
101
- min-height: 100vh;
102
- margin: 0 auto;
103
- display: flex;
104
- flex-direction: column;
105
- background-color: var(--color-bg-island-default);
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+
6
+ /*color: #1a2026;*/
7
+ }
8
+
9
+ *,
10
+ *::before,
11
+ *::after {
12
+ -moz-box-sizing: border-box;
13
+ -webkit-box-sizing: border-box;
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ :focus,
18
+ :active {
19
+ outline: none;
20
+ }
21
+
22
+ nav,
23
+ footer,
24
+ header,
25
+ aside {
26
+ display: block;
27
+ }
28
+
29
+ html,
30
+ body {
31
+ width: 100%;
32
+ height: 100%;
33
+
34
+ font-size: 100%;
35
+ font-size: 14px;
36
+ line-height: 1;
37
+ -ms-text-size-adjust: 100%;
38
+ -moz-text-size-adjust: 100%;
39
+ -webkit-text-size-adjust: 100%;
40
+ }
41
+
42
+ input,
43
+ button,
44
+ textarea {
45
+ font-family: inherit;
46
+ }
47
+
48
+ input::-ms-clear {
49
+ display: none;
50
+ }
51
+
52
+ button {
53
+ cursor: pointer;
54
+ }
55
+
56
+ button::-moz-focus-inner {
57
+ padding: 0;
58
+
59
+ border: 0;
60
+ }
61
+
62
+ a,
63
+ a:visited {
64
+ text-decoration: none;
65
+ }
66
+
67
+ a:focus,
68
+ a:active {
69
+ outline: none;
70
+ }
71
+
72
+ a:hover {
73
+ text-decoration: none;
74
+ }
75
+
76
+ ul li {
77
+ list-style: none;
78
+ }
79
+
80
+ img {
81
+ vertical-align: top;
82
+ }
83
+
84
+ h1,
85
+ h2,
86
+ h3,
87
+ h4,
88
+ h5,
89
+ h6 {
90
+ font-size: inherit;
91
+ font-weight: 400;
92
+ }
93
+
94
+ #root {
95
+ background-color: var(--color-bg-island-default);
96
+ }
97
+
98
+ .page-wrapper {
99
+ width: 100%;
100
+ max-width: 1920px;
101
+ min-height: 100vh;
102
+ margin: 0 auto;
103
+ display: flex;
104
+ flex-direction: column;
105
+ background-color: var(--color-bg-island-default);
106
106
  }