@procore/core-react 12.21.0-cdn.2 → 12.21.0-cdn.3

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 (204) hide show
  1. package/__mocks__/_hooks/DelayedCallback.tsx +88 -0
  2. package/__mocks__/_hooks/Visibility.tsx +100 -0
  3. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  4. package/dist/Avatar/Avatar.js +10 -8
  5. package/dist/Avatar/Avatar.js.map +1 -1
  6. package/dist/Avatar/Avatar.styles.js +5 -5
  7. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  8. package/dist/Badge/Badge.styles.js +2 -2
  9. package/dist/Banner/Banner.styles.js +10 -10
  10. package/dist/Box/Box.styles.js +1 -1
  11. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  12. package/dist/Button/Button.styles.js +5 -5
  13. package/dist/Calendar/Calendar.styles.js +8 -8
  14. package/dist/Card/Card.styles.js +1 -1
  15. package/dist/Checkbox/Checkbox.styles.js +6 -6
  16. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  17. package/dist/ContactItem/ContactItem.styles.js +5 -5
  18. package/dist/Content/Content.styles.js +2 -2
  19. package/dist/DateInput/DateInput.styles.js +6 -6
  20. package/dist/DetailPage/DetailPage.styles.js +7 -7
  21. package/dist/Dropdown/Dropdown.styles.js +3 -3
  22. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  23. package/dist/Dropzone/Dropzone.js +1 -1
  24. package/dist/Dropzone/Dropzone.styles.js +9 -9
  25. package/dist/EmptyState/EmptyState.styles.js +6 -6
  26. package/dist/Field/Field.styles.js +3 -3
  27. package/dist/FileList/FileList.styles.js +4 -4
  28. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  29. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  30. package/dist/FileSelect/FileSelect.styles.js +2 -2
  31. package/dist/FileSelect/FileSelect.types.d.ts +4 -0
  32. package/dist/FileSelect/FileSelect.types.js.map +1 -1
  33. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  34. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  35. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  36. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  37. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  38. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  39. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  40. package/dist/FileToken/FileToken.styles.js +4 -4
  41. package/dist/FilterToken/FilterToken.styles.js +5 -5
  42. package/dist/FlexList/FlexList.styles.js +1 -1
  43. package/dist/Form/Form.js +12 -5
  44. package/dist/Form/Form.js.map +1 -1
  45. package/dist/Form/Form.styles.js +14 -14
  46. package/dist/Form/StyledFormikForm.styles.js +2 -2
  47. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  48. package/dist/Grid/Grid.styles.js +2 -2
  49. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  50. package/dist/Input/Input.styles.js +1 -1
  51. package/dist/Link/Link.styles.js +1 -1
  52. package/dist/ListPage/ListPage.styles.js +8 -8
  53. package/dist/Loader/Loader.styles.js +2 -2
  54. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  55. package/dist/Modal/Modal.styles.js +13 -13
  56. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  57. package/dist/MultiSelect/MultiSelect.types.d.ts +5 -0
  58. package/dist/MultiSelect/MultiSelect.types.js.map +1 -1
  59. package/dist/NextMenu/NextMenu.styles.js +3 -3
  60. package/dist/Notation/Notation.js +1 -1
  61. package/dist/NumberInput/NumberInput.styles.js +7 -7
  62. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  63. package/dist/PageLayout/PageLayout.styles.js +16 -16
  64. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  65. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  66. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  67. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  68. package/dist/Pagination/Pagination.styles.js +5 -5
  69. package/dist/Panel/Panel.js +2 -1
  70. package/dist/Panel/Panel.js.map +1 -1
  71. package/dist/Panel/Panel.styles.js +11 -11
  72. package/dist/Pill/Pill.styles.js +2 -2
  73. package/dist/PillSelect/PillSelect.styles.js +4 -4
  74. package/dist/Popover/Popover.styles.js +2 -2
  75. package/dist/Portal/Portal.styles.js +1 -1
  76. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  77. package/dist/RadioButton/RadioButton.js +1 -0
  78. package/dist/RadioButton/RadioButton.js.map +1 -1
  79. package/dist/RadioButton/RadioButton.styles.js +3 -3
  80. package/dist/Required/Required.styles.js +3 -3
  81. package/dist/Search/Search.styles.js +5 -5
  82. package/dist/Section/Section.styles.js +7 -7
  83. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  84. package/dist/Select/Select.styles.js +7 -7
  85. package/dist/Semantic/Semantic.styles.js +9 -9
  86. package/dist/Slider/Slider.styles.js +5 -5
  87. package/dist/Spinner/Spinner.styles.js +7 -7
  88. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  89. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  90. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  91. package/dist/Switch/Switch.styles.js +4 -4
  92. package/dist/Table/Table.styles.js +28 -28
  93. package/dist/TableShelf/TableShelf.styles.js +5 -5
  94. package/dist/Tabs/Tabs.js +6 -4
  95. package/dist/Tabs/Tabs.js.map +1 -1
  96. package/dist/Tabs/Tabs.styles.js +15 -15
  97. package/dist/Tearsheet/Tearsheet.js +61 -40
  98. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  99. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  100. package/dist/TextArea/TextArea.styles.js +1 -1
  101. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  102. package/dist/Thumbnail/Thumbnail.js +4 -2
  103. package/dist/Thumbnail/Thumbnail.js.map +1 -1
  104. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  105. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  106. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  107. package/dist/Tile/Tile.styles.js +8 -8
  108. package/dist/Title/Title.styles.js +7 -7
  109. package/dist/Toast/Toast.styles.js +3 -3
  110. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  111. package/dist/Token/Token.styles.js +3 -3
  112. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  113. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  114. package/dist/Tooltip/Tooltip.styles.js +2 -2
  115. package/dist/Tree/Tree.styles.js +9 -9
  116. package/dist/Typeahead/Typeahead.styles.js +3 -3
  117. package/dist/Typography/Typography.styles.js +1 -1
  118. package/dist/Typography/Typography.table.story.js +2 -2
  119. package/dist/_hooks/DelayedCallback.js +9 -4
  120. package/dist/_hooks/DelayedCallback.js.map +1 -1
  121. package/dist/_hooks/Visibility.js +10 -0
  122. package/dist/_hooks/Visibility.js.map +1 -1
  123. package/dist/_locales/it-IT.json +216 -216
  124. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  125. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  126. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  127. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  128. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  129. package/dist/_typedoc/Box/Box.types.json +68 -68
  130. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  131. package/dist/_typedoc/Button/Button.types.json +13 -13
  132. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  133. package/dist/_typedoc/Card/Card.types.json +6 -6
  134. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  135. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  136. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  137. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  138. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  139. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  140. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  141. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  142. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  143. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  144. package/dist/_typedoc/FileSelect/FileSelect.types.json +36 -26
  145. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  146. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  147. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  148. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  149. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  150. package/dist/_typedoc/Form/Form.types.json +741 -741
  151. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  152. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  153. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  154. package/dist/_typedoc/Input/Input.types.json +2 -2
  155. package/dist/_typedoc/Link/Link.types.json +4 -4
  156. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  157. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  158. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  159. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  160. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  161. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  162. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  163. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +31 -31
  164. package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
  165. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  166. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  167. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  168. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  169. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  170. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  171. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  172. package/dist/_typedoc/Required/Required.types.json +5 -5
  173. package/dist/_typedoc/Search/Search.types.json +19 -19
  174. package/dist/_typedoc/Section/Section.types.json +15 -15
  175. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  176. package/dist/_typedoc/Select/Select.types.json +60 -60
  177. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  178. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  179. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  180. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  181. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  182. package/dist/_typedoc/Table/Table.types.json +101 -101
  183. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  184. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  185. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  186. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  187. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  188. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  189. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  190. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  191. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  192. package/dist/_typedoc/Title/Title.types.json +1 -1
  193. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  194. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  195. package/dist/_typedoc/Token/Token.types.json +4 -4
  196. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  197. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  198. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  199. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  200. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  201. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  202. package/dist/_typedoc/_utils/types.json +3 -3
  203. package/package.json +3 -2
  204. package/tsconfig.prod.json +2 -1
@@ -0,0 +1,88 @@
1
+ // Mock for src/_hooks/DelayedCallback.tsx
2
+
3
+ import React from 'react'
4
+ import { act } from 'react-dom/test-utils'
5
+ import type { TimerApi } from '../../src/_hooks/Timer'
6
+ import { useTimer } from '../../src/_hooks/Timer'
7
+
8
+ /* TYPES */
9
+
10
+ export type BeforeResult = Promise<any> | boolean | undefined | void
11
+
12
+ export type BeforeCallback = (event: Event) => BeforeResult
13
+
14
+ interface DelayedCallbackConfig {
15
+ after?: (event: Event) => void
16
+ before?: BeforeCallback
17
+ delay: number
18
+ timer?: TimerApi
19
+ }
20
+
21
+ function noop() {}
22
+
23
+ function returnTrue() {
24
+ return true
25
+ }
26
+
27
+ /**
28
+ * @deprecatedSince 9
29
+ * @deprecated Never officially documented/supported
30
+ */
31
+ export function isPromise(obj: any): obj is Promise<any> {
32
+ return typeof obj === 'object' && typeof obj.then === 'function'
33
+ }
34
+
35
+ /**
36
+ * @deprecatedSince 9
37
+ * @deprecated Never officially documented/supported
38
+ */
39
+ export function wrapPromise(result: BeforeResult): Promise<any> {
40
+ if (isPromise(result)) {
41
+ return result
42
+ }
43
+
44
+ if (typeof result === 'boolean') {
45
+ return Promise.resolve(result)
46
+ }
47
+
48
+ return Promise.resolve(true)
49
+ }
50
+
51
+ /* HOOK */
52
+
53
+ /**
54
+ * @deprecatedSince 9
55
+ * @deprecated Never officially documented/supported
56
+ */
57
+ export function useDelayedCallback({
58
+ after = noop,
59
+ before = returnTrue,
60
+ delay = 0,
61
+ timer,
62
+ }: DelayedCallbackConfig) {
63
+ const defaultTimer = useTimer({})
64
+
65
+ const t = timer || defaultTimer
66
+
67
+ React.useEffect(() => {
68
+ return () => {
69
+ // cancel timeout on unmount
70
+ t.cancel()
71
+ }
72
+ }, [t])
73
+
74
+ return React.useCallback(
75
+ (event: any) => {
76
+ return wrapPromise(before(event)).then((shouldUpdate: boolean) => {
77
+ if (shouldUpdate) {
78
+ act(() => {
79
+ t.setTimer(() => after(event), delay)
80
+ })
81
+ return true
82
+ }
83
+ return false
84
+ })
85
+ },
86
+ [delay, before, after, t]
87
+ )
88
+ }
@@ -0,0 +1,100 @@
1
+ // Mock for src/_hooks/Visibility.tsx
2
+
3
+ import React from 'react'
4
+ import { act } from 'react-dom/test-utils'
5
+
6
+ /* TYPES */
7
+
8
+ /**
9
+ * @deprecatedSince 9
10
+ * @deprecated Never officially documented/supported
11
+ */
12
+ export interface VisibilityConfig {
13
+ afterHide?: (e?: Event) => void
14
+ afterShow?: () => void
15
+ initialIsVisible?: boolean
16
+ }
17
+
18
+ interface VisibilityApi {
19
+ hide: (e?: Event) => any
20
+ isVisible: boolean
21
+ show: () => any
22
+ toggle: () => any
23
+ }
24
+
25
+ interface Props extends VisibilityConfig {
26
+ children?: React.ReactNode
27
+ }
28
+
29
+ /**
30
+ * @deprecatedSince 9
31
+ * @deprecated Never officially documented/supported
32
+ */
33
+ export interface RenderProps extends VisibilityConfig {
34
+ children: (props: VisibilityApi) => React.ReactElement<{}>
35
+ }
36
+
37
+ /* HOOK */
38
+
39
+ function noop() {}
40
+
41
+ /**
42
+ * @deprecatedSince 9
43
+ * @deprecated Never officially documented/supported
44
+ */
45
+ export function useVisibility({
46
+ afterHide = noop,
47
+ afterShow = noop,
48
+ initialIsVisible = false,
49
+ }: VisibilityConfig): VisibilityApi {
50
+ const [isVisible, setVisibility] = React.useState(initialIsVisible)
51
+ const isMounted = React.useRef(true)
52
+
53
+ React.useEffect(() => {
54
+ return () => {
55
+ isMounted.current = false
56
+ }
57
+ }, [])
58
+
59
+ const hide = (e?: Event) => {
60
+ if (!isMounted.current) return
61
+
62
+ act(() => setVisibility(false))
63
+
64
+ if (isVisible) {
65
+ afterHide(e)
66
+ }
67
+ }
68
+
69
+ const show = () => {
70
+ if (!isMounted.current) return
71
+
72
+ act(() => {
73
+ setVisibility(true)
74
+ if (!isVisible) {
75
+ afterShow()
76
+ }
77
+ })
78
+ }
79
+
80
+ const toggle = isVisible ? hide : show
81
+
82
+ return {
83
+ hide,
84
+ isVisible,
85
+ show,
86
+ toggle,
87
+ }
88
+ }
89
+
90
+ /* RENDER PROP */
91
+
92
+ /**
93
+ * @deprecatedSince 9
94
+ * @deprecated Never officially documented/supported
95
+ */
96
+ export function Visibility({ children, ...props }: RenderProps) {
97
+ const visibility = useVisibility(props)
98
+
99
+ return typeof children === 'function' ? children(visibility) : children
100
+ }
@@ -5,11 +5,11 @@ import { getEllipsis } from '../_styles/mixins';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledAnchorNavigation = /*#__PURE__*/styled.ul.withConfig({
7
7
  displayName: "StyledAnchorNavigation",
8
- componentId: "core-12_21_0-cdn_2__sc-aacdj4-0"
8
+ componentId: "core-12_21_0-cdn_3__sc-aacdj4-0"
9
9
  })(["max-width:200px;margin:0;padding-inline-start:0;"]);
10
10
  export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
11
11
  displayName: "StyledAnchorSection",
12
- componentId: "core-12_21_0-cdn_2__sc-aacdj4-1"
12
+ componentId: "core-12_21_0-cdn_3__sc-aacdj4-1"
13
13
  })(["display:flex;cursor:pointer;border-left:", "px solid ", ";background-color:", ";border-top-right-radius:4px;border-bottom-right-radius:4px;:hover{border-left:", "px solid ", ";background-color:", ";}"], spacing.xs, function (_ref) {
14
14
  var $selected = _ref.$selected;
15
15
  return $selected ? colors.gray15 : colors.gray90;
@@ -22,7 +22,7 @@ export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
22
22
  }, colors.gray90);
23
23
  export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
24
24
  displayName: "StyledAnchor",
25
- componentId: "core-12_21_0-cdn_2__sc-aacdj4-2"
25
+ componentId: "core-12_21_0-cdn_3__sc-aacdj4-2"
26
26
  })(["width:100%;padding:6px ", "px;", " ", ";", " :focus-visible{box-shadow:inset 0 0 0 2px ", ";outline:none;}"], spacing.sm, getTypographyIntent('body'), function (_ref4) {
27
27
  var $selected = _ref4.$selected;
28
28
  return $selected ? css(["font-weight:600;"]) : '';
@@ -1,8 +1,9 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["as", "clickable", "disabled", "href", "size", "children", "onBlur", "onFocus", "rel", "role", "target"],
3
- _excluded2 = ["icon"],
4
- _excluded3 = ["children"],
5
- _excluded4 = ["imageUrl"];
3
+ _excluded2 = ["onPress"],
4
+ _excluded3 = ["icon"],
5
+ _excluded4 = ["children"],
6
+ _excluded5 = ["imageUrl"];
6
7
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
7
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -29,7 +30,8 @@ function AvatarInner(_ref, ref) {
29
30
  target = _ref.target,
30
31
  props = _objectWithoutProperties(_ref, _excluded);
31
32
  var _ref2 = props,
32
- onPress = _ref2.onPress;
33
+ onPress = _ref2.onPress,
34
+ restProps = _objectWithoutProperties(_ref2, _excluded2);
33
35
  var _useButton = useButton(_objectSpread(_objectSpread({}, props), {}, {
34
36
  onBlur: onBlur,
35
37
  onFocus: onFocus,
@@ -57,7 +59,7 @@ function AvatarInner(_ref, ref) {
57
59
  $disabled: disabled,
58
60
  $size: size,
59
61
  "data-qa": "core-avatar"
60
- }, a11yProps, props), React.Children.only(children), /*#__PURE__*/React.createElement(StyledAvatarOverlay, {
62
+ }, a11yProps, restProps), React.Children.only(children), /*#__PURE__*/React.createElement(StyledAvatarOverlay, {
61
63
  "aria-hidden": true
62
64
  }));
63
65
  }
@@ -65,14 +67,14 @@ var Avatar_ = /*#__PURE__*/React.forwardRef(AvatarInner);
65
67
  var NextAvatar_ = /*#__PURE__*/React.forwardRef(AvatarInner);
66
68
  export var Icon = /*#__PURE__*/React.forwardRef(function Icon(_ref5, ref) {
67
69
  var icon = _ref5.icon,
68
- props = _objectWithoutProperties(_ref5, _excluded2);
70
+ props = _objectWithoutProperties(_ref5, _excluded3);
69
71
  return /*#__PURE__*/React.createElement(StyledIconContainer, _extends({
70
72
  ref: ref
71
73
  }, props), icon);
72
74
  });
73
75
  export var Label = /*#__PURE__*/React.forwardRef(function Label(_ref6, ref) {
74
76
  var children = _ref6.children,
75
- props = _objectWithoutProperties(_ref6, _excluded3);
77
+ props = _objectWithoutProperties(_ref6, _excluded4);
76
78
  // Breaking change: Option to make aria-hidden since parent requires a label.
77
79
  // Can add in major once labelling is enforced
78
80
  return /*#__PURE__*/React.createElement(StyledLabelContainer, _extends({
@@ -81,7 +83,7 @@ export var Label = /*#__PURE__*/React.forwardRef(function Label(_ref6, ref) {
81
83
  });
82
84
  export var Portrait = /*#__PURE__*/React.forwardRef(function Portrait(_ref7, ref) {
83
85
  var imageUrl = _ref7.imageUrl,
84
- props = _objectWithoutProperties(_ref7, _excluded4);
86
+ props = _objectWithoutProperties(_ref7, _excluded5);
85
87
  return /*#__PURE__*/React.createElement(StyledPortraitContainer, _extends({
86
88
  ref: ref,
87
89
  $imageUrl: imageUrl
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.js","names":["useButton","React","addSubcomponents","StyledAvatarContainer","StyledAvatarOverlay","StyledIconContainer","StyledLabelContainer","StyledPortraitContainer","AvatarInner","_ref","ref","as","clickable","disabled","href","size","children","onBlur","onFocus","rel","role","target","props","_objectWithoutProperties","_excluded","_ref2","onPress","_useButton","_objectSpread","elementType","isDisabled","type","buttonProps","linkDisabled","a11yProps","$clickable","_defineProperty","undefined","createElement","_extends","$disabled","$size","Children","only","Avatar_","forwardRef","NextAvatar_","Icon","_ref5","icon","_excluded2","Label","_ref6","_excluded3","Portrait","_ref7","imageUrl","_excluded4","$imageUrl","displayName","NextAvatar","Avatar"],"sources":["../../src/Avatar/Avatar.tsx"],"sourcesContent":["import { useButton } from '@react-aria/button'\nimport React from 'react'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { DivAttributes } from '../_utils/types'\nimport {\n StyledAvatarContainer,\n StyledAvatarOverlay,\n StyledIconContainer,\n StyledLabelContainer,\n StyledPortraitContainer,\n} from './Avatar.styles'\nimport type {\n AvatarIconProps,\n AvatarLabelProps,\n AvatarPortraitProps,\n AvatarProps,\n AvatarRef,\n AvatarRoles,\n AvatarRoleType,\n BaseAvatarProps,\n} from './Avatar.types'\n\nfunction AvatarInner(\n {\n as,\n clickable,\n disabled,\n // @ts-ignore link only\n href,\n size,\n children,\n onBlur,\n onFocus,\n // @ts-ignore link only\n rel,\n // @ts-ignore not on legacy\n role,\n // @ts-ignore link only\n target,\n ...props\n }: AvatarProps<AvatarRoleType>,\n ref: AvatarRef<AvatarRoleType>\n) {\n const { onPress } = props as AvatarProps<'button'>\n\n let { buttonProps } = useButton(\n {\n ...props,\n onBlur: onBlur as (e: React.FocusEvent) => void,\n onFocus: onFocus as (e: React.FocusEvent) => void,\n elementType: (as as any as string) === 'a' ? 'a' : 'div',\n href,\n isDisabled: disabled,\n onPress,\n rel,\n target,\n type: 'button',\n },\n ref as any // TODO fix\n )\n\n const linkDisabled = disabled || (role === 'link' && !href)\n\n const a11yProps =\n role === 'button'\n ? { ...buttonProps, as: as || 'div', $clickable: !disabled }\n : role === 'link'\n ? {\n ['aria-disabled']: linkDisabled ? true : undefined,\n as: as || 'a',\n $clickable: !linkDisabled,\n href: linkDisabled ? undefined : href,\n onBlur,\n onFocus,\n rel,\n role: 'link',\n target,\n }\n : role === 'img'\n ? {\n ['aria-disabled']: disabled ? true : undefined,\n role: 'img',\n onBlur,\n onFocus,\n }\n : { onBlur, onFocus }\n\n return (\n <StyledAvatarContainer\n ref={ref as any}\n $clickable={clickable}\n $disabled={disabled}\n $size={size}\n data-qa=\"core-avatar\"\n {...a11yProps}\n {...(props as any)} // TODO fix\n >\n {React.Children.only(children)}\n <StyledAvatarOverlay aria-hidden />\n </StyledAvatarContainer>\n )\n}\n\nconst Avatar_ = React.forwardRef(AvatarInner) as <Role extends AvatarRoles>(\n props:\n | AvatarProps<Role>\n // Legacy\n | (BaseAvatarProps & { ref?: React.ComponentPropsWithRef<'div'>['ref'] })\n) => ReturnType<typeof AvatarInner>\n\nconst NextAvatar_ = React.forwardRef(AvatarInner) as <Role extends AvatarRoles>(\n props: AvatarProps<Role>\n) => ReturnType<typeof AvatarInner>\n\nexport const Icon = React.forwardRef<\n HTMLDivElement,\n DivAttributes & AvatarIconProps\n>(function Icon({ icon, ...props }, ref) {\n return (\n <StyledIconContainer ref={ref} {...props}>\n {icon}\n </StyledIconContainer>\n )\n})\n\nexport const Label = React.forwardRef<\n HTMLDivElement,\n DivAttributes & AvatarLabelProps\n>(function Label({ children, ...props }, ref) {\n // Breaking change: Option to make aria-hidden since parent requires a label.\n // Can add in major once labelling is enforced\n return (\n <StyledLabelContainer ref={ref} {...props}>\n {children}\n </StyledLabelContainer>\n )\n})\n\nexport const Portrait = React.forwardRef<\n HTMLDivElement,\n DivAttributes & AvatarPortraitProps\n>(function Portrait({ imageUrl, ...props }, ref) {\n return (\n <StyledPortraitContainer ref={ref} $imageUrl={imageUrl} {...props}>\n <StyledAvatarOverlay />\n </StyledPortraitContainer>\n )\n})\n\n// @ts-ignore\nAvatar_.displayName = 'Avatar'\n\nIcon.displayName = 'Avatar.Icon'\n\nLabel.displayName = 'Avatar.Label'\n\nPortrait.displayName = 'Avatar.Portrait'\n\n// @ts-ignore\nNextAvatar_.displayName = 'Avatar'\n\n/**\n\n We use avatars to visually represent our users, places, and things in the app.\n These can be in the form of rich media or representative illustrations.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-avatar--demo)\n\n @see [Design Guidelines](https://design.procore.com/avatar)\n\n @a11y Avatar's need a `aria-label` and can be enhanced with `role` for interaction. If decorative only, add `aria-hidden`. The inaccessible `clickable` prop is for UI only\n\n */\nexport const NextAvatar = addSubcomponents(\n {\n Icon,\n Label,\n Portrait,\n },\n NextAvatar_\n)\n\n/**\n\n We use avatars to visually represent our users, places, and things in the app.\n These can be in the form of rich media or representative illustrations.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-avatar--demo)\n\n @see [Design Guidelines](https://design.procore.com/avatar)\n\n @a11y Avatar's need a `aria-label` and can be enhanced with `role` for interaction. If decorative only, add `aria-hidden`. The inaccessible `clickable` prop is for UI only\n\n */\nexport const Avatar = addSubcomponents(\n {\n Icon,\n Label,\n Portrait,\n },\n Avatar_\n)\n"],"mappings":";;;;;;;;;;;;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A,CAAClC,mBAAmB,MAAE,CACC,CAAC;AAE9B,CAAC,CAAC;;AAEF;AACAwC,OAAO,CAACe,WAAW,GAAG,QAAQ;AAE9BZ,IAAI,CAACY,WAAW,GAAG,aAAa;AAEhCR,KAAK,CAACQ,WAAW,GAAG,cAAc;AAElCL,QAAQ,CAACK,WAAW,GAAG,iBAAiB;;AAExC;AACAb,WAAW,CAACa,WAAW,GAAG,QAAQ;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,UAAU,GAAG1D,gBAAgB,CACxC;EACE6C,IAAI,EAAJA,IAAI;EACJI,KAAK,EAALA,KAAK;EACLG,QAAQ,EAARA;AACF,CAAC,EACDR,WACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMe,MAAM,GAAG3D,gBAAgB,CACpC;EACE6C,IAAI,EAAJA,IAAI;EACJI,KAAK,EAALA,KAAK;EACLG,QAAQ,EAARA;AACF,CAAC,EACDV,OACF,CAAC"}
1
+ {"version":3,"file":"Avatar.js","names":["useButton","React","addSubcomponents","StyledAvatarContainer","StyledAvatarOverlay","StyledIconContainer","StyledLabelContainer","StyledPortraitContainer","AvatarInner","_ref","ref","as","clickable","disabled","href","size","children","onBlur","onFocus","rel","role","target","props","_objectWithoutProperties","_excluded","_ref2","onPress","restProps","_excluded2","_useButton","_objectSpread","elementType","isDisabled","type","buttonProps","linkDisabled","a11yProps","$clickable","_defineProperty","undefined","createElement","_extends","$disabled","$size","Children","only","Avatar_","forwardRef","NextAvatar_","Icon","_ref5","icon","_excluded3","Label","_ref6","_excluded4","Portrait","_ref7","imageUrl","_excluded5","$imageUrl","displayName","NextAvatar","Avatar"],"sources":["../../src/Avatar/Avatar.tsx"],"sourcesContent":["import { useButton } from '@react-aria/button'\nimport React from 'react'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { DivAttributes } from '../_utils/types'\nimport {\n StyledAvatarContainer,\n StyledAvatarOverlay,\n StyledIconContainer,\n StyledLabelContainer,\n StyledPortraitContainer,\n} from './Avatar.styles'\nimport type {\n AvatarIconProps,\n AvatarLabelProps,\n AvatarPortraitProps,\n AvatarProps,\n AvatarRef,\n AvatarRoles,\n AvatarRoleType,\n BaseAvatarProps,\n} from './Avatar.types'\n\nfunction AvatarInner(\n {\n as,\n clickable,\n disabled,\n // @ts-ignore link only\n href,\n size,\n children,\n onBlur,\n onFocus,\n // @ts-ignore link only\n rel,\n // @ts-ignore not on legacy\n role,\n // @ts-ignore link only\n target,\n ...props\n }: AvatarProps<AvatarRoleType>,\n ref: AvatarRef<AvatarRoleType>\n) {\n const { onPress, ...restProps } = props as AvatarProps<'button'>\n\n let { buttonProps } = useButton(\n {\n ...props,\n onBlur: onBlur as (e: React.FocusEvent) => void,\n onFocus: onFocus as (e: React.FocusEvent) => void,\n elementType: (as as any as string) === 'a' ? 'a' : 'div',\n href,\n isDisabled: disabled,\n onPress,\n rel,\n target,\n type: 'button',\n },\n ref as any // TODO fix\n )\n\n const linkDisabled = disabled || (role === 'link' && !href)\n\n const a11yProps =\n role === 'button'\n ? { ...buttonProps, as: as || 'div', $clickable: !disabled }\n : role === 'link'\n ? {\n ['aria-disabled']: linkDisabled ? true : undefined,\n as: as || 'a',\n $clickable: !linkDisabled,\n href: linkDisabled ? undefined : href,\n onBlur,\n onFocus,\n rel,\n role: 'link',\n target,\n }\n : role === 'img'\n ? {\n ['aria-disabled']: disabled ? true : undefined,\n role: 'img',\n onBlur,\n onFocus,\n }\n : { onBlur, onFocus }\n\n return (\n <StyledAvatarContainer\n ref={ref as any}\n $clickable={clickable}\n $disabled={disabled}\n $size={size}\n data-qa=\"core-avatar\"\n {...a11yProps}\n {...(restProps as any)} // TODO fix\n >\n {React.Children.only(children)}\n <StyledAvatarOverlay aria-hidden />\n </StyledAvatarContainer>\n )\n}\n\nconst Avatar_ = React.forwardRef(AvatarInner) as <Role extends AvatarRoles>(\n props:\n | AvatarProps<Role>\n // Legacy\n | (BaseAvatarProps & { ref?: React.ComponentPropsWithRef<'div'>['ref'] })\n) => ReturnType<typeof AvatarInner>\n\nconst NextAvatar_ = React.forwardRef(AvatarInner) as <Role extends AvatarRoles>(\n props: AvatarProps<Role>\n) => ReturnType<typeof AvatarInner>\n\nexport const Icon = React.forwardRef<\n HTMLDivElement,\n DivAttributes & AvatarIconProps\n>(function Icon({ icon, ...props }, ref) {\n return (\n <StyledIconContainer ref={ref} {...props}>\n {icon}\n </StyledIconContainer>\n )\n})\n\nexport const Label = React.forwardRef<\n HTMLDivElement,\n DivAttributes & AvatarLabelProps\n>(function Label({ children, ...props }, ref) {\n // Breaking change: Option to make aria-hidden since parent requires a label.\n // Can add in major once labelling is enforced\n return (\n <StyledLabelContainer ref={ref} {...props}>\n {children}\n </StyledLabelContainer>\n )\n})\n\nexport const Portrait = React.forwardRef<\n HTMLDivElement,\n DivAttributes & AvatarPortraitProps\n>(function Portrait({ imageUrl, ...props }, ref) {\n return (\n <StyledPortraitContainer ref={ref} $imageUrl={imageUrl} {...props}>\n <StyledAvatarOverlay />\n </StyledPortraitContainer>\n )\n})\n\n// @ts-ignore\nAvatar_.displayName = 'Avatar'\n\nIcon.displayName = 'Avatar.Icon'\n\nLabel.displayName = 'Avatar.Label'\n\nPortrait.displayName = 'Avatar.Portrait'\n\n// @ts-ignore\nNextAvatar_.displayName = 'Avatar'\n\n/**\n\n We use avatars to visually represent our users, places, and things in the app.\n These can be in the form of rich media or representative illustrations.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-avatar--demo)\n\n @see [Design Guidelines](https://design.procore.com/avatar)\n\n @a11y Avatar's need a `aria-label` and can be enhanced with `role` for interaction. If decorative only, add `aria-hidden`. The inaccessible `clickable` prop is for UI only\n\n */\nexport const NextAvatar = addSubcomponents(\n {\n Icon,\n Label,\n Portrait,\n },\n NextAvatar_\n)\n\n/**\n\n We use avatars to visually represent our users, places, and things in the app.\n These can be in the form of rich media or representative illustrations.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-avatar--demo)\n\n @see [Design Guidelines](https://design.procore.com/avatar)\n\n @a11y Avatar's need a `aria-label` and can be enhanced with `role` for interaction. If decorative only, add `aria-hidden`. The inaccessible `clickable` prop is for UI only\n\n */\nexport const Avatar = addSubcomponents(\n {\n Icon,\n Label,\n Portrait,\n },\n Avatar_\n)\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAASA,SAAS,QAAQ,oBAAoB;AAC9C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SACEC,qBAAqB,EACrBC,mBAAmB,EACnBC,mBAAmB,EACnBC,oBAAoB,EACpBC,uBAAuB,QAClB,iBAAiB;AAYxB,SAASC,WAAWA,CAAAC,IAAA,EAmBlBC,GAA8B,EAC9B;EAAA,IAlBEC,EAAE,GAAAF,IAAA,CAAFE,EAAE;IACFC,SAAS,GAAAH,IAAA,CAATG,SAAS;IACTC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAERC,IAAI,GAAAL,IAAA,CAAJK,IAAI;IACJC,IAAI,GAAAN,IAAA,CAAJM,IAAI;IACJC,QAAQ,GAAAP,IAAA,CAARO,QAAQ;IACRC,MAAM,GAAAR,IAAA,CAANQ,MAAM;IACNC,OAAO,GAAAT,IAAA,CAAPS,OAAO;IAEPC,GAAG,GAAAV,IAAA,CAAHU,GAAG;IAEHC,IAAI,GAAAX,IAAA,CAAJW,IAAI;IAEJC,MAAM,GAAAZ,IAAA,CAANY,MAAM;IACHC,KAAK,GAAAC,wBAAA,CAAAd,IAAA,EAAAe,SAAA;EAIV,IAAAC,KAAA,GAAkCH,KAAK;IAA/BI,OAAO,GAAAD,KAAA,CAAPC,OAAO;IAAKC,SAAS,GAAAJ,wBAAA,CAAAE,KAAA,EAAAG,UAAA;EAE7B,IAAAC,UAA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AAC,CAAC;AAEF,OAAO,IAAMwC,QAAQ,gBAAGvD,KAAK,CAAC8C,UAAU,CAGtC,SAASS,QAAQA,CAAAC,KAAA,EAAyB/C,GAAG,EAAE;EAAA,IAA3BgD,QAAQ,GAAAD,KAAA,CAARC,QAAQ;IAAKpC,KAAK,GAAAC,wBAAA,CAAAkC,KAAA,EAAAE,UAAA;EACtC,oBACE1D,KAAA,CAAAuC,aAAA,CAACjC,uBAAuB,EAAAkC,QAAA;IAAC/B,GAAG,EAAEA,GAAI;IAACkD,SAAS,EAAEF;EAAS,GAAKpC,KAAK,gBAC/DrB,KAAA,CAAAuC,aAAA,CAACpC,mBAAmB,MAAE,CACC,CAAC;AAE9B,CAAC,CAAC;;AAEF;AACA0C,OAAO,CAACe,WAAW,GAAG,QAAQ;AAE9BZ,IAAI,CAACY,WAAW,GAAG,aAAa;AAEhCR,KAAK,CAACQ,WAAW,GAAG,cAAc;AAElCL,QAAQ,CAACK,WAAW,GAAG,iBAAiB;;AAExC;AACAb,WAAW,CAACa,WAAW,GAAG,QAAQ;;AAElC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,UAAU,GAAG5D,gBAAgB,CACxC;EACE+C,IAAI,EAAJA,IAAI;EACJI,KAAK,EAALA,KAAK;EACLG,QAAQ,EAARA;AACF,CAAC,EACDR,WACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMe,MAAM,GAAG7D,gBAAgB,CACpC;EACE+C,IAAI,EAAJA,IAAI;EACJI,KAAK,EAALA,KAAK;EACLG,QAAQ,EAARA;AACF,CAAC,EACDV,OACF,CAAC"}
@@ -28,26 +28,26 @@ var iconSize = {
28
28
  };
29
29
  export var StyledAvatarOverlay = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledAvatarOverlay",
31
- componentId: "core-12_21_0-cdn_2__sc-7q2ydl-0"
31
+ componentId: "core-12_21_0-cdn_3__sc-7q2ydl-0"
32
32
  })(["width:100%;height:100%;position:absolute;top:0;left:0;border-radius:100%;opacity:0;"]);
33
33
  export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledIconContainer",
35
- componentId: "core-12_21_0-cdn_2__sc-7q2ydl-1"
35
+ componentId: "core-12_21_0-cdn_3__sc-7q2ydl-1"
36
36
  })(["display:inline-flex;"]);
37
37
  export var StyledLabelContainer = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledLabelContainer",
39
- componentId: "core-12_21_0-cdn_2__sc-7q2ydl-2"
39
+ componentId: "core-12_21_0-cdn_3__sc-7q2ydl-2"
40
40
  })(["text-transform:uppercase;"]);
41
41
  export var StyledPortraitContainer = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledPortraitContainer",
43
- componentId: "core-12_21_0-cdn_2__sc-7q2ydl-3"
43
+ componentId: "core-12_21_0-cdn_3__sc-7q2ydl-3"
44
44
  })(["background-color:", ";background-position:center;background-repeat:no-repeat;background-size:cover;height:100%;width:100%;", ""], colors.white, function (_ref) {
45
45
  var $imageUrl = _ref.$imageUrl;
46
46
  return css(["background-image:url(", ");"], $imageUrl);
47
47
  });
48
48
  export var StyledAvatarContainer = /*#__PURE__*/styled.div.withConfig({
49
49
  displayName: "StyledAvatarContainer",
50
- componentId: "core-12_21_0-cdn_2__sc-7q2ydl-4"
50
+ componentId: "core-12_21_0-cdn_3__sc-7q2ydl-4"
51
51
  })(["display:inline-flex;justify-content:center;align-items:center;border-radius:100%;overflow:hidden;position:relative;cursor:default;color:", ";background-color:", ";text-decoration:none;a:has(> &){text-decoration:none;}&:focus{", "}a:focus:has(> &){", " border-radius:100%;}", " ", ";"], colors.white, colors.gray30, getGapOutlineFocus, getGapOutlineFocus, function (_ref2) {
52
52
  var _ref2$$size = _ref2.$size,
53
53
  $size = _ref2$$size === void 0 ? 'md' : _ref2$$size;
@@ -7,32 +7,32 @@ import { spacing } from '../_styles/spacing';
7
7
  var maxModalWidth = 528;
8
8
  var StyledBaseAvatar = /*#__PURE__*/styled(Avatar).withConfig({
9
9
  displayName: "StyledBaseAvatar",
10
- componentId: "core-12_21_0-cdn_2__sc-ft72hu-0"
10
+ componentId: "core-12_21_0-cdn_3__sc-ft72hu-0"
11
11
  })(["border-color:", ";border-style:solid;border-width:1px;&:hover{z-index:1;}&[role='img']:focus{outline:none;}"], colors.white);
12
12
  export var StyledAvatar = /*#__PURE__*/styled(StyledBaseAvatar).withConfig({
13
13
  displayName: "StyledAvatar",
14
- componentId: "core-12_21_0-cdn_2__sc-ft72hu-1"
14
+ componentId: "core-12_21_0-cdn_3__sc-ft72hu-1"
15
15
  })(["background-color:", ";"], function (props) {
16
16
  return colors[props.$color];
17
17
  });
18
18
  export var StyledContactItems = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledContactItems",
20
- componentId: "core-12_21_0-cdn_2__sc-ft72hu-2"
20
+ componentId: "core-12_21_0-cdn_3__sc-ft72hu-2"
21
21
  })(["padding-top:", "px;padding-bottom:", "px;padding-left:", "px;"], spacing.sm, spacing.sm, spacing.xs);
22
22
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledWrapper",
24
- componentId: "core-12_21_0-cdn_2__sc-ft72hu-3"
24
+ componentId: "core-12_21_0-cdn_3__sc-ft72hu-3"
25
25
  })(["display:flex;", " + ", "{margin-left:-", "px;}"], StyledAvatar, StyledAvatar, spacing.sm);
26
26
  export var StyledViewAllWrapper = /*#__PURE__*/styled.div.withConfig({
27
27
  displayName: "StyledViewAllWrapper",
28
- componentId: "core-12_21_0-cdn_2__sc-ft72hu-4"
28
+ componentId: "core-12_21_0-cdn_3__sc-ft72hu-4"
29
29
  })(["display:flex;margin-left:", "px;margin-bottom:", "px;"], spacing.md, spacing.lg);
30
30
  export var StyledModalBody = /*#__PURE__*/styled(Modal.Body).withConfig({
31
31
  displayName: "StyledModalBody",
32
- componentId: "core-12_21_0-cdn_2__sc-ft72hu-5"
32
+ componentId: "core-12_21_0-cdn_3__sc-ft72hu-5"
33
33
  })(["max-width:", "px;"], maxModalWidth);
34
34
  export var StyledContactItem = /*#__PURE__*/styled(ContactItem).withConfig({
35
35
  displayName: "StyledContactItem",
36
- componentId: "core-12_21_0-cdn_2__sc-ft72hu-6"
36
+ componentId: "core-12_21_0-cdn_3__sc-ft72hu-6"
37
37
  })(["flex-shrink:0;"]);
38
38
  //# sourceMappingURL=AvatarStack.styles.js.map
@@ -1,10 +1,10 @@
1
1
  import styled from 'styled-components';
2
2
  export var StyledBadge = /*#__PURE__*/styled.div.withConfig({
3
3
  displayName: "StyledBadge",
4
- componentId: "core-12_21_0-cdn_2__sc-rpertu-0"
4
+ componentId: "core-12_21_0-cdn_3__sc-rpertu-0"
5
5
  })(["display:inline-block;position:relative;"]);
6
6
  export var StyledBadgeLabel = /*#__PURE__*/styled.span.withConfig({
7
7
  displayName: "StyledBadgeLabel",
8
- componentId: "core-12_21_0-cdn_2__sc-rpertu-1"
8
+ componentId: "core-12_21_0-cdn_3__sc-rpertu-1"
9
9
  })(["bottom:100%;position:absolute;right:0;transform:translateX(50%) translateY(50%);"]);
10
10
  //# sourceMappingURL=Badge.styles.js.map
@@ -39,7 +39,7 @@ var expandContent = function expandContent(maxHeight) {
39
39
  };
40
40
  export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledBannerContainer",
42
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-0"
42
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-0"
43
43
  })(["align-items:center;border-left:", "px solid;border-radius:", "px;color:", ";display:flex;justify-content:space-between;min-height:52px;padding:0 ", "px;", " ", " ", ""], bannerLeft, borderRadius.md, colors.gray15, spacing.lg, bannerShadow, function (_ref) {
44
44
  var variant = _ref.variant;
45
45
  var _bannerVariantColors$ = bannerVariantColors[variant],
@@ -52,15 +52,15 @@ export var StyledBannerContainer = /*#__PURE__*/styled.div.withConfig({
52
52
  });
53
53
  export var StyledContent = /*#__PURE__*/styled.div.withConfig({
54
54
  displayName: "StyledContent",
55
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-1"
55
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-1"
56
56
  })(["align-self:center;margin:", "px ", "px ", "px 0;width:100%;"], spacing.sm, spacing.lg, spacing.sm);
57
57
  export var StyledExpandableContentContainer = /*#__PURE__*/styled(Flex).withConfig({
58
58
  displayName: "StyledExpandableContentContainer",
59
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-2"
59
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-2"
60
60
  })(["color:", ";min-height:52px;padding:0 ", "px;position:relative;z-index:1;", ""], colors.gray15, spacing.lg, bannerShadow);
61
61
  export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
62
62
  displayName: "StyledExpandableContent",
63
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-3"
63
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-3"
64
64
  })(["animation-duration:450ms;animation-fill-mode:forwards;animation-timing-function:ease-out;background-color:", ";box-sizing:border-box;font-size:14px;font-weight:500;letter-spacing:0.25px;line-height:20px;overflow-y:auto;padding:0 ", "px;position:relative;z-index:0;", " ", ""], colors.white, spacing.xl * 2 + spacing.sm, function (_ref3) {
65
65
  var $isOverflowingY = _ref3.$isOverflowingY;
66
66
  return $isOverflowingY && focusable;
@@ -70,23 +70,23 @@ export var StyledExpandableContent = /*#__PURE__*/styled(Flex).withConfig({
70
70
  });
71
71
  export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
72
72
  displayName: "StyledTitle",
73
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-4"
73
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-4"
74
74
  })(["", " color:", ";font-weight:", ";"], getTypographyIntent('body'), colors.gray15, typographyWeights.semibold);
75
75
  export var StyledBody = /*#__PURE__*/styled.div.withConfig({
76
76
  displayName: "StyledBody",
77
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-5"
77
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-5"
78
78
  })(["", " color:", ";"], getTypographyIntent('body'), colors.gray15);
79
79
  export var StyledIconContainer = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledIconContainer",
81
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-6"
81
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-6"
82
82
  })(["flex:0 0 auto;margin:", "px 0;"], spacing.lg);
83
83
  export var StyledActionsTrigger = /*#__PURE__*/styled(DropdownButton).withConfig({
84
84
  displayName: "StyledActionsTrigger",
85
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-7"
85
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-7"
86
86
  })(["flex-shrink:0;& + ", ",& + ", "{margin-left:-", "px;}"], StyledButton, StyledLinkButton, spacing.sm);
87
87
  export var StyledAction = /*#__PURE__*/styled.div.withConfig({
88
88
  displayName: "StyledAction",
89
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-8"
89
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-8"
90
90
  })(["margin:", "px 0 ", "px -", "px;& + ", ",& + ", ",& + ", "{margin-left:-", "px;}", ",", "{background:rgba(0,0,0,0.05);color:", ";&:hover{background:", ";color:", ";}}"], spacing.sm, spacing.sm, spacing.sm, StyledButton, StyledLinkButton, StyledActionsTrigger, spacing.sm, StyledButton, StyledLinkButton, colors.gray15, colors.gray85, colors.gray15);
91
91
  function getMiniBannerIconColor(_ref5) {
92
92
  var variant = _ref5.variant;
@@ -94,6 +94,6 @@ function getMiniBannerIconColor(_ref5) {
94
94
  }
95
95
  export var StyledMiniBannerContainer = /*#__PURE__*/styled.div.withConfig({
96
96
  displayName: "StyledMiniBannerContainer",
97
- componentId: "core-12_21_0-cdn_2__sc-149wm7c-9"
97
+ componentId: "core-12_21_0-cdn_3__sc-149wm7c-9"
98
98
  })(["align-items:center;background-color:", ";display:flex;justify-content:space-between;padding:0 ", "px;", " ", " & ", "{margin:", "px;}"], colors.gray96, spacing.md, getTypographyIntent('small'), getMiniBannerIconColor, StyledContent, spacing.sm);
99
99
  //# sourceMappingURL=Banner.styles.js.map
@@ -21,7 +21,7 @@ function sizeToPx(size) {
21
21
  }
22
22
  export var StyledBox = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledBox",
24
- componentId: "core-12_21_0-cdn_2__sc-fgsy0p-0"
24
+ componentId: "core-12_21_0-cdn_3__sc-fgsy0p-0"
25
25
  })(["", " ", ""], function (_ref) {
26
26
  var $as = _ref.$as;
27
27
  if ($as === 'ol' || $as === 'ul') {
@@ -4,19 +4,19 @@ import { colors } from '../_styles/colors';
4
4
  import { spacing } from '../_styles/spacing';
5
5
  export var StyledContainer = /*#__PURE__*/styled.nav.withConfig({
6
6
  displayName: "StyledContainer",
7
- componentId: "core-12_21_0-cdn_2__sc-1q6nqfz-0"
7
+ componentId: "core-12_21_0-cdn_3__sc-1q6nqfz-0"
8
8
  })(["color:", ";display:flex;align-items:center;a,a:hover{display:inline-flex;text-decoration:none;}"], colors.gray50);
9
9
  export var StyledList = /*#__PURE__*/styled.ol.withConfig({
10
10
  displayName: "StyledList",
11
- componentId: "core-12_21_0-cdn_2__sc-1q6nqfz-1"
11
+ componentId: "core-12_21_0-cdn_3__sc-1q6nqfz-1"
12
12
  })(["display:flex;margin:0;padding-left:0;"]);
13
13
  export var StyledSeparator = /*#__PURE__*/styled.div.withConfig({
14
14
  displayName: "StyledSeparator",
15
- componentId: "core-12_21_0-cdn_2__sc-1q6nqfz-2"
15
+ componentId: "core-12_21_0-cdn_3__sc-1q6nqfz-2"
16
16
  })(["align-items:center;display:inline-flex;justify-content:center;margin:0px ", "px;"], spacing.xs);
17
17
  export var StyledCrumb = /*#__PURE__*/styled.li.withConfig({
18
18
  displayName: "StyledCrumb",
19
- componentId: "core-12_21_0-cdn_2__sc-1q6nqfz-3"
19
+ componentId: "core-12_21_0-cdn_3__sc-1q6nqfz-3"
20
20
  })(["", " align-items:center;color:", ";display:inline-flex;min-height:24px;text-decoration:none;&:hover{cursor:", ";text-decoration:", ";}> a{color:", ";", "}", ""], getTypographyIntent('body'), colors.gray45, function (_ref) {
21
21
  var active = _ref.active;
22
22
  return active ? 'default' : 'pointer';
@@ -93,11 +93,11 @@ function getColors(loading, variant) {
93
93
  }
94
94
  export var StyledContent = /*#__PURE__*/styled.span.withConfig({
95
95
  displayName: "StyledContent",
96
- componentId: "core-12_21_0-cdn_2__sc-c5bhwh-0"
96
+ componentId: "core-12_21_0-cdn_3__sc-c5bhwh-0"
97
97
  })(["align-items:center;display:flex;overflow:hidden;"]);
98
98
  export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
99
99
  displayName: "StyledSpinner",
100
- componentId: "core-12_21_0-cdn_2__sc-c5bhwh-1"
100
+ componentId: "core-12_21_0-cdn_3__sc-c5bhwh-1"
101
101
  })(["box-sizing:border-box;display:none;position:absolute;transform:translateZ(0);@media ", "{left:50%;top:50%;", "}"], mediaIE11Hack, function (_ref) {
102
102
  var size = _ref.size;
103
103
  var margin = -1 * (spinnerDimensions[size !== null && size !== void 0 ? size : defaultSpinnerSize] / 2);
@@ -105,14 +105,14 @@ export var StyledSpinner = /*#__PURE__*/styled(Spinner).withConfig({
105
105
  });
106
106
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
107
107
  displayName: "StyledLabel",
108
- componentId: "core-12_21_0-cdn_2__sc-c5bhwh-2"
108
+ componentId: "core-12_21_0-cdn_3__sc-c5bhwh-2"
109
109
  })(["overflow:hidden;padding:0 6px;text-overflow:ellipsis;white-space:nowrap;& + span{padding-left:0;}"]);
110
110
  export function getButtonStyles(block, disabled, loading, size, variant) {
111
111
  return css(["", " ", " ", " ", " align-items:center;border-radius:", "px;border:0;box-sizing:border-box;cursor:pointer;display:inline-flex;flex-direction:row;flex-shrink:0;font-family:inherit;font-weight:", ";height:", "px;justify-content:center;margin:0;overflow:hidden;padding:0 ", "px;position:relative;pointer-events:", ";text-overflow:ellipsis;user-select:", ";vertical-align:middle;white-space:nowrap;width:", ";[data-icon-prop='true']{pointer-events:none;height:", "px;width:", "px;}", ""], getTypographyIntent(typographySizes[size]), focusable, variant === 'UNSAFE_helixNav' && css(["&.focus,&:focus{outline:none;box-shadow:0 0 0 2px ", ";}"], colors.blue70), getColors(loading, variant), borderRadius.md, typographyWeights.semibold, heights[size], paddingX[size], disabled || loading ? 'none' : 'inherit', disabled || loading ? 'none' : 'inherit', block && '100%', size === 'sm' ? 16 : 24, size === 'sm' ? 16 : 24, loading && css(["", "{pointer-events:none;visibility:hidden;}", "{display:block;}"], StyledContent, StyledSpinner));
112
112
  }
113
113
  export var StyledButton = /*#__PURE__*/styled.button.withConfig({
114
114
  displayName: "StyledButton",
115
- componentId: "core-12_21_0-cdn_2__sc-c5bhwh-3"
115
+ componentId: "core-12_21_0-cdn_3__sc-c5bhwh-3"
116
116
  })(["", ""], function (_ref2) {
117
117
  var $block = _ref2.$block,
118
118
  disabled = _ref2.disabled,
@@ -123,7 +123,7 @@ export var StyledButton = /*#__PURE__*/styled.button.withConfig({
123
123
  });
124
124
  export var StyledLinkButton = /*#__PURE__*/styled.a.withConfig({
125
125
  displayName: "StyledLinkButton",
126
- componentId: "core-12_21_0-cdn_2__sc-c5bhwh-4"
126
+ componentId: "core-12_21_0-cdn_3__sc-c5bhwh-4"
127
127
  })(["&,&:hover{text-decoration:none;}", ""], function (_ref3) {
128
128
  var $block = _ref3.$block,
129
129
  $disabled = _ref3.$disabled,
@@ -8,31 +8,31 @@ var cellSize = 36; // TODO one-off size
8
8
 
9
9
  export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
10
10
  displayName: "StyledContainer",
11
- componentId: "core-12_21_0-cdn_2__sc-1kkl86t-0"
11
+ componentId: "core-12_21_0-cdn_3__sc-1kkl86t-0"
12
12
  })(["", ";display:inline-flex;flex-direction:column;padding:", "px ", "px ", "px;"], getTypographyIntent('small'), spacing.lg, spacing.md, spacing.md);
13
13
  export var StyledPaginator = /*#__PURE__*/styled(Button).withConfig({
14
14
  displayName: "StyledPaginator",
15
- componentId: "core-12_21_0-cdn_2__sc-1kkl86t-1"
15
+ componentId: "core-12_21_0-cdn_3__sc-1kkl86t-1"
16
16
  })(["flex:0 0 auto;"]);
17
17
  export var StyledSelect = /*#__PURE__*/styled.div.withConfig({
18
18
  displayName: "StyledSelect",
19
- componentId: "core-12_21_0-cdn_2__sc-1kkl86t-2"
19
+ componentId: "core-12_21_0-cdn_3__sc-1kkl86t-2"
20
20
  })(["display:inline-flex;flex:1 1 0;margin-left:", "px;> div{font-size:12px;}"], spacing.sm);
21
21
  export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledNavigation",
23
- componentId: "core-12_21_0-cdn_2__sc-1kkl86t-3"
23
+ componentId: "core-12_21_0-cdn_3__sc-1kkl86t-3"
24
24
  })(["display:inline-flex;margin-bottom:", "px;", " + ", ",", " + ", "{margin-left:", "px;}"], spacing.sm, StyledPaginator, StyledSelect, StyledSelect, StyledPaginator, spacing.sm);
25
25
  export var StyledCell = /*#__PURE__*/styled.div.withConfig({
26
26
  displayName: "StyledCell",
27
- componentId: "core-12_21_0-cdn_2__sc-1kkl86t-4"
27
+ componentId: "core-12_21_0-cdn_3__sc-1kkl86t-4"
28
28
  })(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;"], cellSize, cellSize);
29
29
  export var StyledDayHeaderCell = /*#__PURE__*/styled(StyledCell).withConfig({
30
30
  displayName: "StyledDayHeaderCell",
31
- componentId: "core-12_21_0-cdn_2__sc-1kkl86t-5"
31
+ componentId: "core-12_21_0-cdn_3__sc-1kkl86t-5"
32
32
  })(["cursor:default;font-weight:", ";"], typographyWeights.semibold);
33
33
  export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
34
34
  displayName: "StyledDayCell",
35
- componentId: "core-12_21_0-cdn_2__sc-1kkl86t-6"
35
+ componentId: "core-12_21_0-cdn_3__sc-1kkl86t-6"
36
36
  })(["", ""], function (_ref) {
37
37
  var _ref$$disabled = _ref.$disabled,
38
38
  $disabled = _ref$$disabled === void 0 ? false : _ref$$disabled,
@@ -55,6 +55,6 @@ export var StyledDayCell = /*#__PURE__*/styled(StyledCell).withConfig({
55
55
  });
56
56
  export var StyledWeekRow = /*#__PURE__*/styled.div.withConfig({
57
57
  displayName: "StyledWeekRow",
58
- componentId: "core-12_21_0-cdn_2__sc-1kkl86t-7"
58
+ componentId: "core-12_21_0-cdn_3__sc-1kkl86t-7"
59
59
  })(["display:inline-flex;padding-bottom:2px;user-select:none;&:last-child{padding-bottom:0;}", "{&:first-child{border-top-left-radius:", "px;border-bottom-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;border-bottom-right-radius:", "px;}}"], StyledCell, borderRadius.md, borderRadius.md, borderRadius.md, borderRadius.md);
60
60
  //# sourceMappingURL=Calendar.styles.js.map
@@ -4,7 +4,7 @@ import { colors } from '../_styles/colors';
4
4
  import { getShadow } from '../_styles/shadows';
5
5
  export var StyledCardContainer = /*#__PURE__*/styled.div.withConfig({
6
6
  displayName: "StyledCardContainer",
7
- componentId: "core-12_21_0-cdn_2__sc-2fii7b-0"
7
+ componentId: "core-12_21_0-cdn_3__sc-2fii7b-0"
8
8
  })(["background-color:", ";border-radius:", "px;transition:box-shadow 0.2s ease-in-out;", " ", ""], colors.white, borderRadius.md, function (_ref) {
9
9
  var $level = _ref.$level,
10
10
  $shadowStrength = _ref.$shadowStrength;