@atlaskit/react-select 3.16.2 → 4.0.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.
- package/CHANGELOG.md +42 -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/cjs/components/multi-value.js +4 -2
- package/dist/es2019/components/control.compiled.css +3 -3
- package/dist/es2019/components/control.js +1 -1
- package/dist/es2019/components/multi-value.js +4 -2
- package/dist/esm/components/control.compiled.css +3 -3
- package/dist/esm/components/control.js +1 -1
- package/dist/esm/components/multi-value.js +4 -2
- 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,80 +0,0 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
import type { GroupBase, MultiValueGenericProps, NoticeProps } from '../types';
|
|
3
|
-
import { IndicatorsContainer, type IndicatorsContainerProps } from './containers/indicators-container';
|
|
4
|
-
import { MultiValueContainer } from './containers/multi-value-container';
|
|
5
|
-
import { type ContainerProps, SelectContainer } from './containers/select-container';
|
|
6
|
-
import { ValueContainer, type ValueContainerProps } from './containers/value-container';
|
|
7
|
-
import Control, { type ControlProps } from './control';
|
|
8
|
-
import Group, { type GroupProps } from './group';
|
|
9
|
-
import { GroupHeading, type GroupHeadingProps } from './group-heading';
|
|
10
|
-
import { ClearIndicator, type ClearIndicatorProps } from './indicators/clear-indicator';
|
|
11
|
-
import { DropdownIndicator, type DropdownIndicatorProps } from './indicators/dropdown-indicator';
|
|
12
|
-
import { LoadingIndicator, type LoadingIndicatorProps } from './indicators/loading-indicator';
|
|
13
|
-
import Input, { type InputProps } from './input';
|
|
14
|
-
import Menu from './menu';
|
|
15
|
-
import type { MenuProps } from './menu';
|
|
16
|
-
import { MenuList, type MenuListProps } from './menu-list';
|
|
17
|
-
import { LoadingMessage } from './menu-loading-message';
|
|
18
|
-
import { NoOptionsMessage } from './menu-no-options-message';
|
|
19
|
-
import { MenuPortal, type MenuPortalProps } from './menu-portal';
|
|
20
|
-
import MultiValue, { type MultiValueProps } from './multi-value';
|
|
21
|
-
import { MultiValueLabel } from './multi-value-label';
|
|
22
|
-
import { MultiValueRemove, type MultiValueRemoveProps } from './multi-value-remove';
|
|
23
|
-
import Option, { type OptionProps } from './option';
|
|
24
|
-
import Placeholder, { type PlaceholderProps } from './placeholder';
|
|
25
|
-
import SingleValue, { type SingleValueProps } from './single-value';
|
|
26
|
-
export interface SelectComponents<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
|
27
|
-
ClearIndicator: ComponentType<ClearIndicatorProps<Option, IsMulti, Group>>;
|
|
28
|
-
Control: ComponentType<ControlProps<Option, IsMulti, Group>>;
|
|
29
|
-
DropdownIndicator: ComponentType<DropdownIndicatorProps<Option, IsMulti, Group>> | null;
|
|
30
|
-
Group: ComponentType<GroupProps<Option, IsMulti, Group>>;
|
|
31
|
-
GroupHeading: ComponentType<GroupHeadingProps<Option, IsMulti, Group>>;
|
|
32
|
-
IndicatorsContainer: ComponentType<IndicatorsContainerProps<Option, IsMulti, Group>>;
|
|
33
|
-
Input: ComponentType<InputProps<Option, IsMulti, Group>>;
|
|
34
|
-
LoadingIndicator: ComponentType<LoadingIndicatorProps<Option, IsMulti, Group>>;
|
|
35
|
-
Menu: ComponentType<MenuProps<Option, IsMulti, Group>>;
|
|
36
|
-
MenuList: ComponentType<MenuListProps<Option, IsMulti, Group>>;
|
|
37
|
-
MenuPortal: ComponentType<MenuPortalProps<Option, IsMulti, Group>>;
|
|
38
|
-
LoadingMessage: ComponentType<NoticeProps<Option, IsMulti, Group>>;
|
|
39
|
-
NoOptionsMessage: ComponentType<NoticeProps<Option, IsMulti, Group>>;
|
|
40
|
-
MultiValue: ComponentType<MultiValueProps<Option, IsMulti, Group>>;
|
|
41
|
-
MultiValueContainer: ComponentType<MultiValueGenericProps<Option, IsMulti, Group>>;
|
|
42
|
-
MultiValueLabel: ComponentType<MultiValueGenericProps<Option, IsMulti, Group>>;
|
|
43
|
-
MultiValueRemove: ComponentType<MultiValueRemoveProps<Option, IsMulti, Group>>;
|
|
44
|
-
Option: ComponentType<OptionProps<Option, IsMulti, Group>>;
|
|
45
|
-
Placeholder: ComponentType<PlaceholderProps<Option, IsMulti, Group>>;
|
|
46
|
-
SelectContainer: ComponentType<ContainerProps<Option, IsMulti, Group>>;
|
|
47
|
-
SingleValue: ComponentType<SingleValueProps<Option, IsMulti, Group>>;
|
|
48
|
-
ValueContainer: ComponentType<ValueContainerProps<Option, IsMulti, Group>>;
|
|
49
|
-
}
|
|
50
|
-
export type SelectComponentsConfig<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = Partial<SelectComponents<Option, IsMulti, Group>>;
|
|
51
|
-
export declare const components: {
|
|
52
|
-
ClearIndicator: typeof ClearIndicator;
|
|
53
|
-
Control: typeof Control;
|
|
54
|
-
DropdownIndicator: typeof DropdownIndicator;
|
|
55
|
-
Group: typeof Group;
|
|
56
|
-
GroupHeading: typeof GroupHeading;
|
|
57
|
-
IndicatorsContainer: typeof IndicatorsContainer;
|
|
58
|
-
Input: typeof Input;
|
|
59
|
-
LoadingIndicator: typeof LoadingIndicator;
|
|
60
|
-
Menu: typeof Menu;
|
|
61
|
-
MenuList: typeof MenuList;
|
|
62
|
-
MenuPortal: typeof MenuPortal;
|
|
63
|
-
LoadingMessage: typeof LoadingMessage;
|
|
64
|
-
NoOptionsMessage: typeof NoOptionsMessage;
|
|
65
|
-
MultiValue: typeof MultiValue;
|
|
66
|
-
MultiValueContainer: typeof MultiValueContainer;
|
|
67
|
-
MultiValueLabel: typeof MultiValueLabel;
|
|
68
|
-
MultiValueRemove: typeof MultiValueRemove;
|
|
69
|
-
Option: typeof Option;
|
|
70
|
-
Placeholder: typeof Placeholder;
|
|
71
|
-
SelectContainer: typeof SelectContainer;
|
|
72
|
-
SingleValue: typeof SingleValue;
|
|
73
|
-
ValueContainer: typeof ValueContainer;
|
|
74
|
-
};
|
|
75
|
-
type SelectComponentsGeneric = typeof components;
|
|
76
|
-
interface ComponentsProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
|
77
|
-
components: SelectComponentsConfig<Option, IsMulti, Group>;
|
|
78
|
-
}
|
|
79
|
-
export declare const defaultComponents: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ComponentsProps<Option, IsMulti, Group>) => SelectComponentsGeneric;
|
|
80
|
-
export {};
|
|
@@ -1,29 +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 ClearIndicatorProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
8
|
-
/**
|
|
9
|
-
* The children to be rendered inside the indicator.
|
|
10
|
-
*/
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Sets the `aria-label` for the clear icon button
|
|
14
|
-
*/
|
|
15
|
-
clearControlLabel?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Props that will be passed on to the children.
|
|
18
|
-
*/
|
|
19
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
20
|
-
/**
|
|
21
|
-
* The focused state of the select.
|
|
22
|
-
*/
|
|
23
|
-
isFocused: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Whether the select is compact.
|
|
26
|
-
*/
|
|
27
|
-
isCompact?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare const ClearIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ClearIndicatorProps<Option, IsMulti, Group>) => JSX.Element;
|
|
@@ -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 DropdownIndicatorProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
8
|
-
/**
|
|
9
|
-
* The children to be rendered inside the indicator.
|
|
10
|
-
*/
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Props that will be passed on to the children.
|
|
14
|
-
*/
|
|
15
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
16
|
-
/**
|
|
17
|
-
* The focused state of the select.
|
|
18
|
-
*/
|
|
19
|
-
isFocused: boolean;
|
|
20
|
-
isDisabled: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Whether the select is compact.
|
|
23
|
-
*/
|
|
24
|
-
isCompact?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare const DropdownIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: DropdownIndicatorProps<Option, IsMulti, Group>) => JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type CommonPropsAndClassName, type GroupBase } from '../../types';
|
|
6
|
-
export interface LoadingIndicatorProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
7
|
-
/**
|
|
8
|
-
* Props that will be passed on to the children.
|
|
9
|
-
*/
|
|
10
|
-
innerProps: JSX.IntrinsicElements['div'];
|
|
11
|
-
/**
|
|
12
|
-
* The focused state of the select.
|
|
13
|
-
*/
|
|
14
|
-
isFocused: boolean;
|
|
15
|
-
isDisabled: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Set size of the container.
|
|
18
|
-
*/
|
|
19
|
-
size: number;
|
|
20
|
-
/**
|
|
21
|
-
* Whether the select is compact.
|
|
22
|
-
*/
|
|
23
|
-
isCompact?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare const LoadingIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ innerProps, isRtl, size, isCompact, xcss, ...restProps }: LoadingIndicatorProps<Option, IsMulti, Group>) => JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type InputHTMLAttributes } from 'react';
|
|
6
|
-
import { type CommonPropsAndClassName, type GroupBase } from '../types';
|
|
7
|
-
interface InputSpecificProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends InputHTMLAttributes<HTMLInputElement>, CommonPropsAndClassName<Option, IsMulti, Group> {
|
|
8
|
-
/**
|
|
9
|
-
* Reference to the internal element
|
|
10
|
-
*/
|
|
11
|
-
innerRef?: (instance: HTMLInputElement | null) => void;
|
|
12
|
-
/**
|
|
13
|
-
* Set whether the input should be visible. Does not affect input size.
|
|
14
|
-
*/
|
|
15
|
-
isHidden: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Whether the input is disabled
|
|
18
|
-
*/
|
|
19
|
-
isDisabled?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The ID of the form that the input belongs to
|
|
22
|
-
*/
|
|
23
|
-
form?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Set className for the input element
|
|
26
|
-
*/
|
|
27
|
-
inputClassName?: string;
|
|
28
|
-
/**
|
|
29
|
-
* A testId prop is provided for specific elements. This is a unique string that appears as a data attribute data-testid in the rendered code and serves as a hook for automated tests.
|
|
30
|
-
*/
|
|
31
|
-
testId?: string;
|
|
32
|
-
}
|
|
33
|
-
export type InputProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> = InputSpecificProps<Option, IsMulti, Group>;
|
|
34
|
-
declare const Input: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: InputProps<Option, IsMulti, Group>) => JSX.Element;
|
|
35
|
-
export default Input;
|
|
@@ -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';
|