motile-ui 0.9.2 → 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/dist/components/Accordion/Accordion.test.d.ts +1 -0
- package/dist/components/Badge/Badge.test.d.ts +1 -0
- package/dist/components/Button/Button.test.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/components/Dock/Dock.test.d.ts +1 -0
- package/dist/components/Drawer/Drawer.test.d.ts +1 -0
- package/dist/components/Input/Input.test.d.ts +1 -0
- package/dist/components/Modal/Modal.test.d.ts +1 -0
- package/dist/components/Popover/Popover.test.d.ts +1 -0
- package/dist/components/Sheet/Sheet.test.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.test.d.ts +1 -0
- package/dist/components/SpeedDial/SpeedDial.test.d.ts +1 -0
- package/dist/components/Switch/Switch.test.d.ts +1 -0
- package/dist/components/Textarea/Textarea.test.d.ts +1 -0
- package/dist/components/Toast/Toast.test.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/utils.d.ts +22 -0
- package/package.json +14 -2
|
@@ -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.
|
|
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,6 +23,9 @@
|
|
|
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"
|
|
@@ -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",
|