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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/css/assets/images/pf-background.svg +22 -0
  3. package/css/components/AboutModalBox/about-modal-box.css +4 -2
  4. package/css/components/BackgroundImage/background-image.css +5 -1
  5. package/css/components/Button/button.css +369 -348
  6. package/css/components/Button/button.d.ts +9 -7
  7. package/css/components/Button/button.js +9 -7
  8. package/css/components/Button/button.mjs +9 -7
  9. package/css/components/Check/check.css +17 -16
  10. package/css/components/DataList/data-list.css +101 -158
  11. package/css/components/DataList/data-list.d.ts +1 -2
  12. package/css/components/DataList/data-list.js +1 -2
  13. package/css/components/DataList/data-list.mjs +1 -2
  14. package/css/components/Divider/divider.css +97 -177
  15. package/css/components/Divider/divider.d.ts +1 -0
  16. package/css/components/Divider/divider.js +1 -0
  17. package/css/components/Divider/divider.mjs +1 -0
  18. package/css/components/Form/form.css +62 -114
  19. package/css/components/Form/form.d.ts +2 -6
  20. package/css/components/Form/form.js +2 -6
  21. package/css/components/Form/form.mjs +2 -6
  22. package/css/components/FormControl/form-control.css +86 -111
  23. package/css/components/FormControl/form-control.d.ts +1 -2
  24. package/css/components/FormControl/form-control.js +1 -2
  25. package/css/components/FormControl/form-control.mjs +1 -2
  26. package/css/components/Masthead/masthead.css +267 -435
  27. package/css/components/Masthead/masthead.d.ts +2 -38
  28. package/css/components/Masthead/masthead.js +2 -38
  29. package/css/components/Masthead/masthead.mjs +2 -38
  30. package/css/components/NotificationDrawer/notification-drawer.css +104 -115
  31. package/css/components/NotificationDrawer/notification-drawer.d.ts +3 -3
  32. package/css/components/NotificationDrawer/notification-drawer.js +3 -3
  33. package/css/components/NotificationDrawer/notification-drawer.mjs +3 -3
  34. package/css/components/Panel/panel.css +27 -23
  35. package/css/components/Panel/panel.d.ts +2 -2
  36. package/css/components/Panel/panel.js +2 -2
  37. package/css/components/Panel/panel.mjs +2 -2
  38. package/css/components/Progress/progress.css +31 -45
  39. package/css/components/Progress/progress.d.ts +1 -2
  40. package/css/components/Progress/progress.js +1 -2
  41. package/css/components/Progress/progress.mjs +1 -2
  42. package/css/components/Radio/radio.css +15 -11
  43. package/css/components/SimpleList/simple-list.css +1 -1
  44. package/css/components/Skeleton/skeleton.css +18 -20
  45. package/css/components/Skeleton/skeleton.d.ts +1 -2
  46. package/css/components/Skeleton/skeleton.js +1 -2
  47. package/css/components/Skeleton/skeleton.mjs +1 -2
  48. package/css/components/Slider/slider.css +34 -30
  49. package/css/components/Spinner/spinner.css +17 -34
  50. package/css/components/Switch/switch.css +41 -37
  51. package/css/components/Switch/switch.d.ts +1 -2
  52. package/css/components/Switch/switch.js +1 -2
  53. package/css/components/Switch/switch.mjs +1 -2
  54. package/css/components/TabContent/tab-content.css +17 -11
  55. package/css/components/TabContent/tab-content.d.ts +1 -1
  56. package/css/components/TabContent/tab-content.js +1 -1
  57. package/css/components/TabContent/tab-content.mjs +1 -1
  58. package/css/docs/components/Button/examples/Button.css +4 -0
  59. package/css/docs/components/Divider/examples/Divider.css +3 -1
  60. package/package.json +3 -3
@@ -1,37 +1,41 @@
1
+ :root,
1
2
  .pf-v5-c-switch {
2
- --pf-v5-c-switch--FontSize: var(--pf-v5-global--FontSize--md);
3
- --pf-v5-c-switch__label--PaddingLeft: var(--pf-v5-global--spacer--md);
4
- --pf-v5-c-switch--ColumnGap: var(--pf-v5-c-switch__label--PaddingLeft);
3
+ --pf-v5-c-switch--FontSize: var(--pf-t--global--font--size--sm);
4
+ --pf-v5-c-switch--ColumnGap: var(--pf-t--global--spacer--sm);
5
5
  --pf-v5-c-switch__toggle-icon--FontSize: calc(var(--pf-v5-c-switch--FontSize) * .625);
6
- --pf-v5-c-switch__toggle-icon--Color: var(--pf-v5-global--Color--light-100);
6
+ --pf-v5-c-switch__toggle-icon--Color: var(--pf-t--global--icon--color--on-brand--default);
7
7
  --pf-v5-c-switch__toggle-icon--Left: calc(var(--pf-v5-c-switch--FontSize) * .4);
8
8
  --pf-v5-c-switch__toggle-icon--Offset: 0.125rem;
9
- --pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-v5-global--palette--black-150);
10
- --pf-v5-c-switch--LineHeight: var(--pf-v5-global--LineHeight--md);
9
+ --pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-t--global--icon--color--disabled);
10
+ --pf-v5-c-switch--LineHeight: var(--pf-t--global--font--line-height--body);
11
11
  --pf-v5-c-switch--Height: auto;
12
- --pf-v5-c-switch__input--checked__toggle--BackgroundColor: var(--pf-v5-global--primary-color--100);
12
+ --pf-v5-c-switch__input--checked__toggle--BackgroundColor: var(--pf-t--global--color--brand--default);
13
13
  --pf-v5-c-switch__input--checked__toggle--before--TranslateX: calc(100% + var(--pf-v5-c-switch__toggle-icon--Offset));
14
- --pf-v5-c-switch__input--checked__label--Color: var(--pf-v5-global--Color--dark-100);
15
- --pf-v5-c-switch__input--not-checked__label--Color: var(--pf-v5-global--disabled-color--100);
16
- --pf-v5-c-switch__input--disabled__label--Color: var(--pf-v5-global--disabled-color--100);
17
- --pf-v5-c-switch__input--disabled__toggle--BackgroundColor: var(--pf-v5-global--disabled-color--200);
18
- --pf-v5-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-v5-global--palette--black-150);
19
- --pf-v5-c-switch__input--focus__toggle--OutlineWidth: var(--pf-v5-global--BorderWidth--md);
20
- --pf-v5-c-switch__input--focus__toggle--OutlineOffset: var(--pf-v5-global--spacer--sm);
21
- --pf-v5-c-switch__input--focus__toggle--OutlineColor: var(--pf-v5-global--primary-color--100);
14
+ --pf-v5-c-switch__input--checked__toggle--BorderWidth: 0;
15
+ --pf-v5-c-switch__input--checked__label--Color: var(--pf-t--global--text--color--regular);
16
+ --pf-v5-c-switch__input--not-checked__label--Color: var(--pf-t--global--text--color--subtle);
17
+ --pf-v5-c-switch__input--disabled__label--Color: var(--pf-t--global--text--color--disabled);
18
+ --pf-v5-c-switch__input--disabled__toggle--BackgroundColor: var(--pf-t--global--background--color--disabled--default);
19
+ --pf-v5-c-switch__input--checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--inverse);
20
+ --pf-v5-c-switch__input--not-checked__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--subtle);
21
+ --pf-v5-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-t--global--icon--color--on-disabled);
22
+ --pf-v5-c-switch__input--focus__toggle--OutlineWidth: var(--pf-t--global--border--width--strong);
23
+ --pf-v5-c-switch__input--focus__toggle--OutlineOffset: var(--pf-t--global--spacer--xs);
24
+ --pf-v5-c-switch__input--focus__toggle--OutlineColor: var(--pf-t--global--color--brand--default);
22
25
  --pf-v5-c-switch__toggle--Height: calc(var(--pf-v5-c-switch--FontSize) * var(--pf-v5-c-switch--LineHeight));
23
- --pf-v5-c-switch__toggle--BackgroundColor: var(--pf-v5-global--palette--black-500);
24
- --pf-v5-c-switch__toggle--BorderRadius: var(--pf-v5-c-switch__toggle--Height);
26
+ --pf-v5-c-switch__toggle--BackgroundColor: var(--pf-t--global--background--color--control--default);
27
+ --pf-v5-c-switch__toggle--BorderColor: var(--pf-t--global--border--color--default);
28
+ --pf-v5-c-switch__toggle--BorderWidth: var(--pf-t--global--border--width--control--default);
29
+ --pf-v5-c-switch__toggle--BorderRadius: var(--pf-t--global--border--radius--pill);
25
30
  --pf-v5-c-switch__toggle--before--Width: calc(var(--pf-v5-c-switch--FontSize) - var(--pf-v5-c-switch__toggle-icon--Offset));
26
31
  --pf-v5-c-switch__toggle--before--Height: var(--pf-v5-c-switch__toggle--before--Width);
27
- --pf-v5-c-switch__toggle--before--Top: calc((var(--pf-v5-c-switch__toggle--Height) - var(--pf-v5-c-switch__toggle--before--Height)) / 2);
28
- --pf-v5-c-switch__toggle--before--Left: var(--pf-v5-c-switch__toggle--before--Top);
29
- --pf-v5-c-switch__toggle--before--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
30
- --pf-v5-c-switch__toggle--before--BorderRadius: var(--pf-v5-global--BorderRadius--lg);
31
- --pf-v5-c-switch__toggle--before--BoxShadow: var(--pf-v5-global--BoxShadow--md);
32
+ --pf-v5-c-switch__toggle--before--Left: calc((var(--pf-v5-c-switch__toggle--Height) - var(--pf-v5-c-switch__toggle--before--Height)) / 2);
33
+ --pf-v5-c-switch__toggle--before--BorderRadius: var(--pf-t--global--border--radius--large);
32
34
  --pf-v5-c-switch__toggle--before--Transition: transform .25s ease 0s;
33
35
  --pf-v5-c-switch__toggle--Width: calc(var(--pf-v5-c-switch__toggle--Height) + var(--pf-v5-c-switch__toggle-icon--Offset) + var(--pf-v5-c-switch__toggle--before--Width));
34
- --pf-v5-c-switch__label--Color: var(--pf-v5-global--Color--dark-100);
36
+ }
37
+
38
+ .pf-v5-c-switch {
35
39
  position: relative;
36
40
  display: inline-grid;
37
41
  grid-template-columns: auto;
@@ -64,13 +68,15 @@
64
68
  color: var(--pf-v5-c-switch__input--checked__label--Color);
65
69
  }
66
70
  .pf-v5-c-switch__input:checked ~ .pf-v5-c-switch__toggle {
71
+ --pf-v5-c-switch__toggle--BorderWidth: var(--pf-v5-c-switch__input--checked__toggle--BorderWidth);
67
72
  background-color: var(--pf-v5-c-switch__input--checked__toggle--BackgroundColor);
68
73
  }
69
74
  .pf-v5-c-switch__input:checked ~ .pf-v5-c-switch__toggle::before {
70
- transform: translateX(var(--pf-v5-c-switch__input--checked__toggle--before--TranslateX));
75
+ transform: translate(var(--pf-v5-c-switch__input--checked__toggle--before--TranslateX), -50%);
76
+ background-color: var(--pf-v5-c-switch__input--checked__toggle--before--BackgroundColor);
71
77
  }
72
78
  :where(.pf-v5-m-dir-rtl, [dir=rtl]) .pf-v5-c-switch__input:checked ~ .pf-v5-c-switch__toggle::before {
73
- transform: translateX(calc(var(--pf-v5-c-switch__input--checked__toggle--before--TranslateX) * var(--pf-v5-global--inverse--multiplier)));
79
+ transform: translate(calc(var(--pf-v5-c-switch__input--checked__toggle--before--TranslateX) * var(--pf-v5-global--inverse--multiplier)), -50%);
74
80
  }
75
81
 
76
82
  .pf-v5-c-switch__input:checked ~ .pf-m-off {
@@ -111,16 +117,23 @@
111
117
  }
112
118
  .pf-v5-c-switch__toggle::before {
113
119
  position: absolute;
114
- inset-block-start: var(--pf-v5-c-switch__toggle--before--Top);
120
+ inset-block-start: 50%;
115
121
  inset-inline-start: var(--pf-v5-c-switch__toggle--before--Left);
116
122
  display: block;
117
123
  width: var(--pf-v5-c-switch__toggle--before--Width);
118
124
  height: var(--pf-v5-c-switch__toggle--before--Height);
119
125
  content: "";
120
- background-color: var(--pf-v5-c-switch__toggle--before--BackgroundColor);
126
+ background-color: var(--pf-v5-c-switch__input--not-checked__toggle--before--BackgroundColor);
121
127
  border-radius: var(--pf-v5-c-switch__toggle--before--BorderRadius);
122
- box-shadow: var(--pf-v5-c-switch__toggle--before--BoxShadow);
123
128
  transition: var(--pf-v5-c-switch__toggle--before--Transition);
129
+ transform: translateY(-50%);
130
+ }
131
+ .pf-v5-c-switch__toggle::after {
132
+ position: absolute;
133
+ inset: 0;
134
+ content: "";
135
+ border: var(--pf-v5-c-switch__toggle--BorderWidth) solid var(--pf-v5-c-switch__toggle--BorderColor);
136
+ border-radius: var(--pf-v5-c-switch__toggle--BorderRadius);
124
137
  }
125
138
 
126
139
  .pf-v5-c-switch__toggle-icon {
@@ -137,14 +150,5 @@
137
150
  .pf-v5-c-switch__label {
138
151
  display: inline-block;
139
152
  grid-column: 2;
140
- color: var(--pf-v5-c-switch__label--Color);
141
153
  vertical-align: top;
142
- }
143
-
144
- :where(.pf-v5-theme-dark) .pf-v5-c-switch {
145
- --pf-v5-c-switch__toggle-icon--Color: var(--pf-v5-global--BackgroundColor--100);
146
- --pf-v5-c-switch__input--not-checked__label--Color: var(--pf-v5-global--Color--100);
147
- --pf-v5-c-switch__input--disabled__toggle--before--BackgroundColor: var(--pf-v5-global--disabled-color--100);
148
- --pf-v5-c-switch__toggle--before--BoxShadow: none;
149
- --pf-v5-c-switch__input--disabled__toggle-icon--Color: var(--pf-v5-global--disabled-color--100);
150
154
  }
@@ -10,7 +10,6 @@ declare const _default: {
10
10
  "switchInput": "pf-v5-c-switch__input",
11
11
  "switchLabel": "pf-v5-c-switch__label",
12
12
  "switchToggle": "pf-v5-c-switch__toggle",
13
- "switchToggleIcon": "pf-v5-c-switch__toggle-icon",
14
- "themeDark": "pf-v5-theme-dark"
13
+ "switchToggleIcon": "pf-v5-c-switch__toggle-icon"
15
14
  };
16
15
  export default _default;
@@ -12,6 +12,5 @@ exports.default = {
12
12
  "switchInput": "pf-v5-c-switch__input",
13
13
  "switchLabel": "pf-v5-c-switch__label",
14
14
  "switchToggle": "pf-v5-c-switch__toggle",
15
- "switchToggleIcon": "pf-v5-c-switch__toggle-icon",
16
- "themeDark": "pf-v5-theme-dark"
15
+ "switchToggleIcon": "pf-v5-c-switch__toggle-icon"
17
16
  };
@@ -10,6 +10,5 @@ export default {
10
10
  "switchInput": "pf-v5-c-switch__input",
11
11
  "switchLabel": "pf-v5-c-switch__label",
12
12
  "switchToggle": "pf-v5-c-switch__toggle",
13
- "switchToggleIcon": "pf-v5-c-switch__toggle-icon",
14
- "themeDark": "pf-v5-theme-dark"
13
+ "switchToggleIcon": "pf-v5-c-switch__toggle-icon"
15
14
  };
@@ -1,17 +1,23 @@
1
+ :root,
1
2
  .pf-v5-c-tab-content {
2
3
  --pf-v5-c-tab-content__body--PaddingTop: 0;
3
4
  --pf-v5-c-tab-content__body--PaddingRight: 0;
4
5
  --pf-v5-c-tab-content__body--PaddingBottom: 0;
5
6
  --pf-v5-c-tab-content__body--PaddingLeft: 0;
6
- --pf-v5-c-tab-content__body--m-padding--PaddingTop: var(--pf-v5-global--spacer--md);
7
- --pf-v5-c-tab-content__body--m-padding--PaddingRight: var(--pf-v5-global--spacer--md);
8
- --pf-v5-c-tab-content__body--m-padding--PaddingBottom: var(--pf-v5-global--spacer--md);
9
- --pf-v5-c-tab-content__body--m-padding--PaddingLeft: var(--pf-v5-global--spacer--md);
10
- --pf-v5-c-tab-content__body--m-padding--xl--PaddingTop: var(--pf-v5-global--spacer--lg);
11
- --pf-v5-c-tab-content__body--m-padding--xl--PaddingRight: var(--pf-v5-global--spacer--lg);
12
- --pf-v5-c-tab-content__body--m-padding--xl--PaddingBottom: var(--pf-v5-global--spacer--lg);
13
- --pf-v5-c-tab-content__body--m-padding--xl--PaddingLeft: var(--pf-v5-global--spacer--lg);
14
- --pf-v5-c-tab-content--m-light-300: var(--pf-v5-global--BackgroundColor--light-300);
7
+ --pf-v5-c-tab-content--BackgroundColor: transparent;
8
+ --pf-v5-c-tab-content__body--m-padding--PaddingTop: var(--pf-t--global--spacer--md);
9
+ --pf-v5-c-tab-content__body--m-padding--PaddingRight: var(--pf-t--global--spacer--md);
10
+ --pf-v5-c-tab-content__body--m-padding--PaddingBottom: var(--pf-t--global--spacer--md);
11
+ --pf-v5-c-tab-content__body--m-padding--PaddingLeft: var(--pf-t--global--spacer--md);
12
+ --pf-v5-c-tab-content__body--m-padding--xl--PaddingTop: var(--pf-t--global--spacer--lg);
13
+ --pf-v5-c-tab-content__body--m-padding--xl--PaddingRight: var(--pf-t--global--spacer--lg);
14
+ --pf-v5-c-tab-content__body--m-padding--xl--PaddingBottom: var(--pf-t--global--spacer--lg);
15
+ --pf-v5-c-tab-content__body--m-padding--xl--PaddingLeft: var(--pf-t--global--spacer--lg);
16
+ --pf-v5-c-tab-content--m-secondary--BackgroundColor: var(--pf-t--global--background--color--secondary--default);
17
+ }
18
+
19
+ .pf-v5-c-tab-content {
20
+ background-color: var(--pf-v5-c-tab-content--BackgroundColor);
15
21
  }
16
22
  @media screen and (min-width: 1200px) {
17
23
  .pf-v5-c-tab-content {
@@ -21,8 +27,8 @@
21
27
  --pf-v5-c-tab-content__body--m-padding--PaddingLeft: var(--pf-v5-c-tab-content__body--m-padding--xl--PaddingLeft);
22
28
  }
23
29
  }
24
- .pf-v5-c-tab-content.pf-m-light-300 {
25
- background-color: var(--pf-v5-c-tab-content--m-light-300);
30
+ .pf-v5-c-tab-content.pf-m-secondary {
31
+ --pf-v5-c-tab-content--BackgroundColor: var(--pf-v5-c-tab-content--m-secondary--BackgroundColor);
26
32
  }
27
33
 
28
34
  .pf-v5-c-tab-content__body {
@@ -1,7 +1,7 @@
1
1
  import './tab-content.css';
2
2
  declare const _default: {
3
3
  "modifiers": {
4
- "light_300": "pf-m-light-300",
4
+ "secondary": "pf-m-secondary",
5
5
  "padding": "pf-m-padding"
6
6
  },
7
7
  "tabContent": "pf-v5-c-tab-content",
@@ -3,7 +3,7 @@ exports.__esModule = true;
3
3
  require('./tab-content.css');
4
4
  exports.default = {
5
5
  "modifiers": {
6
- "light_300": "pf-m-light-300",
6
+ "secondary": "pf-m-secondary",
7
7
  "padding": "pf-m-padding"
8
8
  },
9
9
  "tabContent": "pf-v5-c-tab-content",
@@ -1,7 +1,7 @@
1
1
  import './tab-content.css';
2
2
  export default {
3
3
  "modifiers": {
4
- "light_300": "pf-m-light-300",
4
+ "secondary": "pf-m-secondary",
5
5
  "padding": "pf-m-padding"
6
6
  },
7
7
  "tabContent": "pf-v5-c-tab-content",
@@ -2,3 +2,7 @@
2
2
  margin-inline-end: 6px;
3
3
  margin-block-end: 6px;
4
4
  }
5
+
6
+ #ws-core-c-button-plain-with-no-padding .pf-v5-c-button {
7
+ margin: 0;
8
+ }
@@ -3,11 +3,13 @@
3
3
  align-items: center;
4
4
  }
5
5
 
6
+ [id*="divider-vertical"],
6
7
  [id*="ws-core-c-divider-vertical"],
7
8
  #ws-core-c-divider-horizontal-on-lg {
8
- height: 4rem;
9
+ height: 6rem;
9
10
  }
10
11
 
11
12
  [id*="ws-core-c-divider"] .ws-preview-html {
12
13
  height: 100%;
13
14
  }
15
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-styles",
3
- "version": "6.0.0-alpha.4",
3
+ "version": "6.0.0-alpha.6",
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.38",
22
+ "@patternfly/patternfly": "6.0.0-alpha.49",
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": "0213323de9e62364f8cd3f401bec86f1f34ee4fe"
32
+ "gitHead": "5aae45c06fbd78c00fc09de587cb833b9a7d077d"
33
33
  }