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_stories_exports = {};
__export(Button_stories_exports, {
  Variants: () => Variants,
  default: () => Button_stories_default
});
module.exports = __toCommonJS(Button_stories_exports);
var import_jsx_runtime = require("react/jsx-runtime"), import_icons_ui = require("@truststack/icons-ui"), import_tamagui = require("tamagui"), import_Button = require("./Button"), import_storybook_utils = require("./storybook-utils"), Button_stories_default = {
  component: import_Button.Button
}, Render = function(param) {
  var { buttonProps = {}, title, loading } = param;
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_storybook_utils.RenderStage, {
    children: [
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H4, {
        children: title
      }),
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Button.Button, {
        variant: "elevated",
        ...buttonProps,
        children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Icon, {
            icon: import_icons_ui.Plus
          }),
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Text, {
            children: "Elevated"
          }),
          loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Spinner, {})
        ]
      }),
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Button.Button, {
        variant: "filled",
        ...buttonProps,
        children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Text, {
            children: "Filled"
          }),
          loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Spinner, {})
        ]
      }),
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Button.Button, {
        variant: "tonal",
        ...buttonProps,
        children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Text, {
            children: "Tonal"
          }),
          loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Spinner, {})
        ]
      }),
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Button.Button, {
        variant: "outlined",
        ...buttonProps,
        children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Text, {
            children: "Outlined"
          }),
          loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Spinner, {})
        ]
      }),
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Button.Button, {
        variant: "text",
        ...buttonProps,
        children: [
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Text, {
            children: "Text"
          }),
          loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.Button.Spinner, {})
        ]
      })
    ]
  });
}, Variants = function() {
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
    gap: "$2",
    w: "100%",
    children: [
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, {
        title: "Default"
      }),
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, {
        title: "Disabled",
        buttonProps: {
          disabled: !0
        }
      }),
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, {
        title: "Loading",
        loading: !0
      })
    ]
  });
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  Variants
});
//# sourceMappingURL=Button.stories.js.map
