@norges-domstoler/dds-components 17.1.0 → 17.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -141,6 +141,10 @@ __export(src_exports, {
141
141
  DescriptionListDesc: () => DescriptionListDesc,
142
142
  DescriptionListGroup: () => DescriptionListGroup,
143
143
  DescriptionListTerm: () => DescriptionListTerm,
144
+ DetailList: () => DetailList,
145
+ DetailListDesc: () => DetailListDesc,
146
+ DetailListRow: () => DetailListRow,
147
+ DetailListTerm: () => DetailListTerm,
144
148
  Divider: () => Divider,
145
149
  DoubleChevronLeftIcon: () => DoubleChevronLeftIcon,
146
150
  DoubleChevronRightIcon: () => DoubleChevronRightIcon,
@@ -367,6 +371,7 @@ __export(src_exports, {
367
371
  focusVisibleTransitionValue: () => focusVisibleTransitionValue,
368
372
  getBaseHTMLProps: () => getBaseHTMLProps,
369
373
  getDefaultText: () => getDefaultText,
374
+ getDensityCn: () => getDensityCn,
370
375
  getElementType: () => getElementType,
371
376
  getLiteralScreenSize: () => getLiteralScreenSize,
372
377
  getTypographyCn: () => getTypographyCn,
@@ -818,6 +823,17 @@ var Input_default = {
818
823
  // src/components/Typography/Caption/Caption.tsx
819
824
  var import_react5 = require("react");
820
825
 
826
+ // src/types/Density.tsx
827
+ function getDensityCn(value) {
828
+ switch (value) {
829
+ case "normal":
830
+ case "compact":
831
+ return value;
832
+ case "extraCompact":
833
+ return "extra-compact";
834
+ }
835
+ }
836
+
821
837
  // src/types/BaseComponentProps.ts
822
838
  var getBaseHTMLProps = (id, htmlPropsOrClassName, htmlPropsOrUnknownProps, unknownPropsOrUndefined) => {
823
839
  if (typeof htmlPropsOrClassName === "string" || unknownPropsOrUndefined != void 0) {
@@ -6497,8 +6513,96 @@ var DescriptionListGroup = (0, import_react61.forwardRef)((props, ref) => {
6497
6513
  });
6498
6514
  DescriptionListGroup.displayName = "DescriptionListGroup";
6499
6515
 
6500
- // src/components/Drawer/Drawer.tsx
6516
+ // src/components/DetailList/DetailList.tsx
6501
6517
  var import_react62 = require("react");
6518
+
6519
+ // src/components/DetailList/DetailList.module.css
6520
+ var DetailList_default = {
6521
+ list: "DetailList_list",
6522
+ "list--with-dividers": "DetailList_list--with-dividers",
6523
+ row: "DetailList_row",
6524
+ "list--striped": "DetailList_list--striped",
6525
+ "list--normal": "DetailList_list--normal",
6526
+ cell: "DetailList_cell",
6527
+ "list--compact": "DetailList_list--compact",
6528
+ "list--extra-compact": "DetailList_list--extra-compact",
6529
+ term: "DetailList_term"
6530
+ };
6531
+
6532
+ // src/components/DetailList/DetailList.tsx
6533
+ var import_jsx_runtime215 = require("react/jsx-runtime");
6534
+ var DetailList = (0, import_react62.forwardRef)(
6535
+ (props, ref) => {
6536
+ const {
6537
+ id,
6538
+ className,
6539
+ htmlProps,
6540
+ withDividers = true,
6541
+ striped = true,
6542
+ density = "normal",
6543
+ ...rest
6544
+ } = props;
6545
+ return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
6546
+ "dl",
6547
+ {
6548
+ ref,
6549
+ ...getBaseHTMLProps(
6550
+ id,
6551
+ cn(
6552
+ className,
6553
+ DetailList_default.list,
6554
+ DetailList_default[`list--${getDensityCn(density)}`],
6555
+ withDividers && DetailList_default["list--with-dividers"],
6556
+ striped && DetailList_default["list--striped"]
6557
+ ),
6558
+ htmlProps,
6559
+ rest
6560
+ )
6561
+ }
6562
+ );
6563
+ }
6564
+ );
6565
+ DetailList.displayName = "DetailList";
6566
+
6567
+ // src/components/DetailList/DetailListDesc.tsx
6568
+ var import_react63 = require("react");
6569
+ var import_jsx_runtime216 = require("react/jsx-runtime");
6570
+ var DetailListDesc = (0, import_react63.forwardRef)(
6571
+ ({ className, ...rest }, ref) => {
6572
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("dd", { ref, className: cn(className, DetailList_default.cell), ...rest });
6573
+ }
6574
+ );
6575
+ DetailListDesc.displayName = "DetailListDesc";
6576
+
6577
+ // src/components/DetailList/DetailListRow.tsx
6578
+ var import_react64 = require("react");
6579
+ var import_jsx_runtime217 = require("react/jsx-runtime");
6580
+ var DetailListRow = (0, import_react64.forwardRef)(
6581
+ ({ className, ...rest }, ref) => {
6582
+ return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ref, className: cn(className, DetailList_default.row), ...rest });
6583
+ }
6584
+ );
6585
+ DetailListRow.displayName = "DetailListRow";
6586
+
6587
+ // src/components/DetailList/DetailListTerm.tsx
6588
+ var import_react65 = require("react");
6589
+ var import_jsx_runtime218 = require("react/jsx-runtime");
6590
+ var DetailListTerm = (0, import_react65.forwardRef)(
6591
+ ({ className, ...rest }, ref) => {
6592
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
6593
+ "dt",
6594
+ {
6595
+ ref,
6596
+ className: cn(className, DetailList_default.cell, DetailList_default.term),
6597
+ ...rest
6598
+ }
6599
+ );
6600
+ }
6601
+ );
6602
+ DetailListTerm.displayName = "DetailListTerm";
6603
+
6604
+ // src/components/Drawer/Drawer.tsx
6605
+ var import_react66 = require("react");
6502
6606
  var import_react_dom2 = require("react-dom");
6503
6607
 
6504
6608
  // src/components/Drawer/Drawer.module.css
@@ -6518,8 +6622,8 @@ var Drawer_default = {
6518
6622
  };
6519
6623
 
6520
6624
  // src/components/Drawer/Drawer.tsx
6521
- var import_jsx_runtime215 = require("react/jsx-runtime");
6522
- var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6625
+ var import_jsx_runtime219 = require("react/jsx-runtime");
6626
+ var Drawer = (0, import_react66.forwardRef)((props, ref) => {
6523
6627
  const {
6524
6628
  children,
6525
6629
  onClose,
@@ -6535,7 +6639,7 @@ var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6535
6639
  widthProps,
6536
6640
  ...rest
6537
6641
  } = props;
6538
- const generatedId = (0, import_react62.useId)();
6642
+ const generatedId = (0, import_react66.useId)();
6539
6643
  const uniqueId = id != null ? id : `${generatedId}-drawer`;
6540
6644
  const hasHeader = !!header;
6541
6645
  const headerId = hasHeader ? `${uniqueId}-header` : void 0;
@@ -6580,8 +6684,8 @@ var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6580
6684
  style: { ...htmlProps == null ? void 0 : htmlProps.style, ...widthProps }
6581
6685
  };
6582
6686
  return isOpen || hasTransitionedIn ? (0, import_react_dom2.createPortal)(
6583
- /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Paper, { ...containerProps, elevation: 4, children: [
6584
- /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
6687
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(Paper, { ...containerProps, elevation: 4, children: [
6688
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
6585
6689
  "div",
6586
6690
  {
6587
6691
  className: cn(
@@ -6590,12 +6694,12 @@ var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6590
6694
  utilStyles_default["scrollable-y"]
6591
6695
  ),
6592
6696
  children: [
6593
- hasHeader && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
6697
+ hasHeader && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
6594
6698
  children
6595
6699
  ]
6596
6700
  }
6597
6701
  ),
6598
- /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
6702
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
6599
6703
  Button,
6600
6704
  {
6601
6705
  className: cn(Drawer_default["button--close"]),
@@ -6614,18 +6718,18 @@ var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6614
6718
  Drawer.displayName = "Drawer";
6615
6719
 
6616
6720
  // src/components/Drawer/DrawerGroup.tsx
6617
- var import_react63 = require("react");
6618
- var import_jsx_runtime216 = require("react/jsx-runtime");
6721
+ var import_react67 = require("react");
6722
+ var import_jsx_runtime220 = require("react/jsx-runtime");
6619
6723
  var DrawerGroup = ({
6620
6724
  children,
6621
6725
  drawerId,
6622
6726
  onOpen,
6623
6727
  onClose
6624
6728
  }) => {
6625
- const generatedId = (0, import_react63.useId)();
6729
+ const generatedId = (0, import_react67.useId)();
6626
6730
  const uniqueDrawerId = drawerId != null ? drawerId : `${generatedId}-drawer`;
6627
- const buttonRef = (0, import_react63.useRef)(null);
6628
- const [closed, setClosed] = (0, import_react63.useState)(true);
6731
+ const buttonRef = (0, import_react67.useRef)(null);
6732
+ const [closed, setClosed] = (0, import_react67.useState)(true);
6629
6733
  const open = () => setClosed(false);
6630
6734
  const close = () => setClosed(true);
6631
6735
  const handleOpen = () => {
@@ -6636,21 +6740,21 @@ var DrawerGroup = ({
6636
6740
  close();
6637
6741
  onClose && onClose();
6638
6742
  };
6639
- const Children8 = import_react63.Children.map(children, (child, childIndex) => {
6640
- return (0, import_react63.isValidElement)(child) && (childIndex === 0 ? (0, import_react63.cloneElement)(child, {
6743
+ const Children8 = import_react67.Children.map(children, (child, childIndex) => {
6744
+ return (0, import_react67.isValidElement)(child) && (childIndex === 0 ? (0, import_react67.cloneElement)(child, {
6641
6745
  "aria-haspopup": "dialog",
6642
6746
  "aria-controls": uniqueDrawerId,
6643
6747
  "aria-expanded": !closed,
6644
6748
  ref: buttonRef,
6645
6749
  onClick: handleOpen
6646
- }) : (0, import_react63.cloneElement)(child, {
6750
+ }) : (0, import_react67.cloneElement)(child, {
6647
6751
  id: uniqueDrawerId,
6648
6752
  triggerRef: buttonRef,
6649
6753
  isOpen: !closed,
6650
6754
  onClose: handleClose
6651
6755
  }));
6652
6756
  });
6653
- return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(import_jsx_runtime216.Fragment, { children: [
6757
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(import_jsx_runtime220.Fragment, { children: [
6654
6758
  " ",
6655
6759
  Children8,
6656
6760
  " "
@@ -6666,7 +6770,7 @@ var EmptyContent_default = {
6666
6770
  };
6667
6771
 
6668
6772
  // src/components/EmptyContent/EmptyContent.tsx
6669
- var import_jsx_runtime217 = require("react/jsx-runtime");
6773
+ var import_jsx_runtime221 = require("react/jsx-runtime");
6670
6774
  function EmptyContent({
6671
6775
  title,
6672
6776
  message,
@@ -6674,15 +6778,15 @@ function EmptyContent({
6674
6778
  className,
6675
6779
  ...rest
6676
6780
  }) {
6677
- return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { className: EmptyContent_default.text, children: [
6678
- title && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
6679
- /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Paragraph, { className: EmptyContent_default.message, children: message })
6781
+ return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)("div", { className: EmptyContent_default.text, children: [
6782
+ title && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
6783
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Paragraph, { className: EmptyContent_default.message, children: message })
6680
6784
  ] }) });
6681
6785
  }
6682
6786
  EmptyContent.displayName = "EmptyContent";
6683
6787
 
6684
6788
  // src/components/FavStar/FavStar.tsx
6685
- var import_react66 = require("react");
6789
+ var import_react70 = require("react");
6686
6790
 
6687
6791
  // src/components/FavStar/FavStar.module.css
6688
6792
  var FavStar_default = {
@@ -6694,16 +6798,16 @@ var FavStar_default = {
6694
6798
  };
6695
6799
 
6696
6800
  // src/hooks/useControllableState.ts
6697
- var import_react65 = require("react");
6801
+ var import_react69 = require("react");
6698
6802
 
6699
6803
  // src/hooks/useCallbackRef.ts
6700
- var import_react64 = require("react");
6804
+ var import_react68 = require("react");
6701
6805
  function useCallbackRef(callback, deps = []) {
6702
- const callbackRef = (0, import_react64.useRef)(callback);
6703
- (0, import_react64.useEffect)(() => {
6806
+ const callbackRef = (0, import_react68.useRef)(callback);
6807
+ (0, import_react68.useEffect)(() => {
6704
6808
  callbackRef.current = callback;
6705
6809
  });
6706
- return (0, import_react64.useCallback)((...args) => {
6810
+ return (0, import_react68.useCallback)((...args) => {
6707
6811
  var _a;
6708
6812
  return (_a = callbackRef.current) == null ? void 0 : _a.call(callbackRef, ...args);
6709
6813
  }, deps);
@@ -6713,7 +6817,7 @@ function useCallbackRef(callback, deps = []) {
6713
6817
  function useControllableState(props) {
6714
6818
  const { value: valueProp, defaultValue, onChange } = props;
6715
6819
  const onChangeProp = useCallbackRef(onChange);
6716
- const [uncontrolledState, setUncontrolledState] = (0, import_react65.useState)(defaultValue);
6820
+ const [uncontrolledState, setUncontrolledState] = (0, import_react69.useState)(defaultValue);
6717
6821
  const controlled = valueProp !== void 0;
6718
6822
  const value = controlled ? valueProp : uncontrolledState;
6719
6823
  const setValue = useCallbackRef(
@@ -6731,8 +6835,8 @@ function useControllableState(props) {
6731
6835
  }
6732
6836
 
6733
6837
  // src/components/FavStar/FavStar.tsx
6734
- var import_jsx_runtime218 = require("react/jsx-runtime");
6735
- var FavStar = (0, import_react66.forwardRef)(
6838
+ var import_jsx_runtime222 = require("react/jsx-runtime");
6839
+ var FavStar = (0, import_react70.forwardRef)(
6736
6840
  ({
6737
6841
  id,
6738
6842
  className,
@@ -6750,13 +6854,13 @@ var FavStar = (0, import_react66.forwardRef)(
6750
6854
  htmlProps,
6751
6855
  rest
6752
6856
  );
6753
- const generatedId = (0, import_react66.useId)();
6857
+ const generatedId = (0, import_react70.useId)();
6754
6858
  const [checked, setChecked] = useControllableState({
6755
6859
  value: checkedProp,
6756
6860
  defaultValue: defaultChecked != null ? defaultChecked : false,
6757
6861
  onChange
6758
6862
  });
6759
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
6863
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
6760
6864
  "label",
6761
6865
  {
6762
6866
  className: cn(
@@ -6768,7 +6872,7 @@ var FavStar = (0, import_react66.forwardRef)(
6768
6872
  style,
6769
6873
  htmlFor: id != null ? id : generatedId,
6770
6874
  children: [
6771
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
6875
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
6772
6876
  "input",
6773
6877
  {
6774
6878
  ...props,
@@ -6781,8 +6885,8 @@ var FavStar = (0, import_react66.forwardRef)(
6781
6885
  className: utilStyles_default["hide-input"]
6782
6886
  }
6783
6887
  ),
6784
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
6785
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
6888
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
6889
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
6786
6890
  Icon,
6787
6891
  {
6788
6892
  iconSize: size2,
@@ -6798,7 +6902,7 @@ var FavStar = (0, import_react66.forwardRef)(
6798
6902
  FavStar.displayName = "FavStar";
6799
6903
 
6800
6904
  // src/components/Feedback/Feedback.tsx
6801
- var import_react70 = require("react");
6905
+ var import_react74 = require("react");
6802
6906
 
6803
6907
  // src/components/Feedback/Feedback.module.css
6804
6908
  var Feedback_default = {
@@ -6812,7 +6916,7 @@ var Feedback_default = {
6812
6916
  };
6813
6917
 
6814
6918
  // src/components/Stack/Stack.tsx
6815
- var import_react67 = require("react");
6919
+ var import_react71 = require("react");
6816
6920
 
6817
6921
  // src/components/Stack/Stack.module.css
6818
6922
  var Stack_default = {
@@ -6848,8 +6952,8 @@ var Stack_default = {
6848
6952
  };
6849
6953
 
6850
6954
  // src/components/Stack/Stack.tsx
6851
- var import_jsx_runtime219 = require("react/jsx-runtime");
6852
- var HStack = (0, import_react67.forwardRef)(
6955
+ var import_jsx_runtime223 = require("react/jsx-runtime");
6956
+ var HStack = (0, import_react71.forwardRef)(
6853
6957
  ({
6854
6958
  id,
6855
6959
  className,
@@ -6866,7 +6970,7 @@ var HStack = (0, import_react67.forwardRef)(
6866
6970
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6867
6971
  ["--dds-stack-justify-content"]: justify
6868
6972
  };
6869
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
6973
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
6870
6974
  "div",
6871
6975
  {
6872
6976
  ref,
@@ -6888,7 +6992,7 @@ var HStack = (0, import_react67.forwardRef)(
6888
6992
  }
6889
6993
  );
6890
6994
  HStack.displayName = "HStack";
6891
- var VStack = (0, import_react67.forwardRef)(
6995
+ var VStack = (0, import_react71.forwardRef)(
6892
6996
  ({
6893
6997
  id,
6894
6998
  className,
@@ -6905,7 +7009,7 @@ var VStack = (0, import_react67.forwardRef)(
6905
7009
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6906
7010
  ["--dds-stack-justify-content"]: justify
6907
7011
  };
6908
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
7012
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
6909
7013
  "div",
6910
7014
  {
6911
7015
  ref,
@@ -6932,7 +7036,7 @@ function spacingPropToCn(value) {
6932
7036
  }
6933
7037
 
6934
7038
  // src/components/TextArea/TextArea.tsx
6935
- var import_react68 = require("react");
7039
+ var import_react72 = require("react");
6936
7040
 
6937
7041
  // src/components/TextArea/TextArea.module.css
6938
7042
  var TextArea_default = {
@@ -6941,8 +7045,8 @@ var TextArea_default = {
6941
7045
  };
6942
7046
 
6943
7047
  // src/components/TextArea/TextArea.tsx
6944
- var import_jsx_runtime220 = require("react/jsx-runtime");
6945
- var TextArea = (0, import_react68.forwardRef)(
7048
+ var import_jsx_runtime224 = require("react/jsx-runtime");
7049
+ var TextArea = (0, import_react72.forwardRef)(
6946
7050
  (props, ref) => {
6947
7051
  const {
6948
7052
  id,
@@ -6963,14 +7067,14 @@ var TextArea = (0, import_react68.forwardRef)(
6963
7067
  width,
6964
7068
  ...rest
6965
7069
  } = props;
6966
- const generatedId = (0, import_react68.useId)();
7070
+ const generatedId = (0, import_react72.useId)();
6967
7071
  const uniqueId = id != null ? id : `${generatedId}-textArea`;
6968
- const textAreaRef = (0, import_react68.useRef)(null);
7072
+ const textAreaRef = (0, import_react72.useRef)(null);
6969
7073
  const multiRef = useCombinedRef(ref, textAreaRef);
6970
- const [text, setText] = (0, import_react68.useState)(
7074
+ const [text, setText] = (0, import_react72.useState)(
6971
7075
  getDefaultText(value, defaultValue)
6972
7076
  );
6973
- (0, import_react68.useEffect)(() => {
7077
+ (0, import_react72.useEffect)(() => {
6974
7078
  if (textAreaRef == null ? void 0 : textAreaRef.current) {
6975
7079
  textAreaRef.current.style.height = `${textAreaRef.current.scrollHeight + 2}px`;
6976
7080
  }
@@ -6994,13 +7098,13 @@ var TextArea = (0, import_react68.forwardRef)(
6994
7098
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6995
7099
  ["--dds-text-area-width"]: width != null ? width : "var(--dds-input-default-width)"
6996
7100
  };
6997
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
7101
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
6998
7102
  "div",
6999
7103
  {
7000
7104
  className: cn(className, Input_default.container),
7001
7105
  style: { ...style },
7002
7106
  children: [
7003
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
7107
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7004
7108
  Label,
7005
7109
  {
7006
7110
  showRequiredStyling,
@@ -7010,7 +7114,7 @@ var TextArea = (0, import_react68.forwardRef)(
7010
7114
  children: label
7011
7115
  }
7012
7116
  ),
7013
- /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
7117
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7014
7118
  "textarea",
7015
7119
  {
7016
7120
  ref: multiRef,
@@ -7042,7 +7146,7 @@ var TextArea = (0, import_react68.forwardRef)(
7042
7146
  ...rest
7043
7147
  }
7044
7148
  ),
7045
- /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)("div", { className: TextArea_default["message-container"], children: [
7149
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { className: TextArea_default["message-container"], children: [
7046
7150
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
7047
7151
  renderCharCounter(
7048
7152
  characterCounterId,
@@ -7059,7 +7163,7 @@ var TextArea = (0, import_react68.forwardRef)(
7059
7163
  TextArea.displayName = "TextArea";
7060
7164
 
7061
7165
  // src/components/Feedback/CommentComponent.tsx
7062
- var import_jsx_runtime221 = require("react/jsx-runtime");
7166
+ var import_jsx_runtime225 = require("react/jsx-runtime");
7063
7167
  var CommentComponent = ({
7064
7168
  rating,
7065
7169
  feedbackText,
@@ -7071,21 +7175,21 @@ var CommentComponent = ({
7071
7175
  handleSubmit,
7072
7176
  handleFeedbackTextChange
7073
7177
  }) => {
7074
- return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(VStack, { gap: "x1", align: "flex-start", children: [
7075
- /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
7076
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7178
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(VStack, { gap: "x1", align: "flex-start", children: [
7179
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
7180
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7077
7181
  Icon,
7078
7182
  {
7079
7183
  icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
7080
7184
  color: "iconActionResting"
7081
7185
  }
7082
7186
  ),
7083
- /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(Paragraph, { children: [
7187
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Paragraph, { children: [
7084
7188
  ratingSubmittedTitle,
7085
7189
  " "
7086
7190
  ] })
7087
7191
  ] }),
7088
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7192
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7089
7193
  TextArea,
7090
7194
  {
7091
7195
  value: feedbackText,
@@ -7094,7 +7198,7 @@ var CommentComponent = ({
7094
7198
  tip: textAreaTip
7095
7199
  }
7096
7200
  ),
7097
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7201
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7098
7202
  Button,
7099
7203
  {
7100
7204
  purpose: "secondary",
@@ -7108,7 +7212,7 @@ var CommentComponent = ({
7108
7212
  };
7109
7213
 
7110
7214
  // src/components/Tooltip/Tooltip.tsx
7111
- var import_react69 = require("react");
7215
+ var import_react73 = require("react");
7112
7216
 
7113
7217
  // src/components/Tooltip/Tooltip.module.css
7114
7218
  var Tooltip_default = {
@@ -7119,8 +7223,8 @@ var Tooltip_default = {
7119
7223
  };
7120
7224
 
7121
7225
  // src/components/Tooltip/Tooltip.tsx
7122
- var import_jsx_runtime222 = require("react/jsx-runtime");
7123
- var Tooltip = (0, import_react69.forwardRef)(
7226
+ var import_jsx_runtime226 = require("react/jsx-runtime");
7227
+ var Tooltip = (0, import_react73.forwardRef)(
7124
7228
  (props, ref) => {
7125
7229
  const {
7126
7230
  text,
@@ -7136,21 +7240,21 @@ var Tooltip = (0, import_react69.forwardRef)(
7136
7240
  htmlProps,
7137
7241
  ...rest
7138
7242
  } = props;
7139
- const generatedId = (0, import_react69.useId)();
7243
+ const generatedId = (0, import_react73.useId)();
7140
7244
  const uniqueTooltipId = tooltipId != null ? tooltipId : `${generatedId}-tooltip`;
7141
- const [open, setOpen] = (0, import_react69.useState)(false);
7142
- const [inView, setInView] = (0, import_react69.useState)(false);
7143
- const [arrowElement, setArrowElement] = (0, import_react69.useState)(null);
7245
+ const [open, setOpen] = (0, import_react73.useState)(false);
7246
+ const [inView, setInView] = (0, import_react73.useState)(false);
7247
+ const [arrowElement, setArrowElement] = (0, import_react73.useState)(null);
7144
7248
  const { refs, styles: positionStyles } = useFloatPosition(arrowElement, {
7145
7249
  placement
7146
7250
  });
7147
- const tooltipRef = (0, import_react69.useRef)(null);
7251
+ const tooltipRef = (0, import_react73.useRef)(null);
7148
7252
  const combinedRef = useCombinedRef(ref, refs.setFloating, tooltipRef);
7149
7253
  const closeWhenNotInView = (entries) => {
7150
7254
  const [entry] = entries;
7151
7255
  entry.isIntersecting ? setInView(true) : setInView(false);
7152
7256
  };
7153
- (0, import_react69.useEffect)(() => {
7257
+ (0, import_react73.useEffect)(() => {
7154
7258
  const options = {
7155
7259
  root: null,
7156
7260
  rootMargin: "0px"
@@ -7162,7 +7266,7 @@ var Tooltip = (0, import_react69.forwardRef)(
7162
7266
  if (ref2) observer.unobserve(ref2);
7163
7267
  };
7164
7268
  }, [tooltipRef]);
7165
- (0, import_react69.useEffect)(() => {
7269
+ (0, import_react73.useEffect)(() => {
7166
7270
  if (tooltipRef.current) {
7167
7271
  window.addEventListener("scroll", () => {
7168
7272
  closeTooltip();
@@ -7175,7 +7279,7 @@ var Tooltip = (0, import_react69.forwardRef)(
7175
7279
  };
7176
7280
  }, []);
7177
7281
  let timer;
7178
- (0, import_react69.useEffect)(() => {
7282
+ (0, import_react73.useEffect)(() => {
7179
7283
  return () => {
7180
7284
  clearTimeout(timer);
7181
7285
  };
@@ -7194,8 +7298,8 @@ var Tooltip = (0, import_react69.forwardRef)(
7194
7298
  }
7195
7299
  };
7196
7300
  const anchorProps = children.props;
7197
- const anchorElement = import_react69.Children.only(
7198
- (0, import_react69.isValidElement)(children) && (0, import_react69.cloneElement)(children, {
7301
+ const anchorElement = import_react73.Children.only(
7302
+ (0, import_react73.isValidElement)(children) && (0, import_react73.cloneElement)(children, {
7199
7303
  ref: refs.setReference,
7200
7304
  onFocus: combineHandlers(openTooltip, anchorProps.onFocus),
7201
7305
  onBlur: combineHandlers(closeTooltip, anchorProps.onBlur),
@@ -7217,9 +7321,9 @@ var Tooltip = (0, import_react69.forwardRef)(
7217
7321
  style: { ...positionStyles.floating }
7218
7322
  };
7219
7323
  const openCn = open && inView ? "open" : "closed";
7220
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)("div", { ...containerProps, children: [
7324
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { ...containerProps, children: [
7221
7325
  anchorElement,
7222
- /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
7326
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
7223
7327
  Paper,
7224
7328
  {
7225
7329
  ...wrapperProps,
@@ -7233,15 +7337,15 @@ var Tooltip = (0, import_react69.forwardRef)(
7233
7337
  ),
7234
7338
  children: [
7235
7339
  text,
7236
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)("svg", { width: "36", height: "9", children: [
7237
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
7340
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("svg", { width: "36", height: "9", children: [
7341
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7238
7342
  "path",
7239
7343
  {
7240
7344
  d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
7241
7345
  className: Tooltip_default["svg-arrow__background"]
7242
7346
  }
7243
7347
  ),
7244
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
7348
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7245
7349
  "path",
7246
7350
  {
7247
7351
  fillRule: "evenodd",
@@ -7260,7 +7364,7 @@ var Tooltip = (0, import_react69.forwardRef)(
7260
7364
  Tooltip.displayName = "Tooltip";
7261
7365
 
7262
7366
  // src/components/Feedback/RatingComponent.tsx
7263
- var import_jsx_runtime223 = require("react/jsx-runtime");
7367
+ var import_jsx_runtime227 = require("react/jsx-runtime");
7264
7368
  var RatingComponent = ({
7265
7369
  layout,
7266
7370
  ratingLabel,
@@ -7270,7 +7374,7 @@ var RatingComponent = ({
7270
7374
  handleRatingChange
7271
7375
  }) => {
7272
7376
  const layoutCn = layout === "vertical" ? "column" : "row";
7273
- const button = (purpose, layout2) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
7377
+ const button = (purpose, layout2) => /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7274
7378
  "button",
7275
7379
  {
7276
7380
  "aria-label": purpose === "up" ? thumbUpTooltip : thumbDownTooltip,
@@ -7281,7 +7385,7 @@ var RatingComponent = ({
7281
7385
  Feedback_default[`button--${layout2}`],
7282
7386
  focusable
7283
7387
  ),
7284
- children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
7388
+ children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7285
7389
  Icon,
7286
7390
  {
7287
7391
  icon: purpose === "up" ? ThumbUpIcon : ThumbDownIcon,
@@ -7290,7 +7394,7 @@ var RatingComponent = ({
7290
7394
  )
7291
7395
  }
7292
7396
  );
7293
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(
7397
+ return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
7294
7398
  "div",
7295
7399
  {
7296
7400
  className: cn(
@@ -7298,10 +7402,10 @@ var RatingComponent = ({
7298
7402
  Feedback_default[`rating-container--${layoutCn}`]
7299
7403
  ),
7300
7404
  children: [
7301
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Label, { children: ratingLabel }),
7302
- loading ? /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(HStack, { gap: "x1", children: [
7303
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Tooltip, { text: thumbUpTooltip, children: button("up", layout) }),
7304
- /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("div", { children: button("down", layout) }) })
7405
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Label, { children: ratingLabel }),
7406
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(HStack, { gap: "x1", children: [
7407
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Tooltip, { text: thumbUpTooltip, children: button("up", layout) }),
7408
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", { children: button("down", layout) }) })
7305
7409
  ] })
7306
7410
  ]
7307
7411
  }
@@ -7309,7 +7413,7 @@ var RatingComponent = ({
7309
7413
  };
7310
7414
 
7311
7415
  // src/components/Feedback/Feedback.tsx
7312
- var import_jsx_runtime224 = require("react/jsx-runtime");
7416
+ var import_jsx_runtime228 = require("react/jsx-runtime");
7313
7417
  var Feedback = ({
7314
7418
  layout = "vertical",
7315
7419
  ratingLabel = "Hva syns du om tjenesten?",
@@ -7329,16 +7433,16 @@ var Feedback = ({
7329
7433
  onFeedbackTextChange,
7330
7434
  onSubmit
7331
7435
  }) => {
7332
- const [rating, setRating] = (0, import_react70.useState)(null);
7333
- const [feedbackText, setFeedbackText] = (0, import_react70.useState)();
7334
- const [isFeedbackSubmitted, setIsFeedbackSubmitted] = (0, import_react70.useState)(false);
7335
- (0, import_react70.useEffect)(() => {
7436
+ const [rating, setRating] = (0, import_react74.useState)(null);
7437
+ const [feedbackText, setFeedbackText] = (0, import_react74.useState)();
7438
+ const [isFeedbackSubmitted, setIsFeedbackSubmitted] = (0, import_react74.useState)(false);
7439
+ (0, import_react74.useEffect)(() => {
7336
7440
  ratingProp !== void 0 && setRating(ratingProp);
7337
7441
  }, [ratingProp]);
7338
- (0, import_react70.useEffect)(() => {
7442
+ (0, import_react74.useEffect)(() => {
7339
7443
  feedbackTextProp !== void 0 && setFeedbackText(feedbackTextProp);
7340
7444
  }, [feedbackTextProp]);
7341
- (0, import_react70.useEffect)(() => {
7445
+ (0, import_react74.useEffect)(() => {
7342
7446
  isSubmittedProp !== void 0 && setIsFeedbackSubmitted(isSubmittedProp);
7343
7447
  }, [isSubmittedProp]);
7344
7448
  const handleRatingChange = (newRating) => {
@@ -7355,7 +7459,7 @@ var Feedback = ({
7355
7459
  isSubmittedProp === void 0 && setIsFeedbackSubmitted(true);
7356
7460
  };
7357
7461
  if (rating === null && !isFeedbackSubmitted) {
7358
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7462
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
7359
7463
  RatingComponent,
7360
7464
  {
7361
7465
  layout,
@@ -7368,7 +7472,7 @@ var Feedback = ({
7368
7472
  );
7369
7473
  }
7370
7474
  if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
7371
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7475
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
7372
7476
  CommentComponent,
7373
7477
  {
7374
7478
  rating,
@@ -7383,11 +7487,11 @@ var Feedback = ({
7383
7487
  }
7384
7488
  );
7385
7489
  }
7386
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Paragraph, { children: submittedTitle });
7490
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Paragraph, { children: submittedTitle });
7387
7491
  };
7388
7492
 
7389
7493
  // src/components/Fieldset/Fieldset.tsx
7390
- var import_react71 = require("react");
7494
+ var import_react75 = require("react");
7391
7495
 
7392
7496
  // src/components/Fieldset/Fieldset.module.css
7393
7497
  var Fieldset_default = {
@@ -7395,11 +7499,11 @@ var Fieldset_default = {
7395
7499
  };
7396
7500
 
7397
7501
  // src/components/Fieldset/Fieldset.tsx
7398
- var import_jsx_runtime225 = require("react/jsx-runtime");
7399
- var Fieldset = (0, import_react71.forwardRef)(
7502
+ var import_jsx_runtime229 = require("react/jsx-runtime");
7503
+ var Fieldset = (0, import_react75.forwardRef)(
7400
7504
  (props, ref) => {
7401
7505
  const { id, className, htmlProps, ...rest } = props;
7402
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7506
+ return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
7403
7507
  "fieldset",
7404
7508
  {
7405
7509
  ref,
@@ -7415,17 +7519,17 @@ var Fieldset = (0, import_react71.forwardRef)(
7415
7519
  );
7416
7520
 
7417
7521
  // src/components/FileUploader/FileUploader.tsx
7418
- var import_react73 = require("react");
7522
+ var import_react77 = require("react");
7419
7523
 
7420
7524
  // src/components/FileUploader/ErrorList.tsx
7421
- var import_jsx_runtime226 = require("react/jsx-runtime");
7525
+ var import_jsx_runtime230 = require("react/jsx-runtime");
7422
7526
  var ErrorList = (props) => {
7423
7527
  const { errors } = props;
7424
7528
  if (errors.length < 1) {
7425
7529
  return null;
7426
7530
  }
7427
7531
  if (errors.length === 1) {
7428
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7532
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
7429
7533
  InputMessage,
7430
7534
  {
7431
7535
  id: errors[0].id,
@@ -7434,8 +7538,8 @@ var ErrorList = (props) => {
7434
7538
  }
7435
7539
  );
7436
7540
  }
7437
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
7438
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7541
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
7542
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
7439
7543
  InputMessage,
7440
7544
  {
7441
7545
  id,
@@ -7462,30 +7566,30 @@ var FileUploader_default = {
7462
7566
  };
7463
7567
 
7464
7568
  // src/components/FileUploader/File.tsx
7465
- var import_jsx_runtime227 = require("react/jsx-runtime");
7569
+ var import_jsx_runtime231 = require("react/jsx-runtime");
7466
7570
  var File = (props) => {
7467
7571
  const { parentId, index, file: stateFile, removeFile, isValid } = props;
7468
7572
  const errorsList = stateFile.errors.map((e, errorIndex) => ({
7469
7573
  id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
7470
7574
  message: e
7471
7575
  }));
7472
- return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)("li", { children: [
7473
- /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
7474
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7576
+ return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)("li", { children: [
7577
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
7578
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
7475
7579
  "span",
7476
7580
  {
7477
7581
  className: cn(FileUploader_default.file__name, typographyStyles_default["body-sans-02"]),
7478
7582
  children: stateFile.file.name
7479
7583
  }
7480
7584
  ),
7481
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7585
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
7482
7586
  Icon,
7483
7587
  {
7484
7588
  icon: isValid ? CheckCircledIcon : ErrorIcon,
7485
7589
  className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
7486
7590
  }
7487
7591
  ),
7488
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7592
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
7489
7593
  Button,
7490
7594
  {
7491
7595
  size: "small",
@@ -7504,13 +7608,13 @@ var File = (props) => {
7504
7608
  }
7505
7609
  )
7506
7610
  ] }),
7507
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(ErrorList, { errors: errorsList })
7611
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(ErrorList, { errors: errorsList })
7508
7612
  ] });
7509
7613
  };
7510
7614
 
7511
7615
  // src/components/FileUploader/useFileUploader.ts
7512
7616
  var import_file_selector = require("file-selector");
7513
- var import_react72 = require("react");
7617
+ var import_react76 = require("react");
7514
7618
 
7515
7619
  // src/components/FileUploader/fileUploaderReducer.ts
7516
7620
  var fileUploaderReducer = (state, action) => {
@@ -7609,18 +7713,18 @@ var useFileUploader = (props) => {
7609
7713
  disabled,
7610
7714
  errorMessage
7611
7715
  } = props;
7612
- const rootRef = (0, import_react72.useRef)(null);
7613
- const inputRef = (0, import_react72.useRef)(null);
7614
- const buttonRef = (0, import_react72.useRef)(null);
7716
+ const rootRef = (0, import_react76.useRef)(null);
7717
+ const inputRef = (0, import_react76.useRef)(null);
7718
+ const buttonRef = (0, import_react76.useRef)(null);
7615
7719
  const isControlled = !!value;
7616
- const initialFileUploaderFiles = (0, import_react72.useMemo)(
7720
+ const initialFileUploaderFiles = (0, import_react76.useMemo)(
7617
7721
  () => (initialFiles != null ? initialFiles : []).map((f2) => ({
7618
7722
  file: f2,
7619
7723
  errors: []
7620
7724
  })),
7621
7725
  [initialFiles]
7622
7726
  );
7623
- const [state, dispatch] = (0, import_react72.useReducer)(fileUploaderReducer, {
7727
+ const [state, dispatch] = (0, import_react76.useReducer)(fileUploaderReducer, {
7624
7728
  files: initialFileUploaderFiles,
7625
7729
  isFocused: false,
7626
7730
  isFileDialogActive: false,
@@ -7632,7 +7736,7 @@ var useFileUploader = (props) => {
7632
7736
  )
7633
7737
  });
7634
7738
  const { files: stateFiles } = state;
7635
- (0, import_react72.useEffect)(() => {
7739
+ (0, import_react76.useEffect)(() => {
7636
7740
  if (isControlled) {
7637
7741
  const files = value.map((file) => {
7638
7742
  const accepted = isFileAccepted(file, accept);
@@ -7647,18 +7751,18 @@ var useFileUploader = (props) => {
7647
7751
  });
7648
7752
  }
7649
7753
  }, [value, isControlled, accept, dispatch]);
7650
- (0, import_react72.useEffect)(() => {
7754
+ (0, import_react76.useEffect)(() => {
7651
7755
  dispatch({
7652
7756
  type: "setRootErrors",
7653
7757
  payload: calcRootErrors(stateFiles, maxFiles, errorMessage)
7654
7758
  });
7655
7759
  }, [dispatch, stateFiles, maxFiles, errorMessage]);
7656
- const onRootFocus = (0, import_react72.useCallback)(
7760
+ const onRootFocus = (0, import_react76.useCallback)(
7657
7761
  () => dispatch({ type: "focus" }),
7658
7762
  [dispatch]
7659
7763
  );
7660
- const onRootBlur = (0, import_react72.useCallback)(() => dispatch({ type: "blur" }), [dispatch]);
7661
- const onRootDragEnter = (0, import_react72.useCallback)(
7764
+ const onRootBlur = (0, import_react76.useCallback)(() => dispatch({ type: "blur" }), [dispatch]);
7765
+ const onRootDragEnter = (0, import_react76.useCallback)(
7662
7766
  async (evt) => {
7663
7767
  preventDefaults(evt);
7664
7768
  if (isEventWithFiles(evt)) {
@@ -7670,7 +7774,7 @@ var useFileUploader = (props) => {
7670
7774
  },
7671
7775
  [dispatch, accept, maxFiles]
7672
7776
  );
7673
- const onRootDragOver = (0, import_react72.useCallback)((evt) => {
7777
+ const onRootDragOver = (0, import_react76.useCallback)((evt) => {
7674
7778
  preventDefaults(evt);
7675
7779
  const hasFiles = isEventWithFiles(evt);
7676
7780
  if (hasFiles && evt.dataTransfer) {
@@ -7680,7 +7784,7 @@ var useFileUploader = (props) => {
7680
7784
  }
7681
7785
  }
7682
7786
  }, []);
7683
- const onRootDragLeave = (0, import_react72.useCallback)(
7787
+ const onRootDragLeave = (0, import_react76.useCallback)(
7684
7788
  (evt) => {
7685
7789
  preventDefaults(evt);
7686
7790
  if (evt.currentTarget.contains(evt.relatedTarget)) return;
@@ -7688,7 +7792,7 @@ var useFileUploader = (props) => {
7688
7792
  },
7689
7793
  [dispatch]
7690
7794
  );
7691
- const setFiles = (0, import_react72.useCallback)(
7795
+ const setFiles = (0, import_react76.useCallback)(
7692
7796
  async (evt) => {
7693
7797
  evt.preventDefault();
7694
7798
  if (isEventWithFiles(evt)) {
@@ -7722,13 +7826,13 @@ var useFileUploader = (props) => {
7722
7826
  dispatch
7723
7827
  ]
7724
7828
  );
7725
- const openFileDialog = (0, import_react72.useCallback)(() => {
7829
+ const openFileDialog = (0, import_react76.useCallback)(() => {
7726
7830
  if (inputRef.current) {
7727
7831
  inputRef.current.value = "";
7728
7832
  inputRef.current.click();
7729
7833
  }
7730
7834
  }, [inputRef]);
7731
- const removeFile = (0, import_react72.useCallback)(
7835
+ const removeFile = (0, import_react76.useCallback)(
7732
7836
  (file) => {
7733
7837
  const newFiles = [...stateFiles];
7734
7838
  newFiles.splice(stateFiles.indexOf(file), 1);
@@ -7742,7 +7846,7 @@ var useFileUploader = (props) => {
7742
7846
  },
7743
7847
  [stateFiles, isControlled, maxFiles, errorMessage, onChange, dispatch]
7744
7848
  );
7745
- const getRootProps = (0, import_react72.useCallback)(
7849
+ const getRootProps = (0, import_react76.useCallback)(
7746
7850
  () => ({
7747
7851
  onBlur: onRootBlur,
7748
7852
  onFocus: onRootFocus,
@@ -7764,14 +7868,14 @@ var useFileUploader = (props) => {
7764
7868
  disabled
7765
7869
  ]
7766
7870
  );
7767
- const getButtonProps = (0, import_react72.useCallback)(
7871
+ const getButtonProps = (0, import_react76.useCallback)(
7768
7872
  () => ({
7769
7873
  onClick: openFileDialog,
7770
7874
  ref: buttonRef
7771
7875
  }),
7772
7876
  [openFileDialog, buttonRef]
7773
7877
  );
7774
- const getInputProps = (0, import_react72.useCallback)(
7878
+ const getInputProps = (0, import_react76.useCallback)(
7775
7879
  () => ({
7776
7880
  type: "file",
7777
7881
  style: { display: "none" },
@@ -7794,19 +7898,19 @@ var useFileUploader = (props) => {
7794
7898
  };
7795
7899
 
7796
7900
  // src/components/VisuallyHidden/VisuallyHidden.tsx
7797
- var import_jsx_runtime228 = require("react/jsx-runtime");
7901
+ var import_jsx_runtime232 = require("react/jsx-runtime");
7798
7902
  var VisuallyHidden = (props) => {
7799
7903
  const { id, className, htmlProps, as, ...rest } = props;
7800
7904
  const cl = cn(className, utilStyles_default["visually-hidden"]);
7801
7905
  if (as === "div") {
7802
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7906
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7803
7907
  }
7804
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7908
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7805
7909
  };
7806
7910
  VisuallyHidden.displayName = "VisuallyHidden";
7807
7911
 
7808
7912
  // src/components/FileUploader/FileUploader.tsx
7809
- var import_jsx_runtime229 = require("react/jsx-runtime");
7913
+ var import_jsx_runtime233 = require("react/jsx-runtime");
7810
7914
  var FileUploader = (props) => {
7811
7915
  const {
7812
7916
  id,
@@ -7829,7 +7933,7 @@ var FileUploader = (props) => {
7829
7933
  className,
7830
7934
  ...rest
7831
7935
  } = props;
7832
- const generatedId = (0, import_react73.useId)();
7936
+ const generatedId = (0, import_react77.useId)();
7833
7937
  const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
7834
7938
  const {
7835
7939
  state: { files: stateFiles, isDragActive, rootErrors },
@@ -7855,7 +7959,7 @@ var FileUploader = (props) => {
7855
7959
  const tipId = derivativeIdGenerator(uniqueId, "tip");
7856
7960
  const buttonId = derivativeIdGenerator(uniqueId, "button");
7857
7961
  const inputId = derivativeIdGenerator(uniqueId, "input");
7858
- const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
7962
+ const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
7859
7963
  File,
7860
7964
  {
7861
7965
  parentId: uniqueId,
@@ -7870,7 +7974,7 @@ var FileUploader = (props) => {
7870
7974
  id: derivativeIdGenerator(uniqueId, `error-${index}`),
7871
7975
  message: e
7872
7976
  }));
7873
- const button = /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
7977
+ const button = /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
7874
7978
  Button,
7875
7979
  {
7876
7980
  ...getButtonProps(),
@@ -7890,7 +7994,7 @@ var FileUploader = (props) => {
7890
7994
  children: btnLabel
7891
7995
  }
7892
7996
  );
7893
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
7997
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
7894
7998
  "div",
7895
7999
  {
7896
8000
  id: uniqueId,
@@ -7902,9 +8006,9 @@ var FileUploader = (props) => {
7902
8006
  style: { ...style, width },
7903
8007
  ...rest,
7904
8008
  children: [
7905
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
7906
- hasTip && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
7907
- withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
8009
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
8010
+ hasTip && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
8011
+ withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
7908
8012
  "div",
7909
8013
  {
7910
8014
  ...getRootProps(),
@@ -7914,7 +8018,7 @@ var FileUploader = (props) => {
7914
8018
  isDragActive && FileUploader_default["input-container--drag-active"]
7915
8019
  ),
7916
8020
  children: [
7917
- /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
8021
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
7918
8022
  "input",
7919
8023
  {
7920
8024
  ...getInputProps(),
@@ -7923,16 +8027,16 @@ var FileUploader = (props) => {
7923
8027
  }
7924
8028
  ),
7925
8029
  dropAreaLabel,
7926
- /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
8030
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
7927
8031
  button
7928
8032
  ]
7929
8033
  }
7930
- ) : /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
7931
- /* @__PURE__ */ (0, import_jsx_runtime229.jsx)("input", { ...getInputProps(), id: inputId }),
8034
+ ) : /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
8035
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("input", { ...getInputProps(), id: inputId }),
7932
8036
  button
7933
8037
  ] }),
7934
- /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(ErrorList, { errors: rootErrorsList }),
7935
- !hideFileList && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
8038
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(ErrorList, { errors: rootErrorsList }),
8039
+ !hideFileList && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
7936
8040
  ]
7937
8041
  }
7938
8042
  );
@@ -7940,7 +8044,7 @@ var FileUploader = (props) => {
7940
8044
  FileUploader.displayName = "FileUploader";
7941
8045
 
7942
8046
  // src/components/Footer/Footer.tsx
7943
- var import_react74 = require("react");
8047
+ var import_react78 = require("react");
7944
8048
 
7945
8049
  // src/components/Footer/Footer.module.css
7946
8050
  var Footer_default = {
@@ -7956,10 +8060,10 @@ var Footer_default = {
7956
8060
  };
7957
8061
 
7958
8062
  // src/components/Footer/Footer.tsx
7959
- var import_jsx_runtime230 = require("react/jsx-runtime");
7960
- var Footer = (0, import_react74.forwardRef)((props, ref) => {
8063
+ var import_jsx_runtime234 = require("react/jsx-runtime");
8064
+ var Footer = (0, import_react78.forwardRef)((props, ref) => {
7961
8065
  const { className, ...rest } = props;
7962
- return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
8066
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
7963
8067
  Contrast,
7964
8068
  {
7965
8069
  as: "footer",
@@ -7971,24 +8075,24 @@ var Footer = (0, import_react74.forwardRef)((props, ref) => {
7971
8075
  });
7972
8076
 
7973
8077
  // src/components/Footer/FooterListHeader.tsx
7974
- var import_react75 = require("react");
7975
- var import_jsx_runtime231 = require("react/jsx-runtime");
7976
- var FooterListHeader = (0, import_react75.forwardRef)((props, ref) => {
7977
- return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
8078
+ var import_react79 = require("react");
8079
+ var import_jsx_runtime235 = require("react/jsx-runtime");
8080
+ var FooterListHeader = (0, import_react79.forwardRef)((props, ref) => {
8081
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
7978
8082
  });
7979
8083
 
7980
8084
  // src/components/Footer/FooterLogo.tsx
7981
- var import_react76 = require("react");
8085
+ var import_react80 = require("react");
7982
8086
 
7983
8087
  // src/components/Footer/norges_domstoler_logo.svg
7984
8088
  var norges_domstoler_logo_default = 'data:image/svg+xml,<svg width="151" height="80" viewBox="0 0 151 80" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Logo" clip-path="url(%23clip0_18254_1882)">%0A<path id="Vector" d="M0 19.5721V0.38501H3.50998L9.51314 13.2128C10.169 14.6541 10.6734 16.1596 11.0182 17.7051H11.1848C10.9502 16.2655 10.8311 14.8093 10.8287 13.3507V0.38501H13.0174V19.5721H9.51314L3.50998 6.77306C2.84978 5.3389 2.34334 3.83883 1.99914 2.29798H1.83829C2.07013 3.73991 2.18921 5.19772 2.19446 6.65817V19.5721H0Z" fill="white"/>%0A<path id="Vector_2" d="M19.2848 17.4063C17.9942 15.7059 17.3489 13.2299 17.3489 9.97846C17.3489 6.72699 17.9942 4.25104 19.2848 2.55062C20.5716 0.850208 22.4118 0 24.8054 0C27.199 0 29.0488 0.844463 30.3548 2.53339C31.6416 4.25679 32.2907 6.70401 32.2907 10.0014C32.2907 13.2989 31.6416 15.7461 30.3548 17.4695C29.068 19.1929 27.2182 20.0029 24.8054 20.0029C22.3927 20.0029 20.5716 19.101 19.2848 17.4063ZM21.3357 4.05572C20.6003 5.31955 20.2308 7.29379 20.2269 9.97846C20.2231 12.6631 20.5927 14.6355 21.3357 15.8954C21.6776 16.4998 22.1813 16.9969 22.7902 17.3307C23.3991 17.6646 24.089 17.8221 24.7825 17.7854C25.4832 17.8288 26.182 17.6747 26.7994 17.3406C27.4169 17.0064 27.9282 16.5058 28.2752 15.8954C29.0143 14.6355 29.3858 12.6631 29.3897 9.97846C29.3935 7.29379 29.0297 5.31955 28.2982 4.05572C27.9502 3.44633 27.4387 2.9464 26.8215 2.61242C26.2042 2.27844 25.5059 2.12372 24.8054 2.16573C24.1083 2.12541 23.4138 2.28107 22.8006 2.6151C22.1874 2.94912 21.6799 3.44817 21.3357 4.05572Z" fill="white"/>%0A<path id="Vector_3" d="M48.594 15.5968C48.8111 16.9446 49.1318 18.2737 49.5534 19.5721H46.5317C46.4288 19.2619 46.3463 18.9453 46.2847 18.6243C46.21 18.2681 46.1238 17.7856 46.0376 17.1709C45.9515 16.5562 45.8825 16.1254 45.8423 15.8668C45.5513 13.9903 45.1415 12.7207 44.613 12.0581C44.0845 11.3956 43.2151 11.0681 42.0049 11.0758H39.1326V19.5721H36.4556V0.38501H43.0045C44.7968 0.38501 46.1813 0.815859 47.1693 1.6833C47.6677 2.13766 48.0592 2.69689 48.3154 3.32072C48.5717 3.94454 48.6865 4.61743 48.6515 5.29094C48.6898 5.93617 48.5867 6.58197 48.3496 7.18326C48.1125 7.78455 47.7469 8.32682 47.2785 8.7722C46.2192 9.64565 44.8691 10.0868 43.4985 10.0073H42.7287V10.1681L43.5272 10.1969C44.1017 10.2313 44.4866 10.2658 44.7566 10.2945C45.102 10.3329 45.4427 10.4061 45.7734 10.5128C46.1234 10.601 46.4442 10.7792 46.704 11.0298C46.968 11.3147 47.2064 11.6223 47.4164 11.949C47.7076 12.4082 47.9301 12.9075 48.077 13.4311C48.2551 14.0343 48.4332 14.7581 48.594 15.5968ZM39.167 9.09964H42.43C42.8862 9.13106 43.3441 9.06822 43.775 8.91503C44.2059 8.76184 44.6006 8.52159 44.9347 8.20922C45.241 7.86617 45.4755 7.4653 45.6245 7.03021C45.7734 6.59512 45.8338 6.13462 45.8021 5.67583C45.8021 3.48138 44.6781 2.38415 42.43 2.38415H39.167V9.09964Z" fill="white"/>%0A<path id="Vector_4" d="M63.8634 6.27892C63.8374 5.16647 63.448 4.0931 62.7547 3.22277C62.4351 2.8708 62.0419 2.59361 61.6031 2.41091C61.1642 2.22821 60.6904 2.14451 60.2155 2.16575C59.518 2.12433 58.8231 2.28288 58.2125 2.62276C57.6019 2.96264 57.1011 3.46974 56.7688 4.08447C56.0334 5.36744 55.6658 7.33211 55.6658 9.97848C55.6658 12.6248 56.0315 14.5933 56.763 15.884C57.0847 16.4915 57.5726 16.995 58.1697 17.3358C58.7668 17.6765 59.4484 17.8404 60.1351 17.8084C62.8581 17.8084 64.2196 15.974 64.2196 12.3051V11.6214H59.9168V9.64529H66.7415V19.572H64.5757V17.6246C64.5824 16.3521 64.6552 15.0808 64.794 13.8159H64.6274C64.4283 15.9338 63.9132 17.4867 63.0821 18.4748C62.2491 19.4629 61.0198 19.9512 59.3941 19.9512C58.4312 19.9882 57.4753 19.7741 56.6202 19.3299C55.7651 18.8857 55.0403 18.2268 54.5169 17.4178C53.3679 15.7289 52.7935 13.2759 52.7935 10.0589C52.7935 6.77296 53.4292 4.28361 54.7007 2.59086C55.9722 0.898101 57.8009 0.0344883 60.1868 2.04411e-05C61.7689 -0.0690547 63.3242 0.425623 64.5757 1.39597C65.1677 1.92295 65.6473 2.56392 65.9859 3.28052C66.3244 3.99712 66.515 4.77464 66.5461 5.56659L63.8634 6.27892Z" fill="white"/>%0A<path id="Vector_5" d="M74.824 17.5673H82.8034V19.5721H72.1125V0.38501H82.6368V2.38415H74.824V8.66305H82.0048V10.6622H74.824V17.5673Z" fill="white"/>%0A<path id="Vector_6" d="M93.0633 19.9512C90.9953 19.9512 89.3695 19.4342 88.1804 18.3887C87.5786 17.8382 87.1032 17.164 86.7869 16.4123C86.4705 15.6606 86.3207 14.8493 86.3478 14.0342L89.0421 13.2645C89.1876 16.3283 90.5491 17.8602 93.1265 17.8602C94.0518 17.9146 94.9669 17.6422 95.7116 17.0904C96.0388 16.8086 96.2951 16.4538 96.4598 16.0546C96.6245 15.6554 96.6929 15.2231 96.6595 14.7925C96.6595 13.3334 95.838 12.284 94.195 11.6445L91.0699 10.3806C88.4159 9.32362 87.0908 7.55236 87.0947 5.06684C87.054 4.35555 87.1815 3.64468 87.467 2.99192C87.7524 2.33915 88.1878 1.76287 88.7376 1.30984C90.0484 0.449859 91.5818 -0.00830078 93.1495 -0.00830078C94.7172 -0.00830078 96.2507 0.449859 97.5614 1.30984C98.139 1.77201 98.6034 2.36008 98.919 3.02914C99.2346 3.6982 99.3931 4.43055 99.3825 5.17024L96.7801 5.9113C96.6155 3.36451 95.4014 2.09302 93.138 2.09685C92.2848 2.02806 91.4347 2.26195 90.7368 2.75749C90.4435 3.00371 90.2126 3.31574 90.0629 3.66814C89.9131 4.02055 89.8488 4.40335 89.8751 4.78535C89.835 5.48253 90.0539 6.16994 90.4897 6.71555C91.0398 7.27423 91.7096 7.70051 92.4487 7.96214L95.3612 9.15703C98.042 10.2294 99.3825 12.0006 99.3825 14.4708C99.4281 15.2308 99.2996 15.9911 99.0069 16.694C98.7143 17.3968 98.2651 18.0236 97.6935 18.5266C96.602 19.4802 95.051 19.9512 93.0633 19.9512Z" fill="white"/>%0A<path id="Vector_7" d="M5.2104 35.4617C7.95251 35.4617 9.98037 36.308 11.294 38.0008C12.6076 39.6936 13.2644 42.045 13.2644 45.0552C13.2644 48.0884 12.6076 50.4456 11.294 52.1269C9.98037 53.8082 7.95251 54.6488 5.2104 54.6488H0V35.4617H5.2104ZM4.96338 52.6497C6.97401 52.6497 8.3757 52.0063 9.17995 50.7195C9.9842 49.4327 10.3863 47.5427 10.3863 45.0552C10.3863 42.5678 9.9842 40.6836 9.17995 39.3968C8.3757 38.11 6.97401 37.4666 4.96338 37.4666H2.71148V52.6497H4.96338Z" fill="white"/>%0A<path id="Vector_8" d="M18.5954 52.4831C17.3047 50.7903 16.6594 48.3144 16.6594 45.0552C16.6594 41.7961 17.3047 39.3202 18.5954 37.6274C19.8898 35.9308 21.732 35.0825 24.1217 35.0825C26.5115 35.0825 28.3613 35.927 29.6711 37.6159C30.954 39.3048 31.5955 41.7846 31.5955 45.0552C31.5955 48.3259 30.9521 50.8152 29.6653 52.5233C28.3823 54.1969 26.5364 55.0337 24.1275 55.0337C21.7185 55.0337 19.8745 54.1835 18.5954 52.4831ZM20.6807 39.1382C19.9147 40.3944 19.5317 42.3667 19.5317 45.0552C19.5317 47.7437 19.9147 49.718 20.6807 50.978C21.0254 51.5787 21.5302 52.0719 22.1388 52.4025C22.7474 52.7332 23.4359 52.8884 24.1275 52.8507C24.8279 52.8921 25.5259 52.7371 26.143 52.4031C26.7601 52.0692 27.2717 51.5697 27.6202 50.9607C28.3555 49.7084 28.7232 47.7399 28.7232 45.0552C28.7232 42.3706 28.3536 40.3982 27.6145 39.1382C27.2674 38.5293 26.7569 38.0296 26.1407 37.6956C25.5245 37.3616 24.8271 37.2067 24.1275 37.2483C23.434 37.2116 22.7441 37.3691 22.1352 37.703C21.5264 38.0368 21.0226 38.5339 20.6807 39.1382Z" fill="white"/>%0A<path id="Vector_9" d="M35.7661 54.6488V35.4617H39.7414L42.8148 46.1237C43.5024 48.2936 43.9079 50.5429 44.0212 52.8163H44.2337C44.2993 50.5424 44.6861 48.2893 45.3827 46.1237L48.5939 35.4617H52.2762V54.6488H49.6911V43.7684C49.6911 41.5223 49.7773 39.414 49.9382 37.4493H49.7486C49.4555 39.2625 49.0527 41.0562 48.5422 42.8206L45.0954 54.6603H42.6827L39.121 42.5965C38.6304 40.9144 38.2467 39.2029 37.9721 37.4723H37.7767C37.9261 39.2417 38.0008 41.2638 38.0008 43.5272V54.6488H35.7661Z" fill="white"/>%0A<path id="Vector_10" d="M63.2314 55.0338C61.171 55.0338 59.5452 54.513 58.3542 53.4713C57.7505 52.9221 57.2734 52.2482 56.9559 51.4963C56.6385 50.7444 56.4884 49.9325 56.5159 49.1168L59.1699 48.3471C59.3155 51.4109 60.6769 52.9428 63.2544 52.9428C64.1809 52.9928 65.0963 52.7208 65.8452 52.173C66.1703 51.8898 66.4248 51.5346 66.5883 51.1356C66.7519 50.7367 66.82 50.3051 66.7873 49.8751C66.7873 48.416 65.9659 47.3647 64.3229 46.7213L61.1978 45.4632C58.5476 44.3986 57.2225 42.6254 57.2225 40.1437C57.1827 39.4334 57.3107 38.7236 57.5962 38.0719C57.8816 37.4202 58.3164 36.8449 58.8655 36.3924C60.1497 35.4549 61.7185 34.9902 63.3061 35.0769C64.8757 35.0068 66.4227 35.4705 67.695 36.3924C68.2714 36.8566 68.7344 37.4461 69.0489 38.116C69.3635 38.7859 69.5213 39.5186 69.5103 40.2586L66.9022 40.9997C66.7414 38.4605 65.5273 37.1909 63.2601 37.1909C62.4071 37.1241 61.5576 37.3578 60.8589 37.8516C60.5656 38.0978 60.3347 38.4098 60.185 38.7622C60.0352 39.1146 59.9709 39.4974 59.9972 39.8794C59.9571 40.5766 60.176 41.264 60.6118 41.8096C61.1632 42.3762 61.8346 42.812 62.5765 43.085L65.535 44.2339C68.2158 45.3139 69.5563 47.0871 69.5563 49.5534C69.6008 50.3128 69.4725 51.0723 69.181 51.7748C68.8894 52.4773 68.4422 53.1045 67.8731 53.6092C66.7529 54.5743 65.2076 55.0338 63.2314 55.0338Z" fill="white"/>%0A<path id="Vector_11" d="M85.8997 35.4617V37.6274H80.6376V54.6488H77.9491V37.6274H72.687V35.4617H85.8997Z" fill="white"/>%0A<path id="Vector_12" d="M90.4092 52.4831C89.1148 50.7903 88.4675 48.3144 88.4675 45.0552C88.4675 41.7961 89.1128 39.3202 90.4035 37.6274C91.6903 35.9308 93.5305 35.0825 95.9241 35.0825C98.3177 35.0825 100.167 35.927 101.473 37.6159C102.76 39.3048 103.404 41.7942 103.404 45.084C103.404 48.3737 102.76 50.8631 101.473 52.552C100.19 54.2065 98.3445 55.0337 95.9356 55.0337C93.5267 55.0337 91.6845 54.1835 90.4092 52.4831ZM92.4888 39.1382C91.7228 40.3944 91.3399 42.3667 91.3399 45.0552C91.3399 47.7437 91.7228 49.718 92.4888 50.978C92.866 51.5576 93.382 52.034 93.9899 52.3637C94.5978 52.6934 95.2785 52.8661 95.97 52.8661C96.6616 52.8661 97.3423 52.6934 97.9502 52.3637C98.5581 52.034 99.0741 51.5576 99.4513 50.978C100.171 49.7141 100.531 47.7399 100.531 45.0552C100.531 42.3706 100.162 40.3982 99.4226 39.1382C99.0454 38.5586 98.5294 38.0823 97.9215 37.7525C97.3136 37.4228 96.6329 37.2501 95.9413 37.2501C95.2497 37.2501 94.5691 37.4228 93.9612 37.7525C93.3532 38.0823 92.8373 38.5586 92.4601 39.1382H92.4888Z" fill="white"/>%0A<path id="Vector_13" d="M107.58 35.4617H110.297V52.4831H117.915V54.6488H107.574L107.58 35.4617Z" fill="white"/>%0A<path id="Vector_14" d="M124.544 52.6497H132.518V54.6488H121.833V35.4617H132.357V37.4666H124.544V43.7397H131.725V45.7446H124.544V52.6497Z" fill="white"/>%0A<path id="Vector_15" d="M149.321 50.6735C149.534 52.022 149.855 53.3513 150.28 54.6488H147.264C147.163 54.3399 147.081 54.0253 147.017 53.7067C146.942 53.3505 146.862 52.8622 146.77 52.2533C146.678 51.6444 146.615 51.2078 146.581 50.9493C146.289 49.0688 145.878 47.7993 145.345 47.1405C144.817 46.4857 143.949 46.1525 142.743 46.1525H139.871V54.6488H137.154V35.4617H143.731C145.52 35.4617 146.908 35.8963 147.896 36.7657C148.392 37.2209 148.781 37.7807 149.034 38.4047C149.288 39.0286 149.399 39.701 149.361 40.3733C149.394 41.0129 149.289 41.6521 149.052 42.247C148.815 42.8419 148.452 43.3786 147.988 43.8201C146.93 44.6951 145.579 45.1365 144.208 45.0552H143.438V45.2218H144.231C144.805 45.2563 145.19 45.285 145.466 45.3137C145.811 45.3579 146.151 45.4309 146.483 45.532C146.833 45.6236 147.153 45.8036 147.413 46.0548C147.676 46.3411 147.914 46.6485 148.126 46.9739C148.422 47.451 148.645 47.97 148.786 48.5135C148.982 49.1167 149.154 49.8348 149.321 50.6735ZM139.894 44.1821H143.151C143.608 44.2136 144.067 44.1508 144.499 43.9976C144.931 43.8445 145.326 43.6042 145.661 43.2916C146.273 42.5923 146.583 41.6795 146.523 40.7525C146.523 38.5638 145.403 37.4666 143.151 37.4666H139.894V44.1821Z" fill="white"/>%0A<path id="Vector_16" d="M150.389 75.0137H0V80H150.389V75.0137Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_18254_1882">%0A<rect width="150.389" height="80" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';
7985
8089
 
7986
8090
  // src/components/Footer/FooterLogo.tsx
7987
- var import_jsx_runtime232 = require("react/jsx-runtime");
7988
- var FooterLogo = (0, import_react76.forwardRef)(
8091
+ var import_jsx_runtime236 = require("react/jsx-runtime");
8092
+ var FooterLogo = (0, import_react80.forwardRef)(
7989
8093
  (props, ref) => {
7990
8094
  const { className, hideBreakpoint, ...rest } = props;
7991
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
8095
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
7992
8096
  "img",
7993
8097
  {
7994
8098
  ref,
@@ -8007,12 +8111,12 @@ var FooterLogo = (0, import_react76.forwardRef)(
8007
8111
  );
8008
8112
 
8009
8113
  // src/components/Footer/FooterList.tsx
8010
- var import_react77 = require("react");
8011
- var import_jsx_runtime233 = require("react/jsx-runtime");
8012
- var FooterList = (0, import_react77.forwardRef)(
8114
+ var import_react81 = require("react");
8115
+ var import_jsx_runtime237 = require("react/jsx-runtime");
8116
+ var FooterList = (0, import_react81.forwardRef)(
8013
8117
  (props, ref) => {
8014
8118
  const { className, ...rest } = props;
8015
- return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
8119
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
8016
8120
  "ul",
8017
8121
  {
8018
8122
  ref,
@@ -8028,11 +8132,11 @@ var FooterList = (0, import_react77.forwardRef)(
8028
8132
  );
8029
8133
 
8030
8134
  // src/components/Footer/FooterSocialsList.tsx
8031
- var import_react78 = require("react");
8032
- var import_jsx_runtime234 = require("react/jsx-runtime");
8033
- var FooterSocialsList = (0, import_react78.forwardRef)((props, ref) => {
8135
+ var import_react82 = require("react");
8136
+ var import_jsx_runtime238 = require("react/jsx-runtime");
8137
+ var FooterSocialsList = (0, import_react82.forwardRef)((props, ref) => {
8034
8138
  const { className, ...rest } = props;
8035
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
8139
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
8036
8140
  "ul",
8037
8141
  {
8038
8142
  ref,
@@ -8047,11 +8151,11 @@ var FooterSocialsList = (0, import_react78.forwardRef)((props, ref) => {
8047
8151
  });
8048
8152
 
8049
8153
  // src/components/Footer/FooterSocialsGroup.tsx
8050
- var import_react79 = require("react");
8051
- var import_jsx_runtime235 = require("react/jsx-runtime");
8052
- var FooterSocialsGroup = (0, import_react79.forwardRef)((props, ref) => {
8154
+ var import_react83 = require("react");
8155
+ var import_jsx_runtime239 = require("react/jsx-runtime");
8156
+ var FooterSocialsGroup = (0, import_react83.forwardRef)((props, ref) => {
8053
8157
  const { className, ...rest } = props;
8054
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
8158
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
8055
8159
  "div",
8056
8160
  {
8057
8161
  ref,
@@ -8062,12 +8166,12 @@ var FooterSocialsGroup = (0, import_react79.forwardRef)((props, ref) => {
8062
8166
  });
8063
8167
 
8064
8168
  // src/components/Footer/FooterListGroup.tsx
8065
- var import_react80 = require("react");
8066
- var import_jsx_runtime236 = require("react/jsx-runtime");
8067
- var FooterListGroup = (0, import_react80.forwardRef)(
8169
+ var import_react84 = require("react");
8170
+ var import_jsx_runtime240 = require("react/jsx-runtime");
8171
+ var FooterListGroup = (0, import_react84.forwardRef)(
8068
8172
  (props, ref) => {
8069
8173
  const { className, ...rest } = props;
8070
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
8174
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
8071
8175
  "div",
8072
8176
  {
8073
8177
  ref,
@@ -8079,17 +8183,17 @@ var FooterListGroup = (0, import_react80.forwardRef)(
8079
8183
  );
8080
8184
 
8081
8185
  // src/components/Footer/FooterLeft.tsx
8082
- var import_react81 = require("react");
8083
- var import_jsx_runtime237 = require("react/jsx-runtime");
8084
- var FooterLeft = (0, import_react81.forwardRef)(
8186
+ var import_react85 = require("react");
8187
+ var import_jsx_runtime241 = require("react/jsx-runtime");
8188
+ var FooterLeft = (0, import_react85.forwardRef)(
8085
8189
  (props, ref) => {
8086
8190
  const { className, ...rest } = props;
8087
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
8191
+ return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
8088
8192
  }
8089
8193
  );
8090
8194
 
8091
8195
  // src/components/GlobalMessage/GlobalMessage.tsx
8092
- var import_react82 = require("react");
8196
+ var import_react86 = require("react");
8093
8197
 
8094
8198
  // src/components/GlobalMessage/GlobalMessage.module.css
8095
8199
  var GlobalMessage_default = {
@@ -8103,13 +8207,13 @@ var GlobalMessage_default = {
8103
8207
  };
8104
8208
 
8105
8209
  // src/components/GlobalMessage/GlobalMessage.tsx
8106
- var import_jsx_runtime238 = require("react/jsx-runtime");
8210
+ var import_jsx_runtime242 = require("react/jsx-runtime");
8107
8211
  var icons = {
8108
8212
  info: InfoIcon,
8109
8213
  danger: ErrorIcon,
8110
8214
  warning: WarningIcon
8111
8215
  };
8112
- var GlobalMessage = (0, import_react82.forwardRef)(
8216
+ var GlobalMessage = (0, import_react86.forwardRef)(
8113
8217
  (props, ref) => {
8114
8218
  const {
8115
8219
  message,
@@ -8122,8 +8226,8 @@ var GlobalMessage = (0, import_react82.forwardRef)(
8122
8226
  htmlProps,
8123
8227
  ...rest
8124
8228
  } = props;
8125
- const [isClosed, setClosed] = (0, import_react82.useState)(false);
8126
- return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
8229
+ const [isClosed, setClosed] = (0, import_react86.useState)(false);
8230
+ return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
8127
8231
  "div",
8128
8232
  {
8129
8233
  ref,
@@ -8139,7 +8243,7 @@ var GlobalMessage = (0, import_react82.forwardRef)(
8139
8243
  rest
8140
8244
  ),
8141
8245
  children: [
8142
- /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
8246
+ /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
8143
8247
  "div",
8144
8248
  {
8145
8249
  className: cn(
@@ -8147,12 +8251,12 @@ var GlobalMessage = (0, import_react82.forwardRef)(
8147
8251
  closable && GlobalMessage_default["content--closable"]
8148
8252
  ),
8149
8253
  children: [
8150
- /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
8151
- children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("span", { children: message })
8254
+ /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
8255
+ children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("span", { children: message })
8152
8256
  ]
8153
8257
  }
8154
8258
  ),
8155
- closable && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
8259
+ closable && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
8156
8260
  Button,
8157
8261
  {
8158
8262
  icon: CloseIcon,
@@ -8183,7 +8287,7 @@ var Grid_default = {
8183
8287
  };
8184
8288
 
8185
8289
  // src/components/Grid/Grid.tsx
8186
- var import_jsx_runtime239 = require("react/jsx-runtime");
8290
+ var import_jsx_runtime243 = require("react/jsx-runtime");
8187
8291
  var Grid = (props) => {
8188
8292
  const {
8189
8293
  id,
@@ -8228,13 +8332,13 @@ var Grid = (props) => {
8228
8332
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8229
8333
  ["--dds-grid-xl-column-gap"]: (columnGap == null ? void 0 : columnGap.xl) ? columnGap.xl : "var(--dds-grid-xl-gutter-size)"
8230
8334
  };
8231
- return as === "div" ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
8335
+ return as === "div" ? /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
8232
8336
  "div",
8233
8337
  {
8234
8338
  ...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
8235
8339
  style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
8236
8340
  }
8237
- ) : /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
8341
+ ) : /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
8238
8342
  "form",
8239
8343
  {
8240
8344
  ...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
@@ -8245,7 +8349,7 @@ var Grid = (props) => {
8245
8349
  Grid.displayName = "Grid";
8246
8350
 
8247
8351
  // src/components/Grid/GridChild.tsx
8248
- var import_jsx_runtime240 = require("react/jsx-runtime");
8352
+ var import_jsx_runtime244 = require("react/jsx-runtime");
8249
8353
  var isRelativeGridColumn = (type) => {
8250
8354
  return type === "all" || type === "firstHalf" || type === "secondHalf";
8251
8355
  };
@@ -8295,7 +8399,7 @@ var GridChild = (props) => {
8295
8399
  firstHalf: "first-half",
8296
8400
  secondHalf: "second-half"
8297
8401
  };
8298
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
8402
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
8299
8403
  "div",
8300
8404
  {
8301
8405
  ...getBaseHTMLProps(
@@ -8316,7 +8420,7 @@ var GridChild = (props) => {
8316
8420
  GridChild.displayName = "GridChild";
8317
8421
 
8318
8422
  // src/components/InlineButton/InlineButton.tsx
8319
- var import_react83 = require("react");
8423
+ var import_react87 = require("react");
8320
8424
 
8321
8425
  // src/components/InlineButton/InlineButton.module.css
8322
8426
  var InlineButton_default = {
@@ -8324,11 +8428,11 @@ var InlineButton_default = {
8324
8428
  };
8325
8429
 
8326
8430
  // src/components/InlineButton/InlineButton.tsx
8327
- var import_jsx_runtime241 = require("react/jsx-runtime");
8328
- var InlineButton = (0, import_react83.forwardRef)(
8431
+ var import_jsx_runtime245 = require("react/jsx-runtime");
8432
+ var InlineButton = (0, import_react87.forwardRef)(
8329
8433
  (props, ref) => {
8330
8434
  const { className, ...rest } = props;
8331
- return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
8435
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
8332
8436
  "button",
8333
8437
  {
8334
8438
  ref,
@@ -8347,11 +8451,11 @@ var InlineButton = (0, import_react83.forwardRef)(
8347
8451
  );
8348
8452
 
8349
8453
  // src/components/InlineEdit/InlineEditTextArea.tsx
8350
- var import_react86 = require("react");
8454
+ var import_react90 = require("react");
8351
8455
 
8352
8456
  // src/components/InlineEdit/InlineEdit.tsx
8353
- var import_react84 = require("react");
8354
- var import_jsx_runtime242 = require("react/jsx-runtime");
8457
+ var import_react88 = require("react");
8458
+ var import_jsx_runtime246 = require("react/jsx-runtime");
8355
8459
  var InlineEdit = (props) => {
8356
8460
  const {
8357
8461
  emptiable,
@@ -8363,8 +8467,8 @@ var InlineEdit = (props) => {
8363
8467
  inputRef,
8364
8468
  children
8365
8469
  } = props;
8366
- const [editingValue, setEditingValue] = (0, import_react84.useState)(value != null ? value : "");
8367
- const [isEditing, setIsEditing] = (0, import_react84.useState)(false);
8470
+ const [editingValue, setEditingValue] = (0, import_react88.useState)(value != null ? value : "");
8471
+ const [isEditing, setIsEditing] = (0, import_react88.useState)(false);
8368
8472
  const onChangeHandler = (e) => {
8369
8473
  setEditingValue(e.target.value);
8370
8474
  onChange && onChange();
@@ -8391,8 +8495,8 @@ var InlineEdit = (props) => {
8391
8495
  useOnKeyDown(["Enter"], () => onExitHandler());
8392
8496
  useOnKeyDown(["Escape"], () => onExitHandler());
8393
8497
  useOnClickOutside(inputRef.current, () => onExitHandler());
8394
- const inputChild = import_react84.Children.only(
8395
- (0, import_react84.isValidElement)(children) && (0, import_react84.cloneElement)(children, {
8498
+ const inputChild = import_react88.Children.only(
8499
+ (0, import_react88.isValidElement)(children) && (0, import_react88.cloneElement)(children, {
8396
8500
  onChange: onChangeHandler,
8397
8501
  onBlur: onBlurHandler,
8398
8502
  onFocus: onFocusHandler,
@@ -8401,12 +8505,12 @@ var InlineEdit = (props) => {
8401
8505
  emptiable
8402
8506
  })
8403
8507
  );
8404
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(import_jsx_runtime242.Fragment, { children: inputChild });
8508
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_jsx_runtime246.Fragment, { children: inputChild });
8405
8509
  };
8406
8510
  InlineEdit.displayName = "InlineEdit";
8407
8511
 
8408
8512
  // src/components/InlineEdit/InlineTextArea.tsx
8409
- var import_react85 = require("react");
8513
+ var import_react89 = require("react");
8410
8514
 
8411
8515
  // src/components/InlineEdit/InlineEdit.module.css
8412
8516
  var InlineEdit_default = {
@@ -8419,16 +8523,16 @@ var InlineEdit_default = {
8419
8523
  };
8420
8524
 
8421
8525
  // src/components/InlineEdit/InlineEdit.utils.tsx
8422
- var import_jsx_runtime243 = require("react/jsx-runtime");
8423
- var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(VisuallyHidden, { id, as: "span", children: [
8526
+ var import_jsx_runtime247 = require("react/jsx-runtime");
8527
+ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(VisuallyHidden, { id, as: "span", children: [
8424
8528
  "Escape, Enter eller Tab for \xE5 lagre.",
8425
8529
  " ",
8426
8530
  !emptiable && "Inputfeltet er ikke t\xF8mmbar."
8427
8531
  ] });
8428
8532
 
8429
8533
  // src/components/InlineEdit/InlineTextArea.tsx
8430
- var import_jsx_runtime244 = require("react/jsx-runtime");
8431
- var InlineTextArea = (0, import_react85.forwardRef)((props, ref) => {
8534
+ var import_jsx_runtime248 = require("react/jsx-runtime");
8535
+ var InlineTextArea = (0, import_react89.forwardRef)((props, ref) => {
8432
8536
  const {
8433
8537
  id,
8434
8538
  error,
@@ -8440,18 +8544,18 @@ var InlineTextArea = (0, import_react85.forwardRef)((props, ref) => {
8440
8544
  hideIcon,
8441
8545
  ...rest
8442
8546
  } = props;
8443
- const genereatedId = (0, import_react85.useId)();
8547
+ const genereatedId = (0, import_react89.useId)();
8444
8548
  const uniqueId = id != null ? id : `${genereatedId}-InlineTextArea`;
8445
8549
  const hasErrorMessage = !!errorMessage;
8446
8550
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
8447
8551
  const hasError = !!error;
8448
8552
  const hasErrorState = hasError || hasErrorMessage;
8449
8553
  const descId = derivativeIdGenerator(uniqueId, "desc");
8450
- const inputRef = (0, import_react85.useRef)(null);
8554
+ const inputRef = (0, import_react89.useRef)(null);
8451
8555
  const combinedRef = useCombinedRef(ref, inputRef);
8452
- return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8453
- /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)("div", { className: Input_default["input-group"], children: [
8454
- !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
8556
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8557
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)("div", { className: Input_default["input-group"], children: [
8558
+ !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
8455
8559
  "span",
8456
8560
  {
8457
8561
  onClick: () => {
@@ -8459,10 +8563,10 @@ var InlineTextArea = (0, import_react85.forwardRef)((props, ref) => {
8459
8563
  (_a = inputRef.current) == null ? void 0 : _a.focus();
8460
8564
  },
8461
8565
  className: InlineEdit_default["icon-wrapper"],
8462
- children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8566
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8463
8567
  }
8464
8568
  ),
8465
- /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
8569
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
8466
8570
  "textarea",
8467
8571
  {
8468
8572
  ...rest,
@@ -8494,12 +8598,12 @@ var InlineTextArea = (0, import_react85.forwardRef)((props, ref) => {
8494
8598
  InlineTextArea.displayName = "InlineTextArea";
8495
8599
 
8496
8600
  // src/components/InlineEdit/InlineEditTextArea.tsx
8497
- var import_jsx_runtime245 = require("react/jsx-runtime");
8498
- var InlineEditTextArea = (0, import_react86.forwardRef)((props, ref) => {
8601
+ var import_jsx_runtime249 = require("react/jsx-runtime");
8602
+ var InlineEditTextArea = (0, import_react90.forwardRef)((props, ref) => {
8499
8603
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
8500
- const textareaRef = (0, import_react86.useRef)(null);
8604
+ const textareaRef = (0, import_react90.useRef)(null);
8501
8605
  const combinedRef = useCombinedRef(ref, textareaRef);
8502
- return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
8606
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8503
8607
  InlineEdit,
8504
8608
  {
8505
8609
  onSetValue,
@@ -8509,18 +8613,18 @@ var InlineEditTextArea = (0, import_react86.forwardRef)((props, ref) => {
8509
8613
  onFocus,
8510
8614
  onChange,
8511
8615
  onBlur,
8512
- children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(InlineTextArea, { ref: combinedRef, ...rest })
8616
+ children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(InlineTextArea, { ref: combinedRef, ...rest })
8513
8617
  }
8514
8618
  );
8515
8619
  });
8516
8620
 
8517
8621
  // src/components/InlineEdit/InlineEditInput.tsx
8518
- var import_react88 = require("react");
8622
+ var import_react92 = require("react");
8519
8623
 
8520
8624
  // src/components/InlineEdit/InlineInput.tsx
8521
- var import_react87 = require("react");
8522
- var import_jsx_runtime246 = require("react/jsx-runtime");
8523
- var InlineInput = (0, import_react87.forwardRef)(
8625
+ var import_react91 = require("react");
8626
+ var import_jsx_runtime250 = require("react/jsx-runtime");
8627
+ var InlineInput = (0, import_react91.forwardRef)(
8524
8628
  (props, ref) => {
8525
8629
  const {
8526
8630
  id,
@@ -8533,18 +8637,18 @@ var InlineInput = (0, import_react87.forwardRef)(
8533
8637
  hideIcon,
8534
8638
  ...rest
8535
8639
  } = props;
8536
- const genereatedId = (0, import_react87.useId)();
8640
+ const genereatedId = (0, import_react91.useId)();
8537
8641
  const uniqueId = id != null ? id : `${genereatedId}-InlineInput`;
8538
8642
  const hasErrorMessage = !!errorMessage;
8539
8643
  const hasError = !!error;
8540
8644
  const hasErrorState = hasError || hasErrorMessage;
8541
8645
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
8542
8646
  const descId = derivativeIdGenerator(uniqueId, "desc");
8543
- const inputRef = (0, import_react87.useRef)(null);
8647
+ const inputRef = (0, import_react91.useRef)(null);
8544
8648
  const combinedRef = useCombinedRef(ref, inputRef);
8545
- return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8546
- /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)("div", { className: Input_default["input-group"], children: [
8547
- !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
8649
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8650
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: Input_default["input-group"], children: [
8651
+ !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8548
8652
  "span",
8549
8653
  {
8550
8654
  onClick: () => {
@@ -8552,10 +8656,10 @@ var InlineInput = (0, import_react87.forwardRef)(
8552
8656
  (_a = inputRef.current) == null ? void 0 : _a.focus();
8553
8657
  },
8554
8658
  className: InlineEdit_default["icon-wrapper"],
8555
- children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8659
+ children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8556
8660
  }
8557
8661
  ),
8558
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
8662
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8559
8663
  "input",
8560
8664
  {
8561
8665
  ...rest,
@@ -8586,12 +8690,12 @@ var InlineInput = (0, import_react87.forwardRef)(
8586
8690
  InlineInput.displayName = "InlineInput";
8587
8691
 
8588
8692
  // src/components/InlineEdit/InlineEditInput.tsx
8589
- var import_jsx_runtime247 = require("react/jsx-runtime");
8590
- var InlineEditInput = (0, import_react88.forwardRef)((props, ref) => {
8693
+ var import_jsx_runtime251 = require("react/jsx-runtime");
8694
+ var InlineEditInput = (0, import_react92.forwardRef)((props, ref) => {
8591
8695
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
8592
- const inputRef = (0, import_react88.useRef)(null);
8696
+ const inputRef = (0, import_react92.useRef)(null);
8593
8697
  const combinedRef = useCombinedRef(ref, inputRef);
8594
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
8698
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
8595
8699
  InlineEdit,
8596
8700
  {
8597
8701
  onSetValue,
@@ -8601,13 +8705,13 @@ var InlineEditInput = (0, import_react88.forwardRef)((props, ref) => {
8601
8705
  onFocus,
8602
8706
  onChange,
8603
8707
  onBlur,
8604
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(InlineInput, { ...rest, ref: combinedRef })
8708
+ children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(InlineInput, { ...rest, ref: combinedRef })
8605
8709
  }
8606
8710
  );
8607
8711
  });
8608
8712
 
8609
8713
  // src/components/InternalHeader/InternalHeader.tsx
8610
- var import_react90 = require("react");
8714
+ var import_react94 = require("react");
8611
8715
 
8612
8716
  // src/components/InternalHeader/InternalHeader.module.css
8613
8717
  var InternalHeader_default = {
@@ -8663,10 +8767,10 @@ var InternalHeader_default = {
8663
8767
  };
8664
8768
 
8665
8769
  // src/components/InternalHeader/NavigationItem.tsx
8666
- var import_react89 = require("react");
8667
- var import_jsx_runtime248 = require("react/jsx-runtime");
8668
- var NavigationItem = (0, import_react89.forwardRef)(({ isCurrent, ...rest }, ref) => {
8669
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
8770
+ var import_react93 = require("react");
8771
+ var import_jsx_runtime252 = require("react/jsx-runtime");
8772
+ var NavigationItem = (0, import_react93.forwardRef)(({ isCurrent, ...rest }, ref) => {
8773
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
8670
8774
  "a",
8671
8775
  {
8672
8776
  ...rest,
@@ -8683,7 +8787,7 @@ var NavigationItem = (0, import_react89.forwardRef)(({ isCurrent, ...rest }, ref
8683
8787
  });
8684
8788
 
8685
8789
  // src/components/InternalHeader/InternalHeader.tsx
8686
- var import_jsx_runtime249 = require("react/jsx-runtime");
8790
+ var import_jsx_runtime253 = require("react/jsx-runtime");
8687
8791
  var InternalHeader = (props) => {
8688
8792
  const {
8689
8793
  applicationDesc,
@@ -8700,11 +8804,11 @@ var InternalHeader = (props) => {
8700
8804
  htmlProps,
8701
8805
  ...rest
8702
8806
  } = props;
8703
- const [contextMenuIsClosed, setContextMenuIsClosed] = (0, import_react90.useState)(true);
8704
- const [currentPage, setCurrentPage] = (0, import_react90.useState)(
8807
+ const [contextMenuIsClosed, setContextMenuIsClosed] = (0, import_react94.useState)(true);
8808
+ const [currentPage, setCurrentPage] = (0, import_react94.useState)(
8705
8809
  currentPageHref
8706
8810
  );
8707
- const buttonRef = (0, import_react90.useRef)(null);
8811
+ const buttonRef = (0, import_react94.useRef)(null);
8708
8812
  const handleCurrentPageChange = (href) => {
8709
8813
  setCurrentPage(href);
8710
8814
  onCurrentPageChange && onCurrentPageChange();
@@ -8717,7 +8821,7 @@ var InternalHeader = (props) => {
8717
8821
  const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
8718
8822
  const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
8719
8823
  const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
8720
- const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8824
+ const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8721
8825
  "ul",
8722
8826
  {
8723
8827
  className: cn(
@@ -8728,7 +8832,7 @@ var InternalHeader = (props) => {
8728
8832
  children: navItems.map((item, index) => {
8729
8833
  const { href, ...rest2 } = item;
8730
8834
  const isCurrent = href === currentPage;
8731
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8835
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8732
8836
  NavigationItem,
8733
8837
  {
8734
8838
  href,
@@ -8742,7 +8846,7 @@ var InternalHeader = (props) => {
8742
8846
  ) }) : null;
8743
8847
  const hasContextMenu = hasContextMenuElements || !!user || hasNavInContextMenu;
8744
8848
  const hasContextMenuLargeScreen = hasContextMenuElements || !!user;
8745
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
8849
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
8746
8850
  "div",
8747
8851
  {
8748
8852
  ...getBaseHTMLProps(
@@ -8757,7 +8861,7 @@ var InternalHeader = (props) => {
8757
8861
  rest
8758
8862
  ),
8759
8863
  children: [
8760
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8864
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8761
8865
  "a",
8762
8866
  {
8763
8867
  href: applicationHref,
@@ -8766,10 +8870,10 @@ var InternalHeader = (props) => {
8766
8870
  children: applicationName
8767
8871
  }
8768
8872
  ) : applicationName }),
8769
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
8770
- (hasContextMenu || navigation !== null) && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)("div", { className: InternalHeader_default["bar-separator"] }),
8873
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
8874
+ (hasContextMenu || navigation !== null) && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { className: InternalHeader_default["bar-separator"] }),
8771
8875
  navigation,
8772
- hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
8876
+ hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
8773
8877
  "div",
8774
8878
  {
8775
8879
  className: cn(
@@ -8778,7 +8882,7 @@ var InternalHeader = (props) => {
8778
8882
  !hasContextMenuLargeScreen && hasSmallScreenBreakpoint && InternalHeader_default[`context-menu-group--small-screen-only-${smallScreenBreakpoint}`]
8779
8883
  ),
8780
8884
  children: [
8781
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8885
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8782
8886
  Button,
8783
8887
  {
8784
8888
  ref: buttonRef,
@@ -8790,7 +8894,7 @@ var InternalHeader = (props) => {
8790
8894
  "aria-label": "\xE5pne meny"
8791
8895
  }
8792
8896
  ),
8793
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
8897
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
8794
8898
  OverflowMenu,
8795
8899
  {
8796
8900
  isOpen: !contextMenuIsClosed,
@@ -8798,8 +8902,8 @@ var InternalHeader = (props) => {
8798
8902
  anchorRef: buttonRef,
8799
8903
  className: InternalHeader_default["context-menu"],
8800
8904
  children: [
8801
- user && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuList, { children: user.href ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
8802
- hasNavInContextMenu && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8905
+ user && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuList, { children: user.href ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
8906
+ hasNavInContextMenu && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8803
8907
  "nav",
8804
8908
  {
8805
8909
  "aria-label": "sidenavigasjon",
@@ -8807,10 +8911,10 @@ var InternalHeader = (props) => {
8807
8911
  InternalHeader_default["nav--in-menu--small-screen"],
8808
8912
  InternalHeader_default[`nav--in-menu--small-screen-${smallScreenBreakpoint}`]
8809
8913
  ),
8810
- children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuLink, { ...item })) })
8914
+ children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuLink, { ...item })) })
8811
8915
  }
8812
8916
  ),
8813
- hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8917
+ hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8814
8918
  OverflowMenuDivider,
8815
8919
  {
8816
8920
  className: cn(
@@ -8819,8 +8923,8 @@ var InternalHeader = (props) => {
8819
8923
  )
8820
8924
  }
8821
8925
  ),
8822
- hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuList, { children: contextMenuItems.map((item) => {
8823
- return item.href ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuLink, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8926
+ hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuList, { children: contextMenuItems.map((item) => {
8927
+ return item.href ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuLink, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8824
8928
  OverflowMenuButton,
8825
8929
  {
8826
8930
  ...item
@@ -8840,7 +8944,7 @@ var InternalHeader = (props) => {
8840
8944
  InternalHeader.displayName = "InternalHeader";
8841
8945
 
8842
8946
  // src/components/List/List.tsx
8843
- var import_react91 = require("react");
8947
+ var import_react95 = require("react");
8844
8948
 
8845
8949
  // src/components/List/List.module.css
8846
8950
  var List_default = {
@@ -8852,8 +8956,8 @@ var List_default = {
8852
8956
  };
8853
8957
 
8854
8958
  // src/components/List/List.tsx
8855
- var import_jsx_runtime250 = require("react/jsx-runtime");
8856
- var List = (0, import_react91.forwardRef)((props, ref) => {
8959
+ var import_jsx_runtime254 = require("react/jsx-runtime");
8960
+ var List = (0, import_react95.forwardRef)((props, ref) => {
8857
8961
  const {
8858
8962
  listType = "unordered",
8859
8963
  typographyType = "inherit",
@@ -8864,7 +8968,7 @@ var List = (0, import_react91.forwardRef)((props, ref) => {
8864
8968
  ...rest
8865
8969
  } = props;
8866
8970
  const List2 = listType === "ordered" ? "ol" : "ul";
8867
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8971
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
8868
8972
  List2,
8869
8973
  {
8870
8974
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -8881,17 +8985,17 @@ var List = (0, import_react91.forwardRef)((props, ref) => {
8881
8985
  List.displayName = "List";
8882
8986
 
8883
8987
  // src/components/List/ListItem.tsx
8884
- var import_react92 = require("react");
8885
- var import_jsx_runtime251 = require("react/jsx-runtime");
8886
- var ListItem = (0, import_react92.forwardRef)(
8988
+ var import_react96 = require("react");
8989
+ var import_jsx_runtime255 = require("react/jsx-runtime");
8990
+ var ListItem = (0, import_react96.forwardRef)(
8887
8991
  ({ className, ...rest }, ref) => {
8888
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)("li", { ref, ...rest, className: cn(className, List_default.li) });
8992
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("li", { ref, ...rest, className: cn(className, List_default.li) });
8889
8993
  }
8890
8994
  );
8891
8995
  ListItem.displayName = "ListItem";
8892
8996
 
8893
8997
  // src/components/LocalMessage/LocalMessage.tsx
8894
- var import_react93 = require("react");
8998
+ var import_react97 = require("react");
8895
8999
 
8896
9000
  // src/components/LocalMessage/LocalMessage.module.css
8897
9001
  var LocalMessage_default = {
@@ -8912,7 +9016,7 @@ var LocalMessage_default = {
8912
9016
  };
8913
9017
 
8914
9018
  // src/components/LocalMessage/LocalMessage.tsx
8915
- var import_jsx_runtime252 = require("react/jsx-runtime");
9019
+ var import_jsx_runtime256 = require("react/jsx-runtime");
8916
9020
  var icons2 = {
8917
9021
  info: InfoIcon,
8918
9022
  danger: ErrorIcon,
@@ -8920,7 +9024,7 @@ var icons2 = {
8920
9024
  success: CheckCircledIcon,
8921
9025
  tips: TipIcon
8922
9026
  };
8923
- var LocalMessage = (0, import_react93.forwardRef)(
9027
+ var LocalMessage = (0, import_react97.forwardRef)(
8924
9028
  (props, ref) => {
8925
9029
  const {
8926
9030
  message,
@@ -8935,11 +9039,11 @@ var LocalMessage = (0, import_react93.forwardRef)(
8935
9039
  htmlProps,
8936
9040
  ...rest
8937
9041
  } = props;
8938
- const [isClosed, setClosed] = (0, import_react93.useState)(false);
9042
+ const [isClosed, setClosed] = (0, import_react97.useState)(false);
8939
9043
  if (isClosed) {
8940
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_jsx_runtime252.Fragment, {});
9044
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_jsx_runtime256.Fragment, {});
8941
9045
  }
8942
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
9046
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
8943
9047
  "div",
8944
9048
  {
8945
9049
  ref,
@@ -8958,15 +9062,15 @@ var LocalMessage = (0, import_react93.forwardRef)(
8958
9062
  ),
8959
9063
  style: { ...htmlProps == null ? void 0 : htmlProps.style, width },
8960
9064
  children: [
8961
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
9065
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
8962
9066
  Icon,
8963
9067
  {
8964
9068
  icon: icons2[purpose],
8965
9069
  className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
8966
9070
  }
8967
9071
  ),
8968
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("span", { children: message }) }),
8969
- closable && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
9072
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("span", { children: message }) }),
9073
+ closable && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
8970
9074
  Button,
8971
9075
  {
8972
9076
  icon: CloseIcon,
@@ -8988,7 +9092,7 @@ var LocalMessage = (0, import_react93.forwardRef)(
8988
9092
  LocalMessage.displayName = "LocalMessage";
8989
9093
 
8990
9094
  // src/components/Modal/Modal.tsx
8991
- var import_react94 = require("react");
9095
+ var import_react98 = require("react");
8992
9096
  var import_react_dom3 = require("react-dom");
8993
9097
 
8994
9098
  // src/components/Modal/Backdrop/Backdrop.utils.tsx
@@ -9026,8 +9130,8 @@ var Modal_default = {
9026
9130
  };
9027
9131
 
9028
9132
  // src/components/Modal/Modal.tsx
9029
- var import_jsx_runtime253 = require("react/jsx-runtime");
9030
- var Modal = (0, import_react94.forwardRef)((props, ref) => {
9133
+ var import_jsx_runtime257 = require("react/jsx-runtime");
9134
+ var Modal = (0, import_react98.forwardRef)((props, ref) => {
9031
9135
  const {
9032
9136
  isOpen = false,
9033
9137
  parentElement = document.body,
@@ -9041,7 +9145,7 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9041
9145
  htmlProps,
9042
9146
  ...rest
9043
9147
  } = props;
9044
- const generatedId = (0, import_react94.useId)();
9148
+ const generatedId = (0, import_react98.useId)();
9045
9149
  const modalId = id != null ? id : `${generatedId}-modal`;
9046
9150
  const headerId = `${modalId}-header`;
9047
9151
  const modalRef = useFocusTrap(isOpen, initialFocusRef);
@@ -9053,7 +9157,7 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9053
9157
  onClose();
9054
9158
  }
9055
9159
  };
9056
- (0, import_react94.useEffect)(() => {
9160
+ (0, import_react98.useEffect)(() => {
9057
9161
  if (isOpen) {
9058
9162
  handleElementWithBackdropMount(document.body);
9059
9163
  } else {
@@ -9065,14 +9169,14 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9065
9169
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
9066
9170
  const hasTransitionedIn = useMountTransition(isOpen, 200);
9067
9171
  return isOpen || hasTransitionedIn ? (0, import_react_dom3.createPortal)(
9068
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
9172
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9069
9173
  "div",
9070
9174
  {
9071
9175
  className: cn(
9072
9176
  Modal_default.backdrop,
9073
9177
  hasTransitionedIn && isOpen ? Modal_default["backdrop--visible"] : Modal_default["backdrop--hidden"]
9074
9178
  ),
9075
- children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
9179
+ children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
9076
9180
  Paper,
9077
9181
  {
9078
9182
  ...getBaseHTMLProps(
@@ -9090,11 +9194,11 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9090
9194
  id: modalId,
9091
9195
  elevation: 4,
9092
9196
  children: [
9093
- /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)("div", { className: Modal_default.content, children: [
9094
- header && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
9197
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)("div", { className: Modal_default.content, children: [
9198
+ header && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
9095
9199
  children
9096
9200
  ] }),
9097
- onClose && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
9201
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9098
9202
  Button,
9099
9203
  {
9100
9204
  size: "small",
@@ -9116,12 +9220,12 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9116
9220
  Modal.displayName = "Modal";
9117
9221
 
9118
9222
  // src/components/Modal/ModalBody.tsx
9119
- var import_react95 = require("react");
9120
- var import_jsx_runtime254 = require("react/jsx-runtime");
9121
- var ModalBody = (0, import_react95.forwardRef)(
9223
+ var import_react99 = require("react");
9224
+ var import_jsx_runtime258 = require("react/jsx-runtime");
9225
+ var ModalBody = (0, import_react99.forwardRef)(
9122
9226
  (props, ref) => {
9123
9227
  const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
9124
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
9228
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9125
9229
  "div",
9126
9230
  {
9127
9231
  ref,
@@ -9145,17 +9249,17 @@ var ModalBody = (0, import_react95.forwardRef)(
9145
9249
  ModalBody.displayName = "ModalBody";
9146
9250
 
9147
9251
  // src/components/Modal/ModalActions.tsx
9148
- var import_react96 = require("react");
9149
- var import_jsx_runtime255 = require("react/jsx-runtime");
9150
- var ModalActions = (0, import_react96.forwardRef)(
9252
+ var import_react100 = require("react");
9253
+ var import_jsx_runtime259 = require("react/jsx-runtime");
9254
+ var ModalActions = (0, import_react100.forwardRef)(
9151
9255
  ({ className, ...rest }, ref) => {
9152
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
9256
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
9153
9257
  }
9154
9258
  );
9155
9259
  ModalActions.displayName = "ModalActions";
9156
9260
 
9157
9261
  // src/components/Pagination/Pagination.tsx
9158
- var import_react99 = require("react");
9262
+ var import_react103 = require("react");
9159
9263
 
9160
9264
  // src/components/Pagination/Pagination.module.css
9161
9265
  var Pagination_default = {
@@ -9218,7 +9322,7 @@ function PaginationGenerator(pagesAmount, activePage) {
9218
9322
  }
9219
9323
 
9220
9324
  // src/components/Select/Select.tsx
9221
- var import_react97 = require("react");
9325
+ var import_react101 = require("react");
9222
9326
  var import_react_select2 = __toESM(require("react-select"));
9223
9327
 
9224
9328
  // src/components/Select/Select.module.css
@@ -9513,7 +9617,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
9513
9617
 
9514
9618
  // src/components/Select/SelectComponents.tsx
9515
9619
  var import_react_select = require("react-select");
9516
- var import_jsx_runtime256 = require("react/jsx-runtime");
9620
+ var import_jsx_runtime260 = require("react/jsx-runtime");
9517
9621
  var {
9518
9622
  Option,
9519
9623
  NoOptionsMessage,
@@ -9534,27 +9638,27 @@ var getIndicatorIconSize = (componentSize) => {
9534
9638
  return "small";
9535
9639
  }
9536
9640
  };
9537
- var DDSOption = (props, componentSize) => /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(Option, { ...props, children: [
9538
- props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9641
+ var DDSOption = (props, componentSize) => /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Option, { ...props, children: [
9642
+ props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9539
9643
  props.children
9540
9644
  ] });
9541
- var CustomOption = (props, Element) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Option, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Element, { ...props }) });
9542
- var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Element, { ...props }) : props.children }) });
9543
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
9544
- var DDSClearIndicator = (props, size2) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
9545
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9645
+ var CustomOption = (props, Element) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Option, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Element, { ...props }) });
9646
+ var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Element, { ...props }) : props.children }) });
9647
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
9648
+ var DDSClearIndicator = (props, size2) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
9649
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9546
9650
  var DDSDropdownIndicator = (props, size2) => {
9547
9651
  const { className, ...rest } = props;
9548
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9652
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9549
9653
  DropdownIndicator,
9550
9654
  {
9551
9655
  ...rest,
9552
9656
  className: cn(className, Select_default["dropdown-indicator"]),
9553
- children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: ChevronDownIcon, iconSize: getIndicatorIconSize(size2) })
9657
+ children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Icon, { icon: ChevronDownIcon, iconSize: getIndicatorIconSize(size2) })
9554
9658
  }
9555
9659
  );
9556
9660
  };
9557
- var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9661
+ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9558
9662
  Input2,
9559
9663
  {
9560
9664
  ...props,
@@ -9564,11 +9668,11 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, impo
9564
9668
  );
9565
9669
  var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9566
9670
  const { className, ...rest } = props;
9567
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9671
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9568
9672
  "div",
9569
9673
  {
9570
9674
  "data-testid": dataTestId ? dataTestId + "-control" : void 0,
9571
- children: /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
9675
+ children: /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
9572
9676
  Control,
9573
9677
  {
9574
9678
  ...rest,
@@ -9579,7 +9683,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9579
9683
  readOnly && Select_default["control--readonly"]
9580
9684
  ),
9581
9685
  children: [
9582
- icon && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9686
+ icon && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9583
9687
  Icon,
9584
9688
  {
9585
9689
  icon,
@@ -9596,7 +9700,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9596
9700
  };
9597
9701
 
9598
9702
  // src/components/Select/Select.tsx
9599
- var import_jsx_runtime257 = require("react/jsx-runtime");
9703
+ var import_jsx_runtime261 = require("react/jsx-runtime");
9600
9704
  var getPlaceholder = (placeholder, isMulti) => placeholder ? placeholder : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
9601
9705
  function SelectInner(props, ref) {
9602
9706
  const {
@@ -9625,7 +9729,7 @@ function SelectInner(props, ref) {
9625
9729
  "data-testid": dataTestId,
9626
9730
  ...rest
9627
9731
  } = props;
9628
- const generatedId = (0, import_react97.useId)();
9732
+ const generatedId = (0, import_react101.useId)();
9629
9733
  const uniqueId = id != null ? id : `${generatedId}-select`;
9630
9734
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
9631
9735
  const hasLabel = !!label;
@@ -9685,7 +9789,7 @@ function SelectInner(props, ref) {
9685
9789
  openMenuOnClick: readOnly ? false : props.openMenuOnClick ? props.openMenuOnClick : void 0,
9686
9790
  ...rest
9687
9791
  };
9688
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
9792
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
9689
9793
  "div",
9690
9794
  {
9691
9795
  className: cn(
@@ -9696,7 +9800,7 @@ function SelectInner(props, ref) {
9696
9800
  ),
9697
9801
  style: { ...style, width },
9698
9802
  children: [
9699
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9803
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
9700
9804
  Label,
9701
9805
  {
9702
9806
  htmlFor: uniqueId,
@@ -9706,17 +9810,17 @@ function SelectInner(props, ref) {
9706
9810
  children: label
9707
9811
  }
9708
9812
  ),
9709
- /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
9813
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
9710
9814
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
9711
9815
  ]
9712
9816
  }
9713
9817
  );
9714
9818
  }
9715
- var Select = (0, import_react97.forwardRef)(SelectInner);
9819
+ var Select = (0, import_react101.forwardRef)(SelectInner);
9716
9820
  Select.displayName = "Select";
9717
9821
 
9718
9822
  // src/components/Select/NativeSelect/NativeSelect.tsx
9719
- var import_react98 = require("react");
9823
+ var import_react102 = require("react");
9720
9824
 
9721
9825
  // src/components/Select/NativeSelect/NativeSelect.module.css
9722
9826
  var NativeSelect_default = {
@@ -9731,8 +9835,8 @@ var NativeSelect_default = {
9731
9835
  };
9732
9836
 
9733
9837
  // src/components/Select/NativeSelect/NativeSelect.tsx
9734
- var import_jsx_runtime258 = require("react/jsx-runtime");
9735
- var NativeSelect = (0, import_react98.forwardRef)(
9838
+ var import_jsx_runtime262 = require("react/jsx-runtime");
9839
+ var NativeSelect = (0, import_react102.forwardRef)(
9736
9840
  (props, ref) => {
9737
9841
  const {
9738
9842
  id,
@@ -9751,7 +9855,7 @@ var NativeSelect = (0, import_react98.forwardRef)(
9751
9855
  style,
9752
9856
  ...rest
9753
9857
  } = props;
9754
- const generatedId = (0, import_react98.useId)();
9858
+ const generatedId = (0, import_react102.useId)();
9755
9859
  const uniqueId = id != null ? id : `${generatedId}-native-select`;
9756
9860
  const hasErrorMessage = !!errorMessage;
9757
9861
  const hasTip = !!tip;
@@ -9763,8 +9867,8 @@ var NativeSelect = (0, import_react98.forwardRef)(
9763
9867
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9764
9868
  ["--dds-native-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
9765
9869
  };
9766
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("div", { children: [
9767
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9870
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)("div", { children: [
9871
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
9768
9872
  Label,
9769
9873
  {
9770
9874
  className: Input_default.label,
@@ -9774,8 +9878,8 @@ var NativeSelect = (0, import_react98.forwardRef)(
9774
9878
  children: label
9775
9879
  }
9776
9880
  ),
9777
- /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("div", { className: NativeSelect_default.container, children: [
9778
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9881
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)("div", { className: NativeSelect_default.container, children: [
9882
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
9779
9883
  "select",
9780
9884
  {
9781
9885
  ref,
@@ -9813,7 +9917,7 @@ var NativeSelect = (0, import_react98.forwardRef)(
9813
9917
  children
9814
9918
  }
9815
9919
  ),
9816
- !multiple && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9920
+ !multiple && /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
9817
9921
  Icon,
9818
9922
  {
9819
9923
  icon: ChevronDownIcon,
@@ -9826,9 +9930,9 @@ var NativeSelect = (0, import_react98.forwardRef)(
9826
9930
  ] });
9827
9931
  }
9828
9932
  );
9829
- var NativeSelectPlaceholder = (0, import_react98.forwardRef)((props, ref) => {
9933
+ var NativeSelectPlaceholder = (0, import_react102.forwardRef)((props, ref) => {
9830
9934
  const { children = "-- Velg fra listen --", value, ...rest } = props;
9831
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
9935
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
9832
9936
  });
9833
9937
  NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
9834
9938
 
@@ -9836,8 +9940,8 @@ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
9836
9940
  var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2 }));
9837
9941
 
9838
9942
  // src/components/Pagination/Pagination.tsx
9839
- var import_jsx_runtime259 = require("react/jsx-runtime");
9840
- var Pagination = (0, import_react99.forwardRef)(
9943
+ var import_jsx_runtime263 = require("react/jsx-runtime");
9944
+ var Pagination = (0, import_react103.forwardRef)(
9841
9945
  (props, ref) => {
9842
9946
  const {
9843
9947
  itemsAmount,
@@ -9860,8 +9964,8 @@ var Pagination = (0, import_react99.forwardRef)(
9860
9964
  htmlProps,
9861
9965
  ...rest
9862
9966
  } = props;
9863
- const [activePage, setActivePage] = (0, import_react99.useState)(defaultActivePage);
9864
- const [itemsPerPage, setItemsPerPage] = (0, import_react99.useState)(defaultItemsPerPage);
9967
+ const [activePage, setActivePage] = (0, import_react103.useState)(defaultActivePage);
9968
+ const [itemsPerPage, setItemsPerPage] = (0, import_react103.useState)(defaultItemsPerPage);
9865
9969
  const pagesLength = Math.ceil(itemsAmount / itemsPerPage);
9866
9970
  const items = PaginationGenerator(pagesLength, activePage);
9867
9971
  const onPageChange = (event, page) => {
@@ -9880,7 +9984,7 @@ var Pagination = (0, import_react99.forwardRef)(
9880
9984
  };
9881
9985
  const listItems = items.length > 0 ? items.map((item, i2) => {
9882
9986
  const isActive = item === activePage;
9883
- return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
9987
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9884
9988
  Button,
9885
9989
  {
9886
9990
  purpose: isActive ? "primary" : "secondary",
@@ -9891,7 +9995,7 @@ var Pagination = (0, import_react99.forwardRef)(
9891
9995
  "aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
9892
9996
  children: item
9893
9997
  }
9894
- ) : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
9998
+ ) : /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9895
9999
  Icon,
9896
10000
  {
9897
10001
  icon: MoreHorizontalIcon,
@@ -9899,7 +10003,7 @@ var Pagination = (0, import_react99.forwardRef)(
9899
10003
  }
9900
10004
  ) }, `pagination-item-${i2}`);
9901
10005
  }) : void 0;
9902
- const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10006
+ const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9903
10007
  Button,
9904
10008
  {
9905
10009
  purpose: "secondary",
@@ -9911,7 +10015,7 @@ var Pagination = (0, import_react99.forwardRef)(
9911
10015
  "aria-label": "G\xE5 til forrige siden"
9912
10016
  }
9913
10017
  );
9914
- const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10018
+ const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9915
10019
  Button,
9916
10020
  {
9917
10021
  purpose: "secondary",
@@ -9936,8 +10040,8 @@ var Pagination = (0, import_react99.forwardRef)(
9936
10040
  };
9937
10041
  const isOnFirstPage = activePage === 1;
9938
10042
  const isOnLastPage = activePage === pagesLength;
9939
- const largeScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("nav", { ref, "aria-label": "paginering", ...navProps(), children: /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("ol", { className: Pagination_default.list, children: [
9940
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10043
+ const largeScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("nav", { ref, "aria-label": "paginering", ...navProps(), children: /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)("ol", { className: Pagination_default.list, children: [
10044
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9941
10045
  "li",
9942
10046
  {
9943
10047
  className: cn(
@@ -9949,7 +10053,7 @@ var Pagination = (0, import_react99.forwardRef)(
9949
10053
  }
9950
10054
  ),
9951
10055
  listItems,
9952
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10056
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9953
10057
  "li",
9954
10058
  {
9955
10059
  className: cn(
@@ -9961,8 +10065,8 @@ var Pagination = (0, import_react99.forwardRef)(
9961
10065
  }
9962
10066
  )
9963
10067
  ] }) }) : null;
9964
- const smallScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("nav", { ref, "aria-label": "paginering", ...navProps(true), children: /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("ol", { className: Pagination_default.list, children: [
9965
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10068
+ const smallScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("nav", { ref, "aria-label": "paginering", ...navProps(true), children: /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)("ol", { className: Pagination_default.list, children: [
10069
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9966
10070
  "li",
9967
10071
  {
9968
10072
  className: cn(
@@ -9970,7 +10074,7 @@ var Pagination = (0, import_react99.forwardRef)(
9970
10074
  isOnFirstPage && Pagination_default["list__item--hidden"]
9971
10075
  ),
9972
10076
  "aria-hidden": isOnFirstPage,
9973
- children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10077
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9974
10078
  Button,
9975
10079
  {
9976
10080
  purpose: "secondary",
@@ -9984,7 +10088,7 @@ var Pagination = (0, import_react99.forwardRef)(
9984
10088
  )
9985
10089
  }
9986
10090
  ),
9987
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10091
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9988
10092
  "li",
9989
10093
  {
9990
10094
  className: cn(
@@ -9995,7 +10099,7 @@ var Pagination = (0, import_react99.forwardRef)(
9995
10099
  children: previousPageButton
9996
10100
  }
9997
10101
  ),
9998
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10102
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9999
10103
  Button,
10000
10104
  {
10001
10105
  size: "small",
@@ -10005,7 +10109,7 @@ var Pagination = (0, import_react99.forwardRef)(
10005
10109
  children: activePage
10006
10110
  }
10007
10111
  ) }),
10008
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10112
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10009
10113
  "li",
10010
10114
  {
10011
10115
  className: cn(
@@ -10016,7 +10120,7 @@ var Pagination = (0, import_react99.forwardRef)(
10016
10120
  children: nextPageButton
10017
10121
  }
10018
10122
  ),
10019
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10123
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10020
10124
  "li",
10021
10125
  {
10022
10126
  className: cn(
@@ -10024,7 +10128,7 @@ var Pagination = (0, import_react99.forwardRef)(
10024
10128
  isOnLastPage && Pagination_default["list__item--hidden"]
10025
10129
  ),
10026
10130
  "aria-hidden": isOnLastPage,
10027
- children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10131
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10028
10132
  Button,
10029
10133
  {
10030
10134
  purpose: "secondary",
@@ -10041,10 +10145,10 @@ var Pagination = (0, import_react99.forwardRef)(
10041
10145
  ] }) }) : null;
10042
10146
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
10043
10147
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
10044
- return !withCounter && !withSelect ? /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(import_jsx_runtime259.Fragment, { children: [
10148
+ return !withCounter && !withSelect ? /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
10045
10149
  largeScreenNavigation,
10046
10150
  smallScreenBreakpoint && smallScreenNavigation
10047
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
10151
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
10048
10152
  "div",
10049
10153
  {
10050
10154
  ...getBaseHTMLProps(
@@ -10058,8 +10162,8 @@ var Pagination = (0, import_react99.forwardRef)(
10058
10162
  rest
10059
10163
  ),
10060
10164
  children: [
10061
- /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { className: Pagination_default.indicators, children: [
10062
- withSelect && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10165
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)("div", { className: Pagination_default.indicators, children: [
10166
+ withSelect && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10063
10167
  Select,
10064
10168
  {
10065
10169
  options: selectOptions,
@@ -10075,7 +10179,7 @@ var Pagination = (0, import_react99.forwardRef)(
10075
10179
  "aria-label": "Antall elementer per side"
10076
10180
  }
10077
10181
  ),
10078
- withCounter && /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
10182
+ withCounter && /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
10079
10183
  "Viser ",
10080
10184
  activePageFirstItem,
10081
10185
  "-",
@@ -10095,7 +10199,7 @@ Pagination.displayName = "Pagination";
10095
10199
 
10096
10200
  // src/components/Popover/Popover.tsx
10097
10201
  var import_dds_design_tokens14 = require("@norges-domstoler/dds-design-tokens");
10098
- var import_react100 = require("react");
10202
+ var import_react104 = require("react");
10099
10203
 
10100
10204
  // src/components/Popover/Popover.module.css
10101
10205
  var Popover_default = {
@@ -10106,8 +10210,8 @@ var Popover_default = {
10106
10210
  };
10107
10211
 
10108
10212
  // src/components/Popover/Popover.tsx
10109
- var import_jsx_runtime260 = require("react/jsx-runtime");
10110
- var Popover = (0, import_react100.forwardRef)(
10213
+ var import_jsx_runtime264 = require("react/jsx-runtime");
10214
+ var Popover = (0, import_react104.forwardRef)(
10111
10215
  (props, ref) => {
10112
10216
  const {
10113
10217
  title,
@@ -10147,32 +10251,37 @@ var Popover = (0, import_react100.forwardRef)(
10147
10251
  useOnClickOutside(elements, () => {
10148
10252
  if (isOpen) onClose && onClose();
10149
10253
  });
10150
- return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
10254
+ return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
10151
10255
  Paper,
10152
10256
  {
10153
- ...getBaseHTMLProps(id, className, htmlProps, rest),
10257
+ ...getBaseHTMLProps(
10258
+ id,
10259
+ cn(
10260
+ className,
10261
+ Popover_default.container,
10262
+ utilStyles_default["visibility-transition"],
10263
+ hasTransitionedIn && isOpen ? utilStyles_default["visibility-transition--open"] : utilStyles_default["visibility-transition--closed"],
10264
+ focus_default.focusable
10265
+ ),
10266
+ htmlProps,
10267
+ rest
10268
+ ),
10154
10269
  ref: multiRef,
10155
10270
  tabIndex: -1,
10156
10271
  style: { ...htmlProps.style, ...floatingStyles.floating, ...sizeProps },
10157
10272
  role: "dialog",
10158
10273
  elevation: 3,
10159
10274
  border: "subtle",
10160
- className: cn(
10161
- Popover_default.container,
10162
- utilStyles_default["visibility-transition"],
10163
- hasTransitionedIn && isOpen ? utilStyles_default["visibility-transition--open"] : utilStyles_default["visibility-transition--closed"],
10164
- focus_default.focusable
10165
- ),
10166
10275
  children: [
10167
- title && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
10168
- /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
10276
+ title && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
10277
+ /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
10169
10278
  "div",
10170
10279
  {
10171
10280
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
10172
10281
  children
10173
10282
  }
10174
10283
  ),
10175
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
10284
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
10176
10285
  Button,
10177
10286
  {
10178
10287
  icon: CloseIcon,
@@ -10191,8 +10300,8 @@ var Popover = (0, import_react100.forwardRef)(
10191
10300
  Popover.displayName = "Popover";
10192
10301
 
10193
10302
  // src/components/Popover/PopoverGroup.tsx
10194
- var import_react101 = require("react");
10195
- var import_jsx_runtime261 = require("react/jsx-runtime");
10303
+ var import_react105 = require("react");
10304
+ var import_jsx_runtime265 = require("react/jsx-runtime");
10196
10305
  var PopoverGroup = ({
10197
10306
  isOpen = false,
10198
10307
  onCloseButtonClick,
@@ -10200,8 +10309,8 @@ var PopoverGroup = ({
10200
10309
  children,
10201
10310
  popoverId
10202
10311
  }) => {
10203
- const [open, setOpen] = (0, import_react101.useState)(isOpen);
10204
- const generatedId = (0, import_react101.useId)();
10312
+ const [open, setOpen] = (0, import_react105.useState)(isOpen);
10313
+ const generatedId = (0, import_react105.useId)();
10205
10314
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
10206
10315
  const handleOnCloseButtonClick = () => {
10207
10316
  setOpen(false);
@@ -10211,8 +10320,8 @@ var PopoverGroup = ({
10211
10320
  setOpen(!open);
10212
10321
  onTriggerClick && onTriggerClick();
10213
10322
  };
10214
- const buttonRef = (0, import_react101.useRef)(null);
10215
- const popoverRef = (0, import_react101.useRef)(null);
10323
+ const buttonRef = (0, import_react105.useRef)(null);
10324
+ const popoverRef = (0, import_react105.useRef)(null);
10216
10325
  useOnKeyDown(["Esc", "Escape"], () => {
10217
10326
  var _a;
10218
10327
  if (open) {
@@ -10221,14 +10330,14 @@ var PopoverGroup = ({
10221
10330
  }
10222
10331
  });
10223
10332
  const handleClose = () => setOpen(false);
10224
- const Children8 = import_react101.Children.map(children, (child, childIndex) => {
10225
- return (0, import_react101.isValidElement)(child) && (childIndex === 0 ? (0, import_react101.cloneElement)(child, {
10333
+ const Children8 = import_react105.Children.map(children, (child, childIndex) => {
10334
+ return (0, import_react105.isValidElement)(child) && (childIndex === 0 ? (0, import_react105.cloneElement)(child, {
10226
10335
  "aria-haspopup": "dialog",
10227
10336
  "aria-controls": uniquePopoverId,
10228
10337
  "aria-expanded": open,
10229
10338
  onClick: handleOnTriggerClick,
10230
10339
  ref: buttonRef
10231
- }) : (0, import_react101.cloneElement)(child, {
10340
+ }) : (0, import_react105.cloneElement)(child, {
10232
10341
  isOpen: open,
10233
10342
  "aria-hidden": !open,
10234
10343
  id: uniquePopoverId,
@@ -10238,21 +10347,21 @@ var PopoverGroup = ({
10238
10347
  onClose: handleClose
10239
10348
  }));
10240
10349
  });
10241
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(import_jsx_runtime261.Fragment, { children: Children8 });
10350
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(import_jsx_runtime265.Fragment, { children: Children8 });
10242
10351
  };
10243
10352
  PopoverGroup.displayName = "PopoverGroup";
10244
10353
 
10245
10354
  // src/components/ProgressTracker/ProgressTracker.tsx
10246
- var import_react104 = require("react");
10355
+ var import_react108 = require("react");
10247
10356
 
10248
10357
  // src/components/ProgressTracker/ProgressTracker.context.tsx
10249
- var import_react102 = require("react");
10250
- var ProgressTrackerContext = (0, import_react102.createContext)(
10358
+ var import_react106 = require("react");
10359
+ var ProgressTrackerContext = (0, import_react106.createContext)(
10251
10360
  {
10252
10361
  activeStep: 0
10253
10362
  }
10254
10363
  );
10255
- var useProgressTrackerContext = () => (0, import_react102.useContext)(ProgressTrackerContext);
10364
+ var useProgressTrackerContext = () => (0, import_react106.useContext)(ProgressTrackerContext);
10256
10365
 
10257
10366
  // src/components/ProgressTracker/ProgressTracker.module.css
10258
10367
  var ProgressTracker_default = {
@@ -10276,8 +10385,8 @@ var ProgressTracker_default = {
10276
10385
  };
10277
10386
 
10278
10387
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
10279
- var import_react103 = require("react");
10280
- var import_jsx_runtime262 = require("react/jsx-runtime");
10388
+ var import_react107 = require("react");
10389
+ var import_jsx_runtime266 = require("react/jsx-runtime");
10281
10390
  var toItemState = (active, completed, disabled) => {
10282
10391
  if (disabled) {
10283
10392
  return "disabled";
@@ -10298,26 +10407,37 @@ var itemStateCn = {
10298
10407
  var getVisuallyHiddenText = (active, completed, index) => `${index + 1}, ${active ? "" : "Trinn, "}${completed ? "Ferdig, " : "Ikke ferdig, "}`;
10299
10408
  var ProgressTrackerItem = (props) => {
10300
10409
  const {
10410
+ id,
10411
+ className,
10412
+ htmlProps,
10301
10413
  index = 0,
10302
10414
  completed = false,
10303
10415
  disabled = false,
10416
+ onClick,
10304
10417
  icon,
10305
- children
10418
+ children,
10419
+ ...rest
10306
10420
  } = props;
10307
10421
  const { activeStep, handleStepChange } = useProgressTrackerContext();
10308
10422
  const active = activeStep === index;
10309
10423
  const itemState = toItemState(active, completed, disabled);
10310
- const stepNumberContent = (0, import_react103.useMemo)(() => {
10424
+ const handleClick = () => {
10425
+ if (!disabled) {
10426
+ onClick && onClick(index);
10427
+ handleStepChange && handleStepChange(index);
10428
+ }
10429
+ };
10430
+ const stepNumberContent = (0, import_react107.useMemo)(() => {
10311
10431
  if (completed) {
10312
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
10432
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
10313
10433
  }
10314
10434
  if (icon !== void 0) {
10315
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Icon, { icon, iconSize: "small" });
10435
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Icon, { icon, iconSize: "small" });
10316
10436
  }
10317
10437
  return index + 1;
10318
10438
  }, [completed, icon, index]);
10319
- const stepContent = /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(import_jsx_runtime262.Fragment, { children: [
10320
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
10439
+ const stepContent = /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(import_jsx_runtime266.Fragment, { children: [
10440
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10321
10441
  "div",
10322
10442
  {
10323
10443
  "aria-hidden": true,
@@ -10329,7 +10449,7 @@ var ProgressTrackerItem = (props) => {
10329
10449
  children: stepNumberContent
10330
10450
  }
10331
10451
  ),
10332
- /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
10452
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
10333
10453
  "div",
10334
10454
  {
10335
10455
  className: cn(
@@ -10338,28 +10458,44 @@ var ProgressTrackerItem = (props) => {
10338
10458
  typographyStyles_default["body-sans-03"]
10339
10459
  ),
10340
10460
  children: [
10341
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10461
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10342
10462
  children
10343
10463
  ]
10344
10464
  }
10345
10465
  )
10346
10466
  ] });
10347
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
10467
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10348
10468
  "button",
10349
10469
  {
10350
- onClick: !disabled && handleStepChange ? () => handleStepChange(index) : void 0,
10470
+ ...getBaseHTMLProps(
10471
+ id,
10472
+ cn(className, ProgressTracker_default["item-button"], focusable),
10473
+ htmlProps,
10474
+ rest
10475
+ ),
10476
+ onClick: () => handleClick(),
10351
10477
  disabled,
10352
- className: cn(ProgressTracker_default["item-button"], focusable),
10353
10478
  children: stepContent
10354
10479
  }
10355
- ) : /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("div", { className: cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"]), children: stepContent }) });
10480
+ ) : /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10481
+ "div",
10482
+ {
10483
+ ...getBaseHTMLProps(
10484
+ id,
10485
+ cn(className, cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"])),
10486
+ htmlProps,
10487
+ rest
10488
+ ),
10489
+ children: stepContent
10490
+ }
10491
+ ) });
10356
10492
  };
10357
10493
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
10358
10494
 
10359
10495
  // src/components/ProgressTracker/ProgressTracker.tsx
10360
- var import_jsx_runtime263 = require("react/jsx-runtime");
10496
+ var import_jsx_runtime267 = require("react/jsx-runtime");
10361
10497
  var ProgressTracker = (() => {
10362
- const Res = (0, import_react104.forwardRef)((props, ref) => {
10498
+ const Res = (0, import_react108.forwardRef)((props, ref) => {
10363
10499
  const {
10364
10500
  id,
10365
10501
  activeStep = 0,
@@ -10369,12 +10505,12 @@ var ProgressTracker = (() => {
10369
10505
  htmlProps,
10370
10506
  ...rest
10371
10507
  } = props;
10372
- const [thisActiveStep, setActiveStep] = (0, import_react104.useState)(activeStep);
10508
+ const [thisActiveStep, setActiveStep] = (0, import_react108.useState)(activeStep);
10373
10509
  const handleChange = (step) => {
10374
10510
  setActiveStep(step);
10375
10511
  onStepChange && onStepChange(step);
10376
10512
  };
10377
- (0, import_react104.useEffect)(() => {
10513
+ (0, import_react108.useEffect)(() => {
10378
10514
  if (activeStep !== void 0 && activeStep != thisActiveStep) {
10379
10515
  setActiveStep(activeStep);
10380
10516
  }
@@ -10383,20 +10519,20 @@ var ProgressTracker = (() => {
10383
10519
  ...getBaseHTMLProps(id, className, htmlProps, rest),
10384
10520
  ref
10385
10521
  };
10386
- const steps = (0, import_react104.useMemo)(() => {
10522
+ const steps = (0, import_react108.useMemo)(() => {
10387
10523
  const validChildren = removeInvalidChildren(children);
10388
10524
  const itemsWithIndex = passIndexPropToProgressTrackerItem(validChildren);
10389
10525
  const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
10390
10526
  return itemsWithConnectorsBetween;
10391
10527
  }, [children]);
10392
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10528
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
10393
10529
  ProgressTrackerContext.Provider,
10394
10530
  {
10395
10531
  value: {
10396
10532
  activeStep: thisActiveStep,
10397
10533
  handleStepChange: handleChange
10398
10534
  },
10399
- children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("ol", { className: ProgressTracker_default.list, children: steps }) })
10535
+ children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("ol", { className: ProgressTracker_default.list, children: steps }) })
10400
10536
  }
10401
10537
  );
10402
10538
  });
@@ -10405,35 +10541,35 @@ var ProgressTracker = (() => {
10405
10541
  return Res;
10406
10542
  })();
10407
10543
  function removeInvalidChildren(children) {
10408
- return import_react104.Children.toArray(children).filter(import_react104.isValidElement);
10544
+ return import_react108.Children.toArray(children).filter(import_react108.isValidElement);
10409
10545
  }
10410
10546
  function passIndexPropToProgressTrackerItem(children) {
10411
- return import_react104.Children.map(
10547
+ return import_react108.Children.map(
10412
10548
  children,
10413
- (item, index) => (0, import_react104.cloneElement)(item, {
10549
+ (item, index) => (0, import_react108.cloneElement)(item, {
10414
10550
  ...item.props,
10415
10551
  index
10416
10552
  })
10417
10553
  );
10418
10554
  }
10419
- var intersperseItemsWithConnector = (children) => import_react104.Children.map(children, (child, index) => {
10555
+ var intersperseItemsWithConnector = (children) => import_react108.Children.map(children, (child, index) => {
10420
10556
  if (index === 0) {
10421
10557
  return child;
10422
10558
  }
10423
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_react104.Fragment, { children: [
10424
- /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10559
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(import_react108.Fragment, { children: [
10560
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10425
10561
  child
10426
10562
  ] }, index);
10427
10563
  });
10428
10564
 
10429
10565
  // src/components/Search/Search.tsx
10430
- var import_react108 = require("react");
10566
+ var import_react112 = require("react");
10431
10567
 
10432
10568
  // src/components/Search/AutocompleteSearch.context.tsx
10433
- var import_react105 = require("react");
10434
- var AutocompleteSearchContext = (0, import_react105.createContext)({});
10569
+ var import_react109 = require("react");
10570
+ var AutocompleteSearchContext = (0, import_react109.createContext)({});
10435
10571
  var useAutocompleteSearch = () => {
10436
- return (0, import_react105.useContext)(AutocompleteSearchContext);
10572
+ return (0, import_react109.useContext)(AutocompleteSearchContext);
10437
10573
  };
10438
10574
 
10439
10575
  // src/components/Search/Search.module.css
@@ -10483,22 +10619,22 @@ function createEmptyChangeEvent(inputElementId) {
10483
10619
  }
10484
10620
 
10485
10621
  // src/components/Search/SearchSuggestions.tsx
10486
- var import_react107 = require("react");
10622
+ var import_react111 = require("react");
10487
10623
 
10488
10624
  // src/components/Search/SearchSuggestionItem.tsx
10489
- var import_react106 = require("react");
10490
- var import_jsx_runtime264 = require("react/jsx-runtime");
10491
- var SearchSuggestionItem = (0, import_react106.forwardRef)((props, ref) => {
10625
+ var import_react110 = require("react");
10626
+ var import_jsx_runtime268 = require("react/jsx-runtime");
10627
+ var SearchSuggestionItem = (0, import_react110.forwardRef)((props, ref) => {
10492
10628
  const { focus, className, ...rest } = props;
10493
- const itemRef = (0, import_react106.useRef)(null);
10629
+ const itemRef = (0, import_react110.useRef)(null);
10494
10630
  const combinedRef = useCombinedRef(ref, itemRef);
10495
- (0, import_react106.useEffect)(() => {
10631
+ (0, import_react110.useEffect)(() => {
10496
10632
  var _a;
10497
10633
  if (focus) {
10498
10634
  (_a = itemRef.current) == null ? void 0 : _a.focus();
10499
10635
  }
10500
10636
  }, [focus]);
10501
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
10637
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
10502
10638
  "button",
10503
10639
  {
10504
10640
  ref: combinedRef,
@@ -10517,8 +10653,8 @@ var SearchSuggestionItem = (0, import_react106.forwardRef)((props, ref) => {
10517
10653
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
10518
10654
 
10519
10655
  // src/components/Search/SearchSuggestions.tsx
10520
- var import_jsx_runtime265 = require("react/jsx-runtime");
10521
- var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10656
+ var import_jsx_runtime269 = require("react/jsx-runtime");
10657
+ var SearchSuggestions = (0, import_react111.forwardRef)((props, ref) => {
10522
10658
  const {
10523
10659
  id,
10524
10660
  searchId,
@@ -10537,7 +10673,7 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10537
10673
  );
10538
10674
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
10539
10675
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
10540
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
10676
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
10541
10677
  Paper,
10542
10678
  {
10543
10679
  ...getBaseHTMLProps(
@@ -10556,7 +10692,7 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10556
10692
  "aria-hidden": !showSuggestions,
10557
10693
  border: "default",
10558
10694
  children: [
10559
- /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10695
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
10560
10696
  "span",
10561
10697
  {
10562
10698
  id: suggestionsHeaderId,
@@ -10567,14 +10703,14 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10567
10703
  children: "S\xF8keforslag"
10568
10704
  }
10569
10705
  ),
10570
- /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10706
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
10571
10707
  "ul",
10572
10708
  {
10573
10709
  role: "listbox",
10574
10710
  "aria-labelledby": suggestionsHeaderId,
10575
10711
  className: utilStyles_default["remove-list-styling"],
10576
10712
  children: suggestionsToRender.map((suggestion, index) => {
10577
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10713
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
10578
10714
  SearchSuggestionItem,
10579
10715
  {
10580
10716
  index,
@@ -10597,7 +10733,7 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10597
10733
  SearchSuggestions.displayName = "SearchSuggestions";
10598
10734
 
10599
10735
  // src/components/Search/Search.tsx
10600
- var import_jsx_runtime266 = require("react/jsx-runtime");
10736
+ var import_jsx_runtime270 = require("react/jsx-runtime");
10601
10737
  var getIconSize = (size2) => {
10602
10738
  switch (size2) {
10603
10739
  case "large":
@@ -10608,7 +10744,7 @@ var getIconSize = (size2) => {
10608
10744
  return "small";
10609
10745
  }
10610
10746
  };
10611
- var Search = (0, import_react108.forwardRef)(
10747
+ var Search = (0, import_react112.forwardRef)(
10612
10748
  ({
10613
10749
  componentSize = "medium",
10614
10750
  buttonProps,
@@ -10624,7 +10760,7 @@ var Search = (0, import_react108.forwardRef)(
10624
10760
  ...rest
10625
10761
  }, ref) => {
10626
10762
  var _a;
10627
- const generatedId = (0, import_react108.useId)();
10763
+ const generatedId = (0, import_react112.useId)();
10628
10764
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
10629
10765
  const hasLabel = !!label;
10630
10766
  const tipId = derivativeIdGenerator(uniqueId, "tip");
@@ -10633,7 +10769,7 @@ var Search = (0, import_react108.forwardRef)(
10633
10769
  uniqueId,
10634
10770
  "suggestions-description"
10635
10771
  );
10636
- const [hasValue, setHasValue] = (0, import_react108.useState)(!!value);
10772
+ const [hasValue, setHasValue] = (0, import_react112.useState)(!!value);
10637
10773
  const context = useAutocompleteSearch();
10638
10774
  const combinedRef = context.inputRef ? useCombinedRef(context.inputRef, ref) : ref;
10639
10775
  const handleChange = (e) => {
@@ -10652,10 +10788,10 @@ var Search = (0, import_react108.forwardRef)(
10652
10788
  } = buttonProps != null ? buttonProps : {};
10653
10789
  const hasSuggestions = !!context.suggestions;
10654
10790
  const showSearchButton = !!buttonProps && !!onClick;
10655
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)("div", { className: Search_default.container, children: [
10656
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Label, { htmlFor: uniqueId, children: label }),
10657
- /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)("div", { children: [
10658
- /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
10791
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)("div", { className: Search_default.container, children: [
10792
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(Label, { htmlFor: uniqueId, children: label }),
10793
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)("div", { children: [
10794
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
10659
10795
  "div",
10660
10796
  {
10661
10797
  className: cn(
@@ -10664,8 +10800,8 @@ var Search = (0, import_react108.forwardRef)(
10664
10800
  ),
10665
10801
  style,
10666
10802
  children: [
10667
- /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)("div", { className: Search_default["input-group"], children: [
10668
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10803
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)("div", { className: Search_default["input-group"], children: [
10804
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10669
10805
  Icon,
10670
10806
  {
10671
10807
  icon: SearchIcon,
@@ -10673,7 +10809,7 @@ var Search = (0, import_react108.forwardRef)(
10673
10809
  className: cn(Input_default.icon, Search_default["search-icon"])
10674
10810
  }
10675
10811
  ),
10676
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10812
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10677
10813
  Input,
10678
10814
  {
10679
10815
  ...rest,
@@ -10700,8 +10836,8 @@ var Search = (0, import_react108.forwardRef)(
10700
10836
  )
10701
10837
  }
10702
10838
  ),
10703
- hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(import_jsx_runtime266.Fragment, { children: [
10704
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10839
+ hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(import_jsx_runtime270.Fragment, { children: [
10840
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10705
10841
  SearchSuggestions,
10706
10842
  {
10707
10843
  id: suggestionsId,
@@ -10713,9 +10849,9 @@ var Search = (0, import_react108.forwardRef)(
10713
10849
  componentSize
10714
10850
  }
10715
10851
  ),
10716
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10852
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10717
10853
  ] }),
10718
- hasValue && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10854
+ hasValue && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10719
10855
  Button,
10720
10856
  {
10721
10857
  icon: CloseSmallIcon,
@@ -10727,7 +10863,7 @@ var Search = (0, import_react108.forwardRef)(
10727
10863
  }
10728
10864
  )
10729
10865
  ] }),
10730
- showSearchButton && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10866
+ showSearchButton && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10731
10867
  Button,
10732
10868
  {
10733
10869
  size: componentSize,
@@ -10747,8 +10883,8 @@ var Search = (0, import_react108.forwardRef)(
10747
10883
  Search.displayName = "Search";
10748
10884
 
10749
10885
  // src/components/Search/SearchAutocompleteWrapper.tsx
10750
- var import_react109 = require("react");
10751
- var import_jsx_runtime267 = require("react/jsx-runtime");
10886
+ var import_react113 = require("react");
10887
+ var import_jsx_runtime271 = require("react/jsx-runtime");
10752
10888
  var SearchAutocompleteWrapper = (props) => {
10753
10889
  const {
10754
10890
  value,
@@ -10759,12 +10895,12 @@ var SearchAutocompleteWrapper = (props) => {
10759
10895
  onSuggestionSelection,
10760
10896
  children
10761
10897
  } = props;
10762
- const [inputValue, setInputValue] = (0, import_react109.useState)(value != null ? value : "");
10763
- const [suggestions, setSuggestions] = (0, import_react109.useState)([]);
10764
- const [showSuggestions, setShowSuggestions] = (0, import_react109.useState)(false);
10898
+ const [inputValue, setInputValue] = (0, import_react113.useState)(value != null ? value : "");
10899
+ const [suggestions, setSuggestions] = (0, import_react113.useState)([]);
10900
+ const [showSuggestions, setShowSuggestions] = (0, import_react113.useState)(false);
10765
10901
  const closeSuggestions = () => showSuggestions === true && setShowSuggestions(false);
10766
10902
  const openSuggestions = () => showSuggestions === false && setShowSuggestions(true);
10767
- (0, import_react109.useEffect)(() => {
10903
+ (0, import_react113.useEffect)(() => {
10768
10904
  if (suggestions.length > 0) {
10769
10905
  openSuggestions();
10770
10906
  } else {
@@ -10809,8 +10945,8 @@ var SearchAutocompleteWrapper = (props) => {
10809
10945
  const handleSetInputValue = (value2) => {
10810
10946
  setInputValue(value2 != null ? value2 : "");
10811
10947
  };
10812
- const inputRef = (0, import_react109.useRef)(null);
10813
- const suggestionsRef = (0, import_react109.useRef)(null);
10948
+ const inputRef = (0, import_react113.useRef)(null);
10949
+ const suggestionsRef = (0, import_react113.useRef)(null);
10814
10950
  useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
10815
10951
  closeSuggestions();
10816
10952
  });
@@ -10824,7 +10960,7 @@ var SearchAutocompleteWrapper = (props) => {
10824
10960
  inputValue,
10825
10961
  onSugggestionClick: handleSuggestionClick
10826
10962
  };
10827
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(AutocompleteSearchContext.Provider, { value: contextProps, children });
10963
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(AutocompleteSearchContext.Provider, { value: contextProps, children });
10828
10964
  };
10829
10965
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
10830
10966
 
@@ -10834,17 +10970,17 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
10834
10970
  Search2.Suggestions = SearchSuggestions;
10835
10971
 
10836
10972
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
10837
- var import_react112 = require("react");
10973
+ var import_react116 = require("react");
10838
10974
 
10839
10975
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
10840
- var import_react110 = require("react");
10841
- var CheckboxGroupContext = (0, import_react110.createContext)(null);
10976
+ var import_react114 = require("react");
10977
+ var CheckboxGroupContext = (0, import_react114.createContext)(null);
10842
10978
  var useCheckboxGroup = () => {
10843
- return (0, import_react110.useContext)(CheckboxGroupContext);
10979
+ return (0, import_react114.useContext)(CheckboxGroupContext);
10844
10980
  };
10845
10981
 
10846
10982
  // src/components/SelectionControl/SelectionControl.styles.tsx
10847
- var import_react111 = require("react");
10983
+ var import_react115 = require("react");
10848
10984
 
10849
10985
  // src/components/SelectionControl/SelectionControl.module.css
10850
10986
  var SelectionControl_default = {
@@ -10864,10 +11000,10 @@ var SelectionControl_default = {
10864
11000
  };
10865
11001
 
10866
11002
  // src/components/SelectionControl/SelectionControl.styles.tsx
10867
- var import_jsx_runtime268 = require("react/jsx-runtime");
10868
- var SelectionControl = (0, import_react111.forwardRef)((props, ref) => {
11003
+ var import_jsx_runtime272 = require("react/jsx-runtime");
11004
+ var SelectionControl = (0, import_react115.forwardRef)((props, ref) => {
10869
11005
  const { controlType, className, ...rest } = props;
10870
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11006
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
10871
11007
  "span",
10872
11008
  {
10873
11009
  ref,
@@ -10880,7 +11016,7 @@ var SelectionControl = (0, import_react111.forwardRef)((props, ref) => {
10880
11016
  }
10881
11017
  );
10882
11018
  });
10883
- var Label2 = (0, import_react111.forwardRef)(
11019
+ var Label2 = (0, import_react115.forwardRef)(
10884
11020
  (props, ref) => {
10885
11021
  const {
10886
11022
  disabled,
@@ -10891,7 +11027,7 @@ var Label2 = (0, import_react111.forwardRef)(
10891
11027
  className,
10892
11028
  ...rest
10893
11029
  } = props;
10894
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11030
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
10895
11031
  "label",
10896
11032
  {
10897
11033
  ref,
@@ -10922,8 +11058,8 @@ var selectionControlTypographyProps = {
10922
11058
  };
10923
11059
 
10924
11060
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
10925
- var import_jsx_runtime269 = require("react/jsx-runtime");
10926
- var Checkbox = (0, import_react112.forwardRef)(
11061
+ var import_jsx_runtime273 = require("react/jsx-runtime");
11062
+ var Checkbox = (0, import_react116.forwardRef)(
10927
11063
  (props, ref) => {
10928
11064
  const {
10929
11065
  id,
@@ -10938,7 +11074,7 @@ var Checkbox = (0, import_react112.forwardRef)(
10938
11074
  htmlProps = {},
10939
11075
  ...rest
10940
11076
  } = props;
10941
- const generatedId = (0, import_react112.useId)();
11077
+ const generatedId = (0, import_react116.useId)();
10942
11078
  const uniqueId = id != null ? id : `${generatedId}-checkbox`;
10943
11079
  const checkboxGroup = useCheckboxGroup();
10944
11080
  const hasLabel = !!label;
@@ -10950,7 +11086,7 @@ var Checkbox = (0, import_react112.forwardRef)(
10950
11086
  const isReadOnly = readOnly || (checkboxGroup == null ? void 0 : checkboxGroup.readOnly);
10951
11087
  const hasError = error || (checkboxGroup == null ? void 0 : checkboxGroup.error);
10952
11088
  const isDisabled = disabled || (checkboxGroup == null ? void 0 : checkboxGroup.disabled);
10953
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
11089
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
10954
11090
  Label2,
10955
11091
  {
10956
11092
  hasError,
@@ -10962,7 +11098,7 @@ var Checkbox = (0, import_react112.forwardRef)(
10962
11098
  className: cn(className, htmlPropsClassName),
10963
11099
  style,
10964
11100
  children: [
10965
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
11101
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
10966
11102
  "input",
10967
11103
  {
10968
11104
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -10992,14 +11128,14 @@ var Checkbox = (0, import_react112.forwardRef)(
10992
11128
  onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
10993
11129
  }
10994
11130
  ),
10995
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
11131
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
10996
11132
  SelectionControl,
10997
11133
  {
10998
11134
  controlType: "checkbox",
10999
11135
  className: focus_default["focus-styled-sibling"]
11000
11136
  }
11001
11137
  ),
11002
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(Typography, { ...selectionControlTypographyProps, children: label })
11138
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Typography, { ...selectionControlTypographyProps, children: label })
11003
11139
  ]
11004
11140
  }
11005
11141
  );
@@ -11008,8 +11144,8 @@ var Checkbox = (0, import_react112.forwardRef)(
11008
11144
  Checkbox.displayName = "Checkbox";
11009
11145
 
11010
11146
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
11011
- var import_react113 = require("react");
11012
- var import_jsx_runtime270 = require("react/jsx-runtime");
11147
+ var import_react117 = require("react");
11148
+ var import_jsx_runtime274 = require("react/jsx-runtime");
11013
11149
  var CheckboxGroup = (props) => {
11014
11150
  const {
11015
11151
  label,
@@ -11027,7 +11163,7 @@ var CheckboxGroup = (props) => {
11027
11163
  ...rest
11028
11164
  } = props;
11029
11165
  const { "aria-required": ariaRequired } = htmlProps;
11030
- const generatedId = (0, import_react113.useId)();
11166
+ const generatedId = (0, import_react117.useId)();
11031
11167
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
11032
11168
  const hasErrorMessage = !!errorMessage;
11033
11169
  const showRequiredMarker = required || ariaRequired;
@@ -11041,7 +11177,7 @@ var CheckboxGroup = (props) => {
11041
11177
  disabled,
11042
11178
  readOnly
11043
11179
  };
11044
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
11180
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
11045
11181
  "div",
11046
11182
  {
11047
11183
  ...getBaseHTMLProps(
@@ -11051,7 +11187,7 @@ var CheckboxGroup = (props) => {
11051
11187
  rest
11052
11188
  ),
11053
11189
  children: [
11054
- /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
11190
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
11055
11191
  Typography,
11056
11192
  {
11057
11193
  as: "span",
@@ -11059,15 +11195,15 @@ var CheckboxGroup = (props) => {
11059
11195
  id: uniqueGroupId,
11060
11196
  className: readOnly ? Label_default["read-only"] : void 0,
11061
11197
  children: [
11062
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11198
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11063
11199
  label,
11064
11200
  " ",
11065
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(RequiredMarker, {})
11201
+ showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(RequiredMarker, {})
11066
11202
  ]
11067
11203
  }
11068
11204
  ),
11069
11205
  renderInputMessage(tip, tipId),
11070
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
11206
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11071
11207
  "div",
11072
11208
  {
11073
11209
  role: "group",
@@ -11085,17 +11221,17 @@ var CheckboxGroup = (props) => {
11085
11221
  CheckboxGroup.displayName = "CheckboxGroup";
11086
11222
 
11087
11223
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
11088
- var import_react115 = require("react");
11224
+ var import_react119 = require("react");
11089
11225
 
11090
11226
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
11091
- var import_react114 = require("react");
11092
- var RadioButtonGroupContext = (0, import_react114.createContext)(null);
11227
+ var import_react118 = require("react");
11228
+ var RadioButtonGroupContext = (0, import_react118.createContext)(null);
11093
11229
  var useRadioButtonGroup = () => {
11094
- return (0, import_react114.useContext)(RadioButtonGroupContext);
11230
+ return (0, import_react118.useContext)(RadioButtonGroupContext);
11095
11231
  };
11096
11232
 
11097
11233
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
11098
- var import_jsx_runtime271 = require("react/jsx-runtime");
11234
+ var import_jsx_runtime275 = require("react/jsx-runtime");
11099
11235
  var isValueEqualToGroupValueOrFalsy = (value, group) => {
11100
11236
  if (typeof value !== "undefined" && value !== null && group) {
11101
11237
  if (typeof value === "number") {
@@ -11105,7 +11241,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group) => {
11105
11241
  }
11106
11242
  return !!value;
11107
11243
  };
11108
- var RadioButton = (0, import_react115.forwardRef)(
11244
+ var RadioButton = (0, import_react119.forwardRef)(
11109
11245
  (props, ref) => {
11110
11246
  const {
11111
11247
  id,
@@ -11129,7 +11265,7 @@ var RadioButton = (0, import_react115.forwardRef)(
11129
11265
  style,
11130
11266
  ...restHtmlProps
11131
11267
  } = htmlProps;
11132
- const generatedId = (0, import_react115.useId)();
11268
+ const generatedId = (0, import_react119.useId)();
11133
11269
  const uniqueId = id != null ? id : `${generatedId}-radioButton`;
11134
11270
  const hasLabel = !!label;
11135
11271
  const radioButtonGroup = useRadioButtonGroup();
@@ -11144,7 +11280,7 @@ var RadioButton = (0, import_react115.forwardRef)(
11144
11280
  const isReadOnly = readOnly || (radioButtonGroup == null ? void 0 : radioButtonGroup.readOnly);
11145
11281
  const isDisabled = disabled || (radioButtonGroup == null ? void 0 : radioButtonGroup.disabled);
11146
11282
  const hasError = error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error);
11147
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
11283
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
11148
11284
  Label2,
11149
11285
  {
11150
11286
  hasError,
@@ -11156,7 +11292,7 @@ var RadioButton = (0, import_react115.forwardRef)(
11156
11292
  htmlFor: uniqueId,
11157
11293
  controlType: "radio",
11158
11294
  children: [
11159
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
11295
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11160
11296
  "input",
11161
11297
  {
11162
11298
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -11182,14 +11318,14 @@ var RadioButton = (0, import_react115.forwardRef)(
11182
11318
  onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
11183
11319
  }
11184
11320
  ),
11185
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
11321
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11186
11322
  SelectionControl,
11187
11323
  {
11188
11324
  controlType: "radio",
11189
11325
  className: focus_default["focus-styled-sibling"]
11190
11326
  }
11191
11327
  ),
11192
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
11328
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
11193
11329
  ]
11194
11330
  }
11195
11331
  );
@@ -11198,8 +11334,8 @@ var RadioButton = (0, import_react115.forwardRef)(
11198
11334
  RadioButton.displayName = "RadioButton";
11199
11335
 
11200
11336
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
11201
- var import_react116 = require("react");
11202
- var import_jsx_runtime272 = require("react/jsx-runtime");
11337
+ var import_react120 = require("react");
11338
+ var import_jsx_runtime276 = require("react/jsx-runtime");
11203
11339
  var RadioButtonGroupInner = (props, ref) => {
11204
11340
  const {
11205
11341
  name,
@@ -11220,8 +11356,8 @@ var RadioButtonGroupInner = (props, ref) => {
11220
11356
  ...rest
11221
11357
  } = props;
11222
11358
  const { "aria-required": ariaRequired = false } = htmlProps;
11223
- const [groupValue, setGroupValue] = (0, import_react116.useState)(value);
11224
- const generatedId = (0, import_react116.useId)();
11359
+ const [groupValue, setGroupValue] = (0, import_react120.useState)(value);
11360
+ const generatedId = (0, import_react120.useId)();
11225
11361
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-radioButtonGroup`;
11226
11362
  const handleChange = combineHandlers(
11227
11363
  (e) => setGroupValue(e.target.value),
@@ -11241,7 +11377,7 @@ var RadioButtonGroupInner = (props, ref) => {
11241
11377
  value: groupValue,
11242
11378
  onChange: handleChange
11243
11379
  };
11244
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
11380
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
11245
11381
  "div",
11246
11382
  {
11247
11383
  ...getBaseHTMLProps(
@@ -11252,7 +11388,7 @@ var RadioButtonGroupInner = (props, ref) => {
11252
11388
  ),
11253
11389
  ref,
11254
11390
  children: [
11255
- /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
11391
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
11256
11392
  Typography,
11257
11393
  {
11258
11394
  as: "span",
@@ -11260,15 +11396,15 @@ var RadioButtonGroupInner = (props, ref) => {
11260
11396
  id: uniqueGroupId,
11261
11397
  className: readOnly ? Label_default["read-only"] : void 0,
11262
11398
  children: [
11263
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11399
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11264
11400
  label,
11265
11401
  " ",
11266
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(RequiredMarker, {})
11402
+ showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(RequiredMarker, {})
11267
11403
  ]
11268
11404
  }
11269
11405
  ),
11270
11406
  renderInputMessage(tip, tipId),
11271
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
11407
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11272
11408
  "div",
11273
11409
  {
11274
11410
  role: "radiogroup",
@@ -11284,11 +11420,11 @@ var RadioButtonGroupInner = (props, ref) => {
11284
11420
  }
11285
11421
  );
11286
11422
  };
11287
- var RadioButtonGroup = (0, import_react116.forwardRef)(RadioButtonGroupInner);
11423
+ var RadioButtonGroup = (0, import_react120.forwardRef)(RadioButtonGroupInner);
11288
11424
  RadioButtonGroup.displayName = "RadioButtonGroup";
11289
11425
 
11290
11426
  // src/components/Skeleton/Skeleton.tsx
11291
- var import_react117 = require("react");
11427
+ var import_react121 = require("react");
11292
11428
 
11293
11429
  // src/components/Skeleton/Skeleton.module.css
11294
11430
  var Skeleton_default = {
@@ -11297,8 +11433,8 @@ var Skeleton_default = {
11297
11433
  };
11298
11434
 
11299
11435
  // src/components/Skeleton/Skeleton.tsx
11300
- var import_jsx_runtime273 = require("react/jsx-runtime");
11301
- var Skeleton = (0, import_react117.forwardRef)(
11436
+ var import_jsx_runtime277 = require("react/jsx-runtime");
11437
+ var Skeleton = (0, import_react121.forwardRef)(
11302
11438
  (props, ref) => {
11303
11439
  const {
11304
11440
  width,
@@ -11308,7 +11444,7 @@ var Skeleton = (0, import_react117.forwardRef)(
11308
11444
  style,
11309
11445
  ...rest
11310
11446
  } = props;
11311
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
11447
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
11312
11448
  "div",
11313
11449
  {
11314
11450
  ref,
@@ -11322,7 +11458,7 @@ var Skeleton = (0, import_react117.forwardRef)(
11322
11458
  Skeleton.displayName = "Skeleton";
11323
11459
 
11324
11460
  // src/components/SkipToContent/SkipToContent.tsx
11325
- var import_react118 = require("react");
11461
+ var import_react122 = require("react");
11326
11462
 
11327
11463
  // src/components/SkipToContent/SkipToContent.module.css
11328
11464
  var SkipToContent_default = {
@@ -11331,8 +11467,8 @@ var SkipToContent_default = {
11331
11467
  };
11332
11468
 
11333
11469
  // src/components/SkipToContent/SkipToContent.tsx
11334
- var import_jsx_runtime274 = require("react/jsx-runtime");
11335
- var SkipToContent = (0, import_react118.forwardRef)(
11470
+ var import_jsx_runtime278 = require("react/jsx-runtime");
11471
+ var SkipToContent = (0, import_react122.forwardRef)(
11336
11472
  (props, ref) => {
11337
11473
  const {
11338
11474
  text = "Til hovedinnhold",
@@ -11347,12 +11483,12 @@ var SkipToContent = (0, import_react118.forwardRef)(
11347
11483
  style,
11348
11484
  ...restHtmlProps
11349
11485
  } = htmlProps;
11350
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11486
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11351
11487
  "div",
11352
11488
  {
11353
11489
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
11354
11490
  style: { ...style, top },
11355
- children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11491
+ children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11356
11492
  Link,
11357
11493
  {
11358
11494
  ...getBaseHTMLProps(id, restHtmlProps, rest),
@@ -11369,7 +11505,7 @@ var SkipToContent = (0, import_react118.forwardRef)(
11369
11505
  SkipToContent.displayName = "SkipToContent";
11370
11506
 
11371
11507
  // src/components/SplitButton/SplitButton.tsx
11372
- var import_react119 = require("react");
11508
+ var import_react123 = require("react");
11373
11509
 
11374
11510
  // src/components/SplitButton/SplitButton.module.css
11375
11511
  var SplitButton_default = {
@@ -11380,8 +11516,8 @@ var SplitButton_default = {
11380
11516
  };
11381
11517
 
11382
11518
  // src/components/SplitButton/SplitButton.tsx
11383
- var import_jsx_runtime275 = require("react/jsx-runtime");
11384
- var SplitButton = (0, import_react119.forwardRef)(
11519
+ var import_jsx_runtime279 = require("react/jsx-runtime");
11520
+ var SplitButton = (0, import_react123.forwardRef)(
11385
11521
  (props, ref) => {
11386
11522
  const {
11387
11523
  size: size2,
@@ -11391,13 +11527,13 @@ var SplitButton = (0, import_react119.forwardRef)(
11391
11527
  className,
11392
11528
  ...rest
11393
11529
  } = props;
11394
- const [isOpen, setIsOpen] = (0, import_react119.useState)(false);
11530
+ const [isOpen, setIsOpen] = (0, import_react123.useState)(false);
11395
11531
  const buttonStyleProps = {
11396
11532
  purpose,
11397
11533
  size: size2
11398
11534
  };
11399
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
11400
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11535
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
11536
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
11401
11537
  Button,
11402
11538
  {
11403
11539
  ...buttonStyleProps,
@@ -11406,8 +11542,8 @@ var SplitButton = (0, import_react119.forwardRef)(
11406
11542
  className: SplitButton_default.main
11407
11543
  }
11408
11544
  ),
11409
- /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
11410
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11545
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
11546
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
11411
11547
  Button,
11412
11548
  {
11413
11549
  ...buttonStyleProps,
@@ -11420,7 +11556,7 @@ var SplitButton = (0, import_react119.forwardRef)(
11420
11556
  )
11421
11557
  }
11422
11558
  ),
11423
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(OverflowMenuList, { children: secondaryActions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(OverflowMenuButton, { ...item, children: item.children })) }) })
11559
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(OverflowMenuList, { children: secondaryActions.map((item) => /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(OverflowMenuButton, { ...item, children: item.children })) }) })
11424
11560
  ] })
11425
11561
  ] });
11426
11562
  }
@@ -11428,41 +11564,41 @@ var SplitButton = (0, import_react119.forwardRef)(
11428
11564
  SplitButton.displayName = "SplitButton";
11429
11565
 
11430
11566
  // src/components/Table/collapsible/CollapsibleRow.tsx
11431
- var import_react129 = require("react");
11567
+ var import_react133 = require("react");
11432
11568
 
11433
11569
  // src/components/Table/collapsible/Table.context.tsx
11434
- var import_react120 = require("react");
11435
- var CollapsibleTableContext = (0, import_react120.createContext)({
11570
+ var import_react124 = require("react");
11571
+ var CollapsibleTableContext = (0, import_react124.createContext)({
11436
11572
  headerValues: [],
11437
11573
  definingColumnIndex: [0]
11438
11574
  });
11439
- var useCollapsibleTableContext = () => (0, import_react120.useContext)(CollapsibleTableContext);
11575
+ var useCollapsibleTableContext = () => (0, import_react124.useContext)(CollapsibleTableContext);
11440
11576
 
11441
11577
  // src/components/Table/normal/Body.tsx
11442
- var import_react121 = require("react");
11443
- var import_jsx_runtime276 = require("react/jsx-runtime");
11444
- var Body = (0, import_react121.forwardRef)(
11578
+ var import_react125 = require("react");
11579
+ var import_jsx_runtime280 = require("react/jsx-runtime");
11580
+ var Body = (0, import_react125.forwardRef)(
11445
11581
  (props, ref) => {
11446
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("tbody", { ref, ...props });
11582
+ return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("tbody", { ref, ...props });
11447
11583
  }
11448
11584
  );
11449
11585
  Body.displayName = "Table.Body";
11450
11586
 
11451
11587
  // src/components/Table/normal/Cell.tsx
11452
- var import_react123 = require("react");
11588
+ var import_react127 = require("react");
11453
11589
 
11454
11590
  // src/components/Table/normal/Head.tsx
11455
- var import_react122 = require("react");
11456
- var import_jsx_runtime277 = require("react/jsx-runtime");
11457
- var Head = (0, import_react122.forwardRef)(
11591
+ var import_react126 = require("react");
11592
+ var import_jsx_runtime281 = require("react/jsx-runtime");
11593
+ var Head = (0, import_react126.forwardRef)(
11458
11594
  ({ children, ...rest }, ref) => {
11459
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("thead", { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(HeadContext.Provider, { value: true, children }) });
11595
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)("thead", { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(HeadContext.Provider, { value: true, children }) });
11460
11596
  }
11461
11597
  );
11462
11598
  Head.displayName = "Table.Head";
11463
- var HeadContext = (0, import_react122.createContext)(false);
11599
+ var HeadContext = (0, import_react126.createContext)(false);
11464
11600
  function useIsInTableHead() {
11465
- const isInTableHead = (0, import_react122.useContext)(HeadContext);
11601
+ const isInTableHead = (0, import_react126.useContext)(HeadContext);
11466
11602
  return isInTableHead;
11467
11603
  }
11468
11604
 
@@ -11492,8 +11628,8 @@ var Table_default = {
11492
11628
  };
11493
11629
 
11494
11630
  // src/components/Table/normal/Cell.tsx
11495
- var import_jsx_runtime278 = require("react/jsx-runtime");
11496
- var Cell = (0, import_react123.forwardRef)(
11631
+ var import_jsx_runtime282 = require("react/jsx-runtime");
11632
+ var Cell = (0, import_react127.forwardRef)(
11497
11633
  ({
11498
11634
  children,
11499
11635
  type: _type,
@@ -11506,7 +11642,7 @@ var Cell = (0, import_react123.forwardRef)(
11506
11642
  const type = _type != null ? _type : isInHead ? "head" : "data";
11507
11643
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
11508
11644
  const isComplexLayout = layout === "text and icon";
11509
- return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11645
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
11510
11646
  "th",
11511
11647
  {
11512
11648
  ref,
@@ -11516,15 +11652,15 @@ var Cell = (0, import_react123.forwardRef)(
11516
11652
  !isComplexLayout && Table_default[`cell--${layout}`],
11517
11653
  Table_default["cell--head"]
11518
11654
  ),
11519
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("div", { className: Table_default.cell__inner, children }) : children
11655
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)("div", { className: Table_default.cell__inner, children }) : children
11520
11656
  }
11521
- ) : /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11657
+ ) : /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
11522
11658
  "td",
11523
11659
  {
11524
11660
  ref,
11525
11661
  ...rest,
11526
11662
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
11527
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("div", { className: Table_default.cell__inner, children }) : children
11663
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)("div", { className: Table_default.cell__inner, children }) : children
11528
11664
  }
11529
11665
  );
11530
11666
  }
@@ -11532,23 +11668,23 @@ var Cell = (0, import_react123.forwardRef)(
11532
11668
  Cell.displayName = "Table.Cell";
11533
11669
 
11534
11670
  // src/components/Table/normal/Foot.tsx
11535
- var import_react124 = require("react");
11536
- var import_jsx_runtime279 = require("react/jsx-runtime");
11537
- var Foot = (0, import_react124.forwardRef)(
11671
+ var import_react128 = require("react");
11672
+ var import_jsx_runtime283 = require("react/jsx-runtime");
11673
+ var Foot = (0, import_react128.forwardRef)(
11538
11674
  (props, ref) => {
11539
- return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("tfoot", { ref, ...props });
11675
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)("tfoot", { ref, ...props });
11540
11676
  }
11541
11677
  );
11542
11678
  Foot.displayName = "Table.Foot";
11543
11679
 
11544
11680
  // src/components/Table/normal/Row.tsx
11545
- var import_react125 = require("react");
11546
- var import_jsx_runtime280 = require("react/jsx-runtime");
11547
- var Row = (0, import_react125.forwardRef)(
11681
+ var import_react129 = require("react");
11682
+ var import_jsx_runtime284 = require("react/jsx-runtime");
11683
+ var Row = (0, import_react129.forwardRef)(
11548
11684
  ({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
11549
11685
  const isInHeader = useIsInTableHead();
11550
11686
  const type = _type != null ? _type : isInHeader ? "head" : "body";
11551
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
11687
+ return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11552
11688
  "tr",
11553
11689
  {
11554
11690
  ref,
@@ -11571,23 +11707,23 @@ var Row = (0, import_react125.forwardRef)(
11571
11707
  Row.displayName = "Table.Row";
11572
11708
 
11573
11709
  // src/components/Table/normal/SortCell.tsx
11574
- var import_react126 = require("react");
11575
- var import_jsx_runtime281 = require("react/jsx-runtime");
11710
+ var import_react130 = require("react");
11711
+ var import_jsx_runtime285 = require("react/jsx-runtime");
11576
11712
  var makeSortIcon = (isSorted, sortOrder) => {
11577
11713
  if (!isSorted || !sortOrder) {
11578
- return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
11714
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
11579
11715
  }
11580
- return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
11716
+ return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
11581
11717
  };
11582
- var SortCell = (0, import_react126.forwardRef)(
11583
- ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
11718
+ var SortCell = (0, import_react130.forwardRef)(
11719
+ ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
11584
11720
  Cell,
11585
11721
  {
11586
11722
  ref,
11587
11723
  type: "head",
11588
11724
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
11589
11725
  ...rest,
11590
- children: /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
11726
+ children: /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(
11591
11727
  "button",
11592
11728
  {
11593
11729
  onClick,
@@ -11611,9 +11747,9 @@ var SortCell = (0, import_react126.forwardRef)(
11611
11747
  SortCell.displayName = "Table.SortCell";
11612
11748
 
11613
11749
  // src/components/Table/normal/Table.tsx
11614
- var import_react127 = require("react");
11615
- var import_jsx_runtime282 = require("react/jsx-runtime");
11616
- function getDensityCn(value) {
11750
+ var import_react131 = require("react");
11751
+ var import_jsx_runtime286 = require("react/jsx-runtime");
11752
+ function getDensityCn2(value) {
11617
11753
  switch (value) {
11618
11754
  case "normal":
11619
11755
  case "compact":
@@ -11622,7 +11758,7 @@ function getDensityCn(value) {
11622
11758
  return "extra-compact";
11623
11759
  }
11624
11760
  }
11625
- var Table = (0, import_react127.forwardRef)(
11761
+ var Table = (0, import_react131.forwardRef)(
11626
11762
  ({
11627
11763
  density = "normal",
11628
11764
  stickyHeader,
@@ -11631,7 +11767,7 @@ var Table = (0, import_react127.forwardRef)(
11631
11767
  children,
11632
11768
  ...rest
11633
11769
  }, ref) => {
11634
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
11770
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
11635
11771
  "table",
11636
11772
  {
11637
11773
  ref,
@@ -11639,7 +11775,7 @@ var Table = (0, import_react127.forwardRef)(
11639
11775
  className: cn(
11640
11776
  className,
11641
11777
  Table_default.table,
11642
- Table_default[`table--${getDensityCn(density)}`],
11778
+ Table_default[`table--${getDensityCn2(density)}`],
11643
11779
  withDividers && Table_default["table--with-dividers"],
11644
11780
  stickyHeader && Table_default["table--sticky-header"],
11645
11781
  scrollbar
@@ -11652,30 +11788,30 @@ var Table = (0, import_react127.forwardRef)(
11652
11788
  Table.displayName = "Table";
11653
11789
 
11654
11790
  // src/components/Table/normal/TableWrapper.tsx
11655
- var import_react128 = require("react");
11656
- var import_jsx_runtime283 = require("react/jsx-runtime");
11791
+ var import_react132 = require("react");
11792
+ var import_jsx_runtime287 = require("react/jsx-runtime");
11657
11793
  var TableWrapper = ({ className, ...rest }) => {
11658
- const [overflowX, setOverflowX] = (0, import_react128.useState)(false);
11659
- const [windowWidth, setWindowWidth] = (0, import_react128.useState)(window.innerWidth);
11794
+ const [overflowX, setOverflowX] = (0, import_react132.useState)(false);
11795
+ const [windowWidth, setWindowWidth] = (0, import_react132.useState)(window.innerWidth);
11660
11796
  function isOverflowingX(event) {
11661
11797
  return event.offsetWidth < event.scrollWidth;
11662
11798
  }
11663
- const wrapperRef = (0, import_react128.useRef)(null);
11664
- (0, import_react128.useEffect)(() => {
11799
+ const wrapperRef = (0, import_react132.useRef)(null);
11800
+ (0, import_react132.useEffect)(() => {
11665
11801
  if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
11666
11802
  setOverflowX(true);
11667
11803
  return;
11668
11804
  }
11669
11805
  setOverflowX(false);
11670
11806
  }, [windowWidth]);
11671
- (0, import_react128.useEffect)(() => {
11807
+ (0, import_react132.useEffect)(() => {
11672
11808
  function handleResize() {
11673
11809
  setWindowWidth(window.innerWidth);
11674
11810
  }
11675
11811
  window.addEventListener("resize", handleResize);
11676
11812
  return () => window.removeEventListener("resize", handleResize);
11677
11813
  });
11678
- return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
11814
+ return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
11679
11815
  "div",
11680
11816
  {
11681
11817
  ref: wrapperRef,
@@ -11702,8 +11838,8 @@ Table2.Row = Row;
11702
11838
  Table2.Foot = Foot;
11703
11839
 
11704
11840
  // src/components/Table/collapsible/CollapsibleRow.tsx
11705
- var import_jsx_runtime284 = require("react/jsx-runtime");
11706
- var CollapsibleRow = (0, import_react129.forwardRef)(
11841
+ var import_jsx_runtime288 = require("react/jsx-runtime");
11842
+ var CollapsibleRow = (0, import_react133.forwardRef)(
11707
11843
  ({
11708
11844
  type: _type,
11709
11845
  className,
@@ -11716,8 +11852,8 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11716
11852
  const isInHead = useIsInTableHead();
11717
11853
  const type = _type != null ? _type : isInHead ? "head" : "body";
11718
11854
  const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
11719
- const [childrenCollapsed, setChildrenCollapsed] = (0, import_react129.useState)(true);
11720
- (0, import_react129.useEffect)(() => {
11855
+ const [childrenCollapsed, setChildrenCollapsed] = (0, import_react133.useState)(true);
11856
+ (0, import_react133.useEffect)(() => {
11721
11857
  !isCollapsed && setChildrenCollapsed(true);
11722
11858
  }, [isCollapsed]);
11723
11859
  const rowProps = (isOpenCollapsibleHeader) => {
@@ -11735,7 +11871,7 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11735
11871
  const collapsedHeaderValues = headerValues.filter(
11736
11872
  (column2, index) => definingColumnIndex.indexOf(index) === -1
11737
11873
  );
11738
- const childrenArray = import_react129.Children.toArray(children);
11874
+ const childrenArray = import_react133.Children.toArray(children);
11739
11875
  const collapsedChildren = childrenArray.filter(
11740
11876
  (column2, index) => definingColumnIndex.indexOf(index) === -1
11741
11877
  );
@@ -11744,33 +11880,33 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11744
11880
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
11745
11881
  const id = derivativeIdGenerator(prefix3, index.toString());
11746
11882
  collapsibleIds.push(id);
11747
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_react129.Fragment, { children: [
11748
- /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11749
- (0, import_react129.isValidElement)(child) && (0, import_react129.cloneElement)(child, {
11883
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(import_react133.Fragment, { children: [
11884
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11885
+ (0, import_react133.isValidElement)(child) && (0, import_react133.cloneElement)(child, {
11750
11886
  collapsibleProps: { isCollapsibleChild: true }
11751
11887
  })
11752
11888
  ] }, `DL-${index}`);
11753
11889
  }) : null;
11754
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
11890
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
11755
11891
  const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
11756
11892
  return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
11757
11893
  });
11758
11894
  const headerRow = () => {
11759
11895
  if (type !== "head" || !isCollapsed) return null;
11760
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_jsx_runtime284.Fragment, { children: [
11896
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(import_jsx_runtime288.Fragment, { children: [
11761
11897
  definingColumnCells,
11762
- /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
11898
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
11763
11899
  "Utvid",
11764
- /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(VisuallyHidden, { as: "span", children: "raden" })
11900
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(VisuallyHidden, { as: "span", children: "raden" })
11765
11901
  ] })
11766
11902
  ] }) });
11767
11903
  };
11768
11904
  const idList = spaceSeparatedIdListGenerator(collapsibleIds);
11769
11905
  const rowWithChevron = () => {
11770
11906
  if (type !== "body" || !isCollapsed) return null;
11771
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11907
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11772
11908
  definingColumnCells,
11773
- /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11909
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11774
11910
  "button",
11775
11911
  {
11776
11912
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
@@ -11782,7 +11918,7 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11782
11918
  utilStyles_default["remove-button-styling"],
11783
11919
  focusable
11784
11920
  ),
11785
- children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11921
+ children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11786
11922
  AnimatedChevronUpDown,
11787
11923
  {
11788
11924
  isUp: childrenCollapsed ? false : true,
@@ -11794,28 +11930,28 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11794
11930
  ) })
11795
11931
  ] });
11796
11932
  };
11797
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_jsx_runtime284.Fragment, { children: [
11933
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(import_jsx_runtime288.Fragment, { children: [
11798
11934
  headerRow(),
11799
- type === "body" && /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_jsx_runtime284.Fragment, { children: [
11935
+ type === "body" && /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(import_jsx_runtime288.Fragment, { children: [
11800
11936
  rowWithChevron(),
11801
11937
  childrenCollapsed ? null : collapsedRows
11802
11938
  ] })
11803
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Row, { ref, ...rowProps(), children });
11939
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Row, { ref, ...rowProps(), children });
11804
11940
  }
11805
11941
  );
11806
11942
  CollapsibleRow.displayName = "CollapsibleTable.Row";
11807
11943
 
11808
11944
  // src/components/Table/collapsible/CollapsibleTable.tsx
11809
- var import_react130 = require("react");
11810
- var import_jsx_runtime285 = require("react/jsx-runtime");
11811
- var CollapsibleTable = (0, import_react130.forwardRef)((props, ref) => {
11945
+ var import_react134 = require("react");
11946
+ var import_jsx_runtime289 = require("react/jsx-runtime");
11947
+ var CollapsibleTable = (0, import_react134.forwardRef)((props, ref) => {
11812
11948
  const {
11813
11949
  isCollapsed,
11814
11950
  headerValues,
11815
11951
  definingColumnIndex = [0],
11816
11952
  ...rest
11817
11953
  } = props;
11818
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
11954
+ return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11819
11955
  CollapsibleTableContext.Provider,
11820
11956
  {
11821
11957
  value: {
@@ -11823,7 +11959,7 @@ var CollapsibleTable = (0, import_react130.forwardRef)((props, ref) => {
11823
11959
  headerValues,
11824
11960
  definingColumnIndex
11825
11961
  },
11826
- children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Table2, { ref, ...rest })
11962
+ children: /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(Table2, { ref, ...rest })
11827
11963
  }
11828
11964
  );
11829
11965
  });
@@ -11834,11 +11970,11 @@ var CollapsibleTable2 = CollapsibleTable;
11834
11970
  CollapsibleTable2.Row = CollapsibleRow;
11835
11971
 
11836
11972
  // src/components/Tabs/Tabs.tsx
11837
- var import_react132 = require("react");
11973
+ var import_react136 = require("react");
11838
11974
 
11839
11975
  // src/components/Tabs/Tabs.context.tsx
11840
- var import_react131 = require("react");
11841
- var TabsContext = (0, import_react131.createContext)({
11976
+ var import_react135 = require("react");
11977
+ var TabsContext = (0, import_react135.createContext)({
11842
11978
  activeTab: 0,
11843
11979
  tabsId: "",
11844
11980
  handleTabChange: () => null,
@@ -11848,7 +11984,7 @@ var TabsContext = (0, import_react131.createContext)({
11848
11984
  setHasTabFocus: () => null,
11849
11985
  tabContentDirection: "row"
11850
11986
  });
11851
- var useTabsContext = () => (0, import_react131.useContext)(TabsContext);
11987
+ var useTabsContext = () => (0, import_react135.useContext)(TabsContext);
11852
11988
 
11853
11989
  // src/components/Tabs/Tabs.module.css
11854
11990
  var Tabs_default = {
@@ -11865,8 +12001,8 @@ var Tabs_default = {
11865
12001
  };
11866
12002
 
11867
12003
  // src/components/Tabs/Tabs.tsx
11868
- var import_jsx_runtime286 = require("react/jsx-runtime");
11869
- var Tabs = (0, import_react132.forwardRef)((props, ref) => {
12004
+ var import_jsx_runtime290 = require("react/jsx-runtime");
12005
+ var Tabs = (0, import_react136.forwardRef)((props, ref) => {
11870
12006
  const {
11871
12007
  id,
11872
12008
  activeTab,
@@ -11878,17 +12014,17 @@ var Tabs = (0, import_react132.forwardRef)((props, ref) => {
11878
12014
  htmlProps,
11879
12015
  ...rest
11880
12016
  } = props;
11881
- const generatedId = (0, import_react132.useId)();
12017
+ const generatedId = (0, import_react136.useId)();
11882
12018
  const uniqueId = id != null ? id : `${generatedId}-tabs`;
11883
- const [thisActiveTab, setActiveTab] = (0, import_react132.useState)(activeTab != null ? activeTab : 0);
11884
- const [hasTabFocus, setHasTabFocus] = (0, import_react132.useState)(false);
11885
- const tabListRef = (0, import_react132.useRef)(null);
11886
- const tabPanelsRef = (0, import_react132.useRef)(null);
12019
+ const [thisActiveTab, setActiveTab] = (0, import_react136.useState)(activeTab != null ? activeTab : 0);
12020
+ const [hasTabFocus, setHasTabFocus] = (0, import_react136.useState)(false);
12021
+ const tabListRef = (0, import_react136.useRef)(null);
12022
+ const tabPanelsRef = (0, import_react136.useRef)(null);
11887
12023
  const handleTabChange = (index) => {
11888
12024
  setActiveTab(index);
11889
12025
  onChange && onChange(index);
11890
12026
  };
11891
- (0, import_react132.useEffect)(() => {
12027
+ (0, import_react136.useEffect)(() => {
11892
12028
  if (activeTab !== void 0 && activeTab !== thisActiveTab) {
11893
12029
  setActiveTab(activeTab);
11894
12030
  }
@@ -11897,7 +12033,7 @@ var Tabs = (0, import_react132.forwardRef)((props, ref) => {
11897
12033
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11898
12034
  ["--dds-tabs-width"]: width
11899
12035
  };
11900
- return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
12036
+ return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11901
12037
  TabsContext.Provider,
11902
12038
  {
11903
12039
  value: {
@@ -11910,7 +12046,7 @@ var Tabs = (0, import_react132.forwardRef)((props, ref) => {
11910
12046
  setHasTabFocus,
11911
12047
  tabContentDirection
11912
12048
  },
11913
- children: /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
12049
+ children: /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11914
12050
  "div",
11915
12051
  {
11916
12052
  ref,
@@ -11930,17 +12066,17 @@ var Tabs = (0, import_react132.forwardRef)((props, ref) => {
11930
12066
  Tabs.displayName = "Tabs";
11931
12067
 
11932
12068
  // src/components/Tabs/Tab.tsx
11933
- var import_react134 = require("react");
12069
+ var import_react138 = require("react");
11934
12070
 
11935
12071
  // src/components/Tabs/TabWidthContext.tsx
11936
- var import_react133 = require("react");
11937
- var import_jsx_runtime287 = require("react/jsx-runtime");
11938
- var TabContext = (0, import_react133.createContext)(null);
12072
+ var import_react137 = require("react");
12073
+ var import_jsx_runtime291 = require("react/jsx-runtime");
12074
+ var TabContext = (0, import_react137.createContext)(null);
11939
12075
  function TabWidthContextProvider({
11940
12076
  children,
11941
12077
  onChangeWidths
11942
12078
  }) {
11943
- return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
12079
+ return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
11944
12080
  TabContext.Provider,
11945
12081
  {
11946
12082
  value: {
@@ -11964,16 +12100,16 @@ function TabWidthContextProvider({
11964
12100
  );
11965
12101
  }
11966
12102
  function useSetTabWidth(index, width) {
11967
- const context = (0, import_react133.useContext)(TabContext);
11968
- (0, import_react133.useLayoutEffect)(() => {
12103
+ const context = (0, import_react137.useContext)(TabContext);
12104
+ (0, import_react137.useLayoutEffect)(() => {
11969
12105
  context == null ? void 0 : context.updateWidth(index, width);
11970
12106
  return () => context == null ? void 0 : context.removeTab(index);
11971
12107
  }, [index, width]);
11972
12108
  }
11973
12109
 
11974
12110
  // src/components/Tabs/Tab.tsx
11975
- var import_jsx_runtime288 = require("react/jsx-runtime");
11976
- var Tab = (0, import_react134.forwardRef)((props, ref) => {
12111
+ var import_jsx_runtime292 = require("react/jsx-runtime");
12112
+ var Tab = (0, import_react138.forwardRef)((props, ref) => {
11977
12113
  const {
11978
12114
  active = false,
11979
12115
  icon,
@@ -11990,16 +12126,16 @@ var Tab = (0, import_react134.forwardRef)((props, ref) => {
11990
12126
  ...rest
11991
12127
  } = props;
11992
12128
  useSetTabWidth(index, width);
11993
- const itemRef = (0, import_react134.useRef)(null);
12129
+ const itemRef = (0, import_react138.useRef)(null);
11994
12130
  const combinedRef = useCombinedRef(ref, itemRef);
11995
12131
  const { tabContentDirection } = useTabsContext();
11996
- (0, import_react134.useEffect)(() => {
12132
+ (0, import_react138.useEffect)(() => {
11997
12133
  var _a;
11998
12134
  if (focus) {
11999
12135
  (_a = itemRef.current) == null ? void 0 : _a.focus();
12000
12136
  }
12001
12137
  }, [focus]);
12002
- const handleSelect = (0, import_react134.useCallback)(() => {
12138
+ const handleSelect = (0, import_react138.useCallback)(() => {
12003
12139
  if (setFocus && index) {
12004
12140
  setFocus(index);
12005
12141
  }
@@ -12012,7 +12148,7 @@ var Tab = (0, import_react134.forwardRef)((props, ref) => {
12012
12148
  handleSelect();
12013
12149
  onKeyDown && onKeyDown(e);
12014
12150
  };
12015
- return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
12151
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(
12016
12152
  "button",
12017
12153
  {
12018
12154
  ...getBaseHTMLProps(
@@ -12035,8 +12171,8 @@ var Tab = (0, import_react134.forwardRef)((props, ref) => {
12035
12171
  onKeyDown: handleOnKeyDown,
12036
12172
  tabIndex: focus ? 0 : -1,
12037
12173
  children: [
12038
- icon && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Icon, { icon, iconSize: "inherit" }),
12039
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("span", { children })
12174
+ icon && /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Icon, { icon, iconSize: "inherit" }),
12175
+ /* @__PURE__ */ (0, import_jsx_runtime292.jsx)("span", { children })
12040
12176
  ]
12041
12177
  }
12042
12178
  );
@@ -12044,9 +12180,9 @@ var Tab = (0, import_react134.forwardRef)((props, ref) => {
12044
12180
  Tab.displayName = "Tab";
12045
12181
 
12046
12182
  // src/components/Tabs/TabList.tsx
12047
- var import_react135 = require("react");
12048
- var import_jsx_runtime289 = require("react/jsx-runtime");
12049
- var TabList = (0, import_react135.forwardRef)(
12183
+ var import_react139 = require("react");
12184
+ var import_jsx_runtime293 = require("react/jsx-runtime");
12185
+ var TabList = (0, import_react139.forwardRef)(
12050
12186
  ({ children, id, style, onFocus, ...rest }, ref) => {
12051
12187
  const {
12052
12188
  activeTab,
@@ -12057,11 +12193,11 @@ var TabList = (0, import_react135.forwardRef)(
12057
12193
  setHasTabFocus
12058
12194
  } = useTabsContext();
12059
12195
  const uniqueId = id != null ? id : `${tabsId}-tablist`;
12060
- const childrenArray = import_react135.Children.toArray(children).length;
12196
+ const childrenArray = import_react139.Children.toArray(children).length;
12061
12197
  const [focus, setFocus] = useRoveFocus(childrenArray, hasTabFocus, "row");
12062
12198
  const combinedRef = useCombinedRef(ref, tabListRef);
12063
- const tabListChildren = import_react135.Children.map(children, (child, index) => {
12064
- return (0, import_react135.isValidElement)(child) && (0, import_react135.cloneElement)(child, {
12199
+ const tabListChildren = import_react139.Children.map(children, (child, index) => {
12200
+ return (0, import_react139.isValidElement)(child) && (0, import_react139.cloneElement)(child, {
12065
12201
  id: `${tabsId}-tab-${index}`,
12066
12202
  "aria-controls": `${tabsId}-panel-${index}`,
12067
12203
  active: activeTab === index,
@@ -12071,7 +12207,7 @@ var TabList = (0, import_react135.forwardRef)(
12071
12207
  onClick: () => handleTabChange(index)
12072
12208
  });
12073
12209
  });
12074
- const [widths, setWidths] = (0, import_react135.useState)([]);
12210
+ const [widths, setWidths] = (0, import_react139.useState)([]);
12075
12211
  const handleOnFocus = (event) => {
12076
12212
  setHasTabFocus(true);
12077
12213
  onFocus && onFocus(event);
@@ -12089,7 +12225,7 @@ var TabList = (0, import_react135.forwardRef)(
12089
12225
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
12090
12226
  ["--dds-tab-widths"]: widths.join(" ")
12091
12227
  };
12092
- return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
12228
+ return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12093
12229
  "div",
12094
12230
  {
12095
12231
  ...rest,
@@ -12115,11 +12251,11 @@ var TabList = (0, import_react135.forwardRef)(
12115
12251
  TabList.displayName = "TabList";
12116
12252
 
12117
12253
  // src/components/Tabs/TabPanel.tsx
12118
- var import_react136 = require("react");
12119
- var import_jsx_runtime290 = require("react/jsx-runtime");
12120
- var TabPanel = (0, import_react136.forwardRef)(
12254
+ var import_react140 = require("react");
12255
+ var import_jsx_runtime294 = require("react/jsx-runtime");
12256
+ var TabPanel = (0, import_react140.forwardRef)(
12121
12257
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
12122
- return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
12258
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12123
12259
  "div",
12124
12260
  {
12125
12261
  ...getBaseHTMLProps(
@@ -12144,28 +12280,28 @@ var TabPanel = (0, import_react136.forwardRef)(
12144
12280
  TabPanel.displayName = "TabPanel";
12145
12281
 
12146
12282
  // src/components/Tabs/TabPanels.tsx
12147
- var import_react137 = require("react");
12148
- var import_jsx_runtime291 = require("react/jsx-runtime");
12149
- var TabPanels = (0, import_react137.forwardRef)(
12283
+ var import_react141 = require("react");
12284
+ var import_jsx_runtime295 = require("react/jsx-runtime");
12285
+ var TabPanels = (0, import_react141.forwardRef)(
12150
12286
  ({ children, ...rest }, ref) => {
12151
12287
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
12152
12288
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
12153
- const panelChildren = import_react137.Children.map(children, (child, index) => {
12289
+ const panelChildren = import_react141.Children.map(children, (child, index) => {
12154
12290
  const active = index === activeTab;
12155
- return (0, import_react137.isValidElement)(child) && (0, import_react137.cloneElement)(child, {
12291
+ return (0, import_react141.isValidElement)(child) && (0, import_react141.cloneElement)(child, {
12156
12292
  id: `${tabsId}-panel-${index}`,
12157
12293
  "aria-labelledby": `${tabsId}-tab-${index}`,
12158
12294
  active,
12159
12295
  "aria-expanded": active
12160
12296
  });
12161
12297
  });
12162
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
12298
+ return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
12163
12299
  }
12164
12300
  );
12165
12301
  TabPanels.displayName = "TabPanels";
12166
12302
 
12167
12303
  // src/components/Tag/Tag.tsx
12168
- var import_react138 = require("react");
12304
+ var import_react142 = require("react");
12169
12305
 
12170
12306
  // src/components/Tag/Tag.module.css
12171
12307
  var Tag_default = {
@@ -12184,7 +12320,7 @@ var Tag_default = {
12184
12320
  };
12185
12321
 
12186
12322
  // src/components/Tag/Tag.tsx
12187
- var import_jsx_runtime292 = require("react/jsx-runtime");
12323
+ var import_jsx_runtime296 = require("react/jsx-runtime");
12188
12324
  var icons3 = {
12189
12325
  info: InfoIcon,
12190
12326
  danger: ErrorIcon,
@@ -12192,7 +12328,7 @@ var icons3 = {
12192
12328
  success: CheckCircledIcon,
12193
12329
  default: void 0
12194
12330
  };
12195
- var Tag = (0, import_react138.forwardRef)((props, ref) => {
12331
+ var Tag = (0, import_react142.forwardRef)((props, ref) => {
12196
12332
  const {
12197
12333
  text,
12198
12334
  purpose = "default",
@@ -12205,7 +12341,7 @@ var Tag = (0, import_react138.forwardRef)((props, ref) => {
12205
12341
  ...rest
12206
12342
  } = props;
12207
12343
  const icon = icons3[purpose];
12208
- return /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(
12344
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12209
12345
  TextOverflowEllipsisWrapper,
12210
12346
  {
12211
12347
  ...getBaseHTMLProps(
@@ -12222,8 +12358,8 @@ var Tag = (0, import_react138.forwardRef)((props, ref) => {
12222
12358
  ),
12223
12359
  ref,
12224
12360
  children: [
12225
- withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Icon, { icon, iconSize: "small" }),
12226
- /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
12361
+ withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(Icon, { icon, iconSize: "small" }),
12362
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
12227
12363
  ]
12228
12364
  }
12229
12365
  );
@@ -12232,7 +12368,7 @@ Tag.displayName = "Tag";
12232
12368
 
12233
12369
  // src/components/TextInput/TextInput.tsx
12234
12370
  var import_dds_design_tokens15 = require("@norges-domstoler/dds-design-tokens");
12235
- var import_react139 = require("react");
12371
+ var import_react143 = require("react");
12236
12372
 
12237
12373
  // src/components/TextInput/TextInput.module.css
12238
12374
  var TextInput_default = {
@@ -12259,8 +12395,8 @@ var TextInput_default = {
12259
12395
  };
12260
12396
 
12261
12397
  // src/components/TextInput/TextInput.tsx
12262
- var import_jsx_runtime293 = require("react/jsx-runtime");
12263
- var TextInput = (0, import_react139.forwardRef)(
12398
+ var import_jsx_runtime297 = require("react/jsx-runtime");
12399
+ var TextInput = (0, import_react143.forwardRef)(
12264
12400
  ({
12265
12401
  label,
12266
12402
  disabled,
@@ -12286,14 +12422,14 @@ var TextInput = (0, import_react139.forwardRef)(
12286
12422
  suffix,
12287
12423
  ...rest
12288
12424
  }, ref) => {
12289
- const [text, setText] = (0, import_react139.useState)(
12425
+ const [text, setText] = (0, import_react143.useState)(
12290
12426
  getDefaultText(value, defaultValue)
12291
12427
  );
12292
- const prefixRef = (0, import_react139.useRef)(null);
12293
- const suffixRef = (0, import_react139.useRef)(null);
12294
- const [prefixLength, setPrefixLength] = (0, import_react139.useState)(0);
12295
- const [suffixLength, setSuffixLength] = (0, import_react139.useState)(0);
12296
- (0, import_react139.useLayoutEffect)(() => {
12428
+ const prefixRef = (0, import_react143.useRef)(null);
12429
+ const suffixRef = (0, import_react143.useRef)(null);
12430
+ const [prefixLength, setPrefixLength] = (0, import_react143.useState)(0);
12431
+ const [suffixLength, setSuffixLength] = (0, import_react143.useState)(0);
12432
+ (0, import_react143.useLayoutEffect)(() => {
12297
12433
  if (prefixRef.current) {
12298
12434
  setPrefixLength(prefixRef.current.offsetWidth);
12299
12435
  }
@@ -12307,7 +12443,7 @@ var TextInput = (0, import_react139.forwardRef)(
12307
12443
  onChange(event);
12308
12444
  }
12309
12445
  };
12310
- const generatedId = (0, import_react139.useId)();
12446
+ const generatedId = (0, import_react143.useId)();
12311
12447
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
12312
12448
  const hasErrorMessage = !!errorMessage;
12313
12449
  const hasTip = !!tip;
@@ -12349,13 +12485,13 @@ var TextInput = (0, import_react139.forwardRef)(
12349
12485
  const suffixPaddingInlineEnd = readOnly && suffixLength ? suffixLength + "px" : suffixLength ? import_dds_design_tokens15.ddsTokens.ddsSpacingX1NumberPx + suffixLength + "px" : void 0;
12350
12486
  let extendedInput = null;
12351
12487
  if (hasIcon) {
12352
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12488
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12353
12489
  "div",
12354
12490
  {
12355
12491
  className: cn(TextInput_default["input-width"], Input_default["input-group"]),
12356
12492
  style: styleVariables,
12357
12493
  children: [
12358
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12494
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12359
12495
  Icon,
12360
12496
  {
12361
12497
  icon,
@@ -12363,7 +12499,7 @@ var TextInput = (0, import_react139.forwardRef)(
12363
12499
  className: cn(Input_default.icon, TextInput_default[`icon--${componentSize}`])
12364
12500
  }
12365
12501
  ),
12366
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12502
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12367
12503
  StatefulInput,
12368
12504
  {
12369
12505
  ref,
@@ -12382,13 +12518,13 @@ var TextInput = (0, import_react139.forwardRef)(
12382
12518
  }
12383
12519
  );
12384
12520
  } else if (hasAffix) {
12385
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12521
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12386
12522
  "div",
12387
12523
  {
12388
12524
  className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
12389
12525
  style: styleVariables,
12390
12526
  children: [
12391
- prefix3 && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12527
+ prefix3 && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12392
12528
  "span",
12393
12529
  {
12394
12530
  ref: prefixRef,
@@ -12401,7 +12537,7 @@ var TextInput = (0, import_react139.forwardRef)(
12401
12537
  children: prefix3
12402
12538
  }
12403
12539
  ),
12404
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12540
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12405
12541
  StatefulInput,
12406
12542
  {
12407
12543
  ref,
@@ -12416,7 +12552,7 @@ var TextInput = (0, import_react139.forwardRef)(
12416
12552
  className: TextInput_default["input--extended"]
12417
12553
  }
12418
12554
  ),
12419
- suffix && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12555
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12420
12556
  "span",
12421
12557
  {
12422
12558
  ref: suffixRef,
@@ -12433,7 +12569,7 @@ var TextInput = (0, import_react139.forwardRef)(
12433
12569
  }
12434
12570
  );
12435
12571
  }
12436
- return /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12572
+ return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12437
12573
  "div",
12438
12574
  {
12439
12575
  className: cn(
@@ -12445,7 +12581,7 @@ var TextInput = (0, import_react139.forwardRef)(
12445
12581
  ),
12446
12582
  style,
12447
12583
  children: [
12448
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12584
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12449
12585
  Label,
12450
12586
  {
12451
12587
  htmlFor: uniqueId,
@@ -12455,7 +12591,7 @@ var TextInput = (0, import_react139.forwardRef)(
12455
12591
  children: label
12456
12592
  }
12457
12593
  ),
12458
- extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12594
+ extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12459
12595
  StatefulInput,
12460
12596
  {
12461
12597
  ref,
@@ -12467,7 +12603,7 @@ var TextInput = (0, import_react139.forwardRef)(
12467
12603
  className: TextInput_default["input-width"]
12468
12604
  }
12469
12605
  ),
12470
- hasMessage && /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)("div", { className: TextInput_default["message-container"], children: [
12606
+ hasMessage && /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)("div", { className: TextInput_default["message-container"], children: [
12471
12607
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
12472
12608
  renderCharCounter(
12473
12609
  characterCounterId,
@@ -12484,14 +12620,14 @@ var TextInput = (0, import_react139.forwardRef)(
12484
12620
  TextInput.displayName = "TextInput";
12485
12621
 
12486
12622
  // src/components/ToggleBar/ToggleBar.tsx
12487
- var import_react141 = require("react");
12623
+ var import_react145 = require("react");
12488
12624
 
12489
12625
  // src/components/ToggleBar/ToggleBar.context.tsx
12490
- var import_react140 = require("react");
12491
- var ToggleBarContext = (0, import_react140.createContext)({
12626
+ var import_react144 = require("react");
12627
+ var ToggleBarContext = (0, import_react144.createContext)({
12492
12628
  size: "medium"
12493
12629
  });
12494
- var useToggleBarContext = () => (0, import_react140.useContext)(ToggleBarContext);
12630
+ var useToggleBarContext = () => (0, import_react144.useContext)(ToggleBarContext);
12495
12631
 
12496
12632
  // src/components/ToggleBar/ToggleBar.module.css
12497
12633
  var ToggleBar_default = {
@@ -12510,7 +12646,7 @@ var ToggleBar_default = {
12510
12646
  };
12511
12647
 
12512
12648
  // src/components/ToggleBar/ToggleBar.tsx
12513
- var import_jsx_runtime294 = require("react/jsx-runtime");
12649
+ var import_jsx_runtime298 = require("react/jsx-runtime");
12514
12650
  var ToggleBar = (props) => {
12515
12651
  const {
12516
12652
  children,
@@ -12525,15 +12661,15 @@ var ToggleBar = (props) => {
12525
12661
  id,
12526
12662
  ...rest
12527
12663
  } = props;
12528
- const generatedId = (0, import_react141.useId)();
12664
+ const generatedId = (0, import_react145.useId)();
12529
12665
  const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
12530
- const [groupValue, setGroupValue] = (0, import_react141.useState)(value);
12666
+ const [groupValue, setGroupValue] = (0, import_react145.useState)(value);
12531
12667
  const handleChange = combineHandlers(
12532
12668
  (e) => setGroupValue(e.target.value),
12533
12669
  (e) => onChange && onChange(e, e.target.value)
12534
12670
  );
12535
12671
  const labelId = label && `${uniqueId}-label`;
12536
- return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12672
+ return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
12537
12673
  ToggleBarContext.Provider,
12538
12674
  {
12539
12675
  value: {
@@ -12542,7 +12678,7 @@ var ToggleBar = (props) => {
12542
12678
  name,
12543
12679
  value: groupValue
12544
12680
  },
12545
- children: /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(
12681
+ children: /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(
12546
12682
  "div",
12547
12683
  {
12548
12684
  ...getBaseHTMLProps(
@@ -12555,8 +12691,8 @@ var ToggleBar = (props) => {
12555
12691
  role: "radiogroup",
12556
12692
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
12557
12693
  children: [
12558
- label && /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Label, { id: labelId, children: label }),
12559
- /* @__PURE__ */ (0, import_jsx_runtime294.jsx)("div", { className: ToggleBar_default.bar, children })
12694
+ label && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(Label, { id: labelId, children: label }),
12695
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)("div", { className: ToggleBar_default.bar, children })
12560
12696
  ]
12561
12697
  }
12562
12698
  )
@@ -12566,8 +12702,8 @@ var ToggleBar = (props) => {
12566
12702
  ToggleBar.displayName = "ToggleBar";
12567
12703
 
12568
12704
  // src/components/ToggleBar/ToggleRadio.tsx
12569
- var import_react142 = require("react");
12570
- var import_jsx_runtime295 = require("react/jsx-runtime");
12705
+ var import_react146 = require("react");
12706
+ var import_jsx_runtime299 = require("react/jsx-runtime");
12571
12707
  var typographyTypes4 = {
12572
12708
  large: "bodySans04",
12573
12709
  medium: "bodySans02",
@@ -12584,7 +12720,7 @@ var calculateChecked = (value, group, checked) => {
12584
12720
  }
12585
12721
  return !!value;
12586
12722
  };
12587
- var ToggleRadio = (0, import_react142.forwardRef)(
12723
+ var ToggleRadio = (0, import_react146.forwardRef)(
12588
12724
  (props, ref) => {
12589
12725
  const {
12590
12726
  value,
@@ -12600,7 +12736,7 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12600
12736
  id,
12601
12737
  ...rest
12602
12738
  } = props;
12603
- const generatedId = (0, import_react142.useId)();
12739
+ const generatedId = (0, import_react146.useId)();
12604
12740
  const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
12605
12741
  const group = useToggleBarContext();
12606
12742
  const handleChange = (event) => {
@@ -12608,8 +12744,8 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12608
12744
  (group == null ? void 0 : group.onChange) && group.onChange(event);
12609
12745
  };
12610
12746
  const contentTypeCn = label ? "with-text" : "just-icon";
12611
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
12612
- /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12747
+ return /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
12748
+ /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
12613
12749
  "input",
12614
12750
  {
12615
12751
  ...getBaseHTMLProps(
@@ -12632,7 +12768,7 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12632
12768
  "aria-labelledby": ariaLabelledBy
12633
12769
  }
12634
12770
  ),
12635
- /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
12771
+ /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)(
12636
12772
  Typography,
12637
12773
  {
12638
12774
  as: "span",
@@ -12643,8 +12779,8 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12643
12779
  focus_default["focus-styled-sibling"]
12644
12780
  ),
12645
12781
  children: [
12646
- icon && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(Icon, { icon, iconSize: "inherit" }),
12647
- label && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)("span", { children: label })
12782
+ icon && /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(Icon, { icon, iconSize: "inherit" }),
12783
+ label && /* @__PURE__ */ (0, import_jsx_runtime299.jsx)("span", { children: label })
12648
12784
  ]
12649
12785
  }
12650
12786
  )
@@ -12654,7 +12790,7 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12654
12790
  ToggleRadio.displayName = "ToggleRadio";
12655
12791
 
12656
12792
  // src/components/ToggleButton/ToggleButton.tsx
12657
- var import_react143 = require("react");
12793
+ var import_react147 = require("react");
12658
12794
 
12659
12795
  // src/components/ToggleButton/ToggleButton.module.css
12660
12796
  var ToggleButton_default = {
@@ -12667,13 +12803,13 @@ var ToggleButton_default = {
12667
12803
  };
12668
12804
 
12669
12805
  // src/components/ToggleButton/ToggleButton.tsx
12670
- var import_jsx_runtime296 = require("react/jsx-runtime");
12671
- var ToggleButton = (0, import_react143.forwardRef)(
12806
+ var import_jsx_runtime300 = require("react/jsx-runtime");
12807
+ var ToggleButton = (0, import_react147.forwardRef)(
12672
12808
  ({ id, label, icon, className, htmlProps, ...rest }, ref) => {
12673
- const generatedId = (0, import_react143.useId)();
12809
+ const generatedId = (0, import_react147.useId)();
12674
12810
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
12675
- return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
12676
- /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12811
+ return /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
12812
+ /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
12677
12813
  "input",
12678
12814
  {
12679
12815
  ...getBaseHTMLProps(
@@ -12690,7 +12826,7 @@ var ToggleButton = (0, import_react143.forwardRef)(
12690
12826
  type: "checkbox"
12691
12827
  }
12692
12828
  ),
12693
- /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12829
+ /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(
12694
12830
  "span",
12695
12831
  {
12696
12832
  className: cn(
@@ -12699,7 +12835,7 @@ var ToggleButton = (0, import_react143.forwardRef)(
12699
12835
  focus_default["focus-styled-sibling"]
12700
12836
  ),
12701
12837
  children: [
12702
- icon && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(Icon, { icon, iconSize: "inherit" }),
12838
+ icon && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Icon, { icon, iconSize: "inherit" }),
12703
12839
  " ",
12704
12840
  label
12705
12841
  ]
@@ -12711,8 +12847,8 @@ var ToggleButton = (0, import_react143.forwardRef)(
12711
12847
  ToggleButton.displayName = "ToggleButton";
12712
12848
 
12713
12849
  // src/components/ToggleButton/ToggleButtonGroup.tsx
12714
- var import_react144 = require("react");
12715
- var import_jsx_runtime297 = require("react/jsx-runtime");
12850
+ var import_react148 = require("react");
12851
+ var import_jsx_runtime301 = require("react/jsx-runtime");
12716
12852
  var ToggleButtonGroup = (props) => {
12717
12853
  const {
12718
12854
  children,
@@ -12724,9 +12860,9 @@ var ToggleButtonGroup = (props) => {
12724
12860
  htmlProps,
12725
12861
  ...rest
12726
12862
  } = props;
12727
- const generatedId = (0, import_react144.useId)();
12863
+ const generatedId = (0, import_react148.useId)();
12728
12864
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
12729
- return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12865
+ return /* @__PURE__ */ (0, import_jsx_runtime301.jsxs)(
12730
12866
  "div",
12731
12867
  {
12732
12868
  ...getBaseHTMLProps(
@@ -12738,7 +12874,7 @@ var ToggleButtonGroup = (props) => {
12738
12874
  role: "group",
12739
12875
  "aria-labelledby": label ? uniqueLabelId : void 0,
12740
12876
  children: [
12741
- !!label && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12877
+ !!label && /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
12742
12878
  Typography,
12743
12879
  {
12744
12880
  as: "span",
@@ -12747,7 +12883,7 @@ var ToggleButtonGroup = (props) => {
12747
12883
  children: label
12748
12884
  }
12749
12885
  ),
12750
- /* @__PURE__ */ (0, import_jsx_runtime297.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12886
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12751
12887
  ]
12752
12888
  }
12753
12889
  );
@@ -12824,6 +12960,10 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
12824
12960
  DescriptionListDesc,
12825
12961
  DescriptionListGroup,
12826
12962
  DescriptionListTerm,
12963
+ DetailList,
12964
+ DetailListDesc,
12965
+ DetailListRow,
12966
+ DetailListTerm,
12827
12967
  Divider,
12828
12968
  DoubleChevronLeftIcon,
12829
12969
  DoubleChevronRightIcon,
@@ -13050,6 +13190,7 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
13050
13190
  focusVisibleTransitionValue,
13051
13191
  getBaseHTMLProps,
13052
13192
  getDefaultText,
13193
+ getDensityCn,
13053
13194
  getElementType,
13054
13195
  getLiteralScreenSize,
13055
13196
  getTypographyCn,