UNPKG

@abdalla-1/swisco

Version:
80 lines (79 loc) 2.34 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: !0 }); }, __copyProps = (to, from, except, desc) => { if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod); var Button_exports = {}; __export(Button_exports, { Button: () => Button }); module.exports = __toCommonJS(Button_exports); var import_jsx_runtime = require("react/jsx-runtime"), import_react = require("react"), import_tamagui = require("tamagui"), StyledButton = (0, import_tamagui.styled)(import_tamagui.Button, { backgroundColor: "$primary", color: "white", borderRadius: "$regular", paddingHorizontal: "$4", paddingVertical: "$2", fontSize: 16, fontWeight: "600", variants: { variant: { primary: { backgroundColor: "$primary", color: "white" }, secondary: { backgroundColor: "$secondary", color: "white" }, outline: { backgroundColor: "transparent", color: "$primary", borderWidth: 1, borderColor: "$primary" } }, size: { small: { paddingHorizontal: "$2", paddingVertical: "$1", fontSize: 14 }, medium: { paddingHorizontal: "$4", paddingVertical: "$2", fontSize: 16 }, large: { paddingHorizontal: "$6", paddingVertical: "$3", fontSize: 18 } } }, defaultVariants: { variant: "primary", size: "medium" } }), Button = function(param) { var { children, ...props } = param; return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledButton, { ...props, children }); }; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { Button }); //# sourceMappingURL=Button.js.map