dfh-ui-library 1.14.16 → 1.14.18
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/FormElements/IconInput/iconInputLock.d.ts +45 -0
- package/dist/cjs/types/components/FormElements/IconInput/index.d.ts +1 -0
- package/dist/cjs/types/components/FormElements/index.d.ts +1 -1
- package/dist/cjs/types/components/Media/Icons/Icons.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +1 -1
- package/dist/cjs/types/shared/models/components/base.model.d.ts +1 -1
- 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/FormElements/IconInput/iconInputLock.d.ts +45 -0
- package/dist/esm/types/components/FormElements/IconInput/index.d.ts +1 -0
- package/dist/esm/types/components/FormElements/index.d.ts +1 -1
- package/dist/esm/types/components/Media/Icons/Icons.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/esm/types/shared/models/components/base.model.d.ts +1 -1
- package/dist/index.d.ts +45 -2
- package/package.json +1 -1
@@ -0,0 +1,45 @@
|
|
1
|
+
import { FC } from 'react';
|
2
|
+
import { IHookFormsInputProps, LABELTYPE } from '../../../shared/models/components/base.model';
|
3
|
+
interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange' | 'labelType'> {
|
4
|
+
/** Label type styling */
|
5
|
+
labelType?: LABELTYPE;
|
6
|
+
/** Number of input fields (default: 6) */
|
7
|
+
length?: number;
|
8
|
+
/** Current value as string */
|
9
|
+
value?: string;
|
10
|
+
/** Callback when value changes */
|
11
|
+
onChange?: (value: string) => void;
|
12
|
+
/** Show/hide toggle functionality */
|
13
|
+
showToggle?: boolean;
|
14
|
+
/** Whether the code is currently visible */
|
15
|
+
isVisible?: boolean;
|
16
|
+
/** Callback when visibility toggle is clicked */
|
17
|
+
onToggleVisibility?: (isVisible: boolean) => void;
|
18
|
+
/** Input type for the fields */
|
19
|
+
inputType?: 'text' | 'password' | 'number';
|
20
|
+
/** Whether to auto-focus next field */
|
21
|
+
autoFocus?: boolean;
|
22
|
+
/** Custom classes for individual input fields */
|
23
|
+
inputFieldClasses?: string;
|
24
|
+
/** Custom classes for the container of input fields */
|
25
|
+
inputContainerClasses?: string;
|
26
|
+
/** Show required icon when field is empty */
|
27
|
+
showIsRequiredIcon?: boolean;
|
28
|
+
/** Show tooltip */
|
29
|
+
showTooltip?: boolean;
|
30
|
+
/** Tooltip text */
|
31
|
+
tooltipText?: string;
|
32
|
+
/** Right icon type */
|
33
|
+
rightIcon?: string;
|
34
|
+
/** Right icon classes */
|
35
|
+
iconClassRight?: string;
|
36
|
+
/** Show right icon */
|
37
|
+
isIconRight?: boolean;
|
38
|
+
/** Icon click handler */
|
39
|
+
iconOnClick?: () => void;
|
40
|
+
}
|
41
|
+
/**
|
42
|
+
* Lock Code Input Component - 6 individual square input fields
|
43
|
+
*/
|
44
|
+
declare const LockCodeInput: FC<ILockCodeInputProps>;
|
45
|
+
export default LockCodeInput;
|
@@ -5,5 +5,5 @@ export { default as Label } from './Label';
|
|
5
5
|
export * from './Select';
|
6
6
|
export { default as RadioButton } from './RadioButton';
|
7
7
|
export { Textarea, TextareaWithCount, TextareaWithCountV2 } from './Textarea';
|
8
|
-
export { default as IconInput, IconInputV2 } from './IconInput';
|
8
|
+
export { default as IconInput, IconInputV2, LockCodeInput } from './IconInput';
|
9
9
|
export { default as ImageInput } from './ImageInput';
|
@@ -89,5 +89,6 @@ export declare const WarningCircleIcon: ({ classes, onClick, ...props }: IconPro
|
|
89
89
|
export declare const LightbulbIcon: ({ classes, onClick, ...props }: IconProps) => React.JSX.Element;
|
90
90
|
export declare const LockIcon: ({ classes, onClick, ...props }: IconProps) => React.JSX.Element;
|
91
91
|
export declare const LockIcon2: ({ classes, onClick, ...props }: IconProps) => React.JSX.Element;
|
92
|
+
export declare const LockBlueIcon: ({ classes, onClick, ...props }: IconProps) => React.JSX.Element;
|
92
93
|
export declare const NoPatientIcon: () => React.JSX.Element;
|
93
94
|
export declare const NoReportIcon: () => React.JSX.Element;
|
@@ -3,7 +3,7 @@ export { default as Button } from './Button';
|
|
3
3
|
export { default as ButtonV2 } from './Button/ButtonV2';
|
4
4
|
export { default as Typhography } from './Typhography';
|
5
5
|
export { default as TyphographyFormGen } from './TyphographyFormGen';
|
6
|
-
export { Input, Select, SelectV2, CheckBox, Label, InputValidation, Textarea, RadioButton, IconInput, ImageInput, IconInputV2, } from './FormElements';
|
6
|
+
export { Input, Select, SelectV2, CheckBox, Label, InputValidation, Textarea, RadioButton, IconInput, ImageInput, IconInputV2, LockCodeInput, } from './FormElements';
|
7
7
|
export { default as Card } from './Card';
|
8
8
|
export { default as ComboBox, ComboboxV2 } from './ComboBox';
|
9
9
|
export { default as ComponentProvider } from './ComponentProvider';
|
@@ -372,7 +372,7 @@ export interface ICheckboxFormGenProps extends AdditionalClassesProp {
|
|
372
372
|
id?: any;
|
373
373
|
label?: string | React.ReactNode;
|
374
374
|
}
|
375
|
-
export type LABELTYPE = 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabel' | 'formLabel1' | 'formLabelMedeum' | 'formButtonGroup' | 'fontSemiBold' | undefined;
|
375
|
+
export type LABELTYPE = 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabel' | 'formLabel1' | 'formLabelMedeum' | 'formButtonGroup' | 'fontSemiBold' | 'fontMedium' | undefined;
|
376
376
|
export interface ILabelProps {
|
377
377
|
/**
|
378
378
|
* Set the Label Type
|
package/dist/index.d.ts
CHANGED
@@ -1139,7 +1139,7 @@ interface ICheckboxProps extends AdditionalClassesProp {
|
|
1139
1139
|
id?: any;
|
1140
1140
|
label?: string | React__default.ReactNode;
|
1141
1141
|
}
|
1142
|
-
type LABELTYPE = 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabel' | 'formLabel1' | 'formLabelMedeum' | 'formButtonGroup' | 'fontSemiBold' | undefined;
|
1142
|
+
type LABELTYPE = 'default' | 'black' | 'smallSelect' | 'blackSmall' | 'formLabel' | 'formLabel1' | 'formLabelMedeum' | 'formButtonGroup' | 'fontSemiBold' | 'fontMedium' | undefined;
|
1143
1143
|
interface ILabelProps {
|
1144
1144
|
/**
|
1145
1145
|
* Set the Label Type
|
@@ -1542,6 +1542,49 @@ declare const IconInput: FC<IHookFormsInputProps>;
|
|
1542
1542
|
*/
|
1543
1543
|
declare const IconInputV2: FC<IHookFormsInputProps>;
|
1544
1544
|
|
1545
|
+
interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange' | 'labelType'> {
|
1546
|
+
/** Label type styling */
|
1547
|
+
labelType?: LABELTYPE;
|
1548
|
+
/** Number of input fields (default: 6) */
|
1549
|
+
length?: number;
|
1550
|
+
/** Current value as string */
|
1551
|
+
value?: string;
|
1552
|
+
/** Callback when value changes */
|
1553
|
+
onChange?: (value: string) => void;
|
1554
|
+
/** Show/hide toggle functionality */
|
1555
|
+
showToggle?: boolean;
|
1556
|
+
/** Whether the code is currently visible */
|
1557
|
+
isVisible?: boolean;
|
1558
|
+
/** Callback when visibility toggle is clicked */
|
1559
|
+
onToggleVisibility?: (isVisible: boolean) => void;
|
1560
|
+
/** Input type for the fields */
|
1561
|
+
inputType?: 'text' | 'password' | 'number';
|
1562
|
+
/** Whether to auto-focus next field */
|
1563
|
+
autoFocus?: boolean;
|
1564
|
+
/** Custom classes for individual input fields */
|
1565
|
+
inputFieldClasses?: string;
|
1566
|
+
/** Custom classes for the container of input fields */
|
1567
|
+
inputContainerClasses?: string;
|
1568
|
+
/** Show required icon when field is empty */
|
1569
|
+
showIsRequiredIcon?: boolean;
|
1570
|
+
/** Show tooltip */
|
1571
|
+
showTooltip?: boolean;
|
1572
|
+
/** Tooltip text */
|
1573
|
+
tooltipText?: string;
|
1574
|
+
/** Right icon type */
|
1575
|
+
rightIcon?: string;
|
1576
|
+
/** Right icon classes */
|
1577
|
+
iconClassRight?: string;
|
1578
|
+
/** Show right icon */
|
1579
|
+
isIconRight?: boolean;
|
1580
|
+
/** Icon click handler */
|
1581
|
+
iconOnClick?: () => void;
|
1582
|
+
}
|
1583
|
+
/**
|
1584
|
+
* Lock Code Input Component - 6 individual square input fields
|
1585
|
+
*/
|
1586
|
+
declare const LockCodeInput: FC<ILockCodeInputProps>;
|
1587
|
+
|
1545
1588
|
declare const ImageInput: React__default.FC<ImageInputProps>;
|
1546
1589
|
|
1547
1590
|
/**
|
@@ -2279,5 +2322,5 @@ declare const themeConfigs: {
|
|
2279
2322
|
plugins: any[];
|
2280
2323
|
};
|
2281
2324
|
|
2282
|
-
export { BADGETYPE, Badge, BorderType, Breadcrumb, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupMultiSelect, ButtonGroupMultiSelectV2, ButtonGroupMultiSelectWithInputsFormGen, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithMultiSelectFormGen, ButtonGroupWithUpload, ButtonV2, Card, Checkbox as CheckBox, CheckBoxComponent, ClickedAction, ComboBox, ConboboxV2 as ComboboxV2, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, DynamicDualInputTextGroupFormGen, FilterButton, FilterButtonGroup, Heading, HistoryDetails, Icon, IconInput, IconInputV2, IconV2, IconVariant, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, InputDatePicker, InputDatePickerV2, InputValidation, InputsGroup, Label, ListRow, LoadingSpinner, Logo, Message, Modal, MultiSelectFormGen, NavBar, NoteEditor, NoteEditorV2, PanelCard, PhoneNumberInput, PhoneNumberInput2, PhoneNumberInput3, PhoneNumberInput4, PreviousDataBadge, ProgressBar, RadioButton, RegularDropdown, Row, SearchDropdownWithButton, Select, SelectUserWithButton, SelectV2, SideBarListView, SideBarListViewV2, Signature, SortDropdown, Spinner, SsnInput, Stepper, Tab, TabButton, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, Todos, TodosV2, Tooltip, TooltipWithChildren, Typho, Typhography, TyphographyFormGen, UrgentChallenges, useSchemaProcessor as UseSchemaProcessor, VersionDateDropdown, themeConfigs, usePagination, useSorting };
|
2325
|
+
export { BADGETYPE, Badge, BorderType, Breadcrumb, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupMultiSelect, ButtonGroupMultiSelectV2, ButtonGroupMultiSelectWithInputsFormGen, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithMultiSelectFormGen, ButtonGroupWithUpload, ButtonV2, Card, Checkbox as CheckBox, CheckBoxComponent, ClickedAction, ComboBox, ConboboxV2 as ComboboxV2, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, DynamicDualInputTextGroupFormGen, FilterButton, FilterButtonGroup, Heading, HistoryDetails, Icon, IconInput, IconInputV2, IconV2, IconVariant, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, InputDatePicker, InputDatePickerV2, InputValidation, InputsGroup, Label, ListRow, LoadingSpinner, LockCodeInput, Logo, Message, Modal, MultiSelectFormGen, NavBar, NoteEditor, NoteEditorV2, PanelCard, PhoneNumberInput, PhoneNumberInput2, PhoneNumberInput3, PhoneNumberInput4, PreviousDataBadge, ProgressBar, RadioButton, RegularDropdown, Row, SearchDropdownWithButton, Select, SelectUserWithButton, SelectV2, SideBarListView, SideBarListViewV2, Signature, SortDropdown, Spinner, SsnInput, Stepper, Tab, TabButton, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, Todos, TodosV2, Tooltip, TooltipWithChildren, Typho, Typhography, TyphographyFormGen, UrgentChallenges, useSchemaProcessor as UseSchemaProcessor, VersionDateDropdown, themeConfigs, usePagination, useSorting };
|
2283
2326
|
export type { AccountPopoverMenuItem, BadgeColorVariant, BtnOptionDropdown, DropdownSearchProps, ISolutionvalues, InputType, ListMasterDataProps, LogoProps, MessageProps, NoteChildrenProps, NoteHistoryProps, NoteItemProps, NoteProps, OptionProps, TimelineEventProps, UrgentDataProps, VariantTypes };
|