@procore/core-react 12.31.0 → 12.32.0

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 (221) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  3. package/dist/Avatar/Avatar.js +20 -12
  4. package/dist/Avatar/Avatar.js.map +1 -1
  5. package/dist/Avatar/Avatar.styles.js +5 -5
  6. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  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 +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/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  32. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  33. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  34. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  35. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  36. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  37. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  38. package/dist/FileToken/FileToken.styles.js +4 -4
  39. package/dist/FilterToken/FilterToken.styles.js +5 -5
  40. package/dist/FlexList/FlexList.styles.js +1 -1
  41. package/dist/Form/Form.js +10 -5
  42. package/dist/Form/Form.js.map +1 -1
  43. package/dist/Form/Form.styles.js +14 -14
  44. package/dist/Form/Form.types.d.ts +2 -0
  45. package/dist/Form/Form.types.js.map +1 -1
  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/NextMenu/NextMenu.styles.js +3 -3
  58. package/dist/NextTile/NextTile.js +119 -45
  59. package/dist/NextTile/NextTile.js.map +1 -1
  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.styles.js +11 -11
  70. package/dist/Pill/Pill.styles.js +3 -3
  71. package/dist/PillSelect/PillSelect.styles.js +4 -4
  72. package/dist/Popover/Popover.styles.js +2 -2
  73. package/dist/Portal/Portal.styles.js +1 -1
  74. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  75. package/dist/RadioButton/RadioButton.styles.js +3 -3
  76. package/dist/Required/Required.styles.js +3 -3
  77. package/dist/Search/Search.styles.js +5 -5
  78. package/dist/Section/Section.styles.js +7 -7
  79. package/dist/SegmentedController/SegmentedController.js +86 -25
  80. package/dist/SegmentedController/SegmentedController.js.map +1 -1
  81. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  82. package/dist/Select/Select.styles.js +7 -7
  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 +38 -38
  89. package/dist/Switch/Switch.styles.js +4 -4
  90. package/dist/Table/Table.styles.js +28 -28
  91. package/dist/TableShelf/TableShelf.styles.js +5 -5
  92. package/dist/Tabs/Tabs.js +19 -13
  93. package/dist/Tabs/Tabs.js.map +1 -1
  94. package/dist/Tabs/Tabs.styles.js +15 -15
  95. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  96. package/dist/TextArea/TextArea.styles.js +1 -1
  97. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  98. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  99. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  100. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  101. package/dist/Tile/Tile.styles.js +8 -8
  102. package/dist/Title/Title.styles.js +7 -7
  103. package/dist/Toast/Toast.styles.js +3 -3
  104. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  105. package/dist/Token/Token.styles.js +3 -3
  106. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  107. package/dist/ToolLandingPage/ToolLandingPage.js +14 -7
  108. package/dist/ToolLandingPage/ToolLandingPage.js.map +1 -1
  109. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  110. package/dist/ToolLandingPage/ToolLandingPage.types.d.ts +29 -0
  111. package/dist/ToolLandingPage/ToolLandingPage.types.js.map +1 -1
  112. package/dist/Tooltip/Tooltip.styles.js +2 -2
  113. package/dist/Tree/Tree.styles.js +9 -9
  114. package/dist/Typeahead/Typeahead.styles.js +3 -3
  115. package/dist/Typography/Typography.styles.js +1 -1
  116. package/dist/Typography/Typography.table.story.js +2 -2
  117. package/dist/_hooks/I18n.d.ts +50 -46
  118. package/dist/_hooks/I18n.js +2 -0
  119. package/dist/_hooks/I18n.js.map +1 -1
  120. package/dist/_hooks/getI18nProviderLocale.js +1 -1
  121. package/dist/_hooks/getI18nProviderLocale.js.map +1 -1
  122. package/dist/_locales/de-DE.json +2 -2
  123. package/dist/_locales/en-AU.json +1 -1
  124. package/dist/_locales/en-CA.json +1 -1
  125. package/dist/_locales/en-GB.json +1 -1
  126. package/dist/_locales/es-ES.json +1 -1
  127. package/dist/_locales/es.json +3 -3
  128. package/dist/_locales/fr-CA.json +2 -2
  129. package/dist/_locales/fr-FR.json +2 -2
  130. package/dist/_locales/is-IS.json +2 -2
  131. package/dist/_locales/it-IT.json +47 -47
  132. package/dist/_locales/ja-JP.json +1 -1
  133. package/dist/_locales/pl-PL.json +1 -1
  134. package/dist/_locales/pt-BR.json +2 -2
  135. package/dist/_locales/pt-PT.json +89 -89
  136. package/dist/_locales/th-TH.json +4 -4
  137. package/dist/_locales/zh-SG.json +1 -1
  138. package/dist/_locales/zh-TW.json +4 -4
  139. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  140. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  141. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  142. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  143. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  144. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  145. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  146. package/dist/_typedoc/Box/Box.types.json +68 -68
  147. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  148. package/dist/_typedoc/Button/Button.types.json +13 -13
  149. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  150. package/dist/_typedoc/Card/Card.types.json +6 -6
  151. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  152. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  153. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  154. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  155. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  156. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  157. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
  158. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  159. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  160. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  161. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  162. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  163. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  164. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  165. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  166. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  167. package/dist/_typedoc/Form/Form.types.json +753 -743
  168. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  169. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  170. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  171. package/dist/_typedoc/Input/Input.types.json +2 -2
  172. package/dist/_typedoc/Link/Link.types.json +1 -1
  173. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  174. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  175. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +77 -77
  176. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  177. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  178. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  179. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  180. package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
  181. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
  182. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  183. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  184. package/dist/_typedoc/Panel/Panel.types.json +30 -30
  185. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  186. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  187. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  188. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  189. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  190. package/dist/_typedoc/Required/Required.types.json +5 -5
  191. package/dist/_typedoc/Search/Search.types.json +18 -18
  192. package/dist/_typedoc/Section/Section.types.json +15 -15
  193. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  194. package/dist/_typedoc/Select/Select.types.json +60 -60
  195. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  196. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  197. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  198. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  199. package/dist/_typedoc/Table/Table.types.json +101 -101
  200. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  201. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  202. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  203. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  204. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  205. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  206. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  207. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  208. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  209. package/dist/_typedoc/Title/Title.types.json +1 -1
  210. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  211. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  212. package/dist/_typedoc/Token/Token.types.json +7 -7
  213. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  214. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +19 -8
  215. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  216. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  217. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  218. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  219. package/dist/_typedoc/_utils/types.json +3 -3
  220. package/dist/_typedoc/deprecations.json +1 -1
  221. package/package.json +14 -14
@@ -47,26 +47,26 @@ var tableCellInputErrorBorder = "1px solid ".concat(colors.red50);
47
47
  var tableRowBorderBottom = /*#__PURE__*/css(["border-bottom:", ";&:last-child{border-bottom:0;}"], tableBorder);
48
48
  export var StyledTableHeaderCellSortableContainer = /*#__PURE__*/styled.div.withConfig({
49
49
  displayName: "StyledTableHeaderCellSortableContainer",
50
- componentId: "core-12_31_0__sc-9c7xd-0"
50
+ componentId: "core-12_32_0__sc-9c7xd-0"
51
51
  })([""]);
52
52
  export var StyledTableHeaderCellLabel = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledTableHeaderCellLabel",
54
- componentId: "core-12_31_0__sc-9c7xd-1"
54
+ componentId: "core-12_32_0__sc-9c7xd-1"
55
55
  })(["display:inline-block;flex:1 1 auto;position:relative;"]);
56
56
  export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
57
57
  displayName: "StyledCheckbox",
58
- componentId: "core-12_31_0__sc-9c7xd-2"
58
+ componentId: "core-12_32_0__sc-9c7xd-2"
59
59
  })([""]);
60
60
  export var StyledTableBodyCell = /*#__PURE__*/styled.td.withConfig({
61
61
  displayName: "StyledTableBodyCell",
62
- componentId: "core-12_31_0__sc-9c7xd-3"
62
+ componentId: "core-12_32_0__sc-9c7xd-3"
63
63
  })(["position:relative;vertical-align:middle;", ""], function (_ref) {
64
64
  var $snugfit = _ref.$snugfit;
65
65
  return $snugfit && css(["white-space:nowrap;width:0.1%;"]);
66
66
  });
67
67
  export var StyledTableHeaderCell = /*#__PURE__*/styled.th.withConfig({
68
68
  displayName: "StyledTableHeaderCell",
69
- componentId: "core-12_31_0__sc-9c7xd-4"
69
+ componentId: "core-12_32_0__sc-9c7xd-4"
70
70
  })(["", " font-weight:", ";border-right:", ";color:", ";height:", "px;padding:", "px;position:relative;text-align:left;transition:background-color 0.2s ease-in-out;&:last-child{border-right:0;}", "{display:flex;align-items:center;}", "{", "{min-height:14px;}}", " ", " ", " ", " ", ""], getTypographyIntent('small'), tableHeaderFontWeight, tableHeaderBorderRight, tableHeaderFontColor, tableHeaderHeight, tableHeaderPadding, StyledTableHeaderCellSortableContainer, StyledTableHeaderCellSortableContainer, StyledTableHeaderCellLabel, function (_ref2) {
71
71
  var $sortable = _ref2.$sortable;
72
72
  return $sortable && css(["cursor:pointer;padding:", "px;", ",", "{color:", ";opacity:0;transition:all 0.15s ease-in-out;position:absolute;}::before,::after{font-size:16px;}&:hover{background-color:", ";", "{color:", ";}}"], spacing.lg, StyledTableHeaderCellSortIconAsc, StyledTableHeaderCellSortIconDesc, tableSortFontColor, tableHeaderBgColorHover, StyledTableHeaderCellSortIconAsc, tableSortFontColorHover);
@@ -85,27 +85,27 @@ export var StyledTableHeaderCell = /*#__PURE__*/styled.th.withConfig({
85
85
  });
86
86
  export var StyledTableHeaderCellIconWrapper = /*#__PURE__*/styled.div.withConfig({
87
87
  displayName: "StyledTableHeaderCellIconWrapper",
88
- componentId: "core-12_31_0__sc-9c7xd-5"
88
+ componentId: "core-12_32_0__sc-9c7xd-5"
89
89
  })(["height:20px;line-height:20px;padding:0 ", "px 0 ", "px;width:20px;"], spacing.lg, spacing.sm);
90
90
  export var StyledTableHeaderCellSortIconAsc = /*#__PURE__*/styled(CaretUp).withConfig({
91
91
  displayName: "StyledTableHeaderCellSortIconAsc",
92
- componentId: "core-12_31_0__sc-9c7xd-6"
92
+ componentId: "core-12_32_0__sc-9c7xd-6"
93
93
  })(["margin-top:-", "px;"], spacing.sm);
94
94
  export var StyledTableHeaderCellSortIconDesc = /*#__PURE__*/styled(CaretDown).withConfig({
95
95
  displayName: "StyledTableHeaderCellSortIconDesc",
96
- componentId: "core-12_31_0__sc-9c7xd-7"
96
+ componentId: "core-12_32_0__sc-9c7xd-7"
97
97
  })([""]);
98
98
  export var StyledHead = /*#__PURE__*/styled.thead.withConfig({
99
99
  displayName: "StyledHead",
100
- componentId: "core-12_31_0__sc-9c7xd-8"
100
+ componentId: "core-12_32_0__sc-9c7xd-8"
101
101
  })(["background-color:", ";transition:background-color 0.2s ease-in-out;", " &:hover{", "{", ",", "{&::after,&::before{opacity:1;}}}}"], tableHeaderBgColor, tableRowBorderBottom, StyledTableHeaderCell, StyledTableHeaderCellSortIconAsc, StyledTableHeaderCellSortIconDesc);
102
102
  export var StyledCaratWrapper = /*#__PURE__*/styled.div.withConfig({
103
103
  displayName: "StyledCaratWrapper",
104
- componentId: "core-12_31_0__sc-9c7xd-9"
104
+ componentId: "core-12_32_0__sc-9c7xd-9"
105
105
  })(["font-size:16px;color:", ";padding-right:", "px;transition:all 0.2s ease-in-out;& + ", "{margin:0 ", "px;}"], colors.gray70, spacing.xs, StyledCheckbox, spacing.xs);
106
106
  export var StyledCarat = /*#__PURE__*/styled(ChevronRight).withConfig({
107
107
  displayName: "StyledCarat",
108
- componentId: "core-12_31_0__sc-9c7xd-10"
108
+ componentId: "core-12_32_0__sc-9c7xd-10"
109
109
  })(["", ""], function (_ref7) {
110
110
  var $expanded = _ref7.$expanded;
111
111
  return $expanded && css(["transform:rotate(90deg);"]);
@@ -113,7 +113,7 @@ export var StyledCarat = /*#__PURE__*/styled(ChevronRight).withConfig({
113
113
  var cellInputCSS = /*#__PURE__*/css(["background-color:rgba(255,255,255,0);&&&{border:", ";border-radius:4px;width:100%;&::placeholder{color:", ";}&::-ms-clear{display:none;}&:hover{border-color:transparent;}&:focus{background-color:", ";border-style:solid;border-width:1px;border-color:", ";box-shadow:0 0 0 1px ", ";outline:none;}&:disabled{border:", ";color:", ";}}"], tableCellInputBorder, tableCellInputPlaceholderColor, colors.white, colors.blue40, colors.blue40, tableCellInputBorder, colors.gray70);
114
114
  export var StyledTableCellSelect = /*#__PURE__*/styled(Select).withConfig({
115
115
  displayName: "StyledTableCellSelect",
116
- componentId: "core-12_31_0__sc-9c7xd-11"
116
+ componentId: "core-12_32_0__sc-9c7xd-11"
117
117
  })(["", ";background-color:transparent;border-color:transparent;height:auto;&:hover{background-color:transparent;}&:active:hover{border-color:", ";}&:focus{background-color:", ";cursor:pointer;", " ", "{white-space:nowrap;}", "{opacity:1;pointer-events:all;}", " ", "}", "{white-space:normal;}", ",", "{opacity:0;pointer-events:none;}", " ", ""], cellInputCSS, colors.gray85, colors.white, getFocus(), StyledSelectButtonLabel, StyledSelectArrow, function (_ref8) {
118
118
  var $hasClearIcon = _ref8.$hasClearIcon;
119
119
  return $hasClearIcon && css(["", "{opacity:1;pointer-events:all;}"], StyledSelectClearIcon);
@@ -131,25 +131,25 @@ export var StyledTableCellSelect = /*#__PURE__*/styled(Select).withConfig({
131
131
  });
132
132
  export var StyledTableCellInput = /*#__PURE__*/styled(Input).withConfig({
133
133
  displayName: "StyledTableCellInput",
134
- componentId: "core-12_31_0__sc-9c7xd-12"
134
+ componentId: "core-12_32_0__sc-9c7xd-12"
135
135
  })(["", ""], cellInputCSS);
136
136
  export var StyledTableCellDateInput = /*#__PURE__*/styled(DateSelect).withConfig({
137
137
  displayName: "StyledTableCellDateInput",
138
- componentId: "core-12_31_0__sc-9c7xd-13"
138
+ componentId: "core-12_32_0__sc-9c7xd-13"
139
139
  })(["background-color:transparent;border-color:transparent;&:active:hover{border-color:", ";}&&&:focus-within{", ";background-color:", ";}", " ", "{opacity:0;}", "{&[data-qa-table-visible='false']{opacity:0;}}", "{&[data-placeholder='true']{opacity:0;}}&:focus-within{", "{opacity:1;}", "{&[data-qa-table-visible='false']{opacity:1;}}", "{&[data-placeholder='true']{opacity:1;}}}"], colors.gray45, getFocus(), colors.white, function (_ref10) {
140
140
  var error = _ref10.error;
141
141
  return error && css(["border-color:", ";"], colors.red50);
142
142
  }, StyledDateInputIconContainer, StyledDateInputDelimiter, StyledDateInputSegment, StyledDateInputIconContainer, StyledDateInputDelimiter, StyledDateInputSegment);
143
143
  export var StyledTableCellTextArea = /*#__PURE__*/styled(TextArea).withConfig({
144
144
  displayName: "StyledTableCellTextArea",
145
- componentId: "core-12_31_0__sc-9c7xd-14"
145
+ componentId: "core-12_32_0__sc-9c7xd-14"
146
146
  })(["", " &&{height:", "px;min-height:", "px;overflow:hidden;padding-top:", "px;resize:none;width:100%;", "}"], cellInputCSS, spacing.xxl, spacing.xxl, spacing.xs, function (_ref11) {
147
147
  var $resizable = _ref11.$resizable;
148
148
  return $resizable && css(["&:focus{min-height:64px;overflow:auto;resize:vertical;}"]);
149
149
  });
150
150
  export var StyledTableCellText = /*#__PURE__*/styled.div.withConfig({
151
151
  displayName: "StyledTableCellText",
152
- componentId: "core-12_31_0__sc-9c7xd-15"
152
+ componentId: "core-12_32_0__sc-9c7xd-15"
153
153
  })(["margin:", "px;display:flex;color:", ";", ""], spacing.lg, tableCellTextColor, function (_ref12) {
154
154
  var $percent = _ref12.$percent,
155
155
  $currency = _ref12.$currency;
@@ -157,15 +157,15 @@ export var StyledTableCellText = /*#__PURE__*/styled.div.withConfig({
157
157
  });
158
158
  export var StyledIconCell = /*#__PURE__*/styled.div.withConfig({
159
159
  displayName: "StyledIconCell",
160
- componentId: "core-12_31_0__sc-9c7xd-16"
160
+ componentId: "core-12_32_0__sc-9c7xd-16"
161
161
  })(["display:flex;color:", ";"], tableCellIconColor);
162
162
  export var StyledSelectCellWrapper = /*#__PURE__*/styled.div.withConfig({
163
163
  displayName: "StyledSelectCellWrapper",
164
- componentId: "core-12_31_0__sc-9c7xd-17"
164
+ componentId: "core-12_32_0__sc-9c7xd-17"
165
165
  })(["display:flex;flex-direction:column;"]);
166
166
  export var StyledTableInlineEditErrorBox = /*#__PURE__*/styled.div.withConfig({
167
167
  displayName: "StyledTableInlineEditErrorBox",
168
- componentId: "core-12_31_0__sc-9c7xd-18"
168
+ componentId: "core-12_32_0__sc-9c7xd-18"
169
169
  })(["", " color:", ";font-style:italic;background:", ";border-radius:0 2px 2px 2px;box-shadow:0 1px 2px rgba(0,0,0,0.2),0 1px 3px rgba(0,0,0,0.1);padding:6px ", "px;position:absolute;max-width:160px;z-index:1;", ""], getTypographyIntent('small'), colors.white, colors.red50, spacing.md, function (_ref13) {
170
170
  var $size = _ref13.$size;
171
171
  var sizes = {
@@ -183,7 +183,7 @@ export var StyledTableInlineEditErrorBox = /*#__PURE__*/styled.div.withConfig({
183
183
  });
184
184
  export var StyledTableInlineEditContainer = /*#__PURE__*/styled.div.withConfig({
185
185
  displayName: "StyledTableInlineEditContainer",
186
- componentId: "core-12_31_0__sc-9c7xd-19"
186
+ componentId: "core-12_32_0__sc-9c7xd-19"
187
187
  })(["background-color:", ";margin:", "px ", "px;position:relative;", " ", ""], tableBgColor, spacing.sm, spacing.xs, function (_ref14) {
188
188
  var $error = _ref14.$error;
189
189
  return $error && css(["position:static;background-color:", ";", ",", ",", ",", "{border:", ";border-radius:4px 4px 0 0;border-bottom:none;&:hover{border-bottom:none;}&:focus{background-color:", ";border:", ";border-bottom:none;}}"], tableCellInputErrorBgColor, StyledTableCellDateInput, StyledTableCellInput, StyledTableCellSelect, StyledTableCellTextArea, tableCellInputErrorBorder, tableCellInputFocusBgColor, tableCellInputFocusBorder);
@@ -207,26 +207,26 @@ export var StyledTableInlineEditContainer = /*#__PURE__*/styled.div.withConfig({
207
207
  });
208
208
  export var StyledTableBodyRow = /*#__PURE__*/styled.tr.withConfig({
209
209
  displayName: "StyledTableBodyRow",
210
- componentId: "core-12_31_0__sc-9c7xd-20"
210
+ componentId: "core-12_32_0__sc-9c7xd-20"
211
211
  })(["", " ", " &:focus-within{", "{background-color:", ";&.disabled{background-color:transparent;}}", ".error{background-color:", ";}}&:hover{", "{background-color:", ";cursor:pointer;&:hover{background-color:", ";}&.disabled{&,&:hover{background-color:transparent;cursor:default;}}}", ".error{background-color:", ";&:hover{background-color:", ";}", ",", ",", "{border:", ";border-bottom:none;&:hover{border-bottom:none;}&:focus{border:", ";border-bottom:none;}}}}"], tableRowBorderBottom, function (_ref16) {
212
212
  var $overdue = _ref16.$overdue;
213
213
  return $overdue && css(["", ",", ",", ",", ",", "{color:", ";}"], StyledTableCellText, StyledTableCellSelect, StyledTableCellInput, StyledTableCellDateInput, StyledTableCellTextArea, colors.red50);
214
214
  }, StyledTableInlineEditContainer, tableCellInputRowHoverBgColor, StyledTableInlineEditContainer, tableCellInputErrorBgColor, StyledTableInlineEditContainer, tableCellInputRowHoverBgColor, tableCellInputHoverBgColor, StyledTableInlineEditContainer, tableCellInputErrorBgColor, tableCellInputErrorBgColor, StyledTableCellInput, StyledTableCellSelect, StyledTableCellTextArea, tableCellInputErrorBorder, tableCellInputFocusBorder);
215
215
  export var StyledTableGroupRowContent = /*#__PURE__*/styled.div.withConfig({
216
216
  displayName: "StyledTableGroupRowContent",
217
- componentId: "core-12_31_0__sc-9c7xd-21"
217
+ componentId: "core-12_32_0__sc-9c7xd-21"
218
218
  })([""]);
219
219
  export var StyledTableGroupRowHeader = /*#__PURE__*/styled.div.withConfig({
220
220
  displayName: "StyledTableGroupRowHeader",
221
- componentId: "core-12_31_0__sc-9c7xd-22"
221
+ componentId: "core-12_32_0__sc-9c7xd-22"
222
222
  })([""]);
223
223
  export var StyledTableGroupRowTitle = /*#__PURE__*/styled.span.withConfig({
224
224
  displayName: "StyledTableGroupRowTitle",
225
- componentId: "core-12_31_0__sc-9c7xd-23"
225
+ componentId: "core-12_32_0__sc-9c7xd-23"
226
226
  })([""]);
227
227
  export var StyledTableGroupRow = /*#__PURE__*/styled.tr.withConfig({
228
228
  displayName: "StyledTableGroupRow",
229
- componentId: "core-12_31_0__sc-9c7xd-24"
229
+ componentId: "core-12_32_0__sc-9c7xd-24"
230
230
  })(["background-color:", ";", " ", "{margin-left:", "px;padding:", "px 0;display:flex;flex-direction:row;}", "{display:flex;align-items:center;}", "{font-weight:", ";padding-left:", "px;}", ""], tableGroupRowBgColor, tableRowBorderBottom, StyledTableGroupRowContent, spacing.lg, spacing.lg, StyledTableGroupRowHeader, StyledTableGroupRowTitle, tableHeaderFontWeight, spacing.lg, function (_ref17) {
231
231
  var $depth = _ref17.$depth;
232
232
  if (typeof $depth !== 'number') {
@@ -236,7 +236,7 @@ export var StyledTableGroupRow = /*#__PURE__*/styled.tr.withConfig({
236
236
  });
237
237
  export var StyledTableWrapper = /*#__PURE__*/styled(Card).withConfig({
238
238
  displayName: "StyledTableWrapper",
239
- componentId: "core-12_31_0__sc-9c7xd-25"
239
+ componentId: "core-12_32_0__sc-9c7xd-25"
240
240
  })(["border-radius:", "px;border:", ";", ",tbody{&:first-child{tr:first-child{", ",td{&:first-child{border-top-left-radius:", "px;}&:last-child{border-top-right-radius:", "px;}}}}&:last-child{tr:last-child{", ",td{&:first-child{border-bottom-left-radius:", "px;}&:last-child{border-bottom-right-radius:", "px;}}}}}", ""], tableBorderRadius, tableBorder, StyledHead, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, StyledTableHeaderCell, tableBorderRadius, tableBorderRadius, function (_ref18) {
241
241
  var $withShelf = _ref18.$withShelf;
242
242
  return $withShelf && css(["position:relative;height:100%;"]);
@@ -245,7 +245,7 @@ var BodyRow = StyledTableBodyRow;
245
245
  var GroupRow = StyledTableGroupRow;
246
246
  export var StyledTable = /*#__PURE__*/styled.table.withConfig({
247
247
  displayName: "StyledTable",
248
- componentId: "core-12_31_0__sc-9c7xd-26"
248
+ componentId: "core-12_32_0__sc-9c7xd-26"
249
249
  })(["background-color:", ";border-collapse:collapse;border-radius:", "px;", " width:100%;td:first-child ", "{padding-left:", "px;}", " ", " + ", "{margin-left:", "px;padding-left:0;}", " ", " ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " > td{padding-left:", "px;}", " + ", " + ", " + ", " + ", " > td{padding-left:", "px;}", " ~ ", "{", "{padding-left:0;margin:0 ", "px;}& > td:first-child{padding-left:", "px;}}", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}", " + ", " + ", " + ", " + ", " ~ ", "{& > td:first-child{padding-left:", "px;}}"], tableBgColor, tableBorderRadius, getTypographyIntent('body'), StyledCheckbox, spacing.lg, StyledTableGroupRow, StyledCaratWrapper, StyledCheckbox, spacing.xs, function (_ref19) {
250
250
  var $fixed = _ref19.$fixed;
251
251
  return $fixed && css(["table-layout:fixed;"]);
@@ -255,6 +255,6 @@ export var StyledTable = /*#__PURE__*/styled.table.withConfig({
255
255
  }, GroupRow, GroupRow, tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, 2 * tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, 3 * tableGroupHeaderRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, GroupRow, 4 * tableGroupHeaderRowIndentation, GroupRow, BodyRow, StyledCheckbox, spacing.xs, tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, BodyRow, 2 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, BodyRow, 3 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, BodyRow, 4 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation, GroupRow, GroupRow, GroupRow, GroupRow, GroupRow, BodyRow, 5 * tableGroupHeaderRowIndentation + tableGroupBodyRowIndentation);
256
256
  export var StyledLoadingContainer = /*#__PURE__*/styled.div.withConfig({
257
257
  displayName: "StyledLoadingContainer",
258
- componentId: "core-12_31_0__sc-9c7xd-27"
258
+ componentId: "core-12_32_0__sc-9c7xd-27"
259
259
  })(["cursor:default;align-items:center;background:", ";display:flex;height:100%;justify-content:center;opacity:0.9;position:absolute;width:100%;z-index:2;"], colors.gray96);
260
260
  //# sourceMappingURL=Table.styles.js.map
@@ -4,22 +4,22 @@ import { spacing } from '../_styles/spacing';
4
4
  var tableShelfShadow = '-4px 0px 5px 0px rgba(112, 112, 112, 0.1)';
5
5
  export var StyledShelf = /*#__PURE__*/styled.div.withConfig({
6
6
  displayName: "StyledShelf",
7
- componentId: "core-12_31_0__sc-a6498a-0"
7
+ componentId: "core-12_32_0__sc-a6498a-0"
8
8
  })(["position:absolute;right:0;top:0;bottom:0;box-shadow:", ";background-color:", ";"], tableShelfShadow, colors.white);
9
9
  export var StyledHead = /*#__PURE__*/styled.div.withConfig({
10
10
  displayName: "StyledHead",
11
- componentId: "core-12_31_0__sc-a6498a-1"
11
+ componentId: "core-12_32_0__sc-a6498a-1"
12
12
  })(["background-color:", ";transition:background-color 0.2s ease-in-out;"], colors.gray96);
13
13
  export var StyledBodyRow = /*#__PURE__*/styled.div.withConfig({
14
14
  displayName: "StyledBodyRow",
15
- componentId: "core-12_31_0__sc-a6498a-2"
15
+ componentId: "core-12_32_0__sc-a6498a-2"
16
16
  })(["border-top:1px solid ", ";transition:background-color 0.2s ease-in-out;"], colors.gray85);
17
17
  export var StyledHeadCell = /*#__PURE__*/styled.div.withConfig({
18
18
  displayName: "StyledHeadCell",
19
- componentId: "core-12_31_0__sc-a6498a-3"
19
+ componentId: "core-12_32_0__sc-a6498a-3"
20
20
  })(["text-align:left;padding:", "px;line-height:13px;"], spacing.lg);
21
21
  export var StyledBodyCell = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledBodyCell",
23
- componentId: "core-12_31_0__sc-a6498a-4"
23
+ componentId: "core-12_32_0__sc-a6498a-4"
24
24
  })(["padding:", "px;line-height:13px;"], spacing.lg);
25
25
  //# sourceMappingURL=TableShelf.styles.js.map
package/dist/Tabs/Tabs.js CHANGED
@@ -1,7 +1,8 @@
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 = ["children", "UNSAFE_helixHeader"],
3
3
  _excluded2 = ["as", "disabled", "role", "active", "selected", "children", "onBlur", "onFocus", "onMount", "onUnmount", "overflowing", "dropdown", "variant", "UNSAFE_helixHeader"],
4
- _excluded3 = ["children", "className", "dark", "qa", "UNSAFE_helixHeader"];
4
+ _excluded3 = ["onPress", "onClick", "value"],
5
+ _excluded4 = ["children", "className", "dark", "qa", "UNSAFE_helixHeader"];
5
6
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
6
7
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
8
  function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
@@ -70,16 +71,19 @@ function TabInternal(_ref2, ref) {
70
71
  UNSAFE_helixHeader = _ref2$UNSAFE_helixHea === void 0 ? false : _ref2$UNSAFE_helixHea,
71
72
  props = _objectWithoutProperties(_ref2, _excluded2);
72
73
  var _ref3 = props,
73
- onPress = _ref3.onPress;
74
- var _useButton = useButton(_objectSpread(_objectSpread({}, props), {}, {
74
+ onPress = _ref3.onPress,
75
+ onClick = _ref3.onClick,
76
+ value = _ref3.value,
77
+ buttonPropsBase = _objectWithoutProperties(_ref3, _excluded3);
78
+ var elementType = role === 'link' ? 'a' : role === 'button' ? 'button' : 'div';
79
+ var _useButton = useButton(_objectSpread(_objectSpread({}, buttonPropsBase), {}, {
75
80
  onBlur: onBlur,
76
81
  onFocus: onFocus,
77
- elementType: role === 'link' ? 'a' : role === 'button' ? 'button' : 'div',
82
+ elementType: elementType,
78
83
  isDisabled: disabled,
79
84
  onPress: onPress,
80
85
  type: 'button'
81
- }), ref // TODO fix polymorphic type
82
- ),
86
+ }), ref),
83
87
  buttonProps = _useButton.buttonProps;
84
88
  var a11yProps = role === 'button' ? _objectSpread(_objectSpread({}, buttonProps), {}, {
85
89
  'aria-current': selected || active,
@@ -105,13 +109,15 @@ function TabInternal(_ref2, ref) {
105
109
  var validChild = /*#__PURE__*/React.isValidElement(children);
106
110
  var tabSelected = active || variant === 'active' || selected;
107
111
  var Styled = getStyledComponents(UNSAFE_helixHeader);
112
+
113
+ // For button/link roles, spread buttonPropsBase to preserve useButton's onClick
114
+ // For other roles, spread all props
115
+ var roleSpecificProps = role === 'button' || role === 'link' ? buttonPropsBase : props;
108
116
  return /*#__PURE__*/React.createElement(Styled.Tab, _extends({
109
117
  $selected: tabSelected,
110
- $dark: props.dark
111
- // @ts-ignore
112
- ,
113
- ref: mergeRefs(ref, innerRef)
114
- }, a11yProps, props), /*#__PURE__*/React.createElement(Styled.TabInner, {
118
+ $dark: props.dark,
119
+ ref: mergeRefs(ref || null, innerRef)
120
+ }, a11yProps, roleSpecificProps), /*#__PURE__*/React.createElement(Styled.TabInner, {
115
121
  $selected: tabSelected,
116
122
  $dark: props.dark
117
123
  }, validChild ? /*#__PURE__*/React.cloneElement(children, {
@@ -160,7 +166,7 @@ var Tabs_ = /*#__PURE__*/React.forwardRef(function Tabs(_ref5, ref) {
160
166
  qa = _ref5.qa,
161
167
  _ref5$UNSAFE_helixHea = _ref5.UNSAFE_helixHeader,
162
168
  UNSAFE_helixHeader = _ref5$UNSAFE_helixHea === void 0 ? false : _ref5$UNSAFE_helixHea,
163
- props = _objectWithoutProperties(_ref5, _excluded3);
169
+ props = _objectWithoutProperties(_ref5, _excluded4);
164
170
  var i18n = useI18nContext();
165
171
  var _React$useState = React.useState(false),
166
172
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -232,7 +238,7 @@ var Tabs_ = /*#__PURE__*/React.forwardRef(function Tabs(_ref5, ref) {
232
238
  return oldElements;
233
239
  });
234
240
  }
235
- }); // TODO fix type
241
+ });
236
242
  }), /*#__PURE__*/React.createElement(OverlayTrigger, {
237
243
  autoFocus: true,
238
244
  beforeShow: function beforeShow() {
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","names":["CaretDown","CaretUp","React","useButton","MenuImperative","OverlayTrigger","useOverlayTriggerContext","useI18nContext","useResize","spacing","addSubcomponents","getBoundingRect","mergeRefs","getStyledComponents","StyledOverlay","StyledTabList","StyledTabs","ExtraTabSpacing","xxl","HelixHeaderExtraTabSpacing","sm","noop","Link","forwardRef","_ref","ref","children","_ref$UNSAFE_helixHead","UNSAFE_helixHeader","props","_objectWithoutProperties","_excluded","Styled","createElement","_extends","TabInternal","_ref2","as","disabled","role","_ref2$active","active","_ref2$selected","selected","onBlur","onFocus","_ref2$onMount","onMount","_ref2$onUnmount","onUnmount","_ref2$overflowing","overflowing","_ref2$dropdown","dropdown","_ref2$variant","variant","_ref2$UNSAFE_helixHea","_excluded2","_ref3","onPress","_useButton","_objectSpread","elementType","isDisabled","type","buttonProps","a11yProps","$clickable","innerRef","useRef","useEffect","current","validChild","isValidElement","tabSelected","Tab","$selected","$dark","dark","TabInner","cloneElement","undefined","MoreMenu","_ref4","id","ctx","menuRef","_menuRef$current","_menuRef$current$el","_menuRef$current2","_menuRef$current3","el","focus","highlightFirst","highlightSelected","onSelect","selection","hide","event","Options","Children","map","child","i","Item","item","key","Tabs_","Tabs","_ref5","className","_ref5$dark","qa","_ref5$UNSAFE_helixHea","_excluded3","i18n","_React$useState","useState","_React$useState2","_slicedToArray","moreMenuIsShown","setMoreMenuIsShown","_React$useState3","_React$useState4","tabElements","setTabElements","_React$useState5","_React$useState6","cutoffIndex","setCutoffIndex","containerRef","recalculate","container","_tabElements$reduce","reduce","acc","rect","extraSpace","subtotals","concat","_toConsumableArray","total","width","Array","index","findIndex","val","onResize","filtered","toArray","filter","slice","isOverflowingSelected","some","elements","oldElements","autoFocus","beforeShow","afterHide","trigger","passA11yPropsToOverlay","placement","overlay","DropdownTab","length","DropdownTabInner","more","t","size","displayName"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import { CaretDown, CaretUp } from '@procore/core-icons/dist'\nimport React from 'react'\n\nimport { useButton } from '@react-aria/button'\nimport { MenuImperative } from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useResize } from '../_hooks/Resize'\nimport { spacing } from '../_styles/spacing'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { getBoundingRect } from '../_utils/dom'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n getStyledComponents,\n StyledOverlay,\n StyledTabList,\n StyledTabs,\n} from './Tabs.styles'\nimport type {\n BaseTabProps,\n TabDropdownProps,\n TabProps,\n TabRef,\n TabRole,\n TabRoleType,\n TabsProps,\n} from './Tabs.types'\n\nconst ExtraTabSpacing = spacing.xxl\nconst HelixHeaderExtraTabSpacing = spacing.sm\n\nfunction noop() {}\n\nexport const Link = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement> & {\n /** @deprecated @experimental Alternative style variant. To be used on Helix Header ONLY */\n UNSAFE_helixHeader?: boolean\n }\n>(function Link({ children, UNSAFE_helixHeader = false, ...props }, ref) {\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <Styled.Link ref={ref} {...props}>\n {children}\n </Styled.Link>\n )\n})\n\nfunction TabInternal(\n {\n as,\n disabled,\n role,\n active = false,\n selected = false,\n children,\n onBlur,\n onFocus,\n onMount = noop,\n onUnmount = noop,\n overflowing = false,\n dropdown = false,\n variant = '',\n UNSAFE_helixHeader = false,\n ...props\n }: TabProps<TabRoleType>,\n ref: TabRef<TabRoleType>\n) {\n const { onPress } = props as TabProps<'button'>\n\n const { buttonProps } = useButton(\n {\n ...props,\n onBlur: onBlur as (e: React.FocusEvent) => void,\n onFocus: onFocus as (e: React.FocusEvent) => void,\n elementType: role === 'link' ? 'a' : role === 'button' ? 'button' : 'div',\n isDisabled: disabled,\n onPress,\n type: 'button',\n },\n ref as any // TODO fix polymorphic type\n )\n\n const a11yProps =\n role === 'button'\n ? {\n ...buttonProps,\n 'aria-current': selected || active,\n as: as || 'button',\n $clickable: !disabled,\n }\n : role === 'link'\n ? {\n ...buttonProps,\n 'aria-current': selected || active,\n as: as || 'a',\n $clickable: !disabled,\n }\n : role === 'tab'\n ? { role: 'tab', onBlur, onFocus }\n : { onBlur, onFocus }\n\n const innerRef = React.useRef<HTMLDivElement>(null)\n\n React.useEffect(() => {\n onMount(innerRef.current)\n return onUnmount\n }, [])\n\n const validChild = React.isValidElement(children)\n const tabSelected = active || variant === 'active' || selected\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <Styled.Tab\n $selected={tabSelected}\n $dark={props.dark}\n // @ts-ignore\n ref={mergeRefs(ref, innerRef)}\n {...a11yProps}\n {...props}\n >\n <Styled.TabInner $selected={tabSelected} $dark={props.dark}>\n {validChild\n ? React.cloneElement(children as React.ReactElement<any, any>, {\n 'aria-current': tabSelected ? true : undefined,\n })\n : children}\n </Styled.TabInner>\n </Styled.Tab>\n )\n}\n\nexport const Tab = React.forwardRef(TabInternal) as <Role extends TabRole>(\n props:\n | TabProps<Role>\n | (BaseTabProps & { ref?: React.ComponentPropsWithRef<'div'>['ref'] })\n) => ReturnType<typeof TabInternal>\n\nexport const MoreMenu = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TabDropdownProps\n>(function MoreMenu({ children, id }, ref) {\n const ctx = useOverlayTriggerContext()\n\n const menuRef = React.useRef<MenuRef | null>(null)\n\n React.useEffect(function () {\n menuRef.current?.el?.focus()\n menuRef.current?.highlightFirst()\n menuRef.current?.highlightSelected()\n }, [])\n\n function onSelect(selection: Selection) {\n ctx.hide(selection.event)\n }\n\n return (\n <StyledOverlay ref={ref}>\n <MenuImperative id={id} role=\"menu\" ref={menuRef} onSelect={onSelect}>\n <MenuImperative.Options>\n {React.Children.map(children, (child, i) => {\n if (React.isValidElement<BaseTabProps>(child)) {\n return (\n <MenuImperative.Item\n item={null}\n key={i}\n selected={child.props.selected || child.props.active}\n >\n {React.cloneElement(child as any, { ref: null })}\n </MenuImperative.Item>\n )\n }\n })}\n </MenuImperative.Options>\n </MenuImperative>\n </StyledOverlay>\n )\n})\n\nconst Tabs_ = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TabsProps\n>(function Tabs(\n {\n children,\n className,\n dark = false,\n qa,\n UNSAFE_helixHeader = false,\n ...props\n },\n ref\n) {\n const i18n = useI18nContext()\n\n const [moreMenuIsShown, setMoreMenuIsShown] = React.useState(false)\n const [tabElements, setTabElements] = React.useState<\n (HTMLDivElement | null)[]\n >([])\n const [cutoffIndex, setCutoffIndex] = React.useState(0)\n\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n function recalculate() {\n const container = getBoundingRect(containerRef.current!)\n\n const { subtotals } = tabElements.reduce(\n (acc, el) => {\n if (!el) {\n return acc\n }\n const rect = getBoundingRect(el)\n const extraSpace = UNSAFE_helixHeader\n ? HelixHeaderExtraTabSpacing\n : ExtraTabSpacing\n return {\n subtotals: [...acc.subtotals, acc.total + rect.width],\n total: acc.total + rect.width + extraSpace,\n }\n },\n { subtotals: new Array(), total: 0 }\n )\n\n const index = subtotals.findIndex((val: number) => val >= container.width)\n\n setCutoffIndex(index)\n }\n\n useResize({ onResize: recalculate })\n\n React.useEffect(recalculate)\n\n const filtered = React.Children.toArray(children).filter((child) => child)\n\n const overflowing = filtered.slice(cutoffIndex - 1)\n\n const isOverflowingSelected = React.Children.toArray(overflowing).some(\n (child) =>\n React.isValidElement(child) &&\n (child.props.active || child.props.selected)\n )\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <StyledTabs ref={ref} $dark={dark} index={cutoffIndex} {...props}>\n <StyledTabList ref={containerRef}>\n {filtered.map((child, i) => {\n if (React.isValidElement(child))\n return React.cloneElement(child, {\n dark,\n onMount: (el: HTMLDivElement) => {\n setTabElements((elements) => {\n const oldElements = [...elements]\n oldElements[i] = el\n return oldElements\n })\n },\n onUnmount: () => {\n setTabElements((elements) => {\n const oldElements = [...elements]\n oldElements[i] = null\n return oldElements\n })\n },\n } as any) // TODO fix type\n })}\n\n <OverlayTrigger\n autoFocus\n beforeShow={() => setMoreMenuIsShown(true)}\n afterHide={() => setMoreMenuIsShown(false)}\n trigger=\"click\"\n passA11yPropsToOverlay\n placement=\"bottom-right\"\n overlay={<MoreMenu>{overflowing}</MoreMenu>}\n ref={ref}\n role=\"menu\"\n >\n <Styled.DropdownTab\n $selected={isOverflowingSelected}\n $dark={dark}\n aria-hidden={!overflowing.length}\n as=\"button\"\n >\n <Styled.DropdownTabInner\n $selected={isOverflowingSelected}\n $dark={dark}\n >\n <Styled.Link data-qa={qa?.more}>\n {i18n.t('core.tabs.more')}\n </Styled.Link>\n {moreMenuIsShown ? (\n <CaretUp size=\"sm\" />\n ) : (\n <CaretDown size=\"sm\" />\n )}\n </Styled.DropdownTabInner>\n </Styled.DropdownTab>\n </OverlayTrigger>\n </StyledTabList>\n </StyledTabs>\n )\n})\n\nTabs_.displayName = 'Tabs'\n\nLink.displayName = 'Tabs.Link'\n\n// @ts-ignore\nTab.displayName = 'Tabs.Tab'\n\n/**\n\n We use tabs to navigate between different, but related content.\n Tabs are commonly used on tool landing pages and on item detail pages.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-tabs--demo)\n\n @see [Design Guidelines](https://design.procore.com/tabs)\n\n */\nexport const Tabs = addSubcomponents(\n {\n Link,\n Tab,\n },\n Tabs_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,0BAA0B;AAC7D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,cAAc,QAAQ,kCAAkC;AAEjE,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,eAAe,QAAQ,eAAe;AAC/C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SACEC,mBAAmB,EACnBC,aAAa,EACbC,aAAa,EACbC,UAAU,QACL,eAAe;AAWtB,IAAMC,eAAe,GAAGR,OAAO,CAACS,GAAG;AACnC,IAAMC,0BAA0B,GAAGV,OAAO,CAACW,EAAE;AAE7C,SAASC,IAAIA,CAAA,EAAG,CAAC;AAEjB,OAAO,IAAMC,IAAI,gBAAGpB,KAAK,CAACqB,UAAU,CAMlC,SAASD,IAAIA,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AgB,CACb,CAAC,EACb/C,eAAe,gBACdtH,KAAA,CAAA+B,aAAA,CAAChC,OAAO;IAACuK,IAAI,EAAC;EAAI,CAAE,CAAC,gBAErBtK,KAAA,CAAA+B,aAAA,CAACjC,SAAS;IAACwK,IAAI,EAAC;EAAI,CAAE,CAED,CACP,CACN,CACH,CACL,CAAC;AAEjB,CAAC,CAAC;AAEF7D,KAAK,CAAC8D,WAAW,GAAG,MAAM;AAE1BnJ,IAAI,CAACmJ,WAAW,GAAG,WAAW;;AAE9B;AACA9F,GAAG,CAAC8F,WAAW,GAAG,UAAU;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAM7D,IAAI,GAAGlG,gBAAgB,CAClC;EACEY,IAAI,EAAJA,IAAI;EACJqD,GAAG,EAAHA;AACF,CAAC,EACDgC,KACF,CAAC"}
1
+ {"version":3,"file":"Tabs.js","names":["CaretDown","CaretUp","React","useButton","MenuImperative","OverlayTrigger","useOverlayTriggerContext","useI18nContext","useResize","spacing","addSubcomponents","getBoundingRect","mergeRefs","getStyledComponents","StyledOverlay","StyledTabList","StyledTabs","ExtraTabSpacing","xxl","HelixHeaderExtraTabSpacing","sm","noop","Link","forwardRef","_ref","ref","children","_ref$UNSAFE_helixHead","UNSAFE_helixHeader","props","_objectWithoutProperties","_excluded","Styled","createElement","_extends","TabInternal","_ref2","as","disabled","role","_ref2$active","active","_ref2$selected","selected","onBlur","onFocus","_ref2$onMount","onMount","_ref2$onUnmount","onUnmount","_ref2$overflowing","overflowing","_ref2$dropdown","dropdown","_ref2$variant","variant","_ref2$UNSAFE_helixHea","_excluded2","_ref3","onPress","onClick","value","buttonPropsBase","_excluded3","elementType","_useButton","_objectSpread","isDisabled","type","buttonProps","a11yProps","$clickable","innerRef","useRef","useEffect","current","validChild","isValidElement","tabSelected","roleSpecificProps","Tab","$selected","$dark","dark","TabInner","cloneElement","undefined","MoreMenu","_ref4","id","ctx","menuRef","_menuRef$current","_menuRef$current$el","_menuRef$current2","_menuRef$current3","el","focus","highlightFirst","highlightSelected","onSelect","selection","hide","event","Options","Children","map","child","i","Item","item","key","Tabs_","Tabs","_ref5","className","_ref5$dark","qa","_ref5$UNSAFE_helixHea","_excluded4","i18n","_React$useState","useState","_React$useState2","_slicedToArray","moreMenuIsShown","setMoreMenuIsShown","_React$useState3","_React$useState4","tabElements","setTabElements","_React$useState5","_React$useState6","cutoffIndex","setCutoffIndex","containerRef","recalculate","container","_tabElements$reduce","reduce","acc","rect","extraSpace","subtotals","concat","_toConsumableArray","total","width","Array","index","findIndex","val","onResize","filtered","toArray","filter","slice","isOverflowingSelected","some","elements","oldElements","autoFocus","beforeShow","afterHide","trigger","passA11yPropsToOverlay","placement","overlay","DropdownTab","length","DropdownTabInner","more","t","size","displayName"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import { CaretDown, CaretUp } from '@procore/core-icons/dist'\nimport React from 'react'\n\nimport { useButton } from '@react-aria/button'\nimport { MenuImperative } from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { useResize } from '../_hooks/Resize'\nimport { spacing } from '../_styles/spacing'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport { getBoundingRect } from '../_utils/dom'\nimport { mergeRefs } from '../_utils/mergeRefs'\nimport {\n getStyledComponents,\n StyledOverlay,\n StyledTabList,\n StyledTabs,\n} from './Tabs.styles'\nimport type {\n BaseTabProps,\n TabDropdownProps,\n TabProps,\n TabRef,\n TabRole,\n TabRoleType,\n TabsProps,\n} from './Tabs.types'\n\nconst ExtraTabSpacing = spacing.xxl\nconst HelixHeaderExtraTabSpacing = spacing.sm\n\nfunction noop() {}\n\nexport const Link = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement> & {\n /** @deprecated @experimental Alternative style variant. To be used on Helix Header ONLY */\n UNSAFE_helixHeader?: boolean\n }\n>(function Link({ children, UNSAFE_helixHeader = false, ...props }, ref) {\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <Styled.Link ref={ref} {...props}>\n {children}\n </Styled.Link>\n )\n})\n\nfunction TabInternal(\n {\n as,\n disabled,\n role,\n active = false,\n selected = false,\n children,\n onBlur,\n onFocus,\n onMount = noop,\n onUnmount = noop,\n overflowing = false,\n dropdown = false,\n variant = '',\n UNSAFE_helixHeader = false,\n ...props\n }: TabProps<TabRoleType>,\n ref: TabRef<TabRoleType>\n) {\n const { onPress, onClick, value, ...buttonPropsBase } =\n props as TabProps<'button'>\n\n const elementType =\n role === 'link' ? 'a' : role === 'button' ? 'button' : 'div'\n\n const { buttonProps } = useButton(\n {\n ...buttonPropsBase,\n onBlur: onBlur as (e: React.FocusEvent) => void,\n onFocus: onFocus as (e: React.FocusEvent) => void,\n elementType,\n isDisabled: disabled,\n onPress,\n type: 'button',\n },\n ref as unknown as React.RefObject<HTMLElement>\n )\n\n const a11yProps =\n role === 'button'\n ? {\n ...buttonProps,\n 'aria-current': selected || active,\n as: as || 'button',\n $clickable: !disabled,\n }\n : role === 'link'\n ? {\n ...buttonProps,\n 'aria-current': selected || active,\n as: as || 'a',\n $clickable: !disabled,\n }\n : role === 'tab'\n ? { role: 'tab', onBlur, onFocus }\n : { onBlur, onFocus }\n\n const innerRef = React.useRef<HTMLDivElement>(null)\n\n React.useEffect(() => {\n onMount(innerRef.current)\n return onUnmount\n }, [])\n\n const validChild = React.isValidElement(children)\n const tabSelected = active || variant === 'active' || selected\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n // For button/link roles, spread buttonPropsBase to preserve useButton's onClick\n // For other roles, spread all props\n const roleSpecificProps =\n role === 'button' || role === 'link'\n ? (buttonPropsBase as Omit<\n TabProps<'button'>,\n 'onPress' | 'onClick' | 'value'\n >)\n : (props as TabProps<TabRoleType>)\n\n return (\n <Styled.Tab\n $selected={tabSelected}\n $dark={props.dark}\n ref={\n mergeRefs(\n (ref || null) as unknown as React.Ref<HTMLDivElement>,\n innerRef\n ) as unknown as React.RefCallback<HTMLDivElement>\n }\n {...(a11yProps as Record<string, unknown>)}\n {...(roleSpecificProps as Record<string, unknown>)}\n >\n <Styled.TabInner $selected={tabSelected} $dark={props.dark}>\n {validChild\n ? React.cloneElement(\n children as React.ReactElement<\n Record<string, unknown>,\n string | React.JSXElementConstructor<unknown>\n >,\n {\n 'aria-current': tabSelected ? true : undefined,\n }\n )\n : children}\n </Styled.TabInner>\n </Styled.Tab>\n )\n}\n\nexport const Tab = React.forwardRef(TabInternal) as <Role extends TabRole>(\n props:\n | TabProps<Role>\n | (BaseTabProps & { ref?: React.ComponentPropsWithRef<'div'>['ref'] })\n) => ReturnType<typeof TabInternal>\n\nexport const MoreMenu = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TabDropdownProps\n>(function MoreMenu({ children, id }, ref) {\n const ctx = useOverlayTriggerContext()\n\n const menuRef = React.useRef<MenuRef | null>(null)\n\n React.useEffect(function () {\n menuRef.current?.el?.focus()\n menuRef.current?.highlightFirst()\n menuRef.current?.highlightSelected()\n }, [])\n\n function onSelect(selection: Selection) {\n ctx.hide(selection.event)\n }\n\n return (\n <StyledOverlay ref={ref}>\n <MenuImperative id={id} role=\"menu\" ref={menuRef} onSelect={onSelect}>\n <MenuImperative.Options>\n {React.Children.map(children, (child, i) => {\n if (React.isValidElement<BaseTabProps>(child)) {\n return (\n <MenuImperative.Item\n item={null}\n key={i}\n selected={child.props.selected || child.props.active}\n >\n {React.cloneElement(\n child as React.ReactElement<BaseTabProps>,\n { ref: null } as Partial<BaseTabProps>\n )}\n </MenuImperative.Item>\n )\n }\n })}\n </MenuImperative.Options>\n </MenuImperative>\n </StyledOverlay>\n )\n})\n\nconst Tabs_ = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TabsProps\n>(function Tabs(\n {\n children,\n className,\n dark = false,\n qa,\n UNSAFE_helixHeader = false,\n ...props\n },\n ref\n) {\n const i18n = useI18nContext()\n\n const [moreMenuIsShown, setMoreMenuIsShown] = React.useState(false)\n const [tabElements, setTabElements] = React.useState<\n (HTMLDivElement | null)[]\n >([])\n const [cutoffIndex, setCutoffIndex] = React.useState(0)\n\n const containerRef = React.useRef<HTMLDivElement>(null)\n\n function recalculate() {\n const container = getBoundingRect(containerRef.current!)\n\n const { subtotals } = tabElements.reduce(\n (acc, el) => {\n if (!el) {\n return acc\n }\n const rect = getBoundingRect(el)\n const extraSpace = UNSAFE_helixHeader\n ? HelixHeaderExtraTabSpacing\n : ExtraTabSpacing\n return {\n subtotals: [...acc.subtotals, acc.total + rect.width],\n total: acc.total + rect.width + extraSpace,\n }\n },\n { subtotals: new Array(), total: 0 }\n )\n\n const index = subtotals.findIndex((val: number) => val >= container.width)\n\n setCutoffIndex(index)\n }\n\n useResize({ onResize: recalculate })\n\n React.useEffect(recalculate)\n\n const filtered = React.Children.toArray(children).filter((child) => child)\n\n const overflowing = filtered.slice(cutoffIndex - 1)\n\n const isOverflowingSelected = React.Children.toArray(overflowing).some(\n (child) =>\n React.isValidElement(child) &&\n (child.props.active || child.props.selected)\n )\n\n const Styled = getStyledComponents(UNSAFE_helixHeader)\n\n return (\n <StyledTabs ref={ref} $dark={dark} index={cutoffIndex} {...props}>\n <StyledTabList ref={containerRef}>\n {filtered.map((child, i) => {\n if (React.isValidElement(child))\n return React.cloneElement(\n child as React.ReactElement<\n BaseTabProps & {\n dark?: boolean\n onMount?: (el: HTMLDivElement | null) => void\n onUnmount?: () => void\n }\n >,\n {\n dark,\n onMount: (el: HTMLDivElement | null) => {\n setTabElements((elements) => {\n const oldElements = [...elements]\n oldElements[i] = el\n return oldElements\n })\n },\n onUnmount: () => {\n setTabElements((elements) => {\n const oldElements = [...elements]\n oldElements[i] = null\n return oldElements\n })\n },\n }\n )\n })}\n\n <OverlayTrigger\n autoFocus\n beforeShow={() => setMoreMenuIsShown(true)}\n afterHide={() => setMoreMenuIsShown(false)}\n trigger=\"click\"\n passA11yPropsToOverlay\n placement=\"bottom-right\"\n overlay={<MoreMenu>{overflowing}</MoreMenu>}\n ref={ref}\n role=\"menu\"\n >\n <Styled.DropdownTab\n $selected={isOverflowingSelected}\n $dark={dark}\n aria-hidden={!overflowing.length}\n as=\"button\"\n >\n <Styled.DropdownTabInner\n $selected={isOverflowingSelected}\n $dark={dark}\n >\n <Styled.Link data-qa={qa?.more}>\n {i18n.t('core.tabs.more')}\n </Styled.Link>\n {moreMenuIsShown ? (\n <CaretUp size=\"sm\" />\n ) : (\n <CaretDown size=\"sm\" />\n )}\n </Styled.DropdownTabInner>\n </Styled.DropdownTab>\n </OverlayTrigger>\n </StyledTabList>\n </StyledTabs>\n )\n})\n\nTabs_.displayName = 'Tabs'\n\nLink.displayName = 'Tabs.Link'\n\n// @ts-ignore\nTab.displayName = 'Tabs.Tab'\n\n/**\n\n We use tabs to navigate between different, but related content.\n Tabs are commonly used on tool landing pages and on item detail pages.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-tabs--demo)\n\n @see [Design Guidelines](https://design.procore.com/tabs)\n\n */\nexport const Tabs = addSubcomponents(\n {\n Link,\n Tab,\n },\n Tabs_\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,SAAS,EAAEC,OAAO,QAAQ,0BAA0B;AAC7D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,cAAc,QAAQ,kCAAkC;AAEjE,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,SAAS,QAAQ,kBAAkB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,eAAe,QAAQ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AAErK,KAAA,CAAA+B,aAAA,CAACsD,QAAQ,QAAEpC,WAAsB,CAAE;IAC5C1B,GAAG,EAAEA,GAAI;IACTc,IAAI,EAAC;EAAM,gBAEXrC,KAAA,CAAA+B,aAAA,CAACD,MAAM,CAACwI,WAAW;IACjBvF,SAAS,EAAE4E,qBAAsB;IACjC3E,KAAK,EAAEC,IAAK;IACZ,eAAa,CAAChC,WAAW,CAACsH,MAAO;IACjCpI,EAAE,EAAC;EAAQ,gBAEXnC,KAAA,CAAA+B,aAAA,CAACD,MAAM,CAAC0I,gBAAgB;IACtBzF,SAAS,EAAE4E,qBAAsB;IACjC3E,KAAK,EAAEC;EAAK,gBAEZjF,KAAA,CAAA+B,aAAA,CAACD,MAAM,CAACV,IAAI;IAAC,WAAS+F,EAAE,aAAFA,EAAE,uBAAFA,EAAE,CAAEsD;EAAK,GAC5BnD,IAAI,CAACoD,CAAC,CAAC,gBAAgB,CACb,CAAC,EACb/C,eAAe,gBACd3H,KAAA,CAAA+B,aAAA,CAAChC,OAAO;IAAC4K,IAAI,EAAC;EAAI,CAAE,CAAC,gBAErB3K,KAAA,CAAA+B,aAAA,CAACjC,SAAS;IAAC6K,IAAI,EAAC;EAAI,CAAE,CAED,CACP,CACN,CACH,CACL,CAAC;AAEjB,CAAC,CAAC;AAEF7D,KAAK,CAAC8D,WAAW,GAAG,MAAM;AAE1BxJ,IAAI,CAACwJ,WAAW,GAAG,WAAW;;AAE9B;AACA9F,GAAG,CAAC8F,WAAW,GAAG,UAAU;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAM7D,IAAI,GAAGvG,gBAAgB,CAClC;EACEY,IAAI,EAAJA,IAAI;EACJ0D,GAAG,EAAHA;AACF,CAAC,EACDgC,KACF,CAAC"}
@@ -17,17 +17,17 @@ var borderRadius = /*#__PURE__*/css(["border-radius:", "px ", "px 0 0;"], spacin
17
17
  */
18
18
  var StyledTabBase = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledTabBase",
20
- componentId: "core-12_31_0__sc-17s58xs-0"
20
+ componentId: "core-12_32_0__sc-17s58xs-0"
21
21
  })(["align-items:center;box-sizing:border-box;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;position:relative;white-space:nowrap;text-decoration:none;background-color:transparent;border:none;font-family:inherit;padding:0;"]);
22
22
  var StyledTabInnerBase = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "StyledTabInnerBase",
24
- componentId: "core-12_31_0__sc-17s58xs-1"
24
+ componentId: "core-12_32_0__sc-17s58xs-1"
25
25
  })(["align-self:baseline;box-sizing:border-box;&,> a{display:flex;text-decoration:none;width:100%;}"]);
26
26
 
27
27
  // This so that it can be visible/hidden via CSS down below
28
28
  var StyledDropdownTabBase = /*#__PURE__*/styled(StyledTabBase).withConfig({
29
29
  displayName: "StyledDropdownTabBase",
30
- componentId: "core-12_31_0__sc-17s58xs-2"
30
+ componentId: "core-12_32_0__sc-17s58xs-2"
31
31
  })(["", ""], hiddenTab);
32
32
 
33
33
  //// END BASE LAYOUT COMPONENTS FOR TABS ////
@@ -50,11 +50,11 @@ function getTabStyle() {
50
50
  }
51
51
  var StyledTab = /*#__PURE__*/styled(StyledTabBase).withConfig({
52
52
  displayName: "StyledTab",
53
- componentId: "core-12_31_0__sc-17s58xs-3"
53
+ componentId: "core-12_32_0__sc-17s58xs-3"
54
54
  })(["", ""], getTabStyle);
55
55
  var StyledTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
56
56
  displayName: "StyledTabInner",
57
- componentId: "core-12_31_0__sc-17s58xs-4"
57
+ componentId: "core-12_32_0__sc-17s58xs-4"
58
58
  })(["", " padding:0 ", "px;font-weight:", ";&,> a{", ";color:", ";height:23px;}", ""], getTypographyIntent('body'), spacing.xs, function (_ref3) {
59
59
  var $selected = _ref3.$selected;
60
60
  return $selected ? 600 : 400;
@@ -67,15 +67,15 @@ var StyledTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
67
67
  });
68
68
  var StyledDropdownTab = /*#__PURE__*/styled(StyledDropdownTabBase).withConfig({
69
69
  displayName: "StyledDropdownTab",
70
- componentId: "core-12_31_0__sc-17s58xs-5"
70
+ componentId: "core-12_32_0__sc-17s58xs-5"
71
71
  })(["", ""], getTabStyle);
72
72
  var StyledDropdownTabInner = /*#__PURE__*/styled(StyledTabInner).withConfig({
73
73
  displayName: "StyledDropdownTabInner",
74
- componentId: "core-12_31_0__sc-17s58xs-6"
74
+ componentId: "core-12_32_0__sc-17s58xs-6"
75
75
  })(["align-items:center;cursor:pointer;display:inline-flex;"]);
76
76
  var StyledLink = /*#__PURE__*/styled.span.withConfig({
77
77
  displayName: "StyledLink",
78
- componentId: "core-12_31_0__sc-17s58xs-7"
78
+ componentId: "core-12_32_0__sc-17s58xs-7"
79
79
  })(["align-items:center;display:flex;height:23px;", ";box-sizing:border-box;"], borderRadius);
80
80
 
81
81
  //// END TRADITIONAL DESIGN SYSTEM TAB STYLES ////
@@ -92,34 +92,34 @@ function getHelixHeaderTabStyles() {
92
92
  }
93
93
  var StyledGlobalNavigationTab = /*#__PURE__*/styled(StyledTabBase).withConfig({
94
94
  displayName: "StyledGlobalNavigationTab",
95
- componentId: "core-12_31_0__sc-17s58xs-8"
95
+ componentId: "core-12_32_0__sc-17s58xs-8"
96
96
  })(["", ""], getHelixHeaderTabStyles);
97
97
  var StyledGlobalNavigationDropdownTab = /*#__PURE__*/styled(StyledDropdownTabBase).withConfig({
98
98
  displayName: "StyledGlobalNavigationDropdownTab",
99
- componentId: "core-12_31_0__sc-17s58xs-9"
99
+ componentId: "core-12_32_0__sc-17s58xs-9"
100
100
  })(["", ""], getHelixHeaderTabStyles);
101
101
  var StyledGlobalNavigationDropdownTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
102
102
  displayName: "StyledGlobalNavigationDropdownTabInner",
103
- componentId: "core-12_31_0__sc-17s58xs-10"
103
+ componentId: "core-12_32_0__sc-17s58xs-10"
104
104
  })(["align-items:center;cursor:pointer;display:inline-flex;"]);
105
105
  var StyledGlobalNavigationLink = /*#__PURE__*/styled.span.withConfig({
106
106
  displayName: "StyledGlobalNavigationLink",
107
- componentId: "core-12_31_0__sc-17s58xs-11"
107
+ componentId: "core-12_32_0__sc-17s58xs-11"
108
108
  })(["padding-left:6px;padding-right:6px;"]);
109
109
 
110
110
  //// END HELIX GLOBAL NAVIGATION TAB STYLES ////
111
111
 
112
112
  export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
113
113
  displayName: "StyledOverlay",
114
- componentId: "core-12_31_0__sc-17s58xs-12"
114
+ componentId: "core-12_32_0__sc-17s58xs-12"
115
115
  })(["max-height:40vh;", "{padding:0;display:flex;justify-content:center;a{margin:unset;padding:unset;}}", "{padding:0;display:flex;}", "{padding:2px 16px 4px 16px;}", ",", "{color:", ";border-radius:0;display:flex;width:100%;background:inherit;font-weight:inherit;font-size:inherit;padding:0;}[data-selected='true']{", ",", "{border-bottom-color:transparent;color:", ";}}"], StyledItem, StyledLink, StyledTabInnerBase, StyledLink, StyledTabBase, colors.gray15, StyledLink, StyledTabBase, colors.blue50);
116
116
  export var StyledTabList = /*#__PURE__*/styled.div.withConfig({
117
117
  displayName: "StyledTabList",
118
- componentId: "core-12_31_0__sc-17s58xs-13"
118
+ componentId: "core-12_32_0__sc-17s58xs-13"
119
119
  })(["display:flex;width:100%;"]);
120
120
  export var StyledTabs = /*#__PURE__*/styled.nav.withConfig({
121
121
  displayName: "StyledTabs",
122
- componentId: "core-12_31_0__sc-17s58xs-14"
122
+ componentId: "core-12_32_0__sc-17s58xs-14"
123
123
  })(["background-color:", ";display:flex;overflow:hidden;width:100%;", "{&:nth-child(1n + ", "){&:not(", "){", "}}}", ""], function (_ref6) {
124
124
  var $dark = _ref6.$dark;
125
125
  return $dark && colors.gray15;
@@ -48,7 +48,7 @@ var getSlideOutAnimation = function getSlideOutAnimation($placement) {
48
48
  };
49
49
  export var StyledTearsheetContent = /*#__PURE__*/styled.div.withConfig({
50
50
  displayName: "StyledTearsheetContent",
51
- componentId: "core-12_31_0__sc-ljrxoq-0"
51
+ componentId: "core-12_32_0__sc-ljrxoq-0"
52
52
  })(["display:flex;z-index:2;width:100%;", " ", " ", " ", ""], function (_ref) {
53
53
  var $open = _ref.$open,
54
54
  $placement = _ref.$placement;
@@ -68,7 +68,7 @@ export var StyledTearsheetContent = /*#__PURE__*/styled.div.withConfig({
68
68
  export var minScrimSize = spacing.xxl * 3;
69
69
  export var StyledTearsheetBody = /*#__PURE__*/styled.div.withConfig({
70
70
  displayName: "StyledTearsheetBody",
71
- componentId: "core-12_31_0__sc-ljrxoq-1"
71
+ componentId: "core-12_32_0__sc-ljrxoq-1"
72
72
  })(["display:flex;overflow-y:auto;flex-direction:column;background-color:", ";&:focus-visible{", "}", " ", "}"], colors.white, getFocusInset(), function (_ref5) {
73
73
  var $block = _ref5.$block,
74
74
  $placement = _ref5.$placement,
@@ -89,7 +89,7 @@ var zoomIn = /*#__PURE__*/keyframes(["from{transform:scale(0);}to{transform:scal
89
89
  var zoomOut = /*#__PURE__*/keyframes(["from{transform:scale(1);}to{transform:scale(0);}"]);
90
90
  export var StyledScrimContainer = /*#__PURE__*/styled.div.withConfig({
91
91
  displayName: "StyledScrimContainer",
92
- componentId: "core-12_31_0__sc-ljrxoq-2"
92
+ componentId: "core-12_32_0__sc-ljrxoq-2"
93
93
  })(["", ""], function (_ref7) {
94
94
  var $placement = _ref7.$placement;
95
95
  var minSizeProp = ['top', 'bottom'].includes($placement) ? 'min-height' : 'min-width';
@@ -97,7 +97,7 @@ export var StyledScrimContainer = /*#__PURE__*/styled.div.withConfig({
97
97
  });
98
98
  export var StyledButtonContainer = /*#__PURE__*/styled.div.withConfig({
99
99
  displayName: "StyledButtonContainer",
100
- componentId: "core-12_31_0__sc-ljrxoq-3"
100
+ componentId: "core-12_32_0__sc-ljrxoq-3"
101
101
  })(["", ""], function (_ref8) {
102
102
  var $placement = _ref8.$placement;
103
103
  switch ($placement) {
@@ -112,7 +112,7 @@ export var StyledButtonContainer = /*#__PURE__*/styled.div.withConfig({
112
112
  });
113
113
  export var StyledButtonCard = /*#__PURE__*/styled(Card).withConfig({
114
114
  displayName: "StyledButtonCard",
115
- componentId: "core-12_31_0__sc-ljrxoq-4"
115
+ componentId: "core-12_32_0__sc-ljrxoq-4"
116
116
  })(["display:inline-flex;margin:", "px;", " ", " ", ""], spacing.xl, function (_ref9) {
117
117
  var $open = _ref9.$open;
118
118
  return $open ? css(["transform:scale(1);"]) : css(["transform:scale(0);"]);
@@ -3,7 +3,7 @@ import { getInputStyles } from '../Input/Input.styles';
3
3
  import { spacing } from '../_styles/spacing';
4
4
  export var StyledTextArea = /*#__PURE__*/styled.textarea.withConfig({
5
5
  displayName: "StyledTextArea",
6
- componentId: "core-12_31_0__sc-u5mow1-0"
6
+ componentId: "core-12_32_0__sc-u5mow1-0"
7
7
  })(["", ";height:auto;min-height:64px;padding:", "px ", "px;resize:", ";"], getInputStyles, spacing.sm, spacing.md, function (_ref) {
8
8
  var _ref$$resize = _ref.$resize,
9
9
  $resize = _ref$$resize === void 0 ? 'both' : _ref$$resize;
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  export var StyledEditor = /*#__PURE__*/styled.div.withConfig({
3
3
  displayName: "StyledEditor",
4
- componentId: "core-12_31_0__sc-1lje1b0-0"
4
+ componentId: "core-12_32_0__sc-1lje1b0-0"
5
5
  })(["> .tox-tinymce{border:none;}"]);
6
6
  //# sourceMappingURL=TextEditorOutput.styles.js.map