/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

const require_runtime = require('../../_virtual/_rolldown/runtime.js');
const require_index = require('../../node_modules/classnames/index.js');
const require_settings = require('../../settings.js');
const require_devtools = require('../../global/js/utils/devtools.js');
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
prop_types = require_runtime.__toESM(prop_types);
let _carbon_react = require("@carbon/react");
let _carbon_react_icons = require("@carbon/react/icons");

//#region src/components/StatusIndicator/StatusIndicatorStep.jsx
/**
* Copyright IBM Corp. 2024, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.pkg.prefix}--status-indicator-step`;
const componentName = "StatusIndicatorStep";
const defaults = { status: "inactive" };
/**
* An icon/description pair that describes one step of the `StatusIndicator`.
* @deprecated This component is deprecated
*/
let StatusIndicatorStep = react.default.forwardRef(({ className, description, errorMessage, status = defaults.status, ...rest }, ref) => {
	return /* @__PURE__ */ react.default.createElement("li", {
		...rest,
		className: (0, import_classnames.default)(blockClass, className, `${blockClass}--${status}`),
		ref,
		...require_devtools.getDevtoolsProps(componentName)
	}, /* @__PURE__ */ react.default.createElement("div", { className: `${blockClass}__details` }, /* @__PURE__ */ react.default.createElement("div", { className: `${blockClass}__icon` }, status === "inactive" && /* @__PURE__ */ react.default.createElement(_carbon_react_icons.CircleStroke, {
		size: 16,
		viewBox: "1 1 14 14"
	}), status === "active" && /* @__PURE__ */ react.default.createElement(_carbon_react.InlineLoading, null), status === "error" && /* @__PURE__ */ react.default.createElement(_carbon_react_icons.ErrorOutline, { size: 16 }), status === "finished" && /* @__PURE__ */ react.default.createElement(_carbon_react_icons.CheckmarkOutline, { size: 16 })), /* @__PURE__ */ react.default.createElement("div", { className: `${blockClass}__text` }, description)), status === "error" && errorMessage && /* @__PURE__ */ react.default.createElement("div", { className: `${blockClass}__error-message` }, errorMessage));
});
StatusIndicatorStep.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
StatusIndicatorStep = require_settings.pkg.checkComponentEnabled(StatusIndicatorStep, componentName);
StatusIndicatorStep.displayName = componentName;
StatusIndicatorStep.propTypes = {
	className: prop_types.default.string,
	description: prop_types.default.string.isRequired,
	errorMessage: prop_types.default.string,
	status: prop_types.default.oneOf([
		"inactive",
		"active",
		"error",
		"finished"
	]).isRequired
};

//#endregion
Object.defineProperty(exports, 'StatusIndicatorStep', {
  enumerable: true,
  get: function () {
    return StatusIndicatorStep;
  }
});