@patternfly/patternfly 4.203.3 → 4.204.1
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/base/patternfly-variables.css +1 -0
- package/base/themes/dark/_variables.scss +1 -0
- package/components/Drawer/drawer.css +1 -1
- package/components/Drawer/drawer.scss +2 -2
- package/components/Menu/menu.css +1 -0
- package/components/Menu/menu.scss +1 -0
- package/components/NumberInput/number-input.css +11 -1
- package/components/NumberInput/number-input.scss +15 -1
- package/docs/components/NumberInput/examples/NumberInput.md +57 -6
- package/package.json +2 -2
- package/patternfly-addons.css +0 -18
- package/patternfly-base-no-reset.css +1 -0
- package/patternfly-base.css +1 -0
- package/patternfly-no-reset.css +14 -2
- package/patternfly.css +14 -2
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/sass-utilities/themes/dark/scss-variables.scss +1 -0
- package/utilities/Text/text.css +0 -18
- package/utilities/Text/themes/dark/text.scss +0 -3
|
@@ -297,6 +297,7 @@
|
|
|
297
297
|
--pf-global--danger-color--200: #fe6a5d;
|
|
298
298
|
--pf-global--link--Color: #1fa7f8;
|
|
299
299
|
--pf-global--link--Color--hover: #73bcf7;
|
|
300
|
+
--pf-global--link--Color--visited: #a18fff;
|
|
300
301
|
--pf-global--disabled-color--100: #57585a;
|
|
301
302
|
--pf-global--disabled-color--200: #444548;
|
|
302
303
|
--pf-global--disabled-color--300: #aaabac;
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
--pf-global--danger-color--200: #{$pf-global--danger-color--200};
|
|
41
41
|
--pf-global--link--Color: #{$pf-global--link--Color};
|
|
42
42
|
--pf-global--link--Color--hover: #{$pf-global--link--Color--hover};
|
|
43
|
+
--pf-global--link--Color--visited: #{$pf-global--link--Color--visited};
|
|
43
44
|
--pf-global--disabled-color--100: #{$pf-global--disabled-color--100};
|
|
44
45
|
--pf-global--disabled-color--200: #{$pf-global--disabled-color--200};
|
|
45
46
|
--pf-global--disabled-color--300: #{$pf-global--disabled-color--300};
|
|
@@ -373,9 +373,9 @@ $pf-c-drawer__panel--list--width: (25, 33, 50, 66, 75, 100);
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
// Page level drawer
|
|
376
|
+
// Page level drawer - move to page component in breaking change
|
|
377
377
|
.pf-c-drawer__body > .pf-c-page__main {
|
|
378
|
-
|
|
378
|
+
height: 100%;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
.pf-c-drawer__splitter {
|
package/components/Menu/menu.css
CHANGED
|
@@ -10,11 +10,21 @@
|
|
|
10
10
|
--pf-c-number-input__unit--c-input-group--MarginLeft: var(--pf-global--spacer--sm);
|
|
11
11
|
--pf-c-number-input__icon--FontSize: var(--pf-global--FontSize--xs);
|
|
12
12
|
--pf-c-number-input--c-form-control--width-base: calc(var(--pf-global--spacer--sm) * 2 + var(--pf-global--BorderWidth--sm) * 2);
|
|
13
|
+
--pf-c-number-input--c-form-control--width-icon: 0px;
|
|
14
|
+
--pf-c-number-input--m-status--c-form-control--width-icon: var(--pf-global--spacer--xl);
|
|
13
15
|
--pf-c-number-input--c-form-control--width-chars: 4;
|
|
14
|
-
--pf-c-number-input--c-form-control--Width:
|
|
16
|
+
--pf-c-number-input--c-form-control--Width:
|
|
17
|
+
calc(
|
|
18
|
+
calc(
|
|
19
|
+
var(--pf-c-number-input--c-form-control--width-base) + var(--pf-c-number-input--c-form-control--width-chars) * 1ch
|
|
20
|
+
) + var(--pf-c-number-input--c-form-control--width-icon)
|
|
21
|
+
);
|
|
15
22
|
display: inline-flex;
|
|
16
23
|
align-items: center;
|
|
17
24
|
}
|
|
25
|
+
.pf-c-number-input.pf-m-status {
|
|
26
|
+
--pf-c-number-input--c-form-control--width-icon: var(--pf-c-number-input--m-status--c-form-control--width-icon);
|
|
27
|
+
}
|
|
18
28
|
.pf-c-number-input .pf-c-form-control {
|
|
19
29
|
display: inline-flex;
|
|
20
30
|
width: var(--pf-c-number-input--c-form-control--Width);
|
|
@@ -7,12 +7,26 @@
|
|
|
7
7
|
|
|
8
8
|
// form control
|
|
9
9
|
--pf-c-number-input--c-form-control--width-base: calc(var(--pf-global--spacer--sm) * 2 + var(--pf-global--BorderWidth--sm) * 2); // element's padding
|
|
10
|
+
// stylelint-disable length-zero-no-unit
|
|
11
|
+
--pf-c-number-input--c-form-control--width-icon: 0px;
|
|
12
|
+
// stylelint-enable length-zero-no-unit
|
|
13
|
+
--pf-c-number-input--m-status--c-form-control--width-icon: var(--pf-global--spacer--xl); // extra width to accommodate a status icon
|
|
10
14
|
--pf-c-number-input--c-form-control--width-chars: 4;
|
|
11
|
-
--pf-c-number-input--c-form-control--Width:
|
|
15
|
+
--pf-c-number-input--c-form-control--Width:
|
|
16
|
+
calc(
|
|
17
|
+
calc(
|
|
18
|
+
var(--pf-c-number-input--c-form-control--width-base) + var(--pf-c-number-input--c-form-control--width-chars) * 1ch
|
|
19
|
+
) + var(--pf-c-number-input--c-form-control--width-icon)
|
|
20
|
+
);
|
|
12
21
|
|
|
13
22
|
display: inline-flex;
|
|
14
23
|
align-items: center;
|
|
15
24
|
|
|
25
|
+
// This modifier can be removed in a breaking change and the extra space created can always be included.
|
|
26
|
+
&.pf-m-status {
|
|
27
|
+
--pf-c-number-input--c-form-control--width-icon: var(--pf-c-number-input--m-status--c-form-control--width-icon);
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
.pf-c-form-control {
|
|
17
31
|
display: inline-flex;
|
|
18
32
|
width: var(--pf-c-number-input--c-form-control--Width);
|
|
@@ -191,6 +191,56 @@ cssPrefix: pf-c-number-input
|
|
|
191
191
|
|
|
192
192
|
```
|
|
193
193
|
|
|
194
|
+
### With status
|
|
195
|
+
|
|
196
|
+
```html
|
|
197
|
+
<div class="pf-c-number-input pf-m-status">
|
|
198
|
+
<div class="pf-c-input-group">
|
|
199
|
+
<button class="pf-c-button pf-m-control" type="button" aria-label="Minus">
|
|
200
|
+
<span class="pf-c-number-input__icon">
|
|
201
|
+
<i class="fas fa-minus" aria-hidden="true"></i>
|
|
202
|
+
</span>
|
|
203
|
+
</button>
|
|
204
|
+
<input
|
|
205
|
+
class="pf-c-form-control"
|
|
206
|
+
type="number"
|
|
207
|
+
value="90"
|
|
208
|
+
name="number-input-status-name"
|
|
209
|
+
aria-label="Number input"
|
|
210
|
+
/>
|
|
211
|
+
<button class="pf-c-button pf-m-control" type="button" aria-label="Plus">
|
|
212
|
+
<span class="pf-c-number-input__icon">
|
|
213
|
+
<i class="fas fa-plus" aria-hidden="true"></i>
|
|
214
|
+
</span>
|
|
215
|
+
</button>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
<br />
|
|
219
|
+
<br />
|
|
220
|
+
<div class="pf-c-number-input pf-m-status">
|
|
221
|
+
<div class="pf-c-input-group">
|
|
222
|
+
<button class="pf-c-button pf-m-control" type="button" aria-label="Minus">
|
|
223
|
+
<span class="pf-c-number-input__icon">
|
|
224
|
+
<i class="fas fa-minus" aria-hidden="true"></i>
|
|
225
|
+
</span>
|
|
226
|
+
</button>
|
|
227
|
+
<input
|
|
228
|
+
class="pf-c-form-control pf-m-warning"
|
|
229
|
+
type="number"
|
|
230
|
+
value="90"
|
|
231
|
+
name="number-input-status-warning-name"
|
|
232
|
+
aria-label="Number input"
|
|
233
|
+
/>
|
|
234
|
+
<button class="pf-c-button pf-m-control" type="button" aria-label="Plus">
|
|
235
|
+
<span class="pf-c-number-input__icon">
|
|
236
|
+
<i class="fas fa-plus" aria-hidden="true"></i>
|
|
237
|
+
</span>
|
|
238
|
+
</button>
|
|
239
|
+
</div>
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
|
|
194
244
|
### Varying sizes
|
|
195
245
|
|
|
196
246
|
```html
|
|
@@ -311,9 +361,10 @@ cssPrefix: pf-c-number-input
|
|
|
311
361
|
|
|
312
362
|
### Usage
|
|
313
363
|
|
|
314
|
-
| Class | Applied
|
|
315
|
-
| -------------------------------------------------- | -------------------- |
|
|
316
|
-
| `.pf-c-number-input` | `<div>` | Initiates the number input component.
|
|
317
|
-
| `.pf-c-number-input__icon` | `<span>` | Initiates the number input icon.
|
|
318
|
-
| `.pf-c-number-input__unit` | `<span>` | Initiates the number input unit.
|
|
319
|
-
|
|
|
364
|
+
| Class | Applied to | Outcome |
|
|
365
|
+
| -------------------------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
366
|
+
| `.pf-c-number-input` | `<div>` | Initiates the number input component. |
|
|
367
|
+
| `.pf-c-number-input__icon` | `<span>` | Initiates the number input icon. |
|
|
368
|
+
| `.pf-c-number-input__unit` | `<span>` | Initiates the number input unit. |
|
|
369
|
+
| `.pf-m-status` | `.pf-c-number-input` | Modifies the width to create enough space for a status icon to be included in the form control portion of the number input. **Required** if a status icon may be shown, even if the icon is not currently shown. |
|
|
370
|
+
| `--pf-c-number-input--c-form-control--width-chars` | `.pf-c-number-input` | Specifies the number of characters to show in the input. |
|
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": "4.
|
|
4
|
+
"version": "4.204.1",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"stylelint-scss": "^4.0.0",
|
|
80
80
|
"stylelint-value-no-unknown-custom-properties": "^3.0.0",
|
|
81
81
|
"surge": "^0.21.3",
|
|
82
|
-
"@patternfly/documentation-framework": "1.1.
|
|
82
|
+
"@patternfly/documentation-framework": "1.1.3",
|
|
83
83
|
"unified": "^9.2.0",
|
|
84
84
|
"webpack": "^4.43.0"
|
|
85
85
|
},
|
package/patternfly-addons.css
CHANGED
|
@@ -8504,9 +8504,6 @@
|
|
|
8504
8504
|
:where(.pf-theme-dark) .pf-u-color-light-200 {
|
|
8505
8505
|
color: var(--pf-global--Color-200) !important;
|
|
8506
8506
|
}
|
|
8507
|
-
:where(.pf-theme-dark) .pf-u-link-color-visited {
|
|
8508
|
-
color: var(--pf-global--palette--purple-200) !important;
|
|
8509
|
-
}
|
|
8510
8507
|
:where(.pf-theme-dark) .pf-u-default-color-300 {
|
|
8511
8508
|
color: var(--pf-global--default-color--100) !important;
|
|
8512
8509
|
}
|
|
@@ -8532,9 +8529,6 @@
|
|
|
8532
8529
|
:where(.pf-theme-dark) .pf-u-color-light-200-on-sm {
|
|
8533
8530
|
color: var(--pf-global--Color-200) !important;
|
|
8534
8531
|
}
|
|
8535
|
-
:where(.pf-theme-dark) .pf-u-link-color-visited-on-sm {
|
|
8536
|
-
color: var(--pf-global--palette--purple-200) !important;
|
|
8537
|
-
}
|
|
8538
8532
|
:where(.pf-theme-dark) .pf-u-default-color-300-on-sm {
|
|
8539
8533
|
color: var(--pf-global--default-color--100) !important;
|
|
8540
8534
|
}
|
|
@@ -8561,9 +8555,6 @@
|
|
|
8561
8555
|
:where(.pf-theme-dark) .pf-u-color-light-200-on-md {
|
|
8562
8556
|
color: var(--pf-global--Color-200) !important;
|
|
8563
8557
|
}
|
|
8564
|
-
:where(.pf-theme-dark) .pf-u-link-color-visited-on-md {
|
|
8565
|
-
color: var(--pf-global--palette--purple-200) !important;
|
|
8566
|
-
}
|
|
8567
8558
|
:where(.pf-theme-dark) .pf-u-default-color-300-on-md {
|
|
8568
8559
|
color: var(--pf-global--default-color--100) !important;
|
|
8569
8560
|
}
|
|
@@ -8590,9 +8581,6 @@
|
|
|
8590
8581
|
:where(.pf-theme-dark) .pf-u-color-light-200-on-lg {
|
|
8591
8582
|
color: var(--pf-global--Color-200) !important;
|
|
8592
8583
|
}
|
|
8593
|
-
:where(.pf-theme-dark) .pf-u-link-color-visited-on-lg {
|
|
8594
|
-
color: var(--pf-global--palette--purple-200) !important;
|
|
8595
|
-
}
|
|
8596
8584
|
:where(.pf-theme-dark) .pf-u-default-color-300-on-lg {
|
|
8597
8585
|
color: var(--pf-global--default-color--100) !important;
|
|
8598
8586
|
}
|
|
@@ -8619,9 +8607,6 @@
|
|
|
8619
8607
|
:where(.pf-theme-dark) .pf-u-color-light-200-on-xl {
|
|
8620
8608
|
color: var(--pf-global--Color-200) !important;
|
|
8621
8609
|
}
|
|
8622
|
-
:where(.pf-theme-dark) .pf-u-link-color-visited-on-xl {
|
|
8623
|
-
color: var(--pf-global--palette--purple-200) !important;
|
|
8624
|
-
}
|
|
8625
8610
|
:where(.pf-theme-dark) .pf-u-default-color-300-on-xl {
|
|
8626
8611
|
color: var(--pf-global--default-color--100) !important;
|
|
8627
8612
|
}
|
|
@@ -8648,9 +8633,6 @@
|
|
|
8648
8633
|
:where(.pf-theme-dark) .pf-u-color-light-200-on-2xl {
|
|
8649
8634
|
color: var(--pf-global--Color-200) !important;
|
|
8650
8635
|
}
|
|
8651
|
-
:where(.pf-theme-dark) .pf-u-link-color-visited-on-2xl {
|
|
8652
|
-
color: var(--pf-global--palette--purple-200) !important;
|
|
8653
|
-
}
|
|
8654
8636
|
:where(.pf-theme-dark) .pf-u-default-color-300-on-2xl {
|
|
8655
8637
|
color: var(--pf-global--default-color--100) !important;
|
|
8656
8638
|
}
|
|
@@ -338,6 +338,7 @@
|
|
|
338
338
|
--pf-global--danger-color--200: #fe6a5d;
|
|
339
339
|
--pf-global--link--Color: #1fa7f8;
|
|
340
340
|
--pf-global--link--Color--hover: #73bcf7;
|
|
341
|
+
--pf-global--link--Color--visited: #a18fff;
|
|
341
342
|
--pf-global--disabled-color--100: #57585a;
|
|
342
343
|
--pf-global--disabled-color--200: #444548;
|
|
343
344
|
--pf-global--disabled-color--300: #aaabac;
|
package/patternfly-base.css
CHANGED
|
@@ -338,6 +338,7 @@
|
|
|
338
338
|
--pf-global--danger-color--200: #fe6a5d;
|
|
339
339
|
--pf-global--link--Color: #1fa7f8;
|
|
340
340
|
--pf-global--link--Color--hover: #73bcf7;
|
|
341
|
+
--pf-global--link--Color--visited: #a18fff;
|
|
341
342
|
--pf-global--disabled-color--100: #57585a;
|
|
342
343
|
--pf-global--disabled-color--200: #444548;
|
|
343
344
|
--pf-global--disabled-color--300: #aaabac;
|
package/patternfly-no-reset.css
CHANGED
|
@@ -447,6 +447,7 @@
|
|
|
447
447
|
--pf-global--danger-color--200: #fe6a5d;
|
|
448
448
|
--pf-global--link--Color: #1fa7f8;
|
|
449
449
|
--pf-global--link--Color--hover: #73bcf7;
|
|
450
|
+
--pf-global--link--Color--visited: #a18fff;
|
|
450
451
|
--pf-global--disabled-color--100: #57585a;
|
|
451
452
|
--pf-global--disabled-color--200: #444548;
|
|
452
453
|
--pf-global--disabled-color--300: #aaabac;
|
|
@@ -13133,7 +13134,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
13133
13134
|
}
|
|
13134
13135
|
|
|
13135
13136
|
.pf-c-drawer__body > .pf-c-page__main {
|
|
13136
|
-
|
|
13137
|
+
height: 100%;
|
|
13137
13138
|
}
|
|
13138
13139
|
|
|
13139
13140
|
.pf-c-drawer__splitter {
|
|
@@ -18388,6 +18389,7 @@ ul.pf-c-list {
|
|
|
18388
18389
|
background-color: transparent;
|
|
18389
18390
|
}
|
|
18390
18391
|
.pf-c-menu.pf-m-drilldown .pf-c-menu__list-item:not(.pf-m-current-path) .pf-c-menu {
|
|
18392
|
+
display: none;
|
|
18391
18393
|
visibility: hidden;
|
|
18392
18394
|
}
|
|
18393
18395
|
.pf-c-menu.pf-m-drilldown .pf-c-menu__item {
|
|
@@ -31098,11 +31100,21 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
31098
31100
|
--pf-c-number-input__unit--c-input-group--MarginLeft: var(--pf-global--spacer--sm);
|
|
31099
31101
|
--pf-c-number-input__icon--FontSize: var(--pf-global--FontSize--xs);
|
|
31100
31102
|
--pf-c-number-input--c-form-control--width-base: calc(var(--pf-global--spacer--sm) * 2 + var(--pf-global--BorderWidth--sm) * 2);
|
|
31103
|
+
--pf-c-number-input--c-form-control--width-icon: 0px;
|
|
31104
|
+
--pf-c-number-input--m-status--c-form-control--width-icon: var(--pf-global--spacer--xl);
|
|
31101
31105
|
--pf-c-number-input--c-form-control--width-chars: 4;
|
|
31102
|
-
--pf-c-number-input--c-form-control--Width:
|
|
31106
|
+
--pf-c-number-input--c-form-control--Width:
|
|
31107
|
+
calc(
|
|
31108
|
+
calc(
|
|
31109
|
+
var(--pf-c-number-input--c-form-control--width-base) + var(--pf-c-number-input--c-form-control--width-chars) * 1ch
|
|
31110
|
+
) + var(--pf-c-number-input--c-form-control--width-icon)
|
|
31111
|
+
);
|
|
31103
31112
|
display: inline-flex;
|
|
31104
31113
|
align-items: center;
|
|
31105
31114
|
}
|
|
31115
|
+
.pf-c-number-input.pf-m-status {
|
|
31116
|
+
--pf-c-number-input--c-form-control--width-icon: var(--pf-c-number-input--m-status--c-form-control--width-icon);
|
|
31117
|
+
}
|
|
31106
31118
|
.pf-c-number-input .pf-c-form-control {
|
|
31107
31119
|
display: inline-flex;
|
|
31108
31120
|
width: var(--pf-c-number-input--c-form-control--Width);
|
package/patternfly.css
CHANGED
|
@@ -447,6 +447,7 @@
|
|
|
447
447
|
--pf-global--danger-color--200: #fe6a5d;
|
|
448
448
|
--pf-global--link--Color: #1fa7f8;
|
|
449
449
|
--pf-global--link--Color--hover: #73bcf7;
|
|
450
|
+
--pf-global--link--Color--visited: #a18fff;
|
|
450
451
|
--pf-global--disabled-color--100: #57585a;
|
|
451
452
|
--pf-global--disabled-color--200: #444548;
|
|
452
453
|
--pf-global--disabled-color--300: #aaabac;
|
|
@@ -13260,7 +13261,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
13260
13261
|
}
|
|
13261
13262
|
|
|
13262
13263
|
.pf-c-drawer__body > .pf-c-page__main {
|
|
13263
|
-
|
|
13264
|
+
height: 100%;
|
|
13264
13265
|
}
|
|
13265
13266
|
|
|
13266
13267
|
.pf-c-drawer__splitter {
|
|
@@ -18515,6 +18516,7 @@ ul.pf-c-list {
|
|
|
18515
18516
|
background-color: transparent;
|
|
18516
18517
|
}
|
|
18517
18518
|
.pf-c-menu.pf-m-drilldown .pf-c-menu__list-item:not(.pf-m-current-path) .pf-c-menu {
|
|
18519
|
+
display: none;
|
|
18518
18520
|
visibility: hidden;
|
|
18519
18521
|
}
|
|
18520
18522
|
.pf-c-menu.pf-m-drilldown .pf-c-menu__item {
|
|
@@ -31225,11 +31227,21 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
31225
31227
|
--pf-c-number-input__unit--c-input-group--MarginLeft: var(--pf-global--spacer--sm);
|
|
31226
31228
|
--pf-c-number-input__icon--FontSize: var(--pf-global--FontSize--xs);
|
|
31227
31229
|
--pf-c-number-input--c-form-control--width-base: calc(var(--pf-global--spacer--sm) * 2 + var(--pf-global--BorderWidth--sm) * 2);
|
|
31230
|
+
--pf-c-number-input--c-form-control--width-icon: 0px;
|
|
31231
|
+
--pf-c-number-input--m-status--c-form-control--width-icon: var(--pf-global--spacer--xl);
|
|
31228
31232
|
--pf-c-number-input--c-form-control--width-chars: 4;
|
|
31229
|
-
--pf-c-number-input--c-form-control--Width:
|
|
31233
|
+
--pf-c-number-input--c-form-control--Width:
|
|
31234
|
+
calc(
|
|
31235
|
+
calc(
|
|
31236
|
+
var(--pf-c-number-input--c-form-control--width-base) + var(--pf-c-number-input--c-form-control--width-chars) * 1ch
|
|
31237
|
+
) + var(--pf-c-number-input--c-form-control--width-icon)
|
|
31238
|
+
);
|
|
31230
31239
|
display: inline-flex;
|
|
31231
31240
|
align-items: center;
|
|
31232
31241
|
}
|
|
31242
|
+
.pf-c-number-input.pf-m-status {
|
|
31243
|
+
--pf-c-number-input--c-form-control--width-icon: var(--pf-c-number-input--m-status--c-form-control--width-icon);
|
|
31244
|
+
}
|
|
31233
31245
|
.pf-c-number-input .pf-c-form-control {
|
|
31234
31246
|
display: inline-flex;
|
|
31235
31247
|
width: var(--pf-c-number-input--c-form-control--Width);
|