@patternfly/react-styles 6.0.0-alpha.1 → 6.0.0-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/README.md +1 -1
  3. package/css/assets/images/PF-Backdrop.svg +1 -0
  4. package/css/assets/images/PF-IconLogo-Reverse.svg +14 -0
  5. package/css/assets/images/PF-IconLogo.svg +17 -0
  6. package/css/assets/images/logo__pf--reverse-on-md.svg +1 -1
  7. package/css/assets/images/pf-c-brand__logo-on-lg-white.svg +32 -0
  8. package/css/assets/images/pf-c-brand__logo-on-md-white.svg +42 -0
  9. package/css/assets/images/pf-c-brand__logo-on-sm-white.svg +17 -0
  10. package/css/assets/images/pf-c-brand__logo-on-sm.svg +1 -1
  11. package/css/assets/images/pf-c-brand__logo-on-xl-white.svg +39 -0
  12. package/css/assets/images/pf_logo_white.hbs +35 -0
  13. package/css/assets/images/pf_logo_white.svg +38 -0
  14. package/css/components/AboutModalBox/about-modal-box.css +59 -98
  15. package/css/components/AboutModalBox/about-modal-box.d.ts +1 -2
  16. package/css/components/AboutModalBox/about-modal-box.js +1 -2
  17. package/css/components/AboutModalBox/about-modal-box.mjs +1 -2
  18. package/css/components/Accordion/accordion.css +85 -177
  19. package/css/components/Accordion/accordion.d.ts +3 -2
  20. package/css/components/Accordion/accordion.js +3 -2
  21. package/css/components/Accordion/accordion.mjs +3 -2
  22. package/css/components/Alert/alert-group.css +20 -16
  23. package/css/components/Alert/alert.css +57 -84
  24. package/css/components/Alert/alert.d.ts +1 -2
  25. package/css/components/Alert/alert.js +1 -2
  26. package/css/components/Alert/alert.mjs +1 -2
  27. package/css/components/BackToTop/back-to-top.css +17 -15
  28. package/css/components/Badge/badge.css +23 -15
  29. package/css/components/Badge/badge.d.ts +2 -2
  30. package/css/components/Badge/badge.js +2 -2
  31. package/css/components/Badge/badge.mjs +2 -2
  32. package/css/components/Banner/banner.css +86 -64
  33. package/css/components/Banner/banner.d.ts +11 -4
  34. package/css/components/Banner/banner.js +11 -4
  35. package/css/components/Banner/banner.mjs +11 -4
  36. package/css/components/Button/button.css +142 -179
  37. package/css/components/Button/button.d.ts +1 -2
  38. package/css/components/Button/button.js +1 -2
  39. package/css/components/Button/button.mjs +1 -2
  40. package/css/components/Check/check.css +10 -8
  41. package/css/components/Content/content.css +67 -67
  42. package/css/components/Drawer/drawer.css +0 -1
  43. package/css/components/Dropdown/dropdown.css +1 -3
  44. package/css/components/Dropdown/dropdown.d.ts +0 -1
  45. package/css/components/Dropdown/dropdown.js +0 -1
  46. package/css/components/Dropdown/dropdown.mjs +0 -1
  47. package/css/components/ExpandableSection/expandable-section.css +64 -55
  48. package/css/components/ExpandableSection/expandable-section.d.ts +1 -3
  49. package/css/components/ExpandableSection/expandable-section.js +1 -3
  50. package/css/components/ExpandableSection/expandable-section.mjs +1 -3
  51. package/css/components/Hint/hint.css +28 -21
  52. package/css/components/Hint/hint.d.ts +1 -2
  53. package/css/components/Hint/hint.js +1 -2
  54. package/css/components/Hint/hint.mjs +1 -2
  55. package/css/components/List/list.css +16 -16
  56. package/css/components/Login/login.css +70 -97
  57. package/css/components/Login/login.d.ts +0 -2
  58. package/css/components/Login/login.js +0 -2
  59. package/css/components/Login/login.mjs +0 -2
  60. package/css/components/Masthead/masthead.css +49 -103
  61. package/css/components/Masthead/masthead.d.ts +1 -6
  62. package/css/components/Masthead/masthead.js +1 -6
  63. package/css/components/Masthead/masthead.mjs +1 -6
  64. package/css/components/Menu/menu.css +3 -0
  65. package/css/components/Menu/menu.d.ts +1 -0
  66. package/css/components/Menu/menu.js +1 -0
  67. package/css/components/Menu/menu.mjs +1 -0
  68. package/css/components/MenuToggle/menu-toggle.css +57 -80
  69. package/css/components/ModalBox/modal-box.css +59 -52
  70. package/css/components/ModalBox/modal-box.d.ts +1 -2
  71. package/css/components/ModalBox/modal-box.js +1 -2
  72. package/css/components/ModalBox/modal-box.mjs +1 -2
  73. package/css/components/Nav/nav.css +42 -40
  74. package/css/components/NotificationBadge/notification-badge.css +56 -81
  75. package/css/components/NotificationBadge/notification-badge.d.ts +1 -5
  76. package/css/components/NotificationBadge/notification-badge.js +1 -5
  77. package/css/components/NotificationBadge/notification-badge.mjs +1 -5
  78. package/css/components/Page/page.css +112 -209
  79. package/css/components/Page/page.d.ts +5 -12
  80. package/css/components/Page/page.js +5 -12
  81. package/css/components/Page/page.mjs +5 -12
  82. package/css/components/Popover/popover.css +42 -51
  83. package/css/components/Popover/popover.d.ts +1 -2
  84. package/css/components/Popover/popover.js +1 -2
  85. package/css/components/Popover/popover.mjs +1 -2
  86. package/css/components/Radio/radio.css +13 -10
  87. package/css/components/SkipToContent/skip-to-content.css +6 -3
  88. package/css/components/Switch/switch.css +1 -1
  89. package/css/components/Table/table-grid.css +8 -8
  90. package/css/components/Table/table.css +85 -90
  91. package/css/components/Table/table.d.ts +2 -0
  92. package/css/components/Table/table.js +2 -0
  93. package/css/components/Table/table.mjs +2 -0
  94. package/css/components/Title/title.css +70 -19
  95. package/css/components/Title/title.d.ts +7 -1
  96. package/css/components/Title/title.js +7 -1
  97. package/css/components/Title/title.mjs +7 -1
  98. package/css/components/Toolbar/toolbar.css +13 -3
  99. package/css/components/Toolbar/toolbar.d.ts +1 -0
  100. package/css/components/Toolbar/toolbar.js +1 -0
  101. package/css/components/Toolbar/toolbar.mjs +1 -0
  102. package/css/components/Tooltip/tooltip.css +16 -16
  103. package/css/components/Tooltip/tooltip.d.ts +0 -1
  104. package/css/components/Tooltip/tooltip.js +0 -1
  105. package/css/components/Tooltip/tooltip.mjs +0 -1
  106. package/css/docs/components/Brand/examples/Brand.css +12 -0
  107. package/css/docs/components/Brand/examples/Brand.d.ts +10 -0
  108. package/css/docs/components/Brand/examples/Brand.js +11 -0
  109. package/css/docs/components/Brand/examples/Brand.mjs +9 -0
  110. package/css/docs/components/Nav/examples/Navigation.css +2 -1
  111. package/css/docs/components/Page/examples/Page.css +0 -8
  112. package/css/docs/components/Page/examples/Page.d.ts +0 -7
  113. package/css/docs/components/Page/examples/Page.js +0 -7
  114. package/css/docs/components/Page/examples/Page.mjs +0 -7
  115. package/css/docs/demos/Toolbar/examples/Toolbar.css +15 -0
  116. package/css/docs/demos/Toolbar/examples/Toolbar.d.ts +6 -1
  117. package/css/docs/demos/Toolbar/examples/Toolbar.js +6 -1
  118. package/css/docs/demos/Toolbar/examples/Toolbar.mjs +6 -1
  119. package/package.json +3 -3
  120. package/css/docs/components/NotificationBadge/examples/NotificationBadge.css +0 -3
  121. package/css/docs/components/NotificationBadge/examples/NotificationBadge.d.ts +0 -5
  122. package/css/docs/components/NotificationBadge/examples/NotificationBadge.js +0 -6
  123. package/css/docs/components/NotificationBadge/examples/NotificationBadge.mjs +0 -4
@@ -1,17 +1,18 @@
1
- .pf-v5-c-tooltip {
1
+ :root {
2
2
  --pf-v5-c-tooltip--MaxWidth: 18.75rem;
3
- --pf-v5-c-tooltip--BoxShadow: var(--pf-v5-global--BoxShadow--md);
4
- --pf-v5-c-tooltip__content--PaddingTop: var(--pf-v5-global--spacer--sm);
5
- --pf-v5-c-tooltip__content--PaddingRight: var(--pf-v5-global--spacer--sm);
6
- --pf-v5-c-tooltip__content--PaddingBottom: var(--pf-v5-global--spacer--sm);
7
- --pf-v5-c-tooltip__content--PaddingLeft: var(--pf-v5-global--spacer--sm);
8
- --pf-v5-c-tooltip__content--Color: var(--pf-v5-global--Color--light-100);
9
- --pf-v5-c-tooltip__content--BackgroundColor: var(--pf-v5-global--BackgroundColor--dark-100);
10
- --pf-v5-c-tooltip__content--FontSize: var(--pf-v5-global--FontSize--sm);
3
+ --pf-v5-c-tooltip--BoxShadow: var(--pf-t--global--box-shadow--md);
4
+ --pf-v5-c-tooltip__content--PaddingTop: var(--pf-t--global--spacer--sm);
5
+ --pf-v5-c-tooltip__content--PaddingRight: var(--pf-t--global--spacer--md);
6
+ --pf-v5-c-tooltip__content--PaddingBottom: var(--pf-t--global--spacer--sm);
7
+ --pf-v5-c-tooltip__content--PaddingLeft: var(--pf-t--global--spacer--md);
8
+ --pf-v5-c-tooltip__content--Color: var(--pf-t--global--text--color--inverse);
9
+ --pf-v5-c-tooltip__content--BackgroundColor: var(--pf-t--global--background--color--inverse--default);
10
+ --pf-v5-c-tooltip__content--FontSize: var(--pf-t--global--font--size--body--sm);
11
+ --pf-v5-c-tooltip__content--BorderRadius: var(--pf-t--global--border--radius--small);
11
12
  --pf-v5-c-tooltip__arrow--Width: 0.9375rem;
12
13
  --pf-v5-c-tooltip__arrow--Height: 0.9375rem;
13
- --pf-v5-c-tooltip__arrow--BackgroundColor: var(--pf-v5-global--BackgroundColor--dark-100);
14
- --pf-v5-c-tooltip__arrow--BoxShadow: var(--pf-v5-global--BoxShadow--md);
14
+ --pf-v5-c-tooltip__arrow--BackgroundColor: var(--pf-t--global--background--color--inverse--default);
15
+ --pf-v5-c-tooltip__arrow--BoxShadow: var(--pf-t--global--box-shadow--md);
15
16
  --pf-v5-c-tooltip__arrow--m-top--TranslateX: -50%;
16
17
  --pf-v5-c-tooltip__arrow--m-top--TranslateY: 50%;
17
18
  --pf-v5-c-tooltip__arrow--m-top--Rotate: 45deg;
@@ -24,6 +25,9 @@
24
25
  --pf-v5-c-tooltip__arrow--m-left--TranslateX: 50%;
25
26
  --pf-v5-c-tooltip__arrow--m-left--TranslateY: -50%;
26
27
  --pf-v5-c-tooltip__arrow--m-left--Rotate: 45deg;
28
+ }
29
+
30
+ .pf-v5-c-tooltip {
27
31
  position: relative;
28
32
  max-width: var(--pf-v5-c-tooltip--MaxWidth);
29
33
  box-shadow: var(--pf-v5-c-tooltip--BoxShadow);
@@ -96,6 +100,7 @@
96
100
  text-align: center;
97
101
  word-break: break-word;
98
102
  background-color: var(--pf-v5-c-tooltip__content--BackgroundColor);
103
+ border-radius: var(--pf-v5-c-tooltip__content--BorderRadius);
99
104
  }
100
105
  .pf-v5-c-tooltip__content.pf-m-text-align-left {
101
106
  text-align: start;
@@ -115,9 +120,4 @@
115
120
  background-color: var(--pf-v5-c-tooltip__arrow--BackgroundColor);
116
121
  box-shadow: var(--pf-v5-c-tooltip__arrow--BoxShadow);
117
122
  transform: translateX(var(--pf-v5-c-tooltip__arrow--TranslateX, 0)) translateY(var(--pf-v5-c-tooltip__arrow--TranslateY, 0)) rotate(var(--pf-v5-c-tooltip__arrow--Rotate, 0));
118
- }
119
-
120
- :where(.pf-v5-theme-dark) .pf-v5-c-tooltip {
121
- --pf-v5-c-tooltip__content--BackgroundColor: var(--pf-v5-global--BackgroundColor--300);
122
- --pf-v5-c-tooltip__arrow--BackgroundColor: var(--pf-v5-global--BackgroundColor--300);
123
123
  }
@@ -15,7 +15,6 @@ declare const _default: {
15
15
  "rightBottom": "pf-m-right-bottom",
16
16
  "textAlignLeft": "pf-m-text-align-left"
17
17
  },
18
- "themeDark": "pf-v5-theme-dark",
19
18
  "tooltip": "pf-v5-c-tooltip",
20
19
  "tooltipArrow": "pf-v5-c-tooltip__arrow",
21
20
  "tooltipContent": "pf-v5-c-tooltip__content"
@@ -17,7 +17,6 @@ exports.default = {
17
17
  "rightBottom": "pf-m-right-bottom",
18
18
  "textAlignLeft": "pf-m-text-align-left"
19
19
  },
20
- "themeDark": "pf-v5-theme-dark",
21
20
  "tooltip": "pf-v5-c-tooltip",
22
21
  "tooltipArrow": "pf-v5-c-tooltip__arrow",
23
22
  "tooltipContent": "pf-v5-c-tooltip__content"
@@ -15,7 +15,6 @@ export default {
15
15
  "rightBottom": "pf-m-right-bottom",
16
16
  "textAlignLeft": "pf-m-text-align-left"
17
17
  },
18
- "themeDark": "pf-v5-theme-dark",
19
18
  "tooltip": "pf-v5-c-tooltip",
20
19
  "tooltipArrow": "pf-v5-c-tooltip__arrow",
21
20
  "tooltipContent": "pf-v5-c-tooltip__content"
@@ -0,0 +1,12 @@
1
+ .show-dark,
2
+ :where(.pf-v5-theme-dark) .show-light {
3
+ display: none;
4
+ }
5
+
6
+ :where(.pf-v5-theme-dark) .show-dark {
7
+ display: revert;
8
+ }
9
+
10
+ :where(.pf-v5-theme-dark) .show-dark .pf-m-picture {
11
+ display: inline-flex;
12
+ }
@@ -0,0 +1,10 @@
1
+ import './Brand.css';
2
+ declare const _default: {
3
+ "modifiers": {
4
+ "picture": "pf-m-picture"
5
+ },
6
+ "showDark": "show-dark",
7
+ "showLight": "show-light",
8
+ "themeDark": "pf-v5-theme-dark"
9
+ };
10
+ export default _default;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ require('./Brand.css');
4
+ exports.default = {
5
+ "modifiers": {
6
+ "picture": "pf-m-picture"
7
+ },
8
+ "showDark": "show-dark",
9
+ "showLight": "show-light",
10
+ "themeDark": "pf-v5-theme-dark"
11
+ };
@@ -0,0 +1,9 @@
1
+ import './Brand.css';
2
+ export default {
3
+ "modifiers": {
4
+ "picture": "pf-m-picture"
5
+ },
6
+ "showDark": "show-dark",
7
+ "showLight": "show-light",
8
+ "themeDark": "pf-v5-theme-dark"
9
+ };
@@ -1,4 +1,5 @@
1
- .ws-core-c-navigation:not([id*="tertiary"]):not([id*="light-mode"]) .pf-v5-c-nav{
1
+ .ws-core-c-navigation:not([id*="tertiary"]):not([id*="light-mode"]) .pf-v5-c-nav {
2
+ padding: 0;
2
3
  background-color: var(--pf-v5-global--BackgroundColor--dark-300);
3
4
  }
4
5
 
@@ -1,11 +1,3 @@
1
- .ws-core-c-page :is(.pf-v5-c-page__sidebar, .pf-v5-c-page__main-subnav) {
2
- color: var(--pf-v5-global--Color--light-100);
3
- }
4
-
5
- .ws-core-c-page .pf-v5-c-page__main-section.pf-m-dark-200 {
6
- color: var(--pf-v5-global--Color--dark-100);
7
- }
8
-
9
1
  #ws-core-c-page-with-or-without-fill .ws-preview-html,
10
2
  #ws-core-c-page-multiple-sidebar-body-elements-padding-and-fill .ws-preview-html {
11
3
  height: 500px;
@@ -1,12 +1,5 @@
1
1
  import './Page.css';
2
2
  declare const _default: {
3
- "modifiers": {
4
- "dark_200": "pf-m-dark-200"
5
- },
6
- "pageMainSection": "pf-v5-c-page__main-section",
7
- "pageMainSubnav": "pf-v5-c-page__main-subnav",
8
- "pageSidebar": "pf-v5-c-page__sidebar",
9
- "wsCoreCPage": "ws-core-c-page",
10
3
  "wsPreviewHtml": "ws-preview-html"
11
4
  };
12
5
  export default _default;
@@ -2,12 +2,5 @@
2
2
  exports.__esModule = true;
3
3
  require('./Page.css');
4
4
  exports.default = {
5
- "modifiers": {
6
- "dark_200": "pf-m-dark-200"
7
- },
8
- "pageMainSection": "pf-v5-c-page__main-section",
9
- "pageMainSubnav": "pf-v5-c-page__main-subnav",
10
- "pageSidebar": "pf-v5-c-page__sidebar",
11
- "wsCoreCPage": "ws-core-c-page",
12
5
  "wsPreviewHtml": "ws-preview-html"
13
6
  };
@@ -1,11 +1,4 @@
1
1
  import './Page.css';
2
2
  export default {
3
- "modifiers": {
4
- "dark_200": "pf-m-dark-200"
5
- },
6
- "pageMainSection": "pf-v5-c-page__main-section",
7
- "pageMainSubnav": "pf-v5-c-page__main-subnav",
8
- "pageSidebar": "pf-v5-c-page__sidebar",
9
- "wsCoreCPage": "ws-core-c-page",
10
3
  "wsPreviewHtml": "ws-preview-html"
11
4
  };
@@ -5,6 +5,21 @@
5
5
  min-height: 420px;
6
6
  }
7
7
 
8
+ #ws-html-demos-c-toolbar-toolbar-attribute-value-single-select-filter-on-desktop,
9
+ #ws-html-demos-c-toolbar-toolbar-attribute-value-checkbox-select-filter-on-desktop {
10
+ min-height: 320px;
11
+ }
12
+
8
13
  #ws-html-demos-c-toolbar-toolbar-attribute-value-search-filter-on-mobile {
9
14
  min-height: 175px;
10
15
  }
16
+
17
+ .pf-v5-c-menu-toggle + .pf-v5-c-panel {
18
+ position: absolute;
19
+ top: calc(100% + 2px);
20
+ z-index: var(--pf-v5-global--ZIndex--sm);
21
+ }
22
+
23
+ .ws-html-demos-c-toolbar .pf-v5-c-toolbar__item {
24
+ position: relative;
25
+ }
@@ -1,3 +1,8 @@
1
1
  import './Toolbar.css';
2
- declare const _default: {};
2
+ declare const _default: {
3
+ "menuToggle": "pf-v5-c-menu-toggle",
4
+ "panel": "pf-v5-c-panel",
5
+ "toolbarItem": "pf-v5-c-toolbar__item",
6
+ "wsHtmlDemosCToolbar": "ws-html-demos-c-toolbar"
7
+ };
3
8
  export default _default;
@@ -1,4 +1,9 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
3
  require('./Toolbar.css');
4
- exports.default = {};
4
+ exports.default = {
5
+ "menuToggle": "pf-v5-c-menu-toggle",
6
+ "panel": "pf-v5-c-panel",
7
+ "toolbarItem": "pf-v5-c-toolbar__item",
8
+ "wsHtmlDemosCToolbar": "ws-html-demos-c-toolbar"
9
+ };
@@ -1,2 +1,7 @@
1
1
  import './Toolbar.css';
2
- export default {};
2
+ export default {
3
+ "menuToggle": "pf-v5-c-menu-toggle",
4
+ "panel": "pf-v5-c-panel",
5
+ "toolbarItem": "pf-v5-c-toolbar__item",
6
+ "wsHtmlDemosCToolbar": "ws-html-demos-c-toolbar"
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-styles",
3
- "version": "6.0.0-alpha.1",
3
+ "version": "6.0.0-alpha.3",
4
4
  "main": "dist/js/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "clean": "rimraf dist css"
20
20
  },
21
21
  "devDependencies": {
22
- "@patternfly/patternfly": "5.1.0-prerelease.28",
22
+ "@patternfly/patternfly": "6.0.0-alpha.28",
23
23
  "camel-case": "^3.0.0",
24
24
  "css": "^2.2.3",
25
25
  "fs-extra": "^11.1.1",
@@ -29,5 +29,5 @@
29
29
  "typescript": "^4.7.4"
30
30
  },
31
31
  "license": "MIT",
32
- "gitHead": "abccf530a0a642a4d7b4eda6ada09c5822c855b0"
32
+ "gitHead": "da36134a3effa82a166c47f5b1c2689869a0f52a"
33
33
  }
@@ -1,3 +0,0 @@
1
- .ws-core-c-notification-badge {
2
- background: var(--pf-v5-global--BackgroundColor--dark-100);
3
- }
@@ -1,5 +0,0 @@
1
- import './NotificationBadge.css';
2
- declare const _default: {
3
- "wsCoreCNotificationBadge": "ws-core-c-notification-badge"
4
- };
5
- export default _default;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- exports.__esModule = true;
3
- require('./NotificationBadge.css');
4
- exports.default = {
5
- "wsCoreCNotificationBadge": "ws-core-c-notification-badge"
6
- };
@@ -1,4 +0,0 @@
1
- import './NotificationBadge.css';
2
- export default {
3
- "wsCoreCNotificationBadge": "ws-core-c-notification-badge"
4
- };