@zendeskgarden/react-avatars 8.57.0 → 8.57.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.
package/dist/index.cjs.js CHANGED
@@ -246,7 +246,7 @@ var STATUS = ['available', 'away', 'transfers', 'offline'];
246
246
  var COMPONENT_ID$6 = 'avatars.text';
247
247
  var StyledText = styled__default["default"].span.attrs({
248
248
  'data-garden-id': COMPONENT_ID$6,
249
- 'data-garden-version': '8.57.0'
249
+ 'data-garden-version': '8.57.1'
250
250
  }).withConfig({
251
251
  displayName: "StyledText",
252
252
  componentId: "sc-1a6hivh-0"
@@ -321,7 +321,7 @@ var colorStyles$2 = function colorStyles(props) {
321
321
  };
322
322
  var StyledStatusIndicatorBase = styled__default["default"].div.attrs({
323
323
  'data-garden-id': COMPONENT_ID$5,
324
- 'data-garden-version': '8.57.0'
324
+ 'data-garden-version': '8.57.1'
325
325
  }).withConfig({
326
326
  displayName: "StyledStatusIndicatorBase",
327
327
  componentId: "sc-1rininy-0"
@@ -367,7 +367,7 @@ var colorStyles$1 = function colorStyles(props) {
367
367
  };
368
368
  var StyledStatusIndicator = styled__default["default"](StyledStatusIndicatorBase).attrs({
369
369
  'data-garden-id': COMPONENT_ID$4,
370
- 'data-garden-version': '8.57.0'
370
+ 'data-garden-version': '8.57.1'
371
371
  }).withConfig({
372
372
  displayName: "StyledStatusIndicator",
373
373
  componentId: "sc-16t9if3-0"
@@ -450,7 +450,7 @@ var sizeStyles$1 = function sizeStyles(props) {
450
450
  };
451
451
  var StyledAvatar = styled__default["default"].figure.attrs({
452
452
  'data-garden-id': COMPONENT_ID$3,
453
- 'data-garden-version': '8.57.0'
453
+ 'data-garden-version': '8.57.1'
454
454
  }).withConfig({
455
455
  displayName: "StyledAvatar",
456
456
  componentId: "sc-608m04-0"
@@ -469,7 +469,7 @@ StyledAvatar.defaultProps = {
469
469
  var COMPONENT_ID$2 = 'avatars.status-indicator.status';
470
470
  var StyledStandaloneStatus = styled__default["default"].figure.attrs({
471
471
  'data-garden-id': COMPONENT_ID$2,
472
- 'data-garden-version': '8.57.0'
472
+ 'data-garden-version': '8.57.1'
473
473
  }).withConfig({
474
474
  displayName: "StyledStandaloneStatus",
475
475
  componentId: "sc-1ow4nfj-0"
@@ -487,7 +487,7 @@ function sizeStyles(props) {
487
487
  }
488
488
  var StyledStandaloneStatusCaption = styled__default["default"].figcaption.attrs({
489
489
  'data-garden-id': COMPONENT_ID$1,
490
- 'data-garden-version': '8.57.0'
490
+ 'data-garden-version': '8.57.1'
491
491
  }).withConfig({
492
492
  displayName: "StyledStandaloneStatusCaption",
493
493
  componentId: "sc-aalyk1-0"
@@ -501,7 +501,7 @@ StyledStandaloneStatusCaption.defaultProps = {
501
501
  var COMPONENT_ID = 'avatars.status-indicator.indicator';
502
502
  var StyledStandaloneStatusIndicator = styled__default["default"](StyledStatusIndicatorBase).attrs({
503
503
  'data-garden-id': COMPONENT_ID,
504
- 'data-garden-version': '8.57.0'
504
+ 'data-garden-version': '8.57.1'
505
505
  }).withConfig({
506
506
  displayName: "StyledStandaloneStatusIndicator",
507
507
  componentId: "sc-1xt1heq-0"
@@ -594,7 +594,7 @@ var Avatar = AvatarComponent;
594
594
  Avatar.Text = Text;
595
595
 
596
596
  var _excluded = ["children", "type", "isCompact", "aria-label"];
597
- var StatusIndicatorComponent = React.forwardRef(function (_ref, ref) {
597
+ var StatusIndicator = React.forwardRef(function (_ref, ref) {
598
598
  var children = _ref.children,
599
599
  type = _ref.type,
600
600
  isCompact = _ref.isCompact,
@@ -609,7 +609,7 @@ var StatusIndicatorComponent = React.forwardRef(function (_ref, ref) {
609
609
  var defaultLabel = React.useMemo(function () {
610
610
  return ['status'].concat(type || []).join(': ');
611
611
  }, [type]);
612
- var ariaLabel = reactTheming.useText(StatusIndicatorComponent, {
612
+ var ariaLabel = reactTheming.useText(StatusIndicator, {
613
613
  'aria-label': label
614
614
  }, 'aria-label', defaultLabel);
615
615
  return React__default["default"].createElement(StyledStandaloneStatus, _extends$4({
@@ -628,15 +628,14 @@ var StatusIndicatorComponent = React.forwardRef(function (_ref, ref) {
628
628
  "aria-hidden": "true"
629
629
  }) : null), children && React__default["default"].createElement(StyledStandaloneStatusCaption, null, children));
630
630
  });
631
- StatusIndicatorComponent.displayName = 'StatusIndicator';
632
- StatusIndicatorComponent.propTypes = {
631
+ StatusIndicator.displayName = 'StatusIndicator';
632
+ StatusIndicator.propTypes = {
633
633
  type: PropTypes__default["default"].oneOf(STATUS),
634
634
  isCompact: PropTypes__default["default"].bool
635
635
  };
636
- StatusIndicatorComponent.defaultProps = {
636
+ StatusIndicator.defaultProps = {
637
637
  type: 'offline'
638
638
  };
639
- var StatusIndicator = StatusIndicatorComponent;
640
639
 
641
640
  exports.Avatar = Avatar;
642
641
  exports.StatusIndicator = StatusIndicator;
package/dist/index.esm.js CHANGED
@@ -218,7 +218,7 @@ var STATUS = ['available', 'away', 'transfers', 'offline'];
218
218
  var COMPONENT_ID$6 = 'avatars.text';
219
219
  var StyledText = styled.span.attrs({
220
220
  'data-garden-id': COMPONENT_ID$6,
221
- 'data-garden-version': '8.57.0'
221
+ 'data-garden-version': '8.57.1'
222
222
  }).withConfig({
223
223
  displayName: "StyledText",
224
224
  componentId: "sc-1a6hivh-0"
@@ -293,7 +293,7 @@ var colorStyles$2 = function colorStyles(props) {
293
293
  };
294
294
  var StyledStatusIndicatorBase = styled.div.attrs({
295
295
  'data-garden-id': COMPONENT_ID$5,
296
- 'data-garden-version': '8.57.0'
296
+ 'data-garden-version': '8.57.1'
297
297
  }).withConfig({
298
298
  displayName: "StyledStatusIndicatorBase",
299
299
  componentId: "sc-1rininy-0"
@@ -339,7 +339,7 @@ var colorStyles$1 = function colorStyles(props) {
339
339
  };
340
340
  var StyledStatusIndicator = styled(StyledStatusIndicatorBase).attrs({
341
341
  'data-garden-id': COMPONENT_ID$4,
342
- 'data-garden-version': '8.57.0'
342
+ 'data-garden-version': '8.57.1'
343
343
  }).withConfig({
344
344
  displayName: "StyledStatusIndicator",
345
345
  componentId: "sc-16t9if3-0"
@@ -422,7 +422,7 @@ var sizeStyles$1 = function sizeStyles(props) {
422
422
  };
423
423
  var StyledAvatar = styled.figure.attrs({
424
424
  'data-garden-id': COMPONENT_ID$3,
425
- 'data-garden-version': '8.57.0'
425
+ 'data-garden-version': '8.57.1'
426
426
  }).withConfig({
427
427
  displayName: "StyledAvatar",
428
428
  componentId: "sc-608m04-0"
@@ -441,7 +441,7 @@ StyledAvatar.defaultProps = {
441
441
  var COMPONENT_ID$2 = 'avatars.status-indicator.status';
442
442
  var StyledStandaloneStatus = styled.figure.attrs({
443
443
  'data-garden-id': COMPONENT_ID$2,
444
- 'data-garden-version': '8.57.0'
444
+ 'data-garden-version': '8.57.1'
445
445
  }).withConfig({
446
446
  displayName: "StyledStandaloneStatus",
447
447
  componentId: "sc-1ow4nfj-0"
@@ -459,7 +459,7 @@ function sizeStyles(props) {
459
459
  }
460
460
  var StyledStandaloneStatusCaption = styled.figcaption.attrs({
461
461
  'data-garden-id': COMPONENT_ID$1,
462
- 'data-garden-version': '8.57.0'
462
+ 'data-garden-version': '8.57.1'
463
463
  }).withConfig({
464
464
  displayName: "StyledStandaloneStatusCaption",
465
465
  componentId: "sc-aalyk1-0"
@@ -473,7 +473,7 @@ StyledStandaloneStatusCaption.defaultProps = {
473
473
  var COMPONENT_ID = 'avatars.status-indicator.indicator';
474
474
  var StyledStandaloneStatusIndicator = styled(StyledStatusIndicatorBase).attrs({
475
475
  'data-garden-id': COMPONENT_ID,
476
- 'data-garden-version': '8.57.0'
476
+ 'data-garden-version': '8.57.1'
477
477
  }).withConfig({
478
478
  displayName: "StyledStandaloneStatusIndicator",
479
479
  componentId: "sc-1xt1heq-0"
@@ -566,7 +566,7 @@ var Avatar = AvatarComponent;
566
566
  Avatar.Text = Text;
567
567
 
568
568
  var _excluded = ["children", "type", "isCompact", "aria-label"];
569
- var StatusIndicatorComponent = forwardRef(function (_ref, ref) {
569
+ var StatusIndicator = forwardRef(function (_ref, ref) {
570
570
  var children = _ref.children,
571
571
  type = _ref.type,
572
572
  isCompact = _ref.isCompact,
@@ -581,7 +581,7 @@ var StatusIndicatorComponent = forwardRef(function (_ref, ref) {
581
581
  var defaultLabel = useMemo(function () {
582
582
  return ['status'].concat(type || []).join(': ');
583
583
  }, [type]);
584
- var ariaLabel = useText(StatusIndicatorComponent, {
584
+ var ariaLabel = useText(StatusIndicator, {
585
585
  'aria-label': label
586
586
  }, 'aria-label', defaultLabel);
587
587
  return React__default.createElement(StyledStandaloneStatus, _extends$4({
@@ -600,14 +600,13 @@ var StatusIndicatorComponent = forwardRef(function (_ref, ref) {
600
600
  "aria-hidden": "true"
601
601
  }) : null), children && React__default.createElement(StyledStandaloneStatusCaption, null, children));
602
602
  });
603
- StatusIndicatorComponent.displayName = 'StatusIndicator';
604
- StatusIndicatorComponent.propTypes = {
603
+ StatusIndicator.displayName = 'StatusIndicator';
604
+ StatusIndicator.propTypes = {
605
605
  type: PropTypes.oneOf(STATUS),
606
606
  isCompact: PropTypes.bool
607
607
  };
608
- StatusIndicatorComponent.defaultProps = {
608
+ StatusIndicator.defaultProps = {
609
609
  type: 'offline'
610
610
  };
611
- var StatusIndicator = StatusIndicatorComponent;
612
611
 
613
612
  export { Avatar, StatusIndicator };
@@ -6,4 +6,7 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import { IStatusIndicatorProps } from '../types';
9
+ /**
10
+ * @extends HTMLAttributes<HTMLElement>
11
+ */
9
12
  export declare const StatusIndicator: React.ForwardRefExoticComponent<IStatusIndicatorProps & React.RefAttributes<HTMLElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-avatars",
3
- "version": "8.57.0",
3
+ "version": "8.57.1",
4
4
  "description": "Components relating to avatars in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -31,7 +31,7 @@
31
31
  "styled-components": "^4.2.0 || ^5.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@zendeskgarden/react-theming": "^8.57.0",
34
+ "@zendeskgarden/react-theming": "^8.57.1",
35
35
  "@zendeskgarden/svg-icons": "6.33.0"
36
36
  },
37
37
  "keywords": [
@@ -44,5 +44,5 @@
44
44
  "access": "public"
45
45
  },
46
46
  "zendeskgarden:src": "src/index.ts",
47
- "gitHead": "165b6a453118f93e9e760642b632ce3d31e3a231"
47
+ "gitHead": "3e903f3c7013221ef01d3f81a50489505490be7b"
48
48
  }