@helsenorge/designsystem-react 5.2.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 +1 -1
- package/Close.js.map +1 -1
- package/Panel.js +1 -1
- package/Panel.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/package.json +1 -1
|
@@ -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 {
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
export type Styles = {
|
|
2
2
|
'datetime-container': string;
|
|
3
3
|
'datetime-container__icon': string;
|
|
4
|
+
'header-container': string;
|
|
4
5
|
panel: string;
|
|
5
6
|
panel__badge: string;
|
|
6
7
|
'panel__btn-container': string;
|
|
7
|
-
'panel__btn-container--
|
|
8
|
+
'panel__btn-container--no-button': string;
|
|
8
9
|
'panel__btn-container--no-content-b': string;
|
|
9
|
-
'panel__btn-container--padding-top': string;
|
|
10
|
-
panel__container: string;
|
|
11
|
-
'panel__container--grow': string;
|
|
12
|
-
'panel__container--layout1': string;
|
|
13
|
-
'panel__container--layout2': string;
|
|
14
|
-
'panel__container--layout3': string;
|
|
15
|
-
'panel__container--prioritiseMetaDataInContentB': string;
|
|
16
|
-
'panel__content-left--flex': string;
|
|
17
|
-
'panel__content-right--layout1': string;
|
|
18
|
-
'panel__content-right--layout2': string;
|
|
19
|
-
'panel__content-right--layout3': string;
|
|
20
|
-
'panel__content-right--layout3a': string;
|
|
21
|
-
'panel__content-right--layout3b': string;
|
|
22
|
-
'panel__content-right--layout3c': string;
|
|
23
|
-
'panel__content-right--prioritiseMetaDataInContentB': string;
|
|
24
10
|
'panel__details-btn': string;
|
|
25
11
|
panel__expand: string;
|
|
26
12
|
panel__icon: string;
|
|
27
|
-
'panel__icon--
|
|
13
|
+
'panel__icon--layout-1': string;
|
|
14
|
+
'panel__icon--layout-2': string;
|
|
15
|
+
'panel__icon--layout-3': string;
|
|
16
|
+
'panel__icon--no-content': string;
|
|
17
|
+
'panel__layout-1': string;
|
|
18
|
+
'panel__layout-1__content-a': string;
|
|
19
|
+
'panel__layout-1--with-icon': string;
|
|
20
|
+
'panel__layout-2': string;
|
|
21
|
+
'panel__layout-2__content-a': string;
|
|
22
|
+
'panel__layout-2__last-column': string;
|
|
23
|
+
'panel__layout-2--with-icon': string;
|
|
24
|
+
'panel__layout-3': string;
|
|
25
|
+
'panel__layout-3__last-column': string;
|
|
26
|
+
'panel__layout-3__last-column__content-b': string;
|
|
27
|
+
'panel__layout-3--a': string;
|
|
28
|
+
'panel__layout-3--b': string;
|
|
29
|
+
'panel__layout-3--c': string;
|
|
30
|
+
'panel__layout-3--with-icon': string;
|
|
28
31
|
'panel--button': string;
|
|
29
32
|
'panel--clickable': string;
|
|
30
33
|
'panel--draft': string;
|
|
@@ -38,27 +41,17 @@ export type Styles = {
|
|
|
38
41
|
'panel--stroke': string;
|
|
39
42
|
'panel--white': string;
|
|
40
43
|
'panel--with-icon': string;
|
|
41
|
-
'panel-content-a': string;
|
|
42
|
-
'panel-content-a__title': string;
|
|
43
|
-
'panel-content-a__title--badge': string;
|
|
44
|
-
'panel-content-a__title-container': string;
|
|
45
|
-
'panel-content-a--layout3a': string;
|
|
46
|
-
'panel-content-a--layout3b': string;
|
|
47
|
-
'panel-content-a--layout3c': string;
|
|
48
|
-
'panel-content-a--prioritiseMetaDataInContentB': string;
|
|
49
|
-
'panel-content-b': string;
|
|
50
|
-
'panel-content-b--layout1': string;
|
|
51
|
-
'panel-content-b--layout2': string;
|
|
52
|
-
'panel-content-b--layout3': string;
|
|
53
|
-
'panel-content-b--prioritiseMetaDataInContentB': string;
|
|
54
44
|
'panel-details': string;
|
|
55
45
|
'panel-details--line': string;
|
|
56
46
|
'panel-details--open': string;
|
|
57
47
|
'panel-details--white': string;
|
|
58
|
-
'panel-details--with-icon': string;
|
|
59
48
|
'panel-wrapper': string;
|
|
60
49
|
'status-message': string;
|
|
61
50
|
'status-message--new': string;
|
|
51
|
+
'title-container': string;
|
|
52
|
+
'title-container__title': string;
|
|
53
|
+
'title-container__title--badge': string;
|
|
54
|
+
'title-container--no-content-a': string;
|
|
62
55
|
};
|
|
63
56
|
|
|
64
57
|
export type ClassNames = keyof Styles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopMenu.d.ts","sourceRoot":"","sources":["../../../src/components/PopMenu/PopMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAchD,OAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKtD,oBAAY,cAAc;IACxB,OAAO,aAAa;IACpB,MAAM,YAAY;IAClB,WAAW,iBAAiB;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;IAC5C,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0DAA0D;IAC1D,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"PopMenu.d.ts","sourceRoot":"","sources":["../../../src/components/PopMenu/PopMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAchD,OAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKtD,oBAAY,cAAc;IACxB,OAAO,aAAa;IACpB,MAAM,YAAY;IAClB,WAAW,iBAAiB;CAC7B;AAED,MAAM,WAAW,YAAY;IAC3B,2DAA2D;IAC3D,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;IAC5C,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0DAA0D;IAC1D,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA6E1C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e,{useRef as p,useState as w}from"react";import n from"classnames";import{IconSize as C,AnalyticsId as H}from"../../constants.js";import{useBreakpoint as _}from"../../hooks/useBreakpoint.js";import{useHover as z}from"../../hooks/useHover.js";import{useOutsideEvent as A}from"../../hooks/useOutsideEvent.js";import{getColor as M}from"../../theme/currys/color.js";import{breakpoints as P}from"../../theme/grid.js";import{isComponent as T}from"../../utils/component.js";import{C as $}from"../../Close.js";import{Icon as x}from"../Icons/Icon.js";import D from"../Icons/VerticalDots.js";import{L as G}from"../../LinkList.js";import{a as W}from"../../PopOver.js";import r from"./styles.module.scss";import"../../hooks/usePseudoClasses.js";import"../../theme/index.js";import"../../theme/palette.js";import"../../theme/spacers.js";import"../../utils/refs.js";import"../Icons/X.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";import"../Close/styles.module.scss";import"../Icons/ChevronRight.js";import"../../ListHeader.js";import"../../ListHeaderText.js";import"../../StatusDot.js";import"../Icons/Attachment.js";import"../Icons/Group.js";import"../Icons/NoAccess.js";import"../Icons/Undo.js";import"../StatusDot/styles.module.scss";import"../ListHeader/styles.module.scss";import"../../Avatar.js";import"../Icons/Check.js";import"../Avatar/styles.module.scss";import"../../Badge.js";import"../Badge/styles.module.scss";import"../LinkList/styles.module.scss";import"../../hooks/useInterval.js";import"../../hooks/useIsVisible.js";import"../../hooks/useIntersectionObserver.js";import"../../hooks/useLayoutEvent.js";import"../../utils/debounce.js";import"../../hooks/useSize.js";import"../PopOver/styles.module.scss";var X=(o=>(o.onWhite="on-white",o.onGray="on-gray",o.onBlueberry="on-blueberry",o))(X||{});const j=o=>{const i=p(null),s=p(null),a=p(null),[m,l]=w(!1),{children:c,popOverClassName:I,popMenuClassName:k,openButtonTestId:B,closeButtonTestId:N,popOverTestId:y,popMenuVariant:u="on-white",openButtonAriaLabel:O,closeButtonAriaLabel:h}=o,f=n(r["pop-menu-button"],{[r[`pop-menu-button--${u}`]]:u}),d=_()<P.md;A(a,()=>l(!m));const{isHovered:E}=z(s),L=d?C.XSmall:C.Small,R=()=>{if(T(c,G))return e.createElement(W,{testId:y,className:n(r["pop-menu__pop-over"],I),arrowClassName:r["pop-menu__pop-over-arrow"],controllerRef:i,popOverRef:a},c)},b=(t,v)=>{v&&v.stopPropagation(),l(t)},S=e.createElement("button",{ref:s,"data-testid":B,className:f,"aria-label":O||"Se mer",onClick:t=>b(!0,t),type:"button"},e.createElement(x,{svgIcon:D,className:"test",color:M("black"),size:L,isHovered:E})),g=e.createElement($,{ariaLabel:h,color:"black",className:f,testId:N,ref:i,onClick:t=>b(!1,t),small:d});return e.createElement("div",{className:n(r["pop-menu-button"],k),"data-analyticsid":H.PopMenu},m?g:S,m&&R())},Go=j;export{j as PopMenu,X as PopMenuVariant,Go as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|