lawgic-dev-kit 0.15.4 → 0.15.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/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/UploadContainer/UploadContainer.js +54 -58
- package/dist/components/atoms/UploadContainer/UploadContainer.types.d.ts +1 -0
- package/dist/lawgic-dev-kit.umd.js +30 -30
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/package.json +1 -1
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +0 -18
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +0 -34
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index7.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.js";
|
|
4
4
|
var r;
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Option {
|
|
3
|
-
label: string | React.ReactNode;
|
|
4
|
-
value: number | string;
|
|
5
|
-
}
|
|
6
|
-
interface UncontrolledSelectorProps {
|
|
7
|
-
value: number | string;
|
|
8
|
-
onChange: (value: number | string) => void;
|
|
9
|
-
options: Option[];
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
error?: string;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
className?: string;
|
|
15
|
-
allowSearch?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const UncontrolledSelector: React.FC<UncontrolledSelectorProps>;
|
|
18
|
-
export default UncontrolledSelector;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface UploadContainerProps {
|
|
2
|
-
/**
|
|
3
|
-
* Título que se muestra en el área de carga
|
|
4
|
-
* @default 'drag_and_drop_your_files_here'
|
|
5
|
-
*/
|
|
6
|
-
title?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Subtítulo opcional para mostrar información adicional
|
|
9
|
-
* @default null
|
|
10
|
-
*/
|
|
11
|
-
subtitle?: string | null;
|
|
12
|
-
/**
|
|
13
|
-
* Texto del botón de selección de archivos
|
|
14
|
-
* @default 'choose_files'
|
|
15
|
-
*/
|
|
16
|
-
buttonTitle?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Función que se ejecuta cuando se cargan archivos válidos
|
|
19
|
-
* @param files Array de objetos File seleccionados
|
|
20
|
-
*/
|
|
21
|
-
onUpload?: (files: File[]) => void;
|
|
22
|
-
/**
|
|
23
|
-
* Lista de extensiones de archivo permitidas
|
|
24
|
-
* @default ['pdf', 'png', 'jpg', 'jpeg', 'svg', 'docx', 'doc', 'xls', 'xlsx']
|
|
25
|
-
*/
|
|
26
|
-
acceptedExtensions?: string[];
|
|
27
|
-
/**
|
|
28
|
-
* Tamaño máximo de archivo en KB
|
|
29
|
-
* @default 1024
|
|
30
|
-
*/
|
|
31
|
-
maxSize?: number;
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
loadingDuration?: number;
|
|
34
|
-
}
|