@norges-domstoler/dds-components 0.0.0-dev-20240306143134 → 0.0.0-dev-20240307085413

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5690,6 +5690,7 @@ import { GregorianCalendar } from "@internationalized/date";
5690
5690
  import {
5691
5691
  useCalendar
5692
5692
  } from "@react-aria/calendar";
5693
+ import { useLocale as useLocale2 } from "@react-aria/i18n";
5693
5694
  import { useCalendarState } from "@react-stately/calendar";
5694
5695
  import {
5695
5696
  useContext as useContext5
@@ -5701,6 +5702,7 @@ import { getWeeksInMonth } from "@internationalized/date";
5701
5702
  import {
5702
5703
  useCalendarGrid
5703
5704
  } from "@react-aria/calendar";
5705
+ import { useLocale } from "@react-aria/i18n";
5704
5706
  import styled33 from "styled-components";
5705
5707
 
5706
5708
  // src/components/date-inputs/DatePicker/Calendar/Calendar.tokens.ts
@@ -5997,11 +5999,12 @@ var WeekNumber = styled33.td`
5997
5999
  justify-content: center;
5998
6000
  `;
5999
6001
  function CalendarGrid({ state, ...props }) {
6002
+ const { locale: locale2 } = useLocale();
6000
6003
  const {
6001
6004
  gridProps: { onKeyDown, ...gridProps },
6002
6005
  headerProps
6003
6006
  } = useCalendarGrid(props, state);
6004
- const weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale);
6007
+ const weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale2);
6005
6008
  const weekDays = ["Ma", "Ti", "On", "To", "Fr", "L\xF8", "S\xF8"];
6006
6009
  return /* @__PURE__ */ jsxs32(
6007
6010
  "table",
@@ -6066,10 +6069,11 @@ function createCalendar(identifier) {
6066
6069
  }
6067
6070
  }
6068
6071
  function Calendar(props) {
6072
+ const { locale: locale2 } = useLocale2();
6069
6073
  const state = useCalendarState({
6070
6074
  ...props,
6071
6075
  createCalendar,
6072
- locale
6076
+ locale: locale2
6073
6077
  });
6074
6078
  const {
6075
6079
  calendarProps,
@@ -6119,6 +6123,7 @@ Calendar.displayName = "Calendar";
6119
6123
 
6120
6124
  // src/components/date-inputs/DatePicker/DatePicker.tsx
6121
6125
  import { useDatePicker } from "@react-aria/datepicker";
6126
+ import { I18nProvider } from "@react-aria/i18n";
6122
6127
  import { useDatePickerState } from "@react-stately/datepicker";
6123
6128
  import { forwardRef as forwardRef23, useRef as useRef16 } from "react";
6124
6129
 
@@ -6129,6 +6134,7 @@ import {
6129
6134
  import {
6130
6135
  useDateField
6131
6136
  } from "@react-aria/datepicker";
6137
+ import { useLocale as useLocale3 } from "@react-aria/i18n";
6132
6138
  import { useDateFieldState } from "@react-stately/datepicker";
6133
6139
  import {
6134
6140
  forwardRef as forwardRef22,
@@ -6482,9 +6488,10 @@ function _DateField({
6482
6488
  groupProps,
6483
6489
  ...props
6484
6490
  }, forwardedRef) {
6491
+ const { locale: locale2 } = useLocale3();
6485
6492
  const state = useDateFieldState({
6486
6493
  ...props,
6487
- locale,
6494
+ locale: locale2,
6488
6495
  createCalendar: createCalendar2
6489
6496
  });
6490
6497
  const ref = useRef14(null);
@@ -6565,7 +6572,7 @@ function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props
6565
6572
  state,
6566
6573
  ref
6567
6574
  );
6568
- return /* @__PURE__ */ jsxs36(CalendarPopover, { isOpen: state.isOpen, onClose: state.close, children: [
6575
+ return /* @__PURE__ */ jsx200(I18nProvider, { locale, children: /* @__PURE__ */ jsxs36(CalendarPopover, { isOpen: state.isOpen, onClose: state.close, children: [
6569
6576
  /* @__PURE__ */ jsx200(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx200(
6570
6577
  DateField,
6571
6578
  {
@@ -6583,7 +6590,7 @@ function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props
6583
6590
  }
6584
6591
  ) }),
6585
6592
  /* @__PURE__ */ jsx200(CalendarPopoverContent, { children: /* @__PURE__ */ jsx200(Calendar, { ...calendarProps }) })
6586
- ] });
6593
+ ] }) });
6587
6594
  }
6588
6595
  var DatePicker = forwardRef23(_DatePicker);
6589
6596
  DatePicker.displayName = "DatePicker";
@@ -8774,8 +8781,25 @@ var GridChild = (props) => {
8774
8781
  };
8775
8782
  GridChild.displayName = "GridChild";
8776
8783
 
8784
+ // src/components/InlineButton/InlineButton.tsx
8785
+ import { forwardRef as forwardRef35 } from "react";
8786
+ import styled58 from "styled-components";
8787
+ import { jsx as jsx222 } from "react/jsx-runtime";
8788
+ var StyledInlineButton = styled58.button`
8789
+ ${normalizeButton}
8790
+ ${removeButtonStyling}
8791
+ display: inline;
8792
+ ${getAnchorStyling()}
8793
+ `;
8794
+ var InlineButton = forwardRef35(
8795
+ (props, ref) => {
8796
+ const { children, ...rest } = props;
8797
+ return /* @__PURE__ */ jsx222(StyledInlineButton, { ref, ...rest, children });
8798
+ }
8799
+ );
8800
+
8777
8801
  // src/components/InlineEdit/InlineEditTextArea.tsx
8778
- import { forwardRef as forwardRef36, useRef as useRef24 } from "react";
8802
+ import { forwardRef as forwardRef37, useRef as useRef24 } from "react";
8779
8803
 
8780
8804
  // src/components/InlineEdit/InlineEdit.tsx
8781
8805
  import {
@@ -8784,7 +8808,7 @@ import {
8784
8808
  isValidElement as isValidElement5,
8785
8809
  useState as useState17
8786
8810
  } from "react";
8787
- import { Fragment as Fragment7, jsx as jsx222 } from "react/jsx-runtime";
8811
+ import { Fragment as Fragment7, jsx as jsx223 } from "react/jsx-runtime";
8788
8812
  var InlineEdit = (props) => {
8789
8813
  const {
8790
8814
  emptiable,
@@ -8834,15 +8858,15 @@ var InlineEdit = (props) => {
8834
8858
  emptiable
8835
8859
  })
8836
8860
  );
8837
- return /* @__PURE__ */ jsx222(Fragment7, { children: inputChild });
8861
+ return /* @__PURE__ */ jsx223(Fragment7, { children: inputChild });
8838
8862
  };
8839
8863
  InlineEdit.displayName = "InlineEdit";
8840
8864
 
8841
8865
  // src/components/InlineEdit/InlineTextArea.tsx
8842
- import { forwardRef as forwardRef35, useId as useId11, useRef as useRef23 } from "react";
8866
+ import { forwardRef as forwardRef36, useId as useId11, useRef as useRef23 } from "react";
8843
8867
 
8844
8868
  // src/components/InlineEdit/InlineEdit.styles.tsx
8845
- import styled58, { css as css23 } from "styled-components";
8869
+ import styled59, { css as css23 } from "styled-components";
8846
8870
 
8847
8871
  // src/components/InlineEdit/InlineEdit.tokens.ts
8848
8872
  import { ddsBaseTokens as ddsBaseTokens41 } from "@norges-domstoler/dds-design-tokens";
@@ -8873,7 +8897,7 @@ var inlineEditTokens = {
8873
8897
  // src/components/InlineEdit/InlineEdit.styles.tsx
8874
8898
  var { inlineEdit: inlineEdit2, iconWrapper: iconWrapper2 } = inlineEditTokens;
8875
8899
  var defaultWidth3 = "140px";
8876
- var StyledInlineInput = styled58(StatefulInput).withConfig({
8900
+ var StyledInlineInput = styled59(StatefulInput).withConfig({
8877
8901
  shouldForwardProp: (prop) => prop !== "isEditing" && prop !== "hideIcon"
8878
8902
  })`
8879
8903
  border-color: transparent;
@@ -8893,14 +8917,14 @@ var StyledInlineInput = styled58(StatefulInput).withConfig({
8893
8917
  background-color: ${inlineEdit2.focus.backgroundColor};
8894
8918
  }
8895
8919
  `;
8896
- var StyledInlineTextArea = styled58(StyledInlineInput).attrs({
8920
+ var StyledInlineTextArea = styled59(StyledInlineInput).attrs({
8897
8921
  as: "textarea"
8898
8922
  })`
8899
8923
  resize: vertical;
8900
8924
  ${scrollbarStyling.webkit}
8901
8925
  ${scrollbarStyling.firefox}
8902
8926
  `;
8903
- var IconWrapper2 = styled58.span`
8927
+ var IconWrapper2 = styled59.span`
8904
8928
  position: absolute;
8905
8929
  left: ${iconWrapper2.left};
8906
8930
  top: ${iconWrapper2.top};
@@ -8919,8 +8943,8 @@ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs49(Visuall
8919
8943
  ] });
8920
8944
 
8921
8945
  // src/components/InlineEdit/InlineTextArea.tsx
8922
- import { jsx as jsx223, jsxs as jsxs50 } from "react/jsx-runtime";
8923
- var InlineTextArea = forwardRef35((props, ref) => {
8946
+ import { jsx as jsx224, jsxs as jsxs50 } from "react/jsx-runtime";
8947
+ var InlineTextArea = forwardRef36((props, ref) => {
8924
8948
  const {
8925
8949
  id,
8926
8950
  error,
@@ -8941,17 +8965,17 @@ var InlineTextArea = forwardRef35((props, ref) => {
8941
8965
  const combinedRef = useCombinedRef(ref, inputRef);
8942
8966
  return /* @__PURE__ */ jsxs50(OuterInputContainer, { $width: width, children: [
8943
8967
  /* @__PURE__ */ jsxs50(InputContainer, { children: [
8944
- !isEditing && !hideIcon && /* @__PURE__ */ jsx223(
8968
+ !isEditing && !hideIcon && /* @__PURE__ */ jsx224(
8945
8969
  IconWrapper2,
8946
8970
  {
8947
8971
  onClick: () => {
8948
8972
  var _a;
8949
8973
  (_a = inputRef.current) == null ? void 0 : _a.focus();
8950
8974
  },
8951
- children: /* @__PURE__ */ jsx223(Icon, { icon: EditIcon, iconSize: "small" })
8975
+ children: /* @__PURE__ */ jsx224(Icon, { icon: EditIcon, iconSize: "small" })
8952
8976
  }
8953
8977
  ),
8954
- /* @__PURE__ */ jsx223(
8978
+ /* @__PURE__ */ jsx224(
8955
8979
  StyledInlineTextArea,
8956
8980
  {
8957
8981
  ...rest,
@@ -8975,12 +8999,12 @@ var InlineTextArea = forwardRef35((props, ref) => {
8975
8999
  InlineTextArea.displayName = "InlineTextArea";
8976
9000
 
8977
9001
  // src/components/InlineEdit/InlineEditTextArea.tsx
8978
- import { jsx as jsx224 } from "react/jsx-runtime";
8979
- var InlineEditTextArea = forwardRef36((props, ref) => {
9002
+ import { jsx as jsx225 } from "react/jsx-runtime";
9003
+ var InlineEditTextArea = forwardRef37((props, ref) => {
8980
9004
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
8981
9005
  const textareaRef = useRef24(null);
8982
9006
  const combinedRef = useCombinedRef(ref, textareaRef);
8983
- return /* @__PURE__ */ jsx224(
9007
+ return /* @__PURE__ */ jsx225(
8984
9008
  InlineEdit,
8985
9009
  {
8986
9010
  onSetValue,
@@ -8990,18 +9014,18 @@ var InlineEditTextArea = forwardRef36((props, ref) => {
8990
9014
  onFocus,
8991
9015
  onChange,
8992
9016
  onBlur,
8993
- children: /* @__PURE__ */ jsx224(InlineTextArea, { ref: combinedRef, ...rest })
9017
+ children: /* @__PURE__ */ jsx225(InlineTextArea, { ref: combinedRef, ...rest })
8994
9018
  }
8995
9019
  );
8996
9020
  });
8997
9021
 
8998
9022
  // src/components/InlineEdit/InlineEditInput.tsx
8999
- import { forwardRef as forwardRef38, useRef as useRef26 } from "react";
9023
+ import { forwardRef as forwardRef39, useRef as useRef26 } from "react";
9000
9024
 
9001
9025
  // src/components/InlineEdit/InlineInput.tsx
9002
- import { forwardRef as forwardRef37, useId as useId12, useRef as useRef25 } from "react";
9003
- import { jsx as jsx225, jsxs as jsxs51 } from "react/jsx-runtime";
9004
- var InlineInput = forwardRef37(
9026
+ import { forwardRef as forwardRef38, useId as useId12, useRef as useRef25 } from "react";
9027
+ import { jsx as jsx226, jsxs as jsxs51 } from "react/jsx-runtime";
9028
+ var InlineInput = forwardRef38(
9005
9029
  (props, ref) => {
9006
9030
  const {
9007
9031
  id,
@@ -9025,17 +9049,17 @@ var InlineInput = forwardRef37(
9025
9049
  const combinedRef = useCombinedRef(ref, inputRef);
9026
9050
  return /* @__PURE__ */ jsxs51(OuterInputContainer, { $width: width, children: [
9027
9051
  /* @__PURE__ */ jsxs51(InputContainer, { children: [
9028
- !isEditing && !hideIcon && /* @__PURE__ */ jsx225(
9052
+ !isEditing && !hideIcon && /* @__PURE__ */ jsx226(
9029
9053
  IconWrapper2,
9030
9054
  {
9031
9055
  onClick: () => {
9032
9056
  var _a;
9033
9057
  (_a = inputRef.current) == null ? void 0 : _a.focus();
9034
9058
  },
9035
- children: /* @__PURE__ */ jsx225(Icon, { icon: EditIcon, iconSize: "small" })
9059
+ children: /* @__PURE__ */ jsx226(Icon, { icon: EditIcon, iconSize: "small" })
9036
9060
  }
9037
9061
  ),
9038
- /* @__PURE__ */ jsx225(
9062
+ /* @__PURE__ */ jsx226(
9039
9063
  StyledInlineInput,
9040
9064
  {
9041
9065
  ...rest,
@@ -9061,12 +9085,12 @@ var InlineInput = forwardRef37(
9061
9085
  InlineInput.displayName = "InlineInput";
9062
9086
 
9063
9087
  // src/components/InlineEdit/InlineEditInput.tsx
9064
- import { jsx as jsx226 } from "react/jsx-runtime";
9065
- var InlineEditInput = forwardRef38((props, ref) => {
9088
+ import { jsx as jsx227 } from "react/jsx-runtime";
9089
+ var InlineEditInput = forwardRef39((props, ref) => {
9066
9090
  const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
9067
9091
  const inputRef = useRef26(null);
9068
9092
  const combinedRef = useCombinedRef(ref, inputRef);
9069
- return /* @__PURE__ */ jsx226(
9093
+ return /* @__PURE__ */ jsx227(
9070
9094
  InlineEdit,
9071
9095
  {
9072
9096
  onSetValue,
@@ -9076,7 +9100,7 @@ var InlineEditInput = forwardRef38((props, ref) => {
9076
9100
  onFocus,
9077
9101
  onChange,
9078
9102
  onBlur,
9079
- children: /* @__PURE__ */ jsx226(InlineInput, { ...rest, ref: combinedRef })
9103
+ children: /* @__PURE__ */ jsx227(InlineInput, { ...rest, ref: combinedRef })
9080
9104
  }
9081
9105
  );
9082
9106
  });
@@ -9085,7 +9109,7 @@ var InlineEditInput = forwardRef38((props, ref) => {
9085
9109
  import { useRef as useRef27, useState as useState18 } from "react";
9086
9110
 
9087
9111
  // src/components/InternalHeader/InternalHeader.styles.tsx
9088
- import styled59, { css as css24 } from "styled-components";
9112
+ import styled60, { css as css24 } from "styled-components";
9089
9113
 
9090
9114
  // src/components/InternalHeader/InternalHeader.tokens.tsx
9091
9115
  import { ddsBaseTokens as ddsBaseTokens42 } from "@norges-domstoler/dds-design-tokens";
@@ -9109,7 +9133,7 @@ var internalHeaderTokens = {
9109
9133
 
9110
9134
  // src/components/InternalHeader/InternalHeader.styles.tsx
9111
9135
  var { bar: bar2, separator: separator2 } = internalHeaderTokens;
9112
- var Bar2 = styled59.div`
9136
+ var Bar2 = styled60.div`
9113
9137
  *::selection {
9114
9138
  ${selection}
9115
9139
  }
@@ -9132,11 +9156,11 @@ var Bar2 = styled59.div`
9132
9156
  }
9133
9157
  `}
9134
9158
  `;
9135
- var BarSeparator = styled59.div`
9159
+ var BarSeparator = styled60.div`
9136
9160
  border-left: ${separator2.width} solid ${separator2.color};
9137
9161
  align-self: stretch;
9138
9162
  `;
9139
- var AppNameLink = styled59.a`
9163
+ var AppNameLink = styled60.a`
9140
9164
  ${inheritLinkStyling}
9141
9165
  transition: ${focusVisibleTransitionValue};
9142
9166
  &:focus-visible,
@@ -9144,7 +9168,7 @@ var AppNameLink = styled59.a`
9144
9168
  ${focusVisible}
9145
9169
  }
9146
9170
  `;
9147
- var NavigationList = styled59.ul`
9171
+ var NavigationList = styled60.ul`
9148
9172
  box-sizing: border-box;
9149
9173
  display: flex;
9150
9174
  gap: ${bar2.itemGap};
@@ -9158,17 +9182,17 @@ var NavigationList = styled59.ul`
9158
9182
  padding: 0;
9159
9183
  margin: 0;
9160
9184
  `;
9161
- var ContextMenuGroup = styled59.div``;
9162
- var StyledOverflowMenu = styled59(OverflowMenu)`
9185
+ var ContextMenuGroup = styled60.div``;
9186
+ var StyledOverflowMenu = styled60(OverflowMenu)`
9163
9187
  max-height: calc(100vh - 110px);
9164
9188
  `;
9165
- var NavLi = styled59.li`
9189
+ var NavLi = styled60.li`
9166
9190
  display: flex;
9167
9191
  `;
9168
9192
 
9169
9193
  // src/components/InternalHeader/NavigationItem.tsx
9170
- import { forwardRef as forwardRef39 } from "react";
9171
- import styled60 from "styled-components";
9194
+ import { forwardRef as forwardRef40 } from "react";
9195
+ import styled61 from "styled-components";
9172
9196
 
9173
9197
  // src/components/InternalHeader/NavigationItem.tokens.ts
9174
9198
  import { ddsBaseTokens as ddsBaseTokens43 } from "@norges-domstoler/dds-design-tokens";
@@ -9209,8 +9233,8 @@ function getNavTokens({ active }) {
9209
9233
  }
9210
9234
 
9211
9235
  // src/components/InternalHeader/NavigationItem.tsx
9212
- import { jsx as jsx227 } from "react/jsx-runtime";
9213
- var Link3 = styled60.a`
9236
+ import { jsx as jsx228 } from "react/jsx-runtime";
9237
+ var Link3 = styled61.a`
9214
9238
  ${getFontStyling("bodySans02")}
9215
9239
  text-decoration: none;
9216
9240
 
@@ -9237,8 +9261,8 @@ var Link3 = styled60.a`
9237
9261
  transition: background-color 0.2s;
9238
9262
  }
9239
9263
  `;
9240
- var NavigationItem2 = forwardRef39(({ title: title3, isCurrent, ...rest }, ref) => {
9241
- return /* @__PURE__ */ jsx227(
9264
+ var NavigationItem2 = forwardRef40(({ title: title3, isCurrent, ...rest }, ref) => {
9265
+ return /* @__PURE__ */ jsx228(
9242
9266
  Link3,
9243
9267
  {
9244
9268
  ...rest,
@@ -9251,7 +9275,7 @@ var NavigationItem2 = forwardRef39(({ title: title3, isCurrent, ...rest }, ref)
9251
9275
  });
9252
9276
 
9253
9277
  // src/components/InternalHeader/InternalHeader.tsx
9254
- import { jsx as jsx228, jsxs as jsxs52 } from "react/jsx-runtime";
9278
+ import { jsx as jsx229, jsxs as jsxs52 } from "react/jsx-runtime";
9255
9279
  var InternalHeader = (props) => {
9256
9280
  const {
9257
9281
  applicationDesc,
@@ -9284,10 +9308,10 @@ var InternalHeader = (props) => {
9284
9308
  const hasNavigationElements = !!navigationElements && navigationElements.length > 0;
9285
9309
  const hasContextMenuElements = !!contextMenuElements && contextMenuElements.length > 0;
9286
9310
  const hasNavInContextMenu = smallScreen && hasNavigationElements;
9287
- const navigation2 = hasNavigationElements && !smallScreen ? /* @__PURE__ */ jsx228("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx228(NavigationList, { children: navigationElements.map((item, index) => {
9311
+ const navigation2 = hasNavigationElements && !smallScreen ? /* @__PURE__ */ jsx229("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx229(NavigationList, { children: navigationElements.map((item, index) => {
9288
9312
  const { href, ...rest2 } = item;
9289
9313
  const isCurrent = href === currentPage;
9290
- return /* @__PURE__ */ jsx228(NavLi, { children: /* @__PURE__ */ jsx228(
9314
+ return /* @__PURE__ */ jsx229(NavLi, { children: /* @__PURE__ */ jsx229(
9291
9315
  NavigationItem2,
9292
9316
  {
9293
9317
  href,
@@ -9304,12 +9328,12 @@ var InternalHeader = (props) => {
9304
9328
  ...getBaseHTMLProps(id, className, htmlProps, rest),
9305
9329
  $hasNavigation: !!navigation2,
9306
9330
  children: [
9307
- /* @__PURE__ */ jsx228(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx228(AppNameLink, { href: applicationHref, rel: "noopener noreferrer", children: applicationName }) : applicationName }),
9308
- /* @__PURE__ */ jsx228(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
9309
- (hasContextMenu || navigation2 !== null) && /* @__PURE__ */ jsx228(BarSeparator, {}),
9331
+ /* @__PURE__ */ jsx229(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx229(AppNameLink, { href: applicationHref, rel: "noopener noreferrer", children: applicationName }) : applicationName }),
9332
+ /* @__PURE__ */ jsx229(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
9333
+ (hasContextMenu || navigation2 !== null) && /* @__PURE__ */ jsx229(BarSeparator, {}),
9310
9334
  navigation2,
9311
9335
  hasContextMenu && /* @__PURE__ */ jsxs52(ContextMenuGroup, { children: [
9312
- /* @__PURE__ */ jsx228(
9336
+ /* @__PURE__ */ jsx229(
9313
9337
  Button,
9314
9338
  {
9315
9339
  ref: buttonRef,
@@ -9322,7 +9346,7 @@ var InternalHeader = (props) => {
9322
9346
  "aria-label": "\xE5pne meny"
9323
9347
  }
9324
9348
  ),
9325
- /* @__PURE__ */ jsx228(
9349
+ /* @__PURE__ */ jsx229(
9326
9350
  StyledOverflowMenu,
9327
9351
  {
9328
9352
  isOpen: !contextMenuIsClosed,
@@ -9341,8 +9365,8 @@ var InternalHeader = (props) => {
9341
9365
  InternalHeader.displayName = "InternalHeader";
9342
9366
 
9343
9367
  // src/components/List/List.tsx
9344
- import { forwardRef as forwardRef40 } from "react";
9345
- import styled61, { css as css25 } from "styled-components";
9368
+ import { forwardRef as forwardRef41 } from "react";
9369
+ import styled62, { css as css25 } from "styled-components";
9346
9370
 
9347
9371
  // src/components/List/bullets/jordskifterett_bullet1.svg
9348
9372
  var jordskifterett_bullet1_default = 'data:image/svg+xml,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<circle cx="6.7085" cy="6.7085" r="2.625" fill="%230B0D0E"/>%0A</svg>%0A';
@@ -9391,9 +9415,9 @@ var listTokens = {
9391
9415
  };
9392
9416
 
9393
9417
  // src/components/List/List.tsx
9394
- import { jsx as jsx229 } from "react/jsx-runtime";
9418
+ import { jsx as jsx230 } from "react/jsx-runtime";
9395
9419
  var { list: list6, listItem: listItem4, bullet: bullet2 } = listTokens;
9396
- var StyledList = styled61.ul`
9420
+ var StyledList = styled62.ul`
9397
9421
  margin: ${list6.base.margin};
9398
9422
  color: ${list6.base.color};
9399
9423
  ul,
@@ -9445,7 +9469,7 @@ var StyledList = styled61.ul`
9445
9469
  }
9446
9470
  `}
9447
9471
  `;
9448
- var List2 = forwardRef40(
9472
+ var List2 = forwardRef41(
9449
9473
  (props, ref) => {
9450
9474
  const {
9451
9475
  listType = "unordered",
@@ -9457,7 +9481,7 @@ var List2 = forwardRef40(
9457
9481
  ...rest
9458
9482
  } = props;
9459
9483
  const as = listType === "ordered" ? "ol" : "ul";
9460
- return /* @__PURE__ */ jsx229(
9484
+ return /* @__PURE__ */ jsx230(
9461
9485
  StyledList,
9462
9486
  {
9463
9487
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9473,22 +9497,22 @@ var List2 = forwardRef40(
9473
9497
  List2.displayName = "List";
9474
9498
 
9475
9499
  // src/components/List/ListItem.tsx
9476
- import { forwardRef as forwardRef41 } from "react";
9477
- import styled62 from "styled-components";
9478
- import { jsx as jsx230 } from "react/jsx-runtime";
9479
- var StyledListItem = styled62.li`
9500
+ import { forwardRef as forwardRef42 } from "react";
9501
+ import styled63 from "styled-components";
9502
+ import { jsx as jsx231 } from "react/jsx-runtime";
9503
+ var StyledListItem = styled63.li`
9480
9504
  line-height: ${listTokens.listItem.lineHeight};
9481
9505
  `;
9482
- var ListItem2 = forwardRef41(
9506
+ var ListItem2 = forwardRef42(
9483
9507
  ({ children, ...rest }, ref) => {
9484
- return /* @__PURE__ */ jsx230(StyledListItem, { ref, ...rest, children });
9508
+ return /* @__PURE__ */ jsx231(StyledListItem, { ref, ...rest, children });
9485
9509
  }
9486
9510
  );
9487
9511
  ListItem2.displayName = "ListItem";
9488
9512
 
9489
9513
  // src/components/LocalMessage/LocalMessage.tsx
9490
- import { forwardRef as forwardRef42, useState as useState19 } from "react";
9491
- import styled63, { css as css26 } from "styled-components";
9514
+ import { forwardRef as forwardRef43, useState as useState19 } from "react";
9515
+ import styled64, { css as css26 } from "styled-components";
9492
9516
 
9493
9517
  // src/components/LocalMessage/LocalMessage.tokens.tsx
9494
9518
  import { ddsBaseTokens as ddsBaseTokens45 } from "@norges-domstoler/dds-design-tokens";
@@ -9588,9 +9612,9 @@ var localMessageTokens = {
9588
9612
  };
9589
9613
 
9590
9614
  // src/components/LocalMessage/LocalMessage.tsx
9591
- import { Fragment as Fragment8, jsx as jsx231, jsxs as jsxs53 } from "react/jsx-runtime";
9615
+ import { Fragment as Fragment8, jsx as jsx232, jsxs as jsxs53 } from "react/jsx-runtime";
9592
9616
  var { container: container10, content: content4, icon: icon6, purposeVariants: purposeVariants3 } = localMessageTokens;
9593
- var Container8 = styled63.div.withConfig({
9617
+ var Container8 = styled64.div.withConfig({
9594
9618
  shouldForwardProp: (prop) => {
9595
9619
  const styleOnlyProps = [
9596
9620
  "layout",
@@ -9641,18 +9665,18 @@ function getGridTemplateColumns(layout, closable) {
9641
9665
  }
9642
9666
  return layout === "horisontal" ? "min-content 1fr" : "1fr";
9643
9667
  }
9644
- var MessageIconWrapper2 = styled63(Icon)`
9668
+ var MessageIconWrapper2 = styled64(Icon)`
9645
9669
  grid-area: icon;
9646
9670
  `;
9647
- var TextContainer2 = styled63.div`
9671
+ var TextContainer2 = styled64.div`
9648
9672
  grid-area: text;
9649
9673
  padding-right: ${content4.base.paddingRight};
9650
9674
  `;
9651
- var CloseButton = styled63(Button)`
9675
+ var CloseButton = styled64(Button)`
9652
9676
  grid-area: closeButton;
9653
9677
  margin: -${container10.base.padding} 0;
9654
9678
  `;
9655
- var LocalMessage = forwardRef42(
9679
+ var LocalMessage = forwardRef43(
9656
9680
  (props, ref) => {
9657
9681
  const {
9658
9682
  message: message2,
@@ -9677,18 +9701,18 @@ var LocalMessage = forwardRef42(
9677
9701
  ref
9678
9702
  };
9679
9703
  if (isClosed) {
9680
- return /* @__PURE__ */ jsx231(Fragment8, {});
9704
+ return /* @__PURE__ */ jsx232(Fragment8, {});
9681
9705
  }
9682
9706
  return /* @__PURE__ */ jsxs53(Container8, { ...containerProps, children: [
9683
- /* @__PURE__ */ jsx231(
9707
+ /* @__PURE__ */ jsx232(
9684
9708
  MessageIconWrapper2,
9685
9709
  {
9686
9710
  icon: purposeVariants3[purpose].icon,
9687
9711
  color: icon6[purpose].color
9688
9712
  }
9689
9713
  ),
9690
- /* @__PURE__ */ jsx231(TextContainer2, { children: children != null ? children : /* @__PURE__ */ jsx231(Typography, { as: "span", children: message2 }) }),
9691
- closable && /* @__PURE__ */ jsx231(
9714
+ /* @__PURE__ */ jsx232(TextContainer2, { children: children != null ? children : /* @__PURE__ */ jsx232(Typography, { as: "span", children: message2 }) }),
9715
+ closable && /* @__PURE__ */ jsx232(
9692
9716
  CloseButton,
9693
9717
  {
9694
9718
  icon: CloseIcon,
@@ -9709,17 +9733,17 @@ LocalMessage.displayName = "LocalMessage";
9709
9733
 
9710
9734
  // src/components/Modal/Modal.tsx
9711
9735
  import {
9712
- forwardRef as forwardRef43,
9736
+ forwardRef as forwardRef44,
9713
9737
  useEffect as useEffect22,
9714
9738
  useId as useId13
9715
9739
  } from "react";
9716
9740
  import { createPortal as createPortal2 } from "react-dom";
9717
- import styled65 from "styled-components";
9741
+ import styled66 from "styled-components";
9718
9742
 
9719
9743
  // src/components/Modal/Backdrop/Backdrop.tsx
9720
9744
  import { ddsBaseTokens as ddsBaseTokens46 } from "@norges-domstoler/dds-design-tokens";
9721
- import styled64 from "styled-components";
9722
- var Backdrop = styled64.div.withConfig({
9745
+ import styled65 from "styled-components";
9746
+ var Backdrop = styled65.div.withConfig({
9723
9747
  shouldForwardProp: (prop) => prop !== "isOpen"
9724
9748
  })`
9725
9749
  position: fixed;
@@ -9783,9 +9807,9 @@ var modalTokens = {
9783
9807
  };
9784
9808
 
9785
9809
  // src/components/Modal/Modal.tsx
9786
- import { jsx as jsx232, jsxs as jsxs54 } from "react/jsx-runtime";
9810
+ import { jsx as jsx233, jsxs as jsxs54 } from "react/jsx-runtime";
9787
9811
  var { container: container12, contentContainer: contentContainer6 } = modalTokens;
9788
- var Container9 = styled65(Paper)`
9812
+ var Container9 = styled66(Paper)`
9789
9813
  display: flex;
9790
9814
  flex-direction: column-reverse;
9791
9815
  min-width: 200px;
@@ -9799,16 +9823,16 @@ var Container9 = styled65(Paper)`
9799
9823
  ${focusVisible}
9800
9824
  }
9801
9825
  `;
9802
- var ContentContainer3 = styled65.div`
9826
+ var ContentContainer3 = styled66.div`
9803
9827
  display: grid;
9804
9828
  padding-right: ${contentContainer6.paddingRight};
9805
9829
  gap: ${contentContainer6.gap};
9806
9830
  `;
9807
- var HeaderContainer3 = styled65.div``;
9808
- var StyledButton4 = styled65(Button)`
9831
+ var HeaderContainer3 = styled66.div``;
9832
+ var StyledButton4 = styled66(Button)`
9809
9833
  align-self: flex-end;
9810
9834
  `;
9811
- var Modal = forwardRef43((props, ref) => {
9835
+ var Modal = forwardRef44((props, ref) => {
9812
9836
  const {
9813
9837
  isOpen = false,
9814
9838
  parentElement = document.body,
@@ -9846,7 +9870,7 @@ var Modal = forwardRef43((props, ref) => {
9846
9870
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
9847
9871
  const hasTransitionedIn = useMountTransition(isOpen, 200);
9848
9872
  return isOpen || hasTransitionedIn ? createPortal2(
9849
- /* @__PURE__ */ jsx232(Backdrop, { isOpen: hasTransitionedIn && isOpen, children: /* @__PURE__ */ jsxs54(
9873
+ /* @__PURE__ */ jsx233(Backdrop, { isOpen: hasTransitionedIn && isOpen, children: /* @__PURE__ */ jsxs54(
9850
9874
  Container9,
9851
9875
  {
9852
9876
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9860,10 +9884,10 @@ var Modal = forwardRef43((props, ref) => {
9860
9884
  elevation: 4,
9861
9885
  children: [
9862
9886
  /* @__PURE__ */ jsxs54(ContentContainer3, { children: [
9863
- header3 && /* @__PURE__ */ jsx232(HeaderContainer3, { id: headerId, children: typeof header3 === "string" ? /* @__PURE__ */ jsx232(Typography, { typographyType: "headingSans03", children: header3 }) : header3 }),
9887
+ header3 && /* @__PURE__ */ jsx233(HeaderContainer3, { id: headerId, children: typeof header3 === "string" ? /* @__PURE__ */ jsx233(Typography, { typographyType: "headingSans03", children: header3 }) : header3 }),
9864
9888
  children
9865
9889
  ] }),
9866
- onClose && /* @__PURE__ */ jsx232(
9890
+ onClose && /* @__PURE__ */ jsx233(
9867
9891
  StyledButton4,
9868
9892
  {
9869
9893
  size: "small",
@@ -9883,45 +9907,45 @@ var Modal = forwardRef43((props, ref) => {
9883
9907
  Modal.displayName = "Modal";
9884
9908
 
9885
9909
  // src/components/Modal/ModalBody.tsx
9886
- import { forwardRef as forwardRef44 } from "react";
9887
- import styled66 from "styled-components";
9888
- import { jsx as jsx233 } from "react/jsx-runtime";
9889
- var Container10 = styled66.div``;
9890
- var ModalBody = forwardRef44(
9910
+ import { forwardRef as forwardRef45 } from "react";
9911
+ import styled67 from "styled-components";
9912
+ import { jsx as jsx234 } from "react/jsx-runtime";
9913
+ var Container10 = styled67.div``;
9914
+ var ModalBody = forwardRef45(
9891
9915
  (props, ref) => {
9892
9916
  const { children, scrollable, id, className, htmlProps, height, ...rest } = props;
9893
9917
  const containerProps = {
9894
9918
  ...getBaseHTMLProps(id, className, htmlProps, rest),
9895
9919
  ref
9896
9920
  };
9897
- return scrollable ? /* @__PURE__ */ jsx233(Container10, { ...containerProps, children: /* @__PURE__ */ jsx233(ScrollableContainer, { contentHeight: height, children }) }) : /* @__PURE__ */ jsx233(Container10, { ...containerProps, children });
9921
+ return scrollable ? /* @__PURE__ */ jsx234(Container10, { ...containerProps, children: /* @__PURE__ */ jsx234(ScrollableContainer, { contentHeight: height, children }) }) : /* @__PURE__ */ jsx234(Container10, { ...containerProps, children });
9898
9922
  }
9899
9923
  );
9900
9924
  ModalBody.displayName = "ModalBody";
9901
9925
 
9902
9926
  // src/components/Modal/ModalActions.tsx
9903
- import { forwardRef as forwardRef45 } from "react";
9904
- import styled67 from "styled-components";
9905
- import { jsx as jsx234 } from "react/jsx-runtime";
9906
- var Container11 = styled67.div`
9927
+ import { forwardRef as forwardRef46 } from "react";
9928
+ import styled68 from "styled-components";
9929
+ import { jsx as jsx235 } from "react/jsx-runtime";
9930
+ var Container11 = styled68.div`
9907
9931
  display: flex;
9908
9932
  flex-wrap: wrap;
9909
9933
  gap: ${modalTokens.actionsContainer.gap};
9910
9934
  `;
9911
- var ModalActions = forwardRef45(
9935
+ var ModalActions = forwardRef46(
9912
9936
  ({ children, ...rest }, ref) => {
9913
9937
  const containerProps = {
9914
9938
  ref,
9915
9939
  ...rest
9916
9940
  };
9917
- return /* @__PURE__ */ jsx234(Container11, { ...containerProps, children });
9941
+ return /* @__PURE__ */ jsx235(Container11, { ...containerProps, children });
9918
9942
  }
9919
9943
  );
9920
9944
  ModalActions.displayName = "ModalActions";
9921
9945
 
9922
9946
  // src/components/Pagination/Pagination.tsx
9923
- import { forwardRef as forwardRef47, useState as useState20 } from "react";
9924
- import styled69, { css as css28 } from "styled-components";
9947
+ import { forwardRef as forwardRef48, useState as useState20 } from "react";
9948
+ import styled70, { css as css28 } from "styled-components";
9925
9949
 
9926
9950
  // src/components/Pagination/Pagination.tokens.tsx
9927
9951
  import { ddsBaseTokens as ddsBaseTokens48 } from "@norges-domstoler/dds-design-tokens";
@@ -9979,13 +10003,13 @@ function PaginationGenerator(pagesAmount, activePage) {
9979
10003
  }
9980
10004
 
9981
10005
  // src/components/Select/Select.tsx
9982
- import { forwardRef as forwardRef46, useId as useId14 } from "react";
10006
+ import { forwardRef as forwardRef47, useId as useId14 } from "react";
9983
10007
  import {
9984
10008
  default as ReactSelect
9985
10009
  } from "react-select";
9986
10010
 
9987
10011
  // src/components/Select/Select.styles.ts
9988
- import styled68, { css as css27 } from "styled-components";
10012
+ import styled69, { css as css27 } from "styled-components";
9989
10013
 
9990
10014
  // src/components/Select/Select.tokens.tsx
9991
10015
  import {
@@ -10178,7 +10202,7 @@ var prefix = "dds-select";
10178
10202
  function getContainerControlPadding(componentSize, isMulti) {
10179
10203
  return isMulti ? control2.isMulti.sizes[componentSize].padding : control2.sizes[componentSize].padding;
10180
10204
  }
10181
- var Container12 = styled68.div`
10205
+ var Container12 = styled69.div`
10182
10206
  margin: 0;
10183
10207
  width: ${({ $width }) => $width};
10184
10208
  position: relative;
@@ -10245,14 +10269,14 @@ var Container12 = styled68.div`
10245
10269
  }
10246
10270
  ` : ""}
10247
10271
  `;
10248
- var InnerSingleValue = styled68.div`
10272
+ var InnerSingleValue = styled69.div`
10249
10273
  overflow: hidden;
10250
10274
  text-overflow: ellipsis;
10251
10275
  white-space: nowrap;
10252
10276
  box-sizing: border-box;
10253
10277
  max-width: 100%;
10254
10278
  `;
10255
- var StyledIcon3 = styled68(Icon)`
10279
+ var StyledIcon3 = styled69(Icon)`
10256
10280
  margin-right: ${icon8.marginRight};
10257
10281
  `;
10258
10282
  var getCustomStyles = (size2) => ({
@@ -10419,7 +10443,7 @@ var getCustomStyles = (size2) => ({
10419
10443
  import {
10420
10444
  components
10421
10445
  } from "react-select";
10422
- import { jsx as jsx235, jsxs as jsxs55 } from "react/jsx-runtime";
10446
+ import { jsx as jsx236, jsxs as jsxs55 } from "react/jsx-runtime";
10423
10447
  var {
10424
10448
  Option,
10425
10449
  NoOptionsMessage,
@@ -10431,16 +10455,16 @@ var {
10431
10455
  Control
10432
10456
  } = components;
10433
10457
  var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs55(Option, { ...props, children: [
10434
- props.isSelected && /* @__PURE__ */ jsx235(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
10458
+ props.isSelected && /* @__PURE__ */ jsx236(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
10435
10459
  props.children
10436
10460
  ] });
10437
- var CustomOption = (props, Element) => /* @__PURE__ */ jsx235(Option, { ...props, children: /* @__PURE__ */ jsx235(Element, { ...props }) });
10438
- var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ jsx235(SingleValue, { ...props, children: /* @__PURE__ */ jsx235(InnerSingleValue, { id, children: Element ? /* @__PURE__ */ jsx235(Element, { ...props }) : props.children }) });
10439
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx235(NoOptionsMessage, { ...props, children: "Ingen treff" });
10440
- var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx235(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx235(Icon, { icon: CloseSmallIcon, iconSize: getFormInputIconSize(size2) }) });
10441
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx235(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx235(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
10442
- var DDSDropdownIndicator = (props, size2) => /* @__PURE__ */ jsx235(DropdownIndicator, { ...props, children: /* @__PURE__ */ jsx235(Icon, { icon: ChevronDownIcon, iconSize: getFormInputIconSize(size2) }) });
10443
- var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx235(
10461
+ var CustomOption = (props, Element) => /* @__PURE__ */ jsx236(Option, { ...props, children: /* @__PURE__ */ jsx236(Element, { ...props }) });
10462
+ var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ jsx236(SingleValue, { ...props, children: /* @__PURE__ */ jsx236(InnerSingleValue, { id, children: Element ? /* @__PURE__ */ jsx236(Element, { ...props }) : props.children }) });
10463
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx236(NoOptionsMessage, { ...props, children: "Ingen treff" });
10464
+ var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx236(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx236(Icon, { icon: CloseSmallIcon, iconSize: getFormInputIconSize(size2) }) });
10465
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx236(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx236(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
10466
+ var DDSDropdownIndicator = (props, size2) => /* @__PURE__ */ jsx236(DropdownIndicator, { ...props, children: /* @__PURE__ */ jsx236(Icon, { icon: ChevronDownIcon, iconSize: getFormInputIconSize(size2) }) });
10467
+ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx236(
10444
10468
  Input2,
10445
10469
  {
10446
10470
  ...props,
@@ -10449,12 +10473,12 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx235(
10449
10473
  }
10450
10474
  );
10451
10475
  var DDSControl = (props, componentSize, icon11) => /* @__PURE__ */ jsxs55(Control, { ...props, children: [
10452
- icon11 && /* @__PURE__ */ jsx235(StyledIcon3, { icon: icon11, iconSize: getFormInputIconSize(componentSize) }),
10476
+ icon11 && /* @__PURE__ */ jsx236(StyledIcon3, { icon: icon11, iconSize: getFormInputIconSize(componentSize) }),
10453
10477
  props.children
10454
10478
  ] });
10455
10479
 
10456
10480
  // src/components/Select/Select.tsx
10457
- import { jsx as jsx236, jsxs as jsxs56 } from "react/jsx-runtime";
10481
+ import { jsx as jsx237, jsxs as jsxs56 } from "react/jsx-runtime";
10458
10482
  var defaultWidth4 = "320px";
10459
10483
  var getPlaceholder = (placeholder3, isMulti) => placeholder3 ? placeholder3 : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
10460
10484
  function SelectInner(props, ref) {
@@ -10542,39 +10566,39 @@ function SelectInner(props, ref) {
10542
10566
  ...rest
10543
10567
  };
10544
10568
  return /* @__PURE__ */ jsxs56(Container12, { ...containerProps, children: [
10545
- hasLabel && /* @__PURE__ */ jsx236(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
10546
- /* @__PURE__ */ jsx236(ReactSelect, { ...reactSelectProps, ref }),
10569
+ hasLabel && /* @__PURE__ */ jsx237(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
10570
+ /* @__PURE__ */ jsx237(ReactSelect, { ...reactSelectProps, ref }),
10547
10571
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
10548
10572
  ] });
10549
10573
  }
10550
- var Select = forwardRef46(SelectInner);
10574
+ var Select = forwardRef47(SelectInner);
10551
10575
  Select.displayName = "Select";
10552
10576
 
10553
10577
  // src/components/Select/utils.ts
10554
10578
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
10555
10579
 
10556
10580
  // src/components/Pagination/Pagination.tsx
10557
- import { jsx as jsx237, jsxs as jsxs57 } from "react/jsx-runtime";
10581
+ import { jsx as jsx238, jsxs as jsxs57 } from "react/jsx-runtime";
10558
10582
  var { outerContainer: outerContainer4, indicatorsContainer: indicatorsContainer2, truncationIcon: truncationIcon2, list: list8 } = paginationTokens;
10559
- var Nav = styled69.nav`
10583
+ var Nav = styled70.nav`
10560
10584
  display: flex;
10561
10585
  align-items: center;
10562
10586
  `;
10563
- var List3 = styled69.ol`
10587
+ var List3 = styled70.ol`
10564
10588
  display: grid;
10565
10589
  grid-auto-flow: column;
10566
10590
  gap: ${list8.gap};
10567
10591
  margin: 0;
10568
10592
  padding: 0;
10569
10593
  `;
10570
- var ListItem3 = styled69.li`
10594
+ var ListItem3 = styled70.li`
10571
10595
  display: inline-grid;
10572
10596
  align-content: center;
10573
10597
  ${({ $isHidden }) => $isHidden && css28`
10574
10598
  visibility: hidden;
10575
10599
  `}
10576
10600
  `;
10577
- var OuterContainer = styled69.div`
10601
+ var OuterContainer = styled70.div`
10578
10602
  display: flex;
10579
10603
  gap: ${outerContainer4.gap};
10580
10604
  ${({ $smallScreen }) => $smallScreen ? css28`
@@ -10585,13 +10609,13 @@ var OuterContainer = styled69.div`
10585
10609
  flex-wrap: wrap;
10586
10610
  `}
10587
10611
  `;
10588
- var IndicatorsContainer = styled69.div`
10612
+ var IndicatorsContainer = styled70.div`
10589
10613
  display: grid;
10590
10614
  grid-auto-flow: column;
10591
10615
  align-items: center;
10592
10616
  gap: ${indicatorsContainer2.gap};
10593
10617
  `;
10594
- var Pagination = forwardRef47(
10618
+ var Pagination = forwardRef48(
10595
10619
  (props, ref) => {
10596
10620
  const {
10597
10621
  itemsAmount,
@@ -10634,7 +10658,7 @@ var Pagination = forwardRef47(
10634
10658
  };
10635
10659
  const listItems = items.length > 0 ? items.map((item, i) => {
10636
10660
  const isActive = item === activePage;
10637
- return /* @__PURE__ */ jsx237(ListItem3, { children: item !== "truncator" ? /* @__PURE__ */ jsx237(
10661
+ return /* @__PURE__ */ jsx238(ListItem3, { children: item !== "truncator" ? /* @__PURE__ */ jsx238(
10638
10662
  Button,
10639
10663
  {
10640
10664
  purpose: isActive ? "primary" : "secondary",
@@ -10646,7 +10670,7 @@ var Pagination = forwardRef47(
10646
10670
  "aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
10647
10671
  children: item
10648
10672
  }
10649
- ) : /* @__PURE__ */ jsx237(
10673
+ ) : /* @__PURE__ */ jsx238(
10650
10674
  Icon,
10651
10675
  {
10652
10676
  icon: MoreHorizontalIcon,
@@ -10654,7 +10678,7 @@ var Pagination = forwardRef47(
10654
10678
  }
10655
10679
  ) }, `pagination-item-${i}`);
10656
10680
  }) : void 0;
10657
- const previousPageButton = /* @__PURE__ */ jsx237(
10681
+ const previousPageButton = /* @__PURE__ */ jsx238(
10658
10682
  Button,
10659
10683
  {
10660
10684
  purpose: "secondary",
@@ -10667,7 +10691,7 @@ var Pagination = forwardRef47(
10667
10691
  "aria-label": "G\xE5 til forrige siden"
10668
10692
  }
10669
10693
  );
10670
- const nextPageButton = /* @__PURE__ */ jsx237(
10694
+ const nextPageButton = /* @__PURE__ */ jsx238(
10671
10695
  Button,
10672
10696
  {
10673
10697
  purpose: "secondary",
@@ -10689,13 +10713,13 @@ var Pagination = forwardRef47(
10689
10713
  };
10690
10714
  const isOnFirstPage = activePage === 1;
10691
10715
  const isOnLastPage = activePage === pagesLength;
10692
- const navigation2 = withPagination ? /* @__PURE__ */ jsx237(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs57(List3, { children: [
10693
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10716
+ const navigation2 = withPagination ? /* @__PURE__ */ jsx238(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs57(List3, { children: [
10717
+ /* @__PURE__ */ jsx238(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10694
10718
  listItems,
10695
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton })
10719
+ /* @__PURE__ */ jsx238(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton })
10696
10720
  ] }) }) : null;
10697
- const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx237(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs57(List3, { children: [
10698
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: /* @__PURE__ */ jsx237(
10721
+ const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx238(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs57(List3, { children: [
10722
+ /* @__PURE__ */ jsx238(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: /* @__PURE__ */ jsx238(
10699
10723
  Button,
10700
10724
  {
10701
10725
  purpose: "secondary",
@@ -10708,8 +10732,8 @@ var Pagination = forwardRef47(
10708
10732
  "aria-label": "G\xE5 til f\xF8rste siden"
10709
10733
  }
10710
10734
  ) }),
10711
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10712
- /* @__PURE__ */ jsx237(ListItem3, { children: /* @__PURE__ */ jsx237(
10735
+ /* @__PURE__ */ jsx238(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10736
+ /* @__PURE__ */ jsx238(ListItem3, { children: /* @__PURE__ */ jsx238(
10713
10737
  Button,
10714
10738
  {
10715
10739
  size: "small",
@@ -10719,8 +10743,8 @@ var Pagination = forwardRef47(
10719
10743
  children: activePage
10720
10744
  }
10721
10745
  ) }),
10722
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton }),
10723
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: /* @__PURE__ */ jsx237(
10746
+ /* @__PURE__ */ jsx238(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton }),
10747
+ /* @__PURE__ */ jsx238(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: /* @__PURE__ */ jsx238(
10724
10748
  Button,
10725
10749
  {
10726
10750
  purpose: "secondary",
@@ -10739,7 +10763,7 @@ var Pagination = forwardRef47(
10739
10763
  const navigationToBeRendered = smallScreen ? smallScreenNavigation : navigation2;
10740
10764
  return !withCounter && !withSelect ? navigationToBeRendered : /* @__PURE__ */ jsxs57(OuterContainer, { ...containerProps, children: [
10741
10765
  /* @__PURE__ */ jsxs57(IndicatorsContainer, { children: [
10742
- withSelect && /* @__PURE__ */ jsx237(
10766
+ withSelect && /* @__PURE__ */ jsx238(
10743
10767
  Select,
10744
10768
  {
10745
10769
  options: selectOptions,
@@ -10771,8 +10795,8 @@ Pagination.displayName = "Pagination";
10771
10795
 
10772
10796
  // src/components/Popover/Popover.tsx
10773
10797
  import { ddsBaseTokens as ddsBaseTokens51 } from "@norges-domstoler/dds-design-tokens";
10774
- import { forwardRef as forwardRef48 } from "react";
10775
- import styled70, { css as css29 } from "styled-components";
10798
+ import { forwardRef as forwardRef49 } from "react";
10799
+ import styled71, { css as css29 } from "styled-components";
10776
10800
 
10777
10801
  // src/components/Popover/Popover.tokens.tsx
10778
10802
  import { ddsBaseTokens as ddsBaseTokens50 } from "@norges-domstoler/dds-design-tokens";
@@ -10800,10 +10824,10 @@ var popoverTokens2 = {
10800
10824
  };
10801
10825
 
10802
10826
  // src/components/Popover/Popover.tsx
10803
- import { jsx as jsx238, jsxs as jsxs58 } from "react/jsx-runtime";
10827
+ import { jsx as jsx239, jsxs as jsxs58 } from "react/jsx-runtime";
10804
10828
  var { spacing: Spacing } = ddsBaseTokens51;
10805
10829
  var { wrapper: wrapper4, content: content6, closeButton: closeButton2, title: title2 } = popoverTokens2;
10806
- var Wrapper4 = styled70(Paper)`
10830
+ var Wrapper4 = styled71(Paper)`
10807
10831
  opacity: 0;
10808
10832
  ${({ $hasTransitionedIn, $isOpen }) => $hasTransitionedIn && visibilityTransition($hasTransitionedIn && $isOpen)}
10809
10833
  position: absolute;
@@ -10823,20 +10847,20 @@ var Wrapper4 = styled70(Paper)`
10823
10847
  max-height: ${$sizeProps.maxHeight};
10824
10848
  `}
10825
10849
  `;
10826
- var TitleContainer = styled70.div`
10850
+ var TitleContainer = styled71.div`
10827
10851
  margin-right: ${title2.marginRight};
10828
10852
  `;
10829
- var ContentContainer4 = styled70.div`
10853
+ var ContentContainer4 = styled71.div`
10830
10854
  ${({ $withCloseButton, $hasTitle }) => $withCloseButton && !$hasTitle && css29`
10831
10855
  margin-top: ${content6.noTitle.marginTop};
10832
10856
  `}
10833
10857
  `;
10834
- var StyledButton5 = styled70(Button)`
10858
+ var StyledButton5 = styled71(Button)`
10835
10859
  position: absolute;
10836
10860
  top: ${closeButton2.top};
10837
10861
  right: ${closeButton2.right};
10838
10862
  `;
10839
- var Popover = forwardRef48(
10863
+ var Popover = forwardRef49(
10840
10864
  (props, ref) => {
10841
10865
  const {
10842
10866
  title: title3,
@@ -10889,8 +10913,8 @@ var Popover = forwardRef48(
10889
10913
  elevation: 3,
10890
10914
  border: "light",
10891
10915
  children: [
10892
- title3 && /* @__PURE__ */ jsx238(TitleContainer, { children: typeof title3 === "string" ? /* @__PURE__ */ jsx238(Typography, { typographyType: "headingSans02", children: title3 }) : title3 }),
10893
- /* @__PURE__ */ jsx238(
10916
+ title3 && /* @__PURE__ */ jsx239(TitleContainer, { children: typeof title3 === "string" ? /* @__PURE__ */ jsx239(Typography, { typographyType: "headingSans02", children: title3 }) : title3 }),
10917
+ /* @__PURE__ */ jsx239(
10894
10918
  ContentContainer4,
10895
10919
  {
10896
10920
  $hasTitle: !!title3,
@@ -10898,7 +10922,7 @@ var Popover = forwardRef48(
10898
10922
  children
10899
10923
  }
10900
10924
  ),
10901
- withCloseButton && /* @__PURE__ */ jsx238(
10925
+ withCloseButton && /* @__PURE__ */ jsx239(
10902
10926
  StyledButton5,
10903
10927
  {
10904
10928
  icon: CloseIcon,
@@ -10925,7 +10949,7 @@ import {
10925
10949
  useRef as useRef28,
10926
10950
  useState as useState21
10927
10951
  } from "react";
10928
- import { Fragment as Fragment9, jsx as jsx239 } from "react/jsx-runtime";
10952
+ import { Fragment as Fragment9, jsx as jsx240 } from "react/jsx-runtime";
10929
10953
  var PopoverGroup = ({
10930
10954
  isOpen = false,
10931
10955
  onCloseButtonClick,
@@ -10971,7 +10995,7 @@ var PopoverGroup = ({
10971
10995
  onClose: handleClose
10972
10996
  }));
10973
10997
  });
10974
- return /* @__PURE__ */ jsx239(Fragment9, { children: Children9 });
10998
+ return /* @__PURE__ */ jsx240(Fragment9, { children: Children9 });
10975
10999
  };
10976
11000
  PopoverGroup.displayName = "PopoverGroup";
10977
11001
 
@@ -10980,13 +11004,13 @@ import {
10980
11004
  Children as Children5,
10981
11005
  Fragment as Fragment10,
10982
11006
  cloneElement as cloneElement6,
10983
- forwardRef as forwardRef49,
11007
+ forwardRef as forwardRef50,
10984
11008
  isValidElement as isValidElement7,
10985
11009
  useEffect as useEffect23,
10986
11010
  useMemo as useMemo3,
10987
11011
  useState as useState22
10988
11012
  } from "react";
10989
- import styled72 from "styled-components";
11013
+ import styled73 from "styled-components";
10990
11014
 
10991
11015
  // src/components/ProgressTracker/ProgressTracker.context.tsx
10992
11016
  import { createContext as createContext5, useContext as useContext7 } from "react";
@@ -11114,8 +11138,8 @@ var progressTrackerTokens = {
11114
11138
 
11115
11139
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
11116
11140
  import { useMemo as useMemo2 } from "react";
11117
- import styled71, { css as css30 } from "styled-components";
11118
- import { jsx as jsx240, jsxs as jsxs59 } from "react/jsx-runtime";
11141
+ import styled72, { css as css30 } from "styled-components";
11142
+ import { jsx as jsx241, jsxs as jsxs59 } from "react/jsx-runtime";
11119
11143
  var toItemState = (active, completed, disabled) => {
11120
11144
  if (disabled) {
11121
11145
  return "disabled";
@@ -11127,13 +11151,13 @@ var toItemState = (active, completed, disabled) => {
11127
11151
  }
11128
11152
  };
11129
11153
  var { itemNumber: itemNumber2, itemText: itemText2, itemContentWrapper: itemContentWrapper2 } = progressTrackerTokens;
11130
- var ItemWrapper = styled71.li`
11154
+ var ItemWrapper = styled72.li`
11131
11155
  flex: 1;
11132
11156
  position: relative;
11133
11157
  display: flex;
11134
11158
  justify-content: center;
11135
11159
  `;
11136
- var ItemNumber = styled71.div`
11160
+ var ItemNumber = styled72.div`
11137
11161
  transition:
11138
11162
  background-color 0.2s,
11139
11163
  border-color 0.2s,
@@ -11155,7 +11179,7 @@ var ItemNumber = styled71.div`
11155
11179
  background-color: ${itemNumber2[state].backgroundColor};
11156
11180
  `}
11157
11181
  `;
11158
- var ItemText = styled71.div`
11182
+ var ItemText = styled72.div`
11159
11183
  ${getFontStyling(typographyTypes4.label)}
11160
11184
  text-align: start;
11161
11185
  text-decoration: ${itemText2.textDecoration};
@@ -11166,7 +11190,7 @@ var ItemText = styled71.div`
11166
11190
  text-decoration-color: ${itemText2[state].textDecorationColor};
11167
11191
  `};
11168
11192
  `;
11169
- var ItemContentWrapper = styled71.button`
11193
+ var ItemContentWrapper = styled72.button`
11170
11194
  background: none;
11171
11195
  border: none;
11172
11196
  margin: 0;
@@ -11212,14 +11236,14 @@ var ProgressTrackerItem = (props) => {
11212
11236
  };
11213
11237
  const stepNumberContent = useMemo2(() => {
11214
11238
  if (completed) {
11215
- return /* @__PURE__ */ jsx240(Icon, { icon: CheckIcon, iconSize: itemNumber2.iconSize });
11239
+ return /* @__PURE__ */ jsx241(Icon, { icon: CheckIcon, iconSize: itemNumber2.iconSize });
11216
11240
  }
11217
11241
  if (icon11 !== void 0) {
11218
- return /* @__PURE__ */ jsx240(Icon, { icon: icon11, iconSize: itemNumber2.iconSize });
11242
+ return /* @__PURE__ */ jsx241(Icon, { icon: icon11, iconSize: itemNumber2.iconSize });
11219
11243
  }
11220
11244
  return index + 1;
11221
11245
  }, [completed, icon11, index]);
11222
- return /* @__PURE__ */ jsx240(ItemWrapper, { "aria-current": active ? "step" : void 0, children: /* @__PURE__ */ jsxs59(
11246
+ return /* @__PURE__ */ jsx241(ItemWrapper, { "aria-current": active ? "step" : void 0, children: /* @__PURE__ */ jsxs59(
11223
11247
  ItemContentWrapper,
11224
11248
  {
11225
11249
  ...styleProps,
@@ -11227,9 +11251,9 @@ var ProgressTrackerItem = (props) => {
11227
11251
  onClick: !disabled && handleStepChange ? () => handleStepChange(index) : void 0,
11228
11252
  disabled,
11229
11253
  children: [
11230
- /* @__PURE__ */ jsx240(ItemNumber, { ...styleProps, "aria-hidden": true, children: stepNumberContent }),
11254
+ /* @__PURE__ */ jsx241(ItemNumber, { ...styleProps, "aria-hidden": true, children: stepNumberContent }),
11231
11255
  /* @__PURE__ */ jsxs59(ItemText, { ...styleProps, children: [
11232
- /* @__PURE__ */ jsx240(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
11256
+ /* @__PURE__ */ jsx241(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
11233
11257
  children
11234
11258
  ] })
11235
11259
  ]
@@ -11239,8 +11263,8 @@ var ProgressTrackerItem = (props) => {
11239
11263
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
11240
11264
 
11241
11265
  // src/components/ProgressTracker/ProgressTracker.tsx
11242
- import { jsx as jsx241, jsxs as jsxs60 } from "react/jsx-runtime";
11243
- var ItemsWrapper = styled72.ol`
11266
+ import { jsx as jsx242, jsxs as jsxs60 } from "react/jsx-runtime";
11267
+ var ItemsWrapper = styled73.ol`
11244
11268
  display: flex;
11245
11269
  flex-direction: column;
11246
11270
  align-items: flex-start;
@@ -11248,7 +11272,7 @@ var ItemsWrapper = styled72.ol`
11248
11272
  margin: 0;
11249
11273
  padding: 0;
11250
11274
  `;
11251
- var ProgressTrackerConnector = styled72.div`
11275
+ var ProgressTrackerConnector = styled73.div`
11252
11276
  margin-left: calc(
11253
11277
  (${progressTrackerTokens.itemNumber.size} / 2) -
11254
11278
  (${progressTrackerTokens.connector.width} / 2)
@@ -11258,7 +11282,7 @@ var ProgressTrackerConnector = styled72.div`
11258
11282
  ${progressTrackerTokens.connector.color};
11259
11283
  `;
11260
11284
  var ProgressTracker = (() => {
11261
- const Res = forwardRef49((props, ref) => {
11285
+ const Res = forwardRef50((props, ref) => {
11262
11286
  const {
11263
11287
  id,
11264
11288
  activeStep = 0,
@@ -11288,14 +11312,14 @@ var ProgressTracker = (() => {
11288
11312
  const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
11289
11313
  return itemsWithConnectorsBetween;
11290
11314
  }, [children]);
11291
- return /* @__PURE__ */ jsx241(
11315
+ return /* @__PURE__ */ jsx242(
11292
11316
  ProgressTrackerContext.Provider,
11293
11317
  {
11294
11318
  value: {
11295
11319
  activeStep: thisActiveStep,
11296
11320
  handleStepChange: handleChange
11297
11321
  },
11298
- children: /* @__PURE__ */ jsx241("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx241(ItemsWrapper, { children: steps }) })
11322
+ children: /* @__PURE__ */ jsx242("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx242(ItemsWrapper, { children: steps }) })
11299
11323
  }
11300
11324
  );
11301
11325
  });
@@ -11320,18 +11344,18 @@ var intersperseItemsWithConnector = (children) => Children5.map(children, (child
11320
11344
  return child;
11321
11345
  }
11322
11346
  return /* @__PURE__ */ jsxs60(Fragment10, { children: [
11323
- /* @__PURE__ */ jsx241(ProgressTrackerConnector, { "aria-hidden": true }),
11347
+ /* @__PURE__ */ jsx242(ProgressTrackerConnector, { "aria-hidden": true }),
11324
11348
  child
11325
11349
  ] }, index);
11326
11350
  });
11327
11351
 
11328
11352
  // src/components/Search/Search.tsx
11329
11353
  import {
11330
- forwardRef as forwardRef51,
11354
+ forwardRef as forwardRef52,
11331
11355
  useId as useId16,
11332
11356
  useState as useState23
11333
11357
  } from "react";
11334
- import styled74, { css as css31 } from "styled-components";
11358
+ import styled75, { css as css31 } from "styled-components";
11335
11359
 
11336
11360
  // src/components/Search/AutocompleteSearch.context.tsx
11337
11361
  import {
@@ -11453,11 +11477,11 @@ function createEmptyChangeEvent(inputElementId) {
11453
11477
  }
11454
11478
 
11455
11479
  // src/components/Search/SearchSuggestions.tsx
11456
- import { forwardRef as forwardRef50 } from "react";
11457
- import styled73 from "styled-components";
11458
- import { jsx as jsx242, jsxs as jsxs61 } from "react/jsx-runtime";
11480
+ import { forwardRef as forwardRef51 } from "react";
11481
+ import styled74 from "styled-components";
11482
+ import { jsx as jsx243, jsxs as jsxs61 } from "react/jsx-runtime";
11459
11483
  var { suggestionsContainer: suggestionsContainer2, suggestionsHeader: suggestionsHeader2 } = searchTokens;
11460
- var SuggestionsContainer = styled73(Paper)`
11484
+ var SuggestionsContainer = styled74(Paper)`
11461
11485
  ${({ $isHidden }) => visibilityTransition(!$isHidden)};
11462
11486
  position: absolute;
11463
11487
  top: 100%;
@@ -11471,16 +11495,16 @@ var SuggestionsContainer = styled73(Paper)`
11471
11495
  ${scrollbarStyling.firefox}
11472
11496
  ${scrollbarStyling.webkit}
11473
11497
  `;
11474
- var MenuItem = styled73(OverflowMenuItem)`
11498
+ var MenuItem = styled74(OverflowMenuItem)`
11475
11499
  ${({ $size }) => $size && getFontStyling(typographyTypes5[$size])}
11476
11500
  `;
11477
- var SuggestionsList = styled73.ul`
11501
+ var SuggestionsList = styled74.ul`
11478
11502
  ${removeListStyling}
11479
11503
  `;
11480
- var SuggestionsHeader = styled73(Typography)`
11504
+ var SuggestionsHeader = styled74(Typography)`
11481
11505
  padding-left: ${suggestionsHeader2.paddingLeft};
11482
11506
  `;
11483
- var SearchSuggestions = forwardRef50((props, ref) => {
11507
+ var SearchSuggestions = forwardRef51((props, ref) => {
11484
11508
  const {
11485
11509
  id,
11486
11510
  searchId,
@@ -11499,8 +11523,8 @@ var SearchSuggestions = forwardRef50((props, ref) => {
11499
11523
  );
11500
11524
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
11501
11525
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
11502
- const renderedSuggestions = /* @__PURE__ */ jsx242(SuggestionsList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
11503
- return /* @__PURE__ */ jsx242("li", { role: "option", children: /* @__PURE__ */ jsx242(
11526
+ const renderedSuggestions = /* @__PURE__ */ jsx243(SuggestionsList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
11527
+ return /* @__PURE__ */ jsx243("li", { role: "option", children: /* @__PURE__ */ jsx243(
11504
11528
  MenuItem,
11505
11529
  {
11506
11530
  index,
@@ -11523,7 +11547,7 @@ var SearchSuggestions = forwardRef50((props, ref) => {
11523
11547
  $isHidden: isHidden,
11524
11548
  "aria-hidden": isHidden,
11525
11549
  children: [
11526
- /* @__PURE__ */ jsx242(
11550
+ /* @__PURE__ */ jsx243(
11527
11551
  SuggestionsHeader,
11528
11552
  {
11529
11553
  typographyType: "supportingStyleTiny01",
@@ -11540,7 +11564,7 @@ var SearchSuggestions = forwardRef50((props, ref) => {
11540
11564
  SearchSuggestions.displayName = "SearchSuggestions";
11541
11565
 
11542
11566
  // src/components/Search/Search.tsx
11543
- import { Fragment as Fragment11, jsx as jsx243, jsxs as jsxs62 } from "react/jsx-runtime";
11567
+ import { Fragment as Fragment11, jsx as jsx244, jsxs as jsxs62 } from "react/jsx-runtime";
11544
11568
  var { input: input4, outerContainer: outerContainer6, horisontalContainer: horisontalContainer2, searchIcon: searchIcon2, clearButton: clearButton2 } = searchTokens;
11545
11569
  var getIconSize = (size2) => {
11546
11570
  switch (size2) {
@@ -11552,7 +11576,7 @@ var getIconSize = (size2) => {
11552
11576
  return "small";
11553
11577
  }
11554
11578
  };
11555
- var Input3 = styled74(Input)`
11579
+ var Input3 = styled75(Input)`
11556
11580
  &[type='search']::-webkit-search-decoration,
11557
11581
  &[type='search']::-webkit-search-cancel-button,
11558
11582
  &[type='search']::-webkit-search-results-button,
@@ -11568,7 +11592,7 @@ var Input3 = styled74(Input)`
11568
11592
  ${getFontStyling(typographyTypes5[$componentSize])}
11569
11593
  `}
11570
11594
  `;
11571
- var StyledSearchIcon = styled74(Icon)`
11595
+ var StyledSearchIcon = styled75(Icon)`
11572
11596
  position: absolute;
11573
11597
  left: ${searchIcon2.base.left};
11574
11598
  color: ${searchIcon2.base.color};
@@ -11577,29 +11601,29 @@ var StyledSearchIcon = styled74(Icon)`
11577
11601
  `}
11578
11602
  z-index: 1;
11579
11603
  `;
11580
- var StyledClearButton = styled74(Button)`
11604
+ var StyledClearButton = styled75(Button)`
11581
11605
  position: absolute;
11582
11606
  right: ${clearButton2.right};
11583
11607
  color: ${clearButton2.color};
11584
11608
  top: ${clearButton2.top};
11585
11609
  `;
11586
- var OuterContainer2 = styled74.div`
11610
+ var OuterContainer2 = styled75.div`
11587
11611
  display: flex;
11588
11612
  flex-direction: column;
11589
11613
  gap: ${outerContainer6.gap};
11590
11614
  `;
11591
- var HorisontalContainer = styled74.div`
11615
+ var HorisontalContainer = styled75.div`
11592
11616
  ${(props) => props.$hasSearchButton && css31`
11593
11617
  display: grid;
11594
11618
  grid-template-columns: 1fr auto;
11595
11619
  gap: ${horisontalContainer2.gap};
11596
11620
  `}
11597
11621
  `;
11598
- var InputContainer2 = styled74.div`
11622
+ var InputContainer2 = styled75.div`
11599
11623
  position: relative;
11600
11624
  display: flex;
11601
11625
  `;
11602
- var Search = forwardRef51(
11626
+ var Search = forwardRef52(
11603
11627
  ({
11604
11628
  componentSize = "medium",
11605
11629
  buttonProps,
@@ -11644,7 +11668,7 @@ var Search = forwardRef51(
11644
11668
  const hasSuggestions = !!context.suggestions;
11645
11669
  const showSearchButton = !!buttonProps && !!onClick;
11646
11670
  return /* @__PURE__ */ jsxs62(OuterContainer2, { children: [
11647
- hasLabel && /* @__PURE__ */ jsx243(Label, { htmlFor: uniqueId, children: label3 }),
11671
+ hasLabel && /* @__PURE__ */ jsx244(Label, { htmlFor: uniqueId, children: label3 }),
11648
11672
  /* @__PURE__ */ jsxs62("div", { children: [
11649
11673
  /* @__PURE__ */ jsxs62(
11650
11674
  HorisontalContainer,
@@ -11654,7 +11678,7 @@ var Search = forwardRef51(
11654
11678
  style,
11655
11679
  children: [
11656
11680
  /* @__PURE__ */ jsxs62(InputContainer2, { children: [
11657
- /* @__PURE__ */ jsx243(
11681
+ /* @__PURE__ */ jsx244(
11658
11682
  StyledSearchIcon,
11659
11683
  {
11660
11684
  icon: SearchIcon,
@@ -11662,7 +11686,7 @@ var Search = forwardRef51(
11662
11686
  iconSize: getIconSize(componentSize)
11663
11687
  }
11664
11688
  ),
11665
- /* @__PURE__ */ jsx243(
11689
+ /* @__PURE__ */ jsx244(
11666
11690
  Input3,
11667
11691
  {
11668
11692
  ...rest,
@@ -11686,7 +11710,7 @@ var Search = forwardRef51(
11686
11710
  }
11687
11711
  ),
11688
11712
  hasSuggestions && /* @__PURE__ */ jsxs62(Fragment11, { children: [
11689
- /* @__PURE__ */ jsx243(
11713
+ /* @__PURE__ */ jsx244(
11690
11714
  SearchSuggestions,
11691
11715
  {
11692
11716
  id: suggestionsId,
@@ -11698,9 +11722,9 @@ var Search = forwardRef51(
11698
11722
  componentSize
11699
11723
  }
11700
11724
  ),
11701
- /* @__PURE__ */ jsx243(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
11725
+ /* @__PURE__ */ jsx244(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
11702
11726
  ] }),
11703
- hasValue && /* @__PURE__ */ jsx243(
11727
+ hasValue && /* @__PURE__ */ jsx244(
11704
11728
  StyledClearButton,
11705
11729
  {
11706
11730
  icon: CloseSmallIcon,
@@ -11712,7 +11736,7 @@ var Search = forwardRef51(
11712
11736
  }
11713
11737
  )
11714
11738
  ] }),
11715
- showSearchButton && /* @__PURE__ */ jsx243(
11739
+ showSearchButton && /* @__PURE__ */ jsx244(
11716
11740
  Button,
11717
11741
  {
11718
11742
  size: componentSize,
@@ -11737,7 +11761,7 @@ import {
11737
11761
  useRef as useRef29,
11738
11762
  useState as useState24
11739
11763
  } from "react";
11740
- import { jsx as jsx244 } from "react/jsx-runtime";
11764
+ import { jsx as jsx245 } from "react/jsx-runtime";
11741
11765
  var SearchAutocompleteWrapper = (props) => {
11742
11766
  const {
11743
11767
  value,
@@ -11813,7 +11837,7 @@ var SearchAutocompleteWrapper = (props) => {
11813
11837
  inputValue,
11814
11838
  onSugggestionClick: handleSuggestionClick
11815
11839
  };
11816
- return /* @__PURE__ */ jsx244(AutocompleteSearchContext.Provider, { value: contextProps, children });
11840
+ return /* @__PURE__ */ jsx245(AutocompleteSearchContext.Provider, { value: contextProps, children });
11817
11841
  };
11818
11842
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
11819
11843
 
@@ -11823,7 +11847,7 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
11823
11847
  Search2.Suggestions = SearchSuggestions;
11824
11848
 
11825
11849
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
11826
- import { forwardRef as forwardRef52, useId as useId17 } from "react";
11850
+ import { forwardRef as forwardRef53, useId as useId17 } from "react";
11827
11851
 
11828
11852
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
11829
11853
  import { createContext as createContext7, useContext as useContext9 } from "react";
@@ -11833,7 +11857,7 @@ var useCheckboxGroup = () => {
11833
11857
  };
11834
11858
 
11835
11859
  // src/components/SelectionControl/SelectionControl.styles.tsx
11836
- import styled75, { css as css32 } from "styled-components";
11860
+ import styled76, { css as css32 } from "styled-components";
11837
11861
 
11838
11862
  // src/components/SelectionControl/SelectionControl.tokens.tsx
11839
11863
  import { ddsBaseTokens as ddsBaseTokens54 } from "@norges-domstoler/dds-design-tokens";
@@ -11953,7 +11977,7 @@ var {
11953
11977
  groupContainer: groupContainer2,
11954
11978
  outerGroupContainer: outerGroupContainer2
11955
11979
  } = selectionControlTokens;
11956
- var CustomSelectionControl = styled75.span`
11980
+ var CustomSelectionControl = styled76.span`
11957
11981
  position: absolute;
11958
11982
  left: 0;
11959
11983
  box-sizing: border-box;
@@ -11972,7 +11996,7 @@ var CustomSelectionControl = styled75.span`
11972
11996
  display: none;
11973
11997
  }
11974
11998
  `;
11975
- var Container13 = styled75.label`
11999
+ var Container13 = styled76.label`
11976
12000
  position: relative;
11977
12001
  display: flex;
11978
12002
  align-items: center;
@@ -12097,12 +12121,12 @@ var Container13 = styled75.label`
12097
12121
  }
12098
12122
  `}
12099
12123
  `;
12100
- var OuterGroupContainer = styled75.div`
12124
+ var OuterGroupContainer = styled76.div`
12101
12125
  display: flex;
12102
12126
  flex-direction: column;
12103
12127
  gap: ${outerGroupContainer2.gap};
12104
12128
  `;
12105
- var GroupContainer = styled75.div`
12129
+ var GroupContainer = styled76.div`
12106
12130
  display: flex;
12107
12131
  ${({ $direction }) => css32`
12108
12132
  flex-direction: ${$direction};
@@ -12111,8 +12135,8 @@ var GroupContainer = styled75.div`
12111
12135
  `;
12112
12136
 
12113
12137
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
12114
- import { jsx as jsx245, jsxs as jsxs63 } from "react/jsx-runtime";
12115
- var Checkbox = forwardRef52(
12138
+ import { jsx as jsx246, jsxs as jsxs63 } from "react/jsx-runtime";
12139
+ var Checkbox = forwardRef53(
12116
12140
  (props, ref) => {
12117
12141
  const {
12118
12142
  id,
@@ -12148,7 +12172,7 @@ var Checkbox = forwardRef52(
12148
12172
  className: cn(className, htmlPropsClassName),
12149
12173
  style,
12150
12174
  children: [
12151
- /* @__PURE__ */ jsx245(
12175
+ /* @__PURE__ */ jsx246(
12152
12176
  HiddenInput,
12153
12177
  {
12154
12178
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -12168,8 +12192,8 @@ var Checkbox = forwardRef52(
12168
12192
  "data-indeterminate": indeterminate
12169
12193
  }
12170
12194
  ),
12171
- /* @__PURE__ */ jsx245(CustomSelectionControl, { $controlType: "checkbox" }),
12172
- hasLabel && /* @__PURE__ */ jsx245(Typography, { ...selectionControlTypographyProps, children: label3 })
12195
+ /* @__PURE__ */ jsx246(CustomSelectionControl, { $controlType: "checkbox" }),
12196
+ hasLabel && /* @__PURE__ */ jsx246(Typography, { ...selectionControlTypographyProps, children: label3 })
12173
12197
  ]
12174
12198
  }
12175
12199
  );
@@ -12179,7 +12203,7 @@ Checkbox.displayName = "Checkbox";
12179
12203
 
12180
12204
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
12181
12205
  import { useId as useId18 } from "react";
12182
- import { jsx as jsx246, jsxs as jsxs64 } from "react/jsx-runtime";
12206
+ import { jsx as jsx247, jsxs as jsxs64 } from "react/jsx-runtime";
12183
12207
  var CheckboxGroup = (props) => {
12184
12208
  const {
12185
12209
  label: label3,
@@ -12230,12 +12254,12 @@ var CheckboxGroup = (props) => {
12230
12254
  children: [
12231
12255
  label3,
12232
12256
  " ",
12233
- showRequiredMarker && /* @__PURE__ */ jsx246(RequiredMarker, {})
12257
+ showRequiredMarker && /* @__PURE__ */ jsx247(RequiredMarker, {})
12234
12258
  ]
12235
12259
  }
12236
12260
  ),
12237
12261
  renderInputMessage(tip, tipId),
12238
- /* @__PURE__ */ jsx246(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx246(
12262
+ /* @__PURE__ */ jsx247(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx247(
12239
12263
  GroupContainer,
12240
12264
  {
12241
12265
  role: "group",
@@ -12253,7 +12277,7 @@ var CheckboxGroup = (props) => {
12253
12277
  CheckboxGroup.displayName = "CheckboxGroup";
12254
12278
 
12255
12279
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
12256
- import { forwardRef as forwardRef53, useId as useId19 } from "react";
12280
+ import { forwardRef as forwardRef54, useId as useId19 } from "react";
12257
12281
 
12258
12282
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
12259
12283
  import { createContext as createContext8, useContext as useContext10 } from "react";
@@ -12263,7 +12287,7 @@ var useRadioButtonGroup = () => {
12263
12287
  };
12264
12288
 
12265
12289
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
12266
- import { jsx as jsx247, jsxs as jsxs65 } from "react/jsx-runtime";
12290
+ import { jsx as jsx248, jsxs as jsxs65 } from "react/jsx-runtime";
12267
12291
  var isValueEqualToGroupValueOrFalsy = (value, group4) => {
12268
12292
  if (typeof value !== "undefined" && value !== null && group4) {
12269
12293
  if (typeof value === "number") {
@@ -12273,7 +12297,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group4) => {
12273
12297
  }
12274
12298
  return !!value;
12275
12299
  };
12276
- var RadioButton = forwardRef53(
12300
+ var RadioButton = forwardRef54(
12277
12301
  (props, ref) => {
12278
12302
  const {
12279
12303
  id,
@@ -12334,9 +12358,9 @@ var RadioButton = forwardRef53(
12334
12358
  htmlFor: uniqueId,
12335
12359
  $controlType: "radio",
12336
12360
  children: [
12337
- /* @__PURE__ */ jsx247(HiddenInput, { ...inputProps, ref }),
12338
- /* @__PURE__ */ jsx247(CustomSelectionControl, { $controlType: "radio" }),
12339
- /* @__PURE__ */ jsx247(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label3 })
12361
+ /* @__PURE__ */ jsx248(HiddenInput, { ...inputProps, ref }),
12362
+ /* @__PURE__ */ jsx248(CustomSelectionControl, { $controlType: "radio" }),
12363
+ /* @__PURE__ */ jsx248(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label3 })
12340
12364
  ]
12341
12365
  }
12342
12366
  );
@@ -12346,11 +12370,11 @@ RadioButton.displayName = "RadioButton";
12346
12370
 
12347
12371
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
12348
12372
  import {
12349
- forwardRef as forwardRef54,
12373
+ forwardRef as forwardRef55,
12350
12374
  useId as useId20,
12351
12375
  useState as useState25
12352
12376
  } from "react";
12353
- import { jsx as jsx248, jsxs as jsxs66 } from "react/jsx-runtime";
12377
+ import { jsx as jsx249, jsxs as jsxs66 } from "react/jsx-runtime";
12354
12378
  var RadioButtonGroupInner = (props, ref) => {
12355
12379
  const {
12356
12380
  name,
@@ -12412,12 +12436,12 @@ var RadioButtonGroupInner = (props, ref) => {
12412
12436
  children: [
12413
12437
  label3,
12414
12438
  " ",
12415
- showRequiredMarker && /* @__PURE__ */ jsx248(RequiredMarker, {})
12439
+ showRequiredMarker && /* @__PURE__ */ jsx249(RequiredMarker, {})
12416
12440
  ]
12417
12441
  }
12418
12442
  ),
12419
12443
  renderInputMessage(tip, tipId),
12420
- /* @__PURE__ */ jsx248(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx248(
12444
+ /* @__PURE__ */ jsx249(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx249(
12421
12445
  GroupContainer,
12422
12446
  {
12423
12447
  role: "radiogroup",
@@ -12433,12 +12457,12 @@ var RadioButtonGroupInner = (props, ref) => {
12433
12457
  }
12434
12458
  );
12435
12459
  };
12436
- var RadioButtonGroup = forwardRef54(RadioButtonGroupInner);
12460
+ var RadioButtonGroup = forwardRef55(RadioButtonGroupInner);
12437
12461
  RadioButtonGroup.displayName = "RadioButtonGroup";
12438
12462
 
12439
12463
  // src/components/SkipToContent/SkipToContent.tsx
12440
- import { forwardRef as forwardRef55 } from "react";
12441
- import styled76 from "styled-components";
12464
+ import { forwardRef as forwardRef56 } from "react";
12465
+ import styled77 from "styled-components";
12442
12466
 
12443
12467
  // src/components/SkipToContent/SkipToContent.tokens.tsx
12444
12468
  import { ddsBaseTokens as ddsBaseTokens55 } from "@norges-domstoler/dds-design-tokens";
@@ -12461,9 +12485,9 @@ var skipToContentTokens = {
12461
12485
  };
12462
12486
 
12463
12487
  // src/components/SkipToContent/SkipToContent.tsx
12464
- import { jsx as jsx249 } from "react/jsx-runtime";
12488
+ import { jsx as jsx250 } from "react/jsx-runtime";
12465
12489
  var { wrapper: wrapper6, link: link5 } = skipToContentTokens;
12466
- var Wrapper5 = styled76.div`
12490
+ var Wrapper5 = styled77.div`
12467
12491
  box-sizing: border-box;
12468
12492
  position: absolute;
12469
12493
  top: ${({ $top: top }) => top};
@@ -12490,7 +12514,7 @@ var Wrapper5 = styled76.div`
12490
12514
  opacity: 1;
12491
12515
  }
12492
12516
  `;
12493
- var Link4 = styled76.a`
12517
+ var Link4 = styled77.a`
12494
12518
  text-decoration: none;
12495
12519
  color: ${link5.base.color};
12496
12520
  ${getFontStyling(defaultTypographyType)}
@@ -12505,7 +12529,7 @@ var Link4 = styled76.a`
12505
12529
  color: ${link5.base.color};
12506
12530
  }
12507
12531
  `;
12508
- var SkipToContent = forwardRef55(
12532
+ var SkipToContent = forwardRef56(
12509
12533
  (props, ref) => {
12510
12534
  const {
12511
12535
  text = "Til hovedinnhold",
@@ -12520,13 +12544,13 @@ var SkipToContent = forwardRef55(
12520
12544
  style,
12521
12545
  ...restHtmlProps
12522
12546
  } = htmlProps;
12523
- return /* @__PURE__ */ jsx249(
12547
+ return /* @__PURE__ */ jsx250(
12524
12548
  Wrapper5,
12525
12549
  {
12526
12550
  $top: top,
12527
12551
  className: cn(className, htmlPropsClassName),
12528
12552
  style,
12529
- children: /* @__PURE__ */ jsx249(Link4, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
12553
+ children: /* @__PURE__ */ jsx250(Link4, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
12530
12554
  }
12531
12555
  );
12532
12556
  }
@@ -12534,8 +12558,8 @@ var SkipToContent = forwardRef55(
12534
12558
  SkipToContent.displayName = "SkipToContent";
12535
12559
 
12536
12560
  // src/components/SplitButton/SplitButton.tsx
12537
- import { forwardRef as forwardRef56, useState as useState26 } from "react";
12538
- import styled77 from "styled-components";
12561
+ import { forwardRef as forwardRef57, useState as useState26 } from "react";
12562
+ import styled78 from "styled-components";
12539
12563
 
12540
12564
  // src/components/SplitButton/SplitButton.tokens.ts
12541
12565
  import { ddsBaseTokens as ddsBaseTokens56 } from "@norges-domstoler/dds-design-tokens";
@@ -12549,11 +12573,11 @@ var tokens3 = {
12549
12573
  };
12550
12574
 
12551
12575
  // src/components/SplitButton/SplitButton.tsx
12552
- import { jsx as jsx250, jsxs as jsxs67 } from "react/jsx-runtime";
12553
- var Container14 = styled77.div`
12576
+ import { jsx as jsx251, jsxs as jsxs67 } from "react/jsx-runtime";
12577
+ var Container14 = styled78.div`
12554
12578
  display: flex;
12555
12579
  `;
12556
- var MainButton = styled77(Button)`
12580
+ var MainButton = styled78(Button)`
12557
12581
  border-top-right-radius: 0;
12558
12582
  border-bottom-right-radius: 0;
12559
12583
  border-right: none;
@@ -12562,7 +12586,7 @@ var MainButton = styled77(Button)`
12562
12586
  z-index: 0;
12563
12587
  }
12564
12588
  `;
12565
- var OptionButton = styled77(Button)`
12589
+ var OptionButton = styled78(Button)`
12566
12590
  border-top-left-radius: 0;
12567
12591
  border-bottom-left-radius: 0;
12568
12592
 
@@ -12580,7 +12604,7 @@ var OptionButton = styled77(Button)`
12580
12604
  ${(props) => props.purpose === "primary" && `border-left: ${tokens3.mainButton.primary.borderLeft}`};
12581
12605
  }
12582
12606
  `;
12583
- var SplitButton = forwardRef56(
12607
+ var SplitButton = forwardRef57(
12584
12608
  (props, ref) => {
12585
12609
  const {
12586
12610
  size: size2,
@@ -12595,7 +12619,7 @@ var SplitButton = forwardRef56(
12595
12619
  size: size2
12596
12620
  };
12597
12621
  return /* @__PURE__ */ jsxs67(Container14, { ref, children: [
12598
- /* @__PURE__ */ jsx250(
12622
+ /* @__PURE__ */ jsx251(
12599
12623
  MainButton,
12600
12624
  {
12601
12625
  ...buttonStyleProps,
@@ -12604,7 +12628,7 @@ var SplitButton = forwardRef56(
12604
12628
  }
12605
12629
  ),
12606
12630
  /* @__PURE__ */ jsxs67(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
12607
- /* @__PURE__ */ jsx250(
12631
+ /* @__PURE__ */ jsx251(
12608
12632
  OptionButton,
12609
12633
  {
12610
12634
  ...buttonStyleProps,
@@ -12613,7 +12637,7 @@ var SplitButton = forwardRef56(
12613
12637
  purpose
12614
12638
  }
12615
12639
  ),
12616
- /* @__PURE__ */ jsx250(OverflowMenu, { items: secondaryActions, placement: "bottom-end" })
12640
+ /* @__PURE__ */ jsx251(OverflowMenu, { items: secondaryActions, placement: "bottom-end" })
12617
12641
  ] })
12618
12642
  ] });
12619
12643
  }
@@ -12625,12 +12649,12 @@ import {
12625
12649
  Children as Children6,
12626
12650
  Fragment as Fragment12,
12627
12651
  cloneElement as cloneElement7,
12628
- forwardRef as forwardRef64,
12652
+ forwardRef as forwardRef65,
12629
12653
  isValidElement as isValidElement8,
12630
12654
  useEffect as useEffect26,
12631
12655
  useState as useState28
12632
12656
  } from "react";
12633
- import styled86 from "styled-components";
12657
+ import styled87 from "styled-components";
12634
12658
 
12635
12659
  // src/components/Table/collapsible/Table.context.tsx
12636
12660
  import { createContext as createContext9, useContext as useContext11 } from "react";
@@ -12641,38 +12665,38 @@ var CollapsibleTableContext = createContext9({
12641
12665
  var useCollapsibleTableContext = () => useContext11(CollapsibleTableContext);
12642
12666
 
12643
12667
  // src/components/Table/normal/Body.tsx
12644
- import { forwardRef as forwardRef57 } from "react";
12645
- import styled78 from "styled-components";
12646
- import { jsx as jsx251 } from "react/jsx-runtime";
12647
- var StyledBody = styled78.tbody``;
12648
- var Body2 = forwardRef57(
12668
+ import { forwardRef as forwardRef58 } from "react";
12669
+ import styled79 from "styled-components";
12670
+ import { jsx as jsx252 } from "react/jsx-runtime";
12671
+ var StyledBody = styled79.tbody``;
12672
+ var Body2 = forwardRef58(
12649
12673
  ({ children, ...rest }, ref) => {
12650
12674
  const bodyProps = {
12651
12675
  ...rest
12652
12676
  };
12653
- return /* @__PURE__ */ jsx251(StyledBody, { ref, ...bodyProps, children });
12677
+ return /* @__PURE__ */ jsx252(StyledBody, { ref, ...bodyProps, children });
12654
12678
  }
12655
12679
  );
12656
12680
  Body2.displayName = "Table.Body";
12657
12681
 
12658
12682
  // src/components/Table/normal/Cell.tsx
12659
12683
  import {
12660
- forwardRef as forwardRef59
12684
+ forwardRef as forwardRef60
12661
12685
  } from "react";
12662
- import styled80, { css as css33 } from "styled-components";
12686
+ import styled81, { css as css33 } from "styled-components";
12663
12687
 
12664
12688
  // src/components/Table/normal/Head.tsx
12665
12689
  import {
12666
12690
  createContext as createContext10,
12667
- forwardRef as forwardRef58,
12691
+ forwardRef as forwardRef59,
12668
12692
  useContext as useContext12
12669
12693
  } from "react";
12670
- import styled79 from "styled-components";
12671
- import { jsx as jsx252 } from "react/jsx-runtime";
12672
- var StyledHead = styled79.thead``;
12673
- var Head = forwardRef58(
12694
+ import styled80 from "styled-components";
12695
+ import { jsx as jsx253 } from "react/jsx-runtime";
12696
+ var StyledHead = styled80.thead``;
12697
+ var Head = forwardRef59(
12674
12698
  ({ children, ...rest }, ref) => {
12675
- return /* @__PURE__ */ jsx252(StyledHead, { ref, ...rest, children: /* @__PURE__ */ jsx252(HeadContext.Provider, { value: true, children }) });
12699
+ return /* @__PURE__ */ jsx253(StyledHead, { ref, ...rest, children: /* @__PURE__ */ jsx253(HeadContext.Provider, { value: true, children }) });
12676
12700
  }
12677
12701
  );
12678
12702
  Head.displayName = "Table.Head";
@@ -12755,7 +12779,7 @@ var tableTokens = {
12755
12779
  };
12756
12780
 
12757
12781
  // src/components/Table/normal/Cell.tsx
12758
- import { jsx as jsx253 } from "react/jsx-runtime";
12782
+ import { jsx as jsx254 } from "react/jsx-runtime";
12759
12783
  var { cell: cell3 } = tableTokens;
12760
12784
  var getLayoutStyle = (layout) => {
12761
12785
  switch (layout) {
@@ -12776,12 +12800,12 @@ var getLayoutStyle = (layout) => {
12776
12800
  return;
12777
12801
  }
12778
12802
  };
12779
- var StyledCell = styled80.td`
12803
+ var StyledCell = styled81.td`
12780
12804
  ${({ $type: type }) => type === "head" && css33`
12781
12805
  background-color: ${cell3.head.backgroundColor};
12782
12806
  `}
12783
12807
  `;
12784
- var InnerCell = styled80.div`
12808
+ var InnerCell = styled81.div`
12785
12809
  display: flex;
12786
12810
  align-items: center;
12787
12811
  ${({ $layout: layout }) => getLayoutStyle(layout)}
@@ -12795,34 +12819,34 @@ var getTableCellType = (type) => {
12795
12819
  return "td";
12796
12820
  }
12797
12821
  };
12798
- var Cell2 = forwardRef59(
12822
+ var Cell2 = forwardRef60(
12799
12823
  ({ children, type: _type, layout = "left", collapsibleProps, ...rest }, ref) => {
12800
12824
  const isInHead = useIsInTableHead();
12801
12825
  const type = _type != null ? _type : isInHead ? "head" : "data";
12802
12826
  const as = getTableCellType(type);
12803
12827
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
12804
- return isCollapsibleChild ? /* @__PURE__ */ jsx253(DescriptionListDesc, { children }) : /* @__PURE__ */ jsx253(StyledCell, { as, ref, $type: type, ...rest, children: /* @__PURE__ */ jsx253(InnerCell, { $layout: layout, children }) });
12828
+ return isCollapsibleChild ? /* @__PURE__ */ jsx254(DescriptionListDesc, { children }) : /* @__PURE__ */ jsx254(StyledCell, { as, ref, $type: type, ...rest, children: /* @__PURE__ */ jsx254(InnerCell, { $layout: layout, children }) });
12805
12829
  }
12806
12830
  );
12807
12831
  Cell2.displayName = "Table.Cell";
12808
12832
 
12809
12833
  // src/components/Table/normal/Foot.tsx
12810
- import { forwardRef as forwardRef60 } from "react";
12811
- import styled81 from "styled-components";
12812
- import { jsx as jsx254 } from "react/jsx-runtime";
12813
- var StyledFoot = styled81.tfoot``;
12814
- var Foot = forwardRef60(
12834
+ import { forwardRef as forwardRef61 } from "react";
12835
+ import styled82 from "styled-components";
12836
+ import { jsx as jsx255 } from "react/jsx-runtime";
12837
+ var StyledFoot = styled82.tfoot``;
12838
+ var Foot = forwardRef61(
12815
12839
  ({ children, ...rest }, ref) => {
12816
- return /* @__PURE__ */ jsx254(StyledFoot, { ref, ...rest, children });
12840
+ return /* @__PURE__ */ jsx255(StyledFoot, { ref, ...rest, children });
12817
12841
  }
12818
12842
  );
12819
12843
  Foot.displayName = "Table.Foot";
12820
12844
 
12821
12845
  // src/components/Table/normal/Row.tsx
12822
- import { forwardRef as forwardRef61 } from "react";
12846
+ import { forwardRef as forwardRef62 } from "react";
12823
12847
 
12824
12848
  // src/components/Table/normal/Table.styles.tsx
12825
- import styled82, { css as css34 } from "styled-components";
12849
+ import styled83, { css as css34 } from "styled-components";
12826
12850
  var { row: row2 } = tableTokens;
12827
12851
  var bodyRowStyles = (mode, selected) => {
12828
12852
  return css34`
@@ -12837,7 +12861,7 @@ var bodyRowStyles = (mode, selected) => {
12837
12861
  `}
12838
12862
  `;
12839
12863
  };
12840
- var StyledRow = styled82.tr`
12864
+ var StyledRow = styled83.tr`
12841
12865
  @media (prefers-reduced-motion: no-preference) {
12842
12866
  transition:
12843
12867
  background-color 0.2s,
@@ -12874,12 +12898,12 @@ var StyledRow = styled82.tr`
12874
12898
  `;
12875
12899
 
12876
12900
  // src/components/Table/normal/Row.tsx
12877
- import { jsx as jsx255 } from "react/jsx-runtime";
12878
- var Row = forwardRef61(
12901
+ import { jsx as jsx256 } from "react/jsx-runtime";
12902
+ var Row = forwardRef62(
12879
12903
  ({ type: _type, mode = "normal", hoverable, selected, children, ...rest }, ref) => {
12880
12904
  const isInHeader = useIsInTableHead();
12881
12905
  const type = _type != null ? _type : isInHeader ? "head" : "body";
12882
- return /* @__PURE__ */ jsx255(
12906
+ return /* @__PURE__ */ jsx256(
12883
12907
  StyledRow,
12884
12908
  {
12885
12909
  type,
@@ -12896,11 +12920,11 @@ var Row = forwardRef61(
12896
12920
  Row.displayName = "Table.Row";
12897
12921
 
12898
12922
  // src/components/Table/normal/SortCell.tsx
12899
- import { forwardRef as forwardRef62 } from "react";
12900
- import styled83 from "styled-components";
12901
- import { jsx as jsx256, jsxs as jsxs68 } from "react/jsx-runtime";
12923
+ import { forwardRef as forwardRef63 } from "react";
12924
+ import styled84 from "styled-components";
12925
+ import { jsx as jsx257, jsxs as jsxs68 } from "react/jsx-runtime";
12902
12926
  var { cell: cell4 } = tableTokens;
12903
- var StyledButton6 = styled83.button`
12927
+ var StyledButton6 = styled84.button`
12904
12928
  ${normalizeButton}
12905
12929
  user-select: text;
12906
12930
  ${removeButtonStyling}
@@ -12913,12 +12937,12 @@ var StyledButton6 = styled83.button`
12913
12937
  `;
12914
12938
  var makeSortIcon = (isSorted, sortOrder) => {
12915
12939
  if (!isSorted || !sortOrder) {
12916
- return /* @__PURE__ */ jsx256(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12940
+ return /* @__PURE__ */ jsx257(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12917
12941
  }
12918
- return sortOrder === "ascending" ? /* @__PURE__ */ jsx256(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx256(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12942
+ return sortOrder === "ascending" ? /* @__PURE__ */ jsx257(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx257(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12919
12943
  };
12920
- var SortCell = forwardRef62(
12921
- ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx256(
12944
+ var SortCell = forwardRef63(
12945
+ ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx257(
12922
12946
  Cell2,
12923
12947
  {
12924
12948
  ref,
@@ -12943,11 +12967,11 @@ var SortCell = forwardRef62(
12943
12967
  SortCell.displayName = "Table.SortCell";
12944
12968
 
12945
12969
  // src/components/Table/normal/Table.tsx
12946
- import { forwardRef as forwardRef63 } from "react";
12947
- import styled84, { css as css35 } from "styled-components";
12948
- import { jsx as jsx257 } from "react/jsx-runtime";
12970
+ import { forwardRef as forwardRef64 } from "react";
12971
+ import styled85, { css as css35 } from "styled-components";
12972
+ import { jsx as jsx258 } from "react/jsx-runtime";
12949
12973
  var { cell: cell5, row: row3 } = tableTokens;
12950
- var StyledTable = styled84.table`
12974
+ var StyledTable = styled85.table`
12951
12975
  border-spacing: 0;
12952
12976
  border-collapse: collapse;
12953
12977
  *::selection {
@@ -12990,9 +13014,9 @@ var StyledTable = styled84.table`
12990
13014
  }
12991
13015
  `}
12992
13016
  `;
12993
- var Table = forwardRef63(
13017
+ var Table = forwardRef64(
12994
13018
  ({ density = "normal", stickyHeader, withDividers, children, ...rest }, ref) => {
12995
- return /* @__PURE__ */ jsx257(
13019
+ return /* @__PURE__ */ jsx258(
12996
13020
  StyledTable,
12997
13021
  {
12998
13022
  ...rest,
@@ -13009,9 +13033,9 @@ Table.displayName = "Table";
13009
13033
 
13010
13034
  // src/components/Table/normal/TableWrapper.tsx
13011
13035
  import { useEffect as useEffect25, useRef as useRef30, useState as useState27 } from "react";
13012
- import styled85, { css as css36 } from "styled-components";
13013
- import { jsx as jsx258 } from "react/jsx-runtime";
13014
- var Wrapper6 = styled85.div`
13036
+ import styled86, { css as css36 } from "styled-components";
13037
+ import { jsx as jsx259 } from "react/jsx-runtime";
13038
+ var Wrapper6 = styled86.div`
13015
13039
  ${({ $overflowX }) => $overflowX && css36`
13016
13040
  overflow-x: auto;
13017
13041
  `}
@@ -13039,7 +13063,7 @@ var TableWrapper = ({ children, ...rest }) => {
13039
13063
  window.addEventListener("resize", handleResize);
13040
13064
  return () => window.removeEventListener("resize", handleResize);
13041
13065
  });
13042
- return /* @__PURE__ */ jsx258(Wrapper6, { $overflowX: overflowX, ref: wrapperRef, ...rest, children });
13066
+ return /* @__PURE__ */ jsx259(Wrapper6, { $overflowX: overflowX, ref: wrapperRef, ...rest, children });
13043
13067
  };
13044
13068
  TableWrapper.displayName = "Table.Wrapper";
13045
13069
 
@@ -13054,9 +13078,9 @@ Table2.Row = Row;
13054
13078
  Table2.Foot = Foot;
13055
13079
 
13056
13080
  // src/components/Table/collapsible/CollapsibleRow.tsx
13057
- import { Fragment as Fragment13, jsx as jsx259, jsxs as jsxs69 } from "react/jsx-runtime";
13081
+ import { Fragment as Fragment13, jsx as jsx260, jsxs as jsxs69 } from "react/jsx-runtime";
13058
13082
  var { collapseButton: collapseButton2 } = tableTokens;
13059
- var CollapseButton = styled86.button`
13083
+ var CollapseButton = styled87.button`
13060
13084
  ${removeButtonStyling}
13061
13085
  margin-left: auto;
13062
13086
  margin-right: auto;
@@ -13071,12 +13095,12 @@ var CollapseButton = styled86.button`
13071
13095
  ${focusVisible}
13072
13096
  }
13073
13097
  `;
13074
- var DescriptionListCell = styled86(Cell2)`
13098
+ var DescriptionListCell = styled87(Cell2)`
13075
13099
  & > div {
13076
13100
  display: block;
13077
13101
  }
13078
13102
  `;
13079
- var CollapsibleRow = forwardRef64(
13103
+ var CollapsibleRow = forwardRef65(
13080
13104
  ({ type: _type, mode = "normal", selected, hoverable, children, ...rest }, ref) => {
13081
13105
  const isInHead = useIsInTableHead();
13082
13106
  const type = _type != null ? _type : isInHead ? "head" : "body";
@@ -13105,24 +13129,24 @@ var CollapsibleRow = forwardRef64(
13105
13129
  const id = derivativeIdGenerator(prefix2, index.toString());
13106
13130
  collapsibleIds.push(id);
13107
13131
  return /* @__PURE__ */ jsxs69(Fragment12, { children: [
13108
- /* @__PURE__ */ jsx259(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
13132
+ /* @__PURE__ */ jsx260(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
13109
13133
  isValidElement8(child) && cloneElement7(child, {
13110
13134
  collapsibleProps: { isCollapsibleChild: true }
13111
13135
  })
13112
13136
  ] }, `DL-${index}`);
13113
13137
  }) : null;
13114
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx259(StyledRow, { type, children: /* @__PURE__ */ jsx259(DescriptionListCell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx259(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
13138
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx260(StyledRow, { type, children: /* @__PURE__ */ jsx260(DescriptionListCell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx260(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
13115
13139
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
13116
13140
  return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
13117
13141
  });
13118
13142
  const headerRow = () => {
13119
13143
  if (type !== "head" || !isCollapsed)
13120
13144
  return null;
13121
- return /* @__PURE__ */ jsx259(StyledRow, { ref, type, ...rowProps, children: /* @__PURE__ */ jsxs69(Fragment13, { children: [
13145
+ return /* @__PURE__ */ jsx260(StyledRow, { ref, type, ...rowProps, children: /* @__PURE__ */ jsxs69(Fragment13, { children: [
13122
13146
  definingColumnCells,
13123
13147
  /* @__PURE__ */ jsxs69(Table2.Cell, { type: "head", layout: "center", children: [
13124
13148
  "Utvid",
13125
- /* @__PURE__ */ jsx259(VisuallyHidden, { as: "span", children: "raden" })
13149
+ /* @__PURE__ */ jsx260(VisuallyHidden, { as: "span", children: "raden" })
13126
13150
  ] })
13127
13151
  ] }) });
13128
13152
  };
@@ -13139,13 +13163,13 @@ var CollapsibleRow = forwardRef64(
13139
13163
  "data-isopencollapsibleheader": !childrenCollapsed && true,
13140
13164
  children: [
13141
13165
  definingColumnCells,
13142
- /* @__PURE__ */ jsx259(Table2.Cell, { children: /* @__PURE__ */ jsx259(
13166
+ /* @__PURE__ */ jsx260(Table2.Cell, { children: /* @__PURE__ */ jsx260(
13143
13167
  CollapseButton,
13144
13168
  {
13145
13169
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
13146
13170
  "aria-expanded": !childrenCollapsed,
13147
13171
  "aria-controls": idList,
13148
- children: /* @__PURE__ */ jsx259(
13172
+ children: /* @__PURE__ */ jsx260(
13149
13173
  AnimatedChevronUpDown,
13150
13174
  {
13151
13175
  isUp: childrenCollapsed ? false : true,
@@ -13165,16 +13189,16 @@ var CollapsibleRow = forwardRef64(
13165
13189
  rowWithChevron(),
13166
13190
  childrenCollapsed ? null : collapsedRows
13167
13191
  ] })
13168
- ] }) : /* @__PURE__ */ jsx259(StyledRow, { ref, type, ...rowProps, children });
13192
+ ] }) : /* @__PURE__ */ jsx260(StyledRow, { ref, type, ...rowProps, children });
13169
13193
  }
13170
13194
  );
13171
13195
  CollapsibleRow.displayName = "CollapsibleTable.Row";
13172
13196
 
13173
13197
  // src/components/Table/collapsible/CollapsibleTable.tsx
13174
- import { forwardRef as forwardRef65 } from "react";
13175
- import styled87, { css as css37 } from "styled-components";
13176
- import { jsx as jsx260 } from "react/jsx-runtime";
13177
- var StyledTable2 = styled87(Table2)`
13198
+ import { forwardRef as forwardRef66 } from "react";
13199
+ import styled88, { css as css37 } from "styled-components";
13200
+ import { jsx as jsx261 } from "react/jsx-runtime";
13201
+ var StyledTable2 = styled88(Table2)`
13178
13202
  width: 100%;
13179
13203
  ${({ withDividers }) => withDividers && css37`
13180
13204
  tr[data-isopencollapsibleheader='true'] {
@@ -13182,7 +13206,7 @@ var StyledTable2 = styled87(Table2)`
13182
13206
  }
13183
13207
  `}
13184
13208
  `;
13185
- var CollapsibleTable = forwardRef65((props, ref) => {
13209
+ var CollapsibleTable = forwardRef66((props, ref) => {
13186
13210
  const {
13187
13211
  density = "normal",
13188
13212
  children,
@@ -13191,7 +13215,7 @@ var CollapsibleTable = forwardRef65((props, ref) => {
13191
13215
  definingColumnIndex = [0],
13192
13216
  ...rest
13193
13217
  } = props;
13194
- return /* @__PURE__ */ jsx260(
13218
+ return /* @__PURE__ */ jsx261(
13195
13219
  CollapsibleTableContext.Provider,
13196
13220
  {
13197
13221
  value: {
@@ -13199,7 +13223,7 @@ var CollapsibleTable = forwardRef65((props, ref) => {
13199
13223
  headerValues,
13200
13224
  definingColumnIndex
13201
13225
  },
13202
- children: /* @__PURE__ */ jsx260(StyledTable2, { ref, density, ...rest, children })
13226
+ children: /* @__PURE__ */ jsx261(StyledTable2, { ref, density, ...rest, children })
13203
13227
  }
13204
13228
  );
13205
13229
  });
@@ -13211,13 +13235,13 @@ CollapsibleTable2.Row = CollapsibleRow;
13211
13235
 
13212
13236
  // src/components/Tabs/Tabs.tsx
13213
13237
  import {
13214
- forwardRef as forwardRef66,
13238
+ forwardRef as forwardRef67,
13215
13239
  useEffect as useEffect27,
13216
13240
  useId as useId21,
13217
13241
  useRef as useRef31,
13218
13242
  useState as useState29
13219
13243
  } from "react";
13220
- import styled88, { css as css38 } from "styled-components";
13244
+ import styled89, { css as css38 } from "styled-components";
13221
13245
 
13222
13246
  // src/components/Tabs/Tabs.context.tsx
13223
13247
  import { createContext as createContext11, useContext as useContext13 } from "react";
@@ -13234,13 +13258,13 @@ var TabsContext = createContext11({
13234
13258
  var useTabsContext = () => useContext13(TabsContext);
13235
13259
 
13236
13260
  // src/components/Tabs/Tabs.tsx
13237
- import { jsx as jsx261 } from "react/jsx-runtime";
13238
- var Container15 = styled88.div`
13261
+ import { jsx as jsx262 } from "react/jsx-runtime";
13262
+ var Container15 = styled89.div`
13239
13263
  ${({ $width }) => $width && css38`
13240
13264
  width: ${$width};
13241
13265
  `};
13242
13266
  `;
13243
- var Tabs = forwardRef66((props, ref) => {
13267
+ var Tabs = forwardRef67((props, ref) => {
13244
13268
  const {
13245
13269
  id,
13246
13270
  activeTab,
@@ -13271,7 +13295,7 @@ var Tabs = forwardRef66((props, ref) => {
13271
13295
  ...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
13272
13296
  ref
13273
13297
  };
13274
- return /* @__PURE__ */ jsx261(
13298
+ return /* @__PURE__ */ jsx262(
13275
13299
  TabsContext.Provider,
13276
13300
  {
13277
13301
  value: {
@@ -13284,7 +13308,7 @@ var Tabs = forwardRef66((props, ref) => {
13284
13308
  setHasTabFocus,
13285
13309
  tabContentDirection
13286
13310
  },
13287
- children: /* @__PURE__ */ jsx261(Container15, { ...containerProps, $width: width, children })
13311
+ children: /* @__PURE__ */ jsx262(Container15, { ...containerProps, $width: width, children })
13288
13312
  }
13289
13313
  );
13290
13314
  });
@@ -13292,12 +13316,12 @@ Tabs.displayName = "Tabs";
13292
13316
 
13293
13317
  // src/components/Tabs/Tab.tsx
13294
13318
  import {
13295
- forwardRef as forwardRef67,
13319
+ forwardRef as forwardRef68,
13296
13320
  useCallback as useCallback8,
13297
13321
  useEffect as useEffect28,
13298
13322
  useRef as useRef32
13299
13323
  } from "react";
13300
- import styled89, { css as css39 } from "styled-components";
13324
+ import styled90, { css as css39 } from "styled-components";
13301
13325
 
13302
13326
  // src/components/Tabs/Tabs.tokens.tsx
13303
13327
  import { ddsBaseTokens as ddsBaseTokens58 } from "@norges-domstoler/dds-design-tokens";
@@ -13344,13 +13368,13 @@ import {
13344
13368
  useContext as useContext14,
13345
13369
  useLayoutEffect as useLayoutEffect2
13346
13370
  } from "react";
13347
- import { jsx as jsx262 } from "react/jsx-runtime";
13371
+ import { jsx as jsx263 } from "react/jsx-runtime";
13348
13372
  var TabContext = createContext12(null);
13349
13373
  function TabWidthContextProvider({
13350
13374
  children,
13351
13375
  onChangeWidths
13352
13376
  }) {
13353
- return /* @__PURE__ */ jsx262(
13377
+ return /* @__PURE__ */ jsx263(
13354
13378
  TabContext.Provider,
13355
13379
  {
13356
13380
  value: {
@@ -13382,9 +13406,9 @@ function useSetTabWidth(index, width) {
13382
13406
  }
13383
13407
 
13384
13408
  // src/components/Tabs/Tab.tsx
13385
- import { jsx as jsx263, jsxs as jsxs70 } from "react/jsx-runtime";
13409
+ import { jsx as jsx264, jsxs as jsxs70 } from "react/jsx-runtime";
13386
13410
  var { tab: tab2 } = tabsTokens;
13387
- var Button2 = styled89.button`
13411
+ var Button2 = styled90.button`
13388
13412
  ${normalizeButton}
13389
13413
  ${removeButtonStyling}
13390
13414
  user-select: text;
@@ -13427,7 +13451,7 @@ var Button2 = styled89.button`
13427
13451
  box-shadow: ${tab2.hover.boxShadow};
13428
13452
  }
13429
13453
  `;
13430
- var Tab = forwardRef67((props, ref) => {
13454
+ var Tab = forwardRef68((props, ref) => {
13431
13455
  const {
13432
13456
  active = false,
13433
13457
  icon: icon11,
@@ -13479,8 +13503,8 @@ var Tab = forwardRef67((props, ref) => {
13479
13503
  onKeyDown: handleOnKeyDown,
13480
13504
  tabIndex: focus ? 0 : -1,
13481
13505
  children: [
13482
- icon11 && /* @__PURE__ */ jsx263(Icon, { icon: icon11, iconSize: "inherit" }),
13483
- /* @__PURE__ */ jsx263("span", { children })
13506
+ icon11 && /* @__PURE__ */ jsx264(Icon, { icon: icon11, iconSize: "inherit" }),
13507
+ /* @__PURE__ */ jsx264("span", { children })
13484
13508
  ]
13485
13509
  }
13486
13510
  );
@@ -13491,12 +13515,12 @@ Tab.displayName = "Tab";
13491
13515
  import {
13492
13516
  Children as Children7,
13493
13517
  cloneElement as cloneElement8,
13494
- forwardRef as forwardRef68,
13518
+ forwardRef as forwardRef69,
13495
13519
  isValidElement as isValidElement9,
13496
13520
  useState as useState30
13497
13521
  } from "react";
13498
- import styled90, { css as css40 } from "styled-components";
13499
- import { jsx as jsx264 } from "react/jsx-runtime";
13522
+ import styled91, { css as css40 } from "styled-components";
13523
+ import { jsx as jsx265 } from "react/jsx-runtime";
13500
13524
  var { tabList: tabList2 } = tabsTokens;
13501
13525
  var autoFlow = css40`
13502
13526
  grid-auto-flow: column;
@@ -13505,7 +13529,7 @@ var autoFlow = css40`
13505
13529
  var templateColumns = (templateColumns2) => css40`
13506
13530
  grid-template-columns: ${templateColumns2};
13507
13531
  `;
13508
- var TabRow = styled90.div`
13532
+ var TabRow = styled91.div`
13509
13533
  border-bottom: ${tabList2.borderBottom};
13510
13534
  display: grid;
13511
13535
  ${({ $gridTemplateColumns }) => $gridTemplateColumns === "" ? autoFlow : templateColumns($gridTemplateColumns)}
@@ -13524,7 +13548,7 @@ var TabRow = styled90.div`
13524
13548
  outline: none;
13525
13549
  }
13526
13550
  `;
13527
- var TabList = forwardRef68(
13551
+ var TabList = forwardRef69(
13528
13552
  ({ children, id, onFocus, ...rest }, ref) => {
13529
13553
  const {
13530
13554
  activeTab,
@@ -13563,7 +13587,7 @@ var TabList = forwardRef68(
13563
13587
  setHasTabFocus(false);
13564
13588
  }
13565
13589
  };
13566
- return /* @__PURE__ */ jsx264(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx264(
13590
+ return /* @__PURE__ */ jsx265(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx265(
13567
13591
  TabRow,
13568
13592
  {
13569
13593
  ...rest,
@@ -13583,11 +13607,11 @@ var TabList = forwardRef68(
13583
13607
  TabList.displayName = "TabList";
13584
13608
 
13585
13609
  // src/components/Tabs/TabPanel.tsx
13586
- import { forwardRef as forwardRef69 } from "react";
13587
- import styled91, { css as css41 } from "styled-components";
13588
- import { jsx as jsx265 } from "react/jsx-runtime";
13610
+ import { forwardRef as forwardRef70 } from "react";
13611
+ import styled92, { css as css41 } from "styled-components";
13612
+ import { jsx as jsx266 } from "react/jsx-runtime";
13589
13613
  var { panel: panel2 } = tabsTokens;
13590
- var Panel = styled91.div`
13614
+ var Panel = styled92.div`
13591
13615
  padding: ${panel2.padding};
13592
13616
  @media (prefers-reduced-motion: no-preference) {
13593
13617
  transition: ${focusVisibleTransitionValue};
@@ -13600,9 +13624,9 @@ var Panel = styled91.div`
13600
13624
  ${focusVisible}
13601
13625
  }
13602
13626
  `;
13603
- var TabPanel = forwardRef69(
13627
+ var TabPanel = forwardRef70(
13604
13628
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
13605
- return /* @__PURE__ */ jsx265(
13629
+ return /* @__PURE__ */ jsx266(
13606
13630
  Panel,
13607
13631
  {
13608
13632
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -13621,11 +13645,11 @@ TabPanel.displayName = "TabPanel";
13621
13645
  import {
13622
13646
  Children as Children8,
13623
13647
  cloneElement as cloneElement9,
13624
- forwardRef as forwardRef70,
13648
+ forwardRef as forwardRef71,
13625
13649
  isValidElement as isValidElement10
13626
13650
  } from "react";
13627
- import { jsx as jsx266 } from "react/jsx-runtime";
13628
- var TabPanels = forwardRef70(
13651
+ import { jsx as jsx267 } from "react/jsx-runtime";
13652
+ var TabPanels = forwardRef71(
13629
13653
  ({ children, ...rest }, ref) => {
13630
13654
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
13631
13655
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -13638,14 +13662,14 @@ var TabPanels = forwardRef70(
13638
13662
  "aria-expanded": active
13639
13663
  });
13640
13664
  });
13641
- return /* @__PURE__ */ jsx266("div", { ref: combinedRef, ...rest, children: panelChildren });
13665
+ return /* @__PURE__ */ jsx267("div", { ref: combinedRef, ...rest, children: panelChildren });
13642
13666
  }
13643
13667
  );
13644
13668
  TabPanels.displayName = "TabPanels";
13645
13669
 
13646
13670
  // src/components/Tag/Tag.tsx
13647
- import { forwardRef as forwardRef71 } from "react";
13648
- import styled92, { css as css42 } from "styled-components";
13671
+ import { forwardRef as forwardRef72 } from "react";
13672
+ import styled93, { css as css42 } from "styled-components";
13649
13673
 
13650
13674
  // src/components/Tag/Tag.tokens.tsx
13651
13675
  import { ddsBaseTokens as ddsBaseTokens59 } from "@norges-domstoler/dds-design-tokens";
@@ -13750,9 +13774,9 @@ var tagTokens = {
13750
13774
  };
13751
13775
 
13752
13776
  // src/components/Tag/Tag.tsx
13753
- import { jsx as jsx267, jsxs as jsxs71 } from "react/jsx-runtime";
13777
+ import { jsx as jsx268, jsxs as jsxs71 } from "react/jsx-runtime";
13754
13778
  var { wrapper: wrapper8 } = tagTokens;
13755
- var Wrapper7 = styled92(TextOverflowEllipsisWrapper)`
13779
+ var Wrapper7 = styled93(TextOverflowEllipsisWrapper)`
13756
13780
  display: inline-flex;
13757
13781
  align-items: center;
13758
13782
  gap: ${tagTokens.wrapper.icon.gap};
@@ -13765,13 +13789,13 @@ var Wrapper7 = styled92(TextOverflowEllipsisWrapper)`
13765
13789
  border-color: ${wrapper8.purpose[$purpose][$strong ? "strong" : "base"].borderColor};
13766
13790
  `}
13767
13791
  `;
13768
- var StyledIcon4 = styled92(Icon)`
13792
+ var StyledIcon4 = styled93(Icon)`
13769
13793
  color: ${({ $purpose, $strong }) => {
13770
13794
  var _a;
13771
13795
  return (_a = wrapper8.purpose[$purpose][$strong ? "strong" : "base"].icon) == null ? void 0 : _a.color;
13772
13796
  }};
13773
13797
  `;
13774
- var Tag = forwardRef71((props, ref) => {
13798
+ var Tag = forwardRef72((props, ref) => {
13775
13799
  const {
13776
13800
  text,
13777
13801
  purpose = "default",
@@ -13793,7 +13817,7 @@ var Tag = forwardRef71((props, ref) => {
13793
13817
  $strong: strong,
13794
13818
  $withIcon: Boolean(withIcon && icon11),
13795
13819
  children: [
13796
- withIcon && icon11 && /* @__PURE__ */ jsx267(
13820
+ withIcon && icon11 && /* @__PURE__ */ jsx268(
13797
13821
  StyledIcon4,
13798
13822
  {
13799
13823
  $purpose: purpose,
@@ -13802,7 +13826,7 @@ var Tag = forwardRef71((props, ref) => {
13802
13826
  iconSize: tagTokens.wrapper.icon.size
13803
13827
  }
13804
13828
  ),
13805
- /* @__PURE__ */ jsx267(TextOverflowEllipsisInner, { children: children != null ? children : text })
13829
+ /* @__PURE__ */ jsx268(TextOverflowEllipsisInner, { children: children != null ? children : text })
13806
13830
  ]
13807
13831
  }
13808
13832
  );
@@ -13811,19 +13835,19 @@ Tag.displayName = "Tag";
13811
13835
 
13812
13836
  // src/components/TextInput/TextInput.tsx
13813
13837
  import {
13814
- forwardRef as forwardRef72,
13838
+ forwardRef as forwardRef73,
13815
13839
  useId as useId23,
13816
13840
  useLayoutEffect as useLayoutEffect3,
13817
13841
  useRef as useRef33,
13818
13842
  useState as useState31
13819
13843
  } from "react";
13820
- import styled95, { css as css44 } from "styled-components";
13844
+ import styled96, { css as css44 } from "styled-components";
13821
13845
 
13822
13846
  // src/components/TextInput/CharCounter.tsx
13823
13847
  import { useId as useId22 } from "react";
13824
- import styled93 from "styled-components";
13848
+ import styled94 from "styled-components";
13825
13849
  import { jsxs as jsxs72 } from "react/jsx-runtime";
13826
- var Wrapper8 = styled93(Typography)`
13850
+ var Wrapper8 = styled94(Typography)`
13827
13851
  margin-left: auto;
13828
13852
  `;
13829
13853
  function CharCounter(props) {
@@ -13849,7 +13873,7 @@ var CharCounter_default = CharCounter;
13849
13873
 
13850
13874
  // src/components/TextInput/TextInput.styles.tsx
13851
13875
  import { ddsBaseTokens as ddsBaseTokens61 } from "@norges-domstoler/dds-design-tokens";
13852
- import styled94, { css as css43 } from "styled-components";
13876
+ import styled95, { css as css43 } from "styled-components";
13853
13877
 
13854
13878
  // src/components/TextInput/TextInput.tokens.tsx
13855
13879
  import { ddsBaseTokens as ddsBaseTokens60 } from "@norges-domstoler/dds-design-tokens";
@@ -13898,11 +13922,11 @@ var textInputTokens = {
13898
13922
  // src/components/TextInput/TextInput.styles.tsx
13899
13923
  var { iconSizes: iconSizes5 } = ddsBaseTokens61;
13900
13924
  var { input: input6, icon: icon10 } = textInputTokens;
13901
- var MessageContainer2 = styled94.div`
13925
+ var MessageContainer2 = styled95.div`
13902
13926
  display: flex;
13903
13927
  justify-content: space-between;
13904
13928
  `;
13905
- var StyledIcon5 = styled94(Icon)`
13929
+ var StyledIcon5 = styled95(Icon)`
13906
13930
  position: absolute;
13907
13931
  color: ${icon10.color};
13908
13932
  ${({ $size, iconSize }) => css43`
@@ -13915,14 +13939,14 @@ var StyledIcon5 = styled94(Icon)`
13915
13939
  `}
13916
13940
  z-index: 1;
13917
13941
  `;
13918
- var StyledInput = styled94(StatefulInput)`
13942
+ var StyledInput = styled95(StatefulInput)`
13919
13943
  ${({ componentSize, $hasIcon }) => $hasIcon && componentSize && css43`
13920
13944
  padding-left: ${input6.withIcon[componentSize].paddingLeft};
13921
13945
  `}
13922
13946
  `;
13923
13947
 
13924
13948
  // src/components/TextInput/TextInput.tsx
13925
- import { jsx as jsx268, jsxs as jsxs73 } from "react/jsx-runtime";
13949
+ import { jsx as jsx269, jsxs as jsxs73 } from "react/jsx-runtime";
13926
13950
  var defaultWidth5 = "320px";
13927
13951
  var defaultTinyWidth = "210px";
13928
13952
  var getWidth = (size2, width) => {
@@ -13933,7 +13957,7 @@ var getWidth = (size2, width) => {
13933
13957
  }
13934
13958
  return defaultWidth5;
13935
13959
  };
13936
- var Affix = styled95.span`
13960
+ var Affix = styled96.span`
13937
13961
  position: absolute;
13938
13962
  height: 100%;
13939
13963
  top: 50%;
@@ -13943,7 +13967,7 @@ var Affix = styled95.span`
13943
13967
  pointer-events: none;
13944
13968
  z-index: 1;
13945
13969
  `;
13946
- var Prefix = styled95(Affix)`
13970
+ var Prefix = styled96(Affix)`
13947
13971
  left: 0;
13948
13972
  margin-left: 8px;
13949
13973
  padding-right: 8px;
@@ -13955,7 +13979,7 @@ var Prefix = styled95(Affix)`
13955
13979
  border-right: none;
13956
13980
  `};
13957
13981
  `;
13958
- var Suffix = styled95(Affix)`
13982
+ var Suffix = styled96(Affix)`
13959
13983
  right: 0;
13960
13984
  margin-right: 8px;
13961
13985
  padding-left: 8px;
@@ -13967,7 +13991,7 @@ var Suffix = styled95(Affix)`
13967
13991
  border-left: none;
13968
13992
  `};
13969
13993
  `;
13970
- var TextInput2 = forwardRef72(
13994
+ var TextInput2 = forwardRef73(
13971
13995
  ({
13972
13996
  label: label3,
13973
13997
  disabled,
@@ -14057,7 +14081,7 @@ var TextInput2 = forwardRef72(
14057
14081
  let extendedInput = null;
14058
14082
  if (hasIcon) {
14059
14083
  extendedInput = /* @__PURE__ */ jsxs73(InputContainer, { children: [
14060
- /* @__PURE__ */ jsx268(
14084
+ /* @__PURE__ */ jsx269(
14061
14085
  StyledIcon5,
14062
14086
  {
14063
14087
  icon: icon11,
@@ -14065,7 +14089,7 @@ var TextInput2 = forwardRef72(
14065
14089
  $size: componentSize
14066
14090
  }
14067
14091
  ),
14068
- /* @__PURE__ */ jsx268(
14092
+ /* @__PURE__ */ jsx269(
14069
14093
  StyledInput,
14070
14094
  {
14071
14095
  ref,
@@ -14079,8 +14103,8 @@ var TextInput2 = forwardRef72(
14079
14103
  ] });
14080
14104
  } else if (hasAffix) {
14081
14105
  extendedInput = /* @__PURE__ */ jsxs73(InputAffixContainer, { children: [
14082
- prefix2 && /* @__PURE__ */ jsx268(Prefix, { readOnly, ref: prefixRef, "aria-hidden": true, children: prefix2 }),
14083
- /* @__PURE__ */ jsx268(
14106
+ prefix2 && /* @__PURE__ */ jsx269(Prefix, { readOnly, ref: prefixRef, "aria-hidden": true, children: prefix2 }),
14107
+ /* @__PURE__ */ jsx269(
14084
14108
  StatefulInput,
14085
14109
  {
14086
14110
  ref,
@@ -14092,12 +14116,12 @@ var TextInput2 = forwardRef72(
14092
14116
  ...generalInputProps
14093
14117
  }
14094
14118
  ),
14095
- suffix && /* @__PURE__ */ jsx268(Suffix, { readOnly, ref: suffixRef, "aria-hidden": true, children: suffix })
14119
+ suffix && /* @__PURE__ */ jsx269(Suffix, { readOnly, ref: suffixRef, "aria-hidden": true, children: suffix })
14096
14120
  ] });
14097
14121
  }
14098
14122
  return /* @__PURE__ */ jsxs73(OuterInputContainer, { ...outerInputContainerProps, children: [
14099
- hasLabel && /* @__PURE__ */ jsx268(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
14100
- extendedInput ? extendedInput : /* @__PURE__ */ jsx268(
14123
+ hasLabel && /* @__PURE__ */ jsx269(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
14124
+ extendedInput ? extendedInput : /* @__PURE__ */ jsx269(
14101
14125
  StatefulInput,
14102
14126
  {
14103
14127
  ref,
@@ -14109,7 +14133,7 @@ var TextInput2 = forwardRef72(
14109
14133
  ),
14110
14134
  hasMessage && /* @__PURE__ */ jsxs73(MessageContainer2, { children: [
14111
14135
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
14112
- maxLength && Number.isInteger(maxLength) && maxLength > 0 && withCharacterCounter && /* @__PURE__ */ jsx268(
14136
+ maxLength && Number.isInteger(maxLength) && maxLength > 0 && withCharacterCounter && /* @__PURE__ */ jsx269(
14113
14137
  CharCounter_default,
14114
14138
  {
14115
14139
  id: characterCounterId,
@@ -14125,7 +14149,7 @@ TextInput2.displayName = "TextInput";
14125
14149
 
14126
14150
  // src/components/ToggleBar/ToggleBar.tsx
14127
14151
  import { useId as useId24, useState as useState32 } from "react";
14128
- import styled96, { css as css45 } from "styled-components";
14152
+ import styled97, { css as css45 } from "styled-components";
14129
14153
 
14130
14154
  // src/components/ToggleBar/ToggleBar.context.tsx
14131
14155
  import { createContext as createContext13, useContext as useContext15 } from "react";
@@ -14241,8 +14265,8 @@ var toggleBarTokens = {
14241
14265
  };
14242
14266
 
14243
14267
  // src/components/ToggleBar/ToggleBar.tsx
14244
- import { jsx as jsx269, jsxs as jsxs74 } from "react/jsx-runtime";
14245
- var OuterContainer3 = styled96.div`
14268
+ import { jsx as jsx270, jsxs as jsxs74 } from "react/jsx-runtime";
14269
+ var OuterContainer3 = styled97.div`
14246
14270
  display: flex;
14247
14271
  flex-direction: column;
14248
14272
  gap: ${toggleBarTokens.outerContainer.gap};
@@ -14254,7 +14278,7 @@ var OuterContainer3 = styled96.div`
14254
14278
  width: ${$width};
14255
14279
  `}
14256
14280
  `;
14257
- var Bar3 = styled96.div`
14281
+ var Bar3 = styled97.div`
14258
14282
  display: grid;
14259
14283
  grid-auto-flow: column;
14260
14284
  grid-auto-columns: 1fr;
@@ -14281,7 +14305,7 @@ var ToggleBar = (props) => {
14281
14305
  (e) => onChange && onChange(e, e.target.value)
14282
14306
  );
14283
14307
  const labelId = label3 && `${uniqueId}-label`;
14284
- return /* @__PURE__ */ jsx269(
14308
+ return /* @__PURE__ */ jsx270(
14285
14309
  ToggleBarContext.Provider,
14286
14310
  {
14287
14311
  value: {
@@ -14298,8 +14322,8 @@ var ToggleBar = (props) => {
14298
14322
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
14299
14323
  $width: width,
14300
14324
  children: [
14301
- label3 && /* @__PURE__ */ jsx269(Typography, { typographyType: "supportingStyleLabel01", id: labelId, children: label3 }),
14302
- /* @__PURE__ */ jsx269(Bar3, { children })
14325
+ label3 && /* @__PURE__ */ jsx270(Typography, { typographyType: "supportingStyleLabel01", id: labelId, children: label3 }),
14326
+ /* @__PURE__ */ jsx270(Bar3, { children })
14303
14327
  ]
14304
14328
  }
14305
14329
  )
@@ -14310,14 +14334,14 @@ ToggleBar.displayName = "ToggleBar";
14310
14334
 
14311
14335
  // src/components/ToggleBar/ToggleRadio.tsx
14312
14336
  import {
14313
- forwardRef as forwardRef73,
14337
+ forwardRef as forwardRef74,
14314
14338
  useId as useId25
14315
14339
  } from "react";
14316
14340
 
14317
14341
  // src/components/ToggleBar/ToggleRadio.styles.tsx
14318
- import styled97, { css as css46 } from "styled-components";
14342
+ import styled98, { css as css46 } from "styled-components";
14319
14343
  var { content: content8, label: label2 } = toggleBarTokens;
14320
- var Content2 = styled97.span`
14344
+ var Content2 = styled98.span`
14321
14345
  display: flex;
14322
14346
  justify-content: center;
14323
14347
  align-items: center;
@@ -14346,7 +14370,7 @@ var Content2 = styled97.span`
14346
14370
  `}
14347
14371
  `}
14348
14372
  `;
14349
- var Label3 = styled97.label`
14373
+ var Label3 = styled98.label`
14350
14374
  ${Content2} {
14351
14375
  border-right: ${label2.base.borderRight};
14352
14376
  border-top: ${label2.base.borderTop};
@@ -14384,7 +14408,7 @@ var Label3 = styled97.label`
14384
14408
  `;
14385
14409
 
14386
14410
  // src/components/ToggleBar/ToggleRadio.tsx
14387
- import { jsx as jsx270, jsxs as jsxs75 } from "react/jsx-runtime";
14411
+ import { jsx as jsx271, jsxs as jsxs75 } from "react/jsx-runtime";
14388
14412
  var calculateChecked = (value, group4, checked) => {
14389
14413
  if (typeof checked !== "undefined")
14390
14414
  return checked;
@@ -14396,7 +14420,7 @@ var calculateChecked = (value, group4, checked) => {
14396
14420
  }
14397
14421
  return !!value;
14398
14422
  };
14399
- var ToggleRadio = forwardRef73(
14423
+ var ToggleRadio = forwardRef74(
14400
14424
  (props, ref) => {
14401
14425
  const {
14402
14426
  value,
@@ -14420,7 +14444,7 @@ var ToggleRadio = forwardRef73(
14420
14444
  (group4 == null ? void 0 : group4.onChange) && group4.onChange(event);
14421
14445
  };
14422
14446
  return /* @__PURE__ */ jsxs75(Label3, { size: group4.size, htmlFor: uniqueId, children: [
14423
- /* @__PURE__ */ jsx270(
14447
+ /* @__PURE__ */ jsx271(
14424
14448
  HiddenInput,
14425
14449
  {
14426
14450
  ...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
@@ -14435,8 +14459,8 @@ var ToggleRadio = forwardRef73(
14435
14459
  }
14436
14460
  ),
14437
14461
  /* @__PURE__ */ jsxs75(Content2, { $size: group4.size, $justIcon: !!icon11 && !label3, children: [
14438
- icon11 && /* @__PURE__ */ jsx270(Icon, { icon: icon11, iconSize: "inherit" }),
14439
- label3 && /* @__PURE__ */ jsx270("span", { children: label3 })
14462
+ icon11 && /* @__PURE__ */ jsx271(Icon, { icon: icon11, iconSize: "inherit" }),
14463
+ label3 && /* @__PURE__ */ jsx271("span", { children: label3 })
14440
14464
  ] })
14441
14465
  ] });
14442
14466
  }
@@ -14444,8 +14468,8 @@ var ToggleRadio = forwardRef73(
14444
14468
  ToggleRadio.displayName = "ToggleRadio";
14445
14469
 
14446
14470
  // src/components/ToggleButton/ToggleButton.tsx
14447
- import { forwardRef as forwardRef74, useId as useId26 } from "react";
14448
- import styled98, { css as css47 } from "styled-components";
14471
+ import { forwardRef as forwardRef75, useId as useId26 } from "react";
14472
+ import styled99, { css as css47 } from "styled-components";
14449
14473
 
14450
14474
  // src/components/ToggleButton/ToggleButton.tokens.tsx
14451
14475
  import { ddsBaseTokens as ddsBaseTokens63 } from "@norges-domstoler/dds-design-tokens";
@@ -14480,9 +14504,9 @@ var toggleButtonTokens = {
14480
14504
  };
14481
14505
 
14482
14506
  // src/components/ToggleButton/ToggleButton.tsx
14483
- import { jsx as jsx271, jsxs as jsxs76 } from "react/jsx-runtime";
14507
+ import { jsx as jsx272, jsxs as jsxs76 } from "react/jsx-runtime";
14484
14508
  var { toggleButton: toggleButton2 } = toggleButtonTokens;
14485
- var Content3 = styled98.span`
14509
+ var Content3 = styled99.span`
14486
14510
  display: flex;
14487
14511
  align-items: center;
14488
14512
  width: 100%;
@@ -14518,7 +14542,7 @@ var Content3 = styled98.span`
14518
14542
  border-color: ${toggleButton2.hover.borderColor};
14519
14543
  }
14520
14544
  `;
14521
- var Container16 = styled98.label`
14545
+ var Container16 = styled99.label`
14522
14546
  width: fit-content;
14523
14547
  ${HiddenInput}:checked + ${Content3} {
14524
14548
  background-color: ${toggleButton2.checked.backgroundColor};
@@ -14534,12 +14558,12 @@ var Container16 = styled98.label`
14534
14558
  ${focusVisible}
14535
14559
  }
14536
14560
  `;
14537
- var ToggleButton = forwardRef74(
14561
+ var ToggleButton = forwardRef75(
14538
14562
  ({ id, label: label3, icon: icon11, className, htmlProps, ...rest }, ref) => {
14539
14563
  const generatedId = useId26();
14540
14564
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
14541
14565
  return /* @__PURE__ */ jsxs76(Container16, { htmlFor: uniqueId, children: [
14542
- /* @__PURE__ */ jsx271(
14566
+ /* @__PURE__ */ jsx272(
14543
14567
  HiddenInput,
14544
14568
  {
14545
14569
  ...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
@@ -14548,7 +14572,7 @@ var ToggleButton = forwardRef74(
14548
14572
  }
14549
14573
  ),
14550
14574
  /* @__PURE__ */ jsxs76(Content3, { $hasIcon: !!icon11, children: [
14551
- icon11 && /* @__PURE__ */ jsx271(Icon, { icon: icon11, iconSize: "inherit" }),
14575
+ icon11 && /* @__PURE__ */ jsx272(Icon, { icon: icon11, iconSize: "inherit" }),
14552
14576
  " ",
14553
14577
  label3
14554
14578
  ] })
@@ -14559,9 +14583,9 @@ ToggleButton.displayName = "ToggleButton";
14559
14583
 
14560
14584
  // src/components/ToggleButton/ToggleButtonGroup.tsx
14561
14585
  import { useId as useId27 } from "react";
14562
- import styled99, { css as css48 } from "styled-components";
14563
- import { jsx as jsx272, jsxs as jsxs77 } from "react/jsx-runtime";
14564
- var Group2 = styled99.div`
14586
+ import styled100, { css as css48 } from "styled-components";
14587
+ import { jsx as jsx273, jsxs as jsxs77 } from "react/jsx-runtime";
14588
+ var Group2 = styled100.div`
14565
14589
  gap: ${toggleButtonTokens.group.gap};
14566
14590
  display: flex;
14567
14591
  flex-wrap: wrap;
@@ -14569,7 +14593,7 @@ var Group2 = styled99.div`
14569
14593
  flex-direction: ${direction};
14570
14594
  `}
14571
14595
  `;
14572
- var Container17 = styled99.div`
14596
+ var Container17 = styled100.div`
14573
14597
  display: flex;
14574
14598
  flex-direction: column;
14575
14599
  gap: ${toggleButtonTokens.container.gap};
@@ -14596,7 +14620,7 @@ var ToggleButtonGroup = (props) => {
14596
14620
  "aria-labelledby": label3 ? uniqueLabelId : void 0
14597
14621
  };
14598
14622
  return /* @__PURE__ */ jsxs77(Container17, { ...containerProps, children: [
14599
- !!label3 && /* @__PURE__ */ jsx272(
14623
+ !!label3 && /* @__PURE__ */ jsx273(
14600
14624
  Typography,
14601
14625
  {
14602
14626
  as: "span",
@@ -14605,7 +14629,7 @@ var ToggleButtonGroup = (props) => {
14605
14629
  children: label3
14606
14630
  }
14607
14631
  ),
14608
- /* @__PURE__ */ jsx272(Group2, { ...groupProps, children })
14632
+ /* @__PURE__ */ jsx273(Group2, { ...groupProps, children })
14609
14633
  ] });
14610
14634
  };
14611
14635
  ToggleButtonGroup.displayName = "ToggleButtonGroup";
@@ -14730,6 +14754,7 @@ export {
14730
14754
  Icon,
14731
14755
  ImageIcon,
14732
14756
  InfoIcon,
14757
+ InlineButton,
14733
14758
  InlineEditInput,
14734
14759
  InlineEditTextArea,
14735
14760
  Input,