@goodhood-web/ui 3.0.0-development.2 → 3.0.0-development.3
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/index.js +1 -1
- package/index.mjs +10 -10
- package/package.json +1 -1
- package/style.css +1 -1
package/index.js
CHANGED
|
@@ -117,7 +117,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An err
|
|
|
117
117
|
top: ${f}px !important;
|
|
118
118
|
left: ${p}px !important;
|
|
119
119
|
}
|
|
120
|
-
`),()=>{document.head.removeChild(v)}},[e]),L.jsx(fk,{isPresent:e,childRef:r,sizeRef:i,children:c.cloneElement(t,{ref:r})})}const pk=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:l})=>{const h=i3(mk),f=k.useId(),p=k.useCallback(w=>{h.set(w,!0);for(const b of h.values())if(!b)return;r&&r()},[h,r]),v=k.useMemo(()=>({id:f,initial:e,isPresent:n,custom:i,onExitComplete:p,register:w=>(h.set(w,!1),()=>h.delete(w))}),a?[Math.random(),p]:[n,p]);return k.useMemo(()=>{h.forEach((w,b)=>h.set(b,!1))},[n]),c.useEffect(()=>{!n&&!h.size&&r&&r()},[n]),l==="popLayout"&&(t=L.jsx(hk,{isPresent:n,children:t})),L.jsx(Kc.Provider,{value:v,children:t})};function mk(){return new Map}const q1=t=>t.key||"";function gf(t){const e=[];return k.Children.forEach(t,n=>{k.isValidElement(n)&&e.push(n)}),e}const gk=({children:t,exitBeforeEnter:e,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:l="sync"})=>{mo(!e,"Replace exitBeforeEnter with mode='wait'");const h=k.useMemo(()=>gf(t),[t]),f=h.map(q1),p=k.useRef(!0),v=k.useRef(h),w=i3(()=>new Map),[b,T]=k.useState(h),[P,V]=k.useState(h);J5(()=>{p.current=!1,v.current=h;for(let O=0;O<P.length;O++){const $=q1(P[O]);f.includes($)?w.delete($):w.get($)!==!0&&w.set($,!1)}},[P,f.length,f.join("-")]);const F=[];if(h!==b){let O=[...h];for(let $=0;$<P.length;$++){const W=P[$],N=q1(W);f.includes(N)||(O.splice($,0,W),F.push(W))}l==="wait"&&F.length&&(O=F),V(gf(O)),T(h);return}process.env.NODE_ENV!=="production"&&l==="wait"&&P.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:A}=k.useContext(Q0);return L.jsx(L.Fragment,{children:P.map(O=>{const $=q1(O),W=h===P||f.includes($),N=()=>{if(w.has($))w.set($,!0);else return;let Y=!0;w.forEach(J=>{J||(Y=!1)}),Y&&(A==null||A(),V(v.current),i&&i())};return L.jsx(pk,{isPresent:W,initial:!p.current||r?void 0:!1,custom:W?void 0:n,presenceAffectsLayout:a,mode:l,onExitComplete:W?void 0:N,children:O},$)})})},vk="_tooltip_1rarq_120",Ck="_container_1rarq_170",Js={tooltip:vk,"tooltip--top":"_tooltip--top_1rarq_137","tooltip--bottom":"_tooltip--bottom_1rarq_145","tooltip--hasPointer":"_tooltip--hasPointer_1rarq_153","tooltip--hasPointer-top":"_tooltip--hasPointer-top_1rarq_163","tooltip--hasPointer-bottom":"_tooltip--hasPointer-bottom_1rarq_166",container:Ck},wk=({children:t,className:e,customSpacing:n,hasPointer:r=!1,id:i,position:a="top",showTooltip:l,text:h})=>{const[f,p]=k.useState(!1),[v,w]=k.useState(a),b=k.useRef(null),T=k.useRef(null),P=()=>{var J,K,ie;const V=(J=T.current)==null?void 0:J.getClientRects()[0],F=(ie=(K=b.current)==null?void 0:K.getClientRects()[0])==null?void 0:ie.height;if(!V||!F)return;const{bottom:A,top:O}=V,$=a==="top",W=a==="bottom",N=O-F,Y=A-F;w($&&N>=0?"top":W&&Y>=0||$?"bottom":"top")};return k.useEffect(()=>{h&&(f||l)&&P()},[f,l]),h?L.jsxs("div",{className:Js.container,ref:T,children:[L.jsx("div",{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onFocus:()=>p(!0),onBlur:()=>p(!1),children:t}),L.jsx(gk,{children:(f||l)&&L.jsx(dk.div,{ref:b,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{delay:.2},role:"tooltip",id:i,"aria-hidden":!0,className:pe(Js.tooltip,Js[`tooltip--${v}`],e,{[Js["tooltip--hasPointer"]]:r,[Js[`tooltip--hasPointer-${v}`]]:r}),style:{"--tooltip-spacing":n},children:typeof h=="string"?L.jsx(De,{type:"detail-medium",children:h}):h})})]}):L.jsx("div",{className:Js.container,children:t})},yk="_primaryButton_18chh_120",wl={primaryButton:yk,"primaryButton--fullWidth":"_primaryButton--fullWidth_18chh_129","primaryButton--extraLarge":"_primaryButton--extraLarge_18chh_132","primaryButton--large":"_primaryButton--large_18chh_137","primaryButton--medium":"_primaryButton--medium_18chh_142","primaryButton--small":"_primaryButton--small_18chh_142","primaryButton--highlight":"_primaryButton--highlight_18chh_147","primaryButton--primary":"_primaryButton--primary_18chh_153","primaryButton--transparent":"_primaryButton--transparent_18chh_159","primaryButton--loading":"_primaryButton--loading_18chh_167"},ph=({children:t,className:e,color:n="primary",disabled:r,fullWidth:i,leftIcon:a,loading:l,rightIcon:h,size:f="extraLarge",text:p,...v})=>{const w=kr(a,[ot]),b=kr(h,[ot]),T=wl[`primaryButton--${n}`],P=wl[`primaryButton--${f}`],V={extraLarge:"h5",large:"h5",medium:"body-semibold",small:"detail-medium"};return L.jsxs(It,{...v,disabled:r,className:pe(wl.primaryButton,T,P,e,{[wl["primaryButton--loading"]]:l,[wl["primaryButton--fullWidth"]]:i}),children:[w,p&&L.jsx(De,{type:V[f],as:"span",children:p}),t,b]})},bk="_secondaryButton_3hju7_120",yl={secondaryButton:bk,"secondaryButton--fullWidth":"_secondaryButton--fullWidth_3hju7_132","secondaryButton--large":"_secondaryButton--large_3hju7_135","secondaryButton--medium":"_secondaryButton--medium_3hju7_140","secondaryButton--small":"_secondaryButton--small_3hju7_140","secondaryButton--green":"_secondaryButton--green_3hju7_145","secondaryButton--pink":"_secondaryButton--pink_3hju7_151","secondaryButton--grey":"_secondaryButton--grey_3hju7_159","secondaryButton--teal":"_secondaryButton--teal_3hju7_165","secondaryButton--lavender":"_secondaryButton--lavender_3hju7_171","secondaryButton--orange":"_secondaryButton--orange_3hju7_178","secondaryButton--loading":"_secondaryButton--loading_3hju7_184"},u3=({children:t,className:e,color:n="green",disabled:r,fullWidth:i,leftIcon:a,loading:l,rightIcon:h,size:f="extraLarge",text:p,...v})=>{const w=kr(a,[ot]),b=kr(h,[ot]),T=yl[`secondaryButton--${n}`],P=yl[`secondaryButton--${f}`],V={extraLarge:"h5",large:"h5",medium:"body-semibold",small:"detail-medium"};return L.jsxs(It,{...v,disabled:r,className:pe(yl.secondaryButton,T,P,e,{[yl["secondaryButton--loading"]]:l,[yl["secondaryButton--fullWidth"]]:i}),children:[w,p&&L.jsx(De,{type:V[f],as:"span",children:p}),t,b]})},xk="_tertiaryButton_1spai_120",bl={tertiaryButton:xk,"tertiaryButton--fullWidth":"_tertiaryButton--fullWidth_1spai_133","tertiaryButton--large":"_tertiaryButton--large_1spai_136","tertiaryButton--medium":"_tertiaryButton--medium_1spai_141","tertiaryButton--small":"_tertiaryButton--small_1spai_141","tertiaryButton--green":"_tertiaryButton--green_1spai_146","tertiaryButton--pink":"_tertiaryButton--pink_1spai_158","tertiaryButton--blue":"_tertiaryButton--blue_1spai_170","tertiaryButton--grey":"_tertiaryButton--grey_1spai_182","tertiaryButton--loading":"_tertiaryButton--loading_1spai_194"},d3=({children:t,className:e,color:n="green",disabled:r,fullWidth:i,leftIcon:a,loading:l,rightIcon:h,size:f="extraLarge",text:p,...v})=>{const w=kr(a,[ot]),b=kr(h,[ot]),T=bl[`tertiaryButton--${n}`],P=bl[`tertiaryButton--${f}`],V={extraLarge:"h5",large:"h5",medium:"body-semibold",small:"detail-medium"};return L.jsxs(It,{...v,disabled:r,className:pe(bl.tertiaryButton,T,P,e,{[bl["tertiaryButton--loading"]]:l,[bl["tertiaryButton--fullWidth"]]:i}),children:[w,p&&L.jsx(De,{type:V[f],as:"span",children:p}),t,b]})},_k="_root_1wel1_120",Ek="_root__label_1wel1_130",Su={root:_k,root__label:Ek,"root--filled":"_root--filled_1wel1_139","root--outline":"_root--outline_1wel1_149"},kk=({ariaLabel:t,iconSize:e="32",link:n,onClick:r,style:i="filled"})=>{const[a,l]=Of();k.useEffect(()=>{a&&r()},[a,r]);const h=()=>{l(n)};return L.jsxs(It,{className:pe(Su.root,Su[`root--${i}`]),onClick:h,ariaLabel:t,disabled:a,children:[L.jsx(De,{type:"body-large",className:Su.root__label,children:n}),L.jsx(ot,{name:"copy",size:e})]})},Sk="_iconButton_1117t_120",G1={iconButton:Sk,"iconButton--loading":"_iconButton--loading_1117t_158","iconButton--small":"_iconButton--small_1117t_164","iconButton--medium":"_iconButton--medium_1117t_168","iconButton--large":"_iconButton--large_1117t_172","iconButton--green":"_iconButton--green_1117t_176","iconButton--white":"_iconButton--white_1117t_188","iconButton--grey":"_iconButton--grey_1117t_202"},Rk=t=>t==="small"?"24":"32",Sr=k.forwardRef(({className:t,icon:e,iconClassName:n,loading:r,size:i="medium",variant:a,...l},h)=>{const f=Rk(i);return L.jsx(It,{...l,className:pe(G1.iconButton,t,{[G1["iconButton--loading"]]:r,[G1[`iconButton--${a}`]]:a,[G1[`iconButton--${i}`]]:a}),ref:h,children:L.jsx(ot,{size:f,name:e,className:n})})});Sr.displayName="IconButton";const Tk="_button_lgcgh_120",Mk="_button__icon_lgcgh_128",Y1={button:Tk,"button--selected":"_button--selected_lgcgh_125",button__icon:Mk,"button__icon--selected":"_button__icon--selected_lgcgh_131"};function Lk({iconClassName:t,iconSelected:e,iconUnselected:n,selected:r,...i}){const a=pe(Y1.button__icon,{[Y1["button__icon--selected"]]:r},t);return L.jsx(It,{...i,className:pe(Y1.button,{[Y1["button--selected"]]:r},i.className),children:L.jsx(ot,{className:a,size:"24",name:r?e:n})})}const Pk="_feedTile_123y5_120",Ak="_feedTile__icon_123y5_133",xl={feedTile:Pk,feedTile__icon:Ak,"feedTile--fullWidth":"_feedTile--fullWidth_123y5_157"},Fk=({fullWidth:t,icon:e,onClick:n,text:r})=>L.jsxs(It,{onClick:n,className:pe(xl.feedTile,{[xl["feedTile--fullWidth"]]:t}),children:[L.jsx(ot,{className:xl.feedTile__icon,name:e}),typeof r=="string"?L.jsx(De,{type:"body-regular",className:xl.feedTile__text,children:r}):L.jsx("span",{className:xl.feedTile__text,children:r})]}),Ik="_menuTile_1lvni_120",Dk="_menuTile__value_1lvni_140",X1={menuTile:Ik,"menuTile--fullWidth":"_menuTile--fullWidth_1lvni_133","menuTile--icon":"_menuTile--icon_1lvni_136",menuTile__value:Dk},Vk=({fullWidth:t=!1,icon:e,primaryText:n,secondaryText:r,...i})=>L.jsxs(It,{...i,className:pe(X1.menuTile,{[X1["menuTile--icon"]]:e,[X1["menuTile--fullWidth"]]:t}),children:[e&&L.jsx(ot,{name:e}),n&&L.jsx(De,{type:"detail-bold",className:X1.menuTile__value,children:n}),r&&L.jsx(De,{type:"detail-medium",children:r})]});var Bk="Expected a function",vf=NaN,Ok="[object Symbol]",$k=/^\s+|\s+$/g,jk=/^[-+]0x[0-9a-f]+$/i,Nk=/^0b[01]+$/i,Hk=/^0o[0-7]+$/i,Wk=parseInt,Uk=typeof ia=="object"&&ia&&ia.Object===Object&&ia,zk=typeof self=="object"&&self&&self.Object===Object&&self,Zk=Uk||zk||Function("return this")(),qk=Object.prototype,Gk=qk.toString,Yk=Math.max,Xk=Math.min,Ru=function(){return Zk.Date.now()};function Kk(t,e,n){var r,i,a,l,h,f,p=0,v=!1,w=!1,b=!0;if(typeof t!="function")throw new TypeError(Bk);e=Cf(e)||0,n0(n)&&(v=!!n.leading,w="maxWait"in n,a=w?Yk(Cf(n.maxWait)||0,e):a,b="trailing"in n?!!n.trailing:b);function T(Y){var J=r,K=i;return r=i=void 0,p=Y,l=t.apply(K,J),l}function P(Y){return p=Y,h=setTimeout(A,e),v?T(Y):l}function V(Y){var J=Y-f,K=Y-p,ie=e-J;return w?Xk(ie,a-K):ie}function F(Y){var J=Y-f,K=Y-p;return f===void 0||J>=e||J<0||w&&K>=a}function A(){var Y=Ru();if(F(Y))return O(Y);h=setTimeout(A,V(Y))}function O(Y){return h=void 0,b&&r?T(Y):(r=i=void 0,l)}function $(){h!==void 0&&clearTimeout(h),p=0,r=f=i=h=void 0}function W(){return h===void 0?l:O(Ru())}function N(){var Y=Ru(),J=F(Y);if(r=arguments,i=this,f=Y,J){if(h===void 0)return P(f);if(w)return h=setTimeout(A,e),T(f)}return h===void 0&&(h=setTimeout(A,e)),l}return N.cancel=$,N.flush=W,N}function n0(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Jk(t){return!!t&&typeof t=="object"}function Qk(t){return typeof t=="symbol"||Jk(t)&&Gk.call(t)==Ok}function Cf(t){if(typeof t=="number")return t;if(Qk(t))return vf;if(n0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=n0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace($k,"");var n=Nk.test(t);return n||Hk.test(t)?Wk(t.slice(2),n?2:8):jk.test(t)?vf:+t}var eS=Kk;const tS=$f(eS);function nS(t,{lines:e}){let[n,r]=k.useState(!0);return k.useEffect(()=>{let i=()=>{if(!t.current)return;let l={webkitLineClamp:t.current.style.webkitLineClamp,display:t.current.style.display,webkitBoxOrient:t.current.style.webkitBoxOrient,overflow:t.current.style.overflow};t.current.style.webkitLineClamp=e.toString(),t.current.style.display="-webkit-box",t.current.style.webkitBoxOrient="vertical",t.current.style.overflow="hidden",r(t.current.clientHeight!==t.current.scrollHeight),t.current.style.webkitLineClamp=l.webkitLineClamp,t.current.style.display=l.display,t.current.style.webkitBoxOrient=l.webkitBoxOrient,t.current.style.overflow=l.overflow},a=tS(i,50);return i(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[t]),n}const rS="_bodyText_fgef4_120",oS="_bodyText__textButton_fgef4_148",iS="_bodyText__showMore_fgef4_159",Ho={bodyText:rS,"bodyText--notClickable":"_bodyText--notClickable_fgef4_125","bodyText--post":"_bodyText--post_fgef4_128","bodyText--modal":"_bodyText--modal_fgef4_133","bodyText__text--collapsed":"_bodyText__text--collapsed_fgef4_140",bodyText__textButton:oS,bodyText__showMore:iS};var Ai={};/**
|
|
120
|
+
`),()=>{document.head.removeChild(v)}},[e]),L.jsx(fk,{isPresent:e,childRef:r,sizeRef:i,children:c.cloneElement(t,{ref:r})})}const pk=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:l})=>{const h=i3(mk),f=k.useId(),p=k.useCallback(w=>{h.set(w,!0);for(const b of h.values())if(!b)return;r&&r()},[h,r]),v=k.useMemo(()=>({id:f,initial:e,isPresent:n,custom:i,onExitComplete:p,register:w=>(h.set(w,!1),()=>h.delete(w))}),a?[Math.random(),p]:[n,p]);return k.useMemo(()=>{h.forEach((w,b)=>h.set(b,!1))},[n]),c.useEffect(()=>{!n&&!h.size&&r&&r()},[n]),l==="popLayout"&&(t=L.jsx(hk,{isPresent:n,children:t})),L.jsx(Kc.Provider,{value:v,children:t})};function mk(){return new Map}const q1=t=>t.key||"";function gf(t){const e=[];return k.Children.forEach(t,n=>{k.isValidElement(n)&&e.push(n)}),e}const gk=({children:t,exitBeforeEnter:e,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:l="sync"})=>{mo(!e,"Replace exitBeforeEnter with mode='wait'");const h=k.useMemo(()=>gf(t),[t]),f=h.map(q1),p=k.useRef(!0),v=k.useRef(h),w=i3(()=>new Map),[b,T]=k.useState(h),[P,V]=k.useState(h);J5(()=>{p.current=!1,v.current=h;for(let O=0;O<P.length;O++){const $=q1(P[O]);f.includes($)?w.delete($):w.get($)!==!0&&w.set($,!1)}},[P,f.length,f.join("-")]);const F=[];if(h!==b){let O=[...h];for(let $=0;$<P.length;$++){const W=P[$],N=q1(W);f.includes(N)||(O.splice($,0,W),F.push(W))}l==="wait"&&F.length&&(O=F),V(gf(O)),T(h);return}process.env.NODE_ENV!=="production"&&l==="wait"&&P.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:A}=k.useContext(Q0);return L.jsx(L.Fragment,{children:P.map(O=>{const $=q1(O),W=h===P||f.includes($),N=()=>{if(w.has($))w.set($,!0);else return;let Y=!0;w.forEach(J=>{J||(Y=!1)}),Y&&(A==null||A(),V(v.current),i&&i())};return L.jsx(pk,{isPresent:W,initial:!p.current||r?void 0:!1,custom:W?void 0:n,presenceAffectsLayout:a,mode:l,onExitComplete:W?void 0:N,children:O},$)})})},vk="_tooltip_1rarq_120",Ck="_container_1rarq_170",Js={tooltip:vk,"tooltip--top":"_tooltip--top_1rarq_137","tooltip--bottom":"_tooltip--bottom_1rarq_145","tooltip--hasPointer":"_tooltip--hasPointer_1rarq_153","tooltip--hasPointer-top":"_tooltip--hasPointer-top_1rarq_163","tooltip--hasPointer-bottom":"_tooltip--hasPointer-bottom_1rarq_166",container:Ck},wk=({children:t,className:e,customSpacing:n,hasPointer:r=!1,id:i,position:a="top",showTooltip:l,text:h})=>{const[f,p]=k.useState(!1),[v,w]=k.useState(a),b=k.useRef(null),T=k.useRef(null),P=()=>{var J,K,ie;const V=(J=T.current)==null?void 0:J.getClientRects()[0],F=(ie=(K=b.current)==null?void 0:K.getClientRects()[0])==null?void 0:ie.height;if(!V||!F)return;const{bottom:A,top:O}=V,$=a==="top",W=a==="bottom",N=O-F,Y=A-F;w($&&N>=0?"top":W&&Y>=0||$?"bottom":"top")};return k.useEffect(()=>{h&&(f||l)&&P()},[f,l]),h?L.jsxs("div",{className:Js.container,ref:T,children:[L.jsx("div",{onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onFocus:()=>p(!0),onBlur:()=>p(!1),children:t}),L.jsx(gk,{children:(f||l)&&L.jsx(dk.div,{ref:b,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{delay:.2},role:"tooltip",id:i,"aria-hidden":!0,className:pe(Js.tooltip,Js[`tooltip--${v}`],e,{[Js["tooltip--hasPointer"]]:r,[Js[`tooltip--hasPointer-${v}`]]:r}),style:{"--tooltip-spacing":n},children:typeof h=="string"?L.jsx(De,{type:"detail-medium",children:h}):h})})]}):L.jsx("div",{className:Js.container,children:t})},yk="_primaryButton_zqo1o_120",wl={primaryButton:yk,"primaryButton--fullWidth":"_primaryButton--fullWidth_zqo1o_129","primaryButton--extraLarge":"_primaryButton--extraLarge_zqo1o_132","primaryButton--large":"_primaryButton--large_zqo1o_137","primaryButton--medium":"_primaryButton--medium_zqo1o_142","primaryButton--small":"_primaryButton--small_zqo1o_142","primaryButton--highlight":"_primaryButton--highlight_zqo1o_147","primaryButton--primary":"_primaryButton--primary_zqo1o_153","primaryButton--transparent":"_primaryButton--transparent_zqo1o_159","primaryButton--loading":"_primaryButton--loading_zqo1o_167"},ph=({children:t,className:e,color:n="primary",disabled:r,fullWidth:i,leftIcon:a,loading:l,rightIcon:h,size:f="extraLarge",text:p,...v})=>{const w=kr(a,[ot]),b=kr(h,[ot]),T=wl[`primaryButton--${n}`],P=wl[`primaryButton--${f}`],V={extraLarge:"h5",large:"h5",medium:"body-semibold",small:"detail-medium"};return L.jsxs(It,{...v,disabled:r,className:pe(wl.primaryButton,T,P,e,{[wl["primaryButton--loading"]]:l,[wl["primaryButton--fullWidth"]]:i}),children:[w,p&&L.jsx(De,{type:V[f],as:"span",children:p}),t,b]})},bk="_secondaryButton_3hju7_120",yl={secondaryButton:bk,"secondaryButton--fullWidth":"_secondaryButton--fullWidth_3hju7_132","secondaryButton--large":"_secondaryButton--large_3hju7_135","secondaryButton--medium":"_secondaryButton--medium_3hju7_140","secondaryButton--small":"_secondaryButton--small_3hju7_140","secondaryButton--green":"_secondaryButton--green_3hju7_145","secondaryButton--pink":"_secondaryButton--pink_3hju7_151","secondaryButton--grey":"_secondaryButton--grey_3hju7_159","secondaryButton--teal":"_secondaryButton--teal_3hju7_165","secondaryButton--lavender":"_secondaryButton--lavender_3hju7_171","secondaryButton--orange":"_secondaryButton--orange_3hju7_178","secondaryButton--loading":"_secondaryButton--loading_3hju7_184"},u3=({children:t,className:e,color:n="green",disabled:r,fullWidth:i,leftIcon:a,loading:l,rightIcon:h,size:f="extraLarge",text:p,...v})=>{const w=kr(a,[ot]),b=kr(h,[ot]),T=yl[`secondaryButton--${n}`],P=yl[`secondaryButton--${f}`],V={extraLarge:"h5",large:"h5",medium:"body-semibold",small:"detail-medium"};return L.jsxs(It,{...v,disabled:r,className:pe(yl.secondaryButton,T,P,e,{[yl["secondaryButton--loading"]]:l,[yl["secondaryButton--fullWidth"]]:i}),children:[w,p&&L.jsx(De,{type:V[f],as:"span",children:p}),t,b]})},xk="_tertiaryButton_1spai_120",bl={tertiaryButton:xk,"tertiaryButton--fullWidth":"_tertiaryButton--fullWidth_1spai_133","tertiaryButton--large":"_tertiaryButton--large_1spai_136","tertiaryButton--medium":"_tertiaryButton--medium_1spai_141","tertiaryButton--small":"_tertiaryButton--small_1spai_141","tertiaryButton--green":"_tertiaryButton--green_1spai_146","tertiaryButton--pink":"_tertiaryButton--pink_1spai_158","tertiaryButton--blue":"_tertiaryButton--blue_1spai_170","tertiaryButton--grey":"_tertiaryButton--grey_1spai_182","tertiaryButton--loading":"_tertiaryButton--loading_1spai_194"},d3=({children:t,className:e,color:n="green",disabled:r,fullWidth:i,leftIcon:a,loading:l,rightIcon:h,size:f="extraLarge",text:p,...v})=>{const w=kr(a,[ot]),b=kr(h,[ot]),T=bl[`tertiaryButton--${n}`],P=bl[`tertiaryButton--${f}`],V={extraLarge:"h5",large:"h5",medium:"body-semibold",small:"detail-medium"};return L.jsxs(It,{...v,disabled:r,className:pe(bl.tertiaryButton,T,P,e,{[bl["tertiaryButton--loading"]]:l,[bl["tertiaryButton--fullWidth"]]:i}),children:[w,p&&L.jsx(De,{type:V[f],as:"span",children:p}),t,b]})},_k="_root_1wel1_120",Ek="_root__label_1wel1_130",Su={root:_k,root__label:Ek,"root--filled":"_root--filled_1wel1_139","root--outline":"_root--outline_1wel1_149"},kk=({ariaLabel:t,iconSize:e="32",link:n,onClick:r,style:i="filled"})=>{const[a,l]=Of();k.useEffect(()=>{a&&r()},[a,r]);const h=()=>{l(n)};return L.jsxs(It,{className:pe(Su.root,Su[`root--${i}`]),onClick:h,ariaLabel:t,disabled:a,children:[L.jsx(De,{type:"body-large",className:Su.root__label,children:n}),L.jsx(ot,{name:"copy",size:e})]})},Sk="_iconButton_1117t_120",G1={iconButton:Sk,"iconButton--loading":"_iconButton--loading_1117t_158","iconButton--small":"_iconButton--small_1117t_164","iconButton--medium":"_iconButton--medium_1117t_168","iconButton--large":"_iconButton--large_1117t_172","iconButton--green":"_iconButton--green_1117t_176","iconButton--white":"_iconButton--white_1117t_188","iconButton--grey":"_iconButton--grey_1117t_202"},Rk=t=>t==="small"?"24":"32",Sr=k.forwardRef(({className:t,icon:e,iconClassName:n,loading:r,size:i="medium",variant:a,...l},h)=>{const f=Rk(i);return L.jsx(It,{...l,className:pe(G1.iconButton,t,{[G1["iconButton--loading"]]:r,[G1[`iconButton--${a}`]]:a,[G1[`iconButton--${i}`]]:a}),ref:h,children:L.jsx(ot,{size:f,name:e,className:n})})});Sr.displayName="IconButton";const Tk="_button_lgcgh_120",Mk="_button__icon_lgcgh_128",Y1={button:Tk,"button--selected":"_button--selected_lgcgh_125",button__icon:Mk,"button__icon--selected":"_button__icon--selected_lgcgh_131"};function Lk({iconClassName:t,iconSelected:e,iconUnselected:n,selected:r,...i}){const a=pe(Y1.button__icon,{[Y1["button__icon--selected"]]:r},t);return L.jsx(It,{...i,className:pe(Y1.button,{[Y1["button--selected"]]:r},i.className),children:L.jsx(ot,{className:a,size:"24",name:r?e:n})})}const Pk="_feedTile_123y5_120",Ak="_feedTile__icon_123y5_133",xl={feedTile:Pk,feedTile__icon:Ak,"feedTile--fullWidth":"_feedTile--fullWidth_123y5_157"},Fk=({fullWidth:t,icon:e,onClick:n,text:r})=>L.jsxs(It,{onClick:n,className:pe(xl.feedTile,{[xl["feedTile--fullWidth"]]:t}),children:[L.jsx(ot,{className:xl.feedTile__icon,name:e}),typeof r=="string"?L.jsx(De,{type:"body-regular",className:xl.feedTile__text,children:r}):L.jsx("span",{className:xl.feedTile__text,children:r})]}),Ik="_menuTile_1lvni_120",Dk="_menuTile__value_1lvni_140",X1={menuTile:Ik,"menuTile--fullWidth":"_menuTile--fullWidth_1lvni_133","menuTile--icon":"_menuTile--icon_1lvni_136",menuTile__value:Dk},Vk=({fullWidth:t=!1,icon:e,primaryText:n,secondaryText:r,...i})=>L.jsxs(It,{...i,className:pe(X1.menuTile,{[X1["menuTile--icon"]]:e,[X1["menuTile--fullWidth"]]:t}),children:[e&&L.jsx(ot,{name:e}),n&&L.jsx(De,{type:"detail-bold",className:X1.menuTile__value,children:n}),r&&L.jsx(De,{type:"detail-medium",children:r})]});var Bk="Expected a function",vf=NaN,Ok="[object Symbol]",$k=/^\s+|\s+$/g,jk=/^[-+]0x[0-9a-f]+$/i,Nk=/^0b[01]+$/i,Hk=/^0o[0-7]+$/i,Wk=parseInt,Uk=typeof ia=="object"&&ia&&ia.Object===Object&&ia,zk=typeof self=="object"&&self&&self.Object===Object&&self,Zk=Uk||zk||Function("return this")(),qk=Object.prototype,Gk=qk.toString,Yk=Math.max,Xk=Math.min,Ru=function(){return Zk.Date.now()};function Kk(t,e,n){var r,i,a,l,h,f,p=0,v=!1,w=!1,b=!0;if(typeof t!="function")throw new TypeError(Bk);e=Cf(e)||0,n0(n)&&(v=!!n.leading,w="maxWait"in n,a=w?Yk(Cf(n.maxWait)||0,e):a,b="trailing"in n?!!n.trailing:b);function T(Y){var J=r,K=i;return r=i=void 0,p=Y,l=t.apply(K,J),l}function P(Y){return p=Y,h=setTimeout(A,e),v?T(Y):l}function V(Y){var J=Y-f,K=Y-p,ie=e-J;return w?Xk(ie,a-K):ie}function F(Y){var J=Y-f,K=Y-p;return f===void 0||J>=e||J<0||w&&K>=a}function A(){var Y=Ru();if(F(Y))return O(Y);h=setTimeout(A,V(Y))}function O(Y){return h=void 0,b&&r?T(Y):(r=i=void 0,l)}function $(){h!==void 0&&clearTimeout(h),p=0,r=f=i=h=void 0}function W(){return h===void 0?l:O(Ru())}function N(){var Y=Ru(),J=F(Y);if(r=arguments,i=this,f=Y,J){if(h===void 0)return P(f);if(w)return h=setTimeout(A,e),T(f)}return h===void 0&&(h=setTimeout(A,e)),l}return N.cancel=$,N.flush=W,N}function n0(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Jk(t){return!!t&&typeof t=="object"}function Qk(t){return typeof t=="symbol"||Jk(t)&&Gk.call(t)==Ok}function Cf(t){if(typeof t=="number")return t;if(Qk(t))return vf;if(n0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=n0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace($k,"");var n=Nk.test(t);return n||Hk.test(t)?Wk(t.slice(2),n?2:8):jk.test(t)?vf:+t}var eS=Kk;const tS=$f(eS);function nS(t,{lines:e}){let[n,r]=k.useState(!0);return k.useEffect(()=>{let i=()=>{if(!t.current)return;let l={webkitLineClamp:t.current.style.webkitLineClamp,display:t.current.style.display,webkitBoxOrient:t.current.style.webkitBoxOrient,overflow:t.current.style.overflow};t.current.style.webkitLineClamp=e.toString(),t.current.style.display="-webkit-box",t.current.style.webkitBoxOrient="vertical",t.current.style.overflow="hidden",r(t.current.clientHeight!==t.current.scrollHeight),t.current.style.webkitLineClamp=l.webkitLineClamp,t.current.style.display=l.display,t.current.style.webkitBoxOrient=l.webkitBoxOrient,t.current.style.overflow=l.overflow},a=tS(i,50);return i(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[t]),n}const rS="_bodyText_fgef4_120",oS="_bodyText__textButton_fgef4_148",iS="_bodyText__showMore_fgef4_159",Ho={bodyText:rS,"bodyText--notClickable":"_bodyText--notClickable_fgef4_125","bodyText--post":"_bodyText--post_fgef4_128","bodyText--modal":"_bodyText--modal_fgef4_133","bodyText__text--collapsed":"_bodyText__text--collapsed_fgef4_140",bodyText__textButton:oS,bodyText__showMore:iS};var Ai={};/**
|
|
121
121
|
* @license React
|
|
122
122
|
* react-dom-server-legacy.browser.production.min.js
|
|
123
123
|
*
|
package/index.mjs
CHANGED
|
@@ -12713,17 +12713,17 @@ const yk = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
12713
12713
|
}
|
|
12714
12714
|
) })
|
|
12715
12715
|
] }) : /* @__PURE__ */ M.jsx("div", { className: oa.container, children: t });
|
|
12716
|
-
}, xk = "
|
|
12716
|
+
}, xk = "_primaryButton_zqo1o_120", Tl = {
|
|
12717
12717
|
primaryButton: xk,
|
|
12718
|
-
"primaryButton--fullWidth": "_primaryButton--
|
|
12719
|
-
"primaryButton--extraLarge": "_primaryButton--
|
|
12720
|
-
"primaryButton--large": "_primaryButton--
|
|
12721
|
-
"primaryButton--medium": "_primaryButton--
|
|
12722
|
-
"primaryButton--small": "_primaryButton--
|
|
12723
|
-
"primaryButton--highlight": "_primaryButton--
|
|
12724
|
-
"primaryButton--primary": "_primaryButton--
|
|
12725
|
-
"primaryButton--transparent": "_primaryButton--
|
|
12726
|
-
"primaryButton--loading": "_primaryButton--
|
|
12718
|
+
"primaryButton--fullWidth": "_primaryButton--fullWidth_zqo1o_129",
|
|
12719
|
+
"primaryButton--extraLarge": "_primaryButton--extraLarge_zqo1o_132",
|
|
12720
|
+
"primaryButton--large": "_primaryButton--large_zqo1o_137",
|
|
12721
|
+
"primaryButton--medium": "_primaryButton--medium_zqo1o_142",
|
|
12722
|
+
"primaryButton--small": "_primaryButton--small_zqo1o_142",
|
|
12723
|
+
"primaryButton--highlight": "_primaryButton--highlight_zqo1o_147",
|
|
12724
|
+
"primaryButton--primary": "_primaryButton--primary_zqo1o_153",
|
|
12725
|
+
"primaryButton--transparent": "_primaryButton--transparent_zqo1o_159",
|
|
12726
|
+
"primaryButton--loading": "_primaryButton--loading_zqo1o_167"
|
|
12727
12727
|
}, _k = ({
|
|
12728
12728
|
children: t,
|
|
12729
12729
|
className: e,
|