@pearpages/heatmap 0.0.2
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 +2 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/package.json +41 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type ButtonProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
type?: "button" | "submit" | "reset";
|
|
8
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
9
|
+
declare function Button({ children, ariaLabel, type, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { Button };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
// src/Button.tsx
|
|
4
|
+
function Button({
|
|
5
|
+
children = "Click me",
|
|
6
|
+
ariaLabel = "Click me",
|
|
7
|
+
type = "button",
|
|
8
|
+
...props
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ jsx("button", { type, "aria-label": ariaLabel, tabIndex: 0, ...props, children });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { Button };
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Button.tsx"],"names":[],"mappings":";;;AAQA,SAAS,MAAA,CAAO;AAAA,EACd,QAAA,GAAW,UAAA;AAAA,EACX,SAAA,GAAY,UAAA;AAAA,EACZ,IAAA,GAAO,QAAA;AAAA,EACP,GAAG;AACL,CAAA,EAAgB;AACd,EAAA,uBACE,GAAA,CAAC,YAAO,IAAA,EAAY,YAAA,EAAY,WAAW,QAAA,EAAU,CAAA,EAAI,GAAG,KAAA,EACzD,QAAA,EACH,CAAA;AAEJ","file":"index.js","sourcesContent":["import { type ButtonHTMLAttributes, type ReactNode } from \"react\";\n\ntype ButtonProps = {\n children?: ReactNode;\n ariaLabel?: string;\n type?: \"button\" | \"submit\" | \"reset\";\n} & ButtonHTMLAttributes<HTMLButtonElement>;\n\nfunction Button({\n children = \"Click me\",\n ariaLabel = \"Click me\",\n type = \"button\",\n ...props\n}: ButtonProps) {\n return (\n <button type={type} aria-label={ariaLabel} tabIndex={0} {...props}>\n {children}\n </button>\n );\n}\nexport { Button };\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pearpages/heatmap",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/pearpages/heatmap"
|
|
7
|
+
},
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/pearpages/heatmap/issues"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/pearpages/heatmap#readme",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsup",
|
|
26
|
+
"dev": "tsup --watch",
|
|
27
|
+
"test": "vitest"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": ">=18",
|
|
31
|
+
"react-dom": ">=18"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@testing-library/react": "^16",
|
|
35
|
+
"@types/react": "^19.1.12",
|
|
36
|
+
"@types/react-dom": "^19.1.9",
|
|
37
|
+
"tsup": "^8",
|
|
38
|
+
"typescript": "^5",
|
|
39
|
+
"vitest": "^2"
|
|
40
|
+
}
|
|
41
|
+
}
|