@procore/core-react 12.25.0 → 12.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/CHANGELOG.md +11 -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/Banner/index.d.ts +1 -1
  9. package/dist/Banner/index.js.map +1 -1
  10. package/dist/Box/Box.styles.js +1 -1
  11. package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
  12. package/dist/Button/Button.styles.js +5 -5
  13. package/dist/Calendar/Calendar.styles.js +8 -8
  14. package/dist/Card/Card.styles.js +1 -1
  15. package/dist/Checkbox/Checkbox.styles.js +6 -6
  16. package/dist/Checkbox/CheckboxTooltip.js +1 -1
  17. package/dist/ContactItem/ContactItem.styles.js +5 -5
  18. package/dist/Content/Content.styles.js +2 -2
  19. package/dist/DateInput/DateInput.styles.js +6 -6
  20. package/dist/DetailPage/DetailPage.d.ts +1 -1
  21. package/dist/DetailPage/DetailPage.styles.js +7 -7
  22. package/dist/Dropdown/Dropdown.styles.js +3 -3
  23. package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
  24. package/dist/Dropzone/Dropzone.js +1 -1
  25. package/dist/Dropzone/Dropzone.styles.js +9 -9
  26. package/dist/EmptyState/EmptyState.styles.js +6 -6
  27. package/dist/Field/Field.styles.js +3 -3
  28. package/dist/FileList/FileList.styles.js +4 -4
  29. package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
  30. package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
  31. package/dist/FileSelect/FileSelect.styles.js +2 -2
  32. package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
  33. package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
  34. package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
  35. package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
  36. package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
  37. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.d.ts +7 -7
  38. package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
  39. package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
  40. package/dist/FileToken/FileToken.styles.js +4 -4
  41. package/dist/FilterToken/FilterToken.styles.js +5 -5
  42. package/dist/FlexList/FlexList.styles.js +1 -1
  43. package/dist/Form/Form.styles.js +14 -14
  44. package/dist/Form/StyledFormikForm.styles.js +2 -2
  45. package/dist/Form/index.d.ts +1 -1
  46. package/dist/Form/index.js.map +1 -1
  47. package/dist/GhostPlaceholder/GhostPlaceholder.js +9 -0
  48. package/dist/GhostPlaceholder/GhostPlaceholder.js.map +1 -1
  49. package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
  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/MenuImperative/MenuImperative.styles.js +10 -10
  57. package/dist/Modal/Modal.d.ts +1 -1
  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.js +5 -2
  63. package/dist/NumberInput/NumberInput.js.map +1 -1
  64. package/dist/NumberInput/NumberInput.styles.js +7 -7
  65. package/dist/Overlay/OverlayArrow.styles.js +1 -1
  66. package/dist/PageLayout/PageLayout.styles.js +16 -16
  67. package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
  68. package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
  69. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.d.ts +1 -1
  70. package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
  71. package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
  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 +7 -7
  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 +9 -9
  86. package/dist/SettingsPage/SettingsPage.d.ts +1 -1
  87. package/dist/Slider/Slider.styles.js +5 -5
  88. package/dist/Spinner/Spinner.styles.js +7 -7
  89. package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
  90. package/dist/SuperSelect/SuperSelect.components.d.ts +3 -1
  91. package/dist/SuperSelect/SuperSelect.components.js +5 -1
  92. package/dist/SuperSelect/SuperSelect.components.js.map +1 -1
  93. package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
  94. package/dist/SuperSelect/SuperSelect.styles.js +37 -37
  95. package/dist/SuperSelect/SuperSelect.types.d.ts +2 -0
  96. package/dist/SuperSelect/SuperSelect.types.js.map +1 -1
  97. package/dist/SuperSelect/useSuperSelect.d.ts +1 -1
  98. package/dist/SuperSelect/useSuperSelect.js +28 -1
  99. package/dist/SuperSelect/useSuperSelect.js.map +1 -1
  100. package/dist/Switch/Switch.styles.js +4 -4
  101. package/dist/Table/Table.styles.d.ts +2 -2
  102. package/dist/Table/Table.styles.js +28 -28
  103. package/dist/Table/index.d.ts +1 -1
  104. package/dist/Table/index.js.map +1 -1
  105. package/dist/TableShelf/TableShelf.styles.js +5 -5
  106. package/dist/Tabs/Tabs.styles.js +15 -15
  107. package/dist/Tearsheet/Tearsheet.styles.js +5 -5
  108. package/dist/TextArea/TextArea.styles.js +4 -4
  109. package/dist/TextArea/TextArea.styles.js.map +1 -1
  110. package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
  111. package/dist/TextEditorOutput/index.d.ts +1 -0
  112. package/dist/TextEditorOutput/index.js.map +1 -1
  113. package/dist/Thumbnail/Thumbnail.styles.js +17 -17
  114. package/dist/Thumbnail/index.d.ts +1 -1
  115. package/dist/Thumbnail/index.js.map +1 -1
  116. package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +7 -7
  117. package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
  118. package/dist/TieredSelect/TieredSelect.styles.js +9 -9
  119. package/dist/Tile/Tile.styles.js +8 -8
  120. package/dist/Title/Title.styles.js +7 -7
  121. package/dist/Toast/Toast.styles.js +3 -3
  122. package/dist/ToggleButton/ToggleButton.styles.js +1 -1
  123. package/dist/Token/Token.styles.js +4 -4
  124. package/dist/Token/Token.styles.js.map +1 -1
  125. package/dist/ToolHeader/ToolHeader.styles.js +6 -6
  126. package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
  127. package/dist/Tooltip/Tooltip.styles.js +2 -2
  128. package/dist/Tree/Tree.styles.js +9 -9
  129. package/dist/Typeahead/Typeahead.styles.js +3 -3
  130. package/dist/Typography/Typography.styles.js +1 -1
  131. package/dist/Typography/Typography.table.story.js +2 -2
  132. package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
  133. package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
  134. package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
  135. package/dist/_typedoc/Badge/Badge.types.json +6 -6
  136. package/dist/_typedoc/Banner/Banner.types.json +13 -13
  137. package/dist/_typedoc/Box/Box.types.json +68 -68
  138. package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
  139. package/dist/_typedoc/Button/Button.types.json +13 -13
  140. package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
  141. package/dist/_typedoc/Card/Card.types.json +6 -6
  142. package/dist/_typedoc/Checkbox/Checkbox.types.json +9 -9
  143. package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
  144. package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
  145. package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
  146. package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
  147. package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
  148. package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
  149. package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
  150. package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
  151. package/dist/_typedoc/FileList/FileList.types.json +9 -9
  152. package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
  153. package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
  154. package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
  155. package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
  156. package/dist/_typedoc/Flex/Flex.types.json +27 -27
  157. package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
  158. package/dist/_typedoc/Form/Form.types.json +741 -741
  159. package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
  160. package/dist/_typedoc/Grid/Grid.types.json +8 -8
  161. package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
  162. package/dist/_typedoc/Input/Input.types.json +2 -2
  163. package/dist/_typedoc/Link/Link.types.json +4 -4
  164. package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
  165. package/dist/_typedoc/Menu/Menu.types.json +62 -62
  166. package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
  167. package/dist/_typedoc/Modal/Modal.types.json +46 -46
  168. package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
  169. package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
  170. package/dist/_typedoc/Notation/Notation.types.json +4 -4
  171. package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
  172. package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
  173. package/dist/_typedoc/PageLayout/PageLayout.types.json +29 -29
  174. package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
  175. package/dist/_typedoc/Panel/Panel.types.json +28 -28
  176. package/dist/_typedoc/Pill/Pill.types.json +2 -2
  177. package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
  178. package/dist/_typedoc/Popover/Popover.types.json +15 -15
  179. package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
  180. package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
  181. package/dist/_typedoc/Required/Required.types.json +5 -5
  182. package/dist/_typedoc/Search/Search.types.json +18 -18
  183. package/dist/_typedoc/Section/Section.types.json +15 -15
  184. package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
  185. package/dist/_typedoc/Select/Select.types.json +60 -60
  186. package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
  187. package/dist/_typedoc/Slider/Slider.types.json +6 -6
  188. package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
  189. package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +12 -12
  190. package/dist/_typedoc/Switch/Switch.types.json +3 -3
  191. package/dist/_typedoc/Table/Table.types.json +101 -101
  192. package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
  193. package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
  194. package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
  195. package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
  196. package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
  197. package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
  198. package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
  199. package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
  200. package/dist/_typedoc/Tile/Tile.types.json +8 -8
  201. package/dist/_typedoc/Title/Title.types.json +1 -1
  202. package/dist/_typedoc/Toast/Toast.types.json +4 -4
  203. package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
  204. package/dist/_typedoc/Token/Token.types.json +4 -4
  205. package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
  206. package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
  207. package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
  208. package/dist/_typedoc/Tree/Tree.types.json +86 -86
  209. package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
  210. package/dist/_typedoc/Typography/Typography.types.json +9 -9
  211. package/dist/_typedoc/_utils/types.json +3 -3
  212. package/dist/_utils/types.d.ts +35 -0
  213. package/dist/_utils/types.js.map +1 -1
  214. package/dist/index.d.ts +2 -1
  215. package/dist/index.js.map +1 -1
  216. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.components.js","names":["Draggable","Check","Clear","ClearIcon","Grip","React","FakeCheckbox","Spinner","Token","Tooltip","Typeahead","OverflowObserver","colors","InternalDragDropContext","draggableOptionIdSymbol","StyledArrow","StyledArrowContainer","StyledArrowFill","StyledArrowOutline","StyledCheckboxContainer","StyledCheckmarkContainer","StyledClearIcon","StyledDraggableWrapper","StyledEmptyMessage","StyledFooter","StyledGrip","StyledGroup","StyledHeader","StyledIndicators","StyledItem","StyledItemLabel","StyledLabel","StyledMultiInput","StyledMultiInputContainer","StyledMultiValue","StyledMultiValueContainer","StyledOptionGroupLabel","StyledOptions","StyledOverlay","StyledSearchContainer","StyledTrigger","useSuperSelectContext","Overlay","forwardRef","props","ref","createElement","_extends","SingleTrigger","ctx","_ref","isOverflowingX","showTooltip","config","disabled","state","open","label","selectedLabel","placeholder","labelComponent","components","Label","hoverable","trigger","overlay","MultiTrigger","multiple","Array","isArray","value","_ctx$state$value","MultiValueContainer","map","val","j","option","sourceOptions","find","o","MultiValue","key","index","MultiInputContainer","MultiInput","multiInput","TriggerContainer","Trigger","searchRef","useRef","useEffect","_searchRef$current","current","focus","Indicators","hasValue","length","loading","Loading","ArrowContainer","Arrow","up","down","width","height","_ref2","_objectWithoutProperties","_excluded","$hoverable","color","size","_ref3","left","right","_ref3$width","_ref3$height","_ref3$border","border","outline","fill","concat","focusable","points","clear","variant","icon","tabIndex","children","focused","activeTokenIndex","Remove","tokenClear","SearchContainer","Search","Header","Footer","padding","EmptyMessage","emptyMessage","Options","menu","Group","item","role","Item","_ref4","_props$dataKnownSiz","_ref4$isDragging","isDragging","_excluded2","_React$useContext","useContext","isDraggingOver","_React$useState","useState","_React$useState2","_slicedToArray","setSize","knownSize","prevSize","options","isDisabled","isSelected","isOptgroup","setNode","node","refs","navigationList","onClick","onSelect","$disabled","$emptyMinHeight","$highlighted","activeMenuIndex","$isDraggable","$isDragging","$isDraggingDisabled","Boolean","searchValue","$isDraggingOver","$selected","id","selectionStyle","CheckboxContainer","Checkbox","checked","CheckmarkContainer","Checkmark","OptionGroupHeader","_ref5","optgroup","OptionLabel","_ref6","$draggable","draggable","OptionContent","_ref7","DraggableOptionContent","_ref8","optionId","draggableId","isDragDisabled","provided","innerRef","draggableProps","dragHandleProps","DragHandle","gray45"],"sources":["../../src/SuperSelect/SuperSelect.components.tsx"],"sourcesContent":["import type { DraggableProvided } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { Draggable } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { Check, Clear as ClearIcon, Grip } from '@procore/core-icons'\nimport React from 'react'\nimport { FakeCheckbox } from '../Checkbox/Checkbox'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Token } from '../Token/Token'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { Typeahead } from '../Typeahead/Typeahead'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { colors } from '../_styles/colors'\nimport type { DivAttributes } from '../_utils/types'\nimport { InternalDragDropContext } from './SuperSelect'\nimport { draggableOptionIdSymbol } from './SuperSelect.constants'\nimport {\n StyledArrow,\n StyledArrowContainer,\n StyledArrowFill,\n StyledArrowOutline,\n StyledCheckboxContainer,\n StyledCheckmarkContainer,\n StyledClearIcon,\n StyledDraggableWrapper,\n StyledEmptyMessage,\n StyledFooter,\n StyledGrip,\n StyledGroup,\n StyledHeader,\n StyledIndicators,\n StyledItem,\n StyledItemLabel,\n StyledLabel,\n StyledMultiInput,\n StyledMultiInputContainer,\n StyledMultiValue,\n StyledMultiValueContainer,\n StyledOptionGroupLabel,\n StyledOptions,\n StyledOverlay,\n StyledSearchContainer,\n StyledTrigger,\n} from './SuperSelect.styles'\nimport type {\n SuperSelectMenuItemProps,\n SuperSelectOption,\n} from './SuperSelect.types'\nimport { useSuperSelectContext } from './useSuperSelect'\n\nexport const Overlay = React.forwardRef<HTMLDivElement, any>((props, ref) => {\n return <StyledOverlay ref={ref} {...props} />\n})\n\nexport const SingleTrigger = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <OverflowObserver>\n {({ isOverflowingX, ref }) => {\n const showTooltip =\n !ctx.config.disabled && isOverflowingX && !ctx.state.open\n\n const label = ctx.state.selectedLabel || ctx.config.placeholder\n\n const labelComponent = (\n <ctx.components.Label {...props} ref={ref} hoverable={showTooltip} />\n )\n\n return (\n <Tooltip trigger={showTooltip ? 'hover' : 'none'} overlay={label}>\n {labelComponent}\n </Tooltip>\n )\n }}\n </OverflowObserver>\n )\n}\n\nexport const MultiTrigger = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n if (ctx.config.multiple && Array.isArray(ctx.state.value)) {\n return (\n <ctx.components.MultiValueContainer {...props}>\n {ctx.state.value?.map((val, j) => {\n const option: SuperSelectOption = ctx.state.sourceOptions.find(\n (o) => ctx.option.value(o) === val\n )\n\n return (\n option && (\n <ctx.components.MultiValue key={val} index={j} option={option} />\n )\n )\n })}\n <ctx.components.MultiInputContainer>\n <ctx.components.MultiInput {...ctx.props.multiInput()} />\n </ctx.components.MultiInputContainer>\n </ctx.components.MultiValueContainer>\n )\n }\n\n return null\n}\n\nexport const TriggerContainer = StyledTrigger as\n | React.ForwardRefExoticComponent<any>\n | React.FC<any>\n\nexport const Trigger = React.forwardRef<HTMLDivElement, any>((props, ref) => {\n const ctx = useSuperSelectContext()\n\n const searchRef = React.useRef<HTMLInputElement>(null)\n\n React.useEffect(() => {\n searchRef.current?.focus()\n }, [ctx.state.value])\n\n return (\n <ctx.components.TriggerContainer ref={ref} {...props}>\n {ctx.config.multiple ? (\n <ctx.components.MultiTrigger />\n ) : (\n <ctx.components.SingleTrigger />\n )}\n <ctx.components.Indicators />\n </ctx.components.TriggerContainer>\n )\n})\n\nexport const Indicators = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n const hasValue = Array.isArray(ctx.state.value)\n ? ctx.state.value.length > 0\n : ctx.state.value\n\n return (\n <StyledIndicators>\n {hasValue && <ctx.components.Clear />}\n {ctx.config.loading ? (\n <ctx.components.Loading />\n ) : (\n <ctx.components.ArrowContainer>\n <ctx.components.Arrow\n up={ctx.state.open}\n down={!ctx.state.open}\n width={8}\n height={4}\n />\n </ctx.components.ArrowContainer>\n )}\n </StyledIndicators>\n )\n}\n\nexport const Label = React.forwardRef<HTMLDivElement, { hoverable: boolean }>(\n ({ hoverable, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledLabel\n {...props}\n {...ctx.props.label()}\n ref={ref}\n $hoverable={hoverable}\n >\n {ctx.state.selectedLabel || ctx.config.placeholder}\n </StyledLabel>\n )\n }\n)\n\nexport const Loading = () => {\n return <Spinner color=\"blue50\" size=\"xs\" />\n}\n\nexport const ArrowContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledArrowContainer {...props} />\n}\n\nexport const Arrow = ({\n up,\n down,\n left,\n right,\n width = 12,\n height = 12,\n border = 0,\n}: any) => {\n let outline = ''\n let fill = ''\n\n if (up) {\n outline = `0,${height} ${width},${height} {width / 2},0`\n // prettier-ignore\n fill = `${border},${height} ${width - border},${height} ${width / 2},${border * 2}`\n } else if (down) {\n outline = `0,0 ${width},0 ${width / 2},${height}`\n // prettier-ignore\n fill = `${border},0 ${width - border},0 ${width / 2},${height - border * 2}`\n } else if (left) {\n outline = `${width},0 ${width},${height} 0,${height / 2}`\n // prettier-ignore\n fill = `${width},${border} ${width},${height - border} ${border * 2},${height / 2}`\n } else if (right) {\n outline = `0,0 0,${height} ${width},${height / 2}`\n // prettier-ignore\n fill = `0,${border} 0,${height - border} ${width - border * 2},${height / 2}`\n }\n\n return (\n <StyledArrow>\n <svg height={height} width={width} focusable=\"false\">\n {border > 0 && <StyledArrowOutline points={outline} />}\n <StyledArrowFill points={fill} />\n </svg>\n </StyledArrow>\n )\n}\n\nexport const Clear = () => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledClearIcon\n {...ctx.props.clear()}\n size=\"sm\"\n variant=\"tertiary\"\n disabled={ctx.config.disabled}\n icon={<ClearIcon />}\n tabIndex={-1} // TODO revisit this accessibility\n />\n )\n}\n\nexport const MultiInputContainer = (props: React.PropsWithChildren<{}>) => {\n return <StyledMultiInputContainer>{props.children}</StyledMultiInputContainer>\n}\n\nexport const MultiInput = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledMultiInput ref={ref} {...props} />\n }\n)\n\nexport const MultiValue = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledMultiValue>\n <Token focused={ctx.state.activeTokenIndex === props.index}>\n <Token.Label>{ctx.option.label(props.option)}</Token.Label>\n <Token.Remove {...ctx.props.tokenClear(props.index)} />\n </Token>\n </StyledMultiValue>\n )\n}\n\nexport const MultiValueContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledMultiValueContainer {...props} />\n}\n\nexport const SearchContainer = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledSearchContainer ref={ref} {...props} />\n }\n)\n\nexport const Search = (props: React.PropsWithChildren<any>) => {\n return <Typeahead {...props} />\n}\n\nexport const Header = (props: React.PropsWithChildren<any>) => {\n return <StyledHeader {...props} />\n}\n\nexport const Footer = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledFooter ref={ref} {...props} padding=\"md lg\" />\n }\n)\n\nexport const EmptyMessage = (props: any) => {\n return (\n <StyledEmptyMessage {...props}>{props.emptyMessage}</StyledEmptyMessage>\n )\n}\n\nexport const Options = (props: React.PropsWithChildren<{}> & DivAttributes) => {\n const ctx = useSuperSelectContext()\n\n return <StyledOptions {...props} {...ctx.props.menu()} />\n}\n\nexport const Group = (props: React.PropsWithChildren<{}>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledGroup\n {...props}\n {...ctx.props.item()}\n role=\"separator\"\n aria-disabled\n />\n )\n}\n\nexport const Item = React.forwardRef<HTMLDivElement, SuperSelectMenuItemProps>(\n ({ children, isDragging = false, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n const { isDraggingOver } = React.useContext(InternalDragDropContext)\n const [size, setSize] = React.useState(0)\n\n const knownSize = props['data-known-size'] ?? 0\n\n React.useEffect(() => {\n setSize((prevSize) => (knownSize === 0 ? prevSize : knownSize))\n }, [knownSize])\n\n const index = props['data-index']\n\n const option = ctx.state.options[index]\n\n if (!option) {\n return null\n }\n\n const isDisabled = ctx.option.isDisabled(option)\n const isSelected = ctx.option.isSelected(option)\n const isOptgroup = ctx.option.isOptgroup(option)\n const value = ctx?.option.value(option)\n\n function setNode(node: HTMLElement | null) {\n if (ctx) {\n ctx.refs.navigationList.current[index] = node\n }\n }\n\n if (isOptgroup) {\n return <ctx.components.Group {...props}>{children}</ctx.components.Group>\n }\n\n return (\n <StyledItem\n {...props}\n {...ctx.props.item({\n onClick: () => ctx.state.onSelect(option),\n })}\n $disabled={ctx.option.isDisabled(option)}\n $emptyMinHeight={size}\n $highlighted={ctx.state.activeMenuIndex === index}\n $isDraggable={!isDisabled}\n $isDragging={isDragging}\n $isDraggingDisabled={Boolean(ctx.state.searchValue)}\n $isDraggingOver={isDraggingOver}\n $selected={isSelected}\n aria-posinset={index + 1}\n aria-selected={ctx.state.activeMenuIndex === index}\n aria-setsize={ctx.state.options.length || 0}\n id={`item-${value}`}\n ref={setNode}\n role=\"option\"\n >\n {ctx.config.selectionStyle === 'checkbox' && (\n <ctx.components.CheckboxContainer>\n <ctx.components.Checkbox\n disabled={isDisabled}\n checked={isSelected}\n />\n </ctx.components.CheckboxContainer>\n )}\n {children}\n {ctx.config.selectionStyle === 'checkmark' && (\n <ctx.components.CheckmarkContainer>\n {isSelected && <ctx.components.Checkmark />}\n </ctx.components.CheckmarkContainer>\n )}\n </StyledItem>\n )\n }\n)\n\nexport const OptionGroupHeader = ({ optgroup }: any) => {\n return <StyledOptionGroupLabel>{optgroup.label}</StyledOptionGroupLabel>\n}\n\nexport const OptionLabel = ({ option }: any) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledItemLabel $draggable={ctx.config.draggable}>\n {ctx.option.label(option)}\n </StyledItemLabel>\n )\n}\n\nexport const OptionContent = ({ option }: any) => {\n const ctx = useSuperSelectContext()\n\n if (ctx.option.isOptgroup(option)) {\n return <ctx.components.OptionGroupHeader optgroup={option} />\n }\n\n return <ctx.components.OptionLabel option={option} />\n}\n\nexport const DraggableOptionContent = ({ index, option }: any) => {\n const ctx = useSuperSelectContext()\n\n const disabled = ctx.option.isDisabled(option)\n const isOptgroup = ctx.option.isOptgroup(option)\n const optionId = isOptgroup ? option.id : option[draggableOptionIdSymbol]\n\n return (\n <Draggable\n draggableId={optionId}\n index={index}\n key={optionId}\n isDragDisabled={isOptgroup || disabled || Boolean(ctx.state.searchValue)}\n >\n {(provided: DraggableProvided) => {\n return (\n <StyledDraggableWrapper\n ref={provided.innerRef}\n {...provided.draggableProps}\n {...provided.dragHandleProps}\n >\n {!isOptgroup && <ctx.components.DragHandle />}\n <ctx.components.OptionContent index={index} option={option} />\n </StyledDraggableWrapper>\n )\n }}\n </Draggable>\n )\n}\n\nexport const DragHandle = (props: React.PropsWithChildren<any>) => {\n return (\n <StyledGrip {...props}>\n <Grip color={colors.gray45} />\n </StyledGrip>\n )\n}\n\nexport const CheckboxContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledCheckboxContainer {...props} />\n}\n\nexport const Checkbox = (props: React.PropsWithChildren<any>) => {\n return <FakeCheckbox {...props} />\n}\n\nexport const CheckmarkContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledCheckmarkContainer {...props} />\n}\n\nexport const Checkmark = (props: React.PropsWithChildren<any>) => {\n return <Check {...props} size=\"sm\" />\n}\n"],"mappings":";;;;;;;;;;;AACA,SAASA,SAAS,QAAQ,iEAAiE;AAC3F,SAASC,KAAK,EAAEC,KAAK,IAAIC,SAAS,EAAEC,IAAI,QAAQ,qBAAqB;AACrE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,sBAAsB;AACnD,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,SAAS,QAAQ,wBAAwB;AAClD,SAASC,gBAAgB,QAAQ,4BAA4B;AAC7D,SAASC,MAAM,QAAQ,mBAAmB;AAE1C,SAASC,uBAAuB,QAAQ,eAAe;AACvD,SAASC,uBAAuB,QAAQ,yBAAyB;AACjE,SACEC,WAAW,EACXC,oBAAoB,EACpBC,eAAe,EACfC,kBAAkB,E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AA,CAAAyC,aAAA,CAACG,GAAG,CAACY,UAAU,CAACsI,aAAa;MAACjH,KAAK,EAAEA,KAAM;MAACN,MAAM,EAAEA;IAAO,CAAE,CACvC,CAAC;EAE7B,CACS,CAAC;AAEhB,CAAC;AAED,OAAO,IAAMkI,UAAU,GAAG,SAAbA,UAAUA,CAAIlK,KAAmC,EAAK;EACjE,oBACEvC,KAAA,CAAAyC,aAAA,CAACrB,UAAU,EAAKmB,KAAK,eACnBvC,KAAA,CAAAyC,aAAA,CAAC1C,IAAI;IAACyG,KAAK,EAAEjG,MAAM,CAACmM;EAAO,CAAE,CACnB,CAAC;AAEjB,CAAC;AAED,OAAO,IAAMxB,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAI3I,KAAmC,EAAK;EACxE,oBAAOvC,KAAA,CAAAyC,aAAA,CAAC3B,uBAAuB,EAAKyB,KAAQ,CAAC;AAC/C,CAAC;AAED,OAAO,IAAM4I,QAAQ,GAAG,SAAXA,QAAQA,CAAI5I,KAAmC,EAAK;EAC/D,oBAAOvC,KAAA,CAAAyC,aAAA,CAACxC,YAAY,EAAKsC,KAAQ,CAAC;AACpC,CAAC;AAED,OAAO,IAAM8I,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAI9I,KAAmC,EAAK;EACzE,oBAAOvC,KAAA,CAAAyC,aAAA,CAAC1B,wBAAwB,EAAKwB,KAAQ,CAAC;AAChD,CAAC;AAED,OAAO,IAAM+I,SAAS,GAAG,SAAZA,SAASA,CAAI/I,KAAmC,EAAK;EAChE,oBAAOvC,KAAA,CAAAyC,aAAA,CAAC7C,KAAK,EAAA8C,QAAA,KAAKH,KAAK;IAAEkE,IAAI,EAAC;EAAI,EAAE,CAAC;AACvC,CAAC"}
1
+ {"version":3,"file":"SuperSelect.components.js","names":["Draggable","Check","Clear","ClearIcon","Grip","React","FakeCheckbox","Spinner","Token","Tooltip","Typeahead","OverflowObserver","colors","InternalDragDropContext","draggableOptionIdSymbol","StyledArrow","StyledArrowContainer","StyledArrowFill","StyledArrowOutline","StyledCheckboxContainer","StyledCheckmarkContainer","StyledClearIcon","StyledDraggableWrapper","StyledEmptyMessage","StyledFooter","StyledGrip","StyledGroup","StyledHeader","StyledIndicators","StyledItem","StyledItemLabel","StyledLabel","StyledMultiInput","StyledMultiInputContainer","StyledMultiValue","StyledMultiValueContainer","StyledOptionGroupLabel","StyledOptions","StyledOverlay","StyledSearchContainer","StyledTrigger","useSuperSelectContext","Overlay","forwardRef","props","ref","createElement","_extends","SingleTrigger","ctx","_ref","isOverflowingX","showTooltip","config","disabled","state","open","label","selectedLabel","placeholder","labelComponent","components","Label","hoverable","trigger","overlay","MultiTrigger","multiple","Array","isArray","value","_ctx$state$value","MultiValueContainer","map","val","j","option","sourceOptions","find","o","MultiValue","key","index","MultiInputContainer","MultiInput","multiInput","TriggerContainer","Trigger","searchRef","useRef","useEffect","_searchRef$current","current","focus","Indicators","hasValue","length","loading","Loading","ArrowContainer","Arrow","up","down","width","height","_ref2","_objectWithoutProperties","_excluded","$hoverable","color","size","_ref3","left","right","_ref3$width","_ref3$height","_ref3$border","border","outline","fill","concat","focusable","points","clear","variant","icon","tabIndex","children","focused","activeTokenIndex","Remove","tokenClear","SearchContainer","Search","Header","Footer","padding","EmptyMessage","emptyMessage","Options","menu","Group","item","role","Item","_ref4","_props$dataKnownSiz","_ref4$isDragging","isDragging","_excluded2","_React$useContext","useContext","isDraggingOver","_React$useState","useState","_React$useState2","_slicedToArray","setSize","knownSize","prevSize","options","isDisabled","isPartiallySelected","isSelected","isOptgroup","setNode","node","refs","navigationList","onClick","onSelect","$disabled","$emptyMinHeight","$highlighted","activeMenuIndex","$isDraggable","$isDragging","$isDraggingDisabled","Boolean","searchValue","$isDraggingOver","$selected","id","selectionStyle","CheckboxContainer","Checkbox","indeterminate","checked","CheckmarkContainer","Checkmark","OptionGroupHeader","_ref5","optgroup","OptionLabel","_ref6","$draggable","draggable","OptionContent","_ref7","DraggableOptionContent","_ref8","optionId","draggableId","isDragDisabled","provided","innerRef","draggableProps","dragHandleProps","DragHandle","gray45"],"sources":["../../src/SuperSelect/SuperSelect.components.tsx"],"sourcesContent":["import type { DraggableProvided } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { Draggable } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration'\nimport { Check, Clear as ClearIcon, Grip } from '@procore/core-icons'\nimport type { ComponentProps } from 'react'\nimport React from 'react'\nimport { FakeCheckbox } from '../Checkbox/Checkbox'\nimport { Spinner } from '../Spinner/Spinner'\nimport { Token } from '../Token/Token'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { Typeahead } from '../Typeahead/Typeahead'\nimport { OverflowObserver } from '../_hooks/OverflowObserver'\nimport { colors } from '../_styles/colors'\nimport type { DivAttributes } from '../_utils/types'\nimport { InternalDragDropContext } from './SuperSelect'\nimport { draggableOptionIdSymbol } from './SuperSelect.constants'\nimport {\n StyledArrow,\n StyledArrowContainer,\n StyledArrowFill,\n StyledArrowOutline,\n StyledCheckboxContainer,\n StyledCheckmarkContainer,\n StyledClearIcon,\n StyledDraggableWrapper,\n StyledEmptyMessage,\n StyledFooter,\n StyledGrip,\n StyledGroup,\n StyledHeader,\n StyledIndicators,\n StyledItem,\n StyledItemLabel,\n StyledLabel,\n StyledMultiInput,\n StyledMultiInputContainer,\n StyledMultiValue,\n StyledMultiValueContainer,\n StyledOptionGroupLabel,\n StyledOptions,\n StyledOverlay,\n StyledSearchContainer,\n StyledTrigger,\n} from './SuperSelect.styles'\nimport type {\n SuperSelectMenuItemProps,\n SuperSelectOption,\n} from './SuperSelect.types'\nimport { useSuperSelectContext } from './useSuperSelect'\n\nexport const Overlay = React.forwardRef<HTMLDivElement, any>((props, ref) => {\n return <StyledOverlay ref={ref} {...props} />\n})\n\nexport const SingleTrigger = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <OverflowObserver>\n {({ isOverflowingX, ref }) => {\n const showTooltip =\n !ctx.config.disabled && isOverflowingX && !ctx.state.open\n\n const label = ctx.state.selectedLabel || ctx.config.placeholder\n\n const labelComponent = (\n <ctx.components.Label {...props} ref={ref} hoverable={showTooltip} />\n )\n\n return (\n <Tooltip trigger={showTooltip ? 'hover' : 'none'} overlay={label}>\n {labelComponent}\n </Tooltip>\n )\n }}\n </OverflowObserver>\n )\n}\n\nexport const MultiTrigger = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n if (ctx.config.multiple && Array.isArray(ctx.state.value)) {\n return (\n <ctx.components.MultiValueContainer {...props}>\n {ctx.state.value?.map((val, j) => {\n const option: SuperSelectOption = ctx.state.sourceOptions.find(\n (o) => ctx.option.value(o) === val\n )\n\n return (\n option && (\n <ctx.components.MultiValue key={val} index={j} option={option} />\n )\n )\n })}\n <ctx.components.MultiInputContainer>\n <ctx.components.MultiInput {...ctx.props.multiInput()} />\n </ctx.components.MultiInputContainer>\n </ctx.components.MultiValueContainer>\n )\n }\n\n return null\n}\n\nexport const TriggerContainer = StyledTrigger as\n | React.ForwardRefExoticComponent<any>\n | React.FC<any>\n\nexport const Trigger = React.forwardRef<HTMLDivElement, any>((props, ref) => {\n const ctx = useSuperSelectContext()\n\n const searchRef = React.useRef<HTMLInputElement>(null)\n\n React.useEffect(() => {\n searchRef.current?.focus()\n }, [ctx.state.value])\n\n return (\n <ctx.components.TriggerContainer ref={ref} {...props}>\n {ctx.config.multiple ? (\n <ctx.components.MultiTrigger />\n ) : (\n <ctx.components.SingleTrigger />\n )}\n <ctx.components.Indicators />\n </ctx.components.TriggerContainer>\n )\n})\n\nexport const Indicators = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n const hasValue = Array.isArray(ctx.state.value)\n ? ctx.state.value.length > 0\n : ctx.state.value\n\n return (\n <StyledIndicators>\n {hasValue && <ctx.components.Clear />}\n {ctx.config.loading ? (\n <ctx.components.Loading />\n ) : (\n <ctx.components.ArrowContainer>\n <ctx.components.Arrow\n up={ctx.state.open}\n down={!ctx.state.open}\n width={8}\n height={4}\n />\n </ctx.components.ArrowContainer>\n )}\n </StyledIndicators>\n )\n}\n\nexport const Label = React.forwardRef<HTMLDivElement, { hoverable: boolean }>(\n ({ hoverable, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledLabel\n {...props}\n {...ctx.props.label()}\n ref={ref}\n $hoverable={hoverable}\n >\n {ctx.state.selectedLabel || ctx.config.placeholder}\n </StyledLabel>\n )\n }\n)\n\nexport const Loading = () => {\n return <Spinner color=\"blue50\" size=\"xs\" />\n}\n\nexport const ArrowContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledArrowContainer {...props} />\n}\n\nexport const Arrow = ({\n up,\n down,\n left,\n right,\n width = 12,\n height = 12,\n border = 0,\n}: any) => {\n let outline = ''\n let fill = ''\n\n if (up) {\n outline = `0,${height} ${width},${height} {width / 2},0`\n // prettier-ignore\n fill = `${border},${height} ${width - border},${height} ${width / 2},${border * 2}`\n } else if (down) {\n outline = `0,0 ${width},0 ${width / 2},${height}`\n // prettier-ignore\n fill = `${border},0 ${width - border},0 ${width / 2},${height - border * 2}`\n } else if (left) {\n outline = `${width},0 ${width},${height} 0,${height / 2}`\n // prettier-ignore\n fill = `${width},${border} ${width},${height - border} ${border * 2},${height / 2}`\n } else if (right) {\n outline = `0,0 0,${height} ${width},${height / 2}`\n // prettier-ignore\n fill = `0,${border} 0,${height - border} ${width - border * 2},${height / 2}`\n }\n\n return (\n <StyledArrow>\n <svg height={height} width={width} focusable=\"false\">\n {border > 0 && <StyledArrowOutline points={outline} />}\n <StyledArrowFill points={fill} />\n </svg>\n </StyledArrow>\n )\n}\n\nexport const Clear = () => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledClearIcon\n {...ctx.props.clear()}\n size=\"sm\"\n variant=\"tertiary\"\n disabled={ctx.config.disabled}\n icon={<ClearIcon />}\n tabIndex={-1} // TODO revisit this accessibility\n />\n )\n}\n\nexport const MultiInputContainer = (props: React.PropsWithChildren<{}>) => {\n return <StyledMultiInputContainer>{props.children}</StyledMultiInputContainer>\n}\n\nexport const MultiInput = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledMultiInput ref={ref} {...props} />\n }\n)\n\nexport const MultiValue = (props: React.PropsWithChildren<any>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledMultiValue>\n <Token focused={ctx.state.activeTokenIndex === props.index}>\n <Token.Label>{ctx.option.label(props.option)}</Token.Label>\n <Token.Remove {...ctx.props.tokenClear(props.index)} />\n </Token>\n </StyledMultiValue>\n )\n}\n\nexport const MultiValueContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledMultiValueContainer {...props} />\n}\n\nexport const SearchContainer = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledSearchContainer ref={ref} {...props} />\n }\n)\n\nexport const Search = (props: React.PropsWithChildren<any>) => {\n return <Typeahead {...props} />\n}\n\nexport const Header = (props: React.PropsWithChildren<any>) => {\n return <StyledHeader {...props} />\n}\n\nexport const Footer = React.forwardRef(\n (props: React.PropsWithChildren<any>, ref) => {\n return <StyledFooter ref={ref} {...props} padding=\"md lg\" />\n }\n)\n\nexport const EmptyMessage = (props: any) => {\n return (\n <StyledEmptyMessage {...props}>{props.emptyMessage}</StyledEmptyMessage>\n )\n}\n\nexport const Options = (props: React.PropsWithChildren<{}> & DivAttributes) => {\n const ctx = useSuperSelectContext()\n\n return <StyledOptions {...props} {...ctx.props.menu()} />\n}\n\nexport const Group = (props: React.PropsWithChildren<{}>) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledGroup\n {...props}\n {...ctx.props.item()}\n role=\"separator\"\n aria-disabled\n />\n )\n}\n\nexport const Item = React.forwardRef<HTMLDivElement, SuperSelectMenuItemProps>(\n ({ children, isDragging = false, ...props }, ref) => {\n const ctx = useSuperSelectContext()\n const { isDraggingOver } = React.useContext(InternalDragDropContext)\n const [size, setSize] = React.useState(0)\n\n const knownSize = props['data-known-size'] ?? 0\n\n React.useEffect(() => {\n setSize((prevSize) => (knownSize === 0 ? prevSize : knownSize))\n }, [knownSize])\n\n const index = props['data-index']\n\n const option = ctx.state.options[index]\n\n if (!option) {\n return null\n }\n\n const isDisabled = ctx.option.isDisabled(option)\n const isPartiallySelected = ctx.option.isPartiallySelected(option)\n const isSelected = ctx.option.isSelected(option)\n const isOptgroup = ctx.option.isOptgroup(option)\n const value = ctx?.option.value(option)\n\n function setNode(node: HTMLElement | null) {\n if (ctx) {\n ctx.refs.navigationList.current[index] = node\n }\n }\n\n if (isOptgroup) {\n return <ctx.components.Group {...props}>{children}</ctx.components.Group>\n }\n\n return (\n <StyledItem\n {...props}\n {...ctx.props.item({\n onClick: () => ctx.state.onSelect(option),\n })}\n $disabled={ctx.option.isDisabled(option)}\n $emptyMinHeight={size}\n $highlighted={ctx.state.activeMenuIndex === index}\n $isDraggable={!isDisabled}\n $isDragging={isDragging}\n $isDraggingDisabled={Boolean(ctx.state.searchValue)}\n $isDraggingOver={isDraggingOver}\n $selected={isSelected}\n aria-posinset={index + 1}\n aria-selected={ctx.state.activeMenuIndex === index}\n aria-setsize={ctx.state.options.length || 0}\n id={`item-${value}`}\n ref={setNode}\n role=\"option\"\n >\n {ctx.config.selectionStyle === 'checkbox' && (\n <ctx.components.CheckboxContainer>\n {isPartiallySelected && !isSelected ? (\n <ctx.components.Checkbox\n disabled={isDisabled}\n indeterminate={isPartiallySelected}\n />\n ) : (\n <ctx.components.Checkbox\n disabled={isDisabled}\n checked={isSelected}\n />\n )}\n </ctx.components.CheckboxContainer>\n )}\n {children}\n {ctx.config.selectionStyle === 'checkmark' && (\n <ctx.components.CheckmarkContainer>\n {isSelected && <ctx.components.Checkmark />}\n </ctx.components.CheckmarkContainer>\n )}\n </StyledItem>\n )\n }\n)\n\nexport const OptionGroupHeader = ({ optgroup }: any) => {\n return <StyledOptionGroupLabel>{optgroup.label}</StyledOptionGroupLabel>\n}\n\nexport const OptionLabel = ({ option }: any) => {\n const ctx = useSuperSelectContext()\n\n return (\n <StyledItemLabel $draggable={ctx.config.draggable}>\n {ctx.option.label(option)}\n </StyledItemLabel>\n )\n}\n\nexport const OptionContent = ({ option }: any) => {\n const ctx = useSuperSelectContext()\n\n if (ctx.option.isOptgroup(option)) {\n return <ctx.components.OptionGroupHeader optgroup={option} />\n }\n\n return <ctx.components.OptionLabel option={option} />\n}\n\nexport const DraggableOptionContent = ({ index, option }: any) => {\n const ctx = useSuperSelectContext()\n\n const disabled = ctx.option.isDisabled(option)\n const isOptgroup = ctx.option.isOptgroup(option)\n const optionId = isOptgroup ? option.id : option[draggableOptionIdSymbol]\n\n return (\n <Draggable\n draggableId={optionId}\n index={index}\n key={optionId}\n isDragDisabled={isOptgroup || disabled || Boolean(ctx.state.searchValue)}\n >\n {(provided: DraggableProvided) => {\n return (\n <StyledDraggableWrapper\n ref={provided.innerRef}\n {...provided.draggableProps}\n {...provided.dragHandleProps}\n >\n {!isOptgroup && <ctx.components.DragHandle />}\n <ctx.components.OptionContent index={index} option={option} />\n </StyledDraggableWrapper>\n )\n }}\n </Draggable>\n )\n}\n\nexport const DragHandle = (props: React.PropsWithChildren<any>) => {\n return (\n <StyledGrip {...props}>\n <Grip color={colors.gray45} />\n </StyledGrip>\n )\n}\n\nexport const CheckboxContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledCheckboxContainer {...props} />\n}\n\nexport const Checkbox = (\n props: React.PropsWithChildren<ComponentProps<typeof FakeCheckbox>>\n) => {\n return <FakeCheckbox {...props} />\n}\n\nexport const CheckmarkContainer = (props: React.PropsWithChildren<any>) => {\n return <StyledCheckmarkContainer {...props} />\n}\n\nexport const Checkmark = (props: React.PropsWithChildren<any>) => {\n return <Check {...props} size=\"sm\" />\n}\n"],"mappings":";;;;;;;;;;;AACA,SAASA,SAAS,QAAQ,iEAAiE;AAC3F,SAASC,KAAK,EAAEC,KAAK,IAAIC,SAAS,EAAEC,IAAI,QAAQ,qBAAqB;AAErE,OAAOC,KAAK,MAAM,OAA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A,QAAQA,CACnB7I,KAAmE,EAChE;EACH,oBAAOvC,KAAA,CAAAyC,aAAA,CAACxC,YAAY,EAAKsC,KAAQ,CAAC;AACpC,CAAC;AAED,OAAO,IAAMgJ,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIhJ,KAAmC,EAAK;EACzE,oBAAOvC,KAAA,CAAAyC,aAAA,CAAC1B,wBAAwB,EAAKwB,KAAQ,CAAC;AAChD,CAAC;AAED,OAAO,IAAMiJ,SAAS,GAAG,SAAZA,SAASA,CAAIjJ,KAAmC,EAAK;EAChE,oBAAOvC,KAAA,CAAAyC,aAAA,CAAC7C,KAAK,EAAA8C,QAAA,KAAKH,KAAK;IAAEkE,IAAI,EAAC;EAAI,EAAE,CAAC;AACvC,CAAC"}
@@ -3,6 +3,6 @@ import { Popover } from '../Popover';
3
3
  import { spacing } from '../_styles/spacing';
4
4
  export var StyledFilterPresetPopoverContent = /*#__PURE__*/styled(Popover.Content).withConfig({
5
5
  displayName: "StyledFilterPresetPopoverContent",
6
- componentId: "core-12_25_0__sc-y5qv7b-0"
6
+ componentId: "core-12_25_1__sc-y5qv7b-0"
7
7
  })(["padding:", "px ", "px;"], spacing.sm, spacing.lg);
8
8
  //# sourceMappingURL=SuperSelect.presets.styles.js.map
@@ -22,40 +22,40 @@ var styledSelectButtonDefaultWidth = 248;
22
22
  export var extendedSelectMenuWidth = 360;
23
23
  export var PillSelectOptionWrapper = /*#__PURE__*/styled.div.withConfig({
24
24
  displayName: "PillSelectOptionWrapper",
25
- componentId: "core-12_25_0__sc-1uf5708-0"
25
+ componentId: "core-12_25_1__sc-1uf5708-0"
26
26
  })(["display:flex;align-items:center;justify-content:space-between;padding:", "px ", "px;"], spacing.xs, spacing.lg);
27
27
  export var PillSelectLabel = /*#__PURE__*/styled(Pill).withConfig({
28
28
  displayName: "PillSelectLabel",
29
- componentId: "core-12_25_0__sc-1uf5708-1"
29
+ componentId: "core-12_25_1__sc-1uf5708-1"
30
30
  })(["", ""], getEllipsis);
31
31
  export var PillSelectLabelWrapper = /*#__PURE__*/styled.div.withConfig({
32
32
  displayName: "PillSelectLabelWrapper",
33
- componentId: "core-12_25_0__sc-1uf5708-2"
33
+ componentId: "core-12_25_1__sc-1uf5708-2"
34
34
  })(["display:flex;max-width:100%;pointer-events:auto;", ""], function (_ref) {
35
35
  var disabled = _ref.disabled;
36
36
  return disabled && css(["pointer-events:none;"]);
37
37
  });
38
38
  export var StyledCheckboxContainer = /*#__PURE__*/styled.div.withConfig({
39
39
  displayName: "StyledCheckboxContainer",
40
- componentId: "core-12_25_0__sc-1uf5708-3"
40
+ componentId: "core-12_25_1__sc-1uf5708-3"
41
41
  })(["padding-left:", "px;"], spacing.lg);
42
42
  export var StyledCheckmarkContainer = /*#__PURE__*/styled.div.withConfig({
43
43
  displayName: "StyledCheckmarkContainer",
44
- componentId: "core-12_25_0__sc-1uf5708-4"
44
+ componentId: "core-12_25_1__sc-1uf5708-4"
45
45
  })(["align-items:center;color:", ";display:inline-flex;flex-shrink:0;padding:0 ", "px 0 ", "px;"], colors.blue50, spacing.lg, spacing.sm);
46
46
 
47
47
  // Do not merge with StyledMenu, needed for max-height working in IE
48
48
  export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
49
49
  displayName: "StyledWrapper",
50
- componentId: "core-12_25_0__sc-1uf5708-5"
50
+ componentId: "core-12_25_1__sc-1uf5708-5"
51
51
  })(["display:flex;max-height:inherit;min-width:inherit;outline:none;width:inherit;"]);
52
52
  export var StyledMenu = /*#__PURE__*/styled.div.withConfig({
53
53
  displayName: "StyledMenu",
54
- componentId: "core-12_25_0__sc-1uf5708-6"
54
+ componentId: "core-12_25_1__sc-1uf5708-6"
55
55
  })(["display:flex;flex-direction:column;outline:0;width:100%;"]);
56
56
  export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
57
57
  displayName: "StyledOptions",
58
- componentId: "core-12_25_0__sc-1uf5708-7"
58
+ componentId: "core-12_25_1__sc-1uf5708-7"
59
59
  })(["flex-basis:auto;flex-grow:1;flex-shrink:1;min-height:", "px;", ";padding:", "px 0;position:relative;overflow:hidden;&:focus{", " margin:-1px;}"], optionMinHeight, function (_ref2) {
60
60
  var _ref2$$scrollable = _ref2.$scrollable,
61
61
  $scrollable = _ref2$$scrollable === void 0 ? true : _ref2$$scrollable;
@@ -63,53 +63,53 @@ export var StyledOptions = /*#__PURE__*/styled.div.withConfig({
63
63
  }, spacing.sm, getFocus());
64
64
  export var StyledItemContent = /*#__PURE__*/styled.div.withConfig({
65
65
  displayName: "StyledItemContent",
66
- componentId: "core-12_25_0__sc-1uf5708-8"
66
+ componentId: "core-12_25_1__sc-1uf5708-8"
67
67
  })(["display:flex;flex-direction:row;align-items:center;"]);
68
68
  export var StyledOptionGroupLabel = /*#__PURE__*/styled.div.withConfig({
69
69
  displayName: "StyledOptionGroupLabel",
70
- componentId: "core-12_25_0__sc-1uf5708-9"
70
+ componentId: "core-12_25_1__sc-1uf5708-9"
71
71
  })(["padding:", "px 0 ", "px ", "px;"], spacing.md, spacing.xs, spacing.lg);
72
72
  export var StyledItemLabel = /*#__PURE__*/styled.div.withConfig({
73
73
  displayName: "StyledItemLabel",
74
- componentId: "core-12_25_0__sc-1uf5708-10"
74
+ componentId: "core-12_25_1__sc-1uf5708-10"
75
75
  })(["", ""], function (_ref3) {
76
76
  var $draggable = _ref3.$draggable;
77
77
  return css(["padding:", "px ", "px;overflow-wrap:anywhere;"], spacing.xs, $draggable ? 0 : spacing.lg);
78
78
  });
79
79
  export var StyledDraggableWrapper = /*#__PURE__*/styled.div.withConfig({
80
80
  displayName: "StyledDraggableWrapper",
81
- componentId: "core-12_25_0__sc-1uf5708-11"
81
+ componentId: "core-12_25_1__sc-1uf5708-11"
82
82
  })(["display:flex;width:100%;align-items:center;"]);
83
83
  export var StyledGrip = /*#__PURE__*/styled.div.withConfig({
84
84
  displayName: "StyledGrip",
85
- componentId: "core-12_25_0__sc-1uf5708-12"
85
+ componentId: "core-12_25_1__sc-1uf5708-12"
86
86
  })(["padding:0 2px;height:24px;visibility:hidden;"]);
87
87
  export var StyledFooter = /*#__PURE__*/styled(Box).withConfig({
88
88
  displayName: "StyledFooter",
89
- componentId: "core-12_25_0__sc-1uf5708-13"
89
+ componentId: "core-12_25_1__sc-1uf5708-13"
90
90
  })(["border-top:1px solid ", ";"], colors.gray85);
91
91
  export var StyledHeader = /*#__PURE__*/styled.div.withConfig({
92
92
  displayName: "StyledHeader",
93
- componentId: "core-12_25_0__sc-1uf5708-14"
93
+ componentId: "core-12_25_1__sc-1uf5708-14"
94
94
  })([""]);
95
95
  export var StyledEmptyMessage = /*#__PURE__*/styled.div.withConfig({
96
96
  displayName: "StyledEmptyMessage",
97
- componentId: "core-12_25_0__sc-1uf5708-15"
97
+ componentId: "core-12_25_1__sc-1uf5708-15"
98
98
  })(["", ";padding:", "px ", "px;color:", ";"], getTypographyIntent('body'), spacing.md, spacing.lg, colors.gray45);
99
99
  export var StyledSearchContainer = /*#__PURE__*/styled.div.withConfig({
100
100
  displayName: "StyledSearchContainer",
101
- componentId: "core-12_25_0__sc-1uf5708-16"
101
+ componentId: "core-12_25_1__sc-1uf5708-16"
102
102
  })(["padding:", "px ", "px ", "px;", " > *{pointer-events:none;}"], spacing.lg, spacing.lg, spacing.sm, StyledButton);
103
103
  export var StyledGroup = /*#__PURE__*/styled.div.withConfig({
104
104
  displayName: "StyledGroup",
105
- componentId: "core-12_25_0__sc-1uf5708-17"
105
+ componentId: "core-12_25_1__sc-1uf5708-17"
106
106
  })(["", " color:", ";cursor:", ";font-weight:", ";padding:", "px ", "px;&:not(:first-child){padding-top:", "px;}&&{padding:0;}", "{padding:", "px ", " px;}&:not(:first-child){", "{padding-top:", " px;}}"], getTypographyIntent('body'), colors.gray15, function (_ref4) {
107
107
  var $clickable = _ref4.$clickable;
108
108
  return $clickable ? 'pointer' : 'default';
109
109
  }, typographyWeights.semibold, spacing.xs, spacing.lg, spacing.md + spacing.xs, StyledOptionGroupLabel, spacing.xs, spacing.lg, StyledOptionGroupLabel, spacing.md + spacing.xs);
110
110
  export var StyledItem = /*#__PURE__*/styled.div.withConfig({
111
111
  displayName: "StyledItem",
112
- componentId: "core-12_25_0__sc-1uf5708-18"
112
+ componentId: "core-12_25_1__sc-1uf5708-18"
113
113
  })(["", ";align-items:center;cursor:pointer;list-style-type:none;display:flex;padding:0;", " ", " ", " a{color:", ";display:block;margin:-", "px -", "px;padding:", "px ", "px;text-decoration:none;&:hover{color:", ";text-decoration:none;}}&[data-highlighted='true']{background-color:", ";}", " &:hover,&:active{", "{visibility:visible;}}", "{color:inherit;cursor:pointer;}", " ", " ", ""], getTypographyIntent('body'), function (_ref5) {
114
114
  var $emptyMinHeight = _ref5.$emptyMinHeight;
115
115
  return css(["&:empty{min-height:", "px;}"], $emptyMinHeight);
@@ -147,50 +147,50 @@ export var StyledItem = /*#__PURE__*/styled.div.withConfig({
147
147
  });
148
148
  export var StyledDroppable = /*#__PURE__*/styled.div.withConfig({
149
149
  displayName: "StyledDroppable",
150
- componentId: "core-12_25_0__sc-1uf5708-19"
150
+ componentId: "core-12_25_1__sc-1uf5708-19"
151
151
  })(["", ",", "{padding-left:28px;}"], StyledGroup, StyledItem);
152
152
  export var StyledSelectMenu = /*#__PURE__*/styled(Card).withConfig({
153
153
  displayName: "StyledSelectMenu",
154
- componentId: "core-12_25_0__sc-1uf5708-20"
154
+ componentId: "core-12_25_1__sc-1uf5708-20"
155
155
  })(["display:flex;max-height:40vh;max-width:", "px;min-width:inherit;"], styledSelectButtonDefaultWidth);
156
156
  export var StyledLabel = /*#__PURE__*/styled.div.withConfig({
157
157
  displayName: "StyledLabel",
158
- componentId: "core-12_25_0__sc-1uf5708-21"
158
+ componentId: "core-12_25_1__sc-1uf5708-21"
159
159
  })(["", " flex-grow:1;margin-right:", "px;outline:none;pointer-events:", ";user-select:none;"], getEllipsis(), spacing.sm, function (_ref10) {
160
160
  var $hoverable = _ref10.$hoverable;
161
161
  return $hoverable ? 'initial' : 'none';
162
162
  });
163
163
  export var StyledIndicators = /*#__PURE__*/styled.div.withConfig({
164
164
  displayName: "StyledIndicators",
165
- componentId: "core-12_25_0__sc-1uf5708-22"
165
+ componentId: "core-12_25_1__sc-1uf5708-22"
166
166
  })(["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);
167
167
  export var StyledClearIcon = /*#__PURE__*/styled(Button).withConfig({
168
168
  displayName: "StyledClearIcon",
169
- componentId: "core-12_25_0__sc-1uf5708-23"
169
+ componentId: "core-12_25_1__sc-1uf5708-23"
170
170
  })([""]);
171
171
  export var StyledSpinner = /*#__PURE__*/styled.div.withConfig({
172
172
  displayName: "StyledSpinner",
173
- componentId: "core-12_25_0__sc-1uf5708-24"
173
+ componentId: "core-12_25_1__sc-1uf5708-24"
174
174
  })(["align-items:center;display:flex;flex:0 0 auto;justify-content:center;line-height:0;"]);
175
175
  export var StyledArrowContainer = /*#__PURE__*/styled.div.withConfig({
176
176
  displayName: "StyledArrowContainer",
177
- componentId: "core-12_25_0__sc-1uf5708-25"
177
+ componentId: "core-12_25_1__sc-1uf5708-25"
178
178
  })(["align-items:center;display:inline-flex;height:16px;justify-content:flex-end;margin-left:", "px;width:8px;"], spacing.sm);
179
179
  export var StyledArrow = /*#__PURE__*/styled.span.withConfig({
180
180
  displayName: "StyledArrow",
181
- componentId: "core-12_25_0__sc-1uf5708-26"
181
+ componentId: "core-12_25_1__sc-1uf5708-26"
182
182
  })(["display:inline-flex;svg{fill:", ";}"], colors.gray45);
183
183
  export var StyledArrowOutline = /*#__PURE__*/styled.polygon.withConfig({
184
184
  displayName: "StyledArrowOutline",
185
- componentId: "core-12_25_0__sc-1uf5708-27"
185
+ componentId: "core-12_25_1__sc-1uf5708-27"
186
186
  })([""]);
187
187
  export var StyledArrowFill = /*#__PURE__*/styled.polygon.withConfig({
188
188
  displayName: "StyledArrowFill",
189
- componentId: "core-12_25_0__sc-1uf5708-28"
189
+ componentId: "core-12_25_1__sc-1uf5708-28"
190
190
  })([""]);
191
191
  export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
192
192
  displayName: "StyledTrigger",
193
- componentId: "core-12_25_0__sc-1uf5708-29"
193
+ componentId: "core-12_25_1__sc-1uf5708-29"
194
194
  })(["", " 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) {
195
195
  var $block = _ref11.$block;
196
196
  return $block ? '100%' : "".concat(styledSelectButtonDefaultWidth, "px");
@@ -225,31 +225,31 @@ export var StyledTrigger = /*#__PURE__*/styled.div.withConfig({
225
225
  });
226
226
  export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
227
227
  displayName: "StyledOverlay",
228
- componentId: "core-12_25_0__sc-1uf5708-30"
228
+ componentId: "core-12_25_1__sc-1uf5708-30"
229
229
  })(["display:flex;flex-direction:column;"]);
230
230
  export var StyledVirtuoso = /*#__PURE__*/styled(Virtuoso).withConfig({
231
231
  displayName: "StyledVirtuoso",
232
- componentId: "core-12_25_0__sc-1uf5708-31"
232
+ componentId: "core-12_25_1__sc-1uf5708-31"
233
233
  })(["flex:1 1 auto;"]);
234
234
  export var StyledEllipses = /*#__PURE__*/styled.div.withConfig({
235
235
  displayName: "StyledEllipses",
236
- componentId: "core-12_25_0__sc-1uf5708-32"
236
+ componentId: "core-12_25_1__sc-1uf5708-32"
237
237
  })(["", " display:inline-flex;> div{display:inline-flex;width:100%;}"], getEllipsis());
238
238
  export var StyledMultiValueContainer = /*#__PURE__*/styled.div.withConfig({
239
239
  displayName: "StyledMultiValueContainer",
240
- componentId: "core-12_25_0__sc-1uf5708-33"
240
+ componentId: "core-12_25_1__sc-1uf5708-33"
241
241
  })(["display:flex;flex-wrap:wrap;margin-bottom:2px;margin-right:", "px;margin-top:2px;min-width:0;width:100%;"], spacing.xs);
242
242
  export var StyledMultiValue = /*#__PURE__*/styled.div.withConfig({
243
243
  displayName: "StyledMultiValue",
244
- componentId: "core-12_25_0__sc-1uf5708-34"
244
+ componentId: "core-12_25_1__sc-1uf5708-34"
245
245
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:0 1 auto;> div{max-width:178px;width:100%;}"], spacing.xs);
246
246
  export var StyledMultiInputContainer = /*#__PURE__*/styled.div.withConfig({
247
247
  displayName: "StyledMultiInputContainer",
248
- componentId: "core-12_25_0__sc-1uf5708-35"
248
+ componentId: "core-12_25_1__sc-1uf5708-35"
249
249
  })(["margin-bottom:2px;margin-right:", "px;margin-top:2px;flex:1;max-width:100%;min-width:24px;"], spacing.xs);
250
250
  export var StyledMultiInput = /*#__PURE__*/styled.input.withConfig({
251
251
  displayName: "StyledMultiInput",
252
- componentId: "core-12_25_0__sc-1uf5708-36"
252
+ componentId: "core-12_25_1__sc-1uf5708-36"
253
253
  })(["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) {
254
254
  var $isNavigatingTokens = _ref19.$isNavigatingTokens;
255
255
  return $isNavigatingTokens && css(["color:transparent;"]);
@@ -47,6 +47,7 @@ export interface SuperSelectConfig {
47
47
  getOptionIsBatch?: (option: SuperSelectOption) => boolean;
48
48
  getOptionIsDisabled?: (option: SuperSelectOption) => boolean;
49
49
  getOptionLabel?: (option: SuperSelectOption) => string;
50
+ getOptionPartiallySelected?: (option: SuperSelectOption) => boolean;
50
51
  getOptionValue?: (option: SuperSelectOption) => SuperSelectValuePrimitive;
51
52
  header?: React.ReactElement;
52
53
  loading?: boolean;
@@ -131,6 +132,7 @@ export interface SuperSelectApi {
131
132
  option: {
132
133
  group: (option: SuperSelectOption) => string;
133
134
  isBatch: (option: SuperSelectOption) => boolean;
135
+ isPartiallySelected: (option: SuperSelectOption) => boolean;
134
136
  isSelected: (option: SuperSelectOption) => boolean;
135
137
  isDisabled: (option: SuperSelectOption) => boolean;
136
138
  isOptgroup: (option: SuperSelectOption) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SuperSelect.types.js","names":[],"sources":["../../src/SuperSelect/SuperSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { VirtuosoHandle } from 'react-virtuoso'\nimport type { DivAttributes } from '../_utils/types'\nimport type * as defaultComponents from './SuperSelect.components'\nimport type { isOptgroupSymbol } from './SuperSelect.constants'\n\nexport interface TokenNavigationProps {\n activeIndex?: number | null\n enabled?: boolean\n onChange?: (value: SuperSelectValue) => void\n onNavigate?: (index: number | null) => void\n value?: SuperSelectValue\n}\n\nexport interface KeyboardSelectionProps {\n enabled?: boolean\n onSelect?: () => void\n}\n\nexport type SuperSelectValuePrimitive = boolean | string | number\n\nexport type SuperSelectValue =\n | SuperSelectValuePrimitive\n | Array<SuperSelectValuePrimitive>\n | null\n\nexport type SuperSelectOption = any\n\nexport type SuperSelectPreset = '' | 'pill' | 'filter' | 'contacts'\n\nexport type SuperSelectResult = {\n destination?: { index: number } | null\n source: { index: number }\n}\n\nexport interface SuperSelectPresetProps {\n filter?: {\n filterName?: string\n }\n pill?: {}\n contacts?: {}\n ''?: {}\n}\n\nexport interface SuperSelectConfig {\n block?: boolean\n components?: Partial<typeof defaultComponents>\n defaultValue?: SuperSelectValue\n disabled?: boolean\n draggable?: boolean\n emptyMessage?: string\n error?: boolean\n footer?: React.ReactElement\n getOptionGroup?: (option: SuperSelectOption) => string\n getOptionIsBatch?: (option: SuperSelectOption) => boolean\n getOptionIsDisabled?: (option: SuperSelectOption) => boolean\n getOptionLabel?: (option: SuperSelectOption) => string\n getOptionValue?: (option: SuperSelectOption) => SuperSelectValuePrimitive\n header?: React.ReactElement\n loading?: boolean\n multiple?: boolean\n onChange?: (value: SuperSelectValue) => void\n onManualSort?: (options: SuperSelectOption[]) => void\n onScrollBottom?: () => void\n onOpenChange?: (open: boolean) => void\n options?: SuperSelectOption[]\n placeholder?: string\n preset?: SuperSelectPreset\n presetProps?: SuperSelectPresetProps\n search?: boolean\n selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n setOptionGroup?: (\n option: SuperSelectOption,\n group: string\n ) => SuperSelectOption\n sort?: boolean\n tabIndex?: number\n value?: SuperSelectValue\n overlayMatchesTriggerWidth?: boolean\n 'aria-label'?: string\n}\n\nexport type SuperSelectProps = SuperSelectConfig\n\nexport interface SuperSelectApi {\n config: {\n block: boolean\n disabled: boolean\n draggable: boolean\n emptyMessage: string\n error?: boolean\n footer?: React.ReactElement\n header?: React.ReactElement\n placeholder?: string\n preset: SuperSelectPreset\n presetProps?: any\n selectionStyle: 'highlight' | 'token' | 'checkbox' | 'checkmark'\n tabIndex: number\n loading: boolean\n multiple: boolean\n }\n components: typeof defaultComponents\n state: {\n activeMenuIndex: number | null\n activeTokenIndex: number | null\n isEmpty: () => boolean\n listContainerHeight: number\n listId: string\n maxHeight: number\n onDragEnd: (result: SuperSelectResult) => void\n onSelect: (option: SuperSelectOption) => void\n open: boolean\n options: SuperSelectOption[]\n overlayId: string\n searchValue: string\n selectedIndex: number | null\n selectedLabel: string\n selectedOption: SuperSelectOption | null\n setOpen: (open: boolean) => void\n setPointer: any\n setSearchValue: ((value: string) => void) & { cancel: () => void }\n sourceOptions: SuperSelectOption[]\n value: SuperSelectValue\n width: number\n }\n props: {\n clear: () => Record<string, any>\n emptyMessage: () => Record<string, any>\n footer: () => Record<string, any>\n header: () => Record<string, any>\n item: (...args: any[]) => Record<string, any>\n label: () => Record<string, any>\n menu: () => Record<string, any>\n multiInput: () => Record<string, any>\n overlay: () => Record<string, any>\n search: () => Record<string, any>\n searchContainer: () => Record<string, any>\n tokenClear: (index: number) => Record<string, any>\n trigger: () => Record<string, any>\n virtuoso: () => Record<string, any>\n }\n option: {\n group: (option: SuperSelectOption) => string\n isBatch: (option: SuperSelectOption) => boolean\n isSelected: (option: SuperSelectOption) => boolean\n isDisabled: (option: SuperSelectOption) => boolean\n isOptgroup: (option: SuperSelectOption) => boolean\n label: (option: SuperSelectOption) => string\n value: (option: SuperSelectOption) => SuperSelectValuePrimitive\n }\n refs: {\n floating: any\n navigationList: any\n virtuoso: React.RefObject<VirtuosoHandle>\n }\n}\n\nexport interface SuperSelectTriggerProps {\n block?: boolean\n disabled?: boolean\n error?: boolean\n loading?: boolean\n placeholder?: string\n search?: boolean\n tabIndex?: number\n}\n\nexport interface SuperSelectOptgroup {\n label: string\n id: string\n [isOptgroupSymbol]: true\n}\n\nexport interface SuperSelectMenuItemProps extends DivAttributes {\n isDragging?: boolean\n // data attributes are passed by Virtuoso\n 'data-known-size'?: number\n 'data-index': number\n}\n"],"mappings":""}
1
+ {"version":3,"file":"SuperSelect.types.js","names":[],"sources":["../../src/SuperSelect/SuperSelect.types.ts"],"sourcesContent":["import type React from 'react'\nimport type { VirtuosoHandle } from 'react-virtuoso'\nimport type { DivAttributes } from '../_utils/types'\nimport type * as defaultComponents from './SuperSelect.components'\nimport type { isOptgroupSymbol } from './SuperSelect.constants'\n\nexport interface TokenNavigationProps {\n activeIndex?: number | null\n enabled?: boolean\n onChange?: (value: SuperSelectValue) => void\n onNavigate?: (index: number | null) => void\n value?: SuperSelectValue\n}\n\nexport interface KeyboardSelectionProps {\n enabled?: boolean\n onSelect?: () => void\n}\n\nexport type SuperSelectValuePrimitive = boolean | string | number\n\nexport type SuperSelectValue =\n | SuperSelectValuePrimitive\n | Array<SuperSelectValuePrimitive>\n | null\n\nexport type SuperSelectOption = any\n\nexport type SuperSelectPreset = '' | 'pill' | 'filter' | 'contacts'\n\nexport type SuperSelectResult = {\n destination?: { index: number } | null\n source: { index: number }\n}\n\nexport interface SuperSelectPresetProps {\n filter?: {\n filterName?: string\n }\n pill?: {}\n contacts?: {}\n ''?: {}\n}\n\nexport interface SuperSelectConfig {\n block?: boolean\n components?: Partial<typeof defaultComponents>\n defaultValue?: SuperSelectValue\n disabled?: boolean\n draggable?: boolean\n emptyMessage?: string\n error?: boolean\n footer?: React.ReactElement\n getOptionGroup?: (option: SuperSelectOption) => string\n getOptionIsBatch?: (option: SuperSelectOption) => boolean\n getOptionIsDisabled?: (option: SuperSelectOption) => boolean\n getOptionLabel?: (option: SuperSelectOption) => string\n getOptionPartiallySelected?: (option: SuperSelectOption) => boolean\n getOptionValue?: (option: SuperSelectOption) => SuperSelectValuePrimitive\n header?: React.ReactElement\n loading?: boolean\n multiple?: boolean\n onChange?: (value: SuperSelectValue) => void\n onManualSort?: (options: SuperSelectOption[]) => void\n onScrollBottom?: () => void\n onOpenChange?: (open: boolean) => void\n options?: SuperSelectOption[]\n placeholder?: string\n preset?: SuperSelectPreset\n presetProps?: SuperSelectPresetProps\n search?: boolean\n selectionStyle?: 'highlight' | 'checkbox' | 'checkmark'\n setOptionGroup?: (\n option: SuperSelectOption,\n group: string\n ) => SuperSelectOption\n sort?: boolean\n tabIndex?: number\n value?: SuperSelectValue\n overlayMatchesTriggerWidth?: boolean\n 'aria-label'?: string\n}\n\nexport type SuperSelectProps = SuperSelectConfig\n\nexport interface SuperSelectApi {\n config: {\n block: boolean\n disabled: boolean\n draggable: boolean\n emptyMessage: string\n error?: boolean\n footer?: React.ReactElement\n header?: React.ReactElement\n placeholder?: string\n preset: SuperSelectPreset\n presetProps?: any\n selectionStyle: 'highlight' | 'token' | 'checkbox' | 'checkmark'\n tabIndex: number\n loading: boolean\n multiple: boolean\n }\n components: typeof defaultComponents\n state: {\n activeMenuIndex: number | null\n activeTokenIndex: number | null\n isEmpty: () => boolean\n listContainerHeight: number\n listId: string\n maxHeight: number\n onDragEnd: (result: SuperSelectResult) => void\n onSelect: (option: SuperSelectOption) => void\n open: boolean\n options: SuperSelectOption[]\n overlayId: string\n searchValue: string\n selectedIndex: number | null\n selectedLabel: string\n selectedOption: SuperSelectOption | null\n setOpen: (open: boolean) => void\n setPointer: any\n setSearchValue: ((value: string) => void) & { cancel: () => void }\n sourceOptions: SuperSelectOption[]\n value: SuperSelectValue\n width: number\n }\n props: {\n clear: () => Record<string, any>\n emptyMessage: () => Record<string, any>\n footer: () => Record<string, any>\n header: () => Record<string, any>\n item: (...args: any[]) => Record<string, any>\n label: () => Record<string, any>\n menu: () => Record<string, any>\n multiInput: () => Record<string, any>\n overlay: () => Record<string, any>\n search: () => Record<string, any>\n searchContainer: () => Record<string, any>\n tokenClear: (index: number) => Record<string, any>\n trigger: () => Record<string, any>\n virtuoso: () => Record<string, any>\n }\n option: {\n group: (option: SuperSelectOption) => string\n isBatch: (option: SuperSelectOption) => boolean\n isPartiallySelected: (option: SuperSelectOption) => boolean\n isSelected: (option: SuperSelectOption) => boolean\n isDisabled: (option: SuperSelectOption) => boolean\n isOptgroup: (option: SuperSelectOption) => boolean\n label: (option: SuperSelectOption) => string\n value: (option: SuperSelectOption) => SuperSelectValuePrimitive\n }\n refs: {\n floating: any\n navigationList: any\n virtuoso: React.RefObject<VirtuosoHandle>\n }\n}\n\nexport interface SuperSelectTriggerProps {\n block?: boolean\n disabled?: boolean\n error?: boolean\n loading?: boolean\n placeholder?: string\n search?: boolean\n tabIndex?: number\n}\n\nexport interface SuperSelectOptgroup {\n label: string\n id: string\n [isOptgroupSymbol]: true\n}\n\nexport interface SuperSelectMenuItemProps extends DivAttributes {\n isDragging?: boolean\n // data attributes are passed by Virtuoso\n 'data-known-size'?: number\n 'data-index': number\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { SuperSelectApi, SuperSelectConfig } from './SuperSelect.types';
3
- export declare function useSuperSelect({ block, components: customComponents, defaultValue, disabled, draggable, emptyMessage, error, footer, getOptionGroup, getOptionIsBatch, getOptionIsDisabled, getOptionLabel, getOptionValue, onScrollBottom, onOpenChange, header, loading, multiple, onChange, onManualSort, options: sourceOptions, placeholder, preset, presetProps, search, selectionStyle, setOptionGroup, sort, tabIndex, value: value_, overlayMatchesTriggerWidth, 'aria-label': ariaLabel, }: SuperSelectConfig): SuperSelectApi;
3
+ export declare function useSuperSelect({ block, components: customComponents, defaultValue, disabled, draggable, emptyMessage, error, footer, getOptionGroup, getOptionIsBatch, getOptionIsDisabled, getOptionLabel, getOptionPartiallySelected, getOptionValue, onScrollBottom, onOpenChange, header, loading, multiple, onChange, onManualSort, options: sourceOptions, placeholder, preset, presetProps, search, selectionStyle, setOptionGroup, sort, tabIndex, value: value_, overlayMatchesTriggerWidth, 'aria-label': ariaLabel, }: SuperSelectConfig): SuperSelectApi;
4
4
  export declare const SuperSelectContext: React.Context<SuperSelectApi | null>;
5
5
  export declare function useSuperSelectContext(): SuperSelectApi;
@@ -152,6 +152,7 @@ export function useSuperSelect(_ref3) {
152
152
  getOptionIsDisabled = _ref3$getOptionIsDisa === void 0 ? defaultGetOptionIsDisabled : _ref3$getOptionIsDisa,
153
153
  _ref3$getOptionLabel = _ref3.getOptionLabel,
154
154
  getOptionLabel = _ref3$getOptionLabel === void 0 ? defaultGetOptionLabel : _ref3$getOptionLabel,
155
+ getOptionPartiallySelected = _ref3.getOptionPartiallySelected,
155
156
  _ref3$getOptionValue = _ref3.getOptionValue,
156
157
  getOptionValue = _ref3$getOptionValue === void 0 ? defaultGetOptionValue : _ref3$getOptionValue,
157
158
  _ref3$onScrollBottom = _ref3.onScrollBottom,
@@ -419,7 +420,32 @@ export function useSuperSelect(_ref3) {
419
420
  }
420
421
  }
421
422
  function getOptionIsSelected(option) {
422
- return Array.isArray(value) ? value.includes(getOptionValue(option)) : value === getOptionValue(option);
423
+ if (Array.isArray(value)) {
424
+ var optionValues = getOptionValue(option);
425
+ if (Array.isArray(optionValues)) {
426
+ return optionValues.every(function (v) {
427
+ return value.includes(v);
428
+ });
429
+ }
430
+ return value.includes(optionValues);
431
+ }
432
+ return value === getOptionValue(option);
433
+ }
434
+ function defaultGetOptionIsPartiallySelected(option) {
435
+ if (selectionStyle !== 'checkbox') {
436
+ return false;
437
+ }
438
+ if (Array.isArray(value)) {
439
+ var optionValues = getOptionValue(option);
440
+ if (Array.isArray(optionValues)) {
441
+ return optionValues.some(function (v) {
442
+ return value.includes(v);
443
+ }) && !optionValues.every(function (v) {
444
+ return value.includes(v);
445
+ });
446
+ }
447
+ }
448
+ return false;
423
449
  }
424
450
  function isEmpty() {
425
451
  return Array.isArray(value) ? value.length === 0 : value === null;
@@ -823,6 +849,7 @@ export function useSuperSelect(_ref3) {
823
849
  option: {
824
850
  group: getOptionGroup,
825
851
  isBatch: getOptionIsBatch,
852
+ isPartiallySelected: getOptionPartiallySelected !== null && getOptionPartiallySelected !== void 0 ? getOptionPartiallySelected : defaultGetOptionIsPartiallySelected,
826
853
  isSelected: getOptionIsSelected,
827
854
  isDisabled: getOptionIsDisabled,
828
855
  isOptgroup: getOptionIsOptgroup,