"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_react_native = require("@testing-library/react-native");
var import_yoga_icons = require("@gympass/yoga-icons");
var import__ = require("../..");
describe("<Tag />", () => {
  it("should match snapshot when v3Theme is settled", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { theme: import__.v3theme, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { children: "v3Theme" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { children: "default" }) })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with custom icon and informative type", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "success", icon: import_yoga_icons.Building, children: "success with custom icon" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "success", icon: import_yoga_icons.Building, small: true, children: "success with custom icon" })
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with without icon and informative type", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "success", children: "success without icon" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "success", small: true, children: "success without icon" })
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with variant prop", () => {
    const { toJSON } = (0, import_react_native.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" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag, { variant: "attention", small: true, children: "attention small" })
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with variant prop and informative type", () => {
    const { toJSON } = (0, import_react_native.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "neutral", children: "neutral" }),
        /* @__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" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Tag.Informative, { variant: "attention", small: true, children: "attention small" })
      ] })
    );
    expect(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with variant and margin prop ", () => {
    const { toJSON } = (0, import_react_native.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(toJSON()).toMatchSnapshot();
  });
  it("should match snapshot with variant prop and informative type with margin prop", () => {
    const { toJSON } = (0, import_react_native.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(toJSON()).toMatchSnapshot();
  });
});
