dibk-design 10.5.0 → 10.5.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/dibk-design.css +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +67 -9
- package/dist/index.es.js +2809 -2674
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ import { default as ErrorIcon } from '../assets/svg/error-icon.svg?react';
|
|
|
24
24
|
import { default as errorIcon } from '../assets/svg/error-icon.svg?url';
|
|
25
25
|
import { default as ExternalLinkIcon } from '../assets/svg/external-link-icon.svg?react';
|
|
26
26
|
import { default as externalLinkIcon } from '../assets/svg/external-link-icon.svg?url';
|
|
27
|
+
import { default as FilterIcon } from '../assets/svg/filter-icon.svg?react';
|
|
28
|
+
import { default as filterIcon } from '../assets/svg/filter-icon.svg?url';
|
|
27
29
|
import { default as InfoIcon } from '../assets/svg/info-icon.svg?react';
|
|
28
30
|
import { default as infoIcon } from '../assets/svg/info-icon.svg?url';
|
|
29
31
|
import { JSX } from 'react/jsx-runtime';
|
|
@@ -38,6 +40,8 @@ import { default as PhoneIcon } from '../assets/svg/phone.svg?react';
|
|
|
38
40
|
import { default as phoneIcon } from '../assets/svg/phone.svg?url';
|
|
39
41
|
import { ReactNode } from 'react';
|
|
40
42
|
import { ReactPortal } from 'react';
|
|
43
|
+
import { default as SearchIcon } from '../assets/svg/search-icon.svg?react';
|
|
44
|
+
import { default as searchIcon } from '../assets/svg/search-icon.svg?url';
|
|
41
45
|
import { default as SuccessIcon } from '../assets/svg/success-icon.svg?react';
|
|
42
46
|
import { default as successIcon } from '../assets/svg/success-icon.svg?url';
|
|
43
47
|
import { default as WarningIcon } from '../assets/svg/warning-icon.svg?react';
|
|
@@ -125,7 +129,7 @@ declare interface CheckBoxIconProps {
|
|
|
125
129
|
checkmarkIconSrc?: string;
|
|
126
130
|
}
|
|
127
131
|
|
|
128
|
-
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;
|
|
132
|
+
export declare const CheckBoxInput: ({ checked, disabled, required, requiredGroup, id, name, onChange, hasErrors, checkmarkCharacter, tabIndex, children, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, value, requirementIndicatorMode, optionalLabel, }: CheckBoxInputProps) => JSX.Element;
|
|
129
133
|
|
|
130
134
|
declare interface CheckBoxInputProps {
|
|
131
135
|
checked?: boolean;
|
|
@@ -142,9 +146,11 @@ declare interface CheckBoxInputProps {
|
|
|
142
146
|
tabIndex?: number;
|
|
143
147
|
children?: default_2.ReactNode;
|
|
144
148
|
value?: string | number;
|
|
149
|
+
requirementIndicatorMode?: RequirementIndicatorMode;
|
|
150
|
+
optionalLabel?: string;
|
|
145
151
|
}
|
|
146
152
|
|
|
147
|
-
export declare const CheckBoxList: ({ legend, legendSize, required, compact, children, }: CheckBoxListProps) => JSX.Element;
|
|
153
|
+
export declare const CheckBoxList: ({ legend, legendSize, required, compact, children, requirementIndicatorMode, optionalLabel, }: CheckBoxListProps) => JSX.Element;
|
|
148
154
|
|
|
149
155
|
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;
|
|
150
156
|
|
|
@@ -171,6 +177,8 @@ declare interface CheckBoxListProps {
|
|
|
171
177
|
required?: boolean;
|
|
172
178
|
compact?: boolean;
|
|
173
179
|
children?: ReactNode;
|
|
180
|
+
requirementIndicatorMode?: RequirementIndicatorMode;
|
|
181
|
+
optionalLabel?: string;
|
|
174
182
|
}
|
|
175
183
|
|
|
176
184
|
export { CheckmarkSymbolIcon }
|
|
@@ -254,7 +262,7 @@ export { DibkLogoWithTitle }
|
|
|
254
262
|
|
|
255
263
|
export { dibkLogoWithTitle }
|
|
256
264
|
|
|
257
|
-
export declare const DragAndDropFileInput: ({ id, name, onSelectChange, onDragAndDropChange, label, subLabel, buttonContent, buttonContentWhenSelectedFile, selectedFileName, hasErrors, errorMessage, required, "data-transaction-name": transactionName, }: DragAndDropFileInputProps) => JSX.Element;
|
|
265
|
+
export declare const DragAndDropFileInput: ({ id, name, onSelectChange, onDragAndDropChange, label, subLabel, buttonContent, buttonContentWhenSelectedFile, selectedFileName, hasErrors, errorMessage, required, requirementIndicatorMode, optionalLabel, "data-transaction-name": transactionName, }: DragAndDropFileInputProps) => JSX.Element;
|
|
258
266
|
|
|
259
267
|
declare interface DragAndDropFileInputProps {
|
|
260
268
|
id: string;
|
|
@@ -269,6 +277,8 @@ declare interface DragAndDropFileInputProps {
|
|
|
269
277
|
hasErrors?: boolean;
|
|
270
278
|
errorMessage?: string | (string | JSX_2.Element)[];
|
|
271
279
|
required?: boolean;
|
|
280
|
+
requirementIndicatorMode?: RequirementIndicatorMode;
|
|
281
|
+
optionalLabel?: string;
|
|
272
282
|
"data-transaction-name"?: string;
|
|
273
283
|
}
|
|
274
284
|
|
|
@@ -293,6 +303,33 @@ export { ExternalLinkIcon }
|
|
|
293
303
|
|
|
294
304
|
export { externalLinkIcon }
|
|
295
305
|
|
|
306
|
+
export declare const FieldRequirementIndicator: ({ required, mode, optionalLabel, requiredClassName, optionalClassName, }: FieldRequirementIndicatorProps) => JSX.Element | null;
|
|
307
|
+
|
|
308
|
+
declare interface FieldRequirementIndicatorContextValue {
|
|
309
|
+
mode: RequirementIndicatorMode;
|
|
310
|
+
optionalLabel: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare interface FieldRequirementIndicatorProps {
|
|
314
|
+
required: boolean;
|
|
315
|
+
mode?: RequirementIndicatorMode;
|
|
316
|
+
optionalLabel?: string;
|
|
317
|
+
requiredClassName?: string;
|
|
318
|
+
optionalClassName?: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export declare const FieldRequirementProvider: ({ children, mode, optionalLabel, }: FieldRequirementProviderProps) => JSX.Element;
|
|
322
|
+
|
|
323
|
+
declare interface FieldRequirementProviderProps {
|
|
324
|
+
children: ReactNode;
|
|
325
|
+
mode?: RequirementIndicatorMode;
|
|
326
|
+
optionalLabel?: string;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export { FilterIcon }
|
|
330
|
+
|
|
331
|
+
export { filterIcon }
|
|
332
|
+
|
|
296
333
|
export declare const Footer: ({ children }: FooterProps) => JSX.Element;
|
|
297
334
|
|
|
298
335
|
declare interface FooterProps {
|
|
@@ -310,7 +347,7 @@ declare interface HeaderProps {
|
|
|
310
347
|
children?: default_2.ReactNode;
|
|
311
348
|
}
|
|
312
349
|
|
|
313
|
-
export declare const InfoBox: ({ title, children, variant, fullScreen, noBorder, hideIcon, icon, }: InfoBoxProps) => JSX.Element;
|
|
350
|
+
export declare const InfoBox: ({ title, children, variant, fullScreen, noBorder, noAnimation, hideIcon, icon, }: InfoBoxProps) => JSX.Element;
|
|
314
351
|
|
|
315
352
|
declare interface InfoBoxProps {
|
|
316
353
|
title: default_2.ReactNode | string;
|
|
@@ -318,6 +355,7 @@ declare interface InfoBoxProps {
|
|
|
318
355
|
variant?: InfoBoxVariant;
|
|
319
356
|
fullScreen?: boolean;
|
|
320
357
|
noBorder?: boolean;
|
|
358
|
+
noAnimation?: boolean;
|
|
321
359
|
hideIcon?: boolean;
|
|
322
360
|
icon?: default_2.ReactNode;
|
|
323
361
|
}
|
|
@@ -328,7 +366,7 @@ export { InfoIcon }
|
|
|
328
366
|
|
|
329
367
|
export { infoIcon }
|
|
330
368
|
|
|
331
|
-
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;
|
|
369
|
+
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, requirementIndicatorMode, optionalLabel, }: InputFieldProps) => JSX.Element;
|
|
332
370
|
|
|
333
371
|
declare interface InputFieldProps {
|
|
334
372
|
id: string;
|
|
@@ -363,6 +401,8 @@ declare interface InputFieldProps {
|
|
|
363
401
|
errorMessage?: default_2.ReactNode;
|
|
364
402
|
noMargin?: boolean;
|
|
365
403
|
caption?: default_2.ReactNode;
|
|
404
|
+
requirementIndicatorMode?: RequirementIndicatorMode;
|
|
405
|
+
optionalLabel?: string;
|
|
366
406
|
}
|
|
367
407
|
|
|
368
408
|
declare type InputType = "button" | "radio";
|
|
@@ -769,7 +809,7 @@ declare interface RadioButtonIconProps {
|
|
|
769
809
|
hasErrors?: boolean;
|
|
770
810
|
}
|
|
771
811
|
|
|
772
|
-
export declare const RadioButtonInput: ({ checked, disabled, required, requiredGroup, id, name, onChange, hasErrors, inputValue, tabIndex, children, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, }: RadioButtonInputProps) => JSX.Element;
|
|
812
|
+
export declare const RadioButtonInput: ({ checked, disabled, required, requiredGroup, id, name, onChange, hasErrors, inputValue, tabIndex, children, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, requirementIndicatorMode, optionalLabel, }: RadioButtonInputProps) => JSX.Element;
|
|
773
813
|
|
|
774
814
|
declare interface RadioButtonInputProps {
|
|
775
815
|
checked?: boolean;
|
|
@@ -785,9 +825,11 @@ declare interface RadioButtonInputProps {
|
|
|
785
825
|
children?: default_2.ReactNode;
|
|
786
826
|
"aria-controls"?: string;
|
|
787
827
|
"aria-describedby"?: string;
|
|
828
|
+
requirementIndicatorMode?: RequirementIndicatorMode;
|
|
829
|
+
optionalLabel?: string;
|
|
788
830
|
}
|
|
789
831
|
|
|
790
|
-
export declare const RadioButtonList: ({ legend, legendSize, required, compact, children, }: RadioButtonListProps) => JSX.Element;
|
|
832
|
+
export declare const RadioButtonList: ({ legend, legendSize, required, compact, children, requirementIndicatorMode, optionalLabel, }: RadioButtonListProps) => JSX.Element;
|
|
791
833
|
|
|
792
834
|
export declare const RadioButtonListItem: ({ inputValue, checked, disabled, required, requiredGroup, name, id, onChange, compact, hasErrors, "aria-controls": ariaControls, "aria-describedby": ariaDescribedBy, children, }: RadioButtonListItemProps) => JSX.Element;
|
|
793
835
|
|
|
@@ -813,8 +855,16 @@ declare interface RadioButtonListProps {
|
|
|
813
855
|
required?: boolean;
|
|
814
856
|
compact?: boolean;
|
|
815
857
|
children?: ReactNode;
|
|
858
|
+
requirementIndicatorMode?: RequirementIndicatorMode;
|
|
859
|
+
optionalLabel?: string;
|
|
816
860
|
}
|
|
817
861
|
|
|
862
|
+
export declare type RequirementIndicatorMode = "required" | "optional" | "none";
|
|
863
|
+
|
|
864
|
+
export { SearchIcon }
|
|
865
|
+
|
|
866
|
+
export { searchIcon }
|
|
867
|
+
|
|
818
868
|
export declare const Select: (props: SelectProps) => JSX.Element;
|
|
819
869
|
|
|
820
870
|
declare type SelectProps = SingleSelectProps | MultipleSelectProps;
|
|
@@ -848,6 +898,8 @@ declare interface SelectPropsBase {
|
|
|
848
898
|
backgroundColor?: string;
|
|
849
899
|
textColor?: string;
|
|
850
900
|
placeholderColor?: string;
|
|
901
|
+
requirementIndicatorMode?: RequirementIndicatorMode;
|
|
902
|
+
optionalLabel?: string;
|
|
851
903
|
}
|
|
852
904
|
|
|
853
905
|
declare interface SingleSelectProps extends SelectPropsBase {
|
|
@@ -961,7 +1013,7 @@ declare interface TabsProps {
|
|
|
961
1013
|
className?: string;
|
|
962
1014
|
}
|
|
963
1015
|
|
|
964
|
-
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;
|
|
1016
|
+
export declare const Textarea: ({ id, onChange, onBlur, name, required, readOnly, disabled, width, resize, value, defaultValue, elementKey, rows, label, placeholder, "aria-describedby": ariaDescribedBy, hasErrors, errorMessage, requirementIndicatorMode, optionalLabel, }: TextareaProps) => JSX.Element;
|
|
965
1017
|
|
|
966
1018
|
declare interface TextareaProps {
|
|
967
1019
|
id: string;
|
|
@@ -982,6 +1034,8 @@ declare interface TextareaProps {
|
|
|
982
1034
|
"aria-describedby"?: string;
|
|
983
1035
|
hasErrors?: boolean;
|
|
984
1036
|
errorMessage?: default_2.ReactNode;
|
|
1037
|
+
requirementIndicatorMode?: RequirementIndicatorMode;
|
|
1038
|
+
optionalLabel?: string;
|
|
985
1039
|
}
|
|
986
1040
|
|
|
987
1041
|
declare interface ThemeProps {
|
|
@@ -996,11 +1050,13 @@ declare interface ThemeProps {
|
|
|
996
1050
|
};
|
|
997
1051
|
}
|
|
998
1052
|
|
|
999
|
-
export declare const ThemeProvider: ({ theme, children }: ThemeProviderProps) =>
|
|
1053
|
+
export declare const ThemeProvider: ({ theme, children, fieldRequirementIndicatorMode, fieldOptionalLabel, }: ThemeProviderProps) => JSX.Element;
|
|
1000
1054
|
|
|
1001
1055
|
declare interface ThemeProviderProps {
|
|
1002
1056
|
theme?: ThemeProps;
|
|
1003
1057
|
children: React.ReactNode;
|
|
1058
|
+
fieldRequirementIndicatorMode?: RequirementIndicatorMode;
|
|
1059
|
+
fieldOptionalLabel?: string;
|
|
1004
1060
|
}
|
|
1005
1061
|
|
|
1006
1062
|
export declare const ToggleNavigationButton: ({ id, htmlTag, showText, hideText, buttonProps, isOpen, }: ToggleNavigationButtonProps) => default_2.DOMElement<{
|
|
@@ -1295,6 +1351,8 @@ declare interface ToggleNavigationButtonProps {
|
|
|
1295
1351
|
isOpen?: boolean;
|
|
1296
1352
|
}
|
|
1297
1353
|
|
|
1354
|
+
export declare const useFieldRequirementIndicator: () => FieldRequirementIndicatorContextValue;
|
|
1355
|
+
|
|
1298
1356
|
export { WarningIcon }
|
|
1299
1357
|
|
|
1300
1358
|
export { warningIcon }
|