@patternfly/documentation-framework 2.0.0-alpha.45 → 2.0.0-alpha.47
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/CHANGELOG.md +22 -0
- package/components/cssVariables/cssVariables.js +12 -14
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 2.0.0-alpha.47 (2023-05-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **CSSVariables:** check for values before looping over them ([f2d167f](https://github.com/patternfly/patternfly-org/commit/f2d167f57c0cd38b289ade62d98022d7902de38f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# 2.0.0-alpha.46 (2023-05-31)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **CSSVariables:** resolve a11y issues in tables ([41a7837](https://github.com/patternfly/patternfly-org/commit/41a78379de36c08d7b36fe48a9ff40a4140cdc63))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# 2.0.0-alpha.45 (2023-05-25)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @patternfly/documentation-framework
|
|
@@ -43,15 +43,17 @@ const flattenList = files => {
|
|
|
43
43
|
let list = [];
|
|
44
44
|
files.forEach(file => {
|
|
45
45
|
Object.entries(file).forEach(([selector, values]) => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
if(values?.length) {
|
|
47
|
+
Object.entries(values).forEach(([key, val]) => {
|
|
48
|
+
list.push({
|
|
49
|
+
selector,
|
|
50
|
+
property: val.name,
|
|
51
|
+
token: key,
|
|
52
|
+
value: val.value,
|
|
53
|
+
values: val.values
|
|
54
|
+
});
|
|
53
55
|
});
|
|
54
|
-
}
|
|
56
|
+
}
|
|
55
57
|
});
|
|
56
58
|
});
|
|
57
59
|
return list;
|
|
@@ -178,11 +180,7 @@ export class CSSVariables extends React.Component {
|
|
|
178
180
|
<Tr>
|
|
179
181
|
{!this.props.hideSelectorColumn && (
|
|
180
182
|
<React.Fragment>
|
|
181
|
-
<Th
|
|
182
|
-
areAllExpanded: this.state.allRowsExpanded,
|
|
183
|
-
collapseAllAriaLabel: "Expand or collapse all CSS variables",
|
|
184
|
-
onToggle: this.onCollapse
|
|
185
|
-
}}/>
|
|
183
|
+
<Th />
|
|
186
184
|
<Th>Selector</Th>
|
|
187
185
|
</React.Fragment>
|
|
188
186
|
)}
|
|
@@ -201,7 +199,7 @@ export class CSSVariables extends React.Component {
|
|
|
201
199
|
rowIndex,
|
|
202
200
|
isExpanded: row.isOpen,
|
|
203
201
|
onToggle: this.onCollapse,
|
|
204
|
-
expandId:
|
|
202
|
+
expandId: `css-vars-expandable-toggle-${this.props.prefix}`
|
|
205
203
|
}
|
|
206
204
|
: undefined
|
|
207
205
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/documentation-framework",
|
|
3
3
|
"description": "A framework to build documentation for PatternFly.",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.47",
|
|
5
5
|
"author": "Red Hat",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"react": "^17.0.0 || ^18.0.0",
|
|
92
92
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "76d2d9c4d797f6da013aed70500e11304c571940"
|
|
95
95
|
}
|