@norges-domstoler/dds-components 0.0.0-dev-20260717081939 → 0.0.0-dev-20260720114143

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.mjs CHANGED
@@ -480,9 +480,6 @@ const combineHandlers = (handler1, handler2) => {
480
480
  function cn(...classNames) {
481
481
  return classNames.filter(Boolean).join(" ") || void 0;
482
482
  }
483
- function convertCamelToHyphen(value) {
484
- return value.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([a-z])([0-9])/g, "$1-$2").toLowerCase();
485
- }
486
483
  /**
487
484
  * Returnener verdien hvis den er truthy.
488
485
  * Ellers returnerer `undefined`.
@@ -4026,6 +4023,78 @@ const Accordion = ({ isInitiallyExpanded = false, isExpanded, onChange, id, chil
4026
4023
  };
4027
4024
  Accordion.displayName = "Accordion";
4028
4025
  //#endregion
4026
+ //#region src/components/Accordion/AccordionHeader.tsx
4027
+ const AccordionHeader = ({ children, className, style, htmlProps, typographyType = "heading-medium", bold, ...rest }) => {
4028
+ const { isExpanded, headerProps } = useAccordionContext();
4029
+ const { id, ...restHeaderProps } = headerProps ?? {};
4030
+ const iconState = isExpanded ? "up" : "down";
4031
+ return /* @__PURE__ */ jsx(Box, {
4032
+ as: StylelessButton,
4033
+ padding: "x1 x1.5 x1 x1",
4034
+ ...getBaseHTMLProps(id, cn(className, Accordion_module_default["header-button"], AccordionBase_module_default["header-button"], _key1), style, htmlProps, rest),
4035
+ ...restHeaderProps,
4036
+ children: /* @__PURE__ */ jsxs("div", {
4037
+ className: cn(AccordionBase_module_default.header__content, typographyStyles_module_default[typographyType], bold && typographyStyles_module_default.bold),
4038
+ children: [/* @__PURE__ */ jsx(Icon, {
4039
+ icon: AnimatedChevronUpDownIcon,
4040
+ iconSize: "component",
4041
+ className: Accordion_module_default.chevron,
4042
+ iconState
4043
+ }), children]
4044
+ })
4045
+ });
4046
+ };
4047
+ AccordionHeader.displayName = "AccordionHeader";
4048
+ //#endregion
4049
+ //#region src/components/Accordion/AccordionBody.tsx
4050
+ const AccordionBody = ({ children, className, style, htmlProps, ...rest }) => {
4051
+ const { bodyContentRef, bodyProps } = useAccordionContext();
4052
+ const { className: bodyContextCn, id, height, ...restBodyProps } = bodyProps ?? {};
4053
+ return /* @__PURE__ */ jsx(Box, {
4054
+ height: `${height}px`,
4055
+ ...getBaseHTMLProps(id, cn(className, bodyContextCn), style, htmlProps, rest),
4056
+ ...restBodyProps,
4057
+ children: /* @__PURE__ */ jsx(Box, {
4058
+ ref: bodyContentRef,
4059
+ padding: "x0.5 x1.5 x2 x1",
4060
+ children
4061
+ })
4062
+ });
4063
+ };
4064
+ AccordionBody.displayName = "AccordionBody";
4065
+ //#endregion
4066
+ //#region src/components/BackLink/BackLink.module.css
4067
+ var BackLink_module_default = { "icon": "dds-BackLink-module__icon" };
4068
+ //#endregion
4069
+ //#region src/components/BackLink/BackLink.tsx
4070
+ const BackLink = ({ label, ref, as = "a", ...rest }) => {
4071
+ const { t } = useTranslation();
4072
+ return /* @__PURE__ */ jsx("nav", {
4073
+ ref,
4074
+ "aria-label": t(texts$29.goBack),
4075
+ className: typographyStyles_module_default["body-short-medium"],
4076
+ children: /* @__PURE__ */ jsxs(HStack, {
4077
+ as,
4078
+ className: cn(typographyStyles_module_default.a, _key1),
4079
+ rel: "noopener noreferer",
4080
+ ...rest,
4081
+ children: [/* @__PURE__ */ jsx(Icon, {
4082
+ icon: ArrowLeftIcon,
4083
+ iconSize: "component",
4084
+ className: cn(BackLink_module_default.icon)
4085
+ }), label]
4086
+ })
4087
+ });
4088
+ };
4089
+ BackLink.displayName = "BackLink";
4090
+ const texts$29 = createTexts({ goBack: {
4091
+ nb: "Gå tilbake",
4092
+ no: "Gå tilbake",
4093
+ nn: "Gå tilbake",
4094
+ en: "Go back",
4095
+ se: "Mana ruovttoluotta"
4096
+ } });
4097
+ //#endregion
4029
4098
  //#region src/components/Typography/Typography/TextOverflowEllipsis/TextOverflowEllipsis.module.css
4030
4099
  var TextOverflowEllipsis_module_default = {
4031
4100
  "wrapper": "dds-TextOverflowEllipsis-module__wrapper",
@@ -4050,28 +4119,42 @@ function TextOverflowEllipsisInner({ className, ...rest }) {
4050
4119
  var Typography_module_default = { "container": "dds-Typography-module__container" };
4051
4120
  //#endregion
4052
4121
  //#region src/components/Typography/Typography/Typography.types.ts
4122
+ const TG_BODY_SHORT_TYPES = [
4123
+ "body-short-xsmall",
4124
+ "body-short-small",
4125
+ "body-short-medium",
4126
+ "body-short-large"
4127
+ ];
4128
+ const TG_BODY_LONG_TYPES = [
4129
+ "body-long-xsmall",
4130
+ "body-long-small",
4131
+ "body-long-medium",
4132
+ "body-long-large"
4133
+ ];
4134
+ const TG_BODY_TYPES = [...TG_BODY_SHORT_TYPES, ...TG_BODY_LONG_TYPES];
4135
+ const TG_LEAD_TYPES = ["lead-medium"];
4053
4136
  const TG_HEADING_TYPES = [
4054
- "headingXxsmall",
4055
- "headingXsmall",
4056
- "headingSmall",
4057
- "headingMedium",
4058
- "headingLarge",
4059
- "headingXlarge",
4060
- "headingXxlarge"
4137
+ "heading-xxsmall",
4138
+ "heading-xsmall",
4139
+ "heading-small",
4140
+ "heading-medium",
4141
+ "heading-large",
4142
+ "heading-xlarge",
4143
+ "heading-xxlarge"
4061
4144
  ];
4062
4145
  //#endregion
4063
4146
  //#region src/components/Typography/Typography/Typography.utils.ts
4064
4147
  const getElementType = (element) => {
4065
4148
  switch (element) {
4066
4149
  case "a": return "a";
4067
- case "headingXxsmall": return "h6";
4068
- case "headingXsmall": return "h5";
4069
- case "headingSmall": return "h4";
4070
- case "headingMedium": return "h3";
4071
- case "headingLarge": return "h2";
4072
- case "headingXlarge":
4073
- case "headingXxlarge": return "h1";
4074
- case "labelMedium": return "label";
4150
+ case "heading-xxsmall": return "h6";
4151
+ case "heading-xsmall": return "h5";
4152
+ case "heading-small": return "h4";
4153
+ case "heading-medium": return "h3";
4154
+ case "heading-large": return "h2";
4155
+ case "heading-xlarge":
4156
+ case "heading-xxlarge": return "h1";
4157
+ case "label-medium": return "label";
4075
4158
  default: return "p";
4076
4159
  }
4077
4160
  };
@@ -4140,9 +4223,6 @@ const inlineElements = [
4140
4223
  "wbr"
4141
4224
  ];
4142
4225
  const isInlineElement = (as) => inlineElements.indexOf(as) !== -1;
4143
- function getTypographyCn(value) {
4144
- return convertCamelToHyphen(value);
4145
- }
4146
4226
  const getColorCn = (color) => {
4147
4227
  if (!isTextColor(color)) return null;
4148
4228
  const [prefix] = color.split("-", 1);
@@ -4152,13 +4232,12 @@ const getColorCn = (color) => {
4152
4232
  //#region src/components/Typography/Typography/Typography.tsx
4153
4233
  const isAnchorProps = (props) => props.typographyType === "a";
4154
4234
  const Typography = (props) => {
4155
- const { typographyType = "bodyLongMedium", as: propAs, children, bold, underline, italic, style, id, withMargins, color, className, htmlProps = {}, ...rest } = props;
4235
+ const { typographyType = "body-long-medium", as: propAs, children, bold, underline, italic, style, id, withMargins, color, className, htmlProps = {}, ...rest } = props;
4156
4236
  const as = propAs ? propAs : getElementType(typographyType);
4157
- const typographyCn = getTypographyCn(typographyType);
4158
4237
  let relProp;
4159
4238
  if (isAnchorProps(props)) relProp = as === "a" ? "noopener noreferer" : void 0;
4160
4239
  return /* @__PURE__ */ jsx(Box, {
4161
- ...getBaseHTMLProps(id, cn(className, getColorCn(color), Typography_module_default.container, typographyStyles_module_default[typographyCn], withMargins && typographyStyles_module_default[`${typographyCn}--margins`], isLegend(as) && typographyStyles_module_default.legend, isCaption(as) && typographyStyles_module_default.caption, isCaption(as) && withMargins && typographyStyles_module_default["caption--withMargins"], bold && typographyStyles_module_default.bold, underline && typographyStyles_module_default.underline, italic && typographyStyles_module_default.italic, as === "a" && "dds-focus-module__focusable"), {
4240
+ ...getBaseHTMLProps(id, cn(className, getColorCn(color), Typography_module_default.container, typographyStyles_module_default[typographyType], withMargins && typographyStyles_module_default[`${typographyType}--margins`], isLegend(as) && typographyStyles_module_default.legend, isCaption(as) && typographyStyles_module_default.caption, isCaption(as) && withMargins && typographyStyles_module_default["caption--withMargins"], bold && typographyStyles_module_default.bold, underline && typographyStyles_module_default.underline, italic && typographyStyles_module_default.italic, as === "a" && "dds-focus-module__focusable"), {
4162
4241
  ...style,
4163
4242
  color: color && !isTextColor(color) ? getTextColor(color) : void 0
4164
4243
  }, htmlProps, rest),
@@ -4173,7 +4252,7 @@ Typography.displayName = "Typography";
4173
4252
  const Caption = ({ id, className, style, htmlProps, children, ...rest }) => {
4174
4253
  return /* @__PURE__ */ jsx(Typography, {
4175
4254
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
4176
- typographyType: "headingLarge",
4255
+ typographyType: "heading-large",
4177
4256
  as: "caption",
4178
4257
  children
4179
4258
  });
@@ -4184,13 +4263,13 @@ Caption.displayName = "Caption";
4184
4263
  const getHeadingElement = (level) => `h${level}`;
4185
4264
  const getDefaultTypographyType = (h) => {
4186
4265
  switch (h) {
4187
- case "h1": return "headingXlarge";
4188
- case "h2": return "headingLarge";
4189
- case "h3": return "headingMedium";
4190
- case "h4": return "headingSmall";
4191
- case "h5": return "headingXsmall";
4192
- case "h6": return "headingXxsmall";
4193
- default: return "headingXlarge";
4266
+ case "h1": return "heading-xlarge";
4267
+ case "h2": return "heading-large";
4268
+ case "h3": return "heading-medium";
4269
+ case "h4": return "heading-small";
4270
+ case "h5": return "heading-xsmall";
4271
+ case "h6": return "heading-xxsmall";
4272
+ default: return "heading-xlarge";
4194
4273
  }
4195
4274
  };
4196
4275
  const Heading = ({ id, className, style, htmlProps, children, typographyType, level, withMargins, withMarginsOverInput, ...rest }) => {
@@ -4225,25 +4304,25 @@ const Label = ({ showRequiredStyling, readOnly, id, className, style, htmlProps,
4225
4304
  ] });
4226
4305
  const labelProps = { ...getBaseHTMLProps(id, cn(className, readOnly && Label_module_default["read-only"]), style, htmlProps, rest) };
4227
4306
  return afterLabelContent ? /* @__PURE__ */ jsxs(Typography, {
4228
- typographyType: "labelMedium",
4307
+ typographyType: "label-medium",
4229
4308
  as: "div",
4230
4309
  withMargins: rest.withMargins,
4231
4310
  children: [/* @__PURE__ */ jsx(Typography, {
4232
4311
  ...labelProps,
4233
- typographyType: "labelMedium",
4312
+ typographyType: "label-medium",
4234
4313
  withMargins: false,
4235
4314
  children: content
4236
4315
  }), afterLabelContent]
4237
4316
  }) : /* @__PURE__ */ jsx(Typography, {
4238
4317
  ...labelProps,
4239
- typographyType: "labelMedium",
4318
+ typographyType: "label-medium",
4240
4319
  children: content
4241
4320
  });
4242
4321
  };
4243
4322
  Label.displayName = "Label";
4244
4323
  //#endregion
4245
4324
  //#region src/components/Typography/Legend/Legend.tsx
4246
- const Legend = ({ id, className, style, htmlProps, typographyType = "headingLarge", withMarginsOverInput, withMargins, ...rest }) => {
4325
+ const Legend = ({ id, className, style, htmlProps, typographyType = "heading-large", withMarginsOverInput, withMargins, ...rest }) => {
4247
4326
  return /* @__PURE__ */ jsx(Typography, {
4248
4327
  ...getBaseHTMLProps(id, cn(className, withMarginsOverInput && typographyStyles_module_default["legend--margins-over-input"]), style, htmlProps, rest),
4249
4328
  as: "legend",
@@ -4259,7 +4338,7 @@ const Link = ({ id, className, htmlProps, children, typographyType, withMargins,
4259
4338
  const aProps = as === "a" || propIsAnchor ? { rel: "noopener noreferrer" } : {};
4260
4339
  return /* @__PURE__ */ jsx(ElementAs, {
4261
4340
  as,
4262
- ...getBaseHTMLProps(id, cn(className, typographyStyles_module_default.a, withIconStyling && typographyStyles_module_default["a--with-icon"], withVisited && typographyStyles_module_default["a--visited"], typographyType && typographyStyles_module_default[getTypographyCn(typographyType)], typographyType && withMargins && typographyStyles_module_default[`${getTypographyCn(typographyType)}--margins`], _key1, getColorCn(color)), {
4341
+ ...getBaseHTMLProps(id, cn(className, typographyStyles_module_default.a, withIconStyling && typographyStyles_module_default["a--with-icon"], withVisited && typographyStyles_module_default["a--visited"], typographyType && typographyStyles_module_default[typographyType], typographyType && withMargins && typographyStyles_module_default[`${typographyType}--margins`], _key1, getColorCn(color)), {
4263
4342
  ...style,
4264
4343
  color: color && !isTextColor(color) ? getTextColor(color) : void 0
4265
4344
  }, htmlProps, rest),
@@ -4268,9 +4347,8 @@ const Link = ({ id, className, htmlProps, children, typographyType, withMargins,
4268
4347
  });
4269
4348
  };
4270
4349
  Link.displayName = "Link";
4271
- //#endregion
4272
- //#region src/components/Typography/Paragraph/Paragraph.tsx
4273
- const Paragraph = ({ id, className, style, htmlProps, children, typographyType = "bodyLongMedium", ...rest }) => {
4350
+ [...TG_BODY_TYPES, ...TG_LEAD_TYPES];
4351
+ const Paragraph = ({ id, className, style, htmlProps, children, typographyType = "body-long-medium", ...rest }) => {
4274
4352
  return /* @__PURE__ */ jsx(Typography, {
4275
4353
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
4276
4354
  typographyType,
@@ -4279,78 +4357,6 @@ const Paragraph = ({ id, className, style, htmlProps, children, typographyType =
4279
4357
  };
4280
4358
  Paragraph.displayName = "Paragraph";
4281
4359
  //#endregion
4282
- //#region src/components/Accordion/AccordionHeader.tsx
4283
- const AccordionHeader = ({ children, className, style, htmlProps, typographyType = "headingMedium", bold, ...rest }) => {
4284
- const { isExpanded, headerProps } = useAccordionContext();
4285
- const { id, ...restHeaderProps } = headerProps ?? {};
4286
- const iconState = isExpanded ? "up" : "down";
4287
- return /* @__PURE__ */ jsx(Box, {
4288
- as: StylelessButton,
4289
- padding: "x1 x1.5 x1 x1",
4290
- ...getBaseHTMLProps(id, cn(className, Accordion_module_default["header-button"], AccordionBase_module_default["header-button"], _key1), style, htmlProps, rest),
4291
- ...restHeaderProps,
4292
- children: /* @__PURE__ */ jsxs("div", {
4293
- className: cn(AccordionBase_module_default.header__content, typographyStyles_module_default[getTypographyCn(typographyType)], bold && typographyStyles_module_default.bold),
4294
- children: [/* @__PURE__ */ jsx(Icon, {
4295
- icon: AnimatedChevronUpDownIcon,
4296
- iconSize: "component",
4297
- className: Accordion_module_default.chevron,
4298
- iconState
4299
- }), children]
4300
- })
4301
- });
4302
- };
4303
- AccordionHeader.displayName = "AccordionHeader";
4304
- //#endregion
4305
- //#region src/components/Accordion/AccordionBody.tsx
4306
- const AccordionBody = ({ children, className, style, htmlProps, ...rest }) => {
4307
- const { bodyContentRef, bodyProps } = useAccordionContext();
4308
- const { className: bodyContextCn, id, height, ...restBodyProps } = bodyProps ?? {};
4309
- return /* @__PURE__ */ jsx(Box, {
4310
- height: `${height}px`,
4311
- ...getBaseHTMLProps(id, cn(className, bodyContextCn), style, htmlProps, rest),
4312
- ...restBodyProps,
4313
- children: /* @__PURE__ */ jsx(Box, {
4314
- ref: bodyContentRef,
4315
- padding: "x0.5 x1.5 x2 x1",
4316
- children
4317
- })
4318
- });
4319
- };
4320
- AccordionBody.displayName = "AccordionBody";
4321
- //#endregion
4322
- //#region src/components/BackLink/BackLink.module.css
4323
- var BackLink_module_default = { "icon": "dds-BackLink-module__icon" };
4324
- //#endregion
4325
- //#region src/components/BackLink/BackLink.tsx
4326
- const BackLink = ({ label, ref, as = "a", ...rest }) => {
4327
- const { t } = useTranslation();
4328
- return /* @__PURE__ */ jsx("nav", {
4329
- ref,
4330
- "aria-label": t(texts$29.goBack),
4331
- className: typographyStyles_module_default["body-short-medium"],
4332
- children: /* @__PURE__ */ jsxs(HStack, {
4333
- as,
4334
- className: cn(typographyStyles_module_default.a, _key1),
4335
- rel: "noopener noreferer",
4336
- ...rest,
4337
- children: [/* @__PURE__ */ jsx(Icon, {
4338
- icon: ArrowLeftIcon,
4339
- iconSize: "component",
4340
- className: cn(BackLink_module_default.icon)
4341
- }), label]
4342
- })
4343
- });
4344
- };
4345
- BackLink.displayName = "BackLink";
4346
- const texts$29 = createTexts({ goBack: {
4347
- nb: "Gå tilbake",
4348
- no: "Gå tilbake",
4349
- nn: "Gå tilbake",
4350
- en: "Go back",
4351
- se: "Mana ruovttoluotta"
4352
- } });
4353
- //#endregion
4354
4360
  //#region src/components/Breadcrumbs/Breadcrumb.tsx
4355
4361
  const isAnchorTypographyProps = (props) => {
4356
4362
  return props.href != void 0;
@@ -4987,7 +4993,7 @@ const CardExpandable = ({ isInitiallyExpanded = false, isExpanded, onChange, id,
4987
4993
  CardExpandable.displayName = "CardExpandable";
4988
4994
  //#endregion
4989
4995
  //#region src/components/Card/CardExpandable/CardExpandableHeader.tsx
4990
- const CardExpandableHeader = ({ children, className, style, htmlProps, padding, typographyType = "headingLarge", bold, ...rest }) => {
4996
+ const CardExpandableHeader = ({ children, className, style, htmlProps, padding, typographyType = "heading-large", bold, ...rest }) => {
4991
4997
  const { isExpanded, headerProps } = useAccordionContext();
4992
4998
  const containerStyleVariables = { ["--dds-card-accordion-header-container-padding"]: padding ?? "var(--dds-spacing-x1) var(--dds-spacing-x0-75) var(--dds-spacing-x1) var(--dds-spacing-x1-5)" };
4993
4999
  const { id, ...restHeaderProps } = headerProps ?? {};
@@ -4998,7 +5004,7 @@ const CardExpandableHeader = ({ children, className, style, htmlProps, padding,
4998
5004
  type: "button",
4999
5005
  children: /* @__PURE__ */ jsx("div", {
5000
5006
  style: containerStyleVariables,
5001
- className: cn(CardExpandable_module_default["header-container"], typographyStyles_module_default[getTypographyCn(typographyType)], bold && typographyStyles_module_default.bold),
5007
+ className: cn(CardExpandable_module_default["header-container"], typographyStyles_module_default[typographyType], bold && typographyStyles_module_default.bold),
5002
5008
  children: /* @__PURE__ */ jsxs("div", {
5003
5009
  className: (AccordionBase_module_default.header__content, CardExpandable_module_default.header__content),
5004
5010
  children: [children, /* @__PURE__ */ jsx(Icon, {
@@ -5069,7 +5075,7 @@ const Label$1 = ({ disabled, hasText, controlType, className, ...rest }) => {
5069
5075
  const renderGroupLabel = ({ id, showRequiredStyling, readOnly, label }) => {
5070
5076
  if (!!label) return /* @__PURE__ */ jsxs(Typography, {
5071
5077
  as: "span",
5072
- typographyType: "labelMedium",
5078
+ typographyType: "label-medium",
5073
5079
  id,
5074
5080
  className: readOnly ? Label_module_default["read-only"] : void 0,
5075
5081
  withMargins: true,
@@ -5090,7 +5096,7 @@ const renderGroupLabel = ({ id, showRequiredStyling, readOnly, label }) => {
5090
5096
  //#region src/components/SelectionControl/SelectionControl.utils.tsx
5091
5097
  const selectionControlTypographyProps = {
5092
5098
  color: "inherit",
5093
- typographyType: "bodyShortMedium",
5099
+ typographyType: "body-short-medium",
5094
5100
  as: "span"
5095
5101
  };
5096
5102
  //#endregion
@@ -5181,7 +5187,7 @@ const InputMessage = ({ messageType, id, className, style, htmlProps, children,
5181
5187
  ...commonProps,
5182
5188
  children: /* @__PURE__ */ jsx(Typography, {
5183
5189
  ...tgCommonProps,
5184
- typographyType: "bodyShortXsmall",
5190
+ typographyType: "body-short-xsmall",
5185
5191
  color: "text-subtle"
5186
5192
  })
5187
5193
  });
@@ -5552,11 +5558,11 @@ function CookieBannerCheckbox({ headerText, description, id, className, style, h
5552
5558
  gap: "x0.5",
5553
5559
  children: [/* @__PURE__ */ jsx(Typography, {
5554
5560
  as: "span",
5555
- typographyType: "headingSmall",
5561
+ typographyType: "heading-small",
5556
5562
  children: headerText
5557
5563
  }), /* @__PURE__ */ jsx(Typography, {
5558
5564
  as: "span",
5559
- typographyType: "bodyLongSmall",
5565
+ typographyType: "body-long-small",
5560
5566
  children: description
5561
5567
  })]
5562
5568
  })
@@ -5574,7 +5580,7 @@ function CookieBanner({ headerText, description, buttons, checkboxes, id, classN
5574
5580
  const headingId = headerText && (id ?? `cookie-banner-${generatedId}-heading`);
5575
5581
  const heading = headerText ? /* @__PURE__ */ jsx(Heading, {
5576
5582
  level: 2,
5577
- typographyType: "headingMedium",
5583
+ typographyType: "heading-medium",
5578
5584
  id: headingId,
5579
5585
  children: headerText
5580
5586
  }) : "";
@@ -6072,7 +6078,7 @@ function Calendar(props) {
6072
6078
  }),
6073
6079
  /* @__PURE__ */ jsx(Heading, {
6074
6080
  level: 2,
6075
- typographyType: "headingXsmall",
6081
+ typographyType: "heading-xsmall",
6076
6082
  className: DateInput_module_default.calendar__header__month,
6077
6083
  children: title
6078
6084
  }),
@@ -6806,7 +6812,7 @@ const Drawer = ({ children, header, placement = "right", parentElement, size = "
6806
6812
  id: headerId,
6807
6813
  children: typeof header === "string" ? /* @__PURE__ */ jsx(Heading, {
6808
6814
  level: 2,
6809
- typographyType: "headingLarge",
6815
+ typographyType: "heading-large",
6810
6816
  children: header
6811
6817
  }) : header
6812
6818
  }), /* @__PURE__ */ jsx(Button, {
@@ -6899,7 +6905,7 @@ function EmptyContent({ headerText, children, headerHeadingLevel = 2, ...rest })
6899
6905
  className: typographyStyles_module_default["text-color--medium"],
6900
6906
  children: [headerText && /* @__PURE__ */ jsx(Heading, {
6901
6907
  level: headerHeadingLevel,
6902
- typographyType: "headingMedium",
6908
+ typographyType: "heading-medium",
6903
6909
  children: headerText
6904
6910
  }), /* @__PURE__ */ jsx(Typography, {
6905
6911
  as: "div",
@@ -6927,7 +6933,7 @@ var List_module_default = {
6927
6933
  const List = ({ listType = "unordered", typographyType = "inherit", children, id, className, style, htmlProps, ...rest }) => {
6928
6934
  return /* @__PURE__ */ jsx(listType === "ordered" ? "ol" : "ul", {
6929
6935
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
6930
- className: cn(List_module_default.list, List_module_default[`list--${listType}`], typographyType === "inherit" ? List_module_default["list--inherit"] : typographyStyles_module_default[getTypographyCn(typographyType)]),
6936
+ className: cn(List_module_default.list, List_module_default[`list--${listType}`], typographyType === "inherit" ? List_module_default["list--inherit"] : typographyStyles_module_default[typographyType]),
6931
6937
  children
6932
6938
  });
6933
6939
  };
@@ -6945,11 +6951,11 @@ const ErrorSummary = ({ heading: pHeading, className, style, children, id, htmlP
6945
6951
  const { t } = useTranslation();
6946
6952
  const heading = typeof pHeading === "string" ? /* @__PURE__ */ jsx(Heading, {
6947
6953
  level: 2,
6948
- typographyType: "headingSmall",
6954
+ typographyType: "heading-small",
6949
6955
  children: pHeading
6950
6956
  }) : pHeading ? pHeading : /* @__PURE__ */ jsx(Heading, {
6951
6957
  level: 2,
6952
- typographyType: "headingSmall",
6958
+ typographyType: "heading-small",
6953
6959
  children: t(texts$20.toProceedCorrectErrors)
6954
6960
  });
6955
6961
  return /* @__PURE__ */ jsxs(Paper, {
@@ -7055,7 +7061,7 @@ function CharCounter(props) {
7055
7061
  id: id ?? `${generatedId}-characterCounter`,
7056
7062
  className: CharCounter_module_default.container,
7057
7063
  as: "div",
7058
- typographyType: "bodyShortXsmall",
7064
+ typographyType: "body-short-xsmall",
7059
7065
  color: "text-subtle",
7060
7066
  children: [/* @__PURE__ */ jsxs("span", {
7061
7067
  "aria-hidden": true,
@@ -8071,7 +8077,7 @@ const Footer = ({ className, ...rest }) => /* @__PURE__ */ jsx(Contrast, {
8071
8077
  //#region src/components/Footer/FooterListHeader.tsx
8072
8078
  const FooterListHeader = (props) => /* @__PURE__ */ jsx(Heading, {
8073
8079
  level: 2,
8074
- typographyType: "headingSmall",
8080
+ typographyType: "heading-small",
8075
8081
  ...props
8076
8082
  });
8077
8083
  //#endregion
@@ -8624,7 +8630,7 @@ const InternalHeader = (props) => {
8624
8630
  ...getBaseHTMLProps(id, cn(className, InternalHeader_module_default.bar, !!navigation && InternalHeader_module_default["bar--with-nav"]), style, htmlProps, rest),
8625
8631
  children: [
8626
8632
  /* @__PURE__ */ jsx(Typography, {
8627
- typographyType: "headingSmall",
8633
+ typographyType: "heading-small",
8628
8634
  bold: true,
8629
8635
  as: "span",
8630
8636
  children: applicationHref ? /* @__PURE__ */ jsx("a", {
@@ -8635,7 +8641,7 @@ const InternalHeader = (props) => {
8635
8641
  }) : applicationName
8636
8642
  }),
8637
8643
  /* @__PURE__ */ jsx(Typography, {
8638
- typographyType: "bodyShortMedium",
8644
+ typographyType: "body-short-medium",
8639
8645
  as: "span",
8640
8646
  children: applicationDesc
8641
8647
  }),
@@ -8848,7 +8854,7 @@ const Modal = ({ isOpen = false, parentElement, children, header, onClose, id, t
8848
8854
  id: headerId,
8849
8855
  children: typeof header === "string" ? /* @__PURE__ */ jsx(Heading, {
8850
8856
  level: 2,
8851
- typographyType: "headingLarge",
8857
+ typographyType: "heading-large",
8852
8858
  children: header
8853
8859
  }) : header
8854
8860
  }), onClose && /* @__PURE__ */ jsx(Button, {
@@ -8986,7 +8992,7 @@ const NewsPopover = ({ id, className, style, htmlProps, header, news, defaultAct
8986
8992
  children: /* @__PURE__ */ jsx(Heading, {
8987
8993
  id: headerId,
8988
8994
  level: 2,
8989
- typographyType: "headingSmall",
8995
+ typographyType: "heading-small",
8990
8996
  children: header
8991
8997
  })
8992
8998
  }), /* @__PURE__ */ jsxs(VStack, {
@@ -9806,7 +9812,7 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
9806
9812
  componentSize: "small",
9807
9813
  "aria-label": t(texts$8.itemsPerPage)
9808
9814
  }), withCounter && /* @__PURE__ */ jsx(Paragraph, {
9809
- typographyType: "bodyShortMedium",
9815
+ typographyType: "body-short-medium",
9810
9816
  children: t(texts$8.showsAmountOfTotalItems(activePageFirstItem, activePageLastItem, itemsAmount))
9811
9817
  })]
9812
9818
  }), navigation]
@@ -11376,7 +11382,7 @@ const Popover = ({ id, header, withCloseButton = true, onBlur, children, placeme
11376
11382
  className: Popover_module_default.header,
11377
11383
  children: typeof header === "string" ? /* @__PURE__ */ jsx(Heading, {
11378
11384
  level: 2,
11379
- typographyType: "headingMedium",
11385
+ typographyType: "heading-medium",
11380
11386
  children: header
11381
11387
  }) : header
11382
11388
  }),
@@ -11542,7 +11548,7 @@ const ProgressTrackerItem = (props) => {
11542
11548
  children: stepNumberContent
11543
11549
  }), /* @__PURE__ */ jsx(Typography, {
11544
11550
  as: "div",
11545
- typographyType: "bodyShortMedium",
11551
+ typographyType: "body-short-medium",
11546
11552
  className: cn(ProgressTracker_module_default["item-text"], typographyStyles_module_default["a--nested__child"], isInactiveLink && ProgressTracker_module_default["item-text--inactive-link"]),
11547
11553
  color: getTextColor(),
11548
11554
  children
@@ -12027,7 +12033,7 @@ const SkipToContent = ({ text = "Til hovedinnhold", top = 0, id, className, html
12027
12033
  ...rest,
12028
12034
  ...htmlProps,
12029
12035
  id,
12030
- typographyType: "bodyShortMedium",
12036
+ typographyType: "body-short-medium",
12031
12037
  children: text
12032
12038
  })
12033
12039
  });
@@ -12823,7 +12829,7 @@ const ToggleBar = (props) => {
12823
12829
  children: [label && /* @__PURE__ */ jsx(Typography, {
12824
12830
  id: labelId,
12825
12831
  as: "span",
12826
- typographyType: "labelMedium",
12832
+ typographyType: "label-medium",
12827
12833
  children: label
12828
12834
  }), /* @__PURE__ */ jsx(Grid, {
12829
12835
  defaultPageLayout: false,
@@ -12955,6 +12961,6 @@ const ToggleButtonGroup = (props) => {
12955
12961
  };
12956
12962
  ToggleButtonGroup.displayName = "ToggleButtonGroup";
12957
12963
  //#endregion
12958
- export { Accordion, AccordionBody, AccordionContextProvider, AccordionHeader, AddTabButton, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, Backdrop, BarChartBoxedIcon, BarChartIcon, Bleed, BlockIcon, BookIcon, Box, Breadcrumb, Breadcrumbs, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, Calendar, CalendarIcon, CalendarMonthIcon, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, Caption, Card, CardExpandable, CardExpandableBody, CardExpandableHeader, CardSelectable, CardSelectableGroup, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, CollapsibleRow as CollapsibleTableRow, CommentIcon, Contrast, CookieBanner, CookieBannerCheckbox, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, DateRangeIcon, DdsProvider, DeathsIcon, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, DetailList, DetailListDesc, DetailListRow, DetailListTerm, Divider, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, DropdownHeader, DropdownItem, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, EmptyContent, ErrorIcon, ErrorSummary, ErrorSummaryItem, ExclaimIcon, ExpandIcon, FacebookIcon, FamilyIcon, FavStar, Feedback, FeedbackIcon, Fieldset, FieldsetGroup, FileAddIcon, FileIcon, FileShieldedIcon, FileSignedIcon, FileTextIcon, FileUploader, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, FooterList, FooterListGroup, FooterListHeader, FooterLogo, FooterSocialsGroup, FooterSocialsList, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, Grid, GridChild, GroupIcon, GuardianIcon, HStack, Heading, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, Icon, ImageIcon, InfoIcon, InlineButton, InlineEditInput, InlineEditSelect, InlineEditTextArea, InputMessage, InstagramIcon, InternalHeader, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, LagmannsrettIcon, LanguageIcon, Legend, LineChartIcon, Link, LinkIcon, LinkOffIcon, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, LocalMessage, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, ModalBody, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NewsPopover, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, OnlineMeetingIcon, OpenExternalIcon, OverflowMenu, OverflowMenuButton, OverflowMenuDivider, OverflowMenuGroup, OverflowMenuLink, OverflowMenuList, OverflowMenuListHeader, OverflowMenuSpan, OverflowMenuToggle, Pagination, PanelLeftIcon, Paper, PaperPlaneIcon, Paragraph, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, PinIcon, PlusCircledIcon, PlusIcon, Popover, PopoverGroup, PowerOfAttorneyIcon, PrintIcon, ProgressBar, ProgressTracker, ProgressTrackerItem, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, SearchIcon, SearchSuggestions, SectionIcon, Select, SettingsIcon, ShowHide, Skeleton, SkipToContent, SmsIcon, Spinner, SplitButton, StarFilledIcon, StarHalfFilledIcon, StarIcon, StickyNoteIcon, StylelessButton, StylelessList, StylelessOList, SunIcon, SupportIcon, SyncIcon, TG_HEADING_TYPES, Tab, TabList, TabPanel, TabPanels, Table, Body as TableBody, Cell as TableCell, Foot as TableFoot, Head as TableHead, Row as TableRow, SortCell as TableSortCell, TableWrapper, Tabs, Tag, TextArea, TextInput, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, TingrettIcon, TipIcon, Toggle, ToggleBar, ToggleButton, ToggleButtonGroup, ToggleRadio, Tooltip, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, VStack, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, WarningIcon, WebexIcon, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, getTypographyCn, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, icons_exports as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
12964
+ export { Accordion, AccordionBody, AccordionContextProvider, AccordionHeader, AddTabButton, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, Backdrop, BarChartBoxedIcon, BarChartIcon, Bleed, BlockIcon, BookIcon, Box, Breadcrumb, Breadcrumbs, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, Calendar, CalendarIcon, CalendarMonthIcon, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, Caption, Card, CardExpandable, CardExpandableBody, CardExpandableHeader, CardSelectable, CardSelectableGroup, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CollapsibleTable, CollapsibleRow as CollapsibleTableRow, CommentIcon, Contrast, CookieBanner, CookieBannerCheckbox, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, DateRangeIcon, DdsProvider, DeathsIcon, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, DetailList, DetailListDesc, DetailListRow, DetailListTerm, Divider, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, DropdownHeader, DropdownItem, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, EmptyContent, ErrorIcon, ErrorSummary, ErrorSummaryItem, ExclaimIcon, ExpandIcon, FacebookIcon, FamilyIcon, FavStar, Feedback, FeedbackIcon, Fieldset, FieldsetGroup, FileAddIcon, FileIcon, FileShieldedIcon, FileSignedIcon, FileTextIcon, FileUploader, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, FooterList, FooterListGroup, FooterListHeader, FooterLogo, FooterSocialsGroup, FooterSocialsList, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, Grid, GridChild, GroupIcon, GuardianIcon, HStack, Heading, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, Icon, ImageIcon, InfoIcon, InlineButton, InlineEditInput, InlineEditSelect, InlineEditTextArea, InputMessage, InstagramIcon, InternalHeader, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, LagmannsrettIcon, LanguageIcon, Legend, LineChartIcon, Link, LinkIcon, LinkOffIcon, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, LocalMessage, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, ModalBody, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NewsPopover, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, OnlineMeetingIcon, OpenExternalIcon, OverflowMenu, OverflowMenuButton, OverflowMenuDivider, OverflowMenuGroup, OverflowMenuLink, OverflowMenuList, OverflowMenuListHeader, OverflowMenuSpan, OverflowMenuToggle, Pagination, PanelLeftIcon, Paper, PaperPlaneIcon, Paragraph, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, PinIcon, PlusCircledIcon, PlusIcon, Popover, PopoverGroup, PowerOfAttorneyIcon, PrintIcon, ProgressBar, ProgressTracker, ProgressTrackerItem, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, SearchIcon, SearchSuggestions, SectionIcon, Select, SettingsIcon, ShowHide, Skeleton, SkipToContent, SmsIcon, Spinner, SplitButton, StarFilledIcon, StarHalfFilledIcon, StarIcon, StickyNoteIcon, StylelessButton, StylelessList, StylelessOList, SunIcon, SupportIcon, SyncIcon, TG_BODY_LONG_TYPES, TG_BODY_SHORT_TYPES, TG_BODY_TYPES, TG_HEADING_TYPES, TG_LEAD_TYPES, Tab, TabList, TabPanel, TabPanels, Table, Body as TableBody, Cell as TableCell, Foot as TableFoot, Head as TableHead, Row as TableRow, SortCell as TableSortCell, TableWrapper, Tabs, Tag, TextArea, TextInput, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, TingrettIcon, TipIcon, Toggle, ToggleBar, ToggleButton, ToggleButtonGroup, ToggleRadio, Tooltip, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, VStack, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, WarningIcon, WebexIcon, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, icons_exports as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
12959
12965
 
12960
12966
  //# sourceMappingURL=index.mjs.map