dfh-ui-library 1.13.163 → 1.14.2
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/dist/cjs/index.css +1 -1
- package/dist/cjs/index.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Accommodation/AccommodationDynamic_stories.d.ts +7 -0
- package/dist/cjs/types/components/ButtonGroupFormGen/ButtonGroupFormGen.d.ts +3 -4
- package/dist/cjs/types/components/ButtonGroupFormGen/index.d.ts +0 -1
- package/dist/cjs/types/components/ButtonGroupWithInputsFormGen/index.d.ts +0 -1
- package/dist/{esm/types/components/FormElements → cjs/types/components}/CheckBoxFormGen/CheckBoxFormGen.d.ts +1 -1
- package/dist/cjs/types/components/Datepicker/DatePickerFormGen.d.ts +7 -2
- package/dist/cjs/types/components/DynamicDualInputTextGroupFormGen/DynamicDualInputTextGroupFormGenstories.d.ts +7 -0
- package/dist/cjs/types/components/TextAreaFormGen/TextAreaFormGen.d.ts +23 -0
- package/dist/cjs/types/shared/models/components/base.model.d.ts +9 -0
- package/dist/cjs/types/shared/models/components/common.model.d.ts +1 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Accommodation/AccommodationDynamic_stories.d.ts +7 -0
- package/dist/esm/types/components/ButtonGroupFormGen/ButtonGroupFormGen.d.ts +3 -4
- package/dist/esm/types/components/ButtonGroupFormGen/index.d.ts +0 -1
- package/dist/esm/types/components/ButtonGroupWithInputsFormGen/index.d.ts +0 -1
- package/dist/{cjs/types/components/FormElements → esm/types/components}/CheckBoxFormGen/CheckBoxFormGen.d.ts +1 -1
- package/dist/esm/types/components/Datepicker/DatePickerFormGen.d.ts +7 -2
- package/dist/esm/types/components/DynamicDualInputTextGroupFormGen/DynamicDualInputTextGroupFormGenstories.d.ts +7 -0
- package/dist/esm/types/components/TextAreaFormGen/TextAreaFormGen.d.ts +23 -0
- package/dist/esm/types/shared/models/components/base.model.d.ts +9 -0
- package/dist/esm/types/shared/models/components/common.model.d.ts +1 -0
- package/dist/index.d.ts +10 -1
- package/package.json +1 -1
- package/dist/cjs/types/components/ButtonGroupFormGen/ButtonGroupFormGenV2.d.ts +0 -3
- package/dist/cjs/types/components/ButtonGroupWithInputsFormGen/ButtonGroupWithInputsFormGenV2.d.ts +0 -3
- package/dist/cjs/types/components/Datepicker/DatePickerFormGenV2.d.ts +0 -10
- package/dist/esm/types/components/ButtonGroupFormGen/ButtonGroupFormGenV2.d.ts +0 -3
- package/dist/esm/types/components/ButtonGroupWithInputsFormGen/ButtonGroupWithInputsFormGenV2.d.ts +0 -3
- package/dist/esm/types/components/Datepicker/DatePickerFormGenV2.d.ts +0 -10
- /package/dist/cjs/types/components/{FormElements/CheckBoxFormGen → CheckBoxFormGen}/index.d.ts +0 -0
- /package/dist/esm/types/components/{FormElements/CheckBoxFormGen → CheckBoxFormGen}/index.d.ts +0 -0
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Meta } from "@storybook/react";
|
3
|
+
import { DynamicInputMultiProps } from "../../shared/models/components/common.model";
|
4
|
+
import AccommodationDynamic from "./AccommodationDynamic";
|
5
|
+
declare const meta: Meta<typeof AccommodationDynamic>;
|
6
|
+
export default meta;
|
7
|
+
export declare const Story: (args: DynamicInputMultiProps) => React.JSX.Element;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from
|
2
|
-
import { FormGenButtonGroupProps } from
|
3
|
-
|
4
|
-
export default ButtonGroupFormGen;
|
1
|
+
import React from 'react';
|
2
|
+
import { FormGenButtonGroupProps } from '../../shared/models/components/common.model';
|
3
|
+
export default function ButtonGroupFormGen({ id, options, onSelect, label, isAdditionalErrorInput, error, additionalErrorClasses, additionalClasses, selected, viewMode, previousData, tooltip, }: FormGenButtonGroupProps): React.JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { ICheckboxFormGenProps } from "
|
2
|
+
import { ICheckboxFormGenProps } from "../../shared/models/components/base.model";
|
3
3
|
declare const CheckBoxFormGen: React.FC<ICheckboxFormGenProps>;
|
4
4
|
export default CheckBoxFormGen;
|
@@ -1,5 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import '../../shared/customCss/react-datepicker.css';
|
3
3
|
import { CustomDatePickerProps } from '../../shared/models/components/common.model';
|
4
|
-
|
5
|
-
|
4
|
+
interface CustomDatePickerPropsV2 extends Omit<CustomDatePickerProps, 'selected'> {
|
5
|
+
selected?: {
|
6
|
+
value?: Date | string | null;
|
7
|
+
} | null;
|
8
|
+
}
|
9
|
+
declare const DatePickerFormGenV2: React.FC<CustomDatePickerPropsV2>;
|
10
|
+
export default DatePickerFormGenV2;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Meta } from '@storybook/react';
|
3
|
+
import { DynamicInputMultiProps } from '../../shared/models/components/common.model';
|
4
|
+
import DynamicDualInputTextGroupFormGen from './DynamicDualInputTextGroupFormGen';
|
5
|
+
declare const meta: Meta<typeof DynamicDualInputTextGroupFormGen>;
|
6
|
+
export default meta;
|
7
|
+
export declare const Story: (args: DynamicInputMultiProps) => React.JSX.Element;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { selectedValue } from '../../shared/models/components/common.model';
|
3
|
+
interface TextAreaFormGenProps {
|
4
|
+
id?: string;
|
5
|
+
label?: string;
|
6
|
+
value?: string;
|
7
|
+
onChange?: (value: string) => void;
|
8
|
+
error?: string;
|
9
|
+
additionalErrorClasses?: string;
|
10
|
+
additionalClasses?: string;
|
11
|
+
viewMode?: boolean;
|
12
|
+
previousData?: {
|
13
|
+
lastEditedDate?: string;
|
14
|
+
answerLabel: string;
|
15
|
+
};
|
16
|
+
tooltip?: string;
|
17
|
+
maxLength?: number;
|
18
|
+
rows?: number;
|
19
|
+
readOnly?: boolean;
|
20
|
+
selected?: selectedValue;
|
21
|
+
}
|
22
|
+
export default function TextAreaFormGen({ id, label, value, onChange, error, additionalErrorClasses, additionalClasses, viewMode, previousData, tooltip, maxLength, rows, readOnly, selected, }: TextAreaFormGenProps): React.JSX.Element;
|
23
|
+
export {};
|
@@ -183,6 +183,10 @@ export interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputEleme
|
|
183
183
|
isDischarged?: boolean;
|
184
184
|
showTooltip?: boolean;
|
185
185
|
tooltipText?: string;
|
186
|
+
/**
|
187
|
+
* Show asterisk permanently regardless of input value
|
188
|
+
*/
|
189
|
+
showPermanentAsterisk?: boolean;
|
186
190
|
}
|
187
191
|
export interface IFormGenInputProps {
|
188
192
|
/**
|
@@ -360,6 +364,7 @@ export interface ICheckboxProps extends AdditionalClassesProp {
|
|
360
364
|
export interface ICheckboxFormGenProps extends AdditionalClassesProp {
|
361
365
|
onSelect?: (checked: {
|
362
366
|
isChecked: boolean;
|
367
|
+
value?: string | boolean;
|
363
368
|
}) => void;
|
364
369
|
selected?: {
|
365
370
|
isChecked: boolean;
|
@@ -395,6 +400,10 @@ export interface ILabelProps {
|
|
395
400
|
labelSpanClasses?: string;
|
396
401
|
secondaryText?: string;
|
397
402
|
isRequired?: boolean;
|
403
|
+
/**
|
404
|
+
* Show asterisk permanently regardless of input value
|
405
|
+
*/
|
406
|
+
showPermanentAsterisk?: boolean;
|
398
407
|
}
|
399
408
|
export interface IRadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
400
409
|
/**
|
package/dist/index.d.ts
CHANGED
@@ -145,6 +145,7 @@ interface ImagePreviewProps {
|
|
145
145
|
defaultImageUrl?: string;
|
146
146
|
isAddEditPatient?: boolean;
|
147
147
|
isLoading?: boolean;
|
148
|
+
isAutoResize?: boolean;
|
148
149
|
}
|
149
150
|
interface ImageInputProps {
|
150
151
|
imageUrl?: string;
|
@@ -1105,6 +1106,10 @@ interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
1105
1106
|
isDischarged?: boolean;
|
1106
1107
|
showTooltip?: boolean;
|
1107
1108
|
tooltipText?: string;
|
1109
|
+
/**
|
1110
|
+
* Show asterisk permanently regardless of input value
|
1111
|
+
*/
|
1112
|
+
showPermanentAsterisk?: boolean;
|
1108
1113
|
}
|
1109
1114
|
interface ICheckboxProps extends AdditionalClassesProp {
|
1110
1115
|
onChange?: (checked: boolean) => void;
|
@@ -1140,6 +1145,10 @@ interface ILabelProps {
|
|
1140
1145
|
labelSpanClasses?: string;
|
1141
1146
|
secondaryText?: string;
|
1142
1147
|
isRequired?: boolean;
|
1148
|
+
/**
|
1149
|
+
* Show asterisk permanently regardless of input value
|
1150
|
+
*/
|
1151
|
+
showPermanentAsterisk?: boolean;
|
1143
1152
|
}
|
1144
1153
|
interface IRadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
1145
1154
|
/**
|
@@ -1757,7 +1766,7 @@ declare const ButtonGroupWithInputs: React__default.FC<ButtonGroupProps>;
|
|
1757
1766
|
|
1758
1767
|
declare const ButtonGroupWithUpload: React__default.FC<ButtonGroupWithUploadProps>;
|
1759
1768
|
|
1760
|
-
declare
|
1769
|
+
declare function ButtonGroupFormGen({ id, options, onSelect, label, isAdditionalErrorInput, error, additionalErrorClasses, additionalClasses, selected, viewMode, previousData, tooltip, }: FormGenButtonGroupProps): React__default.JSX.Element;
|
1761
1770
|
|
1762
1771
|
declare const ButtonGroupWithMultiSelectFormGen: React__default.FC<FormGenButtonGroupMultiSelectProps>;
|
1763
1772
|
|
package/package.json
CHANGED
@@ -1,3 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { FormGenButtonGroupProps } from '../../shared/models/components/common.model';
|
3
|
-
export default function ButtonGroupFormGenV2({ id, options, onSelect, label, isAdditionalErrorInput, error, additionalErrorClasses, additionalClasses, selected, viewMode, previousData, tooltip, }: FormGenButtonGroupProps): React.JSX.Element;
|
package/dist/cjs/types/components/ButtonGroupWithInputsFormGen/ButtonGroupWithInputsFormGenV2.d.ts
DELETED
@@ -1,3 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { FormGenButtonGroupProps } from '../../shared/models/components/common.model';
|
3
|
-
export default function ButtonGroupWithInputsFormGenV2({ id, options, onSelect, label, isAdditionalErrorInput, error, additionalErrorClasses, selected, inputObjects, orderBy, additionalClasses, secondaryComponentsVisible, viewMode, previousData, tooltip, }: FormGenButtonGroupProps): React.JSX.Element;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import '../../shared/customCss/react-datepicker.css';
|
3
|
-
import { CustomDatePickerProps } from '../../shared/models/components/common.model';
|
4
|
-
interface CustomDatePickerPropsV2 extends Omit<CustomDatePickerProps, 'selected'> {
|
5
|
-
selected?: {
|
6
|
-
value?: Date | string | null;
|
7
|
-
} | null;
|
8
|
-
}
|
9
|
-
declare const DatePickerFormGenV2: React.FC<CustomDatePickerPropsV2>;
|
10
|
-
export default DatePickerFormGenV2;
|
@@ -1,3 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { FormGenButtonGroupProps } from '../../shared/models/components/common.model';
|
3
|
-
export default function ButtonGroupFormGenV2({ id, options, onSelect, label, isAdditionalErrorInput, error, additionalErrorClasses, additionalClasses, selected, viewMode, previousData, tooltip, }: FormGenButtonGroupProps): React.JSX.Element;
|
package/dist/esm/types/components/ButtonGroupWithInputsFormGen/ButtonGroupWithInputsFormGenV2.d.ts
DELETED
@@ -1,3 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { FormGenButtonGroupProps } from '../../shared/models/components/common.model';
|
3
|
-
export default function ButtonGroupWithInputsFormGenV2({ id, options, onSelect, label, isAdditionalErrorInput, error, additionalErrorClasses, selected, inputObjects, orderBy, additionalClasses, secondaryComponentsVisible, viewMode, previousData, tooltip, }: FormGenButtonGroupProps): React.JSX.Element;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import '../../shared/customCss/react-datepicker.css';
|
3
|
-
import { CustomDatePickerProps } from '../../shared/models/components/common.model';
|
4
|
-
interface CustomDatePickerPropsV2 extends Omit<CustomDatePickerProps, 'selected'> {
|
5
|
-
selected?: {
|
6
|
-
value?: Date | string | null;
|
7
|
-
} | null;
|
8
|
-
}
|
9
|
-
declare const DatePickerFormGenV2: React.FC<CustomDatePickerPropsV2>;
|
10
|
-
export default DatePickerFormGenV2;
|
/package/dist/cjs/types/components/{FormElements/CheckBoxFormGen → CheckBoxFormGen}/index.d.ts
RENAMED
File without changes
|
/package/dist/esm/types/components/{FormElements/CheckBoxFormGen → CheckBoxFormGen}/index.d.ts
RENAMED
File without changes
|