@julien-wiegandt/open-ui 0.1.65 → 0.1.67
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 +1 -1
- package/dist/components/icons/copy/index.d.ts +16 -0
- package/dist/components/icons/dots/index.d.ts +14 -0
- package/dist/components/icons/index.d.ts +4 -0
- package/dist/components/icons/send-horizontal/index.d.ts +14 -0
- package/dist/components/icons/sparkles/index.d.ts +14 -0
- package/dist/context/theme.d.ts +4 -1
- package/dist/open-ui.js +1456 -1121
- package/dist/open-ui.umd.cjs +44 -43
- package/dist/theme/create-theme.d.ts +5 -4
- package/dist/theme/types.d.ts +8 -6
- package/dist/views/theme/builder/constants.d.ts +15 -0
- package/dist/views/theme/builder/index.d.ts +1 -0
- package/package.json +6 -1
|
@@ -2,7 +2,7 @@ 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
|
import { TextProps } from '../text';
|
|
5
|
-
export type Icon = "bell" | "check" | "hamburger" | "heart" | "sync";
|
|
5
|
+
export type Icon = "bell" | "check" | "hamburger" | "heart" | "sync" | "sparkles" | "dots" | "send" | "copy";
|
|
6
6
|
export type ButtonProps = {
|
|
7
7
|
color: Color;
|
|
8
8
|
variant: Variant;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type CopyIconProps = {
|
|
2
|
+
isCopied?: boolean;
|
|
3
|
+
size?: number;
|
|
4
|
+
animated?: boolean;
|
|
5
|
+
strokeWidth?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
} & React.SVGAttributes<SVGSVGElement>;
|
|
9
|
+
export declare const CopyIcon: import('react').ForwardRefExoticComponent<{
|
|
10
|
+
isCopied?: boolean;
|
|
11
|
+
size?: number;
|
|
12
|
+
animated?: boolean;
|
|
13
|
+
strokeWidth?: number;
|
|
14
|
+
color?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
} & import('react').SVGAttributes<SVGSVGElement> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type DotsIconProps = {
|
|
2
|
+
size?: number;
|
|
3
|
+
animated?: boolean;
|
|
4
|
+
strokeWidth?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
} & React.SVGAttributes<SVGSVGElement>;
|
|
8
|
+
export declare const DotsIcon: import('react').ForwardRefExoticComponent<{
|
|
9
|
+
size?: number;
|
|
10
|
+
animated?: boolean;
|
|
11
|
+
strokeWidth?: number;
|
|
12
|
+
color?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
} & import('react').SVGAttributes<SVGSVGElement> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SendHorizontalIconProps = {
|
|
2
|
+
size?: number;
|
|
3
|
+
animated?: boolean;
|
|
4
|
+
strokeWidth?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
} & React.SVGAttributes<SVGSVGElement>;
|
|
8
|
+
export declare const SendHorizontalIcon: import('react').ForwardRefExoticComponent<{
|
|
9
|
+
size?: number;
|
|
10
|
+
animated?: boolean;
|
|
11
|
+
strokeWidth?: number;
|
|
12
|
+
color?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
} & import('react').SVGAttributes<SVGSVGElement> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SparklesIconProps = {
|
|
2
|
+
size?: number;
|
|
3
|
+
animated?: boolean;
|
|
4
|
+
strokeWidth?: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
} & React.SVGAttributes<SVGSVGElement>;
|
|
8
|
+
export declare const SparklesIcon: import('react').ForwardRefExoticComponent<{
|
|
9
|
+
size?: number;
|
|
10
|
+
animated?: boolean;
|
|
11
|
+
strokeWidth?: number;
|
|
12
|
+
color?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
} & import('react').SVGAttributes<SVGSVGElement> & import('react').RefAttributes<SVGSVGElement>>;
|
package/dist/context/theme.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Theme } from '../theme/types';
|
|
2
2
|
export type IThemeContext = {
|
|
3
3
|
theme: Theme;
|
|
4
|
-
setTheme: (index
|
|
4
|
+
setTheme: ({ index, theme }: {
|
|
5
|
+
index?: number;
|
|
6
|
+
theme?: Theme;
|
|
7
|
+
}) => void;
|
|
5
8
|
};
|
|
6
9
|
export declare const ThemeContext: import('react').Context<IThemeContext>;
|
|
7
10
|
export declare const ThemeContextProvider: (params: {
|