UNPKG

@abdalla-1/swisco

Version:
70 lines (69 loc) 2.15 kB
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_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime"); const 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 = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledButton, { ...props, children }); //# sourceMappingURL=Button.js.map