@patternfly/patternfly 5.0.0-alpha.53 → 5.0.0-alpha.54
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/FormControl/form-control.css +164 -214
- package/components/FormControl/form-control.scss +175 -281
- package/components/FormControl/themes/dark/form-control.scss +1 -2
- package/components/NumberInput/number-input.css +0 -1
- package/components/NumberInput/number-input.scss +0 -1
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +32 -28
- package/docs/components/ClipboardCopy/examples/ClipboardCopy.md +52 -46
- package/docs/components/DatePicker/examples/DatePicker.md +55 -49
- package/docs/components/FileUpload/examples/FileUpload.md +105 -93
- package/docs/components/Form/examples/Form.md +165 -145
- package/docs/components/FormControl/examples/FormControl.md +439 -475
- package/docs/components/InlineEdit/examples/InlineEdit.md +87 -76
- package/docs/components/InputGroup/examples/InputGroup.md +84 -74
- package/docs/components/Login/examples/Login.md +92 -82
- package/docs/components/NumberInput/examples/NumberInput.md +99 -87
- package/docs/components/Pagination/examples/Pagination.md +100 -89
- package/docs/components/Select/examples/Select.md +77 -68
- package/docs/components/Slider/examples/Slider.md +31 -44
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +60 -52
- package/docs/components/Toolbar/examples/Toolbar.md +18 -16
- package/docs/components/Wizard/examples/Wizard.md +280 -245
- package/docs/demos/Alert/examples/Alert.md +69 -57
- package/docs/demos/Button/examples/Button.md +54 -48
- package/docs/demos/CardView/examples/CardView.md +9 -8
- package/docs/demos/DataList/examples/DataList.md +36 -32
- package/docs/demos/Form/examples/BasicForms.md +247 -227
- package/docs/demos/HelperText/examples/HelperText.md +37 -33
- package/docs/demos/Modal/examples/Modal.md +14 -21
- package/docs/demos/PasswordGenerator/examples/PasswordGenerator.md +11 -10
- package/docs/demos/PasswordStrength/examples/PasswordStrength.md +44 -40
- package/docs/demos/Table/examples/Table.md +99 -88
- package/docs/demos/Toolbar/examples/Toolbar.md +28 -25
- package/docs/demos/Wizard/examples/Wizard.md +448 -392
- package/package.json +3 -3
- package/patternfly-no-globals.css +161 -212
- package/patternfly.css +161 -212
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/docs/components/FormControl/examples/FormControl.css +0 -5
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
@mixin pf-v5-theme-dark-form-control() {
|
|
4
4
|
.#{$form-control} {
|
|
5
|
-
--#{$form-control}__select--BackgroundUrl: #{pf-bg-svg($pf-v5-c-form-control__select--Coordinates, $pf-v5-c-form-control__select--ViewBox, $pf-v5-global--Color--100)};
|
|
6
5
|
--#{$form-control}--BorderTopColor: transparent;
|
|
7
6
|
--#{$form-control}--BorderRightColor: transparent;
|
|
8
7
|
--#{$form-control}--BorderBottomColor: var(--#{$pf-global}--BorderColor--400);
|
|
@@ -19,7 +18,7 @@
|
|
|
19
18
|
filter: #{"invert(1)"};
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
&.pf-m-readonly {
|
|
23
22
|
border-bottom-color: var(--#{$pf-global}--palette--black-700); // should be a var?
|
|
24
23
|
}
|
|
25
24
|
}
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
--pf-v5-c-number-input--c-form-control--width-icon: var(--pf-v5-c-number-input--m-status--c-form-control--width-icon);
|
|
27
27
|
}
|
|
28
28
|
.pf-v5-c-number-input .pf-v5-c-form-control {
|
|
29
|
-
display: inline-flex;
|
|
30
29
|
width: var(--pf-v5-c-number-input--c-form-control--Width);
|
|
31
30
|
text-align: right;
|
|
32
31
|
}
|
|
@@ -83,13 +83,14 @@ cssPrefix: pf-v5-c-calendar-month
|
|
|
83
83
|
</div>
|
|
84
84
|
<div class="pf-v5-c-input-group__item">
|
|
85
85
|
<div class="pf-v5-c-calendar-month__header-year">
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
<div class="pf-v5-c-form-control">
|
|
87
|
+
<input
|
|
88
|
+
type="number"
|
|
89
|
+
value="2020"
|
|
90
|
+
id="calendar-month-date-selected-year"
|
|
91
|
+
aria-label="Select year"
|
|
92
|
+
/>
|
|
93
|
+
</div>
|
|
93
94
|
</div>
|
|
94
95
|
</div>
|
|
95
96
|
</div>
|
|
@@ -476,13 +477,14 @@ cssPrefix: pf-v5-c-calendar-month
|
|
|
476
477
|
</div>
|
|
477
478
|
<div class="pf-v5-c-input-group__item">
|
|
478
479
|
<div class="pf-v5-c-calendar-month__header-year">
|
|
479
|
-
<
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
480
|
+
<div class="pf-v5-c-form-control">
|
|
481
|
+
<input
|
|
482
|
+
type="number"
|
|
483
|
+
value="2020"
|
|
484
|
+
id="calendar-month-range-start-date-selected-year"
|
|
485
|
+
aria-label="Select year"
|
|
486
|
+
/>
|
|
487
|
+
</div>
|
|
486
488
|
</div>
|
|
487
489
|
</div>
|
|
488
490
|
</div>
|
|
@@ -894,13 +896,14 @@ cssPrefix: pf-v5-c-calendar-month
|
|
|
894
896
|
</div>
|
|
895
897
|
<div class="pf-v5-c-input-group__item">
|
|
896
898
|
<div class="pf-v5-c-calendar-month__header-year">
|
|
897
|
-
<
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
899
|
+
<div class="pf-v5-c-form-control">
|
|
900
|
+
<input
|
|
901
|
+
type="number"
|
|
902
|
+
value="2020"
|
|
903
|
+
id="calendar-month-range-end-date-selected-year"
|
|
904
|
+
aria-label="Select year"
|
|
905
|
+
/>
|
|
906
|
+
</div>
|
|
904
907
|
</div>
|
|
905
908
|
</div>
|
|
906
909
|
</div>
|
|
@@ -1312,13 +1315,14 @@ cssPrefix: pf-v5-c-calendar-month
|
|
|
1312
1315
|
</div>
|
|
1313
1316
|
<div class="pf-v5-c-input-group__item">
|
|
1314
1317
|
<div class="pf-v5-c-calendar-month__header-year">
|
|
1315
|
-
<
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1318
|
+
<div class="pf-v5-c-form-control">
|
|
1319
|
+
<input
|
|
1320
|
+
type="number"
|
|
1321
|
+
value="2020"
|
|
1322
|
+
id="calendar-month-range-start-and-end-dates-selected-year"
|
|
1323
|
+
aria-label="Select year"
|
|
1324
|
+
/>
|
|
1325
|
+
</div>
|
|
1322
1326
|
</div>
|
|
1323
1327
|
</div>
|
|
1324
1328
|
</div>
|
|
@@ -9,13 +9,14 @@ cssPrefix: pf-v5-c-clipboard-copy
|
|
|
9
9
|
```html
|
|
10
10
|
<div class="pf-v5-c-clipboard-copy">
|
|
11
11
|
<div class="pf-v5-c-clipboard-copy__group">
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
<div class="pf-v5-c-form-control">
|
|
13
|
+
<input
|
|
14
|
+
type="text"
|
|
15
|
+
value="This is editable"
|
|
16
|
+
id="basic-editable-text-input"
|
|
17
|
+
aria-label="Copyable input"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
19
20
|
<button
|
|
20
21
|
class="pf-v5-c-button pf-m-control"
|
|
21
22
|
type="button"
|
|
@@ -30,14 +31,15 @@ cssPrefix: pf-v5-c-clipboard-copy
|
|
|
30
31
|
<br />
|
|
31
32
|
<div class="pf-v5-c-clipboard-copy">
|
|
32
33
|
<div class="pf-v5-c-clipboard-copy__group">
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
<div class="pf-v5-c-form-control">
|
|
35
|
+
<input
|
|
36
|
+
readonly
|
|
37
|
+
type="text"
|
|
38
|
+
value="This is read-only"
|
|
39
|
+
id="basic-readonly-text-input"
|
|
40
|
+
aria-label="Copyable input"
|
|
41
|
+
/>
|
|
42
|
+
</div>
|
|
41
43
|
<button
|
|
42
44
|
class="pf-v5-c-button pf-m-control"
|
|
43
45
|
type="button"
|
|
@@ -69,13 +71,14 @@ cssPrefix: pf-v5-c-clipboard-copy
|
|
|
69
71
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
70
72
|
</div>
|
|
71
73
|
</button>
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
<div class="pf-v5-c-form-control">
|
|
75
|
+
<input
|
|
76
|
+
type="text"
|
|
77
|
+
value="This is an editable version of the copy to clipboard component that has an expandable section. Got a lot of text here, need to see all of it? Click that arrow on the left side and check out the resulting expansion."
|
|
78
|
+
id="expandable-not-expanded-editable-text-input"
|
|
79
|
+
aria-label="Copyable input"
|
|
80
|
+
/>
|
|
81
|
+
</div>
|
|
79
82
|
<button
|
|
80
83
|
class="pf-v5-c-button pf-m-control"
|
|
81
84
|
type="button"
|
|
@@ -106,14 +109,15 @@ cssPrefix: pf-v5-c-clipboard-copy
|
|
|
106
109
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
107
110
|
</div>
|
|
108
111
|
</button>
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
<div class="pf-v5-c-form-control">
|
|
113
|
+
<input
|
|
114
|
+
readonly
|
|
115
|
+
type="text"
|
|
116
|
+
value="This is an editable version of the copy to clipboard component that has an expandable section. Got a lot of text here, need to see all of it? Click that arrow on the left side and check out the resulting expansion."
|
|
117
|
+
id="expandable-expanded-editable-text-input"
|
|
118
|
+
aria-label="Copyable input"
|
|
119
|
+
/>
|
|
120
|
+
</div>
|
|
117
121
|
<button
|
|
118
122
|
class="pf-v5-c-button pf-m-control"
|
|
119
123
|
type="button"
|
|
@@ -145,14 +149,15 @@ cssPrefix: pf-v5-c-clipboard-copy
|
|
|
145
149
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
146
150
|
</div>
|
|
147
151
|
</button>
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
<div class="pf-v5-c-form-control">
|
|
153
|
+
<input
|
|
154
|
+
readonly
|
|
155
|
+
type="text"
|
|
156
|
+
value="This is an editable version of the copy to clipboard component that has an expandable section. Got a lot of text here, need to see all of it? Click that arrow on the left side and check out the resulting expansion."
|
|
157
|
+
id="expandable-not-expanded-readonly-text-input"
|
|
158
|
+
aria-label="Copyable input"
|
|
159
|
+
/>
|
|
160
|
+
</div>
|
|
156
161
|
<button
|
|
157
162
|
class="pf-v5-c-button pf-m-control"
|
|
158
163
|
type="button"
|
|
@@ -183,14 +188,15 @@ cssPrefix: pf-v5-c-clipboard-copy
|
|
|
183
188
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
|
184
189
|
</div>
|
|
185
190
|
</button>
|
|
186
|
-
<
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
<div class="pf-v5-c-form-control">
|
|
192
|
+
<input
|
|
193
|
+
readonly
|
|
194
|
+
type="text"
|
|
195
|
+
value="This is an editable version of the copy to clipboard component that has an expandable section. Got a lot of text here, need to see all of it? Click that arrow on the left side and check out the resulting expansion."
|
|
196
|
+
id="expandable-expanded-readonly-text-input"
|
|
197
|
+
aria-label="Copyable input"
|
|
198
|
+
/>
|
|
199
|
+
</div>
|
|
194
200
|
<button
|
|
195
201
|
class="pf-v5-c-button pf-m-control"
|
|
196
202
|
type="button"
|
|
@@ -14,14 +14,15 @@ cssPrefix: pf-v5-c-date-picker
|
|
|
14
14
|
<div class="pf-v5-c-date-picker__input">
|
|
15
15
|
<div class="pf-v5-c-input-group">
|
|
16
16
|
<div class="pf-v5-c-input-group__item pf-m-fill">
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
<div class="pf-v5-c-form-control">
|
|
18
|
+
<input
|
|
19
|
+
type="text"
|
|
20
|
+
value="2020-03-05"
|
|
21
|
+
id="basic-input"
|
|
22
|
+
name="basic-input"
|
|
23
|
+
aria-label="Date picker"
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
25
26
|
</div>
|
|
26
27
|
<div class="pf-v5-c-input-group__item">
|
|
27
28
|
<button
|
|
@@ -45,14 +46,15 @@ cssPrefix: pf-v5-c-date-picker
|
|
|
45
46
|
<div class="pf-v5-c-date-picker__input">
|
|
46
47
|
<div class="pf-v5-c-input-group">
|
|
47
48
|
<div class="pf-v5-c-input-group__item pf-m-fill">
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
<div class="pf-v5-c-form-control">
|
|
50
|
+
<input
|
|
51
|
+
type="text"
|
|
52
|
+
value="2020-03-05"
|
|
53
|
+
id="helper-text-input"
|
|
54
|
+
name="helper-text-input"
|
|
55
|
+
aria-label="Date picker"
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
56
58
|
</div>
|
|
57
59
|
<div class="pf-v5-c-input-group__item">
|
|
58
60
|
<button
|
|
@@ -83,15 +85,16 @@ cssPrefix: pf-v5-c-date-picker
|
|
|
83
85
|
<div class="pf-v5-c-date-picker__input">
|
|
84
86
|
<div class="pf-v5-c-input-group">
|
|
85
87
|
<div class="pf-v5-c-input-group__item pf-m-fill">
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
<div class="pf-v5-c-form-control">
|
|
89
|
+
<input
|
|
90
|
+
aria-invalid="true"
|
|
91
|
+
type="text"
|
|
92
|
+
value="2020-03-05"
|
|
93
|
+
id="invalid-input"
|
|
94
|
+
name="invalid-input"
|
|
95
|
+
aria-label="Date picker"
|
|
96
|
+
/>
|
|
97
|
+
</div>
|
|
95
98
|
</div>
|
|
96
99
|
<div class="pf-v5-c-input-group__item">
|
|
97
100
|
<button
|
|
@@ -122,14 +125,15 @@ cssPrefix: pf-v5-c-date-picker
|
|
|
122
125
|
<div class="pf-v5-c-date-picker__input">
|
|
123
126
|
<div class="pf-v5-c-input-group">
|
|
124
127
|
<div class="pf-v5-c-input-group__item pf-m-fill">
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
<div class="pf-v5-c-form-control">
|
|
129
|
+
<input
|
|
130
|
+
type="text"
|
|
131
|
+
value="2020-03-05"
|
|
132
|
+
id="expanded-input"
|
|
133
|
+
name="expanded-input"
|
|
134
|
+
aria-label="Date picker"
|
|
135
|
+
/>
|
|
136
|
+
</div>
|
|
133
137
|
</div>
|
|
134
138
|
<div class="pf-v5-c-input-group__item">
|
|
135
139
|
<button
|
|
@@ -157,14 +161,15 @@ cssPrefix: pf-v5-c-date-picker
|
|
|
157
161
|
<div class="pf-v5-c-date-picker__input">
|
|
158
162
|
<div class="pf-v5-c-input-group">
|
|
159
163
|
<div class="pf-v5-c-input-group__item pf-m-fill">
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
<div class="pf-v5-c-form-control">
|
|
165
|
+
<input
|
|
166
|
+
type="text"
|
|
167
|
+
value="November 20, 2020"
|
|
168
|
+
id="custom-width-input-input"
|
|
169
|
+
name="custom-width-input-input"
|
|
170
|
+
aria-label="Date picker"
|
|
171
|
+
/>
|
|
172
|
+
</div>
|
|
168
173
|
</div>
|
|
169
174
|
<div class="pf-v5-c-input-group__item">
|
|
170
175
|
<button
|
|
@@ -191,14 +196,15 @@ cssPrefix: pf-v5-c-date-picker
|
|
|
191
196
|
<div class="pf-v5-c-date-picker__input">
|
|
192
197
|
<div class="pf-v5-c-input-group">
|
|
193
198
|
<div class="pf-v5-c-input-group__item pf-m-fill">
|
|
194
|
-
<
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
<div class="pf-v5-c-form-control">
|
|
200
|
+
<input
|
|
201
|
+
type="text"
|
|
202
|
+
value="November 20, 2020"
|
|
203
|
+
id="custom-width-input-based-on-number-of-characters-input"
|
|
204
|
+
name="custom-width-input-based-on-number-of-characters-input"
|
|
205
|
+
aria-label="Date picker"
|
|
206
|
+
/>
|
|
207
|
+
</div>
|
|
202
208
|
</div>
|
|
203
209
|
<div class="pf-v5-c-input-group__item">
|
|
204
210
|
<button
|