mimir-ui-kit 1.33.0 → 1.33.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ type TProps = {
5
5
  /**
6
6
  * Обязательный заголовок.
7
7
  */
8
- title: string;
8
+ title: string | ReactNode;
9
9
  /**
10
10
  * Флаг отвечачающий за показ/скрытие.
11
11
  */
@@ -6,7 +6,7 @@ const Icon = ({ iconName, ...props }) => {
6
6
  if (!Component) {
7
7
  return null;
8
8
  }
9
- return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(Component, { ...props }) });
9
+ return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(Component, { ...props, "data-testid": iconName }) });
10
10
  };
11
11
  export {
12
12
  Icon
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.33.0",
4
+ "version": "1.33.1",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -37,6 +37,10 @@
37
37
  "storybook": "storybook dev -p 6006",
38
38
  "build-storybook": "storybook build",
39
39
  "ts:check": "tsc -b",
40
+ "test": "vitest",
41
+ "test:watch": "vitest --watch",
42
+ "test:ui": "vitest --ui",
43
+ "test:coverage": "vitest --coverage",
40
44
  "lint:fix": "eslint . --ext ts,tsx --fix",
41
45
  "lint:prettier": "npx prettier . --write",
42
46
  "lint:stylelint": "stylelint '**/*.module{.css,.scss}'",
@@ -62,6 +66,8 @@
62
66
  "@svgr/cli": "^8.1.0",
63
67
  "@svgr/core": "^8.1.0",
64
68
  "@svgr/plugin-svgo": "^8.1.0",
69
+ "@testing-library/jest-dom": "^6.5.0",
70
+ "@testing-library/react": "^16.0.1",
65
71
  "@types/node": "^20.14.10",
66
72
  "@types/react": "^18.3.3",
67
73
  "@types/react-dom": "^18.3.0",
@@ -81,6 +87,7 @@
81
87
  "eslint-plugin-storybook": "^0.8.0",
82
88
  "glob": "10.3.10",
83
89
  "husky": "^9.0.11",
90
+ "jsdom": "^25.0.0",
84
91
  "lint-staged": "^15.2.7",
85
92
  "p-limit": "^6.1.0",
86
93
  "postcss-preset-env": "^9.6.0",
@@ -101,7 +108,8 @@
101
108
  "vite": "^5.3.1",
102
109
  "vite-plugin-dts": "^3.9.1",
103
110
  "vite-plugin-lib-inject-css": "^2.1.1",
104
- "vite-plugin-svgr": "^4.2.0"
111
+ "vite-plugin-svgr": "^4.2.0",
112
+ "vitest": "^2.1.1"
105
113
  },
106
114
  "peerDependencies": {
107
115
  "@headlessui/react": "^2.1.2",
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
-