"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__ = require("../..");
describe("<Tag />", () => {
  it("should match snapshot when v3Theme is settled", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { theme: import__.v3theme, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { children: "v3Theme" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { children: "default" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with custom icon and informative type", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "success", icon: import_yoga_icons.Building, children: "success with custom icon" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with without icon and informative type", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "success", children: "success without icon" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with variant prop", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { variant: "success", children: "success" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { variant: "informative", children: "informative" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { variant: "attention", children: "attention" })
      ] })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with variant prop and informative type", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "success", children: "success" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "informative", children: "informative" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "attention", children: "attention" })
      ] })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with variant and margin prop ", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { variant: "success", children: "success" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { mv: "medium", variant: "informative", children: "informative" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { variant: "attention", children: "attention" })
      ] })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with variant prop and informative type with margin prop", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "success", children: "success" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { mv: "medium", variant: "informative", children: "informative" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "attention", children: "attention" })
      ] })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with ellipsis prop", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { maxWidth: "10px", ellipsis: true, children: "Default with ellipsis" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with variant, informative type and ellipsis prop", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "success", maxWidth: "10px", ellipsis: true, children: "Success with ellipsis" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "attention", maxWidth: "10px", ellipsis: true, children: "Attention with ellipsis" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "informative", maxWidth: "10px", ellipsis: true, children: "Informative with ellipsis" })
      ] })
    );
    expect(container).toMatchSnapshot();
  });
});
