triafly-ui-kit 1.0.27 → 1.0.29

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.
Files changed (38) hide show
  1. package/README.md +93 -93
  2. package/dist/assets/src/components/Ui/ModalWindow/ModalWindow.css +1 -1
  3. package/dist/assets/src/components/Ui/Tooltip/Tooltip.stories.module.css +1 -1
  4. package/dist/components/Ui/DatePicker/DatePicker.js +13 -6
  5. package/dist/components/Ui/DatePicker/DatePicker.stories.js +39 -33
  6. package/dist/main.d.ts +0 -33
  7. package/dist/main.js +153 -157
  8. package/dist/src/components/Ui/Tooltip/Tooltip.stories.module.css.js +1 -1
  9. package/dist/styles/_mixins.scss +21 -21
  10. package/dist/styles/fix.scss +3 -3
  11. package/dist/styles/main.scss +26 -26
  12. package/dist/styles/reset.scss +105 -105
  13. package/dist/styles/typography.scss +106 -102
  14. package/dist/styles/variables.scss +273 -273
  15. package/package.json +111 -111
  16. package/src/styles/_mixins.scss +21 -21
  17. package/src/styles/fix.scss +3 -3
  18. package/src/styles/main.scss +26 -26
  19. package/src/styles/reset.scss +105 -105
  20. package/src/styles/typography.scss +106 -102
  21. package/src/styles/variables.scss +273 -273
  22. package/dist/_virtual/dayjs.min.js +0 -7
  23. package/dist/_virtual/dayjs.min2.js +0 -4
  24. package/dist/_virtual/ru.js +0 -2
  25. package/dist/_virtual/ru2.js +0 -4
  26. package/dist/assets/src/components/Ui/DateRangePicker/DateRangePicker.css +0 -1
  27. package/dist/components/Ui/DatePicker/index.js +0 -4
  28. package/dist/components/Ui/DateRangePicker/DateRangePicker.js +0 -195
  29. package/dist/components/Ui/DateRangePicker/DateRangePicker.stories.js +0 -84
  30. package/dist/components/Ui/DateRangePicker/const.js +0 -37
  31. package/dist/components/Ui/DateRangePicker/hooks/useCalendarRenderer.js +0 -48
  32. package/dist/components/Ui/DateRangePicker/hooks/useChangeDate.js +0 -28
  33. package/dist/components/Ui/DateRangePicker/hooks/useDateNavigation.js +0 -22
  34. package/dist/components/Ui/DateRangePicker/hooks/useDateRangeState.js +0 -24
  35. package/dist/components/Ui/DateRangePicker/hooks/useQuickRange.js +0 -77
  36. package/dist/components/Ui/DateRangePicker/index.js +0 -4
  37. package/dist/node_modules/dayjs/dayjs.min.js +0 -282
  38. package/dist/node_modules/dayjs/locale/ru.js +0 -36
package/package.json CHANGED
@@ -1,111 +1,111 @@
1
- {
2
- "name": "triafly-ui-kit",
3
- "version": "1.0.27",
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
- ],
25
- "scripts": {
26
- "build": "npm run build:types && vite build",
27
- "build:types": "tsc --build tsconfig.build.json",
28
- "dev": "vite",
29
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
30
- "preview": "vite preview",
31
- "prepare": "husky install",
32
- "precommit": "npm run lint-staged",
33
- "lint-staged": "lint-staged",
34
- "storybook": "storybook dev -p 6006",
35
- "build-storybook": "storybook build",
36
- "prepublish": "npm run build",
37
- "release-patch": "npm run build && npm version patch && git push && npm publish"
38
- },
39
- "browserslist": [
40
- "cover 99.5%"
41
- ],
42
- "peerDependencies": {
43
- "classnames": "^2.5.1",
44
- "react": "^18.0.0",
45
- "react-dom": "^18.0.0",
46
- "react-router-dom": "6.26.1"
47
- },
48
- "dependencies": {
49
- "dayjs": "^1.11.13",
50
- "fast-deep-equal": "^3.1.3",
51
- "papaparse": "^5.4.1",
52
- "react-paginate": "^8.2.0"
53
- },
54
- "devDependencies": {
55
- "@chromatic-com/storybook": "^3.2.3",
56
- "@eslint/js": "^9.25.0",
57
- "@storybook/addon-backgrounds": "^8.5.2",
58
- "@storybook/addon-essentials": "^8.4.7",
59
- "@storybook/addon-interactions": "^8.4.7",
60
- "@storybook/addon-onboarding": "^8.4.7",
61
- "@storybook/blocks": "^8.4.7",
62
- "@storybook/react": "^8.4.7",
63
- "@storybook/react-vite": "^8.4.7",
64
- "@storybook/test": "^8.4.7",
65
- "@types/eslint-plugin-jsx-a11y": "^6.10.0",
66
- "@types/eslint-plugin-prettier": "^3.1.3",
67
- "@types/node": "^22.15.21",
68
- "@types/papaparse": "^5.3.16",
69
- "@types/react": "^18.2.25",
70
- "@types/react-dom": "^18.2.25",
71
- "@typescript-eslint/eslint-plugin": "^6.21.0",
72
- "@typescript-eslint/parser": "^6.21.0",
73
- "@vitejs/plugin-react-swc": "^3.9.0",
74
- "autoprefixer": "^10.4.21",
75
- "eslint": "^8.57.0",
76
- "eslint-config-airbnb-typescript": "^17.1.0",
77
- "eslint-config-prettier": "^9.1.0",
78
- "eslint-import-resolver-typescript": "^4.4.1",
79
- "eslint-plugin-import": "^2.29.1",
80
- "eslint-plugin-jsx-a11y": "^6.8.0",
81
- "eslint-plugin-prettier": "^5.2.1",
82
- "eslint-plugin-react": "^7.34.1",
83
- "eslint-plugin-react-hooks": "^4.6.0",
84
- "eslint-plugin-react-refresh": "^0.4.19",
85
- "glob": "^11.0.2",
86
- "globals": "^16.0.0",
87
- "husky": "^9.1.7",
88
- "lint-staged": "^16.0.0",
89
- "react": "18.2.0",
90
- "react-dom": "18.2.0",
91
- "react-router-dom": "6.26.1",
92
- "sass": "^1.89.0",
93
- "storybook": "^8.6.14",
94
- "typescript": "~5.8.3",
95
- "typescript-eslint": "^8.30.1",
96
- "vite": "^6.3.5",
97
- "vite-plugin-dts": "^4.5.4",
98
- "vite-plugin-lib-inject-css": "^2.2.2",
99
- "vite-plugin-static-copy": "^3.0.0",
100
- "vite-plugin-svgr": "^4.3.0"
101
- },
102
- "publishConfig": {
103
- "access": "public"
104
- },
105
- "lint-staged": {
106
- "src/**/*.{ts,tsx}": [
107
- "eslint --fix",
108
- "prettier --write --ignore-unknown"
109
- ]
110
- }
111
- }
1
+ {
2
+ "name": "triafly-ui-kit",
3
+ "version": "1.0.29",
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
+ ],
25
+ "scripts": {
26
+ "build": "npm run build:types && vite build",
27
+ "build:types": "tsc --build tsconfig.build.json",
28
+ "dev": "vite",
29
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --fix",
30
+ "preview": "vite preview",
31
+ "prepare": "husky install",
32
+ "precommit": "npm run lint-staged",
33
+ "lint-staged": "lint-staged",
34
+ "storybook": "storybook dev -p 6006",
35
+ "build-storybook": "storybook build",
36
+ "prepublish": "npm run build",
37
+ "release-patch": "npm run build && npm version patch && git push && npm publish"
38
+ },
39
+ "browserslist": [
40
+ "cover 99.5%"
41
+ ],
42
+ "peerDependencies": {
43
+ "classnames": "^2.5.1",
44
+ "react": "^18.0.0",
45
+ "react-dom": "^18.0.0",
46
+ "react-router-dom": "6.26.1"
47
+ },
48
+ "dependencies": {
49
+ "dayjs": "^1.11.13",
50
+ "fast-deep-equal": "^3.1.3",
51
+ "papaparse": "^5.4.1",
52
+ "react-paginate": "^8.2.0"
53
+ },
54
+ "devDependencies": {
55
+ "@chromatic-com/storybook": "^3.2.3",
56
+ "@eslint/js": "^9.25.0",
57
+ "@storybook/addon-backgrounds": "^8.5.2",
58
+ "@storybook/addon-essentials": "^8.4.7",
59
+ "@storybook/addon-interactions": "^8.4.7",
60
+ "@storybook/addon-onboarding": "^8.4.7",
61
+ "@storybook/blocks": "^8.4.7",
62
+ "@storybook/react": "^8.4.7",
63
+ "@storybook/react-vite": "^8.4.7",
64
+ "@storybook/test": "^8.4.7",
65
+ "@types/eslint-plugin-jsx-a11y": "^6.10.0",
66
+ "@types/eslint-plugin-prettier": "^3.1.3",
67
+ "@types/node": "^22.15.21",
68
+ "@types/papaparse": "^5.3.16",
69
+ "@types/react": "^18.2.25",
70
+ "@types/react-dom": "^18.2.25",
71
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
72
+ "@typescript-eslint/parser": "^6.21.0",
73
+ "@vitejs/plugin-react-swc": "^3.9.0",
74
+ "autoprefixer": "^10.4.21",
75
+ "eslint": "^8.57.0",
76
+ "eslint-config-airbnb-typescript": "^17.1.0",
77
+ "eslint-config-prettier": "^9.1.0",
78
+ "eslint-import-resolver-typescript": "^4.4.1",
79
+ "eslint-plugin-import": "^2.29.1",
80
+ "eslint-plugin-jsx-a11y": "^6.8.0",
81
+ "eslint-plugin-prettier": "^5.2.1",
82
+ "eslint-plugin-react": "^7.34.1",
83
+ "eslint-plugin-react-hooks": "^4.6.0",
84
+ "eslint-plugin-react-refresh": "^0.4.19",
85
+ "glob": "^11.0.2",
86
+ "globals": "^16.0.0",
87
+ "husky": "^9.1.7",
88
+ "lint-staged": "^16.0.0",
89
+ "react": "18.2.0",
90
+ "react-dom": "18.2.0",
91
+ "react-router-dom": "6.26.1",
92
+ "sass": "^1.89.0",
93
+ "storybook": "^8.6.14",
94
+ "typescript": "~5.8.3",
95
+ "typescript-eslint": "^8.30.1",
96
+ "vite": "^6.3.5",
97
+ "vite-plugin-dts": "^4.5.4",
98
+ "vite-plugin-lib-inject-css": "^2.2.2",
99
+ "vite-plugin-static-copy": "^3.0.0",
100
+ "vite-plugin-svgr": "^4.3.0"
101
+ },
102
+ "publishConfig": {
103
+ "access": "public"
104
+ },
105
+ "lint-staged": {
106
+ "src/**/*.{ts,tsx}": [
107
+ "eslint --fix",
108
+ "prettier --write --ignore-unknown"
109
+ ]
110
+ }
111
+ }
@@ -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
  }