dfh-ui-library 1.13.6 → 1.13.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,11 @@
1
1
  import React from "react";
2
+ import { AccountPopoverMenuItem } from "../../shared/models/components/common.model";
2
3
  interface ArrowDropdownProps {
3
4
  username?: string;
4
5
  themeColor?: string;
5
6
  handleLogout?: () => void;
6
7
  userImage?: string;
8
+ accountPopoverMenuItems?: AccountPopoverMenuItem[];
7
9
  }
8
10
  declare const ArrowDropdown: React.FC<ArrowDropdownProps>;
9
11
  export default ArrowDropdown;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { TabNavigationProps } from "../../shared/models/components/common.model";
3
- declare const NavBar: ({ navigationData, additionalClasses, navItemClick, isEnableLogout, handleLogout, userImage, username, themeColor, }: TabNavigationProps) => React.JSX.Element;
3
+ declare const NavBar: ({ navigationData, additionalClasses, navItemClick, userImage, username, themeColor, accountPopoverMenuItems }: TabNavigationProps) => React.JSX.Element;
4
4
  export default NavBar;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { PhoneNumberInputProps } from "../../shared/models/components/common.model";
3
+ import 'react-phone-number-input/style.css';
4
+ import './phoneInput.css';
5
+ declare const PhoneNumberInput3: React.FC<PhoneNumberInputProps>;
6
+ export default PhoneNumberInput3;
@@ -1,2 +1,3 @@
1
1
  export { default as PhoneNumberInput } from "./PhoneNumberInput";
2
2
  export { default as PhoneNumberInput2 } from "./PhoneNumberInput2";
3
+ export { default as PhoneNumberInput3 } from "./PhoneNumberInput3";
@@ -14,7 +14,7 @@ export { default as ImagePreview } from "./ImagePreview";
14
14
  export { default as DatePicker } from "./Datepicker";
15
15
  export { default as InputDatePicker } from "./InputDatepicker";
16
16
  export { Row } from "./core";
17
- export { PhoneNumberInput, PhoneNumberInput2 } from "./PhoneNumberInput";
17
+ export { PhoneNumberInput, PhoneNumberInput2, PhoneNumberInput3 } from "./PhoneNumberInput";
18
18
  export { Tooltip } from "./Tooltip";
19
19
  export { default as DialogBox } from "../components/core/DialogBox";
20
20
  export { default as Modal } from "../components/Modal";
@@ -2,7 +2,7 @@ import "./index.css";
2
2
  export * from "./components";
3
3
  export * from "./hooks";
4
4
  export { VariantTypes, BorderType, LogoProps, } from "./shared/models/components/base.model";
5
- export { DropdownSearchProps, ClickedAction, TimelineEventProps, ListMasterDataProps, BtnOptionDropdown, BADGETYPE, OptionProps, NoteItemProps, NoteChildrenProps, NoteProps, UrgentDataProps, MessageProps, InputType, BadgeColorVariant, ISolutionvalues, } from "./shared/models/components/common.model";
5
+ export { DropdownSearchProps, ClickedAction, TimelineEventProps, ListMasterDataProps, BtnOptionDropdown, BADGETYPE, OptionProps, NoteItemProps, NoteChildrenProps, NoteProps, UrgentDataProps, MessageProps, InputType, BadgeColorVariant, ISolutionvalues, AccountPopoverMenuItem } from "./shared/models/components/common.model";
6
6
  export { ColumnDef, SortingState } from "@tanstack/react-table";
7
7
  export { usePagination } from "./hooks/usePagination";
8
8
  export { useSorting } from "./hooks/useSorting";
@@ -96,14 +96,20 @@ export interface FileNameProps {
96
96
  name: string;
97
97
  ext: string;
98
98
  }
99
+ export interface AccountPopoverMenuItem {
100
+ label: string;
101
+ onClick: () => void;
102
+ isVisible: boolean;
103
+ isDisabled?: boolean;
104
+ additionalClasses?: string;
105
+ }
99
106
  export interface TabNavigationProps extends AdditionalClassesProp {
100
107
  navigationData: any[];
101
108
  navItemClick?: (url?: string) => void;
102
- isEnableLogout?: boolean;
103
- handleLogout?: () => void;
104
109
  userImage?: string;
105
110
  username?: string;
106
111
  themeColor?: string;
112
+ accountPopoverMenuItems?: AccountPopoverMenuItem[];
107
113
  }
108
114
  export interface TabNavItemProps {
109
115
  isActive: boolean;
package/dist/index.d.ts CHANGED
@@ -82,14 +82,20 @@ interface FileNameProps {
82
82
  name: string;
83
83
  ext: string;
84
84
  }
85
+ interface AccountPopoverMenuItem {
86
+ label: string;
87
+ onClick: () => void;
88
+ isVisible: boolean;
89
+ isDisabled?: boolean;
90
+ additionalClasses?: string;
91
+ }
85
92
  interface TabNavigationProps extends AdditionalClassesProp$1 {
86
93
  navigationData: any[];
87
94
  navItemClick?: (url?: string) => void;
88
- isEnableLogout?: boolean;
89
- handleLogout?: () => void;
90
95
  userImage?: string;
91
96
  username?: string;
92
97
  themeColor?: string;
98
+ accountPopoverMenuItems?: AccountPopoverMenuItem[];
93
99
  }
94
100
  interface MessageProps {
95
101
  type: string;
@@ -1366,7 +1372,7 @@ declare const Logo: React__default.FC<LogoProps>;
1366
1372
 
1367
1373
  declare const LoadingSpinner: React__default.FC<AdditionalClassesProp$1>;
1368
1374
 
1369
- declare const NavBar: ({ navigationData, additionalClasses, navItemClick, isEnableLogout, handleLogout, userImage, username, themeColor, }: TabNavigationProps) => React__default.JSX.Element;
1375
+ declare const NavBar: ({ navigationData, additionalClasses, navItemClick, userImage, username, themeColor, accountPopoverMenuItems }: TabNavigationProps) => React__default.JSX.Element;
1370
1376
 
1371
1377
  declare const Message: ({ type, text, onClose }: MessageProps) => React__default.JSX.Element | undefined;
1372
1378
 
@@ -1388,6 +1394,8 @@ declare const PhoneNumberInput: React__default.FC<PhoneNumberInputProps>;
1388
1394
 
1389
1395
  declare const PhoneNumberInput2: React__default.FC<PhoneNumberInputProps>;
1390
1396
 
1397
+ declare const PhoneNumberInput3: React__default.FC<PhoneNumberInputProps>;
1398
+
1391
1399
  /**
1392
1400
  * Primary UI component for Tooltip
1393
1401
  */
@@ -1892,4 +1900,4 @@ declare const themeConfigs: {
1892
1900
  plugins: any[];
1893
1901
  };
1894
1902
 
1895
- export { BADGETYPE, Badge, type BadgeColorVariant, BorderType, Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupMultiSelect, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithUpload, Card, Checkbox as CheckBox, CheckBoxComponent, ClickedAction, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, DynamicDualInputTextGroupFormGen, FilterButtonGroup, Heading, HistoryDetails, type ISolutionvalues, Icon, IconInput, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, InputDatePicker, type InputType, InputValidation, InputsGroup, Label, type ListMasterDataProps, ListRow, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, MultiSelectFormGen, NavBar, type NoteChildrenProps, NoteEditor, type NoteHistoryProps, type NoteItemProps, type NoteProps, type OptionProps, PanelCard, PhoneNumberInput, PhoneNumberInput2, PreviousDataBadge, ProgressBar, RadioButton, RegularDropdown, Row, SearchDropdownWithButton, Select, SelectUserWithButton, SideBarListView, Signature, SortDropdown, Spinner, SsnInput, Stepper, Tab, TabButton, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, type TimelineEventProps, Todos, Tooltip, TooltipWithChildren, Typho, Typhography, TyphographyFormGen, UrgentChallenges, type UrgentDataProps, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, VersionDateDropdown, themeConfigs, usePagination, useSorting };
1903
+ export { type AccountPopoverMenuItem, BADGETYPE, Badge, type BadgeColorVariant, BorderType, Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, ButtonGroupFormGen, ButtonGroupMultiSelect, ButtonGroupWithInputs, ButtonGroupWithInputsFormGen, ButtonGroupWithUpload, Card, Checkbox as CheckBox, CheckBoxComponent, ClickedAction, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, DynamicDualInputTextGroupFormGen, FilterButtonGroup, Heading, HistoryDetails, type ISolutionvalues, Icon, IconInput, ImageInput, ImagePreview, IndeterminateCheckbox, InfoCard, Input, InputDatePicker, type InputType, InputValidation, InputsGroup, Label, type ListMasterDataProps, ListRow, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, MultiSelectFormGen, NavBar, type NoteChildrenProps, NoteEditor, type NoteHistoryProps, type NoteItemProps, type NoteProps, type OptionProps, PanelCard, PhoneNumberInput, PhoneNumberInput2, PhoneNumberInput3, PreviousDataBadge, ProgressBar, RadioButton, RegularDropdown, Row, SearchDropdownWithButton, Select, SelectUserWithButton, SideBarListView, Signature, SortDropdown, Spinner, SsnInput, Stepper, Tab, TabButton, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Timeline, type TimelineEventProps, Todos, Tooltip, TooltipWithChildren, Typho, Typhography, TyphographyFormGen, UrgentChallenges, type UrgentDataProps, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, VersionDateDropdown, themeConfigs, usePagination, useSorting };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.13.6",
3
+ "version": "1.13.8",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",