@procore/core-react 12.35.0 → 12.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/CHANGELOG.md +27 -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 +9 -9
  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 +9 -9
  18. package/dist/DateInput/DateInput.styles.js.map +1 -1
  19. package/dist/DetailPage/DetailPage.styles.js +7 -7
  20. package/dist/Dropdown/Dropdown.styles.js +3 -3
  21. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  22. package/dist/Dropzone/Dropzone.js +1 -1
  23. package/dist/Dropzone/Dropzone.styles.js +9 -9
  24. package/dist/EmptyState/EmptyState.styles.js +6 -6
  25. package/dist/Field/Field.styles.js +3 -3
  26. package/dist/FileList/FileList.styles.js +4 -4
  27. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  28. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  29. package/dist/FileSelect/FileSelect.styles.js +2 -2
  30. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  31. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  32. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  33. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  34. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  35. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  36. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  37. package/dist/FileToken/FileToken.styles.js +4 -4
  38. package/dist/FilterToken/FilterToken.styles.js +5 -5
  39. package/dist/FlexList/FlexList.styles.js +1 -1
  40. package/dist/Form/Form.styles.js +14 -14
  41. package/dist/Form/StyledFormikForm.styles.js +2 -2
  42. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  43. package/dist/Grid/Grid.styles.js +2 -2
  44. package/dist/GroupSelect/GroupSelect.styles.js +1 -1
  45. package/dist/Input/Input.styles.js +2 -2
  46. package/dist/Input/Input.styles.js.map +1 -1
  47. package/dist/Link/Link.styles.js +1 -1
  48. package/dist/ListPage/ListPage.styles.js +8 -8
  49. package/dist/Loader/Loader.styles.js +2 -2
  50. package/dist/MenuImperative/MenuImperative.styles.js +10 -10
  51. package/dist/Modal/Modal.styles.js +13 -13
  52. package/dist/MultiSelect/MultiSelect.styles.js +6 -6
  53. package/dist/NextMenu/NextMenu.styles.js +3 -3
  54. package/dist/Notation/Notation.js +1 -1
  55. package/dist/NumberInput/NumberInput.styles.js +9 -9
  56. package/dist/NumberInput/NumberInput.styles.js.map +1 -1
  57. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  58. package/dist/OverlayTrigger/OverlayTrigger.js +16 -0
  59. package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
  60. package/dist/PageLayout/PageLayout.styles.js +16 -16
  61. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  62. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  63. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  64. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  65. package/dist/Pagination/Pagination.styles.js +6 -6
  66. package/dist/Pagination/Pagination.styles.js.map +1 -1
  67. package/dist/Pagination/Pagination.types.d.ts +4 -0
  68. package/dist/Pagination/Pagination.types.js.map +1 -1
  69. package/dist/Pagination/PaginationSelect.js +59 -3
  70. package/dist/Pagination/PaginationSelect.js.map +1 -1
  71. package/dist/Panel/Panel.styles.js +11 -11
  72. package/dist/Pill/Pill.styles.js +3 -3
  73. package/dist/PillSelect/PillSelect.styles.js +4 -4
  74. package/dist/Popover/Popover.styles.js +2 -2
  75. package/dist/Portal/Portal.styles.js +1 -1
  76. package/dist/ProgressBar/ProgressBar.styles.js +2 -2
  77. package/dist/RadioButton/RadioButton.styles.js +4 -4
  78. package/dist/RadioButton/RadioButton.styles.js.map +1 -1
  79. package/dist/Required/Required.styles.js +3 -3
  80. package/dist/Search/Search.styles.js +5 -5
  81. package/dist/Section/Section.styles.js +7 -7
  82. package/dist/SegmentedController/SegmentedController.styles.js +4 -4
  83. package/dist/Select/Select.js +1 -0
  84. package/dist/Select/Select.js.map +1 -1
  85. package/dist/Select/Select.styles.js +10 -10
  86. package/dist/Select/Select.styles.js.map +1 -1
  87. package/dist/Semantic/Semantic.styles.js +9 -9
  88. package/dist/Slider/Slider.js +3 -1
  89. package/dist/Slider/Slider.js.map +1 -1
  90. package/dist/Slider/Slider.styles.js +5 -5
  91. package/dist/Spinner/Spinner.styles.js +7 -7
  92. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  93. package/dist/SuperSelect/SuperSelect.components.js +3 -3
  94. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  95. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  96. package/dist/SuperSelect/SuperSelect.styles.js +41 -41
  97. package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
  98. package/dist/SuperSelect/useSuperSelect.js +11 -11
  99. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  100. package/dist/Switch/Switch.styles.js +4 -4
  101. package/dist/Table/Table.styles.js +30 -30
  102. package/dist/Table/Table.styles.js.map +1 -1
  103. package/dist/TableShelf/TableShelf.styles.js +5 -5
  104. package/dist/Tabs/Tabs.styles.js +15 -15
  105. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  106. package/dist/TextArea/TextArea.styles.js +1 -1
  107. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  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/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  118. package/dist/Tooltip/Tooltip.styles.js +2 -2
  119. package/dist/Tree/Tree.hooks.js +11 -6
  120. package/dist/Tree/Tree.hooks.js.map +1 -1
  121. package/dist/Tree/Tree.js +142 -49
  122. package/dist/Tree/Tree.js.map +1 -1
  123. package/dist/Tree/Tree.styles.d.ts +5 -0
  124. package/dist/Tree/Tree.styles.js +17 -9
  125. package/dist/Tree/Tree.styles.js.map +1 -1
  126. package/dist/Tree/Tree.types.d.ts +21 -1
  127. package/dist/Tree/Tree.types.js.map +1 -1
  128. package/dist/Typeahead/Typeahead.styles.js +3 -3
  129. package/dist/Typography/Typography.styles.js +1 -1
  130. package/dist/Typography/Typography.table.story.js +2 -2
  131. package/dist/_hooks/I18n.d.ts +38 -0
  132. package/dist/_locales/de-DE.json +2 -0
  133. package/dist/_locales/en-AU.json +2 -0
  134. package/dist/_locales/en-CA.json +2 -0
  135. package/dist/_locales/en-GB.json +2 -0
  136. package/dist/_locales/en.json +2 -0
  137. package/dist/_locales/es-ES.json +2 -0
  138. package/dist/_locales/es.json +2 -0
  139. package/dist/_locales/fr-CA.json +2 -0
  140. package/dist/_locales/fr-FR.json +2 -0
  141. package/dist/_locales/is-IS.json +2 -0
  142. package/dist/_locales/it-IT.json +2 -0
  143. package/dist/_locales/ja-JP.json +2 -0
  144. package/dist/_locales/pl-PL.json +2 -0
  145. package/dist/_locales/pseudo.json +2 -0
  146. package/dist/_locales/pt-BR.json +2 -0
  147. package/dist/_locales/pt-PT.json +2 -0
  148. package/dist/_locales/th-TH.json +2 -0
  149. package/dist/_locales/zh-SG.json +2 -0
  150. package/dist/_locales/zh-TW.json +3 -1
  151. package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
  152. package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
  153. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  154. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  155. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  156. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  157. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  158. package/dist/_typedoc/Box/Box.types.json +68 -68
  159. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  160. package/dist/_typedoc/Button/Button.types.json +13 -13
  161. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  162. package/dist/_typedoc/Card/Card.types.json +6 -6
  163. package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
  164. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  165. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  166. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  167. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  168. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  169. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
  170. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  171. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  172. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  173. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  174. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  175. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  176. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  177. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  178. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  179. package/dist/_typedoc/Form/Form.types.json +750 -750
  180. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  181. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  182. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  183. package/dist/_typedoc/Input/Input.types.json +2 -2
  184. package/dist/_typedoc/Link/Link.types.json +1 -1
  185. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  186. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  187. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +77 -77
  188. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  189. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  190. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  191. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  192. package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
  193. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
  194. package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
  195. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  196. package/dist/_typedoc/Panel/Panel.types.json +30 -30
  197. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  198. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  199. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  200. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  201. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  202. package/dist/_typedoc/Required/Required.types.json +5 -5
  203. package/dist/_typedoc/Search/Search.types.json +18 -18
  204. package/dist/_typedoc/Section/Section.types.json +15 -15
  205. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  206. package/dist/_typedoc/Select/Select.types.json +60 -60
  207. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  208. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  209. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  210. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
  211. package/dist/_typedoc/Table/Table.types.json +102 -102
  212. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  213. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  214. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  215. package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
  216. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  217. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  218. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +43 -43
  219. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
  220. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  221. package/dist/_typedoc/Title/Title.types.json +1 -1
  222. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  223. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  224. package/dist/_typedoc/Token/Token.types.json +7 -7
  225. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  226. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
  227. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  228. package/dist/_typedoc/Tree/Tree.types.json +111 -86
  229. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  230. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  231. package/dist/_typedoc/_utils/types.json +3 -3
  232. package/package.json +1 -1
@@ -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_35_0__sc-1uf5708-0"
25
+ componentId: "core-12_36_0__sc-1uf5708-0"
26
26
  })(["display:flex;align-items:center;justify-content:space-between;padding:", "px ", "px;"], spacing.xs, spacing.lg);
27
27
  export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
28
28
  displayName: "PillSelectLabel",
29
- componentId: "core-12_35_0__sc-1uf5708-1"
29
+ componentId: "core-12_36_0__sc-1uf5708-1"
30
30
  })(["", ""], getEllipsis);
31
31
  export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
32
32
  displayName: "PillSelectLabelWrapper",
33
- componentId: "core-12_35_0__sc-1uf5708-2"
33
+ componentId: "core-12_36_0__sc-1uf5708-2"
34
34
  })(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
35
35
  var disabled = _ref.disabled;
36
36
  return disabled && css(["pointer-events:none;"]);
37
37
  });
38
38
  export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
39
39
  displayName: "StyledCheckboxContainer",
40
- componentId: "core-12_35_0__sc-1uf5708-3"
40
+ componentId: "core-12_36_0__sc-1uf5708-3"
41
41
  })(["padding-left:", "px;"], spacing.lg);
42
42
  export var StyledCheckmarkContainer = /*#__PURE__*/styled.div.withConfig({
43
43
  displayName: "StyledCheckmarkContainer",
44
- componentId: "core-12_35_0__sc-1uf5708-4"
44
+ componentId: "core-12_36_0__sc-1uf5708-4"
45
45
  })(["align-items:center;color:", ";display:inline-flex;flex-shrink:0;padding:0 ", "px 0 ", "px;"], colors.blue50, spacing.lg, spacing.sm);
46
46
 
47
47
  // Do not merge with StyledMenu, needed for max-height working in IE
48
48
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
49
49
  displayName: "StyledWrapper",
50
- componentId: "core-12_35_0__sc-1uf5708-5"
50
+ componentId: "core-12_36_0__sc-1uf5708-5"
51
51
  })(["display:flex;max-height:inherit;min-width:inherit;outline:none;width:inherit;"]);
52
52
  export var StyledMenu = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledMenu",
54
- componentId: "core-12_35_0__sc-1uf5708-6"
54
+ componentId: "core-12_36_0__sc-1uf5708-6"
55
55
  })(["display:flex;flex-direction:column;outline:0;width:100%;"]);
56
56
  export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
57
57
  displayName: "StyledOptions",
58
- componentId: "core-12_35_0__sc-1uf5708-7"
58
+ componentId: "core-12_36_0__sc-1uf5708-7"
59
59
  })(["flex-basis:auto;flex-grow:1;flex-shrink:1;min-height:", "px;", ";padding:", "px 0;position:relative;overflow:hidden;&:focus{", " margin:-1px;}"], optionMinHeight, function (_ref2) {
60
60
  var _ref2$$scrollable = _ref2.$scrollable,
61
61
  $scrollable = _ref2$$scrollable === void 0 ? true : _ref2$$scrollable;
@@ -63,53 +63,53 @@ export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
63
63
  }, spacing.sm, getFocus());
64
64
  export var StyledItemContent = /*#__PURE__*/styled.div.withConfig({
65
65
  displayName: "StyledItemContent",
66
- componentId: "core-12_35_0__sc-1uf5708-8"
66
+ componentId: "core-12_36_0__sc-1uf5708-8"
67
67
  })(["display:flex;flex-direction:row;align-items:center;"]);
68
68
  export var StyledOptionGroupLabel = /*#__PURE__*/styled.div.withConfig({
69
69
  displayName: "StyledOptionGroupLabel",
70
- componentId: "core-12_35_0__sc-1uf5708-9"
70
+ componentId: "core-12_36_0__sc-1uf5708-9"
71
71
  })(["padding:", "px 0 ", "px ", "px;"], spacing.md, spacing.xs, spacing.lg);
72
72
  export var StyledItemLabel = /*#__PURE__*/styled.div.withConfig({
73
73
  displayName: "StyledItemLabel",
74
- componentId: "core-12_35_0__sc-1uf5708-10"
74
+ componentId: "core-12_36_0__sc-1uf5708-10"
75
75
  })(["", ""], function (_ref3) {
76
76
  var $draggable = _ref3.$draggable;
77
77
  return css(["padding:", "px ", "px;overflow-wrap:anywhere;"], spacing.xs, $draggable ? 0 : spacing.lg);
78
78
  });
79
79
  export var StyledDraggableWrapper = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledDraggableWrapper",
81
- componentId: "core-12_35_0__sc-1uf5708-11"
81
+ componentId: "core-12_36_0__sc-1uf5708-11"
82
82
  })(["display:flex;width:100%;align-items:center;"]);
83
83
  export var StyledGrip = /*#__PURE__*/styled.div.withConfig({
84
84
  displayName: "StyledGrip",
85
- componentId: "core-12_35_0__sc-1uf5708-12"
85
+ componentId: "core-12_36_0__sc-1uf5708-12"
86
86
  })(["padding:0 2px;height:24px;visibility:hidden;"]);
87
87
  export var StyledFooter = /*#__PURE__*/styled(Box).withConfig({
88
88
  displayName: "StyledFooter",
89
- componentId: "core-12_35_0__sc-1uf5708-13"
89
+ componentId: "core-12_36_0__sc-1uf5708-13"
90
90
  })(["border-top:1px solid ", ";"], colors.gray85);
91
91
  export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
92
92
  displayName: "StyledHeader",
93
- componentId: "core-12_35_0__sc-1uf5708-14"
93
+ componentId: "core-12_36_0__sc-1uf5708-14"
94
94
  })([""]);
95
95
  export var StyledEmptyMessage = /*#__PURE__*/styled.div.withConfig({
96
96
  displayName: "StyledEmptyMessage",
97
- componentId: "core-12_35_0__sc-1uf5708-15"
97
+ componentId: "core-12_36_0__sc-1uf5708-15"
98
98
  })(["", ";padding:", "px ", "px;color:", ";"], getTypographyIntent('body'), spacing.md, spacing.lg, colors.gray45);
99
99
  export var StyledSearchContainer = /*#__PURE__*/styled.div.withConfig({
100
100
  displayName: "StyledSearchContainer",
101
- componentId: "core-12_35_0__sc-1uf5708-16"
101
+ componentId: "core-12_36_0__sc-1uf5708-16"
102
102
  })(["padding:", "px ", "px ", "px;", " > *{pointer-events:none;}"], spacing.lg, spacing.lg, spacing.sm, StyledButton);
103
103
  export var StyledGroup = /*#__PURE__*/styled.div.withConfig({
104
104
  displayName: "StyledGroup",
105
- componentId: "core-12_35_0__sc-1uf5708-17"
105
+ componentId: "core-12_36_0__sc-1uf5708-17"
106
106
  })(["", " color:", ";cursor:", ";font-weight:", ";padding:", "px ", "px;&:not(:first-child){padding-top:", "px;}&&{padding:0;}", "{padding:", "px ", " px;}&:not(:first-child){", "{padding-top:", " px;}}"], getTypographyIntent('body'), colors.gray15, function (_ref4) {
107
107
  var $clickable = _ref4.$clickable;
108
108
  return $clickable ? 'pointer' : 'default';
109
109
  }, typographyWeights.semibold, spacing.xs, spacing.lg, spacing.md + spacing.xs, StyledOptionGroupLabel, spacing.xs, spacing.lg, StyledOptionGroupLabel, spacing.md + spacing.xs);
110
110
  export var StyledItem = /*#__PURE__*/styled.div.withConfig({
111
111
  displayName: "StyledItem",
112
- componentId: "core-12_35_0__sc-1uf5708-18"
112
+ componentId: "core-12_36_0__sc-1uf5708-18"
113
113
  })(["", ";align-items:center;cursor:pointer;list-style-type:none;display:flex;padding:0;", " ", " ", " a{color:", ";display:block;margin:-", "px -", "px;padding:", "px ", "px;text-decoration:none;&:hover{color:", ";text-decoration:none;}}&[data-highlighted='true']{background-color:", ";}", " &:hover,&:active{", "{visibility:visible;}}", "{color:inherit;cursor:pointer;}", " ", " ", ""], getTypographyIntent('body'), function (_ref5) {
114
114
  var $emptyMinHeight = _ref5.$emptyMinHeight;
115
115
  return css(["&:empty{min-height:", "px;}"], $emptyMinHeight);
@@ -147,64 +147,64 @@ 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_35_0__sc-1uf5708-19"
150
+ componentId: "core-12_36_0__sc-1uf5708-19"
151
151
  })(["padding-top:", "px;padding-bottom:", "px;border-bottom:1px solid ", ";"], spacing.md, spacing.md, colors.gray85);
152
152
  export var StyledDroppable = /*#__PURE__*/styled.div.withConfig({
153
153
  displayName: "StyledDroppable",
154
- componentId: "core-12_35_0__sc-1uf5708-20"
154
+ componentId: "core-12_36_0__sc-1uf5708-20"
155
155
  })(["", ",", "{padding-left:28px;}"], StyledGroup, StyledItem);
156
156
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
157
157
  displayName: "StyledSelectMenu",
158
- componentId: "core-12_35_0__sc-1uf5708-21"
158
+ componentId: "core-12_36_0__sc-1uf5708-21"
159
159
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
160
160
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
161
161
  displayName: "StyledLabel",
162
- componentId: "core-12_35_0__sc-1uf5708-22"
162
+ componentId: "core-12_36_0__sc-1uf5708-22"
163
163
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref10) {
164
164
  var $hoverable = _ref10.$hoverable;
165
165
  return $hoverable ? 'initial' : 'none';
166
166
  });
167
167
  export var StyledIndicators = /*#__PURE__*/styled.div.withConfig({
168
168
  displayName: "StyledIndicators",
169
- componentId: "core-12_35_0__sc-1uf5708-23"
169
+ componentId: "core-12_36_0__sc-1uf5708-23"
170
170
  })(["align-items:center;align-self:flex-start;display:flex;height:34px;justify-content:flex-end;margin-left:", "px;min-width:40px;width:40px;"], spacing.xs);
171
171
  export var StyledClearIcon = /*#__PURE__*/styled(Button).withConfig({
172
172
  displayName: "StyledClearIcon",
173
- componentId: "core-12_35_0__sc-1uf5708-24"
173
+ componentId: "core-12_36_0__sc-1uf5708-24"
174
174
  })([""]);
175
175
  export var StyledSpinner = /*#__PURE__*/styled.div.withConfig({
176
176
  displayName: "StyledSpinner",
177
- componentId: "core-12_35_0__sc-1uf5708-25"
177
+ componentId: "core-12_36_0__sc-1uf5708-25"
178
178
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
179
179
  export var StyledArrowContainer = /*#__PURE__*/styled.div.withConfig({
180
180
  displayName: "StyledArrowContainer",
181
- componentId: "core-12_35_0__sc-1uf5708-26"
181
+ componentId: "core-12_36_0__sc-1uf5708-26"
182
182
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
183
183
  export var StyledArrow = /*#__PURE__*/styled.span.withConfig({
184
184
  displayName: "StyledArrow",
185
- componentId: "core-12_35_0__sc-1uf5708-27"
185
+ componentId: "core-12_36_0__sc-1uf5708-27"
186
186
  })(["display:inline-flex;svg{fill:", ";}"], colors.gray45);
187
187
  export var StyledArrowOutline = /*#__PURE__*/styled.polygon.withConfig({
188
188
  displayName: "StyledArrowOutline",
189
- componentId: "core-12_35_0__sc-1uf5708-28"
189
+ componentId: "core-12_36_0__sc-1uf5708-28"
190
190
  })([""]);
191
191
  export var StyledArrowFill = /*#__PURE__*/styled.polygon.withConfig({
192
192
  displayName: "StyledArrowFill",
193
- componentId: "core-12_35_0__sc-1uf5708-29"
193
+ componentId: "core-12_36_0__sc-1uf5708-29"
194
194
  })([""]);
195
195
  export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
196
196
  displayName: "StyledTrigger",
197
- componentId: "core-12_35_0__sc-1uf5708-30"
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) {
197
+ componentId: "core-12_36_0__sc-1uf5708-30"
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.gray50, borderRadius.md, colors.gray15, spacing.md, function (_ref11) {
199
199
  var $block = _ref11.$block;
200
200
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
201
- }, colors.gray45, dataQa.hovered, colors.white, colors.gray45, colors.gray15, dataQa.focused, getFocus(), StyledCircle, colors.blue50, function (_ref12) {
201
+ }, colors.gray45, dataQa.hovered, colors.white, colors.gray20, colors.gray15, dataQa.focused, getFocus(), StyledCircle, colors.blue50, function (_ref12) {
202
202
  var _ref12$$placeholder = _ref12.$placeholder,
203
203
  $placeholder = _ref12$$placeholder === void 0 ? false : _ref12$$placeholder;
204
204
  return $placeholder && css(["", "{color:", ";}"], StyledLabel, colors.gray45);
205
205
  }, function (_ref13) {
206
206
  var $disabled = _ref13.$disabled;
207
- return $disabled && css(["background-color:", ";border-color:", ";color:", ";cursor:default;pointer-events:none;", "{color:", ";}", "{svg{fill:", ";}}"], colors.gray94, colors.gray70, colors.gray45, StyledLabel, colors.gray70, StyledArrow, colors.gray70);
207
+ return $disabled && css(["background-color:", ";border-color:", ";color:", ";cursor:default;pointer-events:none;", "{color:", ";}", "{svg{fill:", ";}}"], colors.gray94, colors.gray50, colors.gray45, StyledLabel, colors.gray70, StyledArrow, colors.gray70);
208
208
  }, function (_ref14) {
209
209
  var $error = _ref14.$error,
210
210
  $disabled = _ref14.$disabled;
@@ -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_35_0__sc-1uf5708-31"
232
+ componentId: "core-12_36_0__sc-1uf5708-31"
233
233
  })(["display:flex;flex-direction:column;"]);
234
234
  export var StyledVirtuoso = /*#__PURE__*/styled(Virtuoso).withConfig({
235
235
  displayName: "StyledVirtuoso",
236
- componentId: "core-12_35_0__sc-1uf5708-32"
236
+ componentId: "core-12_36_0__sc-1uf5708-32"
237
237
  })(["flex:1 1 auto;"]);
238
238
  export var StyledEllipses = /*#__PURE__*/styled.div.withConfig({
239
239
  displayName: "StyledEllipses",
240
- componentId: "core-12_35_0__sc-1uf5708-33"
240
+ componentId: "core-12_36_0__sc-1uf5708-33"
241
241
  })(["", " display:inline-flex;> div{display:inline-flex;width:100%;}"], getEllipsis());
242
242
  export var StyledMultiValueContainer = /*#__PURE__*/styled.div.withConfig({
243
243
  displayName: "StyledMultiValueContainer",
244
- componentId: "core-12_35_0__sc-1uf5708-34"
244
+ componentId: "core-12_36_0__sc-1uf5708-34"
245
245
  })(["display:flex;flex-wrap:wrap;margin-bottom:2px;margin-right:", "px;margin-top:2px;min-width:0;width:100%;"], spacing.xs);
246
246
  export var StyledMultiValue = /*#__PURE__*/styled.div.withConfig({
247
247
  displayName: "StyledMultiValue",
248
- componentId: "core-12_35_0__sc-1uf5708-35"
248
+ componentId: "core-12_36_0__sc-1uf5708-35"
249
249
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:0 1 auto;> div{max-width:178px;width:100%;}"], spacing.xs);
250
250
  export var StyledMultiInputContainer = /*#__PURE__*/styled.div.withConfig({
251
251
  displayName: "StyledMultiInputContainer",
252
- componentId: "core-12_35_0__sc-1uf5708-36"
252
+ componentId: "core-12_36_0__sc-1uf5708-36"
253
253
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:1;max-width:100%;min-width:24px;"], spacing.xs);
254
254
  export var StyledMultiInput = /*#__PURE__*/styled.input.withConfig({
255
255
  displayName: "StyledMultiInput",
256
- componentId: "core-12_35_0__sc-1uf5708-37"
256
+ componentId: "core-12_36_0__sc-1uf5708-37"
257
257
  })(["background-color:transparent;border-width:0;font-family:inherit;padding:0;height:24px;width:100%;", " ", " &::-ms-clear{display:none;}&:focus{box-shadow:none;outline:none;}&::placeholder{color:", ";}"], getTypographyIntent('body'), function (_ref19) {
258
258
  var $isNavigatingTokens = _ref19.$isNavigatingTokens;
259
259
  return $isNavigatingTokens && css(["color:transparent;"]);
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.styles.js","names":["Virtuoso","styled","css","Box","Button","StyledButton","Card","StyledCheckboxLabel","Pill","StyledCircle","getTypographyIntent","typographyWeights","borderRadius","colors","getEllipsis","getFocus","spacing","dataQa","focused","hovered","optionMinHeight","checkedIconPlaceholderWidth","styledSelectButtonDefaultWidth","extendedSelectMenuWidth","PillSelectOptionWrapper","div","withConfig","displayName","componentId","xs","lg","PillSelectLabel","PillSelectLabelWrapper","_ref","disabled","StyledCheckboxContainer","StyledCheckmarkContainer","blue50","sm","StyledWrapper","StyledMenu","StyledOptions","_ref2","_ref2$$scrollable","$scrollable","StyledItemContent","StyledOptionGroupLabel","md","StyledItemLabel","_ref3","$draggable","StyledDraggableWrapper","StyledGrip","StyledFooter","gray85","StyledHeader","StyledEmptyMessage","gray45","StyledSearchContainer","StyledGroup","gray15","_ref4","$clickable","semibold","StyledItem","_ref5","$emptyMinHeight","_ref6","$isDraggingOver","$highlighted","_ref7","$disabled","$isDraggingDisabled","gray96","_ref8","concat","_ref9","$selected","_ref0","$isDraggable","_ref1","$isDragging","StyledSelectAll","StyledDroppable","StyledSelectMenu","StyledLabel","_ref10","$hoverable","StyledIndicators","StyledClearIcon","StyledSpinner","StyledArrowContainer","StyledArrow","span","StyledArrowOutline","polygon","StyledArrowFill","StyledTrigger","white","gray70","_ref11","$block","_ref12","_ref12$$placeholder","$placeholder","_ref13","gray94","_ref14","$error","red50","_ref15","$hasClearIcon","_ref16","$multiple","_ref17","$open","_ref18","_ref18$$placeholder","StyledOverlay","StyledVirtuoso","StyledEllipses","StyledMultiValueContainer","StyledMultiValue","StyledMultiInputContainer","StyledMultiInput","input","_ref19","$isNavigatingTokens"],"sources":["../../src/SuperSelect/SuperSelect.styles.ts"],"sourcesContent":["import { Virtuoso } from 'react-virtuoso'\nimport styled, { css } from 'styled-components'\nimport { Box } from '../Box/Box'\nimport { Button } from '../Button'\nimport { StyledButton } from '../Button/Button.styles'\nimport { Card } from '../Card/Card'\nimport { StyledCheckboxLabel } from '../Checkbox/Checkbox.styles'\nimport { Pill } from '../Pill/Pill'\nimport { StyledCircle } from '../Spinner/Spinner.styles'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport type SuperSelectStyledTriggerProps = {\n $block?: boolean\n $disabled?: boolean\n $error?: boolean\n $hasClearIcon?: boolean\n $loading?: boolean\n $multiple?: boolean\n $open?: boolean\n $placeholder?: boolean\n}\n\nexport const dataQa = {\n focused: 'core-select-focused',\n hovered: 'core-select-hovered',\n}\n\nconst optionMinHeight = 32\n\nconst checkedIconPlaceholderWidth = 32\n\nconst styledSelectButtonDefaultWidth = 248\n\nexport const extendedSelectMenuWidth = 360\n\nexport const PillSelectOptionWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ${spacing.xs}px ${spacing.lg}px;\n`\n\nexport const PillSelectLabel = styled(Pill)`\n ${getEllipsis}\n`\n\nexport const PillSelectLabelWrapper = styled.div<{ disabled?: boolean }>`\n display: flex;\n max-width: 100%;\n pointer-events: auto;\n\n ${({ disabled }) =>\n disabled &&\n css`\n pointer-events: none;\n `}\n`\n\nexport const StyledCheckboxContainer = styled.div`\n padding-left: ${spacing.lg}px;\n`\n\nexport const StyledCheckmarkContainer = styled.div`\n align-items: center;\n color: ${colors.blue50};\n display: inline-flex;\n flex-shrink: 0;\n padding: 0 ${spacing.lg}px 0 ${spacing.sm}px;\n`\n\n// Do not merge with StyledMenu, needed for max-height working in IE\nexport const StyledWrapper = styled.div`\n display: flex;\n max-height: inherit;\n min-width: inherit;\n outline: none;\n width: inherit;\n`\n\nexport const StyledMenu = styled.div`\n display: flex;\n flex-direction: column;\n outline: 0;\n width: 100%;\n`\n\nexport const StyledOptions = styled.div<{ $scrollable?: boolean }>`\n flex-basis: auto;\n flex-grow: 1;\n flex-shrink: 1;\n min-height: ${optionMinHeight}px;\n ${({ $scrollable = true }) => $scrollable && `overflow-y: auto`};\n padding: ${spacing.sm}px 0;\n position: relative;\n overflow: hidden;\n\n &:focus {\n ${getFocus()}\n margin: -1px;\n }\n`\n\nexport const StyledItemContent = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n`\n\nexport const StyledOptionGroupLabel = styled.div`\n padding: ${spacing.md}px 0 ${spacing.xs}px ${spacing.lg}px;\n`\n\nexport const StyledItemLabel = styled.div<{\n $draggable?: boolean\n $selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n}>`\n ${({ $draggable }) => {\n return css`\n padding: ${spacing.xs}px ${$draggable ? 0 : spacing.lg}px;\n overflow-wrap: anywhere;\n `\n }}\n`\n\nexport const StyledDraggableWrapper = styled.div`\n display: flex;\n width: 100%;\n align-items: center;\n`\n\nexport const StyledGrip = styled.div`\n padding: 0 2px;\n height: 24px;\n visibility: hidden;\n`\n\nexport const StyledFooter = styled(Box)`\n border-top: 1px solid ${colors.gray85};\n`\n\nexport const StyledHeader = styled.div``\n\nexport const StyledEmptyMessage = styled.div`\n ${getTypographyIntent('body')};\n\n padding: ${spacing.md}px ${spacing.lg}px;\n color: ${colors.gray45};\n`\n\nexport const StyledSearchContainer = styled.div`\n padding: ${spacing.lg}px ${spacing.lg}px ${spacing.sm}px;\n\n ${StyledButton} > * {\n pointer-events: none;\n }\n`\n\nexport const StyledGroup = styled.div<{ $clickable?: boolean }>`\n ${getTypographyIntent('body')}\n\n color: ${colors.gray15};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n font-weight: ${typographyWeights.semibold};\n padding: ${spacing.xs}px ${spacing.lg}px;\n\n &:not(:first-child) {\n padding-top: ${spacing.md + spacing.xs}px;\n }\n\n && {\n padding: 0;\n }\n\n ${StyledOptionGroupLabel} {\n padding: ${spacing.xs}px ${spacing.lg} px;\n }\n\n &:not(:first-child) {\n ${StyledOptionGroupLabel} {\n padding-top: ${spacing.md + spacing.xs} px;\n }\n }\n`\n\nexport const StyledItem = styled.div<{\n $disabled?: boolean\n $selected?: boolean\n $highlighted?: boolean\n $isDraggable?: boolean\n $isDragging?: boolean\n $emptyMinHeight?: number\n $isDraggingOver?: boolean\n $isDraggingDisabled?: boolean\n}>`\n ${getTypographyIntent('body')};\n\n align-items: center;\n cursor: pointer;\n list-style-type: none;\n display: flex;\n padding: 0;\n\n ${({ $emptyMinHeight }) => {\n return css`\n &:empty {\n min-height: ${$emptyMinHeight}px;\n }\n `\n }}\n\n ${({ $isDraggingOver, $highlighted }) => {\n return (\n $isDraggingOver &&\n $highlighted &&\n css`\n background-color: initial;\n `\n )\n }}\n\n ${({ $isDraggingOver, $disabled, $isDraggingDisabled }) => {\n return (\n ($isDraggingOver || $disabled || $isDraggingDisabled) &&\n css`\n &:hover {\n ${StyledGrip} {\n visibility: hidden;\n }\n }\n `\n )\n }}\n\n a {\n // We decided to use a negative margin trick here to allow us to continue\n // to use listNavigation without having to rewrite a bunch of code in js\n color: ${colors.gray15};\n display: block;\n margin: -${spacing.xs}px -${spacing.lg}px;\n padding: ${spacing.xs}px ${spacing.lg}px;\n text-decoration: none;\n\n &:hover {\n color: ${colors.gray15};\n text-decoration: none;\n }\n }\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n\n ${({ $highlighted }) => $highlighted && `background-color: ${colors.gray96};`}\n\n &:hover,\n &:active {\n ${StyledGrip} {\n visibility: visible;\n }\n }\n\n ${StyledCheckboxLabel} {\n color: inherit;\n cursor: pointer;\n }\n\n ${({ $disabled, $selected }) => {\n if ($disabled) {\n return css`\n &,\n ${StyledCheckboxLabel} {\n color: ${colors.gray85};\n cursor: default;\n }\n `\n } else if ($selected) {\n return css`\n color: ${colors.blue50};\n font-weight: 700;\n\n a,\n a:hover {\n color: ${colors.blue50};\n text-decoration: none;\n }\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n `\n }\n\n return css`\n color: ${colors.gray15};\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n `\n }}\n\n ${({ $isDraggable }) => {\n if ($isDraggable) {\n return css`\n ${StyledCheckboxLabel} {\n cursor: grab;\n\n // The unchecked and checked icons\n &:before,\n &:after {\n cursor: pointer;\n }\n }\n\n &&& {\n padding-left: 0;\n }\n `\n }\n }}\n\n ${({ $isDragging }) => {\n if ($isDragging) {\n return css`\n background-color: ${colors.gray96};\n\n ${StyledGrip} {\n visibility: visible;\n }\n `\n }\n }}\n`\n\nexport const StyledSelectAll = styled(Box)`\n padding-top: ${spacing.md}px;\n padding-bottom: ${spacing.md}px;\n border-bottom: 1px solid ${colors.gray85};\n`\n\nexport const StyledDroppable = styled.div`\n ${StyledGroup}, ${StyledItem} {\n padding-left: 28px;\n }\n`\n\nexport const StyledSelectMenu = styled(Card)`\n display: flex;\n max-height: 40vh;\n max-width: ${styledSelectButtonDefaultWidth}px;\n min-width: inherit;\n`\n\nexport const StyledLabel = styled.div<{ $hoverable: boolean }>`\n ${getEllipsis()}\n flex-grow: 1;\n margin-right: ${spacing.sm}px;\n outline: none;\n pointer-events: ${({ $hoverable }) => ($hoverable ? 'initial' : 'none')};\n user-select: none;\n`\n\nexport const StyledIndicators = styled.div`\n align-items: center;\n align-self: flex-start;\n display: flex;\n height: 34px;\n justify-content: flex-end;\n margin-left: ${spacing.xs}px;\n min-width: 40px;\n width: 40px;\n`\n\nexport const StyledClearIcon = styled(Button)``\n\nexport const StyledSpinner = styled.div`\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n line-height: 0;\n`\n\nexport const StyledArrowContainer = styled.div`\n align-items: center;\n display: inline-flex;\n height: 16px;\n justify-content: flex-end;\n margin-left: ${spacing.sm}px;\n width: 8px;\n`\n\nexport const StyledArrow = styled.span`\n display: inline-flex;\n\n svg {\n fill: ${colors.gray45};\n }\n`\n\nexport const StyledArrowOutline = styled.polygon``\n\nexport const StyledArrowFill = styled.polygon``\n\nexport const StyledTrigger = styled.div<SuperSelectStyledTriggerProps>`\n ${getTypographyIntent('body')}\n\n align-items: center;\n background-color: ${colors.white};\n border-color: ${colors.gray70};\n border-radius: ${borderRadius.md}px;\n border-style: solid;\n border-width: 1px;\n color: ${colors.gray15};\n cursor: pointer;\n display: inline-flex;\n height: 36px;\n min-height: 36px;\n outline: none;\n padding: 0 ${spacing.md}px;\n position: relative;\n white-space: nowrap;\n width: ${({ $block }) =>\n $block ? '100%' : `${styledSelectButtonDefaultWidth}px`};\n\n &::placeholder {\n border-color: ${colors.gray45};\n }\n\n &:hover,\n &:active,\n &[data-qa=${dataQa.hovered}] {\n background-color: ${colors.white};\n border-color: ${colors.gray45};\n color: ${colors.gray15};\n }\n\n &:focus,\n &[data-qa=${dataQa.focused}] {\n ${getFocus()}\n\n ${StyledCircle} {\n stroke: ${colors.blue50};\n }\n }\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledLabel} {\n color: ${colors.gray45};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n background-color: ${colors.gray94};\n border-color: ${colors.gray70};\n color: ${colors.gray45};\n cursor: default;\n pointer-events: none;\n\n ${StyledLabel} {\n color: ${colors.gray70};\n }\n\n ${StyledArrow} {\n svg {\n fill: ${colors.gray70};\n }\n }\n `}\n\n ${({ $error, $disabled }) => {\n if ($error && !$disabled) {\n return css`\n &,\n &:hover {\n border-color: ${colors.red50};\n border-color: var(--core-input-error-border-color, ${colors.red50});\n }\n &:hover:focus {\n ${getFocus()}\n }\n `\n }\n }}\n\n ${({ $hasClearIcon }) => css`\n ${StyledClearIcon} {\n opacity: ${$hasClearIcon ? 1 : 0};\n }\n `}\n\n ${({ $multiple }) =>\n $multiple &&\n css`\n height: auto;\n\n &:focus-within {\n ${getFocus()}\n }\n `}\n\n ${({ $open, $hasClearIcon }) =>\n $open &&\n $hasClearIcon &&\n css`\n ${StyledClearIcon} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n\n ${({ $open, $placeholder = false }) =>\n $open &&\n $placeholder &&\n css`\n ${StyledLabel} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n }\n`\n\nexport const StyledOverlay = styled(Card)`\n display: flex;\n flex-direction: column;\n`\n\nexport const StyledVirtuoso = styled(Virtuoso)`\n flex: 1 1 auto;\n`\n\nexport const StyledEllipses = styled.div`\n ${getEllipsis()}\n display: inline-flex;\n\n > div {\n display: inline-flex;\n width: 100%;\n }\n`\n\nexport const StyledMultiValueContainer = styled.div`\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n min-width: 0;\n width: 100%;\n`\n\nexport const StyledMultiValue = styled.div`\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n flex: 0 1 auto;\n\n > div {\n max-width: 178px;\n width: 100%;\n }\n`\n\nexport const StyledMultiInputContainer = styled.div`\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n flex: 1;\n max-width: 100%;\n min-width: 24px;\n`\n\nexport const StyledMultiInput = styled.input<{\n $isNavigatingTokens?: boolean\n}>`\n background-color: transparent;\n border-width: 0;\n font-family: inherit;\n padding: 0;\n height: 24px;\n width: 100%;\n\n ${getTypographyIntent('body')}\n\n ${({ $isNavigatingTokens }) =>\n $isNavigatingTokens &&\n css`\n color: transparent;\n `}\n\n &::-ms-clear {\n display: none;\n }\n\n &:focus {\n box-shadow: none;\n outline: none;\n }\n\n &::placeholder {\n color: ${colors.gray45};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AA;EAAAC,WAAA;AAAA,2CAGxC;AAED,OAAO,IAAM2F,cAAc,gBAAGtH,MAAM,CAACD,QAAQ,CAAC,CAAA0B,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sBAE7C;AAED,OAAO,IAAM4F,cAAc,gBAAGvH,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wEACpCd,WAAW,CAAC,CAAC,CAOhB;AAED,OAAO,IAAM2G,yBAAyB,gBAAGxH,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iHAIjCZ,OAAO,CAACa,EAAE,CAI3B;AAED,OAAO,IAAM6F,gBAAgB,gBAAGzH,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,8GAExBZ,OAAO,CAACa,EAAE,CAQ3B;AAED,OAAO,IAAM8F,yBAAyB,gBAAG1H,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mGAEjCZ,OAAO,CAACa,EAAE,CAK3B;AAED,OAAO,IAAM+F,gBAAgB,gBAAG3H,MAAM,CAAC4H,KAAK,CAAAnG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gNAUxClB,mBAAmB,CAAC,MAAM,CAAC,EAE3B,UAAAoH,MAAA;EAAA,IAAGC,mBAAmB,GAAAD,MAAA,CAAnBC,mBAAmB;EAAA,OACtBA,mBAAmB,IACnB7H,GAAG,wBAEF;AAAA,GAYQW,MAAM,CAAC4C,MAAM,CAEzB"}
1
+ {"version":3,"file":"SuperSelect.styles.js","names":["Virtuoso","styled","css","Box","Button","StyledButton","Card","StyledCheckboxLabel","Pill","StyledCircle","getTypographyIntent","typographyWeights","borderRadius","colors","getEllipsis","getFocus","spacing","dataQa","focused","hovered","optionMinHeight","checkedIconPlaceholderWidth","styledSelectButtonDefaultWidth","extendedSelectMenuWidth","PillSelectOptionWrapper","div","withConfig","displayName","componentId","xs","lg","PillSelectLabel","PillSelectLabelWrapper","_ref","disabled","StyledCheckboxContainer","StyledCheckmarkContainer","blue50","sm","StyledWrapper","StyledMenu","StyledOptions","_ref2","_ref2$$scrollable","$scrollable","StyledItemContent","StyledOptionGroupLabel","md","StyledItemLabel","_ref3","$draggable","StyledDraggableWrapper","StyledGrip","StyledFooter","gray85","StyledHeader","StyledEmptyMessage","gray45","StyledSearchContainer","StyledGroup","gray15","_ref4","$clickable","semibold","StyledItem","_ref5","$emptyMinHeight","_ref6","$isDraggingOver","$highlighted","_ref7","$disabled","$isDraggingDisabled","gray96","_ref8","concat","_ref9","$selected","_ref0","$isDraggable","_ref1","$isDragging","StyledSelectAll","StyledDroppable","StyledSelectMenu","StyledLabel","_ref10","$hoverable","StyledIndicators","StyledClearIcon","StyledSpinner","StyledArrowContainer","StyledArrow","span","StyledArrowOutline","polygon","StyledArrowFill","StyledTrigger","white","gray50","_ref11","$block","gray20","_ref12","_ref12$$placeholder","$placeholder","_ref13","gray94","gray70","_ref14","$error","red50","_ref15","$hasClearIcon","_ref16","$multiple","_ref17","$open","_ref18","_ref18$$placeholder","StyledOverlay","StyledVirtuoso","StyledEllipses","StyledMultiValueContainer","StyledMultiValue","StyledMultiInputContainer","StyledMultiInput","input","_ref19","$isNavigatingTokens"],"sources":["../../src/SuperSelect/SuperSelect.styles.ts"],"sourcesContent":["import { Virtuoso } from 'react-virtuoso'\nimport styled, { css } from 'styled-components'\nimport { Box } from '../Box/Box'\nimport { Button } from '../Button'\nimport { StyledButton } from '../Button/Button.styles'\nimport { Card } from '../Card/Card'\nimport { StyledCheckboxLabel } from '../Checkbox/Checkbox.styles'\nimport { Pill } from '../Pill/Pill'\nimport { StyledCircle } from '../Spinner/Spinner.styles'\nimport {\n getTypographyIntent,\n typographyWeights,\n} from '../Typography/Typography.styles'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport type SuperSelectStyledTriggerProps = {\n $block?: boolean\n $disabled?: boolean\n $error?: boolean\n $hasClearIcon?: boolean\n $loading?: boolean\n $multiple?: boolean\n $open?: boolean\n $placeholder?: boolean\n}\n\nexport const dataQa = {\n focused: 'core-select-focused',\n hovered: 'core-select-hovered',\n}\n\nconst optionMinHeight = 32\n\nconst checkedIconPlaceholderWidth = 32\n\nconst styledSelectButtonDefaultWidth = 248\n\nexport const extendedSelectMenuWidth = 360\n\nexport const PillSelectOptionWrapper = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ${spacing.xs}px ${spacing.lg}px;\n`\n\nexport const PillSelectLabel = styled(Pill)`\n ${getEllipsis}\n`\n\nexport const PillSelectLabelWrapper = styled.div<{ disabled?: boolean }>`\n display: flex;\n max-width: 100%;\n pointer-events: auto;\n\n ${({ disabled }) =>\n disabled &&\n css`\n pointer-events: none;\n `}\n`\n\nexport const StyledCheckboxContainer = styled.div`\n padding-left: ${spacing.lg}px;\n`\n\nexport const StyledCheckmarkContainer = styled.div`\n align-items: center;\n color: ${colors.blue50};\n display: inline-flex;\n flex-shrink: 0;\n padding: 0 ${spacing.lg}px 0 ${spacing.sm}px;\n`\n\n// Do not merge with StyledMenu, needed for max-height working in IE\nexport const StyledWrapper = styled.div`\n display: flex;\n max-height: inherit;\n min-width: inherit;\n outline: none;\n width: inherit;\n`\n\nexport const StyledMenu = styled.div`\n display: flex;\n flex-direction: column;\n outline: 0;\n width: 100%;\n`\n\nexport const StyledOptions = styled.div<{ $scrollable?: boolean }>`\n flex-basis: auto;\n flex-grow: 1;\n flex-shrink: 1;\n min-height: ${optionMinHeight}px;\n ${({ $scrollable = true }) => $scrollable && `overflow-y: auto`};\n padding: ${spacing.sm}px 0;\n position: relative;\n overflow: hidden;\n\n &:focus {\n ${getFocus()}\n margin: -1px;\n }\n`\n\nexport const StyledItemContent = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n`\n\nexport const StyledOptionGroupLabel = styled.div`\n padding: ${spacing.md}px 0 ${spacing.xs}px ${spacing.lg}px;\n`\n\nexport const StyledItemLabel = styled.div<{\n $draggable?: boolean\n $selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n}>`\n ${({ $draggable }) => {\n return css`\n padding: ${spacing.xs}px ${$draggable ? 0 : spacing.lg}px;\n overflow-wrap: anywhere;\n `\n }}\n`\n\nexport const StyledDraggableWrapper = styled.div`\n display: flex;\n width: 100%;\n align-items: center;\n`\n\nexport const StyledGrip = styled.div`\n padding: 0 2px;\n height: 24px;\n visibility: hidden;\n`\n\nexport const StyledFooter = styled(Box)`\n border-top: 1px solid ${colors.gray85};\n`\n\nexport const StyledHeader = styled.div``\n\nexport const StyledEmptyMessage = styled.div`\n ${getTypographyIntent('body')};\n\n padding: ${spacing.md}px ${spacing.lg}px;\n color: ${colors.gray45};\n`\n\nexport const StyledSearchContainer = styled.div`\n padding: ${spacing.lg}px ${spacing.lg}px ${spacing.sm}px;\n\n ${StyledButton} > * {\n pointer-events: none;\n }\n`\n\nexport const StyledGroup = styled.div<{ $clickable?: boolean }>`\n ${getTypographyIntent('body')}\n\n color: ${colors.gray15};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n font-weight: ${typographyWeights.semibold};\n padding: ${spacing.xs}px ${spacing.lg}px;\n\n &:not(:first-child) {\n padding-top: ${spacing.md + spacing.xs}px;\n }\n\n && {\n padding: 0;\n }\n\n ${StyledOptionGroupLabel} {\n padding: ${spacing.xs}px ${spacing.lg} px;\n }\n\n &:not(:first-child) {\n ${StyledOptionGroupLabel} {\n padding-top: ${spacing.md + spacing.xs} px;\n }\n }\n`\n\nexport const StyledItem = styled.div<{\n $disabled?: boolean\n $selected?: boolean\n $highlighted?: boolean\n $isDraggable?: boolean\n $isDragging?: boolean\n $emptyMinHeight?: number\n $isDraggingOver?: boolean\n $isDraggingDisabled?: boolean\n}>`\n ${getTypographyIntent('body')};\n\n align-items: center;\n cursor: pointer;\n list-style-type: none;\n display: flex;\n padding: 0;\n\n ${({ $emptyMinHeight }) => {\n return css`\n &:empty {\n min-height: ${$emptyMinHeight}px;\n }\n `\n }}\n\n ${({ $isDraggingOver, $highlighted }) => {\n return (\n $isDraggingOver &&\n $highlighted &&\n css`\n background-color: initial;\n `\n )\n }}\n\n ${({ $isDraggingOver, $disabled, $isDraggingDisabled }) => {\n return (\n ($isDraggingOver || $disabled || $isDraggingDisabled) &&\n css`\n &:hover {\n ${StyledGrip} {\n visibility: hidden;\n }\n }\n `\n )\n }}\n\n a {\n // We decided to use a negative margin trick here to allow us to continue\n // to use listNavigation without having to rewrite a bunch of code in js\n color: ${colors.gray15};\n display: block;\n margin: -${spacing.xs}px -${spacing.lg}px;\n padding: ${spacing.xs}px ${spacing.lg}px;\n text-decoration: none;\n\n &:hover {\n color: ${colors.gray15};\n text-decoration: none;\n }\n }\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n\n ${({ $highlighted }) => $highlighted && `background-color: ${colors.gray96};`}\n\n &:hover,\n &:active {\n ${StyledGrip} {\n visibility: visible;\n }\n }\n\n ${StyledCheckboxLabel} {\n color: inherit;\n cursor: pointer;\n }\n\n ${({ $disabled, $selected }) => {\n if ($disabled) {\n return css`\n &,\n ${StyledCheckboxLabel} {\n color: ${colors.gray85};\n cursor: default;\n }\n `\n } else if ($selected) {\n return css`\n color: ${colors.blue50};\n font-weight: 700;\n\n a,\n a:hover {\n color: ${colors.blue50};\n text-decoration: none;\n }\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n `\n }\n\n return css`\n color: ${colors.gray15};\n\n &[data-highlighted='true'] {\n background-color: ${colors.gray96};\n }\n `\n }}\n\n ${({ $isDraggable }) => {\n if ($isDraggable) {\n return css`\n ${StyledCheckboxLabel} {\n cursor: grab;\n\n // The unchecked and checked icons\n &:before,\n &:after {\n cursor: pointer;\n }\n }\n\n &&& {\n padding-left: 0;\n }\n `\n }\n }}\n\n ${({ $isDragging }) => {\n if ($isDragging) {\n return css`\n background-color: ${colors.gray96};\n\n ${StyledGrip} {\n visibility: visible;\n }\n `\n }\n }}\n`\n\nexport const StyledSelectAll = styled(Box)`\n padding-top: ${spacing.md}px;\n padding-bottom: ${spacing.md}px;\n border-bottom: 1px solid ${colors.gray85};\n`\n\nexport const StyledDroppable = styled.div`\n ${StyledGroup}, ${StyledItem} {\n padding-left: 28px;\n }\n`\n\nexport const StyledSelectMenu = styled(Card)`\n display: flex;\n max-height: 40vh;\n max-width: ${styledSelectButtonDefaultWidth}px;\n min-width: inherit;\n`\n\nexport const StyledLabel = styled.div<{ $hoverable: boolean }>`\n ${getEllipsis()}\n flex-grow: 1;\n margin-right: ${spacing.sm}px;\n outline: none;\n pointer-events: ${({ $hoverable }) => ($hoverable ? 'initial' : 'none')};\n user-select: none;\n`\n\nexport const StyledIndicators = styled.div`\n align-items: center;\n align-self: flex-start;\n display: flex;\n height: 34px;\n justify-content: flex-end;\n margin-left: ${spacing.xs}px;\n min-width: 40px;\n width: 40px;\n`\n\nexport const StyledClearIcon = styled(Button)``\n\nexport const StyledSpinner = styled.div`\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n justify-content: center;\n line-height: 0;\n`\n\nexport const StyledArrowContainer = styled.div`\n align-items: center;\n display: inline-flex;\n height: 16px;\n justify-content: flex-end;\n margin-left: ${spacing.sm}px;\n width: 8px;\n`\n\nexport const StyledArrow = styled.span`\n display: inline-flex;\n\n svg {\n fill: ${colors.gray45};\n }\n`\n\nexport const StyledArrowOutline = styled.polygon``\n\nexport const StyledArrowFill = styled.polygon``\n\nexport const StyledTrigger = styled.div<SuperSelectStyledTriggerProps>`\n ${getTypographyIntent('body')}\n\n align-items: center;\n background-color: ${colors.white};\n border-color: ${colors.gray50};\n border-radius: ${borderRadius.md}px;\n border-style: solid;\n border-width: 1px;\n color: ${colors.gray15};\n cursor: pointer;\n display: inline-flex;\n height: 36px;\n min-height: 36px;\n outline: none;\n padding: 0 ${spacing.md}px;\n position: relative;\n white-space: nowrap;\n width: ${({ $block }) =>\n $block ? '100%' : `${styledSelectButtonDefaultWidth}px`};\n\n &::placeholder {\n border-color: ${colors.gray45};\n }\n\n &:hover,\n &:active,\n &[data-qa=${dataQa.hovered}] {\n background-color: ${colors.white};\n border-color: ${colors.gray20};\n color: ${colors.gray15};\n }\n\n &:focus,\n &[data-qa=${dataQa.focused}] {\n ${getFocus()}\n\n ${StyledCircle} {\n stroke: ${colors.blue50};\n }\n }\n\n ${({ $placeholder = false }) =>\n $placeholder &&\n css`\n ${StyledLabel} {\n color: ${colors.gray45};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n background-color: ${colors.gray94};\n border-color: ${colors.gray50};\n color: ${colors.gray45};\n cursor: default;\n pointer-events: none;\n\n ${StyledLabel} {\n color: ${colors.gray70};\n }\n\n ${StyledArrow} {\n svg {\n fill: ${colors.gray70};\n }\n }\n `}\n\n ${({ $error, $disabled }) => {\n if ($error && !$disabled) {\n return css`\n &,\n &:hover {\n border-color: ${colors.red50};\n border-color: var(--core-input-error-border-color, ${colors.red50});\n }\n &:hover:focus {\n ${getFocus()}\n }\n `\n }\n }}\n\n ${({ $hasClearIcon }) => css`\n ${StyledClearIcon} {\n opacity: ${$hasClearIcon ? 1 : 0};\n }\n `}\n\n ${({ $multiple }) =>\n $multiple &&\n css`\n height: auto;\n\n &:focus-within {\n ${getFocus()}\n }\n `}\n\n ${({ $open, $hasClearIcon }) =>\n $open &&\n $hasClearIcon &&\n css`\n ${StyledClearIcon} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n\n ${({ $open, $placeholder = false }) =>\n $open &&\n $placeholder &&\n css`\n ${StyledLabel} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n }\n`\n\nexport const StyledOverlay = styled(Card)`\n display: flex;\n flex-direction: column;\n`\n\nexport const StyledVirtuoso = styled(Virtuoso)`\n flex: 1 1 auto;\n`\n\nexport const StyledEllipses = styled.div`\n ${getEllipsis()}\n display: inline-flex;\n\n > div {\n display: inline-flex;\n width: 100%;\n }\n`\n\nexport const StyledMultiValueContainer = styled.div`\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n min-width: 0;\n width: 100%;\n`\n\nexport const StyledMultiValue = styled.div`\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n flex: 0 1 auto;\n\n > div {\n max-width: 178px;\n width: 100%;\n }\n`\n\nexport const StyledMultiInputContainer = styled.div`\n margin-bottom: 2px;\n margin-right: ${spacing.xs}px;\n margin-top: 2px;\n flex: 1;\n max-width: 100%;\n min-width: 24px;\n`\n\nexport const StyledMultiInput = styled.input<{\n $isNavigatingTokens?: boolean\n}>`\n background-color: transparent;\n border-width: 0;\n font-family: inherit;\n padding: 0;\n height: 24px;\n width: 100%;\n\n ${getTypographyIntent('body')}\n\n ${({ $isNavigatingTokens }) =>\n $isNavigatingTokens &&\n css`\n color: transparent;\n `}\n\n &::-ms-clear {\n display: none;\n }\n\n &:focus {\n box-shadow: none;\n outline: none;\n }\n\n &::placeholder {\n color: ${colors.gray45};\n }\n`\n"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,GAAG,QAAQ,YAAY;AAChC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,mBAAmB,QAAQ,6BAA6B;AACjE,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,YAAY,QAAQ,2BAA2B;AACxD,SACEC,mBAAmB,EACnBC,iBAAiB,QACZ,iCAAiC;AACxC,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,WAAW,EAAEC,QAAQ,QAAQ,mBAAmB;AACzD,SAASC,OAAO,QAAQ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8GAExBZ,OAAO,CAACa,EAAE,CAQ3B;AAED,OAAO,IAAMgG,yBAAyB,gBAAG5H,MAAM,CAACwB,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mGAEjCZ,OAAO,CAACa,EAAE,CAK3B;AAED,OAAO,IAAMiG,gBAAgB,gBAAG7H,MAAM,CAAC8H,KAAK,CAAArG,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,gNAUxClB,mBAAmB,CAAC,MAAM,CAAC,EAE3B,UAAAsH,MAAA;EAAA,IAAGC,mBAAmB,GAAAD,MAAA,CAAnBC,mBAAmB;EAAA,OACtBA,mBAAmB,IACnB/H,GAAG,wBAEF;AAAA,GAYQW,MAAM,CAAC4C,MAAM,CAEzB"}
@@ -271,11 +271,6 @@ export function useSuperSelect(_ref3) {
271
271
  if (!Array.isArray(currentValue) || currentSelectableOptions.length === 0) {
272
272
  return false;
273
273
  }
274
-
275
- // Early exit if values count doesn't match options count
276
- if (currentValue.length < currentSelectableOptions.length) {
277
- return false;
278
- }
279
274
  var valueSet = new Set(currentValue);
280
275
 
281
276
  // Use early termination for better performance
@@ -311,17 +306,19 @@ export function useSuperSelect(_ref3) {
311
306
  * - Single pass to build current options map and detect new ones
312
307
  * - Set-based deduplication for efficient value management
313
308
  *
314
- * @param currentSelectableOptions - Current array of selectable options
315
309
  * @param currentValue - Current selected values
316
310
  */
317
- var executeAutoSelection = React.useCallback(function (currentSelectableOptions, currentValue) {
311
+ var executeAutoSelection = React.useCallback(function (currentValue) {
318
312
  // Early exit conditions for performance
319
313
  if (!isSelectAllActive || !multiple || !Array.isArray(currentValue) || isProcessingAutoSelectionRef.current) {
320
314
  return;
321
315
  }
316
+ var selectableOptions = options.filter(function (opt) {
317
+ return !getOptionIsOptgroup(opt);
318
+ });
322
319
  var currentOptionKeys = new Set();
323
320
  var newlyAddedOptions = [];
324
- var _iterator2 = _createForOfIteratorHelper(currentSelectableOptions),
321
+ var _iterator2 = _createForOfIteratorHelper(selectableOptions),
325
322
  _step2;
326
323
  try {
327
324
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -550,9 +547,9 @@ export function useSuperSelect(_ref3) {
550
547
  */
551
548
  var autoSelectionEffect = React.useCallback(function () {
552
549
  if (selectAllEnabled && multiple && isSelectAllActive && Array.isArray(value) && value.length) {
553
- debouncedAutoSelection(selectableOptions, value);
550
+ debouncedAutoSelection(value);
554
551
  }
555
- }, [selectAllEnabled, multiple, isSelectAllActive, value, debouncedAutoSelection, selectableOptions]);
552
+ }, [selectAllEnabled, multiple, isSelectAllActive, value, debouncedAutoSelection]);
556
553
 
557
554
  /**
558
555
  * Effect that manages auto-selection behavior and cleanup.
@@ -700,7 +697,7 @@ export function useSuperSelect(_ref3) {
700
697
  * Select All activates when all selectable options become selected,
701
698
  * but only if it wasn't already active (prevents unnecessary state changes).
702
699
  *
703
- * @param newValue - The new array of selected values to evaluate
700
+ * @param currentSelectableOptions - Current array of selectable options to check against
704
701
  * @returns true if Select All should be activated, false otherwise
705
702
  */
706
703
  var shouldActivateSelectAll = React.useCallback(function (currentSelectableOptions) {
@@ -709,6 +706,9 @@ export function useSuperSelect(_ref3) {
709
706
 
710
707
  // Centralize select all active state
711
708
  React.useEffect(function () {
709
+ var selectableOptions = options.filter(function (opt) {
710
+ return !getOptionIsOptgroup(opt);
711
+ });
712
712
  var shouldBeActive = shouldActivateSelectAll(selectableOptions) && selectableOptions.length && value.length;
713
713
 
714
714
  // When Select All is already active and new selectable options are added,