@kopexa/button 0.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,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+
4
+ type ButtonProps = ComponentProps<"button">;
5
+ declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
6
+
7
+ export { Button, type ButtonProps };
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+
4
+ type ButtonProps = ComponentProps<"button">;
5
+ declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
6
+
7
+ export { Button, type ButtonProps };
package/dist/button.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/button.tsx
22
+ var button_exports = {};
23
+ __export(button_exports, {
24
+ Button: () => Button
25
+ });
26
+ module.exports = __toCommonJS(button_exports);
27
+ var import_theme = require("@kopexa/theme");
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ var Button = (props) => {
30
+ const { type = "button", ...rest } = props;
31
+ const styles = (0, import_theme.button)();
32
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type, className: styles, ...rest });
33
+ };
34
+ // Annotate the CommonJS export names for ESM import in node:
35
+ 0 && (module.exports = {
36
+ Button
37
+ });
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ Button
4
+ } from "./chunk-JVF4QGRI.mjs";
5
+ export {
6
+ Button
7
+ };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // src/button.tsx
4
+ import { button } from "@kopexa/theme";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var Button = (props) => {
7
+ const { type = "button", ...rest } = props;
8
+ const styles = button();
9
+ return /* @__PURE__ */ jsx("button", { type, className: styles, ...rest });
10
+ };
11
+
12
+ export {
13
+ Button
14
+ };
@@ -0,0 +1,3 @@
1
+ export { Button, ButtonProps } from './button.mjs';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
@@ -0,0 +1,3 @@
1
+ export { Button, ButtonProps } from './button.js';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
package/dist/index.js ADDED
@@ -0,0 +1,39 @@
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/button.tsx
29
+ var import_theme = require("@kopexa/theme");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var Button = (props) => {
32
+ const { type = "button", ...rest } = props;
33
+ const styles = (0, import_theme.button)();
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type, className: styles, ...rest });
35
+ };
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ Button
39
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ Button
4
+ } from "./chunk-JVF4QGRI.mjs";
5
+ export {
6
+ Button
7
+ };
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@kopexa/button",
3
+ "version": "0.0.0",
4
+ "description": "Buttons allow users to perform actions and choose with a single tap.",
5
+ "keywords": [
6
+ "button"
7
+ ],
8
+ "author": "Kopexa <hello@kopexa.com>",
9
+ "homepage": "https://kopexa.com",
10
+ "license": "MIT",
11
+ "main": "dist/index.js",
12
+ "sideEffects": false,
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/kopexa-grc/sight.git",
22
+ "directory": "packages/components/button"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/kopexa-grc/sight/issues"
26
+ },
27
+ "peerDependencies": {
28
+ "react": ">=18 || >=19.0.0-rc.0",
29
+ "react-dom": ">=18 || >=19.0.0-rc.0",
30
+ "framer-motion": ">=11.5.6 || >=12.0.0-alpha.1",
31
+ "@kopexa/theme": "0.0.0"
32
+ },
33
+ "dependencies": {},
34
+ "clean-package": "../../../clean-package.config.json",
35
+ "module": "dist/index.mjs",
36
+ "types": "dist/index.d.ts",
37
+ "exports": {
38
+ ".": {
39
+ "types": "./dist/index.d.ts",
40
+ "import": "./dist/index.mjs",
41
+ "require": "./dist/index.js"
42
+ },
43
+ "./package.json": "./package.json"
44
+ },
45
+ "scripts": {
46
+ "build": "tsup src --dts",
47
+ "dev": "pnpm build:fast --watch",
48
+ "clean": "rimraf dist .turbo",
49
+ "typecheck": "tsc --noEmit",
50
+ "build:fast": "tsup src"
51
+ }
52
+ }