@patternfly/patternfly 5.2.0-prerelease.3 → 6.0.0-alpha.10

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 (97) hide show
  1. package/CODE_OF_CONDUCT.md +2 -1
  2. package/assets/images/logo__pf--reverse-on-md.svg +1 -1
  3. package/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
  4. package/base/_globals.scss +13 -13
  5. package/base/_variables.scss +5 -0
  6. package/base/patternfly-globals.css +12 -13
  7. package/base/patternfly-variables.css +860 -0
  8. package/base/tokens/_tokens-dark.scss +331 -0
  9. package/base/tokens/_tokens-default.scss +379 -0
  10. package/base/tokens/_tokens-font.scss +96 -0
  11. package/base/tokens/_tokens-palette.scss +75 -0
  12. package/components/Alert/alert-group.css +20 -16
  13. package/components/Alert/alert-group.scss +20 -16
  14. package/components/Alert/alert.css +57 -84
  15. package/components/Alert/alert.scss +60 -78
  16. package/components/Button/button.css +142 -179
  17. package/components/Button/button.scss +161 -141
  18. package/components/Check/check.css +8 -10
  19. package/components/Check/check.scss +10 -15
  20. package/components/Content/content.css +67 -67
  21. package/components/Content/content.scss +68 -68
  22. package/components/Dropdown/dropdown.css +3 -1
  23. package/components/Dropdown/dropdown.scss +6 -2
  24. package/components/Masthead/masthead.css +49 -103
  25. package/components/Masthead/masthead.scss +105 -132
  26. package/components/Menu/menu.css +0 -3
  27. package/components/Menu/menu.scss +3 -7
  28. package/components/MenuToggle/menu-toggle.css +59 -80
  29. package/components/MenuToggle/menu-toggle.scss +65 -89
  30. package/components/Nav/nav.css +42 -40
  31. package/components/Nav/nav.scss +42 -42
  32. package/components/NotificationBadge/notification-badge.css +56 -81
  33. package/components/NotificationBadge/notification-badge.scss +60 -97
  34. package/components/Page/page.css +80 -70
  35. package/components/Page/page.scss +80 -68
  36. package/components/Radio/radio.css +10 -13
  37. package/components/Radio/radio.scss +11 -17
  38. package/components/Switch/switch.css +1 -1
  39. package/components/Switch/switch.scss +1 -1
  40. package/components/Table/table-grid.css +8 -8
  41. package/components/Table/table-grid.scss +8 -8
  42. package/components/Table/table.css +92 -95
  43. package/components/Table/table.scss +94 -103
  44. package/components/Toolbar/toolbar.css +5 -11
  45. package/components/Toolbar/toolbar.scss +7 -19
  46. package/docs/components/Alert/examples/Alert.md +1 -1
  47. package/docs/components/Brand/examples/Brand.md +32 -75
  48. package/docs/components/Card/examples/Card.md +2 -110
  49. package/docs/components/Masthead/examples/masthead.md +7 -54
  50. package/docs/components/MenuToggle/examples/MenuToggle.md +42 -42
  51. package/docs/components/Nav/examples/Navigation.css +2 -1
  52. package/docs/components/NotificationBadge/examples/NotificationBadge.md +5 -7
  53. package/docs/components/Toolbar/examples/Toolbar.md +9 -11
  54. package/docs/demos/AboutModal/examples/AboutModal.md +83 -8
  55. package/docs/demos/Alert/examples/Alert.md +249 -24
  56. package/docs/demos/BackToTop/examples/BackToTop.md +83 -8
  57. package/docs/demos/Banner/examples/Banner.md +168 -16
  58. package/docs/demos/CardView/examples/CardView.md +83 -8
  59. package/docs/demos/ContextSelector/examples/ContextSelector.md +332 -32
  60. package/docs/demos/Dashboard/examples/Dashboard.md +83 -8
  61. package/docs/demos/DataList/examples/DataList.md +332 -32
  62. package/docs/demos/DescriptionList/examples/DescriptionList.md +249 -24
  63. package/docs/demos/Drawer/examples/Drawer.md +415 -40
  64. package/docs/demos/JumpLinks/examples/JumpLinks.md +498 -48
  65. package/docs/demos/Masthead/examples/Masthead.md +742 -67
  66. package/docs/demos/Modal/examples/Modal.md +498 -48
  67. package/docs/demos/Nav/examples/Nav.md +664 -64
  68. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +415 -40
  69. package/docs/demos/Page/examples/Page.md +747 -72
  70. package/docs/demos/Page/examples/Penta.md +746 -0
  71. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +581 -56
  72. package/docs/demos/Skeleton/examples/Skeleton.md +83 -8
  73. package/docs/demos/Table/examples/Table.md +1245 -120
  74. package/docs/demos/Tabs/examples/Tabs.md +498 -48
  75. package/docs/demos/Toolbar/examples/Toolbar.md +166 -16
  76. package/docs/demos/Wizard/examples/Wizard.md +747 -72
  77. package/package.json +4 -3
  78. package/patternfly-base-no-globals-theme-dark-unversioned.css +860 -0
  79. package/patternfly-base-no-globals.css +860 -0
  80. package/patternfly-base-theme-dark-unversioned.css +872 -13
  81. package/patternfly-base.css +872 -13
  82. package/patternfly-no-globals.css +1609 -897
  83. package/patternfly-theme-dark-unversioned.css +1621 -910
  84. package/patternfly.css +1621 -910
  85. package/patternfly.min.css +1 -1
  86. package/patternfly.min.css.map +1 -1
  87. package/assets/images/pf-c-brand__logo-on-lg-white.svg +0 -32
  88. package/assets/images/pf-c-brand__logo-on-md-white.svg +0 -42
  89. package/assets/images/pf-c-brand__logo-on-sm-white.svg +0 -17
  90. package/assets/images/pf-c-brand__logo-on-xl-white.svg +0 -39
  91. package/assets/images/pf_logo_white.hbs +0 -35
  92. package/assets/images/pf_logo_white.svg +0 -38
  93. package/components/Alert/themes/dark/alert.scss +0 -17
  94. package/components/Masthead/themes/dark/masthead.scss +0 -14
  95. package/components/NotificationBadge/themes/dark/notification-badge.scss +0 -10
  96. package/docs/components/Brand/examples/Brand.css +0 -12
  97. package/docs/components/NotificationBadge/examples/NotificationBadge.css +0 -3
@@ -1,4 +1,5 @@
1
1
  This project is governed by the [Contributor Covenant version 1.4][1]. All contributors and participants agree to abide by its terms. To report violations, send an email to [patternfly@redhat.com][2].
2
2
 
3
3
  [1]: https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
4
- [2]: mailto:patternfly@redhat.com
4
+ [2]: mailto:patternfly@redhat.com
5
+
@@ -6,7 +6,7 @@
6
6
  .st0{fill:#FFFFFF;}
7
7
  .st1{fill:url(#SVGID_1_);}
8
8
  </style>
9
- <g fill="#8a8d90">
9
+ <g>
10
10
  <path class="st0" d="M56.4,25.7V14.4h4.8c0.7,0,1.3,0.1,1.8,0.3s0.9,0.5,1.2,0.8c0.3,0.3,0.5,0.7,0.7,1.1c0.1,0.4,0.2,0.9,0.2,1.3
11
11
  c0,0.3,0,0.5-0.1,0.8s-0.2,0.6-0.3,0.8c-0.1,0.3-0.3,0.5-0.5,0.7c-0.2,0.2-0.5,0.4-0.7,0.6c-0.3,0.2-0.6,0.3-1,0.4
12
12
  s-0.8,0.1-1.2,0.1h-2.7v4.1L56.4,25.7L56.4,25.7z M61.3,19.5c0.3,0,0.5,0,0.7-0.1s0.3-0.2,0.5-0.3c0.1-0.1,0.2-0.3,0.3-0.5
@@ -9,7 +9,7 @@
9
9
  <stop offset="0" style="stop-color:#60EFFF"/>
10
10
  <stop offset="1" style="stop-color:#1F89C7"/>
11
11
  </linearGradient>
12
- <path fill="#8a8d90" class="st0" d="M23.7,12.3L12,0.8L0.3,12.3L5,18.9l3.6-0.8L12,23l3.5-4.9l3.5,0.8L23.7,12.3z M11.5,3L10,17L7.1,13L11.5,3z
12
+ <path class="st0" d="M23.7,12.3L12,0.8L0.3,12.3L5,18.9l3.6-0.8L12,23l3.5-4.9l3.5,0.8L23.7,12.3z M11.5,3L10,17L7.1,13L11.5,3z
13
13
  M6.8,12.6L5,10.1l6.2-7.5L6.8,12.6z M9.5,17.1L9.5,17.1l0.2,0.2l-1,0.2l-2.2-3.1l0.4-0.9L9.5,17.1z M12,2.8l1.5,14.9L12,19.7
14
14
  l-1.5-2.1L12,2.8z M14.5,17.1l2.7-3.6l0.4,0.9l-2.2,3.1l-1-0.2L14.5,17.1L14.5,17.1z M14,17l-1.5-14l4.4,10L14,17z M12.9,2.6
15
15
  l6.2,7.5l-1.8,2.4L12.9,2.6z M5.2,18.4l-4.3-6l8.3-8.1l-4.8,5.9l2.2,3L6,14.5l2.3,3.2L5.2,18.4z M12,22.2L9,18l1-0.2l2,2.8l2-2.8
@@ -47,11 +47,12 @@
47
47
  height: 100%;
48
48
  }
49
49
 
50
+ // TODO
50
51
  :where(body) {
51
- font-family: var(--#{$pf-global}--FontFamily--text);
52
- font-size: var(--#{$pf-global}--FontSize--md);
53
- font-weight: var(--#{$pf-global}--FontWeight--normal);
54
- line-height: var(--#{$pf-global}--LineHeight--md);
52
+ font-family: var(--pf-t--global--font--family--body);
53
+ font-size: var(--pf-t--global--font--size--body);
54
+ font-weight: var(--pf-t--global--font--weight--body);
55
+ line-height: var(--pf-t--global--font--line-height--body);
55
56
  }
56
57
 
57
58
  :where(
@@ -63,7 +64,7 @@
63
64
  h6
64
65
  ) {
65
66
  font-size: 100%;
66
- font-weight: var(--#{$pf-global}--FontWeight--normal);
67
+ font-weight: var(--pf-t--global--font--weight--body);
67
68
  }
68
69
 
69
70
  :where(ul) {
@@ -80,8 +81,8 @@
80
81
  margin: 0;
81
82
  font-family: inherit;
82
83
  font-size: 100%;
83
- line-height: var(--#{$pf-global}--LineHeight--md);
84
- color: var(--#{$pf-global}--Color--100);
84
+ line-height: var(--pf-t--global--font--line-height--body);
85
+ color: var(--pf-t--global--text--color--regular);
85
86
  }
86
87
 
87
88
  :where(
@@ -117,18 +118,17 @@
117
118
  code,
118
119
  pre
119
120
  ) {
120
- font-family: var(--#{$pf-global}--FontFamily--monospace);
121
+ font-family: var(--pf-t--global--font--family--mono);
121
122
  }
122
123
 
123
124
  :where(a) {
124
- font-weight: var(--#{$pf-global}--link--FontWeight);
125
- color: var(--#{$pf-global}--link--Color);
126
- text-decoration: var(--#{$pf-global}--link--TextDecoration);
125
+ color: var(--pf-t--global--text--color--link--default);
126
+ text-decoration: var(--pf-t--global--link--text-decoration);
127
127
  }
128
128
 
129
129
  :where(a:hover) {
130
- --#{$pf-global}--link--Color: var(--#{$pf-global}--link--Color--hover);
131
- --#{$pf-global}--link--TextDecoration: var(--#{$pf-global}--link--TextDecoration--hover);
130
+ --#{$pf-global}--link--Color: var(--pf-t--global--text--color--link--hover);
131
+ --#{$pf-global}--link--TextDecoration: var(--pf-t--global--link--text-decoration--hover);
132
132
  }
133
133
 
134
134
  :where(
@@ -297,3 +297,8 @@
297
297
  @include pf-v5-theme-dark {
298
298
  @include pf-v5-theme-dark-variables;
299
299
  }
300
+
301
+ @import "./tokens/tokens-palette";
302
+ @import "./tokens/tokens-default";
303
+ @import "./tokens/tokens-font";
304
+ @import "./tokens/tokens-dark";
@@ -37,10 +37,10 @@ body) {
37
37
  }
38
38
 
39
39
  :where(body) {
40
- font-family: var(--pf-v5-global--FontFamily--text);
41
- font-size: var(--pf-v5-global--FontSize--md);
42
- font-weight: var(--pf-v5-global--FontWeight--normal);
43
- line-height: var(--pf-v5-global--LineHeight--md);
40
+ font-family: var(--pf-t--global--font--family--body);
41
+ font-size: var(--pf-t--global--font--size--body);
42
+ font-weight: var(--pf-t--global--font--weight--body);
43
+ line-height: var(--pf-t--global--font--line-height--body);
44
44
  }
45
45
 
46
46
  :where(h1,
@@ -50,7 +50,7 @@ h4,
50
50
  h5,
51
51
  h6) {
52
52
  font-size: 100%;
53
- font-weight: var(--pf-v5-global--FontWeight--normal);
53
+ font-weight: var(--pf-t--global--font--weight--body);
54
54
  }
55
55
 
56
56
  :where(ul) {
@@ -65,8 +65,8 @@ textarea) {
65
65
  margin: 0;
66
66
  font-family: inherit;
67
67
  font-size: 100%;
68
- line-height: var(--pf-v5-global--LineHeight--md);
69
- color: var(--pf-v5-global--Color--100);
68
+ line-height: var(--pf-t--global--font--line-height--body);
69
+ color: var(--pf-t--global--text--color--regular);
70
70
  }
71
71
 
72
72
  :where(img,
@@ -96,18 +96,17 @@ th) {
96
96
 
97
97
  :where(code,
98
98
  pre) {
99
- font-family: var(--pf-v5-global--FontFamily--monospace);
99
+ font-family: var(--pf-t--global--font--family--mono);
100
100
  }
101
101
 
102
102
  :where(a) {
103
- font-weight: var(--pf-v5-global--link--FontWeight);
104
- color: var(--pf-v5-global--link--Color);
105
- text-decoration: var(--pf-v5-global--link--TextDecoration);
103
+ color: var(--pf-t--global--text--color--link--default);
104
+ text-decoration: var(--pf-t--global--link--text-decoration);
106
105
  }
107
106
 
108
107
  :where(a:hover) {
109
- --pf-v5-global--link--Color: var(--pf-v5-global--link--Color--hover);
110
- --pf-v5-global--link--TextDecoration: var(--pf-v5-global--link--TextDecoration--hover);
108
+ --pf-v5-global--link--Color: var(--pf-t--global--text--color--link--hover);
109
+ --pf-v5-global--link--TextDecoration: var(--pf-t--global--link--text-decoration--hover);
111
110
  }
112
111
 
113
112
  :where(a,