/**
 * Copyright IBM Corp. 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.
 */

import "../../globals/settings.js";
import { carbonElement } from "../../globals/decorators/carbon-element.js";
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js";
import unordered_list_default from "./unordered-list.js";
import { html } from "lit";
import { property } from "lit/decorators.js";
import { classMap } from "lit/directives/class-map.js";
//#region src/components/list/ordered-list.ts
/**
* Copyright IBM Corp. 2019, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Ordered list.
*
* @element cds-ordered-list
*/
let CDSOrderedList = class CDSOrderedList extends unordered_list_default {
	constructor(..._args) {
		super(..._args);
		this.native = false;
	}
	render() {
		return html`
      <ol class="${classMap({
			[`cds--list--ordered`]: !this.native,
			[`cds--list--ordered--native`]: this.native,
			[`cds--list--nested`]: this.getAttribute("slot") === "nested" || this.nested,
			[`cds--list--expressive`]: this.isExpressive
		})}">
        <slot></slot>
      </ol>
    `;
	}
};
__decorate([property({
	type: Boolean,
	reflect: true
})], CDSOrderedList.prototype, "native", void 0);
CDSOrderedList = __decorate([carbonElement(`cds-ordered-list`)], CDSOrderedList);
var ordered_list_default = CDSOrderedList;
//#endregion
export { ordered_list_default as default };

//# sourceMappingURL=ordered-list.js.map