componenteszw-package 1.0.6 → 1.0.9
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/Blur.d.ts +9 -0
- package/dist/Card.d.ts +7 -0
- package/dist/Modal.d.ts +21 -0
- package/dist/button.d.ts +18 -0
- package/dist/checkbox.d.ts +10 -0
- package/dist/file.d.ts +8 -0
- package/dist/fileItem.d.ts +19 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1921 -0
- package/dist/input.d.ts +19 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/textarea.d.ts +16 -0
- package/package.json +18 -6
package/dist/Blur.d.ts
ADDED
package/dist/Card.d.ts
ADDED
package/dist/Modal.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ModalVariant = "success" | "error" | "question" | "content";
|
|
3
|
+
type ModalProps = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
variant?: ModalVariant;
|
|
7
|
+
title: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
primaryAction?: {
|
|
11
|
+
text: string;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
};
|
|
14
|
+
secondaryAction?: {
|
|
15
|
+
text: string;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
};
|
|
18
|
+
size?: "small" | "medium" | "large";
|
|
19
|
+
};
|
|
20
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
21
|
+
export {};
|
package/dist/button.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ButtonVariant = "primary" | "secondary" | "tertiary" | "success" | "warning" | "destructive";
|
|
3
|
+
type ButtonSize = "small" | "medium";
|
|
4
|
+
type ButtonState = "default" | "hover" | "focus" | "disabled";
|
|
5
|
+
type ButtonProps = {
|
|
6
|
+
text?: string;
|
|
7
|
+
iconLeft?: React.ReactNode;
|
|
8
|
+
iconRight?: React.ReactNode;
|
|
9
|
+
variant?: ButtonVariant;
|
|
10
|
+
size?: ButtonSize;
|
|
11
|
+
state?: ButtonState;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
type?: "button" | "submit" | "reset";
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const Button: ({ text, iconLeft, iconRight, variant, size, state, disabled, onClick, type, className }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type CheckboxProps = {
|
|
2
|
+
label?: string;
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
indeterminate?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
hintText?: string;
|
|
7
|
+
onChange?: (checked: boolean) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare function Checkbox({ label, checked, indeterminate, disabled, hintText, onChange, }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/file.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type FileUploadProps = {
|
|
2
|
+
multiple?: boolean;
|
|
3
|
+
maxSize?: number;
|
|
4
|
+
acceptedFormats?: string[];
|
|
5
|
+
onChange?: (files: File[]) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function FileUpload({ multiple, maxSize, acceptedFormats, onChange, }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type FileItemState = "default" | "loading";
|
|
3
|
+
type DropdownOption = {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
danger?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type FileItemProps = {
|
|
10
|
+
title: string;
|
|
11
|
+
subtitle: string;
|
|
12
|
+
iconFile?: React.ReactNode;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
state?: FileItemState;
|
|
15
|
+
dropdownOptions?: DropdownOption[];
|
|
16
|
+
onMenuClick?: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const FileItem: React.FC<FileItemProps>;
|
|
19
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { BackgroundBlur } from './Blur';
|
|
2
|
+
export { Button } from './button';
|
|
3
|
+
export { CardRow } from './Card';
|
|
4
|
+
export { Checkbox } from './checkbox';
|
|
5
|
+
export { FileUpload } from './file';
|
|
6
|
+
export { FileItem } from './fileItem';
|
|
7
|
+
export { Input } from './input';
|
|
8
|
+
export { Modal } from './Modal';
|
|
9
|
+
export { TextArea } from './textarea';
|