componenteszw-package 1.0.6 → 1.0.7

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/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 {};
@@ -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';
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ type InputState = "default" | "error" | "disabled";
3
+ type InputSize = "small" | "medium" | "large";
4
+ type InputProps = {
5
+ label?: string;
6
+ placeholder?: string;
7
+ value?: string;
8
+ hintText?: string;
9
+ required?: boolean;
10
+ state?: InputState;
11
+ size?: InputSize;
12
+ type?: "text" | "date" | "password" | "number";
13
+ iconRight?: React.ReactNode;
14
+ disabled?: boolean;
15
+ onChange?: (value: string) => void;
16
+ className?: string;
17
+ };
18
+ export declare const Input: ({ label, placeholder, value, hintText, required, state, size, type, iconRight, disabled, onChange, className }: InputProps) => import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,16 @@
1
+ type TextAreaState = "default" | "error" | "disabled";
2
+ type TextAreaProps = {
3
+ label?: string;
4
+ placeholder?: string;
5
+ value?: string;
6
+ hintText?: string;
7
+ required?: boolean;
8
+ state?: TextAreaState;
9
+ maxLength?: number;
10
+ showCounter?: boolean;
11
+ disabled?: boolean;
12
+ onChange?: (value: string) => void;
13
+ className?: string;
14
+ };
15
+ export declare function TextArea({ label, placeholder, value, hintText, required, state, maxLength, showCounter, disabled, onChange, className, }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
16
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "componenteszw-package",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "main": "dist/componenteszw-package.js",
6
6
  "module": "dist/componenteszw-package.js",
@@ -13,5 +13,17 @@
13
13
  },
14
14
  "files": [
15
15
  "dist"
16
- ]
16
+ ],
17
+ "scripts": {
18
+ "build": "vite build"
19
+ },
20
+ "peerDependencies": {
21
+ "react": "^18.0.0 || ^19.0.0",
22
+ "react-dom": "^18.0.0 || ^19.0.0"
23
+ },
24
+ "dependencies": {
25
+ "clsx": "^2.1.1",
26
+ "tailwind-merge": "^2.2.1",
27
+ "lucide-react": "^0.500.0"
28
+ }
17
29
  }