@patternfly/patternfly-doc-core 1.8.0 → 1.8.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/client/_astro/Navigation.zYUnVsp7.js +1 -0
- package/dist/client/_astro/{_page_.BWicMEzd.css → _page_.D1z73Byz.css} +1 -1
- package/dist/client/components/accordion/index.html +9 -9
- package/dist/client/components/accordion/react/index.html +9 -9
- package/dist/client/components/all-components/index.html +8 -8
- package/dist/client/design-foundations/typography/index.html +9 -9
- package/dist/client/design-foundations/usage-and-behavior/index.html +9 -9
- package/dist/client/get-started/contribute/index.html +9 -9
- package/dist/client/index.html +2 -2
- package/dist/server/chunks/{CSSTable_CG80uW98.mjs → AutoLinkHeader_C2GD0g-K.mjs} +45 -45
- package/dist/server/chunks/CSSTable_B8tlH3gz.mjs +18 -0
- package/dist/server/chunks/{PropsTables_DUo7F9VR.mjs → PropsTables_PVzRHJNB.mjs} +7 -6
- package/dist/server/chunks/{angle-down-icon_DtGGiMR5.mjs → angle-down-icon_BO1Ed-9Z.mjs} +1 -1
- package/dist/server/entry.mjs +3 -3
- package/dist/server/{manifest_CXkcH4VT.mjs → manifest_QF66rQCk.mjs} +1 -1
- package/package.json +2 -2
- package/src/components/Navigation.astro +3 -4
- package/src/components/Navigation.tsx +12 -10
- package/src/components/PropsTable.tsx +2 -2
- package/src/components/PropsTables.astro +24 -10
- package/src/layouts/Main.astro +28 -0
- package/src/styles/global.scss +1 -0
- package/dist/client/_astro/Navigation.CnvE1VCH.js +0 -1
- package/dist/server/chunks/CSSTable_Dj2CroFz.mjs +0 -4
- package/dist/server/chunks/Stack_Xm3fJVbK.mjs +0 -22
- /package/dist/server/chunks/{Button_DVSwQ8oX.mjs → Button_BKhHR-ak.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as a}from"./Button.IBWho7ny.js";import{r as d}from"./index.eCxJ45ll.js";import{k as r,s as m}from"./index.CAChmxYj.js";import{c as p,b as l,e as v,N as x,d as u}from"./PageSidebarBody.vGxFk_DU.js";/* empty css */import"./angle-left-icon.C3MzYN3k.js";import"./divider.O4WEhuBq.js";import"./index.BQFV5hT1.js";import"./page.BTC3Kf3x.js";import"./PageContext.ipir86Hm.js";const j=({entry:i,isActive:o})=>{const{id:s}=i,{id:n,section:e}=i.data,t=e==="components"||e==="layouts"?r(n):s;return a.jsx(p,{itemId:t,to:`/${e}/${t}`,isActive:o,id:`nav-entry-${t}`,children:n})},N=({entries:i,sectionId:o,activeItem:s})=>{const n=window.location.pathname.includes(r(o)),e=i.some(c=>c.id===s),t=i.map(c=>a.jsx(j,{entry:c,isActive:s===c.id||window.location.pathname.includes(r(c.data.id))},c.id));return a.jsx(l,{title:m(o),isActive:e,isExpanded:n,id:`nav-section-${o}`,children:t})},k=({navData:i})=>{const[o,s]=d.useState("");d.useEffect(()=>{s(window.location.pathname.split("/").reverse()[0])},[]);const n=(e,t)=>{s(t.itemId.toString())};return a.jsx(v,{id:"page-sidebar-body",children:a.jsx(x,{onSelect:n,children:a.jsx(u,{children:i.map(e=>{const{section:t}=e[0].data;return a.jsx(N,{entries:e,sectionId:t,activeItem:o},t)})})})})};export{k as Navigation};
|