@norges-domstoler/dds-components 15.2.0 → 15.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -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,13 +5331,16 @@ 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
- gap: spacing11.SizesDdsSpacingX05
5340
+ gap: spacing11.SizesDdsSpacingX05,
5341
+ notSmallScreen: {
5342
+ padding: `${spacing11.SizesDdsSpacingX0125} 0`
5343
+ }
5376
5344
  };
5377
5345
  var list = {
5378
5346
  gap: spacing11.SizesDdsSpacingX05
@@ -5380,12 +5348,12 @@ var list = {
5380
5348
  var breadcrumbTokens = {
5381
5349
  list,
5382
5350
  listItem,
5383
- icon: icon3
5351
+ icon: icon2
5384
5352
  };
5385
5353
 
5386
5354
  // src/components/Breadcrumbs/Breadcrumbs.tsx
5387
5355
  var import_jsx_runtime184 = require("react/jsx-runtime");
5388
- var { icon: icon4, list: list2, listItem: listItem2 } = breadcrumbTokens;
5356
+ var { icon: icon3, list: list2, listItem: listItem2 } = breadcrumbTokens;
5389
5357
  var List = import_styled_components26.default.ol`
5390
5358
  ${removeListStyling}
5391
5359
  display: flex;
@@ -5394,33 +5362,66 @@ var List = import_styled_components26.default.ol`
5394
5362
  gap: ${list2.gap};
5395
5363
  `;
5396
5364
  List.displayName = "List";
5397
- var ListItem = import_styled_components26.default.li`
5365
+ var ListItem = import_styled_components26.default.li.withConfig({
5366
+ shouldForwardProp: (prop) => prop !== "smallScreen"
5367
+ })`
5398
5368
  align-items: center;
5399
5369
  display: flex;
5400
5370
  gap: ${listItem2.gap};
5401
5371
  ${getFontStyling(typographyType2)}
5372
+ padding: ${({ smallScreen }) => smallScreen ? "0" : listItem2.notSmallScreen.padding};
5402
5373
  `;
5403
5374
  ListItem.displayName = "ListItem";
5404
- var StyledIcon2 = (0, import_styled_components26.default)(Icon)`
5405
- color: ${icon4.color};
5375
+ var StyledIcon = (0, import_styled_components26.default)(Icon)`
5376
+ color: ${icon3.color};
5406
5377
  `;
5407
5378
  var Breadcrumbs = (0, import_react30.forwardRef)(
5408
5379
  (props, ref) => {
5409
- const { children, id, className, htmlProps, ...rest } = props;
5380
+ const { children, smallScreen, id, className, htmlProps, ...rest } = props;
5381
+ const chevronIcon = /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(StyledIcon, { iconSize: "inherit", icon: ChevronRightIcon });
5410
5382
  const childrenArray = import_react30.Children.toArray(children);
5411
5383
  const breadcrumbChildren = childrenArray.map((item, index) => {
5412
- return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(ListItem, { children: [
5413
- index !== 0 && /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(StyledIcon2, { icon: ChevronRightIcon }),
5384
+ return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(ListItem, { smallScreen, children: [
5385
+ index !== 0 && chevronIcon,
5414
5386
  item
5415
5387
  ] }, `breadcrumb-${index}`);
5416
5388
  });
5389
+ const breadcrumbChildrenTruncated = childrenArray.length > 2 ? childrenArray.slice(1, childrenArray.length - 1).map((item) => {
5390
+ if ((0, import_react30.isValidElement)(item))
5391
+ return {
5392
+ title: item.props.children,
5393
+ href: item.props.href
5394
+ };
5395
+ }).filter((item) => item) : [];
5396
+ const breadcrumbChildrenSmallScreen = /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(import_jsx_runtime184.Fragment, { children: [
5397
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(ListItem, { smallScreen, children: childrenArray[0] }),
5398
+ breadcrumbChildrenTruncated.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(ListItem, { smallScreen, children: [
5399
+ chevronIcon,
5400
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(OverflowMenuGroup, { children: [
5401
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
5402
+ Button,
5403
+ {
5404
+ size: "tiny",
5405
+ icon: MoreHorizontalIcon,
5406
+ appearance: "borderless",
5407
+ "aria-label": `Vis br\xF8dsmulesti br\xF8dsmule 2 ${breadcrumbChildrenTruncated.length > 1 && `til ${breadcrumbChildren.length - 1}`}`
5408
+ }
5409
+ ),
5410
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(OverflowMenu, { items: breadcrumbChildrenTruncated })
5411
+ ] })
5412
+ ] }),
5413
+ /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(ListItem, { smallScreen, children: [
5414
+ chevronIcon,
5415
+ childrenArray[childrenArray.length - 1]
5416
+ ] })
5417
+ ] });
5417
5418
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
5418
5419
  "nav",
5419
5420
  {
5420
5421
  ...getBaseHTMLProps(id, className, htmlProps, rest),
5421
5422
  ref,
5422
5423
  "aria-label": "br\xF8dsmulesti",
5423
- children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(List, { children: breadcrumbChildren })
5424
+ children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(List, { children: smallScreen ? breadcrumbChildrenSmallScreen : breadcrumbChildren })
5424
5425
  }
5425
5426
  );
5426
5427
  }
@@ -5432,29 +5433,29 @@ var import_styled_components27 = __toESM(require("styled-components"));
5432
5433
 
5433
5434
  // src/components/Card/Card.tokens.tsx
5434
5435
  var import_dds_design_tokens25 = require("@norges-domstoler/dds-design-tokens");
5435
- var { colors: colors14, border: border8 } = import_dds_design_tokens25.ddsBaseTokens;
5436
+ var { colors: colors13, border: border8 } = import_dds_design_tokens25.ddsBaseTokens;
5436
5437
  var { textDefault: textDefault3 } = import_dds_design_tokens25.ddsReferenceTokens;
5437
5438
  var base2 = {
5438
5439
  border: `${border8.BordersDdsBorderStyleLightStrokeWeight} solid`
5439
5440
  };
5440
5441
  var cardColors = {
5441
5442
  filledLight: {
5442
- backgroundColor: colors14.DdsColorPrimaryLightest,
5443
- borderColor: colors14.DdsColorPrimaryLightest,
5443
+ backgroundColor: colors13.DdsColorPrimaryLightest,
5444
+ borderColor: colors13.DdsColorPrimaryLightest,
5444
5445
  color: textDefault3.textColor
5445
5446
  },
5446
5447
  filledDark: {
5447
- backgroundColor: colors14.DdsColorPrimaryBase,
5448
- borderColor: colors14.DdsColorPrimaryBase,
5449
- color: colors14.DdsColorNeutralsWhite
5448
+ backgroundColor: colors13.DdsColorPrimaryBase,
5449
+ borderColor: colors13.DdsColorPrimaryBase,
5450
+ color: colors13.DdsColorNeutralsWhite
5450
5451
  },
5451
5452
  strokeDark: {
5452
- backgroundColor: colors14.DdsColorNeutralsWhite,
5453
+ backgroundColor: colors13.DdsColorNeutralsWhite,
5453
5454
  borderColor: border8.BordersDdsBorderStyleLightStroke,
5454
5455
  color: textDefault3.textColor
5455
5456
  },
5456
5457
  strokeLight: {
5457
- backgroundColor: colors14.DdsColorNeutralsWhite,
5458
+ backgroundColor: colors13.DdsColorNeutralsWhite,
5458
5459
  borderColor: border8.BordersDdsBorderStyleLightStroke,
5459
5460
  color: textDefault3.textColor
5460
5461
  }
@@ -5856,13 +5857,13 @@ var import_styled_components31 = __toESM(require("styled-components"));
5856
5857
 
5857
5858
  // src/components/Chip/Chip.tokens.tsx
5858
5859
  var import_dds_design_tokens27 = require("@norges-domstoler/dds-design-tokens");
5859
- var { colors: colors15, spacing: spacing13, borderRadius: borderRadius5 } = import_dds_design_tokens27.ddsBaseTokens;
5860
+ var { colors: colors14, spacing: spacing13, borderRadius: borderRadius5 } = import_dds_design_tokens27.ddsBaseTokens;
5860
5861
  var typographyType3 = "bodySans01";
5861
5862
  var container3 = {
5862
5863
  gap: spacing13.SizesDdsSpacingX025,
5863
5864
  padding: `${spacing13.SizesDdsSpacingX0125} ${spacing13.SizesDdsSpacingX025}`,
5864
- backgroundColor: colors15.DdsColorNeutralsGray1,
5865
- border: `1px solid ${colors15.DdsColorNeutralsGray3}`,
5865
+ backgroundColor: colors14.DdsColorNeutralsGray1,
5866
+ border: `1px solid ${colors14.DdsColorNeutralsGray3}`,
5866
5867
  borderRadius: borderRadius5.RadiiDdsBorderRadius1Radius
5867
5868
  };
5868
5869
  var group = {
@@ -6366,7 +6367,7 @@ var import_styled_components37 = __toESM(require("styled-components"));
6366
6367
 
6367
6368
  // src/components/date-inputs/DatePicker/DatePicker.tokens.ts
6368
6369
  var import_dds_design_tokens29 = require("@norges-domstoler/dds-design-tokens");
6369
- var { colors: colors16 } = import_dds_design_tokens29.ddsBaseTokens;
6370
+ var { colors: colors15 } = import_dds_design_tokens29.ddsBaseTokens;
6370
6371
  var segment = {
6371
6372
  medium: {
6372
6373
  font: {
@@ -6374,7 +6375,7 @@ var segment = {
6374
6375
  },
6375
6376
  placeholder: {
6376
6377
  ...import_dds_design_tokens29.ddsBaseTokens.fontPackages.supportingStyle_placeholdertext_01.base,
6377
- textColor: colors16.DdsColorNeutralsGray6
6378
+ textColor: colors15.DdsColorNeutralsGray6
6378
6379
  }
6379
6380
  },
6380
6381
  small: {
@@ -6383,7 +6384,7 @@ var segment = {
6383
6384
  },
6384
6385
  placeholder: {
6385
6386
  ...import_dds_design_tokens29.ddsBaseTokens.fontPackages.supportingStyle_placeholdertext_02.base,
6386
- textColor: colors16.DdsColorNeutralsGray6
6387
+ textColor: colors15.DdsColorNeutralsGray6
6387
6388
  }
6388
6389
  },
6389
6390
  tiny: {
@@ -6392,7 +6393,7 @@ var segment = {
6392
6393
  },
6393
6394
  placeholder: {
6394
6395
  ...import_dds_design_tokens29.ddsBaseTokens.fontPackages.supportingStyle_placeholdertext_03.base,
6395
- textColor: colors16.DdsColorNeutralsGray6
6396
+ textColor: colors15.DdsColorNeutralsGray6
6396
6397
  }
6397
6398
  },
6398
6399
  padding: {
@@ -6400,24 +6401,24 @@ var segment = {
6400
6401
  y: "0"
6401
6402
  },
6402
6403
  focus: {
6403
- textColor: colors16.DdsColorNeutralsWhite,
6404
- backgroundColor: colors16.DdsColorInteractiveBase
6404
+ textColor: colors15.DdsColorNeutralsWhite,
6405
+ backgroundColor: colors15.DdsColorInteractiveBase
6405
6406
  }
6406
6407
  };
6407
6408
  var calendarButton = {
6408
- color: colors16.DdsColorNeutralsGray9,
6409
+ color: colors15.DdsColorNeutralsGray9,
6409
6410
  disabled: {
6410
- color: colors16.DdsColorNeutralsGray6
6411
+ color: colors15.DdsColorNeutralsGray6
6411
6412
  },
6412
6413
  background: "transparent",
6413
6414
  borderRadius: import_dds_design_tokens29.ddsBaseTokens.borderRadius.RadiiDdsBorderRadius1Radius,
6414
6415
  hover: {
6415
- background: colors16.DdsColorInteractiveLightest,
6416
- color: colors16.DdsColorInteractiveBase
6416
+ background: colors15.DdsColorInteractiveLightest,
6417
+ color: colors15.DdsColorInteractiveBase
6417
6418
  },
6418
6419
  active: {
6419
- background: colors16.DdsColorInteractiveLighter,
6420
- color: colors16.DdsColorInteractiveBase
6420
+ background: colors15.DdsColorInteractiveLighter,
6421
+ color: colors15.DdsColorInteractiveBase
6421
6422
  },
6422
6423
  medium: {
6423
6424
  size: `calc(${import_dds_design_tokens29.ddsBaseTokens.iconSizes.DdsIconsizeMedium} + ${import_dds_design_tokens29.ddsBaseTokens.spacing.SizesDdsSpacingX05})`
@@ -6904,14 +6905,14 @@ var import_styled_components41 = __toESM(require("styled-components"));
6904
6905
 
6905
6906
  // src/components/DescriptionList/DescriptionList.tokens.tsx
6906
6907
  var import_dds_design_tokens30 = require("@norges-domstoler/dds-design-tokens");
6907
- var { spacing: spacing14, colors: colors17 } = import_dds_design_tokens30.ddsBaseTokens;
6908
+ var { spacing: spacing14, colors: colors16 } = import_dds_design_tokens30.ddsBaseTokens;
6908
6909
  var term = {
6909
6910
  appearance: {
6910
6911
  small: {
6911
- color: colors17.DdsColorNeutralsGray7
6912
+ color: colors16.DdsColorNeutralsGray7
6912
6913
  },
6913
6914
  bold: {
6914
- color: colors17.DdsColorNeutralsGray9
6915
+ color: colors16.DdsColorNeutralsGray9
6915
6916
  }
6916
6917
  },
6917
6918
  firstOfType: {
@@ -6921,7 +6922,7 @@ var term = {
6921
6922
  var desc = {
6922
6923
  base: {
6923
6924
  gap: spacing14.SizesDdsSpacingX025,
6924
- color: colors17.DdsColorNeutralsGray9
6925
+ color: colors16.DdsColorNeutralsGray9
6925
6926
  },
6926
6927
  lastChild: {
6927
6928
  marginBottom: spacing14.SizesDdsSpacingX1
@@ -7029,14 +7030,14 @@ var DListDesc = import_styled_components43.default.dd`
7029
7030
  gap: ${descriptionListTokens.desc.base.gap};
7030
7031
  `;
7031
7032
  var DescriptionListDesc = (0, import_react49.forwardRef)((props, ref) => {
7032
- const { children, icon: icon12, id, className, htmlProps, ...rest } = props;
7033
+ const { children, icon: icon11, id, className, htmlProps, ...rest } = props;
7033
7034
  const dListDescProps = {
7034
7035
  ...getBaseHTMLProps(id, className, htmlProps, rest),
7035
7036
  children,
7036
7037
  ref
7037
7038
  };
7038
7039
  return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(DListDesc, { ...dListDescProps, children: [
7039
- icon12 && /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Icon, { icon: icon12 }),
7040
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Icon, { icon: icon11 }),
7040
7041
  " ",
7041
7042
  children
7042
7043
  ] });
@@ -7291,7 +7292,7 @@ DrawerGroup.displayName = "DrawerGroup";
7291
7292
  var import_dds_design_tokens32 = require("@norges-domstoler/dds-design-tokens");
7292
7293
  var import_styled_components46 = __toESM(require("styled-components"));
7293
7294
  var import_jsx_runtime208 = require("react/jsx-runtime");
7294
- var { colors: colors18, spacing: spacing16 } = import_dds_design_tokens32.ddsBaseTokens;
7295
+ var { colors: colors17, spacing: spacing16 } = import_dds_design_tokens32.ddsBaseTokens;
7295
7296
  var StyledEmptyContent = import_styled_components46.default.div`
7296
7297
  display: flex;
7297
7298
  justify-content: center;
@@ -7299,7 +7300,7 @@ var StyledEmptyContent = import_styled_components46.default.div`
7299
7300
  min-height: ${spacing16.SizesDdsSpacingX10};
7300
7301
  height: 100%;
7301
7302
  width: 100%;
7302
- background-color: ${colors18.DdsColorNeutralsGray1};
7303
+ background-color: ${colors17.DdsColorNeutralsGray1};
7303
7304
  padding: ${spacing16.SizesDdsSpacingX15};
7304
7305
  `;
7305
7306
  var StyledEmptyContentText = import_styled_components46.default.div`
@@ -7401,7 +7402,7 @@ function useControllableState(props) {
7401
7402
  // src/components/FavStar/FavStar.tsx
7402
7403
  var import_jsx_runtime209 = require("react/jsx-runtime");
7403
7404
  var TRANSITION_SPEED = "0.2s";
7404
- var StyledIcon3 = (0, import_styled_components47.default)(Icon)`
7405
+ var StyledIcon2 = (0, import_styled_components47.default)(Icon)`
7405
7406
  color: currentColor;
7406
7407
  position: absolute;
7407
7408
  top: 0;
@@ -7447,7 +7448,7 @@ var Container5 = import_styled_components47.default.label`
7447
7448
  }
7448
7449
 
7449
7450
  &:active {
7450
- ${StyledIcon3} {
7451
+ ${StyledIcon2} {
7451
7452
  transform: scale(0.75);
7452
7453
  }
7453
7454
  }
@@ -7503,9 +7504,9 @@ var FavStar = (0, import_react55.forwardRef)(
7503
7504
  "aria-label": (_a = props["aria-label"]) != null ? _a : "Favoriser"
7504
7505
  }
7505
7506
  ),
7506
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(StyledIcon3, { iconSize: size2, icon: StarIcon }),
7507
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(StyledIcon2, { iconSize: size2, icon: StarIcon }),
7507
7508
  /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
7508
- StyledIcon3,
7509
+ StyledIcon2,
7509
7510
  {
7510
7511
  iconSize: size2,
7511
7512
  icon: StarFilledIcon,
@@ -7771,16 +7772,16 @@ var import_styled_components51 = __toESM(require("styled-components"));
7771
7772
 
7772
7773
  // src/components/Tooltip/Tooltip.tokens.tsx
7773
7774
  var import_dds_design_tokens37 = require("@norges-domstoler/dds-design-tokens");
7774
- var { colors: colors19, spacing: spacing19 } = import_dds_design_tokens37.ddsBaseTokens;
7775
+ var { colors: colors18, spacing: spacing19 } = import_dds_design_tokens37.ddsBaseTokens;
7775
7776
  var wrapper = {
7776
7777
  padding: `${spacing19.SizesDdsSpacingX075}`
7777
7778
  };
7778
7779
  var svgArrow = {
7779
7780
  border: {
7780
- fill: colors19.DdsColorPrimaryLighter
7781
+ fill: colors18.DdsColorPrimaryLighter
7781
7782
  },
7782
7783
  background: {
7783
- fill: colors19.DdsColorNeutralsWhite
7784
+ fill: colors18.DdsColorNeutralsWhite
7784
7785
  }
7785
7786
  };
7786
7787
  var tooltipTokens = {
@@ -8076,17 +8077,17 @@ var import_styled_components53 = __toESM(require("styled-components"));
8076
8077
 
8077
8078
  // src/components/FileUploader/FileUploader.tokens.tsx
8078
8079
  var import_dds_design_tokens39 = require("@norges-domstoler/dds-design-tokens");
8079
- var { colors: colors20, spacing: spacing20 } = import_dds_design_tokens39.ddsBaseTokens;
8080
+ var { colors: colors19, spacing: spacing20 } = import_dds_design_tokens39.ddsBaseTokens;
8080
8081
  var rootTokens = {
8081
- borderColor: colors20.DdsColorNeutralsGray5,
8082
- borderColorError: colors20.DdsColorDangerBase,
8082
+ borderColor: colors19.DdsColorNeutralsGray5,
8083
+ borderColorError: colors19.DdsColorDangerBase,
8083
8084
  paddingLeftRightTop: spacing20.SizesDdsSpacingX15,
8084
8085
  paddingBottom: spacing20.SizesDdsSpacingX2,
8085
8086
  gap: spacing20.SizesDdsSpacingX1,
8086
- backgroundColor: colors20.DdsColorNeutralsWhite,
8087
+ backgroundColor: colors19.DdsColorNeutralsWhite,
8087
8088
  dragActive: {
8088
- borderColor: colors20.DdsColorInteractiveBase,
8089
- backgroundColor: colors20.DdsColorInteractiveLightest
8089
+ borderColor: colors19.DdsColorInteractiveBase,
8090
+ backgroundColor: colors19.DdsColorInteractiveLightest
8090
8091
  }
8091
8092
  };
8092
8093
  var noZoneContainerTokens = {
@@ -8096,10 +8097,10 @@ var fileTokens = {
8096
8097
  marginTop: spacing20.SizesDdsSpacingX05,
8097
8098
  paddingLeftRight: spacing20.SizesDdsSpacingX05,
8098
8099
  paddingTopBottom: spacing20.SizesDdsSpacingX1,
8099
- backgroundColor: colors20.DdsColorNeutralsGray1,
8100
+ backgroundColor: colors19.DdsColorNeutralsGray1,
8100
8101
  textToIconsGap: spacing20.SizesDdsSpacingX075,
8101
8102
  invalid: {
8102
- borderColor: colors20.DdsColorDangerBase
8103
+ borderColor: colors19.DdsColorDangerBase
8103
8104
  }
8104
8105
  };
8105
8106
  var errorsTokens = {
@@ -8612,22 +8613,22 @@ var import_styled_components57 = __toESM(require("styled-components"));
8612
8613
 
8613
8614
  // src/components/GlobalMessage/GlobalMessage.tokens.tsx
8614
8615
  var import_dds_design_tokens40 = require("@norges-domstoler/dds-design-tokens");
8615
- var { colors: colors21, spacing: spacing21 } = import_dds_design_tokens40.ddsBaseTokens;
8616
+ var { colors: colors20, spacing: spacing21 } = import_dds_design_tokens40.ddsBaseTokens;
8616
8617
  var typographyType4 = "bodySans02";
8617
8618
  var container7 = {
8618
8619
  borderBottom: "2px solid",
8619
8620
  padding: `0 ${spacing21.SizesDdsSpacingX1}`,
8620
8621
  info: {
8621
- borderColor: colors21.DdsColorInfoLighter,
8622
- backgroundColor: colors21.DdsColorInfoLightest
8622
+ borderColor: colors20.DdsColorInfoLighter,
8623
+ backgroundColor: colors20.DdsColorInfoLightest
8623
8624
  },
8624
8625
  danger: {
8625
- borderColor: colors21.DdsColorDangerLighter,
8626
- backgroundColor: colors21.DdsColorDangerLightest
8626
+ borderColor: colors20.DdsColorDangerLighter,
8627
+ backgroundColor: colors20.DdsColorDangerLightest
8627
8628
  },
8628
8629
  warning: {
8629
- borderColor: colors21.DdsColorWarningLighter,
8630
- backgroundColor: colors21.DdsColorWarningLightest
8630
+ borderColor: colors20.DdsColorWarningLighter,
8631
+ backgroundColor: colors20.DdsColorWarningLightest
8631
8632
  }
8632
8633
  };
8633
8634
  var contentContainer3 = {
@@ -8659,20 +8660,20 @@ var globalMessageTokens = {
8659
8660
  icon: {
8660
8661
  marginRight: `${spacing21.SizesDdsSpacingX075}`,
8661
8662
  info: {
8662
- color: colors21.DdsColorInfoDarkest
8663
+ color: colors20.DdsColorInfoDarkest
8663
8664
  },
8664
8665
  danger: {
8665
- color: colors21.DdsColorDangerDarkest
8666
+ color: colors20.DdsColorDangerDarkest
8666
8667
  },
8667
8668
  warning: {
8668
- color: colors21.DdsColorWarningDarkest
8669
+ color: colors20.DdsColorWarningDarkest
8669
8670
  }
8670
8671
  }
8671
8672
  };
8672
8673
 
8673
8674
  // src/components/GlobalMessage/GlobalMessage.tsx
8674
8675
  var import_jsx_runtime220 = require("react/jsx-runtime");
8675
- var { container: container8, contentContainer: contentContainer4, icon: icon5 } = globalMessageTokens;
8676
+ var { container: container8, contentContainer: contentContainer4, icon: icon4 } = globalMessageTokens;
8676
8677
  var Container7 = import_styled_components57.default.div`
8677
8678
  display: flex;
8678
8679
  align-items: center;
@@ -8688,7 +8689,7 @@ var Container7 = import_styled_components57.default.div`
8688
8689
  `}
8689
8690
  `;
8690
8691
  var MessageIconWrapper = (0, import_styled_components57.default)(Icon)`
8691
- margin-right: ${icon5.marginRight};
8692
+ margin-right: ${icon4.marginRight};
8692
8693
  `;
8693
8694
  var ControlsContainer = import_styled_components57.default.div`
8694
8695
  display: flex;
@@ -8727,7 +8728,7 @@ var GlobalMessage = (0, import_react62.forwardRef)(
8727
8728
  MessageIconWrapper,
8728
8729
  {
8729
8730
  icon: purposeVariants[purpose].icon,
8730
- color: icon5[purpose].color
8731
+ color: icon4[purpose].color
8731
8732
  }
8732
8733
  ),
8733
8734
  children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Typography, { as: "span", children: message2 })
@@ -9016,7 +9017,7 @@ var import_styled_components60 = __toESM(require("styled-components"));
9016
9017
 
9017
9018
  // src/components/InlineEdit/InlineEdit.tokens.ts
9018
9019
  var import_dds_design_tokens42 = require("@norges-domstoler/dds-design-tokens");
9019
- var { colors: colors22, spacing: spacing23, fontPackages: fontPackages5 } = import_dds_design_tokens42.ddsBaseTokens;
9020
+ var { colors: colors21, spacing: spacing23, fontPackages: fontPackages5 } = import_dds_design_tokens42.ddsBaseTokens;
9020
9021
  var inlineEdit = {
9021
9022
  padding: spacing23.SizesDdsSpacingX025,
9022
9023
  font: fontPackages5.body_sans_02.base,
@@ -9025,10 +9026,10 @@ var inlineEdit = {
9025
9026
  paddingLeft: spacing23.SizesDdsSpacingX2
9026
9027
  },
9027
9028
  hover: {
9028
- backgroundColor: colors22.DdsColorInteractiveLightest
9029
+ backgroundColor: colors21.DdsColorInteractiveLightest
9029
9030
  },
9030
9031
  focus: {
9031
- backgroundColor: colors22.DdsColorNeutralsWhite
9032
+ backgroundColor: colors21.DdsColorNeutralsWhite
9032
9033
  }
9033
9034
  };
9034
9035
  var iconWrapper = {
@@ -9259,9 +9260,9 @@ var import_styled_components61 = __toESM(require("styled-components"));
9259
9260
 
9260
9261
  // src/components/InternalHeader/InternalHeader.tokens.tsx
9261
9262
  var import_dds_design_tokens43 = require("@norges-domstoler/dds-design-tokens");
9262
- var { border: border10, colors: colors23, spacing: spacing24 } = import_dds_design_tokens43.ddsBaseTokens;
9263
+ var { border: border10, colors: colors22, spacing: spacing24 } = import_dds_design_tokens43.ddsBaseTokens;
9263
9264
  var bar = {
9264
- backgroundColor: colors23.DdsColorNeutralsWhite,
9265
+ backgroundColor: colors22.DdsColorNeutralsWhite,
9265
9266
  itemGap: spacing24.SizesDdsSpacingX15,
9266
9267
  minHeight: "57px",
9267
9268
  borderBottom: `${border10.BordersDdsBorderStyleLightStroke} solid ${border10.BordersDdsBorderStyleLightStrokeWeight}`,
@@ -9650,7 +9651,7 @@ var import_styled_components65 = __toESM(require("styled-components"));
9650
9651
 
9651
9652
  // src/components/LocalMessage/LocalMessage.tokens.tsx
9652
9653
  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;
9654
+ var { colors: colors23, spacing: spacing26, borderRadius: borderRadius6, border: border11, outerShadow: outerShadow3 } = import_dds_design_tokens46.ddsBaseTokens;
9654
9655
  var container9 = {
9655
9656
  base: {
9656
9657
  boxShadow: outerShadow3.DdsShadow1Onlight,
@@ -9661,28 +9662,28 @@ var container9 = {
9661
9662
  },
9662
9663
  purpose: {
9663
9664
  info: {
9664
- borderColor: colors24.DdsColorInfoBase,
9665
- backgroundColor: colors24.DdsColorInfoLightest
9665
+ borderColor: colors23.DdsColorInfoBase,
9666
+ backgroundColor: colors23.DdsColorInfoLightest
9666
9667
  },
9667
9668
  warning: {
9668
- borderColor: colors24.DdsColorWarningBase,
9669
- backgroundColor: colors24.DdsColorWarningLightest
9669
+ borderColor: colors23.DdsColorWarningBase,
9670
+ backgroundColor: colors23.DdsColorWarningLightest
9670
9671
  },
9671
9672
  danger: {
9672
- borderColor: colors24.DdsColorDangerBase,
9673
- backgroundColor: colors24.DdsColorDangerLightest
9673
+ borderColor: colors23.DdsColorDangerBase,
9674
+ backgroundColor: colors23.DdsColorDangerLightest
9674
9675
  },
9675
9676
  success: {
9676
- borderColor: colors24.DdsColorSuccessBase,
9677
- backgroundColor: colors24.DdsColorSuccessLightest
9677
+ borderColor: colors23.DdsColorSuccessBase,
9678
+ backgroundColor: colors23.DdsColorSuccessLightest
9678
9679
  },
9679
9680
  tips: {
9680
- borderColor: colors24.DdsColorPrimaryBase,
9681
- backgroundColor: colors24.DdsColorPrimaryLightest
9681
+ borderColor: colors23.DdsColorPrimaryBase,
9682
+ backgroundColor: colors23.DdsColorPrimaryLightest
9682
9683
  },
9683
9684
  confidential: {
9684
- borderColor: colors24.DdsColorDangerBase,
9685
- backgroundColor: colors24.DdsColorDangerLightest
9685
+ borderColor: colors23.DdsColorDangerBase,
9686
+ backgroundColor: colors23.DdsColorDangerLightest
9686
9687
  }
9687
9688
  }
9688
9689
  };
@@ -9717,37 +9718,37 @@ var purposeVariants2 = {
9717
9718
  closeButtonPurpose: "danger"
9718
9719
  }
9719
9720
  };
9720
- var icon6 = {
9721
+ var icon5 = {
9721
9722
  marginRight: `${spacing26.SizesDdsSpacingX075}`,
9722
9723
  info: {
9723
- color: colors24.DdsColorInfoDarkest
9724
+ color: colors23.DdsColorInfoDarkest
9724
9725
  },
9725
9726
  danger: {
9726
- color: colors24.DdsColorDangerDarkest
9727
+ color: colors23.DdsColorDangerDarkest
9727
9728
  },
9728
9729
  warning: {
9729
- color: colors24.DdsColorWarningDarkest
9730
+ color: colors23.DdsColorWarningDarkest
9730
9731
  },
9731
9732
  success: {
9732
- color: colors24.DdsColorSuccessDarkest
9733
+ color: colors23.DdsColorSuccessDarkest
9733
9734
  },
9734
9735
  tips: {
9735
- color: colors24.DdsColorPrimaryDarkest
9736
+ color: colors23.DdsColorPrimaryDarkest
9736
9737
  },
9737
9738
  confidential: {
9738
- color: colors24.DdsColorDangerDarkest
9739
+ color: colors23.DdsColorDangerDarkest
9739
9740
  }
9740
9741
  };
9741
9742
  var localMessageTokens = {
9742
9743
  container: container9,
9743
9744
  content: content3,
9744
9745
  purposeVariants: purposeVariants2,
9745
- icon: icon6
9746
+ icon: icon5
9746
9747
  };
9747
9748
 
9748
9749
  // src/components/LocalMessage/LocalMessage.tsx
9749
9750
  var import_jsx_runtime233 = require("react/jsx-runtime");
9750
- var { container: container10, content: content4, icon: icon7, purposeVariants: purposeVariants3 } = localMessageTokens;
9751
+ var { container: container10, content: content4, icon: icon6, purposeVariants: purposeVariants3 } = localMessageTokens;
9751
9752
  var Container8 = import_styled_components65.default.div.withConfig({
9752
9753
  shouldForwardProp: (prop) => {
9753
9754
  const styleOnlyProps = [
@@ -9842,7 +9843,7 @@ var LocalMessage = (0, import_react73.forwardRef)(
9842
9843
  MessageIconWrapper2,
9843
9844
  {
9844
9845
  icon: purposeVariants3[purpose].icon,
9845
- color: icon7[purpose].color
9846
+ color: icon6[purpose].color
9846
9847
  }
9847
9848
  ),
9848
9849
  /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(TextContainer2, { children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Typography, { as: "span", children: message2 }) }),
@@ -10079,12 +10080,12 @@ var import_styled_components71 = __toESM(require("styled-components"));
10079
10080
 
10080
10081
  // src/components/Pagination/Pagination.tokens.tsx
10081
10082
  var import_dds_design_tokens49 = require("@norges-domstoler/dds-design-tokens");
10082
- var { spacing: spacing28, colors: colors25 } = import_dds_design_tokens49.ddsBaseTokens;
10083
+ var { spacing: spacing28, colors: colors24 } = import_dds_design_tokens49.ddsBaseTokens;
10083
10084
  var list7 = {
10084
10085
  gap: spacing28.SizesDdsSpacingX075
10085
10086
  };
10086
10087
  var truncationIcon = {
10087
- color: colors25.DdsColorNeutralsGray7
10088
+ color: colors24.DdsColorNeutralsGray7
10088
10089
  };
10089
10090
  var outerContainer3 = {
10090
10091
  gap: spacing28.SizesDdsSpacingX075
@@ -10141,7 +10142,7 @@ var import_styled_components70 = __toESM(require("styled-components"));
10141
10142
 
10142
10143
  // src/components/Select/Select.tokens.tsx
10143
10144
  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;
10145
+ var { colors: colors25, spacing: spacing29, borderRadius: borderRadius7, border: border12 } = import_dds_design_tokens50.ddsBaseTokens;
10145
10146
  var { textDefault: textDefault5 } = import_dds_design_tokens50.ddsReferenceTokens;
10146
10147
  var placeholderTypographyTypes = {
10147
10148
  medium: "supportingStylePlaceholderText01",
@@ -10164,12 +10165,12 @@ var typographyTypes3 = {
10164
10165
  var control = {
10165
10166
  borderRadius: borderRadius7.RadiiDdsBorderRadius1Radius,
10166
10167
  border: `${border12.BordersDdsBorderStyleLightStrokeWeight} solid`,
10167
- borderColor: colors26.DdsColorNeutralsGray5,
10168
- backgroundColor: colors26.DdsColorNeutralsWhite,
10169
- color: colors26.DdsColorNeutralsGray9,
10168
+ borderColor: colors25.DdsColorNeutralsGray5,
10169
+ backgroundColor: colors25.DdsColorNeutralsWhite,
10170
+ color: colors25.DdsColorNeutralsGray9,
10170
10171
  disabled: {
10171
- backgroundColor: colors26.DdsColorNeutralsGray1,
10172
- borderColor: colors26.DdsColorNeutralsGray5
10172
+ backgroundColor: colors25.DdsColorNeutralsGray1,
10173
+ borderColor: colors25.DdsColorNeutralsGray5
10173
10174
  },
10174
10175
  readOnly: {
10175
10176
  borderColor: "transparent",
@@ -10202,14 +10203,14 @@ var control = {
10202
10203
  }
10203
10204
  };
10204
10205
  var placeholder = {
10205
- color: colors26.DdsColorNeutralsGray6
10206
+ color: colors25.DdsColorNeutralsGray6
10206
10207
  };
10207
10208
  var dropdownIndicator = {
10208
10209
  base: {
10209
- color: colors26.DdsColorNeutralsGray6
10210
+ color: colors25.DdsColorNeutralsGray6
10210
10211
  },
10211
10212
  hover: {
10212
- color: colors26.DdsColorInteractiveBase
10213
+ color: colors25.DdsColorInteractiveBase
10213
10214
  },
10214
10215
  readOnly: {
10215
10216
  color: "transparent"
@@ -10217,23 +10218,23 @@ var dropdownIndicator = {
10217
10218
  };
10218
10219
  var clearIndicator = {
10219
10220
  base: {
10220
- color: colors26.DdsColorNeutralsGray6
10221
+ color: colors25.DdsColorNeutralsGray6
10221
10222
  },
10222
- hover: { color: colors26.DdsColorInteractiveBase }
10223
+ hover: { color: colors25.DdsColorInteractiveBase }
10223
10224
  };
10224
10225
  var loadingIndicator = {
10225
- color: colors26.DdsColorNeutralsGray6
10226
+ color: colors25.DdsColorNeutralsGray6
10226
10227
  };
10227
10228
  var menu = {
10228
10229
  border: "1px solid",
10229
- borderColor: colors26.DdsColorInteractiveBase,
10230
- backgroundColor: colors26.DdsColorNeutralsWhite,
10230
+ borderColor: colors25.DdsColorInteractiveBase,
10231
+ backgroundColor: colors25.DdsColorNeutralsWhite,
10231
10232
  borderRadius: borderRadius7.RadiiDdsBorderRadius1Radius,
10232
10233
  marginTop: spacing29.SizesDdsSpacingX025,
10233
10234
  marginBottom: spacing29.SizesDdsSpacingX025
10234
10235
  };
10235
10236
  var groupHeading = {
10236
- color: colors26.DdsColorNeutralsGray7,
10237
+ color: colors25.DdsColorNeutralsGray7,
10237
10238
  padding: `${spacing29.SizesDdsSpacingX05} ${spacing29.SizesDdsSpacingX075} ${spacing29.SizesDdsSpacingX0125} ${spacing29.SizesDdsSpacingX075}`
10238
10239
  };
10239
10240
  var option = {
@@ -10241,44 +10242,44 @@ var option = {
10241
10242
  color: textDefault5.textColor,
10242
10243
  gap: spacing29.SizesDdsSpacingX05,
10243
10244
  padding: `${spacing29.SizesDdsSpacingX075}`,
10244
- backgroundColor: colors26.DdsColorNeutralsWhite
10245
+ backgroundColor: colors25.DdsColorNeutralsWhite
10245
10246
  },
10246
10247
  hover: {
10247
10248
  color: textDefault5.textColor,
10248
- backgroundColor: colors26.DdsColorInteractiveLightest
10249
+ backgroundColor: colors25.DdsColorInteractiveLightest
10249
10250
  },
10250
10251
  focus: {
10251
10252
  color: textDefault5.textColor,
10252
- backgroundColor: colors26.DdsColorInteractiveLightest
10253
+ backgroundColor: colors25.DdsColorInteractiveLightest
10253
10254
  },
10254
10255
  selected: {
10255
10256
  color: textDefault5.textColor,
10256
- backgroundColor: colors26.DdsColorNeutralsWhite
10257
+ backgroundColor: colors25.DdsColorNeutralsWhite
10257
10258
  }
10258
10259
  };
10259
10260
  var noOptionsMessage = {
10260
10261
  padding: `${spacing29.SizesDdsSpacingX05} ${spacing29.SizesDdsSpacingX1}`,
10261
- color: colors26.DdsColorNeutralsGray6
10262
+ color: colors25.DdsColorNeutralsGray6
10262
10263
  };
10263
10264
  var multiValue = {
10264
10265
  borderRadius: borderRadius7.RadiiDdsBorderRadius1Radius,
10265
- backgroundColor: colors26.DdsColorNeutralsGray2
10266
+ backgroundColor: colors25.DdsColorNeutralsGray2
10266
10267
  };
10267
10268
  var multiValueLabel = {
10268
10269
  padding: `0 ${spacing29.SizesDdsSpacingX025}`,
10269
- color: colors26.DdsColorNeutralsGray9
10270
+ color: colors25.DdsColorNeutralsGray9
10270
10271
  };
10271
10272
  var multiValueRemove = {
10272
10273
  base: {
10273
- color: colors26.DdsColorNeutralsGray9,
10274
+ color: colors25.DdsColorNeutralsGray9,
10274
10275
  padding: `0 ${spacing29.SizesDdsSpacingX025}`,
10275
10276
  borderTopRightRadius: borderRadius7.RadiiDdsBorderRadius1Radius,
10276
10277
  borderBottomRightRadius: borderRadius7.RadiiDdsBorderRadius1Radius
10277
10278
  },
10278
10279
  hover: {
10279
- color: colors26.DdsColorNeutralsWhite,
10280
- backgroundColor: colors26.DdsColorInteractiveBase,
10281
- boxShadow: `inset 0 0 0 1px ${colors26.DdsColorNeutralsGray9}`
10280
+ color: colors25.DdsColorNeutralsWhite,
10281
+ backgroundColor: colors25.DdsColorInteractiveBase,
10282
+ boxShadow: `inset 0 0 0 1px ${colors25.DdsColorNeutralsGray9}`
10282
10283
  }
10283
10284
  };
10284
10285
  var valueContainer = {
@@ -10286,7 +10287,7 @@ var valueContainer = {
10286
10287
  gap: spacing29.SizesDdsSpacingX025
10287
10288
  }
10288
10289
  };
10289
- var icon8 = {
10290
+ var icon7 = {
10290
10291
  marginRight: spacing29.SizesDdsSpacingX05
10291
10292
  };
10292
10293
  var selectTokens = {
@@ -10303,7 +10304,7 @@ var selectTokens = {
10303
10304
  noOptionsMessage,
10304
10305
  clearIndicator,
10305
10306
  loadingIndicator,
10306
- icon: icon8
10307
+ icon: icon7
10307
10308
  };
10308
10309
 
10309
10310
  // src/components/Select/Select.styles.ts
@@ -10320,7 +10321,7 @@ var {
10320
10321
  multiValueRemove: multiValueRemove2,
10321
10322
  noOptionsMessage: noOptionsMessage2,
10322
10323
  placeholder: placeholder2,
10323
- icon: icon9,
10324
+ icon: icon8,
10324
10325
  valueContainer: valueContainer2
10325
10326
  } = selectTokens;
10326
10327
  var prefix = "dds-select";
@@ -10401,8 +10402,8 @@ var InnerSingleValue = import_styled_components70.default.div`
10401
10402
  box-sizing: border-box;
10402
10403
  max-width: 100%;
10403
10404
  `;
10404
- var StyledIcon4 = (0, import_styled_components70.default)(Icon)`
10405
- margin-right: ${icon9.marginRight};
10405
+ var StyledIcon3 = (0, import_styled_components70.default)(Icon)`
10406
+ margin-right: ${icon8.marginRight};
10406
10407
  `;
10407
10408
  var getCustomStyles = (size2) => ({
10408
10409
  control: () => ({
@@ -10595,8 +10596,8 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ (0, impo
10595
10596
  "aria-describedby": ariaDescribedby
10596
10597
  }
10597
10598
  );
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) }),
10599
+ var DDSControl = (props, componentSize, icon11) => /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(Control, { ...props, children: [
10600
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(StyledIcon3, { icon: icon11, iconSize: getFormInputIconSize(componentSize) }),
10600
10601
  props.children
10601
10602
  ] });
10602
10603
 
@@ -10617,7 +10618,7 @@ function SelectInner(props, ref) {
10617
10618
  options,
10618
10619
  isMulti,
10619
10620
  value,
10620
- icon: icon12,
10621
+ icon: icon11,
10621
10622
  defaultValue,
10622
10623
  width = defaultWidth4,
10623
10624
  closeMenuOnSelect,
@@ -10681,7 +10682,7 @@ function SelectInner(props, ref) {
10681
10682
  ClearIndicator: (props2) => DDSClearIndicator(props2, componentSize),
10682
10683
  DropdownIndicator: (props2) => DDSDropdownIndicator(props2, componentSize),
10683
10684
  MultiValueRemove: DDSMultiValueRemove,
10684
- Control: (props2) => DDSControl(props2, componentSize, icon12)
10685
+ Control: (props2) => DDSControl(props2, componentSize, icon11)
10685
10686
  },
10686
10687
  "aria-invalid": hasErrorMessage ? true : void 0,
10687
10688
  required,
@@ -10703,7 +10704,7 @@ var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }))
10703
10704
  // src/components/Pagination/Pagination.tsx
10704
10705
  var import_jsx_runtime239 = require("react/jsx-runtime");
10705
10706
  var { outerContainer: outerContainer4, indicatorsContainer: indicatorsContainer2, truncationIcon: truncationIcon2, list: list8 } = paginationTokens;
10706
- var Nav2 = import_styled_components71.default.nav`
10707
+ var Nav = import_styled_components71.default.nav`
10707
10708
  display: flex;
10708
10709
  align-items: center;
10709
10710
  `;
@@ -10836,12 +10837,12 @@ var Pagination = (0, import_react78.forwardRef)(
10836
10837
  };
10837
10838
  const isOnFirstPage = activePage === 1;
10838
10839
  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: [
10840
+ 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
10841
  /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
10841
10842
  listItems,
10842
10843
  /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton })
10843
10844
  ] }) }) : 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: [
10845
+ 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
10846
  /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
10846
10847
  Button,
10847
10848
  {
@@ -11130,7 +11131,7 @@ var useProgressTrackerContext = () => (0, import_react81.useContext)(ProgressTra
11130
11131
 
11131
11132
  // src/components/ProgressTracker/ProgressTracker.tokens.tsx
11132
11133
  var import_dds_design_tokens53 = require("@norges-domstoler/dds-design-tokens");
11133
- var { colors: colors27, spacing: spacing31 } = import_dds_design_tokens53.ddsBaseTokens;
11134
+ var { colors: colors26, spacing: spacing31 } = import_dds_design_tokens53.ddsBaseTokens;
11134
11135
  var typographyTypes4 = {
11135
11136
  number: "bodySans01",
11136
11137
  label: "bodySans03"
@@ -11142,7 +11143,7 @@ var itemContentWrapper = {
11142
11143
  gap: spacing31.SizesDdsSpacingX05
11143
11144
  };
11144
11145
  var connector = {
11145
- color: colors27.DdsColorNeutralsGray5,
11146
+ color: colors26.DdsColorNeutralsGray5,
11146
11147
  height: "18px",
11147
11148
  width: "1px"
11148
11149
  };
@@ -11151,87 +11152,87 @@ var itemNumber = {
11151
11152
  borderWidth: "2px",
11152
11153
  iconSize: "small",
11153
11154
  activeIncomplete: {
11154
- borderColor: colors27.DdsColorInteractiveBase,
11155
- color: colors27.DdsColorNeutralsWhite,
11156
- backgroundColor: colors27.DdsColorInteractiveBase,
11155
+ borderColor: colors26.DdsColorInteractiveBase,
11156
+ color: colors26.DdsColorNeutralsWhite,
11157
+ backgroundColor: colors26.DdsColorInteractiveBase,
11157
11158
  hover: {
11158
- borderColor: colors27.DdsColorInteractiveBase,
11159
- color: colors27.DdsColorNeutralsWhite,
11160
- backgroundColor: colors27.DdsColorInteractiveBase
11159
+ borderColor: colors26.DdsColorInteractiveBase,
11160
+ color: colors26.DdsColorNeutralsWhite,
11161
+ backgroundColor: colors26.DdsColorInteractiveBase
11161
11162
  }
11162
11163
  },
11163
11164
  activeCompleted: {
11164
- borderColor: colors27.DdsColorInteractiveBase,
11165
- color: colors27.DdsColorNeutralsWhite,
11166
- backgroundColor: colors27.DdsColorInteractiveBase,
11165
+ borderColor: colors26.DdsColorInteractiveBase,
11166
+ color: colors26.DdsColorNeutralsWhite,
11167
+ backgroundColor: colors26.DdsColorInteractiveBase,
11167
11168
  hover: {
11168
- borderColor: colors27.DdsColorInteractiveDark,
11169
- color: colors27.DdsColorNeutralsWhite,
11170
- backgroundColor: colors27.DdsColorInteractiveDark
11169
+ borderColor: colors26.DdsColorInteractiveDark,
11170
+ color: colors26.DdsColorNeutralsWhite,
11171
+ backgroundColor: colors26.DdsColorInteractiveDark
11171
11172
  }
11172
11173
  },
11173
11174
  inactiveCompleted: {
11174
- borderColor: colors27.DdsColorInteractiveBase,
11175
- color: colors27.DdsColorNeutralsWhite,
11176
- backgroundColor: colors27.DdsColorInteractiveBase,
11175
+ borderColor: colors26.DdsColorInteractiveBase,
11176
+ color: colors26.DdsColorNeutralsWhite,
11177
+ backgroundColor: colors26.DdsColorInteractiveBase,
11177
11178
  hover: {
11178
- borderColor: colors27.DdsColorInteractiveDark,
11179
- color: colors27.DdsColorNeutralsWhite,
11180
- backgroundColor: colors27.DdsColorInteractiveDark
11179
+ borderColor: colors26.DdsColorInteractiveDark,
11180
+ color: colors26.DdsColorNeutralsWhite,
11181
+ backgroundColor: colors26.DdsColorInteractiveDark
11181
11182
  }
11182
11183
  },
11183
11184
  inactiveIncomplete: {
11184
- borderColor: colors27.DdsColorInteractiveBase,
11185
- color: colors27.DdsColorInteractiveBase,
11186
- backgroundColor: colors27.DdsColorNeutralsWhite,
11185
+ borderColor: colors26.DdsColorInteractiveBase,
11186
+ color: colors26.DdsColorInteractiveBase,
11187
+ backgroundColor: colors26.DdsColorNeutralsWhite,
11187
11188
  hover: {
11188
- borderColor: colors27.DdsColorInteractiveBase,
11189
- color: colors27.DdsColorInteractiveBase,
11190
- backgroundColor: colors27.DdsColorInteractiveLightest
11189
+ borderColor: colors26.DdsColorInteractiveBase,
11190
+ color: colors26.DdsColorInteractiveBase,
11191
+ backgroundColor: colors26.DdsColorInteractiveLightest
11191
11192
  }
11192
11193
  },
11193
11194
  disabled: {
11194
- borderColor: colors27.DdsColorNeutralsGray5,
11195
- color: colors27.DdsColorNeutralsGray5,
11196
- backgroundColor: colors27.DdsColorNeutralsWhite
11195
+ borderColor: colors26.DdsColorNeutralsGray5,
11196
+ color: colors26.DdsColorNeutralsGray5,
11197
+ backgroundColor: colors26.DdsColorNeutralsWhite
11197
11198
  }
11198
11199
  };
11199
11200
  var itemText = {
11200
11201
  textDecoration: "underline",
11201
11202
  activeCompleted: {
11202
- color: colors27.DdsColorInteractiveBase,
11203
+ color: colors26.DdsColorInteractiveBase,
11203
11204
  textDecorationColor: "transparent",
11204
11205
  hover: {
11205
- color: colors27.DdsColorInteractiveBase,
11206
+ color: colors26.DdsColorInteractiveBase,
11206
11207
  textDecorationColor: "transparent"
11207
11208
  }
11208
11209
  },
11209
11210
  activeIncomplete: {
11210
- color: colors27.DdsColorInteractiveBase,
11211
+ color: colors26.DdsColorInteractiveBase,
11211
11212
  textDecorationColor: "transparent",
11212
11213
  hover: {
11213
- color: colors27.DdsColorInteractiveBase,
11214
+ color: colors26.DdsColorInteractiveBase,
11214
11215
  textDecorationColor: "transparent"
11215
11216
  }
11216
11217
  },
11217
11218
  inactiveIncomplete: {
11218
- color: colors27.DdsColorNeutralsGray7,
11219
- textDecorationColor: colors27.DdsColorNeutralsGray7,
11219
+ color: colors26.DdsColorNeutralsGray7,
11220
+ textDecorationColor: colors26.DdsColorNeutralsGray7,
11220
11221
  hover: {
11221
- color: colors27.DdsColorInteractiveBase,
11222
- textDecorationColor: colors27.DdsColorInteractiveBase
11222
+ color: colors26.DdsColorInteractiveBase,
11223
+ textDecorationColor: colors26.DdsColorInteractiveBase
11223
11224
  }
11224
11225
  },
11225
11226
  inactiveCompleted: {
11226
- color: colors27.DdsColorNeutralsGray7,
11227
- textDecorationColor: colors27.DdsColorNeutralsGray7,
11227
+ color: colors26.DdsColorNeutralsGray7,
11228
+ textDecorationColor: colors26.DdsColorNeutralsGray7,
11228
11229
  hover: {
11229
- color: colors27.DdsColorInteractiveBase,
11230
- textDecorationColor: colors27.DdsColorInteractiveBase
11230
+ color: colors26.DdsColorInteractiveBase,
11231
+ textDecorationColor: colors26.DdsColorInteractiveBase
11231
11232
  }
11232
11233
  },
11233
11234
  disabled: {
11234
- color: colors27.DdsColorNeutralsGray6,
11235
+ color: colors26.DdsColorNeutralsGray6,
11235
11236
  textDecorationColor: "transparent"
11236
11237
  }
11237
11238
  };
@@ -11333,7 +11334,7 @@ var ProgressTrackerItem = (props) => {
11333
11334
  index = 0,
11334
11335
  completed = false,
11335
11336
  disabled = false,
11336
- icon: icon12,
11337
+ icon: icon11,
11337
11338
  children
11338
11339
  } = props;
11339
11340
  const { activeStep, handleStepChange } = useProgressTrackerContext();
@@ -11345,11 +11346,11 @@ var ProgressTrackerItem = (props) => {
11345
11346
  if (completed) {
11346
11347
  return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon, { icon: CheckIcon, iconSize: itemNumber2.iconSize });
11347
11348
  }
11348
- if (icon12 !== void 0) {
11349
- return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon, { icon: icon12, iconSize: itemNumber2.iconSize });
11349
+ if (icon11 !== void 0) {
11350
+ return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon, { icon: icon11, iconSize: itemNumber2.iconSize });
11350
11351
  }
11351
11352
  return index + 1;
11352
- }, [completed, icon12, index]);
11353
+ }, [completed, icon11, index]);
11353
11354
  return /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(ItemWrapper, { "aria-current": active ? "step" : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
11354
11355
  ItemContentWrapper,
11355
11356
  {
@@ -11469,7 +11470,7 @@ var useAutocompleteSearch = () => {
11469
11470
 
11470
11471
  // src/components/Search/Search.tokens.tsx
11471
11472
  var import_dds_design_tokens54 = require("@norges-domstoler/dds-design-tokens");
11472
- var { spacing: spacing32, iconSizes: iconSizes2, colors: colors28 } = import_dds_design_tokens54.ddsBaseTokens;
11473
+ var { spacing: spacing32, iconSizes: iconSizes2, colors: colors27 } = import_dds_design_tokens54.ddsBaseTokens;
11473
11474
  var { textDefault: textDefault6 } = import_dds_design_tokens54.ddsReferenceTokens;
11474
11475
  var typographyTypes5 = {
11475
11476
  small: "bodySans01",
@@ -11531,8 +11532,8 @@ var clearButton = {
11531
11532
  };
11532
11533
  var suggestionsContainer = {
11533
11534
  marginTop: spacing32.SizesDdsSpacingX025,
11534
- border: `1px solid ${colors28.DdsColorInteractiveBase}`,
11535
- boxShadow: `0 0 0 1px ${colors28.DdsColorInteractiveBase}`
11535
+ border: `1px solid ${colors27.DdsColorInteractiveBase}`,
11536
+ boxShadow: `0 0 0 1px ${colors27.DdsColorInteractiveBase}`
11536
11537
  };
11537
11538
  var suggestionsHeader = {
11538
11539
  paddingLeft: spacing32.SizesDdsSpacingX1
@@ -11618,7 +11619,7 @@ var SearchSuggestions = (0, import_react85.forwardRef)((props, ref) => {
11618
11619
  searchId,
11619
11620
  "suggestions-header"
11620
11621
  );
11621
- const [focus, setFocus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, !showSuggestions);
11622
+ const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
11622
11623
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
11623
11624
  const renderedSuggestions = /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(SuggestionsList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
11624
11625
  return /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
@@ -11626,7 +11627,6 @@ var SearchSuggestions = (0, import_react85.forwardRef)((props, ref) => {
11626
11627
  {
11627
11628
  index,
11628
11629
  focus: focus === index && showSuggestions,
11629
- setFocus,
11630
11630
  "aria-label": `s\xF8k p\xE5 ${suggestion}`,
11631
11631
  onClick: onSuggestionClick,
11632
11632
  title: suggestion,
@@ -11966,13 +11966,13 @@ var selectionControlTypographyProps = {
11966
11966
  };
11967
11967
 
11968
11968
  // src/components/SelectionControl/SelectionControl.tokens.tsx
11969
- var { colors: colors29, spacing: spacing33, borderRadius: borderRadius8 } = import_dds_design_tokens55.ddsBaseTokens;
11969
+ var { colors: colors28, spacing: spacing33, borderRadius: borderRadius8 } = import_dds_design_tokens55.ddsBaseTokens;
11970
11970
  var checkmark = {
11971
11971
  checkbox: {
11972
- borderColor: colors29.DdsColorNeutralsWhite
11972
+ borderColor: colors28.DdsColorNeutralsWhite
11973
11973
  },
11974
11974
  radio: {
11975
- backgroundColor: colors29.DdsColorNeutralsWhite,
11975
+ backgroundColor: colors28.DdsColorNeutralsWhite,
11976
11976
  height: spacing33.SizesDdsSpacingX05,
11977
11977
  width: spacing33.SizesDdsSpacingX05,
11978
11978
  left: `calc(50% - ${spacing33.SizesDdsSpacingX05NumberPx / 2}px)`,
@@ -11982,20 +11982,20 @@ var checkmark = {
11982
11982
  var selectionControl = {
11983
11983
  base: {
11984
11984
  border: "1px solid",
11985
- borderColor: colors29.DdsColorNeutralsGray5,
11986
- backgroundColor: colors29.DdsColorNeutralsWhite,
11985
+ borderColor: colors28.DdsColorNeutralsGray5,
11986
+ backgroundColor: colors28.DdsColorNeutralsWhite,
11987
11987
  borderRadius: borderRadius8.RadiiDdsBorderRadius1Radius,
11988
11988
  height: selectionControlSize,
11989
11989
  width: selectionControlSize
11990
11990
  },
11991
11991
  hover: {
11992
11992
  base: {
11993
- backgroundColor: colors29.DdsColorInteractiveLightest,
11993
+ backgroundColor: colors28.DdsColorInteractiveLightest,
11994
11994
  boxShadow: `inset 0 0 0 1px ${hoverInputfield.borderColor}`,
11995
11995
  borderColor: hoverInputfield.borderColor
11996
11996
  },
11997
11997
  danger: {
11998
- backgroundColor: colors29.DdsColorDangerLightest,
11998
+ backgroundColor: colors28.DdsColorDangerLightest,
11999
11999
  boxShadow: `inset 0 0 0 1px ${dangerInputfield.borderColor}`,
12000
12000
  borderColor: dangerInputfield.borderColor
12001
12001
  }
@@ -12005,39 +12005,39 @@ var selectionControl = {
12005
12005
  borderColor: dangerInputfield.borderColor
12006
12006
  },
12007
12007
  disabled: {
12008
- borderColor: colors29.DdsColorNeutralsGray5
12008
+ borderColor: colors28.DdsColorNeutralsGray5
12009
12009
  },
12010
12010
  readOnly: { backgroundColor: "transparent" },
12011
12011
  checked: {
12012
12012
  base: {
12013
- borderColor: colors29.DdsColorInteractiveBase,
12014
- backgroundColor: colors29.DdsColorInteractiveBase
12013
+ borderColor: colors28.DdsColorInteractiveBase,
12014
+ backgroundColor: colors28.DdsColorInteractiveBase
12015
12015
  },
12016
12016
  hover: {
12017
- backgroundColor: colors29.DdsColorInteractiveDark,
12018
- boxShadow: `inset 0 0 0 1px ${colors29.DdsColorInteractiveDark}`,
12019
- borderColor: colors29.DdsColorInteractiveDark
12017
+ backgroundColor: colors28.DdsColorInteractiveDark,
12018
+ boxShadow: `inset 0 0 0 1px ${colors28.DdsColorInteractiveDark}`,
12019
+ borderColor: colors28.DdsColorInteractiveDark
12020
12020
  },
12021
12021
  disabled: {
12022
- borderColor: colors29.DdsColorNeutralsGray6,
12023
- backgroundColor: colors29.DdsColorNeutralsGray6
12022
+ borderColor: colors28.DdsColorNeutralsGray6,
12023
+ backgroundColor: colors28.DdsColorNeutralsGray6
12024
12024
  },
12025
12025
  readOnly: {
12026
- borderColor: colors29.DdsColorNeutralsGray6,
12027
- backgroundColor: colors29.DdsColorNeutralsGray6
12026
+ borderColor: colors28.DdsColorNeutralsGray6,
12027
+ backgroundColor: colors28.DdsColorNeutralsGray6
12028
12028
  }
12029
12029
  },
12030
12030
  checkbox: {
12031
12031
  indeterminate: {
12032
- borderColor: colors29.DdsColorInteractiveBase,
12033
- backgroundColor: colors29.DdsColorInteractiveBase
12032
+ borderColor: colors28.DdsColorInteractiveBase,
12033
+ backgroundColor: colors28.DdsColorInteractiveBase
12034
12034
  }
12035
12035
  }
12036
12036
  };
12037
12037
  var container13 = {
12038
- color: colors29.DdsColorNeutralsGray9,
12038
+ color: colors28.DdsColorNeutralsGray9,
12039
12039
  disabled: {
12040
- color: colors29.DdsColorNeutralsGray6
12040
+ color: colors28.DdsColorNeutralsGray6
12041
12041
  },
12042
12042
  withLabel: {
12043
12043
  paddingLeft: `${selectionControlSizeNumberPx + spacing33.SizesDdsSpacingX05NumberPx}px`
@@ -12556,27 +12556,27 @@ var import_styled_components78 = __toESM(require("styled-components"));
12556
12556
 
12557
12557
  // src/components/SkipToContent/SkipToContent.tokens.tsx
12558
12558
  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 = {
12559
+ var { colors: colors29, spacing: spacing34 } = import_dds_design_tokens56.ddsBaseTokens;
12560
+ var link4 = {
12561
12561
  base: {
12562
- color: colors30.DdsColorNeutralsWhite
12562
+ color: colors29.DdsColorNeutralsWhite
12563
12563
  },
12564
12564
  hover: {
12565
- color: colors30.DdsColorNeutralsWhite
12565
+ color: colors29.DdsColorNeutralsWhite
12566
12566
  }
12567
12567
  };
12568
12568
  var wrapper5 = {
12569
- backgroundColor: colors30.DdsColorPrimaryBase,
12569
+ backgroundColor: colors29.DdsColorPrimaryBase,
12570
12570
  padding: spacing34.SizesDdsSpacingX025
12571
12571
  };
12572
12572
  var skipToContentTokens = {
12573
- link: link3,
12573
+ link: link4,
12574
12574
  wrapper: wrapper5
12575
12575
  };
12576
12576
 
12577
12577
  // src/components/SkipToContent/SkipToContent.tsx
12578
12578
  var import_jsx_runtime251 = require("react/jsx-runtime");
12579
- var { wrapper: wrapper6, link: link4 } = skipToContentTokens;
12579
+ var { wrapper: wrapper6, link: link5 } = skipToContentTokens;
12580
12580
  var Wrapper5 = import_styled_components78.default.div`
12581
12581
  box-sizing: border-box;
12582
12582
  position: absolute;
@@ -12606,7 +12606,7 @@ var Wrapper5 = import_styled_components78.default.div`
12606
12606
  `;
12607
12607
  var Link4 = import_styled_components78.default.a`
12608
12608
  text-decoration: none;
12609
- color: ${link4.base.color};
12609
+ color: ${link5.base.color};
12610
12610
  ${getFontStyling(defaultTypographyType)}
12611
12611
 
12612
12612
  @media (prefers-reduced-motion: no-preference) {
@@ -12616,7 +12616,7 @@ var Link4 = import_styled_components78.default.a`
12616
12616
  ${focusVisibleOnDark}
12617
12617
  }
12618
12618
  &:hover {
12619
- color: ${link4.base.color};
12619
+ color: ${link5.base.color};
12620
12620
  }
12621
12621
  `;
12622
12622
  var SkipToContent = (0, import_react94.forwardRef)(
@@ -12784,33 +12784,33 @@ function useIsInTableHead() {
12784
12784
 
12785
12785
  // src/components/Table/normal/Table.tokens.tsx
12786
12786
  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;
12787
+ var { font: font2, colors: colors30, border: border13, spacing: spacing35, iconSizes: iconSizes3, borderRadius: borderRadius9 } = import_dds_design_tokens58.ddsBaseTokens;
12788
12788
  var row = {
12789
12789
  body: {
12790
12790
  odd: {
12791
- backgroundColor: colors31.DdsColorNeutralsWhite
12791
+ backgroundColor: colors30.DdsColorNeutralsWhite
12792
12792
  },
12793
12793
  even: {
12794
- backgroundColor: colors31.DdsColorNeutralsGray1
12794
+ backgroundColor: colors30.DdsColorNeutralsGray1
12795
12795
  },
12796
- hover: { backgroundColor: colors31.DdsColorInteractiveLightest },
12796
+ hover: { backgroundColor: colors30.DdsColorInteractiveLightest },
12797
12797
  selected: {
12798
- backgroundColor: colors31.DdsColorInteractiveLightest
12798
+ backgroundColor: colors30.DdsColorInteractiveLightest
12799
12799
  },
12800
12800
  mode: {
12801
12801
  sum: {
12802
- borderTop: `${border13.BordersDdsBorderStyleLightStrokeWeight} solid ${colors31.DdsColorNeutralsGray4}`,
12803
- borderBottom: `${border13.BordersDdsBorderStyleLightStrokeWeight} solid ${colors31.DdsColorNeutralsGray4}`,
12804
- backgroundColor: colors31.DdsColorNeutralsWhite
12802
+ borderTop: `${border13.BordersDdsBorderStyleLightStrokeWeight} solid ${colors30.DdsColorNeutralsGray4}`,
12803
+ borderBottom: `${border13.BordersDdsBorderStyleLightStrokeWeight} solid ${colors30.DdsColorNeutralsGray4}`,
12804
+ backgroundColor: colors30.DdsColorNeutralsWhite
12805
12805
  }
12806
12806
  },
12807
12807
  withDividers: {
12808
- borderBottom: `1px solid ${colors31.DdsColorNeutralsGray4}`
12808
+ borderBottom: `1px solid ${colors30.DdsColorNeutralsGray4}`
12809
12809
  }
12810
12810
  },
12811
12811
  head: {
12812
12812
  extraCompact: {
12813
- backgroundColor: colors31.DdsColorNeutralsWhite,
12813
+ backgroundColor: colors30.DdsColorNeutralsWhite,
12814
12814
  fontSize: font2.DdsFontBodySans01FontSize
12815
12815
  }
12816
12816
  }
@@ -12828,7 +12828,7 @@ var cell2 = {
12828
12828
  }
12829
12829
  },
12830
12830
  head: {
12831
- backgroundColor: colors31.DdsColorPrimaryLightest
12831
+ backgroundColor: colors30.DdsColorPrimaryLightest
12832
12832
  },
12833
12833
  sort: {
12834
12834
  gap: spacing35.SizesDdsSpacingX05,
@@ -13390,14 +13390,14 @@ var import_styled_components91 = __toESM(require("styled-components"));
13390
13390
 
13391
13391
  // src/components/Tabs/Tabs.tokens.tsx
13392
13392
  var import_dds_design_tokens59 = require("@norges-domstoler/dds-design-tokens");
13393
- var { border: border14, spacing: spacing36, colors: colors32 } = import_dds_design_tokens59.ddsBaseTokens;
13393
+ var { border: border14, spacing: spacing36, colors: colors31 } = import_dds_design_tokens59.ddsBaseTokens;
13394
13394
  var tabList = {
13395
13395
  borderBottom: `${border14.BordersDdsBorderStyleLightStrokeWeight} solid ${border14.BordersDdsBorderStyleLightStroke}`
13396
13396
  };
13397
13397
  var tab = {
13398
13398
  base: {
13399
13399
  borderBottom: `${border14.BordersDdsBorderStyleLightStrokeWeight} solid transparent`,
13400
- color: colors32.DdsColorNeutralsGray7,
13400
+ color: colors31.DdsColorNeutralsGray7,
13401
13401
  padding: spacing36.SizesDdsSpacingX05
13402
13402
  },
13403
13403
  row: {
@@ -13407,15 +13407,15 @@ var tab = {
13407
13407
  gap: spacing36.SizesDdsSpacingX025
13408
13408
  },
13409
13409
  active: {
13410
- backgroundColor: colors32.DdsColorInteractiveLightest,
13411
- color: colors32.DdsColorInteractiveDarkest,
13412
- boxShadow: `inset 0 -2px 0 0 ${colors32.DdsColorInteractiveDarker}`,
13413
- borderColor: colors32.DdsColorInteractiveDarker
13410
+ backgroundColor: colors31.DdsColorInteractiveLightest,
13411
+ color: colors31.DdsColorInteractiveDarkest,
13412
+ boxShadow: `inset 0 -2px 0 0 ${colors31.DdsColorInteractiveDarker}`,
13413
+ borderColor: colors31.DdsColorInteractiveDarker
13414
13414
  },
13415
13415
  hover: {
13416
- color: colors32.DdsColorInteractiveDarkest,
13417
- boxShadow: `inset 0 -2px 0 0 ${colors32.DdsColorInteractiveDarker}`,
13418
- borderColor: colors32.DdsColorInteractiveDarker
13416
+ color: colors31.DdsColorInteractiveDarkest,
13417
+ boxShadow: `inset 0 -2px 0 0 ${colors31.DdsColorInteractiveDarker}`,
13418
+ borderColor: colors31.DdsColorInteractiveDarker
13419
13419
  }
13420
13420
  };
13421
13421
  var panel = {
@@ -13515,7 +13515,7 @@ var Button2 = import_styled_components91.default.button`
13515
13515
  var Tab = (0, import_react110.forwardRef)((props, ref) => {
13516
13516
  const {
13517
13517
  active = false,
13518
- icon: icon12,
13518
+ icon: icon11,
13519
13519
  children,
13520
13520
  focus,
13521
13521
  setFocus,
@@ -13531,19 +13531,13 @@ var Tab = (0, import_react110.forwardRef)((props, ref) => {
13531
13531
  useSetTabWidth(index, width);
13532
13532
  const itemRef = (0, import_react110.useRef)(null);
13533
13533
  const combinedRef = useCombinedRef(ref, itemRef);
13534
- const { tabPanelsRef, setHasTabFocus, tabContentDirection } = useTabsContext();
13534
+ const { tabContentDirection } = useTabsContext();
13535
13535
  (0, import_react110.useEffect)(() => {
13536
13536
  var _a;
13537
13537
  if (focus) {
13538
13538
  (_a = itemRef.current) == null ? void 0 : _a.focus();
13539
- setHasTabFocus(true);
13540
13539
  }
13541
13540
  }, [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
13541
  const handleSelect = (0, import_react110.useCallback)(() => {
13548
13542
  if (setFocus && index) {
13549
13543
  setFocus(index);
@@ -13570,7 +13564,7 @@ var Tab = (0, import_react110.forwardRef)((props, ref) => {
13570
13564
  onKeyDown: handleOnKeyDown,
13571
13565
  tabIndex: focus ? 0 : -1,
13572
13566
  children: [
13573
- icon12 && /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Icon, { icon: icon12, iconSize: "inherit" }),
13567
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Icon, { icon: icon11, iconSize: "inherit" }),
13574
13568
  /* @__PURE__ */ (0, import_jsx_runtime265.jsx)("span", { children })
13575
13569
  ]
13576
13570
  }
@@ -13617,12 +13611,11 @@ var TabList = (0, import_react111.forwardRef)(
13617
13611
  handleTabChange,
13618
13612
  tabListRef,
13619
13613
  hasTabFocus,
13620
- tabPanelsRef,
13621
13614
  setHasTabFocus
13622
13615
  } = useTabsContext();
13623
13616
  const uniqueId = id != null ? id : `${tabsId}-tablist`;
13624
13617
  const childrenArray = import_react111.Children.toArray(children).length;
13625
- const [focus, setFocus] = useRoveFocus(childrenArray, !hasTabFocus, "row");
13618
+ const [focus, setFocus] = useRoveFocus(childrenArray, hasTabFocus, "row");
13626
13619
  const combinedRef = useCombinedRef(ref, tabListRef);
13627
13620
  const tabListChildren = import_react111.Children.map(children, (child, index) => {
13628
13621
  return (0, import_react111.isValidElement)(child) && (0, import_react111.cloneElement)(child, {
@@ -13636,28 +13629,34 @@ var TabList = (0, import_react111.forwardRef)(
13636
13629
  });
13637
13630
  });
13638
13631
  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
13632
  const handleOnFocus = (event) => {
13648
13633
  setHasTabFocus(true);
13649
13634
  onFocus && onFocus(event);
13650
13635
  };
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
13636
+ const handleOnBlur = (event) => {
13637
+ var _a;
13638
+ if ((tabListRef == null ? void 0 : tabListRef.current) === event.relatedTarget) {
13639
+ setFocus(-1);
13640
+ }
13641
+ if (!((_a = tabListRef == null ? void 0 : tabListRef.current) == null ? void 0 : _a.contains(event.relatedTarget))) {
13642
+ setHasTabFocus(false);
13643
+ }
13659
13644
  };
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 }) });
13645
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
13646
+ TabRow,
13647
+ {
13648
+ ...rest,
13649
+ ref: combinedRef,
13650
+ role: "tablist",
13651
+ "aria-label": "Bruk venste og h\xF8yre piltast for \xE5 bla",
13652
+ id: uniqueId,
13653
+ tabIndex: 0,
13654
+ onFocus: handleOnFocus,
13655
+ onBlur: handleOnBlur,
13656
+ $gridTemplateColumns: widths.join(" "),
13657
+ children: tabListChildren
13658
+ }
13659
+ ) });
13661
13660
  }
13662
13661
  );
13663
13662
  TabList.displayName = "TabList";
@@ -13724,7 +13723,7 @@ var import_styled_components94 = __toESM(require("styled-components"));
13724
13723
 
13725
13724
  // src/components/Tag/Tag.tokens.tsx
13726
13725
  var import_dds_design_tokens60 = require("@norges-domstoler/dds-design-tokens");
13727
- var { colors: colors33, borderRadius: borderRadius10, spacing: spacing37 } = import_dds_design_tokens60.ddsBaseTokens;
13726
+ var { colors: colors32, borderRadius: borderRadius10, spacing: spacing37 } = import_dds_design_tokens60.ddsBaseTokens;
13728
13727
  var typographyType5 = "bodySans01";
13729
13728
  var wrapper7 = {
13730
13729
  border: "1px solid",
@@ -13744,13 +13743,13 @@ var wrapper7 = {
13744
13743
  default: {
13745
13744
  icon: void 0,
13746
13745
  base: {
13747
- backgroundColor: colors33.DdsColorNeutralsGray1,
13748
- borderColor: colors33.DdsColorNeutralsGray3,
13746
+ backgroundColor: colors32.DdsColorNeutralsGray1,
13747
+ borderColor: colors32.DdsColorNeutralsGray3,
13749
13748
  icon: void 0
13750
13749
  },
13751
13750
  strong: {
13752
- backgroundColor: colors33.DdsColorNeutralsGray3,
13753
- borderColor: colors33.DdsColorNeutralsGray3,
13751
+ backgroundColor: colors32.DdsColorNeutralsGray3,
13752
+ borderColor: colors32.DdsColorNeutralsGray3,
13754
13753
  icon: void 0
13755
13754
  }
13756
13755
  },
@@ -13759,14 +13758,14 @@ var wrapper7 = {
13759
13758
  base: {
13760
13759
  ...localMessageTokens.container.purpose.success,
13761
13760
  icon: {
13762
- color: colors33.DdsColorSuccessDarkest
13761
+ color: colors32.DdsColorSuccessDarkest
13763
13762
  }
13764
13763
  },
13765
13764
  strong: {
13766
- backgroundColor: colors33.DdsColorSuccessLight,
13767
- borderColor: colors33.DdsColorSuccessLight,
13765
+ backgroundColor: colors32.DdsColorSuccessLight,
13766
+ borderColor: colors32.DdsColorSuccessLight,
13768
13767
  icon: {
13769
- color: colors33.DdsColorNeutralsGray9
13768
+ color: colors32.DdsColorNeutralsGray9
13770
13769
  }
13771
13770
  }
13772
13771
  },
@@ -13775,14 +13774,14 @@ var wrapper7 = {
13775
13774
  base: {
13776
13775
  ...localMessageTokens.container.purpose.danger,
13777
13776
  icon: {
13778
- color: colors33.DdsColorDangerDarkest
13777
+ color: colors32.DdsColorDangerDarkest
13779
13778
  }
13780
13779
  },
13781
13780
  strong: {
13782
- backgroundColor: colors33.DdsColorDangerLight,
13783
- borderColor: colors33.DdsColorDangerLight,
13781
+ backgroundColor: colors32.DdsColorDangerLight,
13782
+ borderColor: colors32.DdsColorDangerLight,
13784
13783
  icon: {
13785
- color: colors33.DdsColorNeutralsGray9
13784
+ color: colors32.DdsColorNeutralsGray9
13786
13785
  }
13787
13786
  }
13788
13787
  },
@@ -13791,14 +13790,14 @@ var wrapper7 = {
13791
13790
  base: {
13792
13791
  ...localMessageTokens.container.purpose.warning,
13793
13792
  icon: {
13794
- color: colors33.DdsColorWarningDarkest
13793
+ color: colors32.DdsColorWarningDarkest
13795
13794
  }
13796
13795
  },
13797
13796
  strong: {
13798
- backgroundColor: colors33.DdsColorWarningLight,
13799
- borderColor: colors33.DdsColorWarningLight,
13797
+ backgroundColor: colors32.DdsColorWarningLight,
13798
+ borderColor: colors32.DdsColorWarningLight,
13800
13799
  icon: {
13801
- color: colors33.DdsColorNeutralsGray9
13800
+ color: colors32.DdsColorNeutralsGray9
13802
13801
  }
13803
13802
  }
13804
13803
  },
@@ -13807,14 +13806,14 @@ var wrapper7 = {
13807
13806
  base: {
13808
13807
  ...localMessageTokens.container.purpose.info,
13809
13808
  icon: {
13810
- color: colors33.DdsColorInfoDarkest
13809
+ color: colors32.DdsColorInfoDarkest
13811
13810
  }
13812
13811
  },
13813
13812
  strong: {
13814
- backgroundColor: colors33.DdsColorInfoLight,
13815
- borderColor: colors33.DdsColorInfoLight,
13813
+ backgroundColor: colors32.DdsColorInfoLight,
13814
+ borderColor: colors32.DdsColorInfoLight,
13816
13815
  icon: {
13817
- color: colors33.DdsColorNeutralsGray9
13816
+ color: colors32.DdsColorNeutralsGray9
13818
13817
  }
13819
13818
  }
13820
13819
  }
@@ -13840,7 +13839,7 @@ var Wrapper7 = (0, import_styled_components94.default)(TextOverflowEllipsisWrapp
13840
13839
  border-color: ${wrapper8.purpose[$purpose][$strong ? "strong" : "base"].borderColor};
13841
13840
  `}
13842
13841
  `;
13843
- var StyledIcon5 = (0, import_styled_components94.default)(Icon)`
13842
+ var StyledIcon4 = (0, import_styled_components94.default)(Icon)`
13844
13843
  color: ${({ $purpose, $strong }) => {
13845
13844
  var _a;
13846
13845
  return (_a = wrapper8.purpose[$purpose][$strong ? "strong" : "base"].icon) == null ? void 0 : _a.color;
@@ -13858,7 +13857,7 @@ var Tag = (0, import_react114.forwardRef)((props, ref) => {
13858
13857
  withIcon,
13859
13858
  ...rest
13860
13859
  } = props;
13861
- const icon12 = tagTokens.wrapper.purpose[purpose].icon;
13860
+ const icon11 = tagTokens.wrapper.purpose[purpose].icon;
13862
13861
  return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
13863
13862
  Wrapper7,
13864
13863
  {
@@ -13866,14 +13865,14 @@ var Tag = (0, import_react114.forwardRef)((props, ref) => {
13866
13865
  ref,
13867
13866
  $purpose: purpose,
13868
13867
  $strong: strong,
13869
- $withIcon: Boolean(withIcon && icon12),
13868
+ $withIcon: Boolean(withIcon && icon11),
13870
13869
  children: [
13871
- withIcon && icon12 && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
13872
- StyledIcon5,
13870
+ withIcon && icon11 && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
13871
+ StyledIcon4,
13873
13872
  {
13874
13873
  $purpose: purpose,
13875
13874
  $strong: strong,
13876
- icon: icon12,
13875
+ icon: icon11,
13877
13876
  iconSize: tagTokens.wrapper.icon.size
13878
13877
  }
13879
13878
  ),
@@ -13922,7 +13921,7 @@ var import_styled_components96 = __toESM(require("styled-components"));
13922
13921
 
13923
13922
  // src/components/TextInput/TextInput.tokens.tsx
13924
13923
  var import_dds_design_tokens61 = require("@norges-domstoler/dds-design-tokens");
13925
- var { colors: colors34, spacing: spacing38, iconSizes: iconSizes4 } = import_dds_design_tokens61.ddsBaseTokens;
13924
+ var { colors: colors33, spacing: spacing38, iconSizes: iconSizes4 } = import_dds_design_tokens61.ddsBaseTokens;
13926
13925
  var input5 = {
13927
13926
  withIcon: {
13928
13927
  medium: {
@@ -13938,11 +13937,11 @@ var input5 = {
13938
13937
  };
13939
13938
  var affix = {
13940
13939
  border: {
13941
- color: colors34.DdsColorNeutralsGray5
13940
+ color: colors33.DdsColorNeutralsGray5
13942
13941
  }
13943
13942
  };
13944
- var icon10 = {
13945
- color: colors34.DdsColorNeutralsGray9,
13943
+ var icon9 = {
13944
+ color: colors33.DdsColorNeutralsGray9,
13946
13945
  sizes: {
13947
13946
  medium: {
13948
13947
  top: spacing38.SizesDdsSpacingX075,
@@ -13960,22 +13959,22 @@ var icon10 = {
13960
13959
  };
13961
13960
  var textInputTokens = {
13962
13961
  input: input5,
13963
- icon: icon10,
13962
+ icon: icon9,
13964
13963
  affix
13965
13964
  };
13966
13965
 
13967
13966
  // src/components/TextInput/TextInput.styles.tsx
13968
13967
  var { iconSizes: iconSizes5 } = import_dds_design_tokens62.ddsBaseTokens;
13969
- var { input: input6, icon: icon11 } = textInputTokens;
13968
+ var { input: input6, icon: icon10 } = textInputTokens;
13970
13969
  var MessageContainer2 = import_styled_components96.default.div`
13971
13970
  display: flex;
13972
13971
  justify-content: space-between;
13973
13972
  `;
13974
- var StyledIcon6 = (0, import_styled_components96.default)(Icon)`
13973
+ var StyledIcon5 = (0, import_styled_components96.default)(Icon)`
13975
13974
  position: absolute;
13976
- color: ${icon11.color};
13975
+ color: ${icon10.color};
13977
13976
  ${({ $size, iconSize }) => import_styled_components96.css`
13978
- left: ${icon11.sizes[$size].left};
13977
+ left: ${icon10.sizes[$size].left};
13979
13978
  ${iconSize === "small" ? import_styled_components96.css`
13980
13979
  top: ${`calc(50% - ${iconSizes5.DdsIconsizeSmallNumberPx / 2}px)`};
13981
13980
  ` : import_styled_components96.css`
@@ -14057,7 +14056,7 @@ var TextInput2 = (0, import_react116.forwardRef)(
14057
14056
  defaultValue,
14058
14057
  "aria-required": ariaRequired,
14059
14058
  "aria-describedby": ariaDescribedby,
14060
- icon: icon12,
14059
+ icon: icon11,
14061
14060
  prefix: prefix2,
14062
14061
  suffix,
14063
14062
  ...rest
@@ -14089,7 +14088,7 @@ var TextInput2 = (0, import_react116.forwardRef)(
14089
14088
  const hasTip = !!tip;
14090
14089
  const hasLabel = !!label3;
14091
14090
  const hasMessage = hasErrorMessage || hasTip || !!maxLength;
14092
- const hasIcon = !!icon12;
14091
+ const hasIcon = !!icon11;
14093
14092
  const hasAffix = !!(prefix2 != null ? prefix2 : suffix);
14094
14093
  const characterCounterId = derivativeIdGenerator(
14095
14094
  uniqueId,
@@ -14127,9 +14126,9 @@ var TextInput2 = (0, import_react116.forwardRef)(
14127
14126
  if (hasIcon) {
14128
14127
  extendedInput = /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(InputContainer, { children: [
14129
14128
  /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
14130
- StyledIcon6,
14129
+ StyledIcon5,
14131
14130
  {
14132
- icon: icon12,
14131
+ icon: icon11,
14133
14132
  iconSize: getFormInputIconSize(componentSize),
14134
14133
  $size: componentSize
14135
14134
  }
@@ -14205,7 +14204,7 @@ var useToggleBarContext = () => (0, import_react117.useContext)(ToggleBarContext
14205
14204
 
14206
14205
  // src/components/ToggleBar/ToggleBar.tokens.tsx
14207
14206
  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;
14207
+ var { colors: colors34, spacing: spacing39, border: border15, borderRadius: borderRadius11, fontPackages: fontPackages6 } = import_dds_design_tokens63.ddsBaseTokens;
14209
14208
  var typographyTypes6 = {
14210
14209
  large: "bodySans04",
14211
14210
  medium: "bodySans02",
@@ -14233,17 +14232,17 @@ var outerContainer7 = {
14233
14232
  };
14234
14233
  var label = {
14235
14234
  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}`
14235
+ borderColor: colors34.DdsColorNeutralsGray5,
14236
+ borderRight: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors34.DdsColorNeutralsGray5}`,
14237
+ borderTop: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors34.DdsColorNeutralsGray5}`,
14238
+ borderBottom: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors34.DdsColorNeutralsGray5}`
14240
14239
  },
14241
14240
  hover: {
14242
- color: colors35.DdsColorInteractiveDark,
14243
- borderColor: colors35.DdsColorInteractiveDark
14241
+ color: colors34.DdsColorInteractiveDark,
14242
+ borderColor: colors34.DdsColorInteractiveDark
14244
14243
  },
14245
14244
  firstChild: {
14246
- borderLeft: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors35.DdsColorNeutralsGray5}`,
14245
+ borderLeft: `${border15.BordersDdsBorderStyleLightStrokeWeight} solid ${colors34.DdsColorNeutralsGray5}`,
14247
14246
  borderTopLeftRadius: borderRadius11.RadiiDdsBorderRadius1Radius,
14248
14247
  borderBottomLeftRadius: borderRadius11.RadiiDdsBorderRadius1Radius
14249
14248
  },
@@ -14253,12 +14252,12 @@ var label = {
14253
14252
  }
14254
14253
  };
14255
14254
  var content7 = {
14256
- base: { backgroundColor: colors35.DdsColorNeutralsGray1 },
14255
+ base: { backgroundColor: colors34.DdsColorNeutralsGray1 },
14257
14256
  active: {
14258
- color: colors35.DdsColorInteractiveDarkest,
14259
- borderColor: colors35.DdsColorInteractiveDarker,
14260
- backgroundColor: colors35.DdsColorInteractiveLightest,
14261
- boxShadow: `inset 0 0 0 1px ${colors35.DdsColorInteractiveDarker}`
14257
+ color: colors34.DdsColorInteractiveDarkest,
14258
+ borderColor: colors34.DdsColorInteractiveDarker,
14259
+ backgroundColor: colors34.DdsColorInteractiveLightest,
14260
+ boxShadow: `inset 0 0 0 1px ${colors34.DdsColorInteractiveDarker}`
14262
14261
  },
14263
14262
  size: {
14264
14263
  tiny: {
@@ -14471,7 +14470,7 @@ var ToggleRadio = (0, import_react119.forwardRef)(
14471
14470
  checked,
14472
14471
  "aria-label": ariaLabel,
14473
14472
  "aria-labelledby": ariaLabelledBy,
14474
- icon: icon12,
14473
+ icon: icon11,
14475
14474
  label: label3,
14476
14475
  htmlProps,
14477
14476
  className,
@@ -14500,8 +14499,8 @@ var ToggleRadio = (0, import_react119.forwardRef)(
14500
14499
  "aria-labelledby": ariaLabelledBy
14501
14500
  }
14502
14501
  ),
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" }),
14502
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(Content2, { $size: group4.size, $justIcon: !!icon11 && !label3, children: [
14503
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Icon, { icon: icon11, iconSize: "inherit" }),
14505
14504
  label3 && /* @__PURE__ */ (0, import_jsx_runtime273.jsx)("span", { children: label3 })
14506
14505
  ] })
14507
14506
  ] });
@@ -14515,21 +14514,21 @@ var import_styled_components100 = __toESM(require("styled-components"));
14515
14514
 
14516
14515
  // src/components/ToggleButton/ToggleButton.tokens.tsx
14517
14516
  var import_dds_design_tokens64 = require("@norges-domstoler/dds-design-tokens");
14518
- var { colors: colors36, spacing: spacing40 } = import_dds_design_tokens64.ddsBaseTokens;
14517
+ var { colors: colors35, spacing: spacing40 } = import_dds_design_tokens64.ddsBaseTokens;
14519
14518
  var { button: button2 } = buttonTokens;
14520
14519
  var { selectionControl: selectionControl3 } = selectionControlTokens;
14521
14520
  var typographyType6 = typographyTypes.small;
14522
14521
  var toggleButton = {
14523
14522
  border: button2.base.border,
14524
- backgroundColor: colors36.DdsColorNeutralsWhite,
14525
- color: colors36.DdsColorNeutralsGray7,
14523
+ backgroundColor: colors35.DdsColorNeutralsWhite,
14524
+ color: colors35.DdsColorNeutralsGray7,
14526
14525
  gap: spacing40.SizesDdsSpacingX05,
14527
14526
  borderRadius: button2.appearances.rounded.base.borderRadius,
14528
14527
  padding: button2.sizes.small.text.padding,
14529
14528
  hover: selectionControl3.hover.base,
14530
14529
  checked: {
14531
14530
  ...selectionControl3.checked.base,
14532
- color: colors36.DdsColorNeutralsWhite,
14531
+ color: colors35.DdsColorNeutralsWhite,
14533
14532
  hover: selectionControl3.checked.hover
14534
14533
  }
14535
14534
  };
@@ -14601,7 +14600,7 @@ var Container16 = import_styled_components100.default.label`
14601
14600
  }
14602
14601
  `;
14603
14602
  var ToggleButton = (0, import_react120.forwardRef)(
14604
- ({ id, label: label3, icon: icon12, className, htmlProps, ...rest }, ref) => {
14603
+ ({ id, label: label3, icon: icon11, className, htmlProps, ...rest }, ref) => {
14605
14604
  const generatedId = (0, import_react120.useId)();
14606
14605
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
14607
14606
  return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(Container16, { htmlFor: uniqueId, children: [
@@ -14613,8 +14612,8 @@ var ToggleButton = (0, import_react120.forwardRef)(
14613
14612
  type: "checkbox"
14614
14613
  }
14615
14614
  ),
14616
- /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(Content3, { $hasIcon: !!icon12, children: [
14617
- icon12 && /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(Icon, { icon: icon12, iconSize: "inherit" }),
14615
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(Content3, { $hasIcon: !!icon11, children: [
14616
+ icon11 && /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(Icon, { icon: icon11, iconSize: "inherit" }),
14618
14617
  " ",
14619
14618
  label3
14620
14619
  ] })