dibk-design 10.3.2 → 10.3.4

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/index.d.ts CHANGED
@@ -127,6 +127,13 @@ declare interface ContentBoxProps {
127
127
  href?: string | null;
128
128
  }
129
129
 
130
+ declare type CustomThemeName = keyof typeof customThemes;
131
+
132
+ declare const customThemes: {
133
+ dibk: ThemeProps;
134
+ arbeidstilsynet: ThemeProps;
135
+ };
136
+
130
137
  export declare const DescriptionDetails: ({ compact, titleWidth, children, }: DescriptionDetailsProps) => JSX.Element;
131
138
 
132
139
  declare interface DescriptionDetailsProps {
@@ -215,13 +222,14 @@ declare interface HeaderProps {
215
222
  children?: default_2.ReactNode;
216
223
  }
217
224
 
218
- export declare const InfoBox: ({ title, children, variant, fullScreen, noBorder, hideIcon, icon, className, }: InfoBoxProps) => JSX.Element;
225
+ export declare const InfoBox: ({ title, children, variant, fullScreen, isAlert, noBorder, hideIcon, icon, className, }: InfoBoxProps) => JSX.Element;
219
226
 
220
227
  declare interface InfoBoxProps {
221
228
  title?: default_2.ReactNode;
222
229
  children?: default_2.ReactNode;
223
230
  variant?: InfoBoxVariant;
224
231
  fullScreen?: boolean;
232
+ isAlert?: boolean;
225
233
  noBorder?: boolean;
226
234
  hideIcon?: boolean;
227
235
  icon?: default_2.ReactNode;
@@ -594,14 +602,13 @@ declare interface MultipleSelectProps extends SelectPropsBase {
594
602
  defaultValue?: (string | number)[];
595
603
  }
596
604
 
597
- export declare const NavigationBar: ({ logoLink, logoLinkTitle, openLogoLinkInNewTab, theme, compact, color, }: NavigationBarProps) => JSX.Element;
605
+ export declare const NavigationBar: ({ logoLink, logoLinkTitle, openLogoLinkInNewTab, theme, color, }: NavigationBarProps) => JSX.Element;
598
606
 
599
607
  declare interface NavigationBarProps {
600
608
  logoLink?: string;
601
609
  logoLinkTitle?: string;
602
610
  openLogoLinkInNewTab?: boolean;
603
- theme?: ThemeProps;
604
- compact?: boolean;
611
+ theme?: CustomThemeName;
605
612
  color?: "primary" | "secondary" | "neutral";
606
613
  children?: default_2.ReactNode;
607
614
  }
@@ -746,7 +753,7 @@ declare interface StepProps {
746
753
  direction?: "vertical" | "horizontal";
747
754
  }
748
755
 
749
- export declare const Table: <T extends object>({ columns, data, loading, loadingAriaLabel, getRowId, selectionType, selectionLabel, selectedRowId, onSelect, selectedRowIds, onSelectMany, onRowClick, pageSize, page, defaultPage, onPageChange, pageSizeOptions, defaultPageSize, onPageSizeChange, }: TableProps<T>) => JSX.Element;
756
+ export declare const Table: <T extends object>({ columns, data, loading, loadingAriaLabel, getRowId, selectionType, selectionLabel, selectedRowId, onSelect, selectedRowIds, onSelectMany, onRowClick, pageSize, page, defaultPage, onPageChange, totalCount, totalPages: totalPagesProp, pageSizeOptions, defaultPageSize, onPageSizeChange, }: TableProps<T>) => JSX.Element;
750
757
 
751
758
  declare type TableColumn<T> = {
752
759
  key: string;
@@ -775,6 +782,8 @@ declare interface TableProps<T> {
775
782
  page?: number;
776
783
  defaultPage?: number;
777
784
  onPageChange?: (page: number) => void;
785
+ totalCount?: number;
786
+ totalPages?: number;
778
787
  pageSizeOptions?: number[];
779
788
  defaultPageSize?: number;
780
789
  onPageSizeChange?: (size: number) => void;
@@ -850,7 +859,6 @@ declare interface TextareaProps {
850
859
  declare interface ThemeProps {
851
860
  appName: string;
852
861
  logo: string;
853
- logoCompact?: string;
854
862
  logoPadding?: string;
855
863
  colors?: {
856
864
  [key: string]: string;