dfh-ui-library 1.14.56 → 1.14.61

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 +1 @@
1
- export declare const handleButtonClasses: (variants?: string | undefined) => "bg-accent-primary text-white border border-accent-primary hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-16s h-[52px] text-base font-semibold text-accent-primary leading-5 border border-solid border-border-dark bg-background-default hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s h-9 bg-accent-primary text-white border border-accent-primary hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s text-base font-semibold text-accent-primary leading-5 border border-solid border-border-dark bg-background-default hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s h-7 bg-accent-primary text-white border border-accent-primary hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s h-7 text-base font-semibold text-accent-primary leading-5 border border-solid border-border-dark bg-background-default hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s text-base font-semibold text-accent-primary leading-5 border border-solid border-border-dark bg-background-default hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border font-medium leading-[14px]" | "text-14s bg-accent-primary text-white border border-accent-primary hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s bg-state-error-background border border-state-error-border text-state-error-foreground" | "bg-accent-primary text-12s text-content-light" | "text-12s text-accent-primary bg-background-light1 border border-border-default" | "text-21s text-accent-primary border border-solid border-border-dark bg-background-default" | "text-21s opacity-60 text-state-disabled-foreground border border-state-disabled-border bg-state-disabled-background" | "text-21s border text-content-light border-accent-primary bg-accent-primary" | "h-8 text-12s text-accent-primary border border-border-dark" | "h-8 text-12s border text-content-light border-accent-primary bg-accent-primary" | "text-14s text-white bg-state-error-foreground text-content-light border border-state-error-border [&:is(:hover,:focus)]:bg-state-error-background [&:is(:hover,:focus)]:text-state-error-foreground " | "text-21s text-black-540 border border-0 bg-white" | "text-21s text-white border border-0 bg-[#006CD0]" | "text-21s text-white border border-0 bg-pinkRead" | "flex text-12s h-8 bg-[#006CD0] text-white" | "h-11 text-21s border border-0 bg-white" | "h-8 text-21s border border-0 bg-transparent" | undefined;
1
+ export declare const handleButtonClasses: (variants?: string | undefined) => "bg-accent-primary text-white border border-accent-primary hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-16s h-[52px] text-base font-semibold text-accent-primary leading-5 border border-solid border-border-dark bg-background-default hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s h-9 bg-accent-primary text-white border border-accent-primary hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s text-base font-semibold text-accent-primary leading-5 border border-solid border-border-dark bg-background-default hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s h-7 bg-accent-primary text-white border border-accent-primary hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s h-7 text-base font-semibold text-accent-primary leading-5 border border-solid border-border-dark bg-background-default hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s text-base font-semibold text-accent-primary leading-5 border border-solid border-border-dark bg-background-default hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border font-medium leading-[14px]" | "text-14s bg-accent-primary text-white border border-accent-primary hover:bg-state-focushover-background hover:text-state-focushover-foreground hover:border hover:border-state-focushover-border active:bg-state-active-background active:text-state-active-foreground active:border active:border-state-active-border" | "text-14s bg-background-default hover:bg-state-error-background transition-all duration-100 border border-state-error-border text-state-error-foreground" | "bg-accent-primary text-12s text-content-light" | "text-12s text-accent-primary bg-background-light1 border border-border-default" | "text-21s text-accent-primary border border-solid border-border-dark bg-background-default" | "text-21s opacity-60 text-state-disabled-foreground border border-state-disabled-border bg-state-disabled-background" | "text-21s border text-content-light border-accent-primary bg-accent-primary" | "h-8 text-12s text-accent-primary border border-border-dark" | "h-8 text-12s border text-content-light border-accent-primary bg-accent-primary" | "text-14s text-white bg-state-error-foreground text-content-light border border-state-error-border [&:is(:hover,:focus)]:bg-state-error-background [&:is(:hover,:focus)]:text-state-error-foreground " | "text-21s text-black-540 border border-0 bg-white" | "text-21s text-white border border-0 bg-[#006CD0]" | "text-21s text-white border border-0 bg-pinkRead" | "flex text-12s h-8 bg-[#006CD0] text-white" | "h-11 text-21s border border-0 bg-white" | "h-8 text-21s border border-0 bg-transparent" | undefined;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ type FieldGroupFormGenProp = {
3
+ field: any;
4
+ form: any;
5
+ id: string;
6
+ subTitle?: string;
7
+ groupName: string;
8
+ maxNumber?: number;
9
+ addLabel?: string;
10
+ noneTitle?: string;
11
+ noneMessage?: string;
12
+ rows: any[];
13
+ components: any[];
14
+ schema: any;
15
+ viewMode?: boolean;
16
+ isLetterGenerator?: boolean;
17
+ showPreviousData?: boolean;
18
+ };
19
+ declare function FieldGroupFormGen(props: FieldGroupFormGenProp): React.JSX.Element;
20
+ export default FieldGroupFormGen;
@@ -1,7 +1,7 @@
1
- import { FC } from 'react';
2
- import { IHookFormsInputProps } from '../../../shared/models/components/base.model';
3
- import { type IconName } from 'lucide-react/dynamic';
4
- export interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange' | 'leftIcon' | 'rightIcon'> {
1
+ import { FC } from "react";
2
+ import { IHookFormsInputProps } from "../../../shared/models/components/base.model";
3
+ import { type IconName } from "lucide-react/dynamic";
4
+ export interface ILockCodeInputProps extends Omit<IHookFormsInputProps, "type" | "value" | "onChange" | "leftIcon" | "rightIcon"> {
5
5
  /** Number of input boxes (2-8) */
6
6
  length?: number;
7
7
  /** Current value as string */
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { TableProps } from '../../shared/models/components/common.model';
1
+ import React from "react";
2
+ import { TableProps } from "../../shared/models/components/common.model";
3
3
  export declare function Table({ data, columns, sorting, onSortingChange, pagination, onPaginationChange, totalRecords, isManualPagination, // true for server-side pagination
4
- isManualSorting, rowClick, addBtnClick, addBtnText, containerHeightRemoveInPixel, setRowSelection, isLoading, paginationLabel, emptyLabel, otherTableProps, noDataImage }: TableProps, key?: any): React.JSX.Element;
4
+ isManualSorting, rowClick, addBtnClick, addBtnText, containerHeightRemoveInPixel, setRowSelection, isLoading, paginationLabel, emptyLabel, otherTableProps, noDataImage, }: TableProps, key?: any): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import { type IconName } from 'lucide-react/dynamic';
3
- import { customIcons } from './CustomIcon';
4
- import { IconVariant } from '../../../shared/models/components/base.model';
1
+ import React from "react";
2
+ import { type IconName } from "lucide-react/dynamic";
3
+ import { customIcons } from "./CustomIcon";
4
+ import { IconVariant } from "../../../shared/models/components/base.model";
5
5
  type IconProps = {
6
6
  size?: string;
7
7
  icon: IconName | keyof typeof customIcons;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React from "react";
2
2
  export interface ILetterSchema {
3
3
  _id: string;
4
4
  title: string;
@@ -15,6 +15,17 @@ export interface ILetterSchemaRow {
15
15
  subTitle?: string;
16
16
  subTitleType?: string;
17
17
  rowClass?: string;
18
+ groupName?: string;
19
+ maxNumber?: number;
20
+ addLabel?: string | null;
21
+ noneTitle?: string | null;
22
+ noneMessage?: string | null;
23
+ rows?: {
24
+ rowOrder: number;
25
+ rowClass?: string;
26
+ fieldList: ILetterField[];
27
+ }[];
28
+ answers?: ISelected[];
18
29
  }
19
30
  export interface ILetterField {
20
31
  _id: string;
@@ -29,6 +40,7 @@ export interface ILetterField {
29
40
  selected: ISelected;
30
41
  options: IMultiSelectOption[];
31
42
  className?: string;
43
+ rowClass?: string;
32
44
  }
33
45
  export interface IMultiSelectOption {
34
46
  id: string;
@@ -1,3 +1,4 @@
1
+ import { ISelected } from './ILetterSchema';
1
2
  import { IQuestionSchema } from './IQuestionSchema';
2
3
  export interface ISchema {
3
4
  _id: string;
@@ -25,8 +26,15 @@ export interface IFormRow {
25
26
  _id: string;
26
27
  rowOrder: number;
27
28
  rowClass: string;
28
- questionList: IQuestionSchema[];
29
+ questionList?: IQuestionSchema[];
29
30
  component?: string;
30
31
  subTitle?: string;
31
32
  subTitleType?: string;
33
+ groupName?: string;
34
+ maxNumber?: number;
35
+ addLabel?: string;
36
+ noneTitle?: string;
37
+ noneMessage?: string;
38
+ rows?: IFormRow[];
39
+ answers?: ISelected[];
32
40
  }
@@ -1,3 +1,3 @@
1
- import { ISchemaStep } from './interfaces/ISchema';
1
+ import { ISchemaStep } from "./interfaces/ISchema";
2
2
  declare function useInitialValues(): [object, (schemas: ISchemaStep[]) => void];
3
3
  export default useInitialValues;
@@ -1,4 +1,7 @@
1
- import { ISchema } from './interfaces/ISchema';
2
- import { ILetterSchema } from './interfaces/ILetterSchema';
3
- declare function useLetterSchemaAdapter(): [ISchema | undefined, (letterSchema: ILetterSchema) => void];
1
+ import { ISchema } from "./interfaces/ISchema";
2
+ import { ILetterSchema } from "./interfaces/ILetterSchema";
3
+ declare function useLetterSchemaAdapter(): [
4
+ ISchema | undefined,
5
+ (letterSchema: ILetterSchema) => void
6
+ ];
4
7
  export default useLetterSchemaAdapter;
@@ -1,6 +1,6 @@
1
- import * as Yup from 'yup';
2
- import { ILetterSchema } from './interfaces/ILetterSchema';
3
- import { IQuestionSchema, ISelectedValue } from './interfaces/IQuestionSchema';
1
+ import * as Yup from "yup";
2
+ import { ILetterSchema } from "./interfaces/ILetterSchema";
3
+ import { IQuestionSchema, ISelectedValue } from "./interfaces/IQuestionSchema";
4
4
  type NestedFieldShape<T> = {
5
5
  value: T;
6
6
  };
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { ISolutionvalues, NoteProps, TimelineEventProps } from '../../shared/models/components/common.model';
3
- import { ITodoToggleRequestParams } from '../SideBarListView/todos';
1
+ import React from "react";
2
+ import { ISolutionvalues, NoteProps, TimelineEventProps } from "../../shared/models/components/common.model";
3
+ import { ITodoToggleRequestParams } from "../SideBarListView/todos";
4
4
  export declare const getTimeLineCards: (eventData: TimelineEventProps, setShowCompleteNote: (isShow: boolean) => void, showCompleteNote: boolean, handleEditItemTimeLine: any, navigateAction?: (timeLineNavReq?: ISolutionvalues, type?: string) => void, surveyId?: string, showNote?: boolean, setShowNote?: (isSet: boolean) => void, enableEdit?: boolean, toggleEdit?: (isShow: boolean) => void, viewNoteHistory?: any, lastModified?: string, saveNoteValues?: any, setEnableEdit?: (isEnable: boolean) => void, surveyDate?: string, type?: string[], showAll?: boolean, isChallengeTimeline?: boolean, handleCopyCurrentNote?: (note: NoteProps) => void, isDischarged?: boolean) => React.JSX.Element;
5
5
  export declare const NoteCard: React.FC<{
6
6
  eventData?: TimelineEventProps;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Prevents password managers from trying to fill field
3
+ * See: https://www.stefanjudis.com/snippets/turn-off-password-managers/
4
+ * Usage: `<Component {...passwordsManagerShouldIgnore} />`
5
+ */
6
+ export declare const passwordManagersShouldIgnore: {
7
+ "data-1p-ignore": string;
8
+ "data-bwignore": string;
9
+ "data-lpignore": string;
10
+ "data-form-type": string;
11
+ };
package/dist/index.d.ts CHANGED
@@ -1571,7 +1571,7 @@ declare const IconInput: FC<IHookFormsInputProps>;
1571
1571
  */
1572
1572
  declare const IconInputV2: FC<IHookFormsInputProps>;
1573
1573
 
1574
- interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange' | 'leftIcon' | 'rightIcon'> {
1574
+ interface ILockCodeInputProps extends Omit<IHookFormsInputProps, "type" | "value" | "onChange" | "leftIcon" | "rightIcon"> {
1575
1575
  /** Number of input boxes (2-8) */
1576
1576
  length?: number;
1577
1577
  /** Current value as string */
@@ -1851,7 +1851,7 @@ type IconProps = {
1851
1851
  declare const IconV2: React__default.FC<IconProps>;
1852
1852
 
1853
1853
  declare function Table({ data, columns, sorting, onSortingChange, pagination, onPaginationChange, totalRecords, isManualPagination, // true for server-side pagination
1854
- isManualSorting, rowClick, addBtnClick, addBtnText, containerHeightRemoveInPixel, setRowSelection, isLoading, paginationLabel, emptyLabel, otherTableProps, noDataImage }: TableProps, key?: any): React__default.JSX.Element;
1854
+ isManualSorting, rowClick, addBtnClick, addBtnText, containerHeightRemoveInPixel, setRowSelection, isLoading, paginationLabel, emptyLabel, otherTableProps, noDataImage, }: TableProps, key?: any): React__default.JSX.Element;
1855
1855
 
1856
1856
  declare function IndeterminateCheckbox({ indeterminate, rowId, className, ...rest }: {
1857
1857
  indeterminate?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.14.56",
3
+ "version": "1.14.61",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc --project tsconfig.json && rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",