@patternfly/patternfly 6.6.0-prerelease.2 → 6.6.0-prerelease.20

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.
Files changed (106) hide show
  1. package/assets/fonts/RedHatDisplay/RedHatDisplayVF-Italic.woff2 +0 -0
  2. package/assets/fonts/RedHatDisplay/RedHatDisplayVF.woff2 +0 -0
  3. package/assets/fonts/RedHatMono/RedHatMonoVF-Italic.woff2 +0 -0
  4. package/assets/fonts/RedHatMono/RedHatMonoVF.woff2 +0 -0
  5. package/assets/fonts/RedHatText/RedHatTextVF-Italic.woff2 +0 -0
  6. package/assets/fonts/RedHatText/RedHatTextVF.woff2 +0 -0
  7. package/assets/images/img_avatar-rhds.svg +22 -0
  8. package/assets/images/pf-logo-avatar.jpg +0 -0
  9. package/base/patternfly-fonts.css +4 -4
  10. package/base/patternfly-fonts.scss +4 -4
  11. package/base/patternfly-variables.css +8 -6
  12. package/base/tokens/tokens-charts-dark.scss +1 -1
  13. package/base/tokens/tokens-charts-highcontrast-dark.scss +1 -1
  14. package/base/tokens/tokens-charts-highcontrast.scss +1 -1
  15. package/base/tokens/tokens-charts.scss +1 -1
  16. package/base/tokens/tokens-dark.scss +1 -1
  17. package/base/tokens/tokens-default.scss +4 -4
  18. package/base/tokens/tokens-felt-dark.scss +1 -1
  19. package/base/tokens/tokens-felt-glass-dark.scss +1 -1
  20. package/base/tokens/tokens-felt-glass.scss +3 -2
  21. package/base/tokens/tokens-felt-highcontrast-dark.scss +1 -1
  22. package/base/tokens/tokens-felt-highcontrast.scss +1 -1
  23. package/base/tokens/tokens-felt.scss +1 -1
  24. package/base/tokens/tokens-glass-dark.scss +1 -1
  25. package/base/tokens/tokens-glass.scss +3 -2
  26. package/base/tokens/tokens-highcontrast-dark.scss +1 -1
  27. package/base/tokens/tokens-highcontrast.scss +4 -4
  28. package/base/tokens/tokens-palette.scss +1 -1
  29. package/base/tokens/tokens-redhat-highcontrast.scss +3 -3
  30. package/components/AboutModalBox/about-modal-box.css +1 -1
  31. package/components/AboutModalBox/about-modal-box.scss +1 -1
  32. package/components/Alert/alert.css +3 -2
  33. package/components/Alert/alert.scss +3 -2
  34. package/components/Avatar/avatar.css +144 -0
  35. package/components/Avatar/avatar.scss +161 -0
  36. package/components/Banner/banner.css +7 -0
  37. package/components/Banner/banner.scss +7 -0
  38. package/components/Breadcrumb/breadcrumb.css +1 -1
  39. package/components/Breadcrumb/breadcrumb.scss +1 -1
  40. package/components/Button/button.css +18 -1
  41. package/components/Button/button.scss +21 -1
  42. package/components/ClipboardCopy/clipboard-copy.css +1 -1
  43. package/components/ClipboardCopy/clipboard-copy.scss +1 -1
  44. package/components/Compass/compass.css +5 -1
  45. package/components/Compass/compass.scss +5 -1
  46. package/components/DragDrop/drag-drop.css +4 -0
  47. package/components/DragDrop/drag-drop.scss +4 -0
  48. package/components/DualListSelector/dual-list-selector.css +1 -1
  49. package/components/DualListSelector/dual-list-selector.scss +1 -1
  50. package/components/Masthead/masthead.css +1 -1
  51. package/components/Masthead/masthead.scss +1 -1
  52. package/components/Menu/menu.css +1 -1
  53. package/components/Menu/menu.scss +1 -1
  54. package/components/MenuToggle/menu-toggle.css +3 -0
  55. package/components/MenuToggle/menu-toggle.scss +4 -1
  56. package/components/ModalBox/modal-box.css +1 -1
  57. package/components/ModalBox/modal-box.scss +1 -1
  58. package/components/NotificationDrawer/notification-drawer.css +3 -3
  59. package/components/NotificationDrawer/notification-drawer.scss +3 -3
  60. package/components/Page/page.css +30 -23
  61. package/components/Page/page.scss +35 -29
  62. package/components/Panel/panel.css +1 -1
  63. package/components/Panel/panel.scss +2 -2
  64. package/components/Progress/progress.css +2 -2
  65. package/components/Progress/progress.scss +2 -2
  66. package/components/Sidebar/sidebar.css +4 -7
  67. package/components/Sidebar/sidebar.scss +9 -9
  68. package/components/Table/table-tree-view.css +3 -0
  69. package/components/Table/table-tree-view.scss +2 -0
  70. package/components/Table/table.css +53 -19
  71. package/components/Table/table.scss +80 -32
  72. package/components/Title/title.css +1 -1
  73. package/components/Title/title.scss +1 -1
  74. package/components/Tooltip/tooltip.css +1 -1
  75. package/components/Tooltip/tooltip.scss +1 -1
  76. package/components/TreeView/tree-view.css +1 -1
  77. package/components/TreeView/tree-view.scss +1 -1
  78. package/components/Wizard/wizard.css +3 -3
  79. package/components/Wizard/wizard.scss +3 -3
  80. package/components/_index.css +293 -72
  81. package/docs/components/Avatar/examples/Avatar.css +6 -0
  82. package/docs/components/Avatar/examples/Avatar.md +414 -40
  83. package/docs/components/Drawer/examples/Drawer.md +1 -1
  84. package/docs/components/DualListSelector/examples/DualListSelector.md +85 -85
  85. package/docs/components/InputGroup/examples/InputGroup.md +1 -1
  86. package/docs/components/MenuToggle/examples/MenuToggle.md +54 -15
  87. package/docs/components/Pagination/examples/Pagination.md +120 -120
  88. package/docs/components/Sidebar/examples/Sidebar.md +3 -1
  89. package/docs/components/Table/examples/Table.css +6 -0
  90. package/docs/components/Table/examples/Table.md +305 -18
  91. package/docs/components/Toolbar/examples/Toolbar.md +16 -16
  92. package/docs/components/TreeView/examples/TreeView.md +100 -100
  93. package/docs/demos/CardView/examples/CardView.md +12 -12
  94. package/docs/demos/Compass/examples/Compass.md +91 -35
  95. package/docs/demos/Dashboard/examples/Dashboard.md +27 -30
  96. package/docs/demos/DataList/examples/DataList.md +48 -48
  97. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +20 -20
  98. package/docs/demos/Table/examples/Table.md +160 -160
  99. package/docs/demos/Toolbar/examples/Toolbar.md +36 -36
  100. package/package.json +6 -6
  101. package/patternfly-base-no-globals.css +12 -10
  102. package/patternfly-base.css +12 -10
  103. package/patternfly-no-globals.css +305 -82
  104. package/patternfly.css +305 -82
  105. package/patternfly.min.css +1 -1
  106. package/patternfly.min.css.map +1 -1
@@ -241,7 +241,7 @@
241
241
  // * Table nested column header
242
242
  --#{$table}__thead--m-nested-column-header--BorderBlockEndWidth: var(--#{$table}--border-width--base);
243
243
  --#{$table}__thead--m-nested-column-header--BorderBlockEndColor: var(--#{$table}--BorderColor);
244
- --#{$table}__thead--m-nested-column-header--after--ZIndex: calc(var(--pf-t--global--z-index--xs) + 2);
244
+ --#{$table}__thead--m-nested-column-header--after--ZIndex: initial;
245
245
  --#{$table}__thead--m-nested-column-header--button--OutlineOffset: #{pf-size-prem(-3px)};
246
246
  --#{$table}__thead--m-nested-column-header__tr--PaddingBlockStart: var(--pf-t--global--spacer--xs);
247
247
  --#{$table}__thead--m-nested-column-header__tr--PaddingBlockEnd: var(--pf-t--global--spacer--md);
@@ -269,6 +269,10 @@
269
269
  --#{$table}--m-sticky-header--BoxShadow--glass: var(--pf-t--global--box-shadow--sm);
270
270
  --#{$table}--m-sticky-header--TransitionTimingFunction--BackgroundColor: var(--pf-t--global--motion--timing-function--default);
271
271
  --#{$table}--m-sticky-header--TransitionDuration--BackgroundColor: var(--pf-t--global--motion--duration--fade--default);
272
+
273
+ // * Table sticky footer
274
+ --#{$table}--m-sticky-footer--ZIndex: calc(var(--pf-t--global--z-index--xs) + 1);
275
+ --#{$table}--m-sticky-footer--border--ZIndex: calc(var(--pf-t--global--z-index--xs) + 2);
272
276
 
273
277
  :where(.pf-v6-theme-glass) & {
274
278
  --#{$table}--m-sticky-header--BorderBlockEndWidth: 0;
@@ -297,8 +301,8 @@
297
301
  table-layout: fixed;
298
302
  }
299
303
 
300
- &.pf-m-sticky-header-base > .#{$table}__thead {
301
- &::before,
304
+ &.pf-m-sticky-header-base > .#{$table}__thead,
305
+ &.pf-m-sticky-header-base > .#{$table}__thead .#{$table}__th {
302
306
  &::after {
303
307
  opacity: 0;
304
308
  transition-timing-function: var(--#{$table}--m-sticky-header--TransitionTimingFunction--BackgroundColor);
@@ -307,13 +311,8 @@
307
311
  }
308
312
  }
309
313
 
310
- &.pf-m-sticky-header,
311
- &.pf-m-sticky-header-stuck {
312
- --#{$table}__thead--m-nested-column-header--BorderBlockEndWidth: 0;
313
- }
314
-
315
- &.pf-m-sticky-header-stuck > .#{$table}__thead {
316
- &::before,
314
+ &.pf-m-sticky-header-stuck > .#{$table}__thead,
315
+ &.pf-m-sticky-header-stuck > .#{$table}__thead .#{$table}__th {
317
316
  &::after {
318
317
  opacity: 1;
319
318
  }
@@ -328,32 +327,47 @@
328
327
  inset-block-start: 0;
329
328
  z-index: var(--#{$table}--m-sticky-header--ZIndex);
330
329
 
331
- &::before {
330
+ &::after {
332
331
  position: absolute;
333
332
  inset: 0;
334
333
  z-index: -1;
335
334
  pointer-events: none;
336
335
  content: '';
337
- background-color: var(--#{$table}--m-sticky-header--BackgroundColor);
338
336
  border-radius: var(--#{$table}--m-sticky-header--BorderRadius);
339
337
  box-shadow: var(--#{$table}--m-sticky-header--BoxShadow);
340
338
  }
339
+
340
+
341
+ .#{$table}__th::after {
342
+ position: absolute;
343
+ inset: 0;
344
+ z-index: -1;
345
+ pointer-events: none;
346
+ content: '';
347
+ background-color: var(--#{$table}--m-sticky-header--BackgroundColor);
348
+ border-block-end: var(--#{$table}--m-sticky-header--BorderBlockEndWidth) solid var(--#{$table}--m-sticky-header--BorderBlockEndColor);
349
+ }
350
+
351
+ .#{$table}__th:first-child::after {
352
+ border-start-start-radius: var(--#{$table}--m-sticky-header--BorderRadius);
353
+ border-end-start-radius: var(--#{$table}--m-sticky-header--BorderRadius);
354
+ }
355
+
356
+ .#{$table}__th:last-child::after {
357
+ border-start-end-radius: var(--#{$table}--m-sticky-header--BorderRadius);
358
+ border-end-end-radius: var(--#{$table}--m-sticky-header--BorderRadius);
359
+ }
341
360
 
342
361
  > :where(th, td) {
343
362
  z-index: var(--#{$table}--m-sticky-header--cell--ZIndex); // set z-index here to allow sticky column to override
344
363
  }
345
364
  }
346
- }
347
365
 
348
- &.pf-m-sticky-header,
349
- &.pf-m-sticky-header-base {
350
- > .#{$table}__thead::after {
351
- position: absolute;
352
- inset: 0;
353
- z-index: var(--#{$table}--m-sticky-header--border--ZIndex);
354
- pointer-events: none;
355
- content: '';
356
- border-block-end: var(--#{$table}--m-sticky-header--BorderBlockEndWidth) solid var(--#{$table}--m-sticky-header--BorderBlockEndColor);
366
+ :where(.pf-v6-theme-glass) & {
367
+ .pf-m-nested-column-header {
368
+ --#{$table}--m-sticky-header--BorderRadius: 0;
369
+ --#{$table}__thead--m-nested-column-header--BorderBlockEndWidth: 0;
370
+ }
357
371
  }
358
372
  }
359
373
 
@@ -373,6 +387,34 @@
373
387
  }
374
388
  }
375
389
 
390
+ // - Table sticky footer
391
+ &.pf-m-sticky-footer {
392
+ > .#{$table}__tfoot {
393
+ position: sticky;
394
+ inset-block-end: 0;
395
+ z-index: var(--#{$table}--m-sticky-footer--ZIndex);
396
+ background: var(--#{$table}--BackgroundColor);
397
+
398
+ &::before {
399
+ position: absolute;
400
+ inset: 0;
401
+ z-index: var(--#{$table}--m-sticky-footer--border--ZIndex);
402
+ pointer-events: none;
403
+ content: "";
404
+ border-block-start: var(--#{$table}--border-width--base) solid var(--#{$table}--BorderColor);
405
+ }
406
+ }
407
+
408
+ > .#{$table}__tbody:last-of-type > .#{$table}__tr:last-of-type {
409
+ border-block-end: 0;
410
+ }
411
+ }
412
+
413
+ // - Table plain
414
+ &.pf-m-plain {
415
+ --#{$table}--BackgroundColor: transparent;
416
+ }
417
+
376
418
  // - Table striped
377
419
  // stylelint-disable
378
420
  &.pf-m-striped:not(.pf-m-expandable) > tbody:where(.#{$table}__tbody) > tr:where(.#{$table}__tr):nth-child(odd), // regular table
@@ -544,8 +586,8 @@
544
586
  // }
545
587
 
546
588
  .#{$table}__td.pf-m-action {
547
- --pf-v6-c-table--cell--PaddingBlockStart: var(--#{$table}__td--m-action--PaddingBlockStart);
548
- --pf-v6-c-table--cell--PaddingBlockEnd: var(--#{$table}__td--m-action--PaddingBlockEnd);
589
+ --#{$table}--cell--PaddingBlockStart: var(--#{$table}__td--m-action--PaddingBlockStart);
590
+ --#{$table}--cell--PaddingBlockEnd: var(--#{$table}__td--m-action--PaddingBlockEnd);
549
591
  }
550
592
 
551
593
  // - Table sort
@@ -1235,8 +1277,8 @@
1235
1277
  }
1236
1278
 
1237
1279
  .#{$table}__td.pf-m-action {
1238
- --pf-v6-c-table--cell--PaddingBlockStart: var(--#{$table}--m-compact__td--m-action--PaddingBlockStart);
1239
- --pf-v6-c-table--cell--PaddingBlockEnd: var(--#{$table}--m-compact__td--m-action--PaddingBlockEnd);
1280
+ --#{$table}--cell--PaddingBlockStart: var(--#{$table}--m-compact__td--m-action--PaddingBlockStart);
1281
+ --#{$table}--cell--PaddingBlockEnd: var(--#{$table}--m-compact__td--m-action--PaddingBlockEnd);
1240
1282
  }
1241
1283
 
1242
1284
  .#{$table}__icon {
@@ -1256,14 +1298,12 @@
1256
1298
 
1257
1299
  // - Table nested column header button
1258
1300
  &.pf-m-nested-column-header {
1301
+ --#{$table}--m-sticky-header--BorderBlockEndWidth: 0;
1302
+
1259
1303
  position: relative;
1260
1304
 
1261
- &::after {
1262
- position: absolute;
1263
- inset: 0;
1305
+ .#{$table}__tr:last-child:not(.pf-m-border-row) {
1264
1306
  z-index: var(--#{$table}__thead--m-nested-column-header--after--ZIndex);
1265
- pointer-events: none;
1266
- content: '';
1267
1307
  border-block-end: var(--#{$table}__thead--m-nested-column-header--BorderBlockEndWidth) solid var(--#{$table}__thead--m-nested-column-header--BorderBlockEndColor);
1268
1308
  }
1269
1309
 
@@ -1327,10 +1367,18 @@
1327
1367
  }
1328
1368
 
1329
1369
  &.pf-m-border-row {
1330
- border-block-end: var(--#{$table}--border-width--base) solid var(--#{$table}--BorderColor);
1370
+ height: var(--#{$table}--border-width--base);
1371
+ background-color: var(--#{$table}--BorderColor);
1331
1372
  }
1332
1373
  }
1333
1374
 
1375
+ // - Table tfoot
1376
+ .#{$table}__tfoot {
1377
+ --#{$table}__tr--BorderBlockEndWidth: 0;
1378
+
1379
+ vertical-align: top;
1380
+ }
1381
+
1334
1382
  // - Table icon inline
1335
1383
  .#{$table}__icon-inline {
1336
1384
  display: flex;
@@ -41,7 +41,7 @@
41
41
 
42
42
  .pf-v6-c-title {
43
43
  font-family: var(--pf-v6-c-title--FontFamily);
44
- overflow-wrap: break-word;
44
+ overflow-wrap: anywhere;
45
45
  }
46
46
  .pf-v6-c-title.pf-m-4xl {
47
47
  font-size: var(--pf-v6-c-title--m-4xl--FontSize);
@@ -71,7 +71,7 @@
71
71
 
72
72
  .#{$title} {
73
73
  font-family: var(--#{$title}--FontFamily);
74
- overflow-wrap: break-word;
74
+ overflow-wrap: anywhere;
75
75
 
76
76
  &.pf-m-4xl {
77
77
  font-size: var(--#{$title}--m-4xl--FontSize);
@@ -98,7 +98,7 @@
98
98
  font-size: var(--pf-v6-c-tooltip__content--FontSize);
99
99
  color: var(--pf-v6-c-tooltip__content--Color);
100
100
  text-align: center;
101
- overflow-wrap: break-word;
101
+ overflow-wrap: anywhere;
102
102
  background-color: var(--pf-v6-c-tooltip__content--BackgroundColor);
103
103
  border-radius: var(--pf-v6-c-tooltip__content--BorderRadius);
104
104
  }
@@ -129,7 +129,7 @@
129
129
  font-size: var(--#{$tooltip}__content--FontSize);
130
130
  color: var(--#{$tooltip}__content--Color);
131
131
  text-align: center;
132
- overflow-wrap: break-word;
132
+ overflow-wrap: anywhere;
133
133
  background-color: var(--#{$tooltip}__content--BackgroundColor);
134
134
  border-radius: var(--#{$tooltip}__content--BorderRadius);
135
135
 
@@ -66,7 +66,7 @@
66
66
  --pf-v6-c-tree-view__node-icon--Color: var(--pf-t--global--icon--color--subtle);
67
67
  --pf-v6-c-tree-view__node-toggle-icon--base--Rotate: 0;
68
68
  --pf-v6-c-tree-view__node-toggle-icon--Rotate: var(--pf-v6-c-tree-view__node-toggle-icon--base--Rotate);
69
- --pf-v6-c-tree-view__list-item--m-expanded__node-toggle-icon--Rotate: -180deg;
69
+ --pf-v6-c-tree-view__list-item--m-expanded__node-toggle-icon--Rotate: 90deg;
70
70
  --pf-v6-c-tree-view__node--m-disabled--Color: var(--pf-t--global--text--color--disabled);
71
71
  --pf-v6-c-tree-view__node-icon--m-disabled--Color: var(--pf-t--global--icon--color--disabled);
72
72
  --pf-v6-c-tree-view__node-toggle--m-disabled--Color: var(--pf-t--global--icon--color--disabled);
@@ -92,7 +92,7 @@ $pf-v6-c-tree-view--MaxNesting: 10 !default;
92
92
  --#{$tree-view}__node-icon--Color: var(--pf-t--global--icon--color--subtle);
93
93
  --#{$tree-view}__node-toggle-icon--base--Rotate: 0;
94
94
  --#{$tree-view}__node-toggle-icon--Rotate: var(--#{$tree-view}__node-toggle-icon--base--Rotate);
95
- --#{$tree-view}__list-item--m-expanded__node-toggle-icon--Rotate: -180deg;
95
+ --#{$tree-view}__list-item--m-expanded__node-toggle-icon--Rotate: 90deg;
96
96
 
97
97
  // Disabled
98
98
  --#{$tree-view}__node--m-disabled--Color: var(--pf-t--global--text--color--disabled);
@@ -259,7 +259,7 @@
259
259
  align-items: baseline;
260
260
  margin-block-end: var(--pf-v6-c-wizard__toggle-list-item--MarginBlockEnd);
261
261
  text-align: start;
262
- overflow-wrap: break-word;
262
+ overflow-wrap: anywhere;
263
263
  }
264
264
  .pf-v6-c-wizard__toggle-list-item:not(:last-child) {
265
265
  margin-inline-end: var(--pf-v6-c-wizard__toggle-list-item--not-last-child--MarginInlineEnd);
@@ -395,7 +395,7 @@
395
395
  padding-inline: 0;
396
396
  color: var(--pf-v6-c-wizard__nav-link--Color);
397
397
  text-align: start;
398
- overflow-wrap: break-word;
398
+ overflow-wrap: anywhere;
399
399
  text-decoration-line: var(--pf-v6-c-wizard__nav-link--TextDecoration);
400
400
  counter-increment: wizard-nav-count;
401
401
  background-color: transparent;
@@ -514,7 +514,7 @@
514
514
  flex-direction: column;
515
515
  overflow-x: hidden;
516
516
  overflow-y: auto;
517
- overflow-wrap: break-word;
517
+ overflow-wrap: anywhere;
518
518
  }
519
519
 
520
520
  .pf-v6-c-wizard__main-body {
@@ -325,7 +325,7 @@
325
325
  align-items: baseline;
326
326
  margin-block-end: var(--#{$wizard}__toggle-list-item--MarginBlockEnd);
327
327
  text-align: start;
328
- overflow-wrap: break-word;
328
+ overflow-wrap: anywhere;
329
329
 
330
330
  &:not(:last-child) {
331
331
  margin-inline-end: var(--#{$wizard}__toggle-list-item--not-last-child--MarginInlineEnd);
@@ -478,7 +478,7 @@
478
478
  padding-inline: 0;
479
479
  color: var(--#{$wizard}__nav-link--Color);
480
480
  text-align: start; // needed for when the item is a button
481
- overflow-wrap: break-word;
481
+ overflow-wrap: anywhere;
482
482
  text-decoration-line: var(--#{$wizard}__nav-link--TextDecoration);
483
483
  counter-increment: wizard-nav-count;
484
484
  background-color: transparent;
@@ -614,7 +614,7 @@
614
614
  flex-direction: column;
615
615
  overflow-x: hidden;
616
616
  overflow-y: auto;
617
- overflow-wrap: break-word;
617
+ overflow-wrap: anywhere;
618
618
  }
619
619
 
620
620
  .#{$wizard}__main-body {