@ap-gen/ui 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/index.mjs CHANGED
@@ -1840,7 +1840,7 @@ function Tab$1({minimized=false,activated=false,description,tabName,iconName,onC
1840
1840
 
1841
1841
  const List$1={Default,Compact,Tab: Tab$1};
1842
1842
 
1843
- function Popover({children,type,options,headline,primaryButton,secondaryButton,onChange,value,getOptionDisabled}){return /*#__PURE__*/jsxs(Container$m,{type:type,children:[headline&&/*#__PURE__*/jsx(HeaderArea,{type:type,children:/*#__PURE__*/jsx(Text,{color:"color.foreground.neutral.secondary",variant:type==="component"?"BodyM":"BodyS",children:headline})}),options&&type!=="component"&&/*#__PURE__*/jsx(ItemArea,{children:options.map((option,index)=>/*#__PURE__*/jsx(List$1.Compact,{type:type==="shortcut"?"icon":"radio",label:option.label,activated:option.value===value,iconName:type==="shortcut"?"add":undefined,onChange:()=>onChange===null||onChange===void 0?void 0:onChange(option.value),disabled:getOptionDisabled?getOptionDisabled===null||getOptionDisabled===void 0?void 0:getOptionDisabled(option.value):false},index))}),children&&type==="component"&&/*#__PURE__*/jsx(ComnponentArea,{children:/*#__PURE__*/jsx(ComponentPlaceHolder,{children:children})}),type==="component"&&(primaryButton||secondaryButton)&&/*#__PURE__*/jsxs(ButtonArea,{children:[primaryButton&&primaryButton,secondaryButton&&secondaryButton]})]})}const Container$m=styled.div`
1843
+ function Popover({children,type,options,headline,primaryButton,secondaryButton,onChange,value,getOptionDisabled,style}){return /*#__PURE__*/jsxs(Container$m,{type:type,style:style,children:[headline&&/*#__PURE__*/jsx(HeaderArea,{type:type,children:/*#__PURE__*/jsx(Text,{color:"color.foreground.neutral.secondary",variant:type==="component"?"BodyM":"BodyS",children:headline})}),options&&type!=="component"&&/*#__PURE__*/jsx(ItemArea,{children:options.map((option,index)=>/*#__PURE__*/jsx(List$1.Compact,{type:type==="shortcut"?"icon":"radio",label:option.label,activated:option.value===value,iconName:type==="shortcut"?"add":undefined,onChange:()=>onChange===null||onChange===void 0?void 0:onChange(option.value),disabled:getOptionDisabled?getOptionDisabled===null||getOptionDisabled===void 0?void 0:getOptionDisabled(option.value):false},index))}),children&&type==="component"&&/*#__PURE__*/jsx(ComnponentArea,{children:/*#__PURE__*/jsx(ComponentPlaceHolder,{children:children})}),type==="component"&&(primaryButton||secondaryButton)&&/*#__PURE__*/jsxs(ButtonArea,{children:[primaryButton&&primaryButton,secondaryButton&&secondaryButton]})]})}const Container$m=styled.div`
1844
1844
  display: flex;
1845
1845
  width: 100%;
1846
1846
  ${({type})=>type!=="component"&&"max-height: 400px;"}