@patternfly/react-styles 4.39.1 → 4.39.5
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 +35 -0
- package/css/components/DescriptionList/description-list.css +18 -0
- package/css/components/DescriptionList/description-list.d.ts +1 -0
- package/css/components/DescriptionList/description-list.js +1 -0
- package/css/components/Truncate/truncate.css +14 -26
- package/css/components/Truncate/truncate.d.ts +1 -2
- package/css/components/Truncate/truncate.js +1 -2
- package/css/docs/components/Truncate/examples/Truncate.css +9 -0
- package/css/docs/components/Truncate/examples/Truncate.d.ts +5 -0
- package/css/docs/components/Truncate/examples/Truncate.js +6 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,41 @@
|
|
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
|
+
## 4.39.5 (2022-01-18)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **Tabs:** enable tabs scroll button for small window ([#6784](https://github.com/patternfly/patternfly-react/issues/6784)) ([a29b430](https://github.com/patternfly/patternfly-react/commit/a29b43094ae3d5ce7f4b26e4041cd595e675ee58))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
## 4.39.4 (2022-01-18)
|
18
|
+
|
19
|
+
**Note:** Version bump only for package @patternfly/react-styles
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## 4.39.3 (2022-01-18)
|
26
|
+
|
27
|
+
**Note:** Version bump only for package @patternfly/react-styles
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
## 4.39.2 (2022-01-18)
|
34
|
+
|
35
|
+
**Note:** Version bump only for package @patternfly/react-styles
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
6
41
|
## 4.39.1 (2022-01-18)
|
7
42
|
|
8
43
|
**Note:** Version bump only for package @patternfly/react-styles
|
@@ -11,9 +11,14 @@
|
|
11
11
|
--pf-c-description-list__group--GridColumn: auto;
|
12
12
|
--pf-c-description-list--m-compact--RowGap: var(--pf-global--gutter);
|
13
13
|
--pf-c-description-list--m-compact--ColumnGap: var(--pf-global--spacer--sm);
|
14
|
+
--pf-c-description-list__term--Display: inline;
|
15
|
+
--pf-c-description-list__term--sm--Display: flex;
|
14
16
|
--pf-c-description-list__term--FontWeight: var(--pf-global--FontWeight--bold);
|
15
17
|
--pf-c-description-list__term--FontSize: var(--pf-global--FontSize--sm);
|
16
18
|
--pf-c-description-list__term--LineHeight: var(--pf-global--LineHeight--sm);
|
19
|
+
--pf-c-description-list__term-icon--MinWidth: var(--pf-global--icon--FontSize--sm);
|
20
|
+
--pf-c-description-list__term-icon--MarginRight: var(--pf-global--spacer--sm);
|
21
|
+
--pf-c-description-list__term-icon--Color: var(--pf-global--icon--Color--light);
|
17
22
|
--pf-c-description-list--m-vertical__group--GridTemplateColumns: repeat(var(--pf-c-description-list--GridTemplateColumns--count));
|
18
23
|
--pf-c-description-list--m-horizontal__term--width: 12ch;
|
19
24
|
--pf-c-description-list--m-horizontal__description--width: minmax(10ch, auto);
|
@@ -34,6 +39,11 @@
|
|
34
39
|
column-gap: var(--pf-c-description-list--ColumnGap);
|
35
40
|
grid-template-columns: var(--pf-c-description-list--GridTemplateColumns);
|
36
41
|
}
|
42
|
+
@media screen and (min-width: 576px) {
|
43
|
+
.pf-c-description-list {
|
44
|
+
--pf-c-description-list__term--Display: var(--pf-c-description-list__term--sm--Display);
|
45
|
+
}
|
46
|
+
}
|
37
47
|
.pf-c-description-list[class*=pf-m-horizontal] {
|
38
48
|
--pf-c-description-list__term--width: var(--pf-c-description-list--m-horizontal__term--width);
|
39
49
|
}
|
@@ -136,6 +146,7 @@
|
|
136
146
|
}
|
137
147
|
|
138
148
|
.pf-c-description-list__term {
|
149
|
+
display: var(--pf-c-description-list__term--Display);
|
139
150
|
font-size: var(--pf-c-description-list__term--FontSize);
|
140
151
|
font-weight: var(--pf-c-description-list__term--FontWeight);
|
141
152
|
line-height: var(--pf-c-description-list__term--LineHeight);
|
@@ -144,6 +155,13 @@
|
|
144
155
|
display: inline;
|
145
156
|
}
|
146
157
|
|
158
|
+
.pf-c-description-list__term-icon {
|
159
|
+
flex-shrink: 0;
|
160
|
+
min-width: var(--pf-c-description-list__term-icon--MinWidth);
|
161
|
+
margin-right: var(--pf-c-description-list__term-icon--MarginRight);
|
162
|
+
color: var(--pf-c-description-list__term-icon--Color);
|
163
|
+
}
|
164
|
+
|
147
165
|
.pf-c-description-list__text.pf-m-help-text {
|
148
166
|
text-decoration: underline;
|
149
167
|
cursor: pointer;
|
@@ -4,6 +4,7 @@ declare const _default: {
|
|
4
4
|
"descriptionListDescription": "pf-c-description-list__description",
|
5
5
|
"descriptionListGroup": "pf-c-description-list__group",
|
6
6
|
"descriptionListTerm": "pf-c-description-list__term",
|
7
|
+
"descriptionListTermIcon": "pf-c-description-list__term-icon",
|
7
8
|
"descriptionListText": "pf-c-description-list__text",
|
8
9
|
"modifiers": {
|
9
10
|
"inlineGrid": "pf-m-inline-grid",
|
@@ -6,6 +6,7 @@ exports.default = {
|
|
6
6
|
"descriptionListDescription": "pf-c-description-list__description",
|
7
7
|
"descriptionListGroup": "pf-c-description-list__group",
|
8
8
|
"descriptionListTerm": "pf-c-description-list__term",
|
9
|
+
"descriptionListTermIcon": "pf-c-description-list__term-icon",
|
9
10
|
"descriptionListText": "pf-c-description-list__text",
|
10
11
|
"modifiers": {
|
11
12
|
"inlineGrid": "pf-m-inline-grid",
|
@@ -1,45 +1,33 @@
|
|
1
1
|
.pf-c-truncate {
|
2
|
-
--pf-c-truncate--
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
--pf-c-truncate--MinWidth: 12ch;
|
3
|
+
--pf-c-truncate__start--MinWidth: 6ch;
|
4
|
+
display: inline-grid;
|
5
|
+
grid-auto-flow: column;
|
6
|
+
align-items: baseline;
|
7
|
+
min-width: var(--pf-c-truncate--MinWidth);
|
6
8
|
}
|
7
9
|
|
8
10
|
.pf-c-truncate__start,
|
9
11
|
.pf-c-truncate__end {
|
10
|
-
flex-shrink: 1;
|
11
12
|
overflow: hidden;
|
12
13
|
text-overflow: ellipsis;
|
13
14
|
white-space: nowrap;
|
14
15
|
}
|
15
16
|
|
17
|
+
.pf-c-truncate__start {
|
18
|
+
min-width: var(--pf-c-truncate__start--MinWidth);
|
19
|
+
}
|
20
|
+
|
16
21
|
.pf-c-truncate__end {
|
17
22
|
direction: rtl;
|
18
|
-
text-align: left;
|
19
23
|
}
|
20
24
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
+
.pf-c-truncate__start + .pf-c-truncate__end {
|
26
|
+
overflow: visible;
|
27
|
+
direction: ltr;
|
25
28
|
}
|
26
|
-
@supports not (text-overflow: "") {
|
27
|
-
.pf-c-truncate__start + .pf-c-truncate__end {
|
28
|
-
font-size: 0;
|
29
|
-
}
|
30
|
-
.pf-c-truncate__start + .pf-c-truncate__end .pf-c-truncate__text {
|
31
|
-
font-size: var(--pf-c-truncate--FontSize);
|
32
|
-
}
|
33
|
-
}
|
34
|
-
@supports (-webkit-hyphens: none) {
|
35
|
-
.pf-c-truncate {
|
36
|
-
display: inline-block;
|
37
|
-
max-width: 100%;
|
38
|
-
overflow: hidden;
|
39
|
-
text-overflow: ellipsis;
|
40
|
-
white-space: nowrap;
|
41
|
-
}
|
42
29
|
|
30
|
+
@supports (-webkit-hyphens: none) {
|
43
31
|
.pf-c-truncate__end {
|
44
32
|
direction: ltr;
|
45
33
|
}
|
@@ -2,7 +2,6 @@ import './truncate.css';
|
|
2
2
|
declare const _default: {
|
3
3
|
"truncate": "pf-c-truncate",
|
4
4
|
"truncateEnd": "pf-c-truncate__end",
|
5
|
-
"truncateStart": "pf-c-truncate__start"
|
6
|
-
"truncateText": "pf-c-truncate__text"
|
5
|
+
"truncateStart": "pf-c-truncate__start"
|
7
6
|
};
|
8
7
|
export default _default;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@patternfly/react-styles",
|
3
|
-
"version": "4.39.
|
3
|
+
"version": "4.39.5",
|
4
4
|
"main": "dist/js/index.js",
|
5
5
|
"module": "dist/esm/index.js",
|
6
6
|
"types": "dist/esm/index.d.ts",
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"clean": "rimraf dist css"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
22
|
-
"@patternfly/patternfly": "4.
|
22
|
+
"@patternfly/patternfly": "4.167.0",
|
23
23
|
"camel-case": "^3.0.0",
|
24
24
|
"css": "^2.2.3",
|
25
25
|
"fs-extra": "^6.0.1",
|
@@ -29,5 +29,5 @@
|
|
29
29
|
"typescript": "^4.0.0"
|
30
30
|
},
|
31
31
|
"license": "MIT",
|
32
|
-
"gitHead": "
|
32
|
+
"gitHead": "01c8b913108c70fcddb6ee6d7bdf523dffc620b7"
|
33
33
|
}
|