@adoptaunabuelo/react-components 0.1.21 → 0.1.22

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ModalPrimaryProps } from './ModalPrimary';
3
- declare const ModalComponent: (props: ModalProps) => import("react/jsx-runtime").JSX.Element;
2
+ import { ModalPrimaryProps, ModalRef } from './ModalPrimary';
3
+ declare const ModalComponent: import("react").ForwardRefExoticComponent<ModalProps & import("react").RefAttributes<ModalRef>>;
4
4
  export default ModalComponent;
5
5
  export interface ModalProps extends ModalPrimaryProps {
6
6
  options?: Array<{
package/dist/esm/index.js CHANGED
@@ -656,7 +656,7 @@ var r="none",n="contents",a=/input|select|textarea|button|object|iframe/;functio
656
656
  `,Separator=Ye.div`
657
657
  content: none;
658
658
  margin-bottom: 24px;
659
- `,WebView=Ye.iframe``,ModalComponent=e=>{const t=__rest(e,["children"]);return"form"===e.type?jsx(ModalComponent$1,Object.assign({},t,{children:e.options&&e.options.map(((e,t)=>e.hidden?null:"separator"===e.id?jsx(Separator,{},"separator-"+t):jsxs(Row,{children:[jsx(LabelColumn,{children:jsx(Text$1,Object.assign({type:"c1",weight:"medium"},{children:e.title}))}),jsx(DataColumn,{children:e.Data})]},"option-"+e.id)))})):"web"===e.type?jsx(ModalComponent$1,Object.assign({},t,{children:jsx(WebView,{id:"web-iframe",src:e.url,width:"100%",height:"100%",style:{border:"none"}})})):jsx(ModalComponent$1,Object.assign({},e))},Container$5=Ye.div`
659
+ `,WebView=Ye.iframe``,ModalComponent=forwardRef(((e,t)=>"form"===e.type?jsx(ModalComponent$1,Object.assign({ref:t},e,{children:e.options&&e.options.map(((e,t)=>e.hidden?null:"separator"===e.id?jsx(Separator,{},"separator-"+t):jsxs(Row,{children:[jsx(LabelColumn,{children:jsx(Text$1,Object.assign({type:"c1",weight:"medium"},{children:e.title}))}),jsx(DataColumn,{children:e.Data})]},"option-"+e.id)))})):"web"===e.type?jsx(ModalComponent$1,Object.assign({ref:t},e,{children:jsx(WebView,{id:"web-iframe",src:e.url,width:"100%",height:"100%",style:{border:"none"}})})):jsx(ModalComponent$1,Object.assign({ref:t},e)))),Container$5=Ye.div`
660
660
  position: relative;
661
661
  `,FilterView$3=Ye.div`
662
662
  position: absolute;