dibk-design 10.1.0 → 10.3.2

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
@@ -23,7 +23,7 @@ declare interface AccordionProps {
23
23
 
24
24
  declare type ArrowDirection = "none" | "left" | "right";
25
25
 
26
- export declare const Button: ({ content, color, size, arrow, disabled, inputType, defaultChecked, hasErrors, noHover, rounded, noMargin, href, children, iconLeft, iconRight, className: classNameProp, ...rest }: ButtonProps) => JSX.Element;
26
+ export declare const Button: ({ content, color, size, arrow, disabled, inputType, defaultChecked, hasErrors, noHover, noMargin, href, children, iconLeft, iconRight, className: classNameProp, ...rest }: ButtonProps) => JSX.Element;
27
27
 
28
28
  declare type ButtonColor = "primary" | "secondary" | "neutral";
29
29
 
@@ -39,7 +39,6 @@ declare interface ButtonProps extends Omit<default_2.ButtonHTMLAttributes<HTMLBu
39
39
  hasErrors?: boolean;
40
40
  "aria-describedby"?: string;
41
41
  noHover?: boolean;
42
- rounded?: boolean;
43
42
  href?: string;
44
43
  noMargin?: boolean;
45
44
  children?: default_2.ReactNode;
@@ -50,7 +49,7 @@ declare interface ButtonProps extends Omit<default_2.ButtonHTMLAttributes<HTMLBu
50
49
 
51
50
  declare type ButtonSize = "small" | "regular";
52
51
 
53
- export declare const CheckBoxIcon: ({ size, checked, disabled, showBox, hasErrors, checkmarkCharacter, }: CheckBoxIconProps) => JSX.Element;
52
+ export declare const CheckBoxIcon: ({ size, checked, disabled, showBox, hasErrors, checkmarkCharacter, checkmarkIconSrc, }: CheckBoxIconProps) => JSX.Element;
54
53
 
55
54
  declare interface CheckBoxIconProps {
56
55
  size?: string;
@@ -59,9 +58,10 @@ declare interface CheckBoxIconProps {
59
58
  showBox?: boolean;
60
59
  hasErrors?: boolean;
61
60
  checkmarkCharacter?: string;
61
+ checkmarkIconSrc?: string;
62
62
  }
63
63
 
64
- export declare const CheckBoxInput: ({ checked, disabled, required, requiredGroup, id, name, onChange, contentOnly, hasErrors, checkmarkCharacter, tabIndex, children, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, value, }: CheckBoxInputProps) => JSX.Element;
64
+ export declare const CheckBoxInput: ({ checked, disabled, required, requiredGroup, id, name, onChange, hasErrors, checkmarkCharacter, tabIndex, children, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, value, }: CheckBoxInputProps) => JSX.Element;
65
65
 
66
66
  declare interface CheckBoxInputProps {
67
67
  checked?: boolean;
@@ -71,7 +71,6 @@ declare interface CheckBoxInputProps {
71
71
  id: string;
72
72
  name?: string;
73
73
  onChange?: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
74
- contentOnly?: boolean;
75
74
  hasErrors?: boolean;
76
75
  checkmarkCharacter?: string;
77
76
  "aria-controls"?: string;
@@ -83,7 +82,7 @@ declare interface CheckBoxInputProps {
83
82
 
84
83
  export declare const CheckBoxList: ({ legend, legendSize, required, compact, children, }: CheckBoxListProps) => JSX.Element;
85
84
 
86
- export declare const CheckBoxListItem: ({ checked, disabled, required, requiredGroup, id, name, onChange, contentOnly, compact, hasErrors, checkmarkCharacter, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, children, value, }: CheckBoxListItemProps) => JSX.Element;
85
+ export declare const CheckBoxListItem: ({ checked, disabled, required, requiredGroup, id, name, onChange, compact, hasErrors, checkmarkCharacter, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, children, value, }: CheckBoxListItemProps) => JSX.Element;
87
86
 
88
87
  declare interface CheckBoxListItemProps {
89
88
  value?: string | number;
@@ -94,7 +93,6 @@ declare interface CheckBoxListItemProps {
94
93
  name?: string;
95
94
  id: string;
96
95
  onChange?: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
97
- contentOnly?: boolean;
98
96
  compact?: boolean;
99
97
  checkmarkCharacter?: string;
100
98
  hasErrors?: boolean;
@@ -118,14 +116,14 @@ declare interface ContainerProps {
118
116
  children?: default_2.ReactNode;
119
117
  }
120
118
 
121
- export declare const ContentBox: React.FC<ContentBoxProps>;
119
+ export declare const ContentBox: ({ title, titleSize, content, children, color, href, }: ContentBoxProps) => JSX.Element;
122
120
 
123
121
  declare interface ContentBoxProps {
124
122
  title?: string;
125
- titleSize?: 'regular' | 'large';
123
+ titleSize?: "regular" | "large";
126
124
  content?: string;
127
125
  children?: React.ReactNode;
128
- color?: 'default' | 'secondary';
126
+ color?: "default" | "secondary";
129
127
  href?: string | null;
130
128
  }
131
129
 
@@ -156,12 +154,12 @@ declare interface DescriptionTermProps {
156
154
  children?: default_2.ReactNode;
157
155
  }
158
156
 
159
- export declare const Dialog: ({ maxWidth, noPadding, closeButton, onClickOutside, modal, attachTo, hidden, children, }: DialogProps) => ReactPortal | null;
157
+ export declare const Dialog: ({ maxWidth, noPadding, title, onClickOutside, modal, attachTo, hidden, children, }: DialogProps) => ReactPortal | null;
160
158
 
161
159
  declare interface DialogProps {
162
160
  maxWidth?: string;
163
161
  noPadding?: boolean;
164
- closeButton?: boolean;
162
+ title?: React.ReactNode;
165
163
  onClickOutside: () => void;
166
164
  modal?: boolean;
167
165
  attachTo?: "left" | "right" | "top" | "bottom" | string;
@@ -169,7 +167,7 @@ declare interface DialogProps {
169
167
  children?: React.ReactNode;
170
168
  }
171
169
 
172
- export declare const DragAndDropFileInput: ({ id, name, onSelectChange, onDragAndDropChange, label, contentOnly, buttonColor, buttonContent, buttonContentWhenSelectedFile, selectedFileName, defaultContent, hasErrors, errorMessage, required, children, "data-transaction-name": transactionName, }: DragAndDropFileInputProps) => JSX.Element;
170
+ export declare const DragAndDropFileInput: ({ id, name, onSelectChange, onDragAndDropChange, label, subLabel, buttonContent, buttonContentWhenSelectedFile, selectedFileName, hasErrors, errorMessage, required, "data-transaction-name": transactionName, }: DragAndDropFileInputProps) => JSX.Element;
173
171
 
174
172
  declare interface DragAndDropFileInputProps {
175
173
  id: string;
@@ -177,16 +175,13 @@ declare interface DragAndDropFileInputProps {
177
175
  onSelectChange: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
178
176
  onDragAndDropChange: (files: FileList) => void;
179
177
  label?: string | (string | JSX_2.Element)[];
180
- contentOnly?: boolean;
181
- buttonColor?: ButtonColor;
178
+ subLabel?: string | (string | JSX_2.Element)[];
182
179
  buttonContent?: string;
183
180
  buttonContentWhenSelectedFile?: string;
184
181
  selectedFileName?: string;
185
- defaultContent?: string;
186
182
  hasErrors?: boolean;
187
183
  errorMessage?: string | (string | JSX_2.Element)[];
188
184
  required?: boolean;
189
- children?: default_2.ReactNode;
190
185
  "data-transaction-name"?: string;
191
186
  }
192
187
 
@@ -209,26 +204,25 @@ declare interface FooterProps {
209
204
  children?: React.ReactNode;
210
205
  }
211
206
 
212
- export declare const Header: ({ id, content, size, big, label, htmlTag, htmlFor, children, }: HeaderProps) => JSX.Element;
207
+ export declare const Header: ({ id, content, size, htmlTag, htmlFor, children, }: HeaderProps) => JSX.Element;
213
208
 
214
209
  declare interface HeaderProps {
215
210
  id?: string;
216
211
  content?: string;
217
212
  size?: 1 | 2 | 3 | 4 | 5;
218
- big?: boolean;
219
- label?: string;
220
213
  htmlTag?: keyof JSX_2.IntrinsicElements;
221
214
  htmlFor?: string;
222
215
  children?: default_2.ReactNode;
223
216
  }
224
217
 
225
- export declare const InfoBox: ({ title, children, variant, fullScreen, hideIcon, icon, className, }: InfoBoxProps) => JSX.Element;
218
+ export declare const InfoBox: ({ title, children, variant, fullScreen, noBorder, hideIcon, icon, className, }: InfoBoxProps) => JSX.Element;
226
219
 
227
220
  declare interface InfoBoxProps {
228
221
  title?: default_2.ReactNode;
229
222
  children?: default_2.ReactNode;
230
223
  variant?: InfoBoxVariant;
231
224
  fullScreen?: boolean;
225
+ noBorder?: boolean;
232
226
  hideIcon?: boolean;
233
227
  icon?: default_2.ReactNode;
234
228
  className?: string;
@@ -236,7 +230,7 @@ declare interface InfoBoxProps {
236
230
 
237
231
  declare type InfoBoxVariant = "info" | "warning" | "error" | "tip" | "success";
238
232
 
239
- export declare const InputField: ({ id, onChange, onBlur, onFocus, name, type, disabled, required, readOnly, width, value, defaultValue, elementKey, label, contentOnly, buttonColor, buttonContent, selectedFileName, placeholder, defaultContent, min, max, role, "aria-describedby": ariaDescribedBy, "aria-autocomplete": ariaAutocomplete, hasErrors, errorMessage, noMargin, caption, }: InputFieldProps) => JSX.Element;
233
+ 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;
240
234
 
241
235
  declare interface InputFieldProps {
242
236
  id: string;
@@ -253,12 +247,16 @@ declare interface InputFieldProps {
253
247
  defaultValue?: string | number | Date;
254
248
  elementKey?: string;
255
249
  label?: default_2.ReactNode;
256
- contentOnly?: boolean;
257
250
  buttonColor?: "primary" | "secondary";
258
251
  buttonContent?: string;
252
+ actionButtonContent?: default_2.ReactNode;
253
+ actionButtonIconLeft?: default_2.ReactNode;
254
+ actionButtonIconRight?: default_2.ReactNode;
255
+ actionButtonOnClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
256
+ actionButtonDisabled?: boolean;
257
+ actionButtonAriaLabel?: string;
259
258
  selectedFileName?: string;
260
259
  placeholder?: string;
261
- defaultContent?: string;
262
260
  min?: string;
263
261
  max?: string;
264
262
  role?: string;
@@ -272,7 +270,7 @@ declare interface InputFieldProps {
272
270
 
273
271
  declare type InputType = "button" | "radio";
274
272
 
275
- export declare const Label: ({ inline, normalCursor, htmlTag, children, id, ...rest }: LabelProps) => default_2.DOMElement<{
273
+ export declare const Label: ({ inline, normalCursor, htmlTag, children, subLabel, id, ...rest }: LabelProps) => default_2.DOMElement<{
276
274
  className: string;
277
275
  id: string | undefined;
278
276
  form?: string | undefined;
@@ -322,7 +320,7 @@ export declare const Label: ({ inline, normalCursor, htmlTag, children, id, ...r
322
320
  results?: number | undefined;
323
321
  security?: string | undefined;
324
322
  unselectable?: "on" | "off" | undefined;
325
- popover?: "" | "auto" | "manual" | undefined;
323
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
326
324
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
327
325
  popoverTarget?: string | undefined;
328
326
  inert?: boolean | undefined;
@@ -561,17 +559,7 @@ declare interface LabelProps extends default_2.LabelHTMLAttributes<HTMLLabelElem
561
559
  normalCursor?: boolean;
562
560
  htmlTag?: keyof JSX_2.IntrinsicElements;
563
561
  children?: default_2.ReactNode;
564
- }
565
-
566
- export declare const Lead: ({ id, htmlTag, children }: LeadProps) => default_2.ReactElement<{
567
- className: string;
568
- id: string | undefined;
569
- }, string | default_2.JSXElementConstructor<any>>;
570
-
571
- declare interface LeadProps {
572
- id?: string;
573
- htmlTag?: keyof JSX_2.IntrinsicElements;
574
- children?: default_2.ReactNode;
562
+ subLabel?: default_2.ReactNode;
575
563
  }
576
564
 
577
565
  export declare const List: ({ listStyle, compact, ordered, children, }: ListProps) => default_2.DetailedReactHTMLElement<{
@@ -581,12 +569,6 @@ export declare const List: ({ listStyle, compact, ordered, children, }: ListProp
581
569
 
582
570
  export declare const ListItem: ({ compact, children }: ListItemProps) => JSX.Element;
583
571
 
584
- declare interface ListItemObject {
585
- name: string;
586
- href: string;
587
- listItems?: ListItemObject[];
588
- }
589
-
590
572
  declare interface ListItemProps {
591
573
  compact?: boolean;
592
574
  children?: default_2.ReactNode;
@@ -599,17 +581,10 @@ declare interface ListProps {
599
581
  children?: default_2.ReactNode;
600
582
  }
601
583
 
602
- export declare const LoadingAnimation: ({ fixed, message, }: LoadingAnimationProps) => JSX.Element;
603
-
604
- export declare const LoadingAnimation2: ({ ariaLabel, }: LoadingAnimation2Props) => JSX.Element;
605
-
606
- declare interface LoadingAnimation2Props {
607
- ariaLabel?: string;
608
- }
584
+ export declare const LoadingAnimation: ({ ariaLabel, }: LoadingAnimationProps) => JSX.Element;
609
585
 
610
586
  declare interface LoadingAnimationProps {
611
- fixed?: boolean;
612
- message?: string;
587
+ ariaLabel?: string;
613
588
  }
614
589
 
615
590
  declare interface MultipleSelectProps extends SelectPropsBase {
@@ -619,24 +594,14 @@ declare interface MultipleSelectProps extends SelectPropsBase {
619
594
  defaultValue?: (string | number)[];
620
595
  }
621
596
 
622
- export declare const NavigationBar: ({ primaryListItems, secondaryListItems, menuContent, logoLink, logoLinkTitle, openLogoLinkInNewTab, theme, compact, mainContentId, color, children, }: NavigationBarProps) => JSX.Element;
623
-
624
- export declare const NavigationBarListItem: ({ listItem }: NavigationBarListItemProps) => JSX.Element | null;
625
-
626
- declare interface NavigationBarListItemProps {
627
- listItem: string | ListItemObject;
628
- }
597
+ export declare const NavigationBar: ({ logoLink, logoLinkTitle, openLogoLinkInNewTab, theme, compact, color, }: NavigationBarProps) => JSX.Element;
629
598
 
630
599
  declare interface NavigationBarProps {
631
- primaryListItems?: ListItemObject[];
632
- secondaryListItems?: ListItemObject[];
633
- menuContent?: default_2.ReactNode;
634
600
  logoLink?: string;
635
601
  logoLinkTitle?: string;
636
602
  openLogoLinkInNewTab?: boolean;
637
603
  theme?: ThemeProps;
638
604
  compact?: boolean;
639
- mainContentId?: string;
640
605
  color?: "primary" | "secondary" | "neutral";
641
606
  children?: default_2.ReactNode;
642
607
  }
@@ -685,7 +650,7 @@ declare interface RadioButtonIconProps {
685
650
  hasErrors?: boolean;
686
651
  }
687
652
 
688
- export declare const RadioButtonInput: ({ checked, disabled, required, requiredGroup, id, name, onChange, contentOnly, hasErrors, inputValue, tabIndex, children, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, }: RadioButtonInputProps) => JSX.Element;
653
+ export declare const RadioButtonInput: ({ checked, disabled, required, requiredGroup, id, name, onChange, hasErrors, inputValue, tabIndex, children, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, }: RadioButtonInputProps) => JSX.Element;
689
654
 
690
655
  declare interface RadioButtonInputProps {
691
656
  checked?: boolean;
@@ -695,7 +660,6 @@ declare interface RadioButtonInputProps {
695
660
  id: string;
696
661
  name?: string;
697
662
  onChange?: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
698
- contentOnly?: boolean;
699
663
  hasErrors?: boolean;
700
664
  inputValue: string;
701
665
  tabIndex?: number;
@@ -706,7 +670,7 @@ declare interface RadioButtonInputProps {
706
670
 
707
671
  export declare const RadioButtonList: ({ legend, legendSize, required, compact, children, }: RadioButtonListProps) => JSX.Element;
708
672
 
709
- export declare const RadioButtonListItem: ({ inputValue, checked, disabled, required, requiredGroup, name, id, onChange, contentOnly, compact, hasErrors, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, children, }: RadioButtonListItemProps) => JSX.Element;
673
+ export declare const RadioButtonListItem: ({ inputValue, checked, disabled, required, requiredGroup, name, id, onChange, compact, hasErrors, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, children, }: RadioButtonListItemProps) => JSX.Element;
710
674
 
711
675
  declare interface RadioButtonListItemProps {
712
676
  inputValue: string;
@@ -717,7 +681,6 @@ declare interface RadioButtonListItemProps {
717
681
  name?: string;
718
682
  id: string;
719
683
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
720
- contentOnly?: boolean;
721
684
  compact?: boolean;
722
685
  hasErrors?: boolean;
723
686
  'aria-controls'?: string;
@@ -745,7 +708,6 @@ declare interface SelectPropsBase {
745
708
  options?: Option_2[];
746
709
  width?: string;
747
710
  label?: default_2.ReactNode;
748
- contentOnly?: boolean;
749
711
  keyAsContent?: boolean;
750
712
  placeholder?: string;
751
713
  placeholderValue?: string;
@@ -781,10 +743,10 @@ declare interface StepProps {
781
743
  step: StepData;
782
744
  index: number;
783
745
  activeStepId: string | number;
784
- direction?: 'vertical' | 'horizontal';
746
+ direction?: "vertical" | "horizontal";
785
747
  }
786
748
 
787
- export declare const Table: <T extends object>({ columns, data, caption, getRowId, selectionType, selectionLabel, selectedRowId, onSelect, selectedRowIds, onSelectMany, onRowClick, pageSize, page, defaultPage, onPageChange, pageSizeOptions, defaultPageSize, onPageSizeChange, }: TableProps<T>) => JSX.Element;
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;
788
750
 
789
751
  declare type TableColumn<T> = {
790
752
  key: string;
@@ -799,7 +761,8 @@ declare type TableColumn<T> = {
799
761
  declare interface TableProps<T> {
800
762
  columns: TableColumn<T>[];
801
763
  data: T[];
802
- caption?: string;
764
+ loading?: boolean;
765
+ loadingAriaLabel?: string;
803
766
  getRowId?: (row: T, index: number) => default_2.Key;
804
767
  selectionType?: "single" | "multiple";
805
768
  selectionLabel?: string;
@@ -861,7 +824,7 @@ declare interface TabsProps {
861
824
  className?: string;
862
825
  }
863
826
 
864
- export declare const Textarea: ({ id, onChange, onBlur, name, required, readOnly, disabled, width, resize, value, defaultValue, elementKey, rows, label, contentOnly, placeholder, defaultContent, "aria-describedby": ariaDescribedBy, hasErrors, errorMessage, }: TextareaProps) => JSX.Element;
827
+ export declare const Textarea: ({ id, onChange, onBlur, name, required, readOnly, disabled, width, resize, value, defaultValue, elementKey, rows, label, placeholder, "aria-describedby": ariaDescribedBy, hasErrors, errorMessage, }: TextareaProps) => JSX.Element;
865
828
 
866
829
  declare interface TextareaProps {
867
830
  id: string;
@@ -878,9 +841,7 @@ declare interface TextareaProps {
878
841
  elementKey?: string;
879
842
  rows?: string;
880
843
  label?: default_2.ReactNode;
881
- contentOnly?: boolean;
882
844
  placeholder?: string;
883
- defaultContent?: string;
884
845
  "aria-describedby"?: string;
885
846
  hasErrors?: boolean;
886
847
  errorMessage?: default_2.ReactNode;
@@ -889,14 +850,14 @@ declare interface TextareaProps {
889
850
  declare interface ThemeProps {
890
851
  appName: string;
891
852
  logo: string;
853
+ logoCompact?: string;
892
854
  logoPadding?: string;
893
- sizes?: {
894
- logoSmallWidth: string;
895
- logoLargeWidth: string;
896
- };
897
855
  colors?: {
898
856
  [key: string]: string;
899
857
  };
858
+ sizes?: {
859
+ [key: string]: string;
860
+ };
900
861
  }
901
862
 
902
863
  export declare const ThemeProvider: ({ theme, children }: ThemeProviderProps) => ReactNode;
@@ -954,7 +915,7 @@ export declare const ToggleNavigationButton: ({ id, htmlTag, showText, hideText,
954
915
  results?: number | undefined;
955
916
  security?: string | undefined;
956
917
  unselectable?: "on" | "off" | undefined;
957
- popover?: "" | "auto" | "manual" | undefined;
918
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
958
919
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
959
920
  popoverTarget?: string | undefined;
960
921
  inert?: boolean | undefined;