@atlaskit/react-select 2.6.6 → 2.7.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 +9 -0
- package/dist/cjs/accessibility/index.js +3 -49
- package/dist/cjs/compiled/components/live-region.js +8 -72
- package/dist/cjs/emotion/components/live-region.js +10 -76
- package/dist/cjs/select.js +141 -99
- package/dist/es2019/accessibility/index.js +3 -50
- package/dist/es2019/compiled/components/live-region.js +7 -71
- package/dist/es2019/emotion/components/live-region.js +7 -72
- package/dist/es2019/select.js +117 -82
- package/dist/esm/accessibility/index.js +3 -49
- package/dist/esm/compiled/components/live-region.js +9 -73
- package/dist/esm/emotion/components/live-region.js +9 -74
- package/dist/esm/select.js +139 -98
- package/dist/types/accessibility/index.d.ts +0 -2
- package/dist/types/compiled/components/live-region.d.ts +0 -2
- package/dist/types/emotion/components/live-region.d.ts +0 -2
- package/dist/types/select.d.ts +5 -6
- package/dist/types-ts4.5/accessibility/index.d.ts +0 -2
- package/dist/types-ts4.5/compiled/components/live-region.d.ts +0 -2
- package/dist/types-ts4.5/emotion/components/live-region.d.ts +0 -2
- package/dist/types-ts4.5/select.d.ts +5 -6
- package/package.json +1 -4
|
@@ -427,7 +427,6 @@ export interface SelectProps<Option, IsMulti extends boolean, Group extends Grou
|
|
|
427
427
|
UNSAFE_is_experimental_generic?: boolean;
|
|
428
428
|
}
|
|
429
429
|
export declare const defaultProps: {
|
|
430
|
-
'aria-live': string | undefined;
|
|
431
430
|
backspaceRemovesValue: boolean;
|
|
432
431
|
blurInputOnSelect: boolean;
|
|
433
432
|
captureMenuScroll: boolean;
|
|
@@ -507,7 +506,6 @@ interface CategorizedGroup<Option, Group extends GroupBase<Option>> {
|
|
|
507
506
|
type CategorizedGroupOrOption<Option, Group extends GroupBase<Option>> = CategorizedGroup<Option, Group> | CategorizedOption<Option>;
|
|
508
507
|
export default class Select<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> extends Component<SelectProps<Option, IsMulti, Group>, State<Option, IsMulti, Group>> {
|
|
509
508
|
static defaultProps: {
|
|
510
|
-
'aria-live': string | undefined;
|
|
511
509
|
backspaceRemovesValue: boolean;
|
|
512
510
|
blurInputOnSelect: boolean;
|
|
513
511
|
captureMenuScroll: boolean;
|
|
@@ -558,7 +556,6 @@ export default class Select<Option = unknown, IsMulti extends boolean = false, G
|
|
|
558
556
|
openAfterFocus: boolean;
|
|
559
557
|
scrollToFocusedOptionOnUpdate: boolean;
|
|
560
558
|
userIsDragging?: boolean;
|
|
561
|
-
isVoiceOver: boolean;
|
|
562
559
|
controlRef: HTMLDivElement | null;
|
|
563
560
|
getControlRef: RefCallback<HTMLDivElement>;
|
|
564
561
|
focusedOptionRef: HTMLDivElement | null;
|
|
@@ -592,6 +589,8 @@ export default class Select<Option = unknown, IsMulti extends boolean = false, G
|
|
|
592
589
|
focus: () => void;
|
|
593
590
|
blur: () => void;
|
|
594
591
|
openMenu(focusOption: 'first' | 'last'): void;
|
|
592
|
+
updateInputLabel(inputLabel?: string): void;
|
|
593
|
+
calculateInputLabel(focusedOption: Option, optionIndex: number): string;
|
|
595
594
|
focusValue(direction: 'previous' | 'next'): void;
|
|
596
595
|
focusOption(direction?: FocusDirection): void;
|
|
597
596
|
onChange: (newValue: OnChangeValue<Option, IsMulti>, actionMeta: ActionMeta<Option>) => void;
|
|
@@ -622,7 +621,7 @@ export default class Select<Option = unknown, IsMulti extends boolean = false, G
|
|
|
622
621
|
getOptionValue: (data: Option) => string;
|
|
623
622
|
getStyles: <Key extends keyof StylesProps<Option, IsMulti, Group>>(key: Key, props: StylesProps<Option, IsMulti, Group>[Key]) => Record<string, any>;
|
|
624
623
|
getClassNames: <Key extends keyof StylesProps<Option, IsMulti, Group>>(key: Key, props: StylesProps<Option, IsMulti, Group>[Key]) => string | undefined;
|
|
625
|
-
getElementId: (element: 'group' | 'input' | 'listbox' | 'option' | 'placeholder' | 'live-region' | 'multi-message' | 'selected-value') => string;
|
|
624
|
+
getElementId: (element: 'group' | 'input' | 'listbox' | 'option' | 'placeholder' | 'live-region' | 'multi-message' | 'single-value' | 'selected-value') => string;
|
|
626
625
|
getComponents: () => {
|
|
627
626
|
ClearIndicator: <Option_1, IsMulti_1 extends boolean, Group_1 extends GroupBase<Option_1>>(props: import(".").ClearIndicatorProps<Option_1, IsMulti_1, Group_1>) => React.JSX.Element;
|
|
628
627
|
Control: <Option_2, IsMulti_2 extends boolean, Group_2 extends GroupBase<Option_2>>(props: import(".").ControlProps<Option_2, IsMulti_2, Group_2>) => React.JSX.Element;
|
|
@@ -660,9 +659,9 @@ export default class Select<Option = unknown, IsMulti extends boolean = false, G
|
|
|
660
659
|
filterOption(option: FilterOptionOption<Option>, inputValue: string): boolean;
|
|
661
660
|
formatOptionLabel(data: Option, context: FormatOptionLabelContext): ReactNode;
|
|
662
661
|
formatGroupLabel(data: Group): React.ReactNode;
|
|
663
|
-
calculateDescription(
|
|
662
|
+
calculateDescription(): {
|
|
664
663
|
'aria-describedby': string;
|
|
665
|
-
}
|
|
664
|
+
};
|
|
666
665
|
onMenuMouseDown: MouseEventHandler<HTMLDivElement>;
|
|
667
666
|
onMenuMouseMove: MouseEventHandler<HTMLDivElement>;
|
|
668
667
|
onControlMouseDown: (event: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-select",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "A forked version of react-select to only be used in atlaskit/select",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -60,9 +60,6 @@
|
|
|
60
60
|
"custom-interactive-elements-not-keyboard-focusable": {
|
|
61
61
|
"type": "boolean"
|
|
62
62
|
},
|
|
63
|
-
"design_system_select-a11y-improvement": {
|
|
64
|
-
"type": "boolean"
|
|
65
|
-
},
|
|
66
63
|
"platform-component-visual-refresh": {
|
|
67
64
|
"type": "boolean"
|
|
68
65
|
},
|