@procore/core-react 12.28.0 → 12.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/CHANGELOG.md +7 -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.styles.js +10 -10
  8. package/dist/Box/Box.styles.js +1 -1
  9. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  10. package/dist/Button/Button.styles.js +5 -5
  11. package/dist/Calendar/Calendar.styles.js +8 -8
  12. package/dist/Card/Card.styles.js +1 -1
  13. package/dist/Checkbox/Checkbox.styles.js +6 -6
  14. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  15. package/dist/ContactItem/ContactItem.styles.js +5 -5
  16. package/dist/Content/Content.styles.js +2 -2
  17. package/dist/DateInput/DateInput.styles.js +6 -6
  18. package/dist/DetailPage/DetailPage.styles.js +7 -7
  19. package/dist/Dropdown/Dropdown.styles.js +3 -3
  20. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  21. package/dist/Dropzone/Dropzone.js +1 -1
  22. package/dist/Dropzone/Dropzone.styles.js +9 -9
  23. package/dist/EmptyState/EmptyState.styles.js +6 -6
  24. package/dist/Field/Field.styles.js +3 -3
  25. package/dist/FileList/FileList.styles.js +4 -4
  26. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  27. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  28. package/dist/FileSelect/FileSelect.styles.js +2 -2
  29. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  30. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  31. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  32. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  33. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  34. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  35. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  36. package/dist/FileToken/FileToken.styles.js +4 -4
  37. package/dist/FilterToken/FilterToken.styles.js +5 -5
  38. package/dist/FlexList/FlexList.styles.js +1 -1
  39. package/dist/Form/Form.styles.js +14 -14
  40. package/dist/Form/StyledFormikForm.styles.js +2 -2
  41. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  42. package/dist/Grid/Grid.styles.js +2 -2
  43. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  44. package/dist/Input/Input.styles.js +1 -1
  45. package/dist/Link/Link.styles.js +1 -1
  46. package/dist/ListPage/ListPage.styles.js +8 -8
  47. package/dist/Loader/Loader.styles.js +2 -2
  48. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  49. package/dist/Modal/Modal.styles.js +13 -13
  50. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  51. package/dist/NextMenu/NextMenu.styles.js +3 -3
  52. package/dist/Notation/Notation.js +1 -1
  53. package/dist/NumberInput/NumberInput.styles.js +7 -7
  54. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  55. package/dist/PageLayout/PageLayout.styles.js +16 -16
  56. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  57. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  58. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  59. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  60. package/dist/Pagination/Pagination.styles.js +5 -5
  61. package/dist/Panel/Panel.styles.js +11 -11
  62. package/dist/Pill/Pill.styles.js +3 -3
  63. package/dist/PillSelect/PillSelect.styles.js +4 -4
  64. package/dist/Popover/Popover.styles.js +2 -2
  65. package/dist/Portal/Portal.styles.js +1 -1
  66. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  67. package/dist/RadioButton/RadioButton.styles.js +3 -3
  68. package/dist/Required/Required.styles.js +3 -3
  69. package/dist/Search/Search.styles.js +5 -5
  70. package/dist/Section/Section.styles.js +7 -7
  71. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  72. package/dist/Select/Select.styles.js +7 -7
  73. package/dist/Semantic/Semantic.styles.js +9 -9
  74. package/dist/Slider/Slider.styles.js +5 -5
  75. package/dist/Spinner/Spinner.styles.js +7 -7
  76. package/dist/SplitViewCard/SplitViewCard.js +1 -2
  77. package/dist/SplitViewCard/SplitViewCard.js.map +1 -1
  78. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  79. package/dist/SuperSelect/SuperSelect.components.js +1 -5
  80. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  81. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  82. package/dist/SuperSelect/SuperSelect.styles.js +38 -38
  83. package/dist/SuperSelect/SuperSelect.types.d.ts +0 -1
  84. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  85. package/dist/SuperSelect/useSuperSelect.js +15 -3
  86. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  87. package/dist/Switch/Switch.styles.js +4 -4
  88. package/dist/Table/Table.styles.js +28 -28
  89. package/dist/TableShelf/TableShelf.styles.js +5 -5
  90. package/dist/Tabs/Tabs.styles.js +15 -15
  91. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  92. package/dist/TextArea/TextArea.styles.js +1 -1
  93. package/dist/TextEditor/TextEditor.styles.js +1 -1
  94. package/dist/TextEditor/utils/config.js +1 -3
  95. package/dist/TextEditor/utils/config.js.map +1 -1
  96. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  97. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  98. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  99. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  100. package/dist/Tile/Tile.styles.js +8 -8
  101. package/dist/Title/Title.styles.js +7 -7
  102. package/dist/Toast/Toast.styles.js +3 -3
  103. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  104. package/dist/Token/Token.styles.js +3 -3
  105. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  106. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  107. package/dist/Tooltip/Tooltip.styles.js +2 -2
  108. package/dist/Tree/Tree.styles.js +9 -9
  109. package/dist/Typeahead/Typeahead.styles.js +3 -3
  110. package/dist/Typography/Typography.styles.js +1 -1
  111. package/dist/Typography/Typography.table.story.js +2 -2
  112. package/dist/_hooks/I18n.d.ts +14 -0
  113. package/dist/_locales/de-DE.json +2 -1
  114. package/dist/_locales/en-AU.json +2 -1
  115. package/dist/_locales/en-CA.json +2 -1
  116. package/dist/_locales/en-GB.json +2 -1
  117. package/dist/_locales/es-ES.json +3 -2
  118. package/dist/_locales/es.json +4 -3
  119. package/dist/_locales/fr-CA.json +2 -1
  120. package/dist/_locales/fr-FR.json +2 -1
  121. package/dist/_locales/is-IS.json +2 -1
  122. package/dist/_locales/it-IT.json +2 -1
  123. package/dist/_locales/ja-JP.json +2 -1
  124. package/dist/_locales/pl-PL.json +2 -1
  125. package/dist/_locales/pt-BR.json +2 -1
  126. package/dist/_locales/pt-PT.json +380 -0
  127. package/dist/_locales/th-TH.json +2 -1
  128. package/dist/_locales/zh-SG.json +2 -1
  129. package/dist/_locales/zh-TW.json +219 -218
  130. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  131. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  132. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  133. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  134. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  135. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  136. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  137. package/dist/_typedoc/Box/Box.types.json +68 -68
  138. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  139. package/dist/_typedoc/Button/Button.types.json +13 -13
  140. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  141. package/dist/_typedoc/Card/Card.types.json +6 -6
  142. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  143. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  144. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  145. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  146. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  147. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  148. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
  149. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  150. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  151. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  152. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  153. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  154. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  155. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  156. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  157. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  158. package/dist/_typedoc/Form/Form.types.json +771 -771
  159. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  160. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  161. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  162. package/dist/_typedoc/Input/Input.types.json +2 -2
  163. package/dist/_typedoc/Link/Link.types.json +1 -1
  164. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  165. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  166. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  167. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  168. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  169. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  170. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  171. package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
  172. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
  173. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  174. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  175. package/dist/_typedoc/Panel/Panel.types.json +30 -30
  176. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  177. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  178. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  179. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  180. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  181. package/dist/_typedoc/Required/Required.types.json +5 -5
  182. package/dist/_typedoc/Search/Search.types.json +18 -18
  183. package/dist/_typedoc/Section/Section.types.json +15 -15
  184. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  185. package/dist/_typedoc/Select/Select.types.json +60 -60
  186. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  187. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  188. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  189. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  190. package/dist/_typedoc/Table/Table.types.json +101 -101
  191. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  192. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  193. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  194. package/dist/_typedoc/TextEditor/TextEditor.types.json +21 -21
  195. package/dist/_typedoc/TextEditor/TextEditorProvider.types.json +2 -2
  196. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +3 -3
  197. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  198. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  199. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  200. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  201. package/dist/_typedoc/Title/Title.types.json +1 -1
  202. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  203. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  204. package/dist/_typedoc/Token/Token.types.json +7 -7
  205. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  206. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  207. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  208. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  209. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  210. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  211. package/dist/_typedoc/_utils/types.json +3 -3
  212. package/package.json +1 -1
@@ -7,18 +7,18 @@ import { spacing } from '../_styles/spacing';
7
7
  var MIN_CARD_HEIGHT = 364;
8
8
  export var StyledSplitViewCardContainer = /*#__PURE__*/styled.div.withConfig({
9
9
  displayName: "StyledSplitViewCardContainer",
10
- componentId: "core-12_28_0__sc-9hrkda-0"
10
+ componentId: "core-12_28_1__sc-9hrkda-0"
11
11
  })(["display:grid;grid-template-columns:1fr auto;border-radius:", "px;box-shadow:0 0 4px 0 rgba(0,0,0,0.25);min-height:", "px;position:relative;width:100%;@media (max-width:", "){box-shadow:none;display:flex;flex-direction:column;width:100%;}"], spacing.sm, MIN_CARD_HEIGHT, breakpointMinWidthValues.tabletMd);
12
12
  export var StyledSplitViewCardMain = /*#__PURE__*/styled.div.withConfig({
13
13
  displayName: "StyledSplitViewCardMain",
14
- componentId: "core-12_28_0__sc-9hrkda-1"
14
+ componentId: "core-12_28_1__sc-9hrkda-1"
15
15
  })(["background-color:", ";border-top-left-radius:", "px;border-bottom-left-radius:", "px;position:relative;width:60%;transition:all ease 500ms;@media (max-width:", "){box-shadow:0 0 4px 0 rgba(0,0,0,0.25);border-radius:", "px;margin-bottom:", "px;width:100%;}", ""], colors.white, spacing.sm, spacing.sm, breakpointMinWidthValues.tabletMd, spacing.sm, spacing.sm, function (_ref) {
16
16
  var $open = _ref.$open;
17
17
  return !$open && css(["border-radius:", "px;width:100%;"], spacing.sm);
18
18
  });
19
19
  export var StyledSplitViewCardAside = /*#__PURE__*/styled.div.withConfig({
20
20
  displayName: "StyledSplitViewCardAside",
21
- componentId: "core-12_28_0__sc-9hrkda-2"
21
+ componentId: "core-12_28_1__sc-9hrkda-2"
22
22
  })(["background-color:", ";border-left:1px solid ", ";border-top-right-radius:", "px;border-bottom-right-radius:", "px;display:flex;flex-direction:column;height:100%;width:40%;min-height:", "px;min-width:400px;transition:all ease 500ms;z-index:2;position:absolute;top:0;right:0;@media screen and (max-width:", "px){min-width:unset;}@media (max-width:", "){box-shadow:0 0 4px 0 rgba(0,0,0,0.25);border:none;border-radius:", "px;position:relative;width:100%;}", " ", ""], colors.white, colors.gray85, spacing.sm, spacing.sm, MIN_CARD_HEIGHT, breakpointRawMinWidthValues.tabletSm, breakpointMinWidthValues.tabletMd, spacing.sm, function (_ref2) {
23
23
  var $open = _ref2.$open;
24
24
  return !$open && css(["border:none;border-radius:", "px;overflow:hidden !important;@media (min-width:", "){min-width:0;width:0 !important;}@media (max-width:", "){display:none;}"], spacing.sm, breakpointMinWidthValues.tabletMd, breakpointMinWidthValues.tabletMd);
@@ -28,23 +28,23 @@ export var StyledSplitViewCardAside = /*#__PURE__*/styled.div.withConfig({
28
28
  });
29
29
  export var StyledSplitViewCardHeading = /*#__PURE__*/styled(H2).withConfig({
30
30
  displayName: "StyledSplitViewCardHeading",
31
- componentId: "core-12_28_0__sc-9hrkda-3"
31
+ componentId: "core-12_28_1__sc-9hrkda-3"
32
32
  })(["overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;"]);
33
33
  export var StyledSplitViewCardTitle = /*#__PURE__*/styled.div.withConfig({
34
34
  displayName: "StyledSplitViewCardTitle",
35
- componentId: "core-12_28_0__sc-9hrkda-4"
35
+ componentId: "core-12_28_1__sc-9hrkda-4"
36
36
  })(["display:flex;align-items:center;justify-content:space-between;margin-bottom:", "px;min-height:36px;"], spacing.sm);
37
37
  export var StyledSplitViewCardHeader = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledSplitViewCardHeader",
39
- componentId: "core-12_28_0__sc-9hrkda-5"
39
+ componentId: "core-12_28_1__sc-9hrkda-5"
40
40
  })(["border-bottom:1px solid ", ";display:flex;flex-direction:column;padding:", "px ", "px 0;"], colors.gray85, spacing.lg, spacing.lg);
41
41
  export var StyledSplitViewCardBody = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledSplitViewCardBody",
43
- componentId: "core-12_28_0__sc-9hrkda-6"
43
+ componentId: "core-12_28_1__sc-9hrkda-6"
44
44
  })(["display:flex;flex-direction:column;flex:1;padding:", "px ", "px 0;overflow-y:auto;&:focus-visible{", "}"], spacing.lg, spacing.lg, getFocusInset());
45
45
  export var StyledSplitViewCardFooter = /*#__PURE__*/styled.div.withConfig({
46
46
  displayName: "StyledSplitViewCardFooter",
47
- componentId: "core-12_28_0__sc-9hrkda-7"
47
+ componentId: "core-12_28_1__sc-9hrkda-7"
48
48
  })(["display:flex;align-items:center;justify-content:flex-end;padding:", "px;", ""], spacing.lg, function (_ref4) {
49
49
  var $hasShadow = _ref4.$hasShadow;
50
50
  return $hasShadow && css(["box-shadow:0 -4px 6px 0 #0000001a;"]);
@@ -324,11 +324,7 @@ export var SelectAll = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
324
324
  });
325
325
  }, [knownSize]);
326
326
  var handleClick = function handleClick() {
327
- if (isSelected) {
328
- ctx.state.setValue([]);
329
- } else {
330
- ctx.state.onSelect(ctx.state.selectAllOption);
331
- }
327
+ ctx.state.onSelect(ctx.state.selectAllOption);
332
328
  };
333
329
  return /*#__PURE__*/React.createElement(StyledSelectAll, null, /*#__PURE__*/React.createElement(StyledItem, _extends({}, props, ctx.props.item({
334
330
  onClick: handleClick,
@@ -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","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","tabIndex","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","setValue","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 tabIndex={-1} // TODO revisit this accessibility\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) && !ctx.option.isDisabled(opt)\n })\n const isSelected = ctx.option.selectAll.isSelectAllSelected(selectableOptions)\n const isPartiallySelected =\n ctx.option.selectAll.isSelectAllPartiallySelected(selectableOptions)\n\n const isDisabled = ctx.config.loading\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 if (isSelected) {\n ctx.state.setValue([])\n } else {\n ctx.state.onSelect(ctx.state.selectAllOption)\n }\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,EACVC,eAAe,EACfC,WAAW,EACXC,gBAAgB,EAChBC,yBAAyB,EACzBC,gBAAgB,EAChBC,yBAAyB,EACzBC,sBAAsB,EACtBC,aAAa,EACbC,aAAa,EACbC,qBAAqB,EACrBC,eAAe,EACfC,aAAa,QACR,sBAAsB;AAK7B,SAASC,qBAAqB,QAAQ,kBAAkB;AAExD,OAAO,IAAMC,OAAO,gBAAGtC,KAAK,CAACuC,UAAU,CAAsB,UAACC,KAAK,EAAEC,GAAG,EAAK;EAC3E,oBAAOzC,KAAA,CAAA0C,aAAA,CAACT,aAAa,EAAAU,QAAA;IAACF,GAAG,EAAEA;EAAI,GAAKD,KAAK,CAAG,CAAC;AAC/C,CAAC,CAAC;AAEF,OAAO,IAAMI,aAAa,GAAG,SAAhBA,a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KAAK,EAAElG,MAAM,CAAC2N;EAAO,CAAE,CACnB,CAAC;AAEjB,CAAC;AAED,OAAO,IAAM5C,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAI9I,KAAmC,EAAK;EACxE,oBAAOxC,KAAA,CAAA0C,aAAA,CAAC5B,uBAAuB,EAAK0B,KAAQ,CAAC;AAC/C,CAAC;AAED,OAAO,IAAM+I,QAAQ,GAAG,SAAXA,QAAQA,CACnB/I,KAAmE,EAChE;EACH,oBAAOxC,KAAA,CAAA0C,aAAA,CAACzC,YAAY,EAAKuC,KAAQ,CAAC;AACpC,CAAC;AAED,OAAO,IAAMkJ,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIlJ,KAAmC,EAAK;EACzE,oBAAOxC,KAAA,CAAA0C,aAAA,CAAC3B,wBAAwB,EAAKyB,KAAQ,CAAC;AAChD,CAAC;AAED,OAAO,IAAMmJ,SAAS,GAAG,SAAZA,SAASA,CAAInJ,KAAmC,EAAK;EAChE,oBAAOxC,KAAA,CAAA0C,aAAA,CAAC9C,KAAK,EAAA+C,QAAA,KAAKH,KAAK;IAAEkE,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","tabIndex","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 tabIndex={-1} // TODO revisit this accessibility\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) && !ctx.option.isDisabled(opt)\n })\n const isSelected = ctx.option.selectAll.isSelectAllSelected(selectableOptions)\n const isPartiallySelected =\n ctx.option.selectAll.isSelectAllPartiallySelected(selectableOptions)\n\n const isDisabled = ctx.config.loading\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 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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ilterPresetPopoverContent = /*#__PURE__*/styled(Popover.Content).withConfig({
5
5
  displayName: "StyledFilterPresetPopoverContent",
6
- componentId: "core-12_28_0__sc-y5qv7b-0"
6
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-0"
25
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-1"
29
+ componentId: "core-12_28_1__sc-1uf5708-1"
30
30
  })(["", ""], getEllipsis);
31
31
  export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
32
32
  displayName: "PillSelectLabelWrapper",
33
- componentId: "core-12_28_0__sc-1uf5708-2"
33
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-3"
40
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-4"
44
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-5"
50
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-6"
54
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-7"
58
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-8"
66
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-9"
70
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-10"
74
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-11"
81
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-12"
85
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-13"
89
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-14"
93
+ componentId: "core-12_28_1__sc-1uf5708-14"
94
94
  })([""]);
95
95
  export var StyledEmptyMessage = /*#__PURE__*/styled.div.withConfig({
96
96
  displayName: "StyledEmptyMessage",
97
- componentId: "core-12_28_0__sc-1uf5708-15"
97
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-16"
101
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-17"
105
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-18"
112
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-19"
150
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-20"
154
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-21"
158
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-22"
162
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-23"
169
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-24"
173
+ componentId: "core-12_28_1__sc-1uf5708-24"
174
174
  })([""]);
175
175
  export var StyledSpinner = /*#__PURE__*/styled.div.withConfig({
176
176
  displayName: "StyledSpinner",
177
- componentId: "core-12_28_0__sc-1uf5708-25"
177
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-26"
181
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-27"
185
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-28"
189
+ componentId: "core-12_28_1__sc-1uf5708-28"
190
190
  })([""]);
191
191
  export var StyledArrowFill = /*#__PURE__*/styled.polygon.withConfig({
192
192
  displayName: "StyledArrowFill",
193
- componentId: "core-12_28_0__sc-1uf5708-29"
193
+ componentId: "core-12_28_1__sc-1uf5708-29"
194
194
  })([""]);
195
195
  export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
196
196
  displayName: "StyledTrigger",
197
- componentId: "core-12_28_0__sc-1uf5708-30"
197
+ componentId: "core-12_28_1__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,&[data-qa=", "]{", " ", "{stroke:", ";}}", " ", " ", " ", " ", " ", " ", "}"], getTypographyIntent('body'), colors.white, colors.gray70, 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_28_0__sc-1uf5708-31"
232
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-32"
236
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-33"
240
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-34"
244
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-35"
248
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-36"
252
+ componentId: "core-12_28_1__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_28_0__sc-1uf5708-37"
256
+ componentId: "core-12_28_1__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;"]);
@@ -132,7 +132,6 @@ export interface SuperSelectApi {
132
132
  selectedOption: SuperSelectOption | null;
133
133
  setOpen: (open: boolean) => void;
134
134
  setPointer: any;
135
- setValue: (value: SuperSelectValue) => void;
136
135
  setActiveMenuIndex: (index: number | null) => void;
137
136
  setSearchValue: ((value: string) => void) & {
138
137
  cancel: () => void;
@@ -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 /**\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 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 setValue: (value: SuperSelectValue) => void\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
+ {"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 /**\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 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":""}
@@ -439,11 +439,24 @@ export function useSuperSelect(_ref3) {
439
439
  var selectableOptions = options.filter(function (opt) {
440
440
  return isSelectableOption(opt);
441
441
  });
442
+
443
+ // Check if all options are already selected to determine if this is a deselect operation
444
+ var allOptionsSelected = selectableOptions.every(function (opt) {
445
+ var getIsSelected = getOptionIsSelected !== null && getOptionIsSelected !== void 0 ? getOptionIsSelected : defaultGetOptionIsSelected;
446
+ return getIsSelected(opt);
447
+ });
442
448
  if (onSelectAll) {
443
449
  onSelectAll(selectableOptions);
444
450
  }
445
- var optionValues = selectableOptions.flatMap(getOptionValue);
446
- setValue(uniq([].concat(_toConsumableArray(value), _toConsumableArray(optionValues))));
451
+
452
+ // Only add options if not all are selected (i.e., this is a select operation)
453
+ // If all options are selected, this is a deselect operation and we should clear
454
+ if (allOptionsSelected) {
455
+ setValue([]);
456
+ } else {
457
+ var optionValues = selectableOptions.flatMap(getOptionValue);
458
+ setValue(uniq([].concat(_toConsumableArray(value), _toConsumableArray(optionValues))));
459
+ }
447
460
  } else if (Array.isArray(optionValue)) {
448
461
  setValue(uniq([].concat(_toConsumableArray(value), _toConsumableArray(optionValue))));
449
462
  } else {
@@ -901,7 +914,6 @@ export function useSuperSelect(_ref3) {
901
914
  selectedOption: selectedOption,
902
915
  setOpen: setOpen,
903
916
  setPointer: setPointer,
904
- setValue: setValue,
905
917
  setSearchValue: setSearchValue,
906
918
  setActiveMenuIndex: setActiveMenuIndex,
907
919
  sourceOptions: sourceOptions,