@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 CHANGED
@@ -1,7 +1,16 @@
1
- # react
1
+ # FESTO UI
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ ## React Component Library
4
4
 
5
- ## Running unit tests
5
+ ### Installation
6
6
 
7
- Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
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, }: DateRangePickerProps): JSX.Element;
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: string;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "1.2.0",
3
+ "version": "2.0.0-pre-20211004.3",
4
4
  "peerDependencies": {
5
5
  "react": "^16.14.0",
6
6
  "react-dom": "^16.14.0",