@procore/core-react 12.37.0 → 12.38.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 (224) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
  3. package/dist/Avatar/Avatar.styles.js +5 -5
  4. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  5. package/dist/Badge/Badge.styles.js +2 -2
  6. package/dist/BadgePill/BadgePill.styles.js +4 -4
  7. package/dist/Banner/Banner.d.ts +2 -1
  8. package/dist/Banner/Banner.js +53 -34
  9. package/dist/Banner/Banner.js.map +1 -1
  10. package/dist/Banner/Banner.styles.js +10 -10
  11. package/dist/Banner/Banner.types.d.ts +6 -0
  12. package/dist/Banner/Banner.types.js.map +1 -1
  13. package/dist/Banner/index.d.ts +1 -1
  14. package/dist/Banner/index.js.map +1 -1
  15. package/dist/Box/Box.styles.js +1 -1
  16. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  17. package/dist/Button/Button.styles.js +5 -5
  18. package/dist/Calendar/Calendar.styles.js +9 -9
  19. package/dist/Card/Card.styles.js +1 -1
  20. package/dist/Checkbox/Checkbox.styles.js +6 -6
  21. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  22. package/dist/ContactItem/ContactItem.styles.js +5 -5
  23. package/dist/Content/Content.styles.js +2 -2
  24. package/dist/DateInput/DateInput.styles.js +6 -6
  25. package/dist/DetailPage/DetailPage.styles.js +7 -7
  26. package/dist/Dropdown/Dropdown.styles.js +3 -3
  27. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  28. package/dist/Dropzone/Dropzone.js +1 -1
  29. package/dist/Dropzone/Dropzone.styles.js +9 -9
  30. package/dist/EmptyState/EmptyState.styles.js +6 -6
  31. package/dist/Field/Field.styles.js +3 -3
  32. package/dist/FileList/FileList.styles.js +4 -4
  33. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  34. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js +3 -1
  35. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.js.map +1 -1
  36. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  37. package/dist/FileSelect/FileSelect.styles.js +2 -2
  38. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  39. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  40. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  41. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  42. package/dist/FileSelect/SourceItem/SourceItem.js +10 -5
  43. package/dist/FileSelect/SourceItem/SourceItem.js.map +1 -1
  44. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  45. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  46. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  47. package/dist/FileToken/FileToken.styles.js +4 -4
  48. package/dist/FilterToken/FilterToken.styles.js +5 -5
  49. package/dist/FlexList/FlexList.styles.js +1 -1
  50. package/dist/Form/Form.styles.js +14 -14
  51. package/dist/Form/StyledFormikForm.styles.js +2 -2
  52. package/dist/Form/stories/util.js +1 -12
  53. package/dist/Form/stories/util.js.map +1 -1
  54. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  55. package/dist/Grid/Grid.styles.js +2 -2
  56. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  57. package/dist/Input/Input.styles.js +1 -1
  58. package/dist/Link/Link.styles.js +1 -1
  59. package/dist/ListPage/ListPage.styles.js +8 -8
  60. package/dist/Loader/Loader.styles.js +2 -2
  61. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  62. package/dist/Modal/Modal.styles.js +13 -13
  63. package/dist/MultiSelect/MultiSelect.styles.js +7 -7
  64. package/dist/NextMenu/NextMenu.styles.js +3 -3
  65. package/dist/Notation/Notation.js +1 -1
  66. package/dist/NumberInput/NumberInput.styles.js +7 -7
  67. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  68. package/dist/OverlayTrigger/OverlayTrigger.js +4 -2
  69. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  70. package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +8 -0
  71. package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
  72. package/dist/PageLayout/PageLayout.styles.d.ts +1 -0
  73. package/dist/PageLayout/PageLayout.styles.js +17 -17
  74. package/dist/PageLayout/PageLayout.styles.js.map +1 -1
  75. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  76. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  77. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  78. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  79. package/dist/Pagination/Pagination.styles.js +5 -5
  80. package/dist/Panel/Panel.styles.js +11 -11
  81. package/dist/Pill/Pill.styles.js +3 -3
  82. package/dist/PillSelect/PillSelect.styles.js +4 -4
  83. package/dist/Popover/Popover.js +2 -1
  84. package/dist/Popover/Popover.js.map +1 -1
  85. package/dist/Popover/Popover.styles.js +2 -2
  86. package/dist/Portal/Portal.styles.js +1 -1
  87. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  88. package/dist/RadioButton/RadioButton.styles.js +3 -3
  89. package/dist/Required/Required.styles.js +3 -3
  90. package/dist/Search/Search.styles.js +5 -5
  91. package/dist/Section/Section.styles.js +7 -7
  92. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  93. package/dist/Select/Select.js +35 -13
  94. package/dist/Select/Select.js.map +1 -1
  95. package/dist/Select/Select.styles.js +8 -8
  96. package/dist/Select/Select.types.d.ts +13 -0
  97. package/dist/Select/Select.types.js.map +1 -1
  98. package/dist/Semantic/Semantic.styles.js +9 -9
  99. package/dist/Slider/Slider.styles.js +5 -5
  100. package/dist/Spinner/Spinner.js +21 -6
  101. package/dist/Spinner/Spinner.js.map +1 -1
  102. package/dist/Spinner/Spinner.styles.js +7 -7
  103. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  104. package/dist/SuperSelect/SuperSelect.components.js +6 -15
  105. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  106. package/dist/SuperSelect/SuperSelect.js +1 -1
  107. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  108. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  109. package/dist/SuperSelect/SuperSelect.styles.js +38 -38
  110. package/dist/SuperSelect/SuperSelect.types.d.ts +0 -3
  111. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  112. package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
  113. package/dist/SuperSelect/useSuperSelect.js +19 -52
  114. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  115. package/dist/Switch/Switch.styles.js +4 -4
  116. package/dist/Table/Table.styles.js +28 -28
  117. package/dist/TableShelf/TableShelf.styles.js +5 -5
  118. package/dist/Tabs/Tabs.styles.js +15 -15
  119. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  120. package/dist/Tearsheet/storybook/PageLayoutDemo.js +4 -1
  121. package/dist/Tearsheet/storybook/PageLayoutDemo.js.map +1 -1
  122. package/dist/TextArea/TextArea.styles.js +1 -1
  123. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  124. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  125. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  126. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  127. package/dist/Tile/Tile.styles.js +8 -8
  128. package/dist/Title/Title.styles.js +7 -7
  129. package/dist/Toast/Toast.styles.js +3 -3
  130. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  131. package/dist/Token/Token.styles.js +3 -3
  132. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  133. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  134. package/dist/Tooltip/Tooltip.styles.js +2 -2
  135. package/dist/Tree/Tree.js +1 -1
  136. package/dist/Tree/Tree.styles.js +10 -10
  137. package/dist/Typeahead/Typeahead.styles.js +3 -3
  138. package/dist/Typography/Typography.styles.js +1 -1
  139. package/dist/Typography/Typography.table.story.js +2 -2
  140. package/dist/_hooks/I18n.d.ts +4 -19
  141. package/dist/_locales/en.json +3 -1
  142. package/dist/_locales/pseudo.json +3 -1
  143. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  144. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  145. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  146. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  147. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  148. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  149. package/dist/_typedoc/Banner/Banner.types.json +39 -13
  150. package/dist/_typedoc/Box/Box.types.json +68 -68
  151. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  152. package/dist/_typedoc/Button/Button.types.json +13 -13
  153. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  154. package/dist/_typedoc/Card/Card.types.json +6 -6
  155. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  156. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  157. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  158. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  159. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  160. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  161. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
  162. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  163. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  164. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  165. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  166. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  167. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  168. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  169. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  170. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  171. package/dist/_typedoc/Form/Form.types.json +750 -750
  172. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  173. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  174. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  175. package/dist/_typedoc/Input/Input.types.json +2 -2
  176. package/dist/_typedoc/Link/Link.types.json +1 -1
  177. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  178. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  179. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +77 -77
  180. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  181. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  182. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  183. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  184. package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
  185. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +42 -32
  186. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  187. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  188. package/dist/_typedoc/Panel/Panel.types.json +30 -30
  189. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  190. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  191. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  192. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  193. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  194. package/dist/_typedoc/Required/Required.types.json +5 -5
  195. package/dist/_typedoc/Search/Search.types.json +18 -18
  196. package/dist/_typedoc/Section/Section.types.json +15 -15
  197. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  198. package/dist/_typedoc/Select/Select.types.json +95 -60
  199. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  200. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  201. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  202. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  203. package/dist/_typedoc/Table/Table.types.json +102 -102
  204. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  205. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  206. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  207. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  208. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  209. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  210. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  211. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  212. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  213. package/dist/_typedoc/Title/Title.types.json +1 -1
  214. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  215. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  216. package/dist/_typedoc/Token/Token.types.json +7 -7
  217. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  218. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  219. package/dist/_typedoc/Tooltip/Tooltip.types.json +14 -14
  220. package/dist/_typedoc/Tree/Tree.types.json +88 -88
  221. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  222. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  223. package/dist/_typedoc/_utils/types.json +3 -3
  224. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.components.js","names":["Draggable","Check","Clear","ClearIcon","Grip","React","FakeCheckbox","Spinner","Token","Tooltip","Typeahead","OverflowObserver","colors","InternalDragDropContext","draggableOptionIdSymbol","StyledArrow","StyledArrowContainer","StyledArrowFill","StyledArrowOutline","StyledCheckboxContainer","StyledCheckmarkContainer","StyledClearIcon","StyledDraggableWrapper","StyledEmptyMessage","StyledFooter","StyledGrip","StyledGroup","StyledHeader","StyledIndicators","StyledItem","StyledItemLabel","StyledLabel","StyledMultiInput","StyledMultiInputContainer","StyledMultiValue","StyledMultiValueContainer","StyledOptionGroupLabel","StyledOptions","StyledOverlay","StyledSearchContainer","StyledSelectAll","StyledTrigger","useSuperSelectContext","Overlay","forwardRef","props","ref","createElement","_extends","SingleTrigger","ctx","_ref","isOverflowingX","showTooltip","config","disabled","state","open","label","selectedLabel","placeholder","labelComponent","components","Label","hoverable","trigger","overlay","MultiTrigger","multiple","Array","isArray","value","_ctx$state$value","role","labelId","MultiValueContainer","map","val","j","option","sourceOptions","find","o","MultiValue","key","index","MultiInputContainer","MultiInput","multiInput","TriggerContainer","Trigger","searchRef","useRef","useEffect","_searchRef$current","current","focus","Indicators","hasValue","length","loading","Loading","ArrowContainer","Arrow","up","down","width","height","_ref2","_objectWithoutProperties","_excluded","id","$hoverable","valueId","color","size","_ref3","left","right","_ref3$width","_ref3$height","_ref3$border","border","outline","fill","concat","focusable","points","clear","variant","icon","children","focused","activeTokenIndex","Remove","tokenClear","SearchContainer","Search","Header","Footer","padding","EmptyMessage","emptyMessage","Options","menu","Group","item","Item","_ref4","_props$dataKnownSiz","_ref4$isDragging","isDragging","_excluded2","_React$useContext","useContext","isDraggingOver","_React$useState","useState","_React$useState2","_slicedToArray","setSize","knownSize","prevSize","withSelectAllIndex","selectAllEnabled","options","isDisabled","isPartiallySelected","isSelected","isOptgroup","setNode","node","refs","navigationList","onClick","onSelect","$disabled","$emptyMinHeight","$highlighted","activeMenuIndex","$isDraggable","$isDragging","$isDraggingDisabled","Boolean","searchValue","$isDraggingOver","$selected","undefined","selectionStyle","CheckboxContainer","Checkbox","indeterminate","checked","CheckmarkContainer","Checkmark","SelectAll","_ref5","_props$dataKnownSiz2","_ref5$isDragging","_excluded3","_React$useState3","_React$useState4","selectableOptions","filter","opt","selectAll","isSelectAllSelected","isSelectAllPartiallySelected","handleClick","selectAllOption","onMouseMove","event","setActiveMenuIndex","OptionGroupHeader","_ref6","optgroup","OptionLabel","_ref7","$draggable","draggable","OptionContent","_ref8","DraggableOptionContent","_ref9","optionId","draggableId","isDragDisabled","provided","innerRef","draggableProps","dragHandleProps","DragHandle","gray45"],"sources":["../../src/SuperSelect/SuperSelect.components.tsx"],"sourcesContent":["import type { DraggableProvided } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { Draggable } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { Check, Clear as ClearIcon, Grip } from '@procore/core-icons'\nimport type { ComponentProps } from 'react'\nimport React from 'react'\nimport { FakeCheckbox } from '../Checkbox/Checkbox'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Token } from '../Token/Token'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { Typeahead } from '../Typeahead/Typeahead'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { colors } from '../_styles/colors'\nimport { InternalDragDropContext } from './SuperSelect'\nimport { draggableOptionIdSymbol } from './SuperSelect.constants'\nimport {\n StyledArrow,\n StyledArrowContainer,\n StyledArrowFill,\n StyledArrowOutline,\n StyledCheckboxContainer,\n StyledCheckmarkContainer,\n StyledClearIcon,\n StyledDraggableWrapper,\n StyledEmptyMessage,\n StyledFooter,\n StyledGrip,\n StyledGroup,\n StyledHeader,\n StyledIndicators,\n StyledItem,\n StyledItemLabel,\n StyledLabel,\n StyledMultiInput,\n StyledMultiInputContainer,\n StyledMultiValue,\n StyledMultiValueContainer,\n StyledOptionGroupLabel,\n StyledOptions,\n StyledOverlay,\n StyledSearchContainer,\n StyledSelectAll,\n StyledTrigger,\n} from './SuperSelect.styles'\nimport type {\n SuperSelectMenuItemProps,\n SuperSelectOption,\n} from './SuperSelect.types'\nimport { useSuperSelectContext } from './useSuperSelect'\n\nexport const Overlay = React.forwardRef<HTMLDivElement, any>((props, ref) => {\n return <StyledOverlay ref={ref} {...props} />\n})\n\nexport const SingleTrigger = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <OverflowObserver>\n {({ isOverflowingX, ref }) => {\n const showTooltip =\n !ctx.config.disabled && isOverflowingX && !ctx.state.open\n\n const label = ctx.state.selectedLabel || ctx.config.placeholder\n\n const labelComponent = (\n <ctx.components.Label {...props} ref={ref} hoverable={showTooltip} />\n )\n\n return (\n <Tooltip trigger={showTooltip ? 'hover' : 'none'} overlay={label}>\n {labelComponent}\n </Tooltip>\n )\n }}\n </OverflowObserver>\n )\n}\n\nexport const MultiTrigger = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n if (ctx.config.multiple && Array.isArray(ctx.state.value)) {\n return (\n <div role=\"group\" aria-labelledby={ctx.state.labelId}>\n <ctx.components.MultiValueContainer {...props}>\n {ctx.state.value?.map((val, j) => {\n const option: SuperSelectOption = ctx.state.sourceOptions.find(\n (o) => ctx.option.value(o) === val\n )\n\n return (\n option && (\n <ctx.components.MultiValue\n key={val}\n index={j}\n option={option}\n />\n )\n )\n })}\n <ctx.components.MultiInputContainer>\n <ctx.components.MultiInput {...ctx.props.multiInput()} />\n </ctx.components.MultiInputContainer>\n </ctx.components.MultiValueContainer>\n </div>\n )\n }\n\n return null\n}\n\nexport const TriggerContainer = StyledTrigger as\n | React.ForwardRefExoticComponent<any>\n | React.FC<any>\n\nexport const Trigger = React.forwardRef<HTMLDivElement, any>((props, ref) => {\n const ctx = useSuperSelectContext()\n\n const searchRef = React.useRef<HTMLInputElement>(null)\n\n React.useEffect(() => {\n searchRef.current?.focus()\n }, [ctx.state.value])\n\n return (\n <ctx.components.TriggerContainer ref={ref} {...props}>\n {ctx.config.multiple ? (\n <ctx.components.MultiTrigger />\n ) : (\n <ctx.components.SingleTrigger />\n )}\n <ctx.components.Indicators />\n </ctx.components.TriggerContainer>\n )\n})\n\nexport const Indicators = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n const hasValue = Array.isArray(ctx.state.value)\n ? ctx.state.value.length > 0\n : ctx.state.value\n\n return (\n <StyledIndicators>\n {hasValue && <ctx.components.Clear />}\n {ctx.config.loading ? (\n <ctx.components.Loading />\n ) : (\n <ctx.components.ArrowContainer>\n <ctx.components.Arrow\n up={ctx.state.open}\n down={!ctx.state.open}\n width={8}\n height={4}\n />\n </ctx.components.ArrowContainer>\n )}\n </StyledIndicators>\n )\n}\n\nexport const Label = React.forwardRef<HTMLDivElement, { hoverable: boolean }>(\n ({ hoverable, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledLabel\n id={ctx.state.labelId}\n {...props}\n {...ctx.props.label()}\n ref={ref}\n $hoverable={hoverable}\n >\n <span id={ctx.state.valueId}>\n {ctx.state.selectedLabel || ctx.config.placeholder}\n </span>\n </StyledLabel>\n )\n }\n)\n\nexport const Loading = () => {\n return <Spinner color=\"blue50\" size=\"xs\" />\n}\n\nexport const ArrowContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledArrowContainer {...props} />\n}\n\nexport const Arrow = ({\n up,\n down,\n left,\n right,\n width = 12,\n height = 12,\n border = 0,\n}: any) => {\n let outline = ''\n let fill = ''\n\n if (up) {\n outline = `0,${height} ${width},${height} {width / 2},0`\n // prettier-ignore\n fill = `${border},${height} ${width - border},${height} ${width / 2},${border * 2}`\n } else if (down) {\n outline = `0,0 ${width},0 ${width / 2},${height}`\n // prettier-ignore\n fill = `${border},0 ${width - border},0 ${width / 2},${height - border * 2}`\n } else if (left) {\n outline = `${width},0 ${width},${height} 0,${height / 2}`\n // prettier-ignore\n fill = `${width},${border} ${width},${height - border} ${border * 2},${height / 2}`\n } else if (right) {\n outline = `0,0 0,${height} ${width},${height / 2}`\n // prettier-ignore\n fill = `0,${border} 0,${height - border} ${width - border * 2},${height / 2}`\n }\n\n return (\n <StyledArrow>\n <svg height={height} width={width} focusable=\"false\">\n {border > 0 && <StyledArrowOutline points={outline} />}\n <StyledArrowFill points={fill} />\n </svg>\n </StyledArrow>\n )\n}\n\nexport const Clear = () => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledClearIcon\n {...ctx.props.clear()}\n size=\"sm\"\n variant=\"tertiary\"\n disabled={ctx.config.disabled}\n icon={<ClearIcon />}\n />\n )\n}\n\nexport const MultiInputContainer = (props: React.PropsWithChildren<{}>) => {\n return <StyledMultiInputContainer>{props.children}</StyledMultiInputContainer>\n}\n\nexport const MultiInput = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledMultiInput ref={ref} {...props} />\n }\n)\n\nexport const MultiValue = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledMultiValue>\n <Token focused={ctx.state.activeTokenIndex === props.index}>\n <Token.Label>{ctx.option.label(props.option)}</Token.Label>\n <Token.Remove {...ctx.props.tokenClear(props.index)} />\n </Token>\n </StyledMultiValue>\n )\n}\n\nexport const MultiValueContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledMultiValueContainer {...props} />\n}\n\nexport const SearchContainer = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledSearchContainer ref={ref} {...props} />\n }\n)\n\nexport const Search = (props: React.PropsWithChildren<any>) => {\n return <Typeahead {...props} />\n}\n\nexport const Header = (props: React.PropsWithChildren<any>) => {\n return <StyledHeader {...props} />\n}\n\nexport const Footer = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledFooter ref={ref} {...props} padding=\"md lg\" />\n }\n)\n\nexport const EmptyMessage = (props: any) => {\n return (\n <StyledEmptyMessage {...props}>{props.emptyMessage}</StyledEmptyMessage>\n )\n}\n\nexport const Options = (props: React.HTMLAttributes<HTMLDivElement>) => {\n const ctx = useSuperSelectContext()\n\n return <StyledOptions {...props} {...ctx.props.menu()} />\n}\n\nexport const Group = (props: React.PropsWithChildren<{}>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledGroup\n {...props}\n {...ctx.props.item()}\n role=\"separator\"\n aria-disabled\n />\n )\n}\n\nexport const Item = React.forwardRef<HTMLDivElement, SuperSelectMenuItemProps>(\n ({ children, isDragging = false, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n const { isDraggingOver } = React.useContext(InternalDragDropContext)\n const [size, setSize] = React.useState(0)\n\n const knownSize = props['data-known-size'] ?? 0\n\n React.useEffect(() => {\n setSize((prevSize) => (knownSize === 0 ? prevSize : knownSize))\n }, [knownSize])\n\n const index = props['data-index']\n const withSelectAllIndex =\n ctx.config.selectAllEnabled && ctx.config.multiple ? index + 1 : index\n\n const option = ctx.state.options[index]\n\n if (!option) {\n return null\n }\n\n const isDisabled = ctx.option.isDisabled(option)\n const isPartiallySelected = ctx.option.isPartiallySelected(option)\n const isSelected = ctx.option.isSelected(option)\n const isOptgroup = ctx.option.isOptgroup(option)\n const value = ctx?.option.value(option)\n\n function setNode(node: HTMLElement | null) {\n if (ctx) {\n ctx.refs.navigationList.current[withSelectAllIndex] = node\n }\n }\n\n if (isOptgroup) {\n return <ctx.components.Group {...props}>{children}</ctx.components.Group>\n }\n\n return (\n <StyledItem\n {...props}\n {...ctx.props.item({\n onClick: () => ctx.state.onSelect(option),\n })}\n $disabled={ctx.option.isDisabled(option)}\n $emptyMinHeight={size}\n $highlighted={ctx.state.activeMenuIndex === withSelectAllIndex}\n $isDraggable={!isDisabled}\n $isDragging={isDragging}\n $isDraggingDisabled={Boolean(ctx.state.searchValue)}\n $isDraggingOver={isDraggingOver}\n $selected={isSelected}\n aria-posinset={withSelectAllIndex}\n aria-disabled={isDisabled || undefined}\n aria-selected={isSelected}\n aria-setsize={ctx.state.options.length || 0}\n id={`item-${value}`}\n ref={setNode}\n role=\"option\"\n >\n {ctx.config.selectionStyle === 'checkbox' && (\n <ctx.components.CheckboxContainer>\n {isPartiallySelected && !isSelected ? (\n <ctx.components.Checkbox\n disabled={isDisabled}\n indeterminate={isPartiallySelected}\n />\n ) : (\n <ctx.components.Checkbox\n disabled={isDisabled}\n checked={isSelected}\n />\n )}\n </ctx.components.CheckboxContainer>\n )}\n {children}\n {ctx.config.selectionStyle === 'checkmark' && (\n <ctx.components.CheckmarkContainer>\n {isSelected && <ctx.components.Checkmark />}\n </ctx.components.CheckmarkContainer>\n )}\n </StyledItem>\n )\n }\n)\n\n// NOTE: SelectAll Implementation Details\n// ====================================\n// The team wanted wanted to keep the Item component fairly untouched and make SelectAll its own\n// standalone component. This separation required modifications to several functions to ensure proper keyboard\n// navigation and mouse hover behavior work seamlessly between SelectAll and the virtualized options.\n//\n// Key functions that were modified due to this separation:\n// 1. allOptionsWithSelectAll - Creates combined list for navigation calculations\n// 2. groupIndices - Adjusted to account for SelectAll at index 0\n// 3. selectedIndex - Modified to reference absolute positions including SelectAll\n// 4. selectedOption - Updated to search complete list including SelectAll\n// 5. onKeyboardSelect - Uses combined list for proper option selection\n// 6. navigationList.current length - Adjusted to include SelectAll in navigation array\n// 7. virtuoso scrollIntoView - Index adjustment to handle SelectAll being rendered separately\n// 8. SuperSelect.components.tsx SelectAll - Added onMouseMove handler for hover detection\n// 9. SuperSelect.tsx itemContent - Index adjustment to prevent data-index conflicts\n//\n// Without these modifications, keyboard navigation would skip SelectAll, hover states wouldn't\n// work properly, and there would be index mismatches between the navigation system and the\n// actual rendered options.\nexport const SelectAll = React.forwardRef<\n HTMLDivElement,\n SuperSelectMenuItemProps\n>(({ children, isDragging = false, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n const [size, setSize] = React.useState(0)\n\n const knownSize = props['data-known-size'] ?? 0\n\n // TODO: There is a conflict with data-index. The index for select all is 0\n // and the first item in the options list is also 0. This causes DOM conflicts\n // where two elements have the same data-index attribute, which can confuse\n // the navigation system and cause hover/selection issues.\n const index = props['data-index'] // Select all should always be index 0\n const selectableOptions = ctx.state.options.filter((opt) => {\n return !ctx.option.isOptgroup(opt)\n })\n const isSelected =\n ctx.option.selectAll.isSelectAllSelected(selectableOptions) &&\n selectableOptions.length > 0\n const isPartiallySelected =\n ctx.option.selectAll.isSelectAllPartiallySelected(selectableOptions)\n\n const isDisabled = ctx.config.loading || !selectableOptions.length\n\n function setNode(node: HTMLElement | null) {\n if (ctx) {\n ctx.refs.navigationList.current[index] = node\n }\n }\n\n React.useEffect(() => {\n setSize((prevSize) => (knownSize === 0 ? prevSize : knownSize))\n }, [knownSize])\n\n const handleClick = () => {\n !isDisabled && ctx.state.onSelect(ctx.state.selectAllOption)\n }\n\n return (\n <StyledSelectAll>\n <StyledItem\n {...props}\n {...ctx.props.item({\n onClick: handleClick,\n onMouseMove: (event: React.MouseEvent<HTMLDivElement>) => {\n // Update the active menu index when hovering over SelectAll\n if (ctx.state.activeMenuIndex !== index) {\n ctx.state.setActiveMenuIndex(index)\n }\n },\n })}\n $disabled={isDisabled}\n $emptyMinHeight={size}\n $highlighted={ctx.state.activeMenuIndex === index}\n $selected={isSelected}\n aria-posinset={index}\n aria-disabled={isDisabled || undefined}\n aria-selected={isSelected}\n aria-setsize={ctx.state.options.length || 0}\n id={`item-${ctx.state.selectAllOption.id}`}\n ref={setNode}\n role=\"option\"\n >\n {ctx.config.selectionStyle === 'checkbox' && (\n <ctx.components.CheckboxContainer>\n {isPartiallySelected && !isSelected ? (\n <ctx.components.Checkbox\n disabled={isDisabled}\n indeterminate={isPartiallySelected}\n />\n ) : (\n <ctx.components.Checkbox\n disabled={isDisabled}\n checked={isSelected}\n />\n )}\n </ctx.components.CheckboxContainer>\n )}\n {children}\n {ctx.config.selectionStyle === 'checkmark' && (\n <ctx.components.CheckmarkContainer>\n {isSelected && <ctx.components.Checkmark />}\n </ctx.components.CheckmarkContainer>\n )}\n </StyledItem>\n </StyledSelectAll>\n )\n})\n\nexport const OptionGroupHeader = ({ optgroup }: any) => {\n return <StyledOptionGroupLabel>{optgroup.label}</StyledOptionGroupLabel>\n}\n\nexport const OptionLabel = ({ option }: any) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledItemLabel $draggable={ctx.config.draggable}>\n {ctx.option.label(option)}\n </StyledItemLabel>\n )\n}\n\nexport const OptionContent = ({ option }: any) => {\n const ctx = useSuperSelectContext()\n\n if (ctx.option.isOptgroup(option)) {\n return <ctx.components.OptionGroupHeader optgroup={option} />\n }\n\n return <ctx.components.OptionLabel option={option} />\n}\n\nexport const DraggableOptionContent = ({ index, option }: any) => {\n const ctx = useSuperSelectContext()\n\n const disabled = ctx.option.isDisabled(option)\n const isOptgroup = ctx.option.isOptgroup(option)\n const optionId = isOptgroup ? option.id : option[draggableOptionIdSymbol]\n\n return (\n <Draggable\n draggableId={optionId}\n index={index}\n key={optionId}\n isDragDisabled={isOptgroup || disabled || Boolean(ctx.state.searchValue)}\n >\n {(provided: DraggableProvided) => {\n return (\n <StyledDraggableWrapper\n ref={provided.innerRef}\n {...provided.draggableProps}\n {...provided.dragHandleProps}\n >\n {!isOptgroup && <ctx.components.DragHandle />}\n <ctx.components.OptionContent index={index} option={option} />\n </StyledDraggableWrapper>\n )\n }}\n </Draggable>\n )\n}\n\nexport const DragHandle = (props: React.PropsWithChildren<any>) => {\n return (\n <StyledGrip {...props}>\n <Grip color={colors.gray45} />\n </StyledGrip>\n )\n}\n\nexport const CheckboxContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledCheckboxContainer {...props} />\n}\n\nexport const Checkbox = (\n props: React.PropsWithChildren<ComponentProps<typeof FakeCheckbox>>\n) => {\n return <FakeCheckbox {...props} />\n}\n\nexport const CheckmarkContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledCheckmarkContainer {...props} />\n}\n\nexport const Checkmark = (props: React.PropsWithChildren<any>) => {\n return <Check {...props} size=\"sm\" />\n}\n"],"mappings":";;;;;;;;;;;;AACA,SAASA,SAAS,QAAQ,iEAAiE;AAC3F,SAASC,KAAK,EAAEC,KAAK,IAAI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E,CACnB,CAAC;AAEjB,CAAC;AAED,OAAO,IAAM3C,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIhJ,KAAmC,EAAK;EACxE,oBAAOxC,KAAA,CAAA0C,aAAA,CAAC5B,uBAAuB,EAAK0B,KAAQ,CAAC;AAC/C,CAAC;AAED,OAAO,IAAMiJ,QAAQ,GAAG,SAAXA,QAAQA,CACnBjJ,KAAmE,EAChE;EACH,oBAAOxC,KAAA,CAAA0C,aAAA,CAACzC,YAAY,EAAKuC,KAAQ,CAAC;AACpC,CAAC;AAED,OAAO,IAAMoJ,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIpJ,KAAmC,EAAK;EACzE,oBAAOxC,KAAA,CAAA0C,aAAA,CAAC3B,wBAAwB,EAAKyB,KAAQ,CAAC;AAChD,CAAC;AAED,OAAO,IAAMqJ,SAAS,GAAG,SAAZA,SAASA,CAAIrJ,KAAmC,EAAK;EAChE,oBAAOxC,KAAA,CAAA0C,aAAA,CAAC9C,KAAK,EAAA+C,QAAA,KAAKH,KAAK;IAAEsE,IAAI,EAAC;EAAI,EAAE,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"SuperSelect.components.js","names":["Draggable","Check","Clear","ClearIcon","Grip","React","FakeCheckbox","Spinner","Token","Tooltip","Typeahead","OverflowObserver","colors","InternalDragDropContext","draggableOptionIdSymbol","StyledArrow","StyledArrowContainer","StyledArrowFill","StyledArrowOutline","StyledCheckboxContainer","StyledCheckmarkContainer","StyledClearIcon","StyledDraggableWrapper","StyledEmptyMessage","StyledFooter","StyledGrip","StyledGroup","StyledHeader","StyledIndicators","StyledItem","StyledItemLabel","StyledLabel","StyledMultiInput","StyledMultiInputContainer","StyledMultiValue","StyledMultiValueContainer","StyledOptionGroupLabel","StyledOptions","StyledOverlay","StyledSearchContainer","StyledSelectAll","StyledTrigger","useSuperSelectContext","Overlay","forwardRef","props","ref","createElement","_extends","SingleTrigger","ctx","_ref","isOverflowingX","showTooltip","config","disabled","state","open","label","selectedLabel","placeholder","labelComponent","components","Label","hoverable","trigger","overlay","MultiTrigger","multiple","Array","isArray","value","_ctx$state$value","MultiValueContainer","map","val","j","option","sourceOptions","find","o","MultiValue","key","index","MultiInputContainer","MultiInput","multiInput","TriggerContainer","Trigger","searchRef","useRef","useEffect","_searchRef$current","current","focus","Indicators","hasValue","length","loading","Loading","ArrowContainer","Arrow","up","down","width","height","_ref2","_objectWithoutProperties","_excluded","$hoverable","color","size","_ref3","left","right","_ref3$width","_ref3$height","_ref3$border","border","outline","fill","concat","focusable","points","clear","variant","icon","children","focused","activeTokenIndex","Remove","tokenClear","SearchContainer","Search","Header","Footer","padding","EmptyMessage","emptyMessage","Options","menu","Group","item","role","Item","_ref4","_props$dataKnownSiz","_ref4$isDragging","isDragging","_excluded2","_React$useContext","useContext","isDraggingOver","_React$useState","useState","_React$useState2","_slicedToArray","setSize","knownSize","prevSize","withSelectAllIndex","selectAllEnabled","options","isDisabled","isPartiallySelected","isSelected","isOptgroup","setNode","node","refs","navigationList","onClick","onSelect","$disabled","$emptyMinHeight","$highlighted","activeMenuIndex","$isDraggable","$isDragging","$isDraggingDisabled","Boolean","searchValue","$isDraggingOver","$selected","id","selectionStyle","CheckboxContainer","Checkbox","indeterminate","checked","CheckmarkContainer","Checkmark","SelectAll","_ref5","_props$dataKnownSiz2","_ref5$isDragging","_excluded3","_React$useState3","_React$useState4","selectableOptions","filter","opt","selectAll","isSelectAllSelected","isSelectAllPartiallySelected","handleClick","selectAllOption","onMouseMove","event","setActiveMenuIndex","OptionGroupHeader","_ref6","optgroup","OptionLabel","_ref7","$draggable","draggable","OptionContent","_ref8","DraggableOptionContent","_ref9","optionId","draggableId","isDragDisabled","provided","innerRef","draggableProps","dragHandleProps","DragHandle","gray45"],"sources":["../../src/SuperSelect/SuperSelect.components.tsx"],"sourcesContent":["import type { DraggableProvided } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { Draggable } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { Check, Clear as ClearIcon, Grip } from '@procore/core-icons'\nimport type { ComponentProps } from 'react'\nimport React from 'react'\nimport { FakeCheckbox } from '../Checkbox/Checkbox'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Token } from '../Token/Token'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { Typeahead } from '../Typeahead/Typeahead'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { colors } from '../_styles/colors'\nimport { InternalDragDropContext } from './SuperSelect'\nimport { draggableOptionIdSymbol } from './SuperSelect.constants'\nimport {\n StyledArrow,\n StyledArrowContainer,\n StyledArrowFill,\n StyledArrowOutline,\n StyledCheckboxContainer,\n StyledCheckmarkContainer,\n StyledClearIcon,\n StyledDraggableWrapper,\n StyledEmptyMessage,\n StyledFooter,\n StyledGrip,\n StyledGroup,\n StyledHeader,\n StyledIndicators,\n StyledItem,\n StyledItemLabel,\n StyledLabel,\n StyledMultiInput,\n StyledMultiInputContainer,\n StyledMultiValue,\n StyledMultiValueContainer,\n StyledOptionGroupLabel,\n StyledOptions,\n StyledOverlay,\n StyledSearchContainer,\n StyledSelectAll,\n StyledTrigger,\n} from './SuperSelect.styles'\nimport type {\n SuperSelectMenuItemProps,\n SuperSelectOption,\n} from './SuperSelect.types'\nimport { useSuperSelectContext } from './useSuperSelect'\n\nexport const Overlay = React.forwardRef<HTMLDivElement, any>((props, ref) => {\n return <StyledOverlay ref={ref} {...props} />\n})\n\nexport const SingleTrigger = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <OverflowObserver>\n {({ isOverflowingX, ref }) => {\n const showTooltip =\n !ctx.config.disabled && isOverflowingX && !ctx.state.open\n\n const label = ctx.state.selectedLabel || ctx.config.placeholder\n\n const labelComponent = (\n <ctx.components.Label {...props} ref={ref} hoverable={showTooltip} />\n )\n\n return (\n <Tooltip trigger={showTooltip ? 'hover' : 'none'} overlay={label}>\n {labelComponent}\n </Tooltip>\n )\n }}\n </OverflowObserver>\n )\n}\n\nexport const MultiTrigger = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n if (ctx.config.multiple && Array.isArray(ctx.state.value)) {\n return (\n <ctx.components.MultiValueContainer {...props}>\n {ctx.state.value?.map((val, j) => {\n const option: SuperSelectOption = ctx.state.sourceOptions.find(\n (o) => ctx.option.value(o) === val\n )\n\n return (\n option && (\n <ctx.components.MultiValue key={val} index={j} option={option} />\n )\n )\n })}\n <ctx.components.MultiInputContainer>\n <ctx.components.MultiInput {...ctx.props.multiInput()} />\n </ctx.components.MultiInputContainer>\n </ctx.components.MultiValueContainer>\n )\n }\n\n return null\n}\n\nexport const TriggerContainer = StyledTrigger as\n | React.ForwardRefExoticComponent<any>\n | React.FC<any>\n\nexport const Trigger = React.forwardRef<HTMLDivElement, any>((props, ref) => {\n const ctx = useSuperSelectContext()\n\n const searchRef = React.useRef<HTMLInputElement>(null)\n\n React.useEffect(() => {\n searchRef.current?.focus()\n }, [ctx.state.value])\n\n return (\n <ctx.components.TriggerContainer ref={ref} {...props}>\n {ctx.config.multiple ? (\n <ctx.components.MultiTrigger />\n ) : (\n <ctx.components.SingleTrigger />\n )}\n <ctx.components.Indicators />\n </ctx.components.TriggerContainer>\n )\n})\n\nexport const Indicators = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n const hasValue = Array.isArray(ctx.state.value)\n ? ctx.state.value.length > 0\n : ctx.state.value\n\n return (\n <StyledIndicators>\n {hasValue && <ctx.components.Clear />}\n {ctx.config.loading ? (\n <ctx.components.Loading />\n ) : (\n <ctx.components.ArrowContainer>\n <ctx.components.Arrow\n up={ctx.state.open}\n down={!ctx.state.open}\n width={8}\n height={4}\n />\n </ctx.components.ArrowContainer>\n )}\n </StyledIndicators>\n )\n}\n\nexport const Label = React.forwardRef<HTMLDivElement, { hoverable: boolean }>(\n ({ hoverable, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledLabel\n {...props}\n {...ctx.props.label()}\n ref={ref}\n $hoverable={hoverable}\n >\n {ctx.state.selectedLabel || ctx.config.placeholder}\n </StyledLabel>\n )\n }\n)\n\nexport const Loading = () => {\n return <Spinner color=\"blue50\" size=\"xs\" />\n}\n\nexport const ArrowContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledArrowContainer {...props} />\n}\n\nexport const Arrow = ({\n up,\n down,\n left,\n right,\n width = 12,\n height = 12,\n border = 0,\n}: any) => {\n let outline = ''\n let fill = ''\n\n if (up) {\n outline = `0,${height} ${width},${height} {width / 2},0`\n // prettier-ignore\n fill = `${border},${height} ${width - border},${height} ${width / 2},${border * 2}`\n } else if (down) {\n outline = `0,0 ${width},0 ${width / 2},${height}`\n // prettier-ignore\n fill = `${border},0 ${width - border},0 ${width / 2},${height - border * 2}`\n } else if (left) {\n outline = `${width},0 ${width},${height} 0,${height / 2}`\n // prettier-ignore\n fill = `${width},${border} ${width},${height - border} ${border * 2},${height / 2}`\n } else if (right) {\n outline = `0,0 0,${height} ${width},${height / 2}`\n // prettier-ignore\n fill = `0,${border} 0,${height - border} ${width - border * 2},${height / 2}`\n }\n\n return (\n <StyledArrow>\n <svg height={height} width={width} focusable=\"false\">\n {border > 0 && <StyledArrowOutline points={outline} />}\n <StyledArrowFill points={fill} />\n </svg>\n </StyledArrow>\n )\n}\n\nexport const Clear = () => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledClearIcon\n {...ctx.props.clear()}\n size=\"sm\"\n variant=\"tertiary\"\n disabled={ctx.config.disabled}\n icon={<ClearIcon />}\n />\n )\n}\n\nexport const MultiInputContainer = (props: React.PropsWithChildren<{}>) => {\n return <StyledMultiInputContainer>{props.children}</StyledMultiInputContainer>\n}\n\nexport const MultiInput = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledMultiInput ref={ref} {...props} />\n }\n)\n\nexport const MultiValue = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledMultiValue>\n <Token focused={ctx.state.activeTokenIndex === props.index}>\n <Token.Label>{ctx.option.label(props.option)}</Token.Label>\n <Token.Remove {...ctx.props.tokenClear(props.index)} />\n </Token>\n </StyledMultiValue>\n )\n}\n\nexport const MultiValueContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledMultiValueContainer {...props} />\n}\n\nexport const SearchContainer = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledSearchContainer ref={ref} {...props} />\n }\n)\n\nexport const Search = (props: React.PropsWithChildren<any>) => {\n return <Typeahead {...props} />\n}\n\nexport const Header = (props: React.PropsWithChildren<any>) => {\n return <StyledHeader {...props} />\n}\n\nexport const Footer = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledFooter ref={ref} {...props} padding=\"md lg\" />\n }\n)\n\nexport const EmptyMessage = (props: any) => {\n return (\n <StyledEmptyMessage {...props}>{props.emptyMessage}</StyledEmptyMessage>\n )\n}\n\nexport const Options = (props: React.HTMLAttributes<HTMLDivElement>) => {\n const ctx = useSuperSelectContext()\n\n return <StyledOptions {...props} {...ctx.props.menu()} />\n}\n\nexport const Group = (props: React.PropsWithChildren<{}>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledGroup\n {...props}\n {...ctx.props.item()}\n role=\"separator\"\n aria-disabled\n />\n )\n}\n\nexport const Item = React.forwardRef<HTMLDivElement, SuperSelectMenuItemProps>(\n ({ children, isDragging = false, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n const { isDraggingOver } = React.useContext(InternalDragDropContext)\n const [size, setSize] = React.useState(0)\n\n const knownSize = props['data-known-size'] ?? 0\n\n React.useEffect(() => {\n setSize((prevSize) => (knownSize === 0 ? prevSize : knownSize))\n }, [knownSize])\n\n const index = props['data-index']\n const withSelectAllIndex =\n ctx.config.selectAllEnabled && ctx.config.multiple ? index + 1 : index\n\n const option = ctx.state.options[index]\n\n if (!option) {\n return null\n }\n\n const isDisabled = ctx.option.isDisabled(option)\n const isPartiallySelected = ctx.option.isPartiallySelected(option)\n const isSelected = ctx.option.isSelected(option)\n const isOptgroup = ctx.option.isOptgroup(option)\n const value = ctx?.option.value(option)\n\n function setNode(node: HTMLElement | null) {\n if (ctx) {\n ctx.refs.navigationList.current[withSelectAllIndex] = node\n }\n }\n\n if (isOptgroup) {\n return <ctx.components.Group {...props}>{children}</ctx.components.Group>\n }\n\n return (\n <StyledItem\n {...props}\n {...ctx.props.item({\n onClick: () => ctx.state.onSelect(option),\n })}\n $disabled={ctx.option.isDisabled(option)}\n $emptyMinHeight={size}\n $highlighted={ctx.state.activeMenuIndex === withSelectAllIndex}\n $isDraggable={!isDisabled}\n $isDragging={isDragging}\n $isDraggingDisabled={Boolean(ctx.state.searchValue)}\n $isDraggingOver={isDraggingOver}\n $selected={isSelected}\n aria-posinset={withSelectAllIndex}\n aria-selected={ctx.state.activeMenuIndex === withSelectAllIndex}\n aria-setsize={ctx.state.options.length || 0}\n id={`item-${value}`}\n ref={setNode}\n role=\"option\"\n >\n {ctx.config.selectionStyle === 'checkbox' && (\n <ctx.components.CheckboxContainer>\n {isPartiallySelected && !isSelected ? (\n <ctx.components.Checkbox\n disabled={isDisabled}\n indeterminate={isPartiallySelected}\n />\n ) : (\n <ctx.components.Checkbox\n disabled={isDisabled}\n checked={isSelected}\n />\n )}\n </ctx.components.CheckboxContainer>\n )}\n {children}\n {ctx.config.selectionStyle === 'checkmark' && (\n <ctx.components.CheckmarkContainer>\n {isSelected && <ctx.components.Checkmark />}\n </ctx.components.CheckmarkContainer>\n )}\n </StyledItem>\n )\n }\n)\n\n// NOTE: SelectAll Implementation Details\n// ====================================\n// The team wanted wanted to keep the Item component fairly untouched and make SelectAll its own\n// standalone component. This separation required modifications to several functions to ensure proper keyboard\n// navigation and mouse hover behavior work seamlessly between SelectAll and the virtualized options.\n//\n// Key functions that were modified due to this separation:\n// 1. allOptionsWithSelectAll - Creates combined list for navigation calculations\n// 2. groupIndices - Adjusted to account for SelectAll at index 0\n// 3. selectedIndex - Modified to reference absolute positions including SelectAll\n// 4. selectedOption - Updated to search complete list including SelectAll\n// 5. onKeyboardSelect - Uses combined list for proper option selection\n// 6. navigationList.current length - Adjusted to include SelectAll in navigation array\n// 7. virtuoso scrollIntoView - Index adjustment to handle SelectAll being rendered separately\n// 8. SuperSelect.components.tsx SelectAll - Added onMouseMove handler for hover detection\n// 9. SuperSelect.tsx itemContent - Index adjustment to prevent data-index conflicts\n//\n// Without these modifications, keyboard navigation would skip SelectAll, hover states wouldn't\n// work properly, and there would be index mismatches between the navigation system and the\n// actual rendered options.\nexport const SelectAll = React.forwardRef<\n HTMLDivElement,\n SuperSelectMenuItemProps\n>(({ children, isDragging = false, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n const [size, setSize] = React.useState(0)\n\n const knownSize = props['data-known-size'] ?? 0\n\n // TODO: There is a conflict with data-index. The index for select all is 0\n // and the first item in the options list is also 0. This causes DOM conflicts\n // where two elements have the same data-index attribute, which can confuse\n // the navigation system and cause hover/selection issues.\n const index = props['data-index'] // Select all should always be index 0\n const selectableOptions = ctx.state.options.filter((opt) => {\n return !ctx.option.isOptgroup(opt)\n })\n const isSelected =\n ctx.option.selectAll.isSelectAllSelected(selectableOptions) &&\n selectableOptions.length > 0\n const isPartiallySelected =\n ctx.option.selectAll.isSelectAllPartiallySelected(selectableOptions)\n\n const isDisabled = ctx.config.loading || !selectableOptions.length\n\n function setNode(node: HTMLElement | null) {\n if (ctx) {\n ctx.refs.navigationList.current[index] = node\n }\n }\n\n React.useEffect(() => {\n setSize((prevSize) => (knownSize === 0 ? prevSize : knownSize))\n }, [knownSize])\n\n const handleClick = () => {\n !isDisabled && ctx.state.onSelect(ctx.state.selectAllOption)\n }\n\n return (\n <StyledSelectAll>\n <StyledItem\n {...props}\n {...ctx.props.item({\n onClick: handleClick,\n onMouseMove: (event: React.MouseEvent<HTMLDivElement>) => {\n // Update the active menu index when hovering over SelectAll\n if (ctx.state.activeMenuIndex !== index) {\n ctx.state.setActiveMenuIndex(index)\n }\n },\n })}\n $disabled={isDisabled}\n $emptyMinHeight={size}\n $highlighted={ctx.state.activeMenuIndex === index}\n $selected={isSelected}\n aria-posinset={index}\n aria-selected={ctx.state.activeMenuIndex === index}\n aria-setsize={ctx.state.options.length || 0}\n id={`item-${ctx.state.selectAllOption.id}`}\n ref={setNode}\n role=\"option\"\n >\n {ctx.config.selectionStyle === 'checkbox' && (\n <ctx.components.CheckboxContainer>\n {isPartiallySelected && !isSelected ? (\n <ctx.components.Checkbox\n disabled={isDisabled}\n indeterminate={isPartiallySelected}\n />\n ) : (\n <ctx.components.Checkbox\n disabled={isDisabled}\n checked={isSelected}\n />\n )}\n </ctx.components.CheckboxContainer>\n )}\n {children}\n {ctx.config.selectionStyle === 'checkmark' && (\n <ctx.components.CheckmarkContainer>\n {isSelected && <ctx.components.Checkmark />}\n </ctx.components.CheckmarkContainer>\n )}\n </StyledItem>\n </StyledSelectAll>\n )\n})\n\nexport const OptionGroupHeader = ({ optgroup }: any) => {\n return <StyledOptionGroupLabel>{optgroup.label}</StyledOptionGroupLabel>\n}\n\nexport const OptionLabel = ({ option }: any) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledItemLabel $draggable={ctx.config.draggable}>\n {ctx.option.label(option)}\n </StyledItemLabel>\n )\n}\n\nexport const OptionContent = ({ option }: any) => {\n const ctx = useSuperSelectContext()\n\n if (ctx.option.isOptgroup(option)) {\n return <ctx.components.OptionGroupHeader optgroup={option} />\n }\n\n return <ctx.components.OptionLabel option={option} />\n}\n\nexport const DraggableOptionContent = ({ index, option }: any) => {\n const ctx = useSuperSelectContext()\n\n const disabled = ctx.option.isDisabled(option)\n const isOptgroup = ctx.option.isOptgroup(option)\n const optionId = isOptgroup ? option.id : option[draggableOptionIdSymbol]\n\n return (\n <Draggable\n draggableId={optionId}\n index={index}\n key={optionId}\n isDragDisabled={isOptgroup || disabled || Boolean(ctx.state.searchValue)}\n >\n {(provided: DraggableProvided) => {\n return (\n <StyledDraggableWrapper\n ref={provided.innerRef}\n {...provided.draggableProps}\n {...provided.dragHandleProps}\n >\n {!isOptgroup && <ctx.components.DragHandle />}\n <ctx.components.OptionContent index={index} option={option} />\n </StyledDraggableWrapper>\n )\n }}\n </Draggable>\n )\n}\n\nexport const DragHandle = (props: React.PropsWithChildren<any>) => {\n return (\n <StyledGrip {...props}>\n <Grip color={colors.gray45} />\n </StyledGrip>\n )\n}\n\nexport const CheckboxContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledCheckboxContainer {...props} />\n}\n\nexport const Checkbox = (\n props: React.PropsWithChildren<ComponentProps<typeof FakeCheckbox>>\n) => {\n return <FakeCheckbox {...props} />\n}\n\nexport const CheckmarkContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledCheckmarkContainer {...props} />\n}\n\nexport const Checkmark = (props: React.PropsWithChildren<any>) => {\n return <Check {...props} size=\"sm\" />\n}\n"],"mappings":";;;;;;;;;;;;AACA,SAASA,SAAS,QAAQ,iEAAiE;AAC3F,SAASC,KAAK,EAAEC,KAAK,IAAIC,SAAS,EAAEC,IAAI,QAAQ,qBAAqB;AAErE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,SAAS,QAAQ,wBAAwB;AAClD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,uBAAuB,QAAQ,eAAe;AACvD,SAASC,uBAAuB,QAAQ,yBAAyB;AACjE,SACEC,WAAW,EACXC,oBAAoB,EACpBC,eAAe,EACfC,kBAAkB,EAClBC,uBAAuB,EACvBC,wBAAwB,EACxBC,eAAe,EACfC,sBAAsB,EACtBC,kBAAkB,EAClBC,YAAY,EACZC,UAAU,EACVC,WAAW,EACXC,YAAY,EACZC,gBAAgB,EAChBC,UAAU,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KAAA,CAAA0C,aAAA,CAACG,GAAG,CAACY,UAAU,CAAC2J,aAAa;MAACtI,KAAK,EAAEA,KAAM;MAACN,MAAM,EAAEA;IAAO,CAAE,CACvC,CAAC;EAE7B,CACS,CAAC;AAEhB,CAAC;AAED,OAAO,IAAMuJ,UAAU,GAAG,SAAbA,UAAUA,CAAIvL,KAAmC,EAAK;EACjE,oBACExC,KAAA,CAAA0C,aAAA,CAACtB,UAAU,EAAKoB,KAAK,eACnBxC,KAAA,CAAA0C,aAAA,CAAC3C,IAAI;IAAC0G,KAAK,EAAElG,MAAM,CAACyN;EAAO,CAAE,CACnB,CAAC;AAEjB,CAAC;AAED,OAAO,IAAM3C,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAI7I,KAAmC,EAAK;EACxE,oBAAOxC,KAAA,CAAA0C,aAAA,CAAC5B,uBAAuB,EAAK0B,KAAQ,CAAC;AAC/C,CAAC;AAED,OAAO,IAAM8I,QAAQ,GAAG,SAAXA,QAAQA,CACnB9I,KAAmE,EAChE;EACH,oBAAOxC,KAAA,CAAA0C,aAAA,CAACzC,YAAY,EAAKuC,KAAQ,CAAC;AACpC,CAAC;AAED,OAAO,IAAMiJ,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIjJ,KAAmC,EAAK;EACzE,oBAAOxC,KAAA,CAAA0C,aAAA,CAAC3B,wBAAwB,EAAKyB,KAAQ,CAAC;AAChD,CAAC;AAED,OAAO,IAAMkJ,SAAS,GAAG,SAAZA,SAASA,CAAIlJ,KAAmC,EAAK;EAChE,oBAAOxC,KAAA,CAAA0C,aAAA,CAAC9C,KAAK,EAAA+C,QAAA,KAAKH,KAAK;IAAEkE,IAAI,EAAC;EAAI,EAAE,CAAC;AACvC,CAAC"}
@@ -56,7 +56,7 @@ function SelectComponent(props, ref) {
56
56
  initialFocus: config.multiple ? undefined : 0
57
57
  }, /*#__PURE__*/React.createElement(ctx.components.Overlay, _extends({
58
58
  ref: ctx.refs.floating.refs.setFloating
59
- }, ctx.props.overlay()), !config.multiple && (config.search === true || config.search === undefined) && /*#__PURE__*/React.createElement(ctx.components.SearchContainer, ctx.props.searchContainer(), /*#__PURE__*/React.createElement(ctx.components.Search, ctx.props.search())), config.header && /*#__PURE__*/React.createElement(ctx.components.Header, ctx.props.header(), config.header), config.selectAllEnabled && config.multiple && /*#__PURE__*/React.createElement(ctx.components.SelectAll, {
59
+ }, ctx.props.overlay()), (config.search === true || config.search === undefined && !config.multiple) && /*#__PURE__*/React.createElement(ctx.components.SearchContainer, ctx.props.searchContainer(), /*#__PURE__*/React.createElement(ctx.components.Search, ctx.props.search())), config.header && /*#__PURE__*/React.createElement(ctx.components.Header, ctx.props.header(), config.header), config.selectAllEnabled && config.multiple && /*#__PURE__*/React.createElement(ctx.components.SelectAll, {
60
60
  "data-index": 0
61
61
  }, /*#__PURE__*/React.createElement(OptionContent, {
62
62
  option: ctx.state.selectAllOption
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.js","names":["DragDropContext","Droppable","FloatingFocusManager","FloatingPortal","FocusScope","React","Virtuoso","presets","DraggableOptionContent","OptionContent","SuperSelectContext","useSuperSelect","InternalDragDropContext","createContext","isDraggingOver","InternalDragDropProvider","_ref","children","value","useMemo","createElement","Provider","SelectComponent","props","ref","search","undefined","preset","config","_objectSpread","ctx","useImperativeHandle","useEffect","onChange","console","warn","components","Trigger","_extends","refs","floating","setReference","trigger","state","open","context","order","initialFocus","multiple","Overlay","setFloating","overlay","SearchContainer","searchContainer","Search","header","Header","selectAllEnabled","SelectAll","option","selectAllOption","options","length","Options","draggable","onDragEnd","droppableId","mode","renderClone","provided","snapshot","dragged","source","index","Item","isDragging","draggableProps","DragHandle","OptionLabel","virtuoso","scrollerRef","el","innerRef","itemContent","i","data","EmptyMessage","emptyMessage","footer","Footer","SuperSelect","forwardRef"],"sources":["../../src/SuperSelect/SuperSelect.tsx"],"sourcesContent":["import type {\n DraggableProvided,\n DraggableRubric,\n DraggableStateSnapshot,\n} from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport {\n DragDropContext,\n Droppable,\n} from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { FloatingFocusManager, FloatingPortal } from '@floating-ui/react'\nimport { FocusScope } from '@react-aria/focus'\nimport React from 'react'\nimport { Virtuoso } from 'react-virtuoso'\nimport { presets } from './presets'\nimport { DraggableOptionContent, OptionContent } from './SuperSelect.components'\nimport type {\n SuperSelectApi,\n SuperSelectConfig,\n SuperSelectProps,\n} from './SuperSelect.types'\nimport { SuperSelectContext, useSuperSelect } from './useSuperSelect'\n\nexport const InternalDragDropContext = React.createContext({\n isDraggingOver: false,\n})\n\nconst InternalDragDropProvider = ({\n isDraggingOver,\n children,\n}: {\n isDraggingOver: boolean\n children: React.ReactNode\n}) => {\n const value = React.useMemo(() => {\n return {\n isDraggingOver,\n }\n }, [isDraggingOver])\n\n return (\n <InternalDragDropContext.Provider value={value}>\n {children}\n </InternalDragDropContext.Provider>\n )\n}\n\nfunction SelectComponent(\n props: SuperSelectProps,\n ref: React.ForwardedRef<SuperSelectApi>\n) {\n const search = props.search === undefined || props.search === true\n\n const preset = props.preset || ''\n\n const config: SuperSelectConfig = {\n ...presets[preset],\n ...props,\n search,\n }\n\n const ctx = useSuperSelect(config)\n\n React.useImperativeHandle(ref, () => ctx)\n\n React.useEffect(() => {\n if (props.value && props.onChange === undefined) {\n console.warn(\n 'Must provide both a `value` and `onChange` prop for a controlled Select'\n )\n }\n }, [])\n\n return (\n <SuperSelectContext.Provider value={ctx}>\n <ctx.components.Trigger\n ref={ctx.refs.floating.refs.setReference}\n {...ctx.props.trigger()}\n />\n <FloatingPortal>\n {ctx.state.open && (\n // FocusScope is needed to allow move focus from Modal and Tearsheet\n <FocusScope>\n <FloatingFocusManager\n context={ctx.refs.floating.context}\n order={\n config.search\n ? ['content', 'reference']\n : ['reference', 'content']\n }\n initialFocus={config.multiple ? undefined : 0}\n >\n <ctx.components.Overlay\n ref={ctx.refs.floating.refs.setFloating}\n {...ctx.props.overlay()}\n >\n {!config.multiple &&\n (config.search === true || config.search === undefined) && (\n <ctx.components.SearchContainer\n {...ctx.props.searchContainer()}\n >\n <ctx.components.Search {...ctx.props.search()} />\n </ctx.components.SearchContainer>\n )}\n {config.header && (\n <ctx.components.Header {...ctx.props.header()}>\n {config.header}\n </ctx.components.Header>\n )}\n {config.selectAllEnabled && config.multiple && (\n <ctx.components.SelectAll data-index={0}>\n <OptionContent option={ctx.state.selectAllOption} />\n </ctx.components.SelectAll>\n )}\n {ctx.state.options.length > 0 ? (\n <ctx.components.Options>\n {config.draggable ? (\n <DragDropContext onDragEnd={ctx.state.onDragEnd}>\n <Droppable\n droppableId=\"droppable\"\n mode=\"virtual\"\n renderClone={(\n provided: DraggableProvided,\n snapshot: DraggableStateSnapshot,\n dragged: DraggableRubric\n ) => {\n const option =\n ctx.state.options[dragged.source.index]\n\n return (\n <ctx.components.Item\n isDragging\n data-index={dragged.source.index}\n {...provided.draggableProps}\n >\n <ctx.components.DragHandle />\n <ctx.components.OptionLabel option={option} />\n </ctx.components.Item>\n )\n }}\n >\n {(\n provided: DraggableProvided,\n snapshot: DraggableStateSnapshot\n ) => {\n return (\n <InternalDragDropProvider\n isDraggingOver={snapshot.isDraggingOver}\n >\n <Virtuoso\n {...ctx.props.virtuoso()}\n scrollerRef={(el) =>\n provided.innerRef(el as HTMLElement)\n }\n itemContent={(i, data) => (\n <DraggableOptionContent\n index={i}\n option={data}\n />\n )}\n />\n </InternalDragDropProvider>\n )\n }}\n </Droppable>\n </DragDropContext>\n ) : (\n <Virtuoso\n {...ctx.props.virtuoso()}\n ref={ctx.refs.virtuoso}\n itemContent={(i, option) => (\n <OptionContent option={option} />\n )}\n />\n )}\n </ctx.components.Options>\n ) : (\n <ctx.components.EmptyMessage {...ctx.props.emptyMessage()} />\n )}\n {config.footer && (\n <ctx.components.Footer {...ctx.props.footer()}>\n {config.footer}\n </ctx.components.Footer>\n )}\n </ctx.components.Overlay>\n </FloatingFocusManager>\n </FocusScope>\n )}\n </FloatingPortal>\n </SuperSelectContext.Provider>\n )\n}\n\nexport const SuperSelect = React.forwardRef<SuperSelectApi, SuperSelectProps>(\n SelectComponent\n)\n"],"mappings":";;;;;;;AAKA,SACEA,eAAe,EACfC,SAAS,QACJ,iEAAiE;AACxE,SAASC,oBAAoB,EAAEC,cAAc,QAAQ,oBAAoB;AACzE,SAASC,UAAU,QAAQ,mBAAmB;AAC9C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,sBAAsB,EAAEC,aAAa,QAAQ,0BAA0B;AAMhF,SAASC,kBAAkB,EAAEC,cAAc,QAAQ,kBAAkB;AAErE,OAAO,IAAMC,uBAAuB,gBAAGP,KAAK,CAACQ,aAAa,CAAC;EACzDC,cAAc,EAAE;AAClB,CAAC,CAAC;AAEF,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA,EAMxB;EAAA,IALJF,cAAc,GAAAE,IAAA,CAAdF,cAAc;IACdG,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAKR,IAAMC,KAAK,GAAGb,KAAK,CAACc,OAAO,CAAC,YAAM;IAChC,OAAO;MACLL,cAAc,EAAdA;IACF,CAAC;EACH,CAAC,EAAE,CAACA,cAAc,CAAC,CAAC;EAEpB,oBACET,KAAA,CAAAe,aAAA,CAACR,uBAAuB,CAACS,QAAQ;IAACH,KAAK,EAAEA;EAAM,GAC5CD,QAC+B,CAAC;AAEvC,CAAC;AAED,SAASK,eAAeA,CACtBC,KAAuB,EACvBC,GAAuC,EACvC;EACA,IAAMC,MAAM,GAAGF,KAAK,CAACE,MAAM,KAAKC,SAAS,IAAIH,KAAK,CAACE,MAAM,KAAK,IAAI;EAElE,IAAME,MAAM,GAAGJ,KAAK,CAACI,MAAM,IAAI,EAAE;EAEjC,IAAMC,MAAyB,GAAAC,aAAA,CAAAA,aAAA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G,CAACP,KAAK,CAACwD,QAAQ,CAAC,CAAC;IACxBvD,GAAG,EAAEM,GAAG,CAACS,IAAI,CAACwC,QAAS;IACvBI,WAAW,EAAE,SAAbA,WAAWA,CAAGC,CAAC,EAAEzB,MAAM;MAAA,oBACrBtD,KAAA,CAAAe,aAAA,CAACX,aAAa;QAACkD,MAAM,EAAEA;MAAO,CAAE,CAAC;IAAA;EACjC,EACH,CAEmB,CAAC,gBAEzBtD,KAAA,CAAAe,aAAA,CAACU,GAAG,CAACM,UAAU,CAACkD,YAAY,EAAKxD,GAAG,CAACP,KAAK,CAACgE,YAAY,CAAC,CAAI,CAC7D,EACA3D,MAAM,CAAC4D,MAAM,iBACZnF,KAAA,CAAAe,aAAA,CAACU,GAAG,CAACM,UAAU,CAACqD,MAAM,EAAK3D,GAAG,CAACP,KAAK,CAACiE,MAAM,CAAC,CAAC,EAC1C5D,MAAM,CAAC4D,MACa,CAEH,CACJ,CACZ,CAEA,CACW,CAAC;AAElC;AAEA,OAAO,IAAME,WAAW,gBAAGrF,KAAK,CAACsF,UAAU,CACzCrE,eACF,CAAC"}
1
+ {"version":3,"file":"SuperSelect.js","names":["DragDropContext","Droppable","FloatingFocusManager","FloatingPortal","FocusScope","React","Virtuoso","presets","DraggableOptionContent","OptionContent","SuperSelectContext","useSuperSelect","InternalDragDropContext","createContext","isDraggingOver","InternalDragDropProvider","_ref","children","value","useMemo","createElement","Provider","SelectComponent","props","ref","search","undefined","preset","config","_objectSpread","ctx","useImperativeHandle","useEffect","onChange","console","warn","components","Trigger","_extends","refs","floating","setReference","trigger","state","open","context","order","initialFocus","multiple","Overlay","setFloating","overlay","SearchContainer","searchContainer","Search","header","Header","selectAllEnabled","SelectAll","option","selectAllOption","options","length","Options","draggable","onDragEnd","droppableId","mode","renderClone","provided","snapshot","dragged","source","index","Item","isDragging","draggableProps","DragHandle","OptionLabel","virtuoso","scrollerRef","el","innerRef","itemContent","i","data","EmptyMessage","emptyMessage","footer","Footer","SuperSelect","forwardRef"],"sources":["../../src/SuperSelect/SuperSelect.tsx"],"sourcesContent":["import type {\n DraggableProvided,\n DraggableRubric,\n DraggableStateSnapshot,\n} from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport {\n DragDropContext,\n Droppable,\n} from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { FloatingFocusManager, FloatingPortal } from '@floating-ui/react'\nimport { FocusScope } from '@react-aria/focus'\nimport React from 'react'\nimport { Virtuoso } from 'react-virtuoso'\nimport { presets } from './presets'\nimport { DraggableOptionContent, OptionContent } from './SuperSelect.components'\nimport type {\n SuperSelectApi,\n SuperSelectConfig,\n SuperSelectProps,\n} from './SuperSelect.types'\nimport { SuperSelectContext, useSuperSelect } from './useSuperSelect'\n\nexport const InternalDragDropContext = React.createContext({\n isDraggingOver: false,\n})\n\nconst InternalDragDropProvider = ({\n isDraggingOver,\n children,\n}: {\n isDraggingOver: boolean\n children: React.ReactNode\n}) => {\n const value = React.useMemo(() => {\n return {\n isDraggingOver,\n }\n }, [isDraggingOver])\n\n return (\n <InternalDragDropContext.Provider value={value}>\n {children}\n </InternalDragDropContext.Provider>\n )\n}\n\nfunction SelectComponent(\n props: SuperSelectProps,\n ref: React.ForwardedRef<SuperSelectApi>\n) {\n const search = props.search === undefined || props.search === true\n\n const preset = props.preset || ''\n\n const config: SuperSelectConfig = {\n ...presets[preset],\n ...props,\n search,\n }\n\n const ctx = useSuperSelect(config)\n\n React.useImperativeHandle(ref, () => ctx)\n\n React.useEffect(() => {\n if (props.value && props.onChange === undefined) {\n console.warn(\n 'Must provide both a `value` and `onChange` prop for a controlled Select'\n )\n }\n }, [])\n\n return (\n <SuperSelectContext.Provider value={ctx}>\n <ctx.components.Trigger\n ref={ctx.refs.floating.refs.setReference}\n {...ctx.props.trigger()}\n />\n <FloatingPortal>\n {ctx.state.open && (\n // FocusScope is needed to allow move focus from Modal and Tearsheet\n <FocusScope>\n <FloatingFocusManager\n context={ctx.refs.floating.context}\n order={\n config.search\n ? ['content', 'reference']\n : ['reference', 'content']\n }\n initialFocus={config.multiple ? undefined : 0}\n >\n <ctx.components.Overlay\n ref={ctx.refs.floating.refs.setFloating}\n {...ctx.props.overlay()}\n >\n {(config.search === true ||\n (config.search === undefined && !config.multiple)) && (\n <ctx.components.SearchContainer\n {...ctx.props.searchContainer()}\n >\n <ctx.components.Search {...ctx.props.search()} />\n </ctx.components.SearchContainer>\n )}\n {config.header && (\n <ctx.components.Header {...ctx.props.header()}>\n {config.header}\n </ctx.components.Header>\n )}\n {config.selectAllEnabled && config.multiple && (\n <ctx.components.SelectAll data-index={0}>\n <OptionContent option={ctx.state.selectAllOption} />\n </ctx.components.SelectAll>\n )}\n {ctx.state.options.length > 0 ? (\n <ctx.components.Options>\n {config.draggable ? (\n <DragDropContext onDragEnd={ctx.state.onDragEnd}>\n <Droppable\n droppableId=\"droppable\"\n mode=\"virtual\"\n renderClone={(\n provided: DraggableProvided,\n snapshot: DraggableStateSnapshot,\n dragged: DraggableRubric\n ) => {\n const option =\n ctx.state.options[dragged.source.index]\n\n return (\n <ctx.components.Item\n isDragging\n data-index={dragged.source.index}\n {...provided.draggableProps}\n >\n <ctx.components.DragHandle />\n <ctx.components.OptionLabel option={option} />\n </ctx.components.Item>\n )\n }}\n >\n {(\n provided: DraggableProvided,\n snapshot: DraggableStateSnapshot\n ) => {\n return (\n <InternalDragDropProvider\n isDraggingOver={snapshot.isDraggingOver}\n >\n <Virtuoso\n {...ctx.props.virtuoso()}\n scrollerRef={(el) =>\n provided.innerRef(el as HTMLElement)\n }\n itemContent={(i, data) => (\n <DraggableOptionContent\n index={i}\n option={data}\n />\n )}\n />\n </InternalDragDropProvider>\n )\n }}\n </Droppable>\n </DragDropContext>\n ) : (\n <Virtuoso\n {...ctx.props.virtuoso()}\n ref={ctx.refs.virtuoso}\n itemContent={(i, option) => (\n <OptionContent option={option} />\n )}\n />\n )}\n </ctx.components.Options>\n ) : (\n <ctx.components.EmptyMessage {...ctx.props.emptyMessage()} />\n )}\n {config.footer && (\n <ctx.components.Footer {...ctx.props.footer()}>\n {config.footer}\n </ctx.components.Footer>\n )}\n </ctx.components.Overlay>\n </FloatingFocusManager>\n </FocusScope>\n )}\n </FloatingPortal>\n </SuperSelectContext.Provider>\n )\n}\n\nexport const SuperSelect = React.forwardRef<SuperSelectApi, SuperSelectProps>(\n SelectComponent\n)\n"],"mappings":";;;;;;;AAKA,SACEA,eAAe,EACfC,SAAS,QACJ,iEAAiE;AACxE,SAASC,oBAAoB,EAAEC,cAAc,QAAQ,oBAAoB;AACzE,SAASC,UAAU,QAAQ,mBAAmB;AAC9C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,sBAAsB,EAAEC,aAAa,QAAQ,0BAA0B;AAMhF,SAASC,kBAAkB,EAAEC,cAAc,QAAQ,kBAAkB;AAErE,OAAO,IAAMC,uBAAuB,gBAAGP,KAAK,CAACQ,aAAa,CAAC;EACzDC,cAAc,EAAE;AAClB,CAAC,CAAC;AAEF,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA,EAMxB;EAAA,IALJF,cAAc,GAAAE,IAAA,CAAdF,cAAc;IACdG,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAKR,IAAMC,KAAK,GAAGb,KAAK,CAACc,OAAO,CAAC,YAAM;IAChC,OAAO;MACLL,cAAc,EAAdA;IACF,CAAC;EACH,CAAC,EAAE,CAACA,cAAc,CAAC,CAAC;EAEpB,oBACET,KAAA,CAAAe,aAAA,CAACR,uBAAuB,CAACS,QAAQ;IAACH,KAAK,EAAEA;EAAM,GAC5CD,QAC+B,CAAC;AAEvC,CAAC;AAED,SAASK,eAAeA,CACtBC,KAAuB,EACvBC,GAAuC,EACvC;EACA,IAAMC,MAAM,GAAGF,KAAK,CAACE,MAAM,KAAKC,SAAS,IAAIH,KAAK,CAACE,MAAM,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A;IACF,EACH,CACuB,CAAC;EAE/B,CACS,CACI,CAAC,gBAElBhF,KAAA,CAAAe,aAAA,CAACd,QAAQ,EAAAgC,QAAA,KACHR,GAAG,CAACP,KAAK,CAACwD,QAAQ,CAAC,CAAC;IACxBvD,GAAG,EAAEM,GAAG,CAACS,IAAI,CAACwC,QAAS;IACvBI,WAAW,EAAE,SAAbA,WAAWA,CAAGC,CAAC,EAAEzB,MAAM;MAAA,oBACrBtD,KAAA,CAAAe,aAAA,CAACX,aAAa;QAACkD,MAAM,EAAEA;MAAO,CAAE,CAAC;IAAA;EACjC,EACH,CAEmB,CAAC,gBAEzBtD,KAAA,CAAAe,aAAA,CAACU,GAAG,CAACM,UAAU,CAACkD,YAAY,EAAKxD,GAAG,CAACP,KAAK,CAACgE,YAAY,CAAC,CAAI,CAC7D,EACA3D,MAAM,CAAC4D,MAAM,iBACZnF,KAAA,CAAAe,aAAA,CAACU,GAAG,CAACM,UAAU,CAACqD,MAAM,EAAK3D,GAAG,CAACP,KAAK,CAACiE,MAAM,CAAC,CAAC,EAC1C5D,MAAM,CAAC4D,MACa,CAEH,CACJ,CACZ,CAEA,CACW,CAAC;AAElC;AAEA,OAAO,IAAME,WAAW,gBAAGrF,KAAK,CAACsF,UAAU,CACzCrE,eACF,CAAC"}
@@ -3,6 +3,6 @@ import { Popover } from '../Popover';
3
3
  import { spacing } from '../_styles/spacing';
4
4
  export var StyledFilterPresetPopoverContent = /*#__PURE__*/styled(Popover.Content).withConfig({
5
5
  displayName: "StyledFilterPresetPopoverContent",
6
- componentId: "core-12_37_0__sc-y5qv7b-0"
6
+ componentId: "core-12_38_0__sc-y5qv7b-0"
7
7
  })(["padding:", "px ", "px;"], spacing.sm, spacing.lg);
8
8
  //# sourceMappingURL=SuperSelect.presets.styles.js.map
@@ -22,40 +22,40 @@ var styledSelectButtonDefaultWidth = 248;
22
22
  export var extendedSelectMenuWidth = 360;
23
23
  export var PillSelectOptionWrapper = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "PillSelectOptionWrapper",
25
- componentId: "core-12_37_0__sc-1uf5708-0"
25
+ componentId: "core-12_38_0__sc-1uf5708-0"
26
26
  })(["display:flex;align-items:center;justify-content:space-between;padding:", "px ", "px;"], spacing.xs, spacing.lg);
27
27
  export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
28
28
  displayName: "PillSelectLabel",
29
- componentId: "core-12_37_0__sc-1uf5708-1"
29
+ componentId: "core-12_38_0__sc-1uf5708-1"
30
30
  })(["", ""], getEllipsis);
31
31
  export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
32
32
  displayName: "PillSelectLabelWrapper",
33
- componentId: "core-12_37_0__sc-1uf5708-2"
33
+ componentId: "core-12_38_0__sc-1uf5708-2"
34
34
  })(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
35
35
  var disabled = _ref.disabled;
36
36
  return disabled && css(["pointer-events:none;"]);
37
37
  });
38
38
  export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
39
39
  displayName: "StyledCheckboxContainer",
40
- componentId: "core-12_37_0__sc-1uf5708-3"
40
+ componentId: "core-12_38_0__sc-1uf5708-3"
41
41
  })(["padding-left:", "px;"], spacing.lg);
42
42
  export var StyledCheckmarkContainer = /*#__PURE__*/styled.div.withConfig({
43
43
  displayName: "StyledCheckmarkContainer",
44
- componentId: "core-12_37_0__sc-1uf5708-4"
44
+ componentId: "core-12_38_0__sc-1uf5708-4"
45
45
  })(["align-items:center;color:", ";display:inline-flex;flex-shrink:0;padding:0 ", "px 0 ", "px;"], colors.blue50, spacing.lg, spacing.sm);
46
46
 
47
47
  // Do not merge with StyledMenu, needed for max-height working in IE
48
48
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
49
49
  displayName: "StyledWrapper",
50
- componentId: "core-12_37_0__sc-1uf5708-5"
50
+ componentId: "core-12_38_0__sc-1uf5708-5"
51
51
  })(["display:flex;max-height:inherit;min-width:inherit;outline:none;width:inherit;"]);
52
52
  export var StyledMenu = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledMenu",
54
- componentId: "core-12_37_0__sc-1uf5708-6"
54
+ componentId: "core-12_38_0__sc-1uf5708-6"
55
55
  })(["display:flex;flex-direction:column;outline:0;width:100%;"]);
56
56
  export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
57
57
  displayName: "StyledOptions",
58
- componentId: "core-12_37_0__sc-1uf5708-7"
58
+ componentId: "core-12_38_0__sc-1uf5708-7"
59
59
  })(["flex-basis:auto;flex-grow:1;flex-shrink:1;min-height:", "px;", ";padding:", "px 0;position:relative;overflow:hidden;&:focus{", " margin:-1px;}"], optionMinHeight, function (_ref2) {
60
60
  var _ref2$$scrollable = _ref2.$scrollable,
61
61
  $scrollable = _ref2$$scrollable === void 0 ? true : _ref2$$scrollable;
@@ -63,53 +63,53 @@ export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
63
63
  }, spacing.sm, getFocus());
64
64
  export var StyledItemContent = /*#__PURE__*/styled.div.withConfig({
65
65
  displayName: "StyledItemContent",
66
- componentId: "core-12_37_0__sc-1uf5708-8"
66
+ componentId: "core-12_38_0__sc-1uf5708-8"
67
67
  })(["display:flex;flex-direction:row;align-items:center;"]);
68
68
  export var StyledOptionGroupLabel = /*#__PURE__*/styled.div.withConfig({
69
69
  displayName: "StyledOptionGroupLabel",
70
- componentId: "core-12_37_0__sc-1uf5708-9"
70
+ componentId: "core-12_38_0__sc-1uf5708-9"
71
71
  })(["padding:", "px 0 ", "px ", "px;"], spacing.md, spacing.xs, spacing.lg);
72
72
  export var StyledItemLabel = /*#__PURE__*/styled.div.withConfig({
73
73
  displayName: "StyledItemLabel",
74
- componentId: "core-12_37_0__sc-1uf5708-10"
74
+ componentId: "core-12_38_0__sc-1uf5708-10"
75
75
  })(["", ""], function (_ref3) {
76
76
  var $draggable = _ref3.$draggable;
77
77
  return css(["padding:", "px ", "px;overflow-wrap:anywhere;"], spacing.xs, $draggable ? 0 : spacing.lg);
78
78
  });
79
79
  export var StyledDraggableWrapper = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledDraggableWrapper",
81
- componentId: "core-12_37_0__sc-1uf5708-11"
81
+ componentId: "core-12_38_0__sc-1uf5708-11"
82
82
  })(["display:flex;width:100%;align-items:center;"]);
83
83
  export var StyledGrip = /*#__PURE__*/styled.div.withConfig({
84
84
  displayName: "StyledGrip",
85
- componentId: "core-12_37_0__sc-1uf5708-12"
85
+ componentId: "core-12_38_0__sc-1uf5708-12"
86
86
  })(["padding:0 2px;height:24px;visibility:hidden;"]);
87
87
  export var StyledFooter = /*#__PURE__*/styled(Box).withConfig({
88
88
  displayName: "StyledFooter",
89
- componentId: "core-12_37_0__sc-1uf5708-13"
89
+ componentId: "core-12_38_0__sc-1uf5708-13"
90
90
  })(["border-top:1px solid ", ";"], colors.gray85);
91
91
  export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
92
92
  displayName: "StyledHeader",
93
- componentId: "core-12_37_0__sc-1uf5708-14"
93
+ componentId: "core-12_38_0__sc-1uf5708-14"
94
94
  })([""]);
95
95
  export var StyledEmptyMessage = /*#__PURE__*/styled.div.withConfig({
96
96
  displayName: "StyledEmptyMessage",
97
- componentId: "core-12_37_0__sc-1uf5708-15"
97
+ componentId: "core-12_38_0__sc-1uf5708-15"
98
98
  })(["", ";padding:", "px ", "px;color:", ";"], getTypographyIntent('body'), spacing.md, spacing.lg, colors.gray45);
99
99
  export var StyledSearchContainer = /*#__PURE__*/styled.div.withConfig({
100
100
  displayName: "StyledSearchContainer",
101
- componentId: "core-12_37_0__sc-1uf5708-16"
101
+ componentId: "core-12_38_0__sc-1uf5708-16"
102
102
  })(["padding:", "px ", "px ", "px;", " > *{pointer-events:none;}"], spacing.lg, spacing.lg, spacing.sm, StyledButton);
103
103
  export var StyledGroup = /*#__PURE__*/styled.div.withConfig({
104
104
  displayName: "StyledGroup",
105
- componentId: "core-12_37_0__sc-1uf5708-17"
105
+ componentId: "core-12_38_0__sc-1uf5708-17"
106
106
  })(["", " color:", ";cursor:", ";font-weight:", ";padding:", "px ", "px;&:not(:first-child){padding-top:", "px;}&&{padding:0;}", "{padding:", "px ", " px;}&:not(:first-child){", "{padding-top:", " px;}}"], getTypographyIntent('body'), colors.gray15, function (_ref4) {
107
107
  var $clickable = _ref4.$clickable;
108
108
  return $clickable ? 'pointer' : 'default';
109
109
  }, typographyWeights.semibold, spacing.xs, spacing.lg, spacing.md + spacing.xs, StyledOptionGroupLabel, spacing.xs, spacing.lg, StyledOptionGroupLabel, spacing.md + spacing.xs);
110
110
  export var StyledItem = /*#__PURE__*/styled.div.withConfig({
111
111
  displayName: "StyledItem",
112
- componentId: "core-12_37_0__sc-1uf5708-18"
112
+ componentId: "core-12_38_0__sc-1uf5708-18"
113
113
  })(["", ";align-items:center;cursor:pointer;list-style-type:none;display:flex;padding:0;", " ", " ", " a{color:", ";display:block;margin:-", "px -", "px;padding:", "px ", "px;text-decoration:none;&:hover{color:", ";text-decoration:none;}}&[data-highlighted='true']{background-color:", ";}", " &:hover,&:active{", "{visibility:visible;}}", "{color:inherit;cursor:pointer;}", " ", " ", ""], getTypographyIntent('body'), function (_ref5) {
114
114
  var $emptyMinHeight = _ref5.$emptyMinHeight;
115
115
  return css(["&:empty{min-height:", "px;}"], $emptyMinHeight);
@@ -147,54 +147,54 @@ export var StyledItem = /*#__PURE__*/styled.div.withConfig({
147
147
  });
148
148
  export var StyledSelectAll = /*#__PURE__*/styled(Box).withConfig({
149
149
  displayName: "StyledSelectAll",
150
- componentId: "core-12_37_0__sc-1uf5708-19"
150
+ componentId: "core-12_38_0__sc-1uf5708-19"
151
151
  })(["padding-top:", "px;padding-bottom:", "px;border-bottom:1px solid ", ";"], spacing.md, spacing.md, colors.gray85);
152
152
  export var StyledDroppable = /*#__PURE__*/styled.div.withConfig({
153
153
  displayName: "StyledDroppable",
154
- componentId: "core-12_37_0__sc-1uf5708-20"
154
+ componentId: "core-12_38_0__sc-1uf5708-20"
155
155
  })(["", ",", "{padding-left:28px;}"], StyledGroup, StyledItem);
156
156
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
157
157
  displayName: "StyledSelectMenu",
158
- componentId: "core-12_37_0__sc-1uf5708-21"
158
+ componentId: "core-12_38_0__sc-1uf5708-21"
159
159
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
160
160
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
161
161
  displayName: "StyledLabel",
162
- componentId: "core-12_37_0__sc-1uf5708-22"
162
+ componentId: "core-12_38_0__sc-1uf5708-22"
163
163
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref10) {
164
164
  var $hoverable = _ref10.$hoverable;
165
165
  return $hoverable ? 'initial' : 'none';
166
166
  });
167
167
  export var StyledIndicators = /*#__PURE__*/styled.div.withConfig({
168
168
  displayName: "StyledIndicators",
169
- componentId: "core-12_37_0__sc-1uf5708-23"
169
+ componentId: "core-12_38_0__sc-1uf5708-23"
170
170
  })(["align-items:center;align-self:flex-start;display:flex;height:34px;justify-content:flex-end;margin-left:", "px;min-width:40px;width:40px;"], spacing.xs);
171
171
  export var StyledClearIcon = /*#__PURE__*/styled(Button).withConfig({
172
172
  displayName: "StyledClearIcon",
173
- componentId: "core-12_37_0__sc-1uf5708-24"
173
+ componentId: "core-12_38_0__sc-1uf5708-24"
174
174
  })([""]);
175
175
  export var StyledSpinner = /*#__PURE__*/styled.div.withConfig({
176
176
  displayName: "StyledSpinner",
177
- componentId: "core-12_37_0__sc-1uf5708-25"
177
+ componentId: "core-12_38_0__sc-1uf5708-25"
178
178
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
179
179
  export var StyledArrowContainer = /*#__PURE__*/styled.div.withConfig({
180
180
  displayName: "StyledArrowContainer",
181
- componentId: "core-12_37_0__sc-1uf5708-26"
181
+ componentId: "core-12_38_0__sc-1uf5708-26"
182
182
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
183
183
  export var StyledArrow = /*#__PURE__*/styled.span.withConfig({
184
184
  displayName: "StyledArrow",
185
- componentId: "core-12_37_0__sc-1uf5708-27"
185
+ componentId: "core-12_38_0__sc-1uf5708-27"
186
186
  })(["display:inline-flex;svg{fill:", ";}"], colors.gray45);
187
187
  export var StyledArrowOutline = /*#__PURE__*/styled.polygon.withConfig({
188
188
  displayName: "StyledArrowOutline",
189
- componentId: "core-12_37_0__sc-1uf5708-28"
189
+ componentId: "core-12_38_0__sc-1uf5708-28"
190
190
  })([""]);
191
191
  export var StyledArrowFill = /*#__PURE__*/styled.polygon.withConfig({
192
192
  displayName: "StyledArrowFill",
193
- componentId: "core-12_37_0__sc-1uf5708-29"
193
+ componentId: "core-12_38_0__sc-1uf5708-29"
194
194
  })([""]);
195
195
  export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
196
196
  displayName: "StyledTrigger",
197
- componentId: "core-12_37_0__sc-1uf5708-30"
197
+ componentId: "core-12_38_0__sc-1uf5708-30"
198
198
  })(["", " 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-within,&[data-qa=", "]{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray50, borderRadius.md, colors.gray15, spacing.md, function (_ref11) {
199
199
  var $block = _ref11.$block;
200
200
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -229,31 +229,31 @@ export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
229
229
  });
230
230
  export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
231
231
  displayName: "StyledOverlay",
232
- componentId: "core-12_37_0__sc-1uf5708-31"
232
+ componentId: "core-12_38_0__sc-1uf5708-31"
233
233
  })(["display:flex;flex-direction:column;"]);
234
234
  export var StyledVirtuoso = /*#__PURE__*/styled(Virtuoso).withConfig({
235
235
  displayName: "StyledVirtuoso",
236
- componentId: "core-12_37_0__sc-1uf5708-32"
236
+ componentId: "core-12_38_0__sc-1uf5708-32"
237
237
  })(["flex:1 1 auto;"]);
238
238
  export var StyledEllipses = /*#__PURE__*/styled.div.withConfig({
239
239
  displayName: "StyledEllipses",
240
- componentId: "core-12_37_0__sc-1uf5708-33"
240
+ componentId: "core-12_38_0__sc-1uf5708-33"
241
241
  })(["", " display:inline-flex;> div{display:inline-flex;width:100%;}"], getEllipsis());
242
242
  export var StyledMultiValueContainer = /*#__PURE__*/styled.div.withConfig({
243
243
  displayName: "StyledMultiValueContainer",
244
- componentId: "core-12_37_0__sc-1uf5708-34"
244
+ componentId: "core-12_38_0__sc-1uf5708-34"
245
245
  })(["display:flex;flex-wrap:wrap;margin-bottom:2px;margin-right:", "px;margin-top:2px;min-width:0;width:100%;"], spacing.xs);
246
246
  export var StyledMultiValue = /*#__PURE__*/styled.div.withConfig({
247
247
  displayName: "StyledMultiValue",
248
- componentId: "core-12_37_0__sc-1uf5708-35"
248
+ componentId: "core-12_38_0__sc-1uf5708-35"
249
249
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:0 1 auto;> div{max-width:178px;width:100%;}"], spacing.xs);
250
250
  export var StyledMultiInputContainer = /*#__PURE__*/styled.div.withConfig({
251
251
  displayName: "StyledMultiInputContainer",
252
- componentId: "core-12_37_0__sc-1uf5708-36"
252
+ componentId: "core-12_38_0__sc-1uf5708-36"
253
253
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:1;max-width:100%;min-width:24px;"], spacing.xs);
254
254
  export var StyledMultiInput = /*#__PURE__*/styled.input.withConfig({
255
255
  displayName: "StyledMultiInput",
256
- componentId: "core-12_37_0__sc-1uf5708-37"
256
+ componentId: "core-12_38_0__sc-1uf5708-37"
257
257
  })(["background-color:transparent;border-width:0;font-family:inherit;padding:0;height:24px;width:100%;", " ", " &::-ms-clear{display:none;}&:focus{box-shadow:none;outline:none;}&::placeholder{color:", ";}"], getTypographyIntent('body'), function (_ref19) {
258
258
  var $isNavigatingTokens = _ref19.$isNavigatingTokens;
259
259
  return $isNavigatingTokens && css(["color:transparent;"]);
@@ -92,7 +92,6 @@ export interface SuperSelectConfig {
92
92
  value?: SuperSelectValue;
93
93
  overlayMatchesTriggerWidth?: boolean;
94
94
  'aria-label'?: string;
95
- 'aria-labelledby'?: string;
96
95
  }
97
96
  export declare type SuperSelectProps = SuperSelectConfig;
98
97
  export interface SuperSelectApi {
@@ -142,8 +141,6 @@ export interface SuperSelectApi {
142
141
  sourceOptions: SuperSelectOption[];
143
142
  value: SuperSelectValue;
144
143
  width: number;
145
- labelId: string;
146
- valueId: string;
147
144
  };
148
145
  props: {
149
146
  clear: () => Record<string, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.types.js","names":[],"sources":["../../src/SuperSelect/SuperSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { VirtuosoHandle } from 'react-virtuoso'\nimport type * as defaultComponents from './SuperSelect.components'\nimport type { isOptgroupSymbol } from './SuperSelect.constants'\n\nexport interface TokenNavigationProps {\n activeIndex?: number | null\n enabled?: boolean\n onChange?: (value: SuperSelectValue) => void\n onNavigate?: (index: number | null) => void\n value?: SuperSelectValue\n}\n\nexport interface KeyboardSelectionProps {\n enabled?: boolean\n onSelect?: () => void\n}\n\nexport type SuperSelectValuePrimitive = boolean | string | number\n\nexport type SuperSelectValue =\n | SuperSelectValuePrimitive\n | Array<SuperSelectValuePrimitive>\n | null\n\nexport type SuperSelectOption = any\n\nexport type SuperSelectPreset = '' | 'pill' | 'filter' | 'contacts'\n\nexport type SuperSelectResult = {\n destination?: { index: number } | null\n source: { index: number }\n}\n\nexport interface SuperSelectPresetProps {\n filter?: {\n filterName?: string\n }\n pill?: {}\n contacts?: {}\n ''?: {}\n}\n\nexport interface SuperSelectConfig {\n block?: boolean\n components?: Partial<typeof defaultComponents>\n defaultValue?: SuperSelectValue\n disabled?: boolean\n draggable?: boolean\n emptyMessage?: string\n selectAllEnabled?: boolean\n error?: boolean\n footer?: React.ReactElement\n getOptionGroup?: (option: SuperSelectOption) => string\n getOptionIsBatch?: (option: SuperSelectOption) => boolean\n getOptionIsDisabled?: (option: SuperSelectOption) => boolean\n getOptionIsPartiallySelected?: (option: SuperSelectOption) => boolean\n getOptionIsSelected?: (option: SuperSelectOption) => boolean\n getOptionLabel?: (option: SuperSelectOption) => string\n getOptionValue?: (option: SuperSelectOption) => SuperSelectValuePrimitive\n header?: React.ReactElement\n loading?: boolean\n multiple?: boolean\n onChange?: (value: SuperSelectValue) => void\n onManualSort?: (options: SuperSelectOption[]) => void\n onUnselectAll?: (\n value: SuperSelectValue,\n options: SuperSelectOption[],\n searchValue: string,\n getValue: (opt: SuperSelectOption) => Array<SuperSelectValuePrimitive>\n ) => SuperSelectValue\n /**\n * Callback function triggered when the \"Select All\" functionality is used in a multi-select SuperSelect.\n *\n * This prop is only relevant when `multiple={true}` and `selectAllEnabled={true}`. The callback is invoked\n * when users interact with a select all option in the select list that allows them to\n * select or deselect all available options at once.\n *\n * @param selectedOptions - An array of all options that would be selected when \"Select All\" is triggered.\n * This includes all selectable options (excluding disabled options) that are\n * currently visible and available for selection.\n *\n * @remarks\n * - Only called when the component is in multi-select mode (`multiple={true}`)\n * - Requires `selectAllEnabled={true}` to show the select-all UI\n * - Disabled options are automatically excluded from the selectedOptions array\n * - Allows additional customization of select-all behavior if needed by implementing custom logic within the callback\n *\n * @see {@link selectAllEnabled} - Enable the select-all functionality\n * @see {@link multiple} - Enable multi-select mode\n * @see {@link getOptionIsDisabled} - Function to determine if options are disabled\n */\n onSelectAll?: (selectedOptions: SuperSelectOption[]) => void\n onScrollBottom?: () => void\n onOpenChange?: (open: boolean) => void\n options?: SuperSelectOption[]\n placeholder?: string\n preset?: SuperSelectPreset\n presetProps?: SuperSelectPresetProps\n search?: boolean\n selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n setOptionGroup?: (\n option: SuperSelectOption,\n group: string\n ) => SuperSelectOption\n sort?: boolean\n tabIndex?: number\n value?: SuperSelectValue\n overlayMatchesTriggerWidth?: boolean\n 'aria-label'?: string\n 'aria-labelledby'?: string\n}\n\nexport type SuperSelectProps = SuperSelectConfig\n\nexport interface SuperSelectApi {\n config: {\n block: boolean\n disabled: boolean\n draggable: boolean\n emptyMessage: string\n error?: boolean\n footer?: React.ReactElement\n header?: React.ReactElement\n placeholder?: string\n preset: SuperSelectPreset\n presetProps?: any\n selectionStyle: 'highlight' | 'token' | 'checkbox' | 'checkmark'\n tabIndex: number\n loading: boolean\n multiple: boolean\n selectAllEnabled: boolean\n }\n components: typeof defaultComponents\n state: {\n activeMenuIndex: number | null\n activeTokenIndex: number | null\n isEmpty: () => boolean\n isSelectAllActive: boolean\n listContainerHeight: number\n listId: string\n maxHeight: number\n onDragEnd: (result: SuperSelectResult) => void\n onSelect: (option: SuperSelectOption) => void\n onSelectAll?: (selectedOptions: SuperSelectOption[]) => void\n open: boolean\n options: SuperSelectOption[]\n overlayId: string\n searchValue: string\n selectAllOption: SuperSelectOption\n selectedIndex: number | null\n selectedLabel: string\n selectedOption: SuperSelectOption | null\n setOpen: (open: boolean) => void\n setPointer: any\n setActiveMenuIndex: (index: number | null) => void\n setSearchValue: ((value: string) => void) & { cancel: () => void }\n sourceOptions: SuperSelectOption[]\n value: SuperSelectValue\n width: number\n labelId: string\n valueId: string\n }\n props: {\n clear: () => Record<string, any>\n emptyMessage: () => Record<string, any>\n footer: () => Record<string, any>\n header: () => Record<string, any>\n item: (...args: any[]) => Record<string, any>\n label: () => Record<string, any>\n menu: () => Record<string, any>\n multiInput: () => Record<string, any>\n overlay: () => Record<string, any>\n search: () => Record<string, any>\n searchContainer: () => Record<string, any>\n tokenClear: (index: number) => Record<string, any>\n trigger: () => Record<string, any>\n virtuoso: () => Record<string, any>\n }\n option: {\n group: (option: SuperSelectOption) => string\n isBatch: (option: SuperSelectOption) => boolean\n isPartiallySelected: (option: SuperSelectOption) => boolean\n isSelected: (option: SuperSelectOption) => boolean\n isDisabled: (option: SuperSelectOption) => boolean\n isOptgroup: (option: SuperSelectOption) => boolean\n isOptSelectAll: (option: SuperSelectOption) => boolean\n label: (option: SuperSelectOption) => string\n selectAll: {\n isSelectAllPartiallySelected: (options: SuperSelectOption[]) => boolean\n isSelectAllSelected: (options: SuperSelectOption[]) => boolean\n }\n value: (option: SuperSelectOption) => SuperSelectValuePrimitive\n }\n refs: {\n floating: any\n navigationList: any\n virtuoso: React.RefObject<VirtuosoHandle>\n }\n}\n\nexport interface SuperSelectTriggerProps {\n block?: boolean\n disabled?: boolean\n error?: boolean\n loading?: boolean\n placeholder?: string\n search?: boolean\n tabIndex?: number\n}\n\nexport interface SuperSelectOptgroup {\n label: string\n id: string\n [isOptgroupSymbol]: true\n}\n\nexport interface SuperSelectMenuItemProps\n extends React.HTMLAttributes<HTMLDivElement> {\n isDragging?: boolean\n // data attributes are passed by Virtuoso\n 'data-known-size'?: number\n 'data-index': number\n}\n"],"mappings":""}
1
+ {"version":3,"file":"SuperSelect.types.js","names":[],"sources":["../../src/SuperSelect/SuperSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { VirtuosoHandle } from 'react-virtuoso'\nimport type * as defaultComponents from './SuperSelect.components'\nimport type { isOptgroupSymbol } from './SuperSelect.constants'\n\nexport interface TokenNavigationProps {\n activeIndex?: number | null\n enabled?: boolean\n onChange?: (value: SuperSelectValue) => void\n onNavigate?: (index: number | null) => void\n value?: SuperSelectValue\n}\n\nexport interface KeyboardSelectionProps {\n enabled?: boolean\n onSelect?: () => void\n}\n\nexport type SuperSelectValuePrimitive = boolean | string | number\n\nexport type SuperSelectValue =\n | SuperSelectValuePrimitive\n | Array<SuperSelectValuePrimitive>\n | null\n\nexport type SuperSelectOption = any\n\nexport type SuperSelectPreset = '' | 'pill' | 'filter' | 'contacts'\n\nexport type SuperSelectResult = {\n destination?: { index: number } | null\n source: { index: number }\n}\n\nexport interface SuperSelectPresetProps {\n filter?: {\n filterName?: string\n }\n pill?: {}\n contacts?: {}\n ''?: {}\n}\n\nexport interface SuperSelectConfig {\n block?: boolean\n components?: Partial<typeof defaultComponents>\n defaultValue?: SuperSelectValue\n disabled?: boolean\n draggable?: boolean\n emptyMessage?: string\n selectAllEnabled?: boolean\n error?: boolean\n footer?: React.ReactElement\n getOptionGroup?: (option: SuperSelectOption) => string\n getOptionIsBatch?: (option: SuperSelectOption) => boolean\n getOptionIsDisabled?: (option: SuperSelectOption) => boolean\n getOptionIsPartiallySelected?: (option: SuperSelectOption) => boolean\n getOptionIsSelected?: (option: SuperSelectOption) => boolean\n getOptionLabel?: (option: SuperSelectOption) => string\n getOptionValue?: (option: SuperSelectOption) => SuperSelectValuePrimitive\n header?: React.ReactElement\n loading?: boolean\n multiple?: boolean\n onChange?: (value: SuperSelectValue) => void\n onManualSort?: (options: SuperSelectOption[]) => void\n onUnselectAll?: (\n value: SuperSelectValue,\n options: SuperSelectOption[],\n searchValue: string,\n getValue: (opt: SuperSelectOption) => Array<SuperSelectValuePrimitive>\n ) => SuperSelectValue\n /**\n * Callback function triggered when the \"Select All\" functionality is used in a multi-select SuperSelect.\n *\n * This prop is only relevant when `multiple={true}` and `selectAllEnabled={true}`. The callback is invoked\n * when users interact with a select all option in the select list that allows them to\n * select or deselect all available options at once.\n *\n * @param selectedOptions - An array of all options that would be selected when \"Select All\" is triggered.\n * This includes all selectable options (excluding disabled options) that are\n * currently visible and available for selection.\n *\n * @remarks\n * - Only called when the component is in multi-select mode (`multiple={true}`)\n * - Requires `selectAllEnabled={true}` to show the select-all UI\n * - Disabled options are automatically excluded from the selectedOptions array\n * - Allows additional customization of select-all behavior if needed by implementing custom logic within the callback\n *\n * @see {@link selectAllEnabled} - Enable the select-all functionality\n * @see {@link multiple} - Enable multi-select mode\n * @see {@link getOptionIsDisabled} - Function to determine if options are disabled\n */\n onSelectAll?: (selectedOptions: SuperSelectOption[]) => void\n onScrollBottom?: () => void\n onOpenChange?: (open: boolean) => void\n options?: SuperSelectOption[]\n placeholder?: string\n preset?: SuperSelectPreset\n presetProps?: SuperSelectPresetProps\n search?: boolean\n selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n setOptionGroup?: (\n option: SuperSelectOption,\n group: string\n ) => SuperSelectOption\n sort?: boolean\n tabIndex?: number\n value?: SuperSelectValue\n overlayMatchesTriggerWidth?: boolean\n 'aria-label'?: string\n}\n\nexport type SuperSelectProps = SuperSelectConfig\n\nexport interface SuperSelectApi {\n config: {\n block: boolean\n disabled: boolean\n draggable: boolean\n emptyMessage: string\n error?: boolean\n footer?: React.ReactElement\n header?: React.ReactElement\n placeholder?: string\n preset: SuperSelectPreset\n presetProps?: any\n selectionStyle: 'highlight' | 'token' | 'checkbox' | 'checkmark'\n tabIndex: number\n loading: boolean\n multiple: boolean\n selectAllEnabled: boolean\n }\n components: typeof defaultComponents\n state: {\n activeMenuIndex: number | null\n activeTokenIndex: number | null\n isEmpty: () => boolean\n isSelectAllActive: boolean\n listContainerHeight: number\n listId: string\n maxHeight: number\n onDragEnd: (result: SuperSelectResult) => void\n onSelect: (option: SuperSelectOption) => void\n onSelectAll?: (selectedOptions: SuperSelectOption[]) => void\n open: boolean\n options: SuperSelectOption[]\n overlayId: string\n searchValue: string\n selectAllOption: SuperSelectOption\n selectedIndex: number | null\n selectedLabel: string\n selectedOption: SuperSelectOption | null\n setOpen: (open: boolean) => void\n setPointer: any\n setActiveMenuIndex: (index: number | null) => void\n setSearchValue: ((value: string) => void) & { cancel: () => void }\n sourceOptions: SuperSelectOption[]\n value: SuperSelectValue\n width: number\n }\n props: {\n clear: () => Record<string, any>\n emptyMessage: () => Record<string, any>\n footer: () => Record<string, any>\n header: () => Record<string, any>\n item: (...args: any[]) => Record<string, any>\n label: () => Record<string, any>\n menu: () => Record<string, any>\n multiInput: () => Record<string, any>\n overlay: () => Record<string, any>\n search: () => Record<string, any>\n searchContainer: () => Record<string, any>\n tokenClear: (index: number) => Record<string, any>\n trigger: () => Record<string, any>\n virtuoso: () => Record<string, any>\n }\n option: {\n group: (option: SuperSelectOption) => string\n isBatch: (option: SuperSelectOption) => boolean\n isPartiallySelected: (option: SuperSelectOption) => boolean\n isSelected: (option: SuperSelectOption) => boolean\n isDisabled: (option: SuperSelectOption) => boolean\n isOptgroup: (option: SuperSelectOption) => boolean\n isOptSelectAll: (option: SuperSelectOption) => boolean\n label: (option: SuperSelectOption) => string\n selectAll: {\n isSelectAllPartiallySelected: (options: SuperSelectOption[]) => boolean\n isSelectAllSelected: (options: SuperSelectOption[]) => boolean\n }\n value: (option: SuperSelectOption) => SuperSelectValuePrimitive\n }\n refs: {\n floating: any\n navigationList: any\n virtuoso: React.RefObject<VirtuosoHandle>\n }\n}\n\nexport interface SuperSelectTriggerProps {\n block?: boolean\n disabled?: boolean\n error?: boolean\n loading?: boolean\n placeholder?: string\n search?: boolean\n tabIndex?: number\n}\n\nexport interface SuperSelectOptgroup {\n label: string\n id: string\n [isOptgroupSymbol]: true\n}\n\nexport interface SuperSelectMenuItemProps\n extends React.HTMLAttributes<HTMLDivElement> {\n isDragging?: boolean\n // data attributes are passed by Virtuoso\n 'data-known-size'?: number\n 'data-index': number\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { SuperSelectApi, SuperSelectConfig } from './SuperSelect.types';
3
- export declare function useSuperSelect({ block, components: customComponents, defaultValue, disabled, draggable, emptyMessage, selectAllEnabled, error, footer, getOptionGroup, getOptionIsBatch, getOptionIsDisabled, getOptionLabel, getOptionIsPartiallySelected, getOptionIsSelected, getOptionValue, onScrollBottom, onOpenChange, header, loading, multiple, onChange, onManualSort, onUnselectAll, onSelectAll, options: sourceOptions, placeholder, preset, presetProps, search, selectionStyle, setOptionGroup, sort, tabIndex, value: value_, overlayMatchesTriggerWidth, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: SuperSelectConfig): SuperSelectApi;
3
+ export declare function useSuperSelect({ block, components: customComponents, defaultValue, disabled, draggable, emptyMessage, selectAllEnabled, error, footer, getOptionGroup, getOptionIsBatch, getOptionIsDisabled, getOptionLabel, getOptionIsPartiallySelected, getOptionIsSelected, getOptionValue, onScrollBottom, onOpenChange, header, loading, multiple, onChange, onManualSort, onUnselectAll, onSelectAll, options: sourceOptions, placeholder, preset, presetProps, search, selectionStyle, setOptionGroup, sort, tabIndex, value: value_, overlayMatchesTriggerWidth, 'aria-label': ariaLabel, }: SuperSelectConfig): SuperSelectApi;
4
4
  export declare const SuperSelectContext: React.Context<SuperSelectApi | null>;
5
5
  export declare function useSuperSelectContext(): SuperSelectApi;