UNPKG

@hashicorp/design-system-components

Version:
17 lines (12 loc) 1.33 kB
import TemplateOnlyComponent from '@ember/component/template-only'; 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::Form::Fieldset\n class=\"hds-form-group--radio-cards\"\n @layout={{if (eq @layout \"vertical\") \"vertical\" \"horizontal\"}}\n @isRequired={{@isRequired}}\n @isOptional={{@isOptional}}\n ...attributes\n as |F|\n>\n {{! Notice: the order of the elements is not relevant here, because it\'s controlled at \"Hds::Form::Fieldset\" component level }}\n {{yield (hash Legend=F.Legend HelperText=F.HelperText Error=F.Error)}}\n <F.Control>\n {{yield\n (hash\n RadioCard=(component\n \"hds/form/radio-card\"\n name=@name\n alignment=@alignment\n controlPosition=@controlPosition\n extraAriaDescribedBy=F.ariaDescribedBy\n )\n )\n }}\n </F.Control>\n</Hds::Form::Fieldset>"); /** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ const HdsFormRadioCardGroup = TemplateOnlyComponent(); var group = setComponentTemplate(TEMPLATE, HdsFormRadioCardGroup); export { group as default }; //# sourceMappingURL=group.js.map