@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.
Files changed (36) hide show
  1. package/dist/components/button/index.d.ts +6 -4
  2. package/dist/components/button/style.d.ts +1 -1
  3. package/dist/components/checkbox/index.d.ts +2 -2
  4. package/dist/components/checkbox/style.d.ts +2 -2
  5. package/dist/components/chip/index.d.ts +4 -4
  6. package/dist/components/flex/index.d.ts +2 -2
  7. package/dist/components/input/index.d.ts +7 -2
  8. package/dist/components/modal/index.d.ts +5 -0
  9. package/dist/components/popover/index.d.ts +4 -4
  10. package/dist/components/popover/style.d.ts +2 -2
  11. package/dist/components/progress-bar/index.d.ts +1 -1
  12. package/dist/components/select/index.d.ts +4 -2
  13. package/dist/components/skeleton/index.d.ts +2 -1
  14. package/dist/components/switch/index.d.ts +2 -2
  15. package/dist/components/text/index.d.ts +3 -0
  16. package/dist/components/text/styled.d.ts +1 -0
  17. package/dist/components/textarea/index.d.ts +13 -2
  18. package/dist/components/title/index.d.ts +3 -1
  19. package/dist/components/title/style.d.ts +1 -0
  20. package/dist/components/toast/index.d.ts +1 -1
  21. package/dist/components/toast/style.d.ts +2 -2
  22. package/dist/components/tooltip/index.d.ts +25 -0
  23. package/dist/components/tooltip/style.d.ts +32 -0
  24. package/dist/components/utils/get-recursive-bg-color.d.ts +1 -0
  25. package/dist/components/utils/resolve-color.d.ts +9 -0
  26. package/dist/hooks/use-component-theme.d.ts +2 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/open-ui.js +3329 -2885
  29. package/dist/open-ui.umd.cjs +116 -82
  30. package/dist/theme/create-theme.d.ts +2 -0
  31. package/dist/theme/index.d.ts +1 -0
  32. package/dist/theme/types.d.ts +20 -0
  33. package/dist/theme/utils/colors.d.ts +21 -1
  34. package/dist/views/images/index.d.ts +1 -0
  35. package/dist/views/tooltips/index.d.ts +1 -0
  36. 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: Color;
8
- variant: 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: Color;
26
- variant: 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: 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: 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: Color;
6
- variant: 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: Color;
24
- variant: 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,6 +1,6 @@
1
1
  import { Color } from '../../theme/types';
2
2
  export type ProgressBarProps = {
3
- color: Color;
3
+ color: Color | string;
4
4
  value: number;
5
5
  animationDurationInSeconds?: number;
6
6
  h?: string;
@@ -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
- selectOptionStyle?: React.CSSProperties;
21
- optionContainerStyle?: React.CSSProperties;
22
+ triggerStyle?: React.CSSProperties;
23
+ dropdownStyle?: React.CSSProperties;
22
24
  };
23
25
  export declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,9 @@
1
+ import { Color } from '../../theme/types';
1
2
  export type SkeletonProps = {
2
3
  width?: string;
3
4
  height?: string;
4
5
  radius?: string;
5
- color?: string;
6
+ color?: Color | string;
6
7
  wrapperStyle?: React.CSSProperties;
7
8
  shimmerStyle?: React.CSSProperties;
8
9
  };
@@ -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;
@@ -6,7 +6,7 @@ import { FlexProps } from '../flex';
6
6
  */
7
7
  export type ToastProps = {
8
8
  id: string;
9
- color?: Color;
9
+ color?: Color | string;
10
10
  title?: string;
11
11
  icon?: React.ReactNode;
12
12
  duration?: number;
@@ -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;
@@ -0,0 +1,2 @@
1
+ import { Theme } from '../theme/types';
2
+ export declare const useComponentTheme: <T extends Record<string, any>>(componentName: keyof NonNullable<Theme["components"]>, props: T) => T;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './components/button';
2
+ export * from './components/checkbox';
2
3
  export * from './components/chip';
3
4
  export * from './components/divider';
4
5
  export * from './components/flex';