gf-components 0.1.22 → 0.1.24
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
|
@@ -385,7 +385,7 @@ html body {
|
|
|
385
385
|
font: var(--gf-label-md-default);
|
|
386
386
|
color: var(--gf-color-button-primary);
|
|
387
387
|
text-decoration-line: underline;
|
|
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}),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
|
|
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)`
|
|
389
389
|
min-width: 226px;
|
|
390
390
|
`,Rw=tt(Gv)`
|
|
391
391
|
font: var(--gf-header-h1);
|
|
@@ -395,7 +395,7 @@ html body {
|
|
|
395
395
|
`,_w=tt($w)`
|
|
396
396
|
font: var(--gf-label-lg-default);
|
|
397
397
|
color: var(--gf-color-text-secondary);
|
|
398
|
-
`,Uv=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Ow,{cardtype:"grey",padding:24,...a,children:re.jsxs(Wa,{vertical:!0,gap:8,children:[re.jsxs(Ha,{direction:"horizontal",size:16,align:"end",children:[re.jsx(Rw,{children
|
|
398
|
+
`,Uv=({percent:e,cost:t,description:r,editable:n,...a})=>{const[o,i]=P.useState(r),s=n?{onChange:i}:!1;return re.jsxs(re.Fragment,{children:[re.jsx(Pr,{}),re.jsx(Ow,{cardtype:"grey",padding:24,...a,children:re.jsxs(Wa,{vertical:!0,gap:8,children:[re.jsxs(Ha,{direction:"horizontal",size:16,align:"end",children:[re.jsx(Rw,{children:e}),re.jsx(Pw,{children:t})]}),re.jsx(_w,{editable:s,children:o})]})})]})},{Text:Tw}=_r,Nw=tt.a`
|
|
399
399
|
text-decoration: none;
|
|
400
400
|
`,Iw=tt(Tw)`
|
|
401
401
|
font: var(--gf-label-md-default);
|