This commit is contained in:
hobbes7878 2024-08-28 10:56:21 +01:00
parent be89de3078
commit 3dbfb30c48
85 changed files with 91 additions and 91 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CswL0fy2.js","./index-DwChlhAQ.js","./_commonjsHelpers-BosuxZz1.js","./index-D-8MO0q_.js"])))=>i.map(i=>d[i]);
import{_ as d}from"./iframe-CqubeUtq.js";import{a as h,R as o,r as i}from"./index-DwChlhAQ.js";import{C as E,A as R,H as x,D as y}from"./index-BuvbpKx8.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";var m={},u=h;m.createRoot=u.createRoot,m.hydrateRoot=u.hydrateRoot;var n=new Map,D=({callback:t,children:e})=>{let r=i.useRef();return i.useLayoutEffect(()=>{r.current!==t&&(r.current=t,t())},[t]),e},v=async(t,e,r)=>{let s=await _(e,r);return new Promise(a=>{s.render(o.createElement(D,{callback:()=>a(null)},t))})},w=(t,e)=>{let r=n.get(t);r&&(r.unmount(),n.delete(t))},_=async(t,e)=>{let r=n.get(t);return r||(r=m.createRoot(t,e),n.set(t,r)),r},f={code:E,a:R,...x},g=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:e}=this.props;e(t)}render(){let{hasError:t}=this.state,{children:e}=this.props;return t?null:o.createElement(o.Fragment,null,e)}},T=class{constructor(){this.render=async(t,e,r)=>{let s={...f,...e==null?void 0:e.components},a=y;return new Promise((p,l)=>{d(async()=>{const{MDXProvider:c}=await import("./index-CswL0fy2.js");return{MDXProvider:c}},__vite__mapDeps([0,1,2,3]),import.meta.url).then(({MDXProvider:c})=>v(o.createElement(g,{showException:l,key:Math.random()},o.createElement(c,{components:s},o.createElement(a,{context:t,docsParameter:e}))),r)).then(()=>p())})},this.unmount=t=>{w(t)}}};export{T as DocsRenderer,f as defaultComponents};
import{_ as d}from"./iframe-SAeDpW7h.js";import{a as h,R as o,r as i}from"./index-DwChlhAQ.js";import{C as E,A as R,H as x,D as y}from"./index-CluuxvkZ.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";var m={},u=h;m.createRoot=u.createRoot,m.hydrateRoot=u.hydrateRoot;var n=new Map,D=({callback:t,children:e})=>{let r=i.useRef();return i.useLayoutEffect(()=>{r.current!==t&&(r.current=t,t())},[t]),e},v=async(t,e,r)=>{let s=await _(e,r);return new Promise(a=>{s.render(o.createElement(D,{callback:()=>a(null)},t))})},w=(t,e)=>{let r=n.get(t);r&&(r.unmount(),n.delete(t))},_=async(t,e)=>{let r=n.get(t);return r||(r=m.createRoot(t,e),n.set(t,r)),r},f={code:E,a:R,...x},g=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:e}=this.props;e(t)}render(){let{hasError:t}=this.state,{children:e}=this.props;return t?null:o.createElement(o.Fragment,null,e)}},T=class{constructor(){this.render=async(t,e,r)=>{let s={...f,...e==null?void 0:e.components},a=y;return new Promise((p,l)=>{d(async()=>{const{MDXProvider:c}=await import("./index-CswL0fy2.js");return{MDXProvider:c}},__vite__mapDeps([0,1,2,3]),import.meta.url).then(({MDXProvider:c})=>v(o.createElement(g,{showException:l,key:Math.random()},o.createElement(c,{components:s},o.createElement(a,{context:t,docsParameter:e}))),r)).then(()=>p())})},this.unmount=t=>{w(t)}}};export{T as DocsRenderer,f as defaultComponents};

View file

@ -1,2 +1,2 @@
import{R as e,r as o}from"./index-DwChlhAQ.js";import{U as u}from"./index-BuvbpKx8.js";const E="_title_13v0c_1",d="_table_13v0c_31",s={title:E,table:d},y=t=>t.children.split(`
import{R as e,r as o}from"./index-DwChlhAQ.js";import{U as u}from"./index-CluuxvkZ.js";const E="_title_13v0c_1",d="_table_13v0c_31",s={title:E,table:d},y=t=>t.children.split(`
`).map(a=>e.createElement("div",{key:a},a)),b=t=>{const a=async l=>{const c=typeof l.copyable[l.column]=="function"?l.copyable[l.column](`${l.children}`):`${l.children}`;await navigator.clipboard.writeText(c),r(!0)},[n,r]=o.useState(!1);let m;return o.useEffect(()=>{m&&clearTimeout(m),m=setTimeout(()=>{r(!1)},1e3)},[n]),t.copyable&&t.copyable[t.column]?e.createElement("button",{className:"copy-btn",onClick:()=>a(t)},e.createElement("span",{className:"material-symbols-outlined"},"content_copy"),t.children,n&&e.createElement("div",{className:"copy-tag"},"Copied")):e.createElement(y,null,t.children)},f=t=>e.createElement("td",null,e.createElement(b,{...t},t.children)),h=t=>e.createElement("tr",null,t.children.map((a,n)=>e.createElement(f,{...t,column:n,key:n},a))),C=t=>e.createElement("th",null,t.children),v=({title:t=null,note:a=null,header:n,body:r,copyable:m,mdnLink:l=null})=>e.createElement(u,null,e.createElement("div",{className:s.title},t,t&&l&&e.createElement("a",{href:`https://developer.mozilla.org/en-US/docs/Web/CSS/${l}`,target:"_blank",rel:"noreferrer"},e.createElement("span",{className:"material-symbols-outlined"},"link")),a&&e.createElement("p",null,a)),e.createElement("table",{className:s.table},e.createElement("thead",null,e.createElement("tr",null,n.map(c=>e.createElement(C,{key:c},c)))),e.createElement("tbody",null,r.map((c,i)=>e.createElement(h,{title:t,header:n,body:r,copyable:m,mdnLink:l,key:i},c)))));export{v as C};

View file

@ -1,2 +1,2 @@
import{R as e,r as m}from"./index-DwChlhAQ.js";import{S as u,p as y}from"./prism-yuxV06zr.js";import{s as h}from"./scss-BCrErVeE.js";import{U as f}from"./index-BuvbpKx8.js";const b="_title_daft4_1",g="_table_daft4_20",C="_importsnippet_daft4_125",i={title:b,table:g,importsnippet:C};u.registerLanguage("scss",h);const d=t=>t.replace(/\/_/,"/").replace(/\.scss$/,""),_=t=>{const[a,l]=m.useState(!1);let c;m.useEffect(()=>{c&&clearTimeout(c),c=setTimeout(()=>{l(!1)},1500)},[a]);const n=async({partial:s})=>{const r=`@import "@reuters-graphics/graphics-components/scss/colours/${d(s)}";`;await navigator.clipboard.writeText(r),l(!0)};return e.createElement("button",{className:"copy-btn",onClick:()=>n(t)},e.createElement("span",{className:"material-symbols-outlined"},"content_copy"),a&&e.createElement("span",{className:"copy-tag"},"Copied"))},N=({included:t=!1,partial:a="thematic/_tr.scss"})=>t?e.createElement("div",{className:i.importsnippet},e.createElement("p",null,"Included")):e.createElement("div",{className:i.importsnippet},e.createElement(u,{language:"scss",style:y},`// global.scss
import{R as e,r as m}from"./index-DwChlhAQ.js";import{S as u,p as y}from"./prism-BWqcFp3z.js";import{s as h}from"./scss-BCrErVeE.js";import{U as f}from"./index-CluuxvkZ.js";const b="_title_daft4_1",g="_table_daft4_20",C="_importsnippet_daft4_125",i={title:b,table:g,importsnippet:C};u.registerLanguage("scss",h);const d=t=>t.replace(/\/_/,"/").replace(/\.scss$/,""),_=t=>{const[a,l]=m.useState(!1);let c;m.useEffect(()=>{c&&clearTimeout(c),c=setTimeout(()=>{l(!1)},1500)},[a]);const n=async({partial:s})=>{const r=`@import "@reuters-graphics/graphics-components/scss/colours/${d(s)}";`;await navigator.clipboard.writeText(r),l(!0)};return e.createElement("button",{className:"copy-btn",onClick:()=>n(t)},e.createElement("span",{className:"material-symbols-outlined"},"content_copy"),a&&e.createElement("span",{className:"copy-tag"},"Copied"))},N=({included:t=!1,partial:a="thematic/_tr.scss"})=>t?e.createElement("div",{className:i.importsnippet},e.createElement("p",null,"Included")):e.createElement("div",{className:i.importsnippet},e.createElement(u,{language:"scss",style:y},`// global.scss
@import "@reuters-graphics/graphics-components/scss/colours/${d(a)}";`),e.createElement(_,{partial:a})),p=t=>{const a=async l=>{const c=l.wrap?`var(${l.children})`:l.children;await navigator.clipboard.writeText(c),l.setCopied(!0)};return e.createElement("button",{className:"copy-btn",onClick:()=>a(t)},e.createElement("span",{className:"material-symbols-outlined"},"content_copy"),t.children,t.copied&&e.createElement("div",{className:"copy-tag"},"Copied"))},T=t=>{const[a,l]=m.useState(!1);let c;m.useEffect(()=>{c&&clearTimeout(c),c=setTimeout(()=>{l(!1)},1e3)},[a]);const n={...t,copied:a,setCopied:l};return t.column===0?e.createElement("div",{className:"swatch-container"},e.createElement("div",{className:"swatch",style:{backgroundColor:t.children}}),e.createElement("span",null,e.createElement(p,{...n},t.children))):t.children.map(s=>e.createElement("div",{key:s},e.createElement(p,{...n,wrap:!0},s)))},v=t=>e.createElement("td",null,e.createElement(T,{...t},t.children)),k=t=>e.createElement("tr",null,t.children.map((a,l)=>e.createElement(v,{...t,column:l,key:l},a))),w=t=>e.createElement("th",null,t.children),H=({title:t=null,body:a,copyable:l,mdnLink:c=null,included:n=!1,partial:s})=>{const r=["Colour","CSS variable"];return e.createElement(f,null,e.createElement("div",{className:i.title},t),e.createElement(N,{included:n,partial:s}),e.createElement("table",{className:i.table},e.createElement("thead",null,e.createElement("tr",null,r.map(o=>e.createElement(w,{key:o},o)))),e.createElement("tbody",null,a.map((o,E)=>e.createElement(k,{title:t,header:r,body:a,copyable:l,mdnLink:c,key:E},o)))))};export{H as C};

View file

@ -1,4 +1,4 @@
import{j as r,p as c}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as i}from"./index-CswL0fy2.js";import{M as u}from"./index-BuvbpKx8.js";import{C as t}from"./Table-CDqPTBmc.js";import{c as s}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const a=`.cursor-auto {
import{j as r,p as c}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as i}from"./index-CswL0fy2.js";import{M as u}from"./index-CluuxvkZ.js";import{C as t}from"./Table-CYaDd5u2.js";import{c as s}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const a=`.cursor-auto {
cursor: auto;
}
.cursor-default {

View file

@ -1 +1 @@
import{w as ln,c as J}from"./path-CbwjOpE9.js";import{D as rn,E as N,F as D,G as an,H as y,I as on,J as z,K as _,L as un,M as t,N as sn,O as tn,P as fn}from"./intro-QWY8Oh9i.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,O,E,v,A,K,r){var q=O-l,i=E-h,n=K-v,m=r-A,a=m*q-n*i;if(!(a*a<y))return a=(n*(h-A)-m*(l-v))/a,[l+a*q,h+a*i]}function W(l,h,O,E,v,A,K){var r=l-O,q=h-E,i=(K?A:-A)/z(r*r+q*q),n=i*q,m=-i*r,a=l+n,s=h+m,f=O+n,c=E+m,L=(a+f)/2,o=(s+c)/2,p=f-a,g=c-s,R=p*p+g*g,T=v-A,P=a*c-f*s,F=(g<0?-1:1)*z(fn(0,T*T*R-P*P)),G=(P*g-p*F)/R,H=(-P*p-g*F)/R,w=(P*g+p*F)/R,d=(-P*p+g*F)/R,x=G-L,e=H-o,u=w-L,M=d-o;return x*x+e*e>u*u+M*M&&(G=w,H=d),{cx:G,cy:H,x01:-n,y01:-m,x11:G*(v/T-1),y11:H*(v/T-1)}}function vn(){var l=cn,h=yn,O=J(0),E=null,v=gn,A=mn,K=pn,r=null,q=ln(i);function i(){var n,m,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,L=un(c-f),o=c>f;if(r||(r=n=q()),s<a&&(m=s,s=a,a=m),!(s>y))r.moveTo(0,0);else if(L>on-y)r.moveTo(s*N(f),s*D(f)),r.arc(0,0,s,f,c,!o),a>y&&(r.moveTo(a*N(c),a*D(c)),r.arc(0,0,a,c,f,o));else{var p=f,g=c,R=f,T=c,P=L,F=L,G=K.apply(this,arguments)/2,H=G>y&&(E?+E.apply(this,arguments):z(a*a+s*s)),w=_(un(s-a)/2,+O.apply(this,arguments)),d=w,x=w,e,u;if(H>y){var M=sn(H/a*D(G)),B=sn(H/s*D(G));(P-=M*2)>y?(M*=o?1:-1,R+=M,T-=M):(P=0,R=T=(f+c)/2),(F-=B*2)>y?(B*=o?1:-1,p+=B,g-=B):(F=0,p=g=(f+c)/2)}var S=s*N(p),j=s*D(p),C=a*N(T),Q=a*D(T);if(w>y){var U=s*N(g),V=s*D(g),X=a*N(R),Y=a*D(R),I;if(L<rn)if(I=dn(S,j,X,Y,U,V,C,Q)){var Z=S-I[0],$=j-I[1],k=U-I[0],b=V-I[1],nn=1/D(tn((Z*k+$*b)/(z(Z*Z+$*$)*z(k*k+b*b)))/2),en=z(I[0]*I[0]+I[1]*I[1]);d=_(w,(a-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else d=x=0}F>y?x>y?(e=W(X,Y,S,j,s,x,o),u=W(U,V,C,Q,s,x,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?r.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(u.y01,u.x01),!o):(r.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),r.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),!o),r.arc(u.cx,u.cy,x,t(u.y11,u.x11),t(u.y01,u.x01),!o))):(r.moveTo(S,j),r.arc(0,0,s,p,g,!o)):r.moveTo(S,j),!(a>y)||!(P>y)?r.lineTo(C,Q):d>y?(e=W(C,Q,U,V,a,-d,o),u=W(S,j,X,Y,a,-d,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),d<w?r.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(u.y01,u.x01),!o):(r.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(e.y11,e.x11),!o),r.arc(0,0,a,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),o),r.arc(u.cx,u.cy,d,t(u.y11,u.x11),t(u.y01,u.x01),!o))):r.arc(0,0,a,T,R,o)}if(r.closePath(),n)return r=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-rn/2;return[N(m)*n,D(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:J(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:J(+n),i):h},i.cornerRadius=function(n){return arguments.length?(O=typeof n=="function"?n:J(+n),i):O},i.padRadius=function(n){return arguments.length?(E=n==null?null:typeof n=="function"?n:J(+n),i):E},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:J(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:J(+n),i):A},i.padAngle=function(n){return arguments.length?(K=typeof n=="function"?n:J(+n),i):K},i.context=function(n){return arguments.length?(r=n??null,i):r},i}export{vn as a};
import{w as ln,c as J}from"./path-CbwjOpE9.js";import{D as rn,E as N,F as D,G as an,H as y,I as on,J as z,K as _,L as un,M as t,N as sn,O as tn,P as fn}from"./intro-CXHH-5HQ.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function dn(l,h,O,E,v,A,K,r){var q=O-l,i=E-h,n=K-v,m=r-A,a=m*q-n*i;if(!(a*a<y))return a=(n*(h-A)-m*(l-v))/a,[l+a*q,h+a*i]}function W(l,h,O,E,v,A,K){var r=l-O,q=h-E,i=(K?A:-A)/z(r*r+q*q),n=i*q,m=-i*r,a=l+n,s=h+m,f=O+n,c=E+m,L=(a+f)/2,o=(s+c)/2,p=f-a,g=c-s,R=p*p+g*g,T=v-A,P=a*c-f*s,F=(g<0?-1:1)*z(fn(0,T*T*R-P*P)),G=(P*g-p*F)/R,H=(-P*p-g*F)/R,w=(P*g+p*F)/R,d=(-P*p+g*F)/R,x=G-L,e=H-o,u=w-L,M=d-o;return x*x+e*e>u*u+M*M&&(G=w,H=d),{cx:G,cy:H,x01:-n,y01:-m,x11:G*(v/T-1),y11:H*(v/T-1)}}function vn(){var l=cn,h=yn,O=J(0),E=null,v=gn,A=mn,K=pn,r=null,q=ln(i);function i(){var n,m,a=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-an,c=A.apply(this,arguments)-an,L=un(c-f),o=c>f;if(r||(r=n=q()),s<a&&(m=s,s=a,a=m),!(s>y))r.moveTo(0,0);else if(L>on-y)r.moveTo(s*N(f),s*D(f)),r.arc(0,0,s,f,c,!o),a>y&&(r.moveTo(a*N(c),a*D(c)),r.arc(0,0,a,c,f,o));else{var p=f,g=c,R=f,T=c,P=L,F=L,G=K.apply(this,arguments)/2,H=G>y&&(E?+E.apply(this,arguments):z(a*a+s*s)),w=_(un(s-a)/2,+O.apply(this,arguments)),d=w,x=w,e,u;if(H>y){var M=sn(H/a*D(G)),B=sn(H/s*D(G));(P-=M*2)>y?(M*=o?1:-1,R+=M,T-=M):(P=0,R=T=(f+c)/2),(F-=B*2)>y?(B*=o?1:-1,p+=B,g-=B):(F=0,p=g=(f+c)/2)}var S=s*N(p),j=s*D(p),C=a*N(T),Q=a*D(T);if(w>y){var U=s*N(g),V=s*D(g),X=a*N(R),Y=a*D(R),I;if(L<rn)if(I=dn(S,j,X,Y,U,V,C,Q)){var Z=S-I[0],$=j-I[1],k=U-I[0],b=V-I[1],nn=1/D(tn((Z*k+$*b)/(z(Z*Z+$*$)*z(k*k+b*b)))/2),en=z(I[0]*I[0]+I[1]*I[1]);d=_(w,(a-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else d=x=0}F>y?x>y?(e=W(X,Y,S,j,s,x,o),u=W(U,V,C,Q,s,x,o),r.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?r.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(u.y01,u.x01),!o):(r.arc(e.cx,e.cy,x,t(e.y01,e.x01),t(e.y11,e.x11),!o),r.arc(0,0,s,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),!o),r.arc(u.cx,u.cy,x,t(u.y11,u.x11),t(u.y01,u.x01),!o))):(r.moveTo(S,j),r.arc(0,0,s,p,g,!o)):r.moveTo(S,j),!(a>y)||!(P>y)?r.lineTo(C,Q):d>y?(e=W(C,Q,U,V,a,-d,o),u=W(S,j,X,Y,a,-d,o),r.lineTo(e.cx+e.x01,e.cy+e.y01),d<w?r.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(u.y01,u.x01),!o):(r.arc(e.cx,e.cy,d,t(e.y01,e.x01),t(e.y11,e.x11),!o),r.arc(0,0,a,t(e.cy+e.y11,e.cx+e.x11),t(u.cy+u.y11,u.cx+u.x11),o),r.arc(u.cx,u.cy,d,t(u.y11,u.x11),t(u.y01,u.x01),!o))):r.arc(0,0,a,T,R,o)}if(r.closePath(),n)return r=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,m=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-rn/2;return[N(m)*n,D(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:J(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:J(+n),i):h},i.cornerRadius=function(n){return arguments.length?(O=typeof n=="function"?n:J(+n),i):O},i.padRadius=function(n){return arguments.length?(E=n==null?null:typeof n=="function"?n:J(+n),i):E},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:J(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:J(+n),i):A},i.padAngle=function(n){return arguments.length?(K=typeof n=="function"?n:J(+n),i):K},i.context=function(n){return arguments.length?(r=n??null,i):r},i}export{vn as a};

View file

@ -1,4 +1,4 @@
import{j as e,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function t(n){const o={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",img:"img",p:"p",pre:"pre",strong:"strong",...s(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Contributing/Recipes: Basic story",parameters:{...r}}),`
import{j as e,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function t(n){const o={a:"a",blockquote:"blockquote",code:"code",em:"em",h1:"h1",img:"img",p:"p",pre:"pre",strong:"strong",...s(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Contributing/Recipes: Basic story",parameters:{...r}}),`
`,e.jsx(o.p,{children:e.jsx(o.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(o.h1,{id:"recipes-basic-story",children:"Recipes: Basic story"}),`
`,e.jsxs(o.p,{children:["To make a basic story, you'll need to setup a few things from storybook's Svelte ",e.jsx(o.a,{href:"https://storybook.js.org/docs/svelte/api/csf",rel:"nofollow",children:"Component Story Framework (CSF)"})," library."]}),`

View file

@ -1 +0,0 @@
import{U as a,C as n}from"./intro-QWY8Oh9i.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};

View file

@ -0,0 +1 @@
import{U as a,C as n}from"./intro-CXHH-5HQ.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};

View file

@ -1,2 +1,2 @@
import{p as M,d as _,s as R}from"./styles-b83b31c9-D1xjBSh7.js";import{l as d,c,h as w,u as B,_ as G,$ as D,a0 as E,a1 as C,j as $}from"./intro-QWY8Oh9i.js";import{G as z}from"./graph-BFbYNB1y.js";import{r as P}from"./index-01f381cb-DvAYAcuU.js";import"./dayjs.min-BIwLhz4I.js";import"./layout-DN0WpvzT.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-BuvbpKx8.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CDqPTBmc.js";import"./parseCss-DBuO8nz4.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./_baseClone-BMmn5UJb.js";import"./clone-BwatiCUu.js";import"./edges-066a5561-YB1vzZmN.js";import"./createText-ca0c5216-DRAWlaTX.js";import"./line-BUKg1QEZ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./toNumber-BrygkUtK.js";import"./_baseSet-DBo-XiK2.js";const S=s=>$.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const q=function(s,e,m,a){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),A(l.classes,e,m,a,l.id),d.info("setNode",p)})},A=function(s,e,m,a,t){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),y=D(n.styles),u=n.label??n.id,b=0,f={labelStyle:y.labelStyle,shape:"class_box",labelText:S(u),classData:n,rx:b,ry:b,class:p,style:y.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,f),t&&e.setParent(n.id,t),d.info("setNode",f)})},F=function(s,e,m,a){d.info(s),s.forEach(function(t,i){var o,r;const l=t,n="",p={labelStyle:"",style:""},y=l.text,u=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(y),noteData:l,rx:u,ry:u,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const f=m+i,x={id:`edgeNote${f}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,f)})},H=function(s,e){const m=c().flowchart;let a=0;s.forEach(function(t){var i;a++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${a}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(m==null?void 0:m.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+t.text+"</span>"):(o.labelType="text",o.label=t.text.replace($.lineBreakRegex,`
import{p as M,d as _,s as R}from"./styles-b83b31c9-9-pwmC-k.js";import{l as d,c,h as w,u as B,_ as G,$ as D,a0 as E,a1 as C,j as $}from"./intro-CXHH-5HQ.js";import{G as z}from"./graph-KCYNp7LR.js";import{r as P}from"./index-01f381cb-BWb0GTQT.js";import"./dayjs.min-BIwLhz4I.js";import"./layout-BLw3CEuw.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-CluuxvkZ.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CYaDd5u2.js";import"./parseCss-v88YhYdJ.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./_baseClone-BMmn5UJb.js";import"./clone-BwatiCUu.js";import"./edges-066a5561-CyQZbOkE.js";import"./createText-ca0c5216-B8gJDg8l.js";import"./line-iMuPrBfg.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./toNumber-BrygkUtK.js";import"./_baseSet-DBo-XiK2.js";const S=s=>$.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const q=function(s,e,m,a){const t=Object.keys(s);d.info("keys:",t),d.info(s),t.forEach(function(i){var o,r;const l=s[i],p={shape:"rect",id:l.id,domId:l.domId,labelText:S(l.id),labelStyle:"",style:"fill: none; stroke: black",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};e.setNode(l.id,p),A(l.classes,e,m,a,l.id),d.info("setNode",p)})},A=function(s,e,m,a,t){const i=Object.keys(s);d.info("keys:",i),d.info(s),i.filter(o=>s[o].parent==t).forEach(function(o){var r,l;const n=s[o],p=n.cssClasses.join(" "),y=D(n.styles),u=n.label??n.id,b=0,f={labelStyle:y.labelStyle,shape:"class_box",labelText:S(u),classData:n,rx:b,ry:b,class:p,style:y.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,t)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((l=c().class)==null?void 0:l.padding)};e.setNode(n.id,f),t&&e.setParent(n.id,t),d.info("setNode",f)})},F=function(s,e,m,a){d.info(s),s.forEach(function(t,i){var o,r;const l=t,n="",p={labelStyle:"",style:""},y=l.text,u=0,h={labelStyle:p.labelStyle,shape:"note",labelText:S(y),noteData:l,rx:u,ry:u,class:n,style:p.style,id:l.id,domId:l.id,tooltip:"",type:"note",padding:((o=c().flowchart)==null?void 0:o.padding)??((r=c().class)==null?void 0:r.padding)};if(e.setNode(l.id,h),d.info("setNode",h),!l.class||!(l.class in a))return;const f=m+i,x={id:`edgeNote${f}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:E(k.curve,C)};e.setEdge(l.id,l.class,x,f)})},H=function(s,e){const m=c().flowchart;let a=0;s.forEach(function(t){var i;a++;const o={classes:"relation",pattern:t.relation.lineType==1?"dashed":"solid",id:`id_${t.id1}_${t.id2}_${a}`,arrowhead:t.type==="arrow_open"?"none":"normal",startLabelRight:t.relationTitle1==="none"?"":t.relationTitle1,endLabelLeft:t.relationTitle2==="none"?"":t.relationTitle2,arrowTypeStart:N(t.relation.type1),arrowTypeEnd:N(t.relation.type2),style:"fill:none",labelStyle:"",curve:E(m==null?void 0:m.curve,C)};if(d.info(o,t),t.style!==void 0){const r=D(t.style);o.style=r.style,o.labelStyle=r.labelStyle}t.text=t.title,t.text===void 0?t.style!==void 0&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+t.text+"</span>"):(o.labelType="text",o.label=t.text.replace($.lineBreakRegex,`
`),t.style===void 0&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),e.setEdge(t.id1,t.id2,o,a)})},V=function(s){k={...k,...s}},W=async function(s,e,m,a){d.info("Drawing class - ",e);const t=c().flowchart??c().class,i=c().securityLevel;d.info("config:",t);const o=(t==null?void 0:t.nodeSpacing)??50,r=(t==null?void 0:t.rankSpacing)??50,l=new z({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:o,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),p=a.db.getClasses(),y=a.db.getRelations(),u=a.db.getNotes();d.info(y),q(n,l,e,a),A(p,l,e,a),H(y,l),F(u,l,y.length+1,p);let b;i==="sandbox"&&(b=w("#i"+e));const h=i==="sandbox"?w(b.nodes()[0].contentDocument.body):w("body"),f=h.select(`[id="${e}"]`),x=h.select("#"+e+" g");if(await P(x,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),B.insertTitle(f,"classTitleText",(t==null?void 0:t.titleTopMargin)??5,a.db.getDiagramTitle()),G(l,f,t==null?void 0:t.diagramPadding,t==null?void 0:t.useMaxWidth),!(t!=null&&t.htmlLabels)){const T=i==="sandbox"?b.nodes()[0].contentDocument:document,I=T.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const g of I){const L=g.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),g.insertBefore(v,g.firstChild)}}};function N(s){let e;switch(s){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const J={setConf:V,draw:W},Lt={parser:M,db:_,renderer:J,styles:R,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,_.clear()}};export{Lt as diagram};

View file

@ -1,4 +1,4 @@
import{j as e,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as o}from"./index-CswL0fy2.js";import{M as l}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function s(t){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",img:"img",p:"p",pre:"pre",strong:"strong",...o(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(l,{title:"Contributing/Component guidelines",parameters:{...r}}),`
import{j as e,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as o}from"./index-CswL0fy2.js";import{M as l}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function s(t){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",img:"img",p:"p",pre:"pre",strong:"strong",...o(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(l,{title:"Contributing/Component guidelines",parameters:{...r}}),`
`,e.jsx(n.p,{children:e.jsx(n.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(n.h1,{id:"component-guidelines",children:"Component guidelines"}),`
`,e.jsx(n.h2,{id:"dependencies",children:"Dependencies"}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as t}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as a}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function o(n){const s={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",img:"img",p:"p",pre:"pre",strong:"strong",...r(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Theming/CSS variables",parameters:{...t}}),`
import{j as e,p as t}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as a}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function o(n){const s={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",img:"img",p:"p",pre:"pre",strong:"strong",...r(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Theming/CSS variables",parameters:{...t}}),`
`,e.jsx(s.p,{children:e.jsx(s.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(s.h1,{id:"css-variables",children:"CSS variables"}),`
`,e.jsxs(s.p,{children:["The ",e.jsx(s.a,{href:"?path=/docs/components-theme--default",children:e.jsx(s.code,{children:"Theme"})})," component uses ",e.jsx(s.strong,{children:e.jsx(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties",rel:"nofollow",children:"CSS variables"})})," to control major parts of your page's theme."]}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as o}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as a}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(s){const t={a:"a",code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...r(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Actions/cssVariables",parameters:{...o}}),`
import{j as e,p as o}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as a}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(s){const t={a:"a",code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...r(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Actions/cssVariables",parameters:{...o}}),`
`,e.jsx(t.p,{children:e.jsx(t.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(t.h1,{id:"cssvariables",children:e.jsx(t.code,{children:"cssVariables"})}),`
`,e.jsxs(t.p,{children:["An action you can use to easily set ",e.jsx(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties",rel:"nofollow",children:"CSS variables"})," on HTML elements. Useful for passing JavaScript values to your component SCSS like this:"]}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as o}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";const c=""+new URL("scss-start-BVE0yKS1.png",import.meta.url).href,a=""+new URL("scss-highlight-DJgSTLTu.png",import.meta.url).href,h=""+new URL("scss-inspector-DX09FcYW.png",import.meta.url).href,l=""+new URL("scss-change-0EQn-a_A.png",import.meta.url).href,d=""+new URL("scss-test-D0OKY1jS.png",import.meta.url).href,p=""+new URL("scss-winning-Bu-D1jUf.png",import.meta.url).href;function n(t){const s={code:"code",em:"em",h1:"h1",h2:"h2",h4:"h4",img:"img",p:"p",pre:"pre",strong:"strong",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Guides/Customising components with SCSS",parameters:{...i}}),`
import{j as e,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as o}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";const c=""+new URL("scss-start-BVE0yKS1.png",import.meta.url).href,a=""+new URL("scss-highlight-DJgSTLTu.png",import.meta.url).href,h=""+new URL("scss-inspector-DX09FcYW.png",import.meta.url).href,l=""+new URL("scss-change-0EQn-a_A.png",import.meta.url).href,d=""+new URL("scss-test-D0OKY1jS.png",import.meta.url).href,p=""+new URL("scss-winning-Bu-D1jUf.png",import.meta.url).href;function n(t){const s={code:"code",em:"em",h1:"h1",h2:"h2",h4:"h4",img:"img",p:"p",pre:"pre",strong:"strong",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Guides/Customising components with SCSS",parameters:{...i}}),`
`,e.jsx(s.p,{children:e.jsx(s.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(s.h1,{id:"customising-components-with-scss",children:"Customising components with SCSS"}),`
`,e.jsx(s.p,{children:"One of the most powerful ways to customise components isn't props or, even, Svelte."}),`

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{p as i,f as o}from"./flowDb-c1833063-j1KXLkNj.js";import{f as t,a as m}from"./styles-483fbfea-CgNbvqUg.js";import{y as p}from"./intro-QWY8Oh9i.js";import"./graph-BFbYNB1y.js";import"./layout-DN0WpvzT.js";import"./dayjs.min-BIwLhz4I.js";import"./index-01f381cb-DvAYAcuU.js";import"./clone-BwatiCUu.js";import"./_baseClone-BMmn5UJb.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";import"./_initCloneObject-D0ofMy5o.js";import"./isObject-C3e4t58V.js";import"./edges-066a5561-YB1vzZmN.js";import"./createText-ca0c5216-DRAWlaTX.js";import"./index-DrFu-skq.js";import"./line-BUKg1QEZ.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./channel-B0XHU2BA.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-BuvbpKx8.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./Table-CDqPTBmc.js";import"./parseCss-DBuO8nz4.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./toNumber-BrygkUtK.js";import"./_baseSet-DBo-XiK2.js";const K={parser:i,db:o,renderer:t,styles:m,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,p({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{K as diagram};

View file

@ -0,0 +1 @@
import{p as i,f as o}from"./flowDb-c1833063-C56LEtaw.js";import{f as t,a as m}from"./styles-483fbfea-EjOHiifl.js";import{y as p}from"./intro-CXHH-5HQ.js";import"./graph-KCYNp7LR.js";import"./layout-BLw3CEuw.js";import"./dayjs.min-BIwLhz4I.js";import"./index-01f381cb-BWb0GTQT.js";import"./clone-BwatiCUu.js";import"./_baseClone-BMmn5UJb.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";import"./_initCloneObject-D0ofMy5o.js";import"./isObject-C3e4t58V.js";import"./edges-066a5561-CyQZbOkE.js";import"./createText-ca0c5216-B8gJDg8l.js";import"./index-DrFu-skq.js";import"./line-iMuPrBfg.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";import"./channel-C5xm3W5q.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-CluuxvkZ.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./Table-CYaDd5u2.js";import"./parseCss-v88YhYdJ.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./toNumber-BrygkUtK.js";import"./_baseSet-DBo-XiK2.js";const K={parser:i,db:o,renderer:t,styles:m,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,p({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{K as diagram};

View file

@ -1,4 +1,4 @@
import{j as e,p as t}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as i}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(o){const s={a:"a",em:"em",h1:"h1",h3:"h3",hr:"hr",img:"img",p:"p",strong:"strong",...r(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Guides/Getting help",parameters:{...t}}),`
import{j as e,p as t}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as i}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(o){const s={a:"a",em:"em",h1:"h1",h3:"h3",hr:"hr",img:"img",p:"p",strong:"strong",...r(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Guides/Getting help",parameters:{...t}}),`
`,e.jsx(s.p,{children:e.jsx(s.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(s.h1,{id:"getting-help",children:"Getting help"}),`
`,e.jsxs(s.p,{children:["🚨 ",e.jsx(s.strong,{children:"If you're on deadline"}),", talk to your editor who can point you to the nearest developer."]}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as a}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(t){const o={code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...s(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Guides/Using with Google docs",parameters:{...r}}),`
import{j as e,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as a}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(t){const o={code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...s(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Guides/Using with Google docs",parameters:{...r}}),`
`,e.jsx(o.p,{children:e.jsx(o.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(o.h1,{id:"using-with-google-docs",children:"Using with Google docs"}),`
`,e.jsx(o.p,{children:"Most of the default examples in these docs show how to use components by passing data into them directly through props. In the Kit, though, you likely won't be hard-coding things like text strings in your code and instead will get them from a Google Doc."}),`

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{j as e,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as i}from"./index-CswL0fy2.js";import{M as r}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function t(o){const s={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",img:"img",p:"p",pre:"pre",...i(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Guides/Using with the Graphics Kit",parameters:{...n}}),`
import{j as e,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as i}from"./index-CswL0fy2.js";import{M as r}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function t(o){const s={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",img:"img",p:"p",pre:"pre",...i(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Guides/Using with the Graphics Kit",parameters:{...n}}),`
`,e.jsx(s.p,{children:e.jsx(s.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(s.h1,{id:"using-with-the-graphics-kit",children:"Using with the Graphics Kit"}),`
`,e.jsxs(s.p,{children:["If you haven't, check out ",e.jsx(s.a,{href:"https://reuters-graphics.github.io/docs_graphics-kit/for_developers/graphics-components/",rel:"nofollow",children:'"Using Reuters Graphics Components" in the Graphics Kit docs'})," to get a general idea of how to use components."]}),`

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{l as Y,B,i as D}from"./intro-QWY8Oh9i.js";import"./dayjs.min-BIwLhz4I.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-BuvbpKx8.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CDqPTBmc.js";import"./parseCss-DBuO8nz4.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";var O=function(){var a=function(u,t,e,i){for(e=e||{},i=u.length;i--;e[u[i]]=t);return e},f=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,i,s,r,n,d){switch(n.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],s=[],r=[null],n=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=n.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;n.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,m={},b,c,F,S;;){if(g=i[i.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
import{l as Y,B,i as D}from"./intro-CXHH-5HQ.js";import"./dayjs.min-BIwLhz4I.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-CluuxvkZ.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CYaDd5u2.js";import"./parseCss-v88YhYdJ.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";var O=function(){var a=function(u,t,e,i){for(e=e||{},i=u.length;i--;e[u[i]]=t);return e},f=[6,9,10],_={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,i,s,r,n,d){switch(n.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=e,i}},parse:function(t){var e=this,i=[0],s=[],r=[null],n=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=n.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;n.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,m={},b,c,F,S;;){if(g=i[i.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
`+o.showPosition()+`
Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:i.push(l),r.push(o.yytext),n.push(o.yylloc),i.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],m.$=r[r.length-c],m._$={first_line:n[n.length-(c||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(c||1)].first_column,last_column:n[n.length-1].last_column},z&&(m._$.range=[n[n.length-(c||1)].range[0],n[n.length-1].range[1]]),w=this.performAction.apply(m,[P,L,v,p.yy,h[1],r,n].concat(R)),typeof w<"u")return w;c&&(i=i.slice(0,-1*c*2),r=r.slice(0,-1*c),n=n.slice(0,-1*c)),i.push(this.productions_[h[1]][0]),r.push(m.$),n.push(m._$),F=d[i[i.length-2]][i[i.length-1]],i.push(F);break;case 3:return!0}}return!0}},k=function(){var u={EOF:1,parseError:function(e,i){if(this.yy.parser)this.yy.parser.parseError(e,i);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`

View file

@ -1,4 +1,4 @@
import{j as t,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(o){const e={a:"a",em:"em",h1:"h1",img:"img",p:"p",...s(),...o.components};return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:"Actions/Intro",parameters:{...r}}),`
import{j as t,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(o){const e={a:"a",em:"em",h1:"h1",img:"img",p:"p",...s(),...o.components};return t.jsxs(t.Fragment,{children:[t.jsx(i,{title:"Actions/Intro",parameters:{...r}}),`
`,t.jsx(e.p,{children:t.jsx(e.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,t.jsx(e.h1,{id:"actions",children:"Actions"}),`
`,t.jsxs(e.p,{children:["Svelte ",t.jsx(e.a,{href:"https://svelte.dev/tutorial/actions",rel:"nofollow",children:"actions"}),' are arbitrary functions that run after Svelte "mounts" an element in the DOM.']}),`

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{j as e,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as a}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";const i=""+new URL("article-well-C9G46YvJ.jpg",import.meta.url).href;function r(o){const t={a:"a",code:"code",h1:"h1",img:"img",p:"p",...s(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Layout/Intro",parameters:{...n}}),`
import{j as e,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as a}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";const i=""+new URL("article-well-C9G46YvJ.jpg",import.meta.url).href;function r(o){const t={a:"a",code:"code",h1:"h1",img:"img",p:"p",...s(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Layout/Intro",parameters:{...n}}),`
`,e.jsx(t.p,{children:e.jsx(t.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(t.h1,{id:"layout",children:"Layout"}),`
`,e.jsx(t.p,{children:"Layout components setup our default page structure."}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as o}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as i}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function r(t){const s={code:"code",h1:"h1",h3:"h3",img:"img",p:"p",pre:"pre",...n(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Styles/Intro",parameters:{...o}}),`
import{j as e,p as o}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as i}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function r(t){const s={code:"code",h1:"h1",h3:"h3",img:"img",p:"p",pre:"pre",...n(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Styles/Intro",parameters:{...o}}),`
`,e.jsx(s.p,{children:e.jsx(s.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(s.h1,{id:"styles",children:"Styles"}),`
`,e.jsx(s.p,{children:"This library also includes our main SCSS stylesheets with pre-defined classes you can use to style your page."}),`
@ -8,6 +8,6 @@ import{j as e,p as o}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}f
<script>
// other imports and stuffs ...
import '@reuters-graphics/graphics-components/scss/main';
import '@reuters-graphics/graphics-components/scss/main.scss';
<\/script>
`})})]})}function y(t={}){const{wrapper:s}={...n(),...t.components};return s?e.jsx(s,{...t,children:e.jsx(r,{...t})}):r(t)}export{y as default};

View file

@ -1,4 +1,4 @@
import{j as s,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as o}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function r(t){const e={a:"a",code:"code",h1:"h1",h2:"h2",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",...n(),...t.components};return s.jsxs(s.Fragment,{children:[s.jsx(o,{title:"Intro",parameters:{...i}}),`
import{j as s,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as o}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function r(t){const e={a:"a",code:"code",h1:"h1",h2:"h2",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",...n(),...t.components};return s.jsxs(s.Fragment,{children:[s.jsx(o,{title:"Intro",parameters:{...i}}),`
`,s.jsx(e.p,{children:s.jsx(e.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,s.jsx(e.h1,{id:"reuters-graphicsgraphics-components",children:"@reuters-graphics/graphics-components"}),`
`,s.jsxs("p",{children:[s.jsx("a",{href:"https://www.npmjs.com/package/@reuters-graphics/graphics-components",children:s.jsx("img",{src:"https://badge.fury.io/js/@reuters-graphics%2Fgraphics-components.svg",alt:"npm version",style:{display:"inline-block",margin:"0 5px 0 0"}})}),s.jsx("a",{href:"https://github.com/reuters-graphics/graphics-components",children:s.jsx("img",{src:"https://badgen.net/badge/icon/GitHub?icon=github&label",alt:"GitHub",style:{display:"inline-block",margin:"0 5px 0 0"}})})]}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as t}from"./index-CswL0fy2.js";import{M as a}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function s(r){const o={a:"a",code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...t(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Styles/Colours/Intro",parameters:{...n}}),`
import{j as e,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as t}from"./index-CswL0fy2.js";import{M as a}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function s(r){const o={a:"a",code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...t(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Styles/Colours/Intro",parameters:{...n}}),`
`,e.jsx(o.p,{children:e.jsx(o.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(o.h1,{id:"working-with-colours",children:"Working with colours"}),`
`,e.jsxs(o.p,{children:["Colour palettes are provided as ",e.jsx(o.a,{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/--*",rel:"nofollow",children:"CSS variables"})," you can use in your own styles. Some are included by default, others can be imported in your global stylesheet and then used."]}),`

View file

@ -1,4 +1,4 @@
import{c as I,p as yt,q as pt,s as ft,g as dt,b as gt,a as mt,r as xt,h as W,i as kt}from"./intro-QWY8Oh9i.js";import{d as _t,f as bt,a as vt,g as nt}from"./svgDrawCommon-5e1cfd1d-CRzgjwjk.js";import"./dayjs.min-BIwLhz4I.js";import{a as Q}from"./arc-CKZecfdf.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-BuvbpKx8.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CDqPTBmc.js";import"./parseCss-DBuO8nz4.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(d,s,r,a){for(r=r||{},a=d.length;a--;r[d[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],n=[1,9],l=[1,10],i=[1,11],h=[1,12],c=[1,13],p=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,f,o,w){var k=o.length-1;switch(f){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:l,14:i,16:h,17:c,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:l,14:i,16:h,17:c,18:p},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],f=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,q,A={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var O="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?O="Parse error on line "+(R+1)+`:
import{c as I,p as yt,q as pt,s as ft,g as dt,b as gt,a as mt,r as xt,h as W,i as kt}from"./intro-CXHH-5HQ.js";import{d as _t,f as bt,a as vt,g as nt}from"./svgDrawCommon-5e1cfd1d-CjMcFjj3.js";import"./dayjs.min-BIwLhz4I.js";import{a as Q}from"./arc-CBglLoX7.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-CluuxvkZ.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CYaDd5u2.js";import"./parseCss-v88YhYdJ.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./path-CbwjOpE9.js";var G=function(){var t=function(d,s,r,a){for(r=r||{},a=d.length;a--;r[d[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],n=[1,9],l=[1,10],i=[1,11],h=[1,12],c=[1,13],p=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,f,o,w){var k=o.length-1;switch(f){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:l,14:i,16:h,17:c,18:p},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:l,14:i,16:h,17:c,18:p},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],f=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,q,A={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var O="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?O="Parse error on line "+(R+1)+`:
`+x.showPosition()+`
Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":O="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(O,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),f.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],A.$=f[f.length-$],A._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(A._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(A,[k,Z,R,S.yy,b[1],f,o].concat(ct)),typeof q<"u")return q;$&&(a=a.slice(0,-1*$*2),f=f.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),f.push(A.$),o.push(A._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=function(){var d={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+`

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{a as h}from"./array-BKyUJesY.js";import{w as d,c as o}from"./path-CbwjOpE9.js";import{a1 as v}from"./intro-QWY8Oh9i.js";function w(t){return t[0]}function b(t){return t[1]}function P(t,u){var s=o(!0),i=null,l=v,r=null,m=d(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var f,g=(n=h(n)).length,a,c=!1,p;for(i==null&&(r=l(p=m())),f=0;f<=g;++f)!(f<g&&s(a=n[f],f,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(a,f,n),+u(a,f,n));if(p)return r=null,p+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}export{P as l};
import{a as h}from"./array-BKyUJesY.js";import{w as d,c as o}from"./path-CbwjOpE9.js";import{a1 as v}from"./intro-CXHH-5HQ.js";function w(t){return t[0]}function b(t){return t[1]}function P(t,u){var s=o(!0),i=null,l=v,r=null,m=d(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var f,g=(n=h(n)).length,a,c=!1,p;for(i==null&&(r=l(p=m())),f=0;f<=g;++f)!(f<g&&s(a=n[f],f,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(a,f,n),+u(a,f,n));if(p)return r=null,p+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}export{P as l};

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{j as n,p as a}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as s}from"./index-BuvbpKx8.js";import{C as o}from"./Table-CDqPTBmc.js";import{c as t}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const p=`.box-border {
import{j as n,p as a}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as s}from"./index-CluuxvkZ.js";import{C as o}from"./Table-CYaDd5u2.js";import{c as t}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const p=`.box-border {
box-sizing: border-box;
}
.box-content {

View file

@ -1,4 +1,4 @@
import{j as t,p}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as e}from"./index-CswL0fy2.js";import{M as n}from"./index-BuvbpKx8.js";import{C as a}from"./Table-CDqPTBmc.js";import{c as m}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const c=".visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:polygon(0px 0px,0px 0px,0px 0px);white-space:nowrap!important;border:0!important}";function r(i){const o={h1:"h1",img:"img",p:"p",...e(),...i.components};return t.jsxs(t.Fragment,{children:[t.jsx(n,{title:"Styles/Tokens/Accessibility",parameters:{...p}}),`
import{j as t,p}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as e}from"./index-CswL0fy2.js";import{M as n}from"./index-CluuxvkZ.js";import{C as a}from"./Table-CYaDd5u2.js";import{c as m}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const c=".visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:polygon(0px 0px,0px 0px,0px 0px);white-space:nowrap!important;border:0!important}";function r(i){const o={h1:"h1",img:"img",p:"p",...e(),...i.components};return t.jsxs(t.Fragment,{children:[t.jsx(n,{title:"Styles/Tokens/Accessibility",parameters:{...p}}),`
`,t.jsx(o.p,{children:t.jsx(o.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,t.jsx(o.h1,{id:"accessibility-tokens",children:"Accessibility tokens"}),`
`,t.jsx(a,{title:"Visibility",header:["Class","Include","Properties"],body:m(c,!0),copyable:[!0,s=>`@include ${s};`,!1]})]})}function T(i={}){const{wrapper:o}={...e(),...i.components};return o?t.jsx(o,{...i,children:t.jsx(r,{...i})}):r(i)}export{T as default};

View file

@ -1,4 +1,4 @@
import{j as t,p as a}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as m}from"./index-CswL0fy2.js";import{M as o}from"./index-BuvbpKx8.js";import{C as e}from"./Table-CDqPTBmc.js";import{c as n}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const w=".h-full{height:100%}.h-screen{height:100svh}.h-1\\/2{height:50%}.h-1\\/3{height:33.333333%}.h-2\\/3{height:66.666667%}.h-1\\/4{height:25%}.h-2\\/4{height:50%}.h-3\\/4{height:75%}.h-1\\/5{height:20%}.h-2\\/5{height:40%}.h-3\\/5{height:60%}.h-4\\/5{height:80%}.h-1\\/6{height:16.666667%}.h-2\\/6{height:33.333333%}.h-3\\/6{height:50%}.h-4\\/6{height:66.666667%}.h-5\\/6{height:83.333333%}.h-1\\/12{height:8.333333%}.h-2\\/12{height:16.666667%}.h-3\\/12{height:25%}.h-4\\/12{height:33.333333%}.h-5\\/12{height:41.666667%}.h-6\\/12{height:50%}.h-7\\/12{height:58.333333%}.h-8\\/12{height:66.666667%}.h-9\\/12{height:75%}.h-10\\/12{height:83.333333%}.h-11\\/12{height:91.666667%}.\\!h-full{height:100%!important}.\\!h-screen{height:100svh!important}.\\!h-1\\/2{height:50%!important}.\\!h-1\\/3{height:33.333333%!important}.\\!h-2\\/3{height:66.666667%!important}.\\!h-1\\/4{height:25%!important}.\\!h-2\\/4{height:50%!important}.\\!h-3\\/4{height:75%!important}.\\!h-1\\/5{height:20%!important}.\\!h-2\\/5{height:40%!important}.\\!h-3\\/5{height:60%!important}.\\!h-4\\/5{height:80%!important}.\\!h-1\\/6{height:16.666667%!important}.\\!h-2\\/6{height:33.333333%!important}.\\!h-3\\/6{height:50%!important}.\\!h-4\\/6{height:66.666667%!important}.\\!h-5\\/6{height:83.333333%!important}.\\!h-1\\/12{height:8.333333%!important}.\\!h-2\\/12{height:16.666667%!important}.\\!h-3\\/12{height:25%!important}.\\!h-4\\/12{height:33.333333%!important}.\\!h-5\\/12{height:41.666667%!important}.\\!h-6\\/12{height:50%!important}.\\!h-7\\/12{height:58.333333%!important}.\\!h-8\\/12{height:66.666667%!important}.\\!h-9\\/12{height:75%!important}.\\!h-10\\/12{height:83.333333%!important}.\\!h-11\\/12{height:91.666667%!important}",p=".max-h-full{max-height:100%}.max-h-screen{max-height:100svh}.\\!max-h-full{max-height:100%!important}.\\!max-h-screen{max-height:100svh!important}",d=".max-w-full{max-width:100%}.max-w-screen{max-width:100vw}.\\!max-w-full{max-width:100%!important}.\\!max-w-screen{max-width:100vw!important}",s=".min-h-full{min-height:100%}.min-h-screen{min-height:100svh}.\\!min-h-full{min-height:100%!important}.\\!min-h-screen{min-height:100svh!important}",g=".min-w-full{min-width:100%}.\\!min-w-full{min-width:100%!important}",l=".w-full{width:100%}.w-full-fluid{width:calc(100% + 30px);margin-left:-15px!important}.w-screen{width:100vw}.w-1\\/2{width:50%}.w-1\\/3{width:33.333333%}.w-2\\/3{width:66.666667%}.w-1\\/4{width:25%}.w-2\\/4{width:50%}.w-3\\/4{width:75%}.w-1\\/5{width:20%}.w-2\\/5{width:40%}.w-3\\/5{width:60%}.w-4\\/5{width:80%}.w-1\\/6{width:16.666667%}.w-2\\/6{width:33.333333%}.w-3\\/6{width:50%}.w-4\\/6{width:66.666667%}.w-5\\/6{width:83.333333%}.w-1\\/12{width:8.333333%}.w-2\\/12{width:16.666667%}.w-3\\/12{width:25%}.w-4\\/12{width:33.333333%}.w-5\\/12{width:41.666667%}.w-6\\/12{width:50%}.w-7\\/12{width:58.333333%}.w-8\\/12{width:66.666667%}.w-9\\/12{width:75%}.w-10\\/12{width:83.333333%}.w-11\\/12{width:91.666667%}.\\!w-full{width:100%!important}.\\!w-full-fluid{width:calc(100% + 30px)!important;margin-left:-15px!important}.\\!w-screen{width:100vw!important}.\\!w-1\\/2{width:50%!important}.\\!w-1\\/3{width:33.333333%!important}.\\!w-2\\/3{width:66.666667%!important}.\\!w-1\\/4{width:25%!important}.\\!w-2\\/4{width:50%!important}.\\!w-3\\/4{width:75%!important}.\\!w-1\\/5{width:20%!important}.\\!w-2\\/5{width:40%!important}.\\!w-3\\/5{width:60%!important}.\\!w-4\\/5{width:80%!important}.\\!w-1\\/6{width:16.666667%!important}.\\!w-2\\/6{width:33.333333%!important}.\\!w-3\\/6{width:50%!important}.\\!w-4\\/6{width:66.666667%!important}.\\!w-5\\/6{width:83.333333%!important}.\\!w-1\\/12{width:8.333333%!important}.\\!w-2\\/12{width:16.666667%!important}.\\!w-3\\/12{width:25%!important}.\\!w-4\\/12{width:33.333333%!important}.\\!w-5\\/12{width:41.666667%!important}.\\!w-6\\/12{width:50%!important}.\\!w-7\\/12{width:58.333333%!important}.\\!w-8\\/12{width:66.666667%!important}.\\!w-9\\/12{width:75%!important}.\\!w-10\\/12{width:83.333333%!important}.\\!w-11\\/12{width:91.666667%!important}";function r(h){const i={h1:"h1",img:"img",p:"p",...m(),...h.components};return t.jsxs(t.Fragment,{children:[t.jsx(o,{title:"Styles/Tokens/Sizing",parameters:{...a}}),`
import{j as t,p as a}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as m}from"./index-CswL0fy2.js";import{M as o}from"./index-CluuxvkZ.js";import{C as e}from"./Table-CYaDd5u2.js";import{c as n}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const w=".h-full{height:100%}.h-screen{height:100svh}.h-1\\/2{height:50%}.h-1\\/3{height:33.333333%}.h-2\\/3{height:66.666667%}.h-1\\/4{height:25%}.h-2\\/4{height:50%}.h-3\\/4{height:75%}.h-1\\/5{height:20%}.h-2\\/5{height:40%}.h-3\\/5{height:60%}.h-4\\/5{height:80%}.h-1\\/6{height:16.666667%}.h-2\\/6{height:33.333333%}.h-3\\/6{height:50%}.h-4\\/6{height:66.666667%}.h-5\\/6{height:83.333333%}.h-1\\/12{height:8.333333%}.h-2\\/12{height:16.666667%}.h-3\\/12{height:25%}.h-4\\/12{height:33.333333%}.h-5\\/12{height:41.666667%}.h-6\\/12{height:50%}.h-7\\/12{height:58.333333%}.h-8\\/12{height:66.666667%}.h-9\\/12{height:75%}.h-10\\/12{height:83.333333%}.h-11\\/12{height:91.666667%}.\\!h-full{height:100%!important}.\\!h-screen{height:100svh!important}.\\!h-1\\/2{height:50%!important}.\\!h-1\\/3{height:33.333333%!important}.\\!h-2\\/3{height:66.666667%!important}.\\!h-1\\/4{height:25%!important}.\\!h-2\\/4{height:50%!important}.\\!h-3\\/4{height:75%!important}.\\!h-1\\/5{height:20%!important}.\\!h-2\\/5{height:40%!important}.\\!h-3\\/5{height:60%!important}.\\!h-4\\/5{height:80%!important}.\\!h-1\\/6{height:16.666667%!important}.\\!h-2\\/6{height:33.333333%!important}.\\!h-3\\/6{height:50%!important}.\\!h-4\\/6{height:66.666667%!important}.\\!h-5\\/6{height:83.333333%!important}.\\!h-1\\/12{height:8.333333%!important}.\\!h-2\\/12{height:16.666667%!important}.\\!h-3\\/12{height:25%!important}.\\!h-4\\/12{height:33.333333%!important}.\\!h-5\\/12{height:41.666667%!important}.\\!h-6\\/12{height:50%!important}.\\!h-7\\/12{height:58.333333%!important}.\\!h-8\\/12{height:66.666667%!important}.\\!h-9\\/12{height:75%!important}.\\!h-10\\/12{height:83.333333%!important}.\\!h-11\\/12{height:91.666667%!important}",p=".max-h-full{max-height:100%}.max-h-screen{max-height:100svh}.\\!max-h-full{max-height:100%!important}.\\!max-h-screen{max-height:100svh!important}",d=".max-w-full{max-width:100%}.max-w-screen{max-width:100vw}.\\!max-w-full{max-width:100%!important}.\\!max-w-screen{max-width:100vw!important}",s=".min-h-full{min-height:100%}.min-h-screen{min-height:100svh}.\\!min-h-full{min-height:100%!important}.\\!min-h-screen{min-height:100svh!important}",g=".min-w-full{min-width:100%}.\\!min-w-full{min-width:100%!important}",l=".w-full{width:100%}.w-full-fluid{width:calc(100% + 30px);margin-left:-15px!important}.w-screen{width:100vw}.w-1\\/2{width:50%}.w-1\\/3{width:33.333333%}.w-2\\/3{width:66.666667%}.w-1\\/4{width:25%}.w-2\\/4{width:50%}.w-3\\/4{width:75%}.w-1\\/5{width:20%}.w-2\\/5{width:40%}.w-3\\/5{width:60%}.w-4\\/5{width:80%}.w-1\\/6{width:16.666667%}.w-2\\/6{width:33.333333%}.w-3\\/6{width:50%}.w-4\\/6{width:66.666667%}.w-5\\/6{width:83.333333%}.w-1\\/12{width:8.333333%}.w-2\\/12{width:16.666667%}.w-3\\/12{width:25%}.w-4\\/12{width:33.333333%}.w-5\\/12{width:41.666667%}.w-6\\/12{width:50%}.w-7\\/12{width:58.333333%}.w-8\\/12{width:66.666667%}.w-9\\/12{width:75%}.w-10\\/12{width:83.333333%}.w-11\\/12{width:91.666667%}.\\!w-full{width:100%!important}.\\!w-full-fluid{width:calc(100% + 30px)!important;margin-left:-15px!important}.\\!w-screen{width:100vw!important}.\\!w-1\\/2{width:50%!important}.\\!w-1\\/3{width:33.333333%!important}.\\!w-2\\/3{width:66.666667%!important}.\\!w-1\\/4{width:25%!important}.\\!w-2\\/4{width:50%!important}.\\!w-3\\/4{width:75%!important}.\\!w-1\\/5{width:20%!important}.\\!w-2\\/5{width:40%!important}.\\!w-3\\/5{width:60%!important}.\\!w-4\\/5{width:80%!important}.\\!w-1\\/6{width:16.666667%!important}.\\!w-2\\/6{width:33.333333%!important}.\\!w-3\\/6{width:50%!important}.\\!w-4\\/6{width:66.666667%!important}.\\!w-5\\/6{width:83.333333%!important}.\\!w-1\\/12{width:8.333333%!important}.\\!w-2\\/12{width:16.666667%!important}.\\!w-3\\/12{width:25%!important}.\\!w-4\\/12{width:33.333333%!important}.\\!w-5\\/12{width:41.666667%!important}.\\!w-6\\/12{width:50%!important}.\\!w-7\\/12{width:58.333333%!important}.\\!w-8\\/12{width:66.666667%!important}.\\!w-9\\/12{width:75%!important}.\\!w-10\\/12{width:83.333333%!important}.\\!w-11\\/12{width:91.666667%!important}";function r(h){const i={h1:"h1",img:"img",p:"p",...m(),...h.components};return t.jsxs(t.Fragment,{children:[t.jsx(o,{title:"Styles/Tokens/Sizing",parameters:{...a}}),`
`,t.jsx(i.p,{children:t.jsx(i.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,t.jsx(i.h1,{id:"sizing-tokens",children:"Sizing tokens"}),`
`,t.jsx(e,{title:"Width",mdnLink:"width",header:["Class","Properties"],body:n(l),copyable:[!0,!1]}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as l}from"./index-BuvbpKx8.js";import{C as t}from"./Table-CDqPTBmc.js";import{s as a}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const c=`// SCSS mirrors for theme CSS variables
import{j as e,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as l}from"./index-CluuxvkZ.js";import{C as t}from"./Table-CYaDd5u2.js";import{s as a}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const c=`// SCSS mirrors for theme CSS variables
$theme-colour-background: var(--theme-colour-background);
$theme-colour-text-primary: var(--theme-colour-text-primary);
$theme-colour-text-secondary: var(--theme-colour-text-secondary);

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{j as r,p as c}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as e}from"./index-CswL0fy2.js";import{M as s}from"./index-BuvbpKx8.js";import{C as i}from"./Table-CDqPTBmc.js";import{c as m}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const g=".bg{background-color:var(--theme-colour-background)}.bg-inherit{background-color:inherit}.bg-current{background-color:currentColor}.bg-transparent{background-color:transparent}.\\!bg{background-color:var(--theme-colour-background)!important}.\\!bg-inherit{background-color:inherit!important}.\\!bg-current{background-color:currentColor!important}.\\!bg-transparent{background-color:transparent!important}";function n(o){const t={h1:"h1",img:"img",p:"p",...e(),...o.components};return r.jsxs(r.Fragment,{children:[r.jsx(s,{title:"Styles/Tokens/Backgrounds",parameters:{...c}}),`
import{j as r,p as c}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as e}from"./index-CswL0fy2.js";import{M as s}from"./index-CluuxvkZ.js";import{C as i}from"./Table-CYaDd5u2.js";import{c as m}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const g=".bg{background-color:var(--theme-colour-background)}.bg-inherit{background-color:inherit}.bg-current{background-color:currentColor}.bg-transparent{background-color:transparent}.\\!bg{background-color:var(--theme-colour-background)!important}.\\!bg-inherit{background-color:inherit!important}.\\!bg-current{background-color:currentColor!important}.\\!bg-transparent{background-color:transparent!important}";function n(o){const t={h1:"h1",img:"img",p:"p",...e(),...o.components};return r.jsxs(r.Fragment,{children:[r.jsx(s,{title:"Styles/Tokens/Backgrounds",parameters:{...c}}),`
`,r.jsx(t.p,{children:r.jsx(t.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,r.jsx(t.h1,{id:"background-tokens",children:"Background tokens"}),`
`,r.jsx(i,{title:"Background colour",mdnLink:"background-color",header:["Class","Include","Properties"],body:m(g,!0),copyable:[!0,a=>`@include ${a};`,!1]})]})}function B(o={}){const{wrapper:t}={...e(),...o.components};return t?r.jsx(t,{...o,children:r.jsx(n,{...o})}):n(o)}export{B as default};

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{j as r,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as b}from"./index-CswL0fy2.js";import{M as u}from"./index-BuvbpKx8.js";import{C as n}from"./Table-CDqPTBmc.js";import{c as e}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const s=`.border-inherit {
import{j as r,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as b}from"./index-CswL0fy2.js";import{M as u}from"./index-CluuxvkZ.js";import{C as n}from"./Table-CYaDd5u2.js";import{c as e}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const s=`.border-inherit {
border-color: inherit;
}
.border-current {

View file

@ -1,4 +1,4 @@
import{j as n,p as o}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as l}from"./index-CswL0fy2.js";import{M as a}from"./index-BuvbpKx8.js";import{C as t}from"./Table-CDqPTBmc.js";import{c as e}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const f=`.content-normal {
import{j as n,p as o}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as l}from"./index-CswL0fy2.js";import{M as a}from"./index-CluuxvkZ.js";import{C as t}from"./Table-CYaDd5u2.js";import{c as e}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const f=`.content-normal {
align-content: normal;
}
.content-center {

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{I as H,R as at,p as lt,q as ot,s as ct,g as ht,b as ut,a as pt,r as yt,d as ft,c as et,l as it,a8 as gt,B as mt,X as dt,i as _t}from"./intro-QWY8Oh9i.js";import"./dayjs.min-BIwLhz4I.js";import{a as tt}from"./arc-CKZecfdf.js";import{o as xt}from"./ordinal-BENe2yWM.js";import{a as kt}from"./array-BKyUJesY.js";import{c as R}from"./path-CbwjOpE9.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-BuvbpKx8.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CDqPTBmc.js";import"./parseCss-DBuO8nz4.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./init-Gi6I4Gst.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,f=R(0),g=R(H),A=R(0);function p(a){var l,m=(a=kt(a)).length,d,I,T=0,_=new Array(m),v=new Array(m),c=+f.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/m,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l<m;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-m*b)/T:0;l<m;++l,c=O)d=_[l],t=v[d],O=c+(t>0?t*I:0)+b,v[d]={data:a[d],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return p.value=function(a){return arguments.length?(e=typeof a=="function"?a:R(+a),p):e},p.sortValues=function(a){return arguments.length?(u=a,$=null,p):u},p.sort=function(a){return arguments.length?($=a,u=null,p):$},p.startAngle=function(a){return arguments.length?(f=typeof a=="function"?a:R(+a),p):f},p.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:R(+a),p):g},p.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:R(+a),p):A},p}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],f=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],p=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],m=[2,7],d=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:f,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:f,22:g},e(A,p,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,m,{8:10,9:11,1:[2,2],10:d,12:I,14:T,16:_,18:v,19:c}),e(A,p,{6:18}),e(A,[2,5]),{4:19,20:$,21:f,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,m,{8:10,9:11,1:[2,3],10:d,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",y=0,V=0,F=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var q=h.yylloc;s.push(q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,X,z={},j,D,Q,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var Z="";W=[];for(j in P[L])this.terminals_[j]&&j>F&&W.push("'"+this.terminals_[j]+"'");h.showPosition?Z="Parse error on line "+(y+1)+`:
import{I as H,R as at,p as lt,q as ot,s as ct,g as ht,b as ut,a as pt,r as yt,d as ft,c as et,l as it,a8 as gt,B as mt,X as dt,i as _t}from"./intro-CXHH-5HQ.js";import"./dayjs.min-BIwLhz4I.js";import{a as tt}from"./arc-CBglLoX7.js";import{o as xt}from"./ordinal-BENe2yWM.js";import{a as kt}from"./array-BKyUJesY.js";import{c as R}from"./path-CbwjOpE9.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-CluuxvkZ.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CYaDd5u2.js";import"./parseCss-v88YhYdJ.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./init-Gi6I4Gst.js";function vt(e,u){return u<e?-1:u>e?1:u>=e?0:NaN}function bt(e){return e}function St(){var e=bt,u=vt,$=null,f=R(0),g=R(H),A=R(0);function p(a){var l,m=(a=kt(a)).length,d,I,T=0,_=new Array(m),v=new Array(m),c=+f.apply(this,arguments),E=Math.min(H,Math.max(-H,g.apply(this,arguments)-c)),O,w=Math.min(Math.abs(E)/m,A.apply(this,arguments)),b=w*(E<0?-1:1),t;for(l=0;l<m;++l)(t=v[_[l]=l]=+e(a[l],l,a))>0&&(T+=t);for(u!=null?_.sort(function(i,n){return u(v[i],v[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=T?(E-m*b)/T:0;l<m;++l,c=O)d=_[l],t=v[d],O=c+(t>0?t*I:0)+b,v[d]={data:a[d],index:l,value:t,startAngle:c,endAngle:O,padAngle:w};return v}return p.value=function(a){return arguments.length?(e=typeof a=="function"?a:R(+a),p):e},p.sortValues=function(a){return arguments.length?(u=a,$=null,p):u},p.sort=function(a){return arguments.length?($=a,u=null,p):$},p.startAngle=function(a){return arguments.length?(f=typeof a=="function"?a:R(+a),p):f},p.endAngle=function(a){return arguments.length?(g=typeof a=="function"?a:R(+a),p):g},p.padAngle=function(a){return arguments.length?(A=typeof a=="function"?a:R(+a),p):A},p}var J=function(){var e=function(b,t,i,n){for(i=i||{},n=b.length;n--;i[b[n]]=t);return i},u=[1,3],$=[1,4],f=[1,5],g=[1,6],A=[1,10,12,14,16,18,19,20,21,22],p=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],m=[2,7],d=[1,12],I=[1,13],T=[1,14],_=[1,15],v=[1,16],c=[1,17],E={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,o,s,P){var x=s.length-1;switch(o){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:u,20:$,21:f,22:g},{1:[3]},{3:7,4:2,5:u,20:$,21:f,22:g},e(A,p,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,m,{8:10,9:11,1:[2,2],10:d,12:I,14:T,16:_,18:v,19:c}),e(A,p,{6:18}),e(A,[2,5]),{4:19,20:$,21:f,22:g},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,m,{8:10,9:11,1:[2,3],10:d,12:I,14:T,16:_,18:v,19:c}),e(A,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],o=[null],s=[],P=this.table,x="",y=0,V=0,F=2,M=1,U=s.slice.call(arguments,1),h=Object.create(this.lexer),N={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(N.yy[Y]=this.yy[Y]);h.setInput(t,N.yy),N.yy.lexer=h,N.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var q=h.yylloc;s.push(q);var st=h.options&&h.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function rt(){var C;return C=r.pop()||h.lex()||M,typeof C!="number"&&(C instanceof Array&&(r=C,C=r.pop()),C=i.symbols_[C]||C),C}for(var k,L,S,X,z={},j,D,Q,W;;){if(L=n[n.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=rt()),S=P[L]&&P[L][k]),typeof S>"u"||!S.length||!S[0]){var Z="";W=[];for(j in P[L])this.terminals_[j]&&j>F&&W.push("'"+this.terminals_[j]+"'");h.showPosition?Z="Parse error on line "+(y+1)+`:
`+h.showPosition()+`
Expecting `+W.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Z="Parse error on line "+(y+1)+": Unexpected "+(k==M?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Z,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:q,expected:W})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(S[0]){case 1:n.push(k),o.push(h.yytext),s.push(h.yylloc),n.push(S[1]),k=null,V=h.yyleng,x=h.yytext,y=h.yylineno,q=h.yylloc;break;case 2:if(D=this.productions_[S[1]][1],z.$=o[o.length-D],z._$={first_line:s[s.length-(D||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(D||1)].first_column,last_column:s[s.length-1].last_column},st&&(z._$.range=[s[s.length-(D||1)].range[0],s[s.length-1].range[1]]),X=this.performAction.apply(z,[x,V,y,N.yy,S[1],o,s].concat(U)),typeof X<"u")return X;D&&(n=n.slice(0,-1*D*2),o=o.slice(0,-1*D),s=s.slice(0,-1*D)),n.push(this.productions_[S[1]][0]),o.push(z.$),s.push(z._$),Q=P[n[n.length-2]][n[n.length-1]],n.push(Q);break;case 3:return!0}}return!0}},O=function(){var b={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var o=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[o[0],o[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+`

View file

@ -1,2 +1,2 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-BsT5Q1kf.js","./iframe-CqubeUtq.js","./index-DwChlhAQ.js","./_commonjsHelpers-BosuxZz1.js","./index-D-8MO0q_.js","./index-BuvbpKx8.js","./index-DxKRhftL.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]);
import{_ as a}from"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-BsT5Q1kf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-DbE8F_Sq.js","./iframe-SAeDpW7h.js","./index-DwChlhAQ.js","./_commonjsHelpers-BosuxZz1.js","./index-D-8MO0q_.js","./index-CluuxvkZ.js","./index-DxKRhftL.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]);
import{_ as a}from"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-DbE8F_Sq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};

View file

@ -1,4 +1,4 @@
import{j as e,p as f}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as l}from"./index-BuvbpKx8.js";import{C as n}from"./Table-BhOPhfWD.js";import{e as a}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./prism-yuxV06zr.js";import"./scss-BCrErVeE.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const i=`:root {
import{j as e,p as f}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as l}from"./index-CluuxvkZ.js";import{C as n}from"./Table-Dn2XQTTE.js";import{e as a}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./prism-BWqcFp3z.js";import"./scss-BCrErVeE.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const i=`:root {
--grey-50: #f9fafb;
--grey-100: #f3f4f6;
--grey-200: #e5e7eb;

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{j as e,p as s}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as t}from"./index-CswL0fy2.js";import{M as i}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function o(r){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",img:"img",p:"p",pre:"pre",...t(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Contributing/Quickstart",parameters:{...s}}),`
import{j as e,p as s}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as t}from"./index-CswL0fy2.js";import{M as i}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function o(r){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",img:"img",p:"p",pre:"pre",...t(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Contributing/Quickstart",parameters:{...s}}),`
`,e.jsx(n.p,{children:e.jsx(n.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(n.h1,{id:"contributing",children:"Contributing"}),`
`,e.jsx(n.p,{children:"Reuters Graphics team members can contribute new components, and we welcome pull requests for any of our existing components from the community."}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as o}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function t(r){const s={a:"a",code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...n(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Actions/resizeObserver",parameters:{...i}}),`
import{j as e,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as o}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function t(r){const s={a:"a",code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...n(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Actions/resizeObserver",parameters:{...i}}),`
`,e.jsx(s.p,{children:e.jsx(s.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(s.h1,{id:"resizeobserver",children:e.jsx(s.code,{children:"resizeObserver"})}),`
`,e.jsxs(s.p,{children:["An action you can use to easily to check when a DOM element's dimensions change using the ",e.jsx(s.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver",rel:"nofollow",children:"Resize Observer API"}),". Use it like this:"]}),`

View file

@ -1,4 +1,4 @@
import{j as o,p as s}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as i}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(e){const t={a:"a",code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...r(),...e.components};return o.jsxs(o.Fragment,{children:[o.jsx(i,{title:"Contributing/Recipes: Story with custom controls",parameters:{...s}}),`
import{j as o,p as s}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as i}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(e){const t={a:"a",code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...r(),...e.components};return o.jsxs(o.Fragment,{children:[o.jsx(i,{title:"Contributing/Recipes: Story with custom controls",parameters:{...s}}),`
`,o.jsx(t.p,{children:o.jsx(t.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,o.jsx(t.h1,{id:"recipes-story-with-custom-controls",children:"Recipes: Story with custom controls"}),`
`,o.jsxs(t.p,{children:["You can customise the controls in Storybook's built-in ",o.jsx(t.a,{href:"https://storybook.js.org/docs/svelte/essentials/controls",rel:"nofollow",children:"controls panel"})," by passing ",o.jsx(t.a,{href:"https://storybook.js.org/docs/svelte/api/argtypes",rel:"nofollow",children:"argTypes"})," to ",o.jsx(t.code,{children:"Meta"})," like this:"]}),`

View file

@ -1,4 +1,4 @@
import{j as o,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";const c=""+new URL("source-code-C338ht8X.png",import.meta.url).href;function t(n){const e={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",img:"img",p:"p",pre:"pre",strong:"strong",...s(),...n.components};return o.jsxs(o.Fragment,{children:[o.jsx(i,{title:"Contributing/Recipes: Story with custom docs",parameters:{...r}}),`
import{j as o,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";const c=""+new URL("source-code-C338ht8X.png",import.meta.url).href;function t(n){const e={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",img:"img",p:"p",pre:"pre",strong:"strong",...s(),...n.components};return o.jsxs(o.Fragment,{children:[o.jsx(i,{title:"Contributing/Recipes: Story with custom docs",parameters:{...r}}),`
`,o.jsx(e.p,{children:o.jsx(e.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,o.jsx(e.h1,{id:"recipes-story-with-custom-docs",children:"Recipes: Story with custom docs"}),`
`,o.jsx(e.p,{children:"You can add custom markdown to your story page by importing and using markdown files."}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as s}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(t){const o={code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Contributing/Recipes: Story with media",parameters:{...i}}),`
import{j as e,p as i}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as r}from"./index-CswL0fy2.js";import{M as s}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function n(t){const o={code:"code",h1:"h1",img:"img",p:"p",pre:"pre",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Contributing/Recipes: Story with media",parameters:{...i}}),`
`,e.jsx(o.p,{children:e.jsx(o.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(o.h1,{id:"recipes-story-with-media",children:"Recipes: Story with media"}),`
`,e.jsx(o.p,{children:"To use media files in your stories, import them directly."}),`

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{n as o,m as i}from"./intro-QWY8Oh9i.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g};
import{n as o,m as i}from"./intro-CXHH-5HQ.js";const l=(s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx!==void 0&&e.attr("rx",t.rx),t.ry!==void 0&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class!==void 0&&e.attr("class",t.class),e},x=(s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};l(s,e).lower()},d=(s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class!==void 0&&r.attr("class",t.class);const n=r.append("tspan");return n.attr("x",t.x+t.textMargin*2),n.text(e),r},h=(s,t,e,r)=>{const n=s.append("image");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",a)},y=(s,t,e,r)=>{const n=s.append("use");n.attr("x",t),n.attr("y",e);const a=i.sanitizeUrl(r);n.attr("xlink:href",`#${a}`)},g=()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),m=()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0});export{x as a,m as b,y as c,l as d,h as e,d as f,g};

View file

@ -1,4 +1,4 @@
import{j as r,p as s}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as d}from"./index-CswL0fy2.js";import{M as c}from"./index-BuvbpKx8.js";import{C as t}from"./Table-BhOPhfWD.js";import{e}from"./parseCss-DBuO8nz4.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./prism-yuxV06zr.js";import"./scss-BCrErVeE.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const i=`// Brand colours from RCOM's raptor system
import{j as r,p as s}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as d}from"./index-CswL0fy2.js";import{M as c}from"./index-CluuxvkZ.js";import{C as t}from"./Table-Dn2XQTTE.js";import{e}from"./parseCss-v88YhYdJ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./prism-BWqcFp3z.js";import"./scss-BCrErVeE.js";import"./index-CROxjmim.js";import"./toString-DnxJX3Gz.js";import"./isSymbol-Br3Fhm6g.js";const i=`// Brand colours from RCOM's raptor system
// https://github.com/tr/rcom-arc_raptor-ui/blob/develop/packages/rcom-raptor-ui_atomic/styles/_colors.scss
:root {
--tr-orange: #fa6400;

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{a3 as ft,r as gt,c as mt,l as E,h as G,_ as xt,a4 as _t,a5 as bt,a6 as kt}from"./intro-QWY8Oh9i.js";import"./dayjs.min-BIwLhz4I.js";import{a as D}from"./arc-CKZecfdf.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-BuvbpKx8.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CDqPTBmc.js";import"./parseCss-DBuO8nz4.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,s,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=s);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],i=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(s,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:i,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:i,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=r,c}},parse:function(s){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(s,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`:
import{a3 as ft,r as gt,c as mt,l as E,h as G,_ as xt,a4 as _t,a5 as bt,a6 as kt}from"./intro-CXHH-5HQ.js";import"./dayjs.min-BIwLhz4I.js";import{a as D}from"./arc-CBglLoX7.js";import"./docsPage-CrCNk6vV.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-CswL0fy2.js";import"./index-CluuxvkZ.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";import"./_initCloneObject-D0ofMy5o.js";import"./isSymbol-Br3Fhm6g.js";import"./toString-DnxJX3Gz.js";import"./isObject-C3e4t58V.js";import"./Table-CYaDd5u2.js";import"./parseCss-v88YhYdJ.js";import"./index-CROxjmim.js";import"./_color-UiaLB_4F.js";import"./path-CbwjOpE9.js";var K=function(){var n=function(g,s,r,c){for(r=r||{},c=g.length;c--;r[g[c]]=s);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],i=[1,11],h=[1,12],o=[1,13],p=[1,16],y=[1,17],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(s,r,c,d,u,l,$){var x=l.length-1;switch(u){case 1:return l[x-1];case 2:this.$=[];break;case 3:l[x-1].push(l[x]),this.$=l[x-1];break;case 4:case 5:this.$=l[x];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(l[x].substr(6)),this.$=l[x].substr(6);break;case 9:this.$=l[x].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[x].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(l[x].substr(8)),this.$=l[x].substr(8);break;case 15:d.addTask(l[x],0,""),this.$=l[x];break;case 16:d.addEvent(l[x].substr(2)),this.$=l[x];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:i,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:i,16:h,17:o,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=r,c}},parse:function(s){var r=this,c=[0],d=[],u=[null],l=[],$=this.table,x="",T=0,W=0,C=2,A=1,B=l.slice.call(arguments,1),k=Object.create(this.lexer),w={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(w.yy[v]=this.yy[v]);k.setInput(s,w.yy),w.yy.lexer=k,w.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var I=k.yylloc;l.push(I);var P=k.options&&k.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||k.lex()||A,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var b,L,S,Z,R={},O,N,Y,j;;){if(L=c[c.length-1],this.defaultActions[L]?S=this.defaultActions[L]:((b===null||typeof b>"u")&&(b=z()),S=$[L]&&$[L][b]),typeof S>"u"||!S.length||!S[0]){var J="";j=[];for(O in $[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+(T+1)+`:
`+k.showPosition()+`
Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":J="Parse error on line "+(T+1)+": Unexpected "+(b==A?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:I,expected:j})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+b);switch(S[0]){case 1:c.push(b),u.push(k.yytext),l.push(k.yylloc),c.push(S[1]),b=null,W=k.yyleng,x=k.yytext,T=k.yylineno,I=k.yylloc;break;case 2:if(N=this.productions_[S[1]][1],R.$=u[u.length-N],R._$={first_line:l[l.length-(N||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(N||1)].first_column,last_column:l[l.length-1].last_column},P&&(R._$.range=[l[l.length-(N||1)].range[0],l[l.length-1].range[1]]),Z=this.performAction.apply(R,[x,W,T,w.yy,S[1],u,l].concat(B)),typeof Z<"u")return Z;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),l=l.slice(0,-1*N)),c.push(this.productions_[S[1]][0]),u.push(R.$),l.push(R._$),Y=$[c[c.length-2]][c[c.length-1]],c.push(Y);break;case 3:return!0}}return!0}},_=function(){var g={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+`

View file

@ -1,4 +1,4 @@
import{j as e,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as a}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";const i=""+new URL("stories-C4120uVq.png",import.meta.url).href,h=""+new URL("intro-BH-Pciso.png",import.meta.url).href,c=""+new URL("argstable-CO_GK3L1.png",import.meta.url).href,m=""+new URL("frame-CzCA9R9-.png",import.meta.url).href,l=""+new URL("copy-code-DLQ4Uhv3.png",import.meta.url).href,p=""+new URL("more-stories-C1SYHmeZ.png",import.meta.url).href;function s(t){const o={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",img:"img",p:"p",strong:"strong",...n(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Guides/Using these docs",parameters:{...r}}),`
import{j as e,p as r}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as n}from"./index-CswL0fy2.js";import{M as a}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";const i=""+new URL("stories-C4120uVq.png",import.meta.url).href,h=""+new URL("intro-BH-Pciso.png",import.meta.url).href,c=""+new URL("argstable-CO_GK3L1.png",import.meta.url).href,m=""+new URL("frame-CzCA9R9-.png",import.meta.url).href,l=""+new URL("copy-code-DLQ4Uhv3.png",import.meta.url).href,p=""+new URL("more-stories-C1SYHmeZ.png",import.meta.url).href;function s(t){const o={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",img:"img",p:"p",strong:"strong",...n(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Guides/Using these docs",parameters:{...r}}),`
`,e.jsx(o.p,{children:e.jsx(o.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(o.h1,{id:"using-these-docs",children:"Using these docs"}),`
`,e.jsx(o.p,{children:"The docs in this site include interactive examples of how to use our components, explanations of how our basic design system works and helpful docs on SCSS tools you can use to customise your page."}),`

View file

@ -1,4 +1,4 @@
import{j as o,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function r(t){const e={a:"a",code:"code",h1:"h1",h2:"h2",img:"img",p:"p",pre:"pre",...s(),...t.components};return o.jsxs(o.Fragment,{children:[o.jsx(i,{title:"Contributing/Writing stories",parameters:{...n}}),`
import{j as o,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function r(t){const e={a:"a",code:"code",h1:"h1",h2:"h2",img:"img",p:"p",pre:"pre",...s(),...t.components};return o.jsxs(o.Fragment,{children:[o.jsx(i,{title:"Contributing/Writing stories",parameters:{...n}}),`
`,o.jsx(e.p,{children:o.jsx(e.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,o.jsx(e.h1,{id:"writing-component-stories",children:"Writing component stories"}),`
`,o.jsx(e.p,{children:'As well as writing your component, you should also document how to use it using Storybook "stories."'}),`

View file

@ -1,4 +1,4 @@
import{j as e,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-BuvbpKx8.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-CqubeUtq.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function r(t){const o={blockquote:"blockquote",code:"code",em:"em",h1:"h1",h3:"h3",img:"img",p:"p",pre:"pre",...s(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Contributing/Writing docs pages",parameters:{...n}}),`
import{j as e,p as n}from"./docsPage-CrCNk6vV.js";import{useMDXComponents as s}from"./index-CswL0fy2.js";import{M as i}from"./index-CluuxvkZ.js";import"./index-DwChlhAQ.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./iframe-SAeDpW7h.js";import"../sb-preview/runtime.js";import"./index-DxKRhftL.js";import"./index-DrFu-skq.js";function r(t){const o={blockquote:"blockquote",code:"code",em:"em",h1:"h1",h3:"h3",img:"img",p:"p",pre:"pre",...s(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Contributing/Writing docs pages",parameters:{...n}}),`
`,e.jsx(o.p,{children:e.jsx(o.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
`,e.jsx(o.h1,{id:"writing-docs-only-pages",children:"Writing docs-only pages"}),`
`,e.jsx(o.p,{children:"You can write docs-only pages in simple markdown using MDX format."}),`

View file

@ -522,7 +522,7 @@
window.global = window;
</script>
<script type="module" crossorigin src="./assets/iframe-CqubeUtq.js"></script>
<script type="module" crossorigin src="./assets/iframe-SAeDpW7h.js"></script>
</head>
<body>

View file

@ -1 +1 @@
{"generatedAt":1724833647317,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{},"packageManager":{"type":"npm","version":"10.8.1"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/svelte-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/svelte","storybookVersion":"8.2.9","storybookVersionSpecifier":"^8.2.9","language":"typescript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.2.9"},"@storybook/addon-mdx-gfm":{"version":"8.2.9"},"@storybook/blocks":{"version":"8.2.9"},"@storybook/builder-vite":{"version":"8.2.9"},"@storybook/components":{"version":"8.2.9"},"@storybook/manager-api":{"version":"8.2.9"},"@storybook/mdx2-csf":{"version":"1.1.0"},"@storybook/svelte":{"version":"8.2.9"},"@storybook/svelte-vite":{"version":"8.2.9"},"@storybook/test":{"version":"8.2.9"},"@storybook/theming":{"version":"8.2.9"},"storybook":{"version":"8.2.9"}},"addons":{"@storybook/addon-svelte-csf":{"version":"4.1.5"},"@storybook/addon-links":{"version":"8.2.9"},"@storybook/addon-actions":{"version":"8.2.9"},"@storybook/addon-viewport":{"version":"8.2.9"},"@storybook/addon-docs":{"version":"8.2.9"},"@storybook/addon-controls":{"version":"8.2.9"},"@storybook/addon-backgrounds":{"version":"8.2.9"},"@storybook/addon-toolbars":{"version":"8.2.9"},"@storybook/addon-measure":{"version":"8.2.9"},"@storybook/addon-outline":{"version":"8.2.9"},"@storybook/addon-interactions":{"version":"8.2.9"},"@chromatic-com/storybook":{"version":"1.7.0"},"chromatic":{"version":null,"versionSpecifier":"^7.1.0"}}}
{"generatedAt":1724838955594,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":0,"testPackages":{},"packageManager":{"type":"npm","version":"10.8.1"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/svelte-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/svelte","storybookVersion":"8.2.9","storybookVersionSpecifier":"^8.2.9","language":"typescript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.2.9"},"@storybook/addon-mdx-gfm":{"version":"8.2.9"},"@storybook/blocks":{"version":"8.2.9"},"@storybook/builder-vite":{"version":"8.2.9"},"@storybook/components":{"version":"8.2.9"},"@storybook/manager-api":{"version":"8.2.9"},"@storybook/mdx2-csf":{"version":"1.1.0"},"@storybook/svelte":{"version":"8.2.9"},"@storybook/svelte-vite":{"version":"8.2.9"},"@storybook/test":{"version":"8.2.9"},"@storybook/theming":{"version":"8.2.9"},"storybook":{"version":"8.2.9"}},"addons":{"@storybook/addon-svelte-csf":{"version":"4.1.5"},"@storybook/addon-links":{"version":"8.2.9"},"@storybook/addon-actions":{"version":"8.2.9"},"@storybook/addon-viewport":{"version":"8.2.9"},"@storybook/addon-docs":{"version":"8.2.9"},"@storybook/addon-controls":{"version":"8.2.9"},"@storybook/addon-backgrounds":{"version":"8.2.9"},"@storybook/addon-toolbars":{"version":"8.2.9"},"@storybook/addon-measure":{"version":"8.2.9"},"@storybook/addon-outline":{"version":"8.2.9"},"@storybook/addon-interactions":{"version":"8.2.9"},"@chromatic-com/storybook":{"version":"1.7.0"},"chromatic":{"version":null,"versionSpecifier":"^7.1.0"}}}

View file

@ -18,6 +18,6 @@ Import the SCSS directly in your top-level component. (This is done for you in t
<script>
// other imports and stuffs ...
import '@reuters-graphics/graphics-components/scss/main';
import '@reuters-graphics/graphics-components/scss/main.scss';
</script>
```