@helsenorge/designsystem-react 5.2.0-beta.0 → 5.3.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 +7 -0
- package/Close.js.map +1 -1
- package/Panel.js +1 -1
- package/Panel.js.map +1 -1
- package/StepButtons.js.map +1 -1
- package/components/Close/Close.d.ts +1 -1
- package/components/Close/Close.d.ts.map +1 -1
- package/components/Close/componentdata.json +1 -1
- package/components/Label/componentdata.json +1 -1
- package/components/Panel/Panel.d.ts +42 -40
- package/components/Panel/Panel.d.ts.map +1 -1
- package/components/Panel/componentdata.json +1 -1
- package/components/Panel/styles.module.scss +137 -191
- package/components/Panel/styles.module.scss.d.ts +24 -31
- package/components/PopMenu/PopMenu.d.ts.map +1 -1
- package/components/PopMenu/index.js +1 -1
- package/components/PopMenu/index.js.map +1 -1
- package/components/Step/Step.d.ts.map +1 -1
- package/components/Step/index.js +1 -1
- package/components/Step/index.js.map +1 -1
- package/components/Step/styles.module.scss +1 -3
- package/components/Step/styles.module.scss.d.ts +1 -1
- package/components/StepButtons/StepButtons.d.ts +1 -1
- package/components/StepButtons/StepButtons.d.ts.map +1 -1
- package/components/StepButtons/styles.module.scss +2 -2
- package/package.json +1 -1
|
@@ -22,68 +22,70 @@ export declare enum PanelLayout {
|
|
|
22
22
|
layout3c = "layout3c"
|
|
23
23
|
}
|
|
24
24
|
export interface PanelProps {
|
|
25
|
-
children?: React.ReactNode;
|
|
26
|
-
/** Title of the panel */
|
|
27
|
-
title?: string;
|
|
28
|
-
/** Changes the underlying element of the title. Default: h2 */
|
|
29
|
-
titleHtmlMarkup?: TitleTags;
|
|
30
25
|
/** Adds custom classes to the element. */
|
|
31
26
|
className?: string;
|
|
32
|
-
/** Sets the data-testid attribute. */
|
|
33
|
-
testId?: string;
|
|
34
|
-
/** Displays a status on the left side: defualt normal */
|
|
35
|
-
status?: keyof typeof PanelStatus;
|
|
36
|
-
/** Displayed on top of the panel with a status icon */
|
|
37
|
-
statusMessage?: string;
|
|
38
|
-
/** Changes the visual representation of the panel. */
|
|
39
|
-
variant?: keyof typeof PanelVariant;
|
|
40
|
-
/** Url to details, renders as a button with anchor tag */
|
|
41
|
-
url?: string;
|
|
42
|
-
/** target used in the button: default is _self */
|
|
43
|
-
target?: AnchorTarget;
|
|
44
|
-
/** Icon displayed in title */
|
|
45
|
-
icon?: React.ReactNode;
|
|
46
|
-
/** Display icon on right */
|
|
47
|
-
iconRight?: boolean;
|
|
48
27
|
/** Panel section A content */
|
|
49
28
|
contentA?: React.ReactNode | string;
|
|
50
|
-
/** Panel section B content*/
|
|
29
|
+
/** Panel section B content */
|
|
51
30
|
contentB?: React.ReactNode | string;
|
|
52
|
-
/**
|
|
53
|
-
|
|
31
|
+
/** Content for a container that renders above A and B regardless of layout */
|
|
32
|
+
contentHeader?: React.ReactNode;
|
|
33
|
+
/** Container acts as a button, clicking anywhere triggers a panel button click */
|
|
34
|
+
containerAsButton?: boolean;
|
|
35
|
+
/** Panel children */
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
/** Displays date with icon */
|
|
38
|
+
date?: string;
|
|
39
|
+
/** Expands or collapses the panel */
|
|
40
|
+
expanded?: boolean;
|
|
41
|
+
/** Whether the panel can be focused */
|
|
42
|
+
focusable?: boolean;
|
|
43
|
+
/** Icon displayed in title */
|
|
44
|
+
icon?: React.ReactNode;
|
|
54
45
|
/** Panel button text */
|
|
55
46
|
buttonText?: string;
|
|
56
47
|
/** Panel button close text */
|
|
57
48
|
buttonTextClose?: string;
|
|
58
49
|
/** HTML markup for panel button. Default: a */
|
|
59
50
|
buttonHtmlMarkup?: ButtonTags;
|
|
60
|
-
/** Callback when panel button is clicked
|
|
51
|
+
/** Callback when the panel button is clicked */
|
|
61
52
|
buttonOnClick?: ButtonProps['onClick'];
|
|
62
53
|
/** Panel button is aria-labelledby the text in the button itself + the element set in buttonAriaLabelledById. Default: auto-generated id for title (if title is set). */
|
|
63
54
|
buttonAriaLabelledById?: string;
|
|
64
55
|
/** Panel button aria label */
|
|
65
56
|
buttonAriaLabel?: string;
|
|
66
|
-
/**
|
|
67
|
-
/** @deprecated Has no effect anymore due to accessbility reasons. No close button is shown in expanded content. Will be removed in 2.0.0 */
|
|
68
|
-
showCloseButtonInExpand?: boolean;
|
|
69
|
-
/** Layout (see description) */
|
|
57
|
+
/** Layout of the panel */
|
|
70
58
|
layout?: keyof typeof PanelLayout;
|
|
71
|
-
/** Clicking anywhere on the container will trigger a click on the panel's button */
|
|
72
|
-
containerAsButton?: boolean;
|
|
73
|
-
/** Displays time with icon */
|
|
74
|
-
time?: string;
|
|
75
|
-
/** Displays date with icon */
|
|
76
|
-
date?: string;
|
|
77
59
|
/** Removes top border when variant is "line" */
|
|
78
60
|
noTopBorder?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
expanded?: boolean;
|
|
81
|
-
/** Called when panel is open/closed. */
|
|
61
|
+
/** Called when the panel is opened/closed */
|
|
82
62
|
onExpand?: (isExpanded: boolean) => void;
|
|
83
63
|
/** Whether to render children when closed (in which case they are hidden with CSS). Default: false */
|
|
84
64
|
renderChildrenWhenClosed?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
|
|
65
|
+
/** Displays a status on the left side: default normal */
|
|
66
|
+
status?: keyof typeof PanelStatus;
|
|
67
|
+
/** Displayed on top of the panel with a status icon */
|
|
68
|
+
statusMessage?: string;
|
|
69
|
+
/** Sets the data-testid attribute for testing purposes */
|
|
70
|
+
testId?: string;
|
|
71
|
+
/** Displays time with icon */
|
|
72
|
+
time?: string;
|
|
73
|
+
/** Title of the panel */
|
|
74
|
+
title?: string;
|
|
75
|
+
/** Changes the underlying element of the title. Default: h2 */
|
|
76
|
+
titleHtmlMarkup?: TitleTags;
|
|
77
|
+
/** Changes the visual representation of the panel */
|
|
78
|
+
variant?: keyof typeof PanelVariant;
|
|
79
|
+
/** URL to details, renders as a button with anchor tag */
|
|
80
|
+
url?: string;
|
|
81
|
+
/** target used in the button: default is _self */
|
|
82
|
+
target?: AnchorTarget;
|
|
83
|
+
/** @deprecated Has no effect anymore due to accessibility reasons. No close button is shown in expanded content. Will be removed in 2.0.0 */
|
|
84
|
+
showCloseButtonInExpand?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface LayoutProps extends Pick<PanelProps, 'contentA' | 'contentB' | 'contentHeader' | 'icon' | 'layout' | 'status' | 'statusMessage'> {
|
|
87
|
+
ctaContainer?: React.ReactNode;
|
|
88
|
+
titleElement: React.ReactNode;
|
|
87
89
|
}
|
|
88
90
|
declare const Panel: React.ForwardRefExoticComponent<PanelProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
89
91
|
export default Panel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAe,MAAM,iBAAiB,CAAC;AAM5D,OAAe,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAS5D,OAAc,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI5C,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"props":{"title":{"defaultValue":null,"description":"Title of the panel","name":"title","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"titleHtmlMarkup":{"defaultValue":null,"description":"Changes the underlying element of the title. Default: h2","name":"titleHtmlMarkup","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"TitleTags","value":[{"value":"\"h1\""},{"value":"\"h2\""},{"value":"\"h3\""},{"value":"\"h4\""},{"value":"\"h5\""},{"value":"\"span\""}]}},"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute.","name":"testId","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"status":{"defaultValue":null,"description":"Displays a status on the left side: defualt normal","name":"status","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"\"normal\" | \"new\" | \"error\" | \"draft\"","value":[{"value":"\"normal\""},{"value":"\"new\""},{"value":"\"error\""},{"value":"\"draft\""}]}},"statusMessage":{"defaultValue":null,"description":"Displayed on top of the panel with a status icon","name":"statusMessage","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"variant":{"defaultValue":null,"description":"Changes the visual representation of the panel.","name":"variant","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"\"fill\" | \"white\" | \"stroke\" | \"line\"","value":[{"value":"\"fill\""},{"value":"\"white\""},{"value":"\"stroke\""},{"value":"\"line\""}]}},"url":{"defaultValue":null,"description":"Url to details, renders as a button with anchor tag","name":"url","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"target":{"defaultValue":null,"description":"target used in the button: default is _self","name":"target","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"AnchorTarget","value":[{"value":"\"_self\""},{"value":"\"_blank\""},{"value":"\"_parent\""},{"value":"\"_top\""}]}},"icon":{"defaultValue":null,"description":"Icon displayed in title","name":"icon","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"ReactNode"}},"iconRight":{"defaultValue":null,"description":"Display icon on right","name":"iconRight","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"contentA":{"defaultValue":null,"description":"Panel section A content","name":"contentA","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"ReactNode"}},"contentB":{"defaultValue":null,"description":"Panel section B content","name":"contentB","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"ReactNode"}},"prioritiseMetaDataInContentB":{"defaultValue":null,"description":"A version of panel that prioritises content-B visually and audibly","name":"prioritiseMetaDataInContentB","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"buttonText":{"defaultValue":null,"description":"Panel button text","name":"buttonText","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"buttonTextClose":{"defaultValue":null,"description":"Panel button close text","name":"buttonTextClose","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"buttonHtmlMarkup":{"defaultValue":null,"description":"HTML markup for panel button. Default: a","name":"buttonHtmlMarkup","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"ButtonTags","value":[{"value":"\"button\""},{"value":"\"a\""}]}},"buttonOnClick":{"defaultValue":null,"description":"Callback when panel button is clicked","name":"buttonOnClick","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"((e?: MouseEvent<HTMLElement, MouseEvent> | FormEvent<{}> | KeyboardEvent<HTMLUListElement> | null) => void)"}},"buttonAriaLabelledById":{"defaultValue":null,"description":"Panel button is aria-labelledby the text in the button itself + the element set in buttonAriaLabelledById. Default: auto-generated id for title (if title is set).","name":"buttonAriaLabelledById","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"buttonAriaLabel":{"defaultValue":null,"description":"Panel button aria label","name":"buttonAriaLabel","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"showCloseButtonInExpand":{"defaultValue":null,"description":"@deprecated Has no effect anymore due to accessbility reasons. No close button is shown in expanded content. Will be removed in 2.0.0","name":"showCloseButtonInExpand","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"layout":{"defaultValue":null,"description":"Layout (see description)","name":"layout","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"\"layout1\" | \"layout2\" | \"layout3a\" | \"layout3b\" | \"layout3c\"","value":[{"value":"\"layout1\""},{"value":"\"layout2\""},{"value":"\"layout3a\""},{"value":"\"layout3b\""},{"value":"\"layout3c\""}]}},"containerAsButton":{"defaultValue":null,"description":"Clicking anywhere on the container will trigger a click on the panel's button","name":"containerAsButton","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"time":{"defaultValue":null,"description":"Displays time with icon","name":"time","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"date":{"defaultValue":null,"description":"Displays date with icon","name":"date","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"noTopBorder":{"defaultValue":null,"description":"Removes top border when variant is \"line\"","name":"noTopBorder","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"expanded":{"defaultValue":null,"description":"Opens or closes the panel","name":"expanded","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"onExpand":{"defaultValue":null,"description":"Called when panel is open/closed.","name":"onExpand","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"((isExpanded: boolean) => void)"}},"renderChildrenWhenClosed":{"defaultValue":null,"description":"Whether to render children when closed (in which case they are hidden with CSS). Default: false","name":"renderChildrenWhenClosed","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"focusable":{"defaultValue":null,"description":"Whether panel is focusable or not","name":"focusable","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}}}}
|
|
1
|
+
{"props":{"className":{"defaultValue":null,"description":"Adds custom classes to the element.","name":"className","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"contentA":{"defaultValue":null,"description":"Panel section A content","name":"contentA","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"ReactNode"}},"contentB":{"defaultValue":null,"description":"Panel section B content","name":"contentB","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"ReactNode"}},"contentHeader":{"defaultValue":null,"description":"Content for a container that renders above A and B regardless of layout","name":"contentHeader","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"ReactNode"}},"containerAsButton":{"defaultValue":null,"description":"Container acts as a button, clicking anywhere triggers a panel button click","name":"containerAsButton","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"children":{"defaultValue":null,"description":"Panel children","name":"children","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"ReactNode"}},"date":{"defaultValue":null,"description":"Displays date with icon","name":"date","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"expanded":{"defaultValue":null,"description":"Expands or collapses the panel","name":"expanded","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"focusable":{"defaultValue":null,"description":"Whether the panel can be focused","name":"focusable","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"icon":{"defaultValue":null,"description":"Icon displayed in title","name":"icon","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"ReactNode"}},"buttonText":{"defaultValue":null,"description":"Panel button text","name":"buttonText","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"buttonTextClose":{"defaultValue":null,"description":"Panel button close text","name":"buttonTextClose","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"buttonHtmlMarkup":{"defaultValue":null,"description":"HTML markup for panel button. Default: a","name":"buttonHtmlMarkup","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"ButtonTags","value":[{"value":"\"button\""},{"value":"\"a\""}]}},"buttonOnClick":{"defaultValue":null,"description":"Callback when the panel button is clicked","name":"buttonOnClick","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"((e?: MouseEvent<HTMLElement, MouseEvent> | FormEvent<{}> | KeyboardEvent<HTMLUListElement> | null) => void)"}},"buttonAriaLabelledById":{"defaultValue":null,"description":"Panel button is aria-labelledby the text in the button itself + the element set in buttonAriaLabelledById. Default: auto-generated id for title (if title is set).","name":"buttonAriaLabelledById","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"buttonAriaLabel":{"defaultValue":null,"description":"Panel button aria label","name":"buttonAriaLabel","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"layout":{"defaultValue":null,"description":"Layout of the panel","name":"layout","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"\"layout1\" | \"layout2\" | \"layout3a\" | \"layout3b\" | \"layout3c\"","value":[{"value":"\"layout1\""},{"value":"\"layout2\""},{"value":"\"layout3a\""},{"value":"\"layout3b\""},{"value":"\"layout3c\""}]}},"noTopBorder":{"defaultValue":null,"description":"Removes top border when variant is \"line\"","name":"noTopBorder","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"onExpand":{"defaultValue":null,"description":"Called when the panel is opened/closed","name":"onExpand","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"((isExpanded: boolean) => void)"}},"renderChildrenWhenClosed":{"defaultValue":null,"description":"Whether to render children when closed (in which case they are hidden with CSS). Default: false","name":"renderChildrenWhenClosed","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}},"status":{"defaultValue":null,"description":"Displays a status on the left side: default normal","name":"status","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"\"normal\" | \"new\" | \"error\" | \"draft\"","value":[{"value":"\"normal\""},{"value":"\"new\""},{"value":"\"error\""},{"value":"\"draft\""}]}},"statusMessage":{"defaultValue":null,"description":"Displayed on top of the panel with a status icon","name":"statusMessage","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"testId":{"defaultValue":null,"description":"Sets the data-testid attribute for testing purposes","name":"testId","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"time":{"defaultValue":null,"description":"Displays time with icon","name":"time","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"title":{"defaultValue":null,"description":"Title of the panel","name":"title","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"titleHtmlMarkup":{"defaultValue":null,"description":"Changes the underlying element of the title. Default: h2","name":"titleHtmlMarkup","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"TitleTags","value":[{"value":"\"h1\""},{"value":"\"h2\""},{"value":"\"h3\""},{"value":"\"h4\""},{"value":"\"h5\""},{"value":"\"span\""}]}},"variant":{"defaultValue":null,"description":"Changes the visual representation of the panel","name":"variant","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"\"fill\" | \"white\" | \"stroke\" | \"line\"","value":[{"value":"\"fill\""},{"value":"\"white\""},{"value":"\"stroke\""},{"value":"\"line\""}]}},"url":{"defaultValue":null,"description":"URL to details, renders as a button with anchor tag","name":"url","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"string"}},"target":{"defaultValue":null,"description":"target used in the button: default is _self","name":"target","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"enum","raw":"AnchorTarget","value":[{"value":"\"_self\""},{"value":"\"_blank\""},{"value":"\"_parent\""},{"value":"\"_top\""}]}},"showCloseButtonInExpand":{"defaultValue":null,"description":"@deprecated Has no effect anymore due to accessibility reasons. No close button is shown in expanded content. Will be removed in 2.0.0","name":"showCloseButtonInExpand","parent":{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"},"declarations":[{"fileName":"src/components/Panel/Panel.tsx","name":"PanelProps"}],"required":false,"type":{"name":"boolean"}}}}
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
@import '../../scss/palette';
|
|
5
5
|
@import '../../scss/font-settings';
|
|
6
6
|
|
|
7
|
-
.panel-wrapper {
|
|
8
|
-
width: 100%;
|
|
9
|
-
outline: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
7
|
@mixin panel-padding {
|
|
13
8
|
padding: getSpacer(s) getSpacer(s) getSpacer(s) getSpacer(s);
|
|
14
9
|
|
|
@@ -35,161 +30,186 @@
|
|
|
35
30
|
}
|
|
36
31
|
}
|
|
37
32
|
|
|
33
|
+
$layout-sm-gap: getSpacer(s);
|
|
34
|
+
$layout-md-col-gap: getSpacer(m);
|
|
35
|
+
|
|
36
|
+
.panel-wrapper {
|
|
37
|
+
width: 100%;
|
|
38
|
+
outline: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
38
41
|
.panel {
|
|
39
42
|
@include panel-padding;
|
|
40
43
|
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
justify-content: flex-start;
|
|
41
47
|
outline: none;
|
|
42
48
|
position: relative;
|
|
43
49
|
width: 100%;
|
|
44
50
|
box-sizing: border-box;
|
|
45
51
|
|
|
46
|
-
&
|
|
52
|
+
&__layout-1,
|
|
53
|
+
&__layout-2,
|
|
54
|
+
&__layout-3 {
|
|
55
|
+
display: grid;
|
|
56
|
+
grid-auto-rows: auto;
|
|
57
|
+
grid-template-columns: 1fr;
|
|
58
|
+
gap: $layout-sm-gap $layout-sm-gap;
|
|
59
|
+
width: 100%;
|
|
60
|
+
|
|
47
61
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
48
|
-
|
|
49
|
-
flex-direction: row;
|
|
50
|
-
flex: 1;
|
|
62
|
+
column-gap: $layout-md-col-gap;
|
|
51
63
|
}
|
|
64
|
+
}
|
|
52
65
|
|
|
53
|
-
|
|
54
|
-
&--
|
|
55
|
-
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: row;
|
|
58
|
-
}
|
|
66
|
+
&__layout-1 {
|
|
67
|
+
&--with-icon {
|
|
68
|
+
grid-template-columns: auto 1fr;
|
|
59
69
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
70
|
+
|
|
71
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
72
|
+
grid-template-rows: auto auto;
|
|
73
|
+
grid-template-columns: 1fr auto;
|
|
74
|
+
|
|
75
|
+
&--with-icon {
|
|
76
|
+
grid-template-columns: auto 1fr auto;
|
|
64
77
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
display: block;
|
|
78
|
+
|
|
79
|
+
&__content-a {
|
|
80
|
+
grid-column: span 2;
|
|
69
81
|
}
|
|
70
82
|
}
|
|
83
|
+
}
|
|
71
84
|
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
&__layout-2 {
|
|
86
|
+
&--with-icon {
|
|
87
|
+
grid-template-columns: auto 1fr;
|
|
74
88
|
}
|
|
75
|
-
}
|
|
76
89
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
91
|
+
grid-template-rows: auto auto;
|
|
92
|
+
grid-template-columns: 1fr auto;
|
|
80
93
|
|
|
81
|
-
|
|
82
|
-
|
|
94
|
+
&--with-icon {
|
|
95
|
+
grid-template-columns: auto 1fr auto;
|
|
96
|
+
}
|
|
83
97
|
|
|
84
|
-
|
|
85
|
-
|
|
98
|
+
&__content-a {
|
|
99
|
+
grid-row: span 2;
|
|
100
|
+
}
|
|
86
101
|
|
|
87
|
-
|
|
88
|
-
|
|
102
|
+
&__last-column {
|
|
103
|
+
max-width: 200px;
|
|
104
|
+
}
|
|
89
105
|
}
|
|
90
106
|
|
|
91
|
-
|
|
92
|
-
|
|
107
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
108
|
+
grid-template-columns: minmax(auto, 760px) auto;
|
|
109
|
+
|
|
110
|
+
&--with-icon {
|
|
111
|
+
grid-template-columns: auto minmax(auto, 760px) auto;
|
|
112
|
+
}
|
|
93
113
|
}
|
|
94
114
|
}
|
|
95
115
|
|
|
96
|
-
&
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
116
|
+
&__layout-3 {
|
|
117
|
+
&--with-icon {
|
|
118
|
+
grid-template-columns: auto 1fr;
|
|
119
|
+
}
|
|
100
120
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
121
|
+
&__last-column {
|
|
122
|
+
display: grid;
|
|
123
|
+
row-gap: $layout-sm-gap;
|
|
104
124
|
}
|
|
105
|
-
}
|
|
106
125
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
display: flex;
|
|
110
|
-
flex-direction: column;
|
|
126
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
127
|
+
grid-template-rows: auto;
|
|
111
128
|
|
|
112
|
-
|
|
113
|
-
|
|
129
|
+
&--a {
|
|
130
|
+
grid-template-columns: 3fr 2fr;
|
|
131
|
+
}
|
|
132
|
+
&--a#{&}--with-icon {
|
|
133
|
+
grid-template-columns: auto 3fr 2fr;
|
|
114
134
|
}
|
|
115
|
-
}
|
|
116
135
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
136
|
+
&--b {
|
|
137
|
+
grid-template-columns: 4.5fr 5.5fr;
|
|
138
|
+
}
|
|
139
|
+
&--b#{&}--with-icon {
|
|
140
|
+
grid-template-columns: auto 4.5fr 5.5fr;
|
|
141
|
+
}
|
|
120
142
|
|
|
121
|
-
|
|
122
|
-
|
|
143
|
+
&--c {
|
|
144
|
+
grid-template-columns: 3.5fr 6.5fr;
|
|
145
|
+
}
|
|
146
|
+
&--c#{&}--with-icon {
|
|
147
|
+
grid-template-columns: auto 3.5fr 6.5fr;
|
|
123
148
|
}
|
|
124
|
-
}
|
|
125
149
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
padding-left: 0;
|
|
150
|
+
&__last-column {
|
|
151
|
+
grid-template-columns: 1fr auto;
|
|
152
|
+
column-gap: $layout-md-col-gap;
|
|
130
153
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
154
|
+
&__content-b {
|
|
155
|
+
flex: 1;
|
|
156
|
+
}
|
|
134
157
|
}
|
|
135
158
|
}
|
|
159
|
+
}
|
|
136
160
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
161
|
+
&--with-icon {
|
|
162
|
+
@include panel-padding-icon;
|
|
163
|
+
}
|
|
140
164
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
165
|
+
&__icon {
|
|
166
|
+
grid-row: span 3;
|
|
144
167
|
|
|
145
|
-
&--
|
|
146
|
-
|
|
168
|
+
&--no-content {
|
|
169
|
+
grid-row: span 2;
|
|
147
170
|
}
|
|
148
171
|
|
|
149
|
-
&--
|
|
150
|
-
|
|
151
|
-
order: 1;
|
|
152
|
-
|
|
172
|
+
&--layout-1,
|
|
173
|
+
&--layout-2 {
|
|
153
174
|
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
154
|
-
|
|
175
|
+
grid-row: span 2;
|
|
176
|
+
padding-right: getSpacer(2xs);
|
|
155
177
|
}
|
|
156
178
|
}
|
|
157
179
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
180
|
+
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
181
|
+
grid-row: span 2;
|
|
182
|
+
padding-right: getSpacer(2xs);
|
|
162
183
|
}
|
|
163
|
-
|
|
184
|
+
|
|
185
|
+
&--layout-3 {
|
|
186
|
+
grid-row: span 2;
|
|
187
|
+
|
|
164
188
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
165
|
-
|
|
189
|
+
grid-row: span 1;
|
|
166
190
|
}
|
|
167
191
|
}
|
|
168
192
|
}
|
|
169
193
|
|
|
194
|
+
&__badge {
|
|
195
|
+
display: inline-block;
|
|
196
|
+
vertical-align: text-bottom;
|
|
197
|
+
}
|
|
198
|
+
|
|
170
199
|
&__btn-container {
|
|
171
200
|
display: flex;
|
|
172
201
|
flex-direction: column;
|
|
202
|
+
justify-content: flex-end;
|
|
173
203
|
|
|
174
204
|
&--no-content-b {
|
|
175
205
|
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
176
|
-
align-self: flex-end;
|
|
177
206
|
flex-direction: row;
|
|
207
|
+
grid-column: span 2;
|
|
178
208
|
}
|
|
179
209
|
}
|
|
180
210
|
|
|
181
|
-
&--
|
|
182
|
-
display: flex;
|
|
183
|
-
align-self: initial;
|
|
211
|
+
&--no-button {
|
|
184
212
|
flex-direction: column;
|
|
185
|
-
|
|
186
|
-
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
187
|
-
align-self: flex-end;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&--padding-top {
|
|
192
|
-
padding-top: getSpacer(s);
|
|
193
213
|
}
|
|
194
214
|
}
|
|
195
215
|
|
|
@@ -212,8 +232,6 @@
|
|
|
212
232
|
}
|
|
213
233
|
}
|
|
214
234
|
|
|
215
|
-
// Panel variants
|
|
216
|
-
|
|
217
235
|
&--fill {
|
|
218
236
|
background-color: $neutral50;
|
|
219
237
|
}
|
|
@@ -283,7 +301,6 @@
|
|
|
283
301
|
cursor: pointer;
|
|
284
302
|
}
|
|
285
303
|
|
|
286
|
-
// Panel status
|
|
287
304
|
&--status {
|
|
288
305
|
&::before {
|
|
289
306
|
content: '';
|
|
@@ -316,6 +333,23 @@
|
|
|
316
333
|
}
|
|
317
334
|
}
|
|
318
335
|
|
|
336
|
+
.title-container {
|
|
337
|
+
padding-bottom: getSpacer(s);
|
|
338
|
+
|
|
339
|
+
&--no-content-a {
|
|
340
|
+
padding-bottom: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
&__title {
|
|
344
|
+
vertical-align: top;
|
|
345
|
+
display: inline;
|
|
346
|
+
|
|
347
|
+
&--badge {
|
|
348
|
+
padding-right: getSpacer(2xs);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
319
353
|
.panel-details {
|
|
320
354
|
background-color: $neutral50;
|
|
321
355
|
display: none;
|
|
@@ -340,17 +374,14 @@
|
|
|
340
374
|
&--white {
|
|
341
375
|
background: $white;
|
|
342
376
|
}
|
|
343
|
-
|
|
344
|
-
&--with-icon {
|
|
345
|
-
@include panel-padding-icon;
|
|
346
|
-
}
|
|
347
377
|
}
|
|
348
378
|
|
|
349
379
|
.status-message {
|
|
350
380
|
font-size: $font-size-sm;
|
|
351
381
|
color: $cherry500;
|
|
352
382
|
display: flex;
|
|
353
|
-
margin-bottom: getSpacer(2xs);
|
|
383
|
+
margin-bottom: getSpacer(2xs) * -1;
|
|
384
|
+
grid-column: 1 / -1;
|
|
354
385
|
|
|
355
386
|
span {
|
|
356
387
|
padding-left: 5px;
|
|
@@ -363,93 +394,8 @@
|
|
|
363
394
|
}
|
|
364
395
|
}
|
|
365
396
|
|
|
366
|
-
.
|
|
367
|
-
|
|
368
|
-
padding-right: 0;
|
|
369
|
-
|
|
370
|
-
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
371
|
-
padding-right: getSpacer(m);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
&__title-container {
|
|
375
|
-
padding-bottom: getSpacer(s);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
&__title {
|
|
379
|
-
vertical-align: top;
|
|
380
|
-
display: inline;
|
|
381
|
-
|
|
382
|
-
&--badge {
|
|
383
|
-
padding-right: getSpacer(2xs);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
&--layout3a {
|
|
388
|
-
flex: 0.6;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
&--layout3b {
|
|
392
|
-
flex: 0.45;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
&--layout3c {
|
|
396
|
-
flex: 0.35;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
&--prioritiseMetaDataInContentB {
|
|
400
|
-
padding-bottom: getSpacer(s);
|
|
401
|
-
|
|
402
|
-
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
403
|
-
padding-bottom: 0;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.panel-content-b {
|
|
409
|
-
flex: 1;
|
|
410
|
-
padding-top: 0;
|
|
411
|
-
|
|
412
|
-
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
413
|
-
padding-top: getSpacer(s);
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
&--layout1 {
|
|
417
|
-
padding-top: getSpacer(s);
|
|
418
|
-
padding-left: 0;
|
|
419
|
-
|
|
420
|
-
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
421
|
-
padding-right: getSpacer(m);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
425
|
-
padding-top: getSpacer(s);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
&--layout2 {
|
|
430
|
-
padding-top: getSpacer(s);
|
|
431
|
-
|
|
432
|
-
@media (min-width: map.get($grid-breakpoints, md)) {
|
|
433
|
-
padding-top: 0;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
&--layout3 {
|
|
438
|
-
padding-top: getSpacer(s);
|
|
439
|
-
|
|
440
|
-
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
441
|
-
padding-right: getSpacer(m);
|
|
442
|
-
padding-top: 0;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
&--prioritiseMetaDataInContentB {
|
|
447
|
-
padding-top: 0;
|
|
448
|
-
|
|
449
|
-
@media (min-width: map.get($grid-breakpoints, lg)) {
|
|
450
|
-
padding-top: 0;
|
|
451
|
-
}
|
|
452
|
-
}
|
|
397
|
+
.header-container {
|
|
398
|
+
grid-column: 1 / -1;
|
|
453
399
|
}
|
|
454
400
|
|
|
455
401
|
.datetime-container {
|