@principal-ade/panels 1.0.66 → 1.0.67
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.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -11,7 +11,7 @@ return t("div",{className:`collapsible-split-pane ${w}`,style:{...X,...x},childr
|
|
|
11
11
|
/* @__PURE__ */e("span",{className:"csp-header-title",style:{color:y.colors.text,fontFamily:y.fonts.body,fontSize:y.fontSizes[1],fontWeight:y.fontWeights.medium},children:s.title}),
|
|
12
12
|
/* @__PURE__ */e("button",{className:"csp-header-toggle",style:{color:y.colors.textSecondary},onClick:e=>{e.stopPropagation(),j()},"aria-label":c?`Expand ${s.title}`:`Collapse ${s.title}`,children:/* @__PURE__ */e("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:/* @__PURE__ */e("path",{d:c?"M3 5L6 8L9 5":"M3 7L6 4L9 7"})})})]}),
|
|
13
13
|
/* @__PURE__ */e("div",{className:"csp-content-area",children:/* @__PURE__ */t(m,{orientation:"vertical",onLayoutChange:K,onLayoutChanged:U,children:[
|
|
14
|
-
/* @__PURE__ */e(f,{panelRef:P,defaultSize:c?"0%":`${F(u)}%`,minSize:"0%",maxSize:`${F(h)}%`,onResize:q,className:Y,children:/* @__PURE__ */e("div",{className:"csp-secondary-body",children:r})}),
|
|
14
|
+
/* @__PURE__ */e(f,{panelRef:P,defaultSize:c||v?"0%":`${F(u)}%`,minSize:"0%",maxSize:v&&c?"0%":`${F(h)}%`,onResize:q,className:Y,style:v&&c?{display:"none"}:void 0,children:/* @__PURE__ */e("div",{className:"csp-secondary-body",children:r})}),
|
|
15
15
|
/* @__PURE__ */e(b,{className:"csp-resize-handle",children:/* @__PURE__ */e("div",{className:"csp-resize-handle-bar"})}),
|
|
16
16
|
/* @__PURE__ */e(f,{className:"csp-primary-panel",minSize:"20%",children:/* @__PURE__ */e("div",{className:"csp-panel-content",children:n})})]})})]})},z=({panelIds:r,panels:l,config:i={},className:s="",theme:c})=>{const{defaultActiveTab:d=0,tabPosition:u="top",centered:p=!0,hideTabList:h=!1,activeTabIndex:g,onTabChange:v}=i,[m,f]=o(d),b=void 0!==g,y=b?g:m;a(()=>{b||f(d)},[d,b]);const w=N(c),x=r.map(e=>l.find(t=>t.id===e)).filter(e=>void 0!==e),C=Math.min(y,x.length-1),S=x[C];if(0===x.length)/* @__PURE__ */
|
|
17
17
|
return e("div",{className:"tab-group-empty",children:"No panels available"});const E=/* @__PURE__ */e("div",{className:"tab-list "+("top"===u||"bottom"===u||p?"centered":""),role:"tablist",children:x.map((r,o)=>/* @__PURE__ */e("button",{role:"tab","aria-selected":o===C,"aria-controls":`tabpanel-${r.id}`,id:`tab-${r.id}`,className:"tab-button "+(o===C?"active":""),onClick:()=>(e=>{b||f(e),v?.(e)})(o),title:r.icon?r.label:void 0,children:r.icon?/* @__PURE__ */t(n,{children:[
|