@danalazar/metro-ui 0.0.2 → 0.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.
- package/dist/assets/button.css +1 -1
- package/dist/assets/formField.css +1 -0
- package/dist/assets/input.css +1 -0
- package/dist/assets/inputWithAction.css +1 -0
- package/dist/assets/keypad.css +1 -0
- package/dist/assets/modal.css +1 -0
- package/dist/assets/select.css +1 -0
- package/dist/assets/spinner.css +1 -0
- package/dist/button-DTU9l2Gg.js +44 -0
- package/dist/clsx-ROFf4vs9.js +16 -0
- package/dist/components/button/button.d.ts +10 -5
- package/dist/components/button/button.js +2 -1
- package/dist/components/button/button.stories.d.ts +36 -5
- package/dist/components/button/button.stories.js +75 -5
- package/dist/components/button/button.test.d.ts +1 -0
- package/dist/components/button/button.test.js +42 -0
- package/dist/components/formField/formField.d.ts +8 -0
- package/dist/components/formField/formField.js +2 -0
- package/dist/components/formField/formField.stories.d.ts +15 -0
- package/dist/components/formField/formField.stories.js +77 -0
- package/dist/components/formField/formField.test.d.ts +1 -0
- package/dist/components/formField/formField.test.js +40 -0
- package/dist/components/input/input.d.ts +11 -0
- package/dist/components/input/input.js +2 -0
- package/dist/components/inputWithActions/inputWithAction.d.ts +5 -0
- package/dist/components/inputWithActions/inputWithAction.js +2 -0
- package/dist/components/inputWithActions/inputWithAction.stories.d.ts +9 -0
- package/dist/components/inputWithActions/inputWithAction.stories.js +83 -0
- package/dist/components/inputWithActions/inputWithAction.test.d.ts +1 -0
- package/dist/components/inputWithActions/inputWithAction.test.js +9 -0
- package/dist/components/keypad/keypad.d.ts +16 -0
- package/dist/components/keypad/keypad.js +4 -0
- package/dist/components/keypad/keypad.stories.d.ts +6 -0
- package/dist/components/keypad/keypad.stories.js +17 -0
- package/dist/components/keypad/keypad.test.d.ts +1 -0
- package/dist/components/keypad/keypad.test.js +31 -0
- package/dist/components/modal/modal.d.ts +9 -0
- package/dist/components/modal/modal.js +4 -0
- package/dist/components/modal/modal.stories.d.ts +32 -0
- package/dist/components/modal/modal.stories.js +78 -0
- package/dist/components/modal/modal.test.d.ts +1 -0
- package/dist/components/modal/modal.test.js +35 -0
- package/dist/components/select/select.d.ts +16 -0
- package/dist/components/select/select.js +2 -0
- package/dist/components/select/select.stories.d.ts +38 -0
- package/dist/components/select/select.stories.js +44 -0
- package/dist/components/select/select.test.d.ts +1 -0
- package/dist/components/select/select.test.js +36 -0
- package/dist/components/spinner/spinner.d.ts +6 -0
- package/dist/components/spinner/spinner.js +2 -0
- package/dist/components/spinner/spinner.stories.d.ts +30 -0
- package/dist/components/spinner/spinner.stories.js +32 -0
- package/dist/components/spinner/spinner.test.d.ts +1 -0
- package/dist/components/spinner/spinner.test.js +21 -0
- package/dist/formField-BdRLOA0x.js +30 -0
- package/dist/input-q5h2lA4L.js +20 -0
- package/dist/inputWithAction-VBlCurUV.js +8 -0
- package/dist/keypad-Bu5TjaRH.js +135 -0
- package/dist/lib-JrI87syO.js +5604 -0
- package/dist/magic-string.es-D07BpzB1.js +659 -0
- package/dist/main.d.ts +7 -0
- package/dist/main.js +9 -2
- package/dist/modal-mu0n0R19.js +48 -0
- package/dist/react.esm-CQZuoo0_.js +31060 -0
- package/dist/select-NHAc5xjZ.js +26 -0
- package/dist/spinner-Co2caOhH.js +19 -0
- package/dist/test/setup.d.ts +0 -0
- package/dist/test/setup.js +2002 -0
- package/package.json +29 -5
- package/dist/button-CzP3GJ3Q.js +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danalazar/metro-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -10,11 +10,26 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"dev": "vite",
|
|
12
12
|
"build": "tsc -b && vite build",
|
|
13
|
+
"test": "vitest run",
|
|
14
|
+
"test:watch": "vitest",
|
|
15
|
+
"test:ui": "vitest --ui",
|
|
16
|
+
"test:coverage": "vitest run --coverage",
|
|
13
17
|
"lint": "eslint .",
|
|
18
|
+
"lint:fix": "eslint . --fix",
|
|
19
|
+
"format": "prettier . --write",
|
|
20
|
+
"format:check": "prettier . --check",
|
|
21
|
+
"typecheck": "tsc --noEmit",
|
|
22
|
+
"prebuild": "npm run lint && npm run format:check && npm run typecheck && npm run test",
|
|
14
23
|
"preview": "vite preview",
|
|
15
24
|
"storybook": "storybook dev -p 6006",
|
|
16
25
|
"build-storybook": "storybook build"
|
|
17
26
|
},
|
|
27
|
+
"lint-staged": {
|
|
28
|
+
"*.{ts,tsx}": [
|
|
29
|
+
"eslint --fix",
|
|
30
|
+
"prettier --write"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
18
33
|
"peerDependencies": {
|
|
19
34
|
"react": "^19.2.4",
|
|
20
35
|
"react-dom": "^19.2.4"
|
|
@@ -25,21 +40,27 @@
|
|
|
25
40
|
"@storybook/addon-a11y": "^10.3.1",
|
|
26
41
|
"@storybook/addon-docs": "^10.3.1",
|
|
27
42
|
"@storybook/addon-onboarding": "^10.3.1",
|
|
28
|
-
"@storybook/addon-vitest": "^10.3.1",
|
|
29
43
|
"@storybook/react-vite": "^10.3.1",
|
|
44
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
45
|
+
"@testing-library/react": "^16.3.2",
|
|
46
|
+
"@testing-library/user-event": "^14.6.1",
|
|
30
47
|
"@types/node": "^24.12.0",
|
|
31
48
|
"@types/react": "^19.2.14",
|
|
32
49
|
"@types/react-dom": "^19.2.3",
|
|
33
50
|
"@vitejs/plugin-react": "^6.0.1",
|
|
34
|
-
"@vitest/
|
|
35
|
-
"@vitest/coverage-v8": "^4.1.0",
|
|
51
|
+
"@vitest/ui": "^4.1.0",
|
|
36
52
|
"eslint": "^9.39.4",
|
|
53
|
+
"eslint-config-prettier": "^10.1.8",
|
|
54
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
37
55
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
38
56
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
39
57
|
"eslint-plugin-storybook": "^10.3.1",
|
|
40
58
|
"glob": "^13.0.6",
|
|
41
59
|
"globals": "^17.4.0",
|
|
42
|
-
"
|
|
60
|
+
"husky": "^9.1.7",
|
|
61
|
+
"jsdom": "^29.0.1",
|
|
62
|
+
"lint-staged": "^16.4.0",
|
|
63
|
+
"prettier": "^3.8.1",
|
|
43
64
|
"react": "^19.2.4",
|
|
44
65
|
"react-dom": "^19.2.4",
|
|
45
66
|
"sass": "^1.98.0",
|
|
@@ -50,5 +71,8 @@
|
|
|
50
71
|
"vite-plugin-dts": "^4.5.4",
|
|
51
72
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
52
73
|
"vitest": "^4.1.0"
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"clsx": "^2.1.1"
|
|
53
77
|
}
|
|
54
78
|
}
|
package/dist/button-CzP3GJ3Q.js
DELETED