@procore/core-react 12.49.0 → 12.50.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 (247) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/AvatarStack/AvatarStack.styles.js +8 -8
  5. package/dist/Badge/Badge.styles.js +2 -2
  6. package/dist/BadgePill/BadgePill.styles.js +4 -4
  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.styles.js +10 -10
  12. package/dist/Calendar/Calendar.styles.js.map +1 -1
  13. package/dist/Card/Card.styles.js +1 -1
  14. package/dist/Checkbox/Checkbox.styles.js +6 -6
  15. package/dist/ContactItem/ContactItem.styles.js +5 -5
  16. package/dist/Content/Content.styles.js +2 -2
  17. package/dist/DateInput/DateInput.styles.js +6 -6
  18. package/dist/DetailPage/DetailPage.d.ts +2 -1
  19. package/dist/DetailPage/DetailPage.js +11 -10
  20. package/dist/DetailPage/DetailPage.js.map +1 -1
  21. package/dist/DetailPage/DetailPage.styles.js +9 -8
  22. package/dist/DetailPage/DetailPage.styles.js.map +1 -1
  23. package/dist/DetailPage/DetailPage.types.d.ts +5 -5
  24. package/dist/DetailPage/DetailPage.types.js.map +1 -1
  25. package/dist/DetailPageTemplate/DetailPageTemplate.types.d.ts +7 -1
  26. package/dist/DetailPageTemplate/DetailPageTemplate.types.js.map +1 -1
  27. package/dist/Dropdown/Dropdown.styles.js +3 -3
  28. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  29. package/dist/Dropzone/Dropzone.js +1 -1
  30. package/dist/Dropzone/Dropzone.styles.js +9 -9
  31. package/dist/EmptyState/EmptyState.styles.js +6 -6
  32. package/dist/Field/Field.styles.js +3 -3
  33. package/dist/FileList/FileList.styles.js +3 -3
  34. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  35. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  36. package/dist/FileSelect/FileSelect.styles.js +2 -2
  37. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  38. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  39. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  40. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  41. package/dist/FileSelect/SourceItem/SourceItem.d.ts +7 -0
  42. package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
  43. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  44. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  45. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  46. package/dist/FileToken/FileToken.styles.js +6 -6
  47. package/dist/FilterToken/FilterToken.styles.js +5 -5
  48. package/dist/FlexList/FlexList.styles.js +1 -1
  49. package/dist/Form/Form.styles.js +13 -13
  50. package/dist/Form/StyledFormikForm.styles.d.ts +2 -2
  51. package/dist/Form/StyledFormikForm.styles.js +2 -2
  52. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  53. package/dist/Grid/Grid.styles.js +2 -2
  54. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  55. package/dist/Input/Input.styles.js +1 -1
  56. package/dist/Link/Link.styles.js +1 -1
  57. package/dist/ListPage/ListPage.styles.js +8 -8
  58. package/dist/Loader/Loader.styles.js +2 -2
  59. package/dist/MenuImperative/MenuImperative.styles.js +11 -11
  60. package/dist/Modal/Modal.styles.js +26 -33
  61. package/dist/Modal/Modal.styles.js.map +1 -1
  62. package/dist/MultiSelect/MultiSelect.styles.d.ts +1 -1
  63. package/dist/MultiSelect/MultiSelect.styles.js +8 -8
  64. package/dist/NextMenu/NextMenu.styles.js +3 -3
  65. package/dist/NextTile/NextTile.styles.js +5 -5
  66. package/dist/Notation/Notation.js +1 -1
  67. package/dist/NumberInput/NumberInput.styles.js +7 -7
  68. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  69. package/dist/PageLayout/PageLayout.js +8 -5
  70. package/dist/PageLayout/PageLayout.js.map +1 -1
  71. package/dist/PageLayout/PageLayout.styles.js +18 -17
  72. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  73. package/dist/PageLayout/PageLayout.types.d.ts +7 -0
  74. package/dist/PageLayout/PageLayout.types.js.map +1 -1
  75. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  76. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.types.d.ts +5 -0
  77. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.types.js.map +1 -1
  78. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  79. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  80. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  81. package/dist/Pagination/Pagination.styles.js +5 -5
  82. package/dist/Panel/Panel.styles.js +14 -13
  83. package/dist/Panel/Panel.styles.js.map +1 -1
  84. package/dist/Pill/Pill.styles.js +3 -3
  85. package/dist/PillSelect/PillSelect.styles.js +4 -4
  86. package/dist/Popover/Popover.styles.js +2 -2
  87. package/dist/Portal/Portal.styles.js +1 -1
  88. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  89. package/dist/RadioButton/RadioButton.styles.js +3 -3
  90. package/dist/Required/Required.js +1 -0
  91. package/dist/Required/Required.js.map +1 -1
  92. package/dist/Required/Required.styles.js +5 -5
  93. package/dist/Required/Required.styles.js.map +1 -1
  94. package/dist/Required/Required.types.d.ts +2 -0
  95. package/dist/Required/Required.types.js.map +1 -1
  96. package/dist/Search/Search.styles.js +5 -5
  97. package/dist/Section/Section.styles.js +7 -7
  98. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  99. package/dist/Select/Select.js +4 -3
  100. package/dist/Select/Select.js.map +1 -1
  101. package/dist/Select/Select.styles.js +8 -8
  102. package/dist/Select/Select.types.d.ts +0 -1
  103. package/dist/Select/Select.types.js.map +1 -1
  104. package/dist/Semantic/Semantic.styles.js +9 -9
  105. package/dist/Slider/Slider.styles.js +5 -5
  106. package/dist/Spinner/Spinner.styles.js +7 -7
  107. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  108. package/dist/SuperSelect/SuperSelect.components.d.ts +3 -0
  109. package/dist/SuperSelect/SuperSelect.components.js +18 -1
  110. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  111. package/dist/SuperSelect/SuperSelect.js +11 -2
  112. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  113. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  114. package/dist/SuperSelect/SuperSelect.styles.js +40 -40
  115. package/dist/SuperSelect/SuperSelect.types.d.ts +1 -0
  116. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  117. package/dist/SuperSelect/useSuperSelect.js +15 -1
  118. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  119. package/dist/Switch/Switch.styles.js +4 -4
  120. package/dist/Table/Table.styles.js +29 -29
  121. package/dist/TableShelf/TableShelf.styles.js +5 -5
  122. package/dist/Tabs/Tablist.d.ts +11 -0
  123. package/dist/Tabs/Tablist.js +45 -0
  124. package/dist/Tabs/Tablist.js.map +1 -0
  125. package/dist/Tabs/Tablist.types.d.ts +58 -0
  126. package/dist/Tabs/Tablist.types.js +2 -0
  127. package/dist/Tabs/Tablist.types.js.map +1 -0
  128. package/dist/Tabs/Tabs.js +60 -8
  129. package/dist/Tabs/Tabs.js.map +1 -1
  130. package/dist/Tabs/Tabs.styles.js +16 -16
  131. package/dist/Tabs/Tabs.types.d.ts +25 -10
  132. package/dist/Tabs/Tabs.types.js.map +1 -1
  133. package/dist/Tabs/index.d.ts +2 -0
  134. package/dist/Tabs/index.js +1 -0
  135. package/dist/Tabs/index.js.map +1 -1
  136. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  137. package/dist/Tearsheet/storybook/PageLayoutDemo.js +3 -1
  138. package/dist/Tearsheet/storybook/PageLayoutDemo.js.map +1 -1
  139. package/dist/TextArea/TextArea.styles.js +1 -1
  140. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  141. package/dist/Thumbnail/Thumbnail.hooks.d.ts +14 -14
  142. package/dist/Thumbnail/Thumbnail.styles.js +21 -21
  143. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  144. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  145. package/dist/Tile/Tile.styles.js +8 -8
  146. package/dist/Title/Title.styles.js +7 -7
  147. package/dist/Toast/Toast.styles.js +3 -3
  148. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  149. package/dist/Token/Token.styles.js +5 -5
  150. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  151. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  152. package/dist/Tooltip/Tooltip.styles.js +3 -3
  153. package/dist/Tree/Tree.js +1 -1
  154. package/dist/Tree/Tree.styles.js +10 -10
  155. package/dist/Typeahead/Typeahead.styles.js +4 -4
  156. package/dist/Typography/Typography.styles.js +1 -1
  157. package/dist/Typography/Typography.table.story.js +2 -2
  158. package/dist/_locales/en.json +1 -1
  159. package/dist/_locales/pseudo.json +1 -1
  160. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  161. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  162. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +4 -4
  163. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  164. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
  165. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  166. package/dist/_typedoc/Banner/Banner.types.json +15 -15
  167. package/dist/_typedoc/Box/Box.types.json +68 -68
  168. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  169. package/dist/_typedoc/Button/Button.types.json +14 -14
  170. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  171. package/dist/_typedoc/Card/Card.types.json +6 -6
  172. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  173. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  174. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  175. package/dist/_typedoc/DateSelect/DateSelect.types.json +14 -14
  176. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  177. package/dist/_typedoc/Dropdown/Dropdown.types.json +38 -38
  178. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
  179. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  180. package/dist/_typedoc/EmptyState/EmptyState.types.json +18 -18
  181. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  182. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  183. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  184. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  185. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  186. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  187. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  188. package/dist/_typedoc/Form/Form.types.json +770 -770
  189. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  190. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  191. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +54 -54
  192. package/dist/_typedoc/Input/Input.types.json +2 -2
  193. package/dist/_typedoc/Link/Link.types.json +1 -1
  194. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  195. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  196. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +84 -84
  197. package/dist/_typedoc/Modal/Modal.types.json +48 -48
  198. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +33 -33
  199. package/dist/_typedoc/NextTile/NextTile.types.json +33 -33
  200. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  201. package/dist/_typedoc/NumberInput/NumberInput.types.json +52 -52
  202. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +33 -33
  203. package/dist/_typedoc/PageLayout/PageLayout.types.json +48 -38
  204. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  205. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  206. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  207. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  208. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  209. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  210. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  211. package/dist/_typedoc/Required/Required.types.json +8 -6
  212. package/dist/_typedoc/Search/Search.types.json +18 -18
  213. package/dist/_typedoc/Section/Section.types.json +15 -15
  214. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  215. package/dist/_typedoc/Select/Select.types.json +67 -72
  216. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  217. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  218. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  219. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  220. package/dist/_typedoc/Table/Table.types.json +105 -105
  221. package/dist/_typedoc/Tabs/Tablist.types.json +17 -0
  222. package/dist/_typedoc/Tabs/Tabs.types.json +46 -25
  223. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  224. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  225. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  226. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  227. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  228. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  229. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  230. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  231. package/dist/_typedoc/Title/Title.types.json +1 -1
  232. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  233. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  234. package/dist/_typedoc/Token/Token.types.json +7 -7
  235. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  236. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  237. package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
  238. package/dist/_typedoc/Tree/Tree.types.json +88 -88
  239. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  240. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  241. package/dist/_typedoc/_utils/types.json +3 -3
  242. package/dist/_typedoc/a11y-tips.json +1 -1
  243. package/dist/_typedoc/deprecations.json +1 -1
  244. package/dist/_utils/propsTypedoc.d.ts +1 -0
  245. package/dist/_utils/propsTypedoc.js +1 -0
  246. package/dist/_utils/propsTypedoc.js.map +1 -1
  247. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":["Clear","useId","classNames","isNil","React","Box","MenuImperative","useMenuImperativeControlNavigation","Notation","OverlayTrigger","useOverlayTriggerContext","Spinner","Tooltip","useI18nContext","OverflowObserver","addSubcomponents","StyledSelectArrow","StyledSelectArrowContainer","StyledSelectButton","StyledSelectButtonLabel","StyledSelectButtonWrapper","StyledSelectClearIcon","StyledSelectMenu","StyledSelectSpinner","noop","isFunction","obj","isOpen","_ref","_ref$open","open","SelectButtonFocusContext","createContext","useSelectButtonFocused","useContext","OptGroup","forwardRef","props","ref","createElement","Group","_extends","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","_ref3$isListboxOnly","isListboxOnly","menuId","ariaExpandedProp","style","_excluded2","i18n","hasClearIcon","Boolean","showClearIcon","labelId","triggerRole","content","ariaExpanded","undefined","_React$useState","useState","_React$useState2","_slicedToArray","isFocused","setIsFocused","_ref4","onFocusProp","onFocus","onBlurProp","onBlur","ariaLabelledByProp","restProps","_excluded3","ariaLabelledBy","filter","join","handleFocus","useCallback","event","handleBlur","button","role","$block","$error","$disabled","$hasClearIcon","$showClearIcon","$loading","$open","$placeholder","Provider","_ref5","isOverflowingX","overflowRef","showTooltip","trigger","id","$hoverable","overlay","color","size","t","clear","variant","icon","onClick","onMouseDown","e","preventDefault","SelectMenu","_ref6","onSearch_","onSearch","header","footer","emptyMessage","optionsRef","i18nScope","_ref6$onSelect","onSelect","onSelect_","menuRef","_excluded4","ctx","_React$useState3","_React$useState4","searchValue","setSearchValue","_useMenuImperativeCon","menuProps","menuNavigationTriggerProps","useEffect","_menuRef$current","current","highlightFirst","_menuRef$current2","_menuRef$current3","highlightSuggested","highlightSelected","onKeyDown","_props$onKeyDown","call","key","stopPropagation","selection","hide","target","shadowStrength","circular","Search","autoComplete","onChange","Header","Children","count","Options","padding","Footer","Select_","Select","_ref7","_ref7$afterHide","afterHide","afterHide_","_ref7$afterShow","afterShow","afterShow_","_ref7$beforeHide","beforeHide","_ref7$beforeShow","beforeShow","_ref7$block","container","_ref7$disabled","_ref7$error","_ref7$hideDelay","hideDelay","_ref7$i18nScope","_ref7$label","_ref7$loading","onClear_","_ref7$onKeyDown","onScrollBottom","_ref7$onSelect","_ref7$placement","placement","_ref7$restoreFocusOnH","restoreFocusOnHide","_ref7$showDelay","showDelay","_ref7$tabIndex","_excluded5","useRef","overlayTriggerRef","_React$useState5","_React$useState6","setIsMenuOpened","emptyMessageText","scope","_overlayTriggerRef$cu","autoFocus","canFlip","containFocus","passA11yPropsToOverlay","overlayId","displayName"],"sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons/dist'\nimport { useId } from '@react-aria/utils'\nimport classNames from 'classnames'\nimport { isNil } from 'ramda'\nimport React from 'react'\nimport { Box } from '../Box'\nimport {\n MenuImperative,\n useMenuImperativeControlNavigation,\n} from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport { Notation } from '../Notation'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { Spinner } from '../Spinner'\nimport { Tooltip } from '../Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport {\n StyledSelectArrow,\n StyledSelectArrowContainer,\n StyledSelectButton,\n StyledSelectButtonLabel,\n StyledSelectButtonWrapper,\n StyledSelectClearIcon,\n StyledSelectMenu,\n StyledSelectSpinner,\n} from './Select.styles'\nimport type {\n SelectButtonProps,\n SelectMenuProps,\n SelectOptGroupProps,\n SelectOptionProps,\n SelectProps,\n TriggerRole,\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 SelectButtonFocusContext = React.createContext(false)\nexport const useSelectButtonFocused = () =>\n React.useContext(SelectButtonFocusContext)\n\nexport const OptGroup = React.forwardRef<HTMLDivElement, SelectOptGroupProps>(\n (props, ref) => <MenuImperative.Group {...props} ref={ref} />\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 isListboxOnly = false,\n menuId,\n 'aria-expanded': ariaExpandedProp,\n style,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const hasClearIcon = Boolean(onClear)\n const showClearIcon = !disabled && !loading && Boolean(label)\n const labelId = useId()\n const triggerRole: TriggerRole = isListboxOnly ? 'combobox' : 'button'\n\n const content = children || label || placeholder\n const ariaExpanded = disabled\n ? undefined\n : isListboxOnly\n ? ariaExpandedProp\n : open\n\n const [isFocused, setIsFocused] = React.useState(false)\n\n const {\n onFocus: onFocusProp,\n onBlur: onBlurProp,\n 'aria-labelledby': ariaLabelledByProp,\n ...restProps\n } = props as typeof props & {\n onFocus?: React.FocusEventHandler<HTMLDivElement>\n onBlur?: React.FocusEventHandler<HTMLDivElement>\n }\n\n const ariaLabelledBy = isListboxOnly\n ? ariaLabelledByProp || labelId || undefined\n : [ariaLabelledByProp, labelId].filter(Boolean).join(' ') || undefined\n\n const handleFocus = React.useCallback(\n (event: React.FocusEvent<HTMLDivElement>) => {\n setIsFocused(true)\n onFocusProp?.(event)\n },\n [onFocusProp]\n )\n\n const handleBlur = React.useCallback(\n (event: React.FocusEvent<HTMLDivElement>) => {\n setIsFocused(false)\n onBlurProp?.(event)\n },\n [onBlurProp]\n )\n\n const button = (\n <StyledSelectButton\n ref={ref}\n role={triggerRole}\n aria-disabled={disabled}\n tabIndex={disabled ? -1 : tabIndex}\n aria-expanded={ariaExpanded}\n aria-invalid={error}\n aria-labelledby={ariaLabelledBy}\n $block={true}\n className={classNames(className, {\n focus: isFunction(focus) ? (focus as Function)({ open }) : focus,\n })}\n style={style}\n $error={error}\n $disabled={disabled}\n $hasClearIcon={hasClearIcon}\n $showClearIcon={showClearIcon}\n $loading={loading}\n $open={open}\n $placeholder={!label}\n {...restProps}\n onFocus={handleFocus}\n onBlur={handleBlur}\n >\n <SelectButtonFocusContext.Provider value={isFocused}>\n <OverflowObserver>\n {({ isOverflowingX, ref: overflowRef }) => {\n const showTooltip = !disabled && isOverflowingX && !isMenuOpened\n const trigger = (\n <StyledSelectButtonLabel\n id={labelId}\n data-qa={qa?.label}\n $hoverable={showTooltip}\n ref={overflowRef}\n >\n {content}\n </StyledSelectButtonLabel>\n )\n\n return showTooltip ? (\n <Tooltip\n trigger={isFocused ? 'always' : 'hover'}\n overlay={content}\n >\n {trigger}\n </Tooltip>\n ) : (\n trigger\n )\n }}\n </OverflowObserver>\n </SelectButtonFocusContext.Provider>\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 return (\n <StyledSelectButtonWrapper\n // relatively positioned wrapper tag for the clear button absolute overlay\n // className and style go to the styled button/combobox element\n $block={block}\n >\n {button}\n {onClear ? (\n <StyledSelectClearIcon\n aria-label={i18n.t('core.select.clear')}\n ref={clearRef}\n data-qa={qa?.clear || 'core-select-clear'}\n disabled={disabled}\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n onClick={disabled ? undefined : onClear}\n onMouseDown={(e: React.MouseEvent) => e.preventDefault()} // prevents an element from getting the focus\n tabIndex={showClearIcon ? 0 : -1}\n />\n ) : null}\n </StyledSelectButtonWrapper>\n )\n }\n)\n\nconst SelectMenu = React.forwardRef<HTMLDivElement, SelectMenuProps>(\n function SelectMenu(\n {\n onSearch: onSearch_,\n header,\n footer,\n emptyMessage,\n optionsRef,\n children,\n i18nScope,\n onSelect: onSelect_ = noop,\n menuRef,\n menuId,\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 id={menuId}\n circular\n >\n {onSearch_ && (\n <MenuImperative.Search\n autoComplete=\"false\"\n i18nScope={i18nScope}\n onChange={onSearch}\n {...menuNavigationTriggerProps}\n />\n )}\n {header && <MenuImperative.Header>{header}</MenuImperative.Header>}\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\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,\n error = false,\n header,\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 restoreFocusOnHide = 'core-react',\n showDelay = 0,\n tabIndex = 0,\n qa,\n ...props\n },\n forwardRef\n) {\n const i18n = useI18nContext()\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 const menuId = useId()\n const isListboxOnly = !onSearch && !header && !footer\n\n const emptyMessageText =\n emptyMessage ?? i18n.t('noResult', { scope: i18nScope })\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 containFocus={!!footer}\n hideDelay={hideDelay}\n restoreFocusOnHide={restoreFocusOnHide}\n role={isListboxOnly ? 'listbox' : undefined}\n passA11yPropsToOverlay={isListboxOnly}\n overlayId={menuId}\n overlay={\n <SelectMenu\n onSearch={onSearch}\n header={header}\n footer={footer}\n emptyMessage={emptyMessageText}\n optionsRef={optionsRef}\n i18nScope={i18nScope}\n onSelect={onSelect}\n onScrollBottom={onScrollBottom}\n menuRef={menuRef}\n menuId={menuId}\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 isListboxOnly={isListboxOnly}\n menuId={menuId}\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\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://stories.core.procore.com/?path=/story/core-react_demos-select--demo)\n\n @see [Design Guidelines](https://design.procore.com/select)\n\n */\nexport const Select = addSubcomponents(\n {\n Button,\n Option,\n OptGroup,\n },\n Select_\n)\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAChD,SAASC,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,KAAK,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SACEC,cAAc,EACdC,kCAAkC,QAC7B,kCAAkC;AAEzC,SAASC,QAAQ,QAAQ,aAAa;AACtC,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SACEC,iBAAiB,EACjBC,0BAA0B,EAC1BC,kBAAkB,EAClBC,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AAA,CAACU,MAAM,EAAAR,QAAA,KACDJ,KAAK;IACTe,KAAK,EAAEA,KAAM;IACbE,SAAS,EAAEA,SAAU;IACrBC,QAAQ,EAAEA,QAAS;IACnBE,QAAQ,EAAEA,QAAS;IACnBE,KAAK,EAAEA,KAAM;IACbE,KAAK,EAAEgF,QAAQ,GAAG,KAAK,GAAGlH,MAAO;IACjCmC,KAAK,EAAEA,KAAM;IACbE,OAAO,EAAEA,OAAQ;IACjBG,WAAW,EAAEA,WAAY;IACzBqG,SAAS,EAAEA,SAAU;IACrBvG,OAAO,EAAE9D,KAAK,CAAC8M,QAAQ,CAAC,GAAGA,QAAQ,GAAGhJ,OAAQ;IAC9CO,YAAY,EAAEA,YAAa;IAC3BF,QAAQ,EAAEA,QAAS;IACnBI,aAAa,EAAEA,aAAc;IAC7BC,MAAM,EAAEA,MAAO;IACfP,EAAE,EAAEA;EAAG,EACR,CACa,CAAC;AAErB,CAAC,CAAC;AAEFuH,OAAO,CAAC+C,WAAW,GAAG,QAAQ;AAE9BzL,MAAM,CAACyL,WAAW,GAAG,eAAe;AAEpChM,MAAM,CAACgM,WAAW,GAAG,eAAe;AAEpCvM,QAAQ,CAACuM,WAAW,GAAG,iBAAiB;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAM9C,MAAM,GAAG7K,gBAAgB,CACpC;EACEkC,MAAM,EAANA,MAAM;EACNP,MAAM,EAANA,MAAM;EACNP,QAAQ,EAARA;AACF,CAAC,EACDwJ,OACF,CAAC"}
1
+ {"version":3,"file":"Select.js","names":["Clear","useId","classNames","isNil","React","Box","MenuImperative","useMenuImperativeControlNavigation","Notation","OverlayTrigger","useOverlayTriggerContext","Spinner","Tooltip","useI18nContext","OverflowObserver","addSubcomponents","StyledSelectArrow","StyledSelectArrowContainer","StyledSelectButton","StyledSelectButtonLabel","StyledSelectButtonWrapper","StyledSelectClearIcon","StyledSelectMenu","StyledSelectSpinner","noop","isFunction","obj","isOpen","_ref","_ref$open","open","SelectButtonFocusContext","createContext","useSelectButtonFocused","useContext","OptGroup","forwardRef","props","ref","createElement","Group","_extends","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","_ref3$isListboxOnly","isListboxOnly","menuId","ariaExpandedProp","style","_excluded2","i18n","hasClearIcon","Boolean","showClearIcon","labelId","content","ariaExpanded","_React$useState","useState","_React$useState2","_slicedToArray","isFocused","setIsFocused","_ref4","onFocusProp","onFocus","onBlurProp","onBlur","ariaLabelledByProp","restProps","_excluded3","ariaLabelledBy","undefined","filter","join","handleFocus","useCallback","event","handleBlur","button","role","$block","$error","$disabled","$hasClearIcon","$showClearIcon","$loading","$open","$placeholder","Provider","_ref5","isOverflowingX","overflowRef","showTooltip","trigger","id","$hoverable","overlay","color","size","t","clear","variant","icon","onClick","onMouseDown","e","preventDefault","SelectMenu","_ref6","onSearch_","onSearch","header","footer","emptyMessage","optionsRef","i18nScope","_ref6$onSelect","onSelect","onSelect_","menuRef","_excluded4","ctx","_React$useState3","_React$useState4","searchValue","setSearchValue","_useMenuImperativeCon","menuProps","menuNavigationTriggerProps","useEffect","_menuRef$current","current","highlightFirst","_menuRef$current2","_menuRef$current3","highlightSuggested","highlightSelected","onKeyDown","_props$onKeyDown","call","key","stopPropagation","selection","hide","target","shadowStrength","circular","Search","autoComplete","onChange","Header","Children","count","Options","padding","Footer","Select_","Select","_ref7","_ref7$afterHide","afterHide","afterHide_","_ref7$afterShow","afterShow","afterShow_","_ref7$beforeHide","beforeHide","_ref7$beforeShow","beforeShow","_ref7$block","container","_ref7$disabled","_ref7$error","_ref7$hideDelay","hideDelay","_ref7$i18nScope","_ref7$label","_ref7$loading","onClear_","_ref7$onKeyDown","onScrollBottom","_ref7$onSelect","_ref7$placement","placement","_ref7$restoreFocusOnH","restoreFocusOnHide","_ref7$showDelay","showDelay","_ref7$tabIndex","_excluded5","useRef","overlayTriggerRef","_React$useState5","_React$useState6","setIsMenuOpened","emptyMessageText","scope","_overlayTriggerRef$cu","autoFocus","canFlip","containFocus","passA11yPropsToOverlay","overlayId","displayName"],"sources":["../../src/Select/Select.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons/dist'\nimport { useId } from '@react-aria/utils'\nimport classNames from 'classnames'\nimport { isNil } from 'ramda'\nimport React from 'react'\nimport { Box } from '../Box'\nimport {\n MenuImperative,\n useMenuImperativeControlNavigation,\n} from '../MenuImperative/MenuImperative'\nimport type { MenuRef, Selection } from '../MenuImperative/MenuImperative.types'\nimport { Notation } from '../Notation'\nimport {\n OverlayTrigger,\n useOverlayTriggerContext,\n} from '../OverlayTrigger/OverlayTrigger'\nimport { Spinner } from '../Spinner'\nimport { Tooltip } from '../Tooltip'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport {\n StyledSelectArrow,\n StyledSelectArrowContainer,\n StyledSelectButton,\n StyledSelectButtonLabel,\n StyledSelectButtonWrapper,\n StyledSelectClearIcon,\n StyledSelectMenu,\n StyledSelectSpinner,\n} from './Select.styles'\nimport type {\n SelectButtonProps,\n SelectMenuProps,\n SelectOptGroupProps,\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 SelectButtonFocusContext = React.createContext(false)\nexport const useSelectButtonFocused = () =>\n React.useContext(SelectButtonFocusContext)\n\nexport const OptGroup = React.forwardRef<HTMLDivElement, SelectOptGroupProps>(\n (props, ref) => <MenuImperative.Group {...props} ref={ref} />\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 isListboxOnly = false,\n menuId,\n 'aria-expanded': ariaExpandedProp,\n style,\n ...props\n },\n ref\n ) {\n const i18n = useI18nContext()\n const hasClearIcon = Boolean(onClear)\n const showClearIcon = !disabled && !loading && Boolean(label)\n const labelId = useId()\n\n const content = children || label || placeholder\n const ariaExpanded = disabled\n ? false\n : isListboxOnly\n ? ariaExpandedProp\n : open\n\n const [isFocused, setIsFocused] = React.useState(false)\n\n const {\n onFocus: onFocusProp,\n onBlur: onBlurProp,\n 'aria-labelledby': ariaLabelledByProp,\n ...restProps\n } = props as typeof props & {\n onFocus?: React.FocusEventHandler<HTMLDivElement>\n onBlur?: React.FocusEventHandler<HTMLDivElement>\n }\n\n const ariaLabelledBy = isListboxOnly\n ? ariaLabelledByProp || labelId || undefined\n : [ariaLabelledByProp, labelId].filter(Boolean).join(' ') || undefined\n\n const handleFocus = React.useCallback(\n (event: React.FocusEvent<HTMLDivElement>) => {\n setIsFocused(true)\n onFocusProp?.(event)\n },\n [onFocusProp]\n )\n\n const handleBlur = React.useCallback(\n (event: React.FocusEvent<HTMLDivElement>) => {\n setIsFocused(false)\n onBlurProp?.(event)\n },\n [onBlurProp]\n )\n\n const button = (\n <StyledSelectButton\n ref={ref}\n role=\"combobox\"\n aria-disabled={disabled}\n tabIndex={disabled ? -1 : tabIndex}\n aria-expanded={ariaExpanded}\n aria-controls={menuId}\n aria-haspopup=\"listbox\"\n aria-invalid={error}\n aria-labelledby={ariaLabelledBy}\n $block={true}\n className={classNames(className, {\n focus: isFunction(focus) ? (focus as Function)({ open }) : focus,\n })}\n style={style}\n $error={error}\n $disabled={disabled}\n $hasClearIcon={hasClearIcon}\n $showClearIcon={showClearIcon}\n $loading={loading}\n $open={open}\n $placeholder={!label}\n {...restProps}\n onFocus={handleFocus}\n onBlur={handleBlur}\n >\n <SelectButtonFocusContext.Provider value={isFocused}>\n <OverflowObserver>\n {({ isOverflowingX, ref: overflowRef }) => {\n const showTooltip = !disabled && isOverflowingX && !isMenuOpened\n const trigger = (\n <StyledSelectButtonLabel\n id={labelId}\n data-qa={qa?.label}\n $hoverable={showTooltip}\n ref={overflowRef}\n >\n {content}\n </StyledSelectButtonLabel>\n )\n\n return showTooltip ? (\n <Tooltip\n trigger={isFocused ? 'always' : 'hover'}\n overlay={content}\n >\n {trigger}\n </Tooltip>\n ) : (\n trigger\n )\n }}\n </OverflowObserver>\n </SelectButtonFocusContext.Provider>\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 return (\n <StyledSelectButtonWrapper\n // relatively positioned wrapper tag for the clear button absolute overlay\n // className and style go to the styled button/combobox element\n $block={block}\n >\n {button}\n {onClear ? (\n <StyledSelectClearIcon\n aria-label={i18n.t('core.select.clear')}\n ref={clearRef}\n data-qa={qa?.clear || 'core-select-clear'}\n disabled={disabled}\n size=\"sm\"\n variant=\"tertiary\"\n icon={<Clear />}\n onClick={disabled ? undefined : onClear}\n onMouseDown={(e: React.MouseEvent) => e.preventDefault()} // prevents an element from getting the focus\n tabIndex={showClearIcon ? 0 : -1}\n />\n ) : null}\n </StyledSelectButtonWrapper>\n )\n }\n)\n\nconst SelectMenu = React.forwardRef<HTMLDivElement, SelectMenuProps>(\n function SelectMenu(\n {\n onSearch: onSearch_,\n header,\n footer,\n emptyMessage,\n optionsRef,\n children,\n i18nScope,\n onSelect: onSelect_ = noop,\n menuRef,\n menuId,\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 id={menuId}\n circular\n >\n {onSearch_ && (\n <MenuImperative.Search\n autoComplete=\"false\"\n i18nScope={i18nScope}\n onChange={onSearch}\n {...menuNavigationTriggerProps}\n />\n )}\n {header && <MenuImperative.Header>{header}</MenuImperative.Header>}\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\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,\n error = false,\n header,\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 restoreFocusOnHide = 'core-react',\n showDelay = 0,\n tabIndex = 0,\n qa,\n ...props\n },\n forwardRef\n) {\n const i18n = useI18nContext()\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 const menuId = useId()\n const isListboxOnly = !onSearch && !header && !footer\n\n const emptyMessageText =\n emptyMessage ?? i18n.t('noResult', { scope: i18nScope })\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 containFocus={!!footer}\n hideDelay={hideDelay}\n restoreFocusOnHide={restoreFocusOnHide}\n role={isListboxOnly ? 'listbox' : undefined}\n passA11yPropsToOverlay={isListboxOnly}\n overlayId={menuId}\n overlay={\n <SelectMenu\n onSearch={onSearch}\n header={header}\n footer={footer}\n emptyMessage={emptyMessageText}\n optionsRef={optionsRef}\n i18nScope={i18nScope}\n onSelect={onSelect}\n onScrollBottom={onScrollBottom}\n menuRef={menuRef}\n menuId={menuId}\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 isListboxOnly={isListboxOnly}\n menuId={menuId}\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\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://stories.core.procore.com/?path=/story/core-react_demos-select--demo)\n\n @see [Design Guidelines](https://design.procore.com/select)\n\n */\nexport const Select = addSubcomponents(\n {\n Button,\n Option,\n OptGroup,\n },\n Select_\n)\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAChD,SAASC,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,UAAU,MAAM,YAAY;AACnC,SAASC,KAAK,QAAQ,OAAO;AAC7B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SACEC,cAAc,EACdC,kCAAkC,QAC7B,kCAAkC;AAEzC,SAASC,QAAQ,QAAQ,aAAa;AACtC,SACEC,cAAc,EACdC,wBAAwB,QACnB,kCAAkC;AACzC,SAASC,OAAO,QAAQ,YAAY;AACpC,SAASC,OAAO,QAAQ,YAAY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AU;IACrB/K,GAAG,EAAEA,GAAI;IACTmL,SAAS,EAAEA,SAAU;IACrB9F,OAAO,EAAElE,QAAQ,GAAG,MAAM,GAAG;EAAQ,gBAErCrD,KAAA,CAAAmC,aAAA,CAACU,MAAM,EAAAR,QAAA,KACDJ,KAAK;IACTe,KAAK,EAAEA,KAAM;IACbE,SAAS,EAAEA,SAAU;IACrBC,QAAQ,EAAEA,QAAS;IACnBE,QAAQ,EAAEA,QAAS;IACnBE,KAAK,EAAEA,KAAM;IACbE,KAAK,EAAE+E,QAAQ,GAAG,KAAK,GAAGjH,MAAO;IACjCmC,KAAK,EAAEA,KAAM;IACbE,OAAO,EAAEA,OAAQ;IACjBG,WAAW,EAAEA,WAAY;IACzBoG,SAAS,EAAEA,SAAU;IACrBtG,OAAO,EAAE9D,KAAK,CAAC6M,QAAQ,CAAC,GAAGA,QAAQ,GAAG/I,OAAQ;IAC9CO,YAAY,EAAEA,YAAa;IAC3BF,QAAQ,EAAEA,QAAS;IACnBI,aAAa,EAAEA,aAAc;IAC7BC,MAAM,EAAEA,MAAO;IACfP,EAAE,EAAEA;EAAG,EACR,CACa,CAAC;AAErB,CAAC,CAAC;AAEFsH,OAAO,CAAC+C,WAAW,GAAG,QAAQ;AAE9BxL,MAAM,CAACwL,WAAW,GAAG,eAAe;AAEpC/L,MAAM,CAAC+L,WAAW,GAAG,eAAe;AAEpCtM,QAAQ,CAACsM,WAAW,GAAG,iBAAiB;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAM9C,MAAM,GAAG5K,gBAAgB,CACpC;EACEkC,MAAM,EAANA,MAAM;EACNP,MAAM,EAANA,MAAM;EACNP,QAAQ,EAARA;AACF,CAAC,EACDuJ,OACF,CAAC"}
@@ -17,41 +17,41 @@ export var tableSelectClassName = 'select--table';
17
17
  var styledSelectButtonDefaultWidth = 248;
18
18
  export var StyledSelectButtonWrapper = /*#__PURE__*/styled.div.withConfig({
19
19
  displayName: "StyledSelectButtonWrapper",
20
- componentId: "core-12_49_0__sc-mr8gwe-0"
20
+ componentId: "core-12_50_0__sc-mr8gwe-0"
21
21
  })(["display:inline-block;position:relative;width:", ";"], function (_ref) {
22
22
  var $block = _ref.$block;
23
23
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
24
24
  });
25
25
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
26
26
  displayName: "StyledSelectMenu",
27
- componentId: "core-12_49_0__sc-mr8gwe-1"
27
+ componentId: "core-12_50_0__sc-mr8gwe-1"
28
28
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
29
29
  export var StyledSelectButtonLabel = /*#__PURE__*/styled.div.withConfig({
30
30
  displayName: "StyledSelectButtonLabel",
31
- componentId: "core-12_49_0__sc-mr8gwe-2"
31
+ componentId: "core-12_50_0__sc-mr8gwe-2"
32
32
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref2) {
33
33
  var $hoverable = _ref2.$hoverable;
34
34
  return $hoverable ? 'initial' : 'none';
35
35
  });
36
36
  export var StyledSelectSpinner = /*#__PURE__*/styled.div.withConfig({
37
37
  displayName: "StyledSelectSpinner",
38
- componentId: "core-12_49_0__sc-mr8gwe-3"
38
+ componentId: "core-12_50_0__sc-mr8gwe-3"
39
39
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
40
40
  export var StyledSelectArrowContainer = /*#__PURE__*/styled.div.withConfig({
41
41
  displayName: "StyledSelectArrowContainer",
42
- componentId: "core-12_49_0__sc-mr8gwe-4"
42
+ componentId: "core-12_50_0__sc-mr8gwe-4"
43
43
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
44
44
  export var StyledSelectArrow = /*#__PURE__*/styled.div.withConfig({
45
45
  displayName: "StyledSelectArrow",
46
- componentId: "core-12_49_0__sc-mr8gwe-5"
46
+ componentId: "core-12_50_0__sc-mr8gwe-5"
47
47
  })(["position:relative;", ""], arrowDown(4, 'gray45'));
48
48
  export var StyledSelectClearIcon = /*#__PURE__*/styled(Button).withConfig({
49
49
  displayName: "StyledSelectClearIcon",
50
- componentId: "core-12_49_0__sc-mr8gwe-6"
50
+ componentId: "core-12_50_0__sc-mr8gwe-6"
51
51
  })(["position:absolute;right:29px;top:50%;transform:translateY(-50%);", "{pointer-events:none;}"], StyledContent);
52
52
  export var StyledSelectButton = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledSelectButton",
54
- componentId: "core-12_49_0__sc-mr8gwe-7"
54
+ componentId: "core-12_50_0__sc-mr8gwe-7"
55
55
  })(["", " 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=", "],", ":focus-within &{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " ", " &.", "{", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray50, borderRadius.md, colors.gray15, spacing.md, function (_ref3) {
56
56
  var $block = _ref3.$block;
57
57
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -7,7 +7,6 @@ import type { PortalProps } from '../Portal/Portal.types';
7
7
  import type { Props } from '../_utils/types';
8
8
  export declare type SelectPlacement = DropdownPlacement;
9
9
  declare type DivProps = React.ComponentPropsWithoutRef<'div'>;
10
- export declare type TriggerRole = 'combobox' | 'button';
11
10
  export interface SelectMenuProps extends Omit<DivProps, 'onSelect' | 'onDragEnd'>, Pick<PortalProps, 'container'> {
12
11
  /**
13
12
  * @since 10.19.0
@@ -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'\nimport type { PortalProps } from '../Portal/Portal.types'\nimport type { Props } from '../_utils/types'\n\nexport type SelectPlacement = DropdownPlacement\n\ntype DivProps = React.ComponentPropsWithoutRef<'div'>\n\nexport type TriggerRole = 'combobox' | 'button'\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 12.15.0\n */\n header?: React.ReactNode\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 * @since 12.35.1\n */\n menuId: string\n}\n\nexport interface SelectOptGroupProps extends Props {\n /**\n * @since 12.39.0\n */\n label?: string\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 12.15.0\n */\n header?: React.ReactNode\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 `function` 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 /**\n * Restore focus to the target after the overlay is hidden.\n * 'core-react' will use internal logic to restore focus,\n * 'react-aria-focus-scope' will use 'FocusScope' component from '@react-aria',\n * true will use both.\n * @default 'core-react'\n * @since 12.11.0\n */\n restoreFocusOnHide?: OverlayTriggerProps['restoreFocusOnHide']\n\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 * @since 12.35.1\n */\n isListboxOnly?: boolean\n /**\n * @since 12.35.1\n */\n menuId?: string\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'\nimport type { Props } from '../_utils/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 12.15.0\n */\n header?: React.ReactNode\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 * @since 12.35.1\n */\n menuId: string\n}\n\nexport interface SelectOptGroupProps extends Props {\n /**\n * @since 12.39.0\n */\n label?: string\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 12.15.0\n */\n header?: React.ReactNode\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 `function` 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 /**\n * Restore focus to the target after the overlay is hidden.\n * 'core-react' will use internal logic to restore focus,\n * 'react-aria-focus-scope' will use 'FocusScope' component from '@react-aria',\n * true will use both.\n * @default 'core-react'\n * @since 12.11.0\n */\n restoreFocusOnHide?: OverlayTriggerProps['restoreFocusOnHide']\n\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 * @since 12.35.1\n */\n isListboxOnly?: boolean\n /**\n * @since 12.35.1\n */\n menuId?: string\n}\n"],"mappings":""}
@@ -5,15 +5,15 @@ import { colors } from '../_styles/colors';
5
5
  import { spacing } from '../_styles/spacing';
6
6
  export var StyledH1 = /*#__PURE__*/styled.h1.withConfig({
7
7
  displayName: "StyledH1",
8
- componentId: "core-12_49_0__sc-172j5qh-0"
8
+ componentId: "core-12_50_0__sc-172j5qh-0"
9
9
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h1'));
10
10
  export var StyledH2 = /*#__PURE__*/styled.h2.withConfig({
11
11
  displayName: "StyledH2",
12
- componentId: "core-12_49_0__sc-172j5qh-1"
12
+ componentId: "core-12_50_0__sc-172j5qh-1"
13
13
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h2'));
14
14
  export var StyledH3 = /*#__PURE__*/styled.h3.withConfig({
15
15
  displayName: "StyledH3",
16
- componentId: "core-12_49_0__sc-172j5qh-2"
16
+ componentId: "core-12_50_0__sc-172j5qh-2"
17
17
  })(["color:", ";", " margin:0;"], colors.gray15, getTypographyIntent('h3'));
18
18
  var topMarginRules = function topMarginRules() {
19
19
  return css(["& + &,p + &,ol + &,ul + &{margin-top:", "px;}"], spacing.lg);
@@ -28,11 +28,11 @@ export function getSmallIconBodyTextRules() {
28
28
  }
29
29
  export var StyledP = /*#__PURE__*/styled.p.withConfig({
30
30
  displayName: "StyledP",
31
- componentId: "core-12_49_0__sc-172j5qh-3"
31
+ componentId: "core-12_50_0__sc-172j5qh-3"
32
32
  })(["color:", ";", " ", " ", ""], colors.gray15, getTypographyIntent('body'), topMarginRules, semiboldRules);
33
33
  export var StyledUL = /*#__PURE__*/styled.ul.withConfig({
34
34
  displayName: "StyledUL",
35
- componentId: "core-12_49_0__sc-172j5qh-4"
35
+ componentId: "core-12_50_0__sc-172j5qh-4"
36
36
  })(["color:", ";margin:0;padding:0;", " ", " padding-left:", "px;list-style-type:", ";"], colors.gray15, getTypographyIntent('body'), topMarginRules, spacing.lg, function (props) {
37
37
  return props.$listStyleType || 'disc';
38
38
  });
@@ -40,7 +40,7 @@ export var StyledOL = /*#__PURE__*/styled(StyledUL).attrs({
40
40
  as: 'ol'
41
41
  }).withConfig({
42
42
  displayName: "StyledOL",
43
- componentId: "core-12_49_0__sc-172j5qh-5"
43
+ componentId: "core-12_50_0__sc-172j5qh-5"
44
44
  })(["list-style-type:", ";"], function (props) {
45
45
  return props.$listStyleType || 'decimal';
46
46
  });
@@ -51,7 +51,7 @@ export var StyledLabel = /*#__PURE__*/styled(StyledTypography).attrs(function (p
51
51
  };
52
52
  }).withConfig({
53
53
  displayName: "StyledLabel",
54
- componentId: "core-12_49_0__sc-172j5qh-6"
54
+ componentId: "core-12_50_0__sc-172j5qh-6"
55
55
  })(["", " ", " > ", "{margin-left:", "px;vertical-align:top;}"], function (_ref) {
56
56
  var _ref$$block = _ref.$block,
57
57
  $block = _ref$$block === void 0 ? false : _ref$$block;
@@ -69,7 +69,7 @@ export function getUnstyledButton() {
69
69
  */
70
70
  export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
71
71
  displayName: "StyledUnstyledButton",
72
- componentId: "core-12_49_0__sc-172j5qh-7"
72
+ componentId: "core-12_50_0__sc-172j5qh-7"
73
73
  })(["", ""], getUnstyledButton);
74
74
 
75
75
  /**
@@ -77,6 +77,6 @@ export var StyledUnstyledButton = /*#__PURE__*/styled.button.withConfig({
77
77
  */
78
78
  export var StyledAnchor = /*#__PURE__*/styled.a.withConfig({
79
79
  displayName: "StyledAnchor",
80
- componentId: "core-12_49_0__sc-172j5qh-8"
80
+ componentId: "core-12_50_0__sc-172j5qh-8"
81
81
  })([""]);
82
82
  //# sourceMappingURL=Semantic.styles.js.map
@@ -22,13 +22,13 @@ var getTrackBackgroundDisabled = function getTrackBackgroundDisabled(percent) {
22
22
  var getThumbDisabledStyles = /*#__PURE__*/css(["cursor:not-allowed;border:2px solid ", ";"], colors.blue85);
23
23
  export var StyledContainer = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "StyledContainer",
25
- componentId: "core-12_49_0__sc-12icguw-0"
25
+ componentId: "core-12_50_0__sc-12icguw-0"
26
26
  })(["position:relative;", ";"], function (props) {
27
27
  return props.$showLabel && 'padding-bottom: 10px';
28
28
  });
29
29
  export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
30
30
  displayName: "StyledSlider",
31
- componentId: "core-12_49_0__sc-12icguw-1"
31
+ componentId: "core-12_50_0__sc-12icguw-1"
32
32
  })(["-webkit-appearance:none;margin:0;padding-top:5px;padding-bottom:5px;width:100%;border:1px solid transparent;background-color:transparent;font-size:12px;&:focus{outline:none;", ";padding-top:5px;padding-bottom:5px;border-radius:2px;}&::-webkit-slider-runnable-track{", " ", "}&:disabled::-webkit-slider-runnable-track{cursor:not-allowed;", "}&::-webkit-slider-thumb{", " -webkit-appearance:none;margin-top:-5px;}&:disabled::-webkit-slider-thumb{", "}&::-moz-range-track{", " ", "}&:disabled::-moz-range-track{cursor:not-allowed;", "}&::-moz-range-thumb{", " height:12px;width:12px;}&:disabled::-moz-range-thumb{", "}&::-ms-track{", " height:", "px;color:transparent;", "}&:disabled::-ms-track{cursor:not-allowed;", "}&::-ms-fill-lower{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-fill-upper{background:", ";border:0px solid ", ";border-radius:2px;box-shadow:1px 1px 1px ", ";}&::-ms-thumb{", "}&:disabled::-ms-thumb{", "}&:focus::-ms-fill-lower{background:", ";}&:focus::-ms-fill-upper{background:", ";}"], function (props) {
33
33
  return props.$isDragging ? "border: 1px solid transparent" : "border: 1px solid ".concat(colors.blue40);
34
34
  }, getTrackStyles, function (props) {
@@ -46,7 +46,7 @@ export var StyledSlider = /*#__PURE__*/styled.input.withConfig({
46
46
  }, colors.blue50, colors.black, colors.black, colors.gray85, colors.black, colors.black, getThumbStyles, getThumbDisabledStyles, colors.blue50, colors.gray85);
47
47
  export var StyledIncrementOverlay = /*#__PURE__*/styled.div.withConfig({
48
48
  displayName: "StyledIncrementOverlay",
49
- componentId: "core-12_49_0__sc-12icguw-2"
49
+ componentId: "core-12_50_0__sc-12icguw-2"
50
50
  })(["position:relative;width:0;&::before{content:'';height:", "px;width:4px;transform:translateX(-50%);background-color:white;pointer-events:none;", ";display:block;visibility:", ";}z-index:2;"], TRACK_HEIGHT, function (props) {
51
51
  return props.$isDisabled ? "border-left: 1px solid ".concat(props.$filled ? colors.blue85 : colors.gray85, ";\n border-right: 1px solid ").concat(props.$filled ? colors.blue85 : colors.gray85, ";") : "border-left: 1px solid ".concat(props.$filled ? colors.blue50 : colors.gray50, ";\n border-right: 1px solid ").concat(props.$filled ? colors.blue50 : colors.gray50, ";");
52
52
  }, function (props) {
@@ -54,10 +54,10 @@ export var StyledIncrementOverlay = /*#__PURE__*/styled.div.withConfig({
54
54
  });
55
55
  export var StyledIncrementContainer = /*#__PURE__*/styled.div.withConfig({
56
56
  displayName: "StyledIncrementContainer",
57
- componentId: "core-12_49_0__sc-12icguw-3"
57
+ componentId: "core-12_50_0__sc-12icguw-3"
58
58
  })(["position:absolute;display:flex;justify-content:space-between;top:6px;", " left:5px;right:5px;> :first-child{visibility:hidden;}> :last-child{visibility:hidden;}"], applyStylesOnlyToFF("\n top: 12px;\n "));
59
59
  export var StyledLabel = /*#__PURE__*/styled(Typography).withConfig({
60
60
  displayName: "StyledLabel",
61
- componentId: "core-12_49_0__sc-12icguw-4"
61
+ componentId: "core-12_50_0__sc-12icguw-4"
62
62
  })(["visibility:visible;position:absolute;left:50%;transform:translateX(-50%);margin-top:8px;"]);
63
63
  //# sourceMappingURL=Slider.styles.js.map
@@ -10,7 +10,7 @@ var zOverlay = 2;
10
10
  var dash = /*#__PURE__*/keyframes(["0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}"]);
11
11
  export var StyledCircle = /*#__PURE__*/styled.circle.withConfig({
12
12
  displayName: "StyledCircle",
13
- componentId: "core-12_49_0__sc-1igww3-0"
13
+ componentId: "core-12_50_0__sc-1igww3-0"
14
14
  })(["", " stroke-linecap:round;"], function (p) {
15
15
  if (p.$animate) {
16
16
  var animationDelay = -(p.$mountTime % duration);
@@ -51,16 +51,16 @@ function getStrokeColor(_ref2) {
51
51
  }
52
52
  export var StyledSpinnerContainer = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledSpinnerContainer",
54
- componentId: "core-12_49_0__sc-1igww3-1"
54
+ componentId: "core-12_50_0__sc-1igww3-1"
55
55
  })(["border-radius:100%;box-sizing:border-box;display:block;flex-shrink:0;position:relative;", " ", "{", "}"], getHeightWidthStroke, StyledCircle, getStrokeColor);
56
56
  export var StyledSpinnerOverlayLabel = /*#__PURE__*/styled.span.withConfig({
57
57
  displayName: "StyledSpinnerOverlayLabel",
58
- componentId: "core-12_49_0__sc-1igww3-2"
58
+ componentId: "core-12_50_0__sc-1igww3-2"
59
59
  })(["", " color:", ";display:block;min-height:20px;padding-top:", "px;text-align:center;transition:opacity ", ";"], getTypographyIntent('body'), colors.gray15, spacing.md, transition);
60
60
  var rotate = /*#__PURE__*/keyframes(["to{transform:rotate(360deg);}"]);
61
61
  export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
62
62
  displayName: "StyledSpinnerSVG",
63
- componentId: "core-12_49_0__sc-1igww3-3"
63
+ componentId: "core-12_50_0__sc-1igww3-3"
64
64
  })(["", " fill:none;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%;z-index:2;"], function (p) {
65
65
  if (p.$animate) {
66
66
  var animationDelay = -(p.$mountTime % (duration - durationOffset));
@@ -70,15 +70,15 @@ export var StyledSpinnerSVG = /*#__PURE__*/styled.svg.withConfig({
70
70
  var startsWithNoInteraction = /*#__PURE__*/css(["opacity:0;pointer-events:none;transition:opacity ", ";"], transition);
71
71
  export var StyledSpinnerOverlay = /*#__PURE__*/styled.div.withConfig({
72
72
  displayName: "StyledSpinnerOverlay",
73
- componentId: "core-12_49_0__sc-1igww3-4"
73
+ componentId: "core-12_50_0__sc-1igww3-4"
74
74
  })(["", ";background-color:", ";bottom:0;left:0;position:absolute;right:0;top:0;z-index:", ";"], startsWithNoInteraction, colors.white, zOverlay);
75
75
  export var StyledSpinnerContainerWithLabel = /*#__PURE__*/styled.div.withConfig({
76
76
  displayName: "StyledSpinnerContainerWithLabel",
77
- componentId: "core-12_49_0__sc-1igww3-5"
77
+ componentId: "core-12_50_0__sc-1igww3-5"
78
78
  })(["", ";align-items:center;display:flex;flex-direction:column;height:100%;max-height:400px;justify-content:center;position:absolute;top:0;width:100%;z-index:", ";"], startsWithNoInteraction, zContainer);
79
79
  export var StyledSpinnerOverlayContainer = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledSpinnerOverlayContainer",
81
- componentId: "core-12_49_0__sc-1igww3-6"
81
+ componentId: "core-12_50_0__sc-1igww3-6"
82
82
  })(["min-height:150px;position:relative;", " ", ""], function (_ref3) {
83
83
  var $loading = _ref3.$loading;
84
84
  if ($loading) {
@@ -7,18 +7,18 @@ import { spacing } from '../_styles/spacing';
7
7
  var MIN_CARD_HEIGHT = 364;
8
8
  export var StyledSplitViewCardContainer = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledSplitViewCardContainer",
10
- componentId: "core-12_49_0__sc-9hrkda-0"
10
+ componentId: "core-12_50_0__sc-9hrkda-0"
11
11
  })(["display:grid;grid-template-columns:1fr auto;border-radius:", "px;box-shadow:0 0 4px 0 rgba(0,0,0,0.25);min-height:", "px;position:relative;width:100%;@media (max-width:", "){box-shadow:none;display:flex;flex-direction:column;width:100%;}"], spacing.sm, MIN_CARD_HEIGHT, breakpointMinWidthValues.tabletMd);
12
12
  export var StyledSplitViewCardMain = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledSplitViewCardMain",
14
- componentId: "core-12_49_0__sc-9hrkda-1"
14
+ componentId: "core-12_50_0__sc-9hrkda-1"
15
15
  })(["background-color:", ";border-top-left-radius:", "px;border-bottom-left-radius:", "px;position:relative;width:60%;transition:all ease 500ms;@media (max-width:", "){box-shadow:0 0 4px 0 rgba(0,0,0,0.25);border-radius:", "px;margin-bottom:", "px;width:100%;}", ""], colors.white, spacing.sm, spacing.sm, breakpointMinWidthValues.tabletMd, spacing.sm, spacing.sm, function (_ref) {
16
16
  var $open = _ref.$open;
17
17
  return !$open && css(["border-radius:", "px;width:100%;"], spacing.sm);
18
18
  });
19
19
  export var StyledSplitViewCardAside = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledSplitViewCardAside",
21
- componentId: "core-12_49_0__sc-9hrkda-2"
21
+ componentId: "core-12_50_0__sc-9hrkda-2"
22
22
  })(["background-color:", ";border-left:1px solid ", ";border-top-right-radius:", "px;border-bottom-right-radius:", "px;display:flex;flex-direction:column;height:100%;width:40%;min-height:", "px;min-width:400px;transition:all ease 500ms;z-index:2;position:absolute;top:0;right:0;@media screen and (max-width:", "px){min-width:unset;}@media (max-width:", "){box-shadow:0 0 4px 0 rgba(0,0,0,0.25);border:none;border-radius:", "px;position:relative;width:100%;}", " ", ""], colors.white, colors.gray85, spacing.sm, spacing.sm, MIN_CARD_HEIGHT, breakpointRawMinWidthValues.tabletSm, breakpointMinWidthValues.tabletMd, spacing.sm, function (_ref2) {
23
23
  var $open = _ref2.$open;
24
24
  return !$open && css(["border:none;border-radius:", "px;overflow:hidden !important;@media (min-width:", "){min-width:0;width:0 !important;}@media (max-width:", "){display:none;}"], spacing.sm, breakpointMinWidthValues.tabletMd, breakpointMinWidthValues.tabletMd);
@@ -28,23 +28,23 @@ export var StyledSplitViewCardAside = /*#__PURE__*/styled.div.withConfig({
28
28
  });
29
29
  export var StyledSplitViewCardHeading = /*#__PURE__*/styled(H2).withConfig({
30
30
  displayName: "StyledSplitViewCardHeading",
31
- componentId: "core-12_49_0__sc-9hrkda-3"
31
+ componentId: "core-12_50_0__sc-9hrkda-3"
32
32
  })(["width:100%;"]);
33
33
  export var StyledSplitViewCardTitle = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledSplitViewCardTitle",
35
- componentId: "core-12_49_0__sc-9hrkda-4"
35
+ componentId: "core-12_50_0__sc-9hrkda-4"
36
36
  })(["display:flex;justify-content:space-between;margin-bottom:", "px;min-height:36px;"], spacing.sm);
37
37
  export var StyledSplitViewCardHeader = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledSplitViewCardHeader",
39
- componentId: "core-12_49_0__sc-9hrkda-5"
39
+ componentId: "core-12_50_0__sc-9hrkda-5"
40
40
  })(["border-bottom:1px solid ", ";display:flex;flex-direction:column;padding:", "px ", "px 0;"], colors.gray85, spacing.lg, spacing.lg);
41
41
  export var StyledSplitViewCardBody = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledSplitViewCardBody",
43
- componentId: "core-12_49_0__sc-9hrkda-6"
43
+ componentId: "core-12_50_0__sc-9hrkda-6"
44
44
  })(["display:flex;flex-direction:column;flex:1;padding:", "px ", "px 0;overflow-y:auto;&:focus-visible{", "}"], spacing.lg, spacing.lg, getFocusInset());
45
45
  export var StyledSplitViewCardFooter = /*#__PURE__*/styled.div.withConfig({
46
46
  displayName: "StyledSplitViewCardFooter",
47
- componentId: "core-12_49_0__sc-9hrkda-7"
47
+ componentId: "core-12_50_0__sc-9hrkda-7"
48
48
  })(["display:flex;align-items:center;justify-content:flex-end;padding:", "px;", ""], spacing.lg, function (_ref4) {
49
49
  var $hasShadow = _ref4.$hasShadow;
50
50
  return $hasShadow && css(["box-shadow:0 -4px 6px 0 #0000001a;"]);
@@ -25,6 +25,9 @@ export declare const Search: (props: React.PropsWithChildren<any>) => React.JSX.
25
25
  export declare const Header: (props: React.PropsWithChildren<any>) => React.JSX.Element;
26
26
  export declare const Footer: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
27
27
  export declare const EmptyMessage: (props: any) => React.JSX.Element;
28
+ export declare const StatusMessage: (props: {
29
+ message?: string;
30
+ }) => React.JSX.Element;
28
31
  export declare const Options: (props: React.HTMLAttributes<HTMLDivElement>) => React.JSX.Element;
29
32
  export declare const Group: (props: React.PropsWithChildren<{}>) => React.JSX.Element;
30
33
  export declare const Item: React.ForwardRefExoticComponent<SuperSelectMenuItemProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,4 @@
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); }
1
2
  var _excluded = ["hoverable"],
2
3
  _excluded2 = ["placeholder"],
3
4
  _excluded3 = ["children", "isDragging"],
@@ -8,6 +9,11 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
8
9
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9
10
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
11
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
12
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
11
17
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
12
18
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
13
19
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
@@ -213,9 +219,20 @@ export var Footer = /*#__PURE__*/React.forwardRef(function (props, ref) {
213
219
  export var EmptyMessage = function EmptyMessage(props) {
214
220
  return /*#__PURE__*/React.createElement(StyledEmptyMessage, props, props.emptyMessage);
215
221
  };
222
+ export var StatusMessage = function StatusMessage(props) {
223
+ var _props$message;
224
+ return /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement("div", {
225
+ role: "status",
226
+ "aria-live": "polite",
227
+ "aria-atomic": "true"
228
+ }, (_props$message = props.message) !== null && _props$message !== void 0 ? _props$message : ''));
229
+ };
216
230
  export var Options = function Options(props) {
217
231
  var ctx = useSuperSelectContext();
218
- return /*#__PURE__*/React.createElement(StyledOptions, _extends({}, props, ctx.props.menu()));
232
+ var menuProps = ctx.props.menu();
233
+ return /*#__PURE__*/React.createElement(StyledOptions, _extends({}, menuProps, props, {
234
+ style: _objectSpread(_objectSpread({}, menuProps.style || {}), props.style || {})
235
+ }));
219
236
  };
220
237
  export var Group = function Group(props) {
221
238
  var ctx = useSuperSelectContext();