@procore/core-react 11.24.4 → 11.25.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 (277) hide show
  1. package/dist/Avatar/Avatar.d.ts +1 -1
  2. package/dist/Avatar/Avatar.styles.js +5 -5
  3. package/dist/AvatarStack/AvatarStack.d.ts +7 -7
  4. package/dist/AvatarStack/AvatarStack.styles.d.ts +1 -1
  5. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  6. package/dist/Badge/Badge.styles.js +2 -2
  7. package/dist/Banner/Banner.styles.js +10 -10
  8. package/dist/Box/Box.styles.js +1 -1
  9. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  10. package/dist/Button/Button.styles.js +5 -5
  11. package/dist/Calendar/Calendar.d.ts +1 -1
  12. package/dist/Calendar/Calendar.styles.js +8 -8
  13. package/dist/Card/Card.styles.js +1 -1
  14. package/dist/Checkbox/Checkbox.d.ts +1 -1
  15. package/dist/Checkbox/Checkbox.js +26 -6
  16. package/dist/Checkbox/Checkbox.js.map +1 -1
  17. package/dist/Checkbox/Checkbox.styles.d.ts +6 -2
  18. package/dist/Checkbox/Checkbox.styles.js +21 -17
  19. package/dist/Checkbox/Checkbox.styles.js.map +1 -1
  20. package/dist/Checkbox/Checkbox.types.d.ts +10 -0
  21. package/dist/Checkbox/Checkbox.types.js.map +1 -1
  22. package/dist/ContactItem/ContactItem.styles.d.ts +1 -1
  23. package/dist/ContactItem/ContactItem.styles.js +5 -5
  24. package/dist/Content/Content.d.ts +3 -3
  25. package/dist/Content/Content.styles.js +2 -2
  26. package/dist/DateInput/DateInput.styles.js +6 -6
  27. package/dist/DetailPage/DetailPage.styles.js +7 -7
  28. package/dist/Dropdown/Dropdown.styles.js +3 -3
  29. package/dist/DropdownFlyout/DropdownFlyout.d.ts +2 -2
  30. package/dist/DropdownFlyout/DropdownFlyout.helpers.d.ts +1 -1
  31. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  32. package/dist/Dropzone/Dropzone.d.ts +2 -2
  33. package/dist/Dropzone/Dropzone.js +1 -1
  34. package/dist/Dropzone/Dropzone.styles.js +9 -9
  35. package/dist/EmptyState/EmptyState.styles.js +6 -6
  36. package/dist/Field/Field.styles.js +3 -3
  37. package/dist/FileList/FileList.d.ts +1 -1
  38. package/dist/FileList/FileList.styles.js +4 -4
  39. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  40. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.d.ts +2 -2
  41. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  42. package/dist/FileSelect/FileSelect.styles.js +2 -2
  43. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  44. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  45. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  46. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  47. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  48. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.d.ts +2 -2
  49. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  50. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  51. package/dist/FileToken/FileToken.styles.js +4 -4
  52. package/dist/FilterToken/FilterToken.styles.js +2 -2
  53. package/dist/FlexList/FlexList.styles.js +1 -1
  54. package/dist/Form/Form.d.ts +72 -72
  55. package/dist/Form/Form.js +67 -35
  56. package/dist/Form/Form.js.map +1 -1
  57. package/dist/Form/Form.styles.d.ts +8 -4
  58. package/dist/Form/Form.styles.js +49 -35
  59. package/dist/Form/Form.styles.js.map +1 -1
  60. package/dist/Form/Form.types.d.ts +28 -1
  61. package/dist/Form/Form.types.js.map +1 -1
  62. package/dist/Form/FormFieldTooltip.d.ts +4 -0
  63. package/dist/Form/FormFieldTooltip.js +18 -0
  64. package/dist/Form/FormFieldTooltip.js.map +1 -0
  65. package/dist/Form/stories/util.d.ts +5 -3
  66. package/dist/Form/stories/util.js +61 -17
  67. package/dist/Form/stories/util.js.map +1 -1
  68. package/dist/Grid/Grid.d.ts +1 -1
  69. package/dist/Grid/Grid.styles.js +2 -2
  70. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  71. package/dist/Input/Input.styles.js +1 -1
  72. package/dist/Link/Link.styles.js +1 -1
  73. package/dist/ListPage/ListPage.styles.js +8 -8
  74. package/dist/Loader/Loader.styles.js +2 -2
  75. package/dist/Menu/Menu.d.ts +4 -4
  76. package/dist/MenuImperative/MenuImperative.d.ts +3 -3
  77. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  78. package/dist/Modal/ChildRegistry.context.d.ts +1 -1
  79. package/dist/Modal/Modal.d.ts +1 -1
  80. package/dist/Modal/Modal.styles.js +13 -13
  81. package/dist/Modal/storyHelpers.d.ts +2 -2
  82. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  83. package/dist/NextMenu/NextMenu.styles.js +3 -3
  84. package/dist/NextTile/NextTile.d.ts +1 -1
  85. package/dist/Notation/Notation.js +1 -1
  86. package/dist/NumberInput/NumberInput.styles.js +7 -7
  87. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  88. package/dist/OverlayTrigger/OverlayTrigger.d.ts +1 -1
  89. package/dist/OverlayTrigger/OverlayTrigger.js +9 -3
  90. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  91. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +2 -1
  92. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  93. package/dist/OverlayTrigger/a11yPresets.d.ts +48 -48
  94. package/dist/PageLayout/PageLayout.d.ts +1 -1
  95. package/dist/PageLayout/PageLayout.styles.js +13 -13
  96. package/dist/Pagination/Pagination.styles.js +5 -5
  97. package/dist/Panel/Panel.styles.js +11 -11
  98. package/dist/Pill/Pill.styles.js +2 -2
  99. package/dist/PillSelect/PillSelect.styles.js +4 -4
  100. package/dist/Popover/Popover.d.ts +1 -1
  101. package/dist/Popover/Popover.styles.js +2 -2
  102. package/dist/Portal/Portal.styles.js +1 -1
  103. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  104. package/dist/RadioButton/RadioButton.styles.js +3 -3
  105. package/dist/Required/Required.styles.js +6 -4
  106. package/dist/Required/Required.styles.js.map +1 -1
  107. package/dist/Search/Search.styles.js +5 -5
  108. package/dist/Section/Section.d.ts +2 -2
  109. package/dist/Section/Section.styles.js +6 -6
  110. package/dist/SegmentedController/SegmentedController.d.ts +2 -2
  111. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  112. package/dist/Select/Select.js +3 -1
  113. package/dist/Select/Select.js.map +1 -1
  114. package/dist/Select/Select.styles.js +7 -7
  115. package/dist/Select/Select.types.d.ts +3 -2
  116. package/dist/Select/Select.types.js.map +1 -1
  117. package/dist/Semantic/Semantic.styles.d.ts +1 -1
  118. package/dist/Semantic/Semantic.styles.js +8 -8
  119. package/dist/Sidebar/Sidebar.styles.js +7 -7
  120. package/dist/Slider/Slider.styles.js +5 -5
  121. package/dist/Spinner/Spinner.styles.js +7 -7
  122. package/dist/SuperSelect/SuperSelect.components.d.ts +29 -29
  123. package/dist/SuperSelect/SuperSelect.d.ts +29 -29
  124. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  125. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  126. package/dist/SuperSelect/useSuperSelect.d.ts +87 -87
  127. package/dist/Switch/Switch.styles.js +4 -4
  128. package/dist/Table/Table.styles.js +28 -28
  129. package/dist/TableShelf/TableShelf.styles.js +5 -5
  130. package/dist/Tabs/Tabs.d.ts +1 -1
  131. package/dist/Tabs/Tabs.styles.js +8 -8
  132. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  133. package/dist/TextArea/TextArea.styles.js +1 -1
  134. package/dist/TextEditor/TextEditor.d.ts +3 -3
  135. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  136. package/dist/Thumbnail/Thumbnail.d.ts +3 -3
  137. package/dist/Thumbnail/Thumbnail.hooks.d.ts +226 -210
  138. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  139. package/dist/Thumbnail/ThumbnailCaption.d.ts +2 -2
  140. package/dist/Thumbnail/ThumbnailDocumentIcon.d.ts +2 -2
  141. package/dist/Thumbnail/ThumbnailPreview.d.ts +2 -2
  142. package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +2 -2
  143. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  144. package/dist/TieredSelect/TieredSelect.styles.d.ts +1 -1
  145. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  146. package/dist/Tile/Tile.styles.js +8 -8
  147. package/dist/Title/Title.styles.js +7 -7
  148. package/dist/Toast/Toast.styles.js +3 -3
  149. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  150. package/dist/Token/Token.styles.js +3 -3
  151. package/dist/ToolHeader/ActionIcon.d.ts +2 -2
  152. package/dist/ToolHeader/ToolHeader.d.ts +2 -2
  153. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  154. package/dist/Tooltip/Tooltip.styles.js +2 -2
  155. package/dist/Tree/Tree.hooks.js +58 -36
  156. package/dist/Tree/Tree.hooks.js.map +1 -1
  157. package/dist/Tree/Tree.js +1 -1
  158. package/dist/Tree/Tree.js.map +1 -1
  159. package/dist/Tree/Tree.styles.js +9 -9
  160. package/dist/Tree/Tree.types.d.ts +7 -3
  161. package/dist/Tree/Tree.types.js.map +1 -1
  162. package/dist/Typeahead/Typeahead.styles.js +3 -3
  163. package/dist/Typography/Typography.colors.story.d.ts +2 -2
  164. package/dist/Typography/Typography.styles.js +1 -1
  165. package/dist/Typography/Typography.table.story.d.ts +2 -2
  166. package/dist/Typography/Typography.table.story.js +2 -2
  167. package/dist/_hooks/Analytics.d.ts +1 -1
  168. package/dist/_hooks/Anchor.d.ts +1 -1
  169. package/dist/_hooks/BoundingRect.d.ts +1 -1
  170. package/dist/_hooks/Buffer.d.ts +1 -1
  171. package/dist/_hooks/ClickOutside.d.ts +3 -2
  172. package/dist/_hooks/ClickOutside.js +8 -3
  173. package/dist/_hooks/ClickOutside.js.map +1 -1
  174. package/dist/_hooks/DateTime/DateTime.d.ts +1 -1
  175. package/dist/_hooks/DelayedToggle.d.ts +1 -1
  176. package/dist/_hooks/Event.d.ts +1 -1
  177. package/dist/_hooks/EventListener.js +14 -4
  178. package/dist/_hooks/EventListener.js.map +1 -1
  179. package/dist/_hooks/I18n.d.ts +387 -2
  180. package/dist/_hooks/InjectedScript.d.ts +1 -1
  181. package/dist/_hooks/ListNavigation.d.ts +1 -1
  182. package/dist/_hooks/TextEntry.d.ts +1 -1
  183. package/dist/_hooks/Timer.d.ts +1 -1
  184. package/dist/_hooks/Trigger.d.ts +1 -1
  185. package/dist/_hooks/Visibility.d.ts +1 -1
  186. package/dist/_hooks/ZIndex.d.ts +1 -1
  187. package/dist/_hooks/__tests__/EventListener.test.js +46 -0
  188. package/dist/_hooks/useSet.js +3 -3
  189. package/dist/_hooks/useSet.js.map +1 -1
  190. package/dist/_locales/de-DE.json +3 -1
  191. package/dist/_locales/en-AU.json +3 -1
  192. package/dist/_locales/en-CA.json +3 -1
  193. package/dist/_locales/en-GB.json +3 -1
  194. package/dist/_locales/en.json +3 -1
  195. package/dist/_locales/es-ES.json +3 -1
  196. package/dist/_locales/es.json +3 -1
  197. package/dist/_locales/fr-CA.json +3 -1
  198. package/dist/_locales/fr-FR.json +3 -1
  199. package/dist/_locales/is-IS.json +3 -1
  200. package/dist/_locales/ja-JP.json +360 -1
  201. package/dist/_locales/pt-BR.json +3 -1
  202. package/dist/_locales/th-TH.json +3 -1
  203. package/dist/_locales/zh-SG.json +3 -1
  204. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  205. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  206. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  207. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  208. package/dist/_typedoc/Box/Box.types.json +68 -68
  209. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  210. package/dist/_typedoc/Button/Button.types.json +11 -11
  211. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  212. package/dist/_typedoc/Card/Card.types.json +6 -6
  213. package/dist/_typedoc/Checkbox/Checkbox.types.json +27 -7
  214. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  215. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  216. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  217. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  218. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  219. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  220. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  221. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  222. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  223. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  224. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  225. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  226. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +11 -11
  227. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  228. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  229. package/dist/_typedoc/Form/Form.types.json +980 -700
  230. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  231. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  232. package/dist/_typedoc/Input/Input.types.json +2 -2
  233. package/dist/_typedoc/Link/Link.types.json +4 -4
  234. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  235. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  236. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  237. package/dist/_typedoc/Modal/Modal.types.json +41 -41
  238. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  239. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  240. package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
  241. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +40 -30
  242. package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
  243. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  244. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  245. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  246. package/dist/_typedoc/PillSelect/PillSelect.types.json +56 -46
  247. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  248. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  249. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  250. package/dist/_typedoc/Required/Required.types.json +5 -5
  251. package/dist/_typedoc/Search/Search.types.json +18 -18
  252. package/dist/_typedoc/Section/Section.types.json +14 -14
  253. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  254. package/dist/_typedoc/Select/Select.types.json +75 -55
  255. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  256. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  257. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  258. package/dist/_typedoc/Table/Table.types.json +106 -96
  259. package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
  260. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  261. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  262. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  263. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  264. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  265. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  266. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  267. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  268. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  269. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  270. package/dist/_typedoc/Token/Token.types.json +4 -4
  271. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  272. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  273. package/dist/_typedoc/Tree/Tree.types.json +94 -94
  274. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  275. package/dist/_typedoc/Typography/Typography.types.json +8 -8
  276. package/dist/_typedoc/_utils/types.json +3 -3
  277. package/package.json +1 -1
@@ -6,14 +6,14 @@ import { PillColorPalets } from './Pill.colorPalette';
6
6
  var pillButtonSize = 16;
7
7
  export var StyledPill = /*#__PURE__*/styled.span.withConfig({
8
8
  displayName: "StyledPill",
9
- componentId: "core-11_24_4__sc-99e1t5-0"
9
+ componentId: "core-11_25_1__sc-99e1t5-0"
10
10
  })(["", " display:inline-block;padding:1px ", "px;border:1px solid;border-radius:10px;font-weight:600;& + &{margin-left:", "px;}", ""], getTypographyIntent('small'), spacing.sm, spacing.xs, function (_ref) {
11
11
  var $color = _ref.$color;
12
12
  return css(["background-color:", ";border-color:", ";color:", ";"], PillColorPalets[$color].backgroundColor, PillColorPalets[$color].borderColor, PillColorPalets[$color].color);
13
13
  });
14
14
  export var StyledRemove = /*#__PURE__*/styled(Clear).withConfig({
15
15
  displayName: "StyledRemove",
16
- componentId: "core-11_24_4__sc-99e1t5-1"
16
+ componentId: "core-11_25_1__sc-99e1t5-1"
17
17
  })(["border-radius:100%;cursor:pointer;flex:0 0 auto;height:", "px;margin:0 -", "px 0 ", "px;width:", "px;vertical-align:top;", ""], pillButtonSize, pillButtonSize / 2 - spacing.xxs, spacing.xxs, pillButtonSize, function (_ref2) {
18
18
  var $color = _ref2.$color;
19
19
  return css(["&:hover{background:", ";color:", ";}"], PillColorPalets[$color].color, PillColorPalets[$color].backgroundColor);
@@ -6,19 +6,19 @@ import { spacing } from '../_styles/spacing';
6
6
  var checkedIconPlaceholderWidth = 32;
7
7
  export var PillSelectOptionWrapper = /*#__PURE__*/styled.div.withConfig({
8
8
  displayName: "PillSelectOptionWrapper",
9
- componentId: "core-11_24_4__sc-1ai2ze0-0"
9
+ componentId: "core-11_25_1__sc-1ai2ze0-0"
10
10
  })(["display:flex;align-items:center;justify-content:space-between;"]);
11
11
  export var PillSelectCheckedContainer = /*#__PURE__*/styled.div.withConfig({
12
12
  displayName: "PillSelectCheckedContainer",
13
- componentId: "core-11_24_4__sc-1ai2ze0-1"
13
+ componentId: "core-11_25_1__sc-1ai2ze0-1"
14
14
  })(["align-items:center;color:", ";display:inline-flex;padding-left:", "px;width:", "px;"], colors.blue50, spacing.sm, checkedIconPlaceholderWidth);
15
15
  export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
16
16
  displayName: "PillSelectLabel",
17
- componentId: "core-11_24_4__sc-1ai2ze0-2"
17
+ componentId: "core-11_25_1__sc-1ai2ze0-2"
18
18
  })(["", ""], getEllipsis);
19
19
  export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "PillSelectLabelWrapper",
21
- componentId: "core-11_24_4__sc-1ai2ze0-3"
21
+ componentId: "core-11_25_1__sc-1ai2ze0-3"
22
22
  })(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
23
23
  var disabled = _ref.disabled;
24
24
  return disabled && css(["pointer-events:none;"]);
@@ -21,7 +21,7 @@ import type { PopoverContentProps, PopoverProps, PopoverRole } from './Popover.t
21
21
  @see [Design Guidelines](https://design.procore.com/popover)
22
22
 
23
23
  */
24
- declare function PopoverInner<Role extends PopoverRole>({ children, initialIsVisible, restoreFocusOnHide, placement, overlay, overlayRef, role, ...props }: PopoverProps<Role>, ref: React.ForwardedRef<HTMLElement>): JSX.Element;
24
+ declare function PopoverInner<Role extends PopoverRole>({ children, initialIsVisible, restoreFocusOnHide, placement, overlay, overlayRef, role, ...props }: PopoverProps<Role>, ref: React.ForwardedRef<HTMLElement>): React.JSX.Element;
25
25
  export declare const Popover: (<Role extends PopoverRole>(props: PopoverProps<Role>) => ReturnType<typeof PopoverInner>) & {
26
26
  Content: React.ForwardRefExoticComponent<DivAttributes & PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
27
27
  };
@@ -5,7 +5,7 @@ import { getShadow } from '../_styles/shadows';
5
5
  export var popoverArrowSize = 6;
6
6
  export var StyledPopoverContent = /*#__PURE__*/styled.span.withConfig({
7
7
  displayName: "StyledPopoverContent",
8
- componentId: "core-11_24_4__sc-1cd0ihn-0"
8
+ componentId: "core-11_25_1__sc-1cd0ihn-0"
9
9
  })(["background-color:", ";border-radius:", "px;color:", ";display:inline-block;max-width:250px;position:relative;", ""], colors.white, borderRadius.md, colors.gray15, function (_ref) {
10
10
  var $fluid = _ref.$fluid;
11
11
  if ($fluid) {
@@ -14,6 +14,6 @@ export var StyledPopoverContent = /*#__PURE__*/styled.span.withConfig({
14
14
  });
15
15
  export var StyledPopover = /*#__PURE__*/styled.div.withConfig({
16
16
  displayName: "StyledPopover",
17
- componentId: "core-11_24_4__sc-1cd0ihn-1"
17
+ componentId: "core-11_25_1__sc-1cd0ihn-1"
18
18
  })(["display:inline-block;", " & + [data-overlay-arrow]{background:", ";}"], getShadow(3), colors.white);
19
19
  //# sourceMappingURL=Popover.styles.js.map
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  export var StyledPortal = /*#__PURE__*/styled.div.withConfig({
3
3
  displayName: "StyledPortal",
4
- componentId: "core-11_24_4__sc-15o1h2-0"
4
+ componentId: "core-11_25_1__sc-15o1h2-0"
5
5
  })(["left:0;pointer-events:none;position:fixed;top:0;> *{pointer-events:all;}"]);
6
6
  //# sourceMappingURL=Portal.styles.js.map
@@ -7,11 +7,11 @@ var animationDelay = '300ms';
7
7
  var fadeIn = /*#__PURE__*/keyframes(["from{opacity:1;}to{opacity:0;}"]);
8
8
  export var StyledProgressBarLoader = /*#__PURE__*/styled(Loader).withConfig({
9
9
  displayName: "StyledProgressBarLoader",
10
- componentId: "core-11_24_4__sc-vdy2wl-0"
10
+ componentId: "core-11_25_1__sc-vdy2wl-0"
11
11
  })([""]);
12
12
  export var StyledProgressBar = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledProgressBar",
14
- componentId: "core-11_24_4__sc-vdy2wl-1"
14
+ componentId: "core-11_25_1__sc-vdy2wl-1"
15
15
  })(["overflow:hidden;position:relative;display:block;height:", "px;background-color:", ";border-radius:", "px;margin:", "px 0;transition:background-color 0s linear;", " ", ""], loaderGridUnit, function (_ref) {
16
16
  var $complete = _ref.$complete;
17
17
  return $complete ? colors.blue50 : colors.gray94;
@@ -9,7 +9,7 @@ export var dataQa = {
9
9
  var radioButtonSize = 20;
10
10
  export var StyledRadioButton = /*#__PURE__*/styled.label.withConfig({
11
11
  displayName: "StyledRadioButton",
12
- componentId: "core-11_24_4__sc-nd95zs-0"
12
+ componentId: "core-11_25_1__sc-nd95zs-0"
13
13
  })(["color:", ";display:flex;position:relative;vertical-align:middle;& + &{margin-top:", "px;}", " ", ""], colors.gray15, spacing.md, function (_ref) {
14
14
  var $error = _ref.$error;
15
15
  return $error && css(["", ":before,", ":checked:not(:disabled) + ", ":before{border-color:", ";}", ":checked:disabled + ", ":before{border-color:", ";}"], StyledRadioButtonLabel, StyledRadioButtonInput, StyledRadioButtonLabel, colors.red50, StyledRadioButtonInput, StyledRadioButtonLabel, colors.gray85);
@@ -19,10 +19,10 @@ export var StyledRadioButton = /*#__PURE__*/styled.label.withConfig({
19
19
  });
20
20
  export var StyledRadioButtonLabel = /*#__PURE__*/styled.span.withConfig({
21
21
  displayName: "StyledRadioButtonLabel",
22
- componentId: "core-11_24_4__sc-nd95zs-1"
22
+ componentId: "core-11_25_1__sc-nd95zs-1"
23
23
  })(["", ";cursor:default;display:flex;&:before{background:", ";border-radius:100%;border:2px solid ", ";content:'';display:inline-block;flex:0;height:", "px;min-width:", "px;width:", "px;}"], getTypographyIntent('body'), colors.white, colors.gray70, radioButtonSize, radioButtonSize, radioButtonSize);
24
24
  export var StyledRadioButtonInput = /*#__PURE__*/styled.input.withConfig({
25
25
  displayName: "StyledRadioButtonInput",
26
- componentId: "core-11_24_4__sc-nd95zs-2"
26
+ componentId: "core-11_25_1__sc-nd95zs-2"
27
27
  })(["left:0;margin:0;opacity:0;padding:0;position:absolute;top:0;&:focus:not(:checked),&[data-qa=", "]:not(:checked){&:not(:disabled) + ", ":before{", "}}&:focus:checked:not(:disabled),&[data-qa=", "]:checked:not(:disabled){+ ", ":before{box-shadow:0 0 0 2px ", ";}}&:checked + ", ":before{border:6px solid ", ";}&:disabled + ", ":before{border-color:", ";}&:disabled:checked + ", ":before{border-color:", ";}"], dataQa.focused, StyledRadioButtonLabel, getFocus(), dataQa.focused, StyledRadioButtonLabel, colors.blue40, StyledRadioButtonLabel, colors.blue50, StyledRadioButtonLabel, colors.gray85, StyledRadioButtonLabel, colors.blue85);
28
28
  //# sourceMappingURL=RadioButton.styles.js.map
@@ -1,9 +1,11 @@
1
1
  import styled, { css } from 'styled-components';
2
+ import { StyledCheckboxLabel } from '../Checkbox/Checkbox.styles';
2
3
  import { getTypographyIntent, typographyWeights } from '../Typography/Typography.styles';
3
4
  import { colors } from '../_styles/colors';
5
+ import { spacing } from '../_styles/spacing';
4
6
  export var StyledRequiredMark = /*#__PURE__*/styled.span.withConfig({
5
7
  displayName: "StyledRequiredMark",
6
- componentId: "core-11_24_4__sc-bja1ql-0"
8
+ componentId: "core-11_25_1__sc-bja1ql-0"
7
9
  })(["color:", ";", ""], colors.red50, function (_ref) {
8
10
  var $showLabel = _ref.$showLabel;
9
11
  if ($showLabel) {
@@ -13,10 +15,10 @@ export var StyledRequiredMark = /*#__PURE__*/styled.span.withConfig({
13
15
  });
14
16
  export var StyledRequiredContainer = /*#__PURE__*/styled.span.withConfig({
15
17
  displayName: "StyledRequiredContainer",
16
- componentId: "core-11_24_4__sc-bja1ql-1"
17
- })(["", ""], getTypographyIntent('small'));
18
+ componentId: "core-11_25_1__sc-bja1ql-1"
19
+ })(["", " ", " > &{margin-left:", "px;}"], getTypographyIntent('small'), StyledCheckboxLabel, spacing.xs);
18
20
  export var StyledRequiredText = /*#__PURE__*/styled.span.withConfig({
19
21
  displayName: "StyledRequiredText",
20
- componentId: "core-11_24_4__sc-bja1ql-2"
22
+ componentId: "core-11_25_1__sc-bja1ql-2"
21
23
  })(["font-style:italic;color:", ";margin-left:4px;"], colors.gray45);
22
24
  //# sourceMappingURL=Required.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Required.styles.js","names":["styled","css","getTypographyIntent","typographyWeights","colors","StyledRequiredMark","span","withConfig","displayName","componentId","red50","_ref","$showLabel","semibold","StyledRequiredContainer","StyledRequiredText","gray45"],"sources":["../../src/Required/Required.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\n\nexport const StyledRequiredMark = styled.span<{ $showLabel: boolean }>`\n color: ${colors.red50};\n\n ${({ $showLabel }) => {\n if ($showLabel) {\n return\n }\n\n return css`\n ${getTypographyIntent('body')}\n font-weight: ${typographyWeights.semibold};\n `\n }}\n`\n\nexport const StyledRequiredContainer = styled.span`\n ${getTypographyIntent('small')}\n`\n\nexport const StyledRequiredText = styled.span`\n font-style: italic;\n color: ${colors.gray45};\n margin-left: 4px;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,OAAO,IAAMC,kBAAkB,gBAAGL,MAAM,CAACM,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wBAClCL,MAAM,CAACM,KAAK,EAEnB,UAAAC,IAAA,EAAoB;EAAA,IAAjBC,UAAU,GAAAD,IAAA,CAAVC,UAAU;EACb,IAAIA,UAAU,EAAE;IACd;EACF;EAEA,OAAOX,GAAG,6BACNC,mBAAmB,CAAC,MAAM,CAAC,EACdC,iBAAiB,CAACU,QAAQ;AAE7C,CAAC,CACF;AAED,OAAO,IAAMC,uBAAuB,gBAAGd,MAAM,CAACM,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,aAC9CP,mBAAmB,CAAC,OAAO,CAAC,CAC/B;AAED,OAAO,IAAMa,kBAAkB,gBAAGf,MAAM,CAACM,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sDAElCL,MAAM,CAACY,MAAM,CAEvB"}
1
+ {"version":3,"file":"Required.styles.js","names":["styled","css","StyledCheckboxLabel","getTypographyIntent","typographyWeights","colors","spacing","StyledRequiredMark","span","withConfig","displayName","componentId","red50","_ref","$showLabel","semibold","StyledRequiredContainer","xs","StyledRequiredText","gray45"],"sources":["../../src/Required/Required.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { StyledCheckboxLabel } from '../Checkbox/Checkbox.styles'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { spacing } from '../_styles/spacing'\n\nexport const StyledRequiredMark = styled.span<{ $showLabel: boolean }>`\n color: ${colors.red50};\n\n ${({ $showLabel }) => {\n if ($showLabel) {\n return\n }\n\n return css`\n ${getTypographyIntent('body')}\n font-weight: ${typographyWeights.semibold};\n `\n }}\n`\n\nexport const StyledRequiredContainer = styled.span`\n ${getTypographyIntent('small')}\n\n ${StyledCheckboxLabel} > & {\n margin-left: ${spacing.xs}px;\n }\n`\n\nexport const StyledRequiredText = styled.span`\n font-style: italic;\n color: ${colors.gray45};\n margin-left: 4px;\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,mBAAmB,QAAQ,6BAA6B;AACjE,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,kBAAkB,gBAAGP,MAAM,CAACQ,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wBAClCN,MAAM,CAACO,KAAK,EAEnB,UAAAC,IAAA,EAAoB;EAAA,IAAjBC,UAAU,GAAAD,IAAA,CAAVC,UAAU;EACb,IAAIA,UAAU,EAAE;IACd;EACF;EAEA,OAAOb,GAAG,6BACNE,mBAAmB,CAAC,MAAM,CAAC,EACdC,iBAAiB,CAACW,QAAQ;AAE7C,CAAC,CACF;AAED,OAAO,IAAMC,uBAAuB,gBAAGhB,MAAM,CAACQ,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,2CAC9CR,mBAAmB,CAAC,OAAO,CAAC,EAE5BD,mBAAmB,EACJI,OAAO,CAACW,EAAE,CAE5B;AAED,OAAO,IAAMC,kBAAkB,gBAAGlB,MAAM,CAACQ,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sDAElCN,MAAM,CAACc,MAAM,CAEvB"}
@@ -27,22 +27,22 @@ export function getSearchInputStyles() {
27
27
  }
28
28
  export var StyledInput = /*#__PURE__*/styled.input.withConfig({
29
29
  displayName: "StyledInput",
30
- componentId: "core-11_24_4__sc-3j8khv-0"
30
+ componentId: "core-11_25_1__sc-3j8khv-0"
31
31
  })(["", ""], getSearchInputStyles);
32
32
  var StyledButton = /*#__PURE__*/styled(Button).withConfig({
33
33
  displayName: "StyledButton",
34
- componentId: "core-11_24_4__sc-3j8khv-1"
34
+ componentId: "core-11_25_1__sc-3j8khv-1"
35
35
  })(["position:absolute;top:", "px;"], buttonTop);
36
36
  export var StyledSearchButton = /*#__PURE__*/styled(StyledButton).withConfig({
37
37
  displayName: "StyledSearchButton",
38
- componentId: "core-11_24_4__sc-3j8khv-2"
38
+ componentId: "core-11_25_1__sc-3j8khv-2"
39
39
  })([""]);
40
40
  export var StyledClearButton = /*#__PURE__*/styled(StyledButton).withConfig({
41
41
  displayName: "StyledClearButton",
42
- componentId: "core-11_24_4__sc-3j8khv-3"
42
+ componentId: "core-11_25_1__sc-3j8khv-3"
43
43
  })([""]);
44
44
  export var StyledSearch = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledSearch",
46
- componentId: "core-11_24_4__sc-3j8khv-4"
46
+ componentId: "core-11_25_1__sc-3j8khv-4"
47
47
  })(["position:relative;width:100%;", "{padding-right:", "px;}", "{right:", "px;}", "{right:", "px;}"], StyledInput, inputRight, StyledSearchButton, searchRight, StyledClearButton, clearRight);
48
48
  //# sourceMappingURL=Search.styles.js.map
@@ -4,8 +4,8 @@ import type { SectionProps, SectionProviderProps } from './Section.types';
4
4
  export declare const LevelContext: React.Context<number>;
5
5
  export declare function Heading({ level: level_, ...props }: HeadingProps & {
6
6
  level?: number;
7
- }): JSX.Element;
8
- export declare const SectionProvider: ({ children }: SectionProviderProps) => JSX.Element;
7
+ }): React.JSX.Element;
8
+ export declare const SectionProvider: ({ children }: SectionProviderProps) => React.JSX.Element;
9
9
  /**
10
10
  * @deprecatedSince 11
11
11
  * @deprecated Intended for internal library development. See Panel.Section or DetailPage.Section
@@ -5,11 +5,11 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledSectionInner = /*#__PURE__*/styled.div.withConfig({
7
7
  displayName: "StyledSectionInner",
8
- componentId: "core-11_24_4__sc-1lxbrwv-0"
8
+ componentId: "core-11_25_1__sc-1lxbrwv-0"
9
9
  })([""]);
10
10
  export var StyledSectionCollapseHeading = /*#__PURE__*/styled.div.withConfig({
11
11
  displayName: "StyledSectionCollapseHeading",
12
- componentId: "core-11_24_4__sc-1lxbrwv-1"
12
+ componentId: "core-11_25_1__sc-1lxbrwv-1"
13
13
  })(["align-self:flex-start;margin-right:", "px;"], spacing.sm);
14
14
  export var sectionClassnames = {
15
15
  divide: 'section--divide',
@@ -20,11 +20,11 @@ export var sectionClassnames = {
20
20
  };
21
21
  export var StyledSection = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledSection",
23
- componentId: "core-11_24_4__sc-1lxbrwv-2"
23
+ componentId: "core-11_25_1__sc-1lxbrwv-2"
24
24
  })(["padding-left:", "px;padding-right:", "px;padding-bottom:", "px;& > ", "{padding-top:", "px;}&.", "{& > ", "{border-top:1px solid ", ";}}&:first-child > ", "{border-top:0;}& &{padding-left:0;padding-right:0;&:first-child > ", "{border-top:1px solid ", ";}&:last-child{padding-bottom:0;}}", ":last-of-type{margin-bottom:", "px;}", " + &&&{padding-top:", "px;}"], spacing.xl, spacing.xl, spacing.xl, StyledSectionInner, spacing.xl, sectionClassnames.divide, StyledSectionInner, colors.gray85, StyledSectionInner, StyledSectionInner, colors.gray85, StyledFormRow, spacing.xl * -1, StyledFormRow, spacing.xs);
25
25
  export var StyledSectionContentRegion = /*#__PURE__*/styled.div.withConfig({
26
26
  displayName: "StyledSectionContentRegion",
27
- componentId: "core-11_24_4__sc-1lxbrwv-3"
27
+ componentId: "core-11_25_1__sc-1lxbrwv-3"
28
28
  })(["padding-top:20px;padding-bottom:", "px;", " ", " & > :not(", ") + ", "{padding-top:", "px;}", " ", " &:last-of-type{padding-bottom:0;}"], spacing.sm, function (_ref) {
29
29
  var $closed = _ref.$closed;
30
30
  return $closed && css(["padding-top:0;padding-bottom:0;"]);
@@ -34,10 +34,10 @@ export var StyledSectionContentRegion = /*#__PURE__*/styled.div.withConfig({
34
34
  }, StyledSection, StyledSection, spacing.xl, StyledSection, StyledSection);
35
35
  export var StyledSectionHeader = /*#__PURE__*/styled.div.withConfig({
36
36
  displayName: "StyledSectionHeader",
37
- componentId: "core-11_24_4__sc-1lxbrwv-4"
37
+ componentId: "core-11_25_1__sc-1lxbrwv-4"
38
38
  })(["align-items:center;display:flex;min-height:36px;word-break:break-word;"]);
39
39
  export var StyledTitle = /*#__PURE__*/styled(Title).withConfig({
40
40
  displayName: "StyledTitle",
41
- componentId: "core-11_24_4__sc-1lxbrwv-5"
41
+ componentId: "core-11_25_1__sc-1lxbrwv-5"
42
42
  })(["width:100%;"]);
43
43
  //# sourceMappingURL=Section.styles.js.map
@@ -70,7 +70,7 @@ export declare const Tooltip: React.ForwardRefExoticComponent<SegmentedControlle
70
70
  *
71
71
  * @deprecatedSince 10.20.0
72
72
  */
73
- export declare const State: (props: any) => JSX.Element;
73
+ export declare const State: (props: any) => React.JSX.Element;
74
74
  /**
75
75
 
76
76
  Segmented controllers allow users to switch between related but mutually
@@ -85,6 +85,6 @@ export declare const State: (props: any) => JSX.Element;
85
85
  */
86
86
  export declare const SegmentedController: React.ForwardRefExoticComponent<SegmentedControllerProps & React.RefAttributes<HTMLDivElement>> & {
87
87
  Segment: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & SegmentedControllerSegmentProps & React.RefAttributes<HTMLInputElement>>;
88
- State: (props: any) => JSX.Element;
88
+ State: (props: any) => React.JSX.Element;
89
89
  Tooltip: React.ForwardRefExoticComponent<SegmentedControllerTooltipProps & React.RefAttributes<HTMLElement>>;
90
90
  };
@@ -5,7 +5,7 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
7
7
  displayName: "StyledContainer",
8
- componentId: "core-11_24_4__sc-ocai3-0"
8
+ componentId: "core-11_25_1__sc-ocai3-0"
9
9
  })(["align-items:center;display:", ";height:36px;justify-content:center;width:", ";"], function (_ref) {
10
10
  var block = _ref.block;
11
11
  return block ? 'flex' : 'inline-flex';
@@ -15,7 +15,7 @@ export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
15
15
  });
16
16
  export var StyledSegment = /*#__PURE__*/styled.label.withConfig({
17
17
  displayName: "StyledSegment",
18
- componentId: "core-11_24_4__sc-ocai3-1"
18
+ componentId: "core-11_25_1__sc-ocai3-1"
19
19
  })(["align-items:center;border-radius:0;border:1px solid ", ";cursor:pointer;display:flex;flex:1 1 auto;height:100%;justify-content:center;min-width:0;outline:0;padding:0 ", "px;position:relative;background-color:", ";color:", ";&:hover{background-color:", ";border-color:", ";color:", ";}", " ", ";"], colors.gray85, spacing.md, colors.white, colors.gray45, colors.gray94, colors.gray85, colors.gray45, function (_ref3) {
20
20
  var _ref3$$focused = _ref3.$focused,
21
21
  $focused = _ref3$$focused === void 0 ? false : _ref3$$focused;
@@ -37,10 +37,10 @@ export var StyledSegment = /*#__PURE__*/styled.label.withConfig({
37
37
  });
38
38
  export var StyledSegmentDisabledInteractiveWrapper = /*#__PURE__*/styled.div.withConfig({
39
39
  displayName: "StyledSegmentDisabledInteractiveWrapper",
40
- componentId: "core-11_24_4__sc-ocai3-2"
40
+ componentId: "core-11_25_1__sc-ocai3-2"
41
41
  })(["display:flex;flex:1 1 auto;min-width:0;height:100%;margin-right:-1px;&:first-child ", "{border-bottom-left-radius:", "px;border-top-left-radius:", "px;}&:last-child ", "{border-bottom-right-radius:", "px;border-top-right-radius:", "px;}"], StyledSegment, borderRadius.md, borderRadius.md, StyledSegment, borderRadius.md, borderRadius.md);
42
42
  export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
43
43
  displayName: "StyledLabel",
44
- componentId: "core-11_24_4__sc-ocai3-3"
44
+ componentId: "core-11_25_1__sc-ocai3-3"
45
45
  })(["", ";display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"], getTypographyIntent('body'));
46
46
  //# sourceMappingURL=SegmentedController.styles.js.map
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["value"],
2
2
  _excluded2 = ["block", "children", "className", "clearRef", "disabled", "error", "focus", "label", "loading", "onClear", "open", "placeholder", "qa", "tabIndex", "isMenuOpened"],
3
3
  _excluded3 = ["onSearch", "footer", "emptyMessage", "optionsRef", "children", "i18nScope", "onSelect", "menuRef"],
4
- _excluded4 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "block", "children", "className", "disabled", "emptyMessage", "error", "footer", "hideDelay", "i18nScope", "label", "loading", "onClear", "onKeyDown", "onScrollBottom", "onSearch", "onSelect", "optionsRef", "placeholder", "placement", "showDelay", "tabIndex", "qa"];
4
+ _excluded4 = ["afterHide", "afterShow", "beforeHide", "beforeShow", "block", "children", "className", "container", "disabled", "emptyMessage", "error", "footer", "hideDelay", "i18nScope", "label", "loading", "onClear", "onKeyDown", "onScrollBottom", "onSearch", "onSelect", "optionsRef", "placeholder", "placement", "showDelay", "tabIndex", "qa"];
5
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
7
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -228,6 +228,7 @@ var Select_ = /*#__PURE__*/React.forwardRef(function Select(_ref6, forwardRef) {
228
228
  block = _ref6$block === void 0 ? false : _ref6$block,
229
229
  children = _ref6.children,
230
230
  className = _ref6.className,
231
+ container = _ref6.container,
231
232
  _ref6$disabled = _ref6.disabled,
232
233
  disabled = _ref6$disabled === void 0 ? false : _ref6$disabled,
233
234
  _ref6$emptyMessage = _ref6.emptyMessage,
@@ -300,6 +301,7 @@ var Select_ = /*#__PURE__*/React.forwardRef(function Select(_ref6, forwardRef) {
300
301
  },
301
302
  beforeShow: beforeShow,
302
303
  canFlip: true,
304
+ container: container,
303
305
  hideDelay: hideDelay,
304
306
  overlay: /*#__PURE__*/React.createElement(SelectMenu, {
305
307
  onSearch: onSearch,
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":["Clear","classNames","isNil","React","Box","MenuImperative","useMenuImperativeControlNavigation","Notation","OverlayTrigger","useOverlayTriggerContext","Spinner","Tooltip","useI18nContext","OverflowObserver","addSubcomponents","StyledSelectArrow","StyledSelectArrowContainer","StyledSelectButton","StyledSelectButtonLabel","StyledSelectClearIcon","StyledSelectMenu","StyledSelectSpinner","noop","isFunction","obj","isOpen","_ref","_ref$open","open","OptGroup","forwardRef","props","ref","createElement","Group","_extends","clickable","Option","_ref2","value","_objectWithoutProperties","_excluded","Item","item","Button","_ref3","_ref3$block","block","children","className","clearRef","_ref3$disabled","disabled","_ref3$error","error","_ref3$focus","focus","label","_ref3$loading","loading","onClear","_ref3$open","placeholder","qa","_ref3$tabIndex","tabIndex","_ref3$isMenuOpened","isMenuOpened","_excluded2","i18n","hasClearIcon","Boolean","content","role","$block","$error","$disabled","$hasClearIcon","$loading","$open","$placeholder","_ref4","isOverflowingX","overflowRef","showTooltip","trigger","$hoverable","overlay","t","clear","size","variant","icon","onClick","onMouseDown","e","preventDefault","color","SelectMenu","_ref5","onSearch_","onSearch","footer","emptyMessage","optionsRef","i18nScope","_ref5$onSelect","onSelect","onSelect_","menuRef","_excluded3","ctx","_React$useState","useState","_React$useState2","_slicedToArray","searchValue","setSearchValue","_useMenuImperativeCon","menuProps","menuNavigationTriggerProps","useEffect","_menuRef$current","current","highlightFirst","_menuRef$current2","_menuRef$current3","highlightSuggested","highlightSelected","onKeyDown","_props$onKeyDown","call","key","stopPropagation","selection","hide","event","target","shadowStrength","circular","Search","autoComplete","onChange","Children","count","Options","padding","Footer","Select_","Select","_ref6","_ref6$afterHide","afterHide","afterHide_","_ref6$afterShow","afterShow","afterShow_","_ref6$beforeHide","beforeHide","_ref6$beforeShow","beforeShow","_ref6$block","_ref6$disabled","_ref6$emptyMessage","_ref6$error","_ref6$hideDelay","hideDelay","_ref6$i18nScope","_ref6$label","_ref6$loading","onClear_","_ref6$onKeyDown","onScrollBottom","_ref6$onSelect","_ref6$placement","placement","_ref6$showDelay","showDelay","_ref6$tabIndex","_excluded4","useRef","overlayTriggerRef","_React$useState3","_React$useState4","setIsMenuOpened","useCallback","_overlayTriggerRef$cu","autoFocus","canFlip","displayName"],"sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons/dist'\nimport classNames from 'classnames'\nimport { isNil } from 'ramda'\nimport React from 'react'\nimport { Box } from '../Box/Box'\nimport {\n MenuImperative,\n useMenuImperativeControlNavigation,\n} from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport { Notation } from '../Notation/Notation'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\nimport {\n StyledSelectArrow,\n StyledSelectArrowContainer,\n StyledSelectButton,\n StyledSelectButtonLabel,\n StyledSelectClearIcon,\n StyledSelectMenu,\n StyledSelectSpinner,\n} from './Select.styles'\nimport type {\n SelectButtonProps,\n SelectMenuProps,\n SelectOptionProps,\n SelectProps,\n} from './Select.types'\n\nfunction noop() {}\nfunction isFunction(obj: any) {\n return typeof obj === 'function'\n}\nfunction isOpen({ open = false }) {\n return open\n}\n\nexport const OptGroup = React.forwardRef<HTMLDivElement, Props>(\n (props, ref) => (\n <MenuImperative.Group {...props} clickable={false} ref={ref} />\n )\n)\n\nexport const Option = React.forwardRef<HTMLDivElement, SelectOptionProps>(\n ({ value, ...props }, ref) => (\n <MenuImperative.Item ref={ref} {...props} item={value} />\n )\n)\n\nexport const Button = React.forwardRef<HTMLDivElement, SelectButtonProps>(\n function Button(\n {\n block = false,\n children,\n className,\n clearRef,\n disabled = false,\n error = false,\n focus = false,\n label,\n loading = false,\n onClear,\n open = false,\n placeholder,\n qa,\n tabIndex = 0,\n isMenuOpened = false,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const hasClearIcon = !disabled && !loading && Boolean(label)\n\n const content = children || label || placeholder\n\n return (\n <StyledSelectButton\n className={classNames(className, {\n focus: isFunction(focus) ? (focus as Function)({ open }) : focus,\n })}\n ref={ref}\n tabIndex={disabled ? -1 : tabIndex}\n role=\"button\"\n $block={block}\n $error={error}\n $disabled={disabled}\n $hasClearIcon={hasClearIcon}\n $loading={loading}\n $open={open}\n $placeholder={!label}\n {...props}\n >\n <OverflowObserver>\n {({ isOverflowingX, ref: overflowRef }) => {\n const showTooltip = !disabled && isOverflowingX && !isMenuOpened\n const trigger = (\n <StyledSelectButtonLabel\n data-qa={qa?.label}\n $hoverable={showTooltip}\n ref={overflowRef}\n >\n {content}\n </StyledSelectButtonLabel>\n )\n\n return showTooltip ? (\n <Tooltip trigger=\"hover\" overlay={content}>\n {trigger}\n </Tooltip>\n ) : (\n trigger\n )\n }}\n </OverflowObserver>\n {onClear && (\n <StyledSelectClearIcon\n aria-hidden={true} // prevents reading \"delete field\" button when select in focus\n aria-label={i18n.t('core.select.clear')}\n ref={clearRef}\n data-qa={qa?.clear || 'core-select-clear'}\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n onClick={onClear}\n onMouseDown={(e) => e.preventDefault()} // prevents an element from getting the focus\n tabIndex={-1} // TODO revisit this accessibility\n />\n )}\n {loading ? (\n <StyledSelectSpinner>\n <Spinner color=\"blue50\" size=\"xs\" />\n </StyledSelectSpinner>\n ) : (\n <StyledSelectArrowContainer>\n <StyledSelectArrow />\n </StyledSelectArrowContainer>\n )}\n </StyledSelectButton>\n )\n }\n)\n\nconst SelectMenu = React.forwardRef<HTMLDivElement, SelectMenuProps>(\n function SelectMenu(\n {\n onSearch: onSearch_,\n footer,\n emptyMessage,\n optionsRef,\n children,\n i18nScope,\n onSelect: onSelect_ = noop,\n menuRef,\n ...props\n },\n ref\n ) {\n const ctx = useOverlayTriggerContext()\n\n const [searchValue, setSearchValue] = React.useState('')\n const { menuProps, menuNavigationTriggerProps } =\n useMenuImperativeControlNavigation(menuRef, Boolean(onSearch_))\n\n React.useEffect(() => {\n menuRef.current?.highlightFirst()\n }, [menuRef, searchValue])\n\n React.useEffect(() => {\n menuRef.current?.highlightSuggested()\n menuRef.current?.highlightSelected()\n }, [menuRef])\n\n function onKeyDown(e: React.KeyboardEvent<HTMLDivElement>) {\n props.onKeyDown?.(e)\n // This is disconnected from the OverlayTrigger closing on Escape.\n // Closing a dropdown with Escape will not close a Modal, because stopP.\n // It is called only once because the menu component is unmounted.\n // The next Escape will propagate.\n if (e.key === 'Escape' || e.key === 'Esc') {\n e.stopPropagation()\n }\n }\n\n function onSelect(selection: Selection) {\n onSelect_(selection)\n\n ctx.hide(selection.event)\n }\n\n function onSearch(event: React.ChangeEvent<HTMLInputElement>) {\n setSearchValue(event.target.value)\n\n onSearch_?.(event)\n }\n\n return (\n <StyledSelectMenu ref={ref} shadowStrength={2}>\n <MenuImperative\n {...props}\n {...menuProps}\n ref={menuRef}\n role=\"listbox\"\n onKeyDown={onKeyDown}\n onSelect={onSelect}\n circular\n >\n {onSearch_ && (\n <MenuImperative.Search\n autoComplete=\"false\"\n i18nScope={i18nScope}\n onChange={onSearch}\n {...menuNavigationTriggerProps}\n />\n )}\n {React.Children.count(children) ? (\n <MenuImperative.Options ref={optionsRef}>\n {children}\n </MenuImperative.Options>\n ) : (\n <Box padding=\"md lg\">\n <Notation variant=\"pagination\">{emptyMessage}</Notation>\n </Box>\n )}\n {footer && <MenuImperative.Footer>{footer}</MenuImperative.Footer>}\n </MenuImperative>\n </StyledSelectMenu>\n )\n }\n)\n\n/**\n\n We use single selects to allow our users to choose a single option from a list,\n presented in a dropdown. We typically see these selects on forms.\n\n If you want users to select multiple options, use a multi select, group select,\n and tiered select if you want users to select from a tiered set of options,\n use a tiered select.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-select--demo)\n\n @see [Design Guidelines](https://design.procore.com/select)\n\n */\nconst Select_ = React.forwardRef<HTMLDivElement, SelectProps>(function Select(\n {\n afterHide: afterHide_ = noop,\n afterShow: afterShow_ = noop,\n beforeHide = () => true,\n beforeShow = () => true,\n block = false,\n children,\n className,\n disabled = false,\n emptyMessage = 'No results',\n error = false,\n footer,\n hideDelay = 100,\n i18nScope = 'core.select',\n label = '',\n loading = false,\n onClear: onClear_,\n onKeyDown = noop,\n onScrollBottom,\n onSearch,\n onSelect = noop,\n optionsRef,\n placeholder,\n placement = 'bottom-left',\n showDelay = 0,\n tabIndex = 0,\n qa,\n ...props\n },\n forwardRef\n) {\n const menuRef = React.useRef<MenuRef>(null)\n const overlayTriggerRef = React.useRef<HTMLDivElement>(null)\n const ref =\n (forwardRef as React.RefObject<HTMLDivElement>) || overlayTriggerRef\n const [isMenuOpened, setIsMenuOpened] = React.useState(false)\n\n const clearRef = React.useRef<HTMLButtonElement>(null)\n\n function afterHide() {\n afterHide_()\n setIsMenuOpened(false)\n onSearch?.({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>)\n }\n\n const onClear = React.useCallback(\n (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {\n onClear_?.(e)\n // IE 11 fix\n // Return focus back to trigger instead of the clear button\n overlayTriggerRef?.current?.focus()\n },\n [onClear_]\n )\n\n function afterShow() {\n afterShow_()\n setIsMenuOpened(true)\n }\n\n return (\n <OverlayTrigger\n autoFocus\n afterHide={afterHide}\n afterShow={afterShow}\n beforeHide={(e: Event) => {\n if (e.target === clearRef.current) {\n return false\n }\n\n return beforeHide(e)\n }}\n beforeShow={beforeShow}\n canFlip={true}\n hideDelay={hideDelay}\n overlay={\n <SelectMenu\n onSearch={onSearch}\n footer={footer}\n emptyMessage={emptyMessage}\n optionsRef={optionsRef}\n i18nScope={i18nScope}\n onSelect={onSelect}\n onScrollBottom={onScrollBottom}\n menuRef={menuRef}\n >\n {children}\n </SelectMenu>\n }\n placement={placement}\n ref={ref}\n showDelay={showDelay}\n trigger={disabled ? 'none' : 'click'}\n >\n <Button\n {...props}\n block={block}\n className={className}\n clearRef={clearRef}\n disabled={disabled}\n error={error}\n focus={onSearch ? false : isOpen}\n label={label}\n loading={loading}\n placeholder={placeholder}\n onKeyDown={onKeyDown}\n onClear={isNil(onClear_) ? onClear_ : onClear}\n isMenuOpened={isMenuOpened}\n tabIndex={tabIndex}\n qa={qa}\n />\n </OverlayTrigger>\n )\n})\n\nSelect_.displayName = 'Select'\n\nButton.displayName = 'Select.Button'\n\nOption.displayName = 'Select.Option'\n\nOptGroup.displayName = 'Select.OptGroup'\n\nexport const Select = addSubcomponents(\n {\n Button,\n Option,\n OptGroup,\n },\n Select_\n)\n"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAChD,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,KAAK,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,YAAY;AAChC,SACEC,cAAc,EACdC,kCAAkC,QAC7B,kCAAkC;AAEzC,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SACEC,iBAAiB,EACjBC,0BAA0B,EAC1BC,kBAAkB,EAClBC,uBAAuB,EACvBC,qBAAqB,EACrBC,gBAAgB,EAChBC,mBAAmB,QACd,iBAAiB;AAQxB,SAASC,IAAIA,CAAA,EAAG,CAAC;AACjB,SAASC,UAAUA,CAACC,GAAQ,EAAE;EAC5B,OAAO,OAAOA,GAAG,KAAK,UAAU;A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;EACNP,MAAM,EAANA,MAAM;EACNR,QAAQ,EAARA;AACF,CAAC,EACDuH,OACF,CAAC"}
1
+ {"version":3,"file":"Select.js","names":["Clear","classNames","isNil","React","Box","MenuImperative","useMenuImperativeControlNavigation","Notation","OverlayTrigger","useOverlayTriggerContext","Spinner","Tooltip","useI18nContext","OverflowObserver","addSubcomponents","StyledSelectArrow","StyledSelectArrowContainer","StyledSelectButton","StyledSelectButtonLabel","StyledSelectClearIcon","StyledSelectMenu","StyledSelectSpinner","noop","isFunction","obj","isOpen","_ref","_ref$open","open","OptGroup","forwardRef","props","ref","createElement","Group","_extends","clickable","Option","_ref2","value","_objectWithoutProperties","_excluded","Item","item","Button","_ref3","_ref3$block","block","children","className","clearRef","_ref3$disabled","disabled","_ref3$error","error","_ref3$focus","focus","label","_ref3$loading","loading","onClear","_ref3$open","placeholder","qa","_ref3$tabIndex","tabIndex","_ref3$isMenuOpened","isMenuOpened","_excluded2","i18n","hasClearIcon","Boolean","content","role","$block","$error","$disabled","$hasClearIcon","$loading","$open","$placeholder","_ref4","isOverflowingX","overflowRef","showTooltip","trigger","$hoverable","overlay","t","clear","size","variant","icon","onClick","onMouseDown","e","preventDefault","color","SelectMenu","_ref5","onSearch_","onSearch","footer","emptyMessage","optionsRef","i18nScope","_ref5$onSelect","onSelect","onSelect_","menuRef","_excluded3","ctx","_React$useState","useState","_React$useState2","_slicedToArray","searchValue","setSearchValue","_useMenuImperativeCon","menuProps","menuNavigationTriggerProps","useEffect","_menuRef$current","current","highlightFirst","_menuRef$current2","_menuRef$current3","highlightSuggested","highlightSelected","onKeyDown","_props$onKeyDown","call","key","stopPropagation","selection","hide","event","target","shadowStrength","circular","Search","autoComplete","onChange","Children","count","Options","padding","Footer","Select_","Select","_ref6","_ref6$afterHide","afterHide","afterHide_","_ref6$afterShow","afterShow","afterShow_","_ref6$beforeHide","beforeHide","_ref6$beforeShow","beforeShow","_ref6$block","container","_ref6$disabled","_ref6$emptyMessage","_ref6$error","_ref6$hideDelay","hideDelay","_ref6$i18nScope","_ref6$label","_ref6$loading","onClear_","_ref6$onKeyDown","onScrollBottom","_ref6$onSelect","_ref6$placement","placement","_ref6$showDelay","showDelay","_ref6$tabIndex","_excluded4","useRef","overlayTriggerRef","_React$useState3","_React$useState4","setIsMenuOpened","useCallback","_overlayTriggerRef$cu","autoFocus","canFlip","displayName"],"sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons/dist'\nimport classNames from 'classnames'\nimport { isNil } from 'ramda'\nimport React from 'react'\nimport { Box } from '../Box/Box'\nimport {\n MenuImperative,\n useMenuImperativeControlNavigation,\n} from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport { Notation } from '../Notation/Notation'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\nimport {\n StyledSelectArrow,\n StyledSelectArrowContainer,\n StyledSelectButton,\n StyledSelectButtonLabel,\n StyledSelectClearIcon,\n StyledSelectMenu,\n StyledSelectSpinner,\n} from './Select.styles'\nimport type {\n SelectButtonProps,\n SelectMenuProps,\n SelectOptionProps,\n SelectProps,\n} from './Select.types'\n\nfunction noop() {}\nfunction isFunction(obj: any) {\n return typeof obj === 'function'\n}\nfunction isOpen({ open = false }) {\n return open\n}\n\nexport const OptGroup = React.forwardRef<HTMLDivElement, Props>(\n (props, ref) => (\n <MenuImperative.Group {...props} clickable={false} ref={ref} />\n )\n)\n\nexport const Option = React.forwardRef<HTMLDivElement, SelectOptionProps>(\n ({ value, ...props }, ref) => (\n <MenuImperative.Item ref={ref} {...props} item={value} />\n )\n)\n\nexport const Button = React.forwardRef<HTMLDivElement, SelectButtonProps>(\n function Button(\n {\n block = false,\n children,\n className,\n clearRef,\n disabled = false,\n error = false,\n focus = false,\n label,\n loading = false,\n onClear,\n open = false,\n placeholder,\n qa,\n tabIndex = 0,\n isMenuOpened = false,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const hasClearIcon = !disabled && !loading && Boolean(label)\n\n const content = children || label || placeholder\n\n return (\n <StyledSelectButton\n className={classNames(className, {\n focus: isFunction(focus) ? (focus as Function)({ open }) : focus,\n })}\n ref={ref}\n tabIndex={disabled ? -1 : tabIndex}\n role=\"button\"\n $block={block}\n $error={error}\n $disabled={disabled}\n $hasClearIcon={hasClearIcon}\n $loading={loading}\n $open={open}\n $placeholder={!label}\n {...props}\n >\n <OverflowObserver>\n {({ isOverflowingX, ref: overflowRef }) => {\n const showTooltip = !disabled && isOverflowingX && !isMenuOpened\n const trigger = (\n <StyledSelectButtonLabel\n data-qa={qa?.label}\n $hoverable={showTooltip}\n ref={overflowRef}\n >\n {content}\n </StyledSelectButtonLabel>\n )\n\n return showTooltip ? (\n <Tooltip trigger=\"hover\" overlay={content}>\n {trigger}\n </Tooltip>\n ) : (\n trigger\n )\n }}\n </OverflowObserver>\n {onClear && (\n <StyledSelectClearIcon\n aria-hidden={true} // prevents reading \"delete field\" button when select in focus\n aria-label={i18n.t('core.select.clear')}\n ref={clearRef}\n data-qa={qa?.clear || 'core-select-clear'}\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n onClick={onClear}\n onMouseDown={(e) => e.preventDefault()} // prevents an element from getting the focus\n tabIndex={-1} // TODO revisit this accessibility\n />\n )}\n {loading ? (\n <StyledSelectSpinner>\n <Spinner color=\"blue50\" size=\"xs\" />\n </StyledSelectSpinner>\n ) : (\n <StyledSelectArrowContainer>\n <StyledSelectArrow />\n </StyledSelectArrowContainer>\n )}\n </StyledSelectButton>\n )\n }\n)\n\nconst SelectMenu = React.forwardRef<HTMLDivElement, SelectMenuProps>(\n function SelectMenu(\n {\n onSearch: onSearch_,\n footer,\n emptyMessage,\n optionsRef,\n children,\n i18nScope,\n onSelect: onSelect_ = noop,\n menuRef,\n ...props\n },\n ref\n ) {\n const ctx = useOverlayTriggerContext()\n\n const [searchValue, setSearchValue] = React.useState('')\n const { menuProps, menuNavigationTriggerProps } =\n useMenuImperativeControlNavigation(menuRef, Boolean(onSearch_))\n\n React.useEffect(() => {\n menuRef.current?.highlightFirst()\n }, [menuRef, searchValue])\n\n React.useEffect(() => {\n menuRef.current?.highlightSuggested()\n menuRef.current?.highlightSelected()\n }, [menuRef])\n\n function onKeyDown(e: React.KeyboardEvent<HTMLDivElement>) {\n props.onKeyDown?.(e)\n // This is disconnected from the OverlayTrigger closing on Escape.\n // Closing a dropdown with Escape will not close a Modal, because stopP.\n // It is called only once because the menu component is unmounted.\n // The next Escape will propagate.\n if (e.key === 'Escape' || e.key === 'Esc') {\n e.stopPropagation()\n }\n }\n\n function onSelect(selection: Selection) {\n onSelect_(selection)\n\n ctx.hide(selection.event)\n }\n\n function onSearch(event: React.ChangeEvent<HTMLInputElement>) {\n setSearchValue(event.target.value)\n\n onSearch_?.(event)\n }\n\n return (\n <StyledSelectMenu ref={ref} shadowStrength={2}>\n <MenuImperative\n {...props}\n {...menuProps}\n ref={menuRef}\n role=\"listbox\"\n onKeyDown={onKeyDown}\n onSelect={onSelect}\n circular\n >\n {onSearch_ && (\n <MenuImperative.Search\n autoComplete=\"false\"\n i18nScope={i18nScope}\n onChange={onSearch}\n {...menuNavigationTriggerProps}\n />\n )}\n {React.Children.count(children) ? (\n <MenuImperative.Options ref={optionsRef}>\n {children}\n </MenuImperative.Options>\n ) : (\n <Box padding=\"md lg\">\n <Notation variant=\"pagination\">{emptyMessage}</Notation>\n </Box>\n )}\n {footer && <MenuImperative.Footer>{footer}</MenuImperative.Footer>}\n </MenuImperative>\n </StyledSelectMenu>\n )\n }\n)\n\n/**\n\n We use single selects to allow our users to choose a single option from a list,\n presented in a dropdown. We typically see these selects on forms.\n\n If you want users to select multiple options, use a multi select, group select,\n and tiered select if you want users to select from a tiered set of options,\n use a tiered select.\n\n @since 10.19.0\n\n @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/demos-select--demo)\n\n @see [Design Guidelines](https://design.procore.com/select)\n\n */\nconst Select_ = React.forwardRef<HTMLDivElement, SelectProps>(function Select(\n {\n afterHide: afterHide_ = noop,\n afterShow: afterShow_ = noop,\n beforeHide = () => true,\n beforeShow = () => true,\n block = false,\n children,\n className,\n container,\n disabled = false,\n emptyMessage = 'No results',\n error = false,\n footer,\n hideDelay = 100,\n i18nScope = 'core.select',\n label = '',\n loading = false,\n onClear: onClear_,\n onKeyDown = noop,\n onScrollBottom,\n onSearch,\n onSelect = noop,\n optionsRef,\n placeholder,\n placement = 'bottom-left',\n showDelay = 0,\n tabIndex = 0,\n qa,\n ...props\n },\n forwardRef\n) {\n const menuRef = React.useRef<MenuRef>(null)\n const overlayTriggerRef = React.useRef<HTMLDivElement>(null)\n const ref =\n (forwardRef as React.RefObject<HTMLDivElement>) || overlayTriggerRef\n const [isMenuOpened, setIsMenuOpened] = React.useState(false)\n\n const clearRef = React.useRef<HTMLButtonElement>(null)\n\n function afterHide() {\n afterHide_()\n setIsMenuOpened(false)\n onSearch?.({\n target: { value: '' },\n } as React.ChangeEvent<HTMLInputElement>)\n }\n\n const onClear = React.useCallback(\n (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {\n onClear_?.(e)\n // IE 11 fix\n // Return focus back to trigger instead of the clear button\n overlayTriggerRef?.current?.focus()\n },\n [onClear_]\n )\n\n function afterShow() {\n afterShow_()\n setIsMenuOpened(true)\n }\n\n return (\n <OverlayTrigger\n autoFocus\n afterHide={afterHide}\n afterShow={afterShow}\n beforeHide={(e: Event) => {\n if (e.target === clearRef.current) {\n return false\n }\n\n return beforeHide(e)\n }}\n beforeShow={beforeShow}\n canFlip={true}\n container={container}\n hideDelay={hideDelay}\n overlay={\n <SelectMenu\n onSearch={onSearch}\n footer={footer}\n emptyMessage={emptyMessage}\n optionsRef={optionsRef}\n i18nScope={i18nScope}\n onSelect={onSelect}\n onScrollBottom={onScrollBottom}\n menuRef={menuRef}\n >\n {children}\n </SelectMenu>\n }\n placement={placement}\n ref={ref}\n showDelay={showDelay}\n trigger={disabled ? 'none' : 'click'}\n >\n <Button\n {...props}\n block={block}\n className={className}\n clearRef={clearRef}\n disabled={disabled}\n error={error}\n focus={onSearch ? false : isOpen}\n label={label}\n loading={loading}\n placeholder={placeholder}\n onKeyDown={onKeyDown}\n onClear={isNil(onClear_) ? onClear_ : onClear}\n isMenuOpened={isMenuOpened}\n tabIndex={tabIndex}\n qa={qa}\n />\n </OverlayTrigger>\n )\n})\n\nSelect_.displayName = 'Select'\n\nButton.displayName = 'Select.Button'\n\nOption.displayName = 'Select.Option'\n\nOptGroup.displayName = 'Select.OptGroup'\n\nexport const Select = addSubcomponents(\n {\n Button,\n Option,\n OptGroup,\n },\n Select_\n)\n"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAChD,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,KAAK,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,YAAY;AAChC,SACEC,cAAc,EACdC,kCAAkC,QAC7B,kCAAkC;AAEzC,SAASC,QAAQ,QAAQ,sBAAsB;AAC/C,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SACEC,iBAAiB,EACjBC,0BAA0B,EAC1BC,kBAAkB,EAClBC,uBAAuB,EACvBC,qBAAqB,EACrBC,gBAAgB,EAChBC,mBAAmB,QACd,iBAAiB;AAQxB,SAASC,IAAIA,CAA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EpCzJ,MAAM,CAACyJ,WAAW,GAAG,eAAe;AAEpCjK,QAAQ,CAACiK,WAAW,GAAG,iBAAiB;AAExC,OAAO,IAAMzC,MAAM,GAAGvI,gBAAgB,CACpC;EACE8B,MAAM,EAANA,MAAM;EACNP,MAAM,EAANA,MAAM;EACNR,QAAQ,EAARA;AACF,CAAC,EACDuH,OACF,CAAC"}
@@ -16,34 +16,34 @@ export var tableSelectClassName = 'select--table';
16
16
  var styledSelectButtonDefaultWidth = 248;
17
17
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
18
18
  displayName: "StyledSelectMenu",
19
- componentId: "core-11_24_4__sc-mr8gwe-0"
19
+ componentId: "core-11_25_1__sc-mr8gwe-0"
20
20
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
21
21
  export var StyledSelectButtonLabel = /*#__PURE__*/styled.div.withConfig({
22
22
  displayName: "StyledSelectButtonLabel",
23
- componentId: "core-11_24_4__sc-mr8gwe-1"
23
+ componentId: "core-11_25_1__sc-mr8gwe-1"
24
24
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref) {
25
25
  var $hoverable = _ref.$hoverable;
26
26
  return $hoverable ? 'initial' : 'none';
27
27
  });
28
28
  export var StyledSelectSpinner = /*#__PURE__*/styled.div.withConfig({
29
29
  displayName: "StyledSelectSpinner",
30
- componentId: "core-11_24_4__sc-mr8gwe-2"
30
+ componentId: "core-11_25_1__sc-mr8gwe-2"
31
31
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
32
32
  export var StyledSelectArrowContainer = /*#__PURE__*/styled.div.withConfig({
33
33
  displayName: "StyledSelectArrowContainer",
34
- componentId: "core-11_24_4__sc-mr8gwe-3"
34
+ componentId: "core-11_25_1__sc-mr8gwe-3"
35
35
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
36
36
  export var StyledSelectArrow = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledSelectArrow",
38
- componentId: "core-11_24_4__sc-mr8gwe-4"
38
+ componentId: "core-11_25_1__sc-mr8gwe-4"
39
39
  })(["position:relative;", ""], arrowDown(4, 'gray45'));
40
40
  export var StyledSelectClearIcon = /*#__PURE__*/styled(Button).withConfig({
41
41
  displayName: "StyledSelectClearIcon",
42
- componentId: "core-11_24_4__sc-mr8gwe-5"
42
+ componentId: "core-11_25_1__sc-mr8gwe-5"
43
43
  })([""]);
44
44
  export var StyledSelectButton = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledSelectButton",
46
- componentId: "core-11_24_4__sc-mr8gwe-6"
46
+ componentId: "core-11_25_1__sc-mr8gwe-6"
47
47
  })(["", " align-items:center;background-color:", ";border-color:", ";border-radius:", "px;border-style:solid;border-width:1px;color:", ";cursor:pointer;display:inline-flex;height:36px;min-height:36px;outline:none;padding:0 ", "px;position:relative;white-space:nowrap;width:", ";&::placeholder{border-color:", ";}&:hover,&:active,&[data-qa=", "]{background-color:", ";border-color:", ";color:", ";}&.focus,&:focus,&[data-qa=", "]{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " &.", "{", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray70, borderRadius.md, colors.gray15, spacing.md, function (_ref2) {
48
48
  var $block = _ref2.$block;
49
49
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -3,9 +3,10 @@ import type { ButtonProps } from '../Button/Button.types';
3
3
  import type { DropdownPlacement } from '../Dropdown/Dropdown.types';
4
4
  import type { MenuProps, MenuRef } from '../MenuImperative/MenuImperative.types';
5
5
  import type { OverlayTriggerProps } from '../OverlayTrigger';
6
+ import type { PortalProps } from '../Portal/Portal.types';
6
7
  export declare type SelectPlacement = DropdownPlacement;
7
8
  declare type DivProps = React.ComponentPropsWithoutRef<'div'>;
8
- export interface SelectMenuProps extends Omit<DivProps, 'onSelect' | 'onDragEnd'> {
9
+ export interface SelectMenuProps extends Omit<DivProps, 'onSelect' | 'onDragEnd'>, Pick<PortalProps, 'container'> {
9
10
  /**
10
11
  * @since 10.19.0
11
12
  */
@@ -81,7 +82,7 @@ interface QaTags {
81
82
  */
82
83
  clear: string;
83
84
  }
84
- export interface SelectProps extends Omit<DivProps, 'onSelect'> {
85
+ export interface SelectProps extends Omit<DivProps, 'onSelect'>, Pick<PortalProps, 'container'> {
85
86
  /**
86
87
  * @since 10.19.0
87
88
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Select.types.js","names":[],"sources":["../../src/Select/Select.types.ts"],"sourcesContent":["import type { ButtonProps } from '../Button/Button.types'\nimport type { DropdownPlacement } from '../Dropdown/Dropdown.types'\nimport type { MenuProps, MenuRef } from '../MenuImperative/MenuImperative.types'\nimport type { OverlayTriggerProps } from '../OverlayTrigger'\n\nexport type SelectPlacement = DropdownPlacement\n\ntype DivProps = React.ComponentPropsWithoutRef<'div'>\n\nexport interface SelectMenuProps\n extends Omit<DivProps, 'onSelect' | 'onDragEnd'> {\n /**\n * @since 10.19.0\n */\n emptyMessage?: string\n /**\n * @since 10.19.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n /**\n * @since 10.19.0\n */\n onScrollBottom?: MenuProps['onScrollBottom']\n /**\n * @since 10.19.0\n */\n onSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onSelect?: MenuProps['onSelect']\n /**\n * @since 10.19.0\n */\n optionsRef?: React.RefObject<HTMLDivElement>\n /**\n * @since 10.19.0\n */\n menuRef: React.RefObject<MenuRef>\n}\n\nexport interface SelectOptionProps extends DivProps {\n /**\n * @since 10.19.0\n */\n index?: number\n /**\n * @since 10.19.0\n */\n value: any\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * Represents the currently selected value. This option will be styled\n * differently as well as receive UX to scroll into view and start list\n * navigation from this element.\n * @since 10.19.0\n */\n selected?: boolean\n\n /**\n * If nothing is selected, suggest this option. Suggested options mimic the\n * UX of a selected option, scroll into view and start list navigation from\n * this element.\n * @since 10.19.0\n */\n suggested?: boolean\n}\n\ninterface QaTags {\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n clear: string\n}\n\nexport interface SelectProps extends Omit<DivProps, 'onSelect'> {\n /**\n * @since 10.19.0\n */\n afterHide?: OverlayTriggerProps['afterHide']\n /**\n * @since 10.19.0\n */\n afterShow?: OverlayTriggerProps['afterShow']\n /**\n * @since 10.19.0\n */\n beforeHide?: OverlayTriggerProps['beforeHide']\n /**\n * @since 10.19.0\n */\n beforeShow?: OverlayTriggerProps['beforeShow']\n\n /**\n * Make the Select button 100% width\n * @since 10.19.0\n */\n block?: boolean\n\n /**\n * @default false\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * When there are no children this will render\n * @since 10.19.0\n */\n emptyMessage?: string\n\n /**\n * @default false\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 10.19.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n hideDelay?: number\n /**\n * The i18n key to use for the select's configurable strings.\n * Defaults to using the core library's default strings.\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n label?: React.ReactNode\n\n /**\n * If the select is loading\n * @default false\n * @since 10.19.0\n */\n loading?: boolean\n\n /**\n * It is possible for this component to have an empty value\n * (render placeholder). Enables the x icon.\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n\n /**\n * Optional <Code>function</Code> that automatically executes when\n * scrolling reaches the last item.\n * @since 10.19.0\n */\n onScrollBottom?: MenuProps['onScrollBottom']\n\n /**\n * Adds a search bar to the select.\n * @since 10.19.0\n */\n onSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onSelect?: MenuProps['onSelect']\n /**\n * @since 10.19.0\n */\n optionsRef?: React.RefObject<HTMLDivElement>\n\n /**\n * Renders when the label is blank\n * @since 10.19.0\n */\n placeholder?: string\n\n /**\n * The placement of the overlay\n * @default 'bottom-left'\n * @since 10.19.0\n */\n placement?: SelectPlacement\n /**\n * @since 10.19.0\n */\n qa?: Partial<QaTags>\n /**\n * @since 10.19.0\n */\n showDelay?: number\n\n /**\n * Configurable tabIndex for the select button\n * @default 0\n * @since 10.19.0\n */\n tabIndex?: number\n}\n\nexport interface SelectButtonProps extends DivProps {\n /**\n * @since 10.19.0\n */\n block?: ButtonProps['block']\n /**\n * @since 10.19.0\n */\n clearRef?: React.RefObject<HTMLButtonElement>\n /**\n * @since 10.19.0\n */\n disabled?: ButtonProps['disabled']\n /**\n * @since 10.19.0\n */\n dropdown?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 11.9.0\n * If the component should apply a focus appeareance. This is\n * not DOM focus management, and purely visual.\n */\n focus?: boolean | ((obj: { open: boolean }) => boolean)\n /**\n * @since 10.19.0\n */\n icon?: ButtonProps['icon']\n /**\n * @since 10.19.0\n */\n label?: React.ReactNode\n /**\n * @since 10.19.0\n */\n loading?: ButtonProps['loading']\n /**\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n /**\n * @since 10.19.0\n */\n open?: boolean\n /**\n * @since 10.19.0\n */\n placeholder?: string\n /**\n * @since 10.19.0\n */\n qa?: Partial<QaTags>\n /**\n * @since 10.19.0\n */\n size?: ButtonProps['size']\n /**\n * @since 10.19.0\n */\n tabIndex?: number\n /**\n * @since 10.19.0\n */\n type?: ButtonProps['type']\n /**\n * @since 10.19.0\n */\n variant?: ButtonProps['variant']\n /**\n * @since 10.19.0\n */\n isMenuOpened?: boolean\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Select.types.js","names":[],"sources":["../../src/Select/Select.types.ts"],"sourcesContent":["import type { ButtonProps } from '../Button/Button.types'\nimport type { DropdownPlacement } from '../Dropdown/Dropdown.types'\nimport type { MenuProps, MenuRef } from '../MenuImperative/MenuImperative.types'\nimport type { OverlayTriggerProps } from '../OverlayTrigger'\nimport type { PortalProps } from '../Portal/Portal.types'\n\nexport type SelectPlacement = DropdownPlacement\n\ntype DivProps = React.ComponentPropsWithoutRef<'div'>\n\nexport interface SelectMenuProps\n extends Omit<DivProps, 'onSelect' | 'onDragEnd'>,\n Pick<PortalProps, 'container'> {\n /**\n * @since 10.19.0\n */\n emptyMessage?: string\n /**\n * @since 10.19.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n /**\n * @since 10.19.0\n */\n onScrollBottom?: MenuProps['onScrollBottom']\n /**\n * @since 10.19.0\n */\n onSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onSelect?: MenuProps['onSelect']\n /**\n * @since 10.19.0\n */\n optionsRef?: React.RefObject<HTMLDivElement>\n /**\n * @since 10.19.0\n */\n menuRef: React.RefObject<MenuRef>\n}\n\nexport interface SelectOptionProps extends DivProps {\n /**\n * @since 10.19.0\n */\n index?: number\n /**\n * @since 10.19.0\n */\n value: any\n /**\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * Represents the currently selected value. This option will be styled\n * differently as well as receive UX to scroll into view and start list\n * navigation from this element.\n * @since 10.19.0\n */\n selected?: boolean\n\n /**\n * If nothing is selected, suggest this option. Suggested options mimic the\n * UX of a selected option, scroll into view and start list navigation from\n * this element.\n * @since 10.19.0\n */\n suggested?: boolean\n}\n\ninterface QaTags {\n /**\n * @since 10.19.0\n */\n label: string\n /**\n * @since 10.19.0\n */\n clear: string\n}\n\nexport interface SelectProps\n extends Omit<DivProps, 'onSelect'>,\n Pick<PortalProps, 'container'> {\n /**\n * @since 10.19.0\n */\n afterHide?: OverlayTriggerProps['afterHide']\n /**\n * @since 10.19.0\n */\n afterShow?: OverlayTriggerProps['afterShow']\n /**\n * @since 10.19.0\n */\n beforeHide?: OverlayTriggerProps['beforeHide']\n /**\n * @since 10.19.0\n */\n beforeShow?: OverlayTriggerProps['beforeShow']\n\n /**\n * Make the Select button 100% width\n * @since 10.19.0\n */\n block?: boolean\n\n /**\n * @default false\n * @since 10.19.0\n */\n disabled?: boolean\n\n /**\n * When there are no children this will render\n * @since 10.19.0\n */\n emptyMessage?: string\n\n /**\n * @default false\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 10.19.0\n */\n footer?: React.ReactNode\n /**\n * @since 10.19.0\n */\n hideDelay?: number\n /**\n * The i18n key to use for the select's configurable strings.\n * Defaults to using the core library's default strings.\n * @since 10.19.0\n */\n i18nScope?: string\n /**\n * @since 10.19.0\n */\n label?: React.ReactNode\n\n /**\n * If the select is loading\n * @default false\n * @since 10.19.0\n */\n loading?: boolean\n\n /**\n * It is possible for this component to have an empty value\n * (render placeholder). Enables the x icon.\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n\n /**\n * Optional <Code>function</Code> that automatically executes when\n * scrolling reaches the last item.\n * @since 10.19.0\n */\n onScrollBottom?: MenuProps['onScrollBottom']\n\n /**\n * Adds a search bar to the select.\n * @since 10.19.0\n */\n onSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void\n /**\n * @since 10.19.0\n */\n onSelect?: MenuProps['onSelect']\n /**\n * @since 10.19.0\n */\n optionsRef?: React.RefObject<HTMLDivElement>\n\n /**\n * Renders when the label is blank\n * @since 10.19.0\n */\n placeholder?: string\n\n /**\n * The placement of the overlay\n * @default 'bottom-left'\n * @since 10.19.0\n */\n placement?: SelectPlacement\n /**\n * @since 10.19.0\n */\n qa?: Partial<QaTags>\n /**\n * @since 10.19.0\n */\n showDelay?: number\n\n /**\n * Configurable tabIndex for the select button\n * @default 0\n * @since 10.19.0\n */\n tabIndex?: number\n}\n\nexport interface SelectButtonProps extends DivProps {\n /**\n * @since 10.19.0\n */\n block?: ButtonProps['block']\n /**\n * @since 10.19.0\n */\n clearRef?: React.RefObject<HTMLButtonElement>\n /**\n * @since 10.19.0\n */\n disabled?: ButtonProps['disabled']\n /**\n * @since 10.19.0\n */\n dropdown?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @since 11.9.0\n * If the component should apply a focus appeareance. This is\n * not DOM focus management, and purely visual.\n */\n focus?: boolean | ((obj: { open: boolean }) => boolean)\n /**\n * @since 10.19.0\n */\n icon?: ButtonProps['icon']\n /**\n * @since 10.19.0\n */\n label?: React.ReactNode\n /**\n * @since 10.19.0\n */\n loading?: ButtonProps['loading']\n /**\n * @since 10.19.0\n */\n onClear?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void\n /**\n * @since 10.19.0\n */\n open?: boolean\n /**\n * @since 10.19.0\n */\n placeholder?: string\n /**\n * @since 10.19.0\n */\n qa?: Partial<QaTags>\n /**\n * @since 10.19.0\n */\n size?: ButtonProps['size']\n /**\n * @since 10.19.0\n */\n tabIndex?: number\n /**\n * @since 10.19.0\n */\n type?: ButtonProps['type']\n /**\n * @since 10.19.0\n */\n variant?: ButtonProps['variant']\n /**\n * @since 10.19.0\n */\n isMenuOpened?: boolean\n}\n"],"mappings":""}
@@ -7,7 +7,7 @@ export declare const StyledH3: import("styled-components").StyledComponent<"h3",
7
7
  export declare function getSmallIconBodyTextRules(): import("styled-components").FlattenSimpleInterpolation;
8
8
  export declare const StyledP: import("styled-components").StyledComponent<"p", any, {}, never>;
9
9
  export declare const StyledUL: import("styled-components").StyledComponent<"ul", any, {}, never>;
10
- export declare const StyledLabel: import("styled-components").StyledComponent<"span", any, import("../Typography/Typography.styles").StyledTypographyProps & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
10
+ export declare const StyledLabel: import("styled-components").StyledComponent<"span", any, import("../Typography/Typography.styles").StyledTypographyProps & Partial<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
11
11
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
12
12
  } & TypographyProps> & {
13
13
  [others: string]: any;