@patternfly/patternfly 6.0.0-alpha.182 → 6.0.0-alpha.184
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/Table/table-grid.css +5 -0
- package/components/Table/table-grid.scss +1 -0
- package/components/Table/table-tree-view.css +20 -0
- package/components/Table/table-tree-view.scss +5 -0
- package/components/TextInputGroup/text-input-group.css +67 -15
- package/components/TextInputGroup/text-input-group.scss +78 -21
- package/components/_index.css +92 -15
- package/docs/components/TextInputGroup/examples/TextInputGroup.md +80 -0
- package/package.json +1 -1
- package/patternfly-no-globals.css +92 -15
- package/patternfly.css +92 -15
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
|
@@ -155,6 +155,7 @@
|
|
|
155
155
|
grid-column: 2;
|
|
156
156
|
}
|
|
157
157
|
.pf-m-grid.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
158
|
+
position: revert;
|
|
158
159
|
font-weight: bold;
|
|
159
160
|
text-align: start;
|
|
160
161
|
content: attr(data-label);
|
|
@@ -454,6 +455,7 @@
|
|
|
454
455
|
grid-column: 2;
|
|
455
456
|
}
|
|
456
457
|
.pf-m-grid-md.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
458
|
+
position: revert;
|
|
457
459
|
font-weight: bold;
|
|
458
460
|
text-align: start;
|
|
459
461
|
content: attr(data-label);
|
|
@@ -756,6 +758,7 @@
|
|
|
756
758
|
grid-column: 2;
|
|
757
759
|
}
|
|
758
760
|
.pf-m-grid-lg.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
761
|
+
position: revert;
|
|
759
762
|
font-weight: bold;
|
|
760
763
|
text-align: start;
|
|
761
764
|
content: attr(data-label);
|
|
@@ -1058,6 +1061,7 @@
|
|
|
1058
1061
|
grid-column: 2;
|
|
1059
1062
|
}
|
|
1060
1063
|
.pf-m-grid-xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
1064
|
+
position: revert;
|
|
1061
1065
|
font-weight: bold;
|
|
1062
1066
|
text-align: start;
|
|
1063
1067
|
content: attr(data-label);
|
|
@@ -1360,6 +1364,7 @@
|
|
|
1360
1364
|
grid-column: 2;
|
|
1361
1365
|
}
|
|
1362
1366
|
.pf-m-grid-2xl.pf-v6-c-table :where(.pf-v6-c-table__th, .pf-v6-c-table__td)[data-label]::before {
|
|
1367
|
+
position: revert;
|
|
1363
1368
|
font-weight: bold;
|
|
1364
1369
|
text-align: start;
|
|
1365
1370
|
content: attr(data-label);
|
|
@@ -178,10 +178,14 @@
|
|
|
178
178
|
grid-column: 2;
|
|
179
179
|
}
|
|
180
180
|
.pf-m-tree-view-grid.pf-v6-c-table td:where(.pf-v6-c-table__td)[data-label]::before {
|
|
181
|
+
position: revert;
|
|
181
182
|
font-weight: var(--pf-t--global--font--weight--body--bold);
|
|
182
183
|
text-align: start;
|
|
183
184
|
content: attr(data-label);
|
|
184
185
|
}
|
|
186
|
+
.pf-m-tree-view-grid.pf-v6-c-table .pf-v6-c-table__tr > :where(th, td).pf-m-border-right::before {
|
|
187
|
+
border-inline-end: 0;
|
|
188
|
+
}
|
|
185
189
|
.pf-m-tree-view-grid.pf-v6-c-table tr:where(.pf-v6-c-table__tr).pf-m-tree-view-details-expanded {
|
|
186
190
|
padding-block-end: var(--pf-v6-c-table--m-tree-view-grid--m-tree-view-details-expanded--PaddingBlockEnd);
|
|
187
191
|
}
|
|
@@ -318,10 +322,14 @@
|
|
|
318
322
|
grid-column: 2;
|
|
319
323
|
}
|
|
320
324
|
.pf-m-tree-view-grid-md.pf-v6-c-table td:where(.pf-v6-c-table__td)[data-label]::before {
|
|
325
|
+
position: revert;
|
|
321
326
|
font-weight: var(--pf-t--global--font--weight--body--bold);
|
|
322
327
|
text-align: start;
|
|
323
328
|
content: attr(data-label);
|
|
324
329
|
}
|
|
330
|
+
.pf-m-tree-view-grid-md.pf-v6-c-table .pf-v6-c-table__tr > :where(th, td).pf-m-border-right::before {
|
|
331
|
+
border-inline-end: 0;
|
|
332
|
+
}
|
|
325
333
|
.pf-m-tree-view-grid-md.pf-v6-c-table tr:where(.pf-v6-c-table__tr).pf-m-tree-view-details-expanded {
|
|
326
334
|
padding-block-end: var(--pf-v6-c-table--m-tree-view-grid--m-tree-view-details-expanded--PaddingBlockEnd);
|
|
327
335
|
}
|
|
@@ -459,10 +467,14 @@
|
|
|
459
467
|
grid-column: 2;
|
|
460
468
|
}
|
|
461
469
|
.pf-m-tree-view-grid-lg.pf-v6-c-table td:where(.pf-v6-c-table__td)[data-label]::before {
|
|
470
|
+
position: revert;
|
|
462
471
|
font-weight: var(--pf-t--global--font--weight--body--bold);
|
|
463
472
|
text-align: start;
|
|
464
473
|
content: attr(data-label);
|
|
465
474
|
}
|
|
475
|
+
.pf-m-tree-view-grid-lg.pf-v6-c-table .pf-v6-c-table__tr > :where(th, td).pf-m-border-right::before {
|
|
476
|
+
border-inline-end: 0;
|
|
477
|
+
}
|
|
466
478
|
.pf-m-tree-view-grid-lg.pf-v6-c-table tr:where(.pf-v6-c-table__tr).pf-m-tree-view-details-expanded {
|
|
467
479
|
padding-block-end: var(--pf-v6-c-table--m-tree-view-grid--m-tree-view-details-expanded--PaddingBlockEnd);
|
|
468
480
|
}
|
|
@@ -600,10 +612,14 @@
|
|
|
600
612
|
grid-column: 2;
|
|
601
613
|
}
|
|
602
614
|
.pf-m-tree-view-grid-xl.pf-v6-c-table td:where(.pf-v6-c-table__td)[data-label]::before {
|
|
615
|
+
position: revert;
|
|
603
616
|
font-weight: var(--pf-t--global--font--weight--body--bold);
|
|
604
617
|
text-align: start;
|
|
605
618
|
content: attr(data-label);
|
|
606
619
|
}
|
|
620
|
+
.pf-m-tree-view-grid-xl.pf-v6-c-table .pf-v6-c-table__tr > :where(th, td).pf-m-border-right::before {
|
|
621
|
+
border-inline-end: 0;
|
|
622
|
+
}
|
|
607
623
|
.pf-m-tree-view-grid-xl.pf-v6-c-table tr:where(.pf-v6-c-table__tr).pf-m-tree-view-details-expanded {
|
|
608
624
|
padding-block-end: var(--pf-v6-c-table--m-tree-view-grid--m-tree-view-details-expanded--PaddingBlockEnd);
|
|
609
625
|
}
|
|
@@ -741,10 +757,14 @@
|
|
|
741
757
|
grid-column: 2;
|
|
742
758
|
}
|
|
743
759
|
.pf-m-tree-view-grid-2xl.pf-v6-c-table td:where(.pf-v6-c-table__td)[data-label]::before {
|
|
760
|
+
position: revert;
|
|
744
761
|
font-weight: var(--pf-t--global--font--weight--body--bold);
|
|
745
762
|
text-align: start;
|
|
746
763
|
content: attr(data-label);
|
|
747
764
|
}
|
|
765
|
+
.pf-m-tree-view-grid-2xl.pf-v6-c-table .pf-v6-c-table__tr > :where(th, td).pf-m-border-right::before {
|
|
766
|
+
border-inline-end: 0;
|
|
767
|
+
}
|
|
748
768
|
.pf-m-tree-view-grid-2xl.pf-v6-c-table tr:where(.pf-v6-c-table__tr).pf-m-tree-view-details-expanded {
|
|
749
769
|
padding-block-end: var(--pf-v6-c-table--m-tree-view-grid--m-tree-view-details-expanded--PaddingBlockEnd);
|
|
750
770
|
}
|
|
@@ -257,12 +257,17 @@ $pf-v6-c-tree-view--MaxDepth: 10;
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
&::before {
|
|
260
|
+
position: revert;
|
|
260
261
|
font-weight: var(--pf-t--global--font--weight--body--bold);
|
|
261
262
|
text-align: start;
|
|
262
263
|
content: attr(data-label);
|
|
263
264
|
}
|
|
264
265
|
}
|
|
265
266
|
|
|
267
|
+
.#{$table}__tr > :where(th, td).pf-m-border-right::before {
|
|
268
|
+
border-inline-end: 0;
|
|
269
|
+
}
|
|
270
|
+
|
|
266
271
|
// - Table tree view tr tree view details expanded
|
|
267
272
|
tr:where(.#{$table}__tr).pf-m-tree-view-details-expanded {
|
|
268
273
|
padding-block-end: var(--#{$table}--m-tree-view-grid--m-tree-view-details-expanded--PaddingBlockEnd);
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
:where(:root, .pf-v6-c-text-input-group) {
|
|
2
2
|
--pf-v6-c-text-input-group--BackgroundColor: var(--pf-t--global--background--color--control--default);
|
|
3
3
|
--pf-v6-c-text-input-group--BorderColor: var(--pf-t--global--border--color--default);
|
|
4
|
+
--pf-v6-c-text-input-group--m-success--BorderColor: var(--pf-t--global--border--color--status--success--default);
|
|
5
|
+
--pf-v6-c-text-input-group--m-warning--BorderColor: var(--pf-t--global--border--color--status--warning--default);
|
|
6
|
+
--pf-v6-c-text-input-group--m-error--BorderColor: var(--pf-t--global--border--color--status--danger--default);
|
|
4
7
|
--pf-v6-c-text-input-group--BorderWidth: var(--pf-t--global--border--width--control--default);
|
|
8
|
+
--pf-v6-c-text-input-group__LineHeight: var(--pf-t--global--font--line-height--body);
|
|
9
|
+
--pf-v6-c-text-input-group__FontSize: var(--pf-t--global--font--size--body--default);
|
|
5
10
|
--pf-v6-c-text-input-group--m-hover--BorderColor: var(--pf-t--global--border--color--hover);
|
|
11
|
+
--pf-v6-c-text-input-group--m-hover--m-success--BorderColor: var(--pf-t--global--border--color--status--success--hover);
|
|
12
|
+
--pf-v6-c-text-input-group--m-hover--m-warning--BorderColor: var(--pf-t--global--border--color--status--warning--hover);
|
|
13
|
+
--pf-v6-c-text-input-group--m-hover--m-error--BorderColor: var(--pf-t--global--border--color--status--danger--hover);
|
|
6
14
|
--pf-v6-c-text-input-group__main--first-child--not--text-input--MarginInlineStart: var(--pf-t--global--spacer--xs);
|
|
7
15
|
--pf-v6-c-text-input-group__main--m-icon__text-input--PaddingInlineStart: var(--pf-t--global--spacer--xl);
|
|
16
|
+
--pf-v6-c-text-input-group--status__text-input--PaddingInlineEnd: var(--pf-t--global--spacer--xl);
|
|
8
17
|
--pf-v6-c-text-input-group__main--RowGap: var(--pf-t--global--spacer--xs);
|
|
9
18
|
--pf-v6-c-text-input-group__main--ColumnGap: var(--pf-t--global--spacer--xs);
|
|
10
19
|
--pf-v6-c-text-input-group__text--BorderRadius--base: var(--pf-t--global--border--radius--small);
|
|
@@ -25,7 +34,14 @@
|
|
|
25
34
|
--pf-v6-c-text-input-group__text-input--BackgroundColor: transparent;
|
|
26
35
|
--pf-v6-c-text-input-group__text-input--OutlineOffset: -6px;
|
|
27
36
|
--pf-v6-c-text-input-group__icon--InsetInlineStart: var(--pf-t--global--spacer--sm);
|
|
37
|
+
--pf-v6-c-text-input-group__icon--m-status--InsetInlineEnd: var(--pf-t--global--spacer--sm);
|
|
28
38
|
--pf-v6-c-text-input-group__icon--Color: var(--pf-t--global--icon--color--regular);
|
|
39
|
+
--pf-v6-c-text-input-group--m-disabled__icon--Color: var(--pf-t--global--icon--color--disabled);
|
|
40
|
+
--pf-v6-c-text-input-group__icon--m-status--Color: var(--pf-t--global--icon--color--regular);
|
|
41
|
+
--pf-v6-c-text-input-group--m-disabled__icon--m-status--Color: var(--pf-t--global--icon--color--disabled);
|
|
42
|
+
--pf-v6-c-text-input-group__main--m-success__icon--m-status--Color: var(--pf-t--global--icon--color--status--success--default);
|
|
43
|
+
--pf-v6-c-text-input-group__main--m-warning__icon--m-status--Color: var(--pf-t--global--icon--color--status--warning--default);
|
|
44
|
+
--pf-v6-c-text-input-group__main--m-error__icon--m-status--Color: var(--pf-t--global--icon--color--status--danger--default);
|
|
29
45
|
--pf-v6-c-text-input-group__icon--TranslateY: -50%;
|
|
30
46
|
--pf-v6-c-text-input-group__utilities--child--MarginInlineStart: var(--pf-t--global--spacer--xs);
|
|
31
47
|
--pf-v6-c-text-input-group__utilities--c-button--PaddingInlineEnd: var(--pf-t--global--spacer--xs);
|
|
@@ -38,24 +54,60 @@
|
|
|
38
54
|
position: relative;
|
|
39
55
|
display: flex;
|
|
40
56
|
width: 100%;
|
|
57
|
+
font-size: var(--pf-v6-c-text-input-group__FontSize);
|
|
58
|
+
line-height: var(--pf-v6-c-text-input-group__LineHeight);
|
|
41
59
|
color: var(--pf-v6-c-text-input-group--Color, inherit);
|
|
42
60
|
background-color: var(--pf-v6-c-text-input-group--BackgroundColor);
|
|
61
|
+
border-start-start-radius: var(--pf-v6-c-text-input-group__text--BorderStartStartRadius);
|
|
62
|
+
border-start-end-radius: var(--pf-v6-c-text-input-group__text--BorderStartEndRadius);
|
|
63
|
+
border-end-start-radius: var(--pf-v6-c-text-input-group__text--BorderEndStartRadius);
|
|
64
|
+
border-end-end-radius: var(--pf-v6-c-text-input-group__text--BorderEndEndRadius);
|
|
43
65
|
}
|
|
44
|
-
.pf-v6-c-text-input-group
|
|
45
|
-
|
|
66
|
+
.pf-v6-c-text-input-group::before {
|
|
67
|
+
position: absolute;
|
|
68
|
+
inset: 0;
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
content: "";
|
|
71
|
+
border: var(--pf-v6-c-text-input-group--BorderWidth) solid var(--pf-v6-c-text-input-group--BorderColor);
|
|
72
|
+
border-start-start-radius: var(--pf-v6-c-text-input-group__text--BorderStartStartRadius);
|
|
73
|
+
border-start-end-radius: var(--pf-v6-c-text-input-group__text--BorderStartEndRadius);
|
|
74
|
+
border-end-start-radius: var(--pf-v6-c-text-input-group__text--BorderEndStartRadius);
|
|
75
|
+
border-end-end-radius: var(--pf-v6-c-text-input-group__text--BorderEndEndRadius);
|
|
46
76
|
}
|
|
47
77
|
.pf-v6-c-text-input-group.pf-m-disabled {
|
|
48
78
|
--pf-v6-c-text-input-group--Color: var(--pf-v6-c-text-input-group--m-disabled--Color);
|
|
49
|
-
--pf-v6-c-text-input-group__icon--Color: var(--pf-v6-c-text-input-group--m-
|
|
79
|
+
--pf-v6-c-text-input-group__icon--Color: var(--pf-v6-c-text-input-group--m-disabled__icon--Color);
|
|
80
|
+
--pf-v6-c-text-input-group__icon--m-status--Color: var(--pf-v6-c-text-input-group--m-disabled__icon--m-status--Color);
|
|
50
81
|
--pf-v6-c-text-input-group--BackgroundColor: var(--pf-v6-c-text-input-group--m-disabled--BackgroundColor);
|
|
51
82
|
pointer-events: none;
|
|
52
83
|
}
|
|
53
84
|
.pf-v6-c-text-input-group.pf-m-plain {
|
|
54
85
|
--pf-v6-c-text-input-group--BackgroundColor: transparent;
|
|
55
86
|
}
|
|
56
|
-
.pf-v6-c-text-input-group.pf-m-plain
|
|
87
|
+
.pf-v6-c-text-input-group.pf-m-plain::before {
|
|
57
88
|
border: 0;
|
|
58
89
|
}
|
|
90
|
+
.pf-v6-c-text-input-group.pf-m-success {
|
|
91
|
+
--pf-v6-c-text-input-group--BorderColor: var(--pf-v6-c-text-input-group--m-success--BorderColor);
|
|
92
|
+
--pf-v6-c-text-input-group--m-hover--BorderColor: var(--pf-v6-c-text-input-group--m-hover--m-success--BorderColor);
|
|
93
|
+
--pf-v6-c-text-input-group__icon--m-status--Color: var(--pf-v6-c-text-input-group__main--m-success__icon--m-status--Color);
|
|
94
|
+
}
|
|
95
|
+
.pf-v6-c-text-input-group.pf-m-warning {
|
|
96
|
+
--pf-v6-c-text-input-group--BorderColor: var(--pf-v6-c-text-input-group--m-warning--BorderColor);
|
|
97
|
+
--pf-v6-c-text-input-group--m-hover--BorderColor: var(--pf-v6-c-text-input-group--m-hover--m-warning--BorderColor);
|
|
98
|
+
--pf-v6-c-text-input-group__icon--m-status--Color: var(--pf-v6-c-text-input-group__main--m-warning__icon--m-status--Color);
|
|
99
|
+
}
|
|
100
|
+
.pf-v6-c-text-input-group.pf-m-error {
|
|
101
|
+
--pf-v6-c-text-input-group--BorderColor: var(--pf-v6-c-text-input-group--m-error--BorderColor);
|
|
102
|
+
--pf-v6-c-text-input-group--m-hover--BorderColor: var(--pf-v6-c-text-input-group--m-hover--m-error--BorderColor);
|
|
103
|
+
--pf-v6-c-text-input-group__icon--m-status--Color: var(--pf-v6-c-text-input-group__main--m-error__icon--m-status--Color);
|
|
104
|
+
}
|
|
105
|
+
.pf-v6-c-text-input-group:hover {
|
|
106
|
+
--pf-v6-c-text-input-group--BorderColor: var(--pf-v6-c-text-input-group--m-hover--BorderColor);
|
|
107
|
+
}
|
|
108
|
+
.pf-v6-c-text-input-group:where(.pf-m-success, .pf-m-warning, .pf-m-error) {
|
|
109
|
+
--pf-v6-c-text-input-group__text-input--PaddingInlineEnd: var(--pf-v6-c-text-input-group--status__text-input--PaddingInlineEnd);
|
|
110
|
+
}
|
|
59
111
|
|
|
60
112
|
.pf-v6-c-text-input-group__main {
|
|
61
113
|
display: flex;
|
|
@@ -65,7 +117,12 @@
|
|
|
65
117
|
min-width: 0;
|
|
66
118
|
}
|
|
67
119
|
.pf-v6-c-text-input-group__main.pf-m-icon {
|
|
120
|
+
--pf-v6-c-text-input-group__text--Position: relative;
|
|
68
121
|
--pf-v6-c-text-input-group__text-input--PaddingInlineStart: var(--pf-v6-c-text-input-group__main--m-icon__text-input--PaddingInlineStart);
|
|
122
|
+
display: inline-flex;
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
min-width: calc(var(--pf-v6-c-text-input-group__LineHeight) * var(--pf-v6-c-text-input-group__FontSize));
|
|
69
126
|
}
|
|
70
127
|
.pf-v6-c-text-input-group__main > :first-child:not(.pf-v6-c-text-input-group__text) {
|
|
71
128
|
padding-block-start: var(--pf-v6-c-text-input-group__main--first-child--not--text-input--PaddingBlockStart);
|
|
@@ -79,22 +136,12 @@
|
|
|
79
136
|
}
|
|
80
137
|
|
|
81
138
|
.pf-v6-c-text-input-group__text {
|
|
139
|
+
position: var(--pf-v6-c-text-input-group__text--Position, revert);
|
|
82
140
|
display: inline-grid;
|
|
83
141
|
flex: 1;
|
|
84
142
|
grid-template-areas: "text-input";
|
|
85
143
|
grid-template-columns: 1fr;
|
|
86
144
|
}
|
|
87
|
-
.pf-v6-c-text-input-group__text::before {
|
|
88
|
-
position: absolute;
|
|
89
|
-
inset: 0;
|
|
90
|
-
pointer-events: none;
|
|
91
|
-
content: "";
|
|
92
|
-
border: var(--pf-v6-c-text-input-group--BorderWidth) solid var(--pf-v6-c-text-input-group--BorderColor);
|
|
93
|
-
border-start-start-radius: var(--pf-v6-c-text-input-group__text--BorderStartStartRadius);
|
|
94
|
-
border-start-end-radius: var(--pf-v6-c-text-input-group__text--BorderStartEndRadius);
|
|
95
|
-
border-end-start-radius: var(--pf-v6-c-text-input-group__text--BorderEndStartRadius);
|
|
96
|
-
border-end-end-radius: var(--pf-v6-c-text-input-group__text--BorderEndEndRadius);
|
|
97
|
-
}
|
|
98
145
|
|
|
99
146
|
.pf-v6-c-text-input-group__icon {
|
|
100
147
|
position: absolute;
|
|
@@ -103,6 +150,11 @@
|
|
|
103
150
|
color: var(--pf-v6-c-text-input-group__icon--Color);
|
|
104
151
|
transform: translateY(var(--pf-v6-c-text-input-group__icon--TranslateY));
|
|
105
152
|
}
|
|
153
|
+
.pf-v6-c-text-input-group__icon.pf-m-status {
|
|
154
|
+
inset-inline-start: auto;
|
|
155
|
+
inset-inline-end: var(--pf-v6-c-text-input-group__icon--m-status--InsetInlineEnd);
|
|
156
|
+
color: var(--pf-v6-c-text-input-group__icon--m-status--Color);
|
|
157
|
+
}
|
|
106
158
|
|
|
107
159
|
.pf-v6-c-text-input-group__text-input {
|
|
108
160
|
overflow: hidden;
|
|
@@ -3,14 +3,24 @@
|
|
|
3
3
|
:where(:root, .#{$text-input-group}) {
|
|
4
4
|
--#{$text-input-group}--BackgroundColor: var(--pf-t--global--background--color--control--default);
|
|
5
5
|
--#{$text-input-group}--BorderColor: var(--pf-t--global--border--color--default);
|
|
6
|
+
--#{$text-input-group}--m-success--BorderColor: var(--pf-t--global--border--color--status--success--default);
|
|
7
|
+
--#{$text-input-group}--m-warning--BorderColor: var(--pf-t--global--border--color--status--warning--default);
|
|
8
|
+
--#{$text-input-group}--m-error--BorderColor: var(--pf-t--global--border--color--status--danger--default);
|
|
6
9
|
--#{$text-input-group}--BorderWidth: var(--pf-t--global--border--width--control--default);
|
|
10
|
+
--#{$text-input-group}__LineHeight: var(--pf-t--global--font--line-height--body);
|
|
11
|
+
--#{$text-input-group}__FontSize: var(--pf-t--global--font--size--body--default);
|
|
7
12
|
|
|
8
13
|
// Border hover
|
|
9
14
|
--#{$text-input-group}--m-hover--BorderColor: var(--pf-t--global--border--color--hover);
|
|
15
|
+
--#{$text-input-group}--m-hover--m-success--BorderColor: var(--pf-t--global--border--color--status--success--hover);
|
|
16
|
+
--#{$text-input-group}--m-hover--m-warning--BorderColor: var(--pf-t--global--border--color--status--warning--hover);
|
|
17
|
+
--#{$text-input-group}--m-hover--m-error--BorderColor: var(--pf-t--global--border--color--status--danger--hover);
|
|
18
|
+
|
|
10
19
|
|
|
11
20
|
// Main
|
|
12
21
|
--#{$text-input-group}__main--first-child--not--text-input--MarginInlineStart: var(--pf-t--global--spacer--xs);
|
|
13
22
|
--#{$text-input-group}__main--m-icon__text-input--PaddingInlineStart: var(--pf-t--global--spacer--xl);
|
|
23
|
+
--#{$text-input-group}--status__text-input--PaddingInlineEnd: var(--pf-t--global--spacer--xl);
|
|
14
24
|
--#{$text-input-group}__main--RowGap: var(--pf-t--global--spacer--xs);
|
|
15
25
|
--#{$text-input-group}__main--ColumnGap: var(--pf-t--global--spacer--xs);
|
|
16
26
|
|
|
@@ -39,7 +49,14 @@
|
|
|
39
49
|
|
|
40
50
|
// Icon
|
|
41
51
|
--#{$text-input-group}__icon--InsetInlineStart: var(--pf-t--global--spacer--sm);
|
|
52
|
+
--#{$text-input-group}__icon--m-status--InsetInlineEnd: var(--pf-t--global--spacer--sm);
|
|
42
53
|
--#{$text-input-group}__icon--Color: var(--pf-t--global--icon--color--regular);
|
|
54
|
+
--#{$text-input-group}--m-disabled__icon--Color: var(--pf-t--global--icon--color--disabled);
|
|
55
|
+
--#{$text-input-group}__icon--m-status--Color: var(--pf-t--global--icon--color--regular);
|
|
56
|
+
--#{$text-input-group}--m-disabled__icon--m-status--Color: var(--pf-t--global--icon--color--disabled);
|
|
57
|
+
--#{$text-input-group}__main--m-success__icon--m-status--Color: var(--pf-t--global--icon--color--status--success--default);
|
|
58
|
+
--#{$text-input-group}__main--m-warning__icon--m-status--Color: var(--pf-t--global--icon--color--status--warning--default);
|
|
59
|
+
--#{$text-input-group}__main--m-error__icon--m-status--Color: var(--pf-t--global--icon--color--status--danger--default);
|
|
43
60
|
--#{$text-input-group}__icon--TranslateY: -50%;
|
|
44
61
|
|
|
45
62
|
// Utilities
|
|
@@ -56,16 +73,31 @@
|
|
|
56
73
|
position: relative;
|
|
57
74
|
display: flex;
|
|
58
75
|
width: 100%; // when child of flex layout, take up space
|
|
76
|
+
font-size: var(--#{$text-input-group}__FontSize);
|
|
77
|
+
line-height: var(--#{$text-input-group}__LineHeight);
|
|
59
78
|
color: var(--#{$text-input-group}--Color, inherit);
|
|
60
79
|
background-color: var(--#{$text-input-group}--BackgroundColor);
|
|
80
|
+
border-start-start-radius: var(--#{$text-input-group}__text--BorderStartStartRadius);
|
|
81
|
+
border-start-end-radius: var(--#{$text-input-group}__text--BorderStartEndRadius);
|
|
82
|
+
border-end-start-radius: var(--#{$text-input-group}__text--BorderEndStartRadius);
|
|
83
|
+
border-end-end-radius: var(--#{$text-input-group}__text--BorderEndEndRadius);
|
|
61
84
|
|
|
62
|
-
|
|
63
|
-
|
|
85
|
+
&::before {
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset: 0;
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
content: "";
|
|
90
|
+
border: var(--#{$text-input-group}--BorderWidth) solid var(--#{$text-input-group}--BorderColor);
|
|
91
|
+
border-start-start-radius: var(--#{$text-input-group}__text--BorderStartStartRadius);
|
|
92
|
+
border-start-end-radius: var(--#{$text-input-group}__text--BorderStartEndRadius);
|
|
93
|
+
border-end-start-radius: var(--#{$text-input-group}__text--BorderEndStartRadius);
|
|
94
|
+
border-end-end-radius: var(--#{$text-input-group}__text--BorderEndEndRadius);
|
|
64
95
|
}
|
|
65
96
|
|
|
66
97
|
&.pf-m-disabled {
|
|
67
98
|
--#{$text-input-group}--Color: var(--#{$text-input-group}--m-disabled--Color);
|
|
68
|
-
--#{$text-input-group}__icon--Color: var(--#{$text-input-group}--m-
|
|
99
|
+
--#{$text-input-group}__icon--Color: var(--#{$text-input-group}--m-disabled__icon--Color);
|
|
100
|
+
--#{$text-input-group}__icon--m-status--Color: var(--#{$text-input-group}--m-disabled__icon--m-status--Color);
|
|
69
101
|
--#{$text-input-group}--BackgroundColor: var(--#{$text-input-group}--m-disabled--BackgroundColor);
|
|
70
102
|
|
|
71
103
|
pointer-events: none;
|
|
@@ -74,11 +106,35 @@
|
|
|
74
106
|
&.pf-m-plain {
|
|
75
107
|
--#{$text-input-group}--BackgroundColor: transparent;
|
|
76
108
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
109
|
+
&::before {
|
|
110
|
+
border: 0;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.pf-m-success {
|
|
115
|
+
--#{$text-input-group}--BorderColor: var(--#{$text-input-group}--m-success--BorderColor);
|
|
116
|
+
--#{$text-input-group}--m-hover--BorderColor: var(--#{$text-input-group}--m-hover--m-success--BorderColor);
|
|
117
|
+
--#{$text-input-group}__icon--m-status--Color: var(--#{$text-input-group}__main--m-success__icon--m-status--Color);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.pf-m-warning {
|
|
121
|
+
--#{$text-input-group}--BorderColor: var(--#{$text-input-group}--m-warning--BorderColor);
|
|
122
|
+
--#{$text-input-group}--m-hover--BorderColor: var(--#{$text-input-group}--m-hover--m-warning--BorderColor);
|
|
123
|
+
--#{$text-input-group}__icon--m-status--Color: var(--#{$text-input-group}__main--m-warning__icon--m-status--Color);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&.pf-m-error {
|
|
127
|
+
--#{$text-input-group}--BorderColor: var(--#{$text-input-group}--m-error--BorderColor);
|
|
128
|
+
--#{$text-input-group}--m-hover--BorderColor: var(--#{$text-input-group}--m-hover--m-error--BorderColor);
|
|
129
|
+
--#{$text-input-group}__icon--m-status--Color: var(--#{$text-input-group}__main--m-error__icon--m-status--Color);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&:hover {
|
|
133
|
+
--#{$text-input-group}--BorderColor: var(--#{$text-input-group}--m-hover--BorderColor);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&:where(.pf-m-success, .pf-m-warning, .pf-m-error) {
|
|
137
|
+
--#{$text-input-group}__text-input--PaddingInlineEnd: var(--#{$text-input-group}--status__text-input--PaddingInlineEnd);
|
|
82
138
|
}
|
|
83
139
|
}
|
|
84
140
|
|
|
@@ -88,9 +144,15 @@
|
|
|
88
144
|
flex-wrap: wrap;
|
|
89
145
|
gap: var(--#{$text-input-group}__main--RowGap) var(--#{$text-input-group}__main--ColumnGap);
|
|
90
146
|
min-width: 0;
|
|
91
|
-
|
|
147
|
+
|
|
92
148
|
&.pf-m-icon {
|
|
149
|
+
--#{$text-input-group}__text--Position: relative;
|
|
93
150
|
--#{$text-input-group}__text-input--PaddingInlineStart: var(--#{$text-input-group}__main--m-icon__text-input--PaddingInlineStart);
|
|
151
|
+
|
|
152
|
+
display: inline-flex;
|
|
153
|
+
align-items: center;
|
|
154
|
+
justify-content: center;
|
|
155
|
+
min-width: calc(var(--#{$text-input-group}__LineHeight) * var(--#{$text-input-group}__FontSize));
|
|
94
156
|
}
|
|
95
157
|
|
|
96
158
|
> :first-child:not(.#{$text-input-group}__text) {
|
|
@@ -107,22 +169,11 @@
|
|
|
107
169
|
}
|
|
108
170
|
|
|
109
171
|
.#{$text-input-group}__text {
|
|
172
|
+
position: var(--#{$text-input-group}__text--Position, revert);
|
|
110
173
|
display: inline-grid;
|
|
111
174
|
flex: 1;
|
|
112
175
|
grid-template-areas: "text-input";
|
|
113
176
|
grid-template-columns: 1fr;
|
|
114
|
-
|
|
115
|
-
&::before {
|
|
116
|
-
position: absolute;
|
|
117
|
-
inset: 0;
|
|
118
|
-
pointer-events: none;
|
|
119
|
-
content: "";
|
|
120
|
-
border: var(--#{$text-input-group}--BorderWidth) solid var(--#{$text-input-group}--BorderColor);
|
|
121
|
-
border-start-start-radius: var(--#{$text-input-group}__text--BorderStartStartRadius);
|
|
122
|
-
border-start-end-radius: var(--#{$text-input-group}__text--BorderStartEndRadius);
|
|
123
|
-
border-end-start-radius: var(--#{$text-input-group}__text--BorderEndStartRadius);
|
|
124
|
-
border-end-end-radius: var(--#{$text-input-group}__text--BorderEndEndRadius);
|
|
125
|
-
}
|
|
126
177
|
}
|
|
127
178
|
|
|
128
179
|
.#{$text-input-group}__icon {
|
|
@@ -131,6 +182,12 @@
|
|
|
131
182
|
inset-inline-start: var(--#{$text-input-group}__icon--InsetInlineStart);
|
|
132
183
|
color: var(--#{$text-input-group}__icon--Color);
|
|
133
184
|
transform: translateY(var(--#{$text-input-group}__icon--TranslateY));
|
|
185
|
+
|
|
186
|
+
&.pf-m-status {
|
|
187
|
+
inset-inline-start: auto;
|
|
188
|
+
inset-inline-end: var(--#{$text-input-group}__icon--m-status--InsetInlineEnd);
|
|
189
|
+
color: var(--#{$text-input-group}__icon--m-status--Color);
|
|
190
|
+
}
|
|
134
191
|
}
|
|
135
192
|
|
|
136
193
|
.#{$text-input-group}__text-input {
|