@festo-ui/react 1.2.0 → 2.0.0-pre-20211004.3
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/README.md +13 -4
- package/lib/forms/color-indicator/ColorIndicator.d.ts +2 -1
- package/lib/forms/date-range-picker/DateRangePicker.d.ts +1 -1
- package/lib/forms/text-area/TextArea.d.ts +4 -2
- package/package.json +1 -1
- package/react.esm.css +1694 -1104
- package/react.esm.js +854 -987
- package/react.umd.css +1694 -1104
- package/react.umd.js +472 -586
package/README.md
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# FESTO UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## React Component Library
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
### Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
To install Festo React, run:
|
|
8
|
+
|
|
9
|
+
`npm install @festo-ui/react @festo-ui/web-essentials`
|
|
10
|
+
|
|
11
|
+
### Stylesheets
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
/* The following lines should be included in your src/index.js or App.js file*/
|
|
15
|
+
import '@festo-ui/web-essentials/dist/css/festo-web-essentials.min.css';
|
|
16
|
+
import '@festo-ui/react/react.esm.css';
|
|
@@ -6,6 +6,7 @@ interface ColorIndicatorProps extends ClassNamePropsWithChildren {
|
|
|
6
6
|
label: string;
|
|
7
7
|
color?: string;
|
|
8
8
|
showPopOver?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
9
10
|
}
|
|
10
|
-
declare function ColorIndicator({ text, label, color, className, showPopOver, children }: ColorIndicatorProps): JSX.Element;
|
|
11
|
+
declare function ColorIndicator({ text, label, color, className, showPopOver, children, disabled }: ColorIndicatorProps): JSX.Element;
|
|
11
12
|
export default ColorIndicator;
|
|
@@ -16,5 +16,5 @@ export interface DateRangePickerProps extends ClassNamePropsWithChildren {
|
|
|
16
16
|
options?: DatePickerOptions;
|
|
17
17
|
onChange?: (dates: Date[]) => void;
|
|
18
18
|
}
|
|
19
|
-
export declare function DateRangePicker({ children, className, disabled, error, formatDate, hint, onChange, options, required, defaultValue
|
|
19
|
+
export declare function DateRangePicker({ children, className, disabled, error, formatDate, hint, onChange, options, required, defaultValue }: DateRangePickerProps): JSX.Element;
|
|
20
20
|
export default DateRangePicker;
|
|
@@ -5,15 +5,17 @@ interface TextAreaProps extends ClassNameProps {
|
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
required?: boolean;
|
|
7
7
|
readonly?: boolean;
|
|
8
|
+
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
8
9
|
onFocus?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
9
10
|
onInput?: (event: React.FormEvent<HTMLTextAreaElement>) => void;
|
|
10
11
|
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
11
12
|
label: string;
|
|
12
13
|
hint?: string;
|
|
13
14
|
error?: string;
|
|
14
|
-
value
|
|
15
|
+
value?: string;
|
|
16
|
+
defaultValue?: string;
|
|
15
17
|
rows?: number;
|
|
16
18
|
maxLength: number;
|
|
17
19
|
}
|
|
18
|
-
declare function TextArea({ disabled, onBlur, onFocus, onInput, readonly, required, label, error, hint, value, rows, maxLength, className, }: TextAreaProps): JSX.Element;
|
|
20
|
+
declare function TextArea({ disabled, onBlur, onChange, onFocus, onInput, readonly, required, label, error, hint, value, rows, maxLength, className, defaultValue }: TextAreaProps): JSX.Element;
|
|
19
21
|
export default TextArea;
|