@patternfly/patternfly 5.0.0-alpha.49 → 5.0.0-alpha.50

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 (72) hide show
  1. package/base/patternfly-variables.css +1 -1
  2. package/components/Breadcrumb/breadcrumb.css +1 -5
  3. package/components/Breadcrumb/breadcrumb.scss +1 -8
  4. package/components/Divider/divider.css +12 -12
  5. package/components/List/list.css +1 -1
  6. package/components/List/list.scss +1 -1
  7. package/components/LogViewer/log-viewer.css +0 -3
  8. package/components/LogViewer/log-viewer.scss +0 -4
  9. package/components/Masthead/masthead.css +12 -12
  10. package/components/MultipleFileUpload/multiple-file-upload.css +3 -3
  11. package/components/MultipleFileUpload/multiple-file-upload.scss +3 -3
  12. package/components/Pagination/pagination.css +12 -12
  13. package/components/Tabs/tabs.css +24 -24
  14. package/components/TextInputGroup/text-input-group.css +1 -5
  15. package/components/TextInputGroup/text-input-group.scss +1 -7
  16. package/components/Toolbar/toolbar.css +54 -54
  17. package/components/_all.scss +1 -2
  18. package/docs/components/AppLauncher/examples/application-launcher.md +8 -7
  19. package/docs/components/Chip/examples/Chip.md +713 -4
  20. package/docs/components/ContextSelector/examples/context-selector.md +12 -12
  21. package/docs/components/DualListSelector/examples/DualListSelector.md +32 -32
  22. package/docs/components/LogViewer/examples/LogViewer.md +40 -40
  23. package/docs/components/Menu/examples/Menu.md +20 -18
  24. package/docs/components/Select/examples/Select.md +16 -14
  25. package/docs/components/TextInputGroup/examples/TextInputGroup.css +0 -13
  26. package/docs/components/TextInputGroup/examples/TextInputGroup.md +21 -21
  27. package/docs/components/Toolbar/examples/Toolbar.md +10 -10
  28. package/docs/components/TreeView/examples/TreeView.md +8 -7
  29. package/docs/demos/AboutModal/examples/AboutModal.md +21 -21
  30. package/docs/demos/Alert/examples/Alert.md +63 -63
  31. package/docs/demos/BackToTop/examples/BackToTop.md +21 -21
  32. package/docs/demos/Banner/examples/Banner.md +42 -42
  33. package/docs/demos/CardView/examples/CardView.md +21 -21
  34. package/docs/demos/ContextSelector/examples/ContextSelector.md +95 -91
  35. package/docs/demos/Dashboard/examples/Dashboard.md +21 -21
  36. package/docs/demos/DataList/examples/DataList.md +104 -105
  37. package/docs/demos/DescriptionList/examples/DescriptionList.md +63 -63
  38. package/docs/demos/Drawer/examples/Drawer.md +105 -105
  39. package/docs/demos/JumpLinks/examples/JumpLinks.md +126 -126
  40. package/docs/demos/Masthead/examples/Masthead.md +56 -55
  41. package/docs/demos/Modal/examples/Modal.md +126 -126
  42. package/docs/demos/Nav/examples/Nav.md +168 -168
  43. package/docs/demos/NotificationDrawer/examples/NotificationDrawer.md +105 -105
  44. package/docs/demos/Page/examples/Page.md +189 -189
  45. package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +153 -153
  46. package/docs/demos/Skeleton/examples/Skeleton.md +21 -21
  47. package/docs/demos/Table/examples/Table.md +339 -339
  48. package/docs/demos/Tabs/examples/Tabs.md +126 -126
  49. package/docs/demos/Toolbar/examples/Toolbar.md +50 -50
  50. package/docs/demos/Wizard/examples/Wizard.md +189 -189
  51. package/docs/layouts/Flex/examples/Flex.md +319 -215
  52. package/layouts/Flex/flex.css +738 -31
  53. package/layouts/Flex/flex.scss +101 -17
  54. package/package.json +1 -1
  55. package/patternfly-base-no-globals.css +1 -1
  56. package/patternfly-base.css +1 -1
  57. package/patternfly-no-globals.css +859 -389
  58. package/patternfly.css +859 -389
  59. package/patternfly.min.css +1 -1
  60. package/patternfly.min.css.map +1 -1
  61. package/sass-utilities/component-namespaces.scss +0 -3
  62. package/sass-utilities/functions.scss +9 -5
  63. package/sass-utilities/themes/dark/scss-variables.scss +1 -4
  64. package/components/Breadcrumb/themes/dark/breadcrumb.scss +0 -7
  65. package/components/SearchInput/search-input.css +0 -199
  66. package/components/SearchInput/search-input.scss +0 -231
  67. package/components/SearchInput/themes/dark/search-input.scss +0 -16
  68. package/docs/components/ChipGroup/examples/ChipGroup.md +0 -716
  69. package/docs/components/SearchInput/examples/SearchInput.css +0 -12
  70. package/docs/components/SearchInput/examples/SearchInput.md +0 -681
  71. /package/components/{ChipGroup → Chip}/chip-group.css +0 -0
  72. /package/components/{ChipGroup → Chip}/chip-group.scss +0 -0
@@ -1,6 +1,7 @@
1
1
  // Always keep list of spacers and breakpoints up-to-date
2
2
  $pf-v5-l-flex--breakpoint-map: build-breakpoint-map();
3
3
  $pf-v5-l-flex--spacer-map: build-spacer-map();
4
+ $pf-v5-l-flex--gap-map: build-spacer-map($base: true);
4
5
  $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $pf-v5-l-flex--spacer-map);
5
6
 
6
7
  .#{$flex} {
@@ -10,33 +11,35 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
10
11
  --#{$flex}--m-row--AlignItems: baseline;
11
12
  --#{$flex}--m-row-reverse--AlignItems: baseline;
12
13
  --#{$flex}--item--Order: 0;
13
-
14
- // Default values: these get reset based on modifier usage
15
- --#{$flex}--spacer-base: var(--#{$pf-global}--spacer--md);
16
- --#{$flex}--spacer: var(--#{$flex}--spacer-base);
14
+ --#{$flex}--spacer--column--base: var(--#{$pf-global}--spacer--lg); // default spacer/gap for columns
15
+ --#{$flex}--spacer--row--base: var(--#{$pf-global}--spacer--sm); // default spacer/gap for rows
16
+ --#{$flex}--RowGap: var(--#{$flex}--spacer--row--base);
17
+ --#{$flex}--ColumnGap: 0;
18
+ --#{$flex}--m-gap--RowGap: var(--#{$flex}--spacer--row--base);
19
+ --#{$flex}--m-gap--ColumnGap: var(--#{$flex}--spacer--column--base);
20
+ --#{$flex}--m-row-gap--RowGap: var(--#{$flex}--spacer--row--base);
21
+ --#{$flex}--m-column-gap--ColumnGap: var(--#{$flex}--spacer--column--base);
17
22
 
18
23
  // Emit spacer css variables that map to requested spacer values
19
24
  @include pf-v5-emit-properties($pf-v5-l-flex--variable-map);
20
25
 
21
26
  display: var(--#{$flex}--Display);
22
27
  flex-wrap: var(--#{$flex}--FlexWrap);
28
+ gap: var(--#{$flex}--RowGap) var(--#{$flex}--ColumnGap);
23
29
  align-items: var(--#{$flex}--AlignItems);
24
-
25
- &:last-child {
26
- --#{$flex}--spacer: 0;
27
- }
28
30
  }
29
31
 
30
32
  // stylelint-disable no-duplicate-selectors, max-nesting-depth
31
33
 
32
34
  // Item
33
35
  .#{$flex} > * {
34
- // reset spacer
35
- --#{$flex}--spacer: var(--#{$flex}--spacer-base);
36
+ // set/reset layout spacers on children, since the parent flex layout can be a child of another flex layout and needs these values from its parent
37
+ --#{$flex}--spacer--column: var(--#{$flex}--spacer, var(--#{$flex}--spacer--column--base));
38
+ --#{$flex}--spacer--row: var(--#{$flex}--spacer, var(--#{$flex}--spacer--row--base));
36
39
 
37
40
  order: var(--#{$flex}--item--Order);
38
41
  max-width: 100%;
39
- margin-right: var(--#{$flex}--spacer);
42
+ margin-right: var(--#{$flex}--spacer--column);
40
43
 
41
44
  // don't set base value for --#{$flex}--item--Order as it defaults to 0
42
45
  @media screen and (min-width: $pf-v5-global--breakpoint--sm) {
@@ -81,11 +84,14 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
81
84
 
82
85
  // flex-direction
83
86
  &.pf-m-column#{$breakpoint-name} {
87
+ --#{$flex}--RowGap: 0;
88
+ --#{$flex}--ColumnGap: var(--#{$flex}--spacer--column--base);
89
+
84
90
  flex-direction: column;
85
91
  align-items: normal;
86
92
 
87
93
  > * {
88
- margin: 0 0 var(--#{$flex}--spacer) 0;
94
+ margin: 0 0 var(--#{$flex}--spacer--row) 0;
89
95
  }
90
96
  }
91
97
 
@@ -95,7 +101,7 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
95
101
  align-items: normal;
96
102
 
97
103
  > * {
98
- margin: var(--#{$flex}--spacer) 0 0 0;
104
+ margin: var(--#{$flex}--spacer--row) 0 0 0;
99
105
  }
100
106
  }
101
107
 
@@ -106,7 +112,7 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
106
112
 
107
113
  // unset styling set for .pf-m-column
108
114
  > * {
109
- margin: 0 var(--#{$flex}--spacer) 0 0;
115
+ margin: 0 var(--#{$flex}--spacer--column) 0 0;
110
116
  }
111
117
  }
112
118
 
@@ -117,7 +123,7 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
117
123
 
118
124
  // unset styling set for .pf-m-column
119
125
  > * {
120
- margin: 0 0 0 var(--#{$flex}--spacer);
126
+ margin: 0 0 0 var(--#{$flex}--spacer--column);
121
127
  }
122
128
  }
123
129
 
@@ -276,7 +282,7 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
276
282
  }
277
283
  }
278
284
 
279
- // .pf-m-space-items-{size}{-on-breakpoint}
285
+ // .pf-m-space-items-{size}{-on-[breakpoint]}
280
286
  @each $breakpoint, $breakpoint-value in $pf-v5-l-flex--breakpoint-map {
281
287
  $breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
282
288
 
@@ -295,7 +301,7 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
295
301
  }
296
302
  }
297
303
 
298
- // .pf-m-spacer-{size}{-on-breakpoint}
304
+ // .pf-m-spacer-{size}{-on-[breakpoint]}
299
305
  @each $breakpoint, $breakpoint-value in $pf-v5-l-flex--breakpoint-map {
300
306
  $breakpoint-name: if($breakpoint != "base", -on-#{$breakpoint}, "");
301
307
 
@@ -311,5 +317,83 @@ $pf-v5-l-flex--variable-map: build-variable-map("#{$pf-prefix}l-flex--spacer", $
311
317
  }
312
318
  }
313
319
  }
320
+
321
+ // .pf-m-gap{-[size]}{-on-[breakpoint]}
322
+ @each $breakpoint, $breakpoint-value in $pf-v5-l-flex--breakpoint-map {
323
+ $pf-v5-l-flex--gap--selectors: ();
324
+
325
+ @include pf-v5-apply-breakpoint($breakpoint) {
326
+ @each $spacer, $value in $pf-v5-l-flex--gap-map {
327
+ $breakpoint-name: if($breakpoint == "base", "", -on-#{$breakpoint});
328
+ $spacer-name: if($spacer == "base", "", -#{$spacer});
329
+ $spacer-row: if($spacer == "base", var(--#{$flex}--m-gap--RowGap), $value);
330
+ $spacer-column: if($spacer == "base", var(--#{$flex}--m-gap--ColumnGap), $value);
331
+ $selector: ".pf-m-gap#{$spacer-name}#{$breakpoint-name}";
332
+ $pf-v5-l-flex--gap--selectors: append($pf-v5-l-flex--gap--selectors, $selector, $separator: comma);
333
+
334
+ &#{$selector} {
335
+ --#{$flex}--RowGap: #{$spacer-row};
336
+ --#{$flex}--ColumnGap: #{$spacer-column};
337
+ }
338
+ }
339
+
340
+ &:is(#{$pf-v5-l-flex--gap--selectors}) {
341
+ > * {
342
+ --#{$flex}--spacer--row: 0;
343
+ --#{$flex}--spacer--column: 0;
344
+ }
345
+ }
346
+ }
347
+ }
348
+
349
+ // .pf-m-row-gap{-[size]}{-on-[breakpoint]}
350
+ @each $breakpoint, $breakpoint-value in $pf-v5-l-flex--breakpoint-map {
351
+ @include pf-v5-apply-breakpoint($breakpoint) {
352
+ $pf-v5-l-flex--row-gap--selectors: ();
353
+
354
+ @each $spacer, $value in $pf-v5-l-flex--gap-map {
355
+ $breakpoint-name: if($breakpoint == "base", "", -on-#{$breakpoint});
356
+ $spacer-name: if($spacer == "base", "", -#{$spacer});
357
+ $spacer-value: if($spacer == "base", var(--#{$flex}--m-row-gap--RowGap), $value);
358
+ $selector: ".pf-m-row-gap#{$spacer-name}#{$breakpoint-name}";
359
+ $pf-v5-l-flex--row-gap--selectors: append($pf-v5-l-flex--row-gap--selectors, $selector, $separator: comma);
360
+
361
+ &#{$selector} {
362
+ --#{$flex}--RowGap: #{$spacer-value};
363
+ }
364
+ }
365
+
366
+ &:is(#{$pf-v5-l-flex--row-gap--selectors}) {
367
+ > * {
368
+ --#{$flex}--spacer--row: 0;
369
+ }
370
+ }
371
+ }
372
+ }
373
+
374
+ // .pf-m-column-gap{-[size]}{-on-[breakpoint]}
375
+ @each $breakpoint, $breakpoint-value in $pf-v5-l-flex--breakpoint-map {
376
+ $pf-v5-l-flex--column-gap--selectors: ();
377
+
378
+ @include pf-v5-apply-breakpoint($breakpoint) {
379
+ @each $spacer, $value in $pf-v5-l-flex--gap-map {
380
+ $breakpoint-name: if($breakpoint == "base", "", -on-#{$breakpoint});
381
+ $spacer-name: if($spacer == "base", "", -#{$spacer});
382
+ $spacer-value: if($spacer == "base", var(--#{$flex}--m-column-gap--ColumnGap), $value);
383
+ $selector: ".pf-m-column-gap#{$spacer-name}#{$breakpoint-name}";
384
+ $pf-v5-l-flex--column-gap--selectors: append($pf-v5-l-flex--column-gap--selectors, $selector, $separator: comma);
385
+
386
+ &#{$selector} {
387
+ --#{$flex}--ColumnGap: #{$spacer-value};
388
+ }
389
+ }
390
+
391
+ &:is(#{$pf-v5-l-flex--column-gap--selectors}) {
392
+ > * {
393
+ --#{$flex}--spacer--column: 0;
394
+ }
395
+ }
396
+ }
397
+ }
314
398
  }
315
399
  // stylelint-enable
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly/patternfly",
3
3
  "description": "Assets, source, tooling, and content for PatternFly 4",
4
- "version": "5.0.0-alpha.49",
4
+ "version": "5.0.0-alpha.50",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -309,7 +309,7 @@
309
309
  --pf-v5-global--disabled-color--200: #444548;
310
310
  --pf-v5-global--disabled-color--300: #aaabac;
311
311
  --pf-v5-global--icon--Color--light: #aaabac;
312
- --pf-v5-global--icon--Color--dark: #aaabac;
312
+ --pf-v5-global--icon--Color--dark: #e0e0e0;
313
313
  --pf-v5-global--Color--dark-100: #e0e0e0;
314
314
  --pf-v5-global--Color--dark-200: #aaabac;
315
315
  --pf-v5-global--Color--light-100: #e0e0e0;
@@ -309,7 +309,7 @@
309
309
  --pf-v5-global--disabled-color--200: #444548;
310
310
  --pf-v5-global--disabled-color--300: #aaabac;
311
311
  --pf-v5-global--icon--Color--light: #aaabac;
312
- --pf-v5-global--icon--Color--dark: #aaabac;
312
+ --pf-v5-global--icon--Color--dark: #e0e0e0;
313
313
  --pf-v5-global--Color--dark-100: #e0e0e0;
314
314
  --pf-v5-global--Color--dark-200: #aaabac;
315
315
  --pf-v5-global--Color--light-100: #e0e0e0;