@patternfly/react-table 4.106.4 → 4.106.7

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.
@@ -1550,6 +1550,8 @@
1550
1550
  prefix: 'pf-random-id-'
1551
1551
  };
1552
1552
 
1553
+ const ASTERISK = '*';
1554
+
1553
1555
  let uid = 0;
1554
1556
  const ouiaPrefix = 'OUIA-Generated-';
1555
1557
  const ouiaIdByRoute = {};
@@ -7280,7 +7282,7 @@
7280
7282
  };
7281
7283
  }
7282
7284
  render() {
7283
- const _a = this.props, { 'aria-label': ariaLabel, className, onChange, isValid, isDisabled, isChecked, label, checked, defaultChecked, description, body, ouiaId, ouiaSafe, component: Component } = _a, props = __rest$1(_a, ['aria-label', "className", "onChange", "isValid", "isDisabled", "isChecked", "label", "checked", "defaultChecked", "description", "body", "ouiaId", "ouiaSafe", "component"]);
7285
+ const _a = this.props, { 'aria-label': ariaLabel, className, onChange, isValid, isDisabled, isRequired, isChecked, label, checked, defaultChecked, description, body, ouiaId, ouiaSafe, component: Component } = _a, props = __rest$1(_a, ['aria-label', "className", "onChange", "isValid", "isDisabled", "isRequired", "isChecked", "label", "checked", "defaultChecked", "description", "body", "ouiaId", "ouiaSafe", "component"]);
7284
7286
  if (!props.id) {
7285
7287
  // eslint-disable-next-line no-console
7286
7288
  console.error('Checkbox:', 'id is required to make input accessible');
@@ -7297,8 +7299,10 @@
7297
7299
  }
7298
7300
  checkedProps.checked = checkedProps.checked === null ? false : checkedProps.checked;
7299
7301
  return (React__namespace.createElement(Component, { className: css(checkStyles.check, !label && checkStyles.modifiers.standalone, className) },
7300
- React__namespace.createElement("input", Object.assign({}, props, { className: css(checkStyles.checkInput), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, ref: elem => elem && (elem.indeterminate = isChecked === null) }, checkedProps, getOUIAProps(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
7301
- label && (React__namespace.createElement("label", { className: css(checkStyles.checkLabel, isDisabled && checkStyles.modifiers.disabled), htmlFor: props.id }, label)),
7302
+ React__namespace.createElement("input", Object.assign({}, props, { className: css(checkStyles.checkInput), type: "checkbox", onChange: this.handleChange, "aria-invalid": !isValid, "aria-label": ariaLabel, disabled: isDisabled, required: isRequired, ref: elem => elem && (elem.indeterminate = isChecked === null) }, checkedProps, getOUIAProps(Checkbox.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe))),
7303
+ label && (React__namespace.createElement("label", { className: css(checkStyles.checkLabel, isDisabled && checkStyles.modifiers.disabled), htmlFor: props.id },
7304
+ label,
7305
+ isRequired && (React__namespace.createElement("span", { className: css(checkStyles.checkLabelRequired), "aria-hidden": "true" }, ASTERISK)))),
7302
7306
  description && React__namespace.createElement("span", { className: css(checkStyles.checkDescription) }, description),
7303
7307
  body && React__namespace.createElement("span", { className: css(checkStyles.checkBody) }, body)));
7304
7308
  }
@@ -7308,6 +7312,7 @@
7308
7312
  className: '',
7309
7313
  isValid: true,
7310
7314
  isDisabled: false,
7315
+ isRequired: false,
7311
7316
  isChecked: false,
7312
7317
  onChange: defaultOnChange,
7313
7318
  ouiaSafe: true,
@@ -21833,6 +21833,78 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
21833
21833
  --pf-c-progress--m-warning--m-inside__measure--Color: var(--pf-global--palette--black-900);
21834
21834
  }
21835
21835
 
21836
+ .pf-c-radio {
21837
+ --pf-c-radio--GridGap: var(--pf-global--spacer--xs) var(--pf-global--spacer--sm);
21838
+ --pf-c-radio__label--disabled--Color: var(--pf-global--disabled-color--100);
21839
+ --pf-c-radio__label--Color: var(--pf-global--Color--100);
21840
+ --pf-c-radio__label--FontWeight: var(--pf-global--FontWeight--normal);
21841
+ --pf-c-radio__label--FontSize: var(--pf-global--FontSize--md);
21842
+ --pf-c-radio__label--LineHeight: var(--pf-global--LineHeight--sm);
21843
+ --pf-c-radio__input--Height: var(--pf-c-radio__label--FontSize);
21844
+ --pf-c-radio__input--MarginTop: calc(((var(--pf-c-radio__label--FontSize) * var(--pf-c-radio__label--LineHeight)) - var(--pf-c-radio__input--Height)) / 2);
21845
+ --pf-c-radio__input--first-child--MarginLeft: 0.0625rem;
21846
+ --pf-c-radio__input--last-child--MarginRight: 0.0625rem;
21847
+ --pf-c-radio__description--FontSize: var(--pf-global--FontSize--sm);
21848
+ --pf-c-radio__description--Color: var(--pf-global--Color--200);
21849
+ --pf-c-radio__body--MarginTop: var(--pf-global--spacer--sm);
21850
+ display: grid;
21851
+ grid-template-columns: auto 1fr;
21852
+ grid-gap: var(--pf-c-radio--GridGap);
21853
+ align-items: start;
21854
+ justify-items: start;
21855
+ }
21856
+
21857
+ .pf-c-radio.pf-m-standalone {
21858
+ --pf-c-radio--GridGap: 0;
21859
+ --pf-c-radio__input--Height: auto;
21860
+ --pf-c-radio__input--MarginTop: 0;
21861
+ display: inline-grid;
21862
+ line-height: 1;
21863
+ }
21864
+
21865
+ .pf-c-radio__label {
21866
+ font-size: var(--pf-c-radio__label--FontSize);
21867
+ font-weight: var(--pf-c-radio__label--FontWeight);
21868
+ line-height: var(--pf-c-radio__label--LineHeight);
21869
+ color: var(--pf-c-radio__label--Color);
21870
+ }
21871
+
21872
+ .pf-c-radio__input {
21873
+ height: var(--pf-c-radio__input--Height);
21874
+ margin-top: var(--pf-c-radio__input--MarginTop);
21875
+ }
21876
+
21877
+ .pf-c-radio__input:first-child {
21878
+ margin-left: var(--pf-c-radio__input--first-child--MarginLeft);
21879
+ }
21880
+
21881
+ .pf-c-radio__input:last-child {
21882
+ margin-right: var(--pf-c-radio__input--last-child--MarginRight);
21883
+ }
21884
+
21885
+ .pf-c-radio__description {
21886
+ grid-column: 2;
21887
+ font-size: var(--pf-c-radio__description--FontSize);
21888
+ color: var(--pf-c-radio__description--Color);
21889
+ }
21890
+
21891
+ .pf-c-radio__body {
21892
+ grid-column: 2;
21893
+ margin-top: var(--pf-c-radio__body--MarginTop);
21894
+ }
21895
+
21896
+ label.pf-c-radio, .pf-c-radio__label,
21897
+ .pf-c-radio__input {
21898
+ cursor: pointer;
21899
+ }
21900
+
21901
+ .pf-c-radio__label:disabled, .pf-c-radio__label.pf-m-disabled,
21902
+ .pf-c-radio__input:disabled,
21903
+ .pf-c-radio__input.pf-m-disabled {
21904
+ --pf-c-radio__label--Color: var(--pf-c-radio__label--disabled--Color);
21905
+ cursor: not-allowed;
21906
+ }
21907
+
21836
21908
  .pf-c-progress-stepper {
21837
21909
  --pf-c-progress-stepper--m-vertical--GridAutoFlow: row;
21838
21910
  --pf-c-progress-stepper--m-vertical--GridTemplateColumns: auto 1fr;
@@ -22465,78 +22537,6 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
22465
22537
  --pf-c-progress-stepper--m-center__step-main--before--Content: "";
22466
22538
  }
22467
22539
  }
22468
- .pf-c-radio {
22469
- --pf-c-radio--GridGap: var(--pf-global--spacer--xs) var(--pf-global--spacer--sm);
22470
- --pf-c-radio__label--disabled--Color: var(--pf-global--disabled-color--100);
22471
- --pf-c-radio__label--Color: var(--pf-global--Color--100);
22472
- --pf-c-radio__label--FontWeight: var(--pf-global--FontWeight--normal);
22473
- --pf-c-radio__label--FontSize: var(--pf-global--FontSize--md);
22474
- --pf-c-radio__label--LineHeight: var(--pf-global--LineHeight--sm);
22475
- --pf-c-radio__input--Height: var(--pf-c-radio__label--FontSize);
22476
- --pf-c-radio__input--MarginTop: calc(((var(--pf-c-radio__label--FontSize) * var(--pf-c-radio__label--LineHeight)) - var(--pf-c-radio__input--Height)) / 2);
22477
- --pf-c-radio__input--first-child--MarginLeft: 0.0625rem;
22478
- --pf-c-radio__input--last-child--MarginRight: 0.0625rem;
22479
- --pf-c-radio__description--FontSize: var(--pf-global--FontSize--sm);
22480
- --pf-c-radio__description--Color: var(--pf-global--Color--200);
22481
- --pf-c-radio__body--MarginTop: var(--pf-global--spacer--sm);
22482
- display: grid;
22483
- grid-template-columns: auto 1fr;
22484
- grid-gap: var(--pf-c-radio--GridGap);
22485
- align-items: start;
22486
- justify-items: start;
22487
- }
22488
-
22489
- .pf-c-radio.pf-m-standalone {
22490
- --pf-c-radio--GridGap: 0;
22491
- --pf-c-radio__input--Height: auto;
22492
- --pf-c-radio__input--MarginTop: 0;
22493
- display: inline-grid;
22494
- line-height: 1;
22495
- }
22496
-
22497
- .pf-c-radio__label {
22498
- font-size: var(--pf-c-radio__label--FontSize);
22499
- font-weight: var(--pf-c-radio__label--FontWeight);
22500
- line-height: var(--pf-c-radio__label--LineHeight);
22501
- color: var(--pf-c-radio__label--Color);
22502
- }
22503
-
22504
- .pf-c-radio__input {
22505
- height: var(--pf-c-radio__input--Height);
22506
- margin-top: var(--pf-c-radio__input--MarginTop);
22507
- }
22508
-
22509
- .pf-c-radio__input:first-child {
22510
- margin-left: var(--pf-c-radio__input--first-child--MarginLeft);
22511
- }
22512
-
22513
- .pf-c-radio__input:last-child {
22514
- margin-right: var(--pf-c-radio__input--last-child--MarginRight);
22515
- }
22516
-
22517
- .pf-c-radio__description {
22518
- grid-column: 2;
22519
- font-size: var(--pf-c-radio__description--FontSize);
22520
- color: var(--pf-c-radio__description--Color);
22521
- }
22522
-
22523
- .pf-c-radio__body {
22524
- grid-column: 2;
22525
- margin-top: var(--pf-c-radio__body--MarginTop);
22526
- }
22527
-
22528
- label.pf-c-radio, .pf-c-radio__label,
22529
- .pf-c-radio__input {
22530
- cursor: pointer;
22531
- }
22532
-
22533
- .pf-c-radio__label:disabled, .pf-c-radio__label.pf-m-disabled,
22534
- .pf-c-radio__input:disabled,
22535
- .pf-c-radio__input.pf-m-disabled {
22536
- --pf-c-radio__label--Color: var(--pf-c-radio__label--disabled--Color);
22537
- cursor: not-allowed;
22538
- }
22539
-
22540
22540
  .pf-c-select {
22541
22541
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
22542
22542
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
@@ -25151,44 +25151,6 @@ label.pf-c-radio, .pf-c-radio__label,
25151
25151
  font-weight: var(--pf-global--FontWeight--light);
25152
25152
  }
25153
25153
 
25154
- .pf-c-timestamp {
25155
- --pf-c-timestamp--FontSize: var(--pf-global--FontSize--sm);
25156
- --pf-c-timestamp--Color: var(--pf-global--Color--200);
25157
- --pf-c-timestamp--OutlineOffset: 0.1875rem;
25158
- --pf-c-timestamp--m-help-text--TextDecorationLine: underline;
25159
- --pf-c-timestamp--m-help-text--TextDecorationStyle: dashed;
25160
- --pf-c-timestamp--m-help-text--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
25161
- --pf-c-timestamp--m-help-text--TextUnderlineOffset: 0.25rem;
25162
- --pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-global--BorderColor--200);
25163
- --pf-c-timestamp--m-help-text--hover--Color: var(--pf-global--Color--100);
25164
- --pf-c-timestamp--m-help-text--focus--Color: var(--pf-global--Color--100);
25165
- --pf-c-timestamp--m-help-text--hover--TextDecorationColor: var(--pf-global--Color--100);
25166
- --pf-c-timestamp--m-help-text--focus--TextDecorationColor: var(--pf-global--Color--100);
25167
- display: inline-block;
25168
- font-size: var(--pf-c-timestamp--FontSize);
25169
- color: var(--pf-c-timestamp--Color);
25170
- outline-offset: var(--pf-c-timestamp--OutlineOffset);
25171
- }
25172
-
25173
- .pf-c-timestamp.pf-m-help-text {
25174
- cursor: pointer;
25175
- text-decoration-line: var(--pf-c-timestamp--m-help-text--TextDecorationLine);
25176
- text-decoration-style: var(--pf-c-timestamp--m-help-text--TextDecorationStyle);
25177
- text-decoration-thickness: var(--pf-c-timestamp--m-help-text--TextDecorationThickness);
25178
- text-underline-offset: var(--pf-c-timestamp--m-help-text--TextUnderlineOffset);
25179
- text-decoration-color: var(--pf-c-timestamp--m-help-text--TextDecorationColor);
25180
- }
25181
-
25182
- .pf-c-timestamp.pf-m-help-text:hover {
25183
- --pf-c-timestamp--Color: var(--pf-c-timestamp--m-help-text--hover--Color);
25184
- --pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-c-timestamp--m-help-text--hover--TextDecorationColor);
25185
- }
25186
-
25187
- .pf-c-timestamp.pf-m-help-text:focus {
25188
- --pf-c-timestamp--Color: var(--pf-c-timestamp--m-help-text--focus--Color);
25189
- --pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-c-timestamp--m-help-text--focus--TextDecorationColor);
25190
- }
25191
-
25192
25154
  .pf-c-tile {
25193
25155
  --pf-c-tile--PaddingTop: var(--pf-global--spacer--lg);
25194
25156
  --pf-c-tile--PaddingRight: var(--pf-global--spacer--lg);
@@ -25344,6 +25306,44 @@ label.pf-c-radio, .pf-c-radio__label,
25344
25306
  --pf-c-tile--m-disabled__body--Color: var(--pf-global--disabled-color--300);
25345
25307
  }
25346
25308
 
25309
+ .pf-c-timestamp {
25310
+ --pf-c-timestamp--FontSize: var(--pf-global--FontSize--sm);
25311
+ --pf-c-timestamp--Color: var(--pf-global--Color--200);
25312
+ --pf-c-timestamp--OutlineOffset: 0.1875rem;
25313
+ --pf-c-timestamp--m-help-text--TextDecorationLine: underline;
25314
+ --pf-c-timestamp--m-help-text--TextDecorationStyle: dashed;
25315
+ --pf-c-timestamp--m-help-text--TextDecorationThickness: var(--pf-global--BorderWidth--sm);
25316
+ --pf-c-timestamp--m-help-text--TextUnderlineOffset: 0.25rem;
25317
+ --pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-global--BorderColor--200);
25318
+ --pf-c-timestamp--m-help-text--hover--Color: var(--pf-global--Color--100);
25319
+ --pf-c-timestamp--m-help-text--focus--Color: var(--pf-global--Color--100);
25320
+ --pf-c-timestamp--m-help-text--hover--TextDecorationColor: var(--pf-global--Color--100);
25321
+ --pf-c-timestamp--m-help-text--focus--TextDecorationColor: var(--pf-global--Color--100);
25322
+ display: inline-block;
25323
+ font-size: var(--pf-c-timestamp--FontSize);
25324
+ color: var(--pf-c-timestamp--Color);
25325
+ outline-offset: var(--pf-c-timestamp--OutlineOffset);
25326
+ }
25327
+
25328
+ .pf-c-timestamp.pf-m-help-text {
25329
+ cursor: pointer;
25330
+ text-decoration-line: var(--pf-c-timestamp--m-help-text--TextDecorationLine);
25331
+ text-decoration-style: var(--pf-c-timestamp--m-help-text--TextDecorationStyle);
25332
+ text-decoration-thickness: var(--pf-c-timestamp--m-help-text--TextDecorationThickness);
25333
+ text-underline-offset: var(--pf-c-timestamp--m-help-text--TextUnderlineOffset);
25334
+ text-decoration-color: var(--pf-c-timestamp--m-help-text--TextDecorationColor);
25335
+ }
25336
+
25337
+ .pf-c-timestamp.pf-m-help-text:hover {
25338
+ --pf-c-timestamp--Color: var(--pf-c-timestamp--m-help-text--hover--Color);
25339
+ --pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-c-timestamp--m-help-text--hover--TextDecorationColor);
25340
+ }
25341
+
25342
+ .pf-c-timestamp.pf-m-help-text:focus {
25343
+ --pf-c-timestamp--Color: var(--pf-c-timestamp--m-help-text--focus--Color);
25344
+ --pf-c-timestamp--m-help-text--TextDecorationColor: var(--pf-c-timestamp--m-help-text--focus--TextDecorationColor);
25345
+ }
25346
+
25347
25347
  .pf-c-title {
25348
25348
  --pf-c-title--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
25349
25349
  --pf-c-title--m-4xl--LineHeight: var(--pf-global--LineHeight--sm);