@julien-wiegandt/open-ui 0.1.25 → 0.1.26
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 +7 -6
- package/dist/components/icons/bell/index.d.ts +16 -0
- package/dist/components/icons/hamburger/index.d.ts +14 -0
- package/dist/components/icons/heart/index.d.ts +16 -0
- package/dist/components/icons/index.d.ts +3 -0
- package/dist/components/select/index.d.ts +3 -2
- package/dist/components/skeleton/index.d.ts +6 -0
- package/dist/components/skeleton/style.d.ts +3 -0
- package/dist/components/switch/index.d.ts +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/open-ui.js +2755 -2482
- package/dist/open-ui.umd.cjs +120 -101
- package/dist/views/skeletons/index.d.ts +1 -0
- package/dist/views/switchs/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,13 +2,14 @@ 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";
|
|
5
6
|
export type ButtonProps = {
|
|
6
7
|
color: Color;
|
|
7
8
|
variant: Variant;
|
|
8
9
|
label?: string;
|
|
9
|
-
starticon?: React.ReactNode;
|
|
10
|
-
endicon?: React.ReactNode;
|
|
11
|
-
|
|
10
|
+
starticon?: React.ReactNode | Icon;
|
|
11
|
+
endicon?: React.ReactNode | Icon;
|
|
12
|
+
endanimation?: boolean;
|
|
12
13
|
size?: "sm" | "md" | "lg";
|
|
13
14
|
bgcolor?: string;
|
|
14
15
|
radius?: Radius;
|
|
@@ -24,9 +25,9 @@ export declare const Button: React.ForwardRefExoticComponent<{
|
|
|
24
25
|
color: Color;
|
|
25
26
|
variant: Variant;
|
|
26
27
|
label?: string;
|
|
27
|
-
starticon?: React.ReactNode;
|
|
28
|
-
endicon?: React.ReactNode;
|
|
29
|
-
|
|
28
|
+
starticon?: React.ReactNode | Icon;
|
|
29
|
+
endicon?: React.ReactNode | Icon;
|
|
30
|
+
endanimation?: boolean;
|
|
30
31
|
size?: "sm" | "md" | "lg";
|
|
31
32
|
bgcolor?: string;
|
|
32
33
|
radius?: Radius;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type BellIconProps = {
|
|
2
|
+
hasNotification: 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 BellIcon: import('react').ForwardRefExoticComponent<{
|
|
10
|
+
hasNotification: 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 HamburgerIconProps = {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
size?: number;
|
|
4
|
+
animated?: boolean;
|
|
5
|
+
strokeWidth?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
} & React.SVGAttributes<SVGSVGElement>;
|
|
8
|
+
export declare const HamburgerIcon: import('react').ForwardRefExoticComponent<{
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
size?: number;
|
|
11
|
+
animated?: boolean;
|
|
12
|
+
strokeWidth?: number;
|
|
13
|
+
color?: string;
|
|
14
|
+
} & import('react').SVGAttributes<SVGSVGElement> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type HeartIconProps = {
|
|
2
|
+
isLiked: 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 HeartIcon: import('react').ForwardRefExoticComponent<{
|
|
10
|
+
isLiked: 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>>;
|
|
@@ -6,13 +6,14 @@ export type SelectOption = {
|
|
|
6
6
|
export type SelectProps = {
|
|
7
7
|
options: Array<SelectOption>;
|
|
8
8
|
initialValue?: SelectOption;
|
|
9
|
+
value?: SelectOption;
|
|
9
10
|
onChange?: (value: SelectOption) => void;
|
|
10
11
|
label?: string;
|
|
11
12
|
required?: boolean;
|
|
12
13
|
placeholder?: string;
|
|
13
14
|
CustomOption?: (props: {
|
|
14
|
-
option
|
|
15
|
-
handleChange
|
|
15
|
+
option?: SelectOption;
|
|
16
|
+
handleChange?: (option: SelectOption) => void;
|
|
16
17
|
}) => React.ReactNode;
|
|
17
18
|
};
|
|
18
19
|
export declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SkeletonProps } from '.';
|
|
2
|
+
export declare const SkeletonWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SkeletonProps>> & string;
|
|
3
|
+
export declare const ShimmerEffect: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Color } from '../../theme/types';
|
|
2
|
+
export type SwitchProps = {
|
|
3
|
+
value?: boolean;
|
|
4
|
+
size?: number;
|
|
5
|
+
color?: Color;
|
|
6
|
+
onChange?: (isOn: boolean) => void;
|
|
7
|
+
} & Omit<React.SVGAttributes<SVGSVGElement>, "onChange">;
|
|
8
|
+
export declare const Switch: import('react').ForwardRefExoticComponent<{
|
|
9
|
+
value?: boolean;
|
|
10
|
+
size?: number;
|
|
11
|
+
color?: Color;
|
|
12
|
+
onChange?: (isOn: boolean) => void;
|
|
13
|
+
} & Omit<import('react').SVGAttributes<SVGSVGElement>, "onChange"> & import('react').RefAttributes<SVGSVGElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export * from './components/input';
|
|
|
7
7
|
export * from './components/modal';
|
|
8
8
|
export * from './components/progress-bar';
|
|
9
9
|
export * from './components/select';
|
|
10
|
+
export * from './components/skeleton';
|
|
11
|
+
export * from './components/switch';
|
|
10
12
|
export * from './components/text';
|
|
11
13
|
export * from './components/textarea';
|
|
12
14
|
export * from './components/title';
|