@goodhood-web/ui 3.0.0-development.10 → 3.0.0-development.11
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 +9 -9
- 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(yk,{isPresent:e,childRef:r,sizeRef:i,children:c.cloneElement(t,{ref:r})})}const xk=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:l})=>{const h=i3(_k),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(bk,{isPresent:n,children:t})),L.jsx(Kc.Provider,{value:v,children:t})};function _k(){return new Map}const q1=t=>t.key||"";function vf(t){const e=[];return k.Children.forEach(t,n=>{k.isValidElement(n)&&e.push(n)}),e}const Ek=({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(()=>vf(t),[t]),f=h.map(q1),p=k.useRef(!0),v=k.useRef(h),w=i3(()=>new Map),[b,T]=k.useState(h),[P,D]=k.useState(h);Q5(()=>{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),D(vf(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(),D(v.current),i&&i())};return L.jsx(xk,{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},$)})})},kk="_tooltip_1rarq_120",Sk="_container_1rarq_170",Js={tooltip:kk,"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:Sk},Rk=({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 D=(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(!D||!F)return;const{bottom:A,top:O}=D,$=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(Ek,{children:(f||l)&&L.jsx(wk.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(Ve,{type:"detail-medium",children:h}):h})})]}):L.jsx("div",{className:Js.container,children:t})},Tk="_primaryButton_zqo1o_120",wl={primaryButton:Tk,"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"},mh=({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}`],D={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(Ve,{type:D[f],as:"span",children:p}),t,b]})},Mk="_secondaryButton_3hju7_120",yl={secondaryButton:Mk,"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}`],D={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(Ve,{type:D[f],as:"span",children:p}),t,b]})},Lk="_tertiaryButton_1spai_120",bl={tertiaryButton:Lk,"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}`],D={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(Ve,{type:D[f],as:"span",children:p}),t,b]})},Pk="_root_1wel1_120",Ak="_root__label_1wel1_130",Su={root:Pk,root__label:Ak,"root--filled":"_root--filled_1wel1_139","root--outline":"_root--outline_1wel1_149"},Fk=({ariaLabel:t,iconSize:e="32",link:n,onClick:r,style:i="filled"})=>{const[a,l]=$f();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(Ve,{type:"body-large",className:Su.root__label,children:n}),L.jsx(ot,{name:"copy",size:e})]})},Ik="_iconButton_ok801_120",G1={iconButton:Ik,"iconButton--loading":"_iconButton--loading_ok801_158","iconButton--extraSmall":"_iconButton--extraSmall_ok801_167","iconButton--small":"_iconButton--small_ok801_172","iconButton--medium":"_iconButton--medium_ok801_177","iconButton--large":"_iconButton--large_ok801_182","iconButton--green":"_iconButton--green_ok801_187","iconButton--white":"_iconButton--white_ok801_199","iconButton--grey":"_iconButton--grey_ok801_213"},Vk=t=>t==="extraSmall"?"16":t==="small"?"24":"32",Sr=k.forwardRef(({className:t,icon:e,iconClassName:n,loading:r,size:i="medium",variant:a,...l},h)=>{const f=Vk(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 Dk="_button_lgcgh_120",Bk="_button__icon_lgcgh_128",Y1={button:Dk,"button--selected":"_button--selected_lgcgh_125",button__icon:Bk,"button__icon--selected":"_button__icon--selected_lgcgh_131"};function Ok({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),isToggleButton:!0,children:L.jsx(ot,{className:a,size:"24",name:r?e:n})})}const $k="_feedTile_123y5_120",jk="_feedTile__icon_123y5_133",xl={feedTile:$k,feedTile__icon:jk,"feedTile--fullWidth":"_feedTile--fullWidth_123y5_157"},Nk=({ariaLabel:t,fullWidth:e,icon:n,onClick:r,text:i})=>L.jsxs(It,{ariaLabel:t,onClick:r,className:pe(xl.feedTile,{[xl["feedTile--fullWidth"]]:e}),children:[L.jsx(ot,{className:xl.feedTile__icon,name:n}),typeof i=="string"?L.jsx(Ve,{type:"body-regular",className:xl.feedTile__text,children:i}):L.jsx("span",{className:xl.feedTile__text,children:i})]}),Hk="_menuTile_1lvni_120",Wk="_menuTile__value_1lvni_140",X1={menuTile:Hk,"menuTile--fullWidth":"_menuTile--fullWidth_1lvni_133","menuTile--icon":"_menuTile--icon_1lvni_136",menuTile__value:Wk},Uk=({ariaLabel:t,fullWidth:e=!1,icon:n,primaryText:r,secondaryText:i,...a})=>L.jsxs(It,{...a,ariaLabel:t,className:pe(X1.menuTile,{[X1["menuTile--icon"]]:n,[X1["menuTile--fullWidth"]]:e}),children:[n&&L.jsx(ot,{name:n}),r&&L.jsx(Ve,{type:"detail-bold",className:X1.menuTile__value,children:r}),i&&L.jsx(Ve,{type:"detail-medium",children:i})]});var zk="Expected a function",Cf=NaN,Zk="[object Symbol]",qk=/^\s+|\s+$/g,Gk=/^[-+]0x[0-9a-f]+$/i,Yk=/^0b[01]+$/i,Xk=/^0o[0-7]+$/i,Kk=parseInt,Jk=typeof ia=="object"&&ia&&ia.Object===Object&&ia,Qk=typeof self=="object"&&self&&self.Object===Object&&self,eS=Jk||Qk||Function("return this")(),tS=Object.prototype,nS=tS.toString,rS=Math.max,oS=Math.min,Ru=function(){return eS.Date.now()};function iS(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(zk);e=wf(e)||0,n0(n)&&(v=!!n.leading,w="maxWait"in n,a=w?rS(wf(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 D(Y){var J=Y-f,K=Y-p,ie=e-J;return w?oS(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,D(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 sS(t){return!!t&&typeof t=="object"}function aS(t){return typeof t=="symbol"||sS(t)&&nS.call(t)==Zk}function wf(t){if(typeof t=="number")return t;if(aS(t))return Cf;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(qk,"");var n=Yk.test(t);return n||Xk.test(t)?Kk(t.slice(2),n?2:8):Gk.test(t)?Cf:+t}var lS=iS;const cS=jf(lS);function uS(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=cS(i,50);return i(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[t]),n}const dS="_bodyText_fgef4_120",fS="_bodyText__textButton_fgef4_148",hS="_bodyText__showMore_fgef4_159",Ho={bodyText:dS,"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:fS,bodyText__showMore:hS};var Pi={};/**
|
|
120
|
+
`),()=>{document.head.removeChild(v)}},[e]),L.jsx(yk,{isPresent:e,childRef:r,sizeRef:i,children:c.cloneElement(t,{ref:r})})}const xk=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:l})=>{const h=i3(_k),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(bk,{isPresent:n,children:t})),L.jsx(Kc.Provider,{value:v,children:t})};function _k(){return new Map}const q1=t=>t.key||"";function vf(t){const e=[];return k.Children.forEach(t,n=>{k.isValidElement(n)&&e.push(n)}),e}const Ek=({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(()=>vf(t),[t]),f=h.map(q1),p=k.useRef(!0),v=k.useRef(h),w=i3(()=>new Map),[b,T]=k.useState(h),[P,D]=k.useState(h);Q5(()=>{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),D(vf(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(),D(v.current),i&&i())};return L.jsx(xk,{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},$)})})},kk="_tooltip_1rarq_120",Sk="_container_1rarq_170",Js={tooltip:kk,"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:Sk},Rk=({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 D=(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(!D||!F)return;const{bottom:A,top:O}=D,$=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(Ek,{children:(f||l)&&L.jsx(wk.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(Ve,{type:"detail-medium",children:h}):h})})]}):L.jsx("div",{className:Js.container,children:t})},Tk="_primaryButton_zqo1o_120",wl={primaryButton:Tk,"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"},mh=({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}`],D={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(Ve,{type:D[f],as:"span",children:p}),t,b]})},Mk="_secondaryButton_3hju7_120",yl={secondaryButton:Mk,"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}`],D={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(Ve,{type:D[f],as:"span",children:p}),t,b]})},Lk="_tertiaryButton_1spai_120",bl={tertiaryButton:Lk,"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}`],D={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(Ve,{type:D[f],as:"span",children:p}),t,b]})},Pk="_root_1wel1_120",Ak="_root__label_1wel1_130",Su={root:Pk,root__label:Ak,"root--filled":"_root--filled_1wel1_139","root--outline":"_root--outline_1wel1_149"},Fk=({ariaLabel:t,iconSize:e="32",link:n,onClick:r,style:i="filled"})=>{const[a,l]=$f();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(Ve,{type:"body-large",className:Su.root__label,children:n}),L.jsx(ot,{name:"copy",size:e})]})},Ik="_iconButton_dbzpp_120",G1={iconButton:Ik,"iconButton--loading":"_iconButton--loading_dbzpp_158","iconButton--extraSmall":"_iconButton--extraSmall_dbzpp_167","iconButton--small":"_iconButton--small_dbzpp_172","iconButton--medium":"_iconButton--medium_dbzpp_177","iconButton--large":"_iconButton--large_dbzpp_182","iconButton--green":"_iconButton--green_dbzpp_187","iconButton--white":"_iconButton--white_dbzpp_199","iconButton--grey":"_iconButton--grey_dbzpp_213"},Vk=t=>t==="extraSmall"?"16":t==="small"?"24":"32",Sr=k.forwardRef(({className:t,icon:e,iconClassName:n,loading:r,size:i="medium",variant:a,...l},h)=>{const f=Vk(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 Dk="_button_lgcgh_120",Bk="_button__icon_lgcgh_128",Y1={button:Dk,"button--selected":"_button--selected_lgcgh_125",button__icon:Bk,"button__icon--selected":"_button__icon--selected_lgcgh_131"};function Ok({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),isToggleButton:!0,children:L.jsx(ot,{className:a,size:"24",name:r?e:n})})}const $k="_feedTile_123y5_120",jk="_feedTile__icon_123y5_133",xl={feedTile:$k,feedTile__icon:jk,"feedTile--fullWidth":"_feedTile--fullWidth_123y5_157"},Nk=({ariaLabel:t,fullWidth:e,icon:n,onClick:r,text:i})=>L.jsxs(It,{ariaLabel:t,onClick:r,className:pe(xl.feedTile,{[xl["feedTile--fullWidth"]]:e}),children:[L.jsx(ot,{className:xl.feedTile__icon,name:n}),typeof i=="string"?L.jsx(Ve,{type:"body-regular",className:xl.feedTile__text,children:i}):L.jsx("span",{className:xl.feedTile__text,children:i})]}),Hk="_menuTile_1lvni_120",Wk="_menuTile__value_1lvni_140",X1={menuTile:Hk,"menuTile--fullWidth":"_menuTile--fullWidth_1lvni_133","menuTile--icon":"_menuTile--icon_1lvni_136",menuTile__value:Wk},Uk=({ariaLabel:t,fullWidth:e=!1,icon:n,primaryText:r,secondaryText:i,...a})=>L.jsxs(It,{...a,ariaLabel:t,className:pe(X1.menuTile,{[X1["menuTile--icon"]]:n,[X1["menuTile--fullWidth"]]:e}),children:[n&&L.jsx(ot,{name:n}),r&&L.jsx(Ve,{type:"detail-bold",className:X1.menuTile__value,children:r}),i&&L.jsx(Ve,{type:"detail-medium",children:i})]});var zk="Expected a function",Cf=NaN,Zk="[object Symbol]",qk=/^\s+|\s+$/g,Gk=/^[-+]0x[0-9a-f]+$/i,Yk=/^0b[01]+$/i,Xk=/^0o[0-7]+$/i,Kk=parseInt,Jk=typeof ia=="object"&&ia&&ia.Object===Object&&ia,Qk=typeof self=="object"&&self&&self.Object===Object&&self,eS=Jk||Qk||Function("return this")(),tS=Object.prototype,nS=tS.toString,rS=Math.max,oS=Math.min,Ru=function(){return eS.Date.now()};function iS(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(zk);e=wf(e)||0,n0(n)&&(v=!!n.leading,w="maxWait"in n,a=w?rS(wf(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 D(Y){var J=Y-f,K=Y-p,ie=e-J;return w?oS(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,D(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 sS(t){return!!t&&typeof t=="object"}function aS(t){return typeof t=="symbol"||sS(t)&&nS.call(t)==Zk}function wf(t){if(typeof t=="number")return t;if(aS(t))return Cf;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(qk,"");var n=Yk.test(t);return n||Xk.test(t)?Kk(t.slice(2),n?2:8):Gk.test(t)?Cf:+t}var lS=iS;const cS=jf(lS);function uS(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=cS(i,50);return i(),window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[t]),n}const dS="_bodyText_fgef4_120",fS="_bodyText__textButton_fgef4_148",hS="_bodyText__showMore_fgef4_159",Ho={bodyText:dS,"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:fS,bodyText__showMore:hS};var Pi={};/**
|
|
121
121
|
* @license React
|
|
122
122
|
* react-dom-server-legacy.browser.production.min.js
|
|
123
123
|
*
|
package/index.mjs
CHANGED
|
@@ -12898,16 +12898,16 @@ const Rk = ({ children: t, exitBeforeEnter: e, custom: n, initial: r = !0, onExi
|
|
|
12898
12898
|
]
|
|
12899
12899
|
}
|
|
12900
12900
|
);
|
|
12901
|
-
}, Bk = "
|
|
12901
|
+
}, Bk = "_iconButton_dbzpp_120", tc = {
|
|
12902
12902
|
iconButton: Bk,
|
|
12903
|
-
"iconButton--loading": "_iconButton--
|
|
12904
|
-
"iconButton--extraSmall": "_iconButton--
|
|
12905
|
-
"iconButton--small": "_iconButton--
|
|
12906
|
-
"iconButton--medium": "_iconButton--
|
|
12907
|
-
"iconButton--large": "_iconButton--
|
|
12908
|
-
"iconButton--green": "_iconButton--
|
|
12909
|
-
"iconButton--white": "_iconButton--
|
|
12910
|
-
"iconButton--grey": "_iconButton--
|
|
12903
|
+
"iconButton--loading": "_iconButton--loading_dbzpp_158",
|
|
12904
|
+
"iconButton--extraSmall": "_iconButton--extraSmall_dbzpp_167",
|
|
12905
|
+
"iconButton--small": "_iconButton--small_dbzpp_172",
|
|
12906
|
+
"iconButton--medium": "_iconButton--medium_dbzpp_177",
|
|
12907
|
+
"iconButton--large": "_iconButton--large_dbzpp_182",
|
|
12908
|
+
"iconButton--green": "_iconButton--green_dbzpp_187",
|
|
12909
|
+
"iconButton--white": "_iconButton--white_dbzpp_199",
|
|
12910
|
+
"iconButton--grey": "_iconButton--grey_dbzpp_213"
|
|
12911
12911
|
}, Ok = (t) => t === "extraSmall" ? "16" : t === "small" ? "24" : "32", qr = D(
|
|
12912
12912
|
({
|
|
12913
12913
|
className: t,
|