@atlaskit/react-select 3.16.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/accessibility/package.json +1 -8
- package/async/package.json +1 -8
- package/async-creatable/package.json +1 -8
- package/base/package.json +1 -8
- package/clear-indicator/package.json +1 -8
- package/components/package.json +1 -8
- package/control/package.json +1 -8
- package/creatable/package.json +1 -8
- package/dist/cjs/components/control.compiled.css +3 -3
- package/dist/cjs/components/control.js +1 -1
- package/dist/es2019/components/control.compiled.css +3 -3
- package/dist/es2019/components/control.js +1 -1
- package/dist/esm/components/control.compiled.css +3 -3
- package/dist/esm/components/control.js +1 -1
- package/dropdown-indicator/package.json +1 -8
- package/filters/package.json +1 -8
- package/group/package.json +1 -8
- package/group-heading/package.json +1 -8
- package/indicators-container/package.json +1 -8
- package/input/package.json +1 -8
- package/loading-indicator/package.json +1 -8
- package/menu/package.json +1 -8
- package/menu-list/package.json +1 -8
- package/menu-portal/package.json +1 -8
- package/multi-value/package.json +1 -8
- package/multi-value-remove/package.json +1 -8
- package/option/package.json +1 -8
- package/package.json +12 -20
- package/placeholder/package.json +1 -8
- package/select-container/package.json +1 -8
- package/single-value/package.json +1 -8
- package/state-manager/package.json +1 -8
- package/styles/package.json +1 -8
- package/types/package.json +1 -8
- package/use-async/package.json +1 -8
- package/use-creatable/package.json +1 -8
- package/use-state-manager/package.json +1 -8
- package/value-container/package.json +1 -8
- package/dist/types-ts4.5/accessibility/index.d.ts +0 -123
- package/dist/types-ts4.5/async-creatable.d.ts +0 -10
- package/dist/types-ts4.5/async.d.ts +0 -8
- package/dist/types-ts4.5/builtins.d.ts +0 -4
- package/dist/types-ts4.5/colors.d.ts +0 -19
- package/dist/types-ts4.5/compiled/components/indicators-container.d.ts +0 -18
- package/dist/types-ts4.5/compiled/components/select-container.d.ts +0 -22
- package/dist/types-ts4.5/compiled/components/value-container.d.ts +0 -22
- package/dist/types-ts4.5/components/containers/indicators-container.d.ts +0 -18
- package/dist/types-ts4.5/components/containers/multi-value-container.d.ts +0 -6
- package/dist/types-ts4.5/components/containers/select-container.d.ts +0 -22
- package/dist/types-ts4.5/components/containers/value-container.d.ts +0 -22
- package/dist/types-ts4.5/components/control.d.ts +0 -40
- package/dist/types-ts4.5/components/dummy-input.d.ts +0 -8
- package/dist/types-ts4.5/components/group-heading.d.ts +0 -19
- package/dist/types-ts4.5/components/group.d.ts +0 -36
- package/dist/types-ts4.5/components/index.d.ts +0 -80
- package/dist/types-ts4.5/components/indicators/clear-indicator.d.ts +0 -29
- package/dist/types-ts4.5/components/indicators/dropdown-indicator.d.ts +0 -26
- package/dist/types-ts4.5/components/indicators/loading-indicator.d.ts +0 -25
- package/dist/types-ts4.5/components/input.d.ts +0 -35
- package/dist/types-ts4.5/components/live-region.d.ts +0 -17
- package/dist/types-ts4.5/components/menu-list.d.ts +0 -29
- package/dist/types-ts4.5/components/menu-loading-message.d.ts +0 -2
- package/dist/types-ts4.5/components/menu-no-options-message.d.ts +0 -2
- package/dist/types-ts4.5/components/menu-placer.d.ts +0 -49
- package/dist/types-ts4.5/components/menu-portal.d.ts +0 -23
- package/dist/types-ts4.5/components/menu.d.ts +0 -22
- package/dist/types-ts4.5/components/multi-value-label.d.ts +0 -6
- package/dist/types-ts4.5/components/multi-value-remove.d.ts +0 -20
- package/dist/types-ts4.5/components/multi-value.d.ts +0 -25
- package/dist/types-ts4.5/components/option.d.ts +0 -47
- package/dist/types-ts4.5/components/placeholder.d.ts +0 -20
- package/dist/types-ts4.5/components/single-value.d.ts +0 -26
- package/dist/types-ts4.5/creatable.d.ts +0 -9
- package/dist/types-ts4.5/diacritics.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/accessibility.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/async-creatable.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/async.d.ts +0 -3
- package/dist/types-ts4.5/entry-points/base.d.ts +0 -3
- package/dist/types-ts4.5/entry-points/clear-indicator.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/components.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/control.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/creatable.d.ts +0 -3
- package/dist/types-ts4.5/entry-points/dropdown-indicator.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/filters.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/group-heading.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/group.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/indicators-container.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/input.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/loading-indicator.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/menu-list.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/menu-portal.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/menu.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/multi-value-remove.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/multi-value.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/option.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/placeholder.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/select-container.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/single-value.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/state-manager.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/styles.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/use-async.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/use-creatable.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/use-state-manager.d.ts +0 -2
- package/dist/types-ts4.5/entry-points/value-container.d.ts +0 -2
- package/dist/types-ts4.5/filters.d.ts +0 -14
- package/dist/types-ts4.5/format-group-label.d.ts +0 -2
- package/dist/types-ts4.5/get-option-label.d.ts +0 -1
- package/dist/types-ts4.5/get-option-value.d.ts +0 -1
- package/dist/types-ts4.5/get-style-props.d.ts +0 -6
- package/dist/types-ts4.5/index.d.ts +0 -34
- package/dist/types-ts4.5/internal/a11y-text.d.ts +0 -2
- package/dist/types-ts4.5/internal/classnames.d.ts +0 -2
- package/dist/types-ts4.5/internal/clean-common-props.d.ts +0 -2
- package/dist/types-ts4.5/internal/clean-value.d.ts +0 -2
- package/dist/types-ts4.5/internal/is-document-el.d.ts +0 -1
- package/dist/types-ts4.5/internal/multi-value-as-value.d.ts +0 -2
- package/dist/types-ts4.5/internal/notify-open-layer-observer.d.ts +0 -11
- package/dist/types-ts4.5/internal/passive-event-detector.d.ts +0 -1
- package/dist/types-ts4.5/internal/portal-placement-context.d.ts +0 -14
- package/dist/types-ts4.5/internal/required-input.d.ts +0 -10
- package/dist/types-ts4.5/internal/scroll-manager.d.ts +0 -12
- package/dist/types-ts4.5/internal/scroll-to.d.ts +0 -1
- package/dist/types-ts4.5/internal/select-get-styles-context.d.ts +0 -12
- package/dist/types-ts4.5/internal/single-value-as-value.d.ts +0 -2
- package/dist/types-ts4.5/internal/use-scroll-capture.d.ts +0 -12
- package/dist/types-ts4.5/internal/use-scroll-lock.d.ts +0 -9
- package/dist/types-ts4.5/internal/use-select-get-styles.d.ts +0 -1
- package/dist/types-ts4.5/internal/value-ternary.d.ts +0 -2
- package/dist/types-ts4.5/is-option-disabled.d.ts +0 -1
- package/dist/types-ts4.5/select.d.ts +0 -597
- package/dist/types-ts4.5/state-manager.d.ts +0 -16
- package/dist/types-ts4.5/styles.d.ts +0 -50
- package/dist/types-ts4.5/theme.d.ts +0 -6
- package/dist/types-ts4.5/types.d.ts +0 -154
- package/dist/types-ts4.5/use-async.d.ts +0 -31
- package/dist/types-ts4.5/use-creatable.d.ts +0 -46
- package/dist/types-ts4.5/use-state-manager.d.ts +0 -15
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
import { type AriaSelection } from '../accessibility';
|
|
3
|
-
import { type CommonProps, type GroupBase, type Options } from '../types';
|
|
4
|
-
interface LiveRegionProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> extends CommonProps<Option, IsMulti, Group> {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
innerProps: {
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
ariaSelection: AriaSelection<Option, IsMulti>;
|
|
10
|
-
selectValue: Options<Option>;
|
|
11
|
-
focusableOptions: Options<Option>;
|
|
12
|
-
isFocused: boolean;
|
|
13
|
-
id: string;
|
|
14
|
-
isAppleDevice: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare const LiveRegion: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: LiveRegionProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
17
|
-
export default LiveRegion;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type LegacyRef, type ReactNode } from 'react';
|
|
6
|
-
import type { CommonPropsAndClassName, GroupBase } from '../types';
|
|
7
|
-
export interface MenuListProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
8
|
-
/**
|
|
9
|
-
* Set the max height of the Menu component
|
|
10
|
-
*/
|
|
11
|
-
maxHeight: number;
|
|
12
|
-
/**
|
|
13
|
-
* The children to be rendered.
|
|
14
|
-
*/
|
|
15
|
-
children: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Inner ref to DOM ReactNode
|
|
18
|
-
*/
|
|
19
|
-
innerRef: LegacyRef<HTMLDivElement>;
|
|
20
|
-
/**
|
|
21
|
-
* The currently focused option
|
|
22
|
-
*/
|
|
23
|
-
focusedOption: Option;
|
|
24
|
-
/**
|
|
25
|
-
* Props to be passed to the menu-list wrapper.
|
|
26
|
-
*/
|
|
27
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
28
|
-
}
|
|
29
|
-
export declare const MenuList: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MenuListProps<Option, IsMulti, Group>) => JSX.Element;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { type ReactElement, type Ref } from 'react';
|
|
2
|
-
import type { CoercedMenuPlacement, CommonProps, GroupBase, MenuPlacement, MenuPosition } from '../types';
|
|
3
|
-
interface ChildrenProps {
|
|
4
|
-
ref: Ref<HTMLDivElement>;
|
|
5
|
-
placerProps: PlacerProps;
|
|
6
|
-
}
|
|
7
|
-
interface PlacerProps {
|
|
8
|
-
placement: CoercedMenuPlacement;
|
|
9
|
-
maxHeight: number;
|
|
10
|
-
}
|
|
11
|
-
export interface MenuPlacementProps {
|
|
12
|
-
/**
|
|
13
|
-
* Set the minimum height of the menu.
|
|
14
|
-
*/
|
|
15
|
-
minMenuHeight: number;
|
|
16
|
-
/**
|
|
17
|
-
* Set the maximum height of the menu.
|
|
18
|
-
*/
|
|
19
|
-
maxMenuHeight: number;
|
|
20
|
-
/**
|
|
21
|
-
* Set whether the menu should be at the top, at the bottom. The auto options sets it to bottom.
|
|
22
|
-
*/
|
|
23
|
-
menuPlacement: MenuPlacement;
|
|
24
|
-
/**
|
|
25
|
-
* The CSS position value of the menu, when "fixed" extra layout management is required
|
|
26
|
-
*/
|
|
27
|
-
menuPosition: MenuPosition;
|
|
28
|
-
/**
|
|
29
|
-
* Set whether the page should scroll to show the menu.
|
|
30
|
-
*/
|
|
31
|
-
menuShouldScrollIntoView: boolean;
|
|
32
|
-
}
|
|
33
|
-
interface MenuPlacerProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> extends CommonProps<Option, IsMulti, Group>, MenuPlacementProps {
|
|
34
|
-
/**
|
|
35
|
-
* The children to be rendered.
|
|
36
|
-
*/
|
|
37
|
-
children: (childrenProps: ChildrenProps) => ReactElement;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* __Menu placer__
|
|
41
|
-
*
|
|
42
|
-
* A menu placer {description}.
|
|
43
|
-
*
|
|
44
|
-
* - [Examples](https://atlassian.design/components/{packageName}/examples)
|
|
45
|
-
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
46
|
-
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
47
|
-
*/
|
|
48
|
-
declare const MenuPlacer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MenuPlacerProps<Option, IsMulti, Group>) => ReactElement<any, string | import('react').JSXElementConstructor<any>>;
|
|
49
|
-
export default MenuPlacer;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
import type { CommonPropsAndClassName, GroupBase, MenuPlacement, MenuPosition } from '../types';
|
|
7
|
-
export interface MenuPortalProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
8
|
-
appendTo: HTMLElement | undefined;
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
controlElement: HTMLDivElement | null;
|
|
11
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
12
|
-
menuPlacement: MenuPlacement;
|
|
13
|
-
menuPosition: MenuPosition;
|
|
14
|
-
}
|
|
15
|
-
export interface PortalStyleArgs {
|
|
16
|
-
offset: number;
|
|
17
|
-
position: MenuPosition;
|
|
18
|
-
rect: {
|
|
19
|
-
left: number;
|
|
20
|
-
width: number;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare const MenuPortal: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MenuPortalProps<Option, IsMulti, Group>) => JSX.Element | null;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode, type Ref } from 'react';
|
|
6
|
-
import { type CoercedMenuPlacement, type CommonPropsAndClassName, type GroupBase } from '../types';
|
|
7
|
-
import type { MenuPlacementProps } from './menu-placer';
|
|
8
|
-
export interface MenuProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group>, MenuPlacementProps {
|
|
9
|
-
/**
|
|
10
|
-
* Reference to the internal element, consumed by the MenuPlacer component
|
|
11
|
-
*/
|
|
12
|
-
innerRef: Ref<HTMLDivElement>;
|
|
13
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
14
|
-
isLoading: boolean;
|
|
15
|
-
placement: CoercedMenuPlacement;
|
|
16
|
-
/**
|
|
17
|
-
* The children to be rendered.
|
|
18
|
-
*/
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}
|
|
21
|
-
declare const Menu: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MenuProps<Option, IsMulti, Group>) => JSX.Element;
|
|
22
|
-
export default Menu;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import type { GroupBase, MultiValueGenericProps } from '../types';
|
|
6
|
-
export declare const MultiValueLabel: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ children, innerProps, isDisabled, hasEllipsis, className, xcss, }: MultiValueGenericProps<Option, IsMulti, Group>) => JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import type { ReactNode } from 'react';
|
|
6
|
-
import { type XCSSProp } from '@compiled/react';
|
|
7
|
-
import type { XCSSAllProperties, XCSSAllPseudos } from '@atlaskit/css';
|
|
8
|
-
import type { SelectProps } from '../select';
|
|
9
|
-
import type { GroupBase } from '../types';
|
|
10
|
-
export interface MultiValueRemoveProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> {
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
data: Option;
|
|
13
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
14
|
-
selectProps: SelectProps<Option, IsMulti, Group>;
|
|
15
|
-
isDisabled: boolean;
|
|
16
|
-
isFocused?: boolean;
|
|
17
|
-
className?: string | undefined;
|
|
18
|
-
xcss?: XCSSProp<XCSSAllProperties, XCSSAllPseudos> | undefined;
|
|
19
|
-
}
|
|
20
|
-
export declare function MultiValueRemove<Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ isDisabled, isFocused, innerProps, className, xcss, }: MultiValueRemoveProps<Option, IsMulti, Group>): JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import type { ComponentType, ReactNode } from 'react';
|
|
6
|
-
import type { CommonPropsAndClassName, GroupBase, MultiValueGenericProps } from '../types';
|
|
7
|
-
import type { MultiValueRemoveProps } from './multi-value-remove';
|
|
8
|
-
interface MultiValueComponents<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
|
9
|
-
Container: ComponentType<MultiValueGenericProps<Option, IsMulti, Group>>;
|
|
10
|
-
Label: ComponentType<MultiValueGenericProps<Option, IsMulti, Group>>;
|
|
11
|
-
Remove: ComponentType<MultiValueRemoveProps<Option, IsMulti, Group>>;
|
|
12
|
-
}
|
|
13
|
-
export interface MultiValueProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
components: MultiValueComponents<Option, IsMulti, Group>;
|
|
16
|
-
cropWithEllipsis?: boolean;
|
|
17
|
-
data: Option;
|
|
18
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
19
|
-
isFocused: boolean;
|
|
20
|
-
isDisabled: boolean;
|
|
21
|
-
removeProps: JSX.IntrinsicElements['div'];
|
|
22
|
-
index: number;
|
|
23
|
-
}
|
|
24
|
-
declare const MultiValue: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueProps<Option, IsMulti, Group>) => JSX.Element;
|
|
25
|
-
export default MultiValue;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode, type RefCallback } from 'react';
|
|
6
|
-
import { type CommonPropsAndClassName, type GroupBase } from '../types';
|
|
7
|
-
export interface OptionProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
8
|
-
/**
|
|
9
|
-
* The children to be rendered.
|
|
10
|
-
*/
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Inner ref to DOM Node
|
|
14
|
-
*/
|
|
15
|
-
innerRef: RefCallback<HTMLDivElement>;
|
|
16
|
-
/**
|
|
17
|
-
* props passed to the wrapping element for the group.
|
|
18
|
-
*/
|
|
19
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
20
|
-
/**
|
|
21
|
-
* Text to be displayed representing the option.
|
|
22
|
-
*/
|
|
23
|
-
label: string;
|
|
24
|
-
/**
|
|
25
|
-
* Type is used by the menu to determine whether this is an option or a group.
|
|
26
|
-
* In the case of option this is always `option`. *
|
|
27
|
-
*/
|
|
28
|
-
type: 'option';
|
|
29
|
-
/**
|
|
30
|
-
* The data of the selected option.
|
|
31
|
-
*/
|
|
32
|
-
data: Option;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the option is disabled.
|
|
35
|
-
*/
|
|
36
|
-
isDisabled: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Whether the option is focused.
|
|
39
|
-
*/
|
|
40
|
-
isFocused: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Whether the option is selected.
|
|
43
|
-
*/
|
|
44
|
-
isSelected: boolean;
|
|
45
|
-
}
|
|
46
|
-
declare const Option: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: OptionProps<Option, IsMulti, Group>) => JSX.Element;
|
|
47
|
-
export default Option;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
import { type CommonPropsAndClassName, type GroupBase } from '../types';
|
|
7
|
-
export interface PlaceholderProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
8
|
-
/**
|
|
9
|
-
* The children to be rendered.
|
|
10
|
-
*/
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* props passed to the wrapping element for the group.
|
|
14
|
-
*/
|
|
15
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
16
|
-
isDisabled: boolean;
|
|
17
|
-
isFocused: boolean;
|
|
18
|
-
}
|
|
19
|
-
declare const Placeholder: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: PlaceholderProps<Option, IsMulti, Group>) => JSX.Element;
|
|
20
|
-
export default Placeholder;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ReactNode } from 'react';
|
|
6
|
-
import { type CommonPropsAndClassName, type GroupBase } from '../types';
|
|
7
|
-
export interface SingleValueProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
8
|
-
/**
|
|
9
|
-
* The children to be rendered.
|
|
10
|
-
*/
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* The data of the selected option rendered in the Single Value component.
|
|
14
|
-
*/
|
|
15
|
-
data: Option;
|
|
16
|
-
/**
|
|
17
|
-
* Props passed to the wrapping element for the group.
|
|
18
|
-
*/
|
|
19
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
20
|
-
/**
|
|
21
|
-
* Whether this is disabled.
|
|
22
|
-
*/
|
|
23
|
-
isDisabled: boolean;
|
|
24
|
-
}
|
|
25
|
-
declare const SingleValue: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: SingleValueProps<Option, IsMulti, Group>) => JSX.Element;
|
|
26
|
-
export default SingleValue;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ReactElement, type RefAttributes } from 'react';
|
|
2
|
-
import Select from './select';
|
|
3
|
-
import type { GroupBase } from './types';
|
|
4
|
-
import { type CreatableAdditionalProps } from './use-creatable';
|
|
5
|
-
import { type StateManagerProps } from './use-state-manager';
|
|
6
|
-
export type CreatableProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = StateManagerProps<Option, IsMulti, Group> & CreatableAdditionalProps<Option, Group>;
|
|
7
|
-
type CreatableSelect = <Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: CreatableProps<Option, IsMulti, Group> & RefAttributes<Select<Option, IsMulti, Group>>) => ReactElement;
|
|
8
|
-
declare const CreatableSelect: CreatableSelect;
|
|
9
|
-
export default CreatableSelect;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const stripDiacritics: (str: string) => string;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { defaultAriaLiveMessages } from '../accessibility/index';
|
|
2
|
-
export type { AriaGuidance, AriaGuidanceProps, AriaLiveMessages, AriaOnChange, AriaOnChangeProps, AriaOnFilter, AriaOnFilterProps, AriaOnFocus, AriaOnFocusProps, AriaSelection, GuidanceContext, OptionContext, } from '../accessibility/index';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '../state-manager';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ActionMeta, ActionMetaBase, CSSObjectWithLabel, CX, ClassNamesState, ClearActionMeta, CoercedMenuPlacement, Colors, CommonProps, CommonPropsAndClassName, CreateOptionActionMeta, DeselectOptionActionMeta, FocusDirection, GetOptionLabel, GetOptionValue, GetStyles, GroupBase, InitialInputFocusedActionMeta, InputAction, InputActionMeta, MenuPlacement, MenuPosition, MultiValue, MultiValueGenericProps, NoticeProps, OnChangeValue, Options, OptionsOrGroups, PopValueActionMeta, PropsValue, RemoveValueActionMeta, SelectOptionActionMeta, SetValueAction, SingleValue, Theme, ThemeSpacing, } from '../types';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface FilterOptionOption<Option> {
|
|
2
|
-
readonly label: string;
|
|
3
|
-
readonly value: string;
|
|
4
|
-
readonly data: Option;
|
|
5
|
-
}
|
|
6
|
-
interface Config<Option> {
|
|
7
|
-
readonly ignoreCase?: boolean;
|
|
8
|
-
readonly ignoreAccents?: boolean;
|
|
9
|
-
readonly stringify?: (option: FilterOptionOption<Option>) => string;
|
|
10
|
-
readonly trim?: boolean;
|
|
11
|
-
readonly matchFrom?: 'any' | 'start';
|
|
12
|
-
}
|
|
13
|
-
export declare const createFilter: <Option>(config?: Config<Option>) => (option: FilterOptionOption<Option>, rawInput: string) => boolean;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getOptionLabel: <Option>(option: Option) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getOptionValue: <Option>(option: Option) => string;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { StylesProps } from './styles';
|
|
2
|
-
import type { ClassNamesState, CommonPropsAndClassName, GroupBase } from './types';
|
|
3
|
-
export declare const getStyleProps: <Option, IsMulti extends boolean, Group extends GroupBase<Option>, Key extends keyof StylesProps<Option, IsMulti, Group>>(props: Pick<CommonPropsAndClassName<Option, IsMulti, Group>, 'cx' | 'getStyles' | 'getClassNames' | 'className'> & StylesProps<Option, IsMulti, Group>[Key], name: Key, classNamesState?: ClassNamesState) => {
|
|
4
|
-
css: any;
|
|
5
|
-
className: string;
|
|
6
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type Select from './select';
|
|
2
|
-
import type { GroupBase } from './types';
|
|
3
|
-
import useStateManager from './use-state-manager';
|
|
4
|
-
export { default } from './state-manager';
|
|
5
|
-
export { mergeStyles } from './styles';
|
|
6
|
-
export { createFilter, type FilterOptionOption } from './filters';
|
|
7
|
-
export { components } from './components';
|
|
8
|
-
export type SelectInstance<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Select<Option, IsMulti, Group>;
|
|
9
|
-
export type { StateManagerProps as Props } from './use-state-manager';
|
|
10
|
-
export { useStateManager };
|
|
11
|
-
export type { SelectComponentsConfig, SelectComponents } from './components';
|
|
12
|
-
export type { ContainerProps } from './components/containers/select-container';
|
|
13
|
-
export type { IndicatorsContainerProps } from './components/containers/indicators-container';
|
|
14
|
-
export type { ValueContainerProps } from './components/containers/value-container';
|
|
15
|
-
export type { ControlProps } from './components/control';
|
|
16
|
-
export type { GroupProps } from './components/group';
|
|
17
|
-
export type { GroupHeadingProps } from './components/group-heading';
|
|
18
|
-
export type { ClearIndicatorProps } from './components/indicators/clear-indicator';
|
|
19
|
-
export type { DropdownIndicatorProps } from './components/indicators/dropdown-indicator';
|
|
20
|
-
export type { LoadingIndicatorProps } from './components/indicators/loading-indicator';
|
|
21
|
-
export type { InputProps } from './components/input';
|
|
22
|
-
export type { MenuListProps } from './components/menu-list';
|
|
23
|
-
export type { MenuProps } from './components/menu';
|
|
24
|
-
export type { MenuPortalProps } from './components/menu-portal';
|
|
25
|
-
export type { NoticeProps, MultiValueGenericProps } from './types';
|
|
26
|
-
export type { MultiValueProps } from './components/multi-value';
|
|
27
|
-
export type { MultiValueRemoveProps } from './components/multi-value-remove';
|
|
28
|
-
export type { OptionProps } from './components/option';
|
|
29
|
-
export type { PlaceholderProps } from './components/placeholder';
|
|
30
|
-
export type { SingleValueProps } from './components/single-value';
|
|
31
|
-
export type { ClassNamesConfig, StylesConfig } from './styles';
|
|
32
|
-
export { type GroupBase, type OptionsOrGroups, type Options, type SingleValue, type MultiValue, type PropsValue, type OnChangeValue, type Colors, type ThemeSpacing, type Theme, type ClassNamesState, type CX, type GetStyles, type CommonProps, type CommonPropsAndClassName, type ActionMetaBase, type SelectOptionActionMeta, type DeselectOptionActionMeta, type RemoveValueActionMeta, type PopValueActionMeta, type ClearActionMeta, type CreateOptionActionMeta, type InitialInputFocusedActionMeta, type ActionMeta, type SetValueAction, type InputAction, type InputActionMeta, type MenuPlacement, type CoercedMenuPlacement, type MenuPosition, type FocusDirection, type GetOptionLabel, type GetOptionValue, type CSSObjectWithLabel, } from './types';
|
|
33
|
-
export type { OptionContext, GuidanceContext, AriaGuidanceProps, AriaOnChangeProps, AriaOnFilterProps, AriaOnFocusProps, AriaLiveMessages, AriaGuidance, AriaOnChange, AriaOnFilter, AriaOnFocus, } from './accessibility';
|
|
34
|
-
export type { FormatOptionLabelContext, FormatOptionLabelMeta } from './select';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { CommonPropsAndClassName, GroupBase } from '../types';
|
|
2
|
-
export declare const cleanCommonProps: <Option, IsMulti extends boolean, Group extends GroupBase<Option>, AdditionalProps>(props: Partial<CommonPropsAndClassName<Option, IsMulti, Group>> & AdditionalProps) => Omit<AdditionalProps, keyof CommonPropsAndClassName<Option, IsMulti, Group>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isDocumentElement(el: HTMLElement | typeof window): el is typeof window;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type NotifyOpenLayerObserverProps = {
|
|
2
|
-
isOpen: boolean;
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Functional component wrapper around `useNotifyOpenLayerObserver`.
|
|
7
|
-
*
|
|
8
|
-
* This is needed as Select is a class component, which cannot use hooks directly.
|
|
9
|
-
*/
|
|
10
|
-
export declare function NotifyOpenLayerObserver({ isOpen, onClose }: NotifyOpenLayerObserverProps): null;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const supportsPassiveEvents: boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Context } from 'react';
|
|
2
|
-
import type { CoercedMenuPlacement } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* __Portal placement context__
|
|
5
|
-
*
|
|
6
|
-
* A portal placement context {description}.
|
|
7
|
-
*
|
|
8
|
-
* - [Examples](https://atlassian.design/components/{packageName}/examples)
|
|
9
|
-
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
10
|
-
* - [Usage](https://atlassian.design/components/{packageName}/usage)
|
|
11
|
-
*/
|
|
12
|
-
export declare const PortalPlacementContext: Context<{
|
|
13
|
-
setPortalPlacement: (placement: CoercedMenuPlacement) => void;
|
|
14
|
-
} | null>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type FocusEventHandler, type FunctionComponent } from 'react';
|
|
6
|
-
declare const RequiredInput: FunctionComponent<{
|
|
7
|
-
readonly name?: string;
|
|
8
|
-
readonly onFocus: FocusEventHandler<HTMLInputElement>;
|
|
9
|
-
}>;
|
|
10
|
-
export default RequiredInput;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement, type RefCallback } from 'react';
|
|
2
|
-
interface ScrollManagerProps {
|
|
3
|
-
readonly children: (ref: RefCallback<HTMLElement>) => ReactElement;
|
|
4
|
-
readonly lockEnabled: boolean;
|
|
5
|
-
readonly captureEnabled: boolean;
|
|
6
|
-
readonly onBottomArrive?: (event: WheelEvent | TouchEvent) => void;
|
|
7
|
-
readonly onBottomLeave?: (event: WheelEvent | TouchEvent) => void;
|
|
8
|
-
readonly onTopArrive?: (event: WheelEvent | TouchEvent) => void;
|
|
9
|
-
readonly onTopLeave?: (event: WheelEvent | TouchEvent) => void;
|
|
10
|
-
}
|
|
11
|
-
export default function ScrollManager({ children, lockEnabled, captureEnabled, onBottomArrive, onBottomLeave, onTopArrive, onTopLeave, }: ScrollManagerProps): React.JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function scrollTo(el: HTMLElement | typeof window, top: number): void;
|