@hashicorp/design-system-components
Version:
Helios Design System Components
31 lines (26 loc) • 1.18 kB
JavaScript
import Component from '@glimmer/component';
import { assert } from '@ember/debug';
import { precompileTemplate } from '@ember/template-compilation';
import { setComponentTemplate } from '@ember/component';
var TEMPLATE = precompileTemplate("{{!\n Copyright (c) HashiCorp, Inc.\n SPDX-License-Identifier: MPL-2.0\n}}\n<Hds::Text::Body\n class=\"hds-dropdown-list-item hds-dropdown-list-item--variant-description\"\n @tag=\"li\"\n @size=\"100\"\n @weight=\"regular\"\n @color=\"faint\"\n ...attributes\n>\n {{this.text}}\n</Hds::Text::Body>");
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
class HdsDropdownListItemDescription extends Component {
/**
* @param text
* @type {string}
* @description The text of the item. If no text value is defined an error will be thrown
*/
get text() {
const {
text
} = this.args;
assert(' for "Hds::Dropdown::ListItem::Description" must have a valid value', text !== undefined);
return text;
}
}
setComponentTemplate(TEMPLATE, HdsDropdownListItemDescription);
export { HdsDropdownListItemDescription as default };
//# sourceMappingURL=description.js.map