design-system-silkhaus 2.9.1 → 2.9.2
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/index.cjs +38 -38
- package/dist/index.d.ts +41 -1
- package/dist/index.js +4137 -4037
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -342,6 +342,42 @@ export declare const FileIcon: FC<{
|
|
|
342
342
|
className?: string;
|
|
343
343
|
}>;
|
|
344
344
|
|
|
345
|
+
export declare const FileInput: default_2.FC<FileInputProps>;
|
|
346
|
+
|
|
347
|
+
export declare interface FileInputProps {
|
|
348
|
+
label?: string;
|
|
349
|
+
/**
|
|
350
|
+
* label that will appear on the button.
|
|
351
|
+
* @default 'Upload'
|
|
352
|
+
*/
|
|
353
|
+
uploadButtonLabel?: string;
|
|
354
|
+
/**
|
|
355
|
+
* label that will appear next to the upload button
|
|
356
|
+
* @default 'Choose...'
|
|
357
|
+
*/
|
|
358
|
+
uploadLabel?: string;
|
|
359
|
+
helperText?: string;
|
|
360
|
+
/**
|
|
361
|
+
* file types that will be accepted by the input.
|
|
362
|
+
* accepts same values as https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
|
|
363
|
+
*/
|
|
364
|
+
accept?: string;
|
|
365
|
+
multiple?: boolean;
|
|
366
|
+
onChange?: (files: FileList | null) => void;
|
|
367
|
+
disabled?: boolean;
|
|
368
|
+
required?: boolean;
|
|
369
|
+
/**
|
|
370
|
+
* If the file input is being used for uploading, an array of upload statuses
|
|
371
|
+
* for each file can be passed to show status of each file.
|
|
372
|
+
*/
|
|
373
|
+
uploadStatuses?: {
|
|
374
|
+
isComplete: boolean;
|
|
375
|
+
message: string;
|
|
376
|
+
}[];
|
|
377
|
+
className?: string;
|
|
378
|
+
error?: boolean;
|
|
379
|
+
}
|
|
380
|
+
|
|
345
381
|
export declare const FilterIcon: FC<{
|
|
346
382
|
className?: string;
|
|
347
383
|
}>;
|
|
@@ -408,7 +444,11 @@ export declare const Input: default_2.ForwardRefExoticComponent<InputProps & def
|
|
|
408
444
|
export declare interface InputProps extends default_2.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {
|
|
409
445
|
textarea?: true | false | undefined;
|
|
410
446
|
label?: default_2.ReactNode | undefined;
|
|
411
|
-
|
|
447
|
+
/**
|
|
448
|
+
* @deprecated This was wrongly names. Please use `helperText` instead
|
|
449
|
+
*/
|
|
450
|
+
caption?: string;
|
|
451
|
+
helperText?: string;
|
|
412
452
|
color?: 'primary' | 'success' | 'error' | 'primaryRounded' | 'errorRounded' | 'disabled';
|
|
413
453
|
required?: boolean;
|
|
414
454
|
labelClass?: string | undefined;
|