@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 +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;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal context used to pass the original Select instance's getStyles function
|
|
3
|
-
* down to components like MultiValue, without polluting the public CommonProps API.
|
|
4
|
-
*
|
|
5
|
-
* This allows MultiValue to detect whether getStyles has been overridden on a
|
|
6
|
-
* component instance (e.g. via a custom component wrapper passing a different
|
|
7
|
-
* getStyles prop), by comparing props.getStyles against the original.
|
|
8
|
-
*
|
|
9
|
-
* @internal — not part of the public API
|
|
10
|
-
*/
|
|
11
|
-
import { type Context } from 'react';
|
|
12
|
-
export declare const SelectGetStylesContext: Context<Function | undefined>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface Options {
|
|
2
|
-
readonly isEnabled: boolean;
|
|
3
|
-
readonly onBottomArrive?: (event: WheelEvent | TouchEvent) => void;
|
|
4
|
-
readonly onBottomLeave?: (event: WheelEvent | TouchEvent) => void;
|
|
5
|
-
readonly onTopArrive?: (event: WheelEvent | TouchEvent) => void;
|
|
6
|
-
readonly onTopLeave?: (event: WheelEvent | TouchEvent) => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* {description}.
|
|
10
|
-
*/
|
|
11
|
-
export default function useScrollCapture({ isEnabled, onBottomArrive, onBottomLeave, onTopArrive, onTopLeave, }: Options): (element: HTMLElement | null) => void;
|
|
12
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface Options {
|
|
2
|
-
readonly isEnabled: boolean;
|
|
3
|
-
readonly accountForScrollbars?: boolean;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* {description}.
|
|
7
|
-
*/
|
|
8
|
-
export default function useScrollLock({ isEnabled, accountForScrollbars }: Options): (element: HTMLElement | null) => void;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useSelectGetStyles: () => Function | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isOptionDisabled: <Option>(option: Option) => boolean;
|