@pantheon-systems/pds-toolkit-react 1.0.0-dev.217 → 1.0.0-dev.218
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.
|
@@ -13,6 +13,10 @@ export interface FileUploadProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
13
13
|
* File types the input should accept. Leave null for all file types.
|
|
14
14
|
*/
|
|
15
15
|
accept?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Default value for the input field as a string that represents the path to a file.
|
|
18
|
+
*/
|
|
19
|
+
defaultValue?: string;
|
|
16
20
|
/**
|
|
17
21
|
* Is the field disabled?
|
|
18
22
|
*/
|
|
@@ -57,6 +61,10 @@ export interface FileUploadProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
57
61
|
* Is the field required?
|
|
58
62
|
*/
|
|
59
63
|
required?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Should the full path of the file be displayed for the default value?
|
|
66
|
+
*/
|
|
67
|
+
showFullPath?: boolean;
|
|
60
68
|
/**
|
|
61
69
|
* Should the label be visible? If false, it will render for screen readers only.
|
|
62
70
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './spinner.css';
|
|
3
|
-
interface SpinnerProps extends ComponentPropsWithoutRef<'span'> {
|
|
3
|
+
export interface SpinnerProps extends ComponentPropsWithoutRef<'span'> {
|
|
4
4
|
/**
|
|
5
5
|
* Spinner color
|
|
6
6
|
*/
|
|
@@ -30,4 +30,3 @@ interface SpinnerProps extends ComponentPropsWithoutRef<'span'> {
|
|
|
30
30
|
* Spinner UI component
|
|
31
31
|
*/
|
|
32
32
|
export declare const Spinner: ({ colorType, isInline, label, showLabel, size, className, ...props }: SpinnerProps) => React.JSX.Element;
|
|
33
|
-
export {};
|