@patternfly/react-core 4.192.17 → 4.192.21

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 (52) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/esm/components/DescriptionList/DescriptionListTerm.d.ts +2 -0
  3. package/dist/esm/components/DescriptionList/DescriptionListTerm.d.ts.map +1 -1
  4. package/dist/esm/components/DescriptionList/DescriptionListTerm.js +2 -1
  5. package/dist/esm/components/DescriptionList/DescriptionListTerm.js.map +1 -1
  6. package/dist/esm/components/Progress/Progress.js +1 -1
  7. package/dist/esm/components/Progress/Progress.js.map +1 -1
  8. package/dist/esm/components/Select/Select.d.ts +1 -1
  9. package/dist/esm/components/Select/Select.d.ts.map +1 -1
  10. package/dist/esm/components/Select/Select.js +1 -2
  11. package/dist/esm/components/Select/Select.js.map +1 -1
  12. package/dist/esm/components/TimePicker/TimePicker.d.ts.map +1 -1
  13. package/dist/esm/components/TimePicker/TimePicker.js +4 -4
  14. package/dist/esm/components/TimePicker/TimePicker.js.map +1 -1
  15. package/dist/esm/components/TimePicker/TimePickerUtils.d.ts +1 -1
  16. package/dist/esm/components/TimePicker/TimePickerUtils.d.ts.map +1 -1
  17. package/dist/esm/components/TimePicker/TimePickerUtils.js +2 -2
  18. package/dist/esm/components/TimePicker/TimePickerUtils.js.map +1 -1
  19. package/dist/js/components/DescriptionList/DescriptionListTerm.d.ts +2 -0
  20. package/dist/js/components/DescriptionList/DescriptionListTerm.d.ts.map +1 -1
  21. package/dist/js/components/DescriptionList/DescriptionListTerm.js +2 -1
  22. package/dist/js/components/DescriptionList/DescriptionListTerm.js.map +1 -1
  23. package/dist/js/components/Progress/Progress.js +1 -1
  24. package/dist/js/components/Progress/Progress.js.map +1 -1
  25. package/dist/js/components/Select/Select.d.ts +1 -1
  26. package/dist/js/components/Select/Select.d.ts.map +1 -1
  27. package/dist/js/components/Select/Select.js +6 -7
  28. package/dist/js/components/Select/Select.js.map +1 -1
  29. package/dist/js/components/TimePicker/TimePicker.d.ts.map +1 -1
  30. package/dist/js/components/TimePicker/TimePicker.js +4 -4
  31. package/dist/js/components/TimePicker/TimePicker.js.map +1 -1
  32. package/dist/js/components/TimePicker/TimePickerUtils.d.ts +1 -1
  33. package/dist/js/components/TimePicker/TimePickerUtils.d.ts.map +1 -1
  34. package/dist/js/components/TimePicker/TimePickerUtils.js +2 -2
  35. package/dist/js/components/TimePicker/TimePickerUtils.js.map +1 -1
  36. package/dist/umd/react-core.css +68 -8
  37. package/dist/umd/react-core.js +11 -9
  38. package/dist/umd/react-core.min.css +80 -20
  39. package/dist/umd/react-core.min.js +2 -2
  40. package/package.json +6 -6
  41. package/src/components/DescriptionList/DescriptionListTerm.tsx +4 -0
  42. package/src/components/DescriptionList/examples/DescriptionList.md +55 -0
  43. package/src/components/Menu/examples/Menu.md +11 -204
  44. package/src/components/Menu/examples/MenuDrilldown.tsx +179 -0
  45. package/src/components/Menu/examples/MenuDrilldownInitialState.tsx +179 -0
  46. package/src/components/Progress/Progress.tsx +1 -1
  47. package/src/components/Select/Select.tsx +2 -3
  48. package/src/components/TimePicker/TimePicker.tsx +4 -4
  49. package/src/components/TimePicker/TimePickerUtils.tsx +3 -2
  50. package/src/components/TimePicker/__tests__/TimePicker.test.tsx +9 -1
  51. package/src/components/TimePicker/examples/TimePicker.md +3 -3
  52. package/src/demos/PrimaryDetail.md +4 -4
@@ -4422,6 +4422,7 @@
4422
4422
 
4423
4423
  var _default$1d = {
4424
4424
  "alertGroup": "pf-c-alert-group",
4425
+ "alertGroupOverflowButton": "pf-c-alert-group__overflow-button",
4425
4426
  "modifiers": {
4426
4427
  "toast": "pf-m-toast"
4427
4428
  }
@@ -7593,7 +7594,7 @@
7593
7594
  inlineFilterPlaceholderText: null,
7594
7595
  customBadgeText: null,
7595
7596
  inputIdPrefix: '',
7596
- inputAutoComplete: navigator.userAgent.match('Chrome') ? getUniqueId('pf-no-autocomplete') : 'off',
7597
+ inputAutoComplete: 'off',
7597
7598
  menuAppendTo: 'inline',
7598
7599
  favorites: [],
7599
7600
  favoritesLabel: 'Favorites',
@@ -9627,8 +9628,9 @@
9627
9628
  DescriptionListGroup.displayName = 'DescriptionListGroup';
9628
9629
 
9629
9630
  const DescriptionListTerm = (_a) => {
9630
- var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
9631
+ var { children, className, icon } = _a, props = __rest$1(_a, ["children", "className", "icon"]);
9631
9632
  return (React__namespace.createElement("dt", Object.assign({ className: css(_default$P.descriptionListTerm, className) }, props),
9633
+ icon ? React__namespace.createElement("span", { className: css(_default$P.descriptionListTermIcon) }, icon) : null,
9632
9634
  React__namespace.createElement("span", { className: css(_default$P.descriptionListText) }, children)));
9633
9635
  };
9634
9636
  DescriptionListTerm.displayName = 'DescriptionListTerm';
@@ -16752,7 +16754,7 @@
16752
16754
  /* eslint-disable no-console */
16753
16755
  console.warn('One of aria-label or aria-labelledby properties should be passed when using the progress component without a title.');
16754
16756
  }
16755
- const scaledValue = Math.min(100, Math.max(0, Math.floor(((value - min) / (max - min)) * 100)));
16757
+ const scaledValue = Math.min(100, Math.max(0, Math.floor(((value - min) / (max - min)) * 100))) || 0;
16756
16758
  return (React__namespace.createElement("div", Object.assign({}, props, { className: css(_default$q.progress, _default$q.modifiers[variant], ['inside', 'outside'].includes(measureLocation) && _default$q.modifiers[measureLocation], measureLocation === 'inside' ? _default$q.modifiers[exports.ProgressSize.lg] : _default$q.modifiers[size], !title && _default$q.modifiers.singleline, className), id: this.id }),
16757
16759
  React__namespace.createElement(ProgressContainer, { parentId: this.id, value: scaledValue, title: title, label: label, variant: variant, measureLocation: measureLocation, progressBarAriaProps: progressBarAriaProps, isTitleTruncated: isTitleTruncated, tooltipPosition: tooltipPosition })));
16758
16760
  }
@@ -18045,7 +18047,7 @@
18045
18047
 
18046
18048
  const amSuffix = ' AM';
18047
18049
  const pmSuffix = ' PM';
18048
- const makeTimeOptions = (stepMinutes, hour12, delimiter, minTime, maxTime) => {
18050
+ const makeTimeOptions = (stepMinutes, hour12, delimiter, minTime, maxTime, includeSeconds) => {
18049
18051
  const res = [];
18050
18052
  const iter = new Date(new Date().setHours(0, 0, 0, 0));
18051
18053
  const iterDay = iter.getDay();
@@ -18070,7 +18072,7 @@
18070
18072
  .padStart(2, '0');
18071
18073
  const timeOption = `${hour}${delimiter}${minutes}${hour12 ? suffix : ''}`;
18072
18074
  // time option is valid if within min/max constraints
18073
- if (isWithinMinMax(minTime, maxTime, timeOption, delimiter)) {
18075
+ if (isWithinMinMax(minTime, maxTime, timeOption, delimiter, includeSeconds)) {
18074
18076
  res.push(timeOption);
18075
18077
  }
18076
18078
  iter.setMinutes(iter.getMinutes() + stepMinutes);
@@ -18387,7 +18389,8 @@
18387
18389
  }
18388
18390
  this.inputRef.current.focus();
18389
18391
  this.setState({
18390
- isOpen: false
18392
+ isOpen: false,
18393
+ isInvalid: false
18391
18394
  });
18392
18395
  };
18393
18396
  this.onInputFocus = (e) => {
@@ -18404,8 +18407,7 @@
18404
18407
  }
18405
18408
  this.scrollToSelection(newTime);
18406
18409
  this.setState({
18407
- timeState: newTime,
18408
- isInvalid: !this.isValid(newTime)
18410
+ timeState: newTime
18409
18411
  });
18410
18412
  };
18411
18413
  this.onBlur = (event) => {
@@ -18473,7 +18475,7 @@
18473
18475
  props = __rest$1(_a, ['aria-label', "isDisabled", "className", "placeholder", "id", "menuAppendTo", "is24Hour", "invalidFormatErrorMessage", "invalidMinMaxErrorMessage", "stepMinutes", "width", "delimiter", "inputProps", "onChange", "time", "validateTime", "minTime", "maxTime", "includeSeconds"]);
18474
18476
  const { timeState, isOpen, isInvalid, minTimeState, maxTimeState } = this.state;
18475
18477
  const style = { '--pf-c-date-picker__input--c-form-control--Width': width };
18476
- const options = makeTimeOptions(stepMinutes, !is24Hour, delimiter, minTimeState, maxTimeState);
18478
+ const options = makeTimeOptions(stepMinutes, !is24Hour, delimiter, minTimeState, maxTimeState, includeSeconds);
18477
18479
  const isValidFormat = this.isValidFormat(timeState);
18478
18480
  const randomId = id || getUniqueId('time-picker');
18479
18481
  const menuContainer = (React__namespace.createElement(Menu, { ref: this.menuRef, isScrollable: true },
@@ -14493,6 +14493,15 @@ ul.pf-c-list {
14493
14493
  flex: 1 0 auto;
14494
14494
  }
14495
14495
 
14496
+ .pf-c-pagination__nav-page-select .pf-c-form-control {
14497
+ appearance: textfield;
14498
+ }
14499
+
14500
+ .pf-c-pagination__nav-page-select .pf-c-form-control::-webkit-inner-spin-button, .pf-c-pagination__nav-page-select .pf-c-form-control::-webkit-outer-spin-button {
14501
+ appearance: none;
14502
+ margin: 0;
14503
+ }
14504
+
14496
14505
  .pf-c-pagination {
14497
14506
  --pf-c-pagination--child--MarginRight: var(--pf-global--spacer--lg);
14498
14507
  --pf-c-pagination--m-bottom--child--MarginRight: 0;
@@ -14521,7 +14530,7 @@ ul.pf-c-list {
14521
14530
  --pf-c-pagination__nav-page-select--PaddingLeft: var(--pf-global--spacer--md);
14522
14531
  --pf-c-pagination__nav-page-select--PaddingRight: var(--pf-global--spacer--md);
14523
14532
  --pf-c-pagination__nav-page-select--child--MarginRight: var(--pf-global--spacer--xs);
14524
- --pf-c-pagination__nav-page-select--c-form-control--width-base: 3.5ch;
14533
+ --pf-c-pagination__nav-page-select--c-form-control--width-base: calc(var(--pf-global--spacer--sm) * 2 + var(--pf-global--BorderWidth--sm) * 2);
14525
14534
  --pf-c-pagination__nav-page-select--c-form-control--width-chars: 2;
14526
14535
  --pf-c-pagination__nav-page-select--c-form-control--Width: calc(var(--pf-c-pagination__nav-page-select--c-form-control--width-base) + (var(--pf-c-pagination__nav-page-select--c-form-control--width-chars) * 1ch));
14527
14536
  --pf-c-pagination__total-items--Display: block;
@@ -15402,6 +15411,10 @@ ul.pf-c-list {
15402
15411
  --pf-c-progress-stepper__step-icon--Color: var(--pf-global--info-color--100);
15403
15412
  }
15404
15413
 
15414
+ .pf-c-progress-stepper__step:last-child {
15415
+ --pf-c-progress-stepper__step-main--MarginBottom: 0;
15416
+ }
15417
+
15405
15418
  .pf-c-progress-stepper__step-connector {
15406
15419
  position: relative;
15407
15420
  display: flex;
@@ -20200,10 +20213,19 @@ svg.pf-c-spinner.pf-m-xl {
20200
20213
  background-color: var(--pf-c-tooltip__content--BackgroundColor);
20201
20214
  }
20202
20215
 
20216
+ .pf-c-number-input .pf-c-form-control {
20217
+ appearance: textfield;
20218
+ }
20219
+
20220
+ .pf-c-number-input .pf-c-form-control::-webkit-inner-spin-button, .pf-c-number-input .pf-c-form-control::-webkit-outer-spin-button {
20221
+ appearance: none;
20222
+ margin: 0;
20223
+ }
20224
+
20203
20225
  .pf-c-number-input {
20204
20226
  --pf-c-number-input__unit--c-input-group--MarginLeft: var(--pf-global--spacer--sm);
20205
20227
  --pf-c-number-input__icon--FontSize: var(--pf-global--FontSize--xs);
20206
- --pf-c-number-input--c-form-control--width-base: calc(var(--pf-global--spacer--sm) * 2);
20228
+ --pf-c-number-input--c-form-control--width-base: calc(var(--pf-global--spacer--sm) * 2 + var(--pf-global--BorderWidth--sm) * 2);
20207
20229
  --pf-c-number-input--c-form-control--width-chars: 4;
20208
20230
  --pf-c-number-input--c-form-control--Width: calc(var(--pf-c-number-input--c-form-control--width-base) + var(--pf-c-number-input--c-form-control--width-chars) * 1ch);
20209
20231
  display: inline-flex;
@@ -20214,12 +20236,6 @@ svg.pf-c-spinner.pf-m-xl {
20214
20236
  display: inline-flex;
20215
20237
  width: var(--pf-c-number-input--c-form-control--Width);
20216
20238
  text-align: right;
20217
- -moz-appearance: textfield;
20218
- }
20219
-
20220
- .pf-c-number-input .pf-c-form-control::-webkit-outer-spin-button, .pf-c-number-input .pf-c-form-control::-webkit-inner-spin-button {
20221
- -webkit-appearance: none;
20222
- margin: 0;
20223
20239
  }
20224
20240
 
20225
20241
  .pf-c-input-group + .pf-c-number-input__unit,
@@ -21322,6 +21338,7 @@ svg.pf-c-spinner.pf-m-xl {
21322
21338
  --pf-c-text-input-group__text-input--PaddingLeft: var(--pf-global--spacer--sm);
21323
21339
  --pf-c-text-input-group__text-input--MinWidth: 12ch;
21324
21340
  --pf-c-text-input-group__text-input--m-hint--Color: var(--pf-global--Color--dark-200);
21341
+ --pf-c-text-input-group--placeholder--Color: var(--pf-global--Color--dark-200);
21325
21342
  --pf-c-text-input-group__icon--Left: var(--pf-global--spacer--sm);
21326
21343
  --pf-c-text-input-group__icon--Color: var(--pf-global--Color--200);
21327
21344
  --pf-c-text-input-group__text--hover__icon--Color: var(--pf-global--Color--100);
@@ -21443,6 +21460,10 @@ svg.pf-c-spinner.pf-m-xl {
21443
21460
  color: var(--pf-c-text-input-group__text-input--m-hint--Color);
21444
21461
  }
21445
21462
 
21463
+ .pf-c-text-input-group__text-input::placeholder {
21464
+ color: var(--pf-c-text-input-group--placeholder--Color);
21465
+ }
21466
+
21446
21467
  .pf-c-text-input-group__utilities {
21447
21468
  display: flex;
21448
21469
  align-items: center;
@@ -24935,6 +24956,18 @@ svg.pf-c-spinner.pf-m-xl {
24935
24956
  grid-gap: var(--pf-l-grid--m-gutter--GridGap);
24936
24957
  }
24937
24958
 
24959
+ .pf-l-level {
24960
+ --pf-l-level--m-gutter--MarginRight: var(--pf-global--gutter);
24961
+ display: flex;
24962
+ flex-wrap: wrap;
24963
+ align-items: center;
24964
+ justify-content: space-between;
24965
+ }
24966
+
24967
+ .pf-l-level.pf-m-gutter > *:not(:last-child) {
24968
+ margin-right: var(--pf-l-level--m-gutter--MarginRight);
24969
+ }
24970
+
24938
24971
  .pf-l-split {
24939
24972
  --pf-l-split--m-gutter--MarginRight: var(--pf-global--gutter);
24940
24973
  display: flex;
@@ -24954,18 +24987,6 @@ svg.pf-c-spinner.pf-m-xl {
24954
24987
  margin-right: var(--pf-l-split--m-gutter--MarginRight);
24955
24988
  }
24956
24989
 
24957
- .pf-l-level {
24958
- --pf-l-level--m-gutter--MarginRight: var(--pf-global--gutter);
24959
- display: flex;
24960
- flex-wrap: wrap;
24961
- align-items: center;
24962
- justify-content: space-between;
24963
- }
24964
-
24965
- .pf-l-level.pf-m-gutter > *:not(:last-child) {
24966
- margin-right: var(--pf-l-level--m-gutter--MarginRight);
24967
- }
24968
-
24969
24990
  .pf-l-stack {
24970
24991
  --pf-l-stack--m-gutter--MarginBottom: var(--pf-global--gutter);
24971
24992
  display: flex;
@@ -24987,6 +25008,20 @@ svg.pf-c-spinner.pf-m-xl {
24987
25008
  --pf-c-alert-group--m-toast--Right: var(--pf-global--spacer--xl);
24988
25009
  --pf-c-alert-group--m-toast--MaxWidth: 37.5rem;
24989
25010
  --pf-c-alert-group--m-toast--ZIndex: var(--pf-global--ZIndex--2xl);
25011
+ --pf-c-alert-group__overflow-button--BorderWidth: 0;
25012
+ --pf-c-alert-group__overflow-button--PaddingTop: var(--pf-global--spacer--lg);
25013
+ --pf-c-alert-group__overflow-button--PaddingRight: var(--pf-global--spacer--md);
25014
+ --pf-c-alert-group__overflow-button--PaddingBottom: var(--pf-global--spacer--lg);
25015
+ --pf-c-alert-group__overflow-button--PaddingLeft: var(--pf-global--spacer--md);
25016
+ --pf-c-alert-group__overflow-button--Color: var(--pf-global--link--Color);
25017
+ --pf-c-alert-group__overflow-button--BoxShadow: var(--pf-global--BoxShadow--lg);
25018
+ --pf-c-alert-group__overflow-button--BackgroundColor: var(--pf-global--BackgroundColor--100);
25019
+ --pf-c-alert-group__overflow-button--hover--Color: var(--pf-global--link--Color--hover);
25020
+ --pf-c-alert-group__overflow-button--hover--BoxShadow: var(--pf-global--BoxShadow--lg), var(--pf-global--BoxShadow--lg-bottom);
25021
+ --pf-c-alert-group__overflow-button--focus--Color: var(--pf-global--link--Color--hover);
25022
+ --pf-c-alert-group__overflow-button--focus--BoxShadow: var(--pf-global--BoxShadow--lg), var(--pf-global--BoxShadow--lg-bottom);
25023
+ --pf-c-alert-group__overflow-button--active--Color: var(--pf-global--link--Color--hover);
25024
+ --pf-c-alert-group__overflow-button--active--BoxShadow: var(--pf-global--BoxShadow--lg), var(--pf-global--BoxShadow--lg-bottom);
24990
25025
  }
24991
25026
 
24992
25027
  .pf-c-alert-group > * + * {
@@ -25002,6 +25037,31 @@ svg.pf-c-spinner.pf-m-xl {
25002
25037
  max-width: var(--pf-c-alert-group--m-toast--MaxWidth);
25003
25038
  }
25004
25039
 
25040
+ .pf-c-alert-group__overflow-button {
25041
+ position: relative;
25042
+ width: 100%;
25043
+ padding: var(--pf-c-alert-group__overflow-button--PaddingTop) var(--pf-c-alert-group__overflow-button--PaddingRight) var(--pf-c-alert-group__overflow-button--PaddingBottom) var(--pf-c-alert-group__overflow-button--PaddingLeft);
25044
+ color: var(--pf-c-alert-group__overflow-button--Color);
25045
+ background-color: var(--pf-c-alert-group__overflow-button--BackgroundColor);
25046
+ border-width: var(--pf-c-alert-group__overflow-button--BorderWidth);
25047
+ box-shadow: var(--pf-c-alert-group__overflow-button--BoxShadow);
25048
+ }
25049
+
25050
+ .pf-c-alert-group__overflow-button:hover {
25051
+ --pf-c-alert-group__overflow-button--Color: var(--pf-c-alert-group__overflow-button--hover--Color);
25052
+ --pf-c-alert-group__overflow-button--BoxShadow: var(--pf-c-alert-group__overflow-button--hover--BoxShadow);
25053
+ }
25054
+
25055
+ .pf-c-alert-group__overflow-button:focus {
25056
+ --pf-c-alert-group__overflow-button--Color: var(--pf-c-alert-group__overflow-button--focus--Color);
25057
+ --pf-c-alert-group__overflow-button--BoxShadow: var(--pf-c-alert-group__overflow-button--focus--BoxShadow);
25058
+ }
25059
+
25060
+ .pf-c-alert-group__overflow-button:active {
25061
+ --pf-c-alert-group__overflow-button--Color: var(--pf-c-alert-group__overflow-button--active--Color);
25062
+ --pf-c-alert-group__overflow-button--BoxShadow: var(--pf-c-alert-group__overflow-button--active--BoxShadow);
25063
+ }
25064
+
25005
25065
  .pf-c-about-modal-box {
25006
25066
  --pf-global--Color--100: var(--pf-global--Color--light-100);
25007
25067
  --pf-global--Color--200: var(--pf-global--Color--light-200);