@akenzhetayev/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.
@@ -0,0 +1,3 @@
1
+ declare const Button: any;
2
+
3
+ export { Button };
@@ -0,0 +1,3 @@
1
+ declare const Button: any;
2
+
3
+ export { Button };
package/dist/index.js ADDED
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Button: () => Button
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/Button/Button.tsx
28
+ var import_tamagui = require("tamagui");
29
+ var Button = (0, import_tamagui.styled)(import_tamagui.Button, {
30
+ name: "Button",
31
+ borderRadius: "$2",
32
+ backgroundColor: "$brand",
33
+ color: "$color",
34
+ pressStyle: { opacity: 0.85 },
35
+ variants: {
36
+ tone: {
37
+ primary: { backgroundColor: "$brand" },
38
+ neutral: { backgroundColor: "$cardBackground", color: "$color" }
39
+ },
40
+ size: {
41
+ sm: { height: 36, paddingHorizontal: "$3" },
42
+ md: { height: 44, paddingHorizontal: "$4" }
43
+ }
44
+ },
45
+ defaultVariants: {
46
+ tone: "primary",
47
+ size: "md"
48
+ }
49
+ });
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ Button
53
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,26 @@
1
+ // src/Button/Button.tsx
2
+ import { styled, Button as TButton } from "tamagui";
3
+ var Button = styled(TButton, {
4
+ name: "Button",
5
+ borderRadius: "$2",
6
+ backgroundColor: "$brand",
7
+ color: "$color",
8
+ pressStyle: { opacity: 0.85 },
9
+ variants: {
10
+ tone: {
11
+ primary: { backgroundColor: "$brand" },
12
+ neutral: { backgroundColor: "$cardBackground", color: "$color" }
13
+ },
14
+ size: {
15
+ sm: { height: 36, paddingHorizontal: "$3" },
16
+ md: { height: 44, paddingHorizontal: "$4" }
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ tone: "primary",
21
+ size: "md"
22
+ }
23
+ });
24
+ export {
25
+ Button
26
+ };
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@akenzhetayev/ui",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "sideEffects": false,
12
+ "scripts": {
13
+ "build": "tsup src/index.ts --tsconfig tsconfig.json --format esm,cjs --dts --external react --external react-dom --external react-native",
14
+ "typecheck": "tsc -p tsconfig.json --noEmit"
15
+ },
16
+ "dependencies": {
17
+ "@acme/config": "^0.0.1"
18
+ },
19
+ "peerDependencies": {
20
+ "react": "*",
21
+ "react-native": "*",
22
+ "react-dom": "*",
23
+ "tamagui": "*"
24
+ },
25
+ "devDependencies": {
26
+ "tsup": "^8.0.0",
27
+ "typescript": "^5.4.0"
28
+ }
29
+ }