@patternfly/patternfly-doc-core 1.5.0 → 1.6.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.
Files changed (69) hide show
  1. package/.astro/collections/examples.schema.json +40 -0
  2. package/.astro/content-modules.mjs +4 -1
  3. package/.astro/content.d.ts +20 -1
  4. package/astro.config.mjs +2 -2
  5. package/declarations.d.ts +2 -0
  6. package/dist/client/_astro/LiveExample.B7IM_dLQ.css +1 -0
  7. package/dist/client/_astro/LiveExample.Df-EUsee.js +40 -0
  8. package/dist/client/_astro/Navigation.CabjIYg4.js +1 -0
  9. package/dist/client/_astro/PageContext.D1pNBMhh.js +9 -0
  10. package/dist/client/_astro/PageSidebarBody.Y-7d6zQM.js +1 -0
  11. package/dist/client/_astro/PageToggle.CbfM9bJB.js +1 -0
  12. package/dist/client/_astro/PageToggleButton.CZ3xPbcc.js +1 -0
  13. package/dist/client/_astro/Toolbar.9-YSFh3P.js +1 -0
  14. package/dist/client/_astro/ToolbarContent.BXdFKbs9.js +1 -0
  15. package/dist/client/_astro/_page_.B8cBYNKa.css +1 -0
  16. package/dist/client/_astro/_page_.CtheD08_.css +1 -0
  17. package/dist/client/_astro/_tab_.DxJDkZPc.css +1 -0
  18. package/dist/client/_astro/_tab_.YrfmckTJ.css +1 -0
  19. package/dist/client/_astro/client.CTJTt880.js +1 -0
  20. package/dist/client/_astro/divider.DjbDHO_6.js +1 -0
  21. package/dist/client/_astro/index.Dhi-S4Ah.js +24 -0
  22. package/dist/client/_astro/index.Dkaqzkgy.js +9 -0
  23. package/dist/client/_astro/page.CDtWFZb5.js +1 -0
  24. package/dist/client/components/accordion/index.html +85 -0
  25. package/dist/client/design-foundations/typography/index.html +10 -8
  26. package/dist/client/design-foundations/usage-and-behavior/index.html +10 -8
  27. package/dist/client/get-started/contribute/index.html +10 -8
  28. package/dist/client/index.html +5 -3
  29. package/dist/server/_@astrojs-ssr-adapter.mjs +1 -1
  30. package/dist/server/chunks/{PropsTables_MQNZVYdD.mjs → PropsTables_IgCNCQTX.mjs} +147 -213
  31. package/dist/server/chunks/{_@astrojs-ssr-adapter_8jk9s5dg.mjs → _@astrojs-ssr-adapter_CbICuCdt.mjs} +2 -2
  32. package/dist/server/chunks/{_astro_assets_CmxVRFAY.mjs → _astro_assets_DaYumpRZ.mjs} +2 -2
  33. package/dist/server/chunks/_astro_data-layer-content_Ni7IDnLe.mjs +1 -0
  34. package/dist/server/chunks/{angle-down-icon_BNJvzYv-.mjs → angle-down-icon_C5YQ7k8s.mjs} +163 -213
  35. package/dist/server/chunks/astro/{server_zRMEhmuT.mjs → server_Cl9jPh4p.mjs} +179 -89
  36. package/dist/server/chunks/{astro-designed-error-pages_DRBnGamN.mjs → astro-designed-error-pages_BFveJFnQ.mjs} +1 -1
  37. package/dist/server/chunks/content-modules_BzUEG69n.mjs +1 -0
  38. package/dist/server/chunks/{sharp_BAxaBZQw.mjs → sharp_CbOL3WDk.mjs} +2 -2
  39. package/dist/server/entry.mjs +3 -3
  40. package/dist/server/{manifest_7YAgSoyv.mjs → manifest_DoNTQyvZ.mjs} +3 -3
  41. package/dist/server/pages/_image.astro.mjs +1 -1
  42. package/dist/server/renderers.mjs +63 -14
  43. package/package.json +5 -2
  44. package/src/components/Content.tsx +61 -0
  45. package/src/components/ExampleToolbar.tsx +296 -0
  46. package/src/components/LiveExample.astro +7 -0
  47. package/src/components/LiveExample.tsx +42 -0
  48. package/src/content.ts +2 -1
  49. package/src/pages/[section]/[page]/[...tab].astro +97 -39
  50. package/textContent/examples/Accordion/Accordion.mdx +45 -0
  51. package/textContent/examples/Accordion/AccordionBordered.tsx +141 -0
  52. package/textContent/examples/Accordion/AccordionDefinitionList.tsx +102 -0
  53. package/textContent/examples/Accordion/AccordionFixedWithMultipleExpandBehavior.tsx +128 -0
  54. package/textContent/examples/Accordion/AccordionSingleExpandBehavior.tsx +118 -0
  55. package/textContent/examples/Accordion/AccordionToggleIconAtStart.tsx +118 -0
  56. package/dist/client/_astro/Button.C3_jB5tC.js +0 -9
  57. package/dist/client/_astro/Navigation.CULUlMEB.js +0 -1
  58. package/dist/client/_astro/PageContext.C7BqCh9N.js +0 -1
  59. package/dist/client/_astro/PageToggle.DDEjruql.js +0 -1
  60. package/dist/client/_astro/Toolbar.TAdHxLSQ.js +0 -1
  61. package/dist/client/_astro/_page_.CXyz_BEo.css +0 -1
  62. package/dist/client/_astro/_page_.DVvr_Mfl.css +0 -1
  63. package/dist/client/_astro/_page_.SnUmZn2y.css +0 -1
  64. package/dist/client/_astro/client.CeeiqVaE.js +0 -1
  65. package/dist/client/_astro/divider.BSD-oFoh.js +0 -1
  66. package/dist/client/_astro/index.CTH3fVMn.js +0 -32
  67. package/dist/client/_astro/page.B65lVdBS.js +0 -1
  68. /package/dist/server/chunks/{_astro_data-layer-content_DDGBHvtb.mjs → Accordion_CGgMUho2.mjs} +0 -0
  69. /package/dist/server/chunks/{content-modules_Dz-S_Wwv.mjs → Accordion_DlM2LvlF.mjs} +0 -0
@@ -0,0 +1,40 @@
1
+ {
2
+ "$ref": "#/definitions/examples",
3
+ "definitions": {
4
+ "examples": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string"
9
+ },
10
+ "section": {
11
+ "type": "string"
12
+ },
13
+ "subsection": {
14
+ "type": "string"
15
+ },
16
+ "title": {
17
+ "type": "string"
18
+ },
19
+ "propComponents": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "string"
23
+ }
24
+ },
25
+ "tab": {
26
+ "type": "string"
27
+ },
28
+ "$schema": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "required": [
33
+ "id",
34
+ "section"
35
+ ],
36
+ "additionalProperties": false
37
+ }
38
+ },
39
+ "$schema": "http://json-schema.org/draft-07/schema#"
40
+ }
@@ -1 +1,4 @@
1
- export default new Map();
1
+
2
+ export default new Map([
3
+ ["textContent/examples/Accordion/Accordion.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=textContent%2Fexamples%2FAccordion%2FAccordion.mdx&astroContentModuleFlag=true")]]);
4
+
@@ -1,3 +1,14 @@
1
+ declare module 'astro:content' {
2
+ interface Render {
3
+ '.mdx': Promise<{
4
+ Content: import('astro').MarkdownInstance<{}>['Content'];
5
+ headings: import('astro').MarkdownHeading[];
6
+ remarkPluginFrontmatter: Record<string, any>;
7
+ components: import('astro').MDXInstance<{}>['components'];
8
+ }>;
9
+ }
10
+ }
11
+
1
12
  declare module 'astro:content' {
2
13
  export interface RenderResult {
3
14
  Content: import('astro/runtime/server/index.js').AstroComponentFactory;
@@ -147,7 +158,15 @@ declare module 'astro:content' {
147
158
  };
148
159
 
149
160
  type DataEntryMap = {
150
- "textContent": Record<string, {
161
+ "examples": Record<string, {
162
+ id: string;
163
+ body?: string;
164
+ collection: "examples";
165
+ data: InferEntrySchema<"examples">;
166
+ rendered?: RenderedContent;
167
+ filePath?: string;
168
+ }>;
169
+ "textContent": Record<string, {
151
170
  id: string;
152
171
  body?: string;
153
172
  collection: "textContent";
package/astro.config.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  // @ts-check
2
2
  import { defineConfig } from 'astro/config';
3
3
  import react from '@astrojs/react';
4
+ import mdx from '@astrojs/mdx';
4
5
 
5
6
  import node from '@astrojs/node';
6
7
 
7
8
  // https://astro.build/config
8
9
  export default defineConfig({
9
- integrations: [react()],
10
-
10
+ integrations: [react(), mdx()],
11
11
  vite: {
12
12
  ssr: {
13
13
  noExternal: ["@patternfly/*", "react-dropzone"],
@@ -0,0 +1,2 @@
1
+ declare module '@patternfly/documentation-framework/components/example/exampleToolbar'
2
+ declare module '@patternfly/ast-helpers'
@@ -0,0 +1 @@
1
+ .pf-v6-c-code-editor{--pf-v6-c-code-editor__controls--PaddingInlineStart: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__controls--Gap: var(--pf-t--global--spacer--gap--action-to-action--plain);--pf-v6-c-code-editor__header--before--BorderBlockEndWidth: var(--pf-t--global--border--width--box--default);--pf-v6-c-code-editor__header--before--BorderBlockEndColor: var(--pf-t--global--border--color--default);--pf-v6-c-code-editor__header-content--BackgroundColor: var(--pf-t--global--background--color--secondary--default);--pf-v6-c-code-editor__header-content--m-plain--BackgroundColor: var(--pf-t--global--background--color--primary--default);--pf-v6-c-code-editor__header-content--PaddingBlockStart: var(--pf-t--global--spacer--xs);--pf-v6-c-code-editor__header-content--PaddingBlockEnd: var(--pf-t--global--spacer--xs);--pf-v6-c-code-editor__header-content--PaddingInlineStart: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__header-content--PaddingInlineEnd: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__header-content--BorderStartStartRadius: var(--pf-t--global--border--radius--medium);--pf-v6-c-code-editor__header-content--BorderStartEndRadius: var(--pf-t--global--border--radius--medium);--pf-v6-c-code-editor__upload--PaddingInlineStart: var(--pf-t--global--spacer--md);--pf-v6-c-code-editor__upload--PaddingInlineEnd: var(--pf-t--global--spacer--md);--pf-v6-c-code-editor__upload--PaddingBlockStart: var(--pf-t--global--spacer--md);--pf-v6-c-code-editor__upload--PaddingBlockEnd: var(--pf-t--global--spacer--md);--pf-v6-c-code-editor__upload--BorderRadius: var(--pf-t--global--border--radius--medium);--pf-v6-c-code-editor__main--BorderColor: var(--pf-t--global--border--color--default);--pf-v6-c-code-editor__main--BorderWidth: var(--pf-t--global--border--width--box--default);--pf-v6-c-code-editor__main--BorderEndStartRadius: var(--pf-t--global--border--radius--medium);--pf-v6-c-code-editor__main--BorderEndEndRadius: var(--pf-t--global--border--radius--medium);--pf-v6-c-code-editor__main--BackgroundColor: var(--pf-t--global--background--color--primary--default);--pf-v6-c-code-editor--m-read-only__main--BackgroundColor: var(--pf-t--global--background--color--secondary--default);--pf-v6-c-code-editor__upload--before--BorderWidth: 0;--pf-v6-c-code-editor__upload--before--BorderColor: transparent;--pf-v6-c-code-editor__main--m-drag-hover--before--BorderWidth: var(--pf-t--global--border--width--divider--hover);--pf-v6-c-code-editor__main--m-drag-hover--before--BorderColor: var( --pf-t--global--border--color--clicked);--pf-v6-c-code-editor__main--m-drag-hover--after--BackgroundColor: var(--pf-t--global--background--color--primary--default);--pf-v6-c-code-editor__main--m-drag-hover--after--Opacity: .1;--pf-v6-c-code-editor__code--PaddingBlockStart: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__code--PaddingInlineEnd: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__code--PaddingBlockEnd: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__code--PaddingInlineStart: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__code-pre--FontSize: var(--pf-t--global--font--size--sm);--pf-v6-c-code-editor__code-pre--FontFamily: var(--pf-t--global--font--family--mono);--pf-v6-c-code-editor__header-main--PaddingInlineEnd: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__header-main--PaddingInlineStart: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__tab--BackgroundColor: var(--pf-t--global--background--color--primary--default);--pf-v6-c-code-editor__tab--Color: var(--pf-t--global--text--color--subtle);--pf-v6-c-code-editor__tab--PaddingBlockStart: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__tab--PaddingInlineEnd: var( --pf-t--global--spacer--sm);--pf-v6-c-code-editor__tab--PaddingBlockEnd: var(--pf-t--global--spacer--sm);--pf-v6-c-code-editor__tab--PaddingInlineStart: var( --pf-t--global--spacer--sm);--pf-v6-c-code-editor__tab--BorderBlockStartWidth: var(--pf-t--global--border--width--box--default);--pf-v6-c-code-editor__tab--BorderInlineEndWidth: var(--pf-t--global--border--width--box--default);--pf-v6-c-code-editor__tab--BorderBlockEndWidth: 0;--pf-v6-c-code-editor__tab--BorderInlineStartWidth: var(--pf-t--global--border--width--box--default);--pf-v6-c-code-editor__tab--BorderColor: var(--pf-t--global--border--color--default);--pf-v6-c-code-editor__tab--BorderStartEndRadius: var(--pf-t--global--border--radius--medium);--pf-v6-c-code-editor__tab-icon--text--MarginInlineStart: var(--pf-t--global--spacer--sm)}.pf-v6-c-code-editor{display:flex;flex-direction:column}.pf-v6-c-code-editor.pf-m-read-only{--pf-v6-c-code-editor__main--BackgroundColor: var(--pf-v6-c-code-editor--m-read-only__main--BackgroundColor)}.pf-v6-c-code-editor.pf-m-full-height{height:100%}.pf-v6-c-code-editor__container{display:flex;flex-direction:column;flex-grow:1}.pf-v6-c-code-editor__header{position:relative;display:flex}.pf-v6-c-code-editor__header:before{position:absolute;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;pointer-events:none;content:"";border-block-end:var(--pf-v6-c-code-editor__header--before--BorderBlockEndWidth) solid var(--pf-v6-c-code-editor__header--before--BorderBlockEndColor)}.pf-v6-c-code-editor__header.pf-m-plain{--pf-v6-c-code-editor__header-content--BackgroundColor: var(--pf-v6-c-code-editor__header-content--m-plain--BackgroundColor)}.pf-v6-c-code-editor__header-content{display:flex;flex:1;align-items:flex-end;padding-block-start:var(--pf-v6-c-code-editor__header-content--PaddingBlockStart);padding-block-end:var(--pf-v6-c-code-editor__header-content--PaddingBlockEnd);padding-inline-start:var(--pf-v6-c-code-editor__header-content--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-code-editor__header-content--PaddingInlineEnd);background-color:var(--pf-v6-c-code-editor__header-content--BackgroundColor);border-start-start-radius:var(--pf-v6-c-code-editor__header-content--BorderStartStartRadius)}.pf-v6-c-code-editor__header-content:last-child{border-start-end-radius:var(--pf-v6-c-code-editor__header-content--BorderStartEndRadius)}.pf-v6-c-code-editor__controls{display:flex;gap:var(--pf-v6-c-code-editor__controls--Gap);align-items:flex-start}.pf-v6-c-code-editor__header-main{flex-grow:1;align-self:center;padding-inline-start:var(--pf-v6-c-code-editor__header-main--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-code-editor__header-main--PaddingInlineEnd)}.pf-v6-c-code-editor__upload{position:relative;padding-block-start:var(--pf-v6-c-code-editor__upload--PaddingBlockStart);padding-block-end:var(--pf-v6-c-code-editor__upload--PaddingBlockEnd);padding-inline-start:var(--pf-v6-c-code-editor__upload--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-code-editor__upload--PaddingInlineEnd)}.pf-v6-c-code-editor__upload:before{position:absolute;inset-block-start:var(--pf-v6-c-code-editor__upload--PaddingBlockStart);inset-block-end:var(--pf-v6-c-code-editor__upload--PaddingBlockEnd);inset-inline-start:var(--pf-v6-c-code-editor__upload--PaddingInlineStart);inset-inline-end:var(--pf-v6-c-code-editor__upload--PaddingInlineEnd);content:"";border:var(--pf-v6-c-code-editor__upload--before--BorderWidth) dashed var(--pf-v6-c-code-editor__upload--before--BorderColor);border-radius:var(--pf-v6-c-code-editor__upload--BorderRadius)}.pf-v6-c-code-editor__main{position:relative;flex-grow:1;color:var(--pf-v6-c-code-editor__main--Color, inherit);background-color:var(--pf-v6-c-code-editor__main--BackgroundColor);border:var(--pf-v6-c-code-editor__main--BorderWidth) solid;border-color:var(--pf-v6-c-code-editor__main--BorderColor);border-end-start-radius:var(--pf-v6-c-code-editor__main--BorderEndStartRadius);border-end-end-radius:var(--pf-v6-c-code-editor__main--BorderEndEndRadius)}.pf-v6-c-code-editor__main.pf-m-drag-hover{--pf-v6-c-code-editor__upload--before--BorderWidth: var(--pf-v6-c-code-editor__main--m-drag-hover--before--BorderWidth);--pf-v6-c-code-editor__upload--before--BorderColor: var(--pf-v6-c-code-editor__main--m-drag-hover--before--BorderColor)}.pf-v6-c-code-editor__main .monaco-editor{background-color:var(--pf-v6-c-code-editor__main--BackgroundColor)}.pf-v6-c-code-editor__main a.label-name{text-decoration-line:none}.pf-v6-c-code-editor__header+.pf-v6-c-code-editor__main{border-block-start-width:0}.pf-v6-c-code-editor__code{position:relative;height:100%;padding-block-start:var(--pf-v6-c-code-editor__code--PaddingBlockStart);padding-block-end:var(--pf-v6-c-code-editor__code--PaddingBlockEnd);padding-inline-start:var(--pf-v6-c-code-editor__code--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-code-editor__code--PaddingInlineEnd)}.pf-v6-c-code-editor__code .pf-v6-c-code-editor__code-pre{font-family:var(--pf-v6-c-code-editor__code-pre--FontFamily);font-size:var(--pf-v6-c-code-editor__code-pre--FontSize);white-space:pre-wrap}.pf-v6-c-code-editor__tab{position:relative;display:flex;align-items:center;padding-block-start:var(--pf-v6-c-code-editor__tab--PaddingBlockStart);padding-block-end:var(--pf-v6-c-code-editor__tab--PaddingBlockEnd);padding-inline-start:var(--pf-v6-c-code-editor__tab--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-code-editor__tab--PaddingInlineEnd);color:var(--pf-v6-c-code-editor__tab--Color);background-color:var(--pf-v6-c-code-editor__tab--BackgroundColor);border-color:var(--pf-v6-c-code-editor__tab--BorderColor);border-style:solid;border-block-start-width:var(--pf-v6-c-code-editor__tab--BorderBlockStartWidth);border-block-end-width:var(--pf-v6-c-code-editor__tab--BorderBlockEndWidth);border-inline-start-width:var(--pf-v6-c-code-editor__tab--BorderInlineStartWidth);border-inline-end-width:var(--pf-v6-c-code-editor__tab--BorderInlineEndWidth);border-start-end-radius:var(--pf-v6-c-code-editor__tab--BorderStartEndRadius)}.pf-v6-c-code-editor__tab-icon+.pf-v6-c-code-editor__tab-text{margin-inline-start:var(--pf-v6-c-code-editor__tab-icon--text--MarginInlineStart)}