@carbon/ibm-products-web-components
Version:
Carbon for IBM Products Web Components
54 lines (52 loc) • 1.6 kB
JavaScript
/**
* 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.
*/
import "../../globals/settings.js";
import { __decorate } from "../../_virtual/_@oxc-project_runtime@0.127.0/helpers/decorate.js";
import add_select_default$1 from "./add-select.scss.js";
import { LitElement, html } from "lit";
import { property } from "lit/decorators.js";
import { carbonElement } from "@carbon/web-components/es/globals/decorators/carbon-element.js";
//#region src/components/add-select/add-select.ts
/**
* @license
*
* 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.
*/
const blockClass = `c4p--add-select__next`;
/**
* Add Select wrapper component - provides context for child components
* @element c4p-add-select
* @slot default - The main content area containing c4p-add-select-body
*/
let CDSAddSelect = class CDSAddSelect extends LitElement {
constructor(..._args) {
super(..._args);
this.multi = false;
}
render() {
return html`
<div class="${blockClass}">
<slot></slot>
</div>
`;
}
static {
this.styles = add_select_default$1;
}
};
__decorate([property({
type: Boolean,
reflect: true
})], CDSAddSelect.prototype, "multi", void 0);
CDSAddSelect = __decorate([carbonElement(`c4p-add-select`)], CDSAddSelect);
var add_select_default = CDSAddSelect;
//#endregion
export { add_select_default as default };
//# sourceMappingURL=add-select.js.map