@netu-si/netu-react-dsf-components 1.0.33 → 1.0.35

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.
@@ -59,6 +59,10 @@ export interface DSFDatePickerProps {
59
59
  * Highlight Mondays in the datepicker
60
60
  */
61
61
  highlightMondays?: boolean;
62
+ /**
63
+ * if true make the label <h1> otherwise <label>
64
+ */
65
+ isTitle?: boolean;
62
66
  }
63
67
  /**
64
68
  * DSFDatePicker Component
@@ -67,7 +71,7 @@ export interface DSFDatePickerProps {
67
71
  * It is designed to integrate with forms and maintain consistency with other components in the design system.
68
72
  */
69
73
  declare const DSFDatePicker: {
70
- ({ id, label, hint, errorText, lang, visualSize, minDate, maxDate, highlightMondays, inputProps }: DSFDatePickerProps): React.JSX.Element;
74
+ ({ id, label, hint, errorText, lang, visualSize, minDate, maxDate, highlightMondays, isTitle, inputProps, }: DSFDatePickerProps): React.JSX.Element;
71
75
  displayName: string;
72
76
  };
73
77
  export default DSFDatePicker;
@@ -8,6 +8,12 @@ export type NavMenuItem = {
8
8
  onClick?: () => void;
9
9
  subItems?: NavMenuItem[];
10
10
  };
11
+ export interface DSFUserSignInProps {
12
+ signinLabel?: string;
13
+ registerLabel?: string;
14
+ signinOnClick?: () => void;
15
+ registerOnClick?: () => void;
16
+ }
11
17
  export interface DSFHeaderProps {
12
18
  linkComponent: any;
13
19
  headerTitle: React.ReactNode | string;
@@ -22,6 +28,7 @@ export interface DSFHeaderProps {
22
28
  showLogo?: boolean;
23
29
  showSignin?: boolean;
24
30
  showSignout?: boolean;
31
+ signinParams?: DSFUserSignInProps;
25
32
  signoutParams?: DSFUserSignOutProps;
26
33
  user?: any;
27
34
  showSearch?: boolean;
@@ -32,7 +39,7 @@ export type LanguageItem = {
32
39
  value: string;
33
40
  };
34
41
  declare const DSFHeader: {
35
- ({ linkComponent: Link, headerTitle, menu, logoUrl, onLogoClickHandler, showLang, languageHandler, langOptions, defaultValue, currentLang, showLogo, showSignin, showSignout, signoutParams, showSearch, showMenu, }: DSFHeaderProps): React.JSX.Element;
42
+ ({ linkComponent: Link, headerTitle, menu, logoUrl, onLogoClickHandler, showLang, languageHandler, langOptions, defaultValue, currentLang, showLogo, showSignin, showSignout, signinParams, signoutParams, showSearch, showMenu, }: DSFHeaderProps): React.JSX.Element;
36
43
  displayName: string;
37
44
  };
38
45
  export default DSFHeader;
@@ -6,6 +6,7 @@ export interface DSFTextAreaProps extends React.TextareaHTMLAttributes<HTMLTextA
6
6
  error?: boolean;
7
7
  errorId?: string;
8
8
  register?: UseFormRegisterReturn;
9
+ lang?: string;
9
10
  }
10
11
  declare const DSFTextArea: React.ForwardRefExoticComponent<DSFTextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
11
12
  export default DSFTextArea;