"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 __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var NumberedList_exports = {};
__export(NumberedList_exports, {
  default: () => NumberedList
});
module.exports = __toCommonJS(NumberedList_exports);
var import_react = __toESM(require("react"));
var import_styled_components = __toESM(require("styled-components"));
var import_Flex = __toESM(require("../../Flex"));
var import_Text = __toESM(require("../../../asorted/Text"));
var import_helpers = require("../../../../styles/helpers");
function NumberedList({ steps, bgIndexColor, indexColor, textColor }) {
  const { colors } = (0, import_styled_components.useTheme)();
  const backgroundIndexColor = bgIndexColor ?? colors.primary.c80;
  const indexTextColor = indexColor ?? colors.neutral.c00;
  const mainTextColor = textColor ?? (0, import_helpers.rgba)(colors.neutral.c100, 0.7);
  return /* @__PURE__ */ import_react.default.createElement(import_Flex.default, { flexDirection: "column", rowGap: "14px" }, steps == null ? void 0 : steps.map((step, index) => /* @__PURE__ */ import_react.default.createElement(import_Flex.default, { key: index, flexDirection: "row", alignItems: "center" }, NumberItem(index + 1, backgroundIndexColor, indexTextColor), typeof step.element === "string" ? /* @__PURE__ */ import_react.default.createElement(
    import_Text.default,
    {
      key: index,
      fontSize: 14,
      variant: "body",
      color: mainTextColor,
      ml: "12px",
      fontWeight: "500",
      flex: 1
    },
    step.element
  ) : step.element)));
}
const NumberItem = (index, bgColor, color) => {
  return /* @__PURE__ */ import_react.default.createElement(StyledNumberItem, { bgColor }, /* @__PURE__ */ import_react.default.createElement(import_Text.default, { color, fontWeight: "900", fontSize: "11px" }, index));
};
const StyledNumberItem = (0, import_styled_components.default)(import_Flex.default)`
  border-radius: 50%;
  background-color: ${(p) => p.bgColor};
  align-items: center;
  justify-content: center;
  height: 16px;
  width: 16px;
`;
//# sourceMappingURL=index.js.map
