aalex23-ui 0.0.1

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 ADDED
@@ -0,0 +1 @@
1
+ # UI components & Layouts
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
4
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
+ children: React.ReactNode;
6
+ }
7
+ declare const Button: ({ children, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
8
+
9
+ export { Button, type ButtonProps };
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
4
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
+ children: React.ReactNode;
6
+ }
7
+ declare const Button: ({ children, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
8
+
9
+ export { Button, type ButtonProps };
package/dist/index.js ADDED
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ Button: () => Button
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
28
+ // src/components/Button.tsx
29
+ var import_jsx_runtime = require("react/jsx-runtime");
30
+ var Button = ({ children, ...props }) => {
31
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { style: { padding: "10px 20px", borderRadius: "5px" }, ...props, children });
32
+ };
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ Button
36
+ });
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/components/Button.tsx"],"sourcesContent":["export * from './components/Button';\r\n// Exportez vos autres composants et templates ici","import React from 'react';\r\n\r\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\r\n children: React.ReactNode;\r\n}\r\n\r\nexport const Button = ({ children, ...props }: ButtonProps) => {\r\n return (\r\n <button style={{ padding: '10px 20px', borderRadius: '5px' }} {...props}>\r\n {children}\r\n </button>\r\n );\r\n};"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACQI;AAFG,IAAM,SAAS,CAAC,EAAE,UAAU,GAAG,MAAM,MAAmB;AAC7D,SACE,4CAAC,YAAO,OAAO,EAAE,SAAS,aAAa,cAAc,MAAM,GAAI,GAAG,OAC/D,UACH;AAEJ;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ // src/components/Button.tsx
4
+ import { jsx } from "react/jsx-runtime";
5
+ var Button = ({ children, ...props }) => {
6
+ return /* @__PURE__ */ jsx("button", { style: { padding: "10px 20px", borderRadius: "5px" }, ...props, children });
7
+ };
8
+ export {
9
+ Button
10
+ };
11
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Button.tsx"],"sourcesContent":["import React from 'react';\r\n\r\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\r\n children: React.ReactNode;\r\n}\r\n\r\nexport const Button = ({ children, ...props }: ButtonProps) => {\r\n return (\r\n <button style={{ padding: '10px 20px', borderRadius: '5px' }} {...props}>\r\n {children}\r\n </button>\r\n );\r\n};"],"mappings":";;;AAQI;AAFG,IAAM,SAAS,CAAC,EAAE,UAAU,GAAG,MAAM,MAAmB;AAC7D,SACE,oBAAC,YAAO,OAAO,EAAE,SAAS,aAAa,cAAc,MAAM,GAAI,GAAG,OAC/D,UACH;AAEJ;","names":[]}
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "aalex23-ui",
3
+ "version": "0.0.1",
4
+ "description": "UI components for aalex23",
5
+ "repository": {
6
+ "url": ""
7
+ },
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.mjs",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.mjs",
15
+ "require": "./dist/index.js"
16
+ }
17
+ },
18
+ "scripts": {
19
+ "build": "tsup",
20
+ "dev": "tsup --watch"
21
+ },
22
+ "keywords": [],
23
+ "author": "aalex23",
24
+ "license": "MIT",
25
+ "type": "commonjs",
26
+ "peerDependencies": {
27
+ "react": ">=19",
28
+ "react-dom": ">=19"
29
+ },
30
+ "devDependencies": {
31
+ "@types/react": "^19.2.14",
32
+ "react": "^19.2.4",
33
+ "react-dom": "^19.2.4",
34
+ "tsup": "^8.5.1",
35
+ "typescript": "^5.9.3"
36
+ }
37
+ }