dfh-ui-library 1.3.37 → 1.3.39

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,7 +1,8 @@
1
1
  import React from "react";
2
2
  import { ColumnDef, OnChangeFn, SortingState, PaginationState } from "@tanstack/react-table";
3
3
  import { PaginationProps } from "../../shared/models/components/common.model";
4
- export declare function Table({ data, columns, sorting, onSortingChange, pagination, onPaginationChange, totalRecords, isManualPagination, isManualSorting, rowClick, }: {
4
+ export declare function Table({ data, columns, sorting, onSortingChange, pagination, onPaginationChange, totalRecords, isManualPagination, // true for server-side pagination
5
+ isManualSorting, rowClick, }: {
5
6
  data: any[];
6
7
  columns: ColumnDef<any>[];
7
8
  sorting?: any;
@@ -25,3 +25,4 @@ export { default as TagSelect } from "./TagSelect";
25
25
  export { default as Icon } from "./Media/Icon";
26
26
  export { Table } from "./Gird";
27
27
  export { Tab, TabList, TabPanel } from "./Tab";
28
+ export { default as PanelCard } from "./PanelCard";
package/dist/index.d.ts CHANGED
@@ -667,6 +667,14 @@ interface ITabPanelProps extends AdditionalClassesProp {
667
667
  /** Identifier for the tab panel. */
668
668
  index: string;
669
669
  }
670
+ interface IPanelCardProps extends AdditionalClassesProp {
671
+ /** Header title displayed on header area of the card. */
672
+ headerTitle: string;
673
+ /** Controllers displayed on header area of the card. */
674
+ controllers?: React.ReactNode;
675
+ /** Content displayed within the panel. */
676
+ content?: React.ReactNode;
677
+ }
670
678
 
671
679
  declare const Button: ({ type, isDisabled, buttonLabel, iconType, iconColor, iconAlignment, isIconEnabled, variants, additionalClasses, iconClass, enableBagage, bagageProps, onClick, }: IButtonProps) => React__default.JSX.Element;
672
680
 
@@ -802,7 +810,8 @@ declare const ButtonGroup: React__default.FC<ButtonGroupProps>;
802
810
  */
803
811
  declare const Icon: React__default.FC<IIconProps>;
804
812
 
805
- declare function Table({ data, columns, sorting, onSortingChange, pagination, onPaginationChange, totalRecords, isManualPagination, isManualSorting, rowClick, }: {
813
+ declare function Table({ data, columns, sorting, onSortingChange, pagination, onPaginationChange, totalRecords, isManualPagination, // true for server-side pagination
814
+ isManualSorting, rowClick, }: {
806
815
  data: any[];
807
816
  columns: ColumnDef<any>[];
808
817
  sorting?: any;
@@ -821,6 +830,8 @@ declare const TabList: React__default.FC<ITabListProps>;
821
830
 
822
831
  declare const TabPanel: React__default.FC<ITabPanelProps>;
823
832
 
833
+ declare const PanelCard: React__default.FC<IPanelCardProps>;
834
+
824
835
  interface UseSchemaProcessorProps {
825
836
  schema: ISchema[];
826
837
  externalSetComponents: (data: IComponent[]) => void;
@@ -855,4 +866,4 @@ declare function useSorting(initialField?: string, initialOrder?: string): {
855
866
  field: string;
856
867
  };
857
868
 
858
- export { Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, Card, Checkbox as CheckBox, ClickedAction, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, Heading, Icon, IconInput, ImageInput, ImagePreview, Input, type InputType, InputValidation, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, type OptionProps, PhoneNumberInput, RadioButton, Row, SearchDropdownWithButton, Select, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, usePagination, useSorting };
869
+ export { Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, Card, Checkbox as CheckBox, ClickedAction, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, Heading, Icon, IconInput, ImageInput, ImagePreview, Input, type InputType, InputValidation, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, type OptionProps, PanelCard, PhoneNumberInput, RadioButton, Row, SearchDropdownWithButton, Select, Tab, TabList, TabPanel, Table, TagSelect as TagDropdown, TagSelect, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes, usePagination, useSorting };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfh-ui-library",
3
- "version": "1.3.37",
3
+ "version": "1.3.39",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c --bundleConfigAsCjs --environment NODE_ENV:production",