@frigade/react 2.0.13 → 2.0.15

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/dist/index.cjs CHANGED
@@ -65,6 +65,18 @@ var Jo=Object.defineProperty;var Xo=(e=>typeof require<"u"?require:typeof Proxy<
65
65
  }
66
66
  `,Cr=()=>jsxRuntime.jsx(l,{as:"svg",color:"primary.foreground",width:"10px",height:"8px",viewBox:"0 0 10 8",fill:"none",children:jsxRuntime.jsx("path",{d:"M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function Sr({checked:e=!1}){return jsxRuntime.jsx(l,{backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",padding:"0",part:"field-radio-value",position:"relative",height:"22px",width:"22px",children:e&&jsxRuntime.jsx(l,{alignItems:"center",bg:"green500",borderWidth:"md",borderStyle:"solid",borderColor:"green500",borderRadius:"100%",display:"flex",height:"calc(100% + 2px)",justifyContent:"center",left:"-1px",part:"field-radio-indicator",position:"absolute",top:"-1px",width:"calc(100% + 2px)",children:jsxRuntime.jsx(Cr,{})})})}function Re({children:e}){return jsxRuntime.jsx(Y__namespace.Content,{asChild:!0,children:jsxRuntime.jsxs(x.Column,{css:{'&[data-state="open"]':{animation:`${br} 300ms ease-out`},'&[data-state="closed"]':{animation:`${Pr} 300ms ease-out`},overflow:"hidden"},gap:5,children:[jsxRuntime.jsx(l,{}),e]})})}function Be({children:e,open:o=!1,onOpenChange:t=()=>{}}){return jsxRuntime.jsx(Y__namespace.Root,{asChild:!0,open:o,onOpenChange:t,children:jsxRuntime.jsx(u,{borderWidth:"md",css:{'&[data-state="open"] .fr-collapsible-step-icon':{transform:"rotate(180deg)"}},gap:0,children:e})})}function ve({isCompleted:e,title:o}){return jsxRuntime.jsx(Y__namespace.Trigger,{asChild:!0,children:jsxRuntime.jsxs(x.Row,{alignItems:"center",justifyContent:"space-between",margin:-5,padding:5,zIndex:1,children:[jsxRuntime.jsxs(x.Row,{alignItems:"center",gap:2,children:[jsxRuntime.jsx(Sr,{checked:e}),jsxRuntime.jsx(g.Body2,{fontWeight:"demibold",userSelect:"none",children:o})]}),jsxRuntime.jsx(l,{as:outline.ChevronDownIcon,color:"gray100",css:{"& path":{vectorEffect:"non-scaling-stroke"}},display:"block",height:"16px",order:2,part:"collapsible-step-icon",width:"16px"})]})})}var ke={};z(ke,{Bar:()=>pe,Dots:()=>yo,Segments:()=>bo});function pe({current:e,total:o,...t}){let i=o>0?Math.min(e/o,1):0,n=i===0?"10px":`${100*i}%`;return jsxRuntime.jsx(l,{backgroundColor:"blue800",borderRadius:"md",height:"10px",...t,children:jsxRuntime.jsx(l,{backgroundColor:"primary.surface",borderRadius:"md",height:"100%",style:{width:n},transition:"width 300ms ease-out"})})}function yo({current:e,total:o,...t}){if(o==1)return null;let i=[...Array(o)].map((n,r)=>jsxRuntime.jsx(l,{as:"circle",r:4,cx:4+16*r,cy:"4px",fill:e-1===r?y.colors.blue500:y.colors.blue800},r));return jsxRuntime.jsx(l,{as:"svg",height:"8px",part:"progress-dots",viewBox:`0 0 ${16*o-8} 8`,width:16*o-8,...t,children:i})}function bo({current:e,total:o,...t}){let i=[...Array(o)].map((n,r)=>jsxRuntime.jsx(l,{backgroundColor:e-1===r?"primary.surface":"blue800",borderRadius:"md",flexGrow:1,height:"100%"},r));return jsxRuntime.jsx(x.Row,{gap:1,height:"10px",...t,children:i})}var Po=Se.createContext({onPrimary:()=>{},onSecondary:()=>{},openStepId:null,setOpenStepId:()=>{},stepTypes:{}});function Co({handlePrimary:e,handleSecondary:o,open:t,onOpenChange:i,step:n}){let{isBlocked:r,isCompleted:s,primaryButtonTitle:a,secondaryButtonTitle:d,subtitle:m,title:f}=n;return jsxRuntime.jsxs(Be,{open:t,onOpenChange:i,children:[jsxRuntime.jsx(ve,{isCompleted:s,title:f}),jsxRuntime.jsxs(Re,{children:[jsxRuntime.jsx(u.Media,{aspectRatio:2.5,objectFit:"cover",src:n.imageUri}),jsxRuntime.jsx(u.Subtitle,{color:"gray500",children:m}),jsxRuntime.jsxs(x.Row,{gap:3,children:[jsxRuntime.jsx(u.Secondary,{disabled:!!(s||r),title:d,onClick:o}),jsxRuntime.jsx(u.Primary,{disabled:!!(s||r),title:a,onClick:e})]})]})]})}var Rr={default:Co};function Br({flow:e,step:o,...t}){let{onPrimary:i,onSecondary:n,openStepId:r,setOpenStepId:s,stepTypes:a}=Se.useContext(Po),{handlePrimary:d,handleSecondary:m}=N(o,{onPrimary:i,onSecondary:n}),f=(r??e.getCurrentStep().id)===o.id,h=a[o.type]??Co;async function c(S){s(S?o.id:""),S&&!o.isCompleted&&await o.start();}return jsxRuntime.jsx(h,{flow:e,onOpenChange:c,open:f,step:o,...t,handlePrimary:d,handleSecondary:m},o.id)}function So({dismissible:e,flowId:o,onPrimary:t,onSecondary:i,stepTypes:n={},...r}){let[s,a]=Se.useState(null),d={...Rr,...n};return jsxRuntime.jsx(Po.Provider,{value:{openStepId:s,setOpenStepId:a,onPrimary:t,onSecondary:i,stepTypes:d},children:jsxRuntime.jsx(O,{as:u,borderWidth:"md",flowId:o,part:"checklist",...r,children:({flow:m,handleDismiss:f,...h})=>{let c=Array.from(m.steps.entries()).map(([,_])=>jsxRuntime.jsx(Br,{flow:m,handleDismiss:f,...h,step:_},_.id)),S=m.getNumberOfCompletedSteps(),q=m.getNumberOfAvailableSteps();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(x.Column,{gap:2,children:[jsxRuntime.jsxs(x.Row,{alignItems:"center",flexWrap:"wrap",gap:1,justifyContent:"space-between",part:"checklist-header",children:[jsxRuntime.jsx(u.Title,{children:m.title}),e&&jsxRuntime.jsx(u.Dismiss,{onClick:f}),jsxRuntime.jsx(u.Subtitle,{color:"gray500",flexBasis:"100%",children:m.subtitle})]}),jsxRuntime.jsxs(x.Row,{alignItems:"center",gap:2,children:[jsxRuntime.jsxs(g.Body2,{fontWeight:"demibold",children:[S,"/",q]}),jsxRuntime.jsx(pe,{current:S,total:q,flexGrow:1})]})]}),c]})}})})}var Er=new Set(["required","min","max","minLength","maxLength","pattern"]);function Or({fieldComponent:e,control:o,fieldData:t}){t.pattern!=null&&(typeof t.pattern=="string"?t.pattern=new RegExp(t.pattern.replace(/^\/|\/$/g,"")):typeof t.pattern=="object"&&typeof t.pattern.value=="string"&&(t.pattern.value=new RegExp(t.pattern.value.replace(/^\/|\/$/g,""))));let i=Object.fromEntries(Object.entries(t).filter(([r])=>Er.has(r))),n=reactHookForm.useController({name:t.id,control:o,rules:i});return jsxRuntime.jsx(e,{...n,fieldData:t})}function To({fieldTypes:e,handleDismiss:o,handlePrimary:t,handleSecondary:i,parentProps:{dismissible:n},step:r}){var h;let{control:s,handleSubmit:a}=reactHookForm.useForm({delayError:2e3,mode:"onChange"}),d=[];function m(c,S){t(S,c);}function f(c,S){i(S,c);}return (h=r.fields)==null||h.forEach(c=>{e[c.type]!=null&&d.push(jsxRuntime.jsx(Or,{control:s,fieldComponent:e[c.type],fieldData:c},c.id));}),jsxRuntime.jsxs(x.Column,{gap:5,part:"form-step",children:[jsxRuntime.jsxs(x.Row,{alignItems:"center",flexWrap:"wrap",gap:1,justifyContent:"space-between",part:"form-step-header",children:[jsxRuntime.jsx(u.Title,{children:r.title}),n&&jsxRuntime.jsx(u.Dismiss,{onClick:o}),jsxRuntime.jsx(u.Subtitle,{flexBasis:"100%",children:r.subtitle})]}),d,jsxRuntime.jsxs(x.Row,{part:"form-step-footer",justifyContent:"flex-end",gap:3,children:[r.secondaryButtonTitle&&jsxRuntime.jsx(b.Secondary,{title:r.secondaryButtonTitle,onClick:a(f)}),jsxRuntime.jsx(b.Primary,{title:r.primaryButtonTitle??"Submit",onClick:a(m)})]},"form-footer")]})}function wo({error:e}){var o;return (o=e==null?void 0:e.message)!=null&&o.length?jsxRuntime.jsx(g.Caption,{color:"red500",display:"block",part:"field-error",textAlign:"end",children:e==null?void 0:e.message}):null}function Ro({children:e,id:o,required:t=!1}){return jsxRuntime.jsxs(g.H4,{as:"label",htmlFor:o,part:"field-label",children:[e,t&&" *"]})}var re={px:"4",py:"2",backgroundColor:"neutral.background",borderColor:"neutral.border",borderStyle:"solid",borderWidth:"md",borderRadius:"md",display:"block",outline:"none",width:"100%"};function $({children:e,field:o,fieldData:t,fieldState:i}){let{id:n,label:r,placeholder:s}=t,{error:a}=i,d={id:n,...o,...s?{placeholder:s}:{},...re,"aria-invalid":!!a,value:o.value??""};return jsxRuntime.jsxs(l,{part:"field",children:[jsxRuntime.jsx(Ro,{id:n,required:!!t.required,children:r}),e(d),jsxRuntime.jsx(wo,{error:a})]})}var Wr=()=>jsxRuntime.jsx(l,{as:"svg",color:"primary.foreground",width:"10px",height:"8px",viewBox:"0 0 10 8",fill:"none",children:jsxRuntime.jsx("path",{d:"M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ar=Se__namespace.forwardRef(({label:e,value:o},t)=>jsxRuntime.jsxs(l,{as:"label",backgroundColor:"neutral.background",borderColor:"neutral.border",borderRadius:"md",borderStyle:"solid",borderWidth:"md",display:"flex",htmlFor:o,justifyContent:"space-between",part:"field-radio",px:4,py:2,children:[jsxRuntime.jsx(g.Body2,{part:"field-radio-label",children:e}),jsxRuntime.jsx(Q__namespace.Item,{id:o,value:o,ref:t,asChild:!0,children:jsxRuntime.jsx(l,{as:"button",backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",padding:"0",part:"field-radio-value",position:"relative",height:"24px",width:"24px",children:jsxRuntime.jsx(l,{as:Q__namespace.Indicator,alignItems:"center",bg:"primary.surface",borderWidth:"md",borderStyle:"solid",borderColor:"primary.border",borderRadius:"100%",display:"flex",height:"calc(100% + 2px)",justifyContent:"center",left:"-1px",part:"field-radio-indicator",position:"absolute",top:"-1px",width:"calc(100% + 2px)",children:jsxRuntime.jsx(Wr,{})})})})]}));function Do(e){let{field:{onChange:o,value:t},fieldData:{options:i=[]}}=e,n=i.map(({label:r,value:s})=>jsxRuntime.jsx(Ar,{value:s,label:r},s));return jsxRuntime.jsx($,{...e,children:()=>jsxRuntime.jsx(Q__namespace.Root,{value:t,onValueChange:o,asChild:!0,children:jsxRuntime.jsx(x.Column,{gap:2,part:"field-radio-group",children:n})})})}var $r=Se__namespace.forwardRef(({label:e,value:o},t)=>jsxRuntime.jsx(C__namespace.Item,{value:o,ref:t,asChild:!0,children:jsxRuntime.jsx(l,{"backgroundColor:hover":"blue900",borderRadius:"md",outline:"none",part:"field-select-option",px:"3",py:"2",children:jsxRuntime.jsx(C__namespace.ItemText,{asChild:!0,children:jsxRuntime.jsx(g.Body2,{part:"field-select-option-label",children:e})})})}));function Io(e){let{field:{onChange:o,value:t},fieldData:{options:i=[],placeholder:n}}=e,r=i.map(({label:s,value:a})=>jsxRuntime.jsx($r,{value:a,label:s},a));return jsxRuntime.jsx($,{...e,children:()=>jsxRuntime.jsxs(C__namespace.Root,{value:t,onValueChange:o,children:[jsxRuntime.jsx(C__namespace.Trigger,{asChild:!0,children:jsxRuntime.jsxs(g.Body2,{...re,alignItems:"center",display:"flex",justifyContent:"space-between",part:"field-select",children:[jsxRuntime.jsx(C__namespace.Value,{placeholder:n??"Select one"}),jsxRuntime.jsx(C__namespace.Icon,{children:jsxRuntime.jsx(l,{as:outline.ChevronDownIcon,color:"gray100",display:"block",height:"24px",part:"field-select-icon",width:"24px"})})]})}),jsxRuntime.jsx(C__namespace.Portal,{children:jsxRuntime.jsx(C__namespace.Content,{position:"popper",sideOffset:4,asChild:!0,children:jsxRuntime.jsx(l,{...re,p:"1",part:"field-select-options",width:"var(--radix-popper-anchor-width)",children:jsxRuntime.jsx(C__namespace.Viewport,{children:r})})})})]})})}function Ho(e){return jsxRuntime.jsx($,{...e,children:o=>jsxRuntime.jsx(g.Body2,{as:"input",part:"field-text",type:"text",...o})})}function Ao(e){return jsxRuntime.jsx($,{...e,children:o=>jsxRuntime.jsx(g.Body2,{as:"textarea",part:"field-textarea",...o})})}var _r={radio:Do,select:Io,text:Ho,textarea:Ao};function zr({fieldTypes:e={},flowId:o,...t}){let i=Object.assign({},_r,e);return jsxRuntime.jsx(O,{flowId:o,part:"form",...t,children:n=>jsxRuntime.jsx(To,{fieldTypes:i,...n})})}function de(){let e="DOMRect"in globalThis?new DOMRect:{height:0,width:0,x:0,y:0,bottom:0,top:0,right:0,left:0,toJSON:()=>{}},[o,t]=Se.useState(e),[i,n]=Se.useState(null),r=Se.useCallback(s=>{n(s);},[]);return Se.useLayoutEffect(()=>{if(!i)return;let s=()=>{let a=i.getBoundingClientRect();t(a);};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[i]),{node:i,rect:o,ref:r}}var Ur=react.keyframes({"0%":{opacity:.5,transform:"scale(0.5)"},"50%":{opacity:0,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(1)"}});function _o({style:e={},part:o="",...t}){return jsxRuntime.jsxs(l,{part:`dot-wrapper ${o}`,style:{height:"48px",position:"absolute",width:"48px",...e},...t,children:[jsxRuntime.jsx(l,{backgroundColor:"primary.surface",part:"dot-pulse",css:{animation:`2s ease-out infinite ${Ur}`,borderRadius:"24px",height:"48px",left:0,position:"absolute",top:0,transformOrigin:"center center",width:"48px"}}),jsxRuntime.jsx(l,{backgroundColor:"primary.surface",part:"dot",style:{borderRadius:"12px",height:"24px",left:"12px",position:"absolute",top:"12px",width:"24px"}})]})}function zo({props:e,alignAttr:o,sideAttr:t}){let i=t??"bottom",n={},r=()=>{if(["after","before"].includes(e.align)){if(o=="start")return "before";if(o=="end")return "after"}return e.align??"after"},s="-24px",a={top:"bottom",right:"left",bottom:"top",left:"right"};n[a[i]]=s;let d=r();return ["before","end"].includes(d)?["top","bottom"].includes(i)?n.right=s:n.bottom=s:["after","start"].includes(d)?["top","bottom"].includes(i)?n.left=s:n.top=s:["top","bottom"].includes(i)?n.left=`calc(50% + ${s})`:n.top=`calc(50% + ${s})`,n}var ce={content:["align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","forceMount","hideWhenDetached","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenAutoFocus","onPointerDownOutside","side","sideOffset","sticky"],root:["defaultOpen","modal","onOpenChange","open"]};function jo(e,o){let t=Object.fromEntries(ce.content.map(r=>[r,e[r]]).filter(r=>r[1]!==void 0)),i=Object.fromEntries(ce.root.map(r=>[r,e[r]]).filter(r=>r[1]!==void 0)),n={};for(let r of Object.keys(e))!ce.content.includes(r)&&!ce.root.includes(r)&&(n[r]=e[r]);if(t.align=t.align??"after",t.side=t.side??"bottom",["before","after"].includes(t.align)){let r={after:"end",before:"start"},s=(c,S)=>["top","bottom"].includes(S)?c=="after"?"marginLeft":"marginRight":c=="after"?"marginTop":"marginBottom",a=t.alignOffset??0,d=t.style??{},m=t.side??"bottom",f=t.align;t.style={...d,[s(f,m)]:a};let h=["top","bottom"].includes(m)?o.width:o.height;t.alignOffset=(h+a)*-1,t.align=r[f];}return {contentProps:t,otherProps:n,rootProps:i}}function T({anchor:e,children:o,className:t,spotlight:i=!1,style:n,...r}){let{node:s,rect:a,ref:d}=de(),{node:m,rect:f,ref:h}=de(),{contentProps:c,otherProps:S,rootProps:q}=jo(r,a),[_,ue]=Se.useState(c.align),[ne,Z]=Se.useState(c.side),[fe,ge]=Se.useState(0),[Ie,Uo]=Se.useState(0);if(s!==null){let A=s.getAttribute("data-align"),ie=s.getAttribute("data-side");_!==A&&ue(A),ne!==ie&&Z(ie);}let Me=Se.useRef(null);if(Se.useEffect(()=>{let A=document.querySelector(e);A!=null?(h(A),Me.current=A):console.debug(`No anchor found for query: ${e}`);},[e]),Se.useEffect(()=>{let{scrollX:A,scrollY:ie}=window;ge(f.left+A),Uo(f.top+ie);},[f.left,f.top]),m==null)return null;let He="0";typeof window<"u"&&(He=window.getComputedStyle(m).borderRadius);let Go=zo({props:r,alignAttr:_,sideAttr:ne});return jsxRuntime.jsxs(I__namespace.Root,{defaultOpen:!0,...q,children:[jsxRuntime.jsx(I__namespace.Anchor,{virtualRef:Me}),jsxRuntime.jsx(I__namespace.Portal,{children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i&&jsxRuntime.jsx(l,{part:"tooltip-spotlight",position:"absolute",style:{borderRadius:He,boxShadow:"0 0 0 20000px rgb(0 0 0 / 0.5)",height:f.height,left:fe,top:Ie,width:f.width}}),jsxRuntime.jsx(I__namespace.Content,{asChild:!0,...c,ref:d,children:jsxRuntime.jsxs(u,{boxShadow:"md",part:"tooltip",position:"relative",className:t,css:{maxWidth:"360px",pointerEvents:"auto"},style:n,...S,children:[jsxRuntime.jsx(_o,{style:Go}),o]})})]})})]})}T.Close=e=>jsxRuntime.jsx(I__namespace.Close,{"aria-label":"Close",asChild:!0,children:jsxRuntime.jsx(b.Plain,{css:{top:"12px",right:"4px"},part:"close",position:"absolute",...e,children:jsxRuntime.jsx(solid.XMarkIcon,{height:"24",fill:"currentColor"})})});T.Media=({src:e,...o})=>e==null?null:jsxRuntime.jsx(U,{borderRadius:"md md 0 0",borderWidth:"0",css:{aspectRatio:"2",objectFit:"cover"},margin:"-5 -5 0",src:e,...o});T.Primary=({onClick:e,title:o,...t})=>o==null?null:jsxRuntime.jsx(b.Primary,{title:o,onClick:e,...t});T.Progress=({children:e,...o})=>e==null?null:jsxRuntime.jsx(g.H4,{part:"progress",...o,children:e});T.Secondary=({onClick:e,title:o,...t})=>o==null?null:jsxRuntime.jsx(b.Secondary,{title:o,onClick:e,...t});T.Subtitle=({children:e,...o})=>e==null?null:jsxRuntime.jsx(g.Body2,{part:"subtitle",...o,children:e});T.Title=({children:e,...o})=>e==null?null:jsxRuntime.jsx(g.H4,{part:"title",...o,children:e});function Ko({dismissible:e=!0,flow:o,onDismiss:t,onPrimary:i,onSecondary:n,step:r,...s}){let{handleDismiss:a}=j(o,{onDismiss:t}),{handlePrimary:d,handleSecondary:m}=N(r,{onPrimary:i,onSecondary:n});return jsxRuntime.jsxs(T,{anchor:r.selector,onOpenAutoFocus:f=>f.preventDefault(),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),...s,children:[e&&jsxRuntime.jsx(T.Close,{onClick:a}),jsxRuntime.jsx(T.Media,{src:r.videoUri??r.imageUri,type:r.videoUri?"video":"image"}),jsxRuntime.jsxs(x.Column,{gap:1,part:"tooltip-header",children:[jsxRuntime.jsx(T.Title,{children:r.title}),jsxRuntime.jsx(T.Subtitle,{color:"gray500",children:r.subtitle})]}),jsxRuntime.jsxs(x.Row,{alignItems:"center",gap:3,justifyContent:"flex-end",part:"tooltip-footer",children:[jsxRuntime.jsx(T.Progress,{marginRight:"auto",transform:"translateY(1px)",children:`${o.getNumberOfCompletedSteps()+1}/${o.getNumberOfAvailableSteps()}`}),jsxRuntime.jsx(T.Secondary,{title:r.secondaryButtonTitle,onClick:m}),jsxRuntime.jsx(T.Primary,{title:r.primaryButtonTitle,onClick:d})]})]},r.id)}function Qr({flowId:e,onComplete:o,variables:t,...i}){let{flow:n}=oe(e,{variables:t});j(n,{onComplete:o});let{isCurrentModal:r,removeModal:s}=te(n);if(Se.useEffect(()=>{!(n!=null&&n.isVisible)&&r&&s();},[n==null?void 0:n.isVisible,r]),n==null||n.isVisible===!1||!r)return null;let a=n.getCurrentStep();return a==null||a.start(),jsxRuntime.jsx(Ko,{step:a,flow:n,...i})}function on(){let{frigade:e}=Se.useContext(v);return {frigade:e,isLoading:!(e!=null&&e.isReady())}}function rn(){let{userId:e,frigade:o}=Se.useContext(v);async function t(n){await o.identify(e,n);}async function i(n,r){await o.track(n,r);}return {userId:e,addProperties:t,track:i}}function sn(){let{groupId:e,frigade:o}=Se.useContext(v);async function t(n){if(!e){console.error("No Group ID is set. Cannot set properties without a Group ID.");return}await o.group(e,n);}async function i(n,r){await o.track(n,r);}return {groupId:e,addProperties:t,track:i}}
67
67
 
68
+ Object.defineProperty(exports, 'Flow', {
69
+ enumerable: true,
70
+ get: function () { return js.Flow; }
71
+ });
72
+ Object.defineProperty(exports, 'FlowType', {
73
+ enumerable: true,
74
+ get: function () { return js.FlowType; }
75
+ });
76
+ Object.defineProperty(exports, 'Frigade', {
77
+ enumerable: true,
78
+ get: function () { return js.Frigade; }
79
+ });
68
80
  exports.Announcement = fr;
69
81
  exports.Banner = xr;
70
82
  exports.Box = l;
@@ -87,11 +99,5 @@ exports.useGroup = sn;
87
99
  exports.useModal = te;
88
100
  exports.useStepHandlers = N;
89
101
  exports.useUser = rn;
90
- Object.keys(js).forEach(function (k) {
91
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
92
- enumerable: true,
93
- get: function () { return js[k]; }
94
- });
95
- });
96
102
  //# sourceMappingURL=out.js.map
97
103
  //# sourceMappingURL=index.cjs.map