@loomhq/lens 11.30.2 → 11.30.4
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/types/components/align/align.d.ts +2 -2
- package/dist/types/components/arrange/arrange.d.ts +4 -6
- package/dist/types/components/avatar/avatar.d.ts +3 -1
- package/dist/types/components/backdrop/backdrop.d.ts +2 -1
- package/dist/types/components/button/button.d.ts +2 -1
- package/dist/types/components/color-picker/color-picker.d.ts +2 -1
- package/dist/types/components/container/container.d.ts +23 -29
- package/dist/types/components/distribute/distribute.d.ts +2 -2
- package/dist/types/components/form-field/form-field.d.ts +5 -4
- package/dist/types/components/icon/icon.d.ts +4 -2
- package/dist/types/components/icon-button/icon-button.d.ts +3 -2
- package/dist/types/components/link/link.d.ts +3 -10
- package/dist/types/components/list/list.d.ts +2 -2
- package/dist/types/components/loader/loader.d.ts +2 -1
- package/dist/types/components/logo/logo.d.ts +2 -1
- package/dist/types/components/modal/modal.d.ts +22 -2
- package/dist/types/components/notification-bar/notification-bar.d.ts +2 -1
- package/dist/types/components/pill/pill.d.ts +2 -1
- package/dist/types/components/select/select.d.ts +5 -4
- package/dist/types/components/skeleton-text/skeleton-text.d.ts +2 -1
- package/dist/types/components/spacer/spacer.d.ts +2 -2
- package/dist/types/components/split/split.d.ts +1 -1
- package/dist/types/components/switch/switch.d.ts +2 -1
- package/dist/types/components/tabs/tabs.d.ts +2 -1
- package/dist/types/components/text/text.d.ts +4 -2
- package/dist/types/components/text-button/text-button.d.ts +2 -1
- package/dist/types/components/toast/toast.d.ts +2 -1
- package/dist/types/types.d.ts +116 -0
- package/dist/types/utilities/size.d.ts +2 -1
- package/dist/types/variables.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ResponsiveType } from '../../types';
|
|
2
|
+
import { LensDivProps, ResponsiveType } from '../../types';
|
|
3
3
|
declare const AlignWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AlignWrapperProps, object>;
|
|
4
|
-
declare const Align: ({ children, alignment, htmlTag, ...props }: AlignProps & React.ComponentProps<typeof AlignWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Align: ({ children, alignment, htmlTag, ...props }: AlignProps & React.ComponentProps<typeof AlignWrapper> & Omit<LensDivProps, keyof AlignProps & React.ComponentProps<typeof AlignWrapper>>) => React.JSX.Element;
|
|
5
5
|
export declare const availableAlignments: string[];
|
|
6
6
|
export declare const availableHtmlTags: string[];
|
|
7
7
|
type AlignProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResponsiveGridSections, ResponsiveType } from '../../types';
|
|
1
|
+
import { LensDivProps, ResponsiveGridSections, ResponsiveType } from '../../types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const ArrangeWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ArrangeProps, object>;
|
|
4
4
|
type ArrangeProps = {
|
|
@@ -9,16 +9,14 @@ type ArrangeProps = {
|
|
|
9
9
|
minHeight?: ResponsiveType<string | number>;
|
|
10
10
|
maxWidth?: ResponsiveType<string | number>;
|
|
11
11
|
maxHeight?: ResponsiveType<string | number>;
|
|
12
|
-
gap?: ResponsiveType<string | number
|
|
13
|
-
alignItems?: ResponsiveType<'start' | 'end' | 'center' | 'stretch'>;
|
|
12
|
+
gap?: ResponsiveType<string | number> | null;
|
|
13
|
+
alignItems?: ResponsiveType<'start' | 'end' | 'center' | 'stretch' | 'baseline'>;
|
|
14
14
|
justifyItems?: ResponsiveType<'start' | 'end' | 'center' | 'stretch'>;
|
|
15
15
|
alignContent?: ResponsiveType<'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly'>;
|
|
16
16
|
justifyContent?: ResponsiveType<'start' | 'end' | 'center' | 'stretch' | 'space-around' | 'space-between' | 'space-evenly'>;
|
|
17
17
|
autoFlow?: ResponsiveType<'column' | 'row'>;
|
|
18
18
|
columns?: ResponsiveGridSections;
|
|
19
19
|
rows?: ResponsiveGridSections;
|
|
20
|
-
className?: never;
|
|
21
|
-
style?: never;
|
|
22
20
|
};
|
|
23
|
-
declare const Arrange: ({ children, width, height, minWidth, minHeight, maxWidth, maxHeight, gap, columns, rows, alignItems, justifyContent, justifyItems, alignContent, autoFlow, className, style, ...props }: ArrangeProps & React.ComponentProps<typeof ArrangeWrapper>) => React.JSX.Element;
|
|
21
|
+
declare const Arrange: ({ children, width, height, minWidth, minHeight, maxWidth, maxHeight, gap, columns, rows, alignItems, justifyContent, justifyItems, alignContent, autoFlow, className, style, ...props }: ArrangeProps & React.ComponentProps<typeof ArrangeWrapper> & Omit<LensDivProps, keyof ArrangeProps & React.ComponentProps<typeof ArrangeWrapper>>) => React.JSX.Element;
|
|
24
22
|
export default Arrange;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensSpanProps } from '../../types';
|
|
2
3
|
declare const AvatarWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, AvatarWrapperProps, object>;
|
|
3
|
-
declare const Avatar: ({ altText, size, letter, imageSrc, children, ...props }: AvatarProps & React.ComponentProps<typeof AvatarWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Avatar: ({ altText, size, letter, imageSrc, children, ...props }: AvatarProps & React.ComponentProps<typeof AvatarWrapper> & Omit<LensSpanProps, keyof AvatarProps & React.ComponentProps<typeof AvatarWrapper>>) => React.JSX.Element;
|
|
4
5
|
type AvatarProps = {
|
|
5
6
|
altText?: string;
|
|
6
7
|
letter?: string;
|
|
@@ -9,6 +10,7 @@ type AvatarProps = {
|
|
|
9
10
|
children?: React.ReactNode;
|
|
10
11
|
height?: number;
|
|
11
12
|
width?: number;
|
|
13
|
+
hasBackgroundColor?: boolean;
|
|
12
14
|
};
|
|
13
15
|
type AvatarWrapperProps = {
|
|
14
16
|
size?: string | number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
2
3
|
declare const BackdropWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BackdropProps, object>;
|
|
3
|
-
declare const Backdrop: ({ children, isOpen, zIndex, backgroundColor, ...props }: BackdropProps & React.ComponentProps<typeof BackdropWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Backdrop: ({ children, isOpen, zIndex, backgroundColor, ...props }: BackdropProps & React.ComponentProps<typeof BackdropWrapper> & Omit<LensDivProps, keyof BackdropProps & React.ComponentProps<typeof BackdropWrapper>>) => React.JSX.Element;
|
|
4
5
|
type BackdropProps = {
|
|
5
6
|
isOpen?: boolean;
|
|
6
7
|
children?: React.ReactNode;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensButtonProps } from '../../types';
|
|
2
3
|
declare const ButtonWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonWrapperProps, object>;
|
|
3
|
-
declare const Button: ({ size, children, variant, hasFullWidth, icon, iconPosition, logoSrc, hasLoader, isDisabled, htmlTag, refHandler, ...props }: ButtonProps & React.ComponentProps<typeof ButtonWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Button: ({ size, children, variant, hasFullWidth, icon, iconPosition, logoSrc, hasLoader, isDisabled, htmlTag, refHandler, ...props }: ButtonProps & React.ComponentProps<typeof ButtonWrapper> & Omit<LensButtonProps, keyof ButtonProps & React.ComponentProps<typeof ButtonWrapper>>) => React.JSX.Element;
|
|
4
5
|
type Variant = 'neutral' | 'primary' | 'secondary' | 'record' | 'upgrade' | 'danger' | 'ai';
|
|
5
6
|
interface ButtonProps {
|
|
6
7
|
size?: 'small' | 'medium' | 'large';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
2
3
|
declare const ColorPickerContainer: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
-
declare const ColorPicker: ({ defaultColor, confirmButton, swatches, onChange, ...props }: ColorPickerProps & React.ComponentProps<typeof ColorPickerContainer>) => React.JSX.Element;
|
|
4
|
+
declare const ColorPicker: ({ defaultColor, confirmButton, swatches, onChange, ...props }: ColorPickerProps & Omit<React.ComponentProps<typeof ColorPickerContainer>, keyof ColorPickerProps> & Omit<LensDivProps, keyof ColorPickerProps & Omit<React.ComponentProps<typeof ColorPickerContainer>, keyof ColorPickerProps>>) => React.JSX.Element;
|
|
4
5
|
type ColorPickerProps = {
|
|
5
6
|
defaultColor?: string;
|
|
6
7
|
confirmButton?: React.ReactNode;
|
|
@@ -1,36 +1,32 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ResponsiveType } from '../../types';
|
|
2
|
+
import { LensDivProps, ResponsiveType } from '../../types';
|
|
3
3
|
declare const ContainerWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerWrapperProps, object>;
|
|
4
|
-
declare const Container: ({ children, backgroundColor, backgroundImage, contentColor, borderColor, radius, borderSide, borderWidth, shadow, padding, paddingX, paddingY, paddingLeft, paddingRight, paddingTop, paddingBottom, margin, marginX, marginY, marginLeft, marginRight, marginTop, marginBottom, width, height, minWidth, minHeight, maxWidth, maxHeight, htmlTag, position, overflow, zIndex, top, bottom, left, right, refHandler, ...props }: ContainerProps & React.ComponentProps<typeof ContainerWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Container: ({ children, backgroundColor, backgroundImage, contentColor, borderColor, radius, borderSide, borderWidth, shadow, padding, paddingX, paddingY, paddingLeft, paddingRight, paddingTop, paddingBottom, margin, marginX, marginY, marginLeft, marginRight, marginTop, marginBottom, width, height, minWidth, minHeight, maxWidth, maxHeight, htmlTag, position, overflow, zIndex, top, bottom, left, right, refHandler, ...props }: ContainerProps & React.ComponentProps<typeof ContainerWrapper> & Omit<LensDivProps, keyof ContainerProps & React.ComponentProps<typeof ContainerWrapper>>) => React.JSX.Element;
|
|
5
5
|
export declare const availableBorderSides: string[];
|
|
6
6
|
export declare const availableRadii: string[];
|
|
7
7
|
export declare const availableHtmlTags: string[];
|
|
8
8
|
interface SharedProps {
|
|
9
9
|
backgroundColor?: string;
|
|
10
10
|
backgroundImage?: string;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Usage of className results in non-standard components
|
|
13
|
-
*/
|
|
14
|
-
className?: string;
|
|
15
11
|
contentColor?: string;
|
|
16
12
|
borderColor?: string;
|
|
17
13
|
radius?: 'medium' | 'large' | 'xlarge' | 'full';
|
|
18
14
|
borderSide?: 'all' | 'left' | 'right' | 'top' | 'bottom';
|
|
19
15
|
shadow?: 'small' | 'medium' | 'large';
|
|
20
|
-
padding?: ResponsiveType<string | number
|
|
21
|
-
paddingX?: ResponsiveType<string | number
|
|
22
|
-
paddingY?: ResponsiveType<string | number
|
|
23
|
-
paddingLeft?: ResponsiveType<string | number
|
|
24
|
-
paddingRight?: ResponsiveType<string | number
|
|
25
|
-
paddingTop?: ResponsiveType<string | number
|
|
26
|
-
paddingBottom?: ResponsiveType<string | number
|
|
27
|
-
margin?: ResponsiveType<string | number
|
|
28
|
-
marginX?: ResponsiveType<string | number
|
|
29
|
-
marginY?: ResponsiveType<string | number
|
|
30
|
-
marginLeft?: ResponsiveType<string | number
|
|
31
|
-
marginRight?: ResponsiveType<string | number
|
|
32
|
-
marginTop?: ResponsiveType<string | number
|
|
33
|
-
marginBottom?: ResponsiveType<string | number
|
|
16
|
+
padding?: ResponsiveType<string | number> | null;
|
|
17
|
+
paddingX?: ResponsiveType<string | number> | null;
|
|
18
|
+
paddingY?: ResponsiveType<string | number> | null;
|
|
19
|
+
paddingLeft?: ResponsiveType<string | number> | null;
|
|
20
|
+
paddingRight?: ResponsiveType<string | number> | null;
|
|
21
|
+
paddingTop?: ResponsiveType<string | number> | null;
|
|
22
|
+
paddingBottom?: ResponsiveType<string | number> | null;
|
|
23
|
+
margin?: ResponsiveType<string | number> | null;
|
|
24
|
+
marginX?: ResponsiveType<string | number> | null;
|
|
25
|
+
marginY?: ResponsiveType<string | number> | null;
|
|
26
|
+
marginLeft?: ResponsiveType<string | number> | null;
|
|
27
|
+
marginRight?: ResponsiveType<string | number> | null;
|
|
28
|
+
marginTop?: ResponsiveType<string | number> | null;
|
|
29
|
+
marginBottom?: ResponsiveType<string | number> | null;
|
|
34
30
|
width?: ResponsiveType<string | number>;
|
|
35
31
|
height?: ResponsiveType<string | number>;
|
|
36
32
|
minWidth?: ResponsiveType<string | number>;
|
|
@@ -40,18 +36,16 @@ interface SharedProps {
|
|
|
40
36
|
children?: React.ReactNode;
|
|
41
37
|
position?: string;
|
|
42
38
|
overflow?: string;
|
|
43
|
-
top?: ResponsiveType<string | number
|
|
44
|
-
bottom?: ResponsiveType<string | number
|
|
45
|
-
left?: ResponsiveType<string | number
|
|
46
|
-
right?: ResponsiveType<string | number
|
|
47
|
-
zIndex?: number;
|
|
39
|
+
top?: ResponsiveType<string | number> | null;
|
|
40
|
+
bottom?: ResponsiveType<string | number> | null;
|
|
41
|
+
left?: ResponsiveType<string | number> | null;
|
|
42
|
+
right?: ResponsiveType<string | number> | null;
|
|
43
|
+
zIndex?: number | string;
|
|
48
44
|
borderWidth?: string | number;
|
|
49
|
-
refHandler?: (ref: HTMLElement | HTMLDivElement | HTMLSpanElement) => void;
|
|
50
|
-
/** @deprecated Usage of style results in non-standard components */
|
|
51
|
-
style?: any;
|
|
45
|
+
refHandler?: ((ref: HTMLElement) => void) | ((ref: HTMLDivElement) => void) | ((ref: HTMLSpanElement) => void);
|
|
52
46
|
}
|
|
53
47
|
interface ContainerProps extends SharedProps {
|
|
54
|
-
htmlTag?: 'div' | 'header' | 'article' | 'section' | 'nav' | 'aside' | 'footer' | 'main' | 'span';
|
|
48
|
+
htmlTag?: 'div' | 'header' | 'article' | 'section' | 'nav' | 'aside' | 'footer' | 'main' | 'span' | 'form';
|
|
55
49
|
}
|
|
56
50
|
interface ContainerWrapperProps extends SharedProps {
|
|
57
51
|
as?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ResponsiveType } from '../../types';
|
|
2
|
+
import { LensDivProps, ResponsiveType } from '../../types';
|
|
3
3
|
declare const DistributeWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, DistributeWrapperProps, object>;
|
|
4
|
-
declare const Distribute: ({ children, gap, direction, alignment, isSpread, htmlTag, ...props }: DistributeProps & React.ComponentProps<typeof DistributeWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Distribute: ({ children, gap, direction, alignment, isSpread, htmlTag, ...props }: DistributeProps & React.ComponentProps<typeof DistributeWrapper> & Omit<LensDivProps, keyof DistributeProps & React.ComponentProps<typeof DistributeWrapper>>) => React.JSX.Element;
|
|
5
5
|
export declare const availableDirections: string[];
|
|
6
6
|
export declare const availableAlignments: string[];
|
|
7
7
|
export declare const availableHtmlTags: string[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
2
3
|
declare const FormFieldWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormFieldProps, object>;
|
|
3
|
-
declare const FormField: ({ label, children, errorMessage, labelFor, direction, ...props }: FormFieldProps & React.ComponentProps<typeof FormFieldWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const FormField: ({ label, children, errorMessage, labelFor, direction, ...props }: FormFieldProps & React.ComponentProps<typeof FormFieldWrapper> & Omit<LensDivProps, keyof FormFieldProps & React.ComponentProps<typeof FormFieldWrapper>>) => React.JSX.Element;
|
|
4
5
|
type FormFieldProps = {
|
|
5
|
-
label?:
|
|
6
|
-
errorMessage?: string;
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
errorMessage?: string | null;
|
|
7
8
|
labelFor?: string;
|
|
8
9
|
children?: React.ReactNode;
|
|
9
10
|
direction?: 'row' | 'column';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { SizeProp } from '../../utilities';
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { LensSpanProps } from '../../types';
|
|
2
4
|
declare const IconWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, IconProps, object>;
|
|
3
5
|
type IconProps = {
|
|
4
|
-
size?:
|
|
6
|
+
size?: SizeProp;
|
|
5
7
|
altText?: string;
|
|
6
8
|
icon?: React.ReactNode;
|
|
7
9
|
color?: string;
|
|
8
10
|
hasWidthOffset?: boolean;
|
|
9
11
|
};
|
|
10
|
-
declare const Icon: ({ altText, icon, color, size, hasWidthOffset, ...props }: IconProps & React.ComponentProps<typeof IconWrapper>) => React.JSX.Element;
|
|
12
|
+
declare const Icon: ({ altText, icon, color, size, hasWidthOffset, ...props }: IconProps & React.ComponentProps<typeof IconWrapper> & Omit<LensSpanProps, keyof IconProps & React.ComponentProps<typeof IconWrapper>>) => React.JSX.Element;
|
|
11
13
|
export default Icon;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensButtonProps } from '../../types';
|
|
2
3
|
export declare const IconButtonBox: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IconButtonBoxProps, object>;
|
|
3
|
-
declare const IconButton: ({ altText, icon, onClick, iconColor, backgroundColor, isActive, isDisabled, size, ...props }: IconButtonProps & React.ComponentProps<typeof IconButtonBox>) => React.JSX.Element;
|
|
4
|
+
declare const IconButton: ({ altText, icon, onClick, iconColor, backgroundColor, isActive, isDisabled, size, ...props }: IconButtonProps & React.ComponentProps<typeof IconButtonBox> & Omit<LensButtonProps, keyof IconButtonProps & React.ComponentProps<typeof IconButtonBox>>) => React.JSX.Element;
|
|
4
5
|
type IconButtonProps = {
|
|
5
6
|
altText: string;
|
|
6
7
|
icon?: React.ReactNode;
|
|
7
|
-
onClick?: React.
|
|
8
|
+
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
8
9
|
iconColor?: string;
|
|
9
10
|
backgroundColor?: string;
|
|
10
11
|
isActive?: boolean;
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensAnchorProps } from '../../types';
|
|
2
3
|
declare const LinkWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, LinkWrapperProps, object>;
|
|
3
|
-
declare const Link: ({ children, href, variant, htmlTag, isDisabled, ...props }: LinkProps & React.ComponentProps<typeof LinkWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Link: ({ children, href, variant, htmlTag, isDisabled, ...props }: LinkProps & React.ComponentProps<typeof LinkWrapper> & Omit<LensAnchorProps, keyof LinkProps & React.ComponentProps<typeof LinkWrapper>>) => React.JSX.Element;
|
|
4
5
|
export declare const availableVariants: string[];
|
|
5
6
|
type LinkProps = {
|
|
6
7
|
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Usage of className results in non-standard components
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
8
|
href?: string;
|
|
12
9
|
variant?: 'neutral' | 'primary';
|
|
13
10
|
htmlTag?: 'button' | 'a';
|
|
14
11
|
isDisabled?: boolean;
|
|
15
|
-
onClick?: React.
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated Usage of style results in non-standard components
|
|
18
|
-
*/
|
|
19
|
-
style?: any;
|
|
12
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
20
13
|
target?: string;
|
|
21
14
|
};
|
|
22
15
|
type LinkWrapperProps = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ResponsiveType } from '../../types';
|
|
2
|
+
import { LensDivProps, ResponsiveType } from '../../types';
|
|
3
3
|
declare const ListWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ListProps, object>;
|
|
4
4
|
export declare const ListRow: ({ children, htmlTag, className, backgroundColor, onClick, href, ...props }: ListRowProps) => React.JSX.Element;
|
|
5
|
-
declare const List: ({ children, columns, gap, variant, ...props }: ListProps & React.ComponentProps<typeof ListWrapper>) => React.JSX.Element;
|
|
5
|
+
declare const List: ({ children, columns, gap, variant, ...props }: ListProps & React.ComponentProps<typeof ListWrapper> & Omit<LensDivProps, keyof ListProps & React.ComponentProps<typeof ListWrapper>>) => React.JSX.Element;
|
|
6
6
|
interface SharedProps {
|
|
7
7
|
padding?: ResponsiveType<string | number>;
|
|
8
8
|
paddingTop?: ResponsiveType<string | number>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensSpanProps } from '../../types';
|
|
2
3
|
declare const LoaderWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LoaderWrapperProps, object>;
|
|
3
|
-
declare const Loader: ({ color, size, ...props }: LoaderProps & React.ComponentProps<typeof LoaderWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Loader: ({ color, size, ...props }: LoaderProps & React.ComponentProps<typeof LoaderWrapper> & Omit<LensSpanProps, keyof LoaderProps & React.ComponentProps<typeof LoaderWrapper>>) => React.JSX.Element;
|
|
4
5
|
export declare const availableSizes: string[];
|
|
5
6
|
type LoaderProps = {
|
|
6
7
|
color?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensSpanProps } from '../../types';
|
|
2
3
|
declare const LogoWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LogoWrapperProps, object>;
|
|
3
|
-
declare const Logo: ({ variant, maxWidth, symbolColor, wordmarkColor, brand, customId, title, ...props }: LogoProps & React.ComponentProps<typeof LogoWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Logo: ({ variant, maxWidth, symbolColor, wordmarkColor, brand, customId, title, ...props }: LogoProps & React.ComponentProps<typeof LogoWrapper> & Omit<LensSpanProps, keyof LogoProps & React.ComponentProps<typeof LogoWrapper>>) => React.JSX.Element;
|
|
4
5
|
export declare const availableVariants: string[];
|
|
5
6
|
type LogoProps = {
|
|
6
7
|
variant?: 'combined' | 'symbol' | 'wordmark';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensDialogProps } from '../../types';
|
|
2
3
|
declare const ModalCardWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, ModalCardProps, object>;
|
|
3
|
-
export declare const ModalCard: ({ children, onCloseClick, isOpen, maxWidth, maxHeight, placement, ariaLabel, ref, removeClose, ...props }: ModalCardProps & React.ComponentProps<typeof ModalCardWrapper>) => React.JSX.Element;
|
|
4
|
+
export declare const ModalCard: ({ children, onCloseClick, isOpen, maxWidth, maxHeight, placement, ariaLabel, ref, removeClose, ...props }: ModalCardProps & React.ComponentProps<typeof ModalCardWrapper> & Omit<LensDialogProps, keyof ModalCardProps & React.ComponentProps<typeof ModalCardWrapper>>) => React.JSX.Element;
|
|
4
5
|
declare const Modal: React.ForwardRefExoticComponent<Omit<ModalProps & {
|
|
5
6
|
isOpen?: boolean;
|
|
6
7
|
children?: React.ReactNode;
|
|
@@ -18,7 +19,26 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ModalProps & {
|
|
|
18
19
|
backgroundColor?: string;
|
|
19
20
|
}> & {
|
|
20
21
|
theme?: object;
|
|
21
|
-
}
|
|
22
|
+
} & Omit<import("../../types").LensDivProps, keyof {
|
|
23
|
+
isOpen?: boolean;
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
zIndex?: number;
|
|
26
|
+
backgroundColor?: string;
|
|
27
|
+
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<{
|
|
28
|
+
isOpen?: boolean;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
zIndex?: number;
|
|
31
|
+
backgroundColor?: string;
|
|
32
|
+
}, keyof {
|
|
33
|
+
isOpen?: boolean;
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
zIndex?: number;
|
|
36
|
+
backgroundColor?: string;
|
|
37
|
+
}> & {
|
|
38
|
+
theme?: object;
|
|
39
|
+
} & {
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
}>, "ref"> & React.RefAttributes<HTMLDialogElement>>;
|
|
22
42
|
type ModalProps = {
|
|
23
43
|
children?: React.ReactNode;
|
|
24
44
|
isOpen?: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SeverityLevels } from './types';
|
|
3
|
+
import { LensAsideProps } from '../../types';
|
|
3
4
|
declare const NotificationBarWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, NotificationBarWrapperProps, object>;
|
|
4
|
-
declare const NotificationBar: ({ children, onCloseClick, isOpen, severity, id, }: NotificationBarProps & React.ComponentProps<typeof NotificationBarWrapper>) => React.JSX.Element;
|
|
5
|
+
declare const NotificationBar: ({ children, onCloseClick, isOpen, severity, id, }: NotificationBarProps & React.ComponentProps<typeof NotificationBarWrapper> & Omit<LensAsideProps, keyof NotificationBarProps & React.ComponentProps<typeof NotificationBarWrapper>>) => React.JSX.Element;
|
|
5
6
|
type NotificationBarProps = {
|
|
6
7
|
children?: React.ReactNode;
|
|
7
8
|
isOpen?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
2
3
|
declare const PillWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PillWrapperProps, object>;
|
|
3
|
-
declare const Pill: ({ color, backgroundColor, children, icon, iconPosition, ...props }: PillProps & React.ComponentProps<typeof PillWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Pill: ({ color, backgroundColor, children, icon, iconPosition, ...props }: PillProps & React.ComponentProps<typeof PillWrapper> & Omit<LensDivProps, keyof PillProps & React.ComponentProps<typeof PillWrapper>>) => React.JSX.Element;
|
|
4
5
|
type PillProps = {
|
|
5
6
|
icon?: React.ReactNode;
|
|
6
7
|
iconPosition?: 'left' | 'right';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
2
3
|
declare const SelectWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, object>;
|
|
3
|
-
declare const Select: ({ container, onChange, menuZIndex, menuMaxWidth, menuMaxHeight, menuMinWidth, selectedOptionValue, onOuterClick, options, placeholder, menuPosition, isDisabled, onOpenChange, trigger, ...props }: SelectProps & React.ComponentProps<typeof SelectWrapper>) => React.JSX.Element;
|
|
4
|
-
type OptionsObject = {
|
|
4
|
+
declare const Select: ({ container, onChange, menuZIndex, menuMaxWidth, menuMaxHeight, menuMinWidth, selectedOptionValue, onOuterClick, options, placeholder, menuPosition, isDisabled, onOpenChange, trigger, ...props }: SelectProps & Omit<React.ComponentProps<typeof SelectWrapper>, keyof SelectProps> & Omit<LensDivProps, keyof SelectProps & React.ComponentProps<typeof SelectWrapper>>) => React.JSX.Element;
|
|
5
|
+
export type OptionsObject = {
|
|
5
6
|
value: string;
|
|
6
7
|
title: React.ReactNode;
|
|
7
8
|
icon?: React.ReactNode;
|
|
@@ -10,10 +11,10 @@ type OptionsObject = {
|
|
|
10
11
|
hidden?: HTMLAttributes<HTMLOptionElement>['hidden'];
|
|
11
12
|
};
|
|
12
13
|
type SelectProps = {
|
|
13
|
-
onChange?:
|
|
14
|
+
onChange?: (selectedOption: OptionsObject) => void;
|
|
14
15
|
isDisabled?: boolean;
|
|
15
16
|
placeholder?: React.ReactNode;
|
|
16
|
-
selectedOptionValue?: string;
|
|
17
|
+
selectedOptionValue?: string | null;
|
|
17
18
|
menuZIndex?: number;
|
|
18
19
|
menuMaxWidth?: string | number;
|
|
19
20
|
menuMaxHeight?: string | number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { TextSize } from '../../variables';
|
|
2
3
|
declare const SkeletonTextWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SkeletonTextProps, object>;
|
|
3
4
|
declare const SkeletonText: ({ size, lines, }: SkeletonTextProps & React.ComponentProps<typeof SkeletonTextWrapper>) => React.JSX.Element;
|
|
4
5
|
type SkeletonTextProps = {
|
|
5
|
-
size?:
|
|
6
|
+
size?: TextSize;
|
|
6
7
|
lines?: number;
|
|
7
8
|
};
|
|
8
9
|
export default SkeletonText;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ResponsiveType } from '../../types';
|
|
2
|
+
import { LensDivProps, ResponsiveType } from '../../types';
|
|
3
3
|
declare const SpacerWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SpacerProps, object>;
|
|
4
|
-
declare const Spacer: ({ children, all, y, x, top, right, bottom, left, isInline, ...props }: SpacerProps & React.ComponentProps<typeof SpacerWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Spacer: ({ children, all, y, x, top, right, bottom, left, isInline, ...props }: SpacerProps & React.ComponentProps<typeof SpacerWrapper> & Omit<LensDivProps, keyof SpacerProps & React.ComponentProps<typeof SpacerWrapper>>) => React.JSX.Element;
|
|
5
5
|
type SpacerProps = {
|
|
6
6
|
all?: ResponsiveType<string | number>;
|
|
7
7
|
y?: ResponsiveType<string | number>;
|
|
@@ -14,7 +14,7 @@ interface SharedProps {
|
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
}
|
|
16
16
|
interface SplitProps extends SharedProps {
|
|
17
|
-
alignItems?: ResponsiveType<'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline'>;
|
|
17
|
+
alignItems?: ResponsiveType<'start' | 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline'>;
|
|
18
18
|
justifyContent?: ResponsiveType<'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly'>;
|
|
19
19
|
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'start' | 'end' | 'baseline';
|
|
20
20
|
wrap?: ResponsiveType<'nowrap' | 'wrap' | 'wrap-reverse'>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensInputProps } from '../../types';
|
|
2
3
|
declare const SwitchInput: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, SwitchInputProps, object>;
|
|
3
|
-
declare const Switch: ({ isActive, isDisabled, onChange, size, ariaLabelledby, ariaLabel, ...props }: SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, 'size'>) => React.JSX.Element;
|
|
4
|
+
declare const Switch: ({ isActive, isDisabled, onChange, size, ariaLabelledby, ariaLabel, ...props }: SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, 'size'> & Omit<LensInputProps, keyof SwitchProps & Omit<React.ComponentProps<typeof SwitchInput>, 'size'>>) => React.JSX.Element;
|
|
4
5
|
type SwitchProps = {
|
|
5
6
|
isActive?: boolean;
|
|
6
7
|
isDisabled?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensButtonProps } from '../../types';
|
|
2
3
|
declare const TabWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, TabWrapperProps, object>;
|
|
3
|
-
export declare const Tab: ({ children, isActive, htmlTag, icon, ...props }: TabProps & React.ComponentProps<typeof TabWrapper>) => React.JSX.Element;
|
|
4
|
+
export declare const Tab: ({ children, isActive, htmlTag, icon, ...props }: TabProps & React.ComponentProps<typeof TabWrapper> & Omit<LensButtonProps, keyof TabProps & React.ComponentProps<typeof TabWrapper>>) => React.JSX.Element;
|
|
4
5
|
declare const Tabs: ({ children, scrollOffset, hasFullTabs, isPilledDesign, ...props }: TabsProps) => React.JSX.Element;
|
|
5
6
|
type TabsProps = {
|
|
6
7
|
scrollOffset?: number | string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { TextSize } from '../../variables';
|
|
3
|
+
import { LensSpanProps } from '../../types';
|
|
2
4
|
export declare const dimAmount = 0.6;
|
|
3
5
|
type VariantsProps = {
|
|
4
6
|
[key: string]: {
|
|
@@ -9,14 +11,14 @@ type VariantsProps = {
|
|
|
9
11
|
export declare const variants: VariantsProps;
|
|
10
12
|
export declare const lineHeightToPx: (size: any) => number;
|
|
11
13
|
declare const TextWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextWrapperProps, object>;
|
|
12
|
-
declare const Text: ({ children, size, color, isInline, isDimmed, fontWeight, hasEllipsis, ellipsisLines, noWrap, variant, htmlTag, alignment, sizeMinMax, ...props }: TextProps & React.ComponentProps<typeof TextWrapper>) => React.JSX.Element;
|
|
14
|
+
declare const Text: ({ children, size, color, isInline, isDimmed, fontWeight, hasEllipsis, ellipsisLines, noWrap, variant, htmlTag, alignment, sizeMinMax, ...props }: TextProps & React.ComponentProps<typeof TextWrapper> & Omit<LensSpanProps, keyof TextProps & React.ComponentProps<typeof TextWrapper>>) => React.JSX.Element;
|
|
13
15
|
export declare const availableSizes: string[];
|
|
14
16
|
export declare const deprecatedSizes: string[];
|
|
15
17
|
export declare const availableFontWeights: string[];
|
|
16
18
|
export declare const availableHtmlTags: string[];
|
|
17
19
|
export declare const alignments: string[];
|
|
18
20
|
interface TextProps {
|
|
19
|
-
size?:
|
|
21
|
+
size?: TextSize;
|
|
20
22
|
fontWeight?: 'book' | 'bold';
|
|
21
23
|
variant?: 'body' | 'title' | 'mainTitle';
|
|
22
24
|
alignment?: 'left' | 'right' | 'center';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensButtonProps } from '../../types';
|
|
2
3
|
declare const TextButtonWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, TextButtonWrapperProps, object>;
|
|
3
|
-
declare const TextButton: ({ onClick, size, children, icon, iconPosition, isDisabled, htmlTag, offsetSide, ...props }: TextButtonProps & React.ComponentProps<typeof TextButtonWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const TextButton: ({ onClick, size, children, icon, iconPosition, isDisabled, htmlTag, offsetSide, ...props }: TextButtonProps & React.ComponentProps<typeof TextButtonWrapper> & Omit<LensButtonProps, keyof TextButtonProps & React.ComponentProps<typeof TextButtonWrapper>>) => React.JSX.Element;
|
|
4
5
|
type TextButtonProps = {
|
|
5
6
|
onClick?: React.ReactEventHandler;
|
|
6
7
|
isDisabled?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
2
3
|
declare const ToastWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ToastWrapperProps, object>;
|
|
3
|
-
declare const Toast: ({ children, isOpen, onCloseClick, zIndex, duration, platform, }: ToastProps & React.ComponentProps<typeof ToastWrapper>) => React.JSX.Element;
|
|
4
|
+
declare const Toast: ({ children, isOpen, onCloseClick, zIndex, duration, platform, }: ToastProps & React.ComponentProps<typeof ToastWrapper> & Omit<LensDivProps, keyof ToastProps & React.ComponentProps<typeof ToastWrapper>>) => React.JSX.Element;
|
|
4
5
|
type ToastProps = {
|
|
5
6
|
children?: React.ReactNode;
|
|
6
7
|
isOpen?: boolean;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,122 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export type ResponsiveType<T> = T | T[] | {
|
|
2
3
|
[key: string]: T;
|
|
3
4
|
};
|
|
4
5
|
export type ResponsiveGridSections = string | (string | number)[] | {
|
|
5
6
|
[key: string]: string | (string | number)[];
|
|
6
7
|
};
|
|
8
|
+
type DivProps = React.HTMLProps<HTMLDivElement>;
|
|
9
|
+
export interface LensDivProps {
|
|
10
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
11
|
+
className?: DivProps['className'];
|
|
12
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
13
|
+
style?: DivProps['style'];
|
|
14
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
15
|
+
onClick?: DivProps['onClick'];
|
|
16
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
17
|
+
onMouseEnter?: DivProps['onMouseEnter'];
|
|
18
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
19
|
+
onMouseLeave?: DivProps['onMouseLeave'];
|
|
20
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
21
|
+
onMouseMove?: DivProps['onMouseMove'];
|
|
22
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
23
|
+
onKeyDown?: DivProps['onKeyDown'];
|
|
24
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
25
|
+
onScroll?: DivProps['onScroll'];
|
|
26
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
27
|
+
color?: DivProps['color'];
|
|
28
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
29
|
+
size?: DivProps['size'];
|
|
30
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
31
|
+
title?: DivProps['title'];
|
|
32
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
33
|
+
as?: DivProps['as'];
|
|
34
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
35
|
+
onSubmit?: DivProps['onSubmit'];
|
|
36
|
+
id?: DivProps['id'];
|
|
37
|
+
tabIndex?: DivProps['tabIndex'];
|
|
38
|
+
role?: DivProps['role'];
|
|
39
|
+
}
|
|
40
|
+
type AnchorProps = React.HTMLProps<HTMLAnchorElement>;
|
|
41
|
+
export interface LensAnchorProps {
|
|
42
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
43
|
+
className?: DivProps['className'];
|
|
44
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
45
|
+
color?: AnchorProps['color'];
|
|
46
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
47
|
+
style?: DivProps['style'];
|
|
48
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
49
|
+
onKeyDown?: AnchorProps['onKeyDown'];
|
|
50
|
+
id?: AnchorProps['id'];
|
|
51
|
+
type?: AnchorProps['type'];
|
|
52
|
+
rel?: AnchorProps['rel'];
|
|
53
|
+
title?: AnchorProps['title'];
|
|
54
|
+
}
|
|
55
|
+
type SpanProps = React.HTMLProps<HTMLSpanElement>;
|
|
56
|
+
export interface LensSpanProps {
|
|
57
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
58
|
+
className?: SpanProps['className'];
|
|
59
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
60
|
+
style?: SpanProps['style'];
|
|
61
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
62
|
+
onClick?: SpanProps['onClick'];
|
|
63
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
64
|
+
as?: SpanProps['as'];
|
|
65
|
+
id?: SpanProps['id'];
|
|
66
|
+
role?: SpanProps['role'];
|
|
67
|
+
}
|
|
68
|
+
type ButtonProps = React.HTMLProps<HTMLButtonElement>;
|
|
69
|
+
export interface LensButtonProps {
|
|
70
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
71
|
+
className?: DivProps['className'];
|
|
72
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
73
|
+
style?: DivProps['style'];
|
|
74
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
75
|
+
disabled?: ButtonProps['disabled'];
|
|
76
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
77
|
+
as?: ButtonProps['as'];
|
|
78
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
79
|
+
color?: ButtonProps['color'];
|
|
80
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
81
|
+
type?: ButtonProps['type'];
|
|
82
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
83
|
+
title?: ButtonProps['title'];
|
|
84
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
85
|
+
onBlur?: ButtonProps['onBlur'];
|
|
86
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
87
|
+
onMouseDown?: ButtonProps['onMouseDown'];
|
|
88
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
89
|
+
onMouseEnter?: ButtonProps['onMouseEnter'];
|
|
90
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
91
|
+
onMouseLeave?: ButtonProps['onMouseLeave'];
|
|
92
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
93
|
+
onKeyDown?: ButtonProps['onKeyDown'];
|
|
94
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
95
|
+
onTouchStart?: ButtonProps['onTouchStart'];
|
|
96
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
97
|
+
onTouchMove?: ButtonProps['onTouchMove'];
|
|
98
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
99
|
+
onFocus?: ButtonProps['onFocus'];
|
|
100
|
+
id?: ButtonProps['id'];
|
|
101
|
+
rel?: ButtonProps['rel'];
|
|
102
|
+
form?: ButtonProps['form'];
|
|
103
|
+
autoFocus?: ButtonProps['autoFocus'];
|
|
104
|
+
onClick?: ButtonProps['onClick'];
|
|
105
|
+
}
|
|
106
|
+
type InputProps = React.HTMLProps<HTMLInputElement>;
|
|
107
|
+
export interface LensInputProps {
|
|
108
|
+
readOnly?: InputProps['readOnly'];
|
|
109
|
+
id?: InputProps['id'];
|
|
110
|
+
}
|
|
111
|
+
type DialogProps = React.HTMLProps<HTMLDialogElement>;
|
|
112
|
+
export interface LensDialogProps {
|
|
113
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
114
|
+
style?: DialogProps['style'];
|
|
115
|
+
/** @deprecated Prefer using Lens builtin props */
|
|
116
|
+
className?: DialogProps['className'];
|
|
117
|
+
tabIndex?: DialogProps['tabIndex'];
|
|
118
|
+
}
|
|
119
|
+
export interface LensAsideProps {
|
|
120
|
+
id?: HTMLElement['id'];
|
|
121
|
+
}
|
|
122
|
+
export {};
|
|
@@ -6,4 +6,5 @@ export declare const u: (amount: number) => string;
|
|
|
6
6
|
*/
|
|
7
7
|
export type Size = Space | number | string;
|
|
8
8
|
export declare const getSizeValue: (size: Size) => string;
|
|
9
|
-
export
|
|
9
|
+
export type SizeProp = Size | Size[] | Partial<Record<Breakpoint | 'default', Size>>;
|
|
10
|
+
export declare const getSize: (property: string, size: SizeProp) => string;
|