@norges-domstoler/dds-components 17.1.0 → 17.2.1

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) {
@@ -4487,14 +4503,21 @@ var import_react24 = require("react");
4487
4503
 
4488
4504
  // src/components/BackLink/BackLink.module.css
4489
4505
  var BackLink_default = {
4490
- link: "BackLink_link"
4506
+ icon: "BackLink_icon"
4491
4507
  };
4492
4508
 
4493
4509
  // src/components/BackLink/BackLink.tsx
4494
4510
  var import_jsx_runtime177 = require("react/jsx-runtime");
4495
4511
  var BackLink = (0, import_react24.forwardRef)((props, ref) => {
4496
- return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)(Link, { href: props.href, className: BackLink_default.link, children: [
4497
- /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(Icon, { icon: ArrowLeftIcon, iconSize: "small" }),
4512
+ return /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */ (0, import_jsx_runtime177.jsxs)(Link, { href: props.href, children: [
4513
+ /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
4514
+ Icon,
4515
+ {
4516
+ icon: ArrowLeftIcon,
4517
+ iconSize: "small",
4518
+ className: BackLink_default.icon
4519
+ }
4520
+ ),
4498
4521
  props.label
4499
4522
  ] }) });
4500
4523
  });
@@ -6497,8 +6520,96 @@ var DescriptionListGroup = (0, import_react61.forwardRef)((props, ref) => {
6497
6520
  });
6498
6521
  DescriptionListGroup.displayName = "DescriptionListGroup";
6499
6522
 
6500
- // src/components/Drawer/Drawer.tsx
6523
+ // src/components/DetailList/DetailList.tsx
6501
6524
  var import_react62 = require("react");
6525
+
6526
+ // src/components/DetailList/DetailList.module.css
6527
+ var DetailList_default = {
6528
+ list: "DetailList_list",
6529
+ "list--with-dividers": "DetailList_list--with-dividers",
6530
+ row: "DetailList_row",
6531
+ "list--striped": "DetailList_list--striped",
6532
+ "list--normal": "DetailList_list--normal",
6533
+ cell: "DetailList_cell",
6534
+ "list--compact": "DetailList_list--compact",
6535
+ "list--extra-compact": "DetailList_list--extra-compact",
6536
+ term: "DetailList_term"
6537
+ };
6538
+
6539
+ // src/components/DetailList/DetailList.tsx
6540
+ var import_jsx_runtime215 = require("react/jsx-runtime");
6541
+ var DetailList = (0, import_react62.forwardRef)(
6542
+ (props, ref) => {
6543
+ const {
6544
+ id,
6545
+ className,
6546
+ htmlProps,
6547
+ withDividers = true,
6548
+ striped = true,
6549
+ density = "normal",
6550
+ ...rest
6551
+ } = props;
6552
+ return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
6553
+ "dl",
6554
+ {
6555
+ ref,
6556
+ ...getBaseHTMLProps(
6557
+ id,
6558
+ cn(
6559
+ className,
6560
+ DetailList_default.list,
6561
+ DetailList_default[`list--${getDensityCn(density)}`],
6562
+ withDividers && DetailList_default["list--with-dividers"],
6563
+ striped && DetailList_default["list--striped"]
6564
+ ),
6565
+ htmlProps,
6566
+ rest
6567
+ )
6568
+ }
6569
+ );
6570
+ }
6571
+ );
6572
+ DetailList.displayName = "DetailList";
6573
+
6574
+ // src/components/DetailList/DetailListDesc.tsx
6575
+ var import_react63 = require("react");
6576
+ var import_jsx_runtime216 = require("react/jsx-runtime");
6577
+ var DetailListDesc = (0, import_react63.forwardRef)(
6578
+ ({ className, ...rest }, ref) => {
6579
+ return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("dd", { ref, className: cn(className, DetailList_default.cell), ...rest });
6580
+ }
6581
+ );
6582
+ DetailListDesc.displayName = "DetailListDesc";
6583
+
6584
+ // src/components/DetailList/DetailListRow.tsx
6585
+ var import_react64 = require("react");
6586
+ var import_jsx_runtime217 = require("react/jsx-runtime");
6587
+ var DetailListRow = (0, import_react64.forwardRef)(
6588
+ ({ className, ...rest }, ref) => {
6589
+ return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { ref, className: cn(className, DetailList_default.row), ...rest });
6590
+ }
6591
+ );
6592
+ DetailListRow.displayName = "DetailListRow";
6593
+
6594
+ // src/components/DetailList/DetailListTerm.tsx
6595
+ var import_react65 = require("react");
6596
+ var import_jsx_runtime218 = require("react/jsx-runtime");
6597
+ var DetailListTerm = (0, import_react65.forwardRef)(
6598
+ ({ className, ...rest }, ref) => {
6599
+ return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
6600
+ "dt",
6601
+ {
6602
+ ref,
6603
+ className: cn(className, DetailList_default.cell, DetailList_default.term),
6604
+ ...rest
6605
+ }
6606
+ );
6607
+ }
6608
+ );
6609
+ DetailListTerm.displayName = "DetailListTerm";
6610
+
6611
+ // src/components/Drawer/Drawer.tsx
6612
+ var import_react66 = require("react");
6502
6613
  var import_react_dom2 = require("react-dom");
6503
6614
 
6504
6615
  // src/components/Drawer/Drawer.module.css
@@ -6518,8 +6629,8 @@ var Drawer_default = {
6518
6629
  };
6519
6630
 
6520
6631
  // src/components/Drawer/Drawer.tsx
6521
- var import_jsx_runtime215 = require("react/jsx-runtime");
6522
- var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6632
+ var import_jsx_runtime219 = require("react/jsx-runtime");
6633
+ var Drawer = (0, import_react66.forwardRef)((props, ref) => {
6523
6634
  const {
6524
6635
  children,
6525
6636
  onClose,
@@ -6535,7 +6646,7 @@ var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6535
6646
  widthProps,
6536
6647
  ...rest
6537
6648
  } = props;
6538
- const generatedId = (0, import_react62.useId)();
6649
+ const generatedId = (0, import_react66.useId)();
6539
6650
  const uniqueId = id != null ? id : `${generatedId}-drawer`;
6540
6651
  const hasHeader = !!header;
6541
6652
  const headerId = hasHeader ? `${uniqueId}-header` : void 0;
@@ -6580,8 +6691,8 @@ var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6580
6691
  style: { ...htmlProps == null ? void 0 : htmlProps.style, ...widthProps }
6581
6692
  };
6582
6693
  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)(
6694
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(Paper, { ...containerProps, elevation: 4, children: [
6695
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
6585
6696
  "div",
6586
6697
  {
6587
6698
  className: cn(
@@ -6590,12 +6701,12 @@ var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6590
6701
  utilStyles_default["scrollable-y"]
6591
6702
  ),
6592
6703
  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 }),
6704
+ 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
6705
  children
6595
6706
  ]
6596
6707
  }
6597
6708
  ),
6598
- /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
6709
+ /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
6599
6710
  Button,
6600
6711
  {
6601
6712
  className: cn(Drawer_default["button--close"]),
@@ -6614,18 +6725,18 @@ var Drawer = (0, import_react62.forwardRef)((props, ref) => {
6614
6725
  Drawer.displayName = "Drawer";
6615
6726
 
6616
6727
  // src/components/Drawer/DrawerGroup.tsx
6617
- var import_react63 = require("react");
6618
- var import_jsx_runtime216 = require("react/jsx-runtime");
6728
+ var import_react67 = require("react");
6729
+ var import_jsx_runtime220 = require("react/jsx-runtime");
6619
6730
  var DrawerGroup = ({
6620
6731
  children,
6621
6732
  drawerId,
6622
6733
  onOpen,
6623
6734
  onClose
6624
6735
  }) => {
6625
- const generatedId = (0, import_react63.useId)();
6736
+ const generatedId = (0, import_react67.useId)();
6626
6737
  const uniqueDrawerId = drawerId != null ? drawerId : `${generatedId}-drawer`;
6627
- const buttonRef = (0, import_react63.useRef)(null);
6628
- const [closed, setClosed] = (0, import_react63.useState)(true);
6738
+ const buttonRef = (0, import_react67.useRef)(null);
6739
+ const [closed, setClosed] = (0, import_react67.useState)(true);
6629
6740
  const open = () => setClosed(false);
6630
6741
  const close = () => setClosed(true);
6631
6742
  const handleOpen = () => {
@@ -6636,21 +6747,21 @@ var DrawerGroup = ({
6636
6747
  close();
6637
6748
  onClose && onClose();
6638
6749
  };
6639
- const Children8 = import_react63.Children.map(children, (child, childIndex) => {
6640
- return (0, import_react63.isValidElement)(child) && (childIndex === 0 ? (0, import_react63.cloneElement)(child, {
6750
+ const Children8 = import_react67.Children.map(children, (child, childIndex) => {
6751
+ return (0, import_react67.isValidElement)(child) && (childIndex === 0 ? (0, import_react67.cloneElement)(child, {
6641
6752
  "aria-haspopup": "dialog",
6642
6753
  "aria-controls": uniqueDrawerId,
6643
6754
  "aria-expanded": !closed,
6644
6755
  ref: buttonRef,
6645
6756
  onClick: handleOpen
6646
- }) : (0, import_react63.cloneElement)(child, {
6757
+ }) : (0, import_react67.cloneElement)(child, {
6647
6758
  id: uniqueDrawerId,
6648
6759
  triggerRef: buttonRef,
6649
6760
  isOpen: !closed,
6650
6761
  onClose: handleClose
6651
6762
  }));
6652
6763
  });
6653
- return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(import_jsx_runtime216.Fragment, { children: [
6764
+ return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(import_jsx_runtime220.Fragment, { children: [
6654
6765
  " ",
6655
6766
  Children8,
6656
6767
  " "
@@ -6666,7 +6777,7 @@ var EmptyContent_default = {
6666
6777
  };
6667
6778
 
6668
6779
  // src/components/EmptyContent/EmptyContent.tsx
6669
- var import_jsx_runtime217 = require("react/jsx-runtime");
6780
+ var import_jsx_runtime221 = require("react/jsx-runtime");
6670
6781
  function EmptyContent({
6671
6782
  title,
6672
6783
  message,
@@ -6674,15 +6785,15 @@ function EmptyContent({
6674
6785
  className,
6675
6786
  ...rest
6676
6787
  }) {
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 })
6788
+ 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: [
6789
+ title && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
6790
+ /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Paragraph, { className: EmptyContent_default.message, children: message })
6680
6791
  ] }) });
6681
6792
  }
6682
6793
  EmptyContent.displayName = "EmptyContent";
6683
6794
 
6684
6795
  // src/components/FavStar/FavStar.tsx
6685
- var import_react66 = require("react");
6796
+ var import_react70 = require("react");
6686
6797
 
6687
6798
  // src/components/FavStar/FavStar.module.css
6688
6799
  var FavStar_default = {
@@ -6694,16 +6805,16 @@ var FavStar_default = {
6694
6805
  };
6695
6806
 
6696
6807
  // src/hooks/useControllableState.ts
6697
- var import_react65 = require("react");
6808
+ var import_react69 = require("react");
6698
6809
 
6699
6810
  // src/hooks/useCallbackRef.ts
6700
- var import_react64 = require("react");
6811
+ var import_react68 = require("react");
6701
6812
  function useCallbackRef(callback, deps = []) {
6702
- const callbackRef = (0, import_react64.useRef)(callback);
6703
- (0, import_react64.useEffect)(() => {
6813
+ const callbackRef = (0, import_react68.useRef)(callback);
6814
+ (0, import_react68.useEffect)(() => {
6704
6815
  callbackRef.current = callback;
6705
6816
  });
6706
- return (0, import_react64.useCallback)((...args) => {
6817
+ return (0, import_react68.useCallback)((...args) => {
6707
6818
  var _a;
6708
6819
  return (_a = callbackRef.current) == null ? void 0 : _a.call(callbackRef, ...args);
6709
6820
  }, deps);
@@ -6713,7 +6824,7 @@ function useCallbackRef(callback, deps = []) {
6713
6824
  function useControllableState(props) {
6714
6825
  const { value: valueProp, defaultValue, onChange } = props;
6715
6826
  const onChangeProp = useCallbackRef(onChange);
6716
- const [uncontrolledState, setUncontrolledState] = (0, import_react65.useState)(defaultValue);
6827
+ const [uncontrolledState, setUncontrolledState] = (0, import_react69.useState)(defaultValue);
6717
6828
  const controlled = valueProp !== void 0;
6718
6829
  const value = controlled ? valueProp : uncontrolledState;
6719
6830
  const setValue = useCallbackRef(
@@ -6731,8 +6842,8 @@ function useControllableState(props) {
6731
6842
  }
6732
6843
 
6733
6844
  // src/components/FavStar/FavStar.tsx
6734
- var import_jsx_runtime218 = require("react/jsx-runtime");
6735
- var FavStar = (0, import_react66.forwardRef)(
6845
+ var import_jsx_runtime222 = require("react/jsx-runtime");
6846
+ var FavStar = (0, import_react70.forwardRef)(
6736
6847
  ({
6737
6848
  id,
6738
6849
  className,
@@ -6750,13 +6861,13 @@ var FavStar = (0, import_react66.forwardRef)(
6750
6861
  htmlProps,
6751
6862
  rest
6752
6863
  );
6753
- const generatedId = (0, import_react66.useId)();
6864
+ const generatedId = (0, import_react70.useId)();
6754
6865
  const [checked, setChecked] = useControllableState({
6755
6866
  value: checkedProp,
6756
6867
  defaultValue: defaultChecked != null ? defaultChecked : false,
6757
6868
  onChange
6758
6869
  });
6759
- return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
6870
+ return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
6760
6871
  "label",
6761
6872
  {
6762
6873
  className: cn(
@@ -6768,7 +6879,7 @@ var FavStar = (0, import_react66.forwardRef)(
6768
6879
  style,
6769
6880
  htmlFor: id != null ? id : generatedId,
6770
6881
  children: [
6771
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
6882
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
6772
6883
  "input",
6773
6884
  {
6774
6885
  ...props,
@@ -6781,8 +6892,8 @@ var FavStar = (0, import_react66.forwardRef)(
6781
6892
  className: utilStyles_default["hide-input"]
6782
6893
  }
6783
6894
  ),
6784
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
6785
- /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
6895
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
6896
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
6786
6897
  Icon,
6787
6898
  {
6788
6899
  iconSize: size2,
@@ -6798,7 +6909,7 @@ var FavStar = (0, import_react66.forwardRef)(
6798
6909
  FavStar.displayName = "FavStar";
6799
6910
 
6800
6911
  // src/components/Feedback/Feedback.tsx
6801
- var import_react70 = require("react");
6912
+ var import_react74 = require("react");
6802
6913
 
6803
6914
  // src/components/Feedback/Feedback.module.css
6804
6915
  var Feedback_default = {
@@ -6812,7 +6923,7 @@ var Feedback_default = {
6812
6923
  };
6813
6924
 
6814
6925
  // src/components/Stack/Stack.tsx
6815
- var import_react67 = require("react");
6926
+ var import_react71 = require("react");
6816
6927
 
6817
6928
  // src/components/Stack/Stack.module.css
6818
6929
  var Stack_default = {
@@ -6848,8 +6959,8 @@ var Stack_default = {
6848
6959
  };
6849
6960
 
6850
6961
  // src/components/Stack/Stack.tsx
6851
- var import_jsx_runtime219 = require("react/jsx-runtime");
6852
- var HStack = (0, import_react67.forwardRef)(
6962
+ var import_jsx_runtime223 = require("react/jsx-runtime");
6963
+ var HStack = (0, import_react71.forwardRef)(
6853
6964
  ({
6854
6965
  id,
6855
6966
  className,
@@ -6866,7 +6977,7 @@ var HStack = (0, import_react67.forwardRef)(
6866
6977
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6867
6978
  ["--dds-stack-justify-content"]: justify
6868
6979
  };
6869
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
6980
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
6870
6981
  "div",
6871
6982
  {
6872
6983
  ref,
@@ -6888,7 +6999,7 @@ var HStack = (0, import_react67.forwardRef)(
6888
6999
  }
6889
7000
  );
6890
7001
  HStack.displayName = "HStack";
6891
- var VStack = (0, import_react67.forwardRef)(
7002
+ var VStack = (0, import_react71.forwardRef)(
6892
7003
  ({
6893
7004
  id,
6894
7005
  className,
@@ -6905,7 +7016,7 @@ var VStack = (0, import_react67.forwardRef)(
6905
7016
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6906
7017
  ["--dds-stack-justify-content"]: justify
6907
7018
  };
6908
- return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
7019
+ return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
6909
7020
  "div",
6910
7021
  {
6911
7022
  ref,
@@ -6932,7 +7043,7 @@ function spacingPropToCn(value) {
6932
7043
  }
6933
7044
 
6934
7045
  // src/components/TextArea/TextArea.tsx
6935
- var import_react68 = require("react");
7046
+ var import_react72 = require("react");
6936
7047
 
6937
7048
  // src/components/TextArea/TextArea.module.css
6938
7049
  var TextArea_default = {
@@ -6941,8 +7052,8 @@ var TextArea_default = {
6941
7052
  };
6942
7053
 
6943
7054
  // src/components/TextArea/TextArea.tsx
6944
- var import_jsx_runtime220 = require("react/jsx-runtime");
6945
- var TextArea = (0, import_react68.forwardRef)(
7055
+ var import_jsx_runtime224 = require("react/jsx-runtime");
7056
+ var TextArea = (0, import_react72.forwardRef)(
6946
7057
  (props, ref) => {
6947
7058
  const {
6948
7059
  id,
@@ -6963,14 +7074,14 @@ var TextArea = (0, import_react68.forwardRef)(
6963
7074
  width,
6964
7075
  ...rest
6965
7076
  } = props;
6966
- const generatedId = (0, import_react68.useId)();
7077
+ const generatedId = (0, import_react72.useId)();
6967
7078
  const uniqueId = id != null ? id : `${generatedId}-textArea`;
6968
- const textAreaRef = (0, import_react68.useRef)(null);
7079
+ const textAreaRef = (0, import_react72.useRef)(null);
6969
7080
  const multiRef = useCombinedRef(ref, textAreaRef);
6970
- const [text, setText] = (0, import_react68.useState)(
7081
+ const [text, setText] = (0, import_react72.useState)(
6971
7082
  getDefaultText(value, defaultValue)
6972
7083
  );
6973
- (0, import_react68.useEffect)(() => {
7084
+ (0, import_react72.useEffect)(() => {
6974
7085
  if (textAreaRef == null ? void 0 : textAreaRef.current) {
6975
7086
  textAreaRef.current.style.height = `${textAreaRef.current.scrollHeight + 2}px`;
6976
7087
  }
@@ -6994,13 +7105,13 @@ var TextArea = (0, import_react68.forwardRef)(
6994
7105
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6995
7106
  ["--dds-text-area-width"]: width != null ? width : "var(--dds-input-default-width)"
6996
7107
  };
6997
- return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
7108
+ return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
6998
7109
  "div",
6999
7110
  {
7000
7111
  className: cn(className, Input_default.container),
7001
7112
  style: { ...style },
7002
7113
  children: [
7003
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
7114
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7004
7115
  Label,
7005
7116
  {
7006
7117
  showRequiredStyling,
@@ -7010,7 +7121,7 @@ var TextArea = (0, import_react68.forwardRef)(
7010
7121
  children: label
7011
7122
  }
7012
7123
  ),
7013
- /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
7124
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7014
7125
  "textarea",
7015
7126
  {
7016
7127
  ref: multiRef,
@@ -7042,7 +7153,7 @@ var TextArea = (0, import_react68.forwardRef)(
7042
7153
  ...rest
7043
7154
  }
7044
7155
  ),
7045
- /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)("div", { className: TextArea_default["message-container"], children: [
7156
+ /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { className: TextArea_default["message-container"], children: [
7046
7157
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
7047
7158
  renderCharCounter(
7048
7159
  characterCounterId,
@@ -7059,7 +7170,7 @@ var TextArea = (0, import_react68.forwardRef)(
7059
7170
  TextArea.displayName = "TextArea";
7060
7171
 
7061
7172
  // src/components/Feedback/CommentComponent.tsx
7062
- var import_jsx_runtime221 = require("react/jsx-runtime");
7173
+ var import_jsx_runtime225 = require("react/jsx-runtime");
7063
7174
  var CommentComponent = ({
7064
7175
  rating,
7065
7176
  feedbackText,
@@ -7071,21 +7182,21 @@ var CommentComponent = ({
7071
7182
  handleSubmit,
7072
7183
  handleFeedbackTextChange
7073
7184
  }) => {
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)(
7185
+ return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(VStack, { gap: "x1", align: "flex-start", children: [
7186
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
7187
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7077
7188
  Icon,
7078
7189
  {
7079
7190
  icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
7080
7191
  color: "iconActionResting"
7081
7192
  }
7082
7193
  ),
7083
- /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(Paragraph, { children: [
7194
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Paragraph, { children: [
7084
7195
  ratingSubmittedTitle,
7085
7196
  " "
7086
7197
  ] })
7087
7198
  ] }),
7088
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7199
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7089
7200
  TextArea,
7090
7201
  {
7091
7202
  value: feedbackText,
@@ -7094,7 +7205,7 @@ var CommentComponent = ({
7094
7205
  tip: textAreaTip
7095
7206
  }
7096
7207
  ),
7097
- /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
7208
+ /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7098
7209
  Button,
7099
7210
  {
7100
7211
  purpose: "secondary",
@@ -7108,7 +7219,7 @@ var CommentComponent = ({
7108
7219
  };
7109
7220
 
7110
7221
  // src/components/Tooltip/Tooltip.tsx
7111
- var import_react69 = require("react");
7222
+ var import_react73 = require("react");
7112
7223
 
7113
7224
  // src/components/Tooltip/Tooltip.module.css
7114
7225
  var Tooltip_default = {
@@ -7119,8 +7230,8 @@ var Tooltip_default = {
7119
7230
  };
7120
7231
 
7121
7232
  // src/components/Tooltip/Tooltip.tsx
7122
- var import_jsx_runtime222 = require("react/jsx-runtime");
7123
- var Tooltip = (0, import_react69.forwardRef)(
7233
+ var import_jsx_runtime226 = require("react/jsx-runtime");
7234
+ var Tooltip = (0, import_react73.forwardRef)(
7124
7235
  (props, ref) => {
7125
7236
  const {
7126
7237
  text,
@@ -7136,21 +7247,21 @@ var Tooltip = (0, import_react69.forwardRef)(
7136
7247
  htmlProps,
7137
7248
  ...rest
7138
7249
  } = props;
7139
- const generatedId = (0, import_react69.useId)();
7250
+ const generatedId = (0, import_react73.useId)();
7140
7251
  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);
7252
+ const [open, setOpen] = (0, import_react73.useState)(false);
7253
+ const [inView, setInView] = (0, import_react73.useState)(false);
7254
+ const [arrowElement, setArrowElement] = (0, import_react73.useState)(null);
7144
7255
  const { refs, styles: positionStyles } = useFloatPosition(arrowElement, {
7145
7256
  placement
7146
7257
  });
7147
- const tooltipRef = (0, import_react69.useRef)(null);
7258
+ const tooltipRef = (0, import_react73.useRef)(null);
7148
7259
  const combinedRef = useCombinedRef(ref, refs.setFloating, tooltipRef);
7149
7260
  const closeWhenNotInView = (entries) => {
7150
7261
  const [entry] = entries;
7151
7262
  entry.isIntersecting ? setInView(true) : setInView(false);
7152
7263
  };
7153
- (0, import_react69.useEffect)(() => {
7264
+ (0, import_react73.useEffect)(() => {
7154
7265
  const options = {
7155
7266
  root: null,
7156
7267
  rootMargin: "0px"
@@ -7162,7 +7273,7 @@ var Tooltip = (0, import_react69.forwardRef)(
7162
7273
  if (ref2) observer.unobserve(ref2);
7163
7274
  };
7164
7275
  }, [tooltipRef]);
7165
- (0, import_react69.useEffect)(() => {
7276
+ (0, import_react73.useEffect)(() => {
7166
7277
  if (tooltipRef.current) {
7167
7278
  window.addEventListener("scroll", () => {
7168
7279
  closeTooltip();
@@ -7175,7 +7286,7 @@ var Tooltip = (0, import_react69.forwardRef)(
7175
7286
  };
7176
7287
  }, []);
7177
7288
  let timer;
7178
- (0, import_react69.useEffect)(() => {
7289
+ (0, import_react73.useEffect)(() => {
7179
7290
  return () => {
7180
7291
  clearTimeout(timer);
7181
7292
  };
@@ -7194,8 +7305,8 @@ var Tooltip = (0, import_react69.forwardRef)(
7194
7305
  }
7195
7306
  };
7196
7307
  const anchorProps = children.props;
7197
- const anchorElement = import_react69.Children.only(
7198
- (0, import_react69.isValidElement)(children) && (0, import_react69.cloneElement)(children, {
7308
+ const anchorElement = import_react73.Children.only(
7309
+ (0, import_react73.isValidElement)(children) && (0, import_react73.cloneElement)(children, {
7199
7310
  ref: refs.setReference,
7200
7311
  onFocus: combineHandlers(openTooltip, anchorProps.onFocus),
7201
7312
  onBlur: combineHandlers(closeTooltip, anchorProps.onBlur),
@@ -7217,9 +7328,9 @@ var Tooltip = (0, import_react69.forwardRef)(
7217
7328
  style: { ...positionStyles.floating }
7218
7329
  };
7219
7330
  const openCn = open && inView ? "open" : "closed";
7220
- return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)("div", { ...containerProps, children: [
7331
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { ...containerProps, children: [
7221
7332
  anchorElement,
7222
- /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
7333
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
7223
7334
  Paper,
7224
7335
  {
7225
7336
  ...wrapperProps,
@@ -7233,15 +7344,15 @@ var Tooltip = (0, import_react69.forwardRef)(
7233
7344
  ),
7234
7345
  children: [
7235
7346
  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)(
7347
+ /* @__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: [
7348
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7238
7349
  "path",
7239
7350
  {
7240
7351
  d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
7241
7352
  className: Tooltip_default["svg-arrow__background"]
7242
7353
  }
7243
7354
  ),
7244
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
7355
+ /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7245
7356
  "path",
7246
7357
  {
7247
7358
  fillRule: "evenodd",
@@ -7260,7 +7371,7 @@ var Tooltip = (0, import_react69.forwardRef)(
7260
7371
  Tooltip.displayName = "Tooltip";
7261
7372
 
7262
7373
  // src/components/Feedback/RatingComponent.tsx
7263
- var import_jsx_runtime223 = require("react/jsx-runtime");
7374
+ var import_jsx_runtime227 = require("react/jsx-runtime");
7264
7375
  var RatingComponent = ({
7265
7376
  layout,
7266
7377
  ratingLabel,
@@ -7270,7 +7381,7 @@ var RatingComponent = ({
7270
7381
  handleRatingChange
7271
7382
  }) => {
7272
7383
  const layoutCn = layout === "vertical" ? "column" : "row";
7273
- const button = (purpose, layout2) => /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
7384
+ const button = (purpose, layout2) => /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7274
7385
  "button",
7275
7386
  {
7276
7387
  "aria-label": purpose === "up" ? thumbUpTooltip : thumbDownTooltip,
@@ -7281,7 +7392,7 @@ var RatingComponent = ({
7281
7392
  Feedback_default[`button--${layout2}`],
7282
7393
  focusable
7283
7394
  ),
7284
- children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
7395
+ children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7285
7396
  Icon,
7286
7397
  {
7287
7398
  icon: purpose === "up" ? ThumbUpIcon : ThumbDownIcon,
@@ -7290,7 +7401,7 @@ var RatingComponent = ({
7290
7401
  )
7291
7402
  }
7292
7403
  );
7293
- return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(
7404
+ return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
7294
7405
  "div",
7295
7406
  {
7296
7407
  className: cn(
@@ -7298,10 +7409,10 @@ var RatingComponent = ({
7298
7409
  Feedback_default[`rating-container--${layoutCn}`]
7299
7410
  ),
7300
7411
  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) }) })
7412
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Label, { children: ratingLabel }),
7413
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(HStack, { gap: "x1", children: [
7414
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Tooltip, { text: thumbUpTooltip, children: button("up", layout) }),
7415
+ /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", { children: button("down", layout) }) })
7305
7416
  ] })
7306
7417
  ]
7307
7418
  }
@@ -7309,7 +7420,7 @@ var RatingComponent = ({
7309
7420
  };
7310
7421
 
7311
7422
  // src/components/Feedback/Feedback.tsx
7312
- var import_jsx_runtime224 = require("react/jsx-runtime");
7423
+ var import_jsx_runtime228 = require("react/jsx-runtime");
7313
7424
  var Feedback = ({
7314
7425
  layout = "vertical",
7315
7426
  ratingLabel = "Hva syns du om tjenesten?",
@@ -7329,16 +7440,16 @@ var Feedback = ({
7329
7440
  onFeedbackTextChange,
7330
7441
  onSubmit
7331
7442
  }) => {
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)(() => {
7443
+ const [rating, setRating] = (0, import_react74.useState)(null);
7444
+ const [feedbackText, setFeedbackText] = (0, import_react74.useState)();
7445
+ const [isFeedbackSubmitted, setIsFeedbackSubmitted] = (0, import_react74.useState)(false);
7446
+ (0, import_react74.useEffect)(() => {
7336
7447
  ratingProp !== void 0 && setRating(ratingProp);
7337
7448
  }, [ratingProp]);
7338
- (0, import_react70.useEffect)(() => {
7449
+ (0, import_react74.useEffect)(() => {
7339
7450
  feedbackTextProp !== void 0 && setFeedbackText(feedbackTextProp);
7340
7451
  }, [feedbackTextProp]);
7341
- (0, import_react70.useEffect)(() => {
7452
+ (0, import_react74.useEffect)(() => {
7342
7453
  isSubmittedProp !== void 0 && setIsFeedbackSubmitted(isSubmittedProp);
7343
7454
  }, [isSubmittedProp]);
7344
7455
  const handleRatingChange = (newRating) => {
@@ -7355,7 +7466,7 @@ var Feedback = ({
7355
7466
  isSubmittedProp === void 0 && setIsFeedbackSubmitted(true);
7356
7467
  };
7357
7468
  if (rating === null && !isFeedbackSubmitted) {
7358
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7469
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
7359
7470
  RatingComponent,
7360
7471
  {
7361
7472
  layout,
@@ -7368,7 +7479,7 @@ var Feedback = ({
7368
7479
  );
7369
7480
  }
7370
7481
  if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
7371
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
7482
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
7372
7483
  CommentComponent,
7373
7484
  {
7374
7485
  rating,
@@ -7383,11 +7494,11 @@ var Feedback = ({
7383
7494
  }
7384
7495
  );
7385
7496
  }
7386
- return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Paragraph, { children: submittedTitle });
7497
+ return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Paragraph, { children: submittedTitle });
7387
7498
  };
7388
7499
 
7389
7500
  // src/components/Fieldset/Fieldset.tsx
7390
- var import_react71 = require("react");
7501
+ var import_react75 = require("react");
7391
7502
 
7392
7503
  // src/components/Fieldset/Fieldset.module.css
7393
7504
  var Fieldset_default = {
@@ -7395,11 +7506,11 @@ var Fieldset_default = {
7395
7506
  };
7396
7507
 
7397
7508
  // src/components/Fieldset/Fieldset.tsx
7398
- var import_jsx_runtime225 = require("react/jsx-runtime");
7399
- var Fieldset = (0, import_react71.forwardRef)(
7509
+ var import_jsx_runtime229 = require("react/jsx-runtime");
7510
+ var Fieldset = (0, import_react75.forwardRef)(
7400
7511
  (props, ref) => {
7401
7512
  const { id, className, htmlProps, ...rest } = props;
7402
- return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
7513
+ return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
7403
7514
  "fieldset",
7404
7515
  {
7405
7516
  ref,
@@ -7415,17 +7526,17 @@ var Fieldset = (0, import_react71.forwardRef)(
7415
7526
  );
7416
7527
 
7417
7528
  // src/components/FileUploader/FileUploader.tsx
7418
- var import_react73 = require("react");
7529
+ var import_react77 = require("react");
7419
7530
 
7420
7531
  // src/components/FileUploader/ErrorList.tsx
7421
- var import_jsx_runtime226 = require("react/jsx-runtime");
7532
+ var import_jsx_runtime230 = require("react/jsx-runtime");
7422
7533
  var ErrorList = (props) => {
7423
7534
  const { errors } = props;
7424
7535
  if (errors.length < 1) {
7425
7536
  return null;
7426
7537
  }
7427
7538
  if (errors.length === 1) {
7428
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
7539
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
7429
7540
  InputMessage,
7430
7541
  {
7431
7542
  id: errors[0].id,
@@ -7434,8 +7545,8 @@ var ErrorList = (props) => {
7434
7545
  }
7435
7546
  );
7436
7547
  }
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)(
7548
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
7549
+ return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
7439
7550
  InputMessage,
7440
7551
  {
7441
7552
  id,
@@ -7462,30 +7573,30 @@ var FileUploader_default = {
7462
7573
  };
7463
7574
 
7464
7575
  // src/components/FileUploader/File.tsx
7465
- var import_jsx_runtime227 = require("react/jsx-runtime");
7576
+ var import_jsx_runtime231 = require("react/jsx-runtime");
7466
7577
  var File = (props) => {
7467
7578
  const { parentId, index, file: stateFile, removeFile, isValid } = props;
7468
7579
  const errorsList = stateFile.errors.map((e, errorIndex) => ({
7469
7580
  id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
7470
7581
  message: e
7471
7582
  }));
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)(
7583
+ return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)("li", { children: [
7584
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
7585
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
7475
7586
  "span",
7476
7587
  {
7477
7588
  className: cn(FileUploader_default.file__name, typographyStyles_default["body-sans-02"]),
7478
7589
  children: stateFile.file.name
7479
7590
  }
7480
7591
  ),
7481
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7592
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
7482
7593
  Icon,
7483
7594
  {
7484
7595
  icon: isValid ? CheckCircledIcon : ErrorIcon,
7485
7596
  className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
7486
7597
  }
7487
7598
  ),
7488
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
7599
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
7489
7600
  Button,
7490
7601
  {
7491
7602
  size: "small",
@@ -7504,13 +7615,13 @@ var File = (props) => {
7504
7615
  }
7505
7616
  )
7506
7617
  ] }),
7507
- /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(ErrorList, { errors: errorsList })
7618
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(ErrorList, { errors: errorsList })
7508
7619
  ] });
7509
7620
  };
7510
7621
 
7511
7622
  // src/components/FileUploader/useFileUploader.ts
7512
7623
  var import_file_selector = require("file-selector");
7513
- var import_react72 = require("react");
7624
+ var import_react76 = require("react");
7514
7625
 
7515
7626
  // src/components/FileUploader/fileUploaderReducer.ts
7516
7627
  var fileUploaderReducer = (state, action) => {
@@ -7609,18 +7720,18 @@ var useFileUploader = (props) => {
7609
7720
  disabled,
7610
7721
  errorMessage
7611
7722
  } = 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);
7723
+ const rootRef = (0, import_react76.useRef)(null);
7724
+ const inputRef = (0, import_react76.useRef)(null);
7725
+ const buttonRef = (0, import_react76.useRef)(null);
7615
7726
  const isControlled = !!value;
7616
- const initialFileUploaderFiles = (0, import_react72.useMemo)(
7727
+ const initialFileUploaderFiles = (0, import_react76.useMemo)(
7617
7728
  () => (initialFiles != null ? initialFiles : []).map((f2) => ({
7618
7729
  file: f2,
7619
7730
  errors: []
7620
7731
  })),
7621
7732
  [initialFiles]
7622
7733
  );
7623
- const [state, dispatch] = (0, import_react72.useReducer)(fileUploaderReducer, {
7734
+ const [state, dispatch] = (0, import_react76.useReducer)(fileUploaderReducer, {
7624
7735
  files: initialFileUploaderFiles,
7625
7736
  isFocused: false,
7626
7737
  isFileDialogActive: false,
@@ -7632,7 +7743,7 @@ var useFileUploader = (props) => {
7632
7743
  )
7633
7744
  });
7634
7745
  const { files: stateFiles } = state;
7635
- (0, import_react72.useEffect)(() => {
7746
+ (0, import_react76.useEffect)(() => {
7636
7747
  if (isControlled) {
7637
7748
  const files = value.map((file) => {
7638
7749
  const accepted = isFileAccepted(file, accept);
@@ -7647,18 +7758,18 @@ var useFileUploader = (props) => {
7647
7758
  });
7648
7759
  }
7649
7760
  }, [value, isControlled, accept, dispatch]);
7650
- (0, import_react72.useEffect)(() => {
7761
+ (0, import_react76.useEffect)(() => {
7651
7762
  dispatch({
7652
7763
  type: "setRootErrors",
7653
7764
  payload: calcRootErrors(stateFiles, maxFiles, errorMessage)
7654
7765
  });
7655
7766
  }, [dispatch, stateFiles, maxFiles, errorMessage]);
7656
- const onRootFocus = (0, import_react72.useCallback)(
7767
+ const onRootFocus = (0, import_react76.useCallback)(
7657
7768
  () => dispatch({ type: "focus" }),
7658
7769
  [dispatch]
7659
7770
  );
7660
- const onRootBlur = (0, import_react72.useCallback)(() => dispatch({ type: "blur" }), [dispatch]);
7661
- const onRootDragEnter = (0, import_react72.useCallback)(
7771
+ const onRootBlur = (0, import_react76.useCallback)(() => dispatch({ type: "blur" }), [dispatch]);
7772
+ const onRootDragEnter = (0, import_react76.useCallback)(
7662
7773
  async (evt) => {
7663
7774
  preventDefaults(evt);
7664
7775
  if (isEventWithFiles(evt)) {
@@ -7670,7 +7781,7 @@ var useFileUploader = (props) => {
7670
7781
  },
7671
7782
  [dispatch, accept, maxFiles]
7672
7783
  );
7673
- const onRootDragOver = (0, import_react72.useCallback)((evt) => {
7784
+ const onRootDragOver = (0, import_react76.useCallback)((evt) => {
7674
7785
  preventDefaults(evt);
7675
7786
  const hasFiles = isEventWithFiles(evt);
7676
7787
  if (hasFiles && evt.dataTransfer) {
@@ -7680,7 +7791,7 @@ var useFileUploader = (props) => {
7680
7791
  }
7681
7792
  }
7682
7793
  }, []);
7683
- const onRootDragLeave = (0, import_react72.useCallback)(
7794
+ const onRootDragLeave = (0, import_react76.useCallback)(
7684
7795
  (evt) => {
7685
7796
  preventDefaults(evt);
7686
7797
  if (evt.currentTarget.contains(evt.relatedTarget)) return;
@@ -7688,7 +7799,7 @@ var useFileUploader = (props) => {
7688
7799
  },
7689
7800
  [dispatch]
7690
7801
  );
7691
- const setFiles = (0, import_react72.useCallback)(
7802
+ const setFiles = (0, import_react76.useCallback)(
7692
7803
  async (evt) => {
7693
7804
  evt.preventDefault();
7694
7805
  if (isEventWithFiles(evt)) {
@@ -7722,13 +7833,13 @@ var useFileUploader = (props) => {
7722
7833
  dispatch
7723
7834
  ]
7724
7835
  );
7725
- const openFileDialog = (0, import_react72.useCallback)(() => {
7836
+ const openFileDialog = (0, import_react76.useCallback)(() => {
7726
7837
  if (inputRef.current) {
7727
7838
  inputRef.current.value = "";
7728
7839
  inputRef.current.click();
7729
7840
  }
7730
7841
  }, [inputRef]);
7731
- const removeFile = (0, import_react72.useCallback)(
7842
+ const removeFile = (0, import_react76.useCallback)(
7732
7843
  (file) => {
7733
7844
  const newFiles = [...stateFiles];
7734
7845
  newFiles.splice(stateFiles.indexOf(file), 1);
@@ -7742,7 +7853,7 @@ var useFileUploader = (props) => {
7742
7853
  },
7743
7854
  [stateFiles, isControlled, maxFiles, errorMessage, onChange, dispatch]
7744
7855
  );
7745
- const getRootProps = (0, import_react72.useCallback)(
7856
+ const getRootProps = (0, import_react76.useCallback)(
7746
7857
  () => ({
7747
7858
  onBlur: onRootBlur,
7748
7859
  onFocus: onRootFocus,
@@ -7764,14 +7875,14 @@ var useFileUploader = (props) => {
7764
7875
  disabled
7765
7876
  ]
7766
7877
  );
7767
- const getButtonProps = (0, import_react72.useCallback)(
7878
+ const getButtonProps = (0, import_react76.useCallback)(
7768
7879
  () => ({
7769
7880
  onClick: openFileDialog,
7770
7881
  ref: buttonRef
7771
7882
  }),
7772
7883
  [openFileDialog, buttonRef]
7773
7884
  );
7774
- const getInputProps = (0, import_react72.useCallback)(
7885
+ const getInputProps = (0, import_react76.useCallback)(
7775
7886
  () => ({
7776
7887
  type: "file",
7777
7888
  style: { display: "none" },
@@ -7794,19 +7905,19 @@ var useFileUploader = (props) => {
7794
7905
  };
7795
7906
 
7796
7907
  // src/components/VisuallyHidden/VisuallyHidden.tsx
7797
- var import_jsx_runtime228 = require("react/jsx-runtime");
7908
+ var import_jsx_runtime232 = require("react/jsx-runtime");
7798
7909
  var VisuallyHidden = (props) => {
7799
7910
  const { id, className, htmlProps, as, ...rest } = props;
7800
7911
  const cl = cn(className, utilStyles_default["visually-hidden"]);
7801
7912
  if (as === "div") {
7802
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7913
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7803
7914
  }
7804
- return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7915
+ return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
7805
7916
  };
7806
7917
  VisuallyHidden.displayName = "VisuallyHidden";
7807
7918
 
7808
7919
  // src/components/FileUploader/FileUploader.tsx
7809
- var import_jsx_runtime229 = require("react/jsx-runtime");
7920
+ var import_jsx_runtime233 = require("react/jsx-runtime");
7810
7921
  var FileUploader = (props) => {
7811
7922
  const {
7812
7923
  id,
@@ -7829,7 +7940,7 @@ var FileUploader = (props) => {
7829
7940
  className,
7830
7941
  ...rest
7831
7942
  } = props;
7832
- const generatedId = (0, import_react73.useId)();
7943
+ const generatedId = (0, import_react77.useId)();
7833
7944
  const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
7834
7945
  const {
7835
7946
  state: { files: stateFiles, isDragActive, rootErrors },
@@ -7855,7 +7966,7 @@ var FileUploader = (props) => {
7855
7966
  const tipId = derivativeIdGenerator(uniqueId, "tip");
7856
7967
  const buttonId = derivativeIdGenerator(uniqueId, "button");
7857
7968
  const inputId = derivativeIdGenerator(uniqueId, "input");
7858
- const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
7969
+ const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
7859
7970
  File,
7860
7971
  {
7861
7972
  parentId: uniqueId,
@@ -7870,7 +7981,7 @@ var FileUploader = (props) => {
7870
7981
  id: derivativeIdGenerator(uniqueId, `error-${index}`),
7871
7982
  message: e
7872
7983
  }));
7873
- const button = /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
7984
+ const button = /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
7874
7985
  Button,
7875
7986
  {
7876
7987
  ...getButtonProps(),
@@ -7890,7 +8001,7 @@ var FileUploader = (props) => {
7890
8001
  children: btnLabel
7891
8002
  }
7892
8003
  );
7893
- return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
8004
+ return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
7894
8005
  "div",
7895
8006
  {
7896
8007
  id: uniqueId,
@@ -7902,9 +8013,9 @@ var FileUploader = (props) => {
7902
8013
  style: { ...style, width },
7903
8014
  ...rest,
7904
8015
  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)(
8016
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
8017
+ hasTip && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
8018
+ withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
7908
8019
  "div",
7909
8020
  {
7910
8021
  ...getRootProps(),
@@ -7914,7 +8025,7 @@ var FileUploader = (props) => {
7914
8025
  isDragActive && FileUploader_default["input-container--drag-active"]
7915
8026
  ),
7916
8027
  children: [
7917
- /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
8028
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
7918
8029
  "input",
7919
8030
  {
7920
8031
  ...getInputProps(),
@@ -7923,16 +8034,16 @@ var FileUploader = (props) => {
7923
8034
  }
7924
8035
  ),
7925
8036
  dropAreaLabel,
7926
- /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
8037
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
7927
8038
  button
7928
8039
  ]
7929
8040
  }
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 }),
8041
+ ) : /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
8042
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("input", { ...getInputProps(), id: inputId }),
7932
8043
  button
7933
8044
  ] }),
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 })
8045
+ /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(ErrorList, { errors: rootErrorsList }),
8046
+ !hideFileList && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
7936
8047
  ]
7937
8048
  }
7938
8049
  );
@@ -7940,7 +8051,7 @@ var FileUploader = (props) => {
7940
8051
  FileUploader.displayName = "FileUploader";
7941
8052
 
7942
8053
  // src/components/Footer/Footer.tsx
7943
- var import_react74 = require("react");
8054
+ var import_react78 = require("react");
7944
8055
 
7945
8056
  // src/components/Footer/Footer.module.css
7946
8057
  var Footer_default = {
@@ -7956,10 +8067,10 @@ var Footer_default = {
7956
8067
  };
7957
8068
 
7958
8069
  // src/components/Footer/Footer.tsx
7959
- var import_jsx_runtime230 = require("react/jsx-runtime");
7960
- var Footer = (0, import_react74.forwardRef)((props, ref) => {
8070
+ var import_jsx_runtime234 = require("react/jsx-runtime");
8071
+ var Footer = (0, import_react78.forwardRef)((props, ref) => {
7961
8072
  const { className, ...rest } = props;
7962
- return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
8073
+ return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
7963
8074
  Contrast,
7964
8075
  {
7965
8076
  as: "footer",
@@ -7971,24 +8082,24 @@ var Footer = (0, import_react74.forwardRef)((props, ref) => {
7971
8082
  });
7972
8083
 
7973
8084
  // 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 });
8085
+ var import_react79 = require("react");
8086
+ var import_jsx_runtime235 = require("react/jsx-runtime");
8087
+ var FooterListHeader = (0, import_react79.forwardRef)((props, ref) => {
8088
+ return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
7978
8089
  });
7979
8090
 
7980
8091
  // src/components/Footer/FooterLogo.tsx
7981
- var import_react76 = require("react");
8092
+ var import_react80 = require("react");
7982
8093
 
7983
8094
  // src/components/Footer/norges_domstoler_logo.svg
7984
8095
  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
8096
 
7986
8097
  // src/components/Footer/FooterLogo.tsx
7987
- var import_jsx_runtime232 = require("react/jsx-runtime");
7988
- var FooterLogo = (0, import_react76.forwardRef)(
8098
+ var import_jsx_runtime236 = require("react/jsx-runtime");
8099
+ var FooterLogo = (0, import_react80.forwardRef)(
7989
8100
  (props, ref) => {
7990
8101
  const { className, hideBreakpoint, ...rest } = props;
7991
- return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
8102
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
7992
8103
  "img",
7993
8104
  {
7994
8105
  ref,
@@ -8007,12 +8118,12 @@ var FooterLogo = (0, import_react76.forwardRef)(
8007
8118
  );
8008
8119
 
8009
8120
  // 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)(
8121
+ var import_react81 = require("react");
8122
+ var import_jsx_runtime237 = require("react/jsx-runtime");
8123
+ var FooterList = (0, import_react81.forwardRef)(
8013
8124
  (props, ref) => {
8014
8125
  const { className, ...rest } = props;
8015
- return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
8126
+ return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
8016
8127
  "ul",
8017
8128
  {
8018
8129
  ref,
@@ -8028,11 +8139,11 @@ var FooterList = (0, import_react77.forwardRef)(
8028
8139
  );
8029
8140
 
8030
8141
  // 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) => {
8142
+ var import_react82 = require("react");
8143
+ var import_jsx_runtime238 = require("react/jsx-runtime");
8144
+ var FooterSocialsList = (0, import_react82.forwardRef)((props, ref) => {
8034
8145
  const { className, ...rest } = props;
8035
- return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
8146
+ return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
8036
8147
  "ul",
8037
8148
  {
8038
8149
  ref,
@@ -8047,11 +8158,11 @@ var FooterSocialsList = (0, import_react78.forwardRef)((props, ref) => {
8047
8158
  });
8048
8159
 
8049
8160
  // 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) => {
8161
+ var import_react83 = require("react");
8162
+ var import_jsx_runtime239 = require("react/jsx-runtime");
8163
+ var FooterSocialsGroup = (0, import_react83.forwardRef)((props, ref) => {
8053
8164
  const { className, ...rest } = props;
8054
- return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
8165
+ return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
8055
8166
  "div",
8056
8167
  {
8057
8168
  ref,
@@ -8062,12 +8173,12 @@ var FooterSocialsGroup = (0, import_react79.forwardRef)((props, ref) => {
8062
8173
  });
8063
8174
 
8064
8175
  // 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)(
8176
+ var import_react84 = require("react");
8177
+ var import_jsx_runtime240 = require("react/jsx-runtime");
8178
+ var FooterListGroup = (0, import_react84.forwardRef)(
8068
8179
  (props, ref) => {
8069
8180
  const { className, ...rest } = props;
8070
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
8181
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
8071
8182
  "div",
8072
8183
  {
8073
8184
  ref,
@@ -8079,17 +8190,17 @@ var FooterListGroup = (0, import_react80.forwardRef)(
8079
8190
  );
8080
8191
 
8081
8192
  // 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)(
8193
+ var import_react85 = require("react");
8194
+ var import_jsx_runtime241 = require("react/jsx-runtime");
8195
+ var FooterLeft = (0, import_react85.forwardRef)(
8085
8196
  (props, ref) => {
8086
8197
  const { className, ...rest } = props;
8087
- return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
8198
+ return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
8088
8199
  }
8089
8200
  );
8090
8201
 
8091
8202
  // src/components/GlobalMessage/GlobalMessage.tsx
8092
- var import_react82 = require("react");
8203
+ var import_react86 = require("react");
8093
8204
 
8094
8205
  // src/components/GlobalMessage/GlobalMessage.module.css
8095
8206
  var GlobalMessage_default = {
@@ -8103,13 +8214,13 @@ var GlobalMessage_default = {
8103
8214
  };
8104
8215
 
8105
8216
  // src/components/GlobalMessage/GlobalMessage.tsx
8106
- var import_jsx_runtime238 = require("react/jsx-runtime");
8217
+ var import_jsx_runtime242 = require("react/jsx-runtime");
8107
8218
  var icons = {
8108
8219
  info: InfoIcon,
8109
8220
  danger: ErrorIcon,
8110
8221
  warning: WarningIcon
8111
8222
  };
8112
- var GlobalMessage = (0, import_react82.forwardRef)(
8223
+ var GlobalMessage = (0, import_react86.forwardRef)(
8113
8224
  (props, ref) => {
8114
8225
  const {
8115
8226
  message,
@@ -8122,8 +8233,8 @@ var GlobalMessage = (0, import_react82.forwardRef)(
8122
8233
  htmlProps,
8123
8234
  ...rest
8124
8235
  } = props;
8125
- const [isClosed, setClosed] = (0, import_react82.useState)(false);
8126
- return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
8236
+ const [isClosed, setClosed] = (0, import_react86.useState)(false);
8237
+ return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
8127
8238
  "div",
8128
8239
  {
8129
8240
  ref,
@@ -8139,7 +8250,7 @@ var GlobalMessage = (0, import_react82.forwardRef)(
8139
8250
  rest
8140
8251
  ),
8141
8252
  children: [
8142
- /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
8253
+ /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
8143
8254
  "div",
8144
8255
  {
8145
8256
  className: cn(
@@ -8147,12 +8258,12 @@ var GlobalMessage = (0, import_react82.forwardRef)(
8147
8258
  closable && GlobalMessage_default["content--closable"]
8148
8259
  ),
8149
8260
  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 })
8261
+ /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
8262
+ children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("span", { children: message })
8152
8263
  ]
8153
8264
  }
8154
8265
  ),
8155
- closable && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
8266
+ closable && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
8156
8267
  Button,
8157
8268
  {
8158
8269
  icon: CloseIcon,
@@ -8183,7 +8294,7 @@ var Grid_default = {
8183
8294
  };
8184
8295
 
8185
8296
  // src/components/Grid/Grid.tsx
8186
- var import_jsx_runtime239 = require("react/jsx-runtime");
8297
+ var import_jsx_runtime243 = require("react/jsx-runtime");
8187
8298
  var Grid = (props) => {
8188
8299
  const {
8189
8300
  id,
@@ -8228,13 +8339,13 @@ var Grid = (props) => {
8228
8339
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8229
8340
  ["--dds-grid-xl-column-gap"]: (columnGap == null ? void 0 : columnGap.xl) ? columnGap.xl : "var(--dds-grid-xl-gutter-size)"
8230
8341
  };
8231
- return as === "div" ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
8342
+ return as === "div" ? /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
8232
8343
  "div",
8233
8344
  {
8234
8345
  ...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
8235
- style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
8346
+ style: { ...style, ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
8236
8347
  }
8237
- ) : /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
8348
+ ) : /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
8238
8349
  "form",
8239
8350
  {
8240
8351
  ...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
@@ -8245,7 +8356,7 @@ var Grid = (props) => {
8245
8356
  Grid.displayName = "Grid";
8246
8357
 
8247
8358
  // src/components/Grid/GridChild.tsx
8248
- var import_jsx_runtime240 = require("react/jsx-runtime");
8359
+ var import_jsx_runtime244 = require("react/jsx-runtime");
8249
8360
  var isRelativeGridColumn = (type) => {
8250
8361
  return type === "all" || type === "firstHalf" || type === "secondHalf";
8251
8362
  };
@@ -8295,7 +8406,7 @@ var GridChild = (props) => {
8295
8406
  firstHalf: "first-half",
8296
8407
  secondHalf: "second-half"
8297
8408
  };
8298
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
8409
+ return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
8299
8410
  "div",
8300
8411
  {
8301
8412
  ...getBaseHTMLProps(
@@ -8316,7 +8427,7 @@ var GridChild = (props) => {
8316
8427
  GridChild.displayName = "GridChild";
8317
8428
 
8318
8429
  // src/components/InlineButton/InlineButton.tsx
8319
- var import_react83 = require("react");
8430
+ var import_react87 = require("react");
8320
8431
 
8321
8432
  // src/components/InlineButton/InlineButton.module.css
8322
8433
  var InlineButton_default = {
@@ -8324,11 +8435,11 @@ var InlineButton_default = {
8324
8435
  };
8325
8436
 
8326
8437
  // src/components/InlineButton/InlineButton.tsx
8327
- var import_jsx_runtime241 = require("react/jsx-runtime");
8328
- var InlineButton = (0, import_react83.forwardRef)(
8438
+ var import_jsx_runtime245 = require("react/jsx-runtime");
8439
+ var InlineButton = (0, import_react87.forwardRef)(
8329
8440
  (props, ref) => {
8330
8441
  const { className, ...rest } = props;
8331
- return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
8442
+ return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
8332
8443
  "button",
8333
8444
  {
8334
8445
  ref,
@@ -8347,11 +8458,11 @@ var InlineButton = (0, import_react83.forwardRef)(
8347
8458
  );
8348
8459
 
8349
8460
  // src/components/InlineEdit/InlineEditTextArea.tsx
8350
- var import_react86 = require("react");
8461
+ var import_react90 = require("react");
8351
8462
 
8352
8463
  // src/components/InlineEdit/InlineEdit.tsx
8353
- var import_react84 = require("react");
8354
- var import_jsx_runtime242 = require("react/jsx-runtime");
8464
+ var import_react88 = require("react");
8465
+ var import_jsx_runtime246 = require("react/jsx-runtime");
8355
8466
  var InlineEdit = (props) => {
8356
8467
  const {
8357
8468
  emptiable,
@@ -8363,8 +8474,8 @@ var InlineEdit = (props) => {
8363
8474
  inputRef,
8364
8475
  children
8365
8476
  } = props;
8366
- const [editingValue, setEditingValue] = (0, import_react84.useState)(value != null ? value : "");
8367
- const [isEditing, setIsEditing] = (0, import_react84.useState)(false);
8477
+ const [editingValue, setEditingValue] = (0, import_react88.useState)(value != null ? value : "");
8478
+ const [isEditing, setIsEditing] = (0, import_react88.useState)(false);
8368
8479
  const onChangeHandler = (e) => {
8369
8480
  setEditingValue(e.target.value);
8370
8481
  onChange && onChange();
@@ -8391,8 +8502,8 @@ var InlineEdit = (props) => {
8391
8502
  useOnKeyDown(["Enter"], () => onExitHandler());
8392
8503
  useOnKeyDown(["Escape"], () => onExitHandler());
8393
8504
  useOnClickOutside(inputRef.current, () => onExitHandler());
8394
- const inputChild = import_react84.Children.only(
8395
- (0, import_react84.isValidElement)(children) && (0, import_react84.cloneElement)(children, {
8505
+ const inputChild = import_react88.Children.only(
8506
+ (0, import_react88.isValidElement)(children) && (0, import_react88.cloneElement)(children, {
8396
8507
  onChange: onChangeHandler,
8397
8508
  onBlur: onBlurHandler,
8398
8509
  onFocus: onFocusHandler,
@@ -8401,12 +8512,12 @@ var InlineEdit = (props) => {
8401
8512
  emptiable
8402
8513
  })
8403
8514
  );
8404
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(import_jsx_runtime242.Fragment, { children: inputChild });
8515
+ return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(import_jsx_runtime246.Fragment, { children: inputChild });
8405
8516
  };
8406
8517
  InlineEdit.displayName = "InlineEdit";
8407
8518
 
8408
8519
  // src/components/InlineEdit/InlineTextArea.tsx
8409
- var import_react85 = require("react");
8520
+ var import_react89 = require("react");
8410
8521
 
8411
8522
  // src/components/InlineEdit/InlineEdit.module.css
8412
8523
  var InlineEdit_default = {
@@ -8419,16 +8530,16 @@ var InlineEdit_default = {
8419
8530
  };
8420
8531
 
8421
8532
  // 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: [
8533
+ var import_jsx_runtime247 = require("react/jsx-runtime");
8534
+ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(VisuallyHidden, { id, as: "span", children: [
8424
8535
  "Escape, Enter eller Tab for \xE5 lagre.",
8425
8536
  " ",
8426
8537
  !emptiable && "Inputfeltet er ikke t\xF8mmbar."
8427
8538
  ] });
8428
8539
 
8429
8540
  // src/components/InlineEdit/InlineTextArea.tsx
8430
- var import_jsx_runtime244 = require("react/jsx-runtime");
8431
- var InlineTextArea = (0, import_react85.forwardRef)((props, ref) => {
8541
+ var import_jsx_runtime248 = require("react/jsx-runtime");
8542
+ var InlineTextArea = (0, import_react89.forwardRef)((props, ref) => {
8432
8543
  const {
8433
8544
  id,
8434
8545
  error,
@@ -8440,18 +8551,18 @@ var InlineTextArea = (0, import_react85.forwardRef)((props, ref) => {
8440
8551
  hideIcon,
8441
8552
  ...rest
8442
8553
  } = props;
8443
- const genereatedId = (0, import_react85.useId)();
8554
+ const genereatedId = (0, import_react89.useId)();
8444
8555
  const uniqueId = id != null ? id : `${genereatedId}-InlineTextArea`;
8445
8556
  const hasErrorMessage = !!errorMessage;
8446
8557
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
8447
8558
  const hasError = !!error;
8448
8559
  const hasErrorState = hasError || hasErrorMessage;
8449
8560
  const descId = derivativeIdGenerator(uniqueId, "desc");
8450
- const inputRef = (0, import_react85.useRef)(null);
8561
+ const inputRef = (0, import_react89.useRef)(null);
8451
8562
  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)(
8563
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8564
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)("div", { className: Input_default["input-group"], children: [
8565
+ !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
8455
8566
  "span",
8456
8567
  {
8457
8568
  onClick: () => {
@@ -8459,10 +8570,10 @@ var InlineTextArea = (0, import_react85.forwardRef)((props, ref) => {
8459
8570
  (_a = inputRef.current) == null ? void 0 : _a.focus();
8460
8571
  },
8461
8572
  className: InlineEdit_default["icon-wrapper"],
8462
- children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8573
+ children: /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8463
8574
  }
8464
8575
  ),
8465
- /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
8576
+ /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
8466
8577
  "textarea",
8467
8578
  {
8468
8579
  ...rest,
@@ -8494,12 +8605,12 @@ var InlineTextArea = (0, import_react85.forwardRef)((props, ref) => {
8494
8605
  InlineTextArea.displayName = "InlineTextArea";
8495
8606
 
8496
8607
  // src/components/InlineEdit/InlineEditTextArea.tsx
8497
- var import_jsx_runtime245 = require("react/jsx-runtime");
8498
- var InlineEditTextArea = (0, import_react86.forwardRef)((props, ref) => {
8608
+ var import_jsx_runtime249 = require("react/jsx-runtime");
8609
+ var InlineEditTextArea = (0, import_react90.forwardRef)((props, ref) => {
8499
8610
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
8500
- const textareaRef = (0, import_react86.useRef)(null);
8611
+ const textareaRef = (0, import_react90.useRef)(null);
8501
8612
  const combinedRef = useCombinedRef(ref, textareaRef);
8502
- return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
8613
+ return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8503
8614
  InlineEdit,
8504
8615
  {
8505
8616
  onSetValue,
@@ -8509,18 +8620,18 @@ var InlineEditTextArea = (0, import_react86.forwardRef)((props, ref) => {
8509
8620
  onFocus,
8510
8621
  onChange,
8511
8622
  onBlur,
8512
- children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(InlineTextArea, { ref: combinedRef, ...rest })
8623
+ children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(InlineTextArea, { ref: combinedRef, ...rest })
8513
8624
  }
8514
8625
  );
8515
8626
  });
8516
8627
 
8517
8628
  // src/components/InlineEdit/InlineEditInput.tsx
8518
- var import_react88 = require("react");
8629
+ var import_react92 = require("react");
8519
8630
 
8520
8631
  // 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)(
8632
+ var import_react91 = require("react");
8633
+ var import_jsx_runtime250 = require("react/jsx-runtime");
8634
+ var InlineInput = (0, import_react91.forwardRef)(
8524
8635
  (props, ref) => {
8525
8636
  const {
8526
8637
  id,
@@ -8533,18 +8644,18 @@ var InlineInput = (0, import_react87.forwardRef)(
8533
8644
  hideIcon,
8534
8645
  ...rest
8535
8646
  } = props;
8536
- const genereatedId = (0, import_react87.useId)();
8647
+ const genereatedId = (0, import_react91.useId)();
8537
8648
  const uniqueId = id != null ? id : `${genereatedId}-InlineInput`;
8538
8649
  const hasErrorMessage = !!errorMessage;
8539
8650
  const hasError = !!error;
8540
8651
  const hasErrorState = hasError || hasErrorMessage;
8541
8652
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
8542
8653
  const descId = derivativeIdGenerator(uniqueId, "desc");
8543
- const inputRef = (0, import_react87.useRef)(null);
8654
+ const inputRef = (0, import_react91.useRef)(null);
8544
8655
  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)(
8656
+ return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: InlineEdit_default.container, style: { width }, children: [
8657
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: Input_default["input-group"], children: [
8658
+ !isEditing && !hideIcon && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8548
8659
  "span",
8549
8660
  {
8550
8661
  onClick: () => {
@@ -8552,10 +8663,10 @@ var InlineInput = (0, import_react87.forwardRef)(
8552
8663
  (_a = inputRef.current) == null ? void 0 : _a.focus();
8553
8664
  },
8554
8665
  className: InlineEdit_default["icon-wrapper"],
8555
- children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8666
+ children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon, { icon: EditIcon, iconSize: "small" })
8556
8667
  }
8557
8668
  ),
8558
- /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
8669
+ /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8559
8670
  "input",
8560
8671
  {
8561
8672
  ...rest,
@@ -8586,12 +8697,12 @@ var InlineInput = (0, import_react87.forwardRef)(
8586
8697
  InlineInput.displayName = "InlineInput";
8587
8698
 
8588
8699
  // src/components/InlineEdit/InlineEditInput.tsx
8589
- var import_jsx_runtime247 = require("react/jsx-runtime");
8590
- var InlineEditInput = (0, import_react88.forwardRef)((props, ref) => {
8700
+ var import_jsx_runtime251 = require("react/jsx-runtime");
8701
+ var InlineEditInput = (0, import_react92.forwardRef)((props, ref) => {
8591
8702
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
8592
- const inputRef = (0, import_react88.useRef)(null);
8703
+ const inputRef = (0, import_react92.useRef)(null);
8593
8704
  const combinedRef = useCombinedRef(ref, inputRef);
8594
- return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
8705
+ return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
8595
8706
  InlineEdit,
8596
8707
  {
8597
8708
  onSetValue,
@@ -8601,13 +8712,13 @@ var InlineEditInput = (0, import_react88.forwardRef)((props, ref) => {
8601
8712
  onFocus,
8602
8713
  onChange,
8603
8714
  onBlur,
8604
- children: /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(InlineInput, { ...rest, ref: combinedRef })
8715
+ children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(InlineInput, { ...rest, ref: combinedRef })
8605
8716
  }
8606
8717
  );
8607
8718
  });
8608
8719
 
8609
8720
  // src/components/InternalHeader/InternalHeader.tsx
8610
- var import_react90 = require("react");
8721
+ var import_react94 = require("react");
8611
8722
 
8612
8723
  // src/components/InternalHeader/InternalHeader.module.css
8613
8724
  var InternalHeader_default = {
@@ -8663,10 +8774,10 @@ var InternalHeader_default = {
8663
8774
  };
8664
8775
 
8665
8776
  // 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)(
8777
+ var import_react93 = require("react");
8778
+ var import_jsx_runtime252 = require("react/jsx-runtime");
8779
+ var NavigationItem = (0, import_react93.forwardRef)(({ isCurrent, ...rest }, ref) => {
8780
+ return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
8670
8781
  "a",
8671
8782
  {
8672
8783
  ...rest,
@@ -8683,7 +8794,7 @@ var NavigationItem = (0, import_react89.forwardRef)(({ isCurrent, ...rest }, ref
8683
8794
  });
8684
8795
 
8685
8796
  // src/components/InternalHeader/InternalHeader.tsx
8686
- var import_jsx_runtime249 = require("react/jsx-runtime");
8797
+ var import_jsx_runtime253 = require("react/jsx-runtime");
8687
8798
  var InternalHeader = (props) => {
8688
8799
  const {
8689
8800
  applicationDesc,
@@ -8700,11 +8811,11 @@ var InternalHeader = (props) => {
8700
8811
  htmlProps,
8701
8812
  ...rest
8702
8813
  } = props;
8703
- const [contextMenuIsClosed, setContextMenuIsClosed] = (0, import_react90.useState)(true);
8704
- const [currentPage, setCurrentPage] = (0, import_react90.useState)(
8814
+ const [contextMenuIsClosed, setContextMenuIsClosed] = (0, import_react94.useState)(true);
8815
+ const [currentPage, setCurrentPage] = (0, import_react94.useState)(
8705
8816
  currentPageHref
8706
8817
  );
8707
- const buttonRef = (0, import_react90.useRef)(null);
8818
+ const buttonRef = (0, import_react94.useRef)(null);
8708
8819
  const handleCurrentPageChange = (href) => {
8709
8820
  setCurrentPage(href);
8710
8821
  onCurrentPageChange && onCurrentPageChange();
@@ -8717,7 +8828,7 @@ var InternalHeader = (props) => {
8717
8828
  const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
8718
8829
  const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
8719
8830
  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)(
8831
+ const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8721
8832
  "ul",
8722
8833
  {
8723
8834
  className: cn(
@@ -8728,7 +8839,7 @@ var InternalHeader = (props) => {
8728
8839
  children: navItems.map((item, index) => {
8729
8840
  const { href, ...rest2 } = item;
8730
8841
  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)(
8842
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8732
8843
  NavigationItem,
8733
8844
  {
8734
8845
  href,
@@ -8742,7 +8853,7 @@ var InternalHeader = (props) => {
8742
8853
  ) }) : null;
8743
8854
  const hasContextMenu = hasContextMenuElements || !!user || hasNavInContextMenu;
8744
8855
  const hasContextMenuLargeScreen = hasContextMenuElements || !!user;
8745
- return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
8856
+ return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
8746
8857
  "div",
8747
8858
  {
8748
8859
  ...getBaseHTMLProps(
@@ -8757,7 +8868,7 @@ var InternalHeader = (props) => {
8757
8868
  rest
8758
8869
  ),
8759
8870
  children: [
8760
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8871
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8761
8872
  "a",
8762
8873
  {
8763
8874
  href: applicationHref,
@@ -8766,10 +8877,10 @@ var InternalHeader = (props) => {
8766
8877
  children: applicationName
8767
8878
  }
8768
8879
  ) : 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"] }),
8880
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
8881
+ (hasContextMenu || navigation !== null) && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { className: InternalHeader_default["bar-separator"] }),
8771
8882
  navigation,
8772
- hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
8883
+ hasContextMenu && /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
8773
8884
  "div",
8774
8885
  {
8775
8886
  className: cn(
@@ -8778,7 +8889,7 @@ var InternalHeader = (props) => {
8778
8889
  !hasContextMenuLargeScreen && hasSmallScreenBreakpoint && InternalHeader_default[`context-menu-group--small-screen-only-${smallScreenBreakpoint}`]
8779
8890
  ),
8780
8891
  children: [
8781
- /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8892
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8782
8893
  Button,
8783
8894
  {
8784
8895
  ref: buttonRef,
@@ -8790,7 +8901,7 @@ var InternalHeader = (props) => {
8790
8901
  "aria-label": "\xE5pne meny"
8791
8902
  }
8792
8903
  ),
8793
- /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
8904
+ /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
8794
8905
  OverflowMenu,
8795
8906
  {
8796
8907
  isOpen: !contextMenuIsClosed,
@@ -8798,8 +8909,8 @@ var InternalHeader = (props) => {
8798
8909
  anchorRef: buttonRef,
8799
8910
  className: InternalHeader_default["context-menu"],
8800
8911
  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)(
8912
+ 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 }) }),
8913
+ hasNavInContextMenu && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8803
8914
  "nav",
8804
8915
  {
8805
8916
  "aria-label": "sidenavigasjon",
@@ -8807,10 +8918,10 @@ var InternalHeader = (props) => {
8807
8918
  InternalHeader_default["nav--in-menu--small-screen"],
8808
8919
  InternalHeader_default[`nav--in-menu--small-screen-${smallScreenBreakpoint}`]
8809
8920
  ),
8810
- children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(OverflowMenuLink, { ...item })) })
8921
+ children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuLink, { ...item })) })
8811
8922
  }
8812
8923
  ),
8813
- hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
8924
+ hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8814
8925
  OverflowMenuDivider,
8815
8926
  {
8816
8927
  className: cn(
@@ -8819,8 +8930,8 @@ var InternalHeader = (props) => {
8819
8930
  )
8820
8931
  }
8821
8932
  ),
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)(
8933
+ hasContextMenuElements && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuList, { children: contextMenuItems.map((item) => {
8934
+ return item.href ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(OverflowMenuLink, { ...item }) : /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
8824
8935
  OverflowMenuButton,
8825
8936
  {
8826
8937
  ...item
@@ -8840,7 +8951,7 @@ var InternalHeader = (props) => {
8840
8951
  InternalHeader.displayName = "InternalHeader";
8841
8952
 
8842
8953
  // src/components/List/List.tsx
8843
- var import_react91 = require("react");
8954
+ var import_react95 = require("react");
8844
8955
 
8845
8956
  // src/components/List/List.module.css
8846
8957
  var List_default = {
@@ -8852,8 +8963,8 @@ var List_default = {
8852
8963
  };
8853
8964
 
8854
8965
  // src/components/List/List.tsx
8855
- var import_jsx_runtime250 = require("react/jsx-runtime");
8856
- var List = (0, import_react91.forwardRef)((props, ref) => {
8966
+ var import_jsx_runtime254 = require("react/jsx-runtime");
8967
+ var List = (0, import_react95.forwardRef)((props, ref) => {
8857
8968
  const {
8858
8969
  listType = "unordered",
8859
8970
  typographyType = "inherit",
@@ -8864,7 +8975,7 @@ var List = (0, import_react91.forwardRef)((props, ref) => {
8864
8975
  ...rest
8865
8976
  } = props;
8866
8977
  const List2 = listType === "ordered" ? "ol" : "ul";
8867
- return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
8978
+ return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
8868
8979
  List2,
8869
8980
  {
8870
8981
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -8881,17 +8992,17 @@ var List = (0, import_react91.forwardRef)((props, ref) => {
8881
8992
  List.displayName = "List";
8882
8993
 
8883
8994
  // 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)(
8995
+ var import_react96 = require("react");
8996
+ var import_jsx_runtime255 = require("react/jsx-runtime");
8997
+ var ListItem = (0, import_react96.forwardRef)(
8887
8998
  ({ className, ...rest }, ref) => {
8888
- return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)("li", { ref, ...rest, className: cn(className, List_default.li) });
8999
+ return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("li", { ref, ...rest, className: cn(className, List_default.li) });
8889
9000
  }
8890
9001
  );
8891
9002
  ListItem.displayName = "ListItem";
8892
9003
 
8893
9004
  // src/components/LocalMessage/LocalMessage.tsx
8894
- var import_react93 = require("react");
9005
+ var import_react97 = require("react");
8895
9006
 
8896
9007
  // src/components/LocalMessage/LocalMessage.module.css
8897
9008
  var LocalMessage_default = {
@@ -8912,7 +9023,7 @@ var LocalMessage_default = {
8912
9023
  };
8913
9024
 
8914
9025
  // src/components/LocalMessage/LocalMessage.tsx
8915
- var import_jsx_runtime252 = require("react/jsx-runtime");
9026
+ var import_jsx_runtime256 = require("react/jsx-runtime");
8916
9027
  var icons2 = {
8917
9028
  info: InfoIcon,
8918
9029
  danger: ErrorIcon,
@@ -8920,7 +9031,7 @@ var icons2 = {
8920
9031
  success: CheckCircledIcon,
8921
9032
  tips: TipIcon
8922
9033
  };
8923
- var LocalMessage = (0, import_react93.forwardRef)(
9034
+ var LocalMessage = (0, import_react97.forwardRef)(
8924
9035
  (props, ref) => {
8925
9036
  const {
8926
9037
  message,
@@ -8935,11 +9046,11 @@ var LocalMessage = (0, import_react93.forwardRef)(
8935
9046
  htmlProps,
8936
9047
  ...rest
8937
9048
  } = props;
8938
- const [isClosed, setClosed] = (0, import_react93.useState)(false);
9049
+ const [isClosed, setClosed] = (0, import_react97.useState)(false);
8939
9050
  if (isClosed) {
8940
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(import_jsx_runtime252.Fragment, {});
9051
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(import_jsx_runtime256.Fragment, {});
8941
9052
  }
8942
- return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
9053
+ return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
8943
9054
  "div",
8944
9055
  {
8945
9056
  ref,
@@ -8958,15 +9069,15 @@ var LocalMessage = (0, import_react93.forwardRef)(
8958
9069
  ),
8959
9070
  style: { ...htmlProps == null ? void 0 : htmlProps.style, width },
8960
9071
  children: [
8961
- /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
9072
+ /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
8962
9073
  Icon,
8963
9074
  {
8964
9075
  icon: icons2[purpose],
8965
9076
  className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
8966
9077
  }
8967
9078
  ),
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)(
9079
+ /* @__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 }) }),
9080
+ closable && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
8970
9081
  Button,
8971
9082
  {
8972
9083
  icon: CloseIcon,
@@ -8988,7 +9099,7 @@ var LocalMessage = (0, import_react93.forwardRef)(
8988
9099
  LocalMessage.displayName = "LocalMessage";
8989
9100
 
8990
9101
  // src/components/Modal/Modal.tsx
8991
- var import_react94 = require("react");
9102
+ var import_react98 = require("react");
8992
9103
  var import_react_dom3 = require("react-dom");
8993
9104
 
8994
9105
  // src/components/Modal/Backdrop/Backdrop.utils.tsx
@@ -9026,8 +9137,8 @@ var Modal_default = {
9026
9137
  };
9027
9138
 
9028
9139
  // src/components/Modal/Modal.tsx
9029
- var import_jsx_runtime253 = require("react/jsx-runtime");
9030
- var Modal = (0, import_react94.forwardRef)((props, ref) => {
9140
+ var import_jsx_runtime257 = require("react/jsx-runtime");
9141
+ var Modal = (0, import_react98.forwardRef)((props, ref) => {
9031
9142
  const {
9032
9143
  isOpen = false,
9033
9144
  parentElement = document.body,
@@ -9041,7 +9152,7 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9041
9152
  htmlProps,
9042
9153
  ...rest
9043
9154
  } = props;
9044
- const generatedId = (0, import_react94.useId)();
9155
+ const generatedId = (0, import_react98.useId)();
9045
9156
  const modalId = id != null ? id : `${generatedId}-modal`;
9046
9157
  const headerId = `${modalId}-header`;
9047
9158
  const modalRef = useFocusTrap(isOpen, initialFocusRef);
@@ -9053,7 +9164,7 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9053
9164
  onClose();
9054
9165
  }
9055
9166
  };
9056
- (0, import_react94.useEffect)(() => {
9167
+ (0, import_react98.useEffect)(() => {
9057
9168
  if (isOpen) {
9058
9169
  handleElementWithBackdropMount(document.body);
9059
9170
  } else {
@@ -9065,14 +9176,14 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9065
9176
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
9066
9177
  const hasTransitionedIn = useMountTransition(isOpen, 200);
9067
9178
  return isOpen || hasTransitionedIn ? (0, import_react_dom3.createPortal)(
9068
- /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
9179
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9069
9180
  "div",
9070
9181
  {
9071
9182
  className: cn(
9072
9183
  Modal_default.backdrop,
9073
9184
  hasTransitionedIn && isOpen ? Modal_default["backdrop--visible"] : Modal_default["backdrop--hidden"]
9074
9185
  ),
9075
- children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
9186
+ children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
9076
9187
  Paper,
9077
9188
  {
9078
9189
  ...getBaseHTMLProps(
@@ -9090,11 +9201,11 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9090
9201
  id: modalId,
9091
9202
  elevation: 4,
9092
9203
  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 }),
9204
+ /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)("div", { className: Modal_default.content, children: [
9205
+ 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
9206
  children
9096
9207
  ] }),
9097
- onClose && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
9208
+ onClose && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9098
9209
  Button,
9099
9210
  {
9100
9211
  size: "small",
@@ -9116,12 +9227,12 @@ var Modal = (0, import_react94.forwardRef)((props, ref) => {
9116
9227
  Modal.displayName = "Modal";
9117
9228
 
9118
9229
  // 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)(
9230
+ var import_react99 = require("react");
9231
+ var import_jsx_runtime258 = require("react/jsx-runtime");
9232
+ var ModalBody = (0, import_react99.forwardRef)(
9122
9233
  (props, ref) => {
9123
9234
  const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
9124
- return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
9235
+ return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9125
9236
  "div",
9126
9237
  {
9127
9238
  ref,
@@ -9145,17 +9256,17 @@ var ModalBody = (0, import_react95.forwardRef)(
9145
9256
  ModalBody.displayName = "ModalBody";
9146
9257
 
9147
9258
  // 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)(
9259
+ var import_react100 = require("react");
9260
+ var import_jsx_runtime259 = require("react/jsx-runtime");
9261
+ var ModalActions = (0, import_react100.forwardRef)(
9151
9262
  ({ className, ...rest }, ref) => {
9152
- return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
9263
+ return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
9153
9264
  }
9154
9265
  );
9155
9266
  ModalActions.displayName = "ModalActions";
9156
9267
 
9157
9268
  // src/components/Pagination/Pagination.tsx
9158
- var import_react99 = require("react");
9269
+ var import_react103 = require("react");
9159
9270
 
9160
9271
  // src/components/Pagination/Pagination.module.css
9161
9272
  var Pagination_default = {
@@ -9218,7 +9329,7 @@ function PaginationGenerator(pagesAmount, activePage) {
9218
9329
  }
9219
9330
 
9220
9331
  // src/components/Select/Select.tsx
9221
- var import_react97 = require("react");
9332
+ var import_react101 = require("react");
9222
9333
  var import_react_select2 = __toESM(require("react-select"));
9223
9334
 
9224
9335
  // src/components/Select/Select.module.css
@@ -9513,7 +9624,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
9513
9624
 
9514
9625
  // src/components/Select/SelectComponents.tsx
9515
9626
  var import_react_select = require("react-select");
9516
- var import_jsx_runtime256 = require("react/jsx-runtime");
9627
+ var import_jsx_runtime260 = require("react/jsx-runtime");
9517
9628
  var {
9518
9629
  Option,
9519
9630
  NoOptionsMessage,
@@ -9534,27 +9645,27 @@ var getIndicatorIconSize = (componentSize) => {
9534
9645
  return "small";
9535
9646
  }
9536
9647
  };
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) }),
9648
+ var DDSOption = (props, componentSize) => /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Option, { ...props, children: [
9649
+ props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
9539
9650
  props.children
9540
9651
  ] });
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" }) });
9652
+ var CustomOption = (props, Element) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Option, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Element, { ...props }) });
9653
+ 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 }) });
9654
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
9655
+ 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) }) });
9656
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
9546
9657
  var DDSDropdownIndicator = (props, size2) => {
9547
9658
  const { className, ...rest } = props;
9548
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9659
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9549
9660
  DropdownIndicator,
9550
9661
  {
9551
9662
  ...rest,
9552
9663
  className: cn(className, Select_default["dropdown-indicator"]),
9553
- children: /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Icon, { icon: ChevronDownIcon, iconSize: getIndicatorIconSize(size2) })
9664
+ children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Icon, { icon: ChevronDownIcon, iconSize: getIndicatorIconSize(size2) })
9554
9665
  }
9555
9666
  );
9556
9667
  };
9557
- var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9668
+ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9558
9669
  Input2,
9559
9670
  {
9560
9671
  ...props,
@@ -9564,11 +9675,11 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, impo
9564
9675
  );
9565
9676
  var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9566
9677
  const { className, ...rest } = props;
9567
- return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9678
+ return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9568
9679
  "div",
9569
9680
  {
9570
9681
  "data-testid": dataTestId ? dataTestId + "-control" : void 0,
9571
- children: /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
9682
+ children: /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
9572
9683
  Control,
9573
9684
  {
9574
9685
  ...rest,
@@ -9579,7 +9690,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9579
9690
  readOnly && Select_default["control--readonly"]
9580
9691
  ),
9581
9692
  children: [
9582
- icon && /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
9693
+ icon && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
9583
9694
  Icon,
9584
9695
  {
9585
9696
  icon,
@@ -9596,7 +9707,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9596
9707
  };
9597
9708
 
9598
9709
  // src/components/Select/Select.tsx
9599
- var import_jsx_runtime257 = require("react/jsx-runtime");
9710
+ var import_jsx_runtime261 = require("react/jsx-runtime");
9600
9711
  var getPlaceholder = (placeholder, isMulti) => placeholder ? placeholder : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
9601
9712
  function SelectInner(props, ref) {
9602
9713
  const {
@@ -9625,7 +9736,7 @@ function SelectInner(props, ref) {
9625
9736
  "data-testid": dataTestId,
9626
9737
  ...rest
9627
9738
  } = props;
9628
- const generatedId = (0, import_react97.useId)();
9739
+ const generatedId = (0, import_react101.useId)();
9629
9740
  const uniqueId = id != null ? id : `${generatedId}-select`;
9630
9741
  const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
9631
9742
  const hasLabel = !!label;
@@ -9685,7 +9796,7 @@ function SelectInner(props, ref) {
9685
9796
  openMenuOnClick: readOnly ? false : props.openMenuOnClick ? props.openMenuOnClick : void 0,
9686
9797
  ...rest
9687
9798
  };
9688
- return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
9799
+ return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
9689
9800
  "div",
9690
9801
  {
9691
9802
  className: cn(
@@ -9696,7 +9807,7 @@ function SelectInner(props, ref) {
9696
9807
  ),
9697
9808
  style: { ...style, width },
9698
9809
  children: [
9699
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
9810
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(
9700
9811
  Label,
9701
9812
  {
9702
9813
  htmlFor: uniqueId,
@@ -9706,17 +9817,17 @@ function SelectInner(props, ref) {
9706
9817
  children: label
9707
9818
  }
9708
9819
  ),
9709
- /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
9820
+ /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
9710
9821
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
9711
9822
  ]
9712
9823
  }
9713
9824
  );
9714
9825
  }
9715
- var Select = (0, import_react97.forwardRef)(SelectInner);
9826
+ var Select = (0, import_react101.forwardRef)(SelectInner);
9716
9827
  Select.displayName = "Select";
9717
9828
 
9718
9829
  // src/components/Select/NativeSelect/NativeSelect.tsx
9719
- var import_react98 = require("react");
9830
+ var import_react102 = require("react");
9720
9831
 
9721
9832
  // src/components/Select/NativeSelect/NativeSelect.module.css
9722
9833
  var NativeSelect_default = {
@@ -9731,8 +9842,8 @@ var NativeSelect_default = {
9731
9842
  };
9732
9843
 
9733
9844
  // src/components/Select/NativeSelect/NativeSelect.tsx
9734
- var import_jsx_runtime258 = require("react/jsx-runtime");
9735
- var NativeSelect = (0, import_react98.forwardRef)(
9845
+ var import_jsx_runtime262 = require("react/jsx-runtime");
9846
+ var NativeSelect = (0, import_react102.forwardRef)(
9736
9847
  (props, ref) => {
9737
9848
  const {
9738
9849
  id,
@@ -9751,7 +9862,7 @@ var NativeSelect = (0, import_react98.forwardRef)(
9751
9862
  style,
9752
9863
  ...rest
9753
9864
  } = props;
9754
- const generatedId = (0, import_react98.useId)();
9865
+ const generatedId = (0, import_react102.useId)();
9755
9866
  const uniqueId = id != null ? id : `${generatedId}-native-select`;
9756
9867
  const hasErrorMessage = !!errorMessage;
9757
9868
  const hasTip = !!tip;
@@ -9763,8 +9874,8 @@ var NativeSelect = (0, import_react98.forwardRef)(
9763
9874
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9764
9875
  ["--dds-native-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
9765
9876
  };
9766
- return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("div", { children: [
9767
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9877
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)("div", { children: [
9878
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
9768
9879
  Label,
9769
9880
  {
9770
9881
  className: Input_default.label,
@@ -9774,8 +9885,8 @@ var NativeSelect = (0, import_react98.forwardRef)(
9774
9885
  children: label
9775
9886
  }
9776
9887
  ),
9777
- /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("div", { className: NativeSelect_default.container, children: [
9778
- /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9888
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)("div", { className: NativeSelect_default.container, children: [
9889
+ /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
9779
9890
  "select",
9780
9891
  {
9781
9892
  ref,
@@ -9813,7 +9924,7 @@ var NativeSelect = (0, import_react98.forwardRef)(
9813
9924
  children
9814
9925
  }
9815
9926
  ),
9816
- !multiple && /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
9927
+ !multiple && /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
9817
9928
  Icon,
9818
9929
  {
9819
9930
  icon: ChevronDownIcon,
@@ -9826,9 +9937,9 @@ var NativeSelect = (0, import_react98.forwardRef)(
9826
9937
  ] });
9827
9938
  }
9828
9939
  );
9829
- var NativeSelectPlaceholder = (0, import_react98.forwardRef)((props, ref) => {
9940
+ var NativeSelectPlaceholder = (0, import_react102.forwardRef)((props, ref) => {
9830
9941
  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 });
9942
+ return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
9832
9943
  });
9833
9944
  NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
9834
9945
 
@@ -9836,8 +9947,8 @@ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
9836
9947
  var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2 }));
9837
9948
 
9838
9949
  // src/components/Pagination/Pagination.tsx
9839
- var import_jsx_runtime259 = require("react/jsx-runtime");
9840
- var Pagination = (0, import_react99.forwardRef)(
9950
+ var import_jsx_runtime263 = require("react/jsx-runtime");
9951
+ var Pagination = (0, import_react103.forwardRef)(
9841
9952
  (props, ref) => {
9842
9953
  const {
9843
9954
  itemsAmount,
@@ -9860,8 +9971,8 @@ var Pagination = (0, import_react99.forwardRef)(
9860
9971
  htmlProps,
9861
9972
  ...rest
9862
9973
  } = props;
9863
- const [activePage, setActivePage] = (0, import_react99.useState)(defaultActivePage);
9864
- const [itemsPerPage, setItemsPerPage] = (0, import_react99.useState)(defaultItemsPerPage);
9974
+ const [activePage, setActivePage] = (0, import_react103.useState)(defaultActivePage);
9975
+ const [itemsPerPage, setItemsPerPage] = (0, import_react103.useState)(defaultItemsPerPage);
9865
9976
  const pagesLength = Math.ceil(itemsAmount / itemsPerPage);
9866
9977
  const items = PaginationGenerator(pagesLength, activePage);
9867
9978
  const onPageChange = (event, page) => {
@@ -9880,7 +9991,7 @@ var Pagination = (0, import_react99.forwardRef)(
9880
9991
  };
9881
9992
  const listItems = items.length > 0 ? items.map((item, i2) => {
9882
9993
  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)(
9994
+ return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9884
9995
  Button,
9885
9996
  {
9886
9997
  purpose: isActive ? "primary" : "secondary",
@@ -9891,7 +10002,7 @@ var Pagination = (0, import_react99.forwardRef)(
9891
10002
  "aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
9892
10003
  children: item
9893
10004
  }
9894
- ) : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10005
+ ) : /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9895
10006
  Icon,
9896
10007
  {
9897
10008
  icon: MoreHorizontalIcon,
@@ -9899,7 +10010,7 @@ var Pagination = (0, import_react99.forwardRef)(
9899
10010
  }
9900
10011
  ) }, `pagination-item-${i2}`);
9901
10012
  }) : void 0;
9902
- const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10013
+ const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9903
10014
  Button,
9904
10015
  {
9905
10016
  purpose: "secondary",
@@ -9911,7 +10022,7 @@ var Pagination = (0, import_react99.forwardRef)(
9911
10022
  "aria-label": "G\xE5 til forrige siden"
9912
10023
  }
9913
10024
  );
9914
- const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10025
+ const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9915
10026
  Button,
9916
10027
  {
9917
10028
  purpose: "secondary",
@@ -9936,8 +10047,8 @@ var Pagination = (0, import_react99.forwardRef)(
9936
10047
  };
9937
10048
  const isOnFirstPage = activePage === 1;
9938
10049
  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)(
10050
+ 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: [
10051
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9941
10052
  "li",
9942
10053
  {
9943
10054
  className: cn(
@@ -9949,7 +10060,7 @@ var Pagination = (0, import_react99.forwardRef)(
9949
10060
  }
9950
10061
  ),
9951
10062
  listItems,
9952
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10063
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9953
10064
  "li",
9954
10065
  {
9955
10066
  className: cn(
@@ -9961,8 +10072,8 @@ var Pagination = (0, import_react99.forwardRef)(
9961
10072
  }
9962
10073
  )
9963
10074
  ] }) }) : 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)(
10075
+ 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: [
10076
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9966
10077
  "li",
9967
10078
  {
9968
10079
  className: cn(
@@ -9970,7 +10081,7 @@ var Pagination = (0, import_react99.forwardRef)(
9970
10081
  isOnFirstPage && Pagination_default["list__item--hidden"]
9971
10082
  ),
9972
10083
  "aria-hidden": isOnFirstPage,
9973
- children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10084
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9974
10085
  Button,
9975
10086
  {
9976
10087
  purpose: "secondary",
@@ -9984,7 +10095,7 @@ var Pagination = (0, import_react99.forwardRef)(
9984
10095
  )
9985
10096
  }
9986
10097
  ),
9987
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10098
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9988
10099
  "li",
9989
10100
  {
9990
10101
  className: cn(
@@ -9995,7 +10106,7 @@ var Pagination = (0, import_react99.forwardRef)(
9995
10106
  children: previousPageButton
9996
10107
  }
9997
10108
  ),
9998
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10109
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
9999
10110
  Button,
10000
10111
  {
10001
10112
  size: "small",
@@ -10005,7 +10116,7 @@ var Pagination = (0, import_react99.forwardRef)(
10005
10116
  children: activePage
10006
10117
  }
10007
10118
  ) }),
10008
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10119
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10009
10120
  "li",
10010
10121
  {
10011
10122
  className: cn(
@@ -10016,7 +10127,7 @@ var Pagination = (0, import_react99.forwardRef)(
10016
10127
  children: nextPageButton
10017
10128
  }
10018
10129
  ),
10019
- /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10130
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10020
10131
  "li",
10021
10132
  {
10022
10133
  className: cn(
@@ -10024,7 +10135,7 @@ var Pagination = (0, import_react99.forwardRef)(
10024
10135
  isOnLastPage && Pagination_default["list__item--hidden"]
10025
10136
  ),
10026
10137
  "aria-hidden": isOnLastPage,
10027
- children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10138
+ children: /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10028
10139
  Button,
10029
10140
  {
10030
10141
  purpose: "secondary",
@@ -10041,10 +10152,10 @@ var Pagination = (0, import_react99.forwardRef)(
10041
10152
  ] }) }) : null;
10042
10153
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
10043
10154
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
10044
- return !withCounter && !withSelect ? /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(import_jsx_runtime259.Fragment, { children: [
10155
+ return !withCounter && !withSelect ? /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
10045
10156
  largeScreenNavigation,
10046
10157
  smallScreenBreakpoint && smallScreenNavigation
10047
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
10158
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
10048
10159
  "div",
10049
10160
  {
10050
10161
  ...getBaseHTMLProps(
@@ -10058,8 +10169,8 @@ var Pagination = (0, import_react99.forwardRef)(
10058
10169
  rest
10059
10170
  ),
10060
10171
  children: [
10061
- /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { className: Pagination_default.indicators, children: [
10062
- withSelect && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
10172
+ /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)("div", { className: Pagination_default.indicators, children: [
10173
+ withSelect && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10063
10174
  Select,
10064
10175
  {
10065
10176
  options: selectOptions,
@@ -10075,7 +10186,7 @@ var Pagination = (0, import_react99.forwardRef)(
10075
10186
  "aria-label": "Antall elementer per side"
10076
10187
  }
10077
10188
  ),
10078
- withCounter && /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
10189
+ withCounter && /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
10079
10190
  "Viser ",
10080
10191
  activePageFirstItem,
10081
10192
  "-",
@@ -10095,7 +10206,7 @@ Pagination.displayName = "Pagination";
10095
10206
 
10096
10207
  // src/components/Popover/Popover.tsx
10097
10208
  var import_dds_design_tokens14 = require("@norges-domstoler/dds-design-tokens");
10098
- var import_react100 = require("react");
10209
+ var import_react104 = require("react");
10099
10210
 
10100
10211
  // src/components/Popover/Popover.module.css
10101
10212
  var Popover_default = {
@@ -10106,8 +10217,8 @@ var Popover_default = {
10106
10217
  };
10107
10218
 
10108
10219
  // src/components/Popover/Popover.tsx
10109
- var import_jsx_runtime260 = require("react/jsx-runtime");
10110
- var Popover = (0, import_react100.forwardRef)(
10220
+ var import_jsx_runtime264 = require("react/jsx-runtime");
10221
+ var Popover = (0, import_react104.forwardRef)(
10111
10222
  (props, ref) => {
10112
10223
  const {
10113
10224
  title,
@@ -10147,32 +10258,37 @@ var Popover = (0, import_react100.forwardRef)(
10147
10258
  useOnClickOutside(elements, () => {
10148
10259
  if (isOpen) onClose && onClose();
10149
10260
  });
10150
- return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
10261
+ return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
10151
10262
  Paper,
10152
10263
  {
10153
- ...getBaseHTMLProps(id, className, htmlProps, rest),
10264
+ ...getBaseHTMLProps(
10265
+ id,
10266
+ cn(
10267
+ className,
10268
+ Popover_default.container,
10269
+ utilStyles_default["visibility-transition"],
10270
+ hasTransitionedIn && isOpen ? utilStyles_default["visibility-transition--open"] : utilStyles_default["visibility-transition--closed"],
10271
+ focus_default.focusable
10272
+ ),
10273
+ htmlProps,
10274
+ rest
10275
+ ),
10154
10276
  ref: multiRef,
10155
10277
  tabIndex: -1,
10156
10278
  style: { ...htmlProps.style, ...floatingStyles.floating, ...sizeProps },
10157
10279
  role: "dialog",
10158
10280
  elevation: 3,
10159
10281
  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
10282
  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)(
10283
+ 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 }),
10284
+ /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
10169
10285
  "div",
10170
10286
  {
10171
10287
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
10172
10288
  children
10173
10289
  }
10174
10290
  ),
10175
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
10291
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
10176
10292
  Button,
10177
10293
  {
10178
10294
  icon: CloseIcon,
@@ -10191,8 +10307,8 @@ var Popover = (0, import_react100.forwardRef)(
10191
10307
  Popover.displayName = "Popover";
10192
10308
 
10193
10309
  // src/components/Popover/PopoverGroup.tsx
10194
- var import_react101 = require("react");
10195
- var import_jsx_runtime261 = require("react/jsx-runtime");
10310
+ var import_react105 = require("react");
10311
+ var import_jsx_runtime265 = require("react/jsx-runtime");
10196
10312
  var PopoverGroup = ({
10197
10313
  isOpen = false,
10198
10314
  onCloseButtonClick,
@@ -10200,8 +10316,8 @@ var PopoverGroup = ({
10200
10316
  children,
10201
10317
  popoverId
10202
10318
  }) => {
10203
- const [open, setOpen] = (0, import_react101.useState)(isOpen);
10204
- const generatedId = (0, import_react101.useId)();
10319
+ const [open, setOpen] = (0, import_react105.useState)(isOpen);
10320
+ const generatedId = (0, import_react105.useId)();
10205
10321
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
10206
10322
  const handleOnCloseButtonClick = () => {
10207
10323
  setOpen(false);
@@ -10211,8 +10327,8 @@ var PopoverGroup = ({
10211
10327
  setOpen(!open);
10212
10328
  onTriggerClick && onTriggerClick();
10213
10329
  };
10214
- const buttonRef = (0, import_react101.useRef)(null);
10215
- const popoverRef = (0, import_react101.useRef)(null);
10330
+ const buttonRef = (0, import_react105.useRef)(null);
10331
+ const popoverRef = (0, import_react105.useRef)(null);
10216
10332
  useOnKeyDown(["Esc", "Escape"], () => {
10217
10333
  var _a;
10218
10334
  if (open) {
@@ -10221,14 +10337,14 @@ var PopoverGroup = ({
10221
10337
  }
10222
10338
  });
10223
10339
  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, {
10340
+ const Children8 = import_react105.Children.map(children, (child, childIndex) => {
10341
+ return (0, import_react105.isValidElement)(child) && (childIndex === 0 ? (0, import_react105.cloneElement)(child, {
10226
10342
  "aria-haspopup": "dialog",
10227
10343
  "aria-controls": uniquePopoverId,
10228
10344
  "aria-expanded": open,
10229
10345
  onClick: handleOnTriggerClick,
10230
10346
  ref: buttonRef
10231
- }) : (0, import_react101.cloneElement)(child, {
10347
+ }) : (0, import_react105.cloneElement)(child, {
10232
10348
  isOpen: open,
10233
10349
  "aria-hidden": !open,
10234
10350
  id: uniquePopoverId,
@@ -10238,21 +10354,21 @@ var PopoverGroup = ({
10238
10354
  onClose: handleClose
10239
10355
  }));
10240
10356
  });
10241
- return /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(import_jsx_runtime261.Fragment, { children: Children8 });
10357
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(import_jsx_runtime265.Fragment, { children: Children8 });
10242
10358
  };
10243
10359
  PopoverGroup.displayName = "PopoverGroup";
10244
10360
 
10245
10361
  // src/components/ProgressTracker/ProgressTracker.tsx
10246
- var import_react104 = require("react");
10362
+ var import_react108 = require("react");
10247
10363
 
10248
10364
  // src/components/ProgressTracker/ProgressTracker.context.tsx
10249
- var import_react102 = require("react");
10250
- var ProgressTrackerContext = (0, import_react102.createContext)(
10365
+ var import_react106 = require("react");
10366
+ var ProgressTrackerContext = (0, import_react106.createContext)(
10251
10367
  {
10252
10368
  activeStep: 0
10253
10369
  }
10254
10370
  );
10255
- var useProgressTrackerContext = () => (0, import_react102.useContext)(ProgressTrackerContext);
10371
+ var useProgressTrackerContext = () => (0, import_react106.useContext)(ProgressTrackerContext);
10256
10372
 
10257
10373
  // src/components/ProgressTracker/ProgressTracker.module.css
10258
10374
  var ProgressTracker_default = {
@@ -10276,8 +10392,8 @@ var ProgressTracker_default = {
10276
10392
  };
10277
10393
 
10278
10394
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
10279
- var import_react103 = require("react");
10280
- var import_jsx_runtime262 = require("react/jsx-runtime");
10395
+ var import_react107 = require("react");
10396
+ var import_jsx_runtime266 = require("react/jsx-runtime");
10281
10397
  var toItemState = (active, completed, disabled) => {
10282
10398
  if (disabled) {
10283
10399
  return "disabled";
@@ -10298,26 +10414,37 @@ var itemStateCn = {
10298
10414
  var getVisuallyHiddenText = (active, completed, index) => `${index + 1}, ${active ? "" : "Trinn, "}${completed ? "Ferdig, " : "Ikke ferdig, "}`;
10299
10415
  var ProgressTrackerItem = (props) => {
10300
10416
  const {
10417
+ id,
10418
+ className,
10419
+ htmlProps,
10301
10420
  index = 0,
10302
10421
  completed = false,
10303
10422
  disabled = false,
10423
+ onClick,
10304
10424
  icon,
10305
- children
10425
+ children,
10426
+ ...rest
10306
10427
  } = props;
10307
10428
  const { activeStep, handleStepChange } = useProgressTrackerContext();
10308
10429
  const active = activeStep === index;
10309
10430
  const itemState = toItemState(active, completed, disabled);
10310
- const stepNumberContent = (0, import_react103.useMemo)(() => {
10431
+ const handleClick = () => {
10432
+ if (!disabled) {
10433
+ onClick && onClick(index);
10434
+ handleStepChange && handleStepChange(index);
10435
+ }
10436
+ };
10437
+ const stepNumberContent = (0, import_react107.useMemo)(() => {
10311
10438
  if (completed) {
10312
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
10439
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
10313
10440
  }
10314
10441
  if (icon !== void 0) {
10315
- return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Icon, { icon, iconSize: "small" });
10442
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Icon, { icon, iconSize: "small" });
10316
10443
  }
10317
10444
  return index + 1;
10318
10445
  }, [completed, icon, index]);
10319
- const stepContent = /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(import_jsx_runtime262.Fragment, { children: [
10320
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
10446
+ const stepContent = /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(import_jsx_runtime266.Fragment, { children: [
10447
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10321
10448
  "div",
10322
10449
  {
10323
10450
  "aria-hidden": true,
@@ -10329,7 +10456,7 @@ var ProgressTrackerItem = (props) => {
10329
10456
  children: stepNumberContent
10330
10457
  }
10331
10458
  ),
10332
- /* @__PURE__ */ (0, import_jsx_runtime262.jsxs)(
10459
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
10333
10460
  "div",
10334
10461
  {
10335
10462
  className: cn(
@@ -10338,28 +10465,44 @@ var ProgressTrackerItem = (props) => {
10338
10465
  typographyStyles_default["body-sans-03"]
10339
10466
  ),
10340
10467
  children: [
10341
- /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10468
+ /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10342
10469
  children
10343
10470
  ]
10344
10471
  }
10345
10472
  )
10346
10473
  ] });
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)(
10474
+ 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
10475
  "button",
10349
10476
  {
10350
- onClick: !disabled && handleStepChange ? () => handleStepChange(index) : void 0,
10477
+ ...getBaseHTMLProps(
10478
+ id,
10479
+ cn(className, ProgressTracker_default["item-button"], focusable),
10480
+ htmlProps,
10481
+ rest
10482
+ ),
10483
+ onClick: () => handleClick(),
10351
10484
  disabled,
10352
- className: cn(ProgressTracker_default["item-button"], focusable),
10353
10485
  children: stepContent
10354
10486
  }
10355
- ) : /* @__PURE__ */ (0, import_jsx_runtime262.jsx)("div", { className: cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"]), children: stepContent }) });
10487
+ ) : /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10488
+ "div",
10489
+ {
10490
+ ...getBaseHTMLProps(
10491
+ id,
10492
+ cn(className, cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"])),
10493
+ htmlProps,
10494
+ rest
10495
+ ),
10496
+ children: stepContent
10497
+ }
10498
+ ) });
10356
10499
  };
10357
10500
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
10358
10501
 
10359
10502
  // src/components/ProgressTracker/ProgressTracker.tsx
10360
- var import_jsx_runtime263 = require("react/jsx-runtime");
10503
+ var import_jsx_runtime267 = require("react/jsx-runtime");
10361
10504
  var ProgressTracker = (() => {
10362
- const Res = (0, import_react104.forwardRef)((props, ref) => {
10505
+ const Res = (0, import_react108.forwardRef)((props, ref) => {
10363
10506
  const {
10364
10507
  id,
10365
10508
  activeStep = 0,
@@ -10369,12 +10512,12 @@ var ProgressTracker = (() => {
10369
10512
  htmlProps,
10370
10513
  ...rest
10371
10514
  } = props;
10372
- const [thisActiveStep, setActiveStep] = (0, import_react104.useState)(activeStep);
10515
+ const [thisActiveStep, setActiveStep] = (0, import_react108.useState)(activeStep);
10373
10516
  const handleChange = (step) => {
10374
10517
  setActiveStep(step);
10375
10518
  onStepChange && onStepChange(step);
10376
10519
  };
10377
- (0, import_react104.useEffect)(() => {
10520
+ (0, import_react108.useEffect)(() => {
10378
10521
  if (activeStep !== void 0 && activeStep != thisActiveStep) {
10379
10522
  setActiveStep(activeStep);
10380
10523
  }
@@ -10383,20 +10526,20 @@ var ProgressTracker = (() => {
10383
10526
  ...getBaseHTMLProps(id, className, htmlProps, rest),
10384
10527
  ref
10385
10528
  };
10386
- const steps = (0, import_react104.useMemo)(() => {
10529
+ const steps = (0, import_react108.useMemo)(() => {
10387
10530
  const validChildren = removeInvalidChildren(children);
10388
10531
  const itemsWithIndex = passIndexPropToProgressTrackerItem(validChildren);
10389
10532
  const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
10390
10533
  return itemsWithConnectorsBetween;
10391
10534
  }, [children]);
10392
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
10535
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
10393
10536
  ProgressTrackerContext.Provider,
10394
10537
  {
10395
10538
  value: {
10396
10539
  activeStep: thisActiveStep,
10397
10540
  handleStepChange: handleChange
10398
10541
  },
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 }) })
10542
+ 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
10543
  }
10401
10544
  );
10402
10545
  });
@@ -10405,35 +10548,35 @@ var ProgressTracker = (() => {
10405
10548
  return Res;
10406
10549
  })();
10407
10550
  function removeInvalidChildren(children) {
10408
- return import_react104.Children.toArray(children).filter(import_react104.isValidElement);
10551
+ return import_react108.Children.toArray(children).filter(import_react108.isValidElement);
10409
10552
  }
10410
10553
  function passIndexPropToProgressTrackerItem(children) {
10411
- return import_react104.Children.map(
10554
+ return import_react108.Children.map(
10412
10555
  children,
10413
- (item, index) => (0, import_react104.cloneElement)(item, {
10556
+ (item, index) => (0, import_react108.cloneElement)(item, {
10414
10557
  ...item.props,
10415
10558
  index
10416
10559
  })
10417
10560
  );
10418
10561
  }
10419
- var intersperseItemsWithConnector = (children) => import_react104.Children.map(children, (child, index) => {
10562
+ var intersperseItemsWithConnector = (children) => import_react108.Children.map(children, (child, index) => {
10420
10563
  if (index === 0) {
10421
10564
  return child;
10422
10565
  }
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 }),
10566
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(import_react108.Fragment, { children: [
10567
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10425
10568
  child
10426
10569
  ] }, index);
10427
10570
  });
10428
10571
 
10429
10572
  // src/components/Search/Search.tsx
10430
- var import_react108 = require("react");
10573
+ var import_react112 = require("react");
10431
10574
 
10432
10575
  // src/components/Search/AutocompleteSearch.context.tsx
10433
- var import_react105 = require("react");
10434
- var AutocompleteSearchContext = (0, import_react105.createContext)({});
10576
+ var import_react109 = require("react");
10577
+ var AutocompleteSearchContext = (0, import_react109.createContext)({});
10435
10578
  var useAutocompleteSearch = () => {
10436
- return (0, import_react105.useContext)(AutocompleteSearchContext);
10579
+ return (0, import_react109.useContext)(AutocompleteSearchContext);
10437
10580
  };
10438
10581
 
10439
10582
  // src/components/Search/Search.module.css
@@ -10483,22 +10626,22 @@ function createEmptyChangeEvent(inputElementId) {
10483
10626
  }
10484
10627
 
10485
10628
  // src/components/Search/SearchSuggestions.tsx
10486
- var import_react107 = require("react");
10629
+ var import_react111 = require("react");
10487
10630
 
10488
10631
  // 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) => {
10632
+ var import_react110 = require("react");
10633
+ var import_jsx_runtime268 = require("react/jsx-runtime");
10634
+ var SearchSuggestionItem = (0, import_react110.forwardRef)((props, ref) => {
10492
10635
  const { focus, className, ...rest } = props;
10493
- const itemRef = (0, import_react106.useRef)(null);
10636
+ const itemRef = (0, import_react110.useRef)(null);
10494
10637
  const combinedRef = useCombinedRef(ref, itemRef);
10495
- (0, import_react106.useEffect)(() => {
10638
+ (0, import_react110.useEffect)(() => {
10496
10639
  var _a;
10497
10640
  if (focus) {
10498
10641
  (_a = itemRef.current) == null ? void 0 : _a.focus();
10499
10642
  }
10500
10643
  }, [focus]);
10501
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
10644
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
10502
10645
  "button",
10503
10646
  {
10504
10647
  ref: combinedRef,
@@ -10517,8 +10660,8 @@ var SearchSuggestionItem = (0, import_react106.forwardRef)((props, ref) => {
10517
10660
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
10518
10661
 
10519
10662
  // src/components/Search/SearchSuggestions.tsx
10520
- var import_jsx_runtime265 = require("react/jsx-runtime");
10521
- var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10663
+ var import_jsx_runtime269 = require("react/jsx-runtime");
10664
+ var SearchSuggestions = (0, import_react111.forwardRef)((props, ref) => {
10522
10665
  const {
10523
10666
  id,
10524
10667
  searchId,
@@ -10537,7 +10680,7 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10537
10680
  );
10538
10681
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
10539
10682
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
10540
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
10683
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
10541
10684
  Paper,
10542
10685
  {
10543
10686
  ...getBaseHTMLProps(
@@ -10556,7 +10699,7 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10556
10699
  "aria-hidden": !showSuggestions,
10557
10700
  border: "default",
10558
10701
  children: [
10559
- /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10702
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
10560
10703
  "span",
10561
10704
  {
10562
10705
  id: suggestionsHeaderId,
@@ -10567,14 +10710,14 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10567
10710
  children: "S\xF8keforslag"
10568
10711
  }
10569
10712
  ),
10570
- /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10713
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
10571
10714
  "ul",
10572
10715
  {
10573
10716
  role: "listbox",
10574
10717
  "aria-labelledby": suggestionsHeaderId,
10575
10718
  className: utilStyles_default["remove-list-styling"],
10576
10719
  children: suggestionsToRender.map((suggestion, index) => {
10577
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
10720
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
10578
10721
  SearchSuggestionItem,
10579
10722
  {
10580
10723
  index,
@@ -10597,7 +10740,7 @@ var SearchSuggestions = (0, import_react107.forwardRef)((props, ref) => {
10597
10740
  SearchSuggestions.displayName = "SearchSuggestions";
10598
10741
 
10599
10742
  // src/components/Search/Search.tsx
10600
- var import_jsx_runtime266 = require("react/jsx-runtime");
10743
+ var import_jsx_runtime270 = require("react/jsx-runtime");
10601
10744
  var getIconSize = (size2) => {
10602
10745
  switch (size2) {
10603
10746
  case "large":
@@ -10608,7 +10751,7 @@ var getIconSize = (size2) => {
10608
10751
  return "small";
10609
10752
  }
10610
10753
  };
10611
- var Search = (0, import_react108.forwardRef)(
10754
+ var Search = (0, import_react112.forwardRef)(
10612
10755
  ({
10613
10756
  componentSize = "medium",
10614
10757
  buttonProps,
@@ -10624,7 +10767,7 @@ var Search = (0, import_react108.forwardRef)(
10624
10767
  ...rest
10625
10768
  }, ref) => {
10626
10769
  var _a;
10627
- const generatedId = (0, import_react108.useId)();
10770
+ const generatedId = (0, import_react112.useId)();
10628
10771
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
10629
10772
  const hasLabel = !!label;
10630
10773
  const tipId = derivativeIdGenerator(uniqueId, "tip");
@@ -10633,7 +10776,7 @@ var Search = (0, import_react108.forwardRef)(
10633
10776
  uniqueId,
10634
10777
  "suggestions-description"
10635
10778
  );
10636
- const [hasValue, setHasValue] = (0, import_react108.useState)(!!value);
10779
+ const [hasValue, setHasValue] = (0, import_react112.useState)(!!value);
10637
10780
  const context = useAutocompleteSearch();
10638
10781
  const combinedRef = context.inputRef ? useCombinedRef(context.inputRef, ref) : ref;
10639
10782
  const handleChange = (e) => {
@@ -10652,10 +10795,10 @@ var Search = (0, import_react108.forwardRef)(
10652
10795
  } = buttonProps != null ? buttonProps : {};
10653
10796
  const hasSuggestions = !!context.suggestions;
10654
10797
  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)(
10798
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)("div", { className: Search_default.container, children: [
10799
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(Label, { htmlFor: uniqueId, children: label }),
10800
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)("div", { children: [
10801
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
10659
10802
  "div",
10660
10803
  {
10661
10804
  className: cn(
@@ -10664,8 +10807,8 @@ var Search = (0, import_react108.forwardRef)(
10664
10807
  ),
10665
10808
  style,
10666
10809
  children: [
10667
- /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)("div", { className: Search_default["input-group"], children: [
10668
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10810
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)("div", { className: Search_default["input-group"], children: [
10811
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10669
10812
  Icon,
10670
10813
  {
10671
10814
  icon: SearchIcon,
@@ -10673,7 +10816,7 @@ var Search = (0, import_react108.forwardRef)(
10673
10816
  className: cn(Input_default.icon, Search_default["search-icon"])
10674
10817
  }
10675
10818
  ),
10676
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10819
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10677
10820
  Input,
10678
10821
  {
10679
10822
  ...rest,
@@ -10700,8 +10843,8 @@ var Search = (0, import_react108.forwardRef)(
10700
10843
  )
10701
10844
  }
10702
10845
  ),
10703
- hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(import_jsx_runtime266.Fragment, { children: [
10704
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10846
+ hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(import_jsx_runtime270.Fragment, { children: [
10847
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10705
10848
  SearchSuggestions,
10706
10849
  {
10707
10850
  id: suggestionsId,
@@ -10713,9 +10856,9 @@ var Search = (0, import_react108.forwardRef)(
10713
10856
  componentSize
10714
10857
  }
10715
10858
  ),
10716
- /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10859
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10717
10860
  ] }),
10718
- hasValue && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10861
+ hasValue && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10719
10862
  Button,
10720
10863
  {
10721
10864
  icon: CloseSmallIcon,
@@ -10727,7 +10870,7 @@ var Search = (0, import_react108.forwardRef)(
10727
10870
  }
10728
10871
  )
10729
10872
  ] }),
10730
- showSearchButton && /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
10873
+ showSearchButton && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
10731
10874
  Button,
10732
10875
  {
10733
10876
  size: componentSize,
@@ -10747,8 +10890,8 @@ var Search = (0, import_react108.forwardRef)(
10747
10890
  Search.displayName = "Search";
10748
10891
 
10749
10892
  // src/components/Search/SearchAutocompleteWrapper.tsx
10750
- var import_react109 = require("react");
10751
- var import_jsx_runtime267 = require("react/jsx-runtime");
10893
+ var import_react113 = require("react");
10894
+ var import_jsx_runtime271 = require("react/jsx-runtime");
10752
10895
  var SearchAutocompleteWrapper = (props) => {
10753
10896
  const {
10754
10897
  value,
@@ -10759,12 +10902,12 @@ var SearchAutocompleteWrapper = (props) => {
10759
10902
  onSuggestionSelection,
10760
10903
  children
10761
10904
  } = 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);
10905
+ const [inputValue, setInputValue] = (0, import_react113.useState)(value != null ? value : "");
10906
+ const [suggestions, setSuggestions] = (0, import_react113.useState)([]);
10907
+ const [showSuggestions, setShowSuggestions] = (0, import_react113.useState)(false);
10765
10908
  const closeSuggestions = () => showSuggestions === true && setShowSuggestions(false);
10766
10909
  const openSuggestions = () => showSuggestions === false && setShowSuggestions(true);
10767
- (0, import_react109.useEffect)(() => {
10910
+ (0, import_react113.useEffect)(() => {
10768
10911
  if (suggestions.length > 0) {
10769
10912
  openSuggestions();
10770
10913
  } else {
@@ -10809,8 +10952,8 @@ var SearchAutocompleteWrapper = (props) => {
10809
10952
  const handleSetInputValue = (value2) => {
10810
10953
  setInputValue(value2 != null ? value2 : "");
10811
10954
  };
10812
- const inputRef = (0, import_react109.useRef)(null);
10813
- const suggestionsRef = (0, import_react109.useRef)(null);
10955
+ const inputRef = (0, import_react113.useRef)(null);
10956
+ const suggestionsRef = (0, import_react113.useRef)(null);
10814
10957
  useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
10815
10958
  closeSuggestions();
10816
10959
  });
@@ -10824,7 +10967,7 @@ var SearchAutocompleteWrapper = (props) => {
10824
10967
  inputValue,
10825
10968
  onSugggestionClick: handleSuggestionClick
10826
10969
  };
10827
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(AutocompleteSearchContext.Provider, { value: contextProps, children });
10970
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(AutocompleteSearchContext.Provider, { value: contextProps, children });
10828
10971
  };
10829
10972
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
10830
10973
 
@@ -10834,17 +10977,17 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
10834
10977
  Search2.Suggestions = SearchSuggestions;
10835
10978
 
10836
10979
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
10837
- var import_react112 = require("react");
10980
+ var import_react116 = require("react");
10838
10981
 
10839
10982
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
10840
- var import_react110 = require("react");
10841
- var CheckboxGroupContext = (0, import_react110.createContext)(null);
10983
+ var import_react114 = require("react");
10984
+ var CheckboxGroupContext = (0, import_react114.createContext)(null);
10842
10985
  var useCheckboxGroup = () => {
10843
- return (0, import_react110.useContext)(CheckboxGroupContext);
10986
+ return (0, import_react114.useContext)(CheckboxGroupContext);
10844
10987
  };
10845
10988
 
10846
10989
  // src/components/SelectionControl/SelectionControl.styles.tsx
10847
- var import_react111 = require("react");
10990
+ var import_react115 = require("react");
10848
10991
 
10849
10992
  // src/components/SelectionControl/SelectionControl.module.css
10850
10993
  var SelectionControl_default = {
@@ -10864,10 +11007,10 @@ var SelectionControl_default = {
10864
11007
  };
10865
11008
 
10866
11009
  // src/components/SelectionControl/SelectionControl.styles.tsx
10867
- var import_jsx_runtime268 = require("react/jsx-runtime");
10868
- var SelectionControl = (0, import_react111.forwardRef)((props, ref) => {
11010
+ var import_jsx_runtime272 = require("react/jsx-runtime");
11011
+ var SelectionControl = (0, import_react115.forwardRef)((props, ref) => {
10869
11012
  const { controlType, className, ...rest } = props;
10870
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11013
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
10871
11014
  "span",
10872
11015
  {
10873
11016
  ref,
@@ -10880,7 +11023,7 @@ var SelectionControl = (0, import_react111.forwardRef)((props, ref) => {
10880
11023
  }
10881
11024
  );
10882
11025
  });
10883
- var Label2 = (0, import_react111.forwardRef)(
11026
+ var Label2 = (0, import_react115.forwardRef)(
10884
11027
  (props, ref) => {
10885
11028
  const {
10886
11029
  disabled,
@@ -10891,7 +11034,7 @@ var Label2 = (0, import_react111.forwardRef)(
10891
11034
  className,
10892
11035
  ...rest
10893
11036
  } = props;
10894
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11037
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
10895
11038
  "label",
10896
11039
  {
10897
11040
  ref,
@@ -10922,8 +11065,8 @@ var selectionControlTypographyProps = {
10922
11065
  };
10923
11066
 
10924
11067
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
10925
- var import_jsx_runtime269 = require("react/jsx-runtime");
10926
- var Checkbox = (0, import_react112.forwardRef)(
11068
+ var import_jsx_runtime273 = require("react/jsx-runtime");
11069
+ var Checkbox = (0, import_react116.forwardRef)(
10927
11070
  (props, ref) => {
10928
11071
  const {
10929
11072
  id,
@@ -10938,7 +11081,7 @@ var Checkbox = (0, import_react112.forwardRef)(
10938
11081
  htmlProps = {},
10939
11082
  ...rest
10940
11083
  } = props;
10941
- const generatedId = (0, import_react112.useId)();
11084
+ const generatedId = (0, import_react116.useId)();
10942
11085
  const uniqueId = id != null ? id : `${generatedId}-checkbox`;
10943
11086
  const checkboxGroup = useCheckboxGroup();
10944
11087
  const hasLabel = !!label;
@@ -10950,7 +11093,7 @@ var Checkbox = (0, import_react112.forwardRef)(
10950
11093
  const isReadOnly = readOnly || (checkboxGroup == null ? void 0 : checkboxGroup.readOnly);
10951
11094
  const hasError = error || (checkboxGroup == null ? void 0 : checkboxGroup.error);
10952
11095
  const isDisabled = disabled || (checkboxGroup == null ? void 0 : checkboxGroup.disabled);
10953
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
11096
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
10954
11097
  Label2,
10955
11098
  {
10956
11099
  hasError,
@@ -10962,7 +11105,7 @@ var Checkbox = (0, import_react112.forwardRef)(
10962
11105
  className: cn(className, htmlPropsClassName),
10963
11106
  style,
10964
11107
  children: [
10965
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
11108
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
10966
11109
  "input",
10967
11110
  {
10968
11111
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -10992,14 +11135,14 @@ var Checkbox = (0, import_react112.forwardRef)(
10992
11135
  onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
10993
11136
  }
10994
11137
  ),
10995
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
11138
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
10996
11139
  SelectionControl,
10997
11140
  {
10998
11141
  controlType: "checkbox",
10999
11142
  className: focus_default["focus-styled-sibling"]
11000
11143
  }
11001
11144
  ),
11002
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(Typography, { ...selectionControlTypographyProps, children: label })
11145
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Typography, { ...selectionControlTypographyProps, children: label })
11003
11146
  ]
11004
11147
  }
11005
11148
  );
@@ -11008,8 +11151,8 @@ var Checkbox = (0, import_react112.forwardRef)(
11008
11151
  Checkbox.displayName = "Checkbox";
11009
11152
 
11010
11153
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
11011
- var import_react113 = require("react");
11012
- var import_jsx_runtime270 = require("react/jsx-runtime");
11154
+ var import_react117 = require("react");
11155
+ var import_jsx_runtime274 = require("react/jsx-runtime");
11013
11156
  var CheckboxGroup = (props) => {
11014
11157
  const {
11015
11158
  label,
@@ -11027,7 +11170,7 @@ var CheckboxGroup = (props) => {
11027
11170
  ...rest
11028
11171
  } = props;
11029
11172
  const { "aria-required": ariaRequired } = htmlProps;
11030
- const generatedId = (0, import_react113.useId)();
11173
+ const generatedId = (0, import_react117.useId)();
11031
11174
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
11032
11175
  const hasErrorMessage = !!errorMessage;
11033
11176
  const showRequiredMarker = required || ariaRequired;
@@ -11041,7 +11184,7 @@ var CheckboxGroup = (props) => {
11041
11184
  disabled,
11042
11185
  readOnly
11043
11186
  };
11044
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
11187
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
11045
11188
  "div",
11046
11189
  {
11047
11190
  ...getBaseHTMLProps(
@@ -11051,7 +11194,7 @@ var CheckboxGroup = (props) => {
11051
11194
  rest
11052
11195
  ),
11053
11196
  children: [
11054
- /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
11197
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
11055
11198
  Typography,
11056
11199
  {
11057
11200
  as: "span",
@@ -11059,15 +11202,15 @@ var CheckboxGroup = (props) => {
11059
11202
  id: uniqueGroupId,
11060
11203
  className: readOnly ? Label_default["read-only"] : void 0,
11061
11204
  children: [
11062
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11205
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11063
11206
  label,
11064
11207
  " ",
11065
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(RequiredMarker, {})
11208
+ showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(RequiredMarker, {})
11066
11209
  ]
11067
11210
  }
11068
11211
  ),
11069
11212
  renderInputMessage(tip, tipId),
11070
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
11213
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11071
11214
  "div",
11072
11215
  {
11073
11216
  role: "group",
@@ -11085,17 +11228,17 @@ var CheckboxGroup = (props) => {
11085
11228
  CheckboxGroup.displayName = "CheckboxGroup";
11086
11229
 
11087
11230
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
11088
- var import_react115 = require("react");
11231
+ var import_react119 = require("react");
11089
11232
 
11090
11233
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
11091
- var import_react114 = require("react");
11092
- var RadioButtonGroupContext = (0, import_react114.createContext)(null);
11234
+ var import_react118 = require("react");
11235
+ var RadioButtonGroupContext = (0, import_react118.createContext)(null);
11093
11236
  var useRadioButtonGroup = () => {
11094
- return (0, import_react114.useContext)(RadioButtonGroupContext);
11237
+ return (0, import_react118.useContext)(RadioButtonGroupContext);
11095
11238
  };
11096
11239
 
11097
11240
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
11098
- var import_jsx_runtime271 = require("react/jsx-runtime");
11241
+ var import_jsx_runtime275 = require("react/jsx-runtime");
11099
11242
  var isValueEqualToGroupValueOrFalsy = (value, group) => {
11100
11243
  if (typeof value !== "undefined" && value !== null && group) {
11101
11244
  if (typeof value === "number") {
@@ -11105,7 +11248,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group) => {
11105
11248
  }
11106
11249
  return !!value;
11107
11250
  };
11108
- var RadioButton = (0, import_react115.forwardRef)(
11251
+ var RadioButton = (0, import_react119.forwardRef)(
11109
11252
  (props, ref) => {
11110
11253
  const {
11111
11254
  id,
@@ -11129,7 +11272,7 @@ var RadioButton = (0, import_react115.forwardRef)(
11129
11272
  style,
11130
11273
  ...restHtmlProps
11131
11274
  } = htmlProps;
11132
- const generatedId = (0, import_react115.useId)();
11275
+ const generatedId = (0, import_react119.useId)();
11133
11276
  const uniqueId = id != null ? id : `${generatedId}-radioButton`;
11134
11277
  const hasLabel = !!label;
11135
11278
  const radioButtonGroup = useRadioButtonGroup();
@@ -11144,7 +11287,7 @@ var RadioButton = (0, import_react115.forwardRef)(
11144
11287
  const isReadOnly = readOnly || (radioButtonGroup == null ? void 0 : radioButtonGroup.readOnly);
11145
11288
  const isDisabled = disabled || (radioButtonGroup == null ? void 0 : radioButtonGroup.disabled);
11146
11289
  const hasError = error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error);
11147
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
11290
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
11148
11291
  Label2,
11149
11292
  {
11150
11293
  hasError,
@@ -11156,7 +11299,7 @@ var RadioButton = (0, import_react115.forwardRef)(
11156
11299
  htmlFor: uniqueId,
11157
11300
  controlType: "radio",
11158
11301
  children: [
11159
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
11302
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11160
11303
  "input",
11161
11304
  {
11162
11305
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -11182,14 +11325,14 @@ var RadioButton = (0, import_react115.forwardRef)(
11182
11325
  onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
11183
11326
  }
11184
11327
  ),
11185
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
11328
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11186
11329
  SelectionControl,
11187
11330
  {
11188
11331
  controlType: "radio",
11189
11332
  className: focus_default["focus-styled-sibling"]
11190
11333
  }
11191
11334
  ),
11192
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
11335
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
11193
11336
  ]
11194
11337
  }
11195
11338
  );
@@ -11198,8 +11341,8 @@ var RadioButton = (0, import_react115.forwardRef)(
11198
11341
  RadioButton.displayName = "RadioButton";
11199
11342
 
11200
11343
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
11201
- var import_react116 = require("react");
11202
- var import_jsx_runtime272 = require("react/jsx-runtime");
11344
+ var import_react120 = require("react");
11345
+ var import_jsx_runtime276 = require("react/jsx-runtime");
11203
11346
  var RadioButtonGroupInner = (props, ref) => {
11204
11347
  const {
11205
11348
  name,
@@ -11220,8 +11363,8 @@ var RadioButtonGroupInner = (props, ref) => {
11220
11363
  ...rest
11221
11364
  } = props;
11222
11365
  const { "aria-required": ariaRequired = false } = htmlProps;
11223
- const [groupValue, setGroupValue] = (0, import_react116.useState)(value);
11224
- const generatedId = (0, import_react116.useId)();
11366
+ const [groupValue, setGroupValue] = (0, import_react120.useState)(value);
11367
+ const generatedId = (0, import_react120.useId)();
11225
11368
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-radioButtonGroup`;
11226
11369
  const handleChange = combineHandlers(
11227
11370
  (e) => setGroupValue(e.target.value),
@@ -11241,7 +11384,7 @@ var RadioButtonGroupInner = (props, ref) => {
11241
11384
  value: groupValue,
11242
11385
  onChange: handleChange
11243
11386
  };
11244
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
11387
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
11245
11388
  "div",
11246
11389
  {
11247
11390
  ...getBaseHTMLProps(
@@ -11252,7 +11395,7 @@ var RadioButtonGroupInner = (props, ref) => {
11252
11395
  ),
11253
11396
  ref,
11254
11397
  children: [
11255
- /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
11398
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
11256
11399
  Typography,
11257
11400
  {
11258
11401
  as: "span",
@@ -11260,15 +11403,15 @@ var RadioButtonGroupInner = (props, ref) => {
11260
11403
  id: uniqueGroupId,
11261
11404
  className: readOnly ? Label_default["read-only"] : void 0,
11262
11405
  children: [
11263
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11406
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11264
11407
  label,
11265
11408
  " ",
11266
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(RequiredMarker, {})
11409
+ showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(RequiredMarker, {})
11267
11410
  ]
11268
11411
  }
11269
11412
  ),
11270
11413
  renderInputMessage(tip, tipId),
11271
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
11414
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11272
11415
  "div",
11273
11416
  {
11274
11417
  role: "radiogroup",
@@ -11284,11 +11427,11 @@ var RadioButtonGroupInner = (props, ref) => {
11284
11427
  }
11285
11428
  );
11286
11429
  };
11287
- var RadioButtonGroup = (0, import_react116.forwardRef)(RadioButtonGroupInner);
11430
+ var RadioButtonGroup = (0, import_react120.forwardRef)(RadioButtonGroupInner);
11288
11431
  RadioButtonGroup.displayName = "RadioButtonGroup";
11289
11432
 
11290
11433
  // src/components/Skeleton/Skeleton.tsx
11291
- var import_react117 = require("react");
11434
+ var import_react121 = require("react");
11292
11435
 
11293
11436
  // src/components/Skeleton/Skeleton.module.css
11294
11437
  var Skeleton_default = {
@@ -11297,8 +11440,8 @@ var Skeleton_default = {
11297
11440
  };
11298
11441
 
11299
11442
  // src/components/Skeleton/Skeleton.tsx
11300
- var import_jsx_runtime273 = require("react/jsx-runtime");
11301
- var Skeleton = (0, import_react117.forwardRef)(
11443
+ var import_jsx_runtime277 = require("react/jsx-runtime");
11444
+ var Skeleton = (0, import_react121.forwardRef)(
11302
11445
  (props, ref) => {
11303
11446
  const {
11304
11447
  width,
@@ -11308,7 +11451,7 @@ var Skeleton = (0, import_react117.forwardRef)(
11308
11451
  style,
11309
11452
  ...rest
11310
11453
  } = props;
11311
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
11454
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
11312
11455
  "div",
11313
11456
  {
11314
11457
  ref,
@@ -11322,7 +11465,7 @@ var Skeleton = (0, import_react117.forwardRef)(
11322
11465
  Skeleton.displayName = "Skeleton";
11323
11466
 
11324
11467
  // src/components/SkipToContent/SkipToContent.tsx
11325
- var import_react118 = require("react");
11468
+ var import_react122 = require("react");
11326
11469
 
11327
11470
  // src/components/SkipToContent/SkipToContent.module.css
11328
11471
  var SkipToContent_default = {
@@ -11331,8 +11474,8 @@ var SkipToContent_default = {
11331
11474
  };
11332
11475
 
11333
11476
  // src/components/SkipToContent/SkipToContent.tsx
11334
- var import_jsx_runtime274 = require("react/jsx-runtime");
11335
- var SkipToContent = (0, import_react118.forwardRef)(
11477
+ var import_jsx_runtime278 = require("react/jsx-runtime");
11478
+ var SkipToContent = (0, import_react122.forwardRef)(
11336
11479
  (props, ref) => {
11337
11480
  const {
11338
11481
  text = "Til hovedinnhold",
@@ -11347,12 +11490,12 @@ var SkipToContent = (0, import_react118.forwardRef)(
11347
11490
  style,
11348
11491
  ...restHtmlProps
11349
11492
  } = htmlProps;
11350
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11493
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11351
11494
  "div",
11352
11495
  {
11353
11496
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
11354
11497
  style: { ...style, top },
11355
- children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11498
+ children: /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11356
11499
  Link,
11357
11500
  {
11358
11501
  ...getBaseHTMLProps(id, restHtmlProps, rest),
@@ -11369,7 +11512,7 @@ var SkipToContent = (0, import_react118.forwardRef)(
11369
11512
  SkipToContent.displayName = "SkipToContent";
11370
11513
 
11371
11514
  // src/components/SplitButton/SplitButton.tsx
11372
- var import_react119 = require("react");
11515
+ var import_react123 = require("react");
11373
11516
 
11374
11517
  // src/components/SplitButton/SplitButton.module.css
11375
11518
  var SplitButton_default = {
@@ -11380,8 +11523,8 @@ var SplitButton_default = {
11380
11523
  };
11381
11524
 
11382
11525
  // src/components/SplitButton/SplitButton.tsx
11383
- var import_jsx_runtime275 = require("react/jsx-runtime");
11384
- var SplitButton = (0, import_react119.forwardRef)(
11526
+ var import_jsx_runtime279 = require("react/jsx-runtime");
11527
+ var SplitButton = (0, import_react123.forwardRef)(
11385
11528
  (props, ref) => {
11386
11529
  const {
11387
11530
  size: size2,
@@ -11391,13 +11534,13 @@ var SplitButton = (0, import_react119.forwardRef)(
11391
11534
  className,
11392
11535
  ...rest
11393
11536
  } = props;
11394
- const [isOpen, setIsOpen] = (0, import_react119.useState)(false);
11537
+ const [isOpen, setIsOpen] = (0, import_react123.useState)(false);
11395
11538
  const buttonStyleProps = {
11396
11539
  purpose,
11397
11540
  size: size2
11398
11541
  };
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)(
11542
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
11543
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
11401
11544
  Button,
11402
11545
  {
11403
11546
  ...buttonStyleProps,
@@ -11406,8 +11549,8 @@ var SplitButton = (0, import_react119.forwardRef)(
11406
11549
  className: SplitButton_default.main
11407
11550
  }
11408
11551
  ),
11409
- /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
11410
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11552
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
11553
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
11411
11554
  Button,
11412
11555
  {
11413
11556
  ...buttonStyleProps,
@@ -11420,7 +11563,7 @@ var SplitButton = (0, import_react119.forwardRef)(
11420
11563
  )
11421
11564
  }
11422
11565
  ),
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 })) }) })
11566
+ /* @__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
11567
  ] })
11425
11568
  ] });
11426
11569
  }
@@ -11428,41 +11571,41 @@ var SplitButton = (0, import_react119.forwardRef)(
11428
11571
  SplitButton.displayName = "SplitButton";
11429
11572
 
11430
11573
  // src/components/Table/collapsible/CollapsibleRow.tsx
11431
- var import_react129 = require("react");
11574
+ var import_react133 = require("react");
11432
11575
 
11433
11576
  // src/components/Table/collapsible/Table.context.tsx
11434
- var import_react120 = require("react");
11435
- var CollapsibleTableContext = (0, import_react120.createContext)({
11577
+ var import_react124 = require("react");
11578
+ var CollapsibleTableContext = (0, import_react124.createContext)({
11436
11579
  headerValues: [],
11437
11580
  definingColumnIndex: [0]
11438
11581
  });
11439
- var useCollapsibleTableContext = () => (0, import_react120.useContext)(CollapsibleTableContext);
11582
+ var useCollapsibleTableContext = () => (0, import_react124.useContext)(CollapsibleTableContext);
11440
11583
 
11441
11584
  // 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)(
11585
+ var import_react125 = require("react");
11586
+ var import_jsx_runtime280 = require("react/jsx-runtime");
11587
+ var Body = (0, import_react125.forwardRef)(
11445
11588
  (props, ref) => {
11446
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)("tbody", { ref, ...props });
11589
+ return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)("tbody", { ref, ...props });
11447
11590
  }
11448
11591
  );
11449
11592
  Body.displayName = "Table.Body";
11450
11593
 
11451
11594
  // src/components/Table/normal/Cell.tsx
11452
- var import_react123 = require("react");
11595
+ var import_react127 = require("react");
11453
11596
 
11454
11597
  // 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)(
11598
+ var import_react126 = require("react");
11599
+ var import_jsx_runtime281 = require("react/jsx-runtime");
11600
+ var Head = (0, import_react126.forwardRef)(
11458
11601
  ({ 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 }) });
11602
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)("thead", { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(HeadContext.Provider, { value: true, children }) });
11460
11603
  }
11461
11604
  );
11462
11605
  Head.displayName = "Table.Head";
11463
- var HeadContext = (0, import_react122.createContext)(false);
11606
+ var HeadContext = (0, import_react126.createContext)(false);
11464
11607
  function useIsInTableHead() {
11465
- const isInTableHead = (0, import_react122.useContext)(HeadContext);
11608
+ const isInTableHead = (0, import_react126.useContext)(HeadContext);
11466
11609
  return isInTableHead;
11467
11610
  }
11468
11611
 
@@ -11492,8 +11635,8 @@ var Table_default = {
11492
11635
  };
11493
11636
 
11494
11637
  // src/components/Table/normal/Cell.tsx
11495
- var import_jsx_runtime278 = require("react/jsx-runtime");
11496
- var Cell = (0, import_react123.forwardRef)(
11638
+ var import_jsx_runtime282 = require("react/jsx-runtime");
11639
+ var Cell = (0, import_react127.forwardRef)(
11497
11640
  ({
11498
11641
  children,
11499
11642
  type: _type,
@@ -11506,7 +11649,7 @@ var Cell = (0, import_react123.forwardRef)(
11506
11649
  const type = _type != null ? _type : isInHead ? "head" : "data";
11507
11650
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
11508
11651
  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)(
11652
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
11510
11653
  "th",
11511
11654
  {
11512
11655
  ref,
@@ -11516,15 +11659,15 @@ var Cell = (0, import_react123.forwardRef)(
11516
11659
  !isComplexLayout && Table_default[`cell--${layout}`],
11517
11660
  Table_default["cell--head"]
11518
11661
  ),
11519
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)("div", { className: Table_default.cell__inner, children }) : children
11662
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)("div", { className: Table_default.cell__inner, children }) : children
11520
11663
  }
11521
- ) : /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11664
+ ) : /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
11522
11665
  "td",
11523
11666
  {
11524
11667
  ref,
11525
11668
  ...rest,
11526
11669
  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
11670
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime282.jsx)("div", { className: Table_default.cell__inner, children }) : children
11528
11671
  }
11529
11672
  );
11530
11673
  }
@@ -11532,23 +11675,23 @@ var Cell = (0, import_react123.forwardRef)(
11532
11675
  Cell.displayName = "Table.Cell";
11533
11676
 
11534
11677
  // 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)(
11678
+ var import_react128 = require("react");
11679
+ var import_jsx_runtime283 = require("react/jsx-runtime");
11680
+ var Foot = (0, import_react128.forwardRef)(
11538
11681
  (props, ref) => {
11539
- return /* @__PURE__ */ (0, import_jsx_runtime279.jsx)("tfoot", { ref, ...props });
11682
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)("tfoot", { ref, ...props });
11540
11683
  }
11541
11684
  );
11542
11685
  Foot.displayName = "Table.Foot";
11543
11686
 
11544
11687
  // 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)(
11688
+ var import_react129 = require("react");
11689
+ var import_jsx_runtime284 = require("react/jsx-runtime");
11690
+ var Row = (0, import_react129.forwardRef)(
11548
11691
  ({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
11549
11692
  const isInHeader = useIsInTableHead();
11550
11693
  const type = _type != null ? _type : isInHeader ? "head" : "body";
11551
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
11694
+ return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11552
11695
  "tr",
11553
11696
  {
11554
11697
  ref,
@@ -11571,23 +11714,23 @@ var Row = (0, import_react125.forwardRef)(
11571
11714
  Row.displayName = "Table.Row";
11572
11715
 
11573
11716
  // src/components/Table/normal/SortCell.tsx
11574
- var import_react126 = require("react");
11575
- var import_jsx_runtime281 = require("react/jsx-runtime");
11717
+ var import_react130 = require("react");
11718
+ var import_jsx_runtime285 = require("react/jsx-runtime");
11576
11719
  var makeSortIcon = (isSorted, sortOrder) => {
11577
11720
  if (!isSorted || !sortOrder) {
11578
- return /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
11721
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
11579
11722
  }
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" });
11723
+ 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
11724
  };
11582
- var SortCell = (0, import_react126.forwardRef)(
11583
- ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
11725
+ var SortCell = (0, import_react130.forwardRef)(
11726
+ ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
11584
11727
  Cell,
11585
11728
  {
11586
11729
  ref,
11587
11730
  type: "head",
11588
11731
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
11589
11732
  ...rest,
11590
- children: /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
11733
+ children: /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(
11591
11734
  "button",
11592
11735
  {
11593
11736
  onClick,
@@ -11611,9 +11754,9 @@ var SortCell = (0, import_react126.forwardRef)(
11611
11754
  SortCell.displayName = "Table.SortCell";
11612
11755
 
11613
11756
  // 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) {
11757
+ var import_react131 = require("react");
11758
+ var import_jsx_runtime286 = require("react/jsx-runtime");
11759
+ function getDensityCn2(value) {
11617
11760
  switch (value) {
11618
11761
  case "normal":
11619
11762
  case "compact":
@@ -11622,7 +11765,7 @@ function getDensityCn(value) {
11622
11765
  return "extra-compact";
11623
11766
  }
11624
11767
  }
11625
- var Table = (0, import_react127.forwardRef)(
11768
+ var Table = (0, import_react131.forwardRef)(
11626
11769
  ({
11627
11770
  density = "normal",
11628
11771
  stickyHeader,
@@ -11631,7 +11774,7 @@ var Table = (0, import_react127.forwardRef)(
11631
11774
  children,
11632
11775
  ...rest
11633
11776
  }, ref) => {
11634
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
11777
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
11635
11778
  "table",
11636
11779
  {
11637
11780
  ref,
@@ -11639,7 +11782,7 @@ var Table = (0, import_react127.forwardRef)(
11639
11782
  className: cn(
11640
11783
  className,
11641
11784
  Table_default.table,
11642
- Table_default[`table--${getDensityCn(density)}`],
11785
+ Table_default[`table--${getDensityCn2(density)}`],
11643
11786
  withDividers && Table_default["table--with-dividers"],
11644
11787
  stickyHeader && Table_default["table--sticky-header"],
11645
11788
  scrollbar
@@ -11652,30 +11795,30 @@ var Table = (0, import_react127.forwardRef)(
11652
11795
  Table.displayName = "Table";
11653
11796
 
11654
11797
  // src/components/Table/normal/TableWrapper.tsx
11655
- var import_react128 = require("react");
11656
- var import_jsx_runtime283 = require("react/jsx-runtime");
11798
+ var import_react132 = require("react");
11799
+ var import_jsx_runtime287 = require("react/jsx-runtime");
11657
11800
  var TableWrapper = ({ className, ...rest }) => {
11658
- const [overflowX, setOverflowX] = (0, import_react128.useState)(false);
11659
- const [windowWidth, setWindowWidth] = (0, import_react128.useState)(window.innerWidth);
11801
+ const [overflowX, setOverflowX] = (0, import_react132.useState)(false);
11802
+ const [windowWidth, setWindowWidth] = (0, import_react132.useState)(window.innerWidth);
11660
11803
  function isOverflowingX(event) {
11661
11804
  return event.offsetWidth < event.scrollWidth;
11662
11805
  }
11663
- const wrapperRef = (0, import_react128.useRef)(null);
11664
- (0, import_react128.useEffect)(() => {
11806
+ const wrapperRef = (0, import_react132.useRef)(null);
11807
+ (0, import_react132.useEffect)(() => {
11665
11808
  if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
11666
11809
  setOverflowX(true);
11667
11810
  return;
11668
11811
  }
11669
11812
  setOverflowX(false);
11670
11813
  }, [windowWidth]);
11671
- (0, import_react128.useEffect)(() => {
11814
+ (0, import_react132.useEffect)(() => {
11672
11815
  function handleResize() {
11673
11816
  setWindowWidth(window.innerWidth);
11674
11817
  }
11675
11818
  window.addEventListener("resize", handleResize);
11676
11819
  return () => window.removeEventListener("resize", handleResize);
11677
11820
  });
11678
- return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
11821
+ return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
11679
11822
  "div",
11680
11823
  {
11681
11824
  ref: wrapperRef,
@@ -11702,8 +11845,8 @@ Table2.Row = Row;
11702
11845
  Table2.Foot = Foot;
11703
11846
 
11704
11847
  // src/components/Table/collapsible/CollapsibleRow.tsx
11705
- var import_jsx_runtime284 = require("react/jsx-runtime");
11706
- var CollapsibleRow = (0, import_react129.forwardRef)(
11848
+ var import_jsx_runtime288 = require("react/jsx-runtime");
11849
+ var CollapsibleRow = (0, import_react133.forwardRef)(
11707
11850
  ({
11708
11851
  type: _type,
11709
11852
  className,
@@ -11716,8 +11859,8 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11716
11859
  const isInHead = useIsInTableHead();
11717
11860
  const type = _type != null ? _type : isInHead ? "head" : "body";
11718
11861
  const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
11719
- const [childrenCollapsed, setChildrenCollapsed] = (0, import_react129.useState)(true);
11720
- (0, import_react129.useEffect)(() => {
11862
+ const [childrenCollapsed, setChildrenCollapsed] = (0, import_react133.useState)(true);
11863
+ (0, import_react133.useEffect)(() => {
11721
11864
  !isCollapsed && setChildrenCollapsed(true);
11722
11865
  }, [isCollapsed]);
11723
11866
  const rowProps = (isOpenCollapsibleHeader) => {
@@ -11735,7 +11878,7 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11735
11878
  const collapsedHeaderValues = headerValues.filter(
11736
11879
  (column2, index) => definingColumnIndex.indexOf(index) === -1
11737
11880
  );
11738
- const childrenArray = import_react129.Children.toArray(children);
11881
+ const childrenArray = import_react133.Children.toArray(children);
11739
11882
  const collapsedChildren = childrenArray.filter(
11740
11883
  (column2, index) => definingColumnIndex.indexOf(index) === -1
11741
11884
  );
@@ -11744,33 +11887,33 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11744
11887
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
11745
11888
  const id = derivativeIdGenerator(prefix3, index.toString());
11746
11889
  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, {
11890
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(import_react133.Fragment, { children: [
11891
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11892
+ (0, import_react133.isValidElement)(child) && (0, import_react133.cloneElement)(child, {
11750
11893
  collapsibleProps: { isCollapsibleChild: true }
11751
11894
  })
11752
11895
  ] }, `DL-${index}`);
11753
11896
  }) : 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;
11897
+ 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
11898
  const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
11756
11899
  return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
11757
11900
  });
11758
11901
  const headerRow = () => {
11759
11902
  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: [
11903
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(import_jsx_runtime288.Fragment, { children: [
11761
11904
  definingColumnCells,
11762
- /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
11905
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
11763
11906
  "Utvid",
11764
- /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(VisuallyHidden, { as: "span", children: "raden" })
11907
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(VisuallyHidden, { as: "span", children: "raden" })
11765
11908
  ] })
11766
11909
  ] }) });
11767
11910
  };
11768
11911
  const idList = spaceSeparatedIdListGenerator(collapsibleIds);
11769
11912
  const rowWithChevron = () => {
11770
11913
  if (type !== "body" || !isCollapsed) return null;
11771
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11914
+ return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
11772
11915
  definingColumnCells,
11773
- /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11916
+ /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11774
11917
  "button",
11775
11918
  {
11776
11919
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
@@ -11782,7 +11925,7 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11782
11925
  utilStyles_default["remove-button-styling"],
11783
11926
  focusable
11784
11927
  ),
11785
- children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11928
+ children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
11786
11929
  AnimatedChevronUpDown,
11787
11930
  {
11788
11931
  isUp: childrenCollapsed ? false : true,
@@ -11794,28 +11937,28 @@ var CollapsibleRow = (0, import_react129.forwardRef)(
11794
11937
  ) })
11795
11938
  ] });
11796
11939
  };
11797
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_jsx_runtime284.Fragment, { children: [
11940
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(import_jsx_runtime288.Fragment, { children: [
11798
11941
  headerRow(),
11799
- type === "body" && /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(import_jsx_runtime284.Fragment, { children: [
11942
+ type === "body" && /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(import_jsx_runtime288.Fragment, { children: [
11800
11943
  rowWithChevron(),
11801
11944
  childrenCollapsed ? null : collapsedRows
11802
11945
  ] })
11803
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Row, { ref, ...rowProps(), children });
11946
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Row, { ref, ...rowProps(), children });
11804
11947
  }
11805
11948
  );
11806
11949
  CollapsibleRow.displayName = "CollapsibleTable.Row";
11807
11950
 
11808
11951
  // 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) => {
11952
+ var import_react134 = require("react");
11953
+ var import_jsx_runtime289 = require("react/jsx-runtime");
11954
+ var CollapsibleTable = (0, import_react134.forwardRef)((props, ref) => {
11812
11955
  const {
11813
11956
  isCollapsed,
11814
11957
  headerValues,
11815
11958
  definingColumnIndex = [0],
11816
11959
  ...rest
11817
11960
  } = props;
11818
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
11961
+ return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
11819
11962
  CollapsibleTableContext.Provider,
11820
11963
  {
11821
11964
  value: {
@@ -11823,7 +11966,7 @@ var CollapsibleTable = (0, import_react130.forwardRef)((props, ref) => {
11823
11966
  headerValues,
11824
11967
  definingColumnIndex
11825
11968
  },
11826
- children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(Table2, { ref, ...rest })
11969
+ children: /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(Table2, { ref, ...rest })
11827
11970
  }
11828
11971
  );
11829
11972
  });
@@ -11834,11 +11977,11 @@ var CollapsibleTable2 = CollapsibleTable;
11834
11977
  CollapsibleTable2.Row = CollapsibleRow;
11835
11978
 
11836
11979
  // src/components/Tabs/Tabs.tsx
11837
- var import_react132 = require("react");
11980
+ var import_react136 = require("react");
11838
11981
 
11839
11982
  // src/components/Tabs/Tabs.context.tsx
11840
- var import_react131 = require("react");
11841
- var TabsContext = (0, import_react131.createContext)({
11983
+ var import_react135 = require("react");
11984
+ var TabsContext = (0, import_react135.createContext)({
11842
11985
  activeTab: 0,
11843
11986
  tabsId: "",
11844
11987
  handleTabChange: () => null,
@@ -11848,7 +11991,7 @@ var TabsContext = (0, import_react131.createContext)({
11848
11991
  setHasTabFocus: () => null,
11849
11992
  tabContentDirection: "row"
11850
11993
  });
11851
- var useTabsContext = () => (0, import_react131.useContext)(TabsContext);
11994
+ var useTabsContext = () => (0, import_react135.useContext)(TabsContext);
11852
11995
 
11853
11996
  // src/components/Tabs/Tabs.module.css
11854
11997
  var Tabs_default = {
@@ -11865,8 +12008,8 @@ var Tabs_default = {
11865
12008
  };
11866
12009
 
11867
12010
  // src/components/Tabs/Tabs.tsx
11868
- var import_jsx_runtime286 = require("react/jsx-runtime");
11869
- var Tabs = (0, import_react132.forwardRef)((props, ref) => {
12011
+ var import_jsx_runtime290 = require("react/jsx-runtime");
12012
+ var Tabs = (0, import_react136.forwardRef)((props, ref) => {
11870
12013
  const {
11871
12014
  id,
11872
12015
  activeTab,
@@ -11878,17 +12021,17 @@ var Tabs = (0, import_react132.forwardRef)((props, ref) => {
11878
12021
  htmlProps,
11879
12022
  ...rest
11880
12023
  } = props;
11881
- const generatedId = (0, import_react132.useId)();
12024
+ const generatedId = (0, import_react136.useId)();
11882
12025
  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);
12026
+ const [thisActiveTab, setActiveTab] = (0, import_react136.useState)(activeTab != null ? activeTab : 0);
12027
+ const [hasTabFocus, setHasTabFocus] = (0, import_react136.useState)(false);
12028
+ const tabListRef = (0, import_react136.useRef)(null);
12029
+ const tabPanelsRef = (0, import_react136.useRef)(null);
11887
12030
  const handleTabChange = (index) => {
11888
12031
  setActiveTab(index);
11889
12032
  onChange && onChange(index);
11890
12033
  };
11891
- (0, import_react132.useEffect)(() => {
12034
+ (0, import_react136.useEffect)(() => {
11892
12035
  if (activeTab !== void 0 && activeTab !== thisActiveTab) {
11893
12036
  setActiveTab(activeTab);
11894
12037
  }
@@ -11897,7 +12040,7 @@ var Tabs = (0, import_react132.forwardRef)((props, ref) => {
11897
12040
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11898
12041
  ["--dds-tabs-width"]: width
11899
12042
  };
11900
- return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
12043
+ return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11901
12044
  TabsContext.Provider,
11902
12045
  {
11903
12046
  value: {
@@ -11910,7 +12053,7 @@ var Tabs = (0, import_react132.forwardRef)((props, ref) => {
11910
12053
  setHasTabFocus,
11911
12054
  tabContentDirection
11912
12055
  },
11913
- children: /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
12056
+ children: /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
11914
12057
  "div",
11915
12058
  {
11916
12059
  ref,
@@ -11930,17 +12073,17 @@ var Tabs = (0, import_react132.forwardRef)((props, ref) => {
11930
12073
  Tabs.displayName = "Tabs";
11931
12074
 
11932
12075
  // src/components/Tabs/Tab.tsx
11933
- var import_react134 = require("react");
12076
+ var import_react138 = require("react");
11934
12077
 
11935
12078
  // 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);
12079
+ var import_react137 = require("react");
12080
+ var import_jsx_runtime291 = require("react/jsx-runtime");
12081
+ var TabContext = (0, import_react137.createContext)(null);
11939
12082
  function TabWidthContextProvider({
11940
12083
  children,
11941
12084
  onChangeWidths
11942
12085
  }) {
11943
- return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
12086
+ return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
11944
12087
  TabContext.Provider,
11945
12088
  {
11946
12089
  value: {
@@ -11964,16 +12107,16 @@ function TabWidthContextProvider({
11964
12107
  );
11965
12108
  }
11966
12109
  function useSetTabWidth(index, width) {
11967
- const context = (0, import_react133.useContext)(TabContext);
11968
- (0, import_react133.useLayoutEffect)(() => {
12110
+ const context = (0, import_react137.useContext)(TabContext);
12111
+ (0, import_react137.useLayoutEffect)(() => {
11969
12112
  context == null ? void 0 : context.updateWidth(index, width);
11970
12113
  return () => context == null ? void 0 : context.removeTab(index);
11971
12114
  }, [index, width]);
11972
12115
  }
11973
12116
 
11974
12117
  // src/components/Tabs/Tab.tsx
11975
- var import_jsx_runtime288 = require("react/jsx-runtime");
11976
- var Tab = (0, import_react134.forwardRef)((props, ref) => {
12118
+ var import_jsx_runtime292 = require("react/jsx-runtime");
12119
+ var Tab = (0, import_react138.forwardRef)((props, ref) => {
11977
12120
  const {
11978
12121
  active = false,
11979
12122
  icon,
@@ -11990,16 +12133,16 @@ var Tab = (0, import_react134.forwardRef)((props, ref) => {
11990
12133
  ...rest
11991
12134
  } = props;
11992
12135
  useSetTabWidth(index, width);
11993
- const itemRef = (0, import_react134.useRef)(null);
12136
+ const itemRef = (0, import_react138.useRef)(null);
11994
12137
  const combinedRef = useCombinedRef(ref, itemRef);
11995
12138
  const { tabContentDirection } = useTabsContext();
11996
- (0, import_react134.useEffect)(() => {
12139
+ (0, import_react138.useEffect)(() => {
11997
12140
  var _a;
11998
12141
  if (focus) {
11999
12142
  (_a = itemRef.current) == null ? void 0 : _a.focus();
12000
12143
  }
12001
12144
  }, [focus]);
12002
- const handleSelect = (0, import_react134.useCallback)(() => {
12145
+ const handleSelect = (0, import_react138.useCallback)(() => {
12003
12146
  if (setFocus && index) {
12004
12147
  setFocus(index);
12005
12148
  }
@@ -12012,7 +12155,7 @@ var Tab = (0, import_react134.forwardRef)((props, ref) => {
12012
12155
  handleSelect();
12013
12156
  onKeyDown && onKeyDown(e);
12014
12157
  };
12015
- return /* @__PURE__ */ (0, import_jsx_runtime288.jsxs)(
12158
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(
12016
12159
  "button",
12017
12160
  {
12018
12161
  ...getBaseHTMLProps(
@@ -12035,8 +12178,8 @@ var Tab = (0, import_react134.forwardRef)((props, ref) => {
12035
12178
  onKeyDown: handleOnKeyDown,
12036
12179
  tabIndex: focus ? 0 : -1,
12037
12180
  children: [
12038
- icon && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Icon, { icon, iconSize: "inherit" }),
12039
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("span", { children })
12181
+ icon && /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(Icon, { icon, iconSize: "inherit" }),
12182
+ /* @__PURE__ */ (0, import_jsx_runtime292.jsx)("span", { children })
12040
12183
  ]
12041
12184
  }
12042
12185
  );
@@ -12044,9 +12187,9 @@ var Tab = (0, import_react134.forwardRef)((props, ref) => {
12044
12187
  Tab.displayName = "Tab";
12045
12188
 
12046
12189
  // 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)(
12190
+ var import_react139 = require("react");
12191
+ var import_jsx_runtime293 = require("react/jsx-runtime");
12192
+ var TabList = (0, import_react139.forwardRef)(
12050
12193
  ({ children, id, style, onFocus, ...rest }, ref) => {
12051
12194
  const {
12052
12195
  activeTab,
@@ -12057,11 +12200,11 @@ var TabList = (0, import_react135.forwardRef)(
12057
12200
  setHasTabFocus
12058
12201
  } = useTabsContext();
12059
12202
  const uniqueId = id != null ? id : `${tabsId}-tablist`;
12060
- const childrenArray = import_react135.Children.toArray(children).length;
12203
+ const childrenArray = import_react139.Children.toArray(children).length;
12061
12204
  const [focus, setFocus] = useRoveFocus(childrenArray, hasTabFocus, "row");
12062
12205
  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, {
12206
+ const tabListChildren = import_react139.Children.map(children, (child, index) => {
12207
+ return (0, import_react139.isValidElement)(child) && (0, import_react139.cloneElement)(child, {
12065
12208
  id: `${tabsId}-tab-${index}`,
12066
12209
  "aria-controls": `${tabsId}-panel-${index}`,
12067
12210
  active: activeTab === index,
@@ -12071,7 +12214,7 @@ var TabList = (0, import_react135.forwardRef)(
12071
12214
  onClick: () => handleTabChange(index)
12072
12215
  });
12073
12216
  });
12074
- const [widths, setWidths] = (0, import_react135.useState)([]);
12217
+ const [widths, setWidths] = (0, import_react139.useState)([]);
12075
12218
  const handleOnFocus = (event) => {
12076
12219
  setHasTabFocus(true);
12077
12220
  onFocus && onFocus(event);
@@ -12089,7 +12232,7 @@ var TabList = (0, import_react135.forwardRef)(
12089
12232
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
12090
12233
  ["--dds-tab-widths"]: widths.join(" ")
12091
12234
  };
12092
- return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
12235
+ return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12093
12236
  "div",
12094
12237
  {
12095
12238
  ...rest,
@@ -12115,11 +12258,11 @@ var TabList = (0, import_react135.forwardRef)(
12115
12258
  TabList.displayName = "TabList";
12116
12259
 
12117
12260
  // 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)(
12261
+ var import_react140 = require("react");
12262
+ var import_jsx_runtime294 = require("react/jsx-runtime");
12263
+ var TabPanel = (0, import_react140.forwardRef)(
12121
12264
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
12122
- return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
12265
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12123
12266
  "div",
12124
12267
  {
12125
12268
  ...getBaseHTMLProps(
@@ -12144,28 +12287,28 @@ var TabPanel = (0, import_react136.forwardRef)(
12144
12287
  TabPanel.displayName = "TabPanel";
12145
12288
 
12146
12289
  // 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)(
12290
+ var import_react141 = require("react");
12291
+ var import_jsx_runtime295 = require("react/jsx-runtime");
12292
+ var TabPanels = (0, import_react141.forwardRef)(
12150
12293
  ({ children, ...rest }, ref) => {
12151
12294
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
12152
12295
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
12153
- const panelChildren = import_react137.Children.map(children, (child, index) => {
12296
+ const panelChildren = import_react141.Children.map(children, (child, index) => {
12154
12297
  const active = index === activeTab;
12155
- return (0, import_react137.isValidElement)(child) && (0, import_react137.cloneElement)(child, {
12298
+ return (0, import_react141.isValidElement)(child) && (0, import_react141.cloneElement)(child, {
12156
12299
  id: `${tabsId}-panel-${index}`,
12157
12300
  "aria-labelledby": `${tabsId}-tab-${index}`,
12158
12301
  active,
12159
12302
  "aria-expanded": active
12160
12303
  });
12161
12304
  });
12162
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
12305
+ return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
12163
12306
  }
12164
12307
  );
12165
12308
  TabPanels.displayName = "TabPanels";
12166
12309
 
12167
12310
  // src/components/Tag/Tag.tsx
12168
- var import_react138 = require("react");
12311
+ var import_react142 = require("react");
12169
12312
 
12170
12313
  // src/components/Tag/Tag.module.css
12171
12314
  var Tag_default = {
@@ -12184,7 +12327,7 @@ var Tag_default = {
12184
12327
  };
12185
12328
 
12186
12329
  // src/components/Tag/Tag.tsx
12187
- var import_jsx_runtime292 = require("react/jsx-runtime");
12330
+ var import_jsx_runtime296 = require("react/jsx-runtime");
12188
12331
  var icons3 = {
12189
12332
  info: InfoIcon,
12190
12333
  danger: ErrorIcon,
@@ -12192,7 +12335,7 @@ var icons3 = {
12192
12335
  success: CheckCircledIcon,
12193
12336
  default: void 0
12194
12337
  };
12195
- var Tag = (0, import_react138.forwardRef)((props, ref) => {
12338
+ var Tag = (0, import_react142.forwardRef)((props, ref) => {
12196
12339
  const {
12197
12340
  text,
12198
12341
  purpose = "default",
@@ -12205,7 +12348,7 @@ var Tag = (0, import_react138.forwardRef)((props, ref) => {
12205
12348
  ...rest
12206
12349
  } = props;
12207
12350
  const icon = icons3[purpose];
12208
- return /* @__PURE__ */ (0, import_jsx_runtime292.jsxs)(
12351
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12209
12352
  TextOverflowEllipsisWrapper,
12210
12353
  {
12211
12354
  ...getBaseHTMLProps(
@@ -12222,8 +12365,8 @@ var Tag = (0, import_react138.forwardRef)((props, ref) => {
12222
12365
  ),
12223
12366
  ref,
12224
12367
  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 })
12368
+ withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(Icon, { icon, iconSize: "small" }),
12369
+ /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
12227
12370
  ]
12228
12371
  }
12229
12372
  );
@@ -12232,7 +12375,7 @@ Tag.displayName = "Tag";
12232
12375
 
12233
12376
  // src/components/TextInput/TextInput.tsx
12234
12377
  var import_dds_design_tokens15 = require("@norges-domstoler/dds-design-tokens");
12235
- var import_react139 = require("react");
12378
+ var import_react143 = require("react");
12236
12379
 
12237
12380
  // src/components/TextInput/TextInput.module.css
12238
12381
  var TextInput_default = {
@@ -12259,8 +12402,8 @@ var TextInput_default = {
12259
12402
  };
12260
12403
 
12261
12404
  // src/components/TextInput/TextInput.tsx
12262
- var import_jsx_runtime293 = require("react/jsx-runtime");
12263
- var TextInput = (0, import_react139.forwardRef)(
12405
+ var import_jsx_runtime297 = require("react/jsx-runtime");
12406
+ var TextInput = (0, import_react143.forwardRef)(
12264
12407
  ({
12265
12408
  label,
12266
12409
  disabled,
@@ -12286,14 +12429,14 @@ var TextInput = (0, import_react139.forwardRef)(
12286
12429
  suffix,
12287
12430
  ...rest
12288
12431
  }, ref) => {
12289
- const [text, setText] = (0, import_react139.useState)(
12432
+ const [text, setText] = (0, import_react143.useState)(
12290
12433
  getDefaultText(value, defaultValue)
12291
12434
  );
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)(() => {
12435
+ const prefixRef = (0, import_react143.useRef)(null);
12436
+ const suffixRef = (0, import_react143.useRef)(null);
12437
+ const [prefixLength, setPrefixLength] = (0, import_react143.useState)(0);
12438
+ const [suffixLength, setSuffixLength] = (0, import_react143.useState)(0);
12439
+ (0, import_react143.useLayoutEffect)(() => {
12297
12440
  if (prefixRef.current) {
12298
12441
  setPrefixLength(prefixRef.current.offsetWidth);
12299
12442
  }
@@ -12307,7 +12450,7 @@ var TextInput = (0, import_react139.forwardRef)(
12307
12450
  onChange(event);
12308
12451
  }
12309
12452
  };
12310
- const generatedId = (0, import_react139.useId)();
12453
+ const generatedId = (0, import_react143.useId)();
12311
12454
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
12312
12455
  const hasErrorMessage = !!errorMessage;
12313
12456
  const hasTip = !!tip;
@@ -12349,13 +12492,13 @@ var TextInput = (0, import_react139.forwardRef)(
12349
12492
  const suffixPaddingInlineEnd = readOnly && suffixLength ? suffixLength + "px" : suffixLength ? import_dds_design_tokens15.ddsTokens.ddsSpacingX1NumberPx + suffixLength + "px" : void 0;
12350
12493
  let extendedInput = null;
12351
12494
  if (hasIcon) {
12352
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12495
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12353
12496
  "div",
12354
12497
  {
12355
12498
  className: cn(TextInput_default["input-width"], Input_default["input-group"]),
12356
12499
  style: styleVariables,
12357
12500
  children: [
12358
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12501
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12359
12502
  Icon,
12360
12503
  {
12361
12504
  icon,
@@ -12363,7 +12506,7 @@ var TextInput = (0, import_react139.forwardRef)(
12363
12506
  className: cn(Input_default.icon, TextInput_default[`icon--${componentSize}`])
12364
12507
  }
12365
12508
  ),
12366
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12509
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12367
12510
  StatefulInput,
12368
12511
  {
12369
12512
  ref,
@@ -12382,13 +12525,13 @@ var TextInput = (0, import_react139.forwardRef)(
12382
12525
  }
12383
12526
  );
12384
12527
  } else if (hasAffix) {
12385
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12528
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12386
12529
  "div",
12387
12530
  {
12388
12531
  className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
12389
12532
  style: styleVariables,
12390
12533
  children: [
12391
- prefix3 && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12534
+ prefix3 && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12392
12535
  "span",
12393
12536
  {
12394
12537
  ref: prefixRef,
@@ -12401,7 +12544,7 @@ var TextInput = (0, import_react139.forwardRef)(
12401
12544
  children: prefix3
12402
12545
  }
12403
12546
  ),
12404
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12547
+ /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12405
12548
  StatefulInput,
12406
12549
  {
12407
12550
  ref,
@@ -12416,7 +12559,7 @@ var TextInput = (0, import_react139.forwardRef)(
12416
12559
  className: TextInput_default["input--extended"]
12417
12560
  }
12418
12561
  ),
12419
- suffix && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12562
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12420
12563
  "span",
12421
12564
  {
12422
12565
  ref: suffixRef,
@@ -12433,7 +12576,7 @@ var TextInput = (0, import_react139.forwardRef)(
12433
12576
  }
12434
12577
  );
12435
12578
  }
12436
- return /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(
12579
+ return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12437
12580
  "div",
12438
12581
  {
12439
12582
  className: cn(
@@ -12445,7 +12588,7 @@ var TextInput = (0, import_react139.forwardRef)(
12445
12588
  ),
12446
12589
  style,
12447
12590
  children: [
12448
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12591
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12449
12592
  Label,
12450
12593
  {
12451
12594
  htmlFor: uniqueId,
@@ -12455,7 +12598,7 @@ var TextInput = (0, import_react139.forwardRef)(
12455
12598
  children: label
12456
12599
  }
12457
12600
  ),
12458
- extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12601
+ extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12459
12602
  StatefulInput,
12460
12603
  {
12461
12604
  ref,
@@ -12467,7 +12610,7 @@ var TextInput = (0, import_react139.forwardRef)(
12467
12610
  className: TextInput_default["input-width"]
12468
12611
  }
12469
12612
  ),
12470
- hasMessage && /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)("div", { className: TextInput_default["message-container"], children: [
12613
+ hasMessage && /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)("div", { className: TextInput_default["message-container"], children: [
12471
12614
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
12472
12615
  renderCharCounter(
12473
12616
  characterCounterId,
@@ -12484,14 +12627,14 @@ var TextInput = (0, import_react139.forwardRef)(
12484
12627
  TextInput.displayName = "TextInput";
12485
12628
 
12486
12629
  // src/components/ToggleBar/ToggleBar.tsx
12487
- var import_react141 = require("react");
12630
+ var import_react145 = require("react");
12488
12631
 
12489
12632
  // src/components/ToggleBar/ToggleBar.context.tsx
12490
- var import_react140 = require("react");
12491
- var ToggleBarContext = (0, import_react140.createContext)({
12633
+ var import_react144 = require("react");
12634
+ var ToggleBarContext = (0, import_react144.createContext)({
12492
12635
  size: "medium"
12493
12636
  });
12494
- var useToggleBarContext = () => (0, import_react140.useContext)(ToggleBarContext);
12637
+ var useToggleBarContext = () => (0, import_react144.useContext)(ToggleBarContext);
12495
12638
 
12496
12639
  // src/components/ToggleBar/ToggleBar.module.css
12497
12640
  var ToggleBar_default = {
@@ -12510,7 +12653,7 @@ var ToggleBar_default = {
12510
12653
  };
12511
12654
 
12512
12655
  // src/components/ToggleBar/ToggleBar.tsx
12513
- var import_jsx_runtime294 = require("react/jsx-runtime");
12656
+ var import_jsx_runtime298 = require("react/jsx-runtime");
12514
12657
  var ToggleBar = (props) => {
12515
12658
  const {
12516
12659
  children,
@@ -12525,15 +12668,15 @@ var ToggleBar = (props) => {
12525
12668
  id,
12526
12669
  ...rest
12527
12670
  } = props;
12528
- const generatedId = (0, import_react141.useId)();
12671
+ const generatedId = (0, import_react145.useId)();
12529
12672
  const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
12530
- const [groupValue, setGroupValue] = (0, import_react141.useState)(value);
12673
+ const [groupValue, setGroupValue] = (0, import_react145.useState)(value);
12531
12674
  const handleChange = combineHandlers(
12532
12675
  (e) => setGroupValue(e.target.value),
12533
12676
  (e) => onChange && onChange(e, e.target.value)
12534
12677
  );
12535
12678
  const labelId = label && `${uniqueId}-label`;
12536
- return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12679
+ return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
12537
12680
  ToggleBarContext.Provider,
12538
12681
  {
12539
12682
  value: {
@@ -12542,7 +12685,7 @@ var ToggleBar = (props) => {
12542
12685
  name,
12543
12686
  value: groupValue
12544
12687
  },
12545
- children: /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(
12688
+ children: /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(
12546
12689
  "div",
12547
12690
  {
12548
12691
  ...getBaseHTMLProps(
@@ -12555,8 +12698,8 @@ var ToggleBar = (props) => {
12555
12698
  role: "radiogroup",
12556
12699
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
12557
12700
  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 })
12701
+ label && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(Label, { id: labelId, children: label }),
12702
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)("div", { className: ToggleBar_default.bar, children })
12560
12703
  ]
12561
12704
  }
12562
12705
  )
@@ -12566,8 +12709,8 @@ var ToggleBar = (props) => {
12566
12709
  ToggleBar.displayName = "ToggleBar";
12567
12710
 
12568
12711
  // src/components/ToggleBar/ToggleRadio.tsx
12569
- var import_react142 = require("react");
12570
- var import_jsx_runtime295 = require("react/jsx-runtime");
12712
+ var import_react146 = require("react");
12713
+ var import_jsx_runtime299 = require("react/jsx-runtime");
12571
12714
  var typographyTypes4 = {
12572
12715
  large: "bodySans04",
12573
12716
  medium: "bodySans02",
@@ -12584,7 +12727,7 @@ var calculateChecked = (value, group, checked) => {
12584
12727
  }
12585
12728
  return !!value;
12586
12729
  };
12587
- var ToggleRadio = (0, import_react142.forwardRef)(
12730
+ var ToggleRadio = (0, import_react146.forwardRef)(
12588
12731
  (props, ref) => {
12589
12732
  const {
12590
12733
  value,
@@ -12600,7 +12743,7 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12600
12743
  id,
12601
12744
  ...rest
12602
12745
  } = props;
12603
- const generatedId = (0, import_react142.useId)();
12746
+ const generatedId = (0, import_react146.useId)();
12604
12747
  const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
12605
12748
  const group = useToggleBarContext();
12606
12749
  const handleChange = (event) => {
@@ -12608,8 +12751,8 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12608
12751
  (group == null ? void 0 : group.onChange) && group.onChange(event);
12609
12752
  };
12610
12753
  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)(
12754
+ return /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
12755
+ /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
12613
12756
  "input",
12614
12757
  {
12615
12758
  ...getBaseHTMLProps(
@@ -12632,7 +12775,7 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12632
12775
  "aria-labelledby": ariaLabelledBy
12633
12776
  }
12634
12777
  ),
12635
- /* @__PURE__ */ (0, import_jsx_runtime295.jsxs)(
12778
+ /* @__PURE__ */ (0, import_jsx_runtime299.jsxs)(
12636
12779
  Typography,
12637
12780
  {
12638
12781
  as: "span",
@@ -12643,8 +12786,8 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12643
12786
  focus_default["focus-styled-sibling"]
12644
12787
  ),
12645
12788
  children: [
12646
- icon && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(Icon, { icon, iconSize: "inherit" }),
12647
- label && /* @__PURE__ */ (0, import_jsx_runtime295.jsx)("span", { children: label })
12789
+ icon && /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(Icon, { icon, iconSize: "inherit" }),
12790
+ label && /* @__PURE__ */ (0, import_jsx_runtime299.jsx)("span", { children: label })
12648
12791
  ]
12649
12792
  }
12650
12793
  )
@@ -12654,7 +12797,7 @@ var ToggleRadio = (0, import_react142.forwardRef)(
12654
12797
  ToggleRadio.displayName = "ToggleRadio";
12655
12798
 
12656
12799
  // src/components/ToggleButton/ToggleButton.tsx
12657
- var import_react143 = require("react");
12800
+ var import_react147 = require("react");
12658
12801
 
12659
12802
  // src/components/ToggleButton/ToggleButton.module.css
12660
12803
  var ToggleButton_default = {
@@ -12667,13 +12810,13 @@ var ToggleButton_default = {
12667
12810
  };
12668
12811
 
12669
12812
  // src/components/ToggleButton/ToggleButton.tsx
12670
- var import_jsx_runtime296 = require("react/jsx-runtime");
12671
- var ToggleButton = (0, import_react143.forwardRef)(
12813
+ var import_jsx_runtime300 = require("react/jsx-runtime");
12814
+ var ToggleButton = (0, import_react147.forwardRef)(
12672
12815
  ({ id, label, icon, className, htmlProps, ...rest }, ref) => {
12673
- const generatedId = (0, import_react143.useId)();
12816
+ const generatedId = (0, import_react147.useId)();
12674
12817
  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)(
12818
+ return /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
12819
+ /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
12677
12820
  "input",
12678
12821
  {
12679
12822
  ...getBaseHTMLProps(
@@ -12690,7 +12833,7 @@ var ToggleButton = (0, import_react143.forwardRef)(
12690
12833
  type: "checkbox"
12691
12834
  }
12692
12835
  ),
12693
- /* @__PURE__ */ (0, import_jsx_runtime296.jsxs)(
12836
+ /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(
12694
12837
  "span",
12695
12838
  {
12696
12839
  className: cn(
@@ -12699,7 +12842,7 @@ var ToggleButton = (0, import_react143.forwardRef)(
12699
12842
  focus_default["focus-styled-sibling"]
12700
12843
  ),
12701
12844
  children: [
12702
- icon && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(Icon, { icon, iconSize: "inherit" }),
12845
+ icon && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Icon, { icon, iconSize: "inherit" }),
12703
12846
  " ",
12704
12847
  label
12705
12848
  ]
@@ -12711,8 +12854,8 @@ var ToggleButton = (0, import_react143.forwardRef)(
12711
12854
  ToggleButton.displayName = "ToggleButton";
12712
12855
 
12713
12856
  // src/components/ToggleButton/ToggleButtonGroup.tsx
12714
- var import_react144 = require("react");
12715
- var import_jsx_runtime297 = require("react/jsx-runtime");
12857
+ var import_react148 = require("react");
12858
+ var import_jsx_runtime301 = require("react/jsx-runtime");
12716
12859
  var ToggleButtonGroup = (props) => {
12717
12860
  const {
12718
12861
  children,
@@ -12724,9 +12867,9 @@ var ToggleButtonGroup = (props) => {
12724
12867
  htmlProps,
12725
12868
  ...rest
12726
12869
  } = props;
12727
- const generatedId = (0, import_react144.useId)();
12870
+ const generatedId = (0, import_react148.useId)();
12728
12871
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
12729
- return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
12872
+ return /* @__PURE__ */ (0, import_jsx_runtime301.jsxs)(
12730
12873
  "div",
12731
12874
  {
12732
12875
  ...getBaseHTMLProps(
@@ -12738,7 +12881,7 @@ var ToggleButtonGroup = (props) => {
12738
12881
  role: "group",
12739
12882
  "aria-labelledby": label ? uniqueLabelId : void 0,
12740
12883
  children: [
12741
- !!label && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12884
+ !!label && /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(
12742
12885
  Typography,
12743
12886
  {
12744
12887
  as: "span",
@@ -12747,7 +12890,7 @@ var ToggleButtonGroup = (props) => {
12747
12890
  children: label
12748
12891
  }
12749
12892
  ),
12750
- /* @__PURE__ */ (0, import_jsx_runtime297.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12893
+ /* @__PURE__ */ (0, import_jsx_runtime301.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
12751
12894
  ]
12752
12895
  }
12753
12896
  );
@@ -12824,6 +12967,10 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
12824
12967
  DescriptionListDesc,
12825
12968
  DescriptionListGroup,
12826
12969
  DescriptionListTerm,
12970
+ DetailList,
12971
+ DetailListDesc,
12972
+ DetailListRow,
12973
+ DetailListTerm,
12827
12974
  Divider,
12828
12975
  DoubleChevronLeftIcon,
12829
12976
  DoubleChevronRightIcon,
@@ -13050,6 +13197,7 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
13050
13197
  focusVisibleTransitionValue,
13051
13198
  getBaseHTMLProps,
13052
13199
  getDefaultText,
13200
+ getDensityCn,
13053
13201
  getElementType,
13054
13202
  getLiteralScreenSize,
13055
13203
  getTypographyCn,