dfh-ui-library 1.14.39 → 1.14.40

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.
Files changed (46) hide show
  1. package/dist/cjs/index.css +1 -1
  2. package/dist/cjs/index.css.map +1 -1
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/types/components/Button/Button.d.ts +3 -3
  6. package/dist/cjs/types/components/Button/Button.handler.d.ts +1 -1
  7. package/dist/cjs/types/components/Button/Button.stories.d.ts +4 -2
  8. package/dist/cjs/types/components/Button/ButtonV2.d.ts +1 -1
  9. package/dist/cjs/types/components/FilterButtonGroup/FilterButton.d.ts +1 -1
  10. package/dist/cjs/types/components/FormElements/IconInput/IconInput.handler.d.ts +1 -1
  11. package/dist/cjs/types/components/FormElements/IconInput/iconInputLock.d.ts +4 -1
  12. package/dist/cjs/types/components/FormElements/Select/Select.d.ts +2 -2
  13. package/dist/cjs/types/components/HorizontalRule/HorizontalRule.d.ts +6 -0
  14. package/dist/cjs/types/components/HorizontalRule/index.d.ts +1 -0
  15. package/dist/cjs/types/components/Media/Icon/IconV2.d.ts +1 -0
  16. package/dist/cjs/types/components/Typhography/Typhography.handler.d.ts +1 -1
  17. package/dist/cjs/types/components/core/Heading/Heading.d.ts +3 -3
  18. package/dist/cjs/types/components/index.d.ts +2 -1
  19. package/dist/cjs/types/shared/configs/customClasses.d.ts +4 -3
  20. package/dist/cjs/types/shared/configs/themeConfig.d.ts +36 -38
  21. package/dist/cjs/types/shared/models/components/base.model.d.ts +8 -5
  22. package/dist/cjs/types/shared/models/components/common.model.d.ts +10 -1
  23. package/dist/esm/index.css +1 -1
  24. package/dist/esm/index.css.map +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/esm/index.js.map +1 -1
  27. package/dist/esm/types/components/Button/Button.d.ts +3 -3
  28. package/dist/esm/types/components/Button/Button.handler.d.ts +1 -1
  29. package/dist/esm/types/components/Button/Button.stories.d.ts +4 -2
  30. package/dist/esm/types/components/Button/ButtonV2.d.ts +1 -1
  31. package/dist/esm/types/components/FilterButtonGroup/FilterButton.d.ts +1 -1
  32. package/dist/esm/types/components/FormElements/IconInput/IconInput.handler.d.ts +1 -1
  33. package/dist/esm/types/components/FormElements/IconInput/iconInputLock.d.ts +4 -1
  34. package/dist/esm/types/components/FormElements/Select/Select.d.ts +2 -2
  35. package/dist/esm/types/components/HorizontalRule/HorizontalRule.d.ts +6 -0
  36. package/dist/esm/types/components/HorizontalRule/index.d.ts +1 -0
  37. package/dist/esm/types/components/Media/Icon/IconV2.d.ts +1 -0
  38. package/dist/esm/types/components/Typhography/Typhography.handler.d.ts +1 -1
  39. package/dist/esm/types/components/core/Heading/Heading.d.ts +3 -3
  40. package/dist/esm/types/components/index.d.ts +2 -1
  41. package/dist/esm/types/shared/configs/customClasses.d.ts +4 -3
  42. package/dist/esm/types/shared/configs/themeConfig.d.ts +36 -38
  43. package/dist/esm/types/shared/models/components/base.model.d.ts +8 -5
  44. package/dist/esm/types/shared/models/components/common.model.d.ts +10 -1
  45. package/dist/index.d.ts +70 -52
  46. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import React from "react";
2
- import { IButtonProps } from "../../shared/models/components/base.model";
3
- declare const Button: ({ type, isDisabled, buttonLabel, iconType, iconColor, iconAlignment, isIconEnabled, variants, additionalClasses, iconClass, enableBagage, bagageProps, width, onClick, isLoading }: IButtonProps) => React.JSX.Element;
1
+ import React from 'react';
2
+ import { IButtonProps } from '../../shared/models/components/base.model';
3
+ declare const Button: ({ type, isDisabled, buttonLabel, icon, iconProps, iconAlignment, isIconEnabled, variants, additionalClasses, enableBagage, bagageProps, width, onClick, isLoading, }: IButtonProps) => React.JSX.Element;
4
4
  export default Button;
@@ -1 +1 @@
1
- export declare const handleButtonClasses: (variants?: string | undefined) => "bg-[#333333] text-white hover:bg-gray-700" | "text-16s h-[52px] text-base font-semibold leading-5 border border-solid border-[#CDCED6] bg-white" | "text-14s h-9 bg-[#333333] text-white hover:bg-gray-700" | "text-14s h-9 text-base font-semibold leading-5 border border-solid border-[#CDCED6] bg-white" | "text-14s h-7 bg-[#333333] text-white hover:bg-gray-700" | "text-14s h-7 text-base font-semibold leading-5 border border-solid border-[#CDCED6] bg-white" | "text-16s h-11 text-base font-semibold leading-5 border border-solid border-[#CDCED6] bg-white" | "text-16s h-11 bg-[#333333] text-white hover:bg-gray-700" | "text-16s h-11 bg-[#006CD0] text-21s text-white" | "text-16s h-10 bg-[#006CD0] text-21s text-white !p-0 !px-2" | "bg-[#006CD0] text-12s text-white" | "text-21s text-black-540 border border-[#CDCED6] bg-white" | "text-21s opacity-60 text-[#21232C] border border-[#CDCED6] bg-white" | "text-21s text-black-540 border border-[#DF4B604D] bg-white" | "text-14s text-white bg-[#F23A5C]" | "text-21s border text-btn-main border-[#006CD0] bg-[#F1F5F9]" | "text-12s border text-black-540 border-0 bg-[#F1F5F9]" | "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" | "h-8 text-12s text-black-540 border border-[#CDCED6] bg-white" | "flex text-12s h-8 bg-[#006CD0] text-white" | "h-8 text-12s border text-btn-main border-[#006CD0] bg-[#F1F5F9]" | "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-state-error-background border border-state-error-border text-state-error-foreground" | "bg-accent-primary text-12s text-content-light" | "text-12s text-content-default bg-background-light1 border border-border-default" | "text-21s text-content-default border-1 border-border-default bg-background-light1" | "text-21s opacity-60 text-state-disabled-foreground border border-state-disabled-border bg-state-disabled-background" | "text-21s border text-content-default border-accent-primary bg-background-light1" | "h-8 text-12s text-content-default border border-border-default bg-background-light1" | "h-8 text-12s border text-content-default border-accent-primary bg-background-light1" | "text-14s text-white bg-[#F23A5C]" | "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,11 +1,12 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import Button from "./Button";
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Button from './Button';
3
3
  declare const meta: Meta<typeof Button>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Button>;
6
6
  export declare const Primary: Story;
7
7
  export declare const IconButton: Story;
8
8
  export declare const IconButtonRight: Story;
9
+ export declare const Outlined: Story;
9
10
  export declare const Secondary: Story;
10
11
  export declare const Disabled: Story;
11
12
  export declare const Small: Story;
@@ -13,6 +14,7 @@ export declare const Medium: Story;
13
14
  export declare const Large: Story;
14
15
  export declare const PrimaryBlue: Story;
15
16
  export declare const PrimaryWhite: Story;
17
+ export declare const PrimaryRed: Story;
16
18
  export declare const PrimaryWhiteSelected: Story;
17
19
  export declare const PrimaryWhiteNoBoder: Story;
18
20
  export declare const PrimaryWhiteUploadIcon: Story;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { IButtonProps } from '../../shared/models/components/base.model';
3
- declare const ButtonV2: ({ type, isDisabled, buttonLabel, iconType, iconColor, iconAlignment, isIconEnabled, variants, additionalClasses, iconClass, enableBagage, bagageProps, width, onClick, isLoading, }: IButtonProps) => React.JSX.Element;
3
+ declare const ButtonV2: ({ type, isDisabled, buttonLabel, icon, iconProps, iconAlignment, isIconEnabled, variants, additionalClasses, enableBagage, bagageProps, width, onClick, isLoading, }: IButtonProps) => React.JSX.Element;
4
4
  export default ButtonV2;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { IButtonProps } from "../../shared/models/components/base.model";
3
- declare const FilterButton: ({ type, isDisabled, buttonLabel, iconType, iconColor, iconAlignment, isIconEnabled, variants, additionalClasses, iconClass, enableBagage, bagageProps, width, onClick, }: IButtonProps) => React.JSX.Element;
3
+ declare const FilterButton: ({ type, isDisabled, buttonLabel, iconAlignment, isIconEnabled, variants, additionalClasses, iconProps, icon, enableBagage, bagageProps, width, onClick, }: IButtonProps) => React.JSX.Element;
4
4
  export default FilterButton;
@@ -1 +1 @@
1
- export declare const handleInputElementClasses: (_inputVariant?: "default" | "large" | "dynamic" | "uploadinput" | "small" | "noborder") => "px-3 py-3 bg-white border shadow-sm text-black-600 text-14s font-normal border-slate-300 placeholder-slate-400 focus:outline-none focus:border-sky-500 focus:ring-sky-500 block w-full rounded-md sm:text-sm focus:ring-1" | "px-0 h-8 py-2.5 bg-white border-0 rounded text-black-540 text-14s font-normal placeholder-gray-95 block w-[100px] items-center" | undefined;
1
+ export declare const handleInputElementClasses: (_inputVariant?: "default" | "large" | "dynamic" | "uploadinput" | "small" | "noborder") => "px-3 py-[9px] bg-white border shadow-sm text-content-default !leading-[20px] text-14s font-normal border-border-default placeholder:text-content-deemphasized focus:outline-none block w-full rounded-md focus:ring-0 [&:is(:hover,:focus)]:border-state-focushover-border" | "px-0 h-8 py-2.5 bg-white border-0 rounded text-black-540 text-14s font-normal placeholder-gray-95 block w-[100px] items-center" | undefined;
@@ -1,6 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  import { IHookFormsInputProps } from '../../../shared/models/components/base.model';
3
- export interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange'> {
3
+ import { type IconName } from 'lucide-react/dynamic';
4
+ export interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' | 'value' | 'onChange' | 'leftIcon' | 'rightIcon'> {
4
5
  /** Number of input boxes (2-8) */
5
6
  length?: number;
6
7
  /** Current value as string */
@@ -19,6 +20,8 @@ export interface ILockCodeInputProps extends Omit<IHookFormsInputProps, 'type' |
19
20
  allowPaste?: boolean;
20
21
  /** Custom separator between inputs */
21
22
  separator?: string;
23
+ leftIcon?: IconName;
24
+ rightIcon?: IconName;
22
25
  }
23
26
  /**
24
27
  * Dynamic Lock Code Input Component
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { ISelectProps } from "../../../shared/models/components/base.model";
1
+ import React from 'react';
2
+ import { ISelectProps } from '../../../shared/models/components/base.model';
3
3
  /**
4
4
  * Primary UI component for user interaction
5
5
  */
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ className?: string;
4
+ };
5
+ export default function HorizontalRule({ className }: Props): React.JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export { default as HorizontalRule } from './HorizontalRule';
@@ -5,6 +5,7 @@ import { IconVariant } from '../../../shared/models/components/base.model';
5
5
  type IconProps = {
6
6
  size?: string;
7
7
  icon: IconName | keyof typeof customIcons;
8
+ fill?: string;
8
9
  color?: string;
9
10
  variant?: IconVariant;
10
11
  strokeWidth?: number;
@@ -1 +1 @@
1
- export declare const handleFontTypes: (_type: string | undefined) => "text-12s font-medium" | "text-12s font-semibold" | "text-12s font-extrabold" | "text-14s font-medium" | "text-2xl font-semibold leading-6 text-[#333333]" | "text-xl font-semibold leading-6 text-[#333333]" | "text-14s font-semibold" | "text-14s font-extrabold" | "text-28s font-medium" | "text-28s font-semibold" | "text-28s font-extrabold" | "text-10s font-medium" | "text-10s font-semibold" | "text-10s font-extrabold" | "text-base font-normal leading-[1.875rem] text-[#333333] opacity-50" | "text-base text-xl leading-[1.875rem] text-[#333333]" | "font-semibold text-btn-black text-42s" | "font-semibold text-42s" | "font-normal text-lg text-gray-95" | "font-semibold text-btn-black text-lg" | "font-bold text-btn-black text-14s" | "font-bold text-btn-black text-base" | "font-normal text-gray-95 text-base" | "font-semibold text-black-540 text-18s" | undefined;
1
+ export declare const handleFontTypes: (_type: string | undefined) => "text-12s font-medium" | "text-12s font-semibold" | "text-12s font-extrabold" | "text-14s font-medium" | "text-2xl font-semibold leading-6 text-content-default" | "text-xl font-semibold leading-6 text-content-default" | "text-14s font-semibold" | "text-14s font-extrabold" | "text-28s font-medium" | "text-28s font-semibold" | "text-28s font-extrabold" | "text-10s font-medium" | "text-10s font-semibold" | "text-10s font-extrabold" | "text-base font-normal leading-[1.875rem] text-content-default opacity-50" | "text-base text-xl leading-[1.875rem] text-content-default" | "font-semibold text-btn-black text-42s" | "font-semibold text-42s" | "font-normal text-lg text-gray-95" | "font-semibold text-btn-black text-lg" | "font-bold text-btn-black text-14s" | "font-bold text-btn-black text-base" | "font-normal text-gray-95 text-base" | "font-semibold text-content-default text-18s" | undefined;
@@ -1,13 +1,13 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface HeadingProps {
3
3
  /**
4
4
  * Choose heading type
5
5
  */
6
- type?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
6
+ type?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | undefined;
7
7
  /**
8
8
  * Use to decide the color
9
9
  */
10
- colorType?: "white" | "dark" | "gray" | undefined;
10
+ colorType?: 'white' | 'dark' | 'gray' | undefined;
11
11
  /**
12
12
  * Heading contents
13
13
  */
@@ -70,4 +70,5 @@ export { default as MultiSelectFormGen } from './MultiSelectFormGen';
70
70
  export { default as ButtonGroupMultiSelectWithInputsFormGen } from './ButtonGroupWithInputsFormGen/ButtonGroupMultiSelectWithInputsFormGen';
71
71
  export { default as ButtonGroupWithMultiSelectFormGen } from './ButtonGroupFormGen/ButtonGroupWithMultiSelectFormGen';
72
72
  export { default as FilterButton } from './FilterButtonGroup/FilterButton';
73
- export { MiniTimelineCard } from "./MiniTimelineCard";
73
+ export { MiniTimelineCard } from './MiniTimelineCard';
74
+ export * from './HorizontalRule';
@@ -25,6 +25,7 @@ export declare const Classes: {
25
25
  common: string;
26
26
  lightGray: string;
27
27
  lightGrayHalf: string;
28
+ primaryBorder: string;
28
29
  gray: string;
29
30
  white: string;
30
31
  black: string;
@@ -66,9 +67,9 @@ export declare enum LableClasses {
66
67
  fontSemiBold = "text-21s font-semibold"
67
68
  }
68
69
  export declare enum SelectClasses {
69
- default = "form-select flex w-full mt-1 px-3 py-3 bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:outline-none focus:border-sky-500 focus:ring-sky-500 block w-full rounded-md sm:text-sm focus:ring-1",
70
- small = "form-select border border-gray-160 border-solid text-13s text-black-760 rounded-[3px] appearence-none placeholderColor-gray shadow-none",
71
- regular = "form-select flex w-full mt-1 px-3 py-3 bg-white border shadow-sm border-slate-300 placeholder-slate-400 focus:outline-none focus:border-sky-500 focus:ring-sky-500 block w-full rounded-md sm:text-sm focus:ring-1",
70
+ default = "form-select flex w-full mt-1 px-3 py-2 bg-background-default border shadow-sm border-border-default placeholder:text-content-deemphasized focus:outline-none [&:is(:hover,:focus)]:border-state-focushover-border block w-full rounded-md focus:ring-0 text-14s leading-[22px]",
71
+ small = "form-select border border-border-default text-13s text-content-default rounded-[3px] appearence-none placeholder:text-content-deemphasized shadow-none",
72
+ regular = "form-select flex w-full mt-1 px-3 py-3 bg-background-default border shadow-sm border-border-default placeholder:text-content-deemphasized focus:outline-none [&:is(:hover,:focus)]:border-state-focushover-border block w-full rounded-md sm:text-sm focus:ring-0",
72
73
  wrapper = "flex w-full flex-col relative",
73
74
  error = "absolute top-[100%]"
74
75
  }
@@ -18,17 +18,17 @@ export declare const themeConfigs: {
18
18
  };
19
19
  extend: {
20
20
  animation: {
21
- "spin-slow": string;
21
+ 'spin-slow': string;
22
22
  };
23
23
  transitionDelay: {
24
- "150": string;
24
+ '150': string;
25
25
  };
26
26
  screens: {
27
27
  sm: string;
28
28
  md: string;
29
29
  lg: string;
30
30
  xl: string;
31
- "2xl": string;
31
+ '2xl': string;
32
32
  };
33
33
  borderColor: {
34
34
  tcustomerror: string;
@@ -36,7 +36,7 @@ export declare const themeConfigs: {
36
36
  colors: {
37
37
  transparent: string;
38
38
  current: string;
39
- "sky-light-blue": string;
39
+ 'sky-light-blue': string;
40
40
  btn: {
41
41
  black: string;
42
42
  disable: string;
@@ -240,17 +240,15 @@ export declare const themeConfigs: {
240
240
  };
241
241
  };
242
242
  state: {
243
+ focushover: {
244
+ foreground: string;
245
+ background: string;
246
+ border: string;
247
+ };
243
248
  active: {
244
- dark: {
245
- foreground: string;
246
- background: string;
247
- border: string;
248
- };
249
- light: {
250
- foreground: string;
251
- background: string;
252
- border: string;
253
- };
249
+ foreground: string;
250
+ background: string;
251
+ border: string;
254
252
  };
255
253
  disabled: {
256
254
  foreground: string;
@@ -275,29 +273,29 @@ export declare const themeConfigs: {
275
273
  gray600: string;
276
274
  };
277
275
  fontSize: {
278
- "8s": string[];
279
- "9s": string[];
280
- "10s": string[];
281
- "11s": string[];
282
- "12s": string[];
283
- "13s": string[];
284
- "14s": string[];
285
- "21s": string[];
286
- "16s": string[];
287
- "25s": string[];
288
- "17s": string[];
289
- "18s": string[];
290
- "19s": string[];
291
- "20s": string[];
292
- "24s": string[];
293
- "24-32s": string[];
294
- "26s": string[];
295
- "28s": string[];
296
- "32s": string[];
297
- "42s": string[];
298
- "40s": string[];
299
- "48s": string[];
300
- "54s": string[];
276
+ '8s': string[];
277
+ '9s': string[];
278
+ '10s': string[];
279
+ '11s': string[];
280
+ '12s': string[];
281
+ '13s': string[];
282
+ '14s': string[];
283
+ '21s': string[];
284
+ '16s': string[];
285
+ '25s': string[];
286
+ '17s': string[];
287
+ '18s': string[];
288
+ '19s': string[];
289
+ '20s': string[];
290
+ '24s': string[];
291
+ '24-32s': string[];
292
+ '26s': string[];
293
+ '28s': string[];
294
+ '32s': string[];
295
+ '42s': string[];
296
+ '40s': string[];
297
+ '48s': string[];
298
+ '54s': string[];
301
299
  };
302
300
  height: {
303
301
  sm: string;
@@ -308,7 +306,7 @@ export declare const themeConfigs: {
308
306
  36: string;
309
307
  38: string;
310
308
  40: string;
311
- "60px": string;
309
+ '60px': string;
312
310
  92: string;
313
311
  78: string;
314
312
  48: string;
@@ -1,7 +1,7 @@
1
1
  import React, { InputHTMLAttributes, ReactNode, SelectHTMLAttributes, TextareaHTMLAttributes } from 'react';
2
- import { IAdditionalClassesProp, IChildrenProp, IIconTypeProp, AlignmentType, IOnClickEventProps, TyphoTypes, TyphoComponents, IconHoverColorTypes, MessageTypes, InputType, IconType, LableTypes, ToolTipProps, selectedValue } from './common.model';
2
+ import { IAdditionalClassesProp, IChildrenProp, IIconTypeProp, IIconV2Props, AlignmentType, IOnClickEventProps, TyphoTypes, TyphoComponents, IconHoverColorTypes, MessageTypes, InputType, IconType, LableTypes, ToolTipProps, selectedValue, IconNameType } from './common.model';
3
3
  export type VariantTypes = 'large' | 'small' | 'extraSmall' | 'largeOutlined' | 'smallOutlined' | 'extraSmallOutlined' | 'default' | 'defaultOutlined' | 'primaryBlue' | 'primaryWhite' | 'primaryWhiteDisable' | 'primaryRedBtn' | 'primaryRedBgBtn' | 'primaryWhiteSelected' | 'primaryWhiteNoBoader' | 'primaryWhiteIcon' | 'primaryRed' | 'primaryFilterSelected' | 'primaryBlueFilter' | 'smallWhite' | 'smallWhiteSelected' | 'smallBlue' | 'primaryNoBoader' | 'primaryBlue10' | 'noBoaderbgTransparent' | undefined;
4
- export interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
4
+ export interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IOnClickEventProps {
5
5
  /**
6
6
  * Set the button type
7
7
  */
@@ -27,9 +27,10 @@ export interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIc
27
27
  */
28
28
  iconAlignment?: AlignmentType;
29
29
  /**
30
- * Set icon classes
30
+ * Set icon name
31
31
  */
32
- iconClass?: string;
32
+ icon?: IconNameType;
33
+ iconProps?: IIconV2Props;
33
34
  enableBagage?: boolean;
34
35
  bagageProps?: BagageProps;
35
36
  width?: string;
@@ -168,6 +169,8 @@ export interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputEleme
168
169
  iconClass?: string;
169
170
  isIcon?: boolean;
170
171
  icon?: string;
172
+ iconProps?: IIconV2Props;
173
+ infoIconProps?: IIconV2Props;
171
174
  iconClassRight?: string;
172
175
  iconClassLeft?: string;
173
176
  iconOnClick?: () => void;
@@ -605,7 +608,7 @@ export interface ICardProps {
605
608
  /**
606
609
  * Set button type
607
610
  */
608
- cardType?: 'lightGray' | 'lightGrayHalf' | 'gray' | 'white' | 'black' | 'whiteBorder' | 'bgLightBlue';
611
+ cardType?: 'primaryBorder' | 'lightGray' | 'lightGrayHalf' | 'gray' | 'white' | 'black' | 'whiteBorder' | 'bgLightBlue';
609
612
  /**
610
613
  * Optional for additional classes
611
614
  */
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { selectType, VariantTypes } from './base.model';
2
+ import { IconVariant, selectType, VariantTypes } from './base.model';
3
3
  import { ColumnDef, OnChangeFn, PaginationState, SortingState } from '@tanstack/react-table';
4
4
  import { ITodoToggleRequestParams } from '../../../components/SideBarListView/todos';
5
5
  import { IconName } from 'lucide-react/dynamic';
@@ -24,6 +24,15 @@ export interface IIconTypeProp {
24
24
  */
25
25
  iconColor?: IconColorTypes;
26
26
  }
27
+ export interface IIconV2Props {
28
+ color?: string;
29
+ size?: string;
30
+ variant?: IconVariant;
31
+ strokeWidth?: number;
32
+ absoluteStrokeWidth?: boolean;
33
+ additionalClasses?: string;
34
+ }
35
+ export type IconNameType = IconName | keyof typeof customIcons;
27
36
  export interface IAdditionalClassesProp {
28
37
  /**
29
38
  * Optional | Set the additional classes