@patternfly/react-table 4.105.13 → 4.106.1

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.
@@ -4213,6 +4213,22 @@
4213
4213
  };
4214
4214
  Spinner.displayName = 'Spinner';
4215
4215
 
4216
+ Promise.resolve().then(function () { return badge; });
4217
+ var badgeStyles = {
4218
+ "badge": "pf-c-badge",
4219
+ "modifiers": {
4220
+ "read": "pf-m-read",
4221
+ "unread": "pf-m-unread"
4222
+ },
4223
+ "themeDark": "pf-theme-dark"
4224
+ };
4225
+
4226
+ const Badge = (_a) => {
4227
+ var { isRead = false, className = '', children = '' } = _a, props = __rest$1(_a, ["isRead", "className", "children"]);
4228
+ return (React__namespace.createElement("span", Object.assign({}, props, { className: css(badgeStyles.badge, (isRead ? badgeStyles.modifiers.read : badgeStyles.modifiers.unread), className) }), children));
4229
+ };
4230
+ Badge.displayName = 'Badge';
4231
+
4216
4232
  var ButtonVariant;
4217
4233
  (function (ButtonVariant) {
4218
4234
  ButtonVariant["primary"] = "primary";
@@ -4231,7 +4247,7 @@
4231
4247
  ButtonType["reset"] = "reset";
4232
4248
  })(ButtonType || (ButtonType = {}));
4233
4249
  const ButtonBase = (_a) => {
4234
- var { children = null, className = '', component = 'button', isActive = false, isBlock = false, isDisabled = false, isAriaDisabled = false, isLoading = null, isDanger = false, spinnerAriaValueText, spinnerAriaLabelledBy, spinnerAriaLabel, isSmall = false, isLarge = false, inoperableEvents = ['onClick', 'onKeyPress'], isInline = false, type = ButtonType.button, variant = ButtonVariant.primary, iconPosition = 'left', 'aria-label': ariaLabel = null, icon = null, ouiaId, ouiaSafe = true, tabIndex = null, innerRef } = _a, props = __rest$1(_a, ["children", "className", "component", "isActive", "isBlock", "isDisabled", "isAriaDisabled", "isLoading", "isDanger", "spinnerAriaValueText", "spinnerAriaLabelledBy", "spinnerAriaLabel", "isSmall", "isLarge", "inoperableEvents", "isInline", "type", "variant", "iconPosition", 'aria-label', "icon", "ouiaId", "ouiaSafe", "tabIndex", "innerRef"]);
4250
+ var { children = null, className = '', component = 'button', isActive = false, isBlock = false, isDisabled = false, isAriaDisabled = false, isLoading = null, isDanger = false, spinnerAriaValueText, spinnerAriaLabelledBy, spinnerAriaLabel, isSmall = false, isLarge = false, inoperableEvents = ['onClick', 'onKeyPress'], isInline = false, type = ButtonType.button, variant = ButtonVariant.primary, iconPosition = 'left', 'aria-label': ariaLabel = null, icon = null, ouiaId, ouiaSafe = true, tabIndex = null, innerRef, countOptions } = _a, props = __rest$1(_a, ["children", "className", "component", "isActive", "isBlock", "isDisabled", "isAriaDisabled", "isLoading", "isDanger", "spinnerAriaValueText", "spinnerAriaLabelledBy", "spinnerAriaLabel", "isSmall", "isLarge", "inoperableEvents", "isInline", "type", "variant", "iconPosition", 'aria-label', "icon", "ouiaId", "ouiaSafe", "tabIndex", "innerRef", "countOptions"]);
4235
4251
  const ouiaProps = useOUIAProps(Button.displayName, ouiaId, ouiaSafe, variant);
4236
4252
  const Component = component;
4237
4253
  const isButtonElement = Component === 'button';
@@ -4256,7 +4272,9 @@
4256
4272
  variant === ButtonVariant.plain && children === null && icon ? icon : null,
4257
4273
  variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React__namespace.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.start) }, icon)),
4258
4274
  children,
4259
- variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React__namespace.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.end) }, icon))));
4275
+ variant !== ButtonVariant.plain && icon && iconPosition === 'right' && (React__namespace.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.end) }, icon)),
4276
+ countOptions && (React__namespace.createElement("span", { className: css(buttonStyles.buttonCount, countOptions.className) },
4277
+ React__namespace.createElement(Badge, { isRead: countOptions.isRead }, countOptions.count)))));
4260
4278
  };
4261
4279
  const Button = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(ButtonBase, Object.assign({ innerRef: ref }, props))));
4262
4280
  Button.displayName = 'Button';
@@ -5249,16 +5267,6 @@
5249
5267
  bubbleEvent: false
5250
5268
  };
5251
5269
 
5252
- Promise.resolve().then(function () { return badge; });
5253
- var badgeStyles = {
5254
- "badge": "pf-c-badge",
5255
- "modifiers": {
5256
- "read": "pf-m-read",
5257
- "unread": "pf-m-unread"
5258
- },
5259
- "themeDark": "pf-theme-dark"
5260
- };
5261
-
5262
5270
  const EllipsisVIconConfig = {
5263
5271
  name: 'EllipsisVIcon',
5264
5272
  height: 512,
@@ -13425,6 +13433,10 @@
13425
13433
  __proto__: null
13426
13434
  });
13427
13435
 
13436
+ var badge = /*#__PURE__*/Object.freeze({
13437
+ __proto__: null
13438
+ });
13439
+
13428
13440
  var tooltip = /*#__PURE__*/Object.freeze({
13429
13441
  __proto__: null
13430
13442
  });
@@ -13441,10 +13453,6 @@
13441
13453
  __proto__: null
13442
13454
  });
13443
13455
 
13444
- var badge = /*#__PURE__*/Object.freeze({
13445
- __proto__: null
13446
- });
13447
-
13448
13456
  var select = /*#__PURE__*/Object.freeze({
13449
13457
  __proto__: null
13450
13458
  });