"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__ = require("../..");
describe("<Progress />", () => {
  it("should match snapshot", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, {}),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100 }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 60 })
      ] })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with label string", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, label: { value: "Some decription here" } }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 65,
            label: { value: "Some decription here", placement: "right" }
          }
        )
      ] })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with label number", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 } }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 65,
            label: { value: 65, placement: "right" }
          }
        )
      ] })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with all variants", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "primary"
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "secondary"
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "vibin" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "hope" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "energy" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "relax" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "peace" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "verve" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "uplift" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "deepPurple"
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
          import__.Progress,
          {
            max: 100,
            value: 20,
            label: { value: 20 },
            variant: "stamina"
          }
        ),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "dark" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "medium" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "deep" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "light" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "clear" }),
        /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { max: 100, value: 20, label: { value: 20 }, variant: "white" })
      ] })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with positions prop system", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { position: "fixed", top: "small", left: "small" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with spacing prop system", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { m: "small", padding: "medium" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with background color prop system", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { backgroundColor: "primary" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with border prop system", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { b: "small", bRadius: "small" }) })
    );
    expect(container).toMatchSnapshot();
  });
  it("should match snapshot with elevation prop system", () => {
    const { container } = (0, import_react2.render)(
      /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Progress, { elevation: "small" }) })
    );
    expect(container).toMatchSnapshot();
  });
});
