@helsenorge/designsystem-react 15.5.1 → 15.7.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/lib/CHANGELOG.md +19 -0
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/FormGroup.js +9 -2
- package/lib/FormGroup.js.map +1 -1
- package/lib/FormLayout.js +9 -1
- package/lib/FormLayout.js.map +1 -1
- package/lib/LazyIcon.js +5 -0
- package/lib/LazyIcon.js.map +1 -1
- package/lib/Toggle.js +176 -0
- package/lib/Toggle.js.map +1 -0
- package/lib/components/Close/styles.module.scss +2 -2
- package/lib/components/FormGroup/styles.module.scss +15 -3
- package/lib/components/FormGroup/styles.module.scss.d.ts +2 -0
- package/lib/components/FormLayout/styles.module.scss +9 -1
- package/lib/components/FormLayout/styles.module.scss.d.ts +2 -0
- package/lib/components/HelpPanel/HelpPanel.d.ts +2 -2
- package/lib/components/HelpPanel/index.js +49 -9
- package/lib/components/HelpPanel/index.js.map +1 -1
- package/lib/components/HelpPanel/styles.module.scss +66 -2
- package/lib/components/HelpPanel/styles.module.scss.d.ts +8 -0
- package/lib/components/HelpTeaser/HelpTeaser.d.ts +5 -2
- package/lib/components/HelpTeaser/index.js +59 -14
- package/lib/components/HelpTeaser/index.js.map +1 -1
- package/lib/components/HelpTeaser/styles.module.scss +105 -2
- package/lib/components/HelpTeaser/styles.module.scss.d.ts +6 -0
- package/lib/components/HighlightPanel/index.js +79 -1
- package/lib/components/HighlightPanel/index.js.map +1 -0
- package/lib/components/Icons/AdditionalIconInformation.d.ts +20 -0
- package/lib/components/Icons/AdditionalIconInformation.js +20 -0
- package/lib/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/lib/components/Icons/ConsentDocument.d.ts +3 -0
- package/lib/components/Icons/ConsentDocument.js +53 -0
- package/lib/components/Icons/ConsentDocument.js.map +1 -0
- package/lib/components/Icons/HealthCarePersonnelSecurity.d.ts +3 -0
- package/lib/components/Icons/HealthCarePersonnelSecurity.js +65 -0
- package/lib/components/Icons/HealthCarePersonnelSecurity.js.map +1 -0
- package/lib/components/Icons/HistoryDocument.d.ts +3 -0
- package/lib/components/Icons/HistoryDocument.js +50 -0
- package/lib/components/Icons/HistoryDocument.js.map +1 -0
- package/lib/components/Icons/IconNames.d.ts +1 -1
- package/lib/components/Icons/IconNames.js +5 -0
- package/lib/components/Icons/IconNames.js.map +1 -1
- package/lib/components/Icons/PersonCommunication.d.ts +3 -0
- package/lib/components/Icons/PersonCommunication.js +69 -0
- package/lib/components/Icons/PersonCommunication.js.map +1 -0
- package/lib/components/Icons/PersonDocument.d.ts +3 -0
- package/lib/components/Icons/PersonDocument.js +65 -0
- package/lib/components/Icons/PersonDocument.js.map +1 -0
- package/lib/components/InfoTeaser/index.js +71 -1
- package/lib/components/InfoTeaser/index.js.map +1 -0
- package/lib/components/RadioButton/styles.module.scss +6 -6
- package/lib/components/Toggle/index.js +1 -175
- package/lib/resourceHelper2.js +22 -0
- package/lib/resourceHelper2.js.map +1 -0
- package/lib/utils/formSpacing.d.ts +3 -0
- package/lib/utils/formSpacing.js +16 -0
- package/lib/utils/formSpacing.js.map +1 -0
- package/package.json +1 -1
- package/lib/HighlightPanel.js +0 -80
- package/lib/HighlightPanel.js.map +0 -1
- package/lib/InfoTeaser.js +0 -89
- package/lib/InfoTeaser.js.map +0 -1
- package/lib/components/Toggle/index.js.map +0 -1
|
@@ -1,17 +1,57 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconSize } from "../../constants.js";
|
|
2
|
+
import { t as Icon_default } from "../../Icon.js";
|
|
3
|
+
import { useIsMobileBreakpoint } from "../../hooks/useIsMobileBreakpoint.js";
|
|
4
|
+
import Title_default from "../Title/index.js";
|
|
2
5
|
import HandWaving from "../Icons/HandWaving.js";
|
|
3
6
|
import classNames from "classnames";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
8
|
import styles from "./styles.module.scss";
|
|
6
9
|
//#region src/components/HelpPanel/HelpPanel.tsx
|
|
7
10
|
var HelpPanel = ({ className, variant = "normal", testId, children, title }) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
const isMobile = useIsMobileBreakpoint();
|
|
12
|
+
const containerClassName = classNames(styles["help-panel"], {
|
|
13
|
+
[styles["help-panel--compact"]]: variant === "compact",
|
|
14
|
+
[styles["help-panel--subdued"]]: variant === "subdued"
|
|
15
|
+
}, className);
|
|
16
|
+
const renderContent = () => {
|
|
17
|
+
const titleElement = title && /* @__PURE__ */ jsx(Title_default, {
|
|
18
|
+
testId: "titleId",
|
|
19
|
+
htmlMarkup: "h2",
|
|
20
|
+
appearance: "title6",
|
|
21
|
+
children: title
|
|
22
|
+
});
|
|
23
|
+
const iconSize = isMobile ? IconSize.XSmall : IconSize.Small;
|
|
24
|
+
if (variant === "compact") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
25
|
+
className: classNames(styles["help-panel__icon"], styles["help-panel__icon--compact"]),
|
|
26
|
+
children: /* @__PURE__ */ jsx(Icon_default, {
|
|
27
|
+
svgIcon: HandWaving,
|
|
28
|
+
size: iconSize
|
|
29
|
+
})
|
|
30
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
31
|
+
className: classNames(styles["help-panel__content"], styles["help-panel__content--compact"]),
|
|
32
|
+
children: [title && /* @__PURE__ */ jsx("div", {
|
|
33
|
+
className: styles["help-panel__title-wrapper"],
|
|
34
|
+
children: titleElement
|
|
35
|
+
}), children]
|
|
36
|
+
})] });
|
|
37
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: styles["help-panel__icon"],
|
|
39
|
+
children: /* @__PURE__ */ jsx(Icon_default, {
|
|
40
|
+
svgIcon: HandWaving,
|
|
41
|
+
size: iconSize
|
|
42
|
+
})
|
|
43
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
44
|
+
className: styles["help-panel__content"],
|
|
45
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
46
|
+
className: styles["help-panel__title-wrapper"],
|
|
47
|
+
children: titleElement
|
|
48
|
+
}), children]
|
|
49
|
+
})] });
|
|
50
|
+
};
|
|
51
|
+
return /* @__PURE__ */ jsx("div", {
|
|
52
|
+
className: containerClassName,
|
|
53
|
+
"data-testid": testId,
|
|
54
|
+
children: renderContent()
|
|
15
55
|
});
|
|
16
56
|
};
|
|
17
57
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpPanel/HelpPanel.tsx","../../../src/components/HelpPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpPanel/HelpPanel.tsx","../../../src/components/HelpPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport { useIsMobileBreakpoint } from '@helsenorge/designsystem-react/hooks/useIsMobileBreakpoint';\n\nimport Icon, { IconSize } from '../Icon';\nimport HandWaving from '../Icons/HandWaving';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HelpPanelVariants = 'normal' | 'compact' | 'subdued';\n\nexport interface HelpPanelProps {\n /** The content of the component */\n children: React.ReactNode;\n /** If set the compact styling will be used */\n variant?: HelpPanelVariants;\n /** Adds custom classes to the element. */\n className?: string;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Sets title if needed */\n title?: string;\n}\n\nconst HelpPanel: React.FC<HelpPanelProps> = ({ className, variant = 'normal', testId, children, title }) => {\n const isMobile = useIsMobileBreakpoint();\n\n const containerClassName = classNames(\n styles['help-panel'],\n {\n [styles['help-panel--compact']]: variant === 'compact',\n [styles['help-panel--subdued']]: variant === 'subdued',\n },\n className\n );\n\n const renderContent = (): React.ReactNode => {\n const titleElement = title && (\n <Title testId=\"titleId\" htmlMarkup={'h2'} appearance={'title6'}>\n {title}\n </Title>\n );\n\n const iconSize = isMobile ? IconSize.XSmall : IconSize.Small;\n\n if (variant === 'compact') {\n return (\n <>\n <div className={classNames(styles['help-panel__icon'], styles['help-panel__icon--compact'])}>\n <Icon svgIcon={HandWaving} size={iconSize} />\n </div>\n <div className={classNames(styles['help-panel__content'], styles['help-panel__content--compact'])}>\n {title && <div className={styles['help-panel__title-wrapper']}>{titleElement}</div>}\n {children}\n </div>\n </>\n );\n }\n\n return (\n <>\n <div className={styles['help-panel__icon']}>{<Icon svgIcon={HandWaving} size={iconSize} />}</div>\n <div className={styles['help-panel__content']}>\n <div className={styles['help-panel__title-wrapper']}>{titleElement}</div>\n {children}\n </div>\n </>\n );\n };\n\n return (\n <div className={containerClassName} data-testid={testId}>\n {renderContent()}\n </div>\n );\n};\n\nexport default HelpPanel;\n","import HelpPanel from './HelpPanel';\nexport * from './HelpPanel';\nexport default HelpPanel;\n"],"mappings":";;;;;;;;;AAyBA,IAAM,aAAuC,EAAE,WAAW,UAAU,UAAU,QAAQ,UAAU,YAAY;CAC1G,MAAM,WAAW,sBAAsB;CAEvC,MAAM,qBAAqB,WACzB,OAAO,eACP;GACG,OAAO,yBAAyB,YAAY;GAC5C,OAAO,yBAAyB,YAAY;CAC/C,GACA,SACF;CAEA,MAAM,sBAAuC;EAC3C,MAAM,eAAe,SACnB,oBAAC,eAAD;GAAO,QAAO;GAAU,YAAY;GAAM,YAAY;GACnD,UAAA;EACI,CAAA;EAGT,MAAM,WAAW,WAAW,SAAS,SAAS,SAAS;EAEvD,IAAI,YAAY,WACd,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,OAAD;GAAK,WAAW,WAAW,OAAO,qBAAqB,OAAO,4BAA4B;GACxF,UAAA,oBAAC,cAAD;IAAM,SAAS;IAAY,MAAM;GAAW,CAAA;EACzC,CAAA,GACL,qBAAC,OAAD;GAAK,WAAW,WAAW,OAAO,wBAAwB,OAAO,+BAA+B;GAAhG,UAAA,CACG,SAAS,oBAAC,OAAD;IAAK,WAAW,OAAO;IAA+B,UAAA;GAAkB,CAAA,GACjF,QACE;EACL,CAAA,CAAA,EAAA,CAAA;EAIN,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,OAAD;GAAK,WAAW,OAAO;GAAsB,UAAA,oBAAC,cAAD;IAAM,SAAS;IAAY,MAAM;GAAW,CAAA;EAAO,CAAA,GAChG,qBAAC,OAAD;GAAK,WAAW,OAAO;GAAvB,UAAA,CACE,oBAAC,OAAD;IAAK,WAAW,OAAO;IAA+B,UAAA;GAAkB,CAAA,GACvE,QACE;EACL,CAAA,CAAA,EAAA,CAAA;CAEN;CAEA,OACE,oBAAC,OAAD;EAAK,WAAW;EAAoB,eAAa;EAC9C,UAAA,cAAc;CACZ,CAAA;AAET;;;AC1EA,IAAA,oBAAe"}
|
|
@@ -1,6 +1,70 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../scss/font-mixins' as fonts;
|
|
3
|
+
@use '../../scss/screen-reader' as *;
|
|
4
|
+
@use '../../scss/breakpoints' as breakpoints;
|
|
1
5
|
@import '../../scss/supernova/styles/colors.css';
|
|
6
|
+
@import '../../scss/supernova/styles/spacers.css';
|
|
2
7
|
|
|
3
8
|
.help-panel {
|
|
4
|
-
|
|
5
|
-
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
padding: var(--core-space-xs) var(--core-space-xs) var(--core-space-m);
|
|
12
|
+
background-color: var(--color-help-background-normal);
|
|
13
|
+
border: 1px solid var(--color-help-border-subtle-wcag);
|
|
14
|
+
|
|
15
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
|
|
16
|
+
padding: var(--core-space-s) var(--core-space-s) var(--core-space-m);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
|
|
20
|
+
padding: var(--core-space-s) var(--core-space-m) var(--core-space-m);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--compact {
|
|
24
|
+
padding: var(--core-space-2xs) var(--core-space-s);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--subdued {
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&--white {
|
|
32
|
+
background-color: var(--color-base-background-white);
|
|
33
|
+
border: 1px solid var(--color-base-border-onlight-subtle);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__content {
|
|
37
|
+
@include fonts.help-text;
|
|
38
|
+
|
|
39
|
+
margin-top: 0.625rem;
|
|
40
|
+
|
|
41
|
+
&--compact {
|
|
42
|
+
margin-top: 0.625rem;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__icon {
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
gap: var(--core-space-xs);
|
|
49
|
+
margin-right: var(--core-space-3xs);
|
|
50
|
+
margin-bottom: 0;
|
|
51
|
+
|
|
52
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
53
|
+
margin-right: var(--core-space-2xs);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
|
|
57
|
+
margin-right: var(--core-space-s);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&--compact {
|
|
61
|
+
margin-right: var(--core-space-2xs);
|
|
62
|
+
margin-bottom: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__title-wrapper {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
6
70
|
}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
2
|
'help-panel': string;
|
|
3
|
+
'help-panel__content': string;
|
|
4
|
+
'help-panel__content--compact': string;
|
|
5
|
+
'help-panel__icon': string;
|
|
6
|
+
'help-panel__icon--compact': string;
|
|
7
|
+
'help-panel__title-wrapper': string;
|
|
8
|
+
'help-panel--compact': string;
|
|
9
|
+
'help-panel--subdued': string;
|
|
10
|
+
'help-panel--white': string;
|
|
3
11
|
};
|
|
4
12
|
|
|
5
13
|
export type ClassNames = keyof Styles;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { HNDesignsystemInfoTeaser } from '../../resources/Resources';
|
|
2
|
-
import { InfoTeaserTags } from '../InfoTeaser';
|
|
3
2
|
import { TitleTags } from '../Title';
|
|
3
|
+
export type HelpTeaserVariants = 'normal' | 'subdued';
|
|
4
|
+
export type HelpTeaserTags = 'div' | 'section' | 'aside' | 'article';
|
|
4
5
|
export interface HelpTeaserProps {
|
|
5
6
|
/** What's in the box? */
|
|
6
7
|
children: React.ReactNode;
|
|
7
8
|
/** Override the default max height for collapsed teaser. Default is 12.25rem */
|
|
8
9
|
collapsedMaxHeight?: string;
|
|
9
10
|
/** Changes the underlying element of the wrapper */
|
|
10
|
-
htmlMarkup?:
|
|
11
|
+
htmlMarkup?: HelpTeaserTags;
|
|
11
12
|
/** Resources for component */
|
|
12
13
|
resources?: Partial<HNDesignsystemInfoTeaser>;
|
|
13
14
|
/** Sets the data-testid attribute */
|
|
@@ -16,6 +17,8 @@ export interface HelpTeaserProps {
|
|
|
16
17
|
title: string;
|
|
17
18
|
/** Markup props for title */
|
|
18
19
|
titleHtmlMarkup?: TitleTags;
|
|
20
|
+
/** Sets the visual variant */
|
|
21
|
+
variant?: HelpTeaserVariants;
|
|
19
22
|
}
|
|
20
23
|
declare const HelpTeaser: React.FC<HelpTeaserProps>;
|
|
21
24
|
export default HelpTeaser;
|
|
@@ -1,21 +1,66 @@
|
|
|
1
|
+
import { IconSize, LanguageLocales } from "../../constants.js";
|
|
2
|
+
import { t as Icon_default } from "../../Icon.js";
|
|
3
|
+
import { useLanguage } from "../../hooks/useLanguage.js";
|
|
4
|
+
import { useIsMobileBreakpoint } from "../../hooks/useIsMobileBreakpoint.js";
|
|
5
|
+
import Title_default from "../Title/index.js";
|
|
6
|
+
import { useExpand } from "../../hooks/useExpand.js";
|
|
1
7
|
import HandWaving from "../Icons/HandWaving.js";
|
|
2
|
-
import { t as
|
|
3
|
-
import
|
|
8
|
+
import { t as getResources } from "../../resourceHelper2.js";
|
|
9
|
+
import classNames from "classnames";
|
|
10
|
+
import { useId } from "react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
12
|
import styles from "./styles.module.scss";
|
|
5
13
|
//#region src/components/HelpTeaser/HelpTeaser.tsx
|
|
6
14
|
var HelpTeaser = (props) => {
|
|
7
|
-
const { children, htmlMarkup, resources, testId, title, titleHtmlMarkup, collapsedMaxHeight } = props;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const { children, htmlMarkup, resources, testId, title, titleHtmlMarkup, collapsedMaxHeight, variant = "normal" } = props;
|
|
16
|
+
const [isExpanded, setIsExpanded] = useExpand(false);
|
|
17
|
+
const { language } = useLanguage(LanguageLocales.NORWEGIAN);
|
|
18
|
+
const defaultResources = getResources(language);
|
|
19
|
+
const helpTeaserTextId = useId();
|
|
20
|
+
const isMobile = useIsMobileBreakpoint();
|
|
21
|
+
const mergedResources = {
|
|
22
|
+
...defaultResources,
|
|
23
|
+
...resources
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ jsxs(htmlMarkup ?? "div", {
|
|
26
|
+
className: styles.wrapper,
|
|
27
|
+
"data-testid": testId,
|
|
28
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
29
|
+
className: classNames(styles.helpteaser, {
|
|
30
|
+
[styles["helpteaser--collapsed"]]: !isExpanded,
|
|
31
|
+
[styles["helpteaser--subdued"]]: variant === "subdued"
|
|
32
|
+
}),
|
|
33
|
+
style: { maxHeight: !isExpanded ? collapsedMaxHeight ?? "12.25rem" : void 0 },
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsx(Icon_default, {
|
|
36
|
+
svgIcon: HandWaving,
|
|
37
|
+
size: isMobile ? IconSize.XSmall : IconSize.Small,
|
|
38
|
+
className: styles["helpteaser__icon"]
|
|
39
|
+
}),
|
|
40
|
+
title && typeof title !== "undefined" && /* @__PURE__ */ jsx(Title_default, {
|
|
41
|
+
testId: "titleId",
|
|
42
|
+
htmlMarkup: titleHtmlMarkup ?? "h2",
|
|
43
|
+
appearance: "title6",
|
|
44
|
+
className: styles["helpteaser__title"],
|
|
45
|
+
children: title
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: styles["helpteaser__text"],
|
|
49
|
+
"aria-hidden": isExpanded ? false : true,
|
|
50
|
+
id: helpTeaserTextId,
|
|
51
|
+
children
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
55
|
+
type: "button",
|
|
56
|
+
className: styles["helpteaser__button"],
|
|
57
|
+
onClick: () => {
|
|
58
|
+
setIsExpanded(!isExpanded);
|
|
59
|
+
},
|
|
60
|
+
"aria-expanded": isExpanded,
|
|
61
|
+
"aria-controls": helpTeaserTextId,
|
|
62
|
+
children: isExpanded ? mergedResources.expandButtonOpen : mergedResources.expandButtonClose
|
|
63
|
+
})]
|
|
19
64
|
});
|
|
20
65
|
};
|
|
21
66
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpTeaser/HelpTeaser.tsx","../../../src/components/HelpTeaser/index.ts"],"sourcesContent":["import type { HNDesignsystemInfoTeaser } from '../../resources/Resources';\nimport type {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HelpTeaser/HelpTeaser.tsx","../../../src/components/HelpTeaser/index.ts"],"sourcesContent":["import { useId } from 'react';\n\nimport classNames from 'classnames';\n\nimport type { HNDesignsystemInfoTeaser } from '../../resources/Resources';\nimport type { TitleTags } from '../Title';\n\nimport { useIsMobileBreakpoint } from '@helsenorge/designsystem-react/hooks/useIsMobileBreakpoint';\n\nimport { LanguageLocales } from '../../constants';\nimport { useExpand } from '../../hooks/useExpand';\nimport { useLanguage } from '../../hooks/useLanguage';\nimport Icon, { IconSize } from '../Icon';\nimport HandWaving from '../Icons/HandWaving';\nimport { getResources } from '../InfoTeaser/resourceHelper';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HelpTeaserVariants = 'normal' | 'subdued';\nexport type HelpTeaserTags = 'div' | 'section' | 'aside' | 'article';\n\nexport interface HelpTeaserProps {\n /** What's in the box? */\n children: React.ReactNode;\n /** Override the default max height for collapsed teaser. Default is 12.25rem */\n collapsedMaxHeight?: string;\n /** Changes the underlying element of the wrapper */\n htmlMarkup?: HelpTeaserTags;\n /** Resources for component */\n resources?: Partial<HNDesignsystemInfoTeaser>;\n /** Sets the data-testid attribute */\n testId?: string;\n /** Title on top of the component */\n title: string;\n /** Markup props for title */\n titleHtmlMarkup?: TitleTags;\n /** Sets the visual variant */\n variant?: HelpTeaserVariants;\n}\n\nconst HelpTeaser: React.FC<HelpTeaserProps> = props => {\n const { children, htmlMarkup, resources, testId, title, titleHtmlMarkup, collapsedMaxHeight, variant = 'normal' } = props;\n\n const [isExpanded, setIsExpanded] = useExpand(false);\n const { language } = useLanguage<LanguageLocales>(LanguageLocales.NORWEGIAN);\n const defaultResources = getResources(language);\n const helpTeaserTextId = useId();\n const isMobile = useIsMobileBreakpoint();\n\n const mergedResources: HNDesignsystemInfoTeaser = {\n ...defaultResources,\n ...resources,\n };\n\n const WrapperTag = htmlMarkup ?? 'div';\n\n return (\n <WrapperTag className={styles.wrapper} data-testid={testId}>\n <div\n className={classNames(styles.helpteaser, {\n [styles['helpteaser--collapsed']]: !isExpanded,\n [styles['helpteaser--subdued']]: variant === 'subdued',\n })}\n style={{ maxHeight: !isExpanded ? (collapsedMaxHeight ?? '12.25rem') : undefined }}\n >\n <Icon svgIcon={HandWaving} size={isMobile ? IconSize.XSmall : IconSize.Small} className={styles['helpteaser__icon']} />\n {title && typeof title !== 'undefined' && (\n <Title testId=\"titleId\" htmlMarkup={titleHtmlMarkup ?? 'h2'} appearance=\"title6\" className={styles['helpteaser__title']}>\n {title}\n </Title>\n )}\n <div className={styles['helpteaser__text']} aria-hidden={isExpanded ? false : true} id={helpTeaserTextId}>\n {children}\n </div>\n </div>\n <button\n type=\"button\"\n className={styles['helpteaser__button']}\n onClick={() => {\n setIsExpanded(!isExpanded);\n }}\n aria-expanded={isExpanded}\n aria-controls={helpTeaserTextId}\n >\n {isExpanded ? mergedResources.expandButtonOpen : mergedResources.expandButtonClose}\n </button>\n </WrapperTag>\n );\n};\n\nexport default HelpTeaser;\n","import HelpTeaser from './HelpTeaser';\nexport * from './HelpTeaser';\nexport default HelpTeaser;\n"],"mappings":";;;;;;;;;;;;;AAyCA,IAAM,cAAwC,UAAS;CACrD,MAAM,EAAE,UAAU,YAAY,WAAW,QAAQ,OAAO,iBAAiB,oBAAoB,UAAU,aAAa;CAEpH,MAAM,CAAC,YAAY,iBAAiB,UAAU,KAAK;CACnD,MAAM,EAAE,aAAa,YAA6B,gBAAgB,SAAS;CAC3E,MAAM,mBAAmB,aAAa,QAAQ;CAC9C,MAAM,mBAAmB,MAAM;CAC/B,MAAM,WAAW,sBAAsB;CAEvC,MAAM,kBAA4C;EAChD,GAAG;EACH,GAAG;CACL;CAIA,OACE,qBAHiB,cAAc,OAG/B;EAAY,WAAW,OAAO;EAAS,eAAa;EAApD,UAAA,CACE,qBAAC,OAAD;GACE,WAAW,WAAW,OAAO,YAAY;KACtC,OAAO,2BAA2B,CAAC;KACnC,OAAO,yBAAyB,YAAY;GAC/C,CAAC;GACD,OAAO,EAAE,WAAW,CAAC,aAAc,sBAAsB,aAAc,KAAA,EAAU;GALnF,UAAA;IAOE,oBAAC,cAAD;KAAM,SAAS;KAAY,MAAM,WAAW,SAAS,SAAS,SAAS;KAAO,WAAW,OAAO;IAAsB,CAAA;IACrH,SAAS,OAAO,UAAU,eACzB,oBAAC,eAAD;KAAO,QAAO;KAAU,YAAY,mBAAmB;KAAM,YAAW;KAAS,WAAW,OAAO;KAChG,UAAA;IACI,CAAA;IAET,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAqB,eAAa,aAAa,QAAQ;KAAM,IAAI;KACrF;IACE,CAAA;GACF;EACL,CAAA,GAAA,oBAAC,UAAD;GACE,MAAK;GACL,WAAW,OAAO;GAClB,eAAe;IACb,cAAc,CAAC,UAAU;GAC3B;GACA,iBAAe;GACf,iBAAe;GAEd,UAAA,aAAa,gBAAgB,mBAAmB,gBAAgB;EAC3D,CAAA,CACE;;AAEhB;;;ACvFA,IAAA,qBAAe"}
|
|
@@ -1,14 +1,111 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../scss/font-mixins' as fonts;
|
|
3
|
+
@use '../../scss/breakpoints' as breakpoints;
|
|
1
4
|
@import '../../scss/supernova/styles/colors.css';
|
|
5
|
+
@import '../../scss/supernova/styles/spacers.css';
|
|
6
|
+
|
|
7
|
+
.wrapper {
|
|
8
|
+
position: relative;
|
|
9
|
+
}
|
|
2
10
|
|
|
3
11
|
.helpteaser {
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: [icon] auto [content] 1fr;
|
|
14
|
+
width: 100%;
|
|
15
|
+
overflow: hidden;
|
|
4
16
|
background-color: var(--color-help-background-normal);
|
|
5
17
|
border: 1px solid var(--color-help-border-subtle-wcag);
|
|
18
|
+
padding: var(--core-space-xs) var(--core-space-xs) var(--core-space-m);
|
|
19
|
+
|
|
20
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, sm)) {
|
|
21
|
+
padding: var(--core-space-s) var(--core-space-s) var(--core-space-m);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
25
|
+
padding: var(--core-space-s) var(--core-space-s) var(--core-space-l);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
|
|
29
|
+
padding: var(--core-space-s) var(--core-space-m) var(--core-space-l);
|
|
30
|
+
}
|
|
6
31
|
|
|
7
|
-
|
|
8
|
-
background:
|
|
32
|
+
&--subdued {
|
|
33
|
+
background-color: var(--color-base-background-white);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--collapsed {
|
|
37
|
+
&::after {
|
|
38
|
+
content: '';
|
|
39
|
+
position: absolute;
|
|
40
|
+
height: 5.875rem;
|
|
41
|
+
background: linear-gradient(180deg, #f4ecfe40 0%, #f4ecfe 80%);
|
|
42
|
+
|
|
43
|
+
/* 1px på hver side for å ikke ligge over border */
|
|
44
|
+
bottom: 1px;
|
|
45
|
+
left: 1px;
|
|
46
|
+
width: calc(100% - 2px);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--collapsed#{&}--subdued {
|
|
51
|
+
&::after {
|
|
52
|
+
background: linear-gradient(180deg, #fff6 0%, #fff 80%);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__title {
|
|
57
|
+
grid-column: content;
|
|
58
|
+
grid-row: 1;
|
|
59
|
+
align-self: center;
|
|
60
|
+
padding: var(--core-space-2xs) 0;
|
|
61
|
+
|
|
62
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
63
|
+
padding-top: 0.62rem;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__icon {
|
|
68
|
+
grid-column: icon;
|
|
69
|
+
grid-row: 1;
|
|
70
|
+
align-self: center;
|
|
71
|
+
margin-right: var(--core-space-3xs);
|
|
72
|
+
|
|
73
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
74
|
+
margin-right: var(--core-space-2xs);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, lg)) {
|
|
78
|
+
margin-right: var(--core-space-s);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&__text {
|
|
83
|
+
@include fonts.help-text;
|
|
84
|
+
|
|
85
|
+
grid-column: content;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
height: inherit;
|
|
9
88
|
}
|
|
10
89
|
|
|
11
90
|
&__button {
|
|
91
|
+
position: absolute;
|
|
92
|
+
right: calc(50%);
|
|
93
|
+
border: none;
|
|
94
|
+
width: fit-content;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
border-radius: 1.25rem;
|
|
97
|
+
color: var(--core-color-white, #fff);
|
|
98
|
+
padding: 0.375rem 1rem;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
left: 50%;
|
|
101
|
+
transform: translateX(-50%) translateY(50%);
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
|
|
104
|
+
/* @todo Mobile/HelpTriggerText */
|
|
105
|
+
font-size: 1rem;
|
|
106
|
+
font-style: normal;
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
line-height: 120%; // 1.2rem
|
|
12
109
|
background-color: var(--color-help-graphics-normal);
|
|
13
110
|
|
|
14
111
|
&:hover {
|
|
@@ -18,5 +115,11 @@
|
|
|
18
115
|
&:active {
|
|
19
116
|
background-color: var(--color-help-graphics-dark);
|
|
20
117
|
}
|
|
118
|
+
|
|
119
|
+
&:focus-visible {
|
|
120
|
+
border: 1px solid var(--color-base-graphics-ondark);
|
|
121
|
+
outline: none;
|
|
122
|
+
box-shadow: 0 0 0 3px var(--color-base-graphics-onlight);
|
|
123
|
+
}
|
|
21
124
|
}
|
|
22
125
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
2
|
helpteaser: string;
|
|
3
3
|
helpteaser__button: string;
|
|
4
|
+
helpteaser__icon: string;
|
|
5
|
+
helpteaser__text: string;
|
|
6
|
+
helpteaser__title: string;
|
|
7
|
+
'helpteaser--collapsed': string;
|
|
8
|
+
'helpteaser--subdued': string;
|
|
9
|
+
wrapper: string;
|
|
4
10
|
};
|
|
5
11
|
|
|
6
12
|
export type ClassNames = keyof Styles;
|
|
@@ -1,2 +1,80 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnalyticsId, IconSize } from "../../constants.js";
|
|
2
|
+
import { t as Icon_default } from "../../Icon.js";
|
|
3
|
+
import { t as LazyIcon_default } from "../../LazyIcon.js";
|
|
4
|
+
import { Breakpoint, useBreakpoint } from "../../hooks/useBreakpoint.js";
|
|
5
|
+
import Title_default from "../Title/index.js";
|
|
6
|
+
import classNames from "classnames";
|
|
7
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import styles from "./styles.module.scss";
|
|
9
|
+
//#region src/components/HighlightPanel/HighlightPanel.tsx
|
|
10
|
+
var HighlightPanel = (props) => {
|
|
11
|
+
const { children, color = "white", testId, svgIcon, htmlMarkup = "div", className, variant = "normal", title, titleHtmlMarkup = "h2" } = props;
|
|
12
|
+
const breakpoint = useBreakpoint();
|
|
13
|
+
const containerClassName = classNames(styles.highlightpanel, styles[`highlightpanel--${color}`], svgIcon && styles["highlightpanel--has-icon"], className, { [styles["highlightpanel--compact"]]: variant === "compact" });
|
|
14
|
+
const renderContent = () => {
|
|
15
|
+
const titleElement = title && /* @__PURE__ */ jsx(Title_default, {
|
|
16
|
+
testId: "titleId",
|
|
17
|
+
htmlMarkup: titleHtmlMarkup,
|
|
18
|
+
appearance: variant === "compact" ? "title6" : "title4",
|
|
19
|
+
children: title
|
|
20
|
+
});
|
|
21
|
+
if (svgIcon) {
|
|
22
|
+
const iconSize = IconSize.Small;
|
|
23
|
+
if (variant === "compact") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
|
|
24
|
+
className: classNames(styles.highlightpanel__icon, styles["highlightpanel__icon--compact"]),
|
|
25
|
+
children: typeof svgIcon === "string" ? /* @__PURE__ */ jsx(LazyIcon_default, {
|
|
26
|
+
iconName: svgIcon,
|
|
27
|
+
size: iconSize
|
|
28
|
+
}) : /* @__PURE__ */ jsx(Icon_default, {
|
|
29
|
+
svgIcon,
|
|
30
|
+
size: iconSize
|
|
31
|
+
})
|
|
32
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
33
|
+
className: classNames(styles.highlightpanel__content, styles["highlightpanel__content--compact"]),
|
|
34
|
+
children: [title && /* @__PURE__ */ jsx("div", {
|
|
35
|
+
className: styles["highlightpanel__title-wrapper"],
|
|
36
|
+
children: titleElement
|
|
37
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
38
|
+
className: styles["highlightpanel__content__children--compact"],
|
|
39
|
+
children
|
|
40
|
+
})]
|
|
41
|
+
})] });
|
|
42
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
43
|
+
className: styles.highlightpanel__icon,
|
|
44
|
+
children: [typeof svgIcon === "string" ? /* @__PURE__ */ jsx(LazyIcon_default, {
|
|
45
|
+
iconName: svgIcon,
|
|
46
|
+
size: iconSize
|
|
47
|
+
}) : /* @__PURE__ */ jsx(Icon_default, {
|
|
48
|
+
svgIcon,
|
|
49
|
+
size: iconSize
|
|
50
|
+
}), title && breakpoint < Breakpoint.md && /* @__PURE__ */ jsx("div", {
|
|
51
|
+
className: styles["highlightpanel__title-wrapper"],
|
|
52
|
+
children: titleElement
|
|
53
|
+
})]
|
|
54
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
55
|
+
className: styles.highlightpanel__content,
|
|
56
|
+
children: [title && breakpoint >= Breakpoint.md && /* @__PURE__ */ jsx("div", {
|
|
57
|
+
className: styles["highlightpanel__title-wrapper"],
|
|
58
|
+
children: titleElement
|
|
59
|
+
}), children]
|
|
60
|
+
})] });
|
|
61
|
+
}
|
|
62
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [title && /* @__PURE__ */ jsx("div", {
|
|
63
|
+
className: styles.highlightpanel__content,
|
|
64
|
+
children: /* @__PURE__ */ jsx("div", { children: titleElement })
|
|
65
|
+
}), children] });
|
|
66
|
+
};
|
|
67
|
+
return /* @__PURE__ */ jsx(htmlMarkup, {
|
|
68
|
+
className: containerClassName,
|
|
69
|
+
"data-testid": testId,
|
|
70
|
+
"data-analyticsid": AnalyticsId.HighlightPanel,
|
|
71
|
+
children: renderContent()
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/HighlightPanel/index.ts
|
|
76
|
+
var HighlightPanel_default = HighlightPanel;
|
|
77
|
+
//#endregion
|
|
2
78
|
export { HighlightPanel_default as default };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/HighlightPanel/HighlightPanel.tsx","../../../src/components/HighlightPanel/index.ts"],"sourcesContent":["import classNames from 'classnames';\n\nimport type { PaletteNames } from '../../theme/palette';\nimport type { SvgIcon } from '../Icon';\nimport type { IconName } from '../Icons/IconNames';\nimport type { TitleTags } from '../Title';\n\nimport { useBreakpoint, Breakpoint } from '../..';\nimport { AnalyticsId } from '../../constants';\nimport Icon, { IconSize } from '../Icon';\nimport LazyIcon from '../LazyIcon';\nimport Title from '../Title';\n\nimport styles from './styles.module.scss';\n\nexport type HighlightPanelColors = Extract<PaletteNames, 'white' | 'neutral' | 'blueberry' | 'cherry'>;\n\nexport type HighlightPanelTags = Exclude<\n keyof HTMLElementTagNameMap,\n 'dir' | 'font' | 'frame' | 'frameset' | 'marquee' | 'applet' | 'basefont' | 'search'\n>;\n\nexport type HighlightPanelVariants = 'normal' | 'compact';\n\nexport interface HighlightPanelProps {\n /** What's in the box? */\n children: React.ReactNode;\n /** Changes the background color. Default: white */\n color?: HighlightPanelColors;\n /** Adds an icon to the highlightpanel. */\n svgIcon?: SvgIcon | IconName;\n /** Changes the underlying element. Default: div */\n htmlMarkup?: HighlightPanelTags;\n /** Adds custom classes to the element. */\n className?: string;\n /** Uses the compact styling if set to compact */\n variant?: HighlightPanelVariants;\n /** Sets the data-testid attribute. */\n testId?: string;\n /** Element that is set after the icon-element in the DOM, often a title-element */\n title?: string;\n /** Markup props for title */\n titleHtmlMarkup?: TitleTags;\n}\n\nconst HighlightPanel: React.FC<HighlightPanelProps> = props => {\n const {\n children,\n color = 'white',\n testId,\n svgIcon,\n htmlMarkup = 'div',\n className,\n variant = 'normal',\n title,\n titleHtmlMarkup = 'h2',\n } = props;\n const breakpoint = useBreakpoint();\n\n const containerClassName = classNames(\n styles.highlightpanel,\n styles[`highlightpanel--${color}`],\n svgIcon && styles['highlightpanel--has-icon'],\n className,\n { [styles['highlightpanel--compact']]: variant === 'compact' }\n );\n\n const renderContent = (): React.ReactNode => {\n const titleElement = title && (\n <Title testId=\"titleId\" htmlMarkup={titleHtmlMarkup} appearance={variant === 'compact' ? 'title6' : 'title4'}>\n {title}\n </Title>\n );\n\n if (svgIcon) {\n const iconSize = IconSize.Small;\n\n if (variant === 'compact') {\n return (\n <>\n <div className={classNames(styles.highlightpanel__icon, styles['highlightpanel__icon--compact'])}>\n {typeof svgIcon === 'string' ? <LazyIcon iconName={svgIcon} size={iconSize} /> : <Icon svgIcon={svgIcon} size={iconSize} />}\n </div>\n <div className={classNames(styles.highlightpanel__content, styles['highlightpanel__content--compact'])}>\n {title && <div className={styles['highlightpanel__title-wrapper']}>{titleElement}</div>}\n <div className={styles['highlightpanel__content__children--compact']}>{children}</div>\n </div>\n </>\n );\n }\n\n return (\n <>\n <div className={styles.highlightpanel__icon}>\n {typeof svgIcon === 'string' ? <LazyIcon iconName={svgIcon} size={iconSize} /> : <Icon svgIcon={svgIcon} size={iconSize} />}\n {title && breakpoint < Breakpoint.md && <div className={styles['highlightpanel__title-wrapper']}>{titleElement}</div>}\n </div>\n <div className={styles.highlightpanel__content}>\n {title && breakpoint >= Breakpoint.md && <div className={styles['highlightpanel__title-wrapper']}>{titleElement}</div>}\n {children}\n </div>\n </>\n );\n }\n\n return (\n <>\n {title && (\n <div className={styles.highlightpanel__content}>\n <div>{titleElement}</div>\n </div>\n )}\n {children}\n </>\n );\n };\n\n const CustomTag = htmlMarkup;\n\n return (\n <CustomTag className={containerClassName} data-testid={testId} data-analyticsid={AnalyticsId.HighlightPanel}>\n {renderContent()}\n </CustomTag>\n );\n};\n\nexport default HighlightPanel;\n","import HighlightPanel from './HighlightPanel';\nexport * from './HighlightPanel';\nexport default HighlightPanel;\n"],"mappings":";;;;;;;;;AA6CA,IAAM,kBAAgD,UAAS;CAC7D,MAAM,EACJ,UACA,QAAQ,SACR,QACA,SACA,aAAa,OACb,WACA,UAAU,UACV,OACA,kBAAkB,SAChB;CACJ,MAAM,aAAa,cAAc;CAEjC,MAAM,qBAAqB,WACzB,OAAO,gBACP,OAAO,mBAAmB,UAC1B,WAAW,OAAO,6BAClB,WACA,GAAG,OAAO,6BAA6B,YAAY,UAAU,CAC/D;CAEA,MAAM,sBAAuC;EAC3C,MAAM,eAAe,SACnB,oBAAC,eAAD;GAAO,QAAO;GAAU,YAAY;GAAiB,YAAY,YAAY,YAAY,WAAW;GACjG,UAAA;EACI,CAAA;EAGT,IAAI,SAAS;GACX,MAAM,WAAW,SAAS;GAE1B,IAAI,YAAY,WACd,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,OAAD;IAAK,WAAW,WAAW,OAAO,sBAAsB,OAAO,gCAAgC;IAC5F,UAAA,OAAO,YAAY,WAAW,oBAAC,kBAAD;KAAU,UAAU;KAAS,MAAM;IAAW,CAAA,IAAI,oBAAC,cAAD;KAAe;KAAS,MAAM;IAAW,CAAA;GACvH,CAAA,GACL,qBAAC,OAAD;IAAK,WAAW,WAAW,OAAO,yBAAyB,OAAO,mCAAmC;IAArG,UAAA,CACG,SAAS,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAmC,UAAA;IAAkB,CAAA,GACtF,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAgD;IAAc,CAAA,CAClF;GACL,CAAA,CAAA,EAAA,CAAA;GAIN,OACE,qBAAA,UAAA,EAAA,UAAA,CACE,qBAAC,OAAD;IAAK,WAAW,OAAO;IAAvB,UAAA,CACG,OAAO,YAAY,WAAW,oBAAC,kBAAD;KAAU,UAAU;KAAS,MAAM;IAAW,CAAA,IAAI,oBAAC,cAAD;KAAe;KAAS,MAAM;IAAW,CAAA,GACzH,SAAS,aAAa,WAAW,MAAM,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAmC,UAAA;IAAkB,CAAA,CACjH;GACL,CAAA,GAAA,qBAAC,OAAD;IAAK,WAAW,OAAO;IAAvB,UAAA,CACG,SAAS,cAAc,WAAW,MAAM,oBAAC,OAAD;KAAK,WAAW,OAAO;KAAmC,UAAA;IAAkB,CAAA,GACpH,QACE;GACL,CAAA,CAAA,EAAA,CAAA;EAEN;EAEA,OACE,qBAAA,UAAA,EAAA,UAAA,CACG,SACC,oBAAC,OAAD;GAAK,WAAW,OAAO;GACrB,UAAA,oBAAC,OAAD,EAAA,UAAM,aAAkB,CAAA;EACrB,CAAA,GAEN,QACD,EAAA,CAAA;CAEN;CAIA,OACE,oBAAC,YAAD;EAAW,WAAW;EAAoB,eAAa;EAAQ,oBAAkB,YAAY;EAC1F,UAAA,cAAc;CACN,CAAA;AAEf;;;AC1HA,IAAA,yBAAe"}
|
|
@@ -1411,5 +1411,25 @@ declare const _default: {
|
|
|
1411
1411
|
alternativeName: string;
|
|
1412
1412
|
categories: string;
|
|
1413
1413
|
};
|
|
1414
|
+
consentdocument: {
|
|
1415
|
+
alternativeName: string;
|
|
1416
|
+
categories: string;
|
|
1417
|
+
};
|
|
1418
|
+
healthcarepersonnelsecurity: {
|
|
1419
|
+
alternativeName: string;
|
|
1420
|
+
categories: string;
|
|
1421
|
+
};
|
|
1422
|
+
historydocument: {
|
|
1423
|
+
alternativeName: string;
|
|
1424
|
+
categories: string;
|
|
1425
|
+
};
|
|
1426
|
+
personcommunication: {
|
|
1427
|
+
alternativeName: string;
|
|
1428
|
+
categories: string;
|
|
1429
|
+
};
|
|
1430
|
+
persondocument: {
|
|
1431
|
+
alternativeName: string;
|
|
1432
|
+
categories: string;
|
|
1433
|
+
};
|
|
1414
1434
|
};
|
|
1415
1435
|
export default _default;
|
|
@@ -1411,6 +1411,26 @@ var AdditionalIconInformation_default = {
|
|
|
1411
1411
|
thumbsdown: {
|
|
1412
1412
|
alternativeName: "Tommel Ned",
|
|
1413
1413
|
categories: ""
|
|
1414
|
+
},
|
|
1415
|
+
consentdocument: {
|
|
1416
|
+
alternativeName: "",
|
|
1417
|
+
categories: ""
|
|
1418
|
+
},
|
|
1419
|
+
healthcarepersonnelsecurity: {
|
|
1420
|
+
alternativeName: "",
|
|
1421
|
+
categories: ""
|
|
1422
|
+
},
|
|
1423
|
+
historydocument: {
|
|
1424
|
+
alternativeName: "",
|
|
1425
|
+
categories: ""
|
|
1426
|
+
},
|
|
1427
|
+
personcommunication: {
|
|
1428
|
+
alternativeName: "",
|
|
1429
|
+
categories: ""
|
|
1430
|
+
},
|
|
1431
|
+
persondocument: {
|
|
1432
|
+
alternativeName: "",
|
|
1433
|
+
categories: ""
|
|
1414
1434
|
}
|
|
1415
1435
|
};
|
|
1416
1436
|
//#endregion
|