@netu-si/netu-react-dsf-components 0.0.6 → 0.0.7

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.
@@ -1,12 +1,14 @@
1
1
  import '../../resources/css/dsf.main.min.css';
2
2
  import React, { RefObject, FC } from 'react';
3
3
  import { DSFInputProps } from '../DSFInput/DSFInput';
4
+ import { UseFormRegisterReturn } from 'react-hook-form';
4
5
  interface InputRefObject {
5
6
  day: RefObject<HTMLInputElement>;
6
7
  month: RefObject<HTMLInputElement>;
7
8
  year: RefObject<HTMLInputElement>;
8
9
  }
9
10
  export interface DSFDateInputProps {
11
+ register: UseFormRegisterReturn;
10
12
  /**
11
13
  * ID of the component
12
14
  */
@@ -9,11 +9,12 @@ export interface DSFHeaderProps {
9
9
  headerTitle: string;
10
10
  showLang?: boolean;
11
11
  menu?: NavMenuItem[];
12
+ logoUrl?: string;
12
13
  languageHandler?: (event: ChangeEvent<HTMLSelectElement>) => void;
13
14
  defaultValue?: string | null;
14
15
  }
15
16
  declare const DSFHeader: {
16
- ({ headerTitle, menu, showLang, languageHandler, defaultValue }: DSFHeaderProps): React.JSX.Element;
17
+ ({ headerTitle, menu, logoUrl, showLang, languageHandler, defaultValue }: DSFHeaderProps): React.JSX.Element;
17
18
  defaultProps: {
18
19
  showLang: boolean;
19
20
  menu: undefined;
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import '../../resources/css/dsf.main.min.css';
3
+ import { UseFormRegisterReturn } from 'react-hook-form';
3
4
  export interface DSFInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
4
5
  id?: string;
5
6
  error?: boolean;
6
7
  visualSize?: number;
7
8
  errorId?: string;
8
- register?: (rules?: any) => void;
9
+ register?: UseFormRegisterReturn;
9
10
  }
10
11
  declare const DSFInput: React.ForwardRefExoticComponent<DSFInputProps & React.RefAttributes<HTMLInputElement>>;
11
12
  export default DSFInput;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import '../../resources/css/dsf.main.min.css';
3
+ import '../../resources/css/custom.css';
3
4
  export interface DSFRadioProps extends React.InputHTMLAttributes<HTMLInputElement> {
4
5
  hint?: React.ReactNode;
5
6
  children: React.ReactNode;