@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.
@@ -12,5 +12,6 @@ export type PopoverProps = {
12
12
  primaryButton?: React.ReactNode;
13
13
  secondaryButton?: React.ReactNode;
14
14
  onChange?: (value: string) => void;
15
+ style?: React.CSSProperties;
15
16
  };
16
- export declare function Popover({ children, type, options, headline, primaryButton, secondaryButton, onChange, value, getOptionDisabled, }: PopoverProps): import("@emotion/react/jsx-runtime").JSX.Element;
17
+ export declare function Popover({ children, type, options, headline, primaryButton, secondaryButton, onChange, value, getOptionDisabled, style, }: PopoverProps): import("@emotion/react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -1867,7 +1867,7 @@ function Tab$1({minimized=false,activated=false,description,tabName,iconName,onC
1867
1867
 
1868
1868
  const List$1={Default,Compact,Tab: Tab$1};
1869
1869
 
1870
- function Popover({children,type,options,headline,primaryButton,secondaryButton,onChange,value,getOptionDisabled}){return /*#__PURE__*/jsxRuntime.jsxs(Container$m,{type:type,children:[headline&&/*#__PURE__*/jsxRuntime.jsx(HeaderArea,{type:type,children:/*#__PURE__*/jsxRuntime.jsx(Text,{color:"color.foreground.neutral.secondary",variant:type==="component"?"BodyM":"BodyS",children:headline})}),options&&type!=="component"&&/*#__PURE__*/jsxRuntime.jsx(ItemArea,{children:options.map((option,index)=>/*#__PURE__*/jsxRuntime.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__*/jsxRuntime.jsx(ComnponentArea,{children:/*#__PURE__*/jsxRuntime.jsx(ComponentPlaceHolder,{children:children})}),type==="component"&&(primaryButton||secondaryButton)&&/*#__PURE__*/jsxRuntime.jsxs(ButtonArea,{children:[primaryButton&&primaryButton,secondaryButton&&secondaryButton]})]})}const Container$m=styled__default["default"].div`
1870
+ function Popover({children,type,options,headline,primaryButton,secondaryButton,onChange,value,getOptionDisabled,style}){return /*#__PURE__*/jsxRuntime.jsxs(Container$m,{type:type,style:style,children:[headline&&/*#__PURE__*/jsxRuntime.jsx(HeaderArea,{type:type,children:/*#__PURE__*/jsxRuntime.jsx(Text,{color:"color.foreground.neutral.secondary",variant:type==="component"?"BodyM":"BodyS",children:headline})}),options&&type!=="component"&&/*#__PURE__*/jsxRuntime.jsx(ItemArea,{children:options.map((option,index)=>/*#__PURE__*/jsxRuntime.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__*/jsxRuntime.jsx(ComnponentArea,{children:/*#__PURE__*/jsxRuntime.jsx(ComponentPlaceHolder,{children:children})}),type==="component"&&(primaryButton||secondaryButton)&&/*#__PURE__*/jsxRuntime.jsxs(ButtonArea,{children:[primaryButton&&primaryButton,secondaryButton&&secondaryButton]})]})}const Container$m=styled__default["default"].div`
1871
1871
  display: flex;
1872
1872
  width: 100%;
1873
1873
  ${({type})=>type!=="component"&&"max-height: 400px;"}