/**
 * 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 list_default from "./list.scss.js";
import { LitElement, html } from "lit";
import { property } from "lit/decorators.js";
import { classMap } from "lit/directives/class-map.js";
//#region src/components/list/unordered-list.ts
/**
* Copyright IBM Corp. 2019, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Unordered list.
*
* @element cds-unordered-list
*/
let CDSUnorderedList = class CDSUnorderedList extends LitElement {
	constructor(..._args) {
		super(..._args);
		this.isExpressive = false;
		this.nested = false;
	}
	connectedCallback() {
		if (this.closest(this.constructor.selectorListItem) || this.nested) this.setAttribute("slot", "nested");
		else this.removeAttribute("slot");
		super.connectedCallback();
	}
	render() {
		return html`
      <ul class="${classMap({
			[`cds--list--unordered`]: true,
			[`cds--list--nested`]: this.getAttribute("slot") === "nested" || this.nested,
			[`cds--list--expressive`]: this.isExpressive
		})}">
        <slot></slot>
      </ul>
    `;
	}
	/**
	* A selector that will return list item.
	*/
	static get selectorListItem() {
		return `cds-list-item`;
	}
	static {
		this.styles = list_default;
	}
};
__decorate([property({
	type: Boolean,
	reflect: true,
	attribute: "is-expressive"
})], CDSUnorderedList.prototype, "isExpressive", void 0);
__decorate([property({ type: Boolean })], CDSUnorderedList.prototype, "nested", void 0);
CDSUnorderedList = __decorate([carbonElement(`cds-unordered-list`)], CDSUnorderedList);
var unordered_list_default = CDSUnorderedList;
//#endregion
export { unordered_list_default as default };

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