@dnb/eufemia 10.0.0-beta.8 → 10.0.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/CHANGELOG.md +266 -329
- package/cjs/components/global-error/GlobalError.d.ts +64 -62
- package/cjs/components/global-error/GlobalError.js +76 -509
- package/cjs/components/global-error/style/dnb-global-error.css +21 -31
- package/cjs/components/global-error/style/dnb-global-error.min.css +1 -1
- package/cjs/components/global-error/style/dnb-global-error.scss +19 -29
- package/cjs/components/radio/style/dnb-radio.css +1 -0
- package/cjs/components/radio/style/dnb-radio.min.css +1 -1
- package/cjs/components/radio/style/dnb-radio.scss +1 -0
- package/cjs/extensions/payment-card/PaymentCard.d.ts +6 -29
- package/cjs/shared/Context.d.ts +2 -0
- package/cjs/shared/Eufemia.d.ts +1 -1
- package/cjs/shared/Eufemia.js +2 -2
- package/cjs/shared/locales/en-GB.d.ts +2 -2
- package/cjs/shared/locales/en-GB.js +7 -7
- package/cjs/shared/locales/en-US.d.ts +2 -2
- package/cjs/shared/locales/index.d.ts +4 -4
- package/cjs/shared/locales/nb-NO.d.ts +2 -2
- package/cjs/shared/locales/nb-NO.js +7 -7
- package/cjs/style/dnb-ui-components.css +22 -31
- package/cjs/style/dnb-ui-components.min.css +1 -1
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.css +22 -31
- package/cjs/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.css +22 -31
- package/cjs/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
- package/cjs/style/themes/theme-ui/ui-theme-components.css +22 -31
- package/cjs/style/themes/theme-ui/ui-theme-components.min.css +1 -1
- package/components/global-error/GlobalError.d.ts +64 -62
- package/components/global-error/GlobalError.js +77 -510
- package/components/global-error/style/dnb-global-error.css +21 -31
- package/components/global-error/style/dnb-global-error.min.css +1 -1
- package/components/global-error/style/dnb-global-error.scss +19 -29
- package/components/radio/style/dnb-radio.css +1 -0
- package/components/radio/style/dnb-radio.min.css +1 -1
- package/components/radio/style/dnb-radio.scss +1 -0
- package/es/components/global-error/GlobalError.d.ts +64 -62
- package/es/components/global-error/GlobalError.js +76 -510
- package/es/components/global-error/style/dnb-global-error.css +21 -31
- package/es/components/global-error/style/dnb-global-error.min.css +1 -1
- package/es/components/global-error/style/dnb-global-error.scss +19 -29
- package/es/components/radio/style/dnb-radio.css +1 -0
- package/es/components/radio/style/dnb-radio.min.css +1 -1
- package/es/components/radio/style/dnb-radio.scss +1 -0
- package/es/extensions/payment-card/PaymentCard.d.ts +6 -29
- package/es/shared/Context.d.ts +2 -0
- package/es/shared/Eufemia.d.ts +1 -1
- package/es/shared/Eufemia.js +2 -2
- package/es/shared/locales/en-GB.d.ts +2 -2
- package/es/shared/locales/en-GB.js +7 -7
- package/es/shared/locales/en-US.d.ts +2 -2
- package/es/shared/locales/index.d.ts +4 -4
- package/es/shared/locales/nb-NO.d.ts +2 -2
- package/es/shared/locales/nb-NO.js +7 -7
- package/es/style/dnb-ui-components.css +22 -31
- package/es/style/dnb-ui-components.min.css +1 -1
- package/es/style/themes/theme-eiendom/eiendom-theme-components.css +22 -31
- package/es/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
- package/es/style/themes/theme-sbanken/sbanken-theme-components.css +22 -31
- package/es/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
- package/es/style/themes/theme-ui/ui-theme-components.css +22 -31
- package/es/style/themes/theme-ui/ui-theme-components.min.css +1 -1
- package/esm/dnb-ui-basis.min.mjs +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +1 -1
- package/esm/dnb-ui-extensions.min.mjs +1 -1
- package/esm/dnb-ui-lib.min.mjs +1 -1
- package/extensions/payment-card/PaymentCard.d.ts +6 -29
- package/package.json +1 -1
- package/shared/Context.d.ts +2 -0
- package/shared/Eufemia.d.ts +1 -1
- package/shared/Eufemia.js +2 -2
- package/shared/locales/en-GB.d.ts +2 -2
- package/shared/locales/en-GB.js +7 -7
- package/shared/locales/en-US.d.ts +2 -2
- package/shared/locales/index.d.ts +4 -4
- package/shared/locales/nb-NO.d.ts +2 -2
- package/shared/locales/nb-NO.js +7 -7
- package/style/dnb-ui-components.css +22 -31
- package/style/dnb-ui-components.min.css +1 -1
- package/style/themes/theme-eiendom/eiendom-theme-components.css +22 -31
- package/style/themes/theme-eiendom/eiendom-theme-components.min.css +1 -1
- package/style/themes/theme-sbanken/sbanken-theme-components.css +22 -31
- package/style/themes/theme-sbanken/sbanken-theme-components.min.css +1 -1
- package/style/themes/theme-ui/ui-theme-components.css +22 -31
- package/style/themes/theme-ui/ui-theme-components.min.css +1 -1
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- package/umd/dnb-ui-elements.min.js +1 -1
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +1 -1
|
@@ -1,62 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Web GlobalError Component
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { GetTranslationProps } from '../../shared/Context';
|
|
7
|
+
import { SkeletonShow } from '../skeleton/Skeleton';
|
|
8
|
+
import type { SpacingProps } from '../../shared/types';
|
|
9
|
+
export declare type GlobalErrorLink = {
|
|
10
|
+
text: string;
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type GlobalErrorProps = {
|
|
14
|
+
/**
|
|
15
|
+
* When `404` or `500` is given, a predefined text will be shown.
|
|
16
|
+
* Defaults to `400`.
|
|
17
|
+
*/
|
|
18
|
+
status?: '404' | '500' | string;
|
|
19
|
+
/**
|
|
20
|
+
* Will overwrite the default title.
|
|
21
|
+
*/
|
|
22
|
+
title?: React.ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Will overwrite the default text.
|
|
25
|
+
*/
|
|
26
|
+
text?: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Will overwrite the default error message code.
|
|
29
|
+
*/
|
|
30
|
+
code?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Will overwrite the default additional help text.
|
|
33
|
+
*/
|
|
34
|
+
help?: React.ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Provide an array with objects `{ text: 'Text', url: 'https://...' }` to display a list of anchor links.
|
|
37
|
+
*/
|
|
38
|
+
links?: Array<GlobalErrorLink>;
|
|
39
|
+
/**
|
|
40
|
+
* If true, it will use 80vh as the height and center its content.
|
|
41
|
+
*/
|
|
42
|
+
center?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Skeleton should be applied when loading content
|
|
45
|
+
* Default: null
|
|
46
|
+
*/
|
|
47
|
+
skeleton?: SkeletonShow;
|
|
48
|
+
};
|
|
49
|
+
export declare type GlobalErrorAllProps = GlobalErrorProps & React.HTMLProps<HTMLElement> & SpacingProps & GetTranslationProps;
|
|
50
|
+
export declare type GlobalErrorTranslationContent = {
|
|
51
|
+
/**
|
|
52
|
+
* Defining a `title` will overwrite the default provided by `status_content`.
|
|
53
|
+
*/
|
|
54
|
+
title?: React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Defining a `text` will overwrite the default provided by `status_content`.
|
|
57
|
+
*/
|
|
58
|
+
text?: React.ReactNode;
|
|
59
|
+
};
|
|
60
|
+
export declare type GlobalErrorTranslation = {
|
|
61
|
+
404?: GlobalErrorTranslationContent;
|
|
62
|
+
500?: GlobalErrorTranslationContent;
|
|
63
|
+
};
|
|
64
|
+
export default function GlobalError(localProps: GlobalErrorAllProps): JSX.Element;
|