@patternfly/patternfly-doc-core 1.6.0 → 1.7.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/collections/examples.schema.json +16 -0
- package/.astro/collections/textContent.schema.json +16 -0
- package/dist/client/_astro/{PageContext.D1pNBMhh.js → Button.IBWho7ny.js} +2 -2
- package/dist/client/_astro/CSSTable.DHtMmTtQ.js +1185 -0
- package/dist/client/_astro/LiveExample.CwKQ5TSc.js +33 -0
- package/dist/client/_astro/Navigation.BSSYIa2f.js +1 -0
- package/dist/client/_astro/PageContext.ipir86Hm.js +1 -0
- package/dist/client/_astro/PageSidebarBody.tzSXGYXP.js +1 -0
- package/dist/client/_astro/PageToggle.C6_rp-Bm.js +1 -0
- package/dist/client/_astro/PageToggleButton.CagcouJB.js +1 -0
- package/dist/client/_astro/SearchInput.BjY-zTwj.js +1 -0
- package/dist/client/_astro/Toolbar.D4TQG77s.js +1 -0
- package/dist/client/_astro/ToolbarContent.DzYW_pmy.js +1 -0
- package/dist/client/_astro/_page_.BWicMEzd.css +1 -0
- package/dist/client/_astro/_page_.Chv_bGyU.css +1 -0
- package/dist/client/_astro/{client.CTJTt880.js → client.zs76E0tG.js} +1 -1
- package/dist/client/_astro/divider.DTvtnAAt.js +1 -0
- package/dist/client/_astro/help-icon.CDKTE3GW.js +8 -0
- package/dist/client/_astro/{index.Dhi-S4Ah.js → index.BQFV5hT1.js} +1 -1
- package/dist/client/_astro/{index.Dkaqzkgy.js → index.eCxJ45ll.js} +2 -2
- package/dist/client/_astro/page.BTC3Kf3x.js +1 -0
- package/dist/client/components/accordion/index.html +37 -12
- package/dist/client/design-foundations/typography/index.html +33 -8
- package/dist/client/design-foundations/usage-and-behavior/index.html +33 -8
- package/dist/client/get-started/contribute/index.html +33 -8
- package/dist/client/index.html +3 -4
- package/dist/server/chunks/Button_DVSwQ8oX.mjs +639 -0
- package/dist/server/chunks/CSSTable_CG80uW98.mjs +740 -0
- package/dist/server/chunks/CSSTable_Dj2CroFz.mjs +4 -0
- package/dist/server/chunks/{PropsTables_IgCNCQTX.mjs → PropsTables_DUo7F9VR.mjs} +36 -47
- package/dist/server/chunks/Stack_Xm3fJVbK.mjs +22 -0
- package/dist/server/chunks/{angle-down-icon_C5YQ7k8s.mjs → angle-down-icon_DtGGiMR5.mjs} +5 -637
- package/dist/server/entry.mjs +3 -2
- package/dist/server/{manifest_DoNTQyvZ.mjs → manifest_Dpwo8Jjv.mjs} +1 -1
- package/jest.config.ts +1 -1
- package/package.json +1 -1
- package/src/components/AutoLinkHeader.tsx +56 -0
- package/src/components/CSSSearch.tsx +33 -0
- package/src/components/CSSTable.astro +33 -0
- package/src/components/CSSTable.tsx +268 -0
- package/src/content.config.ts +10 -3
- package/src/layouts/Main.astro +12 -8
- package/src/pages/[section]/[...page].astro +16 -6
- package/src/pages/[section]/[page]/[...tab].astro +12 -3
- package/src/pages/index.astro +0 -1
- package/src/styles/global.scss +47 -1
- package/src/utils/index.ts +1 -0
- package/src/utils/slugger.ts +14 -0
- package/textContent/contribute.md +19 -13
- package/dist/client/_astro/LiveExample.Df-EUsee.js +0 -40
- package/dist/client/_astro/Navigation.CabjIYg4.js +0 -1
- package/dist/client/_astro/PageSidebarBody.Y-7d6zQM.js +0 -1
- package/dist/client/_astro/PageToggle.CbfM9bJB.js +0 -1
- package/dist/client/_astro/PageToggleButton.CZ3xPbcc.js +0 -1
- package/dist/client/_astro/Toolbar.9-YSFh3P.js +0 -1
- package/dist/client/_astro/ToolbarContent.BXdFKbs9.js +0 -1
- package/dist/client/_astro/_page_.B8cBYNKa.css +0 -1
- package/dist/client/_astro/_tab_.YrfmckTJ.css +0 -1
- package/dist/client/_astro/divider.DjbDHO_6.js +0 -1
- package/dist/client/_astro/page.CDtWFZb5.js +0 -1
- /package/dist/client/_astro/{_tab_.DxJDkZPc.css → _page_.DxJDkZPc.css} +0 -0
- /package/dist/server/chunks/{_astro_data-layer-content_Ni7IDnLe.mjs → _astro_data-layer-content_1EAcQtZj.mjs} +0 -0
package/src/styles/global.scss
CHANGED
|
@@ -1 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
.circle {
|
|
2
|
+
height: 1em;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
aspect-ratio: 1 / 1;
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
border: var(--pf-t--global--border--width--regular) solid
|
|
7
|
+
var(--pf-t--global--background--color--inverse--default);
|
|
8
|
+
box-shadow: var(--pf-t--global--box-shadow--sm);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.rotate-90-deg {
|
|
12
|
+
transform: rotate(90deg);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ws-heading {
|
|
16
|
+
position: relative;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ws-heading-anchor {
|
|
20
|
+
color: var(--pf-t--global--icon--color--regular);
|
|
21
|
+
transform: translate(calc(-100% - var(--pf-t--global--spacer--xs)), -50%);
|
|
22
|
+
opacity: 0;
|
|
23
|
+
position: absolute;
|
|
24
|
+
left: 0;
|
|
25
|
+
top: 50%;
|
|
26
|
+
--pf-v6-c-content--a--Color: var(--pf-t--global--icon--color--regular);
|
|
27
|
+
--pf-v6-c-button--m-plain--PaddingInlineEnd: 0;
|
|
28
|
+
--pf-v6-c-button--m-plain--PaddingInlineStart: 0;
|
|
29
|
+
--pf-v6-c-button--MinWidth: unset;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ws-heading-anchor.pf-v6-c-button:hover,
|
|
33
|
+
.ws-heading-anchor.pf-v6-c-button:focus {
|
|
34
|
+
--pf-v6-c-button--hover--Color: var(--pf-t--global--icon--color--regular);
|
|
35
|
+
--pf-v6-c-button--BackgroundColor: transparent;
|
|
36
|
+
--pf-v6-c-content--a--hover--Color: var(--pf-t--global--icon--color--regular);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ws-heading-anchor-icon {
|
|
40
|
+
height: 0.75rem;
|
|
41
|
+
width: 0.75rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ws-heading:hover .ws-heading-anchor,
|
|
45
|
+
.ws-heading-anchor:focus {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
}
|
package/src/utils/index.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
// Should produce valid URLs and valid CSS ids
|
|
4
|
+
export const slugger = (children: React.ReactNode) => {
|
|
5
|
+
const value = React.Children.toArray(children)
|
|
6
|
+
.filter((child) => typeof child === 'string' || typeof child === 'number')
|
|
7
|
+
.join('')
|
|
8
|
+
return value
|
|
9
|
+
.toLowerCase()
|
|
10
|
+
.trim()
|
|
11
|
+
.replace(/index$/, '')
|
|
12
|
+
.replace(/\s/g, '-')
|
|
13
|
+
.replace(/[^A-Za-z0-9.\-~]/g, '')
|
|
14
|
+
}
|
|
@@ -3,12 +3,14 @@ id: Contribute
|
|
|
3
3
|
title: Contribute to PatternFly
|
|
4
4
|
section: get-started
|
|
5
5
|
propComponents: ['Button', 'BadgeCountObject']
|
|
6
|
+
cssPrefix: pf-v6-c-about-modal-box
|
|
6
7
|
---
|
|
7
8
|
|
|
8
|
-
## Community contributions
|
|
9
|
+
## Community contributions
|
|
9
10
|
|
|
10
|
-
Thank you for your interest in contributing to PatternFly! We depend on community contributions to help our design system grow and evolve. We encourage everyone, regardless of background, to get involved. Common contributions include (but aren't limited to):
|
|
11
|
-
|
|
11
|
+
Thank you for your interest in contributing to PatternFly! We depend on community contributions to help our design system grow and evolve. We encourage everyone, regardless of background, to get involved. Common contributions include (but aren't limited to):
|
|
12
|
+
|
|
13
|
+
- New feature ideas.
|
|
12
14
|
- Bug reports.
|
|
13
15
|
- Documentation updates.
|
|
14
16
|
|
|
@@ -20,29 +22,32 @@ If you have any ideas that don't fit into the projects outlined in this guide, p
|
|
|
20
22
|
|
|
21
23
|
If you have skills in visual and interaction design, you can contribute to PatternFly's design by taking an existing issue or proposing a new feature, enhancement, or icon. If you are interested in any of these projects, [reach out on the patternfly-design Slack channel.](http://join.slack.com/t/patternfly/shared_invite/zt-1npmqswgk-bF2R1E2rglV8jz5DNTezMQ)
|
|
22
24
|
|
|
23
|
-
### Existing design issues
|
|
25
|
+
### Existing design issues
|
|
24
26
|
|
|
25
27
|
The PatternFly design team is composed of visual and interaction designers who define the look and feel of the PatternFly library. The team follows an agile framework, planning their work in sprints, with a backlog that is tracked and managed via [this GitHub project board.](https://github.com/orgs/patternfly/projects/7/views/30) This board contains a list issues that are currently unassigned and waiting in the queue. If you see something here that you'd like to work on, leave a comment on the issue and a member of our team will reach out with next steps.
|
|
26
28
|
|
|
27
29
|
### New feature or enhancement
|
|
30
|
+
|
|
28
31
|
If you have an idea for a new design pattern, a new component type, or an existing feature improvement, we'd love to hear it. [Start by opening an issue in the patternfly-design repository.](https://github.com/patternfly/patternfly-design/issues) From there, a member of our team will reach out and work with you to plan and design a solution.
|
|
29
32
|
|
|
30
33
|
### New icons
|
|
34
|
+
|
|
31
35
|
We encourage designers to work with [the existing PatternFly icon set](/design-foundations/icons), which covers most common use cases. If your use case isn't covered, you can propose a new icon.
|
|
32
36
|
|
|
33
37
|
To contribute a new icon, [start by opening an issue in the patternfly-design repository](https://github.com/patternfly/patternfly-design/issues) that describes your idea and why it's needed. A member of our team will reach out to you to discuss next steps.
|
|
34
38
|
|
|
35
39
|
## Code
|
|
36
40
|
|
|
37
|
-
The primary PatternFly libraries include HTML/CSS (commonly called "core") and React. If you're looking to contribute to PatternFly's codebase, these libraries are a good place to start. You can help out by taking existing issues, or creating issues for bugs and other changes.
|
|
41
|
+
The primary PatternFly libraries include HTML/CSS (commonly called "core") and React. If you're looking to contribute to PatternFly's codebase, these libraries are a good place to start. You can help out by taking existing issues, or creating issues for bugs and other changes.
|
|
38
42
|
|
|
39
43
|
If you have any questions about these projects, you can reach out to us on our [patternfly-core](https://patternfly.slack.com/archives/C9Q224EFL) and [patternfly-react](https://patternfly.slack.com/archives/C4FM977N0) Slack channels.
|
|
40
44
|
|
|
41
|
-
### Existing development issues
|
|
45
|
+
### Existing development issues
|
|
42
46
|
|
|
43
|
-
To find work that has been approved, but not started, you can view open issues in our [patternfly](https://github.com/patternfly/patternfly/issues) (HTML/CSS) and [patternfly-react](https://github.com/patternfly/patternfly-react/issues) (React) repositories. If you find an issue that you'd like to work on, leave a comment and someone from our team will reach out to you with next steps.
|
|
47
|
+
To find work that has been approved, but not started, you can view open issues in our [patternfly](https://github.com/patternfly/patternfly/issues) (HTML/CSS) and [patternfly-react](https://github.com/patternfly/patternfly-react/issues) (React) repositories. If you find an issue that you'd like to work on, leave a comment and someone from our team will reach out to you with next steps.
|
|
44
48
|
|
|
45
49
|
Be sure to view our detailed contribution instructions for both of these repositories:
|
|
50
|
+
|
|
46
51
|
- [Core contribution guidelines](https://github.com/patternfly/patternfly#guidelines-for-css-development)
|
|
47
52
|
- [React contribution guidelines](https://github.com/patternfly/patternfly-react/blob/main/CONTRIBUTING.md#contribution-process)
|
|
48
53
|
|
|
@@ -50,13 +55,13 @@ Be sure to view our detailed contribution instructions for both of these reposit
|
|
|
50
55
|
|
|
51
56
|
If you believe that you've come across a PatternFly bug, alert our team, so that we can resolve the issue. To report a bug, follow these steps:
|
|
52
57
|
|
|
53
|
-
1. View the documentation for the feature, to confirm that the behavior is not functioning as intended.
|
|
58
|
+
1. View the documentation for the feature, to confirm that the behavior is not functioning as intended.
|
|
54
59
|
1. Search open issues in the [patternfly](https://github.com/patternfly/patternfly/issues) and [patternfly-react](https://github.com/patternfly/patternfly-react/issues) repositories to see if a related issue already exists.
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
- If the bug is present in only the React implementation of PatternFly, [create a bug issue in patternfly-react.](https://github.com/patternfly/patternfly-react/issues)
|
|
61
|
+
- If the bug can be seen on both the React and HTML/CSS side, [create a bug issue in patternfly](https://github.com/patternfly/patternfly/issues).
|
|
57
62
|
1. Be sure to mention which project the bug was noticed in and if there is a deadline that the fix is needed for.
|
|
58
63
|
|
|
59
|
-
## Documentation
|
|
64
|
+
## Documentation
|
|
60
65
|
|
|
61
66
|
Across our website, you can find PatternFly documentation that explains concepts, provides guidance, and outlines important resources for PatternFly users. Our documentation can always be improved, and we love to hear input from the people who use it.
|
|
62
67
|
|
|
@@ -64,9 +69,10 @@ If you'd like to contribute to documentation, you can refer to our [detailed con
|
|
|
64
69
|
|
|
65
70
|
### Existing documentation issues
|
|
66
71
|
|
|
67
|
-
Our website documentation is contained in the [patternfly-org repository](https://github.com/patternfly/patternfly-org). If you find an issue that you'd like to work on, leave a comment and someone from our team will reach out to you with next steps.
|
|
72
|
+
Our website documentation is contained in the [patternfly-org repository](https://github.com/patternfly/patternfly-org). If you find an issue that you'd like to work on, leave a comment and someone from our team will reach out to you with next steps.
|
|
68
73
|
|
|
69
74
|
### Design guidelines
|
|
75
|
+
|
|
70
76
|
Our design guidelines are found across our component, layout, chart, and pattern web pages. These guides clarify usage details to help designers follow best practices to create strong UI solutions.
|
|
71
77
|
|
|
72
|
-
If you'd like to contribute to our design guidelines, you can open an issue in [patternfly-org](https://github.com/patternfly/patternfly-org) to propose a new page or updates to an existing page. From there, our team will work with you to author and publish your new content.
|
|
78
|
+
If you'd like to contribute to our design guidelines, you can open an issue in [patternfly-org](https://github.com/patternfly/patternfly-org) to propose a new page or updates to an existing page. From there, our team will work with you to author and publish your new content.
|