gf-components 0.1.21 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -51,7 +51,6 @@ React keys must be passed directly to JSX without using spread:
51
51
  --gf-padding-md: 16px;
52
52
 
53
53
  /* fonts */
54
- @import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
55
54
  --gf-font: Roboto, sans-serif;
56
55
  --gf-display-1: normal normal 600 48px/60px Roboto, sans-serif;
57
56
 
@@ -386,7 +385,7 @@ html body {
386
385
  font: var(--gf-label-md-default);
387
386
  color: var(--gf-color-button-primary);
388
387
  text-decoration-line: underline;
389
- `,Ew=({title:e,subtitle:t,listTitle:r,items:n,gap:a,...o})=>{const i=s=>{if(typeof s!="string"){const l=s.current.getBoundingClientRect().top+window.scrollY-(a||0);window.scroll({top:l,behavior:"smooth"})}};return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Cw,{cardtype:"default",title:re.jsx(Wv,{title:e,subtitle:t,type:"header"}),...o,children:re.jsxs(Wa,{vertical:!0,gap:8,style:{alignItems:"start"},children:[re.jsx(Sw,{children:r||"Table of contents"}),n.map((s,l)=>re.jsx(xw,{type:"link",href:typeof s.href=="string"?s.href:void 0,onClick:()=>i(s.href),children:s.name},`button-select-item-${l}`))]})})]})},ww=({tabList:e,tabContent:t,expandContent:r,expandLabel:n,padding:a=24,handleDownload:o,...i})=>{var b;const[s,l]=P.useState((b=e==null?void 0:e[0])==null?void 0:b.key),[u,d]=P.useState(!1),f=h=>{l(h)},v=()=>{d(h=>!h)};return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Ga,{className:"gf-full-width gf-override-ant-card-actions",tabList:e,cardtype:"default",activeTabKey:s,onTabChange:f,tabBarExtraContent:re.jsx(zv,{onClick:o}),actions:r!=null&&r[s]?[re.jsxs(Wa,{vertical:!0,children:[re.jsx(kv,{open:u,onClick:v,children:n}),u&&(r==null?void 0:r[s])]})]:void 0,styles:{header:{padding:`0px ${a}`},body:{padding:a}},...i,children:t==null?void 0:t[s]})]})},{Paragraph:$w,Text:Gv}=_r,Ow=tt(Ga)`
388
+ `,Ew=({title:e,subtitle:t,listTitle:r,items:n,gap:a,...o})=>{const i=s=>{if(typeof s!="string"){const l=s.current.getBoundingClientRect().top+window.scrollY-(a||0);window.scroll({top:l,behavior:"smooth"})}};return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Cw,{cardtype:"default",title:re.jsx(Wv,{title:e,subtitle:t,type:"header"}),...o,children:re.jsxs(Wa,{vertical:!0,gap:8,style:{alignItems:"start"},children:[re.jsx(Sw,{children:r||"Table of contents"}),n.map((s,l)=>re.jsx(xw,{type:"link",href:typeof s.href=="string"?s.href:void 0,onClick:()=>i(s.href),children:s.name},`button-select-item-${l}`))]})})]})},ww=({tabList:e,tabContent:t,expandContent:r,expandLabel:n,padding:a=24,handleDownload:o,...i})=>{var b;const[s,l]=P.useState((b=e==null?void 0:e[0])==null?void 0:b.key),[u,d]=P.useState(!1),f=h=>{l(h)},v=()=>{d(h=>!h)};return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Ga,{className:"gf-full-width gf-override-ant-card-actions",tabList:e,cardtype:"default",activeTabKey:s,onTabChange:f,tabBarExtraContent:re.jsx(zv,{onClick:o==null?void 0:o[s]}),actions:r!=null&&r[s]?[re.jsxs(Wa,{vertical:!0,children:[re.jsx(kv,{open:u,onClick:v,children:n}),u&&(r==null?void 0:r[s])]})]:void 0,styles:{header:{padding:"0px 24px"},body:{padding:a}},...i,children:t==null?void 0:t[s]})]})},{Paragraph:$w,Text:Gv}=_r,Ow=tt(Ga)`
390
389
  min-width: 226px;
391
390
  `,Rw=tt(Gv)`
392
391
  font: var(--gf-header-h1);