Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/app/components/fragment_configuration_fields/ButtonGroupField",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/form","@liferay/layout-js-components-web","frontend-js-components-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../prop_types/index"],(function(e,t,l){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroupField=function ButtonGroupField({field:e,onValueSelect:t,value:l}){var u;const d=(0,r.useId)(),s=(0,r.useId)(),[c,p]=(0,o.useControlledState)(l);return i.default.createElement(n.default.Group,null,i.default.createElement("label",{className:"sr-only",htmlFor:s},e.label),null===(u=e.typeOptions)||void 0===u?void 0:u.validValues.map((l=>i.default.createElement(a.ClayButtonWithIcon,{"aria-label":l.label,"aria-pressed":c===l.value,className:c===l.value?"bg-light":"text-secondary",displayType:"unstyled",key:l.value,onClick:()=>(l=>{t(e.name,l),p(l)})(l.value),size:"sm",symbol:l.icon,title:l.label,value:l.value}))),e.description?i.default.createElement("p",{className:"m-0 mt-1 small text-secondary",id:d},e.description):null)};var a=l("@frontend-taglib-clay$clayui/button"),n=_interopRequireDefault(l("@frontend-taglib-clay$clayui/form")),o=l("@liferay/layout-js-components-web"),r=l("frontend-js-components-web"),i=(_interopRequireDefault(l("liferay!frontend-js-react-web$prop-types")),_interopRequireDefault(l("liferay!frontend-js-react-web$react")));l("../../../prop_types/index");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=ButtonGroupField.js.map