@norges-domstoler/dds-components 0.0.0-dev-20240614080910 → 0.0.0-dev-20240614081021

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
@@ -421,7 +421,8 @@ var Input_default = {
421
421
  "input--small": "Input_input--small",
422
422
  "input--tiny": "Input_input--tiny",
423
423
  "input--with-affix": "Input_input--with-affix",
424
- label: "Input_label"
424
+ label: "Input_label",
425
+ "char-counter": "Input_char-counter"
425
426
  };
426
427
 
427
428
  // src/components/Typography/Caption/Caption.tsx
@@ -2746,6 +2747,38 @@ var StatefulInput = forwardRef10(
2746
2747
  );
2747
2748
  StatefulInput.displayName = "StatefulInput";
2748
2749
 
2750
+ // src/components/helpers/Input/CharCounter.tsx
2751
+ import { useId } from "react";
2752
+ import { jsx as jsx174, jsxs as jsxs20 } from "react/jsx-runtime";
2753
+ function CharCounter(props) {
2754
+ const { current, max, id, className, htmlProps, ...rest } = props;
2755
+ const generatedId = useId();
2756
+ const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
2757
+ return /* @__PURE__ */ jsxs20(
2758
+ Typography,
2759
+ {
2760
+ ...getBaseHTMLProps(
2761
+ uniqueId,
2762
+ cn(className, Input_default["char-counter"]),
2763
+ htmlProps,
2764
+ rest
2765
+ ),
2766
+ as: "div",
2767
+ typographyType: "supportingStyleHelperText01",
2768
+ "aria-label": `${current} av ${max} tegn skrevet`,
2769
+ children: [
2770
+ current,
2771
+ "/",
2772
+ max
2773
+ ]
2774
+ }
2775
+ );
2776
+ }
2777
+ var renderCharCounter = (id, isShown, textLength, maxLength) => {
2778
+ if (!!maxLength && Number.isInteger(maxLength) && maxLength > 0 && isShown)
2779
+ return /* @__PURE__ */ jsx174(CharCounter, { id, max: maxLength, current: textLength });
2780
+ };
2781
+
2749
2782
  // src/components/helpers/Input/Input.utils.tsx
2750
2783
  function getDefaultText(value, defaultValue) {
2751
2784
  if (typeof value === "string") {
@@ -2773,11 +2806,11 @@ var Paper_default = {
2773
2806
  };
2774
2807
 
2775
2808
  // src/components/helpers/Paper/Paper.tsx
2776
- import { jsx as jsx174 } from "react/jsx-runtime";
2809
+ import { jsx as jsx175 } from "react/jsx-runtime";
2777
2810
  var Paper = forwardRef11((props, ref) => {
2778
2811
  const { elevation, border, className, ...rest } = props;
2779
2812
  const borderCn = border === "default" || border === "subtle" ? border : "on-inverse";
2780
- return /* @__PURE__ */ jsx174(
2813
+ return /* @__PURE__ */ jsx175(
2781
2814
  "div",
2782
2815
  {
2783
2816
  ref,
@@ -4198,10 +4231,10 @@ var BackLink_default = {
4198
4231
  };
4199
4232
 
4200
4233
  // src/components/BackLink/BackLink.tsx
4201
- import { jsx as jsx175, jsxs as jsxs20 } from "react/jsx-runtime";
4234
+ import { jsx as jsx176, jsxs as jsxs21 } from "react/jsx-runtime";
4202
4235
  var BackLink = forwardRef12((props, ref) => {
4203
- return /* @__PURE__ */ jsx175("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */ jsxs20(Link, { href: props.href, className: BackLink_default.link, children: [
4204
- /* @__PURE__ */ jsx175(Icon, { icon: ArrowLeftIcon, iconSize: "small" }),
4236
+ return /* @__PURE__ */ jsx176("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */ jsxs21(Link, { href: props.href, className: BackLink_default.link, children: [
4237
+ /* @__PURE__ */ jsx176(Icon, { icon: ArrowLeftIcon, iconSize: "small" }),
4205
4238
  props.label
4206
4239
  ] }) });
4207
4240
  });
@@ -4211,7 +4244,7 @@ BackLink.displayName = "BackLink";
4211
4244
  import {
4212
4245
  forwardRef as forwardRef13
4213
4246
  } from "react";
4214
- import { jsx as jsx176 } from "react/jsx-runtime";
4247
+ import { jsx as jsx177 } from "react/jsx-runtime";
4215
4248
  var isAnchorTypographyProps = (props) => {
4216
4249
  return props.href != void 0;
4217
4250
  };
@@ -4219,9 +4252,9 @@ var Breadcrumb = forwardRef13(
4219
4252
  (props, ref) => {
4220
4253
  const { children, ...rest } = props;
4221
4254
  if (isAnchorTypographyProps(props)) {
4222
- return /* @__PURE__ */ jsx176(Typography, { htmlProps: rest, ref, typographyType: "a", children });
4255
+ return /* @__PURE__ */ jsx177(Typography, { htmlProps: rest, ref, typographyType: "a", children });
4223
4256
  }
4224
- return /* @__PURE__ */ jsx176(Typography, { htmlProps: rest, ref, as: "span", children });
4257
+ return /* @__PURE__ */ jsx177(Typography, { htmlProps: rest, ref, as: "span", children });
4225
4258
  }
4226
4259
  );
4227
4260
  Breadcrumb.displayName = "Breadcrumb";
@@ -4313,7 +4346,7 @@ var buttonTokens = {
4313
4346
 
4314
4347
  // src/components/Spinner/Spinner.tsx
4315
4348
  import { ddsTokens as ddsTokens11 } from "@norges-domstoler/dds-design-tokens";
4316
- import { useId, useRef as useRef4 } from "react";
4349
+ import { useId as useId2, useRef as useRef4 } from "react";
4317
4350
 
4318
4351
  // src/components/Spinner/Spinner.module.css
4319
4352
  var Spinner_default = {
@@ -4324,7 +4357,7 @@ var Spinner_default = {
4324
4357
  };
4325
4358
 
4326
4359
  // src/components/Spinner/Spinner.tsx
4327
- import { jsx as jsx177, jsxs as jsxs21 } from "react/jsx-runtime";
4360
+ import { jsx as jsx178, jsxs as jsxs22 } from "react/jsx-runtime";
4328
4361
  function Spinner(props) {
4329
4362
  const {
4330
4363
  size: size2 = ddsTokens11.DdsIconSizeMedium,
@@ -4338,9 +4371,9 @@ function Spinner(props) {
4338
4371
  const mountTime = useRef4(Date.now());
4339
4372
  const outerAnimationDelay = -(mountTime.current % 2e3);
4340
4373
  const innerAnimationDelay = -(mountTime.current % 1500);
4341
- const generatedId = useId();
4374
+ const generatedId = useId2();
4342
4375
  const uniqueId = `${generatedId}-spinnerTitle`;
4343
- return /* @__PURE__ */ jsxs21(
4376
+ return /* @__PURE__ */ jsxs22(
4344
4377
  "svg",
4345
4378
  {
4346
4379
  viewBox: "0 0 50 50",
@@ -4354,8 +4387,8 @@ function Spinner(props) {
4354
4387
  animationDelay: outerAnimationDelay + "ms"
4355
4388
  },
4356
4389
  children: [
4357
- /* @__PURE__ */ jsx177("title", { id: uniqueId, children: tooltip }),
4358
- /* @__PURE__ */ jsx177(
4390
+ /* @__PURE__ */ jsx178("title", { id: uniqueId, children: tooltip }),
4391
+ /* @__PURE__ */ jsx178(
4359
4392
  "circle",
4360
4393
  {
4361
4394
  className: cn(Spinner_default.circle),
@@ -4377,7 +4410,7 @@ function Spinner(props) {
4377
4410
  Spinner.displayName = "Spinner";
4378
4411
 
4379
4412
  // src/components/Button/Button.tsx
4380
- import { Fragment, jsx as jsx178, jsxs as jsxs22 } from "react/jsx-runtime";
4413
+ import { Fragment, jsx as jsx179, jsxs as jsxs23 } from "react/jsx-runtime";
4381
4414
  var typographyTypes = {
4382
4415
  large: "bodySans04",
4383
4416
  medium: "bodySans02",
@@ -4426,7 +4459,7 @@ var Button = forwardRef14(
4426
4459
  typographyStyles_default[getTypographyCn(typographyTypes[size2])],
4427
4460
  focusable
4428
4461
  );
4429
- const iconElement = hasIcon && /* @__PURE__ */ jsx178(
4462
+ const iconElement = hasIcon && /* @__PURE__ */ jsx179(
4430
4463
  Icon,
4431
4464
  {
4432
4465
  icon: icon2,
@@ -4434,18 +4467,18 @@ var Button = forwardRef14(
4434
4467
  className: cn(Button_default.icon, loading && invisible)
4435
4468
  }
4436
4469
  );
4437
- const content = /* @__PURE__ */ jsxs22(Fragment, { children: [
4438
- hasLabel && /* @__PURE__ */ jsxs22(Fragment, { children: [
4470
+ const content = /* @__PURE__ */ jsxs23(Fragment, { children: [
4471
+ hasLabel && /* @__PURE__ */ jsxs23(Fragment, { children: [
4439
4472
  iconPosition === "left" && iconElement,
4440
- /* @__PURE__ */ jsx178("span", { "aria-hidden": loading, className: cn(loading && invisible), children }),
4473
+ /* @__PURE__ */ jsx179("span", { "aria-hidden": loading, className: cn(loading && invisible), children }),
4441
4474
  iconPosition === "right" && iconElement
4442
4475
  ] }),
4443
4476
  isIconButton && iconElement,
4444
- loading && /* @__PURE__ */ jsx178(
4477
+ loading && /* @__PURE__ */ jsx179(
4445
4478
  "span",
4446
4479
  {
4447
4480
  className: cn(!noContent && Button_default["spinner-wrapper--absolute"]),
4448
- children: /* @__PURE__ */ jsx178(
4481
+ children: /* @__PURE__ */ jsx179(
4449
4482
  Spinner,
4450
4483
  {
4451
4484
  size: button2[size2].spinner.size,
@@ -4458,7 +4491,7 @@ var Button = forwardRef14(
4458
4491
  )
4459
4492
  ] });
4460
4493
  if (!href)
4461
- return /* @__PURE__ */ jsx178(
4494
+ return /* @__PURE__ */ jsx179(
4462
4495
  "button",
4463
4496
  {
4464
4497
  ref,
@@ -4471,7 +4504,7 @@ var Button = forwardRef14(
4471
4504
  }
4472
4505
  );
4473
4506
  else if (href)
4474
- return /* @__PURE__ */ jsx178(
4507
+ return /* @__PURE__ */ jsx179(
4475
4508
  "a",
4476
4509
  {
4477
4510
  ref,
@@ -4500,7 +4533,7 @@ Button.displayName = "Button";
4500
4533
 
4501
4534
  // src/components/OverflowMenu/OverflowMenu.tsx
4502
4535
  import { ddsTokens as ddsTokens12 } from "@norges-domstoler/dds-design-tokens";
4503
- import { forwardRef as forwardRef17, useEffect as useEffect10, useId as useId2 } from "react";
4536
+ import { forwardRef as forwardRef17, useEffect as useEffect10, useId as useId3 } from "react";
4504
4537
 
4505
4538
  // src/components/OverflowMenu/OverflowMenu.module.css
4506
4539
  var OverflowMenu_default = {
@@ -4518,7 +4551,7 @@ import {
4518
4551
  useEffect as useEffect9,
4519
4552
  useRef as useRef5
4520
4553
  } from "react";
4521
- import { jsx as jsx179, jsxs as jsxs23 } from "react/jsx-runtime";
4554
+ import { jsx as jsx180, jsxs as jsxs24 } from "react/jsx-runtime";
4522
4555
  var isAnchorProps2 = (props) => props.href !== void 0;
4523
4556
  var isButtonProps = (props) => props.href === void 0 && props.onClick !== void 0;
4524
4557
  var OverflowMenuItem = forwardRef15((props, ref) => {
@@ -4543,7 +4576,7 @@ var OverflowMenuItem = forwardRef15((props, ref) => {
4543
4576
  role: "menuitem",
4544
4577
  tabIndex: focus ? 0 : -1
4545
4578
  };
4546
- const iconElement = icon2 && /* @__PURE__ */ jsx179(Icon, { iconSize: "inherit", icon: icon2 });
4579
+ const iconElement = icon2 && /* @__PURE__ */ jsx180(Icon, { iconSize: "inherit", icon: icon2 });
4547
4580
  const wrapperCn = [
4548
4581
  className,
4549
4582
  OverflowMenu_default.list__item,
@@ -4556,7 +4589,7 @@ var OverflowMenuItem = forwardRef15((props, ref) => {
4556
4589
  utilStyles_default["normalize-button"]
4557
4590
  ];
4558
4591
  if (!href && !onClick) {
4559
- return /* @__PURE__ */ jsxs23(
4592
+ return /* @__PURE__ */ jsxs24(
4560
4593
  "span",
4561
4594
  {
4562
4595
  ...{ ...getBaseHTMLProps(id, cn(...wrapperCn), htmlProps, rest), ref },
@@ -4568,7 +4601,7 @@ var OverflowMenuItem = forwardRef15((props, ref) => {
4568
4601
  );
4569
4602
  }
4570
4603
  if (!href) {
4571
- return /* @__PURE__ */ jsxs23(
4604
+ return /* @__PURE__ */ jsxs24(
4572
4605
  "button",
4573
4606
  {
4574
4607
  ...getBaseHTMLProps(id, cn(...interactiveWrapperCn), htmlProps, rest),
@@ -4581,7 +4614,7 @@ var OverflowMenuItem = forwardRef15((props, ref) => {
4581
4614
  }
4582
4615
  );
4583
4616
  }
4584
- return /* @__PURE__ */ jsxs23(
4617
+ return /* @__PURE__ */ jsxs24(
4585
4618
  "a",
4586
4619
  {
4587
4620
  ...getBaseHTMLProps(id, cn(...interactiveWrapperCn), htmlProps, rest),
@@ -4608,7 +4641,7 @@ var Divider_default = {
4608
4641
  };
4609
4642
 
4610
4643
  // src/components/Divider/Divider.tsx
4611
- import { jsx as jsx180 } from "react/jsx-runtime";
4644
+ import { jsx as jsx181 } from "react/jsx-runtime";
4612
4645
  var Divider = forwardRef16((props, ref) => {
4613
4646
  const { color = "default", id, className, htmlProps, ...rest } = props;
4614
4647
  const colorCn = color === "default" || color === "subtle" ? color : "on-inverse";
@@ -4621,12 +4654,12 @@ var Divider = forwardRef16((props, ref) => {
4621
4654
  ),
4622
4655
  color
4623
4656
  };
4624
- return /* @__PURE__ */ jsx180("hr", { ref, ...lineProps });
4657
+ return /* @__PURE__ */ jsx181("hr", { ref, ...lineProps });
4625
4658
  });
4626
4659
  Divider.displayName = "Divider";
4627
4660
 
4628
4661
  // src/components/OverflowMenu/OverflowMenu.tsx
4629
- import { Fragment as Fragment2, jsx as jsx181, jsxs as jsxs24 } from "react/jsx-runtime";
4662
+ import { Fragment as Fragment2, jsx as jsx182, jsxs as jsxs25 } from "react/jsx-runtime";
4630
4663
  var OverflowMenu = forwardRef17(
4631
4664
  (props, ref) => {
4632
4665
  var _a, _b;
@@ -4687,7 +4720,7 @@ var OverflowMenu = forwardRef17(
4687
4720
  hasContextItems && interactiveItems.push(...items);
4688
4721
  const hasInteractiveItems = interactiveItems.length > 0;
4689
4722
  const [focus] = useRoveFocus(interactiveItems == null ? void 0 : interactiveItems.length, isOpen);
4690
- const interactiveItemsList = hasInteractiveItems ? interactiveItems.map((item, index) => /* @__PURE__ */ jsx181("li", { children: /* @__PURE__ */ jsx181(
4723
+ const interactiveItemsList = hasInteractiveItems ? interactiveItems.map((item, index) => /* @__PURE__ */ jsx182("li", { children: /* @__PURE__ */ jsx182(
4691
4724
  OverflowMenuItem,
4692
4725
  {
4693
4726
  index,
@@ -4708,14 +4741,14 @@ var OverflowMenu = forwardRef17(
4708
4741
  const navItemsFirstPos = hasNavItems ? userPropsPos + 1 : -1;
4709
4742
  const navItemsLastPos = hasNavItems ? userPropsPos + navItems.length : -1;
4710
4743
  const contextItemsFirstPos = !hasContextItems ? -1 : hasNavItems ? navItemsLastPos + 1 : userPropsPos + 1;
4711
- return /* @__PURE__ */ jsxs24(Fragment2, { children: [
4712
- hasInteractiveUser && /* @__PURE__ */ jsx181("ul", { className: ulCn, children: interactiveItemsList == null ? void 0 : interactiveItemsList[0] }),
4713
- hasNavItems && /* @__PURE__ */ jsx181("nav", { children: /* @__PURE__ */ jsx181("ul", { className: ulCn, children: interactiveItemsList == null ? void 0 : interactiveItemsList.slice(
4744
+ return /* @__PURE__ */ jsxs25(Fragment2, { children: [
4745
+ hasInteractiveUser && /* @__PURE__ */ jsx182("ul", { className: ulCn, children: interactiveItemsList == null ? void 0 : interactiveItemsList[0] }),
4746
+ hasNavItems && /* @__PURE__ */ jsx182("nav", { children: /* @__PURE__ */ jsx182("ul", { className: ulCn, children: interactiveItemsList == null ? void 0 : interactiveItemsList.slice(
4714
4747
  navItemsFirstPos,
4715
4748
  navItemsLastPos + 1
4716
4749
  ) }) }),
4717
- hasNavItems && hasContextItems && /* @__PURE__ */ jsx181(Divider, { color: "subtle", className: OverflowMenu_default.divider }),
4718
- hasContextItems && /* @__PURE__ */ jsx181("ul", { className: ulCn, "aria-label": "kontekstmeny", children: interactiveItemsList == null ? void 0 : interactiveItemsList.slice(
4750
+ hasNavItems && hasContextItems && /* @__PURE__ */ jsx182(Divider, { color: "subtle", className: OverflowMenu_default.divider }),
4751
+ hasContextItems && /* @__PURE__ */ jsx182("ul", { className: ulCn, "aria-label": "kontekstmeny", children: interactiveItemsList == null ? void 0 : interactiveItemsList.slice(
4719
4752
  contextItemsFirstPos,
4720
4753
  interactiveItemsList.length
4721
4754
  ) })
@@ -4723,8 +4756,8 @@ var OverflowMenu = forwardRef17(
4723
4756
  }
4724
4757
  };
4725
4758
  const { style = {}, ...restHTMLProps } = htmlProps;
4726
- const generatedId = useId2();
4727
- return /* @__PURE__ */ jsxs24(
4759
+ const generatedId = useId3();
4760
+ return /* @__PURE__ */ jsxs25(
4728
4761
  Paper,
4729
4762
  {
4730
4763
  ref: combinedRef,
@@ -4745,7 +4778,7 @@ var OverflowMenu = forwardRef17(
4745
4778
  border: "default",
4746
4779
  style: { ...style, ...floatingStyles.floating },
4747
4780
  children: [
4748
- hasStaticUser && /* @__PURE__ */ jsx181(OverflowMenuItem, { title: username, icon: PersonIcon }),
4781
+ hasStaticUser && /* @__PURE__ */ jsx182(OverflowMenuItem, { title: username, icon: PersonIcon }),
4749
4782
  interactiveContent()
4750
4783
  ]
4751
4784
  }
@@ -4759,11 +4792,11 @@ import {
4759
4792
  Children as ReactChildren,
4760
4793
  cloneElement,
4761
4794
  isValidElement,
4762
- useId as useId3,
4795
+ useId as useId4,
4763
4796
  useRef as useRef6,
4764
4797
  useState as useState4
4765
4798
  } from "react";
4766
- import { Fragment as Fragment3, jsx as jsx182 } from "react/jsx-runtime";
4799
+ import { Fragment as Fragment3, jsx as jsx183 } from "react/jsx-runtime";
4767
4800
  var OverflowMenuGroup = ({
4768
4801
  children,
4769
4802
  onClose,
@@ -4775,7 +4808,7 @@ var OverflowMenuGroup = ({
4775
4808
  const toggle = () => setIsOpen(!isOpen);
4776
4809
  const close = () => setIsOpen(false);
4777
4810
  const buttonRef = useRef6(null);
4778
- const generatedId = useId3();
4811
+ const generatedId = useId4();
4779
4812
  const uniqueOverflowMenuId = overflowMenuId != null ? overflowMenuId : `${generatedId}-overflowMenu`;
4780
4813
  const handleClose = () => {
4781
4814
  onClose && onClose();
@@ -4802,16 +4835,16 @@ var OverflowMenuGroup = ({
4802
4835
  anchorRef: buttonRef
4803
4836
  }));
4804
4837
  });
4805
- return /* @__PURE__ */ jsx182(Fragment3, { children: Children8 });
4838
+ return /* @__PURE__ */ jsx183(Fragment3, { children: Children8 });
4806
4839
  };
4807
4840
  OverflowMenuGroup.displayName = "OverflowMenuGroup";
4808
4841
 
4809
4842
  // src/components/Breadcrumbs/Breadcrumbs.tsx
4810
- import { Fragment as Fragment4, jsx as jsx183, jsxs as jsxs25 } from "react/jsx-runtime";
4843
+ import { Fragment as Fragment4, jsx as jsx184, jsxs as jsxs26 } from "react/jsx-runtime";
4811
4844
  var Breadcrumbs = forwardRef18(
4812
4845
  (props, ref) => {
4813
4846
  const { children, smallScreen, id, className, htmlProps, ...rest } = props;
4814
- const chevronIcon = /* @__PURE__ */ jsx183(
4847
+ const chevronIcon = /* @__PURE__ */ jsx184(
4815
4848
  Icon,
4816
4849
  {
4817
4850
  className: cn(Breadcrumbs_default.icon),
@@ -4825,7 +4858,7 @@ var Breadcrumbs = forwardRef18(
4825
4858
  !smallScreen && Breadcrumbs_default[`list-item--large-screen`]
4826
4859
  );
4827
4860
  const breadcrumbChildren = childrenArray.map((item, index) => {
4828
- return /* @__PURE__ */ jsxs25("li", { className: listItemCn, children: [
4861
+ return /* @__PURE__ */ jsxs26("li", { className: listItemCn, children: [
4829
4862
  index !== 0 && chevronIcon,
4830
4863
  item
4831
4864
  ] }, `breadcrumb-${index}`);
@@ -4837,12 +4870,12 @@ var Breadcrumbs = forwardRef18(
4837
4870
  href: item.props.href
4838
4871
  };
4839
4872
  }).filter((item) => item) : [];
4840
- const breadcrumbChildrenSmallScreen = /* @__PURE__ */ jsxs25(Fragment4, { children: [
4841
- /* @__PURE__ */ jsx183("li", { className: listItemCn, children: childrenArray[0] }),
4842
- breadcrumbChildrenTruncated.length > 0 && /* @__PURE__ */ jsxs25("li", { className: listItemCn, children: [
4873
+ const breadcrumbChildrenSmallScreen = /* @__PURE__ */ jsxs26(Fragment4, { children: [
4874
+ /* @__PURE__ */ jsx184("li", { className: listItemCn, children: childrenArray[0] }),
4875
+ breadcrumbChildrenTruncated.length > 0 && /* @__PURE__ */ jsxs26("li", { className: listItemCn, children: [
4843
4876
  chevronIcon,
4844
- /* @__PURE__ */ jsxs25(OverflowMenuGroup, { children: [
4845
- /* @__PURE__ */ jsx183(
4877
+ /* @__PURE__ */ jsxs26(OverflowMenuGroup, { children: [
4878
+ /* @__PURE__ */ jsx184(
4846
4879
  Button,
4847
4880
  {
4848
4881
  size: "tiny",
@@ -4851,21 +4884,21 @@ var Breadcrumbs = forwardRef18(
4851
4884
  "aria-label": `Vis br\xF8dsmulesti br\xF8dsmule 2 ${breadcrumbChildrenTruncated.length > 1 && `til ${breadcrumbChildren.length - 1}`}`
4852
4885
  }
4853
4886
  ),
4854
- /* @__PURE__ */ jsx183(OverflowMenu, { items: breadcrumbChildrenTruncated })
4887
+ /* @__PURE__ */ jsx184(OverflowMenu, { items: breadcrumbChildrenTruncated })
4855
4888
  ] })
4856
4889
  ] }),
4857
- /* @__PURE__ */ jsxs25("li", { className: listItemCn, children: [
4890
+ /* @__PURE__ */ jsxs26("li", { className: listItemCn, children: [
4858
4891
  chevronIcon,
4859
4892
  childrenArray[childrenArray.length - 1]
4860
4893
  ] })
4861
4894
  ] });
4862
- return /* @__PURE__ */ jsx183(
4895
+ return /* @__PURE__ */ jsx184(
4863
4896
  "nav",
4864
4897
  {
4865
4898
  ...getBaseHTMLProps(id, className, htmlProps, rest),
4866
4899
  ref,
4867
4900
  "aria-label": "br\xF8dsmulesti",
4868
- children: /* @__PURE__ */ jsx183("ul", { className: cn(Breadcrumbs_default.list, utilStyles_default["remove-list-styling"]), children: smallScreen ? breadcrumbChildrenSmallScreen : breadcrumbChildren })
4901
+ children: /* @__PURE__ */ jsx184("ul", { className: cn(Breadcrumbs_default.list, utilStyles_default["remove-list-styling"]), children: smallScreen ? breadcrumbChildrenSmallScreen : breadcrumbChildren })
4869
4902
  }
4870
4903
  );
4871
4904
  }
@@ -4888,7 +4921,7 @@ var ButtonGroup_default = {
4888
4921
  };
4889
4922
 
4890
4923
  // src/components/ButtonGroup/ButtonGroup.tsx
4891
- import { jsx as jsx184 } from "react/jsx-runtime";
4924
+ import { jsx as jsx185 } from "react/jsx-runtime";
4892
4925
  var ButtonGroup = forwardRef19(
4893
4926
  (props, ref) => {
4894
4927
  const {
@@ -4907,7 +4940,7 @@ var ButtonGroup = forwardRef19(
4907
4940
  size: buttonSize
4908
4941
  });
4909
4942
  });
4910
- return /* @__PURE__ */ jsx184(
4943
+ return /* @__PURE__ */ jsx185(
4911
4944
  "div",
4912
4945
  {
4913
4946
  ref,
@@ -4935,7 +4968,7 @@ var Card_default = {
4935
4968
  };
4936
4969
 
4937
4970
  // src/components/Card/Card.tsx
4938
- import { jsx as jsx185 } from "react/jsx-runtime";
4971
+ import { jsx as jsx186 } from "react/jsx-runtime";
4939
4972
  var Card = (props) => {
4940
4973
  const {
4941
4974
  appearance = "filled",
@@ -4955,7 +4988,7 @@ var Card = (props) => {
4955
4988
  );
4956
4989
  if (cardType === "navigation") {
4957
4990
  const { href, target } = props;
4958
- return /* @__PURE__ */ jsx185(
4991
+ return /* @__PURE__ */ jsx186(
4959
4992
  "a",
4960
4993
  {
4961
4994
  ...getBaseHTMLProps(
@@ -4970,22 +5003,22 @@ var Card = (props) => {
4970
5003
  }
4971
5004
  );
4972
5005
  }
4973
- return /* @__PURE__ */ jsx185("div", { ...getBaseHTMLProps(id, classNames, htmlProps, rest), ref: cardRef });
5006
+ return /* @__PURE__ */ jsx186("div", { ...getBaseHTMLProps(id, classNames, htmlProps, rest), ref: cardRef });
4974
5007
  };
4975
5008
  Card.displayName = "Card";
4976
5009
 
4977
5010
  // src/components/Card/CardAccordion/CardAccordion.tsx
4978
- import { forwardRef as forwardRef20, useCallback as useCallback4, useEffect as useEffect11, useId as useId4, useState as useState5 } from "react";
5011
+ import { forwardRef as forwardRef20, useCallback as useCallback4, useEffect as useEffect11, useId as useId5, useState as useState5 } from "react";
4979
5012
 
4980
5013
  // src/components/Card/CardAccordion/CardAccordionContext.tsx
4981
5014
  import { createContext, useContext } from "react";
4982
- import { jsx as jsx186 } from "react/jsx-runtime";
5015
+ import { jsx as jsx187 } from "react/jsx-runtime";
4983
5016
  var CardAccordionContext = createContext({});
4984
5017
  var CardAccordionContextProvider = ({
4985
5018
  children,
4986
5019
  ...values
4987
5020
  }) => {
4988
- return /* @__PURE__ */ jsx186(CardAccordionContext.Provider, { value: values, children });
5021
+ return /* @__PURE__ */ jsx187(CardAccordionContext.Provider, { value: values, children });
4989
5022
  };
4990
5023
  var useCardAccordionContext = () => {
4991
5024
  const context = useContext(CardAccordionContext);
@@ -4998,7 +5031,7 @@ var useCardAccordionContext = () => {
4998
5031
  };
4999
5032
 
5000
5033
  // src/components/Card/CardAccordion/CardAccordion.tsx
5001
- import { jsx as jsx187 } from "react/jsx-runtime";
5034
+ import { jsx as jsx188 } from "react/jsx-runtime";
5002
5035
  var CardAccordion = forwardRef20(
5003
5036
  (props, ref) => {
5004
5037
  const {
@@ -5011,7 +5044,7 @@ var CardAccordion = forwardRef20(
5011
5044
  ...rest
5012
5045
  } = props;
5013
5046
  const [expanded, setExpanded] = useState5(isExpanded);
5014
- const generatedId = useId4();
5047
+ const generatedId = useId5();
5015
5048
  const accordionId = id != null ? id : `${generatedId}-cardAccordion`;
5016
5049
  useEffect11(() => {
5017
5050
  setExpanded(isExpanded);
@@ -5025,7 +5058,7 @@ var CardAccordion = forwardRef20(
5025
5058
  return newExpanded;
5026
5059
  });
5027
5060
  }, [onChange]);
5028
- return /* @__PURE__ */ jsx187("div", { ...getBaseHTMLProps(id, className, htmlProps, rest), ref, children: /* @__PURE__ */ jsx187(
5061
+ return /* @__PURE__ */ jsx188("div", { ...getBaseHTMLProps(id, className, htmlProps, rest), ref, children: /* @__PURE__ */ jsx188(
5029
5062
  CardAccordionContextProvider,
5030
5063
  {
5031
5064
  headerId: `${accordionId}-header`,
@@ -5056,7 +5089,7 @@ var CardAccordion_default = {
5056
5089
  };
5057
5090
 
5058
5091
  // src/components/Card/CardAccordion/CardAccordionHeader.tsx
5059
- import { jsx as jsx188, jsxs as jsxs26 } from "react/jsx-runtime";
5092
+ import { jsx as jsx189, jsxs as jsxs27 } from "react/jsx-runtime";
5060
5093
  var CardAccordionHeader = forwardRef21((props, ref) => {
5061
5094
  const {
5062
5095
  children,
@@ -5077,7 +5110,7 @@ var CardAccordionHeader = forwardRef21((props, ref) => {
5077
5110
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5078
5111
  ["--dds-card-accordion-header-container-padding"]: padding != null ? padding : "var(--dds-spacing-x1) var(--dds-spacing-x0-75) var(--dds-spacing-x1) var(--dds-spacing-x1-5)"
5079
5112
  };
5080
- return /* @__PURE__ */ jsx188(
5113
+ return /* @__PURE__ */ jsx189(
5081
5114
  "button",
5082
5115
  {
5083
5116
  ...getBaseHTMLProps(
@@ -5097,7 +5130,7 @@ var CardAccordionHeader = forwardRef21((props, ref) => {
5097
5130
  "aria-controls": bodyId,
5098
5131
  "aria-expanded": isExpanded,
5099
5132
  type: "button",
5100
- children: /* @__PURE__ */ jsxs26(
5133
+ children: /* @__PURE__ */ jsxs27(
5101
5134
  "div",
5102
5135
  {
5103
5136
  style: containerStyleVariables,
@@ -5107,8 +5140,8 @@ var CardAccordionHeader = forwardRef21((props, ref) => {
5107
5140
  bold && typographyStyles_default.bold
5108
5141
  ),
5109
5142
  children: [
5110
- /* @__PURE__ */ jsx188("div", { className: CardAccordion_default.header__content, children }),
5111
- /* @__PURE__ */ jsx188("span", { className: CardAccordion_default.header__chevron, children: /* @__PURE__ */ jsx188(
5143
+ /* @__PURE__ */ jsx189("div", { className: CardAccordion_default.header__content, children }),
5144
+ /* @__PURE__ */ jsx189("span", { className: CardAccordion_default.header__chevron, children: /* @__PURE__ */ jsx189(
5112
5145
  AnimatedChevronUpDown,
5113
5146
  {
5114
5147
  width: ddsTokens13.DdsIconSizeMedium,
@@ -5149,7 +5182,7 @@ function useElementHeight(element) {
5149
5182
  }
5150
5183
 
5151
5184
  // src/components/Card/CardAccordion/CardAccordionBody.tsx
5152
- import { jsx as jsx189 } from "react/jsx-runtime";
5185
+ import { jsx as jsx190 } from "react/jsx-runtime";
5153
5186
  var CardAccordionBody = forwardRef22((props, ref) => {
5154
5187
  var _a;
5155
5188
  const { children, className, htmlProps, padding, ...rest } = props;
@@ -5177,7 +5210,7 @@ var CardAccordionBody = forwardRef22((props, ref) => {
5177
5210
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5178
5211
  ["--dds-card-accordion-body-content-padding"]: padding != null ? padding : "var(--dds-spacing-x1) calc(var(--dds-spacing-x2) + var(--dds-spacing-x0-75)) var(--dds-spacing-x2) var(--dds-spacing-x1-5)"
5179
5212
  };
5180
- return /* @__PURE__ */ jsx189(
5213
+ return /* @__PURE__ */ jsx190(
5181
5214
  "div",
5182
5215
  {
5183
5216
  ...getBaseHTMLProps(
@@ -5197,7 +5230,7 @@ var CardAccordionBody = forwardRef22((props, ref) => {
5197
5230
  "aria-labelledby": headerId,
5198
5231
  "aria-hidden": !isExpanded,
5199
5232
  style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables },
5200
- children: /* @__PURE__ */ jsx189(
5233
+ children: /* @__PURE__ */ jsx190(
5201
5234
  "div",
5202
5235
  {
5203
5236
  ref: bodyRef,
@@ -5221,7 +5254,7 @@ var Chip_default = {
5221
5254
  };
5222
5255
 
5223
5256
  // src/components/Chip/Chip.tsx
5224
- import { jsx as jsx190, jsxs as jsxs27 } from "react/jsx-runtime";
5257
+ import { jsx as jsx191, jsxs as jsxs28 } from "react/jsx-runtime";
5225
5258
  var Chip = forwardRef23((props, ref) => {
5226
5259
  const { text, onClose, id, className, htmlProps = {}, ...rest } = props;
5227
5260
  const { "aria-label": ariaLabel, ...restHTMLprops } = htmlProps;
@@ -5230,7 +5263,7 @@ var Chip = forwardRef23((props, ref) => {
5230
5263
  setIsOpen(false);
5231
5264
  onClose && onClose();
5232
5265
  };
5233
- return isOpen ? /* @__PURE__ */ jsxs27(
5266
+ return isOpen ? /* @__PURE__ */ jsxs28(
5234
5267
  "div",
5235
5268
  {
5236
5269
  ...getBaseHTMLProps(
@@ -5241,14 +5274,14 @@ var Chip = forwardRef23((props, ref) => {
5241
5274
  ),
5242
5275
  ref,
5243
5276
  children: [
5244
- /* @__PURE__ */ jsx190(
5277
+ /* @__PURE__ */ jsx191(
5245
5278
  TextOverflowEllipsisInner,
5246
5279
  {
5247
5280
  className: cn(typographyStyles_default["body-sans-01"]),
5248
5281
  children: text
5249
5282
  }
5250
5283
  ),
5251
- /* @__PURE__ */ jsx190(
5284
+ /* @__PURE__ */ jsx191(
5252
5285
  Button,
5253
5286
  {
5254
5287
  size: "tiny",
@@ -5266,11 +5299,11 @@ Chip.displayName = "Chip";
5266
5299
 
5267
5300
  // src/components/Chip/ChipGroup.tsx
5268
5301
  import { Children as Children2, forwardRef as forwardRef24 } from "react";
5269
- import { jsx as jsx191 } from "react/jsx-runtime";
5302
+ import { jsx as jsx192 } from "react/jsx-runtime";
5270
5303
  var ChipGroup = forwardRef24(
5271
5304
  ({ children, className, ...rest }, ref) => {
5272
5305
  const childrenArray = Children2.toArray(children);
5273
- return /* @__PURE__ */ jsx191(
5306
+ return /* @__PURE__ */ jsx192(
5274
5307
  "ul",
5275
5308
  {
5276
5309
  ...rest,
@@ -5280,7 +5313,7 @@ var ChipGroup = forwardRef24(
5280
5313
  utilStyles_default["remove-list-styling"]
5281
5314
  ),
5282
5315
  ref,
5283
- children: childrenArray.map((item, index) => /* @__PURE__ */ jsx191("li", { children: item }, `chip-${index}`))
5316
+ children: childrenArray.map((item, index) => /* @__PURE__ */ jsx192("li", { children: item }, `chip-${index}`))
5284
5317
  }
5285
5318
  );
5286
5319
  }
@@ -5348,7 +5381,7 @@ import {
5348
5381
  useEffect as useEffect14,
5349
5382
  useRef as useRef8
5350
5383
  } from "react";
5351
- import { jsx as jsx192 } from "react/jsx-runtime";
5384
+ import { jsx as jsx193 } from "react/jsx-runtime";
5352
5385
  var CalendarPopoverContext = createContext2({
5353
5386
  anchorRef: null,
5354
5387
  isOpen: false,
@@ -5361,13 +5394,13 @@ var CalendarPopover = ({
5361
5394
  }) => {
5362
5395
  const anchorRef = useRef8(null);
5363
5396
  useOnKeyDown("Escape", onClose);
5364
- return /* @__PURE__ */ jsx192(CalendarPopoverContext.Provider, { value: { anchorRef, isOpen, onClose }, children });
5397
+ return /* @__PURE__ */ jsx193(CalendarPopoverContext.Provider, { value: { anchorRef, isOpen, onClose }, children });
5365
5398
  };
5366
5399
  var CalendarPopoverAnchor = ({
5367
5400
  children
5368
5401
  }) => {
5369
5402
  const { anchorRef } = useContext2(CalendarPopoverContext);
5370
- return /* @__PURE__ */ jsx192("div", { ref: anchorRef != null ? anchorRef : void 0, children });
5403
+ return /* @__PURE__ */ jsx193("div", { ref: anchorRef != null ? anchorRef : void 0, children });
5371
5404
  };
5372
5405
  var CalendarPopoverContent = ({
5373
5406
  children
@@ -5384,7 +5417,7 @@ var CalendarPopoverContent = ({
5384
5417
  refs.setReference((_a = anchorRef == null ? void 0 : anchorRef.current) != null ? _a : null);
5385
5418
  }, []);
5386
5419
  if (!isOpen) return null;
5387
- return /* @__PURE__ */ jsx192(
5420
+ return /* @__PURE__ */ jsx193(
5388
5421
  "div",
5389
5422
  {
5390
5423
  ref: combinedRef,
@@ -5400,7 +5433,7 @@ var locale = "no-NO";
5400
5433
  var timezone = "Europe/Oslo";
5401
5434
 
5402
5435
  // src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
5403
- import { jsx as jsx193 } from "react/jsx-runtime";
5436
+ import { jsx as jsx194 } from "react/jsx-runtime";
5404
5437
  function CalendarCell({ date, state }) {
5405
5438
  const ref = useRef9(null);
5406
5439
  const {
@@ -5413,7 +5446,7 @@ function CalendarCell({ date, state }) {
5413
5446
  isUnavailable
5414
5447
  } = useCalendarCell({ date }, state, ref);
5415
5448
  if (isDisabled) {
5416
- return /* @__PURE__ */ jsx193("td", { ...cellProps });
5449
+ return /* @__PURE__ */ jsx194("td", { ...cellProps });
5417
5450
  }
5418
5451
  const { onClose } = useContext3(CalendarPopoverContext);
5419
5452
  const variant = isSelected ? "selected" : isUnavailable || isDisabled ? "unavailable" : "default";
@@ -5422,7 +5455,7 @@ function CalendarCell({ date, state }) {
5422
5455
  onClose();
5423
5456
  }
5424
5457
  };
5425
- return /* @__PURE__ */ jsx193("td", { ...cellProps, children: /* @__PURE__ */ jsx193(
5458
+ return /* @__PURE__ */ jsx194("td", { ...cellProps, children: /* @__PURE__ */ jsx194(
5426
5459
  "button",
5427
5460
  {
5428
5461
  ...buttonProps,
@@ -5483,7 +5516,7 @@ function isLeapYear(date) {
5483
5516
  }
5484
5517
 
5485
5518
  // src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
5486
- import { jsx as jsx194, jsxs as jsxs28 } from "react/jsx-runtime";
5519
+ import { jsx as jsx195, jsxs as jsxs29 } from "react/jsx-runtime";
5487
5520
  function CalendarGrid({ state, ...props }) {
5488
5521
  const { locale: locale2 } = useLocale();
5489
5522
  const {
@@ -5496,7 +5529,7 @@ function CalendarGrid({ state, ...props }) {
5496
5529
  typographyStyles_default["supporting-style-tiny-02"],
5497
5530
  typographyStyles_default["text-color--subtle"]
5498
5531
  ];
5499
- return /* @__PURE__ */ jsxs28(
5532
+ return /* @__PURE__ */ jsxs29(
5500
5533
  "table",
5501
5534
  {
5502
5535
  ...gridProps,
@@ -5508,16 +5541,16 @@ function CalendarGrid({ state, ...props }) {
5508
5541
  },
5509
5542
  cellPadding: "0",
5510
5543
  children: [
5511
- /* @__PURE__ */ jsx194("thead", { ...headerProps, children: /* @__PURE__ */ jsxs28("tr", { children: [
5512
- /* @__PURE__ */ jsx194("th", { className: cn(...typographyCn), children: "#" }),
5513
- weekDays.map((day, index) => /* @__PURE__ */ jsx194("th", { className: cn(...typographyCn), children: day }, index))
5544
+ /* @__PURE__ */ jsx195("thead", { ...headerProps, children: /* @__PURE__ */ jsxs29("tr", { children: [
5545
+ /* @__PURE__ */ jsx195("th", { className: cn(...typographyCn), children: "#" }),
5546
+ weekDays.map((day, index) => /* @__PURE__ */ jsx195("th", { className: cn(...typographyCn), children: day }, index))
5514
5547
  ] }) }),
5515
- /* @__PURE__ */ jsx194("tbody", { children: [...new Array(weeksInMonth).keys()].map((weekIndex) => {
5548
+ /* @__PURE__ */ jsx195("tbody", { children: [...new Array(weeksInMonth).keys()].map((weekIndex) => {
5516
5549
  const datesInWeek = state.getDatesInWeek(weekIndex);
5517
5550
  const firstExistingDay = datesInWeek.find(Boolean);
5518
5551
  const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
5519
- return /* @__PURE__ */ jsxs28("tr", { children: [
5520
- /* @__PURE__ */ jsx194(
5552
+ return /* @__PURE__ */ jsxs29("tr", { children: [
5553
+ /* @__PURE__ */ jsx195(
5521
5554
  "td",
5522
5555
  {
5523
5556
  className: cn(DateInput_default["calendar__week-number"], ...typographyCn),
@@ -5525,7 +5558,7 @@ function CalendarGrid({ state, ...props }) {
5525
5558
  }
5526
5559
  ),
5527
5560
  datesInWeek.map(
5528
- (date, i2) => date ? /* @__PURE__ */ jsx194(CalendarCell, { state, date }, i2) : /* @__PURE__ */ jsx194("td", {}, i2)
5561
+ (date, i2) => date ? /* @__PURE__ */ jsx195(CalendarCell, { state, date }, i2) : /* @__PURE__ */ jsx195("td", {}, i2)
5529
5562
  )
5530
5563
  ] }, weekIndex);
5531
5564
  }) })
@@ -5536,7 +5569,7 @@ function CalendarGrid({ state, ...props }) {
5536
5569
  CalendarGrid.displayName = "CalendarGrid";
5537
5570
 
5538
5571
  // src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
5539
- import { jsx as jsx195, jsxs as jsxs29 } from "react/jsx-runtime";
5572
+ import { jsx as jsx196, jsxs as jsxs30 } from "react/jsx-runtime";
5540
5573
  function createCalendar(identifier2) {
5541
5574
  switch (identifier2) {
5542
5575
  case "gregory":
@@ -5564,9 +5597,9 @@ function Calendar(props) {
5564
5597
  onClose();
5565
5598
  }
5566
5599
  };
5567
- return /* @__PURE__ */ jsxs29("div", { ...calendarProps, className: DateInput_default.calendar, children: [
5568
- /* @__PURE__ */ jsxs29("div", { className: DateInput_default.calendar__header, children: [
5569
- /* @__PURE__ */ jsx195(
5600
+ return /* @__PURE__ */ jsxs30("div", { ...calendarProps, className: DateInput_default.calendar, children: [
5601
+ /* @__PURE__ */ jsxs30("div", { className: DateInput_default.calendar__header, children: [
5602
+ /* @__PURE__ */ jsx196(
5570
5603
  Button,
5571
5604
  {
5572
5605
  type: "button",
@@ -5579,7 +5612,7 @@ function Calendar(props) {
5579
5612
  className: DateInput_default["calendar__month-button"]
5580
5613
  }
5581
5614
  ),
5582
- /* @__PURE__ */ jsx195(
5615
+ /* @__PURE__ */ jsx196(
5583
5616
  Heading,
5584
5617
  {
5585
5618
  level: 2,
@@ -5588,7 +5621,7 @@ function Calendar(props) {
5588
5621
  children: title
5589
5622
  }
5590
5623
  ),
5591
- /* @__PURE__ */ jsx195(
5624
+ /* @__PURE__ */ jsx196(
5592
5625
  Button,
5593
5626
  {
5594
5627
  type: "button",
@@ -5601,7 +5634,7 @@ function Calendar(props) {
5601
5634
  }
5602
5635
  )
5603
5636
  ] }),
5604
- /* @__PURE__ */ jsx195(CalendarGrid, { state })
5637
+ /* @__PURE__ */ jsx196(CalendarGrid, { state })
5605
5638
  ] });
5606
5639
  }
5607
5640
  Calendar.displayName = "Calendar";
@@ -5629,7 +5662,7 @@ import {
5629
5662
  // src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
5630
5663
  import { useButton } from "@react-aria/button";
5631
5664
  import { useRef as useRef10 } from "react";
5632
- import { jsx as jsx196 } from "react/jsx-runtime";
5665
+ import { jsx as jsx197 } from "react/jsx-runtime";
5633
5666
  function CalendarButton({
5634
5667
  componentSize,
5635
5668
  ...props
@@ -5637,7 +5670,7 @@ function CalendarButton({
5637
5670
  const ref = useRef10(null);
5638
5671
  const { buttonProps } = useButton(props, ref);
5639
5672
  const size2 = componentSize === "tiny" ? "small" : "medium";
5640
- return /* @__PURE__ */ jsx196(
5673
+ return /* @__PURE__ */ jsx197(
5641
5674
  "button",
5642
5675
  {
5643
5676
  ...buttonProps,
@@ -5657,7 +5690,7 @@ function CalendarButton({
5657
5690
  !props.isDisabled && focusable,
5658
5691
  props.isDisabled && "disabled"
5659
5692
  ),
5660
- children: /* @__PURE__ */ jsx196(Icon, { icon: CalendarIcon, iconSize: size2 })
5693
+ children: /* @__PURE__ */ jsx197(Icon, { icon: CalendarIcon, iconSize: size2 })
5661
5694
  }
5662
5695
  );
5663
5696
  }
@@ -5665,7 +5698,7 @@ function CalendarButton({
5665
5698
  // src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
5666
5699
  import { useDateSegment } from "@react-aria/datepicker";
5667
5700
  import { useRef as useRef11 } from "react";
5668
- import { jsx as jsx197, jsxs as jsxs30 } from "react/jsx-runtime";
5701
+ import { jsx as jsx198, jsxs as jsxs31 } from "react/jsx-runtime";
5669
5702
  var typographyTypes2 = {
5670
5703
  medium: "bodySans02",
5671
5704
  small: "bodySans01",
@@ -5684,7 +5717,7 @@ function DateSegment({
5684
5717
  var _a;
5685
5718
  const ref = useRef11(null);
5686
5719
  const { segmentProps } = useDateSegment(segment, state, ref);
5687
- return /* @__PURE__ */ jsxs30(
5720
+ return /* @__PURE__ */ jsxs31(
5688
5721
  "div",
5689
5722
  {
5690
5723
  ...segmentProps,
@@ -5699,7 +5732,7 @@ function DateSegment({
5699
5732
  minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : void 0
5700
5733
  },
5701
5734
  children: [
5702
- /* @__PURE__ */ jsx197(
5735
+ /* @__PURE__ */ jsx198(
5703
5736
  "span",
5704
5737
  {
5705
5738
  "aria-hidden": "true",
@@ -5736,12 +5769,12 @@ var InputMessage_default = {
5736
5769
  };
5737
5770
 
5738
5771
  // src/components/InputMessage/InputMessage.tsx
5739
- import { Fragment as Fragment5, jsx as jsx198, jsxs as jsxs31 } from "react/jsx-runtime";
5772
+ import { Fragment as Fragment5, jsx as jsx199, jsxs as jsxs32 } from "react/jsx-runtime";
5740
5773
  var InputMessage = forwardRef25(
5741
5774
  (props, ref) => {
5742
5775
  const { message, messageType, id, className, htmlProps, ...rest } = props;
5743
5776
  const isError = messageType === "error";
5744
- return /* @__PURE__ */ jsxs31(
5777
+ return /* @__PURE__ */ jsxs32(
5745
5778
  "div",
5746
5779
  {
5747
5780
  ...getBaseHTMLProps(
@@ -5752,8 +5785,8 @@ var InputMessage = forwardRef25(
5752
5785
  ),
5753
5786
  ref,
5754
5787
  children: [
5755
- isError && /* @__PURE__ */ jsx198(Icon, { icon: ErrorIcon, iconSize: "small", className: InputMessage_default.icon }),
5756
- /* @__PURE__ */ jsx198(
5788
+ isError && /* @__PURE__ */ jsx199(Icon, { icon: ErrorIcon, iconSize: "small", className: InputMessage_default.icon }),
5789
+ /* @__PURE__ */ jsx199(
5757
5790
  Typography,
5758
5791
  {
5759
5792
  typographyType: isError ? "bodySans01" : "supportingStyleHelperText01",
@@ -5767,8 +5800,8 @@ var InputMessage = forwardRef25(
5767
5800
  }
5768
5801
  );
5769
5802
  InputMessage.displayName = "InputMessage";
5770
- var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ jsxs31(Fragment5, { children: [
5771
- errorMessage && errorMessageId && /* @__PURE__ */ jsx198(
5803
+ var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ jsxs32(Fragment5, { children: [
5804
+ errorMessage && errorMessageId && /* @__PURE__ */ jsx199(
5772
5805
  InputMessage,
5773
5806
  {
5774
5807
  message: errorMessage,
@@ -5776,11 +5809,11 @@ var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PUR
5776
5809
  id: errorMessageId
5777
5810
  }
5778
5811
  ),
5779
- tip && tipId && !errorMessage && /* @__PURE__ */ jsx198(InputMessage, { message: tip, messageType: "tip", id: tipId })
5812
+ tip && tipId && !errorMessage && /* @__PURE__ */ jsx199(InputMessage, { message: tip, messageType: "tip", id: tipId })
5780
5813
  ] });
5781
5814
 
5782
5815
  // src/components/date-inputs/common/DateInput.tsx
5783
- import { jsx as jsx199, jsxs as jsxs32 } from "react/jsx-runtime";
5816
+ import { jsx as jsx200, jsxs as jsxs33 } from "react/jsx-runtime";
5784
5817
  function _DateInput({
5785
5818
  errorMessage,
5786
5819
  tip,
@@ -5810,14 +5843,14 @@ function _DateInput({
5810
5843
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5811
5844
  ["--dds-date-input-width"]: width ? width : componentSize === "small" ? "148px" : componentSize === "tiny" ? "125px" : "160px"
5812
5845
  };
5813
- return /* @__PURE__ */ jsxs32(
5846
+ return /* @__PURE__ */ jsxs33(
5814
5847
  "div",
5815
5848
  {
5816
5849
  ...groupProps,
5817
5850
  className: cn(className, Input_default.container),
5818
5851
  ref: forwardedRef,
5819
5852
  children: [
5820
- hasLabel && /* @__PURE__ */ jsx199(
5853
+ hasLabel && /* @__PURE__ */ jsx200(
5821
5854
  Label,
5822
5855
  {
5823
5856
  ...labelProps,
@@ -5826,7 +5859,7 @@ function _DateInput({
5826
5859
  children: props.label
5827
5860
  }
5828
5861
  ),
5829
- /* @__PURE__ */ jsxs32(
5862
+ /* @__PURE__ */ jsxs33(
5830
5863
  "div",
5831
5864
  {
5832
5865
  ...fieldProps,
@@ -5849,11 +5882,11 @@ function _DateInput({
5849
5882
  ),
5850
5883
  children: [
5851
5884
  button3,
5852
- /* @__PURE__ */ jsx199("div", { className: DateInput_default["date-segment-container"], children })
5885
+ /* @__PURE__ */ jsx200("div", { className: DateInput_default["date-segment-container"], children })
5853
5886
  ]
5854
5887
  }
5855
5888
  ),
5856
- hasMessage && /* @__PURE__ */ jsx199(
5889
+ hasMessage && /* @__PURE__ */ jsx200(
5857
5890
  InputMessage,
5858
5891
  {
5859
5892
  messageType: hasErrorMessage ? "error" : "tip",
@@ -5868,7 +5901,7 @@ var DateInput = forwardRef26(_DateInput);
5868
5901
  DateInput.displayName = "DateInput";
5869
5902
 
5870
5903
  // src/components/date-inputs/DatePicker/DateField/DateField.tsx
5871
- import { jsx as jsx200 } from "react/jsx-runtime";
5904
+ import { jsx as jsx201 } from "react/jsx-runtime";
5872
5905
  function _DateField({
5873
5906
  componentSize = "medium",
5874
5907
  buttonProps,
@@ -5884,7 +5917,7 @@ function _DateField({
5884
5917
  const ref = useRef12(null);
5885
5918
  const { labelProps, fieldProps } = useDateField(props, state, ref);
5886
5919
  const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
5887
- return /* @__PURE__ */ jsx200(
5920
+ return /* @__PURE__ */ jsx201(
5888
5921
  DateInput,
5889
5922
  {
5890
5923
  ...props,
@@ -5896,7 +5929,7 @@ function _DateField({
5896
5929
  ref: forwardedRef,
5897
5930
  internalRef: ref,
5898
5931
  readOnly: props.isReadOnly,
5899
- prefix: !props.isReadOnly && /* @__PURE__ */ jsx200(
5932
+ prefix: !props.isReadOnly && /* @__PURE__ */ jsx201(
5900
5933
  CalendarButton,
5901
5934
  {
5902
5935
  componentSize,
@@ -5906,7 +5939,7 @@ function _DateField({
5906
5939
  ),
5907
5940
  labelProps,
5908
5941
  fieldProps,
5909
- children: state.segments.map((segment, i2) => /* @__PURE__ */ jsx200(
5942
+ children: state.segments.map((segment, i2) => /* @__PURE__ */ jsx201(
5910
5943
  DateSegment,
5911
5944
  {
5912
5945
  componentSize,
@@ -5943,7 +5976,7 @@ function createDOMRef(ref) {
5943
5976
  }
5944
5977
 
5945
5978
  // src/components/date-inputs/DatePicker/DatePicker.tsx
5946
- import { jsx as jsx201, jsxs as jsxs33 } from "react/jsx-runtime";
5979
+ import { jsx as jsx202, jsxs as jsxs34 } from "react/jsx-runtime";
5947
5980
  var refIsFocusable = (ref) => {
5948
5981
  return typeof ref === "object" && ref !== null && "focus" in ref;
5949
5982
  };
@@ -5959,8 +5992,8 @@ function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props
5959
5992
  state,
5960
5993
  ref
5961
5994
  );
5962
- return /* @__PURE__ */ jsx201(I18nProvider, { locale, children: /* @__PURE__ */ jsxs33(CalendarPopover, { isOpen: state.isOpen, onClose: state.close, children: [
5963
- /* @__PURE__ */ jsx201(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx201(
5995
+ return /* @__PURE__ */ jsx202(I18nProvider, { locale, children: /* @__PURE__ */ jsxs34(CalendarPopover, { isOpen: state.isOpen, onClose: state.close, children: [
5996
+ /* @__PURE__ */ jsx202(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx202(
5964
5997
  DateField,
5965
5998
  {
5966
5999
  ...fieldProps,
@@ -5976,7 +6009,7 @@ function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props
5976
6009
  width
5977
6010
  }
5978
6011
  ) }),
5979
- /* @__PURE__ */ jsx201(CalendarPopoverContent, { children: /* @__PURE__ */ jsx201(Calendar, { ...calendarProps }) })
6012
+ /* @__PURE__ */ jsx202(CalendarPopoverContent, { children: /* @__PURE__ */ jsx202(Calendar, { ...calendarProps }) })
5980
6013
  ] }) });
5981
6014
  }
5982
6015
  var DatePicker = forwardRef28(_DatePicker);
@@ -5986,7 +6019,7 @@ DatePicker.displayName = "DatePicker";
5986
6019
  import { useTimeField } from "@react-aria/datepicker";
5987
6020
  import { useTimeFieldState } from "@react-stately/datepicker";
5988
6021
  import { forwardRef as forwardRef29, useRef as useRef15 } from "react";
5989
- import { jsx as jsx202 } from "react/jsx-runtime";
6022
+ import { jsx as jsx203 } from "react/jsx-runtime";
5990
6023
  function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef) {
5991
6024
  const ref = useRef15(null);
5992
6025
  const state = useTimeFieldState({
@@ -6000,7 +6033,7 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
6000
6033
  );
6001
6034
  const iconSize = componentSize === "tiny" ? "small" : "medium";
6002
6035
  const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
6003
- return /* @__PURE__ */ jsx202(
6036
+ return /* @__PURE__ */ jsx203(
6004
6037
  DateInput,
6005
6038
  {
6006
6039
  ...props,
@@ -6013,17 +6046,17 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
6013
6046
  readOnly: props.isReadOnly,
6014
6047
  labelProps,
6015
6048
  fieldProps,
6016
- prefix: !props.isReadOnly && /* @__PURE__ */ jsx202(
6049
+ prefix: !props.isReadOnly && /* @__PURE__ */ jsx203(
6017
6050
  "span",
6018
6051
  {
6019
6052
  className: cn(
6020
6053
  DateInput_default["icon-wrapper"],
6021
6054
  DateInput_default[`icon-wrapper--${iconSize}`]
6022
6055
  ),
6023
- children: /* @__PURE__ */ jsx202(Icon, { icon: TimeIcon, iconSize })
6056
+ children: /* @__PURE__ */ jsx203(Icon, { icon: TimeIcon, iconSize })
6024
6057
  }
6025
6058
  ),
6026
- children: state.segments.map((segment, i2) => /* @__PURE__ */ jsx202(
6059
+ children: state.segments.map((segment, i2) => /* @__PURE__ */ jsx203(
6027
6060
  DateSegment,
6028
6061
  {
6029
6062
  componentSize,
@@ -6086,7 +6119,7 @@ var DescriptionList_default = {
6086
6119
  };
6087
6120
 
6088
6121
  // src/components/DescriptionList/DescriptionList.tsx
6089
- import { jsx as jsx203 } from "react/jsx-runtime";
6122
+ import { jsx as jsx204 } from "react/jsx-runtime";
6090
6123
  var DescriptionList = forwardRef30((props, ref) => {
6091
6124
  const {
6092
6125
  appearance = "default",
@@ -6097,7 +6130,7 @@ var DescriptionList = forwardRef30((props, ref) => {
6097
6130
  htmlProps,
6098
6131
  ...rest
6099
6132
  } = props;
6100
- return /* @__PURE__ */ jsx203(
6133
+ return /* @__PURE__ */ jsx204(
6101
6134
  "dl",
6102
6135
  {
6103
6136
  ref,
@@ -6120,24 +6153,24 @@ DescriptionList.displayName = "DescriptionList";
6120
6153
 
6121
6154
  // src/components/DescriptionList/DescriptionListTerm.tsx
6122
6155
  import { forwardRef as forwardRef31 } from "react";
6123
- import { jsx as jsx204 } from "react/jsx-runtime";
6156
+ import { jsx as jsx205 } from "react/jsx-runtime";
6124
6157
  var DescriptionListTerm = forwardRef31(({ ...rest }, ref) => {
6125
- return /* @__PURE__ */ jsx204("dt", { ref, ...rest });
6158
+ return /* @__PURE__ */ jsx205("dt", { ref, ...rest });
6126
6159
  });
6127
6160
  DescriptionListTerm.displayName = "DescriptionListTerm";
6128
6161
 
6129
6162
  // src/components/DescriptionList/DescriptionListDesc.tsx
6130
6163
  import { forwardRef as forwardRef32 } from "react";
6131
- import { jsx as jsx205, jsxs as jsxs34 } from "react/jsx-runtime";
6164
+ import { jsx as jsx206, jsxs as jsxs35 } from "react/jsx-runtime";
6132
6165
  var DescriptionListDesc = forwardRef32((props, ref) => {
6133
6166
  const { children, icon: icon2, id, className, htmlProps, ...rest } = props;
6134
- return /* @__PURE__ */ jsxs34(
6167
+ return /* @__PURE__ */ jsxs35(
6135
6168
  "dd",
6136
6169
  {
6137
6170
  ref,
6138
6171
  ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest),
6139
6172
  children: [
6140
- icon2 && /* @__PURE__ */ jsx205(Icon, { icon: icon2 }),
6173
+ icon2 && /* @__PURE__ */ jsx206(Icon, { icon: icon2 }),
6141
6174
  " ",
6142
6175
  children
6143
6176
  ]
@@ -6148,7 +6181,7 @@ DescriptionListDesc.displayName = "DescriptionListDesc";
6148
6181
 
6149
6182
  // src/components/DescriptionList/DescriptionListGroup.tsx
6150
6183
  import { forwardRef as forwardRef33 } from "react";
6151
- import { jsx as jsx206 } from "react/jsx-runtime";
6184
+ import { jsx as jsx207 } from "react/jsx-runtime";
6152
6185
  var DescriptionListGroup = forwardRef33((props, ref) => {
6153
6186
  const {
6154
6187
  children,
@@ -6160,7 +6193,7 @@ var DescriptionListGroup = forwardRef33((props, ref) => {
6160
6193
  htmlProps,
6161
6194
  ...rest
6162
6195
  } = props;
6163
- return /* @__PURE__ */ jsx206(
6196
+ return /* @__PURE__ */ jsx207(
6164
6197
  "div",
6165
6198
  {
6166
6199
  ref,
@@ -6173,7 +6206,7 @@ var DescriptionListGroup = forwardRef33((props, ref) => {
6173
6206
  DescriptionListGroup.displayName = "DescriptionListGroup";
6174
6207
 
6175
6208
  // src/components/Drawer/Drawer.tsx
6176
- import { forwardRef as forwardRef34, useId as useId5 } from "react";
6209
+ import { forwardRef as forwardRef34, useId as useId6 } from "react";
6177
6210
  import { createPortal } from "react-dom";
6178
6211
 
6179
6212
  // src/components/Drawer/Drawer.module.css
@@ -6193,7 +6226,7 @@ var Drawer_default = {
6193
6226
  };
6194
6227
 
6195
6228
  // src/components/Drawer/Drawer.tsx
6196
- import { jsx as jsx207, jsxs as jsxs35 } from "react/jsx-runtime";
6229
+ import { jsx as jsx208, jsxs as jsxs36 } from "react/jsx-runtime";
6197
6230
  var Drawer = forwardRef34((props, ref) => {
6198
6231
  const {
6199
6232
  children,
@@ -6210,7 +6243,7 @@ var Drawer = forwardRef34((props, ref) => {
6210
6243
  widthProps,
6211
6244
  ...rest
6212
6245
  } = props;
6213
- const generatedId = useId5();
6246
+ const generatedId = useId6();
6214
6247
  const uniqueId = id != null ? id : `${generatedId}-drawer`;
6215
6248
  const hasHeader = !!header;
6216
6249
  const headerId = hasHeader ? `${uniqueId}-header` : void 0;
@@ -6255,8 +6288,8 @@ var Drawer = forwardRef34((props, ref) => {
6255
6288
  style: { ...htmlProps == null ? void 0 : htmlProps.style, ...widthProps }
6256
6289
  };
6257
6290
  return isOpen || hasTransitionedIn ? createPortal(
6258
- /* @__PURE__ */ jsxs35(Paper, { ...containerProps, elevation: 4, children: [
6259
- /* @__PURE__ */ jsxs35(
6291
+ /* @__PURE__ */ jsxs36(Paper, { ...containerProps, elevation: 4, children: [
6292
+ /* @__PURE__ */ jsxs36(
6260
6293
  "div",
6261
6294
  {
6262
6295
  className: cn(
@@ -6265,12 +6298,12 @@ var Drawer = forwardRef34((props, ref) => {
6265
6298
  utilStyles_default["scrollable-y"]
6266
6299
  ),
6267
6300
  children: [
6268
- hasHeader && /* @__PURE__ */ jsx207("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx207(Typography, { typographyType: "headingSans03", children: header }) : header }),
6301
+ hasHeader && /* @__PURE__ */ jsx208("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx208(Typography, { typographyType: "headingSans03", children: header }) : header }),
6269
6302
  children
6270
6303
  ]
6271
6304
  }
6272
6305
  ),
6273
- /* @__PURE__ */ jsx207(
6306
+ /* @__PURE__ */ jsx208(
6274
6307
  Button,
6275
6308
  {
6276
6309
  className: cn(Drawer_default["button--close"]),
@@ -6293,18 +6326,18 @@ import {
6293
6326
  Children as ReactChildren3,
6294
6327
  cloneElement as cloneElement3,
6295
6328
  isValidElement as isValidElement4,
6296
- useId as useId6,
6329
+ useId as useId7,
6297
6330
  useRef as useRef16,
6298
6331
  useState as useState9
6299
6332
  } from "react";
6300
- import { Fragment as Fragment6, jsxs as jsxs36 } from "react/jsx-runtime";
6333
+ import { Fragment as Fragment6, jsxs as jsxs37 } from "react/jsx-runtime";
6301
6334
  var DrawerGroup = ({
6302
6335
  children,
6303
6336
  drawerId,
6304
6337
  onOpen,
6305
6338
  onClose
6306
6339
  }) => {
6307
- const generatedId = useId6();
6340
+ const generatedId = useId7();
6308
6341
  const uniqueDrawerId = drawerId != null ? drawerId : `${generatedId}-drawer`;
6309
6342
  const buttonRef = useRef16(null);
6310
6343
  const [closed, setClosed] = useState9(true);
@@ -6332,7 +6365,7 @@ var DrawerGroup = ({
6332
6365
  onClose: handleClose
6333
6366
  }));
6334
6367
  });
6335
- return /* @__PURE__ */ jsxs36(Fragment6, { children: [
6368
+ return /* @__PURE__ */ jsxs37(Fragment6, { children: [
6336
6369
  " ",
6337
6370
  Children8,
6338
6371
  " "
@@ -6348,7 +6381,7 @@ var EmptyContent_default = {
6348
6381
  };
6349
6382
 
6350
6383
  // src/components/EmptyContent/EmptyContent.tsx
6351
- import { jsx as jsx208, jsxs as jsxs37 } from "react/jsx-runtime";
6384
+ import { jsx as jsx209, jsxs as jsxs38 } from "react/jsx-runtime";
6352
6385
  function EmptyContent({
6353
6386
  title,
6354
6387
  message,
@@ -6356,15 +6389,15 @@ function EmptyContent({
6356
6389
  className,
6357
6390
  ...rest
6358
6391
  }) {
6359
- return /* @__PURE__ */ jsx208("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ jsxs37("div", { className: EmptyContent_default.text, children: [
6360
- title && /* @__PURE__ */ jsx208(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
6361
- /* @__PURE__ */ jsx208(Paragraph, { className: EmptyContent_default.message, children: message })
6392
+ return /* @__PURE__ */ jsx209("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ jsxs38("div", { className: EmptyContent_default.text, children: [
6393
+ title && /* @__PURE__ */ jsx209(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
6394
+ /* @__PURE__ */ jsx209(Paragraph, { className: EmptyContent_default.message, children: message })
6362
6395
  ] }) });
6363
6396
  }
6364
6397
  EmptyContent.displayName = "EmptyContent";
6365
6398
 
6366
6399
  // src/components/FavStar/FavStar.tsx
6367
- import { forwardRef as forwardRef35, useId as useId7 } from "react";
6400
+ import { forwardRef as forwardRef35, useId as useId8 } from "react";
6368
6401
 
6369
6402
  // src/components/FavStar/FavStar.module.css
6370
6403
  var FavStar_default = {
@@ -6413,7 +6446,7 @@ function useControllableState(props) {
6413
6446
  }
6414
6447
 
6415
6448
  // src/components/FavStar/FavStar.tsx
6416
- import { jsx as jsx209, jsxs as jsxs38 } from "react/jsx-runtime";
6449
+ import { jsx as jsx210, jsxs as jsxs39 } from "react/jsx-runtime";
6417
6450
  var FavStar = forwardRef35(
6418
6451
  ({
6419
6452
  id,
@@ -6432,13 +6465,13 @@ var FavStar = forwardRef35(
6432
6465
  htmlProps,
6433
6466
  rest
6434
6467
  );
6435
- const generatedId = useId7();
6468
+ const generatedId = useId8();
6436
6469
  const [checked, setChecked] = useControllableState({
6437
6470
  value: checkedProp,
6438
6471
  defaultValue: defaultChecked != null ? defaultChecked : false,
6439
6472
  onChange
6440
6473
  });
6441
- return /* @__PURE__ */ jsxs38(
6474
+ return /* @__PURE__ */ jsxs39(
6442
6475
  "label",
6443
6476
  {
6444
6477
  className: cn(
@@ -6450,7 +6483,7 @@ var FavStar = forwardRef35(
6450
6483
  style,
6451
6484
  htmlFor: id != null ? id : generatedId,
6452
6485
  children: [
6453
- /* @__PURE__ */ jsx209(
6486
+ /* @__PURE__ */ jsx210(
6454
6487
  "input",
6455
6488
  {
6456
6489
  ...props,
@@ -6463,8 +6496,8 @@ var FavStar = forwardRef35(
6463
6496
  className: utilStyles_default["hide-input"]
6464
6497
  }
6465
6498
  ),
6466
- /* @__PURE__ */ jsx209(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
6467
- /* @__PURE__ */ jsx209(
6499
+ /* @__PURE__ */ jsx210(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
6500
+ /* @__PURE__ */ jsx210(
6468
6501
  Icon,
6469
6502
  {
6470
6503
  iconSize: size2,
@@ -6530,7 +6563,7 @@ var Stack_default = {
6530
6563
  };
6531
6564
 
6532
6565
  // src/components/Stack/Stack.tsx
6533
- import { jsx as jsx210 } from "react/jsx-runtime";
6566
+ import { jsx as jsx211 } from "react/jsx-runtime";
6534
6567
  var HStack = forwardRef36(
6535
6568
  ({
6536
6569
  id,
@@ -6548,7 +6581,7 @@ var HStack = forwardRef36(
6548
6581
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6549
6582
  ["--dds-stack-justify-content"]: justify
6550
6583
  };
6551
- return /* @__PURE__ */ jsx210(
6584
+ return /* @__PURE__ */ jsx211(
6552
6585
  "div",
6553
6586
  {
6554
6587
  ref,
@@ -6587,7 +6620,7 @@ var VStack = forwardRef36(
6587
6620
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6588
6621
  ["--dds-stack-justify-content"]: justify
6589
6622
  };
6590
- return /* @__PURE__ */ jsx210(
6623
+ return /* @__PURE__ */ jsx211(
6591
6624
  "div",
6592
6625
  {
6593
6626
  ref,
@@ -6614,15 +6647,16 @@ function spacingPropToCn(value) {
6614
6647
  }
6615
6648
 
6616
6649
  // src/components/TextArea/TextArea.tsx
6617
- import { forwardRef as forwardRef37, useEffect as useEffect16, useId as useId8, useRef as useRef18, useState as useState11 } from "react";
6650
+ import { forwardRef as forwardRef37, useEffect as useEffect16, useId as useId9, useRef as useRef18, useState as useState11 } from "react";
6618
6651
 
6619
6652
  // src/components/TextArea/TextArea.module.css
6620
6653
  var TextArea_default = {
6621
- textarea: "TextArea_textarea"
6654
+ textarea: "TextArea_textarea",
6655
+ "message-container": "TextArea_message-container"
6622
6656
  };
6623
6657
 
6624
6658
  // src/components/TextArea/TextArea.tsx
6625
- import { jsx as jsx211, jsxs as jsxs39 } from "react/jsx-runtime";
6659
+ import { jsx as jsx212, jsxs as jsxs40 } from "react/jsx-runtime";
6626
6660
  var TextArea = forwardRef37(
6627
6661
  (props, ref) => {
6628
6662
  const {
@@ -6637,12 +6671,14 @@ var TextArea = forwardRef37(
6637
6671
  label,
6638
6672
  "aria-required": ariaRequired = false,
6639
6673
  "aria-describedby": ariaDescribedby,
6674
+ maxLength,
6675
+ withCharacterCounter = true,
6640
6676
  className,
6641
6677
  style,
6642
6678
  width,
6643
6679
  ...rest
6644
6680
  } = props;
6645
- const generatedId = useId8();
6681
+ const generatedId = useId9();
6646
6682
  const uniqueId = id != null ? id : `${generatedId}-textArea`;
6647
6683
  const textAreaRef = useRef18(null);
6648
6684
  const multiRef = useCombinedRef(ref, textAreaRef);
@@ -6664,36 +6700,22 @@ var TextArea = forwardRef37(
6664
6700
  const hasLabel = !!label;
6665
6701
  const tipId = derivativeIdGenerator(uniqueId, "tip");
6666
6702
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
6703
+ const characterCounterId = derivativeIdGenerator(
6704
+ uniqueId,
6705
+ "characterCounter"
6706
+ );
6667
6707
  const showRequiredStyling = required || !!ariaRequired;
6668
- const textAreaProps = {
6669
- ref: multiRef,
6670
- onChange: onChangeHandler,
6671
- value,
6672
- defaultValue,
6673
- id: uniqueId,
6674
- disabled,
6675
- hasErrorMessage,
6676
- required,
6677
- "aria-required": ariaRequired,
6678
- "aria-describedby": spaceSeparatedIdListGenerator([
6679
- tip ? tipId : void 0,
6680
- errorMessage ? errorMessageId : void 0,
6681
- ariaDescribedby
6682
- ]),
6683
- "aria-invalid": hasErrorMessage ? true : void 0,
6684
- ...rest
6685
- };
6686
6708
  const styleVariables = {
6687
6709
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6688
6710
  ["--dds-text-area-width"]: width != null ? width : "var(--dds-input-default-width)"
6689
6711
  };
6690
- return /* @__PURE__ */ jsxs39(
6712
+ return /* @__PURE__ */ jsxs40(
6691
6713
  "div",
6692
6714
  {
6693
6715
  className: cn(className, Input_default.container),
6694
6716
  style: { ...style },
6695
6717
  children: [
6696
- hasLabel && /* @__PURE__ */ jsx211(
6718
+ hasLabel && /* @__PURE__ */ jsx212(
6697
6719
  Label,
6698
6720
  {
6699
6721
  showRequiredStyling,
@@ -6702,22 +6724,47 @@ var TextArea = forwardRef37(
6702
6724
  children: label
6703
6725
  }
6704
6726
  ),
6705
- /* @__PURE__ */ jsx211(
6727
+ /* @__PURE__ */ jsx212(
6706
6728
  "textarea",
6707
6729
  {
6708
- ...textAreaProps,
6730
+ ref: multiRef,
6731
+ id: uniqueId,
6732
+ onChange: onChangeHandler,
6733
+ value,
6734
+ defaultValue,
6735
+ disabled,
6736
+ maxLength,
6737
+ required,
6738
+ "aria-required": ariaRequired,
6739
+ "aria-describedby": spaceSeparatedIdListGenerator([
6740
+ tip ? tipId : void 0,
6741
+ errorMessage ? errorMessageId : void 0,
6742
+ maxLength && withCharacterCounter ? characterCounterId : void 0,
6743
+ ariaDescribedby
6744
+ ]),
6745
+ "aria-invalid": hasErrorMessage ? true : void 0,
6709
6746
  className: cn(
6710
6747
  Input_default.input,
6711
6748
  Input_default["input--stateful"],
6749
+ hasErrorMessage && Input_default["input--stateful-danger"],
6712
6750
  TextArea_default.textarea,
6713
6751
  scrollbar,
6714
6752
  typographyStyles_default[getTypographyCn(inputTypographyTypes["medium"])],
6715
6753
  focusable
6716
6754
  ),
6717
- style: styleVariables
6755
+ style: styleVariables,
6756
+ ...rest
6718
6757
  }
6719
6758
  ),
6720
- renderInputMessage(tip, tipId, errorMessage, errorMessageId)
6759
+ /* @__PURE__ */ jsxs40("div", { className: TextArea_default["message-container"], children: [
6760
+ renderInputMessage(tip, tipId, errorMessage, errorMessageId),
6761
+ renderCharCounter(
6762
+ characterCounterId,
6763
+ withCharacterCounter,
6764
+ text.length,
6765
+ maxLength
6766
+ )
6767
+ ] })
6721
6768
  ]
6722
6769
  }
6723
6770
  );
@@ -6726,7 +6773,7 @@ var TextArea = forwardRef37(
6726
6773
  TextArea.displayName = "TextArea";
6727
6774
 
6728
6775
  // src/components/Feedback/CommentComponent.tsx
6729
- import { jsx as jsx212, jsxs as jsxs40 } from "react/jsx-runtime";
6776
+ import { jsx as jsx213, jsxs as jsxs41 } from "react/jsx-runtime";
6730
6777
  var CommentComponent = ({
6731
6778
  rating,
6732
6779
  feedbackText,
@@ -6738,21 +6785,21 @@ var CommentComponent = ({
6738
6785
  handleSubmit,
6739
6786
  handleFeedbackTextChange
6740
6787
  }) => {
6741
- return /* @__PURE__ */ jsxs40(VStack, { gap: "x1", align: "flex-start", children: [
6742
- /* @__PURE__ */ jsxs40("span", { className: Feedback_default["rating-submitted-title"], children: [
6743
- /* @__PURE__ */ jsx212(
6788
+ return /* @__PURE__ */ jsxs41(VStack, { gap: "x1", align: "flex-start", children: [
6789
+ /* @__PURE__ */ jsxs41("span", { className: Feedback_default["rating-submitted-title"], children: [
6790
+ /* @__PURE__ */ jsx213(
6744
6791
  Icon,
6745
6792
  {
6746
6793
  icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
6747
6794
  color: "iconActionResting"
6748
6795
  }
6749
6796
  ),
6750
- /* @__PURE__ */ jsxs40(Paragraph, { children: [
6797
+ /* @__PURE__ */ jsxs41(Paragraph, { children: [
6751
6798
  ratingSubmittedTitle,
6752
6799
  " "
6753
6800
  ] })
6754
6801
  ] }),
6755
- /* @__PURE__ */ jsx212(
6802
+ /* @__PURE__ */ jsx213(
6756
6803
  TextArea,
6757
6804
  {
6758
6805
  value: feedbackText,
@@ -6761,7 +6808,7 @@ var CommentComponent = ({
6761
6808
  tip: textAreaTip
6762
6809
  }
6763
6810
  ),
6764
- /* @__PURE__ */ jsx212(
6811
+ /* @__PURE__ */ jsx213(
6765
6812
  Button,
6766
6813
  {
6767
6814
  purpose: "secondary",
@@ -6781,7 +6828,7 @@ import {
6781
6828
  forwardRef as forwardRef38,
6782
6829
  isValidElement as isValidElement5,
6783
6830
  useEffect as useEffect17,
6784
- useId as useId9,
6831
+ useId as useId10,
6785
6832
  useRef as useRef19,
6786
6833
  useState as useState12
6787
6834
  } from "react";
@@ -6795,7 +6842,7 @@ var Tooltip_default = {
6795
6842
  };
6796
6843
 
6797
6844
  // src/components/Tooltip/Tooltip.tsx
6798
- import { jsx as jsx213, jsxs as jsxs41 } from "react/jsx-runtime";
6845
+ import { jsx as jsx214, jsxs as jsxs42 } from "react/jsx-runtime";
6799
6846
  var Tooltip = forwardRef38(
6800
6847
  (props, ref) => {
6801
6848
  const {
@@ -6812,7 +6859,7 @@ var Tooltip = forwardRef38(
6812
6859
  htmlProps,
6813
6860
  ...rest
6814
6861
  } = props;
6815
- const generatedId = useId9();
6862
+ const generatedId = useId10();
6816
6863
  const uniqueTooltipId = tooltipId != null ? tooltipId : `${generatedId}-tooltip`;
6817
6864
  const [open, setOpen] = useState12(false);
6818
6865
  const [inView, setInView] = useState12(false);
@@ -6893,9 +6940,9 @@ var Tooltip = forwardRef38(
6893
6940
  style: { ...positionStyles.floating }
6894
6941
  };
6895
6942
  const openCn = open && inView ? "open" : "closed";
6896
- return /* @__PURE__ */ jsxs41("div", { ...containerProps, children: [
6943
+ return /* @__PURE__ */ jsxs42("div", { ...containerProps, children: [
6897
6944
  anchorElement,
6898
- /* @__PURE__ */ jsxs41(
6945
+ /* @__PURE__ */ jsxs42(
6899
6946
  Paper,
6900
6947
  {
6901
6948
  ...wrapperProps,
@@ -6909,15 +6956,15 @@ var Tooltip = forwardRef38(
6909
6956
  ),
6910
6957
  children: [
6911
6958
  text,
6912
- /* @__PURE__ */ jsx213("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs41("svg", { width: "36", height: "9", children: [
6913
- /* @__PURE__ */ jsx213(
6959
+ /* @__PURE__ */ jsx214("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs42("svg", { width: "36", height: "9", children: [
6960
+ /* @__PURE__ */ jsx214(
6914
6961
  "path",
6915
6962
  {
6916
6963
  d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
6917
6964
  className: Tooltip_default["svg-arrow__background"]
6918
6965
  }
6919
6966
  ),
6920
- /* @__PURE__ */ jsx213(
6967
+ /* @__PURE__ */ jsx214(
6921
6968
  "path",
6922
6969
  {
6923
6970
  fillRule: "evenodd",
@@ -6936,7 +6983,7 @@ var Tooltip = forwardRef38(
6936
6983
  Tooltip.displayName = "Tooltip";
6937
6984
 
6938
6985
  // src/components/Feedback/RatingComponent.tsx
6939
- import { jsx as jsx214, jsxs as jsxs42 } from "react/jsx-runtime";
6986
+ import { jsx as jsx215, jsxs as jsxs43 } from "react/jsx-runtime";
6940
6987
  var RatingComponent = ({
6941
6988
  layout,
6942
6989
  ratingLabel,
@@ -6946,7 +6993,7 @@ var RatingComponent = ({
6946
6993
  handleRatingChange
6947
6994
  }) => {
6948
6995
  const layoutCn = layout === "vertical" ? "column" : "row";
6949
- const button3 = (purpose, layout2) => /* @__PURE__ */ jsx214(
6996
+ const button3 = (purpose, layout2) => /* @__PURE__ */ jsx215(
6950
6997
  "button",
6951
6998
  {
6952
6999
  "aria-label": purpose === "up" ? thumbUpTooltip : thumbDownTooltip,
@@ -6957,7 +7004,7 @@ var RatingComponent = ({
6957
7004
  Feedback_default[`button--${layout2}`],
6958
7005
  focusable
6959
7006
  ),
6960
- children: /* @__PURE__ */ jsx214(
7007
+ children: /* @__PURE__ */ jsx215(
6961
7008
  Icon,
6962
7009
  {
6963
7010
  icon: purpose === "up" ? ThumbUpIcon : ThumbDownIcon,
@@ -6966,7 +7013,7 @@ var RatingComponent = ({
6966
7013
  )
6967
7014
  }
6968
7015
  );
6969
- return /* @__PURE__ */ jsxs42(
7016
+ return /* @__PURE__ */ jsxs43(
6970
7017
  "div",
6971
7018
  {
6972
7019
  className: cn(
@@ -6974,10 +7021,10 @@ var RatingComponent = ({
6974
7021
  Feedback_default[`rating-container--${layoutCn}`]
6975
7022
  ),
6976
7023
  children: [
6977
- /* @__PURE__ */ jsx214(Label, { children: ratingLabel }),
6978
- loading ? /* @__PURE__ */ jsx214(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ jsxs42(HStack, { gap: "x1", children: [
6979
- /* @__PURE__ */ jsx214(Tooltip, { text: thumbUpTooltip, children: button3("up", layout) }),
6980
- /* @__PURE__ */ jsx214(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx214("div", { children: button3("down", layout) }) })
7024
+ /* @__PURE__ */ jsx215(Label, { children: ratingLabel }),
7025
+ loading ? /* @__PURE__ */ jsx215(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ jsxs43(HStack, { gap: "x1", children: [
7026
+ /* @__PURE__ */ jsx215(Tooltip, { text: thumbUpTooltip, children: button3("up", layout) }),
7027
+ /* @__PURE__ */ jsx215(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx215("div", { children: button3("down", layout) }) })
6981
7028
  ] })
6982
7029
  ]
6983
7030
  }
@@ -6985,7 +7032,7 @@ var RatingComponent = ({
6985
7032
  };
6986
7033
 
6987
7034
  // src/components/Feedback/Feedback.tsx
6988
- import { jsx as jsx215 } from "react/jsx-runtime";
7035
+ import { jsx as jsx216 } from "react/jsx-runtime";
6989
7036
  var Feedback = ({
6990
7037
  layout = "vertical",
6991
7038
  ratingLabel = "Hva syns du om tjenesten?",
@@ -7031,7 +7078,7 @@ var Feedback = ({
7031
7078
  isSubmittedProp === void 0 && setIsFeedbackSubmitted(true);
7032
7079
  };
7033
7080
  if (rating === null && !isFeedbackSubmitted) {
7034
- return /* @__PURE__ */ jsx215(
7081
+ return /* @__PURE__ */ jsx216(
7035
7082
  RatingComponent,
7036
7083
  {
7037
7084
  layout,
@@ -7044,7 +7091,7 @@ var Feedback = ({
7044
7091
  );
7045
7092
  }
7046
7093
  if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
7047
- return /* @__PURE__ */ jsx215(
7094
+ return /* @__PURE__ */ jsx216(
7048
7095
  CommentComponent,
7049
7096
  {
7050
7097
  rating,
@@ -7059,7 +7106,7 @@ var Feedback = ({
7059
7106
  }
7060
7107
  );
7061
7108
  }
7062
- return /* @__PURE__ */ jsx215(Paragraph, { children: submittedTitle });
7109
+ return /* @__PURE__ */ jsx216(Paragraph, { children: submittedTitle });
7063
7110
  };
7064
7111
 
7065
7112
  // src/components/Fieldset/Fieldset.tsx
@@ -7071,11 +7118,11 @@ var Fieldset_default = {
7071
7118
  };
7072
7119
 
7073
7120
  // src/components/Fieldset/Fieldset.tsx
7074
- import { jsx as jsx216 } from "react/jsx-runtime";
7121
+ import { jsx as jsx217 } from "react/jsx-runtime";
7075
7122
  var Fieldset = forwardRef39(
7076
7123
  (props, ref) => {
7077
7124
  const { id, className, htmlProps, ...rest } = props;
7078
- return /* @__PURE__ */ jsx216(
7125
+ return /* @__PURE__ */ jsx217(
7079
7126
  "fieldset",
7080
7127
  {
7081
7128
  ref,
@@ -7091,17 +7138,17 @@ var Fieldset = forwardRef39(
7091
7138
  );
7092
7139
 
7093
7140
  // src/components/FileUploader/FileUploader.tsx
7094
- import { useId as useId10 } from "react";
7141
+ import { useId as useId11 } from "react";
7095
7142
 
7096
7143
  // src/components/FileUploader/ErrorList.tsx
7097
- import { jsx as jsx217 } from "react/jsx-runtime";
7144
+ import { jsx as jsx218 } from "react/jsx-runtime";
7098
7145
  var ErrorList = (props) => {
7099
7146
  const { errors } = props;
7100
7147
  if (errors.length < 1) {
7101
7148
  return null;
7102
7149
  }
7103
7150
  if (errors.length === 1) {
7104
- return /* @__PURE__ */ jsx217(
7151
+ return /* @__PURE__ */ jsx218(
7105
7152
  InputMessage,
7106
7153
  {
7107
7154
  id: errors[0].id,
@@ -7110,8 +7157,8 @@ var ErrorList = (props) => {
7110
7157
  }
7111
7158
  );
7112
7159
  }
7113
- return /* @__PURE__ */ jsx217("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
7114
- return /* @__PURE__ */ jsx217("li", { children: /* @__PURE__ */ jsx217(
7160
+ return /* @__PURE__ */ jsx218("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
7161
+ return /* @__PURE__ */ jsx218("li", { children: /* @__PURE__ */ jsx218(
7115
7162
  InputMessage,
7116
7163
  {
7117
7164
  id,
@@ -7138,30 +7185,30 @@ var FileUploader_default = {
7138
7185
  };
7139
7186
 
7140
7187
  // src/components/FileUploader/File.tsx
7141
- import { jsx as jsx218, jsxs as jsxs43 } from "react/jsx-runtime";
7188
+ import { jsx as jsx219, jsxs as jsxs44 } from "react/jsx-runtime";
7142
7189
  var File = (props) => {
7143
7190
  const { parentId, index, file: stateFile, removeFile, isValid } = props;
7144
7191
  const errorsList = stateFile.errors.map((e, errorIndex) => ({
7145
7192
  id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
7146
7193
  message: e
7147
7194
  }));
7148
- return /* @__PURE__ */ jsxs43("li", { children: [
7149
- /* @__PURE__ */ jsxs43("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
7150
- /* @__PURE__ */ jsx218(
7195
+ return /* @__PURE__ */ jsxs44("li", { children: [
7196
+ /* @__PURE__ */ jsxs44("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
7197
+ /* @__PURE__ */ jsx219(
7151
7198
  "span",
7152
7199
  {
7153
7200
  className: cn(FileUploader_default.file__name, typographyStyles_default["body-sans-02"]),
7154
7201
  children: stateFile.file.name
7155
7202
  }
7156
7203
  ),
7157
- /* @__PURE__ */ jsx218(
7204
+ /* @__PURE__ */ jsx219(
7158
7205
  Icon,
7159
7206
  {
7160
7207
  icon: isValid ? CheckCircledIcon : ErrorIcon,
7161
7208
  className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
7162
7209
  }
7163
7210
  ),
7164
- /* @__PURE__ */ jsx218(
7211
+ /* @__PURE__ */ jsx219(
7165
7212
  Button,
7166
7213
  {
7167
7214
  size: "small",
@@ -7180,7 +7227,7 @@ var File = (props) => {
7180
7227
  }
7181
7228
  )
7182
7229
  ] }),
7183
- /* @__PURE__ */ jsx218(ErrorList, { errors: errorsList })
7230
+ /* @__PURE__ */ jsx219(ErrorList, { errors: errorsList })
7184
7231
  ] });
7185
7232
  };
7186
7233
 
@@ -7472,19 +7519,19 @@ var useFileUploader = (props) => {
7472
7519
  };
7473
7520
 
7474
7521
  // src/components/VisuallyHidden/VisuallyHidden.tsx
7475
- import { jsx as jsx219 } from "react/jsx-runtime";
7522
+ import { jsx as jsx220 } from "react/jsx-runtime";
7476
7523
  var VisuallyHidden = (props) => {
7477
7524
  const { id, className, htmlProps, as, ...rest } = props;
7478
7525
  const cl = cn(className, utilStyles_default["visually-hidden"]);
7479
7526
  if (as === "div") {
7480
- return /* @__PURE__ */ jsx219("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7527
+ return /* @__PURE__ */ jsx220("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7481
7528
  }
7482
- return /* @__PURE__ */ jsx219("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7529
+ return /* @__PURE__ */ jsx220("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7483
7530
  };
7484
7531
  VisuallyHidden.displayName = "VisuallyHidden";
7485
7532
 
7486
7533
  // src/components/FileUploader/FileUploader.tsx
7487
- import { jsx as jsx220, jsxs as jsxs44 } from "react/jsx-runtime";
7534
+ import { jsx as jsx221, jsxs as jsxs45 } from "react/jsx-runtime";
7488
7535
  var FileUploader = (props) => {
7489
7536
  const {
7490
7537
  id,
@@ -7507,7 +7554,7 @@ var FileUploader = (props) => {
7507
7554
  className,
7508
7555
  ...rest
7509
7556
  } = props;
7510
- const generatedId = useId10();
7557
+ const generatedId = useId11();
7511
7558
  const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
7512
7559
  const {
7513
7560
  state: { files: stateFiles, isDragActive, rootErrors },
@@ -7533,7 +7580,7 @@ var FileUploader = (props) => {
7533
7580
  const tipId = derivativeIdGenerator(uniqueId, "tip");
7534
7581
  const buttonId = derivativeIdGenerator(uniqueId, "button");
7535
7582
  const inputId = derivativeIdGenerator(uniqueId, "input");
7536
- const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx220(
7583
+ const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx221(
7537
7584
  File,
7538
7585
  {
7539
7586
  parentId: uniqueId,
@@ -7548,7 +7595,7 @@ var FileUploader = (props) => {
7548
7595
  id: derivativeIdGenerator(uniqueId, `error-${index}`),
7549
7596
  message: e
7550
7597
  }));
7551
- const button3 = /* @__PURE__ */ jsx220(
7598
+ const button3 = /* @__PURE__ */ jsx221(
7552
7599
  Button,
7553
7600
  {
7554
7601
  ...getButtonProps(),
@@ -7568,7 +7615,7 @@ var FileUploader = (props) => {
7568
7615
  children: btnLabel
7569
7616
  }
7570
7617
  );
7571
- return /* @__PURE__ */ jsxs44(
7618
+ return /* @__PURE__ */ jsxs45(
7572
7619
  "div",
7573
7620
  {
7574
7621
  id: uniqueId,
@@ -7580,9 +7627,9 @@ var FileUploader = (props) => {
7580
7627
  style: { ...style, width },
7581
7628
  ...rest,
7582
7629
  children: [
7583
- hasLabel && /* @__PURE__ */ jsx220(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
7584
- hasTip && /* @__PURE__ */ jsx220(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
7585
- withDragAndDrop ? /* @__PURE__ */ jsxs44(
7630
+ hasLabel && /* @__PURE__ */ jsx221(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
7631
+ hasTip && /* @__PURE__ */ jsx221(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
7632
+ withDragAndDrop ? /* @__PURE__ */ jsxs45(
7586
7633
  "div",
7587
7634
  {
7588
7635
  ...getRootProps(),
@@ -7592,7 +7639,7 @@ var FileUploader = (props) => {
7592
7639
  isDragActive && FileUploader_default["input-container--drag-active"]
7593
7640
  ),
7594
7641
  children: [
7595
- /* @__PURE__ */ jsx220(
7642
+ /* @__PURE__ */ jsx221(
7596
7643
  "input",
7597
7644
  {
7598
7645
  ...getInputProps(),
@@ -7601,16 +7648,16 @@ var FileUploader = (props) => {
7601
7648
  }
7602
7649
  ),
7603
7650
  dropAreaLabel,
7604
- /* @__PURE__ */ jsx220(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
7651
+ /* @__PURE__ */ jsx221(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
7605
7652
  button3
7606
7653
  ]
7607
7654
  }
7608
- ) : /* @__PURE__ */ jsxs44("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
7609
- /* @__PURE__ */ jsx220("input", { ...getInputProps(), id: inputId }),
7655
+ ) : /* @__PURE__ */ jsxs45("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
7656
+ /* @__PURE__ */ jsx221("input", { ...getInputProps(), id: inputId }),
7610
7657
  button3
7611
7658
  ] }),
7612
- /* @__PURE__ */ jsx220(ErrorList, { errors: rootErrorsList }),
7613
- !hideFileList && /* @__PURE__ */ jsx220("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
7659
+ /* @__PURE__ */ jsx221(ErrorList, { errors: rootErrorsList }),
7660
+ !hideFileList && /* @__PURE__ */ jsx221("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
7614
7661
  ]
7615
7662
  }
7616
7663
  );
@@ -7632,7 +7679,7 @@ var GlobalMessage_default = {
7632
7679
  };
7633
7680
 
7634
7681
  // src/components/GlobalMessage/GlobalMessage.tsx
7635
- import { jsx as jsx221, jsxs as jsxs45 } from "react/jsx-runtime";
7682
+ import { jsx as jsx222, jsxs as jsxs46 } from "react/jsx-runtime";
7636
7683
  var purposeVariants = {
7637
7684
  info: {
7638
7685
  icon: InfoIcon
@@ -7658,7 +7705,7 @@ var GlobalMessage = forwardRef40(
7658
7705
  ...rest
7659
7706
  } = props;
7660
7707
  const [isClosed, setClosed] = useState14(false);
7661
- return !isClosed ? /* @__PURE__ */ jsxs45(
7708
+ return !isClosed ? /* @__PURE__ */ jsxs46(
7662
7709
  "div",
7663
7710
  {
7664
7711
  ref,
@@ -7674,7 +7721,7 @@ var GlobalMessage = forwardRef40(
7674
7721
  rest
7675
7722
  ),
7676
7723
  children: [
7677
- /* @__PURE__ */ jsxs45(
7724
+ /* @__PURE__ */ jsxs46(
7678
7725
  "div",
7679
7726
  {
7680
7727
  className: cn(
@@ -7682,12 +7729,12 @@ var GlobalMessage = forwardRef40(
7682
7729
  closable && GlobalMessage_default["content--closable"]
7683
7730
  ),
7684
7731
  children: [
7685
- /* @__PURE__ */ jsx221(Icon, { icon: purposeVariants[purpose].icon, className: GlobalMessage_default.icon }),
7686
- children != null ? children : /* @__PURE__ */ jsx221("span", { children: message })
7732
+ /* @__PURE__ */ jsx222(Icon, { icon: purposeVariants[purpose].icon, className: GlobalMessage_default.icon }),
7733
+ children != null ? children : /* @__PURE__ */ jsx222("span", { children: message })
7687
7734
  ]
7688
7735
  }
7689
7736
  ),
7690
- closable && /* @__PURE__ */ jsx221(
7737
+ closable && /* @__PURE__ */ jsx222(
7691
7738
  Button,
7692
7739
  {
7693
7740
  icon: CloseIcon,
@@ -7718,7 +7765,7 @@ var Grid_default = {
7718
7765
  };
7719
7766
 
7720
7767
  // src/components/Grid/Grid.tsx
7721
- import { jsx as jsx222 } from "react/jsx-runtime";
7768
+ import { jsx as jsx223 } from "react/jsx-runtime";
7722
7769
  var Grid = (props) => {
7723
7770
  const { id, className, htmlProps, as, maxWidth, rowGap, style, ...rest } = props;
7724
7771
  const styleVariables = {
@@ -7743,13 +7790,13 @@ var Grid = (props) => {
7743
7790
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7744
7791
  ["--dds-grid-xl-row-gap"]: (rowGap == null ? void 0 : rowGap.xl) ? rowGap.xl : "var(--dds-grid-xl-gutter-size)"
7745
7792
  };
7746
- return as === "div" ? /* @__PURE__ */ jsx222(
7793
+ return as === "div" ? /* @__PURE__ */ jsx223(
7747
7794
  "div",
7748
7795
  {
7749
7796
  ...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
7750
7797
  style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
7751
7798
  }
7752
- ) : /* @__PURE__ */ jsx222(
7799
+ ) : /* @__PURE__ */ jsx223(
7753
7800
  "form",
7754
7801
  {
7755
7802
  ...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
@@ -7760,7 +7807,7 @@ var Grid = (props) => {
7760
7807
  Grid.displayName = "Grid";
7761
7808
 
7762
7809
  // src/components/Grid/GridChild.tsx
7763
- import { jsx as jsx223 } from "react/jsx-runtime";
7810
+ import { jsx as jsx224 } from "react/jsx-runtime";
7764
7811
  var isRelativeGridColumn = (type) => {
7765
7812
  return type === "all" || type === "firstHalf" || type === "secondHalf";
7766
7813
  };
@@ -7810,7 +7857,7 @@ var GridChild = (props) => {
7810
7857
  firstHalf: "first-half",
7811
7858
  secondHalf: "second-half"
7812
7859
  };
7813
- return /* @__PURE__ */ jsx223(
7860
+ return /* @__PURE__ */ jsx224(
7814
7861
  "div",
7815
7862
  {
7816
7863
  ...getBaseHTMLProps(
@@ -7839,11 +7886,11 @@ var InlineButton_default = {
7839
7886
  };
7840
7887
 
7841
7888
  // src/components/InlineButton/InlineButton.tsx
7842
- import { jsx as jsx224 } from "react/jsx-runtime";
7889
+ import { jsx as jsx225 } from "react/jsx-runtime";
7843
7890
  var InlineButton = forwardRef41(
7844
7891
  (props, ref) => {
7845
7892
  const { className, ...rest } = props;
7846
- return /* @__PURE__ */ jsx224(
7893
+ return /* @__PURE__ */ jsx225(
7847
7894
  "button",
7848
7895
  {
7849
7896
  ref,
@@ -7871,7 +7918,7 @@ import {
7871
7918
  isValidElement as isValidElement6,
7872
7919
  useState as useState15
7873
7920
  } from "react";
7874
- import { Fragment as Fragment7, jsx as jsx225 } from "react/jsx-runtime";
7921
+ import { Fragment as Fragment7, jsx as jsx226 } from "react/jsx-runtime";
7875
7922
  var InlineEdit = (props) => {
7876
7923
  const {
7877
7924
  emptiable,
@@ -7921,12 +7968,12 @@ var InlineEdit = (props) => {
7921
7968
  emptiable
7922
7969
  })
7923
7970
  );
7924
- return /* @__PURE__ */ jsx225(Fragment7, { children: inputChild });
7971
+ return /* @__PURE__ */ jsx226(Fragment7, { children: inputChild });
7925
7972
  };
7926
7973
  InlineEdit.displayName = "InlineEdit";
7927
7974
 
7928
7975
  // src/components/InlineEdit/InlineTextArea.tsx
7929
- import { forwardRef as forwardRef42, useId as useId11, useRef as useRef21 } from "react";
7976
+ import { forwardRef as forwardRef42, useId as useId12, useRef as useRef21 } from "react";
7930
7977
 
7931
7978
  // src/components/InlineEdit/InlineEdit.module.css
7932
7979
  var InlineEdit_default = {
@@ -7939,15 +7986,15 @@ var InlineEdit_default = {
7939
7986
  };
7940
7987
 
7941
7988
  // src/components/InlineEdit/InlineEdit.utils.tsx
7942
- import { jsxs as jsxs46 } from "react/jsx-runtime";
7943
- var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs46(VisuallyHidden, { id, as: "span", children: [
7989
+ import { jsxs as jsxs47 } from "react/jsx-runtime";
7990
+ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs47(VisuallyHidden, { id, as: "span", children: [
7944
7991
  "Escape, Enter eller Tab for \xE5 lagre.",
7945
7992
  " ",
7946
7993
  !emptiable && "Inputfeltet er ikke t\xF8mmbar."
7947
7994
  ] });
7948
7995
 
7949
7996
  // src/components/InlineEdit/InlineTextArea.tsx
7950
- import { jsx as jsx226, jsxs as jsxs47 } from "react/jsx-runtime";
7997
+ import { jsx as jsx227, jsxs as jsxs48 } from "react/jsx-runtime";
7951
7998
  var InlineTextArea = forwardRef42((props, ref) => {
7952
7999
  const {
7953
8000
  id,
@@ -7960,7 +8007,7 @@ var InlineTextArea = forwardRef42((props, ref) => {
7960
8007
  hideIcon,
7961
8008
  ...rest
7962
8009
  } = props;
7963
- const genereatedId = useId11();
8010
+ const genereatedId = useId12();
7964
8011
  const uniqueId = id != null ? id : `${genereatedId}-InlineTextArea`;
7965
8012
  const hasErrorMessage = !!errorMessage;
7966
8013
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
@@ -7969,9 +8016,9 @@ var InlineTextArea = forwardRef42((props, ref) => {
7969
8016
  const descId = derivativeIdGenerator(uniqueId, "desc");
7970
8017
  const inputRef = useRef21(null);
7971
8018
  const combinedRef = useCombinedRef(ref, inputRef);
7972
- return /* @__PURE__ */ jsxs47("div", { className: InlineEdit_default.container, style: { width }, children: [
7973
- /* @__PURE__ */ jsxs47("div", { className: Input_default["input-group"], children: [
7974
- !isEditing && !hideIcon && /* @__PURE__ */ jsx226(
8019
+ return /* @__PURE__ */ jsxs48("div", { className: InlineEdit_default.container, style: { width }, children: [
8020
+ /* @__PURE__ */ jsxs48("div", { className: Input_default["input-group"], children: [
8021
+ !isEditing && !hideIcon && /* @__PURE__ */ jsx227(
7975
8022
  "span",
7976
8023
  {
7977
8024
  onClick: () => {
@@ -7979,10 +8026,10 @@ var InlineTextArea = forwardRef42((props, ref) => {
7979
8026
  (_a = inputRef.current) == null ? void 0 : _a.focus();
7980
8027
  },
7981
8028
  className: InlineEdit_default["icon-wrapper"],
7982
- children: /* @__PURE__ */ jsx226(Icon, { icon: EditIcon, iconSize: "small" })
8029
+ children: /* @__PURE__ */ jsx227(Icon, { icon: EditIcon, iconSize: "small" })
7983
8030
  }
7984
8031
  ),
7985
- /* @__PURE__ */ jsx226(
8032
+ /* @__PURE__ */ jsx227(
7986
8033
  "textarea",
7987
8034
  {
7988
8035
  ...rest,
@@ -8014,12 +8061,12 @@ var InlineTextArea = forwardRef42((props, ref) => {
8014
8061
  InlineTextArea.displayName = "InlineTextArea";
8015
8062
 
8016
8063
  // src/components/InlineEdit/InlineEditTextArea.tsx
8017
- import { jsx as jsx227 } from "react/jsx-runtime";
8064
+ import { jsx as jsx228 } from "react/jsx-runtime";
8018
8065
  var InlineEditTextArea = forwardRef43((props, ref) => {
8019
8066
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
8020
8067
  const textareaRef = useRef22(null);
8021
8068
  const combinedRef = useCombinedRef(ref, textareaRef);
8022
- return /* @__PURE__ */ jsx227(
8069
+ return /* @__PURE__ */ jsx228(
8023
8070
  InlineEdit,
8024
8071
  {
8025
8072
  onSetValue,
@@ -8029,7 +8076,7 @@ var InlineEditTextArea = forwardRef43((props, ref) => {
8029
8076
  onFocus,
8030
8077
  onChange,
8031
8078
  onBlur,
8032
- children: /* @__PURE__ */ jsx227(InlineTextArea, { ref: combinedRef, ...rest })
8079
+ children: /* @__PURE__ */ jsx228(InlineTextArea, { ref: combinedRef, ...rest })
8033
8080
  }
8034
8081
  );
8035
8082
  });
@@ -8038,8 +8085,8 @@ var InlineEditTextArea = forwardRef43((props, ref) => {
8038
8085
  import { forwardRef as forwardRef45, useRef as useRef24 } from "react";
8039
8086
 
8040
8087
  // src/components/InlineEdit/InlineInput.tsx
8041
- import { forwardRef as forwardRef44, useId as useId12, useRef as useRef23 } from "react";
8042
- import { jsx as jsx228, jsxs as jsxs48 } from "react/jsx-runtime";
8088
+ import { forwardRef as forwardRef44, useId as useId13, useRef as useRef23 } from "react";
8089
+ import { jsx as jsx229, jsxs as jsxs49 } from "react/jsx-runtime";
8043
8090
  var InlineInput = forwardRef44(
8044
8091
  (props, ref) => {
8045
8092
  const {
@@ -8053,7 +8100,7 @@ var InlineInput = forwardRef44(
8053
8100
  hideIcon,
8054
8101
  ...rest
8055
8102
  } = props;
8056
- const genereatedId = useId12();
8103
+ const genereatedId = useId13();
8057
8104
  const uniqueId = id != null ? id : `${genereatedId}-InlineInput`;
8058
8105
  const hasErrorMessage = !!errorMessage;
8059
8106
  const hasError = !!error;
@@ -8062,9 +8109,9 @@ var InlineInput = forwardRef44(
8062
8109
  const descId = derivativeIdGenerator(uniqueId, "desc");
8063
8110
  const inputRef = useRef23(null);
8064
8111
  const combinedRef = useCombinedRef(ref, inputRef);
8065
- return /* @__PURE__ */ jsxs48("div", { className: InlineEdit_default.container, style: { width }, children: [
8066
- /* @__PURE__ */ jsxs48("div", { className: Input_default["input-group"], children: [
8067
- !isEditing && !hideIcon && /* @__PURE__ */ jsx228(
8112
+ return /* @__PURE__ */ jsxs49("div", { className: InlineEdit_default.container, style: { width }, children: [
8113
+ /* @__PURE__ */ jsxs49("div", { className: Input_default["input-group"], children: [
8114
+ !isEditing && !hideIcon && /* @__PURE__ */ jsx229(
8068
8115
  "span",
8069
8116
  {
8070
8117
  onClick: () => {
@@ -8072,10 +8119,10 @@ var InlineInput = forwardRef44(
8072
8119
  (_a = inputRef.current) == null ? void 0 : _a.focus();
8073
8120
  },
8074
8121
  className: InlineEdit_default["icon-wrapper"],
8075
- children: /* @__PURE__ */ jsx228(Icon, { icon: EditIcon, iconSize: "small" })
8122
+ children: /* @__PURE__ */ jsx229(Icon, { icon: EditIcon, iconSize: "small" })
8076
8123
  }
8077
8124
  ),
8078
- /* @__PURE__ */ jsx228(
8125
+ /* @__PURE__ */ jsx229(
8079
8126
  "input",
8080
8127
  {
8081
8128
  ...rest,
@@ -8106,12 +8153,12 @@ var InlineInput = forwardRef44(
8106
8153
  InlineInput.displayName = "InlineInput";
8107
8154
 
8108
8155
  // src/components/InlineEdit/InlineEditInput.tsx
8109
- import { jsx as jsx229 } from "react/jsx-runtime";
8156
+ import { jsx as jsx230 } from "react/jsx-runtime";
8110
8157
  var InlineEditInput = forwardRef45((props, ref) => {
8111
8158
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
8112
8159
  const inputRef = useRef24(null);
8113
8160
  const combinedRef = useCombinedRef(ref, inputRef);
8114
- return /* @__PURE__ */ jsx229(
8161
+ return /* @__PURE__ */ jsx230(
8115
8162
  InlineEdit,
8116
8163
  {
8117
8164
  onSetValue,
@@ -8121,7 +8168,7 @@ var InlineEditInput = forwardRef45((props, ref) => {
8121
8168
  onFocus,
8122
8169
  onChange,
8123
8170
  onBlur,
8124
- children: /* @__PURE__ */ jsx229(InlineInput, { ...rest, ref: combinedRef })
8171
+ children: /* @__PURE__ */ jsx230(InlineInput, { ...rest, ref: combinedRef })
8125
8172
  }
8126
8173
  );
8127
8174
  });
@@ -8146,9 +8193,9 @@ var InternalHeader_default = {
8146
8193
 
8147
8194
  // src/components/InternalHeader/NavigationItem.tsx
8148
8195
  import { forwardRef as forwardRef46 } from "react";
8149
- import { jsx as jsx230 } from "react/jsx-runtime";
8196
+ import { jsx as jsx231 } from "react/jsx-runtime";
8150
8197
  var NavigationItem = forwardRef46(({ title, isCurrent, ...rest }, ref) => {
8151
- return /* @__PURE__ */ jsx230(
8198
+ return /* @__PURE__ */ jsx231(
8152
8199
  "a",
8153
8200
  {
8154
8201
  ...rest,
@@ -8166,7 +8213,7 @@ var NavigationItem = forwardRef46(({ title, isCurrent, ...rest }, ref) => {
8166
8213
  });
8167
8214
 
8168
8215
  // src/components/InternalHeader/InternalHeader.tsx
8169
- import { jsx as jsx231, jsxs as jsxs49 } from "react/jsx-runtime";
8216
+ import { jsx as jsx232, jsxs as jsxs50 } from "react/jsx-runtime";
8170
8217
  var InternalHeader = (props) => {
8171
8218
  const {
8172
8219
  applicationDesc,
@@ -8199,7 +8246,7 @@ var InternalHeader = (props) => {
8199
8246
  const hasNavigationElements = !!navigationElements && navigationElements.length > 0;
8200
8247
  const hasContextMenuElements = !!contextMenuElements && contextMenuElements.length > 0;
8201
8248
  const hasNavInContextMenu = smallScreen && hasNavigationElements;
8202
- const navigation = hasNavigationElements && !smallScreen ? /* @__PURE__ */ jsx231("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx231(
8249
+ const navigation = hasNavigationElements && !smallScreen ? /* @__PURE__ */ jsx232("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx232(
8203
8250
  "ul",
8204
8251
  {
8205
8252
  className: cn(
@@ -8210,7 +8257,7 @@ var InternalHeader = (props) => {
8210
8257
  children: navigationElements.map((item, index) => {
8211
8258
  const { href, ...rest2 } = item;
8212
8259
  const isCurrent = href === currentPage;
8213
- return /* @__PURE__ */ jsx231("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx231(
8260
+ return /* @__PURE__ */ jsx232("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx232(
8214
8261
  NavigationItem,
8215
8262
  {
8216
8263
  href,
@@ -8223,7 +8270,7 @@ var InternalHeader = (props) => {
8223
8270
  }
8224
8271
  ) }) : null;
8225
8272
  const hasContextMenu = hasContextMenuElements || !!userProps || hasNavInContextMenu;
8226
- return /* @__PURE__ */ jsxs49(
8273
+ return /* @__PURE__ */ jsxs50(
8227
8274
  "div",
8228
8275
  {
8229
8276
  ...getBaseHTMLProps(
@@ -8238,7 +8285,7 @@ var InternalHeader = (props) => {
8238
8285
  rest
8239
8286
  ),
8240
8287
  children: [
8241
- /* @__PURE__ */ jsx231(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx231(
8288
+ /* @__PURE__ */ jsx232(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx232(
8242
8289
  "a",
8243
8290
  {
8244
8291
  href: applicationHref,
@@ -8247,11 +8294,11 @@ var InternalHeader = (props) => {
8247
8294
  children: applicationName
8248
8295
  }
8249
8296
  ) : applicationName }),
8250
- /* @__PURE__ */ jsx231(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
8251
- (hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx231("div", { className: InternalHeader_default["bar-separator"] }),
8297
+ /* @__PURE__ */ jsx232(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
8298
+ (hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx232("div", { className: InternalHeader_default["bar-separator"] }),
8252
8299
  navigation,
8253
- hasContextMenu && /* @__PURE__ */ jsxs49("div", { className: InternalHeader_default["context-menu-group"], children: [
8254
- /* @__PURE__ */ jsx231(
8300
+ hasContextMenu && /* @__PURE__ */ jsxs50("div", { className: InternalHeader_default["context-menu-group"], children: [
8301
+ /* @__PURE__ */ jsx232(
8255
8302
  Button,
8256
8303
  {
8257
8304
  ref: buttonRef,
@@ -8263,7 +8310,7 @@ var InternalHeader = (props) => {
8263
8310
  "aria-label": "\xE5pne meny"
8264
8311
  }
8265
8312
  ),
8266
- /* @__PURE__ */ jsx231(
8313
+ /* @__PURE__ */ jsx232(
8267
8314
  OverflowMenu,
8268
8315
  {
8269
8316
  isOpen: !contextMenuIsClosed,
@@ -8295,7 +8342,7 @@ var List_default = {
8295
8342
  };
8296
8343
 
8297
8344
  // src/components/List/List.tsx
8298
- import { jsx as jsx232 } from "react/jsx-runtime";
8345
+ import { jsx as jsx233 } from "react/jsx-runtime";
8299
8346
  var List = forwardRef47((props, ref) => {
8300
8347
  const {
8301
8348
  listType = "unordered",
@@ -8307,7 +8354,7 @@ var List = forwardRef47((props, ref) => {
8307
8354
  ...rest
8308
8355
  } = props;
8309
8356
  const List2 = listType === "ordered" ? "ol" : "ul";
8310
- return /* @__PURE__ */ jsx232(
8357
+ return /* @__PURE__ */ jsx233(
8311
8358
  List2,
8312
8359
  {
8313
8360
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -8325,10 +8372,10 @@ List.displayName = "List";
8325
8372
 
8326
8373
  // src/components/List/ListItem.tsx
8327
8374
  import { forwardRef as forwardRef48 } from "react";
8328
- import { jsx as jsx233 } from "react/jsx-runtime";
8375
+ import { jsx as jsx234 } from "react/jsx-runtime";
8329
8376
  var ListItem = forwardRef48(
8330
8377
  ({ className, ...rest }, ref) => {
8331
- return /* @__PURE__ */ jsx233("li", { ref, ...rest, className: cn(className, List_default.li) });
8378
+ return /* @__PURE__ */ jsx234("li", { ref, ...rest, className: cn(className, List_default.li) });
8332
8379
  }
8333
8380
  );
8334
8381
  ListItem.displayName = "ListItem";
@@ -8355,7 +8402,7 @@ var LocalMessage_default = {
8355
8402
  };
8356
8403
 
8357
8404
  // src/components/LocalMessage/LocalMessage.tsx
8358
- import { Fragment as Fragment8, jsx as jsx234, jsxs as jsxs50 } from "react/jsx-runtime";
8405
+ import { Fragment as Fragment8, jsx as jsx235, jsxs as jsxs51 } from "react/jsx-runtime";
8359
8406
  var purposeVariants2 = {
8360
8407
  info: {
8361
8408
  icon: InfoIcon
@@ -8390,9 +8437,9 @@ var LocalMessage = forwardRef49(
8390
8437
  } = props;
8391
8438
  const [isClosed, setClosed] = useState17(false);
8392
8439
  if (isClosed) {
8393
- return /* @__PURE__ */ jsx234(Fragment8, {});
8440
+ return /* @__PURE__ */ jsx235(Fragment8, {});
8394
8441
  }
8395
- return /* @__PURE__ */ jsxs50(
8442
+ return /* @__PURE__ */ jsxs51(
8396
8443
  "div",
8397
8444
  {
8398
8445
  ref,
@@ -8411,15 +8458,15 @@ var LocalMessage = forwardRef49(
8411
8458
  ),
8412
8459
  style: { ...htmlProps == null ? void 0 : htmlProps.style, width },
8413
8460
  children: [
8414
- /* @__PURE__ */ jsx234(
8461
+ /* @__PURE__ */ jsx235(
8415
8462
  Icon,
8416
8463
  {
8417
8464
  icon: purposeVariants2[purpose].icon,
8418
8465
  className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
8419
8466
  }
8420
8467
  ),
8421
- /* @__PURE__ */ jsx234("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx234("span", { children: message }) }),
8422
- closable && /* @__PURE__ */ jsx234(
8468
+ /* @__PURE__ */ jsx235("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx235("span", { children: message }) }),
8469
+ closable && /* @__PURE__ */ jsx235(
8423
8470
  Button,
8424
8471
  {
8425
8472
  icon: CloseIcon,
@@ -8444,7 +8491,7 @@ LocalMessage.displayName = "LocalMessage";
8444
8491
  import {
8445
8492
  forwardRef as forwardRef50,
8446
8493
  useEffect as useEffect20,
8447
- useId as useId13
8494
+ useId as useId14
8448
8495
  } from "react";
8449
8496
  import { createPortal as createPortal2 } from "react-dom";
8450
8497
 
@@ -8483,7 +8530,7 @@ var Modal_default = {
8483
8530
  };
8484
8531
 
8485
8532
  // src/components/Modal/Modal.tsx
8486
- import { jsx as jsx235, jsxs as jsxs51 } from "react/jsx-runtime";
8533
+ import { jsx as jsx236, jsxs as jsxs52 } from "react/jsx-runtime";
8487
8534
  var Modal = forwardRef50((props, ref) => {
8488
8535
  const {
8489
8536
  isOpen = false,
@@ -8498,7 +8545,7 @@ var Modal = forwardRef50((props, ref) => {
8498
8545
  htmlProps,
8499
8546
  ...rest
8500
8547
  } = props;
8501
- const generatedId = useId13();
8548
+ const generatedId = useId14();
8502
8549
  const modalId = id != null ? id : `${generatedId}-modal`;
8503
8550
  const headerId = `${modalId}-header`;
8504
8551
  const modalRef = useFocusTrap(isOpen, initialFocusRef);
@@ -8522,14 +8569,14 @@ var Modal = forwardRef50((props, ref) => {
8522
8569
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
8523
8570
  const hasTransitionedIn = useMountTransition(isOpen, 200);
8524
8571
  return isOpen || hasTransitionedIn ? createPortal2(
8525
- /* @__PURE__ */ jsx235(
8572
+ /* @__PURE__ */ jsx236(
8526
8573
  "div",
8527
8574
  {
8528
8575
  className: cn(
8529
8576
  Modal_default.backdrop,
8530
8577
  hasTransitionedIn && isOpen ? Modal_default["backdrop--visible"] : Modal_default["backdrop--hidden"]
8531
8578
  ),
8532
- children: /* @__PURE__ */ jsxs51(
8579
+ children: /* @__PURE__ */ jsxs52(
8533
8580
  Paper,
8534
8581
  {
8535
8582
  ...getBaseHTMLProps(
@@ -8547,11 +8594,11 @@ var Modal = forwardRef50((props, ref) => {
8547
8594
  id: modalId,
8548
8595
  elevation: 4,
8549
8596
  children: [
8550
- /* @__PURE__ */ jsxs51("div", { className: Modal_default.content, children: [
8551
- header && /* @__PURE__ */ jsx235("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx235(Typography, { typographyType: "headingSans03", children: header }) : header }),
8597
+ /* @__PURE__ */ jsxs52("div", { className: Modal_default.content, children: [
8598
+ header && /* @__PURE__ */ jsx236("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx236(Typography, { typographyType: "headingSans03", children: header }) : header }),
8552
8599
  children
8553
8600
  ] }),
8554
- onClose && /* @__PURE__ */ jsx235(
8601
+ onClose && /* @__PURE__ */ jsx236(
8555
8602
  Button,
8556
8603
  {
8557
8604
  size: "small",
@@ -8574,11 +8621,11 @@ Modal.displayName = "Modal";
8574
8621
 
8575
8622
  // src/components/Modal/ModalBody.tsx
8576
8623
  import { forwardRef as forwardRef51 } from "react";
8577
- import { jsx as jsx236 } from "react/jsx-runtime";
8624
+ import { jsx as jsx237 } from "react/jsx-runtime";
8578
8625
  var ModalBody = forwardRef51(
8579
8626
  (props, ref) => {
8580
8627
  const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
8581
- return /* @__PURE__ */ jsx236(
8628
+ return /* @__PURE__ */ jsx237(
8582
8629
  "div",
8583
8630
  {
8584
8631
  ref,
@@ -8603,10 +8650,10 @@ ModalBody.displayName = "ModalBody";
8603
8650
 
8604
8651
  // src/components/Modal/ModalActions.tsx
8605
8652
  import { forwardRef as forwardRef52 } from "react";
8606
- import { jsx as jsx237 } from "react/jsx-runtime";
8653
+ import { jsx as jsx238 } from "react/jsx-runtime";
8607
8654
  var ModalActions = forwardRef52(
8608
8655
  ({ className, ...rest }, ref) => {
8609
- return /* @__PURE__ */ jsx237("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
8656
+ return /* @__PURE__ */ jsx238("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
8610
8657
  }
8611
8658
  );
8612
8659
  ModalActions.displayName = "ModalActions";
@@ -8660,7 +8707,7 @@ function PaginationGenerator(pagesAmount, activePage) {
8660
8707
  }
8661
8708
 
8662
8709
  // src/components/Select/Select.tsx
8663
- import { forwardRef as forwardRef53, useId as useId14 } from "react";
8710
+ import { forwardRef as forwardRef53, useId as useId15 } from "react";
8664
8711
  import {
8665
8712
  default as ReactSelect
8666
8713
  } from "react-select";
@@ -9041,7 +9088,7 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
9041
9088
  import {
9042
9089
  components
9043
9090
  } from "react-select";
9044
- import { jsx as jsx238, jsxs as jsxs52 } from "react/jsx-runtime";
9091
+ import { jsx as jsx239, jsxs as jsxs53 } from "react/jsx-runtime";
9045
9092
  var {
9046
9093
  Option,
9047
9094
  NoOptionsMessage,
@@ -9052,27 +9099,27 @@ var {
9052
9099
  MultiValueRemove,
9053
9100
  Control
9054
9101
  } = components;
9055
- var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs52(Option, { ...props, children: [
9056
- props.isSelected && /* @__PURE__ */ jsx238(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9102
+ var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs53(Option, { ...props, children: [
9103
+ props.isSelected && /* @__PURE__ */ jsx239(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9057
9104
  props.children
9058
9105
  ] });
9059
- var CustomOption = (props, Element) => /* @__PURE__ */ jsx238(Option, { ...props, children: /* @__PURE__ */ jsx238(Element, { ...props }) });
9060
- var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ jsx238(SingleValue, { ...props, children: /* @__PURE__ */ jsx238("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx238(Element, { ...props }) : props.children }) });
9061
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx238(NoOptionsMessage, { ...props, children: "Ingen treff" });
9062
- var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx238(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx238(Icon, { icon: CloseSmallIcon, iconSize: getFormInputIconSize(size2) }) });
9063
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx238(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx238(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9106
+ var CustomOption = (props, Element) => /* @__PURE__ */ jsx239(Option, { ...props, children: /* @__PURE__ */ jsx239(Element, { ...props }) });
9107
+ var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ jsx239(SingleValue, { ...props, children: /* @__PURE__ */ jsx239("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx239(Element, { ...props }) : props.children }) });
9108
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx239(NoOptionsMessage, { ...props, children: "Ingen treff" });
9109
+ var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx239(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx239(Icon, { icon: CloseSmallIcon, iconSize: getFormInputIconSize(size2) }) });
9110
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx239(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx239(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9064
9111
  var DDSDropdownIndicator = (props, size2) => {
9065
9112
  const { className, ...rest } = props;
9066
- return /* @__PURE__ */ jsx238(
9113
+ return /* @__PURE__ */ jsx239(
9067
9114
  DropdownIndicator,
9068
9115
  {
9069
9116
  ...rest,
9070
9117
  className: cn(className, Select_default["dropdown-indicator"]),
9071
- children: /* @__PURE__ */ jsx238(Icon, { icon: ChevronDownIcon, iconSize: getFormInputIconSize(size2) })
9118
+ children: /* @__PURE__ */ jsx239(Icon, { icon: ChevronDownIcon, iconSize: getFormInputIconSize(size2) })
9072
9119
  }
9073
9120
  );
9074
9121
  };
9075
- var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx238(
9122
+ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx239(
9076
9123
  Input2,
9077
9124
  {
9078
9125
  ...props,
@@ -9082,11 +9129,11 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx238(
9082
9129
  );
9083
9130
  var DDSControl = (props, componentSize, readOnly, icon2, dataTestId) => {
9084
9131
  const { className, ...rest } = props;
9085
- return /* @__PURE__ */ jsx238(
9132
+ return /* @__PURE__ */ jsx239(
9086
9133
  "div",
9087
9134
  {
9088
9135
  "data-testid": dataTestId ? dataTestId + "-control" : void 0,
9089
- children: /* @__PURE__ */ jsxs52(
9136
+ children: /* @__PURE__ */ jsxs53(
9090
9137
  Control,
9091
9138
  {
9092
9139
  ...rest,
@@ -9097,7 +9144,7 @@ var DDSControl = (props, componentSize, readOnly, icon2, dataTestId) => {
9097
9144
  readOnly && Select_default["control--readonly"]
9098
9145
  ),
9099
9146
  children: [
9100
- icon2 && /* @__PURE__ */ jsx238(
9147
+ icon2 && /* @__PURE__ */ jsx239(
9101
9148
  Icon,
9102
9149
  {
9103
9150
  icon: icon2,
@@ -9114,7 +9161,7 @@ var DDSControl = (props, componentSize, readOnly, icon2, dataTestId) => {
9114
9161
  };
9115
9162
 
9116
9163
  // src/components/Select/Select.tsx
9117
- import { jsx as jsx239, jsxs as jsxs53 } from "react/jsx-runtime";
9164
+ import { jsx as jsx240, jsxs as jsxs54 } from "react/jsx-runtime";
9118
9165
  var getPlaceholder = (placeholder2, isMulti) => placeholder2 ? placeholder2 : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
9119
9166
  function SelectInner(props, ref) {
9120
9167
  const {
@@ -9143,7 +9190,7 @@ function SelectInner(props, ref) {
9143
9190
  "data-testid": dataTestId,
9144
9191
  ...rest
9145
9192
  } = props;
9146
- const generatedId = useId14();
9193
+ const generatedId = useId15();
9147
9194
  const uniqueId = id != null ? id : `${generatedId}-select`;
9148
9195
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
9149
9196
  const hasLabel = !!label;
@@ -9191,7 +9238,7 @@ function SelectInner(props, ref) {
9191
9238
  menuPortalTarget: document == null ? void 0 : document.body,
9192
9239
  ...rest
9193
9240
  };
9194
- return /* @__PURE__ */ jsxs53(
9241
+ return /* @__PURE__ */ jsxs54(
9195
9242
  "div",
9196
9243
  {
9197
9244
  className: cn(
@@ -9201,8 +9248,8 @@ function SelectInner(props, ref) {
9201
9248
  ),
9202
9249
  style: { ...style, width },
9203
9250
  children: [
9204
- hasLabel && /* @__PURE__ */ jsx239(Label, { htmlFor: uniqueId, showRequiredStyling, children: label }),
9205
- /* @__PURE__ */ jsx239(ReactSelect, { ...reactSelectProps, ref }),
9251
+ hasLabel && /* @__PURE__ */ jsx240(Label, { htmlFor: uniqueId, showRequiredStyling, children: label }),
9252
+ /* @__PURE__ */ jsx240(ReactSelect, { ...reactSelectProps, ref }),
9206
9253
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
9207
9254
  ]
9208
9255
  }
@@ -9215,7 +9262,7 @@ Select.displayName = "Select";
9215
9262
  var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2 }));
9216
9263
 
9217
9264
  // src/components/Pagination/Pagination.tsx
9218
- import { jsx as jsx240, jsxs as jsxs54 } from "react/jsx-runtime";
9265
+ import { jsx as jsx241, jsxs as jsxs55 } from "react/jsx-runtime";
9219
9266
  var Pagination = forwardRef54(
9220
9267
  (props, ref) => {
9221
9268
  const {
@@ -9259,7 +9306,7 @@ var Pagination = forwardRef54(
9259
9306
  };
9260
9307
  const listItems = items.length > 0 ? items.map((item, i2) => {
9261
9308
  const isActive = item === activePage;
9262
- return /* @__PURE__ */ jsx240("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ jsx240(
9309
+ return /* @__PURE__ */ jsx241("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ jsx241(
9263
9310
  Button,
9264
9311
  {
9265
9312
  purpose: isActive ? "primary" : "secondary",
@@ -9270,7 +9317,7 @@ var Pagination = forwardRef54(
9270
9317
  "aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
9271
9318
  children: item
9272
9319
  }
9273
- ) : /* @__PURE__ */ jsx240(
9320
+ ) : /* @__PURE__ */ jsx241(
9274
9321
  Icon,
9275
9322
  {
9276
9323
  icon: MoreHorizontalIcon,
@@ -9278,7 +9325,7 @@ var Pagination = forwardRef54(
9278
9325
  }
9279
9326
  ) }, `pagination-item-${i2}`);
9280
9327
  }) : void 0;
9281
- const previousPageButton = /* @__PURE__ */ jsx240(
9328
+ const previousPageButton = /* @__PURE__ */ jsx241(
9282
9329
  Button,
9283
9330
  {
9284
9331
  purpose: "secondary",
@@ -9290,7 +9337,7 @@ var Pagination = forwardRef54(
9290
9337
  "aria-label": "G\xE5 til forrige siden"
9291
9338
  }
9292
9339
  );
9293
- const nextPageButton = /* @__PURE__ */ jsx240(
9340
+ const nextPageButton = /* @__PURE__ */ jsx241(
9294
9341
  Button,
9295
9342
  {
9296
9343
  purpose: "secondary",
@@ -9307,8 +9354,8 @@ var Pagination = forwardRef54(
9307
9354
  } : { className: Pagination_default.nav };
9308
9355
  const isOnFirstPage = activePage === 1;
9309
9356
  const isOnLastPage = activePage === pagesLength;
9310
- const navigation = withPagination ? /* @__PURE__ */ jsx240("nav", { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs54("ol", { className: Pagination_default.list, children: [
9311
- /* @__PURE__ */ jsx240(
9357
+ const navigation = withPagination ? /* @__PURE__ */ jsx241("nav", { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs55("ol", { className: Pagination_default.list, children: [
9358
+ /* @__PURE__ */ jsx241(
9312
9359
  "li",
9313
9360
  {
9314
9361
  className: cn(
@@ -9320,7 +9367,7 @@ var Pagination = forwardRef54(
9320
9367
  }
9321
9368
  ),
9322
9369
  listItems,
9323
- /* @__PURE__ */ jsx240(
9370
+ /* @__PURE__ */ jsx241(
9324
9371
  "li",
9325
9372
  {
9326
9373
  className: cn(
@@ -9332,8 +9379,8 @@ var Pagination = forwardRef54(
9332
9379
  }
9333
9380
  )
9334
9381
  ] }) }) : null;
9335
- const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx240("nav", { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs54("ol", { className: Pagination_default.list, children: [
9336
- /* @__PURE__ */ jsx240(
9382
+ const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx241("nav", { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs55("ol", { className: Pagination_default.list, children: [
9383
+ /* @__PURE__ */ jsx241(
9337
9384
  "li",
9338
9385
  {
9339
9386
  className: cn(
@@ -9341,7 +9388,7 @@ var Pagination = forwardRef54(
9341
9388
  isOnFirstPage && Pagination_default["list__item--hidden"]
9342
9389
  ),
9343
9390
  "aria-hidden": isOnFirstPage,
9344
- children: /* @__PURE__ */ jsx240(
9391
+ children: /* @__PURE__ */ jsx241(
9345
9392
  Button,
9346
9393
  {
9347
9394
  purpose: "secondary",
@@ -9355,7 +9402,7 @@ var Pagination = forwardRef54(
9355
9402
  )
9356
9403
  }
9357
9404
  ),
9358
- /* @__PURE__ */ jsx240(
9405
+ /* @__PURE__ */ jsx241(
9359
9406
  "li",
9360
9407
  {
9361
9408
  className: cn(
@@ -9366,7 +9413,7 @@ var Pagination = forwardRef54(
9366
9413
  children: previousPageButton
9367
9414
  }
9368
9415
  ),
9369
- /* @__PURE__ */ jsx240("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx240(
9416
+ /* @__PURE__ */ jsx241("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx241(
9370
9417
  Button,
9371
9418
  {
9372
9419
  size: "small",
@@ -9376,7 +9423,7 @@ var Pagination = forwardRef54(
9376
9423
  children: activePage
9377
9424
  }
9378
9425
  ) }),
9379
- /* @__PURE__ */ jsx240(
9426
+ /* @__PURE__ */ jsx241(
9380
9427
  "li",
9381
9428
  {
9382
9429
  className: cn(
@@ -9387,7 +9434,7 @@ var Pagination = forwardRef54(
9387
9434
  children: nextPageButton
9388
9435
  }
9389
9436
  ),
9390
- /* @__PURE__ */ jsx240(
9437
+ /* @__PURE__ */ jsx241(
9391
9438
  "li",
9392
9439
  {
9393
9440
  className: cn(
@@ -9395,7 +9442,7 @@ var Pagination = forwardRef54(
9395
9442
  isOnLastPage && Pagination_default["list__item--hidden"]
9396
9443
  ),
9397
9444
  "aria-hidden": isOnLastPage,
9398
- children: /* @__PURE__ */ jsx240(
9445
+ children: /* @__PURE__ */ jsx241(
9399
9446
  Button,
9400
9447
  {
9401
9448
  purpose: "secondary",
@@ -9413,7 +9460,7 @@ var Pagination = forwardRef54(
9413
9460
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
9414
9461
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
9415
9462
  const navigationToBeRendered = smallScreen ? smallScreenNavigation : navigation;
9416
- return !withCounter && !withSelect ? navigationToBeRendered : /* @__PURE__ */ jsxs54(
9463
+ return !withCounter && !withSelect ? navigationToBeRendered : /* @__PURE__ */ jsxs55(
9417
9464
  "div",
9418
9465
  {
9419
9466
  ...getBaseHTMLProps(
@@ -9427,8 +9474,8 @@ var Pagination = forwardRef54(
9427
9474
  rest
9428
9475
  ),
9429
9476
  children: [
9430
- /* @__PURE__ */ jsxs54("div", { className: Pagination_default.indicators, children: [
9431
- withSelect && /* @__PURE__ */ jsx240(
9477
+ /* @__PURE__ */ jsxs55("div", { className: Pagination_default.indicators, children: [
9478
+ withSelect && /* @__PURE__ */ jsx241(
9432
9479
  Select,
9433
9480
  {
9434
9481
  options: selectOptions,
@@ -9444,7 +9491,7 @@ var Pagination = forwardRef54(
9444
9491
  "aria-label": "Antall elementer per side"
9445
9492
  }
9446
9493
  ),
9447
- withCounter && /* @__PURE__ */ jsxs54(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
9494
+ withCounter && /* @__PURE__ */ jsxs55(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
9448
9495
  "Viser ",
9449
9496
  activePageFirstItem,
9450
9497
  "-",
@@ -9474,7 +9521,7 @@ var Popover_default = {
9474
9521
  };
9475
9522
 
9476
9523
  // src/components/Popover/Popover.tsx
9477
- import { jsx as jsx241, jsxs as jsxs55 } from "react/jsx-runtime";
9524
+ import { jsx as jsx242, jsxs as jsxs56 } from "react/jsx-runtime";
9478
9525
  var Popover = forwardRef55(
9479
9526
  (props, ref) => {
9480
9527
  const {
@@ -9515,7 +9562,7 @@ var Popover = forwardRef55(
9515
9562
  useOnClickOutside(elements, () => {
9516
9563
  if (isOpen) onClose && onClose();
9517
9564
  });
9518
- return isOpen || hasTransitionedIn ? /* @__PURE__ */ jsxs55(
9565
+ return isOpen || hasTransitionedIn ? /* @__PURE__ */ jsxs56(
9519
9566
  Paper,
9520
9567
  {
9521
9568
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9532,15 +9579,15 @@ var Popover = forwardRef55(
9532
9579
  focus_default.focusable
9533
9580
  ),
9534
9581
  children: [
9535
- title && /* @__PURE__ */ jsx241("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ jsx241(Typography, { typographyType: "headingSans02", children: title }) : title }),
9536
- /* @__PURE__ */ jsx241(
9582
+ title && /* @__PURE__ */ jsx242("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ jsx242(Typography, { typographyType: "headingSans02", children: title }) : title }),
9583
+ /* @__PURE__ */ jsx242(
9537
9584
  "div",
9538
9585
  {
9539
9586
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
9540
9587
  children
9541
9588
  }
9542
9589
  ),
9543
- withCloseButton && /* @__PURE__ */ jsx241(
9590
+ withCloseButton && /* @__PURE__ */ jsx242(
9544
9591
  Button,
9545
9592
  {
9546
9593
  icon: CloseIcon,
@@ -9563,11 +9610,11 @@ import {
9563
9610
  Children as ReactChildren5,
9564
9611
  cloneElement as cloneElement6,
9565
9612
  isValidElement as isValidElement7,
9566
- useId as useId15,
9613
+ useId as useId16,
9567
9614
  useRef as useRef26,
9568
9615
  useState as useState19
9569
9616
  } from "react";
9570
- import { Fragment as Fragment9, jsx as jsx242 } from "react/jsx-runtime";
9617
+ import { Fragment as Fragment9, jsx as jsx243 } from "react/jsx-runtime";
9571
9618
  var PopoverGroup = ({
9572
9619
  isOpen = false,
9573
9620
  onCloseButtonClick,
@@ -9576,7 +9623,7 @@ var PopoverGroup = ({
9576
9623
  popoverId
9577
9624
  }) => {
9578
9625
  const [open, setOpen] = useState19(isOpen);
9579
- const generatedId = useId15();
9626
+ const generatedId = useId16();
9580
9627
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
9581
9628
  const handleOnCloseButtonClick = () => {
9582
9629
  setOpen(false);
@@ -9613,7 +9660,7 @@ var PopoverGroup = ({
9613
9660
  onClose: handleClose
9614
9661
  }));
9615
9662
  });
9616
- return /* @__PURE__ */ jsx242(Fragment9, { children: Children8 });
9663
+ return /* @__PURE__ */ jsx243(Fragment9, { children: Children8 });
9617
9664
  };
9618
9665
  PopoverGroup.displayName = "PopoverGroup";
9619
9666
 
@@ -9661,7 +9708,7 @@ var ProgressTracker_default = {
9661
9708
 
9662
9709
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
9663
9710
  import { useMemo as useMemo2 } from "react";
9664
- import { Fragment as Fragment10, jsx as jsx243, jsxs as jsxs56 } from "react/jsx-runtime";
9711
+ import { Fragment as Fragment10, jsx as jsx244, jsxs as jsxs57 } from "react/jsx-runtime";
9665
9712
  var toItemState = (active, completed, disabled) => {
9666
9713
  if (disabled) {
9667
9714
  return "disabled";
@@ -9693,15 +9740,15 @@ var ProgressTrackerItem = (props) => {
9693
9740
  const itemState = toItemState(active, completed, disabled);
9694
9741
  const stepNumberContent = useMemo2(() => {
9695
9742
  if (completed) {
9696
- return /* @__PURE__ */ jsx243(Icon, { icon: CheckIcon, iconSize: "small" });
9743
+ return /* @__PURE__ */ jsx244(Icon, { icon: CheckIcon, iconSize: "small" });
9697
9744
  }
9698
9745
  if (icon2 !== void 0) {
9699
- return /* @__PURE__ */ jsx243(Icon, { icon: icon2, iconSize: "small" });
9746
+ return /* @__PURE__ */ jsx244(Icon, { icon: icon2, iconSize: "small" });
9700
9747
  }
9701
9748
  return index + 1;
9702
9749
  }, [completed, icon2, index]);
9703
- const stepContent = /* @__PURE__ */ jsxs56(Fragment10, { children: [
9704
- /* @__PURE__ */ jsx243(
9750
+ const stepContent = /* @__PURE__ */ jsxs57(Fragment10, { children: [
9751
+ /* @__PURE__ */ jsx244(
9705
9752
  "div",
9706
9753
  {
9707
9754
  "aria-hidden": true,
@@ -9713,7 +9760,7 @@ var ProgressTrackerItem = (props) => {
9713
9760
  children: stepNumberContent
9714
9761
  }
9715
9762
  ),
9716
- /* @__PURE__ */ jsxs56(
9763
+ /* @__PURE__ */ jsxs57(
9717
9764
  "div",
9718
9765
  {
9719
9766
  className: cn(
@@ -9722,13 +9769,13 @@ var ProgressTrackerItem = (props) => {
9722
9769
  typographyStyles_default["body-sans-03"]
9723
9770
  ),
9724
9771
  children: [
9725
- /* @__PURE__ */ jsx243(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
9772
+ /* @__PURE__ */ jsx244(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
9726
9773
  children
9727
9774
  ]
9728
9775
  }
9729
9776
  )
9730
9777
  ] });
9731
- return /* @__PURE__ */ jsx243("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ jsx243(
9778
+ return /* @__PURE__ */ jsx244("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ jsx244(
9732
9779
  "button",
9733
9780
  {
9734
9781
  onClick: !disabled && handleStepChange ? () => handleStepChange(index) : void 0,
@@ -9736,12 +9783,12 @@ var ProgressTrackerItem = (props) => {
9736
9783
  className: cn(ProgressTracker_default["item-button"], focusable),
9737
9784
  children: stepContent
9738
9785
  }
9739
- ) : /* @__PURE__ */ jsx243("div", { className: cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"]), children: stepContent }) });
9786
+ ) : /* @__PURE__ */ jsx244("div", { className: cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"]), children: stepContent }) });
9740
9787
  };
9741
9788
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
9742
9789
 
9743
9790
  // src/components/ProgressTracker/ProgressTracker.tsx
9744
- import { jsx as jsx244, jsxs as jsxs57 } from "react/jsx-runtime";
9791
+ import { jsx as jsx245, jsxs as jsxs58 } from "react/jsx-runtime";
9745
9792
  var ProgressTracker = (() => {
9746
9793
  const Res = forwardRef56((props, ref) => {
9747
9794
  const {
@@ -9773,14 +9820,14 @@ var ProgressTracker = (() => {
9773
9820
  const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
9774
9821
  return itemsWithConnectorsBetween;
9775
9822
  }, [children]);
9776
- return /* @__PURE__ */ jsx244(
9823
+ return /* @__PURE__ */ jsx245(
9777
9824
  ProgressTrackerContext.Provider,
9778
9825
  {
9779
9826
  value: {
9780
9827
  activeStep: thisActiveStep,
9781
9828
  handleStepChange: handleChange
9782
9829
  },
9783
- children: /* @__PURE__ */ jsx244("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx244("ol", { className: ProgressTracker_default.list, children: steps }) })
9830
+ children: /* @__PURE__ */ jsx245("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx245("ol", { className: ProgressTracker_default.list, children: steps }) })
9784
9831
  }
9785
9832
  );
9786
9833
  });
@@ -9804,8 +9851,8 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
9804
9851
  if (index === 0) {
9805
9852
  return child;
9806
9853
  }
9807
- return /* @__PURE__ */ jsxs57(Fragment11, { children: [
9808
- /* @__PURE__ */ jsx244("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
9854
+ return /* @__PURE__ */ jsxs58(Fragment11, { children: [
9855
+ /* @__PURE__ */ jsx245("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
9809
9856
  child
9810
9857
  ] }, index);
9811
9858
  });
@@ -9813,7 +9860,7 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
9813
9860
  // src/components/Search/Search.tsx
9814
9861
  import {
9815
9862
  forwardRef as forwardRef58,
9816
- useId as useId16,
9863
+ useId as useId17,
9817
9864
  useState as useState21
9818
9865
  } from "react";
9819
9866
 
@@ -9875,7 +9922,7 @@ function createEmptyChangeEvent(inputElementId) {
9875
9922
 
9876
9923
  // src/components/Search/SearchSuggestions.tsx
9877
9924
  import { forwardRef as forwardRef57 } from "react";
9878
- import { jsx as jsx245, jsxs as jsxs58 } from "react/jsx-runtime";
9925
+ import { jsx as jsx246, jsxs as jsxs59 } from "react/jsx-runtime";
9879
9926
  var SearchSuggestions = forwardRef57((props, ref) => {
9880
9927
  const {
9881
9928
  id,
@@ -9895,14 +9942,14 @@ var SearchSuggestions = forwardRef57((props, ref) => {
9895
9942
  );
9896
9943
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
9897
9944
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
9898
- const renderedSuggestions = /* @__PURE__ */ jsx245(
9945
+ const renderedSuggestions = /* @__PURE__ */ jsx246(
9899
9946
  "ul",
9900
9947
  {
9901
9948
  role: "listbox",
9902
9949
  "aria-labelledby": suggestionsHeaderId,
9903
9950
  className: utilStyles_default["remove-list-styling"],
9904
9951
  children: suggestionsToRender.map((suggestion, index) => {
9905
- return /* @__PURE__ */ jsx245("li", { role: "option", children: /* @__PURE__ */ jsx245(
9952
+ return /* @__PURE__ */ jsx246("li", { role: "option", children: /* @__PURE__ */ jsx246(
9906
9953
  OverflowMenuItem,
9907
9954
  {
9908
9955
  index,
@@ -9918,7 +9965,7 @@ var SearchSuggestions = forwardRef57((props, ref) => {
9918
9965
  })
9919
9966
  }
9920
9967
  );
9921
- return /* @__PURE__ */ jsxs58(
9968
+ return /* @__PURE__ */ jsxs59(
9922
9969
  Paper,
9923
9970
  {
9924
9971
  ...getBaseHTMLProps(
@@ -9937,7 +9984,7 @@ var SearchSuggestions = forwardRef57((props, ref) => {
9937
9984
  "aria-hidden": !showSuggestions,
9938
9985
  border: "default",
9939
9986
  children: [
9940
- /* @__PURE__ */ jsx245(
9987
+ /* @__PURE__ */ jsx246(
9941
9988
  "span",
9942
9989
  {
9943
9990
  id: suggestionsHeaderId,
@@ -9956,7 +10003,7 @@ var SearchSuggestions = forwardRef57((props, ref) => {
9956
10003
  SearchSuggestions.displayName = "SearchSuggestions";
9957
10004
 
9958
10005
  // src/components/Search/Search.tsx
9959
- import { Fragment as Fragment12, jsx as jsx246, jsxs as jsxs59 } from "react/jsx-runtime";
10006
+ import { Fragment as Fragment12, jsx as jsx247, jsxs as jsxs60 } from "react/jsx-runtime";
9960
10007
  var getIconSize = (size2) => {
9961
10008
  switch (size2) {
9962
10009
  case "large":
@@ -9983,7 +10030,7 @@ var Search = forwardRef58(
9983
10030
  ...rest
9984
10031
  }, ref) => {
9985
10032
  var _a;
9986
- const generatedId = useId16();
10033
+ const generatedId = useId17();
9987
10034
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
9988
10035
  const hasLabel = !!label;
9989
10036
  const tipId = derivativeIdGenerator(uniqueId, "tip");
@@ -10011,10 +10058,10 @@ var Search = forwardRef58(
10011
10058
  } = buttonProps != null ? buttonProps : {};
10012
10059
  const hasSuggestions = !!context.suggestions;
10013
10060
  const showSearchButton = !!buttonProps && !!onClick;
10014
- return /* @__PURE__ */ jsxs59("div", { className: Search_default.container, children: [
10015
- hasLabel && /* @__PURE__ */ jsx246(Label, { htmlFor: uniqueId, children: label }),
10016
- /* @__PURE__ */ jsxs59("div", { children: [
10017
- /* @__PURE__ */ jsxs59(
10061
+ return /* @__PURE__ */ jsxs60("div", { className: Search_default.container, children: [
10062
+ hasLabel && /* @__PURE__ */ jsx247(Label, { htmlFor: uniqueId, children: label }),
10063
+ /* @__PURE__ */ jsxs60("div", { children: [
10064
+ /* @__PURE__ */ jsxs60(
10018
10065
  "div",
10019
10066
  {
10020
10067
  className: cn(
@@ -10023,8 +10070,8 @@ var Search = forwardRef58(
10023
10070
  ),
10024
10071
  style,
10025
10072
  children: [
10026
- /* @__PURE__ */ jsxs59("div", { className: Search_default["input-group"], children: [
10027
- /* @__PURE__ */ jsx246(
10073
+ /* @__PURE__ */ jsxs60("div", { className: Search_default["input-group"], children: [
10074
+ /* @__PURE__ */ jsx247(
10028
10075
  Icon,
10029
10076
  {
10030
10077
  icon: SearchIcon,
@@ -10032,7 +10079,7 @@ var Search = forwardRef58(
10032
10079
  className: cn(Search_default["search-icon"])
10033
10080
  }
10034
10081
  ),
10035
- /* @__PURE__ */ jsx246(
10082
+ /* @__PURE__ */ jsx247(
10036
10083
  Input,
10037
10084
  {
10038
10085
  ...rest,
@@ -10060,8 +10107,8 @@ var Search = forwardRef58(
10060
10107
  )
10061
10108
  }
10062
10109
  ),
10063
- hasSuggestions && /* @__PURE__ */ jsxs59(Fragment12, { children: [
10064
- /* @__PURE__ */ jsx246(
10110
+ hasSuggestions && /* @__PURE__ */ jsxs60(Fragment12, { children: [
10111
+ /* @__PURE__ */ jsx247(
10065
10112
  SearchSuggestions,
10066
10113
  {
10067
10114
  id: suggestionsId,
@@ -10073,9 +10120,9 @@ var Search = forwardRef58(
10073
10120
  componentSize
10074
10121
  }
10075
10122
  ),
10076
- /* @__PURE__ */ jsx246(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10123
+ /* @__PURE__ */ jsx247(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10077
10124
  ] }),
10078
- hasValue && /* @__PURE__ */ jsx246(
10125
+ hasValue && /* @__PURE__ */ jsx247(
10079
10126
  Button,
10080
10127
  {
10081
10128
  icon: CloseSmallIcon,
@@ -10087,7 +10134,7 @@ var Search = forwardRef58(
10087
10134
  }
10088
10135
  )
10089
10136
  ] }),
10090
- showSearchButton && /* @__PURE__ */ jsx246(
10137
+ showSearchButton && /* @__PURE__ */ jsx247(
10091
10138
  Button,
10092
10139
  {
10093
10140
  size: componentSize,
@@ -10112,7 +10159,7 @@ import {
10112
10159
  useRef as useRef27,
10113
10160
  useState as useState22
10114
10161
  } from "react";
10115
- import { jsx as jsx247 } from "react/jsx-runtime";
10162
+ import { jsx as jsx248 } from "react/jsx-runtime";
10116
10163
  var SearchAutocompleteWrapper = (props) => {
10117
10164
  const {
10118
10165
  value,
@@ -10188,7 +10235,7 @@ var SearchAutocompleteWrapper = (props) => {
10188
10235
  inputValue,
10189
10236
  onSugggestionClick: handleSuggestionClick
10190
10237
  };
10191
- return /* @__PURE__ */ jsx247(AutocompleteSearchContext.Provider, { value: contextProps, children });
10238
+ return /* @__PURE__ */ jsx248(AutocompleteSearchContext.Provider, { value: contextProps, children });
10192
10239
  };
10193
10240
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
10194
10241
 
@@ -10198,7 +10245,7 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
10198
10245
  Search2.Suggestions = SearchSuggestions;
10199
10246
 
10200
10247
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
10201
- import { forwardRef as forwardRef60, useId as useId17 } from "react";
10248
+ import { forwardRef as forwardRef60, useId as useId18 } from "react";
10202
10249
 
10203
10250
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
10204
10251
  import { createContext as createContext5, useContext as useContext8 } from "react";
@@ -10230,10 +10277,10 @@ var SelectionControl_default = {
10230
10277
  };
10231
10278
 
10232
10279
  // src/components/SelectionControl/SelectionControl.styles.tsx
10233
- import { jsx as jsx248 } from "react/jsx-runtime";
10280
+ import { jsx as jsx249 } from "react/jsx-runtime";
10234
10281
  var SelectionControl = forwardRef59((props, ref) => {
10235
10282
  const { controlType, className, ...rest } = props;
10236
- return /* @__PURE__ */ jsx248(
10283
+ return /* @__PURE__ */ jsx249(
10237
10284
  "span",
10238
10285
  {
10239
10286
  ref,
@@ -10257,7 +10304,7 @@ var Label2 = forwardRef59(
10257
10304
  className,
10258
10305
  ...rest
10259
10306
  } = props;
10260
- return /* @__PURE__ */ jsx248(
10307
+ return /* @__PURE__ */ jsx249(
10261
10308
  "label",
10262
10309
  {
10263
10310
  ref,
@@ -10288,7 +10335,7 @@ var selectionControlTypographyProps = {
10288
10335
  };
10289
10336
 
10290
10337
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
10291
- import { jsx as jsx249, jsxs as jsxs60 } from "react/jsx-runtime";
10338
+ import { jsx as jsx250, jsxs as jsxs61 } from "react/jsx-runtime";
10292
10339
  var Checkbox = forwardRef60(
10293
10340
  (props, ref) => {
10294
10341
  const {
@@ -10304,7 +10351,7 @@ var Checkbox = forwardRef60(
10304
10351
  htmlProps = {},
10305
10352
  ...rest
10306
10353
  } = props;
10307
- const generatedId = useId17();
10354
+ const generatedId = useId18();
10308
10355
  const uniqueId = id != null ? id : `${generatedId}-checkbox`;
10309
10356
  const checkboxGroup = useCheckboxGroup();
10310
10357
  const hasLabel = !!label;
@@ -10313,7 +10360,7 @@ var Checkbox = forwardRef60(
10313
10360
  className: htmlPropsClassName,
10314
10361
  ...restHtmlProps
10315
10362
  } = htmlProps;
10316
- return /* @__PURE__ */ jsxs60(
10363
+ return /* @__PURE__ */ jsxs61(
10317
10364
  Label2,
10318
10365
  {
10319
10366
  hasError: error || (checkboxGroup == null ? void 0 : checkboxGroup.error),
@@ -10325,7 +10372,7 @@ var Checkbox = forwardRef60(
10325
10372
  className: cn(className, htmlPropsClassName),
10326
10373
  style,
10327
10374
  children: [
10328
- /* @__PURE__ */ jsx249(
10375
+ /* @__PURE__ */ jsx250(
10329
10376
  "input",
10330
10377
  {
10331
10378
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -10349,14 +10396,14 @@ var Checkbox = forwardRef60(
10349
10396
  )
10350
10397
  }
10351
10398
  ),
10352
- /* @__PURE__ */ jsx249(
10399
+ /* @__PURE__ */ jsx250(
10353
10400
  SelectionControl,
10354
10401
  {
10355
10402
  controlType: "checkbox",
10356
10403
  className: focus_default["focus-styled-sibling"]
10357
10404
  }
10358
10405
  ),
10359
- hasLabel && /* @__PURE__ */ jsx249(Typography, { ...selectionControlTypographyProps, children: label })
10406
+ hasLabel && /* @__PURE__ */ jsx250(Typography, { ...selectionControlTypographyProps, children: label })
10360
10407
  ]
10361
10408
  }
10362
10409
  );
@@ -10365,8 +10412,8 @@ var Checkbox = forwardRef60(
10365
10412
  Checkbox.displayName = "Checkbox";
10366
10413
 
10367
10414
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
10368
- import { useId as useId18 } from "react";
10369
- import { jsx as jsx250, jsxs as jsxs61 } from "react/jsx-runtime";
10415
+ import { useId as useId19 } from "react";
10416
+ import { jsx as jsx251, jsxs as jsxs62 } from "react/jsx-runtime";
10370
10417
  var CheckboxGroup = (props) => {
10371
10418
  const {
10372
10419
  label,
@@ -10384,7 +10431,7 @@ var CheckboxGroup = (props) => {
10384
10431
  ...rest
10385
10432
  } = props;
10386
10433
  const { "aria-required": ariaRequired } = htmlProps;
10387
- const generatedId = useId18();
10434
+ const generatedId = useId19();
10388
10435
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
10389
10436
  const hasErrorMessage = !!errorMessage;
10390
10437
  const showRequiredMarker = required || ariaRequired;
@@ -10398,7 +10445,7 @@ var CheckboxGroup = (props) => {
10398
10445
  disabled,
10399
10446
  readOnly
10400
10447
  };
10401
- return /* @__PURE__ */ jsxs61(
10448
+ return /* @__PURE__ */ jsxs62(
10402
10449
  "div",
10403
10450
  {
10404
10451
  ...getBaseHTMLProps(
@@ -10408,7 +10455,7 @@ var CheckboxGroup = (props) => {
10408
10455
  rest
10409
10456
  ),
10410
10457
  children: [
10411
- /* @__PURE__ */ jsxs61(
10458
+ /* @__PURE__ */ jsxs62(
10412
10459
  Typography,
10413
10460
  {
10414
10461
  as: "span",
@@ -10417,12 +10464,12 @@ var CheckboxGroup = (props) => {
10417
10464
  children: [
10418
10465
  label,
10419
10466
  " ",
10420
- showRequiredMarker && /* @__PURE__ */ jsx250(RequiredMarker, {})
10467
+ showRequiredMarker && /* @__PURE__ */ jsx251(RequiredMarker, {})
10421
10468
  ]
10422
10469
  }
10423
10470
  ),
10424
10471
  renderInputMessage(tip, tipId),
10425
- /* @__PURE__ */ jsx250(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx250(
10472
+ /* @__PURE__ */ jsx251(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx251(
10426
10473
  "div",
10427
10474
  {
10428
10475
  role: "group",
@@ -10440,7 +10487,7 @@ var CheckboxGroup = (props) => {
10440
10487
  CheckboxGroup.displayName = "CheckboxGroup";
10441
10488
 
10442
10489
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
10443
- import { forwardRef as forwardRef61, useId as useId19 } from "react";
10490
+ import { forwardRef as forwardRef61, useId as useId20 } from "react";
10444
10491
 
10445
10492
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
10446
10493
  import { createContext as createContext6, useContext as useContext9 } from "react";
@@ -10450,7 +10497,7 @@ var useRadioButtonGroup = () => {
10450
10497
  };
10451
10498
 
10452
10499
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
10453
- import { jsx as jsx251, jsxs as jsxs62 } from "react/jsx-runtime";
10500
+ import { jsx as jsx252, jsxs as jsxs63 } from "react/jsx-runtime";
10454
10501
  var isValueEqualToGroupValueOrFalsy = (value, group) => {
10455
10502
  if (typeof value !== "undefined" && value !== null && group) {
10456
10503
  if (typeof value === "number") {
@@ -10484,7 +10531,7 @@ var RadioButton = forwardRef61(
10484
10531
  style,
10485
10532
  ...restHtmlProps
10486
10533
  } = htmlProps;
10487
- const generatedId = useId19();
10534
+ const generatedId = useId20();
10488
10535
  const uniqueId = id != null ? id : `${generatedId}-radioButton`;
10489
10536
  const hasLabel = !!label;
10490
10537
  const radioButtonGroup = useRadioButtonGroup();
@@ -10496,7 +10543,7 @@ var RadioButton = forwardRef61(
10496
10543
  if (radioButtonGroup == null ? void 0 : radioButtonGroup.errorMessageId)
10497
10544
  describedByIds.push(radioButtonGroup == null ? void 0 : radioButtonGroup.errorMessageId);
10498
10545
  if (ariaDescribedby) describedByIds.push(ariaDescribedby);
10499
- return /* @__PURE__ */ jsxs62(
10546
+ return /* @__PURE__ */ jsxs63(
10500
10547
  Label2,
10501
10548
  {
10502
10549
  hasError: error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error),
@@ -10508,7 +10555,7 @@ var RadioButton = forwardRef61(
10508
10555
  htmlFor: uniqueId,
10509
10556
  controlType: "radio",
10510
10557
  children: [
10511
- /* @__PURE__ */ jsx251(
10558
+ /* @__PURE__ */ jsx252(
10512
10559
  "input",
10513
10560
  {
10514
10561
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -10528,14 +10575,14 @@ var RadioButton = forwardRef61(
10528
10575
  ref
10529
10576
  }
10530
10577
  ),
10531
- /* @__PURE__ */ jsx251(
10578
+ /* @__PURE__ */ jsx252(
10532
10579
  SelectionControl,
10533
10580
  {
10534
10581
  controlType: "radio",
10535
10582
  className: focus_default["focus-styled-sibling"]
10536
10583
  }
10537
10584
  ),
10538
- /* @__PURE__ */ jsx251(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
10585
+ /* @__PURE__ */ jsx252(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
10539
10586
  ]
10540
10587
  }
10541
10588
  );
@@ -10546,10 +10593,10 @@ RadioButton.displayName = "RadioButton";
10546
10593
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
10547
10594
  import {
10548
10595
  forwardRef as forwardRef62,
10549
- useId as useId20,
10596
+ useId as useId21,
10550
10597
  useState as useState23
10551
10598
  } from "react";
10552
- import { jsx as jsx252, jsxs as jsxs63 } from "react/jsx-runtime";
10599
+ import { jsx as jsx253, jsxs as jsxs64 } from "react/jsx-runtime";
10553
10600
  var RadioButtonGroupInner = (props, ref) => {
10554
10601
  const {
10555
10602
  name,
@@ -10571,7 +10618,7 @@ var RadioButtonGroupInner = (props, ref) => {
10571
10618
  } = props;
10572
10619
  const { "aria-required": ariaRequired = false } = htmlProps;
10573
10620
  const [groupValue, setGroupValue] = useState23(value);
10574
- const generatedId = useId20();
10621
+ const generatedId = useId21();
10575
10622
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-radioButtonGroup`;
10576
10623
  const handleChange = combineHandlers(
10577
10624
  (e) => setGroupValue(e.target.value),
@@ -10591,7 +10638,7 @@ var RadioButtonGroupInner = (props, ref) => {
10591
10638
  value: groupValue,
10592
10639
  onChange: handleChange
10593
10640
  };
10594
- return /* @__PURE__ */ jsxs63(
10641
+ return /* @__PURE__ */ jsxs64(
10595
10642
  "div",
10596
10643
  {
10597
10644
  ...getBaseHTMLProps(
@@ -10602,7 +10649,7 @@ var RadioButtonGroupInner = (props, ref) => {
10602
10649
  ),
10603
10650
  ref,
10604
10651
  children: [
10605
- /* @__PURE__ */ jsxs63(
10652
+ /* @__PURE__ */ jsxs64(
10606
10653
  Typography,
10607
10654
  {
10608
10655
  as: "span",
@@ -10611,12 +10658,12 @@ var RadioButtonGroupInner = (props, ref) => {
10611
10658
  children: [
10612
10659
  label,
10613
10660
  " ",
10614
- showRequiredMarker && /* @__PURE__ */ jsx252(RequiredMarker, {})
10661
+ showRequiredMarker && /* @__PURE__ */ jsx253(RequiredMarker, {})
10615
10662
  ]
10616
10663
  }
10617
10664
  ),
10618
10665
  renderInputMessage(tip, tipId),
10619
- /* @__PURE__ */ jsx252(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx252(
10666
+ /* @__PURE__ */ jsx253(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx253(
10620
10667
  "div",
10621
10668
  {
10622
10669
  role: "radiogroup",
@@ -10645,7 +10692,7 @@ var SkipToContent_default = {
10645
10692
  };
10646
10693
 
10647
10694
  // src/components/SkipToContent/SkipToContent.tsx
10648
- import { jsx as jsx253 } from "react/jsx-runtime";
10695
+ import { jsx as jsx254 } from "react/jsx-runtime";
10649
10696
  var SkipToContent = forwardRef63(
10650
10697
  (props, ref) => {
10651
10698
  const {
@@ -10661,12 +10708,12 @@ var SkipToContent = forwardRef63(
10661
10708
  style,
10662
10709
  ...restHtmlProps
10663
10710
  } = htmlProps;
10664
- return /* @__PURE__ */ jsx253(
10711
+ return /* @__PURE__ */ jsx254(
10665
10712
  "div",
10666
10713
  {
10667
10714
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
10668
10715
  style: { ...style, top },
10669
- children: /* @__PURE__ */ jsx253(
10716
+ children: /* @__PURE__ */ jsx254(
10670
10717
  Link,
10671
10718
  {
10672
10719
  ...getBaseHTMLProps(id, restHtmlProps, rest),
@@ -10694,7 +10741,7 @@ var SplitButton_default = {
10694
10741
  };
10695
10742
 
10696
10743
  // src/components/SplitButton/SplitButton.tsx
10697
- import { jsx as jsx254, jsxs as jsxs64 } from "react/jsx-runtime";
10744
+ import { jsx as jsx255, jsxs as jsxs65 } from "react/jsx-runtime";
10698
10745
  var SplitButton = forwardRef64(
10699
10746
  (props, ref) => {
10700
10747
  const {
@@ -10710,8 +10757,8 @@ var SplitButton = forwardRef64(
10710
10757
  purpose,
10711
10758
  size: size2
10712
10759
  };
10713
- return /* @__PURE__ */ jsxs64("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
10714
- /* @__PURE__ */ jsx254(
10760
+ return /* @__PURE__ */ jsxs65("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
10761
+ /* @__PURE__ */ jsx255(
10715
10762
  Button,
10716
10763
  {
10717
10764
  ...buttonStyleProps,
@@ -10720,8 +10767,8 @@ var SplitButton = forwardRef64(
10720
10767
  className: SplitButton_default.main
10721
10768
  }
10722
10769
  ),
10723
- /* @__PURE__ */ jsxs64(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
10724
- /* @__PURE__ */ jsx254(
10770
+ /* @__PURE__ */ jsxs65(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
10771
+ /* @__PURE__ */ jsx255(
10725
10772
  Button,
10726
10773
  {
10727
10774
  ...buttonStyleProps,
@@ -10734,7 +10781,7 @@ var SplitButton = forwardRef64(
10734
10781
  )
10735
10782
  }
10736
10783
  ),
10737
- /* @__PURE__ */ jsx254(OverflowMenu, { items: secondaryActions, placement: "bottom-end" })
10784
+ /* @__PURE__ */ jsx255(OverflowMenu, { items: secondaryActions, placement: "bottom-end" })
10738
10785
  ] })
10739
10786
  ] });
10740
10787
  }
@@ -10762,10 +10809,10 @@ var useCollapsibleTableContext = () => useContext10(CollapsibleTableContext);
10762
10809
 
10763
10810
  // src/components/Table/normal/Body.tsx
10764
10811
  import { forwardRef as forwardRef65 } from "react";
10765
- import { jsx as jsx255 } from "react/jsx-runtime";
10812
+ import { jsx as jsx256 } from "react/jsx-runtime";
10766
10813
  var Body = forwardRef65(
10767
10814
  (props, ref) => {
10768
- return /* @__PURE__ */ jsx255("tbody", { ref, ...props });
10815
+ return /* @__PURE__ */ jsx256("tbody", { ref, ...props });
10769
10816
  }
10770
10817
  );
10771
10818
  Body.displayName = "Table.Body";
@@ -10781,10 +10828,10 @@ import {
10781
10828
  forwardRef as forwardRef66,
10782
10829
  useContext as useContext11
10783
10830
  } from "react";
10784
- import { jsx as jsx256 } from "react/jsx-runtime";
10831
+ import { jsx as jsx257 } from "react/jsx-runtime";
10785
10832
  var Head = forwardRef66(
10786
10833
  ({ children, ...rest }, ref) => {
10787
- return /* @__PURE__ */ jsx256("thead", { ref, ...rest, children: /* @__PURE__ */ jsx256(HeadContext.Provider, { value: true, children }) });
10834
+ return /* @__PURE__ */ jsx257("thead", { ref, ...rest, children: /* @__PURE__ */ jsx257(HeadContext.Provider, { value: true, children }) });
10788
10835
  }
10789
10836
  );
10790
10837
  Head.displayName = "Table.Head";
@@ -10820,7 +10867,7 @@ var Table_default = {
10820
10867
  };
10821
10868
 
10822
10869
  // src/components/Table/normal/Cell.tsx
10823
- import { jsx as jsx257 } from "react/jsx-runtime";
10870
+ import { jsx as jsx258 } from "react/jsx-runtime";
10824
10871
  var Cell = forwardRef67(
10825
10872
  ({
10826
10873
  children,
@@ -10834,7 +10881,7 @@ var Cell = forwardRef67(
10834
10881
  const type = _type != null ? _type : isInHead ? "head" : "data";
10835
10882
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
10836
10883
  const isComplexLayout = layout === "text and icon";
10837
- return isCollapsibleChild ? /* @__PURE__ */ jsx257(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx257(
10884
+ return isCollapsibleChild ? /* @__PURE__ */ jsx258(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx258(
10838
10885
  "th",
10839
10886
  {
10840
10887
  ref,
@@ -10844,15 +10891,15 @@ var Cell = forwardRef67(
10844
10891
  !isComplexLayout && Table_default[`cell--${layout}`],
10845
10892
  Table_default["cell--head"]
10846
10893
  ),
10847
- children: isComplexLayout ? /* @__PURE__ */ jsx257("div", { className: Table_default.cell__inner, children }) : children
10894
+ children: isComplexLayout ? /* @__PURE__ */ jsx258("div", { className: Table_default.cell__inner, children }) : children
10848
10895
  }
10849
- ) : /* @__PURE__ */ jsx257(
10896
+ ) : /* @__PURE__ */ jsx258(
10850
10897
  "td",
10851
10898
  {
10852
10899
  ref,
10853
10900
  ...rest,
10854
10901
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
10855
- children: isComplexLayout ? /* @__PURE__ */ jsx257("div", { className: Table_default.cell__inner, children }) : children
10902
+ children: isComplexLayout ? /* @__PURE__ */ jsx258("div", { className: Table_default.cell__inner, children }) : children
10856
10903
  }
10857
10904
  );
10858
10905
  }
@@ -10861,22 +10908,22 @@ Cell.displayName = "Table.Cell";
10861
10908
 
10862
10909
  // src/components/Table/normal/Foot.tsx
10863
10910
  import { forwardRef as forwardRef68 } from "react";
10864
- import { jsx as jsx258 } from "react/jsx-runtime";
10911
+ import { jsx as jsx259 } from "react/jsx-runtime";
10865
10912
  var Foot = forwardRef68(
10866
10913
  (props, ref) => {
10867
- return /* @__PURE__ */ jsx258("tfoot", { ref, ...props });
10914
+ return /* @__PURE__ */ jsx259("tfoot", { ref, ...props });
10868
10915
  }
10869
10916
  );
10870
10917
  Foot.displayName = "Table.Foot";
10871
10918
 
10872
10919
  // src/components/Table/normal/Row.tsx
10873
10920
  import { forwardRef as forwardRef69 } from "react";
10874
- import { jsx as jsx259 } from "react/jsx-runtime";
10921
+ import { jsx as jsx260 } from "react/jsx-runtime";
10875
10922
  var Row = forwardRef69(
10876
10923
  ({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
10877
10924
  const isInHeader = useIsInTableHead();
10878
10925
  const type = _type != null ? _type : isInHeader ? "head" : "body";
10879
- return /* @__PURE__ */ jsx259(
10926
+ return /* @__PURE__ */ jsx260(
10880
10927
  "tr",
10881
10928
  {
10882
10929
  ref,
@@ -10900,22 +10947,22 @@ Row.displayName = "Table.Row";
10900
10947
 
10901
10948
  // src/components/Table/normal/SortCell.tsx
10902
10949
  import { forwardRef as forwardRef70 } from "react";
10903
- import { jsx as jsx260, jsxs as jsxs65 } from "react/jsx-runtime";
10950
+ import { jsx as jsx261, jsxs as jsxs66 } from "react/jsx-runtime";
10904
10951
  var makeSortIcon = (isSorted, sortOrder) => {
10905
10952
  if (!isSorted || !sortOrder) {
10906
- return /* @__PURE__ */ jsx260(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
10953
+ return /* @__PURE__ */ jsx261(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
10907
10954
  }
10908
- return sortOrder === "ascending" ? /* @__PURE__ */ jsx260(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx260(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
10955
+ return sortOrder === "ascending" ? /* @__PURE__ */ jsx261(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx261(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
10909
10956
  };
10910
10957
  var SortCell = forwardRef70(
10911
- ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx260(
10958
+ ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx261(
10912
10959
  Cell,
10913
10960
  {
10914
10961
  ref,
10915
10962
  type: "head",
10916
10963
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
10917
10964
  ...rest,
10918
- children: /* @__PURE__ */ jsxs65(
10965
+ children: /* @__PURE__ */ jsxs66(
10919
10966
  "button",
10920
10967
  {
10921
10968
  onClick,
@@ -10940,7 +10987,7 @@ SortCell.displayName = "Table.SortCell";
10940
10987
 
10941
10988
  // src/components/Table/normal/Table.tsx
10942
10989
  import { forwardRef as forwardRef71 } from "react";
10943
- import { jsx as jsx261 } from "react/jsx-runtime";
10990
+ import { jsx as jsx262 } from "react/jsx-runtime";
10944
10991
  function getDensityCn(value) {
10945
10992
  switch (value) {
10946
10993
  case "normal":
@@ -10959,7 +11006,7 @@ var Table = forwardRef71(
10959
11006
  children,
10960
11007
  ...rest
10961
11008
  }, ref) => {
10962
- return /* @__PURE__ */ jsx261(
11009
+ return /* @__PURE__ */ jsx262(
10963
11010
  "table",
10964
11011
  {
10965
11012
  ref,
@@ -10981,7 +11028,7 @@ Table.displayName = "Table";
10981
11028
 
10982
11029
  // src/components/Table/normal/TableWrapper.tsx
10983
11030
  import { useEffect as useEffect23, useRef as useRef28, useState as useState25 } from "react";
10984
- import { jsx as jsx262 } from "react/jsx-runtime";
11031
+ import { jsx as jsx263 } from "react/jsx-runtime";
10985
11032
  var TableWrapper = ({ className, ...rest }) => {
10986
11033
  const [overflowX, setOverflowX] = useState25(false);
10987
11034
  const [windowWidth, setWindowWidth] = useState25(window.innerWidth);
@@ -11003,7 +11050,7 @@ var TableWrapper = ({ className, ...rest }) => {
11003
11050
  window.addEventListener("resize", handleResize);
11004
11051
  return () => window.removeEventListener("resize", handleResize);
11005
11052
  });
11006
- return /* @__PURE__ */ jsx262(
11053
+ return /* @__PURE__ */ jsx263(
11007
11054
  "div",
11008
11055
  {
11009
11056
  ref: wrapperRef,
@@ -11030,7 +11077,7 @@ Table2.Row = Row;
11030
11077
  Table2.Foot = Foot;
11031
11078
 
11032
11079
  // src/components/Table/collapsible/CollapsibleRow.tsx
11033
- import { Fragment as Fragment14, jsx as jsx263, jsxs as jsxs66 } from "react/jsx-runtime";
11080
+ import { Fragment as Fragment14, jsx as jsx264, jsxs as jsxs67 } from "react/jsx-runtime";
11034
11081
  var CollapsibleRow = forwardRef72(
11035
11082
  ({
11036
11083
  type: _type,
@@ -11072,33 +11119,33 @@ var CollapsibleRow = forwardRef72(
11072
11119
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
11073
11120
  const id = derivativeIdGenerator(prefix3, index.toString());
11074
11121
  collapsibleIds.push(id);
11075
- return /* @__PURE__ */ jsxs66(Fragment13, { children: [
11076
- /* @__PURE__ */ jsx263(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11122
+ return /* @__PURE__ */ jsxs67(Fragment13, { children: [
11123
+ /* @__PURE__ */ jsx264(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11077
11124
  isValidElement9(child) && cloneElement8(child, {
11078
11125
  collapsibleProps: { isCollapsibleChild: true }
11079
11126
  })
11080
11127
  ] }, `DL-${index}`);
11081
11128
  }) : null;
11082
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx263(Row, { ...rowProps(), children: /* @__PURE__ */ jsx263(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx263(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
11129
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx264(Row, { ...rowProps(), children: /* @__PURE__ */ jsx264(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx264(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
11083
11130
  const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a3, b) => {
11084
11131
  return definingColumnIndex.indexOf(childrenArray.indexOf(a3)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
11085
11132
  });
11086
11133
  const headerRow = () => {
11087
11134
  if (type !== "head" || !isCollapsed) return null;
11088
- return /* @__PURE__ */ jsx263(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs66(Fragment14, { children: [
11135
+ return /* @__PURE__ */ jsx264(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs67(Fragment14, { children: [
11089
11136
  definingColumnCells,
11090
- /* @__PURE__ */ jsxs66(Table2.Cell, { type: "head", layout: "center", children: [
11137
+ /* @__PURE__ */ jsxs67(Table2.Cell, { type: "head", layout: "center", children: [
11091
11138
  "Utvid",
11092
- /* @__PURE__ */ jsx263(VisuallyHidden, { as: "span", children: "raden" })
11139
+ /* @__PURE__ */ jsx264(VisuallyHidden, { as: "span", children: "raden" })
11093
11140
  ] })
11094
11141
  ] }) });
11095
11142
  };
11096
11143
  const idList = spaceSeparatedIdListGenerator(collapsibleIds);
11097
11144
  const rowWithChevron = () => {
11098
11145
  if (type !== "body" || !isCollapsed) return null;
11099
- return /* @__PURE__ */ jsxs66(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11146
+ return /* @__PURE__ */ jsxs67(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11100
11147
  definingColumnCells,
11101
- /* @__PURE__ */ jsx263(Table2.Cell, { children: /* @__PURE__ */ jsx263(
11148
+ /* @__PURE__ */ jsx264(Table2.Cell, { children: /* @__PURE__ */ jsx264(
11102
11149
  "button",
11103
11150
  {
11104
11151
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
@@ -11110,7 +11157,7 @@ var CollapsibleRow = forwardRef72(
11110
11157
  utilStyles_default["remove-button-styling"],
11111
11158
  focusable
11112
11159
  ),
11113
- children: /* @__PURE__ */ jsx263(
11160
+ children: /* @__PURE__ */ jsx264(
11114
11161
  AnimatedChevronUpDown,
11115
11162
  {
11116
11163
  isUp: childrenCollapsed ? false : true,
@@ -11122,20 +11169,20 @@ var CollapsibleRow = forwardRef72(
11122
11169
  ) })
11123
11170
  ] });
11124
11171
  };
11125
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs66(Fragment14, { children: [
11172
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs67(Fragment14, { children: [
11126
11173
  headerRow(),
11127
- type === "body" && /* @__PURE__ */ jsxs66(Fragment14, { children: [
11174
+ type === "body" && /* @__PURE__ */ jsxs67(Fragment14, { children: [
11128
11175
  rowWithChevron(),
11129
11176
  childrenCollapsed ? null : collapsedRows
11130
11177
  ] })
11131
- ] }) : /* @__PURE__ */ jsx263(Row, { ref, ...rowProps(), children });
11178
+ ] }) : /* @__PURE__ */ jsx264(Row, { ref, ...rowProps(), children });
11132
11179
  }
11133
11180
  );
11134
11181
  CollapsibleRow.displayName = "CollapsibleTable.Row";
11135
11182
 
11136
11183
  // src/components/Table/collapsible/CollapsibleTable.tsx
11137
11184
  import { forwardRef as forwardRef73 } from "react";
11138
- import { jsx as jsx264 } from "react/jsx-runtime";
11185
+ import { jsx as jsx265 } from "react/jsx-runtime";
11139
11186
  var CollapsibleTable = forwardRef73((props, ref) => {
11140
11187
  const {
11141
11188
  isCollapsed,
@@ -11143,7 +11190,7 @@ var CollapsibleTable = forwardRef73((props, ref) => {
11143
11190
  definingColumnIndex = [0],
11144
11191
  ...rest
11145
11192
  } = props;
11146
- return /* @__PURE__ */ jsx264(
11193
+ return /* @__PURE__ */ jsx265(
11147
11194
  CollapsibleTableContext.Provider,
11148
11195
  {
11149
11196
  value: {
@@ -11151,7 +11198,7 @@ var CollapsibleTable = forwardRef73((props, ref) => {
11151
11198
  headerValues,
11152
11199
  definingColumnIndex
11153
11200
  },
11154
- children: /* @__PURE__ */ jsx264(Table2, { ref, ...rest })
11201
+ children: /* @__PURE__ */ jsx265(Table2, { ref, ...rest })
11155
11202
  }
11156
11203
  );
11157
11204
  });
@@ -11165,7 +11212,7 @@ CollapsibleTable2.Row = CollapsibleRow;
11165
11212
  import {
11166
11213
  forwardRef as forwardRef74,
11167
11214
  useEffect as useEffect25,
11168
- useId as useId21,
11215
+ useId as useId22,
11169
11216
  useRef as useRef29,
11170
11217
  useState as useState27
11171
11218
  } from "react";
@@ -11199,7 +11246,7 @@ var Tabs_default = {
11199
11246
  };
11200
11247
 
11201
11248
  // src/components/Tabs/Tabs.tsx
11202
- import { jsx as jsx265 } from "react/jsx-runtime";
11249
+ import { jsx as jsx266 } from "react/jsx-runtime";
11203
11250
  var Tabs = forwardRef74((props, ref) => {
11204
11251
  const {
11205
11252
  id,
@@ -11212,7 +11259,7 @@ var Tabs = forwardRef74((props, ref) => {
11212
11259
  htmlProps,
11213
11260
  ...rest
11214
11261
  } = props;
11215
- const generatedId = useId21();
11262
+ const generatedId = useId22();
11216
11263
  const uniqueId = id != null ? id : `${generatedId}-tabs`;
11217
11264
  const [thisActiveTab, setActiveTab] = useState27(activeTab != null ? activeTab : 0);
11218
11265
  const [hasTabFocus, setHasTabFocus] = useState27(false);
@@ -11231,7 +11278,7 @@ var Tabs = forwardRef74((props, ref) => {
11231
11278
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11232
11279
  ["--dds-tabs-width"]: width
11233
11280
  };
11234
- return /* @__PURE__ */ jsx265(
11281
+ return /* @__PURE__ */ jsx266(
11235
11282
  TabsContext.Provider,
11236
11283
  {
11237
11284
  value: {
@@ -11244,7 +11291,7 @@ var Tabs = forwardRef74((props, ref) => {
11244
11291
  setHasTabFocus,
11245
11292
  tabContentDirection
11246
11293
  },
11247
- children: /* @__PURE__ */ jsx265(
11294
+ children: /* @__PURE__ */ jsx266(
11248
11295
  "div",
11249
11296
  {
11250
11297
  ref,
@@ -11277,13 +11324,13 @@ import {
11277
11324
  useContext as useContext13,
11278
11325
  useLayoutEffect as useLayoutEffect2
11279
11326
  } from "react";
11280
- import { jsx as jsx266 } from "react/jsx-runtime";
11327
+ import { jsx as jsx267 } from "react/jsx-runtime";
11281
11328
  var TabContext = createContext10(null);
11282
11329
  function TabWidthContextProvider({
11283
11330
  children,
11284
11331
  onChangeWidths
11285
11332
  }) {
11286
- return /* @__PURE__ */ jsx266(
11333
+ return /* @__PURE__ */ jsx267(
11287
11334
  TabContext.Provider,
11288
11335
  {
11289
11336
  value: {
@@ -11315,7 +11362,7 @@ function useSetTabWidth(index, width) {
11315
11362
  }
11316
11363
 
11317
11364
  // src/components/Tabs/Tab.tsx
11318
- import { jsx as jsx267, jsxs as jsxs67 } from "react/jsx-runtime";
11365
+ import { jsx as jsx268, jsxs as jsxs68 } from "react/jsx-runtime";
11319
11366
  var Tab = forwardRef75((props, ref) => {
11320
11367
  const {
11321
11368
  active = false,
@@ -11355,7 +11402,7 @@ var Tab = forwardRef75((props, ref) => {
11355
11402
  handleSelect();
11356
11403
  onKeyDown && onKeyDown(e);
11357
11404
  };
11358
- return /* @__PURE__ */ jsxs67(
11405
+ return /* @__PURE__ */ jsxs68(
11359
11406
  "button",
11360
11407
  {
11361
11408
  ...getBaseHTMLProps(
@@ -11378,8 +11425,8 @@ var Tab = forwardRef75((props, ref) => {
11378
11425
  onKeyDown: handleOnKeyDown,
11379
11426
  tabIndex: focus ? 0 : -1,
11380
11427
  children: [
11381
- icon2 && /* @__PURE__ */ jsx267(Icon, { icon: icon2, iconSize: "inherit" }),
11382
- /* @__PURE__ */ jsx267("span", { children })
11428
+ icon2 && /* @__PURE__ */ jsx268(Icon, { icon: icon2, iconSize: "inherit" }),
11429
+ /* @__PURE__ */ jsx268("span", { children })
11383
11430
  ]
11384
11431
  }
11385
11432
  );
@@ -11394,7 +11441,7 @@ import {
11394
11441
  isValidElement as isValidElement10,
11395
11442
  useState as useState28
11396
11443
  } from "react";
11397
- import { jsx as jsx268 } from "react/jsx-runtime";
11444
+ import { jsx as jsx269 } from "react/jsx-runtime";
11398
11445
  var TabList = forwardRef76(
11399
11446
  ({ children, id, style, onFocus, ...rest }, ref) => {
11400
11447
  const {
@@ -11438,7 +11485,7 @@ var TabList = forwardRef76(
11438
11485
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11439
11486
  ["--dds-tab-widths"]: widths.join(" ")
11440
11487
  };
11441
- return /* @__PURE__ */ jsx268(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx268(
11488
+ return /* @__PURE__ */ jsx269(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx269(
11442
11489
  "div",
11443
11490
  {
11444
11491
  ...rest,
@@ -11465,10 +11512,10 @@ TabList.displayName = "TabList";
11465
11512
 
11466
11513
  // src/components/Tabs/TabPanel.tsx
11467
11514
  import { forwardRef as forwardRef77 } from "react";
11468
- import { jsx as jsx269 } from "react/jsx-runtime";
11515
+ import { jsx as jsx270 } from "react/jsx-runtime";
11469
11516
  var TabPanel = forwardRef77(
11470
11517
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
11471
- return /* @__PURE__ */ jsx269(
11518
+ return /* @__PURE__ */ jsx270(
11472
11519
  "div",
11473
11520
  {
11474
11521
  ...getBaseHTMLProps(
@@ -11499,7 +11546,7 @@ import {
11499
11546
  forwardRef as forwardRef78,
11500
11547
  isValidElement as isValidElement11
11501
11548
  } from "react";
11502
- import { jsx as jsx270 } from "react/jsx-runtime";
11549
+ import { jsx as jsx271 } from "react/jsx-runtime";
11503
11550
  var TabPanels = forwardRef78(
11504
11551
  ({ children, ...rest }, ref) => {
11505
11552
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
@@ -11513,7 +11560,7 @@ var TabPanels = forwardRef78(
11513
11560
  "aria-expanded": active
11514
11561
  });
11515
11562
  });
11516
- return /* @__PURE__ */ jsx270("div", { ref: combinedRef, ...rest, children: panelChildren });
11563
+ return /* @__PURE__ */ jsx271("div", { ref: combinedRef, ...rest, children: panelChildren });
11517
11564
  }
11518
11565
  );
11519
11566
  TabPanels.displayName = "TabPanels";
@@ -11538,7 +11585,7 @@ var Tag_default = {
11538
11585
  };
11539
11586
 
11540
11587
  // src/components/Tag/Tag.tsx
11541
- import { jsx as jsx271, jsxs as jsxs68 } from "react/jsx-runtime";
11588
+ import { jsx as jsx272, jsxs as jsxs69 } from "react/jsx-runtime";
11542
11589
  var purposeVariants3 = {
11543
11590
  info: {
11544
11591
  icon: InfoIcon
@@ -11569,7 +11616,7 @@ var Tag = forwardRef79((props, ref) => {
11569
11616
  ...rest
11570
11617
  } = props;
11571
11618
  const icon2 = purposeVariants3[purpose].icon;
11572
- return /* @__PURE__ */ jsxs68(
11619
+ return /* @__PURE__ */ jsxs69(
11573
11620
  TextOverflowEllipsisWrapper,
11574
11621
  {
11575
11622
  ...getBaseHTMLProps(
@@ -11586,8 +11633,8 @@ var Tag = forwardRef79((props, ref) => {
11586
11633
  ),
11587
11634
  ref,
11588
11635
  children: [
11589
- withIcon && icon2 && /* @__PURE__ */ jsx271(Icon, { icon: icon2, iconSize: "small" }),
11590
- /* @__PURE__ */ jsx271(TextOverflowEllipsisInner, { children: children != null ? children : text })
11636
+ withIcon && icon2 && /* @__PURE__ */ jsx272(Icon, { icon: icon2, iconSize: "small" }),
11637
+ /* @__PURE__ */ jsx272(TextOverflowEllipsisInner, { children: children != null ? children : text })
11591
11638
  ]
11592
11639
  }
11593
11640
  );
@@ -11604,9 +11651,6 @@ import {
11604
11651
  useState as useState29
11605
11652
  } from "react";
11606
11653
 
11607
- // src/components/TextInput/CharCounter.tsx
11608
- import { useId as useId22 } from "react";
11609
-
11610
11654
  // src/components/TextInput/TextInput.module.css
11611
11655
  var TextInput_default = {
11612
11656
  "container--medium": "TextInput_container--medium",
@@ -11627,40 +11671,11 @@ var TextInput_default = {
11627
11671
  suffix: "TextInput_suffix",
11628
11672
  "prefix--readonly": "TextInput_prefix--readonly",
11629
11673
  "suffix--readonly": "TextInput_suffix--readonly",
11630
- "message-container": "TextInput_message-container",
11631
- "char-counter": "TextInput_char-counter"
11674
+ "message-container": "TextInput_message-container"
11632
11675
  };
11633
11676
 
11634
- // src/components/TextInput/CharCounter.tsx
11635
- import { jsxs as jsxs69 } from "react/jsx-runtime";
11636
- function CharCounter(props) {
11637
- const { current, max, id, className, htmlProps, ...rest } = props;
11638
- const generatedId = useId22();
11639
- const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
11640
- return /* @__PURE__ */ jsxs69(
11641
- Typography,
11642
- {
11643
- ...getBaseHTMLProps(
11644
- uniqueId,
11645
- cn(className, TextInput_default["char-counter"]),
11646
- htmlProps,
11647
- rest
11648
- ),
11649
- as: "div",
11650
- typographyType: "supportingStyleHelperText01",
11651
- "aria-label": `${current} av ${max} tegn skrevet`,
11652
- children: [
11653
- current,
11654
- "/",
11655
- max
11656
- ]
11657
- }
11658
- );
11659
- }
11660
- var CharCounter_default = CharCounter;
11661
-
11662
11677
  // src/components/TextInput/TextInput.tsx
11663
- import { jsx as jsx272, jsxs as jsxs70 } from "react/jsx-runtime";
11678
+ import { jsx as jsx273, jsxs as jsxs70 } from "react/jsx-runtime";
11664
11679
  var TextInput = forwardRef80(
11665
11680
  ({
11666
11681
  label,
@@ -11716,7 +11731,6 @@ var TextInput = forwardRef80(
11716
11731
  const hasMessage = hasErrorMessage || hasTip || !!maxLength;
11717
11732
  const hasIcon = !!icon2;
11718
11733
  const hasAffix = !!(prefix3 != null ? prefix3 : suffix);
11719
- const hasCharCounter = !!maxLength && Number.isInteger(maxLength) && maxLength > 0 && withCharacterCounter;
11720
11734
  const characterCounterId = derivativeIdGenerator(
11721
11735
  uniqueId,
11722
11736
  "characterCounter"
@@ -11759,7 +11773,7 @@ var TextInput = forwardRef80(
11759
11773
  className: cn(TextInput_default["input-width"], Input_default["input-group"]),
11760
11774
  style: styleVariables,
11761
11775
  children: [
11762
- /* @__PURE__ */ jsx272(
11776
+ /* @__PURE__ */ jsx273(
11763
11777
  Icon,
11764
11778
  {
11765
11779
  icon: icon2,
@@ -11767,7 +11781,7 @@ var TextInput = forwardRef80(
11767
11781
  className: cn(TextInput_default.icon, TextInput_default[`icon--${componentSize}`])
11768
11782
  }
11769
11783
  ),
11770
- /* @__PURE__ */ jsx272(
11784
+ /* @__PURE__ */ jsx273(
11771
11785
  StatefulInput,
11772
11786
  {
11773
11787
  ref,
@@ -11788,7 +11802,7 @@ var TextInput = forwardRef80(
11788
11802
  className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
11789
11803
  style: styleVariables,
11790
11804
  children: [
11791
- prefix3 && /* @__PURE__ */ jsx272(
11805
+ prefix3 && /* @__PURE__ */ jsx273(
11792
11806
  "span",
11793
11807
  {
11794
11808
  ref: prefixRef,
@@ -11801,7 +11815,7 @@ var TextInput = forwardRef80(
11801
11815
  children: prefix3
11802
11816
  }
11803
11817
  ),
11804
- /* @__PURE__ */ jsx272(
11818
+ /* @__PURE__ */ jsx273(
11805
11819
  StatefulInput,
11806
11820
  {
11807
11821
  ref,
@@ -11815,7 +11829,7 @@ var TextInput = forwardRef80(
11815
11829
  }
11816
11830
  }
11817
11831
  ),
11818
- suffix && /* @__PURE__ */ jsx272(
11832
+ suffix && /* @__PURE__ */ jsx273(
11819
11833
  "span",
11820
11834
  {
11821
11835
  ref: suffixRef,
@@ -11842,7 +11856,7 @@ var TextInput = forwardRef80(
11842
11856
  ),
11843
11857
  style,
11844
11858
  children: [
11845
- hasLabel && /* @__PURE__ */ jsx272(
11859
+ hasLabel && /* @__PURE__ */ jsx273(
11846
11860
  Label,
11847
11861
  {
11848
11862
  htmlFor: uniqueId,
@@ -11851,7 +11865,7 @@ var TextInput = forwardRef80(
11851
11865
  children: label
11852
11866
  }
11853
11867
  ),
11854
- extendedInput ? extendedInput : /* @__PURE__ */ jsx272(
11868
+ extendedInput ? extendedInput : /* @__PURE__ */ jsx273(
11855
11869
  StatefulInput,
11856
11870
  {
11857
11871
  ref,
@@ -11865,13 +11879,11 @@ var TextInput = forwardRef80(
11865
11879
  ),
11866
11880
  hasMessage && /* @__PURE__ */ jsxs70("div", { className: TextInput_default["message-container"], children: [
11867
11881
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
11868
- hasCharCounter && /* @__PURE__ */ jsx272(
11869
- CharCounter_default,
11870
- {
11871
- id: characterCounterId,
11872
- current: text.length,
11873
- max: maxLength
11874
- }
11882
+ renderCharCounter(
11883
+ characterCounterId,
11884
+ withCharacterCounter,
11885
+ text.length,
11886
+ maxLength
11875
11887
  )
11876
11888
  ] })
11877
11889
  ]
@@ -11908,7 +11920,7 @@ var ToggleBar_default = {
11908
11920
  };
11909
11921
 
11910
11922
  // src/components/ToggleBar/ToggleBar.tsx
11911
- import { jsx as jsx273, jsxs as jsxs71 } from "react/jsx-runtime";
11923
+ import { jsx as jsx274, jsxs as jsxs71 } from "react/jsx-runtime";
11912
11924
  var ToggleBar = (props) => {
11913
11925
  const {
11914
11926
  children,
@@ -11931,7 +11943,7 @@ var ToggleBar = (props) => {
11931
11943
  (e) => onChange && onChange(e, e.target.value)
11932
11944
  );
11933
11945
  const labelId = label && `${uniqueId}-label`;
11934
- return /* @__PURE__ */ jsx273(
11946
+ return /* @__PURE__ */ jsx274(
11935
11947
  ToggleBarContext.Provider,
11936
11948
  {
11937
11949
  value: {
@@ -11953,8 +11965,8 @@ var ToggleBar = (props) => {
11953
11965
  role: "radiogroup",
11954
11966
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
11955
11967
  children: [
11956
- label && /* @__PURE__ */ jsx273(Label, { id: labelId, children: label }),
11957
- /* @__PURE__ */ jsx273("div", { className: ToggleBar_default.bar, children })
11968
+ label && /* @__PURE__ */ jsx274(Label, { id: labelId, children: label }),
11969
+ /* @__PURE__ */ jsx274("div", { className: ToggleBar_default.bar, children })
11958
11970
  ]
11959
11971
  }
11960
11972
  )
@@ -11968,7 +11980,7 @@ import {
11968
11980
  forwardRef as forwardRef81,
11969
11981
  useId as useId25
11970
11982
  } from "react";
11971
- import { jsx as jsx274, jsxs as jsxs72 } from "react/jsx-runtime";
11983
+ import { jsx as jsx275, jsxs as jsxs72 } from "react/jsx-runtime";
11972
11984
  var typographyTypes5 = {
11973
11985
  large: "bodySans04",
11974
11986
  medium: "bodySans02",
@@ -12010,7 +12022,7 @@ var ToggleRadio = forwardRef81(
12010
12022
  };
12011
12023
  const contentTypeCn = label ? "with-text" : "just-icon";
12012
12024
  return /* @__PURE__ */ jsxs72("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
12013
- /* @__PURE__ */ jsx274(
12025
+ /* @__PURE__ */ jsx275(
12014
12026
  "input",
12015
12027
  {
12016
12028
  ...getBaseHTMLProps(
@@ -12044,8 +12056,8 @@ var ToggleRadio = forwardRef81(
12044
12056
  focus_default["focus-styled-sibling"]
12045
12057
  ),
12046
12058
  children: [
12047
- icon2 && /* @__PURE__ */ jsx274(Icon, { icon: icon2, iconSize: "inherit" }),
12048
- label && /* @__PURE__ */ jsx274("span", { children: label })
12059
+ icon2 && /* @__PURE__ */ jsx275(Icon, { icon: icon2, iconSize: "inherit" }),
12060
+ label && /* @__PURE__ */ jsx275("span", { children: label })
12049
12061
  ]
12050
12062
  }
12051
12063
  )
@@ -12068,13 +12080,13 @@ var ToggleButton_default = {
12068
12080
  };
12069
12081
 
12070
12082
  // src/components/ToggleButton/ToggleButton.tsx
12071
- import { jsx as jsx275, jsxs as jsxs73 } from "react/jsx-runtime";
12083
+ import { jsx as jsx276, jsxs as jsxs73 } from "react/jsx-runtime";
12072
12084
  var ToggleButton = forwardRef82(
12073
12085
  ({ id, label, icon: icon2, className, htmlProps, ...rest }, ref) => {
12074
12086
  const generatedId = useId26();
12075
12087
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
12076
12088
  return /* @__PURE__ */ jsxs73("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
12077
- /* @__PURE__ */ jsx275(
12089
+ /* @__PURE__ */ jsx276(
12078
12090
  "input",
12079
12091
  {
12080
12092
  ...getBaseHTMLProps(
@@ -12100,7 +12112,7 @@ var ToggleButton = forwardRef82(
12100
12112
  focus_default["focus-styled-sibling"]
12101
12113
  ),
12102
12114
  children: [
12103
- icon2 && /* @__PURE__ */ jsx275(Icon, { icon: icon2, iconSize: "inherit" }),
12115
+ icon2 && /* @__PURE__ */ jsx276(Icon, { icon: icon2, iconSize: "inherit" }),
12104
12116
  " ",
12105
12117
  label
12106
12118
  ]
@@ -12113,7 +12125,7 @@ ToggleButton.displayName = "ToggleButton";
12113
12125
 
12114
12126
  // src/components/ToggleButton/ToggleButtonGroup.tsx
12115
12127
  import { useId as useId27 } from "react";
12116
- import { jsx as jsx276, jsxs as jsxs74 } from "react/jsx-runtime";
12128
+ import { jsx as jsx277, jsxs as jsxs74 } from "react/jsx-runtime";
12117
12129
  var ToggleButtonGroup = (props) => {
12118
12130
  const {
12119
12131
  children,
@@ -12139,7 +12151,7 @@ var ToggleButtonGroup = (props) => {
12139
12151
  role: "group",
12140
12152
  "aria-labelledby": label ? uniqueLabelId : void 0,
12141
12153
  children: [
12142
- !!label && /* @__PURE__ */ jsx276(
12154
+ !!label && /* @__PURE__ */ jsx277(
12143
12155
  Typography,
12144
12156
  {
12145
12157
  as: "span",
@@ -12148,7 +12160,7 @@ var ToggleButtonGroup = (props) => {
12148
12160
  children: label
12149
12161
  }
12150
12162
  ),
12151
- /* @__PURE__ */ jsx276("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12163
+ /* @__PURE__ */ jsx277("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12152
12164
  ]
12153
12165
  }
12154
12166
  );
@@ -12189,6 +12201,7 @@ export {
12189
12201
  CardAccordionBody,
12190
12202
  CardAccordionHeader,
12191
12203
  CaringIcon,
12204
+ CharCounter,
12192
12205
  ChatIcon,
12193
12206
  CheckCircledIcon,
12194
12207
  CheckIcon,
@@ -12457,6 +12470,7 @@ export {
12457
12470
  purposeVariants,
12458
12471
  removeButtonStyling,
12459
12472
  removeListStyling,
12473
+ renderCharCounter,
12460
12474
  renderInputMessage,
12461
12475
  scrollbarStyling,
12462
12476
  selection,