@procore/core-react 12.50.0 → 12.50.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 (214) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
  3. package/dist/AnchorNavigation/AnchorNavigationProvider.js +11 -2
  4. package/dist/AnchorNavigation/AnchorNavigationProvider.js.map +1 -1
  5. package/dist/Avatar/Avatar.styles.js +5 -5
  6. package/dist/AvatarStack/AvatarStack.styles.js +8 -8
  7. package/dist/Badge/Badge.styles.js +2 -2
  8. package/dist/BadgePill/BadgePill.styles.js +4 -4
  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 +9 -9
  14. package/dist/Card/Card.styles.js +1 -1
  15. package/dist/Checkbox/Checkbox.styles.js +6 -6
  16. package/dist/ContactItem/ContactItem.styles.js +5 -5
  17. package/dist/Content/Content.styles.js +2 -2
  18. package/dist/DateInput/DateInput.styles.js +6 -6
  19. package/dist/DetailPage/DetailPage.styles.js +7 -7
  20. package/dist/Dropdown/Dropdown.js +2 -2
  21. package/dist/Dropdown/Dropdown.js.map +1 -1
  22. package/dist/Dropdown/Dropdown.styles.js +3 -3
  23. package/dist/Dropdown/Dropdown.types.d.ts +12 -2
  24. package/dist/Dropdown/Dropdown.types.js.map +1 -1
  25. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  26. package/dist/Dropzone/Dropzone.js +1 -1
  27. package/dist/Dropzone/Dropzone.styles.js +9 -9
  28. package/dist/EmptyState/EmptyState.styles.js +6 -6
  29. package/dist/Field/Field.styles.js +3 -3
  30. package/dist/FileList/FileList.styles.js +3 -3
  31. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  32. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  33. package/dist/FileSelect/FileSelect.styles.js +2 -2
  34. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  35. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  36. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  37. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  38. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  39. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  40. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  41. package/dist/FileToken/FileToken.styles.js +6 -6
  42. package/dist/FilterToken/FilterToken.styles.js +5 -5
  43. package/dist/FlexList/FlexList.styles.js +1 -1
  44. package/dist/Form/Form.styles.js +13 -13
  45. package/dist/Form/StyledFormikForm.styles.js +2 -2
  46. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +3 -3
  47. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js.map +1 -1
  48. package/dist/GhostPlaceholder/GhostPlaceholder.types.d.ts +10 -0
  49. package/dist/GhostPlaceholder/GhostPlaceholder.types.js.map +1 -1
  50. package/dist/Grid/Grid.styles.js +2 -2
  51. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  52. package/dist/Input/Input.styles.js +1 -1
  53. package/dist/Link/Link.styles.js +1 -1
  54. package/dist/ListPage/ListPage.styles.js +8 -8
  55. package/dist/Loader/Loader.styles.js +2 -2
  56. package/dist/MenuImperative/MenuImperative.styles.js +11 -11
  57. package/dist/Modal/Modal.styles.js +13 -13
  58. package/dist/MultiSelect/MultiSelect.styles.js +8 -8
  59. package/dist/NextMenu/NextMenu.styles.js +3 -3
  60. package/dist/NextTile/NextTile.styles.js +5 -5
  61. package/dist/Notation/Notation.js +1 -1
  62. package/dist/NumberInput/NumberInput.styles.js +7 -7
  63. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  64. package/dist/PageLayout/PageLayout.styles.js +17 -19
  65. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  66. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  67. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  68. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  69. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  70. package/dist/Pagination/Pagination.styles.js +5 -5
  71. package/dist/Panel/Panel.styles.js +11 -11
  72. package/dist/Pill/Pill.styles.js +3 -3
  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.styles.js +3 -3
  78. package/dist/Required/Required.styles.js +3 -3
  79. package/dist/Search/Search.styles.js +5 -5
  80. package/dist/Section/Section.styles.js +7 -7
  81. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  82. package/dist/Select/Select.styles.js +8 -8
  83. package/dist/Semantic/Semantic.styles.js +9 -9
  84. package/dist/Slider/Slider.styles.js +5 -5
  85. package/dist/Spinner/Spinner.styles.js +7 -7
  86. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  87. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  88. package/dist/SuperSelect/SuperSelect.styles.js +41 -41
  89. package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
  90. package/dist/Switch/Switch.styles.js +4 -4
  91. package/dist/Table/Table.styles.js +29 -29
  92. package/dist/TableShelf/TableShelf.styles.js +5 -5
  93. package/dist/Tabs/Tabs.styles.js +16 -16
  94. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  95. package/dist/TextArea/TextArea.styles.js +1 -1
  96. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  97. package/dist/Thumbnail/Thumbnail.styles.js +21 -21
  98. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  99. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  100. package/dist/Tile/Tile.styles.js +8 -8
  101. package/dist/Title/Title.styles.js +7 -7
  102. package/dist/Toast/Toast.styles.js +3 -3
  103. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  104. package/dist/Token/Token.styles.js +5 -5
  105. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  106. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  107. package/dist/Tooltip/Tooltip.styles.js +3 -3
  108. package/dist/Tree/Tree.js +1 -1
  109. package/dist/Tree/Tree.styles.js +10 -10
  110. package/dist/Typeahead/Typeahead.styles.js +4 -4
  111. package/dist/Typography/Typography.styles.js +1 -1
  112. package/dist/Typography/Typography.table.story.js +2 -2
  113. package/dist/_hooks/I18n.d.ts +92 -1
  114. package/dist/_locales/de-DE.json +8 -4
  115. package/dist/_locales/en-AU.json +7 -3
  116. package/dist/_locales/en-CA.json +7 -3
  117. package/dist/_locales/en-GB.json +7 -3
  118. package/dist/_locales/es-ES.json +7 -3
  119. package/dist/_locales/es.json +7 -3
  120. package/dist/_locales/fr-CA.json +10 -6
  121. package/dist/_locales/fr-FR.json +8 -4
  122. package/dist/_locales/is-IS.json +7 -3
  123. package/dist/_locales/it-IT.json +7 -3
  124. package/dist/_locales/ja-JP.json +7 -3
  125. package/dist/_locales/nb-NO.json +79 -75
  126. package/dist/_locales/pl-PL.json +7 -3
  127. package/dist/_locales/pt-BR.json +7 -3
  128. package/dist/_locales/pt-PT.json +13 -9
  129. package/dist/_locales/th-TH.json +7 -3
  130. package/dist/_locales/zh-SG.json +7 -3
  131. package/dist/_locales/zh-TW.json +13 -9
  132. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  133. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  134. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +4 -4
  135. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  136. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
  137. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  138. package/dist/_typedoc/Banner/Banner.types.json +15 -15
  139. package/dist/_typedoc/Box/Box.types.json +68 -68
  140. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  141. package/dist/_typedoc/Button/Button.types.json +14 -14
  142. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  143. package/dist/_typedoc/Card/Card.types.json +6 -6
  144. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  145. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  146. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  147. package/dist/_typedoc/DateSelect/DateSelect.types.json +14 -14
  148. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  149. package/dist/_typedoc/Dropdown/Dropdown.types.json +41 -40
  150. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
  151. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  152. package/dist/_typedoc/EmptyState/EmptyState.types.json +18 -18
  153. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  154. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  155. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  156. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  157. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  158. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  159. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  160. package/dist/_typedoc/Form/Form.types.json +770 -770
  161. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +14 -13
  162. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  163. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
  164. package/dist/_typedoc/Input/Input.types.json +2 -2
  165. package/dist/_typedoc/Link/Link.types.json +1 -1
  166. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  167. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  168. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +84 -84
  169. package/dist/_typedoc/Modal/Modal.types.json +48 -48
  170. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +33 -33
  171. package/dist/_typedoc/NextTile/NextTile.types.json +33 -33
  172. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  173. package/dist/_typedoc/NumberInput/NumberInput.types.json +52 -52
  174. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +33 -33
  175. package/dist/_typedoc/PageLayout/PageLayout.types.json +39 -39
  176. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  177. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  178. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  179. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  180. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  181. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  182. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  183. package/dist/_typedoc/Required/Required.types.json +5 -5
  184. package/dist/_typedoc/Search/Search.types.json +18 -18
  185. package/dist/_typedoc/Section/Section.types.json +15 -15
  186. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  187. package/dist/_typedoc/Select/Select.types.json +67 -67
  188. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  189. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  190. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  191. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  192. package/dist/_typedoc/Table/Table.types.json +105 -105
  193. package/dist/_typedoc/Tabs/Tabs.types.json +23 -23
  194. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  195. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  196. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  197. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  198. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  199. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  200. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  201. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  202. package/dist/_typedoc/Title/Title.types.json +1 -1
  203. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  204. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  205. package/dist/_typedoc/Token/Token.types.json +7 -7
  206. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  207. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  208. package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
  209. package/dist/_typedoc/Tree/Tree.types.json +88 -88
  210. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  211. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  212. package/dist/_typedoc/_utils/types.json +3 -3
  213. package/dist/_typedoc/a11y-tips.json +1 -1
  214. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 12.50.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f0bb16b: Fix disabled state color and background color for StyledMultiInput when being used in erb routes.
8
+ - 195f0ba: - Update `Dropdown` accessibility semantics so searchable dropdowns has `aria-haspopup="dialog"`.
9
+ - 0b792e4: Fix `AnchorNavigation` scrolling alignment in page layouts with sticky/global headers
10
+
3
11
  ## 12.50.0
4
12
 
5
13
  ### Minor Changes
@@ -5,15 +5,15 @@ import { getEllipsis } from '../_styles/mixins';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledAnchorNavigationLandmark = /*#__PURE__*/styled.nav.withConfig({
7
7
  displayName: "StyledAnchorNavigationLandmark",
8
- componentId: "core-12_50_0__sc-aacdj4-0"
8
+ componentId: "core-12_50_1__sc-aacdj4-0"
9
9
  })([""]);
10
10
  export var StyledAnchorNavigation = /*#__PURE__*/styled.ul.withConfig({
11
11
  displayName: "StyledAnchorNavigation",
12
- componentId: "core-12_50_0__sc-aacdj4-1"
12
+ componentId: "core-12_50_1__sc-aacdj4-1"
13
13
  })(["max-width:200px;margin:0;padding-inline-start:0;"]);
14
14
  export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
15
15
  displayName: "StyledAnchorSection",
16
- componentId: "core-12_50_0__sc-aacdj4-2"
16
+ componentId: "core-12_50_1__sc-aacdj4-2"
17
17
  })(["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) {
18
18
  var $selected = _ref.$selected;
19
19
  return $selected ? colors.gray15 : colors.gray90;
@@ -26,7 +26,7 @@ export var StyledAnchorSection = /*#__PURE__*/styled.li.withConfig({
26
26
  }, colors.gray90);
27
27
  export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
28
28
  displayName: "StyledAnchor",
29
- componentId: "core-12_50_0__sc-aacdj4-3"
29
+ componentId: "core-12_50_1__sc-aacdj4-3"
30
30
  })(["box-sizing:border-box;display:block;flex:1;min-width:0;width:100%;padding:6px ", "px;color:inherit;text-decoration:none;&:visited{color:inherit;}", " ", ";", " :focus-visible{box-shadow:inset 0 0 0 2px ", ";outline:none;}"], spacing.sm, getTypographyIntent('body'), function (_ref4) {
31
31
  var $selected = _ref4.$selected;
32
32
  return $selected ? css(["font-weight:600;"]) : '';
@@ -40,6 +40,14 @@ function getElementScrollPosition(element, scroller) {
40
40
  } while (el && el !== scroller);
41
41
  return y;
42
42
  }
43
+ function getEffectiveOffset(offset) {
44
+ var remoteHeader = document.getElementById('remote-header-container');
45
+ if (!remoteHeader) {
46
+ return offset;
47
+ }
48
+ var headerBottom = remoteHeader.getBoundingClientRect().bottom;
49
+ return offset + Math.max(headerBottom, 0);
50
+ }
43
51
  export function AnchorNavigationProvider(_ref) {
44
52
  var children = _ref.children,
45
53
  _ref$offset = _ref.offset,
@@ -58,6 +66,7 @@ export function AnchorNavigationProvider(_ref) {
58
66
  var _ref$current = ref.current,
59
67
  sections = _ref$current.sections,
60
68
  scroller = _ref$current.scroller;
69
+ var effectiveOffset = getEffectiveOffset(offset);
61
70
  setSelected(id);
62
71
  var element = (_sections$find = sections.find(function (section) {
63
72
  return section.id === id;
@@ -65,7 +74,7 @@ export function AnchorNavigationProvider(_ref) {
65
74
  if (element) {
66
75
  ;
67
76
  (scroller || window).scrollTo({
68
- top: getElementScrollPosition(element, scroller) - offset,
77
+ top: getElementScrollPosition(element, scroller) - effectiveOffset,
69
78
  behavior: 'smooth'
70
79
  });
71
80
 
@@ -98,7 +107,7 @@ export function AnchorNavigationProvider(_ref) {
98
107
  ref.current.blockScrollTimestamp = now;
99
108
  return;
100
109
  }
101
- var y = (scroller ? scroller.scrollTop : window.scrollY || document.documentElement.scrollTop) + offset;
110
+ var y = (scroller ? scroller.scrollTop : window.scrollY || document.documentElement.scrollTop) + getEffectiveOffset(offset);
102
111
 
103
112
  // Before the first element
104
113
  if (getElementScrollPosition(sections[0].element, scroller) > y) {
@@ -1 +1 @@
1
- {"version":3,"file":"AnchorNavigationProvider.js","names":["throttle","React","AnchorNavigationContext","createContext","offset","sections","selected","registerSection","unregisterSection","onSelect","useAnchorNavigationContext","useContext","findScrollContainer","element","parent","parentElement","_window$getComputedSt","window","getComputedStyle","overflow","split","every","o","document","documentElement","getElementScrollPosition","scroller","y","el","offsetTop","offsetParent","AnchorNavigationProvider","_ref","children","_ref$offset","_React$useState","useState","_React$useState2","_slicedToArray","setSelected","ref","useRef","blockScrollTimestamp","changeSelected","id","_sections$find","_ref$current","current","find","section","scrollTo","top","behavior","Date","getTime","heading","querySelector","HTMLElement","hasAttribute","setAttribute","focus","preventScroll","useEffect","onScroll","event","_ref$current2","now","length","scrollTop","scrollY","_sections$","selectedIndex","findIndex","item","selectedElement","Math","max","throttleScrollEvent","addEventListener","capture","passive","removeEventListener","cancel","label","_ref$current3","index","push","splice","createElement","Provider","value"],"sources":["../../src/AnchorNavigation/AnchorNavigationProvider.tsx"],"sourcesContent":["import throttle from 'lodash.throttle'\nimport React from 'react'\nimport type { AnchorNavigationElementSection } from './AnchorNavigation.types'\n\nexport const AnchorNavigationContext = React.createContext<{\n offset: number\n sections: AnchorNavigationElementSection[]\n selected: string\n registerSection: (id: string, label: string, element: HTMLElement) => void\n unregisterSection: (id: string) => void\n onSelect: (id: string, withScroll?: boolean) => void\n}>({\n offset: 0,\n sections: [],\n selected: '',\n registerSection: () => {},\n unregisterSection: () => {},\n onSelect: () => {},\n})\n\nexport const useAnchorNavigationContext = () =>\n React.useContext(AnchorNavigationContext)\n\ninterface AnchorNavigationProviderProps {\n offset?: number\n}\n\nfunction findScrollContainer(element: HTMLElement): HTMLElement {\n let parent = element.parentElement\n while (parent) {\n const { overflow } = window.getComputedStyle(parent)\n if (overflow.split(' ').every((o) => o === 'auto' || o === 'scroll')) {\n return parent\n }\n parent = parent.parentElement\n }\n\n return document.documentElement\n}\n\nfunction getElementScrollPosition(\n element: HTMLElement,\n scroller: HTMLElement | null\n): number {\n let y = 0\n let el: HTMLElement | null = element\n\n do {\n y += el.offsetTop\n el = el.offsetParent as HTMLElement | null\n } while (el && el !== scroller)\n\n return y\n}\n\nexport function AnchorNavigationProvider({\n children,\n offset = 0,\n}: React.PropsWithChildren<AnchorNavigationProviderProps>) {\n const [selected, setSelected] = React.useState('')\n const ref = React.useRef<{\n sections: AnchorNavigationElementSection[]\n blockScrollTimestamp: number\n scroller: HTMLElement | null\n }>({\n sections: [],\n blockScrollTimestamp: 0,\n scroller: null,\n })\n\n const changeSelected = (id: string) => {\n const { sections, scroller } = ref.current\n setSelected(id)\n\n const element = sections.find((section) => section.id === id)?.element\n\n if (element) {\n ;(scroller || window).scrollTo({\n top: getElementScrollPosition(element, scroller) - offset,\n behavior: 'smooth',\n })\n\n // Disable scroll listener to avoid changing active element\n ref.current.blockScrollTimestamp = new Date().getTime()\n\n // Move focus to the section heading for keyboard and screen reader users\n const heading = element.querySelector('h1, h2, h3, h4, h5, h6')\n if (heading instanceof HTMLElement) {\n if (!heading.hasAttribute('tabindex')) {\n heading.setAttribute('tabindex', '-1')\n }\n heading.focus({ preventScroll: true })\n }\n }\n }\n\n React.useEffect(() => {\n const onScroll = (event?: Event) => {\n const { blockScrollTimestamp, sections, scroller } = ref.current\n const now = new Date().getTime()\n\n if (!sections.length) return\n\n // Disable scroll event when auto scrolling by clicking on the anchor\n if (now - blockScrollTimestamp < 200) {\n ref.current.blockScrollTimestamp = now\n return\n }\n\n const y =\n (scroller\n ? scroller.scrollTop\n : window.scrollY || document.documentElement.scrollTop) + offset\n\n // Before the first element\n if (getElementScrollPosition(sections[0].element, scroller) > y) {\n if (event) {\n setSelected(sections[0]?.id)\n }\n return\n }\n\n // Get first element overflowing top, get the previous one\n const selectedIndex = sections.findIndex(\n (item) => getElementScrollPosition(item.element, scroller) > y\n )\n\n const selectedElement =\n selectedIndex === -1\n ? sections[sections.length - 1]\n : sections[Math.max(selectedIndex - 1, 0)]\n\n if (selectedElement) {\n setSelected(selectedElement.id)\n }\n }\n\n const throttleScrollEvent = throttle(onScroll, 100)\n addEventListener('scroll', throttleScrollEvent, {\n capture: false,\n passive: true,\n })\n onScroll()\n\n return () => {\n removeEventListener('scroll', throttleScrollEvent, { capture: false })\n throttleScrollEvent.cancel()\n }\n }, []) // eslint-disable-line react-hooks/exhaustive-deps\n\n const registerSection = (id: string, label: string, element: HTMLElement) => {\n if (!ref.current.scroller) {\n ref.current.scroller = findScrollContainer(element)\n }\n\n const { sections, scroller } = ref.current\n\n if (sections.find((section) => section.id === id)) {\n return\n }\n\n const y = getElementScrollPosition(element, scroller)\n const index = sections.findIndex(\n (section) => getElementScrollPosition(section.element, scroller) > y\n )\n\n if (index === -1) {\n sections.push({ id, label, element })\n } else {\n sections.splice(index, 0, { id, label, element })\n }\n\n if (sections.length === 1) {\n setSelected(id)\n }\n }\n\n const unregisterSection = (id: string) => {\n const { sections } = ref.current\n const index = sections.findIndex((section) => section.id === id)\n if (index !== -1) {\n sections.splice(index, 1)\n }\n }\n\n return (\n <AnchorNavigationContext.Provider\n value={{\n offset,\n selected,\n sections: ref.current.sections,\n onSelect: changeSelected,\n registerSection,\n unregisterSection,\n }}\n >\n {children}\n </AnchorNavigationContext.Provider>\n )\n}\n"],"mappings":";;;;;;AAAA,OAAOA,QAAQ,MAAM,iBAAiB;AACtC,OAAOC,KAAK,MAAM,OAAO;AAGzB,OAAO,IAAMC,uBAAuB,gBAAGD,KAAK,CAACE,aAAa,CAOvD;EACDC,MAAM,EAAE,CAAC;EACTC,QAAQ,EAAE,EAAE;EACZC,QAAQ,EAAE,EAAE;EACZC,eAAe,EAAE,SAAjBA,eAAeA,CAAA,EAAQ,CAAC,CAAC;EACzBC,iBAAiB,EAAE,SAAnBA,iBAAiBA,CAAA,EAAQ,CAAC,CAAC;EAC3BC,QAAQ,EAAE,SAAVA,QAAQA,CAAA,EAAQ,CAAC;AACnB,CAAC,CAAC;AAEF,OAAO,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAA;EAAA,OACrCT,KAAK,CAACU,UAAU,CAACT,uBAAuB,CAAC;AAAA;AAM3C,SAASU,mBAAmBA,CAACC,OAAoB,EAAe;EAC9D,IAAIC,MAAM,GAAGD,OAAO,CAACE,aAAa;EAClC,OAAOD,MAAM,EAAE;IACb,IAAAE,qBAAA,GAAqBC,MAAM,CAACC,gBAAgB,CAACJ,MAAM,CAAC;MAA5CK,QAAQ,GAAAH,qBAAA,CAARG,QAAQ;IAChB,IAAIA,QAAQ,CAACC,KAAK,CAAC,GAAG,CAAC,CAACC,KAAK,CAAC,UAACC,CAAC;MAAA,OAAKA,CAAC,KAAK,MAAM,IAAIA,CAAC,KAAK,QAAQ;IA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,IAAIR,QAAQ,CAAC8D,MAAM,KAAK,CAAC,EAAE;MACzB5B,WAAW,CAACK,EAAE,CAAC;IACjB;EACF,CAAC;EAED,IAAMpC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIoC,EAAU,EAAK;IACxC,IAAQvC,QAAQ,GAAKmC,GAAG,CAACO,OAAO,CAAxB1C,QAAQ;IAChB,IAAMgF,KAAK,GAAGhF,QAAQ,CAACmE,SAAS,CAAC,UAACvB,OAAO;MAAA,OAAKA,OAAO,CAACL,EAAE,KAAKA,EAAE;IAAA,EAAC;IAChE,IAAIyC,KAAK,KAAK,CAAC,CAAC,EAAE;MAChBhF,QAAQ,CAACkF,MAAM,CAACF,KAAK,EAAE,CAAC,CAAC;IAC3B;EACF,CAAC;EAED,oBACEpF,KAAA,CAAAuF,aAAA,CAACtF,uBAAuB,CAACuF,QAAQ;IAC/BC,KAAK,EAAE;MACLtF,MAAM,EAANA,MAAM;MACNE,QAAQ,EAARA,QAAQ;MACRD,QAAQ,EAAEmC,GAAG,CAACO,OAAO,CAAC1C,QAAQ;MAC9BI,QAAQ,EAAEkC,cAAc;MACxBpC,eAAe,EAAfA,eAAe;MACfC,iBAAiB,EAAjBA;IACF;EAAE,GAEDyB,QAC+B,CAAC;AAEvC"}
1
+ {"version":3,"file":"AnchorNavigationProvider.js","names":["throttle","React","AnchorNavigationContext","createContext","offset","sections","selected","registerSection","unregisterSection","onSelect","useAnchorNavigationContext","useContext","findScrollContainer","element","parent","parentElement","_window$getComputedSt","window","getComputedStyle","overflow","split","every","o","document","documentElement","getElementScrollPosition","scroller","y","el","offsetTop","offsetParent","getEffectiveOffset","remoteHeader","getElementById","headerBottom","getBoundingClientRect","bottom","Math","max","AnchorNavigationProvider","_ref","children","_ref$offset","_React$useState","useState","_React$useState2","_slicedToArray","setSelected","ref","useRef","blockScrollTimestamp","changeSelected","id","_sections$find","_ref$current","current","effectiveOffset","find","section","scrollTo","top","behavior","Date","getTime","heading","querySelector","HTMLElement","hasAttribute","setAttribute","focus","preventScroll","useEffect","onScroll","event","_ref$current2","now","length","scrollTop","scrollY","_sections$","selectedIndex","findIndex","item","selectedElement","throttleScrollEvent","addEventListener","capture","passive","removeEventListener","cancel","label","_ref$current3","index","push","splice","createElement","Provider","value"],"sources":["../../src/AnchorNavigation/AnchorNavigationProvider.tsx"],"sourcesContent":["import throttle from 'lodash.throttle'\nimport React from 'react'\nimport type { AnchorNavigationElementSection } from './AnchorNavigation.types'\n\nexport const AnchorNavigationContext = React.createContext<{\n offset: number\n sections: AnchorNavigationElementSection[]\n selected: string\n registerSection: (id: string, label: string, element: HTMLElement) => void\n unregisterSection: (id: string) => void\n onSelect: (id: string, withScroll?: boolean) => void\n}>({\n offset: 0,\n sections: [],\n selected: '',\n registerSection: () => {},\n unregisterSection: () => {},\n onSelect: () => {},\n})\n\nexport const useAnchorNavigationContext = () =>\n React.useContext(AnchorNavigationContext)\n\ninterface AnchorNavigationProviderProps {\n offset?: number\n}\n\nfunction findScrollContainer(element: HTMLElement): HTMLElement {\n let parent = element.parentElement\n while (parent) {\n const { overflow } = window.getComputedStyle(parent)\n if (overflow.split(' ').every((o) => o === 'auto' || o === 'scroll')) {\n return parent\n }\n parent = parent.parentElement\n }\n\n return document.documentElement\n}\n\nfunction getElementScrollPosition(\n element: HTMLElement,\n scroller: HTMLElement | null\n): number {\n let y = 0\n let el: HTMLElement | null = element\n\n do {\n y += el.offsetTop\n el = el.offsetParent as HTMLElement | null\n } while (el && el !== scroller)\n\n return y\n}\n\nfunction getEffectiveOffset(offset: number): number {\n const remoteHeader = document.getElementById('remote-header-container')\n\n if (!remoteHeader) {\n return offset\n }\n\n const headerBottom = remoteHeader.getBoundingClientRect().bottom\n\n return offset + Math.max(headerBottom, 0)\n}\n\nexport function AnchorNavigationProvider({\n children,\n offset = 0,\n}: React.PropsWithChildren<AnchorNavigationProviderProps>) {\n const [selected, setSelected] = React.useState('')\n const ref = React.useRef<{\n sections: AnchorNavigationElementSection[]\n blockScrollTimestamp: number\n scroller: HTMLElement | null\n }>({\n sections: [],\n blockScrollTimestamp: 0,\n scroller: null,\n })\n\n const changeSelected = (id: string) => {\n const { sections, scroller } = ref.current\n const effectiveOffset = getEffectiveOffset(offset)\n setSelected(id)\n\n const element = sections.find((section) => section.id === id)?.element\n\n if (element) {\n ;(scroller || window).scrollTo({\n top: getElementScrollPosition(element, scroller) - effectiveOffset,\n behavior: 'smooth',\n })\n\n // Disable scroll listener to avoid changing active element\n ref.current.blockScrollTimestamp = new Date().getTime()\n\n // Move focus to the section heading for keyboard and screen reader users\n const heading = element.querySelector('h1, h2, h3, h4, h5, h6')\n if (heading instanceof HTMLElement) {\n if (!heading.hasAttribute('tabindex')) {\n heading.setAttribute('tabindex', '-1')\n }\n heading.focus({ preventScroll: true })\n }\n }\n }\n\n React.useEffect(() => {\n const onScroll = (event?: Event) => {\n const { blockScrollTimestamp, sections, scroller } = ref.current\n const now = new Date().getTime()\n\n if (!sections.length) return\n\n // Disable scroll event when auto scrolling by clicking on the anchor\n if (now - blockScrollTimestamp < 200) {\n ref.current.blockScrollTimestamp = now\n return\n }\n\n const y =\n (scroller\n ? scroller.scrollTop\n : window.scrollY || document.documentElement.scrollTop) +\n getEffectiveOffset(offset)\n\n // Before the first element\n if (getElementScrollPosition(sections[0].element, scroller) > y) {\n if (event) {\n setSelected(sections[0]?.id)\n }\n return\n }\n\n // Get first element overflowing top, get the previous one\n const selectedIndex = sections.findIndex(\n (item) => getElementScrollPosition(item.element, scroller) > y\n )\n\n const selectedElement =\n selectedIndex === -1\n ? sections[sections.length - 1]\n : sections[Math.max(selectedIndex - 1, 0)]\n\n if (selectedElement) {\n setSelected(selectedElement.id)\n }\n }\n\n const throttleScrollEvent = throttle(onScroll, 100)\n addEventListener('scroll', throttleScrollEvent, {\n capture: false,\n passive: true,\n })\n onScroll()\n\n return () => {\n removeEventListener('scroll', throttleScrollEvent, { capture: false })\n throttleScrollEvent.cancel()\n }\n }, []) // eslint-disable-line react-hooks/exhaustive-deps\n\n const registerSection = (id: string, label: string, element: HTMLElement) => {\n if (!ref.current.scroller) {\n ref.current.scroller = findScrollContainer(element)\n }\n const { sections, scroller } = ref.current\n\n if (sections.find((section) => section.id === id)) {\n return\n }\n\n const y = getElementScrollPosition(element, scroller)\n const index = sections.findIndex(\n (section) => getElementScrollPosition(section.element, scroller) > y\n )\n\n if (index === -1) {\n sections.push({ id, label, element })\n } else {\n sections.splice(index, 0, { id, label, element })\n }\n\n if (sections.length === 1) {\n setSelected(id)\n }\n }\n\n const unregisterSection = (id: string) => {\n const { sections } = ref.current\n const index = sections.findIndex((section) => section.id === id)\n if (index !== -1) {\n sections.splice(index, 1)\n }\n }\n\n return (\n <AnchorNavigationContext.Provider\n value={{\n offset,\n selected,\n sections: ref.current.sections,\n onSelect: changeSelected,\n registerSection,\n unregisterSection,\n }}\n >\n {children}\n </AnchorNavigationContext.Provider>\n )\n}\n"],"mappings":";;;;;;AAAA,OAAOA,QAAQ,MAAM,iBAAiB;AACtC,OAAOC,KAAK,MAAM,OAAO;AAGzB,OAAO,IAAMC,uBAAuB,gBAAGD,KAAK,CAACE,aAAa,CAOvD;EACDC,MAAM,EAAE,CAAC;EACTC,QAAQ,EAAE,EAAE;EACZC,QAAQ,EAAE,EAAE;EACZC,eAAe,EAAE,SAAjBA,eAAeA,CAAA,EAAQ,CAAC,CAAC;EACzBC,iBAAiB,EAAE,SAAnBA,iBAAiBA,CAAA,EAAQ,CAAC,CAAC;EAC3BC,QAAQ,EAAE,SAAVA,QAAQA,CAAA,EAAQ,CAAC;AACnB,CAAC,CAAC;AAEF,OAAO,IAAMC,0BAA0B,GAAG,SAA7BA,0BAA0BA,CAAA;EAAA,OACrCT,KAAK,CAACU,UAAU,CAACT,uBAAuB,CAAC;AAAA;AAM3C,SAASU,mBAAmBA,CAACC,OAAoB,EAAe;EAC9D,IAAIC,MAAM,GAAGD,OAAO,CAACE,aAAa;EAClC,OAAOD,MAAM,EAAE;IACb,IAAAE,qBAAA,GAAqBC,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AQ;MACRD,QAAQ,EAAE2C,GAAG,CAACO,OAAO,CAAClD,QAAQ;MAC9BI,QAAQ,EAAE0C,cAAc;MACxB5C,eAAe,EAAfA,eAAe;MACfC,iBAAiB,EAAjBA;IACF;EAAE,GAEDiC,QAC+B,CAAC;AAEvC"}
@@ -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_50_0__sc-7q2ydl-0"
31
+ componentId: "core-12_50_1__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_50_0__sc-7q2ydl-1"
35
+ componentId: "core-12_50_1__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_50_0__sc-7q2ydl-2"
39
+ componentId: "core-12_50_1__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_50_0__sc-7q2ydl-3"
43
+ componentId: "core-12_50_1__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_50_0__sc-7q2ydl-4"
50
+ componentId: "core-12_50_1__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('outside'), getGapOutlineFocus('outside'), function (_ref2) {
52
52
  var _ref2$$size = _ref2.$size,
53
53
  $size = _ref2$$size === void 0 ? 'md' : _ref2$$size;
@@ -8,36 +8,36 @@ import { spacing } from '../_styles/spacing';
8
8
  var maxModalWidth = 528;
9
9
  var StyledBaseAvatar = /*#__PURE__*/styled(Avatar).withConfig({
10
10
  displayName: "StyledBaseAvatar",
11
- componentId: "core-12_50_0__sc-ft72hu-0"
11
+ componentId: "core-12_50_1__sc-ft72hu-0"
12
12
  })(["border-color:", ";border-style:solid;border-width:1px;&:hover{z-index:1;}"], colors.white);
13
13
  export var StyledAvatar = /*#__PURE__*/styled(StyledBaseAvatar).withConfig({
14
14
  displayName: "StyledAvatar",
15
- componentId: "core-12_50_0__sc-ft72hu-1"
15
+ componentId: "core-12_50_1__sc-ft72hu-1"
16
16
  })(["background-color:", ";"], function (props) {
17
17
  return colors[props.$color];
18
18
  });
19
19
  export var StyledFoldedPopoverContent = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledFoldedPopoverContent",
21
- componentId: "core-12_50_0__sc-ft72hu-2"
21
+ componentId: "core-12_50_1__sc-ft72hu-2"
22
22
  })(["display:flex;flex-direction:column;max-height:var(", ",100vh);"], OVERLAY_AVAILABLE_HEIGHT_VAR);
23
23
  export var StyledContactItems = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "StyledContactItems",
25
- componentId: "core-12_50_0__sc-ft72hu-3"
25
+ componentId: "core-12_50_1__sc-ft72hu-3"
26
26
  })(["padding-top:", "px;padding-left:", "px;flex:1 1 auto;min-height:0;overflow-y:auto;"], spacing.sm, spacing.xs);
27
27
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
28
28
  displayName: "StyledWrapper",
29
- componentId: "core-12_50_0__sc-ft72hu-4"
29
+ componentId: "core-12_50_1__sc-ft72hu-4"
30
30
  })(["display:flex;", " + ", "{margin-left:-", "px;}"], StyledAvatar, StyledAvatar, spacing.sm);
31
31
  export var StyledViewAllWrapper = /*#__PURE__*/styled.div.withConfig({
32
32
  displayName: "StyledViewAllWrapper",
33
- componentId: "core-12_50_0__sc-ft72hu-5"
33
+ componentId: "core-12_50_1__sc-ft72hu-5"
34
34
  })(["display:flex;margin-left:", "px;margin-top:", "px;margin-bottom:", "px;"], spacing.md, spacing.md, spacing.md);
35
35
  export var StyledModalBody = /*#__PURE__*/styled(Modal.Body).withConfig({
36
36
  displayName: "StyledModalBody",
37
- componentId: "core-12_50_0__sc-ft72hu-6"
37
+ componentId: "core-12_50_1__sc-ft72hu-6"
38
38
  })(["max-width:", "px;"], maxModalWidth);
39
39
  export var StyledContactItem = /*#__PURE__*/styled(ContactItem).withConfig({
40
40
  displayName: "StyledContactItem",
41
- componentId: "core-12_50_0__sc-ft72hu-7"
41
+ componentId: "core-12_50_1__sc-ft72hu-7"
42
42
  })(["flex-shrink:0;"]);
43
43
  //# 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_50_0__sc-rpertu-0"
4
+ componentId: "core-12_50_1__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_50_0__sc-rpertu-1"
8
+ componentId: "core-12_50_1__sc-rpertu-1"
9
9
  })(["bottom:100%;position:absolute;right:0;transform:translateX(50%) translateY(50%);"]);
10
10
  //# sourceMappingURL=Badge.styles.js.map
@@ -3,11 +3,11 @@ import { getTypographyIntent } from '../Typography';
3
3
  import { colors } from '../_styles/colors';
4
4
  export var StyledBadgeContainer = /*#__PURE__*/styled.div.withConfig({
5
5
  displayName: "StyledBadgeContainer",
6
- componentId: "core-12_50_0__sc-s2n9gd-0"
6
+ componentId: "core-12_50_1__sc-s2n9gd-0"
7
7
  })(["display:inline-flex;position:relative;"]);
8
8
  export var StyledBadgeContent = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledBadgeContent",
10
- componentId: "core-12_50_0__sc-s2n9gd-1"
10
+ componentId: "core-12_50_1__sc-s2n9gd-1"
11
11
  })(["position:relative;", " ", " pointer-events:none;user-select:none;"], function (_ref) {
12
12
  var $overlapping = _ref.$overlapping,
13
13
  _ref$$xOffset = _ref.$xOffset,
@@ -20,13 +20,13 @@ export var StyledBadgeContent = /*#__PURE__*/styled.div.withConfig({
20
20
  });
21
21
  export var StyledBadgeDotIndicator = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledBadgeDotIndicator",
23
- componentId: "core-12_50_0__sc-s2n9gd-2"
23
+ componentId: "core-12_50_1__sc-s2n9gd-2"
24
24
  })(["width:6px;height:6px;border-radius:50%;background-color:", ";"], colors.orange50);
25
25
  var oneDigitStyles = "\n border-radius: 50%;\n padding: 2px;\n min-width: 21.5px;\n min-height: 21.5px;\n";
26
26
  var multiDigitStyles = "\n border-radius: 10px;\n padding: 2px 8px;\n";
27
27
  export var StyledBadgeCounter = /*#__PURE__*/styled.div.withConfig({
28
28
  displayName: "StyledBadgeCounter",
29
- componentId: "core-12_50_0__sc-s2n9gd-3"
29
+ componentId: "core-12_50_1__sc-s2n9gd-3"
30
30
  })(["display:inline-flex;justify-content:center;align-items:center;color:", ";background-color:", ";", " ", ""], colors.white, colors.orange50, getTypographyIntent('small'), function (props) {
31
31
  return props.$oneDigit ? oneDigitStyles : multiDigitStyles;
32
32
  });
@@ -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_50_0__sc-149wm7c-0"
42
+ componentId: "core-12_50_1__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_50_0__sc-149wm7c-1"
55
+ componentId: "core-12_50_1__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_50_0__sc-149wm7c-2"
59
+ componentId: "core-12_50_1__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_50_0__sc-149wm7c-3"
63
+ componentId: "core-12_50_1__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_50_0__sc-149wm7c-4"
73
+ componentId: "core-12_50_1__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_50_0__sc-149wm7c-5"
77
+ componentId: "core-12_50_1__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_50_0__sc-149wm7c-6"
81
+ componentId: "core-12_50_1__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_50_0__sc-149wm7c-7"
85
+ componentId: "core-12_50_1__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_50_0__sc-149wm7c-8"
89
+ componentId: "core-12_50_1__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_50_0__sc-149wm7c-9"
97
+ componentId: "core-12_50_1__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_50_0__sc-fgsy0p-0"
24
+ componentId: "core-12_50_1__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_50_0__sc-1q6nqfz-0"
7
+ componentId: "core-12_50_1__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_50_0__sc-1q6nqfz-1"
11
+ componentId: "core-12_50_1__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_50_0__sc-1q6nqfz-2"
15
+ componentId: "core-12_50_1__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_50_0__sc-1q6nqfz-3"
19
+ componentId: "core-12_50_1__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_50_0__sc-c5bhwh-0"
96
+ componentId: "core-12_50_1__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_50_0__sc-c5bhwh-1"
100
+ componentId: "core-12_50_1__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_50_0__sc-c5bhwh-2"
108
+ componentId: "core-12_50_1__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_50_0__sc-c5bhwh-3"
115
+ componentId: "core-12_50_1__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_50_0__sc-c5bhwh-4"
126
+ componentId: "core-12_50_1__sc-c5bhwh-4"
127
127
  })(["&,&:hover{text-decoration:none;}", ""], function (_ref3) {
128
128
  var $block = _ref3.$block,
129
129
  $disabled = _ref3.$disabled,
@@ -8,37 +8,37 @@ 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_50_0__sc-1kkl86t-0"
11
+ componentId: "core-12_50_1__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_50_0__sc-1kkl86t-1"
15
+ componentId: "core-12_50_1__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_50_0__sc-1kkl86t-2"
19
+ componentId: "core-12_50_1__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_50_0__sc-1kkl86t-3"
23
+ componentId: "core-12_50_1__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_50_0__sc-1kkl86t-4"
27
+ componentId: "core-12_50_1__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_50_0__sc-1kkl86t-5"
31
+ componentId: "core-12_50_1__sc-1kkl86t-5"
32
32
  })(["cursor:default;font-weight:", ";"], typographyWeights.semibold);
33
33
  export var StyledCellButton = /*#__PURE__*/styled.button.attrs({
34
34
  type: 'button'
35
35
  }).withConfig({
36
36
  displayName: "StyledCellButton",
37
- componentId: "core-12_50_0__sc-1kkl86t-6"
37
+ componentId: "core-12_50_1__sc-1kkl86t-6"
38
38
  })(["align-items:center;display:inline-flex;height:", "px;justify-content:center;width:", "px;cursor:pointer;border:none;background:none;padding:0;font:inherit;color:inherit;"], cellSize, cellSize);
39
39
  export var StyledDayCell = /*#__PURE__*/styled(StyledCellButton).withConfig({
40
40
  displayName: "StyledDayCell",
41
- componentId: "core-12_50_0__sc-1kkl86t-7"
41
+ componentId: "core-12_50_1__sc-1kkl86t-7"
42
42
  })(["", ""], function (_ref) {
43
43
  var _ref$$disabled = _ref.$disabled,
44
44
  $disabled = _ref$$disabled === void 0 ? false : _ref$$disabled,
@@ -61,6 +61,6 @@ export var StyledDayCell = /*#__PURE__*/styled(StyledCellButton).withConfig({
61
61
  });
62
62
  export var StyledWeekRow = /*#__PURE__*/styled.div.withConfig({
63
63
  displayName: "StyledWeekRow",
64
- componentId: "core-12_50_0__sc-1kkl86t-8"
64
+ componentId: "core-12_50_1__sc-1kkl86t-8"
65
65
  })(["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);
66
66
  //# 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_50_0__sc-2fii7b-0"
7
+ componentId: "core-12_50_1__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;
@@ -9,7 +9,7 @@ export var dataQa = {
9
9
  export var checkboxSize = 20;
10
10
  export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledCheckboxContainer",
12
- componentId: "core-12_50_0__sc-u63tye-0"
12
+ componentId: "core-12_50_1__sc-u63tye-0"
13
13
  })(["color:", ";display:block;position:relative;& + &{margin-top:", "px;}"], colors.gray15, spacing.md);
14
14
  function StyledIndeterminate() {
15
15
  return css(["background-color:", ";content:'';height:2px;left:5px;position:absolute;top:9px;width:10px;border:none;"], colors.white);
@@ -48,18 +48,18 @@ function StyledFakeIndeterminate() {
48
48
  }
49
49
  export var StyledCheckboxLabelWrapper = /*#__PURE__*/styled.div.withConfig({
50
50
  displayName: "StyledCheckboxLabelWrapper",
51
- componentId: "core-12_50_0__sc-u63tye-1"
51
+ componentId: "core-12_50_1__sc-u63tye-1"
52
52
  })(["padding-left:", "px;min-height:", "px;position:relative;", ""], function (_ref) {
53
53
  var $hasLabel = _ref.$hasLabel;
54
54
  return $hasLabel ? checkboxSize + spacing.md : checkboxSize;
55
55
  }, checkboxSize, getTypographyIntent('body'));
56
56
  export var StyledCheckboxLabel = /*#__PURE__*/styled.label.withConfig({
57
57
  displayName: "StyledCheckboxLabel",
58
- componentId: "core-12_50_0__sc-u63tye-2"
58
+ componentId: "core-12_50_1__sc-u63tye-2"
59
59
  })(["user-select:none;&:before{background-color:", ";border-radius:2px;border:2px solid ", ";content:'';display:inline-block;height:", "px;width:", "px;min-width:", "px;top:0;left:0;position:absolute;}"], colors.white, colors.gray50, checkboxSize, checkboxSize, checkboxSize);
60
60
  export var StyledCheckboxInput = /*#__PURE__*/styled.input.withConfig({
61
61
  displayName: "StyledCheckboxInput",
62
- componentId: "core-12_50_0__sc-u63tye-3"
62
+ componentId: "core-12_50_1__sc-u63tye-3"
63
63
  })(["left:0;opacity:0;position:absolute;top:0;&:disabled:checked + ", " > ", ":before{background-color:", ";border-color:", ";}&:disabled + ", " > ", ":before{background-color:", ";border-color:", ";}", " &:checked + ", " > ", "{&:before{background-color:", ";border-color:", ";color:", ";}&:after{", "}}&:focus:not(:disabled),&[data-qa=", "]:not(:disabled){+ ", " > ", ":before{", "}}", ""], StyledCheckboxLabelWrapper, StyledCheckboxLabel, colors.blue85, colors.blue85, StyledCheckboxLabelWrapper, StyledCheckboxLabel, function (_ref2) {
64
64
  var $indeterminate = _ref2.$indeterminate;
65
65
  return $indeterminate ? colors.gray85 : colors.white;
@@ -83,7 +83,7 @@ export var StyledCheckboxInput = /*#__PURE__*/styled.input.withConfig({
83
83
  });
84
84
  export var StyledFakeCheckboxLabel = /*#__PURE__*/styled.span.withConfig({
85
85
  displayName: "StyledFakeCheckboxLabel",
86
- componentId: "core-12_50_0__sc-u63tye-4"
86
+ componentId: "core-12_50_1__sc-u63tye-4"
87
87
  })(["", " display:block;min-height:", "px;padding-left:", "px;position:relative;user-select:none;cursor:pointer;", ""], getTypographyIntent('body'), checkboxSize, function (_ref7) {
88
88
  var children = _ref7.children;
89
89
  return children ? checkboxSize + spacing.md : checkboxSize;
@@ -99,7 +99,7 @@ export var StyledFakeCheckboxLabel = /*#__PURE__*/styled.span.withConfig({
99
99
  });
100
100
  export var StyledFakeCheckboxInput = /*#__PURE__*/styled.div.withConfig({
101
101
  displayName: "StyledFakeCheckboxInput",
102
- componentId: "core-12_50_0__sc-u63tye-5"
102
+ componentId: "core-12_50_1__sc-u63tye-5"
103
103
  })(["width:", "px;height:", "px;border-radius:2px;border:2px solid ", ";position:absolute;", " ", " ", " ", ""], checkboxSize, checkboxSize, colors.gray70, function (_ref9) {
104
104
  var $checked = _ref9.$checked,
105
105
  $disabled = _ref9.$disabled,
@@ -7,23 +7,23 @@ import { getLineClamp } from '../_styles/mixins';
7
7
  import { spacing } from '../_styles/spacing';
8
8
  export var ContactItemAvatarWrapper = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "ContactItemAvatarWrapper",
10
- componentId: "core-12_50_0__sc-1c4z9pn-0"
10
+ componentId: "core-12_50_1__sc-1c4z9pn-0"
11
11
  })(["display:inline-flex;align-self:flex-start;"]);
12
12
  export var ContactItemAvatar = /*#__PURE__*/styled(Avatar).withConfig({
13
13
  displayName: "ContactItemAvatar",
14
- componentId: "core-12_50_0__sc-1c4z9pn-1"
14
+ componentId: "core-12_50_1__sc-1c4z9pn-1"
15
15
  })(["cursor:inherit;font-weight:", ";"], typographyWeights.bold);
16
16
  export var ContactItemTextWrapper = /*#__PURE__*/styled.div.withConfig({
17
17
  displayName: "ContactItemTextWrapper",
18
- componentId: "core-12_50_0__sc-1c4z9pn-2"
18
+ componentId: "core-12_50_1__sc-1c4z9pn-2"
19
19
  })(["overflow:hidden;margin-left:", "px;"], spacing.sm);
20
20
  export var ContactItemText = /*#__PURE__*/styled(Typography).withConfig({
21
21
  displayName: "ContactItemText",
22
- componentId: "core-12_50_0__sc-1c4z9pn-3"
22
+ componentId: "core-12_50_1__sc-1c4z9pn-3"
23
23
  })(["display:flex;", ""], getLineClamp());
24
24
  export var ContactItemWrapper = /*#__PURE__*/styled.div.withConfig({
25
25
  displayName: "ContactItemWrapper",
26
- componentId: "core-12_50_0__sc-1c4z9pn-4"
26
+ componentId: "core-12_50_1__sc-1c4z9pn-4"
27
27
  })(["display:flex;flex-direction:row;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, function (_ref) {
28
28
  var $disabled = _ref.$disabled,
29
29
  $clickable = _ref.$clickable;
@@ -5,10 +5,10 @@ import { mediaIE11Hack } from '../_styles/media';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledContent = /*#__PURE__*/styled(Box).withConfig({
7
7
  displayName: "StyledContent",
8
- componentId: "core-12_50_0__sc-10y57gh-0"
8
+ componentId: "core-12_50_1__sc-10y57gh-0"
9
9
  })(["> * + *,> * + h1,> * + h2,> * + h3,> * + h4,> * + p,> * + ul,> * + ol{margin-top:", "px;}> ", " + *{margin-top:0;}> ", ",> ", " > ", ",> ", "{", "{min-height:0;margin-bottom:", "px;}&:last-child ", "{margin-bottom:0;}}"], spacing.lg, StyledFormRow, StyledFormRow, StyledForm, StyledFormRow, StyledFormRow, StyledFormFieldBanner, spacing.md, StyledFormFieldBanner);
10
10
  export var StyledActions = /*#__PURE__*/styled(Box).withConfig({
11
11
  displayName: "StyledActions",
12
- componentId: "core-12_50_0__sc-10y57gh-1"
12
+ componentId: "core-12_50_1__sc-10y57gh-1"
13
13
  })(["display:flex;justify-content:flex-end;gap:", "px;@media ", "{& > * + *{margin-left:", "px;}}"], spacing.sm, mediaIE11Hack, spacing.sm);
14
14
  //# sourceMappingURL=Content.styles.js.map