dibk-design 10.3.4 → 10.4.0

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
@@ -7,10 +7,10 @@ import { ReactPortal } from 'react';
7
7
 
8
8
  export declare const Accordion: ({ title, color, expanded: expandedProp, onToggleExpand, buttonProps, noMargin, initialized: initializedProp, children, ...rest }: AccordionProps) => JSX.Element;
9
9
 
10
- declare type AccordionColor = "default" | "secondary" | "info" | "contrast";
10
+ declare type AccordionColor = "primary" | "neutral" | "secondary" | "info";
11
11
 
12
12
  declare interface AccordionProps {
13
- title?: string;
13
+ title?: ReactNode;
14
14
  color?: AccordionColor;
15
15
  expanded?: boolean;
16
16
  onToggleExpand?: () => void;
@@ -166,7 +166,7 @@ export declare const Dialog: ({ maxWidth, noPadding, title, onClickOutside, moda
166
166
  declare interface DialogProps {
167
167
  maxWidth?: string;
168
168
  noPadding?: boolean;
169
- title?: React.ReactNode;
169
+ title?: React.ReactNode | string;
170
170
  onClickOutside: () => void;
171
171
  modal?: boolean;
172
172
  attachTo?: "left" | "right" | "top" | "bottom" | string;
@@ -222,23 +222,21 @@ declare interface HeaderProps {
222
222
  children?: default_2.ReactNode;
223
223
  }
224
224
 
225
- export declare const InfoBox: ({ title, children, variant, fullScreen, isAlert, noBorder, hideIcon, icon, className, }: InfoBoxProps) => JSX.Element;
225
+ export declare const InfoBox: ({ title, children, variant, fullScreen, noBorder, hideIcon, icon, }: InfoBoxProps) => JSX.Element;
226
226
 
227
227
  declare interface InfoBoxProps {
228
- title?: default_2.ReactNode;
228
+ title: default_2.ReactNode | string;
229
229
  children?: default_2.ReactNode;
230
230
  variant?: InfoBoxVariant;
231
231
  fullScreen?: boolean;
232
- isAlert?: boolean;
233
232
  noBorder?: boolean;
234
233
  hideIcon?: boolean;
235
234
  icon?: default_2.ReactNode;
236
- className?: string;
237
235
  }
238
236
 
239
- declare type InfoBoxVariant = "info" | "warning" | "error" | "tip" | "success";
237
+ declare type InfoBoxVariant = "secondary" | "warning" | "error" | "info" | "success";
240
238
 
241
- export declare const InputField: ({ id, onChange, onBlur, onFocus, name, type, disabled, required, readOnly, width, value, defaultValue, elementKey, label, buttonColor, buttonContent, actionButtonContent, actionButtonIconLeft, actionButtonIconRight, actionButtonOnClick, actionButtonDisabled, actionButtonAriaLabel, selectedFileName, placeholder, min, max, role, "aria-describedby": ariaDescribedBy, "aria-autocomplete": ariaAutocomplete, hasErrors, errorMessage, noMargin, caption, }: InputFieldProps) => JSX.Element;
239
+ export declare const InputField: ({ id, onChange, onBlur, onFocus, name, type, disabled, required, readOnly, width, value, defaultValue, elementKey, label, actionButtonColor, actionButtonContent, actionButtonIconLeft, actionButtonIconRight, actionButtonOnClick, actionButtonDisabled, actionButtonAriaLabel, selectedFileName, placeholder, min, max, role, "aria-describedby": ariaDescribedBy, "aria-autocomplete": ariaAutocomplete, hasErrors, errorMessage, noMargin, caption, }: InputFieldProps) => JSX.Element;
242
240
 
243
241
  declare interface InputFieldProps {
244
242
  id: string;
@@ -255,9 +253,8 @@ declare interface InputFieldProps {
255
253
  defaultValue?: string | number | Date;
256
254
  elementKey?: string;
257
255
  label?: default_2.ReactNode;
258
- buttonColor?: "primary" | "secondary";
259
- buttonContent?: string;
260
- actionButtonContent?: default_2.ReactNode;
256
+ actionButtonColor?: "primary" | "secondary";
257
+ actionButtonContent?: string;
261
258
  actionButtonIconLeft?: default_2.ReactNode;
262
259
  actionButtonIconRight?: default_2.ReactNode;
263
260
  actionButtonOnClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
@@ -609,7 +606,7 @@ declare interface NavigationBarProps {
609
606
  logoLinkTitle?: string;
610
607
  openLogoLinkInNewTab?: boolean;
611
608
  theme?: CustomThemeName;
612
- color?: "primary" | "secondary" | "neutral";
609
+ color?: "secondary" | "neutral";
613
610
  children?: default_2.ReactNode;
614
611
  }
615
612
 
@@ -626,7 +623,7 @@ declare interface PaperProps {
626
623
  children?: default_2.ReactNode;
627
624
  }
628
625
 
629
- export declare const Paragraph: ({ id, htmlTag, variant, children, className, }: ParagraphProps) => default_2.ReactElement<{
626
+ export declare const Paragraph: ({ id, htmlTag, variant, noMargin, children, }: ParagraphProps) => default_2.ReactElement<{
630
627
  className: string;
631
628
  id: string | undefined;
632
629
  }, string | default_2.JSXElementConstructor<any>>;
@@ -635,8 +632,8 @@ declare interface ParagraphProps {
635
632
  id?: string;
636
633
  htmlTag?: keyof JSX_2.IntrinsicElements;
637
634
  variant?: ParagraphVariant;
635
+ noMargin?: boolean;
638
636
  children?: default_2.ReactNode;
639
- className?: string;
640
637
  }
641
638
 
642
639
  declare type ParagraphVariant = "lead" | "large" | "small";
@@ -690,8 +687,8 @@ declare interface RadioButtonListItemProps {
690
687
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
691
688
  compact?: boolean;
692
689
  hasErrors?: boolean;
693
- 'aria-controls'?: string;
694
- 'aria-describedby'?: string;
690
+ "aria-controls"?: string;
691
+ "aria-describedby"?: string;
695
692
  children?: React.ReactNode;
696
693
  }
697
694
 
@@ -723,7 +720,19 @@ declare interface SelectPropsBase {
723
720
  "aria-describedby"?: string;
724
721
  hasErrors?: boolean;
725
722
  errorMessage?: default_2.ReactNode;
726
- size?: "small" | "medium";
723
+ formatOptionLabel?: (option: Option_2, meta: {
724
+ context: "menu" | "value";
725
+ }) => default_2.ReactNode;
726
+ actionButtonColor?: "primary" | "secondary";
727
+ actionButtonContent?: string;
728
+ actionButtonIconLeft?: default_2.ReactNode;
729
+ actionButtonIconRight?: default_2.ReactNode;
730
+ actionButtonOnClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
731
+ actionButtonDisabled?: boolean;
732
+ actionButtonAriaLabel?: string;
733
+ backgroundColor?: string;
734
+ textColor?: string;
735
+ placeholderColor?: string;
727
736
  }
728
737
 
729
738
  declare interface SingleSelectProps extends SelectPropsBase {
@@ -753,7 +762,7 @@ declare interface StepProps {
753
762
  direction?: "vertical" | "horizontal";
754
763
  }
755
764
 
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;
765
+ 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, }: TableProps<T>) => JSX.Element;
757
766
 
758
767
  declare type TableColumn<T> = {
759
768
  key: string;