@atlaskit/profilecard 19.16.3 → 19.17.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/afm-post-office/tsconfig.json +78 -0
  3. package/dist/cjs/client/getTeamFromAGG.js +1 -1
  4. package/dist/cjs/components/Icon/IconLabel.js +7 -6
  5. package/dist/cjs/components/Team/TeamProfileCard.js +5 -3
  6. package/dist/cjs/components/User/OverflowProfileCardButtons.js +4 -2
  7. package/dist/cjs/components/User/ProfileCardTrigger.js +319 -308
  8. package/dist/cjs/util/analytics.js +1 -1
  9. package/dist/es2019/client/getTeamFromAGG.js +1 -1
  10. package/dist/es2019/components/Icon/IconLabel.js +6 -5
  11. package/dist/es2019/components/Team/TeamProfileCard.js +4 -2
  12. package/dist/es2019/components/User/OverflowProfileCardButtons.js +3 -1
  13. package/dist/es2019/components/User/ProfileCardTrigger.js +267 -276
  14. package/dist/es2019/util/analytics.js +1 -1
  15. package/dist/esm/client/getTeamFromAGG.js +1 -1
  16. package/dist/esm/components/Icon/IconLabel.js +6 -5
  17. package/dist/esm/components/Team/TeamProfileCard.js +4 -2
  18. package/dist/esm/components/User/OverflowProfileCardButtons.js +3 -1
  19. package/dist/esm/components/User/ProfileCardTrigger.js +320 -309
  20. package/dist/esm/util/analytics.js +1 -1
  21. package/dist/types/components/User/ProfileCardTrigger.d.ts +1 -1
  22. package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +1 -1
  23. package/package.json +7 -10
  24. package/dist/cjs/components/User/ProfileCardTriggerNext.js +0 -362
  25. package/dist/es2019/components/User/ProfileCardTriggerNext.js +0 -289
  26. package/dist/esm/components/User/ProfileCardTriggerNext.js +0 -352
  27. package/dist/types/components/User/ProfileCardTriggerNext.d.ts +0 -3
  28. package/dist/types-ts4.5/components/User/ProfileCardTriggerNext.d.ts +0 -3
@@ -7,10 +7,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
7
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  import React from 'react';
10
- import IconEmail from '@atlaskit/icon/glyph/email';
11
- import IconLocation from '@atlaskit/icon/glyph/location';
12
- import OfficeBuildingIcon from '@atlaskit/icon/glyph/office-building';
13
- import IconRecent from '@atlaskit/icon/glyph/recent';
10
+ import IconRecent from '@atlaskit/icon/core/migration/clock--recent';
11
+ import IconEmail from '@atlaskit/icon/core/migration/email';
12
+ import IconLocation from '@atlaskit/icon/core/migration/location';
13
+ import OfficeBuildingIcon from '@atlaskit/icon/core/migration/office-building';
14
14
  import { DetailsLabel, DetailsLabelIcon, DetailsLabelText } from '../../styled/Card';
15
15
  var icons = {
16
16
  location: IconLocation,
@@ -36,7 +36,8 @@ var IconLabel = /*#__PURE__*/function (_React$PureComponent) {
36
36
  var IconElement = this.props.icon && icons[this.props.icon];
37
37
  var displayIcon = IconElement ? /*#__PURE__*/React.createElement(IconElement, {
38
38
  label: "".concat(this.props.icon),
39
- size: "small"
39
+ LEGACY_size: "small",
40
+ color: "currentColor"
40
41
  }) : null;
41
42
  return /*#__PURE__*/React.createElement(DetailsLabel, null, /*#__PURE__*/React.createElement(DetailsLabelIcon, null, displayIcon), /*#__PURE__*/React.createElement(DetailsLabelText, null, this.props.children));
42
43
  }
@@ -10,7 +10,7 @@ import AvatarGroup from '@atlaskit/avatar-group';
10
10
  import LoadingButton from '@atlaskit/button/loading-button';
11
11
  import Button from '@atlaskit/button/standard-button';
12
12
  import FocusRing from '@atlaskit/focus-ring';
13
- import MoreIcon from '@atlaskit/icon/glyph/more';
13
+ import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
14
14
  import { LinkItem, MenuGroup } from '@atlaskit/menu';
15
15
  import { fg } from '@atlaskit/platform-feature-flags';
16
16
  import Popup from '@atlaskit/popup';
@@ -175,7 +175,9 @@ var ExtraActions = function ExtraActions(_ref3) {
175
175
  return onMoreClick(!isOpen);
176
176
  },
177
177
  iconAfter: /*#__PURE__*/React.createElement(MoreIcon, {
178
- label: "actions"
178
+ spacing: "spacious",
179
+ label: "actions",
180
+ color: "currentColor"
179
181
  })
180
182
  }));
181
183
  },
@@ -6,7 +6,7 @@ import React, { useCallback, useState } from 'react';
6
6
  import { useIntl } from 'react-intl-next';
7
7
  import Button from '@atlaskit/button/custom-theme-button';
8
8
  import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
9
- import MoreIcon from '@atlaskit/icon/glyph/more';
9
+ import MoreIcon from '@atlaskit/icon/core/migration/show-more-horizontal--more';
10
10
  import messages from '../../messages';
11
11
  import { OverflowActionButtonsWrapper } from '../../styled/Card';
12
12
  import { moreActionsClicked } from '../../util/analytics';
@@ -49,6 +49,8 @@ export var OverflowProfileCardButtons = function OverflowProfileCardButtons(prop
49
49
  }, providedProps, {
50
50
  ref: triggerRef,
51
51
  iconBefore: /*#__PURE__*/React.createElement(MoreIcon, {
52
+ color: "currentColor",
53
+ spacing: "spacious",
52
54
  label: intl.formatMessage(messages.profileCardMoreIconLabel)
53
55
  })
54
56
  }));