@helsenorge/designsystem-react 7.4.0 → 7.6.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 CHANGED
@@ -1,3 +1,30 @@
1
+ ## [7.5.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.4.0&targetVersion=GTv7.5.0) (2024-05-08)
2
+
3
+ ### Features
4
+
5
+ - **notificationpanel:** compactmode kan nå vise children
6
+ ([8056e4a](https://github.com/helsenorge/designsystem/commit/8056e4a95ed03caecd05b69bedbb5c16f6ba1f4a)), closes
7
+ [#324320](https://github.com/helsenorge/designsystem/issues/324320)
8
+
9
+ ## [7.4.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.3.1&targetVersion=GTv7.4.0) (2024-05-07)
10
+
11
+ ### Features
12
+
13
+ - bruk Supernova tokens ([4f75387](https://github.com/helsenorge/designsystem/commit/4f753874252ebf8d4a12950ba52996eb9f3abc32)), closes
14
+ [#318458](https://github.com/helsenorge/designsystem/issues/318458)
15
+ - mulighet for å gi en tekst på popmenu knapp i tillegg til ikon
16
+ ([80b232b](https://github.com/helsenorge/designsystem/commit/80b232b4c1bbc1bdd64f711767c6576a01958f56)), closes
17
+ [#323182](https://github.com/helsenorge/designsystem/issues/323182)
18
+
19
+ ### Bug Fixes
20
+
21
+ - ikke unødvendig mellomrom i aria-describedby
22
+ ([0053898](https://github.com/helsenorge/designsystem/commit/0053898bf559a39a401a38194e23550d99bee859)), closes
23
+ [#324479](https://github.com/helsenorge/designsystem/issues/324479)
24
+ - skjemakomponenter har ikke tom aria-describedby
25
+ ([186db10](https://github.com/helsenorge/designsystem/commit/186db100d5a3303316d9e40196d64fb06136a58c)), closes
26
+ [#324479](https://github.com/helsenorge/designsystem/issues/324479)
27
+
1
28
  ## [7.3.1](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv7.3.0&targetVersion=GTv7.3.1) (2024-04-22)
2
29
 
3
30
  ### Bug Fixes
@@ -5,6 +5,7 @@
5
5
  @import '../../scss/font-settings';
6
6
 
7
7
  .error-wrapper {
8
+ position: relative;
8
9
  padding-bottom: getSpacer(m);
9
10
 
10
11
  @media (min-width: map.get($grid-breakpoints, md)) {
@@ -89,8 +89,13 @@
89
89
  &--closed:not(:hover, .expander-list-link--fill) {
90
90
  background-color: transparent;
91
91
  }
92
+
93
+ &--fill {
94
+ margin-top: getSpacer(s);
95
+ }
96
+
92
97
  &--closed#{&}--fill {
93
- margin: getSpacer(s) 0;
98
+ margin-bottom: getSpacer(s);
94
99
 
95
100
  &:not(:hover) {
96
101
  background-color: $neutral50;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export type NotificationPanelVariants = 'info' | 'warn' | 'alert' | 'success';
3
3
  export type NotificationCompactVariants = 'basic' | 'outline';
4
4
  export type NotificationPanelSizes = 'small' | 'medium' | 'large';
5
+ export type LabelTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span';
5
6
  export interface NotificationPanelProps {
6
7
  /** Adds custom classes to the element. */
7
8
  className?: string;
@@ -29,6 +30,8 @@ export interface NotificationPanelProps {
29
30
  fluid?: boolean;
30
31
  /** Sets a label for the notification panel. */
31
32
  label?: string;
33
+ /** Changes the underlying element of the label. */
34
+ labelHtmlMarkup?: LabelTags;
32
35
  /** Close button aria-label */
33
36
  ariaLabelCloseBtn?: string;
34
37
  /** Custom id for the label */
@@ -1,47 +1,48 @@
1
1
  import t from "react";
2
2
  import c from "classnames";
3
- import { DetailButton as A } from "./DetailButton/DetailButton.js";
4
- import { IconSize as o, AnalyticsId as B } from "../../constants.js";
5
- import { useUuid as L } from "../../hooks/useUuid.js";
6
- import { getColor as P } from "../../theme/currys/color.js";
3
+ import { DetailButton as P } from "./DetailButton/DetailButton.js";
4
+ import { IconSize as o, AnalyticsId as R } from "../../constants.js";
5
+ import { useUuid as $ } from "../../hooks/useUuid.js";
6
+ import { getColor as M } from "../../theme/currys/color.js";
7
7
  import { palette as n } from "../../theme/palette.js";
8
- import { getAriaLabelAttributes as R } from "../../utils/accessibility.js";
9
- import $ from "../Close/Close.js";
8
+ import { getAriaLabelAttributes as V } from "../../utils/accessibility.js";
9
+ import D from "../Close/Close.js";
10
10
  import { Icon as p } from "../Icon/Icon.js";
11
- import D from "../Icons/CheckFill.js";
12
- import M from "../Icons/ErrorSignFill.js";
13
- import O from "../Icons/InfoSignFill.js";
14
- import U from "../Icons/TriangleX.js";
11
+ import H from "../Icons/CheckFill.js";
12
+ import O from "../Icons/ErrorSignFill.js";
13
+ import U from "../Icons/InfoSignFill.js";
14
+ import W from "../Icons/TriangleX.js";
15
15
  import e from "../NotificationPanel/styles.module.scss";
16
- const V = ({ fluid: s, children: m }) => {
16
+ const j = ({ fluid: s, children: m }) => {
17
17
  if (s) {
18
18
  const l = c(e["fluid-wrapper"]);
19
19
  return /* @__PURE__ */ t.createElement("div", { className: l }, m);
20
20
  }
21
21
  return m;
22
- }, W = t.forwardRef((s, m) => {
22
+ }, q = t.forwardRef((s, m) => {
23
23
  const {
24
24
  children: l,
25
25
  variant: f = "info",
26
- dismissable: _ = !1,
26
+ dismissable: u = !1,
27
27
  onClick: E,
28
28
  expanderChildren: r,
29
29
  expanderButtonText: b,
30
- expanderButtonClosedText: u,
31
- expanderOpenFromStart: h = !1,
30
+ expanderButtonClosedText: _,
31
+ expanderOpenFromStart: N = !1,
32
32
  compactVariant: a,
33
33
  label: i,
34
- fluid: N = !1,
34
+ labelHtmlMarkup: S = "h1",
35
+ fluid: I = !1,
35
36
  size: C,
36
- className: S,
37
- labelId: I,
38
- role: g,
39
- testId: x
40
- } = s, d = L(I), y = {
37
+ className: g,
38
+ labelId: x,
39
+ role: w,
40
+ testId: y
41
+ } = s, d = $(x), T = {
41
42
  info: /* @__PURE__ */ t.createElement(
42
43
  p,
43
44
  {
44
- svgIcon: O,
45
+ svgIcon: U,
45
46
  color: n.blueberry700,
46
47
  hoverColor: n.blueberry700,
47
48
  size: a ? o.XSmall : o.Small
@@ -50,7 +51,7 @@ const V = ({ fluid: s, children: m }) => {
50
51
  warn: /* @__PURE__ */ t.createElement(
51
52
  p,
52
53
  {
53
- svgIcon: M,
54
+ svgIcon: O,
54
55
  color: n.banana700,
55
56
  hoverColor: n.banana700,
56
57
  size: a ? o.XSmall : o.Small
@@ -59,7 +60,7 @@ const V = ({ fluid: s, children: m }) => {
59
60
  alert: /* @__PURE__ */ t.createElement(
60
61
  p,
61
62
  {
62
- svgIcon: U,
63
+ svgIcon: W,
63
64
  color: n.cherry700,
64
65
  hoverColor: n.cherry700,
65
66
  size: a ? o.XSmall : o.Small
@@ -68,28 +69,29 @@ const V = ({ fluid: s, children: m }) => {
68
69
  success: /* @__PURE__ */ t.createElement(
69
70
  p,
70
71
  {
71
- svgIcon: D,
72
+ svgIcon: H,
72
73
  color: n.kiwi900,
73
74
  hoverColor: n.kiwi900,
74
75
  size: a ? o.XSmall : o.Small
75
76
  }
76
77
  )
77
- }, w = () => {
78
- const k = c(e["notification-panel__content"]), F = c(e["notification-panel__label"], {
78
+ }, k = () => {
79
+ const h = a === "outline", X = c(e["notification-panel__content"]), A = c(e["notification-panel__label"], {
79
80
  [e["notification-panel__label--no-content"]]: !l && !r,
80
- [e["notification-panel__label__compact"]]: !!a,
81
- [e["notification-panel__label__compact--basic"]]: a === "basic"
82
- }), X = c(e["notification-panel__children"], {
83
- [e["notification-panel__label-and-content--spacing"]]: i,
84
- [e["notification-panel__children--expander-no-label"]]: r && !i
85
- });
86
- return /* @__PURE__ */ t.createElement("div", { className: k, id: i ? void 0 : d }, i && /* @__PURE__ */ t.createElement("h1", { className: F, id: d }, i), l && !a && /* @__PURE__ */ t.createElement("div", { className: X }, l), r && b && u && !a && /* @__PURE__ */ t.createElement(
87
- A,
81
+ [e["notification-panel__label--compact"]]: !!a,
82
+ [e["notification-panel__label--outline"]]: h
83
+ }), B = c(e["notification-panel__children"], {
84
+ [e["notification-panel__children--with-label"]]: i,
85
+ [e["notification-panel__children--expander-no-label"]]: r && !i,
86
+ [e["notification-panel__children--outline"]]: h
87
+ }), L = S;
88
+ return /* @__PURE__ */ t.createElement("div", { className: X, id: i ? void 0 : d }, i && /* @__PURE__ */ t.createElement(L, { className: A, id: d }, i), l && /* @__PURE__ */ t.createElement("div", { className: B }, l), r && b && _ && !a && /* @__PURE__ */ t.createElement(
89
+ P,
88
90
  {
89
- expanderOpenFromStart: h,
91
+ expanderOpenFromStart: N,
90
92
  content: r,
91
93
  buttonText: b,
92
- buttonClosedText: u
94
+ buttonClosedText: _
93
95
  }
94
96
  ));
95
97
  }, z = c(
@@ -97,30 +99,30 @@ const V = ({ fluid: s, children: m }) => {
97
99
  e[`notification-panel--${f}`],
98
100
  C && e[`notification-panel--${C}`],
99
101
  {
100
- [e["notification-panel__compact"]]: !!a,
101
- [e["notification-panel__compact--basic"]]: a === "basic",
102
- [e["notification-panel__compact--outline"]]: a === "outline",
102
+ [e["notification-panel--compact"]]: !!a,
103
+ [e["notification-panel--compact--basic"]]: a === "basic",
104
+ [e["notification-panel--compact--outline"]]: a === "outline",
103
105
  [e["notification-panel--with-content"]]: r || i && l,
104
- [e["notification-panel--dismissable"]]: _
106
+ [e["notification-panel--dismissable"]]: u
105
107
  },
106
- S
107
- ), v = g || f === "alert" && "alert" || void 0, T = v ? R({ label: i, id: d }) : void 0;
108
- return /* @__PURE__ */ t.createElement(V, { fluid: N }, /* @__PURE__ */ t.createElement(
108
+ g
109
+ ), v = w || f === "alert" && "alert" || void 0, F = v ? V({ label: i, id: d }) : void 0;
110
+ return /* @__PURE__ */ t.createElement(j, { fluid: I }, /* @__PURE__ */ t.createElement(
109
111
  "div",
110
112
  {
111
113
  ref: m,
112
114
  role: v,
113
- "data-testid": x,
114
- "data-analyticsid": B.NotificationPanel,
115
+ "data-testid": y,
116
+ "data-analyticsid": R.NotificationPanel,
115
117
  className: z,
116
- ...T
118
+ ...F
117
119
  },
118
- /* @__PURE__ */ t.createElement("span", { className: e["notification-panel__icon"] }, y[f]),
119
- _ && /* @__PURE__ */ t.createElement("span", { className: e["notification-panel__close"] }, /* @__PURE__ */ t.createElement($, { ariaLabel: s.ariaLabelCloseBtn, onClick: E, color: P("black") })),
120
- w()
120
+ /* @__PURE__ */ t.createElement("span", { className: e["notification-panel__icon"] }, T[f]),
121
+ u && /* @__PURE__ */ t.createElement("span", { className: e["notification-panel__close"] }, /* @__PURE__ */ t.createElement(D, { ariaLabel: s.ariaLabelCloseBtn, onClick: E, color: M("black") })),
122
+ k()
121
123
  ));
122
- }), le = W;
124
+ }), se = q;
123
125
  export {
124
- le as default
126
+ se as default
125
127
  };
126
128
  //# sourceMappingURL=NotificationPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationPanel.js","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { DetailButton } from './DetailButton/DetailButton';\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getColor } from '../../theme/currys';\nimport { palette } from '../../theme/palette';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport Close from '../Close';\nimport Icon from '../Icon';\nimport CheckFill from '../Icons/CheckFill';\nimport ErrorSignFill from '../Icons/ErrorSignFill';\nimport InfoSignFill from '../Icons/InfoSignFill';\nimport TriangleX from '../Icons/TriangleX';\n\nimport styles from './styles.module.scss';\n\nexport type NotificationPanelVariants = 'info' | 'warn' | 'alert' | 'success';\nexport type NotificationCompactVariants = 'basic' | 'outline';\nexport type NotificationPanelSizes = 'small' | 'medium' | 'large';\n\nexport interface NotificationPanelProps {\n /** Adds custom classes to the element. */\n className?: string;\n /** Adds inner child elements. */\n children?: React.ReactNode;\n /** Adds inner expander elements. */\n expanderChildren?: React.ReactNode;\n /** Text for expanderButton. */\n expanderButtonText?: string;\n /** Text for expanderButton when closed. */\n expanderButtonClosedText?: string;\n /** Makes expander be open from start. */\n expanderOpenFromStart?: boolean;\n /** Changes the visual representation of the notification panel. */\n variant?: NotificationPanelVariants;\n /** Makes the panel more compact. Available in basic and outline. */\n compactVariant?: NotificationCompactVariants;\n /** Sets a fixed size for the content container. */\n size?: NotificationPanelSizes;\n /** Used in combination with dismissiable property to close the notification panel. */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** Toggles the close button in the top right corner. */\n dismissable?: boolean;\n /** Enables a fluid outer container that spans the entire width of parent. */\n fluid?: boolean;\n /** Sets a label for the notification panel. */\n label?: string;\n /** Close button aria-label */\n ariaLabelCloseBtn?: string;\n /** Custom id for the label */\n labelId?: string;\n /** Custom role for the panel. Default is no role. If variant is alert or crisis, the aria role will be set to \"alert\" unless the role-prop is also set. */\n role?: 'region' | 'alert';\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ntype WrapFluidProps = Pick<NotificationPanelProps, 'fluid'> & {\n children: React.ReactElement;\n};\n\nconst FluidWrapper: React.FC<WrapFluidProps> = ({ fluid, children }) => {\n if (fluid) {\n const fluidClasses = classNames(styles['fluid-wrapper']);\n\n return <div className={fluidClasses}>{children}</div>;\n }\n return children;\n};\n\nconst NotificationPanel = React.forwardRef<HTMLDivElement, NotificationPanelProps>((props, ref) => {\n const {\n children,\n variant = 'info',\n dismissable = false,\n onClick,\n expanderChildren,\n expanderButtonText,\n expanderButtonClosedText,\n expanderOpenFromStart = false,\n compactVariant,\n label,\n fluid = false,\n size,\n className,\n labelId,\n role,\n testId,\n } = props;\n const uuid = useUuid(labelId);\n const variantToIconMap = {\n info: (\n <Icon\n svgIcon={InfoSignFill}\n color={palette.blueberry700}\n hoverColor={palette.blueberry700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n warn: (\n <Icon\n svgIcon={ErrorSignFill}\n color={palette.banana700}\n hoverColor={palette.banana700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n alert: (\n <Icon\n svgIcon={TriangleX}\n color={palette.cherry700}\n hoverColor={palette.cherry700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n success: (\n <Icon\n svgIcon={CheckFill}\n color={palette.kiwi900}\n hoverColor={palette.kiwi900}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n };\n const renderContent = (): JSX.Element => {\n const contentClasses = classNames(styles['notification-panel__content']);\n const labelClasses = classNames(styles['notification-panel__label'], {\n [styles['notification-panel__label--no-content']]: !children && !expanderChildren,\n [styles['notification-panel__label__compact']]: !!compactVariant,\n [styles['notification-panel__label__compact--basic']]: compactVariant === 'basic',\n });\n const childrenClasses = classNames(styles['notification-panel__children'], {\n [styles['notification-panel__label-and-content--spacing']]: label,\n [styles['notification-panel__children--expander-no-label']]: expanderChildren && !label,\n });\n\n return (\n <div className={contentClasses} id={!label ? uuid : undefined}>\n {label && (\n <h1 className={labelClasses} id={uuid}>\n {label}\n </h1>\n )}\n {children && !compactVariant && <div className={childrenClasses}>{children}</div>}\n {expanderChildren && expanderButtonText && expanderButtonClosedText && !compactVariant && (\n <DetailButton\n expanderOpenFromStart={expanderOpenFromStart}\n content={expanderChildren}\n buttonText={expanderButtonText}\n buttonClosedText={expanderButtonClosedText}\n />\n )}\n </div>\n );\n };\n\n const notificationPanelClasses = classNames(\n styles['notification-panel'],\n styles[`notification-panel--${variant}`],\n size && styles[`notification-panel--${size}`],\n {\n [styles['notification-panel__compact']]: !!compactVariant,\n [styles['notification-panel__compact--basic']]: compactVariant === 'basic',\n [styles['notification-panel__compact--outline']]: compactVariant === 'outline',\n [styles['notification-panel--with-content']]: expanderChildren || (label && children),\n [styles['notification-panel--dismissable']]: dismissable,\n },\n className\n );\n\n const ariaRole = role || (variant === 'alert' && 'alert') || undefined;\n const ariaLabelAttributes = ariaRole ? getAriaLabelAttributes({ label, id: uuid }) : undefined;\n\n return (\n <FluidWrapper fluid={fluid}>\n <div\n ref={ref}\n role={ariaRole}\n data-testid={testId}\n data-analyticsid={AnalyticsId.NotificationPanel}\n className={notificationPanelClasses}\n {...ariaLabelAttributes}\n >\n <span className={styles['notification-panel__icon']}>{variantToIconMap[variant]}</span>\n {dismissable && (\n <span className={styles['notification-panel__close']}>\n <Close ariaLabel={props.ariaLabelCloseBtn} onClick={onClick} color={getColor('black')} />\n </span>\n )}\n {renderContent()}\n </div>\n </FluidWrapper>\n );\n});\n\nexport default NotificationPanel;\n"],"names":["FluidWrapper","fluid","children","fluidClasses","classNames","styles","React","NotificationPanel","props","ref","variant","dismissable","onClick","expanderChildren","expanderButtonText","expanderButtonClosedText","expanderOpenFromStart","compactVariant","label","size","className","labelId","role","testId","uuid","useUuid","variantToIconMap","Icon","InfoSignFill","palette","IconSize","ErrorSignFill","TriangleX","CheckFill","renderContent","contentClasses","labelClasses","childrenClasses","DetailButton","notificationPanelClasses","ariaRole","ariaLabelAttributes","getAriaLabelAttributes","AnalyticsId","Close","getColor","NotificationPanel$1"],"mappings":";;;;;;;;;;;;;;;AAgEA,MAAMA,IAAyC,CAAC,EAAE,OAAAC,GAAO,UAAAC,QAAe;AACtE,MAAID,GAAO;AACT,UAAME,IAAeC,EAAWC,EAAO,eAAe,CAAC;AAEvD,WAAQC,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWH,EAAA,GAAeD,CAAS;AAAA,EACjD;AACO,SAAAA;AACT,GAEMK,IAAoBD,EAAM,WAAmD,CAACE,GAAOC,MAAQ;AAC3F,QAAA;AAAA,IACJ,UAAAP;AAAA,IACA,SAAAQ,IAAU;AAAA,IACV,aAAAC,IAAc;AAAA,IACd,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,uBAAAC,IAAwB;AAAA,IACxB,gBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAjB,IAAQ;AAAA,IACR,MAAAkB;AAAA,IACA,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,EACE,IAAAf,GACEgB,IAAOC,EAAQJ,CAAO,GACtBK,IAAmB;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MACb,oBAAkBoB,EAAY;AAAA,MAC9B,WAAWJ;AAAA,MACV,GAAGE;AAAA,IAAA;AAAA,IAEJnC,gBAAAA,EAAA,cAAC,UAAK,WAAWD,EAAO,0BAA0B,EAAI,GAAAqB,EAAiBhB,CAAO,CAAE;AAAA,IAC/EC,KACEL,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWD,EAAO,2BAA2B,EACjD,GAAAC,gBAAAA,EAAA,cAACsC,GAAM,EAAA,WAAWpC,EAAM,mBAAmB,SAAAI,GAAkB,OAAOiC,EAAS,OAAO,GAAG,CACzF;AAAA,IAEDX,EAAc;AAAA,EAAA,CAEnB;AAEJ,CAAC,GAEDY,KAAevC;"}
1
+ {"version":3,"file":"NotificationPanel.js","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"sourcesContent":["import React from 'react';\n\nimport classNames from 'classnames';\n\nimport { DetailButton } from './DetailButton/DetailButton';\nimport { AnalyticsId, IconSize } from '../../constants';\nimport { useUuid } from '../../hooks/useUuid';\nimport { getColor } from '../../theme/currys';\nimport { palette } from '../../theme/palette';\nimport { getAriaLabelAttributes } from '../../utils/accessibility';\nimport Close from '../Close';\nimport Icon from '../Icon';\nimport CheckFill from '../Icons/CheckFill';\nimport ErrorSignFill from '../Icons/ErrorSignFill';\nimport InfoSignFill from '../Icons/InfoSignFill';\nimport TriangleX from '../Icons/TriangleX';\n\nimport styles from './styles.module.scss';\n\nexport type NotificationPanelVariants = 'info' | 'warn' | 'alert' | 'success';\nexport type NotificationCompactVariants = 'basic' | 'outline';\nexport type NotificationPanelSizes = 'small' | 'medium' | 'large';\nexport type LabelTags = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'span';\n\nexport interface NotificationPanelProps {\n /** Adds custom classes to the element. */\n className?: string;\n /** Adds inner child elements. */\n children?: React.ReactNode;\n /** Adds inner expander elements. */\n expanderChildren?: React.ReactNode;\n /** Text for expanderButton. */\n expanderButtonText?: string;\n /** Text for expanderButton when closed. */\n expanderButtonClosedText?: string;\n /** Makes expander be open from start. */\n expanderOpenFromStart?: boolean;\n /** Changes the visual representation of the notification panel. */\n variant?: NotificationPanelVariants;\n /** Makes the panel more compact. Available in basic and outline. */\n compactVariant?: NotificationCompactVariants;\n /** Sets a fixed size for the content container. */\n size?: NotificationPanelSizes;\n /** Used in combination with dismissiable property to close the notification panel. */\n onClick?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\n /** Toggles the close button in the top right corner. */\n dismissable?: boolean;\n /** Enables a fluid outer container that spans the entire width of parent. */\n fluid?: boolean;\n /** Sets a label for the notification panel. */\n label?: string;\n /** Changes the underlying element of the label. */\n labelHtmlMarkup?: LabelTags;\n /** Close button aria-label */\n ariaLabelCloseBtn?: string;\n /** Custom id for the label */\n labelId?: string;\n /** Custom role for the panel. Default is no role. If variant is alert or crisis, the aria role will be set to \"alert\" unless the role-prop is also set. */\n role?: 'region' | 'alert';\n /** Sets the data-testid attribute. */\n testId?: string;\n}\n\ntype WrapFluidProps = Pick<NotificationPanelProps, 'fluid'> & {\n children: React.ReactElement;\n};\n\nconst FluidWrapper: React.FC<WrapFluidProps> = ({ fluid, children }) => {\n if (fluid) {\n const fluidClasses = classNames(styles['fluid-wrapper']);\n\n return <div className={fluidClasses}>{children}</div>;\n }\n return children;\n};\n\nconst NotificationPanel = React.forwardRef<HTMLDivElement, NotificationPanelProps>((props, ref) => {\n const {\n children,\n variant = 'info',\n dismissable = false,\n onClick,\n expanderChildren,\n expanderButtonText,\n expanderButtonClosedText,\n expanderOpenFromStart = false,\n compactVariant,\n label,\n labelHtmlMarkup = 'h1',\n fluid = false,\n size,\n className,\n labelId,\n role,\n testId,\n } = props;\n const uuid = useUuid(labelId);\n const variantToIconMap = {\n info: (\n <Icon\n svgIcon={InfoSignFill}\n color={palette.blueberry700}\n hoverColor={palette.blueberry700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n warn: (\n <Icon\n svgIcon={ErrorSignFill}\n color={palette.banana700}\n hoverColor={palette.banana700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n alert: (\n <Icon\n svgIcon={TriangleX}\n color={palette.cherry700}\n hoverColor={palette.cherry700}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n success: (\n <Icon\n svgIcon={CheckFill}\n color={palette.kiwi900}\n hoverColor={palette.kiwi900}\n size={compactVariant ? IconSize.XSmall : IconSize.Small}\n />\n ),\n };\n const renderContent = (): JSX.Element => {\n const outlineVariant = compactVariant === 'outline';\n const contentClasses = classNames(styles['notification-panel__content']);\n const labelClasses = classNames(styles['notification-panel__label'], {\n [styles['notification-panel__label--no-content']]: !children && !expanderChildren,\n [styles['notification-panel__label--compact']]: !!compactVariant,\n [styles['notification-panel__label--outline']]: outlineVariant,\n });\n const childrenClasses = classNames(styles['notification-panel__children'], {\n [styles['notification-panel__children--with-label']]: label,\n [styles['notification-panel__children--expander-no-label']]: expanderChildren && !label,\n [styles['notification-panel__children--outline']]: outlineVariant,\n });\n const CustomTag = labelHtmlMarkup;\n\n return (\n <div className={contentClasses} id={!label ? uuid : undefined}>\n {label && (\n <CustomTag className={labelClasses} id={uuid}>\n {label}\n </CustomTag>\n )}\n {children && <div className={childrenClasses}>{children}</div>}\n {expanderChildren && expanderButtonText && expanderButtonClosedText && !compactVariant && (\n <DetailButton\n expanderOpenFromStart={expanderOpenFromStart}\n content={expanderChildren}\n buttonText={expanderButtonText}\n buttonClosedText={expanderButtonClosedText}\n />\n )}\n </div>\n );\n };\n\n const notificationPanelClasses = classNames(\n styles['notification-panel'],\n styles[`notification-panel--${variant}`],\n size && styles[`notification-panel--${size}`],\n {\n [styles['notification-panel--compact']]: !!compactVariant,\n [styles['notification-panel--compact--basic']]: compactVariant === 'basic',\n [styles['notification-panel--compact--outline']]: compactVariant === 'outline',\n [styles['notification-panel--with-content']]: expanderChildren || (label && children),\n [styles['notification-panel--dismissable']]: dismissable,\n },\n className\n );\n\n const ariaRole = role || (variant === 'alert' && 'alert') || undefined;\n const ariaLabelAttributes = ariaRole ? getAriaLabelAttributes({ label, id: uuid }) : undefined;\n\n return (\n <FluidWrapper fluid={fluid}>\n <div\n ref={ref}\n role={ariaRole}\n data-testid={testId}\n data-analyticsid={AnalyticsId.NotificationPanel}\n className={notificationPanelClasses}\n {...ariaLabelAttributes}\n >\n <span className={styles['notification-panel__icon']}>{variantToIconMap[variant]}</span>\n {dismissable && (\n <span className={styles['notification-panel__close']}>\n <Close ariaLabel={props.ariaLabelCloseBtn} onClick={onClick} color={getColor('black')} />\n </span>\n )}\n {renderContent()}\n </div>\n </FluidWrapper>\n );\n});\n\nexport default NotificationPanel;\n"],"names":["FluidWrapper","fluid","children","fluidClasses","classNames","styles","React","NotificationPanel","props","ref","variant","dismissable","onClick","expanderChildren","expanderButtonText","expanderButtonClosedText","expanderOpenFromStart","compactVariant","label","labelHtmlMarkup","size","className","labelId","role","testId","uuid","useUuid","variantToIconMap","Icon","InfoSignFill","palette","IconSize","ErrorSignFill","TriangleX","CheckFill","renderContent","outlineVariant","contentClasses","labelClasses","childrenClasses","CustomTag","DetailButton","notificationPanelClasses","ariaRole","ariaLabelAttributes","getAriaLabelAttributes","AnalyticsId","Close","getColor","NotificationPanel$1"],"mappings":";;;;;;;;;;;;;;;AAmEA,MAAMA,IAAyC,CAAC,EAAE,OAAAC,GAAO,UAAAC,QAAe;AACtE,MAAID,GAAO;AACT,UAAME,IAAeC,EAAWC,EAAO,eAAe,CAAC;AAEvD,WAAQC,gBAAAA,EAAA,cAAA,OAAA,EAAI,WAAWH,EAAA,GAAeD,CAAS;AAAA,EACjD;AACO,SAAAA;AACT,GAEMK,IAAoBD,EAAM,WAAmD,CAACE,GAAOC,MAAQ;AAC3F,QAAA;AAAA,IACJ,UAAAP;AAAA,IACA,SAAAQ,IAAU;AAAA,IACV,aAAAC,IAAc;AAAA,IACd,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,uBAA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,EAAO,iCAAiC,CAAC,GAAGM;AAAA,IAC/C;AAAA,IACAU;AAAA,EAAA,GAGIsB,IAAWpB,KAASb,MAAY,WAAW,WAAY,QACvDkC,IAAsBD,IAAWE,EAAuB,EAAE,OAAA3B,GAAO,IAAIO,EAAA,CAAM,IAAI;AAGnF,SAAAnB,gBAAAA,EAAA,cAACN,KAAa,OAAAC,EACZ,GAAAK,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAG;AAAA,MACA,MAAMkC;AAAA,MACN,eAAanB;AAAA,MACb,oBAAkBsB,EAAY;AAAA,MAC9B,WAAWJ;AAAA,MACV,GAAGE;AAAA,IAAA;AAAA,IAEJtC,gBAAAA,EAAA,cAAC,UAAK,WAAWD,EAAO,0BAA0B,EAAI,GAAAsB,EAAiBjB,CAAO,CAAE;AAAA,IAC/EC,KACEL,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAWD,EAAO,2BAA2B,EACjD,GAAAC,gBAAAA,EAAA,cAACyC,GAAM,EAAA,WAAWvC,EAAM,mBAAmB,SAAAI,GAAkB,OAAOoC,EAAS,OAAO,GAAG,CACzF;AAAA,IAEDb,EAAc;AAAA,EAAA,CAEnB;AAEJ,CAAC,GAEDc,KAAe1C;"}
@@ -16,6 +16,7 @@ declare const meta: {
16
16
  size: "large";
17
17
  fluid: false;
18
18
  label: string;
19
+ labelHtmlMarkup: "h1";
19
20
  variant: "alert";
20
21
  role: undefined;
21
22
  };
@@ -33,6 +34,10 @@ declare const meta: {
33
34
  label: {
34
35
  control: string;
35
36
  };
37
+ labelHtmlMarkup: {
38
+ control: string;
39
+ options: import("../Title").TitleTags[];
40
+ };
36
41
  variant: {
37
42
  control: string;
38
43
  options: string[];
@@ -51,4 +56,5 @@ export declare const AllVariants: Story;
51
56
  export declare const Expander: Story;
52
57
  export declare const Dismissable: Story;
53
58
  export declare const Compact: Story;
59
+ export declare const CompactWithChildren: Story;
54
60
  export declare const WithSetWidth: Story;
@@ -21,9 +21,8 @@
21
21
  }
22
22
  }
23
23
 
24
- &__compact {
24
+ &--compact {
25
25
  width: fit-content;
26
- font-weight: 600;
27
26
  font-size: $font-size-xs;
28
27
  line-height: 1.25rem;
29
28
  box-shadow: none;
@@ -33,10 +32,6 @@
33
32
  padding-right: getSpacer(s);
34
33
  }
35
34
 
36
- &--basic {
37
- font-weight: 400;
38
- }
39
-
40
35
  &--outline {
41
36
  border: none;
42
37
  }
@@ -66,12 +61,12 @@
66
61
  background-color: $blueberry50;
67
62
  }
68
63
 
69
- &--info.notification-panel__compact {
64
+ &--info#{&}--compact {
70
65
  box-shadow: none;
71
66
  background-color: transparent;
72
67
  }
73
68
 
74
- &--info.notification-panel__compact--basic {
69
+ &--info#{&}--compact--basic {
75
70
  border: none;
76
71
  }
77
72
 
@@ -80,12 +75,12 @@
80
75
  background-color: $banana50;
81
76
  }
82
77
 
83
- &--warn.notification-panel__compact {
78
+ &--warn#{&}--compact {
84
79
  box-shadow: none;
85
80
  background-color: transparent;
86
81
  }
87
82
 
88
- &--warn.notification-panel__compact--basic {
83
+ &--warn#{&}--compact--basic {
89
84
  border: none;
90
85
  }
91
86
 
@@ -94,12 +89,12 @@
94
89
  background-color: $cherry50;
95
90
  }
96
91
 
97
- &--alert.notification-panel__compact {
92
+ &--alert#{&}--compact {
98
93
  box-shadow: none;
99
94
  background-color: transparent;
100
95
  }
101
96
 
102
- &--alert.notification-panel__compact--basic {
97
+ &--alert#{&}--compact--basic {
103
98
  border: none;
104
99
  }
105
100
 
@@ -108,12 +103,12 @@
108
103
  background-color: $kiwi50;
109
104
  }
110
105
 
111
- &--success.notification-panel__compact {
106
+ &--success#{&}--compact {
112
107
  box-shadow: none;
113
108
  background-color: transparent;
114
109
  }
115
110
 
116
- &--success.notification-panel__compact--basic {
111
+ &--success#{&}--compact--basic {
117
112
  border: none;
118
113
  }
119
114
 
@@ -132,10 +127,6 @@
132
127
  }
133
128
  }
134
129
 
135
- &__children.notification-panel__label-and-content--spacing {
136
- font-weight: 500;
137
- }
138
-
139
130
  &__label,
140
131
  &__children {
141
132
  font-size: $font-size-xs;
@@ -152,26 +143,33 @@
152
143
  font-weight: 700;
153
144
  margin: getSpacer(2xs) 0 0 0;
154
145
 
155
- &__compact {
156
- font-weight: 600;
146
+ &--compact {
157
147
  font-size: $font-size-xs;
158
148
  line-height: 1.25rem;
159
149
  }
160
150
 
161
- &__compact--basic {
162
- font-weight: 400;
151
+ &--no-content {
152
+ margin: 0;
163
153
  }
164
- }
165
154
 
166
- &__label--no-content {
167
- margin: 0;
168
- font-weight: 600;
155
+ &--compact,
156
+ &--no-content {
157
+ font-weight: 600;
158
+ }
159
+
160
+ &--outline {
161
+ font-weight: 500;
162
+ }
169
163
  }
170
164
 
171
165
  &__children {
172
166
  font-weight: 600;
173
167
  padding: getSpacer(3xs) 0;
174
168
 
169
+ &--with-label {
170
+ font-weight: 500;
171
+ }
172
+
175
173
  &--expander-no-label {
176
174
  margin: getSpacer(2xs) 0 0 0;
177
175
 
@@ -179,6 +177,10 @@
179
177
  padding-top: 0;
180
178
  }
181
179
  }
180
+
181
+ &--outline {
182
+ font-weight: 500;
183
+ }
182
184
  }
183
185
 
184
186
  &__icon {
@@ -6,18 +6,19 @@ export type Styles = {
6
6
  'notification-panel': string;
7
7
  'notification-panel__children': string;
8
8
  'notification-panel__children--expander-no-label': string;
9
+ 'notification-panel__children--outline': string;
10
+ 'notification-panel__children--with-label': string;
9
11
  'notification-panel__close': string;
10
- 'notification-panel__compact': string;
11
- 'notification-panel__compact--basic': string;
12
- 'notification-panel__compact--outline': string;
13
12
  'notification-panel__content': string;
14
13
  'notification-panel__icon': string;
15
14
  'notification-panel__label': string;
16
- 'notification-panel__label__compact': string;
17
- 'notification-panel__label__compact--basic': string;
15
+ 'notification-panel__label--compact': string;
18
16
  'notification-panel__label--no-content': string;
19
- 'notification-panel__label-and-content--spacing': string;
17
+ 'notification-panel__label--outline': string;
20
18
  'notification-panel--alert': string;
19
+ 'notification-panel--compact': string;
20
+ 'notification-panel--compact--basic': string;
21
+ 'notification-panel--compact--outline': string;
21
22
  'notification-panel--dismissable': string;
22
23
  'notification-panel--info': string;
23
24
  'notification-panel--large': string;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/helsenorge/designsystem.git"
8
8
  },
9
9
  "homepage": "https://helsenorge.design",
10
- "version": "7.4.0",
10
+ "version": "7.6.0",
11
11
  "author": "Helsenorge",
12
12
  "license": "MIT",
13
13
  "peerDependencies": {