@patternfly/patternfly 5.0.0-alpha.32 → 5.0.0-alpha.33
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/components/DatePicker/date-picker.css +0 -8
- package/components/DatePicker/date-picker.scss +0 -9
- package/components/HelperText/helper-text.css +4 -0
- package/components/HelperText/helper-text.scss +5 -0
- package/docs/components/DatePicker/examples/DatePicker.md +14 -3
- package/docs/components/FileUpload/examples/FileUpload.md +9 -5
- package/docs/components/Form/examples/Form.md +94 -73
- package/docs/components/HelperText/examples/HelperText.md +13 -24
- package/docs/components/Login/examples/Login.md +67 -30
- package/docs/components/Progress/examples/Progress.md +1 -1
- package/docs/demos/Alert/examples/Alert.md +105 -58
- package/docs/demos/Form/examples/BasicForms.md +129 -140
- package/docs/demos/HelperText/examples/HelperText.md +11 -8
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +87 -53
- package/docs/demos/Toolbar/examples/Toolbar.md +17 -5
- package/package.json +2 -2
- package/patternfly-no-reset.css +4 -8
- package/patternfly.css +4 -8
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -48,9 +48,9 @@ section: demos
|
|
|
48
48
|
</button>
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
|
-
<div class="pf-c-form__helper-text">
|
|
51
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
52
52
|
<div class="pf-c-helper-text">
|
|
53
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
53
|
+
<div class="pf-c-helper-text__item pf-m-indeterminate pf-m-dynamic">
|
|
54
54
|
<span class="pf-c-helper-text__item-icon">
|
|
55
55
|
<i class="fas fa-fw fa-minus" aria-hidden="true"></i>
|
|
56
56
|
</span>
|
|
@@ -58,7 +58,7 @@ section: demos
|
|
|
58
58
|
class="pf-c-helper-text__item-text"
|
|
59
59
|
>Must be at least 14 characters</span>
|
|
60
60
|
</div>
|
|
61
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
61
|
+
<div class="pf-c-helper-text__item pf-m-indeterminate pf-m-dynamic">
|
|
62
62
|
<span class="pf-c-helper-text__item-icon">
|
|
63
63
|
<i class="fas fa-fw fa-minus" aria-hidden="true"></i>
|
|
64
64
|
</span>
|
|
@@ -66,7 +66,7 @@ section: demos
|
|
|
66
66
|
class="pf-c-helper-text__item-text"
|
|
67
67
|
>Cannot contain the word "redhat"</span>
|
|
68
68
|
</div>
|
|
69
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
69
|
+
<div class="pf-c-helper-text__item pf-m-indeterminate pf-m-dynamic">
|
|
70
70
|
<span class="pf-c-helper-text__item-icon">
|
|
71
71
|
<i class="fas fa-fw fa-minus" aria-hidden="true"></i>
|
|
72
72
|
</span>
|
|
@@ -84,47 +84,81 @@ section: demos
|
|
|
84
84
|
|
|
85
85
|
### Invalid password
|
|
86
86
|
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
87
|
+
```html
|
|
88
|
+
<form class="pf-c-form" novalidate>
|
|
89
|
+
<div class="pf-c-form__group">
|
|
90
|
+
<div class="pf-c-form__group-label pf-m-info">
|
|
91
|
+
<div class="pf-c-form__group-label-main"><label
|
|
92
|
+
class="pf-c-form__label"
|
|
93
|
+
for="password-strength-demo--invalid-password"
|
|
94
|
+
>
|
|
95
|
+
<span class="pf-c-form__label-text">Password</span> <span class="pf-c-form__label-required" aria-hidden="true">*</span></label> <span
|
|
96
|
+
class="pf-c-form__group-label-help"
|
|
97
|
+
aria-label="More information for password field"
|
|
98
|
+
aria-describedby="password-strength-demo--invalid-password"
|
|
99
|
+
role="button"
|
|
100
|
+
type="button"
|
|
101
|
+
tabindex="0"
|
|
102
|
+
><i class="pficon pf-icon-help" aria-hidden="true"></i></span>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="pf-c-form__group-label-info"></div>
|
|
105
|
+
</div>
|
|
106
|
+
<div class="pf-c-form__group-control">
|
|
107
|
+
<div class="pf-c-input-group">
|
|
108
|
+
<div class="pf-c-input-group__item pf-m-fill">
|
|
109
|
+
<input
|
|
110
|
+
class="pf-c-form-control"
|
|
111
|
+
required
|
|
112
|
+
type="text"
|
|
113
|
+
id="password-strength-demo--invalid-password"
|
|
114
|
+
name="password-strength-demo--invalid-password"
|
|
115
|
+
aria-label="Password input"
|
|
116
|
+
value="Marie$RedHat78"
|
|
117
|
+
placeholder="Password"
|
|
118
|
+
/>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="pf-c-input-group__item">
|
|
121
|
+
<button
|
|
122
|
+
class="pf-c-button pf-m-control"
|
|
123
|
+
type="button"
|
|
124
|
+
aria-label="Show password"
|
|
125
|
+
>
|
|
126
|
+
<i class="fas fa-eye-slash" aria-hidden="true"></i>
|
|
127
|
+
</button>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
131
|
+
<div class="pf-c-helper-text">
|
|
132
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
133
|
+
<span class="pf-c-helper-text__item-icon">
|
|
134
|
+
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
135
|
+
</span>
|
|
136
|
+
<span
|
|
137
|
+
class="pf-c-helper-text__item-text"
|
|
138
|
+
>Must be at least 14 characters</span>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="pf-c-helper-text__item pf-m-error pf-m-dynamic">
|
|
141
|
+
<span class="pf-c-helper-text__item-icon">
|
|
142
|
+
<i class="fas fa-fw fa-exclamation-circle" aria-hidden="true"></i>
|
|
143
|
+
</span>
|
|
144
|
+
<span
|
|
145
|
+
class="pf-c-helper-text__item-text"
|
|
146
|
+
>Cannot contain the word "redhat"</span>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
149
|
+
<span class="pf-c-helper-text__item-icon">
|
|
150
|
+
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
151
|
+
</span>
|
|
152
|
+
<span
|
|
153
|
+
class="pf-c-helper-text__item-text"
|
|
154
|
+
>Must include at least 3 of the following: lowercase letters, uppercase letters, numbers, symbols</span>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
</form>
|
|
161
|
+
|
|
128
162
|
```
|
|
129
163
|
|
|
130
164
|
### Valid, weak password
|
|
@@ -181,9 +215,9 @@ section: demos
|
|
|
181
215
|
</button>
|
|
182
216
|
</div>
|
|
183
217
|
</div>
|
|
184
|
-
<div class="pf-c-form__helper-text">
|
|
218
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
185
219
|
<div class="pf-c-helper-text">
|
|
186
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
220
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
187
221
|
<span class="pf-c-helper-text__item-icon">
|
|
188
222
|
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
189
223
|
</span>
|
|
@@ -191,7 +225,7 @@ section: demos
|
|
|
191
225
|
class="pf-c-helper-text__item-text"
|
|
192
226
|
>Must be at least 14 characters</span>
|
|
193
227
|
</div>
|
|
194
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
228
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
195
229
|
<span class="pf-c-helper-text__item-icon">
|
|
196
230
|
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
197
231
|
</span>
|
|
@@ -199,7 +233,7 @@ section: demos
|
|
|
199
233
|
class="pf-c-helper-text__item-text"
|
|
200
234
|
>Cannot contain the word "redhat"</span>
|
|
201
235
|
</div>
|
|
202
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
236
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
203
237
|
<span class="pf-c-helper-text__item-icon">
|
|
204
238
|
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
205
239
|
</span>
|
|
@@ -269,9 +303,9 @@ section: demos
|
|
|
269
303
|
</button>
|
|
270
304
|
</div>
|
|
271
305
|
</div>
|
|
272
|
-
<div class="pf-c-form__helper-text">
|
|
306
|
+
<div class="pf-c-form__helper-text" aria-live="polite">
|
|
273
307
|
<div class="pf-c-helper-text">
|
|
274
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
308
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
275
309
|
<span class="pf-c-helper-text__item-icon">
|
|
276
310
|
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
277
311
|
</span>
|
|
@@ -279,7 +313,7 @@ section: demos
|
|
|
279
313
|
class="pf-c-helper-text__item-text"
|
|
280
314
|
>Must be at least 14 characters</span>
|
|
281
315
|
</div>
|
|
282
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
316
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
283
317
|
<span class="pf-c-helper-text__item-icon">
|
|
284
318
|
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
285
319
|
</span>
|
|
@@ -287,7 +321,7 @@ section: demos
|
|
|
287
321
|
class="pf-c-helper-text__item-text"
|
|
288
322
|
>Cannot contain the word "redhat"</span>
|
|
289
323
|
</div>
|
|
290
|
-
<div class="pf-c-helper-text__item pf-m-
|
|
324
|
+
<div class="pf-c-helper-text__item pf-m-success pf-m-dynamic">
|
|
291
325
|
<span class="pf-c-helper-text__item-icon">
|
|
292
326
|
<i class="fas fa-fw fa-check-circle" aria-hidden="true"></i>
|
|
293
327
|
</span>
|
|
@@ -1233,7 +1233,13 @@ section: components
|
|
|
1233
1233
|
</button>
|
|
1234
1234
|
</div>
|
|
1235
1235
|
</div>
|
|
1236
|
-
<div class="pf-c-date-picker__helper-text">
|
|
1236
|
+
<div class="pf-c-date-picker__helper-text">
|
|
1237
|
+
<div class="pf-c-helper-text">
|
|
1238
|
+
<div class="pf-c-helper-text__item">
|
|
1239
|
+
<span class="pf-c-helper-text__item-text">MM/DD/YYYY</span>
|
|
1240
|
+
</div>
|
|
1241
|
+
</div>
|
|
1242
|
+
</div>
|
|
1237
1243
|
</div>
|
|
1238
1244
|
<div class="pf-c-date-picker">
|
|
1239
1245
|
<div class="pf-c-date-picker__input">
|
|
@@ -1259,11 +1265,17 @@ section: components
|
|
|
1259
1265
|
<i class="fas fa-calendar-alt" aria-hidden="true"></i>
|
|
1260
1266
|
</button>
|
|
1261
1267
|
</div>
|
|
1262
|
-
<div class="pf-c-date-picker__helper-text"
|
|
1268
|
+
<div class="pf-c-date-picker__helper-text"></div>
|
|
1269
|
+
</div>
|
|
1270
|
+
<div class="pf-c-date-picker__helper-text">
|
|
1271
|
+
<div class="pf-c-helper-text">
|
|
1272
|
+
<div class="pf-c-helper-text__item">
|
|
1273
|
+
<span
|
|
1274
|
+
class="pf-c-helper-text__item-text"
|
|
1275
|
+
>Max: 08/10/2022</span>
|
|
1276
|
+
</div>
|
|
1277
|
+
</div>
|
|
1263
1278
|
</div>
|
|
1264
|
-
<div
|
|
1265
|
-
class="pf-c-date-picker__helper-text pf-m-error"
|
|
1266
|
-
>Max: 08/10/2022</div>
|
|
1267
1279
|
</div>
|
|
1268
1280
|
</div>
|
|
1269
1281
|
</div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/patternfly",
|
|
3
3
|
"description": "Assets, source, tooling, and content for PatternFly 4",
|
|
4
|
-
"version": "5.0.0-alpha.
|
|
4
|
+
"version": "5.0.0-alpha.33",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@commitlint/config-conventional": "^17.4.2",
|
|
43
43
|
"@fortawesome/fontawesome": "^1.1.8",
|
|
44
44
|
"@octokit/rest": "^19.0.7",
|
|
45
|
-
"@patternfly/documentation-framework": "1.10.
|
|
45
|
+
"@patternfly/documentation-framework": "1.10.3",
|
|
46
46
|
"@patternfly/patternfly-a11y": "4.3.1",
|
|
47
47
|
"@patternfly/react-code-editor": "4.82.113",
|
|
48
48
|
"@patternfly/react-core": "4.276.6",
|
package/patternfly-no-reset.css
CHANGED
|
@@ -12335,9 +12335,6 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
12335
12335
|
--pf-c-date-picker--m-top__calendar--Top: 0;
|
|
12336
12336
|
--pf-c-date-picker--m-top__calendar--TranslateY: calc(-100% - var(--pf-global--spacer--xs));
|
|
12337
12337
|
--pf-c-date-picker__helper-text--MarginTop: var(--pf-global--spacer--xs);
|
|
12338
|
-
--pf-c-date-picker__helper-text--FontSize: var(--pf-global--FontSize--sm);
|
|
12339
|
-
--pf-c-date-picker__helper-text--Color: var(--pf-global--Color--100);
|
|
12340
|
-
--pf-c-date-picker__helper-text--m-error--Color: var(--pf-global--danger-color--100);
|
|
12341
12338
|
--pf-c-date-picker__input--c-form-control--Width: calc(var(--pf-c-date-picker__input--c-form-control--width-chars) * 1ch + var(--pf-c-date-picker__input--c-form-control--width-base));
|
|
12342
12339
|
--pf-c-date-picker__input--c-form-control--width-base: calc(var(--pf-global--spacer--xl) + var(--pf-global--spacer--sm));
|
|
12343
12340
|
--pf-c-date-picker__input--c-form-control--width-chars: 10;
|
|
@@ -12355,11 +12352,6 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
12355
12352
|
|
|
12356
12353
|
.pf-c-date-picker__helper-text {
|
|
12357
12354
|
margin-top: var(--pf-c-date-picker__helper-text--MarginTop);
|
|
12358
|
-
font-size: var(--pf-c-date-picker__helper-text--FontSize);
|
|
12359
|
-
color: var(--pf-c-date-picker__helper-text--Color);
|
|
12360
|
-
}
|
|
12361
|
-
.pf-c-date-picker__helper-text.pf-m-error {
|
|
12362
|
-
--pf-c-date-picker__helper-text--Color: var(--pf-c-date-picker__helper-text--m-error--Color);
|
|
12363
12355
|
}
|
|
12364
12356
|
|
|
12365
12357
|
.pf-c-date-picker__input .pf-c-form-control {
|
|
@@ -15659,6 +15651,10 @@ textarea.pf-c-form-control {
|
|
|
15659
15651
|
gap: var(--pf-c-helper-text--Gap);
|
|
15660
15652
|
font-size: var(--pf-c-helper-text--FontSize);
|
|
15661
15653
|
}
|
|
15654
|
+
.pf-c-helper-text.pf-m-hidden {
|
|
15655
|
+
visibility: hidden;
|
|
15656
|
+
opacity: 0;
|
|
15657
|
+
}
|
|
15662
15658
|
|
|
15663
15659
|
.pf-c-helper-text__item {
|
|
15664
15660
|
display: flex;
|
package/patternfly.css
CHANGED
|
@@ -12458,9 +12458,6 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
12458
12458
|
--pf-c-date-picker--m-top__calendar--Top: 0;
|
|
12459
12459
|
--pf-c-date-picker--m-top__calendar--TranslateY: calc(-100% - var(--pf-global--spacer--xs));
|
|
12460
12460
|
--pf-c-date-picker__helper-text--MarginTop: var(--pf-global--spacer--xs);
|
|
12461
|
-
--pf-c-date-picker__helper-text--FontSize: var(--pf-global--FontSize--sm);
|
|
12462
|
-
--pf-c-date-picker__helper-text--Color: var(--pf-global--Color--100);
|
|
12463
|
-
--pf-c-date-picker__helper-text--m-error--Color: var(--pf-global--danger-color--100);
|
|
12464
12461
|
--pf-c-date-picker__input--c-form-control--Width: calc(var(--pf-c-date-picker__input--c-form-control--width-chars) * 1ch + var(--pf-c-date-picker__input--c-form-control--width-base));
|
|
12465
12462
|
--pf-c-date-picker__input--c-form-control--width-base: calc(var(--pf-global--spacer--xl) + var(--pf-global--spacer--sm));
|
|
12466
12463
|
--pf-c-date-picker__input--c-form-control--width-chars: 10;
|
|
@@ -12478,11 +12475,6 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
12478
12475
|
|
|
12479
12476
|
.pf-c-date-picker__helper-text {
|
|
12480
12477
|
margin-top: var(--pf-c-date-picker__helper-text--MarginTop);
|
|
12481
|
-
font-size: var(--pf-c-date-picker__helper-text--FontSize);
|
|
12482
|
-
color: var(--pf-c-date-picker__helper-text--Color);
|
|
12483
|
-
}
|
|
12484
|
-
.pf-c-date-picker__helper-text.pf-m-error {
|
|
12485
|
-
--pf-c-date-picker__helper-text--Color: var(--pf-c-date-picker__helper-text--m-error--Color);
|
|
12486
12478
|
}
|
|
12487
12479
|
|
|
12488
12480
|
.pf-c-date-picker__input .pf-c-form-control {
|
|
@@ -15782,6 +15774,10 @@ textarea.pf-c-form-control {
|
|
|
15782
15774
|
gap: var(--pf-c-helper-text--Gap);
|
|
15783
15775
|
font-size: var(--pf-c-helper-text--FontSize);
|
|
15784
15776
|
}
|
|
15777
|
+
.pf-c-helper-text.pf-m-hidden {
|
|
15778
|
+
visibility: hidden;
|
|
15779
|
+
opacity: 0;
|
|
15780
|
+
}
|
|
15785
15781
|
|
|
15786
15782
|
.pf-c-helper-text__item {
|
|
15787
15783
|
display: flex;
|