@kroo-web/design-system 1.0.2 → 1.0.3

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.
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { TextField } from '.';
2
3
  export default {
3
4
  title: 'Design System Product/C1 - TextField',
@@ -34,6 +34,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
+ import React from "react";
37
38
  import { render } from '@testing-library/react';
38
39
  import { describe, it, expect } from 'vitest';
39
40
  import userEvent from '@testing-library/user-event';
@@ -77,6 +78,7 @@ describe('<TextField />', function () {
77
78
  return [4 /*yield*/, userEvent.type(input, 'Hello, World!')];
78
79
  case 1:
79
80
  _a.sent();
81
+ //@ts-ignore
80
82
  expect(input).toHaveValue('Hello, World!');
81
83
  return [2 /*return*/];
82
84
  }
@@ -1,2 +1 @@
1
- import { TextField } from "./components/TextField";
2
- export { TextField };
1
+ export * from "./components/TextField";
@@ -1,2 +1 @@
1
- import { TextField } from "./components/TextField";
2
- export { TextField };
1
+ export * from "./components/TextField";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kroo-web/design-system",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Web design system for Kroo including the components for the marketing site and the product side.",
5
5
  "main": "./dist/main.js",
6
6
  "types": "./dist/main.d.ts",
@@ -13,7 +13,8 @@
13
13
  "storybook": "storybook dev -p 6006",
14
14
  "build-storybook": "storybook build",
15
15
  "copy-files": "copyfiles -u 1 \"src/**/*.css\" \"src/**/*.svg\" \"src/**/*.json\" dist/",
16
- "deploy": "npm run copy-files && npm publish --access public"
16
+ "build": "tsc && npm run copy-files",
17
+ "deploy": "npm run build && npm publish --access public"
17
18
  },
18
19
  "keywords": [],
19
20
  "author": "",
@@ -27,6 +28,7 @@
27
28
  "@storybook/react": "^7.6.17",
28
29
  "@storybook/react-vite": "^7.6.17",
29
30
  "@storybook/test": "^7.6.17",
31
+ "@testing-library/react": "^14.2.1",
30
32
  "copyfiles": "^2.4.1",
31
33
  "prop-types": "^15.8.1",
32
34
  "react": "^18.2.0",
@@ -38,6 +40,7 @@
38
40
  "clsx": "^2.1.0",
39
41
  "framer-motion": "^11.0.8",
40
42
  "react-hook-form": "^7.51.0",
41
- "typescript": "^5.4.2"
43
+ "typescript": "^5.4.2",
44
+ "vitest": "^1.3.1"
42
45
  }
43
46
  }