@julien-wiegandt/open-ui 0.1.60 → 0.1.62
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/checkbox/index.d.ts +28 -0
- package/dist/components/checkbox/style.d.ts +28 -0
- package/dist/components/icons/index.d.ts +1 -0
- package/dist/components/icons/sync/index.d.ts +14 -0
- package/dist/components/modal/index.d.ts +2 -2
- package/dist/open-ui.js +974 -883
- package/dist/open-ui.umd.cjs +52 -42
- package/dist/views/checkboxes/index.d.ts +1 -0
- package/package.json +1 -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";
|
|
5
|
+
export type Icon = "bell" | "check" | "hamburger" | "heart" | "sync";
|
|
6
6
|
export type ButtonProps = {
|
|
7
7
|
color: Color;
|
|
8
8
|
variant: Variant;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Color, Radius } from '../../theme/types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { MarginProps, PaddingProps } from '../common/types';
|
|
4
|
+
import { TextProps } from '../text';
|
|
5
|
+
export type CheckboxProps = {
|
|
6
|
+
color: Color;
|
|
7
|
+
label?: string;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
onChange?: (checked: boolean) => void;
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
radius?: Radius;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
labelProps?: TextProps;
|
|
15
|
+
labelPosition?: "left" | "right";
|
|
16
|
+
} & MarginProps & PaddingProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange">;
|
|
17
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<{
|
|
18
|
+
color: Color;
|
|
19
|
+
label?: string;
|
|
20
|
+
checked?: boolean;
|
|
21
|
+
defaultChecked?: boolean;
|
|
22
|
+
onChange?: (checked: boolean) => void;
|
|
23
|
+
size?: "sm" | "md" | "lg";
|
|
24
|
+
radius?: Radius;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
labelProps?: TextProps;
|
|
27
|
+
labelPosition?: "left" | "right";
|
|
28
|
+
} & MarginProps & PaddingProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Color, Theme } from '../../theme/types';
|
|
2
|
+
import { CheckboxProps } from '.';
|
|
3
|
+
import { TextProps } from '../text';
|
|
4
|
+
export declare const getCheckboxStyle: ({ color, theme }: {
|
|
5
|
+
color: Color;
|
|
6
|
+
theme: Theme;
|
|
7
|
+
}) => {
|
|
8
|
+
borderColor: string;
|
|
9
|
+
bgColor: string;
|
|
10
|
+
checkColor: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const sizeMap: Record<NonNullable<CheckboxProps["size"]>, {
|
|
13
|
+
size: number;
|
|
14
|
+
fontSize: TextProps["size"];
|
|
15
|
+
iconSize: number;
|
|
16
|
+
gap: string;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const StyledCheckboxContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, Pick<CheckboxProps, "disabled"> & {
|
|
19
|
+
m?: any;
|
|
20
|
+
mb?: any;
|
|
21
|
+
ml?: any;
|
|
22
|
+
mr?: any;
|
|
23
|
+
mt?: any;
|
|
24
|
+
mx?: any;
|
|
25
|
+
my?: any;
|
|
26
|
+
gap?: string;
|
|
27
|
+
}>> & string;
|
|
28
|
+
export declare const StyledCheckbox: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<CheckboxProps, "color" | "size" | "disabled" | "radius" | "checked">>> & string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SyncIconProps = {
|
|
2
|
+
isSyncing?: boolean;
|
|
3
|
+
size?: number;
|
|
4
|
+
animated?: boolean;
|
|
5
|
+
strokeWidth?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
} & React.SVGAttributes<SVGSVGElement>;
|
|
8
|
+
export declare const SyncIcon: import('react').ForwardRefExoticComponent<{
|
|
9
|
+
isSyncing?: boolean;
|
|
10
|
+
size?: number;
|
|
11
|
+
animated?: boolean;
|
|
12
|
+
strokeWidth?: number;
|
|
13
|
+
color?: string;
|
|
14
|
+
} & import('react').SVGAttributes<SVGSVGElement> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -3,7 +3,7 @@ export type ModalProps = {
|
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
fullScreen?: boolean;
|
|
5
5
|
title?: React.ReactNode;
|
|
6
|
-
size?: "
|
|
6
|
+
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
footer?: React.ReactNode;
|
|
9
9
|
style?: React.CSSProperties;
|
|
@@ -14,7 +14,7 @@ export declare const Modal: React.ForwardRefExoticComponent<{
|
|
|
14
14
|
isOpen: boolean;
|
|
15
15
|
fullScreen?: boolean;
|
|
16
16
|
title?: React.ReactNode;
|
|
17
|
-
size?: "
|
|
17
|
+
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
footer?: React.ReactNode;
|
|
20
20
|
style?: React.CSSProperties;
|