@norges-domstoler/dds-components 0.0.0-dev-20240212110341 → 0.0.0-dev-20240212124253

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/dist/index.d.mts CHANGED
@@ -1855,10 +1855,14 @@ declare const DrawerGroup: {
1855
1855
  };
1856
1856
 
1857
1857
  type EmptyContentProps = {
1858
+ /**Tittel - kort oppsummering. */
1858
1859
  title?: string;
1860
+ /**Nivå på overskriften. Sørg for at den følger hierarkiet på siden. */
1861
+ titleHeadingLevel?: HeadingLevel;
1862
+ /**Melding - beskrivelse og forklaring på hvordan brukeren kan få innhold. */
1859
1863
  message: string;
1860
1864
  } & HTMLAttributes<HTMLDivElement>;
1861
- declare function EmptyContent({ title, message, ...rest }: EmptyContentProps): react_jsx_runtime.JSX.Element;
1865
+ declare function EmptyContent({ title, message, titleHeadingLevel, ...rest }: EmptyContentProps): react_jsx_runtime.JSX.Element;
1862
1866
  declare namespace EmptyContent {
1863
1867
  var displayName: string;
1864
1868
  }
package/dist/index.d.ts CHANGED
@@ -1855,10 +1855,14 @@ declare const DrawerGroup: {
1855
1855
  };
1856
1856
 
1857
1857
  type EmptyContentProps = {
1858
+ /**Tittel - kort oppsummering. */
1858
1859
  title?: string;
1860
+ /**Nivå på overskriften. Sørg for at den følger hierarkiet på siden. */
1861
+ titleHeadingLevel?: HeadingLevel;
1862
+ /**Melding - beskrivelse og forklaring på hvordan brukeren kan få innhold. */
1859
1863
  message: string;
1860
1864
  } & HTMLAttributes<HTMLDivElement>;
1861
- declare function EmptyContent({ title, message, ...rest }: EmptyContentProps): react_jsx_runtime.JSX.Element;
1865
+ declare function EmptyContent({ title, message, titleHeadingLevel, ...rest }: EmptyContentProps): react_jsx_runtime.JSX.Element;
1862
1866
  declare namespace EmptyContent {
1863
1867
  var displayName: string;
1864
1868
  }
package/dist/index.js CHANGED
@@ -7301,10 +7301,15 @@ var StyledEmptyContentText = import_styled_components46.default.div`
7301
7301
  flex-direction: column;
7302
7302
  gap: ${spacing16.SizesDdsSpacingX1};
7303
7303
  `;
7304
- function EmptyContent({ title: title3, message: message2, ...rest }) {
7304
+ function EmptyContent({
7305
+ title: title3,
7306
+ message: message2,
7307
+ titleHeadingLevel = 5,
7308
+ ...rest
7309
+ }) {
7305
7310
  return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(StyledEmptyContent, { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(StyledEmptyContentText, { children: [
7306
- title3 && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Typography, { typographyType: "headingSans02", children: title3 }),
7307
- /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Typography, { typographyType: "bodySans02", children: message2 })
7311
+ title3 && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Heading, { level: titleHeadingLevel, children: title3 }),
7312
+ /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Paragraph, { children: message2 })
7308
7313
  ] }) });
7309
7314
  }
7310
7315
  EmptyContent.displayName = "EmptyContent";