@patternfly/patternfly-doc-core 1.10.0 → 1.11.0
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/astro.config.mjs +3 -4
- package/cli/cli.ts +60 -19
- package/dist/.assetsignore +2 -0
- package/dist/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CtSceO8m.js +1 -0
- package/dist/_astro/client.DN8ES6L5.js +1 -0
- package/dist/_routes.json +20 -0
- package/dist/_worker.js/_@astrojs-ssr-adapter.mjs +2 -0
- package/dist/_worker.js/_astro-internal_middleware.mjs +21 -0
- package/dist/_worker.js/_noop-actions.mjs +4 -0
- package/dist/{server/chunks/AutoLinkHeader_C2GD0g-K.mjs → _worker.js/chunks/AutoLinkHeader_xh_mBOfs.mjs} +13 -14
- package/dist/{server/chunks/Button_BKhHR-ak.mjs → _worker.js/chunks/Button_ByndGYyw.mjs} +83 -13
- package/dist/{server/chunks/CSSTable_B8tlH3gz.mjs → _worker.js/chunks/CSSTable_DAbso55e.mjs} +3 -3
- package/dist/_worker.js/chunks/PropsTables_BZngJp47.mjs +6628 -0
- package/dist/_worker.js/chunks/_@astrojs-ssr-adapter_C9Nk07-M.mjs +1082 -0
- package/dist/_worker.js/chunks/angle-down-icon_yt3z9cvI.mjs +3686 -0
- package/dist/_worker.js/chunks/astro/server_BpfPtTmt.mjs +7278 -0
- package/dist/_worker.js/chunks/astro-designed-error-pages_4xWqsa9_.mjs +928 -0
- package/dist/_worker.js/chunks/cloudflare-kv-binding_DMly_2Gl.mjs +107 -0
- package/dist/_worker.js/chunks/index_Dc2aKkl4.mjs +57 -0
- package/dist/{server/chunks/_@astrojs-ssr-adapter_CbICuCdt.mjs → _worker.js/chunks/index_DlGha6WC.mjs} +1295 -1817
- package/dist/_worker.js/chunks/noop-middleware_Ct44Kk5Y.mjs +10 -0
- package/dist/_worker.js/chunks/parse_EttCPxrw.mjs +271 -0
- package/dist/{server/chunks/path_Cvt6sEOY.mjs → _worker.js/chunks/path_C-ZOwaTP.mjs} +2 -1
- package/dist/{server/entry.mjs → _worker.js/index.js} +12 -19
- package/dist/_worker.js/manifest_DcBPbZXQ.mjs +100 -0
- package/dist/_worker.js/pages/_image.astro.mjs +24 -0
- package/dist/_worker.js/pages/_section_/_page_/_---tab_.astro.mjs +1 -0
- package/dist/_worker.js/pages/index.astro.mjs +1 -0
- package/dist/{server → _worker.js}/pages/props.astro.mjs +3 -2
- package/dist/_worker.js/renderers.mjs +484 -0
- package/dist/cli/cli.js +46 -12
- package/dist/{client/components/accordion/react → components/accordion}/index.html +14 -64
- package/dist/{client/components/accordion → components/accordion/react}/index.html +14 -64
- package/dist/components/all-components/index.html +47 -0
- package/dist/design-foundations/typography/index.html +198 -0
- package/dist/{client/design-foundations → design-foundations}/usage-and-behavior/index.html +4 -54
- package/dist/get-started/contribute/index.html +94 -0
- package/dist/index.html +43 -0
- package/package.json +12 -8
- package/public/.assetsignore +2 -0
- package/src/pages/props.ts +2 -2
- package/wrangler.jsonc +14 -0
- package/dist/client/_astro/ClientRouter.astro_astro_type_script_index_0_lang.Cainpjm5.js +0 -1
- package/dist/client/_astro/client.zs76E0tG.js +0 -1
- package/dist/client/components/all-components/index.html +0 -97
- package/dist/client/design-foundations/typography/index.html +0 -248
- package/dist/client/get-started/contribute/index.html +0 -144
- package/dist/client/index.html +0 -43
- package/dist/server/_@astrojs-ssr-adapter.mjs +0 -1
- package/dist/server/_noop-middleware.mjs +0 -3
- package/dist/server/chunks/PropsTables_PVzRHJNB.mjs +0 -1750
- package/dist/server/chunks/_astro_assets_DaYumpRZ.mjs +0 -1507
- package/dist/server/chunks/angle-down-icon_BO1Ed-9Z.mjs +0 -3288
- package/dist/server/chunks/astro/server_Cl9jPh4p.mjs +0 -2859
- package/dist/server/chunks/astro-designed-error-pages_BFveJFnQ.mjs +0 -282
- package/dist/server/chunks/consts_BmVDRGlB.mjs +0 -32
- package/dist/server/chunks/sharp_CbOL3WDk.mjs +0 -88
- package/dist/server/manifest_DsbMfV1U.mjs +0 -102
- package/dist/server/pages/_image.astro.mjs +0 -132
- package/dist/server/renderers.mjs +0 -308
- /package/dist/{client/PF-HorizontalLogo-Color.svg → PF-HorizontalLogo-Color.svg} +0 -0
- /package/dist/{client/PF-HorizontalLogo-Reverse.svg → PF-HorizontalLogo-Reverse.svg} +0 -0
- /package/dist/{client/_astro → _astro}/Button.BQCwQ5pE.js +0 -0
- /package/dist/{client/_astro → _astro}/CSSTable.DC79W1Ct.js +0 -0
- /package/dist/{client/_astro → _astro}/Content.B4M2qzJY.js +0 -0
- /package/dist/{client/_astro → _astro}/DropdownList.cxp03sS4.js +0 -0
- /package/dist/{client/_astro → _astro}/LiveExample.CxJsMvEq.css +0 -0
- /package/dist/{client/_astro → _astro}/LiveExample.DjPiO80i.js +0 -0
- /package/dist/{client/_astro → _astro}/Navigation.kbLxctIo.js +0 -0
- /package/dist/{client/_astro → _astro}/PageContext.miTsIqVo.js +0 -0
- /package/dist/{client/_astro → _astro}/PageSidebarBody.B0AJe8Hg.js +0 -0
- /package/dist/{client/_astro → _astro}/PageToggle.CMZ3C1v1.js +0 -0
- /package/dist/{client/_astro → _astro}/RedHatDisplayVF-Italic.CRpusWc8.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatDisplayVF.CYDHf1NI.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatMonoVF-Italic.DGQo2ogW.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatMonoVF.C4fMH6Vz.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatTextVF-Italic.Dkj_WqbA.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/RedHatTextVF.wYvZ7prR.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/SearchInput.DhHo7yPx.js +0 -0
- /package/dist/{client/_astro → _astro}/SectionGallery.3ABpQwE4.js +0 -0
- /package/dist/{client/_astro → _astro}/Toolbar.CroDQcyv.js +0 -0
- /package/dist/{client/_astro → _astro}/ToolbarContent.UH3ZRlHp.js +0 -0
- /package/dist/{client/_astro → _astro}/_page_.Chv_bGyU.css +0 -0
- /package/dist/{client/_astro → _astro}/_page_.CtheD08_.css +0 -0
- /package/dist/{client/_astro → _astro}/_page_.D1z73Byz.css +0 -0
- /package/dist/{client/_astro → _astro}/_page_.DxJDkZPc.css +0 -0
- /package/dist/{client/_astro → _astro}/angle-left-icon.teo8GC0v.js +0 -0
- /package/dist/{client/_astro → _astro}/bars-icon.Dk6ua1rr.js +0 -0
- /package/dist/{client/_astro → _astro}/divider.tlrBPkzg.js +0 -0
- /package/dist/{client/_astro → _astro}/fa-solid-900.DguXoeIz.woff2 +0 -0
- /package/dist/{client/_astro → _astro}/github-icon.ByC5XEPt.js +0 -0
- /package/dist/{client/_astro → _astro}/index.BQFV5hT1.js +0 -0
- /package/dist/{client/_astro → _astro}/index.CAChmxYj.js +0 -0
- /package/dist/{client/_astro → _astro}/index.DYVB4vTo.js +0 -0
- /package/dist/{client/_astro → _astro}/index.eCxJ45ll.js +0 -0
- /package/dist/{client/_astro → _astro}/link-icon.BNHnRn73.js +0 -0
- /package/dist/{client/_astro → _astro}/page.BTC3Kf3x.js +0 -0
- /package/dist/{client/_astro → _astro}/pf-v6-pficon.Dy6oiu9u.woff2 +0 -0
- /package/dist/{server/chunks/Accordion_BJka4Qvb.mjs → _worker.js/chunks/Accordion_BNafbla6.mjs} +0 -0
- /package/dist/{server/chunks/Accordion_BQIphkaZ.mjs → _worker.js/chunks/Accordion_CZsuyu9E.mjs} +0 -0
- /package/dist/{server/chunks/AllComponents_CRhgTsiT.mjs → _worker.js/chunks/AllComponents_BrL9IHSc.mjs} +0 -0
- /package/dist/{server/chunks/AllComponents_CjOtwUH6.mjs → _worker.js/chunks/AllComponents_CI7S6uwA.mjs} +0 -0
- /package/dist/{server/chunks/_astro_data-layer-content_D4Ib_RjR.mjs → _worker.js/chunks/_astro_assets_vBCb4v6U.mjs} +0 -0
- /package/dist/{server/chunks/content-assets_DleWbedO.mjs → _worker.js/chunks/_astro_data-layer-content_CgXoS6Mm.mjs} +0 -0
- /package/dist/{server/chunks/content-modules_fX1c2JRG.mjs → _worker.js/chunks/content-assets_XqCgPAV2.mjs} +0 -0
- /package/dist/{server/pages/_section_/_---page_.astro.mjs → _worker.js/chunks/content-modules_CKq2j9RQ.mjs} +0 -0
- /package/dist/{server/pages/_section_/_page_/_---tab_.astro.mjs → _worker.js/chunks/sharp_CNjr3bU4.mjs} +0 -0
- /package/dist/{server/pages/index.astro.mjs → _worker.js/pages/_section_/_---page_.astro.mjs} +0 -0
- /package/dist/{client/avatarImg.svg → avatarImg.svg} +0 -0
- /package/dist/{client/avatarImgDark.svg → avatarImgDark.svg} +0 -0
- /package/dist/{client/content → content}/typography/line-height.png +0 -0
- /package/dist/{client/favicon.svg → favicon.svg} +0 -0
package/astro.config.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { defineConfig } from 'astro/config';
|
|
|
3
3
|
import react from '@astrojs/react';
|
|
4
4
|
import mdx from '@astrojs/mdx';
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import cloudflare from '@astrojs/cloudflare';
|
|
7
7
|
|
|
8
8
|
// https://astro.build/config
|
|
9
9
|
export default defineConfig({
|
|
@@ -11,6 +11,7 @@ export default defineConfig({
|
|
|
11
11
|
vite: {
|
|
12
12
|
ssr: {
|
|
13
13
|
noExternal: ["@patternfly/*", "react-dropzone"],
|
|
14
|
+
external: ["node:fs", "node:path"]
|
|
14
15
|
},
|
|
15
16
|
server: {
|
|
16
17
|
fs: {
|
|
@@ -19,7 +20,5 @@ export default defineConfig({
|
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
|
|
22
|
-
adapter:
|
|
23
|
-
mode: 'standalone'
|
|
24
|
-
})
|
|
23
|
+
adapter: cloudflare()
|
|
25
24
|
});
|
package/cli/cli.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { createCollectionContent } from './createCollectionContent.js'
|
|
|
7
7
|
import { setFsRootDir } from './setFsRootDir.js'
|
|
8
8
|
import { createConfigFile } from './createConfigFile.js'
|
|
9
9
|
import { updatePackageFile } from './updatePackageFile.js'
|
|
10
|
-
import { getConfig } from './getConfig.js'
|
|
10
|
+
import { DocsConfig, getConfig } from './getConfig.js'
|
|
11
11
|
import { symLinkConfig } from './symLinkConfig.js'
|
|
12
12
|
import { buildPropsData } from './buildPropsData.js'
|
|
13
13
|
import { hasFile } from './hasFile.js'
|
|
@@ -45,6 +45,60 @@ async function generateProps(program: Command, forceProps: boolean = false) {
|
|
|
45
45
|
verbose,
|
|
46
46
|
)
|
|
47
47
|
}
|
|
48
|
+
async function buildProject(): Promise<DocsConfig | undefined> {
|
|
49
|
+
updateContent(program)
|
|
50
|
+
await generateProps(program, true)
|
|
51
|
+
const config = await getConfig(`${currentDir}/pf-docs.config.mjs`)
|
|
52
|
+
if (!config) {
|
|
53
|
+
console.error(
|
|
54
|
+
'No config found, please run the `setup` command or manually create a pf-docs.config.mjs file',
|
|
55
|
+
)
|
|
56
|
+
return config;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (!config.outputDir) {
|
|
60
|
+
console.error(
|
|
61
|
+
"No outputDir found in config file, an output directory must be defined in your config file e.g. 'dist'",
|
|
62
|
+
)
|
|
63
|
+
return config;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
build({ root: astroRoot, outDir: join(currentDir, config.outputDir) })
|
|
67
|
+
|
|
68
|
+
return config;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
async function deploy() {
|
|
72
|
+
const { verbose } = program.opts()
|
|
73
|
+
|
|
74
|
+
if (verbose) {
|
|
75
|
+
console.log('Starting Cloudflare deployment...')
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
try {
|
|
79
|
+
// First build the project
|
|
80
|
+
const config = await buildProject();
|
|
81
|
+
if (config) {
|
|
82
|
+
if (verbose) {
|
|
83
|
+
console.log('Build complete, deploying to Cloudflare...')
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Deploy using Wrangler
|
|
87
|
+
const { execSync } = await import('child_process')
|
|
88
|
+
const outputPath = join(currentDir, config.outputDir)
|
|
89
|
+
|
|
90
|
+
execSync(`npx wrangler pages deploy ${outputPath}`, {
|
|
91
|
+
stdio: 'inherit',
|
|
92
|
+
cwd: currentDir
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
console.log('Successfully deployed to Cloudflare Pages!')
|
|
96
|
+
}
|
|
97
|
+
} catch (error) {
|
|
98
|
+
console.error('Deployment failed:', error)
|
|
99
|
+
process.exit(1)
|
|
100
|
+
}
|
|
101
|
+
}
|
|
48
102
|
|
|
49
103
|
let astroRoot = ''
|
|
50
104
|
|
|
@@ -99,24 +153,7 @@ program.command('start').action(async () => {
|
|
|
99
153
|
})
|
|
100
154
|
|
|
101
155
|
program.command('build').action(async () => {
|
|
102
|
-
|
|
103
|
-
await generateProps(program, true)
|
|
104
|
-
const config = await getConfig(`${currentDir}/pf-docs.config.mjs`)
|
|
105
|
-
if (!config) {
|
|
106
|
-
console.error(
|
|
107
|
-
'No config found, please run the `setup` command or manually create a pf-docs.config.mjs file',
|
|
108
|
-
)
|
|
109
|
-
return
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (!config.outputDir) {
|
|
113
|
-
console.error(
|
|
114
|
-
"No outputDir found in config file, an output directory must be defined in your config file e.g. 'dist'",
|
|
115
|
-
)
|
|
116
|
-
return
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
build({ root: astroRoot, outDir: join(currentDir, config.outputDir) })
|
|
156
|
+
await buildProject();
|
|
120
157
|
})
|
|
121
158
|
|
|
122
159
|
program.command('generate-props').action(async () => {
|
|
@@ -140,4 +177,8 @@ program
|
|
|
140
177
|
await convertToMDX(globPath)
|
|
141
178
|
})
|
|
142
179
|
|
|
180
|
+
program.command('deploy').action(async () => {
|
|
181
|
+
await deploy()
|
|
182
|
+
})
|
|
183
|
+
|
|
143
184
|
program.parse(process.argv)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const b="data-astro-transition-persist",ee=["data-astro-transition","data-astro-transition-fallback"],M=new Set;function U(e){const t=e.src?new URL(e.src,location.href).href:e.textContent;return M.has(t)?!0:(M.add(t),!1)}function te(e){for(const t of e.scripts)!t.hasAttribute("data-astro-rerun")&&U(t)&&(t.dataset.astroExec="")}function ne(e){const t=document.documentElement,n=[...t.attributes].filter(({name:o})=>(t.removeAttribute(o),ee.includes(o)));[...e.documentElement.attributes,...n].forEach(({name:o,value:r})=>t.setAttribute(o,r))}function oe(e){for(const t of Array.from(document.head.children)){const n=se(t,e);n?n.remove():t.remove()}document.head.append(...e.head.children)}function re(e,t){t.replaceWith(e);for(const n of t.querySelectorAll(`[${b}]`)){const o=n.getAttribute(b),r=e.querySelector(`[${b}="${o}"]`);r&&(r.replaceWith(n),r.localName==="astro-island"&&ae(n)&&!ce(n,r)&&(n.setAttribute("ssr",""),n.setAttribute("props",r.getAttribute("props"))))}}const ie=()=>{const e=document.activeElement;if(e?.closest(`[${b}]`)){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){const t=e.selectionStart,n=e.selectionEnd;return()=>k({activeElement:e,start:t,end:n})}return()=>k({activeElement:e})}else return()=>k({activeElement:null})},k=({activeElement:e,start:t,end:n})=>{e&&(e.focus(),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(typeof t=="number"&&(e.selectionStart=t),typeof n=="number"&&(e.selectionEnd=n)))},se=(e,t)=>{const n=e.getAttribute(b),o=n&&t.head.querySelector(`[${b}="${n}"]`);if(o)return o;if(e.matches("link[rel=stylesheet]")){const r=e.getAttribute("href");return t.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}return null},ae=e=>{const t=e.dataset.astroTransitionPersistProps;return t==null||t==="false"},ce=(e,t)=>e.getAttribute("props")===t.getAttribute("props"),le=e=>{te(e),ne(e),oe(e);const t=ie();re(e.body,document.body),t()},ue="astro:before-preparation",fe="astro:after-preparation",de="astro:before-swap",me="astro:after-swap",he=e=>document.dispatchEvent(new Event(e));class q extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;signal;constructor(t,n,o,r,i,u,a,c,f,l){super(t,n),this.from=o,this.to=r,this.direction=i,this.navigationType=u,this.sourceElement=a,this.info=c,this.newDocument=f,this.signal=l,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0},signal:{enumerable:!0}})}}class pe extends q{formData;loader;constructor(t,n,o,r,i,u,a,c,f,l){super(ue,{cancelable:!0},t,n,o,r,i,u,a,c),this.formData=f,this.loader=l.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}class ge extends q{direction;viewTransition;swap;constructor(t,n){super(de,void 0,t.from,t.to,t.direction,t.navigationType,t.sourceElement,t.info,t.newDocument,t.signal),this.direction=t.direction,this.viewTransition=n,this.swap=()=>le(this.newDocument),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function we(e,t,n,o,r,i,u,a,c){const f=new pe(e,t,n,o,r,i,window.document,u,a,c);return document.dispatchEvent(f)&&(await f.loader(),f.defaultPrevented||(he(fe),f.navigationType!=="traverse"&&x({scrollX,scrollY}))),f}function be(e,t){const n=new ge(e,t);return document.dispatchEvent(n),n.swap(),n}const ye=history.pushState.bind(history),A=history.replaceState.bind(history),x=e=>{history.state&&(history.scrollRestoration="manual",A({...history.state,...e},""))},I=!!document.startViewTransition,N=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),W=(e,t)=>e.pathname===t.pathname&&e.search===t.search;let m,g,S;const V=e=>document.dispatchEvent(new Event(e)),j=()=>V("astro:page-load"),ve=()=>{let e=document.createElement("div");e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),e.className="astro-route-announcer",document.body.append(e),setTimeout(()=>{let t=document.title||document.querySelector("h1")?.textContent||location.pathname;e.textContent=t},60)},H="data-astro-transition-persist",F="data-astro-transition",P="data-astro-transition-fallback";let C,y=0;history.state?(y=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):N()&&(A({index:y,scrollX,scrollY},""),history.scrollRestoration="manual");async function Te(e,t){try{const n=await fetch(e,t),r=(n.headers.get("content-type")??"").split(";",1)[0].trim();return r!=="text/html"&&r!=="application/xhtml+xml"?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:r}}catch{return null}}function K(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function Ae(){let e=Promise.resolve(),t=!1;for(const n of document.getElementsByTagName("script"))n.dataset.astroExec===void 0&&n.getAttribute("type")==="module"&&(t=n.getAttribute("src")===null);t&&document.body.insertAdjacentHTML("beforeend",'<script type="module" src="data:application/javascript,"/>');for(const n of document.getElementsByTagName("script")){if(n.dataset.astroExec==="")continue;const o=n.getAttribute("type");if(o&&o!=="module"&&o!=="text/javascript")continue;const r=document.createElement("script");r.innerHTML=n.innerHTML;for(const i of n.attributes){if(i.name==="src"){const u=new Promise(a=>{r.onload=r.onerror=a});e=e.then(()=>u)}r.setAttribute(i.name,i.value)}r.dataset.astroExec="",n.replaceWith(r)}return e}const G=(e,t,n,o,r)=>{const i=W(t,e),u=document.title;document.title=o;let a=!1;if(e.href!==location.href&&!r)if(n.history==="replace"){const c=history.state;A({...n.state,index:c.index,scrollX:c.scrollX,scrollY:c.scrollY},"",e.href)}else ye({...n.state,index:++y,scrollX:0,scrollY:0},"",e.href);if(document.title=u,S=e,i||(scrollTo({left:0,top:0,behavior:"instant"}),a=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(e.hash){history.scrollRestoration="auto";const c=history.state;location.href=e.href,history.state||(A(c,""),i&&window.dispatchEvent(new PopStateEvent("popstate")))}else a||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};function Ee(e){const t=[];for(const n of e.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${H}="${n.getAttribute(H)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const o=document.createElement("link");o.setAttribute("rel","preload"),o.setAttribute("as","style"),o.setAttribute("href",n.getAttribute("href")),t.push(new Promise(r=>{["load","error"].forEach(i=>o.addEventListener(i,r)),document.head.append(o)}))}return t}async function _(e,t,n,o,r){async function i(c){function f(p){const h=p.effect;return!h||!(h instanceof KeyframeEffect)||!h.target?!1:window.getComputedStyle(h.target,h.pseudoElement).animationIterationCount==="infinite"}const l=document.getAnimations();document.documentElement.setAttribute(P,c);const d=document.getAnimations().filter(p=>!l.includes(p)&&!f(p));return Promise.allSettled(d.map(p=>p.finished))}if(r==="animate"&&!n.transitionSkipped&&!e.signal.aborted)try{await i("old")}catch{}const u=document.title,a=be(e,n.viewTransition);G(a.to,a.from,t,u,o),V(me),r==="animate"&&(!n.transitionSkipped&&!a.signal.aborted?i("new").finally(()=>n.viewTransitionFinished()):n.viewTransitionFinished())}function Se(){return m?.controller.abort(),m={controller:new AbortController}}async function z(e,t,n,o,r){const i=Se();if(!N()||location.origin!==n.origin){i===m&&(m=void 0),location.href=n.href;return}const u=r?"traverse":o.history==="replace"?"replace":"push";if(u!=="traverse"&&x({scrollX,scrollY}),W(t,n)&&(e!=="back"&&n.hash||e==="back"&&t.hash)){G(n,t,o,document.title,r),i===m&&(m=void 0);return}const a=await we(t,n,e,u,o.sourceElement,o.info,i.controller.signal,o.formData,c);if(a.defaultPrevented||a.signal.aborted){i===m&&(m=void 0),a.signal.aborted||(location.href=n.href);return}async function c(s){const d=s.to.href,p={signal:s.signal};if(s.formData){p.method="POST";const w=s.sourceElement instanceof HTMLFormElement?s.sourceElement:s.sourceElement instanceof HTMLElement&&"form"in s.sourceElement?s.sourceElement.form:s.sourceElement?.closest("form");p.body=t!==void 0&&Reflect.get(HTMLFormElement.prototype,"attributes",w).getNamedItem("enctype")?.value==="application/x-www-form-urlencoded"?new URLSearchParams(s.formData):s.formData}const h=await Te(d,p);if(h===null){s.preventDefault();return}if(h.redirected){const w=new URL(h.redirected);if(w.origin!==s.to.origin){s.preventDefault();return}s.to=w}if(C??=new DOMParser,s.newDocument=C.parseFromString(h.html,h.mediaType),s.newDocument.querySelectorAll("noscript").forEach(w=>w.remove()),!s.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!s.formData){s.preventDefault();return}const L=Ee(s.newDocument);L.length&&!s.signal.aborted&&await Promise.all(L)}async function f(){if(g&&g.viewTransition){try{g.viewTransition.skipTransition()}catch{}try{await g.viewTransition.updateCallbackDone}catch{}}return g={transitionSkipped:!1}}const l=await f();if(a.signal.aborted){i===m&&(m=void 0);return}if(document.documentElement.setAttribute(F,a.direction),I)l.viewTransition=document.startViewTransition(async()=>await _(a,o,l,r));else{const s=(async()=>{await Promise.resolve(),await _(a,o,l,r,K())})();l.viewTransition={updateCallbackDone:s,ready:s,finished:new Promise(d=>l.viewTransitionFinished=d),skipTransition:()=>{l.transitionSkipped=!0,document.documentElement.removeAttribute(P)},types:new Set}}l.viewTransition?.updateCallbackDone.finally(async()=>{await Ae(),j(),ve()}),l.viewTransition?.finished.finally(()=>{l.viewTransition=void 0,l===g&&(g=void 0),i===m&&(m=void 0),document.documentElement.removeAttribute(F),document.documentElement.removeAttribute(P)});try{await l.viewTransition?.updateCallbackDone}catch(s){const d=s;console.log("[astro]",d.name,d.message,d.stack)}}async function X(e,t){await z("forward",S,new URL(e,location.href),t??{})}function Re(e){if(!N()&&e.state){location.reload();return}if(e.state===null)return;const t=history.state,n=t.index,o=n>y?"forward":"back";y=n,z(o,S,new URL(location.href),{},t)}const Y=()=>{history.state&&(scrollX!==history.state.scrollX||scrollY!==history.state.scrollY)&&x({scrollX,scrollY})};{if(I||K()!=="none")if(S=new URL(location.href),addEventListener("popstate",Re),addEventListener("load",j),"onscrollend"in window)addEventListener("scrollend",Y);else{let e,t,n,o;const r=()=>{if(o!==history.state?.index){clearInterval(e),e=void 0;return}if(t===scrollY&&n===scrollX){clearInterval(e),e=void 0,Y();return}else t=scrollY,n=scrollX};addEventListener("scroll",()=>{e===void 0&&(o=history.state?.index,t=scrollY,n=scrollX,e=window.setInterval(r,50))},{passive:!0})}for(const e of document.getElementsByTagName("script"))U(e),e.dataset.astroExec=""}const J=new Set,E=new WeakSet;let D,Q,B=!1;function Le(e){B||(B=!0,D??=e?.prefetchAll,Q??=e?.defaultStrategy??"hover",ke(),Pe(),De(),Ie())}function ke(){for(const e of["touchstart","mousedown"])document.body.addEventListener(e,t=>{v(t.target,"tap")&&R(t.target.href,{ignoreSlowConnection:!0})},{passive:!0})}function Pe(){let e;document.body.addEventListener("focusin",o=>{v(o.target,"hover")&&t(o)},{passive:!0}),document.body.addEventListener("focusout",n,{passive:!0}),O(()=>{for(const o of document.getElementsByTagName("a"))E.has(o)||v(o,"hover")&&(E.add(o),o.addEventListener("mouseenter",t,{passive:!0}),o.addEventListener("mouseleave",n,{passive:!0}))});function t(o){const r=o.target.href;e&&clearTimeout(e),e=setTimeout(()=>{R(r)},80)}function n(){e&&(clearTimeout(e),e=0)}}function De(){let e;O(()=>{for(const t of document.getElementsByTagName("a"))E.has(t)||v(t,"viewport")&&(E.add(t),e??=xe(),e.observe(t))})}function xe(){const e=new WeakMap;return new IntersectionObserver((t,n)=>{for(const o of t){const r=o.target,i=e.get(r);o.isIntersecting?(i&&clearTimeout(i),e.set(r,setTimeout(()=>{n.unobserve(r),e.delete(r),R(r.href)},300))):i&&(clearTimeout(i),e.delete(r))}})}function Ie(){O(()=>{for(const e of document.getElementsByTagName("a"))v(e,"load")&&R(e.href)})}function R(e,t){e=e.replace(/#.*/,"");const n=t?.ignoreSlowConnection??!1;if(Ne(e,n))if(J.add(e),document.createElement("link").relList?.supports?.("prefetch")&&t?.with!=="fetch"){const o=document.createElement("link");o.rel="prefetch",o.setAttribute("href",e),document.head.append(o)}else fetch(e,{priority:"low"})}function Ne(e,t){if(!navigator.onLine||!t&&Z())return!1;try{const n=new URL(e,location.href);return location.origin===n.origin&&(location.pathname!==n.pathname||location.search!==n.search)&&!J.has(e)}catch{}return!1}function v(e,t){if(e?.tagName!=="A")return!1;const n=e.dataset.astroPrefetch;return n==="false"?!1:t==="tap"&&(n!=null||D)&&Z()?!0:n==null&&D||n===""?t===Q:n===t}function Z(){if("connection"in navigator){const e=navigator.connection;return e.saveData||/2g/.test(e.effectiveType)}return!1}function O(e){e();let t=!1;document.addEventListener("astro:page-load",()=>{if(!t){t=!0;return}e()})}let T=null;function Oe(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function $(e){return e.dataset.astroReload!==void 0}const Me=e=>e.button&&e.button!==0||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey;(I||Oe()!=="none")&&(document.addEventListener("click",e=>{let t=e.target;if(T=Me(e)?t:null,e.composed&&(t=e.composedPath()[0]),t instanceof Element&&(t=t.closest("a, area")),!(t instanceof HTMLAnchorElement)&&!(t instanceof SVGAElement)&&!(t instanceof HTMLAreaElement))return;const n=t instanceof HTMLElement?t.target:t.target.baseVal,o=t instanceof HTMLElement?t.href:t.href.baseVal,r=new URL(o,location.href).origin;$(t)||t.hasAttribute("download")||!t.href||n&&n!=="_self"||r!==location.origin||T||e.defaultPrevented||(e.preventDefault(),X(o,{history:t.dataset.astroHistory==="replace"?"replace":"auto",sourceElement:t}))}),document.addEventListener("submit",e=>{let t=e.target;const n=e.submitter,o=n&&n===T;if(T=null,t.tagName!=="FORM"||e.defaultPrevented||$(t)||o)return;const r=t,i=new FormData(r,n),u=typeof r.action=="string"?r.action:r.getAttribute("action"),a=typeof r.method=="string"?r.method:r.getAttribute("method");let c=n?.getAttribute("formaction")??u??location.pathname;const f=n?.getAttribute("formmethod")??a??"get";if(f==="dialog"||location.origin!==new URL(c,location.href).origin)return;const l={sourceElement:n??r};if(f==="get"){const s=new URLSearchParams(i),d=new URL(c);d.search=s.toString(),c=d.toString()}else l.formData=i;e.preventDefault(),X(c,l)}),Le({prefetchAll:!0}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o}from"./index.eCxJ45ll.js";import{r as b}from"./index.BQFV5hT1.js";var s={},E;function g(){if(E)return s;E=1;var t=b();return s.createRoot=t.createRoot,s.hydrateRoot=t.hydrateRoot,s}var p=g();const v=({value:t,name:e,hydrate:r=!0})=>{if(!t)return null;const a=r?"astro-slot":"astro-static-slot";return o.createElement(a,{name:e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}})};v.shouldComponentUpdate=()=>!1;var N=v;function C(t){for(const e in t)if(e.startsWith("__reactContainer"))return e}function R(t){let e={};for(const r of t.attributes)e[r.name]=r.value;return t.firstChild===null?o.createElement(t.localName,e):o.createElement(t.localName,e,Array.from(t.childNodes).map(r=>r.nodeType===Node.TEXT_NODE?r.data:r.nodeType===Node.ELEMENT_NODE?R(r):void 0).filter(r=>!!r))}function O(t,e){if(e&&t){let r=[],a=document.createElement("template");a.innerHTML=t;for(let u of a.content.children)r.push(R(u));return r}else return t?o.createElement(N,{value:t}):void 0}let y=new WeakMap;const h=(t,e)=>{let r=y.get(t);return r||(r=e(),y.set(t,r)),r};var H=t=>(e,r,{default:a,...u},{client:A})=>{if(!t.hasAttribute("ssr"))return;const d=t.getAttribute("data-action-key"),l=t.getAttribute("data-action-name"),f=t.getAttribute("data-action-result"),T=d&&l&&f?[JSON.parse(f),d,l]:void 0,_={identifierPrefix:t.getAttribute("prefix"),formState:T};for(const[i,n]of Object.entries(u))r[i]=o.createElement(N,{value:n,name:i});const c=o.createElement(e,r,O(a,t.hasAttribute("data-react-children"))),m=C(t);if(m&&delete t[m],A==="only")return o.startTransition(()=>{h(t,()=>{const n=p.createRoot(t);return t.addEventListener("astro:unmount",()=>n.unmount(),{once:!0}),n}).render(c)});o.startTransition(()=>{h(t,()=>{const n=p.hydrateRoot(t,c,_);return t.addEventListener("astro:unmount",()=>n.unmount(),{once:!0}),n}).render(c)})};export{H as default};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"include": [
|
|
4
|
+
"/*"
|
|
5
|
+
],
|
|
6
|
+
"exclude": [
|
|
7
|
+
"/",
|
|
8
|
+
"/_astro/*",
|
|
9
|
+
"/.assetsignore",
|
|
10
|
+
"/PF-HorizontalLogo-Color.svg",
|
|
11
|
+
"/PF-HorizontalLogo-Reverse.svg",
|
|
12
|
+
"/avatarImg.svg",
|
|
13
|
+
"/avatarImgDark.svg",
|
|
14
|
+
"/favicon.svg",
|
|
15
|
+
"/content/*",
|
|
16
|
+
"/components/*",
|
|
17
|
+
"/get-started/*",
|
|
18
|
+
"/design-foundations/*"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
globalThis.process ??= {}; globalThis.process.env ??= {};
|
|
2
|
+
import './chunks/astro-designed-error-pages_4xWqsa9_.mjs';
|
|
3
|
+
import './chunks/astro/server_BpfPtTmt.mjs';
|
|
4
|
+
import { s as sequence } from './chunks/index_DlGha6WC.mjs';
|
|
5
|
+
|
|
6
|
+
const onRequest$1 = (context, next) => {
|
|
7
|
+
if (context.isPrerendered) {
|
|
8
|
+
context.locals.runtime ??= {
|
|
9
|
+
env: process.env
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
return next();
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const onRequest = sequence(
|
|
16
|
+
onRequest$1,
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
export { onRequest };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { u as useOUIAProps, c as css, s as setBreakpointCssVars, l as formatBreakpointMods, b as createIcon, B as Button } from './Button_BKhHR-ak.mjs';
|
|
1
|
+
globalThis.process ??= {}; globalThis.process.env ??= {};
|
|
2
|
+
import { _ as __rest, u as useOUIAProps, j as jsxRuntimeExports, c as css, s as setBreakpointCssVars, m as formatBreakpointMods, b as createIcon, B as Button } from './Button_ByndGYyw.mjs';
|
|
4
3
|
/* empty css */
|
|
5
|
-
import React from '
|
|
4
|
+
import { R as React } from './index_Dc2aKkl4.mjs';
|
|
6
5
|
|
|
7
6
|
const styles$2 = {
|
|
8
7
|
"content": "pf-v6-c-content",
|
|
@@ -79,7 +78,7 @@ const Content = (_a) => {
|
|
|
79
78
|
const Component = wrappingComponent;
|
|
80
79
|
const ouiaProps = useOUIAProps(Content.displayName, ouiaId, ouiaSafe);
|
|
81
80
|
const isList = ['ul', 'ol', 'dl'].includes(wrappingComponent);
|
|
82
|
-
return (jsx(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(componentStyles[wrappingComponent], isList && isPlainList && styles$2.modifiers.plain, isVisitedLink && styles$2.modifiers.visited, isEditorial && styles$2.modifiers.editorial, className), children: children })));
|
|
81
|
+
return (jsxRuntimeExports.jsx(Component, Object.assign({}, ouiaProps, props, { "data-pf-content": true, className: css(componentStyles[wrappingComponent], isList && isPlainList && styles$2.modifiers.plain, isVisitedLink && styles$2.modifiers.visited, isEditorial && styles$2.modifiers.editorial, className), children: children })));
|
|
83
82
|
};
|
|
84
83
|
Content.displayName = 'Content';
|
|
85
84
|
|
|
@@ -635,14 +634,14 @@ const l_flex_item_Order = {
|
|
|
635
634
|
const Flex = (_a) => {
|
|
636
635
|
var { children = null, className = '', component = 'div', spacer, spaceItems, gap, rowGap, columnGap, grow, shrink, flex, direction, alignItems, alignContent, alignSelf, align, justifyContent, display, fullWidth, flexWrap, order, style } = _a, props = __rest(_a, ["children", "className", "component", "spacer", "spaceItems", "gap", "rowGap", "columnGap", "grow", "shrink", "flex", "direction", "alignItems", "alignContent", "alignSelf", "align", "justifyContent", "display", "fullWidth", "flexWrap", "order", "style"]);
|
|
637
636
|
const Component = component;
|
|
638
|
-
return (jsx(Component, Object.assign({ className: css(styles$1.flex, formatBreakpointMods(spacer, styles$1), formatBreakpointMods(spaceItems, styles$1), formatBreakpointMods(grow, styles$1), formatBreakpointMods(shrink, styles$1), formatBreakpointMods(flex, styles$1), formatBreakpointMods(direction, styles$1), formatBreakpointMods(alignItems, styles$1), formatBreakpointMods(alignContent, styles$1), formatBreakpointMods(alignSelf, styles$1), formatBreakpointMods(align, styles$1), formatBreakpointMods(justifyContent, styles$1), formatBreakpointMods(display, styles$1), formatBreakpointMods(fullWidth, styles$1), formatBreakpointMods(flexWrap, styles$1), formatBreakpointMods(gap, styles$1), formatBreakpointMods(rowGap, styles$1), formatBreakpointMods(columnGap, styles$1), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }, props, { children: children })));
|
|
637
|
+
return (jsxRuntimeExports.jsx(Component, Object.assign({ className: css(styles$1.flex, formatBreakpointMods(spacer, styles$1), formatBreakpointMods(spaceItems, styles$1), formatBreakpointMods(grow, styles$1), formatBreakpointMods(shrink, styles$1), formatBreakpointMods(flex, styles$1), formatBreakpointMods(direction, styles$1), formatBreakpointMods(alignItems, styles$1), formatBreakpointMods(alignContent, styles$1), formatBreakpointMods(alignSelf, styles$1), formatBreakpointMods(align, styles$1), formatBreakpointMods(justifyContent, styles$1), formatBreakpointMods(display, styles$1), formatBreakpointMods(fullWidth, styles$1), formatBreakpointMods(flexWrap, styles$1), formatBreakpointMods(gap, styles$1), formatBreakpointMods(rowGap, styles$1), formatBreakpointMods(columnGap, styles$1), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined }, props, { children: children })));
|
|
639
638
|
};
|
|
640
639
|
Flex.displayName = 'Flex';
|
|
641
640
|
|
|
642
641
|
const FlexItem = (_a) => {
|
|
643
642
|
var { children = null, className = '', component = 'div', spacer, grow, shrink, flex, alignSelf, align, fullWidth, order, style } = _a, props = __rest(_a, ["children", "className", "component", "spacer", "grow", "shrink", "flex", "alignSelf", "align", "fullWidth", "order", "style"]);
|
|
644
643
|
const Component = component;
|
|
645
|
-
return (jsx(Component, Object.assign({}, props, { className: css(formatBreakpointMods(spacer, styles$1), formatBreakpointMods(grow, styles$1), formatBreakpointMods(shrink, styles$1), formatBreakpointMods(flex, styles$1), formatBreakpointMods(alignSelf, styles$1), formatBreakpointMods(align, styles$1), formatBreakpointMods(fullWidth, styles$1), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined, children: children })));
|
|
644
|
+
return (jsxRuntimeExports.jsx(Component, Object.assign({}, props, { className: css(formatBreakpointMods(spacer, styles$1), formatBreakpointMods(grow, styles$1), formatBreakpointMods(shrink, styles$1), formatBreakpointMods(flex, styles$1), formatBreakpointMods(alignSelf, styles$1), formatBreakpointMods(align, styles$1), formatBreakpointMods(fullWidth, styles$1), className), style: style || order ? Object.assign(Object.assign({}, style), setBreakpointCssVars(order, l_flex_item_Order.name)) : undefined, children: children })));
|
|
646
645
|
};
|
|
647
646
|
FlexItem.displayName = 'FlexItem';
|
|
648
647
|
|
|
@@ -658,14 +657,14 @@ const styles = {
|
|
|
658
657
|
const Stack = (_a) => {
|
|
659
658
|
var { hasGutter = false, className = '', children = null, component = 'div' } = _a, props = __rest(_a, ["hasGutter", "className", "children", "component"]);
|
|
660
659
|
const Component = component;
|
|
661
|
-
return (jsx(Component, Object.assign({}, props, { className: css(styles.stack, hasGutter && styles.modifiers.gutter, className), children: children })));
|
|
660
|
+
return (jsxRuntimeExports.jsx(Component, Object.assign({}, props, { className: css(styles.stack, hasGutter && styles.modifiers.gutter, className), children: children })));
|
|
662
661
|
};
|
|
663
662
|
Stack.displayName = 'Stack';
|
|
664
663
|
|
|
665
664
|
const StackItem = (_a) => {
|
|
666
665
|
var { isFilled = false, className = '', children = null, component = 'div' } = _a, props = __rest(_a, ["isFilled", "className", "children", "component"]);
|
|
667
666
|
const Component = component;
|
|
668
|
-
return (jsx(Component, Object.assign({}, props, { className: css(styles.stackItem, isFilled && styles.modifiers.fill, className), children: children })));
|
|
667
|
+
return (jsxRuntimeExports.jsx(Component, Object.assign({}, props, { className: css(styles.stackItem, isFilled && styles.modifiers.fill, className), children: children })));
|
|
669
668
|
};
|
|
670
669
|
StackItem.displayName = 'StackItem';
|
|
671
670
|
|
|
@@ -693,13 +692,13 @@ const AutoLinkHeader = ({
|
|
|
693
692
|
className
|
|
694
693
|
}) => {
|
|
695
694
|
const slug = id || slugger(children);
|
|
696
|
-
return /* @__PURE__ */ jsxs(
|
|
695
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
697
696
|
Flex,
|
|
698
697
|
{
|
|
699
698
|
alignItems: { default: "alignItemsCenter" },
|
|
700
699
|
spaceItems: { default: "spaceItemsSm" },
|
|
701
700
|
children: [
|
|
702
|
-
/* @__PURE__ */ jsx(FlexItem, { children: /* @__PURE__ */ jsxs(
|
|
701
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(FlexItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
703
702
|
Content,
|
|
704
703
|
{
|
|
705
704
|
id: slug,
|
|
@@ -708,7 +707,7 @@ const AutoLinkHeader = ({
|
|
|
708
707
|
tabIndex: -1,
|
|
709
708
|
isEditorial: true,
|
|
710
709
|
children: [
|
|
711
|
-
/* @__PURE__ */ jsx(
|
|
710
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
712
711
|
Button,
|
|
713
712
|
{
|
|
714
713
|
href: `#${slug}`,
|
|
@@ -718,7 +717,7 @@ const AutoLinkHeader = ({
|
|
|
718
717
|
"aria-hidden": true,
|
|
719
718
|
variant: "plain",
|
|
720
719
|
isInline: true,
|
|
721
|
-
children: /* @__PURE__ */ jsx(
|
|
720
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
722
721
|
LinkIcon,
|
|
723
722
|
{
|
|
724
723
|
className: "ws-heading-anchor-icon",
|
|
@@ -731,7 +730,7 @@ const AutoLinkHeader = ({
|
|
|
731
730
|
]
|
|
732
731
|
}
|
|
733
732
|
) }),
|
|
734
|
-
metaText && /* @__PURE__ */ jsx(FlexItem, { children: metaText })
|
|
733
|
+
metaText && /* @__PURE__ */ jsxRuntimeExports.jsx(FlexItem, { children: metaText })
|
|
735
734
|
]
|
|
736
735
|
}
|
|
737
736
|
);
|
|
@@ -1,8 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { Component, useMemo, forwardRef } from 'react';
|
|
1
|
+
globalThis.process ??= {}; globalThis.process.env ??= {};
|
|
2
|
+
import { a as requireReact, r as reactExports } from './index_Dc2aKkl4.mjs';
|
|
4
3
|
/* empty css */
|
|
5
4
|
|
|
5
|
+
/******************************************************************************
|
|
6
|
+
Copyright (c) Microsoft Corporation.
|
|
7
|
+
|
|
8
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9
|
+
purpose with or without fee is hereby granted.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
+
***************************************************************************** */
|
|
19
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
function __rest(s, e) {
|
|
23
|
+
var t = {};
|
|
24
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
25
|
+
t[p] = s[p];
|
|
26
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
27
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
28
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
29
|
+
t[p[i]] = s[p[i]];
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
35
|
+
var e = new Error(message);
|
|
36
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var jsxRuntime = {exports: {}};
|
|
40
|
+
|
|
41
|
+
var reactJsxRuntime_production_min = {};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @license React
|
|
45
|
+
* react-jsx-runtime.production.min.js
|
|
46
|
+
*
|
|
47
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the MIT license found in the
|
|
50
|
+
* LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
var hasRequiredReactJsxRuntime_production_min;
|
|
54
|
+
|
|
55
|
+
function requireReactJsxRuntime_production_min () {
|
|
56
|
+
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
57
|
+
hasRequiredReactJsxRuntime_production_min = 1;
|
|
58
|
+
var f=requireReact(),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
|
|
59
|
+
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
60
|
+
return reactJsxRuntime_production_min;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var hasRequiredJsxRuntime;
|
|
64
|
+
|
|
65
|
+
function requireJsxRuntime () {
|
|
66
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
67
|
+
hasRequiredJsxRuntime = 1;
|
|
68
|
+
{
|
|
69
|
+
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
70
|
+
}
|
|
71
|
+
return jsxRuntime.exports;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var jsxRuntimeExports = requireJsxRuntime();
|
|
75
|
+
|
|
6
76
|
/** Joins args into a className string
|
|
7
77
|
*
|
|
8
78
|
* @param {any} args list of objects, string, or arrays to reduce
|
|
@@ -69,7 +139,7 @@ let currentId = 0;
|
|
|
69
139
|
*/
|
|
70
140
|
function createIcon({ name, xOffset = 0, yOffset = 0, width, height, svgPath }) {
|
|
71
141
|
var _a;
|
|
72
|
-
return _a = class SVGIcon extends Component {
|
|
142
|
+
return _a = class SVGIcon extends reactExports.Component {
|
|
73
143
|
constructor() {
|
|
74
144
|
super(...arguments);
|
|
75
145
|
this.id = `icon-title-${currentId++}`;
|
|
@@ -79,7 +149,7 @@ function createIcon({ name, xOffset = 0, yOffset = 0, width, height, svgPath })
|
|
|
79
149
|
const classes = className ? `pf-v6-svg ${className}` : 'pf-v6-svg';
|
|
80
150
|
const hasTitle = Boolean(title);
|
|
81
151
|
const viewBox = [xOffset, yOffset, width, height].join(' ');
|
|
82
|
-
return (jsxs("svg", Object.assign({ className: classes, viewBox: viewBox, fill: "currentColor", "aria-labelledby": hasTitle ? this.id : null, "aria-hidden": hasTitle ? null : true, role: "img", width: "1em", height: "1em" }, props, { children: [hasTitle && jsx("title", { id: this.id, children: title }), jsx("path", { d: svgPath })] })));
|
|
152
|
+
return (jsxRuntimeExports.jsxs("svg", Object.assign({ className: classes, viewBox: viewBox, fill: "currentColor", "aria-labelledby": hasTitle ? this.id : null, "aria-hidden": hasTitle ? null : true, role: "img", width: "1em", height: "1em" }, props, { children: [hasTitle && jsxRuntimeExports.jsx("title", { id: this.id, children: title }), jsxRuntimeExports.jsx("path", { d: svgPath })] })));
|
|
83
153
|
}
|
|
84
154
|
},
|
|
85
155
|
_a.displayName = name,
|
|
@@ -463,7 +533,7 @@ const useOUIAProps = (componentType, id, ouiaSafe = true, variant) => ({
|
|
|
463
533
|
* @param {string} variant Optional variant to add to the generated ID
|
|
464
534
|
*/
|
|
465
535
|
const useOUIAId = (componentType, id, variant) => {
|
|
466
|
-
const defaultOUIAId = useMemo(() => getDefaultOUIAId(componentType, variant), [componentType, variant]);
|
|
536
|
+
const defaultOUIAId = reactExports.useMemo(() => getDefaultOUIAId(componentType, variant), [componentType, variant]);
|
|
467
537
|
return id !== null && id !== void 0 ? id : defaultOUIAId;
|
|
468
538
|
};
|
|
469
539
|
/**
|
|
@@ -557,7 +627,7 @@ var spinnerSize;
|
|
|
557
627
|
})(spinnerSize || (spinnerSize = {}));
|
|
558
628
|
const Spinner = (_a) => {
|
|
559
629
|
var { className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', diameter, isInline = false, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest(_a, ["className", "size", 'aria-valuetext', "diameter", "isInline", 'aria-label', 'aria-labelledBy']);
|
|
560
|
-
return (jsx("svg", Object.assign({ className: css(styles$1.spinner, isInline ? styles$1.modifiers.inline : styles$1.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText, viewBox: "0 0 100 100" }, (diameter && { style: { [c_spinner_diameter.name]: diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props, { children: jsx("circle", { className: styles$1.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" }) })));
|
|
630
|
+
return (jsxRuntimeExports.jsx("svg", Object.assign({ className: css(styles$1.spinner, isInline ? styles$1.modifiers.inline : styles$1.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText, viewBox: "0 0 100 100" }, (diameter && { style: { [c_spinner_diameter.name]: diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props, { children: jsxRuntimeExports.jsx("circle", { className: styles$1.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" }) })));
|
|
561
631
|
};
|
|
562
632
|
Spinner.displayName = 'Spinner';
|
|
563
633
|
|
|
@@ -572,7 +642,7 @@ const styles = {
|
|
|
572
642
|
|
|
573
643
|
const Badge = (_a) => {
|
|
574
644
|
var { isRead = false, isDisabled = false, className = '', children = '', screenReaderText } = _a, props = __rest(_a, ["isRead", "isDisabled", "className", "children", "screenReaderText"]);
|
|
575
|
-
return (jsxs("span", Object.assign({}, props, { className: css(styles.badge, (isRead ? styles.modifiers.read : styles.modifiers.unread), isDisabled && styles.modifiers.disabled, className), children: [children, screenReaderText && jsx("span", { className: "pf-v6-screen-reader", children: screenReaderText })] })));
|
|
645
|
+
return (jsxRuntimeExports.jsxs("span", Object.assign({}, props, { className: css(styles.badge, (isRead ? styles.modifiers.read : styles.modifiers.unread), isDisabled && styles.modifiers.disabled, className), children: [children, screenReaderText && jsxRuntimeExports.jsx("span", { className: "pf-v6-screen-reader", children: screenReaderText })] })));
|
|
576
646
|
};
|
|
577
647
|
Badge.displayName = 'Badge';
|
|
578
648
|
|
|
@@ -627,13 +697,13 @@ const ButtonBase = (_a) => {
|
|
|
627
697
|
return 0;
|
|
628
698
|
}
|
|
629
699
|
};
|
|
630
|
-
const _icon = icon && (jsx("span", { className: css(styles$2.buttonIcon, children && styles$2.modifiers[isIconAlignedAtEnd ? 'end' : 'start']), children: icon }));
|
|
631
|
-
const _children = children && jsx("span", { className: css('pf-v6-c-button__text'), children: children });
|
|
700
|
+
const _icon = icon && (jsxRuntimeExports.jsx("span", { className: css(styles$2.buttonIcon, children && styles$2.modifiers[isIconAlignedAtEnd ? 'end' : 'start']), children: icon }));
|
|
701
|
+
const _children = children && jsxRuntimeExports.jsx("span", { className: css('pf-v6-c-button__text'), children: children });
|
|
632
702
|
// We only want to render the aria-disabled attribute when true, similar to the disabled attribute natively.
|
|
633
703
|
const shouldRenderAriaDisabled = isAriaDisabled || (!isButtonElement && isDisabled);
|
|
634
|
-
return (jsxs(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), (shouldRenderAriaDisabled && { 'aria-disabled': true }), { "aria-label": ariaLabel, className: css(styles$2.button, styles$2.modifiers[variant], isBlock && styles$2.modifiers.block, isDisabled && !isButtonElement && styles$2.modifiers.disabled, isAriaDisabled && styles$2.modifiers.ariaDisabled, isClicked && styles$2.modifiers.clicked, isInline && variant === ButtonVariant.link && styles$2.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && styles$2.modifiers.danger, isLoading !== null && variant !== ButtonVariant.plain && styles$2.modifiers.progress, isLoading && styles$2.modifiers.inProgress, hasNoPadding && variant === ButtonVariant.plain && styles$2.modifiers.noPadding, variant === ButtonVariant.stateful && styles$2.modifiers[state], size === ButtonSize.sm && styles$2.modifiers.small, size === ButtonSize.lg && styles$2.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : role, ref: innerRef }, ouiaProps, { children: [isLoading && (jsx("span", { className: css(styles$2.buttonProgress), children: jsx(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }) })), isIconAlignedAtEnd ? (jsxs(Fragment, { children: [_children, _icon] })) : (jsxs(Fragment, { children: [_icon, _children] })), countOptions && (jsx("span", { className: css(styles$2.buttonCount, countOptions.className), children: jsx(Badge, { isRead: countOptions.isRead, isDisabled: isDisabled, children: countOptions.count }) }))] })));
|
|
704
|
+
return (jsxRuntimeExports.jsxs(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), (shouldRenderAriaDisabled && { 'aria-disabled': true }), { "aria-label": ariaLabel, className: css(styles$2.button, styles$2.modifiers[variant], isBlock && styles$2.modifiers.block, isDisabled && !isButtonElement && styles$2.modifiers.disabled, isAriaDisabled && styles$2.modifiers.ariaDisabled, isClicked && styles$2.modifiers.clicked, isInline && variant === ButtonVariant.link && styles$2.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && styles$2.modifiers.danger, isLoading !== null && variant !== ButtonVariant.plain && styles$2.modifiers.progress, isLoading && styles$2.modifiers.inProgress, hasNoPadding && variant === ButtonVariant.plain && styles$2.modifiers.noPadding, variant === ButtonVariant.stateful && styles$2.modifiers[state], size === ButtonSize.sm && styles$2.modifiers.small, size === ButtonSize.lg && styles$2.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : role, ref: innerRef }, ouiaProps, { children: [isLoading && (jsxRuntimeExports.jsx("span", { className: css(styles$2.buttonProgress), children: jsxRuntimeExports.jsx(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }) })), isIconAlignedAtEnd ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [_children, _icon] })) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [_icon, _children] })), countOptions && (jsxRuntimeExports.jsx("span", { className: css(styles$2.buttonCount, countOptions.className), children: jsxRuntimeExports.jsx(Badge, { isRead: countOptions.isRead, isDisabled: isDisabled, children: countOptions.count }) }))] })));
|
|
635
705
|
};
|
|
636
|
-
const Button = forwardRef((props, ref) => jsx(ButtonBase, Object.assign({ innerRef: ref }, props)));
|
|
706
|
+
const Button = reactExports.forwardRef((props, ref) => jsxRuntimeExports.jsx(ButtonBase, Object.assign({ innerRef: ref }, props)));
|
|
637
707
|
Button.displayName = 'Button';
|
|
638
708
|
|
|
639
|
-
export { Button as B, CheckCircleIcon as C, ExclamationTriangleIcon as E, InfoCircleIcon as I, KeyTypes as K, Spinner as S, ValidatedOptions as V, canUseDOM as a, createIcon as b, css as c, ExclamationCircleIcon as d, getOUIAProps as e, statusIcons as f, getDefaultOUIAId as g, ButtonVariant as h, Badge as i,
|
|
709
|
+
export { Button as B, CheckCircleIcon as C, ExclamationTriangleIcon as E, InfoCircleIcon as I, KeyTypes as K, Spinner as S, ValidatedOptions as V, __rest as _, canUseDOM as a, createIcon as b, css as c, ExclamationCircleIcon as d, getOUIAProps as e, statusIcons as f, getDefaultOUIAId as g, ButtonVariant as h, Badge as i, jsxRuntimeExports as j, getVerticalBreakpoint as k, getBreakpoint as l, formatBreakpointMods as m, t_global_breakpoint_2xl as n, t_global_breakpoint_xl as o, t_global_breakpoint_lg as p, t_global_breakpoint_md as q, toCamel as r, setBreakpointCssVars as s, trimLeft as t, useOUIAProps as u, getUniqueId as v, BellIcon as w, getLanguageDirection as x, clearTimeouts as y };
|
package/dist/{server/chunks/CSSTable_B8tlH3gz.mjs → _worker.js/chunks/CSSTable_DAbso55e.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
3
|
-
import { S as Stack, a as StackItem, A as AutoLinkHeader } from './
|
|
1
|
+
globalThis.process ??= {}; globalThis.process.env ??= {};
|
|
2
|
+
import { c as createComponent, a as createAstro, r as renderComponent, b as renderTemplate } from './astro/server_BpfPtTmt.mjs';
|
|
3
|
+
import { S as Stack, a as StackItem, A as AutoLinkHeader } from './AutoLinkHeader_xh_mBOfs.mjs';
|
|
4
4
|
|
|
5
5
|
const $$Astro = createAstro();
|
|
6
6
|
const $$CSSTable = createComponent(($$result, $$props, $$slots) => {
|