@wmoney/ui-kit 1.0.41 → 1.0.43
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/FileInput.d.ts +27 -0
- package/dist/components/FileInput.d.ts.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +645 -605
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props do componente FileInput.
|
|
3
|
+
*/
|
|
4
|
+
type FileInputProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Tipos de arquivo aceitos no formato de atributo HTML accept.
|
|
7
|
+
* Padrão: '.pdf,.png,.jpg,.jpeg'.
|
|
8
|
+
*/
|
|
9
|
+
accept?: string;
|
|
10
|
+
/** Se true, permite seleção de múltiplos arquivos. Padrão: false. */
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
/** Se true, desabilita o componente. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Texto exibido quando nenhum arquivo está selecionado. Padrão: 'Carregar arquivo'. */
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
/** Classes CSS adicionais para o contêiner. */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Callback chamado quando arquivos são selecionados. */
|
|
19
|
+
onFilesChange?: (files: FileList) => void;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Componente FileInput para upload de arquivo em linha, no estilo de um campo de texto.
|
|
23
|
+
* Exibe o nome do arquivo selecionado e abre o seletor de arquivo ao clicar.
|
|
24
|
+
*/
|
|
25
|
+
export declare function FileInput({ accept, multiple, disabled, placeholder, className, onFilesChange, }: FileInputProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=FileInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../src/components/FileInput.tsx"],"names":[],"mappings":"AAQA;;GAEG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAA+B,EAC/B,QAAgB,EAChB,QAAQ,EACR,WAAgC,EAChC,SAAS,EACT,aAAa,GACd,EAAE,cAAc,2CAgEhB"}
|