@veeqo/ui 6.0.0-beta.5 → 6.0.0-beta.7
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/components/AnimatedDropdown/AnimatedDropdown.d.ts +1 -1
- package/dist/components/AnimatedDropdown/components/Dropdown.d.ts +1 -1
- package/dist/components/AnimatedDropdown/types.d.ts +1 -1
- package/dist/components/DimensionsInput/styled.d.ts +1 -1
- package/dist/components/Pagination/styled.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/hooks/useUpdateAriaAnchor.d.ts +2 -1
- package/dist/components/Popover/types.d.ts +4 -0
- package/dist/components/PriceInput/styled.d.ts +1 -1
- package/dist/components/Search/Search.d.ts +27 -2
- package/dist/components/Search/styled.d.ts +1 -1
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/components/TextField/index.d.ts +1 -1
- package/dist/components/TextField/types.d.ts +1 -1
- package/dist/components/WeightInput/styled.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AnimatedDropdownProps } from './types';
|
|
3
|
-
export declare const AnimatedDropdown: ({ id, cta, shouldShowDropdown, children, className, reversed, placement,
|
|
3
|
+
export declare const AnimatedDropdown: ({ id, cta, shouldShowDropdown, children, className, reversed, placement, onClick, onMouseEnter, onMouseLeave, useAnchorWidth, ...popoverProps }: AnimatedDropdownProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BasicDropdownProps } from '../types';
|
|
3
|
-
export declare const Dropdown: ({ id, children,
|
|
3
|
+
export declare const Dropdown: ({ id, children, className, reversed, anchorElement, useAnchorWidth, onShouldClose, ...popoverProps }: BasicDropdownProps) => React.JSX.Element;
|
|
@@ -6,7 +6,7 @@ export type BasicDropdownProps = {
|
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
reversed?: boolean;
|
|
8
8
|
} & PopoverProps;
|
|
9
|
-
export type AnimatedDropdownProps = EventHandlerProps & Pick<BasicDropdownProps, 'children' | 'className' | 'placement' | 'useAnchorWidth' | 'rootElementRef'> & {
|
|
9
|
+
export type AnimatedDropdownProps = EventHandlerProps & Pick<BasicDropdownProps, 'children' | 'className' | 'placement' | 'useAnchorWidth' | 'rootElementRef' | 'disableFocusLock'> & {
|
|
10
10
|
id?: string;
|
|
11
11
|
cta?: ReactNode;
|
|
12
12
|
shouldShowDropdown: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
declare const Row: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
declare const StyledTextField: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "onKeyDown" | "autoComplete"> & {
|
|
4
|
+
declare const StyledTextField: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "style" | "onKeyDown" | "autoComplete"> & {
|
|
5
5
|
className?: string | undefined;
|
|
6
6
|
type?: import("../TextField/types").TextFieldType | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
@@ -8,7 +8,7 @@ export declare const PaginationButton: import("styled-components").StyledCompone
|
|
|
8
8
|
dropdown?: boolean | undefined;
|
|
9
9
|
loading?: boolean | undefined;
|
|
10
10
|
} & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
11
|
-
export declare const PageInput: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "onKeyDown" | "autoComplete"> & {
|
|
11
|
+
export declare const PageInput: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "style" | "onKeyDown" | "autoComplete"> & {
|
|
12
12
|
className?: string | undefined;
|
|
13
13
|
type?: import("../TextField/types").TextFieldType | undefined;
|
|
14
14
|
value?: string | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PopoverProps } from './types';
|
|
3
|
-
export declare const Popover: ({ id: passedId, children, zIndex, placement, anchorElement, rootElementRef, onShouldClose, style, disableFocusLock, useAnchorWidth, ...dialogProps }: PopoverProps) => React.JSX.Element;
|
|
3
|
+
export declare const Popover: ({ id: passedId, children, zIndex, placement, anchorElement, rootElementRef, onShouldClose, style, disableFocusLock, useAnchorWidth, supressWarnings, ...dialogProps }: PopoverProps) => React.JSX.Element;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
type UseUpdateAriaAnchor = {
|
|
2
2
|
anchorElement: HTMLElement | null;
|
|
3
3
|
popoverId: string;
|
|
4
|
+
supressWarnings?: boolean;
|
|
4
5
|
};
|
|
5
6
|
/**
|
|
6
7
|
* Update the anchor element to sent the required attributes if they haven't already set them.
|
|
7
8
|
*
|
|
8
9
|
* This allows current, inaccesible usages to be improved.
|
|
9
10
|
*/
|
|
10
|
-
export declare const useUpdateAriaAnchor: ({ anchorElement, popoverId }: UseUpdateAriaAnchor) => void;
|
|
11
|
+
export declare const useUpdateAriaAnchor: ({ anchorElement, popoverId, supressWarnings, }: UseUpdateAriaAnchor) => void;
|
|
11
12
|
export {};
|
|
@@ -15,6 +15,10 @@ export type PopoverProps = DialogHTMLAttributes<HTMLDialogElement> & {
|
|
|
15
15
|
*/
|
|
16
16
|
onShouldClose: () => void;
|
|
17
17
|
useAnchorWidth?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* To supress A11y warnings. Use with care, if you are certain these are wrong.
|
|
20
|
+
*/
|
|
21
|
+
supressWarnings?: boolean;
|
|
18
22
|
};
|
|
19
23
|
export type BackdropProps = {
|
|
20
24
|
zIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ComponentSize } from '../types';
|
|
3
|
-
export declare const StyledTextField: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "onKeyDown" | "autoComplete"> & {
|
|
3
|
+
export declare const StyledTextField: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "style" | "onKeyDown" | "autoComplete"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
type?: import("../TextField/types").TextFieldType | undefined;
|
|
6
6
|
value?: string | undefined;
|
|
@@ -1,3 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
export declare const Search: React.ForwardRefExoticComponent<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<React.InputHTMLAttributes<HTMLInputElement>, "style" | "onKeyDown" | "autoComplete"> & {
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
type?: import("../TextField/types").TextFieldType | undefined;
|
|
5
|
+
value?: string | undefined;
|
|
6
|
+
onChange?: ((value: string) => void) | undefined;
|
|
7
|
+
placeholder?: string | undefined;
|
|
8
|
+
step?: string | undefined;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
min?: string | undefined;
|
|
11
|
+
max?: string | undefined;
|
|
12
|
+
pattern?: string | undefined;
|
|
13
|
+
hasError?: boolean | undefined;
|
|
14
|
+
size?: "base" | "sm" | undefined;
|
|
15
|
+
multiline?: boolean | undefined;
|
|
16
|
+
rows?: string | undefined;
|
|
17
|
+
invalid?: boolean | undefined;
|
|
18
|
+
disabled?: boolean | undefined;
|
|
19
|
+
spellCheck?: boolean | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
} & {
|
|
22
|
+
isLoading?: boolean | undefined;
|
|
23
|
+
fill?: string | undefined;
|
|
24
|
+
onClearClick?: ((event: React.SyntheticEvent<Element, Event>) => void) | undefined;
|
|
25
|
+
reversed?: boolean | undefined;
|
|
26
|
+
error?: string | undefined;
|
|
27
|
+
onChange: (value: string) => void;
|
|
28
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Loader } from '../Loader';
|
|
3
|
-
declare const Input: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "onKeyDown" | "autoComplete"> & {
|
|
3
|
+
declare const Input: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "style" | "onKeyDown" | "autoComplete"> & {
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
type?: import("../TextField/types").TextFieldType | undefined;
|
|
6
6
|
value?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const TextField: React.ForwardRefExoticComponent<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<React.InputHTMLAttributes<HTMLInputElement>, "onKeyDown" | "autoComplete"> & {
|
|
2
|
+
export declare const TextField: React.ForwardRefExoticComponent<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<React.InputHTMLAttributes<HTMLInputElement>, "style" | "onKeyDown" | "autoComplete"> & {
|
|
3
3
|
className?: string | undefined;
|
|
4
4
|
type?: import("./types").TextFieldType | undefined;
|
|
5
5
|
value?: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const TextField: import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "onKeyDown" | "autoComplete"> & {
|
|
2
|
+
export declare const TextField: import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "style" | "onKeyDown" | "autoComplete"> & {
|
|
3
3
|
className?: string | undefined;
|
|
4
4
|
type?: import("./types").TextFieldType | undefined;
|
|
5
5
|
value?: string | undefined;
|
|
@@ -4,7 +4,7 @@ export type TextFieldType = 'text' | 'email' | 'number' | 'password' | 'search'
|
|
|
4
4
|
/**
|
|
5
5
|
* TextField properties.
|
|
6
6
|
*/
|
|
7
|
-
export type TextFieldProps = Omit<EventHandlerProps, 'onChange' | 'onKeyDown'> & Pick<React.InputHTMLAttributes<HTMLInputElement>, 'autoComplete' | 'onKeyDown'> & {
|
|
7
|
+
export type TextFieldProps = Omit<EventHandlerProps, 'onChange' | 'onKeyDown'> & Pick<React.InputHTMLAttributes<HTMLInputElement>, 'autoComplete' | 'onKeyDown' | 'style'> & {
|
|
8
8
|
className?: string;
|
|
9
9
|
/** Input element type */
|
|
10
10
|
type?: TextFieldType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
declare const Row: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
declare const StyledTextField: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "onKeyDown" | "autoComplete"> & {
|
|
4
|
+
declare const StyledTextField: import("styled-components").StyledComponent<import("react").FC<Omit<import("../types").EventHandlerProps, "onChange" | "onKeyDown"> & Pick<import("react").InputHTMLAttributes<HTMLInputElement>, "style" | "onKeyDown" | "autoComplete"> & {
|
|
5
5
|
className?: string | undefined;
|
|
6
6
|
type?: import("../TextField/types").TextFieldType | undefined;
|
|
7
7
|
value?: string | undefined;
|