/**
 * 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');
const require_constants = require('./constants.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");

//#region src/components/DescriptionList/DescriptionList.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}--description-list`;
const componentName = "DescriptionList";
const defaults = {
	border: false,
	size: require_constants.DescriptionListSize.Medium
};
/**
* Type layouts provide an orderly layout of terms and definitions.
* @deprecated This component is deprecated
*/
let DescriptionList = react.default.forwardRef(({ border = defaults.border, children, className, size = defaults.size, ...rest }, ref) => {
	return /* @__PURE__ */ react.default.createElement("div", {
		...rest,
		className: (0, import_classnames.default)(blockClass, {
			[`${blockClass}--bordered`]: border,
			[`${blockClass}--${size}`]: size
		}, className),
		ref,
		...require_devtools.getDevtoolsProps(componentName)
	}, /* @__PURE__ */ react.default.createElement(_carbon_react.StructuredListWrapper, {
		role: "table",
		selection: false
	}, children));
});
DescriptionList.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
DescriptionList = require_settings.pkg.checkComponentEnabled(DescriptionList, componentName);
DescriptionList.displayName = componentName;
DescriptionList.propTypes = {
	border: prop_types.default.bool,
	children: prop_types.default.node,
	className: prop_types.default.string,
	size: prop_types.default.oneOf(Object.values(require_constants.DescriptionListSize))
};

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