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

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.js CHANGED
@@ -235,6 +235,8 @@ __export(src_exports, {
235
235
  ModalBody: () => ModalBody,
236
236
  MoreHorizontalIcon: () => MoreHorizontalIcon,
237
237
  MoreVerticalIcon: () => MoreVerticalIcon,
238
+ NativeSelect: () => NativeSelect,
239
+ NativeSelectPlaceholder: () => NativeSelectPlaceholder,
238
240
  NotarialIcon: () => NotarialIcon,
239
241
  NotificationsIcon: () => NotificationsIcon,
240
242
  NotificationsOffIcon: () => NotificationsOffIcon,
@@ -733,7 +735,6 @@ var Input_default = {
733
735
  input: "Input_input",
734
736
  disabled: "Input_disabled",
735
737
  "read-only": "Input_read-only",
736
- active: "Input_active",
737
738
  "input--stateful": "Input_input--stateful",
738
739
  "input--hover": "Input_input--hover",
739
740
  "input--stateful-danger": "Input_input--stateful-danger",
@@ -6122,6 +6123,7 @@ function _DateInput({
6122
6123
  className: cn(
6123
6124
  Input_default.input,
6124
6125
  Input_default["input--stateful"],
6126
+ Input_default["input--hover"],
6125
6127
  Input_default[`input--${componentSize}`],
6126
6128
  hasErrorMessage && Input_default["input--stateful-danger"],
6127
6129
  DateInput_default["date-input"],
@@ -8882,7 +8884,7 @@ var ModalActions = (0, import_react81.forwardRef)(
8882
8884
  ModalActions.displayName = "ModalActions";
8883
8885
 
8884
8886
  // src/components/Pagination/Pagination.tsx
8885
- var import_react83 = require("react");
8887
+ var import_react84 = require("react");
8886
8888
 
8887
8889
  // src/components/Pagination/Pagination.module.css
8888
8890
  var Pagination_default = {
@@ -9467,7 +9469,15 @@ function SelectInner(props, ref) {
9467
9469
  ),
9468
9470
  style: { ...style, width },
9469
9471
  children: [
9470
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Label, { htmlFor: uniqueId, showRequiredStyling, children: label }),
9472
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
9473
+ Label,
9474
+ {
9475
+ htmlFor: uniqueId,
9476
+ showRequiredStyling,
9477
+ className: Input_default.label,
9478
+ children: label
9479
+ }
9480
+ ),
9471
9481
  /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
9472
9482
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
9473
9483
  ]
@@ -9477,12 +9487,122 @@ function SelectInner(props, ref) {
9477
9487
  var Select = (0, import_react82.forwardRef)(SelectInner);
9478
9488
  Select.displayName = "Select";
9479
9489
 
9490
+ // src/components/Select/NativeSelect/NativeSelect.tsx
9491
+ var import_react83 = require("react");
9492
+
9493
+ // src/components/Select/NativeSelect/NativeSelect.module.css
9494
+ var NativeSelect_default = {
9495
+ container: "NativeSelect_container",
9496
+ select: "NativeSelect_select",
9497
+ "select--readonly": "NativeSelect_select--readonly",
9498
+ "select--medium": "NativeSelect_select--medium",
9499
+ "select--small": "NativeSelect_select--small",
9500
+ "select--tiny": "NativeSelect_select--tiny",
9501
+ icon: "NativeSelect_icon"
9502
+ };
9503
+
9504
+ // src/components/Select/NativeSelect/NativeSelect.tsx
9505
+ var import_jsx_runtime243 = require("react/jsx-runtime");
9506
+ var NativeSelect = (0, import_react83.forwardRef)(
9507
+ (props, ref) => {
9508
+ const {
9509
+ id,
9510
+ children,
9511
+ componentSize = "medium",
9512
+ label,
9513
+ multiple,
9514
+ readOnly,
9515
+ errorMessage,
9516
+ tip,
9517
+ required,
9518
+ "aria-required": ariaRequired,
9519
+ "aria-describedby": ariaDescribedby,
9520
+ width,
9521
+ className,
9522
+ style,
9523
+ ...rest
9524
+ } = props;
9525
+ const generatedId = (0, import_react83.useId)();
9526
+ const uniqueId = id != null ? id : `${generatedId}-native-select`;
9527
+ const hasErrorMessage = !!errorMessage;
9528
+ const hasTip = !!tip;
9529
+ const hasLabel = !!label;
9530
+ const tipId = derivativeIdGenerator(uniqueId, "tip");
9531
+ const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
9532
+ const showRequiredStyling = !!(required || ariaRequired);
9533
+ const styleVariables = {
9534
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9535
+ ["--dds-native-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
9536
+ };
9537
+ return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)("div", { children: [
9538
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9539
+ Label,
9540
+ {
9541
+ className: Input_default.label,
9542
+ htmlFor: uniqueId,
9543
+ showRequiredStyling,
9544
+ children: label
9545
+ }
9546
+ ),
9547
+ /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)("div", { className: NativeSelect_default.container, children: [
9548
+ /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9549
+ "select",
9550
+ {
9551
+ ref,
9552
+ id: uniqueId,
9553
+ multiple,
9554
+ className: cn(
9555
+ className,
9556
+ NativeSelect_default.select,
9557
+ readOnly && NativeSelect_default["select--readonly"],
9558
+ Input_default.input,
9559
+ Input_default[`input--${componentSize}`],
9560
+ NativeSelect_default[`select--${componentSize}`],
9561
+ scrollbar,
9562
+ focusable,
9563
+ typographyStyles_default[getTypographyCn(inputTypographyTypes[componentSize])],
9564
+ hasErrorMessage && Input_default["input--stateful-danger"]
9565
+ ),
9566
+ tabIndex: readOnly ? -1 : 0,
9567
+ style: { ...style, ...styleVariables },
9568
+ "aria-readonly": readOnly,
9569
+ "aria-invalid": hasErrorMessage,
9570
+ "aria-describedby": spaceSeparatedIdListGenerator([
9571
+ hasTip ? tipId : void 0,
9572
+ hasErrorMessage ? errorMessageId : void 0,
9573
+ ariaDescribedby
9574
+ ]),
9575
+ required,
9576
+ ...rest,
9577
+ children
9578
+ }
9579
+ ),
9580
+ !multiple && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9581
+ Icon,
9582
+ {
9583
+ icon: ChevronDownIcon,
9584
+ iconSize: componentSize === "tiny" ? "small" : "medium",
9585
+ className: NativeSelect_default.icon
9586
+ }
9587
+ )
9588
+ ] }),
9589
+ renderInputMessage(tip, tipId, errorMessage, errorMessageId)
9590
+ ] });
9591
+ }
9592
+ );
9593
+ NativeSelect.displayName = "NativeSelect";
9594
+ var NativeSelectPlaceholder = (0, import_react83.forwardRef)((props, ref) => {
9595
+ const { children = "-- Velg fra listen --", value, ...rest } = props;
9596
+ return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
9597
+ });
9598
+ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
9599
+
9480
9600
  // src/components/Select/utils.ts
9481
9601
  var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2 }));
9482
9602
 
9483
9603
  // src/components/Pagination/Pagination.tsx
9484
- var import_jsx_runtime243 = require("react/jsx-runtime");
9485
- var Pagination = (0, import_react83.forwardRef)(
9604
+ var import_jsx_runtime244 = require("react/jsx-runtime");
9605
+ var Pagination = (0, import_react84.forwardRef)(
9486
9606
  (props, ref) => {
9487
9607
  const {
9488
9608
  itemsAmount,
@@ -9505,8 +9625,8 @@ var Pagination = (0, import_react83.forwardRef)(
9505
9625
  htmlProps,
9506
9626
  ...rest
9507
9627
  } = props;
9508
- const [activePage, setActivePage] = (0, import_react83.useState)(defaultActivePage);
9509
- const [itemsPerPage, setItemsPerPage] = (0, import_react83.useState)(defaultItemsPerPage);
9628
+ const [activePage, setActivePage] = (0, import_react84.useState)(defaultActivePage);
9629
+ const [itemsPerPage, setItemsPerPage] = (0, import_react84.useState)(defaultItemsPerPage);
9510
9630
  const pagesLength = Math.ceil(itemsAmount / itemsPerPage);
9511
9631
  const items = PaginationGenerator(pagesLength, activePage);
9512
9632
  const onPageChange = (event, page) => {
@@ -9525,7 +9645,7 @@ var Pagination = (0, import_react83.forwardRef)(
9525
9645
  };
9526
9646
  const listItems = items.length > 0 ? items.map((item, i2) => {
9527
9647
  const isActive = item === activePage;
9528
- return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9648
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9529
9649
  Button,
9530
9650
  {
9531
9651
  purpose: isActive ? "primary" : "secondary",
@@ -9536,7 +9656,7 @@ var Pagination = (0, import_react83.forwardRef)(
9536
9656
  "aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
9537
9657
  children: item
9538
9658
  }
9539
- ) : /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9659
+ ) : /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9540
9660
  Icon,
9541
9661
  {
9542
9662
  icon: MoreHorizontalIcon,
@@ -9544,7 +9664,7 @@ var Pagination = (0, import_react83.forwardRef)(
9544
9664
  }
9545
9665
  ) }, `pagination-item-${i2}`);
9546
9666
  }) : void 0;
9547
- const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9667
+ const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9548
9668
  Button,
9549
9669
  {
9550
9670
  purpose: "secondary",
@@ -9556,7 +9676,7 @@ var Pagination = (0, import_react83.forwardRef)(
9556
9676
  "aria-label": "G\xE5 til forrige siden"
9557
9677
  }
9558
9678
  );
9559
- const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9679
+ const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9560
9680
  Button,
9561
9681
  {
9562
9682
  purpose: "secondary",
@@ -9573,8 +9693,8 @@ var Pagination = (0, import_react83.forwardRef)(
9573
9693
  } : { className: Pagination_default.nav };
9574
9694
  const isOnFirstPage = activePage === 1;
9575
9695
  const isOnLastPage = activePage === pagesLength;
9576
- const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime243.jsx)("nav", { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)("ol", { className: Pagination_default.list, children: [
9577
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9696
+ const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("nav", { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)("ol", { className: Pagination_default.list, children: [
9697
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9578
9698
  "li",
9579
9699
  {
9580
9700
  className: cn(
@@ -9586,7 +9706,7 @@ var Pagination = (0, import_react83.forwardRef)(
9586
9706
  }
9587
9707
  ),
9588
9708
  listItems,
9589
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9709
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9590
9710
  "li",
9591
9711
  {
9592
9712
  className: cn(
@@ -9598,8 +9718,8 @@ var Pagination = (0, import_react83.forwardRef)(
9598
9718
  }
9599
9719
  )
9600
9720
  ] }) }) : null;
9601
- const smallScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime243.jsx)("nav", { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)("ol", { className: Pagination_default.list, children: [
9602
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9721
+ const smallScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("nav", { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)("ol", { className: Pagination_default.list, children: [
9722
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9603
9723
  "li",
9604
9724
  {
9605
9725
  className: cn(
@@ -9607,7 +9727,7 @@ var Pagination = (0, import_react83.forwardRef)(
9607
9727
  isOnFirstPage && Pagination_default["list__item--hidden"]
9608
9728
  ),
9609
9729
  "aria-hidden": isOnFirstPage,
9610
- children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9730
+ children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9611
9731
  Button,
9612
9732
  {
9613
9733
  purpose: "secondary",
@@ -9621,7 +9741,7 @@ var Pagination = (0, import_react83.forwardRef)(
9621
9741
  )
9622
9742
  }
9623
9743
  ),
9624
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9744
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9625
9745
  "li",
9626
9746
  {
9627
9747
  className: cn(
@@ -9632,7 +9752,7 @@ var Pagination = (0, import_react83.forwardRef)(
9632
9752
  children: previousPageButton
9633
9753
  }
9634
9754
  ),
9635
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9755
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9636
9756
  Button,
9637
9757
  {
9638
9758
  size: "small",
@@ -9642,7 +9762,7 @@ var Pagination = (0, import_react83.forwardRef)(
9642
9762
  children: activePage
9643
9763
  }
9644
9764
  ) }),
9645
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9765
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9646
9766
  "li",
9647
9767
  {
9648
9768
  className: cn(
@@ -9653,7 +9773,7 @@ var Pagination = (0, import_react83.forwardRef)(
9653
9773
  children: nextPageButton
9654
9774
  }
9655
9775
  ),
9656
- /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9776
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9657
9777
  "li",
9658
9778
  {
9659
9779
  className: cn(
@@ -9661,7 +9781,7 @@ var Pagination = (0, import_react83.forwardRef)(
9661
9781
  isOnLastPage && Pagination_default["list__item--hidden"]
9662
9782
  ),
9663
9783
  "aria-hidden": isOnLastPage,
9664
- children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9784
+ children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9665
9785
  Button,
9666
9786
  {
9667
9787
  purpose: "secondary",
@@ -9679,7 +9799,7 @@ var Pagination = (0, import_react83.forwardRef)(
9679
9799
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
9680
9800
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
9681
9801
  const navigationToBeRendered = smallScreen ? smallScreenNavigation : navigation;
9682
- return !withCounter && !withSelect ? navigationToBeRendered : /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
9802
+ return !withCounter && !withSelect ? navigationToBeRendered : /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
9683
9803
  "div",
9684
9804
  {
9685
9805
  ...getBaseHTMLProps(
@@ -9693,8 +9813,8 @@ var Pagination = (0, import_react83.forwardRef)(
9693
9813
  rest
9694
9814
  ),
9695
9815
  children: [
9696
- /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)("div", { className: Pagination_default.indicators, children: [
9697
- withSelect && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
9816
+ /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)("div", { className: Pagination_default.indicators, children: [
9817
+ withSelect && /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9698
9818
  Select,
9699
9819
  {
9700
9820
  options: selectOptions,
@@ -9710,7 +9830,7 @@ var Pagination = (0, import_react83.forwardRef)(
9710
9830
  "aria-label": "Antall elementer per side"
9711
9831
  }
9712
9832
  ),
9713
- withCounter && /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
9833
+ withCounter && /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
9714
9834
  "Viser ",
9715
9835
  activePageFirstItem,
9716
9836
  "-",
@@ -9729,7 +9849,7 @@ Pagination.displayName = "Pagination";
9729
9849
 
9730
9850
  // src/components/Popover/Popover.tsx
9731
9851
  var import_dds_design_tokens16 = require("@norges-domstoler/dds-design-tokens");
9732
- var import_react84 = require("react");
9852
+ var import_react85 = require("react");
9733
9853
 
9734
9854
  // src/components/Popover/Popover.module.css
9735
9855
  var Popover_default = {
@@ -9740,8 +9860,8 @@ var Popover_default = {
9740
9860
  };
9741
9861
 
9742
9862
  // src/components/Popover/Popover.tsx
9743
- var import_jsx_runtime244 = require("react/jsx-runtime");
9744
- var Popover = (0, import_react84.forwardRef)(
9863
+ var import_jsx_runtime245 = require("react/jsx-runtime");
9864
+ var Popover = (0, import_react85.forwardRef)(
9745
9865
  (props, ref) => {
9746
9866
  const {
9747
9867
  title,
@@ -9781,7 +9901,7 @@ var Popover = (0, import_react84.forwardRef)(
9781
9901
  useOnClickOutside(elements, () => {
9782
9902
  if (isOpen) onClose && onClose();
9783
9903
  });
9784
- return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
9904
+ return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
9785
9905
  Paper,
9786
9906
  {
9787
9907
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9798,15 +9918,15 @@ var Popover = (0, import_react84.forwardRef)(
9798
9918
  focus_default.focusable
9799
9919
  ),
9800
9920
  children: [
9801
- title && /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Typography, { typographyType: "headingSans02", children: title }) : title }),
9802
- /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9921
+ title && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Typography, { typographyType: "headingSans02", children: title }) : title }),
9922
+ /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
9803
9923
  "div",
9804
9924
  {
9805
9925
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
9806
9926
  children
9807
9927
  }
9808
9928
  ),
9809
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
9929
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
9810
9930
  Button,
9811
9931
  {
9812
9932
  icon: CloseIcon,
@@ -9825,8 +9945,8 @@ var Popover = (0, import_react84.forwardRef)(
9825
9945
  Popover.displayName = "Popover";
9826
9946
 
9827
9947
  // src/components/Popover/PopoverGroup.tsx
9828
- var import_react85 = require("react");
9829
- var import_jsx_runtime245 = require("react/jsx-runtime");
9948
+ var import_react86 = require("react");
9949
+ var import_jsx_runtime246 = require("react/jsx-runtime");
9830
9950
  var PopoverGroup = ({
9831
9951
  isOpen = false,
9832
9952
  onCloseButtonClick,
@@ -9834,8 +9954,8 @@ var PopoverGroup = ({
9834
9954
  children,
9835
9955
  popoverId
9836
9956
  }) => {
9837
- const [open, setOpen] = (0, import_react85.useState)(isOpen);
9838
- const generatedId = (0, import_react85.useId)();
9957
+ const [open, setOpen] = (0, import_react86.useState)(isOpen);
9958
+ const generatedId = (0, import_react86.useId)();
9839
9959
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
9840
9960
  const handleOnCloseButtonClick = () => {
9841
9961
  setOpen(false);
@@ -9845,8 +9965,8 @@ var PopoverGroup = ({
9845
9965
  setOpen(!open);
9846
9966
  onTriggerClick && onTriggerClick();
9847
9967
  };
9848
- const buttonRef = (0, import_react85.useRef)(null);
9849
- const popoverRef = (0, import_react85.useRef)(null);
9968
+ const buttonRef = (0, import_react86.useRef)(null);
9969
+ const popoverRef = (0, import_react86.useRef)(null);
9850
9970
  useOnKeyDown(["Esc", "Escape"], () => {
9851
9971
  var _a;
9852
9972
  if (open) {
@@ -9855,14 +9975,14 @@ var PopoverGroup = ({
9855
9975
  }
9856
9976
  });
9857
9977
  const handleClose = () => setOpen(false);
9858
- const Children8 = import_react85.Children.map(children, (child, childIndex) => {
9859
- return (0, import_react85.isValidElement)(child) && (childIndex === 0 ? (0, import_react85.cloneElement)(child, {
9978
+ const Children8 = import_react86.Children.map(children, (child, childIndex) => {
9979
+ return (0, import_react86.isValidElement)(child) && (childIndex === 0 ? (0, import_react86.cloneElement)(child, {
9860
9980
  "aria-haspopup": "dialog",
9861
9981
  "aria-controls": uniquePopoverId,
9862
9982
  "aria-expanded": open,
9863
9983
  onClick: handleOnTriggerClick,
9864
9984
  ref: buttonRef
9865
- }) : (0, import_react85.cloneElement)(child, {
9985
+ }) : (0, import_react86.cloneElement)(child, {
9866
9986
  isOpen: open,
9867
9987
  "aria-hidden": !open,
9868
9988
  id: uniquePopoverId,
@@ -9872,21 +9992,21 @@ var PopoverGroup = ({
9872
9992
  onClose: handleClose
9873
9993
  }));
9874
9994
  });
9875
- return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(import_jsx_runtime245.Fragment, { children: Children8 });
9995
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_jsx_runtime246.Fragment, { children: Children8 });
9876
9996
  };
9877
9997
  PopoverGroup.displayName = "PopoverGroup";
9878
9998
 
9879
9999
  // src/components/ProgressTracker/ProgressTracker.tsx
9880
- var import_react88 = require("react");
10000
+ var import_react89 = require("react");
9881
10001
 
9882
10002
  // src/components/ProgressTracker/ProgressTracker.context.tsx
9883
- var import_react86 = require("react");
9884
- var ProgressTrackerContext = (0, import_react86.createContext)(
10003
+ var import_react87 = require("react");
10004
+ var ProgressTrackerContext = (0, import_react87.createContext)(
9885
10005
  {
9886
10006
  activeStep: 0
9887
10007
  }
9888
10008
  );
9889
- var useProgressTrackerContext = () => (0, import_react86.useContext)(ProgressTrackerContext);
10009
+ var useProgressTrackerContext = () => (0, import_react87.useContext)(ProgressTrackerContext);
9890
10010
 
9891
10011
  // src/components/ProgressTracker/ProgressTracker.module.css
9892
10012
  var ProgressTracker_default = {
@@ -9910,8 +10030,8 @@ var ProgressTracker_default = {
9910
10030
  };
9911
10031
 
9912
10032
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
9913
- var import_react87 = require("react");
9914
- var import_jsx_runtime246 = require("react/jsx-runtime");
10033
+ var import_react88 = require("react");
10034
+ var import_jsx_runtime247 = require("react/jsx-runtime");
9915
10035
  var toItemState = (active, completed, disabled) => {
9916
10036
  if (disabled) {
9917
10037
  return "disabled";
@@ -9941,17 +10061,17 @@ var ProgressTrackerItem = (props) => {
9941
10061
  const { activeStep, handleStepChange } = useProgressTrackerContext();
9942
10062
  const active = activeStep === index;
9943
10063
  const itemState = toItemState(active, completed, disabled);
9944
- const stepNumberContent = (0, import_react87.useMemo)(() => {
10064
+ const stepNumberContent = (0, import_react88.useMemo)(() => {
9945
10065
  if (completed) {
9946
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
10066
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
9947
10067
  }
9948
10068
  if (icon2 !== void 0) {
9949
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon, { icon: icon2, iconSize: "small" });
10069
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon, { icon: icon2, iconSize: "small" });
9950
10070
  }
9951
10071
  return index + 1;
9952
10072
  }, [completed, icon2, index]);
9953
- const stepContent = /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(import_jsx_runtime246.Fragment, { children: [
9954
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
10073
+ const stepContent = /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(import_jsx_runtime247.Fragment, { children: [
10074
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
9955
10075
  "div",
9956
10076
  {
9957
10077
  "aria-hidden": true,
@@ -9963,7 +10083,7 @@ var ProgressTrackerItem = (props) => {
9963
10083
  children: stepNumberContent
9964
10084
  }
9965
10085
  ),
9966
- /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
10086
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
9967
10087
  "div",
9968
10088
  {
9969
10089
  className: cn(
@@ -9972,13 +10092,13 @@ var ProgressTrackerItem = (props) => {
9972
10092
  typographyStyles_default["body-sans-03"]
9973
10093
  ),
9974
10094
  children: [
9975
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10095
+ /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
9976
10096
  children
9977
10097
  ]
9978
10098
  }
9979
10099
  )
9980
10100
  ] });
9981
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
10101
+ return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
9982
10102
  "button",
9983
10103
  {
9984
10104
  onClick: !disabled && handleStepChange ? () => handleStepChange(index) : void 0,
@@ -9986,14 +10106,14 @@ var ProgressTrackerItem = (props) => {
9986
10106
  className: cn(ProgressTracker_default["item-button"], focusable),
9987
10107
  children: stepContent
9988
10108
  }
9989
- ) : /* @__PURE__ */ (0, import_jsx_runtime246.jsx)("div", { className: cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"]), children: stepContent }) });
10109
+ ) : /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("div", { className: cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"]), children: stepContent }) });
9990
10110
  };
9991
10111
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
9992
10112
 
9993
10113
  // src/components/ProgressTracker/ProgressTracker.tsx
9994
- var import_jsx_runtime247 = require("react/jsx-runtime");
10114
+ var import_jsx_runtime248 = require("react/jsx-runtime");
9995
10115
  var ProgressTracker = (() => {
9996
- const Res = (0, import_react88.forwardRef)((props, ref) => {
10116
+ const Res = (0, import_react89.forwardRef)((props, ref) => {
9997
10117
  const {
9998
10118
  id,
9999
10119
  activeStep = 0,
@@ -10003,12 +10123,12 @@ var ProgressTracker = (() => {
10003
10123
  htmlProps,
10004
10124
  ...rest
10005
10125
  } = props;
10006
- const [thisActiveStep, setActiveStep] = (0, import_react88.useState)(activeStep);
10126
+ const [thisActiveStep, setActiveStep] = (0, import_react89.useState)(activeStep);
10007
10127
  const handleChange = (step) => {
10008
10128
  setActiveStep(step);
10009
10129
  onStepChange && onStepChange(step);
10010
10130
  };
10011
- (0, import_react88.useEffect)(() => {
10131
+ (0, import_react89.useEffect)(() => {
10012
10132
  if (activeStep !== void 0 && activeStep != thisActiveStep) {
10013
10133
  setActiveStep(activeStep);
10014
10134
  }
@@ -10017,20 +10137,20 @@ var ProgressTracker = (() => {
10017
10137
  ...getBaseHTMLProps(id, className, htmlProps, rest),
10018
10138
  ref
10019
10139
  };
10020
- const steps = (0, import_react88.useMemo)(() => {
10140
+ const steps = (0, import_react89.useMemo)(() => {
10021
10141
  const validChildren = removeInvalidChildren(children);
10022
10142
  const itemsWithIndex = passIndexPropToProgressTrackerItem(validChildren);
10023
10143
  const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
10024
10144
  return itemsWithConnectorsBetween;
10025
10145
  }, [children]);
10026
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
10146
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
10027
10147
  ProgressTrackerContext.Provider,
10028
10148
  {
10029
10149
  value: {
10030
10150
  activeStep: thisActiveStep,
10031
10151
  handleStepChange: handleChange
10032
10152
  },
10033
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("ol", { className: ProgressTracker_default.list, children: steps }) })
10153
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)("ol", { className: ProgressTracker_default.list, children: steps }) })
10034
10154
  }
10035
10155
  );
10036
10156
  });
@@ -10039,35 +10159,35 @@ var ProgressTracker = (() => {
10039
10159
  return Res;
10040
10160
  })();
10041
10161
  function removeInvalidChildren(children) {
10042
- return import_react88.Children.toArray(children).filter(import_react88.isValidElement);
10162
+ return import_react89.Children.toArray(children).filter(import_react89.isValidElement);
10043
10163
  }
10044
10164
  function passIndexPropToProgressTrackerItem(children) {
10045
- return import_react88.Children.map(
10165
+ return import_react89.Children.map(
10046
10166
  children,
10047
- (item, index) => (0, import_react88.cloneElement)(item, {
10167
+ (item, index) => (0, import_react89.cloneElement)(item, {
10048
10168
  ...item.props,
10049
10169
  index
10050
10170
  })
10051
10171
  );
10052
10172
  }
10053
- var intersperseItemsWithConnector = (children) => import_react88.Children.map(children, (child, index) => {
10173
+ var intersperseItemsWithConnector = (children) => import_react89.Children.map(children, (child, index) => {
10054
10174
  if (index === 0) {
10055
10175
  return child;
10056
10176
  }
10057
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(import_react88.Fragment, { children: [
10058
- /* @__PURE__ */ (0, import_jsx_runtime247.jsx)("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10177
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(import_react89.Fragment, { children: [
10178
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10059
10179
  child
10060
10180
  ] }, index);
10061
10181
  });
10062
10182
 
10063
10183
  // src/components/Search/Search.tsx
10064
- var import_react91 = require("react");
10184
+ var import_react92 = require("react");
10065
10185
 
10066
10186
  // src/components/Search/AutocompleteSearch.context.tsx
10067
- var import_react89 = require("react");
10068
- var AutocompleteSearchContext = (0, import_react89.createContext)({});
10187
+ var import_react90 = require("react");
10188
+ var AutocompleteSearchContext = (0, import_react90.createContext)({});
10069
10189
  var useAutocompleteSearch = () => {
10070
- return (0, import_react89.useContext)(AutocompleteSearchContext);
10190
+ return (0, import_react90.useContext)(AutocompleteSearchContext);
10071
10191
  };
10072
10192
 
10073
10193
  // src/components/Search/Search.module.css
@@ -10117,9 +10237,9 @@ function createEmptyChangeEvent(inputElementId) {
10117
10237
  }
10118
10238
 
10119
10239
  // src/components/Search/SearchSuggestions.tsx
10120
- var import_react90 = require("react");
10121
- var import_jsx_runtime248 = require("react/jsx-runtime");
10122
- var SearchSuggestions = (0, import_react90.forwardRef)((props, ref) => {
10240
+ var import_react91 = require("react");
10241
+ var import_jsx_runtime249 = require("react/jsx-runtime");
10242
+ var SearchSuggestions = (0, import_react91.forwardRef)((props, ref) => {
10123
10243
  const {
10124
10244
  id,
10125
10245
  searchId,
@@ -10138,14 +10258,14 @@ var SearchSuggestions = (0, import_react90.forwardRef)((props, ref) => {
10138
10258
  );
10139
10259
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
10140
10260
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
10141
- const renderedSuggestions = /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
10261
+ const renderedSuggestions = /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
10142
10262
  "ul",
10143
10263
  {
10144
10264
  role: "listbox",
10145
10265
  "aria-labelledby": suggestionsHeaderId,
10146
10266
  className: utilStyles_default["remove-list-styling"],
10147
10267
  children: suggestionsToRender.map((suggestion, index) => {
10148
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
10268
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
10149
10269
  OverflowMenuItem,
10150
10270
  {
10151
10271
  index,
@@ -10161,7 +10281,7 @@ var SearchSuggestions = (0, import_react90.forwardRef)((props, ref) => {
10161
10281
  })
10162
10282
  }
10163
10283
  );
10164
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
10284
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
10165
10285
  Paper,
10166
10286
  {
10167
10287
  ...getBaseHTMLProps(
@@ -10180,7 +10300,7 @@ var SearchSuggestions = (0, import_react90.forwardRef)((props, ref) => {
10180
10300
  "aria-hidden": !showSuggestions,
10181
10301
  border: "default",
10182
10302
  children: [
10183
- /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
10303
+ /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
10184
10304
  "span",
10185
10305
  {
10186
10306
  id: suggestionsHeaderId,
@@ -10199,7 +10319,7 @@ var SearchSuggestions = (0, import_react90.forwardRef)((props, ref) => {
10199
10319
  SearchSuggestions.displayName = "SearchSuggestions";
10200
10320
 
10201
10321
  // src/components/Search/Search.tsx
10202
- var import_jsx_runtime249 = require("react/jsx-runtime");
10322
+ var import_jsx_runtime250 = require("react/jsx-runtime");
10203
10323
  var getIconSize = (size2) => {
10204
10324
  switch (size2) {
10205
10325
  case "large":
@@ -10210,7 +10330,7 @@ var getIconSize = (size2) => {
10210
10330
  return "small";
10211
10331
  }
10212
10332
  };
10213
- var Search = (0, import_react91.forwardRef)(
10333
+ var Search = (0, import_react92.forwardRef)(
10214
10334
  ({
10215
10335
  componentSize = "medium",
10216
10336
  buttonProps,
@@ -10226,7 +10346,7 @@ var Search = (0, import_react91.forwardRef)(
10226
10346
  ...rest
10227
10347
  }, ref) => {
10228
10348
  var _a;
10229
- const generatedId = (0, import_react91.useId)();
10349
+ const generatedId = (0, import_react92.useId)();
10230
10350
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
10231
10351
  const hasLabel = !!label;
10232
10352
  const tipId = derivativeIdGenerator(uniqueId, "tip");
@@ -10235,7 +10355,7 @@ var Search = (0, import_react91.forwardRef)(
10235
10355
  uniqueId,
10236
10356
  "suggestions-description"
10237
10357
  );
10238
- const [hasValue, setHasValue] = (0, import_react91.useState)(!!value);
10358
+ const [hasValue, setHasValue] = (0, import_react92.useState)(!!value);
10239
10359
  const context = useAutocompleteSearch();
10240
10360
  const combinedRef = context.inputRef ? useCombinedRef(context.inputRef, ref) : ref;
10241
10361
  const handleChange = (e) => {
@@ -10254,10 +10374,10 @@ var Search = (0, import_react91.forwardRef)(
10254
10374
  } = buttonProps != null ? buttonProps : {};
10255
10375
  const hasSuggestions = !!context.suggestions;
10256
10376
  const showSearchButton = !!buttonProps && !!onClick;
10257
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)("div", { className: Search_default.container, children: [
10258
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Label, { htmlFor: uniqueId, children: label }),
10259
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)("div", { children: [
10260
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
10377
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: Search_default.container, children: [
10378
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Label, { htmlFor: uniqueId, children: label }),
10379
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { children: [
10380
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
10261
10381
  "div",
10262
10382
  {
10263
10383
  className: cn(
@@ -10266,8 +10386,8 @@ var Search = (0, import_react91.forwardRef)(
10266
10386
  ),
10267
10387
  style,
10268
10388
  children: [
10269
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)("div", { className: Search_default["input-group"], children: [
10270
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
10389
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: Search_default["input-group"], children: [
10390
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
10271
10391
  Icon,
10272
10392
  {
10273
10393
  icon: SearchIcon,
@@ -10275,7 +10395,7 @@ var Search = (0, import_react91.forwardRef)(
10275
10395
  className: cn(Search_default["search-icon"])
10276
10396
  }
10277
10397
  ),
10278
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
10398
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
10279
10399
  Input,
10280
10400
  {
10281
10401
  ...rest,
@@ -10303,8 +10423,8 @@ var Search = (0, import_react91.forwardRef)(
10303
10423
  )
10304
10424
  }
10305
10425
  ),
10306
- hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(import_jsx_runtime249.Fragment, { children: [
10307
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
10426
+ hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(import_jsx_runtime250.Fragment, { children: [
10427
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
10308
10428
  SearchSuggestions,
10309
10429
  {
10310
10430
  id: suggestionsId,
@@ -10316,9 +10436,9 @@ var Search = (0, import_react91.forwardRef)(
10316
10436
  componentSize
10317
10437
  }
10318
10438
  ),
10319
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10439
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10320
10440
  ] }),
10321
- hasValue && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
10441
+ hasValue && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
10322
10442
  Button,
10323
10443
  {
10324
10444
  icon: CloseSmallIcon,
@@ -10330,7 +10450,7 @@ var Search = (0, import_react91.forwardRef)(
10330
10450
  }
10331
10451
  )
10332
10452
  ] }),
10333
- showSearchButton && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
10453
+ showSearchButton && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
10334
10454
  Button,
10335
10455
  {
10336
10456
  size: componentSize,
@@ -10350,8 +10470,8 @@ var Search = (0, import_react91.forwardRef)(
10350
10470
  Search.displayName = "Search";
10351
10471
 
10352
10472
  // src/components/Search/SearchAutocompleteWrapper.tsx
10353
- var import_react92 = require("react");
10354
- var import_jsx_runtime250 = require("react/jsx-runtime");
10473
+ var import_react93 = require("react");
10474
+ var import_jsx_runtime251 = require("react/jsx-runtime");
10355
10475
  var SearchAutocompleteWrapper = (props) => {
10356
10476
  const {
10357
10477
  value,
@@ -10362,12 +10482,12 @@ var SearchAutocompleteWrapper = (props) => {
10362
10482
  onSuggestionSelection,
10363
10483
  children
10364
10484
  } = props;
10365
- const [inputValue, setInputValue] = (0, import_react92.useState)(value != null ? value : "");
10366
- const [suggestions, setSuggestions] = (0, import_react92.useState)([]);
10367
- const [showSuggestions, setShowSuggestions] = (0, import_react92.useState)(false);
10485
+ const [inputValue, setInputValue] = (0, import_react93.useState)(value != null ? value : "");
10486
+ const [suggestions, setSuggestions] = (0, import_react93.useState)([]);
10487
+ const [showSuggestions, setShowSuggestions] = (0, import_react93.useState)(false);
10368
10488
  const closeSuggestions = () => showSuggestions === true && setShowSuggestions(false);
10369
10489
  const openSuggestions = () => showSuggestions === false && setShowSuggestions(true);
10370
- (0, import_react92.useEffect)(() => {
10490
+ (0, import_react93.useEffect)(() => {
10371
10491
  if (suggestions.length > 0) {
10372
10492
  openSuggestions();
10373
10493
  } else {
@@ -10412,8 +10532,8 @@ var SearchAutocompleteWrapper = (props) => {
10412
10532
  const handleSetInputValue = (value2) => {
10413
10533
  setInputValue(value2 != null ? value2 : "");
10414
10534
  };
10415
- const inputRef = (0, import_react92.useRef)(null);
10416
- const suggestionsRef = (0, import_react92.useRef)(null);
10535
+ const inputRef = (0, import_react93.useRef)(null);
10536
+ const suggestionsRef = (0, import_react93.useRef)(null);
10417
10537
  useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
10418
10538
  closeSuggestions();
10419
10539
  });
@@ -10427,7 +10547,7 @@ var SearchAutocompleteWrapper = (props) => {
10427
10547
  inputValue,
10428
10548
  onSugggestionClick: handleSuggestionClick
10429
10549
  };
10430
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(AutocompleteSearchContext.Provider, { value: contextProps, children });
10550
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(AutocompleteSearchContext.Provider, { value: contextProps, children });
10431
10551
  };
10432
10552
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
10433
10553
 
@@ -10437,17 +10557,17 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
10437
10557
  Search2.Suggestions = SearchSuggestions;
10438
10558
 
10439
10559
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
10440
- var import_react95 = require("react");
10560
+ var import_react96 = require("react");
10441
10561
 
10442
10562
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
10443
- var import_react93 = require("react");
10444
- var CheckboxGroupContext = (0, import_react93.createContext)(null);
10563
+ var import_react94 = require("react");
10564
+ var CheckboxGroupContext = (0, import_react94.createContext)(null);
10445
10565
  var useCheckboxGroup = () => {
10446
- return (0, import_react93.useContext)(CheckboxGroupContext);
10566
+ return (0, import_react94.useContext)(CheckboxGroupContext);
10447
10567
  };
10448
10568
 
10449
10569
  // src/components/SelectionControl/SelectionControl.styles.tsx
10450
- var import_react94 = require("react");
10570
+ var import_react95 = require("react");
10451
10571
 
10452
10572
  // src/components/SelectionControl/SelectionControl.module.css
10453
10573
  var SelectionControl_default = {
@@ -10467,10 +10587,10 @@ var SelectionControl_default = {
10467
10587
  };
10468
10588
 
10469
10589
  // src/components/SelectionControl/SelectionControl.styles.tsx
10470
- var import_jsx_runtime251 = require("react/jsx-runtime");
10471
- var SelectionControl = (0, import_react94.forwardRef)((props, ref) => {
10590
+ var import_jsx_runtime252 = require("react/jsx-runtime");
10591
+ var SelectionControl = (0, import_react95.forwardRef)((props, ref) => {
10472
10592
  const { controlType, className, ...rest } = props;
10473
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
10593
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
10474
10594
  "span",
10475
10595
  {
10476
10596
  ref,
@@ -10483,7 +10603,7 @@ var SelectionControl = (0, import_react94.forwardRef)((props, ref) => {
10483
10603
  }
10484
10604
  );
10485
10605
  });
10486
- var Label2 = (0, import_react94.forwardRef)(
10606
+ var Label2 = (0, import_react95.forwardRef)(
10487
10607
  (props, ref) => {
10488
10608
  const {
10489
10609
  disabled,
@@ -10494,7 +10614,7 @@ var Label2 = (0, import_react94.forwardRef)(
10494
10614
  className,
10495
10615
  ...rest
10496
10616
  } = props;
10497
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
10617
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
10498
10618
  "label",
10499
10619
  {
10500
10620
  ref,
@@ -10525,8 +10645,8 @@ var selectionControlTypographyProps = {
10525
10645
  };
10526
10646
 
10527
10647
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
10528
- var import_jsx_runtime252 = require("react/jsx-runtime");
10529
- var Checkbox = (0, import_react95.forwardRef)(
10648
+ var import_jsx_runtime253 = require("react/jsx-runtime");
10649
+ var Checkbox = (0, import_react96.forwardRef)(
10530
10650
  (props, ref) => {
10531
10651
  const {
10532
10652
  id,
@@ -10541,7 +10661,7 @@ var Checkbox = (0, import_react95.forwardRef)(
10541
10661
  htmlProps = {},
10542
10662
  ...rest
10543
10663
  } = props;
10544
- const generatedId = (0, import_react95.useId)();
10664
+ const generatedId = (0, import_react96.useId)();
10545
10665
  const uniqueId = id != null ? id : `${generatedId}-checkbox`;
10546
10666
  const checkboxGroup = useCheckboxGroup();
10547
10667
  const hasLabel = !!label;
@@ -10550,7 +10670,7 @@ var Checkbox = (0, import_react95.forwardRef)(
10550
10670
  className: htmlPropsClassName,
10551
10671
  ...restHtmlProps
10552
10672
  } = htmlProps;
10553
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
10673
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
10554
10674
  Label2,
10555
10675
  {
10556
10676
  hasError: error || (checkboxGroup == null ? void 0 : checkboxGroup.error),
@@ -10562,7 +10682,7 @@ var Checkbox = (0, import_react95.forwardRef)(
10562
10682
  className: cn(className, htmlPropsClassName),
10563
10683
  style,
10564
10684
  children: [
10565
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
10685
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
10566
10686
  "input",
10567
10687
  {
10568
10688
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -10586,14 +10706,14 @@ var Checkbox = (0, import_react95.forwardRef)(
10586
10706
  )
10587
10707
  }
10588
10708
  ),
10589
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
10709
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
10590
10710
  SelectionControl,
10591
10711
  {
10592
10712
  controlType: "checkbox",
10593
10713
  className: focus_default["focus-styled-sibling"]
10594
10714
  }
10595
10715
  ),
10596
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Typography, { ...selectionControlTypographyProps, children: label })
10716
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Typography, { ...selectionControlTypographyProps, children: label })
10597
10717
  ]
10598
10718
  }
10599
10719
  );
@@ -10602,8 +10722,8 @@ var Checkbox = (0, import_react95.forwardRef)(
10602
10722
  Checkbox.displayName = "Checkbox";
10603
10723
 
10604
10724
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
10605
- var import_react96 = require("react");
10606
- var import_jsx_runtime253 = require("react/jsx-runtime");
10725
+ var import_react97 = require("react");
10726
+ var import_jsx_runtime254 = require("react/jsx-runtime");
10607
10727
  var CheckboxGroup = (props) => {
10608
10728
  const {
10609
10729
  label,
@@ -10621,7 +10741,7 @@ var CheckboxGroup = (props) => {
10621
10741
  ...rest
10622
10742
  } = props;
10623
10743
  const { "aria-required": ariaRequired } = htmlProps;
10624
- const generatedId = (0, import_react96.useId)();
10744
+ const generatedId = (0, import_react97.useId)();
10625
10745
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
10626
10746
  const hasErrorMessage = !!errorMessage;
10627
10747
  const showRequiredMarker = required || ariaRequired;
@@ -10635,7 +10755,7 @@ var CheckboxGroup = (props) => {
10635
10755
  disabled,
10636
10756
  readOnly
10637
10757
  };
10638
- return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
10758
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
10639
10759
  "div",
10640
10760
  {
10641
10761
  ...getBaseHTMLProps(
@@ -10645,7 +10765,7 @@ var CheckboxGroup = (props) => {
10645
10765
  rest
10646
10766
  ),
10647
10767
  children: [
10648
- /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
10768
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
10649
10769
  Typography,
10650
10770
  {
10651
10771
  as: "span",
@@ -10654,12 +10774,12 @@ var CheckboxGroup = (props) => {
10654
10774
  children: [
10655
10775
  label,
10656
10776
  " ",
10657
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(RequiredMarker, {})
10777
+ showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(RequiredMarker, {})
10658
10778
  ]
10659
10779
  }
10660
10780
  ),
10661
10781
  renderInputMessage(tip, tipId),
10662
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
10782
+ /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
10663
10783
  "div",
10664
10784
  {
10665
10785
  role: "group",
@@ -10677,17 +10797,17 @@ var CheckboxGroup = (props) => {
10677
10797
  CheckboxGroup.displayName = "CheckboxGroup";
10678
10798
 
10679
10799
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
10680
- var import_react98 = require("react");
10800
+ var import_react99 = require("react");
10681
10801
 
10682
10802
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
10683
- var import_react97 = require("react");
10684
- var RadioButtonGroupContext = (0, import_react97.createContext)(null);
10803
+ var import_react98 = require("react");
10804
+ var RadioButtonGroupContext = (0, import_react98.createContext)(null);
10685
10805
  var useRadioButtonGroup = () => {
10686
- return (0, import_react97.useContext)(RadioButtonGroupContext);
10806
+ return (0, import_react98.useContext)(RadioButtonGroupContext);
10687
10807
  };
10688
10808
 
10689
10809
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
10690
- var import_jsx_runtime254 = require("react/jsx-runtime");
10810
+ var import_jsx_runtime255 = require("react/jsx-runtime");
10691
10811
  var isValueEqualToGroupValueOrFalsy = (value, group) => {
10692
10812
  if (typeof value !== "undefined" && value !== null && group) {
10693
10813
  if (typeof value === "number") {
@@ -10697,7 +10817,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group) => {
10697
10817
  }
10698
10818
  return !!value;
10699
10819
  };
10700
- var RadioButton = (0, import_react98.forwardRef)(
10820
+ var RadioButton = (0, import_react99.forwardRef)(
10701
10821
  (props, ref) => {
10702
10822
  const {
10703
10823
  id,
@@ -10721,7 +10841,7 @@ var RadioButton = (0, import_react98.forwardRef)(
10721
10841
  style,
10722
10842
  ...restHtmlProps
10723
10843
  } = htmlProps;
10724
- const generatedId = (0, import_react98.useId)();
10844
+ const generatedId = (0, import_react99.useId)();
10725
10845
  const uniqueId = id != null ? id : `${generatedId}-radioButton`;
10726
10846
  const hasLabel = !!label;
10727
10847
  const radioButtonGroup = useRadioButtonGroup();
@@ -10733,7 +10853,7 @@ var RadioButton = (0, import_react98.forwardRef)(
10733
10853
  if (radioButtonGroup == null ? void 0 : radioButtonGroup.errorMessageId)
10734
10854
  describedByIds.push(radioButtonGroup == null ? void 0 : radioButtonGroup.errorMessageId);
10735
10855
  if (ariaDescribedby) describedByIds.push(ariaDescribedby);
10736
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
10856
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
10737
10857
  Label2,
10738
10858
  {
10739
10859
  hasError: error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error),
@@ -10745,7 +10865,7 @@ var RadioButton = (0, import_react98.forwardRef)(
10745
10865
  htmlFor: uniqueId,
10746
10866
  controlType: "radio",
10747
10867
  children: [
10748
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
10868
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
10749
10869
  "input",
10750
10870
  {
10751
10871
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -10765,14 +10885,14 @@ var RadioButton = (0, import_react98.forwardRef)(
10765
10885
  ref
10766
10886
  }
10767
10887
  ),
10768
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
10888
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
10769
10889
  SelectionControl,
10770
10890
  {
10771
10891
  controlType: "radio",
10772
10892
  className: focus_default["focus-styled-sibling"]
10773
10893
  }
10774
10894
  ),
10775
- /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
10895
+ /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
10776
10896
  ]
10777
10897
  }
10778
10898
  );
@@ -10781,8 +10901,8 @@ var RadioButton = (0, import_react98.forwardRef)(
10781
10901
  RadioButton.displayName = "RadioButton";
10782
10902
 
10783
10903
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
10784
- var import_react99 = require("react");
10785
- var import_jsx_runtime255 = require("react/jsx-runtime");
10904
+ var import_react100 = require("react");
10905
+ var import_jsx_runtime256 = require("react/jsx-runtime");
10786
10906
  var RadioButtonGroupInner = (props, ref) => {
10787
10907
  const {
10788
10908
  name,
@@ -10803,8 +10923,8 @@ var RadioButtonGroupInner = (props, ref) => {
10803
10923
  ...rest
10804
10924
  } = props;
10805
10925
  const { "aria-required": ariaRequired = false } = htmlProps;
10806
- const [groupValue, setGroupValue] = (0, import_react99.useState)(value);
10807
- const generatedId = (0, import_react99.useId)();
10926
+ const [groupValue, setGroupValue] = (0, import_react100.useState)(value);
10927
+ const generatedId = (0, import_react100.useId)();
10808
10928
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-radioButtonGroup`;
10809
10929
  const handleChange = combineHandlers(
10810
10930
  (e) => setGroupValue(e.target.value),
@@ -10824,7 +10944,7 @@ var RadioButtonGroupInner = (props, ref) => {
10824
10944
  value: groupValue,
10825
10945
  onChange: handleChange
10826
10946
  };
10827
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
10947
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
10828
10948
  "div",
10829
10949
  {
10830
10950
  ...getBaseHTMLProps(
@@ -10835,7 +10955,7 @@ var RadioButtonGroupInner = (props, ref) => {
10835
10955
  ),
10836
10956
  ref,
10837
10957
  children: [
10838
- /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
10958
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
10839
10959
  Typography,
10840
10960
  {
10841
10961
  as: "span",
@@ -10844,12 +10964,12 @@ var RadioButtonGroupInner = (props, ref) => {
10844
10964
  children: [
10845
10965
  label,
10846
10966
  " ",
10847
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(RequiredMarker, {})
10967
+ showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(RequiredMarker, {})
10848
10968
  ]
10849
10969
  }
10850
10970
  ),
10851
10971
  renderInputMessage(tip, tipId),
10852
- /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
10972
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
10853
10973
  "div",
10854
10974
  {
10855
10975
  role: "radiogroup",
@@ -10865,11 +10985,11 @@ var RadioButtonGroupInner = (props, ref) => {
10865
10985
  }
10866
10986
  );
10867
10987
  };
10868
- var RadioButtonGroup = (0, import_react99.forwardRef)(RadioButtonGroupInner);
10988
+ var RadioButtonGroup = (0, import_react100.forwardRef)(RadioButtonGroupInner);
10869
10989
  RadioButtonGroup.displayName = "RadioButtonGroup";
10870
10990
 
10871
10991
  // src/components/SkipToContent/SkipToContent.tsx
10872
- var import_react100 = require("react");
10992
+ var import_react101 = require("react");
10873
10993
 
10874
10994
  // src/components/SkipToContent/SkipToContent.module.css
10875
10995
  var SkipToContent_default = {
@@ -10878,8 +10998,8 @@ var SkipToContent_default = {
10878
10998
  };
10879
10999
 
10880
11000
  // src/components/SkipToContent/SkipToContent.tsx
10881
- var import_jsx_runtime256 = require("react/jsx-runtime");
10882
- var SkipToContent = (0, import_react100.forwardRef)(
11001
+ var import_jsx_runtime257 = require("react/jsx-runtime");
11002
+ var SkipToContent = (0, import_react101.forwardRef)(
10883
11003
  (props, ref) => {
10884
11004
  const {
10885
11005
  text = "Til hovedinnhold",
@@ -10894,12 +11014,12 @@ var SkipToContent = (0, import_react100.forwardRef)(
10894
11014
  style,
10895
11015
  ...restHtmlProps
10896
11016
  } = htmlProps;
10897
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11017
+ return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
10898
11018
  "div",
10899
11019
  {
10900
11020
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
10901
11021
  style: { ...style, top },
10902
- children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
11022
+ children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
10903
11023
  Link,
10904
11024
  {
10905
11025
  ...getBaseHTMLProps(id, restHtmlProps, rest),
@@ -10916,7 +11036,7 @@ var SkipToContent = (0, import_react100.forwardRef)(
10916
11036
  SkipToContent.displayName = "SkipToContent";
10917
11037
 
10918
11038
  // src/components/SplitButton/SplitButton.tsx
10919
- var import_react101 = require("react");
11039
+ var import_react102 = require("react");
10920
11040
 
10921
11041
  // src/components/SplitButton/SplitButton.module.css
10922
11042
  var SplitButton_default = {
@@ -10927,8 +11047,8 @@ var SplitButton_default = {
10927
11047
  };
10928
11048
 
10929
11049
  // src/components/SplitButton/SplitButton.tsx
10930
- var import_jsx_runtime257 = require("react/jsx-runtime");
10931
- var SplitButton = (0, import_react101.forwardRef)(
11050
+ var import_jsx_runtime258 = require("react/jsx-runtime");
11051
+ var SplitButton = (0, import_react102.forwardRef)(
10932
11052
  (props, ref) => {
10933
11053
  const {
10934
11054
  size: size2,
@@ -10938,13 +11058,13 @@ var SplitButton = (0, import_react101.forwardRef)(
10938
11058
  className,
10939
11059
  ...rest
10940
11060
  } = props;
10941
- const [isOpen, setIsOpen] = (0, import_react101.useState)(false);
11061
+ const [isOpen, setIsOpen] = (0, import_react102.useState)(false);
10942
11062
  const buttonStyleProps = {
10943
11063
  purpose,
10944
11064
  size: size2
10945
11065
  };
10946
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
10947
- /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
11066
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
11067
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
10948
11068
  Button,
10949
11069
  {
10950
11070
  ...buttonStyleProps,
@@ -10953,8 +11073,8 @@ var SplitButton = (0, import_react101.forwardRef)(
10953
11073
  className: SplitButton_default.main
10954
11074
  }
10955
11075
  ),
10956
- /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
10957
- /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
11076
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
11077
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
10958
11078
  Button,
10959
11079
  {
10960
11080
  ...buttonStyleProps,
@@ -10967,7 +11087,7 @@ var SplitButton = (0, import_react101.forwardRef)(
10967
11087
  )
10968
11088
  }
10969
11089
  ),
10970
- /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(OverflowMenu, { items: secondaryActions, placement: "bottom-end" })
11090
+ /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(OverflowMenu, { items: secondaryActions, placement: "bottom-end" })
10971
11091
  ] })
10972
11092
  ] });
10973
11093
  }
@@ -10975,41 +11095,41 @@ var SplitButton = (0, import_react101.forwardRef)(
10975
11095
  SplitButton.displayName = "SplitButton";
10976
11096
 
10977
11097
  // src/components/Table/collapsible/CollapsibleRow.tsx
10978
- var import_react111 = require("react");
11098
+ var import_react112 = require("react");
10979
11099
 
10980
11100
  // src/components/Table/collapsible/Table.context.tsx
10981
- var import_react102 = require("react");
10982
- var CollapsibleTableContext = (0, import_react102.createContext)({
11101
+ var import_react103 = require("react");
11102
+ var CollapsibleTableContext = (0, import_react103.createContext)({
10983
11103
  headerValues: [],
10984
11104
  definingColumnIndex: [0]
10985
11105
  });
10986
- var useCollapsibleTableContext = () => (0, import_react102.useContext)(CollapsibleTableContext);
11106
+ var useCollapsibleTableContext = () => (0, import_react103.useContext)(CollapsibleTableContext);
10987
11107
 
10988
11108
  // src/components/Table/normal/Body.tsx
10989
- var import_react103 = require("react");
10990
- var import_jsx_runtime258 = require("react/jsx-runtime");
10991
- var Body = (0, import_react103.forwardRef)(
11109
+ var import_react104 = require("react");
11110
+ var import_jsx_runtime259 = require("react/jsx-runtime");
11111
+ var Body = (0, import_react104.forwardRef)(
10992
11112
  (props, ref) => {
10993
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("tbody", { ref, ...props });
11113
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("tbody", { ref, ...props });
10994
11114
  }
10995
11115
  );
10996
11116
  Body.displayName = "Table.Body";
10997
11117
 
10998
11118
  // src/components/Table/normal/Cell.tsx
10999
- var import_react105 = require("react");
11119
+ var import_react106 = require("react");
11000
11120
 
11001
11121
  // src/components/Table/normal/Head.tsx
11002
- var import_react104 = require("react");
11003
- var import_jsx_runtime259 = require("react/jsx-runtime");
11004
- var Head = (0, import_react104.forwardRef)(
11122
+ var import_react105 = require("react");
11123
+ var import_jsx_runtime260 = require("react/jsx-runtime");
11124
+ var Head = (0, import_react105.forwardRef)(
11005
11125
  ({ children, ...rest }, ref) => {
11006
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("thead", { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(HeadContext.Provider, { value: true, children }) });
11126
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("thead", { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(HeadContext.Provider, { value: true, children }) });
11007
11127
  }
11008
11128
  );
11009
11129
  Head.displayName = "Table.Head";
11010
- var HeadContext = (0, import_react104.createContext)(false);
11130
+ var HeadContext = (0, import_react105.createContext)(false);
11011
11131
  function useIsInTableHead() {
11012
- const isInTableHead = (0, import_react104.useContext)(HeadContext);
11132
+ const isInTableHead = (0, import_react105.useContext)(HeadContext);
11013
11133
  return isInTableHead;
11014
11134
  }
11015
11135
 
@@ -11039,8 +11159,8 @@ var Table_default = {
11039
11159
  };
11040
11160
 
11041
11161
  // src/components/Table/normal/Cell.tsx
11042
- var import_jsx_runtime260 = require("react/jsx-runtime");
11043
- var Cell = (0, import_react105.forwardRef)(
11162
+ var import_jsx_runtime261 = require("react/jsx-runtime");
11163
+ var Cell = (0, import_react106.forwardRef)(
11044
11164
  ({
11045
11165
  children,
11046
11166
  type: _type,
@@ -11053,7 +11173,7 @@ var Cell = (0, import_react105.forwardRef)(
11053
11173
  const type = _type != null ? _type : isInHead ? "head" : "data";
11054
11174
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
11055
11175
  const isComplexLayout = layout === "text and icon";
11056
- return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11176
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
11057
11177
  "th",
11058
11178
  {
11059
11179
  ref,
@@ -11063,15 +11183,15 @@ var Cell = (0, import_react105.forwardRef)(
11063
11183
  !isComplexLayout && Table_default[`cell--${layout}`],
11064
11184
  Table_default["cell--head"]
11065
11185
  ),
11066
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("div", { className: Table_default.cell__inner, children }) : children
11186
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("div", { className: Table_default.cell__inner, children }) : children
11067
11187
  }
11068
- ) : /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
11188
+ ) : /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
11069
11189
  "td",
11070
11190
  {
11071
11191
  ref,
11072
11192
  ...rest,
11073
11193
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
11074
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("div", { className: Table_default.cell__inner, children }) : children
11194
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("div", { className: Table_default.cell__inner, children }) : children
11075
11195
  }
11076
11196
  );
11077
11197
  }
@@ -11079,23 +11199,23 @@ var Cell = (0, import_react105.forwardRef)(
11079
11199
  Cell.displayName = "Table.Cell";
11080
11200
 
11081
11201
  // src/components/Table/normal/Foot.tsx
11082
- var import_react106 = require("react");
11083
- var import_jsx_runtime261 = require("react/jsx-runtime");
11084
- var Foot = (0, import_react106.forwardRef)(
11202
+ var import_react107 = require("react");
11203
+ var import_jsx_runtime262 = require("react/jsx-runtime");
11204
+ var Foot = (0, import_react107.forwardRef)(
11085
11205
  (props, ref) => {
11086
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)("tfoot", { ref, ...props });
11206
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("tfoot", { ref, ...props });
11087
11207
  }
11088
11208
  );
11089
11209
  Foot.displayName = "Table.Foot";
11090
11210
 
11091
11211
  // src/components/Table/normal/Row.tsx
11092
- var import_react107 = require("react");
11093
- var import_jsx_runtime262 = require("react/jsx-runtime");
11094
- var Row = (0, import_react107.forwardRef)(
11212
+ var import_react108 = require("react");
11213
+ var import_jsx_runtime263 = require("react/jsx-runtime");
11214
+ var Row = (0, import_react108.forwardRef)(
11095
11215
  ({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
11096
11216
  const isInHeader = useIsInTableHead();
11097
11217
  const type = _type != null ? _type : isInHeader ? "head" : "body";
11098
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
11218
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
11099
11219
  "tr",
11100
11220
  {
11101
11221
  ref,
@@ -11118,23 +11238,23 @@ var Row = (0, import_react107.forwardRef)(
11118
11238
  Row.displayName = "Table.Row";
11119
11239
 
11120
11240
  // src/components/Table/normal/SortCell.tsx
11121
- var import_react108 = require("react");
11122
- var import_jsx_runtime263 = require("react/jsx-runtime");
11241
+ var import_react109 = require("react");
11242
+ var import_jsx_runtime264 = require("react/jsx-runtime");
11123
11243
  var makeSortIcon = (isSorted, sortOrder) => {
11124
11244
  if (!isSorted || !sortOrder) {
11125
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
11245
+ return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
11126
11246
  }
11127
- return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
11247
+ return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
11128
11248
  };
11129
- var SortCell = (0, import_react108.forwardRef)(
11130
- ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
11249
+ var SortCell = (0, import_react109.forwardRef)(
11250
+ ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
11131
11251
  Cell,
11132
11252
  {
11133
11253
  ref,
11134
11254
  type: "head",
11135
11255
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
11136
11256
  ...rest,
11137
- children: /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
11257
+ children: /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
11138
11258
  "button",
11139
11259
  {
11140
11260
  onClick,
@@ -11158,8 +11278,8 @@ var SortCell = (0, import_react108.forwardRef)(
11158
11278
  SortCell.displayName = "Table.SortCell";
11159
11279
 
11160
11280
  // src/components/Table/normal/Table.tsx
11161
- var import_react109 = require("react");
11162
- var import_jsx_runtime264 = require("react/jsx-runtime");
11281
+ var import_react110 = require("react");
11282
+ var import_jsx_runtime265 = require("react/jsx-runtime");
11163
11283
  function getDensityCn(value) {
11164
11284
  switch (value) {
11165
11285
  case "normal":
@@ -11169,7 +11289,7 @@ function getDensityCn(value) {
11169
11289
  return "extra-compact";
11170
11290
  }
11171
11291
  }
11172
- var Table = (0, import_react109.forwardRef)(
11292
+ var Table = (0, import_react110.forwardRef)(
11173
11293
  ({
11174
11294
  density = "normal",
11175
11295
  stickyHeader,
@@ -11178,7 +11298,7 @@ var Table = (0, import_react109.forwardRef)(
11178
11298
  children,
11179
11299
  ...rest
11180
11300
  }, ref) => {
11181
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
11301
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
11182
11302
  "table",
11183
11303
  {
11184
11304
  ref,
@@ -11199,30 +11319,30 @@ var Table = (0, import_react109.forwardRef)(
11199
11319
  Table.displayName = "Table";
11200
11320
 
11201
11321
  // src/components/Table/normal/TableWrapper.tsx
11202
- var import_react110 = require("react");
11203
- var import_jsx_runtime265 = require("react/jsx-runtime");
11322
+ var import_react111 = require("react");
11323
+ var import_jsx_runtime266 = require("react/jsx-runtime");
11204
11324
  var TableWrapper = ({ className, ...rest }) => {
11205
- const [overflowX, setOverflowX] = (0, import_react110.useState)(false);
11206
- const [windowWidth, setWindowWidth] = (0, import_react110.useState)(window.innerWidth);
11325
+ const [overflowX, setOverflowX] = (0, import_react111.useState)(false);
11326
+ const [windowWidth, setWindowWidth] = (0, import_react111.useState)(window.innerWidth);
11207
11327
  function isOverflowingX(event) {
11208
11328
  return event.offsetWidth < event.scrollWidth;
11209
11329
  }
11210
- const wrapperRef = (0, import_react110.useRef)(null);
11211
- (0, import_react110.useEffect)(() => {
11330
+ const wrapperRef = (0, import_react111.useRef)(null);
11331
+ (0, import_react111.useEffect)(() => {
11212
11332
  if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
11213
11333
  setOverflowX(true);
11214
11334
  return;
11215
11335
  }
11216
11336
  setOverflowX(false);
11217
11337
  }, [windowWidth]);
11218
- (0, import_react110.useEffect)(() => {
11338
+ (0, import_react111.useEffect)(() => {
11219
11339
  function handleResize() {
11220
11340
  setWindowWidth(window.innerWidth);
11221
11341
  }
11222
11342
  window.addEventListener("resize", handleResize);
11223
11343
  return () => window.removeEventListener("resize", handleResize);
11224
11344
  });
11225
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
11345
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
11226
11346
  "div",
11227
11347
  {
11228
11348
  ref: wrapperRef,
@@ -11249,8 +11369,8 @@ Table2.Row = Row;
11249
11369
  Table2.Foot = Foot;
11250
11370
 
11251
11371
  // src/components/Table/collapsible/CollapsibleRow.tsx
11252
- var import_jsx_runtime266 = require("react/jsx-runtime");
11253
- var CollapsibleRow = (0, import_react111.forwardRef)(
11372
+ var import_jsx_runtime267 = require("react/jsx-runtime");
11373
+ var CollapsibleRow = (0, import_react112.forwardRef)(
11254
11374
  ({
11255
11375
  type: _type,
11256
11376
  className,
@@ -11263,8 +11383,8 @@ var CollapsibleRow = (0, import_react111.forwardRef)(
11263
11383
  const isInHead = useIsInTableHead();
11264
11384
  const type = _type != null ? _type : isInHead ? "head" : "body";
11265
11385
  const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
11266
- const [childrenCollapsed, setChildrenCollapsed] = (0, import_react111.useState)(true);
11267
- (0, import_react111.useEffect)(() => {
11386
+ const [childrenCollapsed, setChildrenCollapsed] = (0, import_react112.useState)(true);
11387
+ (0, import_react112.useEffect)(() => {
11268
11388
  !isCollapsed && setChildrenCollapsed(true);
11269
11389
  }, [isCollapsed]);
11270
11390
  const rowProps = (isOpenCollapsibleHeader) => {
@@ -11282,7 +11402,7 @@ var CollapsibleRow = (0, import_react111.forwardRef)(
11282
11402
  const collapsedHeaderValues = headerValues.filter(
11283
11403
  (column2, index) => definingColumnIndex.indexOf(index) === -1
11284
11404
  );
11285
- const childrenArray = import_react111.Children.toArray(children);
11405
+ const childrenArray = import_react112.Children.toArray(children);
11286
11406
  const collapsedChildren = childrenArray.filter(
11287
11407
  (column2, index) => definingColumnIndex.indexOf(index) === -1
11288
11408
  );
@@ -11291,33 +11411,33 @@ var CollapsibleRow = (0, import_react111.forwardRef)(
11291
11411
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
11292
11412
  const id = derivativeIdGenerator(prefix3, index.toString());
11293
11413
  collapsibleIds.push(id);
11294
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(import_react111.Fragment, { children: [
11295
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11296
- (0, import_react111.isValidElement)(child) && (0, import_react111.cloneElement)(child, {
11414
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(import_react112.Fragment, { children: [
11415
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11416
+ (0, import_react112.isValidElement)(child) && (0, import_react112.cloneElement)(child, {
11297
11417
  collapsibleProps: { isCollapsibleChild: true }
11298
11418
  })
11299
11419
  ] }, `DL-${index}`);
11300
11420
  }) : null;
11301
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
11421
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
11302
11422
  const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a3, b) => {
11303
11423
  return definingColumnIndex.indexOf(childrenArray.indexOf(a3)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
11304
11424
  });
11305
11425
  const headerRow = () => {
11306
11426
  if (type !== "head" || !isCollapsed) return null;
11307
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(import_jsx_runtime266.Fragment, { children: [
11427
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(import_jsx_runtime267.Fragment, { children: [
11308
11428
  definingColumnCells,
11309
- /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
11429
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
11310
11430
  "Utvid",
11311
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(VisuallyHidden, { as: "span", children: "raden" })
11431
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(VisuallyHidden, { as: "span", children: "raden" })
11312
11432
  ] })
11313
11433
  ] }) });
11314
11434
  };
11315
11435
  const idList = spaceSeparatedIdListGenerator(collapsibleIds);
11316
11436
  const rowWithChevron = () => {
11317
11437
  if (type !== "body" || !isCollapsed) return null;
11318
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11438
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11319
11439
  definingColumnCells,
11320
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
11440
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
11321
11441
  "button",
11322
11442
  {
11323
11443
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
@@ -11329,7 +11449,7 @@ var CollapsibleRow = (0, import_react111.forwardRef)(
11329
11449
  utilStyles_default["remove-button-styling"],
11330
11450
  focusable
11331
11451
  ),
11332
- children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
11452
+ children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
11333
11453
  AnimatedChevronUpDown,
11334
11454
  {
11335
11455
  isUp: childrenCollapsed ? false : true,
@@ -11341,28 +11461,28 @@ var CollapsibleRow = (0, import_react111.forwardRef)(
11341
11461
  ) })
11342
11462
  ] });
11343
11463
  };
11344
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(import_jsx_runtime266.Fragment, { children: [
11464
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(import_jsx_runtime267.Fragment, { children: [
11345
11465
  headerRow(),
11346
- type === "body" && /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(import_jsx_runtime266.Fragment, { children: [
11466
+ type === "body" && /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(import_jsx_runtime267.Fragment, { children: [
11347
11467
  rowWithChevron(),
11348
11468
  childrenCollapsed ? null : collapsedRows
11349
11469
  ] })
11350
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Row, { ref, ...rowProps(), children });
11470
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Row, { ref, ...rowProps(), children });
11351
11471
  }
11352
11472
  );
11353
11473
  CollapsibleRow.displayName = "CollapsibleTable.Row";
11354
11474
 
11355
11475
  // src/components/Table/collapsible/CollapsibleTable.tsx
11356
- var import_react112 = require("react");
11357
- var import_jsx_runtime267 = require("react/jsx-runtime");
11358
- var CollapsibleTable = (0, import_react112.forwardRef)((props, ref) => {
11476
+ var import_react113 = require("react");
11477
+ var import_jsx_runtime268 = require("react/jsx-runtime");
11478
+ var CollapsibleTable = (0, import_react113.forwardRef)((props, ref) => {
11359
11479
  const {
11360
11480
  isCollapsed,
11361
11481
  headerValues,
11362
11482
  definingColumnIndex = [0],
11363
11483
  ...rest
11364
11484
  } = props;
11365
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
11485
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11366
11486
  CollapsibleTableContext.Provider,
11367
11487
  {
11368
11488
  value: {
@@ -11370,7 +11490,7 @@ var CollapsibleTable = (0, import_react112.forwardRef)((props, ref) => {
11370
11490
  headerValues,
11371
11491
  definingColumnIndex
11372
11492
  },
11373
- children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Table2, { ref, ...rest })
11493
+ children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(Table2, { ref, ...rest })
11374
11494
  }
11375
11495
  );
11376
11496
  });
@@ -11381,11 +11501,11 @@ var CollapsibleTable2 = CollapsibleTable;
11381
11501
  CollapsibleTable2.Row = CollapsibleRow;
11382
11502
 
11383
11503
  // src/components/Tabs/Tabs.tsx
11384
- var import_react114 = require("react");
11504
+ var import_react115 = require("react");
11385
11505
 
11386
11506
  // src/components/Tabs/Tabs.context.tsx
11387
- var import_react113 = require("react");
11388
- var TabsContext = (0, import_react113.createContext)({
11507
+ var import_react114 = require("react");
11508
+ var TabsContext = (0, import_react114.createContext)({
11389
11509
  activeTab: 0,
11390
11510
  tabsId: "",
11391
11511
  handleTabChange: () => null,
@@ -11395,7 +11515,7 @@ var TabsContext = (0, import_react113.createContext)({
11395
11515
  setHasTabFocus: () => null,
11396
11516
  tabContentDirection: "row"
11397
11517
  });
11398
- var useTabsContext = () => (0, import_react113.useContext)(TabsContext);
11518
+ var useTabsContext = () => (0, import_react114.useContext)(TabsContext);
11399
11519
 
11400
11520
  // src/components/Tabs/Tabs.module.css
11401
11521
  var Tabs_default = {
@@ -11412,8 +11532,8 @@ var Tabs_default = {
11412
11532
  };
11413
11533
 
11414
11534
  // src/components/Tabs/Tabs.tsx
11415
- var import_jsx_runtime268 = require("react/jsx-runtime");
11416
- var Tabs = (0, import_react114.forwardRef)((props, ref) => {
11535
+ var import_jsx_runtime269 = require("react/jsx-runtime");
11536
+ var Tabs = (0, import_react115.forwardRef)((props, ref) => {
11417
11537
  const {
11418
11538
  id,
11419
11539
  activeTab,
@@ -11425,17 +11545,17 @@ var Tabs = (0, import_react114.forwardRef)((props, ref) => {
11425
11545
  htmlProps,
11426
11546
  ...rest
11427
11547
  } = props;
11428
- const generatedId = (0, import_react114.useId)();
11548
+ const generatedId = (0, import_react115.useId)();
11429
11549
  const uniqueId = id != null ? id : `${generatedId}-tabs`;
11430
- const [thisActiveTab, setActiveTab] = (0, import_react114.useState)(activeTab != null ? activeTab : 0);
11431
- const [hasTabFocus, setHasTabFocus] = (0, import_react114.useState)(false);
11432
- const tabListRef = (0, import_react114.useRef)(null);
11433
- const tabPanelsRef = (0, import_react114.useRef)(null);
11550
+ const [thisActiveTab, setActiveTab] = (0, import_react115.useState)(activeTab != null ? activeTab : 0);
11551
+ const [hasTabFocus, setHasTabFocus] = (0, import_react115.useState)(false);
11552
+ const tabListRef = (0, import_react115.useRef)(null);
11553
+ const tabPanelsRef = (0, import_react115.useRef)(null);
11434
11554
  const handleTabChange = (index) => {
11435
11555
  setActiveTab(index);
11436
11556
  onChange && onChange(index);
11437
11557
  };
11438
- (0, import_react114.useEffect)(() => {
11558
+ (0, import_react115.useEffect)(() => {
11439
11559
  if (activeTab !== void 0 && activeTab !== thisActiveTab) {
11440
11560
  setActiveTab(activeTab);
11441
11561
  }
@@ -11444,7 +11564,7 @@ var Tabs = (0, import_react114.forwardRef)((props, ref) => {
11444
11564
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11445
11565
  ["--dds-tabs-width"]: width
11446
11566
  };
11447
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11567
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
11448
11568
  TabsContext.Provider,
11449
11569
  {
11450
11570
  value: {
@@ -11457,7 +11577,7 @@ var Tabs = (0, import_react114.forwardRef)((props, ref) => {
11457
11577
  setHasTabFocus,
11458
11578
  tabContentDirection
11459
11579
  },
11460
- children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11580
+ children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
11461
11581
  "div",
11462
11582
  {
11463
11583
  ref,
@@ -11477,17 +11597,17 @@ var Tabs = (0, import_react114.forwardRef)((props, ref) => {
11477
11597
  Tabs.displayName = "Tabs";
11478
11598
 
11479
11599
  // src/components/Tabs/Tab.tsx
11480
- var import_react116 = require("react");
11600
+ var import_react117 = require("react");
11481
11601
 
11482
11602
  // src/components/Tabs/TabWidthContext.tsx
11483
- var import_react115 = require("react");
11484
- var import_jsx_runtime269 = require("react/jsx-runtime");
11485
- var TabContext = (0, import_react115.createContext)(null);
11603
+ var import_react116 = require("react");
11604
+ var import_jsx_runtime270 = require("react/jsx-runtime");
11605
+ var TabContext = (0, import_react116.createContext)(null);
11486
11606
  function TabWidthContextProvider({
11487
11607
  children,
11488
11608
  onChangeWidths
11489
11609
  }) {
11490
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
11610
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
11491
11611
  TabContext.Provider,
11492
11612
  {
11493
11613
  value: {
@@ -11511,16 +11631,16 @@ function TabWidthContextProvider({
11511
11631
  );
11512
11632
  }
11513
11633
  function useSetTabWidth(index, width) {
11514
- const context = (0, import_react115.useContext)(TabContext);
11515
- (0, import_react115.useLayoutEffect)(() => {
11634
+ const context = (0, import_react116.useContext)(TabContext);
11635
+ (0, import_react116.useLayoutEffect)(() => {
11516
11636
  context == null ? void 0 : context.updateWidth(index, width);
11517
11637
  return () => context == null ? void 0 : context.removeTab(index);
11518
11638
  }, [index, width]);
11519
11639
  }
11520
11640
 
11521
11641
  // src/components/Tabs/Tab.tsx
11522
- var import_jsx_runtime270 = require("react/jsx-runtime");
11523
- var Tab = (0, import_react116.forwardRef)((props, ref) => {
11642
+ var import_jsx_runtime271 = require("react/jsx-runtime");
11643
+ var Tab = (0, import_react117.forwardRef)((props, ref) => {
11524
11644
  const {
11525
11645
  active = false,
11526
11646
  icon: icon2,
@@ -11537,16 +11657,16 @@ var Tab = (0, import_react116.forwardRef)((props, ref) => {
11537
11657
  ...rest
11538
11658
  } = props;
11539
11659
  useSetTabWidth(index, width);
11540
- const itemRef = (0, import_react116.useRef)(null);
11660
+ const itemRef = (0, import_react117.useRef)(null);
11541
11661
  const combinedRef = useCombinedRef(ref, itemRef);
11542
11662
  const { tabContentDirection } = useTabsContext();
11543
- (0, import_react116.useEffect)(() => {
11663
+ (0, import_react117.useEffect)(() => {
11544
11664
  var _a;
11545
11665
  if (focus) {
11546
11666
  (_a = itemRef.current) == null ? void 0 : _a.focus();
11547
11667
  }
11548
11668
  }, [focus]);
11549
- const handleSelect = (0, import_react116.useCallback)(() => {
11669
+ const handleSelect = (0, import_react117.useCallback)(() => {
11550
11670
  if (setFocus && index) {
11551
11671
  setFocus(index);
11552
11672
  }
@@ -11559,7 +11679,7 @@ var Tab = (0, import_react116.forwardRef)((props, ref) => {
11559
11679
  handleSelect();
11560
11680
  onKeyDown && onKeyDown(e);
11561
11681
  };
11562
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
11682
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
11563
11683
  "button",
11564
11684
  {
11565
11685
  ...getBaseHTMLProps(
@@ -11582,8 +11702,8 @@ var Tab = (0, import_react116.forwardRef)((props, ref) => {
11582
11702
  onKeyDown: handleOnKeyDown,
11583
11703
  tabIndex: focus ? 0 : -1,
11584
11704
  children: [
11585
- icon2 && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(Icon, { icon: icon2, iconSize: "inherit" }),
11586
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)("span", { children })
11705
+ icon2 && /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Icon, { icon: icon2, iconSize: "inherit" }),
11706
+ /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("span", { children })
11587
11707
  ]
11588
11708
  }
11589
11709
  );
@@ -11591,9 +11711,9 @@ var Tab = (0, import_react116.forwardRef)((props, ref) => {
11591
11711
  Tab.displayName = "Tab";
11592
11712
 
11593
11713
  // src/components/Tabs/TabList.tsx
11594
- var import_react117 = require("react");
11595
- var import_jsx_runtime271 = require("react/jsx-runtime");
11596
- var TabList = (0, import_react117.forwardRef)(
11714
+ var import_react118 = require("react");
11715
+ var import_jsx_runtime272 = require("react/jsx-runtime");
11716
+ var TabList = (0, import_react118.forwardRef)(
11597
11717
  ({ children, id, style, onFocus, ...rest }, ref) => {
11598
11718
  const {
11599
11719
  activeTab,
@@ -11604,11 +11724,11 @@ var TabList = (0, import_react117.forwardRef)(
11604
11724
  setHasTabFocus
11605
11725
  } = useTabsContext();
11606
11726
  const uniqueId = id != null ? id : `${tabsId}-tablist`;
11607
- const childrenArray = import_react117.Children.toArray(children).length;
11727
+ const childrenArray = import_react118.Children.toArray(children).length;
11608
11728
  const [focus, setFocus] = useRoveFocus(childrenArray, hasTabFocus, "row");
11609
11729
  const combinedRef = useCombinedRef(ref, tabListRef);
11610
- const tabListChildren = import_react117.Children.map(children, (child, index) => {
11611
- return (0, import_react117.isValidElement)(child) && (0, import_react117.cloneElement)(child, {
11730
+ const tabListChildren = import_react118.Children.map(children, (child, index) => {
11731
+ return (0, import_react118.isValidElement)(child) && (0, import_react118.cloneElement)(child, {
11612
11732
  id: `${tabsId}-tab-${index}`,
11613
11733
  "aria-controls": `${tabsId}-panel-${index}`,
11614
11734
  active: activeTab === index,
@@ -11618,7 +11738,7 @@ var TabList = (0, import_react117.forwardRef)(
11618
11738
  onClick: () => handleTabChange(index)
11619
11739
  });
11620
11740
  });
11621
- const [widths, setWidths] = (0, import_react117.useState)([]);
11741
+ const [widths, setWidths] = (0, import_react118.useState)([]);
11622
11742
  const handleOnFocus = (event) => {
11623
11743
  setHasTabFocus(true);
11624
11744
  onFocus && onFocus(event);
@@ -11636,7 +11756,7 @@ var TabList = (0, import_react117.forwardRef)(
11636
11756
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11637
11757
  ["--dds-tab-widths"]: widths.join(" ")
11638
11758
  };
11639
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
11759
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
11640
11760
  "div",
11641
11761
  {
11642
11762
  ...rest,
@@ -11662,11 +11782,11 @@ var TabList = (0, import_react117.forwardRef)(
11662
11782
  TabList.displayName = "TabList";
11663
11783
 
11664
11784
  // src/components/Tabs/TabPanel.tsx
11665
- var import_react118 = require("react");
11666
- var import_jsx_runtime272 = require("react/jsx-runtime");
11667
- var TabPanel = (0, import_react118.forwardRef)(
11785
+ var import_react119 = require("react");
11786
+ var import_jsx_runtime273 = require("react/jsx-runtime");
11787
+ var TabPanel = (0, import_react119.forwardRef)(
11668
11788
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
11669
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
11789
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
11670
11790
  "div",
11671
11791
  {
11672
11792
  ...getBaseHTMLProps(
@@ -11691,28 +11811,28 @@ var TabPanel = (0, import_react118.forwardRef)(
11691
11811
  TabPanel.displayName = "TabPanel";
11692
11812
 
11693
11813
  // src/components/Tabs/TabPanels.tsx
11694
- var import_react119 = require("react");
11695
- var import_jsx_runtime273 = require("react/jsx-runtime");
11696
- var TabPanels = (0, import_react119.forwardRef)(
11814
+ var import_react120 = require("react");
11815
+ var import_jsx_runtime274 = require("react/jsx-runtime");
11816
+ var TabPanels = (0, import_react120.forwardRef)(
11697
11817
  ({ children, ...rest }, ref) => {
11698
11818
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
11699
11819
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
11700
- const panelChildren = import_react119.Children.map(children, (child, index) => {
11820
+ const panelChildren = import_react120.Children.map(children, (child, index) => {
11701
11821
  const active = index === activeTab;
11702
- return (0, import_react119.isValidElement)(child) && (0, import_react119.cloneElement)(child, {
11822
+ return (0, import_react120.isValidElement)(child) && (0, import_react120.cloneElement)(child, {
11703
11823
  id: `${tabsId}-panel-${index}`,
11704
11824
  "aria-labelledby": `${tabsId}-tab-${index}`,
11705
11825
  active,
11706
11826
  "aria-expanded": active
11707
11827
  });
11708
11828
  });
11709
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
11829
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
11710
11830
  }
11711
11831
  );
11712
11832
  TabPanels.displayName = "TabPanels";
11713
11833
 
11714
11834
  // src/components/Tag/Tag.tsx
11715
- var import_react120 = require("react");
11835
+ var import_react121 = require("react");
11716
11836
 
11717
11837
  // src/components/Tag/Tag.module.css
11718
11838
  var Tag_default = {
@@ -11731,7 +11851,7 @@ var Tag_default = {
11731
11851
  };
11732
11852
 
11733
11853
  // src/components/Tag/Tag.tsx
11734
- var import_jsx_runtime274 = require("react/jsx-runtime");
11854
+ var import_jsx_runtime275 = require("react/jsx-runtime");
11735
11855
  var purposeVariants3 = {
11736
11856
  info: {
11737
11857
  icon: InfoIcon
@@ -11749,7 +11869,7 @@ var purposeVariants3 = {
11749
11869
  icon: void 0
11750
11870
  }
11751
11871
  };
11752
- var Tag = (0, import_react120.forwardRef)((props, ref) => {
11872
+ var Tag = (0, import_react121.forwardRef)((props, ref) => {
11753
11873
  const {
11754
11874
  text,
11755
11875
  purpose = "default",
@@ -11762,7 +11882,7 @@ var Tag = (0, import_react120.forwardRef)((props, ref) => {
11762
11882
  ...rest
11763
11883
  } = props;
11764
11884
  const icon2 = purposeVariants3[purpose].icon;
11765
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
11885
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
11766
11886
  TextOverflowEllipsisWrapper,
11767
11887
  {
11768
11888
  ...getBaseHTMLProps(
@@ -11779,8 +11899,8 @@ var Tag = (0, import_react120.forwardRef)((props, ref) => {
11779
11899
  ),
11780
11900
  ref,
11781
11901
  children: [
11782
- withIcon && icon2 && /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(Icon, { icon: icon2, iconSize: "small" }),
11783
- /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
11902
+ withIcon && icon2 && /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(Icon, { icon: icon2, iconSize: "small" }),
11903
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
11784
11904
  ]
11785
11905
  }
11786
11906
  );
@@ -11789,7 +11909,7 @@ Tag.displayName = "Tag";
11789
11909
 
11790
11910
  // src/components/TextInput/TextInput.tsx
11791
11911
  var import_dds_design_tokens17 = require("@norges-domstoler/dds-design-tokens");
11792
- var import_react121 = require("react");
11912
+ var import_react122 = require("react");
11793
11913
 
11794
11914
  // src/components/TextInput/TextInput.module.css
11795
11915
  var TextInput_default = {
@@ -11815,8 +11935,8 @@ var TextInput_default = {
11815
11935
  };
11816
11936
 
11817
11937
  // src/components/TextInput/TextInput.tsx
11818
- var import_jsx_runtime275 = require("react/jsx-runtime");
11819
- var TextInput = (0, import_react121.forwardRef)(
11938
+ var import_jsx_runtime276 = require("react/jsx-runtime");
11939
+ var TextInput = (0, import_react122.forwardRef)(
11820
11940
  ({
11821
11941
  label,
11822
11942
  disabled,
@@ -11842,14 +11962,14 @@ var TextInput = (0, import_react121.forwardRef)(
11842
11962
  suffix,
11843
11963
  ...rest
11844
11964
  }, ref) => {
11845
- const [text, setText] = (0, import_react121.useState)(
11965
+ const [text, setText] = (0, import_react122.useState)(
11846
11966
  getDefaultText(value, defaultValue)
11847
11967
  );
11848
- const prefixRef = (0, import_react121.useRef)(null);
11849
- const suffixRef = (0, import_react121.useRef)(null);
11850
- const [prefixLength, setPrefixLength] = (0, import_react121.useState)(0);
11851
- const [suffixLength, setSuffixLength] = (0, import_react121.useState)(0);
11852
- (0, import_react121.useLayoutEffect)(() => {
11968
+ const prefixRef = (0, import_react122.useRef)(null);
11969
+ const suffixRef = (0, import_react122.useRef)(null);
11970
+ const [prefixLength, setPrefixLength] = (0, import_react122.useState)(0);
11971
+ const [suffixLength, setSuffixLength] = (0, import_react122.useState)(0);
11972
+ (0, import_react122.useLayoutEffect)(() => {
11853
11973
  if (prefixRef.current) {
11854
11974
  setPrefixLength(prefixRef.current.offsetWidth);
11855
11975
  }
@@ -11863,7 +11983,7 @@ var TextInput = (0, import_react121.forwardRef)(
11863
11983
  onChange(event);
11864
11984
  }
11865
11985
  };
11866
- const generatedId = (0, import_react121.useId)();
11986
+ const generatedId = (0, import_react122.useId)();
11867
11987
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
11868
11988
  const hasErrorMessage = !!errorMessage;
11869
11989
  const hasTip = !!tip;
@@ -11907,13 +12027,13 @@ var TextInput = (0, import_react121.forwardRef)(
11907
12027
  const suffixPaddingInlineEnd = readOnly && suffixLength ? suffixLength + "px" : suffixLength ? import_dds_design_tokens17.ddsTokens.DdsSpacingX1NumberPx + suffixLength + "px" : void 0;
11908
12028
  let extendedInput = null;
11909
12029
  if (hasIcon) {
11910
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
12030
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
11911
12031
  "div",
11912
12032
  {
11913
12033
  className: cn(TextInput_default["input-width"], Input_default["input-group"]),
11914
12034
  style: styleVariables,
11915
12035
  children: [
11916
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12036
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11917
12037
  Icon,
11918
12038
  {
11919
12039
  icon: icon2,
@@ -11921,7 +12041,7 @@ var TextInput = (0, import_react121.forwardRef)(
11921
12041
  className: cn(TextInput_default.icon, TextInput_default[`icon--${componentSize}`])
11922
12042
  }
11923
12043
  ),
11924
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12044
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11925
12045
  StatefulInput,
11926
12046
  {
11927
12047
  ref,
@@ -11936,13 +12056,13 @@ var TextInput = (0, import_react121.forwardRef)(
11936
12056
  }
11937
12057
  );
11938
12058
  } else if (hasAffix) {
11939
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
12059
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
11940
12060
  "div",
11941
12061
  {
11942
12062
  className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
11943
12063
  style: styleVariables,
11944
12064
  children: [
11945
- prefix3 && /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12065
+ prefix3 && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11946
12066
  "span",
11947
12067
  {
11948
12068
  ref: prefixRef,
@@ -11955,7 +12075,7 @@ var TextInput = (0, import_react121.forwardRef)(
11955
12075
  children: prefix3
11956
12076
  }
11957
12077
  ),
11958
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12078
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11959
12079
  StatefulInput,
11960
12080
  {
11961
12081
  ref,
@@ -11969,7 +12089,7 @@ var TextInput = (0, import_react121.forwardRef)(
11969
12089
  }
11970
12090
  }
11971
12091
  ),
11972
- suffix && /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12092
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11973
12093
  "span",
11974
12094
  {
11975
12095
  ref: suffixRef,
@@ -11986,7 +12106,7 @@ var TextInput = (0, import_react121.forwardRef)(
11986
12106
  }
11987
12107
  );
11988
12108
  }
11989
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
12109
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
11990
12110
  "div",
11991
12111
  {
11992
12112
  className: cn(
@@ -11996,7 +12116,7 @@ var TextInput = (0, import_react121.forwardRef)(
11996
12116
  ),
11997
12117
  style,
11998
12118
  children: [
11999
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12119
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
12000
12120
  Label,
12001
12121
  {
12002
12122
  htmlFor: uniqueId,
@@ -12005,7 +12125,7 @@ var TextInput = (0, import_react121.forwardRef)(
12005
12125
  children: label
12006
12126
  }
12007
12127
  ),
12008
- extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12128
+ extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
12009
12129
  StatefulInput,
12010
12130
  {
12011
12131
  ref,
@@ -12017,7 +12137,7 @@ var TextInput = (0, import_react121.forwardRef)(
12017
12137
  className: TextInput_default["input-width"]
12018
12138
  }
12019
12139
  ),
12020
- hasMessage && /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)("div", { className: TextInput_default["message-container"], children: [
12140
+ hasMessage && /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)("div", { className: TextInput_default["message-container"], children: [
12021
12141
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
12022
12142
  renderCharCounter(
12023
12143
  characterCounterId,
@@ -12034,14 +12154,14 @@ var TextInput = (0, import_react121.forwardRef)(
12034
12154
  TextInput.displayName = "TextInput";
12035
12155
 
12036
12156
  // src/components/ToggleBar/ToggleBar.tsx
12037
- var import_react123 = require("react");
12157
+ var import_react124 = require("react");
12038
12158
 
12039
12159
  // src/components/ToggleBar/ToggleBar.context.tsx
12040
- var import_react122 = require("react");
12041
- var ToggleBarContext = (0, import_react122.createContext)({
12160
+ var import_react123 = require("react");
12161
+ var ToggleBarContext = (0, import_react123.createContext)({
12042
12162
  size: "medium"
12043
12163
  });
12044
- var useToggleBarContext = () => (0, import_react122.useContext)(ToggleBarContext);
12164
+ var useToggleBarContext = () => (0, import_react123.useContext)(ToggleBarContext);
12045
12165
 
12046
12166
  // src/components/ToggleBar/ToggleBar.module.css
12047
12167
  var ToggleBar_default = {
@@ -12060,7 +12180,7 @@ var ToggleBar_default = {
12060
12180
  };
12061
12181
 
12062
12182
  // src/components/ToggleBar/ToggleBar.tsx
12063
- var import_jsx_runtime276 = require("react/jsx-runtime");
12183
+ var import_jsx_runtime277 = require("react/jsx-runtime");
12064
12184
  var ToggleBar = (props) => {
12065
12185
  const {
12066
12186
  children,
@@ -12075,15 +12195,15 @@ var ToggleBar = (props) => {
12075
12195
  id,
12076
12196
  ...rest
12077
12197
  } = props;
12078
- const generatedId = (0, import_react123.useId)();
12198
+ const generatedId = (0, import_react124.useId)();
12079
12199
  const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
12080
- const [groupValue, setGroupValue] = (0, import_react123.useState)(value);
12200
+ const [groupValue, setGroupValue] = (0, import_react124.useState)(value);
12081
12201
  const handleChange = combineHandlers(
12082
12202
  (e) => setGroupValue(e.target.value),
12083
12203
  (e) => onChange && onChange(e, e.target.value)
12084
12204
  );
12085
12205
  const labelId = label && `${uniqueId}-label`;
12086
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
12206
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
12087
12207
  ToggleBarContext.Provider,
12088
12208
  {
12089
12209
  value: {
@@ -12092,7 +12212,7 @@ var ToggleBar = (props) => {
12092
12212
  name,
12093
12213
  value: groupValue
12094
12214
  },
12095
- children: /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
12215
+ children: /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(
12096
12216
  "div",
12097
12217
  {
12098
12218
  ...getBaseHTMLProps(
@@ -12105,8 +12225,8 @@ var ToggleBar = (props) => {
12105
12225
  role: "radiogroup",
12106
12226
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
12107
12227
  children: [
12108
- label && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(Label, { id: labelId, children: label }),
12109
- /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("div", { className: ToggleBar_default.bar, children })
12228
+ label && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(Label, { id: labelId, children: label }),
12229
+ /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("div", { className: ToggleBar_default.bar, children })
12110
12230
  ]
12111
12231
  }
12112
12232
  )
@@ -12116,8 +12236,8 @@ var ToggleBar = (props) => {
12116
12236
  ToggleBar.displayName = "ToggleBar";
12117
12237
 
12118
12238
  // src/components/ToggleBar/ToggleRadio.tsx
12119
- var import_react124 = require("react");
12120
- var import_jsx_runtime277 = require("react/jsx-runtime");
12239
+ var import_react125 = require("react");
12240
+ var import_jsx_runtime278 = require("react/jsx-runtime");
12121
12241
  var typographyTypes5 = {
12122
12242
  large: "bodySans04",
12123
12243
  medium: "bodySans02",
@@ -12134,7 +12254,7 @@ var calculateChecked = (value, group, checked) => {
12134
12254
  }
12135
12255
  return !!value;
12136
12256
  };
12137
- var ToggleRadio = (0, import_react124.forwardRef)(
12257
+ var ToggleRadio = (0, import_react125.forwardRef)(
12138
12258
  (props, ref) => {
12139
12259
  const {
12140
12260
  value,
@@ -12150,7 +12270,7 @@ var ToggleRadio = (0, import_react124.forwardRef)(
12150
12270
  id,
12151
12271
  ...rest
12152
12272
  } = props;
12153
- const generatedId = (0, import_react124.useId)();
12273
+ const generatedId = (0, import_react125.useId)();
12154
12274
  const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
12155
12275
  const group = useToggleBarContext();
12156
12276
  const handleChange = (event) => {
@@ -12158,8 +12278,8 @@ var ToggleRadio = (0, import_react124.forwardRef)(
12158
12278
  (group == null ? void 0 : group.onChange) && group.onChange(event);
12159
12279
  };
12160
12280
  const contentTypeCn = label ? "with-text" : "just-icon";
12161
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
12162
- /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
12281
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
12282
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
12163
12283
  "input",
12164
12284
  {
12165
12285
  ...getBaseHTMLProps(
@@ -12182,7 +12302,7 @@ var ToggleRadio = (0, import_react124.forwardRef)(
12182
12302
  "aria-labelledby": ariaLabelledBy
12183
12303
  }
12184
12304
  ),
12185
- /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(
12305
+ /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(
12186
12306
  Typography,
12187
12307
  {
12188
12308
  as: "span",
@@ -12193,8 +12313,8 @@ var ToggleRadio = (0, import_react124.forwardRef)(
12193
12313
  focus_default["focus-styled-sibling"]
12194
12314
  ),
12195
12315
  children: [
12196
- icon2 && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(Icon, { icon: icon2, iconSize: "inherit" }),
12197
- label && /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("span", { children: label })
12316
+ icon2 && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(Icon, { icon: icon2, iconSize: "inherit" }),
12317
+ label && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("span", { children: label })
12198
12318
  ]
12199
12319
  }
12200
12320
  )
@@ -12204,7 +12324,7 @@ var ToggleRadio = (0, import_react124.forwardRef)(
12204
12324
  ToggleRadio.displayName = "ToggleRadio";
12205
12325
 
12206
12326
  // src/components/ToggleButton/ToggleButton.tsx
12207
- var import_react125 = require("react");
12327
+ var import_react126 = require("react");
12208
12328
 
12209
12329
  // src/components/ToggleButton/ToggleButton.module.css
12210
12330
  var ToggleButton_default = {
@@ -12217,13 +12337,13 @@ var ToggleButton_default = {
12217
12337
  };
12218
12338
 
12219
12339
  // src/components/ToggleButton/ToggleButton.tsx
12220
- var import_jsx_runtime278 = require("react/jsx-runtime");
12221
- var ToggleButton = (0, import_react125.forwardRef)(
12340
+ var import_jsx_runtime279 = require("react/jsx-runtime");
12341
+ var ToggleButton = (0, import_react126.forwardRef)(
12222
12342
  ({ id, label, icon: icon2, className, htmlProps, ...rest }, ref) => {
12223
- const generatedId = (0, import_react125.useId)();
12343
+ const generatedId = (0, import_react126.useId)();
12224
12344
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
12225
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
12226
- /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
12345
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
12346
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
12227
12347
  "input",
12228
12348
  {
12229
12349
  ...getBaseHTMLProps(
@@ -12240,7 +12360,7 @@ var ToggleButton = (0, import_react125.forwardRef)(
12240
12360
  type: "checkbox"
12241
12361
  }
12242
12362
  ),
12243
- /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(
12363
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(
12244
12364
  "span",
12245
12365
  {
12246
12366
  className: cn(
@@ -12249,7 +12369,7 @@ var ToggleButton = (0, import_react125.forwardRef)(
12249
12369
  focus_default["focus-styled-sibling"]
12250
12370
  ),
12251
12371
  children: [
12252
- icon2 && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(Icon, { icon: icon2, iconSize: "inherit" }),
12372
+ icon2 && /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(Icon, { icon: icon2, iconSize: "inherit" }),
12253
12373
  " ",
12254
12374
  label
12255
12375
  ]
@@ -12261,8 +12381,8 @@ var ToggleButton = (0, import_react125.forwardRef)(
12261
12381
  ToggleButton.displayName = "ToggleButton";
12262
12382
 
12263
12383
  // src/components/ToggleButton/ToggleButtonGroup.tsx
12264
- var import_react126 = require("react");
12265
- var import_jsx_runtime279 = require("react/jsx-runtime");
12384
+ var import_react127 = require("react");
12385
+ var import_jsx_runtime280 = require("react/jsx-runtime");
12266
12386
  var ToggleButtonGroup = (props) => {
12267
12387
  const {
12268
12388
  children,
@@ -12274,9 +12394,9 @@ var ToggleButtonGroup = (props) => {
12274
12394
  htmlProps,
12275
12395
  ...rest
12276
12396
  } = props;
12277
- const generatedId = (0, import_react126.useId)();
12397
+ const generatedId = (0, import_react127.useId)();
12278
12398
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
12279
- return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(
12399
+ return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
12280
12400
  "div",
12281
12401
  {
12282
12402
  ...getBaseHTMLProps(
@@ -12288,7 +12408,7 @@ var ToggleButtonGroup = (props) => {
12288
12408
  role: "group",
12289
12409
  "aria-labelledby": label ? uniqueLabelId : void 0,
12290
12410
  children: [
12291
- !!label && /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
12411
+ !!label && /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
12292
12412
  Typography,
12293
12413
  {
12294
12414
  as: "span",
@@ -12297,7 +12417,7 @@ var ToggleButtonGroup = (props) => {
12297
12417
  children: label
12298
12418
  }
12299
12419
  ),
12300
- /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12420
+ /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12301
12421
  ]
12302
12422
  }
12303
12423
  );
@@ -12468,6 +12588,8 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
12468
12588
  ModalBody,
12469
12589
  MoreHorizontalIcon,
12470
12590
  MoreVerticalIcon,
12591
+ NativeSelect,
12592
+ NativeSelectPlaceholder,
12471
12593
  NotarialIcon,
12472
12594
  NotificationsIcon,
12473
12595
  NotificationsOffIcon,