mikkkkke-ui-kit 1.0.0

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.
@@ -0,0 +1,8 @@
1
+ // Button.stories.jsx
2
+ import Button from "./Button";
3
+
4
+ export default { title: "Button", component: Button };
5
+
6
+ export const Default = {
7
+ args: { label: "Click Me" }
8
+ };
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "mikkkkke-ui-kit",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs"
13
+ }
package/src/Button.jsx ADDED
@@ -0,0 +1,11 @@
1
+ // Button.jsx
2
+ export default function Button({ label, disabled }) {
3
+ return (
4
+ <button
5
+ aria-disabled={disabled}
6
+ disabled={disabled}
7
+ >
8
+ {label}
9
+ </button>
10
+ );
11
+ }
package/src/Input.jsx ADDED
@@ -0,0 +1,10 @@
1
+ // Input.jsx
2
+ export default function Input({ label, error, ...props }) {
3
+ return (
4
+ <div>
5
+ <label>{label}</label>
6
+ <input aria-invalid={!!error} {...props} />
7
+ {error && <span role="alert">{error}</span>}
8
+ </div>
9
+ );
10
+ }
package/src/index.js ADDED
@@ -0,0 +1,3 @@
1
+ // src/index.js
2
+ export { default as Button } from "./Button";
3
+ export { default as Input } from "./Input";