@loomhq/lens 11.30.3 → 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 +3 -3
- package/dist/types/components/avatar/avatar.d.ts +2 -2
- package/dist/types/components/backdrop/backdrop.d.ts +2 -2
- package/dist/types/components/button/button.d.ts +2 -2
- package/dist/types/components/color-picker/color-picker.d.ts +2 -2
- package/dist/types/components/container/container.d.ts +2 -2
- package/dist/types/components/distribute/distribute.d.ts +2 -2
- package/dist/types/components/form-field/form-field.d.ts +2 -2
- package/dist/types/components/icon/icon.d.ts +2 -2
- package/dist/types/components/icon-button/icon-button.d.ts +2 -2
- package/dist/types/components/link/link.d.ts +2 -2
- package/dist/types/components/list/list.d.ts +2 -2
- package/dist/types/components/loader/loader.d.ts +2 -2
- package/dist/types/components/logo/logo.d.ts +2 -2
- package/dist/types/components/modal/modal.d.ts +22 -3
- package/dist/types/components/notification-bar/notification-bar.d.ts +2 -2
- package/dist/types/components/pill/pill.d.ts +2 -2
- package/dist/types/components/select/select.d.ts +2 -2
- package/dist/types/components/spacer/spacer.d.ts +2 -2
- package/dist/types/components/switch/switch.d.ts +2 -2
- package/dist/types/components/tabs/tabs.d.ts +2 -2
- package/dist/types/components/text/text.d.ts +2 -2
- package/dist/types/components/text-button/text-button.d.ts +2 -2
- package/dist/types/components/toast/toast.d.ts +2 -2
- package/dist/types/types.d.ts +0 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDivProps,
|
|
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 }:
|
|
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 { LensDivProps,
|
|
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 = {
|
|
@@ -10,7 +10,7 @@ type ArrangeProps = {
|
|
|
10
10
|
maxWidth?: ResponsiveType<string | number>;
|
|
11
11
|
maxHeight?: ResponsiveType<string | number>;
|
|
12
12
|
gap?: ResponsiveType<string | number> | null;
|
|
13
|
-
alignItems?: ResponsiveType<'start' | 'end' | 'center' | 'stretch'>;
|
|
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'>;
|
|
@@ -18,5 +18,5 @@ type ArrangeProps = {
|
|
|
18
18
|
columns?: ResponsiveGridSections;
|
|
19
19
|
rows?: ResponsiveGridSections;
|
|
20
20
|
};
|
|
21
|
-
declare const Arrange: ({ children, width, height, minWidth, minHeight, maxWidth, maxHeight, gap, columns, rows, alignItems, justifyContent, justifyItems, alignContent, autoFlow, className, style, ...props }:
|
|
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;
|
|
22
22
|
export default Arrange;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LensSpanProps } from '../../types';
|
|
3
3
|
declare const AvatarWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, AvatarWrapperProps, object>;
|
|
4
|
-
declare const Avatar: ({ altText, size, letter, imageSrc, children, ...props }:
|
|
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;
|
|
5
5
|
type AvatarProps = {
|
|
6
6
|
altText?: string;
|
|
7
7
|
letter?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDivProps
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
3
3
|
declare const BackdropWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BackdropProps, object>;
|
|
4
|
-
declare const Backdrop: ({ children, isOpen, zIndex, backgroundColor, ...props }:
|
|
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;
|
|
5
5
|
type BackdropProps = {
|
|
6
6
|
isOpen?: boolean;
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensButtonProps
|
|
2
|
+
import { LensButtonProps } from '../../types';
|
|
3
3
|
declare const ButtonWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonWrapperProps, object>;
|
|
4
|
-
declare const Button: ({ size, children, variant, hasFullWidth, icon, iconPosition, logoSrc, hasLoader, isDisabled, htmlTag, refHandler, ...props }:
|
|
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;
|
|
5
5
|
type Variant = 'neutral' | 'primary' | 'secondary' | 'record' | 'upgrade' | 'danger' | 'ai';
|
|
6
6
|
interface ButtonProps {
|
|
7
7
|
size?: 'small' | 'medium' | 'large';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDivProps
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
3
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>;
|
|
4
|
-
declare const ColorPicker: ({ defaultColor, confirmButton, swatches, onChange, ...props }:
|
|
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;
|
|
5
5
|
type ColorPickerProps = {
|
|
6
6
|
defaultColor?: string;
|
|
7
7
|
confirmButton?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDivProps,
|
|
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 }:
|
|
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[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDivProps,
|
|
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 }:
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { LensDivProps
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
3
3
|
declare const FormFieldWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormFieldProps, object>;
|
|
4
|
-
declare const FormField: ({ label, children, errorMessage, labelFor, direction, ...props }:
|
|
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;
|
|
5
5
|
type FormFieldProps = {
|
|
6
6
|
label?: ReactNode;
|
|
7
7
|
errorMessage?: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SizeProp } from '../../utilities';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { LensSpanProps } from '../../types';
|
|
4
4
|
declare const IconWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, IconProps, object>;
|
|
5
5
|
type IconProps = {
|
|
6
6
|
size?: SizeProp;
|
|
@@ -9,5 +9,5 @@ type IconProps = {
|
|
|
9
9
|
color?: string;
|
|
10
10
|
hasWidthOffset?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const Icon: ({ altText, icon, color, size, hasWidthOffset, ...props }:
|
|
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;
|
|
13
13
|
export default Icon;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensButtonProps
|
|
2
|
+
import { LensButtonProps } from '../../types';
|
|
3
3
|
export declare const IconButtonBox: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IconButtonBoxProps, object>;
|
|
4
|
-
declare const IconButton: ({ altText, icon, onClick, iconColor, backgroundColor, isActive, isDisabled, size, ...props }:
|
|
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;
|
|
5
5
|
type IconButtonProps = {
|
|
6
6
|
altText: string;
|
|
7
7
|
icon?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensAnchorProps
|
|
2
|
+
import { LensAnchorProps } from '../../types';
|
|
3
3
|
declare const LinkWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, LinkWrapperProps, object>;
|
|
4
|
-
declare const Link: ({ children, href, variant, htmlTag, isDisabled, ...props }:
|
|
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;
|
|
5
5
|
export declare const availableVariants: string[];
|
|
6
6
|
type LinkProps = {
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDivProps,
|
|
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 }:
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LensSpanProps } from '../../types';
|
|
3
3
|
declare const LoaderWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LoaderWrapperProps, object>;
|
|
4
|
-
declare const Loader: ({ color, size, ...props }:
|
|
4
|
+
declare const Loader: ({ color, size, ...props }: LoaderProps & React.ComponentProps<typeof LoaderWrapper> & Omit<LensSpanProps, keyof LoaderProps & React.ComponentProps<typeof LoaderWrapper>>) => React.JSX.Element;
|
|
5
5
|
export declare const availableSizes: string[];
|
|
6
6
|
type LoaderProps = {
|
|
7
7
|
color?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LensSpanProps } from '../../types';
|
|
3
3
|
declare const LogoWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, LogoWrapperProps, object>;
|
|
4
|
-
declare const Logo: ({ variant, maxWidth, symbolColor, wordmarkColor, brand, customId, title, ...props }:
|
|
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;
|
|
5
5
|
export declare const availableVariants: string[];
|
|
6
6
|
type LogoProps = {
|
|
7
7
|
variant?: 'combined' | 'symbol' | 'wordmark';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDialogProps
|
|
2
|
+
import { LensDialogProps } from '../../types';
|
|
3
3
|
declare const ModalCardWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, ModalCardProps, object>;
|
|
4
|
-
export declare const ModalCard: ({ children, onCloseClick, isOpen, maxWidth, maxHeight, placement, ariaLabel, ref, removeClose, ...props }:
|
|
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;
|
|
5
5
|
declare const Modal: React.ForwardRefExoticComponent<Omit<ModalProps & {
|
|
6
6
|
isOpen?: boolean;
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -19,7 +19,26 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ModalProps & {
|
|
|
19
19
|
backgroundColor?: string;
|
|
20
20
|
}> & {
|
|
21
21
|
theme?: object;
|
|
22
|
-
} & Omit<import("../../types").LensDivProps,
|
|
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>>;
|
|
23
42
|
type ModalProps = {
|
|
24
43
|
children?: React.ReactNode;
|
|
25
44
|
isOpen?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SeverityLevels } from './types';
|
|
3
|
-
import { LensAsideProps
|
|
3
|
+
import { LensAsideProps } from '../../types';
|
|
4
4
|
declare const NotificationBarWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, NotificationBarWrapperProps, object>;
|
|
5
|
-
declare const NotificationBar: ({ children, onCloseClick, isOpen, severity, id, }:
|
|
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;
|
|
6
6
|
type NotificationBarProps = {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
isOpen?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDivProps
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
3
3
|
declare const PillWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PillWrapperProps, object>;
|
|
4
|
-
declare const Pill: ({ color, backgroundColor, children, icon, iconPosition, ...props }:
|
|
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;
|
|
5
5
|
type PillProps = {
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
7
|
iconPosition?: 'left' | 'right';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import { LensDivProps
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
3
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>;
|
|
4
|
-
declare const Select: ({ container, onChange, menuZIndex, menuMaxWidth, menuMaxHeight, menuMinWidth, selectedOptionValue, onOuterClick, options, placeholder, menuPosition, isDisabled, onOpenChange, trigger, ...props }:
|
|
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
5
|
export type OptionsObject = {
|
|
6
6
|
value: string;
|
|
7
7
|
title: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDivProps,
|
|
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 }:
|
|
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>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LensInputProps } from '../../types';
|
|
3
3
|
declare const SwitchInput: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, SwitchInputProps, object>;
|
|
4
|
-
declare const Switch: ({ isActive, isDisabled, onChange, size, ariaLabelledby, ariaLabel, ...props }:
|
|
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;
|
|
5
5
|
type SwitchProps = {
|
|
6
6
|
isActive?: boolean;
|
|
7
7
|
isDisabled?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensButtonProps
|
|
2
|
+
import { LensButtonProps } from '../../types';
|
|
3
3
|
declare const TabWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, TabWrapperProps, object>;
|
|
4
|
-
export declare const Tab: ({ children, isActive, htmlTag, icon, ...props }:
|
|
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;
|
|
5
5
|
declare const Tabs: ({ children, scrollOffset, hasFullTabs, isPilledDesign, ...props }: TabsProps) => React.JSX.Element;
|
|
6
6
|
type TabsProps = {
|
|
7
7
|
scrollOffset?: number | string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TextSize } from '../../variables';
|
|
3
|
-
import {
|
|
3
|
+
import { LensSpanProps } from '../../types';
|
|
4
4
|
export declare const dimAmount = 0.6;
|
|
5
5
|
type VariantsProps = {
|
|
6
6
|
[key: string]: {
|
|
@@ -11,7 +11,7 @@ type VariantsProps = {
|
|
|
11
11
|
export declare const variants: VariantsProps;
|
|
12
12
|
export declare const lineHeightToPx: (size: any) => number;
|
|
13
13
|
declare const TextWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextWrapperProps, object>;
|
|
14
|
-
declare const Text: ({ children, size, color, isInline, isDimmed, fontWeight, hasEllipsis, ellipsisLines, noWrap, variant, htmlTag, alignment, sizeMinMax, ...props }:
|
|
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;
|
|
15
15
|
export declare const availableSizes: string[];
|
|
16
16
|
export declare const deprecatedSizes: string[];
|
|
17
17
|
export declare const availableFontWeights: string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensButtonProps
|
|
2
|
+
import { LensButtonProps } from '../../types';
|
|
3
3
|
declare const TextButtonWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, TextButtonWrapperProps, object>;
|
|
4
|
-
declare const TextButton: ({ onClick, size, children, icon, iconPosition, isDisabled, htmlTag, offsetSide, ...props }:
|
|
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;
|
|
5
5
|
type TextButtonProps = {
|
|
6
6
|
onClick?: React.ReactEventHandler;
|
|
7
7
|
isDisabled?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LensDivProps
|
|
2
|
+
import { LensDivProps } from '../../types';
|
|
3
3
|
declare const ToastWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ToastWrapperProps, object>;
|
|
4
|
-
declare const Toast: ({ children, isOpen, onCloseClick, zIndex, duration, platform, }:
|
|
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;
|
|
5
5
|
type ToastProps = {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
isOpen?: boolean;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -119,6 +119,4 @@ export interface LensDialogProps {
|
|
|
119
119
|
export interface LensAsideProps {
|
|
120
120
|
id?: HTMLElement['id'];
|
|
121
121
|
}
|
|
122
|
-
type LensHTMLElement = LensDivProps | LensAnchorProps | LensSpanProps | LensButtonProps | LensInputProps | LensDialogProps | LensAsideProps;
|
|
123
|
-
export type LensHTMLProps<ComponentProps, LensElementProps extends LensHTMLElement> = ComponentProps & Omit<LensElementProps, keyof ComponentProps>;
|
|
124
122
|
export {};
|