motile-ui 0.9.1 → 0.9.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.
package/README.md CHANGED
@@ -48,6 +48,11 @@
48
48
 
49
49
  ## 📦 설치
50
50
 
51
+ ### 요구사항
52
+
53
+ - **React**: 18.0.0 이상 (React 18 또는 React 19)
54
+ - **React DOM**: 18.0.0 이상
55
+
51
56
  ```bash
52
57
  # npm
53
58
  npm install motile-ui
@@ -225,6 +230,11 @@ MIT © [Innopers](https://github.com/Innopers)
225
230
 
226
231
  ## 📦 Installation
227
232
 
233
+ ### Requirements
234
+
235
+ - **React**: 18.0.0 or higher (React 18 or React 19)
236
+ - **React DOM**: 18.0.0 or higher
237
+
228
238
  ```bash
229
239
  # npm
230
240
  npm install motile-ui
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import { RenderOptions } from '@testing-library/react';
2
+ import { ReactElement } from 'react';
3
+ /**
4
+ * Custom render function with common providers
5
+ * 필요시 ThemeProvider, ToastProvider 등 추가 가능
6
+ */
7
+ export declare function customRender(ui: ReactElement, options?: Omit<RenderOptions, "wrapper">): import('@testing-library/react').RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
8
+ /**
9
+ * Portal 컴포넌트 테스트용 헬퍼
10
+ * document.body에서 특정 클래스를 찾음
11
+ */
12
+ export declare function getPortalContent(className: string): Element | null;
13
+ /**
14
+ * 비동기 애니메이션 대기
15
+ */
16
+ export declare function waitForAnimation(ms?: number): Promise<unknown>;
17
+ /**
18
+ * 키보드 이벤트 헬퍼
19
+ */
20
+ export declare function createKeyboardEvent(key: string, options?: Partial<KeyboardEvent>): KeyboardEvent;
21
+ export * from '@testing-library/react';
22
+ export { default as userEvent } from '@testing-library/user-event';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motile-ui",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "type": "module",
5
5
  "description": "A modern React component library for webview applications",
6
6
  "main": "./dist/motile-ui.umd.js",
@@ -23,13 +23,16 @@
23
23
  "dev": "vite",
24
24
  "build": "tsc && vite build",
25
25
  "preview": "vite preview",
26
+ "test": "vitest",
27
+ "test:ui": "vitest --ui",
28
+ "test:coverage": "vitest --coverage",
26
29
  "storybook": "storybook dev -p 6006",
27
30
  "build-storybook": "storybook build",
28
31
  "prepublishOnly": "npm run build"
29
32
  },
30
33
  "peerDependencies": {
31
- "react": "^18.0.0",
32
- "react-dom": "^18.0.0"
34
+ "react": ">=18.0.0",
35
+ "react-dom": ">=18.0.0"
33
36
  },
34
37
  "devDependencies": {
35
38
  "@storybook/addon-essentials": "^8.4.7",
@@ -39,17 +42,26 @@
39
42
  "@storybook/react": "^8.4.7",
40
43
  "@storybook/react-vite": "^8.4.7",
41
44
  "@storybook/test": "^8.4.7",
45
+ "@testing-library/jest-dom": "^6.9.1",
46
+ "@testing-library/react": "^16.3.0",
47
+ "@testing-library/user-event": "^14.6.1",
42
48
  "@types/node": "^24.9.1",
43
49
  "@types/react": "^18.3.12",
44
50
  "@types/react-dom": "^18.3.1",
45
51
  "@vitejs/plugin-react": "^4.3.3",
52
+ "@vitest/coverage-v8": "^2.1.8",
53
+ "@vitest/ui": "^2.1.8",
54
+ "chromatic": "^13.3.3",
55
+ "happy-dom": "^20.0.10",
56
+ "jsdom": "^27.0.1",
46
57
  "react": "^18.3.1",
47
58
  "react-dom": "^18.3.1",
48
59
  "storybook": "^8.4.7",
49
60
  "typescript": "^5.6.3",
50
61
  "vite": "^5.4.11",
51
62
  "vite-plugin-dts": "^4.3.0",
52
- "vite-plugin-lib-inject-css": "^2.2.2"
63
+ "vite-plugin-lib-inject-css": "^2.2.2",
64
+ "vitest": "^2.1.8"
53
65
  },
54
66
  "keywords": [
55
67
  "react",