"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var import_jsx_runtime = require("react/jsx-runtime");
var import_react = __toESM(require("react"));
var import_react2 = require("@testing-library/react");
var import_yoga_icons = require("@gympass/yoga-icons");
var import_Theme = __toESM(require("../../Theme"));
var import__ = __toESM(require(".."));
describe("<Button />", () => {
  describe("Snapshots", () => {
    describe("primary buttons", () => {
      describe("with v3theme", () => {
        it("should match snapshot with v3theme Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { theme: import_Theme.v3theme, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, {}) })
          );
          expect(container).toMatchSnapshot();
        });
      });
      describe("Without props", () => {
        it("should match snapshot with default Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, {}) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with default Button with Icon", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { icon: import_yoga_icons.Booking }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with default Button and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with default Button with Icon and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { icon: import_yoga_icons.Booking, isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with outline Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, {}) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with outline Button with Icon", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { icon: import_yoga_icons.Booking }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with outline Button and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with outline Button with Icon and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { icon: import_yoga_icons.Booking, isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with text Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, {}) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with text Button with Icon", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { icon: import_yoga_icons.Booking }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with link Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Link, {}) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with icon Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with text icon and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
      });
      describe("With inverted prop", () => {
        it("should match snapshot with default Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { inverted: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with default Button and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { inverted: true, isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with default Button with Icon", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { inverted: true, icon: import_yoga_icons.Booking }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with default Button with Icon and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { inverted: true, icon: import_yoga_icons.Booking, isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with outline Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { inverted: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with outline Button and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { inverted: true, isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with outline Button with Icon", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { inverted: true, icon: import_yoga_icons.Booking }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with outline Button with Icon and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { inverted: true, icon: import_yoga_icons.Booking, isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with text Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { inverted: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with icon Button", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { inverted: true, icon: import_yoga_icons.Booking }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("should match snapshot with icon Button and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { inverted: true, icon: import_yoga_icons.Booking, isLoading: true }) })
          );
          expect(container).toMatchSnapshot();
        });
        describe("With small prop", () => {
          it("should match snapshot with default Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { small: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button when is Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { small: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { small: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button when is Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { small: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { small: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { small: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { small: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { icon: import_yoga_icons.Booking, small: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { icon: import_yoga_icons.Booking, small: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { icon: import_yoga_icons.Booking, small: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, small: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, small: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
        });
        describe("With full prop", () => {
          it("should match snapshot with default Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { full: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { full: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { full: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { full: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { full: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { full: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { full: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { full: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { full: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { full: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
        });
        describe("With disabled prop", () => {
          it("should match snapshot with default Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { disabled: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { disabled: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { disabled: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { disabled: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { disabled: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with link Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Link, { disabled: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { disabled: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { disabled: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { disabled: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { disabled: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { disabled: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { disabled: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { disabled: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
        });
      });
      describe("buttons rendering as an anchor", () => {
        it("Default Button with href prop", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { href: "http://www.gympass.com", target: "blank", children: "Default Button as an anchor" }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("Default Button with href prop and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { href: "http://www.gympass.com", target: "blank", isLoading: true, children: "Default Button as an anchor" }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("Link Button with href prop", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Link, { href: "http://www.gympass.com", target: "blank", children: "Link as an anchor" }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("Outline Button with href prop", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { href: "http://www.gympass.com", target: "blank", children: "Outline as an anchor" }) })
          );
          expect(container).toMatchSnapshot();
        });
        it("Outline Button with href prop and Loading", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
              import__.default.Outline,
              {
                href: "http://www.gympass.com",
                target: "blank",
                isLoading: true,
                children: "Outline as an anchor"
              }
            ) })
          );
          expect(container).toMatchSnapshot();
        });
        it("Text Button with href prop", () => {
          const { container } = (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { href: "http://www.gympass.com", target: "blank", children: "Text as an anchor" }) })
          );
          expect(container).toMatchSnapshot();
        });
      });
      describe("secondary buttons", () => {
        describe("Without props", () => {
          it("should match snapshot with default Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { secondary: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { secondary: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { icon: import_yoga_icons.Booking, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { secondary: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with link Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Link, { secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with link Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Link, { icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
        });
        describe("With inverted prop", () => {
          it("should match snapshot with default Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { inverted: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { inverted: true, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { inverted: true, icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { inverted: true, icon: import_yoga_icons.Booking, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { inverted: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { inverted: true, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { inverted: true, icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { inverted: true, icon: import_yoga_icons.Booking, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { inverted: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { inverted: true, icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { inverted: true, icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { inverted: true, icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { inverted: true, icon: import_yoga_icons.Booking, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
        });
        describe("With small prop", () => {
          it("should match snapshot with default Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { small: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { small: true, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { small: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { small: true, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { small: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { small: true, icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { small: true, icon: import_yoga_icons.Booking, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { icon: import_yoga_icons.Booking, small: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { icon: import_yoga_icons.Booking, small: true, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { icon: import_yoga_icons.Booking, small: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, small: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, small: true, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
        });
        describe("With full prop", () => {
          it("should match snapshot with default Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { full: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { full: true, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { full: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { full: true, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { full: true, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { full: true, icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { full: true, icon: import_yoga_icons.Booking, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { full: true, icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { full: true, icon: import_yoga_icons.Booking, secondary: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { full: true, icon: import_yoga_icons.Booking, secondary: true }) })
            );
            expect(container).toMatchSnapshot();
          });
        });
      });
      describe("disabled buttons", () => {
        describe("With disabled prop", () => {
          it("should match snapshot with default Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { disabled: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { disabled: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { disabled: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { disabled: true, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { disabled: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with link Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Link, { disabled: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { disabled: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with default Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { disabled: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { disabled: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with outline Button with Icon and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { disabled: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with text Button with Icon", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { disabled: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { disabled: true, icon: import_yoga_icons.Booking }) })
            );
            expect(container).toMatchSnapshot();
          });
          it("should match snapshot with icon Button and Loading", () => {
            const { container } = (0, import_react2.render)(
              /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { disabled: true, icon: import_yoga_icons.Booking, isLoading: true }) })
            );
            expect(container).toMatchSnapshot();
          });
        });
      });
    });
    describe("onClick prop", () => {
      it("should call onClick function when click on Button", () => {
        const onClickMock = jest.fn();
        const { getByText } = (0, import_react2.render)(
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { onClick: onClickMock, children: "Button" }) })
        );
        import_react2.fireEvent.click(getByText("Button"));
        expect(onClickMock).toHaveBeenCalled();
      });
      it("should call onClick function when click on Button.Outline", () => {
        const onClickMock = jest.fn();
        const { getByText } = (0, import_react2.render)(
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { onClick: onClickMock, children: "Button.Outline" }) })
        );
        import_react2.fireEvent.click(getByText("Button.Outline"));
        expect(onClickMock).toHaveBeenCalled();
      });
      it("should call onClick function when click on Button.Text", () => {
        const onClickMock = jest.fn();
        const { getByText } = (0, import_react2.render)(
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Text, { onClick: onClickMock, children: "Button.Text" }) })
        );
        import_react2.fireEvent.click(getByText("Button.Text"));
        expect(onClickMock).toHaveBeenCalled();
      });
      it("should call onClick function when click on Button.Icon", () => {
        const onClickMock = jest.fn();
        const { getByRole } = (0, import_react2.render)(
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Close, onClick: onClickMock }) })
        );
        import_react2.fireEvent.click(getByRole("button"));
        expect(onClickMock).toHaveBeenCalled();
      });
      it("should not call onClick function when click on Button disabled", () => {
        const onClickMock = jest.fn();
        const { getByText } = (0, import_react2.render)(
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { disabled: true, onClick: onClickMock, children: "Button" }) })
        );
        import_react2.fireEvent.click(getByText("Button"));
        expect(onClickMock).not.toHaveBeenCalled();
      });
      it("should not call onClick function when click on Button is loading", () => {
        const onClickMock = jest.fn();
        const { getByText } = (0, import_react2.render)(
          /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { isLoading: true, onClick: onClickMock, children: "Button" }) })
        );
        import_react2.fireEvent.click(getByText("Button"));
        expect(onClickMock).not.toHaveBeenCalled();
      });
    });
    describe("Loading prop", () => {
      describe("Default Button", () => {
        it("Text should not to be visible", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { isLoading: true, children: "Button" }) })
          );
          const text = import_react2.screen.getByText("Button");
          expect(text).toHaveStyle("color: transparent");
        });
        it("Icon should not to be visible", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { icon: import_yoga_icons.Booking, isLoading: true, "aria-label": "button", children: "Button" }) })
          );
          const button = import_react2.screen.getByRole("button", { name: "button" });
          const svg = (0, import_react2.within)(button).getByRole("img");
          expect(svg).toHaveStyle("fill: transparent");
        });
        it("Spinner should to be rendered", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { isLoading: true, children: "Button" }) })
          );
          const spinner = import_react2.screen.getByLabelText("loading-icon");
          expect(spinner).toBeVisible();
        });
        it("Button should to be disabled", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default, { isLoading: true, "aria-label": "button", children: "Button" }) })
          );
          const button = import_react2.screen.getByRole("button", { name: "button" });
          expect(button).toBeDisabled();
        });
      });
      describe("Outline Button", () => {
        it("Text should not to be visible", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { isLoading: true, children: "Button" }) })
          );
          const text = import_react2.screen.getByText("Button");
          expect(text).toHaveStyle("color: transparent");
        });
        it("Icon should not to be visible", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { icon: import_yoga_icons.Booking, isLoading: true, "aria-label": "button", children: "Button" }) })
          );
          const button = import_react2.screen.getByRole("button", { name: "button" });
          const svg = (0, import_react2.within)(button).getByRole("img");
          expect(svg).toHaveStyle("fill: transparent");
        });
        it("Spinner should to be rendered", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { isLoading: true, children: "Button" }) })
          );
          const spinner = import_react2.screen.getByLabelText("loading-icon");
          expect(spinner).toBeVisible();
        });
        it("Button should to be disabled", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Outline, { isLoading: true, "aria-label": "button", children: "Button" }) })
          );
          const button = import_react2.screen.getByRole("button", { name: "button" });
          expect(button).toBeDisabled();
        });
      });
      describe("Icon Button", () => {
        it("Icon should not to be visible", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, isLoading: true, "aria-label": "button" }) })
          );
          const button = import_react2.screen.getByRole("button", {
            name: "button"
          });
          const svg = (0, import_react2.within)(button).queryByRole("img");
          expect(svg).toBeNull();
        });
        it("Spinner should to be rendered", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, isLoading: true }) })
          );
          const spinner = import_react2.screen.getByLabelText("loading-icon");
          expect(spinner).toBeVisible();
        });
        it("Button should to be disabled", () => {
          (0, import_react2.render)(
            /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.default, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.default.Icon, { icon: import_yoga_icons.Booking, isLoading: true, "aria-label": "button" }) })
          );
          const button = import_react2.screen.getByRole("button", { name: "button" });
          expect(button).toBeDisabled();
        });
      });
    });
  });
});
