@nurix/ui-component-library 1.0.1-stage.10 → 1.0.1-stage.13
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +34 -21
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
27
27
|
// src/button/button.tsx
|
|
28
28
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
29
|
var Button = ({ label, onClick }) => {
|
|
30
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { style: { backgroundColor: "purple", color: "white", padding: "10px 20px", borderRadius: "5px", border: "none", cursor: "pointer" }, children: label });
|
|
30
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { onClick, style: { backgroundColor: "purple", color: "white", padding: "10px 20px", borderRadius: "5px", border: "none", cursor: "pointer" }, children: label });
|
|
31
31
|
};
|
|
32
32
|
// Annotate the CommonJS export names for ESM import in node:
|
|
33
33
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/button/button.tsx
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
var Button = ({ label, onClick }) => {
|
|
4
|
-
return /* @__PURE__ */ jsx("button", { style: { backgroundColor: "purple", color: "white", padding: "10px 20px", borderRadius: "5px", border: "none", cursor: "pointer" }, children: label });
|
|
4
|
+
return /* @__PURE__ */ jsx("button", { onClick, style: { backgroundColor: "purple", color: "white", padding: "10px 20px", borderRadius: "5px", border: "none", cursor: "pointer" }, children: label });
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
Button
|
package/package.json
CHANGED
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
"name": "@nurix/ui-component-library",
|
|
3
|
+
"version": "1.0.1-stage.13",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsup src/index.ts --dts",
|
|
11
|
+
"storybook": "storybook dev -p 6006",
|
|
12
|
+
"build-storybook": "storybook build"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"react": ">=18 <19",
|
|
16
|
+
"react-dom": ">=18 <19"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"react": "^18.3.1",
|
|
20
|
+
"react-dom": "^18.3.1",
|
|
21
|
+
"@types/react": "^18.2.0",
|
|
22
|
+
"tsup": "^8.5.1",
|
|
23
|
+
"typescript": "^5.9.3",
|
|
24
|
+
"storybook": "^10.1.11",
|
|
25
|
+
"@storybook/react-vite": "^10.1.11",
|
|
26
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
27
|
+
"@storybook/addon-vitest": "^10.1.11",
|
|
28
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
29
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
30
|
+
"@storybook/addon-onboarding": "^10.1.11",
|
|
31
|
+
"vitest": "^4.0.16",
|
|
32
|
+
"playwright": "^1.57.0",
|
|
33
|
+
"@vitest/browser-playwright": "^4.0.16",
|
|
34
|
+
"@vitest/coverage-v8": "^4.0.16"
|
|
35
|
+
}
|
|
23
36
|
}
|