@norges-domstoler/dds-components 14.5.0 → 14.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -692,7 +692,7 @@ var Input = styled3.input`
692
692
  ${selection}
693
693
  }
694
694
 
695
- &:not(.disabled):not(.read-only):not(.active):hover,
695
+ &:not(input):not(textarea):not(.disabled):not(.read-only):not(.active):hover,
696
696
  &:hover:enabled:read-write {
697
697
  ${hoverInputfield}
698
698
  }
@@ -804,8 +804,8 @@ var getElevation = (elevation) => {
804
804
  return outerShadow.DdsShadow4Onlight;
805
805
  }
806
806
  };
807
- var getBorder = (borderStyle2) => {
808
- switch (borderStyle2) {
807
+ var getBorder = (borderStyle) => {
808
+ switch (borderStyle) {
809
809
  case "light":
810
810
  return `${border3.BordersDdsBorderStyleLightStrokeWeight} solid ${border3.BordersDdsBorderStyleLightStroke}`;
811
811
  case "dark":
@@ -8998,185 +8998,156 @@ import styled59, { css as css24 } from "styled-components";
8998
8998
  // src/components/InternalHeader/InternalHeader.tokens.tsx
8999
8999
  import { ddsBaseTokens as ddsBaseTokens42 } from "@norges-domstoler/dds-design-tokens";
9000
9000
  var { border: border10, colors: colors23, spacing: spacing24 } = ddsBaseTokens42;
9001
- var borderStyle = `${border10.BordersDdsBorderStyleLightStrokeWeight} ${border10.BordersDdsBorderStyleLightStroke} solid `;
9002
- var typographyTypes3 = {
9003
- navLink: "bodySans01"
9001
+ var bar = {
9002
+ backgroundColor: colors23.DdsColorNeutralsWhite,
9003
+ itemGap: spacing24.SizesDdsSpacingX1,
9004
+ minHeight: "57px",
9005
+ borderBottom: `${border10.BordersDdsBorderStyleLightStroke} solid ${border10.BordersDdsBorderStyleLightStrokeWeight}`
9004
9006
  };
9005
- var navLink = {
9006
- base: {
9007
- color: colors23.DdsColorNeutralsGray9,
9008
- backgroundColor: colors23.DdsColorNeutralsWhite,
9009
- padding: `${spacing24.SizesDdsSpacingX075} ${spacing24.SizesDdsSpacingX15}`
9010
- },
9011
- hover: {
9012
- color: colors23.DdsColorInteractiveDark
9013
- },
9014
- active: {
9015
- color: colors23.DdsColorInteractiveDark
9016
- },
9017
- current: {
9018
- color: colors23.DdsColorInteractiveDarkest,
9019
- backgroundColor: colors23.DdsColorPrimaryLightest
9020
- }
9021
- };
9022
- var outerContainer3 = {
9023
- backgroundColor: colors23.DdsColorNeutralsWhite
9024
- };
9025
- var applicationNameWrapper = {
9026
- padding: `${spacing24.SizesDdsSpacingX1} ${spacing24.SizesDdsSpacingX15}`
9027
- };
9028
- var lovisaWrapper = {
9029
- padding: `${spacing24.SizesDdsSpacingX1} ${spacing24.SizesDdsSpacingX15}`,
9030
- borderRight: borderStyle
9031
- };
9032
- var banner = {
9033
- borderBottom: borderStyle,
9034
- paddingRight: spacing24.SizesDdsSpacingX1,
9035
- hasContextMenu: {
9036
- paddingRight: spacing24.SizesDdsSpacingX4
9037
- }
9038
- };
9039
- var navigation2 = {
9040
- borderBottom: borderStyle
9041
- };
9042
- var contextGroup = {
9043
- right: spacing24.SizesDdsSpacingX075,
9044
- top: spacing24.SizesDdsSpacingX025
9007
+ var separator = {
9008
+ color: border10.BordersDdsBorderStyleLightStroke,
9009
+ width: border10.BordersDdsBorderStyleLightStrokeWeight
9045
9010
  };
9046
9011
  var internalHeaderTokens = {
9047
- navLink,
9048
- outerContainer: outerContainer3,
9049
- applicationNameWrapper,
9050
- lovisaWrapper,
9051
- banner,
9052
- navigation: navigation2,
9053
- contextGroup
9012
+ bar,
9013
+ separator
9054
9014
  };
9055
9015
 
9056
9016
  // src/components/InternalHeader/InternalHeader.styles.tsx
9057
- var {
9058
- outerContainer: outerContainer4,
9059
- applicationNameWrapper: applicationNameWrapper2,
9060
- lovisaWrapper: lovisaWrapper2,
9061
- banner: banner2,
9062
- navigation: navigation3,
9063
- contextGroup: contextGroup2
9064
- } = internalHeaderTokens;
9065
- var OuterContainer = styled59.div`
9066
- position: relative;
9017
+ var { bar: bar2, separator: separator2 } = internalHeaderTokens;
9018
+ var Bar2 = styled59.div`
9067
9019
  *::selection {
9068
9020
  ${selection}
9069
9021
  }
9070
- background-color: ${outerContainer4.backgroundColor};
9071
- `;
9072
- var BannerWrapper = styled59.div`
9073
- position: relative;
9074
- display: flex;
9075
- align-items: center;
9076
- border-bottom: ${banner2.borderBottom};
9077
- padding-right: ${banner2.paddingRight};
9078
- ${({ $hasContextMenu }) => $hasContextMenu && css24`
9079
- padding-right: ${banner2.hasContextMenu.paddingRight};
9080
- `}
9081
- `;
9082
- var BannerLeftWrapper = styled59.div`
9083
- display: flex;
9084
- `;
9085
- var ApplicationNameWrapper = styled59.div`
9022
+ background-color: ${bar2.backgroundColor};
9086
9023
  display: flex;
9024
+ gap: ${bar2.itemGap};
9087
9025
  align-items: center;
9088
- padding: ${applicationNameWrapper2.padding};
9089
- `;
9090
- var LovisaWrapper = styled59.div`
9091
- padding: ${lovisaWrapper2.padding};
9092
- border-right: ${lovisaWrapper2.borderRight};
9026
+ min-height: ${bar2.minHeight};
9027
+ border-bottom: ${bar2.borderBottom};
9028
+
9029
+ ${({ $hasNavigation }) => $hasNavigation ? css24`
9030
+ ${ContextMenuGroup} {
9031
+ margin-left: auto;
9032
+ }
9033
+ ` : css24`
9034
+ ${BarSeparator} {
9035
+ margin-left: auto;
9036
+ }
9037
+ `}
9093
9038
  `;
9094
- var Navigation2 = styled59.nav`
9095
- border-bottom: ${navigation3.borderBottom};
9039
+ var BarSeparator = styled59.div`
9040
+ border-left: ${separator2.width} solid ${separator2.color};
9041
+ align-self: stretch;
9096
9042
  `;
9097
9043
  var NavigationList = styled59.ul`
9098
9044
  box-sizing: border-box;
9099
9045
  display: flex;
9046
+ gap: ${bar2.itemGap};
9047
+ align-items: center;
9048
+ width: 100%;
9100
9049
  ${({ smallScreen }) => smallScreen && css24`
9050
+ align-items: initial;
9101
9051
  flex-direction: column;
9102
9052
  `}
9103
9053
  list-style-type: none;
9104
9054
  padding: 0;
9105
9055
  margin: 0;
9106
9056
  `;
9107
- var ContextMenuGroup = styled59.div`
9108
- position: absolute;
9109
- top: ${contextGroup2.top};
9110
- right: ${contextGroup2.right};
9111
- `;
9057
+ var ContextMenuGroup = styled59.div``;
9112
9058
  var StyledOverflowMenu = styled59(OverflowMenu)`
9113
9059
  max-height: calc(100vh - 110px);
9114
9060
  `;
9061
+ var NavLi = styled59.li`
9062
+ display: flex;
9063
+ `;
9115
9064
 
9116
- // src/components/InternalHeader/InternalHeaderListItem.tsx
9065
+ // src/components/InternalHeader/NavigationItem.tsx
9117
9066
  import { forwardRef as forwardRef39 } from "react";
9118
9067
  import styled60 from "styled-components";
9119
- import { jsx as jsx226 } from "react/jsx-runtime";
9120
- var Li = styled60.li`
9121
- box-sizing: border-box;
9122
- `;
9123
- var InternalHeaderListItem = forwardRef39(({ children, ...rest }, ref) => {
9124
- const props = {
9125
- ref,
9126
- ...rest
9068
+
9069
+ // src/components/InternalHeader/NavigationItem.tokens.ts
9070
+ import { ddsBaseTokens as ddsBaseTokens43 } from "@norges-domstoler/dds-design-tokens";
9071
+ var navTokens5 = {
9072
+ base: {
9073
+ padding: [
9074
+ ddsBaseTokens43.spacing.SizesDdsSpacingX075,
9075
+ ddsBaseTokens43.spacing.SizesDdsSpacingX1
9076
+ ].join(" "),
9077
+ borderRadius: ddsBaseTokens43.borderRadius.RadiiDdsBorderRadius1Radius,
9078
+ backgroundColor: "transparent",
9079
+ color: ddsBaseTokens43.colors.DdsColorNeutralsGray6,
9080
+ hover: {
9081
+ backgroundColor: ddsBaseTokens43.colors.DdsColorNeutralsGray1,
9082
+ color: ddsBaseTokens43.colors.DdsColorNeutralsGray9
9083
+ }
9084
+ },
9085
+ active: {
9086
+ base: {
9087
+ backgroundColor: ddsBaseTokens43.colors.DdsColorInteractiveLightest,
9088
+ color: ddsBaseTokens43.colors.DdsColorNeutralsGray9
9089
+ },
9090
+ hover: {
9091
+ backgroundColor: ddsBaseTokens43.colors.DdsColorInteractiveLightest,
9092
+ color: ddsBaseTokens43.colors.DdsColorNeutralsGray9
9093
+ }
9094
+ }
9095
+ };
9096
+ function getNavTokens({ active }) {
9097
+ return {
9098
+ ...navTokens5.base,
9099
+ ...active ? navTokens5.active.base : {},
9100
+ hover: {
9101
+ ...navTokens5.base.hover,
9102
+ ...active ? navTokens5.active.hover : {}
9103
+ }
9127
9104
  };
9128
- return /* @__PURE__ */ jsx226(Li, { ...props, children });
9129
- });
9105
+ }
9130
9106
 
9131
9107
  // src/components/InternalHeader/NavigationItem.tsx
9132
- import { forwardRef as forwardRef40 } from "react";
9133
- import styled61, { css as css25 } from "styled-components";
9134
- import { jsx as jsx227 } from "react/jsx-runtime";
9135
- var { navLink: navLink2 } = internalHeaderTokens;
9136
- var Link3 = styled61.a.withConfig({
9137
- shouldForwardProp: (prop) => prop !== "isCurrent"
9138
- })`
9139
- display: flex;
9140
- align-items: center;
9141
- height: 100%;
9142
- box-sizing: border-box;
9108
+ import { jsx as jsx226 } from "react/jsx-runtime";
9109
+ var Link3 = styled60.a`
9110
+ ${getFontStyling("bodySans02")}
9143
9111
  text-decoration: none;
9144
- @media (prefers-reduced-motion: no-preference) {
9145
- transition: background-color 0.2s;
9146
- }
9147
- color: ${navLink2.base.color};
9148
- background-color: ${navLink2.base.backgroundColor};
9149
- padding: ${navLink2.base.padding};
9150
- ${getFontStyling(typographyTypes3.navLink)}
9112
+
9113
+ color: ${({ $active }) => getNavTokens({ active: $active }).color};
9114
+ background-color: ${({ $active }) => getNavTokens({ active: $active }).backgroundColor};
9115
+ padding: ${({ $active }) => getNavTokens({ active: $active }).padding};
9116
+ border-radius: ${({ $active }) => getNavTokens({ active: $active }).borderRadius};
9117
+
9151
9118
  &:hover {
9152
- color: ${navLink2.hover.color};
9119
+ color: ${({ $active }) => getNavTokens({ active: $active }).hover.color};
9120
+ background-color: ${({ $active }) => getNavTokens({ active: $active }).hover.backgroundColor};
9153
9121
  }
9122
+
9154
9123
  &:active {
9155
- color: ${navLink2.active.color};
9124
+ color: ${getNavTokens({ active: true }).color};
9125
+ background-color: ${getNavTokens({ active: true }).backgroundColor};
9156
9126
  }
9157
9127
  &:focus-visible,
9158
9128
  &.focus-visible {
9159
- ${focusVisible};
9129
+ ${focusVisibleInset};
9130
+ }
9131
+
9132
+ @media (prefers-reduced-motion: no-preference) {
9133
+ transition: background-color 0.2s;
9160
9134
  }
9161
- ${({ isCurrent }) => isCurrent && css25`
9162
- color: ${navLink2.current.color};
9163
- background-color: ${navLink2.current.backgroundColor};
9164
- &:hover {
9165
- color: ${navLink2.current.color};
9166
- }
9167
- `}
9168
9135
  `;
9169
- var NavigationItem2 = forwardRef40(({ title: title3, isCurrent, ...rest }, ref) => {
9170
- const linkProps = {
9171
- ref,
9172
- isCurrent,
9173
- ...rest
9174
- };
9175
- return /* @__PURE__ */ jsx227(Link3, { ...linkProps, "aria-current": isCurrent ? "page" : void 0, children: title3 });
9136
+ var NavigationItem2 = forwardRef39(({ title: title3, isCurrent, ...rest }, ref) => {
9137
+ return /* @__PURE__ */ jsx226(
9138
+ Link3,
9139
+ {
9140
+ ...rest,
9141
+ ref,
9142
+ "aria-current": isCurrent ? "page" : void 0,
9143
+ $active: isCurrent != null ? isCurrent : false,
9144
+ children: title3
9145
+ }
9146
+ );
9176
9147
  });
9177
9148
 
9178
9149
  // src/components/InternalHeader/InternalHeader.tsx
9179
- import { jsx as jsx228, jsxs as jsxs52 } from "react/jsx-runtime";
9150
+ import { jsx as jsx227, jsxs as jsxs52 } from "react/jsx-runtime";
9180
9151
  var InternalHeader = (props) => {
9181
9152
  const {
9182
9153
  applicationDesc,
@@ -9208,10 +9179,10 @@ var InternalHeader = (props) => {
9208
9179
  const hasNavigationElements = !!navigationElements && navigationElements.length > 0;
9209
9180
  const hasContextMenuElements = !!contextMenuElements && contextMenuElements.length > 0;
9210
9181
  const hasNavInContextMenu = smallScreen && hasNavigationElements;
9211
- const navigation4 = hasNavigationElements && !smallScreen ? /* @__PURE__ */ jsx228(Navigation2, { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx228(NavigationList, { children: navigationElements.map((item, index) => {
9182
+ const navigation2 = hasNavigationElements && !smallScreen ? /* @__PURE__ */ jsx227("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx227(NavigationList, { children: navigationElements.map((item, index) => {
9212
9183
  const { href, ...rest2 } = item;
9213
9184
  const isCurrent = href === currentPage;
9214
- return /* @__PURE__ */ jsx228(InternalHeaderListItem, { children: /* @__PURE__ */ jsx228(
9185
+ return /* @__PURE__ */ jsx227(NavLi, { children: /* @__PURE__ */ jsx227(
9215
9186
  NavigationItem2,
9216
9187
  {
9217
9188
  href,
@@ -9222,45 +9193,51 @@ var InternalHeader = (props) => {
9222
9193
  ) }, index);
9223
9194
  }) }) }) : null;
9224
9195
  const hasContextMenu = hasContextMenuElements || !!userProps || hasNavInContextMenu;
9225
- return /* @__PURE__ */ jsxs52(OuterContainer, { ...getBaseHTMLProps(id, className, htmlProps, rest), children: [
9226
- /* @__PURE__ */ jsx228(BannerWrapper, { $hasContextMenu: hasContextMenu, children: /* @__PURE__ */ jsxs52(BannerLeftWrapper, { children: [
9227
- /* @__PURE__ */ jsx228(LovisaWrapper, { children: /* @__PURE__ */ jsx228(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationName }) }),
9228
- /* @__PURE__ */ jsx228(ApplicationNameWrapper, { children: /* @__PURE__ */ jsx228(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }) })
9229
- ] }) }),
9230
- navigation4,
9231
- hasContextMenu && /* @__PURE__ */ jsxs52(ContextMenuGroup, { children: [
9232
- /* @__PURE__ */ jsx228(
9233
- Button,
9234
- {
9235
- ref: buttonRef,
9236
- icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
9237
- appearance: "borderless",
9238
- purpose: "secondary",
9239
- onClick: handleContextMenuClick,
9240
- "aria-haspopup": "menu",
9241
- "aria-expanded": !contextMenuIsClosed ? true : void 0,
9242
- "aria-label": "\xE5pne meny"
9243
- }
9244
- ),
9245
- /* @__PURE__ */ jsx228(
9246
- StyledOverflowMenu,
9247
- {
9248
- isOpen: !contextMenuIsClosed,
9249
- onClose: onOveflowMenuClose,
9250
- anchorRef: buttonRef,
9251
- navItems: hasNavInContextMenu ? navigationElements : void 0,
9252
- items: hasContextMenuElements ? contextMenuElements : void 0,
9253
- userProps
9254
- }
9255
- )
9256
- ] })
9257
- ] });
9196
+ return /* @__PURE__ */ jsxs52(
9197
+ Bar2,
9198
+ {
9199
+ ...getBaseHTMLProps(id, className, htmlProps, rest),
9200
+ $hasNavigation: !!navigation2,
9201
+ children: [
9202
+ /* @__PURE__ */ jsx227(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationName }),
9203
+ /* @__PURE__ */ jsx227(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
9204
+ /* @__PURE__ */ jsx227(BarSeparator, {}),
9205
+ navigation2,
9206
+ hasContextMenu && /* @__PURE__ */ jsxs52(ContextMenuGroup, { children: [
9207
+ /* @__PURE__ */ jsx227(
9208
+ Button,
9209
+ {
9210
+ ref: buttonRef,
9211
+ icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
9212
+ appearance: "borderless",
9213
+ purpose: "secondary",
9214
+ onClick: handleContextMenuClick,
9215
+ "aria-haspopup": "menu",
9216
+ "aria-expanded": !contextMenuIsClosed ? true : void 0,
9217
+ "aria-label": "\xE5pne meny"
9218
+ }
9219
+ ),
9220
+ /* @__PURE__ */ jsx227(
9221
+ StyledOverflowMenu,
9222
+ {
9223
+ isOpen: !contextMenuIsClosed,
9224
+ onClose: onOveflowMenuClose,
9225
+ anchorRef: buttonRef,
9226
+ navItems: hasNavInContextMenu ? navigationElements : void 0,
9227
+ items: hasContextMenuElements ? contextMenuElements : void 0,
9228
+ userProps
9229
+ }
9230
+ )
9231
+ ] })
9232
+ ]
9233
+ }
9234
+ );
9258
9235
  };
9259
9236
  InternalHeader.displayName = "InternalHeader";
9260
9237
 
9261
9238
  // src/components/List/List.tsx
9262
- import { forwardRef as forwardRef41 } from "react";
9263
- import styled62, { css as css26 } from "styled-components";
9239
+ import { forwardRef as forwardRef40 } from "react";
9240
+ import styled61, { css as css25 } from "styled-components";
9264
9241
 
9265
9242
  // src/components/List/bullets/jordskifterett_bullet1.svg
9266
9243
  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';
@@ -9273,10 +9250,10 @@ var tingrett_bullet3_default = 'data:image/svg+xml,<svg width="14" height="14" v
9273
9250
 
9274
9251
  // src/components/List/List.tokens.tsx
9275
9252
  import {
9276
- ddsBaseTokens as ddsBaseTokens43,
9253
+ ddsBaseTokens as ddsBaseTokens44,
9277
9254
  ddsReferenceTokens as ddsReferenceTokens5
9278
9255
  } from "@norges-domstoler/dds-design-tokens";
9279
- var { spacing: spacing25 } = ddsBaseTokens43;
9256
+ var { spacing: spacing25 } = ddsBaseTokens44;
9280
9257
  var { textDefault: textDefault4 } = ddsReferenceTokens5;
9281
9258
  var ulLiPaddingLeft = `1em + ${spacing25.SizesDdsSpacingX025}`;
9282
9259
  var ulPaddingLeft = `${spacing25.SizesDdsSpacingX2} - (${ulLiPaddingLeft})`;
@@ -9309,9 +9286,9 @@ var listTokens = {
9309
9286
  };
9310
9287
 
9311
9288
  // src/components/List/List.tsx
9312
- import { jsx as jsx229 } from "react/jsx-runtime";
9289
+ import { jsx as jsx228 } from "react/jsx-runtime";
9313
9290
  var { list: list6, listItem: listItem4, bullet: bullet2 } = listTokens;
9314
- var StyledList = styled62.ul`
9291
+ var StyledList = styled61.ul`
9315
9292
  margin: ${list6.base.margin};
9316
9293
  color: ${list6.base.color};
9317
9294
  ul,
@@ -9322,13 +9299,13 @@ var StyledList = styled62.ul`
9322
9299
  ${selection}
9323
9300
  }
9324
9301
 
9325
- ${({ $typographyType }) => $typographyType === "inherit" ? css26`
9302
+ ${({ $typographyType }) => $typographyType === "inherit" ? css25`
9326
9303
  font: inherit;
9327
- ` : css26`
9304
+ ` : css25`
9328
9305
  ${getFontStyling($typographyType)}
9329
9306
  `}
9330
9307
 
9331
- ${({ $listType }) => $listType === "unordered" ? css26`
9308
+ ${({ $listType }) => $listType === "unordered" ? css25`
9332
9309
  padding-left: ${list6.ul.paddingLeft};
9333
9310
  list-style: none;
9334
9311
  li {
@@ -9353,7 +9330,7 @@ var StyledList = styled62.ul`
9353
9330
  background-image: ${`url('${tingrett_bullet3_default}')`};
9354
9331
  }
9355
9332
  }
9356
- ` : css26`
9333
+ ` : css25`
9357
9334
  padding-left: ${list6.ol.paddingLeft};
9358
9335
  & > li > ol {
9359
9336
  list-style-type: lower-alpha;
@@ -9363,7 +9340,7 @@ var StyledList = styled62.ul`
9363
9340
  }
9364
9341
  `}
9365
9342
  `;
9366
- var List2 = forwardRef41(
9343
+ var List2 = forwardRef40(
9367
9344
  (props, ref) => {
9368
9345
  const {
9369
9346
  listType = "unordered",
@@ -9375,7 +9352,7 @@ var List2 = forwardRef41(
9375
9352
  ...rest
9376
9353
  } = props;
9377
9354
  const as = listType === "ordered" ? "ol" : "ul";
9378
- return /* @__PURE__ */ jsx229(
9355
+ return /* @__PURE__ */ jsx228(
9379
9356
  StyledList,
9380
9357
  {
9381
9358
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9391,26 +9368,26 @@ var List2 = forwardRef41(
9391
9368
  List2.displayName = "List";
9392
9369
 
9393
9370
  // src/components/List/ListItem.tsx
9394
- import { forwardRef as forwardRef42 } from "react";
9395
- import styled63 from "styled-components";
9396
- import { jsx as jsx230 } from "react/jsx-runtime";
9397
- var StyledListItem = styled63.li`
9371
+ import { forwardRef as forwardRef41 } from "react";
9372
+ import styled62 from "styled-components";
9373
+ import { jsx as jsx229 } from "react/jsx-runtime";
9374
+ var StyledListItem = styled62.li`
9398
9375
  line-height: ${listTokens.listItem.lineHeight};
9399
9376
  `;
9400
- var ListItem2 = forwardRef42(
9377
+ var ListItem2 = forwardRef41(
9401
9378
  ({ children, ...rest }, ref) => {
9402
- return /* @__PURE__ */ jsx230(StyledListItem, { ref, ...rest, children });
9379
+ return /* @__PURE__ */ jsx229(StyledListItem, { ref, ...rest, children });
9403
9380
  }
9404
9381
  );
9405
9382
  ListItem2.displayName = "ListItem";
9406
9383
 
9407
9384
  // src/components/LocalMessage/LocalMessage.tsx
9408
- import { forwardRef as forwardRef43, useState as useState19 } from "react";
9409
- import styled64, { css as css27 } from "styled-components";
9385
+ import { forwardRef as forwardRef42, useState as useState19 } from "react";
9386
+ import styled63, { css as css26 } from "styled-components";
9410
9387
 
9411
9388
  // src/components/LocalMessage/LocalMessage.tokens.tsx
9412
- import { ddsBaseTokens as ddsBaseTokens44 } from "@norges-domstoler/dds-design-tokens";
9413
- var { colors: colors24, spacing: spacing26, borderRadius: borderRadius6, border: border11, outerShadow: outerShadow3 } = ddsBaseTokens44;
9389
+ import { ddsBaseTokens as ddsBaseTokens45 } from "@norges-domstoler/dds-design-tokens";
9390
+ var { colors: colors24, spacing: spacing26, borderRadius: borderRadius6, border: border11, outerShadow: outerShadow3 } = ddsBaseTokens45;
9414
9391
  var container9 = {
9415
9392
  base: {
9416
9393
  boxShadow: outerShadow3.DdsShadow1Onlight,
@@ -9500,10 +9477,10 @@ var localMessageTokens = {
9500
9477
  };
9501
9478
 
9502
9479
  // src/components/LocalMessage/LocalMessage.tsx
9503
- import { Fragment as Fragment7, jsx as jsx231, jsxs as jsxs53 } from "react/jsx-runtime";
9480
+ import { Fragment as Fragment7, jsx as jsx230, jsxs as jsxs53 } from "react/jsx-runtime";
9504
9481
  var defaultWidth4 = "400px";
9505
9482
  var { container: container10, icon: icon7, purposeVariants: purposeVariants3 } = localMessageTokens;
9506
- var Container8 = styled64.div.withConfig({
9483
+ var Container8 = styled63.div.withConfig({
9507
9484
  shouldForwardProp: (prop) => {
9508
9485
  const styleOnlyProps = [
9509
9486
  "layout",
@@ -9529,7 +9506,7 @@ var Container8 = styled64.div.withConfig({
9529
9506
  *::selection {
9530
9507
  ${selection}
9531
9508
  }
9532
- ${({ purpose }) => purpose && css27`
9509
+ ${({ purpose }) => purpose && css26`
9533
9510
  border-color: ${container10.purpose[purpose].borderColor};
9534
9511
  background-color: ${container10.purpose[purpose].backgroundColor};
9535
9512
  `}
@@ -9554,17 +9531,17 @@ function getGridTemplateColumns(layout, closable) {
9554
9531
  }
9555
9532
  return layout === "horisontal" ? "min-content 1fr" : "1fr";
9556
9533
  }
9557
- var MessageIconWrapper2 = styled64(Icon)`
9534
+ var MessageIconWrapper2 = styled63(Icon)`
9558
9535
  grid-area: icon;
9559
9536
  `;
9560
- var TextContainer2 = styled64.div`
9537
+ var TextContainer2 = styled63.div`
9561
9538
  grid-area: text;
9562
9539
  `;
9563
- var CloseButton = styled64(Button)`
9540
+ var CloseButton = styled63(Button)`
9564
9541
  grid-area: closeButton;
9565
9542
  margin: -${container10.base.padding} 0;
9566
9543
  `;
9567
- var LocalMessage = forwardRef43(
9544
+ var LocalMessage = forwardRef42(
9568
9545
  (props, ref) => {
9569
9546
  const {
9570
9547
  message: message2,
@@ -9589,18 +9566,18 @@ var LocalMessage = forwardRef43(
9589
9566
  ref
9590
9567
  };
9591
9568
  if (isClosed) {
9592
- return /* @__PURE__ */ jsx231(Fragment7, {});
9569
+ return /* @__PURE__ */ jsx230(Fragment7, {});
9593
9570
  }
9594
9571
  return /* @__PURE__ */ jsxs53(Container8, { ...containerProps, children: [
9595
- /* @__PURE__ */ jsx231(
9572
+ /* @__PURE__ */ jsx230(
9596
9573
  MessageIconWrapper2,
9597
9574
  {
9598
9575
  icon: purposeVariants3[purpose].icon,
9599
9576
  color: icon7[purpose].color
9600
9577
  }
9601
9578
  ),
9602
- /* @__PURE__ */ jsx231(TextContainer2, { children: children != null ? children : /* @__PURE__ */ jsx231(Typography, { as: "span", children: message2 }) }),
9603
- closable && /* @__PURE__ */ jsx231(
9579
+ /* @__PURE__ */ jsx230(TextContainer2, { children: children != null ? children : /* @__PURE__ */ jsx230(Typography, { as: "span", children: message2 }) }),
9580
+ closable && /* @__PURE__ */ jsx230(
9604
9581
  CloseButton,
9605
9582
  {
9606
9583
  icon: CloseIcon,
@@ -9621,17 +9598,17 @@ LocalMessage.displayName = "LocalMessage";
9621
9598
 
9622
9599
  // src/components/Modal/Modal.tsx
9623
9600
  import {
9624
- forwardRef as forwardRef44,
9601
+ forwardRef as forwardRef43,
9625
9602
  useEffect as useEffect22,
9626
9603
  useId as useId13
9627
9604
  } from "react";
9628
9605
  import { createPortal as createPortal2 } from "react-dom";
9629
- import styled66 from "styled-components";
9606
+ import styled65 from "styled-components";
9630
9607
 
9631
9608
  // src/components/Modal/Backdrop/Backdrop.tsx
9632
- import { ddsBaseTokens as ddsBaseTokens45 } from "@norges-domstoler/dds-design-tokens";
9633
- import styled65 from "styled-components";
9634
- var Backdrop = styled65.div.withConfig({
9609
+ import { ddsBaseTokens as ddsBaseTokens46 } from "@norges-domstoler/dds-design-tokens";
9610
+ import styled64 from "styled-components";
9611
+ var Backdrop = styled64.div.withConfig({
9635
9612
  shouldForwardProp: (prop) => prop !== "isOpen"
9636
9613
  })`
9637
9614
  position: fixed;
@@ -9639,7 +9616,7 @@ var Backdrop = styled65.div.withConfig({
9639
9616
  align-items: center;
9640
9617
  justify-content: center;
9641
9618
  background-color: ${changeRGBAAlpha(
9642
- ddsBaseTokens45.colors.DdsColorNeutralsGray9,
9619
+ ddsBaseTokens46.colors.DdsColorNeutralsGray9,
9643
9620
  0.5
9644
9621
  )};
9645
9622
  overflow-y: auto;
@@ -9676,8 +9653,8 @@ function handleElementWithBackdropUnmount(container16) {
9676
9653
  }
9677
9654
 
9678
9655
  // src/components/Modal/Modal.tokens.tsx
9679
- import { ddsBaseTokens as ddsBaseTokens46 } from "@norges-domstoler/dds-design-tokens";
9680
- var { spacing: spacing27 } = ddsBaseTokens46;
9656
+ import { ddsBaseTokens as ddsBaseTokens47 } from "@norges-domstoler/dds-design-tokens";
9657
+ var { spacing: spacing27 } = ddsBaseTokens47;
9681
9658
  var container11 = {
9682
9659
  padding: `${spacing27.SizesDdsSpacingX1} ${spacing27.SizesDdsSpacingX1} ${spacing27.SizesDdsSpacingX15} ${spacing27.SizesDdsSpacingX15}`
9683
9660
  };
@@ -9695,9 +9672,9 @@ var modalTokens = {
9695
9672
  };
9696
9673
 
9697
9674
  // src/components/Modal/Modal.tsx
9698
- import { jsx as jsx232, jsxs as jsxs54 } from "react/jsx-runtime";
9675
+ import { jsx as jsx231, jsxs as jsxs54 } from "react/jsx-runtime";
9699
9676
  var { container: container12, contentContainer: contentContainer6 } = modalTokens;
9700
- var Container9 = styled66(Paper)`
9677
+ var Container9 = styled65(Paper)`
9701
9678
  display: flex;
9702
9679
  flex-direction: column-reverse;
9703
9680
  min-width: 200px;
@@ -9711,16 +9688,16 @@ var Container9 = styled66(Paper)`
9711
9688
  ${focusVisible}
9712
9689
  }
9713
9690
  `;
9714
- var ContentContainer3 = styled66.div`
9691
+ var ContentContainer3 = styled65.div`
9715
9692
  display: grid;
9716
9693
  padding-right: ${contentContainer6.paddingRight};
9717
9694
  gap: ${contentContainer6.gap};
9718
9695
  `;
9719
- var HeaderContainer3 = styled66.div``;
9720
- var StyledButton3 = styled66(Button)`
9696
+ var HeaderContainer3 = styled65.div``;
9697
+ var StyledButton3 = styled65(Button)`
9721
9698
  align-self: flex-end;
9722
9699
  `;
9723
- var Modal = forwardRef44((props, ref) => {
9700
+ var Modal = forwardRef43((props, ref) => {
9724
9701
  const {
9725
9702
  isOpen = false,
9726
9703
  parentElement = document.body,
@@ -9758,7 +9735,7 @@ var Modal = forwardRef44((props, ref) => {
9758
9735
  useOnKeyDown(["Escape", "Esc"], () => handleClose());
9759
9736
  const hasTransitionedIn = useMountTransition(isOpen, 200);
9760
9737
  return isOpen || hasTransitionedIn ? createPortal2(
9761
- /* @__PURE__ */ jsx232(Backdrop, { isOpen: hasTransitionedIn && isOpen, children: /* @__PURE__ */ jsxs54(
9738
+ /* @__PURE__ */ jsx231(Backdrop, { isOpen: hasTransitionedIn && isOpen, children: /* @__PURE__ */ jsxs54(
9762
9739
  Container9,
9763
9740
  {
9764
9741
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -9772,10 +9749,10 @@ var Modal = forwardRef44((props, ref) => {
9772
9749
  elevation: 4,
9773
9750
  children: [
9774
9751
  /* @__PURE__ */ jsxs54(ContentContainer3, { children: [
9775
- header3 && /* @__PURE__ */ jsx232(HeaderContainer3, { id: headerId, children: typeof header3 === "string" ? /* @__PURE__ */ jsx232(Typography, { typographyType: "headingSans03", children: header3 }) : header3 }),
9752
+ header3 && /* @__PURE__ */ jsx231(HeaderContainer3, { id: headerId, children: typeof header3 === "string" ? /* @__PURE__ */ jsx231(Typography, { typographyType: "headingSans03", children: header3 }) : header3 }),
9776
9753
  children
9777
9754
  ] }),
9778
- onClose && /* @__PURE__ */ jsx232(
9755
+ onClose && /* @__PURE__ */ jsx231(
9779
9756
  StyledButton3,
9780
9757
  {
9781
9758
  size: "small",
@@ -9795,63 +9772,63 @@ var Modal = forwardRef44((props, ref) => {
9795
9772
  Modal.displayName = "Modal";
9796
9773
 
9797
9774
  // src/components/Modal/ModalBody.tsx
9798
- import { forwardRef as forwardRef45 } from "react";
9799
- import styled67 from "styled-components";
9800
- import { jsx as jsx233 } from "react/jsx-runtime";
9801
- var Container10 = styled67.div``;
9802
- var ModalBody = forwardRef45(
9775
+ import { forwardRef as forwardRef44 } from "react";
9776
+ import styled66 from "styled-components";
9777
+ import { jsx as jsx232 } from "react/jsx-runtime";
9778
+ var Container10 = styled66.div``;
9779
+ var ModalBody = forwardRef44(
9803
9780
  (props, ref) => {
9804
9781
  const { children, scrollable, id, className, htmlProps, height, ...rest } = props;
9805
9782
  const containerProps = {
9806
9783
  ...getBaseHTMLProps(id, className, htmlProps, rest),
9807
9784
  ref
9808
9785
  };
9809
- return scrollable ? /* @__PURE__ */ jsx233(Container10, { ...containerProps, children: /* @__PURE__ */ jsx233(ScrollableContainer, { contentHeight: height, children }) }) : /* @__PURE__ */ jsx233(Container10, { ...containerProps, children });
9786
+ return scrollable ? /* @__PURE__ */ jsx232(Container10, { ...containerProps, children: /* @__PURE__ */ jsx232(ScrollableContainer, { contentHeight: height, children }) }) : /* @__PURE__ */ jsx232(Container10, { ...containerProps, children });
9810
9787
  }
9811
9788
  );
9812
9789
  ModalBody.displayName = "ModalBody";
9813
9790
 
9814
9791
  // src/components/Modal/ModalActions.tsx
9815
- import { forwardRef as forwardRef46 } from "react";
9816
- import styled68 from "styled-components";
9817
- import { jsx as jsx234 } from "react/jsx-runtime";
9818
- var Container11 = styled68.div`
9792
+ import { forwardRef as forwardRef45 } from "react";
9793
+ import styled67 from "styled-components";
9794
+ import { jsx as jsx233 } from "react/jsx-runtime";
9795
+ var Container11 = styled67.div`
9819
9796
  display: flex;
9820
9797
  flex-wrap: wrap;
9821
9798
  gap: ${modalTokens.actionsContainer.gap};
9822
9799
  `;
9823
- var ModalActions = forwardRef46(
9800
+ var ModalActions = forwardRef45(
9824
9801
  ({ children, ...rest }, ref) => {
9825
9802
  const containerProps = {
9826
9803
  ref,
9827
9804
  ...rest
9828
9805
  };
9829
- return /* @__PURE__ */ jsx234(Container11, { ...containerProps, children });
9806
+ return /* @__PURE__ */ jsx233(Container11, { ...containerProps, children });
9830
9807
  }
9831
9808
  );
9832
9809
  ModalActions.displayName = "ModalActions";
9833
9810
 
9834
9811
  // src/components/Pagination/Pagination.tsx
9835
- import { forwardRef as forwardRef48, useState as useState20 } from "react";
9836
- import styled70, { css as css29 } from "styled-components";
9812
+ import { forwardRef as forwardRef47, useState as useState20 } from "react";
9813
+ import styled69, { css as css28 } from "styled-components";
9837
9814
 
9838
9815
  // src/components/Pagination/Pagination.tokens.tsx
9839
- import { ddsBaseTokens as ddsBaseTokens47 } from "@norges-domstoler/dds-design-tokens";
9840
- var { spacing: spacing28, colors: colors25 } = ddsBaseTokens47;
9816
+ import { ddsBaseTokens as ddsBaseTokens48 } from "@norges-domstoler/dds-design-tokens";
9817
+ var { spacing: spacing28, colors: colors25 } = ddsBaseTokens48;
9841
9818
  var list7 = {
9842
9819
  gap: spacing28.SizesDdsSpacingX075
9843
9820
  };
9844
9821
  var truncationIcon = {
9845
9822
  color: colors25.DdsColorNeutralsGray7
9846
9823
  };
9847
- var outerContainer5 = {
9824
+ var outerContainer3 = {
9848
9825
  gap: spacing28.SizesDdsSpacingX075
9849
9826
  };
9850
9827
  var indicatorsContainer = {
9851
9828
  gap: spacing28.SizesDdsSpacingX075
9852
9829
  };
9853
9830
  var paginationTokens = {
9854
- outerContainer: outerContainer5,
9831
+ outerContainer: outerContainer3,
9855
9832
  indicatorsContainer,
9856
9833
  truncationIcon,
9857
9834
  list: list7
@@ -9891,20 +9868,20 @@ function PaginationGenerator(pagesAmount, activePage) {
9891
9868
  }
9892
9869
 
9893
9870
  // src/components/Select/Select.tsx
9894
- import { forwardRef as forwardRef47, useId as useId14 } from "react";
9871
+ import { forwardRef as forwardRef46, useId as useId14 } from "react";
9895
9872
  import {
9896
9873
  default as ReactSelect
9897
9874
  } from "react-select";
9898
9875
 
9899
9876
  // src/components/Select/Select.styles.ts
9900
- import styled69, { css as css28 } from "styled-components";
9877
+ import styled68, { css as css27 } from "styled-components";
9901
9878
 
9902
9879
  // src/components/Select/Select.tokens.tsx
9903
9880
  import {
9904
- ddsBaseTokens as ddsBaseTokens48,
9881
+ ddsBaseTokens as ddsBaseTokens49,
9905
9882
  ddsReferenceTokens as ddsReferenceTokens6
9906
9883
  } from "@norges-domstoler/dds-design-tokens";
9907
- var { colors: colors26, spacing: spacing29, borderRadius: borderRadius7, border: border12 } = ddsBaseTokens48;
9884
+ var { colors: colors26, spacing: spacing29, borderRadius: borderRadius7, border: border12 } = ddsBaseTokens49;
9908
9885
  var { textDefault: textDefault5 } = ddsReferenceTokens6;
9909
9886
  var placeholderTypographyTypes = {
9910
9887
  medium: "supportingStylePlaceholderText01",
@@ -9916,7 +9893,7 @@ var multiValueLabelTypographyTypes = {
9916
9893
  small: "bodySans01",
9917
9894
  tiny: "supportingStyleTiny01"
9918
9895
  };
9919
- var typographyTypes4 = {
9896
+ var typographyTypes3 = {
9920
9897
  control: inputTypographyTypes,
9921
9898
  option: inputTypographyTypes,
9922
9899
  placeholder: placeholderTypographyTypes,
@@ -10000,6 +9977,7 @@ var groupHeading = {
10000
9977
  };
10001
9978
  var option = {
10002
9979
  base: {
9980
+ color: textDefault5.textColor,
10003
9981
  gap: spacing29.SizesDdsSpacingX05,
10004
9982
  padding: `${spacing29.SizesDdsSpacingX075}`,
10005
9983
  backgroundColor: colors26.DdsColorNeutralsWhite
@@ -10013,6 +9991,7 @@ var option = {
10013
9991
  backgroundColor: colors26.DdsColorInteractiveLightest
10014
9992
  },
10015
9993
  selected: {
9994
+ color: textDefault5.textColor,
10016
9995
  backgroundColor: colors26.DdsColorNeutralsWhite
10017
9996
  }
10018
9997
  };
@@ -10087,7 +10066,7 @@ var prefix = "dds-select";
10087
10066
  function getContainerControlPadding(componentSize, isMulti) {
10088
10067
  return isMulti ? control2.isMulti.sizes[componentSize].padding : control2.sizes[componentSize].padding;
10089
10068
  }
10090
- var Container12 = styled69.div`
10069
+ var Container12 = styled68.div`
10091
10070
  margin: 0;
10092
10071
  width: ${({ $width }) => $width};
10093
10072
  position: relative;
@@ -10096,23 +10075,23 @@ var Container12 = styled69.div`
10096
10075
  ${selection}
10097
10076
  }
10098
10077
 
10099
- ${({ $componentSize, $isMulti }) => css28`
10078
+ ${({ $componentSize, $isMulti }) => css27`
10100
10079
  .${prefix}__control {
10101
10080
  padding: ${getContainerControlPadding($componentSize, $isMulti)};
10102
- ${getFontStyling(typographyTypes4.control[$componentSize], true)}
10081
+ ${getFontStyling(typographyTypes3.control[$componentSize], true)}
10103
10082
  }
10104
10083
  .${prefix}__option {
10105
- ${getFontStyling(typographyTypes4.option[$componentSize], true)}
10084
+ ${getFontStyling(typographyTypes3.option[$componentSize], true)}
10106
10085
  }
10107
10086
  .${prefix}__placeholder {
10108
- ${getFontStyling(typographyTypes4.placeholder[$componentSize])}
10087
+ ${getFontStyling(typographyTypes3.placeholder[$componentSize])}
10109
10088
  }
10110
10089
  .${prefix}__menu-notice--no-options {
10111
- ${getFontStyling(typographyTypes4.noOptionsMessage[$componentSize])}
10090
+ ${getFontStyling(typographyTypes3.noOptionsMessage[$componentSize])}
10112
10091
  }
10113
10092
  `}
10114
10093
 
10115
- ${({ $errorMessage }) => $errorMessage && css28`
10094
+ ${({ $errorMessage }) => $errorMessage && css27`
10116
10095
  .${prefix}__control {
10117
10096
  ${dangerInputfield}
10118
10097
  }
@@ -10131,7 +10110,7 @@ var Container12 = styled69.div`
10131
10110
  color: ${dropdownIndicator2.hover.color};
10132
10111
  }
10133
10112
 
10134
- ${({ $isDisabled, $readOnly }) => $readOnly ? css28`
10113
+ ${({ $isDisabled, $readOnly }) => $readOnly ? css27`
10135
10114
  .${prefix}__control {
10136
10115
  border-color: ${control2.readOnly.borderColor};
10137
10116
  background-color: ${control2.readOnly.backgroundColor};
@@ -10141,7 +10120,7 @@ var Container12 = styled69.div`
10141
10120
  .${prefix}__dropdown-indicator {
10142
10121
  color: ${dropdownIndicator2.readOnly.color};
10143
10122
  }
10144
- ` : $isDisabled ? css28`
10123
+ ` : $isDisabled ? css27`
10145
10124
  cursor: not-allowed;
10146
10125
  .${prefix}__control {
10147
10126
  border-color: ${control2.disabled.borderColor};
@@ -10152,14 +10131,14 @@ var Container12 = styled69.div`
10152
10131
  }
10153
10132
  ` : ""}
10154
10133
  `;
10155
- var InnerSingleValue = styled69.div`
10134
+ var InnerSingleValue = styled68.div`
10156
10135
  overflow: hidden;
10157
10136
  text-overflow: ellipsis;
10158
10137
  white-space: nowrap;
10159
10138
  box-sizing: border-box;
10160
10139
  max-width: 100%;
10161
10140
  `;
10162
- var StyledIcon4 = styled69(Icon)`
10141
+ var StyledIcon4 = styled68(Icon)`
10163
10142
  margin-right: ${icon9.marginRight};
10164
10143
  `;
10165
10144
  var getCustomStyles = (size2) => ({
@@ -10222,7 +10201,7 @@ var getCustomStyles = (size2) => ({
10222
10201
  multiValueLabel: (provided) => ({
10223
10202
  ...provided,
10224
10203
  padding: multiValueLabel2.padding,
10225
- ...getFontStyling(typographyTypes4.multiValueLabel[size2]),
10204
+ ...getFontStyling(typographyTypes3.multiValueLabel[size2]),
10226
10205
  color: multiValueLabel2.color
10227
10206
  }),
10228
10207
  multiValueRemove: (provided, state) => state.selectProps.isDisabled ? {
@@ -10256,11 +10235,15 @@ var getCustomStyles = (size2) => ({
10256
10235
  marginTop: menu2.marginTop,
10257
10236
  marginBottom: menu2.marginBottom
10258
10237
  }),
10238
+ menuPortal: (provided) => ({
10239
+ ...provided,
10240
+ zIndex: 99999
10241
+ }),
10259
10242
  group: () => ({
10260
10243
  boxSizing: "border-box"
10261
10244
  }),
10262
10245
  groupHeading: () => ({
10263
- ...getFontStyling(typographyTypes4.groupHeading),
10246
+ ...getFontStyling(typographyTypes3.groupHeading),
10264
10247
  color: groupHeading2.color,
10265
10248
  padding: groupHeading2.padding
10266
10249
  }),
@@ -10279,6 +10262,7 @@ var getCustomStyles = (size2) => ({
10279
10262
  alignItems: "center",
10280
10263
  gap: option2.base.gap,
10281
10264
  padding: option2.base.padding,
10265
+ color: option2.base.color,
10282
10266
  backgroundColor: option2.base.backgroundColor,
10283
10267
  "@media (prefers-reduced-motion: no-preference)": {
10284
10268
  transition: "color 0.2s, background-color 0.2s"
@@ -10288,6 +10272,7 @@ var getCustomStyles = (size2) => ({
10288
10272
  backgroundColor: option2.hover.backgroundColor
10289
10273
  },
10290
10274
  ...state.isSelected && {
10275
+ color: option2.selected.color,
10291
10276
  backgroundColor: option2.selected.backgroundColor
10292
10277
  },
10293
10278
  ...state.isFocused && {
@@ -10320,7 +10305,7 @@ var getCustomStyles = (size2) => ({
10320
10305
  import {
10321
10306
  components
10322
10307
  } from "react-select";
10323
- import { jsx as jsx235, jsxs as jsxs55 } from "react/jsx-runtime";
10308
+ import { jsx as jsx234, jsxs as jsxs55 } from "react/jsx-runtime";
10324
10309
  var {
10325
10310
  Option,
10326
10311
  NoOptionsMessage,
@@ -10332,16 +10317,16 @@ var {
10332
10317
  Control
10333
10318
  } = components;
10334
10319
  var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs55(Option, { ...props, children: [
10335
- props.isSelected && /* @__PURE__ */ jsx235(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
10320
+ props.isSelected && /* @__PURE__ */ jsx234(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
10336
10321
  props.children
10337
10322
  ] });
10338
- var CustomOption = (props, Element) => /* @__PURE__ */ jsx235(Option, { ...props, children: /* @__PURE__ */ jsx235(Element, { ...props }) });
10339
- var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ jsx235(SingleValue, { ...props, children: /* @__PURE__ */ jsx235(InnerSingleValue, { id, children: Element ? /* @__PURE__ */ jsx235(Element, { ...props }) : props.children }) });
10340
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx235(NoOptionsMessage, { ...props, children: "Ingen treff" });
10341
- var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx235(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx235(Icon, { icon: CloseSmallIcon, iconSize: getFormInputIconSize(size2) }) });
10342
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx235(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx235(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
10343
- var DDSDropdownIndicator = (props, size2) => /* @__PURE__ */ jsx235(DropdownIndicator, { ...props, children: /* @__PURE__ */ jsx235(Icon, { icon: ChevronDownIcon, iconSize: getFormInputIconSize(size2) }) });
10344
- var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx235(
10323
+ var CustomOption = (props, Element) => /* @__PURE__ */ jsx234(Option, { ...props, children: /* @__PURE__ */ jsx234(Element, { ...props }) });
10324
+ var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ jsx234(SingleValue, { ...props, children: /* @__PURE__ */ jsx234(InnerSingleValue, { id, children: Element ? /* @__PURE__ */ jsx234(Element, { ...props }) : props.children }) });
10325
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx234(NoOptionsMessage, { ...props, children: "Ingen treff" });
10326
+ var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx234(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx234(Icon, { icon: CloseSmallIcon, iconSize: getFormInputIconSize(size2) }) });
10327
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx234(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx234(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
10328
+ var DDSDropdownIndicator = (props, size2) => /* @__PURE__ */ jsx234(DropdownIndicator, { ...props, children: /* @__PURE__ */ jsx234(Icon, { icon: ChevronDownIcon, iconSize: getFormInputIconSize(size2) }) });
10329
+ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx234(
10345
10330
  Input2,
10346
10331
  {
10347
10332
  ...props,
@@ -10350,12 +10335,12 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx235(
10350
10335
  }
10351
10336
  );
10352
10337
  var DDSControl = (props, componentSize, icon12) => /* @__PURE__ */ jsxs55(Control, { ...props, children: [
10353
- icon12 && /* @__PURE__ */ jsx235(StyledIcon4, { icon: icon12, iconSize: getFormInputIconSize(componentSize) }),
10338
+ icon12 && /* @__PURE__ */ jsx234(StyledIcon4, { icon: icon12, iconSize: getFormInputIconSize(componentSize) }),
10354
10339
  props.children
10355
10340
  ] });
10356
10341
 
10357
10342
  // src/components/Select/Select.tsx
10358
- import { jsx as jsx236, jsxs as jsxs56 } from "react/jsx-runtime";
10343
+ import { jsx as jsx235, jsxs as jsxs56 } from "react/jsx-runtime";
10359
10344
  var defaultWidth5 = "320px";
10360
10345
  var getPlaceholder = (placeholder3, isMulti) => placeholder3 ? placeholder3 : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
10361
10346
  function SelectInner(props, ref) {
@@ -10443,56 +10428,56 @@ function SelectInner(props, ref) {
10443
10428
  ...rest
10444
10429
  };
10445
10430
  return /* @__PURE__ */ jsxs56(Container12, { ...containerProps, children: [
10446
- hasLabel && /* @__PURE__ */ jsx236(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
10447
- /* @__PURE__ */ jsx236(ReactSelect, { ...reactSelectProps, ref }),
10431
+ hasLabel && /* @__PURE__ */ jsx235(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
10432
+ /* @__PURE__ */ jsx235(ReactSelect, { ...reactSelectProps, ref }),
10448
10433
  renderInputMessage(tip, tipId, errorMessage, errorMessageId)
10449
10434
  ] });
10450
10435
  }
10451
- var Select = forwardRef47(SelectInner);
10436
+ var Select = forwardRef46(SelectInner);
10452
10437
  Select.displayName = "Select";
10453
10438
 
10454
10439
  // src/components/Select/utils.ts
10455
10440
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
10456
10441
 
10457
10442
  // src/components/Pagination/Pagination.tsx
10458
- import { jsx as jsx237, jsxs as jsxs57 } from "react/jsx-runtime";
10459
- var { outerContainer: outerContainer6, indicatorsContainer: indicatorsContainer2, truncationIcon: truncationIcon2, list: list8 } = paginationTokens;
10460
- var Nav2 = styled70.nav`
10443
+ import { jsx as jsx236, jsxs as jsxs57 } from "react/jsx-runtime";
10444
+ var { outerContainer: outerContainer4, indicatorsContainer: indicatorsContainer2, truncationIcon: truncationIcon2, list: list8 } = paginationTokens;
10445
+ var Nav2 = styled69.nav`
10461
10446
  display: flex;
10462
10447
  align-items: center;
10463
10448
  `;
10464
- var List3 = styled70.ol`
10449
+ var List3 = styled69.ol`
10465
10450
  display: grid;
10466
10451
  grid-auto-flow: column;
10467
10452
  gap: ${list8.gap};
10468
10453
  margin: 0;
10469
10454
  padding: 0;
10470
10455
  `;
10471
- var ListItem3 = styled70.li`
10456
+ var ListItem3 = styled69.li`
10472
10457
  display: inline-grid;
10473
10458
  align-content: center;
10474
- ${({ $isHidden }) => $isHidden && css29`
10459
+ ${({ $isHidden }) => $isHidden && css28`
10475
10460
  visibility: hidden;
10476
10461
  `}
10477
10462
  `;
10478
- var OuterContainer2 = styled70.div`
10463
+ var OuterContainer = styled69.div`
10479
10464
  display: flex;
10480
- gap: ${outerContainer6.gap};
10481
- ${({ $smallScreen }) => $smallScreen ? css29`
10465
+ gap: ${outerContainer4.gap};
10466
+ ${({ $smallScreen }) => $smallScreen ? css28`
10482
10467
  flex-direction: column;
10483
10468
  align-items: center;
10484
- ` : css29`
10469
+ ` : css28`
10485
10470
  justify-content: space-between;
10486
10471
  flex-wrap: wrap;
10487
10472
  `}
10488
10473
  `;
10489
- var IndicatorsContainer = styled70.div`
10474
+ var IndicatorsContainer = styled69.div`
10490
10475
  display: grid;
10491
10476
  grid-auto-flow: column;
10492
10477
  align-items: center;
10493
10478
  gap: ${indicatorsContainer2.gap};
10494
10479
  `;
10495
- var Pagination = forwardRef48(
10480
+ var Pagination = forwardRef47(
10496
10481
  (props, ref) => {
10497
10482
  const {
10498
10483
  itemsAmount,
@@ -10535,7 +10520,7 @@ var Pagination = forwardRef48(
10535
10520
  };
10536
10521
  const listItems = items.length > 0 ? items.map((item, i) => {
10537
10522
  const isActive = item === activePage;
10538
- return /* @__PURE__ */ jsx237(ListItem3, { children: item !== "truncator" ? /* @__PURE__ */ jsx237(
10523
+ return /* @__PURE__ */ jsx236(ListItem3, { children: item !== "truncator" ? /* @__PURE__ */ jsx236(
10539
10524
  Button,
10540
10525
  {
10541
10526
  purpose: isActive ? "primary" : "secondary",
@@ -10547,7 +10532,7 @@ var Pagination = forwardRef48(
10547
10532
  "aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
10548
10533
  children: item
10549
10534
  }
10550
- ) : /* @__PURE__ */ jsx237(
10535
+ ) : /* @__PURE__ */ jsx236(
10551
10536
  Icon,
10552
10537
  {
10553
10538
  icon: MoreHorizontalIcon,
@@ -10555,7 +10540,7 @@ var Pagination = forwardRef48(
10555
10540
  }
10556
10541
  ) }, `pagination-item-${i}`);
10557
10542
  }) : void 0;
10558
- const previousPageButton = /* @__PURE__ */ jsx237(
10543
+ const previousPageButton = /* @__PURE__ */ jsx236(
10559
10544
  Button,
10560
10545
  {
10561
10546
  purpose: "secondary",
@@ -10568,7 +10553,7 @@ var Pagination = forwardRef48(
10568
10553
  "aria-label": "G\xE5 til forrige siden"
10569
10554
  }
10570
10555
  );
10571
- const nextPageButton = /* @__PURE__ */ jsx237(
10556
+ const nextPageButton = /* @__PURE__ */ jsx236(
10572
10557
  Button,
10573
10558
  {
10574
10559
  purpose: "secondary",
@@ -10590,13 +10575,13 @@ var Pagination = forwardRef48(
10590
10575
  };
10591
10576
  const isOnFirstPage = activePage === 1;
10592
10577
  const isOnLastPage = activePage === pagesLength;
10593
- const navigation4 = withPagination ? /* @__PURE__ */ jsx237(Nav2, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs57(List3, { children: [
10594
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10578
+ const navigation2 = withPagination ? /* @__PURE__ */ jsx236(Nav2, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs57(List3, { children: [
10579
+ /* @__PURE__ */ jsx236(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10595
10580
  listItems,
10596
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton })
10581
+ /* @__PURE__ */ jsx236(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton })
10597
10582
  ] }) }) : null;
10598
- const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx237(Nav2, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs57(List3, { children: [
10599
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: /* @__PURE__ */ jsx237(
10583
+ const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx236(Nav2, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs57(List3, { children: [
10584
+ /* @__PURE__ */ jsx236(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: /* @__PURE__ */ jsx236(
10600
10585
  Button,
10601
10586
  {
10602
10587
  purpose: "secondary",
@@ -10609,8 +10594,8 @@ var Pagination = forwardRef48(
10609
10594
  "aria-label": "G\xE5 til f\xF8rste siden"
10610
10595
  }
10611
10596
  ) }),
10612
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10613
- /* @__PURE__ */ jsx237(ListItem3, { children: /* @__PURE__ */ jsx237(
10597
+ /* @__PURE__ */ jsx236(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10598
+ /* @__PURE__ */ jsx236(ListItem3, { children: /* @__PURE__ */ jsx236(
10614
10599
  Button,
10615
10600
  {
10616
10601
  size: "small",
@@ -10620,8 +10605,8 @@ var Pagination = forwardRef48(
10620
10605
  children: activePage
10621
10606
  }
10622
10607
  ) }),
10623
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton }),
10624
- /* @__PURE__ */ jsx237(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: /* @__PURE__ */ jsx237(
10608
+ /* @__PURE__ */ jsx236(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton }),
10609
+ /* @__PURE__ */ jsx236(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: /* @__PURE__ */ jsx236(
10625
10610
  Button,
10626
10611
  {
10627
10612
  purpose: "secondary",
@@ -10637,10 +10622,10 @@ var Pagination = forwardRef48(
10637
10622
  ] }) }) : null;
10638
10623
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
10639
10624
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
10640
- const navigationToBeRendered = smallScreen ? smallScreenNavigation : navigation4;
10641
- return !withCounter && !withSelect ? navigationToBeRendered : /* @__PURE__ */ jsxs57(OuterContainer2, { ...containerProps, children: [
10625
+ const navigationToBeRendered = smallScreen ? smallScreenNavigation : navigation2;
10626
+ return !withCounter && !withSelect ? navigationToBeRendered : /* @__PURE__ */ jsxs57(OuterContainer, { ...containerProps, children: [
10642
10627
  /* @__PURE__ */ jsxs57(IndicatorsContainer, { children: [
10643
- withSelect && /* @__PURE__ */ jsx237(
10628
+ withSelect && /* @__PURE__ */ jsx236(
10644
10629
  Select,
10645
10630
  {
10646
10631
  options: selectOptions,
@@ -10671,13 +10656,13 @@ var Pagination = forwardRef48(
10671
10656
  Pagination.displayName = "Pagination";
10672
10657
 
10673
10658
  // src/components/Popover/Popover.tsx
10674
- import { ddsBaseTokens as ddsBaseTokens50 } from "@norges-domstoler/dds-design-tokens";
10675
- import { forwardRef as forwardRef49 } from "react";
10676
- import styled71, { css as css30 } from "styled-components";
10659
+ import { ddsBaseTokens as ddsBaseTokens51 } from "@norges-domstoler/dds-design-tokens";
10660
+ import { forwardRef as forwardRef48 } from "react";
10661
+ import styled70, { css as css29 } from "styled-components";
10677
10662
 
10678
10663
  // src/components/Popover/Popover.tokens.tsx
10679
- import { ddsBaseTokens as ddsBaseTokens49 } from "@norges-domstoler/dds-design-tokens";
10680
- var { spacing: spacing30 } = ddsBaseTokens49;
10664
+ import { ddsBaseTokens as ddsBaseTokens50 } from "@norges-domstoler/dds-design-tokens";
10665
+ var { spacing: spacing30 } = ddsBaseTokens50;
10681
10666
  var wrapper3 = {
10682
10667
  padding: `${spacing30.SizesDdsSpacingX075} ${spacing30.SizesDdsSpacingX1} ${spacing30.SizesDdsSpacingX15} ${spacing30.SizesDdsSpacingX1}`
10683
10668
  };
@@ -10701,10 +10686,10 @@ var popoverTokens2 = {
10701
10686
  };
10702
10687
 
10703
10688
  // src/components/Popover/Popover.tsx
10704
- import { jsx as jsx238, jsxs as jsxs58 } from "react/jsx-runtime";
10705
- var { spacing: Spacing } = ddsBaseTokens50;
10689
+ import { jsx as jsx237, jsxs as jsxs58 } from "react/jsx-runtime";
10690
+ var { spacing: Spacing } = ddsBaseTokens51;
10706
10691
  var { wrapper: wrapper4, content: content4, closeButton: closeButton2, title: title2 } = popoverTokens2;
10707
- var Wrapper4 = styled71(Paper)`
10692
+ var Wrapper4 = styled70(Paper)`
10708
10693
  opacity: 0;
10709
10694
  ${({ $hasTransitionedIn, $isOpen }) => $hasTransitionedIn && visibilityTransition($hasTransitionedIn && $isOpen)}
10710
10695
  position: absolute;
@@ -10715,7 +10700,7 @@ var Wrapper4 = styled71(Paper)`
10715
10700
  &:focus-visible {
10716
10701
  ${focusVisible}
10717
10702
  }
10718
- ${({ $sizeProps }) => $sizeProps && css30`
10703
+ ${({ $sizeProps }) => $sizeProps && css29`
10719
10704
  width: ${$sizeProps.width};
10720
10705
  height: ${$sizeProps.height};
10721
10706
  min-width: ${$sizeProps.minWidth};
@@ -10724,20 +10709,20 @@ var Wrapper4 = styled71(Paper)`
10724
10709
  max-height: ${$sizeProps.maxHeight};
10725
10710
  `}
10726
10711
  `;
10727
- var TitleContainer = styled71.div`
10712
+ var TitleContainer = styled70.div`
10728
10713
  margin-right: ${title2.marginRight};
10729
10714
  `;
10730
- var ContentContainer4 = styled71.div`
10731
- ${({ $withCloseButton, $hasTitle }) => $withCloseButton && !$hasTitle && css30`
10715
+ var ContentContainer4 = styled70.div`
10716
+ ${({ $withCloseButton, $hasTitle }) => $withCloseButton && !$hasTitle && css29`
10732
10717
  margin-top: ${content4.noTitle.marginTop};
10733
10718
  `}
10734
10719
  `;
10735
- var StyledButton4 = styled71(Button)`
10720
+ var StyledButton4 = styled70(Button)`
10736
10721
  position: absolute;
10737
10722
  top: ${closeButton2.top};
10738
10723
  right: ${closeButton2.right};
10739
10724
  `;
10740
- var Popover = forwardRef49(
10725
+ var Popover = forwardRef48(
10741
10726
  (props, ref) => {
10742
10727
  const {
10743
10728
  title: title3,
@@ -10790,8 +10775,8 @@ var Popover = forwardRef49(
10790
10775
  elevation: 3,
10791
10776
  border: "light",
10792
10777
  children: [
10793
- title3 && /* @__PURE__ */ jsx238(TitleContainer, { children: typeof title3 === "string" ? /* @__PURE__ */ jsx238(Typography, { typographyType: "headingSans02", children: title3 }) : title3 }),
10794
- /* @__PURE__ */ jsx238(
10778
+ title3 && /* @__PURE__ */ jsx237(TitleContainer, { children: typeof title3 === "string" ? /* @__PURE__ */ jsx237(Typography, { typographyType: "headingSans02", children: title3 }) : title3 }),
10779
+ /* @__PURE__ */ jsx237(
10795
10780
  ContentContainer4,
10796
10781
  {
10797
10782
  $hasTitle: !!title3,
@@ -10799,7 +10784,7 @@ var Popover = forwardRef49(
10799
10784
  children
10800
10785
  }
10801
10786
  ),
10802
- withCloseButton && /* @__PURE__ */ jsx238(
10787
+ withCloseButton && /* @__PURE__ */ jsx237(
10803
10788
  StyledButton4,
10804
10789
  {
10805
10790
  icon: CloseIcon,
@@ -10826,7 +10811,7 @@ import {
10826
10811
  useRef as useRef28,
10827
10812
  useState as useState21
10828
10813
  } from "react";
10829
- import { Fragment as Fragment8, jsx as jsx239 } from "react/jsx-runtime";
10814
+ import { Fragment as Fragment8, jsx as jsx238 } from "react/jsx-runtime";
10830
10815
  var PopoverGroup = ({
10831
10816
  isOpen = false,
10832
10817
  onCloseButtonClick,
@@ -10872,7 +10857,7 @@ var PopoverGroup = ({
10872
10857
  onClose: handleClose
10873
10858
  }));
10874
10859
  });
10875
- return /* @__PURE__ */ jsx239(Fragment8, { children: Children9 });
10860
+ return /* @__PURE__ */ jsx238(Fragment8, { children: Children9 });
10876
10861
  };
10877
10862
  PopoverGroup.displayName = "PopoverGroup";
10878
10863
 
@@ -10881,13 +10866,13 @@ import {
10881
10866
  Children as Children5,
10882
10867
  Fragment as Fragment9,
10883
10868
  cloneElement as cloneElement6,
10884
- forwardRef as forwardRef50,
10869
+ forwardRef as forwardRef49,
10885
10870
  isValidElement as isValidElement6,
10886
10871
  useEffect as useEffect23,
10887
10872
  useMemo as useMemo3,
10888
10873
  useState as useState22
10889
10874
  } from "react";
10890
- import styled73 from "styled-components";
10875
+ import styled72 from "styled-components";
10891
10876
 
10892
10877
  // src/components/ProgressTracker/ProgressTracker.context.tsx
10893
10878
  import { createContext as createContext5, useContext as useContext5 } from "react";
@@ -10899,9 +10884,9 @@ var ProgressTrackerContext = createContext5(
10899
10884
  var useProgressTrackerContext = () => useContext5(ProgressTrackerContext);
10900
10885
 
10901
10886
  // src/components/ProgressTracker/ProgressTracker.tokens.tsx
10902
- import { ddsBaseTokens as ddsBaseTokens51 } from "@norges-domstoler/dds-design-tokens";
10903
- var { colors: colors27, spacing: spacing31 } = ddsBaseTokens51;
10904
- var typographyTypes5 = {
10887
+ import { ddsBaseTokens as ddsBaseTokens52 } from "@norges-domstoler/dds-design-tokens";
10888
+ var { colors: colors27, spacing: spacing31 } = ddsBaseTokens52;
10889
+ var typographyTypes4 = {
10905
10890
  number: "bodySans01",
10906
10891
  label: "bodySans03"
10907
10892
  };
@@ -10979,8 +10964,8 @@ var progressTrackerTokens = {
10979
10964
 
10980
10965
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
10981
10966
  import { useMemo as useMemo2 } from "react";
10982
- import styled72, { css as css31 } from "styled-components";
10983
- import { jsx as jsx240, jsxs as jsxs59 } from "react/jsx-runtime";
10967
+ import styled71, { css as css30 } from "styled-components";
10968
+ import { jsx as jsx239, jsxs as jsxs59 } from "react/jsx-runtime";
10984
10969
  var toItemState = (active, completed, disabled) => {
10985
10970
  if (disabled) {
10986
10971
  return "disabled";
@@ -10992,13 +10977,13 @@ var toItemState = (active, completed, disabled) => {
10992
10977
  }
10993
10978
  };
10994
10979
  var { itemNumber: itemNumber2, itemText: itemText2, itemContentWrapper: itemContentWrapper2 } = progressTrackerTokens;
10995
- var ItemWrapper = styled72.li`
10980
+ var ItemWrapper = styled71.li`
10996
10981
  flex: 1;
10997
10982
  position: relative;
10998
10983
  display: flex;
10999
10984
  justify-content: center;
11000
10985
  `;
11001
- var ItemNumber = styled72.div`
10986
+ var ItemNumber = styled71.div`
11002
10987
  transition:
11003
10988
  background-color 0.2s,
11004
10989
  border-color 0.2s,
@@ -11011,37 +10996,37 @@ var ItemNumber = styled72.div`
11011
10996
  align-items: center;
11012
10997
  justify-content: center;
11013
10998
  z-index: 2;
11014
- ${getFontStyling(typographyTypes5.number)}
10999
+ ${getFontStyling(typographyTypes4.number)}
11015
11000
  font-weight: 600;
11016
11001
 
11017
11002
  ${({ $state: state }) => {
11018
11003
  switch (state) {
11019
11004
  case "activeIncomplete":
11020
- return css31`
11005
+ return css30`
11021
11006
  border-color: ${itemNumber2.active.borderColor};
11022
11007
  color: ${itemNumber2.active.color};
11023
11008
  background-color: ${itemNumber2.active.backgroundColor};
11024
11009
  `;
11025
11010
  case "activeCompleted":
11026
- return css31`
11011
+ return css30`
11027
11012
  border-color: ${itemNumber2.completed.borderColor};
11028
11013
  color: ${itemNumber2.completed.color};
11029
11014
  background-color: ${itemNumber2.completed.backgroundColor};
11030
11015
  `;
11031
11016
  case "inactiveCompleted":
11032
- return css31`
11017
+ return css30`
11033
11018
  border-color: ${itemNumber2.completed.borderColor};
11034
11019
  color: ${itemNumber2.completed.color};
11035
11020
  background-color: ${itemNumber2.completed.backgroundColor};
11036
11021
  `;
11037
11022
  case "inactiveIncomplete":
11038
- return css31`
11023
+ return css30`
11039
11024
  border-color: ${itemNumber2.inactive.borderColor};
11040
11025
  color: ${itemNumber2.inactive.color};
11041
11026
  background-color: ${itemNumber2.inactive.backgroundColor};
11042
11027
  `;
11043
11028
  case "disabled":
11044
- return css31`
11029
+ return css30`
11045
11030
  border-color: ${itemNumber2.disabled.borderColor};
11046
11031
  color: ${itemNumber2.disabled.color};
11047
11032
  background-color: ${itemNumber2.disabled.backgroundColor};
@@ -11049,8 +11034,8 @@ var ItemNumber = styled72.div`
11049
11034
  }
11050
11035
  }}
11051
11036
  `;
11052
- var ItemText = styled72.div`
11053
- ${getFontStyling(typographyTypes5.label)}
11037
+ var ItemText = styled71.div`
11038
+ ${getFontStyling(typographyTypes4.label)}
11054
11039
  text-align: start;
11055
11040
  text-decoration: ${itemText2.textDecoration};
11056
11041
  transition: text-decoration-color 0.2s;
@@ -11059,25 +11044,25 @@ var ItemText = styled72.div`
11059
11044
  switch (state) {
11060
11045
  case "activeCompleted":
11061
11046
  case "activeIncomplete":
11062
- return css31`
11047
+ return css30`
11063
11048
  color: ${itemText2.active.color};
11064
11049
  text-decoration-color: ${itemText2.active.textDecorationColor};
11065
11050
  `;
11066
11051
  case "inactiveCompleted":
11067
11052
  case "inactiveIncomplete":
11068
- return css31`
11053
+ return css30`
11069
11054
  color: ${itemText2.inactive.color};
11070
11055
  text-decoration-color: ${itemText2.inactive.textDecorationColor};
11071
11056
  `;
11072
11057
  case "disabled":
11073
- return css31`
11058
+ return css30`
11074
11059
  color: ${itemText2.disabled.color};
11075
11060
  text-decoration: ${itemText2.disabled.textDecoration};
11076
11061
  `;
11077
11062
  }
11078
11063
  }};
11079
11064
  `;
11080
- var ItemContentWrapper = styled72.button`
11065
+ var ItemContentWrapper = styled71.button`
11081
11066
  background: none;
11082
11067
  border: none;
11083
11068
  margin: 0;
@@ -11094,7 +11079,7 @@ var ItemContentWrapper = styled72.button`
11094
11079
  ${focusVisible}
11095
11080
  }
11096
11081
 
11097
- ${({ $state: state }) => state !== "disabled" && css31`
11082
+ ${({ $state: state }) => state !== "disabled" && css30`
11098
11083
  cursor: pointer;
11099
11084
  `}
11100
11085
  `;
@@ -11114,14 +11099,14 @@ var ProgressTrackerItem = (props) => {
11114
11099
  };
11115
11100
  const stepNumberContent = useMemo2(() => {
11116
11101
  if (completed) {
11117
- return /* @__PURE__ */ jsx240(Icon, { icon: CheckIcon, iconSize: itemNumber2.iconSize });
11102
+ return /* @__PURE__ */ jsx239(Icon, { icon: CheckIcon, iconSize: itemNumber2.iconSize });
11118
11103
  }
11119
11104
  if (icon12 !== void 0) {
11120
- return /* @__PURE__ */ jsx240(Icon, { icon: icon12, iconSize: itemNumber2.iconSize });
11105
+ return /* @__PURE__ */ jsx239(Icon, { icon: icon12, iconSize: itemNumber2.iconSize });
11121
11106
  }
11122
11107
  return index + 1;
11123
11108
  }, [completed, icon12, index]);
11124
- return /* @__PURE__ */ jsx240(ItemWrapper, { "aria-current": active ? "step" : void 0, children: /* @__PURE__ */ jsxs59(
11109
+ return /* @__PURE__ */ jsx239(ItemWrapper, { "aria-current": active ? "step" : void 0, children: /* @__PURE__ */ jsxs59(
11125
11110
  ItemContentWrapper,
11126
11111
  {
11127
11112
  ...styleProps,
@@ -11129,9 +11114,9 @@ var ProgressTrackerItem = (props) => {
11129
11114
  onClick: !disabled && handleStepChange ? () => handleStepChange(index) : void 0,
11130
11115
  disabled,
11131
11116
  children: [
11132
- /* @__PURE__ */ jsx240(ItemNumber, { ...styleProps, "aria-hidden": true, children: stepNumberContent }),
11117
+ /* @__PURE__ */ jsx239(ItemNumber, { ...styleProps, "aria-hidden": true, children: stepNumberContent }),
11133
11118
  /* @__PURE__ */ jsxs59(ItemText, { ...styleProps, children: [
11134
- /* @__PURE__ */ jsx240(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
11119
+ /* @__PURE__ */ jsx239(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
11135
11120
  children
11136
11121
  ] })
11137
11122
  ]
@@ -11141,8 +11126,8 @@ var ProgressTrackerItem = (props) => {
11141
11126
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
11142
11127
 
11143
11128
  // src/components/ProgressTracker/ProgressTracker.tsx
11144
- import { jsx as jsx241, jsxs as jsxs60 } from "react/jsx-runtime";
11145
- var ItemsWrapper = styled73.ol`
11129
+ import { jsx as jsx240, jsxs as jsxs60 } from "react/jsx-runtime";
11130
+ var ItemsWrapper = styled72.ol`
11146
11131
  display: flex;
11147
11132
  flex-direction: column;
11148
11133
  align-items: flex-start;
@@ -11150,7 +11135,7 @@ var ItemsWrapper = styled73.ol`
11150
11135
  margin: 0;
11151
11136
  padding: 0;
11152
11137
  `;
11153
- var ProgressTrackerConnector = styled73.div`
11138
+ var ProgressTrackerConnector = styled72.div`
11154
11139
  margin-left: calc(
11155
11140
  (${progressTrackerTokens.itemNumber.size} / 2) -
11156
11141
  (${progressTrackerTokens.connector.width} / 2)
@@ -11160,7 +11145,7 @@ var ProgressTrackerConnector = styled73.div`
11160
11145
  ${progressTrackerTokens.connector.color};
11161
11146
  `;
11162
11147
  var ProgressTracker = (() => {
11163
- const Res = forwardRef50((props, ref) => {
11148
+ const Res = forwardRef49((props, ref) => {
11164
11149
  const {
11165
11150
  id,
11166
11151
  activeStep = 0,
@@ -11190,14 +11175,14 @@ var ProgressTracker = (() => {
11190
11175
  const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
11191
11176
  return itemsWithConnectorsBetween;
11192
11177
  }, [children]);
11193
- return /* @__PURE__ */ jsx241(
11178
+ return /* @__PURE__ */ jsx240(
11194
11179
  ProgressTrackerContext.Provider,
11195
11180
  {
11196
11181
  value: {
11197
11182
  activeStep: thisActiveStep,
11198
11183
  handleStepChange: handleChange
11199
11184
  },
11200
- children: /* @__PURE__ */ jsx241("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx241(ItemsWrapper, { children: steps }) })
11185
+ children: /* @__PURE__ */ jsx240("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx240(ItemsWrapper, { children: steps }) })
11201
11186
  }
11202
11187
  );
11203
11188
  });
@@ -11222,18 +11207,18 @@ var intersperseItemsWithConnector = (children) => Children5.map(children, (child
11222
11207
  return child;
11223
11208
  }
11224
11209
  return /* @__PURE__ */ jsxs60(Fragment9, { children: [
11225
- /* @__PURE__ */ jsx241(ProgressTrackerConnector, { "aria-hidden": true }),
11210
+ /* @__PURE__ */ jsx240(ProgressTrackerConnector, { "aria-hidden": true }),
11226
11211
  child
11227
11212
  ] }, index);
11228
11213
  });
11229
11214
 
11230
11215
  // src/components/Search/Search.tsx
11231
11216
  import {
11232
- forwardRef as forwardRef52,
11217
+ forwardRef as forwardRef51,
11233
11218
  useId as useId16,
11234
11219
  useState as useState23
11235
11220
  } from "react";
11236
- import styled75, { css as css32 } from "styled-components";
11221
+ import styled74, { css as css31 } from "styled-components";
11237
11222
 
11238
11223
  // src/components/Search/AutocompleteSearch.context.tsx
11239
11224
  import {
@@ -11247,12 +11232,12 @@ var useAutocompleteSearch = () => {
11247
11232
 
11248
11233
  // src/components/Search/Search.tokens.tsx
11249
11234
  import {
11250
- ddsBaseTokens as ddsBaseTokens52,
11235
+ ddsBaseTokens as ddsBaseTokens53,
11251
11236
  ddsReferenceTokens as ddsReferenceTokens7
11252
11237
  } from "@norges-domstoler/dds-design-tokens";
11253
- var { spacing: spacing32, iconSizes: iconSizes2, colors: colors28 } = ddsBaseTokens52;
11238
+ var { spacing: spacing32, iconSizes: iconSizes2, colors: colors28 } = ddsBaseTokens53;
11254
11239
  var { textDefault: textDefault6 } = ddsReferenceTokens7;
11255
- var typographyTypes6 = {
11240
+ var typographyTypes5 = {
11256
11241
  small: "bodySans01",
11257
11242
  medium: "bodySans02",
11258
11243
  large: "bodySans04"
@@ -11286,7 +11271,7 @@ var input3 = {
11286
11271
  var horisontalContainer = {
11287
11272
  gap: spacing32.SizesDdsSpacingX05
11288
11273
  };
11289
- var outerContainer7 = {
11274
+ var outerContainer5 = {
11290
11275
  gap: spacing32.SizesDdsSpacingX0125
11291
11276
  };
11292
11277
  var searchIcon = {
@@ -11323,7 +11308,7 @@ var searchTokens = {
11323
11308
  searchIcon,
11324
11309
  clearButton,
11325
11310
  horisontalContainer,
11326
- outerContainer: outerContainer7,
11311
+ outerContainer: outerContainer5,
11327
11312
  suggestionsContainer,
11328
11313
  suggestionsHeader
11329
11314
  };
@@ -11355,11 +11340,11 @@ function createEmptyChangeEvent(inputElementId) {
11355
11340
  }
11356
11341
 
11357
11342
  // src/components/Search/SearchSuggestions.tsx
11358
- import { forwardRef as forwardRef51 } from "react";
11359
- import styled74 from "styled-components";
11360
- import { jsx as jsx242, jsxs as jsxs61 } from "react/jsx-runtime";
11343
+ import { forwardRef as forwardRef50 } from "react";
11344
+ import styled73 from "styled-components";
11345
+ import { jsx as jsx241, jsxs as jsxs61 } from "react/jsx-runtime";
11361
11346
  var { suggestionsContainer: suggestionsContainer2, suggestionsHeader: suggestionsHeader2 } = searchTokens;
11362
- var SuggestionsContainer = styled74(Paper)`
11347
+ var SuggestionsContainer = styled73(Paper)`
11363
11348
  ${({ $isHidden }) => visibilityTransition(!$isHidden)};
11364
11349
  position: absolute;
11365
11350
  top: 100%;
@@ -11373,16 +11358,16 @@ var SuggestionsContainer = styled74(Paper)`
11373
11358
  ${scrollbarStyling.firefox}
11374
11359
  ${scrollbarStyling.webkit}
11375
11360
  `;
11376
- var MenuItem = styled74(OverflowMenuItem)`
11377
- ${({ $size }) => $size && getFontStyling(typographyTypes6[$size])}
11361
+ var MenuItem = styled73(OverflowMenuItem)`
11362
+ ${({ $size }) => $size && getFontStyling(typographyTypes5[$size])}
11378
11363
  `;
11379
- var SuggestionsList = styled74.ul`
11364
+ var SuggestionsList = styled73.ul`
11380
11365
  ${removeListStyling}
11381
11366
  `;
11382
- var SuggestionsHeader = styled74(Typography)`
11367
+ var SuggestionsHeader = styled73(Typography)`
11383
11368
  padding-left: ${suggestionsHeader2.paddingLeft};
11384
11369
  `;
11385
- var SearchSuggestions = forwardRef51((props, ref) => {
11370
+ var SearchSuggestions = forwardRef50((props, ref) => {
11386
11371
  const {
11387
11372
  id,
11388
11373
  searchId,
@@ -11401,8 +11386,8 @@ var SearchSuggestions = forwardRef51((props, ref) => {
11401
11386
  );
11402
11387
  const [focus, setFocus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, !showSuggestions);
11403
11388
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
11404
- const renderedSuggestions = /* @__PURE__ */ jsx242(SuggestionsList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
11405
- return /* @__PURE__ */ jsx242("li", { role: "option", children: /* @__PURE__ */ jsx242(
11389
+ const renderedSuggestions = /* @__PURE__ */ jsx241(SuggestionsList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
11390
+ return /* @__PURE__ */ jsx241("li", { role: "option", children: /* @__PURE__ */ jsx241(
11406
11391
  MenuItem,
11407
11392
  {
11408
11393
  index,
@@ -11426,7 +11411,7 @@ var SearchSuggestions = forwardRef51((props, ref) => {
11426
11411
  $isHidden: isHidden,
11427
11412
  "aria-hidden": isHidden,
11428
11413
  children: [
11429
- /* @__PURE__ */ jsx242(
11414
+ /* @__PURE__ */ jsx241(
11430
11415
  SuggestionsHeader,
11431
11416
  {
11432
11417
  typographyType: "supportingStyleTiny01",
@@ -11443,8 +11428,8 @@ var SearchSuggestions = forwardRef51((props, ref) => {
11443
11428
  SearchSuggestions.displayName = "SearchSuggestions";
11444
11429
 
11445
11430
  // src/components/Search/Search.tsx
11446
- import { Fragment as Fragment10, jsx as jsx243, jsxs as jsxs62 } from "react/jsx-runtime";
11447
- var { input: input4, outerContainer: outerContainer8, horisontalContainer: horisontalContainer2, searchIcon: searchIcon2, clearButton: clearButton2 } = searchTokens;
11431
+ import { Fragment as Fragment10, jsx as jsx242, jsxs as jsxs62 } from "react/jsx-runtime";
11432
+ var { input: input4, outerContainer: outerContainer6, horisontalContainer: horisontalContainer2, searchIcon: searchIcon2, clearButton: clearButton2 } = searchTokens;
11448
11433
  var getIconSize = (size2) => {
11449
11434
  switch (size2) {
11450
11435
  case "large":
@@ -11455,7 +11440,7 @@ var getIconSize = (size2) => {
11455
11440
  return "small";
11456
11441
  }
11457
11442
  };
11458
- var Input3 = styled75(Input)`
11443
+ var Input3 = styled74(Input)`
11459
11444
  &[type='search']::-webkit-search-decoration,
11460
11445
  &[type='search']::-webkit-search-cancel-button,
11461
11446
  &[type='search']::-webkit-search-results-button,
@@ -11464,45 +11449,45 @@ var Input3 = styled75(Input)`
11464
11449
  }
11465
11450
  padding-right: ${input4.base.paddingRight};
11466
11451
 
11467
- ${({ $componentSize }) => css32`
11452
+ ${({ $componentSize }) => css31`
11468
11453
  padding-top: ${input4.sizes[$componentSize].paddingTop};
11469
11454
  padding-bottom: ${input4.sizes[$componentSize].paddingBottom};
11470
11455
  padding-left: ${input4.sizes[$componentSize].paddingLeft};
11471
- ${getFontStyling(typographyTypes6[$componentSize])}
11456
+ ${getFontStyling(typographyTypes5[$componentSize])}
11472
11457
  `}
11473
11458
  `;
11474
- var StyledSearchIcon = styled75(Icon)`
11459
+ var StyledSearchIcon = styled74(Icon)`
11475
11460
  position: absolute;
11476
11461
  left: ${searchIcon2.base.left};
11477
11462
  color: ${searchIcon2.base.color};
11478
- ${({ $size }) => css32`
11463
+ ${({ $size }) => css31`
11479
11464
  top: ${searchTokens.searchIcon[$size].top};
11480
11465
  `}
11481
11466
  z-index: 1;
11482
11467
  `;
11483
- var StyledClearButton = styled75(Button)`
11468
+ var StyledClearButton = styled74(Button)`
11484
11469
  position: absolute;
11485
11470
  right: ${clearButton2.right};
11486
11471
  color: ${clearButton2.color};
11487
11472
  top: ${clearButton2.top};
11488
11473
  `;
11489
- var OuterContainer3 = styled75.div`
11474
+ var OuterContainer2 = styled74.div`
11490
11475
  display: flex;
11491
11476
  flex-direction: column;
11492
- gap: ${outerContainer8.gap};
11477
+ gap: ${outerContainer6.gap};
11493
11478
  `;
11494
- var HorisontalContainer = styled75.div`
11495
- ${(props) => props.$hasSearchButton && css32`
11479
+ var HorisontalContainer = styled74.div`
11480
+ ${(props) => props.$hasSearchButton && css31`
11496
11481
  display: grid;
11497
11482
  grid-template-columns: 1fr auto;
11498
11483
  gap: ${horisontalContainer2.gap};
11499
11484
  `}
11500
11485
  `;
11501
- var InputContainer2 = styled75.div`
11486
+ var InputContainer2 = styled74.div`
11502
11487
  position: relative;
11503
11488
  display: flex;
11504
11489
  `;
11505
- var Search = forwardRef52(
11490
+ var Search = forwardRef51(
11506
11491
  ({
11507
11492
  componentSize = "medium",
11508
11493
  buttonProps,
@@ -11546,8 +11531,8 @@ var Search = forwardRef52(
11546
11531
  } = buttonProps != null ? buttonProps : {};
11547
11532
  const hasSuggestions = !!context.suggestions;
11548
11533
  const showSearchButton = !!buttonProps && !!onClick;
11549
- return /* @__PURE__ */ jsxs62(OuterContainer3, { children: [
11550
- hasLabel && /* @__PURE__ */ jsx243(Label, { htmlFor: uniqueId, children: label3 }),
11534
+ return /* @__PURE__ */ jsxs62(OuterContainer2, { children: [
11535
+ hasLabel && /* @__PURE__ */ jsx242(Label, { htmlFor: uniqueId, children: label3 }),
11551
11536
  /* @__PURE__ */ jsxs62("div", { children: [
11552
11537
  /* @__PURE__ */ jsxs62(
11553
11538
  HorisontalContainer,
@@ -11557,7 +11542,7 @@ var Search = forwardRef52(
11557
11542
  style,
11558
11543
  children: [
11559
11544
  /* @__PURE__ */ jsxs62(InputContainer2, { children: [
11560
- /* @__PURE__ */ jsx243(
11545
+ /* @__PURE__ */ jsx242(
11561
11546
  StyledSearchIcon,
11562
11547
  {
11563
11548
  icon: SearchIcon,
@@ -11565,7 +11550,7 @@ var Search = forwardRef52(
11565
11550
  iconSize: getIconSize(componentSize)
11566
11551
  }
11567
11552
  ),
11568
- /* @__PURE__ */ jsx243(
11553
+ /* @__PURE__ */ jsx242(
11569
11554
  Input3,
11570
11555
  {
11571
11556
  ...rest,
@@ -11589,7 +11574,7 @@ var Search = forwardRef52(
11589
11574
  }
11590
11575
  ),
11591
11576
  hasSuggestions && /* @__PURE__ */ jsxs62(Fragment10, { children: [
11592
- /* @__PURE__ */ jsx243(
11577
+ /* @__PURE__ */ jsx242(
11593
11578
  SearchSuggestions,
11594
11579
  {
11595
11580
  id: suggestionsId,
@@ -11601,9 +11586,9 @@ var Search = forwardRef52(
11601
11586
  componentSize
11602
11587
  }
11603
11588
  ),
11604
- /* @__PURE__ */ jsx243(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
11589
+ /* @__PURE__ */ jsx242(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
11605
11590
  ] }),
11606
- hasValue && /* @__PURE__ */ jsx243(
11591
+ hasValue && /* @__PURE__ */ jsx242(
11607
11592
  StyledClearButton,
11608
11593
  {
11609
11594
  icon: CloseSmallIcon,
@@ -11615,7 +11600,7 @@ var Search = forwardRef52(
11615
11600
  }
11616
11601
  )
11617
11602
  ] }),
11618
- showSearchButton && /* @__PURE__ */ jsx243(
11603
+ showSearchButton && /* @__PURE__ */ jsx242(
11619
11604
  Button,
11620
11605
  {
11621
11606
  size: componentSize,
@@ -11640,7 +11625,7 @@ import {
11640
11625
  useRef as useRef29,
11641
11626
  useState as useState24
11642
11627
  } from "react";
11643
- import { jsx as jsx244 } from "react/jsx-runtime";
11628
+ import { jsx as jsx243 } from "react/jsx-runtime";
11644
11629
  var SearchAutocompleteWrapper = (props) => {
11645
11630
  const {
11646
11631
  value,
@@ -11716,7 +11701,7 @@ var SearchAutocompleteWrapper = (props) => {
11716
11701
  inputValue,
11717
11702
  onSugggestionClick: handleSuggestionClick
11718
11703
  };
11719
- return /* @__PURE__ */ jsx244(AutocompleteSearchContext.Provider, { value: contextProps, children });
11704
+ return /* @__PURE__ */ jsx243(AutocompleteSearchContext.Provider, { value: contextProps, children });
11720
11705
  };
11721
11706
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
11722
11707
 
@@ -11726,7 +11711,7 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
11726
11711
  Search2.Suggestions = SearchSuggestions;
11727
11712
 
11728
11713
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
11729
- import { forwardRef as forwardRef53, useId as useId17 } from "react";
11714
+ import { forwardRef as forwardRef52, useId as useId17 } from "react";
11730
11715
 
11731
11716
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
11732
11717
  import { createContext as createContext7, useContext as useContext7 } from "react";
@@ -11736,17 +11721,17 @@ var useCheckboxGroup = () => {
11736
11721
  };
11737
11722
 
11738
11723
  // src/components/SelectionControl/SelectionControl.styles.tsx
11739
- import styled76, { css as css33 } from "styled-components";
11724
+ import styled75, { css as css32 } from "styled-components";
11740
11725
 
11741
11726
  // src/components/SelectionControl/SelectionControl.tokens.tsx
11742
- import { ddsBaseTokens as ddsBaseTokens53 } from "@norges-domstoler/dds-design-tokens";
11727
+ import { ddsBaseTokens as ddsBaseTokens54 } from "@norges-domstoler/dds-design-tokens";
11743
11728
 
11744
11729
  // src/components/SelectionControl/SelectionControl.utils.tsx
11745
11730
  var selectionControlSizeNumberPx = 18;
11746
11731
  var selectionControlSize = `${selectionControlSizeNumberPx}px`;
11747
11732
 
11748
11733
  // src/components/SelectionControl/SelectionControl.tokens.tsx
11749
- var { colors: colors29, spacing: spacing33, borderRadius: borderRadius8 } = ddsBaseTokens53;
11734
+ var { colors: colors29, spacing: spacing33, borderRadius: borderRadius8 } = ddsBaseTokens54;
11750
11735
  var checkmark = {
11751
11736
  checkbox: {
11752
11737
  borderColor: colors29.DdsColorNeutralsWhite
@@ -11851,7 +11836,7 @@ var {
11851
11836
  groupContainer: groupContainer2,
11852
11837
  outerGroupContainer: outerGroupContainer2
11853
11838
  } = selectionControlTokens;
11854
- var CustomSelectionControl = styled76.span`
11839
+ var CustomSelectionControl = styled75.span`
11855
11840
  position: absolute;
11856
11841
  left: 0;
11857
11842
  box-sizing: border-box;
@@ -11861,7 +11846,7 @@ var CustomSelectionControl = styled76.span`
11861
11846
  border-radius: ${selectionControl2.base.borderRadius};
11862
11847
  height: ${selectionControl2.base.height};
11863
11848
  width: ${selectionControl2.base.width};
11864
- ${({ $controlType }) => $controlType === "radio" && css33`
11849
+ ${({ $controlType }) => $controlType === "radio" && css32`
11865
11850
  border-radius: 50%;
11866
11851
  `}
11867
11852
  &:after {
@@ -11870,7 +11855,7 @@ var CustomSelectionControl = styled76.span`
11870
11855
  display: none;
11871
11856
  }
11872
11857
  `;
11873
- var Container13 = styled76.label`
11858
+ var Container13 = styled75.label`
11874
11859
  position: relative;
11875
11860
  display: flex;
11876
11861
  align-items: center;
@@ -11878,9 +11863,9 @@ var Container13 = styled76.label`
11878
11863
  user-select: none;
11879
11864
  width: fit-content;
11880
11865
  color: ${container14.color};
11881
- ${({ $hasLabel }) => $hasLabel ? css33`
11866
+ ${({ $hasLabel }) => $hasLabel ? css32`
11882
11867
  padding-left: ${container14.withLabel.paddingLeft};
11883
- ` : css33`
11868
+ ` : css32`
11884
11869
  padding: ${container14.noLabel.padding};
11885
11870
  `}
11886
11871
 
@@ -11924,7 +11909,7 @@ var Container13 = styled76.label`
11924
11909
  border-color: ${selectionControl2.checked.hover.borderColor};
11925
11910
  }
11926
11911
 
11927
- ${({ $error }) => $error && css33`
11912
+ ${({ $error }) => $error && css32`
11928
11913
  &:hover input:enabled ~ ${CustomSelectionControl} {
11929
11914
  background-color: ${selectionControl2.hover.danger.backgroundColor};
11930
11915
  box-shadow: ${selectionControl2.hover.danger.boxShadow};
@@ -11958,11 +11943,11 @@ var Container13 = styled76.label`
11958
11943
  display: block;
11959
11944
  }
11960
11945
 
11961
- ${({ disabled }) => disabled && css33`
11946
+ ${({ disabled }) => disabled && css32`
11962
11947
  cursor: not-allowed;
11963
11948
  color: ${container14.disabled.color};
11964
11949
  `}
11965
- ${({ $controlType }) => $controlType === "checkbox" ? css33`
11950
+ ${({ $controlType }) => $controlType === "checkbox" ? css32`
11966
11951
  ${CustomSelectionControl}:after {
11967
11952
  border: solid ${checkmark2.checkbox.borderColor};
11968
11953
 
@@ -11981,7 +11966,7 @@ var Container13 = styled76.label`
11981
11966
  height: 1px;
11982
11967
  transform: none;
11983
11968
  }
11984
- ` : css33`
11969
+ ` : css32`
11985
11970
  ${CustomSelectionControl}:after {
11986
11971
  border-radius: 50%;
11987
11972
  background-color: ${checkmark2.radio.backgroundColor};
@@ -11992,22 +11977,22 @@ var Container13 = styled76.label`
11992
11977
  }
11993
11978
  `}
11994
11979
  `;
11995
- var OuterGroupContainer = styled76.div`
11980
+ var OuterGroupContainer = styled75.div`
11996
11981
  display: flex;
11997
11982
  flex-direction: column;
11998
11983
  gap: ${outerGroupContainer2.gap};
11999
11984
  `;
12000
- var GroupContainer = styled76.div`
11985
+ var GroupContainer = styled75.div`
12001
11986
  display: flex;
12002
- ${({ $direction }) => css33`
11987
+ ${({ $direction }) => css32`
12003
11988
  flex-direction: ${$direction};
12004
11989
  gap: ${groupContainer2[$direction].gap};
12005
11990
  `}
12006
11991
  `;
12007
11992
 
12008
11993
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
12009
- import { jsx as jsx245, jsxs as jsxs63 } from "react/jsx-runtime";
12010
- var Checkbox = forwardRef53(
11994
+ import { jsx as jsx244, jsxs as jsxs63 } from "react/jsx-runtime";
11995
+ var Checkbox = forwardRef52(
12011
11996
  (props, ref) => {
12012
11997
  const {
12013
11998
  id,
@@ -12042,7 +12027,7 @@ var Checkbox = forwardRef53(
12042
12027
  className: cn(className, htmlPropsClassName),
12043
12028
  style,
12044
12029
  children: [
12045
- /* @__PURE__ */ jsx245(
12030
+ /* @__PURE__ */ jsx244(
12046
12031
  HiddenInput,
12047
12032
  {
12048
12033
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -12062,8 +12047,8 @@ var Checkbox = forwardRef53(
12062
12047
  "data-indeterminate": indeterminate
12063
12048
  }
12064
12049
  ),
12065
- /* @__PURE__ */ jsx245(CustomSelectionControl, { $controlType: "checkbox" }),
12066
- hasLabel && /* @__PURE__ */ jsx245(Typography, { color: "inherit", as: "span", typographyType: "bodySans02", children: label3 })
12050
+ /* @__PURE__ */ jsx244(CustomSelectionControl, { $controlType: "checkbox" }),
12051
+ hasLabel && /* @__PURE__ */ jsx244(Typography, { color: "inherit", as: "span", typographyType: "bodySans02", children: label3 })
12067
12052
  ]
12068
12053
  }
12069
12054
  );
@@ -12073,7 +12058,7 @@ Checkbox.displayName = "Checkbox";
12073
12058
 
12074
12059
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
12075
12060
  import { useId as useId18 } from "react";
12076
- import { jsx as jsx246, jsxs as jsxs64 } from "react/jsx-runtime";
12061
+ import { jsx as jsx245, jsxs as jsxs64 } from "react/jsx-runtime";
12077
12062
  var CheckboxGroup = (props) => {
12078
12063
  const {
12079
12064
  label: label3,
@@ -12120,12 +12105,12 @@ var CheckboxGroup = (props) => {
12120
12105
  children: [
12121
12106
  label3,
12122
12107
  " ",
12123
- showRequiredMarker && /* @__PURE__ */ jsx246(RequiredMarker, {})
12108
+ showRequiredMarker && /* @__PURE__ */ jsx245(RequiredMarker, {})
12124
12109
  ]
12125
12110
  }
12126
12111
  ),
12127
12112
  renderInputMessage(tip, tipId),
12128
- /* @__PURE__ */ jsx246(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx246(
12113
+ /* @__PURE__ */ jsx245(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx245(
12129
12114
  GroupContainer,
12130
12115
  {
12131
12116
  role: "group",
@@ -12143,7 +12128,7 @@ var CheckboxGroup = (props) => {
12143
12128
  CheckboxGroup.displayName = "CheckboxGroup";
12144
12129
 
12145
12130
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
12146
- import { forwardRef as forwardRef54, useId as useId19 } from "react";
12131
+ import { forwardRef as forwardRef53, useId as useId19 } from "react";
12147
12132
 
12148
12133
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
12149
12134
  import { createContext as createContext8, useContext as useContext8 } from "react";
@@ -12153,7 +12138,7 @@ var useRadioButtonGroup = () => {
12153
12138
  };
12154
12139
 
12155
12140
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
12156
- import { jsx as jsx247, jsxs as jsxs65 } from "react/jsx-runtime";
12141
+ import { jsx as jsx246, jsxs as jsxs65 } from "react/jsx-runtime";
12157
12142
  var isValueEqualToGroupValueOrFalsy = (value, group4) => {
12158
12143
  if (typeof value !== "undefined" && value !== null && group4) {
12159
12144
  if (typeof value === "number") {
@@ -12163,7 +12148,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group4) => {
12163
12148
  }
12164
12149
  return !!value;
12165
12150
  };
12166
- var RadioButton = forwardRef54(
12151
+ var RadioButton = forwardRef53(
12167
12152
  (props, ref) => {
12168
12153
  const {
12169
12154
  id,
@@ -12224,9 +12209,9 @@ var RadioButton = forwardRef54(
12224
12209
  htmlFor: uniqueId,
12225
12210
  $controlType: "radio",
12226
12211
  children: [
12227
- /* @__PURE__ */ jsx247(HiddenInput, { ...inputProps, ref }),
12228
- /* @__PURE__ */ jsx247(CustomSelectionControl, { $controlType: "radio" }),
12229
- /* @__PURE__ */ jsx247(Typography, { as: "span", children: children != null ? children : label3 })
12212
+ /* @__PURE__ */ jsx246(HiddenInput, { ...inputProps, ref }),
12213
+ /* @__PURE__ */ jsx246(CustomSelectionControl, { $controlType: "radio" }),
12214
+ /* @__PURE__ */ jsx246(Typography, { as: "span", children: children != null ? children : label3 })
12230
12215
  ]
12231
12216
  }
12232
12217
  );
@@ -12236,11 +12221,11 @@ RadioButton.displayName = "RadioButton";
12236
12221
 
12237
12222
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
12238
12223
  import {
12239
- forwardRef as forwardRef55,
12224
+ forwardRef as forwardRef54,
12240
12225
  useId as useId20,
12241
12226
  useState as useState25
12242
12227
  } from "react";
12243
- import { jsx as jsx248, jsxs as jsxs66 } from "react/jsx-runtime";
12228
+ import { jsx as jsx247, jsxs as jsxs66 } from "react/jsx-runtime";
12244
12229
  var RadioButtonGroupInner = (props, ref) => {
12245
12230
  const {
12246
12231
  name,
@@ -12302,12 +12287,12 @@ var RadioButtonGroupInner = (props, ref) => {
12302
12287
  children: [
12303
12288
  label3,
12304
12289
  " ",
12305
- showRequiredMarker && /* @__PURE__ */ jsx248(RequiredMarker, {})
12290
+ showRequiredMarker && /* @__PURE__ */ jsx247(RequiredMarker, {})
12306
12291
  ]
12307
12292
  }
12308
12293
  ),
12309
12294
  renderInputMessage(tip, tipId),
12310
- /* @__PURE__ */ jsx248(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx248(
12295
+ /* @__PURE__ */ jsx247(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx247(
12311
12296
  GroupContainer,
12312
12297
  {
12313
12298
  role: "radiogroup",
@@ -12323,16 +12308,16 @@ var RadioButtonGroupInner = (props, ref) => {
12323
12308
  }
12324
12309
  );
12325
12310
  };
12326
- var RadioButtonGroup = forwardRef55(RadioButtonGroupInner);
12311
+ var RadioButtonGroup = forwardRef54(RadioButtonGroupInner);
12327
12312
  RadioButtonGroup.displayName = "RadioButtonGroup";
12328
12313
 
12329
12314
  // src/components/SkipToContent/SkipToContent.tsx
12330
- import { forwardRef as forwardRef56 } from "react";
12331
- import styled77 from "styled-components";
12315
+ import { forwardRef as forwardRef55 } from "react";
12316
+ import styled76 from "styled-components";
12332
12317
 
12333
12318
  // src/components/SkipToContent/SkipToContent.tokens.tsx
12334
- import { ddsBaseTokens as ddsBaseTokens54 } from "@norges-domstoler/dds-design-tokens";
12335
- var { colors: colors30, spacing: spacing34 } = ddsBaseTokens54;
12319
+ import { ddsBaseTokens as ddsBaseTokens55 } from "@norges-domstoler/dds-design-tokens";
12320
+ var { colors: colors30, spacing: spacing34 } = ddsBaseTokens55;
12336
12321
  var link3 = {
12337
12322
  base: {
12338
12323
  color: colors30.DdsColorNeutralsWhite
@@ -12351,9 +12336,9 @@ var skipToContentTokens = {
12351
12336
  };
12352
12337
 
12353
12338
  // src/components/SkipToContent/SkipToContent.tsx
12354
- import { jsx as jsx249 } from "react/jsx-runtime";
12339
+ import { jsx as jsx248 } from "react/jsx-runtime";
12355
12340
  var { wrapper: wrapper6, link: link4 } = skipToContentTokens;
12356
- var Wrapper5 = styled77.div`
12341
+ var Wrapper5 = styled76.div`
12357
12342
  box-sizing: border-box;
12358
12343
  position: absolute;
12359
12344
  top: ${({ $top: top }) => top};
@@ -12380,7 +12365,7 @@ var Wrapper5 = styled77.div`
12380
12365
  opacity: 1;
12381
12366
  }
12382
12367
  `;
12383
- var Link4 = styled77.a`
12368
+ var Link4 = styled76.a`
12384
12369
  text-decoration: none;
12385
12370
  color: ${link4.base.color};
12386
12371
  ${getFontStyling(defaultTypographyType)}
@@ -12395,7 +12380,7 @@ var Link4 = styled77.a`
12395
12380
  color: ${link4.base.color};
12396
12381
  }
12397
12382
  `;
12398
- var SkipToContent = forwardRef56(
12383
+ var SkipToContent = forwardRef55(
12399
12384
  (props, ref) => {
12400
12385
  const {
12401
12386
  text = "Til hovedinnhold",
@@ -12410,13 +12395,13 @@ var SkipToContent = forwardRef56(
12410
12395
  style,
12411
12396
  ...restHtmlProps
12412
12397
  } = htmlProps;
12413
- return /* @__PURE__ */ jsx249(
12398
+ return /* @__PURE__ */ jsx248(
12414
12399
  Wrapper5,
12415
12400
  {
12416
12401
  $top: top,
12417
12402
  className: cn(className, htmlPropsClassName),
12418
12403
  style,
12419
- children: /* @__PURE__ */ jsx249(Link4, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
12404
+ children: /* @__PURE__ */ jsx248(Link4, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
12420
12405
  }
12421
12406
  );
12422
12407
  }
@@ -12424,14 +12409,14 @@ var SkipToContent = forwardRef56(
12424
12409
  SkipToContent.displayName = "SkipToContent";
12425
12410
 
12426
12411
  // src/components/SplitButton/SplitButton.tsx
12427
- import { forwardRef as forwardRef57, useState as useState26 } from "react";
12428
- import styled78 from "styled-components";
12412
+ import { forwardRef as forwardRef56, useState as useState26 } from "react";
12413
+ import styled77 from "styled-components";
12429
12414
 
12430
12415
  // src/components/SplitButton/SplitButton.tokens.ts
12431
- import { ddsBaseTokens as ddsBaseTokens55 } from "@norges-domstoler/dds-design-tokens";
12416
+ import { ddsBaseTokens as ddsBaseTokens56 } from "@norges-domstoler/dds-design-tokens";
12432
12417
  var mainButton = {
12433
12418
  primary: {
12434
- borderLeft: `1px solid ${ddsBaseTokens55.colors.DdsColorNeutralsWhite}`
12419
+ borderLeft: `1px solid ${ddsBaseTokens56.colors.DdsColorNeutralsWhite}`
12435
12420
  }
12436
12421
  };
12437
12422
  var tokens3 = {
@@ -12439,11 +12424,11 @@ var tokens3 = {
12439
12424
  };
12440
12425
 
12441
12426
  // src/components/SplitButton/SplitButton.tsx
12442
- import { jsx as jsx250, jsxs as jsxs67 } from "react/jsx-runtime";
12443
- var Container14 = styled78.div`
12427
+ import { jsx as jsx249, jsxs as jsxs67 } from "react/jsx-runtime";
12428
+ var Container14 = styled77.div`
12444
12429
  display: flex;
12445
12430
  `;
12446
- var MainButton = styled78(Button)`
12431
+ var MainButton = styled77(Button)`
12447
12432
  border-top-right-radius: 0;
12448
12433
  border-bottom-right-radius: 0;
12449
12434
  border-right: none;
@@ -12452,7 +12437,7 @@ var MainButton = styled78(Button)`
12452
12437
  z-index: 0;
12453
12438
  }
12454
12439
  `;
12455
- var OptionButton = styled78(Button)`
12440
+ var OptionButton = styled77(Button)`
12456
12441
  border-top-left-radius: 0;
12457
12442
  border-bottom-left-radius: 0;
12458
12443
 
@@ -12470,7 +12455,7 @@ var OptionButton = styled78(Button)`
12470
12455
  ${(props) => props.purpose === "primary" && `border-left: ${tokens3.mainButton.primary.borderLeft}`};
12471
12456
  }
12472
12457
  `;
12473
- var SplitButton = forwardRef57(
12458
+ var SplitButton = forwardRef56(
12474
12459
  (props, ref) => {
12475
12460
  const {
12476
12461
  size: size2,
@@ -12485,7 +12470,7 @@ var SplitButton = forwardRef57(
12485
12470
  size: size2
12486
12471
  };
12487
12472
  return /* @__PURE__ */ jsxs67(Container14, { ref, children: [
12488
- /* @__PURE__ */ jsx250(
12473
+ /* @__PURE__ */ jsx249(
12489
12474
  MainButton,
12490
12475
  {
12491
12476
  ...buttonStyleProps,
@@ -12494,7 +12479,7 @@ var SplitButton = forwardRef57(
12494
12479
  }
12495
12480
  ),
12496
12481
  /* @__PURE__ */ jsxs67(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
12497
- /* @__PURE__ */ jsx250(
12482
+ /* @__PURE__ */ jsx249(
12498
12483
  OptionButton,
12499
12484
  {
12500
12485
  ...buttonStyleProps,
@@ -12503,7 +12488,7 @@ var SplitButton = forwardRef57(
12503
12488
  purpose
12504
12489
  }
12505
12490
  ),
12506
- /* @__PURE__ */ jsx250(OverflowMenu, { items: secondaryActions, placement: "bottom-end" })
12491
+ /* @__PURE__ */ jsx249(OverflowMenu, { items: secondaryActions, placement: "bottom-end" })
12507
12492
  ] })
12508
12493
  ] });
12509
12494
  }
@@ -12515,12 +12500,12 @@ import {
12515
12500
  Children as Children6,
12516
12501
  Fragment as Fragment11,
12517
12502
  cloneElement as cloneElement7,
12518
- forwardRef as forwardRef65,
12503
+ forwardRef as forwardRef64,
12519
12504
  isValidElement as isValidElement7,
12520
12505
  useEffect as useEffect26,
12521
12506
  useState as useState28
12522
12507
  } from "react";
12523
- import styled87 from "styled-components";
12508
+ import styled86 from "styled-components";
12524
12509
 
12525
12510
  // src/components/Table/collapsible/Table.context.tsx
12526
12511
  import { createContext as createContext9, useContext as useContext9 } from "react";
@@ -12531,38 +12516,38 @@ var CollapsibleTableContext = createContext9({
12531
12516
  var useCollapsibleTableContext = () => useContext9(CollapsibleTableContext);
12532
12517
 
12533
12518
  // src/components/Table/normal/Body.tsx
12534
- import { forwardRef as forwardRef58 } from "react";
12535
- import styled79 from "styled-components";
12536
- import { jsx as jsx251 } from "react/jsx-runtime";
12537
- var StyledBody = styled79.tbody``;
12538
- var Body2 = forwardRef58(
12519
+ import { forwardRef as forwardRef57 } from "react";
12520
+ import styled78 from "styled-components";
12521
+ import { jsx as jsx250 } from "react/jsx-runtime";
12522
+ var StyledBody = styled78.tbody``;
12523
+ var Body2 = forwardRef57(
12539
12524
  ({ children, ...rest }, ref) => {
12540
12525
  const bodyProps = {
12541
12526
  ...rest
12542
12527
  };
12543
- return /* @__PURE__ */ jsx251(StyledBody, { ref, ...bodyProps, children });
12528
+ return /* @__PURE__ */ jsx250(StyledBody, { ref, ...bodyProps, children });
12544
12529
  }
12545
12530
  );
12546
12531
  Body2.displayName = "Table.Body";
12547
12532
 
12548
12533
  // src/components/Table/normal/Cell.tsx
12549
12534
  import {
12550
- forwardRef as forwardRef60
12535
+ forwardRef as forwardRef59
12551
12536
  } from "react";
12552
- import styled81, { css as css34 } from "styled-components";
12537
+ import styled80, { css as css33 } from "styled-components";
12553
12538
 
12554
12539
  // src/components/Table/normal/Head.tsx
12555
12540
  import {
12556
12541
  createContext as createContext10,
12557
- forwardRef as forwardRef59,
12542
+ forwardRef as forwardRef58,
12558
12543
  useContext as useContext10
12559
12544
  } from "react";
12560
- import styled80 from "styled-components";
12561
- import { jsx as jsx252 } from "react/jsx-runtime";
12562
- var StyledHead = styled80.thead``;
12563
- var Head = forwardRef59(
12545
+ import styled79 from "styled-components";
12546
+ import { jsx as jsx251 } from "react/jsx-runtime";
12547
+ var StyledHead = styled79.thead``;
12548
+ var Head = forwardRef58(
12564
12549
  ({ children, ...rest }, ref) => {
12565
- return /* @__PURE__ */ jsx252(StyledHead, { ref, ...rest, children: /* @__PURE__ */ jsx252(HeadContext.Provider, { value: true, children }) });
12550
+ return /* @__PURE__ */ jsx251(StyledHead, { ref, ...rest, children: /* @__PURE__ */ jsx251(HeadContext.Provider, { value: true, children }) });
12566
12551
  }
12567
12552
  );
12568
12553
  Head.displayName = "Table.Head";
@@ -12573,8 +12558,8 @@ function useIsInTableHead() {
12573
12558
  }
12574
12559
 
12575
12560
  // src/components/Table/normal/Table.tokens.tsx
12576
- import { ddsBaseTokens as ddsBaseTokens56 } from "@norges-domstoler/dds-design-tokens";
12577
- var { font: font2, colors: colors31, border: border13, spacing: spacing35, iconSizes: iconSizes3, borderRadius: borderRadius9 } = ddsBaseTokens56;
12561
+ import { ddsBaseTokens as ddsBaseTokens57 } from "@norges-domstoler/dds-design-tokens";
12562
+ var { font: font2, colors: colors31, border: border13, spacing: spacing35, iconSizes: iconSizes3, borderRadius: borderRadius9 } = ddsBaseTokens57;
12578
12563
  var row = {
12579
12564
  body: {
12580
12565
  odd: {
@@ -12645,20 +12630,20 @@ var tableTokens = {
12645
12630
  };
12646
12631
 
12647
12632
  // src/components/Table/normal/Cell.tsx
12648
- import { jsx as jsx253 } from "react/jsx-runtime";
12633
+ import { jsx as jsx252 } from "react/jsx-runtime";
12649
12634
  var { cell: cell3 } = tableTokens;
12650
12635
  var getLayoutStyle = (layout) => {
12651
12636
  switch (layout) {
12652
12637
  case "center":
12653
- return css34`
12638
+ return css33`
12654
12639
  justify-content: center;
12655
12640
  `;
12656
12641
  case "right":
12657
- return css34`
12642
+ return css33`
12658
12643
  justify-content: flex-end;
12659
12644
  `;
12660
12645
  case "text and icon":
12661
- return css34`
12646
+ return css33`
12662
12647
  gap: ${cell3.layout.textAndIcon.gap};
12663
12648
  `;
12664
12649
  default:
@@ -12666,12 +12651,12 @@ var getLayoutStyle = (layout) => {
12666
12651
  return;
12667
12652
  }
12668
12653
  };
12669
- var StyledCell = styled81.td`
12670
- ${({ $type: type }) => type === "head" && css34`
12654
+ var StyledCell = styled80.td`
12655
+ ${({ $type: type }) => type === "head" && css33`
12671
12656
  background-color: ${cell3.head.backgroundColor};
12672
12657
  `}
12673
12658
  `;
12674
- var InnerCell = styled81.div`
12659
+ var InnerCell = styled80.div`
12675
12660
  display: flex;
12676
12661
  align-items: center;
12677
12662
  ${({ $layout: layout }) => getLayoutStyle(layout)}
@@ -12685,49 +12670,49 @@ var getTableCellType = (type) => {
12685
12670
  return "td";
12686
12671
  }
12687
12672
  };
12688
- var Cell2 = forwardRef60(
12673
+ var Cell2 = forwardRef59(
12689
12674
  ({ children, type: _type, layout = "left", collapsibleProps, ...rest }, ref) => {
12690
12675
  const isInHead = useIsInTableHead();
12691
12676
  const type = _type != null ? _type : isInHead ? "head" : "data";
12692
12677
  const as = getTableCellType(type);
12693
12678
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
12694
- return isCollapsibleChild ? /* @__PURE__ */ jsx253(DescriptionListDesc, { children }) : /* @__PURE__ */ jsx253(StyledCell, { as, ref, $type: type, ...rest, children: /* @__PURE__ */ jsx253(InnerCell, { $layout: layout, children }) });
12679
+ return isCollapsibleChild ? /* @__PURE__ */ jsx252(DescriptionListDesc, { children }) : /* @__PURE__ */ jsx252(StyledCell, { as, ref, $type: type, ...rest, children: /* @__PURE__ */ jsx252(InnerCell, { $layout: layout, children }) });
12695
12680
  }
12696
12681
  );
12697
12682
  Cell2.displayName = "Table.Cell";
12698
12683
 
12699
12684
  // src/components/Table/normal/Foot.tsx
12700
- import { forwardRef as forwardRef61 } from "react";
12701
- import styled82 from "styled-components";
12702
- import { jsx as jsx254 } from "react/jsx-runtime";
12703
- var StyledFoot = styled82.tfoot``;
12704
- var Foot = forwardRef61(
12685
+ import { forwardRef as forwardRef60 } from "react";
12686
+ import styled81 from "styled-components";
12687
+ import { jsx as jsx253 } from "react/jsx-runtime";
12688
+ var StyledFoot = styled81.tfoot``;
12689
+ var Foot = forwardRef60(
12705
12690
  ({ children, ...rest }, ref) => {
12706
- return /* @__PURE__ */ jsx254(StyledFoot, { ref, ...rest, children });
12691
+ return /* @__PURE__ */ jsx253(StyledFoot, { ref, ...rest, children });
12707
12692
  }
12708
12693
  );
12709
12694
  Foot.displayName = "Table.Foot";
12710
12695
 
12711
12696
  // src/components/Table/normal/Row.tsx
12712
- import { forwardRef as forwardRef62 } from "react";
12697
+ import { forwardRef as forwardRef61 } from "react";
12713
12698
 
12714
12699
  // src/components/Table/normal/Table.styles.tsx
12715
- import styled83, { css as css35 } from "styled-components";
12700
+ import styled82, { css as css34 } from "styled-components";
12716
12701
  var { row: row2 } = tableTokens;
12717
12702
  var bodyRowStyles = (mode, selected) => {
12718
- return css35`
12719
- ${mode === "sum" && css35`
12703
+ return css34`
12704
+ ${mode === "sum" && css34`
12720
12705
  font-weight: 600;
12721
12706
  border-top: ${row2.body.mode.sum.borderTop};
12722
12707
  border-bottom: ${row2.body.mode.sum.borderBottom};
12723
12708
  background-color: ${row2.body.mode.sum.backgroundColor};
12724
12709
  `}
12725
- ${selected && css35`
12710
+ ${selected && css34`
12726
12711
  background-color: ${row2.body.selected.backgroundColor};
12727
12712
  `}
12728
12713
  `;
12729
12714
  };
12730
- var StyledRow = styled83.tr`
12715
+ var StyledRow = styled82.tr`
12731
12716
  @media (prefers-reduced-motion: no-preference) {
12732
12717
  transition:
12733
12718
  background-color 0.2s,
@@ -12737,11 +12722,11 @@ var StyledRow = styled83.tr`
12737
12722
 
12738
12723
  ${getFontStyling(defaultTypographyType, true)}
12739
12724
 
12740
- ${({ type }) => type === "head" && css35`
12725
+ ${({ type }) => type === "head" && css34`
12741
12726
  font-weight: 600;
12742
12727
  text-align: left;
12743
12728
  `}
12744
- ${({ type, $mode: mode, $selected: selected, $hoverable: hoverable }) => type === "body" && css35`
12729
+ ${({ type, $mode: mode, $selected: selected, $hoverable: hoverable }) => type === "body" && css34`
12745
12730
  &:nth-of-type(even) {
12746
12731
  background-color: ${row2.body.even.backgroundColor};
12747
12732
  ${bodyRowStyles(mode, selected)}
@@ -12752,7 +12737,7 @@ var StyledRow = styled83.tr`
12752
12737
  ${bodyRowStyles(mode, selected)}
12753
12738
  }
12754
12739
 
12755
- ${hoverable && css35`
12740
+ ${hoverable && css34`
12756
12741
  &:hover {
12757
12742
  background-color: ${row2.body.hover.backgroundColor};
12758
12743
  }
@@ -12764,12 +12749,12 @@ var StyledRow = styled83.tr`
12764
12749
  `;
12765
12750
 
12766
12751
  // src/components/Table/normal/Row.tsx
12767
- import { jsx as jsx255 } from "react/jsx-runtime";
12768
- var Row = forwardRef62(
12752
+ import { jsx as jsx254 } from "react/jsx-runtime";
12753
+ var Row = forwardRef61(
12769
12754
  ({ type: _type, mode = "normal", hoverable, selected, children, ...rest }, ref) => {
12770
12755
  const isInHeader = useIsInTableHead();
12771
12756
  const type = _type != null ? _type : isInHeader ? "head" : "body";
12772
- return /* @__PURE__ */ jsx255(
12757
+ return /* @__PURE__ */ jsx254(
12773
12758
  StyledRow,
12774
12759
  {
12775
12760
  type,
@@ -12786,11 +12771,11 @@ var Row = forwardRef62(
12786
12771
  Row.displayName = "Table.Row";
12787
12772
 
12788
12773
  // src/components/Table/normal/SortCell.tsx
12789
- import { forwardRef as forwardRef63 } from "react";
12790
- import styled84 from "styled-components";
12791
- import { jsx as jsx256, jsxs as jsxs68 } from "react/jsx-runtime";
12774
+ import { forwardRef as forwardRef62 } from "react";
12775
+ import styled83 from "styled-components";
12776
+ import { jsx as jsx255, jsxs as jsxs68 } from "react/jsx-runtime";
12792
12777
  var { cell: cell4 } = tableTokens;
12793
- var StyledButton5 = styled84.button`
12778
+ var StyledButton5 = styled83.button`
12794
12779
  ${normalizeButton}
12795
12780
  user-select: text;
12796
12781
  ${removeButtonStyling}
@@ -12803,12 +12788,12 @@ var StyledButton5 = styled84.button`
12803
12788
  `;
12804
12789
  var makeSortIcon = (isSorted, sortOrder) => {
12805
12790
  if (!isSorted || !sortOrder) {
12806
- return /* @__PURE__ */ jsx256(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12791
+ return /* @__PURE__ */ jsx255(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12807
12792
  }
12808
- return sortOrder === "ascending" ? /* @__PURE__ */ jsx256(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx256(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12793
+ return sortOrder === "ascending" ? /* @__PURE__ */ jsx255(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx255(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12809
12794
  };
12810
- var SortCell = forwardRef63(
12811
- ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx256(
12795
+ var SortCell = forwardRef62(
12796
+ ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx255(
12812
12797
  Cell2,
12813
12798
  {
12814
12799
  ref,
@@ -12833,11 +12818,11 @@ var SortCell = forwardRef63(
12833
12818
  SortCell.displayName = "Table.SortCell";
12834
12819
 
12835
12820
  // src/components/Table/normal/Table.tsx
12836
- import { forwardRef as forwardRef64 } from "react";
12837
- import styled85, { css as css36 } from "styled-components";
12838
- import { jsx as jsx257 } from "react/jsx-runtime";
12821
+ import { forwardRef as forwardRef63 } from "react";
12822
+ import styled84, { css as css35 } from "styled-components";
12823
+ import { jsx as jsx256 } from "react/jsx-runtime";
12839
12824
  var { cell: cell5, row: row3 } = tableTokens;
12840
- var StyledTable = styled85.table`
12825
+ var StyledTable = styled84.table`
12841
12826
  border-spacing: 0;
12842
12827
  border-collapse: collapse;
12843
12828
  *::selection {
@@ -12845,13 +12830,13 @@ var StyledTable = styled85.table`
12845
12830
  }
12846
12831
  ${scrollbarStyling.webkit}
12847
12832
  ${scrollbarStyling.firefox}
12848
- ${({ $density }) => css36`
12833
+ ${({ $density }) => css35`
12849
12834
  td,
12850
12835
  th {
12851
12836
  padding: ${cell5.density[$density].padding};
12852
12837
  }
12853
12838
  `}
12854
- ${({ $density }) => $density === "extraCompact" && css36`
12839
+ ${({ $density }) => $density === "extraCompact" && css35`
12855
12840
  th {
12856
12841
  background-color: ${row3.head.extraCompact.backgroundColor};
12857
12842
  font-size: ${row3.head.extraCompact.fontSize};
@@ -12865,7 +12850,7 @@ var StyledTable = styled85.table`
12865
12850
  }
12866
12851
  }
12867
12852
  `}
12868
- ${({ $stickyHeader }) => $stickyHeader && css36`
12853
+ ${({ $stickyHeader }) => $stickyHeader && css35`
12869
12854
  tr[type='head'] {
12870
12855
  th[type='head'] {
12871
12856
  position: sticky;
@@ -12874,15 +12859,15 @@ var StyledTable = styled85.table`
12874
12859
  }
12875
12860
  }
12876
12861
  `}
12877
- ${({ $withDividers }) => $withDividers && css36`
12862
+ ${({ $withDividers }) => $withDividers && css35`
12878
12863
  tr[type='body'] {
12879
12864
  border-bottom: ${row3.body.withDividers.borderBottom};
12880
12865
  }
12881
12866
  `}
12882
12867
  `;
12883
- var Table = forwardRef64(
12868
+ var Table = forwardRef63(
12884
12869
  ({ density = "normal", stickyHeader, withDividers, children, ...rest }, ref) => {
12885
- return /* @__PURE__ */ jsx257(
12870
+ return /* @__PURE__ */ jsx256(
12886
12871
  StyledTable,
12887
12872
  {
12888
12873
  ...rest,
@@ -12899,10 +12884,10 @@ Table.displayName = "Table";
12899
12884
 
12900
12885
  // src/components/Table/normal/TableWrapper.tsx
12901
12886
  import { useEffect as useEffect25, useRef as useRef30, useState as useState27 } from "react";
12902
- import styled86, { css as css37 } from "styled-components";
12903
- import { jsx as jsx258 } from "react/jsx-runtime";
12904
- var Wrapper6 = styled86.div`
12905
- ${({ $overflowX }) => $overflowX && css37`
12887
+ import styled85, { css as css36 } from "styled-components";
12888
+ import { jsx as jsx257 } from "react/jsx-runtime";
12889
+ var Wrapper6 = styled85.div`
12890
+ ${({ $overflowX }) => $overflowX && css36`
12906
12891
  overflow-x: auto;
12907
12892
  `}
12908
12893
  ${scrollbarStyling.webkit}
@@ -12929,7 +12914,7 @@ var TableWrapper = ({ children, ...rest }) => {
12929
12914
  window.addEventListener("resize", handleResize);
12930
12915
  return () => window.removeEventListener("resize", handleResize);
12931
12916
  });
12932
- return /* @__PURE__ */ jsx258(Wrapper6, { $overflowX: overflowX, ref: wrapperRef, ...rest, children });
12917
+ return /* @__PURE__ */ jsx257(Wrapper6, { $overflowX: overflowX, ref: wrapperRef, ...rest, children });
12933
12918
  };
12934
12919
  TableWrapper.displayName = "Table.Wrapper";
12935
12920
 
@@ -12944,9 +12929,9 @@ Table2.Row = Row;
12944
12929
  Table2.Foot = Foot;
12945
12930
 
12946
12931
  // src/components/Table/collapsible/CollapsibleRow.tsx
12947
- import { Fragment as Fragment12, jsx as jsx259, jsxs as jsxs69 } from "react/jsx-runtime";
12932
+ import { Fragment as Fragment12, jsx as jsx258, jsxs as jsxs69 } from "react/jsx-runtime";
12948
12933
  var { collapseButton: collapseButton2 } = tableTokens;
12949
- var CollapseButton = styled87.button`
12934
+ var CollapseButton = styled86.button`
12950
12935
  ${removeButtonStyling}
12951
12936
  margin-left: auto;
12952
12937
  margin-right: auto;
@@ -12961,12 +12946,12 @@ var CollapseButton = styled87.button`
12961
12946
  ${focusVisible}
12962
12947
  }
12963
12948
  `;
12964
- var DescriptionListCell = styled87(Cell2)`
12949
+ var DescriptionListCell = styled86(Cell2)`
12965
12950
  & > div {
12966
12951
  display: block;
12967
12952
  }
12968
12953
  `;
12969
- var CollapsibleRow = forwardRef65(
12954
+ var CollapsibleRow = forwardRef64(
12970
12955
  ({ type: _type, mode = "normal", selected, hoverable, children, ...rest }, ref) => {
12971
12956
  const isInHead = useIsInTableHead();
12972
12957
  const type = _type != null ? _type : isInHead ? "head" : "body";
@@ -12995,24 +12980,24 @@ var CollapsibleRow = forwardRef65(
12995
12980
  const id = derivativeIdGenerator(prefix2, index.toString());
12996
12981
  collapsibleIds.push(id);
12997
12982
  return /* @__PURE__ */ jsxs69(Fragment11, { children: [
12998
- /* @__PURE__ */ jsx259(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
12983
+ /* @__PURE__ */ jsx258(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
12999
12984
  isValidElement7(child) && cloneElement7(child, {
13000
12985
  collapsibleProps: { isCollapsibleChild: true }
13001
12986
  })
13002
12987
  ] }, `DL-${index}`);
13003
12988
  }) : null;
13004
- 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;
12989
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx258(StyledRow, { type, children: /* @__PURE__ */ jsx258(DescriptionListCell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx258(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
13005
12990
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
13006
12991
  return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
13007
12992
  });
13008
12993
  const headerRow = () => {
13009
12994
  if (type !== "head" || !isCollapsed)
13010
12995
  return null;
13011
- return /* @__PURE__ */ jsx259(StyledRow, { ref, type, ...rowProps, children: /* @__PURE__ */ jsxs69(Fragment12, { children: [
12996
+ return /* @__PURE__ */ jsx258(StyledRow, { ref, type, ...rowProps, children: /* @__PURE__ */ jsxs69(Fragment12, { children: [
13012
12997
  definingColumnCells,
13013
12998
  /* @__PURE__ */ jsxs69(Table2.Cell, { type: "head", layout: "center", children: [
13014
12999
  "Utvid",
13015
- /* @__PURE__ */ jsx259(VisuallyHidden, { as: "span", children: "raden" })
13000
+ /* @__PURE__ */ jsx258(VisuallyHidden, { as: "span", children: "raden" })
13016
13001
  ] })
13017
13002
  ] }) });
13018
13003
  };
@@ -13029,13 +13014,13 @@ var CollapsibleRow = forwardRef65(
13029
13014
  "data-isopencollapsibleheader": !childrenCollapsed && true,
13030
13015
  children: [
13031
13016
  definingColumnCells,
13032
- /* @__PURE__ */ jsx259(Table2.Cell, { children: /* @__PURE__ */ jsx259(
13017
+ /* @__PURE__ */ jsx258(Table2.Cell, { children: /* @__PURE__ */ jsx258(
13033
13018
  CollapseButton,
13034
13019
  {
13035
13020
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
13036
13021
  "aria-expanded": !childrenCollapsed,
13037
13022
  "aria-controls": idList,
13038
- children: /* @__PURE__ */ jsx259(
13023
+ children: /* @__PURE__ */ jsx258(
13039
13024
  AnimatedChevronUpDown,
13040
13025
  {
13041
13026
  isUp: childrenCollapsed ? false : true,
@@ -13055,24 +13040,24 @@ var CollapsibleRow = forwardRef65(
13055
13040
  rowWithChevron(),
13056
13041
  childrenCollapsed ? null : collapsedRows
13057
13042
  ] })
13058
- ] }) : /* @__PURE__ */ jsx259(StyledRow, { ref, type, ...rowProps, children });
13043
+ ] }) : /* @__PURE__ */ jsx258(StyledRow, { ref, type, ...rowProps, children });
13059
13044
  }
13060
13045
  );
13061
13046
  CollapsibleRow.displayName = "CollapsibleTable.Row";
13062
13047
 
13063
13048
  // src/components/Table/collapsible/CollapsibleTable.tsx
13064
- import { forwardRef as forwardRef66 } from "react";
13065
- import styled88, { css as css38 } from "styled-components";
13066
- import { jsx as jsx260 } from "react/jsx-runtime";
13067
- var StyledTable2 = styled88(Table2)`
13049
+ import { forwardRef as forwardRef65 } from "react";
13050
+ import styled87, { css as css37 } from "styled-components";
13051
+ import { jsx as jsx259 } from "react/jsx-runtime";
13052
+ var StyledTable2 = styled87(Table2)`
13068
13053
  width: 100%;
13069
- ${({ withDividers }) => withDividers && css38`
13054
+ ${({ withDividers }) => withDividers && css37`
13070
13055
  tr[data-isopencollapsibleheader='true'] {
13071
13056
  border-bottom: none;
13072
13057
  }
13073
13058
  `}
13074
13059
  `;
13075
- var CollapsibleTable = forwardRef66((props, ref) => {
13060
+ var CollapsibleTable = forwardRef65((props, ref) => {
13076
13061
  const {
13077
13062
  density = "normal",
13078
13063
  children,
@@ -13081,7 +13066,7 @@ var CollapsibleTable = forwardRef66((props, ref) => {
13081
13066
  definingColumnIndex = [0],
13082
13067
  ...rest
13083
13068
  } = props;
13084
- return /* @__PURE__ */ jsx260(
13069
+ return /* @__PURE__ */ jsx259(
13085
13070
  CollapsibleTableContext.Provider,
13086
13071
  {
13087
13072
  value: {
@@ -13089,7 +13074,7 @@ var CollapsibleTable = forwardRef66((props, ref) => {
13089
13074
  headerValues,
13090
13075
  definingColumnIndex
13091
13076
  },
13092
- children: /* @__PURE__ */ jsx260(StyledTable2, { ref, density, ...rest, children })
13077
+ children: /* @__PURE__ */ jsx259(StyledTable2, { ref, density, ...rest, children })
13093
13078
  }
13094
13079
  );
13095
13080
  });
@@ -13101,13 +13086,13 @@ CollapsibleTable2.Row = CollapsibleRow;
13101
13086
 
13102
13087
  // src/components/Tabs/Tabs.tsx
13103
13088
  import {
13104
- forwardRef as forwardRef67,
13089
+ forwardRef as forwardRef66,
13105
13090
  useEffect as useEffect27,
13106
13091
  useId as useId21,
13107
13092
  useRef as useRef31,
13108
13093
  useState as useState29
13109
13094
  } from "react";
13110
- import styled89, { css as css39 } from "styled-components";
13095
+ import styled88, { css as css38 } from "styled-components";
13111
13096
 
13112
13097
  // src/components/Tabs/Tabs.context.tsx
13113
13098
  import { createContext as createContext11, useContext as useContext11 } from "react";
@@ -13124,13 +13109,13 @@ var TabsContext = createContext11({
13124
13109
  var useTabsContext = () => useContext11(TabsContext);
13125
13110
 
13126
13111
  // src/components/Tabs/Tabs.tsx
13127
- import { jsx as jsx261 } from "react/jsx-runtime";
13128
- var Container15 = styled89.div`
13129
- ${({ $width }) => $width && css39`
13112
+ import { jsx as jsx260 } from "react/jsx-runtime";
13113
+ var Container15 = styled88.div`
13114
+ ${({ $width }) => $width && css38`
13130
13115
  width: ${$width};
13131
13116
  `};
13132
13117
  `;
13133
- var Tabs = forwardRef67((props, ref) => {
13118
+ var Tabs = forwardRef66((props, ref) => {
13134
13119
  const {
13135
13120
  id,
13136
13121
  activeTab,
@@ -13161,7 +13146,7 @@ var Tabs = forwardRef67((props, ref) => {
13161
13146
  ...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
13162
13147
  ref
13163
13148
  };
13164
- return /* @__PURE__ */ jsx261(
13149
+ return /* @__PURE__ */ jsx260(
13165
13150
  TabsContext.Provider,
13166
13151
  {
13167
13152
  value: {
@@ -13174,7 +13159,7 @@ var Tabs = forwardRef67((props, ref) => {
13174
13159
  setHasTabFocus,
13175
13160
  tabContentDirection
13176
13161
  },
13177
- children: /* @__PURE__ */ jsx261(Container15, { ...containerProps, $width: width, children })
13162
+ children: /* @__PURE__ */ jsx260(Container15, { ...containerProps, $width: width, children })
13178
13163
  }
13179
13164
  );
13180
13165
  });
@@ -13182,16 +13167,16 @@ Tabs.displayName = "Tabs";
13182
13167
 
13183
13168
  // src/components/Tabs/Tab.tsx
13184
13169
  import {
13185
- forwardRef as forwardRef68,
13170
+ forwardRef as forwardRef67,
13186
13171
  useCallback as useCallback9,
13187
13172
  useEffect as useEffect28,
13188
13173
  useRef as useRef32
13189
13174
  } from "react";
13190
- import styled90, { css as css40 } from "styled-components";
13175
+ import styled89, { css as css39 } from "styled-components";
13191
13176
 
13192
13177
  // src/components/Tabs/Tabs.tokens.tsx
13193
- import { ddsBaseTokens as ddsBaseTokens57 } from "@norges-domstoler/dds-design-tokens";
13194
- var { border: border14, spacing: spacing36, colors: colors32 } = ddsBaseTokens57;
13178
+ import { ddsBaseTokens as ddsBaseTokens58 } from "@norges-domstoler/dds-design-tokens";
13179
+ var { border: border14, spacing: spacing36, colors: colors32 } = ddsBaseTokens58;
13195
13180
  var tabList = {
13196
13181
  borderBottom: `${border14.BordersDdsBorderStyleLightStrokeWeight} solid ${border14.BordersDdsBorderStyleLightStroke}`
13197
13182
  };
@@ -13234,13 +13219,13 @@ import {
13234
13219
  useContext as useContext12,
13235
13220
  useLayoutEffect as useLayoutEffect2
13236
13221
  } from "react";
13237
- import { jsx as jsx262 } from "react/jsx-runtime";
13222
+ import { jsx as jsx261 } from "react/jsx-runtime";
13238
13223
  var TabContext = createContext12(null);
13239
13224
  function TabWidthContextProvider({
13240
13225
  children,
13241
13226
  onChangeWidths
13242
13227
  }) {
13243
- return /* @__PURE__ */ jsx262(
13228
+ return /* @__PURE__ */ jsx261(
13244
13229
  TabContext.Provider,
13245
13230
  {
13246
13231
  value: {
@@ -13272,9 +13257,9 @@ function useSetTabWidth(index, width) {
13272
13257
  }
13273
13258
 
13274
13259
  // src/components/Tabs/Tab.tsx
13275
- import { jsx as jsx263, jsxs as jsxs70 } from "react/jsx-runtime";
13260
+ import { jsx as jsx262, jsxs as jsxs70 } from "react/jsx-runtime";
13276
13261
  var { tab: tab2 } = tabsTokens;
13277
- var Button2 = styled90.button`
13262
+ var Button2 = styled89.button`
13278
13263
  ${normalizeButton}
13279
13264
  ${removeButtonStyling}
13280
13265
  user-select: text;
@@ -13294,12 +13279,12 @@ var Button2 = styled90.button`
13294
13279
  ${focusVisibleTransitionValue};
13295
13280
  }
13296
13281
 
13297
- ${({ $direction }) => css40`
13282
+ ${({ $direction }) => css39`
13298
13283
  flex-direction: ${$direction};
13299
13284
  gap: ${tab2[$direction].gap};
13300
13285
  `};
13301
13286
 
13302
- ${({ $active }) => $active && css40`
13287
+ ${({ $active }) => $active && css39`
13303
13288
  background-color: ${tab2.active.backgroundColor};
13304
13289
  border-color: ${tab2.active.borderColor};
13305
13290
  color: ${tab2.active.color};
@@ -13317,7 +13302,7 @@ var Button2 = styled90.button`
13317
13302
  box-shadow: ${tab2.hover.boxShadow};
13318
13303
  }
13319
13304
  `;
13320
- var Tab = forwardRef68((props, ref) => {
13305
+ var Tab = forwardRef67((props, ref) => {
13321
13306
  const {
13322
13307
  active = false,
13323
13308
  icon: icon12,
@@ -13375,8 +13360,8 @@ var Tab = forwardRef68((props, ref) => {
13375
13360
  onKeyDown: handleOnKeyDown,
13376
13361
  tabIndex: focus ? 0 : -1,
13377
13362
  children: [
13378
- icon12 && /* @__PURE__ */ jsx263(Icon, { icon: icon12, iconSize: "inherit" }),
13379
- /* @__PURE__ */ jsx263("span", { children })
13363
+ icon12 && /* @__PURE__ */ jsx262(Icon, { icon: icon12, iconSize: "inherit" }),
13364
+ /* @__PURE__ */ jsx262("span", { children })
13380
13365
  ]
13381
13366
  }
13382
13367
  );
@@ -13387,21 +13372,21 @@ Tab.displayName = "Tab";
13387
13372
  import {
13388
13373
  Children as Children7,
13389
13374
  cloneElement as cloneElement8,
13390
- forwardRef as forwardRef69,
13375
+ forwardRef as forwardRef68,
13391
13376
  isValidElement as isValidElement8,
13392
13377
  useState as useState30
13393
13378
  } from "react";
13394
- import styled91, { css as css41 } from "styled-components";
13395
- import { jsx as jsx264 } from "react/jsx-runtime";
13379
+ import styled90, { css as css40 } from "styled-components";
13380
+ import { jsx as jsx263 } from "react/jsx-runtime";
13396
13381
  var { tabList: tabList2 } = tabsTokens;
13397
- var autoFlow = css41`
13382
+ var autoFlow = css40`
13398
13383
  grid-auto-flow: column;
13399
13384
  grid-auto-columns: 1fr;
13400
13385
  `;
13401
- var templateColumns = (templateColumns2) => css41`
13386
+ var templateColumns = (templateColumns2) => css40`
13402
13387
  grid-template-columns: ${templateColumns2};
13403
13388
  `;
13404
- var TabRow = styled91.div`
13389
+ var TabRow = styled90.div`
13405
13390
  border-bottom: ${tabList2.borderBottom};
13406
13391
  display: grid;
13407
13392
  ${({ $gridTemplateColumns }) => $gridTemplateColumns === "" ? autoFlow : templateColumns($gridTemplateColumns)}
@@ -13420,7 +13405,7 @@ var TabRow = styled91.div`
13420
13405
  outline: none;
13421
13406
  }
13422
13407
  `;
13423
- var TabList = forwardRef69(
13408
+ var TabList = forwardRef68(
13424
13409
  ({ children, id, onFocus, ...rest }, ref) => {
13425
13410
  const {
13426
13411
  activeTab,
@@ -13468,32 +13453,32 @@ var TabList = forwardRef69(
13468
13453
  tabIndex: 0,
13469
13454
  onFocus: handleOnFocus
13470
13455
  };
13471
- return /* @__PURE__ */ jsx264(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx264(TabRow, { ...tabListProps, $gridTemplateColumns: widths.join(" "), children: tabListChildren }) });
13456
+ return /* @__PURE__ */ jsx263(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx263(TabRow, { ...tabListProps, $gridTemplateColumns: widths.join(" "), children: tabListChildren }) });
13472
13457
  }
13473
13458
  );
13474
13459
  TabList.displayName = "TabList";
13475
13460
 
13476
13461
  // src/components/Tabs/TabPanel.tsx
13477
- import { forwardRef as forwardRef70 } from "react";
13478
- import styled92, { css as css42 } from "styled-components";
13479
- import { jsx as jsx265 } from "react/jsx-runtime";
13462
+ import { forwardRef as forwardRef69 } from "react";
13463
+ import styled91, { css as css41 } from "styled-components";
13464
+ import { jsx as jsx264 } from "react/jsx-runtime";
13480
13465
  var { panel: panel2 } = tabsTokens;
13481
- var Panel = styled92.div`
13466
+ var Panel = styled91.div`
13482
13467
  padding: ${panel2.padding};
13483
13468
  @media (prefers-reduced-motion: no-preference) {
13484
13469
  transition: ${focusVisibleTransitionValue};
13485
13470
  }
13486
13471
 
13487
- ${({ $active }) => !$active && css42`
13472
+ ${({ $active }) => !$active && css41`
13488
13473
  display: none;
13489
13474
  `}
13490
13475
  &:focus-visible {
13491
13476
  ${focusVisible}
13492
13477
  }
13493
13478
  `;
13494
- var TabPanel = forwardRef70(
13479
+ var TabPanel = forwardRef69(
13495
13480
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
13496
- return /* @__PURE__ */ jsx265(
13481
+ return /* @__PURE__ */ jsx264(
13497
13482
  Panel,
13498
13483
  {
13499
13484
  ...getBaseHTMLProps(id, className, htmlProps, rest),
@@ -13512,11 +13497,11 @@ TabPanel.displayName = "TabPanel";
13512
13497
  import {
13513
13498
  Children as Children8,
13514
13499
  cloneElement as cloneElement9,
13515
- forwardRef as forwardRef71,
13500
+ forwardRef as forwardRef70,
13516
13501
  isValidElement as isValidElement9
13517
13502
  } from "react";
13518
- import { jsx as jsx266 } from "react/jsx-runtime";
13519
- var TabPanels = forwardRef71(
13503
+ import { jsx as jsx265 } from "react/jsx-runtime";
13504
+ var TabPanels = forwardRef70(
13520
13505
  ({ children, ...rest }, ref) => {
13521
13506
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
13522
13507
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -13529,18 +13514,18 @@ var TabPanels = forwardRef71(
13529
13514
  "aria-expanded": active
13530
13515
  });
13531
13516
  });
13532
- return /* @__PURE__ */ jsx266("div", { ref: combinedRef, ...rest, children: panelChildren });
13517
+ return /* @__PURE__ */ jsx265("div", { ref: combinedRef, ...rest, children: panelChildren });
13533
13518
  }
13534
13519
  );
13535
13520
  TabPanels.displayName = "TabPanels";
13536
13521
 
13537
13522
  // src/components/Tag/Tag.tsx
13538
- import { forwardRef as forwardRef72 } from "react";
13539
- import styled93, { css as css43 } from "styled-components";
13523
+ import { forwardRef as forwardRef71 } from "react";
13524
+ import styled92, { css as css42 } from "styled-components";
13540
13525
 
13541
13526
  // src/components/Tag/Tag.tokens.tsx
13542
- import { ddsBaseTokens as ddsBaseTokens58 } from "@norges-domstoler/dds-design-tokens";
13543
- var { colors: colors33, borderRadius: borderRadius10, spacing: spacing37 } = ddsBaseTokens58;
13527
+ import { ddsBaseTokens as ddsBaseTokens59 } from "@norges-domstoler/dds-design-tokens";
13528
+ var { colors: colors33, borderRadius: borderRadius10, spacing: spacing37 } = ddsBaseTokens59;
13544
13529
  var typographyType5 = "bodySans01";
13545
13530
  var wrapper7 = {
13546
13531
  border: "1px solid",
@@ -13597,9 +13582,9 @@ var tagTokens = {
13597
13582
  };
13598
13583
 
13599
13584
  // src/components/Tag/Tag.tsx
13600
- import { jsx as jsx267, jsxs as jsxs71 } from "react/jsx-runtime";
13585
+ import { jsx as jsx266, jsxs as jsxs71 } from "react/jsx-runtime";
13601
13586
  var { wrapper: wrapper8 } = tagTokens;
13602
- var Wrapper7 = styled93(TextOverflowEllipsisWrapper)`
13587
+ var Wrapper7 = styled92(TextOverflowEllipsisWrapper)`
13603
13588
  display: inline-flex;
13604
13589
  align-items: center;
13605
13590
  gap: ${tagTokens.wrapper.icon.gap};
@@ -13607,18 +13592,18 @@ var Wrapper7 = styled93(TextOverflowEllipsisWrapper)`
13607
13592
  border-radius: ${wrapper8.borderRadius};
13608
13593
  padding: ${({ $withIcon }) => $withIcon ? wrapper8.icon.padding : wrapper8.padding};
13609
13594
  ${getFontStyling(typographyType5)}
13610
- ${({ $purpose }) => css43`
13595
+ ${({ $purpose }) => css42`
13611
13596
  background-color: ${wrapper8.purpose[$purpose].backgroundColor};
13612
13597
  border-color: ${wrapper8.purpose[$purpose].borderColor};
13613
13598
  `}
13614
13599
  `;
13615
- var StyledIcon5 = styled93(Icon)`
13600
+ var StyledIcon5 = styled92(Icon)`
13616
13601
  color: ${({ $purpose }) => {
13617
13602
  var _a;
13618
13603
  return (_a = wrapper8.purpose[$purpose].icon) == null ? void 0 : _a.color;
13619
13604
  }};
13620
13605
  `;
13621
- var Tag = forwardRef72((props, ref) => {
13606
+ var Tag = forwardRef71((props, ref) => {
13622
13607
  const {
13623
13608
  text,
13624
13609
  purpose = "default",
@@ -13638,7 +13623,7 @@ var Tag = forwardRef72((props, ref) => {
13638
13623
  $purpose: purpose,
13639
13624
  $withIcon: Boolean(withIcon && icon12),
13640
13625
  children: [
13641
- withIcon && icon12 && /* @__PURE__ */ jsx267(
13626
+ withIcon && icon12 && /* @__PURE__ */ jsx266(
13642
13627
  StyledIcon5,
13643
13628
  {
13644
13629
  $purpose: purpose,
@@ -13646,7 +13631,7 @@ var Tag = forwardRef72((props, ref) => {
13646
13631
  iconSize: tagTokens.wrapper.icon.size
13647
13632
  }
13648
13633
  ),
13649
- /* @__PURE__ */ jsx267(TextOverflowEllipsisInner, { children: children != null ? children : text })
13634
+ /* @__PURE__ */ jsx266(TextOverflowEllipsisInner, { children: children != null ? children : text })
13650
13635
  ]
13651
13636
  }
13652
13637
  );
@@ -13655,19 +13640,19 @@ Tag.displayName = "Tag";
13655
13640
 
13656
13641
  // src/components/TextInput/TextInput.tsx
13657
13642
  import {
13658
- forwardRef as forwardRef73,
13643
+ forwardRef as forwardRef72,
13659
13644
  useId as useId23,
13660
13645
  useLayoutEffect as useLayoutEffect3,
13661
13646
  useRef as useRef33,
13662
13647
  useState as useState31
13663
13648
  } from "react";
13664
- import styled96, { css as css45 } from "styled-components";
13649
+ import styled95, { css as css44 } from "styled-components";
13665
13650
 
13666
13651
  // src/components/TextInput/CharCounter.tsx
13667
13652
  import { useId as useId22 } from "react";
13668
- import styled94 from "styled-components";
13653
+ import styled93 from "styled-components";
13669
13654
  import { jsxs as jsxs72 } from "react/jsx-runtime";
13670
- var Wrapper8 = styled94(Typography)`
13655
+ var Wrapper8 = styled93(Typography)`
13671
13656
  margin-left: auto;
13672
13657
  `;
13673
13658
  function CharCounter(props) {
@@ -13692,12 +13677,12 @@ function CharCounter(props) {
13692
13677
  var CharCounter_default = CharCounter;
13693
13678
 
13694
13679
  // src/components/TextInput/TextInput.styles.tsx
13695
- import { ddsBaseTokens as ddsBaseTokens60 } from "@norges-domstoler/dds-design-tokens";
13696
- import styled95, { css as css44 } from "styled-components";
13680
+ import { ddsBaseTokens as ddsBaseTokens61 } from "@norges-domstoler/dds-design-tokens";
13681
+ import styled94, { css as css43 } from "styled-components";
13697
13682
 
13698
13683
  // src/components/TextInput/TextInput.tokens.tsx
13699
- import { ddsBaseTokens as ddsBaseTokens59 } from "@norges-domstoler/dds-design-tokens";
13700
- var { colors: colors34, spacing: spacing38, iconSizes: iconSizes4 } = ddsBaseTokens59;
13684
+ import { ddsBaseTokens as ddsBaseTokens60 } from "@norges-domstoler/dds-design-tokens";
13685
+ var { colors: colors34, spacing: spacing38, iconSizes: iconSizes4 } = ddsBaseTokens60;
13701
13686
  var input5 = {
13702
13687
  withIcon: {
13703
13688
  medium: {
@@ -13740,33 +13725,33 @@ var textInputTokens = {
13740
13725
  };
13741
13726
 
13742
13727
  // src/components/TextInput/TextInput.styles.tsx
13743
- var { iconSizes: iconSizes5 } = ddsBaseTokens60;
13728
+ var { iconSizes: iconSizes5 } = ddsBaseTokens61;
13744
13729
  var { input: input6, icon: icon11 } = textInputTokens;
13745
- var MessageContainer2 = styled95.div`
13730
+ var MessageContainer2 = styled94.div`
13746
13731
  display: flex;
13747
13732
  justify-content: space-between;
13748
13733
  `;
13749
- var StyledIcon6 = styled95(Icon)`
13734
+ var StyledIcon6 = styled94(Icon)`
13750
13735
  position: absolute;
13751
13736
  color: ${icon11.color};
13752
- ${({ $size, iconSize }) => css44`
13737
+ ${({ $size, iconSize }) => css43`
13753
13738
  left: ${icon11.sizes[$size].left};
13754
- ${iconSize === "small" ? css44`
13739
+ ${iconSize === "small" ? css43`
13755
13740
  top: ${`calc(50% - ${iconSizes5.DdsIconsizeSmallNumberPx / 2}px)`};
13756
- ` : css44`
13741
+ ` : css43`
13757
13742
  top: ${`calc(50% - ${iconSizes5.DdsIconsizeMediumNumberPx / 2}px)`};
13758
13743
  `}
13759
13744
  `}
13760
13745
  z-index: 1;
13761
13746
  `;
13762
- var StyledInput = styled95(StatefulInput)`
13763
- ${({ componentSize, $hasIcon }) => $hasIcon && componentSize && css44`
13747
+ var StyledInput = styled94(StatefulInput)`
13748
+ ${({ componentSize, $hasIcon }) => $hasIcon && componentSize && css43`
13764
13749
  padding-left: ${input6.withIcon[componentSize].paddingLeft};
13765
13750
  `}
13766
13751
  `;
13767
13752
 
13768
13753
  // src/components/TextInput/TextInput.tsx
13769
- import { jsx as jsx268, jsxs as jsxs73 } from "react/jsx-runtime";
13754
+ import { jsx as jsx267, jsxs as jsxs73 } from "react/jsx-runtime";
13770
13755
  var defaultWidth6 = "320px";
13771
13756
  var defaultTinyWidth = "210px";
13772
13757
  var getWidth = (size2, width) => {
@@ -13777,7 +13762,7 @@ var getWidth = (size2, width) => {
13777
13762
  }
13778
13763
  return defaultWidth6;
13779
13764
  };
13780
- var Affix = styled96.span`
13765
+ var Affix = styled95.span`
13781
13766
  position: absolute;
13782
13767
  height: 100%;
13783
13768
  top: 50%;
@@ -13787,31 +13772,31 @@ var Affix = styled96.span`
13787
13772
  pointer-events: none;
13788
13773
  z-index: 1;
13789
13774
  `;
13790
- var Prefix = styled96(Affix)`
13775
+ var Prefix = styled95(Affix)`
13791
13776
  left: 0;
13792
13777
  margin-left: 8px;
13793
13778
  padding-right: 8px;
13794
13779
  border-right: 1px solid ${textInputTokens.affix.border.color};
13795
13780
 
13796
- ${({ readOnly }) => readOnly && css45`
13781
+ ${({ readOnly }) => readOnly && css44`
13797
13782
  margin-left: 0;
13798
13783
  padding-right: 0.5ch;
13799
13784
  border-right: none;
13800
13785
  `};
13801
13786
  `;
13802
- var Suffix = styled96(Affix)`
13787
+ var Suffix = styled95(Affix)`
13803
13788
  right: 0;
13804
13789
  margin-right: 8px;
13805
13790
  padding-left: 8px;
13806
13791
  border-left: 1px solid ${textInputTokens.affix.border.color};
13807
13792
 
13808
- ${({ readOnly }) => readOnly && css45`
13793
+ ${({ readOnly }) => readOnly && css44`
13809
13794
  margin-right: 0;
13810
13795
  padding-left: 0.5ch;
13811
13796
  border-left: none;
13812
13797
  `};
13813
13798
  `;
13814
- var TextInput2 = forwardRef73(
13799
+ var TextInput2 = forwardRef72(
13815
13800
  ({
13816
13801
  label: label3,
13817
13802
  disabled,
@@ -13901,7 +13886,7 @@ var TextInput2 = forwardRef73(
13901
13886
  let extendedInput = null;
13902
13887
  if (hasIcon) {
13903
13888
  extendedInput = /* @__PURE__ */ jsxs73(InputContainer, { children: [
13904
- /* @__PURE__ */ jsx268(
13889
+ /* @__PURE__ */ jsx267(
13905
13890
  StyledIcon6,
13906
13891
  {
13907
13892
  icon: icon12,
@@ -13909,7 +13894,7 @@ var TextInput2 = forwardRef73(
13909
13894
  $size: componentSize
13910
13895
  }
13911
13896
  ),
13912
- /* @__PURE__ */ jsx268(
13897
+ /* @__PURE__ */ jsx267(
13913
13898
  StyledInput,
13914
13899
  {
13915
13900
  ref,
@@ -13923,8 +13908,8 @@ var TextInput2 = forwardRef73(
13923
13908
  ] });
13924
13909
  } else if (hasAffix) {
13925
13910
  extendedInput = /* @__PURE__ */ jsxs73(InputAffixContainer, { children: [
13926
- prefix2 && /* @__PURE__ */ jsx268(Prefix, { readOnly, ref: prefixRef, "aria-hidden": true, children: prefix2 }),
13927
- /* @__PURE__ */ jsx268(
13911
+ prefix2 && /* @__PURE__ */ jsx267(Prefix, { readOnly, ref: prefixRef, "aria-hidden": true, children: prefix2 }),
13912
+ /* @__PURE__ */ jsx267(
13928
13913
  StatefulInput,
13929
13914
  {
13930
13915
  ref,
@@ -13936,12 +13921,12 @@ var TextInput2 = forwardRef73(
13936
13921
  ...generalInputProps
13937
13922
  }
13938
13923
  ),
13939
- suffix && /* @__PURE__ */ jsx268(Suffix, { readOnly, ref: suffixRef, "aria-hidden": true, children: suffix })
13924
+ suffix && /* @__PURE__ */ jsx267(Suffix, { readOnly, ref: suffixRef, "aria-hidden": true, children: suffix })
13940
13925
  ] });
13941
13926
  }
13942
13927
  return /* @__PURE__ */ jsxs73(OuterInputContainer, { ...outerInputContainerProps, children: [
13943
- hasLabel && /* @__PURE__ */ jsx268(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
13944
- extendedInput ? extendedInput : /* @__PURE__ */ jsx268(
13928
+ hasLabel && /* @__PURE__ */ jsx267(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
13929
+ extendedInput ? extendedInput : /* @__PURE__ */ jsx267(
13945
13930
  StatefulInput,
13946
13931
  {
13947
13932
  ref,
@@ -13953,7 +13938,7 @@ var TextInput2 = forwardRef73(
13953
13938
  ),
13954
13939
  hasMessage && /* @__PURE__ */ jsxs73(MessageContainer2, { children: [
13955
13940
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
13956
- maxLength && Number.isInteger(maxLength) && maxLength > 0 && withCharacterCounter && /* @__PURE__ */ jsx268(
13941
+ maxLength && Number.isInteger(maxLength) && maxLength > 0 && withCharacterCounter && /* @__PURE__ */ jsx267(
13957
13942
  CharCounter_default,
13958
13943
  {
13959
13944
  id: characterCounterId,
@@ -13969,7 +13954,7 @@ TextInput2.displayName = "TextInput";
13969
13954
 
13970
13955
  // src/components/ToggleBar/ToggleBar.tsx
13971
13956
  import { useId as useId24, useState as useState32 } from "react";
13972
- import styled97, { css as css46 } from "styled-components";
13957
+ import styled96, { css as css45 } from "styled-components";
13973
13958
 
13974
13959
  // src/components/ToggleBar/ToggleBar.context.tsx
13975
13960
  import { createContext as createContext13, useContext as useContext13 } from "react";
@@ -13979,9 +13964,9 @@ var ToggleBarContext = createContext13({
13979
13964
  var useToggleBarContext = () => useContext13(ToggleBarContext);
13980
13965
 
13981
13966
  // src/components/ToggleBar/ToggleBar.tokens.tsx
13982
- import { ddsBaseTokens as ddsBaseTokens61 } from "@norges-domstoler/dds-design-tokens";
13983
- var { colors: colors35, spacing: spacing39, border: border15, borderRadius: borderRadius11, fontPackages: fontPackages6 } = ddsBaseTokens61;
13984
- var typographyTypes7 = {
13967
+ import { ddsBaseTokens as ddsBaseTokens62 } from "@norges-domstoler/dds-design-tokens";
13968
+ var { colors: colors35, spacing: spacing39, border: border15, borderRadius: borderRadius11, fontPackages: fontPackages6 } = ddsBaseTokens62;
13969
+ var typographyTypes6 = {
13985
13970
  large: "bodySans04",
13986
13971
  medium: "bodySans02",
13987
13972
  small: "bodySans01",
@@ -14003,7 +13988,7 @@ var iconSizeLarge = `${calculateHeightWithLineHeight(
14003
13988
  fontPackages6.body_sans_04.numbers.lineHeightNumber,
14004
13989
  fontPackages6.body_sans_04.numbers.fontSizeNumber
14005
13990
  )}px`;
14006
- var outerContainer9 = {
13991
+ var outerContainer7 = {
14007
13992
  gap: spacing39.SizesDdsSpacingX0125
14008
13993
  };
14009
13994
  var label = {
@@ -14079,14 +14064,14 @@ var content5 = {
14079
14064
  }
14080
14065
  };
14081
14066
  var toggleBarTokens = {
14082
- outerContainer: outerContainer9,
14067
+ outerContainer: outerContainer7,
14083
14068
  content: content5,
14084
14069
  label
14085
14070
  };
14086
14071
 
14087
14072
  // src/components/ToggleBar/ToggleBar.tsx
14088
- import { jsx as jsx269, jsxs as jsxs74 } from "react/jsx-runtime";
14089
- var OuterContainer4 = styled97.div`
14073
+ import { jsx as jsx268, jsxs as jsxs74 } from "react/jsx-runtime";
14074
+ var OuterContainer3 = styled96.div`
14090
14075
  display: flex;
14091
14076
  flex-direction: column;
14092
14077
  gap: ${toggleBarTokens.outerContainer.gap};
@@ -14094,11 +14079,11 @@ var OuterContainer4 = styled97.div`
14094
14079
  *::selection {
14095
14080
  ${selection}
14096
14081
  }
14097
- ${({ $width }) => $width && css46`
14082
+ ${({ $width }) => $width && css45`
14098
14083
  width: ${$width};
14099
14084
  `}
14100
14085
  `;
14101
- var Bar2 = styled97.div`
14086
+ var Bar3 = styled96.div`
14102
14087
  display: grid;
14103
14088
  grid-auto-flow: column;
14104
14089
  grid-auto-columns: 1fr;
@@ -14125,7 +14110,7 @@ var ToggleBar = (props) => {
14125
14110
  (e) => onChange && onChange(e, e.target.value)
14126
14111
  );
14127
14112
  const labelId = label3 && `${uniqueId}-label`;
14128
- return /* @__PURE__ */ jsx269(
14113
+ return /* @__PURE__ */ jsx268(
14129
14114
  ToggleBarContext.Provider,
14130
14115
  {
14131
14116
  value: {
@@ -14135,15 +14120,15 @@ var ToggleBar = (props) => {
14135
14120
  value: groupValue
14136
14121
  },
14137
14122
  children: /* @__PURE__ */ jsxs74(
14138
- OuterContainer4,
14123
+ OuterContainer3,
14139
14124
  {
14140
14125
  ...getBaseHTMLProps(id, className, htmlProps, rest),
14141
14126
  role: "radiogroup",
14142
14127
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
14143
14128
  $width: width,
14144
14129
  children: [
14145
- label3 && /* @__PURE__ */ jsx269(Typography, { typographyType: "supportingStyleLabel01", id: labelId, children: label3 }),
14146
- /* @__PURE__ */ jsx269(Bar2, { children })
14130
+ label3 && /* @__PURE__ */ jsx268(Typography, { typographyType: "supportingStyleLabel01", id: labelId, children: label3 }),
14131
+ /* @__PURE__ */ jsx268(Bar3, { children })
14147
14132
  ]
14148
14133
  }
14149
14134
  )
@@ -14154,14 +14139,14 @@ ToggleBar.displayName = "ToggleBar";
14154
14139
 
14155
14140
  // src/components/ToggleBar/ToggleRadio.tsx
14156
14141
  import {
14157
- forwardRef as forwardRef74,
14142
+ forwardRef as forwardRef73,
14158
14143
  useId as useId25
14159
14144
  } from "react";
14160
14145
 
14161
14146
  // src/components/ToggleBar/ToggleRadio.styles.tsx
14162
- import styled98, { css as css47 } from "styled-components";
14147
+ import styled97, { css as css46 } from "styled-components";
14163
14148
  var { content: content6, label: label2 } = toggleBarTokens;
14164
- var Content2 = styled98.span`
14149
+ var Content2 = styled97.span`
14165
14150
  display: flex;
14166
14151
  justify-content: center;
14167
14152
  align-items: center;
@@ -14179,18 +14164,18 @@ var Content2 = styled98.span`
14179
14164
  }
14180
14165
  background-color: ${content6.base.backgroundColor};
14181
14166
 
14182
- ${({ $size, $justIcon }) => css47`
14183
- ${$justIcon ? css47`
14167
+ ${({ $size, $justIcon }) => css46`
14168
+ ${$justIcon ? css46`
14184
14169
  font-size: ${content6.size[$size].justIcon.fontSize};
14185
14170
  padding: ${content6.size[$size].justIcon.padding};
14186
- ` : css47`
14171
+ ` : css46`
14187
14172
  gap: ${content6.size[$size].withText.gap};
14188
14173
  padding: ${content6.size[$size].withText.padding};
14189
- ${getFontStyling(typographyTypes7[$size])}
14174
+ ${getFontStyling(typographyTypes6[$size])}
14190
14175
  `}
14191
14176
  `}
14192
14177
  `;
14193
- var Label3 = styled98.label`
14178
+ var Label3 = styled97.label`
14194
14179
  ${Content2} {
14195
14180
  border-right: ${label2.base.borderRight};
14196
14181
  border-top: ${label2.base.borderTop};
@@ -14228,7 +14213,7 @@ var Label3 = styled98.label`
14228
14213
  `;
14229
14214
 
14230
14215
  // src/components/ToggleBar/ToggleRadio.tsx
14231
- import { jsx as jsx270, jsxs as jsxs75 } from "react/jsx-runtime";
14216
+ import { jsx as jsx269, jsxs as jsxs75 } from "react/jsx-runtime";
14232
14217
  var calculateChecked = (value, group4, checked) => {
14233
14218
  if (typeof checked !== "undefined")
14234
14219
  return checked;
@@ -14240,7 +14225,7 @@ var calculateChecked = (value, group4, checked) => {
14240
14225
  }
14241
14226
  return !!value;
14242
14227
  };
14243
- var ToggleRadio = forwardRef74(
14228
+ var ToggleRadio = forwardRef73(
14244
14229
  (props, ref) => {
14245
14230
  const {
14246
14231
  value,
@@ -14262,7 +14247,7 @@ var ToggleRadio = forwardRef74(
14262
14247
  (group4 == null ? void 0 : group4.onChange) && group4.onChange(event);
14263
14248
  };
14264
14249
  return /* @__PURE__ */ jsxs75(Label3, { size: group4.size, htmlFor: uniqueId, children: [
14265
- /* @__PURE__ */ jsx270(
14250
+ /* @__PURE__ */ jsx269(
14266
14251
  HiddenInput,
14267
14252
  {
14268
14253
  ...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
@@ -14275,8 +14260,8 @@ var ToggleRadio = forwardRef74(
14275
14260
  }
14276
14261
  ),
14277
14262
  /* @__PURE__ */ jsxs75(Content2, { $size: group4.size, $justIcon: !!icon12 && !label3, children: [
14278
- icon12 && /* @__PURE__ */ jsx270(Icon, { icon: icon12, iconSize: "inherit" }),
14279
- label3 && /* @__PURE__ */ jsx270("span", { children: label3 })
14263
+ icon12 && /* @__PURE__ */ jsx269(Icon, { icon: icon12, iconSize: "inherit" }),
14264
+ label3 && /* @__PURE__ */ jsx269("span", { children: label3 })
14280
14265
  ] })
14281
14266
  ] });
14282
14267
  }
@@ -14284,12 +14269,12 @@ var ToggleRadio = forwardRef74(
14284
14269
  ToggleRadio.displayName = "ToggleRadio";
14285
14270
 
14286
14271
  // src/components/ToggleButton/ToggleButton.tsx
14287
- import { forwardRef as forwardRef75, useId as useId26 } from "react";
14288
- import styled99, { css as css48 } from "styled-components";
14272
+ import { forwardRef as forwardRef74, useId as useId26 } from "react";
14273
+ import styled98, { css as css47 } from "styled-components";
14289
14274
 
14290
14275
  // src/components/ToggleButton/ToggleButton.tokens.tsx
14291
- import { ddsBaseTokens as ddsBaseTokens62 } from "@norges-domstoler/dds-design-tokens";
14292
- var { colors: colors36, spacing: spacing40 } = ddsBaseTokens62;
14276
+ import { ddsBaseTokens as ddsBaseTokens63 } from "@norges-domstoler/dds-design-tokens";
14277
+ var { colors: colors36, spacing: spacing40 } = ddsBaseTokens63;
14293
14278
  var { button: button2 } = buttonTokens;
14294
14279
  var { selectionControl: selectionControl3 } = selectionControlTokens;
14295
14280
  var typographyType6 = typographyTypes.small;
@@ -14320,9 +14305,9 @@ var toggleButtonTokens = {
14320
14305
  };
14321
14306
 
14322
14307
  // src/components/ToggleButton/ToggleButton.tsx
14323
- import { jsx as jsx271, jsxs as jsxs76 } from "react/jsx-runtime";
14308
+ import { jsx as jsx270, jsxs as jsxs76 } from "react/jsx-runtime";
14324
14309
  var { toggleButton: toggleButton2 } = toggleButtonTokens;
14325
- var Content3 = styled99.span`
14310
+ var Content3 = styled98.span`
14326
14311
  display: flex;
14327
14312
  align-items: center;
14328
14313
  width: 100%;
@@ -14344,7 +14329,7 @@ var Content3 = styled99.span`
14344
14329
  ${focusVisibleTransitionValue};
14345
14330
  }
14346
14331
 
14347
- ${({ $hasIcon }) => $hasIcon && css48`
14332
+ ${({ $hasIcon }) => $hasIcon && css47`
14348
14333
  gap: ${toggleButton2.gap};
14349
14334
  `}
14350
14335
 
@@ -14358,7 +14343,7 @@ var Content3 = styled99.span`
14358
14343
  border-color: ${toggleButton2.hover.borderColor};
14359
14344
  }
14360
14345
  `;
14361
- var Container16 = styled99.label`
14346
+ var Container16 = styled98.label`
14362
14347
  width: fit-content;
14363
14348
  ${HiddenInput}:checked + ${Content3} {
14364
14349
  background-color: ${toggleButton2.checked.backgroundColor};
@@ -14374,12 +14359,12 @@ var Container16 = styled99.label`
14374
14359
  ${focusVisible}
14375
14360
  }
14376
14361
  `;
14377
- var ToggleButton = forwardRef75(
14362
+ var ToggleButton = forwardRef74(
14378
14363
  ({ id, label: label3, icon: icon12, className, htmlProps, ...rest }, ref) => {
14379
14364
  const generatedId = useId26();
14380
14365
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
14381
14366
  return /* @__PURE__ */ jsxs76(Container16, { htmlFor: uniqueId, children: [
14382
- /* @__PURE__ */ jsx271(
14367
+ /* @__PURE__ */ jsx270(
14383
14368
  HiddenInput,
14384
14369
  {
14385
14370
  ...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
@@ -14388,7 +14373,7 @@ var ToggleButton = forwardRef75(
14388
14373
  }
14389
14374
  ),
14390
14375
  /* @__PURE__ */ jsxs76(Content3, { $hasIcon: !!icon12, children: [
14391
- icon12 && /* @__PURE__ */ jsx271(Icon, { icon: icon12, iconSize: "inherit" }),
14376
+ icon12 && /* @__PURE__ */ jsx270(Icon, { icon: icon12, iconSize: "inherit" }),
14392
14377
  " ",
14393
14378
  label3
14394
14379
  ] })
@@ -14399,17 +14384,17 @@ ToggleButton.displayName = "ToggleButton";
14399
14384
 
14400
14385
  // src/components/ToggleButton/ToggleButtonGroup.tsx
14401
14386
  import { useId as useId27 } from "react";
14402
- import styled100, { css as css49 } from "styled-components";
14403
- import { jsx as jsx272, jsxs as jsxs77 } from "react/jsx-runtime";
14404
- var Group2 = styled100.div`
14387
+ import styled99, { css as css48 } from "styled-components";
14388
+ import { jsx as jsx271, jsxs as jsxs77 } from "react/jsx-runtime";
14389
+ var Group2 = styled99.div`
14405
14390
  gap: ${toggleButtonTokens.group.gap};
14406
14391
  display: flex;
14407
14392
  flex-wrap: wrap;
14408
- ${({ direction }) => css49`
14393
+ ${({ direction }) => css48`
14409
14394
  flex-direction: ${direction};
14410
14395
  `}
14411
14396
  `;
14412
- var Container17 = styled100.div`
14397
+ var Container17 = styled99.div`
14413
14398
  display: flex;
14414
14399
  flex-direction: column;
14415
14400
  gap: ${toggleButtonTokens.container.gap};
@@ -14436,7 +14421,7 @@ var ToggleButtonGroup = (props) => {
14436
14421
  "aria-labelledby": label3 ? uniqueLabelId : void 0
14437
14422
  };
14438
14423
  return /* @__PURE__ */ jsxs77(Container17, { ...containerProps, children: [
14439
- !!label3 && /* @__PURE__ */ jsx272(
14424
+ !!label3 && /* @__PURE__ */ jsx271(
14440
14425
  Typography,
14441
14426
  {
14442
14427
  as: "span",
@@ -14445,7 +14430,7 @@ var ToggleButtonGroup = (props) => {
14445
14430
  children: label3
14446
14431
  }
14447
14432
  ),
14448
- /* @__PURE__ */ jsx272(Group2, { ...groupProps, children })
14433
+ /* @__PURE__ */ jsx271(Group2, { ...groupProps, children })
14449
14434
  ] });
14450
14435
  };
14451
14436
  ToggleButtonGroup.displayName = "ToggleButtonGroup";