@worldresources/wri-design-systems 2.180.0 → 2.180.2
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 +1 -2
- package/dist/index.esm.js +1 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2543,7 +2543,6 @@ function ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2543
2543
|
bottom: 0;
|
|
2544
2544
|
left: 0;
|
|
2545
2545
|
background-color: ${t?h("neutral",200):"transparent"};
|
|
2546
|
-
background-color: ${h("neutral",t?200:100)};
|
|
2547
2546
|
border-top: 1px solid ${h("neutral",400)};
|
|
2548
2547
|
z-index: 101;
|
|
2549
2548
|
`,Vh=e=>r.css`
|
|
@@ -2705,7 +2704,7 @@ function ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2705
2704
|
`,qh=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),Wh=(e,t,n,o,i)=>{let a="48px";return e?a="96px":i&&(a="28px"),r.css`
|
|
2706
2705
|
max-height: ${a};
|
|
2707
2706
|
width: 100%;
|
|
2708
|
-
background-color: ${h("neutral",
|
|
2707
|
+
background-color: ${n??h("neutral","dark"===o?800:100)};
|
|
2709
2708
|
position: ${t?"sticky":"absolute"};
|
|
2710
2709
|
top: 0;
|
|
2711
2710
|
left: 0;
|
package/dist/index.esm.js
CHANGED
|
@@ -2600,7 +2600,6 @@ function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2600
2600
|
bottom: 0;
|
|
2601
2601
|
left: 0;
|
|
2602
2602
|
background-color: ${t?we("neutral",200):"transparent"};
|
|
2603
|
-
background-color: ${we("neutral",t?200:100)};
|
|
2604
2603
|
border-top: 1px solid ${we("neutral",400)};
|
|
2605
2604
|
z-index: 101;
|
|
2606
2605
|
`,yg=e=>de`
|
|
@@ -2762,7 +2761,7 @@ function Mh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2762
2761
|
`,Og=(e,t)=>Math.max(0,e.findIndex((e=>e.value===t))),Rg=({defaultValue:e,tabs:t,onTabClick:n,hideLabels:r,activationMode:o="manual"})=>{const i=t.length,[a,l]=J((()=>Og(t,e)));return G("div",{css:kg,children:G(N.Root,{width:"full",defaultValue:e||t?.[0]?.value,onValueChange:({value:e})=>(e=>{const r=Og(t,e);l(r),n&&n(e)})(e),activationMode:o,children:G(N.List,{alignItems:"center",border:"none",children:t.map(((e,t)=>{const{label:n,icon:o,bagdeCount:l,"aria-label":s,"aria-describedby":c,disabled:d,...u}=e,p=`${e.value}-str-status`,h=[`tab ${t+1} of ${i}`,a===t?"selected":"not selected"];d&&h.push("disabled");const f=[c,p].filter(Boolean).join(" ")||void 0;return q(N.Trigger,{css:Sg,"aria-label":s||n,"aria-disabled":!!d||void 0,"aria-describedby":f,disabled:d,...u,children:[q("div",{css:Eg,children:[o,l?G("div",{css:Lg,className:"ds-badge-count",children:l}):null]}),r?null:G("p",{children:n}),G(j,{id:p,children:h.join(", ")})]},e.value)}))})})})},Tg=(e,t,n,r,o)=>{let i="48px";return e?i="96px":o&&(i="28px"),de`
|
|
2763
2762
|
max-height: ${i};
|
|
2764
2763
|
width: 100%;
|
|
2765
|
-
background-color: ${we("neutral",
|
|
2764
|
+
background-color: ${n??we("neutral","dark"===r?800:100)};
|
|
2766
2765
|
position: ${t?"sticky":"absolute"};
|
|
2767
2766
|
top: 0;
|
|
2768
2767
|
left: 0;
|