@procore/core-react 11.23.2 → 11.23.3

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 (206) hide show
  1. package/README.md +7 -7
  2. package/dist/Avatar/Avatar.styles.js +5 -5
  3. package/dist/AvatarStack/AvatarStack.styles.js +7 -7
  4. package/dist/Badge/Badge.styles.js +2 -2
  5. package/dist/Banner/Banner.styles.js +10 -10
  6. package/dist/Box/Box.styles.js +1 -1
  7. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  8. package/dist/Button/Button.styles.js +5 -5
  9. package/dist/Calendar/Calendar.styles.js +8 -8
  10. package/dist/Card/Card.styles.js +1 -1
  11. package/dist/Checkbox/Checkbox.styles.js +5 -5
  12. package/dist/ContactItem/ContactItem.styles.js +5 -5
  13. package/dist/Content/Content.styles.js +2 -2
  14. package/dist/DateInput/DateInput.styles.js +6 -6
  15. package/dist/DetailPage/DetailPage.styles.js +7 -7
  16. package/dist/Dropdown/Dropdown.styles.js +3 -3
  17. package/dist/DropdownFlyout/DropdownFlyout.js +1 -1
  18. package/dist/DropdownFlyout/DropdownFlyout.js.map +1 -1
  19. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  20. package/dist/Dropzone/Dropzone.js +1 -1
  21. package/dist/Dropzone/Dropzone.styles.js +9 -9
  22. package/dist/EmptyState/EmptyState.styles.js +6 -6
  23. package/dist/Field/Field.styles.js +3 -3
  24. package/dist/FileList/FileList.styles.js +4 -4
  25. package/dist/FileSelect/FileExplorer/FileExplorer.js.map +1 -1
  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.js +1 -1
  29. package/dist/FileSelect/FileSelect.js.map +1 -1
  30. package/dist/FileSelect/FileSelect.styles.js +2 -2
  31. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  32. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  33. package/dist/FileSelect/GridSource/GridSource.js +1 -1
  34. package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
  35. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  36. package/dist/FileSelect/LocalSource/LocalSource.js +1 -1
  37. package/dist/FileSelect/LocalSource/LocalSource.js.map +1 -1
  38. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  39. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  40. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  41. package/dist/FileSelect/TreeSource/TreeSource.js +1 -1
  42. package/dist/FileSelect/TreeSource/TreeSource.js.map +1 -1
  43. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  44. package/dist/FileSelect/storyHelpers.js +1 -1
  45. package/dist/FileSelect/storyHelpers.js.map +1 -1
  46. package/dist/FileToken/FileToken.styles.js +4 -4
  47. package/dist/FilterToken/FilterToken.styles.js +2 -2
  48. package/dist/FlexList/FlexList.styles.js +1 -1
  49. package/dist/Form/Form.styles.js +15 -15
  50. package/dist/Grid/Grid.styles.js +2 -2
  51. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  52. package/dist/Input/Input.styles.js +1 -1
  53. package/dist/Link/Link.styles.js +1 -1
  54. package/dist/ListPage/ListPage.styles.js +8 -8
  55. package/dist/Loader/Loader.styles.js +2 -2
  56. package/dist/Menu/Menu.d.ts +2 -2
  57. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  58. package/dist/Modal/Modal.styles.js +13 -13
  59. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  60. package/dist/NextMenu/NextMenu.styles.js +3 -3
  61. package/dist/Notation/Notation.js +1 -1
  62. package/dist/NumberInput/NumberInput.styles.js +7 -7
  63. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  64. package/dist/Overlay/useOverlay.js +3 -2
  65. package/dist/Overlay/useOverlay.js.map +1 -1
  66. package/dist/OverlayTrigger/OverlayTrigger.js +0 -14
  67. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  68. package/dist/OverlayTrigger/a11yPresets.d.ts +14 -14
  69. package/dist/PageLayout/PageLayout.js +1 -1
  70. package/dist/PageLayout/PageLayout.js.map +1 -1
  71. package/dist/PageLayout/PageLayout.styles.js +13 -13
  72. package/dist/Pagination/Pagination.styles.js +5 -5
  73. package/dist/Panel/Panel.styles.js +11 -11
  74. package/dist/Pill/Pill.styles.js +2 -2
  75. package/dist/PillSelect/PillSelect.styles.js +4 -4
  76. package/dist/Popover/Popover.styles.js +2 -2
  77. package/dist/Portal/Portal.styles.js +1 -1
  78. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  79. package/dist/RadioButton/RadioButton.styles.js +3 -3
  80. package/dist/Required/Required.styles.js +3 -3
  81. package/dist/Search/Search.styles.js +5 -5
  82. package/dist/Section/Section.styles.js +6 -6
  83. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  84. package/dist/Select/Select.styles.js +7 -7
  85. package/dist/Semantic/Semantic.styles.js +8 -8
  86. package/dist/Sidebar/Sidebar.styles.js +7 -7
  87. package/dist/Slider/Slider.styles.js +5 -5
  88. package/dist/Spinner/Spinner.styles.js +7 -7
  89. package/dist/SuperSelect/SuperSelect.components.js +1 -0
  90. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  91. package/dist/SuperSelect/SuperSelect.d.ts +25 -21
  92. package/dist/SuperSelect/SuperSelect.js +8 -6
  93. package/dist/SuperSelect/SuperSelect.js.map +1 -1
  94. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  95. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  96. package/dist/SuperSelect/useSuperSelect.d.ts +75 -61
  97. package/dist/Switch/Switch.styles.js +5 -5
  98. package/dist/Switch/Switch.styles.js.map +1 -1
  99. package/dist/Table/Table.styles.js +28 -28
  100. package/dist/TableShelf/TableShelf.styles.js +5 -5
  101. package/dist/Tabs/Tabs.styles.js +8 -8
  102. package/dist/Tearsheet/Tearsheet.js +1 -1
  103. package/dist/Tearsheet/Tearsheet.js.map +1 -1
  104. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  105. package/dist/TextArea/TextArea.styles.js +1 -1
  106. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  107. package/dist/Thumbnail/Thumbnail.hooks.d.ts +70 -76
  108. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  109. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  110. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  111. package/dist/Tile/Tile.styles.js +8 -8
  112. package/dist/Title/Title.styles.js +7 -7
  113. package/dist/Toast/Toast.styles.js +3 -3
  114. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  115. package/dist/Token/Token.styles.js +3 -3
  116. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  117. package/dist/Tooltip/Tooltip.styles.js +2 -2
  118. package/dist/Tree/Tree.hooks.js +1 -1
  119. package/dist/Tree/Tree.hooks.js.map +1 -1
  120. package/dist/Tree/Tree.styles.js +9 -9
  121. package/dist/Typeahead/Typeahead.styles.js +3 -3
  122. package/dist/Typography/Typography.styles.js +1 -1
  123. package/dist/Typography/Typography.table.story.js +2 -2
  124. package/dist/_hooks/useFileUploader.js +1 -1
  125. package/dist/_hooks/useFileUploader.js.map +1 -1
  126. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  127. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
  128. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  129. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  130. package/dist/_typedoc/Box/Box.types.json +68 -68
  131. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  132. package/dist/_typedoc/Button/Button.types.json +11 -11
  133. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  134. package/dist/_typedoc/Card/Card.types.json +6 -6
  135. package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
  136. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  137. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  138. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  139. package/dist/_typedoc/DetailPage/DetailPage.types.json +4 -4
  140. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  141. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
  142. package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
  143. package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
  144. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  145. package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
  146. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  147. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  148. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  149. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  150. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  151. package/dist/_typedoc/Form/Form.types.json +700 -700
  152. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  153. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  154. package/dist/_typedoc/Input/Input.types.json +2 -2
  155. package/dist/_typedoc/Link/Link.types.json +4 -4
  156. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  157. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  158. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  159. package/dist/_typedoc/Modal/Modal.types.json +41 -41
  160. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  161. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  162. package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
  163. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +30 -30
  164. package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
  165. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  166. package/dist/_typedoc/Panel/Panel.types.json +27 -27
  167. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  168. package/dist/_typedoc/PillSelect/PillSelect.types.json +46 -46
  169. package/dist/_typedoc/Popover/Popover.types.json +14 -14
  170. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
  171. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  172. package/dist/_typedoc/Required/Required.types.json +5 -5
  173. package/dist/_typedoc/Search/Search.types.json +18 -18
  174. package/dist/_typedoc/Section/Section.types.json +14 -14
  175. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
  176. package/dist/_typedoc/Select/Select.types.json +55 -55
  177. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  178. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  179. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  180. package/dist/_typedoc/Table/Table.types.json +96 -96
  181. package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
  182. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
  183. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  184. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  185. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  186. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  187. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  188. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  189. package/dist/_typedoc/Tile/Tile.types.json +30 -30
  190. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  191. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
  192. package/dist/_typedoc/Token/Token.types.json +4 -4
  193. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  194. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  195. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  196. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  197. package/dist/_typedoc/Typography/Typography.types.json +8 -8
  198. package/dist/_typedoc/_utils/types.json +3 -3
  199. package/dist/_utils/polymorphic.js +0 -3
  200. package/dist/_utils/polymorphic.js.map +1 -1
  201. package/dist/_utils/runInQueue.js +1 -1
  202. package/dist/_utils/runInQueue.js.map +1 -1
  203. package/package.json +34 -37
  204. package/dist/SuperSelect/useVirtuosoResizeErrorFix.d.ts +0 -1
  205. package/dist/SuperSelect/useVirtuosoResizeErrorFix.js +0 -18
  206. package/dist/SuperSelect/useVirtuosoResizeErrorFix.js.map +0 -1
@@ -1,4 +1,3 @@
1
- /// <reference types="lodash" />
2
1
  import React from 'react';
3
2
  import { SuperSelectConfig } from './SuperSelect.types';
4
3
  export declare const InternalDragDropContext: React.Context<{
@@ -141,27 +140,35 @@ export declare const SuperSelect: React.ForwardRefExoticComponent<SuperSelectCon
141
140
  };
142
141
  refs: {
143
142
  floating: {
144
- placement: import("@floating-ui/react").Placement;
145
- strategy: import("@floating-ui/react").Strategy;
146
- middlewareData: import("@floating-ui/react").MiddlewareData;
147
- x: number | null;
148
- y: number | null;
143
+ placement: import("@floating-ui/utils").Placement;
144
+ strategy: import("@floating-ui/utils").Strategy;
145
+ middlewareData: import("@floating-ui/core").MiddlewareData;
146
+ x: number;
147
+ y: number;
148
+ isPositioned: boolean;
149
149
  update: () => void;
150
- reference: (node: HTMLElement | null) => void;
151
- floating: (node: HTMLElement | null) => void;
152
- positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
150
+ floatingStyles: React.CSSProperties;
151
+ refs: {
152
+ reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
153
+ floating: React.MutableRefObject<HTMLElement | null>;
154
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
155
+ setFloating: (node: HTMLElement | null) => void;
156
+ } & import("@floating-ui/react").ExtendedRefs<HTMLElement>;
157
+ elements: {
158
+ reference: import("@floating-ui/react-dom").ReferenceType | null;
159
+ floating: HTMLElement | null;
160
+ } & import("@floating-ui/react").ExtendedElements<HTMLElement>;
153
161
  context: {
154
- x: number | null;
155
- y: number | null;
156
- placement: import("@floating-ui/react").Placement;
157
- strategy: import("@floating-ui/react").Strategy;
158
- middlewareData: import("@floating-ui/react").MiddlewareData;
159
- reference: (node: HTMLElement | null) => void;
160
- floating: (node: HTMLElement | null) => void;
161
- update: () => void;
162
+ x: number;
163
+ y: number;
164
+ placement: import("@floating-ui/utils").Placement;
165
+ strategy: import("@floating-ui/utils").Strategy;
166
+ middlewareData: import("@floating-ui/core").MiddlewareData;
162
167
  isPositioned: boolean;
168
+ update: () => void;
169
+ floatingStyles: React.CSSProperties;
163
170
  open: boolean;
164
- onOpenChange: (open: boolean) => void;
171
+ onOpenChange: (open: boolean, event?: Event | undefined) => void;
165
172
  events: import("@floating-ui/react").FloatingEvents;
166
173
  dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
167
174
  nodeId: string | undefined;
@@ -169,9 +176,6 @@ export declare const SuperSelect: React.ForwardRefExoticComponent<SuperSelectCon
169
176
  refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
170
177
  elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
171
178
  };
172
- refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
173
- elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
174
- isPositioned: boolean;
175
179
  };
176
180
  navigationList: React.MutableRefObject<(HTMLElement | null)[]>;
177
181
  virtuoso: React.RefObject<import("react-virtuoso").VirtuosoHandle>;
@@ -6,13 +6,13 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
8
  import { FloatingFocusManager, FloatingPortal } from '@floating-ui/react';
9
+ import { FocusScope } from '@react-aria/focus';
9
10
  import React from 'react';
10
11
  import { DragDropContext, Droppable } from 'react-beautiful-dnd';
11
12
  import { Virtuoso } from 'react-virtuoso';
12
13
  import { presets } from './presets';
13
14
  import { DraggableOptionContent, OptionContent } from './SuperSelect.components';
14
15
  import { SuperSelectContext, useSuperSelect } from './useSuperSelect';
15
- import { useVirtuosoResizeErrorFix } from './useVirtuosoResizeErrorFix';
16
16
  export var InternalDragDropContext = /*#__PURE__*/React.createContext({
17
17
  isDraggingOver: false
18
18
  });
@@ -29,7 +29,6 @@ var InternalDragDropProvider = function InternalDragDropProvider(_ref) {
29
29
  }, children);
30
30
  };
31
31
  function SelectComponent(props, ref) {
32
- useVirtuosoResizeErrorFix();
33
32
  var search = props.search === undefined || props.search === true;
34
33
  var preset = props.preset || '';
35
34
  var config = _objectSpread(_objectSpread(_objectSpread({}, presets[preset]), props), {}, {
@@ -47,13 +46,16 @@ function SelectComponent(props, ref) {
47
46
  return /*#__PURE__*/React.createElement(SuperSelectContext.Provider, {
48
47
  value: ctx
49
48
  }, /*#__PURE__*/React.createElement(ctx.components.Trigger, _extends({
50
- ref: ctx.refs.floating.reference
51
- }, ctx.props.trigger())), /*#__PURE__*/React.createElement(FloatingPortal, null, ctx.state.open && /*#__PURE__*/React.createElement(FloatingFocusManager, {
49
+ ref: ctx.refs.floating.refs.setReference
50
+ }, ctx.props.trigger())), /*#__PURE__*/React.createElement(FloatingPortal, null, ctx.state.open &&
51
+ /*#__PURE__*/
52
+ // FocusScope is needed to allow move focus from Modal and Tearsheet
53
+ React.createElement(FocusScope, null, /*#__PURE__*/React.createElement(FloatingFocusManager, {
52
54
  context: ctx.refs.floating.context,
53
55
  order: config.search ? ['content', 'reference'] : ['reference', 'content'],
54
56
  initialFocus: config.multiple ? undefined : 0
55
57
  }, /*#__PURE__*/React.createElement(ctx.components.Overlay, _extends({
56
- ref: ctx.refs.floating.floating
58
+ ref: ctx.refs.floating.refs.setFloating
57
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), ctx.state.options.length > 0 ? /*#__PURE__*/React.createElement(ctx.components.Options, null, config.draggable ? /*#__PURE__*/React.createElement(DragDropContext, {
58
60
  onDragEnd: ctx.state.onDragEnd
59
61
  }, /*#__PURE__*/React.createElement(Droppable, {
@@ -89,7 +91,7 @@ function SelectComponent(props, ref) {
89
91
  option: option
90
92
  });
91
93
  }
92
- }))) : /*#__PURE__*/React.createElement(ctx.components.EmptyMessage, ctx.props.emptyMessage()), config.footer && /*#__PURE__*/React.createElement(ctx.components.Footer, ctx.props.footer())))));
94
+ }))) : /*#__PURE__*/React.createElement(ctx.components.EmptyMessage, ctx.props.emptyMessage()), config.footer && /*#__PURE__*/React.createElement(ctx.components.Footer, ctx.props.footer()))))));
93
95
  }
94
96
  export var SuperSelect = /*#__PURE__*/React.forwardRef(SelectComponent);
95
97
  //# sourceMappingURL=SuperSelect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.js","names":["FloatingFocusManager","FloatingPortal","React","DragDropContext","Droppable","Virtuoso","presets","DraggableOptionContent","OptionContent","SuperSelectContext","useSuperSelect","useVirtuosoResizeErrorFix","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","reference","trigger","state","open","context","order","initialFocus","multiple","Overlay","overlay","SearchContainer","searchContainer","Search","header","Header","options","length","Options","draggable","onDragEnd","droppableId","mode","renderClone","provided","snapshot","dragged","option","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 { FloatingFocusManager, FloatingPortal } from '@floating-ui/react'\nimport React from 'react'\nimport { DragDropContext, Droppable } from 'react-beautiful-dnd'\nimport { Virtuoso } from 'react-virtuoso'\nimport { presets } from './presets'\nimport { DraggableOptionContent, OptionContent } from './SuperSelect.components'\nimport {\n SuperSelectApi,\n SuperSelectConfig,\n SuperSelectProps,\n} from './SuperSelect.types'\nimport { SuperSelectContext, useSuperSelect } from './useSuperSelect'\nimport { useVirtuosoResizeErrorFix } from './useVirtuosoResizeErrorFix'\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 useVirtuosoResizeErrorFix()\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.reference}\n {...ctx.props.trigger()}\n />\n <FloatingPortal>\n {ctx.state.open && (\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.floating}\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 {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={(provided, snapshot, dragged) => {\n const option = 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 {(provided, snapshot) => {\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 )}\n </ctx.components.Overlay>\n </FloatingFocusManager>\n )}\n </FloatingPortal>\n </SuperSelectContext.Provider>\n )\n}\n\nexport const SuperS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D,MAAM,iBACZlF,KAAA,CAAAkB,aAAA,CAACU,GAAG,CAACM,UAAU,CAACiD,MAAM,EAAKvD,GAAG,CAACP,KAAK,CAAC6D,MAAM,CAAC,CAAI,CAE5B,CACJ,CAEV,CACW,CAAC;AAElC;AAEA,OAAO,IAAME,WAAW,gBAAGpF,KAAK,CAACqF,UAAU,CAACjE,eAAe,CAAC"}
1
+ {"version":3,"file":"SuperSelect.js","names":["FloatingFocusManager","FloatingPortal","FocusScope","React","DragDropContext","Droppable","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","options","length","Options","draggable","onDragEnd","droppableId","mode","renderClone","provided","snapshot","dragged","option","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 { FloatingFocusManager, FloatingPortal } from '@floating-ui/react'\nimport { FocusScope } from '@react-aria/focus'\nimport React from 'react'\nimport { DragDropContext, Droppable } from 'react-beautiful-dnd'\nimport { Virtuoso } from 'react-virtuoso'\nimport { presets } from './presets'\nimport { DraggableOptionContent, OptionContent } from './SuperSelect.components'\nimport {\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 {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={(provided, snapshot, dragged) => {\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 {(provided, snapshot) => {\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 )}\n </ctx.components.Overlay>\n </FloatingFocusManager>\n </FocusScope>\n )}\n </FloatingPortal>\n </SuperSelectContext.Provider>\n )\n}\n\nexport const SuperSelect = React.forwardRef(SelectComponent)\n"],"mappings":";;;;;;;AAAA,SAASA,oBAAoB,EAAEC,cAAc,QAAQ,oBAAoB;AACzE,SAASC,UAAU,QAAQ,mBAAmB;AAC9C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,EAAEC,SAAS,QAAQ,qBAAqB;AAChE,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,gBAAGT,KAAK,CAACU,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;E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AI;QAAA,oBACnB/E,KAAA,CAAAiB,aAAA,CAACZ,sBAAsB;UACrB8D,KAAK,EAAEW,CAAE;UACTb,MAAM,EAAEc;QAAK,CACd,CAAC;MAAA;IACF,EACH,CACuB,CAAC;EAE/B,CACS,CACI,CAAC,gBAElB/E,KAAA,CAAAiB,aAAA,CAACd,QAAQ,EAAAgC,QAAA,KACHR,GAAG,CAACP,KAAK,CAACqD,QAAQ,CAAC,CAAC;IACxBpD,GAAG,EAAEM,GAAG,CAACS,IAAI,CAACqC,QAAS;IACvBI,WAAW,EAAE,SAAAA,YAACC,CAAC,EAAEb,MAAM;MAAA,oBACrBjE,KAAA,CAAAiB,aAAA,CAACX,aAAa;QAAC2D,MAAM,EAAEA;MAAO,CAAE,CAAC;IAAA;EACjC,EACH,CAEmB,CAAC,gBAEzBjE,KAAA,CAAAiB,aAAA,CAACU,GAAG,CAACM,UAAU,CAAC+C,YAAY,EAAKrD,GAAG,CAACP,KAAK,CAAC6D,YAAY,CAAC,CAAI,CAC7D,EACAxD,MAAM,CAACyD,MAAM,iBACZlF,KAAA,CAAAiB,aAAA,CAACU,GAAG,CAACM,UAAU,CAACkD,MAAM,EAAKxD,GAAG,CAACP,KAAK,CAAC8D,MAAM,CAAC,CAAI,CAE5B,CACJ,CACZ,CAEA,CACW,CAAC;AAElC;AAEA,OAAO,IAAME,WAAW,gBAAGpF,KAAK,CAACqF,UAAU,CAAClE,eAAe,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-11_23_2__sc-y5qv7b-0"
6
+ componentId: "core-11_23_3__sc-y5qv7b-0"
7
7
  })(["padding:", "px ", "px;"], spacing.sm, spacing.lg);
8
8
  //# sourceMappingURL=SuperSelect.presets.styles.js.map
@@ -21,40 +21,40 @@ var checkedIconPlaceholderWidth = 32;
21
21
  var styledSelectButtonDefaultWidth = 248;
22
22
  export var PillSelectOptionWrapper = /*#__PURE__*/styled.div.withConfig({
23
23
  displayName: "PillSelectOptionWrapper",
24
- componentId: "core-11_23_2__sc-1uf5708-0"
24
+ componentId: "core-11_23_3__sc-1uf5708-0"
25
25
  })(["display:flex;align-items:center;justify-content:space-between;padding:", "px ", "px;"], spacing.xs, spacing.lg);
26
26
  export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
27
27
  displayName: "PillSelectLabel",
28
- componentId: "core-11_23_2__sc-1uf5708-1"
28
+ componentId: "core-11_23_3__sc-1uf5708-1"
29
29
  })(["", ""], getEllipsis);
30
30
  export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
31
31
  displayName: "PillSelectLabelWrapper",
32
- componentId: "core-11_23_2__sc-1uf5708-2"
32
+ componentId: "core-11_23_3__sc-1uf5708-2"
33
33
  })(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
34
34
  var disabled = _ref.disabled;
35
35
  return disabled && css(["pointer-events:none;"]);
36
36
  });
37
37
  export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
38
38
  displayName: "StyledCheckboxContainer",
39
- componentId: "core-11_23_2__sc-1uf5708-3"
39
+ componentId: "core-11_23_3__sc-1uf5708-3"
40
40
  })(["padding-left:", "px;"], spacing.lg);
41
41
  export var StyledCheckmarkContainer = /*#__PURE__*/styled.div.withConfig({
42
42
  displayName: "StyledCheckmarkContainer",
43
- componentId: "core-11_23_2__sc-1uf5708-4"
43
+ componentId: "core-11_23_3__sc-1uf5708-4"
44
44
  })(["align-items:center;color:", ";display:inline-flex;flex-shrink:0;padding:0 ", "px 0 ", "px;"], colors.blue50, spacing.lg, spacing.sm);
45
45
 
46
46
  // Do not merge with StyledMenu, needed for max-height working in IE
47
47
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
48
48
  displayName: "StyledWrapper",
49
- componentId: "core-11_23_2__sc-1uf5708-5"
49
+ componentId: "core-11_23_3__sc-1uf5708-5"
50
50
  })(["display:flex;max-height:inherit;min-width:inherit;outline:none;width:inherit;"]);
51
51
  export var StyledMenu = /*#__PURE__*/styled.div.withConfig({
52
52
  displayName: "StyledMenu",
53
- componentId: "core-11_23_2__sc-1uf5708-6"
53
+ componentId: "core-11_23_3__sc-1uf5708-6"
54
54
  })(["display:flex;flex-direction:column;outline:0;width:100%;"]);
55
55
  export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
56
56
  displayName: "StyledOptions",
57
- componentId: "core-11_23_2__sc-1uf5708-7"
57
+ componentId: "core-11_23_3__sc-1uf5708-7"
58
58
  })(["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) {
59
59
  var _ref2$$scrollable = _ref2.$scrollable,
60
60
  $scrollable = _ref2$$scrollable === void 0 ? true : _ref2$$scrollable;
@@ -62,53 +62,53 @@ export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
62
62
  }, spacing.sm, getFocus());
63
63
  export var StyledItemContent = /*#__PURE__*/styled.div.withConfig({
64
64
  displayName: "StyledItemContent",
65
- componentId: "core-11_23_2__sc-1uf5708-8"
65
+ componentId: "core-11_23_3__sc-1uf5708-8"
66
66
  })(["display:flex;flex-direction:row;align-items:center;"]);
67
67
  export var StyledOptionGroupLabel = /*#__PURE__*/styled.div.withConfig({
68
68
  displayName: "StyledOptionGroupLabel",
69
- componentId: "core-11_23_2__sc-1uf5708-9"
69
+ componentId: "core-11_23_3__sc-1uf5708-9"
70
70
  })(["padding:", "px 0 ", "px ", "px;"], spacing.md, spacing.xs, spacing.lg);
71
71
  export var StyledItemLabel = /*#__PURE__*/styled.div.withConfig({
72
72
  displayName: "StyledItemLabel",
73
- componentId: "core-11_23_2__sc-1uf5708-10"
73
+ componentId: "core-11_23_3__sc-1uf5708-10"
74
74
  })(["", ""], function (_ref3) {
75
75
  var $draggable = _ref3.$draggable;
76
76
  return css(["padding:", "px ", "px;"], spacing.xs, $draggable ? 0 : spacing.lg);
77
77
  });
78
78
  export var StyledDraggableWrapper = /*#__PURE__*/styled.div.withConfig({
79
79
  displayName: "StyledDraggableWrapper",
80
- componentId: "core-11_23_2__sc-1uf5708-11"
80
+ componentId: "core-11_23_3__sc-1uf5708-11"
81
81
  })(["display:flex;width:100%;align-items:center;"]);
82
82
  export var StyledGrip = /*#__PURE__*/styled.div.withConfig({
83
83
  displayName: "StyledGrip",
84
- componentId: "core-11_23_2__sc-1uf5708-12"
84
+ componentId: "core-11_23_3__sc-1uf5708-12"
85
85
  })(["padding:0 2px;height:24px;visibility:hidden;"]);
86
86
  export var StyledFooter = /*#__PURE__*/styled(Box).withConfig({
87
87
  displayName: "StyledFooter",
88
- componentId: "core-11_23_2__sc-1uf5708-13"
88
+ componentId: "core-11_23_3__sc-1uf5708-13"
89
89
  })(["border-top:1px solid ", ";"], colors.gray85);
90
90
  export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
91
91
  displayName: "StyledHeader",
92
- componentId: "core-11_23_2__sc-1uf5708-14"
92
+ componentId: "core-11_23_3__sc-1uf5708-14"
93
93
  })([""]);
94
94
  export var StyledEmptyMessage = /*#__PURE__*/styled.div.withConfig({
95
95
  displayName: "StyledEmptyMessage",
96
- componentId: "core-11_23_2__sc-1uf5708-15"
96
+ componentId: "core-11_23_3__sc-1uf5708-15"
97
97
  })(["", ";padding:", "px ", "px;color:", ";"], getTypographyIntent('body'), spacing.md, spacing.lg, colors.gray45);
98
98
  export var StyledSearchContainer = /*#__PURE__*/styled.div.withConfig({
99
99
  displayName: "StyledSearchContainer",
100
- componentId: "core-11_23_2__sc-1uf5708-16"
100
+ componentId: "core-11_23_3__sc-1uf5708-16"
101
101
  })(["padding:", "px ", "px ", "px;", " > *{pointer-events:none;}"], spacing.lg, spacing.lg, spacing.sm, StyledButton);
102
102
  export var StyledGroup = /*#__PURE__*/styled.div.withConfig({
103
103
  displayName: "StyledGroup",
104
- componentId: "core-11_23_2__sc-1uf5708-17"
104
+ componentId: "core-11_23_3__sc-1uf5708-17"
105
105
  })(["", " 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) {
106
106
  var $clickable = _ref4.$clickable;
107
107
  return $clickable ? 'pointer' : 'default';
108
108
  }, typographyWeights.semibold, spacing.xs, spacing.lg, spacing.md + spacing.xs, StyledOptionGroupLabel, spacing.xs, spacing.lg, StyledOptionGroupLabel, spacing.md + spacing.xs);
109
109
  export var StyledItem = /*#__PURE__*/styled.div.withConfig({
110
110
  displayName: "StyledItem",
111
- componentId: "core-11_23_2__sc-1uf5708-18"
111
+ componentId: "core-11_23_3__sc-1uf5708-18"
112
112
  })(["", ";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) {
113
113
  var $emptyMinHeight = _ref5.$emptyMinHeight;
114
114
  return css(["&:empty{min-height:", "px;}"], $emptyMinHeight);
@@ -146,50 +146,50 @@ export var StyledItem = /*#__PURE__*/styled.div.withConfig({
146
146
  });
147
147
  export var StyledDroppable = /*#__PURE__*/styled.div.withConfig({
148
148
  displayName: "StyledDroppable",
149
- componentId: "core-11_23_2__sc-1uf5708-19"
149
+ componentId: "core-11_23_3__sc-1uf5708-19"
150
150
  })(["", ",", "{padding-left:28px;}"], StyledGroup, StyledItem);
151
151
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
152
152
  displayName: "StyledSelectMenu",
153
- componentId: "core-11_23_2__sc-1uf5708-20"
153
+ componentId: "core-11_23_3__sc-1uf5708-20"
154
154
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
155
155
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
156
156
  displayName: "StyledLabel",
157
- componentId: "core-11_23_2__sc-1uf5708-21"
157
+ componentId: "core-11_23_3__sc-1uf5708-21"
158
158
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref12) {
159
159
  var $hoverable = _ref12.$hoverable;
160
160
  return $hoverable ? 'initial' : 'none';
161
161
  });
162
162
  export var StyledIndicators = /*#__PURE__*/styled.div.withConfig({
163
163
  displayName: "StyledIndicators",
164
- componentId: "core-11_23_2__sc-1uf5708-22"
164
+ componentId: "core-11_23_3__sc-1uf5708-22"
165
165
  })(["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);
166
166
  export var StyledClearIcon = /*#__PURE__*/styled(Button).withConfig({
167
167
  displayName: "StyledClearIcon",
168
- componentId: "core-11_23_2__sc-1uf5708-23"
168
+ componentId: "core-11_23_3__sc-1uf5708-23"
169
169
  })([""]);
170
170
  export var StyledSpinner = /*#__PURE__*/styled.div.withConfig({
171
171
  displayName: "StyledSpinner",
172
- componentId: "core-11_23_2__sc-1uf5708-24"
172
+ componentId: "core-11_23_3__sc-1uf5708-24"
173
173
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
174
174
  export var StyledArrowContainer = /*#__PURE__*/styled.div.withConfig({
175
175
  displayName: "StyledArrowContainer",
176
- componentId: "core-11_23_2__sc-1uf5708-25"
176
+ componentId: "core-11_23_3__sc-1uf5708-25"
177
177
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
178
178
  export var StyledArrow = /*#__PURE__*/styled.span.withConfig({
179
179
  displayName: "StyledArrow",
180
- componentId: "core-11_23_2__sc-1uf5708-26"
180
+ componentId: "core-11_23_3__sc-1uf5708-26"
181
181
  })(["display:inline-flex;svg{fill:", ";}"], colors.gray45);
182
182
  export var StyledArrowOutline = /*#__PURE__*/styled.polygon.withConfig({
183
183
  displayName: "StyledArrowOutline",
184
- componentId: "core-11_23_2__sc-1uf5708-27"
184
+ componentId: "core-11_23_3__sc-1uf5708-27"
185
185
  })([""]);
186
186
  export var StyledArrowFill = /*#__PURE__*/styled.polygon.withConfig({
187
187
  displayName: "StyledArrowFill",
188
- componentId: "core-11_23_2__sc-1uf5708-28"
188
+ componentId: "core-11_23_3__sc-1uf5708-28"
189
189
  })([""]);
190
190
  export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
191
191
  displayName: "StyledTrigger",
192
- componentId: "core-11_23_2__sc-1uf5708-29"
192
+ componentId: "core-11_23_3__sc-1uf5708-29"
193
193
  })(["", " 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 (_ref13) {
194
194
  var $block = _ref13.$block;
195
195
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -224,31 +224,31 @@ export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
224
224
  });
225
225
  export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
226
226
  displayName: "StyledOverlay",
227
- componentId: "core-11_23_2__sc-1uf5708-30"
227
+ componentId: "core-11_23_3__sc-1uf5708-30"
228
228
  })(["display:flex;flex-direction:column;"]);
229
229
  export var StyledVirtuoso = /*#__PURE__*/styled(Virtuoso).withConfig({
230
230
  displayName: "StyledVirtuoso",
231
- componentId: "core-11_23_2__sc-1uf5708-31"
231
+ componentId: "core-11_23_3__sc-1uf5708-31"
232
232
  })(["flex:1 1 auto;"]);
233
233
  export var StyledEllipses = /*#__PURE__*/styled.div.withConfig({
234
234
  displayName: "StyledEllipses",
235
- componentId: "core-11_23_2__sc-1uf5708-32"
235
+ componentId: "core-11_23_3__sc-1uf5708-32"
236
236
  })(["", " display:inline-flex;> div{display:inline-flex;width:100%;}"], getEllipsis());
237
237
  export var StyledMultiValueContainer = /*#__PURE__*/styled.div.withConfig({
238
238
  displayName: "StyledMultiValueContainer",
239
- componentId: "core-11_23_2__sc-1uf5708-33"
239
+ componentId: "core-11_23_3__sc-1uf5708-33"
240
240
  })(["display:flex;flex-wrap:wrap;margin-bottom:2px;margin-right:", "px;margin-top:2px;min-width:0;width:100%;"], spacing.xs);
241
241
  export var StyledMultiValue = /*#__PURE__*/styled.div.withConfig({
242
242
  displayName: "StyledMultiValue",
243
- componentId: "core-11_23_2__sc-1uf5708-34"
243
+ componentId: "core-11_23_3__sc-1uf5708-34"
244
244
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:0 1 auto;> div{max-width:178px;width:100%;}"], spacing.xs);
245
245
  export var StyledMultiInputContainer = /*#__PURE__*/styled.div.withConfig({
246
246
  displayName: "StyledMultiInputContainer",
247
- componentId: "core-11_23_2__sc-1uf5708-35"
247
+ componentId: "core-11_23_3__sc-1uf5708-35"
248
248
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:1;max-width:100%;min-width:24px;"], spacing.xs);
249
249
  export var StyledMultiInput = /*#__PURE__*/styled.input.withConfig({
250
250
  displayName: "StyledMultiInput",
251
- componentId: "core-11_23_2__sc-1uf5708-36"
251
+ componentId: "core-11_23_3__sc-1uf5708-36"
252
252
  })(["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 (_ref21) {
253
253
  var $isNavigatingTokens = _ref21.$isNavigatingTokens;
254
254
  return $isNavigatingTokens && css(["color:transparent;"]);
@@ -1,4 +1,3 @@
1
- /// <reference types="lodash" />
2
1
  import React from 'react';
3
2
  import { VirtuosoHandle, VirtuosoProps } from 'react-virtuoso';
4
3
  import { SuperSelectConfig, SuperSelectOption, SuperSelectValue, SuperSelectValuePrimitive } from './SuperSelect.types';
@@ -139,27 +138,35 @@ export declare function useSuperSelect({ block, components: customComponents, de
139
138
  };
140
139
  refs: {
141
140
  floating: {
142
- placement: import("@floating-ui/react").Placement;
143
- strategy: import("@floating-ui/react").Strategy;
144
- middlewareData: import("@floating-ui/react").MiddlewareData;
145
- x: number | null;
146
- y: number | null;
141
+ placement: import("@floating-ui/utils").Placement;
142
+ strategy: import("@floating-ui/utils").Strategy;
143
+ middlewareData: import("@floating-ui/core").MiddlewareData;
144
+ x: number;
145
+ y: number;
146
+ isPositioned: boolean;
147
147
  update: () => void;
148
- reference: (node: HTMLElement | null) => void;
149
- floating: (node: HTMLElement | null) => void;
150
- positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
148
+ floatingStyles: React.CSSProperties;
149
+ refs: {
150
+ reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
151
+ floating: React.MutableRefObject<HTMLElement | null>;
152
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
153
+ setFloating: (node: HTMLElement | null) => void;
154
+ } & import("@floating-ui/react").ExtendedRefs<HTMLElement>;
155
+ elements: {
156
+ reference: import("@floating-ui/react-dom").ReferenceType | null;
157
+ floating: HTMLElement | null;
158
+ } & import("@floating-ui/react").ExtendedElements<HTMLElement>;
151
159
  context: {
152
- x: number | null;
153
- y: number | null;
154
- placement: import("@floating-ui/react").Placement;
155
- strategy: import("@floating-ui/react").Strategy;
156
- middlewareData: import("@floating-ui/react").MiddlewareData;
157
- reference: (node: HTMLElement | null) => void;
158
- floating: (node: HTMLElement | null) => void;
159
- update: () => void;
160
+ x: number;
161
+ y: number;
162
+ placement: import("@floating-ui/utils").Placement;
163
+ strategy: import("@floating-ui/utils").Strategy;
164
+ middlewareData: import("@floating-ui/core").MiddlewareData;
160
165
  isPositioned: boolean;
166
+ update: () => void;
167
+ floatingStyles: React.CSSProperties;
161
168
  open: boolean;
162
- onOpenChange: (open: boolean) => void;
169
+ onOpenChange: (open: boolean, event?: Event | undefined) => void;
163
170
  events: import("@floating-ui/react").FloatingEvents;
164
171
  dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
165
172
  nodeId: string | undefined;
@@ -167,9 +174,6 @@ export declare function useSuperSelect({ block, components: customComponents, de
167
174
  refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
168
175
  elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
169
176
  };
170
- refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
171
- elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
172
- isPositioned: boolean;
173
177
  };
174
178
  navigationList: React.MutableRefObject<(HTMLElement | null)[]>;
175
179
  virtuoso: React.RefObject<VirtuosoHandle>;
@@ -312,27 +316,35 @@ export declare const SuperSelectContext: React.Context<{
312
316
  };
313
317
  refs: {
314
318
  floating: {
315
- placement: import("@floating-ui/react").Placement;
316
- strategy: import("@floating-ui/react").Strategy;
317
- middlewareData: import("@floating-ui/react").MiddlewareData;
318
- x: number | null;
319
- y: number | null;
319
+ placement: import("@floating-ui/utils").Placement;
320
+ strategy: import("@floating-ui/utils").Strategy;
321
+ middlewareData: import("@floating-ui/core").MiddlewareData;
322
+ x: number;
323
+ y: number;
324
+ isPositioned: boolean;
320
325
  update: () => void;
321
- reference: (node: HTMLElement | null) => void;
322
- floating: (node: HTMLElement | null) => void;
323
- positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
326
+ floatingStyles: React.CSSProperties;
327
+ refs: {
328
+ reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
329
+ floating: React.MutableRefObject<HTMLElement | null>;
330
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
331
+ setFloating: (node: HTMLElement | null) => void;
332
+ } & import("@floating-ui/react").ExtendedRefs<HTMLElement>;
333
+ elements: {
334
+ reference: import("@floating-ui/react-dom").ReferenceType | null;
335
+ floating: HTMLElement | null;
336
+ } & import("@floating-ui/react").ExtendedElements<HTMLElement>;
324
337
  context: {
325
- x: number | null;
326
- y: number | null;
327
- placement: import("@floating-ui/react").Placement;
328
- strategy: import("@floating-ui/react").Strategy;
329
- middlewareData: import("@floating-ui/react").MiddlewareData;
330
- reference: (node: HTMLElement | null) => void;
331
- floating: (node: HTMLElement | null) => void;
332
- update: () => void;
338
+ x: number;
339
+ y: number;
340
+ placement: import("@floating-ui/utils").Placement;
341
+ strategy: import("@floating-ui/utils").Strategy;
342
+ middlewareData: import("@floating-ui/core").MiddlewareData;
333
343
  isPositioned: boolean;
344
+ update: () => void;
345
+ floatingStyles: React.CSSProperties;
334
346
  open: boolean;
335
- onOpenChange: (open: boolean) => void;
347
+ onOpenChange: (open: boolean, event?: Event | undefined) => void;
336
348
  events: import("@floating-ui/react").FloatingEvents;
337
349
  dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
338
350
  nodeId: string | undefined;
@@ -340,9 +352,6 @@ export declare const SuperSelectContext: React.Context<{
340
352
  refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
341
353
  elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
342
354
  };
343
- refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
344
- elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
345
- isPositioned: boolean;
346
355
  };
347
356
  navigationList: React.MutableRefObject<(HTMLElement | null)[]>;
348
357
  virtuoso: React.RefObject<VirtuosoHandle>;
@@ -485,27 +494,35 @@ export declare function useSuperSelectContext(): {
485
494
  };
486
495
  refs: {
487
496
  floating: {
488
- placement: import("@floating-ui/react").Placement;
489
- strategy: import("@floating-ui/react").Strategy;
490
- middlewareData: import("@floating-ui/react").MiddlewareData;
491
- x: number | null;
492
- y: number | null;
497
+ placement: import("@floating-ui/utils").Placement;
498
+ strategy: import("@floating-ui/utils").Strategy;
499
+ middlewareData: import("@floating-ui/core").MiddlewareData;
500
+ x: number;
501
+ y: number;
502
+ isPositioned: boolean;
493
503
  update: () => void;
494
- reference: (node: HTMLElement | null) => void;
495
- floating: (node: HTMLElement | null) => void;
496
- positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
504
+ floatingStyles: React.CSSProperties;
505
+ refs: {
506
+ reference: React.MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
507
+ floating: React.MutableRefObject<HTMLElement | null>;
508
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
509
+ setFloating: (node: HTMLElement | null) => void;
510
+ } & import("@floating-ui/react").ExtendedRefs<HTMLElement>;
511
+ elements: {
512
+ reference: import("@floating-ui/react-dom").ReferenceType | null;
513
+ floating: HTMLElement | null;
514
+ } & import("@floating-ui/react").ExtendedElements<HTMLElement>;
497
515
  context: {
498
- x: number | null;
499
- y: number | null;
500
- placement: import("@floating-ui/react").Placement;
501
- strategy: import("@floating-ui/react").Strategy;
502
- middlewareData: import("@floating-ui/react").MiddlewareData;
503
- reference: (node: HTMLElement | null) => void;
504
- floating: (node: HTMLElement | null) => void;
505
- update: () => void;
516
+ x: number;
517
+ y: number;
518
+ placement: import("@floating-ui/utils").Placement;
519
+ strategy: import("@floating-ui/utils").Strategy;
520
+ middlewareData: import("@floating-ui/core").MiddlewareData;
506
521
  isPositioned: boolean;
522
+ update: () => void;
523
+ floatingStyles: React.CSSProperties;
507
524
  open: boolean;
508
- onOpenChange: (open: boolean) => void;
525
+ onOpenChange: (open: boolean, event?: Event | undefined) => void;
509
526
  events: import("@floating-ui/react").FloatingEvents;
510
527
  dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
511
528
  nodeId: string | undefined;
@@ -513,9 +530,6 @@ export declare function useSuperSelectContext(): {
513
530
  refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
514
531
  elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
515
532
  };
516
- refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
517
- elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
518
- isPositioned: boolean;
519
533
  };
520
534
  navigationList: React.MutableRefObject<(HTMLElement | null)[]>;
521
535
  virtuoso: React.RefObject<VirtuosoHandle>;