@julien-wiegandt/open-ui 0.1.71 → 0.1.73
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/button/index.d.ts +6 -4
- package/dist/components/button/style.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/style.d.ts +2 -2
- package/dist/components/chip/index.d.ts +4 -4
- package/dist/components/flex/index.d.ts +2 -2
- package/dist/components/input/index.d.ts +7 -2
- package/dist/components/modal/index.d.ts +5 -0
- package/dist/components/popover/index.d.ts +4 -4
- package/dist/components/popover/style.d.ts +2 -2
- package/dist/components/progress-bar/index.d.ts +1 -1
- package/dist/components/select/index.d.ts +4 -2
- package/dist/components/skeleton/index.d.ts +2 -1
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/text/index.d.ts +3 -0
- package/dist/components/text/styled.d.ts +1 -0
- package/dist/components/textarea/index.d.ts +13 -2
- package/dist/components/title/index.d.ts +3 -1
- package/dist/components/title/style.d.ts +1 -0
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/style.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +25 -0
- package/dist/components/tooltip/style.d.ts +32 -0
- package/dist/components/utils/get-recursive-bg-color.d.ts +1 -0
- package/dist/components/utils/resolve-color.d.ts +9 -0
- package/dist/hooks/use-component-theme.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/open-ui.js +3329 -2885
- package/dist/open-ui.umd.cjs +116 -82
- package/dist/theme/create-theme.d.ts +2 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/types.d.ts +20 -0
- package/dist/theme/utils/colors.d.ts +21 -1
- package/dist/views/images/index.d.ts +1 -0
- package/dist/views/tooltips/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@ import { MarginProps, PaddingProps } from '../common/types';
|
|
|
4
4
|
import { TextProps } from '../text';
|
|
5
5
|
export type Icon = "bell" | "check" | "hamburger" | "heart" | "sync" | "sparkles" | "dots" | "send" | "copy";
|
|
6
6
|
export type ButtonProps = {
|
|
7
|
-
color
|
|
8
|
-
variant
|
|
7
|
+
color?: Color | string;
|
|
8
|
+
variant?: Variant;
|
|
9
9
|
label?: string;
|
|
10
10
|
starticon?: React.ReactNode | Icon;
|
|
11
11
|
endicon?: React.ReactNode | Icon;
|
|
@@ -16,14 +16,15 @@ export type ButtonProps = {
|
|
|
16
16
|
gap?: string | number;
|
|
17
17
|
loading?: boolean;
|
|
18
18
|
active?: boolean;
|
|
19
|
+
activeStyle?: React.CSSProperties;
|
|
19
20
|
align?: "left" | "center" | "right";
|
|
20
21
|
w?: string;
|
|
21
22
|
h?: string;
|
|
22
23
|
labelProps?: TextProps;
|
|
23
24
|
} & MarginProps & PaddingProps & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
24
25
|
export declare const Button: React.ForwardRefExoticComponent<{
|
|
25
|
-
color
|
|
26
|
-
variant
|
|
26
|
+
color?: Color | string;
|
|
27
|
+
variant?: Variant;
|
|
27
28
|
label?: string;
|
|
28
29
|
starticon?: React.ReactNode | Icon;
|
|
29
30
|
endicon?: React.ReactNode | Icon;
|
|
@@ -34,6 +35,7 @@ export declare const Button: React.ForwardRefExoticComponent<{
|
|
|
34
35
|
gap?: string | number;
|
|
35
36
|
loading?: boolean;
|
|
36
37
|
active?: boolean;
|
|
38
|
+
activeStyle?: React.CSSProperties;
|
|
37
39
|
align?: "left" | "center" | "right";
|
|
38
40
|
w?: string;
|
|
39
41
|
h?: string;
|
|
@@ -2,7 +2,7 @@ import { Color, Theme } from '../../theme/types';
|
|
|
2
2
|
import { ButtonProps } from '.';
|
|
3
3
|
import { TextProps } from '../text';
|
|
4
4
|
export declare const getVariantStyle: ({ color, theme, }: {
|
|
5
|
-
color: Color;
|
|
5
|
+
color: Color | string;
|
|
6
6
|
theme: Theme;
|
|
7
7
|
}) => Record<string, any>;
|
|
8
8
|
export declare const sizeMap: Record<NonNullable<ButtonProps["size"]>, {
|
|
@@ -3,7 +3,7 @@ import { default as React } from 'react';
|
|
|
3
3
|
import { MarginProps, PaddingProps } from '../common/types';
|
|
4
4
|
import { TextProps } from '../text';
|
|
5
5
|
export type CheckboxProps = {
|
|
6
|
-
color
|
|
6
|
+
color?: Color | string;
|
|
7
7
|
label?: string;
|
|
8
8
|
checked?: boolean;
|
|
9
9
|
defaultChecked?: boolean;
|
|
@@ -15,7 +15,7 @@ export type CheckboxProps = {
|
|
|
15
15
|
labelPosition?: "left" | "right";
|
|
16
16
|
} & MarginProps & PaddingProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange">;
|
|
17
17
|
export declare const Checkbox: React.ForwardRefExoticComponent<{
|
|
18
|
-
color
|
|
18
|
+
color?: Color | string;
|
|
19
19
|
label?: string;
|
|
20
20
|
checked?: boolean;
|
|
21
21
|
defaultChecked?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Color, Theme } from '../../theme/types';
|
|
2
2
|
import { CheckboxProps } from '.';
|
|
3
3
|
import { TextProps } from '../text';
|
|
4
|
-
export declare const getCheckboxStyle: ({ color, theme }: {
|
|
5
|
-
color: Color;
|
|
4
|
+
export declare const getCheckboxStyle: ({ color, theme, }: {
|
|
5
|
+
color: Color | string;
|
|
6
6
|
theme: Theme;
|
|
7
7
|
}) => {
|
|
8
8
|
borderColor: string;
|
|
@@ -2,8 +2,8 @@ import { Color, Radius, Variant } from '../../theme/types';
|
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { MarginProps, PaddingProps } from '../common/types';
|
|
4
4
|
export type ChipStyleProps = {
|
|
5
|
-
color
|
|
6
|
-
variant
|
|
5
|
+
color?: Color | string;
|
|
6
|
+
variant?: Variant;
|
|
7
7
|
size?: "sm" | "md" | "lg";
|
|
8
8
|
bgcolor?: string;
|
|
9
9
|
radius?: Radius;
|
|
@@ -20,8 +20,8 @@ export declare const Chip: React.ForwardRefExoticComponent<{
|
|
|
20
20
|
startIcon?: React.ReactNode;
|
|
21
21
|
endIcon?: React.ReactNode;
|
|
22
22
|
} & {
|
|
23
|
-
color
|
|
24
|
-
variant
|
|
23
|
+
color?: Color | string;
|
|
24
|
+
variant?: Variant;
|
|
25
25
|
size?: "sm" | "md" | "lg";
|
|
26
26
|
bgcolor?: string;
|
|
27
27
|
radius?: Radius;
|
|
@@ -17,7 +17,7 @@ export type FlexProps = {
|
|
|
17
17
|
minWidth?: string;
|
|
18
18
|
minheight?: string;
|
|
19
19
|
hoverstyle?: Styles<object>;
|
|
20
|
-
} & MarginProps & PaddingProps & React.HTMLAttributes<HTMLDivElement>;
|
|
20
|
+
} & MarginProps & PaddingProps & Omit<React.HTMLAttributes<HTMLDivElement>, "content">;
|
|
21
21
|
export declare const Flex: import('react').ForwardRefExoticComponent<{
|
|
22
22
|
elevation?: Elevation;
|
|
23
23
|
direction?: FlexDirection;
|
|
@@ -30,4 +30,4 @@ export declare const Flex: import('react').ForwardRefExoticComponent<{
|
|
|
30
30
|
minWidth?: string;
|
|
31
31
|
minheight?: string;
|
|
32
32
|
hoverstyle?: Styles<object>;
|
|
33
|
-
} & MarginProps & PaddingProps & import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
33
|
+
} & MarginProps & PaddingProps & Omit<import('react').HTMLAttributes<HTMLDivElement>, "content"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Color } from '../../theme/types';
|
|
2
2
|
import { MarginProps, PaddingProps } from '../common/types';
|
|
3
|
+
import { TextProps } from '../text';
|
|
3
4
|
export type InputProps = {
|
|
4
5
|
error?: string;
|
|
5
6
|
label?: string;
|
|
6
|
-
color?: Color;
|
|
7
|
+
color?: Color | string;
|
|
7
8
|
required?: boolean;
|
|
9
|
+
labelProps?: TextProps;
|
|
10
|
+
containerStyle?: React.CSSProperties;
|
|
8
11
|
w?: string;
|
|
9
12
|
h?: string;
|
|
10
13
|
errorStyle?: React.CSSProperties;
|
|
@@ -12,8 +15,10 @@ export type InputProps = {
|
|
|
12
15
|
export declare const Input: import('react').ForwardRefExoticComponent<{
|
|
13
16
|
error?: string;
|
|
14
17
|
label?: string;
|
|
15
|
-
color?: Color;
|
|
18
|
+
color?: Color | string;
|
|
16
19
|
required?: boolean;
|
|
20
|
+
labelProps?: TextProps;
|
|
21
|
+
containerStyle?: React.CSSProperties;
|
|
17
22
|
w?: string;
|
|
18
23
|
h?: string;
|
|
19
24
|
errorStyle?: React.CSSProperties;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { TitleProps } from '../title';
|
|
2
3
|
export type ModalProps = {
|
|
3
4
|
isOpen: boolean;
|
|
4
5
|
fullScreen?: boolean;
|
|
5
6
|
title?: React.ReactNode;
|
|
7
|
+
titleProps?: Omit<TitleProps, "children">;
|
|
6
8
|
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
7
9
|
children?: React.ReactNode;
|
|
8
10
|
footer?: React.ReactNode;
|
|
@@ -11,11 +13,13 @@ export type ModalProps = {
|
|
|
11
13
|
closeOnClickOutside?: boolean;
|
|
12
14
|
bodyStyle?: React.CSSProperties;
|
|
13
15
|
close?: React.ReactNode;
|
|
16
|
+
closeStyle?: React.CSSProperties;
|
|
14
17
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
15
18
|
export declare const Modal: React.ForwardRefExoticComponent<{
|
|
16
19
|
isOpen: boolean;
|
|
17
20
|
fullScreen?: boolean;
|
|
18
21
|
title?: React.ReactNode;
|
|
22
|
+
titleProps?: Omit<TitleProps, "children">;
|
|
19
23
|
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
20
24
|
children?: React.ReactNode;
|
|
21
25
|
footer?: React.ReactNode;
|
|
@@ -24,4 +28,5 @@ export declare const Modal: React.ForwardRefExoticComponent<{
|
|
|
24
28
|
closeOnClickOutside?: boolean;
|
|
25
29
|
bodyStyle?: React.CSSProperties;
|
|
26
30
|
close?: React.ReactNode;
|
|
31
|
+
closeStyle?: React.CSSProperties;
|
|
27
32
|
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -2,7 +2,7 @@ import { Color, Radius } from '../../theme/types';
|
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { MarginProps, PaddingProps } from '../common/types';
|
|
4
4
|
export type PopoverStyleProps = {
|
|
5
|
-
color: Color;
|
|
5
|
+
color: Color | string;
|
|
6
6
|
content: React.ReactNode;
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
visible?: boolean;
|
|
@@ -12,10 +12,10 @@ export type PopoverStyleProps = {
|
|
|
12
12
|
bgcolor?: string;
|
|
13
13
|
arrowcolor?: string;
|
|
14
14
|
radius?: Radius;
|
|
15
|
-
} & MarginProps & PaddingProps & React.HTMLAttributes<HTMLDivElement>;
|
|
15
|
+
} & MarginProps & PaddingProps & Omit<React.HTMLAttributes<HTMLDivElement>, "content">;
|
|
16
16
|
export type PopoverProps = {} & PopoverStyleProps;
|
|
17
17
|
export declare const Popover: React.ForwardRefExoticComponent<{
|
|
18
|
-
color: Color;
|
|
18
|
+
color: Color | string;
|
|
19
19
|
content: React.ReactNode;
|
|
20
20
|
children: React.ReactNode;
|
|
21
21
|
visible?: boolean;
|
|
@@ -25,4 +25,4 @@ export declare const Popover: React.ForwardRefExoticComponent<{
|
|
|
25
25
|
bgcolor?: string;
|
|
26
26
|
arrowcolor?: string;
|
|
27
27
|
radius?: Radius;
|
|
28
|
-
} & MarginProps & PaddingProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
} & MarginProps & PaddingProps & Omit<React.HTMLAttributes<HTMLDivElement>, "content"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -11,7 +11,7 @@ export declare const StyledPopover: import('styled-components/dist/types').IStyl
|
|
|
11
11
|
minWidth?: string;
|
|
12
12
|
minheight?: string;
|
|
13
13
|
hoverstyle?: import('styled-components/dist/types').Styles<object>;
|
|
14
|
-
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>, Omit<PopoverStyleProps, "content" | "children" | "body">>> & string & Omit<import('react').ForwardRefExoticComponent<{
|
|
14
|
+
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & Omit<import('react').HTMLAttributes<HTMLDivElement>, "content"> & import('react').RefAttributes<HTMLDivElement>, Omit<PopoverStyleProps, "content" | "children" | "body">>> & string & Omit<import('react').ForwardRefExoticComponent<{
|
|
15
15
|
elevation?: import('../..').Elevation;
|
|
16
16
|
direction?: import('../flex').FlexDirection;
|
|
17
17
|
gap?: string | number;
|
|
@@ -23,4 +23,4 @@ export declare const StyledPopover: import('styled-components/dist/types').IStyl
|
|
|
23
23
|
minWidth?: string;
|
|
24
24
|
minheight?: string;
|
|
25
25
|
hoverstyle?: import('styled-components/dist/types').Styles<object>;
|
|
26
|
-
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
26
|
+
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & Omit<import('react').HTMLAttributes<HTMLDivElement>, "content"> & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TextProps } from '../text';
|
|
1
2
|
export type SelectOption = {
|
|
2
3
|
key: string;
|
|
3
4
|
label: string;
|
|
@@ -10,6 +11,7 @@ export type SelectProps = {
|
|
|
10
11
|
onChange?: (value: SelectOption) => void;
|
|
11
12
|
label?: string;
|
|
12
13
|
required?: boolean;
|
|
14
|
+
labelProps?: TextProps;
|
|
13
15
|
placeholder?: string;
|
|
14
16
|
orientation?: "up" | "down";
|
|
15
17
|
hideScrollbar?: boolean;
|
|
@@ -17,7 +19,7 @@ export type SelectProps = {
|
|
|
17
19
|
option?: SelectOption;
|
|
18
20
|
handleChange?: (option: SelectOption) => void;
|
|
19
21
|
}) => React.ReactNode;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
triggerStyle?: React.CSSProperties;
|
|
23
|
+
dropdownStyle?: React.CSSProperties;
|
|
22
24
|
};
|
|
23
25
|
export declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -2,12 +2,12 @@ import { Color } from '../../theme/types';
|
|
|
2
2
|
export type SwitchProps = {
|
|
3
3
|
value?: boolean;
|
|
4
4
|
size?: number;
|
|
5
|
-
color?: Color;
|
|
5
|
+
color?: Color | string;
|
|
6
6
|
onChange?: (isOn: boolean) => void;
|
|
7
7
|
} & Omit<React.SVGAttributes<SVGSVGElement>, "onChange">;
|
|
8
8
|
export declare const Switch: import('react').ForwardRefExoticComponent<{
|
|
9
9
|
value?: boolean;
|
|
10
10
|
size?: number;
|
|
11
|
-
color?: Color;
|
|
11
|
+
color?: Color | string;
|
|
12
12
|
onChange?: (isOn: boolean) => void;
|
|
13
13
|
} & Omit<import('react').SVGAttributes<SVGSVGElement>, "onChange"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Color } from '../../theme/types';
|
|
1
2
|
import { MarginProps, PaddingProps } from '../common/types';
|
|
2
3
|
export type TextProps = {
|
|
3
4
|
weight?: "regular" | "medium" | "semibold" | "bold";
|
|
5
|
+
color?: Color | string;
|
|
4
6
|
size?: "8" | "10" | "12" | "14" | "15" | "16" | "18" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96";
|
|
5
7
|
width?: string;
|
|
6
8
|
height?: string;
|
|
@@ -12,6 +14,7 @@ export type TextProps = {
|
|
|
12
14
|
} & MarginProps & PaddingProps & React.HTMLAttributes<HTMLParagraphElement>;
|
|
13
15
|
export declare const Text: import('react').ForwardRefExoticComponent<{
|
|
14
16
|
weight?: "regular" | "medium" | "semibold" | "bold";
|
|
17
|
+
color?: Color | string;
|
|
15
18
|
size?: "8" | "10" | "12" | "14" | "15" | "16" | "18" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96";
|
|
16
19
|
width?: string;
|
|
17
20
|
height?: string;
|
|
@@ -4,6 +4,7 @@ export declare const getFontSize: (size: TextProps["size"], breakpoint: Breakpoi
|
|
|
4
4
|
export declare const getFontWeight: (weight: TextProps["weight"]) => "400" | "500" | "600" | "700";
|
|
5
5
|
export declare const StyledText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
6
6
|
weight?: "regular" | "medium" | "semibold" | "bold";
|
|
7
|
+
color?: import('../..').Color | string;
|
|
7
8
|
size?: "8" | "10" | "12" | "14" | "15" | "16" | "18" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96";
|
|
8
9
|
width?: string;
|
|
9
10
|
height?: string;
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import { Color } from '../../theme/types';
|
|
2
2
|
import { MarginProps, PaddingProps } from '../common/types';
|
|
3
|
+
import { TextProps } from '../text';
|
|
3
4
|
export type TextAreaProps = {
|
|
4
|
-
color?: Color;
|
|
5
|
+
color?: Color | string;
|
|
5
6
|
error?: string;
|
|
7
|
+
errorStyle?: React.CSSProperties;
|
|
8
|
+
label?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
labelProps?: TextProps;
|
|
11
|
+
containerStyle?: React.CSSProperties;
|
|
6
12
|
w?: string;
|
|
7
13
|
h?: string;
|
|
8
14
|
} & MarginProps & PaddingProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
9
15
|
export declare const TextArea: import('react').ForwardRefExoticComponent<{
|
|
10
|
-
color?: Color;
|
|
16
|
+
color?: Color | string;
|
|
11
17
|
error?: string;
|
|
18
|
+
errorStyle?: React.CSSProperties;
|
|
19
|
+
label?: string;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
labelProps?: TextProps;
|
|
22
|
+
containerStyle?: React.CSSProperties;
|
|
12
23
|
w?: string;
|
|
13
24
|
h?: string;
|
|
14
25
|
} & MarginProps & PaddingProps & import('react').TextareaHTMLAttributes<HTMLTextAreaElement> & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Color } from '../../theme/types';
|
|
1
2
|
import { MarginProps, PaddingProps } from '../common/types';
|
|
2
3
|
export type TitleProps = {
|
|
3
4
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
5
|
weight?: "regular" | "medium" | "semibold" | "bold";
|
|
6
|
+
color?: Color | string;
|
|
5
7
|
} & MarginProps & PaddingProps & React.HTMLAttributes<HTMLHeadingElement>;
|
|
6
|
-
export declare const Title: ({ children, ...props }: TitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Title: ({ children, color, ...props }: TitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,6 +2,7 @@ import { Breakpoint } from '../../hooks/use-responsive';
|
|
|
2
2
|
export declare const StyledTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
3
3
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
4
|
weight?: "regular" | "medium" | "semibold" | "bold";
|
|
5
|
+
color?: import('../..').Color | string;
|
|
5
6
|
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & import('react').HTMLAttributes<HTMLHeadingElement> & {
|
|
6
7
|
breakpoint: Breakpoint;
|
|
7
8
|
}>> & string;
|
|
@@ -11,7 +11,7 @@ export declare const StyledToast: import('styled-components/dist/types').IStyled
|
|
|
11
11
|
minWidth?: string;
|
|
12
12
|
minheight?: string;
|
|
13
13
|
hoverstyle?: import('styled-components/dist/types').Styles<object>;
|
|
14
|
-
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>, Omit<ToastProps, "id">>> & string & Omit<import('react').ForwardRefExoticComponent<{
|
|
14
|
+
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & Omit<import('react').HTMLAttributes<HTMLDivElement>, "content"> & import('react').RefAttributes<HTMLDivElement>, Omit<ToastProps, "id">>> & string & Omit<import('react').ForwardRefExoticComponent<{
|
|
15
15
|
elevation?: import('../..').Elevation;
|
|
16
16
|
direction?: import('../flex').FlexDirection;
|
|
17
17
|
gap?: string | number;
|
|
@@ -23,4 +23,4 @@ export declare const StyledToast: import('styled-components/dist/types').IStyled
|
|
|
23
23
|
minWidth?: string;
|
|
24
24
|
minheight?: string;
|
|
25
25
|
hoverstyle?: import('styled-components/dist/types').Styles<object>;
|
|
26
|
-
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
26
|
+
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & Omit<import('react').HTMLAttributes<HTMLDivElement>, "content"> & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Color, Radius, Variant } from '../../theme/types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { MarginProps, PaddingProps } from '../common/types';
|
|
4
|
+
export type TooltipProps = {
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
variant?: Variant;
|
|
8
|
+
color?: Color | string;
|
|
9
|
+
placement?: "left" | "right" | "top" | "bottom";
|
|
10
|
+
gap?: number;
|
|
11
|
+
bgcolor?: string;
|
|
12
|
+
radius?: Radius;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
} & MarginProps & PaddingProps & React.HTMLAttributes<HTMLDivElement>;
|
|
15
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<{
|
|
16
|
+
label: React.ReactNode;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
variant?: Variant;
|
|
19
|
+
color?: Color | string;
|
|
20
|
+
placement?: "left" | "right" | "top" | "bottom";
|
|
21
|
+
gap?: number;
|
|
22
|
+
bgcolor?: string;
|
|
23
|
+
radius?: Radius;
|
|
24
|
+
zIndex?: number;
|
|
25
|
+
} & MarginProps & PaddingProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Color, Radius, Variant } from '../../theme/types';
|
|
2
|
+
export type StyledTooltipProps = {
|
|
3
|
+
color: Color | string;
|
|
4
|
+
variant: Variant;
|
|
5
|
+
bgcolor?: string;
|
|
6
|
+
radius?: Radius;
|
|
7
|
+
};
|
|
8
|
+
export declare const StyledTooltip: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<{
|
|
9
|
+
elevation?: import('../../theme/types').Elevation;
|
|
10
|
+
direction?: import('../flex').FlexDirection;
|
|
11
|
+
gap?: string | number;
|
|
12
|
+
align?: import('../flex').FlexAlign;
|
|
13
|
+
justify?: import('../flex').FlexJustify;
|
|
14
|
+
wrap?: import('../flex').FlexWrap;
|
|
15
|
+
width?: string;
|
|
16
|
+
height?: string;
|
|
17
|
+
minWidth?: string;
|
|
18
|
+
minheight?: string;
|
|
19
|
+
hoverstyle?: import('styled-components/dist/types').Styles<object>;
|
|
20
|
+
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & Omit<import('react').HTMLAttributes<HTMLDivElement>, "content"> & import('react').RefAttributes<HTMLDivElement>, StyledTooltipProps>> & string & Omit<import('react').ForwardRefExoticComponent<{
|
|
21
|
+
elevation?: import('../../theme/types').Elevation;
|
|
22
|
+
direction?: import('../flex').FlexDirection;
|
|
23
|
+
gap?: string | number;
|
|
24
|
+
align?: import('../flex').FlexAlign;
|
|
25
|
+
justify?: import('../flex').FlexJustify;
|
|
26
|
+
wrap?: import('../flex').FlexWrap;
|
|
27
|
+
width?: string;
|
|
28
|
+
height?: string;
|
|
29
|
+
minWidth?: string;
|
|
30
|
+
minheight?: string;
|
|
31
|
+
hoverstyle?: import('styled-components/dist/types').Styles<object>;
|
|
32
|
+
} & import('../common/types').MarginProps & import('../common/types').PaddingProps & Omit<import('react').HTMLAttributes<HTMLDivElement>, "content"> & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getRecursiveBgColor: (element: HTMLElement) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Color, ColorPalette, Theme } from '../../theme/types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolve a `Color` token (e.g. "primary") or any raw color string
|
|
4
|
+
* (hex, rgb, hsl, …) to a `ColorPalette` object.
|
|
5
|
+
*
|
|
6
|
+
* - If `color` is one of the four theme tokens it reads from `theme.palette`.
|
|
7
|
+
* - Otherwise it generates a palette on the fly via `getPalette`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveColor(color: Color | string, theme: Theme): ColorPalette;
|