@norges-domstoler/dds-components 15.2.0 → 15.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1454,14 +1454,14 @@ function Icon(props) {
1454
1454
  id,
1455
1455
  iconSize = "medium",
1456
1456
  color = "currentcolor",
1457
- icon: icon12,
1457
+ icon: icon11,
1458
1458
  className,
1459
1459
  htmlProps = {},
1460
1460
  ...rest
1461
1461
  } = props;
1462
1462
  const { title: title3, "aria-hidden": ariaHidden = true } = htmlProps;
1463
1463
  const size2 = getSize(iconSize);
1464
- return icon12({
1464
+ return icon11({
1465
1465
  ...getBaseHTMLProps(id, className, htmlProps, rest),
1466
1466
  title: title3,
1467
1467
  height: size2,
@@ -3073,7 +3073,7 @@ function useReturnFocusOnBlur(active, onBlur, triggerElement) {
3073
3073
  // src/hooks/useRoveFocus.tsx
3074
3074
  var import_react10 = require("react");
3075
3075
  var isKeyboardEvent = (e) => e.key !== void 0;
3076
- function useRoveFocus(size2, reset, direction = "column") {
3076
+ function useRoveFocus(size2, active, direction = "column") {
3077
3077
  const [currentFocusIndex, setCurrentFocusIndex] = (0, import_react10.useState)(-1);
3078
3078
  const nextKey = direction === "row" ? "ArrowRight" : "ArrowDown";
3079
3079
  const previousKey = direction === "row" ? "ArrowLeft" : "ArrowUp";
@@ -3081,31 +3081,30 @@ function useRoveFocus(size2, reset, direction = "column") {
3081
3081
  (e) => {
3082
3082
  if (!size2 || !isKeyboardEvent(e))
3083
3083
  return;
3084
- if (reset)
3085
- setCurrentFocusIndex(-1);
3086
3084
  if (e.key === nextKey) {
3087
3085
  e.preventDefault();
3088
- setCurrentFocusIndex(
3089
- currentFocusIndex === size2 - 1 ? 0 : currentFocusIndex + 1
3090
- );
3086
+ setCurrentFocusIndex((prev) => prev === size2 - 1 ? 0 : prev + 1);
3091
3087
  } else if (e.key === previousKey) {
3092
3088
  e.preventDefault();
3093
- if (currentFocusIndex !== -1) {
3094
- setCurrentFocusIndex(
3095
- currentFocusIndex === 0 ? size2 - 1 : currentFocusIndex - 1
3096
- );
3097
- } else
3098
- setCurrentFocusIndex(size2 - 1);
3089
+ setCurrentFocusIndex((prev) => {
3090
+ if (prev === -1 || prev === 0)
3091
+ return size2 - 1;
3092
+ return prev - 1;
3093
+ });
3099
3094
  }
3100
3095
  },
3101
- [size2, currentFocusIndex, setCurrentFocusIndex, reset]
3096
+ [size2, setCurrentFocusIndex]
3102
3097
  );
3103
3098
  (0, import_react10.useEffect)(() => {
3099
+ if (!active) {
3100
+ setCurrentFocusIndex(-1);
3101
+ return;
3102
+ }
3104
3103
  document.addEventListener("keydown", handleKeyDown, false);
3105
3104
  return () => {
3106
3105
  document.removeEventListener("keydown", handleKeyDown, false);
3107
3106
  };
3108
- }, [handleKeyDown]);
3107
+ }, [handleKeyDown, active]);
3109
3108
  return [currentFocusIndex, setCurrentFocusIndex];
3110
3109
  }
3111
3110
 
@@ -3337,7 +3336,7 @@ var ExternalNavItem = (0, import_styled_components11.default)(BaseLink)`
3337
3336
  var NavigationItem = ({
3338
3337
  as: _as,
3339
3338
  active,
3340
- icon: icon12,
3339
+ icon: icon11,
3341
3340
  external,
3342
3341
  children,
3343
3342
  onClick: propOnClick,
@@ -3363,7 +3362,7 @@ var NavigationItem = ({
3363
3362
  onClick,
3364
3363
  className: [active ? "active" : "", rest.className].join(" "),
3365
3364
  children: [
3366
- /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(IconContainer, { children: icon12 && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Icon, { icon: icon12 }) }),
3365
+ /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(IconContainer, { children: icon11 && /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Icon, { icon: icon11 }) }),
3367
3366
  /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(TextContainer, { children }),
3368
3367
  /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(ChevronContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(Icon, { icon: ChevronRightIcon }) })
3369
3368
  ]
@@ -4217,7 +4216,7 @@ var Button = (0, import_react20.forwardRef)(
4217
4216
  loading = false,
4218
4217
  loadingTooltip = "Lagring p\xE5g\xE5r",
4219
4218
  fullWidth = false,
4220
- icon: icon12,
4219
+ icon: icon11,
4221
4220
  onClick,
4222
4221
  onFocus,
4223
4222
  onBlur,
@@ -4228,7 +4227,7 @@ var Button = (0, import_react20.forwardRef)(
4228
4227
  } = props;
4229
4228
  const as = href ? "a" : "button";
4230
4229
  const hasLabel = !!children || !!label3;
4231
- const hasIcon = !!icon12;
4230
+ const hasIcon = !!icon11;
4232
4231
  const wrapperProps = {
4233
4232
  ...getBaseHTMLProps(id, className, htmlProps, rest),
4234
4233
  href,
@@ -4253,13 +4252,13 @@ var Button = (0, import_react20.forwardRef)(
4253
4252
  onBlur
4254
4253
  };
4255
4254
  const isIconButton = !hasLabel && hasIcon;
4256
- const iconElement = icon12 && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
4255
+ const iconElement = icon11 && /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
4257
4256
  StyledIconWrapperSpan,
4258
4257
  {
4259
4258
  size: size2,
4260
4259
  isHidden: hasIcon && loading,
4261
4260
  justIcon: isIconButton,
4262
- children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(Icon, { icon: icon12, iconSize: "inherit" })
4261
+ children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(Icon, { icon: icon11, iconSize: "inherit" })
4263
4262
  }
4264
4263
  );
4265
4264
  return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(ButtonWrapper, { ...wrapperProps, "aria-disabled": loading, children: [
@@ -4387,18 +4386,7 @@ var IconWrapper = import_styled_components17.default.span`
4387
4386
  var isAnchorProps2 = (props) => props.href !== void 0;
4388
4387
  var isButtonProps = (props) => props.href === void 0 && props.onClick !== void 0;
4389
4388
  var OverflowMenuItem = (0, import_react21.forwardRef)((props, ref) => {
4390
- const {
4391
- title: title3,
4392
- icon: icon12,
4393
- focus,
4394
- setFocus,
4395
- index,
4396
- id,
4397
- className,
4398
- htmlProps = {},
4399
- ...rest
4400
- } = props;
4401
- const { onKeyDown } = htmlProps;
4389
+ const { title: title3, icon: icon11, focus, id, className, htmlProps = {}, ...rest } = props;
4402
4390
  let href;
4403
4391
  let onClick;
4404
4392
  if (isAnchorProps2(props)) {
@@ -4414,27 +4402,12 @@ var OverflowMenuItem = (0, import_react21.forwardRef)((props, ref) => {
4414
4402
  (_a = itemRef.current) == null ? void 0 : _a.focus();
4415
4403
  }
4416
4404
  }, [focus]);
4417
- const handleSelect = (0, import_react21.useCallback)(() => {
4418
- if (setFocus && index) {
4419
- setFocus(index);
4420
- }
4421
- }, [index, setFocus]);
4422
- const handleOnClick = (e) => {
4423
- handleSelect();
4424
- onClick && onClick(e);
4425
- };
4426
- const handleOnKeyDown = (e) => {
4427
- handleSelect();
4428
- onKeyDown && onKeyDown(e);
4429
- };
4430
4405
  const linkProps = {
4431
4406
  href,
4432
- onClick: handleOnClick,
4433
- onKeyDown: handleOnKeyDown,
4434
4407
  role: "menuitem",
4435
4408
  tabIndex: focus ? 0 : -1
4436
4409
  };
4437
- const iconElement = icon12 && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Icon, { iconSize: "inherit", icon: icon12 });
4410
+ const iconElement = icon11 && /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Icon, { iconSize: "inherit", icon: icon11 });
4438
4411
  if (!href && !onClick) {
4439
4412
  return /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(Span, { ...{ ...getBaseHTMLProps(id, className, htmlProps, rest), ref }, children: [
4440
4413
  /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(IconWrapper, { children: iconElement }),
@@ -4890,13 +4863,12 @@ var OverflowMenu = (0, import_react25.forwardRef)(
4890
4863
  hasNavItems && interactiveItems.push(...navItems);
4891
4864
  hasContextItems && interactiveItems.push(...items);
4892
4865
  const hasInteractiveItems = interactiveItems.length > 0;
4893
- const [focus, setFocus] = useRoveFocus(interactiveItems == null ? void 0 : interactiveItems.length, !isOpen);
4866
+ const [focus] = useRoveFocus(interactiveItems == null ? void 0 : interactiveItems.length, isOpen);
4894
4867
  const interactiveItemsList = hasInteractiveItems ? interactiveItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
4895
4868
  OverflowMenuItem,
4896
4869
  {
4897
4870
  index,
4898
4871
  focus: focus === index && isOpen,
4899
- setFocus,
4900
4872
  icon: hasInteractiveUser && index === 0 ? PersonIcon : void 0,
4901
4873
  ...item,
4902
4874
  onClick: (e) => {
@@ -5313,33 +5285,26 @@ var import_styled_components25 = __toESM(require("styled-components"));
5313
5285
 
5314
5286
  // src/components/BackLink/BackLink.tokens.tsx
5315
5287
  var import_dds_design_tokens23 = require("@norges-domstoler/dds-design-tokens");
5316
- var { colors: colors12, spacing: spacing10 } = import_dds_design_tokens23.ddsBaseTokens;
5317
- var icon2 = {
5318
- color: colors12.DdsColorInteractiveBase
5319
- };
5320
- var nav = {
5321
- gap: spacing10.SizesDdsSpacingX05
5288
+ var { spacing: spacing10 } = import_dds_design_tokens23.ddsBaseTokens;
5289
+ var link3 = {
5290
+ gap: spacing10.SizesDdsSpacingX025
5322
5291
  };
5323
5292
  var backLinkTokens = {
5324
- icon: icon2,
5325
- nav
5293
+ link: link3
5326
5294
  };
5327
5295
 
5328
5296
  // src/components/BackLink/BackLink.tsx
5329
5297
  var import_jsx_runtime182 = require("react/jsx-runtime");
5330
- var Nav = (0, import_styled_components25.default)("nav")`
5298
+ var StyledLink2 = (0, import_styled_components25.default)(Link)`
5331
5299
  align-items: center;
5332
5300
  display: flex;
5333
- gap: ${backLinkTokens.nav.gap};
5334
- `;
5335
- var StyledIcon = (0, import_styled_components25.default)(Icon)`
5336
- color: ${backLinkTokens.icon.color};
5301
+ gap: ${backLinkTokens.link.gap};
5337
5302
  `;
5338
5303
  var BackLink = (0, import_react28.forwardRef)((props, ref) => {
5339
- return /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(Nav, { ref, children: [
5340
- /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(StyledIcon, { icon: ArrowLeftIcon, iconSize: "small" }),
5341
- /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Typography, { typographyType: "a", href: props.href, children: props.label })
5342
- ] });
5304
+ return /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */ (0, import_jsx_runtime182.jsxs)(StyledLink2, { href: props.href, children: [
5305
+ /* @__PURE__ */ (0, import_jsx_runtime182.jsx)(Icon, { icon: ArrowLeftIcon, iconSize: "small" }),
5306
+ props.label
5307
+ ] }) });
5343
5308
  });
5344
5309
  BackLink.displayName = "BackLink";
5345
5310
 
@@ -5366,10 +5331,10 @@ var import_styled_components26 = __toESM(require("styled-components"));
5366
5331
 
5367
5332
  // src/components/Breadcrumbs/Breadcrumb.tokens.tsx
5368
5333
  var import_dds_design_tokens24 = require("@norges-domstoler/dds-design-tokens");
5369
- var { colors: colors13, spacing: spacing11 } = import_dds_design_tokens24.ddsBaseTokens;
5334
+ var { colors: colors12, spacing: spacing11 } = import_dds_design_tokens24.ddsBaseTokens;
5370
5335
  var typographyType2 = "bodySans02";
5371
- var icon3 = {
5372
- color: colors13.DdsColorInteractiveBase
5336
+ var icon2 = {
5337
+ color: colors12.DdsColorInteractiveBase
5373
5338
  };
5374
5339
  var listItem = {
5375
5340
  gap: spacing11.SizesDdsSpacingX05
@@ -5380,12 +5345,12 @@ var list = {
5380
5345
  var breadcrumbTokens = {
5381
5346
  list,
5382
5347
  listItem,
5383
- icon: icon3
5348
+ icon: icon2
5384
5349
  };
5385
5350
 
5386
5351
  // src/components/Breadcrumbs/Breadcrumbs.tsx
5387
5352
  var import_jsx_runtime184 = require("react/jsx-runtime");
5388
- var { icon: icon4, list: list2, listItem: listItem2 } = breadcrumbTokens;
5353
+ var { icon: icon3, list: list2, listItem: listItem2 } = breadcrumbTokens;
5389
5354
  var List = import_styled_components26.default.ol`
5390
5355
  ${removeListStyling}
5391
5356
  display: flex;
@@ -5401,8 +5366,8 @@ var ListItem = import_styled_components26.default.li`
5401
5366
  ${getFontStyling(typographyType2)}
5402
5367
  `;
5403
5368
  ListItem.displayName = "ListItem";
5404
- var StyledIcon2 = (0, import_styled_components26.default)(Icon)`
5405
- color: ${icon4.color};
5369
+ var StyledIcon = (0, import_styled_components26.default)(Icon)`
5370
+ color: ${icon3.color};
5406
5371
  `;
5407
5372
  var Breadcrumbs = (0, import_react30.forwardRef)(
5408
5373
  (props, ref) => {
@@ -5410,7 +5375,7 @@ var Breadcrumbs = (0, import_react30.forwardRef)(
5410
5375
  const childrenArray = import_react30.Children.toArray(children);
5411
5376
  const breadcrumbChildren = childrenArray.map((item, index) => {
5412
5377
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(ListItem, { children: [
5413
- index !== 0 && /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(StyledIcon2, { icon: ChevronRightIcon }),
5378
+ index !== 0 && /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(StyledIcon, { icon: ChevronRightIcon }),
5414
5379
  item
5415
5380
  ] }, `breadcrumb-${index}`);
5416
5381
  });
@@ -5432,29 +5397,29 @@ var import_styled_components27 = __toESM(require("styled-components"));
5432
5397
 
5433
5398
  // src/components/Card/Card.tokens.tsx
5434
5399
  var import_dds_design_tokens25 = require("@norges-domstoler/dds-design-tokens");
5435
- var { colors: colors14, border: border8 } = import_dds_design_tokens25.ddsBaseTokens;
5400
+ var { colors: colors13, border: border8 } = import_dds_design_tokens25.ddsBaseTokens;
5436
5401
  var { textDefault: textDefault3 } = import_dds_design_tokens25.ddsReferenceTokens;
5437
5402
  var base2 = {
5438
5403
  border: `${border8.BordersDdsBorderStyleLightStrokeWeight} solid`
5439
5404
  };
5440
5405
  var cardColors = {
5441
5406
  filledLight: {
5442
- backgroundColor: colors14.DdsColorPrimaryLightest,
5443
- borderColor: colors14.DdsColorPrimaryLightest,
5407
+ backgroundColor: colors13.DdsColorPrimaryLightest,
5408
+ borderColor: colors13.DdsColorPrimaryLightest,
5444
5409
  color: textDefault3.textColor
5445
5410
  },
5446
5411
  filledDark: {
5447
- backgroundColor: colors14.DdsColorPrimaryBase,
5448
- borderColor: colors14.DdsColorPrimaryBase,
5449
- color: colors14.DdsColorNeutralsWhite
5412
+ backgroundColor: colors13.DdsColorPrimaryBase,
5413
+ borderColor: colors13.DdsColorPrimaryBase,
5414
+ color: colors13.DdsColorNeutralsWhite
5450
5415
  },
5451
5416
  strokeDark: {
5452
- backgroundColor: colors14.DdsColorNeutralsWhite,
5417
+ backgroundColor: colors13.DdsColorNeutralsWhite,
5453
5418
  borderColor: border8.BordersDdsBorderStyleLightStroke,
5454
5419
  color: textDefault3.textColor
5455
5420
  },
5456
5421
  strokeLight: {
5457
- backgroundColor: colors14.DdsColorNeutralsWhite,
5422
+ backgroundColor: colors13.DdsColorNeutralsWhite,
5458
5423
  borderColor: border8.BordersDdsBorderStyleLightStroke,
5459
5424
  color: textDefault3.textColor
5460
5425
  }
@@ -5856,13 +5821,13 @@ var import_styled_components31 = __toESM(require("styled-components"));
5856
5821
 
5857
5822
  // src/components/Chip/Chip.tokens.tsx
5858
5823
  var import_dds_design_tokens27 = require("@norges-domstoler/dds-design-tokens");
5859
- var { colors: colors15, spacing: spacing13, borderRadius: borderRadius5 } = import_dds_design_tokens27.ddsBaseTokens;
5824
+ var { colors: colors14, spacing: spacing13, borderRadius: borderRadius5 } = import_dds_design_tokens27.ddsBaseTokens;
5860
5825
  var typographyType3 = "bodySans01";
5861
5826
  var container3 = {
5862
5827
  gap: spacing13.SizesDdsSpacingX025,
5863
5828
  padding: `${spacing13.SizesDdsSpacingX0125} ${spacing13.SizesDdsSpacingX025}`,
5864
- backgroundColor: colors15.DdsColorNeutralsGray1,
5865
- border: `1px solid ${colors15.DdsColorNeutralsGray3}`,
5829
+ backgroundColor: colors14.DdsColorNeutralsGray1,
5830
+ border: `1px solid ${colors14.DdsColorNeutralsGray3}`,
5866
5831
  borderRadius: borderRadius5.RadiiDdsBorderRadius1Radius
5867
5832
  };
5868
5833
  var group = {
@@ -6366,7 +6331,7 @@ var import_styled_components37 = __toESM(require("styled-components"));
6366
6331
 
6367
6332
  // src/components/date-inputs/DatePicker/DatePicker.tokens.ts
6368
6333
  var import_dds_design_tokens29 = require("@norges-domstoler/dds-design-tokens");
6369
- var { colors: colors16 } = import_dds_design_tokens29.ddsBaseTokens;
6334
+ var { colors: colors15 } = import_dds_design_tokens29.ddsBaseTokens;
6370
6335
  var segment = {
6371
6336
  medium: {
6372
6337
  font: {
@@ -6374,7 +6339,7 @@ var segment = {
6374
6339
  },
6375
6340
  placeholder: {
6376
6341
  ...import_dds_design_tokens29.ddsBaseTokens.fontPackages.supportingStyle_placeholdertext_01.base,
6377
- textColor: colors16.DdsColorNeutralsGray6
6342
+ textColor: colors15.DdsColorNeutralsGray6
6378
6343
  }
6379
6344
  },
6380
6345
  small: {
@@ -6383,7 +6348,7 @@ var segment = {
6383
6348
  },
6384
6349
  placeholder: {
6385
6350
  ...import_dds_design_tokens29.ddsBaseTokens.fontPackages.supportingStyle_placeholdertext_02.base,
6386
- textColor: colors16.DdsColorNeutralsGray6
6351
+ textColor: colors15.DdsColorNeutralsGray6
6387
6352
  }
6388
6353
  },
6389
6354
  tiny: {
@@ -6392,7 +6357,7 @@ var segment = {
6392
6357
  },
6393
6358
  placeholder: {
6394
6359
  ...import_dds_design_tokens29.ddsBaseTokens.fontPackages.supportingStyle_placeholdertext_03.base,
6395
- textColor: colors16.DdsColorNeutralsGray6
6360
+ textColor: colors15.DdsColorNeutralsGray6
6396
6361
  }
6397
6362
  },
6398
6363
  padding: {
@@ -6400,24 +6365,24 @@ var segment = {
6400
6365
  y: "0"
6401
6366
  },
6402
6367
  focus: {
6403
- textColor: colors16.DdsColorNeutralsWhite,
6404
- backgroundColor: colors16.DdsColorInteractiveBase
6368
+ textColor: colors15.DdsColorNeutralsWhite,
6369
+ backgroundColor: colors15.DdsColorInteractiveBase
6405
6370
  }
6406
6371
  };
6407
6372
  var calendarButton = {
6408
- color: colors16.DdsColorNeutralsGray9,
6373
+ color: colors15.DdsColorNeutralsGray9,
6409
6374
  disabled: {
6410
- color: colors16.DdsColorNeutralsGray6
6375
+ color: colors15.DdsColorNeutralsGray6
6411
6376
  },
6412
6377
  background: "transparent",
6413
6378
  borderRadius: import_dds_design_tokens29.ddsBaseTokens.borderRadius.RadiiDdsBorderRadius1Radius,
6414
6379
  hover: {
6415
- background: colors16.DdsColorInteractiveLightest,
6416
- color: colors16.DdsColorInteractiveBase
6380
+ background: colors15.DdsColorInteractiveLightest,
6381
+ color: colors15.DdsColorInteractiveBase
6417
6382
  },
6418
6383
  active: {
6419
- background: colors16.DdsColorInteractiveLighter,
6420
- color: colors16.DdsColorInteractiveBase
6384
+ background: colors15.DdsColorInteractiveLighter,
6385
+ color: colors15.DdsColorInteractiveBase
6421
6386
  },
6422
6387
  medium: {
6423
6388
  size: `calc(${import_dds_design_tokens29.ddsBaseTokens.iconSizes.DdsIconsizeMedium} + ${import_dds_design_tokens29.ddsBaseTokens.spacing.SizesDdsSpacingX05})`
@@ -6904,14 +6869,14 @@ var import_styled_components41 = __toESM(require("styled-components"));
6904
6869
 
6905
6870
  // src/components/DescriptionList/DescriptionList.tokens.tsx
6906
6871
  var import_dds_design_tokens30 = require("@norges-domstoler/dds-design-tokens");
6907
- var { spacing: spacing14, colors: colors17 } = import_dds_design_tokens30.ddsBaseTokens;
6872
+ var { spacing: spacing14, colors: colors16 } = import_dds_design_tokens30.ddsBaseTokens;
6908
6873
  var term = {
6909
6874
  appearance: {
6910
6875
  small: {
6911
- color: colors17.DdsColorNeutralsGray7
6876
+ color: colors16.DdsColorNeutralsGray7
6912
6877
  },
6913
6878
  bold: {
6914
- color: colors17.DdsColorNeutralsGray9
6879
+ color: colors16.DdsColorNeutralsGray9
6915
6880
  }
6916
6881
  },
6917
6882
  firstOfType: {
@@ -6921,7 +6886,7 @@ var term = {
6921
6886
  var desc = {
6922
6887
  base: {
6923
6888
  gap: spacing14.SizesDdsSpacingX025,
6924
- color: colors17.DdsColorNeutralsGray9
6889
+ color: colors16.DdsColorNeutralsGray9
6925
6890
  },
6926
6891
  lastChild: {
6927
6892
  marginBottom: spacing14.SizesDdsSpacingX1
@@ -7029,14 +6994,14 @@ var DListDesc = import_styled_components43.default.dd`
7029
6994
  gap: ${descriptionListTokens.desc.base.gap};
7030
6995
  `;
7031
6996
  var DescriptionListDesc = (0, import_react49.forwardRef)((props, ref) => {
7032
- const { children, icon: icon12, id, className, htmlProps, ...rest } = props;
6997
+ const { children, icon: icon11, id, className, htmlProps, ...rest } = props;
7033
6998
  const dListDescProps = {
7034
6999
  ...getBaseHTMLProps(id, className, htmlProps, rest),
7035
7000
  children,
7036
7001
  ref
7037
7002
  };
7038
7003
  return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(DListDesc, { ...dListDescProps, children: [
7039
- icon12 && /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Icon, { icon: icon12 }),
7004
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Icon, { icon: icon11 }),
7040
7005
  " ",
7041
7006
  children
7042
7007
  ] });
@@ -7291,7 +7256,7 @@ DrawerGroup.displayName = "DrawerGroup";
7291
7256
  var import_dds_design_tokens32 = require("@norges-domstoler/dds-design-tokens");
7292
7257
  var import_styled_components46 = __toESM(require("styled-components"));
7293
7258
  var import_jsx_runtime208 = require("react/jsx-runtime");
7294
- var { colors: colors18, spacing: spacing16 } = import_dds_design_tokens32.ddsBaseTokens;
7259
+ var { colors: colors17, spacing: spacing16 } = import_dds_design_tokens32.ddsBaseTokens;
7295
7260
  var StyledEmptyContent = import_styled_components46.default.div`
7296
7261
  display: flex;
7297
7262
  justify-content: center;
@@ -7299,7 +7264,7 @@ var StyledEmptyContent = import_styled_components46.default.div`
7299
7264
  min-height: ${spacing16.SizesDdsSpacingX10};
7300
7265
  height: 100%;
7301
7266
  width: 100%;
7302
- background-color: ${colors18.DdsColorNeutralsGray1};
7267
+ background-color: ${colors17.DdsColorNeutralsGray1};
7303
7268
  padding: ${spacing16.SizesDdsSpacingX15};
7304
7269
  `;
7305
7270
  var StyledEmptyContentText = import_styled_components46.default.div`
@@ -7401,7 +7366,7 @@ function useControllableState(props) {
7401
7366
  // src/components/FavStar/FavStar.tsx
7402
7367
  var import_jsx_runtime209 = require("react/jsx-runtime");
7403
7368
  var TRANSITION_SPEED = "0.2s";
7404
- var StyledIcon3 = (0, import_styled_components47.default)(Icon)`
7369
+ var StyledIcon2 = (0, import_styled_components47.default)(Icon)`
7405
7370
  color: currentColor;
7406
7371
  position: absolute;
7407
7372
  top: 0;
@@ -7447,7 +7412,7 @@ var Container5 = import_styled_components47.default.label`
7447
7412
  }
7448
7413
 
7449
7414
  &:active {
7450
- ${StyledIcon3} {
7415
+ ${StyledIcon2} {
7451
7416
  transform: scale(0.75);
7452
7417
  }
7453
7418
  }
@@ -7503,9 +7468,9 @@ var FavStar = (0, import_react55.forwardRef)(
7503
7468
  "aria-label": (_a = props["aria-label"]) != null ? _a : "Favoriser"
7504
7469
  }
7505
7470
  ),
7506
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(StyledIcon3, { iconSize: size2, icon: StarIcon }),
7471
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(StyledIcon2, { iconSize: size2, icon: StarIcon }),
7507
7472
  /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
7508
- StyledIcon3,
7473
+ StyledIcon2,
7509
7474
  {
7510
7475
  iconSize: size2,
7511
7476
  icon: StarFilledIcon,
@@ -7771,16 +7736,16 @@ var import_styled_components51 = __toESM(require("styled-components"));
7771
7736
 
7772
7737
  // src/components/Tooltip/Tooltip.tokens.tsx
7773
7738
  var import_dds_design_tokens37 = require("@norges-domstoler/dds-design-tokens");
7774
- var { colors: colors19, spacing: spacing19 } = import_dds_design_tokens37.ddsBaseTokens;
7739
+ var { colors: colors18, spacing: spacing19 } = import_dds_design_tokens37.ddsBaseTokens;
7775
7740
  var wrapper = {
7776
7741
  padding: `${spacing19.SizesDdsSpacingX075}`
7777
7742
  };
7778
7743
  var svgArrow = {
7779
7744
  border: {
7780
- fill: colors19.DdsColorPrimaryLighter
7745
+ fill: colors18.DdsColorPrimaryLighter
7781
7746
  },
7782
7747
  background: {
7783
- fill: colors19.DdsColorNeutralsWhite
7748
+ fill: colors18.DdsColorNeutralsWhite
7784
7749
  }
7785
7750
  };
7786
7751
  var tooltipTokens = {
@@ -8076,17 +8041,17 @@ var import_styled_components53 = __toESM(require("styled-components"));
8076
8041
 
8077
8042
  // src/components/FileUploader/FileUploader.tokens.tsx
8078
8043
  var import_dds_design_tokens39 = require("@norges-domstoler/dds-design-tokens");
8079
- var { colors: colors20, spacing: spacing20 } = import_dds_design_tokens39.ddsBaseTokens;
8044
+ var { colors: colors19, spacing: spacing20 } = import_dds_design_tokens39.ddsBaseTokens;
8080
8045
  var rootTokens = {
8081
- borderColor: colors20.DdsColorNeutralsGray5,
8082
- borderColorError: colors20.DdsColorDangerBase,
8046
+ borderColor: colors19.DdsColorNeutralsGray5,
8047
+ borderColorError: colors19.DdsColorDangerBase,
8083
8048
  paddingLeftRightTop: spacing20.SizesDdsSpacingX15,
8084
8049
  paddingBottom: spacing20.SizesDdsSpacingX2,
8085
8050
  gap: spacing20.SizesDdsSpacingX1,
8086
- backgroundColor: colors20.DdsColorNeutralsWhite,
8051
+ backgroundColor: colors19.DdsColorNeutralsWhite,
8087
8052
  dragActive: {
8088
- borderColor: colors20.DdsColorInteractiveBase,
8089
- backgroundColor: colors20.DdsColorInteractiveLightest
8053
+ borderColor: colors19.DdsColorInteractiveBase,
8054
+ backgroundColor: colors19.DdsColorInteractiveLightest
8090
8055
  }
8091
8056
  };
8092
8057
  var noZoneContainerTokens = {
@@ -8096,10 +8061,10 @@ var fileTokens = {
8096
8061
  marginTop: spacing20.SizesDdsSpacingX05,
8097
8062
  paddingLeftRight: spacing20.SizesDdsSpacingX05,
8098
8063
  paddingTopBottom: spacing20.SizesDdsSpacingX1,
8099
- backgroundColor: colors20.DdsColorNeutralsGray1,
8064
+ backgroundColor: colors19.DdsColorNeutralsGray1,
8100
8065
  textToIconsGap: spacing20.SizesDdsSpacingX075,
8101
8066
  invalid: {
8102
- borderColor: colors20.DdsColorDangerBase
8067
+ borderColor: colors19.DdsColorDangerBase
8103
8068
  }
8104
8069
  };
8105
8070
  var errorsTokens = {
@@ -8612,22 +8577,22 @@ var import_styled_components57 = __toESM(require("styled-components"));
8612
8577
 
8613
8578
  // src/components/GlobalMessage/GlobalMessage.tokens.tsx
8614
8579
  var import_dds_design_tokens40 = require("@norges-domstoler/dds-design-tokens");
8615
- var { colors: colors21, spacing: spacing21 } = import_dds_design_tokens40.ddsBaseTokens;
8580
+ var { colors: colors20, spacing: spacing21 } = import_dds_design_tokens40.ddsBaseTokens;
8616
8581
  var typographyType4 = "bodySans02";
8617
8582
  var container7 = {
8618
8583
  borderBottom: "2px solid",
8619
8584
  padding: `0 ${spacing21.SizesDdsSpacingX1}`,
8620
8585
  info: {
8621
- borderColor: colors21.DdsColorInfoLighter,
8622
- backgroundColor: colors21.DdsColorInfoLightest
8586
+ borderColor: colors20.DdsColorInfoLighter,
8587
+ backgroundColor: colors20.DdsColorInfoLightest
8623
8588
  },
8624
8589
  danger: {
8625
- borderColor: colors21.DdsColorDangerLighter,
8626
- backgroundColor: colors21.DdsColorDangerLightest
8590
+ borderColor: colors20.DdsColorDangerLighter,
8591
+ backgroundColor: colors20.DdsColorDangerLightest
8627
8592
  },
8628
8593
  warning: {
8629
- borderColor: colors21.DdsColorWarningLighter,
8630
- backgroundColor: colors21.DdsColorWarningLightest
8594
+ borderColor: colors20.DdsColorWarningLighter,
8595
+ backgroundColor: colors20.DdsColorWarningLightest
8631
8596
  }
8632
8597
  };
8633
8598
  var contentContainer3 = {
@@ -8659,20 +8624,20 @@ var globalMessageTokens = {
8659
8624
  icon: {
8660
8625
  marginRight: `${spacing21.SizesDdsSpacingX075}`,
8661
8626
  info: {
8662
- color: colors21.DdsColorInfoDarkest
8627
+ color: colors20.DdsColorInfoDarkest
8663
8628
  },
8664
8629
  danger: {
8665
- color: colors21.DdsColorDangerDarkest
8630
+ color: colors20.DdsColorDangerDarkest
8666
8631
  },
8667
8632
  warning: {
8668
- color: colors21.DdsColorWarningDarkest
8633
+ color: colors20.DdsColorWarningDarkest
8669
8634
  }
8670
8635
  }
8671
8636
  };
8672
8637
 
8673
8638
  // src/components/GlobalMessage/GlobalMessage.tsx
8674
8639
  var import_jsx_runtime220 = require("react/jsx-runtime");
8675
- var { container: container8, contentContainer: contentContainer4, icon: icon5 } = globalMessageTokens;
8640
+ var { container: container8, contentContainer: contentContainer4, icon: icon4 } = globalMessageTokens;
8676
8641
  var Container7 = import_styled_components57.default.div`
8677
8642
  display: flex;
8678
8643
  align-items: center;
@@ -8688,7 +8653,7 @@ var Container7 = import_styled_components57.default.div`
8688
8653
  `}
8689
8654
  `;
8690
8655
  var MessageIconWrapper = (0, import_styled_components57.default)(Icon)`
8691
- margin-right: ${icon5.marginRight};
8656
+ margin-right: ${icon4.marginRight};
8692
8657
  `;
8693
8658
  var ControlsContainer = import_styled_components57.default.div`
8694
8659
  display: flex;
@@ -8727,7 +8692,7 @@ var GlobalMessage = (0, import_react62.forwardRef)(
8727
8692
  MessageIconWrapper,
8728
8693
  {
8729
8694
  icon: purposeVariants[purpose].icon,
8730
- color: icon5[purpose].color
8695
+ color: icon4[purpose].color
8731
8696
  }
8732
8697
  ),
8733
8698
  children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Typography, { as: "span", children: message2 })
@@ -9016,7 +8981,7 @@ var import_styled_components60 = __toESM(require("styled-components"));
9016
8981
 
9017
8982
  // src/components/InlineEdit/InlineEdit.tokens.ts
9018
8983
  var import_dds_design_tokens42 = require("@norges-domstoler/dds-design-tokens");
9019
- var { colors: colors22, spacing: spacing23, fontPackages: fontPackages5 } = import_dds_design_tokens42.ddsBaseTokens;
8984
+ var { colors: colors21, spacing: spacing23, fontPackages: fontPackages5 } = import_dds_design_tokens42.ddsBaseTokens;
9020
8985
  var inlineEdit = {
9021
8986
  padding: spacing23.SizesDdsSpacingX025,
9022
8987
  font: fontPackages5.body_sans_02.base,
@@ -9025,10 +8990,10 @@ var inlineEdit = {
9025
8990
  paddingLeft: spacing23.SizesDdsSpacingX2
9026
8991
  },
9027
8992
  hover: {
9028
- backgroundColor: colors22.DdsColorInteractiveLightest
8993
+ backgroundColor: colors21.DdsColorInteractiveLightest
9029
8994
  },
9030
8995
  focus: {
9031
- backgroundColor: colors22.DdsColorNeutralsWhite
8996
+ backgroundColor: colors21.DdsColorNeutralsWhite
9032
8997
  }
9033
8998
  };
9034
8999
  var iconWrapper = {
@@ -9259,9 +9224,9 @@ var import_styled_components61 = __toESM(require("styled-components"));
9259
9224
 
9260
9225
  // src/components/InternalHeader/InternalHeader.tokens.tsx
9261
9226
  var import_dds_design_tokens43 = require("@norges-domstoler/dds-design-tokens");
9262
- var { border: border10, colors: colors23, spacing: spacing24 } = import_dds_design_tokens43.ddsBaseTokens;
9227
+ var { border: border10, colors: colors22, spacing: spacing24 } = import_dds_design_tokens43.ddsBaseTokens;
9263
9228
  var bar = {
9264
- backgroundColor: colors23.DdsColorNeutralsWhite,
9229
+ backgroundColor: colors22.DdsColorNeutralsWhite,
9265
9230
  itemGap: spacing24.SizesDdsSpacingX15,
9266
9231
  minHeight: "57px",
9267
9232
  borderBottom: `${border10.BordersDdsBorderStyleLightStroke} solid ${border10.BordersDdsBorderStyleLightStrokeWeight}`,
@@ -9650,7 +9615,7 @@ var import_styled_components65 = __toESM(require("styled-components"));
9650
9615
 
9651
9616
  // src/components/LocalMessage/LocalMessage.tokens.tsx
9652
9617
  var import_dds_design_tokens46 = require("@norges-domstoler/dds-design-tokens");
9653
- var { colors: colors24, spacing: spacing26, borderRadius: borderRadius6, border: border11, outerShadow: outerShadow3 } = import_dds_design_tokens46.ddsBaseTokens;
9618
+ var { colors: colors23, spacing: spacing26, borderRadius: borderRadius6, border: border11, outerShadow: outerShadow3 } = import_dds_design_tokens46.ddsBaseTokens;
9654
9619
  var container9 = {
9655
9620
  base: {
9656
9621
  boxShadow: outerShadow3.DdsShadow1Onlight,
@@ -9661,28 +9626,28 @@ var container9 = {
9661
9626
  },
9662
9627
  purpose: {
9663
9628
  info: {
9664
- borderColor: colors24.DdsColorInfoBase,
9665
- backgroundColor: colors24.DdsColorInfoLightest
9629
+ borderColor: colors23.DdsColorInfoBase,
9630
+ backgroundColor: colors23.DdsColorInfoLightest
9666
9631
  },
9667
9632
  warning: {
9668
- borderColor: colors24.DdsColorWarningBase,
9669
- backgroundColor: colors24.DdsColorWarningLightest
9633
+ borderColor: colors23.DdsColorWarningBase,
9634
+ backgroundColor: colors23.DdsColorWarningLightest
9670
9635
  },
9671
9636
  danger: {
9672
- borderColor: colors24.DdsColorDangerBase,
9673
- backgroundColor: colors24.DdsColorDangerLightest
9637
+ borderColor: colors23.DdsColorDangerBase,
9638
+ backgroundColor: colors23.DdsColorDangerLightest
9674
9639
  },
9675
9640
  success: {
9676
- borderColor: colors24.DdsColorSuccessBase,
9677
- backgroundColor: colors24.DdsColorSuccessLightest
9641
+ borderColor: colors23.DdsColorSuccessBase,
9642
+ backgroundColor: colors23.DdsColorSuccessLightest
9678
9643
  },
9679
9644
  tips: {
9680
- borderColor: colors24.DdsColorPrimaryBase,
9681
- backgroundColor: colors24.DdsColorPrimaryLightest
9645
+ borderColor: colors23.DdsColorPrimaryBase,
9646
+ backgroundColor: colors23.DdsColorPrimaryLightest
9682
9647
  },
9683
9648
  confidential: {
9684
- borderColor: colors24.DdsColorDangerBase,
9685
- backgroundColor: colors24.DdsColorDangerLightest
9649
+ borderColor: colors23.DdsColorDangerBase,
9650
+ backgroundColor: colors23.DdsColorDangerLightest
9686
9651
  }
9687
9652
  }
9688
9653
  };
@@ -9717,37 +9682,37 @@ var purposeVariants2 = {
9717
9682
  closeButtonPurpose: "danger"
9718
9683
  }
9719
9684
  };
9720
- var icon6 = {
9685
+ var icon5 = {
9721
9686
  marginRight: `${spacing26.SizesDdsSpacingX075}`,
9722
9687
  info: {
9723
- color: colors24.DdsColorInfoDarkest
9688
+ color: colors23.DdsColorInfoDarkest
9724
9689
  },
9725
9690
  danger: {
9726
- color: colors24.DdsColorDangerDarkest
9691
+ color: colors23.DdsColorDangerDarkest
9727
9692
  },
9728
9693
  warning: {
9729
- color: colors24.DdsColorWarningDarkest
9694
+ color: colors23.DdsColorWarningDarkest
9730
9695
  },
9731
9696
  success: {
9732
- color: colors24.DdsColorSuccessDarkest
9697
+ color: colors23.DdsColorSuccessDarkest
9733
9698
  },
9734
9699
  tips: {
9735
- color: colors24.DdsColorPrimaryDarkest
9700
+ color: colors23.DdsColorPrimaryDarkest
9736
9701
  },
9737
9702
  confidential: {
9738
- color: colors24.DdsColorDangerDarkest
9703
+ color: colors23.DdsColorDangerDarkest
9739
9704
  }
9740
9705
  };
9741
9706
  var localMessageTokens = {
9742
9707
  container: container9,
9743
9708
  content: content3,
9744
9709
  purposeVariants: purposeVariants2,
9745
- icon: icon6
9710
+ icon: icon5
9746
9711
  };
9747
9712
 
9748
9713
  // src/components/LocalMessage/LocalMessage.tsx
9749
9714
  var import_jsx_runtime233 = require("react/jsx-runtime");
9750
- var { container: container10, content: content4, icon: icon7, purposeVariants: purposeVariants3 } = localMessageTokens;
9715
+ var { container: container10, content: content4, icon: icon6, purposeVariants: purposeVariants3 } = localMessageTokens;
9751
9716
  var Container8 = import_styled_components65.default.div.withConfig({
9752
9717
  shouldForwardProp: (prop) => {
9753
9718
  const styleOnlyProps = [
@@ -9842,7 +9807,7 @@ var LocalMessage = (0, import_react73.forwardRef)(
9842
9807
  MessageIconWrapper2,
9843
9808
  {
9844
9809
  icon: purposeVariants3[purpose].icon,
9845
- color: icon7[purpose].color
9810
+ color: icon6[purpose].color
9846
9811
  }
9847
9812
  ),
9848
9813
  /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(TextContainer2, { children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Typography, { as: "span", children: message2 }) }),
@@ -10079,12 +10044,12 @@ var import_styled_components71 = __toESM(require("styled-components"));
10079
10044
 
10080
10045
  // src/components/Pagination/Pagination.tokens.tsx
10081
10046
  var import_dds_design_tokens49 = require("@norges-domstoler/dds-design-tokens");
10082
- var { spacing: spacing28, colors: colors25 } = import_dds_design_tokens49.ddsBaseTokens;
10047
+ var { spacing: spacing28, colors: colors24 } = import_dds_design_tokens49.ddsBaseTokens;
10083
10048
  var list7 = {
10084
10049
  gap: spacing28.SizesDdsSpacingX075
10085
10050
  };
10086
10051
  var truncationIcon = {
10087
- color: colors25.DdsColorNeutralsGray7
10052
+ color: colors24.DdsColorNeutralsGray7
10088
10053
  };
10089
10054
  var outerContainer3 = {
10090
10055
  gap: spacing28.SizesDdsSpacingX075
@@ -10141,7 +10106,7 @@ var import_styled_components70 = __toESM(require("styled-components"));
10141
10106
 
10142
10107
  // src/components/Select/Select.tokens.tsx
10143
10108
  var import_dds_design_tokens50 = require("@norges-domstoler/dds-design-tokens");
10144
- var { colors: colors26, spacing: spacing29, borderRadius: borderRadius7, border: border12 } = import_dds_design_tokens50.ddsBaseTokens;
10109
+ var { colors: colors25, spacing: spacing29, borderRadius: borderRadius7, border: border12 } = import_dds_design_tokens50.ddsBaseTokens;
10145
10110
  var { textDefault: textDefault5 } = import_dds_design_tokens50.ddsReferenceTokens;
10146
10111
  var placeholderTypographyTypes = {
10147
10112
  medium: "supportingStylePlaceholderText01",
@@ -10164,12 +10129,12 @@ var typographyTypes3 = {
10164
10129
  var control = {
10165
10130
  borderRadius: borderRadius7.RadiiDdsBorderRadius1Radius,
10166
10131
  border: `${border12.BordersDdsBorderStyleLightStrokeWeight} solid`,
10167
- borderColor: colors26.DdsColorNeutralsGray5,
10168
- backgroundColor: colors26.DdsColorNeutralsWhite,
10169
- color: colors26.DdsColorNeutralsGray9,
10132
+ borderColor: colors25.DdsColorNeutralsGray5,
10133
+ backgroundColor: colors25.DdsColorNeutralsWhite,
10134
+ color: colors25.DdsColorNeutralsGray9,
10170
10135
  disabled: {
10171
- backgroundColor: colors26.DdsColorNeutralsGray1,
10172
- borderColor: colors26.DdsColorNeutralsGray5
10136
+ backgroundColor: colors25.DdsColorNeutralsGray1,
10137
+ borderColor: colors25.DdsColorNeutralsGray5
10173
10138
  },
10174
10139
  readOnly: {
10175
10140
  borderColor: "transparent",
@@ -10202,14 +10167,14 @@ var control = {
10202
10167
  }
10203
10168
  };
10204
10169
  var placeholder = {
10205
- color: colors26.DdsColorNeutralsGray6
10170
+ color: colors25.DdsColorNeutralsGray6
10206
10171
  };
10207
10172
  var dropdownIndicator = {
10208
10173
  base: {
10209
- color: colors26.DdsColorNeutralsGray6
10174
+ color: colors25.DdsColorNeutralsGray6
10210
10175
  },
10211
10176
  hover: {
10212
- color: colors26.DdsColorInteractiveBase
10177
+ color: colors25.DdsColorInteractiveBase
10213
10178
  },
10214
10179
  readOnly: {
10215
10180
  color: "transparent"
@@ -10217,23 +10182,23 @@ var dropdownIndicator = {
10217
10182
  };
10218
10183
  var clearIndicator = {
10219
10184
  base: {
10220
- color: colors26.DdsColorNeutralsGray6
10185
+ color: colors25.DdsColorNeutralsGray6
10221
10186
  },
10222
- hover: { color: colors26.DdsColorInteractiveBase }
10187
+ hover: { color: colors25.DdsColorInteractiveBase }
10223
10188
  };
10224
10189
  var loadingIndicator = {
10225
- color: colors26.DdsColorNeutralsGray6
10190
+ color: colors25.DdsColorNeutralsGray6
10226
10191
  };
10227
10192
  var menu = {
10228
10193
  border: "1px solid",
10229
- borderColor: colors26.DdsColorInteractiveBase,
10230
- backgroundColor: colors26.DdsColorNeutralsWhite,
10194
+ borderColor: colors25.DdsColorInteractiveBase,
10195
+ backgroundColor: colors25.DdsColorNeutralsWhite,
10231
10196
  borderRadius: borderRadius7.RadiiDdsBorderRadius1Radius,
10232
10197
  marginTop: spacing29.SizesDdsSpacingX025,
10233
10198
  marginBottom: spacing29.SizesDdsSpacingX025
10234
10199
  };
10235
10200
  var groupHeading = {
10236
- color: colors26.DdsColorNeutralsGray7,
10201
+ color: colors25.DdsColorNeutralsGray7,
10237
10202
  padding: `${spacing29.SizesDdsSpacingX05} ${spacing29.SizesDdsSpacingX075} ${spacing29.SizesDdsSpacingX0125} ${spacing29.SizesDdsSpacingX075}`
10238
10203
  };
10239
10204
  var option = {
@@ -10241,44 +10206,44 @@ var option = {
10241
10206
  color: textDefault5.textColor,
10242
10207
  gap: spacing29.SizesDdsSpacingX05,
10243
10208
  padding: `${spacing29.SizesDdsSpacingX075}`,
10244
- backgroundColor: colors26.DdsColorNeutralsWhite
10209
+ backgroundColor: colors25.DdsColorNeutralsWhite
10245
10210
  },
10246
10211
  hover: {
10247
10212
  color: textDefault5.textColor,
10248
- backgroundColor: colors26.DdsColorInteractiveLightest
10213
+ backgroundColor: colors25.DdsColorInteractiveLightest
10249
10214
  },
10250
10215
  focus: {
10251
10216
  color: textDefault5.textColor,
10252
- backgroundColor: colors26.DdsColorInteractiveLightest
10217
+ backgroundColor: colors25.DdsColorInteractiveLightest
10253
10218
  },
10254
10219
  selected: {
10255
10220
  color: textDefault5.textColor,
10256
- backgroundColor: colors26.DdsColorNeutralsWhite
10221
+ backgroundColor: colors25.DdsColorNeutralsWhite
10257
10222
  }
10258
10223
  };
10259
10224
  var noOptionsMessage = {
10260
10225
  padding: `${spacing29.SizesDdsSpacingX05} ${spacing29.SizesDdsSpacingX1}`,
10261
- color: colors26.DdsColorNeutralsGray6
10226
+ color: colors25.DdsColorNeutralsGray6
10262
10227
  };
10263
10228
  var multiValue = {
10264
10229
  borderRadius: borderRadius7.RadiiDdsBorderRadius1Radius,
10265
- backgroundColor: colors26.DdsColorNeutralsGray2
10230
+ backgroundColor: colors25.DdsColorNeutralsGray2
10266
10231
  };
10267
10232
  var multiValueLabel = {
10268
10233
  padding: `0 ${spacing29.SizesDdsSpacingX025}`,
10269
- color: colors26.DdsColorNeutralsGray9
10234
+ color: colors25.DdsColorNeutralsGray9
10270
10235
  };
10271
10236
  var multiValueRemove = {
10272
10237
  base: {
10273
- color: colors26.DdsColorNeutralsGray9,
10238
+ color: colors25.DdsColorNeutralsGray9,
10274
10239
  padding: `0 ${spacing29.SizesDdsSpacingX025}`,
10275
10240
  borderTopRightRadius: borderRadius7.RadiiDdsBorderRadius1Radius,
10276
10241
  borderBottomRightRadius: borderRadius7.RadiiDdsBorderRadius1Radius
10277
10242
  },
10278
10243
  hover: {
10279
- color: colors26.DdsColorNeutralsWhite,
10280
- backgroundColor: colors26.DdsColorInteractiveBase,
10281
- boxShadow: `inset 0 0 0 1px ${colors26.DdsColorNeutralsGray9}`
10244
+ color: colors25.DdsColorNeutralsWhite,
10245
+ backgroundColor: colors25.DdsColorInteractiveBase,
10246
+ boxShadow: `inset 0 0 0 1px ${colors25.DdsColorNeutralsGray9}`
10282
10247
  }
10283
10248
  };
10284
10249
  var valueContainer = {
@@ -10286,7 +10251,7 @@ var valueContainer = {
10286
10251
  gap: spacing29.SizesDdsSpacingX025
10287
10252
  }
10288
10253
  };
10289
- var icon8 = {
10254
+ var icon7 = {
10290
10255
  marginRight: spacing29.SizesDdsSpacingX05
10291
10256
  };
10292
10257
  var selectTokens = {
@@ -10303,7 +10268,7 @@ var selectTokens = {
10303
10268
  noOptionsMessage,
10304
10269
  clearIndicator,
10305
10270
  loadingIndicator,
10306
- icon: icon8
10271
+ icon: icon7
10307
10272
  };
10308
10273
 
10309
10274
  // src/components/Select/Select.styles.ts
@@ -10320,7 +10285,7 @@ var {
10320
10285
  multiValueRemove: multiValueRemove2,
10321
10286
  noOptionsMessage: noOptionsMessage2,
10322
10287
  placeholder: placeholder2,
10323
- icon: icon9,
10288
+ icon: icon8,
10324
10289
  valueContainer: valueContainer2
10325
10290
  } = selectTokens;
10326
10291
  var prefix = "dds-select";
@@ -10401,8 +10366,8 @@ var InnerSingleValue = import_styled_components70.default.div`
10401
10366
  box-sizing: border-box;
10402
10367
  max-width: 100%;
10403
10368
  `;
10404
- var StyledIcon4 = (0, import_styled_components70.default)(Icon)`
10405
- margin-right: ${icon9.marginRight};
10369
+ var StyledIcon3 = (0, import_styled_components70.default)(Icon)`
10370
+ margin-right: ${icon8.marginRight};
10406
10371
  `;
10407
10372
  var getCustomStyles = (size2) => ({
10408
10373
  control: () => ({
@@ -10595,8 +10560,8 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, impo
10595
10560
  "aria-describedby": ariaDescribedby
10596
10561
  }
10597
10562
  );
10598
- var DDSControl = (props, componentSize, icon12) => /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(Control, { ...props, children: [
10599
- icon12 && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(StyledIcon4, { icon: icon12, iconSize: getFormInputIconSize(componentSize) }),
10563
+ var DDSControl = (props, componentSize, icon11) => /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(Control, { ...props, children: [
10564
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(StyledIcon3, { icon: icon11, iconSize: getFormInputIconSize(componentSize) }),
10600
10565
  props.children
10601
10566
  ] });
10602
10567
 
@@ -10617,7 +10582,7 @@ function SelectInner(props, ref) {
10617
10582
  options,
10618
10583
  isMulti,
10619
10584
  value,
10620
- icon: icon12,
10585
+ icon: icon11,
10621
10586
  defaultValue,
10622
10587
  width = defaultWidth4,
10623
10588
  closeMenuOnSelect,
@@ -10681,7 +10646,7 @@ function SelectInner(props, ref) {
10681
10646
  ClearIndicator: (props2) => DDSClearIndicator(props2, componentSize),
10682
10647
  DropdownIndicator: (props2) => DDSDropdownIndicator(props2, componentSize),
10683
10648
  MultiValueRemove: DDSMultiValueRemove,
10684
- Control: (props2) => DDSControl(props2, componentSize, icon12)
10649
+ Control: (props2) => DDSControl(props2, componentSize, icon11)
10685
10650
  },
10686
10651
  "aria-invalid": hasErrorMessage ? true : void 0,
10687
10652
  required,
@@ -10703,7 +10668,7 @@ var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }))
10703
10668
  // src/components/Pagination/Pagination.tsx
10704
10669
  var import_jsx_runtime239 = require("react/jsx-runtime");
10705
10670
  var { outerContainer: outerContainer4, indicatorsContainer: indicatorsContainer2, truncationIcon: truncationIcon2, list: list8 } = paginationTokens;
10706
- var Nav2 = import_styled_components71.default.nav`
10671
+ var Nav = import_styled_components71.default.nav`
10707
10672
  display: flex;
10708
10673
  align-items: center;
10709
10674
  `;
@@ -10836,12 +10801,12 @@ var Pagination = (0, import_react78.forwardRef)(
10836
10801
  };
10837
10802
  const isOnFirstPage = activePage === 1;
10838
10803
  const isOnLastPage = activePage === pagesLength;
10839
- const navigation2 = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Nav2, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(List3, { children: [
10804
+ const navigation2 = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(List3, { children: [
10840
10805
  /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10841
10806
  listItems,
10842
10807
  /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton })
10843
10808
  ] }) }) : null;
10844
- const smallScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Nav2, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(List3, { children: [
10809
+ const smallScreenNavigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(List3, { children: [
10845
10810
  /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10846
10811
  Button,
10847
10812
  {
@@ -11130,7 +11095,7 @@ var useProgressTrackerContext = () => (0, import_react81.useContext)(ProgressTra
11130
11095
 
11131
11096
  // src/components/ProgressTracker/ProgressTracker.tokens.tsx
11132
11097
  var import_dds_design_tokens53 = require("@norges-domstoler/dds-design-tokens");
11133
- var { colors: colors27, spacing: spacing31 } = import_dds_design_tokens53.ddsBaseTokens;
11098
+ var { colors: colors26, spacing: spacing31 } = import_dds_design_tokens53.ddsBaseTokens;
11134
11099
  var typographyTypes4 = {
11135
11100
  number: "bodySans01",
11136
11101
  label: "bodySans03"
@@ -11142,7 +11107,7 @@ var itemContentWrapper = {
11142
11107
  gap: spacing31.SizesDdsSpacingX05
11143
11108
  };
11144
11109
  var connector = {
11145
- color: colors27.DdsColorNeutralsGray5,
11110
+ color: colors26.DdsColorNeutralsGray5,
11146
11111
  height: "18px",
11147
11112
  width: "1px"
11148
11113
  };
@@ -11151,87 +11116,87 @@ var itemNumber = {
11151
11116
  borderWidth: "2px",
11152
11117
  iconSize: "small",
11153
11118
  activeIncomplete: {
11154
- borderColor: colors27.DdsColorInteractiveBase,
11155
- color: colors27.DdsColorNeutralsWhite,
11156
- backgroundColor: colors27.DdsColorInteractiveBase,
11119
+ borderColor: colors26.DdsColorInteractiveBase,
11120
+ color: colors26.DdsColorNeutralsWhite,
11121
+ backgroundColor: colors26.DdsColorInteractiveBase,
11157
11122
  hover: {
11158
- borderColor: colors27.DdsColorInteractiveBase,
11159
- color: colors27.DdsColorNeutralsWhite,
11160
- backgroundColor: colors27.DdsColorInteractiveBase
11123
+ borderColor: colors26.DdsColorInteractiveBase,
11124
+ color: colors26.DdsColorNeutralsWhite,
11125
+ backgroundColor: colors26.DdsColorInteractiveBase
11161
11126
  }
11162
11127
  },
11163
11128
  activeCompleted: {
11164
- borderColor: colors27.DdsColorInteractiveBase,
11165
- color: colors27.DdsColorNeutralsWhite,
11166
- backgroundColor: colors27.DdsColorInteractiveBase,
11129
+ borderColor: colors26.DdsColorInteractiveBase,
11130
+ color: colors26.DdsColorNeutralsWhite,
11131
+ backgroundColor: colors26.DdsColorInteractiveBase,
11167
11132
  hover: {
11168
- borderColor: colors27.DdsColorInteractiveDark,
11169
- color: colors27.DdsColorNeutralsWhite,
11170
- backgroundColor: colors27.DdsColorInteractiveDark
11133
+ borderColor: colors26.DdsColorInteractiveDark,
11134
+ color: colors26.DdsColorNeutralsWhite,
11135
+ backgroundColor: colors26.DdsColorInteractiveDark
11171
11136
  }
11172
11137
  },
11173
11138
  inactiveCompleted: {
11174
- borderColor: colors27.DdsColorInteractiveBase,
11175
- color: colors27.DdsColorNeutralsWhite,
11176
- backgroundColor: colors27.DdsColorInteractiveBase,
11139
+ borderColor: colors26.DdsColorInteractiveBase,
11140
+ color: colors26.DdsColorNeutralsWhite,
11141
+ backgroundColor: colors26.DdsColorInteractiveBase,
11177
11142
  hover: {
11178
- borderColor: colors27.DdsColorInteractiveDark,
11179
- color: colors27.DdsColorNeutralsWhite,
11180
- backgroundColor: colors27.DdsColorInteractiveDark
11143
+ borderColor: colors26.DdsColorInteractiveDark,
11144
+ color: colors26.DdsColorNeutralsWhite,
11145
+ backgroundColor: colors26.DdsColorInteractiveDark
11181
11146
  }
11182
11147
  },
11183
11148
  inactiveIncomplete: {
11184
- borderColor: colors27.DdsColorInteractiveBase,
11185
- color: colors27.DdsColorInteractiveBase,
11186
- backgroundColor: colors27.DdsColorNeutralsWhite,
11149
+ borderColor: colors26.DdsColorInteractiveBase,
11150
+ color: colors26.DdsColorInteractiveBase,
11151
+ backgroundColor: colors26.DdsColorNeutralsWhite,
11187
11152
  hover: {
11188
- borderColor: colors27.DdsColorInteractiveBase,
11189
- color: colors27.DdsColorInteractiveBase,
11190
- backgroundColor: colors27.DdsColorInteractiveLightest
11153
+ borderColor: colors26.DdsColorInteractiveBase,
11154
+ color: colors26.DdsColorInteractiveBase,
11155
+ backgroundColor: colors26.DdsColorInteractiveLightest
11191
11156
  }
11192
11157
  },
11193
11158
  disabled: {
11194
- borderColor: colors27.DdsColorNeutralsGray5,
11195
- color: colors27.DdsColorNeutralsGray5,
11196
- backgroundColor: colors27.DdsColorNeutralsWhite
11159
+ borderColor: colors26.DdsColorNeutralsGray5,
11160
+ color: colors26.DdsColorNeutralsGray5,
11161
+ backgroundColor: colors26.DdsColorNeutralsWhite
11197
11162
  }
11198
11163
  };
11199
11164
  var itemText = {
11200
11165
  textDecoration: "underline",
11201
11166
  activeCompleted: {
11202
- color: colors27.DdsColorInteractiveBase,
11167
+ color: colors26.DdsColorInteractiveBase,
11203
11168
  textDecorationColor: "transparent",
11204
11169
  hover: {
11205
- color: colors27.DdsColorInteractiveBase,
11170
+ color: colors26.DdsColorInteractiveBase,
11206
11171
  textDecorationColor: "transparent"
11207
11172
  }
11208
11173
  },
11209
11174
  activeIncomplete: {
11210
- color: colors27.DdsColorInteractiveBase,
11175
+ color: colors26.DdsColorInteractiveBase,
11211
11176
  textDecorationColor: "transparent",
11212
11177
  hover: {
11213
- color: colors27.DdsColorInteractiveBase,
11178
+ color: colors26.DdsColorInteractiveBase,
11214
11179
  textDecorationColor: "transparent"
11215
11180
  }
11216
11181
  },
11217
11182
  inactiveIncomplete: {
11218
- color: colors27.DdsColorNeutralsGray7,
11219
- textDecorationColor: colors27.DdsColorNeutralsGray7,
11183
+ color: colors26.DdsColorNeutralsGray7,
11184
+ textDecorationColor: colors26.DdsColorNeutralsGray7,
11220
11185
  hover: {
11221
- color: colors27.DdsColorInteractiveBase,
11222
- textDecorationColor: colors27.DdsColorInteractiveBase
11186
+ color: colors26.DdsColorInteractiveBase,
11187
+ textDecorationColor: colors26.DdsColorInteractiveBase
11223
11188
  }
11224
11189
  },
11225
11190
  inactiveCompleted: {
11226
- color: colors27.DdsColorNeutralsGray7,
11227
- textDecorationColor: colors27.DdsColorNeutralsGray7,
11191
+ color: colors26.DdsColorNeutralsGray7,
11192
+ textDecorationColor: colors26.DdsColorNeutralsGray7,
11228
11193
  hover: {
11229
- color: colors27.DdsColorInteractiveBase,
11230
- textDecorationColor: colors27.DdsColorInteractiveBase
11194
+ color: colors26.DdsColorInteractiveBase,
11195
+ textDecorationColor: colors26.DdsColorInteractiveBase
11231
11196
  }
11232
11197
  },
11233
11198
  disabled: {
11234
- color: colors27.DdsColorNeutralsGray6,
11199
+ color: colors26.DdsColorNeutralsGray6,
11235
11200
  textDecorationColor: "transparent"
11236
11201
  }
11237
11202
  };
@@ -11333,7 +11298,7 @@ var ProgressTrackerItem = (props) => {
11333
11298
  index = 0,
11334
11299
  completed = false,
11335
11300
  disabled = false,
11336
- icon: icon12,
11301
+ icon: icon11,
11337
11302
  children
11338
11303
  } = props;
11339
11304
  const { activeStep, handleStepChange } = useProgressTrackerContext();
@@ -11345,11 +11310,11 @@ var ProgressTrackerItem = (props) => {
11345
11310
  if (completed) {
11346
11311
  return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon, { icon: CheckIcon, iconSize: itemNumber2.iconSize });
11347
11312
  }
11348
- if (icon12 !== void 0) {
11349
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon, { icon: icon12, iconSize: itemNumber2.iconSize });
11313
+ if (icon11 !== void 0) {
11314
+ return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon, { icon: icon11, iconSize: itemNumber2.iconSize });
11350
11315
  }
11351
11316
  return index + 1;
11352
- }, [completed, icon12, index]);
11317
+ }, [completed, icon11, index]);
11353
11318
  return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(ItemWrapper, { "aria-current": active ? "step" : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
11354
11319
  ItemContentWrapper,
11355
11320
  {
@@ -11469,7 +11434,7 @@ var useAutocompleteSearch = () => {
11469
11434
 
11470
11435
  // src/components/Search/Search.tokens.tsx
11471
11436
  var import_dds_design_tokens54 = require("@norges-domstoler/dds-design-tokens");
11472
- var { spacing: spacing32, iconSizes: iconSizes2, colors: colors28 } = import_dds_design_tokens54.ddsBaseTokens;
11437
+ var { spacing: spacing32, iconSizes: iconSizes2, colors: colors27 } = import_dds_design_tokens54.ddsBaseTokens;
11473
11438
  var { textDefault: textDefault6 } = import_dds_design_tokens54.ddsReferenceTokens;
11474
11439
  var typographyTypes5 = {
11475
11440
  small: "bodySans01",
@@ -11531,8 +11496,8 @@ var clearButton = {
11531
11496
  };
11532
11497
  var suggestionsContainer = {
11533
11498
  marginTop: spacing32.SizesDdsSpacingX025,
11534
- border: `1px solid ${colors28.DdsColorInteractiveBase}`,
11535
- boxShadow: `0 0 0 1px ${colors28.DdsColorInteractiveBase}`
11499
+ border: `1px solid ${colors27.DdsColorInteractiveBase}`,
11500
+ boxShadow: `0 0 0 1px ${colors27.DdsColorInteractiveBase}`
11536
11501
  };
11537
11502
  var suggestionsHeader = {
11538
11503
  paddingLeft: spacing32.SizesDdsSpacingX1
@@ -11618,7 +11583,7 @@ var SearchSuggestions = (0, import_react85.forwardRef)((props, ref) => {
11618
11583
  searchId,
11619
11584
  "suggestions-header"
11620
11585
  );
11621
- const [focus, setFocus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, !showSuggestions);
11586
+ const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
11622
11587
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
11623
11588
  const renderedSuggestions = /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(SuggestionsList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
11624
11589
  return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
@@ -11626,7 +11591,6 @@ var SearchSuggestions = (0, import_react85.forwardRef)((props, ref) => {
11626
11591
  {
11627
11592
  index,
11628
11593
  focus: focus === index && showSuggestions,
11629
- setFocus,
11630
11594
  "aria-label": `s\xF8k p\xE5 ${suggestion}`,
11631
11595
  onClick: onSuggestionClick,
11632
11596
  title: suggestion,
@@ -11966,13 +11930,13 @@ var selectionControlTypographyProps = {
11966
11930
  };
11967
11931
 
11968
11932
  // src/components/SelectionControl/SelectionControl.tokens.tsx
11969
- var { colors: colors29, spacing: spacing33, borderRadius: borderRadius8 } = import_dds_design_tokens55.ddsBaseTokens;
11933
+ var { colors: colors28, spacing: spacing33, borderRadius: borderRadius8 } = import_dds_design_tokens55.ddsBaseTokens;
11970
11934
  var checkmark = {
11971
11935
  checkbox: {
11972
- borderColor: colors29.DdsColorNeutralsWhite
11936
+ borderColor: colors28.DdsColorNeutralsWhite
11973
11937
  },
11974
11938
  radio: {
11975
- backgroundColor: colors29.DdsColorNeutralsWhite,
11939
+ backgroundColor: colors28.DdsColorNeutralsWhite,
11976
11940
  height: spacing33.SizesDdsSpacingX05,
11977
11941
  width: spacing33.SizesDdsSpacingX05,
11978
11942
  left: `calc(50% - ${spacing33.SizesDdsSpacingX05NumberPx / 2}px)`,
@@ -11982,20 +11946,20 @@ var checkmark = {
11982
11946
  var selectionControl = {
11983
11947
  base: {
11984
11948
  border: "1px solid",
11985
- borderColor: colors29.DdsColorNeutralsGray5,
11986
- backgroundColor: colors29.DdsColorNeutralsWhite,
11949
+ borderColor: colors28.DdsColorNeutralsGray5,
11950
+ backgroundColor: colors28.DdsColorNeutralsWhite,
11987
11951
  borderRadius: borderRadius8.RadiiDdsBorderRadius1Radius,
11988
11952
  height: selectionControlSize,
11989
11953
  width: selectionControlSize
11990
11954
  },
11991
11955
  hover: {
11992
11956
  base: {
11993
- backgroundColor: colors29.DdsColorInteractiveLightest,
11957
+ backgroundColor: colors28.DdsColorInteractiveLightest,
11994
11958
  boxShadow: `inset 0 0 0 1px ${hoverInputfield.borderColor}`,
11995
11959
  borderColor: hoverInputfield.borderColor
11996
11960
  },
11997
11961
  danger: {
11998
- backgroundColor: colors29.DdsColorDangerLightest,
11962
+ backgroundColor: colors28.DdsColorDangerLightest,
11999
11963
  boxShadow: `inset 0 0 0 1px ${dangerInputfield.borderColor}`,
12000
11964
  borderColor: dangerInputfield.borderColor
12001
11965
  }
@@ -12005,39 +11969,39 @@ var selectionControl = {
12005
11969
  borderColor: dangerInputfield.borderColor
12006
11970
  },
12007
11971
  disabled: {
12008
- borderColor: colors29.DdsColorNeutralsGray5
11972
+ borderColor: colors28.DdsColorNeutralsGray5
12009
11973
  },
12010
11974
  readOnly: { backgroundColor: "transparent" },
12011
11975
  checked: {
12012
11976
  base: {
12013
- borderColor: colors29.DdsColorInteractiveBase,
12014
- backgroundColor: colors29.DdsColorInteractiveBase
11977
+ borderColor: colors28.DdsColorInteractiveBase,
11978
+ backgroundColor: colors28.DdsColorInteractiveBase
12015
11979
  },
12016
11980
  hover: {
12017
- backgroundColor: colors29.DdsColorInteractiveDark,
12018
- boxShadow: `inset 0 0 0 1px ${colors29.DdsColorInteractiveDark}`,
12019
- borderColor: colors29.DdsColorInteractiveDark
11981
+ backgroundColor: colors28.DdsColorInteractiveDark,
11982
+ boxShadow: `inset 0 0 0 1px ${colors28.DdsColorInteractiveDark}`,
11983
+ borderColor: colors28.DdsColorInteractiveDark
12020
11984
  },
12021
11985
  disabled: {
12022
- borderColor: colors29.DdsColorNeutralsGray6,
12023
- backgroundColor: colors29.DdsColorNeutralsGray6
11986
+ borderColor: colors28.DdsColorNeutralsGray6,
11987
+ backgroundColor: colors28.DdsColorNeutralsGray6
12024
11988
  },
12025
11989
  readOnly: {
12026
- borderColor: colors29.DdsColorNeutralsGray6,
12027
- backgroundColor: colors29.DdsColorNeutralsGray6
11990
+ borderColor: colors28.DdsColorNeutralsGray6,
11991
+ backgroundColor: colors28.DdsColorNeutralsGray6
12028
11992
  }
12029
11993
  },
12030
11994
  checkbox: {
12031
11995
  indeterminate: {
12032
- borderColor: colors29.DdsColorInteractiveBase,
12033
- backgroundColor: colors29.DdsColorInteractiveBase
11996
+ borderColor: colors28.DdsColorInteractiveBase,
11997
+ backgroundColor: colors28.DdsColorInteractiveBase
12034
11998
  }
12035
11999
  }
12036
12000
  };
12037
12001
  var container13 = {
12038
- color: colors29.DdsColorNeutralsGray9,
12002
+ color: colors28.DdsColorNeutralsGray9,
12039
12003
  disabled: {
12040
- color: colors29.DdsColorNeutralsGray6
12004
+ color: colors28.DdsColorNeutralsGray6
12041
12005
  },
12042
12006
  withLabel: {
12043
12007
  paddingLeft: `${selectionControlSizeNumberPx + spacing33.SizesDdsSpacingX05NumberPx}px`
@@ -12556,27 +12520,27 @@ var import_styled_components78 = __toESM(require("styled-components"));
12556
12520
 
12557
12521
  // src/components/SkipToContent/SkipToContent.tokens.tsx
12558
12522
  var import_dds_design_tokens56 = require("@norges-domstoler/dds-design-tokens");
12559
- var { colors: colors30, spacing: spacing34 } = import_dds_design_tokens56.ddsBaseTokens;
12560
- var link3 = {
12523
+ var { colors: colors29, spacing: spacing34 } = import_dds_design_tokens56.ddsBaseTokens;
12524
+ var link4 = {
12561
12525
  base: {
12562
- color: colors30.DdsColorNeutralsWhite
12526
+ color: colors29.DdsColorNeutralsWhite
12563
12527
  },
12564
12528
  hover: {
12565
- color: colors30.DdsColorNeutralsWhite
12529
+ color: colors29.DdsColorNeutralsWhite
12566
12530
  }
12567
12531
  };
12568
12532
  var wrapper5 = {
12569
- backgroundColor: colors30.DdsColorPrimaryBase,
12533
+ backgroundColor: colors29.DdsColorPrimaryBase,
12570
12534
  padding: spacing34.SizesDdsSpacingX025
12571
12535
  };
12572
12536
  var skipToContentTokens = {
12573
- link: link3,
12537
+ link: link4,
12574
12538
  wrapper: wrapper5
12575
12539
  };
12576
12540
 
12577
12541
  // src/components/SkipToContent/SkipToContent.tsx
12578
12542
  var import_jsx_runtime251 = require("react/jsx-runtime");
12579
- var { wrapper: wrapper6, link: link4 } = skipToContentTokens;
12543
+ var { wrapper: wrapper6, link: link5 } = skipToContentTokens;
12580
12544
  var Wrapper5 = import_styled_components78.default.div`
12581
12545
  box-sizing: border-box;
12582
12546
  position: absolute;
@@ -12606,7 +12570,7 @@ var Wrapper5 = import_styled_components78.default.div`
12606
12570
  `;
12607
12571
  var Link4 = import_styled_components78.default.a`
12608
12572
  text-decoration: none;
12609
- color: ${link4.base.color};
12573
+ color: ${link5.base.color};
12610
12574
  ${getFontStyling(defaultTypographyType)}
12611
12575
 
12612
12576
  @media (prefers-reduced-motion: no-preference) {
@@ -12616,7 +12580,7 @@ var Link4 = import_styled_components78.default.a`
12616
12580
  ${focusVisibleOnDark}
12617
12581
  }
12618
12582
  &:hover {
12619
- color: ${link4.base.color};
12583
+ color: ${link5.base.color};
12620
12584
  }
12621
12585
  `;
12622
12586
  var SkipToContent = (0, import_react94.forwardRef)(
@@ -12784,33 +12748,33 @@ function useIsInTableHead() {
12784
12748
 
12785
12749
  // src/components/Table/normal/Table.tokens.tsx
12786
12750
  var import_dds_design_tokens58 = require("@norges-domstoler/dds-design-tokens");
12787
- var { font: font2, colors: colors31, border: border13, spacing: spacing35, iconSizes: iconSizes3, borderRadius: borderRadius9 } = import_dds_design_tokens58.ddsBaseTokens;
12751
+ var { font: font2, colors: colors30, border: border13, spacing: spacing35, iconSizes: iconSizes3, borderRadius: borderRadius9 } = import_dds_design_tokens58.ddsBaseTokens;
12788
12752
  var row = {
12789
12753
  body: {
12790
12754
  odd: {
12791
- backgroundColor: colors31.DdsColorNeutralsWhite
12755
+ backgroundColor: colors30.DdsColorNeutralsWhite
12792
12756
  },
12793
12757
  even: {
12794
- backgroundColor: colors31.DdsColorNeutralsGray1
12758
+ backgroundColor: colors30.DdsColorNeutralsGray1
12795
12759
  },
12796
- hover: { backgroundColor: colors31.DdsColorInteractiveLightest },
12760
+ hover: { backgroundColor: colors30.DdsColorInteractiveLightest },
12797
12761
  selected: {
12798
- backgroundColor: colors31.DdsColorInteractiveLightest
12762
+ backgroundColor: colors30.DdsColorInteractiveLightest
12799
12763
  },
12800
12764
  mode: {
12801
12765
  sum: {
12802
- borderTop: `${border13.BordersDdsBorderStyleLightStrokeWeight} solid ${colors31.DdsColorNeutralsGray4}`,
12803
- borderBottom: `${border13.BordersDdsBorderStyleLightStrokeWeight} solid ${colors31.DdsColorNeutralsGray4}`,
12804
- backgroundColor: colors31.DdsColorNeutralsWhite
12766
+ borderTop: `${border13.BordersDdsBorderStyleLightStrokeWeight} solid ${colors30.DdsColorNeutralsGray4}`,
12767
+ borderBottom: `${border13.BordersDdsBorderStyleLightStrokeWeight} solid ${colors30.DdsColorNeutralsGray4}`,
12768
+ backgroundColor: colors30.DdsColorNeutralsWhite
12805
12769
  }
12806
12770
  },
12807
12771
  withDividers: {
12808
- borderBottom: `1px solid ${colors31.DdsColorNeutralsGray4}`
12772
+ borderBottom: `1px solid ${colors30.DdsColorNeutralsGray4}`
12809
12773
  }
12810
12774
  },
12811
12775
  head: {
12812
12776
  extraCompact: {
12813
- backgroundColor: colors31.DdsColorNeutralsWhite,
12777
+ backgroundColor: colors30.DdsColorNeutralsWhite,
12814
12778
  fontSize: font2.DdsFontBodySans01FontSize
12815
12779
  }
12816
12780
  }
@@ -12828,7 +12792,7 @@ var cell2 = {
12828
12792
  }
12829
12793
  },
12830
12794
  head: {
12831
- backgroundColor: colors31.DdsColorPrimaryLightest
12795
+ backgroundColor: colors30.DdsColorPrimaryLightest
12832
12796
  },
12833
12797
  sort: {
12834
12798
  gap: spacing35.SizesDdsSpacingX05,
@@ -13390,14 +13354,14 @@ var import_styled_components91 = __toESM(require("styled-components"));
13390
13354
 
13391
13355
  // src/components/Tabs/Tabs.tokens.tsx
13392
13356
  var import_dds_design_tokens59 = require("@norges-domstoler/dds-design-tokens");
13393
- var { border: border14, spacing: spacing36, colors: colors32 } = import_dds_design_tokens59.ddsBaseTokens;
13357
+ var { border: border14, spacing: spacing36, colors: colors31 } = import_dds_design_tokens59.ddsBaseTokens;
13394
13358
  var tabList = {
13395
13359
  borderBottom: `${border14.BordersDdsBorderStyleLightStrokeWeight} solid ${border14.BordersDdsBorderStyleLightStroke}`
13396
13360
  };
13397
13361
  var tab = {
13398
13362
  base: {
13399
13363
  borderBottom: `${border14.BordersDdsBorderStyleLightStrokeWeight} solid transparent`,
13400
- color: colors32.DdsColorNeutralsGray7,
13364
+ color: colors31.DdsColorNeutralsGray7,
13401
13365
  padding: spacing36.SizesDdsSpacingX05
13402
13366
  },
13403
13367
  row: {
@@ -13407,15 +13371,15 @@ var tab = {
13407
13371
  gap: spacing36.SizesDdsSpacingX025
13408
13372
  },
13409
13373
  active: {
13410
- backgroundColor: colors32.DdsColorInteractiveLightest,
13411
- color: colors32.DdsColorInteractiveDarkest,
13412
- boxShadow: `inset 0 -2px 0 0 ${colors32.DdsColorInteractiveDarker}`,
13413
- borderColor: colors32.DdsColorInteractiveDarker
13374
+ backgroundColor: colors31.DdsColorInteractiveLightest,
13375
+ color: colors31.DdsColorInteractiveDarkest,
13376
+ boxShadow: `inset 0 -2px 0 0 ${colors31.DdsColorInteractiveDarker}`,
13377
+ borderColor: colors31.DdsColorInteractiveDarker
13414
13378
  },
13415
13379
  hover: {
13416
- color: colors32.DdsColorInteractiveDarkest,
13417
- boxShadow: `inset 0 -2px 0 0 ${colors32.DdsColorInteractiveDarker}`,
13418
- borderColor: colors32.DdsColorInteractiveDarker
13380
+ color: colors31.DdsColorInteractiveDarkest,
13381
+ boxShadow: `inset 0 -2px 0 0 ${colors31.DdsColorInteractiveDarker}`,
13382
+ borderColor: colors31.DdsColorInteractiveDarker
13419
13383
  }
13420
13384
  };
13421
13385
  var panel = {
@@ -13515,7 +13479,7 @@ var Button2 = import_styled_components91.default.button`
13515
13479
  var Tab = (0, import_react110.forwardRef)((props, ref) => {
13516
13480
  const {
13517
13481
  active = false,
13518
- icon: icon12,
13482
+ icon: icon11,
13519
13483
  children,
13520
13484
  focus,
13521
13485
  setFocus,
@@ -13531,19 +13495,13 @@ var Tab = (0, import_react110.forwardRef)((props, ref) => {
13531
13495
  useSetTabWidth(index, width);
13532
13496
  const itemRef = (0, import_react110.useRef)(null);
13533
13497
  const combinedRef = useCombinedRef(ref, itemRef);
13534
- const { tabPanelsRef, setHasTabFocus, tabContentDirection } = useTabsContext();
13498
+ const { tabContentDirection } = useTabsContext();
13535
13499
  (0, import_react110.useEffect)(() => {
13536
13500
  var _a;
13537
13501
  if (focus) {
13538
13502
  (_a = itemRef.current) == null ? void 0 : _a.focus();
13539
- setHasTabFocus(true);
13540
13503
  }
13541
13504
  }, [focus]);
13542
- useOnKeyDown("Tab", () => {
13543
- var _a;
13544
- setHasTabFocus(false);
13545
- (_a = tabPanelsRef == null ? void 0 : tabPanelsRef.current) == null ? void 0 : _a.focus();
13546
- });
13547
13505
  const handleSelect = (0, import_react110.useCallback)(() => {
13548
13506
  if (setFocus && index) {
13549
13507
  setFocus(index);
@@ -13570,7 +13528,7 @@ var Tab = (0, import_react110.forwardRef)((props, ref) => {
13570
13528
  onKeyDown: handleOnKeyDown,
13571
13529
  tabIndex: focus ? 0 : -1,
13572
13530
  children: [
13573
- icon12 && /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Icon, { icon: icon12, iconSize: "inherit" }),
13531
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Icon, { icon: icon11, iconSize: "inherit" }),
13574
13532
  /* @__PURE__ */ (0, import_jsx_runtime265.jsx)("span", { children })
13575
13533
  ]
13576
13534
  }
@@ -13617,12 +13575,11 @@ var TabList = (0, import_react111.forwardRef)(
13617
13575
  handleTabChange,
13618
13576
  tabListRef,
13619
13577
  hasTabFocus,
13620
- tabPanelsRef,
13621
13578
  setHasTabFocus
13622
13579
  } = useTabsContext();
13623
13580
  const uniqueId = id != null ? id : `${tabsId}-tablist`;
13624
13581
  const childrenArray = import_react111.Children.toArray(children).length;
13625
- const [focus, setFocus] = useRoveFocus(childrenArray, !hasTabFocus, "row");
13582
+ const [focus, setFocus] = useRoveFocus(childrenArray, hasTabFocus, "row");
13626
13583
  const combinedRef = useCombinedRef(ref, tabListRef);
13627
13584
  const tabListChildren = import_react111.Children.map(children, (child, index) => {
13628
13585
  return (0, import_react111.isValidElement)(child) && (0, import_react111.cloneElement)(child, {
@@ -13636,28 +13593,34 @@ var TabList = (0, import_react111.forwardRef)(
13636
13593
  });
13637
13594
  });
13638
13595
  const [widths, setWidths] = (0, import_react111.useState)([]);
13639
- useOnKeyDown("Tab", () => {
13640
- var _a;
13641
- setHasTabFocus(false);
13642
- (_a = tabPanelsRef == null ? void 0 : tabPanelsRef.current) == null ? void 0 : _a.focus();
13643
- });
13644
- useOnClickOutside((tabListRef == null ? void 0 : tabListRef.current) || null, () => {
13645
- setHasTabFocus(false);
13646
- });
13647
13596
  const handleOnFocus = (event) => {
13648
13597
  setHasTabFocus(true);
13649
13598
  onFocus && onFocus(event);
13650
13599
  };
13651
- const tabListProps = {
13652
- ...rest,
13653
- ref: combinedRef,
13654
- role: "tablist",
13655
- "aria-label": "Bruk venste og h\xF8yre piltast for \xE5 bla",
13656
- id: uniqueId,
13657
- tabIndex: 0,
13658
- onFocus: handleOnFocus
13600
+ const handleOnBlur = (event) => {
13601
+ var _a;
13602
+ if ((tabListRef == null ? void 0 : tabListRef.current) === event.relatedTarget) {
13603
+ setFocus(-1);
13604
+ }
13605
+ if (!((_a = tabListRef == null ? void 0 : tabListRef.current) == null ? void 0 : _a.contains(event.relatedTarget))) {
13606
+ setHasTabFocus(false);
13607
+ }
13659
13608
  };
13660
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabRow, { ...tabListProps, $gridTemplateColumns: widths.join(" "), children: tabListChildren }) });
13609
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13610
+ TabRow,
13611
+ {
13612
+ ...rest,
13613
+ ref: combinedRef,
13614
+ role: "tablist",
13615
+ "aria-label": "Bruk venste og h\xF8yre piltast for \xE5 bla",
13616
+ id: uniqueId,
13617
+ tabIndex: 0,
13618
+ onFocus: handleOnFocus,
13619
+ onBlur: handleOnBlur,
13620
+ $gridTemplateColumns: widths.join(" "),
13621
+ children: tabListChildren
13622
+ }
13623
+ ) });
13661
13624
  }
13662
13625
  );
13663
13626
  TabList.displayName = "TabList";
@@ -13724,7 +13687,7 @@ var import_styled_components94 = __toESM(require("styled-components"));
13724
13687
 
13725
13688
  // src/components/Tag/Tag.tokens.tsx
13726
13689
  var import_dds_design_tokens60 = require("@norges-domstoler/dds-design-tokens");
13727
- var { colors: colors33, borderRadius: borderRadius10, spacing: spacing37 } = import_dds_design_tokens60.ddsBaseTokens;
13690
+ var { colors: colors32, borderRadius: borderRadius10, spacing: spacing37 } = import_dds_design_tokens60.ddsBaseTokens;
13728
13691
  var typographyType5 = "bodySans01";
13729
13692
  var wrapper7 = {
13730
13693
  border: "1px solid",
@@ -13744,13 +13707,13 @@ var wrapper7 = {
13744
13707
  default: {
13745
13708
  icon: void 0,
13746
13709
  base: {
13747
- backgroundColor: colors33.DdsColorNeutralsGray1,
13748
- borderColor: colors33.DdsColorNeutralsGray3,
13710
+ backgroundColor: colors32.DdsColorNeutralsGray1,
13711
+ borderColor: colors32.DdsColorNeutralsGray3,
13749
13712
  icon: void 0
13750
13713
  },
13751
13714
  strong: {
13752
- backgroundColor: colors33.DdsColorNeutralsGray3,
13753
- borderColor: colors33.DdsColorNeutralsGray3,
13715
+ backgroundColor: colors32.DdsColorNeutralsGray3,
13716
+ borderColor: colors32.DdsColorNeutralsGray3,
13754
13717
  icon: void 0
13755
13718
  }
13756
13719
  },
@@ -13759,14 +13722,14 @@ var wrapper7 = {
13759
13722
  base: {
13760
13723
  ...localMessageTokens.container.purpose.success,
13761
13724
  icon: {
13762
- color: colors33.DdsColorSuccessDarkest
13725
+ color: colors32.DdsColorSuccessDarkest
13763
13726
  }
13764
13727
  },
13765
13728
  strong: {
13766
- backgroundColor: colors33.DdsColorSuccessLight,
13767
- borderColor: colors33.DdsColorSuccessLight,
13729
+ backgroundColor: colors32.DdsColorSuccessLight,
13730
+ borderColor: colors32.DdsColorSuccessLight,
13768
13731
  icon: {
13769
- color: colors33.DdsColorNeutralsGray9
13732
+ color: colors32.DdsColorNeutralsGray9
13770
13733
  }
13771
13734
  }
13772
13735
  },
@@ -13775,14 +13738,14 @@ var wrapper7 = {
13775
13738
  base: {
13776
13739
  ...localMessageTokens.container.purpose.danger,
13777
13740
  icon: {
13778
- color: colors33.DdsColorDangerDarkest
13741
+ color: colors32.DdsColorDangerDarkest
13779
13742
  }
13780
13743
  },
13781
13744
  strong: {
13782
- backgroundColor: colors33.DdsColorDangerLight,
13783
- borderColor: colors33.DdsColorDangerLight,
13745
+ backgroundColor: colors32.DdsColorDangerLight,
13746
+ borderColor: colors32.DdsColorDangerLight,
13784
13747
  icon: {
13785
- color: colors33.DdsColorNeutralsGray9
13748
+ color: colors32.DdsColorNeutralsGray9
13786
13749
  }
13787
13750
  }
13788
13751
  },
@@ -13791,14 +13754,14 @@ var wrapper7 = {
13791
13754
  base: {
13792
13755
  ...localMessageTokens.container.purpose.warning,
13793
13756
  icon: {
13794
- color: colors33.DdsColorWarningDarkest
13757
+ color: colors32.DdsColorWarningDarkest
13795
13758
  }
13796
13759
  },
13797
13760
  strong: {
13798
- backgroundColor: colors33.DdsColorWarningLight,
13799
- borderColor: colors33.DdsColorWarningLight,
13761
+ backgroundColor: colors32.DdsColorWarningLight,
13762
+ borderColor: colors32.DdsColorWarningLight,
13800
13763
  icon: {
13801
- color: colors33.DdsColorNeutralsGray9
13764
+ color: colors32.DdsColorNeutralsGray9
13802
13765
  }
13803
13766
  }
13804
13767
  },
@@ -13807,14 +13770,14 @@ var wrapper7 = {
13807
13770
  base: {
13808
13771
  ...localMessageTokens.container.purpose.info,
13809
13772
  icon: {
13810
- color: colors33.DdsColorInfoDarkest
13773
+ color: colors32.DdsColorInfoDarkest
13811
13774
  }
13812
13775
  },
13813
13776
  strong: {
13814
- backgroundColor: colors33.DdsColorInfoLight,
13815
- borderColor: colors33.DdsColorInfoLight,
13777
+ backgroundColor: colors32.DdsColorInfoLight,
13778
+ borderColor: colors32.DdsColorInfoLight,
13816
13779
  icon: {
13817
- color: colors33.DdsColorNeutralsGray9
13780
+ color: colors32.DdsColorNeutralsGray9
13818
13781
  }
13819
13782
  }
13820
13783
  }
@@ -13840,7 +13803,7 @@ var Wrapper7 = (0, import_styled_components94.default)(TextOverflowEllipsisWrapp
13840
13803
  border-color: ${wrapper8.purpose[$purpose][$strong ? "strong" : "base"].borderColor};
13841
13804
  `}
13842
13805
  `;
13843
- var StyledIcon5 = (0, import_styled_components94.default)(Icon)`
13806
+ var StyledIcon4 = (0, import_styled_components94.default)(Icon)`
13844
13807
  color: ${({ $purpose, $strong }) => {
13845
13808
  var _a;
13846
13809
  return (_a = wrapper8.purpose[$purpose][$strong ? "strong" : "base"].icon) == null ? void 0 : _a.color;
@@ -13858,7 +13821,7 @@ var Tag = (0, import_react114.forwardRef)((props, ref) => {
13858
13821
  withIcon,
13859
13822
  ...rest
13860
13823
  } = props;
13861
- const icon12 = tagTokens.wrapper.purpose[purpose].icon;
13824
+ const icon11 = tagTokens.wrapper.purpose[purpose].icon;
13862
13825
  return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
13863
13826
  Wrapper7,
13864
13827
  {
@@ -13866,14 +13829,14 @@ var Tag = (0, import_react114.forwardRef)((props, ref) => {
13866
13829
  ref,
13867
13830
  $purpose: purpose,
13868
13831
  $strong: strong,
13869
- $withIcon: Boolean(withIcon && icon12),
13832
+ $withIcon: Boolean(withIcon && icon11),
13870
13833
  children: [
13871
- withIcon && icon12 && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
13872
- StyledIcon5,
13834
+ withIcon && icon11 && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
13835
+ StyledIcon4,
13873
13836
  {
13874
13837
  $purpose: purpose,
13875
13838
  $strong: strong,
13876
- icon: icon12,
13839
+ icon: icon11,
13877
13840
  iconSize: tagTokens.wrapper.icon.size
13878
13841
  }
13879
13842
  ),
@@ -13922,7 +13885,7 @@ var import_styled_components96 = __toESM(require("styled-components"));
13922
13885
 
13923
13886
  // src/components/TextInput/TextInput.tokens.tsx
13924
13887
  var import_dds_design_tokens61 = require("@norges-domstoler/dds-design-tokens");
13925
- var { colors: colors34, spacing: spacing38, iconSizes: iconSizes4 } = import_dds_design_tokens61.ddsBaseTokens;
13888
+ var { colors: colors33, spacing: spacing38, iconSizes: iconSizes4 } = import_dds_design_tokens61.ddsBaseTokens;
13926
13889
  var input5 = {
13927
13890
  withIcon: {
13928
13891
  medium: {
@@ -13938,11 +13901,11 @@ var input5 = {
13938
13901
  };
13939
13902
  var affix = {
13940
13903
  border: {
13941
- color: colors34.DdsColorNeutralsGray5
13904
+ color: colors33.DdsColorNeutralsGray5
13942
13905
  }
13943
13906
  };
13944
- var icon10 = {
13945
- color: colors34.DdsColorNeutralsGray9,
13907
+ var icon9 = {
13908
+ color: colors33.DdsColorNeutralsGray9,
13946
13909
  sizes: {
13947
13910
  medium: {
13948
13911
  top: spacing38.SizesDdsSpacingX075,
@@ -13960,22 +13923,22 @@ var icon10 = {
13960
13923
  };
13961
13924
  var textInputTokens = {
13962
13925
  input: input5,
13963
- icon: icon10,
13926
+ icon: icon9,
13964
13927
  affix
13965
13928
  };
13966
13929
 
13967
13930
  // src/components/TextInput/TextInput.styles.tsx
13968
13931
  var { iconSizes: iconSizes5 } = import_dds_design_tokens62.ddsBaseTokens;
13969
- var { input: input6, icon: icon11 } = textInputTokens;
13932
+ var { input: input6, icon: icon10 } = textInputTokens;
13970
13933
  var MessageContainer2 = import_styled_components96.default.div`
13971
13934
  display: flex;
13972
13935
  justify-content: space-between;
13973
13936
  `;
13974
- var StyledIcon6 = (0, import_styled_components96.default)(Icon)`
13937
+ var StyledIcon5 = (0, import_styled_components96.default)(Icon)`
13975
13938
  position: absolute;
13976
- color: ${icon11.color};
13939
+ color: ${icon10.color};
13977
13940
  ${({ $size, iconSize }) => import_styled_components96.css`
13978
- left: ${icon11.sizes[$size].left};
13941
+ left: ${icon10.sizes[$size].left};
13979
13942
  ${iconSize === "small" ? import_styled_components96.css`
13980
13943
  top: ${`calc(50% - ${iconSizes5.DdsIconsizeSmallNumberPx / 2}px)`};
13981
13944
  ` : import_styled_components96.css`
@@ -14057,7 +14020,7 @@ var TextInput2 = (0, import_react116.forwardRef)(
14057
14020
  defaultValue,
14058
14021
  "aria-required": ariaRequired,
14059
14022
  "aria-describedby": ariaDescribedby,
14060
- icon: icon12,
14023
+ icon: icon11,
14061
14024
  prefix: prefix2,
14062
14025
  suffix,
14063
14026
  ...rest
@@ -14089,7 +14052,7 @@ var TextInput2 = (0, import_react116.forwardRef)(
14089
14052
  const hasTip = !!tip;
14090
14053
  const hasLabel = !!label3;
14091
14054
  const hasMessage = hasErrorMessage || hasTip || !!maxLength;
14092
- const hasIcon = !!icon12;
14055
+ const hasIcon = !!icon11;
14093
14056
  const hasAffix = !!(prefix2 != null ? prefix2 : suffix);
14094
14057
  const characterCounterId = derivativeIdGenerator(
14095
14058
  uniqueId,
@@ -14127,9 +14090,9 @@ var TextInput2 = (0, import_react116.forwardRef)(
14127
14090
  if (hasIcon) {
14128
14091
  extendedInput = /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(InputContainer, { children: [
14129
14092
  /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
14130
- StyledIcon6,
14093
+ StyledIcon5,
14131
14094
  {
14132
- icon: icon12,
14095
+ icon: icon11,
14133
14096
  iconSize: getFormInputIconSize(componentSize),
14134
14097
  $size: componentSize
14135
14098
  }
@@ -14205,7 +14168,7 @@ var useToggleBarContext = () => (0, import_react117.useContext)(ToggleBarContext
14205
14168
 
14206
14169
  // src/components/ToggleBar/ToggleBar.tokens.tsx
14207
14170
  var import_dds_design_tokens63 = require("@norges-domstoler/dds-design-tokens");
14208
- var { colors: colors35, spacing: spacing39, border: border15, borderRadius: borderRadius11, fontPackages: fontPackages6 } = import_dds_design_tokens63.ddsBaseTokens;
14171
+ var { colors: colors34, spacing: spacing39, border: border15, borderRadius: borderRadius11, fontPackages: fontPackages6 } = import_dds_design_tokens63.ddsBaseTokens;
14209
14172
  var typographyTypes6 = {
14210
14173
  large: "bodySans04",
14211
14174
  medium: "bodySans02",
@@ -14233,17 +14196,17 @@ var outerContainer7 = {
14233
14196
  };
14234
14197
  var label = {
14235
14198
  base: {
14236
- borderColor: colors35.DdsColorNeutralsGray5,
14237
- borderRight: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors35.DdsColorNeutralsGray5}`,
14238
- borderTop: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors35.DdsColorNeutralsGray5}`,
14239
- borderBottom: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors35.DdsColorNeutralsGray5}`
14199
+ borderColor: colors34.DdsColorNeutralsGray5,
14200
+ borderRight: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors34.DdsColorNeutralsGray5}`,
14201
+ borderTop: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors34.DdsColorNeutralsGray5}`,
14202
+ borderBottom: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors34.DdsColorNeutralsGray5}`
14240
14203
  },
14241
14204
  hover: {
14242
- color: colors35.DdsColorInteractiveDark,
14243
- borderColor: colors35.DdsColorInteractiveDark
14205
+ color: colors34.DdsColorInteractiveDark,
14206
+ borderColor: colors34.DdsColorInteractiveDark
14244
14207
  },
14245
14208
  firstChild: {
14246
- borderLeft: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors35.DdsColorNeutralsGray5}`,
14209
+ borderLeft: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors34.DdsColorNeutralsGray5}`,
14247
14210
  borderTopLeftRadius: borderRadius11.RadiiDdsBorderRadius1Radius,
14248
14211
  borderBottomLeftRadius: borderRadius11.RadiiDdsBorderRadius1Radius
14249
14212
  },
@@ -14253,12 +14216,12 @@ var label = {
14253
14216
  }
14254
14217
  };
14255
14218
  var content7 = {
14256
- base: { backgroundColor: colors35.DdsColorNeutralsGray1 },
14219
+ base: { backgroundColor: colors34.DdsColorNeutralsGray1 },
14257
14220
  active: {
14258
- color: colors35.DdsColorInteractiveDarkest,
14259
- borderColor: colors35.DdsColorInteractiveDarker,
14260
- backgroundColor: colors35.DdsColorInteractiveLightest,
14261
- boxShadow: `inset 0 0 0 1px ${colors35.DdsColorInteractiveDarker}`
14221
+ color: colors34.DdsColorInteractiveDarkest,
14222
+ borderColor: colors34.DdsColorInteractiveDarker,
14223
+ backgroundColor: colors34.DdsColorInteractiveLightest,
14224
+ boxShadow: `inset 0 0 0 1px ${colors34.DdsColorInteractiveDarker}`
14262
14225
  },
14263
14226
  size: {
14264
14227
  tiny: {
@@ -14471,7 +14434,7 @@ var ToggleRadio = (0, import_react119.forwardRef)(
14471
14434
  checked,
14472
14435
  "aria-label": ariaLabel,
14473
14436
  "aria-labelledby": ariaLabelledBy,
14474
- icon: icon12,
14437
+ icon: icon11,
14475
14438
  label: label3,
14476
14439
  htmlProps,
14477
14440
  className,
@@ -14500,8 +14463,8 @@ var ToggleRadio = (0, import_react119.forwardRef)(
14500
14463
  "aria-labelledby": ariaLabelledBy
14501
14464
  }
14502
14465
  ),
14503
- /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(Content2, { $size: group4.size, $justIcon: !!icon12 && !label3, children: [
14504
- icon12 && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Icon, { icon: icon12, iconSize: "inherit" }),
14466
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(Content2, { $size: group4.size, $justIcon: !!icon11 && !label3, children: [
14467
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Icon, { icon: icon11, iconSize: "inherit" }),
14505
14468
  label3 && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("span", { children: label3 })
14506
14469
  ] })
14507
14470
  ] });
@@ -14515,21 +14478,21 @@ var import_styled_components100 = __toESM(require("styled-components"));
14515
14478
 
14516
14479
  // src/components/ToggleButton/ToggleButton.tokens.tsx
14517
14480
  var import_dds_design_tokens64 = require("@norges-domstoler/dds-design-tokens");
14518
- var { colors: colors36, spacing: spacing40 } = import_dds_design_tokens64.ddsBaseTokens;
14481
+ var { colors: colors35, spacing: spacing40 } = import_dds_design_tokens64.ddsBaseTokens;
14519
14482
  var { button: button2 } = buttonTokens;
14520
14483
  var { selectionControl: selectionControl3 } = selectionControlTokens;
14521
14484
  var typographyType6 = typographyTypes.small;
14522
14485
  var toggleButton = {
14523
14486
  border: button2.base.border,
14524
- backgroundColor: colors36.DdsColorNeutralsWhite,
14525
- color: colors36.DdsColorNeutralsGray7,
14487
+ backgroundColor: colors35.DdsColorNeutralsWhite,
14488
+ color: colors35.DdsColorNeutralsGray7,
14526
14489
  gap: spacing40.SizesDdsSpacingX05,
14527
14490
  borderRadius: button2.appearances.rounded.base.borderRadius,
14528
14491
  padding: button2.sizes.small.text.padding,
14529
14492
  hover: selectionControl3.hover.base,
14530
14493
  checked: {
14531
14494
  ...selectionControl3.checked.base,
14532
- color: colors36.DdsColorNeutralsWhite,
14495
+ color: colors35.DdsColorNeutralsWhite,
14533
14496
  hover: selectionControl3.checked.hover
14534
14497
  }
14535
14498
  };
@@ -14601,7 +14564,7 @@ var Container16 = import_styled_components100.default.label`
14601
14564
  }
14602
14565
  `;
14603
14566
  var ToggleButton = (0, import_react120.forwardRef)(
14604
- ({ id, label: label3, icon: icon12, className, htmlProps, ...rest }, ref) => {
14567
+ ({ id, label: label3, icon: icon11, className, htmlProps, ...rest }, ref) => {
14605
14568
  const generatedId = (0, import_react120.useId)();
14606
14569
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
14607
14570
  return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(Container16, { htmlFor: uniqueId, children: [
@@ -14613,8 +14576,8 @@ var ToggleButton = (0, import_react120.forwardRef)(
14613
14576
  type: "checkbox"
14614
14577
  }
14615
14578
  ),
14616
- /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(Content3, { $hasIcon: !!icon12, children: [
14617
- icon12 && /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(Icon, { icon: icon12, iconSize: "inherit" }),
14579
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(Content3, { $hasIcon: !!icon11, children: [
14580
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(Icon, { icon: icon11, iconSize: "inherit" }),
14618
14581
  " ",
14619
14582
  label3
14620
14583
  ] })