@zendeskgarden/react-dropdowns 9.0.0-next.9 → 9.1.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/dist/esm/elements/combobox/Combobox.js +47 -48
- package/dist/esm/elements/combobox/Field.js +0 -1
- package/dist/esm/elements/combobox/Hint.js +1 -2
- package/dist/esm/elements/combobox/Label.js +1 -2
- package/dist/esm/elements/combobox/Listbox.js +7 -8
- package/dist/esm/elements/combobox/Message.js +1 -2
- package/dist/esm/elements/combobox/OptGroup.js +5 -6
- package/dist/esm/elements/combobox/Option.js +9 -6
- package/dist/esm/elements/combobox/OptionMeta.js +1 -2
- package/dist/esm/elements/combobox/Tag.js +0 -1
- package/dist/esm/elements/combobox/utils.js +1 -1
- package/dist/esm/elements/menu/Item.js +11 -10
- package/dist/esm/elements/menu/ItemGroup.js +6 -6
- package/dist/esm/elements/menu/ItemMeta.js +1 -2
- package/dist/esm/elements/menu/Menu.js +9 -36
- package/dist/esm/elements/menu/MenuList.js +8 -9
- package/dist/esm/elements/menu/Separator.js +0 -1
- package/dist/esm/elements/menu/utils.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-lg-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/plus-stroke.svg.js +1 -1
- package/dist/esm/views/combobox/StyledCombobox.js +4 -7
- package/dist/esm/views/combobox/StyledContainer.js +2 -5
- package/dist/esm/views/combobox/StyledField.js +2 -5
- package/dist/esm/views/combobox/StyledFloatingListbox.js +5 -8
- package/dist/esm/views/combobox/StyledHint.js +2 -5
- package/dist/esm/views/combobox/StyledInput.js +13 -10
- package/dist/esm/views/combobox/StyledInputGroup.js +2 -5
- package/dist/esm/views/combobox/StyledInputIcon.js +26 -10
- package/dist/esm/views/combobox/StyledLabel.js +2 -5
- package/dist/esm/views/combobox/StyledListbox.js +3 -7
- package/dist/esm/views/combobox/StyledListboxSeparator.js +10 -7
- package/dist/esm/views/combobox/StyledMessage.js +2 -5
- package/dist/esm/views/combobox/StyledOptGroup.js +2 -5
- package/dist/esm/views/combobox/StyledOption.js +35 -17
- package/dist/esm/views/combobox/StyledOptionContent.js +2 -5
- package/dist/esm/views/combobox/StyledOptionIcon.js +25 -6
- package/dist/esm/views/combobox/StyledOptionMeta.js +12 -7
- package/dist/esm/views/combobox/StyledOptionTypeIcon.js +18 -11
- package/dist/esm/views/combobox/StyledTag.js +6 -6
- package/dist/esm/views/combobox/StyledTagsButton.js +10 -7
- package/dist/esm/views/combobox/StyledTrigger.js +71 -43
- package/dist/esm/views/combobox/StyledValue.js +13 -9
- package/dist/esm/views/menu/StyledFloatingMenu.js +2 -5
- package/dist/esm/views/menu/StyledItem.js +2 -5
- package/dist/esm/views/menu/StyledItemContent.js +2 -5
- package/dist/esm/views/menu/StyledItemGroup.js +2 -5
- package/dist/esm/views/menu/StyledItemIcon.js +2 -5
- package/dist/esm/views/menu/StyledItemMeta.js +2 -5
- package/dist/esm/views/menu/StyledItemTypeIcon.js +2 -5
- package/dist/esm/views/menu/StyledMenu.js +5 -8
- package/dist/esm/views/menu/StyledSeparator.js +2 -5
- package/dist/index.cjs.js +457 -412
- package/dist/typings/context/useComboboxContext.d.ts +12 -13
- package/dist/typings/context/useFieldContext.d.ts +6 -6
- package/dist/typings/context/useItemContext.d.ts +2 -3
- package/dist/typings/context/useItemGroupContext.d.ts +2 -3
- package/dist/typings/context/useMenuContext.d.ts +10 -11
- package/dist/typings/context/useOptionContext.d.ts +2 -3
- package/dist/typings/elements/combobox/Field.d.ts +3 -1
- package/dist/typings/elements/combobox/Option.d.ts +3 -1
- package/dist/typings/elements/combobox/Tag.d.ts +3 -1
- package/dist/typings/elements/combobox/TagAvatar.d.ts +1 -2
- package/dist/typings/elements/combobox/utils.d.ts +2 -2
- package/dist/typings/elements/menu/Item.d.ts +3 -1
- package/dist/typings/elements/menu/utils.d.ts +2 -2
- package/dist/typings/types/index.d.ts +2 -0
- package/dist/typings/views/combobox/StyledCombobox.d.ts +1 -1
- package/dist/typings/views/combobox/StyledFloatingListbox.d.ts +3 -3
- package/dist/typings/views/combobox/StyledHint.d.ts +0 -1
- package/dist/typings/views/combobox/StyledInput.d.ts +4 -4
- package/dist/typings/views/combobox/StyledInputIcon.d.ts +1 -2
- package/dist/typings/views/combobox/StyledLabel.d.ts +0 -1
- package/dist/typings/views/combobox/StyledListbox.d.ts +3 -3
- package/dist/typings/views/combobox/StyledMessage.d.ts +0 -1
- package/dist/typings/views/combobox/StyledOptGroup.d.ts +1 -1
- package/dist/typings/views/combobox/StyledOption.d.ts +2 -2
- package/dist/typings/views/combobox/StyledOptionIcon.d.ts +8 -4
- package/dist/typings/views/combobox/StyledOptionMeta.d.ts +1 -1
- package/dist/typings/views/combobox/StyledOptionTypeIcon.d.ts +1 -2
- package/dist/typings/views/combobox/StyledTag.d.ts +2 -6
- package/dist/typings/views/combobox/StyledTagsButton.d.ts +1 -1
- package/dist/typings/views/combobox/StyledTrigger.d.ts +9 -9
- package/dist/typings/views/combobox/StyledValue.d.ts +7 -7
- package/dist/typings/views/index.d.ts +0 -1
- package/dist/typings/views/menu/StyledItemIcon.d.ts +2 -3
- package/dist/typings/views/menu/StyledItemTypeIcon.d.ts +1 -2
- package/dist/typings/views/menu/StyledMenu.d.ts +1 -1
- package/package.json +12 -12
- package/dist/esm/views/menu/StyledButton.js +0 -23
- package/dist/typings/views/menu/StyledButton.d.ts +0 -20
|
@@ -4,22 +4,21 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { IUseComboboxReturnValue } from '@zendeskgarden/container-combobox';
|
|
9
8
|
export declare const ComboboxContext: import("react").Context<{
|
|
10
|
-
activeValue: IUseComboboxReturnValue[
|
|
11
|
-
getOptionProps: IUseComboboxReturnValue[
|
|
12
|
-
getOptGroupProps: IUseComboboxReturnValue[
|
|
13
|
-
getTagProps: IUseComboboxReturnValue[
|
|
14
|
-
isCompact?: boolean
|
|
15
|
-
removeSelection: IUseComboboxReturnValue[
|
|
9
|
+
activeValue: IUseComboboxReturnValue["activeValue"];
|
|
10
|
+
getOptionProps: IUseComboboxReturnValue["getOptionProps"];
|
|
11
|
+
getOptGroupProps: IUseComboboxReturnValue["getOptGroupProps"];
|
|
12
|
+
getTagProps: IUseComboboxReturnValue["getTagProps"];
|
|
13
|
+
isCompact?: boolean;
|
|
14
|
+
removeSelection: IUseComboboxReturnValue["removeSelection"];
|
|
16
15
|
} | undefined>;
|
|
17
16
|
declare const useComboboxContext: () => {
|
|
18
|
-
activeValue: IUseComboboxReturnValue[
|
|
19
|
-
getOptionProps: IUseComboboxReturnValue[
|
|
20
|
-
getOptGroupProps: IUseComboboxReturnValue[
|
|
21
|
-
getTagProps: IUseComboboxReturnValue[
|
|
22
|
-
isCompact?: boolean
|
|
23
|
-
removeSelection: IUseComboboxReturnValue[
|
|
17
|
+
activeValue: IUseComboboxReturnValue["activeValue"];
|
|
18
|
+
getOptionProps: IUseComboboxReturnValue["getOptionProps"];
|
|
19
|
+
getOptGroupProps: IUseComboboxReturnValue["getOptGroupProps"];
|
|
20
|
+
getTagProps: IUseComboboxReturnValue["getTagProps"];
|
|
21
|
+
isCompact?: boolean;
|
|
22
|
+
removeSelection: IUseComboboxReturnValue["removeSelection"];
|
|
24
23
|
};
|
|
25
24
|
export default useComboboxContext;
|
|
@@ -6,27 +6,27 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
8
8
|
export declare const FieldContext: import("react").Context<{
|
|
9
|
-
labelProps?: LabelHTMLAttributes<HTMLLabelElement
|
|
9
|
+
labelProps?: LabelHTMLAttributes<HTMLLabelElement>;
|
|
10
10
|
setLabelProps: (labelProps?: LabelHTMLAttributes<HTMLLabelElement>) => void;
|
|
11
11
|
hasHint: boolean;
|
|
12
12
|
setHasHint: (hasHint: boolean) => void;
|
|
13
|
-
hintProps?: HTMLAttributes<HTMLDivElement
|
|
13
|
+
hintProps?: HTMLAttributes<HTMLDivElement>;
|
|
14
14
|
setHintProps: (hintProps?: HTMLAttributes<HTMLDivElement>) => void;
|
|
15
15
|
hasMessage: boolean;
|
|
16
16
|
setHasMessage: (hasMessage: boolean) => void;
|
|
17
|
-
messageProps?: HTMLAttributes<HTMLDivElement
|
|
17
|
+
messageProps?: HTMLAttributes<HTMLDivElement>;
|
|
18
18
|
setMessageProps: (messageProps?: HTMLAttributes<HTMLDivElement>) => void;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const useFieldContext: () => {
|
|
21
|
-
labelProps?: LabelHTMLAttributes<HTMLLabelElement
|
|
21
|
+
labelProps?: LabelHTMLAttributes<HTMLLabelElement>;
|
|
22
22
|
setLabelProps: (labelProps?: LabelHTMLAttributes<HTMLLabelElement>) => void;
|
|
23
23
|
hasHint: boolean;
|
|
24
24
|
setHasHint: (hasHint: boolean) => void;
|
|
25
|
-
hintProps?: HTMLAttributes<HTMLDivElement
|
|
25
|
+
hintProps?: HTMLAttributes<HTMLDivElement>;
|
|
26
26
|
setHintProps: (hintProps?: HTMLAttributes<HTMLDivElement>) => void;
|
|
27
27
|
hasMessage: boolean;
|
|
28
28
|
setHasMessage: (hasMessage: boolean) => void;
|
|
29
|
-
messageProps?: HTMLAttributes<HTMLDivElement
|
|
29
|
+
messageProps?: HTMLAttributes<HTMLDivElement>;
|
|
30
30
|
setMessageProps: (messageProps?: HTMLAttributes<HTMLDivElement>) => void;
|
|
31
31
|
};
|
|
32
32
|
export default useFieldContext;
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
export declare const ItemContext: import("react").Context<{
|
|
9
|
-
isDisabled?: boolean
|
|
8
|
+
isDisabled?: boolean;
|
|
10
9
|
} | undefined>;
|
|
11
10
|
declare const useItemContext: () => {
|
|
12
|
-
isDisabled?: boolean
|
|
11
|
+
isDisabled?: boolean;
|
|
13
12
|
};
|
|
14
13
|
export default useItemContext;
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { ISelectedItem } from '@zendeskgarden/container-menu';
|
|
9
8
|
export declare const ItemGroupContext: import("react").Context<{
|
|
10
|
-
type?: ISelectedItem[
|
|
9
|
+
type?: ISelectedItem["type"];
|
|
11
10
|
}>;
|
|
12
11
|
declare const useItemGroupContext: () => {
|
|
13
|
-
type?: ISelectedItem[
|
|
12
|
+
type?: ISelectedItem["type"];
|
|
14
13
|
};
|
|
15
14
|
export default useItemGroupContext;
|
|
@@ -4,20 +4,19 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { IUseMenuReturnValue } from '@zendeskgarden/container-menu';
|
|
9
8
|
export declare const MenuContext: import("react").Context<{
|
|
10
|
-
isCompact?: boolean
|
|
11
|
-
focusedValue?: string | null
|
|
12
|
-
getItemGroupProps: IUseMenuReturnValue[
|
|
13
|
-
getItemProps: IUseMenuReturnValue[
|
|
14
|
-
getSeparatorProps: IUseMenuReturnValue[
|
|
9
|
+
isCompact?: boolean;
|
|
10
|
+
focusedValue?: string | null;
|
|
11
|
+
getItemGroupProps: IUseMenuReturnValue["getItemGroupProps"];
|
|
12
|
+
getItemProps: IUseMenuReturnValue["getItemProps"];
|
|
13
|
+
getSeparatorProps: IUseMenuReturnValue["getSeparatorProps"];
|
|
15
14
|
} | undefined>;
|
|
16
15
|
declare const useMenuContext: () => {
|
|
17
|
-
isCompact?: boolean
|
|
18
|
-
focusedValue?: string | null
|
|
19
|
-
getItemGroupProps: IUseMenuReturnValue[
|
|
20
|
-
getItemProps: IUseMenuReturnValue[
|
|
21
|
-
getSeparatorProps: IUseMenuReturnValue[
|
|
16
|
+
isCompact?: boolean;
|
|
17
|
+
focusedValue?: string | null;
|
|
18
|
+
getItemGroupProps: IUseMenuReturnValue["getItemGroupProps"];
|
|
19
|
+
getItemProps: IUseMenuReturnValue["getItemProps"];
|
|
20
|
+
getSeparatorProps: IUseMenuReturnValue["getSeparatorProps"];
|
|
22
21
|
};
|
|
23
22
|
export default useMenuContext;
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
export declare const OptionContext: import("react").Context<{
|
|
9
|
-
isDisabled?: boolean
|
|
8
|
+
isDisabled?: boolean;
|
|
10
9
|
} | undefined>;
|
|
11
10
|
declare const useOptionContext: () => {
|
|
12
|
-
isDisabled?: boolean
|
|
11
|
+
isDisabled?: boolean;
|
|
13
12
|
};
|
|
14
13
|
export default useOptionContext;
|
|
@@ -8,11 +8,13 @@ import React from 'react';
|
|
|
8
8
|
import { Hint } from './Hint';
|
|
9
9
|
import { Label } from './Label';
|
|
10
10
|
import { Message } from './Message';
|
|
11
|
+
declare const FieldComponent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
11
12
|
/**
|
|
12
13
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
13
14
|
*/
|
|
14
|
-
export declare const Field:
|
|
15
|
+
export declare const Field: typeof FieldComponent & {
|
|
15
16
|
Hint: typeof Hint;
|
|
16
17
|
Label: typeof Label;
|
|
17
18
|
Message: typeof Message;
|
|
18
19
|
};
|
|
20
|
+
export {};
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { IOptionProps } from '../../types';
|
|
9
9
|
import { OptionMeta } from './OptionMeta';
|
|
10
|
+
declare const OptionComponent: React.ForwardRefExoticComponent<IOptionProps & React.RefAttributes<HTMLLIElement>>;
|
|
10
11
|
/**
|
|
11
12
|
* @extends LiHTMLAttributes<HTMLLIElement>
|
|
12
13
|
*/
|
|
13
|
-
export declare const Option:
|
|
14
|
+
export declare const Option: typeof OptionComponent & {
|
|
14
15
|
Meta: typeof OptionMeta;
|
|
15
16
|
};
|
|
17
|
+
export {};
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { ITagProps } from '../../types';
|
|
9
9
|
import { TagAvatar } from './TagAvatar';
|
|
10
|
+
declare const TagComponent: React.ForwardRefExoticComponent<ITagProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
11
|
/**
|
|
11
12
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
12
13
|
*/
|
|
13
|
-
export declare const Tag:
|
|
14
|
+
export declare const Tag: typeof TagComponent & {
|
|
14
15
|
Avatar: typeof TagAvatar;
|
|
15
16
|
};
|
|
17
|
+
export {};
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
/**
|
|
9
8
|
* @extends HTMLAttributes<HTMLElement>
|
|
10
9
|
*/
|
|
11
10
|
export declare const TagAvatar: {
|
|
12
|
-
(props: import("react").HTMLAttributes<HTMLElement>):
|
|
11
|
+
(props: import("react").HTMLAttributes<HTMLElement>): React.JSX.Element;
|
|
13
12
|
displayName: string;
|
|
14
13
|
};
|
|
@@ -24,7 +24,7 @@ export declare const toOption: (props: IOptionProps) => IOption;
|
|
|
24
24
|
*
|
|
25
25
|
* @returns A valid `IUseComboboxProps['options']` data structure.
|
|
26
26
|
*/
|
|
27
|
-
export declare const toOptions: (children: ReactNode, optionTagProps: Record<string, IOptionProps[
|
|
27
|
+
export declare const toOptions: (children: ReactNode, optionTagProps: Record<string, IOptionProps["tagProps"]>) => (IOption | {
|
|
28
28
|
options: IOption[];
|
|
29
|
-
label?: string
|
|
29
|
+
label?: string;
|
|
30
30
|
})[];
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { IItemProps } from '../../types';
|
|
9
9
|
import { ItemMeta } from './ItemMeta';
|
|
10
|
+
declare const ItemComponent: React.ForwardRefExoticComponent<IItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
10
11
|
/**
|
|
11
12
|
* @extends LiHTMLAttributes<HTMLLIElement>
|
|
12
13
|
*/
|
|
13
|
-
export declare const Item:
|
|
14
|
+
export declare const Item: typeof ItemComponent & {
|
|
14
15
|
Meta: typeof ItemMeta;
|
|
15
16
|
};
|
|
17
|
+
export {};
|
|
@@ -15,7 +15,7 @@ import { ReactNode } from 'react';
|
|
|
15
15
|
* @returns A valid `useMenu` item object.
|
|
16
16
|
*/
|
|
17
17
|
export declare const toItem: (props: IItemProps & {
|
|
18
|
-
selectionType?: IItemGroupProps[
|
|
18
|
+
selectionType?: IItemGroupProps["type"];
|
|
19
19
|
}) => IMenuItemBase;
|
|
20
20
|
/**
|
|
21
21
|
* Convert an array of `Item` and `ItemGroup` children to a valid `items`
|
|
@@ -26,4 +26,4 @@ export declare const toItem: (props: IItemProps & {
|
|
|
26
26
|
*
|
|
27
27
|
* @returns A valid `IUseMenuProps['items']` data structure.
|
|
28
28
|
*/
|
|
29
|
-
export declare const toItems: (children: ReactNode, type?:
|
|
29
|
+
export declare const toItems: (children: ReactNode, type?: "radio" | "checkbox") => MenuItem[];
|
|
@@ -236,6 +236,8 @@ export interface IMenuProps extends HTMLAttributes<HTMLUListElement> {
|
|
|
236
236
|
* @param {string | null} [changes.focusedValue] The updated focused value
|
|
237
237
|
*/
|
|
238
238
|
onChange?: IUseMenuProps['onChange'];
|
|
239
|
+
/** Returns keyboard focus to the element that triggered the menu */
|
|
240
|
+
restoreFocus?: IUseMenuProps['restoreFocus'];
|
|
239
241
|
/** Sets the selected items in a controlled menu */
|
|
240
242
|
selectedItems?: IUseMenuProps['selectedItems'];
|
|
241
243
|
/** Adjusts the placement of the menu */
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
8
8
|
interface IStyledComboboxProps extends ThemeProps<DefaultTheme> {
|
|
9
|
-
isCompact?: boolean;
|
|
9
|
+
$isCompact?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare const StyledCombobox: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
12
12
|
'data-garden-id': string;
|
|
@@ -8,9 +8,9 @@ import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
|
8
8
|
import { MenuPosition } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { IListboxProps } from '../../types';
|
|
10
10
|
export interface IStyledFloatingListboxProps extends ThemeProps<DefaultTheme> {
|
|
11
|
-
isHidden?: boolean;
|
|
12
|
-
position: MenuPosition;
|
|
13
|
-
zIndex?: IListboxProps['zIndex'];
|
|
11
|
+
$isHidden?: boolean;
|
|
12
|
+
$position: MenuPosition;
|
|
13
|
+
$zIndex?: IListboxProps['zIndex'];
|
|
14
14
|
}
|
|
15
15
|
export declare const StyledFloatingListbox: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
16
16
|
'data-garden-id': string;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
export declare const StyledHint: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
9
8
|
'data-garden-id': string;
|
|
10
9
|
'data-garden-version': string;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
8
8
|
interface IStyledInputProps extends ThemeProps<DefaultTheme> {
|
|
9
|
-
isBare?: boolean;
|
|
10
|
-
isCompact?: boolean;
|
|
11
|
-
isEditable?: boolean;
|
|
12
|
-
isMultiselectable?: boolean;
|
|
9
|
+
$isBare?: boolean;
|
|
10
|
+
$isCompact?: boolean;
|
|
11
|
+
$isEditable?: boolean;
|
|
12
|
+
$isMultiselectable?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare const getHeight: (props: IStyledInputProps) => number;
|
|
15
15
|
export declare const sizeStyles: (props: IStyledInputProps) => import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
9
8
|
interface IStyledInputIconProps extends ThemeProps<DefaultTheme> {
|
|
10
9
|
$isCompact?: boolean;
|
|
@@ -13,7 +12,7 @@ interface IStyledInputIconProps extends ThemeProps<DefaultTheme> {
|
|
|
13
12
|
$isLabelHovered?: boolean;
|
|
14
13
|
$isRotated?: boolean;
|
|
15
14
|
}
|
|
16
|
-
export declare const StyledInputIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) =>
|
|
15
|
+
export declare const StyledInputIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
17
16
|
'data-garden-id': string;
|
|
18
17
|
'data-garden-version': string;
|
|
19
18
|
} & IStyledInputIconProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
export declare const StyledLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-forms").ILabelProps & import("react").RefAttributes<HTMLLabelElement>>, import("styled-components").DefaultTheme, {
|
|
9
8
|
'data-garden-id': string;
|
|
10
9
|
'data-garden-version': string;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
import { DefaultTheme, ThemeProps } from 'styled-components';
|
|
8
8
|
import { IListboxProps } from '../../types';
|
|
9
9
|
export interface IStyledListboxProps extends ThemeProps<DefaultTheme> {
|
|
10
|
-
isCompact?: boolean;
|
|
11
|
-
maxHeight?: IListboxProps['maxHeight'];
|
|
12
|
-
minHeight?: IListboxProps['minHeight'];
|
|
10
|
+
$isCompact?: boolean;
|
|
11
|
+
$maxHeight?: IListboxProps['maxHeight'];
|
|
12
|
+
$minHeight?: IListboxProps['minHeight'];
|
|
13
13
|
}
|
|
14
14
|
export declare const StyledListbox: import("styled-components").StyledComponent<"ul", DefaultTheme, {
|
|
15
15
|
'data-garden-id': string;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
export declare const StyledMessage: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-forms").IMessageProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
|
|
9
8
|
'data-garden-id': string;
|
|
10
9
|
'data-garden-version': string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
8
8
|
export interface IStyledOptGroupProps extends ThemeProps<DefaultTheme> {
|
|
9
|
-
isCompact?: boolean;
|
|
9
|
+
$isCompact?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare const StyledOptGroup: import("styled-components").StyledComponent<"ul", DefaultTheme, {
|
|
12
12
|
'data-garden-id': string;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
8
8
|
import { OptionType } from '../../types';
|
|
9
9
|
export interface IStyledOptionProps extends ThemeProps<DefaultTheme> {
|
|
10
|
-
isActive?: boolean;
|
|
11
|
-
isCompact?: boolean;
|
|
10
|
+
$isActive?: boolean;
|
|
11
|
+
$isCompact?: boolean;
|
|
12
12
|
$type?: OptionType | 'header' | 'group';
|
|
13
13
|
}
|
|
14
14
|
export declare const getMinHeight: (props: IStyledOptionProps) => number;
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
export
|
|
7
|
+
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
8
|
+
import { OptionType } from '../../types';
|
|
9
|
+
export interface IStyledOptionIconProps extends ThemeProps<DefaultTheme> {
|
|
10
|
+
$isDisabled?: boolean;
|
|
11
|
+
$type?: OptionType;
|
|
12
|
+
}
|
|
13
|
+
export declare const StyledOptionIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
10
14
|
'data-garden-id': string;
|
|
11
15
|
'data-garden-version': string;
|
|
12
|
-
}, "data-garden-id" | "data-garden-version">;
|
|
16
|
+
} & IStyledOptionIconProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
8
8
|
export interface IStyledOptionMetaProps extends ThemeProps<DefaultTheme> {
|
|
9
|
-
isDisabled?: boolean;
|
|
9
|
+
$isDisabled?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare const StyledOptionMeta: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
12
12
|
'data-garden-id': string;
|
|
@@ -4,14 +4,13 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
9
8
|
import { OptionType } from '../../types';
|
|
10
9
|
export interface IStyledOptionTypeIconProps extends ThemeProps<DefaultTheme> {
|
|
11
10
|
$isCompact?: boolean;
|
|
12
11
|
$type?: OptionType | 'header';
|
|
13
12
|
}
|
|
14
|
-
export declare const StyledOptionTypeIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) =>
|
|
13
|
+
export declare const StyledOptionTypeIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
15
14
|
'data-garden-id': string;
|
|
16
15
|
'data-garden-version': string;
|
|
17
16
|
} & IStyledOptionTypeIconProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -4,13 +4,9 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
export declare const StyledTag: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-tags").ITagProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
9
|
-
Avatar:
|
|
10
|
-
|
|
11
|
-
displayName: string;
|
|
12
|
-
};
|
|
13
|
-
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Avatar: typeof import("packages/tags/dist/typings/elements/Avatar").Avatar;
|
|
9
|
+
Close: typeof import("packages/tags/dist/typings/elements/Close").Close;
|
|
14
10
|
}, import("styled-components").DefaultTheme, {
|
|
15
11
|
'data-garden-id': string;
|
|
16
12
|
'data-garden-version': string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { DefaultTheme, ThemeProps } from 'styled-components';
|
|
8
8
|
interface IStyledTagsButtonProps extends ThemeProps<DefaultTheme> {
|
|
9
|
-
isCompact?: boolean;
|
|
9
|
+
$isCompact?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare const StyledTagsButton: import("styled-components").StyledComponent<"button", DefaultTheme, {
|
|
12
12
|
as: string;
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
8
8
|
import { Validation } from '../../types';
|
|
9
9
|
interface IStyledTriggerProps extends ThemeProps<DefaultTheme> {
|
|
10
|
-
isAutocomplete?: boolean;
|
|
11
|
-
isBare?: boolean;
|
|
12
|
-
isCompact?: boolean;
|
|
13
|
-
isEditable?: boolean;
|
|
14
|
-
isLabelHovered?: boolean;
|
|
15
|
-
isMultiselectable?: boolean;
|
|
16
|
-
maxHeight?: string;
|
|
17
|
-
focusInset?: boolean;
|
|
18
|
-
validation?: Validation;
|
|
10
|
+
$isAutocomplete?: boolean;
|
|
11
|
+
$isBare?: boolean;
|
|
12
|
+
$isCompact?: boolean;
|
|
13
|
+
$isEditable?: boolean;
|
|
14
|
+
$isLabelHovered?: boolean;
|
|
15
|
+
$isMultiselectable?: boolean;
|
|
16
|
+
$maxHeight?: string;
|
|
17
|
+
$focusInset?: boolean;
|
|
18
|
+
$validation?: Validation;
|
|
19
19
|
}
|
|
20
20
|
export declare const StyledTrigger: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
21
21
|
'data-garden-id': string;
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
8
8
|
interface IStyledValueProps extends ThemeProps<DefaultTheme> {
|
|
9
|
-
isAutocomplete?: boolean;
|
|
10
|
-
isBare?: boolean;
|
|
11
|
-
isCompact?: boolean;
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
isEditable?: boolean;
|
|
14
|
-
isMultiselectable?: boolean;
|
|
15
|
-
isPlaceholder?: boolean;
|
|
9
|
+
$isAutocomplete?: boolean;
|
|
10
|
+
$isBare?: boolean;
|
|
11
|
+
$isCompact?: boolean;
|
|
12
|
+
$isDisabled?: boolean;
|
|
13
|
+
$isEditable?: boolean;
|
|
14
|
+
$isMultiselectable?: boolean;
|
|
15
|
+
$isPlaceholder?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare const StyledValue: import("styled-components").StyledComponent<"div", DefaultTheme, {
|
|
18
18
|
'data-garden-id': string;
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
export declare const StyledItemIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
|
|
7
|
+
export declare const StyledItemIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
|
|
9
8
|
'data-garden-id': string;
|
|
10
9
|
'data-garden-version': string;
|
|
11
|
-
} & {
|
|
10
|
+
} & import("../combobox/StyledOptionIcon").IStyledOptionIconProps & {
|
|
12
11
|
'data-garden-id': string;
|
|
13
12
|
'data-garden-version': string;
|
|
14
13
|
}, "data-garden-id" | "data-garden-version">;
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
export declare const StyledItemTypeIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
|
|
7
|
+
export declare const StyledItemTypeIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
|
|
9
8
|
'data-garden-id': string;
|
|
10
9
|
'data-garden-version': string;
|
|
11
10
|
} & import("../combobox/StyledOptionTypeIcon").IStyledOptionTypeIconProps & {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { ArrowPosition } from '@zendeskgarden/react-theming';
|
|
8
8
|
import { IStyledListboxProps } from '../combobox/StyledListbox';
|
|
9
9
|
interface IStyledMenuProps extends IStyledListboxProps {
|
|
10
|
-
arrowPosition?: ArrowPosition;
|
|
10
|
+
$arrowPosition?: ArrowPosition;
|
|
11
11
|
}
|
|
12
12
|
export declare const StyledMenu: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {
|
|
13
13
|
'data-garden-id': string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-dropdowns",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "Components related to dropdowns in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@floating-ui/react-dom": "^2.0.0",
|
|
25
25
|
"@zendeskgarden/container-combobox": "^2.0.0",
|
|
26
|
-
"@zendeskgarden/container-menu": "^0.
|
|
26
|
+
"@zendeskgarden/container-menu": "^0.5.0",
|
|
27
27
|
"@zendeskgarden/container-utilities": "^2.0.0",
|
|
28
|
-
"@zendeskgarden/react-buttons": "^9.
|
|
29
|
-
"@zendeskgarden/react-forms": "^9.
|
|
30
|
-
"@zendeskgarden/react-tags": "^9.
|
|
31
|
-
"@zendeskgarden/react-tooltips": "^9.
|
|
32
|
-
"polished": "^4.
|
|
28
|
+
"@zendeskgarden/react-buttons": "^9.1.0",
|
|
29
|
+
"@zendeskgarden/react-forms": "^9.1.0",
|
|
30
|
+
"@zendeskgarden/react-tags": "^9.1.0",
|
|
31
|
+
"@zendeskgarden/react-tooltips": "^9.1.0",
|
|
32
|
+
"polished": "^4.3.1",
|
|
33
33
|
"prop-types": "^15.7.2",
|
|
34
34
|
"react-merge-refs": "^2.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@zendeskgarden/react-theming": ">=9.0.0-next",
|
|
38
|
-
"react": "
|
|
39
|
-
"react-dom": "
|
|
38
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
39
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
40
40
|
"styled-components": "^5.3.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@zendeskgarden/react-theming": "^9.
|
|
44
|
-
"@zendeskgarden/svg-icons": "7.
|
|
43
|
+
"@zendeskgarden/react-theming": "^9.1.0",
|
|
44
|
+
"@zendeskgarden/svg-icons": "7.3.0"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
47
47
|
"components",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"zendeskgarden:src": "src/index.ts",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "a2842d18615ad057d75988fde4df5a0c79d2714e"
|
|
58
58
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright Zendesk, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
-
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
*/
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
9
|
-
import { Button } from '@zendeskgarden/react-buttons';
|
|
10
|
-
|
|
11
|
-
const COMPONENT_ID = 'dropdowns.menu.button';
|
|
12
|
-
const StyledButton = styled(Button).attrs({
|
|
13
|
-
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.9'
|
|
15
|
-
}).withConfig({
|
|
16
|
-
displayName: "StyledButton",
|
|
17
|
-
componentId: "sc-5hs2jg-0"
|
|
18
|
-
})(["", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
19
|
-
StyledButton.defaultProps = {
|
|
20
|
-
theme: DEFAULT_THEME
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { StyledButton };
|