@patternfly/react-styles 6.0.0-alpha.6 → 6.0.0-alpha.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/css/components/Button/button.css +44 -14
  3. package/css/components/Card/card.css +97 -194
  4. package/css/components/Card/card.d.ts +3 -9
  5. package/css/components/Card/card.js +3 -9
  6. package/css/components/Card/card.mjs +3 -9
  7. package/css/components/ClipboardCopy/clipboard-copy.css +30 -33
  8. package/css/components/ClipboardCopy/clipboard-copy.d.ts +1 -2
  9. package/css/components/ClipboardCopy/clipboard-copy.js +1 -2
  10. package/css/components/ClipboardCopy/clipboard-copy.mjs +1 -2
  11. package/css/components/CodeBlock/code-block.css +18 -9
  12. package/css/components/DescriptionList/description-list.css +39 -34
  13. package/css/components/DragDrop/drag-drop.css +18 -14
  14. package/css/components/DragDrop/drag-drop.d.ts +1 -2
  15. package/css/components/DragDrop/drag-drop.js +1 -2
  16. package/css/components/DragDrop/drag-drop.mjs +1 -2
  17. package/css/components/Drawer/drawer.css +113 -113
  18. package/css/components/Drawer/drawer.d.ts +3 -3
  19. package/css/components/Drawer/drawer.js +3 -3
  20. package/css/components/Drawer/drawer.mjs +3 -3
  21. package/css/components/FileUpload/file-upload.css +28 -34
  22. package/css/components/FormControl/form-control.css +3 -3
  23. package/css/components/Icon/icon.css +154 -18
  24. package/css/components/Icon/icon.d.ts +11 -0
  25. package/css/components/Icon/icon.js +11 -0
  26. package/css/components/Icon/icon.mjs +11 -0
  27. package/css/components/InlineEdit/inline-edit.css +3 -2
  28. package/css/components/InputGroup/input-group.css +22 -38
  29. package/css/components/InputGroup/input-group.d.ts +1 -2
  30. package/css/components/InputGroup/input-group.js +1 -2
  31. package/css/components/InputGroup/input-group.mjs +1 -2
  32. package/css/components/JumpLinks/jump-links.css +34 -34
  33. package/css/components/Label/label-group.css +39 -44
  34. package/css/components/Label/label.css +258 -355
  35. package/css/components/Label/label.d.ts +11 -10
  36. package/css/components/Label/label.js +11 -10
  37. package/css/components/Label/label.mjs +11 -10
  38. package/css/components/Nav/nav.css +240 -918
  39. package/css/components/Nav/nav.d.ts +9 -20
  40. package/css/components/Nav/nav.js +9 -20
  41. package/css/components/Nav/nav.mjs +9 -20
  42. package/css/components/NumberInput/number-input.css +8 -8
  43. package/css/components/NumberInput/number-input.d.ts +0 -3
  44. package/css/components/NumberInput/number-input.js +0 -3
  45. package/css/components/NumberInput/number-input.mjs +0 -3
  46. package/css/components/Sidebar/sidebar.css +20 -9
  47. package/css/components/Sidebar/sidebar.d.ts +1 -0
  48. package/css/components/Sidebar/sidebar.js +1 -0
  49. package/css/components/Sidebar/sidebar.mjs +1 -0
  50. package/css/components/SimpleList/simple-list.css +1 -1
  51. package/css/components/Tile/tile.css +40 -81
  52. package/css/components/Tile/tile.d.ts +0 -1
  53. package/css/components/Tile/tile.js +0 -1
  54. package/css/components/Tile/tile.mjs +0 -1
  55. package/css/components/Timestamp/timestamp.css +12 -9
  56. package/css/components/ToggleGroup/toggle-group.css +34 -47
  57. package/css/components/ToggleGroup/toggle-group.d.ts +0 -1
  58. package/css/components/ToggleGroup/toggle-group.js +0 -1
  59. package/css/components/ToggleGroup/toggle-group.mjs +0 -1
  60. package/css/docs/components/DragDrop/examples/DragDrop.css +1 -1
  61. package/css/docs/components/Label/examples/Label.css +4 -0
  62. package/css/docs/components/Nav/examples/Navigation.css +1 -39
  63. package/css/docs/components/Nav/examples/Navigation.d.ts +0 -2
  64. package/css/docs/components/Nav/examples/Navigation.js +0 -2
  65. package/css/docs/components/Nav/examples/Navigation.mjs +0 -2
  66. package/package.json +3 -3
@@ -1,38 +1,39 @@
1
- .pf-v5-c-toggle-group {
2
- --pf-v5-c-toggle-group__button--PaddingTop: var(--pf-v5-global--spacer--form-element);
3
- --pf-v5-c-toggle-group__button--PaddingRight: var(--pf-v5-global--spacer--md);
4
- --pf-v5-c-toggle-group__button--PaddingBottom: var(--pf-v5-global--spacer--form-element);
5
- --pf-v5-c-toggle-group__button--PaddingLeft: var(--pf-v5-global--spacer--md);
6
- --pf-v5-c-toggle-group__button--FontSize: var(--pf-v5-global--FontSize--sm);
7
- --pf-v5-c-toggle-group__button--LineHeight: calc(var(--pf-v5-global--FontSize--md) * var(--pf-v5-global--LineHeight--md));
8
- --pf-v5-c-toggle-group__button--Color: var(--pf-v5-global--Color--100);
9
- --pf-v5-c-toggle-group__button--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
1
+ :where(:root),
2
+ :where(.pf-v5-c-toggle-group) {
3
+ --pf-v5-c-toggle-group__button--PaddingTop: var(--pf-t--global--spacer--sm);
4
+ --pf-v5-c-toggle-group__button--PaddingRight: var(--pf-t--global--spacer--md);
5
+ --pf-v5-c-toggle-group__button--PaddingBottom: var(--pf-t--global--spacer--sm);
6
+ --pf-v5-c-toggle-group__button--PaddingLeft: var(--pf-t--global--spacer--md);
7
+ --pf-v5-c-toggle-group__button--FontSize: var(--pf-t--global--font--size--body--default);
8
+ --pf-v5-c-toggle-group__button--LineHeight: var(--pf-t--global--font--line-height--body);
9
+ --pf-v5-c-toggle-group__button--Color: var(--pf-t--global--text--color--regular);
10
+ --pf-v5-c-toggle-group__button--BackgroundColor: var(--pf-t--global--background--color--action--plain--default);
10
11
  --pf-v5-c-toggle-group__button--ZIndex: auto;
11
- --pf-v5-c-toggle-group__button--hover--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
12
- --pf-v5-c-toggle-group__button--hover--ZIndex: var(--pf-v5-global--ZIndex--xs);
13
- --pf-v5-c-toggle-group__button--hover--before--BorderColor: var(--pf-v5-global--BorderColor--200);
14
- --pf-v5-c-toggle-group__button--focus--BackgroundColor: var(--pf-v5-global--BackgroundColor--200);
15
- --pf-v5-c-toggle-group__button--focus--ZIndex: var(--pf-v5-global--ZIndex--xs);
16
- --pf-v5-c-toggle-group__button--focus--before--BorderColor: var(--pf-v5-global--BorderColor--200);
17
- --pf-v5-c-toggle-group__button--disabled--BackgroundColor: var(--pf-v5-global--disabled-color--200);
18
- --pf-v5-c-toggle-group__button--disabled--Color: var(--pf-v5-global--disabled-color--100);
19
- --pf-v5-c-toggle-group__button--before--BorderWidth: var(--pf-v5-global--BorderWidth--sm);
20
- --pf-v5-c-toggle-group__button--before--BorderColor: var(--pf-v5-global--BorderColor--100);
21
- --pf-v5-c-toggle-group__item--item--MarginLeft: calc(-1 * var(--pf-v5-global--BorderWidth--sm));
22
- --pf-v5-c-toggle-group__item--first-child__button--BorderTopLeftRadius: var(--pf-v5-global--BorderRadius--sm);
23
- --pf-v5-c-toggle-group__item--first-child__button--BorderBottomLeftRadius: var(--pf-v5-global--BorderRadius--sm);
24
- --pf-v5-c-toggle-group__item--last-child__button--BorderTopRightRadius: var(--pf-v5-global--BorderRadius--sm);
25
- --pf-v5-c-toggle-group__item--last-child__button--BorderBottomRightRadius: var(--pf-v5-global--BorderRadius--sm);
26
- --pf-v5-c-toggle-group__icon--text--MarginLeft: var(--pf-v5-global--spacer--sm);
27
- --pf-v5-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-v5-global--palette--blue-50);
28
- --pf-v5-c-toggle-group__button--m-selected--Color: initial;
29
- --pf-v5-c-toggle-group__button--m-selected--before--BorderColor: var(--pf-v5-global--primary-color--100);
30
- --pf-v5-c-toggle-group__button--m-selected--ZIndex: var(--pf-v5-global--ZIndex--xs);
12
+ --pf-v5-c-toggle-group__button--hover--BackgroundColor: var(--pf-t--global--background--color--primary--hover);
13
+ --pf-v5-c-toggle-group__button--hover--ZIndex: var(--pf-t--global--Zindex--xs);
14
+ --pf-v5-c-toggle-group__button--hover--before--BorderColor: var(--pf-t--global--border--color--default);
15
+ --pf-v5-c-toggle-group__button--disabled--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
16
+ --pf-v5-c-toggle-group__button--disabled--Color: var(--pf-t--global--text--color--on-disabled);
17
+ --pf-v5-c-toggle-group__button--before--BorderWidth: var(--pf-t--global--border--width--control--default);
18
+ --pf-v5-c-toggle-group__button--before--BorderColor: var(--pf-t--global--border--color--default);
19
+ --pf-v5-c-toggle-group__item--item--MarginLeft: calc(-1 * var(--pf-t--global--border--width--control--default));
20
+ --pf-v5-c-toggle-group__item--first-child__button--BorderTopLeftRadius: var(--pf-t--global--border--radius--tiny);
21
+ --pf-v5-c-toggle-group__item--first-child__button--BorderBottomLeftRadius: var(--pf-t--global--border--radius--tiny);
22
+ --pf-v5-c-toggle-group__item--last-child__button--BorderTopRightRadius: var(--pf-t--global--border--radius--tiny);
23
+ --pf-v5-c-toggle-group__item--last-child__button--BorderBottomRightRadius: var(--pf-t--global--border--radius--tiny);
24
+ --pf-v5-c-toggle-group__icon--text--MarginLeft: var(--pf-t--global--spacer--sm);
25
+ --pf-v5-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-t--global--color--brand--default);
26
+ --pf-v5-c-toggle-group__button--m-selected--Color: var(--pf-t--global--text--color--on-brand--default);
27
+ --pf-v5-c-toggle-group__button--m-selected--before--BorderColor: var(--pf-t--global--border--color--clicked);
28
+ --pf-v5-c-toggle-group__button--m-selected--ZIndex: var(--pf-t--global--Zindex--xs);
31
29
  --pf-v5-c-toggle-group--m-compact__button--PaddingTop: 0;
32
- --pf-v5-c-toggle-group--m-compact__button--PaddingRight: var(--pf-v5-global--spacer--sm);
30
+ --pf-v5-c-toggle-group--m-compact__button--PaddingRight: var(--pf-t--global--spacer--sm);
33
31
  --pf-v5-c-toggle-group--m-compact__button--PaddingBottom: 0;
34
- --pf-v5-c-toggle-group--m-compact__button--PaddingLeft: var(--pf-v5-global--spacer--sm);
35
- --pf-v5-c-toggle-group--m-compact__button--FontSize: var(--pf-v5-global--FontSize--xs);
32
+ --pf-v5-c-toggle-group--m-compact__button--PaddingLeft: var(--pf-t--global--spacer--sm);
33
+ --pf-v5-c-toggle-group--m-compact__button--FontSize: var(--pf-t--global--font--size--body--default);
34
+ }
35
+
36
+ .pf-v5-c-toggle-group {
36
37
  display: flex;
37
38
  }
38
39
  .pf-v5-c-toggle-group.pf-m-compact {
@@ -79,17 +80,12 @@
79
80
  content: "";
80
81
  border: var(--pf-v5-c-toggle-group__button--before--BorderWidth) solid var(--pf-v5-c-toggle-group__button--before--BorderColor);
81
82
  }
82
- .pf-v5-c-toggle-group__button:hover {
83
+ .pf-v5-c-toggle-group__button:hover, .pf-v5-c-toggle-group__button:focus {
83
84
  --pf-v5-c-toggle-group__button--BackgroundColor: var(--pf-v5-c-toggle-group__button--hover--BackgroundColor);
84
85
  --pf-v5-c-toggle-group__button--ZIndex: var(--pf-v5-c-toggle-group__button--hover--ZIndex);
85
86
  --pf-v5-c-toggle-group__button--before--BorderColor: var(--pf-v5-c-toggle-group__button--hover--before--BorderColor);
86
87
  text-decoration: none;
87
88
  }
88
- .pf-v5-c-toggle-group__button:focus {
89
- --pf-v5-c-toggle-group__button--BackgroundColor: var(--pf-v5-c-toggle-group__button--focus--BackgroundColor);
90
- --pf-v5-c-toggle-group__button--ZIndex: var(--pf-v5-c-toggle-group__button--focus--ZIndex);
91
- --pf-v5-c-toggle-group__button--before--BorderColor: var(--pf-v5-c-toggle-group__button--focus--before--BorderColor);
92
- }
93
89
  .pf-v5-c-toggle-group__button.pf-m-selected {
94
90
  --pf-v5-c-toggle-group__button--BackgroundColor: var(--pf-v5-c-toggle-group__button--m-selected--BackgroundColor);
95
91
  --pf-v5-c-toggle-group__button--Color: var(--pf-v5-c-toggle-group__button--m-selected--Color, inherit);
@@ -105,13 +101,4 @@
105
101
  .pf-v5-c-toggle-group__icon + .pf-v5-c-toggle-group__text,
106
102
  .pf-v5-c-toggle-group__text + .pf-v5-c-toggle-group__icon {
107
103
  margin-inline-start: var(--pf-v5-c-toggle-group__icon--text--MarginLeft);
108
- }
109
-
110
- :where(.pf-v5-theme-dark) .pf-v5-c-toggle-group {
111
- --pf-v5-c-toggle-group__button--hover--BackgroundColor: var(--pf-v5-global--palette--black-700);
112
- --pf-v5-c-toggle-group__button--focus--BackgroundColor: var(--pf-v5-global--palette--black-700);
113
- --pf-v5-c-toggle-group__button--disabled--BackgroundColor: var(--pf-v5-global--palette--black-600);
114
- --pf-v5-c-toggle-group__button--disabled--Color: var(--pf-v5-global--palette--black-100);
115
- --pf-v5-c-toggle-group__button--m-selected--BackgroundColor: var(--pf-v5-global--primary-color--300);
116
- --pf-v5-c-toggle-group__button--m-selected--Color: var(--pf-v5-global--primary-color--400);
117
104
  }
@@ -5,7 +5,6 @@ declare const _default: {
5
5
  "selected": "pf-m-selected",
6
6
  "disabled": "pf-m-disabled"
7
7
  },
8
- "themeDark": "pf-v5-theme-dark",
9
8
  "toggleGroup": "pf-v5-c-toggle-group",
10
9
  "toggleGroupButton": "pf-v5-c-toggle-group__button",
11
10
  "toggleGroupIcon": "pf-v5-c-toggle-group__icon",
@@ -7,7 +7,6 @@ exports.default = {
7
7
  "selected": "pf-m-selected",
8
8
  "disabled": "pf-m-disabled"
9
9
  },
10
- "themeDark": "pf-v5-theme-dark",
11
10
  "toggleGroup": "pf-v5-c-toggle-group",
12
11
  "toggleGroupButton": "pf-v5-c-toggle-group__button",
13
12
  "toggleGroupIcon": "pf-v5-c-toggle-group__icon",
@@ -5,7 +5,6 @@ export default {
5
5
  "selected": "pf-m-selected",
6
6
  "disabled": "pf-m-disabled"
7
7
  },
8
- "themeDark": "pf-v5-theme-dark",
9
8
  "toggleGroup": "pf-v5-c-toggle-group",
10
9
  "toggleGroupButton": "pf-v5-c-toggle-group__button",
11
10
  "toggleGroupIcon": "pf-v5-c-toggle-group__icon",
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .pf-v5-c-draggable.pf-m-dragging {
6
- --pf-v5-c-draggable--m-dragging--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
6
+ --pf-v5-c-draggable--m-dragging--BackgroundColor: var(--pf-t--global--background--color--primary--default);
7
7
 
8
8
  position: absolute;
9
9
  inset-block-start: 23%;
@@ -1,9 +1,13 @@
1
1
  #ws-core-c-label-filled .ws-preview-html,
2
+ #ws-core-c-label-outline .ws-preview-html,
3
+ #ws-core-c-label-compact .ws-preview-html,
2
4
  #ws-core-c-label-overflow .ws-preview-html {
3
5
  margin: -4px;
4
6
  }
5
7
 
6
8
  #ws-core-c-label-filled .pf-v5-c-label,
9
+ #ws-core-c-label-outline .pf-v5-c-label,
10
+ #ws-core-c-label-compact .pf-v5-c-label,
7
11
  #ws-core-c-label-overflow .pf-v5-c-label {
8
12
  margin: 4px;
9
13
  }
@@ -1,41 +1,3 @@
1
- #ws-core-c-navigation-default,
2
- #ws-core-c-navigation-basic,
3
- #ws-core-c-navigation-grouped,
4
- #ws-core-c-navigation-grouped-nav,
5
- #ws-core-c-navigation-grouped-nav-no-titles,
6
- #ws-core-c-navigation-expanded,
7
- #ws-core-c-navigation-expanded-with-subnav-titles,
8
- #ws-core-c-navigation-mixed,
9
- #ws-core-c-navigation-horizontal,
10
- #ws-core-c-navigation-horizontal-overflow,
11
- #ws-core-c-navigation-horizontal-subnav,
12
- #ws-core-c-navigation-horizontal-subnav-overflow,
13
- #ws-core-c-navigation-drilldown,
14
- #ws-core-c-navigation-nav-with-drilldown-menu .pf-v5-c-nav,
15
- #ws-core-c-navigation-level-2-drilldown,
16
- #ws-core-c-navigation-level-3-drilldown,
17
- #ws-core-c-navigation-nav-with-flyout .pf-v5-c-nav,
18
- #ws-core-c-navigation-grouped-nav-no-titles-no-margin-top {
19
- padding: 0;
20
- }
21
-
22
- #ws-core-c-navigation-horizontal-in-masthead,
23
- #ws-core-c-navigation-horizontal-in-masthead-overflow {
24
- grid-template-rows: auto;
25
- }
26
-
27
- #ws-core-c-navigation-horizontal-in-masthead .pf-v5-c-page__header,
28
- #ws-core-c-navigation-horizontal-in-masthead-overflow .pf-v5-c-page__header {
29
- min-height: 0;
30
- }
31
-
32
- @media screen and (min-width: 1200px) {
33
- #ws-core-c-navigation-horizontal-in-masthead .pf-v5-c-page__header,
34
- #ws-core-c-navigation-horizontal-in-masthead-overflow .pf-v5-c-page__header {
35
- min-height: var(--pf-v5-c-page__header--MinHeight);
36
- }
37
- }
38
-
39
1
  #ws-core-c-navigation-horizontal-in-masthead .pf-v5-c-page__header-nav,
40
2
  #ws-core-c-navigation-horizontal-in-masthead-overflow .pf-v5-c-page__header-nav {
41
3
  grid-row: 1;
@@ -43,7 +5,7 @@
43
5
 
44
6
  #ws-core-c-navigation-nav-with-flyout .ws-preview-html,
45
7
  [id^="ws-core-c-navigation-nav-with-drilldown-menu"] .ws-preview-html {
46
- width: 260px;
8
+ width: 280px;
47
9
  }
48
10
 
49
11
  #ws-core-c-navigation-nav-with-flyout .ws-preview-html {
@@ -5,8 +5,6 @@ declare const _default: {
5
5
  "flyout": "pf-m-flyout",
6
6
  "nav": "pf-m-nav"
7
7
  },
8
- "nav": "pf-v5-c-nav",
9
- "pageHeader": "pf-v5-c-page__header",
10
8
  "pageHeaderNav": "pf-v5-c-page__header-nav",
11
9
  "wsPreviewHtml": "ws-preview-html"
12
10
  };
@@ -7,8 +7,6 @@ exports.default = {
7
7
  "flyout": "pf-m-flyout",
8
8
  "nav": "pf-m-nav"
9
9
  },
10
- "nav": "pf-v5-c-nav",
11
- "pageHeader": "pf-v5-c-page__header",
12
10
  "pageHeaderNav": "pf-v5-c-page__header-nav",
13
11
  "wsPreviewHtml": "ws-preview-html"
14
12
  };
@@ -5,8 +5,6 @@ export default {
5
5
  "flyout": "pf-m-flyout",
6
6
  "nav": "pf-m-nav"
7
7
  },
8
- "nav": "pf-v5-c-nav",
9
- "pageHeader": "pf-v5-c-page__header",
10
8
  "pageHeaderNav": "pf-v5-c-page__header-nav",
11
9
  "wsPreviewHtml": "ws-preview-html"
12
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-styles",
3
- "version": "6.0.0-alpha.6",
3
+ "version": "6.0.0-alpha.8",
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": "6.0.0-alpha.49",
22
+ "@patternfly/patternfly": "6.0.0-alpha.63",
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": "5aae45c06fbd78c00fc09de587cb833b9a7d077d"
32
+ "gitHead": "33b82ec94f4742d6ffca49a9ac03cb5593a2b34a"
33
33
  }