@procore/core-react 0.0.0-20230808121909 → 0.0.0-alpha-20230808145207
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.
- package/.turbo/turbo-build.log +12 -0
- package/.turbo/turbo-test.log +693 -0
- package/dist/Avatar/Avatar.js +3 -2
- package/dist/Avatar/Avatar.js.map +1 -1
- package/dist/Avatar/Avatar.styles.js +8 -8
- package/dist/Avatar/Avatar.styles.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.d.ts +1 -6
- package/dist/AvatarStack/AvatarStack.js +41 -27
- package/dist/AvatarStack/AvatarStack.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.styles.d.ts +0 -1
- package/dist/AvatarStack/AvatarStack.styles.js +5 -6
- package/dist/AvatarStack/AvatarStack.styles.js.map +1 -1
- package/dist/AvatarStack/AvatarStack.types.d.ts +4 -0
- package/dist/Badge/Badge.d.ts +5 -1
- package/dist/Badge/Badge.js +18 -2
- package/dist/Badge/Badge.js.map +1 -1
- package/dist/Banner/Banner.d.ts +4 -1
- package/dist/Banner/Banner.js +6 -1
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/Banner.styles.d.ts +4 -1
- package/dist/Banner/Banner.styles.js +17 -1
- package/dist/Banner/Banner.styles.js.map +1 -1
- package/dist/Banner/Banner.types.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/Banner/index.js.map +1 -1
- package/dist/Button/index.d.ts +2 -1
- package/dist/Button/index.js +1 -0
- package/dist/Button/index.js.map +1 -1
- package/dist/Checkbox/Checkbox.js +1 -1
- package/dist/Checkbox/Checkbox.js.map +1 -1
- package/dist/Checkbox/Checkbox.styles.d.ts +4 -1
- package/dist/Checkbox/Checkbox.styles.js +58 -30
- package/dist/Checkbox/Checkbox.styles.js.map +1 -1
- package/dist/DateInput/DateInput.js +3 -0
- package/dist/DateInput/DateInput.js.map +1 -1
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/Dropdown/Dropdown.d.ts +3 -4
- package/dist/Dropdown/Dropdown.js +15 -8
- package/dist/Dropdown/Dropdown.js.map +1 -1
- package/dist/Dropdown/Dropdown.types.d.ts +4 -2
- package/dist/DropdownFlyout/index.d.ts +2 -1
- package/dist/DropdownFlyout/index.js +1 -0
- package/dist/DropdownFlyout/index.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.d.ts +1 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +13 -16
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js.map +1 -1
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +2 -3
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js.map +1 -1
- package/dist/FileSelect/FileSelect.js +4 -2
- package/dist/FileSelect/FileSelect.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.js +39 -11
- package/dist/FileSelect/GridSource/GridSource.js.map +1 -1
- package/dist/FileSelect/GridSource/GridSource.styles.d.ts +0 -1
- package/dist/FileSelect/GridSource/GridSource.styles.js +2 -3
- package/dist/FileSelect/GridSource/GridSource.styles.js.map +1 -1
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -2
- package/dist/FileSelect/SourceItem/SourceItem.styles.js.map +1 -1
- package/dist/FileSelect/storyHelpers.d.ts +47 -0
- package/dist/FileSelect/storyHelpers.js +123 -0
- package/dist/FileSelect/storyHelpers.js.map +1 -1
- package/dist/FilterToken/index.d.ts +2 -1
- package/dist/FilterToken/index.js +1 -0
- package/dist/FilterToken/index.js.map +1 -1
- package/dist/Form/Form.js +3 -1
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/closeWithConfirm.js +1 -1
- package/dist/Form/closeWithConfirm.js.map +1 -1
- package/dist/Form/index.d.ts +1 -1
- package/dist/Link/Link.coverage.stories.d.ts +8 -0
- package/dist/Link/Link.coverage.stories.js +28 -0
- package/dist/Link/Link.coverage.stories.js.map +1 -0
- package/dist/Menu/Menu.d.ts +2 -2
- package/dist/MenuImperative/MenuImperative.d.ts +4 -3
- package/dist/MenuImperative/MenuImperative.js +19 -11
- package/dist/MenuImperative/MenuImperative.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.styles.js +14 -9
- package/dist/MenuImperative/MenuImperative.styles.js.map +1 -1
- package/dist/MenuImperative/MenuImperative.types.d.ts +18 -0
- package/dist/MenuImperative/index.d.ts +1 -1
- package/dist/MenuImperative/index.js.map +1 -1
- package/dist/MenuImperative/sensors.js +18 -7
- package/dist/MenuImperative/sensors.js.map +1 -1
- package/dist/Modal/ChildRegistry.context.d.ts +19 -0
- package/dist/Modal/ChildRegistry.context.js +44 -0
- package/dist/Modal/ChildRegistry.context.js.map +1 -0
- package/dist/Modal/Modal.js +40 -16
- package/dist/Modal/Modal.js.map +1 -1
- package/dist/Modal/useInitializeModalFocus.d.ts +7 -0
- package/dist/Modal/useInitializeModalFocus.js +34 -0
- package/dist/Modal/useInitializeModalFocus.js.map +1 -0
- package/dist/MultiSelect/index.d.ts +1 -1
- package/dist/NextMenu/NextMenu.js +1 -0
- package/dist/NextMenu/NextMenu.js.map +1 -1
- package/dist/NumberInput/NumberInput.constants.d.ts +1 -6
- package/dist/NumberInput/NumberInput.constants.js +1 -6
- package/dist/NumberInput/NumberInput.constants.js.map +1 -1
- package/dist/NumberInput/NumberInput.hooks.js +3 -4
- package/dist/NumberInput/NumberInput.hooks.js.map +1 -1
- package/dist/NumberInput/NumberInput.js +4 -4
- package/dist/NumberInput/NumberInput.js.map +1 -1
- package/dist/NumberInput/NumberInput.types.d.ts +1 -2
- package/dist/NumberInput/NumberInput.utils.js +5 -6
- package/dist/NumberInput/NumberInput.utils.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.js +4 -7
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/Panel/Panel.js +2 -2
- package/dist/Panel/Panel.js.map +1 -1
- package/dist/Pill/Pill.colorPalette.d.ts +8 -0
- package/dist/Pill/Pill.colorPalette.js +44 -0
- package/dist/Pill/Pill.colorPalette.js.map +1 -0
- package/dist/Pill/Pill.js +11 -3
- package/dist/Pill/Pill.js.map +1 -1
- package/dist/Pill/Pill.styles.d.ts +6 -0
- package/dist/Pill/Pill.styles.js +10 -21
- package/dist/Pill/Pill.styles.js.map +1 -1
- package/dist/Pill/Pill.types.d.ts +8 -1
- package/dist/Popover/Popover.types.d.ts +21 -2
- package/dist/Search/Search.js +2 -1
- package/dist/Search/Search.js.map +1 -1
- package/dist/SegmentedController/SegmentedController.js +11 -3
- package/dist/SegmentedController/SegmentedController.js.map +1 -1
- package/dist/Select/index.d.ts +3 -2
- package/dist/Select/index.js +2 -1
- package/dist/Select/index.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.d.ts +179 -2
- package/dist/SuperSelect/SuperSelect.js +2 -2
- package/dist/SuperSelect/SuperSelect.js.map +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js.map +1 -1
- package/dist/SuperSelect/index.d.ts +5 -0
- package/dist/SuperSelect/index.js +5 -0
- package/dist/SuperSelect/index.js.map +1 -0
- package/dist/SuperSelect/useSuperSelect.d.ts +379 -123
- package/dist/SuperSelect/useSuperSelect.js +5 -3
- package/dist/SuperSelect/useSuperSelect.js.map +1 -1
- package/dist/Table/Table.js +38 -7
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.d.ts +3 -3
- package/dist/Table/Table.styles.js +11 -11
- package/dist/Table/Table.styles.js.map +1 -1
- package/dist/Table/Table.types.d.ts +13 -9
- package/dist/Tabs/Tabs.js +3 -2
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/TextEditor/TextEditor.js +7 -1
- package/dist/TextEditor/TextEditor.js.map +1 -1
- package/dist/TextEditor/TextEditor.styles.d.ts +3 -0
- package/dist/TextEditor/TextEditor.styles.js +11 -0
- package/dist/TextEditor/TextEditor.styles.js.map +1 -0
- package/dist/TextEditorOutput/TextEditorOutput.js +2 -2
- package/dist/TextEditorOutput/TextEditorOutput.js.map +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.types.d.ts +7 -0
- package/dist/Thumbnail/Thumbnail.hooks.d.ts +10 -4
- package/dist/ThumbnailGrid/ThumbnailGrid.js +109 -16
- package/dist/ThumbnailGrid/ThumbnailGrid.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +3 -0
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +13 -6
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.types.d.ts +31 -1
- package/dist/TieredSelect/TieredSelect.styles.d.ts +3 -3
- package/dist/ToolHeader/ToolHeader.d.ts +18 -6
- package/dist/ToolHeader/ToolHeader.js +3 -1
- package/dist/ToolHeader/ToolHeader.js.map +1 -1
- package/dist/Tree/Tree.js +1 -1
- package/dist/Tree/Tree.js.map +1 -1
- package/dist/Typography/Typography.colors.story.d.ts +2 -0
- package/dist/Typography/Typography.colors.story.js +146 -0
- package/dist/Typography/Typography.colors.story.js.map +1 -0
- package/dist/Typography/Typography.table.story.d.ts +2 -0
- package/dist/Typography/Typography.table.story.js +62 -0
- package/dist/Typography/Typography.table.story.js.map +1 -0
- package/dist/Typography/index.d.ts +2 -1
- package/dist/Typography/index.js +1 -0
- package/dist/Typography/index.js.map +1 -1
- package/dist/_hooks/DelayedCallback.d.ts +1 -1
- package/dist/_hooks/DelayedCallback.js +3 -1
- package/dist/_hooks/DelayedCallback.js.map +1 -1
- package/dist/_hooks/I18n.d.ts +763 -40
- package/dist/_hooks/I18n.js.map +1 -1
- package/dist/_hooks/Visibility.d.ts +2 -2
- package/dist/_hooks/Visibility.js +2 -2
- package/dist/_hooks/Visibility.js.map +1 -1
- package/dist/_locales/de-DE.json +91 -31
- package/dist/_locales/en-AU.json +67 -7
- package/dist/_locales/en-CA.json +67 -7
- package/dist/_locales/en-GB.json +67 -7
- package/dist/_locales/en.json +3 -0
- package/dist/_locales/es-ES.json +71 -11
- package/dist/_locales/es.json +78 -18
- package/dist/_locales/fr-CA.json +84 -24
- package/dist/_locales/fr-FR.json +69 -9
- package/dist/_locales/is-IS.json +67 -7
- package/dist/_locales/pt-BR.json +185 -125
- package/dist/_locales/th-TH.json +67 -7
- package/dist/_locales/zh-SG.json +68 -8
- package/dist/_typedoc/Avatar/Avatar.types.json +68 -30
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +34 -24
- package/dist/_typedoc/Badge/Badge.types.json +10 -10
- package/dist/_typedoc/Banner/Banner.types.json +29 -19
- package/dist/_typedoc/Box/Box.types.json +70 -70
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +14 -14
- package/dist/_typedoc/Button/Button.types.json +13 -13
- package/dist/_typedoc/Calendar/Calendar.types.json +174 -174
- package/dist/_typedoc/Card/Card.types.json +8 -8
- package/dist/_typedoc/Checkbox/Checkbox.types.json +7 -7
- package/dist/_typedoc/ContactItem/ContactItem.types.json +11 -11
- package/dist/_typedoc/DateInput/DateInput.types.json +37 -37
- package/dist/_typedoc/DateSelect/DateSelect.types.json +14 -14
- package/dist/_typedoc/DetailPage/DetailPage.types.json +6 -6
- package/dist/_typedoc/Dropdown/Dropdown.types.json +57 -47
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +32 -32
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -73
- package/dist/_typedoc/EmptyState/EmptyState.types.json +22 -22
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +14 -14
- package/dist/_typedoc/Flex/Flex.types.json +29 -29
- package/dist/_typedoc/FlexList/FlexList.types.json +32 -32
- package/dist/_typedoc/Form/Form.types.json +792 -752
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +56 -56
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +6 -6
- package/dist/_typedoc/ListPage/ListPage.types.json +19 -19
- package/dist/_typedoc/Menu/Menu.types.json +68 -68
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +105 -75
- package/dist/_typedoc/Modal/Modal.types.json +213 -60
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +33 -33
- package/dist/_typedoc/Notation/Notation.types.json +6 -6
- package/dist/_typedoc/NumberInput/NumberInput.types.json +73 -141
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +316 -0
- package/dist/_typedoc/PageLayout/PageLayout.types.json +174 -12
- package/dist/_typedoc/Pagination/Pagination.types.json +9 -9
- package/dist/_typedoc/Panel/Panel.types.json +30 -30
- package/dist/_typedoc/Pill/Pill.types.json +12 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +50 -50
- package/dist/_typedoc/Popover/Popover.types.json +77 -35
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +18 -7
- package/dist/_typedoc/RadioButton/RadioButton.types.json +8 -8
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +16 -16
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +26 -26
- package/dist/_typedoc/Select/Select.types.json +280 -34
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +11 -11
- package/dist/_typedoc/Switch/Switch.types.json +5 -5
- package/dist/_typedoc/Table/Table.types.json +152 -126
- package/dist/_typedoc/Tabs/Tabs.types.json +90 -70
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +70 -10
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +35 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +13 -3
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +66 -132
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +46 -46
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +30 -30
- package/dist/_typedoc/Tile/Tile.types.json +42 -42
- package/dist/_typedoc/Toast/Toast.types.json +6 -6
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +38 -12
- package/dist/_typedoc/Tooltip/Tooltip.types.json +19 -19
- package/dist/_typedoc/Tree/Tree.types.json +100 -108
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +5 -5
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/_utils/CalendarHelpers.js +4 -2
- package/dist/_utils/CalendarHelpers.js.map +1 -1
- package/dist/_utils/TinyMCE.js +3 -1
- package/dist/_utils/TinyMCE.js.map +1 -1
- package/dist/_utils/polymorphic.d.ts +11 -0
- package/dist/_utils/propsTypedoc.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
+
import { VirtuosoHandle, VirtuosoProps } from 'react-virtuoso';
|
|
4
|
+
import { SuperSelectConfig, SuperSelectOption, SuperSelectValue, SuperSelectValuePrimitive } from './SuperSelect.types';
|
|
3
5
|
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_, }: SuperSelectConfig): {
|
|
4
6
|
config: {
|
|
5
7
|
block: boolean;
|
|
@@ -7,8 +9,8 @@ export declare function useSuperSelect({ block, components: customComponents, de
|
|
|
7
9
|
draggable: boolean;
|
|
8
10
|
emptyMessage: string;
|
|
9
11
|
error: boolean | undefined;
|
|
10
|
-
footer: any;
|
|
11
|
-
header: any;
|
|
12
|
+
footer: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
13
|
+
header: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
12
14
|
placeholder: string | undefined;
|
|
13
15
|
preset: import("./SuperSelect.types").SuperSelectPreset;
|
|
14
16
|
presetProps: import("./SuperSelect.types").SuperSelectPresetProps | undefined;
|
|
@@ -18,66 +20,74 @@ export declare function useSuperSelect({ block, components: customComponents, de
|
|
|
18
20
|
multiple: boolean;
|
|
19
21
|
};
|
|
20
22
|
components: {
|
|
21
|
-
Overlay: any
|
|
22
|
-
SingleTrigger: (props:
|
|
23
|
-
MultiTrigger: (props:
|
|
24
|
-
TriggerContainer: any
|
|
25
|
-
Trigger: any
|
|
26
|
-
Indicators: (props:
|
|
27
|
-
Label:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
23
|
+
Overlay: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLElement>>;
|
|
24
|
+
SingleTrigger: (props: any) => JSX.Element;
|
|
25
|
+
MultiTrigger: (props: any) => JSX.Element | null;
|
|
26
|
+
TriggerContainer: React.ForwardRefExoticComponent<any> | React.FC<any>;
|
|
27
|
+
Trigger: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
Indicators: (props: any) => JSX.Element;
|
|
29
|
+
Label: React.ForwardRefExoticComponent<{
|
|
30
|
+
hoverable: boolean;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
Loading: () => JSX.Element;
|
|
33
|
+
ArrowContainer: (props: any) => JSX.Element;
|
|
34
|
+
Arrow: ({ up, down, left, right, width, height, border, }: any) => JSX.Element;
|
|
35
|
+
Clear: () => JSX.Element;
|
|
36
|
+
MultiInputContainer: (props: {
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}) => JSX.Element;
|
|
39
|
+
MultiInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
40
|
+
MultiValue: (props: any) => JSX.Element;
|
|
41
|
+
MultiValueContainer: (props: any) => JSX.Element;
|
|
42
|
+
SearchContainer: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
43
|
+
Search: (props: any) => JSX.Element;
|
|
44
|
+
Header: (props: any) => JSX.Element;
|
|
45
|
+
Footer: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
46
|
+
EmptyMessage: (props: any) => JSX.Element;
|
|
47
|
+
Options: (props: {
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
} & import("../_utils/types").DivAttributes) => JSX.Element;
|
|
50
|
+
Group: (props: {
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
}) => JSX.Element;
|
|
53
|
+
Item: React.ForwardRefExoticComponent<import("./SuperSelect.types").SuperSelectMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
OptionGroupHeader: ({ optgroup }: any) => JSX.Element;
|
|
55
|
+
OptionLabel: ({ option }: any) => JSX.Element;
|
|
56
|
+
OptionContent: ({ option }: any) => JSX.Element;
|
|
57
|
+
DraggableOptionContent: ({ index, option }: any) => JSX.Element;
|
|
58
|
+
DragHandle: (props: any) => JSX.Element;
|
|
59
|
+
CheckboxContainer: (props: any) => JSX.Element;
|
|
60
|
+
Checkbox: (props: any) => JSX.Element;
|
|
61
|
+
CheckmarkContainer: (props: any) => JSX.Element;
|
|
62
|
+
Checkmark: (props: any) => JSX.Element;
|
|
53
63
|
};
|
|
54
64
|
state: {
|
|
55
|
-
activeMenuIndex:
|
|
56
|
-
activeTokenIndex:
|
|
65
|
+
activeMenuIndex: number | null;
|
|
66
|
+
activeTokenIndex: number | null;
|
|
57
67
|
isEmpty: () => boolean;
|
|
58
68
|
listContainerHeight: number;
|
|
59
|
-
listId:
|
|
60
|
-
maxHeight:
|
|
61
|
-
onDragEnd: any;
|
|
69
|
+
listId: string;
|
|
70
|
+
maxHeight: number;
|
|
71
|
+
onDragEnd: (result: any) => void;
|
|
62
72
|
onSelect: (option: SuperSelectOption) => void;
|
|
63
|
-
open:
|
|
64
|
-
options: any;
|
|
65
|
-
overlayId:
|
|
66
|
-
searchValue:
|
|
67
|
-
selectedIndex:
|
|
68
|
-
selectedLabel:
|
|
73
|
+
open: boolean;
|
|
74
|
+
options: any[];
|
|
75
|
+
overlayId: string;
|
|
76
|
+
searchValue: string;
|
|
77
|
+
selectedIndex: number;
|
|
78
|
+
selectedLabel: string;
|
|
69
79
|
selectedOption: any;
|
|
70
|
-
setOpen:
|
|
71
|
-
setPointer:
|
|
72
|
-
setSearchValue:
|
|
80
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
81
|
+
setPointer: React.Dispatch<React.SetStateAction<boolean>>;
|
|
82
|
+
setSearchValue: import("lodash").DebouncedFunc<React.Dispatch<React.SetStateAction<string>>>;
|
|
73
83
|
sourceOptions: any[];
|
|
74
|
-
value:
|
|
75
|
-
width:
|
|
84
|
+
value: SuperSelectValue;
|
|
85
|
+
width: number;
|
|
76
86
|
};
|
|
77
87
|
props: {
|
|
78
88
|
clear: () => {
|
|
79
89
|
'aria-hidden': boolean;
|
|
80
|
-
'aria-label':
|
|
90
|
+
'aria-label': string;
|
|
81
91
|
onClick(e: React.MouseEvent): void;
|
|
82
92
|
};
|
|
83
93
|
emptyMessage: () => {
|
|
@@ -90,7 +100,7 @@ export declare function useSuperSelect({ block, components: customComponents, de
|
|
|
90
100
|
header: () => {
|
|
91
101
|
ref: (el: HTMLElement | null) => void;
|
|
92
102
|
};
|
|
93
|
-
item:
|
|
103
|
+
item: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
94
104
|
label: () => {
|
|
95
105
|
$hoverable: boolean;
|
|
96
106
|
};
|
|
@@ -103,11 +113,11 @@ export declare function useSuperSelect({ block, components: customComponents, de
|
|
|
103
113
|
multiInput: () => React.AriaAttributes & React.InputHTMLAttributes<HTMLInputElement> & {
|
|
104
114
|
ref: React.Ref<HTMLInputElement>;
|
|
105
115
|
};
|
|
106
|
-
overlay:
|
|
116
|
+
overlay: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
107
117
|
search: () => {
|
|
108
|
-
'aria-controls':
|
|
118
|
+
'aria-controls': string;
|
|
109
119
|
onChange(value: string): void;
|
|
110
|
-
placeholder:
|
|
120
|
+
placeholder: string;
|
|
111
121
|
};
|
|
112
122
|
searchContainer: () => {
|
|
113
123
|
ref: (el: HTMLElement | null) => void;
|
|
@@ -115,7 +125,7 @@ export declare function useSuperSelect({ block, components: customComponents, de
|
|
|
115
125
|
tokenClear: (index: number) => {
|
|
116
126
|
onClick(e: React.MouseEvent): void;
|
|
117
127
|
};
|
|
118
|
-
trigger:
|
|
128
|
+
trigger: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
119
129
|
virtuoso: () => VirtuosoProps<{}, {}>;
|
|
120
130
|
};
|
|
121
131
|
option: {
|
|
@@ -128,21 +138,52 @@ export declare function useSuperSelect({ block, components: customComponents, de
|
|
|
128
138
|
value: (option: any) => SuperSelectValuePrimitive;
|
|
129
139
|
};
|
|
130
140
|
refs: {
|
|
131
|
-
floating:
|
|
132
|
-
|
|
133
|
-
|
|
141
|
+
floating: {
|
|
142
|
+
placement: import("@floating-ui/react").Placement;
|
|
143
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
144
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
145
|
+
x: number | null;
|
|
146
|
+
y: number | null;
|
|
147
|
+
update: () => void;
|
|
148
|
+
reference: (node: HTMLElement | null) => void;
|
|
149
|
+
floating: (node: HTMLElement | null) => void;
|
|
150
|
+
positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
151
|
+
context: {
|
|
152
|
+
x: number | null;
|
|
153
|
+
y: number | null;
|
|
154
|
+
placement: import("@floating-ui/react").Placement;
|
|
155
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
156
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
157
|
+
reference: (node: HTMLElement | null) => void;
|
|
158
|
+
floating: (node: HTMLElement | null) => void;
|
|
159
|
+
update: () => void;
|
|
160
|
+
isPositioned: boolean;
|
|
161
|
+
open: boolean;
|
|
162
|
+
onOpenChange: (open: boolean) => void;
|
|
163
|
+
events: import("@floating-ui/react").FloatingEvents;
|
|
164
|
+
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
165
|
+
nodeId: string | undefined;
|
|
166
|
+
floatingId: string;
|
|
167
|
+
refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
|
|
168
|
+
elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
|
|
169
|
+
};
|
|
170
|
+
refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
|
|
171
|
+
elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
|
|
172
|
+
isPositioned: boolean;
|
|
173
|
+
};
|
|
174
|
+
navigationList: React.MutableRefObject<(HTMLElement | null)[]>;
|
|
175
|
+
virtuoso: React.RefObject<VirtuosoHandle>;
|
|
134
176
|
};
|
|
135
177
|
};
|
|
136
|
-
export declare const SuperSelectContext:
|
|
137
|
-
export declare function useSuperSelectContext(): {
|
|
178
|
+
export declare const SuperSelectContext: React.Context<{
|
|
138
179
|
config: {
|
|
139
180
|
block: boolean;
|
|
140
181
|
disabled: boolean;
|
|
141
182
|
draggable: boolean;
|
|
142
183
|
emptyMessage: string;
|
|
143
184
|
error: boolean | undefined;
|
|
144
|
-
footer: any;
|
|
145
|
-
header: any;
|
|
185
|
+
footer: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
186
|
+
header: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
146
187
|
placeholder: string | undefined;
|
|
147
188
|
preset: import("./SuperSelect.types").SuperSelectPreset;
|
|
148
189
|
presetProps: import("./SuperSelect.types").SuperSelectPresetProps | undefined;
|
|
@@ -152,66 +193,74 @@ export declare function useSuperSelectContext(): {
|
|
|
152
193
|
multiple: boolean;
|
|
153
194
|
};
|
|
154
195
|
components: {
|
|
155
|
-
Overlay: any
|
|
156
|
-
SingleTrigger: (props:
|
|
157
|
-
MultiTrigger: (props:
|
|
158
|
-
TriggerContainer: any
|
|
159
|
-
Trigger: any
|
|
160
|
-
Indicators: (props:
|
|
161
|
-
Label:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
196
|
+
Overlay: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLElement>>;
|
|
197
|
+
SingleTrigger: (props: any) => JSX.Element;
|
|
198
|
+
MultiTrigger: (props: any) => JSX.Element | null;
|
|
199
|
+
TriggerContainer: React.ForwardRefExoticComponent<any> | React.FC<any>;
|
|
200
|
+
Trigger: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLDivElement>>;
|
|
201
|
+
Indicators: (props: any) => JSX.Element;
|
|
202
|
+
Label: React.ForwardRefExoticComponent<{
|
|
203
|
+
hoverable: boolean;
|
|
204
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
205
|
+
Loading: () => JSX.Element;
|
|
206
|
+
ArrowContainer: (props: any) => JSX.Element;
|
|
207
|
+
Arrow: ({ up, down, left, right, width, height, border, }: any) => JSX.Element;
|
|
208
|
+
Clear: () => JSX.Element;
|
|
209
|
+
MultiInputContainer: (props: {
|
|
210
|
+
children?: React.ReactNode;
|
|
211
|
+
}) => JSX.Element;
|
|
212
|
+
MultiInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
213
|
+
MultiValue: (props: any) => JSX.Element;
|
|
214
|
+
MultiValueContainer: (props: any) => JSX.Element;
|
|
215
|
+
SearchContainer: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
216
|
+
Search: (props: any) => JSX.Element;
|
|
217
|
+
Header: (props: any) => JSX.Element;
|
|
218
|
+
Footer: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
219
|
+
EmptyMessage: (props: any) => JSX.Element;
|
|
220
|
+
Options: (props: {
|
|
221
|
+
children?: React.ReactNode;
|
|
222
|
+
} & import("../_utils/types").DivAttributes) => JSX.Element;
|
|
223
|
+
Group: (props: {
|
|
224
|
+
children?: React.ReactNode;
|
|
225
|
+
}) => JSX.Element;
|
|
226
|
+
Item: React.ForwardRefExoticComponent<import("./SuperSelect.types").SuperSelectMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
227
|
+
OptionGroupHeader: ({ optgroup }: any) => JSX.Element;
|
|
228
|
+
OptionLabel: ({ option }: any) => JSX.Element;
|
|
229
|
+
OptionContent: ({ option }: any) => JSX.Element;
|
|
230
|
+
DraggableOptionContent: ({ index, option }: any) => JSX.Element;
|
|
231
|
+
DragHandle: (props: any) => JSX.Element;
|
|
232
|
+
CheckboxContainer: (props: any) => JSX.Element;
|
|
233
|
+
Checkbox: (props: any) => JSX.Element;
|
|
234
|
+
CheckmarkContainer: (props: any) => JSX.Element;
|
|
235
|
+
Checkmark: (props: any) => JSX.Element;
|
|
187
236
|
};
|
|
188
237
|
state: {
|
|
189
|
-
activeMenuIndex:
|
|
190
|
-
activeTokenIndex:
|
|
238
|
+
activeMenuIndex: number | null;
|
|
239
|
+
activeTokenIndex: number | null;
|
|
191
240
|
isEmpty: () => boolean;
|
|
192
241
|
listContainerHeight: number;
|
|
193
|
-
listId:
|
|
194
|
-
maxHeight:
|
|
195
|
-
onDragEnd: any;
|
|
196
|
-
onSelect: (option:
|
|
197
|
-
open:
|
|
198
|
-
options: any;
|
|
199
|
-
overlayId:
|
|
200
|
-
searchValue:
|
|
201
|
-
selectedIndex:
|
|
202
|
-
selectedLabel:
|
|
242
|
+
listId: string;
|
|
243
|
+
maxHeight: number;
|
|
244
|
+
onDragEnd: (result: any) => void;
|
|
245
|
+
onSelect: (option: SuperSelectOption) => void;
|
|
246
|
+
open: boolean;
|
|
247
|
+
options: any[];
|
|
248
|
+
overlayId: string;
|
|
249
|
+
searchValue: string;
|
|
250
|
+
selectedIndex: number;
|
|
251
|
+
selectedLabel: string;
|
|
203
252
|
selectedOption: any;
|
|
204
|
-
setOpen:
|
|
205
|
-
setPointer:
|
|
206
|
-
setSearchValue:
|
|
253
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
254
|
+
setPointer: React.Dispatch<React.SetStateAction<boolean>>;
|
|
255
|
+
setSearchValue: import("lodash").DebouncedFunc<React.Dispatch<React.SetStateAction<string>>>;
|
|
207
256
|
sourceOptions: any[];
|
|
208
|
-
value:
|
|
209
|
-
width:
|
|
257
|
+
value: SuperSelectValue;
|
|
258
|
+
width: number;
|
|
210
259
|
};
|
|
211
260
|
props: {
|
|
212
261
|
clear: () => {
|
|
213
262
|
'aria-hidden': boolean;
|
|
214
|
-
'aria-label':
|
|
263
|
+
'aria-label': string;
|
|
215
264
|
onClick(e: React.MouseEvent): void;
|
|
216
265
|
};
|
|
217
266
|
emptyMessage: () => {
|
|
@@ -224,7 +273,7 @@ export declare function useSuperSelectContext(): {
|
|
|
224
273
|
header: () => {
|
|
225
274
|
ref: (el: HTMLElement | null) => void;
|
|
226
275
|
};
|
|
227
|
-
item:
|
|
276
|
+
item: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
228
277
|
label: () => {
|
|
229
278
|
$hoverable: boolean;
|
|
230
279
|
};
|
|
@@ -234,12 +283,14 @@ export declare function useSuperSelectContext(): {
|
|
|
234
283
|
height: number;
|
|
235
284
|
};
|
|
236
285
|
};
|
|
237
|
-
multiInput: () =>
|
|
238
|
-
|
|
286
|
+
multiInput: () => React.AriaAttributes & React.InputHTMLAttributes<HTMLInputElement> & {
|
|
287
|
+
ref: React.Ref<HTMLInputElement>;
|
|
288
|
+
};
|
|
289
|
+
overlay: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
239
290
|
search: () => {
|
|
240
|
-
'aria-controls':
|
|
291
|
+
'aria-controls': string;
|
|
241
292
|
onChange(value: string): void;
|
|
242
|
-
placeholder:
|
|
293
|
+
placeholder: string;
|
|
243
294
|
};
|
|
244
295
|
searchContainer: () => {
|
|
245
296
|
ref: (el: HTMLElement | null) => void;
|
|
@@ -247,7 +298,180 @@ export declare function useSuperSelectContext(): {
|
|
|
247
298
|
tokenClear: (index: number) => {
|
|
248
299
|
onClick(e: React.MouseEvent): void;
|
|
249
300
|
};
|
|
250
|
-
trigger:
|
|
301
|
+
trigger: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
302
|
+
virtuoso: () => VirtuosoProps<{}, {}>;
|
|
303
|
+
};
|
|
304
|
+
option: {
|
|
305
|
+
group: (option: any) => string;
|
|
306
|
+
isBatch: (option: any) => boolean;
|
|
307
|
+
isSelected: (option: SuperSelectOption) => boolean;
|
|
308
|
+
isDisabled: (option: any) => boolean;
|
|
309
|
+
isOptgroup: (item: any) => item is import("./SuperSelect.types").SuperSelectOptgroup;
|
|
310
|
+
label: (option: any) => string;
|
|
311
|
+
value: (option: any) => SuperSelectValuePrimitive;
|
|
312
|
+
};
|
|
313
|
+
refs: {
|
|
314
|
+
floating: {
|
|
315
|
+
placement: import("@floating-ui/react").Placement;
|
|
316
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
317
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
318
|
+
x: number | null;
|
|
319
|
+
y: number | null;
|
|
320
|
+
update: () => void;
|
|
321
|
+
reference: (node: HTMLElement | null) => void;
|
|
322
|
+
floating: (node: HTMLElement | null) => void;
|
|
323
|
+
positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
324
|
+
context: {
|
|
325
|
+
x: number | null;
|
|
326
|
+
y: number | null;
|
|
327
|
+
placement: import("@floating-ui/react").Placement;
|
|
328
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
329
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
330
|
+
reference: (node: HTMLElement | null) => void;
|
|
331
|
+
floating: (node: HTMLElement | null) => void;
|
|
332
|
+
update: () => void;
|
|
333
|
+
isPositioned: boolean;
|
|
334
|
+
open: boolean;
|
|
335
|
+
onOpenChange: (open: boolean) => void;
|
|
336
|
+
events: import("@floating-ui/react").FloatingEvents;
|
|
337
|
+
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
338
|
+
nodeId: string | undefined;
|
|
339
|
+
floatingId: string;
|
|
340
|
+
refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
|
|
341
|
+
elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
|
|
342
|
+
};
|
|
343
|
+
refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
|
|
344
|
+
elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
|
|
345
|
+
isPositioned: boolean;
|
|
346
|
+
};
|
|
347
|
+
navigationList: React.MutableRefObject<(HTMLElement | null)[]>;
|
|
348
|
+
virtuoso: React.RefObject<VirtuosoHandle>;
|
|
349
|
+
};
|
|
350
|
+
} | null>;
|
|
351
|
+
export declare function useSuperSelectContext(): {
|
|
352
|
+
config: {
|
|
353
|
+
block: boolean;
|
|
354
|
+
disabled: boolean;
|
|
355
|
+
draggable: boolean;
|
|
356
|
+
emptyMessage: string;
|
|
357
|
+
error: boolean | undefined;
|
|
358
|
+
footer: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
359
|
+
header: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
360
|
+
placeholder: string | undefined;
|
|
361
|
+
preset: import("./SuperSelect.types").SuperSelectPreset;
|
|
362
|
+
presetProps: import("./SuperSelect.types").SuperSelectPresetProps | undefined;
|
|
363
|
+
selectionStyle: "checkbox" | "highlight" | "checkmark";
|
|
364
|
+
tabIndex: number;
|
|
365
|
+
loading: boolean;
|
|
366
|
+
multiple: boolean;
|
|
367
|
+
};
|
|
368
|
+
components: {
|
|
369
|
+
Overlay: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLElement>>;
|
|
370
|
+
SingleTrigger: (props: any) => JSX.Element;
|
|
371
|
+
MultiTrigger: (props: any) => JSX.Element | null;
|
|
372
|
+
TriggerContainer: React.ForwardRefExoticComponent<any> | React.FC<any>;
|
|
373
|
+
Trigger: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLDivElement>>;
|
|
374
|
+
Indicators: (props: any) => JSX.Element;
|
|
375
|
+
Label: React.ForwardRefExoticComponent<{
|
|
376
|
+
hoverable: boolean;
|
|
377
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
378
|
+
Loading: () => JSX.Element;
|
|
379
|
+
ArrowContainer: (props: any) => JSX.Element;
|
|
380
|
+
Arrow: ({ up, down, left, right, width, height, border, }: any) => JSX.Element;
|
|
381
|
+
Clear: () => JSX.Element;
|
|
382
|
+
MultiInputContainer: (props: {
|
|
383
|
+
children?: React.ReactNode;
|
|
384
|
+
}) => JSX.Element;
|
|
385
|
+
MultiInput: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
386
|
+
MultiValue: (props: any) => JSX.Element;
|
|
387
|
+
MultiValueContainer: (props: any) => JSX.Element;
|
|
388
|
+
SearchContainer: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
389
|
+
Search: (props: any) => JSX.Element;
|
|
390
|
+
Header: (props: any) => JSX.Element;
|
|
391
|
+
Footer: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
392
|
+
EmptyMessage: (props: any) => JSX.Element;
|
|
393
|
+
Options: (props: {
|
|
394
|
+
children?: React.ReactNode;
|
|
395
|
+
} & import("../_utils/types").DivAttributes) => JSX.Element;
|
|
396
|
+
Group: (props: {
|
|
397
|
+
children?: React.ReactNode;
|
|
398
|
+
}) => JSX.Element;
|
|
399
|
+
Item: React.ForwardRefExoticComponent<import("./SuperSelect.types").SuperSelectMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
400
|
+
OptionGroupHeader: ({ optgroup }: any) => JSX.Element;
|
|
401
|
+
OptionLabel: ({ option }: any) => JSX.Element;
|
|
402
|
+
OptionContent: ({ option }: any) => JSX.Element;
|
|
403
|
+
DraggableOptionContent: ({ index, option }: any) => JSX.Element;
|
|
404
|
+
DragHandle: (props: any) => JSX.Element;
|
|
405
|
+
CheckboxContainer: (props: any) => JSX.Element;
|
|
406
|
+
Checkbox: (props: any) => JSX.Element;
|
|
407
|
+
CheckmarkContainer: (props: any) => JSX.Element;
|
|
408
|
+
Checkmark: (props: any) => JSX.Element;
|
|
409
|
+
};
|
|
410
|
+
state: {
|
|
411
|
+
activeMenuIndex: number | null;
|
|
412
|
+
activeTokenIndex: number | null;
|
|
413
|
+
isEmpty: () => boolean;
|
|
414
|
+
listContainerHeight: number;
|
|
415
|
+
listId: string;
|
|
416
|
+
maxHeight: number;
|
|
417
|
+
onDragEnd: (result: any) => void;
|
|
418
|
+
onSelect: (option: any) => void;
|
|
419
|
+
open: boolean;
|
|
420
|
+
options: any[];
|
|
421
|
+
overlayId: string;
|
|
422
|
+
searchValue: string;
|
|
423
|
+
selectedIndex: number;
|
|
424
|
+
selectedLabel: string;
|
|
425
|
+
selectedOption: any;
|
|
426
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
427
|
+
setPointer: React.Dispatch<React.SetStateAction<boolean>>;
|
|
428
|
+
setSearchValue: import("lodash").DebouncedFunc<React.Dispatch<React.SetStateAction<string>>>;
|
|
429
|
+
sourceOptions: any[];
|
|
430
|
+
value: SuperSelectValue;
|
|
431
|
+
width: number;
|
|
432
|
+
};
|
|
433
|
+
props: {
|
|
434
|
+
clear: () => {
|
|
435
|
+
'aria-hidden': boolean;
|
|
436
|
+
'aria-label': string;
|
|
437
|
+
onClick(e: React.MouseEvent<Element, MouseEvent>): void;
|
|
438
|
+
};
|
|
439
|
+
emptyMessage: () => {
|
|
440
|
+
emptyMessage: string;
|
|
441
|
+
};
|
|
442
|
+
footer: () => {
|
|
443
|
+
ref: (el: HTMLElement | null) => void;
|
|
444
|
+
onKeyDown: (e: React.KeyboardEvent<Element>) => void;
|
|
445
|
+
};
|
|
446
|
+
header: () => {
|
|
447
|
+
ref: (el: HTMLElement | null) => void;
|
|
448
|
+
};
|
|
449
|
+
item: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
450
|
+
label: () => {
|
|
451
|
+
$hoverable: boolean;
|
|
452
|
+
};
|
|
453
|
+
menu: () => {
|
|
454
|
+
scrollable: boolean;
|
|
455
|
+
style: {
|
|
456
|
+
height: number;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
multiInput: () => React.AriaAttributes & React.InputHTMLAttributes<HTMLInputElement> & {
|
|
460
|
+
ref: React.Ref<HTMLInputElement>;
|
|
461
|
+
};
|
|
462
|
+
overlay: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
|
|
463
|
+
search: () => {
|
|
464
|
+
'aria-controls': string;
|
|
465
|
+
onChange(value: string): void;
|
|
466
|
+
placeholder: string;
|
|
467
|
+
};
|
|
468
|
+
searchContainer: () => {
|
|
469
|
+
ref: (el: HTMLElement | null) => void;
|
|
470
|
+
};
|
|
471
|
+
tokenClear: (index: number) => {
|
|
472
|
+
onClick(e: React.MouseEvent<Element, MouseEvent>): void;
|
|
473
|
+
};
|
|
474
|
+
trigger: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
|
|
251
475
|
virtuoso: () => VirtuosoProps<{}, {}>;
|
|
252
476
|
};
|
|
253
477
|
option: {
|
|
@@ -260,8 +484,40 @@ export declare function useSuperSelectContext(): {
|
|
|
260
484
|
value: (option: any) => SuperSelectValuePrimitive;
|
|
261
485
|
};
|
|
262
486
|
refs: {
|
|
263
|
-
floating:
|
|
264
|
-
|
|
265
|
-
|
|
487
|
+
floating: {
|
|
488
|
+
placement: import("@floating-ui/react").Placement;
|
|
489
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
490
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
491
|
+
x: number | null;
|
|
492
|
+
y: number | null;
|
|
493
|
+
update: () => void;
|
|
494
|
+
reference: (node: HTMLElement | null) => void;
|
|
495
|
+
floating: (node: HTMLElement | null) => void;
|
|
496
|
+
positionReference: (node: import("@floating-ui/react").ReferenceType | null) => void;
|
|
497
|
+
context: {
|
|
498
|
+
x: number | null;
|
|
499
|
+
y: number | null;
|
|
500
|
+
placement: import("@floating-ui/react").Placement;
|
|
501
|
+
strategy: import("@floating-ui/react").Strategy;
|
|
502
|
+
middlewareData: import("@floating-ui/react").MiddlewareData;
|
|
503
|
+
reference: (node: HTMLElement | null) => void;
|
|
504
|
+
floating: (node: HTMLElement | null) => void;
|
|
505
|
+
update: () => void;
|
|
506
|
+
isPositioned: boolean;
|
|
507
|
+
open: boolean;
|
|
508
|
+
onOpenChange: (open: boolean) => void;
|
|
509
|
+
events: import("@floating-ui/react").FloatingEvents;
|
|
510
|
+
dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
|
|
511
|
+
nodeId: string | undefined;
|
|
512
|
+
floatingId: string;
|
|
513
|
+
refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
|
|
514
|
+
elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
|
|
515
|
+
};
|
|
516
|
+
refs: import("@floating-ui/react").ExtendedRefs<HTMLElement>;
|
|
517
|
+
elements: import("@floating-ui/react").ExtendedElements<HTMLElement>;
|
|
518
|
+
isPositioned: boolean;
|
|
519
|
+
};
|
|
520
|
+
navigationList: React.MutableRefObject<(HTMLElement | null)[]>;
|
|
521
|
+
virtuoso: React.RefObject<VirtuosoHandle>;
|
|
266
522
|
};
|
|
267
523
|
};
|
|
@@ -18,13 +18,14 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
18
18
|
}
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
|
-
import { autoUpdate, flip, offset, size, useClick, useDismiss, useFloating, useInteractions, useListNavigation, } from '@floating-ui/react
|
|
21
|
+
import { autoUpdate, flip, offset, size, useClick, useDismiss, useFloating, useInteractions, useListNavigation, } from '@floating-ui/react';
|
|
22
22
|
import { useId } from '@react-aria/utils';
|
|
23
23
|
import debounce from 'lodash.debounce';
|
|
24
24
|
import uniq from 'lodash.uniq';
|
|
25
25
|
import React from 'react';
|
|
26
26
|
import { ulid } from 'ulid';
|
|
27
27
|
import { useI18nContext } from '../_hooks/I18n';
|
|
28
|
+
import { useZIndexContext } from '../_hooks/ZIndex';
|
|
28
29
|
import { spacing } from '../_styles/spacing';
|
|
29
30
|
import * as defaultComponents from './SuperSelect.components';
|
|
30
31
|
import { draggableOptionIdSymbol } from './SuperSelect.constants';
|
|
@@ -337,6 +338,7 @@ export function useSuperSelect(_a) {
|
|
|
337
338
|
}),
|
|
338
339
|
],
|
|
339
340
|
});
|
|
341
|
+
var zIndex = useZIndexContext().value;
|
|
340
342
|
var _9 = useInteractions([
|
|
341
343
|
useClick(floating.context, {
|
|
342
344
|
enabled: !disabled,
|
|
@@ -401,7 +403,7 @@ export function useSuperSelect(_a) {
|
|
|
401
403
|
top: floating.y || 0,
|
|
402
404
|
width: width,
|
|
403
405
|
maxHeight: maxHeight,
|
|
404
|
-
zIndex:
|
|
406
|
+
zIndex: zIndex,
|
|
405
407
|
},
|
|
406
408
|
},
|
|
407
409
|
},
|
|
@@ -520,7 +522,7 @@ export function useSuperSelect(_a) {
|
|
|
520
522
|
id: overlayId,
|
|
521
523
|
data: draggable ? queriedDraggableOptions : options,
|
|
522
524
|
components: {
|
|
523
|
-
Item: components === null || components === void 0 ? void 0 : components.Item,
|
|
525
|
+
Item: components === null || components === void 0 ? void 0 : components.Item, // TODO fix type
|
|
524
526
|
},
|
|
525
527
|
initialTopMostItemIndex: selectedIndex >= 0 ? selectedIndex : 0,
|
|
526
528
|
style: {
|