dibk-design 10.1.1 → 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, actionButtonContent, actionButtonOnClick, actionButtonDisabled, actionButtonAriaLabel, 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,16 +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;
259
252
  actionButtonContent?: default_2.ReactNode;
253
+ actionButtonIconLeft?: default_2.ReactNode;
254
+ actionButtonIconRight?: default_2.ReactNode;
260
255
  actionButtonOnClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
261
256
  actionButtonDisabled?: boolean;
262
257
  actionButtonAriaLabel?: string;
263
258
  selectedFileName?: string;
264
259
  placeholder?: string;
265
- defaultContent?: string;
266
260
  min?: string;
267
261
  max?: string;
268
262
  role?: string;
@@ -276,7 +270,7 @@ declare interface InputFieldProps {
276
270
 
277
271
  declare type InputType = "button" | "radio";
278
272
 
279
- 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<{
280
274
  className: string;
281
275
  id: string | undefined;
282
276
  form?: string | undefined;
@@ -565,17 +559,7 @@ declare interface LabelProps extends default_2.LabelHTMLAttributes<HTMLLabelElem
565
559
  normalCursor?: boolean;
566
560
  htmlTag?: keyof JSX_2.IntrinsicElements;
567
561
  children?: default_2.ReactNode;
568
- }
569
-
570
- export declare const Lead: ({ id, htmlTag, children }: LeadProps) => default_2.ReactElement<{
571
- className: string;
572
- id: string | undefined;
573
- }, string | default_2.JSXElementConstructor<any>>;
574
-
575
- declare interface LeadProps {
576
- id?: string;
577
- htmlTag?: keyof JSX_2.IntrinsicElements;
578
- children?: default_2.ReactNode;
562
+ subLabel?: default_2.ReactNode;
579
563
  }
580
564
 
581
565
  export declare const List: ({ listStyle, compact, ordered, children, }: ListProps) => default_2.DetailedReactHTMLElement<{
@@ -585,12 +569,6 @@ export declare const List: ({ listStyle, compact, ordered, children, }: ListProp
585
569
 
586
570
  export declare const ListItem: ({ compact, children }: ListItemProps) => JSX.Element;
587
571
 
588
- declare interface ListItemObject {
589
- name: string;
590
- href: string;
591
- listItems?: ListItemObject[];
592
- }
593
-
594
572
  declare interface ListItemProps {
595
573
  compact?: boolean;
596
574
  children?: default_2.ReactNode;
@@ -603,17 +581,10 @@ declare interface ListProps {
603
581
  children?: default_2.ReactNode;
604
582
  }
605
583
 
606
- export declare const LoadingAnimation: ({ fixed, message, }: LoadingAnimationProps) => JSX.Element;
607
-
608
- export declare const LoadingAnimation2: ({ ariaLabel, }: LoadingAnimation2Props) => JSX.Element;
609
-
610
- declare interface LoadingAnimation2Props {
611
- ariaLabel?: string;
612
- }
584
+ export declare const LoadingAnimation: ({ ariaLabel, }: LoadingAnimationProps) => JSX.Element;
613
585
 
614
586
  declare interface LoadingAnimationProps {
615
- fixed?: boolean;
616
- message?: string;
587
+ ariaLabel?: string;
617
588
  }
618
589
 
619
590
  declare interface MultipleSelectProps extends SelectPropsBase {
@@ -623,24 +594,14 @@ declare interface MultipleSelectProps extends SelectPropsBase {
623
594
  defaultValue?: (string | number)[];
624
595
  }
625
596
 
626
- export declare const NavigationBar: ({ primaryListItems, secondaryListItems, menuContent, logoLink, logoLinkTitle, openLogoLinkInNewTab, theme, compact, mainContentId, color, children, }: NavigationBarProps) => JSX.Element;
627
-
628
- export declare const NavigationBarListItem: ({ listItem }: NavigationBarListItemProps) => JSX.Element | null;
629
-
630
- declare interface NavigationBarListItemProps {
631
- listItem: string | ListItemObject;
632
- }
597
+ export declare const NavigationBar: ({ logoLink, logoLinkTitle, openLogoLinkInNewTab, theme, compact, color, }: NavigationBarProps) => JSX.Element;
633
598
 
634
599
  declare interface NavigationBarProps {
635
- primaryListItems?: ListItemObject[];
636
- secondaryListItems?: ListItemObject[];
637
- menuContent?: default_2.ReactNode;
638
600
  logoLink?: string;
639
601
  logoLinkTitle?: string;
640
602
  openLogoLinkInNewTab?: boolean;
641
603
  theme?: ThemeProps;
642
604
  compact?: boolean;
643
- mainContentId?: string;
644
605
  color?: "primary" | "secondary" | "neutral";
645
606
  children?: default_2.ReactNode;
646
607
  }
@@ -689,7 +650,7 @@ declare interface RadioButtonIconProps {
689
650
  hasErrors?: boolean;
690
651
  }
691
652
 
692
- 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;
693
654
 
694
655
  declare interface RadioButtonInputProps {
695
656
  checked?: boolean;
@@ -699,7 +660,6 @@ declare interface RadioButtonInputProps {
699
660
  id: string;
700
661
  name?: string;
701
662
  onChange?: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
702
- contentOnly?: boolean;
703
663
  hasErrors?: boolean;
704
664
  inputValue: string;
705
665
  tabIndex?: number;
@@ -710,7 +670,7 @@ declare interface RadioButtonInputProps {
710
670
 
711
671
  export declare const RadioButtonList: ({ legend, legendSize, required, compact, children, }: RadioButtonListProps) => JSX.Element;
712
672
 
713
- 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;
714
674
 
715
675
  declare interface RadioButtonListItemProps {
716
676
  inputValue: string;
@@ -721,7 +681,6 @@ declare interface RadioButtonListItemProps {
721
681
  name?: string;
722
682
  id: string;
723
683
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
724
- contentOnly?: boolean;
725
684
  compact?: boolean;
726
685
  hasErrors?: boolean;
727
686
  'aria-controls'?: string;
@@ -749,7 +708,6 @@ declare interface SelectPropsBase {
749
708
  options?: Option_2[];
750
709
  width?: string;
751
710
  label?: default_2.ReactNode;
752
- contentOnly?: boolean;
753
711
  keyAsContent?: boolean;
754
712
  placeholder?: string;
755
713
  placeholderValue?: string;
@@ -785,10 +743,10 @@ declare interface StepProps {
785
743
  step: StepData;
786
744
  index: number;
787
745
  activeStepId: string | number;
788
- direction?: 'vertical' | 'horizontal';
746
+ direction?: "vertical" | "horizontal";
789
747
  }
790
748
 
791
- 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;
792
750
 
793
751
  declare type TableColumn<T> = {
794
752
  key: string;
@@ -803,7 +761,8 @@ declare type TableColumn<T> = {
803
761
  declare interface TableProps<T> {
804
762
  columns: TableColumn<T>[];
805
763
  data: T[];
806
- caption?: string;
764
+ loading?: boolean;
765
+ loadingAriaLabel?: string;
807
766
  getRowId?: (row: T, index: number) => default_2.Key;
808
767
  selectionType?: "single" | "multiple";
809
768
  selectionLabel?: string;
@@ -865,7 +824,7 @@ declare interface TabsProps {
865
824
  className?: string;
866
825
  }
867
826
 
868
- 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;
869
828
 
870
829
  declare interface TextareaProps {
871
830
  id: string;
@@ -882,9 +841,7 @@ declare interface TextareaProps {
882
841
  elementKey?: string;
883
842
  rows?: string;
884
843
  label?: default_2.ReactNode;
885
- contentOnly?: boolean;
886
844
  placeholder?: string;
887
- defaultContent?: string;
888
845
  "aria-describedby"?: string;
889
846
  hasErrors?: boolean;
890
847
  errorMessage?: default_2.ReactNode;
@@ -893,14 +850,14 @@ declare interface TextareaProps {
893
850
  declare interface ThemeProps {
894
851
  appName: string;
895
852
  logo: string;
853
+ logoCompact?: string;
896
854
  logoPadding?: string;
897
- sizes?: {
898
- logoSmallWidth: string;
899
- logoLargeWidth: string;
900
- };
901
855
  colors?: {
902
856
  [key: string]: string;
903
857
  };
858
+ sizes?: {
859
+ [key: string]: string;
860
+ };
904
861
  }
905
862
 
906
863
  export declare const ThemeProvider: ({ theme, children }: ThemeProviderProps) => ReactNode;